From 7a2595c562382b5b8815bb6dc78865f8da95e454 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Tue, 13 May 2025 17:22:46 +0200 Subject: [PATCH] build cards theme --- .../web/assets/ChargeModeModal-C0nwI9o6.js | 1 + .../web/assets/ChargeModeModal-CGs_z8ao.css | 1 + ...20.js => ChargePointPlugBadge-weESa4ng.js} | 2 +- .../web/assets/ChargePointsView-ALIhGmhe.css | 1 - .../web/assets/ChargePointsView-DBcxu7CY.js | 1 - .../web/assets/ChargePointsView-L_i2iL0g.css | 1 + .../web/assets/ChargePointsView-OtbDwJrE.js | 1 + .../web/assets/DashBoardCard-Bl80pQ9w.css | 1 - .../web/assets/DashBoardView-Bir-HyNc.js | 1 - .../web/assets/DashBoardView-CZvLtoU0.css | 1 - ...-B7mtE8H4.js => DashboardCard-5rGwPkme.js} | 2 +- .../web/assets/DashboardCard-Cy_vzq6d.css | 1 + .../web/assets/DashboardView-BYiJMWFT.css | 1 + .../web/assets/DashboardView-_Is2rbwP.js | 1 + .../web/assets/EnergyFlowView-BOyDZ-Ju.css | 1 + .../web/assets/EnergyFlowView-CMZu-SNR.css | 1 - .../web/assets/EnergyFlowView-Dv2TQaHl.js | 1 - .../web/assets/EnergyFlowView-ZntI_-Ks.js | 1 + ...iew-uWIroZcN.js => StatusView-IQAnLXHB.js} | 2 +- .../cards/web/assets/index-BYcKhBWB.js | 2 + .../cards/web/assets/index-Bewn8wIg.js | 2 - ...{index-BBaYm_Sj.css => index-CsJV9rcg.css} | 2 +- .../cards/web/assets/vendor-CSZuzLkg.js | 57 +++++++++++++++++++ .../cards/web/assets/vendor-DR1uipmZ.js | 32 ----------- ...QtFF.js => vendor-fortawesome-D4MLbCBR.js} | 12 ++-- ...CPyfyZy8.js => vendor-inkline-DMzDOCDa.js} | 2 +- .../display_themes/cards/web/index.html | 10 ++-- 27 files changed, 84 insertions(+), 57 deletions(-) create mode 100644 packages/modules/display_themes/cards/web/assets/ChargeModeModal-C0nwI9o6.js create mode 100644 packages/modules/display_themes/cards/web/assets/ChargeModeModal-CGs_z8ao.css rename packages/modules/display_themes/cards/web/assets/{ChargePointPlugBadge-BsQ5Ic20.js => ChargePointPlugBadge-weESa4ng.js} (91%) delete mode 100644 packages/modules/display_themes/cards/web/assets/ChargePointsView-ALIhGmhe.css delete mode 100644 packages/modules/display_themes/cards/web/assets/ChargePointsView-DBcxu7CY.js create mode 100644 packages/modules/display_themes/cards/web/assets/ChargePointsView-L_i2iL0g.css create mode 100644 packages/modules/display_themes/cards/web/assets/ChargePointsView-OtbDwJrE.js delete mode 100644 packages/modules/display_themes/cards/web/assets/DashBoardCard-Bl80pQ9w.css delete mode 100644 packages/modules/display_themes/cards/web/assets/DashBoardView-Bir-HyNc.js delete mode 100644 packages/modules/display_themes/cards/web/assets/DashBoardView-CZvLtoU0.css rename packages/modules/display_themes/cards/web/assets/{DashBoardCard-B7mtE8H4.js => DashboardCard-5rGwPkme.js} (67%) create mode 100644 packages/modules/display_themes/cards/web/assets/DashboardCard-Cy_vzq6d.css create mode 100644 packages/modules/display_themes/cards/web/assets/DashboardView-BYiJMWFT.css create mode 100644 packages/modules/display_themes/cards/web/assets/DashboardView-_Is2rbwP.js create mode 100644 packages/modules/display_themes/cards/web/assets/EnergyFlowView-BOyDZ-Ju.css delete mode 100644 packages/modules/display_themes/cards/web/assets/EnergyFlowView-CMZu-SNR.css delete mode 100644 packages/modules/display_themes/cards/web/assets/EnergyFlowView-Dv2TQaHl.js create mode 100644 packages/modules/display_themes/cards/web/assets/EnergyFlowView-ZntI_-Ks.js rename packages/modules/display_themes/cards/web/assets/{StatusView-uWIroZcN.js => StatusView-IQAnLXHB.js} (56%) create mode 100644 packages/modules/display_themes/cards/web/assets/index-BYcKhBWB.js delete mode 100644 packages/modules/display_themes/cards/web/assets/index-Bewn8wIg.js rename packages/modules/display_themes/cards/web/assets/{index-BBaYm_Sj.css => index-CsJV9rcg.css} (56%) create mode 100644 packages/modules/display_themes/cards/web/assets/vendor-CSZuzLkg.js delete mode 100644 packages/modules/display_themes/cards/web/assets/vendor-DR1uipmZ.js rename packages/modules/display_themes/cards/web/assets/{vendor-fortawesome-BuJHQtFF.js => vendor-fortawesome-D4MLbCBR.js} (84%) rename packages/modules/display_themes/cards/web/assets/{vendor-inkline-CPyfyZy8.js => vendor-inkline-DMzDOCDa.js} (99%) diff --git a/packages/modules/display_themes/cards/web/assets/ChargeModeModal-C0nwI9o6.js b/packages/modules/display_themes/cards/web/assets/ChargeModeModal-C0nwI9o6.js new file mode 100644 index 0000000000..bc5b12e70f --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/ChargeModeModal-C0nwI9o6.js @@ -0,0 +1 @@ +import{u as _}from"./index-BYcKhBWB.js";import{_ as q}from"./vendor-inkline-DMzDOCDa.js";import{l as C,q as o,p as l,o as s,s as i,e as S,F as M,A as b,k as d,x as p}from"./vendor-CSZuzLkg.js";const T=q({name:"ChargeModeModal",props:{modelValue:{required:!0,type:Boolean,default:!1},chargePointId:{type:Number,required:!0}},emits:["update:modelValue"],data:()=>({mqttStore:_(),simpleChargeModes:["instant_charging","pv_charging","stop"]}),computed:{filteredChargeModes(){return this.mqttStore.getSimpleChargePointView?this.mqttStore.chargeModeList().filter(t=>this.simpleChargeModes.includes(t.id)):this.mqttStore.chargeModeList()}},methods:{updateChargePointChargeTemplate(t,e,r=void 0){const g=this.mqttStore.updateState(`openWB/chargepoint/${t}/set/charge_template`,e,r);this.$root.sendTopicToBroker(`openWB/chargepoint/${t}/set/charge_template`,g)},setChargePointConnectedVehicleChargeMode(t){t!=this.mqttStore.getChargePointConnectedVehicleChargeMode(this.chargePointId)&&this.updateChargePointChargeTemplate(this.chargePointId,t,"chargemode.selected")},setChargePointConnectedVehiclePriority(t){t!=this.mqttStore.getChargePointConnectedVehiclePriority(this.chargePointId)&&this.updateChargePointChargeTemplate(this.chargePointId,t,"prio")}}},[["render",function(t,e,r,g,n,h){const c=l("i-button"),u=l("i-button-group"),m=l("i-form-group"),P=l("i-form-label"),f=l("i-form"),V=l("i-modal");return s(),C(V,{"model-value":r.modelValue,size:"lg","onUpdate:modelValue":e[2]||(e[2]=a=>t.$emit("update:modelValue",a))},{header:o(()=>[d(' Lademodus für "'+p(n.mqttStore.getChargePointConnectedVehicleName(r.chargePointId))+'" auswählen ',1)]),default:o(()=>[i(f,null,{default:o(()=>[i(m,null,{default:o(()=>[i(u,{block:"",vertical:""},{default:o(()=>[(s(!0),S(M,null,b(h.filteredChargeModes,a=>(s(),C(c,{key:a.id,size:"lg",class:"large-button",outline:"",color:a.class!="dark"?a.class:"light",active:n.mqttStore.getChargePointConnectedVehicleChargeMode(r.chargePointId)!=null&&a.id==n.mqttStore.getChargePointConnectedVehicleChargeMode(r.chargePointId).mode,onClick:I=>h.setChargePointConnectedVehicleChargeMode(a.id)},{default:o(()=>[d(p(a.label),1)]),_:2},1032,["color","active","onClick"]))),128))]),_:1})]),_:1}),i(m,null,{default:o(()=>[i(P,null,{default:o(()=>e[3]||(e[3]=[d("Priorität")])),_:1}),i(u,{block:""},{default:o(()=>[i(c,{size:"lg",class:"large-button",color:n.mqttStore.getChargePointConnectedVehiclePriority(r.chargePointId)!==!0?"danger":"",onClick:e[0]||(e[0]=a=>h.setChargePointConnectedVehiclePriority(!1))},{default:o(()=>e[4]||(e[4]=[d(" Nein ")])),_:1},8,["color"]),i(c,{color:n.mqttStore.getChargePointConnectedVehiclePriority(r.chargePointId)===!0?"success":"",onClick:e[1]||(e[1]=a=>h.setChargePointConnectedVehiclePriority(!0))},{default:o(()=>e[5]||(e[5]=[d(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"])}],["__scopeId","data-v-bd48ea1b"]]);export{T as C}; diff --git a/packages/modules/display_themes/cards/web/assets/ChargeModeModal-CGs_z8ao.css b/packages/modules/display_themes/cards/web/assets/ChargeModeModal-CGs_z8ao.css new file mode 100644 index 0000000000..587ece271e --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/ChargeModeModal-CGs_z8ao.css @@ -0,0 +1 @@ +.large-button[data-v-bd48ea1b]{height:3.5rem;font-size:1.5rem;padding:.75rem 1.5rem} diff --git a/packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-BsQ5Ic20.js b/packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-weESa4ng.js similarity index 91% rename from packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-BsQ5Ic20.js rename to packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-weESa4ng.js index e25a9e4cff..8b321a36af 100644 --- a/packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-BsQ5Ic20.js +++ b/packages/modules/display_themes/cards/web/assets/ChargePointPlugBadge-weESa4ng.js @@ -1 +1 @@ -import{e as c,f,i as x,F as P,A as w,o as h,z as m,O as S,l as C,q as v,p as d,s as b,x as g}from"./vendor-DR1uipmZ.js";import{_ as y}from"./vendor-inkline-CPyfyZy8.js";import{u as k}from"./index-Bewn8wIg.js";import{F as D,l as I,z as q,A as z,B as $}from"./vendor-fortawesome-BuJHQtFF.js";const l={props:{data:{required:!1,type:Array,default:void 0},socData:{required:!1,type:Array,default:void 0},width:{type:Number,default:250},height:{type:Number,default:70},gap:{type:Number,default:3},stroke:{type:Number,default:3},min:{type:Number,default:0},max:{type:Number,default:1},color:{type:String,default:"var(--color--primary)"},colorNegative:{type:String,default:void 0}},computed:{highestPoint(){return Math.max(1,this.max,...this.slicedData)},lowestPoint(){return Math.min(0,this.min,...this.slicedData)},maxPoints(){return Math.floor(this.width/(this.stroke+this.gap))},slicedData(){if(this.data)return this.data.slice(-this.maxPoints)},slicedSocData(){if(this.socData)return this.socData.slice(-this.maxPoints)},zeroHeight(){return this.height-(0-this.lowestPoint)/(this.highestPoint-this.lowestPoint)*this.height},coordinates(){if(this.data)return this.calculateCoordinates(this.slicedData,this.lowestPoint,this.highestPoint)},socCoordinates(){if(this.socData)return this.calculateCoordinates(this.slicedSocData,0,100)},bars(){if(this.coordinates){const t=[];return this.coordinates.forEach(s=>{const e=s.x,o=s.y,r=this.stroke,a=Math.min(o,this.zeroHeight),i=Math.abs(o-this.zeroHeight),n=o>this.zeroHeight;t.push({x:e,y:a,width:r,height:i,negative:n})}),t}},socPath(){if(this.socCoordinates&&this.socCoordinates.length>0){let s=this.socCoordinates.slice(0,1)[0],e=this.socCoordinates.slice(-1)[0];var t=`M 0,${this.height}`;return t+=` L 0,${s.y}`,this.socCoordinates.forEach(o=>{t+=` L ${o.x+this.stroke/2},${o.y}`}),t+=` L ${e.x+this.stroke},${e.y} L ${e.x+this.stroke},${this.height} Z`}}},methods:{calculateCoordinates(t,s,e){const o=[];return t.forEach((r,a)=>{const i=a*this.width/this.maxPoints+1,n=this.height-(r-s)/(e-s)*this.height;o.push({x:i,y:n})}),o}}},u=()=>{S(t=>({"3f7db06a":t.color,"1de516bf":t.colorNegative}))},p=l.setup;l.setup=p?(t,s)=>(u(),p(t,s)):u;const N=["viewBox"],M=["d"],_=["x","y","width","height"],A=["y1","x2","y2"],R=y(l,[["render",function(t,s,e,o,r,a){return h(),c("svg",{class:"spark-line",viewBox:`0 0 ${e.width} ${e.height}`,width:"100%",preserveAspectRatio:"xMinYMin"},[e.socData?(h(),c("path",{key:0,class:"soc-path",d:a.socPath},null,8,M)):f("",!0),(h(!0),c(P,null,w(a.bars,i=>(h(),c("rect",{key:i.x,x:i.x,y:i.y,width:i.width,height:i.height,class:m(e.colorNegative&&i.negative?"negative":"")},null,10,_))),128)),x("line",{class:"zero-line",x1:0,y1:a.zeroHeight,x2:e.width,y2:a.zeroHeight},null,8,A)],8,N)}],["__scopeId","data-v-22cdf82b"]]);I.add(q,z,$);const E={name:"ChargePointStateBadge",components:{FontAwesomeIcon:D},props:{chargePointId:{required:!0,type:Array},showEnergyCharged:{required:!1,type:Boolean,default:!0}},data:()=>({mqttStore:k()}),computed:{plugState(){var t=!1;return this.chargePointId.forEach(s=>{t|=this.mqttStore.getChargePointPlugState(s)}),t},chargeState(){var t=!1;return this.chargePointId.forEach(s=>{t|=this.mqttStore.getChargePointChargeState(s)}),t},stateIcon(){return this.plugState?this.chargeState?["fas","fa-plug-circle-bolt"]:["fas","fa-plug-circle-check"]:["fas","fa-plug-circle-xmark"]},stateClass(){return this.plugState?this.chargeState?"_color:success":"_color:warning":"_color:gray"}}},H={key:0,class:"_padding-left:1"},Y=y(E,[["render",function(t,s,e,o,r,a){const i=d("font-awesome-icon"),n=d("i-badge");return h(),C(n,{size:"lg"},{default:v(()=>[b(i,{"fixed-width":"",icon:a.stateIcon,class:m(a.stateClass)},null,8,["icon","class"]),a.plugState&&e.showEnergyCharged?(h(),c("span",H,g(r.mqttStore.getChargePointImportedSincePlugged(e.chargePointId).energy)+" / "+g(r.mqttStore.getChargePointImportedSincePlugged(e.chargePointId).range),1)):f("",!0)]),_:1})}]]);export{Y as C,R as S}; +import{e as c,f,i as x,F as P,A as w,o as h,z as m,O as S,l as C,q as v,p as d,s as b,x as g}from"./vendor-CSZuzLkg.js";import{_ as y}from"./vendor-inkline-DMzDOCDa.js";import{u as k}from"./index-BYcKhBWB.js";import{F as D,l as I,A as q,B as $,C as z}from"./vendor-fortawesome-D4MLbCBR.js";const l={props:{data:{required:!1,type:Array,default:void 0},socData:{required:!1,type:Array,default:void 0},width:{type:Number,default:250},height:{type:Number,default:70},gap:{type:Number,default:3},stroke:{type:Number,default:3},min:{type:Number,default:0},max:{type:Number,default:1},color:{type:String,default:"var(--color--primary)"},colorNegative:{type:String,default:void 0}},computed:{highestPoint(){return Math.max(1,this.max,...this.slicedData)},lowestPoint(){return Math.min(0,this.min,...this.slicedData)},maxPoints(){return Math.floor(this.width/(this.stroke+this.gap))},slicedData(){if(this.data)return this.data.slice(-this.maxPoints)},slicedSocData(){if(this.socData)return this.socData.slice(-this.maxPoints)},zeroHeight(){return this.height-(0-this.lowestPoint)/(this.highestPoint-this.lowestPoint)*this.height},coordinates(){if(this.data)return this.calculateCoordinates(this.slicedData,this.lowestPoint,this.highestPoint)},socCoordinates(){if(this.socData)return this.calculateCoordinates(this.slicedSocData,0,100)},bars(){if(this.coordinates){const t=[];return this.coordinates.forEach(s=>{const e=s.x,o=s.y,r=this.stroke,a=Math.min(o,this.zeroHeight),i=Math.abs(o-this.zeroHeight),n=o>this.zeroHeight;t.push({x:e,y:a,width:r,height:i,negative:n})}),t}},socPath(){if(this.socCoordinates&&this.socCoordinates.length>0){let s=this.socCoordinates.slice(0,1)[0],e=this.socCoordinates.slice(-1)[0];var t=`M 0,${this.height}`;return t+=` L 0,${s.y}`,this.socCoordinates.forEach(o=>{t+=` L ${o.x+this.stroke/2},${o.y}`}),t+=` L ${e.x+this.stroke},${e.y} L ${e.x+this.stroke},${this.height} Z`}}},methods:{calculateCoordinates(t,s,e){const o=[];return t.forEach((r,a)=>{const i=a*this.width/this.maxPoints+1,n=this.height-(r-s)/(e-s)*this.height;o.push({x:i,y:n})}),o}}},u=()=>{S(t=>({"3f7db06a":t.color,"1de516bf":t.colorNegative}))},p=l.setup;l.setup=p?(t,s)=>(u(),p(t,s)):u;const N=["viewBox"],M=["d"],_=["x","y","width","height"],A=["y1","x2","y2"],R=y(l,[["render",function(t,s,e,o,r,a){return h(),c("svg",{class:"spark-line",viewBox:`0 0 ${e.width} ${e.height}`,width:"100%",preserveAspectRatio:"xMinYMin"},[e.socData?(h(),c("path",{key:0,class:"soc-path",d:a.socPath},null,8,M)):f("",!0),(h(!0),c(P,null,w(a.bars,i=>(h(),c("rect",{key:i.x,x:i.x,y:i.y,width:i.width,height:i.height,class:m(e.colorNegative&&i.negative?"negative":"")},null,10,_))),128)),x("line",{class:"zero-line",x1:0,y1:a.zeroHeight,x2:e.width,y2:a.zeroHeight},null,8,A)],8,N)}],["__scopeId","data-v-22cdf82b"]]);I.add(q,$,z);const E={name:"ChargePointStateBadge",components:{FontAwesomeIcon:D},props:{chargePointId:{required:!0,type:Array},showEnergyCharged:{required:!1,type:Boolean,default:!0}},data:()=>({mqttStore:k()}),computed:{plugState(){var t=!1;return this.chargePointId.forEach(s=>{t|=this.mqttStore.getChargePointPlugState(s)}),t},chargeState(){var t=!1;return this.chargePointId.forEach(s=>{t|=this.mqttStore.getChargePointChargeState(s)}),t},stateIcon(){return this.plugState?this.chargeState?["fas","fa-plug-circle-bolt"]:["fas","fa-plug-circle-check"]:["fas","fa-plug-circle-xmark"]},stateClass(){return this.plugState?this.chargeState?"_color:success":"_color:warning":"_color:gray"}}},H={key:0,class:"_padding-left:1"},Y=y(E,[["render",function(t,s,e,o,r,a){const i=d("font-awesome-icon"),n=d("i-badge");return h(),C(n,{size:"lg"},{default:v(()=>[b(i,{"fixed-width":"",icon:a.stateIcon,class:m(a.stateClass)},null,8,["icon","class"]),a.plugState&&e.showEnergyCharged?(h(),c("span",H,g(r.mqttStore.getChargePointImportedSincePlugged(e.chargePointId).energy)+" / "+g(r.mqttStore.getChargePointImportedSincePlugged(e.chargePointId).range),1)):f("",!0)]),_:1})}]]);export{Y as C,R as S}; diff --git a/packages/modules/display_themes/cards/web/assets/ChargePointsView-ALIhGmhe.css b/packages/modules/display_themes/cards/web/assets/ChargePointsView-ALIhGmhe.css deleted file mode 100644 index 58022c3ede..0000000000 --- a/packages/modules/display_themes/cards/web/assets/ChargePointsView-ALIhGmhe.css +++ /dev/null @@ -1 +0,0 @@ -.card[data-v-3c6489c4]{----background: inherit !important;----body--color: var(----color) !important}.clickable[data-v-3c6489c4]{cursor:pointer}.card[data-v-5e676b1f]{----background: inherit !important;----body--color: var(----color) !important}.clickable[data-v-5e676b1f]{cursor:pointer}.large-button[data-v-5e676b1f]{height:3.75rem;font-size:1.5rem;padding:.75rem 1.5rem}.button-group-wrapper[data-v-5e676b1f]{display:flex;flex-direction:column;padding-right:0}.main-button-group[data-v-5e676b1f]{display:flex;flex-wrap:wrap;width:100%}.button.-outline:disabled.-disabled.-active[data-v-5e676b1f]{----border-color: var(----border-color--hover);background:var(----background);color:var(----color)}.charge-points-card-wrapper[data-v-76699ceb]{display:grid;grid-template-columns:repeat(auto-fill,minmax(36rem,1fr));grid-gap:var(--spacing)}.large-button[data-v-76699ceb]{height:3.5rem;font-size:1.5rem;padding:.75rem 1.5rem}[data-v-76699ceb] .toggle .toggle-label:before{border-color:var(--color--dark-45)}[data-v-76699ceb] .tab{min-height:72vh;max-height:72vh;overflow-y:scroll}.modal-vehicle-select[data-v-76699ceb] .modal-body{max-height:72vh;overflow-y:scroll}[data-v-76699ceb] .input-prepend,[data-v-76699ceb] .input-append{min-width:3em} diff --git a/packages/modules/display_themes/cards/web/assets/ChargePointsView-DBcxu7CY.js b/packages/modules/display_themes/cards/web/assets/ChargePointsView-DBcxu7CY.js deleted file mode 100644 index 9e3d907095..0000000000 --- a/packages/modules/display_themes/cards/web/assets/ChargePointsView-DBcxu7CY.js +++ /dev/null @@ -1 +0,0 @@ -import{u as B,C as ae,N as ie}from"./index-Bewn8wIg.js";import{D as F}from"./DashBoardCard-B7mtE8H4.js";import{C as z,S as le}from"./ChargePointPlugBadge-BsQ5Ic20.js";import{F as $,l as A,b as ne,c as oe,j as re,k as W,m as E,e as U,n as D,o as Z,p as R,q as j,r as K,s as O,t as J,u as G,v as ce,w as de,x as he,y as ge}from"./vendor-fortawesome-BuJHQtFF.js";import{_ as x}from"./vendor-inkline-CPyfyZy8.js";import{l as u,q as i,p as h,o as d,s as a,z as q,e as S,F as M,k as r,f as m,x as s,A as L,I as se,i as ue,n as me}from"./vendor-DR1uipmZ.js";A.add(ne,oe);const H=x({name:"ChargePointLockButton",components:{FontAwesomeIcon:$},props:{chargePointId:{required:!0,type:Number},changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:B()}),computed:{locked(){return this.mqttStore.getChargePointManualLock(this.chargePointId)},stateIcon(){return this.locked?["fas","fa-lock"]:["fas","fa-lock-open"]},stateClass(){return this.locked?["_color:danger"]:"_color:success"}},methods:{toggleChargePointManualLock(){this.changesLocked||this.$root.sendTopicToBroker(`openWB/chargepoint/${this.chargePointId}/set/manual_lock`,!this.mqttStore.getValueBool(`openWB/chargepoint/${this.chargePointId}/set/manual_lock`))}}},[["render",function(l,e,n,p,t,c){const P=h("font-awesome-icon"),V=h("i-button");return d(),u(V,{size:"lg",disabled:n.changesLocked,outline:n.changesLocked},{default:i(()=>[a(P,{"fixed-width":"",icon:c.stateIcon,class:q(c.stateClass),onClick:e[0]||(e[0]=C=>c.toggleChargePointManualLock())},null,8,["icon","class"])]),_:1},8,["disabled","outline"])}]]);A.add(re);const Q=x({name:"ChargePointCodeButton",components:{FontAwesomeIcon:$,CodeInputModal:ae},props:{chargePointId:{type:Number,required:!0}},data:()=>({mqttStore:B(),modalIdTagEntryVisible:!1,modalIdTagEntryColor:"warning",code:""}),computed:{tagState(){return this.mqttStore.getChargepointTagState(this.chargePointId)},tagButtonColor(){switch(this.tagState){case 2:return"success";case 1:return"warning";default:return""}},tagClass(){switch(this.tagState){case 2:return"_color:success-80";case 1:return"_color:warning-80";default:return""}}},methods:{toggleIdTagModal(){this.modalIdTagEntryVisible=!this.modalIdTagEntryVisible},sendIdTag(l){this.$root.sendTopicToBroker(`openWB/chargepoint/${this.chargePointId}/get/rfid`,l),this.modalIdTagEntryVisible=!1}}},[["render",function(l,e,n,p,t,c){const P=h("FontAwesomeIcon"),V=h("i-button"),C=h("CodeInputModal");return d(),S(M,null,[a(V,{class:"_margin-right:1",size:"lg",color:c.tagButtonColor,disabled:c.tagState==2,onClick:e[0]||(e[0]=g=>c.toggleIdTagModal())},{default:i(()=>[a(P,{"fixed-width":"",icon:["fas","fa-calculator"],class:q(c.tagClass)},null,8,["class"])]),_:1},8,["color","disabled"]),a(C,{ref:"lockInput",modelValue:t.modalIdTagEntryVisible,"onUpdate:modelValue":e[1]||(e[1]=g=>t.modalIdTagEntryVisible=g),"min-length":4,"max-length":20,"onUpdate:inputValue":c.sendIdTag},{header:i(()=>e[2]||(e[2]=[r(" Bitte einen ID-Tag eingeben. ")])),_:1},8,["modelValue","onUpdate:inputValue"])],64)}]]);A.add(W,E,U,D,Z,R,j,K,O,J,G);const Ce={name:"ChargePointCard",components:{DashBoardCard:F,SparkLine:le,ChargePointPlugBadge:z,ChargePointLockButton:H,ChargePointCodeButton:Q,FontAwesomeIcon:$},props:{chargePointId:{type:Number,required:!0},changesLocked:{type:Boolean,required:!0}},emits:["vehicle-click","soc-click","charge-mode-click","toggle-charge-point-settings"],data:()=>({mqttStore:B()}),methods:{handleVehicleClick(l){this.$emit("vehicle-click",l)},handleSocClick(l){this.$emit("soc-click",l)},handleChargeModeClick(l){this.$emit("charge-mode-click",l)},toggleChargePointSettings(l){this.$emit("toggle-charge-point-settings",l)}}},Pe={key:0},pe=x(Ce,[["render",function(l,e,n,p,t,c){const P=h("charge-point-plug-badge"),V=h("charge-point-code-button"),C=h("charge-point-lock-button"),g=h("i-column"),I=h("i-row"),k=h("spark-line"),_=h("font-awesome-icon"),f=h("i-badge"),y=h("i-button"),b=h("i-container"),v=h("dash-board-card");return d(),u(v,{color:"primary"},{headerLeft:i(()=>[r(s(t.mqttStore.getChargePointName(n.chargePointId)),1)]),headerRight:i(()=>[a(P,{"charge-point-id":[n.chargePointId]},null,8,["charge-point-id"])]),default:i(()=>[a(b,null,{default:i(()=>[a(I,null,{default:i(()=>[a(g,null,{default:i(()=>[a(I,null,{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[t.mqttStore.getRfidEnabled?(d(),u(V,{key:0,"charge-point-id":n.chargePointId},null,8,["charge-point-id"])):m("",!0),a(C,{"charge-point-id":n.chargePointId,"changes-locked":n.changesLocked},null,8,["charge-point-id","changes-locked"])]),_:1}),a(g,{class:"_text-align:right _padding-left:0"},{default:i(()=>[r(s(t.mqttStore.getChargePointPower(n.chargePointId))+" "+s(t.mqttStore.getChargePointPhasesInUse(n.chargePointId))+" "+s(t.mqttStore.getChargePointSetCurrent(n.chargePointId)),1)]),_:1})]),_:1}),a(I,{class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0"},{default:i(()=>[a(k,{color:"var(--color--primary)",data:t.mqttStore.getChargePointPowerChartData(n.chargePointId)},null,8,["data"])]),_:1})]),_:1})]),_:1}),a(g,{md:"6"},{default:i(()=>[a(I,{class:"_display:flex"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0 _flex-grow:1"},{default:i(()=>[a(f,{size:"lg",class:q(["_width:100%",n.changesLocked?"":"clickable"]),onClick:e[0]||(e[0]=w=>c.handleVehicleClick(n.chargePointId))},{default:i(()=>[a(_,{"fixed-width":"",icon:["fas","fa-car"]}),r(" "+s(t.mqttStore.getChargePointConnectedVehicleName(n.chargePointId)),1)]),_:1},8,["class"])]),_:1}),t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))||t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))!=0?(d(),u(g,{key:0,class:"_flex-grow:0 _padding-right:0 _padding-left:1"},{default:i(()=>[a(y,{size:"sm",disabled:n.changesLocked,class:q(n.changesLocked?"":"clickable"),onClick:e[1]||(e[1]=w=>c.handleSocClick(n.chargePointId))},{default:i(()=>[t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))?(d(),S("span",Pe,[a(_,{"fixed-width":"",icon:t.mqttStore.getVehicleSocIsManual(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))?["fas","fa-edit"]:["fas","fa-car-battery"]},null,8,["icon"]),r(" "+s(t.mqttStore.getChargePointConnectedVehicleSoc(n.chargePointId).soc)+"% ",1)])):m("",!0),t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))!=0?(d(),u(_,{key:1,"fixed-width":"",icon:t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>1?["fas","times-circle"]:["fas","exclamation-triangle"]:[],class:q(t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>1?"_color:danger":"_color:warning":"")},null,8,["icon","class"])):m("",!0)]),_:1},8,["disabled","class"])]),_:1})):m("",!0)]),_:1}),a(I,{class:"_padding-top:1 _display:flex"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0 _flex-grow:1"},{default:i(()=>[a(f,{size:"lg",class:q(["_width:100%",n.changesLocked?"":"clickable"]),color:t.mqttStore.getChargePointConnectedVehicleChargeMode(n.chargePointId).class,onClick:e[2]||(e[2]=w=>c.handleChargeModeClick(n.chargePointId))},{default:i(()=>[r(s(t.mqttStore.getChargePointConnectedVehicleChargeMode(n.chargePointId).label)+" ",1),a(_,{"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehiclePriority(n.chargePointId)?["fas","fa-star"]:["far","fa-star"],class:q(t.mqttStore.getChargePointConnectedVehiclePriority(n.chargePointId)?"_color:warning":"")},null,8,["icon","class"])]),_:1},8,["class","color"])]),_:1}),t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(n.chargePointId)?(d(),u(g,{key:0,class:"_flex-grow:0 _padding-right:0 _padding-left:1"},{default:i(()=>[a(f,{size:"lg"},{default:i(()=>[t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(n.chargePointId)?(d(),u(_,{key:0,"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehicleTimeChargingRunning(n.chargePointId)?["fas","fa-clock"]:["far","fa-clock"],class:q(t.mqttStore.getChargePointConnectedVehicleTimeChargingRunning(n.chargePointId)?"_color:success":"")},null,8,["icon","class"])):m("",!0)]),_:1})]),_:1})):m("",!0)]),_:1}),n.changesLocked?m("",!0):(d(),u(I,{key:0,class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[a(y,{block:"",onClick:e[3]||(e[3]=w=>c.toggleChargePointSettings(n.chargePointId))},{default:i(()=>[a(_,{"fixed-width":"",icon:["fas","fa-wrench"]})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-3c6489c4"]]);A.add(W,E,U,D,Z,R,j,K,O,J,G);const fe={name:"ChargePointCard",components:{DashBoardCard:F,ChargePointPlugBadge:z,ChargePointLockButton:H,ChargePointCodeButton:Q,FontAwesomeIcon:$},props:{chargePointId:{type:Number,required:!0},changesLocked:{type:Boolean,required:!0}},emits:["vehicle-click","soc-click","charge-mode-click","toggle-charge-point-settings","set-charge-point-connected-vehicle-charge-mode"],data:()=>({mqttStore:B(),simpleChargeModes:["instant_charging","pv_charging","stop"]}),computed:{filteredChargeModes(){return this.mqttStore.getSimpleChargePointView?this.mqttStore.chargeModeList().filter(l=>this.simpleChargeModes.includes(l.id)):this.mqttStore.chargeModeList()}},methods:{handleVehicleClick(l){this.$emit("vehicle-click",l)},handleSocClick(l){this.$emit("soc-click",l)},handleChargeModeClick(l){this.$emit("charge-mode-click",l)},toggleChargePointSettings(l){this.$emit("toggle-charge-point-settings",l)},setChargePointConnectedVehicleChargeMode(l,e){this.$emit("set-charge-point-connected-vehicle-charge-mode",l,e)}}},Se={key:0},Ve=x(fe,[["render",function(l,e,n,p,t,c){const P=h("charge-point-plug-badge"),V=h("charge-point-code-button"),C=h("charge-point-lock-button"),g=h("i-column"),I=h("i-row"),k=h("font-awesome-icon"),_=h("i-button"),f=h("i-button-group"),y=h("i-container"),b=h("dash-board-card");return d(),u(b,{color:"primary"},{headerLeft:i(()=>[r(s(t.mqttStore.getChargePointName(n.chargePointId)),1)]),headerRight:i(()=>[a(P,{"charge-point-id":[n.chargePointId]},null,8,["charge-point-id"])]),default:i(()=>[a(y,null,{default:i(()=>[a(I,null,{default:i(()=>[a(g,null,{default:i(()=>[a(I,null,{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[t.mqttStore.getRfidEnabled?(d(),u(V,{key:0,"charge-point-id":n.chargePointId},null,8,["charge-point-id"])):m("",!0),a(C,{"charge-point-id":n.chargePointId,"changes-locked":n.changesLocked},null,8,["charge-point-id","changes-locked"])]),_:1}),a(g,{class:"_text-align:right _padding-left:0"},{default:i(()=>[r(s(t.mqttStore.getChargePointPower(n.chargePointId))+" "+s(t.mqttStore.getChargePointPhasesInUse(n.chargePointId))+" "+s(t.mqttStore.getChargePointSetCurrent(n.chargePointId)),1)]),_:1})]),_:1}),a(I,{class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0 button-group-wrapper"},{default:i(()=>[a(f,{class:"button-group main-button-group"},{default:i(()=>[a(_,{class:q(["large-button _flex-grow:1",n.changesLocked?"":"clickable"]),disabled:n.changesLocked,onClick:e[0]||(e[0]=v=>c.handleVehicleClick(n.chargePointId))},{default:i(()=>[a(k,{"fixed-width":"",icon:["fas","fa-car"]}),r(" "+s(t.mqttStore.getChargePointConnectedVehicleName(n.chargePointId))+" ",1),a(k,{class:q(["_padding-left:1",t.mqttStore.getChargePointConnectedVehiclePriority(n.chargePointId)?"_color:warning":""]),"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehiclePriority(n.chargePointId)?["fas","fa-star"]:["far","fa-star"]},null,8,["icon","class"])]),_:1},8,["class","disabled"]),t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))||t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))!=0?(d(),u(_,{key:0,class:q(["large-button _flex-grow:0",n.changesLocked?"":"clickable"]),disabled:n.changesLocked,onClick:e[1]||(e[1]=v=>c.handleSocClick(n.chargePointId))},{default:i(()=>[t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))?(d(),S("span",Se,[a(k,{"fixed-width":"",icon:t.mqttStore.getVehicleSocIsManual(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))?["fas","fa-edit"]:["fas","fa-car-battery"]},null,8,["icon"]),r(" "+s(t.mqttStore.getChargePointConnectedVehicleSoc(n.chargePointId).soc)+"% ",1)])):m("",!0),t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))!=0?(d(),u(k,{key:1,"fixed-width":"",icon:t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>1?["fas","times-circle"]:["fas","exclamation-triangle"]:[],class:q(t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(n.chargePointId))>1?"_color:danger":"_color:warning":"")},null,8,["icon","class"])):m("",!0)]),_:1},8,["disabled","class"])):m("",!0),a(_,{class:q(["large-button _flex-grow:0",n.changesLocked?"":"clickable"]),disabled:n.changesLocked,onClick:e[2]||(e[2]=v=>c.toggleChargePointSettings(n.chargePointId))},{default:i(()=>[a(k,{"fixed-width":"",icon:["fas","fa-wrench"]})]),_:1},8,["class","disabled"])]),_:1}),a(f,{class:"button-group _margin-top:1",disabled:n.changesLocked},{default:i(()=>[(d(!0),S(M,null,L(c.filteredChargeModes,v=>(d(),u(_,{key:v.id,outline:"",class:q(["large-button _flex-grow:1",n.changesLocked?"":"clickable"]),color:v.class!="dark"?v.class:"light",active:t.mqttStore.getChargePointConnectedVehicleChargeMode(n.chargePointId)!=null&&v.id==t.mqttStore.getChargePointConnectedVehicleChargeMode(n.chargePointId).mode,onClick:w=>c.setChargePointConnectedVehicleChargeMode(n.chargePointId,v.id)},{default:i(()=>[r(s(v.label),1)]),_:2},1032,["class","color","active","onClick"]))),128))]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-5e676b1f"]]),X=x({name:"ExtendedNumberInput",inheritAttrs:!1,props:{modelValue:{type:Number,required:!0,default:NaN},unit:{type:String,default:""},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array,default:void 0}},emits:["update:modelValue"],data(){return{minimum:this.labels?0:this.min,maximum:this.labels?this.labels.length-1:this.max,stepSize:this.labels?1:this.step}},computed:{label(){var l;return this.labels&&this.inputValue!=null?this.inputValuec.label=C),plaintext:"",class:"_text-align:right",size:"lg"},{prepend:i(()=>[a(P,{onClick:c.decrement},{default:i(()=>e[1]||(e[1]=[r(" - ")])),_:1},8,["onClick"])]),suffix:i(()=>[r(s(n.unit),1)]),append:i(()=>[a(P,{onClick:c.increment},{default:i(()=>e[2]||(e[2]=[r(" + ")])),_:1},8,["onClick"])]),_:1},8,["modelValue"])}]]),Ie=x({name:"ManualSocInput",components:{ExtendedNumberInput:X,NumberPad:ie},props:{modelValue:{required:!0,type:Boolean,default:!1},vehicleId:{required:!0,type:Number,default:0}},emits:["update:modelValue"],data:()=>({mqttStore:B(),newSoc:0}),methods:{enter(l){let e=10*this.newSoc+parseInt(l);e>=0&&e<=100&&(this.newSoc=e)},removeDigit(){this.newSoc=Math.trunc(this.newSoc/10)},clear(){this.newSoc=0},close(){this.$emit("update:modelValue",!1),this.newSoc=0},updateManualSoc(){this.$root.sendTopicToBroker(`openWB/vehicle/${this.vehicleId}/soc_module/calculated_soc_state/manual_soc`,this.newSoc),this.close()}}},[["render",function(l,e,n,p,t,c){const P=h("extended-number-input"),V=h("i-column"),C=h("i-row"),g=h("NumberPad"),I=h("i-container"),k=h("i-button"),_=h("i-modal");return d(),u(se,{to:"body"},[a(_,{"model-value":n.modelValue,size:"sm","onUpdate:modelValue":e[6]||(e[6]=f=>l.$emit("update:modelValue",f))},{header:i(()=>[r(' SoC für Fahrzeug "'+s(t.mqttStore.getVehicleName(n.vehicleId))+'" ',1)]),footer:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(V,null,{default:i(()=>[a(k,{color:"danger",onClick:e[4]||(e[4]=f=>c.close())},{default:i(()=>e[7]||(e[7]=[r(" Zurück ")])),_:1})]),_:1}),a(V,{class:"_text-align:right"},{default:i(()=>[a(k,{color:"success",onClick:e[5]||(e[5]=f=>c.updateManualSoc())},{default:i(()=>e[8]||(e[8]=[r(" OK ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:i(()=>[a(I,null,{default:i(()=>[a(C,{center:"",class:"_padding-bottom:1"},{default:i(()=>[a(V,null,{default:i(()=>[a(P,{modelValue:t.newSoc,"onUpdate:modelValue":e[0]||(e[0]=f=>t.newSoc=f),unit:"%",min:0,max:100,step:1,size:"lg",class:"_text-align:center"},null,8,["modelValue"])]),_:1})]),_:1}),a(g,{"onKey:digit":e[1]||(e[1]=f=>c.enter(f)),"onKey:clear":e[2]||(e[2]=f=>c.clear()),"onKey:delete":e[3]||(e[3]=f=>c.removeDigit())})]),_:1})]),_:1},8,["model-value"])])}]]);A.add(ce,de,he,ge);const _e={name:"ChargePointsView",components:{ChargePointCard:pe,SimpleChargePointCard:Ve,ExtendedNumberInput:X,ManualSocInput:Ie,FontAwesomeIcon:$},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:B(),modalChargeModeSettingVisible:!1,modalVehicleSelectVisible:!1,modalChargePointSettingsVisible:!1,modalChargePointId:0,modalVehicleId:0,modalActiveTab:"tab-general",modalManualSocInputVisible:!1,simpleChargeModes:["instant_charging","pv_charging","stop"]}),computed:{vehicleList(){let l=this.mqttStore.getVehicleList;var e=[];return Object.keys(l).forEach(n=>{let p=parseInt(n.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""));e.push({id:p,name:l[n]})}),e},filteredChargeModes(){return this.mqttStore.getSimpleChargePointView?this.mqttStore.chargeModeList().filter(l=>this.simpleChargeModes.includes(l.id)):this.mqttStore.chargeModeList()}},watch:{changesLocked(l,e){e!==!0&&l===!0&&(this.modalChargeModeSettingVisible=!1,this.modalVehicleSelectVisible=!1,this.modalChargePointSettingsVisible=!1,this.modalManualSocInputVisible=!1)}},methods:{toggleChargePointSettings(l){switch(this.mqttStore.getChargePointConnectedVehicleChargeMode(l).mode){case"pv_charging":this.modalActiveTab="tab-pv-charging";break;case"scheduled_charging":this.modalActiveTab="tab-scheduled-charging";break;default:this.modalActiveTab="tab-instant-charging"}this.modalChargePointId=l,this.modalChargePointSettingsVisible=!0},handleChargeModeClick(l){this.changesLocked||(this.modalChargePointId=l,this.modalChargeModeSettingVisible=!0)},handleVehicleClick(l){this.changesLocked||(this.modalChargePointId=l,this.modalVehicleSelectVisible=!0)},handleSocClick(l){let e=this.mqttStore.getChargePointConnectedVehicleId(l);if(this.mqttStore.getVehicleSocIsManual(e))return this.modalVehicleId=e,void(this.modalManualSocInputVisible=!0);this.$root.sendTopicToBroker(`openWB/set/vehicle/${e}/get/force_soc_update`,1)},setChargePointConnectedVehicle(l,e){e.id!=this.mqttStore.getChargePointConnectedVehicleId(l)&&this.$root.sendTopicToBroker(`openWB/chargepoint/${l}/config/ev`,e.id),this.modalVehicleSelectVisible&&(this.modalVehicleSelectVisible=!1)},setChargePointConnectedVehicleChargeMode(l,e){if(e.id!=this.mqttStore.getChargePointConnectedVehicleChargeMode(l)){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/selected`,e)}},setChargePointConnectedVehiclePriority(l,e){if(e!=this.mqttStore.getChargePointConnectedVehiclePriority(l)){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/prio`,e)}},setChargePointConnectedVehicleTimeChargingActive(l,e){if(e!=this.mqttStore.getChargePointConnectedVehicleTimeChargingActive(l)){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/time_charging/active`,e)}},setChargePointConnectedVehicleInstantChargingCurrent(l,e){if(e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingCurrent(l)){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/instant_charging/current`,parseFloat(e))}},setChargePointConnectedVehicleInstantChargingLimit(l,e){if(e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(l).selected){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/instant_charging/limit/selected`,e)}},setChargePointConnectedVehicleInstantChargingLimitSoc(l,e){if(e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(l).soc){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/instant_charging/limit/soc`,parseInt(e))}},setChargePointConnectedVehicleInstantChargingLimitAmount(l,e){if(e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(l).amount){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/instant_charging/limit/amount`,e)}},setChargePointConnectedVehiclePvChargingFeedInLimit(l,e){if(e!=this.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(l)){var n=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${n}/chargemode/pv_charging/feed_in_limit`,e)}},setChargePointConnectedVehiclePvChargingMinCurrent(l,e){let n=this.mqttStore.getChargePointConnectedVehiclePvChargingMinCurrent(l),p=parseInt(e);if(p!=n&&!isNaN(p)){var t=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${t}/chargemode/pv_charging/min_current`,p)}},setChargePointConnectedVehiclePvChargingMinSoc(l,e){let n=this.mqttStore.getChargePointConnectedVehiclePvChargingMinSoc(l),p=parseInt(e);if(p!=n&&!isNaN(p)){var t=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${t}/chargemode/pv_charging/min_soc`,p)}},setChargePointConnectedVehiclePvChargingMinSocCurrent(l,e){let n=this.mqttStore.getChargePointConnectedVehiclePvChargingMinSocCurrent(l),p=parseInt(e);if(p!=n&&!isNaN(p)){var t=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${t}/chargemode/pv_charging/min_soc_current`,p)}},setChargePointConnectedVehiclePvChargingMaxSoc(l,e){let n=this.mqttStore.getChargePointConnectedVehiclePvChargingMaxSoc(l),p=parseInt(e);if(p!=n&&!isNaN(p)){var t=this.mqttStore.getChargePointConnectedVehicleChargeTemplateIndex(l);this.$root.sendTopicToBroker(`openWB/vehicle/template/charge_template/${t}/chargemode/pv_charging/max_soc`,p)}},setChargePointConnectedVehicleScheduledChargingPlanActive(l,e){this.$root.sendTopicToBroker(`${l}/active`,e)},setChargePointConnectedVehicleTimeChargingPlanActive(l,e){this.$root.sendTopicToBroker(`${l}/active`,e)}}},be={class:"charge-points-card-wrapper"},ke={key:0},ve={key:1},qe={key:2},ye={key:3},we={key:4},Me={key:0},Te={key:1},xe={key:0},Le={key:1},Be={key:2},$e={key:3},Ae={key:4},De=x(_e,[["render",function(l,e,n,p,t,c){const P=h("i-button"),V=h("i-button-group"),C=h("i-form-group"),g=h("i-form-label"),I=h("i-form"),k=h("i-modal"),_=h("i-tab-title"),f=h("extended-number-input"),y=h("i-tab"),b=h("font-awesome-icon"),v=h("i-alert"),w=h("i-row"),N=h("i-container"),Y=h("i-tabs"),ee=h("manual-soc-input");return d(),S(M,null,[ue("div",be,[(d(!0),S(M,null,L(t.mqttStore.getChargePointIds,o=>(d(),u(me(t.mqttStore.getSimpleChargePointView?"SimpleChargePointCard":"ChargePointCard"),{key:o,"charge-point-id":o,"changes-locked":n.changesLocked,onVehicleClick:c.handleVehicleClick,onSocClick:c.handleSocClick,onChargeModeClick:c.handleChargeModeClick,onToggleChargePointSettings:c.toggleChargePointSettings,onSetChargePointConnectedVehicleChargeMode:c.setChargePointConnectedVehicleChargeMode},null,40,["charge-point-id","changes-locked","onVehicleClick","onSocClick","onChargeModeClick","onToggleChargePointSettings","onSetChargePointConnectedVehicleChargeMode"]))),128))]),a(k,{modelValue:t.modalChargeModeSettingVisible,"onUpdate:modelValue":e[2]||(e[2]=o=>t.modalChargeModeSettingVisible=o),size:"lg"},{header:i(()=>[r(' Lademodus für "'+s(t.mqttStore.getChargePointConnectedVehicleName(t.modalChargePointId))+'" auswählen ',1)]),default:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(V,{block:"",vertical:""},{default:i(()=>[(d(!0),S(M,null,L(c.filteredChargeModes,o=>(d(),u(P,{key:o.id,size:"lg",class:"large-button",outline:"",color:o.class!="dark"?o.class:"light",active:t.mqttStore.getChargePointConnectedVehicleChargeMode(t.modalChargePointId)!=null&&o.id==t.mqttStore.getChargePointConnectedVehicleChargeMode(t.modalChargePointId).mode,onClick:T=>c.setChargePointConnectedVehicleChargeMode(t.modalChargePointId,o.id)},{default:i(()=>[r(s(o.label),1)]),_:2},1032,["color","active","onClick"]))),128))]),_:1})]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[21]||(e[21]=[r("Priorität")])),_:1}),a(V,{block:""},{default:i(()=>[a(P,{size:"lg",class:"large-button",color:t.mqttStore.getChargePointConnectedVehiclePriority(t.modalChargePointId)!==!0?"danger":"",onClick:e[0]||(e[0]=o=>c.setChargePointConnectedVehiclePriority(t.modalChargePointId,!1))},{default:i(()=>e[22]||(e[22]=[r(" Nein ")])),_:1},8,["color"]),a(P,{color:t.mqttStore.getChargePointConnectedVehiclePriority(t.modalChargePointId)===!0?"success":"",onClick:e[1]||(e[1]=o=>c.setChargePointConnectedVehiclePriority(t.modalChargePointId,!0))},{default:i(()=>e[23]||(e[23]=[r(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(k,{modelValue:t.modalVehicleSelectVisible,"onUpdate:modelValue":e[3]||(e[3]=o=>t.modalVehicleSelectVisible=o),class:"modal-vehicle-select",size:"lg"},{header:i(()=>[r(' Fahrzeug an "'+s(t.mqttStore.getChargePointName(t.modalChargePointId))+'" auswählen ',1)]),default:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(V,{vertical:"",block:""},{default:i(()=>[(d(!0),S(M,null,L(c.vehicleList,o=>(d(),u(P,{key:o.id,size:"lg",class:"large-button",active:t.mqttStore.getChargePointConnectedVehicleId(t.modalChargePointId)==o.id,color:t.mqttStore.getChargePointConnectedVehicleId(t.modalChargePointId)==o.id?"primary":"",onClick:T=>c.setChargePointConnectedVehicle(t.modalChargePointId,o)},{default:i(()=>[r(s(o.name),1)]),_:2},1032,["active","color","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(k,{modelValue:t.modalChargePointSettingsVisible,"onUpdate:modelValue":e[19]||(e[19]=o=>t.modalChargePointSettingsVisible=o),size:"lg"},{header:i(()=>[r(' Einstellungen für Fahrzeug "'+s(t.mqttStore.getChargePointConnectedVehicleName(t.modalChargePointId))+'" ',1)]),default:i(()=>[a(Y,{modelValue:t.modalActiveTab,"onUpdate:modelValue":e[18]||(e[18]=o=>t.modalActiveTab=o),stretch:""},{header:i(()=>[a(_,{for:"tab-instant-charging"},{default:i(()=>e[24]||(e[24]=[r(" Sofort ")])),_:1}),a(_,{for:"tab-pv-charging"},{default:i(()=>e[25]||(e[25]=[r(" PV ")])),_:1}),t.mqttStore.getSimpleChargePointView?m("",!0):(d(),u(_,{key:0,for:"tab-scheduled-charging"},{default:i(()=>e[26]||(e[26]=[r(" Zielladen ")])),_:1})),t.mqttStore.getSimpleChargePointView?m("",!0):(d(),u(_,{key:1,for:"tab-time-charging"},{default:i(()=>e[27]||(e[27]=[r(" Zeitladen ")])),_:1}))]),default:i(()=>[a(y,{name:"tab-instant-charging"},{default:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[28]||(e[28]=[r("Stromstärke")])),_:1}),a(f,{unit:"A",min:6,max:32,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingCurrent(t.modalChargePointId),"onUpdate:modelValue":e[4]||(e[4]=o=>c.setChargePointConnectedVehicleInstantChargingCurrent(t.modalChargePointId,o))},null,8,["model-value"])]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[29]||(e[29]=[r("Begrenzung")])),_:1}),a(V,{block:""},{default:i(()=>[a(P,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="none"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="none",onClick:e[5]||(e[5]=o=>c.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"none"))},{default:i(()=>e[30]||(e[30]=[r(" Keine ")])),_:1},8,["color","active"]),a(P,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc",onClick:e[6]||(e[6]=o=>c.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"soc"))},{default:i(()=>e[31]||(e[31]=[r(" EV-SoC ")])),_:1},8,["color","active"]),a(P,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount",onClick:e[7]||(e[7]=o=>c.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"amount"))},{default:i(()=>e[32]||(e[32]=[r(" Energie ")])),_:1},8,["color","active"])]),_:1})]),_:1}),t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc"?(d(),u(C,{key:0},{default:i(()=>[a(g,null,{default:i(()=>e[33]||(e[33]=[r("Max. SoC")])),_:1}),a(f,{unit:"%",min:5,max:100,step:5,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).soc,"onUpdate:modelValue":e[8]||(e[8]=o=>c.setChargePointConnectedVehicleInstantChargingLimitSoc(t.modalChargePointId,o))},null,8,["model-value"])]),_:1})):m("",!0),t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount"?(d(),u(C,{key:1},{default:i(()=>[a(g,null,{default:i(()=>e[34]||(e[34]=[r("Max. Energie")])),_:1}),a(f,{unit:"kWh",min:1,max:100,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).amount/1e3,"onUpdate:modelValue":e[9]||(e[9]=o=>c.setChargePointConnectedVehicleInstantChargingLimitAmount(t.modalChargePointId,1e3*o))},null,8,["model-value"])]),_:1})):m("",!0)]),_:1})]),_:1}),a(y,{name:"tab-pv-charging"},{default:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[35]||(e[35]=[r("Einspeisegrenze beachten")])),_:1}),a(V,{block:""},{default:i(()=>[a(P,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId)!==!0?"danger":"",onClick:e[10]||(e[10]=o=>c.setChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId,!1))},{default:i(()=>e[36]||(e[36]=[r(" Nein ")])),_:1},8,["color"]),a(P,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId)===!0?"success":"",onClick:e[11]||(e[11]=o=>c.setChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId,!0))},{default:i(()=>e[37]||(e[37]=[r(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[38]||(e[38]=[r("Minimaler Dauerstrom")])),_:1}),a(f,{unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinCurrent(t.modalChargePointId),"onUpdate:modelValue":e[12]||(e[12]=o=>c.setChargePointConnectedVehiclePvChargingMinCurrent(t.modalChargePointId,o))},null,8,["model-value"])]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[39]||(e[39]=[r("Mindest-SoC")])),_:1}),a(f,{unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinSoc(t.modalChargePointId),"onUpdate:modelValue":e[13]||(e[13]=o=>c.setChargePointConnectedVehiclePvChargingMinSoc(t.modalChargePointId,o))},null,8,["model-value"])]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[40]||(e[40]=[r("Mindest-SoC Strom")])),_:1}),a(f,{min:6,max:32,unit:"A","model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocCurrent(t.modalChargePointId),"onUpdate:modelValue":e[14]||(e[14]=o=>c.setChargePointConnectedVehiclePvChargingMinSocCurrent(t.modalChargePointId,o))},null,8,["model-value"])]),_:1}),a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[41]||(e[41]=[r("SoC-Limit")])),_:1}),a(f,{unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMaxSoc(t.modalChargePointId),"onUpdate:modelValue":e[15]||(e[15]=o=>c.setChargePointConnectedVehiclePvChargingMaxSoc(t.modalChargePointId,o))},null,8,["model-value"])]),_:1})]),_:1})]),_:1}),t.mqttStore.getSimpleChargePointView?m("",!0):(d(),u(y,{key:0,name:"tab-scheduled-charging"},{default:i(()=>[Object.keys(t.mqttStore.getChargePointConnectedVehicleScheduledChargingPlans(t.modalChargePointId)).length===0?(d(),u(v,{key:0},{icon:i(()=>[a(b,{"fixed-width":"",icon:["fas","fa-info-circle"]})]),default:i(()=>[e[42]||(e[42]=r(" Es wurden noch keine Zeitpläne für das Zielladen eingerichtet. "))]),_:1})):(d(),u(I,{key:1},{default:i(()=>[(d(!0),S(M,null,L(t.mqttStore.getChargePointConnectedVehicleScheduledChargingPlans(t.modalChargePointId),(o,T)=>(d(),u(C,{key:T},{default:i(()=>[a(N,null,{default:i(()=>[a(w,null,{default:i(()=>[a(g,null,{default:i(()=>[r(s(o.name),1)]),_:2},1024)]),_:2},1024),a(w,null,{default:i(()=>[a(P,{size:"lg",block:"",color:o.active?"success":"danger",onClick:te=>c.setChargePointConnectedVehicleScheduledChargingPlanActive(T,!o.active)},{default:i(()=>[o.frequency.selected=="once"?(d(),S("span",ke,[a(b,{"fixed-width":"",icon:["fas","calendar-day"]}),r(" "+s(t.mqttStore.formatDate(o.frequency.once)),1)])):m("",!0),o.frequency.selected=="daily"?(d(),S("span",ve,[a(b,{"fixed-width":"",icon:["fas","calendar-week"]}),e[43]||(e[43]=r(" täglich "))])):m("",!0),o.frequency.selected=="weekly"?(d(),S("span",qe,[a(b,{"fixed-width":"",icon:["fas","calendar-alt"]}),r(" "+s(t.mqttStore.formatWeeklyScheduleDays(o.frequency.weekly)),1)])):m("",!0),a(b,{"fixed-width":"",icon:["fas","clock"]}),r(" "+s(o.time)+" ",1),o.limit.selected=="soc"?(d(),S("span",ye,[a(b,{"fixed-width":"",icon:["fas","car-battery"]}),r(" "+s(o.limit.soc_scheduled)+" % ",1)])):m("",!0),o.limit.selected=="amount"?(d(),S("span",we,[a(b,{"fixed-width":"",icon:["fas","bolt"]}),r(" "+s(o.limit.amount/1e3)+" kWh ",1)])):m("",!0)]),_:2},1032,["color","onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}))]),_:1})),t.mqttStore.getSimpleChargePointView?m("",!0):(d(),u(y,{key:1,name:"tab-time-charging"},{default:i(()=>[a(I,null,{default:i(()=>[a(C,null,{default:i(()=>[a(g,null,{default:i(()=>e[44]||(e[44]=[r("Zeitladen aktivieren")])),_:1}),a(V,{block:""},{default:i(()=>[a(P,{color:t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId)!==!0?"danger":"",onClick:e[16]||(e[16]=o=>c.setChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId,!1))},{default:i(()=>e[45]||(e[45]=[r(" Nein ")])),_:1},8,["color"]),a(P,{color:t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId)===!0?"success":"",onClick:e[17]||(e[17]=o=>c.setChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId,!0))},{default:i(()=>e[46]||(e[46]=[r(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1}),t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId)===!0?(d(),S("div",Me,[Object.keys(t.mqttStore.getChargePointConnectedVehicleTimeChargingPlans(t.modalChargePointId)).length===0?(d(),u(v,{key:0,color:"warning",class:"_margin-top:2"},{icon:i(()=>[a(b,{"fixed-width":"",icon:["fas","fa-circle-info"]})]),default:i(()=>[e[47]||(e[47]=r(" Es wurden noch keine Zeitpläne für das Zeitladen eingerichtet. "))]),_:1})):(d(),S("div",Te,[(d(!0),S(M,null,L(t.mqttStore.getChargePointConnectedVehicleTimeChargingPlans(t.modalChargePointId),(o,T)=>(d(),u(C,{key:T},{default:i(()=>[a(N,null,{default:i(()=>[a(w,null,{default:i(()=>[a(g,null,{default:i(()=>[r(s(o.name),1)]),_:2},1024)]),_:2},1024),a(w,null,{default:i(()=>[a(P,{size:"lg",block:"",color:o.active?"success":"danger",onClick:te=>c.setChargePointConnectedVehicleTimeChargingPlanActive(T,!o.active)},{default:i(()=>[o.frequency.selected=="once"?(d(),S("span",xe,[a(b,{"fixed-width":"",icon:["fas","calendar-day"]}),r(" "+s(t.mqttStore.formatDateRange(o.frequency.once)),1)])):m("",!0),o.frequency.selected=="daily"?(d(),S("span",Le,[a(b,{"fixed-width":"",icon:["fas","calendar-week"]}),e[48]||(e[48]=r(" täglich "))])):m("",!0),o.frequency.selected=="weekly"?(d(),S("span",Be,[a(b,{"fixed-width":"",icon:["fas","calendar-alt"]}),r(" "+s(t.mqttStore.formatWeeklyScheduleDays(o.frequency.weekly)),1)])):m("",!0),a(b,{"fixed-width":"",icon:["fas","clock"]}),r(" "+s(o.time.join("-"))+" ",1),o.limit.selected=="soc"?(d(),S("span",$e,[a(b,{"fixed-width":"",icon:["fas","car-battery"]}),r(" "+s(o.limit.soc)+" % ",1)])):m("",!0),o.limit.selected=="amount"?(d(),S("span",Ae,[a(b,{"fixed-width":"",icon:["fas","bolt"]}),r(" "+s(o.limit.amount/1e3)+" kWh ",1)])):m("",!0)]),_:2},1032,["color","onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]))])):m("",!0)]),_:1})]),_:1}))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),a(ee,{modelValue:t.modalManualSocInputVisible,"onUpdate:modelValue":e[20]||(e[20]=o=>t.modalManualSocInputVisible=o),"vehicle-id":t.modalVehicleId},null,8,["modelValue","vehicle-id"])],64)}],["__scopeId","data-v-76699ceb"]]);export{De as default}; diff --git a/packages/modules/display_themes/cards/web/assets/ChargePointsView-L_i2iL0g.css b/packages/modules/display_themes/cards/web/assets/ChargePointsView-L_i2iL0g.css new file mode 100644 index 0000000000..53e2cbcb6c --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/ChargePointsView-L_i2iL0g.css @@ -0,0 +1 @@ +.card[data-v-45dbe31a]{----background: inherit !important;----body--color: var(----color) !important}.clickable[data-v-45dbe31a]{cursor:pointer}.card[data-v-cb556d40]{----background: inherit !important;----body--color: var(----color) !important}.clickable[data-v-cb556d40]{cursor:pointer}.large-button[data-v-cb556d40]{height:3.75rem;font-size:1.5rem;padding:.75rem 1.5rem}.button-group-wrapper[data-v-cb556d40]{display:flex;flex-direction:column;padding-right:0}.main-button-group[data-v-cb556d40]{display:flex;flex-wrap:wrap;width:100%}.button.-outline:disabled.-disabled.-active[data-v-cb556d40]{----border-color: var(----border-color--hover);background:var(----background);color:var(----color)}.modal-vehicle-select[data-v-b89baba5] .modal-body{max-height:72vh;overflow-y:scroll}.large-button[data-v-b89baba5]{height:3.5rem;font-size:1.5rem;padding:.75rem 1.5rem}.chartContainer[data-v-5dcbf2fa]{width:100%;min-height:200px;height:min(50vh,300px)}.charge-points-card-wrapper[data-v-43f278ac]{display:grid;grid-template-columns:repeat(auto-fill,minmax(36rem,1fr));grid-gap:var(--spacing)}[data-v-43f278ac] .toggle .toggle-label:before{border-color:var(--color--dark-45)}[data-v-43f278ac] .tab{min-height:72vh;max-height:72vh;overflow-y:scroll}[data-v-43f278ac] .input-prepend,[data-v-43f278ac] .input-append{min-width:3em}.plan-name[data-v-43f278ac]{font-weight:700}.plan-details[data-v-43f278ac]{display:flex;flex-wrap:nowrap;justify-content:center}.plan-details>div[data-v-43f278ac]:not(:last-child){margin-right:.5em} diff --git a/packages/modules/display_themes/cards/web/assets/ChargePointsView-OtbDwJrE.js b/packages/modules/display_themes/cards/web/assets/ChargePointsView-OtbDwJrE.js new file mode 100644 index 0000000000..3f14ccaa4f --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/ChargePointsView-OtbDwJrE.js @@ -0,0 +1 @@ +var re=Object.defineProperty;var ce=(n,e,o)=>e in n?re(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o;var w=(n,e,o)=>ce(n,typeof e!="symbol"?e+"":e,o);import{u as x,C as de,N as he}from"./index-BYcKhBWB.js";import{D}from"./DashboardCard-5rGwPkme.js";import{C as W,S as ge}from"./ChargePointPlugBadge-weESa4ng.js";import{F as N,l as B,b as se,c as me,j as Ce,k as j,m as O,e as R,n as Z,o as K,p as J,q as H,r as Q,s as X,t as Y,u as G,v as ue,w as Pe,x as pe,y as fe,z as Ve}from"./vendor-fortawesome-D4MLbCBR.js";import{_ as M}from"./vendor-inkline-DMzDOCDa.js";import{l as u,q as i,p as d,o as h,s as a,z as b,e as _,F as E,k as c,f as P,x as p,A as F,I as Se,P as Ie,Q as _e,S as ve,U as ke,V as be,W as qe,X as ye,Y as Le,Z as Me,_ as xe,i as T,n as we}from"./vendor-CSZuzLkg.js";import{C as Te}from"./ChargeModeModal-C0nwI9o6.js";B.add(se,me);const ee=M({name:"ChargePointLockButton",components:{FontAwesomeIcon:N},props:{chargePointId:{required:!0,type:Number},changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:x()}),computed:{locked(){return this.mqttStore.getChargePointManualLock(this.chargePointId)},stateIcon(){return this.locked?["fas","fa-lock"]:["fas","fa-lock-open"]},stateClass(){return this.locked?["_color:danger"]:"_color:success"}},methods:{toggleChargePointManualLock(){this.changesLocked||this.$root.sendTopicToBroker(`openWB/chargepoint/${this.chargePointId}/set/manual_lock`,!this.mqttStore.getValueBool(`openWB/chargepoint/${this.chargePointId}/set/manual_lock`))}}},[["render",function(n,e,o,C,t,l){const f=d("font-awesome-icon"),k=d("i-button");return h(),u(k,{size:"lg",disabled:o.changesLocked,outline:o.changesLocked},{default:i(()=>[a(f,{"fixed-width":"",icon:l.stateIcon,class:b(l.stateClass),onClick:e[0]||(e[0]=v=>l.toggleChargePointManualLock())},null,8,["icon","class"])]),_:1},8,["disabled","outline"])}]]);B.add(Ce);const te=M({name:"ChargePointCodeButton",components:{FontAwesomeIcon:N,CodeInputModal:de},props:{chargePointId:{type:Number,required:!0}},data:()=>({mqttStore:x(),modalIdTagEntryVisible:!1,modalIdTagEntryColor:"warning",code:""}),computed:{tagState(){return this.mqttStore.getChargepointTagState(this.chargePointId)},tagButtonColor(){switch(this.tagState){case 2:return"success";case 1:return"warning";default:return""}},tagClass(){switch(this.tagState){case 2:return"_color:success-80";case 1:return"_color:warning-80";default:return""}}},methods:{toggleIdTagModal(){this.modalIdTagEntryVisible=!this.modalIdTagEntryVisible},sendIdTag(n){this.$root.sendTopicToBroker(`openWB/chargepoint/${this.chargePointId}/get/rfid`,n),this.modalIdTagEntryVisible=!1}}},[["render",function(n,e,o,C,t,l){const f=d("FontAwesomeIcon"),k=d("i-button"),v=d("CodeInputModal");return h(),_(E,null,[a(k,{class:"_margin-right:1",size:"lg",color:l.tagButtonColor,disabled:l.tagState==2,onClick:e[0]||(e[0]=g=>l.toggleIdTagModal())},{default:i(()=>[a(f,{"fixed-width":"",icon:["fas","fa-calculator"],class:b(l.tagClass)},null,8,["class"])]),_:1},8,["color","disabled"]),a(v,{ref:"lockInput",modelValue:t.modalIdTagEntryVisible,"onUpdate:modelValue":e[1]||(e[1]=g=>t.modalIdTagEntryVisible=g),"min-length":4,"max-length":20,"onUpdate:inputValue":l.sendIdTag},{header:i(()=>e[2]||(e[2]=[c(" Bitte einen ID-Tag eingeben. ")])),_:1},8,["modelValue","onUpdate:inputValue"])],64)}]]);B.add(j,O,R,Z,K,J,H,Q,X,Y,G);const Ee={name:"ChargePointCard",components:{DashboardCard:D,SparkLine:ge,ChargePointPlugBadge:W,ChargePointLockButton:ee,ChargePointCodeButton:te,FontAwesomeIcon:N},props:{chargePointId:{type:Number,required:!0},changesLocked:{type:Boolean,required:!0}},emits:["vehicle-click","soc-click","charge-mode-click","toggle-charge-point-settings"],data:()=>({mqttStore:x()}),methods:{handleVehicleClick(n){this.$emit("vehicle-click",n)},handleSocClick(n){this.$emit("soc-click",n)},handleChargeModeClick(n){this.$emit("charge-mode-click",n)},toggleChargePointSettings(n){this.$emit("toggle-charge-point-settings",n)}}},Ae={key:0},ze=M(Ee,[["render",function(n,e,o,C,t,l){const f=d("charge-point-plug-badge"),k=d("charge-point-code-button"),v=d("charge-point-lock-button"),g=d("i-column"),V=d("i-row"),s=d("spark-line"),m=d("font-awesome-icon"),S=d("i-badge"),y=d("i-button"),L=d("i-container"),q=d("dashboard-card");return h(),u(q,{color:"primary"},{headerLeft:i(()=>[c(p(t.mqttStore.getChargePointName(o.chargePointId)),1)]),headerRight:i(()=>[a(f,{"charge-point-id":[o.chargePointId]},null,8,["charge-point-id"])]),default:i(()=>[a(L,null,{default:i(()=>[a(V,null,{default:i(()=>[a(g,null,{default:i(()=>[a(V,null,{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[t.mqttStore.getRfidEnabled?(h(),u(k,{key:0,"charge-point-id":o.chargePointId},null,8,["charge-point-id"])):P("",!0),a(v,{"charge-point-id":o.chargePointId,"changes-locked":o.changesLocked},null,8,["charge-point-id","changes-locked"])]),_:1}),a(g,{class:"_text-align:right _padding-left:0"},{default:i(()=>[c(p(t.mqttStore.getChargePointPower(o.chargePointId))+" "+p(t.mqttStore.getChargePointPhasesInUse(o.chargePointId))+" "+p(t.mqttStore.getChargePointSetCurrent(o.chargePointId)),1)]),_:1})]),_:1}),a(V,{class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0"},{default:i(()=>[a(s,{color:"var(--color--primary)",data:t.mqttStore.getChargePointPowerChartData(o.chargePointId)},null,8,["data"])]),_:1})]),_:1})]),_:1}),a(g,{md:"6"},{default:i(()=>[a(V,{class:"_display:flex"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0 _flex-grow:1"},{default:i(()=>[a(S,{size:"lg",class:b(["_width:100%",o.changesLocked?"":"clickable"]),onClick:e[0]||(e[0]=I=>l.handleVehicleClick(o.chargePointId))},{default:i(()=>[a(m,{"fixed-width":"",icon:["fas","fa-car"]}),c(" "+p(t.mqttStore.getChargePointConnectedVehicleName(o.chargePointId)),1)]),_:1},8,["class"])]),_:1}),t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))||t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))!=0?(h(),u(g,{key:0,class:"_flex-grow:0 _padding-right:0 _padding-left:1"},{default:i(()=>[a(y,{size:"sm",disabled:o.changesLocked,class:b(o.changesLocked?"":"clickable"),onClick:e[1]||(e[1]=I=>l.handleSocClick(o.chargePointId))},{default:i(()=>[t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))?(h(),_("span",Ae,[a(m,{"fixed-width":"",icon:t.mqttStore.getVehicleSocIsManual(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))?["fas","fa-edit"]:["fas","fa-car-battery"]},null,8,["icon"]),c(" "+p(t.mqttStore.getChargePointConnectedVehicleSoc(o.chargePointId).soc)+"% ",1)])):P("",!0),t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))!=0?(h(),u(m,{key:1,"fixed-width":"",icon:t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>1?["fas","times-circle"]:["fas","exclamation-triangle"]:[],class:b(t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>1?"_color:danger":"_color:warning":"")},null,8,["icon","class"])):P("",!0)]),_:1},8,["disabled","class"])]),_:1})):P("",!0)]),_:1}),a(V,{class:"_padding-top:1 _display:flex"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0 _flex-grow:1"},{default:i(()=>{var I;return[a(S,{size:"lg",class:b(["_width:100%",o.changesLocked?"":"clickable"]),color:(I=t.mqttStore.getChargePointConnectedVehicleChargeMode(o.chargePointId))==null?void 0:I.class,onClick:e[2]||(e[2]=A=>l.handleChargeModeClick(o.chargePointId))},{default:i(()=>{var A;return[c(p((A=t.mqttStore.getChargePointConnectedVehicleChargeMode(o.chargePointId))==null?void 0:A.label)+" ",1),a(m,{"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehiclePriority(o.chargePointId)?["fas","fa-star"]:["far","fa-star"],class:b(t.mqttStore.getChargePointConnectedVehiclePriority(o.chargePointId)?"_color:warning":"")},null,8,["icon","class"])]}),_:1},8,["class","color"])]}),_:1}),t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(o.chargePointId)?(h(),u(g,{key:0,class:"_flex-grow:0 _padding-right:0 _padding-left:1"},{default:i(()=>[a(S,{size:"lg"},{default:i(()=>[t.mqttStore.getChargePointConnectedVehicleTimeChargingActive(o.chargePointId)?(h(),u(m,{key:0,"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehicleTimeChargingRunning(o.chargePointId)?["fas","fa-clock"]:["far","fa-clock"],class:b(t.mqttStore.getChargePointConnectedVehicleTimeChargingRunning(o.chargePointId)?"_color:success":"")},null,8,["icon","class"])):P("",!0)]),_:1})]),_:1})):P("",!0)]),_:1}),o.changesLocked?P("",!0):(h(),u(V,{key:0,class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[a(y,{block:"",onClick:e[3]||(e[3]=I=>l.toggleChargePointSettings(o.chargePointId))},{default:i(()=>[a(m,{"fixed-width":"",icon:["fas","fa-wrench"]})]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-45dbe31a"]]);B.add(j,O,R,Z,K,J,H,Q,X,Y,G);const Fe={name:"ChargePointCard",components:{DashboardCard:D,ChargePointPlugBadge:W,ChargePointLockButton:ee,ChargePointCodeButton:te,FontAwesomeIcon:N},props:{chargePointId:{type:Number,required:!0},changesLocked:{type:Boolean,required:!0}},emits:["vehicle-click","soc-click","charge-mode-click","toggle-charge-point-settings","set-charge-point-connected-vehicle-charge-mode"],data:()=>({mqttStore:x(),simpleChargeModes:["instant_charging","pv_charging","stop"]}),computed:{filteredChargeModes(){return this.mqttStore.getSimpleChargePointView?this.mqttStore.chargeModeList().filter(n=>this.simpleChargeModes.includes(n.id)):this.mqttStore.chargeModeList()}},methods:{handleVehicleClick(n){this.$emit("vehicle-click",n)},handleSocClick(n){this.$emit("soc-click",n)},handleChargeModeClick(n){this.$emit("charge-mode-click",n)},toggleChargePointSettings(n){this.$emit("toggle-charge-point-settings",n)},setChargePointConnectedVehicleChargeMode(n,e){this.$emit("set-charge-point-connected-vehicle-charge-mode",n,e)}}},Ne={key:0},Be=M(Fe,[["render",function(n,e,o,C,t,l){const f=d("charge-point-plug-badge"),k=d("charge-point-code-button"),v=d("charge-point-lock-button"),g=d("i-column"),V=d("i-row"),s=d("font-awesome-icon"),m=d("i-button"),S=d("i-button-group"),y=d("i-container"),L=d("dashboard-card");return h(),u(L,{color:"primary"},{headerLeft:i(()=>[c(p(t.mqttStore.getChargePointName(o.chargePointId)),1)]),headerRight:i(()=>[a(f,{"charge-point-id":[o.chargePointId]},null,8,["charge-point-id"])]),default:i(()=>[a(y,null,{default:i(()=>[a(V,null,{default:i(()=>[a(g,null,{default:i(()=>[a(V,null,{default:i(()=>[a(g,{class:"_padding-left:0 _padding-right:0"},{default:i(()=>[t.mqttStore.getRfidEnabled?(h(),u(k,{key:0,"charge-point-id":o.chargePointId},null,8,["charge-point-id"])):P("",!0),a(v,{"charge-point-id":o.chargePointId,"changes-locked":o.changesLocked},null,8,["charge-point-id","changes-locked"])]),_:1}),a(g,{class:"_text-align:right _padding-left:0"},{default:i(()=>[c(p(t.mqttStore.getChargePointPower(o.chargePointId))+" "+p(t.mqttStore.getChargePointPhasesInUse(o.chargePointId))+" "+p(t.mqttStore.getChargePointSetCurrent(o.chargePointId)),1)]),_:1})]),_:1}),a(V,{class:"_padding-top:1"},{default:i(()=>[a(g,{class:"_padding-left:0 button-group-wrapper"},{default:i(()=>[a(S,{class:"button-group main-button-group"},{default:i(()=>[a(m,{class:b(["large-button _flex-grow:1",o.changesLocked?"":"clickable"]),disabled:o.changesLocked,onClick:e[0]||(e[0]=q=>l.handleVehicleClick(o.chargePointId))},{default:i(()=>[a(s,{"fixed-width":"",icon:["fas","fa-car"]}),c(" "+p(t.mqttStore.getChargePointConnectedVehicleName(o.chargePointId))+" ",1),a(s,{class:b(["_padding-left:1",t.mqttStore.getChargePointConnectedVehiclePriority(o.chargePointId)?"_color:warning":""]),"fixed-width":"",icon:t.mqttStore.getChargePointConnectedVehiclePriority(o.chargePointId)?["fas","fa-star"]:["far","fa-star"]},null,8,["icon","class"])]),_:1},8,["class","disabled"]),t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))||t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))!=0?(h(),u(m,{key:0,class:b(["large-button _flex-grow:0",o.changesLocked?"":"clickable"]),disabled:o.changesLocked,onClick:e[1]||(e[1]=q=>l.handleSocClick(o.chargePointId))},{default:i(()=>[t.mqttStore.getVehicleSocConfigured(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))?(h(),_("span",Ne,[a(s,{"fixed-width":"",icon:t.mqttStore.getVehicleSocIsManual(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))?["fas","fa-edit"]:["fas","fa-car-battery"]},null,8,["icon"]),c(" "+p(t.mqttStore.getChargePointConnectedVehicleSoc(o.chargePointId).soc)+"% ",1)])):P("",!0),t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))!=0?(h(),u(s,{key:1,"fixed-width":"",icon:t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>1?["fas","times-circle"]:["fas","exclamation-triangle"]:[],class:b(t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>0?t.mqttStore.getVehicleFaultState(t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId))>1?"_color:danger":"_color:warning":"")},null,8,["icon","class"])):P("",!0)]),_:1},8,["disabled","class"])):P("",!0),a(m,{class:b(["large-button _flex-grow:0",o.changesLocked?"":"clickable"]),disabled:o.changesLocked,onClick:e[2]||(e[2]=q=>l.toggleChargePointSettings(o.chargePointId))},{default:i(()=>[a(s,{"fixed-width":"",icon:["fas","fa-wrench"]})]),_:1},8,["class","disabled"])]),_:1}),a(S,{class:"button-group _margin-top:1",disabled:o.changesLocked},{default:i(()=>[(h(!0),_(E,null,F(l.filteredChargeModes,q=>(h(),u(m,{key:q.id,outline:"",class:b(["large-button _flex-grow:1",o.changesLocked?"":"clickable"]),color:q.class!="dark"?q.class:"light",active:t.mqttStore.getChargePointConnectedVehicleChargeMode(o.chargePointId)!=null&&q.id==t.mqttStore.getChargePointConnectedVehicleChargeMode(o.chargePointId).mode,onClick:I=>l.setChargePointConnectedVehicleChargeMode(o.chargePointId,q.id)},{default:i(()=>[c(p(q.label),1)]),_:2},1032,["class","color","active","onClick"]))),128))]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-cb556d40"]]),$e={name:"ExtendedNumberInput",inheritAttrs:!1,props:{modelValue:{type:Number,required:!0,default:NaN},unit:{type:String,default:""},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array,default:void 0}},emits:["update:modelValue"],data(){return{minimum:this.labels?0:this.min,maximum:this.labels?this.labels.length-1:this.max,stepSize:this.labels?1:this.step}},computed:{label(){var n;return this.labels&&this.inputValue!=null?this.inputValuel.label=v),plaintext:"",class:"_text-align:right",size:"lg"},{prepend:i(()=>[a(f,{onClick:l.decrement},{default:i(()=>e[1]||(e[1]=[c(" - ")])),_:1},8,["onClick"])]),suffix:i(()=>[c(p(o.unit),1)]),append:i(()=>[a(f,{onClick:l.increment},{default:i(()=>e[2]||(e[2]=[c(" + ")])),_:1},8,["onClick"])]),_:1},8,["modelValue"])}]]),Ue=M({name:"ManualSocInput",components:{ExtendedNumberInput:ae,NumberPad:he},props:{modelValue:{required:!0,type:Boolean,default:!1},vehicleId:{required:!0,type:Number,default:0}},emits:["update:modelValue"],data:()=>({mqttStore:x(),newSoc:0}),methods:{enter(n){let e=10*this.newSoc+parseInt(n);e>=0&&e<=100&&(this.newSoc=e)},removeDigit(){this.newSoc=Math.trunc(this.newSoc/10)},clear(){this.newSoc=0},close(){this.$emit("update:modelValue",!1),this.newSoc=0},updateManualSoc(){this.$root.sendTopicToBroker(`openWB/vehicle/${this.vehicleId}/soc_module/calculated_soc_state/manual_soc`,this.newSoc),this.close()}}},[["render",function(n,e,o,C,t,l){const f=d("extended-number-input"),k=d("i-column"),v=d("i-row"),g=d("NumberPad"),V=d("i-container"),s=d("i-button"),m=d("i-modal");return h(),u(Se,{to:"body"},[a(m,{"model-value":o.modelValue,size:"sm","onUpdate:modelValue":e[6]||(e[6]=S=>n.$emit("update:modelValue",S))},{header:i(()=>[c(' SoC für Fahrzeug "'+p(t.mqttStore.getVehicleName(o.vehicleId))+'" ',1)]),footer:i(()=>[a(V,null,{default:i(()=>[a(v,null,{default:i(()=>[a(k,null,{default:i(()=>[a(s,{color:"danger",onClick:e[4]||(e[4]=S=>l.close())},{default:i(()=>e[7]||(e[7]=[c(" Zurück ")])),_:1})]),_:1}),a(k,{class:"_text-align:right"},{default:i(()=>[a(s,{color:"success",onClick:e[5]||(e[5]=S=>l.updateManualSoc())},{default:i(()=>e[8]||(e[8]=[c(" OK ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:i(()=>[a(V,null,{default:i(()=>[a(v,{center:"",class:"_padding-bottom:1"},{default:i(()=>[a(k,null,{default:i(()=>[a(f,{modelValue:t.newSoc,"onUpdate:modelValue":e[0]||(e[0]=S=>t.newSoc=S),unit:"%",min:0,max:100,step:1,size:"lg",class:"_text-align:center"},null,8,["modelValue"])]),_:1})]),_:1}),a(g,{"onKey:digit":e[1]||(e[1]=S=>l.enter(S)),"onKey:clear":e[2]||(e[2]=S=>l.clear()),"onKey:delete":e[3]||(e[3]=S=>l.removeDigit())})]),_:1})]),_:1},8,["model-value"])])}]]),De=M({name:"VehicleSelectModal",props:{modelValue:{required:!0,type:Boolean,default:!1},chargePointId:{type:Number,required:!0}},emits:["update:modelValue"],data:()=>({mqttStore:x()}),computed:{vehicleList(){let n=this.mqttStore.getVehicleList;var e=[];return Object.keys(n).forEach(o=>{let C=parseInt(o.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""));e.push({id:C,name:n[o]})}),e}},methods:{setChargePointConnectedVehicle(n){n.id!=this.mqttStore.getChargePointConnectedVehicleId(this.chargePointId)&&this.$root.sendTopicToBroker(`openWB/chargepoint/${this.chargePointId}/config/ev`,n.id)}}},[["render",function(n,e,o,C,t,l){const f=d("i-button"),k=d("i-button-group"),v=d("i-form-group"),g=d("i-form"),V=d("i-modal");return h(),u(V,{"model-value":o.modelValue,class:"modal-vehicle-select",size:"lg","onUpdate:modelValue":e[0]||(e[0]=s=>n.$emit("update:modelValue",s))},{header:i(()=>[c(' Fahrzeug an "'+p(t.mqttStore.getChargePointName(o.chargePointId))+'" auswählen ',1)]),default:i(()=>[a(g,null,{default:i(()=>[a(v,null,{default:i(()=>[a(k,{vertical:"",block:""},{default:i(()=>[(h(!0),_(E,null,F(l.vehicleList,s=>(h(),u(f,{key:s.id,size:"lg",class:"large-button",active:t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId)==s.id,color:t.mqttStore.getChargePointConnectedVehicleId(o.chargePointId)==s.id?"primary":"",onClick:m=>l.setChargePointConnectedVehicle(s)},{default:i(()=>[c(p(s.name),1)]),_:2},1032,["active","color","onClick"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"])}],["__scopeId","data-v-b89baba5"]]);_e.register(ve,ke,be,qe,ye,Le,Me,xe);const We={class:"chartContainer"},je=M({name:"ElectricityTariffChart",components:{ChartjsLine:Ie},props:{modelValue:{type:Number,required:!1,default:void 0}},emits:["update:modelValue"],data:()=>({mqttStore:x(),chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgb(18, 111, 142)",backgroundColor:"rgb(18, 111, 142)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:2,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]}}),computed:{chartDataRead(){return Object.keys(this.chartDataObject.datasets[0].data).length>0},chartDataObject(){let n=[];const e=this.mqttStore.getEtPrices;if(Object.keys(e).length>0){for(const[t,l]of Object.entries(e))n.push({timestamp:1e3*t,price:1e5*l});const C=n.slice(-1)[0];n.push({timestamp:C.timestamp+3599e3,price:C.price})}const o=this.chartDatasets;return o.datasets[0].data=n,o},priceAnnotations(){const n="rgba(73, 238, 73, 0.2)",e="rgba(255, 10, 13, 0.2)",o=this.chartDataObject.datasets[0].data;class C{constructor(){w(this,"type","box");w(this,"drawTime","beforeDatasetsDraw");w(this,"xMin",o[0].timestamp);w(this,"xMax",o[0].timestamp);w(this,"borderWidth",2);w(this,"cornerRadius",0)}}let t=[];if(this.modelValue!==void 0){for(let l=0;lthis.modelValue){let f=new C;for(f.borderColor=e,f.backgroundColor=e,f.xMin=o[l].timestamp;lthis.modelValue;)l++;l==o.length&&l--,f.xMax=o[l].timestamp,t.push(f)}}return t},myChartOptions(){return{plugins:{title:{display:!1},legend:{display:!1},annotation:{annotations:this.priceAnnotations}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit",color:"#ffffff"},ticks:{font:{size:12},color:"#ffffff",maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]",color:"#ffffff"},grid:{color:"#ffffff20"},ticks:{font:{size:12},stepSize:.1,maxTicksLimit:11,color:"#ffffff"}}}}}},methods:{chartClick(n){const e=this.$refs.priceChart.chart.getElementsAtEventForMode(n,"index",{intersect:!1},!0);e.length>0&&this.$emit("update:modelValue",Math.ceil(100*this.chartDataObject.datasets[0].data[e[0].index].price)/100)}}},[["render",function(n,e,o,C,t,l){const f=d("ChartjsLine");return h(),_("div",We,[l.chartDataRead?(h(),u(f,{key:0,ref:"priceChart",data:l.chartDataObject,options:l.myChartOptions,class:"chart",onClick:l.chartClick},null,8,["data","options","onClick"])):P("",!0)])}],["__scopeId","data-v-5dcbf2fa"]]);B.add(ue,Pe,pe,fe,Ve);const Oe={name:"ChargePointsView",components:{ChargePointCard:ze,SimpleChargePointCard:Be,ExtendedNumberInput:ae,ManualSocInput:Ue,ChargeModeModal:Te,VehicleSelectModal:De,FontAwesomeIcon:N,ElectricityTariffChart:je},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:x(),modalChargeModeSettingVisible:!1,modalVehicleSelectVisible:!1,modalChargePointSettingsVisible:!1,modalChargePointId:0,modalVehicleId:0,modalActiveTab:"tab-general",modalManualSocInputVisible:!1}),computed:{timeChargingEnabled(){return n=>this.mqttStore.getChargePointConnectedVehicleTimeChargingActive(n)===!0}},watch:{changesLocked(n,e){e!==!0&&n===!0&&(this.modalChargeModeSettingVisible=!1,this.modalVehicleSelectVisible=!1,this.modalChargePointSettingsVisible=!1,this.modalManualSocInputVisible=!1)}},methods:{toggleChargePointSettings(n){switch(this.mqttStore.getChargePointConnectedVehicleChargeMode(n).mode){case"pv_charging":this.modalActiveTab="tab-pv-charging";break;case"scheduled_charging":this.modalActiveTab="tab-scheduled-charging";break;case"eco_charging":this.modalActiveTab="tab-eco-charging";break;default:this.modalActiveTab="tab-instant-charging"}this.modalChargePointId=n,this.modalChargePointSettingsVisible=!0},handleChargeModeClick(n){this.changesLocked||(this.modalChargePointId=n,this.modalChargeModeSettingVisible=!0)},handleVehicleClick(n){this.changesLocked||(this.modalChargePointId=n,this.modalVehicleSelectVisible=!0)},handleSocClick(n){let e=this.mqttStore.getChargePointConnectedVehicleId(n);if(this.mqttStore.getVehicleSocIsManual(e))return this.modalVehicleId=e,void(this.modalManualSocInputVisible=!0);this.$root.sendTopicToBroker(`openWB/set/vehicle/${e}/get/force_soc_update`,1)},updateChargePointChargeTemplate(n,e,o=void 0){const C=this.mqttStore.updateState(`openWB/chargepoint/${n}/set/charge_template`,e,o);this.$root.sendTopicToBroker(`openWB/chargepoint/${n}/set/charge_template`,C)},setChargePointConnectedVehicleChargeMode(n,e){e.id!=this.mqttStore.getChargePointConnectedVehicleChargeMode(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.selected")},setChargePointConnectedVehiclePriority(n,e){e!=this.mqttStore.getChargePointConnectedVehiclePriority(n)&&this.updateChargePointChargeTemplate(n,e,"prio")},setChargePointConnectedVehicleTimeChargingActive(n,e){e!=this.mqttStore.getChargePointConnectedVehicleTimeChargingActive(n)&&this.updateChargePointChargeTemplate(n,e,"time_charging.active")},setChargePointConnectedVehicleInstantChargingCurrent(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingCurrent(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.instant_charging.current")},setChargePointConnectedVehicleInstantChargingPhases(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingPhases(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.instant_charging.phases_to_use")},setChargePointConnectedVehicleInstantChargingLimit(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(n).selected&&this.updateChargePointChargeTemplate(n,e,"chargemode.instant_charging.limit.selected")},setChargePointConnectedVehicleInstantChargingLimitSoc(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(n).soc&&this.updateChargePointChargeTemplate(n,parseInt(e),"chargemode.instant_charging.limit.soc")},setChargePointConnectedVehicleInstantChargingLimitAmount(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(n).amount&&this.updateChargePointChargeTemplate(n,e,"chargemode.instant_charging.limit.amount")},setChargePointConnectedVehiclePvChargingFeedInLimit(n,e){e!=this.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.pv_charging.feed_in_limit")},setChargePointConnectedVehiclePvChargingMinCurrent(n,e){let o=this.mqttStore.getChargePointConnectedVehiclePvChargingMinCurrent(n),C=parseInt(e);C==o||isNaN(C)||this.updateChargePointChargeTemplate(n,C,"chargemode.pv_charging.min_current")},setChargePointConnectedVehiclePvChargingPhases(n,e){e!==void 0&&e!=this.mqttStore.getChargePointConnectedVehiclePvChargingPhases(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.pv_charging.phases_to_use")},setChargePointConnectedVehiclePvChargingLimit(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehiclePvChargingLimit(n).selected&&this.updateChargePointChargeTemplate(n,e,"chargemode.pv_charging.limit.selected")},setChargePointConnectedVehiclePvChargingLimitSoc(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehiclePvChargingLimit(n).soc&&this.updateChargePointChargeTemplate(n,parseInt(e),"chargemode.pv_charging.limit.soc")},setChargePointConnectedVehiclePvChargingLimitAmount(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehiclePvChargingLimit(n).amount&&this.updateChargePointChargeTemplate(n,e,"chargemode.pv_charging.limit.amount")},setChargePointConnectedVehiclePvChargingMinSoc(n,e){let o=this.mqttStore.getChargePointConnectedVehiclePvChargingMinSoc(n),C=parseInt(e);C==o||isNaN(C)||this.updateChargePointChargeTemplate(n,C,"chargemode.pv_charging.min_soc")},setChargePointConnectedVehiclePvChargingMinSocCurrent(n,e){let o=this.mqttStore.getChargePointConnectedVehiclePvChargingMinSocCurrent(n),C=parseInt(e);C==o||isNaN(C)||this.updateChargePointChargeTemplate(n,C,"chargemode.pv_charging.min_soc_current")},setChargePointConnectedVehiclePvChargingMinSocPhases(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehiclePvChargingMinSocPhases(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.pv_charging.phases_to_use_min_soc")},setChargePointConnectedVehicleEcoChargingCurrent(n,e){let o=this.mqttStore.getChargePointConnectedVehicleEcoChargingCurrent(n),C=parseInt(e);C==o||isNaN(C)||this.updateChargePointChargeTemplate(n,C,"chargemode.eco_charging.current")},setChargePointConnectedVehicleEcoChargingPhases(n,e){e!==void 0&&e!=this.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(n)&&this.updateChargePointChargeTemplate(n,e,"chargemode.eco_charging.phases_to_use")},setChargePointConnectedVehicleEcoChargingLimit(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(n).selected&&this.updateChargePointChargeTemplate(n,e,"chargemode.eco_charging.limit.selected")},setChargePointConnectedVehicleEcoChargingLimitSoc(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(n).soc&&this.updateChargePointChargeTemplate(n,parseInt(e),"chargemode.eco_charging.limit.soc")},setChargePointConnectedVehicleEcoChargingLimitAmount(n,e){e&&e!=this.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(n).amount&&this.updateChargePointChargeTemplate(n,e,"chargemode.eco_charging.limit.amount")},setChargePointConnectedVehicleEcoChargingMaxPrice(n,e){let o=this.mqttStore.getChargePointConnectedVehicleEcoChargingMaxPrice(n),C=parseFloat(e);C==o||isNaN(C)||this.updateChargePointChargeTemplate(n,parseFloat((C/1e5).toFixed(7)),"chargemode.eco_charging.max_price")},setChargePointConnectedVehicleScheduledChargingPlanActive(n,e){const o=this.mqttStore.updateState(`${n}`,e,"active");this.$root.sendTopicToBroker(`${n}`,o)},setChargePointConnectedVehicleTimeChargingPlanActive(n,e){const o=this.mqttStore.updateState(`${n}`,e,"active");this.$root.sendTopicToBroker(`${n}`,o)}}},Re={class:"charge-points-card-wrapper"},Ze={class:"plan-name"},Ke={class:"plan-details"},Je={key:0},He={key:1},Qe={key:2},Xe={key:3},Ye={key:4},Ge={key:5},et={key:1},tt={class:"plan-name"},at={class:"plan-details"},it={key:0},nt={key:1},ot={key:2},lt={key:3},rt={key:4},Pt=M(Oe,[["render",function(n,e,o,C,t,l){const f=d("charge-mode-modal"),k=d("vehicle-select-modal"),v=d("i-tab-title"),g=d("i-form-label"),V=d("extended-number-input"),s=d("i-form-group"),m=d("i-button"),S=d("i-button-group"),y=d("i-form"),L=d("i-tab"),q=d("ElectricityTariffChart"),I=d("font-awesome-icon"),A=d("i-alert"),$=d("i-row"),U=d("i-container"),ie=d("i-tabs"),ne=d("i-modal"),oe=d("manual-soc-input");return h(),_(E,null,[T("div",Re,[(h(!0),_(E,null,F(t.mqttStore.getChargePointIds,r=>(h(),u(we(t.mqttStore.getSimpleChargePointView?"SimpleChargePointCard":"ChargePointCard"),{key:r,"charge-point-id":r,"changes-locked":o.changesLocked,onVehicleClick:l.handleVehicleClick,onSocClick:l.handleSocClick,onChargeModeClick:l.handleChargeModeClick,onToggleChargePointSettings:l.toggleChargePointSettings,onSetChargePointConnectedVehicleChargeMode:l.setChargePointConnectedVehicleChargeMode},null,40,["charge-point-id","changes-locked","onVehicleClick","onSocClick","onChargeModeClick","onToggleChargePointSettings","onSetChargePointConnectedVehicleChargeMode"]))),128))]),a(f,{modelValue:t.modalChargeModeSettingVisible,"onUpdate:modelValue":e[0]||(e[0]=r=>t.modalChargeModeSettingVisible=r),"charge-point-id":t.modalChargePointId},null,8,["modelValue","charge-point-id"]),a(k,{modelValue:t.modalVehicleSelectVisible,"onUpdate:modelValue":e[1]||(e[1]=r=>t.modalVehicleSelectVisible=r),"charge-point-id":t.modalChargePointId},null,8,["modelValue","charge-point-id"]),a(ne,{modelValue:t.modalChargePointSettingsVisible,"onUpdate:modelValue":e[39]||(e[39]=r=>t.modalChargePointSettingsVisible=r),size:"lg"},{header:i(()=>[c(' Einstellungen für Fahrzeug "'+p(t.mqttStore.getChargePointConnectedVehicleName(t.modalChargePointId))+'" ',1)]),default:i(()=>[a(ie,{modelValue:t.modalActiveTab,"onUpdate:modelValue":e[38]||(e[38]=r=>t.modalActiveTab=r),stretch:""},{header:i(()=>[a(v,{for:"tab-instant-charging"},{default:i(()=>e[41]||(e[41]=[c(" Sofort ")])),_:1}),a(v,{for:"tab-pv-charging"},{default:i(()=>e[42]||(e[42]=[c(" PV ")])),_:1}),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(v,{key:0,for:"tab-eco-charging"},{default:i(()=>e[43]||(e[43]=[c(" Eco ")])),_:1})),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(v,{key:1,for:"tab-scheduled-charging"},{default:i(()=>e[44]||(e[44]=[c(" Ziel ")])),_:1})),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(v,{key:2,for:"tab-time-charging"},{default:i(()=>e[45]||(e[45]=[c(" Zeit ")])),_:1}))]),default:i(()=>[a(L,{name:"tab-instant-charging"},{default:i(()=>[a(y,null,{default:i(()=>[a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[46]||(e[46]=[c("Stromstärke")])),_:1}),a(V,{unit:"A",min:6,max:32,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingCurrent(t.modalChargePointId),"onUpdate:modelValue":e[2]||(e[2]=r=>l.setChargePointConnectedVehicleInstantChargingCurrent(t.modalChargePointId,r))},null,8,["model-value"])]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[47]||(e[47]=[c("Anzahl Phasen")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId)==1?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId)==1,onClick:e[3]||(e[3]=r=>l.setChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId,1))},{default:i(()=>e[48]||(e[48]=[c(" 1 ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId)==3?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId)==3,onClick:e[4]||(e[4]=r=>l.setChargePointConnectedVehicleInstantChargingPhases(t.modalChargePointId,3))},{default:i(()=>e[49]||(e[49]=[c(" Maximum ")])),_:1},8,["color","active"])]),_:1})]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[50]||(e[50]=[c("Begrenzung")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="none"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="none",onClick:e[5]||(e[5]=r=>l.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"none"))},{default:i(()=>e[51]||(e[51]=[c(" Aus ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc",onClick:e[6]||(e[6]=r=>l.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"soc"))},{default:i(()=>e[52]||(e[52]=[c(" EV-SoC ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount",onClick:e[7]||(e[7]=r=>l.setChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId,"amount"))},{default:i(()=>e[53]||(e[53]=[c(" Energie ")])),_:1},8,["color","active"])]),_:1})]),_:1}),t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="soc"?(h(),u(s,{key:0},{default:i(()=>[a(g,null,{default:i(()=>e[54]||(e[54]=[c("Max. SoC")])),_:1}),a(V,{unit:"%",min:5,max:100,step:5,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).soc,"onUpdate:modelValue":e[8]||(e[8]=r=>l.setChargePointConnectedVehicleInstantChargingLimitSoc(t.modalChargePointId,r))},null,8,["model-value"])]),_:1})):P("",!0),t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).selected=="amount"?(h(),u(s,{key:1},{default:i(()=>[a(g,null,{default:i(()=>e[55]||(e[55]=[c("Max. Energie")])),_:1}),a(V,{unit:"kWh",min:1,max:100,"model-value":t.mqttStore.getChargePointConnectedVehicleInstantChargingLimit(t.modalChargePointId).amount/1e3,"onUpdate:modelValue":e[9]||(e[9]=r=>l.setChargePointConnectedVehicleInstantChargingLimitAmount(t.modalChargePointId,1e3*r))},null,8,["model-value"])]),_:1})):P("",!0)]),_:1})]),_:1}),a(L,{name:"tab-pv-charging"},{default:i(()=>[a(y,null,{default:i(()=>[a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[56]||(e[56]=[c("Minimaler Dauerstrom")])),_:1}),a(V,{unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinCurrent(t.modalChargePointId),"onUpdate:modelValue":e[10]||(e[10]=r=>l.setChargePointConnectedVehiclePvChargingMinCurrent(t.modalChargePointId,r))},null,8,["model-value"])]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[57]||(e[57]=[c("Anzahl Phasen")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==1?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==1,onClick:e[11]||(e[11]=r=>l.setChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId,1))},{default:i(()=>e[58]||(e[58]=[c(" 1 ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==3?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==3,onClick:e[12]||(e[12]=r=>l.setChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId,3))},{default:i(()=>e[59]||(e[59]=[c(" Maximum ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==0?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId)==0,onClick:e[13]||(e[13]=r=>l.setChargePointConnectedVehiclePvChargingPhases(t.modalChargePointId,0))},{default:i(()=>e[60]||(e[60]=[c(" Automatik ")])),_:1},8,["color","active"])]),_:1})]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[61]||(e[61]=[c("Begrenzung")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="none"?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="none",onClick:e[14]||(e[14]=r=>l.setChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId,"none"))},{default:i(()=>e[62]||(e[62]=[c(" Aus ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="soc"?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="soc",onClick:e[15]||(e[15]=r=>l.setChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId,"soc"))},{default:i(()=>e[63]||(e[63]=[c(" EV-SoC ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="amount"?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="amount",onClick:e[16]||(e[16]=r=>l.setChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId,"amount"))},{default:i(()=>e[64]||(e[64]=[c(" Energie ")])),_:1},8,["color","active"])]),_:1})]),_:1}),t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="soc"?(h(),u(s,{key:0},{default:i(()=>[a(g,null,{default:i(()=>e[65]||(e[65]=[c("SoC-Limit für das Fahrzeug")])),_:1}),a(V,{unit:"%",min:5,max:100,step:5,"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).soc,"onUpdate:modelValue":e[17]||(e[17]=r=>l.setChargePointConnectedVehiclePvChargingLimitSoc(t.modalChargePointId,r))},null,8,["model-value"])]),_:1})):P("",!0),t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).selected=="amount"?(h(),u(s,{key:1},{default:i(()=>[a(g,null,{default:i(()=>e[66]||(e[66]=[c("Energie-Limit")])),_:1}),a(V,{unit:"kWh",min:1,max:100,"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingLimit(t.modalChargePointId).amount/1e3,"onUpdate:modelValue":e[18]||(e[18]=r=>l.setChargePointConnectedVehiclePvChargingLimitAmount(t.modalChargePointId,1e3*r))},null,8,["model-value"])]),_:1})):P("",!0),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[67]||(e[67]=[c("Mindest-SoC für das Fahrzeug")])),_:1}),a(V,{unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinSoc(t.modalChargePointId),"onUpdate:modelValue":e[19]||(e[19]=r=>l.setChargePointConnectedVehiclePvChargingMinSoc(t.modalChargePointId,r))},null,8,["model-value"])]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[68]||(e[68]=[c("Mindest-SoC Strom")])),_:1}),a(V,{min:6,max:32,unit:"A","model-value":t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocCurrent(t.modalChargePointId),"onUpdate:modelValue":e[20]||(e[20]=r=>l.setChargePointConnectedVehiclePvChargingMinSocCurrent(t.modalChargePointId,r))},null,8,["model-value"])]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[69]||(e[69]=[c("Anzahl Phasen Mindest-SoC")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId)==1?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId)==1,onClick:e[21]||(e[21]=r=>l.setChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId,1))},{default:i(()=>e[70]||(e[70]=[c(" 1 ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId)==3?"primary":"",active:t.mqttStore.getChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId)==3,onClick:e[22]||(e[22]=r=>l.setChargePointConnectedVehiclePvChargingMinSocPhases(t.modalChargePointId,3))},{default:i(()=>e[71]||(e[71]=[c(" Maximum ")])),_:1},8,["color","active"])]),_:1})]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[72]||(e[72]=[c("Einspeisegrenze beachten")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId)!==!0?"danger":"",onClick:e[23]||(e[23]=r=>l.setChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId,!1))},{default:i(()=>e[73]||(e[73]=[c(" Nein ")])),_:1},8,["color"]),a(m,{color:t.mqttStore.getChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId)===!0?"success":"",onClick:e[24]||(e[24]=r=>l.setChargePointConnectedVehiclePvChargingFeedInLimit(t.modalChargePointId,!0))},{default:i(()=>e[74]||(e[74]=[c(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1})]),_:1})]),_:1}),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(L,{key:0,name:"tab-eco-charging"},{default:i(()=>[a(y,null,{default:i(()=>[a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[75]||(e[75]=[c("Minimaler Dauerstrom unter Preisgrenze")])),_:1}),a(V,{unit:"A",min:6,max:32,"model-value":t.mqttStore.getChargePointConnectedVehicleEcoChargingCurrent(t.modalChargePointId),"onUpdate:modelValue":e[25]||(e[25]=r=>l.setChargePointConnectedVehicleEcoChargingCurrent(t.modalChargePointId,r))},null,8,["model-value"])]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[76]||(e[76]=[c("Anzahl Phasen")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==1?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==1,onClick:e[26]||(e[26]=r=>l.setChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId,1))},{default:i(()=>e[77]||(e[77]=[c(" 1 ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==3?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==3,onClick:e[27]||(e[27]=r=>l.setChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId,3))},{default:i(()=>e[78]||(e[78]=[c(" Maximum ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==0?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId)==0,onClick:e[28]||(e[28]=r=>l.setChargePointConnectedVehicleEcoChargingPhases(t.modalChargePointId,0))},{default:i(()=>e[79]||(e[79]=[c(" Automatik ")])),_:1},8,["color","active"])]),_:1})]),_:1}),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[80]||(e[80]=[c("Begrenzung")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="none"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="none",onClick:e[29]||(e[29]=r=>l.setChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId,"none"))},{default:i(()=>e[81]||(e[81]=[c(" Aus ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="soc"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="soc",onClick:e[30]||(e[30]=r=>l.setChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId,"soc"))},{default:i(()=>e[82]||(e[82]=[c(" EV-SoC ")])),_:1},8,["color","active"]),a(m,{color:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="amount"?"primary":"",active:t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="amount",onClick:e[31]||(e[31]=r=>l.setChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId,"amount"))},{default:i(()=>e[83]||(e[83]=[c(" Energie ")])),_:1},8,["color","active"])]),_:1})]),_:1}),t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="soc"?(h(),u(s,{key:0},{default:i(()=>[a(g,null,{default:i(()=>e[84]||(e[84]=[c("SoC-Limit für das Fahrzeug")])),_:1}),a(V,{unit:"%",min:5,max:100,step:5,"model-value":t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).soc,"onUpdate:modelValue":e[32]||(e[32]=r=>l.setChargePointConnectedVehicleEcoChargingLimitSoc(t.modalChargePointId,r))},null,8,["model-value"])]),_:1})):P("",!0),t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).selected=="amount"?(h(),u(s,{key:1},{default:i(()=>[a(g,null,{default:i(()=>e[85]||(e[85]=[c("Energie-Limit")])),_:1}),a(V,{unit:"kWh",min:1,max:100,"model-value":t.mqttStore.getChargePointConnectedVehicleEcoChargingLimit(t.modalChargePointId).amount/1e3,"onUpdate:modelValue":e[33]||(e[33]=r=>l.setChargePointConnectedVehicleEcoChargingLimitAmount(t.modalChargePointId,1e3*r))},null,8,["model-value"])]),_:1})):P("",!0),a(s,null,{default:i(()=>[a(g,null,{default:i(()=>e[86]||(e[86]=[c("Preisgrenze für strompreisbasiertes Laden")])),_:1}),a(V,{unit:"ct/kWh",min:-80,max:80,step:.01,precision:2,"model-value":t.mqttStore.getChargePointConnectedVehicleEcoChargingMaxPrice(t.modalChargePointId),"onUpdate:modelValue":e[34]||(e[34]=r=>l.setChargePointConnectedVehicleEcoChargingMaxPrice(t.modalChargePointId,r))},null,8,["model-value"]),a(q,{"model-value":t.mqttStore.getChargePointConnectedVehicleEcoChargingMaxPrice(t.modalChargePointId),"onUpdate:modelValue":e[35]||(e[35]=r=>l.setChargePointConnectedVehicleEcoChargingMaxPrice(t.modalChargePointId,r))},null,8,["model-value"])]),_:1})]),_:1})]),_:1})),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(L,{key:1,name:"tab-scheduled-charging"},{default:i(()=>[Object.keys(t.mqttStore.getChargePointConnectedVehicleScheduledChargingPlans(t.modalChargePointId)).length===0?(h(),u(A,{key:0},{icon:i(()=>[a(I,{"fixed-width":"",icon:["fas","fa-info-circle"]})]),default:i(()=>[e[87]||(e[87]=c(" Es wurden noch keine Zeitpläne für das Zielladen eingerichtet. "))]),_:1})):(h(),u(y,{key:1},{default:i(()=>[(h(!0),_(E,null,F(t.mqttStore.getChargePointConnectedVehicleScheduledChargingPlans(t.modalChargePointId),(r,z)=>(h(),u(s,{key:z},{default:i(()=>[a(U,null,{default:i(()=>[a($,null,{default:i(()=>[a(m,{size:"lg",block:"",color:r.active?"success":"danger",onClick:le=>l.setChargePointConnectedVehicleScheduledChargingPlanActive(z,!r.active)},{default:i(()=>[T("div",Ze,p(r.name),1),T("div",Ke,[r.frequency.selected=="once"?(h(),_("div",Je,[a(I,{icon:["fas","calendar-day"]}),c(" "+p(t.mqttStore.formatDate(r.frequency.once)),1)])):P("",!0),r.frequency.selected=="daily"?(h(),_("div",He,[a(I,{icon:["fas","calendar-week"]}),e[88]||(e[88]=c(" täglich "))])):P("",!0),r.frequency.selected=="weekly"?(h(),_("div",Qe,[a(I,{icon:["fas","calendar-alt"]}),c(" "+p(t.mqttStore.formatWeeklyScheduleDays(r.frequency.weekly)),1)])):P("",!0),T("div",null,[a(I,{icon:["fas","clock"]}),c(" "+p(r.time),1)]),r.limit.selected=="soc"?(h(),_("div",Xe,[a(I,{icon:["fas","car-battery"]}),c(" "+p(r.limit.soc_scheduled)+" % ",1)])):P("",!0),r.limit.selected=="amount"?(h(),_("div",Ye,[a(I,{icon:["fas","bolt"]}),c(" "+p(r.limit.amount/1e3)+" kWh ",1)])):P("",!0),r.et_active?(h(),_("div",Ge,[a(I,{icon:["fas","coins"]})])):P("",!0)])]),_:2},1032,["color","onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}))]),_:1})),t.mqttStore.getSimpleChargePointView?P("",!0):(h(),u(L,{key:2,name:"tab-time-charging"},{default:i(()=>[a(y,null,{default:i(()=>[a(s,{class:"_margin-bottom:2"},{default:i(()=>[a(g,null,{default:i(()=>e[89]||(e[89]=[c("Zeitladen aktivieren")])),_:1}),a(S,{block:""},{default:i(()=>[a(m,{color:l.timeChargingEnabled(t.modalChargePointId)?"":"danger",onClick:e[36]||(e[36]=r=>l.setChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId,!1))},{default:i(()=>e[90]||(e[90]=[c(" Nein ")])),_:1},8,["color"]),a(m,{color:l.timeChargingEnabled(t.modalChargePointId)?"success":"",onClick:e[37]||(e[37]=r=>l.setChargePointConnectedVehicleTimeChargingActive(t.modalChargePointId,!0))},{default:i(()=>e[91]||(e[91]=[c(" Ja ")])),_:1},8,["color"])]),_:1})]),_:1}),Object.keys(t.mqttStore.getChargePointConnectedVehicleTimeChargingPlans(t.modalChargePointId)).length===0?(h(),u(A,{key:0,color:"warning"},{icon:i(()=>[a(I,{"fixed-width":"",icon:["fas","fa-circle-info"]})]),default:i(()=>[e[92]||(e[92]=c(" Es wurden noch keine Zeitpläne für das Zeitladen eingerichtet. "))]),_:1})):(h(),_("div",et,[(h(!0),_(E,null,F(t.mqttStore.getChargePointConnectedVehicleTimeChargingPlans(t.modalChargePointId),(r,z)=>(h(),u(s,{key:z},{default:i(()=>[a(U,null,{default:i(()=>[a($,null,{default:i(()=>[a(m,{size:"lg",block:"",color:r.active?"success":"danger",onClick:le=>l.setChargePointConnectedVehicleTimeChargingPlanActive(z,!r.active)},{default:i(()=>[T("div",tt,p(r.name),1),T("div",at,[r.frequency.selected=="once"?(h(),_("div",it,[a(I,{icon:["fas","calendar-day"]}),c(" "+p(t.mqttStore.formatDateRange(r.frequency.once)),1)])):P("",!0),r.frequency.selected=="daily"?(h(),_("div",nt,[a(I,{icon:["fas","calendar-week"]}),e[93]||(e[93]=c(" täglich "))])):P("",!0),r.frequency.selected=="weekly"?(h(),_("div",ot,[a(I,{icon:["fas","calendar-alt"]}),c(" "+p(t.mqttStore.formatWeeklyScheduleDays(r.frequency.weekly)),1)])):P("",!0),T("div",null,[a(I,{icon:["fas","clock"]}),c(" "+p(r.time.join("-")),1)]),r.limit.selected=="soc"?(h(),_("div",lt,[a(I,{icon:["fas","car-battery"]}),c(" "+p(r.limit.soc)+" % ",1)])):P("",!0),r.limit.selected=="amount"?(h(),_("div",rt,[a(I,{icon:["fas","bolt"]}),c(" "+p(r.limit.amount/1e3)+" kWh ",1)])):P("",!0)])]),_:2},1032,["color","onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]))]),_:1})]),_:1}))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),a(oe,{modelValue:t.modalManualSocInputVisible,"onUpdate:modelValue":e[40]||(e[40]=r=>t.modalManualSocInputVisible=r),"vehicle-id":t.modalVehicleId},null,8,["modelValue","vehicle-id"])],64)}],["__scopeId","data-v-43f278ac"]]);export{Pt as default}; diff --git a/packages/modules/display_themes/cards/web/assets/DashBoardCard-Bl80pQ9w.css b/packages/modules/display_themes/cards/web/assets/DashBoardCard-Bl80pQ9w.css deleted file mode 100644 index a81cdaf8f2..0000000000 --- a/packages/modules/display_themes/cards/web/assets/DashBoardCard-Bl80pQ9w.css +++ /dev/null @@ -1 +0,0 @@ -.column[data-v-c53b85bf]{padding-left:0;padding-right:0}.card[data-v-c53b85bf]{----background: inherit !important;----body--color: var(--contrast-color-for-dark-background) !important} diff --git a/packages/modules/display_themes/cards/web/assets/DashBoardView-Bir-HyNc.js b/packages/modules/display_themes/cards/web/assets/DashBoardView-Bir-HyNc.js deleted file mode 100644 index 7952d4d479..0000000000 --- a/packages/modules/display_themes/cards/web/assets/DashBoardView-Bir-HyNc.js +++ /dev/null @@ -1 +0,0 @@ -import{u as l}from"./index-Bewn8wIg.js";import{D as q}from"./DashBoardCard-B7mtE8H4.js";import{S as P,C as b}from"./ChargePointPlugBadge-BsQ5Ic20.js";import{F as w,l as y,d as I,e as B,g as D,h as L,i as _}from"./vendor-fortawesome-BuJHQtFF.js";import{_ as p}from"./vendor-inkline-CPyfyZy8.js";import{l as c,q as a,p as e,o as s,s as i,k as g,x as h,f as m,e as x}from"./vendor-DR1uipmZ.js";y.add(I);const E=p({name:"GridCard",components:{DashBoardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dash-board-card");return s(),c(n,{color:"danger"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-gauge-high"]}),r[0]||(r[0]=g(" EVU "))]),headerRight:a(()=>[g(h(t.mqttStore.getGridPower()),1)]),default:a(()=>[i(d,{color:"var(--color--danger)","color-negative":"var(--color--success)",data:t.mqttStore.getGridPowerChartData},null,8,["data"])]),_:1})}]]);y.add(B);const F=p({name:"BatteryCard",components:{DashBoardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dash-board-card");return t.mqttStore.getBatteryConfigured?(s(),c(n,{key:0,color:"warning"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-car-battery"]}),r[0]||(r[0]=g(" Speicher "))]),headerRight:a(()=>[g(h(t.mqttStore.getBatterySoc())+" / "+h(t.mqttStore.getBatteryPower()),1)]),default:a(()=>[i(d,{color:"var(--color--warning)",data:t.mqttStore.getBatteryPowerChartData,"soc-data":t.mqttStore.getBatterySocChartData},null,8,["data","soc-data"])]),_:1})):m("",!0)}]]);y.add(D);const H=p({name:"InverterCard",components:{DashBoardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dash-board-card");return t.mqttStore.getPvConfigured?(s(),c(n,{key:0,color:"success"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-solar-panel"]}),r[0]||(r[0]=g(" PV "))]),headerRight:a(()=>[g(h(t.mqttStore.getPvPower()),1)]),default:a(()=>[i(d,{color:"var(--color--success)",data:t.mqttStore.getPvPowerChartData,inverted:!0},null,8,["data"])]),_:1})):m("",!0)}]]);y.add(L);const A=p({name:"HomeCard",components:{DashBoardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dash-board-card");return s(),c(n,{color:"light"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-home"]}),r[0]||(r[0]=g(" Hausverbrauch "))]),headerRight:a(()=>[g(h(t.mqttStore.getHomePower()),1)]),default:a(()=>[i(d,{color:"var(--color--light)",data:t.mqttStore.getHomePowerChartData},null,8,["data"])]),_:1})}]]);y.add(_);const G={name:"DashboardView",components:{GridCard:E,HomeCard:A,BatteryCard:F,InverterCard:H,ChargePointsCard:p({name:"ChargePointsCard",components:{DashBoardCard:q,SparkLine:P,FontAwesomeIcon:w,ChargePointPlugBadge:b},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("charge-point-plug-badge"),n=e("spark-line"),k=e("dash-board-card");return t.mqttStore.getChargePointIds.length>0?(s(),c(k,{key:0,color:"primary"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-charging-station"]}),g(" "+h(t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointName(t.mqttStore.getChargePointIds[0]):"Ladepunkte"),1)]),headerRight:a(()=>[g(h(t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointPower(t.mqttStore.getChargePointIds[0]):t.mqttStore.getChargePointSumPower())+" ",1),i(d,{"charge-point-id":t.mqttStore.getChargePointIds,"show-energy-charged":!1},null,8,["charge-point-id"])]),default:a(()=>[i(n,{color:"var(--color--primary)",data:t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointPowerChartData(t.mqttStore.getChargePointIds[0]):t.mqttStore.getChargePointSumPowerChartData},null,8,["data"])]),_:1})):m("",!0)}]])},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:l()})},R={class:"dash-board-card-wrapper"},K=p(G,[["render",function(f,r,C,S,t,u){const o=e("grid-card"),d=e("home-card"),n=e("battery-card"),k=e("inverter-card"),v=e("charge-points-card");return s(),x("div",R,[t.mqttStore.getGridCardEnabled?(s(),c(o,{key:0})):m("",!0),t.mqttStore.getHomeCardEnabled?(s(),c(d,{key:1})):m("",!0),t.mqttStore.getBatteryCardEnabled?(s(),c(n,{key:2})):m("",!0),t.mqttStore.getPvCardEnabled?(s(),c(k,{key:3})):m("",!0),t.mqttStore.getChargePointsCardEnabled?(s(),c(v,{key:4})):m("",!0)])}],["__scopeId","data-v-2085947b"]]);export{K as default}; diff --git a/packages/modules/display_themes/cards/web/assets/DashBoardView-CZvLtoU0.css b/packages/modules/display_themes/cards/web/assets/DashBoardView-CZvLtoU0.css deleted file mode 100644 index b5c67478b0..0000000000 --- a/packages/modules/display_themes/cards/web/assets/DashBoardView-CZvLtoU0.css +++ /dev/null @@ -1 +0,0 @@ -.dash-board-card-wrapper[data-v-2085947b]{display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));grid-gap:var(--spacing)} diff --git a/packages/modules/display_themes/cards/web/assets/DashBoardCard-B7mtE8H4.js b/packages/modules/display_themes/cards/web/assets/DashboardCard-5rGwPkme.js similarity index 67% rename from packages/modules/display_themes/cards/web/assets/DashBoardCard-B7mtE8H4.js rename to packages/modules/display_themes/cards/web/assets/DashboardCard-5rGwPkme.js index c24f75395f..b07627b3ba 100644 --- a/packages/modules/display_themes/cards/web/assets/DashBoardCard-B7mtE8H4.js +++ b/packages/modules/display_themes/cards/web/assets/DashboardCard-5rGwPkme.js @@ -1 +1 @@ -import{_ as u}from"./vendor-inkline-CPyfyZy8.js";import{l,q as a,p as o,o as d,j as r,s as t,f as _}from"./vendor-DR1uipmZ.js";const $=u({name:"DashBoardCard",props:{color:{type:String,required:!0}}},[["render",function(e,p,i,h,g,m){const s=o("i-column"),n=o("i-row"),c=o("i-container"),f=o("i-card");return d(),l(f,{color:i.color},{header:a(()=>[t(c,null,{default:a(()=>[t(n,null,{default:a(()=>[t(s,null,{default:a(()=>[r(e.$slots,"headerLeft",{},void 0,!0)]),_:3}),e.$slots.headerRight?(d(),l(s,{key:0,class:"_flex-grow:0 _text-align:right _white-space:nowrap"},{default:a(()=>[r(e.$slots,"headerRight",{},void 0,!0)]),_:3})):_("",!0)]),_:3})]),_:3})]),default:a(()=>[r(e.$slots,"default",{},void 0,!0)]),_:3},8,["color"])}],["__scopeId","data-v-c53b85bf"]]);export{$ as D}; +import{_ as u}from"./vendor-inkline-DMzDOCDa.js";import{l,q as a,p as o,o as d,j as r,s as t,f as _}from"./vendor-CSZuzLkg.js";const $=u({name:"DashboardCard",props:{color:{type:String,required:!0}}},[["render",function(e,p,i,h,g,m){const s=o("i-column"),n=o("i-row"),c=o("i-container"),f=o("i-card");return d(),l(f,{color:i.color},{header:a(()=>[t(c,null,{default:a(()=>[t(n,null,{default:a(()=>[t(s,null,{default:a(()=>[r(e.$slots,"headerLeft",{},void 0,!0)]),_:3}),e.$slots.headerRight?(d(),l(s,{key:0,class:"_flex-grow:0 _text-align:right _white-space:nowrap"},{default:a(()=>[r(e.$slots,"headerRight",{},void 0,!0)]),_:3})):_("",!0)]),_:3})]),_:3})]),default:a(()=>[r(e.$slots,"default",{},void 0,!0)]),_:3},8,["color"])}],["__scopeId","data-v-b2600acf"]]);export{$ as D}; diff --git a/packages/modules/display_themes/cards/web/assets/DashboardCard-Cy_vzq6d.css b/packages/modules/display_themes/cards/web/assets/DashboardCard-Cy_vzq6d.css new file mode 100644 index 0000000000..fca53fe6a5 --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/DashboardCard-Cy_vzq6d.css @@ -0,0 +1 @@ +.column[data-v-b2600acf]{padding-left:0;padding-right:0}.card[data-v-b2600acf]{----background: inherit !important;----body--color: var(--contrast-color-for-dark-background) !important} diff --git a/packages/modules/display_themes/cards/web/assets/DashboardView-BYiJMWFT.css b/packages/modules/display_themes/cards/web/assets/DashboardView-BYiJMWFT.css new file mode 100644 index 0000000000..f3104ad49f --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/DashboardView-BYiJMWFT.css @@ -0,0 +1 @@ +.dashboard-card-wrapper[data-v-853975a6]{display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));grid-gap:var(--spacing)} diff --git a/packages/modules/display_themes/cards/web/assets/DashboardView-_Is2rbwP.js b/packages/modules/display_themes/cards/web/assets/DashboardView-_Is2rbwP.js new file mode 100644 index 0000000000..2d2e9be054 --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/DashboardView-_Is2rbwP.js @@ -0,0 +1 @@ +import{u as l}from"./index-BYcKhBWB.js";import{D as q}from"./DashboardCard-5rGwPkme.js";import{S as P,C as v}from"./ChargePointPlugBadge-weESa4ng.js";import{F as w,l as y,d as I,e as D,g as L,h as B,i as _}from"./vendor-fortawesome-D4MLbCBR.js";import{_ as p}from"./vendor-inkline-DMzDOCDa.js";import{l as c,q as a,p as e,o as s,s as i,k as g,x as h,f as m,e as x}from"./vendor-CSZuzLkg.js";y.add(I);const E=p({name:"GridCard",components:{DashboardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dashboard-card");return s(),c(n,{color:"danger"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-gauge-high"]}),r[0]||(r[0]=g(" EVU "))]),headerRight:a(()=>[g(h(t.mqttStore.getGridPower()),1)]),default:a(()=>[i(d,{color:"var(--color--danger)","color-negative":"var(--color--success)",data:t.mqttStore.getGridPowerChartData},null,8,["data"])]),_:1})}]]);y.add(D);const F=p({name:"BatteryCard",components:{DashboardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dashboard-card");return t.mqttStore.getBatteryConfigured?(s(),c(n,{key:0,color:"warning"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-car-battery"]}),r[0]||(r[0]=g(" Speicher "))]),headerRight:a(()=>[g(h(t.mqttStore.getBatterySoc())+" / "+h(t.mqttStore.getBatteryPower()),1)]),default:a(()=>[i(d,{color:"var(--color--warning)",data:t.mqttStore.getBatteryPowerChartData,"soc-data":t.mqttStore.getBatterySocChartData},null,8,["data","soc-data"])]),_:1})):m("",!0)}]]);y.add(L);const H=p({name:"InverterCard",components:{DashboardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dashboard-card");return t.mqttStore.getPvConfigured?(s(),c(n,{key:0,color:"success"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-solar-panel"]}),r[0]||(r[0]=g(" PV "))]),headerRight:a(()=>[g(h(t.mqttStore.getPvPower()),1)]),default:a(()=>[i(d,{color:"var(--color--success)",data:t.mqttStore.getPvPowerChartData,inverted:!0},null,8,["data"])]),_:1})):m("",!0)}]]);y.add(B);const A=p({name:"HomeCard",components:{DashboardCard:q,SparkLine:P,FontAwesomeIcon:w},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("spark-line"),n=e("dashboard-card");return s(),c(n,{color:"light"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-home"]}),r[0]||(r[0]=g(" Hausverbrauch "))]),headerRight:a(()=>[g(h(t.mqttStore.getHomePower()),1)]),default:a(()=>[i(d,{color:"var(--color--light)",data:t.mqttStore.getHomePowerChartData},null,8,["data"])]),_:1})}]]);y.add(_);const G={name:"DashboardView",components:{GridCard:E,HomeCard:A,BatteryCard:F,InverterCard:H,ChargePointsCard:p({name:"ChargePointsCard",components:{DashboardCard:q,SparkLine:P,FontAwesomeIcon:w,ChargePointPlugBadge:v},props:{},data:()=>({mqttStore:l()})},[["render",function(f,r,C,S,t,u){const o=e("font-awesome-icon"),d=e("charge-point-plug-badge"),n=e("spark-line"),b=e("dashboard-card");return t.mqttStore.getChargePointIds.length>0?(s(),c(b,{key:0,color:"primary"},{headerLeft:a(()=>[i(o,{"fixed-width":"",icon:["fas","fa-charging-station"]}),g(" "+h(t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointName(t.mqttStore.getChargePointIds[0]):"Ladepunkte"),1)]),headerRight:a(()=>[g(h(t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointPower(t.mqttStore.getChargePointIds[0]):t.mqttStore.getChargePointSumPower())+" ",1),i(d,{"charge-point-id":t.mqttStore.getChargePointIds,"show-energy-charged":!1},null,8,["charge-point-id"])]),default:a(()=>[i(n,{color:"var(--color--primary)",data:t.mqttStore.getChargePointIds.length==1?t.mqttStore.getChargePointPowerChartData(t.mqttStore.getChargePointIds[0]):t.mqttStore.getChargePointSumPowerChartData},null,8,["data"])]),_:1})):m("",!0)}]])},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:l()})},R={class:"dashboard-card-wrapper"},K=p(G,[["render",function(f,r,C,S,t,u){const o=e("grid-card"),d=e("home-card"),n=e("battery-card"),b=e("inverter-card"),k=e("charge-points-card");return s(),x("div",R,[t.mqttStore.getGridCardEnabled?(s(),c(o,{key:0})):m("",!0),t.mqttStore.getHomeCardEnabled?(s(),c(d,{key:1})):m("",!0),t.mqttStore.getBatteryCardEnabled?(s(),c(n,{key:2})):m("",!0),t.mqttStore.getPvCardEnabled?(s(),c(b,{key:3})):m("",!0),t.mqttStore.getChargePointsCardEnabled?(s(),c(k,{key:4})):m("",!0)])}],["__scopeId","data-v-853975a6"]]);export{K as default}; diff --git a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-BOyDZ-Ju.css b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-BOyDZ-Ju.css new file mode 100644 index 0000000000..93fa17245d --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-BOyDZ-Ju.css @@ -0,0 +1 @@ +.svg-container[data-v-e1dd1722]{display:flex;flex-direction:column;align-items:center}path[data-v-e1dd1722]{fill:none;fill-rule:evenodd;stroke:#404040;stroke-width:.75;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;transition:stroke .5s}path.animated[data-v-e1dd1722]{stroke:#fff;stroke-dasharray:5;animation:dash-e1dd1722 1s linear infinite}path.animatedReverse[data-v-e1dd1722]{stroke:#fff;stroke-dasharray:5;animation:dashReverse-e1dd1722 1s linear infinite}path.animated.grid[data-v-e1dd1722]{stroke:var(--color--danger)}path.animatedReverse.grid[data-v-e1dd1722]{stroke:var(--color--success)}path.animated.pv[data-v-e1dd1722],path.animatedReverse.pv[data-v-e1dd1722]{stroke:var(--color--success)}path.animated.battery[data-v-e1dd1722],path.animatedReverse.battery[data-v-e1dd1722]{stroke:var(--color--warning)}path.animated.charge-point[data-v-e1dd1722],path.animatedReverse.charge-point[data-v-e1dd1722]{stroke:var(--color--primary)}path.animated.vehicle[data-v-e1dd1722],path.animatedReverse.vehicle[data-v-e1dd1722]{stroke:var(--color--teal)}circle[data-v-e1dd1722]{fill:#000;fill-opacity:1;stroke:gray;stroke-width:var(--4830d832);stroke-miterlimit:2;stroke-opacity:1}rect[data-v-e1dd1722]{stroke-width:var(--4830d832)}@keyframes dash-e1dd1722{to{stroke-dashoffset:-20}}@keyframes dashReverse-e1dd1722{to{stroke-dashoffset:20}}text[data-v-e1dd1722]{font-size:var(--4cb129ac);line-height:1.25;font-family:Arial;fill:#fff;fill-opacity:1}text .fill-success[data-v-e1dd1722]{fill:var(--color--success)}text .fill-danger[data-v-e1dd1722]{fill:var(--color--danger)}text .fill-dark[data-v-e1dd1722]{fill:var(--color--dark)}.grid text[data-v-e1dd1722]{fill:var(--color--danger)}.grid circle[data-v-e1dd1722],.grid rect[data-v-e1dd1722]{stroke:var(--color--danger)}.grid circle[data-v-e1dd1722]{fill:var(--color--danger-90)}.pv text[data-v-e1dd1722]{fill:var(--color--success)}.pv circle[data-v-e1dd1722],.pv rect[data-v-e1dd1722]{stroke:var(--color--success)}.pv circle[data-v-e1dd1722]{fill:var(--color--success-90)}.battery text[data-v-e1dd1722]{fill:var(--color--warning)}.battery circle[data-v-e1dd1722],.battery rect[data-v-e1dd1722]{stroke:var(--color--warning)}.battery circle[data-v-e1dd1722]:not(.soc){fill:var(--color--warning-90)}.home text[data-v-e1dd1722]{fill:var(--color--light)}.home circle[data-v-e1dd1722],.home rect[data-v-e1dd1722]{stroke:var(--color--light)}.home circle[data-v-e1dd1722]{fill:var(--color--dark-70)}.charge-point text[data-v-e1dd1722]{fill:var(--color--primary)}.charge-point circle[data-v-e1dd1722],.charge-point rect[data-v-e1dd1722]{stroke:var(--color--primary)}.charge-point circle[data-v-e1dd1722]{fill:var(--color--primary-85)}.vehicle text[data-v-e1dd1722]{fill:var(--color--teal)}.vehicle circle[data-v-e1dd1722],.vehicle rect[data-v-e1dd1722]{stroke:var(--color--teal)}.vehicle circle[data-v-e1dd1722]:not(.soc){fill:var(--color--teal-85)} diff --git a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-CMZu-SNR.css b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-CMZu-SNR.css deleted file mode 100644 index 298588d4fe..0000000000 --- a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-CMZu-SNR.css +++ /dev/null @@ -1 +0,0 @@ -.svg-container[data-v-9e868ed0]{display:flex;flex-direction:column;align-items:center}path[data-v-9e868ed0]{fill:none;fill-rule:evenodd;stroke:#404040;stroke-width:.75;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;transition:stroke .5s}path.animated[data-v-9e868ed0]{stroke:#fff;stroke-dasharray:5;animation:dash-9e868ed0 1s linear infinite}path.animatedReverse[data-v-9e868ed0]{stroke:#fff;stroke-dasharray:5;animation:dashReverse-9e868ed0 1s linear infinite}path.animated.grid[data-v-9e868ed0]{stroke:var(--color--danger)}path.animatedReverse.grid[data-v-9e868ed0]{stroke:var(--color--success)}path.animated.pv[data-v-9e868ed0],path.animatedReverse.pv[data-v-9e868ed0]{stroke:var(--color--success)}path.animated.battery[data-v-9e868ed0],path.animatedReverse.battery[data-v-9e868ed0]{stroke:var(--color--warning)}path.animated.charge-point[data-v-9e868ed0],path.animatedReverse.charge-point[data-v-9e868ed0]{stroke:var(--color--primary)}circle[data-v-9e868ed0]{fill:#000;fill-opacity:1;stroke:gray;stroke-width:var(--2d21ce23);stroke-miterlimit:2;stroke-opacity:1}rect[data-v-9e868ed0]{stroke-width:var(--2d21ce23)}@keyframes dash-9e868ed0{to{stroke-dashoffset:-20}}@keyframes dashReverse-9e868ed0{to{stroke-dashoffset:20}}text[data-v-9e868ed0]{font-size:var(--0cb0615b);line-height:1.25;font-family:Arial;fill:#fff;fill-opacity:1}text .fill-success[data-v-9e868ed0]{fill:var(--color--success)}text .fill-danger[data-v-9e868ed0]{fill:var(--color--danger)}text .fill-dark[data-v-9e868ed0]{fill:var(--color--dark)}.grid text[data-v-9e868ed0]{fill:var(--color--danger)}.grid circle[data-v-9e868ed0],.grid rect[data-v-9e868ed0]{stroke:var(--color--danger)}.grid circle[data-v-9e868ed0]{fill:var(--color--danger-90)}.pv text[data-v-9e868ed0]{fill:var(--color--success)}.pv circle[data-v-9e868ed0],.pv rect[data-v-9e868ed0]{stroke:var(--color--success)}.pv circle[data-v-9e868ed0]{fill:var(--color--success-90)}.battery text[data-v-9e868ed0]{fill:var(--color--warning)}.battery circle[data-v-9e868ed0],.battery rect[data-v-9e868ed0]{stroke:var(--color--warning)}.battery circle[data-v-9e868ed0]:not(.soc){fill:var(--color--warning-90)}.home text[data-v-9e868ed0]{fill:var(--color--light)}.home circle[data-v-9e868ed0],.home rect[data-v-9e868ed0]{stroke:var(--color--light)}.home circle[data-v-9e868ed0]{fill:var(--color--dark-70)}.charge-point text[data-v-9e868ed0]{fill:var(--color--primary)}.charge-point circle[data-v-9e868ed0],.charge-point rect[data-v-9e868ed0]{stroke:var(--color--primary)}.charge-point circle[data-v-9e868ed0]{fill:var(--color--primary-85)}.vehicle text[data-v-9e868ed0]{fill:var(--color--teal)}.vehicle circle[data-v-9e868ed0],.vehicle rect[data-v-9e868ed0]{stroke:var(--color--teal)}.vehicle circle[data-v-9e868ed0]:not(.soc){fill:var(--color--teal-85)} diff --git a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-Dv2TQaHl.js b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-Dv2TQaHl.js deleted file mode 100644 index 7533cf6a76..0000000000 --- a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-Dv2TQaHl.js +++ /dev/null @@ -1 +0,0 @@ -import{u as R}from"./index-Bewn8wIg.js";import{D as V}from"./DashBoardCard-B7mtE8H4.js";import{l as v,q as l,p as d,o as r,s as f,i as s,e as a,F as P,A as C,z as c,f as u,k as b,x as S,O as q}from"./vendor-DR1uipmZ.js";import{_ as w}from"./vendor-inkline-CPyfyZy8.js";import"./vendor-fortawesome-BuJHQtFF.js";const m={name:"DashboardFlowCard",components:{DashBoardCard:V},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:R(),svgSize:{xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3}}),computed:{svgViewBox(){return`${this.svgSize.xMin} ${this.svgSize.yMin} ${this.svgSize.xMax} ${this.svgSize.yMax}`},svgFontSize(){return`${this.svgSize.textSize}px`},svgRectWidth(){return(this.svgSize.xMax-this.svgSize.xMin-this.svgSize.strokeWidth-this.svgSize.numColumns)/this.svgSize.numColumns},svgStrokeWidth(){return this.svgSize.strokeWidth},svgIconWidth(){return this.svgSize.circleRadius},svgIconHeight(){return this.svgSize.circleRadius},gridPower(){return this.mqttStore.getGridPower("object")},pvPower(){return this.mqttStore.getPvPower("object")},homePower(){return this.mqttStore.getHomePower("object")},batteryPower(){return this.mqttStore.getBatteryPower("object")},batterySoc(){return this.mqttStore.getBatterySoc("object").value/100},connectedChargePoints(){return this.mqttStore.getChargePointIds},chargePointSumPower(){return this.mqttStore.getChargePointSumPower("object")},chargePoint1Power(){return this.connectedChargePoints.length>0?this.mqttStore.getChargePointPower(this.connectedChargePoints[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint2Power(){return this.connectedChargePoints.length>1?this.mqttStore.getChargePointPower(this.connectedChargePoints[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint3Power(){return this.connectedChargePoints.length>2?this.mqttStore.getChargePointPower(this.connectedChargePoints[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint1Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[0])},chargePoint2Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[1])},chargePoint3Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[2])},chargePoint1VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[0])},chargePoint2VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[1])},chargePoint3VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[0])},chargePoint2ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[1])},chargePoint3ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[0])},chargePoint2ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[1])},chargePoint3ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[0]).soc/100},chargePoint2ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[1]).soc/100},chargePoint3ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[2]).soc/100},gridConsumption(){return this.gridPower.value>0},gridFeedIn(){return this.gridPower.value<0},homeConsumption(){return this.homePower.value>0},homeProduction(){return this.homePower.value<0},pvProduction(){return this.pvPower.value>0},batteryDischarging(){return this.batteryPower.value<0},batteryCharging(){return this.batteryPower.value>0},chargePointSumCharging(){return this.chargePointSumPower.value>0},chargePointSumDischarging(){return this.chargePointSumPower.value<0},chargePoint1Charging(){return this.chargePoint1Power.value>0},chargePoint1Discharging(){return this.chargePoint1Power.value<0},chargePoint2Charging(){return this.chargePoint2Power.value>0},chargePoint2Discharging(){return this.chargePoint2Power.value<0},chargePoint3Charging(){return this.chargePoint3Power.value>0},chargePoint3Discharging(){return this.chargePoint3Power.value<0},svgComponents(){var e=[];return this.mqttStore.getThemeConfiguration.enable_dashboard_card_grid&&e.push({id:"grid",class:{base:"grid",valueLabel:this.gridFeedIn?"fill-success":this.gridConsumption?"fill-danger":"",animated:this.gridConsumption,animatedReverse:this.gridFeedIn},position:{row:0,column:0},label:["EVU",this.gridPower.textValue],icon:"icons/owbGrid.svg"}),this.mqttStore.getThemeConfiguration.enable_dashboard_card_home_consumption&&e.push({id:"home",class:{base:"home",valueLabel:"",animated:this.homeProduction,animatedReverse:this.homeConsumption},position:{row:0,column:2},label:["Haus",this.homePower.textValue],icon:"icons/owbHouse.svg"}),this.mqttStore.getPvConfigured&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_inverter_sum&&e.push({id:"pv",class:{base:"pv",valueLabel:this.pvProduction?"fill-success":"",animated:this.pvProduction,animatedReverse:!1},position:{row:1,column:0},label:["PV",this.pvPower.textValue],icon:"icons/owbPV.svg"}),this.mqttStore.getBatteryConfigured&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_battery_sum&&e.push({id:"battery",class:{base:"battery",valueLabel:"",animated:this.batteryDischarging,animatedReverse:this.batteryCharging},position:{row:1,column:2},label:["Speicher",this.batteryPower.textValue],soc:this.batterySoc,icon:"icons/owbBattery.svg"}),this.connectedChargePoints.length>0&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_charge_point_sum&&(this.connectedChargePoints.length<=3?(e.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint1Discharging,animatedReverse:this.chargePoint1Charging},position:{row:2,column:this.connectedChargePoints.length>1?0:1},label:[this.chargePoint1Name,this.chargePoint1Power.textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint1VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+this.chargePoint1ConnectedVehicleChargeMode.class},position:{row:3,column:this.connectedChargePoints.length>1?0:1},label:[this.chargePoint1ConnectedVehicleName||"---",this.chargePoint1ConnectedVehicleChargeMode.label||"---"],soc:this.chargePoint1ConnectedVehicleSoc,icon:"icons/owbVehicle.svg"}),this.connectedChargePoints.length>1&&(e.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint2Discharging,animatedReverse:this.chargePoint2Charging},position:{row:2,column:this.connectedChargePoints.length>2?1:2},label:[this.chargePoint2Name,this.chargePoint2Power.textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint2VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+this.chargePoint2ConnectedVehicleChargeMode.class},position:{row:3,column:this.connectedChargePoints.length>2?1:2},label:[this.chargePoint2ConnectedVehicleName||"---",this.chargePoint2ConnectedVehicleChargeMode.label||"---"],soc:this.chargePoint2ConnectedVehicleSoc,icon:"icons/owbVehicle.svg"}),this.connectedChargePoints.length>2&&(e.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint3Discharging,animatedReverse:this.chargePoint3Charging},position:{row:2,column:2},label:[this.chargePoint3Name,this.chargePoint3Power.textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint3VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+this.chargePoint3ConnectedVehicleChargeMode.class},position:{row:3,column:2},label:[this.chargePoint3ConnectedVehicleName||"---",this.chargePoint3ConnectedVehicleChargeMode.label||"---"],soc:this.chargePoint3ConnectedVehicleSoc,icon:"icons/owbVehicle.svg"})))):e.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:this.chargePointSumDischarging,animatedReverse:this.chargePointSumCharging},position:{row:2,column:1},label:["Ladepunkte",this.chargePointSumPower.textValue],icon:"icons/owbChargePoint.svg"})),(!this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles||this.connectedChargePoints.length===0||this.connectedChargePoints.length>3)&&this.setSvgNumRows(3),e}},methods:{setSvgNumRows(e){this.svgSize.numRows=e},calcRowY(e){let o=this.svgSize.yMin+this.svgSize.strokeWidth+this.svgSize.circleRadius;return e*((this.svgSize.yMax-this.svgSize.strokeWidth-this.svgSize.circleRadius-o)/(this.svgSize.numRows-1))+o},calcColumnX(e){let o=this.svgSize.xMin+this.svgSize.strokeWidth+this.svgRectWidth/2;return e*((this.svgSize.xMax-this.svgSize.strokeWidth-this.svgRectWidth/2-o)/(this.svgSize.numColumns-1))+o},calcFlowLineAnchorX(e){let o=this.calcColumnX(e);return e<(this.svgSize.numColumns-1)/2?o+this.svgRectWidth/2-this.svgSize.circleRadius:e>(this.svgSize.numColumns-1)/2?o-this.svgRectWidth/2+this.svgSize.circleRadius:o},calcSvgElementBoundingBox(e){let o=document.getElementById(e);if(o==null)return{x:0,y:0,width:0,height:0};let h=o.getBBox();return{x:h.x,y:h.y,width:h.width,height:h.height}},beginAnimation(e){var o;this.$refs[e]!=null&&((o=this.$refs[e][0])==null||o.beginElement())}}},p=()=>{q(e=>({"2d21ce23":e.svgStrokeWidth,"0cb0615b":e.svgFontSize}))},x=m.setup;m.setup=x?(e,o)=>(p(),x(e,o)):p;const _={class:"svg-container"},W=["viewBox"],k={id:"layer1",style:{display:"inline"}},M=["d"],N={id:"layer2",style:{display:"inline"}},$=["cx","cy","r"],L=["transform","onClick"],B=["id"],D=["x","y","width","height"],I=["id"],F=["x","y","width","height","rx","ry"],j=["x","y","width","height","rx","ry"],T=["clip-path"],A=["id","x","y"],E=["values"],X=["id","x","y"],H=["transform"],Y=["r"],G=["r","clip-path"],O=["href","x","y","height","width"],te=w({name:"EnergyFlowView",components:{FlowCard:w(m,[["render",function(e,o,h,z,t,n){const g=d("i-container"),y=d("dash-board-card");return r(),v(y,{color:"primary"},{headerLeft:l(()=>o[0]||(o[0]=[b(" Übersicht - Energiefluss ")])),default:l(()=>[f(g,null,{default:l(()=>[s("div",_,[(r(),a("svg",{viewBox:n.svgViewBox,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[s("g",k,[(r(!0),a(P,null,C(n.svgComponents,i=>(r(),a("path",{key:i.id,class:c([i.class.base,{animated:i.class.animated},{animatedReverse:i.class.animatedReverse}]),d:i.class.base!=="vehicle"?`M ${n.calcFlowLineAnchorX(i.position.column)}, ${n.calcRowY(i.position.row)} ${n.calcColumnX(1)}, ${n.calcRowY(1)}`:""},null,10,M))),128))]),s("g",N,[s("circle",{id:"center",cx:n.calcColumnX(1),cy:n.calcRowY(1),r:t.svgSize.circleRadius/3},null,8,$),(r(!0),a(P,null,C(n.svgComponents,i=>(r(),a("g",{key:i.id,class:c(i.class.base),transform:`translate(${n.calcColumnX(i.position.column)}, ${n.calcRowY(i.position.row)})`,onClick:U=>n.beginAnimation(`animate-label-${i.id}`)},[s("defs",null,[i.soc?(r(),a("clipPath",{key:0,id:`clip-soc-${i.id}`},[s("rect",{x:-t.svgSize.circleRadius-t.svgSize.strokeWidth,y:(t.svgSize.circleRadius+t.svgSize.strokeWidth)*(1-2*i.soc),width:2*(t.svgSize.circleRadius+t.svgSize.strokeWidth),height:2*(t.svgSize.circleRadius+t.svgSize.strokeWidth)*i.soc},null,8,D)],8,B)):u("",!0),s("clipPath",{id:`clip-label-${i.id}`},[s("rect",{x:-n.svgRectWidth/2,y:-t.svgSize.circleRadius,width:n.svgRectWidth,height:2*t.svgSize.circleRadius,rx:t.svgSize.circleRadius,ry:t.svgSize.circleRadius},null,8,F)],8,I)]),s("rect",{x:-n.svgRectWidth/2,y:-t.svgSize.circleRadius,width:n.svgRectWidth,height:2*t.svgSize.circleRadius,rx:t.svgSize.circleRadius,ry:t.svgSize.circleRadius},null,8,j),s("text",{"clip-path":`url(#clip-label-${i.id})`},[s("tspan",{id:`label-${i.id}`,"text-anchor":"start",x:-n.svgRectWidth/2+2*t.svgSize.circleRadius+t.svgSize.strokeWidth,y:-t.svgSize.textSize/2},[n.calcSvgElementBoundingBox(`label-${i.id}`).width>n.svgRectWidth-2*t.svgSize.circleRadius-2*t.svgSize.strokeWidth?(r(),a("animate",{key:0,ref_for:!0,ref:`animate-label-${i.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-n.calcSvgElementBoundingBox(`label-${i.id}`).width+n.svgRectWidth-2.5*t.svgSize.circleRadius-2*t.svgSize.strokeWidth)+"; 0;",repeatCount:"0",begin:"2s",additive:"sum"},null,8,E)):u("",!0),b(" "+S(i.label[0]),1)],8,A),s("tspan",{id:`value-${i.id}`,class:c(i.class.valueLabel),"text-anchor":"end",x:2*t.svgSize.circleRadius+t.svgSize.strokeWidth,y:t.svgSize.textSize},S(i.label[1]),11,X)],8,T),s("g",{transform:`translate(${t.svgSize.circleRadius-n.svgRectWidth/2}, 0)`},[s("circle",{cx:"0",cy:"0",r:t.svgSize.circleRadius,class:c({soc:i.soc})},null,10,Y),i.soc?(r(),a("circle",{key:0,cx:"0",cy:"0",r:t.svgSize.circleRadius,"clip-path":`url(#clip-soc-${i.id})`},null,8,G)):u("",!0),s("image",{href:i.icon,x:-n.svgIconWidth/2,y:-n.svgIconHeight/2,height:n.svgIconHeight,width:n.svgIconWidth},null,8,O)],8,H)],10,L))),128))])],8,W))])]),_:1})]),_:1})}],["__scopeId","data-v-9e868ed0"]])},props:{changesLocked:{required:!1,type:Boolean,default:!1}}},[["render",function(e,o,h,z,t,n){const g=d("FlowCard");return r(),v(g)}]]);export{te as default}; diff --git a/packages/modules/display_themes/cards/web/assets/EnergyFlowView-ZntI_-Ks.js b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-ZntI_-Ks.js new file mode 100644 index 0000000000..96d6c07e66 --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/EnergyFlowView-ZntI_-Ks.js @@ -0,0 +1 @@ +import{u as y}from"./index-BYcKhBWB.js";import{D as f}from"./DashboardCard-5rGwPkme.js";import{C as q}from"./ChargeModeModal-C0nwI9o6.js";import{e as h,s as u,p as l,q as m,F as v,o as r,i as s,A as C,z as d,f as P,k as b,x as w,O as M,l as _}from"./vendor-CSZuzLkg.js";import{_ as p}from"./vendor-inkline-DMzDOCDa.js";import"./vendor-fortawesome-D4MLbCBR.js";const S={name:"DashboardFlowCard",components:{DashboardCard:f,ChargeModeModal:q},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:y(),svgSize:{xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3},modalChargeModeSettingsVisible:!1,modalChargePointId:0}),computed:{svgViewBox(){return`${this.svgSize.xMin} ${this.svgSize.yMin} ${this.svgSize.xMax} ${this.svgSize.yMax}`},svgFontSize(){return`${this.svgSize.textSize}px`},svgRectWidth(){return(this.svgSize.xMax-this.svgSize.xMin-this.svgSize.strokeWidth-this.svgSize.numColumns)/this.svgSize.numColumns},svgStrokeWidth(){return this.svgSize.strokeWidth},svgIconWidth(){return this.svgSize.circleRadius},svgIconHeight(){return this.svgSize.circleRadius},gridPower(){return this.mqttStore.getGridPower("object")},pvPower(){return this.mqttStore.getPvPower("object")},homePower(){return this.mqttStore.getHomePower("object")},batteryPower(){return this.mqttStore.getBatteryPower("object")},batterySoc(){return this.mqttStore.getBatterySoc("object").value/100},connectedChargePoints(){return this.mqttStore.getChargePointIds},chargePointSumPower(){return this.mqttStore.getChargePointSumPower("object")},chargePoint1Power(){return this.connectedChargePoints.length>0?this.mqttStore.getChargePointPower(this.connectedChargePoints[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint2Power(){return this.connectedChargePoints.length>1?this.mqttStore.getChargePointPower(this.connectedChargePoints[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint3Power(){return this.connectedChargePoints.length>2?this.mqttStore.getChargePointPower(this.connectedChargePoints[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}},chargePoint1Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[0])},chargePoint2Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[1])},chargePoint3Name(){return this.mqttStore.getChargePointName(this.connectedChargePoints[2])},chargePoint1VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[0])},chargePoint2VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[1])},chargePoint3VehicleConnected(){return this.mqttStore.getChargePointPlugState(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[0])},chargePoint2ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[1])},chargePoint3ConnectedVehicleName(){return this.mqttStore.getChargePointConnectedVehicleName(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[0])},chargePoint2ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[1])},chargePoint3ConnectedVehicleChargeMode(){return this.mqttStore.getChargePointConnectedVehicleChargeMode(this.connectedChargePoints[2])},chargePoint1ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[0]).soc/100},chargePoint2ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[1]).soc/100},chargePoint3ConnectedVehicleSoc(){return this.mqttStore.getChargePointConnectedVehicleSoc(this.connectedChargePoints[2]).soc/100},gridConsumption(){return this.gridPower.value>0},gridFeedIn(){return this.gridPower.value<0},homeConsumption(){return this.homePower.value>0},homeProduction(){return this.homePower.value<0},pvProduction(){return this.pvPower.value>0},batteryDischarging(){return this.batteryPower.value<0},batteryCharging(){return this.batteryPower.value>0},chargePointSumCharging(){return this.chargePointSumPower.value>0},chargePointSumDischarging(){return this.chargePointSumPower.value<0},chargePoint1Charging(){return this.chargePoint1Power.value>0},chargePoint1Discharging(){return this.chargePoint1Power.value<0},chargePoint2Charging(){return this.chargePoint2Power.value>0},chargePoint2Discharging(){return this.chargePoint2Power.value<0},chargePoint3Charging(){return this.chargePoint3Power.value>0},chargePoint3Discharging(){return this.chargePoint3Power.value<0},svgComponents(){var t,a,g,o,n,c;var e=[];return this.mqttStore.getThemeConfiguration.enable_dashboard_card_grid&&e.push({id:"grid",class:{base:"grid",valueLabel:this.gridFeedIn?"fill-success":this.gridConsumption?"fill-danger":"",animated:this.gridConsumption,animatedReverse:this.gridFeedIn},position:{row:0,column:0},label:["EVU",this.absoluteValue(this.gridPower).textValue],icon:"icons/owbGrid.svg"}),this.mqttStore.getThemeConfiguration.enable_dashboard_card_home_consumption&&e.push({id:"home",class:{base:"home",valueLabel:"",animated:this.homeProduction,animatedReverse:this.homeConsumption},position:{row:0,column:2},label:["Haus",this.absoluteValue(this.homePower).textValue],icon:"icons/owbHouse.svg"}),this.mqttStore.getPvConfigured&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_inverter_sum&&e.push({id:"pv",class:{base:"pv",valueLabel:this.pvProduction?"fill-success":"",animated:this.pvProduction,animatedReverse:!1},position:{row:1,column:0},label:["PV",this.absoluteValue(this.pvPower).textValue],icon:"icons/owbPV.svg"}),this.mqttStore.getBatteryConfigured&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_battery_sum&&e.push({id:"battery",class:{base:"battery",valueLabel:"",animated:this.batteryDischarging,animatedReverse:this.batteryCharging},position:{row:1,column:2},label:["Speicher",this.absoluteValue(this.batteryPower).textValue],soc:this.batterySoc,icon:"icons/owbBattery.svg"}),this.connectedChargePoints.length>0&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_charge_point_sum&&(this.connectedChargePoints.length<=3?(e.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint1Discharging,animatedReverse:this.chargePoint1Charging},position:{row:2,column:this.connectedChargePoints.length>1?0:1},label:[this.chargePoint1Name,this.absoluteValue(this.chargePoint1Power).textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint1VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+((t=this.chargePoint1ConnectedVehicleChargeMode)==null?void 0:t.class),animated:this.chargePoint1Discharging,animatedReverse:this.chargePoint1Charging},position:{row:3,column:this.connectedChargePoints.length>1?0:1},label:[this.chargePoint1ConnectedVehicleName||"---",((a=this.chargePoint1ConnectedVehicleChargeMode)==null?void 0:a.label)||"---"],soc:this.chargePoint1ConnectedVehicleSoc,icon:"icons/owbVehicle.svg",clicked:()=>{this.selectChargeMode(this.connectedChargePoints[0])}}),this.connectedChargePoints.length>1&&(e.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint2Discharging,animatedReverse:this.chargePoint2Charging},position:{row:2,column:this.connectedChargePoints.length>2?1:2},label:[this.chargePoint2Name,this.absoluteValue(this.chargePoint2Power).textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint2VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+((g=this.chargePoint2ConnectedVehicleChargeMode)==null?void 0:g.class),animated:this.chargePoint2Discharging,animatedReverse:this.chargePoint2Charging},position:{row:3,column:this.connectedChargePoints.length>2?1:2},label:[this.chargePoint2ConnectedVehicleName||"---",((o=this.chargePoint2ConnectedVehicleChargeMode)==null?void 0:o.label)||"---"],soc:this.chargePoint2ConnectedVehicleSoc,icon:"icons/owbVehicle.svg"}),this.connectedChargePoints.length>2&&(e.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:this.chargePoint3Discharging,animatedReverse:this.chargePoint3Charging},position:{row:2,column:2},label:[this.chargePoint3Name,this.absoluteValue(this.chargePoint3Power).textValue],icon:"icons/owbChargePoint.svg"}),this.chargePoint3VehicleConnected&&this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles&&e.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+((n=this.chargePoint3ConnectedVehicleChargeMode)==null?void 0:n.class),animated:this.chargePoint3Discharging,animatedReverse:this.chargePoint3Charging},position:{row:3,column:2},label:[this.chargePoint3ConnectedVehicleName||"---",((c=this.chargePoint3ConnectedVehicleChargeMode)==null?void 0:c.label)||"---"],soc:this.chargePoint3ConnectedVehicleSoc,icon:"icons/owbVehicle.svg"})))):e.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:this.chargePointSumDischarging,animatedReverse:this.chargePointSumCharging},position:{row:2,column:1},label:["Ladepunkte",this.absoluteValue(this.chargePointSumPower).textValue],icon:"icons/owbChargePoint.svg"})),(!this.mqttStore.getThemeConfiguration.enable_dashboard_card_vehicles||this.connectedChargePoints.length===0||this.connectedChargePoints.length>3)&&this.setSvgNumRows(3),e}},watch:{changesLocked(e,t){t!==!0&&e===!0&&(this.modalChargeModeSettingsVisible=!1)}},methods:{absoluteValue(e){let t={...e};return t.textValue&&(t.textValue=t.textValue.replace("-","")),t.value&&(t.value=Math.abs(t.value)),t.scaledValue&&(t.scaledValue=Math.abs(t.scaledValue)),t},setSvgNumRows(e){this.svgSize.numRows=e},calcRowY(e){let t=this.svgSize.yMin+this.svgSize.strokeWidth+this.svgSize.circleRadius;return e*((this.svgSize.yMax-this.svgSize.strokeWidth-this.svgSize.circleRadius-t)/(this.svgSize.numRows-1))+t},calcColumnX(e){let t=this.svgSize.xMin+this.svgSize.strokeWidth+this.svgRectWidth/2;return e*((this.svgSize.xMax-this.svgSize.strokeWidth-this.svgRectWidth/2-t)/(this.svgSize.numColumns-1))+t},calcFlowLineAnchorX(e){let t=this.calcColumnX(e);return e<(this.svgSize.numColumns-1)/2?t+this.svgRectWidth/2-this.svgSize.circleRadius:e>(this.svgSize.numColumns-1)/2?t-this.svgRectWidth/2+this.svgSize.circleRadius:t},calcSvgElementBoundingBox(e){let t=document.getElementById(e);if(t==null)return{x:0,y:0,width:0,height:0};let a=t.getBBox();return{x:a.x,y:a.y,width:a.width,height:a.height}},beginAnimation(e){var t;this.$refs[e]!=null&&((t=this.$refs[e][0])==null||t.beginElement())},selectChargeMode(e){this.changesLocked||(this.modalChargePointId=e,this.modalChargeModeSettingsVisible=!0)}}},V=()=>{M(e=>({"4830d832":e.svgStrokeWidth,"4cb129ac":e.svgFontSize}))},x=S.setup;S.setup=x?(e,t)=>(V(),x(e,t)):V;const k={class:"svg-container"},W=["viewBox"],$={id:"layer1",style:{display:"inline"}},L=["d"],N={id:"layer2",style:{display:"inline"}},B=["cx","cy","r"],D=["transform","onClick"],I=["id"],F=["x","y","width","height"],A=["id"],j=["x","y","width","height","rx","ry"],T=["x","y","width","height","rx","ry"],X=["clip-path"],E=["id","x","y"],Y=["values"],H=["id","x","y"],G=["transform"],U=["r"],O=["r","clip-path"],J=["href","x","y","height","width"],ne=p({name:"EnergyFlowView",components:{FlowCard:p(S,[["render",function(e,t,a,g,o,n){const c=l("charge-mode-modal"),z=l("i-container"),R=l("dashboard-card");return r(),h(v,null,[u(c,{modelValue:o.modalChargeModeSettingsVisible,"onUpdate:modelValue":t[0]||(t[0]=i=>o.modalChargeModeSettingsVisible=i),"charge-point-id":o.modalChargePointId},null,8,["modelValue","charge-point-id"]),u(R,{color:"primary"},{headerLeft:m(()=>t[1]||(t[1]=[b(" Übersicht - Energiefluss ")])),default:m(()=>[u(z,null,{default:m(()=>[s("div",k,[(r(),h("svg",{viewBox:n.svgViewBox,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[s("g",$,[(r(!0),h(v,null,C(n.svgComponents,i=>(r(),h("path",{key:i.id,class:d([i.class.base,{animated:i.class.animated},{animatedReverse:i.class.animatedReverse}]),d:i.class.base!=="vehicle"?`M ${n.calcFlowLineAnchorX(i.position.column)}, ${n.calcRowY(i.position.row)} ${n.calcColumnX(1)}, ${n.calcRowY(1)}`:`M ${n.calcFlowLineAnchorX(i.position.column)}, ${n.calcRowY(i.position.row)} ${n.calcFlowLineAnchorX(i.position.column)}, ${n.calcRowY(i.position.row-1)}`},null,10,L))),128))]),s("g",N,[s("circle",{id:"center",cx:n.calcColumnX(1),cy:n.calcRowY(1),r:o.svgSize.circleRadius/3},null,8,B),(r(!0),h(v,null,C(n.svgComponents,i=>(r(),h("g",{key:i.id,class:d(i.class.base),transform:`translate(${n.calcColumnX(i.position.column)}, ${n.calcRowY(i.position.row)})`,onClick:K=>{n.beginAnimation(`animate-label-${i.id}`),i.clicked&&i.clicked()}},[s("defs",null,[i.soc?(r(),h("clipPath",{key:0,id:`clip-soc-${i.id}`},[s("rect",{x:-o.svgSize.circleRadius-o.svgSize.strokeWidth,y:(o.svgSize.circleRadius+o.svgSize.strokeWidth)*(1-2*i.soc),width:2*(o.svgSize.circleRadius+o.svgSize.strokeWidth),height:2*(o.svgSize.circleRadius+o.svgSize.strokeWidth)*i.soc},null,8,F)],8,I)):P("",!0),s("clipPath",{id:`clip-label-${i.id}`},[s("rect",{x:-n.svgRectWidth/2,y:-o.svgSize.circleRadius,width:n.svgRectWidth,height:2*o.svgSize.circleRadius,rx:o.svgSize.circleRadius,ry:o.svgSize.circleRadius},null,8,j)],8,A)]),s("rect",{x:-n.svgRectWidth/2,y:-o.svgSize.circleRadius,width:n.svgRectWidth,height:2*o.svgSize.circleRadius,rx:o.svgSize.circleRadius,ry:o.svgSize.circleRadius},null,8,T),s("text",{"clip-path":`url(#clip-label-${i.id})`},[s("tspan",{id:`label-${i.id}`,"text-anchor":"start",x:-n.svgRectWidth/2+2*o.svgSize.circleRadius+o.svgSize.strokeWidth,y:-o.svgSize.textSize/2},[n.calcSvgElementBoundingBox(`label-${i.id}`).width>n.svgRectWidth-2*o.svgSize.circleRadius-2*o.svgSize.strokeWidth?(r(),h("animate",{key:0,ref_for:!0,ref:`animate-label-${i.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-n.calcSvgElementBoundingBox(`label-${i.id}`).width+n.svgRectWidth-2.5*o.svgSize.circleRadius-2*o.svgSize.strokeWidth)+"; 0;",repeatCount:"0",begin:"2s",additive:"sum"},null,8,Y)):P("",!0),b(" "+w(i.label[0]),1)],8,E),s("tspan",{id:`value-${i.id}`,class:d(i.class.valueLabel),"text-anchor":"end",x:2*o.svgSize.circleRadius+o.svgSize.strokeWidth,y:o.svgSize.textSize},w(i.label[1]),11,H)],8,X),s("g",{transform:`translate(${o.svgSize.circleRadius-n.svgRectWidth/2}, 0)`},[s("circle",{cx:"0",cy:"0",r:o.svgSize.circleRadius,class:d({soc:i.soc})},null,10,U),i.soc?(r(),h("circle",{key:0,cx:"0",cy:"0",r:o.svgSize.circleRadius,"clip-path":`url(#clip-soc-${i.id})`},null,8,O)):P("",!0),s("image",{href:i.icon,x:-n.svgIconWidth/2,y:-n.svgIconHeight/2,height:n.svgIconHeight,width:n.svgIconWidth},null,8,J)],8,G)],10,D))),128))])],8,W))])]),_:1})]),_:1})],64)}],["__scopeId","data-v-e1dd1722"]])},props:{changesLocked:{required:!1,type:Boolean,default:!1}}},[["render",function(e,t,a,g,o,n){const c=l("FlowCard");return r(),_(c,{"changes-locked":a.changesLocked},null,8,["changes-locked"])}]]);export{ne as default}; diff --git a/packages/modules/display_themes/cards/web/assets/StatusView-uWIroZcN.js b/packages/modules/display_themes/cards/web/assets/StatusView-IQAnLXHB.js similarity index 56% rename from packages/modules/display_themes/cards/web/assets/StatusView-uWIroZcN.js rename to packages/modules/display_themes/cards/web/assets/StatusView-IQAnLXHB.js index 38843f9e20..55f3dcc33d 100644 --- a/packages/modules/display_themes/cards/web/assets/StatusView-uWIroZcN.js +++ b/packages/modules/display_themes/cards/web/assets/StatusView-IQAnLXHB.js @@ -1 +1 @@ -import{u as y}from"./index-Bewn8wIg.js";import{F as b,l as k,C as M,D as A}from"./vendor-fortawesome-BuJHQtFF.js";import{_ as p}from"./vendor-inkline-CPyfyZy8.js";import{l as c,q as t,p as l,o as f,k as n,s as o,I as x,i as I,f as C}from"./vendor-DR1uipmZ.js";import{D as z}from"./DashBoardCard-B7mtE8H4.js";k.add(M);const D=p({name:"ReloadButton",components:{FontAwesomeIcon:b},props:{},data:()=>({}),methods:{reloadDisplay(){location.reload()}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-button");return f(),c(a,{color:"success",size:"lg",onClick:e[0]||(e[0]=s=>m.reloadDisplay())},{default:t(()=>[e[1]||(e[1]=n(" Display neu laden ")),o(i,{"fixed-width":"",icon:["fas","fa-undo"]})]),_:1})}]]);k.add(M);const F=p({name:"RebootButton",components:{FontAwesomeIcon:b},props:{},data:()=>({mqttStore:y(),showModal:!1}),methods:{toggleModal(){this.showModal=!this.showModal},cancel(){this.toggleModal()},confirm(){this.toggleModal(),this.mqttStore.settings.parentChargePoint1!==void 0?this.$root.sendSystemCommand("chargepointReboot",{chargePoint:this.mqttStore.settings.parentChargePoint1}):this.$root.sendSystemCommand("systemReboot")}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-container"),s=l("i-button"),d=l("i-column"),_=l("i-row"),g=l("i-modal");return f(),c(s,{color:"warning",size:"lg",onClick:e[3]||(e[3]=r=>m.toggleModal())},{default:t(()=>[e[8]||(e[8]=n(" openWB neu starten ")),o(i,{"fixed-width":"",icon:["fas","fa-undo"]}),(f(),c(x,{to:"body"},[o(g,{modelValue:u.showModal,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showModal=r),size:"sm"},{header:t(()=>e[4]||(e[4]=[n(" openWB neu starten... ")])),footer:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_text-align:right"},{default:t(()=>[o(s,{color:"success",onClick:e[0]||(e[0]=r=>m.cancel())},{default:t(()=>e[6]||(e[6]=[n(" Zurück ")])),_:1})]),_:1}),o(d,null,{default:t(()=>[o(s,{color:"danger",onClick:e[1]||(e[1]=r=>m.confirm())},{default:t(()=>e[7]||(e[7]=[n(" Neustart ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:t(()=>[o(a,null,{default:t(()=>e[5]||(e[5]=[n(" Möchten Sie diese openWB wirklich neu starten? ")])),_:1})]),_:1},8,["modelValue"])]))]),_:1})}]]);k.add(A);const Z=p({name:"StatusView",components:{ReloadButton:D,RebootButton:F,ShutdownButton:p({name:"ShutdownButton",components:{FontAwesomeIcon:b},props:{},data:()=>({mqttStore:y(),showModal:!1}),methods:{toggleModal(){this.showModal=!this.showModal},cancel(){this.toggleModal()},confirm(){this.toggleModal(),this.mqttStore.settings.parentChargePoint1!==void 0?this.$root.sendSystemCommand("chargepointShutdown",{chargePoint:this.mqttStore.settings.parentChargePoint1}):this.$root.sendSystemCommand("systemShutdown")}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-container"),s=l("i-button"),d=l("i-column"),_=l("i-row"),g=l("i-modal");return f(),c(s,{color:"danger",size:"lg",onClick:e[3]||(e[3]=r=>m.toggleModal())},{default:t(()=>[e[8]||(e[8]=n(" openWB ausschalten ")),o(i,{"fixed-width":"",icon:["fas","fa-power-off"]}),(f(),c(x,{to:"body"},[o(g,{modelValue:u.showModal,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showModal=r),size:"sm"},{header:t(()=>e[4]||(e[4]=[n(" openWB ausschalten... ")])),footer:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_text-align:right"},{default:t(()=>[o(s,{color:"success",onClick:e[0]||(e[0]=r=>m.cancel())},{default:t(()=>e[6]||(e[6]=[n(" Zurück ")])),_:1})]),_:1}),o(d,null,{default:t(()=>[o(s,{color:"danger",onClick:e[1]||(e[1]=r=>m.confirm())},{default:t(()=>e[7]||(e[7]=[n(" Ausschalten ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:t(()=>[o(a,null,{default:t(()=>e[5]||(e[5]=[n(" Möchten Sie diese openWB wirklich ausschalten?"),I("br",null,null,-1),n(" Nach dem Ausschalten muss die Ladestation komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")])),_:1})]),_:1},8,["modelValue"])]))]),_:1})}]]),DashBoardCard:z},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:y()})},[["render",function(w,e,h,S,u,m){const i=l("i-form-label"),a=l("i-column"),s=l("i-input"),d=l("i-row"),_=l("i-form-group"),g=l("reload-button"),r=l("reboot-button"),B=l("shutdown-button"),q=l("i-form"),v=l("i-container"),V=l("dash-board-card");return f(),c(V,{color:"primary"},{headerLeft:t(()=>e[0]||(e[0]=[n(" Status ")])),default:t(()=>[o(v,null,{default:t(()=>[o(q,null,{default:t(()=>[o(d,null,{default:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_margin-top:2"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[1]||(e[1]=[n(" IP-Adresse ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_ip",plaintext:"","model-value":u.mqttStore.getSystemIp},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[2]||(e[2]=[n(" Systemzeit ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_time",plaintext:"","model-value":u.mqttStore.getSystemTime},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[3]||(e[3]=[n(" Version ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_version",plaintext:"","model-value":u.mqttStore.getSystemVersion},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[4]||(e[4]=[n(" Version (Details) ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_commit",plaintext:"","model-value":u.mqttStore.getSystemCurrentCommit},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[5]||(e[5]=[n(" Entwicklungszweig ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_branch",plaintext:"","model-value":u.mqttStore.getSystemBranch},null,8,["model-value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),h.changesLocked?C("",!0):(f(),c(d,{key:0,class:"_margin-top:5",between:""},{default:t(()=>[o(a,null,{default:t(()=>[o(g,{block:""})]),_:1})]),_:1})),h.changesLocked?C("",!0):(f(),c(d,{key:1,between:""},{default:t(()=>[o(a,null,{default:t(()=>[o(r,{block:"",class:"_margin-top:2"})]),_:1}),o(a,null,{default:t(()=>[o(B,{block:"",class:"_margin-top:2"})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})}]]);export{Z as default}; +import{u as y}from"./index-BYcKhBWB.js";import{F as b,l as k,D as C,E as A}from"./vendor-fortawesome-D4MLbCBR.js";import{_ as p}from"./vendor-inkline-DMzDOCDa.js";import{l as c,q as t,p as l,o as f,k as n,s as o,I as x,i as I,f as M}from"./vendor-CSZuzLkg.js";import{D as z}from"./DashboardCard-5rGwPkme.js";k.add(C);const D=p({name:"ReloadButton",components:{FontAwesomeIcon:b},props:{},data:()=>({}),methods:{reloadDisplay(){location.reload()}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-button");return f(),c(a,{color:"success",size:"lg",onClick:e[0]||(e[0]=s=>m.reloadDisplay())},{default:t(()=>[e[1]||(e[1]=n(" Display neu laden ")),o(i,{"fixed-width":"",icon:["fas","fa-undo"]})]),_:1})}]]);k.add(C);const F=p({name:"RebootButton",components:{FontAwesomeIcon:b},props:{},data:()=>({mqttStore:y(),showModal:!1}),methods:{toggleModal(){this.showModal=!this.showModal},cancel(){this.toggleModal()},confirm(){this.toggleModal(),this.mqttStore.settings.parentChargePoint1!==void 0?this.$root.sendSystemCommand("chargepointReboot",{chargePoint:this.mqttStore.settings.parentChargePoint1}):this.$root.sendSystemCommand("systemReboot")}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-container"),s=l("i-button"),d=l("i-column"),_=l("i-row"),g=l("i-modal");return f(),c(s,{color:"warning",size:"lg",onClick:e[3]||(e[3]=r=>m.toggleModal())},{default:t(()=>[e[8]||(e[8]=n(" openWB neu starten ")),o(i,{"fixed-width":"",icon:["fas","fa-undo"]}),(f(),c(x,{to:"body"},[o(g,{modelValue:u.showModal,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showModal=r),size:"sm"},{header:t(()=>e[4]||(e[4]=[n(" openWB neu starten... ")])),footer:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_text-align:right"},{default:t(()=>[o(s,{color:"success",onClick:e[0]||(e[0]=r=>m.cancel())},{default:t(()=>e[6]||(e[6]=[n(" Zurück ")])),_:1})]),_:1}),o(d,null,{default:t(()=>[o(s,{color:"danger",onClick:e[1]||(e[1]=r=>m.confirm())},{default:t(()=>e[7]||(e[7]=[n(" Neustart ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:t(()=>[o(a,null,{default:t(()=>e[5]||(e[5]=[n(" Möchten Sie diese openWB wirklich neu starten? ")])),_:1})]),_:1},8,["modelValue"])]))]),_:1})}]]);k.add(A);const E=p({name:"StatusView",components:{ReloadButton:D,RebootButton:F,ShutdownButton:p({name:"ShutdownButton",components:{FontAwesomeIcon:b},props:{},data:()=>({mqttStore:y(),showModal:!1}),methods:{toggleModal(){this.showModal=!this.showModal},cancel(){this.toggleModal()},confirm(){this.toggleModal(),this.mqttStore.settings.parentChargePoint1!==void 0?this.$root.sendSystemCommand("chargepointShutdown",{chargePoint:this.mqttStore.settings.parentChargePoint1}):this.$root.sendSystemCommand("systemShutdown")}}},[["render",function(w,e,h,S,u,m){const i=l("FontAwesomeIcon"),a=l("i-container"),s=l("i-button"),d=l("i-column"),_=l("i-row"),g=l("i-modal");return f(),c(s,{color:"danger",size:"lg",onClick:e[3]||(e[3]=r=>m.toggleModal())},{default:t(()=>[e[8]||(e[8]=n(" openWB ausschalten ")),o(i,{"fixed-width":"",icon:["fas","fa-power-off"]}),(f(),c(x,{to:"body"},[o(g,{modelValue:u.showModal,"onUpdate:modelValue":e[2]||(e[2]=r=>u.showModal=r),size:"sm"},{header:t(()=>e[4]||(e[4]=[n(" openWB ausschalten... ")])),footer:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_text-align:right"},{default:t(()=>[o(s,{color:"success",onClick:e[0]||(e[0]=r=>m.cancel())},{default:t(()=>e[6]||(e[6]=[n(" Zurück ")])),_:1})]),_:1}),o(d,null,{default:t(()=>[o(s,{color:"danger",onClick:e[1]||(e[1]=r=>m.confirm())},{default:t(()=>e[7]||(e[7]=[n(" Ausschalten ")])),_:1})]),_:1})]),_:1})]),_:1})]),default:t(()=>[o(a,null,{default:t(()=>e[5]||(e[5]=[n(" Möchten Sie diese openWB wirklich ausschalten?"),I("br",null,null,-1),n(" Nach dem Ausschalten muss die Ladestation komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")])),_:1})]),_:1},8,["modelValue"])]))]),_:1})}]]),DashboardCard:z},props:{changesLocked:{required:!1,type:Boolean,default:!1}},data:()=>({mqttStore:y()})},[["render",function(w,e,h,S,u,m){const i=l("i-form-label"),a=l("i-column"),s=l("i-input"),d=l("i-row"),_=l("i-form-group"),g=l("reload-button"),r=l("reboot-button"),q=l("shutdown-button"),B=l("i-form"),v=l("i-container"),V=l("dashboard-card");return f(),c(V,{color:"primary"},{headerLeft:t(()=>e[0]||(e[0]=[n(" Status ")])),default:t(()=>[o(v,null,{default:t(()=>[o(B,null,{default:t(()=>[o(d,null,{default:t(()=>[o(a,null,{default:t(()=>[o(_,null,{default:t(()=>[o(d,{class:"_margin-top:2"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[1]||(e[1]=[n(" IP-Adresse ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_ip",plaintext:"","model-value":u.mqttStore.getSystemIp},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[2]||(e[2]=[n(" Systemzeit ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_time",plaintext:"","model-value":u.mqttStore.getSystemTime},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[3]||(e[3]=[n(" Version ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_version",plaintext:"","model-value":u.mqttStore.getSystemVersion},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[4]||(e[4]=[n(" Version (Details) ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_commit",plaintext:"","model-value":u.mqttStore.getSystemCurrentCommit},null,8,["model-value"])]),_:1})]),_:1}),o(d,{class:"_margin-top:1"},{default:t(()=>[o(a,{xl:"2",lg:"3",md:"4"},{default:t(()=>[o(i,null,{default:t(()=>e[5]||(e[5]=[n(" Entwicklungszweig ")])),_:1})]),_:1}),o(a,null,{default:t(()=>[o(s,{id:"input_system_branch",plaintext:"","model-value":u.mqttStore.getSystemBranch},null,8,["model-value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),h.changesLocked?M("",!0):(f(),c(d,{key:0,class:"_margin-top:5",between:""},{default:t(()=>[o(a,null,{default:t(()=>[o(g,{block:""})]),_:1})]),_:1})),h.changesLocked?M("",!0):(f(),c(d,{key:1,between:""},{default:t(()=>[o(a,null,{default:t(()=>[o(r,{block:"",class:"_margin-top:2"})]),_:1}),o(a,null,{default:t(()=>[o(q,{block:"",class:"_margin-top:2"})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})}]]);export{E as default}; diff --git a/packages/modules/display_themes/cards/web/assets/index-BYcKhBWB.js b/packages/modules/display_themes/cards/web/assets/index-BYcKhBWB.js new file mode 100644 index 0000000000..d1602b9cf3 --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/index-BYcKhBWB.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardView-_Is2rbwP.js","assets/DashboardCard-5rGwPkme.js","assets/vendor-inkline-DMzDOCDa.js","assets/vendor-CSZuzLkg.js","assets/vendor-inkline-BxOXWZNy.css","assets/DashboardCard-Cy_vzq6d.css","assets/ChargePointPlugBadge-weESa4ng.js","assets/vendor-fortawesome-D4MLbCBR.js","assets/ChargePointPlugBadge-HWp2u3dG.css","assets/DashboardView-BYiJMWFT.css","assets/EnergyFlowView-ZntI_-Ks.js","assets/ChargeModeModal-C0nwI9o6.js","assets/ChargeModeModal-CGs_z8ao.css","assets/EnergyFlowView-BOyDZ-Ju.css","assets/ChargePointsView-OtbDwJrE.js","assets/ChargePointsView-L_i2iL0g.css","assets/StatusView-IQAnLXHB.js"])))=>i.map(i=>d[i]); +import{e as y,k as f,j as V,x as k,F as S,o as p,i as W,H as F,l as C,q as c,p as h,f as w,s,A as D,I as E,z as A,R as H,J as R,K as U,L as z,M as G,N as K}from"./vendor-CSZuzLkg.js";import{_ as b,I as J,c as Y}from"./vendor-inkline-DMzDOCDa.js";import{l as $,f as L,a as q,F as O,b as Z,c as Q}from"./vendor-fortawesome-D4MLbCBR.js";(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const o of document.querySelectorAll('link[rel="modulepreload"]'))t(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&t(a)}).observe(document,{childList:!0,subtree:!0})}function t(o){if(o.ep)return;o.ep=!0;const n=function(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}(o);fetch(o.href,n)}})();const X=b({name:"DateTime",data:()=>({dateTimeInterval:"",date:"",time:""}),mounted(){this.update(),this.dateTimeInterval=setInterval(this.update,1e3)},beforeUnmount(){clearInterval(this.dateTimeInterval)},methods:{update(){const e=new Date;this.date=e.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"2-digit",day:"2-digit"}),this.time=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}},[["render",function(e,t,o,n,a,i){return p(),y(S,null,[f(k(a.time),1),V(e.$slots,"default",{},()=>[t[0]||(t[0]=W("br",null,null,-1))]),f(k(a.date),1)],64)}]]),B=F("mqtt",{state:()=>({settings:{localIp:void 0,localBranch:void 0,localCommit:void 0,localVersion:void 0,parentChargePoint1:void 0,parentChargePoint2:void 0},topics:{},chartData:{}}),getters:{getChargePointFilter:e=>{let t=[];return e.settings.parentChargePoint1!==void 0&&t.push(e.settings.parentChargePoint1),e.settings.parentChargePoint2!==void 0&&t.push(e.settings.parentChargePoint2),t},getWildcardIndexList:e=>(t,o=!1)=>{let n=t;o||(n="^"+t.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let a=Object.keys(e.topics).filter(i=>i.match(n));return a.forEach((i,r,l)=>{l[r]=parseInt(i.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),a},getWildcardTopics:e=>(t,o=!1)=>{let n=t;return o||(n="^"+t.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(e.topics).filter(a=>a.match(n)).reduce((a,i)=>({...a,[i]:e.topics[i]}),{})},getObjectIds:e=>t=>function o(n){let a=[];return n!==void 0&&n.forEach(i=>{i.type==t&&a.push(i.id),a=[...a,...o(i.children)]}),a}(e.topics["openWB/counter/get/hierarchy"]),getValueBool:e=>(t,o=!1)=>{let n=e.topics[t];return n!==void 0?n:o},getValueString:e=>(t,o="W",n="",a=!0,i=!1,r="---",l=void 0)=>{var g=!1,d=e.topics[t];if(d===void 0||l!==void 0&&d[l]===void 0)m=r;else{l!==void 0&&(d=d[l]),i&&(d*=-1);for(var m=d.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),u=d;a&&(u>999||u<-999);)switch(u/=1e3,g=!0,n){case"":n="k";break;case"k":n="M";break;case"M":n="G"}m=u.toLocaleString(void 0,{minimumFractionDigits:g?2:0,maximumFractionDigits:g?2:0})}return{textValue:`${m} ${n}${o}`,value:d,unit:o,scaledValue:u,scaledUnit:`${n}${o}`}},getChartData:e=>t=>e.chartData[t]===void 0?[]:e.chartData[t],getDisplayStandby:e=>e.topics["openWB/optional/int_display/standby"],getThemeConfiguration:e=>{if("openWB/optional/int_display/theme"in e.topics&&e.topics["openWB/optional/int_display/theme"]!==void 0&&"configuration"in e.topics["openWB/optional/int_display/theme"])return e.topics["openWB/optional/int_display/theme"].configuration},getDefaultView:e=>{if(e.getThemeConfiguration){const t={dashboard:e.getThemeConfiguration.enable_dashboard_view,"energy-flow":e.getThemeConfiguration.enable_energy_flow_view,"charge-points":e.getThemeConfiguration.enable_charge_points_view,status:e.getThemeConfiguration.enable_status_view};if(e.getThemeConfiguration.default_view!==void 0&&t[e.getThemeConfiguration.default_view]===!0)return e.getThemeConfiguration.default_view;for(const[o,n]of Object.entries(t))if(n)return o}},getDefaultViewTimeout:e=>e.getThemeConfiguration?e.getThemeConfiguration.default_view_timeout:0,getDashboardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_view,getEnergyFlowEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_energy_flow_view,getChargePointsEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_charge_points_view,getStateEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_status_view,getGridCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_grid,getHomeCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_home_consumption,getBatteryCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_battery_sum,getChargePointsCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_charge_point_sum,getPvCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_inverter_sum,getLockChanges:e=>!e.getThemeConfiguration||e.getThemeConfiguration.lock_changes,getSimpleChargePointView:e=>!!e.getThemeConfiguration&&e.getThemeConfiguration.simple_charge_point_view,getGridId(e){let t=e.topics["openWB/counter/get/hierarchy"];if(t!==void 0&&Object.keys(t).length>0){let o=Object.keys(e.topics["openWB/counter/get/hierarchy"])[0];if(e.topics["openWB/counter/get/hierarchy"][o].type=="counter")return e.topics["openWB/counter/get/hierarchy"][o].id}},getGridPower:e=>(t="textValue")=>{let o=e.getGridId;if(o===void 0)return"---";let n=e.getValueString(`openWB/counter/${o}/get/power`,"W");return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getGridPowerChartData(e){let t=e.getGridId;return t===void 0?[]:e.getChartData(`openWB/counter/${t}/get/power`)},getHomePower:e=>(t="textValue")=>{let o=e.getValueString("openWB/counter/set/home_consumption","W");return Object.hasOwnProperty.call(o,t)?o[t]:t=="object"?o:void 0},getHomePowerChartData:e=>e.getChartData("openWB/counter/set/home_consumption"),getBatteryConfigured:e=>e.getValueBool("openWB/bat/config/configured"),getBatteryPower:e=>(t="textValue")=>{let o=e.getValueString("openWB/bat/get/power","W");return Object.hasOwnProperty.call(o,t)?o[t]:t=="object"?o:void 0},getBatteryPowerChartData:e=>e.getChartData("openWB/bat/get/power"),getBatterySoc:e=>(t="textValue")=>{let o=e.getValueString("openWB/bat/get/soc","%","",!1);return Object.hasOwnProperty.call(o,t)?o[t]:t=="object"?o:void 0},getBatterySocChartData:e=>e.getChartData("openWB/bat/get/soc"),getPvConfigured:e=>e.getValueBool("openWB/pv/config/configured"),getPvPower:e=>(t="textValue")=>{var o=e.getValueString("openWB/pv/get/power","W","",!0,!0);return Object.hasOwnProperty.call(o,t)?o[t]:t=="object"?o:void 0},getPvPowerChartData:e=>e.getChartData("openWB/pv/get/power").map(t=>-1*t),getChargePointSumPower:e=>(t="textValue")=>{var o=e.getValueString("openWB/chargepoint/get/power","W");return Object.hasOwnProperty.call(o,t)?o[t]:t=="object"?o:void 0},getChargePointSumPowerChartData:e=>e.getChartData("openWB/chargepoint/get/power"),getChargePointIds(e){let t=e.getObjectIds("cp"),o=this.getChargePointFilter;return o.length>0?t.filter(n=>o.includes(n)):t},getChargePointName:e=>t=>e.topics[`openWB/chargepoint/${t}/config`]!==void 0?e.topics[`openWB/chargepoint/${t}/config`].name:"---",getChargePointPower:e=>(t,o="textValue")=>{var n=e.getValueString(`openWB/chargepoint/${t}/get/power`,"W");return Object.hasOwnProperty.call(n,o)?n[o]:o=="object"?n:void 0},getChargePointImportedSincePlugged:e=>t=>({energy:e.getValueString(`openWB/chargepoint/${t}/set/log`,"Wh","",!0,!1,"---","imported_since_plugged").textValue,range:e.getValueString(`openWB/chargepoint/${t}/set/log`,"m","k",!1,!1,"---","range_charged").textValue}),getChargePointPowerChartData:e=>t=>e.getChartData(`openWB/chargepoint/${t}/get/power`),getChargePointSetCurrent:e=>(t,o="textValue")=>{let n=e.getValueString(`openWB/chargepoint/${t}/set/current`,"A");return Object.hasOwnProperty.call(n,o)?n[o]:o=="object"?n:void 0},getChargePointPhasesInUse:e=>t=>{const o=["/","①","②","③"],n=e.topics[`openWB/chargepoint/${t}/get/phases_in_use`];return n!==void 0&&n>=0&&nt=>e.getValueBool(`openWB/chargepoint/${t}/get/plug_state`),getChargePointChargeState:e=>t=>e.getValueBool(`openWB/chargepoint/${t}/get/charge_state`),getChargePointManualLock:e=>t=>e.getValueBool(`openWB/chargepoint/${t}/set/manual_lock`),getChargepointTagState:e=>t=>[void 0,null,""].includes(e.topics[`openWB/chargepoint/${t}/set/rfid`])?[void 0,null,""].includes(e.topics[`openWB/chargepoint/${t}/get/rfid`])?0:1:2,getChargePointConnectedVehicleConfig:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/config`],getChargePointConnectedVehicleChargeMode:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.translateChargeMode(e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.selected)},getChargePointConnectedVehiclePriority:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).prio},getChargePointConnectedVehicleInfo:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`],getChargePointConnectedVehicleId:e=>t=>{if(e.getChargePointConnectedVehicleInfo(t))return e.getChargePointConnectedVehicleInfo(t).id},getChargePointConnectedVehicleChargeTemplateIndex:e=>t=>{if(e.getChargePointConnectedVehicleConfig(t))return e.getChargePointConnectedVehicleConfig(t).charge_template},getChargePointConnectedVehicleChargeTemplate:e=>t=>e.topics[`openWB/chargepoint/${t}/set/charge_template`],getChargePointConnectedVehicleEvTemplate:e=>t=>{if(e.getChargePointConnectedVehicleConfig(t))return e.getChargePointConnectedVehicleConfig(t).ev_template},getChargePointConnectedVehicleName:e=>t=>{if(e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`])return e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`].name},getChargePointConnectedVehicleSoc:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/soc`],getChargePointConnectedVehicleTimeChargingActive:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).time_charging.active},getChargePointConnectedVehicleTimeChargingRunning:e=>t=>{let o=e.getChargePointConnectedVehicleConfig(t).time_charging_in_use;return o!==void 0&&o},getChargePointConnectedVehicleInstantChargingCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.instant_charging.current},getChargePointConnectedVehicleInstantChargingLimit:e=>t=>e.getChargePointConnectedVehicleChargeTemplate(t)?e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.instant_charging.limit:{selected:void 0},getChargePointConnectedVehicleInstantChargingPhases:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.instant_charging.phases_to_use},getChargePointConnectedVehiclePvChargingFeedInLimit:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.feed_in_limit},getChargePointConnectedVehiclePvChargingMinCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_current},getChargePointConnectedVehiclePvChargingPhases:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.phases_to_use},getChargePointConnectedVehiclePvChargingLimit:e=>t=>e.getChargePointConnectedVehicleChargeTemplate(t)?e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.limit:{selected:void 0},getChargePointConnectedVehiclePvChargingMinSoc:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_soc},getChargePointConnectedVehiclePvChargingMinSocCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_soc_current},getChargePointConnectedVehiclePvChargingMinSocPhases:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.phases_to_use_min_soc},getChargePointConnectedVehicleEcoChargingCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.eco_charging.current},getChargePointConnectedVehicleEcoChargingPhases:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.eco_charging.phases_to_use},getChargePointConnectedVehicleEcoChargingLimit:e=>t=>e.getChargePointConnectedVehicleChargeTemplate(t)?e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.eco_charging.limit:{selected:void 0},getChargePointConnectedVehicleEcoChargingMaxPrice:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return 1e5*e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.eco_charging.max_price},getChargePointConnectedVehicleScheduledChargingPlans:e=>t=>e.getWildcardTopics(`openWB/chargepoint/${t}/set/charge_template/chargemode/scheduled_charging/plans/+`),getChargePointConnectedVehicleTimeChargingPlans:e=>t=>e.getWildcardTopics(`openWB/chargepoint/${t}/set/charge_template/time_charging/plans/+`),getVehicleList:e=>e.getWildcardTopics("openWB/vehicle/+/name"),getVehicleName:e=>t=>e.topics[`openWB/vehicle/${t}/name`],getVehicleSocConfigured:e=>t=>e.topics[`openWB/vehicle/${t}/soc_module/config`].type!=null,getVehicleSocIsManual:e=>t=>e.topics[`openWB/vehicle/${t}/soc_module/config`].type=="manual",getVehicleFaultState:e=>t=>e.topics[`openWB/vehicle/${t}/get/fault_state`]?e.topics[`openWB/vehicle/${t}/get/fault_state`]:0,getSystemTime(e){if(e.topics["openWB/system/time"])return new Date(1e3*e.topics["openWB/system/time"]).toLocaleString()},getSystemIp:e=>e.settings.localIp!==void 0?e.settings.localIp:e.topics["openWB/system/ip_address"]?e.topics["openWB/system/ip_address"]:void 0,getSystemVersion:e=>e.settings.localVersion!==void 0?e.settings.localVersion:e.topics["openWB/system/version"]?e.topics["openWB/system/version"]:void 0,getSystemBranch:e=>e.settings.localBranch!==void 0?e.settings.localBranch:e.topics["openWB/system/current_branch"]?e.topics["openWB/system/current_branch"]:void 0,getSystemCurrentCommit:e=>e.settings.localCommit!==void 0?e.settings.localCommit:e.topics["openWB/system/current_commit"]?e.topics["openWB/system/current_commit"]:void 0,getRfidEnabled(){return this.getValueBool("openWB/optional/rfid/active")},getEtPrices:e=>e.topics["openWB/optional/et/get/prices"]},actions:{updateSetting(e,t){e in this.settings&&(this.settings[e]=t)},initTopic(e,t=void 0){e.includes("#")||e.includes("+")||this.addTopic(e,t)},addTopic(e,t){this.topics[e]=t},removeTopic(e){e.includes("#")||e.includes("+")?Object.keys(this.getWildcardTopics(e)).forEach(t=>{delete this.topics[t]}):delete this.topics[e]},updateTopic(e,t,o=void 0){return e in this.topics?(o!=null?(n=this.topics[e],i=t,(a=o).split(".").reduce((r,l,g)=>r[l]=a.split(".").length===++g?i:r[l]||{},n)):this.topics[e]=t,this.topics[e]):void 0;var n,a,i},updateChartData(){for(const[e,t]of Object.entries(this.topics))(e.endsWith("home_consumption")||e.endsWith("power")||e.endsWith("soc"))&&(this.chartData[e]===void 0&&(this.chartData[e]=[]),t!=null&&(this.chartData[e].push(t),this.chartData[e].slice(-128)))},updateState(e,t,o=void 0){return this.updateTopic(e,t,o)},chargeModeList(){var e=[{id:"instant_charging"},{id:"pv_charging"},{id:"scheduled_charging"},{id:"eco_charging"},{id:"stop"}];return e.forEach(t=>{t.label=this.translateChargeMode(t.id).label,t.class=this.translateChargeMode(t.id).class}),e},translateChargeMode(e){switch(e){case"instant_charging":return{mode:e,label:"Sofort",class:"danger"};case"pv_charging":return{mode:e,label:"PV",class:"success"};case"scheduled_charging":return{mode:e,label:"Ziel",class:"primary"};case"time_charging":return{mode:e,label:"Zeit",class:"warning"};case"eco_charging":return{mode:e,label:"Eco",class:"secondary"};case"stop":return{mode:e,label:"Stop",class:"dark"};default:return{mode:e,label:e,class:e}}},checkChangesLockCode(e){return!(!this.getThemeConfiguration||this.getThemeConfiguration.lock_changes_code!=e)},formatDate:(e,t={year:"numeric",month:"2-digit",day:"2-digit"})=>new Date(e).toLocaleDateString(void 0,t),formatDateRange(e,t="-"){const o={year:"numeric",month:"2-digit",day:"2-digit"};let n={day:"2-digit"};const a=new Date(e[0]),i=new Date(e[1]);return a.getFullYear()==i.getFullYear()?(t=`.${t}`,a.getMonth()!=i.getMonth()&&(n.month=o.month)):n=o,`${this.formatDate(e[0],n)}${t}${this.formatDate(e[1],o)}`},formatWeeklyScheduleDays(e){const t=["Mo","Di","Mi","Do","Fr","Sa","So"];let o=[],n=null;return e.forEach((a,i)=>{a?n===null&&(n=i):n!==null&&(n===i-1?o.push(t[n]):o.push(`${t[n]}-${t[i-1]}`),n=null)}),n!==null&&(n===e.length-1?o.push(t[n]):o.push(`${t[n]}-${t[e.length-1]}`)),o.join(", ")}}}),ee=b({name:"NavBar",components:{NavItem:b({name:"NavItem",props:{to:{type:Object,required:!0}}},[["render",function(e,t,o,n,a,i){const r=h("i-nav-item");return p(),C(r,{to:o.to,"active-class":"-active",class:"_border _border-color:primary _text-align:center"},{default:c(()=>[V(e.$slots,"default",{},void 0,!0)]),_:3},8,["to"])}],["__scopeId","data-v-1db6ae73"]])},data:()=>({mqttStore:B()})},[["render",function(e,t,o,n,a,i){const r=h("nav-item"),l=h("i-nav");return p(),C(l,{vertical:"",class:"_align-items:stretch",size:"lg"},{default:c(()=>[a.mqttStore.getDashboardEnabled?(p(),C(r,{key:0,to:{name:"dashboard"}},{default:c(()=>t[0]||(t[0]=[f(" Übersicht ")])),_:1})):w("",!0),a.mqttStore.getEnergyFlowEnabled?(p(),C(r,{key:1,to:{name:"energy-flow"}},{default:c(()=>t[1]||(t[1]=[f(" Energiefluss ")])),_:1})):w("",!0),a.mqttStore.getChargePointsEnabled&&a.mqttStore.getChargePointIds.length>0?(p(),C(r,{key:2,to:{name:"charge-points"}},{default:c(()=>t[2]||(t[2]=[f(" Ladepunkte ")])),_:1})):w("",!0),a.mqttStore.getStateEnabled?(p(),C(r,{key:3,to:{name:"status"}},{default:c(()=>t[3]||(t[3]=[f(" Status ")])),_:1})):w("",!0)]),_:1})}]]);$.add(L,q);const te=b({name:"NumberPad",components:{FontAwesomeIcon:O},emits:["key:digit","key:clear","key:delete"],data:()=>({buttonRows:[[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"}],[{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"}],[{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"}]]}),methods:{emitDigit(e){this.$emit("key:digit",e)},emitClear(){this.$emit("key:clear")},emitDelete(){this.$emit("key:delete")}}},[["render",function(e,t,o,n,a,i){const r=h("i-button"),l=h("i-column"),g=h("i-row"),d=h("FontAwesomeIcon"),m=h("i-container");return p(),C(m,null,{default:c(()=>[(p(!0),y(S,null,D(a.buttonRows,u=>(p(),C(g,{key:u,center:"",class:"_padding-bottom:1"},{default:c(()=>[(p(!0),y(S,null,D(u,_=>(p(),C(l,{key:_.value,class:"pin-button-column"},{default:c(()=>[s(r,{size:"lg",class:"pin-button",onClick:v=>i.emitDigit(_.value)},{default:c(()=>[f(k(_.label),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:2},1024))),128)),s(g,{center:""},{default:c(()=>[s(l,{class:"pin-button-column"},{default:c(()=>[s(r,{size:"lg",class:"pin-button",onClick:t[0]||(t[0]=u=>i.emitClear())},{default:c(()=>[s(d,{"fixed-width":"",icon:["fas","fa-eraser"]})]),_:1})]),_:1}),s(l,{class:"pin-button-column"},{default:c(()=>[s(r,{size:"lg",class:"pin-button",onClick:t[1]||(t[1]=u=>i.emitDigit("0"))},{default:c(()=>t[3]||(t[3]=[f(" 0 ")])),_:1})]),_:1}),s(l,{class:"pin-button-column"},{default:c(()=>[s(r,{size:"lg",class:"pin-button",onClick:t[2]||(t[2]=u=>i.emitDelete())},{default:c(()=>[s(d,{"fixed-width":"",icon:["fas","fa-delete-left"]})]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-4e2103db"]]),oe=b({name:"CodeInputModal",components:{NumberPad:te},props:{modelValue:{type:Boolean,required:!0},backgroundColor:{type:String,default:"warning"},placeholderCharacter:{type:String,default:"*",validator:e=>e.length==1},inputVisible:{type:Boolean,default:!1},minLength:{type:Number,default:4},maxLength:{type:Number,default:4}},emits:["update:modelValue","update:inputValue"],data(){return{number:"",modalBackground:this.backgroundColor}},computed:{placeholder(){return this.placeholderCharacter.repeat(this.minLength)},enableSubmit(){return this.number.length>=this.minLength&&this.number.length<=this.maxLength}},watch:{modelValue(e,t){e===!1&&t===!0&&this.clear()}},methods:{abort(){this.$emit("update:modelValue",!1)},addDigit(e){this.number.length{this.$emit("update:modelValue",!1),this.modalBackground=this.backgroundColor},500)},error(e="danger"){this.modalBackground=e,setTimeout(()=>{this.clear(),this.modalBackground=this.backgroundColor},2e3)}}},[["render",function(e,t,o,n,a,i){const r=h("i-input"),l=h("i-column"),g=h("i-row"),d=h("NumberPad"),m=h("i-container"),u=h("i-button"),_=h("i-modal");return p(),C(E,{to:"body"},[s(_,{"model-value":o.modelValue,color:a.modalBackground,"onUpdate:modelValue":t[4]||(t[4]=v=>e.$emit("update:modelValue",v))},{header:c(()=>[V(e.$slots,"header",{},()=>[t[5]||(t[5]=f(" **HEADER** "))])]),footer:c(()=>[s(m,null,{default:c(()=>[s(g,null,{default:c(()=>[s(l,null,{default:c(()=>[s(u,{color:"danger",onClick:i.abort},{default:c(()=>[V(e.$slots,"abort",{},()=>[t[6]||(t[6]=f(" Zurück "))])]),_:3},8,["onClick"])]),_:3}),s(l,{class:"_text-align:right"},{default:c(()=>[i.enableSubmit?(p(),C(u,{key:0,color:"success",onClick:i.submit},{default:c(()=>[V(e.$slots,"submit",{},()=>[t[7]||(t[7]=f(" OK "))])]),_:3},8,["onClick"])):w("",!0)]),_:3})]),_:3})]),_:3})]),default:c(()=>[s(m,null,{default:c(()=>[s(g,{center:"",class:"_padding-bottom:1"},{default:c(()=>[s(l,null,{default:c(()=>[s(r,{modelValue:a.number,"onUpdate:modelValue":t[0]||(t[0]=v=>a.number=v),placeholder:i.placeholder,readonly:"",size:"lg",type:o.inputVisible?"text":"password",class:"_text-align:center"},null,8,["modelValue","placeholder","type"])]),_:1})]),_:1}),s(d,{"onKey:digit":t[1]||(t[1]=v=>i.addDigit(v)),"onKey:clear":t[2]||(t[2]=v=>i.clear()),"onKey:delete":t[3]||(t[3]=v=>i.removeDigit(v))})]),_:1})]),_:3},8,["model-value","color"])])}]]);$.add(Z,Q,L,q);const ne={key:0,class:"_padding-left:1"},x="/openWB/web/display/themes/cards/openWB_logo_dark.png",ie=b({name:"OpenwbDisplayCardsApp",components:{RouterView:H,DateTime:X,NavBar:ee,LockNavItem:b({name:"LockNavItem",components:{FontAwesomeIcon:O,CodeInputModal:oe},props:{},data:()=>({mqttStore:B(),modalPinEntryVisible:!1,modalPinEntryColor:"warning",code:"",countdown:0,countdownInterval:void 0,events:["mousemove","touchmove","wheel","click"]}),computed:{changesLocked:{get(){return this.mqttStore.settings.changesLocked},set(e){this.mqttStore.settings.changesLocked=e}},timer(){return Math.trunc(this.countdown/60).toString()+":"+(this.countdown%60).toString().padStart(2,"0")}},mounted(){this.changesLocked=!0},methods:{toggleChangesLock(){this.changesLocked?this.unlockChanges():this.lockChanges()},unlockChanges(){this.modalPinEntryVisible=!0},checkUnlockCode(e){this.mqttStore.checkChangesLockCode(e)?(this.$refs.lockInput.success("success"),this.changesLocked=!1,this.mqttStore.getDisplayStandby>0&&(this.countdown=this.mqttStore.getDisplayStandby,this.countdownInterval=setInterval(this.updateCountdown,1e3),this.events.forEach(t=>{document.addEventListener(t,this.handleDocumentEvent,{passive:!0})}))):this.$refs.lockInput.error("danger")},lockChanges(){this.changesLocked=!0,this.events.forEach(e=>{document.removeEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.countdownInterval!==void 0&&(clearInterval(this.countdownInterval),this.countdownInterval=void 0)},updateCountdown(){this.countdown-=1,this.countdown<1&&this.lockChanges()},handleDocumentEvent(){this.countdown=this.mqttStore.getDisplayStandby}}},[["render",function(e,t,o,n,a,i){const r=h("FontAwesomeIcon"),l=h("i-button"),g=h("CodeInputModal");return p(),y(S,null,[a.mqttStore.getLockChanges?(p(),C(l,{key:0,class:"_padding-left:0 _padding-right:0 _margin-bottom:1",size:"lg",block:"",color:i.changesLocked?"danger":"success",onClick:t[0]||(t[0]=d=>i.toggleChangesLock())},{default:c(()=>[s(r,{"fixed-width":"",icon:i.changesLocked?["fas","fa-lock"]:["fas","fa-lock-open"],class:A(i.changesLocked?"_color:danger-80":"_color:success-80")},null,8,["icon","class"]),!i.changesLocked&&a.countdownInterval?(p(),y("span",ne,k(i.timer),1)):w("",!0)]),_:1},8,["color"])):w("",!0),s(g,{ref:"lockInput",modelValue:a.modalPinEntryVisible,"onUpdate:modelValue":t[1]||(t[1]=d=>a.modalPinEntryVisible=d),"min-length":4,"max-length":10,"onUpdate:inputValue":i.checkUnlockCode},{header:c(()=>t[2]||(t[2]=[f(" Bitte den PIN zur Freigabe von Änderungen eingeben. ")])),_:1},8,["modelValue","onUpdate:inputValue"])],64)}]]),TouchBlocker:b({name:"TouchBlocker",data:()=>({mqttStore:B(),show:!1,touchBlockerCountdown:void 0,touchBlockerCountdownInterval:void 0,defaultViewCountdown:void 0,defaultViewCountdownInterval:void 0,events:["mousemove","touchmove","wheel","click"],eventHandlerSetup:!1}),computed:{configuredDisplayStandby(){if(this.mqttStore.getDisplayStandby!==0&&this.mqttStore.getDisplayStandby!==void 0)return this.mqttStore.getDisplayStandby},configuredDefaultViewTimeout(){if(this.mqttStore.getDefaultViewTimeout!==0&&this.mqttStore.getDefaultViewTimeout!==void 0)return this.mqttStore.getDefaultViewTimeout},touchBlockerTimeout(){return Math.max(this.configuredDisplayStandby-3,1)},defaultViewTimeout(){return this.configuredDefaultViewTimeout}},mounted(){this.setupEventHandler(),this.setupTouchBlockerTimeout(),this.setupDefaultViewTimeout()},unmounted(){this.clearEventHandler(),this.clearTouchBlockerTimeout(),this.clearDefaultViewTimeout()},methods:{handleTouchBlockerClick(e){e===!1&&(this.show=!1,this.setupEventHandler(),this.setupTouchBlockerTimeout(),this.setupDefaultViewTimeout())},setupEventHandler(){this.eventHandlerSetup||(this.events.forEach(e=>{document.addEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.eventHandlerSetup=!0)},clearEventHandler(){this.eventHandlerSetup&&(this.events.forEach(e=>{document.removeEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.eventHandlerSetup=!1)},setupTouchBlockerTimeout(){this.touchBlockerCountdownCountdownInterval===void 0&&(this.touchBlockerCountdownCountdownInterval=setInterval(this.updateTouchBlockerCountdown,1e3))},clearTouchBlockerTimeout(){this.touchBlockerCountdownCountdownInterval!==void 0&&(clearInterval(this.touchBlockerCountdownCountdownInterval),this.touchBlockerCountdownCountdownInterval=void 0)},updateTouchBlockerCountdown(){this.touchBlockerCountdown===void 0?this.touchBlockerCountdown=this.touchBlockerTimeout:(this.touchBlockerCountdown-=1,this.touchBlockerCountdown<1&&this.showTouchBlocker())},setupDefaultViewTimeout(){this.defaultViewCountdownInterval===void 0&&this.mqttStore.getDefaultView!==this.$route.name&&this.defaultViewTimeout!==void 0&&(this.defaultViewCountdownInterval=setInterval(this.updateDefaultViewCountdown,1e3))},clearDefaultViewTimeout(){this.defaultViewCountdownInterval!==void 0&&(clearInterval(this.defaultViewCountdownInterval),this.defaultViewCountdownInterval=void 0)},updateDefaultViewCountdown(){this.defaultViewCountdown===void 0&&this.defaultViewTimeout!==void 0?this.defaultViewCountdown=this.defaultViewTimeout:this.$route.name===this.mqttStore.getDefaultView?this.clearDefaultViewTimeout():(this.defaultViewCountdown-=1,this.defaultViewCountdown<1&&this.showDefaultView())},handleDocumentEvent(){this.touchBlockerCountdown=this.touchBlockerTimeout,this.defaultViewCountdown=this.defaultViewTimeout,this.setupDefaultViewTimeout(),this.show=!1},showTouchBlocker(){this.show=!0,this.clearTouchBlockerTimeout()},showDefaultView(){this.clearDefaultViewTimeout(),this.$route.name!==this.mqttStore.getDefaultView&&this.$router.push({name:this.mqttStore.getDefaultView})}}},[["render",function(e,t,o,n,a,i){const r=h("IModal");return p(),C(E,{to:"body"},[s(r,{class:"touch-blocker",size:"sm",color:"dark","model-value":a.show,"onUpdate:modelValue":t[0]||(t[0]=l=>i.handleTouchBlockerClick(l))},{default:c(()=>t[1]||(t[1]=[W("img",{class:"logo",src:x},null,-1),W("p",null," Bitte das Display berühren. ",-1)])),_:1},8,["model-value"])])}],["__scopeId","data-v-8ef187fa"]])},data:()=>({client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3},mqttTopicsToSubscribe:["openWB/bat/config/configured","openWB/bat/get/power","openWB/bat/get/soc","openWB/chargepoint/+/config","openWB/chargepoint/+/get/charge_state","openWB/chargepoint/+/get/connected_vehicle/+","openWB/chargepoint/+/set/charge_template","openWB/chargepoint/+/set/charge_template/chargemode/scheduled_charging/plans/+","openWB/chargepoint/+/set/charge_template/time_charging/plans/+","openWB/chargepoint/+/get/phases_in_use","openWB/chargepoint/+/get/plug_state","openWB/chargepoint/+/get/power","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/set/current","openWB/chargepoint/+/set/manual_lock","openWB/chargepoint/+/set/log","openWB/chargepoint/+/set/rfid","openWB/chargepoint/get/power","openWB/counter/+/get/power","openWB/counter/get/hierarchy","openWB/counter/set/home_consumption","openWB/optional/et/get/prices","openWB/optional/int_display/theme","openWB/optional/int_display/standby","openWB/optional/rfid/active","openWB/pv/config/configured","openWB/pv/get/power","openWB/system/current_branch","openWB/system/current_commit","openWB/system/ip_address","openWB/system/time","openWB/system/version","openWB/vehicle/+/get/fault_state","openWB/vehicle/+/name","openWB/vehicle/+/soc_module/config"],mqttStore:B(),chartInterval:"",clearConsoleHandler:void 0}),computed:{changesLocked(){return this.mqttStore.getLockChanges&&this.mqttStore.settings.changesLocked}},created(){this.createConnection()},mounted(){let e=window.location.search;if(e!=""){let n=new URLSearchParams(e);if(n.has("data")){let a=JSON.parse(n.get("data"));Object.entries(a).forEach(([i,r])=>{i.startsWith("parentChargePoint")?this.mqttStore.updateSetting(i,parseInt(r)):this.mqttStore.updateSetting(i,r)})}}this.doSubscribe(this.mqttTopicsToSubscribe),this.chartInterval=setInterval(this.mqttStore.updateChartData,5e3);const t=new Date,o=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1,0,0,0,0).getTime()-t.getTime();this.clearConsoleHandler=setTimeout(()=>this.clearConsole(),o)},beforeUnmount(){this.doUnsubscribe(this.mqttTopicsToSubscribe),clearInterval(this.chartInterval),clearTimeout(this.clearConsoleHandler)},methods:{clearConsole(){this.clearConsoleHandler=setTimeout(()=>this.clearConsole(),864e5)},createConnection(){const{protocol:e,host:t,port:o,endpoint:n,...a}=this.connection,i=`${e}://${t}:${o}${n}`;try{this.client=R.connect(i,a)}catch{}this.client.on("connect",()=>{}),this.client.on("error",r=>{}),this.client.on("message",(r,l)=>{if(l.toString().length>0){let g;try{g=JSON.parse(l.toString())}catch{g=l.toString()}this.mqttStore.addTopic(r,g)}else this.mqttStore.removeTopic(r)})},doSubscribe(e){e.forEach(t=>{this.mqttStore.initTopic(t)}),this.client.subscribe(e,{},t=>{})},doUnsubscribe(e){e.forEach(t=>{this.mqttStore.removeTopic(t)}),this.client.unsubscribe(e,t=>{})},doPublish(e,t,o=!0,n=2){let a={qos:n,retain:o};this.client.publish(e,JSON.stringify(t),a,i=>{})},sendTopicToBroker(e,t=void 0){let o=e.replace("openWB/","openWB/set/");t===void 0&&(t=this.mqttStore.topics[e]),this.doPublish(o,t)},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},sendSystemCommand(e,t={}){this.sendCommand({command:e,data:t})}}},[["render",function(e,t,o,n,a,i){const r=h("DateTime"),l=h("i-column"),g=h("i-row"),d=h("i-container"),m=h("LockNavItem"),u=h("NavBar"),_=h("TouchBlocker"),v=h("i-layout-aside"),j=h("RouterView"),M=h("i-layout-content"),N=h("i-layout");return p(),C(N,{vertical:""},{default:c(()=>[s(v,{class:"_position:fixed"},{default:c(()=>[s(d,{fluid:"",class:"_margin-bottom:1"},{default:c(()=>[s(g,{center:""},{default:c(()=>[s(l,null,{default:c(()=>[s(r)]),_:1})]),_:1})]),_:1}),s(m),s(u,{"changes-locked":i.changesLocked},null,8,["changes-locked"]),s(_)]),_:1}),s(M,null,{default:c(()=>[s(j,{"changes-locked":i.changesLocked},null,8,["changes-locked"])]),_:1})]),_:1})}],["__scopeId","data-v-80a22de0"]]),I={},P=function(e,t,o){let n=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),r=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.allSettled(t.map(l=>{if((l=function(u){return"/openWB/web/display/themes/cards/"+u}(l))in I)return;I[l]=!0;const g=l.endsWith(".css"),d=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const m=document.createElement("link");return m.rel=g?"stylesheet":"modulepreload",g||(m.as="script"),m.crossOrigin="",m.href=l,r&&m.setAttribute("nonce",r),document.head.appendChild(m),g?new Promise((u,_)=>{m.addEventListener("load",u),m.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))}):void 0}))}function a(i){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=i,window.dispatchEvent(r),!r.defaultPrevented)throw i}return n.then(i=>{for(const r of i||[])r.status==="rejected"&&a(r.reason);return e().catch(a)})},ae=b({name:"WelcomeView",data:()=>({mqttStore:B()}),mounted(){setTimeout(this.selectFirstRoute,3e3)},methods:{selectFirstRoute(){this.mqttStore.getDefaultView&&this.$router.push({name:this.mqttStore.getDefaultView})}}},[["render",function(e,t,o,n,a,i){const r=h("i-card"),l=h("i-column"),g=h("i-row"),d=h("i-container");return p(),C(d,null,{default:c(()=>[s(g,{center:"",middle:""},{default:c(()=>[s(l,null,{default:c(()=>[s(r,{color:"primary"},{header:c(()=>t[0]||(t[0]=[f(" Cards Theme ")])),default:c(()=>[t[1]||(t[1]=W("img",{class:"logo",src:x},null,-1))]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-e364c277"]]),re=U({history:z("/openWB/web/display/themes/cards/"),routes:[{path:"/",name:"welcome",component:ae},{path:"/Dashboard",name:"dashboard",component:()=>P(()=>import("./DashboardView-_Is2rbwP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))},{path:"/EnergyFlow",name:"energy-flow",component:()=>P(()=>import("./EnergyFlowView-ZntI_-Ks.js"),__vite__mapDeps([10,1,2,3,4,5,11,12,7,13]))},{path:"/ChargePoints",name:"charge-points",component:()=>P(()=>import("./ChargePointsView-OtbDwJrE.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,11,12,15]))},{path:"/Status",name:"status",component:()=>P(()=>import("./StatusView-IQAnLXHB.js"),__vite__mapDeps([16,7,3,2,4,1,5]))}]}),T=G(ie);T.use(K()),T.use(re),T.use(J,{colorMode:"dark",components:Y}),T.mount("#app");export{oe as C,te as N,B as u}; diff --git a/packages/modules/display_themes/cards/web/assets/index-Bewn8wIg.js b/packages/modules/display_themes/cards/web/assets/index-Bewn8wIg.js deleted file mode 100644 index 1d7c219bfb..0000000000 --- a/packages/modules/display_themes/cards/web/assets/index-Bewn8wIg.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashBoardView-Bir-HyNc.js","assets/DashBoardCard-B7mtE8H4.js","assets/vendor-inkline-CPyfyZy8.js","assets/vendor-DR1uipmZ.js","assets/vendor-inkline-BxOXWZNy.css","assets/DashBoardCard-Bl80pQ9w.css","assets/ChargePointPlugBadge-BsQ5Ic20.js","assets/vendor-fortawesome-BuJHQtFF.js","assets/ChargePointPlugBadge-HWp2u3dG.css","assets/DashBoardView-CZvLtoU0.css","assets/EnergyFlowView-Dv2TQaHl.js","assets/EnergyFlowView-CMZu-SNR.css","assets/ChargePointsView-DBcxu7CY.js","assets/ChargePointsView-ALIhGmhe.css","assets/StatusView-uWIroZcN.js"])))=>i.map(i=>d[i]); -import{e as P,k as f,j as B,x as k,F as W,o as p,i as T,H as F,l as C,q as c,p as d,f as y,s as l,A as I,I as E,z as A,R as H,J as R,K as U,L as z,M as G,N as K}from"./vendor-DR1uipmZ.js";import{_ as b,I as J,c as Y}from"./vendor-inkline-CPyfyZy8.js";import{l as $,f as L,a as q,F as O,b as Z,c as Q}from"./vendor-fortawesome-BuJHQtFF.js";(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&t(i)}).observe(document,{childList:!0,subtree:!0})}function t(n){if(n.ep)return;n.ep=!0;const a=function(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}(n);fetch(n.href,a)}})();const X=b({name:"DateTime",data:()=>({dateTimeInterval:"",date:"",time:""}),mounted(){this.update(),this.dateTimeInterval=setInterval(this.update,1e3)},beforeUnmount(){clearInterval(this.dateTimeInterval)},methods:{update(){const e=new Date;this.date=e.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"2-digit",day:"2-digit"}),this.time=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}},[["render",function(e,t,n,a,i,o){return p(),P(W,null,[f(k(i.time),1),B(e.$slots,"default",{},()=>[t[0]||(t[0]=T("br",null,null,-1))]),f(k(i.date),1)],64)}]]),w=F("mqtt",{state:()=>({settings:{localIp:void 0,localBranch:void 0,localCommit:void 0,localVersion:void 0,parentChargePoint1:void 0,parentChargePoint2:void 0},topics:{},chartData:{}}),getters:{getChargePointFilter:e=>{let t=[];return e.settings.parentChargePoint1!==void 0&&t.push(e.settings.parentChargePoint1),e.settings.parentChargePoint2!==void 0&&t.push(e.settings.parentChargePoint2),t},getWildcardIndexList:e=>(t,n=!1)=>{let a=t;n||(a="^"+t.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let i=Object.keys(e.topics).filter(o=>o.match(a));return i.forEach((o,r,s)=>{s[r]=parseInt(o.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),i},getWildcardTopics:e=>(t,n=!1)=>{let a=t;return n||(a="^"+t.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(e.topics).filter(i=>i.match(a)).reduce((i,o)=>({...i,[o]:e.topics[o]}),{})},getObjectIds:e=>t=>function n(a){let i=[];return a!==void 0&&a.forEach(o=>{o.type==t&&i.push(o.id),i=[...i,...n(o.children)]}),i}(e.topics["openWB/counter/get/hierarchy"]),getValueBool:e=>(t,n=!1)=>{let a=e.topics[t];return a!==void 0?a:n},getValueString:e=>(t,n="W",a="",i=!0,o=!1,r="---",s=void 0)=>{var h=!1,g=e.topics[t];if(g===void 0||s!==void 0&&g[s]===void 0)m=r;else{s!==void 0&&(g=g[s]),o&&(g*=-1);for(var m=g.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),u=g;i&&(u>999||u<-999);)switch(u/=1e3,h=!0,a){case"":a="k";break;case"k":a="M";break;case"M":a="G"}m=u.toLocaleString(void 0,{minimumFractionDigits:h?2:0,maximumFractionDigits:h?2:0})}return{textValue:`${m} ${a}${n}`,value:g,unit:n,scaledValue:u,scaledUnit:`${a}${n}`}},getChartData:e=>t=>e.chartData[t]===void 0?[]:e.chartData[t],getDisplayStandby:e=>e.topics["openWB/optional/int_display/standby"],getThemeConfiguration:e=>{if("openWB/optional/int_display/theme"in e.topics&&e.topics["openWB/optional/int_display/theme"]!==void 0&&"configuration"in e.topics["openWB/optional/int_display/theme"])return e.topics["openWB/optional/int_display/theme"].configuration},getDashBoardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_view,getEnergyFlowEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_energy_flow_view,getChargePointsEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_charge_points_view,getStateEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_status_view,getGridCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_grid,getHomeCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_home_consumption,getBatteryCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_battery_sum,getChargePointsCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_charge_point_sum,getPvCardEnabled:e=>!e.getThemeConfiguration||e.getThemeConfiguration.enable_dashboard_card_inverter_sum,getLockChanges:e=>!e.getThemeConfiguration||e.getThemeConfiguration.lock_changes,getSimpleChargePointView:e=>!!e.getThemeConfiguration&&e.getThemeConfiguration.simple_charge_point_view,getGridId(e){let t=e.topics["openWB/counter/get/hierarchy"];if(t!==void 0&&Object.keys(t).length>0){let n=Object.keys(e.topics["openWB/counter/get/hierarchy"])[0];if(e.topics["openWB/counter/get/hierarchy"][n].type=="counter")return e.topics["openWB/counter/get/hierarchy"][n].id}},getGridPower:e=>(t="textValue")=>{let n=e.getGridId;if(n===void 0)return"---";let a=e.getValueString(`openWB/counter/${n}/get/power`,"W");return Object.hasOwnProperty.call(a,t)?a[t]:t=="object"?a:void 0},getGridPowerChartData(e){let t=e.getGridId;return t===void 0?[]:e.getChartData(`openWB/counter/${t}/get/power`)},getHomePower:e=>(t="textValue")=>{let n=e.getValueString("openWB/counter/set/home_consumption","W");return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getHomePowerChartData:e=>e.getChartData("openWB/counter/set/home_consumption"),getBatteryConfigured:e=>e.getValueBool("openWB/bat/config/configured"),getBatteryPower:e=>(t="textValue")=>{let n=e.getValueString("openWB/bat/get/power","W");return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getBatteryPowerChartData:e=>e.getChartData("openWB/bat/get/power"),getBatterySoc:e=>(t="textValue")=>{let n=e.getValueString("openWB/bat/get/soc","%","",!1);return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getBatterySocChartData:e=>e.getChartData("openWB/bat/get/soc"),getPvConfigured:e=>e.getValueBool("openWB/pv/config/configured"),getPvPower:e=>(t="textValue")=>{var n=e.getValueString("openWB/pv/get/power","W","",!0,!0);return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getPvPowerChartData:e=>e.getChartData("openWB/pv/get/power").map(t=>-1*t),getChargePointSumPower:e=>(t="textValue")=>{var n=e.getValueString("openWB/chargepoint/get/power","W");return Object.hasOwnProperty.call(n,t)?n[t]:t=="object"?n:void 0},getChargePointSumPowerChartData:e=>e.getChartData("openWB/chargepoint/get/power"),getChargePointIds(e){let t=e.getObjectIds("cp"),n=this.getChargePointFilter;return n.length>0?t.filter(a=>n.includes(a)):t},getChargePointName:e=>t=>e.topics[`openWB/chargepoint/${t}/config`]!==void 0?e.topics[`openWB/chargepoint/${t}/config`].name:"---",getChargePointPower:e=>(t,n="textValue")=>{var a=e.getValueString(`openWB/chargepoint/${t}/get/power`,"W");return Object.hasOwnProperty.call(a,n)?a[n]:n=="object"?a:void 0},getChargePointImportedSincePlugged:e=>t=>({energy:e.getValueString(`openWB/chargepoint/${t}/set/log`,"Wh","",!0,!1,"---","imported_since_plugged").textValue,range:e.getValueString(`openWB/chargepoint/${t}/set/log`,"m","k",!1,!1,"---","range_charged").textValue}),getChargePointPowerChartData:e=>t=>e.getChartData(`openWB/chargepoint/${t}/get/power`),getChargePointSetCurrent:e=>(t,n="textValue")=>{let a=e.getValueString(`openWB/chargepoint/${t}/set/current`,"A");return Object.hasOwnProperty.call(a,n)?a[n]:n=="object"?a:void 0},getChargePointPhasesInUse:e=>t=>{const n=["/","①","②","③"],a=e.topics[`openWB/chargepoint/${t}/get/phases_in_use`];return a!==void 0&&a>=0&&at=>e.getValueBool(`openWB/chargepoint/${t}/get/plug_state`),getChargePointChargeState:e=>t=>e.getValueBool(`openWB/chargepoint/${t}/get/charge_state`),getChargePointManualLock:e=>t=>e.getValueBool(`openWB/chargepoint/${t}/set/manual_lock`),getChargepointTagState:e=>t=>[void 0,null,""].includes(e.topics[`openWB/chargepoint/${t}/set/rfid`])?[void 0,null,""].includes(e.topics[`openWB/chargepoint/${t}/get/rfid`])?0:1:2,getChargePointConnectedVehicleConfig:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/config`],getChargePointConnectedVehicleChargeMode:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.translateChargeMode(e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.selected)},getChargePointConnectedVehiclePriority:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).prio},getChargePointConnectedVehicleInfo:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`],getChargePointConnectedVehicleId:e=>t=>{if(e.getChargePointConnectedVehicleInfo(t))return e.getChargePointConnectedVehicleInfo(t).id},getChargePointConnectedVehicleChargeTemplateIndex:e=>t=>{if(e.getChargePointConnectedVehicleConfig(t))return e.getChargePointConnectedVehicleConfig(t).charge_template},getChargePointConnectedVehicleChargeTemplate:e=>t=>{let n=e.getChargePointConnectedVehicleChargeTemplateIndex(t);return e.topics[`openWB/vehicle/template/charge_template/${n}`]},getChargePointConnectedVehicleEvTemplate:e=>t=>{if(e.getChargePointConnectedVehicleConfig(t))return e.getChargePointConnectedVehicleConfig(t).ev_template},getChargePointConnectedVehicleName:e=>t=>{if(e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`])return e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/info`].name},getChargePointConnectedVehicleSoc:e=>t=>e.topics[`openWB/chargepoint/${t}/get/connected_vehicle/soc`],getChargePointConnectedVehicleTimeChargingActive:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).time_charging.active},getChargePointConnectedVehicleTimeChargingRunning:e=>t=>{let n=e.getChargePointConnectedVehicleConfig(t).time_charging_in_use;return n!==void 0&&n},getChargePointConnectedVehicleInstantChargingCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.instant_charging.current},getChargePointConnectedVehicleInstantChargingLimit:e=>t=>e.getChargePointConnectedVehicleChargeTemplate(t)?e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.instant_charging.limit:{selected:void 0},getChargePointConnectedVehiclePvChargingFeedInLimit:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.feed_in_limit},getChargePointConnectedVehiclePvChargingMinCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_current},getChargePointConnectedVehiclePvChargingMinSoc:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_soc},getChargePointConnectedVehiclePvChargingMinSocCurrent:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.min_soc_current},getChargePointConnectedVehiclePvChargingMaxSoc:e=>t=>{if(e.getChargePointConnectedVehicleChargeTemplate(t))return e.getChargePointConnectedVehicleChargeTemplate(t).chargemode.pv_charging.max_soc},getChargePointConnectedVehicleScheduledChargingPlans:e=>t=>{let n=e.getChargePointConnectedVehicleChargeTemplateIndex(t);return e.getWildcardTopics(`openWB/vehicle/template/charge_template/${n}/chargemode/scheduled_charging/plans/+`)},getChargePointConnectedVehicleTimeChargingPlans:e=>t=>{let n=e.getChargePointConnectedVehicleChargeTemplateIndex(t);return e.getWildcardTopics(`openWB/vehicle/template/charge_template/${n}/time_charging/plans/+`)},getVehicleList:e=>e.getWildcardTopics("openWB/vehicle/+/name"),getVehicleName:e=>t=>e.topics[`openWB/vehicle/${t}/name`],getVehicleSocConfigured:e=>t=>e.topics[`openWB/vehicle/${t}/soc_module/config`].type!=null,getVehicleSocIsManual:e=>t=>e.topics[`openWB/vehicle/${t}/soc_module/config`].type=="manual",getVehicleFaultState:e=>t=>e.topics[`openWB/vehicle/${t}/get/fault_state`]?e.topics[`openWB/vehicle/${t}/get/fault_state`]:0,getSystemTime(e){if(e.topics["openWB/system/time"])return new Date(1e3*e.topics["openWB/system/time"]).toLocaleString()},getSystemIp:e=>e.settings.localIp!==void 0?e.settings.localIp:e.topics["openWB/system/ip_address"]?e.topics["openWB/system/ip_address"]:void 0,getSystemVersion:e=>e.settings.localVersion!==void 0?e.settings.localVersion:e.topics["openWB/system/version"]?e.topics["openWB/system/version"]:void 0,getSystemBranch:e=>e.settings.localBranch!==void 0?e.settings.localBranch:e.topics["openWB/system/current_branch"]?e.topics["openWB/system/current_branch"]:void 0,getSystemCurrentCommit:e=>e.settings.localCommit!==void 0?e.settings.localCommit:e.topics["openWB/system/current_commit"]?e.topics["openWB/system/current_commit"]:void 0,getRfidEnabled(){return this.getValueBool("openWB/optional/rfid/active")}},actions:{updateSetting(e,t){e in this.settings&&(this.settings[e]=t)},initTopic(e,t=void 0){e.includes("#")||e.includes("+")||this.addTopic(e,t)},addTopic(e,t){this.topics[e]=t},removeTopic(e){e.includes("#")||e.includes("+")?Object.keys(this.getWildcardTopics(e)).forEach(t=>{delete this.topics[t]}):delete this.topics[e]},updateTopic(e,t,n=void 0){var a,i,o;e in this.topics&&(n!=null?(a=this.topics[e],o=t,(i=n).split(".").reduce((r,s,h)=>r[s]=i.split(".").length===++h?o:r[s]||{},a)):this.topics[e]=t)},updateChartData(){for(const[e,t]of Object.entries(this.topics))(e.endsWith("home_consumption")||e.endsWith("power")||e.endsWith("soc"))&&(this.chartData[e]===void 0&&(this.chartData[e]=[]),t!=null&&(this.chartData[e].push(t),this.chartData[e].slice(-128)))},updateState(e,t,n=void 0){this.updateTopic(e,t,n)},chargeModeList(){var e=[{id:"instant_charging"},{id:"pv_charging"},{id:"scheduled_charging"},{id:"standby"},{id:"stop"}];return e.forEach(t=>{t.label=this.translateChargeMode(t.id).label,t.class=this.translateChargeMode(t.id).class}),e},translateChargeMode(e){switch(e){case"instant_charging":return{mode:e,label:"Sofort",class:"danger"};case"pv_charging":return{mode:e,label:"PV",class:"success"};case"scheduled_charging":return{mode:e,label:"Zielladen",class:"primary"};case"time_charging":return{mode:e,label:"Zeitladen",class:"warning"};case"standby":return{mode:e,label:"Standby",class:"secondary"};case"stop":return{mode:e,label:"Stop",class:"dark"};default:return{mode:e,label:e,class:e}}},checkChangesLockCode(e){return!(!this.getThemeConfiguration||this.getThemeConfiguration.lock_changes_code!=e)},formatDate:(e,t={year:"numeric",month:"2-digit",day:"2-digit"})=>new Date(e).toLocaleDateString(void 0,t),formatDateRange(e,t="-"){const n={year:"numeric",month:"2-digit",day:"2-digit"};let a={day:"2-digit"};const i=new Date(e[0]),o=new Date(e[1]);return i.getFullYear()==o.getFullYear()?i.getMonth()!=o.getMonth()&&(a.month=n.month):a=n,`${this.formatDate(e[0],a)}${t}${this.formatDate(e[1],n)}`},formatWeeklyScheduleDays(e){const t=["Mo","Di","Mi","Do","Fr","Sa","So"];let n=[];return e.forEach(function(a,i){a==1&&n.push(t[i])}),n.join(",")}}}),ee=b({name:"NavBar",components:{NavItem:b({name:"NavItem",props:{to:{type:Object,required:!0}}},[["render",function(e,t,n,a,i,o){const r=d("i-nav-item");return p(),C(r,{to:n.to,"active-class":"-active",class:"_border _border-color:primary _text-align:center"},{default:c(()=>[B(e.$slots,"default",{},void 0,!0)]),_:3},8,["to"])}],["__scopeId","data-v-1db6ae73"]])},data:()=>({mqttStore:w()})},[["render",function(e,t,n,a,i,o){const r=d("nav-item"),s=d("i-nav");return p(),C(s,{vertical:"",class:"_align-items:stretch",size:"lg"},{default:c(()=>[i.mqttStore.getDashBoardEnabled?(p(),C(r,{key:0,to:{name:"dash-board"}},{default:c(()=>t[0]||(t[0]=[f(" Übersicht ")])),_:1})):y("",!0),i.mqttStore.getEnergyFlowEnabled?(p(),C(r,{key:1,to:{name:"energy-flow"}},{default:c(()=>t[1]||(t[1]=[f(" Energiefluss ")])),_:1})):y("",!0),i.mqttStore.getChargePointsEnabled&&i.mqttStore.getChargePointIds.length>0?(p(),C(r,{key:2,to:{name:"charge-points"}},{default:c(()=>t[2]||(t[2]=[f(" Ladepunkte ")])),_:1})):y("",!0),i.mqttStore.getStateEnabled?(p(),C(r,{key:3,to:{name:"status"}},{default:c(()=>t[3]||(t[3]=[f(" Status ")])),_:1})):y("",!0)]),_:1})}]]);$.add(L,q);const te=b({name:"NumberPad",components:{FontAwesomeIcon:O},emits:["key:digit","key:clear","key:delete"],data:()=>({buttonRows:[[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"}],[{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"}],[{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"}]]}),methods:{emitDigit(e){this.$emit("key:digit",e)},emitClear(){this.$emit("key:clear")},emitDelete(){this.$emit("key:delete")}}},[["render",function(e,t,n,a,i,o){const r=d("i-button"),s=d("i-column"),h=d("i-row"),g=d("FontAwesomeIcon"),m=d("i-container");return p(),C(m,null,{default:c(()=>[(p(!0),P(W,null,I(i.buttonRows,u=>(p(),C(h,{key:u,center:"",class:"_padding-bottom:1"},{default:c(()=>[(p(!0),P(W,null,I(u,_=>(p(),C(s,{key:_.value,class:"pin-button-column"},{default:c(()=>[l(r,{size:"lg",class:"pin-button",onClick:v=>o.emitDigit(_.value)},{default:c(()=>[f(k(_.label),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:2},1024))),128)),l(h,{center:""},{default:c(()=>[l(s,{class:"pin-button-column"},{default:c(()=>[l(r,{size:"lg",class:"pin-button",onClick:t[0]||(t[0]=u=>o.emitClear())},{default:c(()=>[l(g,{"fixed-width":"",icon:["fas","fa-eraser"]})]),_:1})]),_:1}),l(s,{class:"pin-button-column"},{default:c(()=>[l(r,{size:"lg",class:"pin-button",onClick:t[1]||(t[1]=u=>o.emitDigit("0"))},{default:c(()=>t[3]||(t[3]=[f(" 0 ")])),_:1})]),_:1}),l(s,{class:"pin-button-column"},{default:c(()=>[l(r,{size:"lg",class:"pin-button",onClick:t[2]||(t[2]=u=>o.emitDelete())},{default:c(()=>[l(g,{"fixed-width":"",icon:["fas","fa-delete-left"]})]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-4e2103db"]]),ne=b({name:"CodeInputModal",components:{NumberPad:te},props:{modelValue:{type:Boolean,required:!0},backgroundColor:{type:String,default:"warning"},placeholderCharacter:{type:String,default:"*",validator:e=>e.length==1},inputVisible:{type:Boolean,default:!1},minLength:{type:Number,default:4},maxLength:{type:Number,default:4}},emits:["update:modelValue","update:inputValue"],data(){return{number:"",modalBackground:this.backgroundColor}},computed:{placeholder(){return this.placeholderCharacter.repeat(this.minLength)},enableSubmit(){return this.number.length>=this.minLength&&this.number.length<=this.maxLength}},watch:{modelValue(e,t){e===!1&&t===!0&&this.clear()}},methods:{abort(){this.$emit("update:modelValue",!1)},addDigit(e){this.number.length{this.$emit("update:modelValue",!1),this.modalBackground=this.backgroundColor},500)},error(e="danger"){this.modalBackground=e,setTimeout(()=>{this.clear(),this.modalBackground=this.backgroundColor},2e3)}}},[["render",function(e,t,n,a,i,o){const r=d("i-input"),s=d("i-column"),h=d("i-row"),g=d("NumberPad"),m=d("i-container"),u=d("i-button"),_=d("i-modal");return p(),C(E,{to:"body"},[l(_,{"model-value":n.modelValue,color:i.modalBackground,"onUpdate:modelValue":t[4]||(t[4]=v=>e.$emit("update:modelValue",v))},{header:c(()=>[B(e.$slots,"header",{},()=>[t[5]||(t[5]=f(" **HEADER** "))])]),footer:c(()=>[l(m,null,{default:c(()=>[l(h,null,{default:c(()=>[l(s,null,{default:c(()=>[l(u,{color:"danger",onClick:o.abort},{default:c(()=>[B(e.$slots,"abort",{},()=>[t[6]||(t[6]=f(" Zurück "))])]),_:3},8,["onClick"])]),_:3}),l(s,{class:"_text-align:right"},{default:c(()=>[o.enableSubmit?(p(),C(u,{key:0,color:"success",onClick:o.submit},{default:c(()=>[B(e.$slots,"submit",{},()=>[t[7]||(t[7]=f(" OK "))])]),_:3},8,["onClick"])):y("",!0)]),_:3})]),_:3})]),_:3})]),default:c(()=>[l(m,null,{default:c(()=>[l(h,{center:"",class:"_padding-bottom:1"},{default:c(()=>[l(s,null,{default:c(()=>[l(r,{modelValue:i.number,"onUpdate:modelValue":t[0]||(t[0]=v=>i.number=v),placeholder:o.placeholder,readonly:"",size:"lg",type:n.inputVisible?"text":"password",class:"_text-align:center"},null,8,["modelValue","placeholder","type"])]),_:1})]),_:1}),l(g,{"onKey:digit":t[1]||(t[1]=v=>o.addDigit(v)),"onKey:clear":t[2]||(t[2]=v=>o.clear()),"onKey:delete":t[3]||(t[3]=v=>o.removeDigit(v))})]),_:1})]),_:3},8,["model-value","color"])])}]]);$.add(Z,Q,L,q);const oe={key:0,class:"_padding-left:1"},x="/openWB/web/display/themes/cards/openWB_logo_dark.png",ae=b({name:"OpenwbDisplayCardsApp",components:{RouterView:H,DateTime:X,NavBar:ee,LockNavItem:b({name:"LockNavItem",components:{FontAwesomeIcon:O,CodeInputModal:ne},props:{},data:()=>({mqttStore:w(),modalPinEntryVisible:!1,modalPinEntryColor:"warning",code:"",countdown:0,countdownInterval:void 0,events:["mousemove","touchmove","wheel","click"]}),computed:{changesLocked:{get(){return this.mqttStore.settings.changesLocked},set(e){this.mqttStore.settings.changesLocked=e}},timer(){return Math.trunc(this.countdown/60).toString()+":"+(this.countdown%60).toString().padStart(2,"0")}},mounted(){this.changesLocked=!0},methods:{toggleChangesLock(){this.changesLocked?this.unlockChanges():this.lockChanges()},unlockChanges(){this.modalPinEntryVisible=!0},checkUnlockCode(e){this.mqttStore.checkChangesLockCode(e)?(this.$refs.lockInput.success("success"),this.changesLocked=!1,this.mqttStore.getDisplayStandby>0&&(this.countdown=this.mqttStore.getDisplayStandby,this.countdownInterval=setInterval(this.updateCountdown,1e3),this.events.forEach(t=>{document.addEventListener(t,this.handleDocumentEvent,{passive:!0})}))):this.$refs.lockInput.error("danger")},lockChanges(){this.changesLocked=!0,this.events.forEach(e=>{document.removeEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.countdownInterval!==void 0&&(clearInterval(this.countdownInterval),this.countdownInterval=void 0)},updateCountdown(){this.countdown-=1,this.countdown<1&&this.lockChanges()},handleDocumentEvent(){this.countdown=this.mqttStore.getDisplayStandby}}},[["render",function(e,t,n,a,i,o){const r=d("FontAwesomeIcon"),s=d("i-button"),h=d("CodeInputModal");return p(),P(W,null,[i.mqttStore.getLockChanges?(p(),C(s,{key:0,class:"_padding-left:0 _padding-right:0 _margin-bottom:1",size:"lg",block:"",color:o.changesLocked?"danger":"success",onClick:t[0]||(t[0]=g=>o.toggleChangesLock())},{default:c(()=>[l(r,{"fixed-width":"",icon:o.changesLocked?["fas","fa-lock"]:["fas","fa-lock-open"],class:A(o.changesLocked?"_color:danger-80":"_color:success-80")},null,8,["icon","class"]),!o.changesLocked&&i.countdownInterval?(p(),P("span",oe,k(o.timer),1)):y("",!0)]),_:1},8,["color"])):y("",!0),l(h,{ref:"lockInput",modelValue:i.modalPinEntryVisible,"onUpdate:modelValue":t[1]||(t[1]=g=>i.modalPinEntryVisible=g),"min-length":4,"max-length":10,"onUpdate:inputValue":o.checkUnlockCode},{header:c(()=>t[2]||(t[2]=[f(" Bitte den PIN zur Freigabe von Änderungen eingeben. ")])),_:1},8,["modelValue","onUpdate:inputValue"])],64)}]]),TouchBlocker:b({name:"TouchBlocker",data:()=>({mqttStore:w(),show:!1,countdown:void 0,countdownInterval:void 0,events:["mousemove","touchmove","wheel","click"],eventHandlerSetup:!1}),computed:{configuredDisplayStandby(){if(this.mqttStore.getDisplayStandby!==0&&this.mqttStore.getDisplayStandby!==void 0)return this.mqttStore.getDisplayStandby},touchBlockerTimeout(){return Math.max(this.configuredDisplayStandby-3,1)}},mounted(){this.setupEventHandler(),this.setupTimeout()},unmounted(){this.clearEventHandler(),this.clearTimeout()},methods:{handleTouchBlockerClick(e){e===!1&&(this.show=!1,this.setupEventHandler(),this.setupTimeout())},setupEventHandler(){this.eventHandlerSetup||(this.events.forEach(e=>{document.addEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.eventHandlerSetup=!0)},clearEventHandler(){this.eventHandlerSetup&&(this.events.forEach(e=>{document.removeEventListener(e,this.handleDocumentEvent,{passive:!0})}),this.eventHandlerSetup=!1)},setupTimeout(){this.countdownInterval===void 0&&(this.countdownInterval=setInterval(this.updateCountdown,1e3))},clearTimeout(){this.countdownInterval!==void 0&&(clearInterval(this.countdownInterval),this.countdownInterval=void 0)},updateCountdown(){this.countdown===void 0?this.countdown=this.touchBlockerTimeout:(this.countdown-=1,this.countdown<1&&this.showTouchBlocker())},handleDocumentEvent(){this.countdown=this.touchBlockerTimeout,this.show=!1},showTouchBlocker(){this.show=!0,this.clearTimeout()}}},[["render",function(e,t,n,a,i,o){const r=d("IModal");return p(),C(E,{to:"body"},[l(r,{class:"touch-blocker",size:"sm",color:"dark","model-value":i.show,"onUpdate:modelValue":t[0]||(t[0]=s=>o.handleTouchBlockerClick(s))},{default:c(()=>t[1]||(t[1]=[T("img",{class:"logo",src:x},null,-1),T("p",null," Bitte das Display berühren. ",-1)])),_:1},8,["model-value"])])}],["__scopeId","data-v-e4e632d4"]])},data:()=>({client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3},mqttTopicsToSubscribe:["openWB/bat/config/configured","openWB/bat/get/power","openWB/bat/get/soc","openWB/chargepoint/+/config","openWB/chargepoint/+/get/charge_state","openWB/chargepoint/+/get/connected_vehicle/+","openWB/chargepoint/+/get/phases_in_use","openWB/chargepoint/+/get/plug_state","openWB/chargepoint/+/get/power","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/set/current","openWB/chargepoint/+/set/manual_lock","openWB/chargepoint/+/set/log","openWB/chargepoint/+/set/rfid","openWB/chargepoint/get/power","openWB/counter/+/get/power","openWB/counter/get/hierarchy","openWB/counter/set/home_consumption","openWB/optional/int_display/theme","openWB/optional/int_display/standby","openWB/optional/rfid/active","openWB/pv/config/configured","openWB/pv/get/power","openWB/system/current_branch","openWB/system/current_commit","openWB/system/ip_address","openWB/system/time","openWB/system/version","openWB/vehicle/+/get/fault_state","openWB/vehicle/+/name","openWB/vehicle/+/soc_module/config","openWB/vehicle/template/charge_template/#"],mqttStore:w(),chartInterval:"",clearConsoleHandler:void 0}),computed:{changesLocked(){return this.mqttStore.getLockChanges&&this.mqttStore.settings.changesLocked}},created(){this.createConnection()},mounted(){let e=window.location.search;if(e!=""){let a=new URLSearchParams(e);if(a.has("data")){let i=JSON.parse(a.get("data"));Object.entries(i).forEach(([o,r])=>{o.startsWith("parentChargePoint")?this.mqttStore.updateSetting(o,parseInt(r)):this.mqttStore.updateSetting(o,r)})}}this.doSubscribe(this.mqttTopicsToSubscribe),this.chartInterval=setInterval(this.mqttStore.updateChartData,5e3);const t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1,0,0,0,0).getTime()-t.getTime();this.clearConsoleHandler=setTimeout(()=>this.clearConsole(),n)},beforeUnmount(){this.doUnsubscribe(this.mqttTopicsToSubscribe),clearInterval(this.chartInterval),clearTimeout(this.clearConsoleHandler)},methods:{clearConsole(){this.clearConsoleHandler=setTimeout(()=>this.clearConsole(),864e5)},createConnection(){const{protocol:e,host:t,port:n,endpoint:a,...i}=this.connection,o=`${e}://${t}:${n}${a}`;try{this.client=R.connect(o,i)}catch{}this.client.on("connect",()=>{}),this.client.on("error",r=>{}),this.client.on("message",(r,s)=>{if(s.toString().length>0){let h;try{h=JSON.parse(s.toString())}catch{h=s.toString()}this.mqttStore.addTopic(r,h)}else this.mqttStore.removeTopic(r)})},doSubscribe(e){e.forEach(t=>{this.mqttStore.initTopic(t)}),this.client.subscribe(e,{},t=>{})},doUnsubscribe(e){e.forEach(t=>{this.mqttStore.removeTopic(t)}),this.client.unsubscribe(e,t=>{})},doPublish(e,t,n=!0,a=2){let i={qos:a,retain:n};this.client.publish(e,JSON.stringify(t),i,o=>{})},sendTopicToBroker(e,t=void 0){let n=e.replace("openWB/","openWB/set/");t===void 0&&(t=this.mqttStore.topics[e]),this.doPublish(n,t)},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},sendSystemCommand(e,t={}){this.sendCommand({command:e,data:t})}}},[["render",function(e,t,n,a,i,o){const r=d("DateTime"),s=d("i-column"),h=d("i-row"),g=d("i-container"),m=d("LockNavItem"),u=d("NavBar"),_=d("TouchBlocker"),v=d("i-layout-aside"),j=d("RouterView"),M=d("i-layout-content"),N=d("i-layout");return p(),C(N,{vertical:""},{default:c(()=>[l(v,{class:"_position:fixed"},{default:c(()=>[l(g,{fluid:"",class:"_margin-bottom:1"},{default:c(()=>[l(h,{center:""},{default:c(()=>[l(s,null,{default:c(()=>[l(r)]),_:1})]),_:1})]),_:1}),l(m),l(u,{"changes-locked":o.changesLocked},null,8,["changes-locked"]),l(_)]),_:1}),l(M,null,{default:c(()=>[l(j,{"changes-locked":o.changesLocked},null,8,["changes-locked"])]),_:1})]),_:1})}],["__scopeId","data-v-6804b914"]]),D={},S=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),r=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(t.map(s=>{if((s=function(u){return"/openWB/web/display/themes/cards/"+u}(s))in D)return;D[s]=!0;const h=s.endsWith(".css"),g=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${g}`))return;const m=document.createElement("link");return m.rel=h?"stylesheet":"modulepreload",h||(m.as="script"),m.crossOrigin="",m.href=s,r&&m.setAttribute("nonce",r),document.head.appendChild(m),h?new Promise((u,_)=>{m.addEventListener("load",u),m.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${s}`)))}):void 0}))}function i(o){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o}return a.then(o=>{for(const r of o||[])r.status==="rejected"&&i(r.reason);return e().catch(i)})},ie=b({name:"WelcomeView",data:()=>({mqttStore:w()}),computed:{firstView(){if(this.mqttStore.getThemeConfiguration){if(this.mqttStore.getThemeConfiguration.enable_dashboard_view)return"dash-board";if(this.mqttStore.getThemeConfiguration.enable_energy_flow_view)return"energy-flow";if(this.mqttStore.getThemeConfiguration.enable_charge_points_view)return"charge-points";if(this.mqttStore.getThemeConfiguration.enable_status_view)return"status"}}},mounted(){setTimeout(this.selectFirstRoute,3e3)},methods:{selectFirstRoute(){this.firstView&&this.$router.push({name:this.firstView})}}},[["render",function(e,t,n,a,i,o){const r=d("i-card"),s=d("i-column"),h=d("i-row"),g=d("i-container");return p(),C(g,null,{default:c(()=>[l(h,{center:"",middle:""},{default:c(()=>[l(s,null,{default:c(()=>[l(r,{color:"primary"},{header:c(()=>t[0]||(t[0]=[f(" Cards Theme ")])),default:c(()=>[t[1]||(t[1]=T("img",{class:"logo",src:x},null,-1))]),_:1})]),_:1})]),_:1})]),_:1})}],["__scopeId","data-v-16686e30"]]),re=U({history:z("/openWB/web/display/themes/cards/"),routes:[{path:"/",name:"welcome",component:ie},{path:"/DashBoard",name:"dash-board",component:()=>S(()=>import("./DashBoardView-Bir-HyNc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))},{path:"/EnergyFlow",name:"energy-flow",component:()=>S(()=>import("./EnergyFlowView-Dv2TQaHl.js"),__vite__mapDeps([10,1,2,3,4,5,7,11]))},{path:"/ChargePoints",name:"charge-points",component:()=>S(()=>import("./ChargePointsView-DBcxu7CY.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,13]))},{path:"/Status",name:"status",component:()=>S(()=>import("./StatusView-uWIroZcN.js"),__vite__mapDeps([14,7,3,2,4,1,5]))}]}),V=G(ae);V.use(K()),V.use(re),V.use(J,{colorMode:"dark",components:Y}),V.mount("#app");export{ne as C,te as N,w as u}; diff --git a/packages/modules/display_themes/cards/web/assets/index-BBaYm_Sj.css b/packages/modules/display_themes/cards/web/assets/index-CsJV9rcg.css similarity index 56% rename from packages/modules/display_themes/cards/web/assets/index-BBaYm_Sj.css rename to packages/modules/display_themes/cards/web/assets/index-CsJV9rcg.css index bbe9cecd9a..8d572ff917 100644 --- a/packages/modules/display_themes/cards/web/assets/index-BBaYm_Sj.css +++ b/packages/modules/display_themes/cards/web/assets/index-CsJV9rcg.css @@ -1 +1 @@ -.nav-item[data-v-1db6ae73]{margin-bottom:var(--spacing)!important;border-radius:var(--border-radius)}.nav-item.-active[data-v-1db6ae73]{background-color:var(--color--primary)}.pin-button-column[data-v-4e2103db]{display:flex;flex-grow:1}.pin-button[data-v-4e2103db]{min-height:2em;flex-grow:1;font-size:200%;font-weight:700}.touch-blocker[data-v-e4e632d4]{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[data-v-e4e632d4] .modal{box-shadow:none}[data-v-e4e632d4] .modal>.modal-body{display:flex;flex-direction:column;align-items:center;background:transparent;border:none}.layout-aside[data-v-6804b914]{----width: 10rem !important}.layout-content[data-v-6804b914]{margin-left:calc(10rem + var(--spacing));margin-right:var(--spacing)}hr[data-v-6804b914]{border-color:var(--color--primary);margin:var(--spacing) 0}.container[data-v-16686e30],.row[data-v-16686e30]{height:100vh}.card[data-v-16686e30]{----background: inherit !important;----body--color: var(--contrast-color-for-dark-background) !important}img.logo[data-v-16686e30]{max-width:100%}:root{--spacing: .5rem}html,body{overscroll-behavior:none}body{overflow-y:overlay}html,body{scrollbar-width:thin;scrollbar-color:var(--color--primary-70) transparent}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background:var(--color--primary-70);border-radius:2px} +.nav-item[data-v-1db6ae73]{margin-bottom:var(--spacing)!important;border-radius:var(--border-radius)}.nav-item.-active[data-v-1db6ae73]{background-color:var(--color--primary)}.pin-button-column[data-v-4e2103db]{display:flex;flex-grow:1}.pin-button[data-v-4e2103db]{min-height:2em;flex-grow:1;font-size:200%;font-weight:700}.touch-blocker[data-v-8ef187fa]{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[data-v-8ef187fa] .modal{box-shadow:none}[data-v-8ef187fa] .modal>.modal-body{display:flex;flex-direction:column;align-items:center;background:transparent;border:none}.layout-aside[data-v-80a22de0]{----width: 10rem !important}.layout-content[data-v-80a22de0]{margin-left:calc(10rem + var(--spacing));margin-right:var(--spacing)}hr[data-v-80a22de0]{border-color:var(--color--primary);margin:var(--spacing) 0}.container[data-v-e364c277],.row[data-v-e364c277]{height:100vh}.card[data-v-e364c277]{----background: inherit !important;----body--color: var(--contrast-color-for-dark-background) !important}img.logo[data-v-e364c277]{max-width:100%}:root{--spacing: .5rem}html,body{overscroll-behavior:none}body{overflow-y:overlay}html,body{scrollbar-width:thin;scrollbar-color:var(--color--primary-70) transparent}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background:var(--color--primary-70);border-radius:2px} diff --git a/packages/modules/display_themes/cards/web/assets/vendor-CSZuzLkg.js b/packages/modules/display_themes/cards/web/assets/vendor-CSZuzLkg.js new file mode 100644 index 0000000000..b54dca951e --- /dev/null +++ b/packages/modules/display_themes/cards/web/assets/vendor-CSZuzLkg.js @@ -0,0 +1,57 @@ +var u1=Object.defineProperty;var vd=t=>{throw TypeError(t)};var h1=(t,e,r)=>e in t?u1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ee=(t,e,r)=>h1(t,typeof e!="symbol"?e+"":e,r),hc=(t,e,r)=>e.has(t)||vd("Cannot "+r);var X=(t,e,r)=>(hc(t,e,"read from private field"),r?r.call(t):e.get(t)),je=(t,e,r)=>e.has(t)?vd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Te=(t,e,r,i)=>(hc(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),ke=(t,e,r)=>(hc(t,e,"access private method"),r);var Xo=(t,e,r,i)=>({set _(n){Te(t,e,n,r)},get _(){return X(t,e,i)}});const il=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function gf(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Qe={},Xn=[],Lr=()=>{},f1=()=>!1,Cl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),mf=t=>t.startsWith("onUpdate:"),xt=Object.assign,yf=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},d1=Object.prototype.hasOwnProperty,Ve=(t,e)=>d1.call(t,e),Me=Array.isArray,Qn=t=>Pl(t)==="[object Map]",Fy=t=>Pl(t)==="[object Set]",Ce=t=>typeof t=="function",st=t=>typeof t=="string",ii=t=>typeof t=="symbol",rt=t=>t!==null&&typeof t=="object",Wy=t=>(rt(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Uy=Object.prototype.toString,Pl=t=>Uy.call(t),Vy=t=>Pl(t)==="[object Object]",bf=t=>st(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Zs=gf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rl=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},p1=/-(\w)/g,cr=Rl(t=>t.replace(p1,(e,r)=>r?r.toUpperCase():"")),g1=/\B([A-Z])/g,Wi=Rl(t=>t.replace(g1,"-$1").toLowerCase()),Dl=Rl(t=>t.charAt(0).toUpperCase()+t.slice(1)),fc=Rl(t=>t?`on${Dl(t)}`:""),Pi=(t,e)=>!Object.is(t,e),dc=(t,...e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:r})},m1=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let wd;const nl=()=>wd||(wd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:il!==void 0?il:{});function Ll(t){if(Me(t)){const e={};for(let r=0;r{if(r){const i=r.split(b1);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Nl(t){let e="";if(st(t))e=t;else if(Me(t))for(let r=0;r!(!t||t.__v_isRef!==!0),x1=t=>st(t)?t:t==null?"":Me(t)||rt(t)&&(t.toString===Uy||!Ce(t.toString))?Hy(t)?x1(t.value):JSON.stringify(t,qy,2):String(t),qy=(t,e)=>Hy(e)?qy(t,e.value):Qn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[i,n],s)=>(r[pc(i,s)+" =>"]=n,r),{})}:Fy(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>pc(r))}:ii(e)?pc(e):!rt(e)||Me(e)||Vy(e)?e:String(e),pc=(t,e="")=>{var r;return ii(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Nt,et;class Yy{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,r;if(this._isPaused=!0,this.scopes)for(e=0,r=this.scopes.length;e0)return;if(Qs){let e=Qs;for(Qs=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Xs;){let e=Xs;for(Xs=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(i){t||(t=i)}e=r}}if(t)throw t}function Jy(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function e0(t){let e,r=t.depsTail,i=r;for(;i;){const n=i.prevDep;i.version===-1?(i===r&&(r=n),_f(i),S1(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}t.deps=e,t.depsTail=r}function wu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(t0(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function t0(t){if(4&t.flags&&!(16&t.flags)||(t.flags&=-17,t.globalVersion===yo))return;t.globalVersion=yo;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!wu(t))return void(t.flags&=-3);const r=et,i=wr;et=t,wr=!0;try{Jy(t);const n=t.fn(t._value);(e.version===0||Pi(n,t._value))&&(t._value=n,e.version++)}catch(n){throw e.version++,n}finally{et=r,wr=i,e0(t),t.flags&=-3}}function _f(t,e=!1){const{dep:r,prevSub:i,nextSub:n}=t;if(i&&(i.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=i,t.nextSub=void 0),r.subs===t&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)_f(s,!0)}e||--r.sc||!r.map||r.map.delete(r.key)}function S1(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let wr=!0;const r0=[];function ji(){r0.push(wr),wr=!1}function Bi(){const t=r0.pop();wr=t===void 0||t}function _d(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=et;et=void 0;try{e()}finally{et=r}}}let yo=0;class k1{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class xf{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!et||!wr||et===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==et)r=this.activeLink=new k1(et,this),et.deps?(r.prevDep=et.depsTail,et.depsTail.nextDep=r,et.depsTail=r):et.deps=et.depsTail=r,i0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=et.depsTail,r.nextDep=void 0,et.depsTail.nextDep=r,et.depsTail=r,et.deps===r&&(et.deps=i)}return r}trigger(e){this.version++,yo++,this.notify(e)}notify(e){vf();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{wf()}}}function i0(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)i0(i)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const sl=new WeakMap,fn=Symbol(""),_u=Symbol(""),bo=Symbol("");function Ct(t,e,r){if(wr&&et){let i=sl.get(t);i||sl.set(t,i=new Map);let n=i.get(r);n||(i.set(r,n=new xf),n.map=i,n.key=r),n.track()}}function Gr(t,e,r,i,n,s){const o=sl.get(t);if(!o)return void yo++;const a=l=>{l&&l.trigger()};if(vf(),e==="clear")o.forEach(a);else{const l=Me(t),c=l&&bf(r);if(l&&r==="length"){const u=Number(i);o.forEach((f,h)=>{(h==="length"||h===bo||!ii(h)&&h>=u)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(bo)),e){case"add":l?c&&a(o.get("length")):(a(o.get(fn)),Qn(t)&&a(o.get(_u)));break;case"delete":l||(a(o.get(fn)),Qn(t)&&a(o.get(_u)));break;case"set":Qn(t)&&a(o.get(fn))}}wf()}function Cn(t){const e=Ne(t);return e===t?e:(Ct(e,0,bo),lr(t)?e:e.map(Pt))}function jl(t){return Ct(t=Ne(t),0,bo),t}const E1={__proto__:null,[Symbol.iterator](){return mc(this,Symbol.iterator,Pt)},concat(...t){return Cn(this).concat(...t.map(e=>Me(e)?Cn(e):e))},entries(){return mc(this,"entries",t=>(t[1]=Pt(t[1]),t))},every(t,e){return Br(this,"every",t,e,void 0,arguments)},filter(t,e){return Br(this,"filter",t,e,r=>r.map(Pt),arguments)},find(t,e){return Br(this,"find",t,e,Pt,arguments)},findIndex(t,e){return Br(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Br(this,"findLast",t,e,Pt,arguments)},findLastIndex(t,e){return Br(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Br(this,"forEach",t,e,void 0,arguments)},includes(...t){return yc(this,"includes",t)},indexOf(...t){return yc(this,"indexOf",t)},join(t){return Cn(this).join(t)},lastIndexOf(...t){return yc(this,"lastIndexOf",t)},map(t,e){return Br(this,"map",t,e,void 0,arguments)},pop(){return Es(this,"pop")},push(...t){return Es(this,"push",t)},reduce(t,...e){return xd(this,"reduce",t,e)},reduceRight(t,...e){return xd(this,"reduceRight",t,e)},shift(){return Es(this,"shift")},some(t,e){return Br(this,"some",t,e,void 0,arguments)},splice(...t){return Es(this,"splice",t)},toReversed(){return Cn(this).toReversed()},toSorted(t){return Cn(this).toSorted(t)},toSpliced(...t){return Cn(this).toSpliced(...t)},unshift(...t){return Es(this,"unshift",t)},values(){return mc(this,"values",Pt)}};function mc(t,e,r){const i=jl(t),n=i[e]();return i===t||lr(t)||(n._next=n.next,n.next=()=>{const s=n._next();return s.value&&(s.value=r(s.value)),s}),n}const O1=Array.prototype;function Br(t,e,r,i,n,s){const o=jl(t),a=o!==t&&!lr(t),l=o[e];if(l!==O1[e]){const f=l.apply(t,s);return a?Pt(f):f}let c=r;o!==t&&(a?c=function(f,h){return r.call(this,Pt(f),h,t)}:r.length>2&&(c=function(f,h){return r.call(this,f,h,t)}));const u=l.call(o,c,i);return a&&n?n(u):u}function xd(t,e,r,i){const n=jl(t);let s=r;return n!==t&&(lr(t)?r.length>3&&(s=function(o,a,l){return r.call(this,o,a,l,t)}):s=function(o,a,l){return r.call(this,o,Pt(a),l,t)}),n[e](s,...i)}function yc(t,e,r){const i=Ne(t);Ct(i,0,bo);const n=i[e](...r);return n!==-1&&n!==!1||!No(r[0])?n:(r[0]=Ne(r[0]),i[e](...r))}function Es(t,e,r=[]){ji(),vf();const i=Ne(t)[e].apply(t,r);return wf(),Bi(),i}const T1=gf("__proto__,__v_isRef,__isVue"),n0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ii));function A1(t){ii(t)||(t=String(t));const e=Ne(this);return Ct(e,0,t),e.hasOwnProperty(t)}class s0{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,i){if(r==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return s;if(r==="__v_raw")return i===(n?s?j1:c0:s?l0:a0).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=Me(e);if(!n){let l;if(o&&(l=E1[r]))return l;if(r==="hasOwnProperty")return A1}const a=Reflect.get(e,r,gt(e)?e:i);return(ii(r)?n0.has(r):T1(r))?a:(n||Ct(e,0,r),s?a:gt(a)?o&&bf(r)?a:a.value:rt(a)?n?h0(a):Lo(a):a)}}class o0 extends s0{constructor(e=!1){super(!1,e)}set(e,r,i,n){let s=e[r];if(!this._isShallow){const l=vn(s);if(lr(i)||vn(i)||(s=Ne(s),i=Ne(i)),!Me(e)&>(s)&&!gt(i))return!l&&(s.value=i,!0)}const o=Me(e)&&bf(r)?Number(r)t,Qo=t=>Reflect.getPrototypeOf(t);function Jo(t){return function(...e){return t!=="delete"&&(t==="clear"?void 0:this)}}function R1(t,e){const r={get(i){const n=this.__v_raw,s=Ne(n),o=Ne(i);t||(Pi(i,o)&&Ct(s,0,i),Ct(s,0,o));const{has:a}=Qo(s),l=e?bc:t?vc:Pt;return a.call(s,i)?l(n.get(i)):a.call(s,o)?l(n.get(o)):void(n!==s&&n.get(i))},get size(){const i=this.__v_raw;return!t&&Ct(Ne(i),0,fn),Reflect.get(i,"size",i)},has(i){const n=this.__v_raw,s=Ne(n),o=Ne(i);return t||(Pi(i,o)&&Ct(s,0,i),Ct(s,0,o)),i===o?n.has(i):n.has(i)||n.has(o)},forEach(i,n){const s=this,o=s.__v_raw,a=Ne(o),l=e?bc:t?vc:Pt;return!t&&Ct(a,0,fn),o.forEach((c,u)=>i.call(n,l(c),l(u),s))}};return xt(r,t?{add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear")}:{add(i){e||lr(i)||vn(i)||(i=Ne(i));const n=Ne(this);return Qo(n).has.call(n,i)||(n.add(i),Gr(n,"add",i,i)),this},set(i,n){e||lr(n)||vn(n)||(n=Ne(n));const s=Ne(this),{has:o,get:a}=Qo(s);let l=o.call(s,i);l||(i=Ne(i),l=o.call(s,i));const c=a.call(s,i);return s.set(i,n),l?Pi(n,c)&&Gr(s,"set",i,n):Gr(s,"add",i,n),this},delete(i){const n=Ne(this),{has:s,get:o}=Qo(n);let a=s.call(n,i);a||(i=Ne(i),a=s.call(n,i)),o&&o.call(n,i);const l=n.delete(i);return a&&Gr(n,"delete",i,void 0),l},clear(){const i=Ne(this),n=i.size!==0,s=i.clear();return n&&Gr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=function(n,s,o){return function(...a){const l=this.__v_raw,c=Ne(l),u=Qn(c),f=n==="entries"||n===Symbol.iterator&&u,h=n==="keys"&&u,d=l[n](...a),g=o?bc:s?vc:Pt;return!s&&Ct(c,0,h?_u:fn),{next(){const{value:p,done:y}=d.next();return y?{value:p,done:y}:{value:f?[g(p[0]),g(p[1])]:g(p),done:y}},[Symbol.iterator](){return this}}}}(i,t,e)}),r}function Sf(t,e){const r=R1(t,e);return(i,n,s)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?i:Reflect.get(Ve(r,n)&&n in i?r:i,n,s)}const D1={get:Sf(!1,!1)},L1={get:Sf(!1,!0)},N1={get:Sf(!0,!1)},a0=new WeakMap,l0=new WeakMap,c0=new WeakMap,j1=new WeakMap;function B1(t){return t.__v_skip||!Object.isExtensible(t)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Pl(e).slice(8,-1))(t))}function Lo(t){return vn(t)?t:kf(t,!1,I1,D1,a0)}function u0(t){return kf(t,!1,P1,L1,l0)}function h0(t){return kf(t,!0,C1,N1,c0)}function kf(t,e,r,i,n){if(!rt(t)||t.__v_raw&&(!e||!t.__v_isReactive))return t;const s=n.get(t);if(s)return s;const o=B1(t);if(o===0)return t;const a=new Proxy(t,o===2?i:r);return n.set(t,a),a}function Ri(t){return vn(t)?Ri(t.__v_raw):!(!t||!t.__v_isReactive)}function vn(t){return!(!t||!t.__v_isReadonly)}function lr(t){return!(!t||!t.__v_isShallow)}function No(t){return!!t&&!!t.__v_raw}function Ne(t){const e=t&&t.__v_raw;return e?Ne(e):t}function Ef(t){return!Ve(t,"__v_skip")&&Object.isExtensible(t)&&$y(t,"__v_skip",!0),t}const Pt=t=>rt(t)?Lo(t):t,vc=t=>rt(t)?h0(t):t;function gt(t){return!!t&&t.__v_isRef===!0}function Bl(t){return f0(t,!1)}function Of(t){return f0(t,!0)}function f0(t,e){return gt(t)?t:new F1(t,e)}class F1{constructor(e,r){this.dep=new xf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Ne(e),this._value=r?e:Pt(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,i=this.__v_isShallow||lr(e)||vn(e);e=i?e:Ne(e),Pi(e,r)&&(this._rawValue=e,this._value=i?e:Pt(e),this.dep.trigger())}}function Jn(t){return gt(t)?t.value:t}const W1={get:(t,e,r)=>e==="__v_raw"?t:Jn(Reflect.get(t,e,r)),set:(t,e,r,i)=>{const n=t[e];return gt(n)&&!gt(r)?(n.value=r,!0):Reflect.set(t,e,r,i)}};function d0(t){return Ri(t)?t:new Proxy(t,W1)}class U1{constructor(e,r,i){this._object=e,this._key=r,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,r){const i=sl.get(e);return i&&i.get(r)}(Ne(this._object),this._key)}}function V1(t,e,r){const i=t[e];return gt(i)?i:new U1(t,e,r)}class $1{constructor(e,r,i){this.fn=e,this.setter=r,this._value=void 0,this.dep=new xf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=i}notify(){if(this.flags|=16,!(8&this.flags)&&et!==this)return Qy(this,!0),!0}get value(){const e=this.dep.track();return t0(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const ea={},ta=new WeakMap;let $i;function z1(t,e,r=Qe){const{immediate:i,deep:n,once:s,scheduler:o,augmentJob:a,call:l}=r,c=T=>n?T:lr(T)||n===!1||n===0?Zr(T,1):Zr(T);let u,f,h,d,g=!1,p=!1;if(gt(t)?(f=()=>t.value,g=lr(t)):Ri(t)?(f=()=>c(t),g=!0):Me(t)?(p=!0,g=t.some(T=>Ri(T)||lr(T)),f=()=>t.map(T=>gt(T)?T.value:Ri(T)?c(T):Ce(T)?l?l(T,2):T():void 0)):f=Ce(t)?e?l?()=>l(t,2):t:()=>{if(h){ji();try{h()}finally{Bi()}}const T=$i;$i=u;try{return l?l(t,3,[d]):t(d)}finally{$i=T}}:Lr,e&&n){const T=f,A=n===!0?1/0:n;f=()=>Zr(T(),A)}const y=Gy(),w=()=>{u.stop(),y&&y.active&&yf(y.effects,u)};if(s&&e){const T=e;e=(...A)=>{T(...A),w()}}let _=p?new Array(t.length).fill(ea):ea;const E=T=>{if(1&u.flags&&(u.dirty||T))if(e){const A=u.run();if(n||g||(p?A.some(($,k)=>Pi($,_[k])):Pi(A,_))){h&&h();const $=$i;$i=u;try{const k=[A,_===ea?void 0:p&&_[0]===ea?[]:_,d];l?l(e,3,k):e(...k),_=A}finally{$i=$}}}else u.run()};return a&&a(E),u=new Zy(f),u.scheduler=o?()=>o(E,!1):E,d=T=>function(A,$=!1,k=$i){if(k){let x=ta.get(k);x||ta.set(k,x=[]),x.push(A)}}(T,!1,u),h=u.onStop=()=>{const T=ta.get(u);if(T){if(l)l(T,4);else for(const A of T)A();ta.delete(u)}},e?i?E(!0):_=u.run():o?o(E.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function Zr(t,e=1/0,r){if(e<=0||!rt(t)||t.__v_skip||(r=r||new Set).has(t))return t;if(r.add(t),e--,gt(t))Zr(t.value,e,r);else if(Me(t))for(let i=0;i{Zr(i,e,r)});else if(Vy(t)){for(const i in t)Zr(t[i],e,r);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&Zr(t[i],e,r)}return t}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function jo(t,e,r,i){try{return i?t(...i):t()}catch(n){Fl(n,e,r)}}function _r(t,e,r,i){if(Ce(t)){const n=jo(t,e,r,i);return n&&Wy(n)&&n.catch(s=>{Fl(s,e,r)}),n}if(Me(t)){const n=[];for(let s=0;s=Js(r)?jt.push(t):jt.splice(function(i){let n=Tr+1,s=jt.length;for(;n>>1,a=jt[o],l=Js(a);lJs(r)-Js(i));if(es.length=0,_i)return void _i.push(...e);for(_i=e,Wn=0;Wn<_i.length;Wn++){const r=_i[Wn];4&r.flags&&(r.flags&=-2),8&r.flags||r(),r.flags&=-2}_i=null,Wn=0}}const Js=t=>t.id==null?2&t.flags?-1:1/0:t.id;function b0(t){try{for(Tr=0;Tr{i._d&&$d(-1);const s=al(e);let o;try{o=t(...n)}finally{al(s),i._d&&$d(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function eA(t,e){if(bt===null)return t;const r=Yl(bt),i=t.dirs||(t.dirs=[]);for(let n=0;nt.__isTeleport,Us=t=>t&&(t.disabled||t.disabled===""),kd=t=>t&&(t.defer||t.defer===""),Ed=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Od=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,wc=(t,e)=>{const r=t&&t.to;return st(r)?e?e(r):null:r},x0={name:"Teleport",__isTeleport:!0,process(t,e,r,i,n,s,o,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:d,querySelector:g,createText:p,createComment:y}}=c,w=Us(e.props);let{shapeFlag:_,children:E,dynamicChildren:T}=e;if(t==null){const A=e.el=p(""),$=e.anchor=p("");d(A,r,i),d($,r,i);const k=(v,O)=>{16&_&&(n&&n.isCE&&(n.ce._teleportTarget=v),u(E,v,O,n,s,o,a,l))},x=()=>{const v=e.target=wc(e.props,g),O=Td(v,e,p,d);v&&(o!=="svg"&&Ed(v)?o="svg":o!=="mathml"&&Od(v)&&(o="mathml"),w||(k(v,O),ia(e,!1)))};w&&(k(r,$),ia(e,!0)),kd(e.props)?Lt(()=>{x(),e.el.__isMounted=!0},s):x()}else{if(kd(e.props)&&!t.el.__isMounted)return void Lt(()=>{x0.process(t,e,r,i,n,s,o,a,l,c),delete t.el.__isMounted},s);e.el=t.el,e.targetStart=t.targetStart;const A=e.anchor=t.anchor,$=e.target=t.target,k=e.targetAnchor=t.targetAnchor,x=Us(t.props),v=x?r:$,O=x?A:k;if(o==="svg"||Ed($)?o="svg":(o==="mathml"||Od($))&&(o="mathml"),T?(h(t.dynamicChildren,T,v,n,s,o,a),Cf(t,e,!0)):l||f(t,e,v,O,n,s,o,a,!1),w)x?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ra(e,r,A,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const M=e.target=wc(e.props,g);M&&ra(e,M,null,c,0)}else x&&ra(e,$,k,c,1);ia(e,w)}},remove(t,e,r,{um:i,o:{remove:n}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:h}=t;if(f&&(n(c),n(u)),s&&n(l),16&o){const d=s||!Us(h);for(let g=0;g{const e=t.subTree;return e.component?k0(e.component):e},q1={name:"BaseTransition",props:S0,setup(t,{slots:e}){const r=G0(),i=function(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zl(()=>{n.isMounted=!0}),C0(()=>{n.isUnmounting=!0}),n}();return()=>{const n=e.default&&T0(e.default(),!0);if(!n||!n.length)return;const s=E0(n),o=Ne(t),{mode:a}=o;if(i.isLeaving)return _c(s);const l=Ad(s);if(!l)return _c(s);let c=xu(l,o,i,r,f=>c=f);l.type!==Bt&&vo(l,c);let u=r.subTree&&Ad(r.subTree);if(u&&u.type!==Bt&&!on(l,u)&&k0(r).type!==Bt){let f=xu(u,o,i,r);if(vo(u,f),a==="out-in"&&l.type!==Bt)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,8&r.job.flags||r.update(),delete f.afterLeave,u=void 0},_c(s);a==="in-out"&&l.type!==Bt?f.delayLeave=(h,d,g)=>{O0(i,u)[String(u.key)]=u,h[xi]=()=>{d(),h[xi]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function E0(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==Bt){e=r;break}}return e}const Y1=q1;function O0(t,e){const{leavingVNodes:r}=t;let i=r.get(e.type);return i||(i=Object.create(null),r.set(e.type,i)),i}function xu(t,e,r,i,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:y,onAppear:w,onAfterAppear:_,onAppearCancelled:E}=e,T=String(t.key),A=O0(r,t),$=(v,O)=>{v&&_r(v,i,9,O)},k=(v,O)=>{const M=O[1];$(v,O),Me(v)?v.every(Z=>Z.length<=1)&&M():v.length<=1&&M()},x={mode:o,persisted:a,beforeEnter(v){let O=l;if(!r.isMounted){if(!s)return;O=y||l}v[xi]&&v[xi](!0);const M=A[T];M&&on(t,M)&&M.el[xi]&&M.el[xi](),$(O,[v])},enter(v){let O=c,M=u,Z=f;if(!r.isMounted){if(!s)return;O=w||c,M=_||u,Z=E||f}let te=!1;const U=v[na]=W=>{te||(te=!0,$(W?Z:M,[v]),x.delayedLeave&&x.delayedLeave(),v[na]=void 0)};O?k(O,[v,U]):U()},leave(v,O){const M=String(t.key);if(v[na]&&v[na](!0),r.isUnmounting)return O();$(h,[v]);let Z=!1;const te=v[xi]=U=>{Z||(Z=!0,O(),$(U?p:g,[v]),v[xi]=void 0,A[M]===t&&delete A[M])};A[M]=t,d?k(d,[v,te]):te()},clone(v){const O=xu(v,e,r,i,n);return n&&n(O),O}};return x}function _c(t){if(Vl(t))return(t=Fi(t)).children=null,t}function Ad(t){if(!Vl(t))return _0(t.type)&&t.children?E0(t.children):t;const{shapeFlag:e,children:r}=t;if(r){if(16&e)return r[0];if(32&e&&Ce(r.default))return r.default()}}function vo(t,e){6&t.shapeFlag&&t.component?(t.transition=e,vo(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function T0(t,e=!1,r){let i=[],n=0;for(let s=0;s1)for(let s=0;sll(g,e&&(Me(e)?e[p]:e),r,i,n));if(zn(i)&&!n)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&ll(t,e,r,i.component.subTree));const s=4&i.shapeFlag?Yl(i.component):i.el,o=n?null:s,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Qe?a.refs={}:a.refs,f=a.setupState,h=Ne(f),d=f===Qe?()=>!1:g=>Ve(h,g);if(c!=null&&c!==l&&(st(c)?(u[c]=null,d(c)&&(f[c]=null)):gt(c)&&(c.value=null)),Ce(l))jo(l,a,12,[o,u]);else{const g=st(l),p=gt(l);if(g||p){const y=()=>{if(t.f){const w=g?d(l)?f[l]:u[l]:l.value;n?Me(w)&&yf(w,s):Me(w)?w.includes(s)||w.push(s):g?(u[l]=[s],d(l)&&(f[l]=u[l])):(l.value=[s],t.k&&(u[t.k]=l.value))}else g?(u[l]=o,d(l)&&(f[l]=o)):p&&(l.value=o,t.k&&(u[t.k]=o))};o?(y.id=-1,Lt(y,r)):y()}}}nl().requestIdleCallback,nl().cancelIdleCallback;const zn=t=>!!t.type.__asyncLoader,Vl=t=>t.type.__isKeepAlive;function K1(t,e){M0(t,"a",e)}function G1(t,e){M0(t,"da",e)}function M0(t,e,r=vt){const i=t.__wdc||(t.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if($l(e,i,r),r){let n=r.parent;for(;n&&n.parent;)Vl(n.parent.vnode)&&Z1(i,e,r,n),n=n.parent}}function Z1(t,e,r,i){const n=$l(e,t,i,!0);Hl(()=>{yf(i[e],n)},r)}function $l(t,e,r=vt,i=!1){if(r){const n=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{ji();const a=Bo(r),l=_r(e,r,t,o);return a(),Bi(),l});return i?n.unshift(s):n.push(s),s}}const ni=t=>(e,r=vt)=>{xo&&t!=="sp"||$l(t,(...i)=>e(...i),r)},X1=ni("bm"),zl=ni("m"),I0=ni("bu"),Q1=ni("u"),C0=ni("bum"),Hl=ni("um"),J1=ni("sp"),ex=ni("rtg"),tx=ni("rtc");function rx(t,e=vt){$l("ec",t,e)}const Af="components";function rA(t,e){return Mf(Af,t,!0,e)||t}const P0=Symbol.for("v-ndc");function iA(t){return st(t)?Mf(Af,t,!1)||t:t||P0}function nA(t){return Mf("directives",t)}function Mf(t,e,r=!0,i=!1){const n=bt||vt;if(n){const s=n.type;if(t===Af){const a=Ex(s,!1);if(a&&(a===e||a===cr(e)||a===Dl(cr(e))))return s}const o=Md(n[t]||s[t],e)||Md(n.appContext[t],e);return!o&&i?s:o}}function Md(t,e){return t&&(t[e]||t[cr(e)]||t[Dl(cr(e))])}function sA(t,e,r,i){let n;const s=r,o=Me(t);if(o||st(t)){let a=!1;o&&Ri(t)&&(a=!lr(t),t=jl(t)),n=new Array(t.length);for(let l=0,c=t.length;le(a,l,void 0,s));else{const a=Object.keys(t);n=new Array(a.length);for(let l=0,c=a.length;l{const s=i.fn(...n);return s&&(s.key=i.key),s}:i.fn)}return t}function aA(t,e,r={},i,n){if(bt.ce||bt.parent&&zn(bt.parent)&&bt.parent.ce)return e!=="default"&&(r.name=e),Tu(),Au($t,null,[zt("slot",r,i&&i())],64);let s=t[e];s&&s._c&&(s._d=!1),Tu();const o=s&&R0(s(r)),a=r.key||o&&o.key,l=Au($t,{key:(a&&!ii(a)?a:`_${e}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&t._===1?64:-2);return!n&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function R0(t){return t.some(e=>!_o(e)||e.type!==Bt&&!(e.type===$t&&!R0(e.children)))?t:null}const Su=t=>t?Z0(t)?Yl(t):Su(t.parent):null,eo=xt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Su(t.parent),$root:t=>Su(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>L0(t),$forceUpdate:t=>t.f||(t.f=()=>{Tf(t.update)}),$nextTick:t=>t.n||(t.n=Wl.bind(t.proxy)),$watch:t=>dx.bind(t)}),xc=(t,e)=>t!==Qe&&!t.__isScriptSetup&&Ve(t,e),ix={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:i,data:n,props:s,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return i[e];case 2:return n[e];case 4:return r[e];case 3:return s[e]}else{if(xc(i,e))return o[e]=1,i[e];if(n!==Qe&&Ve(n,e))return o[e]=2,n[e];if((c=t.propsOptions[0])&&Ve(c,e))return o[e]=3,s[e];if(r!==Qe&&Ve(r,e))return o[e]=4,r[e];ku&&(o[e]=0)}}const u=eo[e];let f,h;return u?(e==="$attrs"&&Ct(t.attrs,0,""),u(t)):(f=a.__cssModules)&&(f=f[e])?f:r!==Qe&&Ve(r,e)?(o[e]=4,r[e]):(h=l.config.globalProperties,Ve(h,e)?h[e]:void 0)},set({_:t},e,r){const{data:i,setupState:n,ctx:s}=t;return xc(n,e)?(n[e]=r,!0):i!==Qe&&Ve(i,e)?(i[e]=r,!0):!Ve(t.props,e)&&(e[0]!=="$"||!(e.slice(1)in t))&&(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:i,appContext:n,propsOptions:s}},o){let a;return!!r[o]||t!==Qe&&Ve(t,o)||xc(e,o)||(a=s[0])&&Ve(a,o)||Ve(i,o)||Ve(eo,o)||Ve(n.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Ve(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function Id(t){return Me(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let ku=!0;function nx(t){const e=L0(t),r=t.proxy,i=t.ctx;ku=!1,e.beforeCreate&&Cd(e.beforeCreate,t,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:g,activated:p,deactivated:y,beforeDestroy:w,beforeUnmount:_,destroyed:E,unmounted:T,render:A,renderTracked:$,renderTriggered:k,errorCaptured:x,serverPrefetch:v,expose:O,inheritAttrs:M,components:Z,directives:te,filters:U}=e;if(c&&function(re,H){Me(re)&&(re=Eu(re));for(const oe in re){const K=re[oe];let q;q=rt(K)?"default"in K?Nr(K.from||oe,K.default,!0):Nr(K.from||oe):Nr(K),gt(q)?Object.defineProperty(H,oe,{enumerable:!0,configurable:!0,get:()=>q.value,set:j=>q.value=j}):H[oe]=q}}(c,i,null),o)for(const re in o){const H=o[re];Ce(H)&&(i[re]=H.bind(r))}if(n){const re=n.call(r,r);rt(re)&&(t.data=Lo(re))}if(ku=!0,s)for(const re in s){const H=s[re],oe=Ce(H)?H.bind(r,r):Ce(H.get)?H.get.bind(r,r):Lr,K=!Ce(H)&&Ce(H.set)?H.set.bind(r):Lr,q=nr({get:oe,set:K});Object.defineProperty(i,re,{enumerable:!0,configurable:!0,get:()=>q.value,set:j=>q.value=j})}if(a)for(const re in a)D0(a[re],i,r,re);if(l){const re=Ce(l)?l.call(r):l;Reflect.ownKeys(re).forEach(H=>{ja(H,re[H])})}function W(re,H){Me(H)?H.forEach(oe=>re(oe.bind(r))):H&&re(H.bind(r))}if(u&&Cd(u,t,"c"),W(X1,f),W(zl,h),W(I0,d),W(Q1,g),W(K1,p),W(G1,y),W(rx,x),W(tx,$),W(ex,k),W(C0,_),W(Hl,T),W(J1,v),Me(O))if(O.length){const re=t.exposed||(t.exposed={});O.forEach(H=>{Object.defineProperty(re,H,{get:()=>r[H],set:oe=>r[H]=oe})})}else t.exposed||(t.exposed={});A&&t.render===Lr&&(t.render=A),M!=null&&(t.inheritAttrs=M),Z&&(t.components=Z),te&&(t.directives=te),v&&A0(t)}function Cd(t,e,r){_r(Me(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,r)}function D0(t,e,r,i){let n=i.includes(".")?$0(r,i):()=>r[i];if(st(t)){const s=e[t];Ce(s)&&pn(n,s)}else if(Ce(t))pn(n,t.bind(r));else if(rt(t))if(Me(t))t.forEach(s=>D0(s,e,r,i));else{const s=Ce(t.handler)?t.handler.bind(r):e[t.handler];Ce(s)&&pn(n,s,t)}}function L0(t){const e=t.type,{mixins:r,extends:i}=e,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:n.length||r||i?(l={},n.length&&n.forEach(c=>cl(l,c,o,!0)),cl(l,e,o)):l=e,rt(e)&&s.set(e,l),l}function cl(t,e,r,i=!1){const{mixins:n,extends:s}=e;s&&cl(t,s,r,!0),n&&n.forEach(o=>cl(t,o,r,!0));for(const o in e)if(!(i&&o==="expose")){const a=sx[o]||r&&r[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const sx={data:Pd,props:Rd,emits:Rd,methods:Os,computed:Os,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Os,directives:Os,watch:function(t,e){if(!t)return e;if(!e)return t;const r=xt(Object.create(null),t);for(const i in e)r[i]=Dt(t[i],e[i]);return r},provide:Pd,inject:function(t,e){return Os(Eu(t),Eu(e))}};function Pd(t,e){return e?t?function(){return xt(Ce(t)?t.call(this,this):t,Ce(e)?e.call(this,this):e)}:e:t}function Eu(t){if(Me(t)){const e={};for(let r=0;r(s.has(c)||(c&&Ce(c.install)?(s.add(c),c.install(l,...u)):Ce(c)&&(s.add(c),c(l,...u))),l),mixin:c=>(n.mixins.includes(c)||n.mixins.push(c),l),component:(c,u)=>u?(n.components[c]=u,l):n.components[c],directive:(c,u)=>u?(n.directives[c]=u,l):n.directives[c],mount(c,u,f){if(!a){const h=l._ceVNode||zt(r,i);return h.appContext=n,f===!0?f="svg":f===!1&&(f=void 0),t(h,c,f),a=!0,l._container=c,c.__vue_app__=l,Yl(h.component)}},onUnmount(c){o.push(c)},unmount(){a&&(_r(o,l._instance,16),t(null,l._container),delete l._container.__vue_app__)},provide:(c,u)=>(n.provides[c]=u,l),runWithContext(c){const u=dn;dn=l;try{return c()}finally{dn=u}}};return l}}let dn=null;function ja(t,e){if(vt){let r=vt.provides;const i=vt.parent&&vt.parent.provides;i===r&&(r=vt.provides=Object.create(i)),r[t]=e}}function Nr(t,e,r=!1){const i=vt||bt;if(i||dn){const n=dn?dn._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(n&&t in n)return n[t];if(arguments.length>1)return r&&Ce(e)?e.call(i&&i.proxy):e}}const j0={},Dd=()=>Object.create(j0),B0=t=>Object.getPrototypeOf(t)===j0;function Ld(t,e,r,i){const[n,s]=t.propsOptions;let o,a=!1;if(e)for(let l in e){if(Zs(l))continue;const c=e[l];let u;n&&Ve(n,u=cr(l))?s&&s.includes(u)?(o||(o={}))[u]=c:r[u]=c:ul(t.emitsOptions,l)||l in i&&c===i[l]||(i[l]=c,a=!0)}if(s){const l=Ne(r),c=o||Qe;for(let u=0;u{l=!0;const[h,d]=F0(f,e,!0);xt(o,h),d&&a.push(...d)};!r&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return rt(t)&&i.set(t,Xn),Xn;if(Me(s))for(let u=0;ut[0]==="_"||t==="$stable",If=t=>Me(t)?t.map(Ir):[Ir(t)],cx=(t,e,r)=>{if(e._n)return e;const i=H1((...n)=>If(e(...n)),r);return i._c=!1,i},jd=(t,e,r)=>{const i=t._ctx;for(const n in t){if(W0(n))continue;const s=t[n];if(Ce(s))e[n]=cx(0,s,i);else if(s!=null){const o=If(s);e[n]=()=>o}}},Bd=(t,e)=>{const r=If(e);t.slots.default=()=>r},Fd=(t,e,r)=>{for(const i in e)(r||i!=="_")&&(t[i]=e[i])},Lt=function(t,e){e&&e.pendingBranch?Me(t)?e.effects.push(...t):e.effects.push(t):m0(t)};function ux(t){return function(e){nl().__VUE__=!0;const{insert:r,remove:i,patchProp:n,createElement:s,createText:o,createComment:a,setText:l,setElementText:c,parentNode:u,nextSibling:f,setScopeId:h=Lr,insertStaticContent:d}=e,g=(L,G,C,J=null,m=null,b=null,S=void 0,D=null,N=!!G.dynamicChildren)=>{if(L===G)return;L&&!on(L,G)&&(J=he(L),j(L,m,b,!0),L=null),G.patchFlag===-2&&(N=!1,G.dynamicChildren=null);const{type:R,ref:ee,shapeFlag:le}=G;switch(R){case ql:p(L,G,C,J);break;case Bt:y(L,G,C,J);break;case Ba:L==null&&w(G,C,J,S);break;case $t:M(L,G,C,J,m,b,S,D,N);break;default:1&le?T(L,G,C,J,m,b,S,D,N):6&le?Z(L,G,C,J,m,b,S,D,N):(64&le||128&le)&&R.process(L,G,C,J,m,b,S,D,N,ie)}ee!=null&&m&&ll(ee,L&&L.ref,b,G||L,!G)},p=(L,G,C,J)=>{if(L==null)r(G.el=o(G.children),C,J);else{const m=G.el=L.el;G.children!==L.children&&l(m,G.children)}},y=(L,G,C,J)=>{L==null?r(G.el=a(G.children||""),C,J):G.el=L.el},w=(L,G,C,J)=>{[L.el,L.anchor]=d(L.children,G,C,J,L.el,L.anchor)},_=({el:L,anchor:G},C,J)=>{let m;for(;L&&L!==G;)m=f(L),r(L,C,J),L=m;r(G,C,J)},E=({el:L,anchor:G})=>{let C;for(;L&&L!==G;)C=f(L),i(L),L=C;i(G)},T=(L,G,C,J,m,b,S,D,N)=>{G.type==="svg"?S="svg":G.type==="math"&&(S="mathml"),L==null?A(G,C,J,m,b,S,D,N):x(L,G,m,b,S,D,N)},A=(L,G,C,J,m,b,S,D)=>{let N,R;const{props:ee,shapeFlag:le,transition:ue,dirs:de}=L;if(N=L.el=s(L.type,b,ee&&ee.is,ee),8&le?c(N,L.children):16&le&&k(L.children,N,null,J,m,Sc(L,b),S,D),de&&zi(L,null,J,"created"),$(N,L,L.scopeId,S,J),ee){for(const F in ee)F==="value"||Zs(F)||n(N,F,null,ee[F],b,J);"value"in ee&&n(N,"value",null,ee.value,b),(R=ee.onVnodeBeforeMount)&&kr(R,J,L)}de&&zi(L,null,J,"beforeMount");const fe=function(F,Q){return(!F||F&&!F.pendingBranch)&&Q&&!Q.persisted}(m,ue);fe&&ue.beforeEnter(N),r(N,G,C),((R=ee&&ee.onVnodeMounted)||fe||de)&&Lt(()=>{R&&kr(R,J,L),fe&&ue.enter(N),de&&zi(L,null,J,"mounted")},m)},$=(L,G,C,J,m)=>{if(C&&h(L,C),J)for(let b=0;b{for(let R=N;R{const D=G.el=L.el;let{patchFlag:N,dynamicChildren:R,dirs:ee}=G;N|=16&L.patchFlag;const le=L.props||Qe,ue=G.props||Qe;let de;if(C&&Hi(C,!1),(de=ue.onVnodeBeforeUpdate)&&kr(de,C,G,L),ee&&zi(G,L,C,"beforeUpdate"),C&&Hi(C,!0),(le.innerHTML&&ue.innerHTML==null||le.textContent&&ue.textContent==null)&&c(D,""),R?v(L.dynamicChildren,R,D,C,J,Sc(G,m),b):S||H(L,G,D,null,C,J,Sc(G,m),b,!1),N>0){if(16&N)O(D,le,ue,C,m);else if(2&N&&le.class!==ue.class&&n(D,"class",null,ue.class,m),4&N&&n(D,"style",le.style,ue.style,m),8&N){const fe=G.dynamicProps;for(let F=0;F{de&&kr(de,C,G,L),ee&&zi(G,L,C,"updated")},J)},v=(L,G,C,J,m,b,S)=>{for(let D=0;D{if(G!==C){if(G!==Qe)for(const b in G)Zs(b)||b in C||n(L,b,G[b],null,m,J);for(const b in C){if(Zs(b))continue;const S=C[b],D=G[b];S!==D&&b!=="value"&&n(L,b,D,S,m,J)}"value"in C&&n(L,"value",G.value,C.value,m)}},M=(L,G,C,J,m,b,S,D,N)=>{const R=G.el=L?L.el:o(""),ee=G.anchor=L?L.anchor:o("");let{patchFlag:le,dynamicChildren:ue,slotScopeIds:de}=G;de&&(D=D?D.concat(de):de),L==null?(r(R,C,J),r(ee,C,J),k(G.children||[],C,ee,m,b,S,D,N)):le>0&&64&le&&ue&&L.dynamicChildren?(v(L.dynamicChildren,ue,C,m,b,S,D),(G.key!=null||m&&G===m.subTree)&&Cf(L,G,!0)):H(L,G,C,ee,m,b,S,D,N)},Z=(L,G,C,J,m,b,S,D,N)=>{G.slotScopeIds=D,L==null?512&G.shapeFlag?m.ctx.activate(G,C,J,S,N):te(G,C,J,m,b,S,N):U(L,G,N)},te=(L,G,C,J,m,b,S)=>{const D=L.component=function(N,R,ee){const le=N.type,ue=(R?R.appContext:N.appContext)||xx,de={uid:Sx++,vnode:N,type:le,parent:R,appContext:ue,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:R?R.provides:Object.create(ue.provides),ids:R?R.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:F0(le,ue),emitsOptions:z0(le,ue),emit:null,emitted:null,propsDefaults:Qe,inheritAttrs:le.inheritAttrs,ctx:Qe,data:Qe,props:Qe,attrs:Qe,slots:Qe,refs:Qe,setupState:Qe,setupContext:null,suspense:ee,suspenseId:ee?ee.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return de.ctx={_:de},de.root=R?R.root:de,de.emit=gx.bind(null,de),N.ce&&N.ce(de),de}(L,J,m);if(Vl(L)&&(D.ctx.renderer=ie),function(N,R=!1,ee=!1){R&&Mu(R);const{props:le,children:ue}=N.vnode,de=Z0(N);(function(F,Q,se,I=!1){const P={},ae=Dd();F.propsDefaults=Object.create(null),Ld(F,Q,P,ae);for(const ge in F.propsOptions[0])ge in P||(P[ge]=void 0);se?F.props=I?P:u0(P):F.type.props?F.props=P:F.props=ae,F.attrs=ae})(N,le,de,R),((F,Q,se)=>{const I=F.slots=Dd();if(32&F.vnode.shapeFlag){const P=Q._;P?(Fd(I,Q,se),se&&$y(I,"_",P,!0)):jd(Q,I)}else Q&&Bd(F,Q)})(N,ue,ee);const fe=de?function(F,Q){const se=F.type;F.accessCache=Object.create(null),F.proxy=new Proxy(F.ctx,ix);const{setup:I}=se;if(I){ji();const P=F.setupContext=I.length>1?function(me){const Pe=xe=>{me.exposed=xe||{}};return{attrs:new Proxy(me.attrs,kx),slots:me.slots,emit:me.emit,expose:Pe}}(F):null,ae=Bo(F),ge=jo(I,F,0,[F.props,P]),we=Wy(ge);if(Bi(),ae(),!we&&!F.sp||zn(F)||A0(F),we){if(ge.then(zd,zd),Q)return ge.then(me=>{Hd(F,me)}).catch(me=>{Fl(me,F,0)});F.asyncDep=ge}else Hd(F,ge)}else X0(F)}(N,R):void 0;R&&Mu(!1)}(D,!1,S),D.asyncDep){if(m&&m.registerDep(D,W,S),!L.el){const N=D.subTree=zt(Bt);y(null,N,G,C)}}else W(D,L,G,C,m,b,S)},U=(L,G,C)=>{const J=G.component=L.component;if(function(m,b,S){const{props:D,children:N,component:R}=m,{props:ee,children:le,patchFlag:ue}=b,de=R.emitsOptions;if(b.dirs||b.transition)return!0;if(!(S&&ue>=0))return!(!N&&!le||le&&le.$stable)||D!==ee&&(D?!ee||Vd(D,ee,de):!!ee);if(1024&ue)return!0;if(16&ue)return D?Vd(D,ee,de):!!ee;if(8&ue){const fe=b.dynamicProps;for(let F=0;F{const D=()=>{if(L.isMounted){let{next:le,bu:ue,u:de,parent:fe,vnode:F}=L;{const ae=U0(L);if(ae)return le&&(le.el=F.el,re(L,le,S)),void ae.asyncDep.then(()=>{L.isUnmounted||D()})}let Q,se=le;Hi(L,!1),le?(le.el=F.el,re(L,le,S)):le=F,ue&&dc(ue),(Q=le.props&&le.props.onVnodeBeforeUpdate)&&kr(Q,fe,le,F),Hi(L,!0);const I=Ud(L),P=L.subTree;L.subTree=I,g(P,I,u(P.el),he(P),L,m,b),le.el=I.el,se===null&&function({vnode:ae,parent:ge},we){for(;ge;){const me=ge.subTree;if(me.suspense&&me.suspense.activeBranch===ae&&(me.el=ae.el),me!==ae)break;(ae=ge.vnode).el=we,ge=ge.parent}}(L,I.el),de&&Lt(de,m),(Q=le.props&&le.props.onVnodeUpdated)&&Lt(()=>kr(Q,fe,le,F),m)}else{let le;const{el:ue,props:de}=G,{bm:fe,m:F,parent:Q,root:se,type:I}=L,P=zn(G);Hi(L,!1),fe&&dc(fe),!P&&(le=de&&de.onVnodeBeforeMount)&&kr(le,Q,G),Hi(L,!0);{se.ce&&se.ce._injectChildStyle(I);const ae=L.subTree=Ud(L);g(null,ae,C,J,L,m,b),G.el=ae.el}if(F&&Lt(F,m),!P&&(le=de&&de.onVnodeMounted)){const ae=G;Lt(()=>kr(le,Q,ae),m)}(256&G.shapeFlag||Q&&zn(Q.vnode)&&256&Q.vnode.shapeFlag)&&L.a&&Lt(L.a,m),L.isMounted=!0,G=C=J=null}};L.scope.on();const N=L.effect=new Zy(D);L.scope.off();const R=L.update=N.run.bind(N),ee=L.job=N.runIfDirty.bind(N);ee.i=L,ee.id=L.uid,N.scheduler=()=>Tf(ee),Hi(L,!0),R()},re=(L,G,C)=>{G.component=L;const J=L.vnode.props;L.vnode=G,L.next=null,function(m,b,S,D){const{props:N,attrs:R,vnode:{patchFlag:ee}}=m,le=Ne(N),[ue]=m.propsOptions;let de=!1;if(!(D||ee>0)||16&ee){let fe;Ld(m,b,N,R)&&(de=!0);for(const F in le)b&&(Ve(b,F)||(fe=Wi(F))!==F&&Ve(b,fe))||(ue?!S||S[F]===void 0&&S[fe]===void 0||(N[F]=Ou(ue,le,F,void 0,m,!0)):delete N[F]);if(R!==le)for(const F in R)b&&Ve(b,F)||(delete R[F],de=!0)}else if(8&ee){const fe=m.vnode.dynamicProps;for(let F=0;F{const{vnode:D,slots:N}=m;let R=!0,ee=Qe;if(32&D.shapeFlag){const le=b._;le?S&&le===1?R=!1:Fd(N,b,S):(R=!b.$stable,jd(b,N)),ee=b}else b&&(Bd(m,b),ee={default:1});if(R)for(const le in N)W0(le)||ee[le]!=null||delete N[le]})(L,G.children,C),ji(),Sd(L),Bi()},H=(L,G,C,J,m,b,S,D,N=!1)=>{const R=L&&L.children,ee=L?L.shapeFlag:0,le=G.children,{patchFlag:ue,shapeFlag:de}=G;if(ue>0){if(128&ue)return void K(R,le,C,J,m,b,S,D,N);if(256&ue)return void oe(R,le,C,J,m,b,S,D,N)}8&de?(16&ee&&ce(R,m,b),le!==R&&c(C,le)):16&ee?16&de?K(R,le,C,J,m,b,S,D,N):ce(R,m,b,!0):(8&ee&&c(C,""),16&de&&k(le,C,J,m,b,S,D,N))},oe=(L,G,C,J,m,b,S,D,N)=>{G=G||Xn;const R=(L=L||Xn).length,ee=G.length,le=Math.min(R,ee);let ue;for(ue=0;ueee?ce(L,m,b,!0,!1,le):k(G,C,J,m,b,S,D,N,le)},K=(L,G,C,J,m,b,S,D,N)=>{let R=0;const ee=G.length;let le=L.length-1,ue=ee-1;for(;R<=le&&R<=ue;){const de=L[R],fe=G[R]=N?Si(G[R]):Ir(G[R]);if(!on(de,fe))break;g(de,fe,C,null,m,b,S,D,N),R++}for(;R<=le&&R<=ue;){const de=L[le],fe=G[ue]=N?Si(G[ue]):Ir(G[ue]);if(!on(de,fe))break;g(de,fe,C,null,m,b,S,D,N),le--,ue--}if(R>le){if(R<=ue){const de=ue+1,fe=deue)for(;R<=le;)j(L[R],m,b,!0),R++;else{const de=R,fe=R,F=new Map;for(R=fe;R<=ue;R++){const me=G[R]=N?Si(G[R]):Ir(G[R]);me.key!=null&&F.set(me.key,R)}let Q,se=0;const I=ue-fe+1;let P=!1,ae=0;const ge=new Array(I);for(R=0;R=I){j(me,m,b,!0);continue}let Pe;if(me.key!=null)Pe=F.get(me.key);else for(Q=fe;Q<=ue;Q++)if(ge[Q-fe]===0&&on(me,G[Q])){Pe=Q;break}Pe===void 0?j(me,m,b,!0):(ge[Pe-fe]=R+1,Pe>=ae?ae=Pe:P=!0,g(me,G[Pe],C,null,m,b,S,D,N),se++)}const we=P?function(me){const Pe=me.slice(),xe=[0];let ze,Le,He,We,Ze;const Ae=me.length;for(ze=0;ze>1,me[xe[Ze]]0&&(Pe[ze]=xe[He-1]),xe[He]=ze)}}for(He=xe.length,We=xe[He-1];He-- >0;)xe[He]=We,We=Pe[We];return xe}(ge):Xn;for(Q=we.length-1,R=I-1;R>=0;R--){const me=fe+R,Pe=G[me],xe=me+1{const{el:b,type:S,transition:D,children:N,shapeFlag:R}=L;if(6&R)return void q(L.component.subTree,G,C,J);if(128&R)return void L.suspense.move(G,C,J);if(64&R)return void S.move(L,G,C,ie);if(S===$t){r(b,G,C);for(let ee=0;eeD.enter(b),m);else{const{leave:ee,delayLeave:le,afterLeave:ue}=D,de=()=>r(b,G,C),fe=()=>{ee(b,()=>{de(),ue&&ue()})};le?le(b,de,fe):fe()}else r(b,G,C)},j=(L,G,C,J=!1,m=!1)=>{const{type:b,props:S,ref:D,children:N,dynamicChildren:R,shapeFlag:ee,patchFlag:le,dirs:ue,cacheIndex:de}=L;if(le===-2&&(m=!1),D!=null&&ll(D,null,C,L,!0),de!=null&&(G.renderCache[de]=void 0),256&ee)return void G.ctx.deactivate(L);const fe=1&ee&&ue,F=!zn(L);let Q;if(F&&(Q=S&&S.onVnodeBeforeUnmount)&&kr(Q,G,L),6&ee)V(L.component,C,J);else{if(128&ee)return void L.suspense.unmount(C,J);fe&&zi(L,null,G,"beforeUnmount"),64&ee?L.type.remove(L,G,C,ie,J):R&&!R.hasOnce&&(b!==$t||le>0&&64&le)?ce(R,G,C,!1,!0):(b===$t&&384&le||!m&&16&ee)&&ce(N,G,C),J&&B(L)}(F&&(Q=S&&S.onVnodeUnmounted)||fe)&&Lt(()=>{Q&&kr(Q,G,L),fe&&zi(L,null,G,"unmounted")},C)},B=L=>{const{type:G,el:C,anchor:J,transition:m}=L;if(G===$t)return void Y(C,J);if(G===Ba)return void E(L);const b=()=>{i(C),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(1&L.shapeFlag&&m&&!m.persisted){const{leave:S,delayLeave:D}=m,N=()=>S(C,b);D?D(L.el,b,N):N()}else b()},Y=(L,G)=>{let C;for(;L!==G;)C=f(L),i(L),L=C;i(G)},V=(L,G,C)=>{const{bum:J,scope:m,job:b,subTree:S,um:D,m:N,a:R}=L;Wd(N),Wd(R),J&&dc(J),m.stop(),b&&(b.flags|=8,j(S,L,G,C)),D&&Lt(D,G),Lt(()=>{L.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},ce=(L,G,C,J=!1,m=!1,b=0)=>{for(let S=b;S{if(6&L.shapeFlag)return he(L.component.subTree);if(128&L.shapeFlag)return L.suspense.next();const G=f(L.anchor||L.el),C=G&&G[w0];return C?f(C):G};let pe=!1;const z=(L,G,C)=>{L==null?G._vnode&&j(G._vnode,null,null,!0):g(G._vnode||null,L,G,null,null,null,C),G._vnode=L,pe||(pe=!0,Sd(),y0(),pe=!1)},ie={p:g,um:j,m:q,r:B,mt:te,mc:k,pc:H,pbc:v,n:he,o:e};return{render:z,hydrate:void 0,createApp:ax(z)}}(t)}function Sc({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Hi({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Cf(t,e,r=!1){const i=t.children,n=e.children;if(Me(i)&&Me(n))for(let s=0;sNr(hx);function pn(t,e,r){return V0(t,e,r)}function V0(t,e,r=Qe){const{immediate:i,deep:n,flush:s,once:o}=r,a=xt({},r),l=e&&i||!e&&s!=="post";let c;if(xo){if(s==="sync"){const d=fx();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Lr,d.resume=Lr,d.pause=Lr,d}}const u=vt;a.call=(d,g,p)=>_r(d,u,g,p);let f=!1;s==="post"?a.scheduler=d=>{Lt(d,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(d,g)=>{g?d():Tf(d)}),a.augmentJob=d=>{e&&(d.flags|=4),f&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=z1(t,e,a);return xo&&(c?c.push(h):l&&h()),h}function dx(t,e,r){const i=this.proxy,n=st(t)?t.includes(".")?$0(i,t):()=>i[t]:t.bind(i,i);let s;Ce(e)?s=e:(s=e.handler,r=e);const o=Bo(this),a=V0(n,s.bind(i),r);return o(),a}function $0(t,e){const r=e.split(".");return()=>{let i=t;for(let n=0;ne==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${cr(e)}Modifiers`]||t[`${Wi(e)}Modifiers`];function gx(t,e,...r){if(t.isUnmounted)return;const i=t.vnode.props||Qe;let n=r;const s=e.startsWith("update:"),o=s&&px(i,e.slice(7));let a;o&&(o.trim&&(n=r.map(u=>st(u)?u.trim():u)),o.number&&(n=r.map(m1)));let l=i[a=fc(e)]||i[a=fc(cr(e))];!l&&s&&(l=i[a=fc(Wi(e))]),l&&_r(l,t,6,n);const c=i[a+"Once"];if(c){if(t.emitted){if(t.emitted[a])return}else t.emitted={};t.emitted[a]=!0,_r(c,t,6,n)}}function z0(t,e,r=!1){const i=e.emitsCache,n=i.get(t);if(n!==void 0)return n;const s=t.emits;let o={},a=!1;if(!Ce(t)){const l=c=>{const u=z0(c,e,!0);u&&(a=!0,xt(o,u))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return s||a?(Me(s)?s.forEach(l=>o[l]=null):xt(o,s),rt(t)&&i.set(t,o),o):(rt(t)&&i.set(t,null),null)}function ul(t,e){return!(!t||!Cl(e))&&(e=e.slice(2).replace(/Once$/,""),Ve(t,e[0].toLowerCase()+e.slice(1))||Ve(t,Wi(e))||Ve(t,e))}function Ud(t){const{type:e,vnode:r,proxy:i,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:f,data:h,setupState:d,ctx:g,inheritAttrs:p}=t,y=al(t);let w,_;try{if(4&r.shapeFlag){const T=n||i,A=T;w=Ir(c.call(A,T,u,f,d,h,g)),_=a}else{const T=e;w=Ir(T.length>1?T(f,{attrs:a,slots:o,emit:l}):T(f,null)),_=e.props?a:mx(a)}}catch(T){to.length=0,Fl(T,t,1),w=zt(Bt)}let E=w;if(_&&p!==!1){const T=Object.keys(_),{shapeFlag:A}=E;T.length&&7&A&&(s&&T.some(mf)&&(_=yx(_,s)),E=Fi(E,_,!1,!0))}return r.dirs&&(E=Fi(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&vo(E,r.transition),w=E,al(y),w}const mx=t=>{let e;for(const r in t)(r==="class"||r==="style"||Cl(r))&&((e||(e={}))[r]=t[r]);return e},yx=(t,e)=>{const r={};for(const i in t)mf(i)&&i.slice(9)in e||(r[i]=t[i]);return r};function Vd(t,e,r){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let n=0;nt.__isSuspense,$t=Symbol.for("v-fgt"),ql=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),Ba=Symbol.for("v-stc"),to=[];let Zt=null;function Tu(t=!1){to.push(Zt=t?null:[])}let wo=1;function $d(t,e=!1){wo+=t,t<0&&Zt&&e&&(Zt.hasOnce=!0)}function q0(t){return t.dynamicChildren=wo>0?Zt||Xn:null,to.pop(),Zt=to[to.length-1]||null,wo>0&&Zt&&Zt.push(t),t}function lA(t,e,r,i,n,s){return q0(K0(t,e,r,i,n,s,!0))}function Au(t,e,r,i,n){return q0(zt(t,e,r,i,n,!0))}function _o(t){return!!t&&t.__v_isVNode===!0}function on(t,e){return t.type===e.type&&t.key===e.key}const Y0=({key:t})=>t??null,Fa=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?st(t)||gt(t)||Ce(t)?{i:bt,r:t,k:e,f:!!r}:t:null);function K0(t,e=null,r=null,i=0,n=null,s=t===$t?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Y0(e),ref:e&&Fa(e),scopeId:v0,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:bt};return a?(Pf(l,r),128&s&&t.normalize(l)):r&&(l.shapeFlag|=st(r)?8:16),wo>0&&!o&&Zt&&(l.patchFlag>0||6&s)&&l.patchFlag!==32&&Zt.push(l),l}const zt=function(t,e=null,r=null,i=0,n=null,s=!1){if(t&&t!==P0||(t=Bt),_o(t)){const l=Fi(t,e,!0);return r&&Pf(l,r),wo>0&&!s&&Zt&&(6&l.shapeFlag?Zt[Zt.indexOf(t)]=l:Zt.push(l)),l.patchFlag=-2,l}o=t,Ce(o)&&"__vccOpts"in o&&(t=t.__vccOpts);var o;if(e){e=bx(e);let{class:l,style:c}=e;l&&!st(l)&&(e.class=Nl(l)),rt(c)&&(No(c)&&!Me(c)&&(c=xt({},c)),e.style=Ll(c))}const a=st(t)?1:H0(t)?128:_0(t)?64:rt(t)?4:Ce(t)?2:0;return K0(t,e,r,i,n,a,s,!0)};function bx(t){return t?No(t)||B0(t)?xt({},t):t:null}function Fi(t,e,r=!1,i=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=t,c=e?_x(n||{},e):n,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Y0(c),ref:e&&e.ref?r&&s?Me(s)?s.concat(Fa(e)):[s,Fa(e)]:Fa(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==$t?o===-1?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Fi(t.ssContent),ssFallback:t.ssFallback&&Fi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&vo(u,l.clone(u)),u}function vx(t=" ",e=0){return zt(ql,null,t,e)}function cA(t="",e=!1){return e?(Tu(),Au(Bt,null,t)):zt(Bt,null,t)}function Ir(t){return t==null||typeof t=="boolean"?zt(Bt):Me(t)?zt($t,null,t.slice()):_o(t)?Si(t):zt(ql,null,String(t))}function Si(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Fi(t)}function Pf(t,e){let r=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(Me(e))r=16;else if(typeof e=="object"){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),Pf(t,n()),n._c&&(n._d=!0)))}{r=32;const n=e._;n||B0(e)?n===3&&bt&&(bt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=bt}}else Ce(e)?(e={default:e,_ctx:bt},r=32):(e=String(e),64&i?(r=16,e=[vx(e)]):r=8);t.children=e,t.shapeFlag|=r}function _x(...t){const e={};for(let r=0;rvt||bt;let hl,Mu;{const t=nl(),e=(r,i)=>{let n;return(n=t[r])||(n=t[r]=[]),n.push(i),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};hl=e("__VUE_INSTANCE_SETTERS__",r=>vt=r),Mu=e("__VUE_SSR_SETTERS__",r=>xo=r)}const Bo=t=>{const e=vt;return hl(t),t.scope.on(),()=>{t.scope.off(),hl(e)}},zd=()=>{vt&&vt.scope.off(),hl(null)};function Z0(t){return 4&t.vnode.shapeFlag}let xo=!1;function Hd(t,e,r){Ce(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:rt(e)&&(t.setupState=d0(e)),X0(t)}function X0(t,e,r){const i=t.type;t.render||(t.render=i.render||Lr);{const n=Bo(t);ji();try{nx(t)}finally{Bi(),n()}}}const kx={get:(t,e)=>(Ct(t,0,""),t[e])};function Yl(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(d0(Ef(t.exposed)),{get:(e,r)=>r in e?e[r]:r in eo?eo[r](t):void 0,has:(e,r)=>r in e||r in eo})):t.proxy}function Ex(t,e=!0){return Ce(t)?t.displayName||t.name:t.name||e&&t.__name}const nr=(t,e)=>function(i,n,s=!1){let o,a;return Ce(i)?o=i:(o=i.get,a=i.set),new $1(o,a,s)}(t,0,xo);function as(t,e,r){const i=arguments.length;return i===2?rt(e)&&!Me(e)?_o(e)?zt(t,null,[e]):zt(t,e):zt(t,null,e):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&_o(r)&&(r=[r]),zt(t,e,r))}const Q0="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Iu;const qd=typeof window<"u"&&window.trustedTypes;if(qd)try{Iu=qd.createPolicy("vue",{createHTML:t=>t})}catch{}const J0=Iu?t=>Iu.createHTML(t):t=>t,qr=typeof document<"u"?document:null,Yd=qr&&qr.createElement("template"),Ox={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,i)=>{const n=e==="svg"?qr.createElementNS("http://www.w3.org/2000/svg",t):e==="mathml"?qr.createElementNS("http://www.w3.org/1998/Math/MathML",t):r?qr.createElement(t,{is:r}):qr.createElement(t);return t==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:t=>qr.createTextNode(t),createComment:t=>qr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>qr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,i,n,s){const o=r?r.previousSibling:e.lastChild;if(n&&(n===s||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),r),n!==s&&(n=n.nextSibling););else{Yd.innerHTML=J0(i==="svg"?`${t}`:i==="mathml"?`${t}`:t);const a=Yd.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},ci="transition",Ts="animation",So=Symbol("_vtc"),eb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Tx=xt({},S0,eb),uA=(t=>(t.displayName="Transition",t.props=Tx,t))((t,{slots:e})=>as(Y1,function(r){const i={};for(const U in r)U in eb||(i[U]=r[U]);if(r.css===!1)return i;const{name:n="v",type:s,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:f=l,appearToClass:h=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=r,y=function(U){if(U==null)return null;if(rt(U))return[kc(U.enter),kc(U.leave)];{const W=kc(U);return[W,W]}}(o),w=y&&y[0],_=y&&y[1],{onBeforeEnter:E,onEnter:T,onEnterCancelled:A,onLeave:$,onLeaveCancelled:k,onBeforeAppear:x=E,onAppear:v=T,onAppearCancelled:O=A}=i,M=(U,W,re,H)=>{U._enterCancelled=H,Yi(U,W?h:c),Yi(U,W?f:l),re&&re()},Z=(U,W)=>{U._isLeaving=!1,Yi(U,d),Yi(U,p),Yi(U,g),W&&W()},te=U=>(W,re)=>{const H=U?v:T,oe=()=>M(W,U,re);qi(H,[W,oe]),Gd(()=>{Yi(W,U?u:a),Fr(W,U?h:c),Kd(H)||Zd(W,s,w,oe)})};return xt(i,{onBeforeEnter(U){qi(E,[U]),Fr(U,a),Fr(U,l)},onBeforeAppear(U){qi(x,[U]),Fr(U,u),Fr(U,f)},onEnter:te(!1),onAppear:te(!0),onLeave(U,W){U._isLeaving=!0;const re=()=>Z(U,W);Fr(U,d),U._enterCancelled?(Fr(U,g),Jd()):(Jd(),Fr(U,g)),Gd(()=>{U._isLeaving&&(Yi(U,d),Fr(U,p),Kd($)||Zd(U,s,_,re))}),qi($,[U,re])},onEnterCancelled(U){M(U,!1,void 0,!0),qi(A,[U])},onAppearCancelled(U){M(U,!0,void 0,!0),qi(O,[U])},onLeaveCancelled(U){Z(U),qi(k,[U])}})}(t),e)),qi=(t,e=[])=>{Me(t)?t.forEach(r=>r(...e)):t&&t(...e)},Kd=t=>!!t&&(Me(t)?t.some(e=>e.length>1):t.length>1);function kc(t){return(r=>{const i=st(r)?Number(r):NaN;return isNaN(i)?r:i})(t)}function Fr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[So]||(t[So]=new Set)).add(e)}function Yi(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const r=t[So];r&&(r.delete(e),r.size||(t[So]=void 0))}function Gd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Ax=0;function Zd(t,e,r,i){const n=t._endId=++Ax,s=()=>{n===t._endId&&i()};if(r!=null)return setTimeout(s,r);const{type:o,timeout:a,propCount:l}=function(d,g){const p=window.getComputedStyle(d),y=M=>(p[M]||"").split(", "),w=y(`${ci}Delay`),_=y(`${ci}Duration`),E=Xd(w,_),T=y(`${Ts}Delay`),A=y(`${Ts}Duration`),$=Xd(T,A);let k=null,x=0,v=0;g===ci?E>0&&(k=ci,x=E,v=_.length):g===Ts?$>0&&(k=Ts,x=$,v=A.length):(x=Math.max(E,$),k=x>0?E>$?ci:Ts:null,v=k?k===ci?_.length:A.length:0);const O=k===ci&&/\b(transform|all)(,|$)/.test(y(`${ci}Property`).toString());return{type:k,timeout:x,propCount:v,hasTransform:O}}(t,e);if(!o)return i();const c=o+"end";let u=0;const f=()=>{t.removeEventListener(c,h),s()},h=d=>{d.target===t&&++u>=l&&f()};setTimeout(()=>{uQd(r)+Qd(t[i])))}function Qd(t){return t==="auto"?0:1e3*Number(t.slice(0,-1).replace(",","."))}function Jd(){return document.body.offsetHeight}const fl=Symbol("_vod"),tb=Symbol("_vsh"),hA={beforeMount(t,{value:e},{transition:r}){t[fl]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):As(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:i}){!e!=!r&&(i?e?(i.beforeEnter(t),As(t,!0),i.enter(t)):i.leave(t,()=>{As(t,!1)}):As(t,e))},beforeUnmount(t,{value:e}){As(t,e)}};function As(t,e){t.style.display=e?t[fl]:"none",t[tb]=!e}const rb=Symbol("");function fA(t){const e=G0();if(!e)return;const r=e.ut=(n=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>dl(s,n))},i=()=>{const n=t(e.proxy);e.ce?dl(e.ce,n):Cu(e.subTree,n),r(n)};I0(()=>{m0(i)}),zl(()=>{pn(i,Lr,{flush:"post"});const n=new MutationObserver(i);n.observe(e.subTree.el.parentNode,{childList:!0}),Hl(()=>n.disconnect())})}function Cu(t,e){if(128&t.shapeFlag){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Cu(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)dl(t.el,e);else if(t.type===$t)t.children.forEach(r=>Cu(r,e));else if(t.type===Ba){let{el:r,anchor:i}=t;for(;r&&(dl(r,e),r!==i);)r=r.nextSibling}}function dl(t,e){if(t.nodeType===1){const r=t.style;let i="";for(const n in e)r.setProperty(`--${n}`,e[n]),i+=`--${n}: ${e[n]};`;r[rb]=i}}const Mx=/(^|;)\s*display\s*:/,ep=/\s*!important$/;function Wa(t,e,r){if(Me(r))r.forEach(i=>Wa(t,e,i));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const i=function(n,s){const o=Ec[s];if(o)return o;let a=cr(s);if(a!=="filter"&&a in n)return Ec[s]=a;a=Dl(a);for(let l=0;l{if(d._vts){if(d._vts<=h.attached)return}else d._vts=Date.now();_r(function(g,p){if(Me(p)){const y=g.stopImmediatePropagation;return g.stopImmediatePropagation=()=>{y.call(g),g._stopped=!0},p.map(w=>_=>!_._stopped&&w&&w(_))}return p}(d,h.value),f,5,[d])};return h.value=u,h.attached=Px(),h}(i,n);(function(u,f,h,d){u.addEventListener(f,h,d)})(t,a,c,l)}else o&&(function(c,u,f,h){c.removeEventListener(u,f,h)}(t,a,o,l),s[e]=void 0)}}const op=/(?:Once|Passive|Capture)$/;let Oc=0;const Cx=Promise.resolve(),Px=()=>Oc||(Cx.then(()=>Oc=0),Oc=Date.now()),ap=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Rx=["ctrl","shift","alt","meta"],Dx={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Rx.some(r=>t[`${r}Key`]&&!e.includes(r))},dA=(t,e)=>{const r=t._withMods||(t._withMods={}),i=e.join(".");return r[i]||(r[i]=(n,...s)=>{for(let o=0;o{const r=t._withKeys||(t._withKeys={}),i=e.join(".");return r[i]||(r[i]=n=>{if(!("key"in n))return;const s=Wi(n.key);return e.some(o=>o===s||Lx[o]===s)?t(n):void 0})},Nx=xt({patchProp:(t,e,r,i,n,s)=>{const o=n==="svg";e==="class"?function(a,l,c){const u=a[So];u&&(l=(l?[l,...u]:[...u]).join(" ")),l==null?a.removeAttribute("class"):c?a.setAttribute("class",l):a.className=l}(t,i,o):e==="style"?function(a,l,c){const u=a.style,f=st(c);let h=!1;if(c&&!f){if(l)if(st(l))for(const d of l.split(";")){const g=d.slice(0,d.indexOf(":")).trim();c[g]==null&&Wa(u,g,"")}else for(const d in l)c[d]==null&&Wa(u,d,"");for(const d in c)d==="display"&&(h=!0),Wa(u,d,c[d])}else if(f){if(l!==c){const d=u[rb];d&&(c+=";"+d),u.cssText=c,h=Mx.test(c)}}else l&&a.removeAttribute("style");fl in a&&(a[fl]=h?u.display:"",a[tb]&&(u.display="none"))}(t,r,i):Cl(e)?mf(e)||Ix(t,e,0,i,s):(e[0]==="."?(e=e.slice(1),1):e[0]==="^"?(e=e.slice(1),0):function(a,l,c,u){if(u)return l==="innerHTML"||l==="textContent"||!!(l in a&&ap(l)&&Ce(c));if(l==="spellcheck"||l==="draggable"||l==="translate"||l==="form"||l==="list"&&a.tagName==="INPUT"||l==="type"&&a.tagName==="TEXTAREA")return!1;if(l==="width"||l==="height"){const f=a.tagName;if(f==="IMG"||f==="VIDEO"||f==="CANVAS"||f==="SOURCE")return!1}return ap(l)&&st(c)?!1:l in a}(t,e,i,o))?(np(t,e,i),t.tagName.includes("-")||e!=="value"&&e!=="checked"&&e!=="selected"||ip(t,e,i,o,0,e!=="value")):!t._isVueCE||!/[A-Z]/.test(e)&&st(i)?(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),ip(t,e,i,o)):np(t,cr(e),i,0,e)}},Ox);let lp;const gA=(...t)=>{const e=(lp||(lp=ux(Nx))).createApp(...t),{mount:r}=e;return e.mount=i=>{const n=function(a){return st(a)?document.querySelector(a):a}(i);if(!n)return;const s=e._component;Ce(s)||s.render||s.template||(s.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=r(n,!1,function(a){if(a instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&a instanceof MathMLElement)return"mathml"}(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};let ib;const Kl=t=>ib=t,nb=Symbol();function Pu(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ro,Tc;function mA(){const t=Ky(!0),e=t.run(()=>Bl({}));let r=[],i=[];const n=Ef({install(s){Kl(n),n._a=s,s.provide(nb,n),s.config.globalProperties.$pinia=n,i.forEach(o=>r.push(o)),i=[]},use(s){return this._a?r.push(s):i.push(s),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return n}(Tc=ro||(ro={})).direct="direct",Tc.patchObject="patch object",Tc.patchFunction="patch function";const sb=()=>{};function cp(t,e,r,i=sb){t.push(e);const n=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),i())};var s;return!r&&Gy()&&(s=n,Nt&&Nt.cleanups.push(s)),n}function Pn(t,...e){t.slice().forEach(r=>{r(...e)})}const jx=t=>t(),up=Symbol(),Ac=Symbol();function Ru(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,i)=>t.set(i,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r],n=t[r];Pu(n)&&Pu(i)&&t.hasOwnProperty(r)&&!gt(i)&&!Ri(i)?t[r]=Ru(n,i):t[r]=i}return t}const Bx=Symbol(),{assign:pi}=Object;function Fx(t,e,r,i){const{state:n,actions:s,getters:o}=e,a=r.state.value[t];let l;return l=ob(t,function(){a||(r.state.value[t]=n?n():{});const c=function(u){const f=Me(u)?new Array(u.length):{};for(const h in u)f[h]=V1(u,h);return f}(r.state.value[t]);return pi(c,s,Object.keys(o||{}).reduce((u,f)=>(u[f]=Ef(nr(()=>{Kl(r);const h=r._s.get(t);return o[f].call(h,h)})),u),{}))},e,r,i,!0),l}function ob(t,e,r={},i,n,s){let o;const a=pi({actions:{}},r),l={deep:!0};let c,u,f,h=[],d=[];const g=i.state.value[t];let p;function y(x){let v;c=u=!1,typeof x=="function"?(x(i.state.value[t]),v={type:ro.patchFunction,storeId:t,events:f}):(Ru(i.state.value[t],x),v={type:ro.patchObject,payload:x,storeId:t,events:f});const O=p=Symbol();Wl().then(()=>{p===O&&(c=!0)}),u=!0,Pn(h,v,i.state.value[t])}s||g||(i.state.value[t]={}),Bl({});const w=s?function(){const{state:x}=r,v=x?x():{};this.$patch(O=>{pi(O,v)})}:sb,_=(x,v="")=>{if(up in x)return x[Ac]=v,x;const O=function(){Kl(i);const M=Array.from(arguments),Z=[],te=[];let U;Pn(d,{args:M,name:O[Ac],store:T,after:function(W){Z.push(W)},onError:function(W){te.push(W)}});try{U=x.apply(this&&this.$id===t?this:T,M)}catch(W){throw Pn(te,W),W}return U instanceof Promise?U.then(W=>(Pn(Z,W),W)).catch(W=>(Pn(te,W),Promise.reject(W))):(Pn(Z,U),U)};return O[up]=!0,O[Ac]=v,O},E={_p:i,$id:t,$onAction:cp.bind(null,d),$patch:y,$reset:w,$subscribe(x,v={}){const O=cp(h,x,v.detached,()=>M()),M=o.run(()=>pn(()=>i.state.value[t],Z=>{(v.flush==="sync"?u:c)&&x({storeId:t,type:ro.direct,events:f},Z)},pi({},l,v)));return O},$dispose:function(){o.stop(),h=[],d=[],i._s.delete(t)}},T=Lo(E);i._s.set(t,T);const A=(i._a&&i._a.runWithContext||jx)(()=>i._e.run(()=>(o=Ky()).run(()=>e({action:_}))));for(const x in A){const v=A[x];if(gt(v)&&(!gt(k=v)||!k.effect)||Ri(v))s||(!g||Pu($=v)&&$.hasOwnProperty(Bx)||(gt(v)?v.value=g[x]:Ru(v,g[x])),i.state.value[t][x]=v);else if(typeof v=="function"){const O=_(v,x);A[x]=O,a.actions[x]=v}}var $,k;return pi(T,A),pi(Ne(T),A),Object.defineProperty(T,"$state",{get:()=>i.state.value[t],set:x=>{y(v=>{pi(v,x)})}}),i._p.forEach(x=>{pi(T,o.run(()=>x({store:T,app:i._a,pinia:i,options:a})))}),g&&s&&r.hydrate&&r.hydrate(T.$state,g),c=!0,u=!0,T}/*! #__NO_SIDE_EFFECTS__ */function yA(t,e,r){let i,n;const s=typeof e=="function";function o(a,l){return(a=a||(vt||bt||dn?Nr(nb,null):null))&&Kl(a),(a=ib)._s.has(i)||(s?ob(i,e,n,a):Fx(i,n,a)),a._s.get(i)}return i=t,n=s?r:e,o.$id=i,o}/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Un=typeof document<"u";function hp(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}const Ue=Object.assign;function Mc(t,e){const r={};for(const i in e){const n=e[i];r[i]=xr(n)?n.map(t):t(n)}return r}const io=()=>{},xr=Array.isArray,ab=/#/g,Wx=/&/g,Ux=/\//g,Vx=/=/g,$x=/\?/g,lb=/\+/g,zx=/%5B/g,Hx=/%5D/g,cb=/%5E/g,qx=/%60/g,ub=/%7B/g,Yx=/%7C/g,hb=/%7D/g,Kx=/%20/g;function Rf(t){return encodeURI(""+t).replace(Yx,"|").replace(zx,"[").replace(Hx,"]")}function Ic(t){return Rf(t).replace(lb,"%2B").replace(Kx,"+").replace(ab,"%23").replace(Wx,"%26").replace(qx,"`").replace(ub,"{").replace(hb,"}").replace(cb,"^")}function Gx(t){return t==null?"":function(e){return Rf(e).replace(ab,"%23").replace($x,"%3F")}(t).replace(Ux,"%2F")}function ko(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Zx=/\/$/;function Cc(t,e,r="/"){let i,n={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),n=t(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=function(c,u){if(c.startsWith("/"))return c;if(!c)return u;const f=u.split("/"),h=c.split("/"),d=h[h.length-1];d!==".."&&d!=="."||h.push("");let g,p,y=f.length-1;for(g=0;g1&&y--}return f.slice(0,y).join("/")+"/"+h.slice(g).join("/")}(i??e,r),{fullPath:i+(s&&"?")+s+o,path:i,query:n,hash:ko(o)}}function fp(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function ts(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function fb(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!Xx(t[r],e[r]))return!1;return!0}function Xx(t,e){return xr(t)?dp(t,e):xr(e)?dp(e,t):t===e}function dp(t,e){return xr(e)?t.length===e.length&&t.every((r,i)=>r===e[i]):t.length===1&&t[0]===e}const ui={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Eo,pp,no,Pc;function Qx(t){if(!t)if(Un){const e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),t.replace(Zx,"")}(pp=Eo||(Eo={})).pop="pop",pp.push="push",(Pc=no||(no={})).back="back",Pc.forward="forward",Pc.unknown="";const Jx=/^[^#]+#/;function eS(t,e){return t.replace(Jx,"#")+e}const Gl=()=>({left:window.scrollX,top:window.scrollY});function tS(t){let e;if("el"in t){const r=t.el,i=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;e=function(s,o){const a=document.documentElement.getBoundingClientRect(),l=s.getBoundingClientRect();return{behavior:o.behavior,left:l.left-a.left-(o.left||0),top:l.top-a.top-(o.top||0)}}(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function gp(t,e){return(history.state?history.state.position-e:-1)+t}const Rc=new Map;function db(t,e){const{pathname:r,search:i,hash:n}=e,s=t.indexOf("#");if(s>-1){let o=n.includes(t.slice(s))?t.slice(s).length:1,a=n.slice(o);return a[0]!=="/"&&(a="/"+a),fp(a,"")}return fp(r,t)+i+n}function mp(t,e,r,i=!1,n=!1){return{back:t,current:e,forward:r,replaced:i,position:window.history.length,scroll:n?Gl():null}}function rS(t){const{history:e,location:r}=window,i={value:db(t,r)},n={value:e.state};function s(o,a,l){const c=t.indexOf("#"),u=c>-1?(r.host&&document.querySelector("base")?t:t.slice(c))+o:location.protocol+"//"+location.host+t+o;try{e[l?"replaceState":"pushState"](a,"",u),n.value=a}catch{r[l?"replace":"assign"](u)}}return n.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:i,state:n,push:function(o,a){const l=Ue({},n.value,e.state,{forward:o,scroll:Gl()});s(l.current,l,!0),s(o,Ue({},mp(i.value,o,null),{position:l.position+1},a),!1),i.value=o},replace:function(o,a){s(o,Ue({},e.state,mp(n.value.back,o,n.value.forward,!0),a,{position:n.value.position}),!0),i.value=o}}}function iS(t){const e=rS(t=Qx(t)),r=function(n,s,o,a){let l=[],c=[],u=null;const f=({state:d})=>{const g=db(n,location),p=o.value,y=s.value;let w=0;if(d){if(o.value=g,s.value=d,u&&u===p)return void(u=null);w=y?d.position-y.position:0}else a(g);l.forEach(_=>{_(o.value,p,{delta:w,type:Eo.pop,direction:w?w>0?no.forward:no.back:no.unknown})})};function h(){const{history:d}=window;d.state&&d.replaceState(Ue({},d.state,{scroll:Gl()}),"")}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:function(){u=o.value},listen:function(d){l.push(d);const g=()=>{const p=l.indexOf(d);p>-1&&l.splice(p,1)};return c.push(g),g},destroy:function(){for(const d of c)d();c=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",h)}}}(t,e.state,e.location,e.replace),i=Ue({location:"",base:t,go:function(n,s=!0){s||r.pauseListeners(),history.go(n)},createHref:eS.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function bA(t){return(t=location.host?t||location.pathname+location.search:"").includes("#")||(t+="#"),iS(t)}function pb(t){return typeof t=="string"||typeof t=="symbol"}const gb=Symbol("");var yp,Rn;function ls(t,e){return Ue(new Error,{type:t,[gb]:!0},e)}function Wr(t,e){return t instanceof Error&&gb in t&&(e==null||!!(t.type&e))}(Rn=yp||(yp={}))[Rn.aborted=4]="aborted",Rn[Rn.cancelled=8]="cancelled",Rn[Rn.duplicated=16]="duplicated";const bp="[^/]+?",nS={sensitive:!1,strict:!1,start:!0,end:!0},sS=/[.+*?^${}()[\]/\\]/g;function oS(t,e){let r=0;for(;re.length?e.length===1&&e[0]===80?1:-1:0}function vp(t,e){let r=0;const i=t.score,n=e.score;for(;r0&&e[e.length-1]<0}const aS={type:0,value:""},lS=/[a-zA-Z0-9_]/;function cS(t,e,r){const i=function(s,o){const a=Ue({},nS,o),l=[];let c=a.start?"^":"";const u=[];for(const h of s){const d=h.length?[]:[90];a.strict&&!h.length&&(c+="/");for(let g=0;g1&&(h==="*"||h==="+")&&o(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:p,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):o("Invalid state to consume buffer"),g="")}function w(){g+=h}for(;d{s(p)}:io}function s(a){if(pb(a)){const l=i.get(a);l&&(i.delete(a),r.splice(r.indexOf(l),1),l.children.forEach(s),l.alias.forEach(s))}else{const l=r.indexOf(a);l>-1&&(r.splice(l,1),a.record.name&&i.delete(a.record.name),a.children.forEach(s),a.alias.forEach(s))}}function o(a){const l=function(c,u){let f=0,h=u.length;for(;f!==h;){const g=f+h>>1;vp(c,u[g])<0?h=g:f=g+1}const d=function(g){let p=g;for(;p=p.parent;)if(Ep(p)&&vp(g,p)===0)return p}(c);return d&&(h=u.lastIndexOf(d,h-1)),h}(a,r);r.splice(l,0,a),a.record.name&&!Sp(a)&&i.set(a.record.name,a)}return e=kp({strict:!1,end:!0,sensitive:!1},e),t.forEach(a=>n(a)),{addRoute:n,resolve:function(a,l){let c,u,f,h={};if("name"in a&&a.name){if(c=i.get(a.name),!c)throw ls(1,{location:a});f=c.record.name,h=Ue(_p(l.params,c.keys.filter(p=>!p.optional).concat(c.parent?c.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),a.params&&_p(a.params,c.keys.map(p=>p.name))),u=c.stringify(h)}else if(a.path!=null)u=a.path,c=r.find(p=>p.re.test(u)),c&&(h=c.parse(u),f=c.record.name);else{if(c=l.name?i.get(l.name):r.find(p=>p.re.test(l.path)),!c)throw ls(1,{location:a,currentLocation:l});f=c.record.name,h=Ue({},l.params,a.params),u=c.stringify(h)}const d=[];let g=c;for(;g;)d.unshift(g.record),g=g.parent;return{name:f,path:u,params:h,matched:d,meta:fS(d)}},removeRoute:s,clearRoutes:function(){r.length=0,i.clear()},getRoutes:function(){return r},getRecordMatcher:function(a){return i.get(a)}}}function _p(t,e){const r={};for(const i of e)i in t&&(r[i]=t[i]);return r}function xp(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:hS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function hS(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const i in t.components)e[i]=typeof r=="object"?r[i]:r;return e}function Sp(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fS(t){return t.reduce((e,r)=>Ue(e,r.meta),{})}function kp(t,e){const r={};for(const i in t)r[i]=i in e?e[i]:t[i];return r}function Ep({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function dS(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;is&&Ic(s)):[i&&Ic(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+r,s!=null&&(e+="="+s))})}return e}function pS(t){const e={};for(const r in t){const i=t[r];i!==void 0&&(e[r]=xr(i)?i.map(n=>n==null?null:""+n):i==null?i:""+i)}return e}const gS=Symbol(""),Tp=Symbol(""),Df=Symbol(""),mb=Symbol(""),Du=Symbol("");function Ms(){let t=[];return{add:function(e){return t.push(e),()=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)}},list:()=>t.slice(),reset:function(){t=[]}}}function ki(t,e,r,i,n,s=o=>o()){const o=i&&(i.enterCallbacks[n]=i.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const c=h=>{var d;h===!1?l(ls(4,{from:r,to:e})):h instanceof Error?l(h):typeof(d=h)=="string"||d&&typeof d=="object"?l(ls(2,{from:e,to:h})):(o&&i.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>t.call(i&&i.instances[n],e,r,c));let f=Promise.resolve(u);t.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function Dc(t,e,r,i,n=s=>s()){const s=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(e==="beforeRouteEnter"||o.instances[a])if(hp(l)){const c=(l.__vccOpts||l)[e];c&&s.push(ki(c,r,i,o,a,n))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=(h=u).__esModule||h[Symbol.toStringTag]==="Module"||h.default&&hp(h.default)?u.default:u;var h;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&ki(d,r,i,o,a,n)()}))}}return s}function Ap(t){const e=Nr(Df),r=Nr(mb),i=nr(()=>{const a=Jn(t.to);return e.resolve(a)}),n=nr(()=>{const{matched:a}=i.value,{length:l}=a,c=a[l-1],u=r.matched;if(!c||!u.length)return-1;const f=u.findIndex(ts.bind(null,c));if(f>-1)return f;const h=Mp(a[l-2]);return l>1&&Mp(c)===h&&u[u.length-1].path!==h?u.findIndex(ts.bind(null,a[l-2])):f}),s=nr(()=>n.value>-1&&function(a,l){for(const c in l){const u=l[c],f=a[c];if(typeof u=="string"){if(u!==f)return!1}else if(!xr(f)||f.length!==u.length||u.some((h,d)=>h!==f[d]))return!1}return!0}(r.params,i.value.params)),o=nr(()=>n.value>-1&&n.value===r.matched.length-1&&fb(r.params,i.value.params));return{route:i,href:nr(()=>i.value.href),isActive:s,isExactActive:o,navigate:function(a={}){if(function(l){if(!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)&&!l.defaultPrevented&&!(l.button!==void 0&&l.button!==0)){if(l.currentTarget&&l.currentTarget.getAttribute){const c=l.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(c))return}return l.preventDefault&&l.preventDefault(),!0}}(a)){const l=e[Jn(t.replace)?"replace":"push"](Jn(t.to)).catch(io);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}}}const mS=Ul({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ap,setup(t,{slots:e}){const r=Lo(Ap(t)),{options:i}=Nr(Df),n=nr(()=>({[Ip(t.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[Ip(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=e.default&&((o=e.default(r)).length===1?o[0]:o);var o;return t.custom?s:as("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},s)}}});function Mp(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ip=(t,e,r)=>t??e??r,yS=Ul({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const i=Nr(Du),n=nr(()=>t.route||i.value),s=Nr(Tp,0),o=nr(()=>{let c=Jn(s);const{matched:u}=n.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=nr(()=>n.value.matched[o.value]);ja(Tp,nr(()=>o.value+1)),ja(gS,a),ja(Du,n);const l=Bl();return pn(()=>[l.value,a.value,t.name],([c,u,f],[h,d,g])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),!c||!u||d&&ts(u,d)&&h||(u.enterCallbacks[f]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=n.value,u=t.name,f=a.value,h=f&&f.components[u];if(!h)return Cp(r.default,{Component:h,route:c});const d=f.props[u],g=d?d===!0?c.params:typeof d=="function"?d(c):d:null,p=as(h,Ue({},g,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Cp(r.default,{Component:p,route:c})||p}}});function Cp(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const bS=yS;function vA(t){const e=uS(t.routes,t),r=t.parseQuery||dS,i=t.stringifyQuery||Op,n=t.history,s=Ms(),o=Ms(),a=Ms(),l=Of(ui);let c=ui;Un&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Mc.bind(null,j=>""+j),f=Mc.bind(null,Gx),h=Mc.bind(null,ko);function d(j,B){if(B=Ue({},B||l.value),typeof j=="string"){const ie=Cc(r,j,B.path),ne=e.resolve({path:ie.path},B),L=n.createHref(ie.fullPath);return Ue(ie,ne,{params:h(ne.params),hash:ko(ie.hash),redirectedFrom:void 0,href:L})}let Y;if(j.path!=null)Y=Ue({},j,{path:Cc(r,j.path,B.path).path});else{const ie=Ue({},j.params);for(const ne in ie)ie[ne]==null&&delete ie[ne];Y=Ue({},j,{params:f(ie)}),B.params=f(B.params)}const V=e.resolve(Y,B),ce=j.hash||"";V.params=u(h(V.params));const he=function(ie,ne){const L=ne.query?ie(ne.query):"";return ne.path+(L&&"?")+L+(ne.hash||"")}(i,Ue({},j,{hash:(pe=ce,Rf(pe).replace(ub,"{").replace(hb,"}").replace(cb,"^")),path:V.path}));var pe;const z=n.createHref(he);return Ue({fullPath:he,hash:ce,query:i===Op?pS(j.query):j.query||{}},V,{redirectedFrom:void 0,href:z})}function g(j){return typeof j=="string"?Cc(r,j,l.value.path):Ue({},j)}function p(j,B){if(c!==j)return ls(8,{from:B,to:j})}function y(j){return _(j)}function w(j){const B=j.matched[j.matched.length-1];if(B&&B.redirect){const{redirect:Y}=B;let V=typeof Y=="function"?Y(j):Y;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=g(V):{path:V},V.params={}),Ue({query:j.query,hash:j.hash,params:V.path!=null?{}:j.params},V)}}function _(j,B){const Y=c=d(j),V=l.value,ce=j.state,he=j.force,pe=j.replace===!0,z=w(Y);if(z)return _(Ue(g(z),{state:typeof z=="object"?Ue({},ce,z.state):ce,force:he,replace:pe}),B||Y);const ie=Y;let ne;return ie.redirectedFrom=B,!he&&function(L,G,C){const J=G.matched.length-1,m=C.matched.length-1;return J>-1&&J===m&&ts(G.matched[J],C.matched[m])&&fb(G.params,C.params)&&L(G.query)===L(C.query)&&G.hash===C.hash}(i,V,Y)&&(ne=ls(16,{to:ie,from:V}),W(V,V,!0,!1)),(ne?Promise.resolve(ne):A(ie,V)).catch(L=>Wr(L)?Wr(L,2)?L:U(L):te(L,ie,V)).then(L=>{if(L){if(Wr(L,2))return _(Ue({replace:pe},g(L.to),{state:typeof L.to=="object"?Ue({},ce,L.to.state):ce,force:he}),B||ie)}else L=k(ie,V,!0,pe,ce);return $(ie,V,L),L})}function E(j,B){const Y=p(j,B);return Y?Promise.reject(Y):Promise.resolve()}function T(j){const B=oe.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(j):j()}function A(j,B){let Y;const[V,ce,he]=function(z,ie){const ne=[],L=[],G=[],C=Math.max(ie.matched.length,z.matched.length);for(let J=0;Jts(S,m))?L.push(m):ne.push(m));const b=z.matched[J];b&&(ie.matched.find(S=>ts(S,b))||G.push(b))}return[ne,L,G]}(j,B);Y=Dc(V.reverse(),"beforeRouteLeave",j,B);for(const z of V)z.leaveGuards.forEach(ie=>{Y.push(ki(ie,j,B))});const pe=E.bind(null,j,B);return Y.push(pe),q(Y).then(()=>{Y=[];for(const z of s.list())Y.push(ki(z,j,B));return Y.push(pe),q(Y)}).then(()=>{Y=Dc(ce,"beforeRouteUpdate",j,B);for(const z of ce)z.updateGuards.forEach(ie=>{Y.push(ki(ie,j,B))});return Y.push(pe),q(Y)}).then(()=>{Y=[];for(const z of he)if(z.beforeEnter)if(xr(z.beforeEnter))for(const ie of z.beforeEnter)Y.push(ki(ie,j,B));else Y.push(ki(z.beforeEnter,j,B));return Y.push(pe),q(Y)}).then(()=>(j.matched.forEach(z=>z.enterCallbacks={}),Y=Dc(he,"beforeRouteEnter",j,B,T),Y.push(pe),q(Y))).then(()=>{Y=[];for(const z of o.list())Y.push(ki(z,j,B));return Y.push(pe),q(Y)}).catch(z=>Wr(z,8)?z:Promise.reject(z))}function $(j,B,Y){a.list().forEach(V=>T(()=>V(j,B,Y)))}function k(j,B,Y,V,ce){const he=p(j,B);if(he)return he;const pe=B===ui,z=Un?history.state:{};Y&&(V||pe?n.replace(j.fullPath,Ue({scroll:pe&&z&&z.scroll},ce)):n.push(j.fullPath,ce)),l.value=j,W(j,B,Y,pe),U()}let x;function v(){x||(x=n.listen((j,B,Y)=>{if(!K.listening)return;const V=d(j),ce=w(V);if(ce)return void _(Ue(ce,{replace:!0,force:!0}),V).catch(io);c=V;const he=l.value;var pe,z;Un&&(pe=gp(he.fullPath,Y.delta),z=Gl(),Rc.set(pe,z)),A(V,he).catch(ie=>Wr(ie,12)?ie:Wr(ie,2)?(_(Ue(g(ie.to),{force:!0}),V).then(ne=>{Wr(ne,20)&&!Y.delta&&Y.type===Eo.pop&&n.go(-1,!1)}).catch(io),Promise.reject()):(Y.delta&&n.go(-Y.delta,!1),te(ie,V,he))).then(ie=>{(ie=ie||k(V,he,!1))&&(Y.delta&&!Wr(ie,8)?n.go(-Y.delta,!1):Y.type===Eo.pop&&Wr(ie,20)&&n.go(-1,!1)),$(V,he,ie)}).catch(io)}))}let O,M=Ms(),Z=Ms();function te(j,B,Y){U(j);const V=Z.list();return V.length&&V.forEach(ce=>ce(j,B,Y)),Promise.reject(j)}function U(j){return O||(O=!j,v(),M.list().forEach(([B,Y])=>j?Y(j):B()),M.reset()),j}function W(j,B,Y,V){const{scrollBehavior:ce}=t;if(!Un||!ce)return Promise.resolve();const he=!Y&&function(pe){const z=Rc.get(pe);return Rc.delete(pe),z}(gp(j.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Wl().then(()=>ce(j,B,he)).then(pe=>pe&&tS(pe)).catch(pe=>te(pe,j,B))}const re=j=>n.go(j);let H;const oe=new Set,K={currentRoute:l,listening:!0,addRoute:function(j,B){let Y,V;return pb(j)?(Y=e.getRecordMatcher(j),V=B):V=j,e.addRoute(V,Y)},removeRoute:function(j){const B=e.getRecordMatcher(j);B&&e.removeRoute(B)},clearRoutes:e.clearRoutes,hasRoute:function(j){return!!e.getRecordMatcher(j)},getRoutes:function(){return e.getRoutes().map(j=>j.record)},resolve:d,options:t,push:y,replace:function(j){return y(Ue(g(j),{replace:!0}))},go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:function(){return O&&l.value!==ui?Promise.resolve():new Promise((j,B)=>{M.add([j,B])})},install(j){j.component("RouterLink",mS),j.component("RouterView",bS),j.config.globalProperties.$router=this,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>Jn(l)}),Un&&!H&&l.value===ui&&(H=!0,y(n.location).catch(V=>{}));const B={};for(const V in ui)Object.defineProperty(B,V,{get:()=>l.value[V],enumerable:!0});j.provide(Df,this),j.provide(mb,u0(B)),j.provide(Du,l);const Y=j.unmount;oe.add(j),j.unmount=function(){oe.delete(j),oe.size<1&&(c=ui,x&&x(),x=null,l.value=ui,H=!1,O=!1),Y()}}};function q(j){return j.reduce((B,Y)=>B.then(()=>T(Y)),Promise.resolve())}return K}var Lu=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,wS=Object.getOwnPropertyNames,_S=Object.prototype.hasOwnProperty,Wt=(t,e)=>()=>(t&&(e=t(t=0)),e),_e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ms=(t,e)=>{for(var r in e)Lu(t,r,{get:e[r],enumerable:!0})},Ge=t=>((e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of wS(r))!_S.call(e,s)&&s!==i&&Lu(e,s,{get:()=>r[s],enumerable:!(n=vS(r,s))||n.enumerable});return e})(Lu({},"__esModule",{value:!0}),t),ye=Wt(()=>{}),Je={};function Lf(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function xS(){!gn||!ln||(gn=!1,ln.length?Cr=ln.concat(Cr):so=-1,Cr.length&&yb())}function yb(){if(!gn){var t=setTimeout(xS,0);gn=!0;for(var e=Cr.length;e;){for(ln=Cr,Cr=[];++so1)for(var r=1;rph,_debugProcess:()=>dh,_events:()=>Mb,_eventsCount:()=>Ib,_exiting:()=>Ju,_fatalExceptions:()=>uh,_getActiveHandles:()=>Sb,_getActiveRequests:()=>xb,_kill:()=>rh,_linkedBinding:()=>wb,_maxListeners:()=>Ab,_preload_modules:()=>Oh,_rawDebug:()=>Zu,_startProfilerIdleNotifier:()=>gh,_stopProfilerIdleNotifier:()=>mh,_tickCallback:()=>fh,abort:()=>wh,addListener:()=>Cb,allowedNodeEnvironmentFlags:()=>lh,arch:()=>ju,argv:()=>Wu,argv0:()=>Eh,assert:()=>kb,binding:()=>Hu,chdir:()=>Ku,config:()=>eh,cpuUsage:()=>Va,cwd:()=>Yu,debugPort:()=>kh,default:()=>Nf,dlopen:()=>_b,domain:()=>Qu,emit:()=>Nb,emitWarning:()=>zu,env:()=>Fu,execArgv:()=>Uu,execPath:()=>Sh,exit:()=>oh,features:()=>ch,hasUncaughtExceptionCaptureCallback:()=>Eb,hrtime:()=>Ua,kill:()=>sh,listeners:()=>Tb,memoryUsage:()=>nh,moduleLoadList:()=>Xu,nextTick:()=>bb,off:()=>Rb,on:()=>$r,once:()=>Pb,openStdin:()=>ah,pid:()=>_h,platform:()=>Bu,ppid:()=>xh,prependListener:()=>jb,prependOnceListener:()=>Bb,reallyExit:()=>th,release:()=>Gu,removeAllListeners:()=>Lb,removeListener:()=>Db,resourceUsage:()=>ih,setSourceMapsEnabled:()=>Th,setUncaughtExceptionCaptureCallback:()=>hh,stderr:()=>bh,stdin:()=>vh,stdout:()=>yh,title:()=>Nu,umask:()=>qu,uptime:()=>Ob,version:()=>Vu,versions:()=>$u});var Cr,gn,ln,so,Nu,ju,Bu,Fu,Wu,Uu,Vu,$u,zu,Hu,qu,Yu,Ku,Gu,Zu,Xu,Qu,Ju,eh,th,rh,Va,ih,nh,sh,oh,ah,lh,ch,uh,hh,fh,dh,ph,gh,mh,yh,bh,vh,wh,_h,xh,Sh,kh,Eh,Oh,Th,Oi,Lc,$a,Ab,Mb,Ib,Cb,Pb,Rb,Db,Lb,Nb,jb,Bb,Nf,SS=Wt(()=>{ye(),ve(),be(),Cr=[],gn=!1,so=-1,vb.prototype.run=function(){this.fun.apply(null,this.array)},Nu="browser",ju="x64",Bu="browser",Fu={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Wu=["/usr/bin/node"],Uu=[],Vu="v16.8.0",$u={},zu=function(t,e){},Hu=function(t){Lf("binding")},qu=function(t){return 0},Yu=function(){return"/"},Ku=function(t){},Gu={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Zu=At,Xu=[],Qu={},Ju=!1,eh={},th=At,rh=At,ih=Va=function(){return{}},nh=Va,sh=At,oh=At,ah=At,lh={},ch={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},uh=At,hh=At,fh=At,dh=At,ph=At,gh=At,mh=At,yh=void 0,bh=void 0,vh=void 0,wh=At,_h=2,xh=1,Sh="/bin/usr/node",kh=9229,Eh="node",Oh=[],Th=At,(Oi={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0}).now===void 0&&(Lc=Date.now(),Oi.timing&&Oi.timing.navigationStart&&(Lc=Oi.timing.navigationStart),Oi.now=()=>Date.now()-Lc),$a=1e9,Ua.bigint=function(t){var e=Ua(t);return typeof BigInt>"u"?e[0]*$a+e[1]:BigInt(e[0]*$a)+BigInt(e[1])},Nf={version:Vu,versions:$u,arch:ju,platform:Bu,release:Gu,_rawDebug:Zu,moduleLoadList:Xu,binding:Hu,_linkedBinding:wb,_events:Mb={},_eventsCount:Ib=0,_maxListeners:Ab=10,on:$r,addListener:Cb=$r,once:Pb=$r,off:Rb=$r,removeListener:Db=$r,removeAllListeners:Lb=$r,emit:Nb=At,prependListener:jb=$r,prependOnceListener:Bb=$r,listeners:Tb,domain:Qu,_exiting:Ju,config:eh,dlopen:_b,uptime:Ob,_getActiveRequests:xb,_getActiveHandles:Sb,reallyExit:th,_kill:rh,cpuUsage:Va,resourceUsage:ih,memoryUsage:nh,kill:sh,exit:oh,openStdin:ah,allowedNodeEnvironmentFlags:lh,assert:kb,features:ch,_fatalExceptions:uh,setUncaughtExceptionCaptureCallback:hh,hasUncaughtExceptionCaptureCallback:Eb,emitWarning:zu,nextTick:bb,_tickCallback:fh,_debugProcess:dh,_debugEnd:ph,_startProfilerIdleNotifier:gh,_stopProfilerIdleNotifier:mh,stdout:yh,stdin:vh,stderr:bh,abort:wh,umask:qu,chdir:Ku,cwd:Yu,env:Fu,title:Nu,argv:Wu,execArgv:Uu,pid:_h,ppid:xh,execPath:Sh,debugPort:kh,hrtime:Ua,argv0:Eh,_preload_modules:Oh,setSourceMapsEnabled:Th}}),be=Wt(()=>{SS()}),kt={};function kS(){if(Ih)return gi;Ih=!0;let t=function(){if(Ah)return Vn;Ah=!0,Vn.byteLength=function(ue){var de=R(ue),fe=de[0],F=de[1];return 3*(fe+F)/4-F},Vn.toByteArray=function(ue){var de,fe,F=R(ue),Q=F[0],se=F[1],I=new S(function(ge,we,me){return 3*(we+me)/4-me}(0,Q,se)),P=0,ae=se>0?Q-4:Q;for(fe=0;fe>16&255,I[P++]=de>>8&255,I[P++]=255&de;return se===2&&(de=b[ue.charCodeAt(fe)]<<2|b[ue.charCodeAt(fe+1)]>>4,I[P++]=255&de),se===1&&(de=b[ue.charCodeAt(fe)]<<10|b[ue.charCodeAt(fe+1)]<<4|b[ue.charCodeAt(fe+2)]>>2,I[P++]=de>>8&255,I[P++]=255&de),I},Vn.fromByteArray=function(ue){for(var de,fe=ue.length,F=fe%3,Q=[],se=16383,I=0,P=fe-F;IP?P:I+se));return F===1?(de=ue[fe-1],Q.push(m[de>>2]+m[de<<4&63]+"==")):F===2&&(de=(ue[fe-2]<<8)+ue[fe-1],Q.push(m[de>>10]+m[de>>4&63]+m[de<<2&63]+"=")),Q.join("")};for(var m=[],b=[],S=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0;N<64;++N)m[N]=D[N],b[D.charCodeAt(N)]=N;function R(ue){var de=ue.length;if(de%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var fe=ue.indexOf("=");return fe===-1&&(fe=de),[fe,fe===de?0:4-fe%4]}function ee(ue){return m[ue>>18&63]+m[ue>>12&63]+m[ue>>6&63]+m[63&ue]}function le(ue,de,fe){for(var F,Q=[],se=de;se>1,fe=-7,F=S?N-1:0,Q=S?-1:1,se=m[b+F];for(F+=Q,R=se&(1<<-fe)-1,se>>=-fe,fe+=le;fe>0;R=256*R+m[b+F],F+=Q,fe-=8);for(ee=R&(1<<-fe)-1,R>>=-fe,fe+=D;fe>0;ee=256*ee+m[b+F],F+=Q,fe-=8);if(R===0)R=1-de;else{if(R===ue)return ee?NaN:1/0*(se?-1:1);ee+=Math.pow(2,D),R-=de}return(se?-1:1)*ee*Math.pow(2,R-D)},za.write=function(m,b,S,D,N,R){var ee,le,ue,de=8*R-N-1,fe=(1<>1,Q=N===23?Math.pow(2,-24)-Math.pow(2,-77):0,se=D?0:R-1,I=D?1:-1,P=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(le=isNaN(b)?1:0,ee=fe):(ee=Math.floor(Math.log(b)/Math.LN2),b*(ue=Math.pow(2,-ee))<1&&(ee--,ue*=2),(b+=ee+F>=1?Q/ue:Q*Math.pow(2,1-F))*ue>=2&&(ee++,ue/=2),ee+F>=fe?(le=0,ee=fe):ee+F>=1?(le=(b*ue-1)*Math.pow(2,N),ee+=F):(le=b*Math.pow(2,F-1)*Math.pow(2,N),ee=0));N>=8;m[S+se]=255&le,se+=I,le/=256,N-=8);for(ee=ee<0;m[S+se]=255&ee,se+=I,ee/=256,de-=8);m[S+se-I]|=128*P}),za),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;gi.Buffer=s,gi.SlowBuffer=function(m){return+m!=m&&(m=0),s.alloc(+m)},gi.INSPECT_MAX_BYTES=50;let i=2147483647;function n(m){if(m>i)throw new RangeError('The value "'+m+'" is invalid for option "size"');let b=new Uint8Array(m);return Object.setPrototypeOf(b,s.prototype),b}function s(m,b,S){if(typeof m=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(m)}return o(m,b,S)}function o(m,b,S){if(typeof m=="string")return function(R,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);let le=0|h(R,ee),ue=n(le),de=ue.write(R,ee);return de!==le&&(ue=ue.slice(0,de)),ue}(m,b);if(ArrayBuffer.isView(m))return function(R){if(ne(R,Uint8Array)){let ee=new Uint8Array(R);return u(ee.buffer,ee.byteOffset,ee.byteLength)}return c(R)}(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(ne(m,ArrayBuffer)||m&&ne(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ne(m,SharedArrayBuffer)||m&&ne(m.buffer,SharedArrayBuffer)))return u(m,b,S);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let D=m.valueOf&&m.valueOf();if(D!=null&&D!==m)return s.from(D,b,S);let N=function(R){if(s.isBuffer(R)){let ee=0|f(R.length),le=n(ee);return le.length===0||R.copy(le,0,0,ee),le}if(R.length!==void 0)return typeof R.length!="number"||L(R.length)?n(0):c(R);if(R.type==="Buffer"&&Array.isArray(R.data))return c(R.data)}(m);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return s.from(m[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}function a(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function l(m){return a(m),n(m<0?0:0|f(m))}function c(m){let b=m.length<0?0:0|f(m.length),S=n(b);for(let D=0;D=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|m}function h(m,b){if(s.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||ne(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);let S=m.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&S===0)return 0;let N=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return pe(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*S;case"hex":return S>>>1;case"base64":return z(m).length;default:if(N)return D?-1:pe(m).length;b=(""+b).toLowerCase(),N=!0}}function d(m,b,S){let D=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0)<=(b>>>=0))return"";for(m||(m="utf8");;)switch(m){case"hex":return M(this,b,S);case"utf8":case"utf-8":return k(this,b,S);case"ascii":return v(this,b,S);case"latin1":case"binary":return O(this,b,S);case"base64":return $(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(D)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),D=!0}}function g(m,b,S){let D=m[b];m[b]=m[S],m[S]=D}function p(m,b,S,D,N){if(m.length===0)return-1;if(typeof S=="string"?(D=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),L(S=+S)&&(S=N?0:m.length-1),S<0&&(S=m.length+S),S>=m.length){if(N)return-1;S=m.length-1}else if(S<0){if(!N)return-1;S=0}if(typeof b=="string"&&(b=s.from(b,D)),s.isBuffer(b))return b.length===0?-1:y(m,b,S,D,N);if(typeof b=="number")return b&=255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(m,b,S):Uint8Array.prototype.lastIndexOf.call(m,b,S):y(m,[b],S,D,N);throw new TypeError("val must be string, number or Buffer")}function y(m,b,S,D,N){let R,ee=1,le=m.length,ue=b.length;if(D!==void 0&&((D=String(D).toLowerCase())==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(m.length<2||b.length<2)return-1;ee=2,le/=2,ue/=2,S/=2}function de(fe,F){return ee===1?fe[F]:fe.readUInt16BE(F*ee)}if(N){let fe=-1;for(R=S;Rle&&(S=le-ue),R=S;R>=0;R--){let fe=!0;for(let F=0;FN&&(D=N):D=N;let R,ee=b.length;for(D>ee/2&&(D=ee/2),R=0;R>8,ue=ee%256,de.push(ue),de.push(le);return de}(b,m.length-S),m,S,D)}function $(m,b,S){return b===0&&S===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(b,S))}function k(m,b,S){S=Math.min(m.length,S);let D=[],N=b;for(;N239?4:R>223?3:R>191?2:1;if(N+le<=S){let ue,de,fe,F;switch(le){case 1:R<128&&(ee=R);break;case 2:ue=m[N+1],(192&ue)==128&&(F=(31&R)<<6|63&ue,F>127&&(ee=F));break;case 3:ue=m[N+1],de=m[N+2],(192&ue)==128&&(192&de)==128&&(F=(15&R)<<12|(63&ue)<<6|63&de,F>2047&&(F<55296||F>57343)&&(ee=F));break;case 4:ue=m[N+1],de=m[N+2],fe=m[N+3],(192&ue)==128&&(192&de)==128&&(192&fe)==128&&(F=(15&R)<<18|(63&ue)<<12|(63&de)<<6|63&fe,F>65535&&F<1114112&&(ee=F))}}ee===null?(ee=65533,le=1):ee>65535&&(ee-=65536,D.push(ee>>>10&1023|55296),ee=56320|1023&ee),D.push(ee),N+=le}return function(R){let ee=R.length;if(ee<=x)return String.fromCharCode.apply(String,R);let le="",ue=0;for(;ueD.length?(s.isBuffer(R)||(R=s.from(R)),R.copy(D,N)):Uint8Array.prototype.set.call(D,R,N);else{if(!s.isBuffer(R))throw new TypeError('"list" argument must be an Array of Buffers');R.copy(D,N)}N+=R.length}return D},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let m=this.length;if(m%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;bb&&(m+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(m,b,S,D,N){if(ne(m,Uint8Array)&&(m=s.from(m,m.offset,m.byteLength)),!s.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(b===void 0&&(b=0),S===void 0&&(S=m?m.length:0),D===void 0&&(D=0),N===void 0&&(N=this.length),b<0||S>m.length||D<0||N>this.length)throw new RangeError("out of range index");if(D>=N&&b>=S)return 0;if(D>=N)return-1;if(b>=S)return 1;if(this===m)return 0;let R=(N>>>=0)-(D>>>=0),ee=(S>>>=0)-(b>>>=0),le=Math.min(R,ee),ue=this.slice(D,N),de=m.slice(b,S);for(let fe=0;fe>>=0,isFinite(S)?(S>>>=0,D===void 0&&(D="utf8")):(D=S,S=void 0)}let N=this.length-b;if((S===void 0||S>N)&&(S=N),m.length>0&&(S<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let R=!1;for(;;)switch(D){case"hex":return w(this,m,b,S);case"utf8":case"utf-8":return _(this,m,b,S);case"ascii":case"latin1":case"binary":return E(this,m,b,S);case"base64":return T(this,m,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,m,b,S);default:if(R)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),R=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let x=4096;function v(m,b,S){let D="";S=Math.min(m.length,S);for(let N=b;ND)&&(S=D);let N="";for(let R=b;RS)throw new RangeError("Trying to access beyond buffer length")}function U(m,b,S,D,N,R){if(!s.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>N||bm.length)throw new RangeError("Index out of range")}function W(m,b,S,D,N){Y(b,D,N,m,S,7);let R=Number(b&BigInt(4294967295));m[S++]=R,R>>=8,m[S++]=R,R>>=8,m[S++]=R,R>>=8,m[S++]=R;let ee=Number(b>>BigInt(32)&BigInt(4294967295));return m[S++]=ee,ee>>=8,m[S++]=ee,ee>>=8,m[S++]=ee,ee>>=8,m[S++]=ee,S}function re(m,b,S,D,N){Y(b,D,N,m,S,7);let R=Number(b&BigInt(4294967295));m[S+7]=R,R>>=8,m[S+6]=R,R>>=8,m[S+5]=R,R>>=8,m[S+4]=R;let ee=Number(b>>BigInt(32)&BigInt(4294967295));return m[S+3]=ee,ee>>=8,m[S+2]=ee,ee>>=8,m[S+1]=ee,ee>>=8,m[S]=ee,S+8}function H(m,b,S,D,N,R){if(S+D>m.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(m,b,S,D,N){return b=+b,S>>>=0,N||H(m,0,S,4),e.write(m,b,S,D,23,4),S+4}function K(m,b,S,D,N){return b=+b,S>>>=0,N||H(m,0,S,8),e.write(m,b,S,D,52,8),S+8}s.prototype.slice=function(m,b){let S=this.length;(m=~~m)<0?(m+=S)<0&&(m=0):m>S&&(m=S),(b=b===void 0?S:~~b)<0?(b+=S)<0&&(b=0):b>S&&(b=S),b>>=0,b>>>=0,S||te(m,b,this.length);let D=this[m],N=1,R=0;for(;++R>>=0,b>>>=0,S||te(m,b,this.length);let D=this[m+--b],N=1;for(;b>0&&(N*=256);)D+=this[m+--b]*N;return D},s.prototype.readUint8=s.prototype.readUInt8=function(m,b){return m>>>=0,b||te(m,1,this.length),this[m]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(m,b){return m>>>=0,b||te(m,2,this.length),this[m]|this[m+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(m,b){return m>>>=0,b||te(m,2,this.length),this[m]<<8|this[m+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(m,b){return m>>>=0,b||te(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+16777216*this[m+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(m,b){return m>>>=0,b||te(m,4,this.length),16777216*this[m]+(this[m+1]<<16|this[m+2]<<8|this[m+3])},s.prototype.readBigUInt64LE=C(function(m){V(m>>>=0,"offset");let b=this[m],S=this[m+7];(b===void 0||S===void 0)&&ce(m,this.length-8);let D=b+256*this[++m]+65536*this[++m]+this[++m]*2**24,N=this[++m]+256*this[++m]+65536*this[++m]+S*2**24;return BigInt(D)+(BigInt(N)<>>=0,"offset");let b=this[m],S=this[m+7];(b===void 0||S===void 0)&&ce(m,this.length-8);let D=b*2**24+65536*this[++m]+256*this[++m]+this[++m],N=this[++m]*2**24+65536*this[++m]+256*this[++m]+S;return(BigInt(D)<>>=0,b>>>=0,S||te(m,b,this.length);let D=this[m],N=1,R=0;for(;++R=N&&(D-=Math.pow(2,8*b)),D},s.prototype.readIntBE=function(m,b,S){m>>>=0,b>>>=0,S||te(m,b,this.length);let D=b,N=1,R=this[m+--D];for(;D>0&&(N*=256);)R+=this[m+--D]*N;return N*=128,R>=N&&(R-=Math.pow(2,8*b)),R},s.prototype.readInt8=function(m,b){return m>>>=0,b||te(m,1,this.length),128&this[m]?-1*(255-this[m]+1):this[m]},s.prototype.readInt16LE=function(m,b){m>>>=0,b||te(m,2,this.length);let S=this[m]|this[m+1]<<8;return 32768&S?4294901760|S:S},s.prototype.readInt16BE=function(m,b){m>>>=0,b||te(m,2,this.length);let S=this[m+1]|this[m]<<8;return 32768&S?4294901760|S:S},s.prototype.readInt32LE=function(m,b){return m>>>=0,b||te(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},s.prototype.readInt32BE=function(m,b){return m>>>=0,b||te(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},s.prototype.readBigInt64LE=C(function(m){V(m>>>=0,"offset");let b=this[m],S=this[m+7];(b===void 0||S===void 0)&&ce(m,this.length-8);let D=this[m+4]+256*this[m+5]+65536*this[m+6]+(S<<24);return(BigInt(D)<>>=0,"offset");let b=this[m],S=this[m+7];(b===void 0||S===void 0)&&ce(m,this.length-8);let D=(b<<24)+65536*this[++m]+256*this[++m]+this[++m];return(BigInt(D)<>>=0,b||te(m,4,this.length),e.read(this,m,!0,23,4)},s.prototype.readFloatBE=function(m,b){return m>>>=0,b||te(m,4,this.length),e.read(this,m,!1,23,4)},s.prototype.readDoubleLE=function(m,b){return m>>>=0,b||te(m,8,this.length),e.read(this,m,!0,52,8)},s.prototype.readDoubleBE=function(m,b){return m>>>=0,b||te(m,8,this.length),e.read(this,m,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(m,b,S,D){m=+m,b>>>=0,S>>>=0,!D&&U(this,m,b,S,Math.pow(2,8*S)-1,0);let N=1,R=0;for(this[b]=255&m;++R>>=0,S>>>=0,!D&&U(this,m,b,S,Math.pow(2,8*S)-1,0);let N=S-1,R=1;for(this[b+N]=255&m;--N>=0&&(R*=256);)this[b+N]=m/R&255;return b+S},s.prototype.writeUint8=s.prototype.writeUInt8=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,1,255,0),this[b]=255&m,b+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,2,65535,0),this[b]=255&m,this[b+1]=m>>>8,b+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,2,65535,0),this[b]=m>>>8,this[b+1]=255&m,b+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,4,4294967295,0),this[b+3]=m>>>24,this[b+2]=m>>>16,this[b+1]=m>>>8,this[b]=255&m,b+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,4,4294967295,0),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=255&m,b+4},s.prototype.writeBigUInt64LE=C(function(m,b=0){return W(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=C(function(m,b=0){return re(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(m,b,S,D){if(m=+m,b>>>=0,!D){let le=Math.pow(2,8*S-1);U(this,m,b,S,le-1,-le)}let N=0,R=1,ee=0;for(this[b]=255&m;++N>>=0,!D){let le=Math.pow(2,8*S-1);U(this,m,b,S,le-1,-le)}let N=S-1,R=1,ee=0;for(this[b+N]=255&m;--N>=0&&(R*=256);)m<0&&ee===0&&this[b+N+1]!==0&&(ee=1),this[b+N]=(m/R|0)-ee&255;return b+S},s.prototype.writeInt8=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,1,127,-128),m<0&&(m=255+m+1),this[b]=255&m,b+1},s.prototype.writeInt16LE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,2,32767,-32768),this[b]=255&m,this[b+1]=m>>>8,b+2},s.prototype.writeInt16BE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,2,32767,-32768),this[b]=m>>>8,this[b+1]=255&m,b+2},s.prototype.writeInt32LE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,4,2147483647,-2147483648),this[b]=255&m,this[b+1]=m>>>8,this[b+2]=m>>>16,this[b+3]=m>>>24,b+4},s.prototype.writeInt32BE=function(m,b,S){return m=+m,b>>>=0,S||U(this,m,b,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=255&m,b+4},s.prototype.writeBigInt64LE=C(function(m,b=0){return W(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=C(function(m,b=0){return re(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(m,b,S){return oe(this,m,b,!0,S)},s.prototype.writeFloatBE=function(m,b,S){return oe(this,m,b,!1,S)},s.prototype.writeDoubleLE=function(m,b,S){return K(this,m,b,!0,S)},s.prototype.writeDoubleBE=function(m,b,S){return K(this,m,b,!1,S)},s.prototype.copy=function(m,b,S,D){if(!s.isBuffer(m))throw new TypeError("argument should be a Buffer");if(S||(S=0),!D&&D!==0&&(D=this.length),b>=m.length&&(b=m.length),b||(b=0),D>0&&D=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),m.length-b>>=0,S=S===void 0?this.length:S>>>0,m||(m=0),typeof m=="number")for(N=b;N=D+4;S-=3)b=`_${m.slice(S-3,S)}${b}`;return`${m.slice(0,S)}${b}`}function Y(m,b,S,D,N,R){if(m>S||m= 0${le} and < 2${le} ** ${8*(R+1)}${le}`:`>= -(2${le} ** ${8*(R+1)-1}${le}) and < 2 ** ${8*(R+1)-1}${le}`,new q.ERR_OUT_OF_RANGE("value",ee,m)}(function(ee,le,ue){V(le,"offset"),(ee[le]===void 0||ee[le+ue]===void 0)&&ce(le,ee.length-(ue+1))})(D,N,R)}function V(m,b){if(typeof m!="number")throw new q.ERR_INVALID_ARG_TYPE(b,"number",m)}function ce(m,b,S){throw Math.floor(m)!==m?(V(m,S),new q.ERR_OUT_OF_RANGE("offset","an integer",m)):b<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,m)}j("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(m,b){return`The "${m}" argument must be of type number. Received type ${typeof b}`},TypeError),j("ERR_OUT_OF_RANGE",function(m,b,S){let D=`The value of "${m}" is out of range.`,N=S;return Number.isInteger(S)&&Math.abs(S)>2**32?N=B(String(S)):typeof S=="bigint"&&(N=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(N=B(N)),N+="n"),D+=` It must be ${b}. Received ${N}`,D},RangeError);let he=/[^+/0-9A-Za-z-_]/g;function pe(m,b){b=b||1/0;let S,D=m.length,N=null,R=[];for(let ee=0;ee55295&&S<57344){if(!N){if(S>56319){(b-=3)>-1&&R.push(239,191,189);continue}if(ee+1===D){(b-=3)>-1&&R.push(239,191,189);continue}N=S;continue}if(S<56320){(b-=3)>-1&&R.push(239,191,189),N=S;continue}S=65536+(N-55296<<10|S-56320)}else N&&(b-=3)>-1&&R.push(239,191,189);if(N=null,S<128){if((b-=1)<0)break;R.push(S)}else if(S<2048){if((b-=2)<0)break;R.push(S>>6|192,63&S|128)}else if(S<65536){if((b-=3)<0)break;R.push(S>>12|224,S>>6&63|128,63&S|128)}else{if(!(S<1114112))throw new Error("Invalid code point");if((b-=4)<0)break;R.push(S>>18|240,S>>12&63|128,S>>6&63|128,63&S|128)}}return R}function z(m){return t.toByteArray(function(b){if((b=(b=b.split("=")[0]).trim().replace(he,"")).length<2)return"";for(;b.length%4!=0;)b+="=";return b}(m))}function ie(m,b,S,D){let N;for(N=0;N=b.length||N>=m.length);++N)b[N+S]=m[N];return N}function ne(m,b){return m instanceof b||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===b.name}function L(m){return m!=m}let G=function(){let m="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){let D=16*S;for(let N=0;N<16;++N)b[D+N]=m[S]+m[N]}return b}();function C(m){return typeof BigInt>"u"?J:m}function J(){throw new Error("BigInt not supported")}return gi}ms(kt,{Buffer:()=>pl,INSPECT_MAX_BYTES:()=>Fb,default:()=>mi,kMaxLength:()=>Wb});var Vn,Ah,za,Mh,gi,Ih,mi,pl,Fb,Wb,Et=Wt(()=>{ye(),ve(),be(),Vn={},Ah=!1,za={},Mh=!1,gi={},Ih=!1,(mi=kS()).Buffer,mi.SlowBuffer,mi.INSPECT_MAX_BYTES,mi.kMaxLength,pl=mi.Buffer,Fb=mi.INSPECT_MAX_BYTES,Wb=mi.kMaxLength}),ve=Wt(()=>{Et()}),ES=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,r){return!(r===0||r>this.max)&&(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}}),ct=_e((t,e)=>{ye(),ve(),be();var r=class extends Error{constructor(i){if(!Array.isArray(i))throw new TypeError("Expected input to be an Array, got "+typeof i);let n="";for(let s=0;sArray.isArray(i),ArrayPrototypeIncludes:(i,n)=>i.includes(n),ArrayPrototypeIndexOf:(i,n)=>i.indexOf(n),ArrayPrototypeJoin:(i,n)=>i.join(n),ArrayPrototypeMap:(i,n)=>i.map(n),ArrayPrototypePop:(i,n)=>i.pop(n),ArrayPrototypePush:(i,n)=>i.push(n),ArrayPrototypeSlice:(i,n,s)=>i.slice(n,s),Error,FunctionPrototypeCall:(i,n,...s)=>i.call(n,...s),FunctionPrototypeSymbolHasInstance:(i,n)=>Function.prototype[Symbol.hasInstance].call(i,n),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(i,n)=>Object.defineProperties(i,n),ObjectDefineProperty:(i,n,s)=>Object.defineProperty(i,n,s),ObjectGetOwnPropertyDescriptor:(i,n)=>Object.getOwnPropertyDescriptor(i,n),ObjectKeys:i=>Object.keys(i),ObjectSetPrototypeOf:(i,n)=>Object.setPrototypeOf(i,n),Promise,PromisePrototypeCatch:(i,n)=>i.catch(n),PromisePrototypeThen:(i,n,s)=>i.then(n,s),PromiseReject:i=>Promise.reject(i),PromiseResolve:i=>Promise.resolve(i),ReflectApply:Reflect.apply,RegExpPrototypeTest:(i,n)=>i.test(n),SafeSet:Set,String,StringPrototypeSlice:(i,n,s)=>i.slice(n,s),StringPrototypeToLowerCase:i=>i.toLowerCase(),StringPrototypeToUpperCase:i=>i.toUpperCase(),StringPrototypeTrim:i=>i.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(i,n,s)=>i.set(n,s),Boolean,Uint8Array}}),Ub=_e((t,e)=>{ye(),ve(),be(),e.exports={format:(r,...i)=>r.replace(/%([sdifj])/g,function(...[n,s]){let o=i.shift();return s==="f"?o.toFixed(6):s==="j"?JSON.stringify(o):s==="s"&&typeof o=="object"?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()}),inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"'))return`"${r}"`;if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}return`'${r}'`;case"number":return isNaN(r)?"NaN":Object.is(r,-0)?String(r):r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}}),Ut=_e((t,e)=>{ye(),ve(),be();var{format:r,inspect:i}=Ub(),{AggregateError:n}=ct(),s=globalThis.AggregateError||n,o=Symbol("kIsNodeError"),a=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c={};function u(p,y){if(!p)throw new c.ERR_INTERNAL_ASSERTION(y)}function f(p){let y="",w=p.length,_=p[0]==="-"?1:0;for(;w>=_+4;w-=3)y=`_${p.slice(w-3,w)}${y}`;return`${p.slice(0,w)}${y}`}function h(p,y,w){w||(w=Error);class _ extends w{constructor(...T){super(function(A,$,k){if(typeof $=="function")return u($.length<=k.length,`Code: ${A}; The provided arguments length (${k.length}) does not match the required ones (${$.length}).`),$(...k);let x=($.match(/%[dfijoOs]/g)||[]).length;return u(x===k.length,`Code: ${A}; The provided arguments length (${k.length}) does not match the required ones (${x}).`),k.length===0?$:r($,...k)}(p,y,T))}toString(){return`${this.name} [${p}]: ${this.message}`}}Object.defineProperties(_.prototype,{name:{value:w.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${p}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),_.prototype.code=p,_.prototype[o]=!0,c[p]=_}function d(p){let y="__node_internal_"+p.name;return Object.defineProperty(p,"name",{value:y}),p}var g=class extends Error{constructor(p="The operation was aborted",y=void 0){if(y!==void 0&&typeof y!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",y);super(p,y),this.code="ABORT_ERR",this.name="AbortError"}};h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",(p,y,w)=>{u(typeof p=="string","'name' must be a string"),Array.isArray(y)||(y=[y]);let _="The ";p.endsWith(" argument")?_+=`${p} `:_+=`"${p}" ${p.includes(".")?"property":"argument"} `,_+="must be ";let E=[],T=[],A=[];for(let k of y)u(typeof k=="string","All expected entries have to be of type string"),a.includes(k)?E.push(k.toLowerCase()):l.test(k)?T.push(k):(u(k!=="object",'The value "object" should be written as "Object"'),A.push(k));if(T.length>0){let k=E.indexOf("object");k!==-1&&(E.splice(E,k,1),T.push("Object"))}if(E.length>0){switch(E.length){case 1:_+=`of type ${E[0]}`;break;case 2:_+=`one of type ${E[0]} or ${E[1]}`;break;default:{let k=E.pop();_+=`one of type ${E.join(", ")}, or ${k}`}}(T.length>0||A.length>0)&&(_+=" or ")}if(T.length>0){switch(T.length){case 1:_+=`an instance of ${T[0]}`;break;case 2:_+=`an instance of ${T[0]} or ${T[1]}`;break;default:{let k=T.pop();_+=`an instance of ${T.join(", ")}, or ${k}`}}A.length>0&&(_+=" or ")}switch(A.length){case 0:break;case 1:A[0].toLowerCase()!==A[0]&&(_+="an "),_+=`${A[0]}`;break;case 2:_+=`one of ${A[0]} or ${A[1]}`;break;default:{let k=A.pop();_+=`one of ${A.join(", ")}, or ${k}`}}if(w==null)_+=`. Received ${w}`;else if(typeof w=="function"&&w.name)_+=`. Received function ${w.name}`;else if(typeof w=="object"){var $;($=w.constructor)!==null&&$!==void 0&&$.name?_+=`. Received an instance of ${w.constructor.name}`:_+=`. Received ${i(w,{depth:-1})}`}else{let k=i(w,{colors:!1});k.length>25&&(k=`${k.slice(0,25)}...`),_+=`. Received type ${typeof w} (${k})`}return _},TypeError),h("ERR_INVALID_ARG_VALUE",(p,y,w="is invalid")=>{let _=i(y);return _.length>128&&(_=_.slice(0,128)+"..."),`The ${p.includes(".")?"property":"argument"} '${p}' ${w}. Received ${_}`},TypeError),h("ERR_INVALID_RETURN_VALUE",(p,y,w)=>{var _;return`Expected ${p} to be returned from the "${y}" function but got ${w!=null&&(_=w.constructor)!==null&&_!==void 0&&_.name?`instance of ${w.constructor.name}`:"type "+typeof w}.`},TypeError),h("ERR_MISSING_ARGS",(...p)=>{u(p.length>0,"At least one arg needs to be specified");let y,w=p.length;switch(p=(Array.isArray(p)?p:[p]).map(_=>`"${_}"`).join(" or "),w){case 1:y+=`The ${p[0]} argument`;break;case 2:y+=`The ${p[0]} and ${p[1]} arguments`;break;default:{let _=p.pop();y+=`The ${p.join(", ")}, and ${_} arguments`}}return`${y} must be specified`},TypeError),h("ERR_OUT_OF_RANGE",(p,y,w)=>{let _;if(u(y,'Missing "range" argument'),Number.isInteger(w)&&Math.abs(w)>2**32)_=f(String(w));else if(typeof w=="bigint"){_=String(w);let E=BigInt(2)**BigInt(32);(w>E||w<-E)&&(_=f(_)),_+="n"}else _=i(w);return`The value of "${p}" is out of range. It must be ${y}. Received ${_}`},RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:g,aggregateTwoErrors:d(function(p,y){if(p&&y&&p!==y){if(Array.isArray(y.errors))return y.errors.push(p),y;let w=new s([y,p],y.message);return w.code=y.code,w}return p||y}),hideStackFrames:d,codes:c}}),Oo=_e((t,e)=>{ye(),ve(),be();var{AbortController:r,AbortSignal:i}=typeof self<"u"?self:typeof window<"u"?window:void 0;e.exports=r,e.exports.AbortSignal=i,e.exports.default=r});function Ye(){Ye.init.call(this)}function Ha(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function Vb(t){return t._maxListeners===void 0?Ye.defaultMaxListeners:t._maxListeners}function Pp(t,e,r,i){var n,s,o;if(Ha(r),(s=t._events)===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),o===void 0)o=s[e]=r,++t._eventsCount;else if(typeof o=="function"?o=s[e]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),(n=Vb(t))>0&&o.length>n&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length}return t}function OS(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Rp(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=OS.bind(i);return n.listener=r,i.wrapFn=n,n}function Dp(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?function(s){for(var o=new Array(s.length),a=0;a{ye(),ve(),be(),Ki=typeof Reflect=="object"?Reflect:null,Nc=Ki&&typeof Ki.apply=="function"?Ki.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},jp=Ki&&typeof Ki.ownKeys=="function"?Ki.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},jc=Number.isNaN||function(t){return t!=t},Np=Ye,Ye.EventEmitter=Ye,Ye.prototype._events=void 0,Ye.prototype._eventsCount=0,Ye.prototype._maxListeners=void 0,Bc=10,Object.defineProperty(Ye,"defaultMaxListeners",{enumerable:!0,get:function(){return Bc},set:function(t){if(typeof t!="number"||t<0||jc(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Bc=t}}),Ye.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ye.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||jc(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},Ye.prototype.getMaxListeners=function(){return Vb(this)},Ye.prototype.emit=function(t){for(var e=[],r=1;r0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=n[t];if(a===void 0)return!1;if(typeof a=="function")Nc(a,this,e);else{var l=a.length,c=$b(a,l);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){o=r[s].listener,n=s;break}if(n<0)return this;n===0?r.shift():function(a,l){for(;l+1=0;i--)this.removeListener(t,e[i]);return this},Ye.prototype.listeners=function(t){return Dp(this,t,!0)},Ye.prototype.rawListeners=function(t){return Dp(this,t,!1)},Ye.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Lp.call(t,e)},Ye.prototype.listenerCount=Lp,Ye.prototype.eventNames=function(){return this._eventsCount>0?jp(this._events):[]},(rr=Np).EventEmitter,rr.defaultMaxListeners,rr.init,rr.listenerCount,rr.EventEmitter,rr.defaultMaxListeners,rr.init,rr.listenerCount}),Ui={};ms(Ui,{EventEmitter:()=>zb,default:()=>rr,defaultMaxListeners:()=>Hb,init:()=>qb,listenerCount:()=>Yb,on:()=>Kb,once:()=>Gb});var zb,Hb,qb,Yb,Kb,Gb,En=Wt(()=>{ye(),ve(),be(),Bp(),Bp(),rr.once=function(t,e){return new Promise((r,i)=>{function n(...o){s!==void 0&&t.removeListener("error",s),r(o)}let s;e!=="error"&&(s=o=>{t.removeListener(name,n),i(o)},t.once("error",s)),t.once(e,n)})},rr.on=function(t,e){let r=[],i=[],n=null,s=!1,o={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(n){let u=Promise.reject(n);return n=null,u}return s?createIterResult(void 0,!0):new Promise((u,f)=>i.push({resolve:u,reject:f}))},async return(){t.removeListener(e,a),t.removeListener("error",l),s=!0;for(let c of i)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){n=c,t.removeListener(e,a),t.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return t.on(e,a),t.on("error",l),o;function a(...c){let u=i.shift();u?u.resolve(createIterResult(c,!1)):r.push(c)}function l(c){s=!0;let u=i.shift();u?u.reject(c):n=c,o.return()}},{EventEmitter:zb,defaultMaxListeners:Hb,init:qb,listenerCount:Yb,on:Kb,once:Gb}=rr}),qt=_e((t,e)=>{ye(),ve(),be();var r=(Et(),Ge(kt)),{format:i,inspect:n}=Ub(),{codes:{ERR_INVALID_ARG_TYPE:s}}=Ut(),{kResistStopPropagation:o,AggregateError:a,SymbolDispose:l}=ct(),c=globalThis.AbortSignal||Oo().AbortSignal,u=globalThis.AbortController||Oo().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,h=globalThis.Blob||r.Blob,d=typeof h<"u"?function(p){return p instanceof h}:function(p){return!1},g=(p,y)=>{if(p!==void 0&&(p===null||typeof p!="object"||!("aborted"in p)))throw new s(y,"AbortSignal",p)};e.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(p){let y=!1;return function(...w){y||(y=!0,p.apply(this,w))}},createDeferredPromise:function(){let p,y;return{promise:new Promise((w,_)=>{p=w,y=_}),resolve:p,reject:y}},promisify:p=>new Promise((y,w)=>{p((_,...E)=>_?w(_):y(...E))}),debuglog:()=>function(){},format:i,inspect:n,types:{isAsyncFunction:p=>p instanceof f,isArrayBufferView:p=>ArrayBuffer.isView(p)},isBlob:d,deprecate:(p,y)=>p,addAbortListener:(En(),Ge(Ui)).addAbortListener||function(p,y){if(p===void 0)throw new s("signal","AbortSignal",p);let w;return g(p,"signal"),((_,E)=>{if(typeof _!="function")throw new s(E,"Function",_)})(y,"listener"),p.aborted?queueMicrotask(()=>y()):(p.addEventListener("abort",y,{__proto__:null,once:!0,[o]:!0}),w=()=>{p.removeEventListener("abort",y)}),{__proto__:null,[l](){var _;(_=w)===null||_===void 0||_()}}},AbortSignalAny:c.any||function(p){if(p.length===1)return p[0];let y=new u,w=()=>y.abort();return p.forEach(_=>{g(_,"signals"),_.addEventListener("abort",w,{once:!0})}),y.signal.addEventListener("abort",()=>{p.forEach(_=>_.removeEventListener("abort",w))},{once:!0}),y.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Fo=_e((t,e)=>{ye(),ve(),be();var{ArrayIsArray:r,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:n,ArrayPrototypeMap:s,NumberIsInteger:o,NumberIsNaN:a,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:h,String:d,StringPrototypeToUpperCase:g,StringPrototypeTrim:p}=ct(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:E,ERR_OUT_OF_RANGE:T,ERR_UNKNOWN_SIGNAL:A}}=Ut(),{normalizeEncoding:$}=qt(),{isAsyncFunction:k,isArrayBufferView:x}=qt().types,v={},O=/^[0-7]+$/,M=y((z,ie,ne=c,L=l)=>{if(typeof z!="number")throw new _(ie,"number",z);if(!o(z))throw new T(ie,"an integer",z);if(zL)throw new T(ie,`>= ${ne} && <= ${L}`,z)}),Z=y((z,ie,ne=-2147483648,L=2147483647)=>{if(typeof z!="number")throw new _(ie,"number",z);if(!o(z))throw new T(ie,"an integer",z);if(zL)throw new T(ie,`>= ${ne} && <= ${L}`,z)}),te=y((z,ie,ne=!1)=>{if(typeof z!="number")throw new _(ie,"number",z);if(!o(z))throw new T(ie,"an integer",z);let L=ne?1:0,G=4294967295;if(zG)throw new T(ie,`>= ${L} && <= ${G}`,z)});function U(z,ie){if(typeof z!="string")throw new _(ie,"string",z)}var W=y((z,ie,ne)=>{if(!i(ne,z)){let L="must be one of: "+n(s(ne,G=>typeof G=="string"?`'${G}'`:d(G)),", ");throw new E(ie,z,L)}});function re(z,ie){if(typeof z!="boolean")throw new _(ie,"boolean",z)}function H(z,ie,ne){return z!=null&&f(z,ie)?z[ie]:ne}var oe=y((z,ie,ne=null)=>{let L=H(ne,"allowArray",!1),G=H(ne,"allowFunction",!1);if(!H(ne,"nullable",!1)&&z===null||!L&&r(z)||typeof z!="object"&&(!G||typeof z!="function"))throw new _(ie,"Object",z)}),K=y((z,ie)=>{if(z!=null&&typeof z!="object"&&typeof z!="function")throw new _(ie,"a dictionary",z)}),q=y((z,ie,ne=0)=>{if(!r(z))throw new _(ie,"Array",z);if(z.length{if(!x(z))throw new _(ie,["Buffer","TypedArray","DataView"],z)}),B=y((z,ie)=>{if(z!==void 0&&(z===null||typeof z!="object"||!("aborted"in z)))throw new _(ie,"AbortSignal",z)}),Y=y((z,ie)=>{if(typeof z!="function")throw new _(ie,"Function",z)}),V=y((z,ie)=>{if(typeof z!="function"||k(z))throw new _(ie,"Function",z)}),ce=y((z,ie)=>{if(z!==void 0)throw new _(ie,"undefined",z)}),he=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function pe(z,ie){if(typeof z>"u"||!h(he,z))throw new E(ie,z,'must be an array or string of format "; rel=preload; as=style"')}e.exports={isInt32:function(z){return z===(0|z)},isUint32:function(z){return z===z>>>0},parseFileMode:function(z,ie,ne){if(typeof z>"u"&&(z=ne),typeof z=="string"){if(h(O,z)===null)throw new E(ie,z,"must be a 32-bit unsigned integer or an octal string");z=u(z,8)}return te(z,ie),z},validateArray:q,validateStringArray:function(z,ie){q(z,ie);for(let ne=0;neL||(ne!=null||L!=null)&&a(z))throw new T(ie,`${ne!=null?`>= ${ne}`:""}${ne!=null&&L!=null?" && ":""}${L!=null?`<= ${L}`:""}`,z)},validateObject:oe,validateOneOf:W,validatePlainFunction:V,validatePort:function(z,ie="Port",ne=!0){if(typeof z!="number"&&typeof z!="string"||typeof z=="string"&&p(z).length===0||+z!=+z>>>0||z>65535||z===0&&!ne)throw new w(ie,z,ne);return 0|z},validateSignalName:function(z,ie="signal"){if(U(z,ie),v[z]===void 0)throw v[g(z)]!==void 0?new A(z+" (signals must use all capital letters)"):new A(z)},validateString:U,validateUint32:te,validateUndefined:ce,validateUnion:function(z,ie,ne){if(!i(ne,z))throw new _(ie,`('${n(ne,"|")}')`,z)},validateAbortSignal:B,validateLinkHeaderValue:function(z){if(typeof z=="string")return pe(z,"hints"),z;if(r(z)){let ie=z.length,ne="";if(ie===0)return ne;for(let L=0;L; rel=preload; as=style"')}}}),On=_e((t,e)=>{ye(),ve(),be();var r,i,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(y){if(r===setTimeout)return setTimeout(y,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(y,0);try{return r(y,0)}catch{try{return r.call(null,y,0)}catch{return r.call(this,y,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:s}catch{r=s}try{i=typeof clearTimeout=="function"?clearTimeout:o}catch{i=o}})();var l,c=[],u=!1,f=-1;function h(){!u||!l||(u=!1,l.length?c=l.concat(c):f=-1,c.length&&d())}function d(){if(!u){var y=a(h);u=!0;for(var w=c.length;w;){for(l=c,c=[];++f1)for(var _=1;_{ye(),ve(),be();var{SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:n}=ct(),s=n("nodejs.stream.destroyed"),o=n("nodejs.stream.errored"),a=n("nodejs.stream.readable"),l=n("nodejs.stream.writable"),c=n("nodejs.stream.disturbed"),u=n("nodejs.webstream.isClosedPromise"),f=n("nodejs.webstream.controllerErrorFunction");function h(v,O=!1){var M;return!(!v||typeof v.pipe!="function"||typeof v.on!="function"||O&&(typeof v.pause!="function"||typeof v.resume!="function")||v._writableState&&((M=v._readableState)===null||M===void 0?void 0:M.readable)===!1||v._writableState&&!v._readableState)}function d(v){var O;return!(!v||typeof v.write!="function"||typeof v.on!="function"||v._readableState&&((O=v._writableState)===null||O===void 0?void 0:O.writable)===!1)}function g(v){return v&&(v._readableState||v._writableState||typeof v.write=="function"&&typeof v.on=="function"||typeof v.pipe=="function"&&typeof v.on=="function")}function p(v){return!(!v||g(v)||typeof v.pipeThrough!="function"||typeof v.getReader!="function"||typeof v.cancel!="function")}function y(v){return!(!v||g(v)||typeof v.getWriter!="function"||typeof v.abort!="function")}function w(v){return!(!v||g(v)||typeof v.readable!="object"||typeof v.writable!="object")}function _(v){if(!g(v))return null;let O=v._writableState,M=v._readableState,Z=O||M;return!!(v.destroyed||v[s]||Z!=null&&Z.destroyed)}function E(v){if(!d(v))return null;if(v.writableEnded===!0)return!0;let O=v._writableState;return(O==null||!O.errored)&&(typeof(O==null?void 0:O.ended)!="boolean"?null:O.ended)}function T(v,O){if(!h(v))return null;let M=v._readableState;return(M==null||!M.errored)&&(typeof(M==null?void 0:M.endEmitted)!="boolean"?null:!!(M.endEmitted||O===!1&&M.ended===!0&&M.length===0))}function A(v){return v&&v[a]!=null?v[a]:typeof(v==null?void 0:v.readable)!="boolean"?null:!_(v)&&h(v)&&v.readable&&!T(v)}function $(v){return v&&v[l]!=null?v[l]:typeof(v==null?void 0:v.writable)!="boolean"?null:!_(v)&&d(v)&&v.writable&&!E(v)}function k(v){return typeof v._closed=="boolean"&&typeof v._defaultKeepAlive=="boolean"&&typeof v._removedConnection=="boolean"&&typeof v._removedContLen=="boolean"}function x(v){return typeof v._sent100=="boolean"&&k(v)}e.exports={isDestroyed:_,kIsDestroyed:s,isDisturbed:function(v){var O;return!(!v||!((O=v[c])!==null&&O!==void 0?O:v.readableDidRead||v.readableAborted))},kIsDisturbed:c,isErrored:function(v){var O,M,Z,te,U,W,re,H,oe,K;return!(!v||!((O=(M=(Z=(te=(U=(W=v[o])!==null&&W!==void 0?W:v.readableErrored)!==null&&U!==void 0?U:v.writableErrored)!==null&&te!==void 0?te:(re=v._readableState)===null||re===void 0?void 0:re.errorEmitted)!==null&&Z!==void 0?Z:(H=v._writableState)===null||H===void 0?void 0:H.errorEmitted)!==null&&M!==void 0?M:(oe=v._readableState)===null||oe===void 0?void 0:oe.errored)!==null&&O!==void 0?O:(K=v._writableState)!==null&&K!==void 0&&K.errored))},kIsErrored:o,isReadable:A,kIsReadable:a,kIsClosedPromise:u,kControllerErrorFunction:f,kIsWritable:l,isClosed:function(v){if(!g(v))return null;if(typeof v.closed=="boolean")return v.closed;let O=v._writableState,M=v._readableState;return typeof(O==null?void 0:O.closed)=="boolean"||typeof(M==null?void 0:M.closed)=="boolean"?(O==null?void 0:O.closed)||(M==null?void 0:M.closed):typeof v._closed=="boolean"&&k(v)?v._closed:null},isDuplexNodeStream:function(v){return!(!v||typeof v.pipe!="function"||!v._readableState||typeof v.on!="function"||typeof v.write!="function")},isFinished:function(v,O){return g(v)?!!_(v)||!((O==null?void 0:O.readable)!==!1&&A(v)||(O==null?void 0:O.writable)!==!1&&$(v)):null},isIterable:function(v,O){return v!=null&&(O===!0?typeof v[r]=="function":O===!1?typeof v[i]=="function":typeof v[r]=="function"||typeof v[i]=="function")},isReadableNodeStream:h,isReadableStream:p,isReadableEnded:function(v){if(!h(v))return null;if(v.readableEnded===!0)return!0;let O=v._readableState;return!(!O||O.errored)&&(typeof(O==null?void 0:O.ended)!="boolean"?null:O.ended)},isReadableFinished:T,isReadableErrored:function(v){var O,M;return g(v)?v.readableErrored?v.readableErrored:(O=(M=v._readableState)===null||M===void 0?void 0:M.errored)!==null&&O!==void 0?O:null:null},isNodeStream:g,isWebStream:function(v){return p(v)||y(v)||w(v)},isWritable:$,isWritableNodeStream:d,isWritableStream:y,isWritableEnded:E,isWritableFinished:function(v,O){if(!d(v))return null;if(v.writableFinished===!0)return!0;let M=v._writableState;return(M==null||!M.errored)&&(typeof(M==null?void 0:M.finished)!="boolean"?null:!!(M.finished||O===!1&&M.ended===!0&&M.length===0))},isWritableErrored:function(v){var O,M;return g(v)?v.writableErrored?v.writableErrored:(O=(M=v._writableState)===null||M===void 0?void 0:M.errored)!==null&&O!==void 0?O:null:null},isServerRequest:function(v){var O;return typeof v._consuming=="boolean"&&typeof v._dumped=="boolean"&&((O=v.req)===null||O===void 0?void 0:O.upgradeOrConnect)===void 0},isServerResponse:x,willEmitClose:function(v){if(!g(v))return null;let O=v._writableState,M=v._readableState,Z=O||M;return!Z&&x(v)||!!(Z&&Z.autoDestroy&&Z.emitClose&&Z.closed===!1)},isTransformStream:w}}),Vi=_e((t,e)=>{ye(),ve(),be();var r,i=On(),{AbortError:n,codes:s}=Ut(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=s,{kEmptyObject:l,once:c}=qt(),{validateAbortSignal:u,validateFunction:f,validateObject:h,validateBoolean:d}=Fo(),{Promise:g,PromisePrototypeThen:p,SymbolDispose:y}=ct(),{isClosed:w,isReadable:_,isReadableNodeStream:E,isReadableStream:T,isReadableFinished:A,isReadableErrored:$,isWritable:k,isWritableNodeStream:x,isWritableStream:v,isWritableFinished:O,isWritableErrored:M,isNodeStream:Z,willEmitClose:te,kIsClosedPromise:U}=si(),W=()=>{};function re(H,oe,K){var q,j;if(arguments.length===2?(K=oe,oe=l):oe==null?oe=l:h(oe,"options"),f(K,"callback"),u(oe.signal,"options.signal"),K=c(K),T(H)||v(H))return function(D,N,R){let ee=!1,le=W;if(N.signal)if(le=()=>{ee=!0,R.call(D,new n(void 0,{cause:N.signal.reason}))},N.signal.aborted)i.nextTick(le);else{let de=(r=r||qt().addAbortListener)(N.signal,le),fe=R;R=c((...F)=>{de[y](),fe.apply(D,F)})}let ue=(...de)=>{ee||i.nextTick(()=>R.apply(D,de))};return p(D[U].promise,ue,ue),W}(H,oe,K);if(!Z(H))throw new o("stream",["ReadableStream","WritableStream","Stream"],H);let B=(q=oe.readable)!==null&&q!==void 0?q:E(H),Y=(j=oe.writable)!==null&&j!==void 0?j:x(H),V=H._writableState,ce=H._readableState,he=()=>{H.writable||ie()},pe=te(H)&&E(H)===B&&x(H)===Y,z=O(H,!1),ie=()=>{z=!0,H.destroyed&&(pe=!1),(!pe||H.readable&&!B)&&(!B||ne)&&K.call(H)},ne=A(H,!1),L=()=>{ne=!0,H.destroyed&&(pe=!1),(!pe||H.writable&&!Y)&&(!Y||z)&&K.call(H)},G=D=>{K.call(H,D)},C=w(H),J=()=>{C=!0;let D=M(H)||$(H);return D&&typeof D!="boolean"?K.call(H,D):B&&!ne&&E(H,!0)&&!A(H,!1)?K.call(H,new a):!Y||z||O(H,!1)?void K.call(H):K.call(H,new a)},m=()=>{C=!0;let D=M(H)||$(H);if(D&&typeof D!="boolean")return K.call(H,D);K.call(H)},b=()=>{H.req.on("finish",ie)};(function(D){return D.setHeader&&typeof D.abort=="function"})(H)?(H.on("complete",ie),pe||H.on("abort",J),H.req?b():H.on("request",b)):Y&&!V&&(H.on("end",he),H.on("close",he)),!pe&&typeof H.aborted=="boolean"&&H.on("aborted",J),H.on("end",L),H.on("finish",ie),oe.error!==!1&&H.on("error",G),H.on("close",J),C?i.nextTick(J):V!=null&&V.errorEmitted||ce!=null&&ce.errorEmitted?pe||i.nextTick(m):(!B&&(!pe||_(H))&&(z||k(H)===!1)||!Y&&(!pe||k(H))&&(ne||_(H)===!1)||ce&&H.req&&H.aborted)&&i.nextTick(m);let S=()=>{K=W,H.removeListener("aborted",J),H.removeListener("complete",ie),H.removeListener("abort",J),H.removeListener("request",b),H.req&&H.req.removeListener("finish",ie),H.removeListener("end",he),H.removeListener("close",he),H.removeListener("finish",ie),H.removeListener("end",L),H.removeListener("error",G),H.removeListener("close",J)};if(oe.signal&&!C){let D=()=>{let N=K;S(),N.call(H,new n(void 0,{cause:oe.signal.reason}))};if(oe.signal.aborted)i.nextTick(D);else{let N=(r=r||qt().addAbortListener)(oe.signal,D),R=K;K=c((...ee)=>{N[y](),R.apply(H,ee)})}}return S}e.exports=re,e.exports.finished=function(H,oe){var K;let q=!1;return oe===null&&(oe=l),(K=oe)!==null&&K!==void 0&&K.cleanup&&(d(oe.cleanup,"cleanup"),q=oe.cleanup),new g((j,B)=>{let Y=re(H,oe,V=>{q&&Y(),V?B(V):j()})})}}),ys=_e((t,e)=>{ye(),ve(),be();var r=On(),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:n},AbortError:s}=Ut(),{Symbol:o}=ct(),{kIsDestroyed:a,isDestroyed:l,isFinished:c,isServerRequest:u}=si(),f=o("kDestroy"),h=o("kConstruct");function d(x,v,O){x&&(x.stack,v&&!v.errored&&(v.errored=x),O&&!O.errored&&(O.errored=x))}function g(x,v,O){let M=!1;function Z(te){if(M)return;M=!0;let U=x._readableState,W=x._writableState;d(te,W,U),W&&(W.closed=!0),U&&(U.closed=!0),typeof O=="function"&&O(te),te?r.nextTick(p,x,te):r.nextTick(y,x)}try{x._destroy(v||null,Z)}catch(te){Z(te)}}function p(x,v){w(x,v),y(x)}function y(x){let v=x._readableState,O=x._writableState;O&&(O.closeEmitted=!0),v&&(v.closeEmitted=!0),(O!=null&&O.emitClose||v!=null&&v.emitClose)&&x.emit("close")}function w(x,v){let O=x._readableState,M=x._writableState;M!=null&&M.errorEmitted||O!=null&&O.errorEmitted||(M&&(M.errorEmitted=!0),O&&(O.errorEmitted=!0),x.emit("error",v))}function _(x,v,O){let M=x._readableState,Z=x._writableState;if(Z!=null&&Z.destroyed||M!=null&&M.destroyed)return this;M!=null&&M.autoDestroy||Z!=null&&Z.autoDestroy?x.destroy(v):v&&(v.stack,Z&&!Z.errored&&(Z.errored=v),M&&!M.errored&&(M.errored=v),O?r.nextTick(w,x,v):w(x,v))}function E(x){let v=!1;function O(M){if(v)return void _(x,M??new n);v=!0;let Z=x._readableState,te=x._writableState,U=te||Z;Z&&(Z.constructed=!0),te&&(te.constructed=!0),U.destroyed?x.emit(f,M):M?_(x,M,!0):r.nextTick(T,x)}try{x._construct(M=>{r.nextTick(O,M)})}catch(M){r.nextTick(O,M)}}function T(x){x.emit(h)}function A(x){return(x==null?void 0:x.setHeader)&&typeof x.abort=="function"}function $(x){x.emit("close")}function k(x,v){x.emit("error",v),r.nextTick($,x)}e.exports={construct:function(x,v){if(typeof x._construct!="function")return;let O=x._readableState,M=x._writableState;O&&(O.constructed=!1),M&&(M.constructed=!1),x.once(h,v),!(x.listenerCount(h)>1)&&r.nextTick(E,x)},destroyer:function(x,v){!x||l(x)||(!v&&!c(x)&&(v=new s),u(x)?(x.socket=null,x.destroy(v)):A(x)?x.abort():A(x.req)?x.req.abort():typeof x.destroy=="function"?x.destroy(v):typeof x.close=="function"?x.close():v?r.nextTick(k,x,v):r.nextTick($,x),x.destroyed||(x[a]=!0))},destroy:function(x,v){let O=this._readableState,M=this._writableState,Z=M||O;return M!=null&&M.destroyed||O!=null&&O.destroyed?(typeof v=="function"&&v(),this):(d(x,M,O),M&&(M.destroyed=!0),O&&(O.destroyed=!0),Z.constructed?g(this,x,v):this.once(f,function(te){g(this,i(te,x),v)}),this)},undestroy:function(){let x=this._readableState,v=this._writableState;x&&(x.constructed=!0,x.closed=!1,x.closeEmitted=!1,x.destroyed=!1,x.errored=null,x.errorEmitted=!1,x.reading=!1,x.ended=x.readable===!1,x.endEmitted=x.readable===!1),v&&(v.constructed=!0,v.destroyed=!1,v.closed=!1,v.closeEmitted=!1,v.errored=null,v.errorEmitted=!1,v.finalCalled=!1,v.prefinished=!1,v.ended=v.writable===!1,v.ending=v.writable===!1,v.finished=v.writable===!1)},errorOrDestroy:_}}),jf=_e((t,e)=>{ye(),ve(),be();var{ArrayIsArray:r,ObjectSetPrototypeOf:i}=ct(),{EventEmitter:n}=(En(),Ge(Ui));function s(a){n.call(this,a)}function o(a,l,c){if(typeof a.prependListener=="function")return a.prependListener(l,c);a._events&&a._events[l]?r(a._events[l])?a._events[l].unshift(c):a._events[l]=[c,a._events[l]]:a.on(l,c)}i(s.prototype,n.prototype),i(s,n),s.prototype.pipe=function(a,l){let c=this;function u(w){a.writable&&a.write(w)===!1&&c.pause&&c.pause()}function f(){c.readable&&c.resume&&c.resume()}c.on("data",u),a.on("drain",f),!a._isStdio&&(!l||l.end!==!1)&&(c.on("end",d),c.on("close",g));let h=!1;function d(){h||(h=!0,a.end())}function g(){h||(h=!0,typeof a.destroy=="function"&&a.destroy())}function p(w){y(),n.listenerCount(this,"error")===0&&this.emit("error",w)}function y(){c.removeListener("data",u),a.removeListener("drain",f),c.removeListener("end",d),c.removeListener("close",g),c.removeListener("error",p),a.removeListener("error",p),c.removeListener("end",y),c.removeListener("close",y),a.removeListener("close",y)}return o(c,"error",p),o(a,"error",p),c.on("end",y),c.on("close",y),a.on("close",y),a.emit("pipe",c),a},e.exports={Stream:s,prependListener:o}}),Zl=_e((t,e)=>{ye(),ve(),be();var r,{SymbolDispose:i}=ct(),{AbortError:n,codes:s}=Ut(),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:l}=si(),c=Vi(),{ERR_INVALID_ARG_TYPE:u}=s;e.exports.addAbortSignal=function(f,h){if(((d,g)=>{if(typeof d!="object"||!("aborted"in d))throw new u(g,"AbortSignal",d)})(f,"signal"),!o(h)&&!a(h))throw new u("stream",["ReadableStream","WritableStream","Stream"],h);return e.exports.addAbortSignalNoValidate(f,h)},e.exports.addAbortSignalNoValidate=function(f,h){if(typeof f!="object"||!("aborted"in f))return h;let d=o(h)?()=>{h.destroy(new n(void 0,{cause:f.reason}))}:()=>{h[l](new n(void 0,{cause:f.reason}))};if(f.aborted)d();else{let g=(r=r||qt().addAbortListener)(f,d);c(h,g[i])}return h}}),TS=_e((t,e)=>{ye(),ve(),be();var{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:n,Uint8Array:s}=ct(),{Buffer:o}=(Et(),Ge(kt)),{inspect:a}=qt();e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return o.alloc(0);let c=o.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)n(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lh.length)){l===h.length?(c+=h,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=r(h,0,l),this.head=u,u.data=r(h,l));break}c+=h,l-=h.length,++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=o.allocUnsafe(l),u=l,f=this.head,h=0;do{let d=f.data;if(!(l>d.length)){l===d.length?(n(c,d,u-l),++h,f.next?this.head=f.next:this.head=this.tail=null):(n(c,new s(d.buffer,d.byteOffset,l),u-l),this.head=f,f.data=d.slice(l));break}n(c,d,u-l),l-=d.length,++h}while((f=f.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return a(this,{...c,depth:0,customInspect:!1})}}}),Xl=_e((t,e)=>{ye(),ve(),be();var{MathFloor:r,NumberIsInteger:i}=ct(),{validateInteger:n}=Fo(),{ERR_INVALID_ARG_VALUE:s}=Ut().codes,o=16384,a=16;function l(c){return c?a:o}e.exports={getHighWaterMark:function(c,u,f,h){let d=function(g,p,y){return g.highWaterMark!=null?g.highWaterMark:p?g[y]:null}(u,h,f);if(d!=null){if(!i(d)||d<0)throw new s(h?`options.${f}`:"options.highWaterMark",d);return r(d)}return l(c.objectMode)},getDefaultHighWaterMark:l,setDefaultHighWaterMark:function(c,u){n(u,"value",0),c?a=u:o=u}}}),AS=_e((t,e)=>{ye(),ve(),be();var r=(Et(),Ge(kt)),i=r.Buffer;function n(o,a){for(var l in o)a[l]=o[l]}function s(o,a,l){return i(o,a,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(n(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),n(i,s),s.from=function(o,a,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,a,l)},s.alloc=function(o,a,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=i(o);return a!==void 0?typeof l=="string"?c.fill(a,l):c.fill(a):c.fill(0),c},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}}),MS=_e(t=>{ye(),ve(),be();var e=AS().Buffer,r=e.isEncoding||function(h){switch((h=""+h)&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(h){var d;switch(this.encoding=function(g){var p=function(y){if(!y)return"utf8";for(var w;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(w)return;y=(""+y).toLowerCase(),w=!0}}(g);if(typeof p!="string"&&(e.isEncoding===r||!r(g)))throw new Error("Unknown encoding: "+g);return p||g}(h),this.encoding){case"utf16le":this.text=o,this.end=a,d=4;break;case"utf8":this.fillLast=s,d=4;break;case"base64":this.text=l,this.end=c,d=3;break;default:return this.write=u,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(d)}function n(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function s(h){var d=this.lastTotal-this.lastNeed,g=function(p,y){if((192&y[0])!=128)return p.lastNeed=0,"�";if(p.lastNeed>1&&y.length>1){if((192&y[1])!=128)return p.lastNeed=1,"�";if(p.lastNeed>2&&y.length>2&&(192&y[2])!=128)return p.lastNeed=2,"�"}}(this,h);return g!==void 0?g:this.lastNeed<=h.length?(h.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,d,0,h.length),void(this.lastNeed-=h.length))}function o(h,d){if((h.length-d)%2==0){var g=h.toString("utf16le",d);if(g){var p=g.charCodeAt(g.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",d,h.length-1)}function a(h){var d=h&&h.length?this.write(h):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,g)}return d}function l(h,d){var g=(h.length-d)%3;return g===0?h.toString("base64",d):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",d,h.length-g))}function c(h){var d=h&&h.length?this.write(h):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function u(h){return h.toString(this.encoding)}function f(h){return h&&h.length?this.write(h):""}t.StringDecoder=i,i.prototype.write=function(h){if(h.length===0)return"";var d,g;if(this.lastNeed){if((d=this.fillLast(h))===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g=0?(T>0&&(y.lastNeed=T-1),T):--E<_||T===-2?0:(T=n(w[E]),T>=0?(T>0&&(y.lastNeed=T-2),T):--E<_||T===-2?0:(T=n(w[E]),T>=0?(T>0&&(T===2?T=0:y.lastNeed=T-3),T):0))}(this,h,d);if(!this.lastNeed)return h.toString("utf8",d);this.lastTotal=g;var p=h.length-(g-this.lastNeed);return h.copy(this.lastChar,0,p),h.toString("utf8",d,p)},i.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length}}),Zb=_e((t,e)=>{ye(),ve(),be();var r=On(),{PromisePrototypeThen:i,SymbolAsyncIterator:n,SymbolIterator:s}=ct(),{Buffer:o}=(Et(),Ge(kt)),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_NULL_VALUES:l}=Ut().codes;e.exports=function(c,u,f){let h,d;if(typeof u=="string"||u instanceof o)return new c({objectMode:!0,...f,read(){this.push(u),this.push(null)}});if(u&&u[n])d=!0,h=u[n]();else{if(!u||!u[s])throw new a("iterable",["Iterable"],u);d=!1,h=u[s]()}let g=new c({objectMode:!0,highWaterMark:1,...f}),p=!1;return g._read=function(){p||(p=!0,async function(){for(;;){try{let{value:y,done:w}=d?await h.next():h.next();if(w)g.push(null);else{let _=y&&typeof y.then=="function"?await y:y;if(_===null)throw p=!1,new l;if(g.push(_))continue;p=!1}}catch(y){g.destroy(y)}break}}())},g._destroy=function(y,w){i(async function(_){let E=_!=null,T=typeof h.throw=="function";if(E&&T){let{value:A,done:$}=await h.throw(_);if(await A,$)return}if(typeof h.return=="function"){let{value:A}=await h.return();await A}}(y),()=>r.nextTick(w,y),_=>r.nextTick(w,_||y))},g}}),Ql=_e((t,e)=>{ye(),ve(),be();var r=On(),{ArrayPrototypeIndexOf:i,NumberIsInteger:n,NumberIsNaN:s,NumberParseInt:o,ObjectDefineProperties:a,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncDispose:h,SymbolAsyncIterator:d,Symbol:g}=ct();e.exports=ne,ne.ReadableState=ie;var{EventEmitter:p}=(En(),Ge(Ui)),{Stream:y,prependListener:w}=jf(),{Buffer:_}=(Et(),Ge(kt)),{addAbortSignal:E}=Zl(),T=Vi(),A=qt().debuglog("stream",I=>{A=I}),$=TS(),k=ys(),{getHighWaterMark:x,getDefaultHighWaterMark:v}=Xl(),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:Z,ERR_OUT_OF_RANGE:te,ERR_STREAM_PUSH_AFTER_EOF:U,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:W},AbortError:re}=Ut(),{validateObject:H}=Fo(),oe=g("kPaused"),{StringDecoder:K}=MS(),q=Zb();c(ne.prototype,y.prototype),c(ne,y);var j=()=>{},{errorOrDestroy:B}=k,Y=1,V=16,ce=32,he=2048,pe=4096;function z(I){return{enumerable:!1,get(){return!!(this.state&I)},set(P){P?this.state|=I:this.state&=~I}}}function ie(I,P,ae){typeof ae!="boolean"&&(ae=P instanceof Jr()),this.state=he|pe|V|ce,I&&I.objectMode&&(this.state|=Y),ae&&I&&I.readableObjectMode&&(this.state|=Y),this.highWaterMark=I?x(this,I,"readableHighWaterMark",ae):v(!1),this.buffer=new $,this.length=0,this.pipes=[],this.flowing=null,this[oe]=null,I&&I.emitClose===!1&&(this.state&=-2049),I&&I.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=I&&I.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,I&&I.encoding&&(this.decoder=new K(I.encoding),this.encoding=I.encoding)}function ne(I){if(!(this instanceof ne))return new ne(I);let P=this instanceof Jr();this._readableState=new ie(I,this,P),I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.construct=="function"&&(this._construct=I.construct),I.signal&&!P&&E(I.signal,this)),y.call(this,I),k.construct(this,()=>{this._readableState.needReadable&&S(this,this._readableState)})}function L(I,P,ae,ge){A("readableAddChunk",P);let we,me=I._readableState;if(me.state&Y||(typeof P=="string"?(ae=ae||me.defaultEncoding,me.encoding!==ae&&(ge&&me.encoding?P=_.from(P,ae).toString(me.encoding):(P=_.from(P,ae),ae=""))):P instanceof _?ae="":y._isUint8Array(P)?(P=y._uint8ArrayToBuffer(P),ae=""):P!=null&&(we=new M("chunk",["string","Buffer","Uint8Array"],P))),we)B(I,we);else if(P===null)me.state&=-9,function(Pe,xe){if(A("onEofChunk"),!xe.ended){if(xe.decoder){let ze=xe.decoder.end();ze&&ze.length&&(xe.buffer.push(ze),xe.length+=xe.objectMode?1:ze.length)}xe.ended=!0,xe.sync?m(Pe):(xe.needReadable=!1,xe.emittedReadable=!0,b(Pe))}}(I,me);else if(me.state&Y||P&&P.length>0)if(ge)if(4&me.state)B(I,new W);else{if(me.destroyed||me.errored)return!1;G(I,me,P,!0)}else if(me.ended)B(I,new U);else{if(me.destroyed||me.errored)return!1;me.state&=-9,me.decoder&&!ae?(P=me.decoder.write(P),me.objectMode||P.length!==0?G(I,me,P,!1):S(I,me)):G(I,me,P,!1)}else ge||(me.state&=-9,S(I,me));return!me.ended&&(me.length0?(65536&P.state?P.awaitDrainWriters.clear():P.awaitDrainWriters=null,P.dataEmitted=!0,I.emit("data",ae)):(P.length+=P.objectMode?1:ae.length,ge?P.buffer.unshift(ae):P.buffer.push(ae),64&P.state&&m(I)),S(I,P)}a(ie.prototype,{objectMode:z(Y),ended:z(2),endEmitted:z(4),reading:z(8),constructed:z(V),sync:z(ce),needReadable:z(64),emittedReadable:z(128),readableListening:z(256),resumeScheduled:z(512),errorEmitted:z(1024),emitClose:z(he),autoDestroy:z(pe),destroyed:z(8192),closed:z(16384),closeEmitted:z(32768),multiAwaitDrain:z(65536),readingMore:z(1<<17),dataEmitted:z(1<<18)}),ne.prototype.destroy=k.destroy,ne.prototype._undestroy=k.undestroy,ne.prototype._destroy=function(I,P){P(I)},ne.prototype[p.captureRejectionSymbol]=function(I){this.destroy(I)},ne.prototype[h]=function(){let I;return this.destroyed||(I=this.readableEnded?null:new re,this.destroy(I)),new u((P,ae)=>T(this,ge=>ge&&ge!==I?ae(ge):P(null)))},ne.prototype.push=function(I,P){return L(this,I,P,!1)},ne.prototype.unshift=function(I,P){return L(this,I,P,!0)},ne.prototype.isPaused=function(){let I=this._readableState;return I[oe]===!0||I.flowing===!1},ne.prototype.setEncoding=function(I){let P=new K(I);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;let ae=this._readableState.buffer,ge="";for(let we of ae)ge+=P.write(we);return ae.clear(),ge!==""&&ae.push(ge),this._readableState.length=ge.length,this};var C;function J(I,P){return I<=0||P.length===0&&P.ended?0:P.state&Y?1:s(I)?P.flowing&&P.length?P.buffer.first().length:P.length:I<=P.length?I:P.ended?P.length:0}function m(I){let P=I._readableState;A("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(A("emitReadable",P.flowing),P.emittedReadable=!0,r.nextTick(b,I))}function b(I){let P=I._readableState;A("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&!P.errored&&(P.length||P.ended)&&(I.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,le(I)}function S(I,P){!P.readingMore&&P.constructed&&(P.readingMore=!0,r.nextTick(D,I,P))}function D(I,P){for(;!P.reading&&!P.ended&&(P.length0,P.resumeScheduled&&P[oe]===!1?P.flowing=!0:I.listenerCount("data")>0?I.resume():P.readableListening||(P.flowing=null)}function R(I){A("readable nexttick read 0"),I.read(0)}function ee(I,P){A("resume",P.reading),P.reading||I.read(0),P.resumeScheduled=!1,I.emit("resume"),le(I),P.flowing&&!P.reading&&I.read(0)}function le(I){let P=I._readableState;for(A("flow",P.flowing);P.flowing&&I.read()!==null;);}function ue(I,P){typeof I.read!="function"&&(I=ne.wrap(I,{objectMode:!0}));let ae=async function*(ge,we){let me=j;function Pe(Le){this===ge?(me(),me=j):me=Le}ge.on("readable",Pe);let xe,ze=T(ge,{writable:!1},Le=>{xe=Le?O(xe,Le):null,me(),me=j});try{for(;;){let Le=ge.destroyed?null:ge.read();if(Le!==null)yield Le;else{if(xe)throw xe;if(xe===null)return;await new u(Pe)}}}catch(Le){throw xe=O(xe,Le),xe}finally{!xe&&(we==null?void 0:we.destroyOnReturn)===!1||xe!==void 0&&!ge._readableState.autoDestroy?(ge.off("readable",Pe),ze()):k.destroyer(ge,null)}}(I,P);return ae.stream=I,ae}function de(I,P){if(P.length===0)return null;let ae;return P.objectMode?ae=P.buffer.shift():!I||I>=P.length?(ae=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.first():P.buffer.concat(P.length),P.buffer.clear()):ae=P.buffer.consume(I,P.decoder),ae}function fe(I){let P=I._readableState;A("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,r.nextTick(F,P,I))}function F(I,P){if(A("endReadableNT",I.endEmitted,I.length),!I.errored&&!I.closeEmitted&&!I.endEmitted&&I.length===0){if(I.endEmitted=!0,P.emit("end"),P.writable&&P.allowHalfOpen===!1)r.nextTick(Q,P);else if(I.autoDestroy){let ae=P._writableState;(!ae||ae.autoDestroy&&(ae.finished||ae.writable===!1))&&P.destroy()}}}function Q(I){I.writable&&!I.writableEnded&&!I.destroyed&&I.end()}function se(){return C===void 0&&(C={}),C}ne.prototype.read=function(I){A("read",I),I===void 0?I=NaN:n(I)||(I=o(I,10));let P=this._readableState,ae=I;if(I>P.highWaterMark&&(P.highWaterMark=function(me){if(me>1073741824)throw new te("size","<= 1GiB",me);return me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,++me}(I)),I!==0&&(P.state&=-129),I===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return A("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?fe(this):m(this),null;if((I=J(I,P))===0&&P.ended)return P.length===0&&fe(this),null;let ge,we=!!(64&P.state);if(A("need readable",we),(P.length===0||P.length-I0?de(I,P):null,ge===null?(P.needReadable=P.length<=P.highWaterMark,I=0):(P.length-=I,P.multiAwaitDrain?P.awaitDrainWriters.clear():P.awaitDrainWriters=null),P.length===0&&(P.ended||(P.needReadable=!0),ae!==I&&P.ended&&fe(this)),ge!==null&&!P.errorEmitted&&!P.closeEmitted&&(P.dataEmitted=!0,this.emit("data",ge)),ge},ne.prototype._read=function(I){throw new Z("_read()")},ne.prototype.pipe=function(I,P){let ae=this,ge=this._readableState;ge.pipes.length===1&&(ge.multiAwaitDrain||(ge.multiAwaitDrain=!0,ge.awaitDrainWriters=new f(ge.awaitDrainWriters?[ge.awaitDrainWriters]:[]))),ge.pipes.push(I),A("pipe count=%d opts=%j",ge.pipes.length,P);let we=P&&P.end===!1||I===r.stdout||I===r.stderr?Fe:Pe;function me(Tt,ot){A("onunpipe"),Tt===ae&&ot&&ot.hasUnpiped===!1&&(ot.hasUnpiped=!0,A("cleanup"),I.removeListener("close",Ze),I.removeListener("finish",Ae),xe&&I.removeListener("drain",xe),I.removeListener("error",We),I.removeListener("unpipe",me),ae.removeListener("end",Pe),ae.removeListener("end",Fe),ae.removeListener("data",He),ze=!0,xe&&ge.awaitDrainWriters&&(!I._writableState||I._writableState.needDrain)&&xe())}function Pe(){A("onend"),I.end()}ge.endEmitted?r.nextTick(we):ae.once("end",we),I.on("unpipe",me);let xe,ze=!1;function Le(){ze||(ge.pipes.length===1&&ge.pipes[0]===I?(A("false write response, pause",0),ge.awaitDrainWriters=I,ge.multiAwaitDrain=!1):ge.pipes.length>1&&ge.pipes.includes(I)&&(A("false write response, pause",ge.awaitDrainWriters.size),ge.awaitDrainWriters.add(I)),ae.pause()),xe||(xe=function(Tt,ot){return function(){let yt=Tt._readableState;yt.awaitDrainWriters===ot?(A("pipeOnDrain",1),yt.awaitDrainWriters=null):yt.multiAwaitDrain&&(A("pipeOnDrain",yt.awaitDrainWriters.size),yt.awaitDrainWriters.delete(ot)),(!yt.awaitDrainWriters||yt.awaitDrainWriters.size===0)&&Tt.listenerCount("data")&&Tt.resume()}}(ae,I),I.on("drain",xe))}function He(Tt){A("ondata");let ot=I.write(Tt);A("dest.write",ot),ot===!1&&Le()}function We(Tt){if(A("onerror",Tt),Fe(),I.removeListener("error",We),I.listenerCount("error")===0){let ot=I._writableState||I._readableState;ot&&!ot.errorEmitted?B(I,Tt):I.emit("error",Tt)}}function Ze(){I.removeListener("finish",Ae),Fe()}function Ae(){A("onfinish"),I.removeListener("close",Ze),Fe()}function Fe(){A("unpipe"),ae.unpipe(I)}return ae.on("data",He),w(I,"error",We),I.once("close",Ze),I.once("finish",Ae),I.emit("pipe",ae),I.writableNeedDrain===!0?Le():ge.flowing||(A("pipe resume"),ae.resume()),I},ne.prototype.unpipe=function(I){let P=this._readableState;if(P.pipes.length===0)return this;if(!I){let ge=P.pipes;P.pipes=[],this.pause();for(let we=0;we0,ge.flowing!==!1&&this.resume()):I==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,A("on readable",ge.length,ge.reading),ge.length?m(this):ge.reading||r.nextTick(R,this)),ae},ne.prototype.addListener=ne.prototype.on,ne.prototype.removeListener=function(I,P){let ae=y.prototype.removeListener.call(this,I,P);return I==="readable"&&r.nextTick(N,this),ae},ne.prototype.off=ne.prototype.removeListener,ne.prototype.removeAllListeners=function(I){let P=y.prototype.removeAllListeners.apply(this,arguments);return(I==="readable"||I===void 0)&&r.nextTick(N,this),P},ne.prototype.resume=function(){let I=this._readableState;return I.flowing||(A("resume"),I.flowing=!I.readableListening,function(P,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,r.nextTick(ee,P,ae))}(this,I)),I[oe]=!1,this},ne.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[oe]=!0,this},ne.prototype.wrap=function(I){let P=!1;I.on("data",ge=>{!this.push(ge)&&I.pause&&(P=!0,I.pause())}),I.on("end",()=>{this.push(null)}),I.on("error",ge=>{B(this,ge)}),I.on("close",()=>{this.destroy()}),I.on("destroy",()=>{this.destroy()}),this._read=()=>{P&&I.resume&&(P=!1,I.resume())};let ae=l(I);for(let ge=1;ge{ye(),ve(),be();var r=On(),{ArrayPrototypeSlice:i,Error:n,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:o,ObjectDefineProperties:a,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=ct();e.exports=H,H.WritableState=W;var{EventEmitter:h}=(En(),Ge(Ui)),d=jf().Stream,{Buffer:g}=(Et(),Ge(kt)),p=ys(),{addAbortSignal:y}=Zl(),{getHighWaterMark:w,getDefaultHighWaterMark:_}=Xl(),{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_MULTIPLE_CALLBACK:A,ERR_STREAM_CANNOT_PIPE:$,ERR_STREAM_DESTROYED:k,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:v,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:M}=Ut().codes,{errorOrDestroy:Z}=p;function te(){}l(H.prototype,d.prototype),l(H,d);var U=u("kOnFinished");function W(C,J,m){typeof m!="boolean"&&(m=J instanceof Jr()),this.objectMode=!(!C||!C.objectMode),m&&(this.objectMode=this.objectMode||!(!C||!C.writableObjectMode)),this.highWaterMark=C?w(this,C,"writableHighWaterMark",m):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let b=!(!C||C.decodeStrings!==!1);this.decodeStrings=!b,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j.bind(void 0,J),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,re(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[U]=[]}function re(C){C.buffered=[],C.bufferedIndex=0,C.allBuffers=!0,C.allNoop=!0}function H(C){let J=this instanceof Jr();if(!J&&!s(H,this))return new H(C);this._writableState=new W(C,this,J),C&&(typeof C.write=="function"&&(this._write=C.write),typeof C.writev=="function"&&(this._writev=C.writev),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.final=="function"&&(this._final=C.final),typeof C.construct=="function"&&(this._construct=C.construct),C.signal&&y(C.signal,this)),d.call(this,C),p.construct(this,()=>{let m=this._writableState;m.writing||ce(this,m),z(this,m)})}function oe(C,J,m,b){let S,D=C._writableState;if(typeof m=="function")b=m,m=D.defaultEncoding;else{if(m){if(m!=="buffer"&&!g.isEncoding(m))throw new M(m)}else m=D.defaultEncoding;typeof b!="function"&&(b=te)}if(J===null)throw new v;if(!D.objectMode)if(typeof J=="string")D.decodeStrings!==!1&&(J=g.from(J,m),m="buffer");else if(J instanceof g)m="buffer";else{if(!d._isUint8Array(J))throw new E("chunk",["string","Buffer","Uint8Array"],J);J=d._uint8ArrayToBuffer(J),m="buffer"}return D.ending?S=new O:D.destroyed&&(S=new k("write")),S?(r.nextTick(b,S),Z(C,S,!0),S):(D.pendingcb++,function(N,R,ee,le,ue){let de=R.objectMode?1:ee.length;R.length+=de;let fe=R.lengthm.bufferedIndex&&ce(C,m),b?m.afterWriteTickInfo!==null&&m.afterWriteTickInfo.cb===S?m.afterWriteTickInfo.count++:(m.afterWriteTickInfo={count:1,cb:S,stream:C,state:m},r.nextTick(B,m.afterWriteTickInfo)):Y(C,m,1,S))):Z(C,new A)}function B({stream:C,state:J,count:m,cb:b}){return J.afterWriteTickInfo=null,Y(C,J,m,b)}function Y(C,J,m,b){for(!J.ending&&!C.destroyed&&J.length===0&&J.needDrain&&(J.needDrain=!1,C.emit("drain"));m-- >0;)J.pendingcb--,b();J.destroyed&&V(J),z(C,J)}function V(C){if(C.writing)return;for(let S=C.bufferedIndex;S1&&C._writev){J.pendingcb-=D-1;let R=J.allNoop?te:le=>{for(let ue=N;ue256?(m.splice(0,N),J.bufferedIndex=0):J.bufferedIndex=N}J.bufferProcessing=!1}function he(C){return C.ending&&!C.destroyed&&C.constructed&&C.length===0&&!C.errored&&C.buffered.length===0&&!C.finished&&!C.writing&&!C.errorEmitted&&!C.closeEmitted}function pe(C,J){!J.prefinished&&!J.finalCalled&&(typeof C._final!="function"||J.destroyed?(J.prefinished=!0,C.emit("prefinish")):(J.finalCalled=!0,function(m,b){let S=!1;function D(N){if(S)Z(m,N??A());else if(S=!0,b.pendingcb--,N){let R=b[U].splice(0);for(let ee=0;ee{he(S)?ie(b,S):S.pendingcb--},C,J)):he(J)&&(J.pendingcb++,ie(C,J))))}function ie(C,J){J.pendingcb--,J.finished=!0;let m=J[U].splice(0);for(let b=0;b{ye(),ve(),be();var r=On(),i=(Et(),Ge(kt)),{isReadable:n,isWritable:s,isIterable:o,isNodeStream:a,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u,isReadableStream:f,isWritableStream:h}=si(),d=Vi(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:y}}=Ut(),{destroyer:w}=ys(),_=Jr(),E=Ql(),T=Bf(),{createDeferredPromise:A}=qt(),$=Zb(),k=globalThis.Blob||i.Blob,x=typeof k<"u"?function(te){return te instanceof k}:function(te){return!1},v=globalThis.AbortController||Oo().AbortController,{FunctionPrototypeCall:O}=ct(),M=class extends _{constructor(te){super(te),(te==null?void 0:te.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(te==null?void 0:te.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};function Z(te){let U,W,re,H,oe,K=te.readable&&typeof te.readable.read!="function"?E.wrap(te.readable):te.readable,q=te.writable,j=!!n(K),B=!!s(q);function Y(V){let ce=H;H=null,ce?ce(V):V&&oe.destroy(V)}return oe=new M({readableObjectMode:!(K==null||!K.readableObjectMode),writableObjectMode:!(q==null||!q.writableObjectMode),readable:j,writable:B}),B&&(d(q,V=>{B=!1,V&&w(K,V),Y(V)}),oe._write=function(V,ce,he){q.write(V,ce)?he():U=he},oe._final=function(V){q.end(),W=V},q.on("drain",function(){if(U){let V=U;U=null,V()}}),q.on("finish",function(){if(W){let V=W;W=null,V()}})),j&&(d(K,V=>{j=!1,V&&w(K,V),Y(V)}),K.on("readable",function(){if(re){let V=re;re=null,V()}}),K.on("end",function(){oe.push(null)}),oe._read=function(){for(;;){let V=K.read();if(V===null)return void(re=oe._read);if(!oe.push(V))return}}),oe._destroy=function(V,ce){!V&&H!==null&&(V=new g),re=null,U=null,W=null,H===null?ce(V):(H=ce,w(q,V),w(K,V))},oe}e.exports=function te(U,W){if(u(U))return U;if(l(U))return Z({readable:U});if(c(U))return Z({writable:U});if(a(U))return Z({writable:!1,readable:!1});if(f(U))return Z({readable:E.fromWeb(U)});if(h(U))return Z({writable:T.fromWeb(U)});if(typeof U=="function"){let{value:H,write:oe,final:K,destroy:q}=function(B){let{promise:Y,resolve:V}=A(),ce=new v,he=ce.signal;return{value:B(async function*(){for(;;){let pe=Y;Y=null;let{chunk:z,done:ie,cb:ne}=await pe;if(r.nextTick(ne),ie)return;if(he.aborted)throw new g(void 0,{cause:he.reason});({promise:Y,resolve:V}=A()),yield z}}(),{signal:he}),write(pe,z,ie){let ne=V;V=null,ne({chunk:pe,done:!1,cb:ie})},final(pe){let z=V;V=null,z({done:!0,cb:pe})},destroy(pe,z){ce.abort(),z(pe)}}}(U);if(o(H))return $(M,H,{objectMode:!0,write:oe,final:K,destroy:q});let j=H==null?void 0:H.then;if(typeof j=="function"){let B,Y=O(j,H,V=>{if(V!=null)throw new y("nully","body",V)},V=>{w(B,V)});return B=new M({objectMode:!0,readable:!1,write:oe,final(V){K(async()=>{try{await Y,r.nextTick(V,null)}catch(ce){r.nextTick(V,ce)}})},destroy:q})}throw new y("Iterable, AsyncIterable or AsyncFunction",W,H)}if(x(U))return te(U.arrayBuffer());if(o(U))return $(M,U,{objectMode:!0,writable:!1});if(f(U==null?void 0:U.readable)&&h(U==null?void 0:U.writable))return M.fromWeb(U);if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object")return Z({readable:U!=null&&U.readable?l(U==null?void 0:U.readable)?U==null?void 0:U.readable:te(U.readable):void 0,writable:U!=null&&U.writable?c(U==null?void 0:U.writable)?U==null?void 0:U.writable:te(U.writable):void 0});let re=U==null?void 0:U.then;if(typeof re=="function"){let H;return O(re,U,oe=>{oe!=null&&H.push(oe),H.push(null)},oe=>{w(H,oe)}),H=new M({objectMode:!0,writable:!1,read(){}})}throw new p(W,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)}}),Jr=_e((t,e)=>{ye(),ve(),be();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:n,ObjectSetPrototypeOf:s}=ct();e.exports=u;var o,a,l=Ql(),c=Bf();s(u.prototype,l.prototype),s(u,l);{let h=n(c.prototype);for(let d=0;d{ye(),ve(),be();var{ObjectSetPrototypeOf:r,Symbol:i}=ct();e.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:n}=Ut().codes,s=Jr(),{getHighWaterMark:o}=Xl();r(l.prototype,s.prototype),r(l,s);var a=i("kCallback");function l(f){if(!(this instanceof l))return new l(f);let h=f?o(this,f,"readableHighWaterMark",!0):null;h===0&&(f={...f,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:f.writableHighWaterMark||0}),s.call(this,f),this._readableState.sync=!1,this[a]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush!="function"||this.destroyed?(this.push(null),f&&f()):this._flush((h,d)=>{h?f?f(h):this.destroy(h):(d!=null&&this.push(d),this.push(null),f&&f())})}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,h,d){throw new n("_transform()")},l.prototype._write=function(f,h,d){let g=this._readableState,p=this._writableState,y=g.length;this._transform(f,h,(w,_)=>{w?d(w):(_!=null&&this.push(_),p.ended||y===g.length||g.length{ye(),ve(),be();var{ObjectSetPrototypeOf:r}=ct();e.exports=n;var i=Xb();function n(s){if(!(this instanceof n))return new n(s);i.call(this,s)}r(n.prototype,i.prototype),r(n,i),n.prototype._transform=function(s,o,a){a(null,s)}}),Ff=_e((t,e)=>{ye(),ve(),be();var r,i,n,s=On(),{ArrayIsArray:o,Promise:a,SymbolAsyncIterator:l,SymbolDispose:c}=ct(),u=Vi(),{once:f}=qt(),h=ys(),d=Jr(),{aggregateTwoErrors:g,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:y,ERR_MISSING_ARGS:w,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:E},AbortError:T}=Ut(),{validateFunction:A,validateAbortSignal:$}=Fo(),{isIterable:k,isReadable:x,isReadableNodeStream:v,isNodeStream:O,isTransformStream:M,isWebStream:Z,isReadableStream:te,isReadableFinished:U}=si(),W=globalThis.AbortController||Oo().AbortController;function re(B,Y,V){let ce=!1;return B.on("close",()=>{ce=!0}),{destroy:he=>{ce||(ce=!0,h.destroyer(B,he||new _("pipe")))},cleanup:u(B,{readable:Y,writable:V},he=>{ce=!he})}}function H(B){if(k(B))return B;if(v(B))return async function*(Y){i||(i=Ql()),yield*i.prototype[l].call(Y)}(B);throw new p("val",["Readable","Iterable","AsyncIterable"],B)}async function oe(B,Y,V,{end:ce}){let he,pe=null,z=L=>{if(L&&(he=L),pe){let G=pe;pe=null,G()}},ie=()=>new a((L,G)=>{he?G(he):pe=()=>{he?G(he):L()}});Y.on("drain",z);let ne=u(Y,{readable:!1},z);try{Y.writableNeedDrain&&await ie();for await(let L of B)Y.write(L)||await ie();ce&&(Y.end(),await ie()),V()}catch(L){V(he!==L?g(he,L):L)}finally{ne(),Y.off("drain",z)}}async function K(B,Y,V,{end:ce}){M(Y)&&(Y=Y.writable);let he=Y.getWriter();try{for await(let pe of B)await he.ready,he.write(pe).catch(()=>{});await he.ready,ce&&await he.close(),V()}catch(pe){try{await he.abort(pe),V(pe)}catch(z){V(z)}}}function q(B,Y,V){if(B.length===1&&o(B[0])&&(B=B[0]),B.length<2)throw new w("streams");let ce,he=new W,pe=he.signal,z=V==null?void 0:V.signal,ie=[];function ne(){S(new T)}$(z,"options.signal"),n=n||qt().addAbortListener,z&&(ce=n(z,ne));let L,G,C,J=[],m=0;function b(R){S(R,--m==0)}function S(R,ee){var le;if(R&&(!L||L.code==="ERR_STREAM_PREMATURE_CLOSE")&&(L=R),L||ee){for(;J.length;)J.shift()(L);(le=ce)===null||le===void 0||le[c](),he.abort(),ee&&(L||ie.forEach(ue=>ue()),s.nextTick(Y,L,G))}}for(let R=0;R0,de=le||(V==null?void 0:V.end)!==!1,fe=R===B.length-1;if(O(ee)){let F=function(Q){Q&&Q.name!=="AbortError"&&Q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&b(Q)};if(de){let{destroy:Q,cleanup:se}=re(ee,le,ue);J.push(Q),x(ee)&&fe&&ie.push(se)}ee.on("error",F),x(ee)&&fe&&ie.push(()=>{ee.removeListener("error",F)})}if(R===0)if(typeof ee=="function"){if(C=ee({signal:pe}),!k(C))throw new y("Iterable, AsyncIterable or Stream","source",C)}else C=k(ee)||v(ee)||M(ee)?ee:d.from(ee);else if(typeof ee=="function"){var D;if(M(C)?C=H((D=C)===null||D===void 0?void 0:D.readable):C=H(C),C=ee(C,{signal:pe}),le){if(!k(C,!0))throw new y("AsyncIterable",`transform[${R-1}]`,C)}else{var N;r||(r=Qb());let F=new r({objectMode:!0}),Q=(N=C)===null||N===void 0?void 0:N.then;if(typeof Q=="function")m++,Q.call(C,P=>{G=P,P!=null&&F.write(P),de&&F.end(),s.nextTick(b)},P=>{F.destroy(P),s.nextTick(b,P)});else if(k(C,!0))m++,oe(C,F,b,{end:de});else{if(!te(C)&&!M(C))throw new y("AsyncIterable or Promise","destination",C);{let P=C.readable||C;m++,oe(P,F,b,{end:de})}}C=F;let{destroy:se,cleanup:I}=re(C,!1,!0);J.push(se),fe&&ie.push(I)}}else if(O(ee)){if(v(C)){m+=2;let F=j(C,ee,b,{end:de});x(ee)&&fe&&ie.push(F)}else if(M(C)||te(C)){let F=C.readable||C;m++,oe(F,ee,b,{end:de})}else{if(!k(C))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],C);m++,oe(C,ee,b,{end:de})}C=ee}else if(Z(ee)){if(v(C))m++,K(H(C),ee,b,{end:de});else if(te(C)||k(C))m++,K(C,ee,b,{end:de});else{if(!M(C))throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],C);m++,K(C.readable,ee,b,{end:de})}C=ee}else C=d.from(ee)}return(pe!=null&&pe.aborted||z!=null&&z.aborted)&&s.nextTick(ne),C}function j(B,Y,V,{end:ce}){let he=!1;if(Y.on("close",()=>{he||V(new E)}),B.pipe(Y,{end:!1}),ce){let pe=function(){he=!0,Y.end()};U(B)?s.nextTick(pe):B.once("end",pe)}else V();return u(B,{readable:!0,writable:!1},pe=>{let z=B._readableState;pe&&pe.code==="ERR_STREAM_PREMATURE_CLOSE"&&z&&z.ended&&!z.errored&&!z.errorEmitted?B.once("end",V).once("error",V):V(pe)}),u(Y,{readable:!1,writable:!0},V)}e.exports={pipelineImpl:q,pipeline:function(...B){return q(B,f(function(Y){return A(Y[Y.length-1],"streams[stream.length - 1]"),Y.pop()}(B)))}}}),Jb=_e((t,e)=>{ye(),ve(),be();var{pipeline:r}=Ff(),i=Jr(),{destroyer:n}=ys(),{isNodeStream:s,isReadable:o,isWritable:a,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=si(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:d,ERR_MISSING_ARGS:g}}=Ut(),p=Vi();e.exports=function(...y){if(y.length===0)throw new g("streams");if(y.length===1)return i.from(y[0]);let w,_,E,T,A,$=[...y];if(typeof y[0]=="function"&&(y[0]=i.from(y[0])),typeof y[y.length-1]=="function"){let M=y.length-1;y[M]=i.from(y[M])}for(let M=0;M0&&!(a(y[M])||u(y[M])||c(y[M])))throw new d(`streams[${M}]`,$[M],"must be writable")}let k=y[0],x=r(y,function(M){let Z=T;T=null,Z?Z(M):M?A.destroy(M):!O&&!v&&A.destroy()}),v=!!(a(k)||u(k)||c(k)),O=!!(o(x)||f(x)||c(x));if(A=new i({writableObjectMode:!(k==null||!k.writableObjectMode),readableObjectMode:!(x==null||!x.readableObjectMode),writable:v,readable:O}),v){if(s(k))A._write=function(Z,te,U){k.write(Z,te)?U():w=U},A._final=function(Z){k.end(),_=Z},k.on("drain",function(){if(w){let Z=w;w=null,Z()}});else if(l(k)){let Z=(c(k)?k.writable:k).getWriter();A._write=async function(te,U,W){try{await Z.ready,Z.write(te).catch(()=>{}),W()}catch(re){W(re)}},A._final=async function(te){try{await Z.ready,Z.close().catch(()=>{}),_=te}catch(U){te(U)}}}let M=c(x)?x.readable:x;p(M,()=>{if(_){let Z=_;_=null,Z()}})}if(O){if(s(x))x.on("readable",function(){if(E){let M=E;E=null,M()}}),x.on("end",function(){A.push(null)}),A._read=function(){for(;;){let M=x.read();if(M===null)return void(E=A._read);if(!A.push(M))return}};else if(l(x)){let M=(c(x)?x.readable:x).getReader();A._read=async function(){for(;;)try{let{value:Z,done:te}=await M.read();if(!A.push(Z))return;if(te)return void A.push(null)}catch{return}}}}return A._destroy=function(M,Z){!M&&T!==null&&(M=new h),E=null,w=null,_=null,T===null?Z(M):(T=Z,s(x)&&n(x,M))},A}}),CS=_e((t,e)=>{ye(),ve(),be();var r=globalThis.AbortController||Oo().AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:n,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:o},AbortError:a}=Ut(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=Fo(),f=ct().Symbol("kWeak"),h=ct().Symbol("kResistStopPropagation"),{finished:d}=Vi(),g=Jb(),{addAbortSignalNoValidate:p}=Zl(),{isWritable:y,isNodeStream:w}=si(),{deprecate:_}=qt(),{ArrayPrototypePush:E,Boolean:T,MathFloor:A,Number:$,NumberIsNaN:k,Promise:x,PromiseReject:v,PromiseResolve:O,PromisePrototypeThen:M,Symbol:Z}=ct(),te=Z("kEmpty"),U=Z("kEof");function W(q,j){if(typeof q!="function")throw new n("fn",["Function","AsyncFunction"],q);j!=null&&u(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal");let B=1;(j==null?void 0:j.concurrency)!=null&&(B=A(j.concurrency));let Y=B-1;return(j==null?void 0:j.highWaterMark)!=null&&(Y=A(j.highWaterMark)),c(B,"options.concurrency",1),c(Y,"options.highWaterMark",0),Y+=B,(async function*(){let V,ce,he=qt().AbortSignalAny([j==null?void 0:j.signal].filter(T)),pe=this,z=[],ie={signal:he},ne=!1,L=0;function G(){ne=!0,C()}function C(){L-=1,J()}function J(){ce&&!ne&&L=Y||L>=B)&&await new x(b=>{ce=b})}z.push(U)}catch(m){let b=v(m);M(b,C,G),z.push(b)}finally{ne=!0,V&&(V(),V=null)}})();try{for(;;){for(;z.length>0;){let m=await z[0];if(m===U)return;if(he.aborted)throw new a;m!==te&&(yield m),z.shift(),J()}await new x(m=>{V=m})}}finally{ne=!0,ce&&(ce(),ce=null)}}).call(this)}async function re(q,j=void 0){for await(let B of H.call(this,q,j))return!0;return!1}function H(q,j){if(typeof q!="function")throw new n("fn",["Function","AsyncFunction"],q);return W.call(this,async function(B,Y){return await q(B,Y)?B:te},j)}var oe=class extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};function K(q){if(q=$(q),k(q))return 0;if(q<0)throw new o("number",">= 0",q);return q}e.exports.streamReturningOperators={asIndexedPairs:_(function(q=void 0){return q!=null&&u(q,"options"),(q==null?void 0:q.signal)!=null&&l(q.signal,"options.signal"),(async function*(){let j=0;for await(let Y of this){var B;if(q!=null&&(B=q.signal)!==null&&B!==void 0&&B.aborted)throw new a({cause:q.signal.reason});yield[j++,Y]}}).call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function(q,j=void 0){return j!=null&&u(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),q=K(q),(async function*(){var B;if(j!=null&&(B=j.signal)!==null&&B!==void 0&&B.aborted)throw new a;for await(let V of this){var Y;if(j!=null&&(Y=j.signal)!==null&&Y!==void 0&&Y.aborted)throw new a;q--<=0&&(yield V)}}).call(this)},filter:H,flatMap:function(q,j){let B=W.call(this,q,j);return(async function*(){for await(let Y of B)yield*Y}).call(this)},map:W,take:function(q,j=void 0){return j!=null&&u(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),q=K(q),(async function*(){var B;if(j!=null&&(B=j.signal)!==null&&B!==void 0&&B.aborted)throw new a;for await(let V of this){var Y;if(j!=null&&(Y=j.signal)!==null&&Y!==void 0&&Y.aborted)throw new a;if(q-- >0&&(yield V),q<=0)return}}).call(this)},compose:function(q,j){if(j!=null&&u(j,"options"),(j==null?void 0:j.signal)!=null&&l(j.signal,"options.signal"),w(q)&&!y(q))throw new i("stream",q,"must be writable");let B=g(this,q);return j!=null&&j.signal&&p(j.signal,B),B}},e.exports.promiseReturningOperators={every:async function(q,j=void 0){if(typeof q!="function")throw new n("fn",["Function","AsyncFunction"],q);return!await re.call(this,async(...B)=>!await q(...B),j)},forEach:async function(q,j){if(typeof q!="function")throw new n("fn",["Function","AsyncFunction"],q);for await(let B of W.call(this,async function(Y,V){return await q(Y,V),te},j));},reduce:async function(q,j,B){var Y;if(typeof q!="function")throw new n("reducer",["Function","AsyncFunction"],q);B!=null&&u(B,"options"),(B==null?void 0:B.signal)!=null&&l(B.signal,"options.signal");let V=arguments.length>1;if(B!=null&&(Y=B.signal)!==null&&Y!==void 0&&Y.aborted){let ie=new a(void 0,{cause:B.signal.reason});throw this.once("error",()=>{}),await d(this.destroy(ie)),ie}let ce=new r,he=ce.signal;if(B!=null&&B.signal){let ie={once:!0,[f]:this,[h]:!0};B.signal.addEventListener("abort",()=>ce.abort(),ie)}let pe=!1;try{for await(let ie of this){var z;if(pe=!0,B!=null&&(z=B.signal)!==null&&z!==void 0&&z.aborted)throw new a;V?j=await q(j,ie,{signal:he}):(j=ie,V=!0)}if(!pe&&!V)throw new oe}finally{ce.abort()}return j},toArray:async function(q){q!=null&&u(q,"options"),(q==null?void 0:q.signal)!=null&&l(q.signal,"options.signal");let j=[];for await(let Y of this){var B;if(q!=null&&(B=q.signal)!==null&&B!==void 0&&B.aborted)throw new a(void 0,{cause:q.signal.reason});E(j,Y)}return j},some:re,find:async function(q,j){for await(let B of H.call(this,q,j))return B}}}),ev=_e((t,e)=>{ye(),ve(),be();var{ArrayPrototypePop:r,Promise:i}=ct(),{isIterable:n,isNodeStream:s,isWebStream:o}=si(),{pipelineImpl:a}=Ff(),{finished:l}=Vi();tv(),e.exports={finished:l,pipeline:function(...c){return new i((u,f)=>{let h,d,g=c[c.length-1];if(g&&typeof g=="object"&&!s(g)&&!n(g)&&!o(g)){let p=r(c);h=p.signal,d=p.end}a(c,(p,y)=>{p?f(p):u(y)},{signal:h,end:d})})}}}),tv=_e((t,e)=>{ye(),ve(),be();var{Buffer:r}=(Et(),Ge(kt)),{ObjectDefineProperty:i,ObjectKeys:n,ReflectApply:s}=ct(),{promisify:{custom:o}}=qt(),{streamReturningOperators:a,promiseReturningOperators:l}=CS(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Ut(),u=Jb(),{setDefaultHighWaterMark:f,getDefaultHighWaterMark:h}=Xl(),{pipeline:d}=Ff(),{destroyer:g}=ys(),p=Vi(),y=ev(),w=si(),_=e.exports=jf().Stream;_.isDestroyed=w.isDestroyed,_.isDisturbed=w.isDisturbed,_.isErrored=w.isErrored,_.isReadable=w.isReadable,_.isWritable=w.isWritable,_.Readable=Ql();for(let T of n(a)){let A=function(...k){if(new.target)throw c();return _.Readable.from(s($,this,k))},$=a[T];i(A,"name",{__proto__:null,value:$.name}),i(A,"length",{__proto__:null,value:$.length}),i(_.Readable.prototype,T,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}for(let T of n(l)){let A=function(...k){if(new.target)throw c();return s($,this,k)},$=l[T];i(A,"name",{__proto__:null,value:$.name}),i(A,"length",{__proto__:null,value:$.length}),i(_.Readable.prototype,T,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Bf(),_.Duplex=Jr(),_.Transform=Xb(),_.PassThrough=Qb(),_.pipeline=d;var{addAbortSignal:E}=Zl();_.addAbortSignal=E,_.finished=p,_.destroy=g,_.compose=u,_.setDefaultHighWaterMark=f,_.getDefaultHighWaterMark=h,i(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(d,o,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(p,o,{__proto__:null,enumerable:!0,get:()=>y.finished}),_.Stream=_,_._isUint8Array=function(T){return T instanceof Uint8Array},_._uint8ArrayToBuffer=function(T){return r.from(T.buffer,T.byteOffset,T.byteLength)}}),Tn=_e((t,e)=>{ye(),ve(),be();var r=tv(),i=ev(),n=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=n,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=r.Stream,e.exports.default=e.exports}),PS=_e((t,e)=>{ye(),ve(),be(),typeof Object.create=="function"?e.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,i){if(i){r.super_=i;var n=function(){};n.prototype=i.prototype,r.prototype=new n,r.prototype.constructor=r}}}),RS=_e((t,e)=>{ye(),ve(),be();var{Buffer:r}=(Et(),Ge(kt)),i=Symbol.for("BufferList");function n(s){if(!(this instanceof n))return new n(s);n._init.call(this,s)}n._init=function(s){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,s&&this.append(s)},n.prototype._new=function(s){return new n(s)},n.prototype._offset=function(s){if(s===0)return[0,0];let o=0;for(let a=0;athis.length||s<0)return;let o=this._offset(s);return this._bufs[o[0]][o[1]]},n.prototype.slice=function(s,o){return typeof s=="number"&&s<0&&(s+=this.length),typeof o=="number"&&o<0&&(o+=this.length),this.copy(null,0,s,o)},n.prototype.copy=function(s,o,a,l){if((typeof a!="number"||a<0)&&(a=0),(typeof l!="number"||l>this.length)&&(l=this.length),a>=this.length||l<=0)return s||r.alloc(0);let c=!!s,u=this._offset(a),f=l-a,h=f,d=c&&o||0,g=u[1];if(a===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let p=0;py)){this._bufs[p].copy(s,d,g,g+h),d+=y;break}this._bufs[p].copy(s,d,g),d+=y,h-=y,g&&(g=0)}return s.length>d?s.slice(0,d):s},n.prototype.shallowSlice=function(s,o){if(s=s||0,o=typeof o!="number"?this.length:o,s<0&&(s+=this.length),o<0&&(o+=this.length),s===o)return this._new();let a=this._offset(s),l=this._offset(o),c=this._bufs.slice(a[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),a[1]!==0&&(c[0]=c[0].slice(a[1])),this._new(c)},n.prototype.toString=function(s,o,a){return this.slice(o,a).toString(s)},n.prototype.consume=function(s){if(s=Math.trunc(s),Number.isNaN(s)||s<=0)return this;for(;this._bufs.length;){if(!(s>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(s),this.length-=s;break}s-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},n.prototype.duplicate=function(){let s=this._new();for(let o=0;othis.length?this.length:o;let l=this._offset(o),c=l[0],u=l[1];for(;c=s.length){let h=f.indexOf(s,u);if(h!==-1)return this._reverseOffset([c,h]);u=f.length-s.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,s))return h;u++}u=0}return-1},n.prototype._match=function(s,o){if(this.length-s{ye(),ve(),be();var r=Tn().Duplex,i=PS(),n=RS();function s(o){if(!(this instanceof s))return new s(o);if(typeof o=="function"){this._callback=o;let a=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",a)}),this.on("unpipe",function(l){l.removeListener("error",a)}),o=null}n._init.call(this,o),r.call(this)}i(s,r),Object.assign(s.prototype,n.prototype),s.prototype._new=function(o){return new s(o)},s.prototype._write=function(o,a,l){this._appendBuffer(o),typeof l=="function"&&l()},s.prototype._read=function(o){if(!this.length)return this.push(null);o=Math.min(o,this.length),this.push(this.slice(0,o)),this.consume(o)},s.prototype.end=function(o){r.prototype.end.call(this,o),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype._destroy=function(o,a){this._bufs.length=0,this.length=0,a(o)},s.prototype._isBufferList=function(o){return o instanceof s||o instanceof n||s.isBufferList(o)},s.isBufferList=n.isBufferList,e.exports=s,e.exports.BufferListStream=s,e.exports.BufferList=n}),LS=_e((t,e)=>{ye(),ve(),be(),e.exports=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}}),rv=_e((t,e)=>{ye(),ve(),be();var r=e.exports,{Buffer:i}=(Et(),Ge(kt));r.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},r.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},r.requiredHeaderFlagsErrors={};for(let s in r.requiredHeaderFlags){let o=r.requiredHeaderFlags[s];r.requiredHeaderFlagsErrors[s]="Invalid header flag bits, must be 0x"+o.toString(16)+" for "+r.types[s]+" packet"}r.codes={};for(let s in r.types){let o=r.types[s];r.codes[o]=s}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=i.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=i.from([r.codes.connack<[0,1].map(a=>[0,1].map(l=>{let c=i.alloc(1);return c.writeUInt8(r.codes[s]<i.from([s])),r.EMPTY={pingreq:i.from([r.codes.pingreq<<4,0]),pingresp:i.from([r.codes.pingresp<<4,0]),disconnect:i.from([r.codes.disconnect<<4,0])},r.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},r.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),NS=_e((t,e)=>{ye(),ve(),be();var r=1e3,i=6e4,n=60*i,s=24*n,o=7*s,a=365.25*s;function l(c,u,f,h){var d=u>=1.5*f;return Math.round(c/f)+" "+h+(d?"s":"")}e.exports=function(c,u){u=u||{};var f=typeof c;if(f==="string"&&c.length>0)return function(h){if(h=String(h),!(h.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(d){var g=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return g*a;case"weeks":case"week":case"w":return g*o;case"days":case"day":case"d":return g*s;case"hours":case"hour":case"hrs":case"hr":case"h":return g*n;case"minutes":case"minute":case"mins":case"min":case"m":return g*i;case"seconds":case"second":case"secs":case"sec":case"s":return g*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}(c);if(f==="number"&&isFinite(c))return u.long?function(h){var d=Math.abs(h);return d>=s?l(h,d,s,"day"):d>=n?l(h,d,n,"hour"):d>=i?l(h,d,i,"minute"):d>=r?l(h,d,r,"second"):h+" ms"}(c):function(h){var d=Math.abs(h);return d>=s?Math.round(h/s)+"d":d>=n?Math.round(h/n)+"h":d>=i?Math.round(h/i)+"m":d>=r?Math.round(h/r)+"s":h+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}}),jS=_e((t,e)=>{ye(),ve(),be(),e.exports=function(r){function i(o){let a,l,c,u=null;function f(...h){if(!f.enabled)return;let d=f,g=Number(new Date),p=g-(a||g);d.diff=p,d.prev=a,d.curr=g,a=g,h[0]=i.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let y=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(w,_)=>{if(w==="%%")return"%";y++;let E=i.formatters[_];if(typeof E=="function"){let T=h[y];w=E.call(d,T),h.splice(y,1),y--}return w}),i.formatArgs.call(d,h),(d.log||i.log).apply(d,h)}return f.namespace=o,f.useColors=i.useColors(),f.color=i.selectColor(o),f.extend=n,f.destroy=i.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(l!==i.namespaces&&(l=i.namespaces,c=i.enabled(o)),c),set:h=>{u=h}}),typeof i.init=="function"&&i.init(f),f}function n(o,a){let l=i(this.namespace+(typeof a>"u"?":":a)+o);return l.log=this.log,l}function s(o,a){let l=0,c=0,u=-1,f=0;for(;l"-"+a)].join(",");return i.enable(""),o},i.enable=function(o){i.save(o),i.namespaces=o,i.names=[],i.skips=[];let a=(typeof o=="string"?o:"").trim().replace(" ",",").split(",").filter(Boolean);for(let l of a)l[0]==="-"?i.skips.push(l.slice(1)):i.names.push(l)},i.enabled=function(o){for(let a of i.skips)if(s(o,a))return!1;for(let a of i.names)if(s(o,a))return!0;return!1},i.humanize=NS(),i.destroy=function(){},Object.keys(r).forEach(o=>{i[o]=r[o]}),i.names=[],i.skips=[],i.formatters={},i.selectColor=function(o){let a=0;for(let l=0;l{ye(),ve(),be(),t.formatArgs=function(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;i.splice(1,0,n,"color: inherit");let s=0,o=0;i[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(s++,a==="%c"&&(o=s))}),i.splice(o,0,n)},t.save=function(i){try{i?t.storage.setItem("debug",i):t.storage.removeItem("debug")}catch{}},t.load=function(){let i;try{i=t.storage.getItem("debug")}catch{}return!i&&typeof Je<"u"&&"env"in Je&&(i=Je.env.DEBUG),i},t.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let i=!1;return()=>{i||(i=!0)}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=jS()(t);var{formatters:r}=e.exports;r.j=function(i){try{return JSON.stringify(i)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}}),BS=_e((t,e)=>{ye(),ve(),be();var r=DS(),{EventEmitter:i}=(En(),Ge(Ui)),n=LS(),s=rv(),o=ei()("mqtt-packet:parser");e.exports=class Ch extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(l){return this instanceof Ch?(this.settings=l||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Ch().parser(l)}_resetState(){o("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new n,this.error=null,this._list=r(),this._stateCounter=0}parse(l){for(this.error&&this._resetState(),this._list.append(l),o("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,o("parse: state complete. _stateCounter is now: %d",this._stateCounter),o("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return o("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let l=this._list.readUInt8(0),c=l>>s.CMD_SHIFT;this.packet.cmd=s.types[c];let u=15&l,f=s.requiredHeaderFlags[c];return f!=null&&u!==f?this._emitError(new Error(s.requiredHeaderFlagsErrors[c])):(this.packet.retain=!!(l&s.RETAIN_MASK),this.packet.qos=l>>s.QOS_SHIFT&s.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=!!(l&s.DUP_MASK),o("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let l=this._parseVarByteNum(!0);return l&&(this.packet.length=l.value,this._list.consume(l.bytes)),o("_parseLength %d",l.value),!!l}_parsePayload(){o("_parsePayload: payload %O",this._list);let l=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}l=!0}return o("_parsePayload complete result: %s",l),l}_parseConnect(){o("_parseConnect");let l,c,u,f,h={},d=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(d.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(d.protocolVersion=this._list.readUInt8(this._pos),d.protocolVersion>=128&&(d.bridgeMode=!0,d.protocolVersion=d.protocolVersion-128),d.protocolVersion!==3&&d.protocolVersion!==4&&d.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(1&this._list.readUInt8(this._pos))return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));h.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK;let p=!!(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),y=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT;if(h.will)d.will={},d.will.retain=p,d.will.qos=y;else{if(p)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(y)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(d.clean=!!(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK),this._pos++,d.keepalive=this._parseNum(),d.keepalive===-1)return this._emitError(new Error("Packet too short"));if(d.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.properties=_)}let w=this._parseString();if(w===null)return this._emitError(new Error("Packet too short"));if(d.clientId=w,o("_parseConnect: packet.clientId: %s",d.clientId),h.will){if(d.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(d.will.properties=_)}if(l=this._parseString(),l===null)return this._emitError(new Error("Cannot parse will topic"));if(d.will.topic=l,o("_parseConnect: packet.will.topic: %s",d.will.topic),c=this._parseBuffer(),c===null)return this._emitError(new Error("Cannot parse will payload"));d.will.payload=c,o("_parseConnect: packet.will.paylaod: %s",d.will.payload)}if(h.username){if(f=this._parseString(),f===null)return this._emitError(new Error("Cannot parse username"));d.username=f,o("_parseConnect: packet.username: %s",d.username)}if(h.password){if(u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse password"));d.password=u}return this.settings=d,o("_parseConnect: complete"),d}_parseConnack(){o("_parseConnack");let l=this.packet;if(this._list.length<1)return null;let c=this._list.readUInt8(this._pos++);if(c>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(l.sessionPresent=!!(c&s.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?l.reasonCode=this._list.readUInt8(this._pos++):l.reasonCode=0;else{if(this._list.length<2)return null;l.returnCode=this._list.readUInt8(this._pos++)}if(l.returnCode===-1||l.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(l.properties=u)}o("_parseConnack: complete")}_parsePublish(){o("_parsePublish");let l=this.packet;if(l.topic=this._parseString(),l.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(l.qos>0)||this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(l.properties=c)}l.payload=this._list.slice(this._pos,l.length),o("_parsePublish: payload from buffer list: %o",l.payload)}}_parseSubscribe(){o("_parseSubscribe");let l,c,u,f,h,d,g,p=this.packet;if(p.subscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let y=this._parseProperties();Object.getOwnPropertyNames(y).length&&(p.properties=y)}if(p.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=p.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(c=this._parseByte(),this.settings.protocolVersion===5){if(192&c)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(252&c)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(u=c&s.SUBSCRIBE_OPTIONS_QOS_MASK,u>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(d=!!(c>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK),h=!!(c>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK),f=c>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,f>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));g={topic:l,qos:u},this.settings.protocolVersion===5?(g.nl=d,g.rap=h,g.rh=f):this.settings.bridgeMode&&(g.rh=0,g.rap=!0,g.nl=!0),o("_parseSubscribe: push subscription `%s` to subscription",g),p.subscriptions.push(g)}}}_parseSuback(){o("_parseSuback");let l=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(l.properties=c)}if(l.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&c!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(c)}}}_parseUnsubscribe(){o("_parseUnsubscribe");let l=this.packet;if(l.unsubscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(l.properties=c)}if(l.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(l.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!s.MQTT5_PUBACK_PUBREC_CODES[l.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!s.MQTT5_PUBREL_PUBCOMP_CODES[l.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"))}o("_parseConfirmation: packet.reasonCode `%d`",l.reasonCode)}else l.reasonCode=0;if(l.length>3){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(l.properties=c)}}return!0}_parseDisconnect(){let l=this.packet;if(o("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(l.reasonCode=this._parseByte(),s.MQTT5_DISCONNECT_CODES[l.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):l.reasonCode=0;let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(l.properties=c)}return o("_parseDisconnect result: true"),!0}_parseAuth(){o("_parseAuth");let l=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(l.reasonCode=this._parseByte(),!s.MQTT5_AUTH_CODES[l.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let c=this._parseProperties();return Object.getOwnPropertyNames(c).length&&(l.properties=c),o("_parseAuth: result: true"),!0}_parseMessageId(){let l=this.packet;return l.messageId=this._parseNum(),l.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(o("_parseMessageId: packet.messageId %d",l.messageId),!0)}_parseString(l){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.toString("utf8",this._pos,u);return this._pos+=c,o("_parseString: result: %s",f),f}_parseStringPair(){return o("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let l=this._parseNum(),c=l+this._pos;if(l===-1||c>this._list.length||c>this.packet.length)return null;let u=this._list.slice(this._pos,c);return this._pos+=l,o("_parseBuffer: result: %o",u),u}_parseNum(){if(this._list.length-this._pos<2)return-1;let l=this._list.readUInt16BE(this._pos);return this._pos+=2,o("_parseNum: result: %s",l),l}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let l=this._list.readUInt32BE(this._pos);return this._pos+=4,o("_parse4ByteNum: result: %s",l),l}_parseVarByteNum(l){o("_parseVarByteNum");let c,u=0,f=1,h=0,d=!1,g=this._pos?this._pos:0;for(;u<4&&g+u=u&&this._emitError(new Error("Invalid variable byte integer")),g&&(this._pos+=u),d=!!d&&(l?{bytes:u,value:h}:h),o("_parseVarByteNum: result: %o",d),d}_parseByte(){let l;return this._pos{ye(),ve(),be();var{Buffer:r}=(Et(),Ge(kt)),i={},n=r.isBuffer(r.from([1,2]).subarray(0,1));function s(o){let a=r.allocUnsafe(2);return a.writeUInt8(o>>8,0),a.writeUInt8(255&o,1),a}e.exports={cache:i,generateCache:function(){for(let o=0;o<65536;o++)i[o]=s(o)},generateNumber:s,genBufVariableByteInt:function(o){let a=0,l=0,c=r.allocUnsafe(4);do a=o%128|0,(o=o/128|0)>0&&(a|=128),c.writeUInt8(a,l++);while(o>0&&l<4);return o>0&&(l=0),n?c.subarray(0,l):c.slice(0,l)},generate4ByteBuffer:function(o){let a=r.allocUnsafe(4);return a.writeUInt32BE(o,0),a}}}),WS=_e((t,e)=>{ye(),ve(),be(),typeof Je>"u"||!Je.version||Je.version.indexOf("v0.")===0||Je.version.indexOf("v1.")===0&&Je.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(r,i,n,s){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var o,a,l=arguments.length;switch(l){case 0:case 1:return Je.nextTick(r);case 2:return Je.nextTick(function(){r.call(null,i)});case 3:return Je.nextTick(function(){r.call(null,i,n)});case 4:return Je.nextTick(function(){r.call(null,i,n,s)});default:for(o=new Array(l-1),a=0;a{ye(),ve(),be();var r=rv(),{Buffer:i}=(Et(),Ge(kt)),n=i.allocUnsafe(0),s=i.from([0]),o=FS(),a=WS().nextTick,l=ei()("mqtt-packet:writeToStream"),c=o.cache,u=o.generateNumber,f=o.generateCache,h=o.genBufVariableByteInt,d=o.generate4ByteBuffer,g=$,p=!0;function y(W,re,H){switch(l("generate called"),re.cork&&(re.cork(),a(w,re)),p&&(p=!1,f()),l("generate: packet.cmd: %s",W.cmd),W.cmd){case"connect":return function(oe,K){let q=oe||{},j=q.protocolId||"MQTT",B=q.protocolVersion||4,Y=q.will,V=q.clean,ce=q.keepalive||0,he=q.clientId||"",pe=q.username,z=q.password,ie=q.properties;V===void 0&&(V=!0);let ne,L,G=0;if(typeof j!="string"&&!i.isBuffer(j))return K.destroy(new Error("Invalid protocolId")),!1;if(G+=j.length+2,B!==3&&B!==4&&B!==5)return K.destroy(new Error("Invalid protocol version")),!1;if(G+=1,(typeof he=="string"||i.isBuffer(he))&&(he||B>=4)&&(he||V))G+=i.byteLength(he)+2;else{if(B<4)return K.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(1*V==0)return K.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof ce!="number"||ce<0||ce>65535||ce%1!=0)return K.destroy(new Error("Invalid keepalive")),!1;if(G+=2,G+=1,B===5){if(ne=v(K,ie),!ne)return!1;G+=ne.length}if(Y){if(typeof Y!="object")return K.destroy(new Error("Invalid will")),!1;if(!Y.topic||typeof Y.topic!="string")return K.destroy(new Error("Invalid will topic")),!1;if(G+=i.byteLength(Y.topic)+2,G+=2,Y.payload){if(!(Y.payload.length>=0))return K.destroy(new Error("Invalid will payload")),!1;typeof Y.payload=="string"?G+=i.byteLength(Y.payload):G+=Y.payload.length}if(L={},B===5){if(L=v(K,Y.properties),!L)return!1;G+=L.length}}let C=!1;if(pe!=null){if(!U(pe))return K.destroy(new Error("Invalid username")),!1;C=!0,G+=i.byteLength(pe)+2}if(z!=null){if(!C)return K.destroy(new Error("Username is required to use password")),!1;if(!U(z))return K.destroy(new Error("Invalid password")),!1;G+=te(z)+2}K.write(r.CONNECT_HEADER),E(K,G),x(K,j),q.bridgeMode&&(B+=128),K.write(B===131?r.VERSION131:B===132?r.VERSION132:B===4?r.VERSION4:B===5?r.VERSION5:r.VERSION3);let J=0;return J|=pe!=null?r.USERNAME_MASK:0,J|=z!=null?r.PASSWORD_MASK:0,J|=Y&&Y.retain?r.WILL_RETAIN_MASK:0,J|=Y&&Y.qos?Y.qos<0&&g(K,pe),ne==null||ne.write(),l("publish: payload: %o",he),K.write(he)}(W,re,H);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(oe,K,q){let j=q?q.protocolVersion:4,B=oe||{},Y=B.cmd||"puback",V=B.messageId,ce=B.dup&&Y==="pubrel"?r.DUP_MASK:0,he=0,pe=B.reasonCode,z=B.properties,ie=j===5?3:2;if(Y==="pubrel"&&(he=1),typeof V!="number")return K.destroy(new Error("Invalid messageId")),!1;let ne=null;if(j===5&&typeof z=="object"){if(ne=O(K,z,q,ie),!ne)return!1;ie+=ne.length}return K.write(r.ACKS[Y][he][ce][0]),ie===3&&(ie+=pe!==0?1:-1),E(K,ie),g(K,V),j===5&&ie!==2&&K.write(i.from([pe])),ne!==null?ne.write():ie===4&&K.write(i.from([0])),!0}(W,re,H);case"subscribe":return function(oe,K,q){l("subscribe: packet: ");let j=q?q.protocolVersion:4,B=oe||{},Y=B.dup?r.DUP_MASK:0,V=B.messageId,ce=B.subscriptions,he=B.properties,pe=0;if(typeof V!="number")return K.destroy(new Error("Invalid messageId")),!1;pe+=2;let z=null;if(j===5){if(z=v(K,he),!z)return!1;pe+=z.length}if(typeof ce!="object"||!ce.length)return K.destroy(new Error("Invalid subscriptions")),!1;for(let ne=0;ne2)return K.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}pe+=i.byteLength(L)+2+1}l("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),K.write(r.SUBSCRIBE_HEADER[1][Y?1:0][0]),E(K,pe),g(K,V),z!==null&&z.write();let ie=!0;for(let ne of ce){let L,G=ne.topic,C=ne.qos,J=+ne.nl,m=+ne.rap,b=ne.rh;T(K,G),L=r.SUBSCRIBE_OPTIONS_QOS[C],j===5&&(L|=J?r.SUBSCRIBE_OPTIONS_NL:0,L|=m?r.SUBSCRIBE_OPTIONS_RAP:0,L|=b?r.SUBSCRIBE_OPTIONS_RH[b]:0),ie=K.write(i.from([L]))}return ie}(W,re,H);case"suback":return function(oe,K,q){let j=q?q.protocolVersion:4,B=oe||{},Y=B.messageId,V=B.granted,ce=B.properties,he=0;if(typeof Y!="number")return K.destroy(new Error("Invalid messageId")),!1;if(he+=2,typeof V!="object"||!V.length)return K.destroy(new Error("Invalid qos vector")),!1;for(let z=0;zg===$,set(W){W?((!c||Object.keys(c).length===0)&&(p=!0),g=$):(p=!1,g=k)}});var _={};function E(W,re){if(re>r.VARBYTEINT_MAX)return W.destroy(new Error(`Invalid variable byte integer: ${re}`)),!1;let H=_[re];return H||(H=h(re),re<16384&&(_[re]=H)),l("writeVarByteInt: writing to stream: %o",H),W.write(H)}function T(W,re){let H=i.byteLength(re);return g(W,H),l("writeString: %s",re),W.write(re,"utf8")}function A(W,re,H){T(W,re),T(W,H)}function $(W,re){return l("writeNumberCached: number: %d",re),l("writeNumberCached: %o",c[re]),W.write(c[re])}function k(W,re){let H=u(re);return l("writeNumberGenerated: %o",H),W.write(H)}function x(W,re){typeof re=="string"?T(W,re):re?(g(W,re.length),W.write(re)):g(W,0)}function v(W,re){if(typeof re!="object"||re.length!=null)return{length:1,write(){Z(W,{},0)}};let H=0;function oe(K,q){let j=0;switch(r.propertiesTypes[K]){case"byte":if(typeof q!="boolean")return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=2;break;case"int8":if(typeof q!="number"||q<0||q>255)return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=2;break;case"binary":if(q&&q===null)return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=1+i.byteLength(q)+2;break;case"int16":if(typeof q!="number"||q<0||q>65535)return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=3;break;case"int32":if(typeof q!="number"||q<0||q>4294967295)return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=5;break;case"var":if(typeof q!="number"||q<0||q>268435455)return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=1+i.byteLength(h(q));break;case"string":if(typeof q!="string")return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=3+i.byteLength(q.toString());break;case"pair":if(typeof q!="object")return W.destroy(new Error(`Invalid ${K}: ${q}`)),!1;j+=Object.getOwnPropertyNames(q).reduce((B,Y)=>{let V=q[Y];return Array.isArray(V)?B+=V.reduce((ce,he)=>ce+=3+i.byteLength(Y.toString())+2+i.byteLength(he.toString()),0):B+=3+i.byteLength(Y.toString())+2+i.byteLength(q[Y].toString()),B},0);break;default:return W.destroy(new Error(`Invalid property ${K}: ${q}`)),!1}return j}if(re)for(let K in re){let q=0,j=0,B=re[K];if(Array.isArray(B))for(let Y=0;Yq;){let B=K.shift();if(!B||!re[B])return!1;delete re[B],j=v(W,re)}return j}function M(W,re,H){switch(r.propertiesTypes[re]){case"byte":W.write(i.from([r.properties[re]])),W.write(i.from([+H]));break;case"int8":W.write(i.from([r.properties[re]])),W.write(i.from([H]));break;case"binary":W.write(i.from([r.properties[re]])),x(W,H);break;case"int16":W.write(i.from([r.properties[re]])),g(W,H);break;case"int32":W.write(i.from([r.properties[re]])),function(oe,K){let q=d(K);l("write4ByteNumber: %o",q),oe.write(q)}(W,H);break;case"var":W.write(i.from([r.properties[re]])),E(W,H);break;case"string":W.write(i.from([r.properties[re]])),T(W,H);break;case"pair":Object.getOwnPropertyNames(H).forEach(oe=>{let K=H[oe];Array.isArray(K)?K.forEach(q=>{W.write(i.from([r.properties[re]])),A(W,oe.toString(),q.toString())}):(W.write(i.from([r.properties[re]])),A(W,oe.toString(),K.toString()))});break;default:return W.destroy(new Error(`Invalid property ${re} value: ${H}`)),!1}}function Z(W,re,H){E(W,H);for(let oe in re)if(Object.prototype.hasOwnProperty.call(re,oe)&&re[oe]!==null){let K=re[oe];if(Array.isArray(K))for(let q=0;q{ye(),ve(),be();var r=iv(),{EventEmitter:i}=(En(),Ge(Ui)),{Buffer:n}=(Et(),Ge(kt)),s=class extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(o){return this._array[this._i++]=o,!0}concat(){let o,a=0,l=new Array(this._array.length),c=this._array,u=0;for(o=0;o{ye(),ve(),be(),t.parser=BS().parser,t.generate=US(),t.writeToStream=iv()}),nv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.nextId=Math.max(1,Math.floor(65535*Math.random()))}allocate(){let e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}}}),$S=_e((t,e)=>{function r(i){return i instanceof pl?pl.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}ye(),ve(),be(),e.exports=function(i){if((i=i||{}).circles)return function(a){let l=[],c=[],u=new Map;if(u.set(Date,p=>new Date(p)),u.set(Map,(p,y)=>new Map(h(Array.from(p),y))),u.set(Set,(p,y)=>new Set(h(Array.from(p),y))),a.constructorHandlers)for(let p of a.constructorHandlers)u.set(p[0],p[1]);let f=null;return a.proto?g:d;function h(p,y){let w=Object.keys(p),_=new Array(w.length);for(let E=0;Enew Date(a)),n.set(Map,(a,l)=>new Map(o(Array.from(a),l))),n.set(Set,(a,l)=>new Set(o(Array.from(a),l))),i.constructorHandlers)for(let a of i.constructorHandlers)n.set(a[0],a[1]);let s=null;return i.proto?function a(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return o(l,a);if(l.constructor!==Object&&(s=n.get(l.constructor)))return s(l,a);let c={};for(let u in l){let f=l[u];typeof f!="object"||f===null?c[u]=f:f.constructor!==Object&&(s=n.get(f.constructor))?c[u]=s(f,a):ArrayBuffer.isView(f)?c[u]=r(f):c[u]=a(f)}return c}:function a(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return o(l,a);if(l.constructor!==Object&&(s=n.get(l.constructor)))return s(l,a);let c={};for(let u in l){if(Object.hasOwnProperty.call(l,u)===!1)continue;let f=l[u];typeof f!="object"||f===null?c[u]=f:f.constructor!==Object&&(s=n.get(f.constructor))?c[u]=s(f,a):ArrayBuffer.isView(f)?c[u]=r(f):c[u]=a(f)}return c};function o(a,l){let c=Object.keys(a),u=new Array(c.length);for(let f=0;f{ye(),ve(),be(),e.exports=$S()()}),HS=_e(t=>{function e(r){let i=r.split("/");for(let n=0;n{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e=Tn(),r={objectMode:!0},i={clean:!0};t.default=class{constructor(n){this.options=n||{},this.options=Object.assign(Object.assign({},i),n),this._inflights=new Map}put(n,s){return this._inflights.set(n.messageId,n),s&&s(),this}createStream(){let n=new e.Readable(r),s=[],o=!1,a=0;return this._inflights.forEach((l,c)=>{s.push(l)}),n._read=()=>{!o&&a{if(!o)return o=!0,setTimeout(()=>{n.emit("close")},0),n},n}del(n,s){let o=this._inflights.get(n.messageId);return o?(this._inflights.delete(n.messageId),s(null,o)):s&&s(new Error("missing packet")),this}get(n,s){let o=this._inflights.get(n.messageId);return o?s(null,o):s&&s(new Error("missing packet")),this}close(n){this.options.clean&&(this._inflights=null),n&&n()}}}),qS=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e=[0,16,128,131,135,144,145,151,153];t.default=(r,i,n)=>{r.log("handlePublish: packet %o",i),n=typeof n<"u"?n:r.noop;let s=i.topic.toString(),o=i.payload,{qos:a}=i,{messageId:l}=i,{options:c}=r;if(r.options.protocolVersion===5){let u;if(i.properties&&(u=i.properties.topicAlias),typeof u<"u")if(s.length===0){if(!(u>0&&u<=65535))return r.log("handlePublish :: topic alias out of range. alias: %d",u),void r.emit("error",new Error("Received Topic Alias is out of range"));{let f=r.topicAliasRecv.getTopicByAlias(u);if(!f)return r.log("handlePublish :: unregistered topic alias. alias: %d",u),void r.emit("error",new Error("Received unregistered Topic Alias"));s=f,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",s,u)}}else{if(!r.topicAliasRecv.put(s,u))return r.log("handlePublish :: topic alias out of range. alias: %d",u),void r.emit("error",new Error("Received Topic Alias is out of range"));r.log("handlePublish :: registered topic: %s - alias: %d",s,u)}}switch(r.log("handlePublish: qos %d",a),a){case 2:c.customHandleAcks(s,o,i,(u,f)=>(typeof u=="number"&&(f=u,u=null),u?r.emit("error",u):e.indexOf(f)===-1?r.emit("error",new Error("Wrong reason code for pubrec")):void(f?r._sendPacket({cmd:"pubrec",messageId:l,reasonCode:f},n):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:l},n)}))));break;case 1:c.customHandleAcks(s,o,i,(u,f)=>(typeof u=="number"&&(f=u,u=null),u?r.emit("error",u):e.indexOf(f)===-1?r.emit("error",new Error("Wrong reason code for puback")):(f||r.emit("message",s,o,i),void r.handleMessage(i,h=>{if(h)return n&&n(h);r._sendPacket({cmd:"puback",messageId:l,reasonCode:f},n)}))));break;case 0:r.emit("message",s,o,i),r.handleMessage(i,n);break;default:r.log("handlePublish: unknown QoS. Doing nothing.")}}}),YS=_e((t,e)=>{e.exports={version:"5.10.4"}}),bs=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.MQTTJS_VERSION=t.nextTick=t.ErrorWithReasonCode=void 0,t.applyMixin=function(r,i,n=!1){var s;let o=[i];for(;;){let a=o[0],l=Object.getPrototypeOf(a);if(!(l!=null&&l.prototype))break;o.unshift(l)}for(let a of o)for(let l of Object.getOwnPropertyNames(a.prototype))(n||l!=="constructor")&&Object.defineProperty(r.prototype,l,(s=Object.getOwnPropertyDescriptor(a.prototype,l))!==null&&s!==void 0?s:Object.create(null))};var e=class ov extends Error{constructor(i,n){super(i),this.code=n,Object.setPrototypeOf(this,ov.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};t.ErrorWithReasonCode=e,t.nextTick=typeof(Je==null?void 0:Je.nextTick)=="function"?Je.nextTick:r=>{setTimeout(r,0)},t.MQTTJS_VERSION=YS().version}),Jl=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0;var e=bs();t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.default=(r,i)=>{let{messageId:n}=i,s=i.cmd,o=null,a=r.outgoing[n]?r.outgoing[n].cb:null,l=null;if(a){switch(r.log("_handleAck :: packet type",s),s){case"pubcomp":case"puback":{let c=i.reasonCode;c&&c>0&&c!==16?(l=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),r._removeOutgoingAndStoreMessage(n,()=>{a(l,i)})):r._removeOutgoingAndStoreMessage(n,a);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:n};let c=i.reasonCode;c&&c>0&&c!==16?(l=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[c]}`,c),r._removeOutgoingAndStoreMessage(n,()=>{a(l,i)})):r._sendPacket(o);break}case"suback":{delete r.outgoing[n],r.messageIdProvider.deallocate(n);let c=i.granted;for(let u=0;u{delete r._resubscribeTopics[d]})}}delete r.messageIdToTopic[n],r._invokeStoreProcessingQueue(),a(l,i);break}case"unsuback":delete r.outgoing[n],r.messageIdProvider.deallocate(n),r._invokeStoreProcessingQueue(),a(null,i);break;default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")}else r.log("_handleAck :: Server sent an ack in error. Ignoring.")}}),KS=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e=bs(),r=Jl();t.default=(i,n)=>{let{options:s}=i,o=s.protocolVersion,a=o===5?n.reasonCode:n.returnCode;if(o===5)i.handleAuth(n,(l,c)=>{if(l)i.emit("error",l);else if(a===24)i.reconnecting=!1,i._sendPacket(c);else{let u=new e.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[a]}`,a);i.emit("error",u)}});else{let l=new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${o}`,a);i.emit("error",l)}}}),GS=_e(t=>{var h,d,g,p,y,w,_,E,T,A,$,k,x,v,O,M,Z,te,U,W,re,H,oe,K,q,j,B,Y,V,Ph,he,pe,z,ie,av,L,G,C,yi,bi,Rh,qa,Ya,tt,Dh,Vs,vi,Lh,de;ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,i=typeof Je=="object"&&Je?Je:{},n=(fe,F,Q,se)=>{typeof i.emitWarning=="function"&&i.emitWarning(fe,F,Q,se)},s=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof s>"u"){o=class{constructor(){Ee(this,"onabort");Ee(this,"_onabort",[]);Ee(this,"reason");Ee(this,"aborted",!1)}addEventListener(Q,se){this._onabort.push(se)}},s=class{constructor(){Ee(this,"signal",new o);F()}abort(Q){var se,I;if(!this.signal.aborted){this.signal.reason=Q,this.signal.aborted=!0;for(let P of this.signal._onabort)P(Q);(I=(se=this.signal).onabort)==null||I.call(se,Q)}}};let fe=((h=i.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",F=()=>{fe&&(fe=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",F))}}var a=fe=>fe&&fe===Math.floor(fe)&&fe>0&&isFinite(fe),l=fe=>a(fe)?fe<=Math.pow(2,8)?Uint8Array:fe<=Math.pow(2,16)?Uint16Array:fe<=Math.pow(2,32)?Uint32Array:fe<=Number.MAX_SAFE_INTEGER?c:null:null,c=class extends Array{constructor(fe){super(fe),this.fill(0)}},u=(d=class{constructor(F,Q){Ee(this,"heap");Ee(this,"length");if(!X(d,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Q(F),this.length=0}static create(F){let Q=l(F);if(!Q)return[];Te(d,g,!0);let se=new d(F,Q);return Te(d,g,!1),se}push(F){this.heap[this.length++]=F}pop(){return this.heap[--this.length]}},g=new WeakMap,je(d,g,!1),d),f=(de=class{constructor(F){je(this,V);je(this,w);je(this,_);je(this,E);je(this,T);je(this,A);je(this,$);Ee(this,"ttl");Ee(this,"ttlResolution");Ee(this,"ttlAutopurge");Ee(this,"updateAgeOnGet");Ee(this,"updateAgeOnHas");Ee(this,"allowStale");Ee(this,"noDisposeOnSet");Ee(this,"noUpdateTTL");Ee(this,"maxEntrySize");Ee(this,"sizeCalculation");Ee(this,"noDeleteOnFetchRejection");Ee(this,"noDeleteOnStaleGet");Ee(this,"allowStaleOnFetchAbort");Ee(this,"allowStaleOnFetchRejection");Ee(this,"ignoreFetchAbort");je(this,k);je(this,x);je(this,v);je(this,O);je(this,M);je(this,Z);je(this,te);je(this,U);je(this,W);je(this,re);je(this,H);je(this,oe);je(this,K);je(this,q);je(this,j);je(this,B);je(this,Y);je(this,he,()=>{});je(this,pe,()=>{});je(this,z,()=>{});je(this,ie,()=>!1);je(this,L,F=>{});je(this,G,(F,Q,se)=>{});je(this,C,(F,Q,se,I)=>{if(se||I)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Ee(this,p,"LRUCache");let{max:Q=0,ttl:se,ttlResolution:I=1,ttlAutopurge:P,updateAgeOnGet:ae,updateAgeOnHas:ge,allowStale:we,dispose:me,disposeAfter:Pe,noDisposeOnSet:xe,noUpdateTTL:ze,maxSize:Le=0,maxEntrySize:He=0,sizeCalculation:We,fetchMethod:Ze,memoMethod:Ae,noDeleteOnFetchRejection:Fe,noDeleteOnStaleGet:Tt,allowStaleOnFetchRejection:ot,allowStaleOnFetchAbort:yt,ignoreFetchAbort:ks}=F;if(Q!==0&&!a(Q))throw new TypeError("max option must be a nonnegative integer");let li=Q?l(Q):Array;if(!li)throw new Error("invalid max value: "+Q);if(Te(this,w,Q),Te(this,_,Le),this.maxEntrySize=He||X(this,_),this.sizeCalculation=We,this.sizeCalculation){if(!X(this,_)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ae!==void 0&&typeof Ae!="function")throw new TypeError("memoMethod must be a function if defined");if(Te(this,$,Ae),Ze!==void 0&&typeof Ze!="function")throw new TypeError("fetchMethod must be a function if specified");if(Te(this,A,Ze),Te(this,B,!!Ze),Te(this,v,new Map),Te(this,O,new Array(Q).fill(void 0)),Te(this,M,new Array(Q).fill(void 0)),Te(this,Z,new li(Q)),Te(this,te,new li(Q)),Te(this,U,0),Te(this,W,0),Te(this,re,u.create(Q)),Te(this,k,0),Te(this,x,0),typeof me=="function"&&Te(this,E,me),typeof Pe=="function"?(Te(this,T,Pe),Te(this,H,[])):(Te(this,T,void 0),Te(this,H,void 0)),Te(this,j,!!X(this,E)),Te(this,Y,!!X(this,T)),this.noDisposeOnSet=!!xe,this.noUpdateTTL=!!ze,this.noDeleteOnFetchRejection=!!Fe,this.allowStaleOnFetchRejection=!!ot,this.allowStaleOnFetchAbort=!!yt,this.ignoreFetchAbort=!!ks,this.maxEntrySize!==0){if(X(this,_)!==0&&!a(X(this,_)))throw new TypeError("maxSize must be a positive integer if specified");if(!a(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ke(this,V,av).call(this)}if(this.allowStale=!!we,this.noDeleteOnStaleGet=!!Tt,this.updateAgeOnGet=!!ae,this.updateAgeOnHas=!!ge,this.ttlResolution=a(I)||I===0?I:1,this.ttlAutopurge=!!P,this.ttl=se||0,this.ttl){if(!a(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ke(this,V,Ph).call(this)}if(X(this,w)===0&&this.ttl===0&&X(this,_)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!X(this,w)&&!X(this,_)){let In="LRU_CACHE_UNBOUNDED";(Zo=>!r.has(Zo))(In)&&(r.add(In),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",In,de))}}static unsafeExposeInternals(F){return{starts:X(F,K),ttls:X(F,q),sizes:X(F,oe),keyMap:X(F,v),keyList:X(F,O),valList:X(F,M),next:X(F,Z),prev:X(F,te),get head(){return X(F,U)},get tail(){return X(F,W)},free:X(F,re),isBackgroundFetch:Q=>{var se;return ke(se=F,V,tt).call(se,Q)},backgroundFetch:(Q,se,I,P)=>{var ae;return ke(ae=F,V,Ya).call(ae,Q,se,I,P)},moveToTail:Q=>{var se;return ke(se=F,V,Vs).call(se,Q)},indexes:Q=>{var se;return ke(se=F,V,yi).call(se,Q)},rindexes:Q=>{var se;return ke(se=F,V,bi).call(se,Q)},isStale:Q=>{var se;return X(se=F,ie).call(se,Q)}}}get max(){return X(this,w)}get maxSize(){return X(this,_)}get calculatedSize(){return X(this,x)}get size(){return X(this,k)}get fetchMethod(){return X(this,A)}get memoMethod(){return X(this,$)}get dispose(){return X(this,E)}get disposeAfter(){return X(this,T)}getRemainingTTL(F){return X(this,v).has(F)?1/0:0}*entries(){for(let F of ke(this,V,yi).call(this))X(this,M)[F]!==void 0&&X(this,O)[F]!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield[X(this,O)[F],X(this,M)[F]])}*rentries(){for(let F of ke(this,V,bi).call(this))X(this,M)[F]!==void 0&&X(this,O)[F]!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield[X(this,O)[F],X(this,M)[F]])}*keys(){for(let F of ke(this,V,yi).call(this)){let Q=X(this,O)[F];Q!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield Q)}}*rkeys(){for(let F of ke(this,V,bi).call(this)){let Q=X(this,O)[F];Q!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield Q)}}*values(){for(let F of ke(this,V,yi).call(this))X(this,M)[F]!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield X(this,M)[F])}*rvalues(){for(let F of ke(this,V,bi).call(this))X(this,M)[F]!==void 0&&!ke(this,V,tt).call(this,X(this,M)[F])&&(yield X(this,M)[F])}[(y=Symbol.iterator,p=Symbol.toStringTag,y)](){return this.entries()}find(F,Q={}){for(let se of ke(this,V,yi).call(this)){let I=X(this,M)[se],P=ke(this,V,tt).call(this,I)?I.__staleWhileFetching:I;if(P!==void 0&&F(P,X(this,O)[se],this))return this.get(X(this,O)[se],Q)}}forEach(F,Q=this){for(let se of ke(this,V,yi).call(this)){let I=X(this,M)[se],P=ke(this,V,tt).call(this,I)?I.__staleWhileFetching:I;P!==void 0&&F.call(Q,P,X(this,O)[se],this)}}rforEach(F,Q=this){for(let se of ke(this,V,bi).call(this)){let I=X(this,M)[se],P=ke(this,V,tt).call(this,I)?I.__staleWhileFetching:I;P!==void 0&&F.call(Q,P,X(this,O)[se],this)}}purgeStale(){let F=!1;for(let Q of ke(this,V,bi).call(this,{allowStale:!0}))X(this,ie).call(this,Q)&&(ke(this,V,vi).call(this,X(this,O)[Q],"expire"),F=!0);return F}info(F){let Q=X(this,v).get(F);if(Q===void 0)return;let se=X(this,M)[Q],I=ke(this,V,tt).call(this,se)?se.__staleWhileFetching:se;if(I===void 0)return;let P={value:I};if(X(this,q)&&X(this,K)){let ae=X(this,q)[Q],ge=X(this,K)[Q];if(ae&&ge){let we=ae-(e.now()-ge);P.ttl=we,P.start=Date.now()}}return X(this,oe)&&(P.size=X(this,oe)[Q]),P}dump(){let F=[];for(let Q of ke(this,V,yi).call(this,{allowStale:!0})){let se=X(this,O)[Q],I=X(this,M)[Q],P=ke(this,V,tt).call(this,I)?I.__staleWhileFetching:I;if(P===void 0||se===void 0)continue;let ae={value:P};if(X(this,q)&&X(this,K)){ae.ttl=X(this,q)[Q];let ge=e.now()-X(this,K)[Q];ae.start=Math.floor(Date.now()-ge)}X(this,oe)&&(ae.size=X(this,oe)[Q]),F.unshift([se,ae])}return F}load(F){this.clear();for(let[Q,se]of F){if(se.start){let I=Date.now()-se.start;se.start=e.now()-I}this.set(Q,se.value,se)}}set(F,Q,se={}){var ze,Le,He,We,Ze;if(Q===void 0)return this.delete(F),this;let{ttl:I=this.ttl,start:P,noDisposeOnSet:ae=this.noDisposeOnSet,sizeCalculation:ge=this.sizeCalculation,status:we}=se,{noUpdateTTL:me=this.noUpdateTTL}=se,Pe=X(this,C).call(this,F,Q,se.size||0,ge);if(this.maxEntrySize&&Pe>this.maxEntrySize)return we&&(we.set="miss",we.maxEntrySizeExceeded=!0),ke(this,V,vi).call(this,F,"set"),this;let xe=X(this,k)===0?void 0:X(this,v).get(F);if(xe===void 0)xe=X(this,k)===0?X(this,W):X(this,re).length!==0?X(this,re).pop():X(this,k)===X(this,w)?ke(this,V,qa).call(this,!1):X(this,k),X(this,O)[xe]=F,X(this,M)[xe]=Q,X(this,v).set(F,xe),X(this,Z)[X(this,W)]=xe,X(this,te)[xe]=X(this,W),Te(this,W,xe),Xo(this,k)._++,X(this,G).call(this,xe,Pe,we),we&&(we.set="add"),me=!1;else{ke(this,V,Vs).call(this,xe);let Ae=X(this,M)[xe];if(Q!==Ae){if(X(this,B)&&ke(this,V,tt).call(this,Ae)){Ae.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Fe}=Ae;Fe!==void 0&&!ae&&(X(this,j)&&((ze=X(this,E))==null||ze.call(this,Fe,F,"set")),X(this,Y)&&((Le=X(this,H))==null||Le.push([Fe,F,"set"])))}else ae||(X(this,j)&&((He=X(this,E))==null||He.call(this,Ae,F,"set")),X(this,Y)&&((We=X(this,H))==null||We.push([Ae,F,"set"])));if(X(this,L).call(this,xe),X(this,G).call(this,xe,Pe,we),X(this,M)[xe]=Q,we){we.set="replace";let Fe=Ae&&ke(this,V,tt).call(this,Ae)?Ae.__staleWhileFetching:Ae;Fe!==void 0&&(we.oldValue=Fe)}}else we&&(we.set="update")}if(I!==0&&!X(this,q)&&ke(this,V,Ph).call(this),X(this,q)&&(me||X(this,z).call(this,xe,I,P),we&&X(this,pe).call(this,we,xe)),!ae&&X(this,Y)&&X(this,H)){let Ae,Fe=X(this,H);for(;Ae=Fe==null?void 0:Fe.shift();)(Ze=X(this,T))==null||Ze.call(this,...Ae)}return this}pop(){var F;try{for(;X(this,k);){let Q=X(this,M)[X(this,U)];if(ke(this,V,qa).call(this,!0),ke(this,V,tt).call(this,Q)){if(Q.__staleWhileFetching)return Q.__staleWhileFetching}else if(Q!==void 0)return Q}}finally{if(X(this,Y)&&X(this,H)){let Q,se=X(this,H);for(;Q=se==null?void 0:se.shift();)(F=X(this,T))==null||F.call(this,...Q)}}}has(F,Q={}){let{updateAgeOnHas:se=this.updateAgeOnHas,status:I}=Q,P=X(this,v).get(F);if(P!==void 0){let ae=X(this,M)[P];if(ke(this,V,tt).call(this,ae)&&ae.__staleWhileFetching===void 0)return!1;if(!X(this,ie).call(this,P))return se&&X(this,he).call(this,P),I&&(I.has="hit",X(this,pe).call(this,I,P)),!0;I&&(I.has="stale",X(this,pe).call(this,I,P))}else I&&(I.has="miss");return!1}peek(F,Q={}){let{allowStale:se=this.allowStale}=Q,I=X(this,v).get(F);if(I===void 0||!se&&X(this,ie).call(this,I))return;let P=X(this,M)[I];return ke(this,V,tt).call(this,P)?P.__staleWhileFetching:P}async fetch(F,Q={}){let{allowStale:se=this.allowStale,updateAgeOnGet:I=this.updateAgeOnGet,noDeleteOnStaleGet:P=this.noDeleteOnStaleGet,ttl:ae=this.ttl,noDisposeOnSet:ge=this.noDisposeOnSet,size:we=0,sizeCalculation:me=this.sizeCalculation,noUpdateTTL:Pe=this.noUpdateTTL,noDeleteOnFetchRejection:xe=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ze=this.allowStaleOnFetchRejection,ignoreFetchAbort:Le=this.ignoreFetchAbort,allowStaleOnFetchAbort:He=this.allowStaleOnFetchAbort,context:We,forceRefresh:Ze=!1,status:Ae,signal:Fe}=Q;if(!X(this,B))return Ae&&(Ae.fetch="get"),this.get(F,{allowStale:se,updateAgeOnGet:I,noDeleteOnStaleGet:P,status:Ae});let Tt={allowStale:se,updateAgeOnGet:I,noDeleteOnStaleGet:P,ttl:ae,noDisposeOnSet:ge,size:we,sizeCalculation:me,noUpdateTTL:Pe,noDeleteOnFetchRejection:xe,allowStaleOnFetchRejection:ze,allowStaleOnFetchAbort:He,ignoreFetchAbort:Le,status:Ae,signal:Fe},ot=X(this,v).get(F);if(ot===void 0){Ae&&(Ae.fetch="miss");let yt=ke(this,V,Ya).call(this,F,ot,Tt,We);return yt.__returned=yt}{let yt=X(this,M)[ot];if(ke(this,V,tt).call(this,yt)){let Zo=se&&yt.__staleWhileFetching!==void 0;return Ae&&(Ae.fetch="inflight",Zo&&(Ae.returnedStale=!0)),Zo?yt.__staleWhileFetching:yt.__returned=yt}let ks=X(this,ie).call(this,ot);if(!Ze&&!ks)return Ae&&(Ae.fetch="hit"),ke(this,V,Vs).call(this,ot),I&&X(this,he).call(this,ot),Ae&&X(this,pe).call(this,Ae,ot),yt;let li=ke(this,V,Ya).call(this,F,ot,Tt,We),In=li.__staleWhileFetching!==void 0&&se;return Ae&&(Ae.fetch=ks?"stale":"refresh",In&&ks&&(Ae.returnedStale=!0)),In?li.__staleWhileFetching:li.__returned=li}}async forceFetch(F,Q={}){let se=await this.fetch(F,Q);if(se===void 0)throw new Error("fetch() returned undefined");return se}memo(F,Q={}){let se=X(this,$);if(!se)throw new Error("no memoMethod provided to constructor");let{context:I,forceRefresh:P,...ae}=Q,ge=this.get(F,ae);if(!P&&ge!==void 0)return ge;let we=se(F,ge,{options:ae,context:I});return this.set(F,we,ae),we}get(F,Q={}){let{allowStale:se=this.allowStale,updateAgeOnGet:I=this.updateAgeOnGet,noDeleteOnStaleGet:P=this.noDeleteOnStaleGet,status:ae}=Q,ge=X(this,v).get(F);if(ge!==void 0){let we=X(this,M)[ge],me=ke(this,V,tt).call(this,we);return ae&&X(this,pe).call(this,ae,ge),X(this,ie).call(this,ge)?(ae&&(ae.get="stale"),me?(ae&&se&&we.__staleWhileFetching!==void 0&&(ae.returnedStale=!0),se?we.__staleWhileFetching:void 0):(P||ke(this,V,vi).call(this,F,"expire"),ae&&se&&(ae.returnedStale=!0),se?we:void 0)):(ae&&(ae.get="hit"),me?we.__staleWhileFetching:(ke(this,V,Vs).call(this,ge),I&&X(this,he).call(this,ge),we))}ae&&(ae.get="miss")}delete(F){return ke(this,V,vi).call(this,F,"delete")}clear(){return ke(this,V,Lh).call(this,"delete")}},w=new WeakMap,_=new WeakMap,E=new WeakMap,T=new WeakMap,A=new WeakMap,$=new WeakMap,k=new WeakMap,x=new WeakMap,v=new WeakMap,O=new WeakMap,M=new WeakMap,Z=new WeakMap,te=new WeakMap,U=new WeakMap,W=new WeakMap,re=new WeakMap,H=new WeakMap,oe=new WeakMap,K=new WeakMap,q=new WeakMap,j=new WeakMap,B=new WeakMap,Y=new WeakMap,V=new WeakSet,Ph=function(){let F=new c(X(this,w)),Q=new c(X(this,w));Te(this,q,F),Te(this,K,Q),Te(this,z,(P,ae,ge=e.now())=>{if(Q[P]=ae!==0?ge:0,F[P]=ae,ae!==0&&this.ttlAutopurge){let we=setTimeout(()=>{X(this,ie).call(this,P)&&ke(this,V,vi).call(this,X(this,O)[P],"expire")},ae+1);we.unref&&we.unref()}}),Te(this,he,P=>{Q[P]=F[P]!==0?e.now():0}),Te(this,pe,(P,ae)=>{if(F[ae]){let ge=F[ae],we=Q[ae];if(!ge||!we)return;P.ttl=ge,P.start=we,P.now=se||I();let me=P.now-we;P.remainingTTL=ge-me}});let se=0,I=()=>{let P=e.now();if(this.ttlResolution>0){se=P;let ae=setTimeout(()=>se=0,this.ttlResolution);ae.unref&&ae.unref()}return P};this.getRemainingTTL=P=>{let ae=X(this,v).get(P);if(ae===void 0)return 0;let ge=F[ae],we=Q[ae];return ge&&we?ge-((se||I())-we):1/0},Te(this,ie,P=>{let ae=Q[P],ge=F[P];return!!ge&&!!ae&&(se||I())-ae>ge})},he=new WeakMap,pe=new WeakMap,z=new WeakMap,ie=new WeakMap,av=function(){let F=new c(X(this,w));Te(this,x,0),Te(this,oe,F),Te(this,L,Q=>{Te(this,x,X(this,x)-F[Q]),F[Q]=0}),Te(this,C,(Q,se,I,P)=>{if(ke(this,V,tt).call(this,se))return 0;if(!a(I)){if(!P)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if(typeof P!="function")throw new TypeError("sizeCalculation must be a function");if(I=P(se,Q),!a(I))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return I}),Te(this,G,(Q,se,I)=>{if(F[Q]=se,X(this,_)){let P=X(this,_)-F[Q];for(;X(this,x)>P;)ke(this,V,qa).call(this,!0)}Te(this,x,X(this,x)+F[Q]),I&&(I.entrySize=se,I.totalCalculatedSize=X(this,x))})},L=new WeakMap,G=new WeakMap,C=new WeakMap,yi=function*({allowStale:F=this.allowStale}={}){if(X(this,k))for(let Q=X(this,W);ke(this,V,Rh).call(this,Q)&&((F||!X(this,ie).call(this,Q))&&(yield Q),Q!==X(this,U));)Q=X(this,te)[Q]},bi=function*({allowStale:F=this.allowStale}={}){if(X(this,k))for(let Q=X(this,U);ke(this,V,Rh).call(this,Q)&&((F||!X(this,ie).call(this,Q))&&(yield Q),Q!==X(this,W));)Q=X(this,Z)[Q]},Rh=function(F){return F!==void 0&&X(this,v).get(X(this,O)[F])===F},qa=function(F){var P,ae;let Q=X(this,U),se=X(this,O)[Q],I=X(this,M)[Q];return X(this,B)&&ke(this,V,tt).call(this,I)?I.__abortController.abort(new Error("evicted")):(X(this,j)||X(this,Y))&&(X(this,j)&&((P=X(this,E))==null||P.call(this,I,se,"evict")),X(this,Y)&&((ae=X(this,H))==null||ae.push([I,se,"evict"]))),X(this,L).call(this,Q),F&&(X(this,O)[Q]=void 0,X(this,M)[Q]=void 0,X(this,re).push(Q)),X(this,k)===1?(Te(this,U,Te(this,W,0)),X(this,re).length=0):Te(this,U,X(this,Z)[Q]),X(this,v).delete(se),Xo(this,k)._--,Q},Ya=function(F,Q,se,I){let P=Q===void 0?void 0:X(this,M)[Q];if(ke(this,V,tt).call(this,P))return P;let ae=new s,{signal:ge}=se;ge==null||ge.addEventListener("abort",()=>ae.abort(ge.reason),{signal:ae.signal});let we={signal:ae.signal,options:se,context:I},me=(Le,He=!1)=>{let{aborted:We}=ae.signal,Ze=se.ignoreFetchAbort&&Le!==void 0;if(se.status&&(We&&!He?(se.status.fetchAborted=!0,se.status.fetchError=ae.signal.reason,Ze&&(se.status.fetchAbortIgnored=!0)):se.status.fetchResolved=!0),We&&!Ze&&!He)return Pe(ae.signal.reason);let Ae=xe;return X(this,M)[Q]===xe&&(Le===void 0?Ae.__staleWhileFetching?X(this,M)[Q]=Ae.__staleWhileFetching:ke(this,V,vi).call(this,F,"fetch"):(se.status&&(se.status.fetchUpdated=!0),this.set(F,Le,we.options))),Le},Pe=Le=>{let{aborted:He}=ae.signal,We=He&&se.allowStaleOnFetchAbort,Ze=We||se.allowStaleOnFetchRejection,Ae=Ze||se.noDeleteOnFetchRejection,Fe=xe;if(X(this,M)[Q]===xe&&(Ae&&Fe.__staleWhileFetching!==void 0?We||(X(this,M)[Q]=Fe.__staleWhileFetching):ke(this,V,vi).call(this,F,"fetch")),Ze)return se.status&&Fe.__staleWhileFetching!==void 0&&(se.status.returnedStale=!0),Fe.__staleWhileFetching;if(Fe.__returned===Fe)throw Le};se.status&&(se.status.fetchDispatched=!0);let xe=new Promise((Le,He)=>{var Ze;let We=(Ze=X(this,A))==null?void 0:Ze.call(this,F,P,we);We&&We instanceof Promise&&We.then(Ae=>Le(Ae===void 0?void 0:Ae),He),ae.signal.addEventListener("abort",()=>{(!se.ignoreFetchAbort||se.allowStaleOnFetchAbort)&&(Le(void 0),se.allowStaleOnFetchAbort&&(Le=Ae=>me(Ae,!0)))})}).then(me,Le=>(se.status&&(se.status.fetchRejected=!0,se.status.fetchError=Le),Pe(Le))),ze=Object.assign(xe,{__abortController:ae,__staleWhileFetching:P,__returned:void 0});return Q===void 0?(this.set(F,ze,{...we.options,status:void 0}),Q=X(this,v).get(F)):X(this,M)[Q]=ze,ze},tt=function(F){if(!X(this,B))return!1;let Q=F;return!!Q&&Q instanceof Promise&&Q.hasOwnProperty("__staleWhileFetching")&&Q.__abortController instanceof s},Dh=function(F,Q){X(this,te)[Q]=F,X(this,Z)[F]=Q},Vs=function(F){F!==X(this,W)&&(F===X(this,U)?Te(this,U,X(this,Z)[F]):ke(this,V,Dh).call(this,X(this,te)[F],X(this,Z)[F]),ke(this,V,Dh).call(this,X(this,W),F),Te(this,W,F))},vi=function(F,Q){var I,P,ae,ge;let se=!1;if(X(this,k)!==0){let we=X(this,v).get(F);if(we!==void 0)if(se=!0,X(this,k)===1)ke(this,V,Lh).call(this,Q);else{X(this,L).call(this,we);let me=X(this,M)[we];if(ke(this,V,tt).call(this,me)?me.__abortController.abort(new Error("deleted")):(X(this,j)||X(this,Y))&&(X(this,j)&&((I=X(this,E))==null||I.call(this,me,F,Q)),X(this,Y)&&((P=X(this,H))==null||P.push([me,F,Q]))),X(this,v).delete(F),X(this,O)[we]=void 0,X(this,M)[we]=void 0,we===X(this,W))Te(this,W,X(this,te)[we]);else if(we===X(this,U))Te(this,U,X(this,Z)[we]);else{let Pe=X(this,te)[we];X(this,Z)[Pe]=X(this,Z)[we];let xe=X(this,Z)[we];X(this,te)[xe]=X(this,te)[we]}Xo(this,k)._--,X(this,re).push(we)}}if(X(this,Y)&&((ae=X(this,H))!=null&&ae.length)){let we,me=X(this,H);for(;we=me==null?void 0:me.shift();)(ge=X(this,T))==null||ge.call(this,...we)}return se},Lh=function(F){var Q,se,I;for(let P of ke(this,V,bi).call(this,{allowStale:!0})){let ae=X(this,M)[P];if(ke(this,V,tt).call(this,ae))ae.__abortController.abort(new Error("deleted"));else{let ge=X(this,O)[P];X(this,j)&&((Q=X(this,E))==null||Q.call(this,ae,ge,F)),X(this,Y)&&((se=X(this,H))==null||se.push([ae,ge,F]))}}if(X(this,v).clear(),X(this,M).fill(void 0),X(this,O).fill(void 0),X(this,q)&&X(this,K)&&(X(this,q).fill(0),X(this,K).fill(0)),X(this,oe)&&X(this,oe).fill(0),Te(this,U,0),Te(this,W,0),X(this,re).length=0,Te(this,x,0),Te(this,k,0),X(this,Y)&&X(this,H)){let P,ae=X(this,H);for(;P=ae==null?void 0:ae.shift();)(I=X(this,T))==null||I.call(this,...P)}},de);t.LRUCache=f}),oi=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.ContainerIterator=t.Container=t.Base=void 0,t.ContainerIterator=class{constructor(r=0){this.iteratorType=r}equals(r){return this.o===r.o}};var e=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};t.Base=e,t.Container=class extends e{}}),ZS=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=oi(),r=class extends e.Base{constructor(i=[]){super(),this.S=[];let n=this;i.forEach(function(s){n.push(s)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}};t.default=r}),XS=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=oi(),r=class extends e.Base{constructor(n=[]){super(),this.j=0,this.q=[];let s=this;n.forEach(function(o){s.push(o)})}clear(){this.q=[],this.i=this.j=0}push(n){let s=this.q.length;if(this.j/s>.5&&this.j+this.i>=s&&s>4096){let o=this.i;for(let a=0;a{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=oi(),r=class extends e.Base{constructor(n=[],s=function(a,l){return a>l?-1:a>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,a)}m(n){let s=this.C[n];for(;n>0;){let o=n-1>>1,a=this.C[o];if(this.v(a,s)<=0)break;this.C[n]=a,n=o}this.C[n]=s}k(n,s){let o=this.C[n];for(;n0&&(a=l,c=this.C[l]),this.v(c,o)>=0)break;this.C[n]=c,n=a}this.C[n]=o}clear(){this.i=0,this.C.length=0}push(n){this.C.push(n),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let n=this.C[0],s=this.C.pop();return this.i-=1,this.i&&(this.C[0]=s,this.k(0,this.i>>1)),n}top(){return this.C[0]}find(n){return this.C.indexOf(n)>=0}remove(n){let s=this.C.indexOf(n);return!(s<0)&&(s===0?this.pop():s===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(s,1,this.C.pop()),this.i-=1,this.m(s),this.k(s,this.i>>1)),!0)}updateItem(n){let s=this.C.indexOf(n);return!(s<0)&&(this.m(s),this.k(s,this.i>>1),!0)}toArray(){return[...this.C]}},i=r;t.default=i}),Wf=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=oi(),r=class extends e.Container{};t.default=r}),ai=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.throwIteratorAccessError=function(){throw new RangeError("Iterator access denied!")}}),lv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.RandomIterator=void 0;var e=oi(),r=ai(),i=class extends e.ContainerIterator{constructor(n,s){super(s),this.o=n,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(n){this.container.setElementByPos(this.o,n)}};t.RandomIterator=i}),JS=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=Wf())&&e.t?e:{default:e},i=lv(),n=class cv extends i.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new cv(this.o,this.container,this.iteratorType)}},s=class extends r.default{constructor(a=[],l=!0){if(super(),Array.isArray(a))this.J=l?[...a]:a,this.i=a.length;else{this.J=[];let c=this;a.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new n(0,this)}end(){return new n(this.i,this)}rBegin(){return new n(this.i-1,this,1)}rEnd(){return new n(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;return this.J[a]}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;return this.J.splice(a,1),this.i-=1,this.i}eraseElementByValue(a){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[a]=l}insert(a,l,c=1){if(a<0||a>this.i)throw new RangeError;return this.J.splice(a,0,...new Array(c).fill(l)),this.i+=c,this.i}find(a){for(let l=0;l{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=Wf())&&e.t?e:{default:e},i=oi(),n=ai(),s=class uv extends i.ContainerIterator{constructor(c,u,f,h){super(h),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.l=c}copy(){return new uv(this.o,this.h,this.container,this.iteratorType)}},o=class extends r.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new s(this.p,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this._,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,n.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let d=1;d{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=Wf())&&e.t?e:{default:e},i=lv(),n=class hv extends i.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new hv(this.o,this.container,this.iteratorType)}},s=class extends r.default{constructor(a=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof a.length=="number")return a.length;if(typeof a.size=="number")return a.size;if(typeof a.size=="function")return a.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let h=0;h>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;a.forEach(function(h){f.pushBack(h)})}T(){let a=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new n(0,this)}end(){return new n(this.i,this)}rBegin(){return new n(this.i-1,this,1)}rEnd(){return new n(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(a){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,a}pushFront(a){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=a,this.i}popFront(){if(this.i===0)return;let a=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(a);return this.A[l][c]}setElementByPos(a,l){if(a<0||a>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(a);this.A[c][u]=l}insert(a,l,c=1){if(a<0||a>this.i)throw new RangeError;if(a===0)for(;c--;)this.pushFront(l);else if(a===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=a;fthis.i-1)throw new RangeError;if(a===0)this.popFront();else if(a===this.i-1)this.popBack();else{let l=[];for(let u=a+1;ua;)this.popBack();return this.i}sort(a){let l=[];for(let c=0;c{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.TreeNodeEnableIndex=t.TreeNode=void 0;var e=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,n=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=n,n&&(n.tt=this),i}se(){let r=this.tt,i=this.U,n=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=n,n&&(n.tt=this),i}};t.TreeNode=e,t.TreeNodeEnableIndex=class extends e{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}}}),fv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=rk(),r=oi(),i=ai(),n=class extends r.Container{constructor(o=function(l,c){return lc?1:0},a=!1){super(),this.Y=void 0,this.v=o,a?(this.re=e.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let h=f.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let d=this.he(f);if(d){let{parentNode:g,grandParent:p,curNode:y}=d;g.ie(),p.ie(),y.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=e.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(o,a){let l=this.h;for(;o;){let c=this.v(o.u,a);if(c<0)o=o.W;else{if(!(c>0))return o;l=o,o=o.U}}return l}Z(o,a){let l=this.h;for(;o;)this.v(o.u,a)<=0?o=o.W:(l=o,o=o.U);return l}$(o,a){let l=this.h;for(;o;){let c=this.v(o.u,a);if(c<0)l=o,o=o.W;else{if(!(c>0))return o;o=o.U}}return l}rr(o,a){let l=this.h;for(;o;)this.v(o.u,a)<0?(l=o,o=o.W):o=o.U;return l}ue(o){for(;;){let a=o.tt;if(a===this.h)return;if(o.ee===1)return void(o.ee=0);if(o===a.U){let l=a.W;if(l.ee===1)l.ee=0,a.ee=1,a===this.Y?this.Y=a.te():a.te();else{if(l.W&&l.W.ee===1)return l.ee=a.ee,a.ee=0,l.W.ee=0,void(a===this.Y?this.Y=a.te():a.te());l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,o=a)}}else{let l=a.U;if(l.ee===1)l.ee=0,a.ee=1,a===this.Y?this.Y=a.se():a.se();else{if(l.U&&l.U.ee===1)return l.ee=a.ee,a.ee=0,l.U.ee=0,void(a===this.Y?this.Y=a.se():a.se());l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,o=a)}}}}fe(o){if(this.i===1)return this.clear(),this.h;let a=o;for(;a.U||a.W;){if(a.W)for(a=a.W;a.U;)a=a.U;else a=a.U;[o.u,a.u]=[a.u,o.u],[o.l,a.l]=[a.l,o.l],o=a}this.h.U===a?this.h.U=a.tt:this.h.W===a&&(this.h.W=a.tt),this.ue(a);let l=a.tt;return a===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(o,a){return o!==void 0&&(!(!this.oe(o.U,a)&&!a(o))||this.oe(o.W,a))}he(o){for(;;){let a=o.tt;if(a.ee===0)return;let l=a.tt;if(a===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=a.ee=0,l===this.Y)return;l.ee=1,o=l;continue}if(o===a.W){if(o.ee=0,o.U&&(o.U.tt=a),o.W&&(o.W.tt=l),a.W=o.U,l.U=o.W,o.U=a,o.W=l,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,a.tt=o,l.tt=o,l.ee=1,{parentNode:a,grandParent:l,curNode:o}}a.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=a.ee=0,l===this.Y)return;l.ee=1,o=l;continue}if(o===a.U){if(o.ee=0,o.U&&(o.U.tt=l),o.W&&(o.W.tt=a),l.W=o.U,a.U=o.W,o.U=l,o.W=a,l===this.Y)this.Y=o,this.h.tt=o;else{let u=l.tt;u.U===l?u.U=o:u.W=o}return o.tt=l.tt,a.tt=o,l.tt=o,l.ee=1,{parentNode:a,grandParent:l,curNode:o}}a.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(o,a,l){if(this.Y===void 0)return this.i+=1,this.Y=new this.re(o,a),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,void(this.h.W=this.Y);let c,u=this.h.U,f=this.v(u.u,o);if(f!==0){if(f>0)u.U=new this.re(o,a),u.U.tt=u,c=u.U,this.h.U=c;else{let h=this.h.W,d=this.v(h.u,o);if(d===0)return void(h.l=a);if(d<0)h.W=new this.re(o,a),h.W.tt=h,c=h.W,this.h.W=c;else{if(l!==void 0){let g=l.o;if(g!==this.h){let p=this.v(g.u,o);if(p===0)return void(g.l=a);if(p>0){let y=g.L(),w=this.v(y.u,o);if(w===0)return void(y.l=a);w<0&&(c=new this.re(o,a),y.W===void 0?(y.W=c,c.tt=y):(g.U=c,c.tt=g))}}}if(c===void 0)for(c=this.Y;;){let g=this.v(c.u,o);if(g>0){if(c.U===void 0){c.U=new this.re(o,a),c.U.tt=c,c=c.U;break}c=c.U}else{if(!(g<0))return void(c.l=a);if(c.W===void 0){c.W=new this.re(o,a),c.W.tt=c,c=c.W;break}c=c.W}}}}return this.i+=1,c}u.l=a}I(o,a){for(;o;){let l=this.v(o.u,a);if(l<0)o=o.W;else{if(!(l>0))return o;o=o.U}}return o||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(o,a){let l=o.o;if(l===this.h&&(0,i.throwIteratorAccessError)(),this.i===1)return l.u=a,!0;if(l===this.h.U)return this.v(l.B().u,a)>0&&(l.u=a,!0);if(l===this.h.W)return this.v(l.L().u,a)<0&&(l.u=a,!0);let c=l.L().u;if(this.v(c,a)>=0)return!1;let u=l.B().u;return!(this.v(u,a)<=0)&&(l.u=a,!0)}eraseElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let a=0,l=this;return this.oe(this.Y,function(c){return o===a?(l.V(c),!0):(a+=1,!1)}),this.i}eraseElementByKey(o){if(this.i===0)return!1;let a=this.I(this.Y,o);return a!==this.h&&(this.V(a),!0)}eraseElementByIterator(o){let a=o.o;a===this.h&&(0,i.throwIteratorAccessError)();let l=a.W===void 0;return o.iteratorType===0?l&&o.next():(!l||a.U===void 0)&&o.next(),this.V(a),o}forEach(o){let a=0;for(let l of this)o(l,a++,this)}getElementByPos(o){if(o<0||o>this.i-1)throw new RangeError;let a,l=0;for(let c of this){if(l===o){a=c;break}l+=1}return a}getHeight(){if(this.i===0)return 0;let o=function(a){return a?Math.max(o(a.U),o(a.W))+1:0};return o(this.Y)}},s=n;t.default=s}),dv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=oi(),r=ai(),i=class extends e.ContainerIterator{constructor(s,o,a){super(a),this.o=s,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let s=this.o,o=this.h.tt;if(s===this.h)return o?o.rt-1:0;let a=0;for(s.U&&(a+=s.U.rt);s!==o;){let l=s.tt;s===l.W&&(a+=1,l.U&&(a+=l.U.rt)),s=l}return a}},n=i;t.default=n}),ik=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(fv()),r=n(dv()),i=ai();function n(l){return l&&l.t?l:{default:l}}var s=class pv extends r.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.u}copy(){return new pv(this.o,this.h,this.container,this.iteratorType)}},o=class extends e.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new s(this.h.U||this.h,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this.h.W||this.h,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new s(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new s(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new s(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new s(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new s(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},a=o;t.default=a}),nk=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=n(fv()),r=n(dv()),i=ai();function n(l){return l&&l.t?l:{default:l}}var s=class gv extends r.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let c=this;return new Proxy([],{get:(u,f)=>f==="0"?c.o.u:f==="1"?c.o.l:void 0,set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new gv(this.o,this.h,this.container,this.iteratorType)}},o=class extends e.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.setElement(h[0],h[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new s(this.h.U||this.h,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this.h.W||this.h,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new s(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new s(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new s(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new s(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new s(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},a=o;t.default=a}),mv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=function(e){let r=typeof e;return r==="object"&&e!==null||r==="function"}}),yv=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.HashContainerIterator=t.HashContainer=void 0;var e,r=oi(),i=(e=mv())&&e.t?e:{default:e},n=ai(),s=class extends r.ContainerIterator{constructor(a,l,c){super(c),this.o=a,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L,this})}};t.HashContainerIterator=s;var o=class extends r.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(a){let{L:l,B:c}=a;l.B=c,c.L=l,a===this.p&&(this.p=c),a===this._&&(this._=l),this.i-=1}M(a,l,c){let u;if(c===void 0&&(c=(0,i.default)(a)),c){let f=a[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(a,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:a,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[a];if(f)return f.l=l,this.i;u={u:a,l,L:this._,B:this.h},this.g[a]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(a,l){if(l===void 0&&(l=(0,i.default)(a)),l){let c=a[this.HASH_TAG];return c===void 0?this.h:this.H[c]}return this.g[a]||this.h}clear(){let a=this.HASH_TAG;this.H.forEach(function(l){delete l.u[a]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(a,l){let c;if(l===void 0&&(l=(0,i.default)(a)),l){let u=a[this.HASH_TAG];if(u===void 0)return!1;delete a[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[a],c===void 0)return!1;delete this.g[a]}return this.V(c),!0}eraseElementByIterator(a){let l=a.o;return l===this.h&&(0,n.throwIteratorAccessError)(),this.V(l),a.next()}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let l=this.p;for(;a--;)l=l.B;return this.V(l),this.i}};t.HashContainer=o}),sk=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=yv(),r=ai(),i=class bv extends e.HashContainerIterator{constructor(o,a,l,c){super(o,a,c),this.container=l}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new bv(this.o,this.h,this.container,this.iteratorType)}},n=class extends e.HashContainer{constructor(s=[]){super();let o=this;s.forEach(function(a){o.insert(a)})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(s,o){return this.M(s,void 0,o)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let o=this.p;for(;s--;)o=o.B;return o.u}find(s,o){let a=this.I(s,o);return new i(a,this.h,this)}forEach(s){let o=0,a=this.p;for(;a!==this.h;)s(a.u,o++,this),a=a.B}[Symbol.iterator](){return(function*(){let s=this.p;for(;s!==this.h;)yield s.u,s=s.B}).bind(this)()}};t.default=n}),ok=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=yv(),i=(e=mv())&&e.t?e:{default:e},n=ai(),s=class vv extends r.HashContainerIterator{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let c=this;return new Proxy([],{get:(u,f)=>f==="0"?c.o.u:f==="1"?c.o.l:void 0,set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new vv(this.o,this.h,this.container,this.iteratorType)}},o=class extends r.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new s(this.p,this.h,this)}end(){return new s(this.h,this.h,this)}rBegin(){return new s(this._,this.h,this,1)}rEnd(){return new s(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,i.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new s(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},a=o;t.default=a}),ak=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"t",{value:!0}),Object.defineProperty(t,"Deque",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"LinkList",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"OrderedSet",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"PriorityQueue",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Stack",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return n.default}});var e=f(ZS()),r=f(XS()),i=f(QS()),n=f(JS()),s=f(ek()),o=f(tk()),a=f(ik()),l=f(nk()),c=f(sk()),u=f(ok());function f(h){return h&&h.t?h:{default:h}}}),lk=_e((t,e)=>{ye(),ve(),be();var r=ak().OrderedSet,i=ei()("number-allocator:trace"),n=ei()("number-allocator:error");function s(a,l){this.low=a,this.high=l}function o(a,l){if(!(this instanceof o))return new o(a,l);this.min=a,this.max=l,this.ss=new r([],(c,u)=>c.compare(u)),i("Create"),this.clear()}s.prototype.equals=function(a){return this.low===a.low&&this.high===a.high},s.prototype.compare=function(a){return this.lowa)&&(u===a?(this.ss.updateKeyByIterator(c,new s(u+1,f)),i("use():"+a),!0):f===a?(this.ss.updateKeyByIterator(c,new s(u,f-1)),i("use():"+a),!0):(this.ss.updateKeyByIterator(c,new s(a+1,f)),this.ss.insert(new s(u,a-1)),i("use():"+a),!0))}return i("use():failed"),!1},o.prototype.free=function(a){if(athis.max)return void n("free():"+a+" is out of range");let l=new s(a,a),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin()))return void this.ss.insert(l);c.pre();let u=c.pointer.high;c.pointer.high+1===a?this.ss.updateKeyByIterator(c,new s(u,a)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(a+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new s(a,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let h=c.pointer.low;c.pointer.high+1===a?a+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new s(h,f))):this.ss.updateKeyByIterator(c,new s(h,a)):a+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new s(a,f))):this.ss.insert(l)}i("free():"+a)},o.prototype.clear=function(){i("clear()"),this.ss.clear(),this.ss.insert(new s(this.min,this.max))},o.prototype.intervalCount=function(){return this.ss.size()},o.prototype.dump=function(){for(let a of this.ss);},e.exports=o}),wv=_e((t,e)=>{ye(),ve(),be();var r=lk();e.exports.NumberAllocator=r}),ck=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e=GS(),r=wv();t.default=class{constructor(i){i>0&&(this.aliasToTopic=new e.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,n){if(n===0||n>this.max)return!1;let s=this.aliasToTopic.get(n);return s&&delete this.topicToAlias[s],this.aliasToTopic.set(n,i),this.topicToAlias[i]=n,this.numberAllocator.use(n),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let n=this.topicToAlias[i];return typeof n<"u"&&this.aliasToTopic.get(n),n}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}}),uk=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var r=Jl(),i=e(ck()),n=bs();t.default=(s,o)=>{s.log("_handleConnack");let{options:a}=s,l=a.protocolVersion===5?o.reasonCode:o.returnCode;if(clearTimeout(s.connackTimer),delete s.topicAliasSend,o.properties){if(o.properties.topicAliasMaximum){if(o.properties.topicAliasMaximum>65535)return void s.emit("error",new Error("topicAliasMaximum from broker is out of range"));o.properties.topicAliasMaximum>0&&(s.topicAliasSend=new i.default(o.properties.topicAliasMaximum))}o.properties.serverKeepAlive&&a.keepalive&&(a.keepalive=o.properties.serverKeepAlive),o.properties.maximumPacketSize&&(a.properties||(a.properties={}),a.properties.maximumPacketSize=o.properties.maximumPacketSize)}if(l===0)s.reconnecting=!1,s._onConnect(o);else if(l>0){let c=new n.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[l]}`,l);s.emit("error",c),s.options.reconnectOnConnackError&&s._cleanUp(!0)}}}),hk=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,r,i)=>{e.log("handling pubrel packet");let n=typeof i<"u"?i:e.noop,{messageId:s}=r,o={cmd:"pubcomp",messageId:s};e.incomingStore.get(r,(a,l)=>{a?e._sendPacket(o,n):(e.emit("message",l.topic,l.payload,l),e.handleMessage(l,c=>{if(c)return n(c);e.incomingStore.del(l,e.noop),e._sendPacket(o,n)}))})}}),fk=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(qS()),i=e(KS()),n=e(uk()),s=e(Jl()),o=e(hk());t.default=(a,l,c)=>{let{options:u}=a;if(u.protocolVersion===5&&u.properties&&u.properties.maximumPacketSize&&u.properties.maximumPacketSize{ye(),ve(),be();var e=t&&t.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var r=e((En(),Ge(Ui))),i=bs(),n=class{};t.TypedEventEmitter=n,(0,i.applyMixin)(n,r.default)}),ec=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.isReactNativeBrowser=t.isWebWorker=void 0;var e,r=()=>{var s,o;return!(typeof self!="object"||(o=(s=self==null?void 0:self.constructor)===null||s===void 0?void 0:s.name)===null||o===void 0||!o.includes("WorkerGlobalScope"))},i=()=>typeof navigator<"u"&&navigator.product==="ReactNative",n=typeof window<"u"&&(typeof navigator<"u"&&((e=navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase().indexOf(" electron/"))>-1&&Je!=null&&Je.versions?!Object.prototype.hasOwnProperty.call(Je.versions,"electron"):typeof window.document<"u")||r()||i();t.isWebWorker=r(),t.isReactNativeBrowser=i(),t.default=n}),pk=_e((t,e)=>{var r,i;ye(),ve(),be(),r=t,i=function(n){var s,o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,l=2*a,c=new WeakMap,u=function(h,d){return function(g){var p=d.get(g),y=p===void 0?g.size:po)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(y);)y=Math.floor(Math.random()*o);return h(g,y)}}((s=c,function(h,d){return s.set(h,d),d}),c),f=function(h){return function(d){var g=h(d);return d.add(g),g}}(u);n.addUniqueNumber=f,n.generateUniqueNumber=u},typeof t=="object"&&typeof e<"u"?i(t):typeof define=="function"&&define.amd?define(["exports"],i):i((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})}),gk=_e((t,e)=>{var r,i;ye(),ve(),be(),r=t,i=function(n,s){n.load=function(o){var a=new Map([[0,function(){}]]),l=new Map([[0,function(){}]]),c=new Map,u=new Worker(o);return u.addEventListener("message",function(f){var h=f.data;if(function(v){return v.method!==void 0&&v.method==="call"}(h)){var d=h.params,g=d.timerId,p=d.timerType;if(p==="interval"){var y=a.get(g);if(typeof y=="number"){var w=c.get(y);if(w===void 0||w.timerId!==g||w.timerType!==p)throw new Error("The timer is in an undefined state.")}else{if(!(typeof y<"u"))throw new Error("The timer is in an undefined state.");y()}}else if(p==="timeout"){var _=l.get(g);if(typeof _=="number"){var E=c.get(_);if(E===void 0||E.timerId!==g||E.timerType!==p)throw new Error("The timer is in an undefined state.")}else{if(!(typeof _<"u"))throw new Error("The timer is in an undefined state.");_(),l.delete(g)}}}else{if(!function(v){return v.error===null&&typeof v.id=="number"}(h)){var T=h.error.message;throw new Error(T)}var A=h.id,$=c.get(A);if($===void 0)throw new Error("The timer is in an undefined state.");var k=$.timerId,x=$.timerType;c.delete(A),x==="interval"?a.delete(k):l.delete(k)}}),{clearInterval:function(f){var h=s.generateUniqueNumber(c);c.set(h,{timerId:f,timerType:"interval"}),a.set(f,h),u.postMessage({id:h,method:"clear",params:{timerId:f,timerType:"interval"}})},clearTimeout:function(f){var h=s.generateUniqueNumber(c);c.set(h,{timerId:f,timerType:"timeout"}),l.set(f,h),u.postMessage({id:h,method:"clear",params:{timerId:f,timerType:"timeout"}})},setInterval:function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=s.generateUniqueNumber(a);return a.set(d,function(){f(),typeof a.get(d)=="function"&&u.postMessage({id:null,method:"set",params:{delay:h,now:performance.now(),timerId:d,timerType:"interval"}})}),u.postMessage({id:null,method:"set",params:{delay:h,now:performance.now(),timerId:d,timerType:"interval"}}),d},setTimeout:function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=s.generateUniqueNumber(l);return l.set(d,f),u.postMessage({id:null,method:"set",params:{delay:h,now:performance.now(),timerId:d,timerType:"timeout"}}),d}}}},typeof t=="object"&&typeof e<"u"?i(t,pk()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],i):i((r=typeof globalThis<"u"?globalThis:r||self).workerTimersBroker={},r.fastUniqueNumbers)}),mk=_e((t,e)=>{var r,i;ye(),ve(),be(),r=t,i=function(n,s){var o=function(a,l){var c=null;return function(){if(c!==null)return c;var u=new Blob([l],{type:"application/javascript; charset=utf-8"}),f=URL.createObjectURL(u);return c=a(f),setTimeout(function(){return URL.revokeObjectURL(f)}),c}}(s.load,`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`);n.clearInterval=function(a){return o().clearInterval(a)},n.clearTimeout=function(a){return o().clearTimeout(a)},n.setInterval=function(){var a;return(a=o()).setInterval.apply(a,arguments)},n.setTimeout=function(){var a;return(a=o()).setTimeout.apply(a,arguments)}},typeof t=="object"&&typeof e<"u"?i(t,gk()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],i):i((r=typeof globalThis<"u"?globalThis:r||self).workerTimers={},r.workerTimersBroker)}),yk=_e(t=>{ye(),ve(),be();var e,r=t&&t.__createBinding||(Object.create?function(c,u,f,h){h===void 0&&(h=f);var d=Object.getOwnPropertyDescriptor(u,f);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,d)}:function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]}),i=t&&t.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),n=t&&t.__importStar||(e=function(c){return e=Object.getOwnPropertyNames||function(u){var f=[];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(f[f.length]=h);return f},e(c)},function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f=e(c),h=0;hsetInterval(c,u),clear:c=>clearInterval(c)};t.default=c=>{switch(c){case"native":return l;case"worker":return a;default:return!s.default||s.isWebWorker||s.isReactNativeBrowser?l:a}}}),_v=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(yk());t.default=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,n){this.destroyed=!1,this.client=i,this.timer=typeof n=="object"&&"set"in n&&"clear"in n?n:(0,r.default)(n),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(1.5*this._keepalive);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}}}),Nh=_e(t=>{ye(),ve(),be();var e,r=t&&t.__createBinding||(Object.create?function($,k,x,v){v===void 0&&(v=x);var O=Object.getOwnPropertyDescriptor(k,x);(!O||("get"in O?!k.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return k[x]}}),Object.defineProperty($,v,O)}:function($,k,x,v){v===void 0&&(v=x),$[v]=k[x]}),i=t&&t.__setModuleDefault||(Object.create?function($,k){Object.defineProperty($,"default",{enumerable:!0,value:k})}:function($,k){$.default=k}),n=t&&t.__importStar||(e=function($){return e=Object.getOwnPropertyNames||function(k){var x=[];for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(x[x.length]=v);return x},e($)},function($){if($&&$.__esModule)return $;var k={};if($!=null)for(var x=e($),v=0;v{let k=$.shift();(0,p.nextTick)(()=>{k(...$)})}),T={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},A=class jh extends y.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(k,x){super(),this.options=x||{};for(let v in T)typeof this.options[v]>"u"?this.options[v]=T[v]:this.options[v]=x[v];this.log=this.options.log||(0,h.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",jh.VERSION),_.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",_.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:jh.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(...v)=>{v[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=k,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new l.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new d.default,this.incomingStore=x.incomingStore||new d.default,this.queueQoSZero=x.queueQoSZero===void 0||x.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:v}=this,O=()=>{let M=v.shift();this.log("deliver :: entry %o",M);let Z=null;if(!M)return void this._resubscribe();Z=M.packet,this.log("deliver :: call _sendPacket for %o",Z);let te=!0;Z.messageId&&Z.messageId!==0&&(this.messageIdProvider.register(Z.messageId)||(te=!1)),te?this._sendPacket(Z,U=>{M.cb&&M.cb(U),O()}):(this.log("messageId: %d has already used. The message is skipped and removed.",Z.messageId),O())};this.log("connect :: sending queued packets"),O()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(k,x){x()}handleMessage(k,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var k;let x=new c.Writable,v=a.default.parser(this.options),O=null,M=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),v.on("packet",W=>{this.log("parser :: on packet push to packets array."),M.push(W)});let Z=()=>{this.log("work :: getting next packet in queue");let W=M.shift();if(W)this.log("work :: packet pulled from queue"),(0,g.default)(this,W,te);else{this.log("work :: no packets in queue");let re=O;O=null,this.log("work :: done flag is %s",!!re),re&&re()}},te=()=>{if(M.length)(0,p.nextTick)(Z);else{let W=O;O=null,W()}};x._write=(W,re,H)=>{O=H,this.log("writable stream :: parsing buffer"),v.parse(W),Z()},this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",W=>{this.log("streamErrorHandler :: error",W.message),W.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",W)):this.noop(W)}),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let U={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(U.will=Object.assign(Object.assign({},this.options.will),{payload:(k=this.options.will)===null||k===void 0?void 0:k.payload})),this.topicAliasRecv&&(U.properties||(U.properties={}),this.topicAliasRecv&&(U.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(U),v.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let W=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(W)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(k,x,v,O){this.log("publish :: message `%s` to topic `%s`",x,k);let{options:M}=this;typeof v=="function"&&(O=v,v=null),v=v||{},v=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),v);let{qos:Z,retain:te,dup:U,properties:W,cbStorePut:re}=v;if(this._checkDisconnecting(O))return this;let H=()=>{let oe=0;if((Z===1||Z===2)&&(oe=this._nextId(),oe===null))return this.log("No messageId left"),!1;let K={cmd:"publish",topic:k,payload:x,qos:Z,retain:te,messageId:oe,dup:U};switch(M.protocolVersion===5&&(K.properties=W),this.log("publish :: qos",Z),Z){case 1:case 2:this.outgoing[K.messageId]={volatile:!1,cb:O||this.noop},this.log("MqttClient:publish: packet cmd: %s",K.cmd),this._sendPacket(K,void 0,re);break;default:this.log("MqttClient:publish: packet cmd: %s",K.cmd),this._sendPacket(K,O,re)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!H())&&this._storeProcessingQueue.push({invoke:H,cbStorePut:v.cbStorePut,callback:O}),this}publishAsync(k,x,v){return new Promise((O,M)=>{this.publish(k,x,v,(Z,te)=>{Z?M(Z):O(te)})})}subscribe(k,x,v){let O=this.options.protocolVersion;typeof x=="function"&&(v=x),v=v||this.noop;let M=!1,Z=[];typeof k=="string"?Z=k=[k]:Array.isArray(k)?Z=k:typeof k=="object"&&(M=k.resubscribe,delete k.resubscribe,Z=Object.keys(k));let te=f.validateTopics(Z);if(te!==null)return E(v,new Error(`Invalid topic ${te}`)),this;if(this._checkDisconnecting(v))return this.log("subscribe: discconecting true"),this;let U={qos:0};O===5&&(U.nl=!1,U.rap=!1,U.rh=0);let W=(x=Object.assign(Object.assign({},U),x)).properties,re=[],H=(K,q)=>{if(q=q||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,K)||this._resubscribeTopics[K].qos{this.log("subscribe: array topic %s",K),H(K)}):Object.keys(k).forEach(K=>{this.log("subscribe: object topic %s, %o",K,k[K]),H(K,k[K])}),!re.length)return v(null,[]),this;let oe=()=>{let K=this._nextId();if(K===null)return this.log("No messageId left"),!1;let q={cmd:"subscribe",subscriptions:re,messageId:K};if(W&&(q.properties=W),this.options.resubscribe){this.log("subscribe :: resubscribe true");let j=[];re.forEach(B=>{if(this.options.reconnectPeriod>0){let Y={qos:B.qos};O===5&&(Y.nl=B.nl||!1,Y.rap=B.rap||!1,Y.rh=B.rh||0,Y.properties=B.properties),this._resubscribeTopics[B.topic]=Y,j.push(B.topic)}}),this.messageIdToTopic[q.messageId]=j}return this.outgoing[q.messageId]={volatile:!0,cb(j,B){if(!j){let{granted:Y}=B;for(let V=0;V0||!oe())&&this._storeProcessingQueue.push({invoke:oe,callback:v}),this}subscribeAsync(k,x){return new Promise((v,O)=>{this.subscribe(k,x,(M,Z)=>{M?O(M):v(Z)})})}unsubscribe(k,x,v){typeof k=="string"&&(k=[k]),typeof x=="function"&&(v=x),v=v||this.noop;let O=f.validateTopics(k);if(O!==null)return E(v,new Error(`Invalid topic ${O}`)),this;if(this._checkDisconnecting(v))return this;let M=()=>{let Z=this._nextId();if(Z===null)return this.log("No messageId left"),!1;let te={cmd:"unsubscribe",messageId:Z,unsubscriptions:[]};return typeof k=="string"?te.unsubscriptions=[k]:Array.isArray(k)&&(te.unsubscriptions=k),this.options.resubscribe&&te.unsubscriptions.forEach(U=>{delete this._resubscribeTopics[U]}),typeof x=="object"&&x.properties&&(te.properties=x.properties),this.outgoing[te.messageId]={volatile:!0,cb:v},this.log("unsubscribe: call _sendPacket"),this._sendPacket(te),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:v}),this}unsubscribeAsync(k,x){return new Promise((v,O)=>{this.unsubscribe(k,x,(M,Z)=>{M?O(M):v(Z)})})}end(k,x,v){this.log("end :: (%s)",this.options.clientId),(k==null||typeof k!="boolean")&&(v=v||x,x=k,k=!1),typeof x!="object"&&(v=v||x,x=null),this.log("end :: cb? %s",!!v),(!v||typeof v!="function")&&(v=this.noop);let O=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(Z=>{this.outgoingStore.close(te=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),v){let U=Z||te;this.log("end :: closeStores: invoking callback with args"),v(U)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},M=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,k),this._cleanUp(k,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,p.nextTick)(O)},x)};return this.disconnecting?(v(),this):(this._clearReconnect(),this.disconnecting=!0,!k&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,M,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),M()),this)}endAsync(k,x){return new Promise((v,O)=>{this.end(k,x,M=>{M?O(M):v()})})}removeOutgoingMessage(k){if(this.outgoing[k]){let{cb:x}=this.outgoing[k];this._removeOutgoingAndStoreMessage(k,()=>{x(new Error("Message removed"))})}return this}reconnect(k){this.log("client reconnect");let x=()=>{k?(this.options.incomingStore=k.incomingStore,this.options.outgoingStore=k.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new d.default,this.outgoingStore=this.options.outgoingStore||new d.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=x:x(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(k=>{this.outgoing[k].volatile&&typeof this.outgoing[k].cb=="function"&&(this.outgoing[k].cb(new Error("Connection closed")),delete this.outgoing[k])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(k=>{typeof this.outgoing[k].cb=="function"&&(this.outgoing[k].cb(new Error("Connection closed")),delete this.outgoing[k])}))}_removeTopicAliasAndRecoverTopicName(k){let x;k.properties&&(x=k.properties.topicAlias);let v=k.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,v),v.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(v=this.topicAliasSend.getTopicByAlias(x),typeof v>"u")return new Error("Unregistered Topic Alias");k.topic=v}x&&delete k.properties.topicAlias}_checkDisconnecting(k){return this.disconnecting&&(k&&k!==this.noop?k(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(k,x,v={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",k),k)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let O=Object.assign({cmd:"disconnect"},v);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(O,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),E(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(k,x,v){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",k.cmd);let O,M=k;if(M.cmd==="publish"&&(M=(0,u.default)(k),O=this._removeTopicAliasAndRecoverTopicName(M),O))return x&&x(O);this.outgoingStore.put(M,Z=>{if(Z)return x&&x(Z);v(),this._writePacket(k,x)})}_applyTopicAlias(k){if(this.options.protocolVersion===5&&k.cmd==="publish"){let x;k.properties&&(x=k.properties.topicAlias);let v=k.topic.toString();if(this.topicAliasSend)if(x){if(v.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",v,x),!this.topicAliasSend.put(v,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",v,x),new Error("Sending Topic Alias out of range")}else v.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(v),x?(k.topic="",k.properties=Object.assign(Object.assign({},k.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",v,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(v,x),k.properties=Object.assign(Object.assign({},k.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",v,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(v),x&&(k.topic="",k.properties=Object.assign(Object.assign({},k.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",v,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",v,x),new Error("Sending Topic Alias out of range")}}_noop(k){this.log("noop ::",k)}_writePacket(k,x){this.log("_writePacket :: packet: %O",k),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",k),this.log("_writePacket :: writing to stream");let v=a.default.writeToStream(k,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",v),!v&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(k,x,v,O){this.log("_sendPacket :: (%s) :: start",this.options.clientId),v=v||this.noop,x=x||this.noop;let M=this._applyTopicAlias(k);if(M)x(M);else{if(!this.connected)return k.cmd==="auth"?void this._writePacket(k,x):(this.log("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(k,x,v));if(O)this._writePacket(k,x);else{switch(k.cmd){case"publish":break;case"pubrel":return void this._storeAndSend(k,x,v);default:return void this._writePacket(k,x)}switch(k.qos){case 2:case 1:this._storeAndSend(k,x,v);break;default:this._writePacket(k,x)}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}}}_storePacket(k,x,v){this.log("_storePacket :: packet: %o",k),this.log("_storePacket :: cb? %s",!!x),v=v||this.noop;let O=k;if(O.cmd==="publish"){O=(0,u.default)(k);let Z=this._removeTopicAliasAndRecoverTopicName(O);if(Z)return x&&x(Z)}let M=O.qos||0;M===0&&this.queueQoSZero||O.cmd!=="publish"?this.queue.push({packet:O,cb:x}):M>0?(x=this.outgoing[O.messageId]?this.outgoing[O.messageId].cb:null,this.outgoingStore.put(O,Z=>{if(Z)return x&&x(Z);v()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new w.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(k=!1){this.keepaliveManager&&this.options.keepalive&&(k||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let k=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&k.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x{let v=this.outgoingStore.createStream(),O=()=>{v.destroy(),v=null,this._flushStoreProcessingQueue(),M()},M=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",O),v.on("error",te=>{M(),this._flushStoreProcessingQueue(),this.removeListener("close",O),this.emit("error",te)});let Z=()=>{if(!v)return;let te,U=v.read(1);U?(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[U.messageId]?Z():this.disconnecting||this.reconnectTimer?v.destroy&&v.destroy():(te=this.outgoing[U.messageId]?this.outgoing[U.messageId].cb:null,this.outgoing[U.messageId]={volatile:!1,cb(W,re){te&&te(W,re),Z()}},this._packetIdsDuringStoreProcessing[U.messageId]=!0,this.messageIdProvider.register(U.messageId)?this._sendPacket(U,void 0,void 0,!0):this.log("messageId: %d has already used.",U.messageId))):v.once("readable",Z)};v.on("end",()=>{let te=!0;for(let U in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[U]){te=!1;break}this.removeListener("close",O),te?(M(),this._invokeAllStoreProcessingQueue(),this.emit("connect",k)):x()}),Z()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let k=this._storeProcessingQueue[0];if(k&&k.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let k of this._storeProcessingQueue)k.cbStorePut&&k.cbStorePut(new Error("Connection closed")),k.callback&&k.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(k,x){delete this.outgoing[k],this.outgoingStore.del({messageId:k},(v,O)=>{x(v,O),this.messageIdProvider.deallocate(k),this._invokeStoreProcessingQueue()})}};A.VERSION=p.MQTTJS_VERSION,t.default=A}),bk=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e=wv();t.default=class{constructor(){this.numberAllocator=new e.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}}});function Gi(t){throw new RangeError(Sv[t])}function Fp(t,e){let r=t.split("@"),i="";r.length>1&&(i=r[0]+"@",t=r[1]);let n=function(s,o){let a=[],l=s.length;for(;l--;)a[l]=o(s[l]);return a}((t=t.replace(xv,".")).split("."),e).join(".");return i+n}function Wp(t){let e=[],r=0,i=t.length;for(;r=55296&&n<=56319&&r{ye(),ve(),be(),Up=/^xn--/,Vp=/[^\0-\x7E]/,xv=/[\x2E\u3002\uFF0E\uFF61]/g,Sv={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gr=Math.floor,sa=String.fromCharCode,Fc=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Wc=function(t,e,r){let i=0;for(t=r?gr(t/700):t>>1,t+=gr(t/e);t>455;i+=36)t=gr(t/35);return gr(i+36*t/(t+38))},Uc=function(t){let e=[],r=t.length,i=0,n=128,s=72,o=t.lastIndexOf("-");o<0&&(o=0);for(let l=0;l=128&&Gi("not-basic"),e.push(t.charCodeAt(l));for(let l=o>0?o+1:0;l=r&&Gi("invalid-input");let d=(a=t.charCodeAt(l++))-48<10?a-22:a-65<26?a-65:a-97<26?a-97:36;(d>=36||d>gr((2147483647-i)/f))&&Gi("overflow"),i+=d*f;let g=h<=s?1:h>=s+26?26:h-s;if(dgr(2147483647/p)&&Gi("overflow"),f*=p}let u=e.length+1;s=Wc(i-c,u,c==0),gr(i/u)>2147483647-n&&Gi("overflow"),n+=gr(i/u),i%=u,e.splice(i++,0,n)}var a;return String.fromCodePoint(...e)},Vc=function(t){let e=[],r=(t=Wp(t)).length,i=128,n=0,s=72;for(let l of t)l<128&&e.push(sa(l));let o=e.length,a=o;for(o&&e.push("-");a=i&&ugr((2147483647-n)/c)&&Gi("overflow"),n+=(l-i)*c,i=l;for(let u of t)if(u2147483647&&Gi("overflow"),u==i){let f=n;for(let h=36;;h+=36){let d=h<=s?1:h>=s+26?26:h-s;if(fString.fromCodePoint(...t)},decode:Uc,encode:Vc,toASCII:function(t){return Fp(t,function(e){return Vp.test(e)?"xn--"+Vc(e):e})},toUnicode:function(t){return Fp(t,function(e){return Up.test(e)?Uc(e.slice(4).toLowerCase()):e})}},tn.encode,tn.toASCII,tn.toUnicode,tn.ucs2,tn.version});function wk(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var $p,Dn,zp,zr,_k=Wt(()=>{ye(),ve(),be(),$p=function(t,e,r,i){e=e||"&",r=r||"=";var n={};if(typeof t!="string"||t.length===0)return n;var s=/\+/g;t=t.split(e);var o=1e3;i&&typeof i.maxKeys=="number"&&(o=i.maxKeys);var a=t.length;o>0&&a>o&&(a=o);for(var l=0;l=0?(c=d.substr(0,g),u=d.substr(g+1)):(c=d,u=""),f=decodeURIComponent(c),h=decodeURIComponent(u),wk(n,f)?Array.isArray(n[f])?n[f].push(h):n[f]=[n[f],h]:n[f]=h}return n},Dn=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},zp=function(t,e,r,i){return e=e||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(n){var s=encodeURIComponent(Dn(n))+r;return Array.isArray(t[n])?t[n].map(function(o){return s+encodeURIComponent(Dn(o))}).join(e):s+encodeURIComponent(Dn(t[n]))}).join(e):i?encodeURIComponent(Dn(i))+r+encodeURIComponent(Dn(t)):""},(zr={}).decode=zr.parse=$p,zr.encode=zr.stringify=zp,zr.decode,zr.encode,zr.parse,zr.stringify});function Bh(){throw new Error("setTimeout has not been defined")}function Fh(){throw new Error("clearTimeout has not been defined")}function kv(t){if(Yr===setTimeout)return setTimeout(t,0);if((Yr===Bh||!Yr)&&setTimeout)return Yr=setTimeout,setTimeout(t,0);try{return Yr(t,0)}catch{try{return Yr.call(null,t,0)}catch{return Yr.call(this||mn,t,0)}}}function xk(){yn&&cn&&(yn=!1,cn.length?Pr=cn.concat(Pr):oo=-1,Pr.length&&Ev())}function Ev(){if(!yn){var t=kv(xk);yn=!0;for(var e=Pr.length;e;){for(cn=Pr,Pr=[];++oo{ye(),ve(),be(),mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:il,ut=qp={},function(){try{Yr=typeof setTimeout=="function"?setTimeout:Bh}catch{Yr=Bh}try{Kr=typeof clearTimeout=="function"?clearTimeout:Fh}catch{Kr=Fh}}(),Pr=[],yn=!1,oo=-1,ut.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var y=1;y{ye(),ve(),be(),Ka={},Wh=!1,rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:il,(at=kk()).platform="browser",at.addListener,at.argv,at.binding,at.browser,at.chdir,at.cwd,at.emit,at.env,at.listeners,at.nextTick,at.off,at.on,at.once,at.prependListener,at.prependOnceListener,at.removeAllListeners,at.removeListener,at.title,at.umask,at.version,at.versions}),$c,zc,Uh,Ek=Wt(()=>{ye(),ve(),be(),Ov(),$c={},zc=!1,Uh=function(){if(zc)return $c;zc=!0;var t=at;function e(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function r(n,s){for(var o,a="",l=0,c=-1,u=0,f=0;f<=n.length;++f){if(f2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",l=0):l=(a=a.slice(0,h)).length-1-a.lastIndexOf("/"),c=f,u=0;continue}}else if(a.length===2||a.length===1){a="",l=0,c=f,u=0;continue}}s&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+n.slice(c+1,f):a=n.slice(c+1,f),l=f-c-1;c=f,u=0}else o===46&&u!==-1?++u:u=-1}return a}var i={resolve:function(){for(var n,s="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var l;a>=0?l=arguments[a]:(n===void 0&&(n=t.cwd()),l=n),e(l),l.length!==0&&(s=l+"/"+s,o=l.charCodeAt(0)===47)}return s=r(s,!o),o?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(n){if(e(n),n.length===0)return".";var s=n.charCodeAt(0)===47,o=n.charCodeAt(n.length-1)===47;return(n=r(n,!s)).length===0&&!s&&(n="."),n.length>0&&o&&(n+="/"),s?"/"+n:n},isAbsolute:function(n){return e(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,s=0;s0&&(n===void 0?n=o:n+="/"+o)}return n===void 0?".":i.normalize(n)},relative:function(n,s){if(e(n),e(s),n===s||(n=i.resolve(n))===(s=i.resolve(s)))return"";for(var o=1;of){if(s.charCodeAt(c+d)===47)return s.slice(c+d+1);if(d===0)return s.slice(c+d)}else l>f&&(n.charCodeAt(o+d)===47?h=d:d===0&&(h=0));break}var g=n.charCodeAt(o+d);if(g!==s.charCodeAt(c+d))break;g===47&&(h=d)}var p="";for(d=o+h+1;d<=a;++d)(d===a||n.charCodeAt(d)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+s.slice(c+h):(c+=h,s.charCodeAt(c)===47&&++c,s.slice(c))},_makeLong:function(n){return n},dirname:function(n){if(e(n),n.length===0)return".";for(var s=n.charCodeAt(0),o=s===47,a=-1,l=!0,c=n.length-1;c>=1;--c)if((s=n.charCodeAt(c))===47){if(!l){a=c;break}}else l=!1;return a===-1?o?"/":".":o&&a===1?"//":n.slice(0,a)},basename:function(n,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');e(n);var o,a=0,l=-1,c=!0;if(s!==void 0&&s.length>0&&s.length<=n.length){if(s.length===n.length&&s===n)return"";var u=s.length-1,f=-1;for(o=n.length-1;o>=0;--o){var h=n.charCodeAt(o);if(h===47){if(!c){a=o+1;break}}else f===-1&&(c=!1,f=o+1),u>=0&&(h===s.charCodeAt(u)?--u==-1&&(l=o):(u=-1,l=f))}return a===l?l=f:l===-1&&(l=n.length),n.slice(a,l)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===47){if(!c){a=o+1;break}}else l===-1&&(c=!1,l=o+1);return l===-1?"":n.slice(a,l)},extname:function(n){e(n);for(var s=-1,o=0,a=-1,l=!0,c=0,u=n.length-1;u>=0;--u){var f=n.charCodeAt(u);if(f!==47)a===-1&&(l=!1,a=u+1),f===46?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1);else if(!l){o=u+1;break}}return s===-1||a===-1||c===0||c===1&&s===a-1&&s===o+1?"":n.slice(s,a)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return function(s,o){var a=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return a?a===o.root?a+l:a+s+l:l}("/",n)},parse:function(n){e(n);var s={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return s;var o,a=n.charCodeAt(0),l=a===47;l?(s.root="/",o=1):o=0;for(var c=-1,u=0,f=-1,h=!0,d=n.length-1,g=0;d>=o;--d)if((a=n.charCodeAt(d))!==47)f===-1&&(h=!1,f=d+1),a===46?c===-1?c=d:g!==1&&(g=1):c!==-1&&(g=-1);else if(!h){u=d+1;break}return c===-1||f===-1||g===0||g===1&&c===f-1&&c===u+1?f!==-1&&(s.base=s.name=u===0&&l?n.slice(1,f):n.slice(u,f)):(u===0&&l?(s.name=n.slice(1,c),s.base=n.slice(1,f)):(s.name=n.slice(u,c),s.base=n.slice(u,f)),s.ext=n.slice(c,f)),u>0?s.dir=n.slice(0,u-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,$c=i}()}),Tv={};function tr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Is(t,e,r){if(t&&br.isObject(t)&&t instanceof tr)return t;var i=new tr;return i.parse(t,e,r),i}function Ok(t){if(typeof t=="string")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(t.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return gl?function(e){let r=e.hostname,i=e.pathname;for(let n=0;nRv||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return i.slice(1)}}(t):function(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let r=e.pathname;for(let i=0;iGv||s!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return i.slice(1)}}(t):function(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let r=e.pathname;for(let i=0;iHv,Url:()=>Wv,default:()=>Xe,fileURLToPath:()=>Av,format:()=>Uv,parse:()=>zv,pathToFileURL:()=>Mv,resolve:()=>Vv,resolveObject:()=>$v});var Xe,Yp,br,Kp,Gp,Zp,Xp,oa,Hc,qc,Yc,Qp,Jp,aa,Zi,la,Kc,Gc,Vh,eg,Iv,Cv,Pv,Rv,gl,Dv,Lv,Nv,jv,Bv,Fv,tg,Wv,Uv,Vv,$v,zv,Hv,qv,Yv,Kv,Gv,ml,Zv,Xv,Qv,Jv,ew,tw,Ak=Wt(()=>{ye(),ve(),be(),vk(),_k(),Sk(),Ek(),Ov(),Yp=tn,br={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},(Xe={}).parse=Is,Xe.resolve=function(t,e){return Is(t,!1,!0).resolve(e)},Xe.resolveObject=function(t,e){return t?Is(t,!1,!0).resolveObject(e):e},Xe.format=function(t){return br.isString(t)&&(t=Is(t)),t instanceof tr?t.format():tr.prototype.format.call(t)},Xe.Url=tr,Kp=/^([a-z0-9.+-]+:)/i,Gp=/:[0-9]*$/,Zp=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Xp=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),oa=["'"].concat(Xp),Hc=["%","/","?",";","#"].concat(oa),qc=["/","?","#"],Yc=/^[+a-z0-9A-Z_-]{0,63}$/,Qp=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jp={javascript:!0,"javascript:":!0},aa={javascript:!0,"javascript:":!0},Zi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},la=zr,tr.prototype.parse=function(t,e,r){if(!br.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),n=i!==-1&&i127?T+="x":T+=E[A];if(!T.match(Yc)){var k=w.slice(0,g),x=w.slice(g+1),v=E.match(Qp);v&&(k.push(v[1]),x.unshift(v[2])),x.length&&(o="/"+x.join(".")+o),this.hostname=k.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=Yp.toASCII(this.hostname));var O=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+O,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!Jp[c])for(g=0,_=oa.length;g<_;g++){var Z=oa[g];if(o.indexOf(Z)!==-1){var te=encodeURIComponent(Z);te===Z&&(te=escape(Z)),o=o.split(Z).join(te)}}var U=o.indexOf("#");U!==-1&&(this.hash=o.substr(U),o=o.slice(0,U));var W=o.indexOf("?");if(W!==-1?(this.search=o.substr(W),this.query=o.substr(W+1),e&&(this.query=la.parse(this.query)),o=o.slice(0,W)):e&&(this.search="",this.query={}),o&&(this.pathname=o),Zi[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var re=this.search||"";this.path=O+re}return this.href=this.format(),this},tr.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,s="";this.host?n=t+this.host:this.hostname&&(n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&br.isObject(this.query)&&Object.keys(this.query).length&&(s=la.stringify(this.query));var o=this.search||s&&"?"+s||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Zi[e])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),i&&i.charAt(0)!=="#"&&(i="#"+i),o&&o.charAt(0)!=="?"&&(o="?"+o),e+n+(r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}))+(o=o.replace("#","%23"))+i},tr.prototype.resolve=function(t){return this.resolveObject(Is(t,!1,!0)).format()},tr.prototype.resolveObject=function(t){if(br.isString(t)){var e=new tr;e.parse(t,!1,!0),t=e}for(var r=new tr,i=Object.keys(this),n=0;n0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),r.search=t.search,r.query=t.query,br.isNull(r.pathname)&&br.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=E.slice(-1)[0],$=(r.host||t.host||E.length>1)&&(A==="."||A==="..")||A==="",k=0,x=E.length;x>=0;x--)(A=E[x])==="."?E.splice(x,1):A===".."?(E.splice(x,1),k++):k&&(E.splice(x,1),k--);if(!w&&!_)for(;k--;k)E.unshift("..");!w||E[0]===""||E[0]&&E[0].charAt(0)==="/"||E.unshift(""),$&&E.join("/").substr(-1)!=="/"&&E.push("");var v,O=E[0]===""||E[0]&&E[0].charAt(0)==="/";return T&&(r.hostname=r.host=O?"":E.length?E.shift():"",(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),(w=w||r.host&&E.length)&&!O&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),br.isNull(r.pathname)&&br.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},tr.prototype.parseHost=function(){var t=this.host,e=Gp.exec(t);e&&((e=e[0])!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},Xe.Url,Xe.format,Xe.resolve,Xe.resolveObject,Kc={},Gc=!1,Vh=function(){if(Gc)return Kc;Gc=!0;var t=ht;function e(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function r(n,s){for(var o,a="",l=0,c=-1,u=0,f=0;f<=n.length;++f){if(f2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",l=0):l=(a=a.slice(0,h)).length-1-a.lastIndexOf("/"),c=f,u=0;continue}}else if(a.length===2||a.length===1){a="",l=0,c=f,u=0;continue}}s&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+n.slice(c+1,f):a=n.slice(c+1,f),l=f-c-1;c=f,u=0}else o===46&&u!==-1?++u:u=-1}return a}var i={resolve:function(){for(var n,s="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var l;a>=0?l=arguments[a]:(n===void 0&&(n=t.cwd()),l=n),e(l),l.length!==0&&(s=l+"/"+s,o=l.charCodeAt(0)===47)}return s=r(s,!o),o?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(n){if(e(n),n.length===0)return".";var s=n.charCodeAt(0)===47,o=n.charCodeAt(n.length-1)===47;return(n=r(n,!s)).length===0&&!s&&(n="."),n.length>0&&o&&(n+="/"),s?"/"+n:n},isAbsolute:function(n){return e(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,s=0;s0&&(n===void 0?n=o:n+="/"+o)}return n===void 0?".":i.normalize(n)},relative:function(n,s){if(e(n),e(s),n===s||(n=i.resolve(n))===(s=i.resolve(s)))return"";for(var o=1;of){if(s.charCodeAt(c+d)===47)return s.slice(c+d+1);if(d===0)return s.slice(c+d)}else l>f&&(n.charCodeAt(o+d)===47?h=d:d===0&&(h=0));break}var g=n.charCodeAt(o+d);if(g!==s.charCodeAt(c+d))break;g===47&&(h=d)}var p="";for(d=o+h+1;d<=a;++d)(d===a||n.charCodeAt(d)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+s.slice(c+h):(c+=h,s.charCodeAt(c)===47&&++c,s.slice(c))},_makeLong:function(n){return n},dirname:function(n){if(e(n),n.length===0)return".";for(var s=n.charCodeAt(0),o=s===47,a=-1,l=!0,c=n.length-1;c>=1;--c)if((s=n.charCodeAt(c))===47){if(!l){a=c;break}}else l=!1;return a===-1?o?"/":".":o&&a===1?"//":n.slice(0,a)},basename:function(n,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');e(n);var o,a=0,l=-1,c=!0;if(s!==void 0&&s.length>0&&s.length<=n.length){if(s.length===n.length&&s===n)return"";var u=s.length-1,f=-1;for(o=n.length-1;o>=0;--o){var h=n.charCodeAt(o);if(h===47){if(!c){a=o+1;break}}else f===-1&&(c=!1,f=o+1),u>=0&&(h===s.charCodeAt(u)?--u==-1&&(l=o):(u=-1,l=f))}return a===l?l=f:l===-1&&(l=n.length),n.slice(a,l)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===47){if(!c){a=o+1;break}}else l===-1&&(c=!1,l=o+1);return l===-1?"":n.slice(a,l)},extname:function(n){e(n);for(var s=-1,o=0,a=-1,l=!0,c=0,u=n.length-1;u>=0;--u){var f=n.charCodeAt(u);if(f!==47)a===-1&&(l=!1,a=u+1),f===46?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1);else if(!l){o=u+1;break}}return s===-1||a===-1||c===0||c===1&&s===a-1&&s===o+1?"":n.slice(s,a)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return function(s,o){var a=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return a?a===o.root?a+l:a+s+l:l}("/",n)},parse:function(n){e(n);var s={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return s;var o,a=n.charCodeAt(0),l=a===47;l?(s.root="/",o=1):o=0;for(var c=-1,u=0,f=-1,h=!0,d=n.length-1,g=0;d>=o;--d)if((a=n.charCodeAt(d))!==47)f===-1&&(h=!1,f=d+1),a===46?c===-1?c=d:g!==1&&(g=1):c!==-1&&(g=-1);else if(!h){u=d+1;break}return c===-1||f===-1||g===0||g===1&&c===f-1&&c===u+1?f!==-1&&(s.base=s.name=u===0&&l?n.slice(1,f):n.slice(u,f)):(u===0&&l?(s.name=n.slice(1,c),s.base=n.slice(1,f)):(s.name=n.slice(u,c),s.base=n.slice(u,f)),s.ext=n.slice(c,f)),u>0?s.dir=n.slice(0,u-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Kc=i}(),eg=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Xe.URL=typeof URL<"u"?URL:null,Xe.pathToFileURL=Tk,Xe.fileURLToPath=Ok,Xe.Url,Xe.format,Xe.resolve,Xe.resolveObject,Xe.URL,Iv=92,Cv=47,Pv=97,Rv=122,gl=eg==="win32",Dv=/\//g,Lv=/%/g,Nv=/\\/g,jv=/\n/g,Bv=/\r/g,Fv=/\t/g,tg=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Xe.URL=typeof URL<"u"?URL:null,Xe.pathToFileURL=Mv,Xe.fileURLToPath=Av,Wv=Xe.Url,Uv=Xe.format,Vv=Xe.resolve,$v=Xe.resolveObject,zv=Xe.parse,Hv=Xe.URL,qv=92,Yv=47,Kv=97,Gv=122,ml=tg==="win32",Zv=/\//g,Xv=/%/g,Qv=/\\/g,Jv=/\n/g,ew=/\r/g,tw=/\t/g}),Mk=_e((t,e)=>{ye(),ve(),be(),e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Uf=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedDuplex=void 0,t.writev=i;var e=Tn(),r=(Et(),Ge(kt));function i(s,o){let a=new Array(s.length);for(let l=0;l{!this.destroyed&&this.readable&&this.push(l)})}_read(s){this.proxy.read(s)}_write(s,o,a){this.isSocketOpen?this.writeToProxy(s,o,a):this.writeQueue.push({chunk:s,encoding:o,cb:a})}_final(s){this.writeQueue=[],this.proxy.end(s)}_destroy(s,o){this.writeQueue=[],this.proxy.destroy(),o(s)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(s,o,a){this.proxy.write(s,o)===!1?this.proxy.once("drain",a):a()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:s,encoding:o,cb:a}=this.writeQueue.shift();this.writeToProxy(s,o,a)}}};t.BufferedDuplex=n}),ca=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.streamBuilder=t.browserStreamBuilder=void 0;var r=(Et(),Ge(kt)),i=e(Mk()),n=e(ei()),s=Tn(),o=e(ec()),a=Uf(),l=(0,n.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(h,d){let g=`${h.protocol}://${h.hostname}:${h.port}${h.path}`;return typeof h.transformWsUrl=="function"&&(g=h.transformWsUrl(g,h,d)),g}function f(h){let d=h;return h.port||(h.protocol==="wss"?d.port=443:d.port=80),h.path||(d.path="/"),h.wsOptions||(d.wsOptions={}),!o.default&&!h.forceNativeWebSocket&&h.protocol==="wss"&&c.forEach(g=>{Object.prototype.hasOwnProperty.call(h,g)&&!Object.prototype.hasOwnProperty.call(h.wsOptions,g)&&(d.wsOptions[g]=h[g])}),d}t.streamBuilder=(h,d)=>{l("streamBuilder");let g=f(d);g.hostname=g.hostname||g.host||"localhost";let p=u(g,h),y=function(_,E,T){l("createWebSocket"),l(`protocol: ${T.protocolId} ${T.protocolVersion}`);let A,$=T.protocolId==="MQIsdp"&&T.protocolVersion===3?"mqttv3.1":"mqtt";return l(`creating new Websocket for url: ${E} and protocol: ${$}`),A=T.createWebsocket?T.createWebsocket(E,[$],T):new i.default(E,[$],T.wsOptions),A}(0,p,g),w=i.default.createWebSocketStream(y,g.wsOptions);return w.url=p,y.on("close",()=>{w.destroy()}),w},t.browserStreamBuilder=(h,d)=>{l("browserStreamBuilder");let g,p=function(v){let O=f(v);if(O.hostname||(O.hostname=O.host),!O.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let M=new URL(document.URL);O.hostname=M.hostname,O.port||(O.port=Number(M.port))}return O.objectMode===void 0&&(O.objectMode=!(O.binary===!0||O.binary===void 0)),O}(d).browserBufferSize||524288,y=d.browserBufferTimeout||1e3,w=!d.objectMode,_=function(v,O){let M,Z=O.protocolId==="MQIsdp"&&O.protocolVersion===3?"mqttv3.1":"mqtt",te=u(O,v);return M=O.createWebsocket?O.createWebsocket(te,[Z],O):new WebSocket(te,[Z]),M.binaryType="arraybuffer",M}(h,d),E=function(v,O,M){let Z=new s.Transform({objectMode:v.objectMode});return Z._write=O,Z._flush=M,Z}(d,function v(O,M,Z){if(_.bufferedAmount>p)return void setTimeout(v,y,O,M,Z);w&&typeof O=="string"&&(O=r.Buffer.from(O,"utf8"));try{_.send(O)}catch(te){return Z(te)}Z()},function(v){_.close(),v()});d.objectMode||(E._writev=a.writev.bind(E)),E.on("close",()=>{_.close()});let T=typeof _.addEventListener<"u";function A(){l("WebSocket onOpen"),g instanceof a.BufferedDuplex&&g.socketReady()}function $(v){l("WebSocket onClose",v),g.end(),g.destroy()}function k(v){l("WebSocket onError",v);let O=new Error("WebSocket error");O.event=v,g.destroy(O)}async function x(v){if(!E||E.destroyed||!E.readable)return;let{data:O}=v;O=O instanceof ArrayBuffer?r.Buffer.from(O):O instanceof Blob?r.Buffer.from(await new Response(O).arrayBuffer()):r.Buffer.from(O,"utf8"),E.push(O)}return _.readyState===_.OPEN?(g=E,g.socket=_):(g=new a.BufferedDuplex(d,E,_),T?_.addEventListener("open",A):_.onopen=A),T?(_.addEventListener("close",$),_.addEventListener("error",k),_.addEventListener("message",x)):(_.onclose=$,_.onerror=k,_.onmessage=x),g}}),Vf={};function it(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}ms(Vf,{Server:()=>it,Socket:()=>it,Stream:()=>it,_createServerHandle:()=>it,_normalizeArgs:()=>it,_setSimultaneousAccepts:()=>it,connect:()=>it,createConnection:()=>it,createServer:()=>it,default:()=>rw,isIP:()=>it,isIPv4:()=>it,isIPv6:()=>it});var rw,iw=Wt(()=>{ye(),ve(),be(),rw={_createServerHandle:it,_normalizeArgs:it,_setSimultaneousAccepts:it,connect:it,createConnection:it,createServer:it,isIP:it,isIPv4:it,isIPv6:it,Server:it,Socket:it,Stream:it}}),rg=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((iw(),Ge(Vf))),i=(0,e(ei()).default)("mqttjs:tcp");t.default=(n,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:o,path:a}=s,l=s.hostname;return i("port %d and host %s",o,l),r.default.createConnection({port:o,host:l,path:a})}}),nw={};ms(nw,{default:()=>sw});var sw,Ik=Wt(()=>{ye(),ve(),be(),sw={}}),ig=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((Ik(),Ge(nw))),i=e((iw(),Ge(Vf))),n=(0,e(ei()).default)("mqttjs:tls");t.default=(s,o)=>{o.port=o.port||8883,o.host=o.hostname||o.host||"localhost",i.default.isIP(o.host)===0&&(o.servername=o.host),o.rejectUnauthorized=o.rejectUnauthorized!==!1,delete o.path,n("port %d host %s rejectUnauthorized %b",o.port,o.host,o.rejectUnauthorized);let a=r.default.connect(o);function l(c){o.rejectUnauthorized&&s.emit("error",c),a.end()}return a.on("secureConnect",()=>{o.rejectUnauthorized&&!a.authorized?a.emit("error",new Error("TLS not authorized")):a.removeListener("error",l)}),a.on("error",l),a}}),ng=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e,r,i,n=(Et(),Ge(kt)),s=Tn(),o=Uf();t.default=(a,l)=>{if(l.hostname=l.hostname||l.host,!l.hostname)throw new Error("Could not determine host. Specify host manually.");let c=l.protocolId==="MQIsdp"&&l.protocolVersion===3?"mqttv3.1":"mqtt";(function(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})})(l);let u=function(h,d){let g=h.protocol==="wxs"?"wss":"ws",p=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(p=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(p=h.transformWsUrl(p,h,d)),p}(l,a);e=wx.connectSocket({url:u,protocols:[c]}),r=function(){let h=new s.Transform;return h._write=(d,g,p)=>{e.send({data:d.buffer,success(){p()},fail(y){p(new Error(y))}})},h._flush=d=>{e.close({success(){d()}})},h}(),(i=new o.BufferedDuplex(l,r,e))._destroy=(h,d)=>{e.close({success(){d&&d(h)}})};let f=i.destroy;return i.destroy=(h,d)=>(i.destroy=f,setTimeout(()=>{e.close({fail(){i._destroy(h,d)}})},0),i),e.onOpen(()=>{i.socketReady()}),e.onMessage(h=>{let{data:d}=h;d=d instanceof ArrayBuffer?n.Buffer.from(d):n.Buffer.from(d,"utf8"),r.push(d)}),e.onClose(()=>{i.emit("close"),i.end(),i.destroy()}),e.onError(h=>{let d=new Error(h.errMsg);i.destroy(d)}),i}}),sg=_e(t=>{ye(),ve(),be(),Object.defineProperty(t,"__esModule",{value:!0});var e,r,i,n=(Et(),Ge(kt)),s=Tn(),o=Uf(),a=!1;t.default=(l,c)=>{if(c.hostname=c.hostname||c.host,!c.hostname)throw new Error("Could not determine host. Specify host manually.");let u=c.protocolId==="MQIsdp"&&c.protocolVersion===3?"mqttv3.1":"mqtt";(function(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})})(c);let f=function(h,d){let g=h.protocol==="alis"?"wss":"ws",p=`${g}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(p=`${g}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(p=h.transformWsUrl(p,h,d)),p}(c,l);return(e=c.my).connectSocket({url:f,protocols:u}),r=function(){let h=new s.Transform;return h._write=(d,g,p)=>{e.sendSocketMessage({data:d.buffer,success(){p()},fail(){p(new Error)}})},h._flush=d=>{e.closeSocket({success(){d()}})},h}(),i=new o.BufferedDuplex(c,r,e),a||(a=!0,e.onSocketOpen(()=>{i.socketReady()}),e.onSocketMessage(h=>{if(typeof h.data=="string"){let d=n.Buffer.from(h.data,"base64");r.push(d)}else{let d=new FileReader;d.addEventListener("load",()=>{let g=d.result;g=g instanceof ArrayBuffer?n.Buffer.from(g):n.Buffer.from(g,"utf8"),r.push(g)}),d.readAsArrayBuffer(h.data)}}),e.onSocketClose(()=>{i.end(),i.destroy()}),e.onSocketError(h=>{i.destroy(h)})),i}}),Ck=_e(t=>{ye(),ve(),be();var e=t&&t.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAsync=function(c,u,f=!0){return new Promise((h,d)=>{let g=l(c,u),p={connect:w=>{y(),h(g)},end:()=>{y(),h(g)},error:w=>{y(),g.end(),d(w)}};function y(){Object.keys(p).forEach(w=>{g.off(w,p[w])})}f===!1&&(p.close=()=>{p.error(new Error("Couldn't connect to server"))}),Object.keys(p).forEach(w=>{g.on(w,p[w])})})};var r=e(ei()),i=e((Ak(),Ge(Tv))),n=e(Nh()),s=e(ec());typeof(Je==null?void 0:Je.nextTick)!="function"&&(Je.nextTick=setImmediate);var o=(0,r.default)("mqttjs"),a=null;function l(c,u){var f,h,d;if(o("connecting to an MQTT broker..."),typeof c=="object"&&!u&&(u=c,c=""),u=u||{},c&&typeof c=="string"){let p=i.default.parse(c,!0),y={};if(p.port!=null&&(y.port=Number(p.port)),y.host=p.hostname,y.query=p.query,y.auth=p.auth,y.protocol=p.protocol,y.path=p.path,!(u=Object.assign(Object.assign({},y),u)).protocol)throw new Error("Missing protocol");u.protocol=u.protocol.replace(/:$/,"")}if(u.unixSocket=u.unixSocket||((f=u.protocol)===null||f===void 0?void 0:f.includes("+unix")),u.unixSocket?u.protocol=u.protocol.replace("+unix",""):(h=u.protocol)!==null&&h!==void 0&&h.startsWith("ws")||(d=u.protocol)!==null&&d!==void 0&&d.startsWith("wx")||delete u.path,function(p){let y;p.auth&&(y=p.auth.match(/^(.+):(.+)$/),y?(p.username=y[1],p.password=y[2]):p.username=p.auth)}(u),u.query&&typeof u.query.clientId=="string"&&(u.clientId=u.query.clientId),u.cert&&u.key){if(!u.protocol)throw new Error("Missing secure protocol key");if(["mqtts","wss","wxs","alis"].indexOf(u.protocol)===-1)switch(u.protocol){case"mqtt":u.protocol="mqtts";break;case"ws":u.protocol="wss";break;case"wx":u.protocol="wxs";break;case"ali":u.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${u.protocol}"!`)}}if(a||(a={},s.default||u.forceNativeWebSocket?(a.ws=ca().browserStreamBuilder,a.wss=ca().browserStreamBuilder,a.wx=ng().default,a.wxs=ng().default,a.ali=sg().default,a.alis=sg().default):(a.ws=ca().streamBuilder,a.wss=ca().streamBuilder,a.mqtt=rg().default,a.tcp=rg().default,a.ssl=ig().default,a.tls=a.ssl,a.mqtts=ig().default)),!a[u.protocol]){let p=["mqtts","wss"].indexOf(u.protocol)!==-1;u.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((y,w)=>(!p||w%2!=0)&&typeof a[y]=="function")[0]}if(u.clean===!1&&!u.clientId)throw new Error("Missing clientId for unclean clients");u.protocol&&(u.defaultProtocol=u.protocol);let g=new n.default(function(p){return u.servers&&((!p._reconnectCount||p._reconnectCount===u.servers.length)&&(p._reconnectCount=0),u.host=u.servers[p._reconnectCount].host,u.port=u.servers[p._reconnectCount].port,u.protocol=u.servers[p._reconnectCount].protocol?u.servers[p._reconnectCount].protocol:u.defaultProtocol,u.hostname=u.host,p._reconnectCount++),o("calling streambuilder for",u.protocol),a[u.protocol](p,u)},u);return g.on("error",()=>{}),g}t.default=l}),og=_e(t=>{ye(),ve(),be();var e,r=t&&t.__createBinding||(Object.create?function(g,p,y,w){w===void 0&&(w=y);var _=Object.getOwnPropertyDescriptor(p,y);(!_||("get"in _?!p.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return p[y]}}),Object.defineProperty(g,w,_)}:function(g,p,y,w){w===void 0&&(w=y),g[w]=p[y]}),i=t&&t.__setModuleDefault||(Object.create?function(g,p){Object.defineProperty(g,"default",{enumerable:!0,value:p})}:function(g,p){g.default=p}),n=t&&t.__importStar||(e=function(g){return e=Object.getOwnPropertyNames||function(p){var y=[];for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(y[y.length]=w);return y},e(g)},function(g){if(g&&g.__esModule)return g;var p={};if(g!=null)for(var y=e(g),w=0;w{ye(),ve(),be();var e,r=t&&t.__createBinding||(Object.create?function(a,l,c,u){u===void 0&&(u=c);var f=Object.getOwnPropertyDescriptor(l,c);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(a,u,f)}:function(a,l,c,u){u===void 0&&(u=c),a[u]=l[c]}),i=t&&t.__setModuleDefault||(Object.create?function(a,l){Object.defineProperty(a,"default",{enumerable:!0,value:l})}:function(a,l){a.default=l}),n=t&&t.__importStar||(e=function(a){return e=Object.getOwnPropertyNames||function(l){var c=[];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(c[c.length]=u);return c},e(a)},function(a){if(a&&a.__esModule)return a;var l={};if(a!=null)for(var c=e(a),u=0;u *) + +safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) +*/var Yt="top",ur="bottom",hr="right",Kt="left",$h="auto",Wo=[Yt,ur,hr,Kt],cs="start",To="end",ow="viewport",Cs="popper",ag=Wo.reduce(function(t,e){return t.concat([e+"-"+cs,e+"-"+To])},[]),aw=[].concat(Wo,[$h]).reduce(function(t,e){return t.concat([e,e+"-"+cs,e+"-"+To])},[]),Rk=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function jr(t){return t?(t.nodeName||"").toLowerCase():null}function dr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function wn(t){return t instanceof dr(t).Element||t instanceof Element}function or(t){return t instanceof dr(t).HTMLElement||t instanceof HTMLElement}function $f(t){return typeof ShadowRoot<"u"&&(t instanceof dr(t).ShadowRoot||t instanceof ShadowRoot)}const Dk={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var i=e.styles[r]||{},n=e.attributes[r]||{},s=e.elements[r];or(s)&&jr(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(o){var a=n[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:r[i]).reduce(function(a,l){return a[l]="",a},{});or(n)&&jr(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(a){n.removeAttribute(a)}))})}},requires:["computeStyles"]};function Rr(t){return t.split("-")[0]}var bn=Math.max,yl=Math.min,us=Math.round;function zh(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function lw(){return!/^((?!chrome|android).)*safari/i.test(zh())}function hs(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=t.getBoundingClientRect(),n=1,s=1;e&&or(t)&&(n=t.offsetWidth>0&&us(i.width)/t.offsetWidth||1,s=t.offsetHeight>0&&us(i.height)/t.offsetHeight||1);var o=(wn(t)?dr(t):window).visualViewport,a=!lw()&&r,l=(i.left+(a&&o?o.offsetLeft:0))/n,c=(i.top+(a&&o?o.offsetTop:0))/s,u=i.width/n,f=i.height/s;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function zf(t){var e=hs(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function cw(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&$f(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Qr(t){return dr(t).getComputedStyle(t)}function Lk(t){return["table","td","th"].indexOf(jr(t))>=0}function Di(t){return((wn(t)?t.ownerDocument:t.document)||window.document).documentElement}function tc(t){return jr(t)==="html"?t:t.assignedSlot||t.parentNode||($f(t)?t.host:null)||Di(t)}function lg(t){return or(t)&&Qr(t).position!=="fixed"?t.offsetParent:null}function Uo(t){for(var e=dr(t),r=lg(t);r&&Lk(r)&&Qr(r).position==="static";)r=lg(r);return r&&(jr(r)==="html"||jr(r)==="body"&&Qr(r).position==="static")?e:r||function(i){var n=/firefox/i.test(zh());if(/Trident/i.test(zh())&&or(i)&&Qr(i).position==="fixed")return null;var s=tc(i);for($f(s)&&(s=s.host);or(s)&&["html","body"].indexOf(jr(s))<0;){var o=Qr(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||n&&o.willChange==="filter"||n&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}(t)||e}function Hf(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $s(t,e,r){return bn(t,yl(e,r))}function uw(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function hw(t,e){return e.reduce(function(r,i){return r[i]=t,r},{})}const Nk={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,i=t.name,n=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,a=Rr(r.placement),l=Hf(a),c=[Kt,hr].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(x,v){return uw(typeof(x=typeof x=="function"?x(Object.assign({},v.rects,{placement:v.placement})):x)!="number"?x:hw(x,Wo))}(n.padding,r),f=zf(s),h=l==="y"?Yt:Kt,d=l==="y"?ur:hr,g=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],p=o[l]-r.rects.reference[l],y=Uo(s),w=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-p/2,E=u[h],T=w-f[c]-u[d],A=w/2-f[c]/2+_,$=$s(E,A,T),k=l;r.modifiersData[i]=((e={})[k]=$,e.centerOffset=$-A,e)}},effect:function(t){var e=t.state,r=t.options.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i!="string"||(i=e.elements.popper.querySelector(i)))&&cw(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fs(t){return t.split("-")[1]}var jk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cg(t){var e,r=t.popper,i=t.popperRect,n=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=o.x,d=h===void 0?0:h,g=o.y,p=g===void 0?0:g,y=typeof u=="function"?u({x:d,y:p}):{x:d,y:p};d=y.x,p=y.y;var w=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),E=Kt,T=Yt,A=window;if(c){var $=Uo(r),k="clientHeight",x="clientWidth";$===dr(r)&&Qr($=Di(r)).position!=="static"&&a==="absolute"&&(k="scrollHeight",x="scrollWidth"),(n===Yt||(n===Kt||n===hr)&&s===To)&&(T=ur,p-=(f&&$===A&&A.visualViewport?A.visualViewport.height:$[k])-i.height,p*=l?1:-1),(n===Kt||(n===Yt||n===ur)&&s===To)&&(E=hr,d-=(f&&$===A&&A.visualViewport?A.visualViewport.width:$[x])-i.width,d*=l?1:-1)}var v,O=Object.assign({position:a},c&&jk),M=u===!0?function(Z){var te=Z.x,U=Z.y,W=window.devicePixelRatio||1;return{x:us(te*W)/W||0,y:us(U*W)/W||0}}({x:d,y:p}):{x:d,y:p};return d=M.x,p=M.y,l?Object.assign({},O,((v={})[T]=_?"0":"",v[E]=w?"0":"",v.transform=(A.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",v)):Object.assign({},O,((e={})[T]=_?p+"px":"",e[E]=w?d+"px":"",e.transform="",e))}var ua={passive:!0},Bk={left:"right",right:"left",bottom:"top",top:"bottom"};function ha(t){return t.replace(/left|right|bottom|top/g,function(e){return Bk[e]})}var Fk={start:"end",end:"start"};function ug(t){return t.replace(/start|end/g,function(e){return Fk[e]})}function qf(t){var e=dr(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hh(t){return hs(Di(t)).left+qf(t).scrollLeft}function Yf(t){var e=Qr(t),r=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function fw(t){return["html","body","#document"].indexOf(jr(t))>=0?t.ownerDocument.body:or(t)&&Yf(t)?t:fw(tc(t))}function ao(t,e){var r;e===void 0&&(e=[]);var i=fw(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=dr(i),o=n?[s].concat(s.visualViewport||[],Yf(i)?i:[]):i,a=e.concat(o);return n?a:a.concat(ao(tc(o)))}function qh(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function hg(t,e,r){return e===ow?qh(function(i,n){var s=dr(i),o=Di(i),a=s.visualViewport,l=o.clientWidth,c=o.clientHeight,u=0,f=0;if(a){l=a.width,c=a.height;var h=lw();(h||!h&&n==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:u+Hh(i),y:f}}(t,r)):wn(e)?function(i,n){var s=hs(i,!1,n==="fixed");return s.top=s.top+i.clientTop,s.left=s.left+i.clientLeft,s.bottom=s.top+i.clientHeight,s.right=s.left+i.clientWidth,s.width=i.clientWidth,s.height=i.clientHeight,s.x=s.left,s.y=s.top,s}(e,r):qh(function(i){var n,s=Di(i),o=qf(i),a=(n=i.ownerDocument)==null?void 0:n.body,l=bn(s.scrollWidth,s.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=bn(s.scrollHeight,s.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-o.scrollLeft+Hh(i),f=-o.scrollTop;return Qr(a||s).direction==="rtl"&&(u+=bn(s.clientWidth,a?a.clientWidth:0)-l),{width:l,height:c,x:u,y:f}}(Di(t)))}function Wk(t,e,r,i){var n=e==="clippingParents"?function(l){var c=ao(tc(l)),u=["absolute","fixed"].indexOf(Qr(l).position)>=0&&or(l)?Uo(l):l;return wn(u)?c.filter(function(f){return wn(f)&&cw(f,u)&&jr(f)!=="body"}):[]}(t):[].concat(e),s=[].concat(n,[r]),o=s[0],a=s.reduce(function(l,c){var u=hg(t,c,i);return l.top=bn(u.top,l.top),l.right=yl(u.right,l.right),l.bottom=yl(u.bottom,l.bottom),l.left=bn(u.left,l.left),l},hg(t,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function dw(t){var e,r=t.reference,i=t.element,n=t.placement,s=n?Rr(n):null,o=n?fs(n):null,a=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2;switch(s){case Yt:e={x:a,y:r.y-i.height};break;case ur:e={x:a,y:r.y+r.height};break;case hr:e={x:r.x+r.width,y:l};break;case Kt:e={x:r.x-i.width,y:l};break;default:e={x:r.x,y:r.y}}var c=s?Hf(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case cs:e[c]=e[c]-(r[u]/2-i[u]/2);break;case To:e[c]=e[c]+(r[u]/2-i[u]/2)}}return e}function Ao(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=i===void 0?t.placement:i,s=r.strategy,o=s===void 0?t.strategy:s,a=r.boundary,l=a===void 0?"clippingParents":a,c=r.rootBoundary,u=c===void 0?ow:c,f=r.elementContext,h=f===void 0?Cs:f,d=r.altBoundary,g=d!==void 0&&d,p=r.padding,y=p===void 0?0:p,w=uw(typeof y!="number"?y:hw(y,Wo)),_=h===Cs?"reference":Cs,E=t.rects.popper,T=t.elements[g?_:h],A=Wk(wn(T)?T:T.contextElement||Di(t.elements.popper),l,u,o),$=hs(t.elements.reference),k=dw({reference:$,element:E,placement:n}),x=qh(Object.assign({},E,k)),v=h===Cs?x:$,O={top:A.top-v.top+w.top,bottom:v.bottom-A.bottom+w.bottom,left:A.left-v.left+w.left,right:v.right-A.right+w.right},M=t.modifiersData.offset;if(h===Cs&&M){var Z=M[n];Object.keys(O).forEach(function(te){var U=[hr,ur].indexOf(te)>=0?1:-1,W=[Yt,ur].indexOf(te)>=0?"y":"x";O[te]+=Z[W]*U})}return O}function Uk(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=r.boundary,s=r.rootBoundary,o=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?aw:l,u=fs(i),f=u?a?ag:ag.filter(function(g){return fs(g)===u}):Wo,h=f.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=f);var d=h.reduce(function(g,p){return g[p]=Ao(t,{placement:p,boundary:n,rootBoundary:s,padding:o})[Rr(p)],g},{});return Object.keys(d).sort(function(g,p){return d[g]-d[p]})}const Vk={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=r.mainAxis,s=n===void 0||n,o=r.altAxis,a=o===void 0||o,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,g=d===void 0||d,p=r.allowedAutoPlacements,y=e.options.placement,w=Rr(y),_=l||(w===y||!g?[ha(y)]:function(j){if(Rr(j)===$h)return[];var B=ha(j);return[ug(j),B,ug(B)]}(y)),E=[y].concat(_).reduce(function(j,B){return j.concat(Rr(B)===$h?Uk(e,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:p}):B)},[]),T=e.rects.reference,A=e.rects.popper,$=new Map,k=!0,x=E[0],v=0;v=0,U=te?"width":"height",W=Ao(e,{placement:O,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=te?Z?hr:Kt:Z?ur:Yt;T[U]>A[U]&&(re=ha(re));var H=ha(re),oe=[];if(s&&oe.push(W[M]<=0),a&&oe.push(W[re]<=0,W[H]<=0),oe.every(function(j){return j})){x=O,k=!1;break}$.set(O,oe)}if(k)for(var K=function(j){var B=E.find(function(Y){var V=$.get(Y);if(V)return V.slice(0,j).every(function(ce){return ce})});if(B)return x=B,"break"},q=g?3:1;q>0&&K(q)!=="break";q--);e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fg(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function dg(t){return[Yt,hr,ur,Kt].some(function(e){return t[e]>=0})}const $k={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,i=t.name,n=r.offset,s=n===void 0?[0,0]:n,o=aw.reduce(function(u,f){return u[f]=function(h,d,g){var p=Rr(h),y=[Kt,Yt].indexOf(p)>=0?-1:1,w=typeof g=="function"?g(Object.assign({},d,{placement:h})):g,_=w[0],E=w[1];return _=_||0,E=(E||0)*y,[Kt,hr].indexOf(p)>=0?{x:E,y:_}:{x:_,y:E}}(f,e.rects,s),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}},zk={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,i=t.name,n=r.mainAxis,s=n===void 0||n,o=r.altAxis,a=o!==void 0&&o,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,h=r.tether,d=h===void 0||h,g=r.tetherOffset,p=g===void 0?0:g,y=Ao(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),w=Rr(e.placement),_=fs(e.placement),E=!_,T=Hf(w),A=T==="x"?"y":"x",$=e.modifiersData.popperOffsets,k=e.rects.reference,x=e.rects.popper,v=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,O=typeof v=="number"?{mainAxis:v,altAxis:v}:Object.assign({mainAxis:0,altAxis:0},v),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if($){if(s){var te,U=T==="y"?Yt:Kt,W=T==="y"?ur:hr,re=T==="y"?"height":"width",H=$[T],oe=H+y[U],K=H-y[W],q=d?-x[re]/2:0,j=_===cs?k[re]:x[re],B=_===cs?-x[re]:-k[re],Y=e.elements.arrow,V=d&&Y?zf(Y):{width:0,height:0},ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},he=ce[U],pe=ce[W],z=$s(0,k[re],V[re]),ie=E?k[re]/2-q-z-he-O.mainAxis:j-z-he-O.mainAxis,ne=E?-k[re]/2+q+z+pe+O.mainAxis:B+z+pe+O.mainAxis,L=e.elements.arrow&&Uo(e.elements.arrow),G=L?T==="y"?L.clientTop||0:L.clientLeft||0:0,C=(te=M==null?void 0:M[T])!=null?te:0,J=H+ne-C,m=$s(d?yl(oe,H+ie-C-G):oe,H,d?bn(K,J):K);$[T]=m,Z[T]=m-H}if(a){var b,S=T==="x"?Yt:Kt,D=T==="x"?ur:hr,N=$[A],R=A==="y"?"height":"width",ee=N+y[S],le=N-y[D],ue=[Yt,Kt].indexOf(w)!==-1,de=(b=M==null?void 0:M[A])!=null?b:0,fe=ue?ee:N-k[R]-x[R]-de+O.altAxis,F=ue?N+k[R]+x[R]-de-O.altAxis:le,Q=d&&ue?function(se,I,P){var ae=$s(se,I,P);return ae>P?P:ae}(fe,N,F):$s(d?fe:ee,N,d?F:le);$[A]=Q,Z[A]=Q-N}e.modifiersData[i]=Z}},requiresIfExists:["offset"]};function Hk(t,e,r){r===void 0&&(r=!1);var i,n,s=or(e),o=or(e)&&function(f){var h=f.getBoundingClientRect(),d=us(h.width)/f.offsetWidth||1,g=us(h.height)/f.offsetHeight||1;return d!==1||g!==1}(e),a=Di(e),l=hs(t,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!r)&&((jr(e)!=="body"||Yf(a))&&(c=(i=e)!==dr(i)&&or(i)?{scrollLeft:(n=i).scrollLeft,scrollTop:n.scrollTop}:qf(i)),or(e)?((u=hs(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Hh(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function qk(t){var e=new Map,r=new Set,i=[];function n(s){r.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(o){if(!r.has(o)){var a=e.get(o);a&&n(a)}}),i.push(s)}return t.forEach(function(s){e.set(s.name,s)}),t.forEach(function(s){r.has(s.name)||n(s)}),i}var pg={placement:"bottom",modifiers:[],strategy:"absolute"};function gg(){for(var t=arguments.length,e=new Array(t),r=0;rMath.max(Math.min(t,r),e);function zs(t){return Ai(Vo(2.55*t),0,255)}function Mi(t){return Ai(Vo(255*t),0,255)}function Vr(t){return Ai(Vo(t/2.55)/100,0,1)}function mg(t){return Ai(Vo(100*t),0,100)}const er={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Yh=[..."0123456789ABCDEF"],Kk=t=>Yh[15&t],Gk=t=>Yh[(240&t)>>4]+Yh[15&t],fa=t=>(240&t)>>4==(15&t);function Zk(t){var e=(r=>fa(r.r)&&fa(r.g)&&fa(r.b)&&fa(r.a))(t)?Kk:Gk;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((r,i)=>r<255?i(r):"")(t.a,e):void 0}const Xk=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pw(t,e,r){const i=e*Math.min(r,1-r),n=(s,o=(s+t/30)%12)=>r-i*Math.max(Math.min(o-3,9-o,1),-1);return[n(0),n(8),n(4)]}function Qk(t,e,r){const i=(n,s=(n+t/60)%6)=>r-r*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function Jk(t,e,r){const i=pw(t,1,.5);let n;for(e+r>1&&(n=1/(e+r),e*=n,r*=n),n=0;n<3;n++)i[n]*=1-e-r,i[n]+=e;return i}function Kh(t){const e=t.r/255,r=t.g/255,i=t.b/255,n=Math.max(e,r,i),s=Math.min(e,r,i),o=(n+s)/2;let a,l,c;return n!==s&&(c=n-s,l=o>.5?c/(2-n-s):c/(n+s),a=function(u,f,h,d,g){return u===g?(f-h)/d+(f>16&255,a>>8&255,255&a]}return r}(),da.transparent=[0,0,0,0]);const e=da[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const rE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Zc=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ln=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function pa(t,e,r){if(t){let i=Kh(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*r,e===0?360:1)),i=Kf(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function mw(t,e){return t&&Object.assign(e||{},t)}function vg(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Mi(t[3]))):(e=mw(t,{r:0,g:0,b:0,a:1})).a=Mi(e.a),e}function iE(t){return t.charAt(0)==="r"?function(e){const r=rE.exec(e);let i,n,s,o=255;if(r){if(r[7]!==i){const a=+r[7];o=r[8]?zs(a):Ai(255*a,0,255)}return i=+r[1],n=+r[3],s=+r[5],i=255&(r[2]?zs(i):Ai(i,0,255)),n=255&(r[4]?zs(n):Ai(n,0,255)),s=255&(r[6]?zs(s):Ai(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):eE(t)}class Mo{constructor(e){if(e instanceof Mo)return e;const r=typeof e;let i;var n,s,o;r==="object"?i=vg(e):r==="string"&&(o=(n=e).length,n[0]==="#"&&(o===4||o===5?s={r:255&17*er[n[1]],g:255&17*er[n[2]],b:255&17*er[n[3]],a:o===5?17*er[n[4]]:255}:o!==7&&o!==9||(s={r:er[n[1]]<<4|er[n[2]],g:er[n[3]]<<4|er[n[4]],b:er[n[5]]<<4|er[n[6]],a:o===9?er[n[7]]<<4|er[n[8]]:255})),i=s||tE(e)||iE(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=mw(this._rgb);return e&&(e.a=Vr(e.a)),e}set rgb(e){this._rgb=vg(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Vr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?Zk(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const r=Kh(e),i=r[0],n=mg(r[1]),s=mg(r[2]);return e.a<255?`hsla(${i}, ${n}%, ${s}%, ${Vr(e.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(e,r){if(e){const i=this.rgb,n=e.rgb;let s;const o=r===s?.5:r,a=2*o-1,l=i.a-n.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*n.r+.5,i.g=255&c*i.g+s*n.g+.5,i.b=255&c*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(e,r){return e&&(this._rgb=function(i,n,s){const o=Ln(Vr(i.r)),a=Ln(Vr(i.g)),l=Ln(Vr(i.b));return{r:Mi(Zc(o+s*(Ln(Vr(n.r))-o))),g:Mi(Zc(a+s*(Ln(Vr(n.g))-a))),b:Mi(Zc(l+s*(Ln(Vr(n.b))-l))),a:i.a+s*(n.a-i.a)}}(this._rgb,e._rgb,r)),this}clone(){return new Mo(this.rgb)}alpha(e){return this._rgb.a=Mi(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,r=Vo(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=r,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return pa(this._rgb,2,e),this}darken(e){return pa(this._rgb,2,-e),this}saturate(e){return pa(this._rgb,1,e),this}desaturate(e){return pa(this._rgb,1,-e),this}rotate(e){return function(r,i){var n=Kh(r);n[0]=gw(n[0]+i),n=Kf(n),r.r=n[0],r.g=n[1],r.b=n[2]}(this._rgb,e),this}}/*! + * Chart.js v4.4.8 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */const nE=(()=>{let t=0;return()=>t++})();function nt(t){return t==null}function lt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Re(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function St(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Er(t,e){return St(t)?t:e}function De(t,e){return t===void 0?e:t}const yw=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Ke(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function Mt(t,e,r,i){let n,s,o;if(lt(t))for(s=t.length,n=0;nt,x:t=>t.x,y:t=>t.y};function Co(t,e){return(_g[e]||(_g[e]=function(i){const n=function(s){const o=s.split("."),a=[];let l="";for(const c of o)l+=c,l.endsWith("\\")?l=l.slice(0,-1)+".":(a.push(l),l="");return a}(i);return s=>{for(const o of n){if(o==="")break;s=s&&s[o]}return s}}(e)))(t)}function Gf(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Qt=t=>t!==void 0,Ht=t=>typeof t=="function",xg=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0},qe=Math.PI,wt=2*qe,aE=wt+qe,ga=Number.POSITIVE_INFINITY,Zf=qe/180,Ot=qe/2,ir=qe/4,vl=2*qe/3,vw=Math.log10,ds=Math.sign;function co(t,e,r){return Math.abs(t-e)l&&c=Math.min(e,r)-i&&t<=Math.max(e,r)+i}function Xf(t,e,r){r=r||(o=>t[o]1;)i=s+n>>1,r(i)?s=i:n=i;return{lo:s,hi:n}}const Hs=(t,e,r,i)=>Xf(t,r,i?n=>{const s=t[n][e];return st[n][e]Xf(t,r,i=>t[i][e]>=r),_w=["push","pop","shift","splice","unshift"];function Eg(t,e){const r=t._chartjs;if(!r)return;const i=r.listeners,n=i.indexOf(e);n!==-1&&i.splice(n,1),i.length>0||(_w.forEach(s=>{delete t[s]}),delete t._chartjs)}const xw=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function Sw(t,e){let r=[],i=!1;return function(...n){r=n,i||(i=!0,xw.call(window,()=>{i=!1,t.apply(e,r)}))}}const kw=t=>t==="start"?"left":t==="end"?"right":"center",Gt=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,ma=t=>t===0||t===1,Og=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*wt/r),Tg=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*wt/r)+1,uo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Ot),easeOutSine:t=>Math.sin(t*Ot),easeInOutSine:t=>-.5*(Math.cos(qe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ma(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ma(t)?t:Og(t,.075,.3),easeOutElastic:t=>ma(t)?t:Tg(t,.075,.3),easeInOutElastic(t){return ma(t)?t:t<.5?.5*Og(2*t,.1125,.45):.5+.5*Tg(2*t-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-uo.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?.5*uo.easeInBounce(2*t):.5*uo.easeOutBounce(2*t-1)+.5};function Qf(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Ag(t){return Qf(t)?t:new Mo(t)}function Xc(t){return Qf(t)?t:new Mo(t).saturate(.5).darken(.1).hexString()}const uE=["x","y","borderWidth","radius","tension"],hE=["color","borderColor","backgroundColor"],Mg=new Map;function Jf(t,e,r){return function(i,n){n=n||{};const s=i+JSON.stringify(n);let o=Mg.get(s);return o||(o=new Intl.NumberFormat(i,n),Mg.set(s,o)),o}(e,r).format(t)}var Ew={formatters:{values:t=>lt(t)?t:""+t,numeric(t,e,r){if(t===0)return"0";const i=this.chart.options.locale;let n,s=t;if(r.length>1){const c=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),s=function(u,f){let h=f.length>3?f[2].value-f[1].value:f[1].value-f[0].value;return Math.abs(h)>=1&&u!==Math.floor(u)&&(h=u-Math.floor(u)),h}(t,r)}const o=vw(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Jf(t,i,l)}}};const xn=Object.create(null),Xh=Object.create(null);function ho(t,e){if(!e)return t;const r=e.split(".");for(let i=0,n=r.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,n)=>Xc(n.backgroundColor),this.hoverBorderColor=(i,n)=>Xc(n.borderColor),this.hoverColor=(i,n)=>Xc(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return Qc(this,e,r)}get(e){return ho(this,e)}describe(e,r){return Qc(Xh,e,r)}override(e,r){return Qc(xn,e,r)}route(e,r,i,n){const s=ho(this,e),o=ho(this,i),a="_"+r;Object.defineProperties(s,{[a]:{value:s[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[a],c=o[n];return Re(l)?Object.assign({},c,l):De(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(r=>r(this))}}var pt=new fE({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:hE},numbers:{type:"number",properties:uE}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ew.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}]);function Ig(t,e,r,i,n){let s=e[n];return s||(s=e[n]=t.measureText(n).width,r.push(n)),s>i&&(i=s),i}function Xi(t,e,r){const i=t.currentDevicePixelRatio,n=r!==0?Math.max(r/2,.5):0;return Math.round((e-n)*i)/i+n}function Cg(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ow(t,e,r,i,n){let s,o,a,l,c,u,f,h;const d=e.pointStyle,g=e.rotation,p=e.radius;let y=(g||0)*Zf;if(d&&typeof d=="object"&&(s=d.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]"))return t.save(),t.translate(r,i),t.rotate(y),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),d){default:n?t.ellipse(r,i,n/2,p,0,0,wt):t.arc(r,i,p,0,wt),t.closePath();break;case"triangle":u=n?n/2:p,t.moveTo(r+Math.sin(y)*u,i-Math.cos(y)*p),y+=vl,t.lineTo(r+Math.sin(y)*u,i-Math.cos(y)*p),y+=vl,t.lineTo(r+Math.sin(y)*u,i-Math.cos(y)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,o=Math.cos(y+ir)*l,f=Math.cos(y+ir)*(n?n/2-c:l),a=Math.sin(y+ir)*l,h=Math.sin(y+ir)*(n?n/2-c:l),t.arc(r-f,i-a,c,y-qe,y-Ot),t.arc(r+h,i-o,c,y-Ot,y),t.arc(r+f,i+a,c,y,y+Ot),t.arc(r-h,i+o,c,y+Ot,y+qe),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,u=n?n/2:l,t.rect(r-u,i-l,2*u,2*l);break}y+=ir;case"rectRot":f=Math.cos(y)*(n?n/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,h=Math.sin(y)*(n?n/2:p),t.moveTo(r-f,i-a),t.lineTo(r+h,i-o),t.lineTo(r+f,i+a),t.lineTo(r-h,i+o),t.closePath();break;case"crossRot":y+=ir;case"cross":f=Math.cos(y)*(n?n/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,h=Math.sin(y)*(n?n/2:p),t.moveTo(r-f,i-a),t.lineTo(r+f,i+a),t.moveTo(r+h,i-o),t.lineTo(r-h,i+o);break;case"star":f=Math.cos(y)*(n?n/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,h=Math.sin(y)*(n?n/2:p),t.moveTo(r-f,i-a),t.lineTo(r+f,i+a),t.moveTo(r+h,i-o),t.lineTo(r-h,i+o),y+=ir,f=Math.cos(y)*(n?n/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,h=Math.sin(y)*(n?n/2:p),t.moveTo(r-f,i-a),t.lineTo(r+f,i+a),t.moveTo(r+h,i-o),t.lineTo(r-h,i+o);break;case"line":o=n?n/2:Math.cos(y)*p,a=Math.sin(y)*p,t.moveTo(r-o,i-a),t.lineTo(r+o,i+a);break;case"dash":t.moveTo(r,i),t.lineTo(r+Math.cos(y)*(n?n/2:p),i+Math.sin(y)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Ro(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.xe.top-r&&t.y0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=n.string,function(u,f){f.translation&&u.translate(f.translation[0],f.translation[1]),nt(f.rotation)||u.rotate(f.rotation),f.color&&(u.fillStyle=f.color),f.textAlign&&(u.textAlign=f.textAlign),f.textBaseline&&(u.textBaseline=f.textBaseline)}(t,s),l=0;l+t||0;function Aw(t,e){const r={},i=Re(e),n=i?Object.keys(e):e,s=Re(t)?i?o=>De(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of n)r[o]=wE(s(o));return r}function Mw(t){return Aw(t,["topLeft","topRight","bottomLeft","bottomRight"])}function fr(t){const e=function(r){return Aw(r,{top:"y",right:"x",bottom:"y",left:"x"})}(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Dr(t,e){t=t||{},e=e||pt.font;let r=De(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let i=De(t.style,e.style);i&&!(""+i).match(bE)&&(i=void 0);const n={family:De(t.family,e.family),lineHeight:vE(De(t.lineHeight,e.lineHeight),r),size:r,style:i,weight:De(t.weight,e.weight),string:""};return n.string=function(s){return!s||nt(s.size)||nt(s.family)?null:(s.style?s.style+" ":"")+(s.weight?s.weight+" ":"")+s.size+"px "+s.family}(n),n}function ya(t,e,r,i){let n,s,o;for(n=0,s=t.length;nt[0]){const s=r||t;i===void 0&&(i=Rg("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:n,override:a=>ed([a,...t],e,s,i)};return new Proxy(o,{deleteProperty:(a,l)=>(delete a[l],delete a._keys,delete t[0][l],!0),get:(a,l)=>Cw(a,l,()=>function(c,u,f,h){let d;for(const g of u)if(d=Rg(_E(g,c),f),d!==void 0)return Qh(c,d)?Jh(f,h,c,d):d}(l,e,t,a)),getOwnPropertyDescriptor:(a,l)=>Reflect.getOwnPropertyDescriptor(a._scopes[0],l),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(a,l)=>Dg(a).includes(l),ownKeys:a=>Dg(a),set(a,l,c){const u=a._storage||(a._storage=n());return a[l]=u[l]=c,delete a._keys,!0}})}function qn(t,e,r,i){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Iw(t,i),setContext:s=>qn(t,s,r,i),override:s=>qn(t.override(s),e,r,i)};return new Proxy(n,{deleteProperty:(s,o)=>(delete s[o],delete t[o],!0),get:(s,o,a)=>Cw(s,o,()=>function(l,c,u){const{_proxy:f,_context:h,_subProxy:d,_descriptors:g}=l;let p=f[c];return Ht(p)&&g.isScriptable(c)&&(p=function(y,w,_,E){const{_proxy:T,_context:A,_subProxy:$,_stack:k}=_;if(k.has(y))throw new Error("Recursion detected: "+Array.from(k).join("->")+"->"+y);k.add(y);let x=w(A,$||E);return k.delete(y),Qh(y,x)&&(x=Jh(T._scopes,T,y,x)),x}(c,p,l,u)),lt(p)&&p.length&&(p=function(y,w,_,E){const{_proxy:T,_context:A,_subProxy:$,_descriptors:k}=_;if(A.index!==void 0&&E(y))return w[A.index%w.length];if(Re(w[0])){const x=w,v=T._scopes.filter(O=>O!==x);w=[];for(const O of x){const M=Jh(v,T,y,O);w.push(qn(M,A,$&&$[y],k))}}return w}(c,p,l,g.isIndexable)),Qh(c,p)&&(p=qn(p,h,d&&d[c],g)),p}(s,o,a)),getOwnPropertyDescriptor:(s,o)=>s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,o)=>Reflect.has(t,o),ownKeys:()=>Reflect.ownKeys(t),set:(s,o,a)=>(t[o]=a,delete s[o],!0)})}function Iw(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:i=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:r,indexable:i,isScriptable:Ht(r)?r:()=>r,isIndexable:Ht(i)?i:()=>i}}const _E=(t,e)=>t?t+Gf(e):e,Qh=(t,e)=>Re(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Cw(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=r();return t[e]=i,i}function Pw(t,e,r){return Ht(t)?t(e,r):t}const xE=(t,e)=>t===!0?e:typeof t=="string"?Co(e,t):void 0;function SE(t,e,r,i,n){for(const s of e){const o=xE(r,s);if(o){t.add(o);const a=Pw(o._fallback,r,n);if(a!==void 0&&a!==r&&a!==i)return a}else if(o===!1&&i!==void 0&&r!==i)return null}return!1}function Jh(t,e,r,i){const n=e._rootScopes,s=Pw(e._fallback,r,i),o=[...t,...n],a=new Set;a.add(i);let l=Pg(a,o,r,s||r,i);return l!==null&&(s===void 0||s===r||(l=Pg(a,o,s,l,i),l!==null))&&ed(Array.from(a),[""],n,s,()=>function(c,u,f){const h=c._getTarget();u in h||(h[u]={});const d=h[u];return lt(d)&&Re(f)?f:d||{}}(e,r,i))}function Pg(t,e,r,i,n){for(;r;)r=SE(t,e,r,i,n);return r}function Rg(t,e){for(const r of e){if(!r)continue;const i=r[t];if(i!==void 0)return i}}function Dg(t){let e=t._keys;return e||(e=t._keys=function(r){const i=new Set;for(const n of r)for(const s of Object.keys(n).filter(o=>!o.startsWith("_")))i.add(s);return Array.from(i)}(t._scopes)),e}const kE=Number.EPSILON||1e-14,Nn=(t,e)=>et==="x"?"y":"x";function EE(t,e,r,i){const n=t.skip?e:t,s=e,o=r.skip?e:r,a=Po(s,n),l=Po(o,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=i*c,h=i*u;return{previous:{x:s.x-f*(o.x-n.x),y:s.y-f*(o.y-n.y)},next:{x:s.x+h*(o.x-n.x),y:s.y+h*(o.y-n.y)}}}function OE(t,e="x"){const r=Lg(e),i=t.length,n=Array(i).fill(0),s=Array(i);let o,a,l,c=Nn(t,0);for(o=0;o!c.skip)),e.cubicInterpolationMode==="monotone")OE(t,n);else{let c=i?t[t.length-1]:t[0];for(s=0,o=t.length;st.ownerDocument.defaultView.getComputedStyle(t,null),AE=["top","right","bottom","left"];function an(t,e,r){const i={};r=r?"-"+r:"";for(let n=0;n<4;n++){const s=AE[n];i[s]=parseFloat(t[e+"-"+s+r])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function nn(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:i}=e,n=xl(r),s=n.boxSizing==="border-box",o=an(n,"padding"),a=an(n,"border","width"),{x:l,y:c,box:u}=function(p,y){const w=p.touches,_=w&&w.length?w[0]:p,{offsetX:E,offsetY:T}=_;let A,$,k=!1;if(((x,v,O)=>(x>0||v>0)&&(!O||!O.shadowRoot))(E,T,p.target))A=E,$=T;else{const x=y.getBoundingClientRect();A=_.clientX-x.left,$=_.clientY-x.top,k=!0}return{x:A,y:$,box:k}}(t,r),f=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:d,height:g}=e;return s&&(d-=o.width+a.width,g-=o.height+a.height),{x:Math.round((l-f)/d*r.width/i),y:Math.round((c-h)/g*r.height/i)}}const wa=t=>Math.round(10*t)/10;function ME(t,e,r,i){const n=xl(t),s=an(n,"margin"),o=va(n.maxWidth,t,"clientWidth")||ga,a=va(n.maxHeight,t,"clientHeight")||ga,l=function(f,h,d){let g,p;if(h===void 0||d===void 0){const y=f&&rd(f);if(y){const w=y.getBoundingClientRect(),_=xl(y),E=an(_,"border","width"),T=an(_,"padding");h=w.width-T.width-E.width,d=w.height-T.height-E.height,g=va(_.maxWidth,y,"clientWidth"),p=va(_.maxHeight,y,"clientHeight")}else h=f.clientWidth,d=f.clientHeight}return{width:h,height:d,maxWidth:g||ga,maxHeight:p||ga}}(t,e,r);let{width:c,height:u}=l;if(n.boxSizing==="content-box"){const f=an(n,"border","width"),h=an(n,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=wa(Math.min(c,o,l.maxWidth)),u=wa(Math.min(u,a,l.maxHeight)),c&&!u&&(u=wa(c/2)),(e!==void 0||r!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=wa(Math.floor(u*i))),{width:c,height:u}}function Ng(t,e,r){const i=e||1,n=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(r||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==n||o.width!==s)&&(t.currentDevicePixelRatio=i,o.height=n,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const IE=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};td()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function jg(t,e){const r=function(n,s){return xl(n).getPropertyValue(s)}(t,e),i=r&&r.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function sn(t,e,r,i){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function CE(t,e,r,i){return{x:t.x+r*(e.x-t.x),y:i==="middle"?r<.5?t.y:e.y:i==="after"?r<1?t.y:e.y:r>0?e.y:t.y}}function PE(t,e,r,i){const n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=sn(t,n,r),a=sn(n,s,r),l=sn(s,e,r),c=sn(o,a,r),u=sn(a,l,r);return sn(c,u,r)}function Jc(t,e,r){return t?function(i,n){return{x:s=>i+i+n-s,setWidth(s){n=s},textAlign:s=>s==="center"?s:s==="right"?"left":"right",xPlus:(s,o)=>s-o,leftForLtr:(s,o)=>s-o}}(e,r):{x:i=>i,setWidth(i){},textAlign:i=>i,xPlus:(i,n)=>i+n,leftForLtr:(i,n)=>i}}function Bg(t){return t==="angle"?{between:wl,compare:lE,normalize:Mr}:{between:Hn,compare:(e,r)=>e-r,normalize:e=>e}}function Fg({start:t,end:e,count:r,loop:i,style:n}){return{start:t%r,end:e%r,loop:i&&(e-t+1)%r==0,style:n}}function Rw(t,e,r){if(!r)return[t];const{property:i,start:n,end:s}=r,o=e.length,{compare:a,between:l,normalize:c}=Bg(i),{start:u,end:f,loop:h,style:d}=function($,k,x){const{property:v,start:O,end:M}=x,{between:Z,normalize:te}=Bg(v),U=k.length;let W,re,{start:H,end:oe,loop:K}=$;if(K){for(H+=U,oe+=U,W=0,re=U;W_||l(n,w,p)&&a(n,w)!==0,A=()=>!_||a(s,p)===0||l(s,w,p);for(let $=u,k=u;$<=f;++$)y=e[$%o],y.skip||(p=c(y[i]),p!==w&&(_=l(p,n,s),E===null&&T()&&(E=a(p,n)===0?$:k),E!==null&&A()&&(g.push(Fg({start:E,end:$,loop:h,count:o,style:d})),E=null),k=$,w=p));return E!==null&&g.push(Fg({start:E,end:f,loop:h,count:o,style:d})),g}function Dw(t,e){const r=[],i=t.segments;for(let n=0;na({chart:e,initial:r.initial,numSteps:o,currentStep:Math.min(i-r.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=xw.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,a=s.length-1,l=!1;for(;a>=0;--a)o=s[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(e),l=!0):(s[a]=s[s.length-1],s.pop());l&&(n.draw(),this._notify(n,i,e,"progress")),s.length||(i.running=!1,this._notify(n,i,e,"complete"),i.initial=!1),r+=s.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let i=r.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,i)),i}listen(e,r,i){this._getAnims(e).listeners[r].push(i)}add(e,r){r&&r.length&&this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((i,n)=>Math.max(i,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!!(r&&r.running&&r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const i=r.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Hr=new LE;const Ug="transparent",NE={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const i=Ag(t||Ug),n=i.valid&&Ag(e||Ug);return n&&n.valid?n.mix(i,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class jE{constructor(e,r,i,n){const s=r[i];n=ya([e.to,n,s,e.from]);const o=ya([e.from,s,n]);this._active=!0,this._fn=e.fn||NE[e.type||typeof o],this._easing=uo[e.easing]||uo.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(e,r,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=ya([e.to,r,n,e.from]),this._from=ya([e.from,n,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||r1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(s,a,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,i)=>{e.push({res:r,rej:i})})}_notify(e){const r=e?"res":"rej",i=this._promises||[];for(let n=0;n{const s=e[n];if(!Re(s))return;const o={};for(const a of r)o[a]=s[a];(lt(s.properties)&&s.properties||[n]).forEach(a=>{a!==n&&i.has(a)||i.set(a,o)})})}_animateOptions(e,r){const i=r.options,n=function(o,a){if(!a)return;let l=o.options;return l?(l.$shared&&(o.options=l=Object.assign({},l,{$shared:!1,$animations:{}})),l):void(o.options=a)}(e,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(o,a){const l=[],c=Object.keys(a);for(let u=0;u{e.options=i},()=>{}),s}_createAnimations(e,r){const i=this._properties,n=[],s=e.$animations||(e.$animations={}),o=Object.keys(r),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(e,r));continue}const u=r[c];let f=s[c];const h=i.get(c);if(f){if(h&&f.active()){f.update(h,u,a);continue}f.cancel()}h&&h.duration?(s[c]=f=new jE(h,e,c,u),n.push(f)):e[c]=u}return n}update(e,r){if(this._properties.size===0)return void Object.assign(e,r);const i=this._createAnimations(e,r);return i.length?(Hr.add(this._chart,i),!0):void 0}}function Vg(t,e){const r=t&&t.options||{},i=r.reverse,n=r.min===void 0?e:0,s=r.max===void 0?e:0;return{start:i?s:n,end:i?n:s}}function $g(t,e){const r=[],i=t._getSortedDatasetMetas(e);let n,s;for(n=0,s=i.length;n0||!r&&s<0)return n.index}return null}function qg(t,e){const{chart:r,_cachedMeta:i}=t,n=r._stacks||(r._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function(d,g,p){return`${d.id}.${g.id}.${p.stack||p.type}`}(s,o,i),f=e.length;let h;for(let d=0;dr[i].axis===e).shift()}function Ps(t,e){const r=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const n of e){const s=n._stacks;if(!s||s[i]===void 0||s[i][r]===void 0)return;delete s[i][r],s[i]._visualValues!==void 0&&s[i]._visualValues[r]!==void 0&&delete s[i]._visualValues[r]}}}const ru=t=>t==="reset"||t==="none",Yg=(t,e)=>e?t:Object.assign({},t);class rs{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=eu(e.vScale,e),this.addElements(),this.options.fill&&this.chart.isPluginEnabled("filler")}updateIndex(e){this.index!==e&&Ps(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,i=this.getDataset(),n=(f,h,d,g)=>f==="x"?h:f==="r"?g:d,s=r.xAxisID=De(i.xAxisID,tu(e,"x")),o=r.yAxisID=De(i.yAxisID,tu(e,"y")),a=r.rAxisID=De(i.rAxisID,tu(e,"r")),l=r.indexAxis,c=r.iAxisID=n(l,s,o,a),u=r.vAxisID=n(l,o,s,a);r.xScale=this.getScaleForId(s),r.yScale=this.getScaleForId(o),r.rScale=this.getScaleForId(a),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Eg(this._data,this),e._stacked&&Ps(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),i=this._data;if(Re(r)){const o=this._cachedMeta;this._data=function(a,l){const{iScale:c,vScale:u}=l,f=c.axis==="x"?"x":"y",h=u.axis==="x"?"x":"y",d=Object.keys(a),g=new Array(d.length);let p,y,w;for(p=0,y=d.length;p{const a="_onData"+Gf(o),l=n[o];Object.defineProperty(n,o,{configurable:!0,enumerable:!1,value(...c){const u=l.apply(this,c);return n._chartjs.listeners.forEach(f=>{typeof f[a]=="function"&&f[a](...c)}),u}})}))),this._syncList=[],this._data=r}var n,s}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=r._stacked;r._stacked=eu(r.vScale,r),r.stack!==i.stack&&(n=!0,Ps(r),r.stack=i.stack),this._resyncElements(e),(n||s!==r._stacked)&&(qg(this,r._parsed),r._stacked=eu(r.vScale,r))}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,a=s.axis;let l,c,u,f=e===0&&r===n.length||i._sorted,h=e>0&&i._parsed[e-1];if(this._parsing===!1)i._parsed=n,i._sorted=!0,u=n;else{u=lt(n[e])?this.parseArrayData(i,n,e,r):Re(n[e])?this.parseObjectData(i,n,e,r):this.parsePrimitiveData(i,n,e,r);const d=()=>c[a]===null||h&&c[a]p&&!y.hidden&&y._stacked&&{keys:$g(w,!0),values:null})(r,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=function(p){const{min:y,max:w,minDefined:_,maxDefined:E}=p.getUserBounds();return{min:_?y:Number.NEGATIVE_INFINITY,max:E?w:Number.POSITIVE_INFINITY}}(a);let h,d;function g(){d=n[h];const p=d[a.axis];return!St(d[e.axis])||u>p||f=0;--h)if(!g()){this.updateRangeFromParsed(c,e,d,l);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=r.length;n=0&&ethis.getContext(i,n,r),f);return g.$shared&&(g.$shared=l,s[o]=Object.freeze(Yg(g,l))),g}_resolveAnimations(e,r,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${r}`,a=s[o];if(a)return a;let l;if(n.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,r),h=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(h,this.getContext(e,i,r))}const c=new Lw(n,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||ru(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const i=this.resolveDataElementOptions(e,r),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(r,s)||s!==n;return this.updateSharedOptions(s,r,i),{sharedOptions:s,includeOptions:o}}updateElement(e,r,i,n){ru(n)?Object.assign(e,i):this._resolveAnimations(r,n).update(e,i)}updateSharedOptions(e,r,i){e&&!ru(r)&&this._resolveAnimations(void 0,r).update(e,i)}_setStyle(e,r,i,n){e.active=n;const s=this.getStyle(r,n);this._resolveAnimations(r,i,n).update(e,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(e,r,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,r,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=i.length,s=r.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,e):s{for(c.length+=r,a=c.length-1;a>=o;a--)c[a]=c[a-r]};for(l(s),a=e;a+i[l];if(Re(i[e])){const{key:l="value"}=this._parsing;a=c=>+Co(i[c],l)}for(s=e,o=e+r;swl(he,U,W,!0)?1:Math.max(pe,pe*v,z,z*v),j=(he,pe,z)=>wl(he,U,W,!0)?-1:Math.min(pe,pe*v,z,z*v),B=q(0,re,oe),Y=q(Ot,H,K),V=j(qe,re,oe),ce=j(qe+Ot,H,K);O=(B-V)/2,M=(Y-ce)/2,Z=-(B+V)/2,te=-(Y+ce)/2}return{ratioX:O,ratioY:M,offsetX:Z,offsetY:te}}(d,h,l),_=(i.width-o)/g,E=(i.height-o)/p,T=Math.max(Math.min(_,E)/2,0),A=yw(this.options.radius,T),$=(A-Math.max(A*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=y*A,this.offsetY=w*A,n.total=this.calculateTotal(),this.outerRadius=A-$*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-$*f,0),this.updateElements(s,0,s.length,e)}_circumference(e,r){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return r&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||n._parsed[e]===null||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*s/wt)}updateElements(e,r,i,n){const s=n==="reset",o=this.chart,a=o.chartArea,l=o.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=s&&l.animateScale,h=f?0:this.innerRadius,d=f?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(r,n);let y,w=this._getRotation();for(y=0;y0&&!isNaN(e)?wt*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=Jf(r._parsed[e],i.options.locale);return{label:n[e]||"",value:s}}getMaxBorderWidth(e){let r=0;const i=this.chart;let n,s,o,a,l;if(!e){for(n=0,s=i.data.datasets.length;ne!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Ee(qs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:i,color:n}}=e.legend.options;return r.labels.map((s,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:n,lineWidth:a.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,r,i){i.chart.toggleDataVisibility(r.index),i.chart.update()}}}});class Ga extends rs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const r=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=r,o=this.chart._animationsDisabled;let{start:a,count:l}=function(u,f,h){const d=f.length;let g=0,p=d;if(u._sorted){const{iScale:y,vScale:w,_parsed:_}=u,E=u.dataset&&u.dataset.options?u.dataset.options.spanGaps:null,T=y.axis,{min:A,max:$,minDefined:k,maxDefined:x}=y.getUserBounds();if(k){if(g=Math.min(Hs(_,T,A).lo,h?d:Hs(f,T,y.getPixelForValue(A)).lo),E){const v=_.slice(0,g+1).reverse().findIndex(O=>!nt(O[w.axis]));g-=Math.max(0,v)}g=Xr(g,0,d-1)}if(x){let v=Math.max(Hs(_,y.axis,$,!0).hi+1,h?0:Hs(f,T,y.getPixelForValue($),!0).hi+1);if(E){const O=_.slice(v-1).findIndex(M=>!nt(M[w.axis]));v+=Math.max(0,O)}p=Xr(v,g,d)-g}else p=d-g}return{start:g,count:p}}(r,n,o);this._drawStart=a,this._drawCount=l,function(u){const{xScale:f,yScale:h,_scaleRanges:d}=u,g={xmin:f.min,xmax:f.max,ymin:h.min,ymax:h.max};if(!d)return u._scaleRanges=g,!0;const p=d.xmin!==f.min||d.xmax!==f.max||d.ymin!==h.min||d.ymax!==h.max;return Object.assign(d,g),p}(r)&&(a=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},e),this.updateElements(n,a,l,e)}updateElements(e,r,i,n){const s=n==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(r,n),h=o.axis,d=a.axis,{spanGaps:g,segment:p}=this.options,y=_n(g)?g:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||s||n==="none",_=r+i,E=e.length;let T=r>0&&this.getParsed(r-1);for(let A=0;A=_){k.skip=!0;continue}const x=this.getParsed(A),v=nt(x[d]),O=k[h]=o.getPixelForValue(x[h],A),M=k[d]=s||v?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,x,l):x[d],A);k.skip=isNaN(O)||isNaN(M)||v,k.stop=A>0&&Math.abs(x[h]-T[h])>y,p&&(k.parsed=x,k.raw=c.data[A]),f&&(k.options=u||this.resolveDataElementOptions(A,$.active?"active":n)),w||this.updateElement($,A,k,n),T=x}}getMaxOverflow(){const e=this._cachedMeta,r=e.dataset,i=r.options&&r.options.borderWidth||0,n=e.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Ee(Ga,"id","line"),Ee(Ga,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Ee(Ga,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Qi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class id{constructor(e){Ee(this,"options");this.options=e||{}}static override(e){Object.assign(id.prototype,e)}init(){}formats(){return Qi()}parse(){return Qi()}format(){return Qi()}add(){return Qi()}diff(){return Qi()}startOf(){return Qi()}endOf(){return Qi()}}var Nw={_date:id};function FE(t,e,r,i){const{controller:n,data:s,_sorted:o}=t,a=n._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&s.length){const c=a._reversePixels?cE:Hs;if(!i){const u=c(s,e,r);if(l){const{vScale:f}=n._cachedMeta,{_parsed:h}=t,d=h.slice(0,u.lo+1).reverse().findIndex(p=>!nt(p[f.axis]));u.lo-=Math.max(0,d);const g=h.slice(u.hi).findIndex(p=>!nt(p[f.axis]));u.hi+=Math.max(0,g)}return u}if(n._sharedOptions){const u=s[0],f=typeof u.getRange=="function"&&u.getRange(e);if(f){const h=c(s,e,r-f),d=c(s,e,r+f);return{lo:h.lo,hi:d.hi}}}}return{lo:0,hi:s.length-1}}function rc(t,e,r,i,n){const s=t.getSortedVisibleDatasetMetas(),o=r[e];for(let a=0,l=s.length;a{l[o]&&l[o](e[r],n)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,n))}),i&&!a?[]:s}var UE={modes:{index(t,e,r,i){const n=nn(e,t),s=r.axis||"x",o=r.includeInvisible||!1,a=r.intersect?iu(t,n,s,i,o):nu(t,n,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,r,i){const n=nn(e,t),s=r.axis||"xy",o=r.includeInvisible||!1;let a=r.intersect?iu(t,n,s,i,o):nu(t,n,s,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uiu(t,nn(e,t),r.axis||"xy",i,r.includeInvisible||!1),nearest(t,e,r,i){const n=nn(e,t),s=r.axis||"xy",o=r.includeInvisible||!1;return nu(t,n,s,r.intersect,i,o)},x:(t,e,r,i)=>Kg(t,nn(e,t),"x",r.intersect,i),y:(t,e,r,i)=>Kg(t,nn(e,t),"y",r.intersect,i)}};const jw=["left","top","right","bottom"];function Rs(t,e){return t.filter(r=>r.pos===e)}function Gg(t,e){return t.filter(r=>jw.indexOf(r.pos)===-1&&r.box.axis===e)}function Ds(t,e){return t.sort((r,i)=>{const n=e?i:r,s=e?r:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function VE(t,e){const r=function(l){const c={};for(const u of l){const{stack:f,pos:h,stackWeight:d}=u;if(!f||!jw.includes(h))continue;const g=c[f]||(c[f]={count:0,placed:0,weight:0,size:0});g.count++,g.weight+=d}return c}(t),{vBoxMaxWidth:i,hBoxMaxHeight:n}=e;let s,o,a;for(s=0,o=t.length;s{s[o]=Math.max(e[o],r[o])}),s}return i(t?["left","right"]:["top","bottom"])}function Ys(t,e,r,i){const n=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;sx.box.fullSize),!0),_=Ds(Rs(y,"left"),!0),E=Ds(Rs(y,"right")),T=Ds(Rs(y,"top"),!0),A=Ds(Rs(y,"bottom")),$=Gg(y,"x"),k=Gg(y,"y");return{fullSize:w,leftAndTop:_.concat(T),rightAndBottom:E.concat(k).concat(A).concat($),chartArea:Rs(y,"chartArea"),vertical:_.concat(E).concat(k),horizontal:T.concat(A).concat($)}}(t.boxes),l=a.vertical,c=a.horizontal;Mt(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,y)=>y.box.options&&y.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:r,padding:n,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},n);Bw(h,fr(i));const d=Object.assign({maxPadding:h,w:s,h:o,x:n.left,y:n.top},n),g=VE(l.concat(c),f);Ys(a.fullSize,d,f,g),Ys(l,d,f,g),Ys(c,d,f,g)&&Ys(l,d,f,g),function(p){const y=p.maxPadding;function w(_){const E=Math.max(y[_]-p[_],0);return p[_]+=E,E}p.y+=w("top"),p.x+=w("left"),w("right"),w("bottom")}(d),Xg(a.leftAndTop,d,f,g),d.x+=d.w,d.y+=d.h,Xg(a.rightAndBottom,d,f,g),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},Mt(a.chartArea,p=>{const y=p.box;Object.assign(y,t.chartArea),y.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class Fw{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,i){}removeEventListener(e,r,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,i,n){return r=Math.max(0,r||e.width),i=i||e.height,{width:r,height:Math.max(0,n?Math.floor(r/n):i)}}isAttached(e){return!0}updateConfig(e){}}class HE extends Fw{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const xa="$chartjs",qE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Qg=t=>t===null||t==="",Ww=!!IE&&{passive:!0};function YE(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,Ww)}function Sl(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function KE(t,e,r){const i=t.canvas,n=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Sl(a.addedNodes,i),o=o&&!Sl(a.removedNodes,i);o&&r()});return n.observe(document,{childList:!0,subtree:!0}),n}function GE(t,e,r){const i=t.canvas,n=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Sl(a.removedNodes,i),o=o&&!Sl(a.addedNodes,i);o&&r()});return n.observe(document,{childList:!0,subtree:!0}),n}const Do=new Map;let Jg=0;function Uw(){const t=window.devicePixelRatio;t!==Jg&&(Jg=t,Do.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function ZE(t,e,r){const i=t.canvas,n=i&&rd(i);if(!n)return;const s=Sw((a,l)=>{const c=n.clientWidth;r(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(n),function(a,l){Do.size||window.addEventListener("resize",Uw),Do.set(a,l)}(t,s),o}function su(t,e,r){r&&r.disconnect(),e==="resize"&&function(i){Do.delete(i),Do.size||window.removeEventListener("resize",Uw)}(t)}function XE(t,e,r){const i=t.canvas,n=Sw(s=>{t.ctx!==null&&r(function(o,a){const l=qE[o.type]||o.type,{x:c,y:u}=nn(o,a);return{type:l,chart:a,native:o,x:c!==void 0?c:null,y:u!==void 0?u:null}}(s,t))},t);return function(s,o,a){s&&s.addEventListener(o,a,Ww)}(i,e,n),n}class QE extends Fw{acquireContext(e,r){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(function(n,s){const o=n.style,a=n.getAttribute("height"),l=n.getAttribute("width");if(n[xa]={initial:{height:a,width:l,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",Qg(l)){const c=jg(n,"width");c!==void 0&&(n.width=c)}if(Qg(a))if(n.style.height==="")n.height=n.width/(s||2);else{const c=jg(n,"height");c!==void 0&&(n.height=c)}}(e,r),i):null}releaseContext(e){const r=e.canvas;if(!r[xa])return!1;const i=r[xa].initial;["height","width"].forEach(s=>{const o=i[s];nt(o)?r.removeAttribute(s):r.setAttribute(s,o)});const n=i.style||{};return Object.keys(n).forEach(s=>{r.style[s]=n[s]}),r.width=r.width,delete r[xa],!0}addEventListener(e,r,i){this.removeEventListener(e,r);const n=e.$proxies||(e.$proxies={}),s={attach:KE,detach:GE,resize:ZE}[r]||XE;n[r]=s(e,r,i)}removeEventListener(e,r){const i=e.$proxies||(e.$proxies={}),n=i[r];n&&(({attach:su,detach:su,resize:su}[r]||YE)(e,r,n),i[r]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,i,n){return ME(e,r,i,n)}isAttached(e){const r=e&&rd(e);return!(!r||!r.isConnected)}}var Na;let pr=(Na=class{constructor(){Ee(this,"x");Ee(this,"y");Ee(this,"active",!1);Ee(this,"options");Ee(this,"$animations")}tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return _n(this.x)&&_n(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const i={};return t.forEach(n=>{i[n]=r[n]&&r[n].active()?r[n]._to:this[n]}),i}},Ee(Na,"defaults",{}),Ee(Na,"defaultRoutes"),Na);function JE(t,e){const r=t.options.ticks,i=function(f){const h=f.options.offset,d=f._tickSize(),g=f._length/d+(h?0:1),p=f._maxLength/d;return Math.floor(Math.min(g,p))}(t),n=Math.min(r.maxTicksLimit||i,i),s=r.major.enabled?function(f){const h=[];let d,g;for(d=0,g=f.length;dn)return function(f,h,d,g){let p,y=0,w=d[0];for(g=Math.ceil(g),p=0;pA-$).pop(),_}(g);for(let w=0,_=y.length-1;w<_;w++){const E=y[w];if(E>p)return E}return Math.max(p,1)}(s,e,n);if(o>0){let f,h;const d=o>1?Math.round((l-a)/(o-1)):null;for(Sa(e,c,u,nt(d)?0:a-d,a),f=0,h=o-1;fe==="top"||e==="left"?t[e]+r:t[e]-r,tm=(t,e)=>Math.min(e||t,t);function rm(t,e){const r=[],i=t.length/e,n=t.length;let s=0;for(;so+a)))return c}function Ls(t){return t.drawTicks?t.tickLength:0}function im(t,e){if(!t.display)return 0;const r=Dr(t.font,e),i=fr(t.padding);return(lt(t.text)?t.text.length:1)*r.lineHeight+i.height}function tO(t,e,r){let i=kw(t);return(r&&e!=="right"||!r&&e==="right")&&(i=(n=>n==="left"?"right":n==="right"?"left":n)(i)),i}class Ho extends pr{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,r){return e}getUserBounds(){let{_userMin:e,_userMax:r,_suggestedMin:i,_suggestedMax:n}=this;return e=Er(e,Number.POSITIVE_INFINITY),r=Er(r,Number.NEGATIVE_INFINITY),i=Er(i,Number.POSITIVE_INFINITY),n=Er(n,Number.NEGATIVE_INFINITY),{min:Er(e,i),max:Er(r,n),minDefined:St(e),maxDefined:St(r)}}getMinMax(e){let r,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:i,n=s&&i>n?i:n,{min:Er(i,Er(n,i)),max:Er(n,Er(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ke(this.options.beforeUpdate,[this])}update(e,r,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(c,u,f){const{min:h,max:d}=c,g=yw(u,(d-h)/2),p=(y,w)=>f&&y===0?0:y+w;return{min:p(h,-Math.abs(g)),max:p(d,g)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,d=Xr(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/i:d/(i-1),f+6>o&&(o=d/(i-(e.offset?.5:1)),a=this.maxHeight-Ls(e.grid)-r.padding-im(e.title,this.chart.options.font),l=Math.sqrt(f*f+h*h),c=ww(Math.min(Math.asin(Xr((u.highest.height+6)/o,-1,1)),Math.asin(Xr(a/l,-1,1))-Math.asin(Xr(h/l,-1,1)))),c=Math.max(n,Math.min(s,c))),this.labelRotation=c}afterCalculateLabelRotation(){Ke(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ke(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=im(n,r.options.font);if(a?(e.width=this.maxWidth,e.height=Ls(s)+l):(e.height=this.maxHeight,e.width=Ls(s)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:h}=this._getLabelSizes(),d=2*i.padding,g=_t(this.labelRotation),p=Math.cos(g),y=Math.sin(g);if(a){const w=i.mirror?0:y*f.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+w+d)}else{const w=i.mirror?0:p*f.width+y*h.height;e.width=Math.min(this.maxWidth,e.width+w+d)}this._calculatePadding(c,u,y,p)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,i,n){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;l?c?(h=n*e.width,d=i*r.height):(h=i*e.height,d=n*r.width):s==="start"?d=r.width:s==="end"?h=e.width:s!=="inner"&&(h=e.width/2,d=r.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((d-f+o)*this.width/(this.width-f),0)}else{let u=r.height/2,f=e.height/2;s==="start"?(u=0,f=e.height):s==="end"&&(u=r.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ke(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let r,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),r=0,i=e.length;r{const Z=M.gc,te=Z.length/2;let U;if(te>O){for(U=0;U({width:o[v]||0,height:a[v]||0});return{first:x(0),last:x(r-1),widest:x($),highest:x(k),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return Xr(this._alignToPixels?Xi(this.chart,r,0):r,-32768,32767)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&ea*n?a/i:l/n:l*n0}_computeGridLineItems(e){const r=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:a}=n,l=s.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Ls(s),h=[],d=a.setContext(this.getContext()),g=d.display?d.width:0,p=g/2,y=function(W){return Xi(i,W,g)};let w,_,E,T,A,$,k,x,v,O,M,Z;if(o==="top")w=y(this.bottom),$=this.bottom-f,x=w-p,O=y(e.top)+p,Z=e.bottom;else if(o==="bottom")w=y(this.top),O=e.top,Z=y(e.bottom)-p,$=w+p,x=this.top+f;else if(o==="left")w=y(this.right),A=this.right-f,k=w-p,v=y(e.left)+p,M=e.right;else if(o==="right")w=y(this.left),v=e.left,M=y(e.right)-p,A=w+p,k=this.left+f;else if(r==="x"){if(o==="center")w=y((e.top+e.bottom)/2+.5);else if(Re(o)){const W=Object.keys(o)[0],re=o[W];w=y(this.chart.scales[W].getPixelForValue(re))}O=e.top,Z=e.bottom,$=w+p,x=$+f}else if(r==="y"){if(o==="center")w=y((e.left+e.right)/2);else if(Re(o)){const W=Object.keys(o)[0],re=o[W];w=y(this.chart.scales[W].getPixelForValue(re))}A=w-p,k=A-f,v=e.left,M=e.right}const te=De(n.ticks.maxTicksLimit,u),U=Math.max(1,Math.ceil(u/te));for(_=0;_0&&(he-=V/2)}q={left:he,top:ce,width:V+B.width,height:Y+B.height,color:W.backdropColor}}y.push({label:T,font:v,textOffset:Z,options:{rotation:p,color:H,strokeColor:oe,strokeWidth:K,textAlign:j,textBaseline:te,translation:[A,$],backdrop:q}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-_t(this.labelRotation))return e==="top"?"left":"right";let i="center";return r.align==="start"?i="left":r.align==="end"?i="right":r.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:r,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=e+s,a=this._getLabelSizes().widest.width;let l,c;return r==="left"?n?(c=this.right+s,i==="near"?l="left":i==="center"?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-o,i==="near"?l="right":i==="center"?(l="center",c-=a/2):(l="left",c=this.left)):r==="right"?n?(c=this.left+s,i==="near"?l="right":i==="center"?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+o,i==="near"?l="left":i==="center"?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,r=this.options.position;return r==="left"||r==="right"?{top:0,left:this.left,bottom:e.height,right:this.right}:r==="top"||r==="bottom"?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:r},left:i,top:n,width:s,height:o}=this;r&&(e.save(),e.fillStyle=r,e.fillRect(i,n,s,o),e.restore())}getLineWidthForValue(e){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const i=this.ticks.findIndex(n=>n.value===e);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const r=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,c,u)=>{u.width&&u.color&&(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(r.display)for(s=0,o=n.length;s{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:r,draw:s=>{this.drawLabels(s)}}]:[{z:r,draw:s=>{this.draw(s)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=r.length;s{const g=d.split("."),p=g.pop(),y=[f].concat(g).join("."),w=h[d].split("."),_=w.pop(),E=w.join(".");pt.route(y,p,E,_)})}(l,a.defaultRoutes),a.descriptors&&pt.describe(l,a.descriptors)}(e,o,i),this.override&&pt.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const r=this.items,i=e.id,n=this.scope;i in r&&delete r[i],n&&i in pt[n]&&(delete pt[n][i],this.override&&delete xn[i])}}class rO{constructor(){this.controllers=new ka(rs,"datasets",!0),this.elements=new ka(pr,"elements"),this.plugins=new ka(Object,"plugins"),this.scales=new ka(Ho,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,i){[...r].forEach(n=>{const s=i||this._getRegistryForType(n);i||s.isForType(n)||s===this.plugins&&n.id?this._exec(e,s,n):Mt(n,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,r,i){const n=Gf(e);Ke(i["before"+n],[],i),r[e](i),Ke(i["after"+n],[],i)}_getRegistryForType(e){for(let r=0;rs.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(n(r,i),e,"stop"),this._notify(n(i,r),e,"start")}}function nO(t,e){return e||t!==!1?t===!0?{}:t:null}function sO(t,{plugin:e,local:r},i,n){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return r&&e.defaults&&o.push(e.defaults),t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ef(t,e){const r=pt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function nm(t){if(t==="x"||t==="y"||t==="r")return t}function tf(t,...e){if(nm(t))return t;for(const i of e){const n=i.axis||((r=i.position)==="top"||r==="bottom"?"x":r==="left"||r==="right"?"y":void 0)||t.length>1&&nm(t[0].toLowerCase());if(n)return n}var r;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function sm(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function oO(t,e){const r=xn[t.type]||{scales:{}},i=e.scales||{},n=ef(t.type,e),s=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!Re(a)||a._proxy)return;const l=tf(o,a,function(f,h){if(h.data&&h.data.datasets){const d=h.data.datasets.filter(g=>g.xAxisID===f||g.yAxisID===f);if(d.length)return sm(f,"x",d[0])||sm(f,"y",d[0])}return{}}(o,t),pt.scales[a.type]),c=function(f,h){return f===h?"_index_":"_value_"}(l,n),u=r.scales||{};s[o]=lo(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||ef(a,e),c=(xn[a]||{}).scales||{};Object.keys(c).forEach(u=>{const f=function(d,g){let p=d;return d==="_index_"?p=g:d==="_value_"&&(p=g==="x"?"y":"x"),p}(u,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),lo(s[h],[{axis:f},i[h],c[u]])})}),Object.keys(s).forEach(o=>{const a=s[o];lo(a,[pt.scales[a.type],pt.scale])}),s}function om(t){const e=t.options||(t.options={});e.plugins=De(e.plugins,{}),e.scales=oO(t,e)}function am(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lm=new Map,Vw=new Set;function Ea(t,e){let r=lm.get(t);return r||(r=e(),lm.set(t,r),Vw.add(r)),r}const Ns=(t,e,r)=>{const i=Co(e,r);i!==void 0&&t.add(i)};class aO{constructor(e){this._config=function(r){return(r=r||{}).data=am(r.data),om(r),r}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=am(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),om(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ea(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return Ea(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return Ea(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id;return Ea(`${this.type}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const i=this._scopeCache;let n=i.get(e);return n&&!r||(n=new Map,i.set(e,n)),n}getOptionScopes(e,r,i){const{options:n,type:s}=this,o=this._cachedScopes(e,i),a=o.get(r);if(a)return a;const l=new Set;r.forEach(u=>{e&&(l.add(e),u.forEach(f=>Ns(l,e,f))),u.forEach(f=>Ns(l,n,f)),u.forEach(f=>Ns(l,xn[s]||{},f)),u.forEach(f=>Ns(l,pt,f)),u.forEach(f=>Ns(l,Xh,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Vw.has(r)&&o.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,xn[r]||{},pt.datasets[r]||{},{type:r},pt,Xh]}resolveNamedOptions(e,r,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=cm(this._resolverCache,e,n);let l=o;(function(c,u){const{isScriptable:f,isIndexable:h}=Iw(c);for(const d of u){const g=f(d),p=h(d),y=(p||g)&&c[d];if(g&&(Ht(y)||lO(y))||p&<(y))return!0}return!1})(o,r)&&(s.$shared=!1,l=qn(o,i=Ht(i)?i():i,this.createResolver(e,i,a)));for(const c of r)s[c]=l[c];return s}createResolver(e,r,i=[""],n){const{resolver:s}=cm(this._resolverCache,e,i);return Re(r)?qn(s,r,void 0,n):s}}function cm(t,e,r){let i=t.get(e);i||(i=new Map,t.set(e,i));const n=r.join();let s=i.get(n);return s||(s={resolver:ed(e,r),subPrefixes:r.filter(o=>!o.toLowerCase().includes("hover"))},i.set(n,s)),s}const lO=t=>Re(t)&&Object.getOwnPropertyNames(t).some(e=>Ht(t[e])),cO=["top","bottom","left","right","chartArea"];function um(t,e){return t==="top"||t==="bottom"||cO.indexOf(t)===-1&&e==="x"}function hm(t,e){return function(r,i){return r[t]===i[t]?r[e]-i[e]:r[t]-i[t]}}function fm(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),Ke(r&&r.onComplete,[t],e)}function uO(t){const e=t.chart,r=e.options.animation;Ke(r&&r.onProgress,[t],e)}function $w(t){return td()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Za={},dm=t=>{const e=$w(t);return Object.values(Za).filter(r=>r.canvas===e).pop()};function hO(t,e,r){const i=Object.keys(t);for(const n of i){const s=+n;if(s>=e){const o=t[n];delete t[n],(r>0||s>e)&&(t[s+r]=o)}}}function Oa(t,e,r){return t.options.clip?t[r]:e[r]}var di;let is=(di=class{static register(...t){Ar.add(...t),pm()}static unregister(...t){Ar.remove(...t),pm()}constructor(t,e){const r=this.config=new aO(e),i=$w(t),n=dm(i);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(u){return!td()||typeof OffscreenCanvas<"u"&&u instanceof OffscreenCanvas?HE:QE}(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,s.aspectRatio),a=o&&o.canvas,l=a&&a.height,c=a&&a.width;this.id=nE(),this.ctx=o,this.canvas=a,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new iO,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(u,f){let h;return function(...d){return f?(clearTimeout(h),h=setTimeout(u,f,d)):u.apply(this,d),f}}(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],Za[this.id]=this,o&&a&&(Hr.listen(this,"complete",fm),Hr.listen(this,"progress",uO),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:i,_aspectRatio:n}=this;return nt(t)?e&&n?n:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ar}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ng(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Cg(this.canvas,this.ctx),this}stop(){return Hr.stop(this),this}resize(t,e){Hr.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,i=this.canvas,n=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,e,n),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Ng(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Ke(r.onResize,[this,s],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Mt(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,i=Object.keys(r).reduce((s,o)=>(s[o]=!1,s),{});let n=[];e&&(n=n.concat(Object.keys(e).map(s=>{const o=e[s],a=tf(s,o),l=a==="r",c=a==="x";return{options:o,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),Mt(n,s=>{const o=s.options,a=o.id,l=tf(a,o),c=De(o.type,s.dtype);o.position!==void 0&&um(o.position,l)===um(s.dposition)||(o.position=s.dposition),i[a]=!0;let u=null;a in r&&r[a].type===c?u=r[a]:(u=new(Ar.getScale(c))({id:a,type:c,ctx:this.ctx,chart:this}),r[u.id]=u),u.init(o,t)}),Mt(i,(s,o)=>{s||delete r[o]}),Mt(r,s=>{Ii.configure(this,s,s.options),Ii.addBox(this,s)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort((i,n)=>i.index-n.index),r>e){for(let i=e;ie.length&&delete this._stacks,t.forEach((r,i)=>{e.filter(n=>n===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=e.length;r{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hm("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Mt(this.scales,t=>{Ii.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);xg(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:n}of e)hO(t,i,r==="_removeElements"?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=n=>new Set(t.filter(s=>s[0]===n).map((s,o)=>o+","+s.splice(1).join(","))),i=r(0);for(let n=1;nn.split(",")).map(n=>({method:n[1],start:+n[2],count:+n[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ii.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Mt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,n)=>{i._idx=n}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,r=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,i=!r.disabled,n=function(o,a){const{xScale:l,yScale:c}=o;return l&&c?{left:Oa(l,a,"left"),right:Oa(l,a,"right"),top:Oa(c,a,"top"),bottom:Oa(c,a,"bottom")}:a}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&$o(e,{left:r.left===!1?0:n.left-r.left,right:r.right===!1?this.width:n.right+r.right,top:r.top===!1?0:n.top-r.top,bottom:r.bottom===!1?this.height:n.bottom+r.bottom}),t.controller.draw(),i&&zo(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Ro(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,i){const n=UE.modes[e];return typeof n=="function"?n(this,t,r,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let i=r.filter(n=>n&&n._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ps(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const i=r?"show":"hide",n=this.getDatasetMeta(t),s=n.controller._resolveAnimations(void 0,i);Qt(e)?(n.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(n,{visible:r}),this.update(o=>o.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Hr.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,n,s),t[n]=s},i=(n,s,o)=>{n.offsetX=s,n.offsetY=o,this._eventHandler(n)};Mt(this.options.events,n=>r(n,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(a,l)=>{e.addEventListener(this,a,l),t[a]=l},i=(a,l)=>{t[a]&&(e.removeEventListener(this,a,l),delete t[a])},n=(a,l)=>{this.canvas&&this.resize(a,l)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",n),r("detach",s)};s=()=>{this.attached=!1,i("resize",n),this._stop(),this._resize(0,0),r("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){Mt(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Mt(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const i=r?"set":"remove";let n,s,o,a;for(e==="dataset"&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=t.length;o{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[n],index:n}});!wg(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,r){const i=this.options.hover,n=(a,l)=>a.filter(c=>!l.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),s=n(e,t),o=r?t:n(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const n=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(n||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:i=[],options:n}=this,s=e,o=this._getActiveElements(t,i,r,s),a=function(u){return u.type==="mouseup"||u.type==="click"||u.type==="contextmenu"}(t),l=function(u,f,h,d){return h&&u.type!=="mouseout"?d?f:u:null}(t,this._lastEvent,r,a);r&&(this._lastEvent=null,Ke(n.onHover,[t,o,this],this),a&&Ke(n.onClick,[t,o,this],this));const c=!wg(o,i);return(c||e)&&(this._active=o,this._updateHoverStyles(o,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,r,i){if(t.type==="mouseout")return[];if(!r)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,i)}},Ee(di,"defaults",pt),Ee(di,"instances",Za),Ee(di,"overrides",xn),Ee(di,"registry",Ar),Ee(di,"version","4.4.8"),Ee(di,"getChart",dm),di);function pm(){return Mt(is.instances,t=>t._plugins.invalidate())}function gm(t,e,r=e){t.lineCap=De(r.borderCapStyle,e.borderCapStyle),t.setLineDash(De(r.borderDash,e.borderDash)),t.lineDashOffset=De(r.borderDashOffset,e.borderDashOffset),t.lineJoin=De(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=De(r.borderWidth,e.borderWidth),t.strokeStyle=De(r.borderColor,e.borderColor)}function fO(t,e,r){t.lineTo(r.x,r.y)}function zw(t,e,r={}){const i=t.length,{start:n=0,end:s=i-1}=r,{start:o,end:a}=e,l=Math.max(n,o),c=Math.min(s,a),u=na&&s>a;return{count:i,start:l,loop:e.loop,ilen:c(o+(c?a-T:T))%s,E=()=>{d!==g&&(t.lineTo(y,g),t.lineTo(y,d),t.lineTo(y,p))};for(l&&(f=n[_(0)],t.moveTo(f.x,f.y)),u=0;u<=a;++u){if(f=n[_(u)],f.skip)continue;const T=f.x,A=f.y,$=0|T;$===h?(Ag&&(g=A),y=(w*y+T)/++w):(E(),t.lineTo(T,A),h=$,w=0,d=g=A),p=A}E()}function rf(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||e.cubicInterpolationMode==="monotone"||e.stepped||r?dO:pO}const gO=typeof Path2D=="function";function mO(t,e,r,i){gO&&!e.options.segment?function(n,s,o,a){let l=s._path;l||(l=s._path=new Path2D,s.path(l,o,a)&&l.closePath()),gm(n,s.options),n.stroke(l)}(t,e,r,i):function(n,s,o,a){const{segments:l,options:c}=s,u=rf(s);for(const f of l)gm(n,c,f.style),n.beginPath(),u(n,s,f,{start:o,end:o+a-1})&&n.closePath(),n.stroke()}(t,e,r,i)}class un extends pr{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,r){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;TE(this._points,i,e,n,r),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,r){const i=e.points,n=e.options.spanGaps,s=i.length;if(!s)return[];const o=!!e._loop,{start:a,end:l}=function(c,u,f,h){let d=0,g=u-1;if(f&&!h)for(;dd&&c[g%u].skip;)g--;return g%=u,{start:d,end:g}}(i,s,o,n);return RE(e,n===!0?[{start:a,end:l,loop:o}]:function(c,u,f,h){const d=c.length,g=[];let p,y=u,w=c[u];for(p=u+1;p<=f;++p){const _=c[p%d];_.skip||_.stop?w.skip||(h=!1,g.push({start:u%d,end:(p-1)%d,loop:h}),u=y=_.stop?p:null):(y=p,w.skip&&(u=p)),w=_}return y!==null&&g.push({start:u%d,end:y%d,loop:h}),g}(i,a,le!=="borderDash"&&e!=="fill"});function mm(t,e,r,i){const n=t.options,{[r]:s}=t.getProps([r],i);return Math.abs(e-s)t;e--){const i=r[e];if(!isNaN(i.x)&&!isNaN(i.y))break}return e}function ym(t,e,r,i){return t&&e?i(t[r],e[r]):t?t[r]:e?e[r]:0}function bm(t,e){let r=[],i=!1;return lt(t)?(i=!0,r=t):r=function(n,s){const{x:o=null,y:a=null}=n||{},l=s.points,c=[];return s.segments.forEach(({start:u,end:f})=>{f=nd(u,f,l);const h=l[u],d=l[f];a!==null?(c.push({x:h.x,y:a}),c.push({x:d.x,y:a})):o!==null&&(c.push({x:o,y:h.y}),c.push({x:o,y:d.y}))}),c}(t,e),r.length?new un({points:r,options:{tension:0},_loop:i,_fullLoop:i}):null}function vm(t){return t&&t.fill!==!1}function yO(t,e,r){let i=t[e].fill;const n=[e];let s;if(!r)return i;for(;i!==!1&&n.indexOf(i)===-1;){if(!St(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;n.push(i),i=s.fill}return!1}function bO(t,e,r){const i=function(s){const o=s.options,a=o.fill;let l=De(a&&a.target,a);return l===void 0&&(l=!!o.backgroundColor),l===!1||l===null?!1:l===!0?"origin":l}(t);if(Re(i))return!isNaN(i.value)&&i;let n=parseFloat(i);return St(n)&&Math.floor(n)===n?function(s,o,a,l){return s!=="-"&&s!=="+"||(a=o+a),a===o||a<0||a>=l?!1:a}(i[0],e,n,r):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function vO(t,e,r){const i=[];for(let n=0;n=0;--o){const a=n[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&lu(t.ctx,a,s))}},beforeDatasetsDraw(t,e,r){if(r.drawTime!=="beforeDatasetsDraw")return;const i=t.getSortedVisibleDatasetMetas();for(let n=i.length-1;n>=0;--n){const s=i[n].$filler;vm(s)&&lu(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,r){const i=e.meta.$filler;vm(i)&&r.drawTime==="beforeDatasetDraw"&&lu(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const km=(t,e)=>{let{boxHeight:r=e,boxWidth:i=e}=t;return t.usePointStyle&&(r=Math.min(r,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:r,itemHeight:Math.max(e,r)}};class Em extends pr{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,i){this.maxWidth=e,this.maxHeight=r,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=Ke(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(i=>e.filter(i,this.chart.data))),e.sort&&(r=r.sort((i,n)=>e.sort(i,n,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,n=Dr(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=km(i,s);let c,u;r.font=n.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,n,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,r,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=n+a;let f=e;s.textAlign="left",s.textBaseline="middle";let h=-1,d=-u;return this.legendItems.forEach((g,p)=>{const y=i+r/2+s.measureText(g.text).width;(p===0||c[c.length-1]+y+2*a>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,d+=u,h++),l[p]={left:0,top:d,row:h,width:y,height:n},c[c.length-1]+=y+a}),f}_fitCols(e,r,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let f=a,h=0,d=0,g=0,p=0;return this.legendItems.forEach((y,w)=>{const{itemWidth:_,itemHeight:E}=function(T,A,$,k,x){const v=function(M,Z,te,U){let W=M.text;return W&&typeof W!="string"&&(W=W.reduce((re,H)=>re.length>H.length?re:H)),Z+te.size/2+U.measureText(W).width}(k,T,A,$),O=function(M,Z,te){let U=M;return typeof Z.text!="string"&&(U=Om(Z,te)),U}(x,k,A.lineHeight);return{itemWidth:v,itemHeight:O}}(i,r,s,y,n);w>0&&d+E+2*a>u&&(f+=h+a,c.push({width:h,height:d}),g+=h+a,p++,h=d=0),l[w]={left:g,top:d,col:p,width:_,height:E},h=Math.max(h,_),d+=E+a}),f+=h,c.push({width:h,height:d}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Jc(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Gt(i,this.left+n,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=Gt(i,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+e+n,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+n}else{let a=0,l=Gt(i,this.top+e+n,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=Gt(i,this.top+e+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;$o(e,this),this._draw(),zo(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:i,ctx:n}=this,{align:s,labels:o}=e,a=pt.color,l=Jc(e.rtl,this.left,this.width),c=Dr(o.font),{padding:u}=o,f=c.size,h=f/2;let d;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:y}=km(o,f),w=this.isHorizontal(),_=this._computeTitleHeight();d=w?{x:Gt(s,this.left+u,this.right-i[0]),y:this.top+u+_,line:0}:{x:this.left+u,y:Gt(s,this.top+_+u,this.bottom-r[0].height),line:0},function(T,A){let $,k;A!=="ltr"&&A!=="rtl"||($=T.canvas.style,k=[$.getPropertyValue("direction"),$.getPropertyPriority("direction")],$.setProperty("direction",A,"important"),T.prevTextDirection=k)}(this.ctx,e.textDirection);const E=y+u;this.legendItems.forEach((T,A)=>{n.strokeStyle=T.fontColor,n.fillStyle=T.fontColor;const $=n.measureText(T.text).width,k=l.textAlign(T.textAlign||(T.textAlign=o.textAlign)),x=g+h+$;let v=d.x,O=d.y;if(l.setWidth(this.width),w?A>0&&v+x+u>this.right&&(O=d.y+=E,d.line++,v=d.x=Gt(s,this.left+u,this.right-i[d.line])):A>0&&O+E>this.bottom&&(v=d.x=v+r[d.line].width+u,d.line++,O=d.y=Gt(s,this.top+_+u,this.bottom-r[d.line].height)),function(M,Z,te){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;n.save();const U=De(te.lineWidth,1);if(n.fillStyle=De(te.fillStyle,a),n.lineCap=De(te.lineCap,"butt"),n.lineDashOffset=De(te.lineDashOffset,0),n.lineJoin=De(te.lineJoin,"miter"),n.lineWidth=U,n.strokeStyle=De(te.strokeStyle,a),n.setLineDash(De(te.lineDash,[])),o.usePointStyle){const W={radius:p*Math.SQRT2/2,pointStyle:te.pointStyle,rotation:te.rotation,borderWidth:U},re=l.xPlus(M,g/2);Ow(n,W,re,Z+h,o.pointStyleWidth&&g)}else{const W=Z+Math.max((f-p)/2,0),re=l.leftForLtr(M,g),H=Mw(te.borderRadius);n.beginPath(),Object.values(H).some(oe=>oe!==0)?Tw(n,{x:re,y:W,w:g,h:p,radius:H}):n.rect(re,W,g,p),n.fill(),U!==0&&n.stroke()}n.restore()}(l.x(v),O,T),v=((M,Z,te,U)=>M===(U?"left":"right")?te:M==="center"?(Z+te)/2:Z)(k,v+g+h,w?v+x:this.right,e.rtl),function(M,Z,te){_l(n,te.text,M,Z+y/2,c,{strikethrough:te.hidden,textAlign:l.textAlign(te.textAlign)})}(l.x(v),O,T),w)d.x+=x+u;else if(typeof T.text!="string"){const M=c.lineHeight;d.y+=Om(T,M)+u}else d.y+=E}),function(T,A){A!==void 0&&(delete T.prevTextDirection,T.canvas.style.setProperty("direction",A[0],A[1]))}(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,i=Dr(r.font),n=fr(r.padding);if(!r.display)return;const s=Jc(e.rtl,this.left,this.width),o=this.ctx,a=r.position,l=i.size/2,c=n.top+l;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,f=Gt(e.align,f,this.right-h);else{const g=this.columnSizes.reduce((p,y)=>Math.max(p,y.height),0);u=c+Gt(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const d=Gt(a,f,f+h);o.textAlign=s.textAlign(kw(a)),o.textBaseline="middle",o.strokeStyle=r.color,o.fillStyle=r.color,o.font=i.string,_l(o,r.text,d,u,i)}_computeTitleHeight(){const e=this.options.title,r=Dr(e.font),i=fr(e.padding);return e.display?r.lineHeight+i.height:0}_getLegendItemAt(e,r){let i,n,s;if(Hn(e,this.left,this.right)&&Hn(r,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:i,textAlign:n,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),u=fr(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};function SO(t,e){const r=[],{bounds:i,step:n,min:s,max:o,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:f}=t,h=n||1,d=c-1,{min:g,max:p}=e,y=!nt(s),w=!nt(o),_=!nt(l),E=(p-g)/(u+1);let T,A,$,k,x=Sg((p-g)/d/h)*h;if(x<1e-14&&!y&&!w)return[{value:g},{value:p}];k=Math.ceil(p/x)-Math.floor(g/x),k>d&&(x=Sg(k*x/d/h)*h),nt(a)||(T=Math.pow(10,a),x=Math.ceil(x*T)/T),i==="ticks"?(A=Math.floor(g/x)*x,$=Math.ceil(p/x)*x):(A=g,$=p),y&&w&&n&&function(M,Z){const te=Math.round(M);return te-Z<=M&&te+Z>=M}((o-s)/n,x/1e3)?(k=Math.round(Math.min((o-s)/x,c)),x=(o-s)/k,A=s,$=o):_?(A=y?s:A,$=w?o:$,k=l-1,x=($-A)/k):(k=($-A)/x,k=co(k,Math.round(k),x/1e3)?Math.round(k):Math.ceil(k));const v=Math.max(kg(x),kg(A));T=Math.pow(10,nt(a)?v:a),A=Math.round(A*T)/T,$=Math.round($*T)/T;let O=0;for(y&&(f&&A!==s?(r.push({value:s}),Ao)break;r.push({value:M})}return w&&f&&$!==o?r.length&&co(r[r.length-1].value,o,Tm(o,E,t))?r[r.length-1].value=o:r.push({value:o}):w&&$!==o||r.push({value:$}),r}function Tm(t,e,{horizontal:r,minRotation:i}){const n=_t(i),s=(r?Math.sin(n):Math.cos(n))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class kO extends Ho{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,r){return nt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:r,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=l=>n=r?n:l,a=l=>s=i?s:l;if(e){const l=ds(n),c=ds(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(n===s){let l=s===0?1:Math.abs(.05*s);a(s+l),e||o(n-l)}this.min=n,this.max=s}getTickLimit(){const e=this.options.ticks;let r,{maxTicksLimit:i,stepSize:n}=e;return n?(r=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,r>1e3&&(r=1e3)):(r=this.computeTickLimit(),i=i||11),i&&(r=Math.min(i,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,r=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=SO({maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},this._range||this);return e.bounds==="ticks"&&function(s,o,a){let l,c,u;for(l=0,c=s.length;l=e?r[i]:r[n]]=!0}}else t[e]=!0}function Rm(t,e,r){const i=[],n={},s=e.length;let o,a;for(o=0;o=0&&(c[y].major=!0);return c}(t,i,n,r):i}class Dm extends Ho{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r={}){const i=e.time||(e.time={}),n=this._adapter=new Nw._date(e.adapters.date);n.init(r),lo(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return e===void 0?null:Im(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,i=e.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){o||isNaN(c.min)||(n=Math.min(n,c.min)),a||isNaN(c.max)||(s=Math.max(s,c.max))}o&&a||(l(this._getLabelBounds()),e.bounds==="ticks"&&e.ticks.source==="labels"||l(this.getMinMax(!1))),n=St(n)&&!isNaN(n)?n:+r.startOf(Date.now(),i),s=St(s)&&!isNaN(s)?s:+r.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],i=e[e.length-1]),{min:r,max:i}}buildTicks(){const e=this.options,r=e.time,i=e.ticks,n=i.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(a,l,c){let u=0,f=a.length;for(;uu&&a[f-1]>c;)f--;return u>0||f=Vt.indexOf(c);h--){const d=Vt[h];if(kl[d].common&&a._adapter.diff(f,u,d)>=l-1)return d}return Vt[c?Vt.indexOf(c):0]}(this,o.length,r.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&this._unit!=="year"?function(a){for(let l=Vt.indexOf(a)+1,c=Vt.length;l+e.value))}initOffsets(e=[]){let r,i,n=0,s=0;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),n=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),s=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Xr(n,0,o),s=Xr(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const e=this._adapter,r=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||Cm(s.minUnit,r,i,this._getLabelCapacity(r)),a=De(n.ticks.stepSize,1),l=o==="week"&&s.isoWeekday,c=_n(l)||l===!0,u={};let f,h,d=r;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(i,r,o)>1e5*a)throw new Error(r+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g=n.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f+p)}getLabelForValue(e){const r=this._adapter,i=this.options.time;return i.tooltipFormat?r.format(e,i.tooltipFormat):r.format(e,i.displayFormats.datetime)}format(e,r){const i=this.options.time.displayFormats,n=this._unit,s=r||i[n];return this._adapter.format(e,s)}_tickFormatFunction(e,r,i,n){const s=this.options,o=s.ticks.callback;if(o)return Ke(o,[e,r,i],this);const a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],f=c&&a[c],h=i[r],d=c&&f&&h&&h.major;return this._adapter.format(e,n||(d?f:u))}generateTickLabels(e){let r,i,n;for(r=0,i=e.length;r0?a:1}getDataTimestamps(){let e,r,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,r=n.length;e({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},EO={ariaLabel:{type:String},ariaDescribedby:{type:String}},OO={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Hw,...EO},TO=Q0[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function jn(t){return No(t)?Ne(t):t}function Lm(t,e){t.labels=e}function Nm(t,e,r){const i=[];t.datasets=e.map(n=>{const s=t.datasets.find(o=>o[r]===n[r]);return s&&n.data&&!i.includes(s)?(i.push(s),Object.assign(s,n),s):{...n}})}const AO=Ul({props:OO,setup(t,e){let{expose:r,slots:i}=e;const n=Bl(null),s=Of(null);return r({chart:s}),zl(()=>{if(!n.value)return;const{type:o,data:a,options:l,plugins:c,datasetIdKey:u}=t,f=function(d,g){const p={labels:[],datasets:[]};return Lm(p,d.labels),Nm(p,d.datasets,g),p}(a,u),h=function(d){return No(arguments.length>1&&arguments[1]!==void 0?arguments[1]:d)?new Proxy(d,{}):d}(f,a);s.value=new is(n.value,{type:o,data:h,options:{...l},plugins:c})}),Hl(()=>{const o=Ne(s.value);o&&(t.destroyDelay>0?setTimeout(()=>{o.destroy(),s.value=null},t.destroyDelay):(o.destroy(),s.value=null))}),pn([()=>t.options,()=>t.data],(o,a)=>{let[l,c]=o,[u,f]=a;const h=Ne(s.value);if(!h)return;let d=!1;if(l){const g=jn(l),p=jn(u);g&&g!==p&&(function(y,w){const _=y.options;_&&w&&Object.assign(_,w)}(h,g),d=!0)}if(c){const g=jn(c.labels),p=jn(f.labels),y=jn(c.datasets),w=jn(f.datasets);g!==p&&(Lm(h.config.data,g),d=!0),y&&y!==w&&(Nm(h.config.data,y,t.datasetIdKey),d=!0)}d&&Wl(()=>{(g=>{g.update(t.updateMode)})(h)})},{deep:!0}),()=>as("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[as("p",{},[i.default?i.default():""])])}});function MO(t,e){return is.register(e),Ul({props:Hw,setup(r,i){let{expose:n}=i;const s=Of(null),o=a=>{s.value=a==null?void 0:a.chart};return n({chart:s}),()=>as(AO,TO({ref:o},{type:t,...r}))}})}const kA=MO("line",Ga);class An extends Error{}class IO extends An{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class CO extends An{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class PO extends An{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Yn extends An{}class qw extends An{constructor(e){super(`Invalid unit ${e}`)}}class It extends An{}class hi extends An{constructor(){super("Zone is an abstract class")}}const Se="numeric",Sr="short",Xt="long",El={year:Se,month:Se,day:Se},Yw={year:Se,month:Sr,day:Se},RO={year:Se,month:Sr,day:Se,weekday:Sr},Kw={year:Se,month:Xt,day:Se},Gw={year:Se,month:Xt,day:Se,weekday:Xt},Zw={hour:Se,minute:Se},Xw={hour:Se,minute:Se,second:Se},Qw={hour:Se,minute:Se,second:Se,timeZoneName:Sr},Jw={hour:Se,minute:Se,second:Se,timeZoneName:Xt},e_={hour:Se,minute:Se,hourCycle:"h23"},t_={hour:Se,minute:Se,second:Se,hourCycle:"h23"},r_={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Sr},i_={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Xt},n_={year:Se,month:Se,day:Se,hour:Se,minute:Se},s_={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},o_={year:Se,month:Sr,day:Se,hour:Se,minute:Se},a_={year:Se,month:Sr,day:Se,hour:Se,minute:Se,second:Se},DO={year:Se,month:Sr,day:Se,weekday:Sr,hour:Se,minute:Se},l_={year:Se,month:Xt,day:Se,hour:Se,minute:Se,timeZoneName:Sr},c_={year:Se,month:Xt,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Sr},u_={year:Se,month:Xt,day:Se,weekday:Xt,hour:Se,minute:Se,timeZoneName:Xt},h_={year:Se,month:Xt,day:Se,weekday:Xt,hour:Se,minute:Se,second:Se,timeZoneName:Xt};class qo{get type(){throw new hi}get name(){throw new hi}get ianaName(){return this.name}get isUniversal(){throw new hi}offsetName(e,r){throw new hi}formatOffset(e,r){throw new hi}offset(e){throw new hi}equals(e){throw new hi}get isValid(){throw new hi}}let cu=null;class ic extends qo{static get instance(){return cu===null&&(cu=new ic),cu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return __(e,r,i)}formatOffset(e,r){return po(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ta={};const LO={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Aa={};class ti extends qo{static create(e){return Aa[e]||(Aa[e]=new ti(e)),Aa[e]}static resetCache(){Aa={},Ta={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ti.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:i}){return __(e,r,i,this.name)}formatOffset(e,r){return po(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const i=(n=this.name,Ta[n]||(Ta[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ta[n]);var n;let[s,o,a,l,c,u,f]=i.formatToParts?function(g,p){const y=g.formatToParts(p),w=[];for(let _=0;_=0?d:1e3+d,(nc({year:s,month:o,day:a,hour:c===24?0:c,minute:u,second:f,millisecond:0})-h)/6e4}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let jm={},nf={};function sf(t,e={}){const r=JSON.stringify([t,e]);let i=nf[r];return i||(i=new Intl.DateTimeFormat(t,e),nf[r]=i),i}let of={},af={},Ma=null,Bm={};function Ia(t,e,r,i){const n=t.listingMode();return n==="error"?null:n==="en"?r(e):i(e)}class NO{constructor(e,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:s,...o}=i;if(!r||Object.keys(o).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=function(l,c={}){const u=JSON.stringify([l,c]);let f=of[u];return f||(f=new Intl.NumberFormat(l,c),of[u]=f),f}(e,a)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}return mt(this.floor?Math.floor(e):cd(e,3),this.padTo)}}class jO{constructor(e,r,i){let n;if(this.opts=i,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=e.offset/60*-1,a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&ti.create(a).valid?(n=a,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||n,this.dtf=sf(r,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:i}}return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class BO{constructor(e,r,i){this.opts={style:"long",...i},!r&&b_()&&(this.rtf=function(n,s={}){const{base:o,...a}=s,l=JSON.stringify([n,a]);let c=af[l];return c||(c=new Intl.RelativeTimeFormat(n,s),af[l]=c),c}(e,i))}format(e,r){return this.rtf?this.rtf.format(e,r):function(i,n,s="always",o=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},l=["hours","minutes","seconds"].indexOf(i)===-1;if(s==="auto"&&l){const g=i==="days";switch(n){case 1:return g?"tomorrow":`next ${a[i][0]}`;case-1:return g?"yesterday":`last ${a[i][0]}`;case 0:return g?"today":`this ${a[i][0]}`}}const c=Object.is(n,-0)||n<0,u=Math.abs(n),f=u===1,h=a[i],d=o?f?h[1]:h[2]||h[1]:f?a[i][0]:i;return c?`${u} ${d} ago`:`in ${u} ${d}`}(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const FO={firstDay:1,minimalDays:4,weekend:[6,7]};class $e{static fromOpts(e){return $e.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,i,n,s=!1){const o=e||dt.defaultLocale,a=o||(s?"en-US":Ma||(Ma=new Intl.DateTimeFormat().resolvedOptions().locale,Ma)),l=r||dt.defaultNumberingSystem,c=i||dt.defaultOutputCalendar,u=lf(n)||dt.defaultWeekSettings;return new $e(a,l,c,u,o)}static resetCache(){Ma=null,nf={},of={},af={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:i,weekSettings:n}={}){return $e.create(e,r,i,n)}constructor(e,r,i,n,s){const[o,a,l]=function(c){const u=c.indexOf("-x-");u!==-1&&(c=c.substring(0,u));const f=c.indexOf("-u-");if(f===-1)return[c];{let h,d;try{h=sf(c).resolvedOptions(),d=c}catch{const w=c.substring(0,f);h=sf(w).resolvedOptions(),d=w}const{numberingSystem:g,calendar:p}=h;return[d,g,p]}}(e);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=i||l||null,this.weekSettings=n,this.intl=function(c,u,f){return(f||u)&&(c.includes("-u-")||(c+="-u"),f&&(c+=`-ca-${f}`),u&&(c+=`-nu-${u}`)),c}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return this.fastNumbersCached==null&&(this.fastNumbersCached=(!(e=this).numberingSystem||e.numberingSystem==="latn")&&(e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn")),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=!(this.numberingSystem!==null&&this.numberingSystem!=="latn"||this.outputCalendar!==null&&this.outputCalendar!=="gregory");return e&&r?"en":"intl"}clone(e){return e&&Object.getOwnPropertyNames(e).length!==0?$e.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,lf(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Ia(this,e,k_,()=>{const i=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(s){const o=[];for(let a=1;a<=12;a++){const l=Oe.utc(2009,a,1);o.push(s(l))}return o}(s=>this.extract(s,i,"month"))),this.monthsCache[n][e]})}weekdays(e,r=!1){return Ia(this,e,T_,()=>{const i=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=r?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(s){const o=[];for(let a=1;a<=7;a++){const l=Oe.utc(2016,11,13+a);o.push(s(l))}return o}(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return Ia(this,void 0,()=>A_,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Oe.utc(2016,11,13,9),Oe.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ia(this,e,M_,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Oe.utc(-40,1,1),Oe.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[e]})}extract(e,r,i){const n=this.dtFormatter(e,r).formatToParts().find(s=>s.type.toLowerCase()===i);return n?n.value:null}numberFormatter(e={}){return new NO(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new jO(e,this.intl,r)}relFormatter(e={}){return new BO(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(r,i={}){const n=JSON.stringify([r,i]);let s=jm[n];return s||(s=new Intl.ListFormat(r,i),jm[n]=s),s}(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:v_()?function(e){let r=Bm[e];if(!r){const i=new Intl.Locale(e);r="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,Bm[e]=r}return r}(this.locale):FO}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let uu=null;class Ft extends qo{static get utcInstance(){return uu===null&&(uu=new Ft(0)),uu}static instance(e){return e===0?Ft.utcInstance:new Ft(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Ft(sc(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${po(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${po(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return po(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class WO extends qo{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ti(t,e){if(Ie(t)||t===null)return e;if(t instanceof qo)return t;if(typeof t=="string"){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?ic.instance:r==="utc"||r==="gmt"?Ft.utcInstance:Ft.parseSpecifier(r)||ti.create(t)}return Li(t)?Ft.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new WO(t)}const sd={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Fm={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},UO=sd.hanidec.replace(/[\[|\]]/g,"").split("");let $n={};function mr({numberingSystem:t},e=""){const r=t||"latn";return $n[r]||($n[r]={}),$n[r][e]||($n[r][e]=new RegExp(`${sd[r]}${e}`)),$n[r][e]}let Wm,Um=()=>Date.now(),Vm="system",$m=null,zm=null,Hm=null,qm=60,Ym=null;class dt{static get now(){return Um}static set now(e){Um=e}static set defaultZone(e){Vm=e}static get defaultZone(){return Ti(Vm,ic.instance)}static get defaultLocale(){return $m}static set defaultLocale(e){$m=e}static get defaultNumberingSystem(){return zm}static set defaultNumberingSystem(e){zm=e}static get defaultOutputCalendar(){return Hm}static set defaultOutputCalendar(e){Hm=e}static get defaultWeekSettings(){return Ym}static set defaultWeekSettings(e){Ym=lf(e)}static get twoDigitCutoffYear(){return qm}static set twoDigitCutoffYear(e){qm=e%100}static get throwOnInvalid(){return Wm}static set throwOnInvalid(e){Wm=e}static resetCaches(){$e.resetCache(),ti.resetCache(),Oe.resetCache(),$n={}}}class vr{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const f_=[0,31,59,90,120,151,181,212,243,273,304,334],d_=[0,31,60,91,121,152,182,213,244,274,305,335];function sr(t,e){return new vr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function od(t,e,r){const i=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const n=i.getUTCDay();return n===0?7:n}function p_(t,e,r){return r+(Yo(t)?d_:f_)[e-1]}function g_(t,e){const r=Yo(t)?d_:f_,i=r.findIndex(n=>nfo(i,e,r)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:a,...oc(t)}}function Km(t,e=4,r=1){const{weekYear:i,weekNumber:n,weekday:s}=t,o=ad(od(i,1,e),r),a=ss(i);let l,c=7*n+s-o-7+e;c<1?(l=i-1,c+=ss(l)):c>a?(l=i+1,c-=ss(i)):l=i;const{month:u,day:f}=g_(l,c);return{year:l,month:u,day:f,...oc(t)}}function hu(t){const{year:e,month:r,day:i}=t;return{year:e,ordinal:p_(e,r,i),...oc(t)}}function Gm(t){const{year:e,ordinal:r}=t,{month:i,day:n}=g_(e,r);return{year:e,month:i,day:n,...oc(t)}}function Zm(t,e){if(!Ie(t.localWeekday)||!Ie(t.localWeekNumber)||!Ie(t.localWeekYear)){if(!Ie(t.weekday)||!Ie(t.weekNumber)||!Ie(t.weekYear))throw new Yn("Cannot mix locale-based week fields with ISO-based week fields");return Ie(t.localWeekday)||(t.weekday=t.localWeekday),Ie(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ie(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function m_(t){const e=Tl(t.year),r=ar(t.month,1,12),i=ar(t.day,1,Al(t.year,t.month));return e?r?!i&&sr("day",t.day):sr("month",t.month):sr("year",t.year)}function y_(t){const{hour:e,minute:r,second:i,millisecond:n}=t,s=ar(e,0,23)||e===24&&r===0&&i===0&&n===0,o=ar(r,0,59),a=ar(i,0,59),l=ar(n,0,999);return s?o?a?!l&&sr("millisecond",n):sr("second",i):sr("minute",r):sr("hour",e)}function Ie(t){return t===void 0}function Li(t){return typeof t=="number"}function Tl(t){return typeof t=="number"&&t%1==0}function b_(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function v_(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Xm(t,e,r){if(t.length!==0)return t.reduce((i,n)=>{const s=[e(n),n];return i&&r(i[0],s[0])===i[0]?i:s},null)[1]}function ns(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function lf(t){if(t==null)return null;if(typeof t!="object")throw new It("Week settings must be an object");if(!ar(t.firstDay,1,7)||!ar(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!ar(e,1,7)))throw new It("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function ar(t,e,r){return Tl(t)&&t>=e&&t<=r}function mt(t,e=2){let r;return r=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),r}function Ei(t){return Ie(t)||t===null||t===""?void 0:parseInt(t,10)}function Ji(t){return Ie(t)||t===null||t===""?void 0:parseFloat(t)}function ld(t){if(!Ie(t)&&t!==null&&t!==""){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function cd(t,e,r=!1){const i=10**e;return(r?Math.trunc:Math.round)(t*i)/i}function Yo(t){return t%4==0&&(t%100!=0||t%400==0)}function ss(t){return Yo(t)?366:365}function Al(t,e){const r=function(i,n){return i-n*Math.floor(i/n)}(e-1,12)+1;return r===2?Yo(t+(e-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function nc(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Qm(t,e,r){return-ad(od(t,1,e),r)+e-1}function fo(t,e=4,r=1){const i=Qm(t,e,r),n=Qm(t+1,e,r);return(ss(t)-i+n)/7}function w_(t){return t>99?t:t>dt.twoDigitCutoffYear?1900+t:2e3+t}function __(t,e,r,i=null){const n=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:e,...s},a=new Intl.DateTimeFormat(r,o).formatToParts(n).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function sc(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const i=parseInt(e,10)||0;return 60*r+(r<0||Object.is(r,-0)?-i:i)}function x_(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new It(`Invalid unit value ${t}`);return e}function Ml(t,e){const r={};for(const i in t)if(ns(t,i)){const n=t[i];if(n==null)continue;r[e(i)]=x_(n)}return r}function po(t,e){const r=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),n=t>=0?"+":"-";switch(e){case"short":return`${n}${mt(r,2)}:${mt(i,2)}`;case"narrow":return`${n}${r}${i>0?`:${i}`:""}`;case"techie":return`${n}${mt(r,2)}${mt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function oc(t){return function(e,r){return r.reduce((i,n)=>(i[n]=e[n],i),{})}(t,["hour","minute","second","millisecond"])}const VO=["January","February","March","April","May","June","July","August","September","October","November","December"],S_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$O=["J","F","M","A","M","J","J","A","S","O","N","D"];function k_(t){switch(t){case"narrow":return[...$O];case"short":return[...S_];case"long":return[...VO];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const E_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],O_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zO=["M","T","W","T","F","S","S"];function T_(t){switch(t){case"narrow":return[...zO];case"short":return[...O_];case"long":return[...E_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const A_=["AM","PM"],HO=["Before Christ","Anno Domini"],qO=["BC","AD"],YO=["B","A"];function M_(t){switch(t){case"narrow":return[...YO];case"short":return[...qO];case"long":return[...HO];default:return null}}function Jm(t,e){let r="";for(const i of t)i.literal?r+=i.val:r+=e(i.val);return r}const KO={D:El,DD:Yw,DDD:Kw,DDDD:Gw,t:Zw,tt:Xw,ttt:Qw,tttt:Jw,T:e_,TT:t_,TTT:r_,TTTT:i_,f:n_,ff:o_,fff:l_,ffff:u_,F:s_,FF:a_,FFF:c_,FFFF:h_};class Rt{static create(e,r={}){return new Rt(e,r)}static parseFormat(e){let r=null,i="",n=!1;const s=[];for(let o=0;o0&&s.push({literal:n||/^\s+$/.test(i),val:i}),r=null,i="",n=!n):n||a===r?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,r=a)}return i.length>0&&s.push({literal:n||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return KO[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return mt(e,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){const i=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(h,d)=>this.loc.extract(e,h,d),o=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",a=()=>i?function(h){return A_[h.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,d)=>i?function(g,p){return k_(p)[g.month-1]}(e,h):s(d?{month:h}:{month:h,day:"numeric"},"month"),c=(h,d)=>i?function(g,p){return T_(p)[g.weekday-1]}(e,h):s(d?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const d=Rt.macroTokenToFormatOpts(h);return d?this.formatWithSystemDefault(e,d):h},f=h=>i?function(d,g){return M_(g)[d.year<0?0:1]}(e,h):s({era:h},"era");return Jm(Rt.parseFormat(r),h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return n?s({day:"numeric"},"day"):this.num(e.day);case"dd":return n?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return n?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return n?s({month:"numeric"},"month"):this.num(e.month);case"MM":return n?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return n?s({year:"numeric"},"year"):this.num(e.year);case"yy":return n?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(h)}})}formatDurationFromString(e,r){const i=o=>{switch(o[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Rt.parseFormat(r),s=n.reduce((o,{literal:a,val:l})=>a?o:o.concat(l),[]);return Jm(n,(o=>a=>{const l=i(a);return l?this.num(o.get(l),a.length):a})(e.shiftTo(...s.map(i).filter(o=>o))))}}const I_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function vs(...t){const e=t.reduce((r,i)=>r+i.source,"");return RegExp(`^${e}$`)}function ws(...t){return e=>t.reduce(([r,i,n],s)=>{const[o,a,l]=s(e,n);return[{...r,...o},a||i,l]},[{},null,1]).slice(0,2)}function Kn(t,...e){if(t==null)return[null,null];for(const[r,i]of e){const n=r.exec(t);if(n)return i(n)}return[null,null]}function C_(...t){return(e,r)=>{const i={};let n;for(n=0;nd!==void 0&&(g||d&&u)?-d:d;return[{years:h(Ji(r)),months:h(Ji(i)),weeks:h(Ji(n)),days:h(Ji(s)),hours:h(Ji(o)),minutes:h(Ji(a)),seconds:h(Ji(l),l==="-0"),milliseconds:h(ld(c),f)}]}const tT={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fd(t,e,r,i,n,s,o){const a={year:e.length===2?w_(Ei(e)):Ei(e),month:S_.indexOf(r)+1,day:Ei(i),hour:Ei(n),minute:Ei(s)};return o&&(a.second=Ei(o)),t&&(a.weekday=t.length>3?E_.indexOf(t)+1:O_.indexOf(t)+1),a}const rT=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function iT(t){const[,e,r,i,n,s,o,a,l,c,u,f]=t,h=fd(e,n,i,r,s,o,a);let d;return d=l?tT[l]:c?0:sc(u,f),[h,new Ft(d)]}const nT=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,sT=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,oT=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ey(t){const[,e,r,i,n,s,o,a]=t;return[fd(e,n,i,r,s,o,a),Ft.utcInstance]}function aT(t){const[,e,r,i,n,s,o,a]=t;return[fd(e,a,r,i,n,s,o),Ft.utcInstance]}const lT=vs(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,hd),cT=vs(/(\d{4})-?W(\d\d)(?:-?(\d))?/,hd),uT=vs(/(\d{4})-?(\d{3})/,hd),hT=vs(R_),ty=ws(function(t,e){return[{year:os(t,e),month:os(t,e+1,1),day:os(t,e+2,1)},null,e+3]},_s,Ko,Go),fT=ws(GO,_s,Ko,Go),dT=ws(ZO,_s,Ko,Go),pT=ws(_s,Ko,Go),gT=ws(_s),mT=vs(/(\d{4})-(\d\d)-(\d\d)/,XO),yT=vs(D_),bT=ws(_s,Ko,Go),ry="Invalid Duration",L_={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},vT={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...L_},wT=365.2425,_T=30.436875,xT={years:{quarters:4,months:12,weeks:52.1775,days:wT,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999999999e-6},months:{weeks:4.3481250000000005,days:_T,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...L_},hn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ST=hn.slice(0).reverse();function fi(t,e,r=!1){const i={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Be(i)}function N_(t,e){let r=e.milliseconds??0;for(const i of ST.slice(1))e[i]&&(r+=e[i]*t[i].milliseconds);return r}function iy(t,e){const r=N_(t,e)<0?-1:1;hn.reduceRight((i,n)=>{if(Ie(e[n]))return i;if(i){const s=e[i]*r,o=t[n][i],a=Math.floor(s/o);e[n]+=a*r,e[i]-=a*o*r}return n},null),hn.reduce((i,n)=>{if(Ie(e[n]))return i;if(i){const s=e[i]%1;e[i]-=s,e[n]+=s*t[i][n]}return n},null)}class Be{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let i=r?xT:vT;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||$e.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,r){return Be.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new It("Duration.fromObject: argument expected to be an object, got "+(e===null?"null":typeof e));return new Be({values:Ml(e,Be.normalizeUnit),loc:$e.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Li(e))return Be.fromMillis(e);if(Be.isDuration(e))return e;if(typeof e=="object")return Be.fromObject(e);throw new It(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[i]=function(n){return Kn(n,[JO,eT])}(e);return i?Be.fromObject(i,r):Be.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[i]=function(n){return Kn(n,[QO,gT])}(e);return i?Be.fromObject(i,r):Be.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new It("need to specify a reason the Duration is invalid");const i=e instanceof vr?e:new vr(e,r);if(dt.throwOnInvalid)throw new PO(i);return new Be({invalid:i})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new qw(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Rt.create(this.loc,i).formatDurationFromString(this,e):ry}toHuman(e={}){if(!this.isValid)return ry;const r=hn.map(i=>{const n=this.values[i];return Ie(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),this.months===0&&this.quarters===0||(e+=this.months+3*this.quarters+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),this.hours===0&&this.minutes===0&&this.seconds===0&&this.milliseconds===0||(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),this.seconds===0&&this.milliseconds===0||(e+=cd(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Oe.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?N_(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Be.fromDurationLike(e),i={};for(const n of hn)(ns(r.values,n)||ns(this.values,n))&&(i[n]=r.get(n)+this.get(n));return fi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const r=Be.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=x_(e(this.values[i],i));return fi(this,{values:r},!0)}get(e){return this[Be.normalizeUnit(e)]}set(e){return this.isValid?fi(this,{values:{...this.values,...Ml(e,Be.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:i,matrix:n}={}){return fi(this,{loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:n,conversionAccuracy:i})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return iy(this.matrix,e),fi(this,{values:e},!0)}rescale(){return this.isValid?fi(this,{values:function(e){const r={};for(const[i,n]of Object.entries(e))n!==0&&(r[i]=n);return r}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Be.normalizeUnit(o));const r={},i={},n=this.toObject();let s;for(const o of hn)if(e.indexOf(o)>=0){s=o;let a=0;for(const c in i)a+=this.matrix[c][o]*i[c],i[c]=0;Li(n[o])&&(a+=n[o]);const l=Math.trunc(a);r[o]=l,i[o]=(1e3*a-1e3*l)/1e3}else Li(n[o])&&(i[o]=n[o]);for(const o in i)i[o]!==0&&(r[s]+=o===s?i[o]:i[o]/this.matrix[s][o]);return iy(this.matrix,r),fi(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return fi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(const n of hn)if(r=this.values[n],i=e.values[n],!(r===void 0||r===0?i===void 0||i===0:r===i))return!1;var r,i;return!0}}const Bn="Invalid Interval";class ft{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new It("need to specify a reason the Interval is invalid");const i=e instanceof vr?e:new vr(e,r);if(dt.throwOnInvalid)throw new CO(i);return new ft({invalid:i})}static fromDateTimes(e,r){const i=js(e),n=js(r),s=function(o,a){return o&&o.isValid?a&&a.isValid?ae}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:r}={}){return this.isValid?ft.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(js).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),i=[];let{s:n}=this,s=0;for(;n+this.e?this.e:o;i.push(ft.fromDateTimes(n,a)),n=a,s+=1}return i}splitBy(e){const r=Be.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let i,{s:n}=this,s=1;const o=[];for(;nl*s));i=+a>+this.e?this.e:a,o.push(ft.fromDateTimes(n,i)),n=i,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,i=this.e=i?null:ft.fromDateTimes(r,i)}union(e){if(!this.isValid)return this;const r=this.se.e?this.e:e.e;return ft.fromDateTimes(r,i)}static merge(e){const[r,i]=e.sort((n,s)=>n.s-s.s).reduce(([n,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[n,s.union(o)]:[n.concat([s]),o]:[n,o],[[],null]);return i&&r.push(i),r}static xor(e){let r=null,i=0;const n=[],s=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),o=Array.prototype.concat(...s).sort((a,l)=>a.time-l.time);for(const a of o)i+=a.type==="s"?1:-1,i===1?r=a.time:(r&&+r!=+a.time&&n.push(ft.fromDateTimes(r,a.time)),r=null);return ft.merge(n)}difference(...e){return ft.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Bn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=El,r={}){return this.isValid?Rt.create(this.s.loc.clone(r),e).formatInterval(this):Bn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Bn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Bn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Bn}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Bn}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Be.invalid(this.invalidReason)}mapEndpoints(e){return ft.fromDateTimes(e(this.s),e(this.e))}}class Ca{static hasDST(e=dt.defaultZone){const r=Oe.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return ti.isValidZone(e)}static normalizeZone(e){return Ti(e,dt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||$e.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||$e.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||$e.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||$e.create(r,i,s)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||$e.create(r,i,s)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:i=null,locObj:n=null}={}){return(n||$e.create(r,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:i=null,locObj:n=null}={}){return(n||$e.create(r,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return $e.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return $e.create(r,null,"gregory").eras(e)}static features(){return{relative:b_(),localeWeek:v_()}}}function ny(t,e){const r=n=>n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(e)-r(t);return Math.floor(Be.fromMillis(i).as("days"))}function kT(t,e,r,i){let[n,s,o,a]=function(f,h,d){const g=[["years",(E,T)=>T.year-E.year],["quarters",(E,T)=>T.quarter-E.quarter+4*(T.year-E.year)],["months",(E,T)=>T.month-E.month+12*(T.year-E.year)],["weeks",(E,T)=>{const A=ny(E,T);return(A-A%7)/7}],["days",ny]],p={},y=f;let w,_;for(const[E,T]of g)d.indexOf(E)>=0&&(w=E,p[E]=T(f,h),_=y.plus(p),_>h?(p[E]--,(f=y.plus(p))>h&&(_=f,p[E]--,f=y.plus(p))):f=_);return[f,p,_,w]}(t,e,r);const l=e-n,c=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o0?Be.fromMillis(l,i).shiftTo(...c).plus(u):u}function Or(t,e=r=>r){return{regex:t,deser:([r])=>e(function(i){let n=parseInt(i,10);if(isNaN(n)){n="";for(let s=0;s=l&&o<=c&&(n+=o-l)}}return parseInt(n,10)}return n}(r))}}const j_="[  ]",B_=new RegExp(j_,"g");function ET(t){return t.replace(/\./g,"\\.?").replace(B_,j_)}function sy(t){return t.replace(/\./g,"").replace(B_," ").toLowerCase()}function yr(t,e){return t===null?null:{regex:RegExp(t.map(ET).join("|")),deser:([r])=>t.findIndex(i=>sy(r)===sy(i))+e}}function oy(t,e){return{regex:t,deser:([,r,i])=>sc(r,i),groups:e}}function Pa(t){return{regex:t,deser:([e])=>e}}const OT={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let fu=null;function F_(t,e){return Array.prototype.concat(...t.map(r=>function(i,n){if(i.literal)return i;const s=U_(Rt.macroTokenToFormatOpts(i.val),n);return s==null||s.includes(void 0)?i:s}(r,e)))}class W_{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=F_(Rt.parseFormat(r),e),this.units=this.tokens.map(n=>function(s,o){const a=mr(o),l=mr(o,"{2}"),c=mr(o,"{3}"),u=mr(o,"{4}"),f=mr(o,"{6}"),h=mr(o,"{1,2}"),d=mr(o,"{1,3}"),g=mr(o,"{1,6}"),p=mr(o,"{1,9}"),y=mr(o,"{2,4}"),w=mr(o,"{4,6}"),_=T=>{return{regex:RegExp((A=T.val,A.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([$])=>$,literal:!0};var A},E=(T=>{if(s.literal)return _(T);switch(T.val){case"G":return yr(o.eras("short"),0);case"GG":return yr(o.eras("long"),0);case"y":return Or(g);case"yy":case"kk":return Or(y,w_);case"yyyy":case"kkkk":return Or(u);case"yyyyy":return Or(w);case"yyyyyy":return Or(f);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Or(h);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Or(l);case"MMM":return yr(o.months("short",!0),1);case"MMMM":return yr(o.months("long",!0),1);case"LLL":return yr(o.months("short",!1),1);case"LLLL":return yr(o.months("long",!1),1);case"o":case"S":return Or(d);case"ooo":case"SSS":return Or(c);case"u":return Pa(p);case"uu":return Pa(h);case"uuu":case"E":case"c":return Or(a);case"a":return yr(o.meridiems(),0);case"EEE":return yr(o.weekdays("short",!1),1);case"EEEE":return yr(o.weekdays("long",!1),1);case"ccc":return yr(o.weekdays("short",!0),1);case"cccc":return yr(o.weekdays("long",!0),1);case"Z":case"ZZ":return oy(new RegExp(`([+-]${h.source})(?::(${l.source}))?`),2);case"ZZZ":return oy(new RegExp(`([+-]${h.source})(${l.source})?`),2);case"z":return Pa(/[a-z_+-/]{1,256}?/i);case" ":return Pa(/[^\S\n\r]/);default:return _(T)}})(s)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return E.token=s,E}(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,s]=[`^${(i=this.units).map(o=>o.regex).reduce((o,a)=>`${o}(${a.source})`,"")}$`,i];this.regex=RegExp(n,"i"),this.handlers=s}var i}explainFromTokens(e){if(this.isValid){const[r,i]=function(a,l,c){const u=a.match(l);if(u){const f={};let h=1;for(const d in c)if(ns(c,d)){const g=c[d],p=g.groups?g.groups+1:1;!g.literal&&g.token&&(f[g.token.val[0]]=g.deser(u.slice(h,h+p))),h+=p}return[u,f]}return[u,{}]}(e,this.regex,this.handlers),[n,s,o]=i?function(a){let l,c=null;return Ie(a.z)||(c=ti.create(a.z)),Ie(a.Z)||(c||(c=new Ft(a.Z)),l=a.Z),Ie(a.q)||(a.M=3*(a.q-1)+1),Ie(a.h)||(a.h<12&&a.a===1?a.h+=12:a.h===12&&a.a===0&&(a.h=0)),a.G===0&&a.y&&(a.y=-a.y),Ie(a.u)||(a.S=ld(a.u)),[Object.keys(a).reduce((u,f)=>{const h=(d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(f);return h&&(u[h]=a[f]),u},{}),c,l]}(i):[null,null,void 0];if(ns(i,"a")&&ns(i,"H"))throw new Yn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:i,result:n,zone:s,specificOffset:o}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ay(t,e,r){return new W_(t,r).explainFromTokens(e)}function U_(t,e){if(!t)return null;const r=Rt.create(e,t).dtFormatter((fu||(fu=Oe.fromMillis(1555555555555)),fu)),i=r.formatToParts(),n=r.resolvedOptions();return i.map(s=>function(o,a,l){const{type:c,value:u}=o;if(c==="literal"){const g=/^\s+$/.test(u);return{literal:!g,val:g?" ":u}}const f=a[c];let h=c;c==="hour"&&(h=a.hour12!=null?a.hour12?"hour12":"hour24":a.hourCycle!=null?a.hourCycle==="h11"||a.hourCycle==="h12"?"hour12":"hour24":l.hour12?"hour12":"hour24");let d=OT[h];if(typeof d=="object"&&(d=d[f]),d)return{literal:!1,val:d}}(s,t,n))}const du="Invalid DateTime";function Ks(t){return new vr("unsupported zone",`the zone "${t.name}" is not supported`)}function pu(t){return t.weekData===null&&(t.weekData=Ol(t.c)),t.weekData}function gu(t){return t.localWeekData===null&&(t.localWeekData=Ol(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function en(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Oe({...r,...e,old:r})}function V_(t,e,r){let i=t-60*e*1e3;const n=r.offset(i);if(e===n)return[i,e];i-=60*(n-e)*1e3;const s=r.offset(i);return n===s?[i,n]:[t-60*Math.min(n,s)*1e3,Math.max(n,s)]}function Ra(t,e){const r=new Date(t+=60*e*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Xa(t,e,r){return V_(nc(t),e,r)}function ly(t,e){const r=t.o,i=t.c.year+Math.trunc(e.years),n=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),s={...t.c,year:i,month:n,day:Math.min(t.c.day,Al(i,n))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},o=Be.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=nc(s);let[l,c]=V_(a,r,t.zone);return o!==0&&(l+=o,c=t.zone.offset(l)),{ts:l,o:c}}function Fn(t,e,r,i,n,s){const{setZone:o,zone:a}=r;if(t&&Object.keys(t).length!==0||e){const l=e||a,c=Oe.fromObject(t,{...r,zone:l,specificOffset:s});return o?c:c.setZone(a)}return Oe.invalid(new vr("unparsable",`the input "${n}" can't be parsed as ${i}`))}function Da(t,e,r=!0){return t.isValid?Rt.create($e.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function mu(t,e){const r=t.c.year>9999||t.c.year<0;let i="";return r&&t.c.year>=0&&(i+="+"),i+=mt(t.c.year,r?6:4),e?(i+="-",i+=mt(t.c.month),i+="-",i+=mt(t.c.day)):(i+=mt(t.c.month),i+=mt(t.c.day)),i}function cy(t,e,r,i,n,s){let o=mt(t.c.hour);return e?(o+=":",o+=mt(t.c.minute),t.c.millisecond===0&&t.c.second===0&&r||(o+=":")):o+=mt(t.c.minute),t.c.millisecond===0&&t.c.second===0&&r||(o+=mt(t.c.second),t.c.millisecond===0&&i||(o+=".",o+=mt(t.c.millisecond,3))),n&&(t.isOffsetFixed&&t.offset===0&&!s?o+="Z":t.o<0?(o+="-",o+=mt(Math.trunc(-t.o/60)),o+=":",o+=mt(Math.trunc(-t.o%60))):(o+="+",o+=mt(Math.trunc(t.o/60)),o+=":",o+=mt(Math.trunc(t.o%60)))),s&&(o+="["+t.zone.ianaName+"]"),o}const $_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},TT={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},AT={ordinal:1,hour:0,minute:0,second:0,millisecond:0},z_=["year","month","day","hour","minute","second","millisecond"],MT=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],IT=["year","ordinal","hour","minute","second","millisecond"];function uy(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const r={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!r)throw new qw(e);return r}(t)}}function hy(t,e){const r=Ti(e.zone,dt.defaultZone);if(!r.isValid)return Oe.invalid(Ks(r));const i=$e.fromObject(e);let n,s;if(Ie(t.year))n=dt.now();else{for(const l of z_)Ie(t[l])&&(t[l]=$_[l]);const o=m_(t)||y_(t);if(o)return Oe.invalid(o);const a=function(l){return Ja[l]||(Qa===void 0&&(Qa=dt.now()),Ja[l]=l.offset(Qa)),Ja[l]}(r);[n,s]=Xa(t,a,r)}return new Oe({ts:n,zone:r,loc:i,o:s})}function fy(t,e,r){const i=!!Ie(r.round)||r.round,n=(o,a)=>(o=cd(o,i||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(o,a)),s=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return n(s(r.unit),r.unit);for(const o of r.units){const a=s(o);if(Math.abs(a)>=1)return n(a,o)}return n(t>e?-0:0,r.units[r.units.length-1])}function dy(t){let e,r={};return t.length>0&&typeof t[t.length-1]=="object"?(r=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[r,e]}let Qa,Ja={};class Oe{constructor(e){const r=e.zone||dt.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new vr("invalid input"):null)||(r.isValid?null:Ks(r));this.ts=Ie(e.ts)?dt.now():e.ts;let n=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[n,s]=[e.old.c,e.old.o];else{const o=Li(e.o)&&!e.old?e.o:r.offset(this.ts);n=Ra(this.ts,o),i=Number.isNaN(n.year)?new vr("invalid input"):null,n=i?null:n,s=i?null:o}this._zone=r,this.loc=e.loc||$e.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=n,this.o=s,this.isLuxonDateTime=!0}static now(){return new Oe({})}static local(){const[e,r]=dy(arguments),[i,n,s,o,a,l,c]=r;return hy({year:i,month:n,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static utc(){const[e,r]=dy(arguments),[i,n,s,o,a,l,c]=r;return e.zone=Ft.utcInstance,hy({year:i,month:n,day:s,hour:o,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,r={}){const i=(n=e,Object.prototype.toString.call(n)==="[object Date]"?e.valueOf():NaN);var n;if(Number.isNaN(i))return Oe.invalid("invalid input");const s=Ti(r.zone,dt.defaultZone);return s.isValid?new Oe({ts:i,zone:s,loc:$e.fromObject(r)}):Oe.invalid(Ks(s))}static fromMillis(e,r={}){if(Li(e))return e<-864e13||e>864e13?Oe.invalid("Timestamp out of range"):new Oe({ts:e,zone:Ti(r.zone,dt.defaultZone),loc:$e.fromObject(r)});throw new It(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Li(e))return new Oe({ts:1e3*e,zone:Ti(r.zone,dt.defaultZone),loc:$e.fromObject(r)});throw new It("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const i=Ti(r.zone,dt.defaultZone);if(!i.isValid)return Oe.invalid(Ks(i));const n=$e.fromObject(r),s=Ml(e,uy),{minDaysInFirstWeek:o,startOfWeek:a}=Zm(s,n),l=dt.now(),c=Ie(r.specificOffset)?i.offset(l):r.specificOffset,u=!Ie(s.ordinal),f=!Ie(s.year),h=!Ie(s.month)||!Ie(s.day),d=f||h,g=s.weekYear||s.weekNumber;if((d||u)&&g)throw new Yn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Yn("Can't mix ordinal dates with month/day");const p=g||s.weekday&&!d;let y,w,_=Ra(l,c);p?(y=MT,w=TT,_=Ol(_,o,a)):u?(y=IT,w=AT,_=hu(_)):(y=z_,w=$_);let E=!1;for(const O of y)Ie(s[O])?s[O]=E?w[O]:_[O]:E=!0;const T=p?function(O,M=4,Z=1){const te=Tl(O.weekYear),U=ar(O.weekNumber,1,fo(O.weekYear,M,Z)),W=ar(O.weekday,1,7);return te?U?!W&&sr("weekday",O.weekday):sr("week",O.weekNumber):sr("weekYear",O.weekYear)}(s,o,a):u?function(O){const M=Tl(O.year),Z=ar(O.ordinal,1,ss(O.year));return M?!Z&&sr("ordinal",O.ordinal):sr("year",O.year)}(s):m_(s),A=T||y_(s);if(A)return Oe.invalid(A);const $=p?Km(s,o,a):u?Gm(s):s,[k,x]=Xa($,c,i),v=new Oe({ts:k,zone:i,o:x,loc:n});return s.weekday&&d&&e.weekday!==v.weekday?Oe.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v.isValid?v:Oe.invalid(v.invalid)}static fromISO(e,r={}){const[i,n]=function(s){return Kn(s,[lT,ty],[cT,fT],[uT,dT],[hT,pT])}(e);return Fn(i,n,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[i,n]=function(s){return Kn(function(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(s),[rT,iT])}(e);return Fn(i,n,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[i,n]=function(s){return Kn(s,[nT,ey],[sT,ey],[oT,aT])}(e);return Fn(i,n,r,"HTTP",r)}static fromFormat(e,r,i={}){if(Ie(e)||Ie(r))throw new It("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:s=null}=i,o=$e.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=function(f,h,d){const{result:g,zone:p,specificOffset:y,invalidReason:w}=ay(f,h,d);return[g,p,y,w]}(o,e,r);return u?Oe.invalid(u):Fn(a,l,i,`format ${r}`,e,c)}static fromString(e,r,i={}){return Oe.fromFormat(e,r,i)}static fromSQL(e,r={}){const[i,n]=function(s){return Kn(s,[mT,ty],[yT,bT])}(e);return Fn(i,n,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new It("need to specify a reason the DateTime is invalid");const i=e instanceof vr?e:new vr(e,r);if(dt.throwOnInvalid)throw new IO(i);return new Oe({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const i=U_(e,$e.fromObject(r));return i?i.map(n=>n?n.val:null).join(""):null}static expandFormat(e,r={}){return F_(Rt.parseFormat(e),$e.fromObject(r)).map(i=>i.val).join("")}static resetCache(){Qa=void 0,Ja={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?pu(this).weekYear:NaN}get weekNumber(){return this.isValid?pu(this).weekNumber:NaN}get weekday(){return this.isValid?pu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?gu(this).weekday:NaN}get localWeekNumber(){return this.isValid?gu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?gu(this).weekYear:NaN}get ordinal(){return this.isValid?hu(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ca.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,i=nc(this.c),n=this.zone.offset(i-e),s=this.zone.offset(i+e),o=this.zone.offset(i-n*r),a=this.zone.offset(i-s*r);if(o===a)return[this];const l=i-o*r,c=i-a*r,u=Ra(l,o),f=Ra(c,a);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[en(this,{ts:l}),en(this,{ts:c})]:[this]}get isInLeapYear(){return Yo(this.year)}get daysInMonth(){return Al(this.year,this.month)}get daysInYear(){return this.isValid?ss(this.year):NaN}get weeksInWeekYear(){return this.isValid?fo(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?fo(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:i,calendar:n}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:i,outputCalendar:n}}toUTC(e=0,r={}){return this.setZone(Ft.instance(e),r)}toLocal(){return this.setZone(dt.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:i=!1}={}){if((e=Ti(e,dt.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(r||i){const s=e.offset(this.ts),o=this.toObject();[n]=Xa(o,s,e)}return en(this,{ts:n,zone:e})}return Oe.invalid(Ks(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:i}={}){return en(this,{loc:this.loc.clone({locale:e,numberingSystem:r,outputCalendar:i})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ml(e,uy),{minDaysInFirstWeek:i,startOfWeek:n}=Zm(r,this.loc),s=!Ie(r.weekYear)||!Ie(r.weekNumber)||!Ie(r.weekday),o=!Ie(r.ordinal),a=!Ie(r.year),l=!Ie(r.month)||!Ie(r.day),c=a||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Yn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Yn("Can't mix ordinal dates with month/day");let f;s?f=Km({...Ol(this.c,i,n),...r},i,n):Ie(r.ordinal)?(f={...this.toObject(),...r},Ie(r.day)&&(f.day=Math.min(Al(f.year,f.month),f.day))):f=Gm({...hu(this.c),...r});const[h,d]=Xa(f,this.o,this.zone);return en(this,{ts:h,o:d})}plus(e){return this.isValid?en(this,ly(this,Be.fromDurationLike(e))):this}minus(e){return this.isValid?en(this,ly(this,Be.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const i={},n=Be.normalizeUnit(e);switch(n){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0}if(n==="weeks")if(r){const s=this.loc.getStartOfWeek(),{weekday:o}=this;othis.valueOf(),a=kT(o?this:e,o?e:this,s,n);var l;return o?a.negate():a}diffNow(e="milliseconds",r={}){return this.diff(Oe.now(),e,r)}until(e){return this.isValid?ft.fromDateTimes(this,e):this}hasSame(e,r,i){if(!this.isValid)return!1;const n=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(r,i)<=n&&n<=s.endOf(r,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||Oe.fromObject({},{zone:this.zone}),i=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(Oe.isDateTime))throw new It("max requires all arguments be DateTimes");return Xm(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,i={}){const{locale:n=null,numberingSystem:s=null}=i;return ay($e.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),e,r)}static fromStringExplain(e,r,i={}){return Oe.fromFormatExplain(e,r,i)}static buildFormatParser(e,r={}){const{locale:i=null,numberingSystem:n=null}=r,s=$e.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return new W_(s,e)}static fromFormatParser(e,r,i={}){if(Ie(e)||Ie(r))throw new It("fromFormatParser requires an input string and a format parser");const{locale:n=null,numberingSystem:s=null}=i,o=$e.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});if(!o.equals(r.locale))throw new It(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:a,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(e);return u?Oe.invalid(u):Fn(a,l,i,`format ${r.format}`,e,c)}static get DATE_SHORT(){return El}static get DATE_MED(){return Yw}static get DATE_MED_WITH_WEEKDAY(){return RO}static get DATE_FULL(){return Kw}static get DATE_HUGE(){return Gw}static get TIME_SIMPLE(){return Zw}static get TIME_WITH_SECONDS(){return Xw}static get TIME_WITH_SHORT_OFFSET(){return Qw}static get TIME_WITH_LONG_OFFSET(){return Jw}static get TIME_24_SIMPLE(){return e_}static get TIME_24_WITH_SECONDS(){return t_}static get TIME_24_WITH_SHORT_OFFSET(){return r_}static get TIME_24_WITH_LONG_OFFSET(){return i_}static get DATETIME_SHORT(){return n_}static get DATETIME_SHORT_WITH_SECONDS(){return s_}static get DATETIME_MED(){return o_}static get DATETIME_MED_WITH_SECONDS(){return a_}static get DATETIME_MED_WITH_WEEKDAY(){return DO}static get DATETIME_FULL(){return l_}static get DATETIME_FULL_WITH_SECONDS(){return c_}static get DATETIME_HUGE(){return u_}static get DATETIME_HUGE_WITH_SECONDS(){return h_}}function js(t){if(Oe.isDateTime(t))return t;if(t&&t.valueOf&&Li(t.valueOf()))return Oe.fromJSDate(t);if(t&&typeof t=="object")return Oe.fromObject(t);throw new It(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/*! + * chartjs-adapter-luxon v1.3.1 + * https://www.chartjs.org + * (c) 2023 chartjs-adapter-luxon Contributors + * Released under the MIT license + */const CT={datetime:Oe.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:Oe.TIME_WITH_SECONDS,minute:Oe.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};Nw._date.override({_id:"luxon",_create:function(t){return Oe.fromMillis(t,this.options)},init(t){this.options.locale||(this.options.locale=t.locale)},formats:function(){return CT},parse:function(t,e){const r=this.options,i=typeof t;return t===null||i==="undefined"?null:(i==="number"?t=this._create(t):i==="string"?t=typeof e=="string"?Oe.fromFormat(t,e,r):Oe.fromISO(t,r):t instanceof Date?t=Oe.fromJSDate(t,r):i!=="object"||t instanceof Oe||(t=Oe.fromObject(t,r)),t.isValid?t.valueOf():null)},format:function(t,e){const r=this._create(t);return typeof e=="string"?r.toFormat(e):r.toLocaleString(e)},add:function(t,e,r){const i={};return i[r]=e,this._create(t).plus(i).valueOf()},diff:function(t,e,r){return this._create(t).diff(this._create(e)).as(r).valueOf()},startOf:function(t,e,r){if(e==="isoWeek"){r=Math.trunc(Math.min(Math.max(0,r),6));const i=this._create(t);return i.minus({days:(i.weekday-r+7)%7}).startOf("day").valueOf()}return e?this._create(t).startOf(e).valueOf():t},endOf:function(t,e){return this._create(t).endOf(e).valueOf()}});/*! +* chartjs-plugin-annotation v3.1.0 +* https://www.chartjs.org/chartjs-plugin-annotation/index + * (c) 2024 chartjs-plugin-annotation Contributors + * Released under the MIT License + */const py={modes:{point:(t,e)=>La(t,e,{intersect:!0}),nearest:(t,e,r)=>function(i,n,s){let o=Number.POSITIVE_INFINITY;return La(i,n,s).reduce((a,l)=>{const c=l.getCenterPoint(),u=function(h,d,g){return g==="x"?{x:h.x,y:d.y}:g==="y"?{x:d.x,y:h.y}:d}(n,c,s.axis),f=Po(n,u);return fa._index-l._index).slice(0,1)}(t,e,r),x:(t,e,r)=>La(t,e,{intersect:r.intersect,axis:"x"}),y:(t,e,r)=>La(t,e,{intersect:r.intersect,axis:"y"})}};function cf(t,e,r){return(py.modes[r.mode]||py.modes.nearest)(t,e,r)}function La(t,e,r){return t.filter(i=>r.intersect?i.inRange(e.x,e.y):function(n,s,o){return o!=="x"&&o!=="y"?n.inRange(s.x,s.y,"x",!0)||n.inRange(s.x,s.y,"y",!0):n.inRange(s.x,s.y,o,!0)}(i,e,r.axis))}function Sn(t,e,r){const i=Math.cos(r),n=Math.sin(r),s=e.x,o=e.y;return{x:s+i*(t.x-s)-n*(t.y-o),y:o+n*(t.x-s)+i*(t.y-o)}}const PT=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,Gn=.001,ac=(t,e,r)=>Math.min(r,Math.max(e,t)),H_=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function RT(t,e,r){for(const i of Object.keys(t))t[i]=ac(t[i],e,r);return t}function q_(t,{x:e,y:r,x2:i,y2:n},s,{borderWidth:o,hitTolerance:a}){const l=(o+a)/2,c=t.x>=e-l-Gn&&t.x<=i+l+Gn,u=t.y>=r-l-Gn&&t.y<=n+l+Gn;return s==="x"?c:(s==="y"||c)&&u}function Y_(t,{rect:e,center:r},i,{rotation:n,borderWidth:s,hitTolerance:o}){return q_(Sn(t,r,_t(-n)),e,i,{borderWidth:s,hitTolerance:o})}function Mn(t,e){const{centerX:r,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:r,y:i}}const K_=t=>typeof t=="string"&&t.endsWith("%"),G_=t=>parseFloat(t)/100,Z_=t=>ac(G_(t),0,1),Bs=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),DT={box:t=>Bs(t.centerX,t.centerY),doughnutLabel:t=>Bs(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>Bs(t.centerX,t.centerY),line:t=>Bs(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>Bs(t.centerX,t.centerY)};function dd(t,e){return e==="start"?0:e==="end"?t:K_(e)?Z_(e)*t:t/2}function Ci(t,e,r=!0){return typeof e=="number"?e:K_(e)?(r?Z_(e):G_(e))*t:t}function X_(t,e,{borderWidth:r,position:i,xAdjust:n,yAdjust:s},o){const a=Re(o),l=e.width+(a?o.width:0)+r,c=e.height+(a?o.height:0)+r,u=pd(i),f=gy(t.x,l,n,u.x),h=gy(t.y,c,s,u.y);return{x:f,y:h,x2:f+l,y2:h+c,width:l,height:c,centerX:f+l/2,centerY:h+c/2}}function pd(t,e="center"){return Re(t)?{x:De(t.x,e),y:De(t.y,e)}:{x:t=De(t,e),y:t}}const Q_=(t,e)=>t&&t.autoFit&&e<1;function J_(t,e){const r=t.font,i=lt(r)?r:[r];return Q_(t,e)?i.map(function(n){const s=Dr(n);return s.size=Math.floor(n.size*e),s.lineHeight=n.lineHeight,Dr(s)}):i.map(n=>Dr(n))}function e1(t){return t&&(Qt(t.xValue)||Qt(t.yValue))}function gy(t,e,r=0,i){return t-dd(e,i)+r}function xs(t,e,r){const i=r.init;if(i)return i===!0?yy(e,r):function(n,s,o){const a=Ke(o.init,[{chart:n,properties:s,options:o}]);if(a===!0)return yy(s,o);if(Re(a))return a}(t,e,r)}function my(t,e,r){let i=!1;return e.forEach(n=>{Ht(t[n])?(i=!0,r[n]=t[n]):Qt(r[n])&&delete r[n]}),i}function yy(t,e){const r=e.type||"line";return DT[r](t)}const yu=new Map;function lc(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object HTMLImageElement]"||e==="[object HTMLCanvasElement]"}}function cc(t,{x:e,y:r},i){i&&(t.translate(e,r),t.rotate(_t(i)),t.translate(-e,-r))}function ri(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function Ss(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function uc(t,e){const r=e.content;if(lc(r))return{width:Ci(r.width,e.width),height:Ci(r.height,e.height)};const i=J_(e),n=e.textStrokeWidth,s=lt(r)?r:[r],o=s.join()+(a=>a.reduce(function(l,c){return l+c.string},""))(i)+n+(t._measureText?"-spriting":"");return yu.has(o)||yu.set(o,function(a,l,c,u){a.save();const f=l.length;let h=0,d=u;for(let g=0;g0)return f.lineJoin="round",f.miterLimit=2,f.lineWidth=h.textStrokeWidth,f.strokeStyle=h.textStrokeColor,!0}(t,r)&&function(f,{x:h,y:d},g,p){f.beginPath();let y=0;g.forEach(function(w,_){const E=p[Math.min(_,p.length-1)],T=E.lineHeight;f.font=E.string,f.strokeText(w,h,d+T/2+y),y+=T}),f.stroke()}(t,{x:c,y:u},s,o),function(f,{x:h,y:d},g,{fonts:p,colors:y}){let w=0;g.forEach(function(_,E){const T=y[Math.min(E,y.length-1)],A=p[Math.min(E,p.length-1)],$=A.lineHeight;f.beginPath(),f.font=A.string,f.fillStyle=T,f.fillText(_,h,d+$/2+w),w+=$,f.fill()})}(t,{x:c,y:u},s,{fonts:o,colors:l}),t.restore()}function LT(t,e,r,i){const{radius:n,options:s}=e,o=s.pointStyle,a=s.rotation;let l=(a||0)*Zf;if(lc(o))return t.save(),t.translate(r,i),t.rotate(l),t.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),void t.restore();(c=>isNaN(c)||c<=0)(n)||function(c,{x:u,y:f,radius:h,rotation:d,style:g,rad:p}){let y,w,_,E;switch(c.beginPath(),g){default:c.arc(u,f,h,0,wt),c.closePath();break;case"triangle":c.moveTo(u+Math.sin(p)*h,f-Math.cos(p)*h),p+=vl,c.lineTo(u+Math.sin(p)*h,f-Math.cos(p)*h),p+=vl,c.lineTo(u+Math.sin(p)*h,f-Math.cos(p)*h),c.closePath();break;case"rectRounded":E=.516*h,_=h-E,y=Math.cos(p+ir)*_,w=Math.sin(p+ir)*_,c.arc(u-y,f-w,E,p-qe,p-Ot),c.arc(u+w,f-y,E,p-Ot,p),c.arc(u+y,f+w,E,p,p+Ot),c.arc(u-w,f+y,E,p+Ot,p+qe),c.closePath();break;case"rect":if(!d){_=Math.SQRT1_2*h,c.rect(u-_,f-_,2*_,2*_);break}p+=ir;case"rectRot":y=Math.cos(p)*h,w=Math.sin(p)*h,c.moveTo(u-y,f-w),c.lineTo(u+w,f-y),c.lineTo(u+y,f+w),c.lineTo(u-w,f+y),c.closePath();break;case"crossRot":p+=ir;case"cross":y=Math.cos(p)*h,w=Math.sin(p)*h,c.moveTo(u-y,f-w),c.lineTo(u+y,f+w),c.moveTo(u+w,f-y),c.lineTo(u-w,f+y);break;case"star":y=Math.cos(p)*h,w=Math.sin(p)*h,c.moveTo(u-y,f-w),c.lineTo(u+y,f+w),c.moveTo(u+w,f-y),c.lineTo(u-w,f+y),p+=ir,y=Math.cos(p)*h,w=Math.sin(p)*h,c.moveTo(u-y,f-w),c.lineTo(u+y,f+w),c.moveTo(u+w,f-y),c.lineTo(u-w,f+y);break;case"line":y=Math.cos(p)*h,w=Math.sin(p)*h,c.moveTo(u-y,f-w),c.lineTo(u+y,f+w);break;case"dash":c.moveTo(u,f),c.lineTo(u+Math.cos(p)*h,f+Math.sin(p)*h)}c.fill()}(t,{x:r,y:i,radius:n,rotation:a,style:o,rad:l})}const by=["left","bottom","top","right"];function NT(t,e){const{pointX:r,pointY:i,options:n}=e,s=n.callout,o=s&&s.display&&function(h,d){const g=d.position;return by.includes(g)?g:function(p,y){const{x:w,y:_,x2:E,y2:T,width:A,height:$,pointX:k,pointY:x,centerX:v,centerY:O,rotation:M}=p,Z={x:v,y:O},te=y.start,U=Ci(A,te),W=Ci($,te),re=[w,w+U,w+U,E],H=[_+W,T,_,T],oe=[];for(let K=0;K<4;K++){const q=Sn({x:re[K],y:H[K]},Z,_t(M));oe.push({position:by[K],distance:Po(q,{x:k,y:x})})}return oe.sort((K,q)=>K.distance-q.distance)[0].position}(h,d)}(e,s);if(!o||function(h,d,g){const{pointX:p,pointY:y}=h,w=d.margin;let _=p,E=y;return g==="left"?_+=w:g==="right"?_-=w:g==="top"?E+=w:g==="bottom"&&(E-=w),h.inRange(_,E)}(e,s,o))return;if(t.save(),t.beginPath(),!ri(t,s))return t.restore();const{separatorStart:a,separatorEnd:l}=function(h,d){const{x:g,y:p,x2:y,y2:w}=h,_=function(A,$){const{width:k,height:x,options:v}=A,O=v.callout.margin+v.borderWidth/2;return $==="right"?k+O:$==="bottom"?x+O:-O}(h,d);let E,T;return d==="left"||d==="right"?(E={x:g+_,y:p},T={x:E.x,y:w}):(E={x:g,y:p+_},T={x:y,y:E.y}),{separatorStart:E,separatorEnd:T}}(e,o),{sideStart:c,sideEnd:u}=function(h,d,g){const{y:p,width:y,height:w,options:_}=h,E=_.callout.start,T=function(k,x){const v=x.side;return k==="left"||k==="top"?-v:v}(d,_.callout);let A,$;return d==="left"||d==="right"?(A={x:g.x,y:p+Ci(w,E)},$={x:A.x+T,y:A.y}):(A={x:g.x+Ci(y,E),y:g.y},$={x:A.x,y:A.y+T}),{sideStart:A,sideEnd:$}}(e,o,a);(s.margin>0||n.borderWidth===0)&&(t.moveTo(a.x,a.y),t.lineTo(l.x,l.y)),t.moveTo(c.x,c.y),t.lineTo(u.x,u.y);const f=Sn({x:r,y:i},e.getCenterPoint(),_t(-e.rotation));t.lineTo(f.x,f.y),t.stroke(),t.restore()}const vy={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function gs(t,e,r){return St(e=typeof e=="number"?e:t.parse(e))?t.getPixelForValue(e):r}function kn(t,e,r){const i=e[r];if(i||r==="scaleID")return i;const n=r.charAt(0),s=Object.values(t).filter(o=>o.axis&&o.axis===n);return s.length?s[0].id:n}function i1(t,e){if(t){const r=t.options.reverse;return{start:gs(t,e.min,r?e.end:e.start),end:gs(t,e.max,r?e.start:e.end)}}}function n1(t,e){const{chartArea:r,scales:i}=t,n=i[kn(i,e,"xScaleID")],s=i[kn(i,e,"yScaleID")];let o=r.width/2,a=r.height/2;return n&&(o=gs(n,e.xValue,n.left+n.width/2)),s&&(a=gs(s,e.yValue,s.top+s.height/2)),{x:o,y:a}}function gd(t,e){const r=t.scales,i=r[kn(r,e,"xScaleID")],n=r[kn(r,e,"yScaleID")];if(!i&&!n)return{};let{left:s,right:o}=i||t.chartArea,{top:a,bottom:l}=n||t.chartArea;const c=wy(i,{min:e.xMin,max:e.xMax,start:s,end:o});s=c.start,o=c.end;const u=wy(n,{min:e.yMin,max:e.yMax,start:l,end:a});return a=u.start,l=u.end,{x:s,y:a,x2:o,y2:l,width:o-s,height:l-a,centerX:s+(o-s)/2,centerY:a+(l-a)/2}}function s1(t,e){if(!e1(e)){const r=gd(t,e);let i=e.radius;i&&!isNaN(i)||(i=Math.min(r.width,r.height)/2,e.radius=i);const n=2*i,s=r.centerX+e.xAdjust,o=r.centerY+e.yAdjust;return{x:s-i,y:o-i,x2:s+i,y2:o+i,centerX:s,centerY:o,width:n,height:n,radius:i}}return function(r,i){const n=n1(r,i),s=2*i.radius;return{x:n.x-i.radius+i.xAdjust,y:n.y-i.radius+i.yAdjust,x2:n.x+i.radius+i.xAdjust,y2:n.y+i.radius+i.yAdjust,centerX:n.x+i.xAdjust,centerY:n.y+i.yAdjust,radius:i.radius,width:s,height:s}}(t,e)}function jT(t,e){const{scales:r,chartArea:i}=t,n=r[e.scaleID],s={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return n?function(o,a,l){const c=gs(o,l.value,NaN),u=gs(o,l.endValue,c);o.isHorizontal()?(a.x=c,a.x2=u):(a.y=c,a.y2=u)}(n,s,e):function(o,a,l){for(const c of Object.keys(vy)){const u=o[kn(o,l,c)];if(u){const{min:f,max:h,start:d,end:g,startProp:p,endProp:y}=vy[c],w=i1(u,{min:l[f],max:l[h],start:u[d],end:u[g]});a[p]=w.start,a[y]=w.end}}}(r,s,e),s}function o1(t,e){const r=gd(t,e);return r.initProperties=xs(t,r,e),r.elements=[{type:"label",optionScope:"label",properties:BT(t,r,e),initProperties:r.initProperties}],r}function wy(t,e){const r=i1(t,e)||e;return{start:Math.min(r.start,r.end),end:Math.max(r.start,r.end)}}function _y(t,e){const{start:r,end:i,borderWidth:n}=t,{position:s,padding:{start:o,end:a},adjust:l}=e;return r+n/2+l+dd(i-n-r-o-a-e.size,s)}function BT(t,e,r){const i=r.label;i.backgroundColor="transparent",i.callout.display=!1;const n=pd(i.position),s=fr(i.padding),o=uc(t.ctx,i),a=function({properties:f,options:h},d,g,p){const{x:y,x2:w,width:_}=f;return _y({start:y,end:w,borderWidth:h.borderWidth},{position:g.x,padding:{start:p.left,end:p.right},adjust:h.label.xAdjust,size:d.width})}({properties:e,options:r},o,n,s),l=function({properties:f,options:h},d,g,p){const{y,y2:w,height:_}=f;return _y({start:y,end:w,borderWidth:h.borderWidth},{position:g.y,padding:{start:p.top,end:p.bottom},adjust:h.label.yAdjust,size:d.height})}({properties:e,options:r},o,n,s),c=o.width+s.width,u=o.height+s.height;return{x:a,y:l,x2:a+c,y2:l+u,width:c,height:u,centerX:a+c/2,centerY:l+u/2,rotation:i.rotation}}const uf=["enter","leave"],md=uf.concat("click");function FT(t,e,r){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return function(i,n,s){if(!i.moveListened)return;let o;o=n.type==="mousemove"?cf(i.visibleElements,n,s.interaction):[];const a=i.hovered;i.hovered=o;const l={state:i,event:n};let c=xy(l,"leave",a,o);return xy(l,"enter",o,a)||c}(t,e,r);case"click":return function(i,n,s){const o=i.listeners,a=cf(i.visibleElements,n,s.interaction);let l;for(const c of a)l=a1(c.options.click||o.click,c,n)||l;return l}(t,e,r)}}function xy({state:t,event:e},r,i,n){let s;for(const o of i)n.indexOf(o)<0&&(s=a1(o.options[r]||t.listeners[r],o,e)||s);return s}function a1(t,e,r){return Ke(t,[e.$context,r])===!0}const Il=["afterDraw","beforeDraw"];function Sy(t,e,r){if(t.hooked)return Ke(e.options[r]||t.hooks[r],[e.$context])}function WT(t,e,r){const i=function(s,o,a){const l=o.axis,c=o.id,u=l+"ScaleID",f={min:De(o.min,Number.NEGATIVE_INFINITY),max:De(o.max,Number.POSITIVE_INFINITY)};for(const h of a)h.scaleID===c?Ey(h,o,["value","endValue"],f):kn(s,h,u)===c&&Ey(h,o,[l+"Min",l+"Max",l+"Value"],f);return f}(t.scales,e,r);let n=ky(e,i,"min","suggestedMin");n=ky(e,i,"max","suggestedMax")||n,n&&Ht(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function ky(t,e,r,i){if(St(e[r])&&!function(n,s,o){return Qt(n[s])||Qt(n[o])}(t.options,r,i)){const n=t[r]!==e[r];return t[r]=e[r],n}}function UT(t,e){for(const r of["scaleID","xScaleID","yScaleID"]){const i=kn(e,t,r);i&&!e[i]&&VT(t,r)}}function VT(t,e){if(e==="scaleID")return!0;const r=e.charAt(0);for(const i of["Min","Max","Value"])if(Qt(t[r+i]))return!0;return!1}function Ey(t,e,r,i){for(const n of r){const s=t[n];if(Qt(s)){const o=e.parse(s);i.min=Math.min(i.min,o),i.max=Math.max(i.max,o)}}}class Zn extends pr{inRange(e,r,i,n){const{x:s,y:o}=Sn({x:e,y:r},this.getCenterPoint(n),_t(-this.options.rotation));return q_({x:s,y:o},this.getProps(["x","y","x2","y2"],n),i,this.options)}getCenterPoint(e){return Mn(this,e)}draw(e){e.save(),cc(e,this.getCenterPoint(),this.options.rotation),t1(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,r){return o1(e,r)}}Zn.id="boxAnnotation",Zn.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Zn.defaultRoutes={borderColor:"color",backgroundColor:"color"},Zn.descriptors={label:{_fallback:!0}};class el extends pr{inRange(e,r,i,n){return Y_({x:e,y:r},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return Mn(this,e)}draw(e){const r=this.options;r.display&&r.content&&(function(i,n){const{_centerX:s,_centerY:o,_radius:a,_startAngle:l,_endAngle:c,_counterclockwise:u,options:f}=n;i.save();const h=ri(i,f);i.fillStyle=f.backgroundColor,i.beginPath(),i.arc(s,o,a,l,c,u),i.closePath(),i.fill(),h&&i.stroke(),i.restore()}(e,this),e.save(),cc(e,this.getCenterPoint(),this.rotation),r1(e,this,r,this._fitRatio),e.restore())}resolveElementProperties(e,r){const i=function(d,g){return d.getSortedVisibleDatasetMetas().reduce(function(p,y){const w=y.controller;return w instanceof qs&&function(_,E,T){if(!E.autoHide)return!0;for(let A=0;A=90?y:p},void 0)}(e,r);if(!i)return{};const{controllerMeta:n,point:s,radius:o}=function({chartArea:d},g,p){const{left:y,top:w,right:_,bottom:E}=d,{innerRadius:T,offsetX:A,offsetY:$}=p.controller,k=(y+_)/2+A,x=(w+E)/2+$,v={left:Math.max(k-T,y),right:Math.min(k+T,_),top:Math.max(x-T,w),bottom:Math.min(x+T,E)},O={x:(v.left+v.right)/2,y:(v.top+v.bottom)/2},M=g.spacing+g.borderWidth/2,Z=T-M,te=O.y>x,U=te?w+M:E-M,W=function(H,oe,K,q){const j=Math.pow(K-H,2),B=Math.pow(q,2),Y=-2*oe,V=Math.pow(oe,2)+j-B,ce=Math.pow(Y,2)-4*V;if(ce<=0)return{_startAngle:0,_endAngle:wt};const he=(-Y-Math.sqrt(ce))/2,pe=(-Y+Math.sqrt(ce))/2;return{_startAngle:Zh({x:oe,y:K},{x:he,y:H}).angle,_endAngle:Zh({x:oe,y:K},{x:pe,y:H}).angle}}(U,k,x,Z);return{controllerMeta:{_centerX:k,_centerY:x,_radius:Z,_counterclockwise:te,...W},point:O,radius:Math.min(T,Math.min(v.right-v.left,v.bottom-v.top)/2)}}(e,r,i);let a=uc(e.ctx,r);const l=function({width:d,height:g},p){const y=Math.sqrt(Math.pow(d,2)+Math.pow(g,2));return 2*p/y}(a,o);Q_(r,l)&&(a={width:a.width*l,height:a.height*l});const{position:c,xAdjust:u,yAdjust:f}=r,h=X_(s,a,{borderWidth:0,position:c,xAdjust:u,yAdjust:f});return{initProperties:xs(e,h,r),...h,...n,rotation:r.rotation,_fitRatio:l}}}el.id="doughnutLabelAnnotation",el.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},el.defaultRoutes={};class go extends pr{inRange(e,r,i,n){return Y_({x:e,y:r},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return Mn(this,e)}draw(e){const r=this.options,i=!Qt(this._visible)||this._visible;r.display&&r.content&&i&&(e.save(),cc(e,this.getCenterPoint(),this.rotation),NT(e,this),t1(e,this,r),r1(e,function({x:n,y:s,width:o,height:a,options:l}){const c=l.borderWidth/2,u=fr(l.padding);return{x:n+u.left+c,y:s+u.top+c,width:o-u.left-u.right-l.borderWidth,height:a-u.top-u.bottom-l.borderWidth}}(this),r),e.restore())}resolveElementProperties(e,r){let i;if(e1(r))i=n1(e,r);else{const{centerX:o,centerY:a}=gd(e,r);i={x:o,y:a}}const n=fr(r.padding),s=X_(i,uc(e.ctx,r),r,n);return{initProperties:xs(e,s,r),pointX:i.x,pointY:i.y,...s,rotation:r.rotation}}}go.id="labelAnnotation",go.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},go.defaultRoutes={borderColor:"color"};const yd=(t,e,r)=>({x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}),hf=(t,e,r)=>yd(e,r,Math.abs((t-e.y)/(r.y-e.y))).x,Oy=(t,e,r)=>yd(e,r,Math.abs((t-e.x)/(r.x-e.x))).y,Fs=t=>t*t,Ty=(t,e,r,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*r,bu=(t,e,r,i)=>({x:Ty(t.x,e.x,r.x,i),y:Ty(t.y,e.y,r.y,i)}),Ay=(t,e,r,i)=>2*(1-i)*(e-t)+2*i*(r-e),My=(t,e,r,i)=>-Math.atan2(Ay(t.x,e.x,r.x,i),Ay(t.y,e.y,r.y,i))+.5*qe;class mo extends pr{inRange(e,r,i,n){const s=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y"){const o={mouseX:e,mouseY:r},{path:a,ctx:l}=this;if(a){ri(l,this.options),l.lineWidth+=this.options.hitTolerance;const{chart:c}=this.$context,u=e*c.currentDevicePixelRatio,f=r*c.currentDevicePixelRatio,h=l.isPointInStroke(a,u,f)||vu(this,o,n);return l.restore(),h}return function(c,{mouseX:u,mouseY:f},h=.001,d){const{x:g,y:p,x2:y,y2:w}=c.getProps(["x","y","x2","y2"],d),_=y-g,E=w-p,T=Fs(_)+Fs(E),A=T===0?-1:((u-g)*_+(f-p)*E)/T;let $,k;return A<0?($=g,k=p):A>1?($=y,k=w):($=g+A*_,k=p+A*E),Fs(u-$)+Fs(f-k)<=h}(this,o,Fs(s),n)||vu(this,o,n)}return function(o,{mouseX:a,mouseY:l},c,{hitSize:u,useFinalPosition:f}){const h=((d,g,{x:p,y,x2:w,y2:_},E)=>E==="y"?{start:Math.min(y,_),end:Math.max(y,_),value:g}:{start:Math.min(p,w),end:Math.max(p,w),value:d})(a,l,o.getProps(["x","y","x2","y2"],f),c);return H_(h,u)||vu(o,{mouseX:a,mouseY:l},f,c)}(this,{mouseX:e,mouseY:r},i,{hitSize:s,useFinalPosition:n})}getCenterPoint(e){return Mn(this,e)}draw(e){const{x:r,y:i,x2:n,y2:s,cp:o,options:a}=this;if(e.save(),!ri(e,a))return e.restore();Ss(e,a);const l=Math.sqrt(Math.pow(n-r,2)+Math.pow(s-i,2));if(a.curve&&o)return function(g,p,y,w){const{x:_,y:E,x2:T,y2:A,options:$}=p,{startOpts:k,endOpts:x,startAdjust:v,endAdjust:O}=Dy(p),M={x:_,y:E},Z={x:T,y:A},te=My(M,y,Z,0),U=My(M,y,Z,1)-qe,W=bu(M,y,Z,v/w),re=bu(M,y,Z,1-O/w),H=new Path2D;g.beginPath(),H.moveTo(W.x,W.y),H.quadraticCurveTo(y.x,y.y,re.x,re.y),g.shadowColor=$.borderShadowColor,g.stroke(H),p.path=H,p.ctx=g,Ny(g,W,{angle:te,adjust:v},k),Ny(g,re,{angle:U,adjust:O},x)}(e,this,o,l),e.restore();const{startOpts:c,endOpts:u,startAdjust:f,endAdjust:h}=Dy(this),d=Math.atan2(s-i,n-r);e.translate(r,i),e.rotate(d),e.beginPath(),e.moveTo(0+f,0),e.lineTo(l-h,0),e.shadowColor=a.borderShadowColor,e.stroke(),ff(e,0,f,c),ff(e,l,-h,u),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,r){const i=jT(e,r),{x:n,y:s,x2:o,y2:a}=i,l=function({x:f,y:h,x2:d,y2:g},{top:p,right:y,bottom:w,left:_}){return!(f<_&&d<_||f>y&&d>y||hw&&g>w)}(i,e.chartArea),c=l?function(f,h,d){const{x:g,y:p}=Cy(f,h,d),{x:y,y:w}=Cy(h,f,d);return{x:g,y:p,x2:y,y2:w,width:Math.abs(y-g),height:Math.abs(w-p)}}({x:n,y:s},{x:o,y:a},e.chartArea):{x:n,y:s,x2:o,y2:a,width:Math.abs(o-n),height:Math.abs(a-s)};if(c.centerX=(o+n)/2,c.centerY=(a+s)/2,c.initProperties=xs(e,c,r),r.curve){const f={x:c.x,y:c.y},h={x:c.x2,y:c.y2};c.cp=function(d,g,p){const{x:y,y:w,x2:_,y2:E,centerX:T,centerY:A}=d,$=Math.atan2(E-w,_-y),k=pd(g.controlPoint,0),x={x:T+Ci(p,k.x,!1),y:A+Ci(p,k.y,!1)};return Sn(x,{x:T,y:A},$)}(c,r,Po(f,h))}const u=function(f,h,d){const g=d.borderWidth,p=fr(d.padding),y=uc(f.ctx,d),w=y.width+p.width+g,_=y.height+p.height+g;return function(E,T,A,$){const{width:k,height:x,padding:v}=A,{xAdjust:O,yAdjust:M}=T,Z={x:E.x,y:E.y},te={x:E.x2,y:E.y2},U=T.rotation==="auto"?function(B){const{x:Y,y:V,x2:ce,y2:he}=B,pe=Math.atan2(he-V,ce-Y);return pe>qe/2?pe-qe:pen&&(e=Oy(n,{x:t,y:e},r),t=n),es&&(t=hf(s,{x:t,y:e},r),e=s),{x:t,y:e}}function vu(t,{mouseX:e,mouseY:r},i,n){const s=t.label;return s.options.display&&s.inRange(e,r,n,i)}function Py(t,e,r,i){const{labelSize:n,padding:s}=e,o=t.w*i.dx,a=t.h*i.dy,l=o>0&&(n.w/2+s.left-i.x)/o,c=a>0&&(n.h/2+s.top-i.y)/a;return ac(Math.max(l,c),0,.25)}function Ry(t,e){const{size:r,min:i,max:n,padding:s}=e,o=r/2;return r>n-i?(n+i)/2:(i>=t-s-o&&(t=i+s+o),n<=t+s+o&&(t=n-s-o),t)}function Dy(t){const e=t.options,r=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:r,endOpts:i,startAdjust:Ly(t,r),endAdjust:Ly(t,i)}}function Ly(t,e){if(!e||!e.display)return 0;const{length:r,width:i}=e,n=t.options.borderWidth/2,s={x:r,y:i+n};return Math.abs(hf(0,s,{x:0,y:n}))}function ff(t,e,r,i){if(!i||!i.display)return;const{length:n,width:s,fill:o,backgroundColor:a,borderColor:l}=i,c=Math.abs(e-n)+r;t.beginPath(),Ss(t,i),ri(t,i),t.moveTo(c,-s),t.lineTo(e+r,0),t.lineTo(c,s),o===!0?(t.fillStyle=a||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function Ny(t,{x:e,y:r},{angle:i,adjust:n},s){s&&s.display&&(t.save(),t.translate(e,r),t.rotate(i),ff(t,0,-n,s),t.restore())}mo.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Iy),fill:!1,length:12,start:Object.assign({},Iy),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},go.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},mo.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},mo.defaultRoutes={borderColor:"color"};class Gs extends pr{inRange(e,r,i,n){const s=this.options.rotation,o=(this.options.borderWidth+this.options.hitTolerance)/2;if(i!=="x"&&i!=="y")return function(d,g,p,y){const{width:w,height:_,centerX:E,centerY:T}=g,A=w/2,$=_/2;if(A<=0||$<=0)return!1;const k=_t(p||0),x=Math.cos(k),v=Math.sin(k),O=Math.pow(x*(d.x-E)+v*(d.y-T),2),M=Math.pow(v*(d.x-E)-x*(d.y-T),2);return O/Math.pow(A+y,2)+M/Math.pow($+y,2)<=1.0001}({x:e,y:r},this.getProps(["width","height","centerX","centerY"],n),s,o);const{x:a,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],n),f=i==="y"?{start:l,end:u}:{start:a,end:c},h=Sn({x:e,y:r},this.getCenterPoint(n),_t(-s));return h[i]>=f.start-o-Gn&&h[i]<=f.end+o+Gn}getCenterPoint(e){return Mn(this,e)}draw(e){const{width:r,height:i,centerX:n,centerY:s,options:o}=this;e.save(),cc(e,this.getCenterPoint(),o.rotation),Ss(e,this.options),e.beginPath(),e.fillStyle=o.backgroundColor;const a=ri(e,o);e.ellipse(n,s,i/2,r/2,qe/2,0,2*qe),e.fill(),a&&(e.shadowColor=o.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,r){return o1(e,r)}}Gs.id="ellipseAnnotation",Gs.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Zn.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Gs.defaultRoutes={borderColor:"color",backgroundColor:"color"},Gs.descriptors={label:{_fallback:!0}};class tl extends pr{inRange(e,r,i,n){const{x:s,y:o,x2:a,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],n),u=(this.options.borderWidth+this.options.hitTolerance)/2;return i!=="x"&&i!=="y"?function(f,h,d,g){return!(!f||!h||d<=0)&&Math.pow(f.x-h.x,2)+Math.pow(f.y-h.y,2)<=Math.pow(d+g,2)}({x:e,y:r},this.getCenterPoint(n),c/2,u):H_(i==="y"?{start:o,end:l,value:r}:{start:s,end:a,value:e},u)}getCenterPoint(e){return Mn(this,e)}draw(e){const r=this.options,i=r.borderWidth;if(r.radius<.1)return;e.save(),e.fillStyle=r.backgroundColor,Ss(e,r);const n=ri(e,r);LT(e,this,this.centerX,this.centerY),n&&!lc(r.pointStyle)&&(e.shadowColor=r.borderShadowColor,e.stroke()),e.restore(),r.borderWidth=i}resolveElementProperties(e,r){const i=s1(e,r);return i.initProperties=xs(e,i,r),i}}tl.id="pointAnnotation",tl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},tl.defaultRoutes={borderColor:"color",backgroundColor:"color"};class rl extends pr{inRange(e,r,i,n){if(i!=="x"&&i!=="y")return this.options.radius>=.1&&this.elements.length>1&&function(c,u,f,h){let d=!1,g=c[c.length-1].getProps(["bX","bY"],h);for(const p of c){const y=p.getProps(["bX","bY"],h);y.bY>f!=g.bY>f&&u<(g.bX-y.bX)*(f-y.bY)/(g.bY-y.bY)+y.bX&&(d=!d),g=y}return d}(this.elements,e,r,n);const s=Sn({x:e,y:r},this.getCenterPoint(n),_t(-this.options.rotation)),o=this.elements.map(c=>i==="y"?c.bY:c.bX),a=Math.min(...o),l=Math.max(...o);return s[i]>=a&&s[i]<=l}getCenterPoint(e){return Mn(this,e)}draw(e){const{elements:r,options:i}=this;e.save(),e.beginPath(),e.fillStyle=i.backgroundColor,Ss(e,i);const n=ri(e,i);let s=!0;for(const o of r)s?(e.moveTo(o.x,o.y),s=!1):e.lineTo(o.x,o.y);e.closePath(),e.fill(),n&&(e.shadowColor=i.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,r){const i=s1(e,r),{sides:n,rotation:s}=r,o=[],a=2*qe/n;let l=s*Zf;for(let c=0;c{pt.describe(`elements.${Ni[t].id}`,{_fallback:"plugins.annotation.common"})});const zT={update:Object.assign},HT=md.concat(Il),jy=(t,e)=>Re(e)?pf(t,e):t,df=t=>t==="color"||t==="font";function bd(t="line"){return Ni[t]?t:"line"}function qT(t,e,r,i){const n=function(a,l,c){return c==="reset"||c==="none"||c==="resize"?zT:new Lw(a,l)}(t,r.animations,i),s=e.annotations,o=function(a,l){const c=l.length,u=a.length;if(uc&&a.splice(c,u-c);return a}(e.elements,s);for(let a=0;ajy(o,n)):r[i]=jy(s,n)}return r}function GT(t,e,r,i){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return r.filter(n=>n&&n.options)},id:i.id,type:"annotation"}))}const wi=new Map,By=t=>t.type!=="doughnutLabel",ZT=md.concat(Il);var EA={id:"annotation",version:"3.1.0",beforeRegister(){(function(t,e,r,i=!0){const n=r.split(".");let s=0;for(const o of e.split(".")){const a=n[s++];if(parseInt(o,10){const o=n[s];Re(o)&&(o.id=s,i.push(o))}):lt(n)&&i.push(...n),function(s,o){for(const a of s)UT(a,o)}(i.filter(By),t.scales)},afterDataLimits(t,e){const r=wi.get(t);WT(t,e.scale,r.annotations.filter(By).filter(i=>i.display&&i.adjustScaleRange))},afterUpdate(t,e,r){const i=wi.get(t);(function(n,s,o){s.listened=my(o,md,s.listeners),s.moveListened=!1,uf.forEach(a=>{Ht(o[a])&&(s.moveListened=!0)}),s.listened&&s.moveListened||s.annotations.forEach(a=>{!s.listened&&Ht(a.click)&&(s.listened=!0),s.moveListened||uf.forEach(l=>{Ht(a[l])&&(s.listened=!0,s.moveListened=!0)})})})(0,i,r),qT(t,i,r,e.mode),i.visibleElements=i.elements.filter(n=>!n.skip&&n.options.display),function(n,s,o){const a=s.visibleElements;s.hooked=my(o,Il,s.hooks),s.hooked||a.forEach(l=>{s.hooked||Il.forEach(c=>{Ht(l.options[c])&&(s.hooked=!0)})})}(0,i,r)},beforeDatasetsDraw(t,e,r){Ws(t,"beforeDatasetsDraw",r.clip)},afterDatasetsDraw(t,e,r){Ws(t,"afterDatasetsDraw",r.clip)},beforeDatasetDraw(t,e,r){Ws(t,e.index,r.clip)},beforeDraw(t,e,r){Ws(t,"beforeDraw",r.clip)},afterDraw(t,e,r){Ws(t,"afterDraw",r.clip)},beforeEvent(t,e,r){FT(wi.get(t),e.event,r)&&(e.changed=!0)},afterDestroy(t){wi.delete(t)},getAnnotations(t){const e=wi.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode:(t,e,r)=>cf(t,e,r),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!ZT.includes(t)&&t!=="init",annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Ni[bd(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:df,_fallback:!0},_indexable:df}},additionalOptionScopes:[""]};function Ws(t,e,r){const{ctx:i,chartArea:n}=t,s=wi.get(t);r&&$o(i,n);const o=function(a,l){const c=[];for(const u of a)if(u.options.drawTime===l&&c.push({element:u,main:!0}),u.elements&&u.elements.length)for(const f of u.elements)f.options.display&&f.options.drawTime===l&&c.push({element:f});return c}(s.visibleElements,e).sort((a,l)=>a.element.options.z-l.element.options.z);for(const a of o)XT(i,n,s,a);r&&zo(i)}function XT(t,e,r,i){const n=i.element;i.main?(Sy(r,n,"beforeDraw"),n.draw(t,e),Sy(r,n,"afterDraw")):n.draw(t,e)}export{sA as A,Nr as B,zl as C,JT as D,bx as E,$t as F,oA as G,yA as H,tA as I,wA as J,vA as K,bA as L,gA as M,mA as N,fA as O,kA as P,is as Q,bS as R,SA as S,uA as T,Ga as U,un as V,ou as W,Am as X,Dm as Y,xA as Z,EA as _,_A as a,eA as b,nr as c,Ul as d,lA as e,cA as f,il as g,as as h,K0 as i,aA as j,vx as k,Au as l,_x as m,iA as n,Tu as o,rA as p,H1 as q,Lo as r,zt as s,pA as t,dA as u,hA as v,pn as w,x1 as x,nA as y,Nl as z}; diff --git a/packages/modules/display_themes/cards/web/assets/vendor-DR1uipmZ.js b/packages/modules/display_themes/cards/web/assets/vendor-DR1uipmZ.js deleted file mode 100644 index 5136f8f67a..0000000000 --- a/packages/modules/display_themes/cards/web/assets/vendor-DR1uipmZ.js +++ /dev/null @@ -1,32 +0,0 @@ -var Jp=Object.defineProperty;var Al=t=>{throw TypeError(t)};var Xp=(t,e,r)=>e in t?Jp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Kt=(t,e,r)=>Xp(t,typeof e!="symbol"?e+"":e,r),To=(t,e,r)=>e.has(t)||Al("Cannot "+r);var V=(t,e,r)=>(To(t,e,"read from private field"),r?r.call(t):e.get(t)),Ct=(t,e,r)=>e.has(t)?Al("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),At=(t,e,r,n)=>(To(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),St=(t,e,r)=>(To(t,e,"access private method"),r);var vi=(t,e,r,n)=>({set _(l){At(t,e,l,r)},get _(){return V(t,e,n)}});const zi=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Fa(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const $t={},bn=[],ze=()=>{},Zp=()=>!1,ao=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Wa=t=>t.startsWith("onUpdate:"),oe=Object.assign,$a=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},td=Object.prototype.hasOwnProperty,jt=(t,e)=>td.call(t,e),It=Array.isArray,yn=t=>lo(t)==="[object Map]",_c=t=>lo(t)==="[object Set]",Ot=t=>typeof t=="function",Qt=t=>typeof t=="string",ur=t=>typeof t=="symbol",zt=t=>t!==null&&typeof t=="object",Ec=t=>(zt(t)||Ot(t))&&Ot(t.then)&&Ot(t.catch),Sc=Object.prototype.toString,lo=t=>Sc.call(t),Ac=t=>lo(t)==="[object Object]",Va=t=>Qt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,$n=Fa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uo=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},ed=/-(\w)/g,Re=uo(t=>t.replace(ed,(e,r)=>r?r.toUpperCase():"")),rd=/\B([A-Z])/g,Br=uo(t=>t.replace(rd,"-$1").toLowerCase()),co=uo(t=>t.charAt(0).toUpperCase()+t.slice(1)),xo=uo(t=>t?`on${co(t)}`:""),Tr=(t,e)=>!Object.is(t,e),Co=(t,...e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},nd=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let kl;const Ki=()=>kl||(kl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:zi!==void 0?zi:{});function ho(t){if(It(t)){const e={};for(let r=0;r{if(r){const n=r.split(od);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function fo(t){let e="";if(Qt(t))e=t;else if(It(t))for(let r=0;r!(!t||t.__v_isRef!==!0),ud=t=>Qt(t)?t:t==null?"":It(t)||zt(t)&&(t.toString===Sc||!Ot(t.toString))?Oc(t)?ud(t.value):JSON.stringify(t,Tc,2):String(t),Tc=(t,e)=>Oc(e)?Tc(t,e.value):yn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,l],a)=>(r[Ro(n,a)+" =>"]=l,r),{})}:_c(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>Ro(r))}:ur(e)?Ro(e):!zt(e)||It(e)||Ac(e)?e:String(e),Ro=(t,e="")=>{var r;return ur(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let de,qt;class xc{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,r;if(this._isPaused=!0,this.scopes)for(e=0,r=this.scopes.length;e0)return;if(qn){let e=qn;for(qn=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Vn;){let e=Vn;for(Vn=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function jc(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Lc(t){let e,r=t.depsTail,n=r;for(;n;){const l=n.prevDep;n.version===-1?(n===r&&(r=l),za(n),cd(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}t.deps=e,t.depsTail=r}function ps(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Nc(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Nc(t){if(4&t.flags&&!(16&t.flags)||(t.flags&=-17,t.globalVersion===ti))return;t.globalVersion=ti;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ps(t))return void(t.flags&=-3);const r=qt,n=Ne;qt=t,Ne=!0;try{jc(t);const l=t.fn(t._value);(e.version===0||Tr(l,t._value))&&(t._value=l,e.version++)}catch(l){throw e.version++,l}finally{qt=r,Ne=n,Lc(t),t.flags&=-3}}function za(t,e=!1){const{dep:r,prevSub:n,nextSub:l}=t;if(n&&(n.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)za(a,!0)}e||--r.sc||!r.map||r.map.delete(r.key)}function cd(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let Ne=!0;const Uc=[];function Rr(){Uc.push(Ne),Ne=!1}function Pr(){const t=Uc.pop();Ne=t===void 0||t}function Il(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=qt;qt=void 0;try{e()}finally{qt=r}}}let ti=0;class hd{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ka{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!qt||!Ne||qt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==qt)r=this.activeLink=new hd(qt,this),qt.deps?(r.prevDep=qt.depsTail,qt.depsTail.nextDep=r,qt.depsTail=r):qt.deps=qt.depsTail=r,Dc(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=qt.depsTail,r.nextDep=void 0,qt.depsTail.nextDep=r,qt.depsTail=r,qt.deps===r&&(qt.deps=n)}return r}trigger(e){this.version++,ti++,this.notify(e)}notify(e){qa();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ha()}}}function Dc(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Dc(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const Gi=new WeakMap,Yr=Symbol(""),ds=Symbol(""),ei=Symbol("");function ce(t,e,r){if(Ne&&qt){let n=Gi.get(t);n||Gi.set(t,n=new Map);let l=n.get(r);l||(n.set(r,l=new Ka),l.map=n,l.key=r),l.track()}}function ir(t,e,r,n,l,a){const s=Gi.get(t);if(!s)return void ti++;const i=o=>{o&&o.trigger()};if(qa(),e==="clear")s.forEach(i);else{const o=It(t),u=o&&Va(r);if(o&&r==="length"){const c=Number(n);s.forEach((p,f)=>{(f==="length"||f===ei||!ur(f)&&f>=c)&&i(p)})}else switch((r!==void 0||s.has(void 0))&&i(s.get(r)),u&&i(s.get(ei)),e){case"add":o?u&&i(s.get("length")):(i(s.get(Yr)),yn(t)&&i(s.get(ds)));break;case"delete":o||(i(s.get(Yr)),yn(t)&&i(s.get(ds)));break;case"set":yn(t)&&i(s.get(Yr))}}Ha()}function un(t){const e=Rt(t);return e===t?e:(ce(e,0,ei),Ce(t)?e:e.map(he))}function po(t){return ce(t=Rt(t),0,ei),t}const fd={__proto__:null,[Symbol.iterator](){return Mo(this,Symbol.iterator,he)},concat(...t){return un(this).concat(...t.map(e=>It(e)?un(e):e))},entries(){return Mo(this,"entries",t=>(t[1]=he(t[1]),t))},every(t,e){return Qe(this,"every",t,e,void 0,arguments)},filter(t,e){return Qe(this,"filter",t,e,r=>r.map(he),arguments)},find(t,e){return Qe(this,"find",t,e,he,arguments)},findIndex(t,e){return Qe(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Qe(this,"findLast",t,e,he,arguments)},findLastIndex(t,e){return Qe(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Qe(this,"forEach",t,e,void 0,arguments)},includes(...t){return Bo(this,"includes",t)},indexOf(...t){return Bo(this,"indexOf",t)},join(t){return un(this).join(t)},lastIndexOf(...t){return Bo(this,"lastIndexOf",t)},map(t,e){return Qe(this,"map",t,e,void 0,arguments)},pop(){return Pn(this,"pop")},push(...t){return Pn(this,"push",t)},reduce(t,...e){return Ol(this,"reduce",t,e)},reduceRight(t,...e){return Ol(this,"reduceRight",t,e)},shift(){return Pn(this,"shift")},some(t,e){return Qe(this,"some",t,e,void 0,arguments)},splice(...t){return Pn(this,"splice",t)},toReversed(){return un(this).toReversed()},toSorted(t){return un(this).toSorted(t)},toSpliced(...t){return un(this).toSpliced(...t)},unshift(...t){return Pn(this,"unshift",t)},values(){return Mo(this,"values",he)}};function Mo(t,e,r){const n=po(t),l=n[e]();return n===t||Ce(t)||(l._next=l.next,l.next=()=>{const a=l._next();return a.value&&(a.value=r(a.value)),a}),l}const pd=Array.prototype;function Qe(t,e,r,n,l,a){const s=po(t),i=s!==t&&!Ce(t),o=s[e];if(o!==pd[e]){const p=o.apply(t,a);return i?he(p):p}let u=r;s!==t&&(i?u=function(p,f){return r.call(this,he(p),f,t)}:r.length>2&&(u=function(p,f){return r.call(this,p,f,t)}));const c=o.call(s,u,n);return i&&l?l(c):c}function Ol(t,e,r,n){const l=po(t);let a=r;return l!==t&&(Ce(t)?r.length>3&&(a=function(s,i,o){return r.call(this,s,i,o,t)}):a=function(s,i,o){return r.call(this,s,he(i),o,t)}),l[e](a,...n)}function Bo(t,e,r){const n=Rt(t);ce(n,0,ei);const l=n[e](...r);return l!==-1&&l!==!1||!Ya(r[0])?l:(r[0]=Rt(r[0]),n[e](...r))}function Pn(t,e,r=[]){Rr(),qa();const n=Rt(t)[e].apply(t,r);return Ha(),Pr(),n}const dd=Fa("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ur));function gd(t){ur(t)||(t=String(t));const e=Rt(this);return ce(e,0,t),e.hasOwnProperty(t)}class Wc{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const l=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!l;if(r==="__v_isReadonly")return l;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(l?a?Ad:Hc:a?qc:Vc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=It(e);if(!l){let o;if(s&&(o=fd[r]))return o;if(r==="hasOwnProperty")return gd}const i=Reflect.get(e,r,ee(e)?e:n);return(ur(r)?Fc.has(r):dd(r))?i:(l||ce(e,0,r),a?i:ee(i)?s&&Va(r)?i:i.value:zt(i)?l?Kc(i):fi(i):i)}}class $c extends Wc{constructor(e=!1){super(!1,e)}set(e,r,n,l){let a=e[r];if(!this._isShallow){const o=rn(a);if(Ce(n)||rn(n)||(a=Rt(a),n=Rt(n)),!It(e)&&ee(a)&&!ee(n))return!o&&(a.value=n,!0)}const s=It(e)&&Va(r)?Number(r)t,wi=t=>Reflect.getPrototypeOf(t);function _i(t){return function(...e){return t!=="delete"&&(t==="clear"?void 0:this)}}function wd(t,e){const r={get(n){const l=this.__v_raw,a=Rt(l),s=Rt(n);t||(Tr(n,s)&&ce(a,0,n),ce(a,0,s));const{has:i}=wi(a),o=e?jo:t?Lo:he;return i.call(a,n)?o(l.get(n)):i.call(a,s)?o(l.get(s)):void(l!==a&&l.get(n))},get size(){const n=this.__v_raw;return!t&&ce(Rt(n),0,Yr),Reflect.get(n,"size",n)},has(n){const l=this.__v_raw,a=Rt(l),s=Rt(n);return t||(Tr(n,s)&&ce(a,0,n),ce(a,0,s)),n===s?l.has(n):l.has(n)||l.has(s)},forEach(n,l){const a=this,s=a.__v_raw,i=Rt(s),o=e?jo:t?Lo:he;return!t&&ce(i,0,Yr),s.forEach((u,c)=>n.call(l,o(u),o(c),a))}};return oe(r,t?{add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear")}:{add(n){e||Ce(n)||rn(n)||(n=Rt(n));const l=Rt(this);return wi(l).has.call(l,n)||(l.add(n),ir(l,"add",n,n)),this},set(n,l){e||Ce(l)||rn(l)||(l=Rt(l));const a=Rt(this),{has:s,get:i}=wi(a);let o=s.call(a,n);o||(n=Rt(n),o=s.call(a,n));const u=i.call(a,n);return a.set(n,l),o?Tr(l,u)&&ir(a,"set",n,l):ir(a,"add",n,l),this},delete(n){const l=Rt(this),{has:a,get:s}=wi(l);let i=a.call(l,n);i||(n=Rt(n),i=a.call(l,n)),s&&s.call(l,n);const o=l.delete(n);return i&&ir(l,"delete",n,void 0),o},clear(){const n=Rt(this),l=n.size!==0,a=n.clear();return l&&ir(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=function(l,a,s){return function(...i){const o=this.__v_raw,u=Rt(o),c=yn(u),p=l==="entries"||l===Symbol.iterator&&c,f=l==="keys"&&c,g=o[l](...i),m=s?jo:a?Lo:he;return!a&&ce(u,0,f?ds:Yr),{next(){const{value:y,done:w}=g.next();return w?{value:y,done:w}:{value:p?[m(y[0]),m(y[1])]:m(y),done:w}},[Symbol.iterator](){return this}}}}(n,t,e)}),r}function Ga(t,e){const r=wd(t,e);return(n,l,a)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?n:Reflect.get(jt(r,l)&&l in n?r:n,l,a)}const _d={get:Ga(!1,!1)},Ed={get:Ga(!1,!0)},Sd={get:Ga(!0,!1)},Vc=new WeakMap,qc=new WeakMap,Hc=new WeakMap,Ad=new WeakMap;function kd(t){return t.__v_skip||!Object.isExtensible(t)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>lo(e).slice(8,-1))(t))}function fi(t){return rn(t)?t:Qa(t,!1,bd,_d,Vc)}function zc(t){return Qa(t,!1,vd,Ed,qc)}function Kc(t){return Qa(t,!0,yd,Sd,Hc)}function Qa(t,e,r,n,l){if(!zt(t)||t.__v_raw&&(!e||!t.__v_isReactive))return t;const a=l.get(t);if(a)return a;const s=kd(t);if(s===0)return t;const i=new Proxy(t,s===2?n:r);return l.set(t,i),i}function xr(t){return rn(t)?xr(t.__v_raw):!(!t||!t.__v_isReactive)}function rn(t){return!(!t||!t.__v_isReadonly)}function Ce(t){return!(!t||!t.__v_isShallow)}function Ya(t){return!!t&&!!t.__v_raw}function Rt(t){const e=t&&t.__v_raw;return e?Rt(e):t}function Ja(t){return!jt(t,"__v_skip")&&Object.isExtensible(t)&&kc(t,"__v_skip",!0),t}const he=t=>zt(t)?fi(t):t,Lo=t=>zt(t)?Kc(t):t;function ee(t){return!!t&&t.__v_isRef===!0}function Xa(t){return Gc(t,!1)}function Gc(t,e){return ee(t)?t:new Id(t,e)}class Id{constructor(e,r){this.dep=new Ka,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Rt(e),this._value=r?e:he(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||Ce(e)||rn(e);e=n?e:Rt(e),Tr(e,r)&&(this._rawValue=e,this._value=n?e:he(e),this.dep.trigger())}}function vn(t){return ee(t)?t.value:t}const Od={get:(t,e,r)=>e==="__v_raw"?t:vn(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const l=t[e];return ee(l)&&!ee(r)?(l.value=r,!0):Reflect.set(t,e,r,n)}};function Qc(t){return xr(t)?t:new Proxy(t,Od)}class Td{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,r){const n=Gi.get(e);return n&&n.get(r)}(Rt(this._object),this._key)}}function xd(t,e,r){const n=t[e];return ee(n)?n:new Td(t,e,r)}class Cd{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Ka(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ti-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&qt!==this)return Bc(this,!0),!0}get value(){const e=this.dep.track();return Nc(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Ei={},Si=new WeakMap;let Nr;function Rd(t,e,r=$t){const{immediate:n,deep:l,once:a,scheduler:s,augmentJob:i,call:o}=r,u=J=>l?J:Ce(J)||l===!1||l===0?or(J,1):or(J);let c,p,f,g,m=!1,y=!1;if(ee(t)?(p=()=>t.value,m=Ce(t)):xr(t)?(p=()=>u(t),m=!0):It(t)?(y=!0,m=t.some(J=>xr(J)||Ce(J)),p=()=>t.map(J=>ee(J)?J.value:xr(J)?u(J):Ot(J)?o?o(J,2):J():void 0)):p=Ot(t)?e?o?()=>o(t,2):t:()=>{if(f){Rr();try{f()}finally{Pr()}}const J=Nr;Nr=c;try{return o?o(t,3,[g]):t(g)}finally{Nr=J}}:ze,e&&l){const J=p,z=l===!0?1/0:l;p=()=>or(J(),z)}const w=Rc(),P=()=>{c.stop(),w&&w.active&&$a(w.effects,c)};if(a&&e){const J=e;e=(...z)=>{J(...z),P()}}let O=y?new Array(t.length).fill(Ei):Ei;const F=J=>{if(1&c.flags&&(c.dirty||J))if(e){const z=c.run();if(l||m||(y?z.some((it,E)=>Tr(it,O[E])):Tr(z,O))){f&&f();const it=Nr;Nr=c;try{const E=[z,O===Ei?void 0:y&&O[0]===Ei?[]:O,g];o?o(e,3,E):e(...E),O=z}finally{Nr=it}}}else c.run()};return i&&i(F),c=new Pc(p),c.scheduler=s?()=>s(F,!1):F,g=J=>function(z,it=!1,E=Nr){if(E){let _=Si.get(E);_||Si.set(E,_=[]),_.push(z)}}(J,!1,c),f=c.onStop=()=>{const J=Si.get(c);if(J){if(o)o(J,4);else for(const z of J)z();Si.delete(c)}},e?n?F(!0):O=c.run():s?s(F.bind(null,!0),!0):c.run(),P.pause=c.pause.bind(c),P.resume=c.resume.bind(c),P.stop=P,P}function or(t,e=1/0,r){if(e<=0||!zt(t)||t.__v_skip||(r=r||new Set).has(t))return t;if(r.add(t),e--,ee(t))or(t.value,e,r);else if(It(t))for(let n=0;n{or(n,e,r)});else if(Ac(t)){for(const n in t)or(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&or(t[n],e,r)}return t}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function pi(t,e,r,n){try{return n?t(...n):t()}catch(l){go(l,e,r)}}function Ue(t,e,r,n){if(Ot(t)){const l=pi(t,e,r,n);return l&&Ec(l)&&l.catch(a=>{go(a,e,r)}),l}if(It(t)){const l=[];for(let a=0;a=Hn(r)?ge.push(t):ge.splice(function(n){let l=We+1,a=ge.length;for(;l>>1,i=ge[s],o=Hn(i);oHn(r)-Hn(n));if(wn.length=0,Sr)return void Sr.push(...e);for(Sr=e,pn=0;pnt.id==null?2&t.flags?-1:1/0:t.id;function th(t){try{for(We=0;We{n._d&&Gl(-1);const a=Yi(e);let s;try{s=t(...l)}finally{Yi(a),n._d&&Gl(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Bb(t,e){if(ne===null)return t;const r=vo(ne),n=t.dirs||(t.dirs=[]);for(let l=0;lt.__isTeleport,Dn=t=>t&&(t.disabled||t.disabled===""),xl=t=>t&&(t.defer||t.defer===""),Cl=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Rl=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,No=(t,e)=>{const r=t&&t.to;return Qt(r)?e?e(r):null:r},ih={name:"Teleport",__isTeleport:!0,process(t,e,r,n,l,a,s,i,o,u){const{mc:c,pc:p,pbc:f,o:{insert:g,querySelector:m,createText:y,createComment:w}}=u,P=Dn(e.props);let{shapeFlag:O,children:F,dynamicChildren:J}=e;if(t==null){const z=e.el=y(""),it=e.anchor=y("");g(z,r,n),g(it,r,n);const E=(b,R)=>{16&O&&(l&&l.isCE&&(l.ce._teleportTarget=b),c(F,b,R,l,a,s,i,o))},_=()=>{const b=e.target=No(e.props,m),R=Pl(b,e,y,g);b&&(s!=="svg"&&Cl(b)?s="svg":s!=="mathml"&&Rl(b)&&(s="mathml"),P||(E(b,R),ki(e,!1)))};P&&(E(r,it),ki(e,!0)),xl(e.props)?pe(()=>{_(),e.el.__isMounted=!0},a):_()}else{if(xl(e.props)&&!t.el.__isMounted)return void pe(()=>{ih.process(t,e,r,n,l,a,s,i,o,u),delete t.el.__isMounted},a);e.el=t.el,e.targetStart=t.targetStart;const z=e.anchor=t.anchor,it=e.target=t.target,E=e.targetAnchor=t.targetAnchor,_=Dn(t.props),b=_?r:it,R=_?z:E;if(s==="svg"||Cl(it)?s="svg":(s==="mathml"||Rl(it))&&(s="mathml"),J?(f(t.dynamicChildren,J,b,l,a,s,i),sl(t,e,!0)):o||p(t,e,b,R,l,a,s,i,!1),P)_?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ai(e,r,z,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const B=e.target=No(e.props,m);B&&Ai(e,B,null,u,0)}else _&&Ai(e,it,E,u,1);ki(e,P)}},remove(t,e,r,{um:n,o:{remove:l}},a){const{shapeFlag:s,children:i,anchor:o,targetStart:u,targetAnchor:c,target:p,props:f}=t;if(p&&(l(u),l(c)),a&&l(o),16&s){const g=a||!Dn(f);for(let m=0;m{const e=t.subTree;return e.component?sh(e.component):e};function ah(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==me){e=r;break}}return e}const Md={name:"BaseTransition",props:oh,setup(t,{slots:e}){const r=Ph(),n=function(){const l={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return el(()=>{l.isMounted=!0}),dh(()=>{l.isUnmounting=!0}),l}();return()=>{const l=e.default&&uh(e.default(),!0);if(!l||!l.length)return;const a=ah(l),s=Rt(t),{mode:i}=s;if(n.isLeaving)return Uo(a);const o=Ml(a);if(!o)return Uo(a);let u=gs(o,s,n,r,p=>u=p);o.type!==me&&ri(o,u);let c=r.subTree&&Ml(r.subTree);if(c&&c.type!==me&&!Kr(o,c)&&sh(r).type!==me){let p=gs(c,s,n,r);if(ri(c,p),i==="out-in"&&o.type!==me)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,8&r.job.flags||r.update(),delete p.afterLeave,c=void 0},Uo(a);i==="in-out"&&o.type!==me?p.delayLeave=(f,g,m)=>{lh(n,c)[String(c.key)]=c,f[Ar]=()=>{g(),f[Ar]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function lh(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function gs(t,e,r,n,l){const{appear:a,mode:s,persisted:i=!1,onBeforeEnter:o,onEnter:u,onAfterEnter:c,onEnterCancelled:p,onBeforeLeave:f,onLeave:g,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:w,onAppear:P,onAfterAppear:O,onAppearCancelled:F}=e,J=String(t.key),z=lh(r,t),it=(b,R)=>{b&&Ue(b,n,9,R)},E=(b,R)=>{const B=R[1];it(b,R),It(b)?b.every(et=>et.length<=1)&&B():b.length<=1&&B()},_={mode:s,persisted:i,beforeEnter(b){let R=o;if(!r.isMounted){if(!a)return;R=w||o}b[Ar]&&b[Ar](!0);const B=z[J];B&&Kr(t,B)&&B.el[Ar]&&B.el[Ar](),it(R,[b])},enter(b){let R=u,B=c,et=p;if(!r.isMounted){if(!a)return;R=P||u,B=O||c,et=F||p}let st=!1;const q=b[Ii]=X=>{st||(st=!0,it(X?et:B,[b]),_.delayedLeave&&_.delayedLeave(),b[Ii]=void 0)};R?E(R,[b,q]):q()},leave(b,R){const B=String(t.key);if(b[Ii]&&b[Ii](!0),r.isUnmounting)return R();it(f,[b]);let et=!1;const st=b[Ar]=q=>{et||(et=!0,R(),it(q?y:m,[b]),b[Ar]=void 0,z[B]===t&&delete z[B])};z[B]=t,g?E(g,[b,st]):st()},clone(b){const R=gs(b,e,r,n,l);return l&&l(R),R}};return _}function Uo(t){if(mo(t))return(t=Mr(t)).children=null,t}function Ml(t){if(!mo(t))return nh(t.type)&&t.children?ah(t.children):t;const{shapeFlag:e,children:r}=t;if(r){if(16&e)return r[0];if(32&e&&Ot(r.default))return r.default()}}function ri(t,e){6&t.shapeFlag&&t.component?(t.transition=e,ri(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function uh(t,e=!1,r){let n=[],l=0;for(let a=0;a1)for(let a=0;aJi(m,e&&(It(e)?e[y]:e),r,n,l));if(mn(n)&&!l)return void(512&n.shapeFlag&&n.type.__asyncResolved&&n.component.subTree.component&&Ji(t,e,r,n.component.subTree));const a=4&n.shapeFlag?vo(n.component):n.el,s=l?null:a,{i,r:o}=t,u=e&&e.r,c=i.refs===$t?i.refs={}:i.refs,p=i.setupState,f=Rt(p),g=p===$t?()=>!1:m=>jt(f,m);if(u!=null&&u!==o&&(Qt(u)?(c[u]=null,g(u)&&(p[u]=null)):ee(u)&&(u.value=null)),Ot(o))pi(o,i,12,[s,c]);else{const m=Qt(o),y=ee(o);if(m||y){const w=()=>{if(t.f){const P=m?g(o)?p[o]:c[o]:o.value;l?It(P)&&$a(P,a):It(P)?P.includes(a)||P.push(a):m?(c[o]=[a],g(o)&&(p[o]=c[o])):(o.value=[a],t.k&&(c[t.k]=o.value))}else m?(c[o]=s,g(o)&&(p[o]=s)):y&&(o.value=s,t.k&&(c[t.k]=s))};s?(w.id=-1,pe(w,r)):w()}}}Ki().requestIdleCallback,Ki().cancelIdleCallback;const mn=t=>!!t.type.__asyncLoader,mo=t=>t.type.__isKeepAlive;function Bd(t,e){fh(t,"a",e)}function jd(t,e){fh(t,"da",e)}function fh(t,e,r=ie){const n=t.__wdc||(t.__wdc=()=>{let l=r;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(bo(e,n,r),r){let l=r.parent;for(;l&&l.parent;)mo(l.parent.vnode)&&Ld(n,e,r,l),l=l.parent}}function Ld(t,e,r,n){const l=bo(e,t,n,!0);rl(()=>{$a(n[e],l)},r)}function bo(t,e,r=ie,n=!1){if(r){const l=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...s)=>{Rr();const i=di(r),o=Ue(e,r,t,s);return i(),Pr(),o});return n?l.unshift(a):l.push(a),a}}const cr=t=>(e,r=ie)=>{oi&&t!=="sp"||bo(t,(...n)=>e(...n),r)},Nd=cr("bm"),el=cr("m"),ph=cr("bu"),Ud=cr("u"),dh=cr("bum"),rl=cr("um"),Dd=cr("sp"),Fd=cr("rtg"),Wd=cr("rtc");function $d(t,e=ie){bo("ec",t,e)}const nl="components";function Lb(t,e){return il(nl,t,!0,e)||t}const gh=Symbol.for("v-ndc");function Nb(t){return Qt(t)?il(nl,t,!1)||t:t||gh}function Ub(t){return il("directives",t)}function il(t,e,r=!0,n=!1){const l=ne||ie;if(l){const a=l.type;if(t===nl){const i=cg(a,!1);if(i&&(i===e||i===Re(e)||i===co(Re(e))))return a}const s=Bl(l[t]||a[t],e)||Bl(l.appContext[t],e);return!s&&n?a:s}}function Bl(t,e){return t&&(t[e]||t[Re(e)]||t[co(Re(e))])}function Db(t,e,r,n){let l;const a=r,s=It(t);if(s||Qt(t)){let i=!1;s&&xr(t)&&(i=!Ce(t),t=po(t)),l=new Array(t.length);for(let o=0,u=t.length;oe(i,o,void 0,a));else{const i=Object.keys(t);l=new Array(i.length);for(let o=0,u=i.length;o{const a=n.fn(...l);return a&&(a.key=n.key),a}:n.fn)}return t}function Wb(t,e,r={},n,l){if(ne.ce||ne.parent&&mn(ne.parent)&&ne.parent.ce)return e!=="default"&&(r.name=e),ws(),_s(ve,null,[we("slot",r,n&&n())],64);let a=t[e];a&&a._c&&(a._d=!1),ws();const s=a&&mh(a(r)),i=r.key||s&&s.key,o=_s(ve,{key:(i&&!ur(i)?i:`_${e}`)+(!s&&n?"_fb":"")},s||(n?n():[]),s&&t._===1?64:-2);return!l&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),a&&a._c&&(a._d=!0),o}function mh(t){return t.some(e=>!ii(e)||e.type!==me&&!(e.type===ve&&!mh(e.children)))?t:null}const ms=t=>t?Mh(t)?vo(t):ms(t.parent):null,zn=oe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ms(t.parent),$root:t=>ms(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>yh(t),$forceUpdate:t=>t.f||(t.f=()=>{tl(t.update)}),$nextTick:t=>t.n||(t.n=Za.bind(t.proxy)),$watch:t=>Zd.bind(t)}),Do=(t,e)=>t!==$t&&!t.__isScriptSetup&&jt(t,e),Vd={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:l,props:a,accessCache:s,type:i,appContext:o}=t;let u;if(e[0]!=="$"){const g=s[e];if(g!==void 0)switch(g){case 1:return n[e];case 2:return l[e];case 4:return r[e];case 3:return a[e]}else{if(Do(n,e))return s[e]=1,n[e];if(l!==$t&&jt(l,e))return s[e]=2,l[e];if((u=t.propsOptions[0])&&jt(u,e))return s[e]=3,a[e];if(r!==$t&&jt(r,e))return s[e]=4,r[e];bs&&(s[e]=0)}}const c=zn[e];let p,f;return c?(e==="$attrs"&&ce(t.attrs,0,""),c(t)):(p=i.__cssModules)&&(p=p[e])?p:r!==$t&&jt(r,e)?(s[e]=4,r[e]):(f=o.config.globalProperties,jt(f,e)?f[e]:void 0)},set({_:t},e,r){const{data:n,setupState:l,ctx:a}=t;return Do(l,e)?(l[e]=r,!0):n!==$t&&jt(n,e)?(n[e]=r,!0):!jt(t.props,e)&&(e[0]!=="$"||!(e.slice(1)in t))&&(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:l,propsOptions:a}},s){let i;return!!r[s]||t!==$t&&jt(t,s)||Do(e,s)||(i=a[0])&&jt(i,s)||jt(n,s)||jt(zn,s)||jt(l.config.globalProperties,s)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:jt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function jl(t){return It(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let bs=!0;function qd(t){const e=yh(t),r=t.proxy,n=t.ctx;bs=!1,e.beforeCreate&&Ll(e.beforeCreate,t,"bc");const{data:l,computed:a,methods:s,watch:i,provide:o,inject:u,created:c,beforeMount:p,mounted:f,beforeUpdate:g,updated:m,activated:y,deactivated:w,beforeDestroy:P,beforeUnmount:O,destroyed:F,unmounted:J,render:z,renderTracked:it,renderTriggered:E,errorCaptured:_,serverPrefetch:b,expose:R,inheritAttrs:B,components:et,directives:st,filters:q}=e;if(u&&function(rt,W){It(rt)&&(rt=ys(rt));for(const ct in rt){const Q=rt[ct];let $;$=zt(Q)?"default"in Q?Ke(Q.from||ct,Q.default,!0):Ke(Q.from||ct):Ke(Q),ee($)?Object.defineProperty(W,ct,{enumerable:!0,configurable:!0,get:()=>$.value,set:j=>$.value=j}):W[ct]=$}}(u,n,null),s)for(const rt in s){const W=s[rt];Ot(W)&&(n[rt]=W.bind(r))}if(l){const rt=l.call(r,r);zt(rt)&&(t.data=fi(rt))}if(bs=!0,a)for(const rt in a){const W=a[rt],ct=Ot(W)?W.bind(r,r):Ot(W.get)?W.get.bind(r,r):ze,Q=!Ot(W)&&Ot(W.set)?W.set.bind(r):ze,$=Te({get:ct,set:Q});Object.defineProperty(n,rt,{enumerable:!0,configurable:!0,get:()=>$.value,set:j=>$.value=j})}if(i)for(const rt in i)bh(i[rt],n,r,rt);if(o){const rt=Ot(o)?o.call(r):o;Reflect.ownKeys(rt).forEach(W=>{Bi(W,rt[W])})}function X(rt,W){It(W)?W.forEach(ct=>rt(ct.bind(r))):W&&rt(W.bind(r))}if(c&&Ll(c,t,"c"),X(Nd,p),X(el,f),X(ph,g),X(Ud,m),X(Bd,y),X(jd,w),X($d,_),X(Wd,it),X(Fd,E),X(dh,O),X(rl,J),X(Dd,b),It(R))if(R.length){const rt=t.exposed||(t.exposed={});R.forEach(W=>{Object.defineProperty(rt,W,{get:()=>r[W],set:ct=>r[W]=ct})})}else t.exposed||(t.exposed={});z&&t.render===ze&&(t.render=z),B!=null&&(t.inheritAttrs=B),et&&(t.components=et),st&&(t.directives=st),b&&hh(t)}function Ll(t,e,r){Ue(It(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function bh(t,e,r,n){let l=n.includes(".")?Ih(r,n):()=>r[n];if(Qt(t)){const a=e[t];Ot(a)&&_n(l,a)}else if(Ot(t))_n(l,t.bind(r));else if(zt(t))if(It(t))t.forEach(a=>bh(a,e,r,n));else{const a=Ot(t.handler)?t.handler.bind(r):e[t.handler];Ot(a)&&_n(l,a,t)}}function yh(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:l,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,i=a.get(e);let o;return i?o=i:l.length||r||n?(o={},l.length&&l.forEach(u=>Xi(o,u,s,!0)),Xi(o,e,s)):o=e,zt(e)&&a.set(e,o),o}function Xi(t,e,r,n=!1){const{mixins:l,extends:a}=e;a&&Xi(t,a,r,!0),l&&l.forEach(s=>Xi(t,s,r,!0));for(const s in e)if(!(n&&s==="expose")){const i=Hd[s]||r&&r[s];t[s]=i?i(t[s],e[s]):e[s]}return t}const Hd={data:Nl,props:Ul,emits:Ul,methods:Mn,computed:Mn,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:Mn,directives:Mn,watch:function(t,e){if(!t)return e;if(!e)return t;const r=oe(Object.create(null),t);for(const n in e)r[n]=fe(t[n],e[n]);return r},provide:Nl,inject:function(t,e){return Mn(ys(t),ys(e))}};function Nl(t,e){return e?t?function(){return oe(Ot(t)?t.call(this,this):t,Ot(e)?e.call(this,this):e)}:e:t}function ys(t){if(It(t)){const e={};for(let r=0;r(a.has(u)||(u&&Ot(u.install)?(a.add(u),u.install(o,...c)):Ot(u)&&(a.add(u),u(o,...c))),o),mixin:u=>(l.mixins.includes(u)||l.mixins.push(u),o),component:(u,c)=>c?(l.components[u]=c,o):l.components[u],directive:(u,c)=>c?(l.directives[u]=c,o):l.directives[u],mount(u,c,p){if(!i){const f=o._ceVNode||we(r,n);return f.appContext=l,p===!0?p="svg":p===!1&&(p=void 0),t(f,u,p),i=!0,o._container=u,u.__vue_app__=o,vo(f.component)}},onUnmount(u){s.push(u)},unmount(){i&&(Ue(s,o._instance,16),t(null,o._container),delete o._container.__vue_app__)},provide:(u,c)=>(l.provides[u]=c,o),runWithContext(u){const c=Jr;Jr=o;try{return u()}finally{Jr=c}}};return o}}let Jr=null;function Bi(t,e){if(ie){let r=ie.provides;const n=ie.parent&&ie.parent.provides;n===r&&(r=ie.provides=Object.create(n)),r[t]=e}}function Ke(t,e,r=!1){const n=ie||ne;if(n||Jr){const l=Jr?Jr._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&t in l)return l[t];if(arguments.length>1)return r&&Ot(e)?e.call(n&&n.proxy):e}}const wh={},Dl=()=>Object.create(wh),_h=t=>Object.getPrototypeOf(t)===wh;function Fl(t,e,r,n){const[l,a]=t.propsOptions;let s,i=!1;if(e)for(let o in e){if($n(o))continue;const u=e[o];let c;l&&jt(l,c=Re(o))?a&&a.includes(c)?(s||(s={}))[c]=u:r[c]=u:Zi(t.emitsOptions,o)||o in n&&u===n[o]||(n[o]=u,i=!0)}if(a){const o=Rt(r),u=s||$t;for(let c=0;c{o=!0;const[f,g]=Eh(p,e,!0);oe(s,f),g&&i.push(...g)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!a&&!o)return zt(t)&&n.set(t,bn),bn;if(It(a))for(let c=0;ct[0]==="_"||t==="$stable",ol=t=>It(t)?t.map($e):[$e(t)],Qd=(t,e,r)=>{if(e._n)return e;const n=Pd((...l)=>ol(e(...l)),r);return n._c=!1,n},$l=(t,e,r)=>{const n=t._ctx;for(const l in t){if(Sh(l))continue;const a=t[l];if(Ot(a))e[l]=Qd(0,a,n);else if(a!=null){const s=ol(a);e[l]=()=>s}}},Vl=(t,e)=>{const r=ol(e);t.slots.default=()=>r},ql=(t,e,r)=>{for(const n in e)(r||n!=="_")&&(t[n]=e[n])},pe=function(t,e){e&&e.pendingBranch?It(t)?e.effects.push(...t):e.effects.push(t):Xc(t)};function Yd(t){return function(e){Ki().__VUE__=!0;const{insert:r,remove:n,patchProp:l,createElement:a,createText:s,createComment:i,setText:o,setElementText:u,parentNode:c,nextSibling:p,setScopeId:f=ze,insertStaticContent:g}=e,m=(x,D,A,Y=null,h=null,d=null,v=void 0,T=null,C=!!D.dynamicChildren)=>{if(x===D)return;x&&!Kr(x,D)&&(Y=dt(x),j(x,h,d,!0),x=null),D.patchFlag===-2&&(C=!1,D.dynamicChildren=null);const{type:I,ref:K,shapeFlag:at}=D;switch(I){case yo:y(x,D,A,Y);break;case me:w(x,D,A,Y);break;case ji:x==null&&P(D,A,Y,v);break;case ve:B(x,D,A,Y,h,d,v,T,C);break;default:1&at?J(x,D,A,Y,h,d,v,T,C):6&at?et(x,D,A,Y,h,d,v,T,C):(64&at||128&at)&&I.process(x,D,A,Y,h,d,v,T,C,Z)}K!=null&&h&&Ji(K,x&&x.ref,d,D||x,!D)},y=(x,D,A,Y)=>{if(x==null)r(D.el=s(D.children),A,Y);else{const h=D.el=x.el;D.children!==x.children&&o(h,D.children)}},w=(x,D,A,Y)=>{x==null?r(D.el=i(D.children||""),A,Y):D.el=x.el},P=(x,D,A,Y)=>{[x.el,x.anchor]=g(x.children,D,A,Y,x.el,x.anchor)},O=({el:x,anchor:D},A,Y)=>{let h;for(;x&&x!==D;)h=p(x),r(x,A,Y),x=h;r(D,A,Y)},F=({el:x,anchor:D})=>{let A;for(;x&&x!==D;)A=p(x),n(x),x=A;n(D)},J=(x,D,A,Y,h,d,v,T,C)=>{D.type==="svg"?v="svg":D.type==="math"&&(v="mathml"),x==null?z(D,A,Y,h,d,v,T,C):_(x,D,h,d,v,T,C)},z=(x,D,A,Y,h,d,v,T)=>{let C,I;const{props:K,shapeFlag:at,transition:lt,dirs:ht}=x;if(C=x.el=a(x.type,d,K&&K.is,K),8&at?u(C,x.children):16&at&&E(x.children,C,null,Y,h,Fo(x,d),v,T),ht&&Ur(x,null,Y,"created"),it(C,x,x.scopeId,v,Y),K){for(const M in K)M==="value"||$n(M)||l(C,M,null,K[M],d,Y);"value"in K&&l(C,"value",null,K.value,d),(I=K.onVnodeBeforeMount)&&Fe(I,Y,x)}ht&&Ur(x,null,Y,"beforeMount");const ut=function(M,H){return(!M||M&&!M.pendingBranch)&&H&&!H.persisted}(h,lt);ut&<.beforeEnter(C),r(C,D,A),((I=K&&K.onVnodeMounted)||ut||ht)&&pe(()=>{I&&Fe(I,Y,x),ut&<.enter(C),ht&&Ur(x,null,Y,"mounted")},h)},it=(x,D,A,Y,h)=>{if(A&&f(x,A),Y)for(let d=0;d{for(let I=C;I{const T=D.el=x.el;let{patchFlag:C,dynamicChildren:I,dirs:K}=D;C|=16&x.patchFlag;const at=x.props||$t,lt=D.props||$t;let ht;if(A&&Dr(A,!1),(ht=lt.onVnodeBeforeUpdate)&&Fe(ht,A,D,x),K&&Ur(D,x,A,"beforeUpdate"),A&&Dr(A,!0),(at.innerHTML&<.innerHTML==null||at.textContent&<.textContent==null)&&u(T,""),I?b(x.dynamicChildren,I,T,A,Y,Fo(D,h),d):v||W(x,D,T,null,A,Y,Fo(D,h),d,!1),C>0){if(16&C)R(T,at,lt,A,h);else if(2&C&&at.class!==lt.class&&l(T,"class",null,lt.class,h),4&C&&l(T,"style",at.style,lt.style,h),8&C){const ut=D.dynamicProps;for(let M=0;M{ht&&Fe(ht,A,D,x),K&&Ur(D,x,A,"updated")},Y)},b=(x,D,A,Y,h,d,v)=>{for(let T=0;T{if(D!==A){if(D!==$t)for(const d in D)$n(d)||d in A||l(x,d,D[d],null,h,Y);for(const d in A){if($n(d))continue;const v=A[d],T=D[d];v!==T&&d!=="value"&&l(x,d,T,v,h,Y)}"value"in A&&l(x,"value",D.value,A.value,h)}},B=(x,D,A,Y,h,d,v,T,C)=>{const I=D.el=x?x.el:s(""),K=D.anchor=x?x.anchor:s("");let{patchFlag:at,dynamicChildren:lt,slotScopeIds:ht}=D;ht&&(T=T?T.concat(ht):ht),x==null?(r(I,A,Y),r(K,A,Y),E(D.children||[],A,K,h,d,v,T,C)):at>0&&64&at&<&&x.dynamicChildren?(b(x.dynamicChildren,lt,A,h,d,v,T),(D.key!=null||h&&D===h.subTree)&&sl(x,D,!0)):W(x,D,A,K,h,d,v,T,C)},et=(x,D,A,Y,h,d,v,T,C)=>{D.slotScopeIds=T,x==null?512&D.shapeFlag?h.ctx.activate(D,A,Y,v,C):st(D,A,Y,h,d,v,C):q(x,D,C)},st=(x,D,A,Y,h,d,v)=>{const T=x.component=function(C,I,K){const at=C.type,lt=(I?I.appContext:C.appContext)||ag,ht={uid:lg++,vnode:C,type:at,parent:I,appContext:lt,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:I?I.provides:Object.create(lt.provides),ids:I?I.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Eh(at,lt),emitsOptions:Oh(at,lt),emit:null,emitted:null,propsDefaults:$t,inheritAttrs:at.inheritAttrs,ctx:$t,data:$t,props:$t,attrs:$t,slots:$t,refs:$t,setupState:$t,setupContext:null,suspense:K,suspenseId:K?K.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return ht.ctx={_:ht},ht.root=I?I.root:ht,ht.emit=eg.bind(null,ht),C.ce&&C.ce(ht),ht}(x,Y,h);if(mo(x)&&(T.ctx.renderer=Z),function(C,I=!1,K=!1){I&&Es(I);const{props:at,children:lt}=C.vnode,ht=Mh(C);(function(M,H,nt,S=!1){const k={},ot=Dl();M.propsDefaults=Object.create(null),Fl(M,H,k,ot);for(const pt in M.propsOptions[0])pt in k||(k[pt]=void 0);nt?M.props=S?k:zc(k):M.type.props?M.props=k:M.props=ot,M.attrs=ot})(C,at,ht,I),((M,H,nt)=>{const S=M.slots=Dl();if(32&M.vnode.shapeFlag){const k=H._;k?(ql(S,H,nt),nt&&kc(S,"_",k,!0)):$l(H,S)}else H&&Vl(M,H)})(C,lt,K);const ut=ht?function(M,H){const nt=M.type;M.accessCache=Object.create(null),M.proxy=new Proxy(M.ctx,Vd);const{setup:S}=nt;if(S){Rr();const k=M.setupContext=S.length>1?function(mt){const Tt=Et=>{mt.exposed=Et||{}};return{attrs:new Proxy(mt.attrs,ug),slots:mt.slots,emit:mt.emit,expose:Tt}}(M):null,ot=di(M),pt=pi(S,M,0,[M.props,k]),wt=Ec(pt);if(Pr(),ot(),!wt&&!M.sp||mn(M)||hh(M),wt){if(pt.then(Ql,Ql),H)return pt.then(mt=>{Yl(M,mt)}).catch(mt=>{go(mt,M,0)});M.asyncDep=pt}else Yl(M,pt)}else Bh(M)}(C,I):void 0;I&&Es(!1)}(T,!1,v),T.asyncDep){if(h&&h.registerDep(T,X,v),!x.el){const C=T.subTree=we(me);w(null,C,D,A)}}else X(T,x,D,A,h,d,v)},q=(x,D,A)=>{const Y=D.component=x.component;if(function(h,d,v){const{props:T,children:C,component:I}=h,{props:K,children:at,patchFlag:lt}=d,ht=I.emitsOptions;if(d.dirs||d.transition)return!0;if(!(v&<>=0))return!(!C&&!at||at&&at.$stable)||T!==K&&(T?!K||Kl(T,K,ht):!!K);if(1024<)return!0;if(16<)return T?Kl(T,K,ht):!!K;if(8<){const ut=d.dynamicProps;for(let M=0;M{const T=()=>{if(x.isMounted){let{next:at,bu:lt,u:ht,parent:ut,vnode:M}=x;{const ot=Ah(x);if(ot)return at&&(at.el=M.el,rt(x,at,v)),void ot.asyncDep.then(()=>{x.isUnmounted||T()})}let H,nt=at;Dr(x,!1),at?(at.el=M.el,rt(x,at,v)):at=M,lt&&Co(lt),(H=at.props&&at.props.onVnodeBeforeUpdate)&&Fe(H,ut,at,M),Dr(x,!0);const S=zl(x),k=x.subTree;x.subTree=S,m(k,S,c(k.el),dt(k),x,h,d),at.el=S.el,nt===null&&function({vnode:ot,parent:pt},wt){for(;pt;){const mt=pt.subTree;if(mt.suspense&&mt.suspense.activeBranch===ot&&(mt.el=ot.el),mt!==ot)break;(ot=pt.vnode).el=wt,pt=pt.parent}}(x,S.el),ht&&pe(ht,h),(H=at.props&&at.props.onVnodeUpdated)&&pe(()=>Fe(H,ut,at,M),h)}else{let at;const{el:lt,props:ht}=D,{bm:ut,m:M,parent:H,root:nt,type:S}=x,k=mn(D);Dr(x,!1),ut&&Co(ut),!k&&(at=ht&&ht.onVnodeBeforeMount)&&Fe(at,H,D),Dr(x,!0);{nt.ce&&nt.ce._injectChildStyle(S);const ot=x.subTree=zl(x);m(null,ot,A,Y,x,h,d),D.el=ot.el}if(M&&pe(M,h),!k&&(at=ht&&ht.onVnodeMounted)){const ot=D;pe(()=>Fe(at,H,ot),h)}(256&D.shapeFlag||H&&mn(H.vnode)&&256&H.vnode.shapeFlag)&&x.a&&pe(x.a,h),x.isMounted=!0,D=A=Y=null}};x.scope.on();const C=x.effect=new Pc(T);x.scope.off();const I=x.update=C.run.bind(C),K=x.job=C.runIfDirty.bind(C);K.i=x,K.id=x.uid,C.scheduler=()=>tl(K),Dr(x,!0),I()},rt=(x,D,A)=>{D.component=x;const Y=x.vnode.props;x.vnode=D,x.next=null,function(h,d,v,T){const{props:C,attrs:I,vnode:{patchFlag:K}}=h,at=Rt(C),[lt]=h.propsOptions;let ht=!1;if(!(T||K>0)||16&K){let ut;Fl(h,d,C,I)&&(ht=!0);for(const M in at)d&&(jt(d,M)||(ut=Br(M))!==M&&jt(d,ut))||(lt?!v||v[M]===void 0&&v[ut]===void 0||(C[M]=vs(lt,at,M,void 0,h,!0)):delete C[M]);if(I!==at)for(const M in I)d&&jt(d,M)||(delete I[M],ht=!0)}else if(8&K){const ut=h.vnode.dynamicProps;for(let M=0;M{const{vnode:T,slots:C}=h;let I=!0,K=$t;if(32&T.shapeFlag){const at=d._;at?v&&at===1?I=!1:ql(C,d,v):(I=!d.$stable,$l(d,C)),K=d}else d&&(Vl(h,d),K={default:1});if(I)for(const at in C)Sh(at)||K[at]!=null||delete C[at]})(x,D.children,A),Rr(),Tl(x),Pr()},W=(x,D,A,Y,h,d,v,T,C=!1)=>{const I=x&&x.children,K=x?x.shapeFlag:0,at=D.children,{patchFlag:lt,shapeFlag:ht}=D;if(lt>0){if(128<)return void Q(I,at,A,Y,h,d,v,T,C);if(256<)return void ct(I,at,A,Y,h,d,v,T,C)}8&ht?(16&K&&ft(I,h,d),at!==I&&u(A,at)):16&K?16&ht?Q(I,at,A,Y,h,d,v,T,C):ft(I,h,d,!0):(8&K&&u(A,""),16&ht&&E(at,A,Y,h,d,v,T,C))},ct=(x,D,A,Y,h,d,v,T,C)=>{D=D||bn;const I=(x=x||bn).length,K=D.length,at=Math.min(I,K);let lt;for(lt=0;ltK?ft(x,h,d,!0,!1,at):E(D,A,Y,h,d,v,T,C,at)},Q=(x,D,A,Y,h,d,v,T,C)=>{let I=0;const K=D.length;let at=x.length-1,lt=K-1;for(;I<=at&&I<=lt;){const ht=x[I],ut=D[I]=C?kr(D[I]):$e(D[I]);if(!Kr(ht,ut))break;m(ht,ut,A,null,h,d,v,T,C),I++}for(;I<=at&&I<=lt;){const ht=x[at],ut=D[lt]=C?kr(D[lt]):$e(D[lt]);if(!Kr(ht,ut))break;m(ht,ut,A,null,h,d,v,T,C),at--,lt--}if(I>at){if(I<=lt){const ht=lt+1,ut=htlt)for(;I<=at;)j(x[I],h,d,!0),I++;else{const ht=I,ut=I,M=new Map;for(I=ut;I<=lt;I++){const mt=D[I]=C?kr(D[I]):$e(D[I]);mt.key!=null&&M.set(mt.key,I)}let H,nt=0;const S=lt-ut+1;let k=!1,ot=0;const pt=new Array(S);for(I=0;I=S){j(mt,h,d,!0);continue}let Tt;if(mt.key!=null)Tt=M.get(mt.key);else for(H=ut;H<=lt;H++)if(pt[H-ut]===0&&Kr(mt,D[H])){Tt=H;break}Tt===void 0?j(mt,h,d,!0):(pt[Tt-ut]=I+1,Tt>=ot?ot=Tt:k=!0,m(mt,D[Tt],A,null,h,d,v,T,C),nt++)}const wt=k?function(mt){const Tt=mt.slice(),Et=[0];let Lt,xt,Nt,Mt,Ft;const kt=mt.length;for(Lt=0;Lt>1,mt[Et[Ft]]0&&(Tt[Lt]=Et[Nt-1]),Et[Nt]=Lt)}}for(Nt=Et.length,Mt=Et[Nt-1];Nt-- >0;)Et[Nt]=Mt,Mt=Tt[Mt];return Et}(pt):bn;for(H=wt.length-1,I=S-1;I>=0;I--){const mt=ut+I,Tt=D[mt],Et=mt+1{const{el:d,type:v,transition:T,children:C,shapeFlag:I}=x;if(6&I)return void $(x.component.subTree,D,A,Y);if(128&I)return void x.suspense.move(D,A,Y);if(64&I)return void v.move(x,D,A,Z);if(v===ve){r(d,D,A);for(let K=0;KT.enter(d),h);else{const{leave:K,delayLeave:at,afterLeave:lt}=T,ht=()=>r(d,D,A),ut=()=>{K(d,()=>{ht(),lt&<()})};at?at(d,ht,ut):ut()}else r(d,D,A)},j=(x,D,A,Y=!1,h=!1)=>{const{type:d,props:v,ref:T,children:C,dynamicChildren:I,shapeFlag:K,patchFlag:at,dirs:lt,cacheIndex:ht}=x;if(at===-2&&(h=!1),T!=null&&Ji(T,null,A,x,!0),ht!=null&&(D.renderCache[ht]=void 0),256&K)return void D.ctx.deactivate(x);const ut=1&K&<,M=!mn(x);let H;if(M&&(H=v&&v.onVnodeBeforeUnmount)&&Fe(H,D,x),6&K)U(x.component,A,Y);else{if(128&K)return void x.suspense.unmount(A,Y);ut&&Ur(x,null,D,"beforeUnmount"),64&K?x.type.remove(x,D,A,Z,Y):I&&!I.hasOnce&&(d!==ve||at>0&&64&at)?ft(I,D,A,!1,!0):(d===ve&&384&at||!h&&16&K)&&ft(C,D,A),Y&&N(x)}(M&&(H=v&&v.onVnodeUnmounted)||ut)&&pe(()=>{H&&Fe(H,D,x),ut&&Ur(x,null,D,"unmounted")},A)},N=x=>{const{type:D,el:A,anchor:Y,transition:h}=x;if(D===ve)return void G(A,Y);if(D===ji)return void F(x);const d=()=>{n(A),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(1&x.shapeFlag&&h&&!h.persisted){const{leave:v,delayLeave:T}=h,C=()=>v(A,d);T?T(x.el,d,C):C()}else d()},G=(x,D)=>{let A;for(;x!==D;)A=p(x),n(x),x=A;n(D)},U=(x,D,A)=>{const{bum:Y,scope:h,job:d,subTree:v,um:T,m:C,a:I}=x;Hl(C),Hl(I),Y&&Co(Y),h.stop(),d&&(d.flags|=8,j(v,x,D,A)),T&&pe(T,D),pe(()=>{x.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},ft=(x,D,A,Y=!1,h=!1,d=0)=>{for(let v=d;v{if(6&x.shapeFlag)return dt(x.component.subTree);if(128&x.shapeFlag)return x.suspense.next();const D=p(x.anchor||x.el),A=D&&D[rh];return A?p(A):D};let gt=!1;const L=(x,D,A)=>{x==null?D._vnode&&j(D._vnode,null,null,!0):m(D._vnode||null,x,D,null,null,null,A),D._vnode=x,gt||(gt=!0,Tl(),Zc(),gt=!1)},Z={p:m,um:j,m:$,r:N,mt:st,mc:E,pc:W,pbc:b,n:dt,o:e};return{render:L,hydrate:void 0,createApp:Kd(L)}}(t)}function Fo({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Dr({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function sl(t,e,r=!1){const n=t.children,l=e.children;if(It(n)&&It(l))for(let a=0;aKe(Jd);function _n(t,e,r){return kh(t,e,r)}function kh(t,e,r=$t){const{immediate:n,deep:l,flush:a,once:s}=r,i=oe({},r),o=e&&n||!e&&a!=="post";let u;if(oi){if(a==="sync"){const g=Xd();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!o){const g=()=>{};return g.stop=ze,g.resume=ze,g.pause=ze,g}}const c=ie;i.call=(g,m,y)=>Ue(g,c,m,y);let p=!1;a==="post"?i.scheduler=g=>{pe(g,c&&c.suspense)}:a!=="sync"&&(p=!0,i.scheduler=(g,m)=>{m?g():tl(g)}),i.augmentJob=g=>{e&&(g.flags|=4),p&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const f=Rd(t,e,i);return oi&&(u?u.push(f):o&&f()),f}function Zd(t,e,r){const n=this.proxy,l=Qt(t)?t.includes(".")?Ih(n,t):()=>n[t]:t.bind(n,n);let a;Ot(e)?a=e:(a=e.handler,r=e);const s=di(this),i=kh(l,a.bind(n),r);return s(),i}function Ih(t,e){const r=e.split(".");return()=>{let n=t;for(let l=0;le==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Re(e)}Modifiers`]||t[`${Br(e)}Modifiers`];function eg(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||$t;let l=r;const a=e.startsWith("update:"),s=a&&tg(n,e.slice(7));let i;s&&(s.trim&&(l=r.map(c=>Qt(c)?c.trim():c)),s.number&&(l=r.map(nd)));let o=n[i=xo(e)]||n[i=xo(Re(e))];!o&&a&&(o=n[i=xo(Br(e))]),o&&Ue(o,t,6,l);const u=n[i+"Once"];if(u){if(t.emitted){if(t.emitted[i])return}else t.emitted={};t.emitted[i]=!0,Ue(u,t,6,l)}}function Oh(t,e,r=!1){const n=e.emitsCache,l=n.get(t);if(l!==void 0)return l;const a=t.emits;let s={},i=!1;if(!Ot(t)){const o=u=>{const c=Oh(u,e,!0);c&&(i=!0,oe(s,c))};!r&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}return a||i?(It(a)?a.forEach(o=>s[o]=null):oe(s,a),zt(t)&&n.set(t,s),s):(zt(t)&&n.set(t,null),null)}function Zi(t,e){return!(!t||!ao(e))&&(e=e.slice(2).replace(/Once$/,""),jt(t,e[0].toLowerCase()+e.slice(1))||jt(t,Br(e))||jt(t,e))}function zl(t){const{type:e,vnode:r,proxy:n,withProxy:l,propsOptions:[a],slots:s,attrs:i,emit:o,render:u,renderCache:c,props:p,data:f,setupState:g,ctx:m,inheritAttrs:y}=t,w=Yi(t);let P,O;try{if(4&r.shapeFlag){const J=l||n,z=J;P=$e(u.call(z,J,c,p,g,f,m)),O=i}else{const J=e;P=$e(J.length>1?J(p,{attrs:i,slots:s,emit:o}):J(p,null)),O=e.props?i:rg(i)}}catch(J){Kn.length=0,go(J,t,1),P=we(me)}let F=P;if(O&&y!==!1){const J=Object.keys(O),{shapeFlag:z}=F;J.length&&7&z&&(a&&J.some(Wa)&&(O=ng(O,a)),F=Mr(F,O,!1,!0))}return r.dirs&&(F=Mr(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(r.dirs):r.dirs),r.transition&&ri(F,r.transition),P=F,Yi(w),P}const rg=t=>{let e;for(const r in t)(r==="class"||r==="style"||ao(r))&&((e||(e={}))[r]=t[r]);return e},ng=(t,e)=>{const r={};for(const n in t)Wa(n)&&n.slice(9)in e||(r[n]=t[n]);return r};function Kl(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let l=0;lt.__isSuspense,ve=Symbol.for("v-fgt"),yo=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),ji=Symbol.for("v-stc"),Kn=[];let Ae=null;function ws(t=!1){Kn.push(Ae=t?null:[])}let ni=1;function Gl(t,e=!1){ni+=t,t<0&&Ae&&e&&(Ae.hasOnce=!0)}function xh(t){return t.dynamicChildren=ni>0?Ae||bn:null,Kn.pop(),Ae=Kn[Kn.length-1]||null,ni>0&&Ae&&Ae.push(t),t}function $b(t,e,r,n,l,a){return xh(Rh(t,e,r,n,l,a,!0))}function _s(t,e,r,n,l){return xh(we(t,e,r,n,l,!0))}function ii(t){return!!t&&t.__v_isVNode===!0}function Kr(t,e){return t.type===e.type&&t.key===e.key}const Ch=({key:t})=>t??null,Li=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Qt(t)||ee(t)||Ot(t)?{i:ne,r:t,k:e,f:!!r}:t:null);function Rh(t,e=null,r=null,n=0,l=null,a=t===ve?0:1,s=!1,i=!1){const o={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ch(e),ref:e&&Li(e),scopeId:eh,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ne};return i?(al(o,r),128&a&&t.normalize(o)):r&&(o.shapeFlag|=Qt(r)?8:16),ni>0&&!s&&Ae&&(o.patchFlag>0||6&a)&&o.patchFlag!==32&&Ae.push(o),o}const we=function(t,e=null,r=null,n=0,l=null,a=!1){if(t&&t!==gh||(t=me),ii(t)){const o=Mr(t,e,!0);return r&&al(o,r),ni>0&&!a&&Ae&&(6&o.shapeFlag?Ae[Ae.indexOf(t)]=o:Ae.push(o)),o.patchFlag=-2,o}s=t,Ot(s)&&"__vccOpts"in s&&(t=t.__vccOpts);var s;if(e){e=ig(e);let{class:o,style:u}=e;o&&!Qt(o)&&(e.class=fo(o)),zt(u)&&(Ya(u)&&!It(u)&&(u=oe({},u)),e.style=ho(u))}const i=Qt(t)?1:Th(t)?128:nh(t)?64:zt(t)?4:Ot(t)?2:0;return Rh(t,e,r,n,l,i,a,!0)};function ig(t){return t?Ya(t)||_h(t)?oe({},t):t:null}function Mr(t,e,r=!1,n=!1){const{props:l,ref:a,patchFlag:s,children:i,transition:o}=t,u=e?sg(l||{},e):l,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Ch(u),ref:e&&e.ref?r&&a?It(a)?a.concat(Li(e)):[a,Li(e)]:Li(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ve?s===-1?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:o,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Mr(t.ssContent),ssFallback:t.ssFallback&&Mr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return o&&n&&ri(c,o.clone(c)),c}function og(t=" ",e=0){return we(yo,null,t,e)}function Vb(t="",e=!1){return e?(ws(),_s(me,null,t)):we(me,null,t)}function $e(t){return t==null||typeof t=="boolean"?we(me):It(t)?we(ve,null,t.slice()):ii(t)?kr(t):we(yo,null,String(t))}function kr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Mr(t)}function al(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(It(e))r=16;else if(typeof e=="object"){if(65&n){const l=e.default;return void(l&&(l._c&&(l._d=!1),al(t,l()),l._c&&(l._d=!0)))}{r=32;const l=e._;l||_h(e)?l===3&&ne&&(ne.slots._===1?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=ne}}else Ot(e)?(e={default:e,_ctx:ne},r=32):(e=String(e),64&n?(r=16,e=[og(e)]):r=8);t.children=e,t.shapeFlag|=r}function sg(...t){const e={};for(let r=0;rie||ne;let to,Es;{const t=Ki(),e=(r,n)=>{let l;return(l=t[r])||(l=t[r]=[]),l.push(n),a=>{l.length>1?l.forEach(s=>s(a)):l[0](a)}};to=e("__VUE_INSTANCE_SETTERS__",r=>ie=r),Es=e("__VUE_SSR_SETTERS__",r=>oi=r)}const di=t=>{const e=ie;return to(t),t.scope.on(),()=>{t.scope.off(),to(e)}},Ql=()=>{ie&&ie.scope.off(),to(null)};function Mh(t){return 4&t.vnode.shapeFlag}let oi=!1;function Yl(t,e,r){Ot(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:zt(e)&&(t.setupState=Qc(e)),Bh(t)}function Bh(t,e,r){const n=t.type;t.render||(t.render=n.render||ze);{const l=di(t);Rr();try{qd(t)}finally{Pr(),l()}}}const ug={get:(t,e)=>(ce(t,0,""),t[e])};function vo(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Qc(Ja(t.exposed)),{get:(e,r)=>r in e?e[r]:r in zn?zn[r](t):void 0,has:(e,r)=>r in e||r in zn})):t.proxy}function cg(t,e=!0){return Ot(t)?t.displayName||t.name:t.name||e&&t.__name}const Te=(t,e)=>function(n,l,a=!1){let s,i;return Ot(n)?s=n:(s=n.get,i=n.set),new Cd(s,i,a)}(t,0,oi);function ll(t,e,r){const n=arguments.length;return n===2?zt(e)&&!It(e)?ii(e)?we(t,null,[e]):we(t,e):we(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ii(r)&&(r=[r]),we(t,e,r))}const hg="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ss;const Jl=typeof window<"u"&&window.trustedTypes;if(Jl)try{Ss=Jl.createPolicy("vue",{createHTML:t=>t})}catch{}const jh=Ss?t=>Ss.createHTML(t):t=>t,er=typeof document<"u"?document:null,Xl=er&&er.createElement("template"),fg={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const l=e==="svg"?er.createElementNS("http://www.w3.org/2000/svg",t):e==="mathml"?er.createElementNS("http://www.w3.org/1998/Math/MathML",t):r?er.createElement(t,{is:r}):er.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>er.createTextNode(t),createComment:t=>er.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>er.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,l,a){const s=r?r.previousSibling:e.lastChild;if(l&&(l===a||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),r),l!==a&&(l=l.nextSibling););else{Xl.innerHTML=jh(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const i=Xl.content;if(n==="svg"||n==="mathml"){const o=i.firstChild;for(;o.firstChild;)i.appendChild(o.firstChild);i.removeChild(o)}e.insertBefore(i,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},gr="transition",Bn="animation",si=Symbol("_vtc"),Lh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pg=oe({},oh,Lh),qb=(t=>(t.displayName="Transition",t.props=pg,t))((t,{slots:e})=>ll(Md,function(r){const n={};for(const q in r)q in Lh||(n[q]=r[q]);if(r.css===!1)return n;const{name:l="v",type:a,duration:s,enterFromClass:i=`${l}-enter-from`,enterActiveClass:o=`${l}-enter-active`,enterToClass:u=`${l}-enter-to`,appearFromClass:c=i,appearActiveClass:p=o,appearToClass:f=u,leaveFromClass:g=`${l}-leave-from`,leaveActiveClass:m=`${l}-leave-active`,leaveToClass:y=`${l}-leave-to`}=r,w=function(q){if(q==null)return null;if(zt(q))return[Wo(q.enter),Wo(q.leave)];{const X=Wo(q);return[X,X]}}(s),P=w&&w[0],O=w&&w[1],{onBeforeEnter:F,onEnter:J,onEnterCancelled:z,onLeave:it,onLeaveCancelled:E,onBeforeAppear:_=F,onAppear:b=J,onAppearCancelled:R=z}=n,B=(q,X,rt,W)=>{q._enterCancelled=W,Wr(q,X?f:u),Wr(q,X?p:o),rt&&rt()},et=(q,X)=>{q._isLeaving=!1,Wr(q,g),Wr(q,y),Wr(q,m),X&&X()},st=q=>(X,rt)=>{const W=q?b:J,ct=()=>B(X,q,rt);Fr(W,[X,ct]),tu(()=>{Wr(X,q?c:i),Ye(X,q?f:u),Zl(W)||eu(X,a,P,ct)})};return oe(n,{onBeforeEnter(q){Fr(F,[q]),Ye(q,i),Ye(q,o)},onBeforeAppear(q){Fr(_,[q]),Ye(q,c),Ye(q,p)},onEnter:st(!1),onAppear:st(!0),onLeave(q,X){q._isLeaving=!0;const rt=()=>et(q,X);Ye(q,g),q._enterCancelled?(Ye(q,m),iu()):(iu(),Ye(q,m)),tu(()=>{q._isLeaving&&(Wr(q,g),Ye(q,y),Zl(it)||eu(q,a,O,rt))}),Fr(it,[q,rt])},onEnterCancelled(q){B(q,!1,void 0,!0),Fr(z,[q])},onAppearCancelled(q){B(q,!0,void 0,!0),Fr(R,[q])},onLeaveCancelled(q){et(q),Fr(E,[q])}})}(t),e)),Fr=(t,e=[])=>{It(t)?t.forEach(r=>r(...e)):t&&t(...e)},Zl=t=>!!t&&(It(t)?t.some(e=>e.length>1):t.length>1);function Wo(t){return(r=>{const n=Qt(r)?Number(r):NaN;return isNaN(n)?r:n})(t)}function Ye(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[si]||(t[si]=new Set)).add(e)}function Wr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[si];r&&(r.delete(e),r.size||(t[si]=void 0))}function tu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let dg=0;function eu(t,e,r,n){const l=t._endId=++dg,a=()=>{l===t._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:s,timeout:i,propCount:o}=function(g,m){const y=window.getComputedStyle(g),w=B=>(y[B]||"").split(", "),P=w(`${gr}Delay`),O=w(`${gr}Duration`),F=ru(P,O),J=w(`${Bn}Delay`),z=w(`${Bn}Duration`),it=ru(J,z);let E=null,_=0,b=0;m===gr?F>0&&(E=gr,_=F,b=O.length):m===Bn?it>0&&(E=Bn,_=it,b=z.length):(_=Math.max(F,it),E=_>0?F>it?gr:Bn:null,b=E?E===gr?O.length:z.length:0);const R=E===gr&&/\b(transform|all)(,|$)/.test(w(`${gr}Property`).toString());return{type:E,timeout:_,propCount:b,hasTransform:R}}(t,e);if(!s)return n();const u=s+"end";let c=0;const p=()=>{t.removeEventListener(u,f),a()},f=g=>{g.target===t&&++c>=o&&p()};setTimeout(()=>{cnu(r)+nu(t[n])))}function nu(t){return t==="auto"?0:1e3*Number(t.slice(0,-1).replace(",","."))}function iu(){return document.body.offsetHeight}const eo=Symbol("_vod"),Nh=Symbol("_vsh"),Hb={beforeMount(t,{value:e},{transition:r}){t[eo]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):jn(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),jn(t,!0),n.enter(t)):n.leave(t,()=>{jn(t,!1)}):jn(t,e))},beforeUnmount(t,{value:e}){jn(t,e)}};function jn(t,e){t.style.display=e?t[eo]:"none",t[Nh]=!e}const Uh=Symbol("");function zb(t){const e=Ph();if(!e)return;const r=e.ut=(l=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>ro(a,l))},n=()=>{const l=t(e.proxy);e.ce?ro(e.ce,l):As(e.subTree,l),r(l)};ph(()=>{Xc(n)}),el(()=>{_n(n,ze,{flush:"post"});const l=new MutationObserver(n);l.observe(e.subTree.el.parentNode,{childList:!0}),rl(()=>l.disconnect())})}function As(t,e){if(128&t.shapeFlag){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{As(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)ro(t.el,e);else if(t.type===ve)t.children.forEach(r=>As(r,e));else if(t.type===ji){let{el:r,anchor:n}=t;for(;r&&(ro(r,e),r!==n);)r=r.nextSibling}}function ro(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const l in e)r.setProperty(`--${l}`,e[l]),n+=`--${l}: ${e[l]};`;r[Uh]=n}}const gg=/(^|;)\s*display\s*:/,ou=/\s*!important$/;function Ni(t,e,r){if(It(r))r.forEach(n=>Ni(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=function(l,a){const s=$o[a];if(s)return s;let i=Re(a);if(i!=="filter"&&i in l)return $o[a]=i;i=co(i);for(let o=0;o{if(g._vts){if(g._vts<=f.attached)return}else g._vts=Date.now();Ue(function(m,y){if(It(y)){const w=m.stopImmediatePropagation;return m.stopImmediatePropagation=()=>{w.call(m),m._stopped=!0},y.map(P=>O=>!O._stopped&&P&&P(O))}return y}(g,f.value),p,5,[g])};return f.value=c,f.attached=yg(),f}(n,l);(function(c,p,f,g){c.addEventListener(p,f,g)})(t,i,u,o)}else s&&(function(u,c,p,f){u.removeEventListener(c,p,f)}(t,i,s,o),a[e]=void 0)}}const hu=/(?:Once|Passive|Capture)$/;let Vo=0;const bg=Promise.resolve(),yg=()=>Vo||(bg.then(()=>Vo=0),Vo=Date.now()),fu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,vg=["ctrl","shift","alt","meta"],wg={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>vg.some(r=>t[`${r}Key`]&&!e.includes(r))},Kb=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(l,...a)=>{for(let s=0;s{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=l=>{if(!("key"in l))return;const a=Br(l.key);return e.some(s=>s===a||_g[s]===a)?t(l):void 0})},Eg=oe({patchProp:(t,e,r,n,l,a)=>{const s=l==="svg";e==="class"?function(i,o,u){const c=i[si];c&&(o=(o?[o,...c]:[...c]).join(" ")),o==null?i.removeAttribute("class"):u?i.setAttribute("class",o):i.className=o}(t,n,s):e==="style"?function(i,o,u){const c=i.style,p=Qt(u);let f=!1;if(u&&!p){if(o)if(Qt(o))for(const g of o.split(";")){const m=g.slice(0,g.indexOf(":")).trim();u[m]==null&&Ni(c,m,"")}else for(const g in o)u[g]==null&&Ni(c,g,"");for(const g in u)g==="display"&&(f=!0),Ni(c,g,u[g])}else if(p){if(o!==u){const g=c[Uh];g&&(u+=";"+g),c.cssText=u,f=gg.test(u)}}else o&&i.removeAttribute("style");eo in i&&(i[eo]=f?c.display:"",i[Nh]&&(c.display="none"))}(t,r,n):ao(e)?Wa(e)||mg(t,e,0,n,a):(e[0]==="."?(e=e.slice(1),1):e[0]==="^"?(e=e.slice(1),0):function(i,o,u,c){if(c)return o==="innerHTML"||o==="textContent"||!!(o in i&&fu(o)&&Ot(u));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&i.tagName==="INPUT"||o==="type"&&i.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){const p=i.tagName;if(p==="IMG"||p==="VIDEO"||p==="CANVAS"||p==="SOURCE")return!1}return fu(o)&&Qt(u)?!1:o in i}(t,e,n,s))?(uu(t,e,n),t.tagName.includes("-")||e!=="value"&&e!=="checked"&&e!=="selected"||lu(t,e,n,s,0,e!=="value")):!t._isVueCE||!/[A-Z]/.test(e)&&Qt(n)?(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),lu(t,e,n,s)):uu(t,Re(e),n,0,e)}},fg);let pu;const Qb=(...t)=>{const e=(pu||(pu=Yd(Eg))).createApp(...t),{mount:r}=e;return e.mount=n=>{const l=function(i){return Qt(i)?document.querySelector(i):i}(n);if(!l)return;const a=e._component;Ot(a)||a.render||a.template||(a.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const s=r(l,!1,function(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),s},e};let Dh;const wo=t=>Dh=t,Fh=Symbol();function ks(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Gn,qo;function Yb(){const t=Cc(!0),e=t.run(()=>Xa({}));let r=[],n=[];const l=Ja({install(a){wo(l),l._a=a,a.provide(Fh,l),a.config.globalProperties.$pinia=l,n.forEach(s=>r.push(s)),n=[]},use(a){return this._a?r.push(a):n.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return l}(qo=Gn||(Gn={})).direct="direct",qo.patchObject="patch object",qo.patchFunction="patch function";const Wh=()=>{};function du(t,e,r,n=Wh){t.push(e);const l=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),n())};var a;return!r&&Rc()&&(a=l,de&&de.cleanups.push(a)),l}function cn(t,...e){t.slice().forEach(r=>{r(...e)})}const Sg=t=>t(),gu=Symbol(),Ho=Symbol();function Is(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],l=t[r];ks(l)&&ks(n)&&t.hasOwnProperty(r)&&!ee(n)&&!xr(n)?t[r]=Is(l,n):t[r]=n}return t}const Ag=Symbol(),{assign:br}=Object;function kg(t,e,r,n){const{state:l,actions:a,getters:s}=e,i=r.state.value[t];let o;return o=$h(t,function(){i||(r.state.value[t]=l?l():{});const u=function(c){const p=It(c)?new Array(c.length):{};for(const f in c)p[f]=xd(c,f);return p}(r.state.value[t]);return br(u,a,Object.keys(s||{}).reduce((c,p)=>(c[p]=Ja(Te(()=>{wo(r);const f=r._s.get(t);return s[p].call(f,f)})),c),{}))},e,r,n,!0),o}function $h(t,e,r={},n,l,a){let s;const i=br({actions:{}},r),o={deep:!0};let u,c,p,f=[],g=[];const m=n.state.value[t];let y;function w(E){let _;u=c=!1,typeof E=="function"?(E(n.state.value[t]),_={type:Gn.patchFunction,storeId:t,events:p}):(Is(n.state.value[t],E),_={type:Gn.patchObject,payload:E,storeId:t,events:p});const b=y=Symbol();Za().then(()=>{y===b&&(u=!0)}),c=!0,cn(f,_,n.state.value[t])}a||m||(n.state.value[t]={}),Xa({});const P=a?function(){const{state:E}=r,_=E?E():{};this.$patch(b=>{br(b,_)})}:Wh,O=(E,_="")=>{if(gu in E)return E[Ho]=_,E;const b=function(){wo(n);const R=Array.from(arguments),B=[],et=[];let st;cn(g,{args:R,name:b[Ho],store:F,after:function(q){B.push(q)},onError:function(q){et.push(q)}});try{st=E.apply(this&&this.$id===t?this:F,R)}catch(q){throw cn(et,q),q}return st instanceof Promise?st.then(q=>(cn(B,q),q)).catch(q=>(cn(et,q),Promise.reject(q))):(cn(B,st),st)};return b[gu]=!0,b[Ho]=_,b},F=fi({_p:n,$id:t,$onAction:du.bind(null,g),$patch:w,$reset:P,$subscribe(E,_={}){const b=du(f,E,_.detached,()=>R()),R=s.run(()=>_n(()=>n.state.value[t],B=>{(_.flush==="sync"?c:u)&&E({storeId:t,type:Gn.direct,events:p},B)},br({},o,_)));return b},$dispose:function(){s.stop(),f=[],g=[],n._s.delete(t)}});n._s.set(t,F);const J=(n._a&&n._a.runWithContext||Sg)(()=>n._e.run(()=>(s=Cc()).run(()=>e({action:O}))));for(const E in J){const _=J[E];if(ee(_)&&(!ee(it=_)||!it.effect)||xr(_))a||(!m||ks(z=_)&&z.hasOwnProperty(Ag)||(ee(_)?_.value=m[E]:Is(_,m[E])),n.state.value[t][E]=_);else if(typeof _=="function"){const b=O(_,E);J[E]=b,i.actions[E]=_}}var z,it;return br(F,J),br(Rt(F),J),Object.defineProperty(F,"$state",{get:()=>n.state.value[t],set:E=>{w(_=>{br(_,E)})}}),n._p.forEach(E=>{br(F,s.run(()=>E({store:F,app:n._a,pinia:n,options:i})))}),m&&a&&r.hydrate&&r.hydrate(F.$state,m),u=!0,c=!0,F}/*! #__NO_SIDE_EFFECTS__ */function Jb(t,e,r){let n,l;const a=typeof e=="function";function s(i,o){return(i=i||(ie||ne||Jr?Ke(Fh,null):null))&&wo(i),(i=Dh)._s.has(n)||(a?$h(n,e,l,i):kg(n,l,i)),i._s.get(n)}return n=t,l=a?r:e,s.$id=n,s}/*! - * vue-router v4.5.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const dn=typeof document<"u";function mu(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}const Bt=Object.assign;function zo(t,e){const r={};for(const n in e){const l=e[n];r[n]=De(l)?l.map(t):t(l)}return r}const Qn=()=>{},De=Array.isArray,Vh=/#/g,Ig=/&/g,Og=/\//g,Tg=/=/g,xg=/\?/g,qh=/\+/g,Cg=/%5B/g,Rg=/%5D/g,Hh=/%5E/g,Pg=/%60/g,zh=/%7B/g,Mg=/%7C/g,Kh=/%7D/g,Bg=/%20/g;function ul(t){return encodeURI(""+t).replace(Mg,"|").replace(Cg,"[").replace(Rg,"]")}function Ko(t){return ul(t).replace(qh,"%2B").replace(Bg,"+").replace(Vh,"%23").replace(Ig,"%26").replace(Pg,"`").replace(zh,"{").replace(Kh,"}").replace(Hh,"^")}function jg(t){return t==null?"":function(e){return ul(e).replace(Vh,"%23").replace(xg,"%3F")}(t).replace(Og,"%2F")}function ai(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Lg=/\/$/;function Go(t,e,r="/"){let n,l={},a="",s="";const i=e.indexOf("#");let o=e.indexOf("?");return i=0&&(o=-1),o>-1&&(n=e.slice(0,o),a=e.slice(o+1,i>-1?i:e.length),l=t(a)),i>-1&&(n=n||e.slice(0,i),s=e.slice(i,e.length)),n=function(u,c){if(u.startsWith("/"))return u;if(!u)return c;const p=c.split("/"),f=u.split("/"),g=f[f.length-1];g!==".."&&g!=="."||f.push("");let m,y,w=p.length-1;for(m=0;m1&&w--}return p.slice(0,w).join("/")+"/"+f.slice(m).join("/")}(n??e,r),{fullPath:n+(a&&"?")+a+s,path:n,query:l,hash:ai(s)}}function bu(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function En(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Gh(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!Ng(t[r],e[r]))return!1;return!0}function Ng(t,e){return De(t)?yu(t,e):De(e)?yu(e,t):t===e}function yu(t,e){return De(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}const mr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var li,vu,Yn,Qo;function Ug(t){if(!t)if(dn){const e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),t.replace(Lg,"")}(vu=li||(li={})).pop="pop",vu.push="push",(Qo=Yn||(Yn={})).back="back",Qo.forward="forward",Qo.unknown="";const Dg=/^[^#]+#/;function Fg(t,e){return t.replace(Dg,"#")+e}const _o=()=>({left:window.scrollX,top:window.scrollY});function Wg(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),l=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!l)return;e=function(a,s){const i=document.documentElement.getBoundingClientRect(),o=a.getBoundingClientRect();return{behavior:s.behavior,left:o.left-i.left-(s.left||0),top:o.top-i.top-(s.top||0)}}(l,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function wu(t,e){return(history.state?history.state.position-e:-1)+t}const Yo=new Map;function Qh(t,e){const{pathname:r,search:n,hash:l}=e,a=t.indexOf("#");if(a>-1){let s=l.includes(t.slice(a))?t.slice(a).length:1,i=l.slice(s);return i[0]!=="/"&&(i="/"+i),bu(i,"")}return bu(r,t)+n+l}function _u(t,e,r,n=!1,l=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:l?_o():null}}function $g(t){const{history:e,location:r}=window,n={value:Qh(t,r)},l={value:e.state};function a(s,i,o){const u=t.indexOf("#"),c=u>-1?(r.host&&document.querySelector("base")?t:t.slice(u))+s:location.protocol+"//"+location.host+t+s;try{e[o?"replaceState":"pushState"](i,"",c),l.value=i}catch{r[o?"replace":"assign"](c)}}return l.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:n,state:l,push:function(s,i){const o=Bt({},l.value,e.state,{forward:s,scroll:_o()});a(o.current,o,!0),a(s,Bt({},_u(n.value,s,null),{position:o.position+1},i),!1),n.value=s},replace:function(s,i){a(s,Bt({},e.state,_u(l.value.back,s,l.value.forward,!0),i,{position:l.value.position}),!0),n.value=s}}}function Vg(t){const e=$g(t=Ug(t)),r=function(l,a,s,i){let o=[],u=[],c=null;const p=({state:g})=>{const m=Qh(l,location),y=s.value,w=a.value;let P=0;if(g){if(s.value=m,a.value=g,c&&c===y)return void(c=null);P=w?g.position-w.position:0}else i(m);o.forEach(O=>{O(s.value,y,{delta:P,type:li.pop,direction:P?P>0?Yn.forward:Yn.back:Yn.unknown})})};function f(){const{history:g}=window;g.state&&g.replaceState(Bt({},g.state,{scroll:_o()}),"")}return window.addEventListener("popstate",p),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:function(){c=s.value},listen:function(g){o.push(g);const m=()=>{const y=o.indexOf(g);y>-1&&o.splice(y,1)};return u.push(m),m},destroy:function(){for(const g of u)g();u=[],window.removeEventListener("popstate",p),window.removeEventListener("beforeunload",f)}}}(t,e.state,e.location,e.replace),n=Bt({location:"",base:t,go:function(l,a=!0){a||r.pauseListeners(),history.go(l)},createHref:Fg.bind(null,t)},e,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function Xb(t){return(t=location.host?t||location.pathname+location.search:"").includes("#")||(t+="#"),Vg(t)}function Yh(t){return typeof t=="string"||typeof t=="symbol"}const Jh=Symbol("");var Eu,hn;function Sn(t,e){return Bt(new Error,{type:t,[Jh]:!0},e)}function Je(t,e){return t instanceof Error&&Jh in t&&(e==null||!!(t.type&e))}(hn=Eu||(Eu={}))[hn.aborted=4]="aborted",hn[hn.cancelled=8]="cancelled",hn[hn.duplicated=16]="duplicated";const Su="[^/]+?",qg={sensitive:!1,strict:!1,start:!0,end:!0},Hg=/[.+*?^${}()[\]/\\]/g;function zg(t,e){let r=0;for(;re.length?e.length===1&&e[0]===80?1:-1:0}function Au(t,e){let r=0;const n=t.score,l=e.score;for(;r0&&e[e.length-1]<0}const Kg={type:0,value:""},Gg=/[a-zA-Z0-9_]/;function Qg(t,e,r){const n=function(a,s){const i=Bt({},qg,s),o=[];let u=i.start?"^":"";const c=[];for(const f of a){const g=f.length?[]:[90];i.strict&&!f.length&&(u+="/");for(let m=0;m1&&(f==="*"||f==="+")&&s(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:m,regexp:y,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):s("Invalid state to consume buffer"),m="")}function P(){m+=f}for(;g{a(y)}:Qn}function a(i){if(Yh(i)){const o=n.get(i);o&&(n.delete(i),r.splice(r.indexOf(o),1),o.children.forEach(a),o.alias.forEach(a))}else{const o=r.indexOf(i);o>-1&&(r.splice(o,1),i.record.name&&n.delete(i.record.name),i.children.forEach(a),i.alias.forEach(a))}}function s(i){const o=function(u,c){let p=0,f=c.length;for(;p!==f;){const m=p+f>>1;Au(u,c[m])<0?f=m:p=m+1}const g=function(m){let y=m;for(;y=y.parent;)if(Cu(y)&&Au(m,y)===0)return y}(u);return g&&(f=c.lastIndexOf(g,f-1)),f}(i,r);r.splice(o,0,i),i.record.name&&!Tu(i)&&n.set(i.record.name,i)}return e=xu({strict:!1,end:!0,sensitive:!1},e),t.forEach(i=>l(i)),{addRoute:l,resolve:function(i,o){let u,c,p,f={};if("name"in i&&i.name){if(u=n.get(i.name),!u)throw Sn(1,{location:i});p=u.record.name,f=Bt(Iu(o.params,u.keys.filter(y=>!y.optional).concat(u.parent?u.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),i.params&&Iu(i.params,u.keys.map(y=>y.name))),c=u.stringify(f)}else if(i.path!=null)c=i.path,u=r.find(y=>y.re.test(c)),u&&(f=u.parse(c),p=u.record.name);else{if(u=o.name?n.get(o.name):r.find(y=>y.re.test(o.path)),!u)throw Sn(1,{location:i,currentLocation:o});p=u.record.name,f=Bt({},o.params,i.params),c=u.stringify(f)}const g=[];let m=u;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:c,params:f,matched:g,meta:Xg(g)}},removeRoute:a,clearRoutes:function(){r.length=0,n.clear()},getRoutes:function(){return r},getRecordMatcher:function(i){return n.get(i)}}}function Iu(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function Ou(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Jg(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Jg(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function Tu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Xg(t){return t.reduce((e,r)=>Bt(e,r.meta),{})}function xu(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function Cu({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Zg(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;na&&Ko(a)):[n&&Ko(n)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+r,a!=null&&(e+="="+a))})}return e}function tm(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=De(n)?n.map(l=>l==null?null:""+l):n==null?n:""+n)}return e}const em=Symbol(""),Pu=Symbol(""),cl=Symbol(""),Xh=Symbol(""),Os=Symbol("");function Ln(){let t=[];return{add:function(e){return t.push(e),()=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)}},list:()=>t.slice(),reset:function(){t=[]}}}function Ir(t,e,r,n,l,a=s=>s()){const s=n&&(n.enterCallbacks[l]=n.enterCallbacks[l]||[]);return()=>new Promise((i,o)=>{const u=f=>{var g;f===!1?o(Sn(4,{from:r,to:e})):f instanceof Error?o(f):typeof(g=f)=="string"||g&&typeof g=="object"?o(Sn(2,{from:e,to:f})):(s&&n.enterCallbacks[l]===s&&typeof f=="function"&&s.push(f),i())},c=a(()=>t.call(n&&n.instances[l],e,r,u));let p=Promise.resolve(c);t.length<3&&(p=p.then(u)),p.catch(f=>o(f))})}function Jo(t,e,r,n,l=a=>a()){const a=[];for(const s of t)for(const i in s.components){let o=s.components[i];if(e==="beforeRouteEnter"||s.instances[i])if(mu(o)){const u=(o.__vccOpts||o)[e];u&&a.push(Ir(u,r,n,s,i,l))}else{let u=o();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${s.path}"`);const p=(f=c).__esModule||f[Symbol.toStringTag]==="Module"||f.default&&mu(f.default)?c.default:c;var f;s.mods[i]=c,s.components[i]=p;const g=(p.__vccOpts||p)[e];return g&&Ir(g,r,n,s,i,l)()}))}}return a}function Mu(t){const e=Ke(cl),r=Ke(Xh),n=Te(()=>{const i=vn(t.to);return e.resolve(i)}),l=Te(()=>{const{matched:i}=n.value,{length:o}=i,u=i[o-1],c=r.matched;if(!u||!c.length)return-1;const p=c.findIndex(En.bind(null,u));if(p>-1)return p;const f=Bu(i[o-2]);return o>1&&Bu(u)===f&&c[c.length-1].path!==f?c.findIndex(En.bind(null,i[o-2])):p}),a=Te(()=>l.value>-1&&function(i,o){for(const u in o){const c=o[u],p=i[u];if(typeof c=="string"){if(c!==p)return!1}else if(!De(p)||p.length!==c.length||c.some((f,g)=>f!==p[g]))return!1}return!0}(r.params,n.value.params)),s=Te(()=>l.value>-1&&l.value===r.matched.length-1&&Gh(r.params,n.value.params));return{route:n,href:Te(()=>n.value.href),isActive:a,isExactActive:s,navigate:function(i={}){if(function(o){if(!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey)&&!o.defaultPrevented&&!(o.button!==void 0&&o.button!==0)){if(o.currentTarget&&o.currentTarget.getAttribute){const u=o.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(u))return}return o.preventDefault&&o.preventDefault(),!0}}(i)){const o=e[vn(t.replace)?"replace":"push"](vn(t.to)).catch(Qn);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>o),o}return Promise.resolve()}}}const rm=ch({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Mu,setup(t,{slots:e}){const r=fi(Mu(t)),{options:n}=Ke(cl),l=Te(()=>({[ju(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[ju(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=e.default&&((s=e.default(r)).length===1?s[0]:s);var s;return t.custom?a:ll("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:l.value},a)}}});function Bu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ju=(t,e,r)=>t??e??r;function Lu(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const nm=ch({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=Ke(Os),l=Te(()=>t.route||n.value),a=Ke(Pu,0),s=Te(()=>{let u=vn(a);const{matched:c}=l.value;let p;for(;(p=c[u])&&!p.components;)u++;return u}),i=Te(()=>l.value.matched[s.value]);Bi(Pu,Te(()=>s.value+1)),Bi(em,i),Bi(Os,l);const o=Xa();return _n(()=>[o.value,i.value,t.name],([u,c,p],[f,g,m])=>{c&&(c.instances[p]=u,g&&g!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),!u||!c||g&&En(c,g)&&f||(c.enterCallbacks[p]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=l.value,c=t.name,p=i.value,f=p&&p.components[c];if(!f)return Lu(r.default,{Component:f,route:u});const g=p.props[c],m=g?g===!0?u.params:typeof g=="function"?g(u):g:null,y=ll(f,Bt({},m,e,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(p.instances[c]=null)},ref:o}));return Lu(r.default,{Component:y,route:u})||y}}});function Zb(t){const e=Yg(t.routes,t),r=t.parseQuery||Zg,n=t.stringifyQuery||Ru,l=t.history,a=Ln(),s=Ln(),i=Ln(),o=Gc(mr,!0);let u=mr;dn&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=zo.bind(null,j=>""+j),p=zo.bind(null,jg),f=zo.bind(null,ai);function g(j,N){if(N=Bt({},N||o.value),typeof j=="string"){const Z=Go(r,j,N.path),tt=e.resolve({path:Z.path},N),x=l.createHref(Z.fullPath);return Bt(Z,tt,{params:f(tt.params),hash:ai(Z.hash),redirectedFrom:void 0,href:x})}let G;if(j.path!=null)G=Bt({},j,{path:Go(r,j.path,N.path).path});else{const Z=Bt({},j.params);for(const tt in Z)Z[tt]==null&&delete Z[tt];G=Bt({},j,{params:p(Z)}),N.params=p(N.params)}const U=e.resolve(G,N),ft=j.hash||"";U.params=c(f(U.params));const dt=function(Z,tt){const x=tt.query?Z(tt.query):"";return tt.path+(x&&"?")+x+(tt.hash||"")}(n,Bt({},j,{hash:(gt=ft,ul(gt).replace(zh,"{").replace(Kh,"}").replace(Hh,"^")),path:U.path}));var gt;const L=l.createHref(dt);return Bt({fullPath:dt,hash:ft,query:n===Ru?tm(j.query):j.query||{}},U,{redirectedFrom:void 0,href:L})}function m(j){return typeof j=="string"?Go(r,j,o.value.path):Bt({},j)}function y(j,N){if(u!==j)return Sn(8,{from:N,to:j})}function w(j){return O(j)}function P(j){const N=j.matched[j.matched.length-1];if(N&&N.redirect){const{redirect:G}=N;let U=typeof G=="function"?G(j):G;return typeof U=="string"&&(U=U.includes("?")||U.includes("#")?U=m(U):{path:U},U.params={}),Bt({query:j.query,hash:j.hash,params:U.path!=null?{}:j.params},U)}}function O(j,N){const G=u=g(j),U=o.value,ft=j.state,dt=j.force,gt=j.replace===!0,L=P(G);if(L)return O(Bt(m(L),{state:typeof L=="object"?Bt({},ft,L.state):ft,force:dt,replace:gt}),N||G);const Z=G;let tt;return Z.redirectedFrom=N,!dt&&function(x,D,A){const Y=D.matched.length-1,h=A.matched.length-1;return Y>-1&&Y===h&&En(D.matched[Y],A.matched[h])&&Gh(D.params,A.params)&&x(D.query)===x(A.query)&&D.hash===A.hash}(n,U,G)&&(tt=Sn(16,{to:Z,from:U}),X(U,U,!0,!1)),(tt?Promise.resolve(tt):z(Z,U)).catch(x=>Je(x)?Je(x,2)?x:q(x):st(x,Z,U)).then(x=>{if(x){if(Je(x,2))return O(Bt({replace:gt},m(x.to),{state:typeof x.to=="object"?Bt({},ft,x.to.state):ft,force:dt}),N||Z)}else x=E(Z,U,!0,gt,ft);return it(Z,U,x),x})}function F(j,N){const G=y(j,N);return G?Promise.reject(G):Promise.resolve()}function J(j){const N=ct.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(j):j()}function z(j,N){let G;const[U,ft,dt]=function(L,Z){const tt=[],x=[],D=[],A=Math.max(Z.matched.length,L.matched.length);for(let Y=0;YEn(v,h))?x.push(h):tt.push(h));const d=L.matched[Y];d&&(Z.matched.find(v=>En(v,d))||D.push(d))}return[tt,x,D]}(j,N);G=Jo(U.reverse(),"beforeRouteLeave",j,N);for(const L of U)L.leaveGuards.forEach(Z=>{G.push(Ir(Z,j,N))});const gt=F.bind(null,j,N);return G.push(gt),$(G).then(()=>{G=[];for(const L of a.list())G.push(Ir(L,j,N));return G.push(gt),$(G)}).then(()=>{G=Jo(ft,"beforeRouteUpdate",j,N);for(const L of ft)L.updateGuards.forEach(Z=>{G.push(Ir(Z,j,N))});return G.push(gt),$(G)}).then(()=>{G=[];for(const L of dt)if(L.beforeEnter)if(De(L.beforeEnter))for(const Z of L.beforeEnter)G.push(Ir(Z,j,N));else G.push(Ir(L.beforeEnter,j,N));return G.push(gt),$(G)}).then(()=>(j.matched.forEach(L=>L.enterCallbacks={}),G=Jo(dt,"beforeRouteEnter",j,N,J),G.push(gt),$(G))).then(()=>{G=[];for(const L of s.list())G.push(Ir(L,j,N));return G.push(gt),$(G)}).catch(L=>Je(L,8)?L:Promise.reject(L))}function it(j,N,G){i.list().forEach(U=>J(()=>U(j,N,G)))}function E(j,N,G,U,ft){const dt=y(j,N);if(dt)return dt;const gt=N===mr,L=dn?history.state:{};G&&(U||gt?l.replace(j.fullPath,Bt({scroll:gt&&L&&L.scroll},ft)):l.push(j.fullPath,ft)),o.value=j,X(j,N,G,gt),q()}let _;function b(){_||(_=l.listen((j,N,G)=>{if(!Q.listening)return;const U=g(j),ft=P(U);if(ft)return void O(Bt(ft,{replace:!0,force:!0}),U).catch(Qn);u=U;const dt=o.value;var gt,L;dn&&(gt=wu(dt.fullPath,G.delta),L=_o(),Yo.set(gt,L)),z(U,dt).catch(Z=>Je(Z,12)?Z:Je(Z,2)?(O(Bt(m(Z.to),{force:!0}),U).then(tt=>{Je(tt,20)&&!G.delta&&G.type===li.pop&&l.go(-1,!1)}).catch(Qn),Promise.reject()):(G.delta&&l.go(-G.delta,!1),st(Z,U,dt))).then(Z=>{(Z=Z||E(U,dt,!1))&&(G.delta&&!Je(Z,8)?l.go(-G.delta,!1):G.type===li.pop&&Je(Z,20)&&l.go(-1,!1)),it(U,dt,Z)}).catch(Qn)}))}let R,B=Ln(),et=Ln();function st(j,N,G){q(j);const U=et.list();return U.length&&U.forEach(ft=>ft(j,N,G)),Promise.reject(j)}function q(j){return R||(R=!j,b(),B.list().forEach(([N,G])=>j?G(j):N()),B.reset()),j}function X(j,N,G,U){const{scrollBehavior:ft}=t;if(!dn||!ft)return Promise.resolve();const dt=!G&&function(gt){const L=Yo.get(gt);return Yo.delete(gt),L}(wu(j.fullPath,0))||(U||!G)&&history.state&&history.state.scroll||null;return Za().then(()=>ft(j,N,dt)).then(gt=>gt&&Wg(gt)).catch(gt=>st(gt,j,N))}const rt=j=>l.go(j);let W;const ct=new Set,Q={currentRoute:o,listening:!0,addRoute:function(j,N){let G,U;return Yh(j)?(G=e.getRecordMatcher(j),U=N):U=j,e.addRoute(U,G)},removeRoute:function(j){const N=e.getRecordMatcher(j);N&&e.removeRoute(N)},clearRoutes:e.clearRoutes,hasRoute:function(j){return!!e.getRecordMatcher(j)},getRoutes:function(){return e.getRoutes().map(j=>j.record)},resolve:g,options:t,push:w,replace:function(j){return w(Bt(m(j),{replace:!0}))},go:rt,back:()=>rt(-1),forward:()=>rt(1),beforeEach:a.add,beforeResolve:s.add,afterEach:i.add,onError:et.add,isReady:function(){return R&&o.value!==mr?Promise.resolve():new Promise((j,N)=>{B.add([j,N])})},install(j){j.component("RouterLink",rm),j.component("RouterView",nm),j.config.globalProperties.$router=this,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>vn(o)}),dn&&!W&&o.value===mr&&(W=!0,w(l.location).catch(U=>{}));const N={};for(const U in mr)Object.defineProperty(N,U,{get:()=>o.value[U],enumerable:!0});j.provide(cl,this),j.provide(Xh,zc(N)),j.provide(Os,o);const G=j.unmount;ct.add(j),j.unmount=function(){ct.delete(j),ct.size<1&&(u=mr,_&&_(),_=null,o.value=mr,W=!1,R=!1),G()}}};function $(j){return j.reduce((N,G)=>N.then(()=>J(G)),Promise.resolve())}return Q}var Ts=Object.defineProperty,im=Object.getOwnPropertyDescriptor,om=Object.getOwnPropertyNames,sm=Object.prototype.hasOwnProperty,be=(t,e)=>()=>(t&&(e=t(t=0)),e),_t=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Tn=(t,e)=>{for(var r in e)Ts(t,r,{get:e[r],enumerable:!0})},Dt=t=>((e,r,n,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of om(r))!sm.call(e,a)&&a!==n&&Ts(e,a,{get:()=>r[a],enumerable:!(l=im(r,a))||l.enumerable});return e})(Ts({},"__esModule",{value:!0}),t),bt=be(()=>{}),Vt={};function hl(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function am(){!Xr||!Gr||(Xr=!1,Gr.length?Ve=Gr.concat(Ve):Jn=-1,Ve.length&&Zh())}function Zh(){if(!Xr){var t=setTimeout(am,0);Xr=!0;for(var e=Ve.length;e;){for(Gr=Ve,Ve=[];++Jn1)for(var r=1;raa,_debugProcess:()=>sa,_events:()=>ff,_eventsCount:()=>pf,_exiting:()=>zs,_fatalExceptions:()=>na,_getActiveHandles:()=>sf,_getActiveRequests:()=>of,_kill:()=>Qs,_linkedBinding:()=>rf,_maxListeners:()=>hf,_preload_modules:()=>va,_rawDebug:()=>Vs,_startProfilerIdleNotifier:()=>la,_stopProfilerIdleNotifier:()=>ua,_tickCallback:()=>oa,abort:()=>pa,addListener:()=>df,allowedNodeEnvironmentFlags:()=>ea,arch:()=>Cs,argv:()=>Ms,argv0:()=>ya,assert:()=>af,binding:()=>Us,chdir:()=>Ws,config:()=>Ks,cpuUsage:()=>Di,cwd:()=>Fs,debugPort:()=>ba,default:()=>fl,dlopen:()=>nf,domain:()=>Hs,emit:()=>vf,emitWarning:()=>Ns,env:()=>Ps,execArgv:()=>Bs,execPath:()=>ma,exit:()=>Zs,features:()=>ra,hasUncaughtExceptionCaptureCallback:()=>lf,hrtime:()=>Ui,kill:()=>Xs,listeners:()=>cf,memoryUsage:()=>Js,moduleLoadList:()=>qs,nextTick:()=>tf,off:()=>mf,on:()=>Ze,once:()=>gf,openStdin:()=>ta,pid:()=>da,platform:()=>Rs,ppid:()=>ga,prependListener:()=>wf,prependOnceListener:()=>_f,reallyExit:()=>Gs,release:()=>$s,removeAllListeners:()=>yf,removeListener:()=>bf,resourceUsage:()=>Ys,setSourceMapsEnabled:()=>wa,setUncaughtExceptionCaptureCallback:()=>ia,stderr:()=>ha,stdin:()=>fa,stdout:()=>ca,title:()=>xs,umask:()=>Ds,uptime:()=>uf,version:()=>js,versions:()=>Ls});var Ve,Xr,Gr,Jn,xs,Cs,Rs,Ps,Ms,Bs,js,Ls,Ns,Us,Ds,Fs,Ws,$s,Vs,qs,Hs,zs,Ks,Gs,Qs,Di,Ys,Js,Xs,Zs,ta,ea,ra,na,ia,oa,sa,aa,la,ua,ca,ha,fa,pa,da,ga,ma,ba,ya,va,wa,Or,Xo,Fi,hf,ff,pf,df,gf,mf,bf,yf,vf,wf,_f,fl,lm=be(()=>{bt(),vt(),yt(),Ve=[],Xr=!1,Jn=-1,ef.prototype.run=function(){this.fun.apply(null,this.array)},xs="browser",Cs="x64",Rs="browser",Ps={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ms=["/usr/bin/node"],Bs=[],js="v16.8.0",Ls={},Ns=function(t,e){},Us=function(t){hl("binding")},Ds=function(t){return 0},Fs=function(){return"/"},Ws=function(t){},$s={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Vs=ue,qs=[],Hs={},zs=!1,Ks={},Gs=ue,Qs=ue,Ys=Di=function(){return{}},Js=Di,Xs=ue,Zs=ue,ta=ue,ea={},ra={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},na=ue,ia=ue,oa=ue,sa=ue,aa=ue,la=ue,ua=ue,ca=void 0,ha=void 0,fa=void 0,pa=ue,da=2,ga=1,ma="/bin/usr/node",ba=9229,ya="node",va=[],wa=ue,(Or={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0}).now===void 0&&(Xo=Date.now(),Or.timing&&Or.timing.navigationStart&&(Xo=Or.timing.navigationStart),Or.now=()=>Date.now()-Xo),Fi=1e9,Ui.bigint=function(t){var e=Ui(t);return typeof BigInt>"u"?e[0]*Fi+e[1]:BigInt(e[0]*Fi)+BigInt(e[1])},fl={version:js,versions:Ls,arch:Cs,platform:Rs,release:$s,_rawDebug:Vs,moduleLoadList:qs,binding:Us,_linkedBinding:rf,_events:ff={},_eventsCount:pf=0,_maxListeners:hf=10,on:Ze,addListener:df=Ze,once:gf=Ze,off:mf=Ze,removeListener:bf=Ze,removeAllListeners:yf=Ze,emit:vf=ue,prependListener:wf=Ze,prependOnceListener:_f=Ze,listeners:cf,domain:Hs,_exiting:zs,config:Ks,dlopen:nf,uptime:uf,_getActiveRequests:of,_getActiveHandles:sf,reallyExit:Gs,_kill:Qs,cpuUsage:Di,resourceUsage:Ys,memoryUsage:Js,kill:Xs,exit:Zs,openStdin:ta,allowedNodeEnvironmentFlags:ea,assert:af,features:ra,_fatalExceptions:na,setUncaughtExceptionCaptureCallback:ia,hasUncaughtExceptionCaptureCallback:lf,emitWarning:Ns,nextTick:tf,_tickCallback:oa,_debugProcess:sa,_debugEnd:aa,_startProfilerIdleNotifier:la,_stopProfilerIdleNotifier:ua,stdout:ca,stdin:fa,stderr:ha,abort:pa,umask:Ds,chdir:Ws,cwd:Fs,env:Ps,title:xs,argv:Ms,execArgv:Bs,pid:da,ppid:ga,execPath:ma,debugPort:ba,hrtime:Ui,argv0:ya,_preload_modules:va,setSourceMapsEnabled:wa}}),yt=be(()=>{lm()}),se={};function um(){if(Sa)return yr;Sa=!0;let t=function(){if(_a)return gn;_a=!0,gn.byteLength=function(lt){var ht=I(lt),ut=ht[0],M=ht[1];return 3*(ut+M)/4-M},gn.toByteArray=function(lt){var ht,ut,M=I(lt),H=M[0],nt=M[1],S=new v(function(pt,wt,mt){return 3*(wt+mt)/4-mt}(0,H,nt)),k=0,ot=nt>0?H-4:H;for(ut=0;ut>16&255,S[k++]=ht>>8&255,S[k++]=255&ht;return nt===2&&(ht=d[lt.charCodeAt(ut)]<<2|d[lt.charCodeAt(ut+1)]>>4,S[k++]=255&ht),nt===1&&(ht=d[lt.charCodeAt(ut)]<<10|d[lt.charCodeAt(ut+1)]<<4|d[lt.charCodeAt(ut+2)]>>2,S[k++]=ht>>8&255,S[k++]=255&ht),S},gn.fromByteArray=function(lt){for(var ht,ut=lt.length,M=ut%3,H=[],nt=16383,S=0,k=ut-M;Sk?k:S+nt));return M===1?(ht=lt[ut-1],H.push(h[ht>>2]+h[ht<<4&63]+"==")):M===2&&(ht=(lt[ut-2]<<8)+lt[ut-1],H.push(h[ht>>10]+h[ht>>4&63]+h[ht<<2&63]+"=")),H.join("")};for(var h=[],d=[],v=typeof Uint8Array<"u"?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0;C<64;++C)h[C]=T[C],d[T.charCodeAt(C)]=C;function I(lt){var ht=lt.length;if(ht%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ut=lt.indexOf("=");return ut===-1&&(ut=ht),[ut,ut===ht?0:4-ut%4]}function K(lt){return h[lt>>18&63]+h[lt>>12&63]+h[lt>>6&63]+h[63<]}function at(lt,ht,ut){for(var M,H=[],nt=ht;nt>1,ut=-7,M=v?C-1:0,H=v?-1:1,nt=h[d+M];for(M+=H,I=nt&(1<<-ut)-1,nt>>=-ut,ut+=at;ut>0;I=256*I+h[d+M],M+=H,ut-=8);for(K=I&(1<<-ut)-1,I>>=-ut,ut+=T;ut>0;K=256*K+h[d+M],M+=H,ut-=8);if(I===0)I=1-ht;else{if(I===lt)return K?NaN:1/0*(nt?-1:1);K+=Math.pow(2,T),I-=ht}return(nt?-1:1)*K*Math.pow(2,I-T)},Wi.write=function(h,d,v,T,C,I){var K,at,lt,ht=8*I-C-1,ut=(1<>1,H=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,nt=T?0:I-1,S=T?1:-1,k=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(at=isNaN(d)?1:0,K=ut):(K=Math.floor(Math.log(d)/Math.LN2),d*(lt=Math.pow(2,-K))<1&&(K--,lt*=2),(d+=K+M>=1?H/lt:H*Math.pow(2,1-M))*lt>=2&&(K++,lt/=2),K+M>=ut?(at=0,K=ut):K+M>=1?(at=(d*lt-1)*Math.pow(2,C),K+=M):(at=d*Math.pow(2,M-1)*Math.pow(2,C),K=0));C>=8;h[v+nt]=255&at,nt+=S,at/=256,C-=8);for(K=K<0;h[v+nt]=255&K,nt+=S,K/=256,ht-=8);h[v+nt-S]|=128*k}),Wi),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;yr.Buffer=a,yr.SlowBuffer=function(h){return+h!=h&&(h=0),a.alloc(+h)},yr.INSPECT_MAX_BYTES=50;let n=2147483647;function l(h){if(h>n)throw new RangeError('The value "'+h+'" is invalid for option "size"');let d=new Uint8Array(h);return Object.setPrototypeOf(d,a.prototype),d}function a(h,d,v){if(typeof h=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return o(h)}return s(h,d,v)}function s(h,d,v){if(typeof h=="string")return function(I,K){if((typeof K!="string"||K==="")&&(K="utf8"),!a.isEncoding(K))throw new TypeError("Unknown encoding: "+K);let at=0|f(I,K),lt=l(at),ht=lt.write(I,K);return ht!==at&&(lt=lt.slice(0,ht)),lt}(h,d);if(ArrayBuffer.isView(h))return function(I){if(tt(I,Uint8Array)){let K=new Uint8Array(I);return c(K.buffer,K.byteOffset,K.byteLength)}return u(I)}(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(tt(h,ArrayBuffer)||h&&tt(h.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tt(h,SharedArrayBuffer)||h&&tt(h.buffer,SharedArrayBuffer)))return c(h,d,v);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let T=h.valueOf&&h.valueOf();if(T!=null&&T!==h)return a.from(T,d,v);let C=function(I){if(a.isBuffer(I)){let K=0|p(I.length),at=l(K);return at.length===0||I.copy(at,0,0,K),at}if(I.length!==void 0)return typeof I.length!="number"||x(I.length)?l(0):u(I);if(I.type==="Buffer"&&Array.isArray(I.data))return u(I.data)}(h);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return a.from(h[Symbol.toPrimitive]("string"),d,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}function i(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function o(h){return i(h),l(h<0?0:0|p(h))}function u(h){let d=h.length<0?0:0|p(h.length),v=l(d);for(let T=0;T=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|h}function f(h,d){if(a.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||tt(h,ArrayBuffer))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);let v=h.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&v===0)return 0;let C=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return gt(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return L(h).length;default:if(C)return T?-1:gt(h).length;d=(""+d).toLowerCase(),C=!0}}function g(h,d,v){let T=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0)<=(d>>>=0))return"";for(h||(h="utf8");;)switch(h){case"hex":return B(this,d,v);case"utf8":case"utf-8":return E(this,d,v);case"ascii":return b(this,d,v);case"latin1":case"binary":return R(this,d,v);case"base64":return it(this,d,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,d,v);default:if(T)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),T=!0}}function m(h,d,v){let T=h[d];h[d]=h[v],h[v]=T}function y(h,d,v,T,C){if(h.length===0)return-1;if(typeof v=="string"?(T=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),x(v=+v)&&(v=C?0:h.length-1),v<0&&(v=h.length+v),v>=h.length){if(C)return-1;v=h.length-1}else if(v<0){if(!C)return-1;v=0}if(typeof d=="string"&&(d=a.from(d,T)),a.isBuffer(d))return d.length===0?-1:w(h,d,v,T,C);if(typeof d=="number")return d&=255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(h,d,v):Uint8Array.prototype.lastIndexOf.call(h,d,v):w(h,[d],v,T,C);throw new TypeError("val must be string, number or Buffer")}function w(h,d,v,T,C){let I,K=1,at=h.length,lt=d.length;if(T!==void 0&&((T=String(T).toLowerCase())==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(h.length<2||d.length<2)return-1;K=2,at/=2,lt/=2,v/=2}function ht(ut,M){return K===1?ut[M]:ut.readUInt16BE(M*K)}if(C){let ut=-1;for(I=v;Iat&&(v=at-lt),I=v;I>=0;I--){let ut=!0;for(let M=0;MC&&(T=C):T=C;let I,K=d.length;for(T>K/2&&(T=K/2),I=0;I>8,lt=K%256,ht.push(lt),ht.push(at);return ht}(d,h.length-v),h,v,T)}function it(h,d,v){return d===0&&v===h.length?t.fromByteArray(h):t.fromByteArray(h.slice(d,v))}function E(h,d,v){v=Math.min(h.length,v);let T=[],C=d;for(;C239?4:I>223?3:I>191?2:1;if(C+at<=v){let lt,ht,ut,M;switch(at){case 1:I<128&&(K=I);break;case 2:lt=h[C+1],(192<)==128&&(M=(31&I)<<6|63<,M>127&&(K=M));break;case 3:lt=h[C+1],ht=h[C+2],(192<)==128&&(192&ht)==128&&(M=(15&I)<<12|(63<)<<6|63&ht,M>2047&&(M<55296||M>57343)&&(K=M));break;case 4:lt=h[C+1],ht=h[C+2],ut=h[C+3],(192<)==128&&(192&ht)==128&&(192&ut)==128&&(M=(15&I)<<18|(63<)<<12|(63&ht)<<6|63&ut,M>65535&&M<1114112&&(K=M))}}K===null?(K=65533,at=1):K>65535&&(K-=65536,T.push(K>>>10&1023|55296),K=56320|1023&K),T.push(K),C+=at}return function(I){let K=I.length;if(K<=_)return String.fromCharCode.apply(String,I);let at="",lt=0;for(;ltT.length?(a.isBuffer(I)||(I=a.from(I)),I.copy(T,C)):Uint8Array.prototype.set.call(T,I,C);else{if(!a.isBuffer(I))throw new TypeError('"list" argument must be an Array of Buffers');I.copy(T,C)}C+=I.length}return T},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let h=this.length;if(h%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;dd&&(h+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(h,d,v,T,C){if(tt(h,Uint8Array)&&(h=a.from(h,h.offset,h.byteLength)),!a.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(d===void 0&&(d=0),v===void 0&&(v=h?h.length:0),T===void 0&&(T=0),C===void 0&&(C=this.length),d<0||v>h.length||T<0||C>this.length)throw new RangeError("out of range index");if(T>=C&&d>=v)return 0;if(T>=C)return-1;if(d>=v)return 1;if(this===h)return 0;let I=(C>>>=0)-(T>>>=0),K=(v>>>=0)-(d>>>=0),at=Math.min(I,K),lt=this.slice(T,C),ht=h.slice(d,v);for(let ut=0;ut>>=0,isFinite(v)?(v>>>=0,T===void 0&&(T="utf8")):(T=v,v=void 0)}let C=this.length-d;if((v===void 0||v>C)&&(v=C),h.length>0&&(v<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let I=!1;for(;;)switch(T){case"hex":return P(this,h,d,v);case"utf8":case"utf-8":return O(this,h,d,v);case"ascii":case"latin1":case"binary":return F(this,h,d,v);case"base64":return J(this,h,d,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,h,d,v);default:if(I)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),I=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let _=4096;function b(h,d,v){let T="";v=Math.min(h.length,v);for(let C=d;CT)&&(v=T);let C="";for(let I=d;Iv)throw new RangeError("Trying to access beyond buffer length")}function q(h,d,v,T,C,I){if(!a.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>C||dh.length)throw new RangeError("Index out of range")}function X(h,d,v,T,C){G(d,T,C,h,v,7);let I=Number(d&BigInt(4294967295));h[v++]=I,I>>=8,h[v++]=I,I>>=8,h[v++]=I,I>>=8,h[v++]=I;let K=Number(d>>BigInt(32)&BigInt(4294967295));return h[v++]=K,K>>=8,h[v++]=K,K>>=8,h[v++]=K,K>>=8,h[v++]=K,v}function rt(h,d,v,T,C){G(d,T,C,h,v,7);let I=Number(d&BigInt(4294967295));h[v+7]=I,I>>=8,h[v+6]=I,I>>=8,h[v+5]=I,I>>=8,h[v+4]=I;let K=Number(d>>BigInt(32)&BigInt(4294967295));return h[v+3]=K,K>>=8,h[v+2]=K,K>>=8,h[v+1]=K,K>>=8,h[v]=K,v+8}function W(h,d,v,T,C,I){if(v+T>h.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ct(h,d,v,T,C){return d=+d,v>>>=0,C||W(h,0,v,4),e.write(h,d,v,T,23,4),v+4}function Q(h,d,v,T,C){return d=+d,v>>>=0,C||W(h,0,v,8),e.write(h,d,v,T,52,8),v+8}a.prototype.slice=function(h,d){let v=this.length;(h=~~h)<0?(h+=v)<0&&(h=0):h>v&&(h=v),(d=d===void 0?v:~~d)<0?(d+=v)<0&&(d=0):d>v&&(d=v),d>>=0,d>>>=0,v||st(h,d,this.length);let T=this[h],C=1,I=0;for(;++I>>=0,d>>>=0,v||st(h,d,this.length);let T=this[h+--d],C=1;for(;d>0&&(C*=256);)T+=this[h+--d]*C;return T},a.prototype.readUint8=a.prototype.readUInt8=function(h,d){return h>>>=0,d||st(h,1,this.length),this[h]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(h,d){return h>>>=0,d||st(h,2,this.length),this[h]|this[h+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(h,d){return h>>>=0,d||st(h,2,this.length),this[h]<<8|this[h+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(h,d){return h>>>=0,d||st(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+16777216*this[h+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(h,d){return h>>>=0,d||st(h,4,this.length),16777216*this[h]+(this[h+1]<<16|this[h+2]<<8|this[h+3])},a.prototype.readBigUInt64LE=A(function(h){U(h>>>=0,"offset");let d=this[h],v=this[h+7];(d===void 0||v===void 0)&&ft(h,this.length-8);let T=d+256*this[++h]+65536*this[++h]+this[++h]*2**24,C=this[++h]+256*this[++h]+65536*this[++h]+v*2**24;return BigInt(T)+(BigInt(C)<>>=0,"offset");let d=this[h],v=this[h+7];(d===void 0||v===void 0)&&ft(h,this.length-8);let T=d*2**24+65536*this[++h]+256*this[++h]+this[++h],C=this[++h]*2**24+65536*this[++h]+256*this[++h]+v;return(BigInt(T)<>>=0,d>>>=0,v||st(h,d,this.length);let T=this[h],C=1,I=0;for(;++I=C&&(T-=Math.pow(2,8*d)),T},a.prototype.readIntBE=function(h,d,v){h>>>=0,d>>>=0,v||st(h,d,this.length);let T=d,C=1,I=this[h+--T];for(;T>0&&(C*=256);)I+=this[h+--T]*C;return C*=128,I>=C&&(I-=Math.pow(2,8*d)),I},a.prototype.readInt8=function(h,d){return h>>>=0,d||st(h,1,this.length),128&this[h]?-1*(255-this[h]+1):this[h]},a.prototype.readInt16LE=function(h,d){h>>>=0,d||st(h,2,this.length);let v=this[h]|this[h+1]<<8;return 32768&v?4294901760|v:v},a.prototype.readInt16BE=function(h,d){h>>>=0,d||st(h,2,this.length);let v=this[h+1]|this[h]<<8;return 32768&v?4294901760|v:v},a.prototype.readInt32LE=function(h,d){return h>>>=0,d||st(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},a.prototype.readInt32BE=function(h,d){return h>>>=0,d||st(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},a.prototype.readBigInt64LE=A(function(h){U(h>>>=0,"offset");let d=this[h],v=this[h+7];(d===void 0||v===void 0)&&ft(h,this.length-8);let T=this[h+4]+256*this[h+5]+65536*this[h+6]+(v<<24);return(BigInt(T)<>>=0,"offset");let d=this[h],v=this[h+7];(d===void 0||v===void 0)&&ft(h,this.length-8);let T=(d<<24)+65536*this[++h]+256*this[++h]+this[++h];return(BigInt(T)<>>=0,d||st(h,4,this.length),e.read(this,h,!0,23,4)},a.prototype.readFloatBE=function(h,d){return h>>>=0,d||st(h,4,this.length),e.read(this,h,!1,23,4)},a.prototype.readDoubleLE=function(h,d){return h>>>=0,d||st(h,8,this.length),e.read(this,h,!0,52,8)},a.prototype.readDoubleBE=function(h,d){return h>>>=0,d||st(h,8,this.length),e.read(this,h,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(h,d,v,T){h=+h,d>>>=0,v>>>=0,!T&&q(this,h,d,v,Math.pow(2,8*v)-1,0);let C=1,I=0;for(this[d]=255&h;++I>>=0,v>>>=0,!T&&q(this,h,d,v,Math.pow(2,8*v)-1,0);let C=v-1,I=1;for(this[d+C]=255&h;--C>=0&&(I*=256);)this[d+C]=h/I&255;return d+v},a.prototype.writeUint8=a.prototype.writeUInt8=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,1,255,0),this[d]=255&h,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,2,65535,0),this[d]=255&h,this[d+1]=h>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,2,65535,0),this[d]=h>>>8,this[d+1]=255&h,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,4,4294967295,0),this[d+3]=h>>>24,this[d+2]=h>>>16,this[d+1]=h>>>8,this[d]=255&h,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,4,4294967295,0),this[d]=h>>>24,this[d+1]=h>>>16,this[d+2]=h>>>8,this[d+3]=255&h,d+4},a.prototype.writeBigUInt64LE=A(function(h,d=0){return X(this,h,d,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=A(function(h,d=0){return rt(this,h,d,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(h,d,v,T){if(h=+h,d>>>=0,!T){let at=Math.pow(2,8*v-1);q(this,h,d,v,at-1,-at)}let C=0,I=1,K=0;for(this[d]=255&h;++C>>=0,!T){let at=Math.pow(2,8*v-1);q(this,h,d,v,at-1,-at)}let C=v-1,I=1,K=0;for(this[d+C]=255&h;--C>=0&&(I*=256);)h<0&&K===0&&this[d+C+1]!==0&&(K=1),this[d+C]=(h/I|0)-K&255;return d+v},a.prototype.writeInt8=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,1,127,-128),h<0&&(h=255+h+1),this[d]=255&h,d+1},a.prototype.writeInt16LE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,2,32767,-32768),this[d]=255&h,this[d+1]=h>>>8,d+2},a.prototype.writeInt16BE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,2,32767,-32768),this[d]=h>>>8,this[d+1]=255&h,d+2},a.prototype.writeInt32LE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,4,2147483647,-2147483648),this[d]=255&h,this[d+1]=h>>>8,this[d+2]=h>>>16,this[d+3]=h>>>24,d+4},a.prototype.writeInt32BE=function(h,d,v){return h=+h,d>>>=0,v||q(this,h,d,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[d]=h>>>24,this[d+1]=h>>>16,this[d+2]=h>>>8,this[d+3]=255&h,d+4},a.prototype.writeBigInt64LE=A(function(h,d=0){return X(this,h,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=A(function(h,d=0){return rt(this,h,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(h,d,v){return ct(this,h,d,!0,v)},a.prototype.writeFloatBE=function(h,d,v){return ct(this,h,d,!1,v)},a.prototype.writeDoubleLE=function(h,d,v){return Q(this,h,d,!0,v)},a.prototype.writeDoubleBE=function(h,d,v){return Q(this,h,d,!1,v)},a.prototype.copy=function(h,d,v,T){if(!a.isBuffer(h))throw new TypeError("argument should be a Buffer");if(v||(v=0),!T&&T!==0&&(T=this.length),d>=h.length&&(d=h.length),d||(d=0),T>0&&T=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),h.length-d>>=0,v=v===void 0?this.length:v>>>0,h||(h=0),typeof h=="number")for(C=d;C=T+4;v-=3)d=`_${h.slice(v-3,v)}${d}`;return`${h.slice(0,v)}${d}`}function G(h,d,v,T,C,I){if(h>v||h= 0${at} and < 2${at} ** ${8*(I+1)}${at}`:`>= -(2${at} ** ${8*(I+1)-1}${at}) and < 2 ** ${8*(I+1)-1}${at}`,new $.ERR_OUT_OF_RANGE("value",K,h)}(function(K,at,lt){U(at,"offset"),(K[at]===void 0||K[at+lt]===void 0)&&ft(at,K.length-(lt+1))})(T,C,I)}function U(h,d){if(typeof h!="number")throw new $.ERR_INVALID_ARG_TYPE(d,"number",h)}function ft(h,d,v){throw Math.floor(h)!==h?(U(h,v),new $.ERR_OUT_OF_RANGE("offset","an integer",h)):d<0?new $.ERR_BUFFER_OUT_OF_BOUNDS:new $.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,h)}j("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(h,d){return`The "${h}" argument must be of type number. Received type ${typeof d}`},TypeError),j("ERR_OUT_OF_RANGE",function(h,d,v){let T=`The value of "${h}" is out of range.`,C=v;return Number.isInteger(v)&&Math.abs(v)>2**32?C=N(String(v)):typeof v=="bigint"&&(C=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(C=N(C)),C+="n"),T+=` It must be ${d}. Received ${C}`,T},RangeError);let dt=/[^+/0-9A-Za-z-_]/g;function gt(h,d){d=d||1/0;let v,T=h.length,C=null,I=[];for(let K=0;K55295&&v<57344){if(!C){if(v>56319){(d-=3)>-1&&I.push(239,191,189);continue}if(K+1===T){(d-=3)>-1&&I.push(239,191,189);continue}C=v;continue}if(v<56320){(d-=3)>-1&&I.push(239,191,189),C=v;continue}v=65536+(C-55296<<10|v-56320)}else C&&(d-=3)>-1&&I.push(239,191,189);if(C=null,v<128){if((d-=1)<0)break;I.push(v)}else if(v<2048){if((d-=2)<0)break;I.push(v>>6|192,63&v|128)}else if(v<65536){if((d-=3)<0)break;I.push(v>>12|224,v>>6&63|128,63&v|128)}else{if(!(v<1114112))throw new Error("Invalid code point");if((d-=4)<0)break;I.push(v>>18|240,v>>12&63|128,v>>6&63|128,63&v|128)}}return I}function L(h){return t.toByteArray(function(d){if((d=(d=d.split("=")[0]).trim().replace(dt,"")).length<2)return"";for(;d.length%4!=0;)d+="=";return d}(h))}function Z(h,d,v,T){let C;for(C=0;C=d.length||C>=h.length);++C)d[C+v]=h[C];return C}function tt(h,d){return h instanceof d||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===d.name}function x(h){return h!=h}let D=function(){let h="0123456789abcdef",d=new Array(256);for(let v=0;v<16;++v){let T=16*v;for(let C=0;C<16;++C)d[T+C]=h[v]+h[C]}return d}();function A(h){return typeof BigInt>"u"?Y:h}function Y(){throw new Error("BigInt not supported")}return yr}Tn(se,{Buffer:()=>no,INSPECT_MAX_BYTES:()=>Ef,default:()=>vr,kMaxLength:()=>Sf});var gn,_a,Wi,Ea,yr,Sa,vr,no,Ef,Sf,ae=be(()=>{bt(),vt(),yt(),gn={},_a=!1,Wi={},Ea=!1,yr={},Sa=!1,(vr=um()).Buffer,vr.SlowBuffer,vr.INSPECT_MAX_BYTES,vr.kMaxLength,no=vr.Buffer,Ef=vr.INSPECT_MAX_BYTES,Sf=vr.kMaxLength}),vt=be(()=>{ae()}),cm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,r){return!(r===0||r>this.max)&&(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}}),Xt=_t((t,e)=>{bt(),vt(),yt();var r=class extends Error{constructor(n){if(!Array.isArray(n))throw new TypeError("Expected input to be an Array, got "+typeof n);let l="";for(let a=0;aArray.isArray(n),ArrayPrototypeIncludes:(n,l)=>n.includes(l),ArrayPrototypeIndexOf:(n,l)=>n.indexOf(l),ArrayPrototypeJoin:(n,l)=>n.join(l),ArrayPrototypeMap:(n,l)=>n.map(l),ArrayPrototypePop:(n,l)=>n.pop(l),ArrayPrototypePush:(n,l)=>n.push(l),ArrayPrototypeSlice:(n,l,a)=>n.slice(l,a),Error,FunctionPrototypeCall:(n,l,...a)=>n.call(l,...a),FunctionPrototypeSymbolHasInstance:(n,l)=>Function.prototype[Symbol.hasInstance].call(n,l),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(n,l)=>Object.defineProperties(n,l),ObjectDefineProperty:(n,l,a)=>Object.defineProperty(n,l,a),ObjectGetOwnPropertyDescriptor:(n,l)=>Object.getOwnPropertyDescriptor(n,l),ObjectKeys:n=>Object.keys(n),ObjectSetPrototypeOf:(n,l)=>Object.setPrototypeOf(n,l),Promise,PromisePrototypeCatch:(n,l)=>n.catch(l),PromisePrototypeThen:(n,l,a)=>n.then(l,a),PromiseReject:n=>Promise.reject(n),PromiseResolve:n=>Promise.resolve(n),ReflectApply:Reflect.apply,RegExpPrototypeTest:(n,l)=>n.test(l),SafeSet:Set,String,StringPrototypeSlice:(n,l,a)=>n.slice(l,a),StringPrototypeToLowerCase:n=>n.toLowerCase(),StringPrototypeToUpperCase:n=>n.toUpperCase(),StringPrototypeTrim:n=>n.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(n,l,a)=>n.set(l,a),Boolean,Uint8Array}}),Af=_t((t,e)=>{bt(),vt(),yt(),e.exports={format:(r,...n)=>r.replace(/%([sdifj])/g,function(...[l,a]){let s=n.shift();return a==="f"?s.toFixed(6):a==="j"?JSON.stringify(s):a==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()}),inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"'))return`"${r}"`;if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}return`'${r}'`;case"number":return isNaN(r)?"NaN":Object.is(r,-0)?String(r):r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}}),ye=_t((t,e)=>{bt(),vt(),yt();var{format:r,inspect:n}=Af(),{AggregateError:l}=Xt(),a=globalThis.AggregateError||l,s=Symbol("kIsNodeError"),i=["string","function","number","object","Function","Object","boolean","bigint","symbol"],o=/^([A-Z][a-z0-9]*)+$/,u={};function c(y,w){if(!y)throw new u.ERR_INTERNAL_ASSERTION(w)}function p(y){let w="",P=y.length,O=y[0]==="-"?1:0;for(;P>=O+4;P-=3)w=`_${y.slice(P-3,P)}${w}`;return`${y.slice(0,P)}${w}`}function f(y,w,P){P||(P=Error);class O extends P{constructor(...J){super(function(z,it,E){if(typeof it=="function")return c(it.length<=E.length,`Code: ${z}; The provided arguments length (${E.length}) does not match the required ones (${it.length}).`),it(...E);let _=(it.match(/%[dfijoOs]/g)||[]).length;return c(_===E.length,`Code: ${z}; The provided arguments length (${E.length}) does not match the required ones (${_}).`),E.length===0?it:r(it,...E)}(y,w,J))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(O.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),O.prototype.code=y,O.prototype[s]=!0,u[y]=O}function g(y){let w="__node_internal_"+y.name;return Object.defineProperty(y,"name",{value:w}),y}var m=class extends Error{constructor(y="The operation was aborted",w=void 0){if(w!==void 0&&typeof w!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",w);super(y,w),this.code="ABORT_ERR",this.name="AbortError"}};f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",(y,w,P)=>{c(typeof y=="string","'name' must be a string"),Array.isArray(w)||(w=[w]);let O="The ";y.endsWith(" argument")?O+=`${y} `:O+=`"${y}" ${y.includes(".")?"property":"argument"} `,O+="must be ";let F=[],J=[],z=[];for(let E of w)c(typeof E=="string","All expected entries have to be of type string"),i.includes(E)?F.push(E.toLowerCase()):o.test(E)?J.push(E):(c(E!=="object",'The value "object" should be written as "Object"'),z.push(E));if(J.length>0){let E=F.indexOf("object");E!==-1&&(F.splice(F,E,1),J.push("Object"))}if(F.length>0){switch(F.length){case 1:O+=`of type ${F[0]}`;break;case 2:O+=`one of type ${F[0]} or ${F[1]}`;break;default:{let E=F.pop();O+=`one of type ${F.join(", ")}, or ${E}`}}(J.length>0||z.length>0)&&(O+=" or ")}if(J.length>0){switch(J.length){case 1:O+=`an instance of ${J[0]}`;break;case 2:O+=`an instance of ${J[0]} or ${J[1]}`;break;default:{let E=J.pop();O+=`an instance of ${J.join(", ")}, or ${E}`}}z.length>0&&(O+=" or ")}switch(z.length){case 0:break;case 1:z[0].toLowerCase()!==z[0]&&(O+="an "),O+=`${z[0]}`;break;case 2:O+=`one of ${z[0]} or ${z[1]}`;break;default:{let E=z.pop();O+=`one of ${z.join(", ")}, or ${E}`}}if(P==null)O+=`. Received ${P}`;else if(typeof P=="function"&&P.name)O+=`. Received function ${P.name}`;else if(typeof P=="object"){var it;(it=P.constructor)!==null&&it!==void 0&&it.name?O+=`. Received an instance of ${P.constructor.name}`:O+=`. Received ${n(P,{depth:-1})}`}else{let E=n(P,{colors:!1});E.length>25&&(E=`${E.slice(0,25)}...`),O+=`. Received type ${typeof P} (${E})`}return O},TypeError),f("ERR_INVALID_ARG_VALUE",(y,w,P="is invalid")=>{let O=n(w);return O.length>128&&(O=O.slice(0,128)+"..."),`The ${y.includes(".")?"property":"argument"} '${y}' ${P}. Received ${O}`},TypeError),f("ERR_INVALID_RETURN_VALUE",(y,w,P)=>{var O;return`Expected ${y} to be returned from the "${w}" function but got ${P!=null&&(O=P.constructor)!==null&&O!==void 0&&O.name?`instance of ${P.constructor.name}`:"type "+typeof P}.`},TypeError),f("ERR_MISSING_ARGS",(...y)=>{c(y.length>0,"At least one arg needs to be specified");let w,P=y.length;switch(y=(Array.isArray(y)?y:[y]).map(O=>`"${O}"`).join(" or "),P){case 1:w+=`The ${y[0]} argument`;break;case 2:w+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let O=y.pop();w+=`The ${y.join(", ")}, and ${O} arguments`}}return`${w} must be specified`},TypeError),f("ERR_OUT_OF_RANGE",(y,w,P)=>{let O;if(c(w,'Missing "range" argument'),Number.isInteger(P)&&Math.abs(P)>2**32)O=p(String(P));else if(typeof P=="bigint"){O=String(P);let F=BigInt(2)**BigInt(32);(P>F||P<-F)&&(O=p(O)),O+="n"}else O=n(P);return`The value of "${y}" is out of range. It must be ${w}. Received ${O}`},RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:m,aggregateTwoErrors:g(function(y,w){if(y&&w&&y!==w){if(Array.isArray(w.errors))return w.errors.push(y),w;let P=new a([w,y],w.message);return P.code=w.code,P}return y||w}),hideStackFrames:g,codes:u}}),ui=_t((t,e)=>{bt(),vt(),yt();var{AbortController:r,AbortSignal:n}=typeof self<"u"?self:typeof window<"u"?window:void 0;e.exports=r,e.exports.AbortSignal=n,e.exports.default=r});function Ut(){Ut.init.call(this)}function $i(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function kf(t){return t._maxListeners===void 0?Ut.defaultMaxListeners:t._maxListeners}function Nu(t,e,r,n){var l,a,s;if($i(r),(a=t._events)===void 0?(a=t._events=Object.create(null),t._eventsCount=0):(a.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),s=a[e]),s===void 0)s=a[e]=r,++t._eventsCount;else if(typeof s=="function"?s=a[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(l=kf(t))>0&&s.length>l&&!s.warned){s.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=s.length}return t}function hm(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Uu(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=hm.bind(n);return l.listener=r,n.wrapFn=l,l}function Du(t,e,r){var n=t._events;if(n===void 0)return[];var l=n[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?function(a){for(var s=new Array(a.length),i=0;i{bt(),vt(),yt(),$r=typeof Reflect=="object"?Reflect:null,Zo=$r&&typeof $r.apply=="function"?$r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)},$u=$r&&typeof $r.ownKeys=="function"?$r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},ts=Number.isNaN||function(t){return t!=t},Wu=Ut,Ut.EventEmitter=Ut,Ut.prototype._events=void 0,Ut.prototype._eventsCount=0,Ut.prototype._maxListeners=void 0,es=10,Object.defineProperty(Ut,"defaultMaxListeners",{enumerable:!0,get:function(){return es},set:function(t){if(typeof t!="number"||t<0||ts(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");es=t}}),Ut.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ut.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ts(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},Ut.prototype.getMaxListeners=function(){return kf(this)},Ut.prototype.emit=function(t){for(var e=[],r=1;r0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var i=l[t];if(i===void 0)return!1;if(typeof i=="function")Zo(i,this,e);else{var o=i.length,u=If(i,o);for(r=0;r=0;a--)if(r[a]===e||r[a].listener===e){s=r[a].listener,l=a;break}if(l<0)return this;l===0?r.shift():function(i,o){for(;o+1=0;n--)this.removeListener(t,e[n]);return this},Ut.prototype.listeners=function(t){return Du(this,t,!0)},Ut.prototype.rawListeners=function(t){return Du(this,t,!1)},Ut.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Fu.call(t,e)},Ut.prototype.listenerCount=Fu,Ut.prototype.eventNames=function(){return this._eventsCount>0?$u(this._events):[]},(Oe=Wu).EventEmitter,Oe.defaultMaxListeners,Oe.init,Oe.listenerCount,Oe.EventEmitter,Oe.defaultMaxListeners,Oe.init,Oe.listenerCount}),jr={};Tn(jr,{EventEmitter:()=>Of,default:()=>Oe,defaultMaxListeners:()=>Tf,init:()=>xf,listenerCount:()=>Cf,on:()=>Rf,once:()=>Pf});var Of,Tf,xf,Cf,Rf,Pf,on=be(()=>{bt(),vt(),yt(),Vu(),Vu(),Oe.once=function(t,e){return new Promise((r,n)=>{function l(...s){a!==void 0&&t.removeListener("error",a),r(s)}let a;e!=="error"&&(a=s=>{t.removeListener(name,l),n(s)},t.once("error",a)),t.once(e,l)})},Oe.on=function(t,e){let r=[],n=[],l=null,a=!1,s={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(l){let c=Promise.reject(l);return l=null,c}return a?createIterResult(void 0,!0):new Promise((c,p)=>n.push({resolve:c,reject:p}))},async return(){t.removeListener(e,i),t.removeListener("error",o),a=!0;for(let u of n)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){l=u,t.removeListener(e,i),t.removeListener("error",o)},[Symbol.asyncIterator](){return this}};return t.on(e,i),t.on("error",o),s;function i(...u){let c=n.shift();c?c.resolve(createIterResult(u,!1)):r.push(u)}function o(u){a=!0;let c=n.shift();c?c.reject(u):l=u,s.return()}},{EventEmitter:Of,defaultMaxListeners:Tf,init:xf,listenerCount:Cf,on:Rf,once:Pf}=Oe}),_e=_t((t,e)=>{bt(),vt(),yt();var r=(ae(),Dt(se)),{format:n,inspect:l}=Af(),{codes:{ERR_INVALID_ARG_TYPE:a}}=ye(),{kResistStopPropagation:s,AggregateError:i,SymbolDispose:o}=Xt(),u=globalThis.AbortSignal||ui().AbortSignal,c=globalThis.AbortController||ui().AbortController,p=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||r.Blob,g=typeof f<"u"?function(y){return y instanceof f}:function(y){return!1},m=(y,w)=>{if(y!==void 0&&(y===null||typeof y!="object"||!("aborted"in y)))throw new a(w,"AbortSignal",y)};e.exports={AggregateError:i,kEmptyObject:Object.freeze({}),once(y){let w=!1;return function(...P){w||(w=!0,y.apply(this,P))}},createDeferredPromise:function(){let y,w;return{promise:new Promise((P,O)=>{y=P,w=O}),resolve:y,reject:w}},promisify:y=>new Promise((w,P)=>{y((O,...F)=>O?P(O):w(...F))}),debuglog:()=>function(){},format:n,inspect:l,types:{isAsyncFunction:y=>y instanceof p,isArrayBufferView:y=>ArrayBuffer.isView(y)},isBlob:g,deprecate:(y,w)=>y,addAbortListener:(on(),Dt(jr)).addAbortListener||function(y,w){if(y===void 0)throw new a("signal","AbortSignal",y);let P;return m(y,"signal"),((O,F)=>{if(typeof O!="function")throw new a(F,"Function",O)})(w,"listener"),y.aborted?queueMicrotask(()=>w()):(y.addEventListener("abort",w,{__proto__:null,once:!0,[s]:!0}),P=()=>{y.removeEventListener("abort",w)}),{__proto__:null,[o](){var O;(O=P)===null||O===void 0||O()}}},AbortSignalAny:u.any||function(y){if(y.length===1)return y[0];let w=new c,P=()=>w.abort();return y.forEach(O=>{m(O,"signals"),O.addEventListener("abort",P,{once:!0})}),w.signal.addEventListener("abort",()=>{y.forEach(O=>O.removeEventListener("abort",P))},{once:!0}),w.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),gi=_t((t,e)=>{bt(),vt(),yt();var{ArrayIsArray:r,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:l,ArrayPrototypeMap:a,NumberIsInteger:s,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:o,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:p,RegExpPrototypeExec:f,String:g,StringPrototypeToUpperCase:m,StringPrototypeTrim:y}=Xt(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:P,ERR_INVALID_ARG_TYPE:O,ERR_INVALID_ARG_VALUE:F,ERR_OUT_OF_RANGE:J,ERR_UNKNOWN_SIGNAL:z}}=ye(),{normalizeEncoding:it}=_e(),{isAsyncFunction:E,isArrayBufferView:_}=_e().types,b={},R=/^[0-7]+$/,B=w((L,Z,tt=u,x=o)=>{if(typeof L!="number")throw new O(Z,"number",L);if(!s(L))throw new J(Z,"an integer",L);if(Lx)throw new J(Z,`>= ${tt} && <= ${x}`,L)}),et=w((L,Z,tt=-2147483648,x=2147483647)=>{if(typeof L!="number")throw new O(Z,"number",L);if(!s(L))throw new J(Z,"an integer",L);if(Lx)throw new J(Z,`>= ${tt} && <= ${x}`,L)}),st=w((L,Z,tt=!1)=>{if(typeof L!="number")throw new O(Z,"number",L);if(!s(L))throw new J(Z,"an integer",L);let x=tt?1:0,D=4294967295;if(LD)throw new J(Z,`>= ${x} && <= ${D}`,L)});function q(L,Z){if(typeof L!="string")throw new O(Z,"string",L)}var X=w((L,Z,tt)=>{if(!n(tt,L)){let x="must be one of: "+l(a(tt,D=>typeof D=="string"?`'${D}'`:g(D)),", ");throw new F(Z,L,x)}});function rt(L,Z){if(typeof L!="boolean")throw new O(Z,"boolean",L)}function W(L,Z,tt){return L!=null&&p(L,Z)?L[Z]:tt}var ct=w((L,Z,tt=null)=>{let x=W(tt,"allowArray",!1),D=W(tt,"allowFunction",!1);if(!W(tt,"nullable",!1)&&L===null||!x&&r(L)||typeof L!="object"&&(!D||typeof L!="function"))throw new O(Z,"Object",L)}),Q=w((L,Z)=>{if(L!=null&&typeof L!="object"&&typeof L!="function")throw new O(Z,"a dictionary",L)}),$=w((L,Z,tt=0)=>{if(!r(L))throw new O(Z,"Array",L);if(L.length{if(!_(L))throw new O(Z,["Buffer","TypedArray","DataView"],L)}),N=w((L,Z)=>{if(L!==void 0&&(L===null||typeof L!="object"||!("aborted"in L)))throw new O(Z,"AbortSignal",L)}),G=w((L,Z)=>{if(typeof L!="function")throw new O(Z,"Function",L)}),U=w((L,Z)=>{if(typeof L!="function"||E(L))throw new O(Z,"Function",L)}),ft=w((L,Z)=>{if(L!==void 0)throw new O(Z,"undefined",L)}),dt=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function gt(L,Z){if(typeof L>"u"||!f(dt,L))throw new F(Z,L,'must be an array or string of format "; rel=preload; as=style"')}e.exports={isInt32:function(L){return L===(0|L)},isUint32:function(L){return L===L>>>0},parseFileMode:function(L,Z,tt){if(typeof L>"u"&&(L=tt),typeof L=="string"){if(f(R,L)===null)throw new F(Z,L,"must be a 32-bit unsigned integer or an octal string");L=c(L,8)}return st(L,Z),L},validateArray:$,validateStringArray:function(L,Z){$(L,Z);for(let tt=0;ttx||(tt!=null||x!=null)&&i(L))throw new J(Z,`${tt!=null?`>= ${tt}`:""}${tt!=null&&x!=null?" && ":""}${x!=null?`<= ${x}`:""}`,L)},validateObject:ct,validateOneOf:X,validatePlainFunction:U,validatePort:function(L,Z="Port",tt=!0){if(typeof L!="number"&&typeof L!="string"||typeof L=="string"&&y(L).length===0||+L!=+L>>>0||L>65535||L===0&&!tt)throw new P(Z,L,tt);return 0|L},validateSignalName:function(L,Z="signal"){if(q(L,Z),b[L]===void 0)throw b[m(L)]!==void 0?new z(L+" (signals must use all capital letters)"):new z(L)},validateString:q,validateUint32:st,validateUndefined:ft,validateUnion:function(L,Z,tt){if(!n(tt,L))throw new O(Z,`('${l(tt,"|")}')`,L)},validateAbortSignal:N,validateLinkHeaderValue:function(L){if(typeof L=="string")return gt(L,"hints"),L;if(r(L)){let Z=L.length,tt="";if(Z===0)return tt;for(let x=0;x; rel=preload; as=style"')}}}),sn=_t((t,e)=>{bt(),vt(),yt();var r,n,l=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function i(w){if(r===setTimeout)return setTimeout(w,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(w,0);try{return r(w,0)}catch{try{return r.call(null,w,0)}catch{return r.call(this,w,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:a}catch{r=a}try{n=typeof clearTimeout=="function"?clearTimeout:s}catch{n=s}})();var o,u=[],c=!1,p=-1;function f(){!c||!o||(c=!1,o.length?u=o.concat(u):p=-1,u.length&&g())}function g(){if(!c){var w=i(f);c=!0;for(var P=u.length;P;){for(o=u,u=[];++p1)for(var O=1;O{bt(),vt(),yt();var{SymbolAsyncIterator:r,SymbolIterator:n,SymbolFor:l}=Xt(),a=l("nodejs.stream.destroyed"),s=l("nodejs.stream.errored"),i=l("nodejs.stream.readable"),o=l("nodejs.stream.writable"),u=l("nodejs.stream.disturbed"),c=l("nodejs.webstream.isClosedPromise"),p=l("nodejs.webstream.controllerErrorFunction");function f(b,R=!1){var B;return!(!b||typeof b.pipe!="function"||typeof b.on!="function"||R&&(typeof b.pause!="function"||typeof b.resume!="function")||b._writableState&&((B=b._readableState)===null||B===void 0?void 0:B.readable)===!1||b._writableState&&!b._readableState)}function g(b){var R;return!(!b||typeof b.write!="function"||typeof b.on!="function"||b._readableState&&((R=b._writableState)===null||R===void 0?void 0:R.writable)===!1)}function m(b){return b&&(b._readableState||b._writableState||typeof b.write=="function"&&typeof b.on=="function"||typeof b.pipe=="function"&&typeof b.on=="function")}function y(b){return!(!b||m(b)||typeof b.pipeThrough!="function"||typeof b.getReader!="function"||typeof b.cancel!="function")}function w(b){return!(!b||m(b)||typeof b.getWriter!="function"||typeof b.abort!="function")}function P(b){return!(!b||m(b)||typeof b.readable!="object"||typeof b.writable!="object")}function O(b){if(!m(b))return null;let R=b._writableState,B=b._readableState,et=R||B;return!!(b.destroyed||b[a]||et!=null&&et.destroyed)}function F(b){if(!g(b))return null;if(b.writableEnded===!0)return!0;let R=b._writableState;return(R==null||!R.errored)&&(typeof(R==null?void 0:R.ended)!="boolean"?null:R.ended)}function J(b,R){if(!f(b))return null;let B=b._readableState;return(B==null||!B.errored)&&(typeof(B==null?void 0:B.endEmitted)!="boolean"?null:!!(B.endEmitted||R===!1&&B.ended===!0&&B.length===0))}function z(b){return b&&b[i]!=null?b[i]:typeof(b==null?void 0:b.readable)!="boolean"?null:!O(b)&&f(b)&&b.readable&&!J(b)}function it(b){return b&&b[o]!=null?b[o]:typeof(b==null?void 0:b.writable)!="boolean"?null:!O(b)&&g(b)&&b.writable&&!F(b)}function E(b){return typeof b._closed=="boolean"&&typeof b._defaultKeepAlive=="boolean"&&typeof b._removedConnection=="boolean"&&typeof b._removedContLen=="boolean"}function _(b){return typeof b._sent100=="boolean"&&E(b)}e.exports={isDestroyed:O,kIsDestroyed:a,isDisturbed:function(b){var R;return!(!b||!((R=b[u])!==null&&R!==void 0?R:b.readableDidRead||b.readableAborted))},kIsDisturbed:u,isErrored:function(b){var R,B,et,st,q,X,rt,W,ct,Q;return!(!b||!((R=(B=(et=(st=(q=(X=b[s])!==null&&X!==void 0?X:b.readableErrored)!==null&&q!==void 0?q:b.writableErrored)!==null&&st!==void 0?st:(rt=b._readableState)===null||rt===void 0?void 0:rt.errorEmitted)!==null&&et!==void 0?et:(W=b._writableState)===null||W===void 0?void 0:W.errorEmitted)!==null&&B!==void 0?B:(ct=b._readableState)===null||ct===void 0?void 0:ct.errored)!==null&&R!==void 0?R:(Q=b._writableState)!==null&&Q!==void 0&&Q.errored))},kIsErrored:s,isReadable:z,kIsReadable:i,kIsClosedPromise:c,kControllerErrorFunction:p,kIsWritable:o,isClosed:function(b){if(!m(b))return null;if(typeof b.closed=="boolean")return b.closed;let R=b._writableState,B=b._readableState;return typeof(R==null?void 0:R.closed)=="boolean"||typeof(B==null?void 0:B.closed)=="boolean"?(R==null?void 0:R.closed)||(B==null?void 0:B.closed):typeof b._closed=="boolean"&&E(b)?b._closed:null},isDuplexNodeStream:function(b){return!(!b||typeof b.pipe!="function"||!b._readableState||typeof b.on!="function"||typeof b.write!="function")},isFinished:function(b,R){return m(b)?!!O(b)||!((R==null?void 0:R.readable)!==!1&&z(b)||(R==null?void 0:R.writable)!==!1&&it(b)):null},isIterable:function(b,R){return b!=null&&(R===!0?typeof b[r]=="function":R===!1?typeof b[n]=="function":typeof b[r]=="function"||typeof b[n]=="function")},isReadableNodeStream:f,isReadableStream:y,isReadableEnded:function(b){if(!f(b))return null;if(b.readableEnded===!0)return!0;let R=b._readableState;return!(!R||R.errored)&&(typeof(R==null?void 0:R.ended)!="boolean"?null:R.ended)},isReadableFinished:J,isReadableErrored:function(b){var R,B;return m(b)?b.readableErrored?b.readableErrored:(R=(B=b._readableState)===null||B===void 0?void 0:B.errored)!==null&&R!==void 0?R:null:null},isNodeStream:m,isWebStream:function(b){return y(b)||w(b)||P(b)},isWritable:it,isWritableNodeStream:g,isWritableStream:w,isWritableEnded:F,isWritableFinished:function(b,R){if(!g(b))return null;if(b.writableFinished===!0)return!0;let B=b._writableState;return(B==null||!B.errored)&&(typeof(B==null?void 0:B.finished)!="boolean"?null:!!(B.finished||R===!1&&B.ended===!0&&B.length===0))},isWritableErrored:function(b){var R,B;return m(b)?b.writableErrored?b.writableErrored:(R=(B=b._writableState)===null||B===void 0?void 0:B.errored)!==null&&R!==void 0?R:null:null},isServerRequest:function(b){var R;return typeof b._consuming=="boolean"&&typeof b._dumped=="boolean"&&((R=b.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0},isServerResponse:_,willEmitClose:function(b){if(!m(b))return null;let R=b._writableState,B=b._readableState,et=R||B;return!et&&_(b)||!!(et&&et.autoDestroy&&et.emitClose&&et.closed===!1)},isTransformStream:P}}),Lr=_t((t,e)=>{bt(),vt(),yt();var r,n=sn(),{AbortError:l,codes:a}=ye(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:i}=a,{kEmptyObject:o,once:u}=_e(),{validateAbortSignal:c,validateFunction:p,validateObject:f,validateBoolean:g}=gi(),{Promise:m,PromisePrototypeThen:y,SymbolDispose:w}=Xt(),{isClosed:P,isReadable:O,isReadableNodeStream:F,isReadableStream:J,isReadableFinished:z,isReadableErrored:it,isWritable:E,isWritableNodeStream:_,isWritableStream:b,isWritableFinished:R,isWritableErrored:B,isNodeStream:et,willEmitClose:st,kIsClosedPromise:q}=hr(),X=()=>{};function rt(W,ct,Q){var $,j;if(arguments.length===2?(Q=ct,ct=o):ct==null?ct=o:f(ct,"options"),p(Q,"callback"),c(ct.signal,"options.signal"),Q=u(Q),J(W)||b(W))return function(T,C,I){let K=!1,at=X;if(C.signal)if(at=()=>{K=!0,I.call(T,new l(void 0,{cause:C.signal.reason}))},C.signal.aborted)n.nextTick(at);else{let ht=(r=r||_e().addAbortListener)(C.signal,at),ut=I;I=u((...M)=>{ht[w](),ut.apply(T,M)})}let lt=(...ht)=>{K||n.nextTick(()=>I.apply(T,ht))};return y(T[q].promise,lt,lt),X}(W,ct,Q);if(!et(W))throw new s("stream",["ReadableStream","WritableStream","Stream"],W);let N=($=ct.readable)!==null&&$!==void 0?$:F(W),G=(j=ct.writable)!==null&&j!==void 0?j:_(W),U=W._writableState,ft=W._readableState,dt=()=>{W.writable||Z()},gt=st(W)&&F(W)===N&&_(W)===G,L=R(W,!1),Z=()=>{L=!0,W.destroyed&&(gt=!1),(!gt||W.readable&&!N)&&(!N||tt)&&Q.call(W)},tt=z(W,!1),x=()=>{tt=!0,W.destroyed&&(gt=!1),(!gt||W.writable&&!G)&&(!G||L)&&Q.call(W)},D=T=>{Q.call(W,T)},A=P(W),Y=()=>{A=!0;let T=B(W)||it(W);return T&&typeof T!="boolean"?Q.call(W,T):N&&!tt&&F(W,!0)&&!z(W,!1)?Q.call(W,new i):!G||L||R(W,!1)?void Q.call(W):Q.call(W,new i)},h=()=>{A=!0;let T=B(W)||it(W);if(T&&typeof T!="boolean")return Q.call(W,T);Q.call(W)},d=()=>{W.req.on("finish",Z)};(function(T){return T.setHeader&&typeof T.abort=="function"})(W)?(W.on("complete",Z),gt||W.on("abort",Y),W.req?d():W.on("request",d)):G&&!U&&(W.on("end",dt),W.on("close",dt)),!gt&&typeof W.aborted=="boolean"&&W.on("aborted",Y),W.on("end",x),W.on("finish",Z),ct.error!==!1&&W.on("error",D),W.on("close",Y),A?n.nextTick(Y):U!=null&&U.errorEmitted||ft!=null&&ft.errorEmitted?gt||n.nextTick(h):(!N&&(!gt||O(W))&&(L||E(W)===!1)||!G&&(!gt||E(W))&&(tt||O(W)===!1)||ft&&W.req&&W.aborted)&&n.nextTick(h);let v=()=>{Q=X,W.removeListener("aborted",Y),W.removeListener("complete",Z),W.removeListener("abort",Y),W.removeListener("request",d),W.req&&W.req.removeListener("finish",Z),W.removeListener("end",dt),W.removeListener("close",dt),W.removeListener("finish",Z),W.removeListener("end",x),W.removeListener("error",D),W.removeListener("close",Y)};if(ct.signal&&!A){let T=()=>{let C=Q;v(),C.call(W,new l(void 0,{cause:ct.signal.reason}))};if(ct.signal.aborted)n.nextTick(T);else{let C=(r=r||_e().addAbortListener)(ct.signal,T),I=Q;Q=u((...K)=>{C[w](),I.apply(W,K)})}}return v}e.exports=rt,e.exports.finished=function(W,ct){var Q;let $=!1;return ct===null&&(ct=o),(Q=ct)!==null&&Q!==void 0&&Q.cleanup&&(g(ct.cleanup,"cleanup"),$=ct.cleanup),new m((j,N)=>{let G=rt(W,ct,U=>{$&&G(),U?N(U):j()})})}}),xn=_t((t,e)=>{bt(),vt(),yt();var r=sn(),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:l},AbortError:a}=ye(),{Symbol:s}=Xt(),{kIsDestroyed:i,isDestroyed:o,isFinished:u,isServerRequest:c}=hr(),p=s("kDestroy"),f=s("kConstruct");function g(_,b,R){_&&(_.stack,b&&!b.errored&&(b.errored=_),R&&!R.errored&&(R.errored=_))}function m(_,b,R){let B=!1;function et(st){if(B)return;B=!0;let q=_._readableState,X=_._writableState;g(st,X,q),X&&(X.closed=!0),q&&(q.closed=!0),typeof R=="function"&&R(st),st?r.nextTick(y,_,st):r.nextTick(w,_)}try{_._destroy(b||null,et)}catch(st){et(st)}}function y(_,b){P(_,b),w(_)}function w(_){let b=_._readableState,R=_._writableState;R&&(R.closeEmitted=!0),b&&(b.closeEmitted=!0),(R!=null&&R.emitClose||b!=null&&b.emitClose)&&_.emit("close")}function P(_,b){let R=_._readableState,B=_._writableState;B!=null&&B.errorEmitted||R!=null&&R.errorEmitted||(B&&(B.errorEmitted=!0),R&&(R.errorEmitted=!0),_.emit("error",b))}function O(_,b,R){let B=_._readableState,et=_._writableState;if(et!=null&&et.destroyed||B!=null&&B.destroyed)return this;B!=null&&B.autoDestroy||et!=null&&et.autoDestroy?_.destroy(b):b&&(b.stack,et&&!et.errored&&(et.errored=b),B&&!B.errored&&(B.errored=b),R?r.nextTick(P,_,b):P(_,b))}function F(_){let b=!1;function R(B){if(b)return void O(_,B??new l);b=!0;let et=_._readableState,st=_._writableState,q=st||et;et&&(et.constructed=!0),st&&(st.constructed=!0),q.destroyed?_.emit(p,B):B?O(_,B,!0):r.nextTick(J,_)}try{_._construct(B=>{r.nextTick(R,B)})}catch(B){r.nextTick(R,B)}}function J(_){_.emit(f)}function z(_){return(_==null?void 0:_.setHeader)&&typeof _.abort=="function"}function it(_){_.emit("close")}function E(_,b){_.emit("error",b),r.nextTick(it,_)}e.exports={construct:function(_,b){if(typeof _._construct!="function")return;let R=_._readableState,B=_._writableState;R&&(R.constructed=!1),B&&(B.constructed=!1),_.once(f,b),!(_.listenerCount(f)>1)&&r.nextTick(F,_)},destroyer:function(_,b){!_||o(_)||(!b&&!u(_)&&(b=new a),c(_)?(_.socket=null,_.destroy(b)):z(_)?_.abort():z(_.req)?_.req.abort():typeof _.destroy=="function"?_.destroy(b):typeof _.close=="function"?_.close():b?r.nextTick(E,_,b):r.nextTick(it,_),_.destroyed||(_[i]=!0))},destroy:function(_,b){let R=this._readableState,B=this._writableState,et=B||R;return B!=null&&B.destroyed||R!=null&&R.destroyed?(typeof b=="function"&&b(),this):(g(_,B,R),B&&(B.destroyed=!0),R&&(R.destroyed=!0),et.constructed?m(this,_,b):this.once(p,function(st){m(this,n(st,_),b)}),this)},undestroy:function(){let _=this._readableState,b=this._writableState;_&&(_.constructed=!0,_.closed=!1,_.closeEmitted=!1,_.destroyed=!1,_.errored=null,_.errorEmitted=!1,_.reading=!1,_.ended=_.readable===!1,_.endEmitted=_.readable===!1),b&&(b.constructed=!0,b.destroyed=!1,b.closed=!1,b.closeEmitted=!1,b.errored=null,b.errorEmitted=!1,b.finalCalled=!1,b.prefinished=!1,b.ended=b.writable===!1,b.ending=b.writable===!1,b.finished=b.writable===!1)},errorOrDestroy:O}}),pl=_t((t,e)=>{bt(),vt(),yt();var{ArrayIsArray:r,ObjectSetPrototypeOf:n}=Xt(),{EventEmitter:l}=(on(),Dt(jr));function a(i){l.call(this,i)}function s(i,o,u){if(typeof i.prependListener=="function")return i.prependListener(o,u);i._events&&i._events[o]?r(i._events[o])?i._events[o].unshift(u):i._events[o]=[u,i._events[o]]:i.on(o,u)}n(a.prototype,l.prototype),n(a,l),a.prototype.pipe=function(i,o){let u=this;function c(P){i.writable&&i.write(P)===!1&&u.pause&&u.pause()}function p(){u.readable&&u.resume&&u.resume()}u.on("data",c),i.on("drain",p),!i._isStdio&&(!o||o.end!==!1)&&(u.on("end",g),u.on("close",m));let f=!1;function g(){f||(f=!0,i.end())}function m(){f||(f=!0,typeof i.destroy=="function"&&i.destroy())}function y(P){w(),l.listenerCount(this,"error")===0&&this.emit("error",P)}function w(){u.removeListener("data",c),i.removeListener("drain",p),u.removeListener("end",g),u.removeListener("close",m),u.removeListener("error",y),i.removeListener("error",y),u.removeListener("end",w),u.removeListener("close",w),i.removeListener("close",w)}return s(u,"error",y),s(i,"error",y),u.on("end",w),u.on("close",w),i.on("close",w),i.emit("pipe",u),i},e.exports={Stream:a,prependListener:s}}),Eo=_t((t,e)=>{bt(),vt(),yt();var r,{SymbolDispose:n}=Xt(),{AbortError:l,codes:a}=ye(),{isNodeStream:s,isWebStream:i,kControllerErrorFunction:o}=hr(),u=Lr(),{ERR_INVALID_ARG_TYPE:c}=a;e.exports.addAbortSignal=function(p,f){if(((g,m)=>{if(typeof g!="object"||!("aborted"in g))throw new c(m,"AbortSignal",g)})(p,"signal"),!s(f)&&!i(f))throw new c("stream",["ReadableStream","WritableStream","Stream"],f);return e.exports.addAbortSignalNoValidate(p,f)},e.exports.addAbortSignalNoValidate=function(p,f){if(typeof p!="object"||!("aborted"in p))return f;let g=s(f)?()=>{f.destroy(new l(void 0,{cause:p.reason}))}:()=>{f[o](new l(void 0,{cause:p.reason}))};if(p.aborted)g();else{let m=(r=r||_e().addAbortListener)(p,g);u(f,m[n])}return f}}),fm=_t((t,e)=>{bt(),vt(),yt();var{StringPrototypeSlice:r,SymbolIterator:n,TypedArrayPrototypeSet:l,Uint8Array:a}=Xt(),{Buffer:s}=(ae(),Dt(se)),{inspect:i}=_e();e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){let u={data:o,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(o){let u={data:o,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let u=this.head,c=""+u.data;for(;(u=u.next)!==null;)c+=o+u.data;return c}concat(o){if(this.length===0)return s.alloc(0);let u=s.allocUnsafe(o>>>0),c=this.head,p=0;for(;c;)l(u,c.data,p),p+=c.data.length,c=c.next;return u}consume(o,u){let c=this.head.data;if(of.length)){o===f.length?(u+=f,++p,c.next?this.head=c.next:this.head=this.tail=null):(u+=r(f,0,o),this.head=c,c.data=r(f,o));break}u+=f,o-=f.length,++p}while((c=c.next)!==null);return this.length-=p,u}_getBuffer(o){let u=s.allocUnsafe(o),c=o,p=this.head,f=0;do{let g=p.data;if(!(o>g.length)){o===g.length?(l(u,g,c-o),++f,p.next?this.head=p.next:this.head=this.tail=null):(l(u,new a(g.buffer,g.byteOffset,o),c-o),this.head=p,p.data=g.slice(o));break}l(u,g,c-o),o-=g.length,++f}while((p=p.next)!==null);return this.length-=f,u}[Symbol.for("nodejs.util.inspect.custom")](o,u){return i(this,{...u,depth:0,customInspect:!1})}}}),So=_t((t,e)=>{bt(),vt(),yt();var{MathFloor:r,NumberIsInteger:n}=Xt(),{validateInteger:l}=gi(),{ERR_INVALID_ARG_VALUE:a}=ye().codes,s=16384,i=16;function o(u){return u?i:s}e.exports={getHighWaterMark:function(u,c,p,f){let g=function(m,y,w){return m.highWaterMark!=null?m.highWaterMark:y?m[w]:null}(c,f,p);if(g!=null){if(!n(g)||g<0)throw new a(f?`options.${p}`:"options.highWaterMark",g);return r(g)}return o(u.objectMode)},getDefaultHighWaterMark:o,setDefaultHighWaterMark:function(u,c){l(c,"value",0),u?i=c:s=c}}}),pm=_t((t,e)=>{bt(),vt(),yt();var r=(ae(),Dt(se)),n=r.Buffer;function l(s,i){for(var o in s)i[o]=s[o]}function a(s,i,o){return n(s,i,o)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(l(r,t),t.Buffer=a),a.prototype=Object.create(n.prototype),l(n,a),a.from=function(s,i,o){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,i,o)},a.alloc=function(s,i,o){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=n(s);return i!==void 0?typeof o=="string"?u.fill(i,o):u.fill(i):u.fill(0),u},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}}),dm=_t(t=>{bt(),vt(),yt();var e=pm().Buffer,r=e.isEncoding||function(f){switch((f=""+f)&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(f){var g;switch(this.encoding=function(m){var y=function(w){if(!w)return"utf8";for(var P;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(P)return;w=(""+w).toLowerCase(),P=!0}}(m);if(typeof y!="string"&&(e.isEncoding===r||!r(m)))throw new Error("Unknown encoding: "+m);return y||m}(f),this.encoding){case"utf16le":this.text=s,this.end=i,g=4;break;case"utf8":this.fillLast=a,g=4;break;case"base64":this.text=o,this.end=u,g=3;break;default:return this.write=c,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(g)}function l(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function a(f){var g=this.lastTotal-this.lastNeed,m=function(y,w){if((192&w[0])!=128)return y.lastNeed=0,"�";if(y.lastNeed>1&&w.length>1){if((192&w[1])!=128)return y.lastNeed=1,"�";if(y.lastNeed>2&&w.length>2&&(192&w[2])!=128)return y.lastNeed=2,"�"}}(this,f);return m!==void 0?m:this.lastNeed<=f.length?(f.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,g,0,f.length),void(this.lastNeed-=f.length))}function s(f,g){if((f.length-g)%2==0){var m=f.toString("utf16le",g);if(m){var y=m.charCodeAt(m.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",g,f.length-1)}function i(f){var g=f&&f.length?this.write(f):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,m)}return g}function o(f,g){var m=(f.length-g)%3;return m===0?f.toString("base64",g):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",g,f.length-m))}function u(f){var g=f&&f.length?this.write(f):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function c(f){return f.toString(this.encoding)}function p(f){return f&&f.length?this.write(f):""}t.StringDecoder=n,n.prototype.write=function(f){if(f.length===0)return"";var g,m;if(this.lastNeed){if((g=this.fillLast(f))===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m=0?(J>0&&(w.lastNeed=J-1),J):--F=0?(J>0&&(w.lastNeed=J-2),J):--F=0?(J>0&&(J===2?J=0:w.lastNeed=J-3),J):0))}(this,f,g);if(!this.lastNeed)return f.toString("utf8",g);this.lastTotal=m;var y=f.length-(m-this.lastNeed);return f.copy(this.lastChar,0,y),f.toString("utf8",g,y)},n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}}),Mf=_t((t,e)=>{bt(),vt(),yt();var r=sn(),{PromisePrototypeThen:n,SymbolAsyncIterator:l,SymbolIterator:a}=Xt(),{Buffer:s}=(ae(),Dt(se)),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:o}=ye().codes;e.exports=function(u,c,p){let f,g;if(typeof c=="string"||c instanceof s)return new u({objectMode:!0,...p,read(){this.push(c),this.push(null)}});if(c&&c[l])g=!0,f=c[l]();else{if(!c||!c[a])throw new i("iterable",["Iterable"],c);g=!1,f=c[a]()}let m=new u({objectMode:!0,highWaterMark:1,...p}),y=!1;return m._read=function(){y||(y=!0,async function(){for(;;){try{let{value:w,done:P}=g?await f.next():f.next();if(P)m.push(null);else{let O=w&&typeof w.then=="function"?await w:w;if(O===null)throw y=!1,new o;if(m.push(O))continue;y=!1}}catch(w){m.destroy(w)}break}}())},m._destroy=function(w,P){n(async function(O){let F=O!=null,J=typeof f.throw=="function";if(F&&J){let{value:z,done:it}=await f.throw(O);if(await z,it)return}if(typeof f.return=="function"){let{value:z}=await f.return();await z}}(w),()=>r.nextTick(P,w),O=>r.nextTick(P,O||w))},m}}),Ao=_t((t,e)=>{bt(),vt(),yt();var r=sn(),{ArrayPrototypeIndexOf:n,NumberIsInteger:l,NumberIsNaN:a,NumberParseInt:s,ObjectDefineProperties:i,ObjectKeys:o,ObjectSetPrototypeOf:u,Promise:c,SafeSet:p,SymbolAsyncDispose:f,SymbolAsyncIterator:g,Symbol:m}=Xt();e.exports=tt,tt.ReadableState=Z;var{EventEmitter:y}=(on(),Dt(jr)),{Stream:w,prependListener:P}=pl(),{Buffer:O}=(ae(),Dt(se)),{addAbortSignal:F}=Eo(),J=Lr(),z=_e().debuglog("stream",S=>{z=S}),it=fm(),E=xn(),{getHighWaterMark:_,getDefaultHighWaterMark:b}=So(),{aggregateTwoErrors:R,codes:{ERR_INVALID_ARG_TYPE:B,ERR_METHOD_NOT_IMPLEMENTED:et,ERR_OUT_OF_RANGE:st,ERR_STREAM_PUSH_AFTER_EOF:q,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:X},AbortError:rt}=ye(),{validateObject:W}=gi(),ct=m("kPaused"),{StringDecoder:Q}=dm(),$=Mf();u(tt.prototype,w.prototype),u(tt,w);var j=()=>{},{errorOrDestroy:N}=E,G=1,U=16,ft=32,dt=2048,gt=4096;function L(S){return{enumerable:!1,get(){return!!(this.state&S)},set(k){k?this.state|=S:this.state&=~S}}}function Z(S,k,ot){typeof ot!="boolean"&&(ot=k instanceof ar()),this.state=dt|gt|U|ft,S&&S.objectMode&&(this.state|=G),ot&&S&&S.readableObjectMode&&(this.state|=G),this.highWaterMark=S?_(this,S,"readableHighWaterMark",ot):b(!1),this.buffer=new it,this.length=0,this.pipes=[],this.flowing=null,this[ct]=null,S&&S.emitClose===!1&&(this.state&=-2049),S&&S.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Q(S.encoding),this.encoding=S.encoding)}function tt(S){if(!(this instanceof tt))return new tt(S);let k=this instanceof ar();this._readableState=new Z(S,this,k),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!k&&F(S.signal,this)),w.call(this,S),E.construct(this,()=>{this._readableState.needReadable&&v(this,this._readableState)})}function x(S,k,ot,pt){z("readableAddChunk",k);let wt,mt=S._readableState;if(mt.state&G||(typeof k=="string"?(ot=ot||mt.defaultEncoding,mt.encoding!==ot&&(pt&&mt.encoding?k=O.from(k,ot).toString(mt.encoding):(k=O.from(k,ot),ot=""))):k instanceof O?ot="":w._isUint8Array(k)?(k=w._uint8ArrayToBuffer(k),ot=""):k!=null&&(wt=new B("chunk",["string","Buffer","Uint8Array"],k))),wt)N(S,wt);else if(k===null)mt.state&=-9,function(Tt,Et){if(z("onEofChunk"),!Et.ended){if(Et.decoder){let Lt=Et.decoder.end();Lt&&Lt.length&&(Et.buffer.push(Lt),Et.length+=Et.objectMode?1:Lt.length)}Et.ended=!0,Et.sync?h(Tt):(Et.needReadable=!1,Et.emittedReadable=!0,d(Tt))}}(S,mt);else if(mt.state&G||k&&k.length>0)if(pt)if(4&mt.state)N(S,new X);else{if(mt.destroyed||mt.errored)return!1;D(S,mt,k,!0)}else if(mt.ended)N(S,new q);else{if(mt.destroyed||mt.errored)return!1;mt.state&=-9,mt.decoder&&!ot?(k=mt.decoder.write(k),mt.objectMode||k.length!==0?D(S,mt,k,!1):v(S,mt)):D(S,mt,k,!1)}else pt||(mt.state&=-9,v(S,mt));return!mt.ended&&(mt.length0?(65536&k.state?k.awaitDrainWriters.clear():k.awaitDrainWriters=null,k.dataEmitted=!0,S.emit("data",ot)):(k.length+=k.objectMode?1:ot.length,pt?k.buffer.unshift(ot):k.buffer.push(ot),64&k.state&&h(S)),v(S,k)}i(Z.prototype,{objectMode:L(G),ended:L(2),endEmitted:L(4),reading:L(8),constructed:L(U),sync:L(ft),needReadable:L(64),emittedReadable:L(128),readableListening:L(256),resumeScheduled:L(512),errorEmitted:L(1024),emitClose:L(dt),autoDestroy:L(gt),destroyed:L(8192),closed:L(16384),closeEmitted:L(32768),multiAwaitDrain:L(65536),readingMore:L(1<<17),dataEmitted:L(1<<18)}),tt.prototype.destroy=E.destroy,tt.prototype._undestroy=E.undestroy,tt.prototype._destroy=function(S,k){k(S)},tt.prototype[y.captureRejectionSymbol]=function(S){this.destroy(S)},tt.prototype[f]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new rt,this.destroy(S)),new c((k,ot)=>J(this,pt=>pt&&pt!==S?ot(pt):k(null)))},tt.prototype.push=function(S,k){return x(this,S,k,!1)},tt.prototype.unshift=function(S,k){return x(this,S,k,!0)},tt.prototype.isPaused=function(){let S=this._readableState;return S[ct]===!0||S.flowing===!1},tt.prototype.setEncoding=function(S){let k=new Q(S);this._readableState.decoder=k,this._readableState.encoding=this._readableState.decoder.encoding;let ot=this._readableState.buffer,pt="";for(let wt of ot)pt+=k.write(wt);return ot.clear(),pt!==""&&ot.push(pt),this._readableState.length=pt.length,this};var A;function Y(S,k){return S<=0||k.length===0&&k.ended?0:k.state&G?1:a(S)?k.flowing&&k.length?k.buffer.first().length:k.length:S<=k.length?S:k.ended?k.length:0}function h(S){let k=S._readableState;z("emitReadable",k.needReadable,k.emittedReadable),k.needReadable=!1,k.emittedReadable||(z("emitReadable",k.flowing),k.emittedReadable=!0,r.nextTick(d,S))}function d(S){let k=S._readableState;z("emitReadable_",k.destroyed,k.length,k.ended),!k.destroyed&&!k.errored&&(k.length||k.ended)&&(S.emit("readable"),k.emittedReadable=!1),k.needReadable=!k.flowing&&!k.ended&&k.length<=k.highWaterMark,at(S)}function v(S,k){!k.readingMore&&k.constructed&&(k.readingMore=!0,r.nextTick(T,S,k))}function T(S,k){for(;!k.reading&&!k.ended&&(k.length0,k.resumeScheduled&&k[ct]===!1?k.flowing=!0:S.listenerCount("data")>0?S.resume():k.readableListening||(k.flowing=null)}function I(S){z("readable nexttick read 0"),S.read(0)}function K(S,k){z("resume",k.reading),k.reading||S.read(0),k.resumeScheduled=!1,S.emit("resume"),at(S),k.flowing&&!k.reading&&S.read(0)}function at(S){let k=S._readableState;for(z("flow",k.flowing);k.flowing&&S.read()!==null;);}function lt(S,k){typeof S.read!="function"&&(S=tt.wrap(S,{objectMode:!0}));let ot=async function*(pt,wt){let mt=j;function Tt(xt){this===pt?(mt(),mt=j):mt=xt}pt.on("readable",Tt);let Et,Lt=J(pt,{writable:!1},xt=>{Et=xt?R(Et,xt):null,mt(),mt=j});try{for(;;){let xt=pt.destroyed?null:pt.read();if(xt!==null)yield xt;else{if(Et)throw Et;if(Et===null)return;await new c(Tt)}}}catch(xt){throw Et=R(Et,xt),Et}finally{!Et&&(wt==null?void 0:wt.destroyOnReturn)===!1||Et!==void 0&&!pt._readableState.autoDestroy?(pt.off("readable",Tt),Lt()):E.destroyer(pt,null)}}(S,k);return ot.stream=S,ot}function ht(S,k){if(k.length===0)return null;let ot;return k.objectMode?ot=k.buffer.shift():!S||S>=k.length?(ot=k.decoder?k.buffer.join(""):k.buffer.length===1?k.buffer.first():k.buffer.concat(k.length),k.buffer.clear()):ot=k.buffer.consume(S,k.decoder),ot}function ut(S){let k=S._readableState;z("endReadable",k.endEmitted),k.endEmitted||(k.ended=!0,r.nextTick(M,k,S))}function M(S,k){if(z("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,k.emit("end"),k.writable&&k.allowHalfOpen===!1)r.nextTick(H,k);else if(S.autoDestroy){let ot=k._writableState;(!ot||ot.autoDestroy&&(ot.finished||ot.writable===!1))&&k.destroy()}}}function H(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}function nt(){return A===void 0&&(A={}),A}tt.prototype.read=function(S){z("read",S),S===void 0?S=NaN:l(S)||(S=s(S,10));let k=this._readableState,ot=S;if(S>k.highWaterMark&&(k.highWaterMark=function(mt){if(mt>1073741824)throw new st("size","<= 1GiB",mt);return mt--,mt|=mt>>>1,mt|=mt>>>2,mt|=mt>>>4,mt|=mt>>>8,mt|=mt>>>16,++mt}(S)),S!==0&&(k.state&=-129),S===0&&k.needReadable&&((k.highWaterMark!==0?k.length>=k.highWaterMark:k.length>0)||k.ended))return z("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?ut(this):h(this),null;if((S=Y(S,k))===0&&k.ended)return k.length===0&&ut(this),null;let pt,wt=!!(64&k.state);if(z("need readable",wt),(k.length===0||k.length-S0?ht(S,k):null,pt===null?(k.needReadable=k.length<=k.highWaterMark,S=0):(k.length-=S,k.multiAwaitDrain?k.awaitDrainWriters.clear():k.awaitDrainWriters=null),k.length===0&&(k.ended||(k.needReadable=!0),ot!==S&&k.ended&&ut(this)),pt!==null&&!k.errorEmitted&&!k.closeEmitted&&(k.dataEmitted=!0,this.emit("data",pt)),pt},tt.prototype._read=function(S){throw new et("_read()")},tt.prototype.pipe=function(S,k){let ot=this,pt=this._readableState;pt.pipes.length===1&&(pt.multiAwaitDrain||(pt.multiAwaitDrain=!0,pt.awaitDrainWriters=new p(pt.awaitDrainWriters?[pt.awaitDrainWriters]:[]))),pt.pipes.push(S),z("pipe count=%d opts=%j",pt.pipes.length,k);let wt=k&&k.end===!1||S===r.stdout||S===r.stderr?Pt:Tt;function mt(le,Yt){z("onunpipe"),le===ot&&Yt&&Yt.hasUnpiped===!1&&(Yt.hasUnpiped=!0,z("cleanup"),S.removeListener("close",Ft),S.removeListener("finish",kt),Et&&S.removeListener("drain",Et),S.removeListener("error",Mt),S.removeListener("unpipe",mt),ot.removeListener("end",Tt),ot.removeListener("end",Pt),ot.removeListener("data",Nt),Lt=!0,Et&&pt.awaitDrainWriters&&(!S._writableState||S._writableState.needDrain)&&Et())}function Tt(){z("onend"),S.end()}pt.endEmitted?r.nextTick(wt):ot.once("end",wt),S.on("unpipe",mt);let Et,Lt=!1;function xt(){Lt||(pt.pipes.length===1&&pt.pipes[0]===S?(z("false write response, pause",0),pt.awaitDrainWriters=S,pt.multiAwaitDrain=!1):pt.pipes.length>1&&pt.pipes.includes(S)&&(z("false write response, pause",pt.awaitDrainWriters.size),pt.awaitDrainWriters.add(S)),ot.pause()),Et||(Et=function(le,Yt){return function(){let re=le._readableState;re.awaitDrainWriters===Yt?(z("pipeOnDrain",1),re.awaitDrainWriters=null):re.multiAwaitDrain&&(z("pipeOnDrain",re.awaitDrainWriters.size),re.awaitDrainWriters.delete(Yt)),(!re.awaitDrainWriters||re.awaitDrainWriters.size===0)&&le.listenerCount("data")&&le.resume()}}(ot,S),S.on("drain",Et))}function Nt(le){z("ondata");let Yt=S.write(le);z("dest.write",Yt),Yt===!1&&xt()}function Mt(le){if(z("onerror",le),Pt(),S.removeListener("error",Mt),S.listenerCount("error")===0){let Yt=S._writableState||S._readableState;Yt&&!Yt.errorEmitted?N(S,le):S.emit("error",le)}}function Ft(){S.removeListener("finish",kt),Pt()}function kt(){z("onfinish"),S.removeListener("close",Ft),Pt()}function Pt(){z("unpipe"),ot.unpipe(S)}return ot.on("data",Nt),P(S,"error",Mt),S.once("close",Ft),S.once("finish",kt),S.emit("pipe",ot),S.writableNeedDrain===!0?xt():pt.flowing||(z("pipe resume"),ot.resume()),S},tt.prototype.unpipe=function(S){let k=this._readableState;if(k.pipes.length===0)return this;if(!S){let pt=k.pipes;k.pipes=[],this.pause();for(let wt=0;wt0,pt.flowing!==!1&&this.resume()):S==="readable"&&!pt.endEmitted&&!pt.readableListening&&(pt.readableListening=pt.needReadable=!0,pt.flowing=!1,pt.emittedReadable=!1,z("on readable",pt.length,pt.reading),pt.length?h(this):pt.reading||r.nextTick(I,this)),ot},tt.prototype.addListener=tt.prototype.on,tt.prototype.removeListener=function(S,k){let ot=w.prototype.removeListener.call(this,S,k);return S==="readable"&&r.nextTick(C,this),ot},tt.prototype.off=tt.prototype.removeListener,tt.prototype.removeAllListeners=function(S){let k=w.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&r.nextTick(C,this),k},tt.prototype.resume=function(){let S=this._readableState;return S.flowing||(z("resume"),S.flowing=!S.readableListening,function(k,ot){ot.resumeScheduled||(ot.resumeScheduled=!0,r.nextTick(K,k,ot))}(this,S)),S[ct]=!1,this},tt.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ct]=!0,this},tt.prototype.wrap=function(S){let k=!1;S.on("data",pt=>{!this.push(pt)&&S.pause&&(k=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",pt=>{N(this,pt)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{k&&S.resume&&(k=!1,S.resume())};let ot=o(S);for(let pt=1;pt{bt(),vt(),yt();var r=sn(),{ArrayPrototypeSlice:n,Error:l,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:s,ObjectDefineProperties:i,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:p}=Xt();e.exports=W,W.WritableState=X;var{EventEmitter:f}=(on(),Dt(jr)),g=pl().Stream,{Buffer:m}=(ae(),Dt(se)),y=xn(),{addAbortSignal:w}=Eo(),{getHighWaterMark:P,getDefaultHighWaterMark:O}=So(),{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:J,ERR_MULTIPLE_CALLBACK:z,ERR_STREAM_CANNOT_PIPE:it,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:b,ERR_STREAM_WRITE_AFTER_END:R,ERR_UNKNOWN_ENCODING:B}=ye().codes,{errorOrDestroy:et}=y;function st(){}o(W.prototype,g.prototype),o(W,g);var q=c("kOnFinished");function X(A,Y,h){typeof h!="boolean"&&(h=Y instanceof ar()),this.objectMode=!(!A||!A.objectMode),h&&(this.objectMode=this.objectMode||!(!A||!A.writableObjectMode)),this.highWaterMark=A?P(this,A,"writableHighWaterMark",h):O(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let d=!(!A||A.decodeStrings!==!1);this.decodeStrings=!d,this.defaultEncoding=A&&A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j.bind(void 0,Y),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,rt(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!A||A.emitClose!==!1,this.autoDestroy=!A||A.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[q]=[]}function rt(A){A.buffered=[],A.bufferedIndex=0,A.allBuffers=!0,A.allNoop=!0}function W(A){let Y=this instanceof ar();if(!Y&&!a(W,this))return new W(A);this._writableState=new X(A,this,Y),A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final),typeof A.construct=="function"&&(this._construct=A.construct),A.signal&&w(A.signal,this)),g.call(this,A),y.construct(this,()=>{let h=this._writableState;h.writing||ft(this,h),L(this,h)})}function ct(A,Y,h,d){let v,T=A._writableState;if(typeof h=="function")d=h,h=T.defaultEncoding;else{if(h){if(h!=="buffer"&&!m.isEncoding(h))throw new B(h)}else h=T.defaultEncoding;typeof d!="function"&&(d=st)}if(Y===null)throw new b;if(!T.objectMode)if(typeof Y=="string")T.decodeStrings!==!1&&(Y=m.from(Y,h),h="buffer");else if(Y instanceof m)h="buffer";else{if(!g._isUint8Array(Y))throw new F("chunk",["string","Buffer","Uint8Array"],Y);Y=g._uint8ArrayToBuffer(Y),h="buffer"}return T.ending?v=new R:T.destroyed&&(v=new E("write")),v?(r.nextTick(d,v),et(A,v,!0),v):(T.pendingcb++,function(C,I,K,at,lt){let ht=I.objectMode?1:K.length;I.length+=ht;let ut=I.lengthh.bufferedIndex&&ft(A,h),d?h.afterWriteTickInfo!==null&&h.afterWriteTickInfo.cb===v?h.afterWriteTickInfo.count++:(h.afterWriteTickInfo={count:1,cb:v,stream:A,state:h},r.nextTick(N,h.afterWriteTickInfo)):G(A,h,1,v))):et(A,new z)}function N({stream:A,state:Y,count:h,cb:d}){return Y.afterWriteTickInfo=null,G(A,Y,h,d)}function G(A,Y,h,d){for(!Y.ending&&!A.destroyed&&Y.length===0&&Y.needDrain&&(Y.needDrain=!1,A.emit("drain"));h-- >0;)Y.pendingcb--,d();Y.destroyed&&U(Y),L(A,Y)}function U(A){if(A.writing)return;for(let v=A.bufferedIndex;v1&&A._writev){Y.pendingcb-=T-1;let I=Y.allNoop?st:at=>{for(let lt=C;lt256?(h.splice(0,C),Y.bufferedIndex=0):Y.bufferedIndex=C}Y.bufferProcessing=!1}function dt(A){return A.ending&&!A.destroyed&&A.constructed&&A.length===0&&!A.errored&&A.buffered.length===0&&!A.finished&&!A.writing&&!A.errorEmitted&&!A.closeEmitted}function gt(A,Y){!Y.prefinished&&!Y.finalCalled&&(typeof A._final!="function"||Y.destroyed?(Y.prefinished=!0,A.emit("prefinish")):(Y.finalCalled=!0,function(h,d){let v=!1;function T(C){if(v)et(h,C??z());else if(v=!0,d.pendingcb--,C){let I=d[q].splice(0);for(let K=0;K{dt(v)?Z(d,v):v.pendingcb--},A,Y)):dt(Y)&&(Y.pendingcb++,Z(A,Y))))}function Z(A,Y){Y.pendingcb--,Y.finished=!0;let h=Y[q].splice(0);for(let d=0;d{bt(),vt(),yt();var r=sn(),n=(ae(),Dt(se)),{isReadable:l,isWritable:a,isIterable:s,isNodeStream:i,isReadableNodeStream:o,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:p,isWritableStream:f}=hr(),g=Lr(),{AbortError:m,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:w}}=ye(),{destroyer:P}=xn(),O=ar(),F=Ao(),J=dl(),{createDeferredPromise:z}=_e(),it=Mf(),E=globalThis.Blob||n.Blob,_=typeof E<"u"?function(st){return st instanceof E}:function(st){return!1},b=globalThis.AbortController||ui().AbortController,{FunctionPrototypeCall:R}=Xt(),B=class extends O{constructor(st){super(st),(st==null?void 0:st.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(st==null?void 0:st.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};function et(st){let q,X,rt,W,ct,Q=st.readable&&typeof st.readable.read!="function"?F.wrap(st.readable):st.readable,$=st.writable,j=!!l(Q),N=!!a($);function G(U){let ft=W;W=null,ft?ft(U):U&&ct.destroy(U)}return ct=new B({readableObjectMode:!(Q==null||!Q.readableObjectMode),writableObjectMode:!($==null||!$.writableObjectMode),readable:j,writable:N}),N&&(g($,U=>{N=!1,U&&P(Q,U),G(U)}),ct._write=function(U,ft,dt){$.write(U,ft)?dt():q=dt},ct._final=function(U){$.end(),X=U},$.on("drain",function(){if(q){let U=q;q=null,U()}}),$.on("finish",function(){if(X){let U=X;X=null,U()}})),j&&(g(Q,U=>{j=!1,U&&P(Q,U),G(U)}),Q.on("readable",function(){if(rt){let U=rt;rt=null,U()}}),Q.on("end",function(){ct.push(null)}),ct._read=function(){for(;;){let U=Q.read();if(U===null)return void(rt=ct._read);if(!ct.push(U))return}}),ct._destroy=function(U,ft){!U&&W!==null&&(U=new m),rt=null,q=null,X=null,W===null?ft(U):(W=ft,P($,U),P(Q,U))},ct}e.exports=function st(q,X){if(c(q))return q;if(o(q))return et({readable:q});if(u(q))return et({writable:q});if(i(q))return et({writable:!1,readable:!1});if(p(q))return et({readable:F.fromWeb(q)});if(f(q))return et({writable:J.fromWeb(q)});if(typeof q=="function"){let{value:W,write:ct,final:Q,destroy:$}=function(N){let{promise:G,resolve:U}=z(),ft=new b,dt=ft.signal;return{value:N(async function*(){for(;;){let gt=G;G=null;let{chunk:L,done:Z,cb:tt}=await gt;if(r.nextTick(tt),Z)return;if(dt.aborted)throw new m(void 0,{cause:dt.reason});({promise:G,resolve:U}=z()),yield L}}(),{signal:dt}),write(gt,L,Z){let tt=U;U=null,tt({chunk:gt,done:!1,cb:Z})},final(gt){let L=U;U=null,L({done:!0,cb:gt})},destroy(gt,L){ft.abort(),L(gt)}}}(q);if(s(W))return it(B,W,{objectMode:!0,write:ct,final:Q,destroy:$});let j=W==null?void 0:W.then;if(typeof j=="function"){let N,G=R(j,W,U=>{if(U!=null)throw new w("nully","body",U)},U=>{P(N,U)});return N=new B({objectMode:!0,readable:!1,write:ct,final(U){Q(async()=>{try{await G,r.nextTick(U,null)}catch(ft){r.nextTick(U,ft)}})},destroy:$})}throw new w("Iterable, AsyncIterable or AsyncFunction",X,W)}if(_(q))return st(q.arrayBuffer());if(s(q))return it(B,q,{objectMode:!0,writable:!1});if(p(q==null?void 0:q.readable)&&f(q==null?void 0:q.writable))return B.fromWeb(q);if(typeof(q==null?void 0:q.writable)=="object"||typeof(q==null?void 0:q.readable)=="object")return et({readable:q!=null&&q.readable?o(q==null?void 0:q.readable)?q==null?void 0:q.readable:st(q.readable):void 0,writable:q!=null&&q.writable?u(q==null?void 0:q.writable)?q==null?void 0:q.writable:st(q.writable):void 0});let rt=q==null?void 0:q.then;if(typeof rt=="function"){let W;return R(rt,q,ct=>{ct!=null&&W.push(ct),W.push(null)},ct=>{P(W,ct)}),W=new B({objectMode:!0,writable:!1,read(){}})}throw new y(X,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],q)}}),ar=_t((t,e)=>{bt(),vt(),yt();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:n,ObjectKeys:l,ObjectSetPrototypeOf:a}=Xt();e.exports=c;var s,i,o=Ao(),u=dl();a(c.prototype,o.prototype),a(c,o);{let f=l(u.prototype);for(let g=0;g{bt(),vt(),yt();var{ObjectSetPrototypeOf:r,Symbol:n}=Xt();e.exports=o;var{ERR_METHOD_NOT_IMPLEMENTED:l}=ye().codes,a=ar(),{getHighWaterMark:s}=So();r(o.prototype,a.prototype),r(o,a);var i=n("kCallback");function o(p){if(!(this instanceof o))return new o(p);let f=p?s(this,p,"readableHighWaterMark",!0):null;f===0&&(p={...p,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:p.writableHighWaterMark||0}),a.call(this,p),this._readableState.sync=!1,this[i]=null,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function u(p){typeof this._flush!="function"||this.destroyed?(this.push(null),p&&p()):this._flush((f,g)=>{f?p?p(f):this.destroy(f):(g!=null&&this.push(g),this.push(null),p&&p())})}function c(){this._final!==u&&u.call(this)}o.prototype._final=u,o.prototype._transform=function(p,f,g){throw new l("_transform()")},o.prototype._write=function(p,f,g){let m=this._readableState,y=this._writableState,w=m.length;this._transform(p,f,(P,O)=>{P?g(P):(O!=null&&this.push(O),y.ended||w===m.length||m.length{bt(),vt(),yt();var{ObjectSetPrototypeOf:r}=Xt();e.exports=l;var n=Bf();function l(a){if(!(this instanceof l))return new l(a);n.call(this,a)}r(l.prototype,n.prototype),r(l,n),l.prototype._transform=function(a,s,i){i(null,a)}}),gl=_t((t,e)=>{bt(),vt(),yt();var r,n,l,a=sn(),{ArrayIsArray:s,Promise:i,SymbolAsyncIterator:o,SymbolDispose:u}=Xt(),c=Lr(),{once:p}=_e(),f=xn(),g=ar(),{aggregateTwoErrors:m,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:P,ERR_STREAM_DESTROYED:O,ERR_STREAM_PREMATURE_CLOSE:F},AbortError:J}=ye(),{validateFunction:z,validateAbortSignal:it}=gi(),{isIterable:E,isReadable:_,isReadableNodeStream:b,isNodeStream:R,isTransformStream:B,isWebStream:et,isReadableStream:st,isReadableFinished:q}=hr(),X=globalThis.AbortController||ui().AbortController;function rt(N,G,U){let ft=!1;return N.on("close",()=>{ft=!0}),{destroy:dt=>{ft||(ft=!0,f.destroyer(N,dt||new O("pipe")))},cleanup:c(N,{readable:G,writable:U},dt=>{ft=!dt})}}function W(N){if(E(N))return N;if(b(N))return async function*(G){n||(n=Ao()),yield*n.prototype[o].call(G)}(N);throw new y("val",["Readable","Iterable","AsyncIterable"],N)}async function ct(N,G,U,{end:ft}){let dt,gt=null,L=x=>{if(x&&(dt=x),gt){let D=gt;gt=null,D()}},Z=()=>new i((x,D)=>{dt?D(dt):gt=()=>{dt?D(dt):x()}});G.on("drain",L);let tt=c(G,{readable:!1},L);try{G.writableNeedDrain&&await Z();for await(let x of N)G.write(x)||await Z();ft&&(G.end(),await Z()),U()}catch(x){U(dt!==x?m(dt,x):x)}finally{tt(),G.off("drain",L)}}async function Q(N,G,U,{end:ft}){B(G)&&(G=G.writable);let dt=G.getWriter();try{for await(let gt of N)await dt.ready,dt.write(gt).catch(()=>{});await dt.ready,ft&&await dt.close(),U()}catch(gt){try{await dt.abort(gt),U(gt)}catch(L){U(L)}}}function $(N,G,U){if(N.length===1&&s(N[0])&&(N=N[0]),N.length<2)throw new P("streams");let ft,dt=new X,gt=dt.signal,L=U==null?void 0:U.signal,Z=[];function tt(){v(new J)}it(L,"options.signal"),l=l||_e().addAbortListener,L&&(ft=l(L,tt));let x,D,A,Y=[],h=0;function d(I){v(I,--h==0)}function v(I,K){var at;if(I&&(!x||x.code==="ERR_STREAM_PREMATURE_CLOSE")&&(x=I),x||K){for(;Y.length;)Y.shift()(x);(at=ft)===null||at===void 0||at[u](),dt.abort(),K&&(x||Z.forEach(lt=>lt()),a.nextTick(G,x,D))}}for(let I=0;I0,ht=at||(U==null?void 0:U.end)!==!1,ut=I===N.length-1;if(R(K)){let M=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(H)};if(ht){let{destroy:H,cleanup:nt}=rt(K,at,lt);Y.push(H),_(K)&&ut&&Z.push(nt)}K.on("error",M),_(K)&&ut&&Z.push(()=>{K.removeListener("error",M)})}if(I===0)if(typeof K=="function"){if(A=K({signal:gt}),!E(A))throw new w("Iterable, AsyncIterable or Stream","source",A)}else A=E(K)||b(K)||B(K)?K:g.from(K);else if(typeof K=="function"){var T;if(B(A)?A=W((T=A)===null||T===void 0?void 0:T.readable):A=W(A),A=K(A,{signal:gt}),at){if(!E(A,!0))throw new w("AsyncIterable",`transform[${I-1}]`,A)}else{var C;r||(r=jf());let M=new r({objectMode:!0}),H=(C=A)===null||C===void 0?void 0:C.then;if(typeof H=="function")h++,H.call(A,k=>{D=k,k!=null&&M.write(k),ht&&M.end(),a.nextTick(d)},k=>{M.destroy(k),a.nextTick(d,k)});else if(E(A,!0))h++,ct(A,M,d,{end:ht});else{if(!st(A)&&!B(A))throw new w("AsyncIterable or Promise","destination",A);{let k=A.readable||A;h++,ct(k,M,d,{end:ht})}}A=M;let{destroy:nt,cleanup:S}=rt(A,!1,!0);Y.push(nt),ut&&Z.push(S)}}else if(R(K)){if(b(A)){h+=2;let M=j(A,K,d,{end:ht});_(K)&&ut&&Z.push(M)}else if(B(A)||st(A)){let M=A.readable||A;h++,ct(M,K,d,{end:ht})}else{if(!E(A))throw new y("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);h++,ct(A,K,d,{end:ht})}A=K}else if(et(K)){if(b(A))h++,Q(W(A),K,d,{end:ht});else if(st(A)||E(A))h++,Q(A,K,d,{end:ht});else{if(!B(A))throw new y("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);h++,Q(A.readable,K,d,{end:ht})}A=K}else A=g.from(K)}return(gt!=null&>.aborted||L!=null&&L.aborted)&&a.nextTick(tt),A}function j(N,G,U,{end:ft}){let dt=!1;if(G.on("close",()=>{dt||U(new F)}),N.pipe(G,{end:!1}),ft){let gt=function(){dt=!0,G.end()};q(N)?a.nextTick(gt):N.once("end",gt)}else U();return c(N,{readable:!0,writable:!1},gt=>{let L=N._readableState;gt&>.code==="ERR_STREAM_PREMATURE_CLOSE"&&L&&L.ended&&!L.errored&&!L.errorEmitted?N.once("end",U).once("error",U):U(gt)}),c(G,{readable:!1,writable:!0},U)}e.exports={pipelineImpl:$,pipeline:function(...N){return $(N,p(function(G){return z(G[G.length-1],"streams[stream.length - 1]"),G.pop()}(N)))}}}),Lf=_t((t,e)=>{bt(),vt(),yt();var{pipeline:r}=gl(),n=ar(),{destroyer:l}=xn(),{isNodeStream:a,isReadable:s,isWritable:i,isWebStream:o,isTransformStream:u,isWritableStream:c,isReadableStream:p}=hr(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:g,ERR_MISSING_ARGS:m}}=ye(),y=Lr();e.exports=function(...w){if(w.length===0)throw new m("streams");if(w.length===1)return n.from(w[0]);let P,O,F,J,z,it=[...w];if(typeof w[0]=="function"&&(w[0]=n.from(w[0])),typeof w[w.length-1]=="function"){let B=w.length-1;w[B]=n.from(w[B])}for(let B=0;B0&&!(i(w[B])||c(w[B])||u(w[B])))throw new g(`streams[${B}]`,it[B],"must be writable")}let E=w[0],_=r(w,function(B){let et=J;J=null,et?et(B):B?z.destroy(B):!R&&!b&&z.destroy()}),b=!!(i(E)||c(E)||u(E)),R=!!(s(_)||p(_)||u(_));if(z=new n({writableObjectMode:!(E==null||!E.writableObjectMode),readableObjectMode:!(_==null||!_.readableObjectMode),writable:b,readable:R}),b){if(a(E))z._write=function(et,st,q){E.write(et,st)?q():P=q},z._final=function(et){E.end(),O=et},E.on("drain",function(){if(P){let et=P;P=null,et()}});else if(o(E)){let et=(u(E)?E.writable:E).getWriter();z._write=async function(st,q,X){try{await et.ready,et.write(st).catch(()=>{}),X()}catch(rt){X(rt)}},z._final=async function(st){try{await et.ready,et.close().catch(()=>{}),O=st}catch(q){st(q)}}}let B=u(_)?_.readable:_;y(B,()=>{if(O){let et=O;O=null,et()}})}if(R){if(a(_))_.on("readable",function(){if(F){let B=F;F=null,B()}}),_.on("end",function(){z.push(null)}),z._read=function(){for(;;){let B=_.read();if(B===null)return void(F=z._read);if(!z.push(B))return}};else if(o(_)){let B=(u(_)?_.readable:_).getReader();z._read=async function(){for(;;)try{let{value:et,done:st}=await B.read();if(!z.push(et))return;if(st)return void z.push(null)}catch{return}}}}return z._destroy=function(B,et){!B&&J!==null&&(B=new f),F=null,P=null,O=null,J===null?et(B):(J=et,a(_)&&l(_,B))},z}}),mm=_t((t,e)=>{bt(),vt(),yt();var r=globalThis.AbortController||ui().AbortController,{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:l,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:i}=ye(),{validateAbortSignal:o,validateInteger:u,validateObject:c}=gi(),p=Xt().Symbol("kWeak"),f=Xt().Symbol("kResistStopPropagation"),{finished:g}=Lr(),m=Lf(),{addAbortSignalNoValidate:y}=Eo(),{isWritable:w,isNodeStream:P}=hr(),{deprecate:O}=_e(),{ArrayPrototypePush:F,Boolean:J,MathFloor:z,Number:it,NumberIsNaN:E,Promise:_,PromiseReject:b,PromiseResolve:R,PromisePrototypeThen:B,Symbol:et}=Xt(),st=et("kEmpty"),q=et("kEof");function X($,j){if(typeof $!="function")throw new l("fn",["Function","AsyncFunction"],$);j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&o(j.signal,"options.signal");let N=1;(j==null?void 0:j.concurrency)!=null&&(N=z(j.concurrency));let G=N-1;return(j==null?void 0:j.highWaterMark)!=null&&(G=z(j.highWaterMark)),u(N,"options.concurrency",1),u(G,"options.highWaterMark",0),G+=N,(async function*(){let U,ft,dt=_e().AbortSignalAny([j==null?void 0:j.signal].filter(J)),gt=this,L=[],Z={signal:dt},tt=!1,x=0;function D(){tt=!0,A()}function A(){x-=1,Y()}function Y(){ft&&!tt&&x=G||x>=N)&&await new _(d=>{ft=d})}L.push(q)}catch(h){let d=b(h);B(d,A,D),L.push(d)}finally{tt=!0,U&&(U(),U=null)}})();try{for(;;){for(;L.length>0;){let h=await L[0];if(h===q)return;if(dt.aborted)throw new i;h!==st&&(yield h),L.shift(),Y()}await new _(h=>{U=h})}}finally{tt=!0,ft&&(ft(),ft=null)}}).call(this)}async function rt($,j=void 0){for await(let N of W.call(this,$,j))return!0;return!1}function W($,j){if(typeof $!="function")throw new l("fn",["Function","AsyncFunction"],$);return X.call(this,async function(N,G){return await $(N,G)?N:st},j)}var ct=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};function Q($){if($=it($),E($))return 0;if($<0)throw new s("number",">= 0",$);return $}e.exports.streamReturningOperators={asIndexedPairs:O(function($=void 0){return $!=null&&c($,"options"),($==null?void 0:$.signal)!=null&&o($.signal,"options.signal"),(async function*(){let j=0;for await(let G of this){var N;if($!=null&&(N=$.signal)!==null&&N!==void 0&&N.aborted)throw new i({cause:$.signal.reason});yield[j++,G]}}).call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function($,j=void 0){return j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&o(j.signal,"options.signal"),$=Q($),(async function*(){var N;if(j!=null&&(N=j.signal)!==null&&N!==void 0&&N.aborted)throw new i;for await(let U of this){var G;if(j!=null&&(G=j.signal)!==null&&G!==void 0&&G.aborted)throw new i;$--<=0&&(yield U)}}).call(this)},filter:W,flatMap:function($,j){let N=X.call(this,$,j);return(async function*(){for await(let G of N)yield*G}).call(this)},map:X,take:function($,j=void 0){return j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&o(j.signal,"options.signal"),$=Q($),(async function*(){var N;if(j!=null&&(N=j.signal)!==null&&N!==void 0&&N.aborted)throw new i;for await(let U of this){var G;if(j!=null&&(G=j.signal)!==null&&G!==void 0&&G.aborted)throw new i;if($-- >0&&(yield U),$<=0)return}}).call(this)},compose:function($,j){if(j!=null&&c(j,"options"),(j==null?void 0:j.signal)!=null&&o(j.signal,"options.signal"),P($)&&!w($))throw new n("stream",$,"must be writable");let N=m(this,$);return j!=null&&j.signal&&y(j.signal,N),N}},e.exports.promiseReturningOperators={every:async function($,j=void 0){if(typeof $!="function")throw new l("fn",["Function","AsyncFunction"],$);return!await rt.call(this,async(...N)=>!await $(...N),j)},forEach:async function($,j){if(typeof $!="function")throw new l("fn",["Function","AsyncFunction"],$);for await(let N of X.call(this,async function(G,U){return await $(G,U),st},j));},reduce:async function($,j,N){var G;if(typeof $!="function")throw new l("reducer",["Function","AsyncFunction"],$);N!=null&&c(N,"options"),(N==null?void 0:N.signal)!=null&&o(N.signal,"options.signal");let U=arguments.length>1;if(N!=null&&(G=N.signal)!==null&&G!==void 0&&G.aborted){let Z=new i(void 0,{cause:N.signal.reason});throw this.once("error",()=>{}),await g(this.destroy(Z)),Z}let ft=new r,dt=ft.signal;if(N!=null&&N.signal){let Z={once:!0,[p]:this,[f]:!0};N.signal.addEventListener("abort",()=>ft.abort(),Z)}let gt=!1;try{for await(let Z of this){var L;if(gt=!0,N!=null&&(L=N.signal)!==null&&L!==void 0&&L.aborted)throw new i;U?j=await $(j,Z,{signal:dt}):(j=Z,U=!0)}if(!gt&&!U)throw new ct}finally{ft.abort()}return j},toArray:async function($){$!=null&&c($,"options"),($==null?void 0:$.signal)!=null&&o($.signal,"options.signal");let j=[];for await(let G of this){var N;if($!=null&&(N=$.signal)!==null&&N!==void 0&&N.aborted)throw new i(void 0,{cause:$.signal.reason});F(j,G)}return j},some:rt,find:async function($,j){for await(let N of W.call(this,$,j))return N}}}),Nf=_t((t,e)=>{bt(),vt(),yt();var{ArrayPrototypePop:r,Promise:n}=Xt(),{isIterable:l,isNodeStream:a,isWebStream:s}=hr(),{pipelineImpl:i}=gl(),{finished:o}=Lr();Uf(),e.exports={finished:o,pipeline:function(...u){return new n((c,p)=>{let f,g,m=u[u.length-1];if(m&&typeof m=="object"&&!a(m)&&!l(m)&&!s(m)){let y=r(u);f=y.signal,g=y.end}i(u,(y,w)=>{y?p(y):c(w)},{signal:f,end:g})})}}}),Uf=_t((t,e)=>{bt(),vt(),yt();var{Buffer:r}=(ae(),Dt(se)),{ObjectDefineProperty:n,ObjectKeys:l,ReflectApply:a}=Xt(),{promisify:{custom:s}}=_e(),{streamReturningOperators:i,promiseReturningOperators:o}=mm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=ye(),c=Lf(),{setDefaultHighWaterMark:p,getDefaultHighWaterMark:f}=So(),{pipeline:g}=gl(),{destroyer:m}=xn(),y=Lr(),w=Nf(),P=hr(),O=e.exports=pl().Stream;O.isDestroyed=P.isDestroyed,O.isDisturbed=P.isDisturbed,O.isErrored=P.isErrored,O.isReadable=P.isReadable,O.isWritable=P.isWritable,O.Readable=Ao();for(let J of l(i)){let z=function(...E){if(new.target)throw u();return O.Readable.from(a(it,this,E))},it=i[J];n(z,"name",{__proto__:null,value:it.name}),n(z,"length",{__proto__:null,value:it.length}),n(O.Readable.prototype,J,{__proto__:null,value:z,enumerable:!1,configurable:!0,writable:!0})}for(let J of l(o)){let z=function(...E){if(new.target)throw u();return a(it,this,E)},it=o[J];n(z,"name",{__proto__:null,value:it.name}),n(z,"length",{__proto__:null,value:it.length}),n(O.Readable.prototype,J,{__proto__:null,value:z,enumerable:!1,configurable:!0,writable:!0})}O.Writable=dl(),O.Duplex=ar(),O.Transform=Bf(),O.PassThrough=jf(),O.pipeline=g;var{addAbortSignal:F}=Eo();O.addAbortSignal=F,O.finished=y,O.destroy=m,O.compose=c,O.setDefaultHighWaterMark=p,O.getDefaultHighWaterMark=f,n(O,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>w}),n(g,s,{__proto__:null,enumerable:!0,get:()=>w.pipeline}),n(y,s,{__proto__:null,enumerable:!0,get:()=>w.finished}),O.Stream=O,O._isUint8Array=function(J){return J instanceof Uint8Array},O._uint8ArrayToBuffer=function(J){return r.from(J.buffer,J.byteOffset,J.byteLength)}}),an=_t((t,e)=>{bt(),vt(),yt();var r=Uf(),n=Nf(),l=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=l,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>n}),e.exports.Stream=r.Stream,e.exports.default=e.exports}),bm=_t((t,e)=>{bt(),vt(),yt(),typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var l=function(){};l.prototype=n.prototype,r.prototype=new l,r.prototype.constructor=r}}}),ym=_t((t,e)=>{bt(),vt(),yt();var{Buffer:r}=(ae(),Dt(se)),n=Symbol.for("BufferList");function l(a){if(!(this instanceof l))return new l(a);l._init.call(this,a)}l._init=function(a){Object.defineProperty(this,n,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},l.prototype._new=function(a){return new l(a)},l.prototype._offset=function(a){if(a===0)return[0,0];let s=0;for(let i=0;ithis.length||a<0)return;let s=this._offset(a);return this._bufs[s[0]][s[1]]},l.prototype.slice=function(a,s){return typeof a=="number"&&a<0&&(a+=this.length),typeof s=="number"&&s<0&&(s+=this.length),this.copy(null,0,a,s)},l.prototype.copy=function(a,s,i,o){if((typeof i!="number"||i<0)&&(i=0),(typeof o!="number"||o>this.length)&&(o=this.length),i>=this.length||o<=0)return a||r.alloc(0);let u=!!a,c=this._offset(i),p=o-i,f=p,g=u&&s||0,m=c[1];if(i===0&&o===this.length){if(!u)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let y=0;yw)){this._bufs[y].copy(a,g,m,m+f),g+=w;break}this._bufs[y].copy(a,g,m),g+=w,f-=w,m&&(m=0)}return a.length>g?a.slice(0,g):a},l.prototype.shallowSlice=function(a,s){if(a=a||0,s=typeof s!="number"?this.length:s,a<0&&(a+=this.length),s<0&&(s+=this.length),a===s)return this._new();let i=this._offset(a),o=this._offset(s),u=this._bufs.slice(i[0],o[0]+1);return o[1]===0?u.pop():u[u.length-1]=u[u.length-1].slice(0,o[1]),i[1]!==0&&(u[0]=u[0].slice(i[1])),this._new(u)},l.prototype.toString=function(a,s,i){return this.slice(s,i).toString(a)},l.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;){if(!(a>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},l.prototype.duplicate=function(){let a=this._new();for(let s=0;sthis.length?this.length:s;let o=this._offset(s),u=o[0],c=o[1];for(;u=a.length){let f=p.indexOf(a,c);if(f!==-1)return this._reverseOffset([u,f]);c=p.length-a.length+1}else{let f=this._reverseOffset([u,c]);if(this._match(f,a))return f;c++}c=0}return-1},l.prototype._match=function(a,s){if(this.length-a{bt(),vt(),yt();var r=an().Duplex,n=bm(),l=ym();function a(s){if(!(this instanceof a))return new a(s);if(typeof s=="function"){this._callback=s;let i=(function(o){this._callback&&(this._callback(o),this._callback=null)}).bind(this);this.on("pipe",function(o){o.on("error",i)}),this.on("unpipe",function(o){o.removeListener("error",i)}),s=null}l._init.call(this,s),r.call(this)}n(a,r),Object.assign(a.prototype,l.prototype),a.prototype._new=function(s){return new a(s)},a.prototype._write=function(s,i,o){this._appendBuffer(s),typeof o=="function"&&o()},a.prototype._read=function(s){if(!this.length)return this.push(null);s=Math.min(s,this.length),this.push(this.slice(0,s)),this.consume(s)},a.prototype.end=function(s){r.prototype.end.call(this,s),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(s,i){this._bufs.length=0,this.length=0,i(s)},a.prototype._isBufferList=function(s){return s instanceof a||s instanceof l||a.isBufferList(s)},a.isBufferList=l.isBufferList,e.exports=a,e.exports.BufferListStream=a,e.exports.BufferList=l}),wm=_t((t,e)=>{bt(),vt(),yt(),e.exports=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}}),Df=_t((t,e)=>{bt(),vt(),yt();var r=e.exports,{Buffer:n}=(ae(),Dt(se));r.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},r.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},r.requiredHeaderFlagsErrors={};for(let a in r.requiredHeaderFlags){let s=r.requiredHeaderFlags[a];r.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+s.toString(16)+" for "+r.types[a]+" packet"}r.codes={};for(let a in r.types){let s=r.types[a];r.codes[s]=a}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=n.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=n.from([r.codes.connack<[0,1].map(i=>[0,1].map(o=>{let u=n.alloc(1);return u.writeUInt8(r.codes[a]<n.from([a])),r.EMPTY={pingreq:n.from([r.codes.pingreq<<4,0]),pingresp:n.from([r.codes.pingresp<<4,0]),disconnect:n.from([r.codes.disconnect<<4,0])},r.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},r.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),_m=_t((t,e)=>{bt(),vt(),yt();var r=1e3,n=6e4,l=60*n,a=24*l,s=7*a,i=365.25*a;function o(u,c,p,f){var g=c>=1.5*p;return Math.round(u/p)+" "+f+(g?"s":"")}e.exports=function(u,c){c=c||{};var p=typeof u;if(p==="string"&&u.length>0)return function(f){if(f=String(f),!(f.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(g){var m=parseFloat(g[1]);switch((g[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*s;case"days":case"day":case"d":return m*a;case"hours":case"hour":case"hrs":case"hr":case"h":return m*l;case"minutes":case"minute":case"mins":case"min":case"m":return m*n;case"seconds":case"second":case"secs":case"sec":case"s":return m*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}(u);if(p==="number"&&isFinite(u))return c.long?function(f){var g=Math.abs(f);return g>=a?o(f,g,a,"day"):g>=l?o(f,g,l,"hour"):g>=n?o(f,g,n,"minute"):g>=r?o(f,g,r,"second"):f+" ms"}(u):function(f){var g=Math.abs(f);return g>=a?Math.round(f/a)+"d":g>=l?Math.round(f/l)+"h":g>=n?Math.round(f/n)+"m":g>=r?Math.round(f/r)+"s":f+"ms"}(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))}}),Em=_t((t,e)=>{bt(),vt(),yt(),e.exports=function(r){function n(s){let i,o,u,c=null;function p(...f){if(!p.enabled)return;let g=p,m=Number(new Date),y=m-(i||m);g.diff=y,g.prev=i,g.curr=m,i=m,f[0]=n.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");let w=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(P,O)=>{if(P==="%%")return"%";w++;let F=n.formatters[O];if(typeof F=="function"){let J=f[w];P=F.call(g,J),f.splice(w,1),w--}return P}),n.formatArgs.call(g,f),(g.log||n.log).apply(g,f)}return p.namespace=s,p.useColors=n.useColors(),p.color=n.selectColor(s),p.extend=l,p.destroy=n.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(o!==n.namespaces&&(o=n.namespaces,u=n.enabled(s)),u),set:f=>{c=f}}),typeof n.init=="function"&&n.init(p),p}function l(s,i){let o=n(this.namespace+(typeof i>"u"?":":i)+s);return o.log=this.log,o}function a(s,i){let o=0,u=0,c=-1,p=0;for(;o"-"+i)].join(",");return n.enable(""),s},n.enable=function(s){n.save(s),n.namespaces=s,n.names=[],n.skips=[];let i=(typeof s=="string"?s:"").trim().replace(" ",",").split(",").filter(Boolean);for(let o of i)o[0]==="-"?n.skips.push(o.slice(1)):n.names.push(o)},n.enabled=function(s){for(let i of n.skips)if(a(s,i))return!1;for(let i of n.names)if(a(s,i))return!0;return!1},n.humanize=_m(),n.destroy=function(){},Object.keys(r).forEach(s=>{n[s]=r[s]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(s){let i=0;for(let o=0;o{bt(),vt(),yt(),t.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let l="color: "+this.color;n.splice(1,0,l,"color: inherit");let a=0,s=0;n[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(a++,i==="%c"&&(s=a))}),n.splice(s,0,l)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch{}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch{}return!n&&typeof Vt<"u"&&"env"in Vt&&(n=Vt.env.DEBUG),n},t.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!0)}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Em()(t);var{formatters:r}=e.exports;r.j=function(n){try{return JSON.stringify(n)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}),Sm=_t((t,e)=>{bt(),vt(),yt();var r=vm(),{EventEmitter:n}=(on(),Dt(jr)),l=wm(),a=Df(),s=lr()("mqtt-packet:parser");e.exports=class Aa extends n{constructor(){super(),this.parser=this.constructor.parser}static parser(o){return this instanceof Aa?(this.settings=o||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Aa().parser(o)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new l,this.error=null,this._list=r(),this._stateCounter=0}parse(o){for(this.error&&this._resetState(),this._list.append(o),s("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let o=this._list.readUInt8(0),u=o>>a.CMD_SHIFT;this.packet.cmd=a.types[u];let c=15&o,p=a.requiredHeaderFlags[u];return p!=null&&c!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[u])):(this.packet.retain=!!(o&a.RETAIN_MASK),this.packet.qos=o>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=!!(o&a.DUP_MASK),s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let o=this._parseVarByteNum(!0);return o&&(this.packet.length=o.value,this._list.consume(o.bytes)),s("_parseLength %d",o.value),!!o}_parsePayload(){s("_parsePayload: payload %O",this._list);let o=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}o=!0}return s("_parsePayload complete result: %s",o),o}_parseConnect(){s("_parseConnect");let o,u,c,p,f={},g=this.packet,m=this._parseString();if(m===null)return this._emitError(new Error("Cannot parse protocolId"));if(m!=="MQTT"&&m!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=m,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(1&this._list.readUInt8(this._pos))return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));f.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,f.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,f.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let y=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),w=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(f.will)g.will={},g.will.retain=y,g.will.qos=w;else{if(y)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(w)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(g.clean=!!(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK),this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){let O=this._parseProperties();Object.getOwnPropertyNames(O).length&&(g.properties=O)}let P=this._parseString();if(P===null)return this._emitError(new Error("Packet too short"));if(g.clientId=P,s("_parseConnect: packet.clientId: %s",g.clientId),f.will){if(g.protocolVersion===5){let O=this._parseProperties();Object.getOwnPropertyNames(O).length&&(g.will.properties=O)}if(o=this._parseString(),o===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=o,s("_parseConnect: packet.will.topic: %s",g.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=u,s("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(f.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));g.username=p,s("_parseConnect: packet.username: %s",g.username)}if(f.password){if(c=this._parseBuffer(),c===null)return this._emitError(new Error("Cannot parse password"));g.password=c}return this.settings=g,s("_parseConnect: complete"),g}_parseConnack(){s("_parseConnack");let o=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(o.sessionPresent=!!(u&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?o.reasonCode=this._list.readUInt8(this._pos++):o.reasonCode=0;else{if(this._list.length<2)return null;o.returnCode=this._list.readUInt8(this._pos++)}if(o.returnCode===-1||o.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(o.properties=c)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");let o=this.packet;if(o.topic=this._parseString(),o.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(o.qos>0)||this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}o.payload=this._list.slice(this._pos,o.length),s("_parsePublish: payload from buffer list: %o",o.payload)}}_parseSubscribe(){s("_parseSubscribe");let o,u,c,p,f,g,m,y=this.packet;if(y.subscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(y.properties=w)}if(y.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=y.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(u=this._parseByte(),this.settings.protocolVersion===5){if(192&u)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(252&u)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(c=u&a.SUBSCRIBE_OPTIONS_QOS_MASK,c>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=!!(u>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK),f=!!(u>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK),p=u>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));m={topic:o,qos:c},this.settings.protocolVersion===5?(m.nl=g,m.rap=f,m.rh=p):this.settings.bridgeMode&&(m.rh=0,m.rap=!0,m.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",m),y.subscriptions.push(m)}}}_parseSuback(){s("_parseSuback");let o=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}if(o.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){s("_parseUnsubscribe");let o=this.packet;if(o.unsubscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}if(o.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(o.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[o.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"))}s("_parseConfirmation: packet.reasonCode `%d`",o.reasonCode)}else o.reasonCode=0;if(o.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}}return!0}_parseDisconnect(){let o=this.packet;if(s("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(o.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[o.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):o.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(o.properties=u)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");let o=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(o.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[o.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(o.properties=u),s("_parseAuth: result: true"),!0}_parseMessageId(){let o=this.packet;return o.messageId=this._parseNum(),o.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",o.messageId),!0)}_parseString(o){let u=this._parseNum(),c=u+this._pos;if(u===-1||c>this._list.length||c>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,c);return this._pos+=u,s("_parseString: result: %s",p),p}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let o=this._parseNum(),u=o+this._pos;if(o===-1||u>this._list.length||u>this.packet.length)return null;let c=this._list.slice(this._pos,u);return this._pos+=o,s("_parseBuffer: result: %o",c),c}_parseNum(){if(this._list.length-this._pos<2)return-1;let o=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",o),o}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let o=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",o),o}_parseVarByteNum(o){s("_parseVarByteNum");let u,c=0,p=1,f=0,g=!1,m=this._pos?this._pos:0;for(;c<4&&m+c=c&&this._emitError(new Error("Invalid variable byte integer")),m&&(this._pos+=c),g=!!g&&(o?{bytes:c,value:f}:f),s("_parseVarByteNum: result: %o",g),g}_parseByte(){let o;return this._pos{bt(),vt(),yt();var{Buffer:r}=(ae(),Dt(se)),n={},l=r.isBuffer(r.from([1,2]).subarray(0,1));function a(s){let i=r.allocUnsafe(2);return i.writeUInt8(s>>8,0),i.writeUInt8(255&s,1),i}e.exports={cache:n,generateCache:function(){for(let s=0;s<65536;s++)n[s]=a(s)},generateNumber:a,genBufVariableByteInt:function(s){let i=0,o=0,u=r.allocUnsafe(4);do i=s%128|0,(s=s/128|0)>0&&(i|=128),u.writeUInt8(i,o++);while(s>0&&o<4);return s>0&&(o=0),l?u.subarray(0,o):u.slice(0,o)},generate4ByteBuffer:function(s){let i=r.allocUnsafe(4);return i.writeUInt32BE(s,0),i}}}),km=_t((t,e)=>{bt(),vt(),yt(),typeof Vt>"u"||!Vt.version||Vt.version.indexOf("v0.")===0||Vt.version.indexOf("v1.")===0&&Vt.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(r,n,l,a){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s,i,o=arguments.length;switch(o){case 0:case 1:return Vt.nextTick(r);case 2:return Vt.nextTick(function(){r.call(null,n)});case 3:return Vt.nextTick(function(){r.call(null,n,l)});case 4:return Vt.nextTick(function(){r.call(null,n,l,a)});default:for(s=new Array(o-1),i=0;i{bt(),vt(),yt();var r=Df(),{Buffer:n}=(ae(),Dt(se)),l=n.allocUnsafe(0),a=n.from([0]),s=Am(),i=km().nextTick,o=lr()("mqtt-packet:writeToStream"),u=s.cache,c=s.generateNumber,p=s.generateCache,f=s.genBufVariableByteInt,g=s.generate4ByteBuffer,m=it,y=!0;function w(X,rt,W){switch(o("generate called"),rt.cork&&(rt.cork(),i(P,rt)),y&&(y=!1,p()),o("generate: packet.cmd: %s",X.cmd),X.cmd){case"connect":return function(ct,Q){let $=ct||{},j=$.protocolId||"MQTT",N=$.protocolVersion||4,G=$.will,U=$.clean,ft=$.keepalive||0,dt=$.clientId||"",gt=$.username,L=$.password,Z=$.properties;U===void 0&&(U=!0);let tt,x,D=0;if(typeof j!="string"&&!n.isBuffer(j))return Q.destroy(new Error("Invalid protocolId")),!1;if(D+=j.length+2,N!==3&&N!==4&&N!==5)return Q.destroy(new Error("Invalid protocol version")),!1;if(D+=1,(typeof dt=="string"||n.isBuffer(dt))&&(dt||N>=4)&&(dt||U))D+=n.byteLength(dt)+2;else{if(N<4)return Q.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(1*U==0)return Q.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof ft!="number"||ft<0||ft>65535||ft%1!=0)return Q.destroy(new Error("Invalid keepalive")),!1;if(D+=2,D+=1,N===5){if(tt=b(Q,Z),!tt)return!1;D+=tt.length}if(G){if(typeof G!="object")return Q.destroy(new Error("Invalid will")),!1;if(!G.topic||typeof G.topic!="string")return Q.destroy(new Error("Invalid will topic")),!1;if(D+=n.byteLength(G.topic)+2,D+=2,G.payload){if(!(G.payload.length>=0))return Q.destroy(new Error("Invalid will payload")),!1;typeof G.payload=="string"?D+=n.byteLength(G.payload):D+=G.payload.length}if(x={},N===5){if(x=b(Q,G.properties),!x)return!1;D+=x.length}}let A=!1;if(gt!=null){if(!q(gt))return Q.destroy(new Error("Invalid username")),!1;A=!0,D+=n.byteLength(gt)+2}if(L!=null){if(!A)return Q.destroy(new Error("Username is required to use password")),!1;if(!q(L))return Q.destroy(new Error("Invalid password")),!1;D+=st(L)+2}Q.write(r.CONNECT_HEADER),F(Q,D),_(Q,j),$.bridgeMode&&(N+=128),Q.write(N===131?r.VERSION131:N===132?r.VERSION132:N===4?r.VERSION4:N===5?r.VERSION5:r.VERSION3);let Y=0;return Y|=gt!=null?r.USERNAME_MASK:0,Y|=L!=null?r.PASSWORD_MASK:0,Y|=G&&G.retain?r.WILL_RETAIN_MASK:0,Y|=G&&G.qos?G.qos<0&&m(Q,gt),tt==null||tt.write(),o("publish: payload: %o",dt),Q.write(dt)}(X,rt,W);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(ct,Q,$){let j=$?$.protocolVersion:4,N=ct||{},G=N.cmd||"puback",U=N.messageId,ft=N.dup&&G==="pubrel"?r.DUP_MASK:0,dt=0,gt=N.reasonCode,L=N.properties,Z=j===5?3:2;if(G==="pubrel"&&(dt=1),typeof U!="number")return Q.destroy(new Error("Invalid messageId")),!1;let tt=null;if(j===5&&typeof L=="object"){if(tt=R(Q,L,$,Z),!tt)return!1;Z+=tt.length}return Q.write(r.ACKS[G][dt][ft][0]),Z===3&&(Z+=gt!==0?1:-1),F(Q,Z),m(Q,U),j===5&&Z!==2&&Q.write(n.from([gt])),tt!==null?tt.write():Z===4&&Q.write(n.from([0])),!0}(X,rt,W);case"subscribe":return function(ct,Q,$){o("subscribe: packet: ");let j=$?$.protocolVersion:4,N=ct||{},G=N.dup?r.DUP_MASK:0,U=N.messageId,ft=N.subscriptions,dt=N.properties,gt=0;if(typeof U!="number")return Q.destroy(new Error("Invalid messageId")),!1;gt+=2;let L=null;if(j===5){if(L=b(Q,dt),!L)return!1;gt+=L.length}if(typeof ft!="object"||!ft.length)return Q.destroy(new Error("Invalid subscriptions")),!1;for(let tt=0;tt2)return Q.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}gt+=n.byteLength(x)+2+1}o("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),Q.write(r.SUBSCRIBE_HEADER[1][G?1:0][0]),F(Q,gt),m(Q,U),L!==null&&L.write();let Z=!0;for(let tt of ft){let x,D=tt.topic,A=tt.qos,Y=+tt.nl,h=+tt.rap,d=tt.rh;J(Q,D),x=r.SUBSCRIBE_OPTIONS_QOS[A],j===5&&(x|=Y?r.SUBSCRIBE_OPTIONS_NL:0,x|=h?r.SUBSCRIBE_OPTIONS_RAP:0,x|=d?r.SUBSCRIBE_OPTIONS_RH[d]:0),Z=Q.write(n.from([x]))}return Z}(X,rt,W);case"suback":return function(ct,Q,$){let j=$?$.protocolVersion:4,N=ct||{},G=N.messageId,U=N.granted,ft=N.properties,dt=0;if(typeof G!="number")return Q.destroy(new Error("Invalid messageId")),!1;if(dt+=2,typeof U!="object"||!U.length)return Q.destroy(new Error("Invalid qos vector")),!1;for(let L=0;Lm===it,set(X){X?((!u||Object.keys(u).length===0)&&(y=!0),m=it):(y=!1,m=E)}});var O={};function F(X,rt){if(rt>r.VARBYTEINT_MAX)return X.destroy(new Error(`Invalid variable byte integer: ${rt}`)),!1;let W=O[rt];return W||(W=f(rt),rt<16384&&(O[rt]=W)),o("writeVarByteInt: writing to stream: %o",W),X.write(W)}function J(X,rt){let W=n.byteLength(rt);return m(X,W),o("writeString: %s",rt),X.write(rt,"utf8")}function z(X,rt,W){J(X,rt),J(X,W)}function it(X,rt){return o("writeNumberCached: number: %d",rt),o("writeNumberCached: %o",u[rt]),X.write(u[rt])}function E(X,rt){let W=c(rt);return o("writeNumberGenerated: %o",W),X.write(W)}function _(X,rt){typeof rt=="string"?J(X,rt):rt?(m(X,rt.length),X.write(rt)):m(X,0)}function b(X,rt){if(typeof rt!="object"||rt.length!=null)return{length:1,write(){et(X,{},0)}};let W=0;function ct(Q,$){let j=0;switch(r.propertiesTypes[Q]){case"byte":if(typeof $!="boolean")return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=2;break;case"int8":if(typeof $!="number"||$<0||$>255)return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=2;break;case"binary":if($&&$===null)return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=1+n.byteLength($)+2;break;case"int16":if(typeof $!="number"||$<0||$>65535)return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=3;break;case"int32":if(typeof $!="number"||$<0||$>4294967295)return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=5;break;case"var":if(typeof $!="number"||$<0||$>268435455)return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=1+n.byteLength(f($));break;case"string":if(typeof $!="string")return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=3+n.byteLength($.toString());break;case"pair":if(typeof $!="object")return X.destroy(new Error(`Invalid ${Q}: ${$}`)),!1;j+=Object.getOwnPropertyNames($).reduce((N,G)=>{let U=$[G];return Array.isArray(U)?N+=U.reduce((ft,dt)=>ft+=3+n.byteLength(G.toString())+2+n.byteLength(dt.toString()),0):N+=3+n.byteLength(G.toString())+2+n.byteLength($[G].toString()),N},0);break;default:return X.destroy(new Error(`Invalid property ${Q}: ${$}`)),!1}return j}if(rt)for(let Q in rt){let $=0,j=0,N=rt[Q];if(Array.isArray(N))for(let G=0;G$;){let N=Q.shift();if(!N||!rt[N])return!1;delete rt[N],j=b(X,rt)}return j}function B(X,rt,W){switch(r.propertiesTypes[rt]){case"byte":X.write(n.from([r.properties[rt]])),X.write(n.from([+W]));break;case"int8":X.write(n.from([r.properties[rt]])),X.write(n.from([W]));break;case"binary":X.write(n.from([r.properties[rt]])),_(X,W);break;case"int16":X.write(n.from([r.properties[rt]])),m(X,W);break;case"int32":X.write(n.from([r.properties[rt]])),function(ct,Q){let $=g(Q);o("write4ByteNumber: %o",$),ct.write($)}(X,W);break;case"var":X.write(n.from([r.properties[rt]])),F(X,W);break;case"string":X.write(n.from([r.properties[rt]])),J(X,W);break;case"pair":Object.getOwnPropertyNames(W).forEach(ct=>{let Q=W[ct];Array.isArray(Q)?Q.forEach($=>{X.write(n.from([r.properties[rt]])),z(X,ct.toString(),$.toString())}):(X.write(n.from([r.properties[rt]])),z(X,ct.toString(),Q.toString()))});break;default:return X.destroy(new Error(`Invalid property ${rt} value: ${W}`)),!1}}function et(X,rt,W){F(X,W);for(let ct in rt)if(Object.prototype.hasOwnProperty.call(rt,ct)&&rt[ct]!==null){let Q=rt[ct];if(Array.isArray(Q))for(let $=0;${bt(),vt(),yt();var r=Ff(),{EventEmitter:n}=(on(),Dt(jr)),{Buffer:l}=(ae(),Dt(se)),a=class extends n{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s,i=0,o=new Array(this._array.length),u=this._array,c=0;for(s=0;s{bt(),vt(),yt(),t.parser=Sm().parser,t.generate=Im(),t.writeToStream=Ff()}),Wf=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.nextId=Math.max(1,Math.floor(65535*Math.random()))}allocate(){let e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}}}),Tm=_t((t,e)=>{function r(n){return n instanceof no?no.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}bt(),vt(),yt(),e.exports=function(n){if((n=n||{}).circles)return function(i){let o=[],u=[],c=new Map;if(c.set(Date,y=>new Date(y)),c.set(Map,(y,w)=>new Map(f(Array.from(y),w))),c.set(Set,(y,w)=>new Set(f(Array.from(y),w))),i.constructorHandlers)for(let y of i.constructorHandlers)c.set(y[0],y[1]);let p=null;return i.proto?m:g;function f(y,w){let P=Object.keys(y),O=new Array(P.length);for(let F=0;Fnew Date(i)),l.set(Map,(i,o)=>new Map(s(Array.from(i),o))),l.set(Set,(i,o)=>new Set(s(Array.from(i),o))),n.constructorHandlers)for(let i of n.constructorHandlers)l.set(i[0],i[1]);let a=null;return n.proto?function i(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return s(o,i);if(o.constructor!==Object&&(a=l.get(o.constructor)))return a(o,i);let u={};for(let c in o){let p=o[c];typeof p!="object"||p===null?u[c]=p:p.constructor!==Object&&(a=l.get(p.constructor))?u[c]=a(p,i):ArrayBuffer.isView(p)?u[c]=r(p):u[c]=i(p)}return u}:function i(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return s(o,i);if(o.constructor!==Object&&(a=l.get(o.constructor)))return a(o,i);let u={};for(let c in o){if(Object.hasOwnProperty.call(o,c)===!1)continue;let p=o[c];typeof p!="object"||p===null?u[c]=p:p.constructor!==Object&&(a=l.get(p.constructor))?u[c]=a(p,i):ArrayBuffer.isView(p)?u[c]=r(p):u[c]=i(p)}return u};function s(i,o){let u=Object.keys(i),c=new Array(u.length);for(let p=0;p{bt(),vt(),yt(),e.exports=Tm()()}),Cm=_t(t=>{function e(r){let n=r.split("/");for(let l=0;l{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e=an(),r={objectMode:!0},n={clean:!0};t.default=class{constructor(l){this.options=l||{},this.options=Object.assign(Object.assign({},n),l),this._inflights=new Map}put(l,a){return this._inflights.set(l.messageId,l),a&&a(),this}createStream(){let l=new e.Readable(r),a=[],s=!1,i=0;return this._inflights.forEach((o,u)=>{a.push(o)}),l._read=()=>{!s&&i{if(!s)return s=!0,setTimeout(()=>{l.emit("close")},0),l},l}del(l,a){let s=this._inflights.get(l.messageId);return s?(this._inflights.delete(l.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(l,a){let s=this._inflights.get(l.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(l){this.options.clean&&(this._inflights=null),l&&l()}}}),Rm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e=[0,16,128,131,135,144,145,151,153];t.default=(r,n,l)=>{r.log("handlePublish: packet %o",n),l=typeof l<"u"?l:r.noop;let a=n.topic.toString(),s=n.payload,{qos:i}=n,{messageId:o}=n,{options:u}=r;if(r.options.protocolVersion===5){let c;if(n.properties&&(c=n.properties.topicAlias),typeof c<"u")if(a.length===0){if(!(c>0&&c<=65535))return r.log("handlePublish :: topic alias out of range. alias: %d",c),void r.emit("error",new Error("Received Topic Alias is out of range"));{let p=r.topicAliasRecv.getTopicByAlias(c);if(!p)return r.log("handlePublish :: unregistered topic alias. alias: %d",c),void r.emit("error",new Error("Received unregistered Topic Alias"));a=p,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,c)}}else{if(!r.topicAliasRecv.put(a,c))return r.log("handlePublish :: topic alias out of range. alias: %d",c),void r.emit("error",new Error("Received Topic Alias is out of range"));r.log("handlePublish :: registered topic: %s - alias: %d",a,c)}}switch(r.log("handlePublish: qos %d",i),i){case 2:u.customHandleAcks(a,s,n,(c,p)=>(typeof c=="number"&&(p=c,c=null),c?r.emit("error",c):e.indexOf(p)===-1?r.emit("error",new Error("Wrong reason code for pubrec")):void(p?r._sendPacket({cmd:"pubrec",messageId:o,reasonCode:p},l):r.incomingStore.put(n,()=>{r._sendPacket({cmd:"pubrec",messageId:o},l)}))));break;case 1:u.customHandleAcks(a,s,n,(c,p)=>(typeof c=="number"&&(p=c,c=null),c?r.emit("error",c):e.indexOf(p)===-1?r.emit("error",new Error("Wrong reason code for puback")):(p||r.emit("message",a,s,n),void r.handleMessage(n,f=>{if(f)return l&&l(f);r._sendPacket({cmd:"puback",messageId:o,reasonCode:p},l)}))));break;case 0:r.emit("message",a,s,n),r.handleMessage(n,l);break;default:r.log("handlePublish: unknown QoS. Doing nothing.")}}}),Pm=_t((t,e)=>{e.exports={version:"5.10.4"}}),Cn=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.MQTTJS_VERSION=t.nextTick=t.ErrorWithReasonCode=void 0,t.applyMixin=function(r,n,l=!1){var a;let s=[n];for(;;){let i=s[0],o=Object.getPrototypeOf(i);if(!(o!=null&&o.prototype))break;s.unshift(o)}for(let i of s)for(let o of Object.getOwnPropertyNames(i.prototype))(l||o!=="constructor")&&Object.defineProperty(r.prototype,o,(a=Object.getOwnPropertyDescriptor(i.prototype,o))!==null&&a!==void 0?a:Object.create(null))};var e=class Vf extends Error{constructor(n,l){super(n),this.code=l,Object.setPrototypeOf(this,Vf.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};t.ErrorWithReasonCode=e,t.nextTick=typeof(Vt==null?void 0:Vt.nextTick)=="function"?Vt.nextTick:r=>{setTimeout(r,0)},t.MQTTJS_VERSION=Pm().version}),ko=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0;var e=Cn();t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},t.default=(r,n)=>{let{messageId:l}=n,a=n.cmd,s=null,i=r.outgoing[l]?r.outgoing[l].cb:null,o=null;if(i){switch(r.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let u=n.reasonCode;u&&u>0&&u!==16?(o=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(l,()=>{i(o,n)})):r._removeOutgoingAndStoreMessage(l,i);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:l};let u=n.reasonCode;u&&u>0&&u!==16?(o=new e.ErrorWithReasonCode(`Publish error: ${t.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(l,()=>{i(o,n)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[l],r.messageIdProvider.deallocate(l);let u=n.granted;for(let c=0;c{delete r._resubscribeTopics[g]})}}delete r.messageIdToTopic[l],r._invokeStoreProcessingQueue(),i(o,n);break}case"unsuback":delete r.outgoing[l],r.messageIdProvider.deallocate(l),r._invokeStoreProcessingQueue(),i(null,n);break;default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")}else r.log("_handleAck :: Server sent an ack in error. Ignoring.")}}),Mm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e=Cn(),r=ko();t.default=(n,l)=>{let{options:a}=n,s=a.protocolVersion,i=s===5?l.reasonCode:l.returnCode;if(s===5)n.handleAuth(l,(o,u)=>{if(o)n.emit("error",o);else if(i===24)n.reconnecting=!1,n._sendPacket(u);else{let c=new e.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[i]}`,i);n.emit("error",c)}});else{let o=new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,i);n.emit("error",o)}}}),Bm=_t(t=>{var f,g,m,y,w,P,O,F,J,z,it,E,_,b,R,B,et,st,q,X,rt,W,ct,Q,$,j,N,G,U,ka,dt,gt,L,Z,qf,x,D,A,wr,_r,Ia,Vi,qi,Ht,Oa,Fn,Er,Ta,ht;bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,n=typeof Vt=="object"&&Vt?Vt:{},l=(ut,M,H,nt)=>{typeof n.emitWarning=="function"&&n.emitWarning(ut,M,H,nt)},a=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof a>"u"){s=class{constructor(){Kt(this,"onabort");Kt(this,"_onabort",[]);Kt(this,"reason");Kt(this,"aborted",!1)}addEventListener(H,nt){this._onabort.push(nt)}},a=class{constructor(){Kt(this,"signal",new s);M()}abort(H){var nt,S;if(!this.signal.aborted){this.signal.reason=H,this.signal.aborted=!0;for(let k of this.signal._onabort)k(H);(S=(nt=this.signal).onabort)==null||S.call(nt,H)}}};let ut=((f=n.env)==null?void 0:f.LRU_CACHE_IGNORE_AC_WARNING)!=="1",M=()=>{ut&&(ut=!1,l("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",M))}}var i=ut=>ut&&ut===Math.floor(ut)&&ut>0&&isFinite(ut),o=ut=>i(ut)?ut<=Math.pow(2,8)?Uint8Array:ut<=Math.pow(2,16)?Uint16Array:ut<=Math.pow(2,32)?Uint32Array:ut<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(ut){super(ut),this.fill(0)}},c=(g=class{constructor(M,H){Kt(this,"heap");Kt(this,"length");if(!V(g,m))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new H(M),this.length=0}static create(M){let H=o(M);if(!H)return[];At(g,m,!0);let nt=new g(M,H);return At(g,m,!1),nt}push(M){this.heap[this.length++]=M}pop(){return this.heap[--this.length]}},m=new WeakMap,Ct(g,m,!1),g),p=(ht=class{constructor(M){Ct(this,U);Ct(this,P);Ct(this,O);Ct(this,F);Ct(this,J);Ct(this,z);Ct(this,it);Kt(this,"ttl");Kt(this,"ttlResolution");Kt(this,"ttlAutopurge");Kt(this,"updateAgeOnGet");Kt(this,"updateAgeOnHas");Kt(this,"allowStale");Kt(this,"noDisposeOnSet");Kt(this,"noUpdateTTL");Kt(this,"maxEntrySize");Kt(this,"sizeCalculation");Kt(this,"noDeleteOnFetchRejection");Kt(this,"noDeleteOnStaleGet");Kt(this,"allowStaleOnFetchAbort");Kt(this,"allowStaleOnFetchRejection");Kt(this,"ignoreFetchAbort");Ct(this,E);Ct(this,_);Ct(this,b);Ct(this,R);Ct(this,B);Ct(this,et);Ct(this,st);Ct(this,q);Ct(this,X);Ct(this,rt);Ct(this,W);Ct(this,ct);Ct(this,Q);Ct(this,$);Ct(this,j);Ct(this,N);Ct(this,G);Ct(this,dt,()=>{});Ct(this,gt,()=>{});Ct(this,L,()=>{});Ct(this,Z,()=>!1);Ct(this,x,M=>{});Ct(this,D,(M,H,nt)=>{});Ct(this,A,(M,H,nt,S)=>{if(nt||S)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Kt(this,y,"LRUCache");let{max:H=0,ttl:nt,ttlResolution:S=1,ttlAutopurge:k,updateAgeOnGet:ot,updateAgeOnHas:pt,allowStale:wt,dispose:mt,disposeAfter:Tt,noDisposeOnSet:Et,noUpdateTTL:Lt,maxSize:xt=0,maxEntrySize:Nt=0,sizeCalculation:Mt,fetchMethod:Ft,memoMethod:kt,noDeleteOnFetchRejection:Pt,noDeleteOnStaleGet:le,allowStaleOnFetchRejection:Yt,allowStaleOnFetchAbort:re,ignoreFetchAbort:Rn}=M;if(H!==0&&!i(H))throw new TypeError("max option must be a nonnegative integer");let dr=H?o(H):Array;if(!dr)throw new Error("invalid max value: "+H);if(At(this,P,H),At(this,O,xt),this.maxEntrySize=Nt||V(this,O),this.sizeCalculation=Mt,this.sizeCalculation){if(!V(this,O)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(kt!==void 0&&typeof kt!="function")throw new TypeError("memoMethod must be a function if defined");if(At(this,it,kt),Ft!==void 0&&typeof Ft!="function")throw new TypeError("fetchMethod must be a function if specified");if(At(this,z,Ft),At(this,N,!!Ft),At(this,b,new Map),At(this,R,new Array(H).fill(void 0)),At(this,B,new Array(H).fill(void 0)),At(this,et,new dr(H)),At(this,st,new dr(H)),At(this,q,0),At(this,X,0),At(this,rt,c.create(H)),At(this,E,0),At(this,_,0),typeof mt=="function"&&At(this,F,mt),typeof Tt=="function"?(At(this,J,Tt),At(this,W,[])):(At(this,J,void 0),At(this,W,void 0)),At(this,j,!!V(this,F)),At(this,G,!!V(this,J)),this.noDisposeOnSet=!!Et,this.noUpdateTTL=!!Lt,this.noDeleteOnFetchRejection=!!Pt,this.allowStaleOnFetchRejection=!!Yt,this.allowStaleOnFetchAbort=!!re,this.ignoreFetchAbort=!!Rn,this.maxEntrySize!==0){if(V(this,O)!==0&&!i(V(this,O)))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");St(this,U,qf).call(this)}if(this.allowStale=!!wt,this.noDeleteOnStaleGet=!!le,this.updateAgeOnGet=!!ot,this.updateAgeOnHas=!!pt,this.ttlResolution=i(S)||S===0?S:1,this.ttlAutopurge=!!k,this.ttl=nt||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");St(this,U,ka).call(this)}if(V(this,P)===0&&this.ttl===0&&V(this,O)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!V(this,P)&&!V(this,O)){let ln="LRU_CACHE_UNBOUNDED";(yi=>!r.has(yi))(ln)&&(r.add(ln),l("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ln,ht))}}static unsafeExposeInternals(M){return{starts:V(M,Q),ttls:V(M,$),sizes:V(M,ct),keyMap:V(M,b),keyList:V(M,R),valList:V(M,B),next:V(M,et),prev:V(M,st),get head(){return V(M,q)},get tail(){return V(M,X)},free:V(M,rt),isBackgroundFetch:H=>{var nt;return St(nt=M,U,Ht).call(nt,H)},backgroundFetch:(H,nt,S,k)=>{var ot;return St(ot=M,U,qi).call(ot,H,nt,S,k)},moveToTail:H=>{var nt;return St(nt=M,U,Fn).call(nt,H)},indexes:H=>{var nt;return St(nt=M,U,wr).call(nt,H)},rindexes:H=>{var nt;return St(nt=M,U,_r).call(nt,H)},isStale:H=>{var nt;return V(nt=M,Z).call(nt,H)}}}get max(){return V(this,P)}get maxSize(){return V(this,O)}get calculatedSize(){return V(this,_)}get size(){return V(this,E)}get fetchMethod(){return V(this,z)}get memoMethod(){return V(this,it)}get dispose(){return V(this,F)}get disposeAfter(){return V(this,J)}getRemainingTTL(M){return V(this,b).has(M)?1/0:0}*entries(){for(let M of St(this,U,wr).call(this))V(this,B)[M]!==void 0&&V(this,R)[M]!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield[V(this,R)[M],V(this,B)[M]])}*rentries(){for(let M of St(this,U,_r).call(this))V(this,B)[M]!==void 0&&V(this,R)[M]!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield[V(this,R)[M],V(this,B)[M]])}*keys(){for(let M of St(this,U,wr).call(this)){let H=V(this,R)[M];H!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield H)}}*rkeys(){for(let M of St(this,U,_r).call(this)){let H=V(this,R)[M];H!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield H)}}*values(){for(let M of St(this,U,wr).call(this))V(this,B)[M]!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield V(this,B)[M])}*rvalues(){for(let M of St(this,U,_r).call(this))V(this,B)[M]!==void 0&&!St(this,U,Ht).call(this,V(this,B)[M])&&(yield V(this,B)[M])}[(w=Symbol.iterator,y=Symbol.toStringTag,w)](){return this.entries()}find(M,H={}){for(let nt of St(this,U,wr).call(this)){let S=V(this,B)[nt],k=St(this,U,Ht).call(this,S)?S.__staleWhileFetching:S;if(k!==void 0&&M(k,V(this,R)[nt],this))return this.get(V(this,R)[nt],H)}}forEach(M,H=this){for(let nt of St(this,U,wr).call(this)){let S=V(this,B)[nt],k=St(this,U,Ht).call(this,S)?S.__staleWhileFetching:S;k!==void 0&&M.call(H,k,V(this,R)[nt],this)}}rforEach(M,H=this){for(let nt of St(this,U,_r).call(this)){let S=V(this,B)[nt],k=St(this,U,Ht).call(this,S)?S.__staleWhileFetching:S;k!==void 0&&M.call(H,k,V(this,R)[nt],this)}}purgeStale(){let M=!1;for(let H of St(this,U,_r).call(this,{allowStale:!0}))V(this,Z).call(this,H)&&(St(this,U,Er).call(this,V(this,R)[H],"expire"),M=!0);return M}info(M){let H=V(this,b).get(M);if(H===void 0)return;let nt=V(this,B)[H],S=St(this,U,Ht).call(this,nt)?nt.__staleWhileFetching:nt;if(S===void 0)return;let k={value:S};if(V(this,$)&&V(this,Q)){let ot=V(this,$)[H],pt=V(this,Q)[H];if(ot&&pt){let wt=ot-(e.now()-pt);k.ttl=wt,k.start=Date.now()}}return V(this,ct)&&(k.size=V(this,ct)[H]),k}dump(){let M=[];for(let H of St(this,U,wr).call(this,{allowStale:!0})){let nt=V(this,R)[H],S=V(this,B)[H],k=St(this,U,Ht).call(this,S)?S.__staleWhileFetching:S;if(k===void 0||nt===void 0)continue;let ot={value:k};if(V(this,$)&&V(this,Q)){ot.ttl=V(this,$)[H];let pt=e.now()-V(this,Q)[H];ot.start=Math.floor(Date.now()-pt)}V(this,ct)&&(ot.size=V(this,ct)[H]),M.unshift([nt,ot])}return M}load(M){this.clear();for(let[H,nt]of M){if(nt.start){let S=Date.now()-nt.start;nt.start=e.now()-S}this.set(H,nt.value,nt)}}set(M,H,nt={}){var Lt,xt,Nt,Mt,Ft;if(H===void 0)return this.delete(M),this;let{ttl:S=this.ttl,start:k,noDisposeOnSet:ot=this.noDisposeOnSet,sizeCalculation:pt=this.sizeCalculation,status:wt}=nt,{noUpdateTTL:mt=this.noUpdateTTL}=nt,Tt=V(this,A).call(this,M,H,nt.size||0,pt);if(this.maxEntrySize&&Tt>this.maxEntrySize)return wt&&(wt.set="miss",wt.maxEntrySizeExceeded=!0),St(this,U,Er).call(this,M,"set"),this;let Et=V(this,E)===0?void 0:V(this,b).get(M);if(Et===void 0)Et=V(this,E)===0?V(this,X):V(this,rt).length!==0?V(this,rt).pop():V(this,E)===V(this,P)?St(this,U,Vi).call(this,!1):V(this,E),V(this,R)[Et]=M,V(this,B)[Et]=H,V(this,b).set(M,Et),V(this,et)[V(this,X)]=Et,V(this,st)[Et]=V(this,X),At(this,X,Et),vi(this,E)._++,V(this,D).call(this,Et,Tt,wt),wt&&(wt.set="add"),mt=!1;else{St(this,U,Fn).call(this,Et);let kt=V(this,B)[Et];if(H!==kt){if(V(this,N)&&St(this,U,Ht).call(this,kt)){kt.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Pt}=kt;Pt!==void 0&&!ot&&(V(this,j)&&((Lt=V(this,F))==null||Lt.call(this,Pt,M,"set")),V(this,G)&&((xt=V(this,W))==null||xt.push([Pt,M,"set"])))}else ot||(V(this,j)&&((Nt=V(this,F))==null||Nt.call(this,kt,M,"set")),V(this,G)&&((Mt=V(this,W))==null||Mt.push([kt,M,"set"])));if(V(this,x).call(this,Et),V(this,D).call(this,Et,Tt,wt),V(this,B)[Et]=H,wt){wt.set="replace";let Pt=kt&&St(this,U,Ht).call(this,kt)?kt.__staleWhileFetching:kt;Pt!==void 0&&(wt.oldValue=Pt)}}else wt&&(wt.set="update")}if(S!==0&&!V(this,$)&&St(this,U,ka).call(this),V(this,$)&&(mt||V(this,L).call(this,Et,S,k),wt&&V(this,gt).call(this,wt,Et)),!ot&&V(this,G)&&V(this,W)){let kt,Pt=V(this,W);for(;kt=Pt==null?void 0:Pt.shift();)(Ft=V(this,J))==null||Ft.call(this,...kt)}return this}pop(){var M;try{for(;V(this,E);){let H=V(this,B)[V(this,q)];if(St(this,U,Vi).call(this,!0),St(this,U,Ht).call(this,H)){if(H.__staleWhileFetching)return H.__staleWhileFetching}else if(H!==void 0)return H}}finally{if(V(this,G)&&V(this,W)){let H,nt=V(this,W);for(;H=nt==null?void 0:nt.shift();)(M=V(this,J))==null||M.call(this,...H)}}}has(M,H={}){let{updateAgeOnHas:nt=this.updateAgeOnHas,status:S}=H,k=V(this,b).get(M);if(k!==void 0){let ot=V(this,B)[k];if(St(this,U,Ht).call(this,ot)&&ot.__staleWhileFetching===void 0)return!1;if(!V(this,Z).call(this,k))return nt&&V(this,dt).call(this,k),S&&(S.has="hit",V(this,gt).call(this,S,k)),!0;S&&(S.has="stale",V(this,gt).call(this,S,k))}else S&&(S.has="miss");return!1}peek(M,H={}){let{allowStale:nt=this.allowStale}=H,S=V(this,b).get(M);if(S===void 0||!nt&&V(this,Z).call(this,S))return;let k=V(this,B)[S];return St(this,U,Ht).call(this,k)?k.__staleWhileFetching:k}async fetch(M,H={}){let{allowStale:nt=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:k=this.noDeleteOnStaleGet,ttl:ot=this.ttl,noDisposeOnSet:pt=this.noDisposeOnSet,size:wt=0,sizeCalculation:mt=this.sizeCalculation,noUpdateTTL:Tt=this.noUpdateTTL,noDeleteOnFetchRejection:Et=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Lt=this.allowStaleOnFetchRejection,ignoreFetchAbort:xt=this.ignoreFetchAbort,allowStaleOnFetchAbort:Nt=this.allowStaleOnFetchAbort,context:Mt,forceRefresh:Ft=!1,status:kt,signal:Pt}=H;if(!V(this,N))return kt&&(kt.fetch="get"),this.get(M,{allowStale:nt,updateAgeOnGet:S,noDeleteOnStaleGet:k,status:kt});let le={allowStale:nt,updateAgeOnGet:S,noDeleteOnStaleGet:k,ttl:ot,noDisposeOnSet:pt,size:wt,sizeCalculation:mt,noUpdateTTL:Tt,noDeleteOnFetchRejection:Et,allowStaleOnFetchRejection:Lt,allowStaleOnFetchAbort:Nt,ignoreFetchAbort:xt,status:kt,signal:Pt},Yt=V(this,b).get(M);if(Yt===void 0){kt&&(kt.fetch="miss");let re=St(this,U,qi).call(this,M,Yt,le,Mt);return re.__returned=re}{let re=V(this,B)[Yt];if(St(this,U,Ht).call(this,re)){let yi=nt&&re.__staleWhileFetching!==void 0;return kt&&(kt.fetch="inflight",yi&&(kt.returnedStale=!0)),yi?re.__staleWhileFetching:re.__returned=re}let Rn=V(this,Z).call(this,Yt);if(!Ft&&!Rn)return kt&&(kt.fetch="hit"),St(this,U,Fn).call(this,Yt),S&&V(this,dt).call(this,Yt),kt&&V(this,gt).call(this,kt,Yt),re;let dr=St(this,U,qi).call(this,M,Yt,le,Mt),ln=dr.__staleWhileFetching!==void 0&&nt;return kt&&(kt.fetch=Rn?"stale":"refresh",ln&&Rn&&(kt.returnedStale=!0)),ln?dr.__staleWhileFetching:dr.__returned=dr}}async forceFetch(M,H={}){let nt=await this.fetch(M,H);if(nt===void 0)throw new Error("fetch() returned undefined");return nt}memo(M,H={}){let nt=V(this,it);if(!nt)throw new Error("no memoMethod provided to constructor");let{context:S,forceRefresh:k,...ot}=H,pt=this.get(M,ot);if(!k&&pt!==void 0)return pt;let wt=nt(M,pt,{options:ot,context:S});return this.set(M,wt,ot),wt}get(M,H={}){let{allowStale:nt=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:k=this.noDeleteOnStaleGet,status:ot}=H,pt=V(this,b).get(M);if(pt!==void 0){let wt=V(this,B)[pt],mt=St(this,U,Ht).call(this,wt);return ot&&V(this,gt).call(this,ot,pt),V(this,Z).call(this,pt)?(ot&&(ot.get="stale"),mt?(ot&&nt&&wt.__staleWhileFetching!==void 0&&(ot.returnedStale=!0),nt?wt.__staleWhileFetching:void 0):(k||St(this,U,Er).call(this,M,"expire"),ot&&nt&&(ot.returnedStale=!0),nt?wt:void 0)):(ot&&(ot.get="hit"),mt?wt.__staleWhileFetching:(St(this,U,Fn).call(this,pt),S&&V(this,dt).call(this,pt),wt))}ot&&(ot.get="miss")}delete(M){return St(this,U,Er).call(this,M,"delete")}clear(){return St(this,U,Ta).call(this,"delete")}},P=new WeakMap,O=new WeakMap,F=new WeakMap,J=new WeakMap,z=new WeakMap,it=new WeakMap,E=new WeakMap,_=new WeakMap,b=new WeakMap,R=new WeakMap,B=new WeakMap,et=new WeakMap,st=new WeakMap,q=new WeakMap,X=new WeakMap,rt=new WeakMap,W=new WeakMap,ct=new WeakMap,Q=new WeakMap,$=new WeakMap,j=new WeakMap,N=new WeakMap,G=new WeakMap,U=new WeakSet,ka=function(){let M=new u(V(this,P)),H=new u(V(this,P));At(this,$,M),At(this,Q,H),At(this,L,(k,ot,pt=e.now())=>{if(H[k]=ot!==0?pt:0,M[k]=ot,ot!==0&&this.ttlAutopurge){let wt=setTimeout(()=>{V(this,Z).call(this,k)&&St(this,U,Er).call(this,V(this,R)[k],"expire")},ot+1);wt.unref&&wt.unref()}}),At(this,dt,k=>{H[k]=M[k]!==0?e.now():0}),At(this,gt,(k,ot)=>{if(M[ot]){let pt=M[ot],wt=H[ot];if(!pt||!wt)return;k.ttl=pt,k.start=wt,k.now=nt||S();let mt=k.now-wt;k.remainingTTL=pt-mt}});let nt=0,S=()=>{let k=e.now();if(this.ttlResolution>0){nt=k;let ot=setTimeout(()=>nt=0,this.ttlResolution);ot.unref&&ot.unref()}return k};this.getRemainingTTL=k=>{let ot=V(this,b).get(k);if(ot===void 0)return 0;let pt=M[ot],wt=H[ot];return pt&&wt?pt-((nt||S())-wt):1/0},At(this,Z,k=>{let ot=H[k],pt=M[k];return!!pt&&!!ot&&(nt||S())-ot>pt})},dt=new WeakMap,gt=new WeakMap,L=new WeakMap,Z=new WeakMap,qf=function(){let M=new u(V(this,P));At(this,_,0),At(this,ct,M),At(this,x,H=>{At(this,_,V(this,_)-M[H]),M[H]=0}),At(this,A,(H,nt,S,k)=>{if(St(this,U,Ht).call(this,nt))return 0;if(!i(S)){if(!k)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if(typeof k!="function")throw new TypeError("sizeCalculation must be a function");if(S=k(nt,H),!i(S))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return S}),At(this,D,(H,nt,S)=>{if(M[H]=nt,V(this,O)){let k=V(this,O)-M[H];for(;V(this,_)>k;)St(this,U,Vi).call(this,!0)}At(this,_,V(this,_)+M[H]),S&&(S.entrySize=nt,S.totalCalculatedSize=V(this,_))})},x=new WeakMap,D=new WeakMap,A=new WeakMap,wr=function*({allowStale:M=this.allowStale}={}){if(V(this,E))for(let H=V(this,X);St(this,U,Ia).call(this,H)&&((M||!V(this,Z).call(this,H))&&(yield H),H!==V(this,q));)H=V(this,st)[H]},_r=function*({allowStale:M=this.allowStale}={}){if(V(this,E))for(let H=V(this,q);St(this,U,Ia).call(this,H)&&((M||!V(this,Z).call(this,H))&&(yield H),H!==V(this,X));)H=V(this,et)[H]},Ia=function(M){return M!==void 0&&V(this,b).get(V(this,R)[M])===M},Vi=function(M){var k,ot;let H=V(this,q),nt=V(this,R)[H],S=V(this,B)[H];return V(this,N)&&St(this,U,Ht).call(this,S)?S.__abortController.abort(new Error("evicted")):(V(this,j)||V(this,G))&&(V(this,j)&&((k=V(this,F))==null||k.call(this,S,nt,"evict")),V(this,G)&&((ot=V(this,W))==null||ot.push([S,nt,"evict"]))),V(this,x).call(this,H),M&&(V(this,R)[H]=void 0,V(this,B)[H]=void 0,V(this,rt).push(H)),V(this,E)===1?(At(this,q,At(this,X,0)),V(this,rt).length=0):At(this,q,V(this,et)[H]),V(this,b).delete(nt),vi(this,E)._--,H},qi=function(M,H,nt,S){let k=H===void 0?void 0:V(this,B)[H];if(St(this,U,Ht).call(this,k))return k;let ot=new a,{signal:pt}=nt;pt==null||pt.addEventListener("abort",()=>ot.abort(pt.reason),{signal:ot.signal});let wt={signal:ot.signal,options:nt,context:S},mt=(xt,Nt=!1)=>{let{aborted:Mt}=ot.signal,Ft=nt.ignoreFetchAbort&&xt!==void 0;if(nt.status&&(Mt&&!Nt?(nt.status.fetchAborted=!0,nt.status.fetchError=ot.signal.reason,Ft&&(nt.status.fetchAbortIgnored=!0)):nt.status.fetchResolved=!0),Mt&&!Ft&&!Nt)return Tt(ot.signal.reason);let kt=Et;return V(this,B)[H]===Et&&(xt===void 0?kt.__staleWhileFetching?V(this,B)[H]=kt.__staleWhileFetching:St(this,U,Er).call(this,M,"fetch"):(nt.status&&(nt.status.fetchUpdated=!0),this.set(M,xt,wt.options))),xt},Tt=xt=>{let{aborted:Nt}=ot.signal,Mt=Nt&&nt.allowStaleOnFetchAbort,Ft=Mt||nt.allowStaleOnFetchRejection,kt=Ft||nt.noDeleteOnFetchRejection,Pt=Et;if(V(this,B)[H]===Et&&(kt&&Pt.__staleWhileFetching!==void 0?Mt||(V(this,B)[H]=Pt.__staleWhileFetching):St(this,U,Er).call(this,M,"fetch")),Ft)return nt.status&&Pt.__staleWhileFetching!==void 0&&(nt.status.returnedStale=!0),Pt.__staleWhileFetching;if(Pt.__returned===Pt)throw xt};nt.status&&(nt.status.fetchDispatched=!0);let Et=new Promise((xt,Nt)=>{var Ft;let Mt=(Ft=V(this,z))==null?void 0:Ft.call(this,M,k,wt);Mt&&Mt instanceof Promise&&Mt.then(kt=>xt(kt===void 0?void 0:kt),Nt),ot.signal.addEventListener("abort",()=>{(!nt.ignoreFetchAbort||nt.allowStaleOnFetchAbort)&&(xt(void 0),nt.allowStaleOnFetchAbort&&(xt=kt=>mt(kt,!0)))})}).then(mt,xt=>(nt.status&&(nt.status.fetchRejected=!0,nt.status.fetchError=xt),Tt(xt))),Lt=Object.assign(Et,{__abortController:ot,__staleWhileFetching:k,__returned:void 0});return H===void 0?(this.set(M,Lt,{...wt.options,status:void 0}),H=V(this,b).get(M)):V(this,B)[H]=Lt,Lt},Ht=function(M){if(!V(this,N))return!1;let H=M;return!!H&&H instanceof Promise&&H.hasOwnProperty("__staleWhileFetching")&&H.__abortController instanceof a},Oa=function(M,H){V(this,st)[H]=M,V(this,et)[M]=H},Fn=function(M){M!==V(this,X)&&(M===V(this,q)?At(this,q,V(this,et)[M]):St(this,U,Oa).call(this,V(this,st)[M],V(this,et)[M]),St(this,U,Oa).call(this,V(this,X),M),At(this,X,M))},Er=function(M,H){var S,k,ot,pt;let nt=!1;if(V(this,E)!==0){let wt=V(this,b).get(M);if(wt!==void 0)if(nt=!0,V(this,E)===1)St(this,U,Ta).call(this,H);else{V(this,x).call(this,wt);let mt=V(this,B)[wt];if(St(this,U,Ht).call(this,mt)?mt.__abortController.abort(new Error("deleted")):(V(this,j)||V(this,G))&&(V(this,j)&&((S=V(this,F))==null||S.call(this,mt,M,H)),V(this,G)&&((k=V(this,W))==null||k.push([mt,M,H]))),V(this,b).delete(M),V(this,R)[wt]=void 0,V(this,B)[wt]=void 0,wt===V(this,X))At(this,X,V(this,st)[wt]);else if(wt===V(this,q))At(this,q,V(this,et)[wt]);else{let Tt=V(this,st)[wt];V(this,et)[Tt]=V(this,et)[wt];let Et=V(this,et)[wt];V(this,st)[Et]=V(this,st)[wt]}vi(this,E)._--,V(this,rt).push(wt)}}if(V(this,G)&&((ot=V(this,W))!=null&&ot.length)){let wt,mt=V(this,W);for(;wt=mt==null?void 0:mt.shift();)(pt=V(this,J))==null||pt.call(this,...wt)}return nt},Ta=function(M){var H,nt,S;for(let k of St(this,U,_r).call(this,{allowStale:!0})){let ot=V(this,B)[k];if(St(this,U,Ht).call(this,ot))ot.__abortController.abort(new Error("deleted"));else{let pt=V(this,R)[k];V(this,j)&&((H=V(this,F))==null||H.call(this,ot,pt,M)),V(this,G)&&((nt=V(this,W))==null||nt.push([ot,pt,M]))}}if(V(this,b).clear(),V(this,B).fill(void 0),V(this,R).fill(void 0),V(this,$)&&V(this,Q)&&(V(this,$).fill(0),V(this,Q).fill(0)),V(this,ct)&&V(this,ct).fill(0),At(this,q,0),At(this,X,0),V(this,rt).length=0,At(this,_,0),At(this,E,0),V(this,G)&&V(this,W)){let k,ot=V(this,W);for(;k=ot==null?void 0:ot.shift();)(S=V(this,J))==null||S.call(this,...k)}},ht);t.LRUCache=p}),fr=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.ContainerIterator=t.Container=t.Base=void 0,t.ContainerIterator=class{constructor(r=0){this.iteratorType=r}equals(r){return this.o===r.o}};var e=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};t.Base=e,t.Container=class extends e{}}),jm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=fr(),r=class extends e.Base{constructor(n=[]){super(),this.S=[];let l=this;n.forEach(function(a){l.push(a)})}clear(){this.i=0,this.S=[]}push(n){return this.S.push(n),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}};t.default=r}),Lm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=fr(),r=class extends e.Base{constructor(n=[]){super(),this.j=0,this.q=[];let l=this;n.forEach(function(a){l.push(a)})}clear(){this.q=[],this.i=this.j=0}push(n){let l=this.q.length;if(this.j/l>.5&&this.j+this.i>=l&&l>4096){let a=this.i;for(let s=0;s{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=fr(),r=class extends e.Base{constructor(n=[],l=function(s,i){return s>i?-1:s>1;for(let i=this.i-1>>1;i>=0;--i)this.k(i,s)}m(n){let l=this.C[n];for(;n>0;){let a=n-1>>1,s=this.C[a];if(this.v(s,l)<=0)break;this.C[n]=s,n=a}this.C[n]=l}k(n,l){let a=this.C[n];for(;n0&&(s=i,o=this.C[i]),this.v(o,a)>=0)break;this.C[n]=o,n=s}this.C[n]=a}clear(){this.i=0,this.C.length=0}push(n){this.C.push(n),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let n=this.C[0],l=this.C.pop();return this.i-=1,this.i&&(this.C[0]=l,this.k(0,this.i>>1)),n}top(){return this.C[0]}find(n){return this.C.indexOf(n)>=0}remove(n){let l=this.C.indexOf(n);return!(l<0)&&(l===0?this.pop():l===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(l,1,this.C.pop()),this.i-=1,this.m(l),this.k(l,this.i>>1)),!0)}updateItem(n){let l=this.C.indexOf(n);return!(l<0)&&(this.m(l),this.k(l,this.i>>1),!0)}toArray(){return[...this.C]}};t.default=r}),ml=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=fr(),r=class extends e.Container{};t.default=r}),pr=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.throwIteratorAccessError=function(){throw new RangeError("Iterator access denied!")}}),Hf=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.RandomIterator=void 0;var e=fr(),r=pr(),n=class extends e.ContainerIterator{constructor(l,a){super(a),this.o=l,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(l){this.container.setElementByPos(this.o,l)}};t.RandomIterator=n}),Um=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=ml())&&e.t?e:{default:e},n=Hf(),l=class zf extends n.RandomIterator{constructor(i,o,u){super(i,u),this.container=o}copy(){return new zf(this.o,this.container,this.iteratorType)}},a=class extends r.default{constructor(s=[],i=!0){if(super(),Array.isArray(s))this.J=i?[...s]:s,this.i=s.length;else{this.J=[];let o=this;s.forEach(function(u){o.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new l(0,this)}end(){return new l(this.i,this)}rBegin(){return new l(this.i-1,this,1)}rEnd(){return new l(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let i=0;for(let o=0;othis.i-1)throw new RangeError;this.J[s]=i}insert(s,i,o=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(o).fill(i)),this.i+=o,this.i}find(s){for(let i=0;i{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=ml())&&e.t?e:{default:e},n=fr(),l=pr(),a=class Kf extends n.ContainerIterator{constructor(o,u,c,p){super(p),this.o=o,this.h=u,this.container=c,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l}set pointer(o){this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o.l=o}copy(){return new Kf(this.o,this.h,this.container,this.iteratorType)}},s=class extends r.default{constructor(i=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let o=this;i.forEach(function(u){o.pushBack(u)})}V(i){let{L:o,B:u}=i;o.B=u,u.L=o,i===this.p&&(this.p=u),i===this._&&(this._=o),this.i-=1}G(i,o){let u=o.B,c={l:i,L:o,B:u};o.B=c,u.L=c,o===this.h&&(this.p=c),u===this.h&&(this._=c),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let o=this.p;for(;i--;)o=o.B;return o.l}eraseElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let o=this.p;for(;i--;)o=o.B;return this.V(o),this.i}eraseElementByValue(i){let o=this.p;for(;o!==this.h;)o.l===i&&this.V(o),o=o.B;return this.i}eraseElementByIterator(i){let o=i.o;return o===this.h&&(0,l.throwIteratorAccessError)(),i=i.next(),this.V(o),i}pushBack(i){return this.G(i,this._),this.i}popBack(){if(this.i===0)return;let i=this._.l;return this.V(this._),i}pushFront(i){return this.G(i,this.h),this.i}popFront(){if(this.i===0)return;let i=this.p.l;return this.V(this.p),i}setElementByPos(i,o){if(i<0||i>this.i-1)throw new RangeError;let u=this.p;for(;i--;)u=u.B;u.l=o}insert(i,o,u=1){if(i<0||i>this.i)throw new RangeError;if(u<=0)return this.i;if(i===0)for(;u--;)this.pushFront(o);else if(i===this.i)for(;u--;)this.pushBack(o);else{let c=this.p;for(let f=1;f{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=(e=ml())&&e.t?e:{default:e},n=Hf(),l=class Gf extends n.RandomIterator{constructor(i,o,u){super(i,u),this.container=o}copy(){return new Gf(this.o,this.container,this.iteratorType)}},a=class extends r.default{constructor(s=[],i=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let o=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=i,this.P=Math.max(Math.ceil(o/this.F),1);for(let p=0;p>1)-(u>>1),this.D=this.N=this.F-o%this.F>>1;let c=this;s.forEach(function(p){c.pushBack(p)})}T(){let s=[],i=Math.max(this.P>>1,1);for(let o=0;o>1}begin(){return new l(0,this)}end(){return new l(this.i,this)}rBegin(){return new l(this.i-1,this,1)}rEnd(){return new l(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:i,curNodePointerIndex:o}=this.O(s);return this.A[i][o]}setElementByPos(s,i){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:o,curNodePointerIndex:u}=this.O(s);this.A[o][u]=i}insert(s,i,o=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;o--;)this.pushFront(i);else if(s===this.i)for(;o--;)this.pushBack(i);else{let u=[];for(let c=s;cthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let i=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let i=[];for(let o=0;o{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.TreeNodeEnableIndex=t.TreeNode=void 0;var e=class{constructor(r,n){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=n}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let n=r.tt;for(;n.U===r;)r=n,n=r.tt;r=n}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}{let n=r.tt;for(;n.W===r;)r=n,n=r.tt;return r.W!==n?n:r}}te(){let r=this.tt,n=this.W,l=n.U;return r.tt===this?r.tt=n:r.U===this?r.U=n:r.W=n,n.tt=r,n.U=this,this.tt=n,this.W=l,l&&(l.tt=this),n}se(){let r=this.tt,n=this.U,l=n.W;return r.tt===this?r.tt=n:r.U===this?r.U=n:r.W=n,n.tt=r,n.W=this,this.tt=n,this.U=l,l&&(l.tt=this),n}};t.TreeNode=e,t.TreeNodeEnableIndex=class extends e{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}}}),Qf=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=Wm(),r=fr(),n=pr(),l=class extends r.Container{constructor(s=function(o,u){return ou?1:0},i=!1){super(),this.Y=void 0,this.v=s,i?(this.re=e.TreeNodeEnableIndex,this.M=function(o,u,c){let p=this.ne(o,u,c);if(p){let f=p.tt;for(;f!==this.h;)f.rt+=1,f=f.tt;let g=this.he(p);if(g){let{parentNode:m,grandParent:y,curNode:w}=g;m.ie(),y.ie(),w.ie()}}return this.i},this.V=function(o){let u=this.fe(o);for(;u!==this.h;)u.rt-=1,u=u.tt}):(this.re=e.TreeNode,this.M=function(o,u,c){let p=this.ne(o,u,c);return p&&this.he(p),this.i},this.V=this.fe),this.h=new this.re}X(s,i){let o=this.h;for(;s;){let u=this.v(s.u,i);if(u<0)s=s.W;else{if(!(u>0))return s;o=s,s=s.U}}return o}Z(s,i){let o=this.h;for(;s;)this.v(s.u,i)<=0?s=s.W:(o=s,s=s.U);return o}$(s,i){let o=this.h;for(;s;){let u=this.v(s.u,i);if(u<0)o=s,s=s.W;else{if(!(u>0))return s;s=s.U}}return o}rr(s,i){let o=this.h;for(;s;)this.v(s.u,i)<0?(o=s,s=s.W):s=s.U;return o}ue(s){for(;;){let i=s.tt;if(i===this.h)return;if(s.ee===1)return void(s.ee=0);if(s===i.U){let o=i.W;if(o.ee===1)o.ee=0,i.ee=1,i===this.Y?this.Y=i.te():i.te();else{if(o.W&&o.W.ee===1)return o.ee=i.ee,i.ee=0,o.W.ee=0,void(i===this.Y?this.Y=i.te():i.te());o.U&&o.U.ee===1?(o.ee=1,o.U.ee=0,o.se()):(o.ee=1,s=i)}}else{let o=i.U;if(o.ee===1)o.ee=0,i.ee=1,i===this.Y?this.Y=i.se():i.se();else{if(o.U&&o.U.ee===1)return o.ee=i.ee,i.ee=0,o.U.ee=0,void(i===this.Y?this.Y=i.se():i.se());o.W&&o.W.ee===1?(o.ee=1,o.W.ee=0,o.te()):(o.ee=1,s=i)}}}}fe(s){if(this.i===1)return this.clear(),this.h;let i=s;for(;i.U||i.W;){if(i.W)for(i=i.W;i.U;)i=i.U;else i=i.U;[s.u,i.u]=[i.u,s.u],[s.l,i.l]=[i.l,s.l],s=i}this.h.U===i?this.h.U=i.tt:this.h.W===i&&(this.h.W=i.tt),this.ue(i);let o=i.tt;return i===o.U?o.U=void 0:o.W=void 0,this.i-=1,this.Y.ee=0,o}oe(s,i){return s!==void 0&&(!(!this.oe(s.U,i)&&!i(s))||this.oe(s.W,i))}he(s){for(;;){let i=s.tt;if(i.ee===0)return;let o=i.tt;if(i===o.U){let u=o.W;if(u&&u.ee===1){if(u.ee=i.ee=0,o===this.Y)return;o.ee=1,s=o;continue}if(s===i.W){if(s.ee=0,s.U&&(s.U.tt=i),s.W&&(s.W.tt=o),i.W=s.U,o.U=s.W,s.U=i,s.W=o,o===this.Y)this.Y=s,this.h.tt=s;else{let c=o.tt;c.U===o?c.U=s:c.W=s}return s.tt=o.tt,i.tt=s,o.tt=s,o.ee=1,{parentNode:i,grandParent:o,curNode:s}}i.ee=0,o===this.Y?this.Y=o.se():o.se(),o.ee=1}else{let u=o.U;if(u&&u.ee===1){if(u.ee=i.ee=0,o===this.Y)return;o.ee=1,s=o;continue}if(s===i.U){if(s.ee=0,s.U&&(s.U.tt=o),s.W&&(s.W.tt=i),o.W=s.U,i.U=s.W,s.U=o,s.W=i,o===this.Y)this.Y=s,this.h.tt=s;else{let c=o.tt;c.U===o?c.U=s:c.W=s}return s.tt=o.tt,i.tt=s,o.tt=s,o.ee=1,{parentNode:i,grandParent:o,curNode:s}}i.ee=0,o===this.Y?this.Y=o.te():o.te(),o.ee=1}return}}ne(s,i,o){if(this.Y===void 0)return this.i+=1,this.Y=new this.re(s,i),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,void(this.h.W=this.Y);let u,c=this.h.U,p=this.v(c.u,s);if(p!==0){if(p>0)c.U=new this.re(s,i),c.U.tt=c,u=c.U,this.h.U=u;else{let f=this.h.W,g=this.v(f.u,s);if(g===0)return void(f.l=i);if(g<0)f.W=new this.re(s,i),f.W.tt=f,u=f.W,this.h.W=u;else{if(o!==void 0){let m=o.o;if(m!==this.h){let y=this.v(m.u,s);if(y===0)return void(m.l=i);if(y>0){let w=m.L(),P=this.v(w.u,s);if(P===0)return void(w.l=i);P<0&&(u=new this.re(s,i),w.W===void 0?(w.W=u,u.tt=w):(m.U=u,u.tt=m))}}}if(u===void 0)for(u=this.Y;;){let m=this.v(u.u,s);if(m>0){if(u.U===void 0){u.U=new this.re(s,i),u.U.tt=u,u=u.U;break}u=u.U}else{if(!(m<0))return void(u.l=i);if(u.W===void 0){u.W=new this.re(s,i),u.W.tt=u,u=u.W;break}u=u.W}}}}return this.i+=1,u}c.l=i}I(s,i){for(;s;){let o=this.v(s.u,i);if(o<0)s=s.W;else{if(!(o>0))return s;s=s.U}}return s||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(s,i){let o=s.o;if(o===this.h&&(0,n.throwIteratorAccessError)(),this.i===1)return o.u=i,!0;if(o===this.h.U)return this.v(o.B().u,i)>0&&(o.u=i,!0);if(o===this.h.W)return this.v(o.L().u,i)<0&&(o.u=i,!0);let u=o.L().u;if(this.v(u,i)>=0)return!1;let c=o.B().u;return!(this.v(c,i)<=0)&&(o.u=i,!0)}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let i=0,o=this;return this.oe(this.Y,function(u){return s===i?(o.V(u),!0):(i+=1,!1)}),this.i}eraseElementByKey(s){if(this.i===0)return!1;let i=this.I(this.Y,s);return i!==this.h&&(this.V(i),!0)}eraseElementByIterator(s){let i=s.o;i===this.h&&(0,n.throwIteratorAccessError)();let o=i.W===void 0;return s.iteratorType===0?o&&s.next():(!o||i.U===void 0)&&s.next(),this.V(i),s}forEach(s){let i=0;for(let o of this)s(o,i++,this)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let i,o=0;for(let u of this){if(o===s){i=u;break}o+=1}return i}getHeight(){if(this.i===0)return 0;let s=function(i){return i?Math.max(s(i.U),s(i.W))+1:0};return s(this.Y)}},a=l;t.default=a}),Yf=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=fr(),r=pr(),n=class extends e.ContainerIterator{constructor(l,a,s){super(s),this.o=l,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,r.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let l=this.o,a=this.h.tt;if(l===this.h)return a?a.rt-1:0;let s=0;for(l.U&&(s+=l.U.rt);l!==a;){let i=l.tt;l===i.W&&(s+=1,i.U&&(s+=i.U.rt)),l=i}return s}};t.default=n}),$m=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=l(Qf()),r=l(Yf()),n=pr();function l(i){return i&&i.t?i:{default:i}}var a=class Jf extends r.default{constructor(o,u,c,p){super(o,u,p),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new Jf(this.o,this.h,this.container,this.iteratorType)}},s=class extends e.default{constructor(i=[],o,u){super(o,u);let c=this;i.forEach(function(p){c.insert(p)})}*K(i){i!==void 0&&(yield*this.K(i.U),yield i.u,yield*this.K(i.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(i,o){return this.M(i,void 0,o)}find(i){let o=this.I(this.Y,i);return new a(o,this.h,this)}lowerBound(i){let o=this.X(this.Y,i);return new a(o,this.h,this)}upperBound(i){let o=this.Z(this.Y,i);return new a(o,this.h,this)}reverseLowerBound(i){let o=this.$(this.Y,i);return new a(o,this.h,this)}reverseUpperBound(i){let o=this.rr(this.Y,i);return new a(o,this.h,this)}union(i){let o=this;return i.forEach(function(u){o.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}};t.default=s}),Vm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=l(Qf()),r=l(Yf()),n=pr();function l(i){return i&&i.t?i:{default:i}}var a=class Xf extends r.default{constructor(o,u,c,p){super(o,u,p),this.container=c}get pointer(){this.o===this.h&&(0,n.throwIteratorAccessError)();let o=this;return new Proxy([],{get:(u,c)=>c==="0"?o.o.u:c==="1"?o.o.l:void 0,set(u,c,p){if(c!=="1")throw new TypeError("props must be 1");return o.o.l=p,!0}})}copy(){return new Xf(this.o,this.h,this.container,this.iteratorType)}},s=class extends e.default{constructor(i=[],o,u){super(o,u);let c=this;i.forEach(function(p){c.setElement(p[0],p[1])})}*K(i){i!==void 0&&(yield*this.K(i.U),yield[i.u,i.l],yield*this.K(i.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let i=this.h.U;return[i.u,i.l]}back(){if(this.i===0)return;let i=this.h.W;return[i.u,i.l]}lowerBound(i){let o=this.X(this.Y,i);return new a(o,this.h,this)}upperBound(i){let o=this.Z(this.Y,i);return new a(o,this.h,this)}reverseLowerBound(i){let o=this.$(this.Y,i);return new a(o,this.h,this)}reverseUpperBound(i){let o=this.rr(this.Y,i);return new a(o,this.h,this)}setElement(i,o,u){return this.M(i,o,u)}find(i){let o=this.I(this.Y,i);return new a(o,this.h,this)}getElementByKey(i){return this.I(this.Y,i).l}union(i){let o=this;return i.forEach(function(u){o.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}};t.default=s}),Zf=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=function(e){let r=typeof e;return r==="object"&&e!==null||r==="function"}}),tp=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.HashContainerIterator=t.HashContainer=void 0;var e,r=fr(),n=(e=Zf())&&e.t?e:{default:e},l=pr(),a=class extends r.ContainerIterator{constructor(i,o,u){super(u),this.o=i,this.h=o,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,l.throwIteratorAccessError)(),this.o=this.o.L,this})}};t.HashContainerIterator=a;var s=class extends r.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(i){let{L:o,B:u}=i;o.B=u,u.L=o,i===this.p&&(this.p=u),i===this._&&(this._=o),this.i-=1}M(i,o,u){let c;if(u===void 0&&(u=(0,n.default)(i)),u){let p=i[this.HASH_TAG];if(p!==void 0)return this.H[p].l=o,this.i;Object.defineProperty(i,this.HASH_TAG,{value:this.H.length,configurable:!0}),c={u:i,l:o,L:this._,B:this.h},this.H.push(c)}else{let p=this.g[i];if(p)return p.l=o,this.i;c={u:i,l:o,L:this._,B:this.h},this.g[i]=c}return this.i===0?(this.p=c,this.h.B=c):this._.B=c,this._=c,this.h.L=c,++this.i}I(i,o){if(o===void 0&&(o=(0,n.default)(i)),o){let u=i[this.HASH_TAG];return u===void 0?this.h:this.H[u]}return this.g[i]||this.h}clear(){let i=this.HASH_TAG;this.H.forEach(function(o){delete o.u[i]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(i,o){let u;if(o===void 0&&(o=(0,n.default)(i)),o){let c=i[this.HASH_TAG];if(c===void 0)return!1;delete i[this.HASH_TAG],u=this.H[c],delete this.H[c]}else{if(u=this.g[i],u===void 0)return!1;delete this.g[i]}return this.V(u),!0}eraseElementByIterator(i){let o=i.o;return o===this.h&&(0,l.throwIteratorAccessError)(),this.V(o),i.next()}eraseElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let o=this.p;for(;i--;)o=o.B;return this.V(o),this.i}};t.HashContainer=s}),qm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e=tp(),r=pr(),n=class ep extends e.HashContainerIterator{constructor(s,i,o,u){super(s,i,u),this.container=o}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new ep(this.o,this.h,this.container,this.iteratorType)}},l=class extends e.HashContainer{constructor(a=[]){super();let s=this;a.forEach(function(i){s.insert(i)})}begin(){return new n(this.p,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this._,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,s){return this.M(a,void 0,s)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=this.p;for(;a--;)s=s.B;return s.u}find(a,s){let i=this.I(a,s);return new n(i,this.h,this)}forEach(a){let s=0,i=this.p;for(;i!==this.h;)a(i.u,s++,this),i=i.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}};t.default=l}),Hm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),t.default=void 0;var e,r=tp(),n=(e=Zf())&&e.t?e:{default:e},l=pr(),a=class rp extends r.HashContainerIterator{constructor(o,u,c,p){super(o,u,p),this.container=c}get pointer(){this.o===this.h&&(0,l.throwIteratorAccessError)();let o=this;return new Proxy([],{get:(u,c)=>c==="0"?o.o.u:c==="1"?o.o.l:void 0,set(u,c,p){if(c!=="1")throw new TypeError("props must be 1");return o.o.l=p,!0}})}copy(){return new rp(this.o,this.h,this.container,this.iteratorType)}},s=class extends r.HashContainer{constructor(i=[]){super();let o=this;i.forEach(function(u){o.setElement(u[0],u[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(i,o,u){return this.M(i,o,u)}getElementByKey(i,o){if(o===void 0&&(o=(0,n.default)(i)),o){let c=i[this.HASH_TAG];return c!==void 0?this.H[c].l:void 0}let u=this.g[i];return u?u.l:void 0}getElementByPos(i){if(i<0||i>this.i-1)throw new RangeError;let o=this.p;for(;i--;)o=o.B;return[o.u,o.l]}find(i,o){let u=this.I(i,o);return new a(u,this.h,this)}forEach(i){let o=0,u=this.p;for(;u!==this.h;)i([u.u,u.l],o++,this),u=u.B}[Symbol.iterator](){return(function*(){let i=this.p;for(;i!==this.h;)yield[i.u,i.l],i=i.B}).bind(this)()}};t.default=s}),zm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"t",{value:!0}),Object.defineProperty(t,"Deque",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"HashMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"HashSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"OrderedMap",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"OrderedSet",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"PriorityQueue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Stack",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return l.default}});var e=p(jm()),r=p(Lm()),n=p(Nm()),l=p(Um()),a=p(Dm()),s=p(Fm()),i=p($m()),o=p(Vm()),u=p(qm()),c=p(Hm());function p(f){return f&&f.t?f:{default:f}}}),Km=_t((t,e)=>{bt(),vt(),yt();var r=zm().OrderedSet,n=lr()("number-allocator:trace"),l=lr()("number-allocator:error");function a(i,o){this.low=i,this.high=o}function s(i,o){if(!(this instanceof s))return new s(i,o);this.min=i,this.max=o,this.ss=new r([],(u,c)=>u.compare(c)),n("Create"),this.clear()}a.prototype.equals=function(i){return this.low===i.low&&this.high===i.high},a.prototype.compare=function(i){return this.lowi)&&(c===i?(this.ss.updateKeyByIterator(u,new a(c+1,p)),n("use():"+i),!0):p===i?(this.ss.updateKeyByIterator(u,new a(c,p-1)),n("use():"+i),!0):(this.ss.updateKeyByIterator(u,new a(i+1,p)),this.ss.insert(new a(c,i-1)),n("use():"+i),!0))}return n("use():failed"),!1},s.prototype.free=function(i){if(ithis.max)return void l("free():"+i+" is out of range");let o=new a(i,i),u=this.ss.upperBound(o);if(u.equals(this.ss.end())){if(u.equals(this.ss.begin()))return void this.ss.insert(o);u.pre();let c=u.pointer.high;u.pointer.high+1===i?this.ss.updateKeyByIterator(u,new a(c,i)):this.ss.insert(o)}else if(u.equals(this.ss.begin()))if(i+1===u.pointer.low){let c=u.pointer.high;this.ss.updateKeyByIterator(u,new a(i,c))}else this.ss.insert(o);else{let c=u.pointer.low,p=u.pointer.high;u.pre();let f=u.pointer.low;u.pointer.high+1===i?i+1===c?(this.ss.eraseElementByIterator(u),this.ss.updateKeyByIterator(u,new a(f,p))):this.ss.updateKeyByIterator(u,new a(f,i)):i+1===c?(this.ss.eraseElementByIterator(u.next()),this.ss.insert(new a(i,p))):this.ss.insert(o)}n("free():"+i)},s.prototype.clear=function(){n("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},s.prototype.intervalCount=function(){return this.ss.size()},s.prototype.dump=function(){for(let i of this.ss);},e.exports=s}),np=_t((t,e)=>{bt(),vt(),yt();var r=Km();e.exports.NumberAllocator=r}),Gm=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e=Bm(),r=np();t.default=class{constructor(n){n>0&&(this.aliasToTopic=new e.LRUCache({max:n}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,n),this.max=n,this.length=0)}put(n,l){if(l===0||l>this.max)return!1;let a=this.aliasToTopic.get(l);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(l,n),this.topicToAlias[n]=l,this.numberAllocator.use(l),this.length=this.aliasToTopic.size,!0}getTopicByAlias(n){return this.aliasToTopic.get(n)}getAliasByTopic(n){let l=this.topicToAlias[n];return typeof l<"u"&&this.aliasToTopic.get(l),l}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}}),Qm=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=ko(),n=e(Gm()),l=Cn();t.default=(a,s)=>{a.log("_handleConnack");let{options:i}=a,o=i.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535)return void a.emit("error",new Error("topicAliasMaximum from broker is out of range"));s.properties.topicAliasMaximum>0&&(a.topicAliasSend=new n.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&i.keepalive&&(i.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(i.properties||(i.properties={}),i.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(o===0)a.reconnecting=!1,a._onConnect(s);else if(o>0){let u=new l.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[o]}`,o);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}}}),Ym=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,r,n)=>{e.log("handling pubrel packet");let l=typeof n<"u"?n:e.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};e.incomingStore.get(r,(i,o)=>{i?e._sendPacket(s,l):(e.emit("message",o.topic,o.payload,o),e.handleMessage(o,u=>{if(u)return l(u);e.incomingStore.del(o,e.noop),e._sendPacket(s,l)}))})}}),Jm=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(Rm()),n=e(Mm()),l=e(Qm()),a=e(ko()),s=e(Ym());t.default=(i,o,u)=>{let{options:c}=i;if(c.protocolVersion===5&&c.properties&&c.properties.maximumPacketSize&&c.properties.maximumPacketSize{bt(),vt(),yt();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var r=e((on(),Dt(jr))),n=Cn(),l=class{};t.TypedEventEmitter=l,(0,n.applyMixin)(l,r.default)}),Io=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.isReactNativeBrowser=t.isWebWorker=void 0;var e,r=()=>{var a,s;return!(typeof self!="object"||(s=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||s===void 0||!s.includes("WorkerGlobalScope"))},n=()=>typeof navigator<"u"&&navigator.product==="ReactNative",l=typeof window<"u"&&(typeof navigator<"u"&&((e=navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase().indexOf(" electron/"))>-1&&Vt!=null&&Vt.versions?!Object.prototype.hasOwnProperty.call(Vt.versions,"electron"):typeof window.document<"u")||r()||n();t.isWebWorker=r(),t.isReactNativeBrowser=n(),t.default=l}),Zm=_t((t,e)=>{var r,n;bt(),vt(),yt(),r=t,n=function(l){var a,s=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,i=536870912,o=2*i,u=new WeakMap,c=function(f,g){return function(m){var y=g.get(m),w=y===void 0?m.size:ys)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;m.has(w);)w=Math.floor(Math.random()*s);return f(m,w)}}((a=u,function(f,g){return a.set(f,g),g}),u),p=function(f){return function(g){var m=f(g);return g.add(m),m}}(c);l.addUniqueNumber=p,l.generateUniqueNumber=c},typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):n((r=typeof globalThis<"u"?globalThis:r||self).fastUniqueNumbers={})}),tb=_t((t,e)=>{var r,n;bt(),vt(),yt(),r=t,n=function(l,a){l.load=function(s){var i=new Map([[0,function(){}]]),o=new Map([[0,function(){}]]),u=new Map,c=new Worker(s);return c.addEventListener("message",function(p){var f=p.data;if(function(b){return b.method!==void 0&&b.method==="call"}(f)){var g=f.params,m=g.timerId,y=g.timerType;if(y==="interval"){var w=i.get(m);if(typeof w=="number"){var P=u.get(w);if(P===void 0||P.timerId!==m||P.timerType!==y)throw new Error("The timer is in an undefined state.")}else{if(!(typeof w<"u"))throw new Error("The timer is in an undefined state.");w()}}else if(y==="timeout"){var O=o.get(m);if(typeof O=="number"){var F=u.get(O);if(F===void 0||F.timerId!==m||F.timerType!==y)throw new Error("The timer is in an undefined state.")}else{if(!(typeof O<"u"))throw new Error("The timer is in an undefined state.");O(),o.delete(m)}}}else{if(!function(b){return b.error===null&&typeof b.id=="number"}(f)){var J=f.error.message;throw new Error(J)}var z=f.id,it=u.get(z);if(it===void 0)throw new Error("The timer is in an undefined state.");var E=it.timerId,_=it.timerType;u.delete(z),_==="interval"?i.delete(E):o.delete(E)}}),{clearInterval:function(p){var f=a.generateUniqueNumber(u);u.set(f,{timerId:p,timerType:"interval"}),i.set(p,f),c.postMessage({id:f,method:"clear",params:{timerId:p,timerType:"interval"}})},clearTimeout:function(p){var f=a.generateUniqueNumber(u);u.set(f,{timerId:p,timerType:"timeout"}),o.set(p,f),c.postMessage({id:f,method:"clear",params:{timerId:p,timerType:"timeout"}})},setInterval:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=a.generateUniqueNumber(i);return i.set(g,function(){p(),typeof i.get(g)=="function"&&c.postMessage({id:null,method:"set",params:{delay:f,now:performance.now(),timerId:g,timerType:"interval"}})}),c.postMessage({id:null,method:"set",params:{delay:f,now:performance.now(),timerId:g,timerType:"interval"}}),g},setTimeout:function(p){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=a.generateUniqueNumber(o);return o.set(g,p),c.postMessage({id:null,method:"set",params:{delay:f,now:performance.now(),timerId:g,timerType:"timeout"}}),g}}}},typeof t=="object"&&typeof e<"u"?n(t,Zm()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],n):n((r=typeof globalThis<"u"?globalThis:r||self).workerTimersBroker={},r.fastUniqueNumbers)}),eb=_t((t,e)=>{var r,n;bt(),vt(),yt(),r=t,n=function(l,a){var s=function(i,o){var u=null;return function(){if(u!==null)return u;var c=new Blob([o],{type:"application/javascript; charset=utf-8"}),p=URL.createObjectURL(c);return u=i(p),setTimeout(function(){return URL.revokeObjectURL(p)}),u}}(a.load,`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`);l.clearInterval=function(i){return s().clearInterval(i)},l.clearTimeout=function(i){return s().clearTimeout(i)},l.setInterval=function(){var i;return(i=s()).setInterval.apply(i,arguments)},l.setTimeout=function(){var i;return(i=s()).setTimeout.apply(i,arguments)}},typeof t=="object"&&typeof e<"u"?n(t,tb()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],n):n((r=typeof globalThis<"u"?globalThis:r||self).workerTimers={},r.workerTimersBroker)}),rb=_t(t=>{bt(),vt(),yt();var e,r=t&&t.__createBinding||(Object.create?function(u,c,p,f){f===void 0&&(f=p);var g=Object.getOwnPropertyDescriptor(c,p);(!g||("get"in g?!c.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return c[p]}}),Object.defineProperty(u,f,g)}:function(u,c,p,f){f===void 0&&(f=p),u[f]=c[p]}),n=t&&t.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),l=t&&t.__importStar||(e=function(u){return(e=Object.getOwnPropertyNames||function(c){var p=[];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(p[p.length]=f);return p})(u)},function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var p=e(u),f=0;fsetInterval(u,c),clear:u=>clearInterval(u)};t.default=u=>{switch(u){case"native":return o;case"worker":return i;default:return!a.default||a.isWebWorker||a.isReactNativeBrowser?o:i}}}),ip=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(rb());t.default=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(n,l){this.destroyed=!1,this.client=n,this.timer=typeof l=="object"&&"set"in l&&"clear"in l?l:(0,r.default)(l),this.setKeepalive(n.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(n){if(n*=1e3,isNaN(n)||n<=0||n>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${n}`);this._keepalive=n,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${n}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let n=Math.ceil(1.5*this._keepalive);this._keepaliveTimeoutTimestamp=Date.now()+n,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}}}),xa=_t(t=>{bt(),vt(),yt();var e,r=t&&t.__createBinding||(Object.create?function(it,E,_,b){b===void 0&&(b=_);var R=Object.getOwnPropertyDescriptor(E,_);(!R||("get"in R?!E.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return E[_]}}),Object.defineProperty(it,b,R)}:function(it,E,_,b){b===void 0&&(b=_),it[b]=E[_]}),n=t&&t.__setModuleDefault||(Object.create?function(it,E){Object.defineProperty(it,"default",{enumerable:!0,value:E})}:function(it,E){it.default=E}),l=t&&t.__importStar||(e=function(it){return(e=Object.getOwnPropertyNames||function(E){var _=[];for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(_[_.length]=b);return _})(it)},function(it){if(it&&it.__esModule)return it;var E={};if(it!=null)for(var _=e(it),b=0;b<_.length;b++)_[b]!=="default"&&r(E,it,_[b]);return n(E,it),E}),a=t&&t.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(cm()),i=a(Om()),o=a(Wf()),u=an(),c=a(xm()),p=l(Cm()),f=a(lr()),g=a($f()),m=a(Jm()),y=Cn(),w=Xm(),P=a(ip()),O=l(Io()),F=globalThis.setImmediate||((...it)=>{let E=it.shift();(0,y.nextTick)(()=>{E(...it)})}),J={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},z=class Ca extends w.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(E,_){super(),this.options=_||{};for(let b in J)typeof this.options[b]>"u"?this.options[b]=J[b]:this.options[b]=_[b];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",Ca.VERSION),O.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",O.default?"browser":"node"),this.log("MqttClient :: options.protocol",_.protocol),this.log("MqttClient :: options.protocolVersion",_.protocolVersion),this.log("MqttClient :: options.username",_.username),this.log("MqttClient :: options.keepalive",_.keepalive),this.log("MqttClient :: options.reconnectPeriod",_.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",_.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",_.properties?_.properties.topicAliasMaximum:void 0),this.options.clientId=typeof _.clientId=="string"?_.clientId:Ca.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=_.protocolVersion===5&&_.customHandleAcks?_.customHandleAcks:(...b)=>{b[3](null,0)},this.options.writeCache||(i.default.writeToStream.cacheNumbers=!1),this.streamBuilder=E,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new o.default:this.options.messageIdProvider,this.outgoingStore=_.outgoingStore||new g.default,this.incomingStore=_.incomingStore||new g.default,this.queueQoSZero=_.queueQoSZero===void 0||_.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,_.properties&&_.properties.topicAliasMaximum>0&&(_.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new s.default(_.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:b}=this,R=()=>{let B=b.shift();this.log("deliver :: entry %o",B);let et=null;if(!B)return void this._resubscribe();et=B.packet,this.log("deliver :: call _sendPacket for %o",et);let st=!0;et.messageId&&et.messageId!==0&&(this.messageIdProvider.register(et.messageId)||(st=!1)),st?this._sendPacket(et,q=>{B.cb&&B.cb(q),R()}):(this.log("messageId: %d has already used. The message is skipped and removed.",et.messageId),R())};this.log("connect :: sending queued packets"),R()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(E,_){_()}handleMessage(E,_){_()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var E;let _=new u.Writable,b=i.default.parser(this.options),R=null,B=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new g.default,this.outgoingStore=this.options.outgoingStore||new g.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),b.on("packet",X=>{this.log("parser :: on packet push to packets array."),B.push(X)});let et=()=>{this.log("work :: getting next packet in queue");let X=B.shift();if(X)this.log("work :: packet pulled from queue"),(0,m.default)(this,X,st);else{this.log("work :: no packets in queue");let rt=R;R=null,this.log("work :: done flag is %s",!!rt),rt&&rt()}},st=()=>{if(B.length)(0,y.nextTick)(et);else{let X=R;R=null,X()}};_._write=(X,rt,W)=>{R=W,this.log("writable stream :: parsing buffer"),b.parse(X),et()},this.log("connect :: pipe stream to writable stream"),this.stream.pipe(_),this.stream.on("error",X=>{this.log("streamErrorHandler :: error",X.message),X.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",X)):this.noop(X)}),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let q={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(q.will=Object.assign(Object.assign({},this.options.will),{payload:(E=this.options.will)===null||E===void 0?void 0:E.payload})),this.topicAliasRecv&&(q.properties||(q.properties={}),this.topicAliasRecv&&(q.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(q),b.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let X=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(X)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(E,_,b,R){this.log("publish :: message `%s` to topic `%s`",_,E);let{options:B}=this;typeof b=="function"&&(R=b,b=null),b=b||{},b=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),b);let{qos:et,retain:st,dup:q,properties:X,cbStorePut:rt}=b;if(this._checkDisconnecting(R))return this;let W=()=>{let ct=0;if((et===1||et===2)&&(ct=this._nextId(),ct===null))return this.log("No messageId left"),!1;let Q={cmd:"publish",topic:E,payload:_,qos:et,retain:st,messageId:ct,dup:q};switch(B.protocolVersion===5&&(Q.properties=X),this.log("publish :: qos",et),et){case 1:case 2:this.outgoing[Q.messageId]={volatile:!1,cb:R||this.noop},this.log("MqttClient:publish: packet cmd: %s",Q.cmd),this._sendPacket(Q,void 0,rt);break;default:this.log("MqttClient:publish: packet cmd: %s",Q.cmd),this._sendPacket(Q,R,rt)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!W())&&this._storeProcessingQueue.push({invoke:W,cbStorePut:b.cbStorePut,callback:R}),this}publishAsync(E,_,b){return new Promise((R,B)=>{this.publish(E,_,b,(et,st)=>{et?B(et):R(st)})})}subscribe(E,_,b){let R=this.options.protocolVersion;typeof _=="function"&&(b=_),b=b||this.noop;let B=!1,et=[];typeof E=="string"?et=E=[E]:Array.isArray(E)?et=E:typeof E=="object"&&(B=E.resubscribe,delete E.resubscribe,et=Object.keys(E));let st=p.validateTopics(et);if(st!==null)return F(b,new Error(`Invalid topic ${st}`)),this;if(this._checkDisconnecting(b))return this.log("subscribe: discconecting true"),this;let q={qos:0};R===5&&(q.nl=!1,q.rap=!1,q.rh=0);let X=(_=Object.assign(Object.assign({},q),_)).properties,rt=[],W=(Q,$)=>{if($=$||_,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,Q)||this._resubscribeTopics[Q].qos<$.qos||B){let j={topic:Q,qos:$.qos};R===5&&(j.nl=$.nl,j.rap=$.rap,j.rh=$.rh,j.properties=X),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",j.topic,j.qos),rt.push(j)}};if(Array.isArray(E)?E.forEach(Q=>{this.log("subscribe: array topic %s",Q),W(Q)}):Object.keys(E).forEach(Q=>{this.log("subscribe: object topic %s, %o",Q,E[Q]),W(Q,E[Q])}),!rt.length)return b(null,[]),this;let ct=()=>{let Q=this._nextId();if(Q===null)return this.log("No messageId left"),!1;let $={cmd:"subscribe",subscriptions:rt,messageId:Q};if(X&&($.properties=X),this.options.resubscribe){this.log("subscribe :: resubscribe true");let j=[];rt.forEach(N=>{if(this.options.reconnectPeriod>0){let G={qos:N.qos};R===5&&(G.nl=N.nl||!1,G.rap=N.rap||!1,G.rh=N.rh||0,G.properties=N.properties),this._resubscribeTopics[N.topic]=G,j.push(N.topic)}}),this.messageIdToTopic[$.messageId]=j}return this.outgoing[$.messageId]={volatile:!0,cb(j,N){if(!j){let{granted:G}=N;for(let U=0;U0||!ct())&&this._storeProcessingQueue.push({invoke:ct,callback:b}),this}subscribeAsync(E,_){return new Promise((b,R)=>{this.subscribe(E,_,(B,et)=>{B?R(B):b(et)})})}unsubscribe(E,_,b){typeof E=="string"&&(E=[E]),typeof _=="function"&&(b=_),b=b||this.noop;let R=p.validateTopics(E);if(R!==null)return F(b,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(b))return this;let B=()=>{let et=this._nextId();if(et===null)return this.log("No messageId left"),!1;let st={cmd:"unsubscribe",messageId:et,unsubscriptions:[]};return typeof E=="string"?st.unsubscriptions=[E]:Array.isArray(E)&&(st.unsubscriptions=E),this.options.resubscribe&&st.unsubscriptions.forEach(q=>{delete this._resubscribeTopics[q]}),typeof _=="object"&&_.properties&&(st.properties=_.properties),this.outgoing[st.messageId]={volatile:!0,cb:b},this.log("unsubscribe: call _sendPacket"),this._sendPacket(st),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!B())&&this._storeProcessingQueue.push({invoke:B,callback:b}),this}unsubscribeAsync(E,_){return new Promise((b,R)=>{this.unsubscribe(E,_,(B,et)=>{B?R(B):b(et)})})}end(E,_,b){this.log("end :: (%s)",this.options.clientId),(E==null||typeof E!="boolean")&&(b=b||_,_=E,E=!1),typeof _!="object"&&(b=b||_,_=null),this.log("end :: cb? %s",!!b),(!b||typeof b!="function")&&(b=this.noop);let R=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(et=>{this.outgoingStore.close(st=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),b){let q=et||st;this.log("end :: closeStores: invoking callback with args"),b(q)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},B=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,E),this._cleanUp(E,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,y.nextTick)(R)},_)};return this.disconnecting?(b(),this):(this._clearReconnect(),this.disconnecting=!0,!E&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,B,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),B()),this)}endAsync(E,_){return new Promise((b,R)=>{this.end(E,_,B=>{B?R(B):b()})})}removeOutgoingMessage(E){if(this.outgoing[E]){let{cb:_}=this.outgoing[E];this._removeOutgoingAndStoreMessage(E,()=>{_(new Error("Message removed"))})}return this}reconnect(E){this.log("client reconnect");let _=()=>{E?(this.options.incomingStore=E.incomingStore,this.options.outgoingStore=E.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new g.default,this.outgoingStore=this.options.outgoingStore||new g.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=_:_(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(E=>{this.outgoing[E].volatile&&typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(E=>{typeof this.outgoing[E].cb=="function"&&(this.outgoing[E].cb(new Error("Connection closed")),delete this.outgoing[E])}))}_removeTopicAliasAndRecoverTopicName(E){let _;E.properties&&(_=E.properties.topicAlias);let b=E.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",_,b),b.length===0){if(typeof _>"u")return new Error("Unregistered Topic Alias");if(b=this.topicAliasSend.getTopicByAlias(_),typeof b>"u")return new Error("Unregistered Topic Alias");E.topic=b}_&&delete E.properties.topicAlias}_checkDisconnecting(E){return this.disconnecting&&(E&&E!==this.noop?E(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(E,_,b={}){if(_&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",_)),this.log("_cleanUp :: forced? %s",E),E)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let R=Object.assign({cmd:"disconnect"},b);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(R,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),F(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),_&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",_),_())}_storeAndSend(E,_,b){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",E.cmd);let R,B=E;if(B.cmd==="publish"&&(B=(0,c.default)(E),R=this._removeTopicAliasAndRecoverTopicName(B),R))return _&&_(R);this.outgoingStore.put(B,et=>{if(et)return _&&_(et);b(),this._writePacket(E,_)})}_applyTopicAlias(E){if(this.options.protocolVersion===5&&E.cmd==="publish"){let _;E.properties&&(_=E.properties.topicAlias);let b=E.topic.toString();if(this.topicAliasSend)if(_){if(b.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",b,_),!this.topicAliasSend.put(b,_)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",b,_),new Error("Sending Topic Alias out of range")}else b.length!==0&&(this.options.autoAssignTopicAlias?(_=this.topicAliasSend.getAliasByTopic(b),_?(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",b,_)):(_=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(b,_),E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",b,_))):this.options.autoUseTopicAlias&&(_=this.topicAliasSend.getAliasByTopic(b),_&&(E.topic="",E.properties=Object.assign(Object.assign({},E.properties),{topicAlias:_}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",b,_))));else if(_)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",b,_),new Error("Sending Topic Alias out of range")}}_noop(E){this.log("noop ::",E)}_writePacket(E,_){this.log("_writePacket :: packet: %O",E),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",E),this.log("_writePacket :: writing to stream");let b=i.default.writeToStream(E,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",b),!b&&_&&_!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",_)):_&&(this.log("_writePacket :: invoking cb"),_())}_sendPacket(E,_,b,R){this.log("_sendPacket :: (%s) :: start",this.options.clientId),b=b||this.noop,_=_||this.noop;let B=this._applyTopicAlias(E);if(B)_(B);else{if(!this.connected)return E.cmd==="auth"?void this._writePacket(E,_):(this.log("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(E,_,b));if(R)this._writePacket(E,_);else{switch(E.cmd){case"publish":break;case"pubrel":return void this._storeAndSend(E,_,b);default:return void this._writePacket(E,_)}switch(E.qos){case 2:case 1:this._storeAndSend(E,_,b);break;default:this._writePacket(E,_)}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}}}_storePacket(E,_,b){this.log("_storePacket :: packet: %o",E),this.log("_storePacket :: cb? %s",!!_),b=b||this.noop;let R=E;if(R.cmd==="publish"){R=(0,c.default)(E);let et=this._removeTopicAliasAndRecoverTopicName(R);if(et)return _&&_(et)}let B=R.qos||0;B===0&&this.queueQoSZero||R.cmd!=="publish"?this.queue.push({packet:R,cb:_}):B>0?(_=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoingStore.put(R,et=>{if(et)return _&&_(et);b()})):_&&_(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new P.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(E=!1){this.keepaliveManager&&this.options.keepalive&&(E||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let E=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&E.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let _=0;_{let b=this.outgoingStore.createStream(),R=()=>{b.destroy(),b=null,this._flushStoreProcessingQueue(),B()},B=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",R),b.on("error",st=>{B(),this._flushStoreProcessingQueue(),this.removeListener("close",R),this.emit("error",st)});let et=()=>{if(!b)return;let st,q=b.read(1);q?(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[q.messageId]?et():this.disconnecting||this.reconnectTimer?b.destroy&&b.destroy():(st=this.outgoing[q.messageId]?this.outgoing[q.messageId].cb:null,this.outgoing[q.messageId]={volatile:!1,cb(X,rt){st&&st(X,rt),et()}},this._packetIdsDuringStoreProcessing[q.messageId]=!0,this.messageIdProvider.register(q.messageId)?this._sendPacket(q,void 0,void 0,!0):this.log("messageId: %d has already used.",q.messageId))):b.once("readable",et)};b.on("end",()=>{let st=!0;for(let q in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[q]){st=!1;break}this.removeListener("close",R),st?(B(),this._invokeAllStoreProcessingQueue(),this.emit("connect",E)):_()}),et()};_()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let E=this._storeProcessingQueue[0];if(E&&E.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let E of this._storeProcessingQueue)E.cbStorePut&&E.cbStorePut(new Error("Connection closed")),E.callback&&E.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(E,_){delete this.outgoing[E],this.outgoingStore.del({messageId:E},(b,R)=>{_(b,R),this.messageIdProvider.deallocate(E),this._invokeStoreProcessingQueue()})}};z.VERSION=y.MQTTJS_VERSION,t.default=z}),nb=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e=np();t.default=class{constructor(){this.numberAllocator=new e.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}}});function Vr(t){throw new RangeError(sp[t])}function qu(t,e){let r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+function(l,a){let s=[],i=l.length;for(;i--;)s[i]=a(l[i]);return s}((t=t.replace(op,".")).split("."),e).join(".")}function Hu(t){let e=[],r=0,n=t.length;for(;r=55296&&l<=56319&&r{bt(),vt(),yt(),zu=/^xn--/,Ku=/[^\0-\x7E]/,op=/[\x2E\u3002\uFF0E\uFF61]/g,sp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},je=Math.floor,Oi=String.fromCharCode,rs=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},ns=function(t,e,r){let n=0;for(t=r?je(t/700):t>>1,t+=je(t/e);t>455;n+=36)t=je(t/35);return je(n+36*t/(t+38))},is=function(t){let e=[],r=t.length,n=0,l=128,a=72,s=t.lastIndexOf("-");s<0&&(s=0);for(let o=0;o=128&&Vr("not-basic"),e.push(t.charCodeAt(o));for(let o=s>0?s+1:0;o=r&&Vr("invalid-input");let g=(i=t.charCodeAt(o++))-48<10?i-22:i-65<26?i-65:i-97<26?i-97:36;(g>=36||g>je((2147483647-n)/p))&&Vr("overflow"),n+=g*p;let m=f<=a?1:f>=a+26?26:f-a;if(gje(2147483647/y)&&Vr("overflow"),p*=y}let c=e.length+1;a=ns(n-u,c,u==0),je(n/c)>2147483647-l&&Vr("overflow"),l+=je(n/c),n%=c,e.splice(n++,0,l)}var i;return String.fromCodePoint(...e)},os=function(t){let e=[],r=(t=Hu(t)).length,n=128,l=0,a=72;for(let o of t)o<128&&e.push(Oi(o));let s=e.length,i=s;for(s&&e.push("-");i=n&&cje((2147483647-l)/u)&&Vr("overflow"),l+=(o-n)*u,n=o;for(let c of t)if(c2147483647&&Vr("overflow"),c==n){let p=l;for(let f=36;;f+=36){let g=f<=a?1:f>=a+26?26:f-a;if(pString.fromCodePoint(...t)},decode:is,encode:os,toASCII:function(t){return qu(t,function(e){return Ku.test(e)?"xn--"+os(e):e})},toUnicode:function(t){return qu(t,function(e){return zu.test(e)?is(e.slice(4).toLowerCase()):e})}},Hr.encode,Hr.toASCII,Hr.toUnicode,Hr.ucs2,Hr.version});function ob(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Gu,fn,Qu,tr,sb=be(()=>{bt(),vt(),yt(),Gu=function(t,e,r,n){e=e||"&",r=r||"=";var l={};if(typeof t!="string"||t.length===0)return l;var a=/\+/g;t=t.split(e);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var i=t.length;s>0&&i>s&&(i=s);for(var o=0;o=0?(u=g.substr(0,m),c=g.substr(m+1)):(u=g,c=""),p=decodeURIComponent(u),f=decodeURIComponent(c),ob(l,p)?Array.isArray(l[p])?l[p].push(f):l[p]=[l[p],f]:l[p]=f}return l},fn=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},Qu=function(t,e,r,n){return e=e||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(l){var a=encodeURIComponent(fn(l))+r;return Array.isArray(t[l])?t[l].map(function(s){return a+encodeURIComponent(fn(s))}).join(e):a+encodeURIComponent(fn(t[l]))}).join(e):n?encodeURIComponent(fn(n))+r+encodeURIComponent(fn(t)):""},(tr={}).decode=tr.parse=Gu,tr.encode=tr.stringify=Qu,tr.decode,tr.encode,tr.parse,tr.stringify});function Ra(){throw new Error("setTimeout has not been defined")}function Pa(){throw new Error("clearTimeout has not been defined")}function ap(t){if(rr===setTimeout)return setTimeout(t,0);if((rr===Ra||!rr)&&setTimeout)return rr=setTimeout,setTimeout(t,0);try{return rr(t,0)}catch{try{return rr.call(null,t,0)}catch{return rr.call(this||Zr,t,0)}}}function ab(){tn&&Qr&&(tn=!1,Qr.length?qe=Qr.concat(qe):Xn=-1,qe.length&&lp())}function lp(){if(!tn){var t=ap(ab);tn=!0;for(var e=qe.length;e;){for(Qr=qe,qe=[];++Xn{bt(),vt(),yt(),Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:zi,Zt=Ju={},function(){try{rr=typeof setTimeout=="function"?setTimeout:Ra}catch{rr=Ra}try{nr=typeof clearTimeout=="function"?clearTimeout:Pa}catch{nr=Pa}}(),qe=[],tn=!1,Xn=-1,Zt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var w=1;w{bt(),vt(),yt(),Hi={},Ma=!1,zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:zi,(Jt=ub()).platform="browser",Jt.addListener,Jt.argv,Jt.binding,Jt.browser,Jt.chdir,Jt.cwd,Jt.emit,Jt.env,Jt.listeners,Jt.nextTick,Jt.off,Jt.on,Jt.once,Jt.prependListener,Jt.prependOnceListener,Jt.removeAllListeners,Jt.removeListener,Jt.title,Jt.umask,Jt.version,Jt.versions}),ss,as,Ba,cb=be(()=>{bt(),vt(),yt(),up(),ss={},as=!1,Ba=function(){if(as)return ss;as=!0;var t=Jt;function e(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function r(l,a){for(var s,i="",o=0,u=-1,c=0,p=0;p<=l.length;++p){if(p2){var f=i.lastIndexOf("/");if(f!==i.length-1){f===-1?(i="",o=0):o=(i=i.slice(0,f)).length-1-i.lastIndexOf("/"),u=p,c=0;continue}}else if(i.length===2||i.length===1){i="",o=0,u=p,c=0;continue}}a&&(i.length>0?i+="/..":i="..",o=2)}else i.length>0?i+="/"+l.slice(u+1,p):i=l.slice(u+1,p),o=p-u-1;u=p,c=0}else s===46&&c!==-1?++c:c=-1}return i}var n={resolve:function(){for(var l,a="",s=!1,i=arguments.length-1;i>=-1&&!s;i--){var o;i>=0?o=arguments[i]:(l===void 0&&(l=t.cwd()),o=l),e(o),o.length!==0&&(a=o+"/"+a,s=o.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(l){if(e(l),l.length===0)return".";var a=l.charCodeAt(0)===47,s=l.charCodeAt(l.length-1)===47;return(l=r(l,!a)).length===0&&!a&&(l="."),l.length>0&&s&&(l+="/"),a?"/"+l:l},isAbsolute:function(l){return e(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,a=0;a0&&(l===void 0?l=s:l+="/"+s)}return l===void 0?".":n.normalize(l)},relative:function(l,a){if(e(l),e(a),l===a||(l=n.resolve(l))===(a=n.resolve(a)))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else o>p&&(l.charCodeAt(s+g)===47?f=g:g===0&&(f=0));break}var m=l.charCodeAt(s+g);if(m!==a.charCodeAt(u+g))break;m===47&&(f=g)}var y="";for(g=s+f+1;g<=i;++g)(g===i||l.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+f):(u+=f,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(l){return l},dirname:function(l){if(e(l),l.length===0)return".";for(var a=l.charCodeAt(0),s=a===47,i=-1,o=!0,u=l.length-1;u>=1;--u)if((a=l.charCodeAt(u))===47){if(!o){i=u;break}}else o=!1;return i===-1?s?"/":".":s&&i===1?"//":l.slice(0,i)},basename:function(l,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(l);var s,i=0,o=-1,u=!0;if(a!==void 0&&a.length>0&&a.length<=l.length){if(a.length===l.length&&a===l)return"";var c=a.length-1,p=-1;for(s=l.length-1;s>=0;--s){var f=l.charCodeAt(s);if(f===47){if(!u){i=s+1;break}}else p===-1&&(u=!1,p=s+1),c>=0&&(f===a.charCodeAt(c)?--c==-1&&(o=s):(c=-1,o=p))}return i===o?o=p:o===-1&&(o=l.length),l.slice(i,o)}for(s=l.length-1;s>=0;--s)if(l.charCodeAt(s)===47){if(!u){i=s+1;break}}else o===-1&&(u=!1,o=s+1);return o===-1?"":l.slice(i,o)},extname:function(l){e(l);for(var a=-1,s=0,i=-1,o=!0,u=0,c=l.length-1;c>=0;--c){var p=l.charCodeAt(c);if(p!==47)i===-1&&(o=!1,i=c+1),p===46?a===-1?a=c:u!==1&&(u=1):a!==-1&&(u=-1);else if(!o){s=c+1;break}}return a===-1||i===-1||u===0||u===1&&a===i-1&&a===s+1?"":l.slice(a,i)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(a,s){var i=s.dir||s.root,o=s.base||(s.name||"")+(s.ext||"");return i?i===s.root?i+o:i+a+o:o}("/",l)},parse:function(l){e(l);var a={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return a;var s,i=l.charCodeAt(0),o=i===47;o?(a.root="/",s=1):s=0;for(var u=-1,c=0,p=-1,f=!0,g=l.length-1,m=0;g>=s;--g)if((i=l.charCodeAt(g))!==47)p===-1&&(f=!1,p=g+1),i===46?u===-1?u=g:m!==1&&(m=1):u!==-1&&(m=-1);else if(!f){c=g+1;break}return u===-1||p===-1||m===0||m===1&&u===p-1&&u===c+1?p!==-1&&(a.base=a.name=c===0&&o?l.slice(1,p):l.slice(c,p)):(c===0&&o?(a.name=l.slice(1,u),a.base=l.slice(1,p)):(a.name=l.slice(c,u),a.base=l.slice(c,p)),a.ext=l.slice(u,p)),c>0?a.dir=l.slice(0,c-1):o&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,ss=n}()}),cp={};function Ie(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Nn(t,e,r){if(t&&Le.isObject(t)&&t instanceof Ie)return t;var n=new Ie;return n.parse(t,e,r),n}function hb(t){if(typeof t=="string")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(t.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return io?function(e){let r=e.hostname,n=e.pathname;for(let l=0;lmp||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(t):function(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let r=e.pathname;for(let n=0;nPp||a!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}(t):function(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let r=e.pathname;for(let n=0;nTp,Url:()=>Sp,default:()=>Wt,fileURLToPath:()=>hp,format:()=>Ap,parse:()=>Op,pathToFileURL:()=>fp,resolve:()=>kp,resolveObject:()=>Ip});var Wt,Xu,Le,Zu,tc,ec,rc,Ti,ls,us,cs,nc,ic,xi,qr,Ci,hs,fs,ja,oc,pp,dp,gp,mp,io,bp,yp,vp,wp,_p,Ep,sc,Sp,Ap,kp,Ip,Op,Tp,xp,Cp,Rp,Pp,oo,Mp,Bp,jp,Lp,Np,Up,pb=be(()=>{bt(),vt(),yt(),ib(),sb(),lb(),cb(),up(),Xu=Hr,Le={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},(Wt={}).parse=Nn,Wt.resolve=function(t,e){return Nn(t,!1,!0).resolve(e)},Wt.resolveObject=function(t,e){return t?Nn(t,!1,!0).resolveObject(e):e},Wt.format=function(t){return Le.isString(t)&&(t=Nn(t)),t instanceof Ie?t.format():Ie.prototype.format.call(t)},Wt.Url=Ie,Zu=/^([a-z0-9.+-]+:)/i,tc=/:[0-9]*$/,ec=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,rc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),Ti=["'"].concat(rc),ls=["%","/","?",";","#"].concat(Ti),us=["/","?","#"],cs=/^[+a-z0-9A-Z_-]{0,63}$/,nc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ic={javascript:!0,"javascript:":!0},xi={javascript:!0,"javascript:":!0},qr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ci=tr,Ie.prototype.parse=function(t,e,r){if(!Le.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),l=n!==-1&&n127?J+="x":J+=F[z];if(!J.match(cs)){var E=P.slice(0,m),_=P.slice(m+1),b=F.match(nc);b&&(E.push(b[1]),_.unshift(b[2])),_.length&&(s="/"+_.join(".")+s),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=Xu.toASCII(this.hostname));var R=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+R,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!ic[u])for(m=0,O=Ti.length;m0)&&r.host.split("@"))&&(r.auth=b.shift(),r.host=r.hostname=b.shift())),r.search=t.search,r.query=t.query,Le.isNull(r.pathname)&&Le.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!F.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var z=F.slice(-1)[0],it=(r.host||t.host||F.length>1)&&(z==="."||z==="..")||z==="",E=0,_=F.length;_>=0;_--)(z=F[_])==="."?F.splice(_,1):z===".."?(F.splice(_,1),E++):E&&(F.splice(_,1),E--);if(!P&&!O)for(;E--;E)F.unshift("..");!P||F[0]===""||F[0]&&F[0].charAt(0)==="/"||F.unshift(""),it&&F.join("/").substr(-1)!=="/"&&F.push("");var b,R=F[0]===""||F[0]&&F[0].charAt(0)==="/";return J&&(r.hostname=r.host=R?"":F.length?F.shift():"",(b=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=b.shift(),r.host=r.hostname=b.shift())),(P=P||r.host&&F.length)&&!R&&F.unshift(""),F.length?r.pathname=F.join("/"):(r.pathname=null,r.path=null),Le.isNull(r.pathname)&&Le.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},Ie.prototype.parseHost=function(){var t=this.host,e=tc.exec(t);e&&((e=e[0])!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},Wt.Url,Wt.format,Wt.resolve,Wt.resolveObject,hs={},fs=!1,ja=function(){if(fs)return hs;fs=!0;var t=te;function e(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function r(l,a){for(var s,i="",o=0,u=-1,c=0,p=0;p<=l.length;++p){if(p2){var f=i.lastIndexOf("/");if(f!==i.length-1){f===-1?(i="",o=0):o=(i=i.slice(0,f)).length-1-i.lastIndexOf("/"),u=p,c=0;continue}}else if(i.length===2||i.length===1){i="",o=0,u=p,c=0;continue}}a&&(i.length>0?i+="/..":i="..",o=2)}else i.length>0?i+="/"+l.slice(u+1,p):i=l.slice(u+1,p),o=p-u-1;u=p,c=0}else s===46&&c!==-1?++c:c=-1}return i}var n={resolve:function(){for(var l,a="",s=!1,i=arguments.length-1;i>=-1&&!s;i--){var o;i>=0?o=arguments[i]:(l===void 0&&(l=t.cwd()),o=l),e(o),o.length!==0&&(a=o+"/"+a,s=o.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(l){if(e(l),l.length===0)return".";var a=l.charCodeAt(0)===47,s=l.charCodeAt(l.length-1)===47;return(l=r(l,!a)).length===0&&!a&&(l="."),l.length>0&&s&&(l+="/"),a?"/"+l:l},isAbsolute:function(l){return e(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,a=0;a0&&(l===void 0?l=s:l+="/"+s)}return l===void 0?".":n.normalize(l)},relative:function(l,a){if(e(l),e(a),l===a||(l=n.resolve(l))===(a=n.resolve(a)))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else o>p&&(l.charCodeAt(s+g)===47?f=g:g===0&&(f=0));break}var m=l.charCodeAt(s+g);if(m!==a.charCodeAt(u+g))break;m===47&&(f=g)}var y="";for(g=s+f+1;g<=i;++g)(g===i||l.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+f):(u+=f,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(l){return l},dirname:function(l){if(e(l),l.length===0)return".";for(var a=l.charCodeAt(0),s=a===47,i=-1,o=!0,u=l.length-1;u>=1;--u)if((a=l.charCodeAt(u))===47){if(!o){i=u;break}}else o=!1;return i===-1?s?"/":".":s&&i===1?"//":l.slice(0,i)},basename:function(l,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(l);var s,i=0,o=-1,u=!0;if(a!==void 0&&a.length>0&&a.length<=l.length){if(a.length===l.length&&a===l)return"";var c=a.length-1,p=-1;for(s=l.length-1;s>=0;--s){var f=l.charCodeAt(s);if(f===47){if(!u){i=s+1;break}}else p===-1&&(u=!1,p=s+1),c>=0&&(f===a.charCodeAt(c)?--c==-1&&(o=s):(c=-1,o=p))}return i===o?o=p:o===-1&&(o=l.length),l.slice(i,o)}for(s=l.length-1;s>=0;--s)if(l.charCodeAt(s)===47){if(!u){i=s+1;break}}else o===-1&&(u=!1,o=s+1);return o===-1?"":l.slice(i,o)},extname:function(l){e(l);for(var a=-1,s=0,i=-1,o=!0,u=0,c=l.length-1;c>=0;--c){var p=l.charCodeAt(c);if(p!==47)i===-1&&(o=!1,i=c+1),p===46?a===-1?a=c:u!==1&&(u=1):a!==-1&&(u=-1);else if(!o){s=c+1;break}}return a===-1||i===-1||u===0||u===1&&a===i-1&&a===s+1?"":l.slice(a,i)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(a,s){var i=s.dir||s.root,o=s.base||(s.name||"")+(s.ext||"");return i?i===s.root?i+o:i+a+o:o}("/",l)},parse:function(l){e(l);var a={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return a;var s,i=l.charCodeAt(0),o=i===47;o?(a.root="/",s=1):s=0;for(var u=-1,c=0,p=-1,f=!0,g=l.length-1,m=0;g>=s;--g)if((i=l.charCodeAt(g))!==47)p===-1&&(f=!1,p=g+1),i===46?u===-1?u=g:m!==1&&(m=1):u!==-1&&(m=-1);else if(!f){c=g+1;break}return u===-1||p===-1||m===0||m===1&&u===p-1&&u===c+1?p!==-1&&(a.base=a.name=c===0&&o?l.slice(1,p):l.slice(c,p)):(c===0&&o?(a.name=l.slice(1,u),a.base=l.slice(1,p)):(a.name=l.slice(c,u),a.base=l.slice(c,p)),a.ext=l.slice(u,p)),c>0?a.dir=l.slice(0,c-1):o&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,hs=n}(),oc=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wt.URL=typeof URL<"u"?URL:null,Wt.pathToFileURL=fb,Wt.fileURLToPath=hb,Wt.Url,Wt.format,Wt.resolve,Wt.resolveObject,Wt.URL,pp=92,dp=47,gp=97,mp=122,io=oc==="win32",bp=/\//g,yp=/%/g,vp=/\\/g,wp=/\n/g,_p=/\r/g,Ep=/\t/g,sc=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wt.URL=typeof URL<"u"?URL:null,Wt.pathToFileURL=fp,Wt.fileURLToPath=hp,Sp=Wt.Url,Ap=Wt.format,kp=Wt.resolve,Ip=Wt.resolveObject,Op=Wt.parse,Tp=Wt.URL,xp=92,Cp=47,Rp=97,Pp=122,oo=sc==="win32",Mp=/\//g,Bp=/%/g,jp=/\\/g,Lp=/\n/g,Np=/\r/g,Up=/\t/g}),db=_t((t,e)=>{bt(),vt(),yt(),e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),bl=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedDuplex=void 0,t.writev=n;var e=an(),r=(ae(),Dt(se));function n(a,s){let i=new Array(a.length);for(let o=0;o{!this.destroyed&&this.readable&&this.push(o)})}_read(a){this.proxy.read(a)}_write(a,s,i){this.isSocketOpen?this.writeToProxy(a,s,i):this.writeQueue.push({chunk:a,encoding:s,cb:i})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,s){this.writeQueue=[],this.proxy.destroy(),s(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,s,i){this.proxy.write(a,s)===!1?this.proxy.once("drain",i):i()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:s,cb:i}=this.writeQueue.shift();this.writeToProxy(a,s,i)}}};t.BufferedDuplex=l}),Ri=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.streamBuilder=t.browserStreamBuilder=void 0;var r=(ae(),Dt(se)),n=e(db()),l=e(lr()),a=an(),s=e(Io()),i=bl(),o=(0,l.default)("mqttjs:ws"),u=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function c(f,g){let m=`${f.protocol}://${f.hostname}:${f.port}${f.path}`;return typeof f.transformWsUrl=="function"&&(m=f.transformWsUrl(m,f,g)),m}function p(f){let g=f;return f.port||(f.protocol==="wss"?g.port=443:g.port=80),f.path||(g.path="/"),f.wsOptions||(g.wsOptions={}),!s.default&&!f.forceNativeWebSocket&&f.protocol==="wss"&&u.forEach(m=>{Object.prototype.hasOwnProperty.call(f,m)&&!Object.prototype.hasOwnProperty.call(f.wsOptions,m)&&(g.wsOptions[m]=f[m])}),g}t.streamBuilder=(f,g)=>{o("streamBuilder");let m=p(g);m.hostname=m.hostname||m.host||"localhost";let y=c(m,f),w=function(O,F,J){o("createWebSocket"),o(`protocol: ${J.protocolId} ${J.protocolVersion}`);let z,it=J.protocolId==="MQIsdp"&&J.protocolVersion===3?"mqttv3.1":"mqtt";return o(`creating new Websocket for url: ${F} and protocol: ${it}`),z=J.createWebsocket?J.createWebsocket(F,[it],J):new n.default(F,[it],J.wsOptions),z}(0,y,m),P=n.default.createWebSocketStream(w,m.wsOptions);return P.url=y,w.on("close",()=>{P.destroy()}),P},t.browserStreamBuilder=(f,g)=>{o("browserStreamBuilder");let m,y=function(b){let R=p(b);if(R.hostname||(R.hostname=R.host),!R.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let B=new URL(document.URL);R.hostname=B.hostname,R.port||(R.port=Number(B.port))}return R.objectMode===void 0&&(R.objectMode=!(R.binary===!0||R.binary===void 0)),R}(g).browserBufferSize||524288,w=g.browserBufferTimeout||1e3,P=!g.objectMode,O=function(b,R){let B,et=R.protocolId==="MQIsdp"&&R.protocolVersion===3?"mqttv3.1":"mqtt",st=c(R,b);return B=R.createWebsocket?R.createWebsocket(st,[et],R):new WebSocket(st,[et]),B.binaryType="arraybuffer",B}(f,g),F=function(b,R,B){let et=new a.Transform({objectMode:b.objectMode});return et._write=R,et._flush=B,et}(g,function b(R,B,et){if(O.bufferedAmount>y)return void setTimeout(b,w,R,B,et);P&&typeof R=="string"&&(R=r.Buffer.from(R,"utf8"));try{O.send(R)}catch(st){return et(st)}et()},function(b){O.close(),b()});g.objectMode||(F._writev=i.writev.bind(F)),F.on("close",()=>{O.close()});let J=typeof O.addEventListener<"u";function z(){o("WebSocket onOpen"),m instanceof i.BufferedDuplex&&m.socketReady()}function it(b){o("WebSocket onClose",b),m.end(),m.destroy()}function E(b){o("WebSocket onError",b);let R=new Error("WebSocket error");R.event=b,m.destroy(R)}async function _(b){if(!F||F.destroyed||!F.readable)return;let{data:R}=b;R=R instanceof ArrayBuffer?r.Buffer.from(R):R instanceof Blob?r.Buffer.from(await new Response(R).arrayBuffer()):r.Buffer.from(R,"utf8"),F.push(R)}return O.readyState===O.OPEN?(m=F,m.socket=O):(m=new i.BufferedDuplex(g,F,O),J?O.addEventListener("open",z):O.onopen=z),J?(O.addEventListener("close",it),O.addEventListener("error",E),O.addEventListener("message",_)):(O.onclose=it,O.onerror=E,O.onmessage=_),m}}),yl={};function Gt(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}Tn(yl,{Server:()=>Gt,Socket:()=>Gt,Stream:()=>Gt,_createServerHandle:()=>Gt,_normalizeArgs:()=>Gt,_setSimultaneousAccepts:()=>Gt,connect:()=>Gt,createConnection:()=>Gt,createServer:()=>Gt,default:()=>Dp,isIP:()=>Gt,isIPv4:()=>Gt,isIPv6:()=>Gt});var Dp,Fp=be(()=>{bt(),vt(),yt(),Dp={_createServerHandle:Gt,_normalizeArgs:Gt,_setSimultaneousAccepts:Gt,connect:Gt,createConnection:Gt,createServer:Gt,isIP:Gt,isIPv4:Gt,isIPv6:Gt,Server:Gt,Socket:Gt,Stream:Gt}}),ac=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((Fp(),Dt(yl))),n=(0,e(lr()).default)("mqttjs:tcp");t.default=(l,a)=>{a.port=a.port||1883,a.hostname=a.hostname||a.host||"localhost";let{port:s,path:i}=a,o=a.hostname;return n("port %d and host %s",s,o),r.default.createConnection({port:s,host:o,path:i})}}),Wp={};Tn(Wp,{default:()=>$p});var $p,gb=be(()=>{bt(),vt(),yt(),$p={}}),lc=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=e((gb(),Dt(Wp))),n=e((Fp(),Dt(yl))),l=(0,e(lr()).default)("mqttjs:tls");t.default=(a,s)=>{s.port=s.port||8883,s.host=s.hostname||s.host||"localhost",n.default.isIP(s.host)===0&&(s.servername=s.host),s.rejectUnauthorized=s.rejectUnauthorized!==!1,delete s.path,l("port %d host %s rejectUnauthorized %b",s.port,s.host,s.rejectUnauthorized);let i=r.default.connect(s);function o(u){s.rejectUnauthorized&&a.emit("error",u),i.end()}return i.on("secureConnect",()=>{s.rejectUnauthorized&&!i.authorized?i.emit("error",new Error("TLS not authorized")):i.removeListener("error",o)}),i.on("error",o),i}}),uc=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e,r,n,l=(ae(),Dt(se)),a=an(),s=bl();t.default=(i,o)=>{if(o.hostname=o.hostname||o.host,!o.hostname)throw new Error("Could not determine host. Specify host manually.");let u=o.protocolId==="MQIsdp"&&o.protocolVersion===3?"mqttv3.1":"mqtt";(function(f){f.hostname||(f.hostname="localhost"),f.path||(f.path="/"),f.wsOptions||(f.wsOptions={})})(o);let c=function(f,g){let m=f.protocol==="wxs"?"wss":"ws",y=`${m}://${f.hostname}${f.path}`;return f.port&&f.port!==80&&f.port!==443&&(y=`${m}://${f.hostname}:${f.port}${f.path}`),typeof f.transformWsUrl=="function"&&(y=f.transformWsUrl(y,f,g)),y}(o,i);e=wx.connectSocket({url:c,protocols:[u]}),r=function(){let f=new a.Transform;return f._write=(g,m,y)=>{e.send({data:g.buffer,success(){y()},fail(w){y(new Error(w))}})},f._flush=g=>{e.close({success(){g()}})},f}(),(n=new s.BufferedDuplex(o,r,e))._destroy=(f,g)=>{e.close({success(){g&&g(f)}})};let p=n.destroy;return n.destroy=(f,g)=>(n.destroy=p,setTimeout(()=>{e.close({fail(){n._destroy(f,g)}})},0),n),e.onOpen(()=>{n.socketReady()}),e.onMessage(f=>{let{data:g}=f;g=g instanceof ArrayBuffer?l.Buffer.from(g):l.Buffer.from(g,"utf8"),r.push(g)}),e.onClose(()=>{n.emit("close"),n.end(),n.destroy()}),e.onError(f=>{let g=new Error(f.errMsg);n.destroy(g)}),n}}),cc=_t(t=>{bt(),vt(),yt(),Object.defineProperty(t,"__esModule",{value:!0});var e,r,n,l=(ae(),Dt(se)),a=an(),s=bl(),i=!1;t.default=(o,u)=>{if(u.hostname=u.hostname||u.host,!u.hostname)throw new Error("Could not determine host. Specify host manually.");let c=u.protocolId==="MQIsdp"&&u.protocolVersion===3?"mqttv3.1":"mqtt";(function(f){f.hostname||(f.hostname="localhost"),f.path||(f.path="/"),f.wsOptions||(f.wsOptions={})})(u);let p=function(f,g){let m=f.protocol==="alis"?"wss":"ws",y=`${m}://${f.hostname}${f.path}`;return f.port&&f.port!==80&&f.port!==443&&(y=`${m}://${f.hostname}:${f.port}${f.path}`),typeof f.transformWsUrl=="function"&&(y=f.transformWsUrl(y,f,g)),y}(u,o);return(e=u.my).connectSocket({url:p,protocols:c}),r=function(){let f=new a.Transform;return f._write=(g,m,y)=>{e.sendSocketMessage({data:g.buffer,success(){y()},fail(){y(new Error)}})},f._flush=g=>{e.closeSocket({success(){g()}})},f}(),n=new s.BufferedDuplex(u,r,e),i||(i=!0,e.onSocketOpen(()=>{n.socketReady()}),e.onSocketMessage(f=>{if(typeof f.data=="string"){let g=l.Buffer.from(f.data,"base64");r.push(g)}else{let g=new FileReader;g.addEventListener("load",()=>{let m=g.result;m=m instanceof ArrayBuffer?l.Buffer.from(m):l.Buffer.from(m,"utf8"),r.push(m)}),g.readAsArrayBuffer(f.data)}}),e.onSocketClose(()=>{n.end(),n.destroy()}),e.onSocketError(f=>{n.destroy(f)})),n}}),mb=_t(t=>{bt(),vt(),yt();var e=t&&t.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.connectAsync=function(u,c,p=!0){return new Promise((f,g)=>{let m=o(u,c),y={connect:P=>{w(),f(m)},end:()=>{w(),f(m)},error:P=>{w(),m.end(),g(P)}};function w(){Object.keys(y).forEach(P=>{m.off(P,y[P])})}p===!1&&(y.close=()=>{y.error(new Error("Couldn't connect to server"))}),Object.keys(y).forEach(P=>{m.on(P,y[P])})})};var r=e(lr()),n=e((pb(),Dt(cp))),l=e(xa()),a=e(Io());typeof(Vt==null?void 0:Vt.nextTick)!="function"&&(Vt.nextTick=setImmediate);var s=(0,r.default)("mqttjs"),i=null;function o(u,c){var p,f,g;if(s("connecting to an MQTT broker..."),typeof u=="object"&&!c&&(c=u,u=""),c=c||{},u&&typeof u=="string"){let y=n.default.parse(u,!0),w={};if(y.port!=null&&(w.port=Number(y.port)),w.host=y.hostname,w.query=y.query,w.auth=y.auth,w.protocol=y.protocol,w.path=y.path,!(c=Object.assign(Object.assign({},w),c)).protocol)throw new Error("Missing protocol");c.protocol=c.protocol.replace(/:$/,"")}if(c.unixSocket=c.unixSocket||((p=c.protocol)===null||p===void 0?void 0:p.includes("+unix")),c.unixSocket?c.protocol=c.protocol.replace("+unix",""):(f=c.protocol)!==null&&f!==void 0&&f.startsWith("ws")||(g=c.protocol)!==null&&g!==void 0&&g.startsWith("wx")||delete c.path,function(y){let w;y.auth&&(w=y.auth.match(/^(.+):(.+)$/),w?(y.username=w[1],y.password=w[2]):y.username=y.auth)}(c),c.query&&typeof c.query.clientId=="string"&&(c.clientId=c.query.clientId),c.cert&&c.key){if(!c.protocol)throw new Error("Missing secure protocol key");if(["mqtts","wss","wxs","alis"].indexOf(c.protocol)===-1)switch(c.protocol){case"mqtt":c.protocol="mqtts";break;case"ws":c.protocol="wss";break;case"wx":c.protocol="wxs";break;case"ali":c.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${c.protocol}"!`)}}if(i||(i={},a.default||c.forceNativeWebSocket?(i.ws=Ri().browserStreamBuilder,i.wss=Ri().browserStreamBuilder,i.wx=uc().default,i.wxs=uc().default,i.ali=cc().default,i.alis=cc().default):(i.ws=Ri().streamBuilder,i.wss=Ri().streamBuilder,i.mqtt=ac().default,i.tcp=ac().default,i.ssl=lc().default,i.tls=i.ssl,i.mqtts=lc().default)),!i[c.protocol]){let y=["mqtts","wss"].indexOf(c.protocol)!==-1;c.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((w,P)=>(!y||P%2!=0)&&typeof i[w]=="function")[0]}if(c.clean===!1&&!c.clientId)throw new Error("Missing clientId for unclean clients");c.protocol&&(c.defaultProtocol=c.protocol);let m=new l.default(function(y){return c.servers&&((!y._reconnectCount||y._reconnectCount===c.servers.length)&&(y._reconnectCount=0),c.host=c.servers[y._reconnectCount].host,c.port=c.servers[y._reconnectCount].port,c.protocol=c.servers[y._reconnectCount].protocol?c.servers[y._reconnectCount].protocol:c.defaultProtocol,c.hostname=c.host,y._reconnectCount++),s("calling streambuilder for",c.protocol),i[c.protocol](y,c)},c);return m.on("error",()=>{}),m}t.default=o}),hc=_t(t=>{bt(),vt(),yt();var e,r=t&&t.__createBinding||(Object.create?function(m,y,w,P){P===void 0&&(P=w);var O=Object.getOwnPropertyDescriptor(y,w);(!O||("get"in O?!y.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return y[w]}}),Object.defineProperty(m,P,O)}:function(m,y,w,P){P===void 0&&(P=w),m[P]=y[w]}),n=t&&t.__setModuleDefault||(Object.create?function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}:function(m,y){m.default=y}),l=t&&t.__importStar||(e=function(m){return(e=Object.getOwnPropertyNames||function(y){var w=[];for(var P in y)Object.prototype.hasOwnProperty.call(y,P)&&(w[w.length]=P);return w})(m)},function(m){if(m&&m.__esModule)return m;var y={};if(m!=null)for(var w=e(m),P=0;P{bt(),vt(),yt();var e,r=t&&t.__createBinding||(Object.create?function(i,o,u,c){c===void 0&&(c=u);var p=Object.getOwnPropertyDescriptor(o,u);(!p||("get"in p?!o.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return o[u]}}),Object.defineProperty(i,c,p)}:function(i,o,u,c){c===void 0&&(c=u),i[c]=o[u]}),n=t&&t.__setModuleDefault||(Object.create?function(i,o){Object.defineProperty(i,"default",{enumerable:!0,value:o})}:function(i,o){i.default=o}),l=t&&t.__importStar||(e=function(i){return(e=Object.getOwnPropertyNames||function(o){var u=[];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[u.length]=c);return u})(i)},function(i){if(i&&i.__esModule)return i;var o={};if(i!=null)for(var u=e(i),c=0;c *) - -safe-buffer/index.js: - (*! safe-buffer. MIT License. Feross Aboukhadijeh *) -*/var Ee="top",Pe="bottom",Me="right",Se="left",La="auto",mi=[Ee,Pe,Me,Se],An="start",ci="end",Vp="viewport",Un="popper",fc=mi.reduce(function(t,e){return t.concat([e+"-"+An,e+"-"+ci])},[]),qp=[].concat(mi,[La]).reduce(function(t,e){return t.concat([e,e+"-"+An,e+"-"+ci])},[]),bb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ge(t){return t?(t.nodeName||"").toLowerCase():null}function Be(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function nn(t){return t instanceof Be(t).Element||t instanceof Element}function xe(t){return t instanceof Be(t).HTMLElement||t instanceof HTMLElement}function vl(t){return typeof ShadowRoot<"u"&&(t instanceof Be(t).ShadowRoot||t instanceof ShadowRoot)}const yb={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},l=e.attributes[r]||{},a=e.elements[r];xe(a)&&Ge(a)&&(Object.assign(a.style,n),Object.keys(l).forEach(function(s){var i=l[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var l=e.elements[n],a=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]).reduce(function(i,o){return i[o]="",i},{});xe(l)&&Ge(l)&&(Object.assign(l.style,s),Object.keys(a).forEach(function(i){l.removeAttribute(i)}))})}},requires:["computeStyles"]};function He(t){return t.split("-")[0]}var en=Math.max,so=Math.min,kn=Math.round;function Na(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Hp(){return!/^((?!chrome|android).)*safari/i.test(Na())}function In(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),l=1,a=1;e&&xe(t)&&(l=t.offsetWidth>0&&kn(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&kn(n.height)/t.offsetHeight||1);var s=(nn(t)?Be(t):window).visualViewport,i=!Hp()&&r,o=(n.left+(i&&s?s.offsetLeft:0))/l,u=(n.top+(i&&s?s.offsetTop:0))/a,c=n.width/l,p=n.height/a;return{width:c,height:p,top:u,right:o+c,bottom:u+p,left:o,x:o,y:u}}function wl(t){var e=In(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function zp(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&vl(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function sr(t){return Be(t).getComputedStyle(t)}function vb(t){return["table","td","th"].indexOf(Ge(t))>=0}function Cr(t){return((nn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Oo(t){return Ge(t)==="html"?t:t.assignedSlot||t.parentNode||(vl(t)?t.host:null)||Cr(t)}function pc(t){return xe(t)&&sr(t).position!=="fixed"?t.offsetParent:null}function bi(t){for(var e=Be(t),r=pc(t);r&&vb(r)&&sr(r).position==="static";)r=pc(r);return r&&(Ge(r)==="html"||Ge(r)==="body"&&sr(r).position==="static")?e:r||function(n){var l=/firefox/i.test(Na());if(/Trident/i.test(Na())&&xe(n)&&sr(n).position==="fixed")return null;var a=Oo(n);for(vl(a)&&(a=a.host);xe(a)&&["html","body"].indexOf(Ge(a))<0;){var s=sr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||l&&s.willChange==="filter"||l&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}(t)||e}function _l(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Wn(t,e,r){return en(t,so(e,r))}function Kp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Gp(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}const wb={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,n=t.name,l=t.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=He(r.placement),o=_l(i),u=[Se,Me].indexOf(i)>=0?"height":"width";if(a&&s){var c=function(_,b){return Kp(typeof(_=typeof _=="function"?_(Object.assign({},b.rects,{placement:b.placement})):_)!="number"?_:Gp(_,mi))}(l.padding,r),p=wl(a),f=o==="y"?Ee:Se,g=o==="y"?Pe:Me,m=r.rects.reference[u]+r.rects.reference[o]-s[o]-r.rects.popper[u],y=s[o]-r.rects.reference[o],w=bi(a),P=w?o==="y"?w.clientHeight||0:w.clientWidth||0:0,O=m/2-y/2,F=c[f],J=P-p[u]-c[g],z=P/2-p[u]/2+O,it=Wn(F,z,J),E=o;r.modifiersData[n]=((e={})[E]=it,e.centerOffset=it-z,e)}},effect:function(t){var e=t.state,r=t.options.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n!="string"||(n=e.elements.popper.querySelector(n)))&&zp(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function On(t){return t.split("-")[1]}var _b={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dc(t){var e,r=t.popper,n=t.popperRect,l=t.placement,a=t.variation,s=t.offsets,i=t.position,o=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,p=t.isFixed,f=s.x,g=f===void 0?0:f,m=s.y,y=m===void 0?0:m,w=typeof c=="function"?c({x:g,y}):{x:g,y};g=w.x,y=w.y;var P=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),F=Se,J=Ee,z=window;if(u){var it=bi(r),E="clientHeight",_="clientWidth";it===Be(r)&&sr(it=Cr(r)).position!=="static"&&i==="absolute"&&(E="scrollHeight",_="scrollWidth"),(l===Ee||(l===Se||l===Me)&&a===ci)&&(J=Pe,y-=(p&&it===z&&z.visualViewport?z.visualViewport.height:it[E])-n.height,y*=o?1:-1),(l===Se||(l===Ee||l===Pe)&&a===ci)&&(F=Me,g-=(p&&it===z&&z.visualViewport?z.visualViewport.width:it[_])-n.width,g*=o?1:-1)}var b,R=Object.assign({position:i},u&&_b),B=c===!0?function(et){var st=et.x,q=et.y,X=window.devicePixelRatio||1;return{x:kn(st*X)/X||0,y:kn(q*X)/X||0}}({x:g,y}):{x:g,y};return g=B.x,y=B.y,o?Object.assign({},R,((b={})[J]=O?"0":"",b[F]=P?"0":"",b.transform=(z.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",b)):Object.assign({},R,((e={})[J]=O?y+"px":"",e[F]=P?g+"px":"",e.transform="",e))}var Pi={passive:!0},Eb={left:"right",right:"left",bottom:"top",top:"bottom"};function Mi(t){return t.replace(/left|right|bottom|top/g,function(e){return Eb[e]})}var Sb={start:"end",end:"start"};function gc(t){return t.replace(/start|end/g,function(e){return Sb[e]})}function El(t){var e=Be(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ua(t){return In(Cr(t)).left+El(t).scrollLeft}function Sl(t){var e=sr(t),r=e.overflow,n=e.overflowX,l=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+l+n)}function Qp(t){return["html","body","#document"].indexOf(Ge(t))>=0?t.ownerDocument.body:xe(t)&&Sl(t)?t:Qp(Oo(t))}function Zn(t,e){var r;e===void 0&&(e=[]);var n=Qp(t),l=n===((r=t.ownerDocument)==null?void 0:r.body),a=Be(n),s=l?[a].concat(a.visualViewport||[],Sl(n)?n:[]):n,i=e.concat(s);return l?i:i.concat(Zn(Oo(s)))}function Da(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mc(t,e,r){return e===Vp?Da(function(n,l){var a=Be(n),s=Cr(n),i=a.visualViewport,o=s.clientWidth,u=s.clientHeight,c=0,p=0;if(i){o=i.width,u=i.height;var f=Hp();(f||!f&&l==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:o,height:u,x:c+Ua(n),y:p}}(t,r)):nn(e)?function(n,l){var a=In(n,!1,l==="fixed");return a.top=a.top+n.clientTop,a.left=a.left+n.clientLeft,a.bottom=a.top+n.clientHeight,a.right=a.left+n.clientWidth,a.width=n.clientWidth,a.height=n.clientHeight,a.x=a.left,a.y=a.top,a}(e,r):Da(function(n){var l,a=Cr(n),s=El(n),i=(l=n.ownerDocument)==null?void 0:l.body,o=en(a.scrollWidth,a.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=en(a.scrollHeight,a.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-s.scrollLeft+Ua(n),p=-s.scrollTop;return sr(i||a).direction==="rtl"&&(c+=en(a.clientWidth,i?i.clientWidth:0)-o),{width:o,height:u,x:c,y:p}}(Cr(t)))}function Ab(t,e,r,n){var l=e==="clippingParents"?function(o){var u=Zn(Oo(o)),c=["absolute","fixed"].indexOf(sr(o).position)>=0&&xe(o)?bi(o):o;return nn(c)?u.filter(function(p){return nn(p)&&zp(p,c)&&Ge(p)!=="body"}):[]}(t):[].concat(e),a=[].concat(l,[r]),s=a[0],i=a.reduce(function(o,u){var c=mc(t,u,n);return o.top=en(c.top,o.top),o.right=so(c.right,o.right),o.bottom=so(c.bottom,o.bottom),o.left=en(c.left,o.left),o},mc(t,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Yp(t){var e,r=t.reference,n=t.element,l=t.placement,a=l?He(l):null,s=l?On(l):null,i=r.x+r.width/2-n.width/2,o=r.y+r.height/2-n.height/2;switch(a){case Ee:e={x:i,y:r.y-n.height};break;case Pe:e={x:i,y:r.y+r.height};break;case Me:e={x:r.x+r.width,y:o};break;case Se:e={x:r.x-n.width,y:o};break;default:e={x:r.x,y:r.y}}var u=a?_l(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case An:e[u]=e[u]-(r[c]/2-n[c]/2);break;case ci:e[u]=e[u]+(r[c]/2-n[c]/2)}}return e}function hi(t,e){e===void 0&&(e={});var r=e,n=r.placement,l=n===void 0?t.placement:n,a=r.strategy,s=a===void 0?t.strategy:a,i=r.boundary,o=i===void 0?"clippingParents":i,u=r.rootBoundary,c=u===void 0?Vp:u,p=r.elementContext,f=p===void 0?Un:p,g=r.altBoundary,m=g!==void 0&&g,y=r.padding,w=y===void 0?0:y,P=Kp(typeof w!="number"?w:Gp(w,mi)),O=f===Un?"reference":Un,F=t.rects.popper,J=t.elements[m?O:f],z=Ab(nn(J)?J:J.contextElement||Cr(t.elements.popper),o,c,s),it=In(t.elements.reference),E=Yp({reference:it,element:F,placement:l}),_=Da(Object.assign({},F,E)),b=f===Un?_:it,R={top:z.top-b.top+P.top,bottom:b.bottom-z.bottom+P.bottom,left:z.left-b.left+P.left,right:b.right-z.right+P.right},B=t.modifiersData.offset;if(f===Un&&B){var et=B[l];Object.keys(R).forEach(function(st){var q=[Me,Pe].indexOf(st)>=0?1:-1,X=[Ee,Pe].indexOf(st)>=0?"y":"x";R[st]+=et[X]*q})}return R}function kb(t,e){e===void 0&&(e={});var r=e,n=r.placement,l=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,o=r.allowedAutoPlacements,u=o===void 0?qp:o,c=On(n),p=c?i?fc:fc.filter(function(m){return On(m)===c}):mi,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p);var g=f.reduce(function(m,y){return m[y]=hi(t,{placement:y,boundary:l,rootBoundary:a,padding:s})[He(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}const Ib={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var l=r.mainAxis,a=l===void 0||l,s=r.altAxis,i=s===void 0||s,o=r.fallbackPlacements,u=r.padding,c=r.boundary,p=r.rootBoundary,f=r.altBoundary,g=r.flipVariations,m=g===void 0||g,y=r.allowedAutoPlacements,w=e.options.placement,P=He(w),O=o||(P===w||!m?[Mi(w)]:function(j){if(He(j)===La)return[];var N=Mi(j);return[gc(j),N,gc(N)]}(w)),F=[w].concat(O).reduce(function(j,N){return j.concat(He(N)===La?kb(e,{placement:N,boundary:c,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:y}):N)},[]),J=e.rects.reference,z=e.rects.popper,it=new Map,E=!0,_=F[0],b=0;b=0,q=st?"width":"height",X=hi(e,{placement:R,boundary:c,rootBoundary:p,altBoundary:f,padding:u}),rt=st?et?Me:Se:et?Pe:Ee;J[q]>z[q]&&(rt=Mi(rt));var W=Mi(rt),ct=[];if(a&&ct.push(X[B]<=0),i&&ct.push(X[rt]<=0,X[W]<=0),ct.every(function(j){return j})){_=R,E=!1;break}it.set(R,ct)}if(E)for(var Q=function(j){var N=F.find(function(G){var U=it.get(G);if(U)return U.slice(0,j).every(function(ft){return ft})});if(N)return _=N,"break"},$=m?3:1;$>0&&Q($)!=="break";$--);e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bc(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function yc(t){return[Ee,Me,Pe,Se].some(function(e){return t[e]>=0})}const Ob={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,n=t.name,l=r.offset,a=l===void 0?[0,0]:l,s=qp.reduce(function(c,p){return c[p]=function(f,g,m){var y=He(f),w=[Se,Ee].indexOf(y)>=0?-1:1,P=typeof m=="function"?m(Object.assign({},g,{placement:f})):m,O=P[0],F=P[1];return O=O||0,F=(F||0)*w,[Se,Me].indexOf(y)>=0?{x:F,y:O}:{x:O,y:F}}(p,e.rects,a),c},{}),i=s[e.placement],o=i.x,u=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}},Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name,l=r.mainAxis,a=l===void 0||l,s=r.altAxis,i=s!==void 0&&s,o=r.boundary,u=r.rootBoundary,c=r.altBoundary,p=r.padding,f=r.tether,g=f===void 0||f,m=r.tetherOffset,y=m===void 0?0:m,w=hi(e,{boundary:o,rootBoundary:u,padding:p,altBoundary:c}),P=He(e.placement),O=On(e.placement),F=!O,J=_l(P),z=J==="x"?"y":"x",it=e.modifiersData.popperOffsets,E=e.rects.reference,_=e.rects.popper,b=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,R=typeof b=="number"?{mainAxis:b,altAxis:b}:Object.assign({mainAxis:0,altAxis:0},b),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,et={x:0,y:0};if(it){if(a){var st,q=J==="y"?Ee:Se,X=J==="y"?Pe:Me,rt=J==="y"?"height":"width",W=it[J],ct=W+w[q],Q=W-w[X],$=g?-_[rt]/2:0,j=O===An?E[rt]:_[rt],N=O===An?-_[rt]:-E[rt],G=e.elements.arrow,U=g&&G?wl(G):{width:0,height:0},ft=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},dt=ft[q],gt=ft[X],L=Wn(0,E[rt],U[rt]),Z=F?E[rt]/2-$-L-dt-R.mainAxis:j-L-dt-R.mainAxis,tt=F?-E[rt]/2+$+L+gt+R.mainAxis:N+L+gt+R.mainAxis,x=e.elements.arrow&&bi(e.elements.arrow),D=x?J==="y"?x.clientTop||0:x.clientLeft||0:0,A=(st=B==null?void 0:B[J])!=null?st:0,Y=W+tt-A,h=Wn(g?so(ct,W+Z-A-D):ct,W,g?en(Q,Y):Q);it[J]=h,et[J]=h-W}if(i){var d,v=J==="x"?Ee:Se,T=J==="x"?Pe:Me,C=it[z],I=z==="y"?"height":"width",K=C+w[v],at=C-w[T],lt=[Ee,Se].indexOf(P)!==-1,ht=(d=B==null?void 0:B[z])!=null?d:0,ut=lt?K:C-E[I]-_[I]-ht+R.altAxis,M=lt?C+E[I]+_[I]-ht-R.altAxis:at,H=g&<?function(nt,S,k){var ot=Wn(nt,S,k);return ot>k?k:ot}(ut,C,M):Wn(g?ut:K,C,g?M:at);it[z]=H,et[z]=H-C}e.modifiersData[n]=et}},requiresIfExists:["offset"]};function xb(t,e,r){r===void 0&&(r=!1);var n,l,a=xe(e),s=xe(e)&&function(p){var f=p.getBoundingClientRect(),g=kn(f.width)/p.offsetWidth||1,m=kn(f.height)/p.offsetHeight||1;return g!==1||m!==1}(e),i=Cr(e),o=In(t,s,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!r)&&((Ge(e)!=="body"||Sl(i))&&(u=(n=e)!==Be(n)&&xe(n)?{scrollLeft:(l=n).scrollLeft,scrollTop:l.scrollTop}:El(n)),xe(e)?((c=In(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Ua(i))),{x:o.left+u.scrollLeft-c.x,y:o.top+u.scrollTop-c.y,width:o.width,height:o.height}}function Cb(t){var e=new Map,r=new Set,n=[];function l(a){r.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(s){if(!r.has(s)){var i=e.get(s);i&&l(i)}}),n.push(a)}return t.forEach(function(a){e.set(a.name,a)}),t.forEach(function(a){r.has(a.name)||l(a)}),n}var vc={placement:"bottom",modifiers:[],strategy:"absolute"};function wc(){for(var t=arguments.length,e=new Array(t),r=0;r{};let $n={},Ke={},Xe=null,Ve={mark:fe,measure:fe};try{typeof window<"u"&&($n=window),typeof document<"u"&&(Ke=document),typeof MutationObserver<"u"&&(Xe=MutationObserver),typeof performance<"u"&&(Ve=performance)}catch{}const{userAgent:ue=""}=$n.navigator||{},Y=$n,v=Ke,me=Xe,sn=Ve;Y.document;const R=!!v.documentElement&&!!v.head&&typeof v.addEventListener=="function"&&typeof v.createElement=="function",Ge=~ue.indexOf("MSIE")||~ue.indexOf("Trident/");var Ze={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Je=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],O="classic",hn="duotone",Qe=[O,hn,"sharp","sharp-duotone"],Pt=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),St=["fak","fa-kit","fakd","fa-kit-duotone"],Ct={fak:"kit","fa-kit":"kit"},jt={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},Et=["fak","fakd"],It={kit:"fak"},Ft={"kit-duotone":"fakd"},cn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Dt=["fak","fa-kit","fakd","fa-kit-duotone"],En={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},In=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],$e=[1,2,3,4,5,6,7,8,9,10],Rt=$e.concat([11,12,13,14,15,16,17,18,19,20]),Tt=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",cn.GROUP,cn.SWAP_OPACITY,cn.PRIMARY,cn.SECONDARY].concat($e.map(n=>"".concat(n,"x"))).concat(Rt.map(n=>"w-".concat(n)));const I="___FONT_AWESOME___",Fn=16,nt="svg-inline--fa",U="data-fa-i2svg",Dn="data-fa-pseudo-element",Rn="data-prefix",Tn="data-icon",de="fontawesome-i2svg",Bt=["HTML","HEAD","STYLE","SCRIPT"],et=(()=>{try{return!0}catch{return!1}})();function an(n){return new Proxy(n,{get:(e,t)=>t in e?e[t]:e[O]})}const tt=s({},Ze);tt[O]=s(s(s(s({},{"fa-duotone":"duotone"}),Ze[O]),Ct),jt);const Yt=an(tt),Bn=s({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Bn[O]=s(s(s(s({},{duotone:"fad"}),Bn[O]),It),Ft);const pe=an(Bn),Yn=s({},En);Yn[O]=s(s({},Yn[O]),{fak:"fa-kit"});const ne=an(Yn),zn=s({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});zn[O]=s(s({},zn[O]),{"fa-kit":"fak"}),an(zn);const Wt=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,at="fa-layers-text",Ht=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;an(s({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));const _t=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],An={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ut=["kit",...Tt],nn=Y.FontAwesomeConfig||{};v&&typeof v.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(n=>{let[e,t]=n;const a=function(r){return r===""||r!=="false"&&(r==="true"||r)}(function(r){var i=v.querySelector("script["+r+"]");if(i)return i.getAttribute(r)}(e));a!=null&&(nn[t]=a)});const rt={styleDefault:"solid",familyDefault:O,cssPrefix:"fa",replacementClass:nt,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nn.familyPrefix&&(nn.cssPrefix=nn.familyPrefix);const V=s(s({},rt),nn);V.autoReplaceSvg||(V.observeMutations=!1);const p={};Object.keys(rt).forEach(n=>{Object.defineProperty(p,n,{enumerable:!0,set:function(e){V[n]=e,Wn.forEach(t=>t(p))},get:function(){return V[n]}})}),Object.defineProperty(p,"familyPrefix",{enumerable:!0,set:function(n){V.cssPrefix=n,Wn.forEach(e=>e(p))},get:function(){return V.cssPrefix}}),Y.FontAwesomeConfig=p;const Wn=[],B=Fn,C={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tn(){let n=12,e="";for(;n-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function J(n){const e=[];for(let t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function ee(n){return n.classList?J(n.classList):(n.getAttribute("class")||"").split(" ").filter(e=>e)}function ge(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function bn(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,": ").concat(n[t].trim(),";"),"")}function te(n){return n.size!==C.size||n.x!==C.x||n.y!==C.y||n.rotate!==C.rotate||n.flipX||n.flipY}function it(){const n="fa",e=nt,t=p.cssPrefix,a=p.replacementClass;let r=`:root, :host { + */function Nt(n,e,t){return(e=function(a){var r=function(i,o){if(typeof i!="object"||!i)return i;var l=i[Symbol.toPrimitive];if(l!==void 0){var f=l.call(i,o);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}(a,"string");return typeof r=="symbol"?r:r+""}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function le(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,a)}return t}function s(n){for(var e=1;e{};let $n={},Ke={},Xe=null,Ve={mark:fe,measure:fe};try{typeof window<"u"&&($n=window),typeof document<"u"&&(Ke=document),typeof MutationObserver<"u"&&(Xe=MutationObserver),typeof performance<"u"&&(Ve=performance)}catch{}const{userAgent:ue=""}=$n.navigator||{},Y=$n,v=Ke,me=Xe,sn=Ve;Y.document;const R=!!v.documentElement&&!!v.head&&typeof v.addEventListener=="function"&&typeof v.createElement=="function",Ge=~ue.indexOf("MSIE")||~ue.indexOf("Trident/");var Ze={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Je=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],O="classic",hn="duotone",Qe=[O,hn,"sharp","sharp-duotone"],Ct=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Pt=["fak","fa-kit","fakd","fa-kit-duotone"],St={fak:"kit","fa-kit":"kit"},jt={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},Et=["fak","fakd"],It={kit:"fak"},Ft={"kit-duotone":"fakd"},cn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Dt=["fak","fa-kit","fakd","fa-kit-duotone"],En={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},In=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],$e=[1,2,3,4,5,6,7,8,9,10],Rt=$e.concat([11,12,13,14,15,16,17,18,19,20]),Tt=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",cn.GROUP,cn.SWAP_OPACITY,cn.PRIMARY,cn.SECONDARY].concat($e.map(n=>"".concat(n,"x"))).concat(Rt.map(n=>"w-".concat(n)));const I="___FONT_AWESOME___",Fn=16,nt="svg-inline--fa",U="data-fa-i2svg",Dn="data-fa-pseudo-element",Rn="data-prefix",Tn="data-icon",de="fontawesome-i2svg",Bt=["HTML","HEAD","STYLE","SCRIPT"],et=(()=>{try{return!0}catch{return!1}})();function an(n){return new Proxy(n,{get:(e,t)=>t in e?e[t]:e[O]})}const tt=s({},Ze);tt[O]=s(s(s(s({},{"fa-duotone":"duotone"}),Ze[O]),St),jt);const Yt=an(tt),Bn=s({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Bn[O]=s(s(s(s({},{duotone:"fad"}),Bn[O]),It),Ft);const pe=an(Bn),Yn=s({},En);Yn[O]=s(s({},Yn[O]),{fak:"fa-kit"});const ne=an(Yn),zn=s({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});zn[O]=s(s({},zn[O]),{"fa-kit":"fak"}),an(zn);const Wt=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,at="fa-layers-text",Ht=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;an(s({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));const _t=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],An={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ut=["kit",...Tt],nn=Y.FontAwesomeConfig||{};v&&typeof v.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(n=>{let[e,t]=n;const a=function(r){return r===""||r!=="false"&&(r==="true"||r)}(function(r){var i=v.querySelector("script["+r+"]");if(i)return i.getAttribute(r)}(e));a!=null&&(nn[t]=a)});const rt={styleDefault:"solid",familyDefault:O,cssPrefix:"fa",replacementClass:nt,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nn.familyPrefix&&(nn.cssPrefix=nn.familyPrefix);const V=s(s({},rt),nn);V.autoReplaceSvg||(V.observeMutations=!1);const p={};Object.keys(rt).forEach(n=>{Object.defineProperty(p,n,{enumerable:!0,set:function(e){V[n]=e,Wn.forEach(t=>t(p))},get:function(){return V[n]}})}),Object.defineProperty(p,"familyPrefix",{enumerable:!0,set:function(n){V.cssPrefix=n,Wn.forEach(e=>e(p))},get:function(){return V.cssPrefix}}),Y.FontAwesomeConfig=p;const Wn=[],B=Fn,S={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tn(){let n=12,e="";for(;n-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function J(n){const e=[];for(let t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function ee(n){return n.classList?J(n.classList):(n.getAttribute("class")||"").split(" ").filter(e=>e)}function ge(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function bn(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,": ").concat(n[t].trim(),";"),"")}function te(n){return n.size!==S.size||n.x!==S.x||n.y!==S.y||n.rotate!==S.rotate||n.flipX||n.flipY}function it(){const n="fa",e=nt,t=p.cssPrefix,a=p.replacementClass;let r=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; @@ -555,10 +555,10 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary { fill: black; -}`;if(t!==n||a!==e){const i=new RegExp("\\.".concat(n,"\\-"),"g"),o=new RegExp("\\--".concat(n,"\\-"),"g"),l=new RegExp("\\.".concat(e),"g");r=r.replace(i,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(l,".".concat(a))}return r}let he=!1;function Ln(){p.autoAddCss&&!he&&(function(n){if(!n||!R)return;const e=v.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;const t=v.head.childNodes;let a=null;for(let r=t.length-1;r>-1;r--){const i=t[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(a=i)}v.head.insertBefore(e,a)}(it()),he=!0)}var qt={mixout:()=>({dom:{css:it,insertCss:Ln}}),hooks:()=>({beforeDOMElementCreation(){Ln()},beforeI2svg(){Ln()}})};const F=Y||{};F[I]||(F[I]={}),F[I].styles||(F[I].styles={}),F[I].hooks||(F[I].hooks={}),F[I].shims||(F[I].shims=[]);var j=F[I];const ot=[],st=function(){v.removeEventListener("DOMContentLoaded",st),pn=1,ot.map(n=>n())};let pn=!1;function rn(n){const{tag:e,attributes:t={},children:a=[]}=n;return typeof n=="string"?ge(n):"<".concat(e," ").concat(function(r){return Object.keys(r||{}).reduce((i,o)=>i+"".concat(o,'="').concat(ge(r[o]),'" '),"").trim()}(t),">").concat(a.map(rn).join(""),"")}function be(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}R&&(pn=(v.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(v.readyState),pn||v.addEventListener("DOMContentLoaded",st));var On=function(n,e,t,a){var r,i,o,l=Object.keys(n),f=l.length,c=e;for(t===void 0?(r=1,o=n[l[0]]):(r=0,o=t);r=55296&&o<=56319&&r{const a=n[t];return a.icon?e[a.iconName]=a.icon:e[t]=a,e},{})}function Hn(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:a=!1}=t,r=ye(e);typeof j.hooks.addPack!="function"||a?j.styles[n]=s(s({},j.styles[n]||{}),r):j.hooks.addPack(n,ye(e)),n==="fas"&&Hn("fa",e)}const{styles:en,shims:Kt}=j,lt=Object.keys(ne),Xt=lt.reduce((n,e)=>(n[e]=Object.keys(ne[e]),n),{});let ae=null,ft={},ut={},mt={},dt={},pt={};function Vt(n,e){const t=e.split("-"),a=t[0],r=t.slice(1).join("-");return a!==n||r===""||(i=r,~Ut.indexOf(i))?null:r;var i}const gt=()=>{const n=a=>On(en,(r,i,o)=>(r[o]=On(i,a,{}),r),{});ft=n((a,r,i)=>(r[3]&&(a[r[3]]=i),r[2]&&r[2].filter(o=>typeof o=="number").forEach(o=>{a[o.toString(16)]=i}),a)),ut=n((a,r,i)=>(a[i]=i,r[2]&&r[2].filter(o=>typeof o=="string").forEach(o=>{a[o]=i}),a)),pt=n((a,r,i)=>{const o=r[2];return a[i]=i,o.forEach(l=>{a[l]=i}),a});const e="far"in en||p.autoFetchSvg,t=On(Kt,(a,r)=>{const i=r[0];let o=r[1];const l=r[2];return o!=="far"||e||(o="fas"),typeof i=="string"&&(a.names[i]={prefix:o,iconName:l}),typeof i=="number"&&(a.unicodes[i.toString(16)]={prefix:o,iconName:l}),a},{names:{},unicodes:{}});mt=t.names,dt=t.unicodes,ae=yn(p.styleDefault,{family:p.familyDefault})};var ve;function _n(n,e){return(ft[n]||{})[e]}function _(n,e){return(pt[n]||{})[e]}function ht(n){return mt[n]||{prefix:null,iconName:null}}function W(){return ae}ve=n=>{ae=yn(n.styleDefault,{family:p.familyDefault})},Wn.push(ve),gt();function yn(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:t=O}=e,a=Yt[t][n];if(t===hn&&!n)return"fad";const r=pe[t][n]||pe[t][a],i=n in j.styles?n:null;return r||i||null}function xe(n){return n.sort().filter((e,t,a)=>a.indexOf(e)===t)}function vn(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:t=!1}=e;let a=null;const r=In.concat(Dt),i=xe(n.filter(d=>r.includes(d))),o=xe(n.filter(d=>!In.includes(d))),l=i.filter(d=>(a=d,!Je.includes(d))),[f=null]=l,c=function(d){let u=O;const h=lt.reduce((g,b)=>(g[b]="".concat(p.cssPrefix,"-").concat(b),g),{});return Qe.forEach(g=>{(d.includes(h[g])||d.some(b=>Xt[g].includes(b)))&&(u=g)}),u}(i),m=s(s({},function(d){let u=[],h=null;return d.forEach(g=>{const b=Vt(p.cssPrefix,g);b?h=b:g&&u.push(g)}),{iconName:h,rest:u}}(o)),{},{prefix:yn(f,{family:c})});return s(s(s({},m),function(d){const{values:u,family:h,canonical:g,givenPrefix:b="",styles:k={},config:z={}}=d,x=h===hn,w=u.includes("fa-duotone")||u.includes("fad"),M=z.familyDefault==="duotone",y=g.prefix==="fad"||g.prefix==="fa-duotone";if(!x&&(w||M||y)&&(g.prefix="fad"),(u.includes("fa-brands")||u.includes("fab"))&&(g.prefix="fab"),!g.prefix&&Gt.includes(h)&&(Object.keys(k).find(A=>Zt.includes(A))||z.autoFetchSvg)){const A=Pt.get(h).defaultShortPrefixId;g.prefix=A,g.iconName=_(g.prefix,g.iconName)||g.iconName}return g.prefix!=="fa"&&b!=="fa"||(g.prefix=W()||"fas"),g}({values:n,family:c,styles:en,config:p,canonical:m,givenPrefix:a})),function(d,u,h){let{prefix:g,iconName:b}=h;if(d||!g||!b)return{prefix:g,iconName:b};const k=u==="fa"?ht(b):{},z=_(g,b);return b=k.iconName||z||b,g=k.prefix||g,g!=="far"||en.far||!en.fas||p.autoFetchSvg||(g="fas"),{prefix:g,iconName:b}}(t,a,m))}const Gt=Qe.filter(n=>n!==O||n!==hn),Zt=Object.keys(En).filter(n=>n!==O).map(n=>Object.keys(En[n])).flat();let ke=[],G={};const Z={},Jt=Object.keys(Z);function Un(n,e){for(var t=arguments.length,a=new Array(t>2?t-2:0),r=2;r{e=i.apply(null,[e,...a])}),e}function q(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a{r.apply(null,t)})}function H(){const n=arguments[0],e=Array.prototype.slice.call(arguments,1);return Z[n]?Z[n].apply(null,e):void 0}function qn(n){n.prefix==="fa"&&(n.prefix="fas");let{iconName:e}=n;const t=n.prefix||W();if(e)return e=_(t,e)||e,be(bt.definitions,t,e)||be(j.styles,t,e)}const bt=new class{constructor(){this.definitions={}}add(){for(var n=arguments.length,e=new Array(n),t=0;t{this.definitions[r]=s(s({},this.definitions[r]||{}),a[r]),Hn(r,a[r]);const i=ne[O][r];i&&Hn(i,a[r]),gt()})}reset(){this.definitions={}}_pullDefinitions(n,e){const t=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(t).map(a=>{const{prefix:r,iconName:i,icon:o}=t[a],l=o[2];n[r]||(n[r]={}),l.length>0&&l.forEach(f=>{typeof f=="string"&&(n[r][f]=o)}),n[r][i]=o}),n}},Qt={i2svg:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return R?(q("beforeI2svg",n),H("pseudoElements2svg",n),H("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=n;var t;p.autoReplaceSvg===!1&&(p.autoReplaceSvg=!0),p.observeMutations=!0,t=()=>{$t({autoReplaceSvgRoot:e}),q("watch",n)},R&&(pn?setTimeout(t,0):ot.push(t))}},on={noAuto:()=>{p.autoReplaceSvg=!1,p.observeMutations=!1,q("noAuto")},config:p,dom:Qt,parse:{icon:n=>{if(n===null)return null;if(typeof n=="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:_(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){const e=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],t=yn(n[0]);return{prefix:t,iconName:_(t,e)||e}}if(typeof n=="string"&&(n.indexOf("".concat(p.cssPrefix,"-"))>-1||n.match(Wt))){const e=vn(n.split(" "),{skipLookups:!0});return{prefix:e.prefix||W(),iconName:_(e.prefix,e.iconName)||e.iconName}}if(typeof n=="string"){const e=W();return{prefix:e,iconName:_(e,n)||n}}}},library:bt,findIconDefinition:qn,toHtml:rn},$t=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=v}=n;(Object.keys(j.styles).length>0||p.autoFetchSvg)&&R&&p.autoReplaceSvg&&on.dom.i2svg({node:e})};function xn(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(t=>rn(t))}}),Object.defineProperty(n,"node",{get:function(){if(!R)return;const t=v.createElement("div");return t.innerHTML=n.html,t.children}}),n}function re(n){const{icons:{main:e,mask:t},prefix:a,iconName:r,transform:i,symbol:o,title:l,maskId:f,titleId:c,extra:m,watchable:d=!1}=n,{width:u,height:h}=t.found?t:e,g=Et.includes(a),b=[p.replacementClass,r?"".concat(p.cssPrefix,"-").concat(r):""].filter(y=>m.classes.indexOf(y)===-1).filter(y=>y!==""||!!y).concat(m.classes).join(" ");let k={children:[],attributes:s(s({},m.attributes),{},{"data-prefix":a,"data-icon":r,class:b,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(u," ").concat(h)})};const z=g&&!~m.classes.indexOf("fa-fw")?{width:"".concat(u/h*16*.0625,"em")}:{};d&&(k.attributes[U]=""),l&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(c||tn())},children:[l]}),delete k.attributes.title);const x=s(s({},k),{},{prefix:a,iconName:r,main:e,mask:t,maskId:f,transform:i,symbol:o,styles:s(s({},z),m.styles)}),{children:w,attributes:M}=t.found&&e.found?H("generateAbstractMask",x)||{children:[],attributes:{}}:H("generateAbstractIcon",x)||{children:[],attributes:{}};return x.children=w,x.attributes=M,o?function(y){let{prefix:A,iconName:L,children:E,attributes:T,symbol:S}=y;const P=S===!0?"".concat(A,"-").concat(p.cssPrefix,"-").concat(L):S;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s(s({},T),{},{id:P}),children:E}]}]}(x):function(y){let{children:A,main:L,mask:E,attributes:T,styles:S,transform:P}=y;if(te(P)&&L.found&&!E.found){const{width:kn,height:wn}=L,se={x:kn/wn/2,y:.5};T.style=bn(s(s({},S),{},{"transform-origin":"".concat(se.x+P.x/16,"em ").concat(se.y+P.y/16,"em")}))}return[{tag:"svg",attributes:T,children:A}]}(x)}function we(n){const{content:e,width:t,height:a,transform:r,title:i,extra:o,watchable:l=!1}=n,f=s(s(s({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(f[U]="");const c=s({},o.styles);te(r)&&(c.transform=function(u){let{transform:h,width:g=Fn,height:b=Fn,startCentered:k=!1}=u,z="";return z+=k&&Ge?"translate(".concat(h.x/B-g/2,"em, ").concat(h.y/B-b/2,"em) "):k?"translate(calc(-50% + ".concat(h.x/B,"em), calc(-50% + ").concat(h.y/B,"em)) "):"translate(".concat(h.x/B,"em, ").concat(h.y/B,"em) "),z+="scale(".concat(h.size/B*(h.flipX?-1:1),", ").concat(h.size/B*(h.flipY?-1:1),") "),z+="rotate(".concat(h.rotate,"deg) "),z}({transform:r,startCentered:!0,width:t,height:a}),c["-webkit-transform"]=c.transform);const m=bn(c);m.length>0&&(f.style=m);const d=[];return d.push({tag:"span",attributes:f,children:[e]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:Mn}=j;function Kn(n){const e=n[0],t=n[1],[a]=n.slice(4);let r=null;return r=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.GROUP)},children:[{tag:"path",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:e,height:t,icon:r}}const na={found:!1,width:512,height:512};function Xn(n,e){let t=e;return e==="fa"&&p.styleDefault!==null&&(e=W()),new Promise((a,r)=>{if(t==="fa"){const i=ht(n)||{};n=i.iconName||n,e=i.prefix||e}if(n&&e&&Mn[e]&&Mn[e][n])return a(Kn(Mn[e][n]));!et&&p.showMissingIcons,a(s(s({},na),{},{icon:p.showMissingIcons&&n&&H("missingIconAbstract")||{}}))})}const ze=()=>{},Vn=p.measurePerformance&&sn&&sn.mark&&sn.measure?sn:{mark:ze,measure:ze},$='FA "6.7.2"',ea=n=>{Vn.mark("".concat($," ").concat(n," ends")),Vn.measure("".concat($," ").concat(n),"".concat($," ").concat(n," begins"),"".concat($," ").concat(n," ends"))};var ie=n=>(Vn.mark("".concat($," ").concat(n," begins")),()=>ea(n));const mn=()=>{};function Ae(n){return typeof(n.getAttribute?n.getAttribute(U):null)=="string"}function ta(n){return v.createElementNS("http://www.w3.org/2000/svg",n)}function aa(n){return v.createElement(n)}function yt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:t=n.tag==="svg"?ta:aa}=e;if(typeof n=="string")return v.createTextNode(n);const a=t(n.tag);return Object.keys(n.attributes||[]).forEach(function(r){a.setAttribute(r,n.attributes[r])}),(n.children||[]).forEach(function(r){a.appendChild(yt(r,{ceFn:t}))}),a}const dn={replace:function(n){const e=n[0];if(e.parentNode)if(n[1].forEach(t=>{e.parentNode.insertBefore(yt(t),e)}),e.getAttribute(U)===null&&p.keepOriginalSource){let t=v.createComment(function(a){let r=" ".concat(a.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}(e));e.parentNode.replaceChild(t,e)}else e.remove()},nest:function(n){const e=n[0],t=n[1];if(~ee(e).indexOf(p.replacementClass))return dn.replace(n);const a=new RegExp("".concat(p.cssPrefix,"-.*"));if(delete t[0].attributes.id,t[0].attributes.class){const i=t[0].attributes.class.split(" ").reduce((o,l)=>(l===p.replacementClass||l.match(a)?o.toSvg.push(l):o.toNode.push(l),o),{toNode:[],toSvg:[]});t[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}const r=t.map(i=>rn(i)).join(` -`);e.setAttribute(U,""),e.innerHTML=r}};function Le(n){n()}function vt(n,e){const t=typeof e=="function"?e:mn;if(n.length===0)t();else{let a=Le;p.mutateApproach==="async"&&(a=Y.requestAnimationFrame||Le),a(()=>{const r=p.autoReplaceSvg===!0?dn.replace:dn[p.autoReplaceSvg]||dn.replace,i=ie("mutate");n.map(r),i(),t()})}}let oe=!1;function xt(){oe=!0}function Gn(){oe=!1}let gn=null;function Oe(n){if(!me||!p.observeMutations)return;const{treeCallback:e=mn,nodeCallback:t=mn,pseudoElementsCallback:a=mn,observeMutationsRoot:r=v}=n;gn=new me(i=>{if(oe)return;const o=W();J(i).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!Ae(l.addedNodes[0])&&(p.searchPseudoElements&&a(l.target),e(l.target)),l.type==="attributes"&&l.target.parentNode&&p.searchPseudoElements&&a(l.target.parentNode),l.type==="attributes"&&Ae(l.target)&&~_t.indexOf(l.attributeName))if(l.attributeName==="class"&&function(c){const m=c.getAttribute?c.getAttribute(Rn):null,d=c.getAttribute?c.getAttribute(Tn):null;return m&&d}(l.target)){const{prefix:c,iconName:m}=vn(ee(l.target));l.target.setAttribute(Rn,c||o),m&&l.target.setAttribute(Tn,m)}else(f=l.target)&&f.classList&&f.classList.contains&&f.classList.contains(p.replacementClass)&&t(l.target);var f})}),R&&gn.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ra(n){const e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),a=n.innerText!==void 0?n.innerText.trim():"";let r=vn(ee(n));return r.prefix||(r.prefix=W()),e&&t&&(r.prefix=e,r.iconName=t),r.iconName&&r.prefix||(r.prefix&&a.length>0&&(r.iconName=(i=r.prefix,o=n.innerText,(ut[i]||{})[o]||_n(r.prefix,ct(n.innerText)))),!r.iconName&&p.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=n.firstChild.data)),r;var i,o}function Me(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:t,prefix:a,rest:r}=ra(n),i=function(f){const c=J(f.attributes).reduce((u,h)=>(u.name!=="class"&&u.name!=="style"&&(u[h.name]=h.value),u),{}),m=f.getAttribute("title"),d=f.getAttribute("data-fa-title-id");return p.autoA11y&&(m?c["aria-labelledby"]="".concat(p.replacementClass,"-title-").concat(d||tn()):(c["aria-hidden"]="true",c.focusable="false")),c}(n),o=Un("parseNodeAttributes",{},n);let l=e.styleParser?function(f){const c=f.getAttribute("style");let m=[];return c&&(m=c.split(";").reduce((d,u)=>{const h=u.split(":"),g=h[0],b=h.slice(1);return g&&b.length>0&&(d[g]=b.join(":").trim()),d},{})),m}(n):[];return s({iconName:t,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:a,transform:C,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:i}},o)}const{styles:ia}=j;function kt(n){const e=p.autoReplaceSvg==="nest"?Me(n,{styleParser:!1}):Me(n);return~e.extra.classes.indexOf(at)?H("generateLayersText",n,e):H("generateSvgReplacementMutation",n,e)}function Ne(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!R)return Promise.resolve();const t=v.documentElement.classList,a=m=>t.add("".concat(de,"-").concat(m)),r=m=>t.remove("".concat(de,"-").concat(m)),i=p.autoFetchSvg?[...St,...In]:Je.concat(Object.keys(ia));i.includes("fa")||i.push("fa");const o=[".".concat(at,":not([").concat(U,"])")].concat(i.map(m=>".".concat(m,":not([").concat(U,"])"))).join(", ");if(o.length===0)return Promise.resolve();let l=[];try{l=J(n.querySelectorAll(o))}catch{}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");const f=ie("onTree"),c=l.reduce((m,d)=>{try{const u=kt(d);u&&m.push(u)}catch(u){et||u.name}return m},[]);return new Promise((m,d)=>{Promise.all(c).then(u=>{vt(u,()=>{a("active"),a("complete"),r("pending"),typeof e=="function"&&e(),f(),m()})}).catch(u=>{f(),d(u)})})}function oa(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kt(n).then(t=>{t&&vt([t],e)})}const sa=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=C,symbol:a=!1,mask:r=null,maskId:i=null,title:o=null,titleId:l=null,classes:f=[],attributes:c={},styles:m={}}=e;if(!n)return;const{prefix:d,iconName:u,icon:h}=n;return xn(s({type:"icon"},n),()=>(q("beforeDOMElementCreation",{iconDefinition:n,params:e}),p.autoA11y&&(o?c["aria-labelledby"]="".concat(p.replacementClass,"-title-").concat(l||tn()):(c["aria-hidden"]="true",c.focusable="false")),re({icons:{main:Kn(h),mask:r?Kn(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:u,transform:s(s({},C),t),symbol:a,title:o,maskId:i,titleId:l,extra:{attributes:c,styles:m,classes:f}})))};var ca={mixout(){return{icon:(n=sa,function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=(e||{}).icon?e:qn(e||{});let{mask:r}=t;return r&&(r=(r||{}).icon?r:qn(r||{})),n(a,s(s({},t),{},{mask:r}))})};var n},hooks:()=>({mutationObserverCallbacks:n=>(n.treeCallback=Ne,n.nodeCallback=oa,n)}),provides(n){n.i2svg=function(e){const{node:t=v,callback:a=()=>{}}=e;return Ne(t,a)},n.generateSvgReplacementMutation=function(e,t){const{iconName:a,title:r,titleId:i,prefix:o,transform:l,symbol:f,mask:c,maskId:m,extra:d}=t;return new Promise((u,h)=>{Promise.all([Xn(a,o),c.iconName?Xn(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[b,k]=g;u([e,re({icons:{main:b,mask:k},prefix:o,iconName:a,transform:l,symbol:f,maskId:m,title:r,titleId:i,extra:d,watchable:!0})])}).catch(h)})},n.generateAbstractIcon=function(e){let{children:t,attributes:a,main:r,transform:i,styles:o}=e;const l=bn(o);let f;return l.length>0&&(a.style=l),te(i)&&(f=H("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(f||r.icon),{children:t,attributes:a}}}},la={mixout:()=>({layer(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:t=[]}=e;return xn({type:"layer"},()=>{q("beforeDOMElementCreation",{assembler:n,params:e});let a=[];return n(r=>{Array.isArray(r)?r.map(i=>{a=a.concat(i.abstract)}):a=a.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat(p.cssPrefix,"-layers"),...t].join(" ")},children:a}]})}})},fa={mixout:()=>({counter(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:t=null,classes:a=[],attributes:r={},styles:i={}}=e;return xn({type:"counter",content:n},()=>(q("beforeDOMElementCreation",{content:n,params:e}),function(o){const{content:l,title:f,extra:c}=o,m=s(s(s({},c.attributes),f?{title:f}:{}),{},{class:c.classes.join(" ")}),d=bn(c.styles);d.length>0&&(m.style=d);const u=[];return u.push({tag:"span",attributes:m,children:[l]}),f&&u.push({tag:"span",attributes:{class:"sr-only"},children:[f]}),u}({content:n.toString(),title:t,extra:{attributes:r,styles:i,classes:["".concat(p.cssPrefix,"-layers-counter"),...a]}})))}})},ua={mixout:()=>({text(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=C,title:a=null,classes:r=[],attributes:i={},styles:o={}}=e;return xn({type:"text",content:n},()=>(q("beforeDOMElementCreation",{content:n,params:e}),we({content:n,transform:s(s({},C),t),title:a,extra:{attributes:i,styles:o,classes:["".concat(p.cssPrefix,"-layers-text"),...r]}})))}}),provides(n){n.generateLayersText=function(e,t){const{title:a,transform:r,extra:i}=t;let o=null,l=null;if(Ge){const f=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();o=c.width/f,l=c.height/f}return p.autoA11y&&!a&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,we({content:e.innerHTML,width:o,height:l,transform:r,title:a,extra:i,watchable:!0})])}}};const ma=new RegExp('"',"ug"),Pe=[1105920,1112319],Se=s(s(s(s({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Zn=Object.keys(Se).reduce((n,e)=>(n[e.toLowerCase()]=Se[e],n),{}),da=Object.keys(Zn).reduce((n,e)=>{const t=Zn[e];return n[e]=t[900]||[...Object.entries(t)][0][1],n},{});function Ce(n,e){const t="".concat("data-fa-pseudo-element-pending").concat(e.replace(":","-"));return new Promise((a,r)=>{if(n.getAttribute(t)!==null)return a();const i=J(n.children).filter(d=>d.getAttribute(Dn)===e)[0],o=Y.getComputedStyle(n,e),l=o.getPropertyValue("font-family"),f=l.match(Ht),c=o.getPropertyValue("font-weight"),m=o.getPropertyValue("content");if(i&&!f)return n.removeChild(i),a();if(f&&m!=="none"&&m!==""){const d=o.getPropertyValue("content");let u=function(x,w){const M=x.replace(/^['"]|['"]$/g,"").toLowerCase(),y=parseInt(w),A=isNaN(y)?"normal":y;return(Zn[M]||{})[A]||da[M]}(l,c);const{value:h,isSecondary:g}=function(x){const w=x.replace(ma,""),M=function(L,E){const T=L.length;let S,P=L.charCodeAt(E);return P>=55296&&P<=56319&&T>E+1&&(S=L.charCodeAt(E+1),S>=56320&&S<=57343)?1024*(P-55296)+S-56320+65536:P}(w,0),y=M>=Pe[0]&&M<=Pe[1],A=w.length===2&&w[0]===w[1];return{value:ct(A?w[0]:w),isSecondary:y||A}}(d),b=f[0].startsWith("FontAwesome");let k=_n(u,h),z=k;if(b){const x=function(w){const M=dt[w],y=_n("fas",w);return M||(y?{prefix:"fas",iconName:y}:null)||{prefix:null,iconName:null}}(h);x.iconName&&x.prefix&&(k=x.iconName,u=x.prefix)}if(!k||g||i&&i.getAttribute(Rn)===u&&i.getAttribute(Tn)===z)a();else{n.setAttribute(t,z),i&&n.removeChild(i);const x={iconName:null,title:null,titleId:null,prefix:null,transform:C,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:w}=x;w.attributes[Dn]=e,Xn(k,u).then(M=>{const y=re(s(s({},x),{},{icons:{main:M,mask:{prefix:null,iconName:null,rest:[]}},prefix:u,iconName:z,extra:w,watchable:!0})),A=v.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(A,n.firstChild):n.appendChild(A),A.outerHTML=y.map(L=>rn(L)).join(` -`),n.removeAttribute(t),a()}).catch(r)}}else a()})}function pa(n){return Promise.all([Ce(n,"::before"),Ce(n,"::after")])}function ga(n){return!(n.parentNode===document.head||~Bt.indexOf(n.tagName.toUpperCase())||n.getAttribute(Dn)||n.parentNode&&n.parentNode.tagName==="svg")}function je(n){if(R)return new Promise((e,t)=>{const a=J(n.querySelectorAll("*")).filter(ga).map(pa),r=ie("searchPseudoElements");xt(),Promise.all(a).then(()=>{r(),Gn(),e()}).catch(()=>{r(),Gn(),t()})})}let Ee=!1;const Ie=n=>n.toLowerCase().split(" ").reduce((e,t)=>{const a=t.toLowerCase().split("-"),r=a[0];let i=a.slice(1).join("-");if(r&&i==="h")return e.flipX=!0,e;if(r&&i==="v")return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Nn={x:0,y:0,width:"100%",height:"100%"};function Fe(n){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}(function(n,e){let{mixoutsTo:t}=e;ke=n,G={},Object.keys(Z).forEach(a=>{Jt.indexOf(a)===-1&&delete Z[a]}),ke.forEach(a=>{const r=a.mixout?a.mixout():{};if(Object.keys(r).forEach(i=>{typeof r[i]=="function"&&(t[i]=r[i]),typeof r[i]=="object"&&Object.keys(r[i]).forEach(o=>{t[i]||(t[i]={}),t[i][o]=r[i][o]})}),a.hooks){const i=a.hooks();Object.keys(i).forEach(o=>{G[o]||(G[o]=[]),G[o].push(i[o])})}a.provides&&a.provides(Z)})})([qt,ca,la,fa,ua,{hooks:()=>({mutationObserverCallbacks:n=>(n.pseudoElementsCallback=je,n)}),provides(n){n.pseudoElements2svg=function(e){const{node:t=v}=e;p.searchPseudoElements&&je(t)}}},{mixout:()=>({dom:{unwatch(){xt(),Ee=!0}}}),hooks:()=>({bootstrap(){Oe(Un("mutationObserverCallbacks",{}))},noAuto(){gn&&gn.disconnect()},watch(n){const{observeMutationsRoot:e}=n;Ee?Gn():Oe(Un("mutationObserverCallbacks",{observeMutationsRoot:e}))}})},{mixout:()=>({parse:{transform:n=>Ie(n)}}),hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-transform");return t&&(n.transform=Ie(t)),n}}),provides(n){n.generateAbstractTransformGrouping=function(e){let{main:t,transform:a,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(32*a.x,", ").concat(32*a.y,") "),f="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),c="rotate(".concat(a.rotate," 0 0)"),m={outer:o,inner:{transform:"".concat(l," ").concat(f," ").concat(c)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:s({},m.outer),children:[{tag:"g",attributes:s({},m.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:s(s({},t.icon.attributes),m.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-mask"),a=t?vn(t.split(" ").map(r=>r.trim())):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=W()),n.mask=a,n.maskId=e.getAttribute("data-fa-mask-id"),n}}),provides(n){n.generateAbstractMask=function(e){let{children:t,attributes:a,main:r,mask:i,maskId:o,transform:l}=e;const{width:f,icon:c}=r,{width:m,icon:d}=i,u=function(A){let{transform:L,containerWidth:E,iconWidth:T}=A;const S={transform:"translate(".concat(E/2," 256)")},P="translate(".concat(32*L.x,", ").concat(32*L.y,") "),kn="scale(".concat(L.size/16*(L.flipX?-1:1),", ").concat(L.size/16*(L.flipY?-1:1),") "),wn="rotate(".concat(L.rotate," 0 0)");return{outer:S,inner:{transform:"".concat(P," ").concat(kn," ").concat(wn)},path:{transform:"translate(".concat(T/2*-1," -256)")}}}({transform:l,containerWidth:m,iconWidth:f}),h={tag:"rect",attributes:s(s({},Nn),{},{fill:"white"})},g=c.children?{children:c.children.map(Fe)}:{},b={tag:"g",attributes:s({},u.inner),children:[Fe(s({tag:c.tag,attributes:s(s({},c.attributes),u.path)},g))]},k={tag:"g",attributes:s({},u.outer),children:[b]},z="mask-".concat(o||tn()),x="clip-".concat(o||tn()),w={tag:"mask",attributes:s(s({},Nn),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,k]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(y=d,y.tag==="g"?y.children:[y])},w]};var y;return t.push(M,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(z,")")},Nn)}),{children:t,attributes:a}}}},{provides(n){let e=!1;Y.matchMedia&&(e=Y.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){const t=[],a={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:s(s({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=s(s({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:s(s({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:s(s({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:s(s({},i),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:s(s({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:s(s({},i),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:s(s({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:s(s({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},{hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-symbol"),a=t!==null&&(t===""||t);return n.symbol=a,n}})}],{mixoutsTo:on});const za=on.library,Jn=on.parse,ha=on.icon;function De(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,a)}return t}function D(n){for(var e=1;e=0)continue;f[c]=o[c]}return f}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}var Pn,Re,X,ln,Sn,fn,Q,Te,Be,Ye,We,He,_e,Ue,un,Cn,va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:ce!==void 0?ce:typeof self<"u"?self:{},wt={exports:{}};Pn=wt,Re=va,X=function(n,e,t){if(!Be(e)||We(e)||He(e)||_e(e)||Te(e))return e;var a,r=0,i=0;if(Ye(e))for(a=[],i=e.length;r1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof n=="string")return n;var a=(n.children||[]).map(function(f){return zt(f)}),r=Object.keys(n.attributes||{}).reduce(function(f,c){var m=n.attributes[c];switch(c){case"class":f.class=m.split(/\s+/).reduce(function(d,u){return d[u]=!0,d},{});break;case"style":f.style=m.split(";").map(function(d){return d.trim()}).filter(function(d){return d}).reduce(function(d,u){var h=u.indexOf(":"),g=xa.camelize(u.slice(0,h)),b=u.slice(h+1).trim();return d[g]=b,d},{});break;default:f.attrs[c]=m}return f},{attrs:{},class:{},style:{}});t.class;var i=t.style,o=i===void 0?{}:i,l=ya(t,ka);return Mt(n.tag,D(D(D({},e),{},{class:r.class,style:D(D({},r.style),o)},r.attrs),l),a)}var At=!1;try{At=!0}catch{}function jn(n,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?N({},n,e):{}}function qe(n){return n&&Qn(n)==="object"&&n.prefix&&n.iconName&&n.icon?n:Jn.icon?Jn.icon(n):n===null?null:Qn(n)==="object"&&n.prefix&&n.iconName?n:Array.isArray(n)&&n.length===2?{prefix:n[0],iconName:n[1]}:typeof n=="string"?{prefix:"fas",iconName:n}:void 0}var Aa=Lt({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(n){return[!0,!1,"horizontal","vertical","both"].indexOf(n)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(n){return["right","left"].indexOf(n)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(n){return[90,180,270].indexOf(Number.parseInt(n,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(n){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(n)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(n,e){var t=e.attrs,a=K(function(){return qe(n.icon)}),r=K(function(){return jn("classes",function(c){var m,d=(N(N(N(N(N(N(N(N(N(N(m={"fa-spin":c.spin,"fa-pulse":c.pulse,"fa-fw":c.fixedWidth,"fa-border":c.border,"fa-li":c.listItem,"fa-inverse":c.inverse,"fa-flip":c.flip===!0,"fa-flip-horizontal":c.flip==="horizontal"||c.flip==="both","fa-flip-vertical":c.flip==="vertical"||c.flip==="both"},"fa-".concat(c.size),c.size!==null),"fa-rotate-".concat(c.rotation),c.rotation!==null),"fa-pull-".concat(c.pull),c.pull!==null),"fa-swap-opacity",c.swapOpacity),"fa-bounce",c.bounce),"fa-shake",c.shake),"fa-beat",c.beat),"fa-fade",c.fade),"fa-beat-fade",c.beatFade),"fa-flash",c.flash),N(N(m,"fa-spin-pulse",c.spinPulse),"fa-spin-reverse",c.spinReverse));return Object.keys(d).map(function(u){return d[u]?u:null}).filter(function(u){return u})}(n))}),i=K(function(){return jn("transform",typeof n.transform=="string"?Jn.transform(n.transform):n.transform)}),o=K(function(){return jn("mask",qe(n.mask))}),l=K(function(){return ha(a.value,D(D(D(D({},r.value),i.value),o.value),{},{symbol:n.symbol,title:n.title,titleId:n.titleId,maskId:n.maskId}))});Ot(l,function(c){if(!c)return function(){var m;!At&&console&&typeof console.error=="function"&&(m=console).error.apply(m,arguments)}("Could not find one or more icon(s)",a.value,o.value)},{immediate:!0});var f=K(function(){return l.value?zt(l.value.abstract[0],{},t):null});return function(){return f.value}}});/*! +}`;if(t!==n||a!==e){const i=new RegExp("\\.".concat(n,"\\-"),"g"),o=new RegExp("\\--".concat(n,"\\-"),"g"),l=new RegExp("\\.".concat(e),"g");r=r.replace(i,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(l,".".concat(a))}return r}let he=!1;function Ln(){p.autoAddCss&&!he&&(function(n){if(!n||!R)return;const e=v.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;const t=v.head.childNodes;let a=null;for(let r=t.length-1;r>-1;r--){const i=t[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(a=i)}v.head.insertBefore(e,a)}(it()),he=!0)}var qt={mixout:()=>({dom:{css:it,insertCss:Ln}}),hooks:()=>({beforeDOMElementCreation(){Ln()},beforeI2svg(){Ln()}})};const F=Y||{};F[I]||(F[I]={}),F[I].styles||(F[I].styles={}),F[I].hooks||(F[I].hooks={}),F[I].shims||(F[I].shims=[]);var j=F[I];const ot=[],st=function(){v.removeEventListener("DOMContentLoaded",st),pn=1,ot.map(n=>n())};let pn=!1;function rn(n){const{tag:e,attributes:t={},children:a=[]}=n;return typeof n=="string"?ge(n):"<".concat(e," ").concat(function(r){return Object.keys(r||{}).reduce((i,o)=>i+"".concat(o,'="').concat(ge(r[o]),'" '),"").trim()}(t),">").concat(a.map(rn).join(""),"")}function be(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}R&&(pn=(v.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(v.readyState),pn||v.addEventListener("DOMContentLoaded",st));var On=function(n,e,t,a){var r,i,o,l=Object.keys(n),f=l.length,c=e;for(t===void 0?(r=1,o=n[l[0]]):(r=0,o=t);r=55296&&o<=56319&&r{const a=n[t];return a.icon?e[a.iconName]=a.icon:e[t]=a,e},{})}function Hn(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:a=!1}=t,r=ye(e);typeof j.hooks.addPack!="function"||a?j.styles[n]=s(s({},j.styles[n]||{}),r):j.hooks.addPack(n,ye(e)),n==="fas"&&Hn("fa",e)}const{styles:en,shims:Kt}=j,lt=Object.keys(ne),Xt=lt.reduce((n,e)=>(n[e]=Object.keys(ne[e]),n),{});let ae=null,ft={},ut={},mt={},dt={},pt={};function Vt(n,e){const t=e.split("-"),a=t[0],r=t.slice(1).join("-");return a!==n||r===""||(i=r,~Ut.indexOf(i))?null:r;var i}const gt=()=>{const n=a=>On(en,(r,i,o)=>(r[o]=On(i,a,{}),r),{});ft=n((a,r,i)=>(r[3]&&(a[r[3]]=i),r[2]&&r[2].filter(o=>typeof o=="number").forEach(o=>{a[o.toString(16)]=i}),a)),ut=n((a,r,i)=>(a[i]=i,r[2]&&r[2].filter(o=>typeof o=="string").forEach(o=>{a[o]=i}),a)),pt=n((a,r,i)=>{const o=r[2];return a[i]=i,o.forEach(l=>{a[l]=i}),a});const e="far"in en||p.autoFetchSvg,t=On(Kt,(a,r)=>{const i=r[0];let o=r[1];const l=r[2];return o!=="far"||e||(o="fas"),typeof i=="string"&&(a.names[i]={prefix:o,iconName:l}),typeof i=="number"&&(a.unicodes[i.toString(16)]={prefix:o,iconName:l}),a},{names:{},unicodes:{}});mt=t.names,dt=t.unicodes,ae=yn(p.styleDefault,{family:p.familyDefault})};var ve;function _n(n,e){return(ft[n]||{})[e]}function _(n,e){return(pt[n]||{})[e]}function ht(n){return mt[n]||{prefix:null,iconName:null}}function W(){return ae}ve=n=>{ae=yn(n.styleDefault,{family:p.familyDefault})},Wn.push(ve),gt();function yn(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:t=O}=e,a=Yt[t][n];if(t===hn&&!n)return"fad";const r=pe[t][n]||pe[t][a],i=n in j.styles?n:null;return r||i||null}function xe(n){return n.sort().filter((e,t,a)=>a.indexOf(e)===t)}function vn(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:t=!1}=e;let a=null;const r=In.concat(Dt),i=xe(n.filter(d=>r.includes(d))),o=xe(n.filter(d=>!In.includes(d))),l=i.filter(d=>(a=d,!Je.includes(d))),[f=null]=l,c=function(d){let u=O;const h=lt.reduce((g,b)=>(g[b]="".concat(p.cssPrefix,"-").concat(b),g),{});return Qe.forEach(g=>{(d.includes(h[g])||d.some(b=>Xt[g].includes(b)))&&(u=g)}),u}(i),m=s(s({},function(d){let u=[],h=null;return d.forEach(g=>{const b=Vt(p.cssPrefix,g);b?h=b:g&&u.push(g)}),{iconName:h,rest:u}}(o)),{},{prefix:yn(f,{family:c})});return s(s(s({},m),function(d){const{values:u,family:h,canonical:g,givenPrefix:b="",styles:k={},config:z={}}=d,x=h===hn,w=u.includes("fa-duotone")||u.includes("fad"),M=z.familyDefault==="duotone",y=g.prefix==="fad"||g.prefix==="fa-duotone";if(!x&&(w||M||y)&&(g.prefix="fad"),(u.includes("fa-brands")||u.includes("fab"))&&(g.prefix="fab"),!g.prefix&&Gt.includes(h)&&(Object.keys(k).find(A=>Zt.includes(A))||z.autoFetchSvg)){const A=Ct.get(h).defaultShortPrefixId;g.prefix=A,g.iconName=_(g.prefix,g.iconName)||g.iconName}return g.prefix!=="fa"&&b!=="fa"||(g.prefix=W()||"fas"),g}({values:n,family:c,styles:en,config:p,canonical:m,givenPrefix:a})),function(d,u,h){let{prefix:g,iconName:b}=h;if(d||!g||!b)return{prefix:g,iconName:b};const k=u==="fa"?ht(b):{},z=_(g,b);return b=k.iconName||z||b,g=k.prefix||g,g!=="far"||en.far||!en.fas||p.autoFetchSvg||(g="fas"),{prefix:g,iconName:b}}(t,a,m))}const Gt=Qe.filter(n=>n!==O||n!==hn),Zt=Object.keys(En).filter(n=>n!==O).map(n=>Object.keys(En[n])).flat();let ke=[],G={};const Z={},Jt=Object.keys(Z);function Un(n,e){for(var t=arguments.length,a=new Array(t>2?t-2:0),r=2;r{e=i.apply(null,[e,...a])}),e}function q(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a{r.apply(null,t)})}function H(){const n=arguments[0],e=Array.prototype.slice.call(arguments,1);return Z[n]?Z[n].apply(null,e):void 0}function qn(n){n.prefix==="fa"&&(n.prefix="fas");let{iconName:e}=n;const t=n.prefix||W();if(e)return e=_(t,e)||e,be(bt.definitions,t,e)||be(j.styles,t,e)}const bt=new class{constructor(){this.definitions={}}add(){for(var n=arguments.length,e=new Array(n),t=0;t{this.definitions[r]=s(s({},this.definitions[r]||{}),a[r]),Hn(r,a[r]);const i=ne[O][r];i&&Hn(i,a[r]),gt()})}reset(){this.definitions={}}_pullDefinitions(n,e){const t=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(t).map(a=>{const{prefix:r,iconName:i,icon:o}=t[a],l=o[2];n[r]||(n[r]={}),l.length>0&&l.forEach(f=>{typeof f=="string"&&(n[r][f]=o)}),n[r][i]=o}),n}},Qt={i2svg:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return R?(q("beforeI2svg",n),H("pseudoElements2svg",n),H("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=n;var t;p.autoReplaceSvg===!1&&(p.autoReplaceSvg=!0),p.observeMutations=!0,t=()=>{$t({autoReplaceSvgRoot:e}),q("watch",n)},R&&(pn?setTimeout(t,0):ot.push(t))}},on={noAuto:()=>{p.autoReplaceSvg=!1,p.observeMutations=!1,q("noAuto")},config:p,dom:Qt,parse:{icon:n=>{if(n===null)return null;if(typeof n=="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:_(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){const e=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],t=yn(n[0]);return{prefix:t,iconName:_(t,e)||e}}if(typeof n=="string"&&(n.indexOf("".concat(p.cssPrefix,"-"))>-1||n.match(Wt))){const e=vn(n.split(" "),{skipLookups:!0});return{prefix:e.prefix||W(),iconName:_(e.prefix,e.iconName)||e.iconName}}if(typeof n=="string"){const e=W();return{prefix:e,iconName:_(e,n)||n}}}},library:bt,findIconDefinition:qn,toHtml:rn},$t=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=v}=n;(Object.keys(j.styles).length>0||p.autoFetchSvg)&&R&&p.autoReplaceSvg&&on.dom.i2svg({node:e})};function xn(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(t=>rn(t))}}),Object.defineProperty(n,"node",{get:function(){if(!R)return;const t=v.createElement("div");return t.innerHTML=n.html,t.children}}),n}function re(n){const{icons:{main:e,mask:t},prefix:a,iconName:r,transform:i,symbol:o,title:l,maskId:f,titleId:c,extra:m,watchable:d=!1}=n,{width:u,height:h}=t.found?t:e,g=Et.includes(a),b=[p.replacementClass,r?"".concat(p.cssPrefix,"-").concat(r):""].filter(y=>m.classes.indexOf(y)===-1).filter(y=>y!==""||!!y).concat(m.classes).join(" ");let k={children:[],attributes:s(s({},m.attributes),{},{"data-prefix":a,"data-icon":r,class:b,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(u," ").concat(h)})};const z=g&&!~m.classes.indexOf("fa-fw")?{width:"".concat(u/h*16*.0625,"em")}:{};d&&(k.attributes[U]=""),l&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(c||tn())},children:[l]}),delete k.attributes.title);const x=s(s({},k),{},{prefix:a,iconName:r,main:e,mask:t,maskId:f,transform:i,symbol:o,styles:s(s({},z),m.styles)}),{children:w,attributes:M}=t.found&&e.found?H("generateAbstractMask",x)||{children:[],attributes:{}}:H("generateAbstractIcon",x)||{children:[],attributes:{}};return x.children=w,x.attributes=M,o?function(y){let{prefix:A,iconName:L,children:E,attributes:T,symbol:P}=y;const C=P===!0?"".concat(A,"-").concat(p.cssPrefix,"-").concat(L):P;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s(s({},T),{},{id:C}),children:E}]}]}(x):function(y){let{children:A,main:L,mask:E,attributes:T,styles:P,transform:C}=y;if(te(C)&&L.found&&!E.found){const{width:kn,height:wn}=L,se={x:kn/wn/2,y:.5};T.style=bn(s(s({},P),{},{"transform-origin":"".concat(se.x+C.x/16,"em ").concat(se.y+C.y/16,"em")}))}return[{tag:"svg",attributes:T,children:A}]}(x)}function we(n){const{content:e,width:t,height:a,transform:r,title:i,extra:o,watchable:l=!1}=n,f=s(s(s({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(f[U]="");const c=s({},o.styles);te(r)&&(c.transform=function(u){let{transform:h,width:g=Fn,height:b=Fn,startCentered:k=!1}=u,z="";return z+=k&&Ge?"translate(".concat(h.x/B-g/2,"em, ").concat(h.y/B-b/2,"em) "):k?"translate(calc(-50% + ".concat(h.x/B,"em), calc(-50% + ").concat(h.y/B,"em)) "):"translate(".concat(h.x/B,"em, ").concat(h.y/B,"em) "),z+="scale(".concat(h.size/B*(h.flipX?-1:1),", ").concat(h.size/B*(h.flipY?-1:1),") "),z+="rotate(".concat(h.rotate,"deg) "),z}({transform:r,startCentered:!0,width:t,height:a}),c["-webkit-transform"]=c.transform);const m=bn(c);m.length>0&&(f.style=m);const d=[];return d.push({tag:"span",attributes:f,children:[e]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:Mn}=j;function Kn(n){const e=n[0],t=n[1],[a]=n.slice(4);let r=null;return r=Array.isArray(a)?{tag:"g",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.GROUP)},children:[{tag:"path",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(p.cssPrefix,"-").concat(An.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:e,height:t,icon:r}}const na={found:!1,width:512,height:512};function Xn(n,e){let t=e;return e==="fa"&&p.styleDefault!==null&&(e=W()),new Promise((a,r)=>{if(t==="fa"){const i=ht(n)||{};n=i.iconName||n,e=i.prefix||e}if(n&&e&&Mn[e]&&Mn[e][n])return a(Kn(Mn[e][n]));!et&&p.showMissingIcons,a(s(s({},na),{},{icon:p.showMissingIcons&&n&&H("missingIconAbstract")||{}}))})}const ze=()=>{},Vn=p.measurePerformance&&sn&&sn.mark&&sn.measure?sn:{mark:ze,measure:ze},$='FA "6.7.2"',ea=n=>{Vn.mark("".concat($," ").concat(n," ends")),Vn.measure("".concat($," ").concat(n),"".concat($," ").concat(n," begins"),"".concat($," ").concat(n," ends"))};var ie=n=>(Vn.mark("".concat($," ").concat(n," begins")),()=>ea(n));const mn=()=>{};function Ae(n){return typeof(n.getAttribute?n.getAttribute(U):null)=="string"}function ta(n){return v.createElementNS("http://www.w3.org/2000/svg",n)}function aa(n){return v.createElement(n)}function yt(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:t=n.tag==="svg"?ta:aa}=e;if(typeof n=="string")return v.createTextNode(n);const a=t(n.tag);return Object.keys(n.attributes||[]).forEach(function(r){a.setAttribute(r,n.attributes[r])}),(n.children||[]).forEach(function(r){a.appendChild(yt(r,{ceFn:t}))}),a}const dn={replace:function(n){const e=n[0];if(e.parentNode)if(n[1].forEach(t=>{e.parentNode.insertBefore(yt(t),e)}),e.getAttribute(U)===null&&p.keepOriginalSource){let t=v.createComment(function(a){let r=" ".concat(a.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}(e));e.parentNode.replaceChild(t,e)}else e.remove()},nest:function(n){const e=n[0],t=n[1];if(~ee(e).indexOf(p.replacementClass))return dn.replace(n);const a=new RegExp("".concat(p.cssPrefix,"-.*"));if(delete t[0].attributes.id,t[0].attributes.class){const i=t[0].attributes.class.split(" ").reduce((o,l)=>(l===p.replacementClass||l.match(a)?o.toSvg.push(l):o.toNode.push(l),o),{toNode:[],toSvg:[]});t[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}const r=t.map(i=>rn(i)).join(` +`);e.setAttribute(U,""),e.innerHTML=r}};function Le(n){n()}function vt(n,e){const t=typeof e=="function"?e:mn;if(n.length===0)t();else{let a=Le;p.mutateApproach==="async"&&(a=Y.requestAnimationFrame||Le),a(()=>{const r=p.autoReplaceSvg===!0?dn.replace:dn[p.autoReplaceSvg]||dn.replace,i=ie("mutate");n.map(r),i(),t()})}}let oe=!1;function xt(){oe=!0}function Gn(){oe=!1}let gn=null;function Oe(n){if(!me||!p.observeMutations)return;const{treeCallback:e=mn,nodeCallback:t=mn,pseudoElementsCallback:a=mn,observeMutationsRoot:r=v}=n;gn=new me(i=>{if(oe)return;const o=W();J(i).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!Ae(l.addedNodes[0])&&(p.searchPseudoElements&&a(l.target),e(l.target)),l.type==="attributes"&&l.target.parentNode&&p.searchPseudoElements&&a(l.target.parentNode),l.type==="attributes"&&Ae(l.target)&&~_t.indexOf(l.attributeName))if(l.attributeName==="class"&&function(c){const m=c.getAttribute?c.getAttribute(Rn):null,d=c.getAttribute?c.getAttribute(Tn):null;return m&&d}(l.target)){const{prefix:c,iconName:m}=vn(ee(l.target));l.target.setAttribute(Rn,c||o),m&&l.target.setAttribute(Tn,m)}else(f=l.target)&&f.classList&&f.classList.contains&&f.classList.contains(p.replacementClass)&&t(l.target);var f})}),R&&gn.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ra(n){const e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),a=n.innerText!==void 0?n.innerText.trim():"";let r=vn(ee(n));return r.prefix||(r.prefix=W()),e&&t&&(r.prefix=e,r.iconName=t),r.iconName&&r.prefix||(r.prefix&&a.length>0&&(r.iconName=(i=r.prefix,o=n.innerText,(ut[i]||{})[o]||_n(r.prefix,ct(n.innerText)))),!r.iconName&&p.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=n.firstChild.data)),r;var i,o}function Me(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:t,prefix:a,rest:r}=ra(n),i=function(f){const c=J(f.attributes).reduce((u,h)=>(u.name!=="class"&&u.name!=="style"&&(u[h.name]=h.value),u),{}),m=f.getAttribute("title"),d=f.getAttribute("data-fa-title-id");return p.autoA11y&&(m?c["aria-labelledby"]="".concat(p.replacementClass,"-title-").concat(d||tn()):(c["aria-hidden"]="true",c.focusable="false")),c}(n),o=Un("parseNodeAttributes",{},n);let l=e.styleParser?function(f){const c=f.getAttribute("style");let m=[];return c&&(m=c.split(";").reduce((d,u)=>{const h=u.split(":"),g=h[0],b=h.slice(1);return g&&b.length>0&&(d[g]=b.join(":").trim()),d},{})),m}(n):[];return s({iconName:t,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:a,transform:S,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:i}},o)}const{styles:ia}=j;function kt(n){const e=p.autoReplaceSvg==="nest"?Me(n,{styleParser:!1}):Me(n);return~e.extra.classes.indexOf(at)?H("generateLayersText",n,e):H("generateSvgReplacementMutation",n,e)}function Ne(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!R)return Promise.resolve();const t=v.documentElement.classList,a=m=>t.add("".concat(de,"-").concat(m)),r=m=>t.remove("".concat(de,"-").concat(m)),i=p.autoFetchSvg?[...Pt,...In]:Je.concat(Object.keys(ia));i.includes("fa")||i.push("fa");const o=[".".concat(at,":not([").concat(U,"])")].concat(i.map(m=>".".concat(m,":not([").concat(U,"])"))).join(", ");if(o.length===0)return Promise.resolve();let l=[];try{l=J(n.querySelectorAll(o))}catch{}if(!(l.length>0))return Promise.resolve();a("pending"),r("complete");const f=ie("onTree"),c=l.reduce((m,d)=>{try{const u=kt(d);u&&m.push(u)}catch(u){et||u.name}return m},[]);return new Promise((m,d)=>{Promise.all(c).then(u=>{vt(u,()=>{a("active"),a("complete"),r("pending"),typeof e=="function"&&e(),f(),m()})}).catch(u=>{f(),d(u)})})}function oa(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kt(n).then(t=>{t&&vt([t],e)})}const sa=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=S,symbol:a=!1,mask:r=null,maskId:i=null,title:o=null,titleId:l=null,classes:f=[],attributes:c={},styles:m={}}=e;if(!n)return;const{prefix:d,iconName:u,icon:h}=n;return xn(s({type:"icon"},n),()=>(q("beforeDOMElementCreation",{iconDefinition:n,params:e}),p.autoA11y&&(o?c["aria-labelledby"]="".concat(p.replacementClass,"-title-").concat(l||tn()):(c["aria-hidden"]="true",c.focusable="false")),re({icons:{main:Kn(h),mask:r?Kn(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:u,transform:s(s({},S),t),symbol:a,title:o,maskId:i,titleId:l,extra:{attributes:c,styles:m,classes:f}})))};var ca={mixout(){return{icon:(n=sa,function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=(e||{}).icon?e:qn(e||{});let{mask:r}=t;return r&&(r=(r||{}).icon?r:qn(r||{})),n(a,s(s({},t),{},{mask:r}))})};var n},hooks:()=>({mutationObserverCallbacks:n=>(n.treeCallback=Ne,n.nodeCallback=oa,n)}),provides(n){n.i2svg=function(e){const{node:t=v,callback:a=()=>{}}=e;return Ne(t,a)},n.generateSvgReplacementMutation=function(e,t){const{iconName:a,title:r,titleId:i,prefix:o,transform:l,symbol:f,mask:c,maskId:m,extra:d}=t;return new Promise((u,h)=>{Promise.all([Xn(a,o),c.iconName?Xn(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[b,k]=g;u([e,re({icons:{main:b,mask:k},prefix:o,iconName:a,transform:l,symbol:f,maskId:m,title:r,titleId:i,extra:d,watchable:!0})])}).catch(h)})},n.generateAbstractIcon=function(e){let{children:t,attributes:a,main:r,transform:i,styles:o}=e;const l=bn(o);let f;return l.length>0&&(a.style=l),te(i)&&(f=H("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(f||r.icon),{children:t,attributes:a}}}},la={mixout:()=>({layer(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:t=[]}=e;return xn({type:"layer"},()=>{q("beforeDOMElementCreation",{assembler:n,params:e});let a=[];return n(r=>{Array.isArray(r)?r.map(i=>{a=a.concat(i.abstract)}):a=a.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat(p.cssPrefix,"-layers"),...t].join(" ")},children:a}]})}})},fa={mixout:()=>({counter(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:t=null,classes:a=[],attributes:r={},styles:i={}}=e;return xn({type:"counter",content:n},()=>(q("beforeDOMElementCreation",{content:n,params:e}),function(o){const{content:l,title:f,extra:c}=o,m=s(s(s({},c.attributes),f?{title:f}:{}),{},{class:c.classes.join(" ")}),d=bn(c.styles);d.length>0&&(m.style=d);const u=[];return u.push({tag:"span",attributes:m,children:[l]}),f&&u.push({tag:"span",attributes:{class:"sr-only"},children:[f]}),u}({content:n.toString(),title:t,extra:{attributes:r,styles:i,classes:["".concat(p.cssPrefix,"-layers-counter"),...a]}})))}})},ua={mixout:()=>({text(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=S,title:a=null,classes:r=[],attributes:i={},styles:o={}}=e;return xn({type:"text",content:n},()=>(q("beforeDOMElementCreation",{content:n,params:e}),we({content:n,transform:s(s({},S),t),title:a,extra:{attributes:i,styles:o,classes:["".concat(p.cssPrefix,"-layers-text"),...r]}})))}}),provides(n){n.generateLayersText=function(e,t){const{title:a,transform:r,extra:i}=t;let o=null,l=null;if(Ge){const f=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();o=c.width/f,l=c.height/f}return p.autoA11y&&!a&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,we({content:e.innerHTML,width:o,height:l,transform:r,title:a,extra:i,watchable:!0})])}}};const ma=new RegExp('"',"ug"),Ce=[1105920,1112319],Pe=s(s(s(s({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Zn=Object.keys(Pe).reduce((n,e)=>(n[e.toLowerCase()]=Pe[e],n),{}),da=Object.keys(Zn).reduce((n,e)=>{const t=Zn[e];return n[e]=t[900]||[...Object.entries(t)][0][1],n},{});function Se(n,e){const t="".concat("data-fa-pseudo-element-pending").concat(e.replace(":","-"));return new Promise((a,r)=>{if(n.getAttribute(t)!==null)return a();const i=J(n.children).filter(d=>d.getAttribute(Dn)===e)[0],o=Y.getComputedStyle(n,e),l=o.getPropertyValue("font-family"),f=l.match(Ht),c=o.getPropertyValue("font-weight"),m=o.getPropertyValue("content");if(i&&!f)return n.removeChild(i),a();if(f&&m!=="none"&&m!==""){const d=o.getPropertyValue("content");let u=function(x,w){const M=x.replace(/^['"]|['"]$/g,"").toLowerCase(),y=parseInt(w),A=isNaN(y)?"normal":y;return(Zn[M]||{})[A]||da[M]}(l,c);const{value:h,isSecondary:g}=function(x){const w=x.replace(ma,""),M=function(L,E){const T=L.length;let P,C=L.charCodeAt(E);return C>=55296&&C<=56319&&T>E+1&&(P=L.charCodeAt(E+1),P>=56320&&P<=57343)?1024*(C-55296)+P-56320+65536:C}(w,0),y=M>=Ce[0]&&M<=Ce[1],A=w.length===2&&w[0]===w[1];return{value:ct(A?w[0]:w),isSecondary:y||A}}(d),b=f[0].startsWith("FontAwesome");let k=_n(u,h),z=k;if(b){const x=function(w){const M=dt[w],y=_n("fas",w);return M||(y?{prefix:"fas",iconName:y}:null)||{prefix:null,iconName:null}}(h);x.iconName&&x.prefix&&(k=x.iconName,u=x.prefix)}if(!k||g||i&&i.getAttribute(Rn)===u&&i.getAttribute(Tn)===z)a();else{n.setAttribute(t,z),i&&n.removeChild(i);const x={iconName:null,title:null,titleId:null,prefix:null,transform:S,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:w}=x;w.attributes[Dn]=e,Xn(k,u).then(M=>{const y=re(s(s({},x),{},{icons:{main:M,mask:{prefix:null,iconName:null,rest:[]}},prefix:u,iconName:z,extra:w,watchable:!0})),A=v.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(A,n.firstChild):n.appendChild(A),A.outerHTML=y.map(L=>rn(L)).join(` +`),n.removeAttribute(t),a()}).catch(r)}}else a()})}function pa(n){return Promise.all([Se(n,"::before"),Se(n,"::after")])}function ga(n){return!(n.parentNode===document.head||~Bt.indexOf(n.tagName.toUpperCase())||n.getAttribute(Dn)||n.parentNode&&n.parentNode.tagName==="svg")}function je(n){if(R)return new Promise((e,t)=>{const a=J(n.querySelectorAll("*")).filter(ga).map(pa),r=ie("searchPseudoElements");xt(),Promise.all(a).then(()=>{r(),Gn(),e()}).catch(()=>{r(),Gn(),t()})})}let Ee=!1;const Ie=n=>n.toLowerCase().split(" ").reduce((e,t)=>{const a=t.toLowerCase().split("-"),r=a[0];let i=a.slice(1).join("-");if(r&&i==="h")return e.flipX=!0,e;if(r&&i==="v")return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Nn={x:0,y:0,width:"100%",height:"100%"};function Fe(n){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}(function(n,e){let{mixoutsTo:t}=e;ke=n,G={},Object.keys(Z).forEach(a=>{Jt.indexOf(a)===-1&&delete Z[a]}),ke.forEach(a=>{const r=a.mixout?a.mixout():{};if(Object.keys(r).forEach(i=>{typeof r[i]=="function"&&(t[i]=r[i]),typeof r[i]=="object"&&Object.keys(r[i]).forEach(o=>{t[i]||(t[i]={}),t[i][o]=r[i][o]})}),a.hooks){const i=a.hooks();Object.keys(i).forEach(o=>{G[o]||(G[o]=[]),G[o].push(i[o])})}a.provides&&a.provides(Z)})})([qt,ca,la,fa,ua,{hooks:()=>({mutationObserverCallbacks:n=>(n.pseudoElementsCallback=je,n)}),provides(n){n.pseudoElements2svg=function(e){const{node:t=v}=e;p.searchPseudoElements&&je(t)}}},{mixout:()=>({dom:{unwatch(){xt(),Ee=!0}}}),hooks:()=>({bootstrap(){Oe(Un("mutationObserverCallbacks",{}))},noAuto(){gn&&gn.disconnect()},watch(n){const{observeMutationsRoot:e}=n;Ee?Gn():Oe(Un("mutationObserverCallbacks",{observeMutationsRoot:e}))}})},{mixout:()=>({parse:{transform:n=>Ie(n)}}),hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-transform");return t&&(n.transform=Ie(t)),n}}),provides(n){n.generateAbstractTransformGrouping=function(e){let{main:t,transform:a,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(32*a.x,", ").concat(32*a.y,") "),f="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),c="rotate(".concat(a.rotate," 0 0)"),m={outer:o,inner:{transform:"".concat(l," ").concat(f," ").concat(c)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:s({},m.outer),children:[{tag:"g",attributes:s({},m.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:s(s({},t.icon.attributes),m.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-mask"),a=t?vn(t.split(" ").map(r=>r.trim())):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=W()),n.mask=a,n.maskId=e.getAttribute("data-fa-mask-id"),n}}),provides(n){n.generateAbstractMask=function(e){let{children:t,attributes:a,main:r,mask:i,maskId:o,transform:l}=e;const{width:f,icon:c}=r,{width:m,icon:d}=i,u=function(A){let{transform:L,containerWidth:E,iconWidth:T}=A;const P={transform:"translate(".concat(E/2," 256)")},C="translate(".concat(32*L.x,", ").concat(32*L.y,") "),kn="scale(".concat(L.size/16*(L.flipX?-1:1),", ").concat(L.size/16*(L.flipY?-1:1),") "),wn="rotate(".concat(L.rotate," 0 0)");return{outer:P,inner:{transform:"".concat(C," ").concat(kn," ").concat(wn)},path:{transform:"translate(".concat(T/2*-1," -256)")}}}({transform:l,containerWidth:m,iconWidth:f}),h={tag:"rect",attributes:s(s({},Nn),{},{fill:"white"})},g=c.children?{children:c.children.map(Fe)}:{},b={tag:"g",attributes:s({},u.inner),children:[Fe(s({tag:c.tag,attributes:s(s({},c.attributes),u.path)},g))]},k={tag:"g",attributes:s({},u.outer),children:[b]},z="mask-".concat(o||tn()),x="clip-".concat(o||tn()),w={tag:"mask",attributes:s(s({},Nn),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,k]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(y=d,y.tag==="g"?y.children:[y])},w]};var y;return t.push(M,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(z,")")},Nn)}),{children:t,attributes:a}}}},{provides(n){let e=!1;Y.matchMedia&&(e=Y.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){const t=[],a={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:s(s({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=s(s({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:s(s({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:s(s({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:s(s({},i),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:s(s({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:s(s({},i),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:s(s({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:s(s({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},{hooks:()=>({parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-symbol"),a=t!==null&&(t===""||t);return n.symbol=a,n}})}],{mixoutsTo:on});const za=on.library,Jn=on.parse,ha=on.icon;function De(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,a)}return t}function D(n){for(var e=1;e=0)continue;f[c]=o[c]}return f}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}var Cn,Re,X,ln,Pn,fn,Q,Te,Be,Ye,We,He,_e,Ue,un,Sn,va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:ce!==void 0?ce:typeof self<"u"?self:{},wt={exports:{}};Cn=wt,Re=va,X=function(n,e,t){if(!Be(e)||We(e)||He(e)||_e(e)||Te(e))return e;var a,r=0,i=0;if(Ye(e))for(a=[],i=e.length;r1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof n=="string")return n;var a=(n.children||[]).map(function(f){return zt(f)}),r=Object.keys(n.attributes||{}).reduce(function(f,c){var m=n.attributes[c];switch(c){case"class":f.class=m.split(/\s+/).reduce(function(d,u){return d[u]=!0,d},{});break;case"style":f.style=m.split(";").map(function(d){return d.trim()}).filter(function(d){return d}).reduce(function(d,u){var h=u.indexOf(":"),g=xa.camelize(u.slice(0,h)),b=u.slice(h+1).trim();return d[g]=b,d},{});break;default:f.attrs[c]=m}return f},{attrs:{},class:{},style:{}});t.class;var i=t.style,o=i===void 0?{}:i,l=ya(t,ka);return Mt(n.tag,D(D(D({},e),{},{class:r.class,style:D(D({},r.style),o)},r.attrs),l),a)}var At=!1;try{At=!0}catch{}function jn(n,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?N({},n,e):{}}function qe(n){return n&&Qn(n)==="object"&&n.prefix&&n.iconName&&n.icon?n:Jn.icon?Jn.icon(n):n===null?null:Qn(n)==="object"&&n.prefix&&n.iconName?n:Array.isArray(n)&&n.length===2?{prefix:n[0],iconName:n[1]}:typeof n=="string"?{prefix:"fas",iconName:n}:void 0}var Aa=Lt({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(n){return[!0,!1,"horizontal","vertical","both"].indexOf(n)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(n){return["right","left"].indexOf(n)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(n){return[90,180,270].indexOf(Number.parseInt(n,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(n){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(n)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(n,e){var t=e.attrs,a=K(function(){return qe(n.icon)}),r=K(function(){return jn("classes",function(c){var m,d=(N(N(N(N(N(N(N(N(N(N(m={"fa-spin":c.spin,"fa-pulse":c.pulse,"fa-fw":c.fixedWidth,"fa-border":c.border,"fa-li":c.listItem,"fa-inverse":c.inverse,"fa-flip":c.flip===!0,"fa-flip-horizontal":c.flip==="horizontal"||c.flip==="both","fa-flip-vertical":c.flip==="vertical"||c.flip==="both"},"fa-".concat(c.size),c.size!==null),"fa-rotate-".concat(c.rotation),c.rotation!==null),"fa-pull-".concat(c.pull),c.pull!==null),"fa-swap-opacity",c.swapOpacity),"fa-bounce",c.bounce),"fa-shake",c.shake),"fa-beat",c.beat),"fa-fade",c.fade),"fa-beat-fade",c.beatFade),"fa-flash",c.flash),N(N(m,"fa-spin-pulse",c.spinPulse),"fa-spin-reverse",c.spinReverse));return Object.keys(d).map(function(u){return d[u]?u:null}).filter(function(u){return u})}(n))}),i=K(function(){return jn("transform",typeof n.transform=="string"?Jn.transform(n.transform):n.transform)}),o=K(function(){return jn("mask",qe(n.mask))}),l=K(function(){return ha(a.value,D(D(D(D({},r.value),i.value),o.value),{},{symbol:n.symbol,title:n.title,titleId:n.titleId,maskId:n.maskId}))});Ot(l,function(c){if(!c)return function(){var m;!At&&console&&typeof console.error=="function"&&(m=console).error.apply(m,arguments)}("Could not find one or more icon(s)",a.value,o.value)},{immediate:!0});var f=K(function(){return l.value?zt(l.value.abstract[0],{},t):null});return function(){return f.value}}});/*! * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2024 Fonticons, Inc. - */const La={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},Oa={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},Ma={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Na={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},Pa={prefix:"fas",iconName:"charging-station",icon:[576,512,[],"f5e7","M96 0C60.7 0 32 28.7 32 64l0 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-144 16 0c22.1 0 40 17.9 40 40l0 32c0 39.8 32.2 72 72 72s72-32.2 72-72l0-123.7c32.5-10.2 56-40.5 56-76.3l0-32c0-8.8-7.2-16-16-16l-16 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 48-32 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 48-16 0c-8.8 0-16 7.2-16 16l0 32c0 35.8 23.5 66.1 56 76.3L472 376c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-32c0-48.6-39.4-88-88-88l-16 0 0-192c0-35.3-28.7-64-64-64L96 0zM216.9 82.7c6 4 8.5 11.5 6.3 18.3l-25 74.9 57.8 0c6.7 0 12.7 4.2 15 10.4s.5 13.3-4.6 17.7l-112 96c-5.5 4.7-13.4 5.1-19.3 1.1s-8.5-11.5-6.3-18.3l25-74.9L96 208c-6.7 0-12.7-4.2-15-10.4s-.5-13.3 4.6-17.7l112-96c5.5-4.7 13.4-5.1 19.3-1.1z"]},Sa={prefix:"fas",iconName:"car-battery",icon:[512,512,["battery-car"],"f5df","M80 96c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l96 0c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l16 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 160c0-35.3 28.7-64 64-64l16 0zm304 96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 32-32 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0 0 32c0 8.8 7.2 16 16 16s16-7.2 16-16l0-32 32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-32zM80 240c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},Ca={prefix:"fas",iconName:"plug-circle-bolt",icon:[576,512,[],"e55b","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM432 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm47.9-225c4.3 3.7 5.4 9.9 2.6 14.9L452.4 356l35.6 0c5.2 0 9.8 3.3 11.4 8.2s-.1 10.3-4.2 13.4l-96 72c-4.5 3.4-10.8 3.2-15.1-.6s-5.4-9.9-2.6-14.9L411.6 380 376 380c-5.2 0-9.8-3.3-11.4-8.2s.1-10.3 4.2-13.4l96-72c4.5-3.4 10.8-3.2 15.1 .6z"]},ja={prefix:"fas",iconName:"solar-panel",icon:[640,512,[],"f5ba","M122.2 0C91.7 0 65.5 21.5 59.5 51.4L8.3 307.4C.4 347 30.6 384 71 384l217 0 0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64 217 0c40.4 0 70.7-36.9 62.8-76.6l-51.2-256C574.5 21.5 548.3 0 517.8 0L122.2 0zM260.9 64l118.2 0 10.4 104-139 0L260.9 64zM202.3 168l-100.8 0L122.2 64l90.4 0L202.3 168zM91.8 216l105.6 0L187.1 320 71 320 91.8 216zm153.9 0l148.6 0 10.4 104-169.4 0 10.4-104zm196.8 0l105.6 0L569 320l-116 0L442.5 216zm96-48l-100.8 0L427.3 64l90.4 0 31.4-6.3L517.8 64l20.8 104z"]},Ea={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},Ia={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7L336 192c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Fa={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Da={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},Ra={prefix:"fas",iconName:"plug-circle-check",icon:[576,512,[],"e55c","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM576 368a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zm-76.7-43.3c6.2 6.2 6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L416 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0z"]},Ta={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Ba={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 224c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224zM143.5 120.6c13.6-11.3 15.4-31.5 4.1-45.1s-31.5-15.4-45.1-4.1C49.7 115.4 16 181.8 16 256c0 132.5 107.5 240 240 240s240-107.5 240-240c0-74.2-33.8-140.6-86.6-184.6c-13.6-11.3-33.8-9.4-45.1 4.1s-9.4 33.8 4.1 45.1c38.9 32.3 63.5 81 63.5 135.4c0 97.2-78.8 176-176 176s-176-78.8-176-176c0-54.4 24.7-103.1 63.5-135.4z"]},Ya={prefix:"fas",iconName:"calculator",icon:[384,512,[128425],"f1ec","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM96 64l192 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]},Wa={prefix:"fas",iconName:"delete-left",icon:[576,512,[9003,"backspace"],"f55a","M576 128c0-35.3-28.7-64-64-64L205.3 64c-17 0-33.3 6.7-45.3 18.7L9.4 233.4c-6 6-9.4 14.1-9.4 22.6s3.4 16.6 9.4 22.6L160 429.3c12 12 28.3 18.7 45.3 18.7L512 448c35.3 0 64-28.7 64-64l0-256zM271 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},Ha={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},_a={prefix:"fas",iconName:"calendar-week",icon:[448,512,[],"f784","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16L80 256z"]},Ua={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},qa={prefix:"fas",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M135.2 117.4L109.1 192l293.8 0-26.1-74.6C372.3 104.6 360.2 96 346.6 96L165.4 96c-13.6 0-25.7 8.6-30.2 21.4zM39.6 196.8L74.8 96.3C88.3 57.8 124.6 32 165.4 32l181.2 0c40.8 0 77.1 25.8 90.6 64.3l35.2 100.5c23.2 9.6 39.6 32.5 39.6 59.2l0 144 0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L96 400l0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L0 256c0-26.7 16.4-49.6 39.6-59.2zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Ka={prefix:"fas",iconName:"plug-circle-xmark",icon:[576,512,[],"e560","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM432 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm59.3-180.7L454.6 368l36.7 36.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L432 390.6l-36.7 36.7c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L409.4 368l-36.7-36.7c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L432 345.4l36.7-36.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Xa={prefix:"fas",iconName:"eraser",icon:[576,512,[],"f12d","M290.7 57.4L57.4 290.7c-25 25-25 65.5 0 90.5l80 80c12 12 28.3 18.7 45.3 18.7L288 480l9.4 0L512 480c17.7 0 32-14.3 32-32s-14.3-32-32-32l-124.1 0L518.6 285.3c25-25 25-65.5 0-90.5L381.3 57.4c-25-25-65.5-25-90.5 0zM297.4 416l-9.4 0-105.4 0-80-80L227.3 211.3 364.7 348.7 297.4 416z"]},Va={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Ga={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Za={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16l-96 0z"]},Ja={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},Qa={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},$a={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};export{Ra as A,Ca as B,Da as C,Ba as D,Aa as F,Xa as a,Oa as b,Ea as c,Va as d,Sa as e,Wa as f,ja as g,Ha as h,Pa as i,Ya as j,Ia as k,za as l,qa as m,Ma as n,Ja as o,Ga as p,Fa as q,Na as r,Qa as s,Ta as t,$a as u,Ua as v,Za as w,_a as x,La as y,Ka as z}; + */const La={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},Oa={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},Ma={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Na={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},Ca={prefix:"fas",iconName:"charging-station",icon:[576,512,[],"f5e7","M96 0C60.7 0 32 28.7 32 64l0 384c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-144 16 0c22.1 0 40 17.9 40 40l0 32c0 39.8 32.2 72 72 72s72-32.2 72-72l0-123.7c32.5-10.2 56-40.5 56-76.3l0-32c0-8.8-7.2-16-16-16l-16 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 48-32 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 48-16 0c-8.8 0-16 7.2-16 16l0 32c0 35.8 23.5 66.1 56 76.3L472 376c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-32c0-48.6-39.4-88-88-88l-16 0 0-192c0-35.3-28.7-64-64-64L96 0zM216.9 82.7c6 4 8.5 11.5 6.3 18.3l-25 74.9 57.8 0c6.7 0 12.7 4.2 15 10.4s.5 13.3-4.6 17.7l-112 96c-5.5 4.7-13.4 5.1-19.3 1.1s-8.5-11.5-6.3-18.3l25-74.9L96 208c-6.7 0-12.7-4.2-15-10.4s-.5-13.3 4.6-17.7l112-96c5.5-4.7 13.4-5.1 19.3-1.1z"]},Pa={prefix:"fas",iconName:"car-battery",icon:[512,512,["battery-car"],"f5df","M80 96c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l96 0c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l16 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 160c0-35.3 28.7-64 64-64l16 0zm304 96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 32-32 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0 0 32c0 8.8 7.2 16 16 16s16-7.2 16-16l0-32 32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-32zM80 240c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},Sa={prefix:"fas",iconName:"plug-circle-bolt",icon:[576,512,[],"e55b","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM432 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm47.9-225c4.3 3.7 5.4 9.9 2.6 14.9L452.4 356l35.6 0c5.2 0 9.8 3.3 11.4 8.2s-.1 10.3-4.2 13.4l-96 72c-4.5 3.4-10.8 3.2-15.1-.6s-5.4-9.9-2.6-14.9L411.6 380 376 380c-5.2 0-9.8-3.3-11.4-8.2s.1-10.3 4.2-13.4l96-72c4.5-3.4 10.8-3.2 15.1 .6z"]},ja={prefix:"fas",iconName:"solar-panel",icon:[640,512,[],"f5ba","M122.2 0C91.7 0 65.5 21.5 59.5 51.4L8.3 307.4C.4 347 30.6 384 71 384l217 0 0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64 217 0c40.4 0 70.7-36.9 62.8-76.6l-51.2-256C574.5 21.5 548.3 0 517.8 0L122.2 0zM260.9 64l118.2 0 10.4 104-139 0L260.9 64zM202.3 168l-100.8 0L122.2 64l90.4 0L202.3 168zM91.8 216l105.6 0L187.1 320 71 320 91.8 216zm153.9 0l148.6 0 10.4 104-169.4 0 10.4-104zm196.8 0l105.6 0L569 320l-116 0L442.5 216zm96-48l-100.8 0L427.3 64l90.4 0 31.4-6.3L517.8 64l20.8 104z"]},Ea={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},Ia={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7L336 192c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Fa={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Da={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},Ra={prefix:"fas",iconName:"plug-circle-check",icon:[576,512,[],"e55c","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM576 368a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zm-76.7-43.3c6.2 6.2 6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L416 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0z"]},Ta={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Ba={prefix:"fas",iconName:"coins",icon:[512,512,[],"f51e","M512 80c0 18-14.3 34.6-38.4 48c-29.1 16.1-72.5 27.5-122.3 30.9c-3.7-1.8-7.4-3.5-11.3-5C300.6 137.4 248.2 128 192 128c-8.3 0-16.4 .2-24.5 .6l-1.1-.6C142.3 114.6 128 98 128 80c0-44.2 86-80 192-80S512 35.8 512 80zM160.7 161.1c10.2-.7 20.7-1.1 31.3-1.1c62.2 0 117.4 12.3 152.5 31.4C369.3 204.9 384 221.7 384 240c0 4-.7 7.9-2.1 11.7c-4.6 13.2-17 25.3-35 35.5c0 0 0 0 0 0c-.1 .1-.3 .1-.4 .2c0 0 0 0 0 0s0 0 0 0c-.3 .2-.6 .3-.9 .5c-35 19.4-90.8 32-153.6 32c-59.6 0-112.9-11.3-148.2-29.1c-1.9-.9-3.7-1.9-5.5-2.9C14.3 274.6 0 258 0 240c0-34.8 53.4-64.5 128-75.4c10.5-1.5 21.4-2.7 32.7-3.5zM416 240c0-21.9-10.6-39.9-24.1-53.4c28.3-4.4 54.2-11.4 76.2-20.5c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 19.3-16.5 37.1-43.8 50.9c-14.6 7.4-32.4 13.7-52.4 18.5c.1-1.8 .2-3.5 .2-5.3zm-32 96c0 18-14.3 34.6-38.4 48c-1.8 1-3.6 1.9-5.5 2.9C304.9 404.7 251.6 416 192 416c-62.8 0-118.6-12.6-153.6-32C14.3 370.6 0 354 0 336l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 342.6 135.8 352 192 352s108.6-9.4 148.1-25.9c7.8-3.2 15.3-6.9 22.4-10.9c6.1-3.4 11.8-7.2 17.2-11.2c1.5-1.1 2.9-2.3 4.3-3.4l0 3.4 0 5.7 0 26.3zm32 0l0-32 0-25.9c19-4.2 36.5-9.5 52.1-16c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 10.5-5 21-14.9 30.9c-16.3 16.3-45 29.7-81.3 38.4c.1-1.7 .2-3.5 .2-5.3zM192 448c56.2 0 108.6-9.4 148.1-25.9c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 44.2-86 80-192 80S0 476.2 0 432l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 438.6 135.8 448 192 448z"]},Ya={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 224c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224zM143.5 120.6c13.6-11.3 15.4-31.5 4.1-45.1s-31.5-15.4-45.1-4.1C49.7 115.4 16 181.8 16 256c0 132.5 107.5 240 240 240s240-107.5 240-240c0-74.2-33.8-140.6-86.6-184.6c-13.6-11.3-33.8-9.4-45.1 4.1s-9.4 33.8 4.1 45.1c38.9 32.3 63.5 81 63.5 135.4c0 97.2-78.8 176-176 176s-176-78.8-176-176c0-54.4 24.7-103.1 63.5-135.4z"]},Wa={prefix:"fas",iconName:"calculator",icon:[384,512,[128425],"f1ec","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM96 64l192 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]},Ha={prefix:"fas",iconName:"delete-left",icon:[576,512,[9003,"backspace"],"f55a","M576 128c0-35.3-28.7-64-64-64L205.3 64c-17 0-33.3 6.7-45.3 18.7L9.4 233.4c-6 6-9.4 14.1-9.4 22.6s3.4 16.6 9.4 22.6L160 429.3c12 12 28.3 18.7 45.3 18.7L512 448c35.3 0 64-28.7 64-64l0-256zM271 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},_a={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},Ua={prefix:"fas",iconName:"calendar-week",icon:[448,512,[],"f784","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16L80 256z"]},qa={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},Ka={prefix:"fas",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M135.2 117.4L109.1 192l293.8 0-26.1-74.6C372.3 104.6 360.2 96 346.6 96L165.4 96c-13.6 0-25.7 8.6-30.2 21.4zM39.6 196.8L74.8 96.3C88.3 57.8 124.6 32 165.4 32l181.2 0c40.8 0 77.1 25.8 90.6 64.3l35.2 100.5c23.2 9.6 39.6 32.5 39.6 59.2l0 144 0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L96 400l0 48c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-48L0 256c0-26.7 16.4-49.6 39.6-59.2zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xa={prefix:"fas",iconName:"plug-circle-xmark",icon:[576,512,[],"e560","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2c12.3-2.5 24.1-6.4 35.1-11.5c-2.1-10.8-3.1-21.9-3.1-33.3c0-80.3 53.8-148 127.3-169.2c.5-2.2 .7-4.5 .7-6.8c0-17.7-14.3-32-32-32L32 160zM432 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm59.3-180.7L454.6 368l36.7 36.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L432 390.6l-36.7 36.7c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L409.4 368l-36.7-36.7c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L432 345.4l36.7-36.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Va={prefix:"fas",iconName:"eraser",icon:[576,512,[],"f12d","M290.7 57.4L57.4 290.7c-25 25-25 65.5 0 90.5l80 80c12 12 28.3 18.7 45.3 18.7L288 480l9.4 0L512 480c17.7 0 32-14.3 32-32s-14.3-32-32-32l-124.1 0L518.6 285.3c25-25 25-65.5 0-90.5L381.3 57.4c-25-25-65.5-25-90.5 0zM297.4 416l-9.4 0-105.4 0-80-80L227.3 211.3 364.7 348.7 297.4 416z"]},Ga={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Za={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Ja={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm80 64c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16l-96 0z"]},Qa={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},$a={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},nr={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};export{Xa as A,Ra as B,Sa as C,Da as D,Ya as E,Aa as F,Va as a,Oa as b,Ea as c,Ga as d,Pa as e,Ha as f,ja as g,_a as h,Ca as i,Wa as j,Ia as k,za as l,Ka as m,Ma as n,Qa as o,Za as p,Fa as q,Na as r,$a as s,Ta as t,nr as u,qa as v,Ja as w,Ua as x,La as y,Ba as z}; diff --git a/packages/modules/display_themes/cards/web/assets/vendor-inkline-CPyfyZy8.js b/packages/modules/display_themes/cards/web/assets/vendor-inkline-DMzDOCDa.js similarity index 99% rename from packages/modules/display_themes/cards/web/assets/vendor-inkline-CPyfyZy8.js rename to packages/modules/display_themes/cards/web/assets/vendor-inkline-DMzDOCDa.js index e482f2e3d8..ebcb397fbe 100644 --- a/packages/modules/display_themes/cards/web/assets/vendor-inkline-CPyfyZy8.js +++ b/packages/modules/display_themes/cards/web/assets/vendor-inkline-DMzDOCDa.js @@ -1 +1 @@ -import{h as nt,w as Bt,r as zt,d as c,a as At,b as $,v as x,e as o,f,i as m,j as d,m as h,o as l,k as P,l as V,n as Y,p as A,q as y,s as I,t as E,u as Q,T as L,x as _,y as G,z,F as j,A as X,c as se,B as Vt,C as Ot,D as Lt,E as Dt,G as Nt}from"./vendor-DR1uipmZ.js";const p=(e,t)=>{const i=e.__vccOpts||e;for(const[a,s]of t)i[a]=s;return i};function g(e){let t=e.color;return t||(t=e.$inkline.options.colorMode==="system"?typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e.$inkline.options.colorMode),{[`-${t}`]:!0}}function lt(e,t){if(!e||!t)return!1;if(t.indexOf(" ")!==-1)throw new Error("Class name should not contain spaces.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function _e(e,t){if(!e)return;let i=e.className;const a=(t||"").split(" ");for(let s=0,r=a.length;s"-"+s.toLowerCase())}function rt(e,t){return["string","number"].indexOf(typeof t)>-1&&t!==""?`${He(e)}-${t}`:He(e)}function Re(e){return e.charAt(0).toUpperCase()+e.slice(1)}function U(e){if(Array.isArray(e)){const t=e.slice().map(U),i=Object.keys(t);return Object.keys(e).filter(a=>!i.includes(a)).forEach(a=>{t[a]=e[a]}),t}return typeof e=="object"?Object.keys(e).reduce((t,i)=>(t[i]=U(e[i]),t),{}):e}function Fe(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function Tt(e){if(!Fe(e))return!1;try{e.focus()}catch{}return typeof window<"u"&&document.activeElement===e}function ot(e){for(let t=0;t"u")return;if(e.currentStyle)return e.currentStyle[t];const i=window.getComputedStyle(e,null);return i.getPropertyValue?i.getPropertyValue(t):i[t]}const dt=e=>e instanceof Function,J={xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1/0]},je=["","xs","sm","md","lg","xl","xxl"],Pt={tab:["Tab",9],enter:["Enter",13],esc:["Escape",27],space:[" ","Space",32],left:["ArrowLeft","Left",37],up:["ArrowUp","Up",38],right:["ArrowRight","Right",39],down:["ArrowDown","Down",40]},Qe={pristine:!0,dirty:!1,untouched:!0,touched:!1,valid:!0,invalid:!1,errors:[]},Rt={value:"",validators:[]},ut=["value","validators","pristine","dirty","untouched","touched","valid","invalid","errors"],k=(e,t)=>{const i=t.key||t.keyIdentifier||t.keyCode;return Pt[e].indexOf(i)!==-1};function Et(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}function Mt(e,t,i){e&&t&&e.detachEvent("on"+t,i)}const T=typeof window>"u"?()=>{}:window.document.removeEventListener?Et:Mt;function _t(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}function Ft(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)}const O=typeof window>"u"?()=>{}:window.document.addEventListener?_t:Ft,ct=e=>e.map(t=>t.type==="element"?nt(t.name,t.attributes,ct(t.children)):t.value);function pt(e,t){if(!e||!t)return;const i=t.split(" ");let a=" "+e.className+" ";for(let s=0,r=i.length;si&&i[a],e)}function ne(e,t,i){return t&&t.split(".").reduce((a,s)=>(Object.keys(i).forEach(r=>{a[s][r]=i[r]}),a&&a[s]),e),Object.keys(i).forEach(a=>{e[a]=i[a]}),e}function S(e){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,9)}`}const D={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},N={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};["AU","GB","HK","IN","NZ","ZA","ZM"].forEach(e=>{D[`en-${e}`]=D["en-US"],N[`en-${e}`]=N["en-US"]}),["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"].forEach(e=>{D[`ar-${e}`]=D.ar,N[`ar-${e}`]=N.ar}),D["pt-BR"]=D["pt-PT"],N["pt-BR"]=N["pt-PT"],D["pl-Pl"]=D["pl-PL"],N["pl-Pl"]=N["pl-PL"];const Ye=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,jt={alpha:function(e,t={}){const i=t.locale||"en-US",a=s=>{let r=String(s);return t.allowDashes&&(r=r.replace(/-/g,"")),t.allowSpaces&&(r=r.replace(/ /g,"")),r};return e.constructor===Array?e.every(s=>D[i].test(a(s))):D[i].test(a(e))},alphanumeric:function(e,t={}){const i=t.locale||"en-US",a=s=>{let r=String(s);return t.allowDashes&&(r=r.replace(/-/g,"")),t.allowSpaces&&(r=r.replace(/ /g,"")),r};return e.constructor===Array?e.every(s=>N[i].test(a(s))):N[i].test(a(e))},custom:function(e,t={validator:()=>!0}){return e.constructor===Array?e.every(i=>t.validator(i)):t.validator(e)},number:function(e,t={allowNegative:!1,allowDecimal:!1}){let i="\\d+";t.allowNegative&&(i="[-]?"+i),t.allowDecimal&&(i+="([\\.\\,]\\d+)?");const a=new RegExp(`^${i}$`);return e.constructor===Array?e.every(s=>a.test(s)):a.test(e)},email:function(e){return e.constructor===Array?e.every(t=>!t||Ye.test(String(t))):!e||Ye.test(String(e))},max:function(e,t={value:0}){if(e==null)return!1;const i=a=>Number(a);return Array.isArray(e)?e.every(a=>i(a)<=t.value):i(e)<=t.value},maxLength:function(e,t={value:0}){return e!=null&&(e.constructor===Array?e.length<=t.value:typeof e=="object"?Object.keys(e).length<=t.value:String(e).length<=t.value)},min:function(e,t={value:0}){if(e==null)return!1;const i=a=>Number(a);return Array.isArray(e)?e.every(a=>i(a)>=t.value):i(e)>=t.value},minLength:function(e,t={value:0}){return e!=null&&(e.constructor===Array?e.length>=t.value:typeof e=="object"?Object.keys(e).length>=t.value:String(e).length>=t.value)},required:function(e,t={invalidateFalse:!1}){return e!=null&&(e.constructor===Array?!!e.length:typeof e=="boolean"?!t.invalidateFalse||e:!!String(e).trim().length)},sameAs:function(e,t={}){if(!t.target)return!1;const i=M(t.schema(),t.target);if(!i)throw new Error(`Could not find target with name '${t.target}' in 'sameAs' validator.`);return e===i.value}};function ht(e){const t=Object.keys(e).length===0||Array.isArray(e.validators)||e.hasOwnProperty("value")?{...Qe,...Rt}:Qe;return Object.entries(t).forEach(([i,a])=>{e.hasOwnProperty(i)||(e[i]=a)}),Object.keys(e).filter(i=>!ut.includes(i)).forEach(i=>{(typeof e[i]=="object"||Array.isArray(e[i]))&&(e[i]=ht(e[i]))}),e}const Ee={locale:"en",messages:{en:{validation:{alpha:e=>{let t;switch(!0){case(e.allowSpaces&&e.allowDashes):t="letters, spaces, and dashes";break;case e.allowSpaces:t="letters and spaces";break;case e.allowDashes:t="letters and dashes";break;default:t="letters"}return`Please enter ${t} only.`},alphanumeric:e=>{let t;switch(!0){case(e.allowSpaces&&e.allowDashes):t="letters, numbers, spaces, and dashes";break;case e.allowSpaces:t="letters, numbers, and spaces";break;case e.allowDashes:t="letters, numbers, and dashes";break;default:t="letters and numbers"}return`Please enter ${t} only.`},number:e=>{let t;switch(!0){case(e.allowNegative&&e.allowDecimal):t="positive or negative decimal numbers";break;case e.allowNegative:t="positive or negative numbers";break;case e.allowDecimal:t="decimal numbers";break;default:t="numbers"}return`Please enter ${t} only.`},email:()=>"Please enter a valid email address.",max:()=>"Please enter a maximum value of {value}.",maxLength:()=>"Please enter up to {value} characters.",min:()=>"Please enter a minimum value of {value}.",minLength:()=>"Please enter at least {value} characters.",required:()=>"Please enter a value for this field.",sameAs:()=>"Please make sure that the two values match.",custom:()=>"Please enter a correct value for this field."}}}};function Gt(e,t=""){const i=[];return e.valid=(e.validators||[]).reduce((a,s)=>{const r=typeof s=="string"?{name:s}:s,n=jt[r.name](e.value,r);if(!n){const{name:b,message:B,...F}=r,w={name:t.split(".").pop(),value:e.value,...F},xt=(B instanceof Function?B():B)||function(We,ie={}){const ae=M(Ee.messages[Ee.locale],We),Ct=dt(ae)?ae(ie):ae||We;return Object.keys(ie).reduce((St,Ue)=>St.replace(new RegExp(`{${Ue}}`,"g"),`${ie[Ue]}`),Ct)}(`validation.${b}`,w);i.push({name:b,message:xt,path:t})}return a&&n},!0),e.invalid=!e.valid,e.errors=i,e}function mt(e,t=""){return e.valid=Object.keys(e).filter(i=>!ut.includes(i)).reduce((i,a)=>(Object.keys(e[a]).length===0||e[a].validators||e[a].value?e[a]=Gt(e[a],`${t}`?`${t}.${a}`:a):e[a]=mt(e[a],`${t}`?`${t}.${a}`:a),i&&e[a].valid),!0),e.invalid=!e.valid,e}function le(e){return mt(e,"")}const Zt=Object.freeze(Object.defineProperty({__proto__:null,inkCaretDown:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"caret-down",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 11c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1z"},children:[]}]},inkCheck:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"check",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M23.625 3.5l-13.125 13.125-6.125-6.125-4.375 4.375 10.5 10.5 17.5-17.5z"},children:[]}]},inkChevronDown:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"chevron-down",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M26.297 12.625l-11.594 11.578c-0.391 0.391-1.016 0.391-1.406 0l-11.594-11.578c-0.391-0.391-0.391-1.031 0-1.422l2.594-2.578c0.391-0.391 1.016-0.391 1.406 0l8.297 8.297 8.297-8.297c0.391-0.391 1.016-0.391 1.406 0l2.594 2.578c0.391 0.391 0.391 1.031 0 1.422z"},children:[]}]},inkCircle:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"28",viewBox:"0 0 24 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"circle",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z"},children:[]}]},inkDanger:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"danger",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M14 2.625c-3.038 0-5.895 1.183-8.043 3.332s-3.332 5.005-3.332 8.043c0 3.038 1.183 5.895 3.332 8.043s5.005 3.332 8.043 3.332c3.038 0 5.895-1.183 8.043-3.332s3.332-5.005 3.332-8.043c0-3.038-1.183-5.895-3.332-8.043s-5.005-3.332-8.043-3.332zM14 0v0c7.732 0 14 6.268 14 14s-6.268 14-14 14c-7.732 0-14-6.268-14-14s6.268-14 14-14zM12.25 19.25h3.5v3.5h-3.5zM12.25 5.25h3.5v10.5h-3.5z"},children:[]}]},inkInfo:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"info",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M12.25 8.313c0-0.722 0.591-1.313 1.313-1.313h0.875c0.722 0 1.313 0.591 1.313 1.313v0.875c0 0.722-0.591 1.313-1.313 1.313h-0.875c-0.722 0-1.313-0.591-1.313-1.313v-0.875z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M17.5 21h-7v-1.75h1.75v-5.25h-1.75v-1.75h5.25v7h1.75z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M14 0c-7.732 0-14 6.268-14 14s6.268 14 14 14 14-6.268 14-14-6.268-14-14-14zM14 25.375c-6.282 0-11.375-5.093-11.375-11.375s5.093-11.375 11.375-11.375 11.375 5.093 11.375 11.375-5.093 11.375-11.375 11.375z"},children:[]}]},inkMinus:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"minus",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M0 11.375v5.25c0 0.483 0.392 0.875 0.875 0.875h26.25c0.483 0 0.875-0.392 0.875-0.875v-5.25c0-0.483-0.392-0.875-0.875-0.875h-26.25c-0.483 0-0.875 0.392-0.875 0.875z"},children:[]}]},inkPlus:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"plus",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.125 10.5h-9.625v-9.625c0-0.483-0.392-0.875-0.875-0.875h-5.25c-0.483 0-0.875 0.392-0.875 0.875v9.625h-9.625c-0.483 0-0.875 0.392-0.875 0.875v5.25c0 0.483 0.392 0.875 0.875 0.875h9.625v9.625c0 0.483 0.392 0.875 0.875 0.875h5.25c0.483 0 0.875-0.392 0.875-0.875v-9.625h9.625c0.483 0 0.875-0.392 0.875-0.875v-5.25c0-0.483-0.392-0.875-0.875-0.875z"},children:[]}]},inkSearch:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"search",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.132 23.827l-6.632-5.641c-0.686-0.617-1.419-0.9-2.011-0.873 1.566-1.834 2.511-4.213 2.511-6.813 0-5.799-4.701-10.5-10.5-10.5s-10.5 4.701-10.5 10.5 4.701 10.5 10.5 10.5c2.6 0 4.98-0.946 6.813-2.511-0.027 0.592 0.256 1.326 0.873 2.011l5.641 6.632c0.966 1.073 2.544 1.164 3.506 0.201s0.872-2.54-0.201-3.506zM10.5 17.5c-3.866 0-7-3.134-7-7s3.134-7 7-7 7 3.134 7 7-3.134 7-7 7z"},children:[]}]},inkSort:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 17c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1zM16 11c0 0.547-0.453 1-1 1h-14c-0.547 0-1-0.453-1-1 0-0.266 0.109-0.516 0.297-0.703l7-7c0.187-0.187 0.438-0.297 0.703-0.297s0.516 0.109 0.703 0.297l7 7c0.187 0.187 0.297 0.438 0.297 0.703z"},children:[]}]},inkSortAsc:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort-asc",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 11c0 0.547-0.453 1-1 1h-14c-0.547 0-1-0.453-1-1 0-0.266 0.109-0.516 0.297-0.703l7-7c0.187-0.187 0.438-0.297 0.703-0.297s0.516 0.109 0.703 0.297l7 7c0.187 0.187 0.297 0.438 0.297 0.703z"},children:[]}]},inkSortDesc:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort-desc",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 17c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1z"},children:[]}]},inkTimes:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"times",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.745 22.495c-0-0-0-0-0-0l-8.494-8.494 8.494-8.494c0-0 0-0 0-0 0.091-0.091 0.158-0.198 0.2-0.312 0.116-0.311 0.050-0.675-0.2-0.925l-4.013-4.013c-0.25-0.25-0.614-0.316-0.925-0.2-0.114 0.042-0.221 0.109-0.312 0.2 0 0-0 0-0 0l-8.494 8.494-8.494-8.494c-0-0-0-0-0-0-0.091-0.091-0.198-0.158-0.312-0.2-0.311-0.116-0.675-0.050-0.925 0.2l-4.013 4.013c-0.25 0.25-0.316 0.614-0.2 0.925 0.042 0.114 0.109 0.221 0.2 0.312 0 0 0 0 0 0l8.494 8.494-8.494 8.494c-0 0-0 0-0 0-0.091 0.091-0.157 0.198-0.2 0.312-0.116 0.311-0.050 0.675 0.2 0.925l4.013 4.013c0.25 0.25 0.614 0.316 0.925 0.2 0.114-0.042 0.221-0.109 0.312-0.2 0-0 0-0 0-0l8.494-8.494 8.494 8.494c0 0 0 0 0 0 0.092 0.091 0.198 0.158 0.312 0.2 0.311 0.116 0.675 0.050 0.925-0.2l4.013-4.013c0.25-0.25 0.316-0.614 0.2-0.925-0.042-0.114-0.109-0.221-0.2-0.312z"},children:[]}]},inkWarning:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"warning",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M14 2.537l11.733 23.385h-23.467l11.733-23.385zM14 0c-0.603 0-1.207 0.407-1.665 1.221l-11.951 23.819c-0.916 1.628-0.137 2.96 1.731 2.96h23.77c1.868 0 2.647-1.332 1.731-2.96h0l-11.951-23.819c-0.458-0.814-1.061-1.221-1.665-1.221v0z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M15.75 22.75c0 0.966-0.784 1.75-1.75 1.75s-1.75-0.784-1.75-1.75c0-0.966 0.784-1.75 1.75-1.75s1.75 0.784 1.75 1.75z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M14 19.25c-0.966 0-1.75-0.784-1.75-1.75v-5.25c0-0.966 0.784-1.75 1.75-1.75s1.75 0.784 1.75 1.75v5.25c0 0.966-0.784 1.75-1.75 1.75z"},children:[]}]}},Symbol.toStringTag,{value:"Module"})),Je="inkline-color-mode",re=e=>{let t;t=e==="system"?matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e,pt(document.body,"-light -dark"),_e(document.body,`-${t}`)},Kt={components:{},icons:{},colorMode:"system",locale:"en",validateOn:["input","blur"],color:"",size:"",routerComponent:"router-link",componentOptions:{}};function qt({icons:e,components:t,...i}){return{form:a=>ht(a),setLocale(a){(function(s){Ee.locale=s})(a)},options:zt(i)}}const W={prototype:void 0},yn={install(e,t={}){const i={...Kt,...t};for(const r in i.components)e.component(i.components[r].name,i.components[r]);if(typeof window<"u"){const r=localStorage.getItem(Je);r&&(i.colorMode=r)}const a=qt(i);W.prototype=a,e.config.globalProperties.$inkline=a,e.provide("inkline",a);const s={...Zt,...i.icons};if(e.provide("inklineIcons",s),typeof window<"u"){Bt(()=>a.options.colorMode,b=>{re(b),localStorage.setItem(Je,b)});const r=()=>{a.options.colorMode==="system"&&re(a.options.colorMode)},n=matchMedia("(prefers-color-scheme: dark)");n.addEventListener?n.addEventListener("change",r):n.addListener(r),_e(document.body,"inkline"),re(i.colorMode)}}};function u(e,t,i=""){return()=>{var a;return W.prototype?(a=W.prototype.options.componentOptions[e])!=null&&a[t]?W.prototype.options.componentOptions[e][t]:W.prototype.options[t]:i}}function v(e){return["","xs","sm","md","lg","xl","xxl"].includes(e)}const ft=c({props:{collapse:{type:[String,Boolean],default:"md"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{open:this.modelValue,windowWidth:typeof window<"u"?window.innerWidth:0}},computed:{collapsibleClasses(){return{"-open":this.open,"-collapsible":this.collapsible,[`-collapse-${this.collapse}`]:!!this.collapse}},collapsible(){return this.collapse===!0||this.collapse===!1?this.collapse:this.windowWidth<=J[this.collapse][1]}},watch:{modelValue(e){this.open=e}},created(){typeof window<"u"&&(O(window,"resize",this.onWindowResize),this.onWindowResize())},beforeUnmount(){typeof window<"u"&&T(window,"resize",this.onWindowResize)},methods:{setOpen(e){this.open=e,this.$emit("update:modelValue",this.open)},toggleOpen(){this.open=!this.open,this.$emit("update:modelValue",this.open)},onWindowResize(){if(this.collapse===!0||this.collapse===!1||typeof window>"u")return;const e=window.innerWidth;this.windowWidth<=J[this.collapse][1]&&e>J[this.collapse][1]&&this.setOpen(!1),this.windowWidth=window.innerWidth}}}),R=c({inject:{formGroup:{default:()=>({})},form:{default:()=>({})}},computed:{isDisabled(){return this.disabled||this.form.isDisabled||this.formGroup.isDisabled},isReadonly(){return this.readonly||this.form.isReadonly||this.formGroup.isReadonly},parent(){return this.formGroup.$?this.formGroup:this.form},schema(){const e=this.parent.schema||{};return this.name!==""?M(e,`${this.name}`):e}}}),Z=c({props:{tag:{type:String,default:"a"}},computed:{isTag(){return this.$attrs.to?this.routerComponent:this.$attrs.href?"a":this.tag},isComponent(){return this.isTag===this.routerComponent},routerComponent(){return this.$inkline.options.routerComponent}}}),Wt=e=>({name:"offset",options:{offset:[0,e]}}),bt=({offset:e})=>[Wt(e),{name:"arrow",options:{padding:6}},{name:"preventOverflow",options:{padding:8}},{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}],ee=c({props:{placement:{type:String,default:"auto"},offset:{type:Number,default:6},popperOptions:{type:Object,default:()=>({})}},data:()=>({popperInstance:void 0}),watch:{placement(e){this.popperInstance&&this.popperInstance.setOptions({placement:e})}},beforeUnmount(){this.destroyPopper()},methods:{createPopper(){if(typeof window>"u")return;const e=bt({offset:this.offset});this.popperInstance=At(this.$refs.wrapper,this.$refs.popup,{strategy:"fixed",placement:this.placement,modifiers:e,...this.popperOptions})},destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}}}),Ge=c({props:{disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:void 0},trigger:{type:Array,default:()=>["hover","click","focus"]},interactable:{type:Boolean,default:!0},hoverHideDelay:{type:Number,default:300}},emits:["update:modelValue","click-outside"],data(){return{visible:this.modelValue,triggerStack:0,hoverHideTransition:!1}},watch:{modelValue(e){e?this.show():this.hide()}},mounted(){if(!this.$slots.default)throw new Error("Popup components require one child element to be used as trigger.");this.addEventListeners()},beforeUnmount(){this.removeEventListeners()},methods:{show(){this.disabled||this.visible||(this.triggerStack+=1,this.visible=!0,this.createPopper(),this.$emit("update:modelValue",!0))},hide(){!this.disabled&&this.visible&&(this.triggerStack-=1,this.triggerStack<=0&&(this.triggerStack=0,this.visible=!1,this.$emit("update:modelValue",!1)))},hoverShow(){this.hoverHideTransition=!1,this.show()},hoverHide(){this.hoverHideTransition=!0,setTimeout(()=>{this.hoverHideTransition&&this.hide()},this.hoverHideDelay)},onClick(){this.visible?this.hide():this.show()},onClickOutside(e){this.visible&&this.$emit("click-outside",e),this.modelValue||this.hide()},addEventListeners(){[].concat(this.trigger).forEach(e=>{switch(e){case"hover":O(this.$refs.trigger,"mouseenter",this.interactable?this.hoverShow:this.show),O(this.$refs.trigger,"mouseleave",this.interactable?this.hoverHide:this.hide),this.interactable&&(O(this.$refs.popup,"mouseenter",this.hoverShow),O(this.$refs.popup,"mouseleave",this.hoverHide));break;case"click":O(this.$refs.trigger,"click",this.onClick);break;case"focus":for(const t of this.$refs.trigger.children)O(t,"focus",this.show),O(t,"blur",this.hide)}})},removeEventListeners(){[].concat(this.trigger).forEach(e=>{switch(e){case"hover":T(this.$refs.trigger,"mouseenter",this.interactable?this.hoverShow:this.show),T(this.$refs.trigger,"mouseleave",this.interactable?this.hoverHide:this.hide),this.interactable&&(T(this.$refs.popup,"mouseenter",this.hoverShow),T(this.$refs.popup,"mouseleave",this.hoverHide));break;case"click":T(this.$refs.trigger,"click",this.onClick);break;case"focus":for(const t of this.$refs.trigger.children)T(t,"focus",this.show),T(t,"blur",this.hide)}})},focusTrigger(){for(const e of this.$refs.trigger.children)if(ot(e)){e.focus();break}}}}),oe="IAlert",Ut=c({name:oe,inheritAttrs:!1,props:{size:{type:String,default:u(oe,"size"),validator:v},color:{type:String,default:u(oe,"color")},modelValue:{type:Boolean,default:!0},dismissible:{type:Boolean,default:!1},dismissAriaLabel:{type:String,default:"Dismiss"}},emits:["update:modelValue"],data:()=>({dismissed:!1}),computed:{classes(){return{[`-${this.color}`]:!!this.color,[`-${this.size}`]:!!this.size,"-dismissible":this.dismissible,"-with-icon":!!this.$slots.icon}}},watch:{modelValue(e){this.dismissed=!e}},methods:{dismiss(){this.dismissed=!0,this.$emit("update:modelValue",!1)}}}),Ht={key:0,class:"icon",role:"img","aria-hidden":"true"},Qt={class:"content"},Yt=["aria-label"],Jt=p(Ut,[["render",function(e,t,i,a,s,r){return $((l(),o("div",h({class:["alert",e.classes],role:"alert"},e.$attrs),[e.$slots.icon?(l(),o("span",Ht,[d(e.$slots,"icon")])):f("",!0),m("div",Qt,[d(e.$slots,"default")]),e.dismissible?(l(),o("span",{key:1,class:"dismiss",role:"button","aria-label":e.dismissAriaLabel,onClick:t[0]||(t[0]=(...n)=>e.dismiss&&e.dismiss(...n))},[d(e.$slots,"dismiss",{},()=>[t[1]||(t[1]=P("×"))])],8,Yt)):f("",!0)],16)),[[x,!e.dismissed]])}]]),de="IBadge",Xt=p(c({name:de,inheritAttrs:!1,props:{color:{type:String,default:u(de,"color")},size:{type:String,default:u(de,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["badge",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),ue="IBreadcrumb",ei=c({name:ue,inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Breadcrumbs"},color:{type:String,default:u(ue,"color")},size:{type:String,default:u(ue,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),ti=["aria-label"],ii=p(ei,[["render",function(e,t,i,a,s,r){return l(),o("nav",h({class:["breadcrumb",e.classes],"aria-label":e.ariaLabel},e.$attrs),[m("ol",null,[d(e.$slots,"default")])],16,ti)}]]),ai=c({name:"IBreadcrumbItem",mixins:[Z],inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},tabindex:{type:[Number,String],default:0}},computed:{classes(){return{"-active":this.active,"-disabled":this.disabled}},tabIndex(){return this.disabled||this.active?-1:this.tabindex}}}),si=["is","href","to","tabindex","aria-current"],ni=p(ai,[["render",function(e,t,i,a,s,r){return l(),o("li",h({class:["breadcrumb-item",e.classes]},e.$attrs),[m("a",{is:e.isTag,href:e.href,to:e.to,tabindex:e.tabIndex,"aria-current":e.active?"location":null},[d(e.$slots,"default",{},void 0,!0)],8,si)],16)}],["__scopeId","data-v-28fa6b16"]]),ce="ILoader",li=c({name:ce,inheritAttrs:!1,props:{color:{type:String,default:u(ce,"color")},size:{type:String,default:u(ce,"size")}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),ri={key:0,class:"loader-text"},yt=p(li,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["loader",e.classes],role:"img","aria-hidden":"true"}),[e.$slots.default?(l(),o("span",ri,[d(e.$slots,"default")])):f("",!0),t[0]||(t[0]=m("svg",{viewBox:"25 25 50 50"},[m("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1))],16)}]]),pe="IButton",vt=p(c({name:pe,components:{ILoader:yt},mixins:[Z],inject:{buttonGroup:{default:()=>({})},form:{default:()=>({})},formGroup:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},block:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},color:{type:String,default:u(pe,"color")},disabled:{type:Boolean,default:!1},link:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},tag:{type:String,default:"button"},tabindex:{type:[Number,String],default:0},size:{type:String,default:u(pe,"size"),validator:v}},computed:{ariaBusy(){return this.role!=="button"?null:this.loading?"true":"false"},ariaDisabled(){return this.role!=="button"?null:this.disabled?"true":"false"},ariaPressed(){return this.role!=="button"?null:this.active?"true":"false"},classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-active":this.active,"-block":this.block,"-circle":this.circle,"-disabled":this.isDisabled,"-link":this.link,"-outline":this.outline}},isDisabled(){return this.disabled||this.buttonGroup.disabled||this.form.disabled||this.formGroup.disabled},role(){return this.$attrs.to||this.$attrs.href?"link":"button"},tabIndex(){return this.isDisabled?-1:this.tabindex}}}),[["render",function(e,t,i,a,s,r){const n=A("i-loader");return l(),V(Y(e.isTag),h(e.$attrs,{class:["button",e.classes],tag:e.tag,role:e.role,tabindex:e.tabIndex,disabled:e.isDisabled||e.loading,"aria-disabled":e.ariaDisabled,"aria-pressed":e.ariaPressed,"aria-busy":e.ariaBusy,"aria-live":"polite"}),{default:y(()=>[e.loading?d(e.$slots,"loading",{key:0},()=>[I(n)]):f("",!0),e.loading?f("",!0):d(e.$slots,"default",{key:1})]),_:3},16,["tag","role","tabindex","class","disabled","aria-disabled","aria-pressed","aria-busy"])}]]),oi=c({name:"IButtonGroup",inject:{form:{default:()=>({})},buttonGroup:{default:()=>({})},formGroup:{default:()=>({})}},provide(){return{buttonGroup:this}},inheritAttrs:!1,props:{vertical:{type:Boolean,default:!1},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes(){return{"-vertical":this.vertical,"-block":this.block,"-disabled":this.isDisabled}},isDisabled(){return this.disabled||this.buttonGroup.disabled||this.form.disabled||this.formGroup.disabled}}}),di=["aria-disabled"],ui=p(oi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["button-group",e.classes],role:"group","aria-disabled":e.isDisabled},e.$attrs),[d(e.$slots,"default")],16,di)}]]),H={};for(const e of je){e!==""&&(H[e]={type:[String,Boolean,Number],default:!1});for(const t of["first","last"])H[`${t}${Re(e)}`]={type:Boolean,default:!1};for(const t of["offset","push","pull"])H[`${t}${Re(e)}`]={type:[String,Number],default:""}}const Ze=p(c({name:"IColumn",inheritAttrs:!1,props:H,computed:{classes(){return Object.keys(H).reduce((e,t)=>(this[t]&&(e[rt(`-${t}`,this[t])]=!0),e),{})}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["column",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),Ke=p(c({name:"IContainer",inheritAttrs:!1,props:{fluid:{type:Boolean,default:!1}},computed:{classes(){return{"-fluid":this.fluid}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["container",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),he="ICard",ci=c({name:he,inheritAttrs:!1,props:{color:{type:String,default:u(he,"color")},size:{type:String,default:u(he,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),pi={key:0,class:"card-header"},hi={key:1,class:"card-body"},mi={key:2,class:"card-footer"},fi=p(ci,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["card",e.classes]},e.$attrs),[e.$slots.header?(l(),o("header",pi,[d(e.$slots,"header")])):f("",!0),d(e.$slots,"image"),e.$slots.default?(l(),o("div",hi,[d(e.$slots,"default")])):f("",!0),e.$slots.footer?(l(),o("footer",mi,[d(e.$slots,"footer")])):f("",!0)],16)}]]),me="ICheckbox",bi=c({name:me,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(me,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:!1},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("checkbox")},native:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(me,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-native":this.native}},checked(){return this.formGroup.checked?this.formGroup.checked.includes(this.value):this.schema?this.schema.value:this.modelValue},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i,a,s;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),(s=(a=this.formGroup).onChange)==null||s.call(a,this.value),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),yi=["aria-checked"],vi=["checked","name","disabled","readonly",".indeterminate"],gi=["aria-checked","aria-disabled","aria-readonly","tabindex"],ki=p(bi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["checkbox",e.classes],"aria-checked":e.checked?"true":"false",role:"checkbox"},e.$attrs),[m("input",{ref:"input",type:"checkbox",checked:e.checked,tabindex:"-1",name:e.name,disabled:e.isDisabled,readonly:e.isReadonly,".indeterminate":e.indeterminate,"aria-hidden":"true",onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,vi),m("label",{class:"checkbox-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n)),onClick:t[2]||(t[2]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,gi)],16,yi)}]]),fe="ICheckboxGroup",$i=c({name:fe,mixins:[R],provide(){return{formGroup:this}},inheritAttrs:!1,props:{color:{type:String,default:u(fe,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},modelValue:{default:()=>[]},name:{type:[String,Number],default:()=>S("checkbox-group")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(fe,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},checked(){return this.schema?this.schema.value:this.modelValue}},methods:{onChange(e){var a,s;const t=[...this.modelValue],i=t.findIndex(r=>r===e);i!==-1?t.splice(i,1):t.push(e),(s=(a=this.parent).onInput)==null||s.call(a,this.name,t),this.$emit("update:modelValue",t)}}}),wi=["name"],Ii=p($i,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["form-group checkbox-group",e.classes],name:e.name,role:"checkboxgroup"},e.$attrs),[d(e.$slots,"default",{},void 0,!0)],16,wi)}],["__scopeId","data-v-4043b2ce"]]),be="ICollapsible",xi=c({name:be,provide(){return{collapsible:this}},inheritAttrs:!1,props:{accordion:{type:Boolean,default:!1},color:{type:String,default:u(be,"color")},size:{type:String,default:u(be,"size"),validator:v},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],data(){return{activeItems:[].concat(this.modelValue)}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},watch:{modelValue(e){this.activeItems=[].concat(e)}},methods:{onItemClick(e){if(this.accordion)return this.activeItems=this.activeItems.indexOf(e.name)>-1?[]:[e.name],this.activeItems;const t=this.activeItems.indexOf(e.name);t>-1?this.activeItems.splice(t,1):this.activeItems.push(e.name),this.$emit("update:modelValue",this.activeItems)}}}),Ci=p(xi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["collapsible",e.classes],role:"tablist","aria-multiselectable":"true"},e.$attrs),[d(e.$slots,"default")],16)}]]),gt=p(c({name:"IExpandTransition",methods:{onEnter(e){const t=q(e,"width");e.style.width=t,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto";const i=q(e,"height");e.style.width=null,e.style.position=null,e.style.visibility=null,e.style.height=0,q(e,"height"),setTimeout(()=>{e.style.height=i})},onAfterEnter(e){e.style.height="auto"},onLeave(e){e.style.height=q(e,"height"),q(e,"height"),setTimeout(()=>{e.style.height=0})}}}),[["render",function(e,t,i,a,s,r){return l(),V(L,{name:"expand",onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onLeave:e.onLeave},{default:y(()=>[d(e.$slots,"default",{},void 0,!0)]),_:3},8,["onEnter","onAfterEnter","onLeave"])}],["__scopeId","data-v-1e395af5"]]),Si=c({name:"ICollapsibleItem",components:{IExpandTransition:gt},inject:{collapsible:{default:()=>({activeItems:[]})}},inheritAttrs:!1,props:{name:{type:String,default:()=>S("collapsible-item")},title:{type:String,default:""}},computed:{active(){return this.collapsible.activeItems.indexOf(this.name)>-1},classes(){return{"-active":this.active}}},methods:{onClick(){this.collapsible.onItemClick(this)}}}),Bi=["name"],zi=["id","aria-expanded","aria-controls","aria-describedby"],Ai=["id","aria-hidden","aria-labelledby"],Vi={class:"content"},Oi=p(Si,[["render",function(e,t,i,a,s,r){const n=A("i-expand-transition");return l(),o("div",h({class:["collapsible-item",e.classes],name:e.name},e.$attrs),[m("a",{class:"collapsible-header",role:"tab",id:`collapsible-item-heading-${e.name}`,"aria-expanded":e.active?"true":"false","aria-controls":`collapsible-item-content-${e.name}`,"aria-describedby":`collapsible-item-content-${e.name}`,tabindex:"0",onClick:t[0]||(t[0]=(...b)=>e.onClick&&e.onClick(...b)),onKeydown:[t[1]||(t[1]=E(Q((...b)=>e.onClick&&e.onClick(...b),["prevent"]),["space"])),t[2]||(t[2]=E(Q((...b)=>e.onClick&&e.onClick(...b),["prevent"]),["enter"]))]},[d(e.$slots,"header",{},()=>[P(_(e.title),1)]),t[3]||(t[3]=m("i",{class:"icon"},null,-1))],40,zi),I(n,null,{default:y(()=>[$(m("div",{class:"collapsible-body",role:"tabpanel",id:`collapsible-item-content-${e.name}`,"aria-hidden":e.active?"false":"true","aria-labelledby":`collapsible-item-heading-${e.name}`},[m("div",Vi,[d(e.$slots,"default")])],8,Ai),[[x,e.active]])]),_:3})],16,Bi)}]]),Li=(e,t)=>i=>{(function(a){return!!a&&!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)})(e)&&i.target&&(e===i.target||e.contains(i.target)||t.value(i))},K={beforeMount(e,t){typeof window<"u"&&O(window.document,"mousedown",Li(e,t))}},ye="IDropdown",Di=c({name:ye,directives:{ClickOutside:K},mixins:[ee,Ge],provide(){return{dropdown:this}},inject:{navbar:{default:()=>({onItemClick:()=>{}})},sidebar:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{animationDuration:{type:Number,default:300},color:{type:String,default:u(ye,"color")},disabled:{type:Boolean,default:!1},hideOnItemClick:{type:Boolean,default:!0},keydownTrigger:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},keydownItem:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},modelValue:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom"},trigger:{type:[String,Array],default:()=>["click"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!0},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(ye,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},mounted(){for(const e of this.$refs.trigger.children)O(e,"keydown",this.onTriggerKeyDown);O(this.$refs.popup,"keydown",this.onItemKeyDown)},beforeUnmount(){for(const e of this.$refs.trigger.children)T(e,"keydown",this.onTriggerKeyDown);T(this.$refs.popup,"keydown",this.onItemKeyDown)},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)},getFocusableItems(){const e=[];for(const t of this.$refs.body.children)Fe(t)&&e.push(t);return e},onTriggerKeyDown(e){if(this.keydownTrigger.length===0)return;const t=this.getFocusableItems(),i=t.findIndex(s=>s.active),a=t[i>-1?i:0];switch(!0){case(k("up",e)&&this.keydownTrigger.includes("up")):case(k("down",e)&&this.keydownTrigger.includes("down")):this.show(),setTimeout(()=>{a.focus()},this.visible?0:this.animationDuration),e.preventDefault(),e.stopPropagation();break;case(k("enter",e)&&this.keydownTrigger.includes("enter")):case(k("space",e)&&this.keydownTrigger.includes("space")):this.onClick(),this.visible||setTimeout(()=>{a.focus()},this.animationDuration),e.preventDefault();break;case(k("tab",e)&&this.keydownTrigger.includes("tab")):case(k("esc",e)&&this.keydownTrigger.includes("esc")):this.hide()}},onItemKeyDown(e){if(this.keydownItem.length!==0)switch(!0){case(k("up",e)&&this.keydownItem.includes("up")):case(k("down",e)&&this.keydownItem.includes("down")):const t=this.getFocusableItems(),i=t.findIndex(r=>r===e.target),a=t.length-1;let s;s=k("up",e)?i>0?i-1:0:i{e.onItemClick()})}}}),Ni={class:"dropdown-trigger",ref:"trigger"},Ti=["aria-hidden"],Pi={key:0,"data-popper-arrow":""},Ri={key:1,class:"dropdown-header"},Ei={key:2,class:"dropdown-body",ref:"body"},Mi={key:3,class:"dropdown-footer"},_i=p(Di,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h({class:"dropdown-wrapper",ref:"wrapper","aria-haspopup":"true",onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))},e.$attrs),[m("div",Ni,[d(e.$slots,"default")],512),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:z(["dropdown",e.classes]),role:"menu",ref:"popup","aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",Pi)):f("",!0),e.$slots.header?(l(),o("div",Ri,[d(e.$slots,"header")])):f("",!0),e.$slots.body?(l(),o("div",Ei,[d(e.$slots,"body")],512)):f("",!0),e.$slots.footer?(l(),o("div",Mi,[d(e.$slots,"footer")])):f("",!0)],10,Ti),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16)),[[n,e.onClickOutside]])}]]),Fi=p(c({name:"IDropdownDivider",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:"dropdown-divider",role:"separator"},e.$attrs),null,16)}]]),ji=p(c({name:"IDropdownItem",mixins:[Z],inject:{dropdown:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{classes(){return{"-active":this.active,"-disabled":this.disabled,"-plaintext":this.plaintext}},role(){return this.$attrs.to||this.$attrs.href?"link":"menuitem"},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(e){var t,i;(i=(t=this.dropdown).onItemClick)==null||i.call(t,this,e)}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["dropdown-item",e.classes],role:e.role,tag:e.tag,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.disabled,"aria-pressed":e.active,onClick:e.onClick}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["class","role","tag","tabindex","disabled","aria-disabled","aria-pressed","onClick"])}]]),Xe="IForm",Gi=c({name:Xe,mixins:[R],provide(){return{form:this}},inheritAttrs:!1,props:{color:{type:String,default:""},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:()=>S("form")},modelValue:{type:Object,default:()=>null},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Xe,"size"),validator:v}},emits:["update:modelValue","submit"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},schema(){return this.modelValue?this.modelValue:M(this.formGroup.schema||this.form.schema||{},this.name)}},methods:{onBlur(e,t){var i,a;if((a=(i=this.parent).onBlur)==null||a.call(i,this.name?`${this.name}.${e}`:e,t),this.modelValue){let s=U(this.modelValue);s=ne(s,e,{untouched:!1,touched:!0}),this.shouldValidate(e,"blur")&&(s=le(s)),this.$emit("update:modelValue",s)}},onInput(e,t){var i,a;if((a=(i=this.parent).onInput)==null||a.call(i,this.name?`${this.name}.${e}`:e,t),this.modelValue){let s=U(this.modelValue);s=function(r,n,b,B){return M(r,n)[b]=B,r}(s,e,"value",t),s=ne(s,e,{pristine:!1,dirty:!0}),this.shouldValidate(e,"input")&&(s=le(s)),this.$emit("update:modelValue",s)}},onSubmit(e){if(e.preventDefault(),this.modelValue){let t=U(this.modelValue);if(t=ne(le(t),"",{untouched:!1,touched:!0}),this.$emit("update:modelValue",t),t.invalid)return}this.$emit("submit",e)},shouldValidate(e,t){const i=M(this.modelValue,e);return(i.validateOn?[].concat(i.validateOn):this.$inkline.options.validateOn).includes(t)}}}),Zi=["name","readonly","disabled"],Ki=p(Gi,[["render",function(e,t,i,a,s,r){return l(),o("form",h(e.$attrs,{class:["form",e.classes],role:"form",name:e.name,readonly:e.isReadonly,disabled:e.isDisabled,onSubmit:t[0]||(t[0]=(...n)=>e.onSubmit&&e.onSubmit(...n))}),[d(e.$slots,"default",{},void 0,!0)],16,Zi)}],["__scopeId","data-v-575ccba7"]]),ve="IFormGroup",qi=c({name:ve,mixins:[R],provide(){return{formGroup:this}},props:{color:{type:String,default:u(ve,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{type:String,default:u(ve,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline,"-required":this.required}}},methods:{onBlur(e,t){var i,a;(a=(i=this.parent)==null?void 0:i.onBlur)==null||a.call(i,this.name?`${this.name}.${e}`:e,t)},onInput(e,t){var i,a;(a=(i=this.parent)==null?void 0:i.onInput)==null||a.call(i,this.name?`${this.name}.${e}`:e,t)}}}),Wi=["name"],Ui=p(qi,[["render",function(e,t,i,a,s,r){return l(),o("fieldset",{class:z(["form-group",e.classes]),name:e.name,role:"group"},[d(e.$slots,"default")],10,Wi)}]]),Hi=c({name:"IFormError",inject:{formGroup:{default:()=>({})},form:{default:()=>({})}},props:{for:{type:String,default:""},visible:{type:[Array,String],default:()=>["touched","dirty","invalid"]}},computed:{parent(){return this.formGroup.$?this.formGroup:this.form},schema(){return this.for!==""?M(this.parent.schema||{},`${this.for}`):this.parent.schema||{}},errors(){return this.schema.errors||[]},isVisible(){let e=!0;return this.schema&&this.visible&&[].concat(this.visible).forEach(t=>{e=e&&this.schema[t]}),e}}}),Qi={key:0,class:"form-error","aria-live":"polite"},Yi=p(Hi,[["render",function(e,t,i,a,s,r){return e.schema?$((l(),V(L,{key:0,name:"fade-in-transition"},{default:y(()=>[e.errors.length>0?(l(),o("ul",Qi,[(l(!0),o(j,null,X(e.errors,n=>(l(),o("li",null,_(n.message),1))),256))])):f("",!0)]),_:1},512)),[[x,e.isVisible]]):f("",!0)}]]),et="IFormLabel",Ji=c({name:et,mixins:[R],props:{for:{type:String,default:""},placement:{type:String,default:""},size:{type:String,default:u(et,"size"),validator:v}},computed:{classes(){return{[`-${this.size}`]:!!this.size,[`-${this.placement}`]:!!this.placement}},forAttr(){return this.for}},methods:{getNextSibling(){return this.$el.nextSibling.querySelector("input, textarea")},onClick(){var e;this.for||((e=this.getNextSibling())==null||e.focus())}}}),Xi=["for"],ea=p(Ji,[["render",function(e,t,i,a,s,r){return l(),o("label",h(e.$attrs,{class:["form-label",e.classes],for:e.forAttr,onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),[d(e.$slots,"default")],16,Xi)}]]),tt="IHamburgerMenu",kt=p(c({name:tt,inheritAttrs:!1,props:{animation:{type:String,default:"close"},color:{type:String,default:u(tt,"color")},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{classes(){return{...g(this),"-active":this.modelValue,[`-${this.animation}`]:!0}}},methods:{onClick(){this.$emit("update:modelValue",!this.modelValue)}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["hamburger-menu",e.classes],onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),t[1]||(t[1]=[m("span",{class:"hamburger-menu-bars"},null,-1)]),16)}]]),Me={};for(const e of je)for(const t of["start","center","end","top","middle","bottom","around","between","reverse"])Me[`${t}${Re(e)}`]={type:Boolean,default:!1};const qe=p(c({name:"IRow",inheritAttrs:!1,props:{noGutter:{type:Boolean,default:!1},noCollapse:{type:Boolean,default:!1},...Me},computed:{classes(){const e=Object.keys(Me).reduce((t,i)=>(this[i]&&(t[rt(`-${i}`,this[i])]=!0),t),{});return{"-no-gutter":this.noGutter,"-no-collapse":this.noCollapse,...e}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["row",e.classes]}),[d(e.$slots,"default")],16)}]]),ge="IHeader",ta=p(c({name:ge,components:{IContainer:Ke,IRow:qe,IColumn:Ze},inheritAttrs:!1,props:{color:{type:String,default:u(ge,"color")},cover:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},size:{type:String,default:u(ge,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-cover":this.cover,"-fullscreen":this.fullscreen}}}}),[["render",function(e,t,i,a,s,r){const n=A("i-column"),b=A("i-row"),B=A("i-container");return l(),o("header",h(e.$attrs,{class:["header",e.classes]}),[I(B,{fluid:e.fluid},{default:y(()=>[I(b,null,{default:y(()=>[I(n,null,{default:y(()=>[d(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["fluid"])],16)}]]),it="IIcon",$t=p(c({name:it,inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:String,default:u(it,"size"),validator:v}},setup(e){const t=Vt("inklineIcons"),i=se(()=>function(r,n="dash"){const b=n==="dash"?/-([a-z0-9])/g:/_([a-z0-9])/g;return r.replace(b,(B,F)=>F.toUpperCase())}(e.name)),a=se(()=>t[i.value]),s=se(()=>({"inkline-icon":!0,[`-${e.size}`]:!!e.size}));return Ot(()=>{i.value&&t[i.value]}),()=>{var r,n;return nt("svg",{class:s.value,...(r=a.value)==null?void 0:r.attributes},ct(((n=a.value)==null?void 0:n.children)||[]))}}}),[["render",function(e,t,i,a,s,r){const n=A("icon");return l(),V(n,h(e.$attrs,{size:e.size}),null,16,["size"])}]]),ke="IInput",ia=c({name:ke,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(ke,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:[Array,Boolean],default:()=>["touched","dirty","invalid"]},id:{type:String,default:void 0},modelValue:{type:[String,Number],default:""},name:{type:[String,Number],default:()=>S("input")},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(ke,"size"),validator:v},tabindex:{type:[Number,String],default:0},type:{type:String,default:"text"},clearAriaLabel:{type:String,default:"Clear"}},emits:["update:modelValue","clear"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-error":this.hasError,"-readonly":this.isReadonly,"-prefixed":!!this.$slots.prefix,"-suffixed":!!this.$slots.suffix,"-prepended":!!this.$slots.prepend,"-appended":!!this.$slots.append}},hasError(){if(typeof this.error=="boolean")return this.error;if(this.schema&&this.error){let e=!0;return[].concat(this.error).forEach(t=>{e=e&&this.schema[t]}),e}return!1},tabIndex(){return this.isDisabled?-1:this.tabindex},isClearable(){return this.clearable&&!this.isDisabled&&!this.isReadonly&&this.value!==""},value(){return this.schema?this.schema.value:this.modelValue}},methods:{onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)},onInput(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.value),this.$emit("update:modelValue",e.target.value)},onClear(e){this.$emit("update:modelValue",""),this.$emit("clear",e)},focus(){this.$refs.input.focus()}}}),aa={key:0,class:"input-prepend"},sa={class:"input"},na={key:0,class:"input-prefix"},la=["value","name","id","type","tabindex","disabled","aria-disabled","readonly","aria-readonly"],ra={key:1,class:"input-suffix"},oa=["aria-label","aria-hidden"],da={key:1,class:"input-append"},te=p(ia,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["input-wrapper",e.classes])},[e.$slots.prepend?(l(),o("div",aa,[d(e.$slots,"prepend")])):f("",!0),m("div",sa,[e.$slots.prefix?(l(),o("span",na,[d(e.$slots,"prefix")])):f("",!0),m("input",h(e.$attrs,{value:e.value,ref:"input",name:e.name,id:e.id,type:e.type,tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly||e.plaintext,"aria-readonly":!(!e.isReadonly&&!e.plaintext)&&"true",onInput:t[0]||(t[0]=(...n)=>e.onInput&&e.onInput(...n)),onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n))}),null,16,la),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",ra,[d(e.$slots,"clearable",{clear:e.onClear},()=>[e.clearable?$((l(),o("i",{key:0,class:"input-clear",role:"button","aria-label":e.clearAriaLabel,"aria-hidden":e.isClearable?"false":"true",onClick:t[2]||(t[2]=(...n)=>e.onClear&&e.onClear(...n))},null,8,oa)),[[x,e.isClearable]]):f("",!0)]),d(e.$slots,"suffix")])):f("",!0)]),e.$slots.append?(l(),o("div",da,[d(e.$slots,"append")])):f("",!0)],2)}]]),$e="INumberInput",ua=c({name:$e,components:{IButton:vt},extends:te,inheritAttrs:!1,props:{color:{type:String,default:u($e,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:""},modelValue:{type:[String,Number],default:""},name:{type:[String,Number],default:()=>S("input")},readonly:{type:Boolean,default:!1},size:{type:String,default:u($e,"size"),validator:v},tabindex:{type:[Number,String],default:0},min:{type:[Number,String],default:-1/0},max:{type:[Number,String],default:1/0},precision:{type:Number,default:0},step:{type:Number,default:1}},emits:["update:modelValue"],watch:{modelValue:{immediate:!0,handler(e){var i,a;let t=(e||"").toString().replace(/^[^0-9-]/,"").replace(/^(-)[^0-9]/,"$1").replace(new RegExp(`^(-?[0-9]+)[^0-9${this.precision>0?".":""}]`),"$1");this.precision>0&&(t=t.replace(/^(-?[0-9]+\.)[^0-9]/,"$1").replace(new RegExp(`^(-?[0-9]+\\.[0-9]{0,${this.precision}}).*`),"$1")),parseFloat(t)>=parseFloat(this.max)&&(t=this.max.toString()),parseFloat(t)<=parseFloat(this.min)&&(t=this.min.toString()),(a=(i=this.parent).onInput)==null||a.call(i,this.name,t),this.$emit("update:modelValue",t)}}},methods:{decrease(){this.$emit("update:modelValue",this.formatPrecision((Number(this.modelValue)-this.step).toString()))},increase(){this.$emit("update:modelValue",this.formatPrecision((Number(this.modelValue)+this.step).toString()))},formatPrecision(e){const t=e.split(".");let i=t[1]||"";for(let a=i.length;a0?`${t[0]}.${i}`:t[0]},onBlurFormatPrecision(e){var t,i;this.$emit("update:modelValue",this.formatPrecision(Number(this.modelValue).toString())),(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),ca={class:"input-prepend"},pa={class:"input"},ha={key:0,class:"input-prefix"},ma=["value","name","id","tabindex","disabled","aria-disabled","readonly","aria-readonly"],fa={key:1,class:"input-suffix"},ba=["aria-label","aria-hidden"],ya={class:"input-append"},va=p(ua,[["render",function(e,t,i,a,s,r){const n=A("i-button");return l(),o("div",{class:z(["input-wrapper -prepended -appended",e.classes])},[m("div",ca,[d(e.$slots,"prepend"),I(n,{type:"button",color:e.color,size:e.size,disabled:e.disabled,class:"input-button-decrease",onClick:e.decrease},{default:y(()=>t[3]||(t[3]=[P(" - ")])),_:1},8,["color","size","disabled","onClick"])]),m("div",pa,[e.$slots.prefix?(l(),o("span",ha,[d(e.$slots,"prefix")])):f("",!0),m("input",h(e.$attrs,{value:e.value,ref:"input",name:e.name,id:e.id,type:"text",tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly,"aria-readonly":!!e.isReadonly&&"true",onInput:t[0]||(t[0]=(...b)=>e.onInput&&e.onInput(...b)),onBlur:t[1]||(t[1]=(...b)=>e.onBlur&&e.onBlur(...b))}),null,16,ma),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",fa,[d(e.$slots,"clearable",{clear:e.onClear},()=>[e.clearable?$((l(),o("i",{key:0,class:"input-clear",role:"button","aria-label":e.clearAriaLabel,"aria-hidden":e.isClearable?"false":"true",onClick:t[2]||(t[2]=(...b)=>e.onClear&&e.onClear(...b))},null,8,ba)),[[x,e.isClearable]]):f("",!0)]),d(e.$slots,"suffix")])):f("",!0)]),m("div",ya,[I(n,{type:"button",color:e.color,size:e.size,disabled:e.disabled,class:"input-button-increase",onClick:e.increase},{default:y(()=>t[4]||(t[4]=[P(" + ")])),_:1},8,["color","size","disabled","onClick"]),d(e.$slots,"append")])],2)}]]),we="ITextarea",ga=c({name:we,extends:te,inheritAttrs:!1,props:{color:{type:String,default:u(we,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:""},modelValue:{type:String,default:""},name:{type:[String,Number],default:()=>S("textarea")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(we,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"]}),ka={key:0,class:"input-prepend"},$a={class:"input"},wa={key:0,class:"input-prefix"},Ia=["value","name","id","tabindex","disabled","aria-disabled","readonly","aria-readonly"],xa={key:1,class:"input-suffix"},Ca={key:1,class:"input-append"},Sa=p(ga,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["input-wrapper",e.classes])},[e.$slots.prepend?(l(),o("div",ka,[d(e.$slots,"prepend")])):f("",!0),m("div",$a,[e.$slots.prefix?(l(),o("span",wa,[d(e.$slots,"prefix")])):f("",!0),m("textarea",h(e.$attrs,{value:e.value,ref:"input",role:"textbox",name:e.name,id:e.id,tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly,"aria-readonly":!!e.isReadonly&&"true","aria-multiline":"true",onInput:t[0]||(t[0]=(...n)=>e.onInput&&e.onInput(...n)),onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n))}),null,16,Ia),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",xa,[d(e.$slots,"clearable",{clear:e.onClear},()=>[$(m("i",{class:"input-clear","aria-label":"Clear",onClick:t[2]||(t[2]=(...n)=>e.onClear&&e.onClear(...n))},null,512),[[x,e.isClearable]])]),d(e.$slots,"suffix")])):f("",!0)]),e.$slots.append?(l(),o("div",Ca,[d(e.$slots,"append")])):f("",!0)],2)}]]),Ba=p(c({name:"ILayout",inheritAttrs:!1,props:{vertical:{type:Boolean,default:!1}},computed:{classes(){return{"-vertical":this.vertical}}}}),[["render",function(e,t,i,a,s,r){return l(),o("main",h(e.$attrs,{class:["layout",e.classes]}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-9a9f03c1"]]),za=c({name:"ILayoutAside",inheritAttrs:!1}),Aa={class:"layout-aside-children"},Va=p(za,[["render",function(e,t,i,a,s,r){return l(),o("aside",h(e.$attrs,{class:"layout-aside"}),[m("div",Aa,[d(e.$slots,"default",{},void 0,!0)])],16)}],["__scopeId","data-v-6e13c28d"]]),Oa=p(c({name:"ILayoutContent",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("section",h(e.$attrs,{class:"layout-content"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-5b197a5d"]]),La=p(c({name:"ILayoutFooter",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("footer",h(e.$attrs,{class:"layout-footer"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-31bd8dbc"]]),Da=p(c({name:"ILayoutHeader",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("header",h(e.$attrs,{class:"layout-header"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-ece9ef9b"]]),Ie="IListGroup",Na=p(c({name:Ie,inheritAttrs:!1,props:{border:{type:Boolean,default:!0},color:{type:String,default:u(Ie,"color")},size:{type:String,default:u(Ie,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-border":this.border}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["list-group",e.classes],role:"list"}),[d(e.$slots,"default")],16)}]]),Ta=p(c({name:"IListGroupItem",mixins:[Z],inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{ariaDisabled(){return this.role==="link"?null:this.disabled?"true":"false"},classes(){return{"-active":this.active,"-disabled":this.disabled}},role(){return this.$attrs.to||this.$attrs.href?"link":"listitem"},tabIndex(){return this.disabled?-1:this.tabindex}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["list-group-item",e.classes],tag:e.tag,role:e.role,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.ariaDisabled}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["tag","role","tabindex","class","disabled","aria-disabled"])}]]),Pa=function(e){const t={};return(...i)=>{const a=JSON.stringify(i);return a in t||(t[a]=e(...i)),t[a]}}(function(e,t){if(!t)return[{text:e}];const i=[],a=e.toLowerCase(),s=t.toLowerCase();let r=0,n=0;for(;n=0;n=B?b:e.length,n&&(i.push({text:e.substring(r,n)}),r=n),B&&(n+=t.length,i.push({text:e.substring(r,n),marked:!0}),r=n)}return i}),Ra=c({name:"IMark",inheritAttrs:!1,props:{text:{type:String,default:""},query:{type:String,default:""}},computed:{parts(){return Pa(this.text,this.query)}}}),Ea={key:0},wt=p(Ra,[["render",function(e,t,i,a,s,r){return l(),o("span",Lt(Dt(e.$attrs)),[(l(!0),o(j,null,X(e.parts,({text:n,marked:b})=>(l(),o(j,null,[b?(l(),o("mark",Ea,_(n),1)):(l(),o(j,{key:1},[P(_(n),1)],64))],64))),256))],16)}]]),Ma=c({name:"IMedia",inheritAttrs:!1}),_a={class:"media-body"},Fa=p(Ma,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:"media"}),[d(e.$slots,"image"),m("div",_a,[d(e.$slots,"default")])],16)}]]),C={instances:{},stack:[],zIndex:1050,register(e){e&&e.name&&(C.instances[e.name]=e)},unregister(e){e&&e.name&&(C.instances[e.name]=null,delete C.instances[e.name])},open(e){typeof window<"u"&&(C.stack.push(e),C.instances[e].$el.style.zIndex=C.zIndex++)},close(e){typeof window<"u"&&C.stack.splice(C.stack.indexOf(e),1)},getTopOverlay(){const e=C.stack.slice(-1)[0]||"";return C.instances[e]},onPressEscape(){const e=C.getTopOverlay();e&&e.closeOnPressEscape&&e.hide()}};typeof window<"u"&&window.addEventListener("keydown",e=>{k("esc",e)&&C.onPressEscape()});const xe="IModal",ja=c({name:xe,directives:{ClickOutside:K},inheritAttrs:!1,props:{closeOnPressEscape:{type:Boolean,default:!0},closeAriaLabel:{type:String,default:"Close"},color:{type:String,default:u(xe,"color")},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},name:{type:String,default:()=>S("modal")},showClose:{type:Boolean,default:!0},size:{type:String,default:u(xe,"size"),validator:v},modelValue:{type:Boolean,default:!1},transition:{type:String,default:"zoom-in-center-transition"}},emits:["update:modelValue"],data(){return{visible:this.modelValue}},computed:{classes(){return{"-disabled":this.disabled,...g(this),[`-${this.size}`]:!!this.size}}},watch:{modelValue(e){e?this.show():this.hide()}},mounted(){C.register(this)},unmounted(){C.unregister(this)},methods:{show(){this.disabled||(this.visible=!0,this.$emit("update:modelValue",!0),C.open(this.name),typeof window<"u"&&_e(window.document.body,"-modal"))},hide(){this.disabled||(this.visible=!1,this.$emit("update:modelValue",!1),C.close(this.name),typeof window<"u"&&pt(window.document.body,"-modal"))},onClickOutside(){this.hideOnClickOutside&&this.hide()}}}),Ga=["aria-hidden","id","name","aria-labelledby"],Za={class:"modal"},Ka=["id"],qa=["aria-label"],Wa={key:1,class:"modal-body"},Ua={key:2,class:"modal-footer"},Ha=p(ja,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return l(),V(L,{name:"fade-in-transition"},{default:y(()=>[$(m("div",h(e.$attrs,{class:["modal-wrapper",e.classes],role:"dialog","aria-modal":"true","aria-hidden":e.visible?"false":"true",id:e.name,name:e.name,"aria-labelledby":`${e.name}-header`}),[I(L,{name:e.transition},{default:y(()=>[$((l(),o("div",Za,[e.$slots.header?(l(),o("div",{key:0,class:"modal-header",id:`${e.name}-header`},[d(e.$slots,"header"),e.showClose?(l(),o("button",{key:0,class:"close","aria-hidden":"true","aria-label":e.closeAriaLabel,onClick:t[0]||(t[0]=(...b)=>e.hide&&e.hide(...b))},[d(e.$slots,"close",{},()=>[t[1]||(t[1]=m("i",{class:"icon"},null,-1))])],8,qa)):f("",!0)],8,Ka)):f("",!0),e.$slots.default?(l(),o("div",Wa,[d(e.$slots,"default")])):f("",!0),e.$slots.footer?(l(),o("div",Ua,[d(e.$slots,"footer")])):f("",!0)])),[[n,e.onClickOutside],[x,e.visible]])]),_:3},8,["name"])],16,Ga),[[x,e.visible]])]),_:3})}]]),Ce="INav",Qa=p(c({name:Ce,provide(){return{nav:this}},inject:{navbar:{default:()=>({onItemClick:()=>{}})},sidebar:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{color:{type:String,default:u(Ce,"color")},size:{type:String,default:u(Ce,"size"),validator:v},vertical:{type:Boolean,default:!1}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-vertical":this.vertical}}},methods:{onItemClick(){[this.navbar,this.sidebar].forEach(e=>{e.onItemClick()})}}}),[["render",function(e,t,i,a,s,r){return l(),o("nav",h(e.$attrs,{class:["nav",e.classes],role:"menubar"}),[d(e.$slots,"default")],16)}]]),Ya=p(c({name:"INavItem",mixins:[Z],inject:{nav:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{ariaDisabled(){return this.role==="link"?null:this.disabled?"true":"false"},classes(){return{"-active":this.active,"-disabled":this.disabled}},role(){return this.$attrs.to||this.$attrs.href?"link":"menuitem"},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(e){this.stopPropagation||this.nav.onItemClick(this,e)}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["nav-item",e.classes],role:e.role,tag:e.tag,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.ariaDisabled,onClick:e.onClick}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["role","tag","tabindex","class","disabled","aria-disabled","onClick"])}]]),Se="INavbar",Ja=p(c({name:Se,components:{IContainer:Ke,IRow:qe,IColumn:Ze,IHamburgerMenu:kt},directives:{ClickOutside:K},mixins:[ft],provide(){return{navbar:this}},inheritAttrs:!1,props:{collapseOnItemClick:{type:Boolean,default:!0},collapseOnClickOutside:{type:Boolean,default:!0},color:{type:String,default:u(Se,"color")},fluid:{type:Boolean,default:!1},size:{type:String,default:u(Se,"size"),validator:v},menuAnimation:{type:String,default:"close"}},emits:["update:modelValue"],computed:{classes(){return{...this.collapsibleClasses,...g(this),[`-${this.size}`]:!!this.size}}},methods:{onItemClick(){this.collapseOnItemClick&&this.open&&this.setOpen(!1)},onClickOutside(){this.collapseOnClickOutside&&this.open&&this.setOpen(!1)}}}),[["render",function(e,t,i,a,s,r){const n=A("i-hamburger-menu"),b=A("i-column"),B=A("i-row"),F=A("i-container"),w=G("click-outside");return $((l(),o("nav",h(e.$attrs,{class:["navbar",e.classes]}),[I(F,{fluid:e.fluid},{default:y(()=>[I(B,null,{default:y(()=>[I(b,null,{default:y(()=>[I(n,{class:"collapse-toggle",animation:e.menuAnimation,color:e.color,modelValue:e.open,"onUpdate:modelValue":e.toggleOpen},null,8,["animation","color","modelValue","onUpdate:modelValue"]),d(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["fluid"])],16)),[[w,e.onClickOutside]])}]]),Xa=p(c({name:"INavbarBrand",mixins:[Z],inheritAttrs:!1,props:{tag:{type:String,default:"div"}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:"navbar-brand",tag:e.tag,translate:"no"}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["tag"])}]]),es=c({name:"INavbarCollapsible",components:{IExpandTransition:gt},inject:{navbar:{default:()=>({})}},inheritAttrs:!1,computed:{visible(){const e=typeof window>"u";return this.navbar.open||!this.navbar.collapsible||e}}}),ts=["aria-hidden","aria-expanded"],is=p(es,[["render",function(e,t,i,a,s,r){const n=A("i-expand-transition");return l(),V(n,null,{default:y(()=>[$(m("div",h(e.$attrs,{class:"navbar-collapsible","aria-hidden":e.visible?"false":"true","aria-expanded":e.visible?"true":"false"}),[d(e.$slots,"default")],16,ts),[[x,e.visible]])]),_:3})}]]),Be="IPagination",as=c({name:Be,inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Pagination"},color:{type:String,default:u(Be,"color")},itemsPerPage:{type:Number,default:20},itemsTotal:{type:Number,default:0},limit:{type:[Number,Object],default:()=>({xs:3,sm:5})},quickLink:{type:Boolean,default:!1},modelValue:{type:Number,default:1},size:{type:String,default:u(Be,"size"),validator:v}},emits:["update:modelValue"],data:()=>({pageLimit:5}),computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}},pageCount(){return Math.ceil(this.itemsTotal/this.itemsPerPage)},showQuickPrevious(){return this.pageCount>this.pageLimit&&this.modelValue>this.pageLimit-(this.pageLimit-1)/2},showQuickNext(){return this.pageCount>this.pageLimit&&this.modelValuee.apply(s,a),t)}}(this.onWindowResize,250),typeof window<"u"&&(window.addEventListener("resize",this.debouncedOnWindowResize),this.onWindowResize())},unmounted(){typeof window<"u"&&window.removeEventListener("resize",this.debouncedOnWindowResize)},methods:{next(){this.modelValue!==this.pageCount&&this.onClick(this.modelValue+1)},quickNext(){if(!this.quickLink)return;const e=this.modelValue+(this.pageLimit-2);this.onClick(e>this.pageCount?this.pageCount:e)},previous(){this.modelValue!==1&&this.onClick(this.modelValue-1)},quickPrevious(){if(!this.quickLink)return;const e=this.modelValue-(this.pageLimit-2);this.onClick(e<1?1:e)},onClick(e){this.$emit("update:modelValue",e)},onWindowResize(){if(typeof this.limit=="number")return this.pageLimit=this.limit,this.pageLimit;for(const e of je.slice().reverse())if(this.limit.hasOwnProperty(e)&&typeof window<"u"&&window.innerWidth>=J[e][0])return this.pageLimit=this.limit[e],this.pageLimit}}}),ss=["aria-label"],ns={class:"pagination-items"},ls={"aria-hidden":"true"},rs=["aria-current","onClick"],os={"aria-hidden":"true"},ds=p(as,[["render",function(e,t,i,a,s,r){return l(),o("nav",h(e.$attrs,{class:["pagination",e.classes],role:"navigation","aria-label":e.ariaLabel}),[m("ul",ns,[e.pageCount>0?(l(),o("li",{key:0,class:z(["pagination-item -previous",{"-disabled":e.modelValue===1}]),onClick:t[0]||(t[0]=(...n)=>e.previous&&e.previous(...n))},[m("span",ls,[d(e.$slots,"previous",{},()=>[t[6]||(t[6]=P("<"))])])],2)):f("",!0),e.pageCount>0?(l(),o("li",{key:1,class:z(["pagination-item -first",{"-active":e.modelValue===1}]),onClick:t[1]||(t[1]=n=>e.onClick(1))}," 1 ",2)):f("",!0),e.showQuickPrevious?(l(),o("li",{key:2,class:z(["pagination-item -quick-previous",{"-disabled":!e.quickLink}]),onClick:t[2]||(t[2]=(...n)=>e.quickPrevious&&e.quickPrevious(...n))}," … ",2)):f("",!0),(l(!0),o(j,null,X(e.pages,n=>(l(),o("li",{class:z(["pagination-item",{"-active":e.modelValue===n}]),"aria-current":e.modelValue===n&&"page",onClick:b=>e.onClick(n)},_(n),11,rs))),256)),e.showQuickNext?(l(),o("li",{key:3,class:z(["pagination-item -quick-next",{"-disabled":!e.quickLink}]),onClick:t[3]||(t[3]=(...n)=>e.quickNext&&e.quickNext(...n))}," … ",2)):f("",!0),e.pageCount>1?(l(),o("li",{key:4,class:z(["pagination-item -last",{"-active":e.modelValue===e.pageCount}]),onClick:t[4]||(t[4]=n=>e.onClick(e.pageCount))},_(e.pageCount),3)):f("",!0),e.pageCount>0?(l(),o("li",{key:5,class:z(["pagination-item -next",{"-disabled":e.modelValue===e.pageCount}]),onClick:t[5]||(t[5]=(...n)=>e.next&&e.next(...n))},[m("span",os,[d(e.$slots,"next",{},()=>[t[7]||(t[7]=P(">"))])])],2)):f("",!0)])],16,ss)}]]),ze="IPopover",us=c({name:ze,directives:{ClickOutside:K},mixins:[ee,Ge],inheritAttrs:!1,props:{color:{type:String,default:u(ze,"color")},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},name:{type:String,default:()=>S("popover")},arrow:{type:Boolean,default:!0},placement:{type:String,default:"top"},trigger:{type:[String,Array],default:()=>["click"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!1},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(ze,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)}}}),cs=["id"],ps=["aria-describedby","aria-disabled","aria-expanded"],hs=["id","aria-hidden"],ms={key:0,"data-popper-arrow":""},fs={key:1,class:"popover-header"},bs={key:2,class:"popover-body"},ys={key:3,class:"popover-footer"},vs=p(us,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["popover-wrapper",e.classes],ref:"wrapper",id:e.name,onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))}),[m("div",{class:"popover-trigger",ref:"trigger","aria-describedby":`${e.name}-popup`,"aria-disabled":e.disabled?"true":"false","aria-expanded":e.visible?"true":"false"},[d(e.$slots,"default")],8,ps),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:"popover",ref:"popup",role:"tooltip","aria-live":"polite",id:`${e.name}-popup`,"aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",ms)):f("",!0),e.$slots.header?(l(),o("div",fs,[d(e.$slots,"header")])):f("",!0),e.$slots.body?(l(),o("div",bs,[d(e.$slots,"body")])):f("",!0),e.$slots.footer?(l(),o("div",ys,[d(e.$slots,"footer")])):f("",!0)],8,hs),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,cs)),[[n,e.onClickOutside]])}]]),Ae="IProgress",gs=p(c({name:Ae,provide(){return{progress:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Ae,"color")},min:{type:[String,Number],default:0},max:{type:[String,Number],default:100},size:{type:String,default:u(Ae,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["progress",e.classes]}),[d(e.$slots,"default")],16)}]]),at="IProgressBar",ks=c({name:at,inject:{progress:{default:()=>({min:0,max:100})}},inheritAttrs:!1,props:{color:{type:String,default:u(at,"color","primary")},value:{type:[String,Number],default:0}},computed:{computedValue(){const e=typeof this.min=="string"?parseFloat(this.min):this.min;return 100*((typeof this.value=="string"?parseFloat(this.value.replace("%","")):this.value)-e)/((typeof this.max=="string"?parseFloat(this.max):this.max)-e)},min(){return this.progress.min},max(){return this.progress.max},style(){return{width:`${this.computedValue}%`}},classes(){return{...g(this)}}}}),$s=["aria-valuemin","aria-valuemax","aria-valuenow"],ws=p(ks,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["progress-bar",e.classes],style:e.style,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.computedValue}),[d(e.$slots,"default")],16,$s)}]]),Ve="IRadio",Is=c({name:Ve,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(Ve,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:""},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("radio")},native:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Ve,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-native":this.native}},checked(){return this.formGroup.checked===this.value},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i,a,s;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),(s=(a=this.formGroup).onChange)==null||s.call(a,this.value),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),xs=["checked","name","disabled","readonly",".indeterminate"],Cs=["aria-checked","aria-disabled","aria-readonly","tabindex"],Ss=p(Is,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["radio",e.classes],role:"radio"}),[m("input",{checked:e.checked,ref:"input",type:"radio",tabindex:"-1",name:e.name,disabled:e.isDisabled,readonly:e.isReadonly,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,xs),m("label",{class:"radio-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n)),onClick:t[2]||(t[2]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,Cs)],16)}]]),Oe="IRadioGroup",Bs=c({name:Oe,mixins:[R],provide(){return{formGroup:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Oe,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},modelValue:{default:""},name:{type:[String,Number],default:()=>S("radio-group")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Oe,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},checked(){return this.schema?this.schema.value:this.modelValue}},methods:{onChange(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e),this.$emit("update:modelValue",e)}}}),zs=["name"],As=p(Bs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["form-group radio-group",e.classes],name:e.name,role:"radiogroup"}),[d(e.$slots,"default",{},void 0,!0)],16,zs)}],["__scopeId","data-v-fa4fe77a"]]),Vs=c({name:"ISelectOption",inject:{select:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},tabindex:{type:[Number,String],default:0},value:{type:[Object,String,Number],default:()=>({})}},computed:{ariaDisabled(){return this.disabled?"true":"false"},ariaSelected(){return this.active?"true":"false"},isActive(){return this.active||this.value===this.select.modelValue},classes(){return{"-active":this.isActive,"-disabled":this.disabled}},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(){this.disabled||this.select.onInput(this.value,this.label)}}}),Os=["tabindex","aria-disabled","aria-selected"],It=p(Vs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["select-option",e.classes],role:"option",tabindex:e.tabIndex,"aria-disabled":e.ariaDisabled,"aria-selected":e.ariaSelected,onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),[d(e.$slots,"default",{},()=>[P(_(e.label),1)])],16,Os)}]]),Le="ISelect",Ls=c({name:Le,directives:{ClickOutside:K},components:{IInput:te,IIcon:$t,ISelectOption:It,IMark:wt},mixins:[R,ee],provide(){return{select:this}},props:{animationDuration:{type:Number,default:300},autocomplete:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},color:{type:String,default:u(Le,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},idField:{type:String,default:"id"},keydownTrigger:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},keydownItem:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},label:{type:[String,Function],default:"label"},loading:{type:Boolean,default:!1},modelValue:{type:[Object,String,Number],default:null},minLength:{type:Number,default:0},name:{type:[String,Number],default:()=>S("select")},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},offset:{type:Number,default:6},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({modifiers:[...bt({offset:8}),{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect({state:e}){e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}}]})},readonly:{type:Boolean,default:!1},scrollTolerance:{type:Number,default:160},selectFirstOptionOnEnter:{type:Boolean,default:!0},size:{type:String,default:u(Le,"size"),validator:v},tabindex:{type:[Number,String],default:0},type:{type:String,default:"text"},total:{type:Number,default:void 0}},emits:["update:modelValue","search","pagination"],data(){return{animating:!1,visible:!1,inputValue:this.computeLabel(this.modelValue)||""}},computed:{wrapperClasses(){return{...g(this),[`-${this.size}`]:!!this.size}},popupClasses(){return{"-disabled":this.isDisabled,"-readonly":this.isReadonly}},tabIndex(){return this.isDisabled?-1:this.tabindex},isClearable(){return this.value&&this.clearable&&!this.isDisabled&&!this.isReadonly},value(){return this.schema?this.schema.value:this.modelValue},inputPlaceholder(){return this.value?this.computeLabel(this.value):this.placeholder}},watch:{value(e){this.inputValue=this.computeLabel(e)},inputValue(e){const t=this.inputMatchesLength(e),i=this.inputMatchesLabel(e);!t||i||this.animating||this.show(),this.$emit("search",this.inputValue)},options(){this.visible&&this.createPopper()}},methods:{onInput(e,t){var i,a;e.disabled||(this.hide(),t&&(this.inputValue=t),(a=(i=this.parent).onInput)==null||a.call(i,this.name,e),this.$emit("update:modelValue",e))},onClear(){this.animating=!0,this.$emit("update:modelValue",null),this.$nextTick(()=>{this.animating=!1})},onFocus(e){!this.value&&this.options.length===0||(this.autocomplete&&(this.inputValue=""),(!e.relatedTarget||!this.$refs.wrapper.contains(e.relatedTarget))&&this.inputShouldShowSelect(this.inputValue)&&this.show())},onBlur(e){var t,i;(!e.relatedTarget||!this.$refs.wrapper.contains(e.relatedTarget))&&(this.hide(),this.inputValue=this.computeLabel(this.value)),(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)},onClick(){this.autocomplete&&(this.inputValue=""),this.inputShouldShowSelect(this.inputValue)&&this.show()},onClickOutside(){this.hide()},onClickCaret(e){this.visible?this.onBlur(e):(this.focus(),this.onFocus(e)),e.preventDefault(),e.stopPropagation()},onScroll(){if(isNaN(this.total))return;const e=this.$refs.body.scrollTop+parseInt(getComputedStyle(this.$refs.body).height,10)>parseInt(getComputedStyle(this.$refs.options).height,10)-this.scrollTolerance,t=this.options.length>=this.total;e&&!t&&this.options.length>0&&!this.loading&&this.$emit("pagination")},onWindowResize(){this.onScroll(),this.visible&&this.$nextTick().then(()=>this.createPopper())},onTriggerKeyDown(e){if(this.keydownTrigger.length===0)return;const t=this.getFocusableItems(),i=t.findIndex(s=>s.active),a=t[i>-1?i:0];switch(!0){case(k("up",e)&&this.keydownTrigger.includes("up")):case(k("down",e)&&this.keydownTrigger.includes("down")):this.show(),setTimeout(()=>{a.focus()},this.visible?0:this.animationDuration),e.preventDefault(),e.stopPropagation();break;case(k("enter",e)&&this.keydownTrigger.includes("enter")):if(!this.selectFirstOptionOnEnter||this.value&&this.inputMatchesLabel(this.inputValue))this.onClick();else{const s=this.options.find(r=>!r.disabled);s&&(this.onInput(s),this.focus())}this.visible||setTimeout(()=>{a.focus()},this.animationDuration),e.preventDefault();break;case(k("tab",e)&&this.keydownTrigger.includes("tab")):case(k("esc",e)&&this.keydownTrigger.includes("esc")):this.hide()}},onItemKeyDown(e){if(this.keydownItem.length!==0)switch(!0){case(k("up",e)&&this.keydownItem.includes("up")):case(k("down",e)&&this.keydownItem.includes("down")):const t=this.getFocusableItems(),i=t.findIndex(r=>r===e.target),a=t.length-1;let s;s=k("up",e)?i>0?i-1:0:i{this.animating=!1},this.animationDuration))},focus(){this.$refs.trigger.focus()},getFocusableItems(){const e=[];for(const t of this.$refs.options.children)Fe(t)&&e.push(t);return e},getElementHeight(e){const t=getComputedStyle(e);return t.height?Math.ceil(parseFloat(t.height)):NaN},inputMatchesLabel(e){return this.value&&e===this.computeLabel(this.value)},inputMatchesLength(e){return this.minLength===0||e&&e.length>=this.minLength},inputShouldShowSelect(e){return!this.autocomplete||this.inputMatchesLength(e)&&!this.inputMatchesLabel(e)},computeLabel(e){return typeof e!="object"?this.inputValue:dt(this.label)?this.label(e):M(e,this.label)}}}),Ds=["id","name","aria-owns","aria-expanded"],Ns=["id","aria-hidden"],Ts={key:0,"data-popper-arrow":""},Ps={key:1,class:"select-header"},Rs={key:0,class:"select-no-results"},Es={class:"select-options",ref:"options"},Ms={key:2,class:"select-footer"},_s=p(Ls,[["render",function(e,t,i,a,s,r){const n=A("i-input"),b=A("i-mark"),B=A("i-select-option"),F=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["select-wrapper",e.wrapperClasses],id:e.name,name:e.name,ref:"wrapper",role:"combobox","aria-haspopup":"listbox","aria-owns":`${e.name}-options`,"aria-expanded":e.visible?"true":"false",onKeyup:t[3]||(t[3]=E((...w)=>e.onEscape&&e.onEscape(...w),["esc"]))}),[I(n,{modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=w=>e.inputValue=w),ref:"trigger",autocomplete:"off","aria-autocomplete":"both","aria-controls":`${e.name}-options`,disabled:e.isDisabled,readonly:e.isReadonly,tabindex:e.tabIndex,plaintext:!e.autocomplete,placeholder:e.inputPlaceholder,clearable:e.isClearable,color:e.color,size:e.size,name:`${e.name}-input`,onClick:e.onClick,onFocus:e.onFocus,onBlur:e.onBlur,onClear:e.onClear,onKeydown:e.onTriggerKeyDown},Nt({suffix:y(()=>[d(e.$slots,"suffix"),m("button",{class:"select-caret","aria-hidden":"true",role:"button",onClick:t[0]||(t[0]=(...w)=>e.onClickCaret&&e.onClickCaret(...w))})]),_:2},[e.$slots.prepend?{name:"prepend",fn:y(()=>[d(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:y(()=>[d(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots.append?{name:"append",fn:y(()=>[d(e.$slots,"append")]),key:"2"}:void 0]),1032,["modelValue","aria-controls","disabled","readonly","tabindex","plaintext","placeholder","clearable","color","size","name","onClick","onFocus","onBlur","onClear","onKeydown"]),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:z(["select",e.popupClasses]),id:`${e.name}-options`,role:"listbox",ref:"popup","aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",Ts)):f("",!0),e.$slots.header?(l(),o("div",Ps,[d(e.$slots,"header")])):f("",!0),m("div",{class:"select-body",ref:"body",onScroll:t[2]||(t[2]=(...w)=>e.onScroll&&e.onScroll(...w))},[e.$slots.default||e.options.length!==0?f("",!0):(l(),o("div",Rs,[d(e.$slots,"no-results",{},()=>[t[4]||(t[4]=P(" There are no results for your query. "))])])),m("div",Es,[d(e.$slots,"default"),(l(!0),o(j,null,X(e.options,w=>(l(),V(B,{key:w[e.idField],active:e.value&&e.value[e.idField]===w[e.idField],disabled:w.disabled,value:w,onKeydown:e.onItemKeyDown},{default:y(()=>[d(e.$slots,"option",{option:w},()=>[e.autocomplete&&e.inputValue!==e.computeLabel(w)?(l(),V(b,{key:0,text:e.computeLabel(w),query:e.inputValue},null,8,["text","query"])):(l(),o(j,{key:1},[P(_(e.computeLabel(w)),1)],64))])]),_:2},1032,["active","disabled","value","onKeydown"]))),128))],512)],544),e.$slots.footer?(l(),o("div",Ms,[d(e.$slots,"footer")])):f("",!0)],10,Ns),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,Ds)),[[F,e.onClickOutside]])}]]),De="ISidebar",Fs=c({name:De,mixins:[ft],provide(){return{sidebar:this}},inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Sidebar"},collapseOnItemClick:{type:Boolean,default:!0},collapseOnClickOutside:{type:Boolean,default:!0},collapsePosition:{type:String,default:"absolute"},color:{type:String,default:u(De,"color")},placement:{type:String,default:"left"},size:{type:String,default:u(De,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...this.collapsibleClasses,...g(this),[`-${this.size}`]:!!this.size,[`-collapse-${this.collapsePosition}`]:!0,[`-placement-${this.placement}`]:!0}},sidebarWrapperTransition(){return this.collapsePosition!=="relative"?"sidebar-wrapper-none-transition":"sidebar-wrapper-transition"},sidebarTransition(){return this.collapsePosition!=="relative"?"sidebar-transition":"sidebar-none-transition"}},methods:{onItemClick(){this.collapseOnItemClick&&this.open&&this.setOpen(!1)},onOverlayClick(){this.collapseOnClickOutside&&this.open&&this.setOpen(!1)}}}),js=["aria-label"],Gs={class:"sidebar"},Zs={class:"sidebar-content"},Ks=p(Fs,[["render",function(e,t,i,a,s,r){return l(),V(L,{name:e.sidebarWrapperTransition},{default:y(()=>[$(m("aside",h(e.$attrs,{role:"complementary",class:["sidebar-wrapper",e.classes],"aria-label":e.ariaLabel,ref:"wrapper"}),[I(L,{name:e.sidebarTransition},{default:y(()=>[$(m("div",Gs,[m("div",Zs,[d(e.$slots,"default")])],512),[[x,e.collapsePosition==="relative"||e.open||!e.collapsible]])]),_:3},8,["name"]),I(L,{name:"sidebar-overlay-transition"},{default:y(()=>[e.collapsePosition!=="relative"?$((l(),o("div",{key:0,class:"sidebar-overlay",onClick:t[0]||(t[0]=(...n)=>e.onOverlayClick&&e.onOverlayClick(...n))},null,512)),[[x,e.open]]):f("",!0)]),_:1})],16,js),[[x,e.open||!e.collapsible]])]),_:3},8,["name"])}]]),st="ITable",qs=c({name:st,inheritAttrs:!1,props:{border:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!0},nowrap:{type:Boolean,default:!1},color:{type:String,default:u(st,"color")}},computed:{classes(){return{...g(this),"-border":this.border,"-condensed":this.condensed,"-striped":this.striped,"-hover":this.hover,"-nowrap":this.nowrap,["-responsive"+(typeof this.responsive=="boolean"?"":`-${this.responsive}`)]:!!this.responsive}}}}),Ws={class:"table"},Us=p(qs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["table-wrapper",e.classes]}),[m("table",Ws,[d(e.$slots,"default")])],16)}]]),Ne="ITabs",Hs=c({name:Ne,provide(){return{tabs:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Ne,"color")},modelValue:{type:String,default:""},size:{type:String,default:u(Ne,"size"),validator:v},stretch:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{active:this.modelValue,tabs:[]}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-stretch":this.stretch}}},watch:{modelValue(e){this.active=e}},methods:{setActive(e){this.active=e,this.$emit("update:modelValue",this.active)}}}),Qs={class:"tabs-header"},Ys=p(Hs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["tabs",e.classes],role:"tablist","aria-multiselectable":"true"}),[m("div",Qs,[d(e.$slots,"header")]),d(e.$slots,"default")],16)}]]),Js=c({name:"ITab",inject:{tabs:{default:()=>({})}},props:{title:{type:String,default:""},name:{type:String,default:()=>S("tab")}},computed:{active(){return this.tabs.active===this.name},classes(){return{"-active":this.active}}}}),Xs=["name","aria-hidden","aria-labelledby"],en={class:"tab-body"},tn=p(Js,[["render",function(e,t,i,a,s,r){return $((l(),o("div",{class:z(["tab",e.classes]),role:"tabpanel",name:e.name,"aria-hidden":!e.active,"aria-labelledby":`tab-heading-${e.name}`},[m("div",en,[d(e.$slots,"default")])],10,Xs)),[[x,e.active]])}]]),an=c({name:"ITabTitle",inject:{tabs:{default:()=>({})}},props:{for:{type:String,default:()=>S("tab")}},computed:{active(){return this.tabs.active===this.for},classes(){return{"-active":this.active}},name(){return this.for}},methods:{onClick(){this.tabs.setActive(this.for)}}}),sn=["for","active","aria-expanded","aria-controls","aria-describedby"],nn=p(an,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["tab-title",e.classes]),role:"tab",for:e.name,active:e.active,"aria-expanded":e.active,"aria-controls":`tab-content-${e.name}`,"aria-describedby":`tab-content-${e.name}`,tabindex:"0",onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))},[d(e.$slots,"default")],10,sn)}]]),Te="IToggle",ln=c({name:Te,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(Te,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:!1},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("toggle")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Te,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly}},checked(){return this.schema?this.schema.value:this.modelValue},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),rn=["checked","disabled","readonly","aria-checked","aria-disabled","aria-readonly","name"],on=["aria-checked","aria-disabled","aria-readonly","tabindex"],dn=p(ln,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["toggle",e.classes]}),[m("input",{ref:"input",type:"checkbox",checked:e.checked,disabled:e.isDisabled,readonly:e.isReadonly,"aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,name:e.name,onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,rn),m("label",{class:"toggle-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onClick:t[1]||(t[1]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onBlur:t[2]||(t[2]=(...n)=>e.onBlur&&e.onBlur(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,on)],16)}]]),Pe="ITooltip",un=c({name:Pe,directives:{ClickOutside:K},mixins:[ee,Ge],inheritAttrs:!1,props:{color:{type:String,default:u(Pe,"color")},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},name:{type:String,default:()=>S("tooltip")},arrow:{type:Boolean,default:!0},placement:{type:String,default:"top"},trigger:{type:[String,Array],default:()=>["hover","focus"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!1},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(Pe,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)}}}),cn=["id"],pn=["aria-describedby","aria-disabled","aria-expanded"],hn=["id","aria-hidden"],mn={key:0,"data-popper-arrow":""},fn=p(un,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["tooltip-wrapper",e.classes],ref:"wrapper",id:e.name,onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))}),[m("div",{class:"tooltip-trigger",ref:"trigger","aria-describedby":`${e.name}-popup`,"aria-disabled":e.disabled?"true":"false","aria-expanded":e.visible?"true":"false"},[d(e.$slots,"default")],8,pn),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:"tooltip",ref:"popup",role:"tooltip","aria-live":"polite",id:`${e.name}-popup`,"aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",mn)):f("",!0),d(e.$slots,"body")],8,hn),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,cn)),[[n,e.onClickOutside]])}]]),vn=Object.freeze(Object.defineProperty({__proto__:null,IAlert:Jt,IBadge:Xt,IBreadcrumb:ii,IBreadcrumbItem:ni,IButton:vt,IButtonGroup:ui,ICard:fi,ICheckbox:ki,ICheckboxGroup:Ii,ICollapsible:Ci,ICollapsibleItem:Oi,IColumn:Ze,IContainer:Ke,IDropdown:_i,IDropdownDivider:Fi,IDropdownItem:ji,IForm:Ki,IFormError:Yi,IFormGroup:Ui,IFormLabel:ea,IHamburgerMenu:kt,IHeader:ta,IIcon:$t,IInput:te,ILayout:Ba,ILayoutAside:Va,ILayoutContent:Oa,ILayoutFooter:La,ILayoutHeader:Da,IListGroup:Na,IListGroupItem:Ta,ILoader:yt,IMark:wt,IMedia:Fa,IModal:Ha,INav:Qa,INavItem:Ya,INavbar:Ja,INavbarBrand:Xa,INavbarCollapsible:is,INumberInput:va,IPagination:ds,IPopover:vs,IProgress:gs,IProgressBar:ws,IRadio:Ss,IRadioGroup:As,IRow:qe,ISelect:_s,ISelectOption:It,ISidebar:Ks,ITab:tn,ITabTitle:nn,ITable:Us,ITabs:Ys,ITextarea:Sa,IToggle:dn,ITooltip:fn},Symbol.toStringTag,{value:"Module"}));export{yn as I,p as _,vn as c}; +import{h as nt,w as Bt,r as zt,d as c,a as At,b as $,v as x,e as o,f,i as m,j as d,m as h,o as l,k as P,l as V,n as Y,p as A,q as y,s as I,t as E,u as Q,T as L,x as _,y as G,z,F as j,A as X,c as se,B as Vt,C as Ot,D as Lt,E as Dt,G as Nt}from"./vendor-CSZuzLkg.js";const p=(e,t)=>{const i=e.__vccOpts||e;for(const[a,s]of t)i[a]=s;return i};function g(e){let t=e.color;return t||(t=e.$inkline.options.colorMode==="system"?typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e.$inkline.options.colorMode),{[`-${t}`]:!0}}function lt(e,t){if(!e||!t)return!1;if(t.indexOf(" ")!==-1)throw new Error("Class name should not contain spaces.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function _e(e,t){if(!e)return;let i=e.className;const a=(t||"").split(" ");for(let s=0,r=a.length;s"-"+s.toLowerCase())}function rt(e,t){return["string","number"].indexOf(typeof t)>-1&&t!==""?`${He(e)}-${t}`:He(e)}function Re(e){return e.charAt(0).toUpperCase()+e.slice(1)}function U(e){if(Array.isArray(e)){const t=e.slice().map(U),i=Object.keys(t);return Object.keys(e).filter(a=>!i.includes(a)).forEach(a=>{t[a]=e[a]}),t}return typeof e=="object"?Object.keys(e).reduce((t,i)=>(t[i]=U(e[i]),t),{}):e}function Fe(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function Tt(e){if(!Fe(e))return!1;try{e.focus()}catch{}return typeof window<"u"&&document.activeElement===e}function ot(e){for(let t=0;t"u")return;if(e.currentStyle)return e.currentStyle[t];const i=window.getComputedStyle(e,null);return i.getPropertyValue?i.getPropertyValue(t):i[t]}const dt=e=>e instanceof Function,J={xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1/0]},je=["","xs","sm","md","lg","xl","xxl"],Pt={tab:["Tab",9],enter:["Enter",13],esc:["Escape",27],space:[" ","Space",32],left:["ArrowLeft","Left",37],up:["ArrowUp","Up",38],right:["ArrowRight","Right",39],down:["ArrowDown","Down",40]},Qe={pristine:!0,dirty:!1,untouched:!0,touched:!1,valid:!0,invalid:!1,errors:[]},Rt={value:"",validators:[]},ut=["value","validators","pristine","dirty","untouched","touched","valid","invalid","errors"],k=(e,t)=>{const i=t.key||t.keyIdentifier||t.keyCode;return Pt[e].indexOf(i)!==-1};function Et(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}function Mt(e,t,i){e&&t&&e.detachEvent("on"+t,i)}const T=typeof window>"u"?()=>{}:window.document.removeEventListener?Et:Mt;function _t(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}function Ft(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)}const O=typeof window>"u"?()=>{}:window.document.addEventListener?_t:Ft,ct=e=>e.map(t=>t.type==="element"?nt(t.name,t.attributes,ct(t.children)):t.value);function pt(e,t){if(!e||!t)return;const i=t.split(" ");let a=" "+e.className+" ";for(let s=0,r=i.length;si&&i[a],e)}function ne(e,t,i){return t&&t.split(".").reduce((a,s)=>(Object.keys(i).forEach(r=>{a[s][r]=i[r]}),a&&a[s]),e),Object.keys(i).forEach(a=>{e[a]=i[a]}),e}function S(e){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,9)}`}const D={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},N={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};["AU","GB","HK","IN","NZ","ZA","ZM"].forEach(e=>{D[`en-${e}`]=D["en-US"],N[`en-${e}`]=N["en-US"]}),["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"].forEach(e=>{D[`ar-${e}`]=D.ar,N[`ar-${e}`]=N.ar}),D["pt-BR"]=D["pt-PT"],N["pt-BR"]=N["pt-PT"],D["pl-Pl"]=D["pl-PL"],N["pl-Pl"]=N["pl-PL"];const Ye=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,jt={alpha:function(e,t={}){const i=t.locale||"en-US",a=s=>{let r=String(s);return t.allowDashes&&(r=r.replace(/-/g,"")),t.allowSpaces&&(r=r.replace(/ /g,"")),r};return e.constructor===Array?e.every(s=>D[i].test(a(s))):D[i].test(a(e))},alphanumeric:function(e,t={}){const i=t.locale||"en-US",a=s=>{let r=String(s);return t.allowDashes&&(r=r.replace(/-/g,"")),t.allowSpaces&&(r=r.replace(/ /g,"")),r};return e.constructor===Array?e.every(s=>N[i].test(a(s))):N[i].test(a(e))},custom:function(e,t={validator:()=>!0}){return e.constructor===Array?e.every(i=>t.validator(i)):t.validator(e)},number:function(e,t={allowNegative:!1,allowDecimal:!1}){let i="\\d+";t.allowNegative&&(i="[-]?"+i),t.allowDecimal&&(i+="([\\.\\,]\\d+)?");const a=new RegExp(`^${i}$`);return e.constructor===Array?e.every(s=>a.test(s)):a.test(e)},email:function(e){return e.constructor===Array?e.every(t=>!t||Ye.test(String(t))):!e||Ye.test(String(e))},max:function(e,t={value:0}){if(e==null)return!1;const i=a=>Number(a);return Array.isArray(e)?e.every(a=>i(a)<=t.value):i(e)<=t.value},maxLength:function(e,t={value:0}){return e!=null&&(e.constructor===Array?e.length<=t.value:typeof e=="object"?Object.keys(e).length<=t.value:String(e).length<=t.value)},min:function(e,t={value:0}){if(e==null)return!1;const i=a=>Number(a);return Array.isArray(e)?e.every(a=>i(a)>=t.value):i(e)>=t.value},minLength:function(e,t={value:0}){return e!=null&&(e.constructor===Array?e.length>=t.value:typeof e=="object"?Object.keys(e).length>=t.value:String(e).length>=t.value)},required:function(e,t={invalidateFalse:!1}){return e!=null&&(e.constructor===Array?!!e.length:typeof e=="boolean"?!t.invalidateFalse||e:!!String(e).trim().length)},sameAs:function(e,t={}){if(!t.target)return!1;const i=M(t.schema(),t.target);if(!i)throw new Error(`Could not find target with name '${t.target}' in 'sameAs' validator.`);return e===i.value}};function ht(e){const t=Object.keys(e).length===0||Array.isArray(e.validators)||e.hasOwnProperty("value")?{...Qe,...Rt}:Qe;return Object.entries(t).forEach(([i,a])=>{e.hasOwnProperty(i)||(e[i]=a)}),Object.keys(e).filter(i=>!ut.includes(i)).forEach(i=>{(typeof e[i]=="object"||Array.isArray(e[i]))&&(e[i]=ht(e[i]))}),e}const Ee={locale:"en",messages:{en:{validation:{alpha:e=>{let t;switch(!0){case(e.allowSpaces&&e.allowDashes):t="letters, spaces, and dashes";break;case e.allowSpaces:t="letters and spaces";break;case e.allowDashes:t="letters and dashes";break;default:t="letters"}return`Please enter ${t} only.`},alphanumeric:e=>{let t;switch(!0){case(e.allowSpaces&&e.allowDashes):t="letters, numbers, spaces, and dashes";break;case e.allowSpaces:t="letters, numbers, and spaces";break;case e.allowDashes:t="letters, numbers, and dashes";break;default:t="letters and numbers"}return`Please enter ${t} only.`},number:e=>{let t;switch(!0){case(e.allowNegative&&e.allowDecimal):t="positive or negative decimal numbers";break;case e.allowNegative:t="positive or negative numbers";break;case e.allowDecimal:t="decimal numbers";break;default:t="numbers"}return`Please enter ${t} only.`},email:()=>"Please enter a valid email address.",max:()=>"Please enter a maximum value of {value}.",maxLength:()=>"Please enter up to {value} characters.",min:()=>"Please enter a minimum value of {value}.",minLength:()=>"Please enter at least {value} characters.",required:()=>"Please enter a value for this field.",sameAs:()=>"Please make sure that the two values match.",custom:()=>"Please enter a correct value for this field."}}}};function Gt(e,t=""){const i=[];return e.valid=(e.validators||[]).reduce((a,s)=>{const r=typeof s=="string"?{name:s}:s,n=jt[r.name](e.value,r);if(!n){const{name:b,message:B,...F}=r,w={name:t.split(".").pop(),value:e.value,...F},xt=(B instanceof Function?B():B)||function(We,ie={}){const ae=M(Ee.messages[Ee.locale],We),Ct=dt(ae)?ae(ie):ae||We;return Object.keys(ie).reduce((St,Ue)=>St.replace(new RegExp(`{${Ue}}`,"g"),`${ie[Ue]}`),Ct)}(`validation.${b}`,w);i.push({name:b,message:xt,path:t})}return a&&n},!0),e.invalid=!e.valid,e.errors=i,e}function mt(e,t=""){return e.valid=Object.keys(e).filter(i=>!ut.includes(i)).reduce((i,a)=>(Object.keys(e[a]).length===0||e[a].validators||e[a].value?e[a]=Gt(e[a],`${t}`?`${t}.${a}`:a):e[a]=mt(e[a],`${t}`?`${t}.${a}`:a),i&&e[a].valid),!0),e.invalid=!e.valid,e}function le(e){return mt(e,"")}const Zt=Object.freeze(Object.defineProperty({__proto__:null,inkCaretDown:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"caret-down",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 11c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1z"},children:[]}]},inkCheck:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"check",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M23.625 3.5l-13.125 13.125-6.125-6.125-4.375 4.375 10.5 10.5 17.5-17.5z"},children:[]}]},inkChevronDown:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"chevron-down",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M26.297 12.625l-11.594 11.578c-0.391 0.391-1.016 0.391-1.406 0l-11.594-11.578c-0.391-0.391-0.391-1.031 0-1.422l2.594-2.578c0.391-0.391 1.016-0.391 1.406 0l8.297 8.297 8.297-8.297c0.391-0.391 1.016-0.391 1.406 0l2.594 2.578c0.391 0.391 0.391 1.031 0 1.422z"},children:[]}]},inkCircle:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"28",viewBox:"0 0 24 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"circle",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z"},children:[]}]},inkDanger:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"danger",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M14 2.625c-3.038 0-5.895 1.183-8.043 3.332s-3.332 5.005-3.332 8.043c0 3.038 1.183 5.895 3.332 8.043s5.005 3.332 8.043 3.332c3.038 0 5.895-1.183 8.043-3.332s3.332-5.005 3.332-8.043c0-3.038-1.183-5.895-3.332-8.043s-5.005-3.332-8.043-3.332zM14 0v0c7.732 0 14 6.268 14 14s-6.268 14-14 14c-7.732 0-14-6.268-14-14s6.268-14 14-14zM12.25 19.25h3.5v3.5h-3.5zM12.25 5.25h3.5v10.5h-3.5z"},children:[]}]},inkInfo:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"info",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M12.25 8.313c0-0.722 0.591-1.313 1.313-1.313h0.875c0.722 0 1.313 0.591 1.313 1.313v0.875c0 0.722-0.591 1.313-1.313 1.313h-0.875c-0.722 0-1.313-0.591-1.313-1.313v-0.875z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M17.5 21h-7v-1.75h1.75v-5.25h-1.75v-1.75h5.25v7h1.75z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M14 0c-7.732 0-14 6.268-14 14s6.268 14 14 14 14-6.268 14-14-6.268-14-14-14zM14 25.375c-6.282 0-11.375-5.093-11.375-11.375s5.093-11.375 11.375-11.375 11.375 5.093 11.375 11.375-5.093 11.375-11.375 11.375z"},children:[]}]},inkMinus:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"minus",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M0 11.375v5.25c0 0.483 0.392 0.875 0.875 0.875h26.25c0.483 0 0.875-0.392 0.875-0.875v-5.25c0-0.483-0.392-0.875-0.875-0.875h-26.25c-0.483 0-0.875 0.392-0.875 0.875z"},children:[]}]},inkPlus:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"plus",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.125 10.5h-9.625v-9.625c0-0.483-0.392-0.875-0.875-0.875h-5.25c-0.483 0-0.875 0.392-0.875 0.875v9.625h-9.625c-0.483 0-0.875 0.392-0.875 0.875v5.25c0 0.483 0.392 0.875 0.875 0.875h9.625v9.625c0 0.483 0.392 0.875 0.875 0.875h5.25c0.483 0 0.875-0.392 0.875-0.875v-9.625h9.625c0.483 0 0.875-0.392 0.875-0.875v-5.25c0-0.483-0.392-0.875-0.875-0.875z"},children:[]}]},inkSearch:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"search",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.132 23.827l-6.632-5.641c-0.686-0.617-1.419-0.9-2.011-0.873 1.566-1.834 2.511-4.213 2.511-6.813 0-5.799-4.701-10.5-10.5-10.5s-10.5 4.701-10.5 10.5 4.701 10.5 10.5 10.5c2.6 0 4.98-0.946 6.813-2.511-0.027 0.592 0.256 1.326 0.873 2.011l5.641 6.632c0.966 1.073 2.544 1.164 3.506 0.201s0.872-2.54-0.201-3.506zM10.5 17.5c-3.866 0-7-3.134-7-7s3.134-7 7-7 7 3.134 7 7-3.134 7-7 7z"},children:[]}]},inkSort:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 17c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1zM16 11c0 0.547-0.453 1-1 1h-14c-0.547 0-1-0.453-1-1 0-0.266 0.109-0.516 0.297-0.703l7-7c0.187-0.187 0.438-0.297 0.703-0.297s0.516 0.109 0.703 0.297l7 7c0.187 0.187 0.297 0.438 0.297 0.703z"},children:[]}]},inkSortAsc:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort-asc",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 11c0 0.547-0.453 1-1 1h-14c-0.547 0-1-0.453-1-1 0-0.266 0.109-0.516 0.297-0.703l7-7c0.187-0.187 0.438-0.297 0.703-0.297s0.516 0.109 0.703 0.297l7 7c0.187 0.187 0.297 0.438 0.297 0.703z"},children:[]}]},inkSortDesc:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"28",viewBox:"0 0 16 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"sort-desc",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M16 17c0 0.266-0.109 0.516-0.297 0.703l-7 7c-0.187 0.187-0.438 0.297-0.703 0.297s-0.516-0.109-0.703-0.297l-7-7c-0.187-0.187-0.297-0.438-0.297-0.703 0-0.547 0.453-1 1-1h14c0.547 0 1 0.453 1 1z"},children:[]}]},inkTimes:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"times",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M27.745 22.495c-0-0-0-0-0-0l-8.494-8.494 8.494-8.494c0-0 0-0 0-0 0.091-0.091 0.158-0.198 0.2-0.312 0.116-0.311 0.050-0.675-0.2-0.925l-4.013-4.013c-0.25-0.25-0.614-0.316-0.925-0.2-0.114 0.042-0.221 0.109-0.312 0.2 0 0-0 0-0 0l-8.494 8.494-8.494-8.494c-0-0-0-0-0-0-0.091-0.091-0.198-0.158-0.312-0.2-0.311-0.116-0.675-0.050-0.925 0.2l-4.013 4.013c-0.25 0.25-0.316 0.614-0.2 0.925 0.042 0.114 0.109 0.221 0.2 0.312 0 0 0 0 0 0l8.494 8.494-8.494 8.494c-0 0-0 0-0 0-0.091 0.091-0.157 0.198-0.2 0.312-0.116 0.311-0.050 0.675 0.2 0.925l4.013 4.013c0.25 0.25 0.614 0.316 0.925 0.2 0.114-0.042 0.221-0.109 0.312-0.2 0-0 0-0 0-0l8.494-8.494 8.494 8.494c0 0 0 0 0 0 0.092 0.091 0.198 0.158 0.312 0.2 0.311 0.116 0.675 0.050 0.925-0.2l4.013-4.013c0.25-0.25 0.316-0.614 0.2-0.925-0.042-0.114-0.109-0.221-0.2-0.312z"},children:[]}]},inkWarning:{name:"svg",type:"element",value:"",attributes:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentColor"},children:[{name:"title",type:"element",value:"",attributes:{},children:[{name:"",type:"text",value:"warning",attributes:{},children:[]}]},{name:"path",type:"element",value:"",attributes:{d:"M14 2.537l11.733 23.385h-23.467l11.733-23.385zM14 0c-0.603 0-1.207 0.407-1.665 1.221l-11.951 23.819c-0.916 1.628-0.137 2.96 1.731 2.96h23.77c1.868 0 2.647-1.332 1.731-2.96h0l-11.951-23.819c-0.458-0.814-1.061-1.221-1.665-1.221v0z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M15.75 22.75c0 0.966-0.784 1.75-1.75 1.75s-1.75-0.784-1.75-1.75c0-0.966 0.784-1.75 1.75-1.75s1.75 0.784 1.75 1.75z"},children:[]},{name:"path",type:"element",value:"",attributes:{d:"M14 19.25c-0.966 0-1.75-0.784-1.75-1.75v-5.25c0-0.966 0.784-1.75 1.75-1.75s1.75 0.784 1.75 1.75v5.25c0 0.966-0.784 1.75-1.75 1.75z"},children:[]}]}},Symbol.toStringTag,{value:"Module"})),Je="inkline-color-mode",re=e=>{let t;t=e==="system"?matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e,pt(document.body,"-light -dark"),_e(document.body,`-${t}`)},Kt={components:{},icons:{},colorMode:"system",locale:"en",validateOn:["input","blur"],color:"",size:"",routerComponent:"router-link",componentOptions:{}};function qt({icons:e,components:t,...i}){return{form:a=>ht(a),setLocale(a){(function(s){Ee.locale=s})(a)},options:zt(i)}}const W={prototype:void 0},yn={install(e,t={}){const i={...Kt,...t};for(const r in i.components)e.component(i.components[r].name,i.components[r]);if(typeof window<"u"){const r=localStorage.getItem(Je);r&&(i.colorMode=r)}const a=qt(i);W.prototype=a,e.config.globalProperties.$inkline=a,e.provide("inkline",a);const s={...Zt,...i.icons};if(e.provide("inklineIcons",s),typeof window<"u"){Bt(()=>a.options.colorMode,b=>{re(b),localStorage.setItem(Je,b)});const r=()=>{a.options.colorMode==="system"&&re(a.options.colorMode)},n=matchMedia("(prefers-color-scheme: dark)");n.addEventListener?n.addEventListener("change",r):n.addListener(r),_e(document.body,"inkline"),re(i.colorMode)}}};function u(e,t,i=""){return()=>{var a;return W.prototype?(a=W.prototype.options.componentOptions[e])!=null&&a[t]?W.prototype.options.componentOptions[e][t]:W.prototype.options[t]:i}}function v(e){return["","xs","sm","md","lg","xl","xxl"].includes(e)}const ft=c({props:{collapse:{type:[String,Boolean],default:"md"},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{open:this.modelValue,windowWidth:typeof window<"u"?window.innerWidth:0}},computed:{collapsibleClasses(){return{"-open":this.open,"-collapsible":this.collapsible,[`-collapse-${this.collapse}`]:!!this.collapse}},collapsible(){return this.collapse===!0||this.collapse===!1?this.collapse:this.windowWidth<=J[this.collapse][1]}},watch:{modelValue(e){this.open=e}},created(){typeof window<"u"&&(O(window,"resize",this.onWindowResize),this.onWindowResize())},beforeUnmount(){typeof window<"u"&&T(window,"resize",this.onWindowResize)},methods:{setOpen(e){this.open=e,this.$emit("update:modelValue",this.open)},toggleOpen(){this.open=!this.open,this.$emit("update:modelValue",this.open)},onWindowResize(){if(this.collapse===!0||this.collapse===!1||typeof window>"u")return;const e=window.innerWidth;this.windowWidth<=J[this.collapse][1]&&e>J[this.collapse][1]&&this.setOpen(!1),this.windowWidth=window.innerWidth}}}),R=c({inject:{formGroup:{default:()=>({})},form:{default:()=>({})}},computed:{isDisabled(){return this.disabled||this.form.isDisabled||this.formGroup.isDisabled},isReadonly(){return this.readonly||this.form.isReadonly||this.formGroup.isReadonly},parent(){return this.formGroup.$?this.formGroup:this.form},schema(){const e=this.parent.schema||{};return this.name!==""?M(e,`${this.name}`):e}}}),Z=c({props:{tag:{type:String,default:"a"}},computed:{isTag(){return this.$attrs.to?this.routerComponent:this.$attrs.href?"a":this.tag},isComponent(){return this.isTag===this.routerComponent},routerComponent(){return this.$inkline.options.routerComponent}}}),Wt=e=>({name:"offset",options:{offset:[0,e]}}),bt=({offset:e})=>[Wt(e),{name:"arrow",options:{padding:6}},{name:"preventOverflow",options:{padding:8}},{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}],ee=c({props:{placement:{type:String,default:"auto"},offset:{type:Number,default:6},popperOptions:{type:Object,default:()=>({})}},data:()=>({popperInstance:void 0}),watch:{placement(e){this.popperInstance&&this.popperInstance.setOptions({placement:e})}},beforeUnmount(){this.destroyPopper()},methods:{createPopper(){if(typeof window>"u")return;const e=bt({offset:this.offset});this.popperInstance=At(this.$refs.wrapper,this.$refs.popup,{strategy:"fixed",placement:this.placement,modifiers:e,...this.popperOptions})},destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}}}),Ge=c({props:{disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:void 0},trigger:{type:Array,default:()=>["hover","click","focus"]},interactable:{type:Boolean,default:!0},hoverHideDelay:{type:Number,default:300}},emits:["update:modelValue","click-outside"],data(){return{visible:this.modelValue,triggerStack:0,hoverHideTransition:!1}},watch:{modelValue(e){e?this.show():this.hide()}},mounted(){if(!this.$slots.default)throw new Error("Popup components require one child element to be used as trigger.");this.addEventListeners()},beforeUnmount(){this.removeEventListeners()},methods:{show(){this.disabled||this.visible||(this.triggerStack+=1,this.visible=!0,this.createPopper(),this.$emit("update:modelValue",!0))},hide(){!this.disabled&&this.visible&&(this.triggerStack-=1,this.triggerStack<=0&&(this.triggerStack=0,this.visible=!1,this.$emit("update:modelValue",!1)))},hoverShow(){this.hoverHideTransition=!1,this.show()},hoverHide(){this.hoverHideTransition=!0,setTimeout(()=>{this.hoverHideTransition&&this.hide()},this.hoverHideDelay)},onClick(){this.visible?this.hide():this.show()},onClickOutside(e){this.visible&&this.$emit("click-outside",e),this.modelValue||this.hide()},addEventListeners(){[].concat(this.trigger).forEach(e=>{switch(e){case"hover":O(this.$refs.trigger,"mouseenter",this.interactable?this.hoverShow:this.show),O(this.$refs.trigger,"mouseleave",this.interactable?this.hoverHide:this.hide),this.interactable&&(O(this.$refs.popup,"mouseenter",this.hoverShow),O(this.$refs.popup,"mouseleave",this.hoverHide));break;case"click":O(this.$refs.trigger,"click",this.onClick);break;case"focus":for(const t of this.$refs.trigger.children)O(t,"focus",this.show),O(t,"blur",this.hide)}})},removeEventListeners(){[].concat(this.trigger).forEach(e=>{switch(e){case"hover":T(this.$refs.trigger,"mouseenter",this.interactable?this.hoverShow:this.show),T(this.$refs.trigger,"mouseleave",this.interactable?this.hoverHide:this.hide),this.interactable&&(T(this.$refs.popup,"mouseenter",this.hoverShow),T(this.$refs.popup,"mouseleave",this.hoverHide));break;case"click":T(this.$refs.trigger,"click",this.onClick);break;case"focus":for(const t of this.$refs.trigger.children)T(t,"focus",this.show),T(t,"blur",this.hide)}})},focusTrigger(){for(const e of this.$refs.trigger.children)if(ot(e)){e.focus();break}}}}),oe="IAlert",Ut=c({name:oe,inheritAttrs:!1,props:{size:{type:String,default:u(oe,"size"),validator:v},color:{type:String,default:u(oe,"color")},modelValue:{type:Boolean,default:!0},dismissible:{type:Boolean,default:!1},dismissAriaLabel:{type:String,default:"Dismiss"}},emits:["update:modelValue"],data:()=>({dismissed:!1}),computed:{classes(){return{[`-${this.color}`]:!!this.color,[`-${this.size}`]:!!this.size,"-dismissible":this.dismissible,"-with-icon":!!this.$slots.icon}}},watch:{modelValue(e){this.dismissed=!e}},methods:{dismiss(){this.dismissed=!0,this.$emit("update:modelValue",!1)}}}),Ht={key:0,class:"icon",role:"img","aria-hidden":"true"},Qt={class:"content"},Yt=["aria-label"],Jt=p(Ut,[["render",function(e,t,i,a,s,r){return $((l(),o("div",h({class:["alert",e.classes],role:"alert"},e.$attrs),[e.$slots.icon?(l(),o("span",Ht,[d(e.$slots,"icon")])):f("",!0),m("div",Qt,[d(e.$slots,"default")]),e.dismissible?(l(),o("span",{key:1,class:"dismiss",role:"button","aria-label":e.dismissAriaLabel,onClick:t[0]||(t[0]=(...n)=>e.dismiss&&e.dismiss(...n))},[d(e.$slots,"dismiss",{},()=>[t[1]||(t[1]=P("×"))])],8,Yt)):f("",!0)],16)),[[x,!e.dismissed]])}]]),de="IBadge",Xt=p(c({name:de,inheritAttrs:!1,props:{color:{type:String,default:u(de,"color")},size:{type:String,default:u(de,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["badge",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),ue="IBreadcrumb",ei=c({name:ue,inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Breadcrumbs"},color:{type:String,default:u(ue,"color")},size:{type:String,default:u(ue,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),ti=["aria-label"],ii=p(ei,[["render",function(e,t,i,a,s,r){return l(),o("nav",h({class:["breadcrumb",e.classes],"aria-label":e.ariaLabel},e.$attrs),[m("ol",null,[d(e.$slots,"default")])],16,ti)}]]),ai=c({name:"IBreadcrumbItem",mixins:[Z],inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},tabindex:{type:[Number,String],default:0}},computed:{classes(){return{"-active":this.active,"-disabled":this.disabled}},tabIndex(){return this.disabled||this.active?-1:this.tabindex}}}),si=["is","href","to","tabindex","aria-current"],ni=p(ai,[["render",function(e,t,i,a,s,r){return l(),o("li",h({class:["breadcrumb-item",e.classes]},e.$attrs),[m("a",{is:e.isTag,href:e.href,to:e.to,tabindex:e.tabIndex,"aria-current":e.active?"location":null},[d(e.$slots,"default",{},void 0,!0)],8,si)],16)}],["__scopeId","data-v-28fa6b16"]]),ce="ILoader",li=c({name:ce,inheritAttrs:!1,props:{color:{type:String,default:u(ce,"color")},size:{type:String,default:u(ce,"size")}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),ri={key:0,class:"loader-text"},yt=p(li,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["loader",e.classes],role:"img","aria-hidden":"true"}),[e.$slots.default?(l(),o("span",ri,[d(e.$slots,"default")])):f("",!0),t[0]||(t[0]=m("svg",{viewBox:"25 25 50 50"},[m("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1))],16)}]]),pe="IButton",vt=p(c({name:pe,components:{ILoader:yt},mixins:[Z],inject:{buttonGroup:{default:()=>({})},form:{default:()=>({})},formGroup:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},block:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},color:{type:String,default:u(pe,"color")},disabled:{type:Boolean,default:!1},link:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},tag:{type:String,default:"button"},tabindex:{type:[Number,String],default:0},size:{type:String,default:u(pe,"size"),validator:v}},computed:{ariaBusy(){return this.role!=="button"?null:this.loading?"true":"false"},ariaDisabled(){return this.role!=="button"?null:this.disabled?"true":"false"},ariaPressed(){return this.role!=="button"?null:this.active?"true":"false"},classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-active":this.active,"-block":this.block,"-circle":this.circle,"-disabled":this.isDisabled,"-link":this.link,"-outline":this.outline}},isDisabled(){return this.disabled||this.buttonGroup.disabled||this.form.disabled||this.formGroup.disabled},role(){return this.$attrs.to||this.$attrs.href?"link":"button"},tabIndex(){return this.isDisabled?-1:this.tabindex}}}),[["render",function(e,t,i,a,s,r){const n=A("i-loader");return l(),V(Y(e.isTag),h(e.$attrs,{class:["button",e.classes],tag:e.tag,role:e.role,tabindex:e.tabIndex,disabled:e.isDisabled||e.loading,"aria-disabled":e.ariaDisabled,"aria-pressed":e.ariaPressed,"aria-busy":e.ariaBusy,"aria-live":"polite"}),{default:y(()=>[e.loading?d(e.$slots,"loading",{key:0},()=>[I(n)]):f("",!0),e.loading?f("",!0):d(e.$slots,"default",{key:1})]),_:3},16,["tag","role","tabindex","class","disabled","aria-disabled","aria-pressed","aria-busy"])}]]),oi=c({name:"IButtonGroup",inject:{form:{default:()=>({})},buttonGroup:{default:()=>({})},formGroup:{default:()=>({})}},provide(){return{buttonGroup:this}},inheritAttrs:!1,props:{vertical:{type:Boolean,default:!1},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes(){return{"-vertical":this.vertical,"-block":this.block,"-disabled":this.isDisabled}},isDisabled(){return this.disabled||this.buttonGroup.disabled||this.form.disabled||this.formGroup.disabled}}}),di=["aria-disabled"],ui=p(oi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["button-group",e.classes],role:"group","aria-disabled":e.isDisabled},e.$attrs),[d(e.$slots,"default")],16,di)}]]),H={};for(const e of je){e!==""&&(H[e]={type:[String,Boolean,Number],default:!1});for(const t of["first","last"])H[`${t}${Re(e)}`]={type:Boolean,default:!1};for(const t of["offset","push","pull"])H[`${t}${Re(e)}`]={type:[String,Number],default:""}}const Ze=p(c({name:"IColumn",inheritAttrs:!1,props:H,computed:{classes(){return Object.keys(H).reduce((e,t)=>(this[t]&&(e[rt(`-${t}`,this[t])]=!0),e),{})}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["column",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),Ke=p(c({name:"IContainer",inheritAttrs:!1,props:{fluid:{type:Boolean,default:!1}},computed:{classes(){return{"-fluid":this.fluid}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["container",e.classes]},e.$attrs),[d(e.$slots,"default")],16)}]]),he="ICard",ci=c({name:he,inheritAttrs:!1,props:{color:{type:String,default:u(he,"color")},size:{type:String,default:u(he,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),pi={key:0,class:"card-header"},hi={key:1,class:"card-body"},mi={key:2,class:"card-footer"},fi=p(ci,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["card",e.classes]},e.$attrs),[e.$slots.header?(l(),o("header",pi,[d(e.$slots,"header")])):f("",!0),d(e.$slots,"image"),e.$slots.default?(l(),o("div",hi,[d(e.$slots,"default")])):f("",!0),e.$slots.footer?(l(),o("footer",mi,[d(e.$slots,"footer")])):f("",!0)],16)}]]),me="ICheckbox",bi=c({name:me,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(me,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:!1},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("checkbox")},native:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(me,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-native":this.native}},checked(){return this.formGroup.checked?this.formGroup.checked.includes(this.value):this.schema?this.schema.value:this.modelValue},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i,a,s;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),(s=(a=this.formGroup).onChange)==null||s.call(a,this.value),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),yi=["aria-checked"],vi=["checked","name","disabled","readonly",".indeterminate"],gi=["aria-checked","aria-disabled","aria-readonly","tabindex"],ki=p(bi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["checkbox",e.classes],"aria-checked":e.checked?"true":"false",role:"checkbox"},e.$attrs),[m("input",{ref:"input",type:"checkbox",checked:e.checked,tabindex:"-1",name:e.name,disabled:e.isDisabled,readonly:e.isReadonly,".indeterminate":e.indeterminate,"aria-hidden":"true",onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,vi),m("label",{class:"checkbox-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n)),onClick:t[2]||(t[2]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,gi)],16,yi)}]]),fe="ICheckboxGroup",$i=c({name:fe,mixins:[R],provide(){return{formGroup:this}},inheritAttrs:!1,props:{color:{type:String,default:u(fe,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},modelValue:{default:()=>[]},name:{type:[String,Number],default:()=>S("checkbox-group")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(fe,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},checked(){return this.schema?this.schema.value:this.modelValue}},methods:{onChange(e){var a,s;const t=[...this.modelValue],i=t.findIndex(r=>r===e);i!==-1?t.splice(i,1):t.push(e),(s=(a=this.parent).onInput)==null||s.call(a,this.name,t),this.$emit("update:modelValue",t)}}}),wi=["name"],Ii=p($i,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["form-group checkbox-group",e.classes],name:e.name,role:"checkboxgroup"},e.$attrs),[d(e.$slots,"default",{},void 0,!0)],16,wi)}],["__scopeId","data-v-4043b2ce"]]),be="ICollapsible",xi=c({name:be,provide(){return{collapsible:this}},inheritAttrs:!1,props:{accordion:{type:Boolean,default:!1},color:{type:String,default:u(be,"color")},size:{type:String,default:u(be,"size"),validator:v},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],data(){return{activeItems:[].concat(this.modelValue)}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},watch:{modelValue(e){this.activeItems=[].concat(e)}},methods:{onItemClick(e){if(this.accordion)return this.activeItems=this.activeItems.indexOf(e.name)>-1?[]:[e.name],this.activeItems;const t=this.activeItems.indexOf(e.name);t>-1?this.activeItems.splice(t,1):this.activeItems.push(e.name),this.$emit("update:modelValue",this.activeItems)}}}),Ci=p(xi,[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:["collapsible",e.classes],role:"tablist","aria-multiselectable":"true"},e.$attrs),[d(e.$slots,"default")],16)}]]),gt=p(c({name:"IExpandTransition",methods:{onEnter(e){const t=q(e,"width");e.style.width=t,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto";const i=q(e,"height");e.style.width=null,e.style.position=null,e.style.visibility=null,e.style.height=0,q(e,"height"),setTimeout(()=>{e.style.height=i})},onAfterEnter(e){e.style.height="auto"},onLeave(e){e.style.height=q(e,"height"),q(e,"height"),setTimeout(()=>{e.style.height=0})}}}),[["render",function(e,t,i,a,s,r){return l(),V(L,{name:"expand",onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onLeave:e.onLeave},{default:y(()=>[d(e.$slots,"default",{},void 0,!0)]),_:3},8,["onEnter","onAfterEnter","onLeave"])}],["__scopeId","data-v-1e395af5"]]),Si=c({name:"ICollapsibleItem",components:{IExpandTransition:gt},inject:{collapsible:{default:()=>({activeItems:[]})}},inheritAttrs:!1,props:{name:{type:String,default:()=>S("collapsible-item")},title:{type:String,default:""}},computed:{active(){return this.collapsible.activeItems.indexOf(this.name)>-1},classes(){return{"-active":this.active}}},methods:{onClick(){this.collapsible.onItemClick(this)}}}),Bi=["name"],zi=["id","aria-expanded","aria-controls","aria-describedby"],Ai=["id","aria-hidden","aria-labelledby"],Vi={class:"content"},Oi=p(Si,[["render",function(e,t,i,a,s,r){const n=A("i-expand-transition");return l(),o("div",h({class:["collapsible-item",e.classes],name:e.name},e.$attrs),[m("a",{class:"collapsible-header",role:"tab",id:`collapsible-item-heading-${e.name}`,"aria-expanded":e.active?"true":"false","aria-controls":`collapsible-item-content-${e.name}`,"aria-describedby":`collapsible-item-content-${e.name}`,tabindex:"0",onClick:t[0]||(t[0]=(...b)=>e.onClick&&e.onClick(...b)),onKeydown:[t[1]||(t[1]=E(Q((...b)=>e.onClick&&e.onClick(...b),["prevent"]),["space"])),t[2]||(t[2]=E(Q((...b)=>e.onClick&&e.onClick(...b),["prevent"]),["enter"]))]},[d(e.$slots,"header",{},()=>[P(_(e.title),1)]),t[3]||(t[3]=m("i",{class:"icon"},null,-1))],40,zi),I(n,null,{default:y(()=>[$(m("div",{class:"collapsible-body",role:"tabpanel",id:`collapsible-item-content-${e.name}`,"aria-hidden":e.active?"false":"true","aria-labelledby":`collapsible-item-heading-${e.name}`},[m("div",Vi,[d(e.$slots,"default")])],8,Ai),[[x,e.active]])]),_:3})],16,Bi)}]]),Li=(e,t)=>i=>{(function(a){return!!a&&!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)})(e)&&i.target&&(e===i.target||e.contains(i.target)||t.value(i))},K={beforeMount(e,t){typeof window<"u"&&O(window.document,"mousedown",Li(e,t))}},ye="IDropdown",Di=c({name:ye,directives:{ClickOutside:K},mixins:[ee,Ge],provide(){return{dropdown:this}},inject:{navbar:{default:()=>({onItemClick:()=>{}})},sidebar:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{animationDuration:{type:Number,default:300},color:{type:String,default:u(ye,"color")},disabled:{type:Boolean,default:!1},hideOnItemClick:{type:Boolean,default:!0},keydownTrigger:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},keydownItem:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},modelValue:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom"},trigger:{type:[String,Array],default:()=>["click"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!0},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(ye,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},mounted(){for(const e of this.$refs.trigger.children)O(e,"keydown",this.onTriggerKeyDown);O(this.$refs.popup,"keydown",this.onItemKeyDown)},beforeUnmount(){for(const e of this.$refs.trigger.children)T(e,"keydown",this.onTriggerKeyDown);T(this.$refs.popup,"keydown",this.onItemKeyDown)},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)},getFocusableItems(){const e=[];for(const t of this.$refs.body.children)Fe(t)&&e.push(t);return e},onTriggerKeyDown(e){if(this.keydownTrigger.length===0)return;const t=this.getFocusableItems(),i=t.findIndex(s=>s.active),a=t[i>-1?i:0];switch(!0){case(k("up",e)&&this.keydownTrigger.includes("up")):case(k("down",e)&&this.keydownTrigger.includes("down")):this.show(),setTimeout(()=>{a.focus()},this.visible?0:this.animationDuration),e.preventDefault(),e.stopPropagation();break;case(k("enter",e)&&this.keydownTrigger.includes("enter")):case(k("space",e)&&this.keydownTrigger.includes("space")):this.onClick(),this.visible||setTimeout(()=>{a.focus()},this.animationDuration),e.preventDefault();break;case(k("tab",e)&&this.keydownTrigger.includes("tab")):case(k("esc",e)&&this.keydownTrigger.includes("esc")):this.hide()}},onItemKeyDown(e){if(this.keydownItem.length!==0)switch(!0){case(k("up",e)&&this.keydownItem.includes("up")):case(k("down",e)&&this.keydownItem.includes("down")):const t=this.getFocusableItems(),i=t.findIndex(r=>r===e.target),a=t.length-1;let s;s=k("up",e)?i>0?i-1:0:i{e.onItemClick()})}}}),Ni={class:"dropdown-trigger",ref:"trigger"},Ti=["aria-hidden"],Pi={key:0,"data-popper-arrow":""},Ri={key:1,class:"dropdown-header"},Ei={key:2,class:"dropdown-body",ref:"body"},Mi={key:3,class:"dropdown-footer"},_i=p(Di,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h({class:"dropdown-wrapper",ref:"wrapper","aria-haspopup":"true",onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))},e.$attrs),[m("div",Ni,[d(e.$slots,"default")],512),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:z(["dropdown",e.classes]),role:"menu",ref:"popup","aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",Pi)):f("",!0),e.$slots.header?(l(),o("div",Ri,[d(e.$slots,"header")])):f("",!0),e.$slots.body?(l(),o("div",Ei,[d(e.$slots,"body")],512)):f("",!0),e.$slots.footer?(l(),o("div",Mi,[d(e.$slots,"footer")])):f("",!0)],10,Ti),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16)),[[n,e.onClickOutside]])}]]),Fi=p(c({name:"IDropdownDivider",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("div",h({class:"dropdown-divider",role:"separator"},e.$attrs),null,16)}]]),ji=p(c({name:"IDropdownItem",mixins:[Z],inject:{dropdown:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{classes(){return{"-active":this.active,"-disabled":this.disabled,"-plaintext":this.plaintext}},role(){return this.$attrs.to||this.$attrs.href?"link":"menuitem"},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(e){var t,i;(i=(t=this.dropdown).onItemClick)==null||i.call(t,this,e)}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["dropdown-item",e.classes],role:e.role,tag:e.tag,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.disabled,"aria-pressed":e.active,onClick:e.onClick}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["class","role","tag","tabindex","disabled","aria-disabled","aria-pressed","onClick"])}]]),Xe="IForm",Gi=c({name:Xe,mixins:[R],provide(){return{form:this}},inheritAttrs:!1,props:{color:{type:String,default:""},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:()=>S("form")},modelValue:{type:Object,default:()=>null},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Xe,"size"),validator:v}},emits:["update:modelValue","submit"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},schema(){return this.modelValue?this.modelValue:M(this.formGroup.schema||this.form.schema||{},this.name)}},methods:{onBlur(e,t){var i,a;if((a=(i=this.parent).onBlur)==null||a.call(i,this.name?`${this.name}.${e}`:e,t),this.modelValue){let s=U(this.modelValue);s=ne(s,e,{untouched:!1,touched:!0}),this.shouldValidate(e,"blur")&&(s=le(s)),this.$emit("update:modelValue",s)}},onInput(e,t){var i,a;if((a=(i=this.parent).onInput)==null||a.call(i,this.name?`${this.name}.${e}`:e,t),this.modelValue){let s=U(this.modelValue);s=function(r,n,b,B){return M(r,n)[b]=B,r}(s,e,"value",t),s=ne(s,e,{pristine:!1,dirty:!0}),this.shouldValidate(e,"input")&&(s=le(s)),this.$emit("update:modelValue",s)}},onSubmit(e){if(e.preventDefault(),this.modelValue){let t=U(this.modelValue);if(t=ne(le(t),"",{untouched:!1,touched:!0}),this.$emit("update:modelValue",t),t.invalid)return}this.$emit("submit",e)},shouldValidate(e,t){const i=M(this.modelValue,e);return(i.validateOn?[].concat(i.validateOn):this.$inkline.options.validateOn).includes(t)}}}),Zi=["name","readonly","disabled"],Ki=p(Gi,[["render",function(e,t,i,a,s,r){return l(),o("form",h(e.$attrs,{class:["form",e.classes],role:"form",name:e.name,readonly:e.isReadonly,disabled:e.isDisabled,onSubmit:t[0]||(t[0]=(...n)=>e.onSubmit&&e.onSubmit(...n))}),[d(e.$slots,"default",{},void 0,!0)],16,Zi)}],["__scopeId","data-v-575ccba7"]]),ve="IFormGroup",qi=c({name:ve,mixins:[R],provide(){return{formGroup:this}},props:{color:{type:String,default:u(ve,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{type:String,default:u(ve,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline,"-required":this.required}}},methods:{onBlur(e,t){var i,a;(a=(i=this.parent)==null?void 0:i.onBlur)==null||a.call(i,this.name?`${this.name}.${e}`:e,t)},onInput(e,t){var i,a;(a=(i=this.parent)==null?void 0:i.onInput)==null||a.call(i,this.name?`${this.name}.${e}`:e,t)}}}),Wi=["name"],Ui=p(qi,[["render",function(e,t,i,a,s,r){return l(),o("fieldset",{class:z(["form-group",e.classes]),name:e.name,role:"group"},[d(e.$slots,"default")],10,Wi)}]]),Hi=c({name:"IFormError",inject:{formGroup:{default:()=>({})},form:{default:()=>({})}},props:{for:{type:String,default:""},visible:{type:[Array,String],default:()=>["touched","dirty","invalid"]}},computed:{parent(){return this.formGroup.$?this.formGroup:this.form},schema(){return this.for!==""?M(this.parent.schema||{},`${this.for}`):this.parent.schema||{}},errors(){return this.schema.errors||[]},isVisible(){let e=!0;return this.schema&&this.visible&&[].concat(this.visible).forEach(t=>{e=e&&this.schema[t]}),e}}}),Qi={key:0,class:"form-error","aria-live":"polite"},Yi=p(Hi,[["render",function(e,t,i,a,s,r){return e.schema?$((l(),V(L,{key:0,name:"fade-in-transition"},{default:y(()=>[e.errors.length>0?(l(),o("ul",Qi,[(l(!0),o(j,null,X(e.errors,n=>(l(),o("li",null,_(n.message),1))),256))])):f("",!0)]),_:1},512)),[[x,e.isVisible]]):f("",!0)}]]),et="IFormLabel",Ji=c({name:et,mixins:[R],props:{for:{type:String,default:""},placement:{type:String,default:""},size:{type:String,default:u(et,"size"),validator:v}},computed:{classes(){return{[`-${this.size}`]:!!this.size,[`-${this.placement}`]:!!this.placement}},forAttr(){return this.for}},methods:{getNextSibling(){return this.$el.nextSibling.querySelector("input, textarea")},onClick(){var e;this.for||((e=this.getNextSibling())==null||e.focus())}}}),Xi=["for"],ea=p(Ji,[["render",function(e,t,i,a,s,r){return l(),o("label",h(e.$attrs,{class:["form-label",e.classes],for:e.forAttr,onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),[d(e.$slots,"default")],16,Xi)}]]),tt="IHamburgerMenu",kt=p(c({name:tt,inheritAttrs:!1,props:{animation:{type:String,default:"close"},color:{type:String,default:u(tt,"color")},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{classes(){return{...g(this),"-active":this.modelValue,[`-${this.animation}`]:!0}}},methods:{onClick(){this.$emit("update:modelValue",!this.modelValue)}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["hamburger-menu",e.classes],onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),t[1]||(t[1]=[m("span",{class:"hamburger-menu-bars"},null,-1)]),16)}]]),Me={};for(const e of je)for(const t of["start","center","end","top","middle","bottom","around","between","reverse"])Me[`${t}${Re(e)}`]={type:Boolean,default:!1};const qe=p(c({name:"IRow",inheritAttrs:!1,props:{noGutter:{type:Boolean,default:!1},noCollapse:{type:Boolean,default:!1},...Me},computed:{classes(){const e=Object.keys(Me).reduce((t,i)=>(this[i]&&(t[rt(`-${i}`,this[i])]=!0),t),{});return{"-no-gutter":this.noGutter,"-no-collapse":this.noCollapse,...e}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["row",e.classes]}),[d(e.$slots,"default")],16)}]]),ge="IHeader",ta=p(c({name:ge,components:{IContainer:Ke,IRow:qe,IColumn:Ze},inheritAttrs:!1,props:{color:{type:String,default:u(ge,"color")},cover:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},size:{type:String,default:u(ge,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-cover":this.cover,"-fullscreen":this.fullscreen}}}}),[["render",function(e,t,i,a,s,r){const n=A("i-column"),b=A("i-row"),B=A("i-container");return l(),o("header",h(e.$attrs,{class:["header",e.classes]}),[I(B,{fluid:e.fluid},{default:y(()=>[I(b,null,{default:y(()=>[I(n,null,{default:y(()=>[d(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["fluid"])],16)}]]),it="IIcon",$t=p(c({name:it,inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:String,default:u(it,"size"),validator:v}},setup(e){const t=Vt("inklineIcons"),i=se(()=>function(r,n="dash"){const b=n==="dash"?/-([a-z0-9])/g:/_([a-z0-9])/g;return r.replace(b,(B,F)=>F.toUpperCase())}(e.name)),a=se(()=>t[i.value]),s=se(()=>({"inkline-icon":!0,[`-${e.size}`]:!!e.size}));return Ot(()=>{i.value&&t[i.value]}),()=>{var r,n;return nt("svg",{class:s.value,...(r=a.value)==null?void 0:r.attributes},ct(((n=a.value)==null?void 0:n.children)||[]))}}}),[["render",function(e,t,i,a,s,r){const n=A("icon");return l(),V(n,h(e.$attrs,{size:e.size}),null,16,["size"])}]]),ke="IInput",ia=c({name:ke,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(ke,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:[Array,Boolean],default:()=>["touched","dirty","invalid"]},id:{type:String,default:void 0},modelValue:{type:[String,Number],default:""},name:{type:[String,Number],default:()=>S("input")},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(ke,"size"),validator:v},tabindex:{type:[Number,String],default:0},type:{type:String,default:"text"},clearAriaLabel:{type:String,default:"Clear"}},emits:["update:modelValue","clear"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-error":this.hasError,"-readonly":this.isReadonly,"-prefixed":!!this.$slots.prefix,"-suffixed":!!this.$slots.suffix,"-prepended":!!this.$slots.prepend,"-appended":!!this.$slots.append}},hasError(){if(typeof this.error=="boolean")return this.error;if(this.schema&&this.error){let e=!0;return[].concat(this.error).forEach(t=>{e=e&&this.schema[t]}),e}return!1},tabIndex(){return this.isDisabled?-1:this.tabindex},isClearable(){return this.clearable&&!this.isDisabled&&!this.isReadonly&&this.value!==""},value(){return this.schema?this.schema.value:this.modelValue}},methods:{onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)},onInput(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.value),this.$emit("update:modelValue",e.target.value)},onClear(e){this.$emit("update:modelValue",""),this.$emit("clear",e)},focus(){this.$refs.input.focus()}}}),aa={key:0,class:"input-prepend"},sa={class:"input"},na={key:0,class:"input-prefix"},la=["value","name","id","type","tabindex","disabled","aria-disabled","readonly","aria-readonly"],ra={key:1,class:"input-suffix"},oa=["aria-label","aria-hidden"],da={key:1,class:"input-append"},te=p(ia,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["input-wrapper",e.classes])},[e.$slots.prepend?(l(),o("div",aa,[d(e.$slots,"prepend")])):f("",!0),m("div",sa,[e.$slots.prefix?(l(),o("span",na,[d(e.$slots,"prefix")])):f("",!0),m("input",h(e.$attrs,{value:e.value,ref:"input",name:e.name,id:e.id,type:e.type,tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly||e.plaintext,"aria-readonly":!(!e.isReadonly&&!e.plaintext)&&"true",onInput:t[0]||(t[0]=(...n)=>e.onInput&&e.onInput(...n)),onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n))}),null,16,la),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",ra,[d(e.$slots,"clearable",{clear:e.onClear},()=>[e.clearable?$((l(),o("i",{key:0,class:"input-clear",role:"button","aria-label":e.clearAriaLabel,"aria-hidden":e.isClearable?"false":"true",onClick:t[2]||(t[2]=(...n)=>e.onClear&&e.onClear(...n))},null,8,oa)),[[x,e.isClearable]]):f("",!0)]),d(e.$slots,"suffix")])):f("",!0)]),e.$slots.append?(l(),o("div",da,[d(e.$slots,"append")])):f("",!0)],2)}]]),$e="INumberInput",ua=c({name:$e,components:{IButton:vt},extends:te,inheritAttrs:!1,props:{color:{type:String,default:u($e,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:""},modelValue:{type:[String,Number],default:""},name:{type:[String,Number],default:()=>S("input")},readonly:{type:Boolean,default:!1},size:{type:String,default:u($e,"size"),validator:v},tabindex:{type:[Number,String],default:0},min:{type:[Number,String],default:-1/0},max:{type:[Number,String],default:1/0},precision:{type:Number,default:0},step:{type:Number,default:1}},emits:["update:modelValue"],watch:{modelValue:{immediate:!0,handler(e){var i,a;let t=(e||"").toString().replace(/^[^0-9-]/,"").replace(/^(-)[^0-9]/,"$1").replace(new RegExp(`^(-?[0-9]+)[^0-9${this.precision>0?".":""}]`),"$1");this.precision>0&&(t=t.replace(/^(-?[0-9]+\.)[^0-9]/,"$1").replace(new RegExp(`^(-?[0-9]+\\.[0-9]{0,${this.precision}}).*`),"$1")),parseFloat(t)>=parseFloat(this.max)&&(t=this.max.toString()),parseFloat(t)<=parseFloat(this.min)&&(t=this.min.toString()),(a=(i=this.parent).onInput)==null||a.call(i,this.name,t),this.$emit("update:modelValue",t)}}},methods:{decrease(){this.$emit("update:modelValue",this.formatPrecision((Number(this.modelValue)-this.step).toString()))},increase(){this.$emit("update:modelValue",this.formatPrecision((Number(this.modelValue)+this.step).toString()))},formatPrecision(e){const t=e.split(".");let i=t[1]||"";for(let a=i.length;a0?`${t[0]}.${i}`:t[0]},onBlurFormatPrecision(e){var t,i;this.$emit("update:modelValue",this.formatPrecision(Number(this.modelValue).toString())),(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),ca={class:"input-prepend"},pa={class:"input"},ha={key:0,class:"input-prefix"},ma=["value","name","id","tabindex","disabled","aria-disabled","readonly","aria-readonly"],fa={key:1,class:"input-suffix"},ba=["aria-label","aria-hidden"],ya={class:"input-append"},va=p(ua,[["render",function(e,t,i,a,s,r){const n=A("i-button");return l(),o("div",{class:z(["input-wrapper -prepended -appended",e.classes])},[m("div",ca,[d(e.$slots,"prepend"),I(n,{type:"button",color:e.color,size:e.size,disabled:e.disabled,class:"input-button-decrease",onClick:e.decrease},{default:y(()=>t[3]||(t[3]=[P(" - ")])),_:1},8,["color","size","disabled","onClick"])]),m("div",pa,[e.$slots.prefix?(l(),o("span",ha,[d(e.$slots,"prefix")])):f("",!0),m("input",h(e.$attrs,{value:e.value,ref:"input",name:e.name,id:e.id,type:"text",tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly,"aria-readonly":!!e.isReadonly&&"true",onInput:t[0]||(t[0]=(...b)=>e.onInput&&e.onInput(...b)),onBlur:t[1]||(t[1]=(...b)=>e.onBlur&&e.onBlur(...b))}),null,16,ma),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",fa,[d(e.$slots,"clearable",{clear:e.onClear},()=>[e.clearable?$((l(),o("i",{key:0,class:"input-clear",role:"button","aria-label":e.clearAriaLabel,"aria-hidden":e.isClearable?"false":"true",onClick:t[2]||(t[2]=(...b)=>e.onClear&&e.onClear(...b))},null,8,ba)),[[x,e.isClearable]]):f("",!0)]),d(e.$slots,"suffix")])):f("",!0)]),m("div",ya,[I(n,{type:"button",color:e.color,size:e.size,disabled:e.disabled,class:"input-button-increase",onClick:e.increase},{default:y(()=>t[4]||(t[4]=[P(" + ")])),_:1},8,["color","size","disabled","onClick"]),d(e.$slots,"append")])],2)}]]),we="ITextarea",ga=c({name:we,extends:te,inheritAttrs:!1,props:{color:{type:String,default:u(we,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:""},modelValue:{type:String,default:""},name:{type:[String,Number],default:()=>S("textarea")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(we,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"]}),ka={key:0,class:"input-prepend"},$a={class:"input"},wa={key:0,class:"input-prefix"},Ia=["value","name","id","tabindex","disabled","aria-disabled","readonly","aria-readonly"],xa={key:1,class:"input-suffix"},Ca={key:1,class:"input-append"},Sa=p(ga,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["input-wrapper",e.classes])},[e.$slots.prepend?(l(),o("div",ka,[d(e.$slots,"prepend")])):f("",!0),m("div",$a,[e.$slots.prefix?(l(),o("span",wa,[d(e.$slots,"prefix")])):f("",!0),m("textarea",h(e.$attrs,{value:e.value,ref:"input",role:"textbox",name:e.name,id:e.id,tabindex:e.tabIndex,disabled:e.isDisabled,"aria-disabled":!!e.isDisabled&&"true",readonly:e.isReadonly,"aria-readonly":!!e.isReadonly&&"true","aria-multiline":"true",onInput:t[0]||(t[0]=(...n)=>e.onInput&&e.onInput(...n)),onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n))}),null,16,Ia),e.$slots.suffix||e.clearable&&e.isClearable?(l(),o("span",xa,[d(e.$slots,"clearable",{clear:e.onClear},()=>[$(m("i",{class:"input-clear","aria-label":"Clear",onClick:t[2]||(t[2]=(...n)=>e.onClear&&e.onClear(...n))},null,512),[[x,e.isClearable]])]),d(e.$slots,"suffix")])):f("",!0)]),e.$slots.append?(l(),o("div",Ca,[d(e.$slots,"append")])):f("",!0)],2)}]]),Ba=p(c({name:"ILayout",inheritAttrs:!1,props:{vertical:{type:Boolean,default:!1}},computed:{classes(){return{"-vertical":this.vertical}}}}),[["render",function(e,t,i,a,s,r){return l(),o("main",h(e.$attrs,{class:["layout",e.classes]}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-9a9f03c1"]]),za=c({name:"ILayoutAside",inheritAttrs:!1}),Aa={class:"layout-aside-children"},Va=p(za,[["render",function(e,t,i,a,s,r){return l(),o("aside",h(e.$attrs,{class:"layout-aside"}),[m("div",Aa,[d(e.$slots,"default",{},void 0,!0)])],16)}],["__scopeId","data-v-6e13c28d"]]),Oa=p(c({name:"ILayoutContent",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("section",h(e.$attrs,{class:"layout-content"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-5b197a5d"]]),La=p(c({name:"ILayoutFooter",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("footer",h(e.$attrs,{class:"layout-footer"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-31bd8dbc"]]),Da=p(c({name:"ILayoutHeader",inheritAttrs:!1}),[["render",function(e,t,i,a,s,r){return l(),o("header",h(e.$attrs,{class:"layout-header"}),[d(e.$slots,"default",{},void 0,!0)],16)}],["__scopeId","data-v-ece9ef9b"]]),Ie="IListGroup",Na=p(c({name:Ie,inheritAttrs:!1,props:{border:{type:Boolean,default:!0},color:{type:String,default:u(Ie,"color")},size:{type:String,default:u(Ie,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-border":this.border}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["list-group",e.classes],role:"list"}),[d(e.$slots,"default")],16)}]]),Ta=p(c({name:"IListGroupItem",mixins:[Z],inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{ariaDisabled(){return this.role==="link"?null:this.disabled?"true":"false"},classes(){return{"-active":this.active,"-disabled":this.disabled}},role(){return this.$attrs.to||this.$attrs.href?"link":"listitem"},tabIndex(){return this.disabled?-1:this.tabindex}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["list-group-item",e.classes],tag:e.tag,role:e.role,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.ariaDisabled}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["tag","role","tabindex","class","disabled","aria-disabled"])}]]),Pa=function(e){const t={};return(...i)=>{const a=JSON.stringify(i);return a in t||(t[a]=e(...i)),t[a]}}(function(e,t){if(!t)return[{text:e}];const i=[],a=e.toLowerCase(),s=t.toLowerCase();let r=0,n=0;for(;n=0;n=B?b:e.length,n&&(i.push({text:e.substring(r,n)}),r=n),B&&(n+=t.length,i.push({text:e.substring(r,n),marked:!0}),r=n)}return i}),Ra=c({name:"IMark",inheritAttrs:!1,props:{text:{type:String,default:""},query:{type:String,default:""}},computed:{parts(){return Pa(this.text,this.query)}}}),Ea={key:0},wt=p(Ra,[["render",function(e,t,i,a,s,r){return l(),o("span",Lt(Dt(e.$attrs)),[(l(!0),o(j,null,X(e.parts,({text:n,marked:b})=>(l(),o(j,null,[b?(l(),o("mark",Ea,_(n),1)):(l(),o(j,{key:1},[P(_(n),1)],64))],64))),256))],16)}]]),Ma=c({name:"IMedia",inheritAttrs:!1}),_a={class:"media-body"},Fa=p(Ma,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:"media"}),[d(e.$slots,"image"),m("div",_a,[d(e.$slots,"default")])],16)}]]),C={instances:{},stack:[],zIndex:1050,register(e){e&&e.name&&(C.instances[e.name]=e)},unregister(e){e&&e.name&&(C.instances[e.name]=null,delete C.instances[e.name])},open(e){typeof window<"u"&&(C.stack.push(e),C.instances[e].$el.style.zIndex=C.zIndex++)},close(e){typeof window<"u"&&C.stack.splice(C.stack.indexOf(e),1)},getTopOverlay(){const e=C.stack.slice(-1)[0]||"";return C.instances[e]},onPressEscape(){const e=C.getTopOverlay();e&&e.closeOnPressEscape&&e.hide()}};typeof window<"u"&&window.addEventListener("keydown",e=>{k("esc",e)&&C.onPressEscape()});const xe="IModal",ja=c({name:xe,directives:{ClickOutside:K},inheritAttrs:!1,props:{closeOnPressEscape:{type:Boolean,default:!0},closeAriaLabel:{type:String,default:"Close"},color:{type:String,default:u(xe,"color")},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},name:{type:String,default:()=>S("modal")},showClose:{type:Boolean,default:!0},size:{type:String,default:u(xe,"size"),validator:v},modelValue:{type:Boolean,default:!1},transition:{type:String,default:"zoom-in-center-transition"}},emits:["update:modelValue"],data(){return{visible:this.modelValue}},computed:{classes(){return{"-disabled":this.disabled,...g(this),[`-${this.size}`]:!!this.size}}},watch:{modelValue(e){e?this.show():this.hide()}},mounted(){C.register(this)},unmounted(){C.unregister(this)},methods:{show(){this.disabled||(this.visible=!0,this.$emit("update:modelValue",!0),C.open(this.name),typeof window<"u"&&_e(window.document.body,"-modal"))},hide(){this.disabled||(this.visible=!1,this.$emit("update:modelValue",!1),C.close(this.name),typeof window<"u"&&pt(window.document.body,"-modal"))},onClickOutside(){this.hideOnClickOutside&&this.hide()}}}),Ga=["aria-hidden","id","name","aria-labelledby"],Za={class:"modal"},Ka=["id"],qa=["aria-label"],Wa={key:1,class:"modal-body"},Ua={key:2,class:"modal-footer"},Ha=p(ja,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return l(),V(L,{name:"fade-in-transition"},{default:y(()=>[$(m("div",h(e.$attrs,{class:["modal-wrapper",e.classes],role:"dialog","aria-modal":"true","aria-hidden":e.visible?"false":"true",id:e.name,name:e.name,"aria-labelledby":`${e.name}-header`}),[I(L,{name:e.transition},{default:y(()=>[$((l(),o("div",Za,[e.$slots.header?(l(),o("div",{key:0,class:"modal-header",id:`${e.name}-header`},[d(e.$slots,"header"),e.showClose?(l(),o("button",{key:0,class:"close","aria-hidden":"true","aria-label":e.closeAriaLabel,onClick:t[0]||(t[0]=(...b)=>e.hide&&e.hide(...b))},[d(e.$slots,"close",{},()=>[t[1]||(t[1]=m("i",{class:"icon"},null,-1))])],8,qa)):f("",!0)],8,Ka)):f("",!0),e.$slots.default?(l(),o("div",Wa,[d(e.$slots,"default")])):f("",!0),e.$slots.footer?(l(),o("div",Ua,[d(e.$slots,"footer")])):f("",!0)])),[[n,e.onClickOutside],[x,e.visible]])]),_:3},8,["name"])],16,Ga),[[x,e.visible]])]),_:3})}]]),Ce="INav",Qa=p(c({name:Ce,provide(){return{nav:this}},inject:{navbar:{default:()=>({onItemClick:()=>{}})},sidebar:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{color:{type:String,default:u(Ce,"color")},size:{type:String,default:u(Ce,"size"),validator:v},vertical:{type:Boolean,default:!1}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-vertical":this.vertical}}},methods:{onItemClick(){[this.navbar,this.sidebar].forEach(e=>{e.onItemClick()})}}}),[["render",function(e,t,i,a,s,r){return l(),o("nav",h(e.$attrs,{class:["nav",e.classes],role:"menubar"}),[d(e.$slots,"default")],16)}]]),Ya=p(c({name:"INavItem",mixins:[Z],inject:{nav:{default:()=>({onItemClick:()=>{}})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1},tag:{type:String,default:"div"},tabindex:{type:[Number,String],default:0}},computed:{ariaDisabled(){return this.role==="link"?null:this.disabled?"true":"false"},classes(){return{"-active":this.active,"-disabled":this.disabled}},role(){return this.$attrs.to||this.$attrs.href?"link":"menuitem"},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(e){this.stopPropagation||this.nav.onItemClick(this,e)}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:["nav-item",e.classes],role:e.role,tag:e.tag,tabindex:e.tabIndex,disabled:e.disabled,"aria-disabled":e.ariaDisabled,onClick:e.onClick}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["role","tag","tabindex","class","disabled","aria-disabled","onClick"])}]]),Se="INavbar",Ja=p(c({name:Se,components:{IContainer:Ke,IRow:qe,IColumn:Ze,IHamburgerMenu:kt},directives:{ClickOutside:K},mixins:[ft],provide(){return{navbar:this}},inheritAttrs:!1,props:{collapseOnItemClick:{type:Boolean,default:!0},collapseOnClickOutside:{type:Boolean,default:!0},color:{type:String,default:u(Se,"color")},fluid:{type:Boolean,default:!1},size:{type:String,default:u(Se,"size"),validator:v},menuAnimation:{type:String,default:"close"}},emits:["update:modelValue"],computed:{classes(){return{...this.collapsibleClasses,...g(this),[`-${this.size}`]:!!this.size}}},methods:{onItemClick(){this.collapseOnItemClick&&this.open&&this.setOpen(!1)},onClickOutside(){this.collapseOnClickOutside&&this.open&&this.setOpen(!1)}}}),[["render",function(e,t,i,a,s,r){const n=A("i-hamburger-menu"),b=A("i-column"),B=A("i-row"),F=A("i-container"),w=G("click-outside");return $((l(),o("nav",h(e.$attrs,{class:["navbar",e.classes]}),[I(F,{fluid:e.fluid},{default:y(()=>[I(B,null,{default:y(()=>[I(b,null,{default:y(()=>[I(n,{class:"collapse-toggle",animation:e.menuAnimation,color:e.color,modelValue:e.open,"onUpdate:modelValue":e.toggleOpen},null,8,["animation","color","modelValue","onUpdate:modelValue"]),d(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["fluid"])],16)),[[w,e.onClickOutside]])}]]),Xa=p(c({name:"INavbarBrand",mixins:[Z],inheritAttrs:!1,props:{tag:{type:String,default:"div"}}}),[["render",function(e,t,i,a,s,r){return l(),V(Y(e.isTag),h(e.$attrs,{class:"navbar-brand",tag:e.tag,translate:"no"}),{default:y(()=>[d(e.$slots,"default")]),_:3},16,["tag"])}]]),es=c({name:"INavbarCollapsible",components:{IExpandTransition:gt},inject:{navbar:{default:()=>({})}},inheritAttrs:!1,computed:{visible(){const e=typeof window>"u";return this.navbar.open||!this.navbar.collapsible||e}}}),ts=["aria-hidden","aria-expanded"],is=p(es,[["render",function(e,t,i,a,s,r){const n=A("i-expand-transition");return l(),V(n,null,{default:y(()=>[$(m("div",h(e.$attrs,{class:"navbar-collapsible","aria-hidden":e.visible?"false":"true","aria-expanded":e.visible?"true":"false"}),[d(e.$slots,"default")],16,ts),[[x,e.visible]])]),_:3})}]]),Be="IPagination",as=c({name:Be,inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Pagination"},color:{type:String,default:u(Be,"color")},itemsPerPage:{type:Number,default:20},itemsTotal:{type:Number,default:0},limit:{type:[Number,Object],default:()=>({xs:3,sm:5})},quickLink:{type:Boolean,default:!1},modelValue:{type:Number,default:1},size:{type:String,default:u(Be,"size"),validator:v}},emits:["update:modelValue"],data:()=>({pageLimit:5}),computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}},pageCount(){return Math.ceil(this.itemsTotal/this.itemsPerPage)},showQuickPrevious(){return this.pageCount>this.pageLimit&&this.modelValue>this.pageLimit-(this.pageLimit-1)/2},showQuickNext(){return this.pageCount>this.pageLimit&&this.modelValuee.apply(s,a),t)}}(this.onWindowResize,250),typeof window<"u"&&(window.addEventListener("resize",this.debouncedOnWindowResize),this.onWindowResize())},unmounted(){typeof window<"u"&&window.removeEventListener("resize",this.debouncedOnWindowResize)},methods:{next(){this.modelValue!==this.pageCount&&this.onClick(this.modelValue+1)},quickNext(){if(!this.quickLink)return;const e=this.modelValue+(this.pageLimit-2);this.onClick(e>this.pageCount?this.pageCount:e)},previous(){this.modelValue!==1&&this.onClick(this.modelValue-1)},quickPrevious(){if(!this.quickLink)return;const e=this.modelValue-(this.pageLimit-2);this.onClick(e<1?1:e)},onClick(e){this.$emit("update:modelValue",e)},onWindowResize(){if(typeof this.limit=="number")return this.pageLimit=this.limit,this.pageLimit;for(const e of je.slice().reverse())if(this.limit.hasOwnProperty(e)&&typeof window<"u"&&window.innerWidth>=J[e][0])return this.pageLimit=this.limit[e],this.pageLimit}}}),ss=["aria-label"],ns={class:"pagination-items"},ls={"aria-hidden":"true"},rs=["aria-current","onClick"],os={"aria-hidden":"true"},ds=p(as,[["render",function(e,t,i,a,s,r){return l(),o("nav",h(e.$attrs,{class:["pagination",e.classes],role:"navigation","aria-label":e.ariaLabel}),[m("ul",ns,[e.pageCount>0?(l(),o("li",{key:0,class:z(["pagination-item -previous",{"-disabled":e.modelValue===1}]),onClick:t[0]||(t[0]=(...n)=>e.previous&&e.previous(...n))},[m("span",ls,[d(e.$slots,"previous",{},()=>[t[6]||(t[6]=P("<"))])])],2)):f("",!0),e.pageCount>0?(l(),o("li",{key:1,class:z(["pagination-item -first",{"-active":e.modelValue===1}]),onClick:t[1]||(t[1]=n=>e.onClick(1))}," 1 ",2)):f("",!0),e.showQuickPrevious?(l(),o("li",{key:2,class:z(["pagination-item -quick-previous",{"-disabled":!e.quickLink}]),onClick:t[2]||(t[2]=(...n)=>e.quickPrevious&&e.quickPrevious(...n))}," … ",2)):f("",!0),(l(!0),o(j,null,X(e.pages,n=>(l(),o("li",{class:z(["pagination-item",{"-active":e.modelValue===n}]),"aria-current":e.modelValue===n&&"page",onClick:b=>e.onClick(n)},_(n),11,rs))),256)),e.showQuickNext?(l(),o("li",{key:3,class:z(["pagination-item -quick-next",{"-disabled":!e.quickLink}]),onClick:t[3]||(t[3]=(...n)=>e.quickNext&&e.quickNext(...n))}," … ",2)):f("",!0),e.pageCount>1?(l(),o("li",{key:4,class:z(["pagination-item -last",{"-active":e.modelValue===e.pageCount}]),onClick:t[4]||(t[4]=n=>e.onClick(e.pageCount))},_(e.pageCount),3)):f("",!0),e.pageCount>0?(l(),o("li",{key:5,class:z(["pagination-item -next",{"-disabled":e.modelValue===e.pageCount}]),onClick:t[5]||(t[5]=(...n)=>e.next&&e.next(...n))},[m("span",os,[d(e.$slots,"next",{},()=>[t[7]||(t[7]=P(">"))])])],2)):f("",!0)])],16,ss)}]]),ze="IPopover",us=c({name:ze,directives:{ClickOutside:K},mixins:[ee,Ge],inheritAttrs:!1,props:{color:{type:String,default:u(ze,"color")},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},name:{type:String,default:()=>S("popover")},arrow:{type:Boolean,default:!0},placement:{type:String,default:"top"},trigger:{type:[String,Array],default:()=>["click"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!1},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(ze,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)}}}),cs=["id"],ps=["aria-describedby","aria-disabled","aria-expanded"],hs=["id","aria-hidden"],ms={key:0,"data-popper-arrow":""},fs={key:1,class:"popover-header"},bs={key:2,class:"popover-body"},ys={key:3,class:"popover-footer"},vs=p(us,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["popover-wrapper",e.classes],ref:"wrapper",id:e.name,onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))}),[m("div",{class:"popover-trigger",ref:"trigger","aria-describedby":`${e.name}-popup`,"aria-disabled":e.disabled?"true":"false","aria-expanded":e.visible?"true":"false"},[d(e.$slots,"default")],8,ps),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:"popover",ref:"popup",role:"tooltip","aria-live":"polite",id:`${e.name}-popup`,"aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",ms)):f("",!0),e.$slots.header?(l(),o("div",fs,[d(e.$slots,"header")])):f("",!0),e.$slots.body?(l(),o("div",bs,[d(e.$slots,"body")])):f("",!0),e.$slots.footer?(l(),o("div",ys,[d(e.$slots,"footer")])):f("",!0)],8,hs),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,cs)),[[n,e.onClickOutside]])}]]),Ae="IProgress",gs=p(c({name:Ae,provide(){return{progress:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Ae,"color")},min:{type:[String,Number],default:0},max:{type:[String,Number],default:100},size:{type:String,default:u(Ae,"size"),validator:v}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}}}),[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["progress",e.classes]}),[d(e.$slots,"default")],16)}]]),at="IProgressBar",ks=c({name:at,inject:{progress:{default:()=>({min:0,max:100})}},inheritAttrs:!1,props:{color:{type:String,default:u(at,"color","primary")},value:{type:[String,Number],default:0}},computed:{computedValue(){const e=typeof this.min=="string"?parseFloat(this.min):this.min;return 100*((typeof this.value=="string"?parseFloat(this.value.replace("%","")):this.value)-e)/((typeof this.max=="string"?parseFloat(this.max):this.max)-e)},min(){return this.progress.min},max(){return this.progress.max},style(){return{width:`${this.computedValue}%`}},classes(){return{...g(this)}}}}),$s=["aria-valuemin","aria-valuemax","aria-valuenow"],ws=p(ks,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["progress-bar",e.classes],style:e.style,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.computedValue}),[d(e.$slots,"default")],16,$s)}]]),Ve="IRadio",Is=c({name:Ve,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(Ve,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:""},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("radio")},native:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Ve,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-native":this.native}},checked(){return this.formGroup.checked===this.value},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i,a,s;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),(s=(a=this.formGroup).onChange)==null||s.call(a,this.value),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),xs=["checked","name","disabled","readonly",".indeterminate"],Cs=["aria-checked","aria-disabled","aria-readonly","tabindex"],Ss=p(Is,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["radio",e.classes],role:"radio"}),[m("input",{checked:e.checked,ref:"input",type:"radio",tabindex:"-1",name:e.name,disabled:e.isDisabled,readonly:e.isReadonly,".indeterminate":e.indeterminate,onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,xs),m("label",{class:"radio-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onBlur:t[1]||(t[1]=(...n)=>e.onBlur&&e.onBlur(...n)),onClick:t[2]||(t[2]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,Cs)],16)}]]),Oe="IRadioGroup",Bs=c({name:Oe,mixins:[R],provide(){return{formGroup:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Oe,"color")},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},modelValue:{default:""},name:{type:[String,Number],default:()=>S("radio-group")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Oe,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly,"-inline":this.inline}},checked(){return this.schema?this.schema.value:this.modelValue}},methods:{onChange(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e),this.$emit("update:modelValue",e)}}}),zs=["name"],As=p(Bs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["form-group radio-group",e.classes],name:e.name,role:"radiogroup"}),[d(e.$slots,"default",{},void 0,!0)],16,zs)}],["__scopeId","data-v-fa4fe77a"]]),Vs=c({name:"ISelectOption",inject:{select:{default:()=>({})}},inheritAttrs:!1,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,default:""},tabindex:{type:[Number,String],default:0},value:{type:[Object,String,Number],default:()=>({})}},computed:{ariaDisabled(){return this.disabled?"true":"false"},ariaSelected(){return this.active?"true":"false"},isActive(){return this.active||this.value===this.select.modelValue},classes(){return{"-active":this.isActive,"-disabled":this.disabled}},tabIndex(){return this.disabled?-1:this.tabindex}},methods:{onClick(){this.disabled||this.select.onInput(this.value,this.label)}}}),Os=["tabindex","aria-disabled","aria-selected"],It=p(Vs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["select-option",e.classes],role:"option",tabindex:e.tabIndex,"aria-disabled":e.ariaDisabled,"aria-selected":e.ariaSelected,onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))}),[d(e.$slots,"default",{},()=>[P(_(e.label),1)])],16,Os)}]]),Le="ISelect",Ls=c({name:Le,directives:{ClickOutside:K},components:{IInput:te,IIcon:$t,ISelectOption:It,IMark:wt},mixins:[R,ee],provide(){return{select:this}},props:{animationDuration:{type:Number,default:300},autocomplete:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},color:{type:String,default:u(Le,"color")},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},idField:{type:String,default:"id"},keydownTrigger:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},keydownItem:{type:Array,default:()=>["up","down","enter","space","tab","esc"]},label:{type:[String,Function],default:"label"},loading:{type:Boolean,default:!1},modelValue:{type:[Object,String,Number],default:null},minLength:{type:Number,default:0},name:{type:[String,Number],default:()=>S("select")},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},offset:{type:Number,default:6},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({modifiers:[...bt({offset:8}),{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect({state:e}){e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}}]})},readonly:{type:Boolean,default:!1},scrollTolerance:{type:Number,default:160},selectFirstOptionOnEnter:{type:Boolean,default:!0},size:{type:String,default:u(Le,"size"),validator:v},tabindex:{type:[Number,String],default:0},type:{type:String,default:"text"},total:{type:Number,default:void 0}},emits:["update:modelValue","search","pagination"],data(){return{animating:!1,visible:!1,inputValue:this.computeLabel(this.modelValue)||""}},computed:{wrapperClasses(){return{...g(this),[`-${this.size}`]:!!this.size}},popupClasses(){return{"-disabled":this.isDisabled,"-readonly":this.isReadonly}},tabIndex(){return this.isDisabled?-1:this.tabindex},isClearable(){return this.value&&this.clearable&&!this.isDisabled&&!this.isReadonly},value(){return this.schema?this.schema.value:this.modelValue},inputPlaceholder(){return this.value?this.computeLabel(this.value):this.placeholder}},watch:{value(e){this.inputValue=this.computeLabel(e)},inputValue(e){const t=this.inputMatchesLength(e),i=this.inputMatchesLabel(e);!t||i||this.animating||this.show(),this.$emit("search",this.inputValue)},options(){this.visible&&this.createPopper()}},methods:{onInput(e,t){var i,a;e.disabled||(this.hide(),t&&(this.inputValue=t),(a=(i=this.parent).onInput)==null||a.call(i,this.name,e),this.$emit("update:modelValue",e))},onClear(){this.animating=!0,this.$emit("update:modelValue",null),this.$nextTick(()=>{this.animating=!1})},onFocus(e){!this.value&&this.options.length===0||(this.autocomplete&&(this.inputValue=""),(!e.relatedTarget||!this.$refs.wrapper.contains(e.relatedTarget))&&this.inputShouldShowSelect(this.inputValue)&&this.show())},onBlur(e){var t,i;(!e.relatedTarget||!this.$refs.wrapper.contains(e.relatedTarget))&&(this.hide(),this.inputValue=this.computeLabel(this.value)),(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)},onClick(){this.autocomplete&&(this.inputValue=""),this.inputShouldShowSelect(this.inputValue)&&this.show()},onClickOutside(){this.hide()},onClickCaret(e){this.visible?this.onBlur(e):(this.focus(),this.onFocus(e)),e.preventDefault(),e.stopPropagation()},onScroll(){if(isNaN(this.total))return;const e=this.$refs.body.scrollTop+parseInt(getComputedStyle(this.$refs.body).height,10)>parseInt(getComputedStyle(this.$refs.options).height,10)-this.scrollTolerance,t=this.options.length>=this.total;e&&!t&&this.options.length>0&&!this.loading&&this.$emit("pagination")},onWindowResize(){this.onScroll(),this.visible&&this.$nextTick().then(()=>this.createPopper())},onTriggerKeyDown(e){if(this.keydownTrigger.length===0)return;const t=this.getFocusableItems(),i=t.findIndex(s=>s.active),a=t[i>-1?i:0];switch(!0){case(k("up",e)&&this.keydownTrigger.includes("up")):case(k("down",e)&&this.keydownTrigger.includes("down")):this.show(),setTimeout(()=>{a.focus()},this.visible?0:this.animationDuration),e.preventDefault(),e.stopPropagation();break;case(k("enter",e)&&this.keydownTrigger.includes("enter")):if(!this.selectFirstOptionOnEnter||this.value&&this.inputMatchesLabel(this.inputValue))this.onClick();else{const s=this.options.find(r=>!r.disabled);s&&(this.onInput(s),this.focus())}this.visible||setTimeout(()=>{a.focus()},this.animationDuration),e.preventDefault();break;case(k("tab",e)&&this.keydownTrigger.includes("tab")):case(k("esc",e)&&this.keydownTrigger.includes("esc")):this.hide()}},onItemKeyDown(e){if(this.keydownItem.length!==0)switch(!0){case(k("up",e)&&this.keydownItem.includes("up")):case(k("down",e)&&this.keydownItem.includes("down")):const t=this.getFocusableItems(),i=t.findIndex(r=>r===e.target),a=t.length-1;let s;s=k("up",e)?i>0?i-1:0:i{this.animating=!1},this.animationDuration))},focus(){this.$refs.trigger.focus()},getFocusableItems(){const e=[];for(const t of this.$refs.options.children)Fe(t)&&e.push(t);return e},getElementHeight(e){const t=getComputedStyle(e);return t.height?Math.ceil(parseFloat(t.height)):NaN},inputMatchesLabel(e){return this.value&&e===this.computeLabel(this.value)},inputMatchesLength(e){return this.minLength===0||e&&e.length>=this.minLength},inputShouldShowSelect(e){return!this.autocomplete||this.inputMatchesLength(e)&&!this.inputMatchesLabel(e)},computeLabel(e){return typeof e!="object"?this.inputValue:dt(this.label)?this.label(e):M(e,this.label)}}}),Ds=["id","name","aria-owns","aria-expanded"],Ns=["id","aria-hidden"],Ts={key:0,"data-popper-arrow":""},Ps={key:1,class:"select-header"},Rs={key:0,class:"select-no-results"},Es={class:"select-options",ref:"options"},Ms={key:2,class:"select-footer"},_s=p(Ls,[["render",function(e,t,i,a,s,r){const n=A("i-input"),b=A("i-mark"),B=A("i-select-option"),F=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["select-wrapper",e.wrapperClasses],id:e.name,name:e.name,ref:"wrapper",role:"combobox","aria-haspopup":"listbox","aria-owns":`${e.name}-options`,"aria-expanded":e.visible?"true":"false",onKeyup:t[3]||(t[3]=E((...w)=>e.onEscape&&e.onEscape(...w),["esc"]))}),[I(n,{modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=w=>e.inputValue=w),ref:"trigger",autocomplete:"off","aria-autocomplete":"both","aria-controls":`${e.name}-options`,disabled:e.isDisabled,readonly:e.isReadonly,tabindex:e.tabIndex,plaintext:!e.autocomplete,placeholder:e.inputPlaceholder,clearable:e.isClearable,color:e.color,size:e.size,name:`${e.name}-input`,onClick:e.onClick,onFocus:e.onFocus,onBlur:e.onBlur,onClear:e.onClear,onKeydown:e.onTriggerKeyDown},Nt({suffix:y(()=>[d(e.$slots,"suffix"),m("button",{class:"select-caret","aria-hidden":"true",role:"button",onClick:t[0]||(t[0]=(...w)=>e.onClickCaret&&e.onClickCaret(...w))})]),_:2},[e.$slots.prepend?{name:"prepend",fn:y(()=>[d(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:y(()=>[d(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots.append?{name:"append",fn:y(()=>[d(e.$slots,"append")]),key:"2"}:void 0]),1032,["modelValue","aria-controls","disabled","readonly","tabindex","plaintext","placeholder","clearable","color","size","name","onClick","onFocus","onBlur","onClear","onKeydown"]),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:z(["select",e.popupClasses]),id:`${e.name}-options`,role:"listbox",ref:"popup","aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",Ts)):f("",!0),e.$slots.header?(l(),o("div",Ps,[d(e.$slots,"header")])):f("",!0),m("div",{class:"select-body",ref:"body",onScroll:t[2]||(t[2]=(...w)=>e.onScroll&&e.onScroll(...w))},[e.$slots.default||e.options.length!==0?f("",!0):(l(),o("div",Rs,[d(e.$slots,"no-results",{},()=>[t[4]||(t[4]=P(" There are no results for your query. "))])])),m("div",Es,[d(e.$slots,"default"),(l(!0),o(j,null,X(e.options,w=>(l(),V(B,{key:w[e.idField],active:e.value&&e.value[e.idField]===w[e.idField],disabled:w.disabled,value:w,onKeydown:e.onItemKeyDown},{default:y(()=>[d(e.$slots,"option",{option:w},()=>[e.autocomplete&&e.inputValue!==e.computeLabel(w)?(l(),V(b,{key:0,text:e.computeLabel(w),query:e.inputValue},null,8,["text","query"])):(l(),o(j,{key:1},[P(_(e.computeLabel(w)),1)],64))])]),_:2},1032,["active","disabled","value","onKeydown"]))),128))],512)],544),e.$slots.footer?(l(),o("div",Ms,[d(e.$slots,"footer")])):f("",!0)],10,Ns),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,Ds)),[[F,e.onClickOutside]])}]]),De="ISidebar",Fs=c({name:De,mixins:[ft],provide(){return{sidebar:this}},inheritAttrs:!1,props:{ariaLabel:{type:String,default:"Sidebar"},collapseOnItemClick:{type:Boolean,default:!0},collapseOnClickOutside:{type:Boolean,default:!0},collapsePosition:{type:String,default:"absolute"},color:{type:String,default:u(De,"color")},placement:{type:String,default:"left"},size:{type:String,default:u(De,"size"),validator:v}},emits:["update:modelValue"],computed:{classes(){return{...this.collapsibleClasses,...g(this),[`-${this.size}`]:!!this.size,[`-collapse-${this.collapsePosition}`]:!0,[`-placement-${this.placement}`]:!0}},sidebarWrapperTransition(){return this.collapsePosition!=="relative"?"sidebar-wrapper-none-transition":"sidebar-wrapper-transition"},sidebarTransition(){return this.collapsePosition!=="relative"?"sidebar-transition":"sidebar-none-transition"}},methods:{onItemClick(){this.collapseOnItemClick&&this.open&&this.setOpen(!1)},onOverlayClick(){this.collapseOnClickOutside&&this.open&&this.setOpen(!1)}}}),js=["aria-label"],Gs={class:"sidebar"},Zs={class:"sidebar-content"},Ks=p(Fs,[["render",function(e,t,i,a,s,r){return l(),V(L,{name:e.sidebarWrapperTransition},{default:y(()=>[$(m("aside",h(e.$attrs,{role:"complementary",class:["sidebar-wrapper",e.classes],"aria-label":e.ariaLabel,ref:"wrapper"}),[I(L,{name:e.sidebarTransition},{default:y(()=>[$(m("div",Gs,[m("div",Zs,[d(e.$slots,"default")])],512),[[x,e.collapsePosition==="relative"||e.open||!e.collapsible]])]),_:3},8,["name"]),I(L,{name:"sidebar-overlay-transition"},{default:y(()=>[e.collapsePosition!=="relative"?$((l(),o("div",{key:0,class:"sidebar-overlay",onClick:t[0]||(t[0]=(...n)=>e.onOverlayClick&&e.onOverlayClick(...n))},null,512)),[[x,e.open]]):f("",!0)]),_:1})],16,js),[[x,e.open||!e.collapsible]])]),_:3},8,["name"])}]]),st="ITable",qs=c({name:st,inheritAttrs:!1,props:{border:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!0},nowrap:{type:Boolean,default:!1},color:{type:String,default:u(st,"color")}},computed:{classes(){return{...g(this),"-border":this.border,"-condensed":this.condensed,"-striped":this.striped,"-hover":this.hover,"-nowrap":this.nowrap,["-responsive"+(typeof this.responsive=="boolean"?"":`-${this.responsive}`)]:!!this.responsive}}}}),Ws={class:"table"},Us=p(qs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["table-wrapper",e.classes]}),[m("table",Ws,[d(e.$slots,"default")])],16)}]]),Ne="ITabs",Hs=c({name:Ne,provide(){return{tabs:this}},inheritAttrs:!1,props:{color:{type:String,default:u(Ne,"color")},modelValue:{type:String,default:""},size:{type:String,default:u(Ne,"size"),validator:v},stretch:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{active:this.modelValue,tabs:[]}},computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-stretch":this.stretch}}},watch:{modelValue(e){this.active=e}},methods:{setActive(e){this.active=e,this.$emit("update:modelValue",this.active)}}}),Qs={class:"tabs-header"},Ys=p(Hs,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["tabs",e.classes],role:"tablist","aria-multiselectable":"true"}),[m("div",Qs,[d(e.$slots,"header")]),d(e.$slots,"default")],16)}]]),Js=c({name:"ITab",inject:{tabs:{default:()=>({})}},props:{title:{type:String,default:""},name:{type:String,default:()=>S("tab")}},computed:{active(){return this.tabs.active===this.name},classes(){return{"-active":this.active}}}}),Xs=["name","aria-hidden","aria-labelledby"],en={class:"tab-body"},tn=p(Js,[["render",function(e,t,i,a,s,r){return $((l(),o("div",{class:z(["tab",e.classes]),role:"tabpanel",name:e.name,"aria-hidden":!e.active,"aria-labelledby":`tab-heading-${e.name}`},[m("div",en,[d(e.$slots,"default")])],10,Xs)),[[x,e.active]])}]]),an=c({name:"ITabTitle",inject:{tabs:{default:()=>({})}},props:{for:{type:String,default:()=>S("tab")}},computed:{active(){return this.tabs.active===this.for},classes(){return{"-active":this.active}},name(){return this.for}},methods:{onClick(){this.tabs.setActive(this.for)}}}),sn=["for","active","aria-expanded","aria-controls","aria-describedby"],nn=p(an,[["render",function(e,t,i,a,s,r){return l(),o("div",{class:z(["tab-title",e.classes]),role:"tab",for:e.name,active:e.active,"aria-expanded":e.active,"aria-controls":`tab-content-${e.name}`,"aria-describedby":`tab-content-${e.name}`,tabindex:"0",onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))},[d(e.$slots,"default")],10,sn)}]]),Te="IToggle",ln=c({name:Te,mixins:[R],inheritAttrs:!1,props:{color:{type:String,default:u(Te,"color")},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{default:!1},modelValue:{default:!1},name:{type:[String,Number],default:()=>S("toggle")},readonly:{type:Boolean,default:!1},size:{type:String,default:u(Te,"size"),validator:v},tabindex:{type:[Number,String],default:0}},emits:["update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size,"-disabled":this.isDisabled,"-readonly":this.isReadonly}},checked(){return this.schema?this.schema.value:this.modelValue},tabIndex(){return this.isDisabled?-1:this.tabindex}},methods:{clickInputRef(){this.isReadonly||this.$refs.input.click()},onChange(e){var t,i;(i=(t=this.parent).onInput)==null||i.call(t,this.name,e.target.checked),this.$emit("update:modelValue",e.target.checked)},onBlur(e){var t,i;(i=(t=this.parent).onBlur)==null||i.call(t,this.name,e)}}}),rn=["checked","disabled","readonly","aria-checked","aria-disabled","aria-readonly","name"],on=["aria-checked","aria-disabled","aria-readonly","tabindex"],dn=p(ln,[["render",function(e,t,i,a,s,r){return l(),o("div",h(e.$attrs,{class:["toggle",e.classes]}),[m("input",{ref:"input",type:"checkbox",checked:e.checked,disabled:e.isDisabled,readonly:e.isReadonly,"aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,name:e.name,onChange:t[0]||(t[0]=(...n)=>e.onChange&&e.onChange(...n))},null,40,rn),m("label",{class:"toggle-label","aria-checked":e.checked,"aria-disabled":e.isDisabled,"aria-readonly":e.isReadonly,tabindex:e.tabIndex,onClick:t[1]||(t[1]=(...n)=>e.clickInputRef&&e.clickInputRef(...n)),onBlur:t[2]||(t[2]=(...n)=>e.onBlur&&e.onBlur(...n)),onKeydown:t[3]||(t[3]=E(Q((...n)=>e.clickInputRef&&e.clickInputRef(...n),["stop","prevent"]),["space"]))},[d(e.$slots,"default")],40,on)],16)}]]),Pe="ITooltip",un=c({name:Pe,directives:{ClickOutside:K},mixins:[ee,Ge],inheritAttrs:!1,props:{color:{type:String,default:u(Pe,"color")},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},name:{type:String,default:()=>S("tooltip")},arrow:{type:Boolean,default:!0},placement:{type:String,default:"top"},trigger:{type:[String,Array],default:()=>["hover","focus"]},offset:{type:Number,default:6},interactable:{type:Boolean,default:!1},popperOptions:{type:Object,default:()=>({})},size:{type:String,default:u(Pe,"size"),validator:v}},emits:["click-outside","update:modelValue"],computed:{classes(){return{...g(this),[`-${this.size}`]:!!this.size}}},methods:{onEscape(){this.visible=!1,this.$emit("update:modelValue",!1)},handleClickOutside(e){this.visible=!1,this.$emit("update:modelValue",!1),this.onClickOutside(e)}}}),cn=["id"],pn=["aria-describedby","aria-disabled","aria-expanded"],hn=["id","aria-hidden"],mn={key:0,"data-popper-arrow":""},fn=p(un,[["render",function(e,t,i,a,s,r){const n=G("click-outside");return $((l(),o("div",h(e.$attrs,{class:["tooltip-wrapper",e.classes],ref:"wrapper",id:e.name,onKeyup:t[0]||(t[0]=E((...b)=>e.onEscape&&e.onEscape(...b),["esc"]))}),[m("div",{class:"tooltip-trigger",ref:"trigger","aria-describedby":`${e.name}-popup`,"aria-disabled":e.disabled?"true":"false","aria-expanded":e.visible?"true":"false"},[d(e.$slots,"default")],8,pn),I(L,{name:"zoom-in-top-transition",onAfterLeave:e.destroyPopper},{default:y(()=>[$(m("div",{class:"tooltip",ref:"popup",role:"tooltip","aria-live":"polite",id:`${e.name}-popup`,"aria-hidden":e.visible?"false":"true"},[e.arrow?(l(),o("span",mn)):f("",!0),d(e.$slots,"body")],8,hn),[[x,e.visible]])]),_:3},8,["onAfterLeave"])],16,cn)),[[n,e.onClickOutside]])}]]),vn=Object.freeze(Object.defineProperty({__proto__:null,IAlert:Jt,IBadge:Xt,IBreadcrumb:ii,IBreadcrumbItem:ni,IButton:vt,IButtonGroup:ui,ICard:fi,ICheckbox:ki,ICheckboxGroup:Ii,ICollapsible:Ci,ICollapsibleItem:Oi,IColumn:Ze,IContainer:Ke,IDropdown:_i,IDropdownDivider:Fi,IDropdownItem:ji,IForm:Ki,IFormError:Yi,IFormGroup:Ui,IFormLabel:ea,IHamburgerMenu:kt,IHeader:ta,IIcon:$t,IInput:te,ILayout:Ba,ILayoutAside:Va,ILayoutContent:Oa,ILayoutFooter:La,ILayoutHeader:Da,IListGroup:Na,IListGroupItem:Ta,ILoader:yt,IMark:wt,IMedia:Fa,IModal:Ha,INav:Qa,INavItem:Ya,INavbar:Ja,INavbarBrand:Xa,INavbarCollapsible:is,INumberInput:va,IPagination:ds,IPopover:vs,IProgress:gs,IProgressBar:ws,IRadio:Ss,IRadioGroup:As,IRow:qe,ISelect:_s,ISelectOption:It,ISidebar:Ks,ITab:tn,ITabTitle:nn,ITable:Us,ITabs:Ys,ITextarea:Sa,IToggle:dn,ITooltip:fn},Symbol.toStringTag,{value:"Module"}));export{yn as I,p as _,vn as c}; diff --git a/packages/modules/display_themes/cards/web/index.html b/packages/modules/display_themes/cards/web/index.html index e324dfa26f..3bbeb2b5a3 100644 --- a/packages/modules/display_themes/cards/web/index.html +++ b/packages/modules/display_themes/cards/web/index.html @@ -6,12 +6,12 @@ openWB Display - Cards - - - - + + + + - +