diff --git a/CHANGELOG.md b/CHANGELOG.md index 32b11096..e8df2b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Starting from v2.2.5, all notable changes to this project will be documented in this file. +## v2.11.9 + +- Show free disk space in banner instead of station UUID + ## v2.11.8 - Add earthquake event source API support of CEA and INGV diff --git a/VERSION b/VERSION index 4485bed5..1ac85de0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v2.11.8 +v2.11.9 diff --git a/frontend/dist/asset-manifest.json b/frontend/dist/asset-manifest.json index ae48be7e..8a8ade06 100644 --- a/frontend/dist/asset-manifest.json +++ b/frontend/dist/asset-manifest.json @@ -1,9 +1,9 @@ { "files": { "main.css": "./static/css/main.7a040865.css", - "main.js": "./static/js/main.6f5b5049.js", + "main.js": "./static/js/main.62b97fc9.js", "static/css/594.d6bfd15f.chunk.css": "./static/css/594.d6bfd15f.chunk.css", - "static/js/594.ef2a52fb.chunk.js": "./static/js/594.ef2a52fb.chunk.js", + "static/js/594.7755917b.chunk.js": "./static/js/594.7755917b.chunk.js", "static/js/846.88ce4ddb.chunk.js": "./static/js/846.88ce4ddb.chunk.js", "static/js/154.ce486a33.chunk.js": "./static/js/154.ce486a33.chunk.js", "static/js/600.a5f3996c.chunk.js": "./static/js/600.a5f3996c.chunk.js", @@ -49,6 +49,6 @@ }, "entrypoints": [ "static/css/main.7a040865.css", - "static/js/main.6f5b5049.js" + "static/js/main.62b97fc9.js" ] } \ No newline at end of file diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 1ce05cbd..e3e40a76 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -1 +1 @@ -
Loading...
\ No newline at end of file +
Loading...
\ No newline at end of file diff --git a/frontend/dist/static/js/594.ef2a52fb.chunk.js b/frontend/dist/static/js/594.7755917b.chunk.js similarity index 80% rename from frontend/dist/static/js/594.ef2a52fb.chunk.js rename to frontend/dist/static/js/594.7755917b.chunk.js index 49bac712..a6849b62 100644 --- a/frontend/dist/static/js/594.ef2a52fb.chunk.js +++ b/frontend/dist/static/js/594.7755917b.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunksrc=self.webpackChunksrc||[]).push([[594],{1385:(e,t,s)=>{s.d(t,{A:()=>l});s(9950);const l=s.p+"static/media/xmark-solid.33c889ee6afa3ed57684011608af6238.svg"},93202:(e,t,s)=>{s.d(t,{l:()=>c});s(9950);const l=s.p+"static/media/rss-solid.167813b1d681372ed1d98e45b6b6c0f7.svg";const o=s.p+"static/media/link-solid.49819f951200a220d9839699fbccd8de.svg";const a=s.p+"static/media/link-slash-solid.7893b9a51ad07ceedeb88c9649c58439.svg";var n=s(44414);const c=e=>{const{content:t,title:s,type:c,className:i}=e;let r="";switch(c){case"success":r="from-green-400 to-blue-500";break;case"warning":r="from-orange-400 to-orange-600";break;case"error":r="from-red-400 to-red-600"}return(0,n.jsx)("div",{className:"my-2 shadow-xl p-6 text-sm text-white rounded-lg bg-gradient-to-r ".concat(r," ").concat(null!==i&&void 0!==i?i:""),children:(0,n.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,n.jsxs)("div",{className:"flex gap-2 font-bold text-lg",children:[(0,n.jsx)("img",{className:"success"===c?"size-6":"hidden",src:l,alt:""}),(0,n.jsx)("img",{className:"warning"===c?"size-6":"hidden",src:o,alt:""}),(0,n.jsx)("img",{className:"error"===c?"size-6":"hidden",src:a,alt:""}),(0,n.jsx)("span",{children:s})]}),(0,n.jsx)("span",{className:"pl-3 text-md font-medium",children:t.split("\n").map((e=>(0,n.jsxs)("p",{children:[e,(0,n.jsx)("br",{})]},e)))})]})})}},40088:(e,t,s)=>{s.d(t,{t:()=>m});var l=s(9950),o=s(93461),a=s.n(o),n=s(11274),c=s(49027),i=s.n(c),r=s(67818),d=s(44414);const m=(0,l.forwardRef)(((e,t)=>{const s=.65*window.devicePixelRatio,{boost:o,title:c,series:m,height:u,legend:h,tooltip:f,zooming:x,animation:b,lineWidth:v,tickInterval:g,tickPrecision:p,lineColor:w,backgroundColor:j}=e,[y,k]=(0,l.useState)(!1);(0,l.useEffect)((()=>{k((()=>{if(window.WebGLRenderingContext){const e=document.createElement("canvas");return["webgl","experimental-webgl","webgl2","moz-webgl","webkit-3d"].some((t=>{try{return!!e.getContext(t)}catch(s){return!1}}))}return!1})())}),[]);const[E,S]=(0,l.useState)({chart:{zooming:x?{type:"x"}:{},marginTop:20,height:u,animation:b,backgroundColor:j},xAxis:{labels:{style:{color:"#fff"},format:"{value:%H:%M:%S}"},type:"datetime",tickColor:"#fff",lineColor:w},yAxis:{labels:{style:{color:"#fff"},format:p?"{value:".concat(p,"f}"):"{value:0.2f}"},title:{text:""},opposite:!0,lineColor:w,tickInterval:g},tooltip:{enabled:f,followPointer:!0,followTouchMove:!0,xDateFormat:"%Y-%m-%d %H:%M:%S",padding:12},legend:{enabled:h,itemStyle:{color:"#fff"}},plotOptions:{series:{lineWidth:v,turboThreshold:o?10:0,boostThreshold:o?1:0,states:{hover:{enabled:!1}}}},title:{text:c,style:{color:"#fff",fontSize:"10px",fontWeight:"normal"}},boost:{enabled:y,pixelRatio:s},accessibility:{enabled:!1},credits:{enabled:!1},time:{useUTC:!1},series:[m]}),{t:N}=(0,r.Bd)();return(0,l.useEffect)((()=>{i()(a())}),[]),(0,l.useEffect)((()=>{a().setOptions({lang:{resetZoom:N("components.chart.reset_zoom"),resetZoomTitle:N("components.chart.reset_zoom_title")}})}),[N]),(0,l.useEffect)((()=>{S((e=>({...e,chart:{...e.chart,height:u},title:{...e.title,text:c},boost:{...e.boost,enabled:y}})))}),[u,c,y]),(0,d.jsx)(n.HighchartsReact,{ref:t,options:E,highcharts:a()})}))},53768:(e,t,s)=>{s.d(t,{h:()=>i,R:()=>r});var l=s(9950);const o=s.p+"static/media/square-caret-up-solid.0573794ec033f5ce25c1076e3ac596e3.svg";const a=s.p+"static/media/ellipsis-solid.e3aced2a80c2b888104322b1ae60b47f.svg";var n=s(1385),c=s(44414);let i=function(e){return e[e.COLLAPSE_DISABLE=0]="COLLAPSE_DISABLE",e[e.COLLAPSE_SHOW=1]="COLLAPSE_SHOW",e[e.COLLAPSE_HIDE=2]="COLLAPSE_HIDE",e}({});const r=e=>{const{label:t,text:s,children:r,collapse:d,advanced:m}=e,[u,h]=(0,l.useState)(!1),[f,x]=(0,l.useState)(!1);(0,l.useEffect)((()=>{const e=null!==d&&void 0!==d?d:i.COLLAPSE_DISABLE;h(e===i.COLLAPSE_HIDE)}),[d]);const b=(null!==d&&void 0!==d?d:i.COLLAPSE_DISABLE)!==i.COLLAPSE_DISABLE;return(0,c.jsxs)("div",{className:"mb-4 flex flex-col rounded-xl text-gray-700 shadow-lg",children:[(0,c.jsx)("div",{className:"mx-4 rounded-lg overflow-hidden shadow-lg",children:r}),(0,c.jsxs)("div",{className:"p-4",children:[(0,c.jsxs)("h6",{className:"text-md font-bold text-gray-800 flex ".concat(b?"cursor-pointer select-none":""),onClick:()=>{b&&h(!u)},children:[b&&(0,c.jsx)("img",{className:"mx-1 ".concat(u?"rotate-180":""),src:o,alt:""}),t]}),s&&!u&&(0,c.jsx)("div",{className:"text-md pt-2",children:s.split("\n").map((e=>(0,c.jsx)("div",{children:e},e)))}),m&&(0,c.jsxs)("div",{className:"mt-2 space-y-2 ".concat(u?"hidden":"block"),children:[(0,c.jsxs)("div",{className:"mx-1 cursor-pointer",onClick:()=>{x(!f)},children:[(0,c.jsx)("img",{className:"size-4 ".concat(f?"hidden":"block"),src:a,alt:""}),(0,c.jsx)("img",{className:"size-4 ".concat(f?"block":"hidden"),src:n.A,alt:""})]}),(0,c.jsx)("div",{className:f?"block":"hidden",children:m})]})]})]})}},51682:(e,t,s)=>{s.d(t,{J:()=>o});var l=s(44414);const o=e=>{const{className:t,icon:s,label:o,value:a,unit:n,color:c}=e;return(0,l.jsx)("div",{className:"w-full p-2 ".concat(null!==t&&void 0!==t?t:""),children:(0,l.jsxs)("div",{className:"flex flex-row bg-gradient-to-r rounded-md p-4 shadow-xl ".concat(c?"from-indigo-500 via-purple-500 to-pink-500":"bg-gray-50 hover:bg-gray-100 transition-all"),children:[s&&(0,l.jsx)("img",{className:"bg-white p-2 rounded-md w-8 h-8 md:w-12 md:h-12 self-center",src:s,alt:""}),(0,l.jsxs)("div",{className:"flex flex-col flex-grow ".concat(s?"ml-5":""),children:[(0,l.jsx)("div",{className:"text-sm whitespace-nowrap ".concat(c?"text-gray-50":"text-gray-600"),children:o}),(0,l.jsx)("div",{className:"text-md font-medium flex-nowrap ".concat(c?"text-gray-100":"text-gray-800"),children:"".concat(a," ").concat(null!==n&&void 0!==n?n:"")})]})]})})}},66021:(e,t,s)=>{s.d(t,{$:()=>o});var l=s(9950);const o=(e,t,s)=>{const o=(0,l.useRef)((()=>{}));(0,l.useEffect)((()=>{o.current=e})),(0,l.useEffect)((()=>{s&&null!==t&&!1!==t&&o.current()}),[s,t]),(0,l.useEffect)((()=>{if(null===t||!1===t)return;const e=setInterval((()=>{o.current()}),t);return()=>{clearInterval(e)}}),[t])}},67317:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var l=s(67818),o=s(93202),a=s(55297),n=s(53768),c=s(51682),i=s(9950),r=s(40088),d=s(99810),m=s(49029),u=s(47113);const h=s.p+"static/media/location-dot-solid.763794361437464c10451de38cd290f7.svg";s(55392);var f=s(2527),x=s.n(f),b=s(44414);const v=e=>{const{className:t,minZoom:s,flyTo:l,maxZoom:o,zoom:a,tile:n,center:c,marker:r,scrollWheelZoom:f,zoomControl:v,dragging:g}=e,p=new(x().Icon)({iconUrl:h,iconAnchor:[9,24],iconSize:[18,25]}),w=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=w.current;e&&e.flyTo(c,a)}),[c,a,l]),(0,b.jsxs)(d.W,{ref:w,className:"z-0 w-full ".concat(null!==t&&void 0!==t?t:""),scrollWheelZoom:f,zoomControl:v,attributionControl:!1,doubleClickZoom:!1,dragging:g,maxZoom:o,minZoom:s,center:c,zoom:a,style:{cursor:"default"},children:[(0,b.jsx)(m.e,{url:n}),r&&(0,b.jsx)(u.p,{position:r,icon:p})]})};const g=s.p+"static/media/circle-check-solid.3fb46b8931cbbf9f966175f42b55a087.svg";const p=s.p+"static/media/bug-solid.7f781f9ddd35c29f11111e36602dcc87.svg";const w=s.p+"static/media/clock-solid.23025348eaec720a2439930b37d677ee.svg";var j=s(19325),y=s(38526);var k=s(66021);const E=()=>{var e;const[t,s]=(0,i.useState)({type:"warning",title:"views.home.banner.warning.title",content:"views.home.banner.warning.content"}),[d,m]=(0,i.useState)({messages:{color:!0,value:"0",icon:g,unit:"views.home.labels.messages.unit",label:"views.home.labels.messages.label"},errors:{color:!0,value:"0",icon:p,unit:"views.home.labels.errors.unit",label:"views.home.labels.errors.label"},offset:{color:!0,value:"0",icon:w,unit:"views.home.labels.offset.unit",label:"views.home.labels.offset.label"}}),[u,h]=(0,i.useState)({cpu:{chart:{height:250,lineWidth:5,backgroundColor:"#22c55e",ref:(0,i.useRef)(null),series:{type:"line",color:"#fff"}},holder:{label:"views.home.charts.cpu.label",text:"views.home.charts.cpu.text",values:{usage:"0.00"}}},memory:{chart:{height:250,lineWidth:5,backgroundColor:"#06b6d4",ref:(0,i.useRef)(null),series:{type:"line",color:"#fff"}},holder:{label:"views.home.charts.memory.label",text:"views.home.charts.memory.text",values:{usage:"0.00"}}}}),[f,x]=(0,i.useState)({mapbox:{zoom:6,minZoom:3,maxZoom:7,flyTo:!0,center:[0,0],dragging:!1,tile:"/tiles/{z}/{x}/{y}/tile.webp"},holder:{label:"views.home.map.label",text:"views.home.map.text",values:{longitude:"0.00",latitude:"0.00",elevation:"0.00"}}});(0,k.$)((()=>async function(){const{endpoints:e,backend:t}=j.DR,s=await(0,y.c)({backend:t,timeout:30,endpoint:e.station});for(var l=arguments.length,o=new Array(l),a=0;a{e(s)}))}((e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return void t({type:"error",title:"views.home.banner.error.title",content:"views.home.banner.error.content"});const{station:s,uptime:l,os:o}=e.data,{uuid:a,name:n}=s,{arch:c,distro:i}=o;t({title:"views.home.banner.success.title",content:"views.home.banner.success.content",type:"success",values:{uptime:String(l),station:n,os:i,uuid:a,arch:c}})})(e,s)}),(e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return;const{status:s}=e.data;t((e=>(Object.keys(s).forEach((t=>{if(t in e){const l=s[t];e[t]={...e[t],value:String(l)}}})),e)))})(e,m)}),(e=>{((e,t)=>{null!==e&&void 0!==e&&e.data&&t((t=>{const{data:s}=e,{timestamp:l}=s;return Object.keys(t).forEach((e=>{if(e in s&&s[e].hasOwnProperty("percent")){const{percent:o}=s[e],{current:a}=t[e].chart.ref;if(a){const e=a.chart.series[0].data.length?a.chart.series[0].data[0].x:l;a.chart.series[0].addPoint([l,o],!0,l-e>=3e5)}t[e]={...t[e],holder:{...t[e].holder,values:{usage:o.toFixed(2)}}}}})),t}))})(e,h)}),(e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return;const{position:s}=e.data,{longitude:l,latitude:o,elevation:a}=s;t((e=>({...e,mapbox:{...e.mapbox,center:[o,l],marker:[o,l]},holder:{...e.holder,values:{...e.holder.values,elevation:a.toFixed(2),latitude:o.toFixed(2),longitude:l.toFixed(2)}}})))})(e,x)}))),2e3,!0);const{t:E}=(0,l.Bd)();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.l,{type:t.type,title:E(t.title,{...t.values}),content:E(t.content,{...t.values})}),(0,b.jsx)(a.m,{className:"mt-5 grid lg:grid-cols-3",children:Object.values(d).map((e=>{let{label:t,unit:s,...l}=e;return(0,i.createElement)(c.J,{...l,key:t,label:E(t),unit:E(null!==s&&void 0!==s?s:"")})}))}),(0,b.jsx)(a.m,{className:"mt-5 gap-4 grid grid-cols-1 md:grid-cols-2",children:Object.values(u).map((e=>{var t;let{holder:s,chart:l}=e;return(0,b.jsx)(n.R,{label:E(s.label),text:E(null!==(t=s.text)&&void 0!==t?t:"",{...s.values}),children:(0,b.jsx)(r.t,{...l})},s.label)}))}),(0,b.jsx)(a.m,{children:(0,b.jsx)(n.R,{label:E(f.holder.label),text:E(null!==(e=f.holder.text)&&void 0!==e?e:"",{...f.holder.values}),children:(0,b.jsx)(v,{className:"h-[400px]",...f.mapbox})})})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunksrc=self.webpackChunksrc||[]).push([[594],{1385:(e,t,s)=>{s.d(t,{A:()=>l});s(9950);const l=s.p+"static/media/xmark-solid.33c889ee6afa3ed57684011608af6238.svg"},93202:(e,t,s)=>{s.d(t,{l:()=>c});s(9950);const l=s.p+"static/media/rss-solid.167813b1d681372ed1d98e45b6b6c0f7.svg";const o=s.p+"static/media/link-solid.49819f951200a220d9839699fbccd8de.svg";const a=s.p+"static/media/link-slash-solid.7893b9a51ad07ceedeb88c9649c58439.svg";var n=s(44414);const c=e=>{const{content:t,title:s,type:c,className:i}=e;let r="";switch(c){case"success":r="from-green-400 to-blue-500";break;case"warning":r="from-orange-400 to-orange-600";break;case"error":r="from-red-400 to-red-600"}return(0,n.jsx)("div",{className:"my-2 shadow-xl p-6 text-sm text-white rounded-lg bg-gradient-to-r ".concat(r," ").concat(null!==i&&void 0!==i?i:""),children:(0,n.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,n.jsxs)("div",{className:"flex gap-2 font-bold text-lg",children:[(0,n.jsx)("img",{className:"success"===c?"size-6":"hidden",src:l,alt:""}),(0,n.jsx)("img",{className:"warning"===c?"size-6":"hidden",src:o,alt:""}),(0,n.jsx)("img",{className:"error"===c?"size-6":"hidden",src:a,alt:""}),(0,n.jsx)("span",{children:s})]}),(0,n.jsx)("span",{className:"pl-3 text-md font-medium",children:t.split("\n").map((e=>(0,n.jsxs)("p",{children:[e,(0,n.jsx)("br",{})]},e)))})]})})}},40088:(e,t,s)=>{s.d(t,{t:()=>m});var l=s(9950),o=s(93461),a=s.n(o),n=s(11274),c=s(49027),i=s.n(c),r=s(67818),d=s(44414);const m=(0,l.forwardRef)(((e,t)=>{const s=.65*window.devicePixelRatio,{boost:o,title:c,series:m,height:u,legend:h,tooltip:f,zooming:x,animation:b,lineWidth:v,tickInterval:g,tickPrecision:p,lineColor:w,backgroundColor:j}=e,[y,k]=(0,l.useState)(!1);(0,l.useEffect)((()=>{k((()=>{if(window.WebGLRenderingContext){const e=document.createElement("canvas");return["webgl","experimental-webgl","webgl2","moz-webgl","webkit-3d"].some((t=>{try{return!!e.getContext(t)}catch(s){return!1}}))}return!1})())}),[]);const[E,S]=(0,l.useState)({chart:{zooming:x?{type:"x"}:{},marginTop:20,height:u,animation:b,backgroundColor:j},xAxis:{labels:{style:{color:"#fff"},format:"{value:%H:%M:%S}"},type:"datetime",tickColor:"#fff",lineColor:w},yAxis:{labels:{style:{color:"#fff"},format:p?"{value:".concat(p,"f}"):"{value:0.2f}"},title:{text:""},opposite:!0,lineColor:w,tickInterval:g},tooltip:{enabled:f,followPointer:!0,followTouchMove:!0,xDateFormat:"%Y-%m-%d %H:%M:%S",padding:12},legend:{enabled:h,itemStyle:{color:"#fff"}},plotOptions:{series:{lineWidth:v,turboThreshold:o?10:0,boostThreshold:o?1:0,states:{hover:{enabled:!1}}}},title:{text:c,style:{color:"#fff",fontSize:"10px",fontWeight:"normal"}},boost:{enabled:y,pixelRatio:s},accessibility:{enabled:!1},credits:{enabled:!1},time:{useUTC:!1},series:[m]}),{t:N}=(0,r.Bd)();return(0,l.useEffect)((()=>{i()(a())}),[]),(0,l.useEffect)((()=>{a().setOptions({lang:{resetZoom:N("components.chart.reset_zoom"),resetZoomTitle:N("components.chart.reset_zoom_title")}})}),[N]),(0,l.useEffect)((()=>{S((e=>({...e,chart:{...e.chart,height:u},title:{...e.title,text:c},boost:{...e.boost,enabled:y}})))}),[u,c,y]),(0,d.jsx)(n.HighchartsReact,{ref:t,options:E,highcharts:a()})}))},53768:(e,t,s)=>{s.d(t,{h:()=>i,R:()=>r});var l=s(9950);const o=s.p+"static/media/square-caret-up-solid.0573794ec033f5ce25c1076e3ac596e3.svg";const a=s.p+"static/media/ellipsis-solid.e3aced2a80c2b888104322b1ae60b47f.svg";var n=s(1385),c=s(44414);let i=function(e){return e[e.COLLAPSE_DISABLE=0]="COLLAPSE_DISABLE",e[e.COLLAPSE_SHOW=1]="COLLAPSE_SHOW",e[e.COLLAPSE_HIDE=2]="COLLAPSE_HIDE",e}({});const r=e=>{const{label:t,text:s,children:r,collapse:d,advanced:m}=e,[u,h]=(0,l.useState)(!1),[f,x]=(0,l.useState)(!1);(0,l.useEffect)((()=>{const e=null!==d&&void 0!==d?d:i.COLLAPSE_DISABLE;h(e===i.COLLAPSE_HIDE)}),[d]);const b=(null!==d&&void 0!==d?d:i.COLLAPSE_DISABLE)!==i.COLLAPSE_DISABLE;return(0,c.jsxs)("div",{className:"mb-4 flex flex-col rounded-xl text-gray-700 shadow-lg",children:[(0,c.jsx)("div",{className:"mx-4 rounded-lg overflow-hidden shadow-lg",children:r}),(0,c.jsxs)("div",{className:"p-4",children:[(0,c.jsxs)("h6",{className:"text-md font-bold text-gray-800 flex ".concat(b?"cursor-pointer select-none":""),onClick:()=>{b&&h(!u)},children:[b&&(0,c.jsx)("img",{className:"mx-1 ".concat(u?"rotate-180":""),src:o,alt:""}),t]}),s&&!u&&(0,c.jsx)("div",{className:"text-md pt-2",children:s.split("\n").map((e=>(0,c.jsx)("div",{children:e},e)))}),m&&(0,c.jsxs)("div",{className:"mt-2 space-y-2 ".concat(u?"hidden":"block"),children:[(0,c.jsxs)("div",{className:"mx-1 cursor-pointer",onClick:()=>{x(!f)},children:[(0,c.jsx)("img",{className:"size-4 ".concat(f?"hidden":"block"),src:a,alt:""}),(0,c.jsx)("img",{className:"size-4 ".concat(f?"block":"hidden"),src:n.A,alt:""})]}),(0,c.jsx)("div",{className:f?"block":"hidden",children:m})]})]})]})}},51682:(e,t,s)=>{s.d(t,{J:()=>o});var l=s(44414);const o=e=>{const{className:t,icon:s,label:o,value:a,unit:n,color:c}=e;return(0,l.jsx)("div",{className:"w-full p-2 ".concat(null!==t&&void 0!==t?t:""),children:(0,l.jsxs)("div",{className:"flex flex-row bg-gradient-to-r rounded-md p-4 shadow-xl ".concat(c?"from-indigo-500 via-purple-500 to-pink-500":"bg-gray-50 hover:bg-gray-100 transition-all"),children:[s&&(0,l.jsx)("img",{className:"bg-white p-2 rounded-md w-8 h-8 md:w-12 md:h-12 self-center",src:s,alt:""}),(0,l.jsxs)("div",{className:"flex flex-col flex-grow ".concat(s?"ml-5":""),children:[(0,l.jsx)("div",{className:"text-sm whitespace-nowrap ".concat(c?"text-gray-50":"text-gray-600"),children:o}),(0,l.jsx)("div",{className:"text-md font-medium flex-nowrap ".concat(c?"text-gray-100":"text-gray-800"),children:"".concat(a," ").concat(null!==n&&void 0!==n?n:"")})]})]})})}},66021:(e,t,s)=>{s.d(t,{$:()=>o});var l=s(9950);const o=(e,t,s)=>{const o=(0,l.useRef)((()=>{}));(0,l.useEffect)((()=>{o.current=e})),(0,l.useEffect)((()=>{s&&null!==t&&!1!==t&&o.current()}),[s,t]),(0,l.useEffect)((()=>{if(null===t||!1===t)return;const e=setInterval((()=>{o.current()}),t);return()=>{clearInterval(e)}}),[t])}},67317:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var l=s(67818),o=s(93202),a=s(55297),n=s(53768),c=s(51682),i=s(9950),r=s(40088),d=s(99810),m=s(49029),u=s(47113);const h=s.p+"static/media/location-dot-solid.763794361437464c10451de38cd290f7.svg";s(55392);var f=s(2527),x=s.n(f),b=s(44414);const v=e=>{const{className:t,minZoom:s,flyTo:l,maxZoom:o,zoom:a,tile:n,center:c,marker:r,scrollWheelZoom:f,zoomControl:v,dragging:g}=e,p=new(x().Icon)({iconUrl:h,iconAnchor:[9,24],iconSize:[18,25]}),w=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=w.current;e&&e.flyTo(c,a)}),[c,a,l]),(0,b.jsxs)(d.W,{ref:w,className:"z-0 w-full ".concat(null!==t&&void 0!==t?t:""),scrollWheelZoom:f,zoomControl:v,attributionControl:!1,doubleClickZoom:!1,dragging:g,maxZoom:o,minZoom:s,center:c,zoom:a,style:{cursor:"default"},children:[(0,b.jsx)(m.e,{url:n}),r&&(0,b.jsx)(u.p,{position:r,icon:p})]})};const g=s.p+"static/media/circle-check-solid.3fb46b8931cbbf9f966175f42b55a087.svg";const p=s.p+"static/media/bug-solid.7f781f9ddd35c29f11111e36602dcc87.svg";const w=s.p+"static/media/clock-solid.23025348eaec720a2439930b37d677ee.svg";var j=s(19325),y=s(38526);var k=s(66021);const E=()=>{var e;const[t,s]=(0,i.useState)({type:"warning",title:"views.home.banner.warning.title",content:"views.home.banner.warning.content"}),[d,m]=(0,i.useState)({messages:{color:!0,value:"0",icon:g,unit:"views.home.labels.messages.unit",label:"views.home.labels.messages.label"},errors:{color:!0,value:"0",icon:p,unit:"views.home.labels.errors.unit",label:"views.home.labels.errors.label"},offset:{color:!0,value:"0",icon:w,unit:"views.home.labels.offset.unit",label:"views.home.labels.offset.label"}}),[u,h]=(0,i.useState)({cpu:{chart:{height:250,lineWidth:5,backgroundColor:"#22c55e",ref:(0,i.useRef)(null),series:{type:"line",color:"#fff"}},holder:{label:"views.home.charts.cpu.label",text:"views.home.charts.cpu.text",values:{usage:"0.00"}}},memory:{chart:{height:250,lineWidth:5,backgroundColor:"#06b6d4",ref:(0,i.useRef)(null),series:{type:"line",color:"#fff"}},holder:{label:"views.home.charts.memory.label",text:"views.home.charts.memory.text",values:{usage:"0.00"}}}}),[f,x]=(0,i.useState)({mapbox:{zoom:6,minZoom:3,maxZoom:7,flyTo:!0,center:[0,0],dragging:!1,tile:"/tiles/{z}/{x}/{y}/tile.webp"},holder:{label:"views.home.map.label",text:"views.home.map.text",values:{longitude:"0.00",latitude:"0.00",elevation:"0.00"}}});(0,k.$)((()=>async function(){const{endpoints:e,backend:t}=j.DR,s=await(0,y.c)({backend:t,timeout:30,endpoint:e.station});for(var l=arguments.length,o=new Array(l),a=0;a{e(s)}))}((e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return void t({type:"error",title:"views.home.banner.error.title",content:"views.home.banner.error.content"});const{station:s,uptime:l,os:o,disk:a}=e.data,{uuid:n,name:c}=s,{arch:i,distro:r}=o,{percent:d}=a;t({title:"views.home.banner.success.title",content:"views.home.banner.success.content",type:"success",values:{uptime:String(l),station:c,os:r,uuid:n,arch:i,disk:(100-d).toFixed(2)}})})(e,s)}),(e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return;const{status:s}=e.data;t((e=>(Object.keys(s).forEach((t=>{if(t in e){const l=s[t];e[t]={...e[t],value:String(l)}}})),e)))})(e,m)}),(e=>{((e,t)=>{null!==e&&void 0!==e&&e.data&&t((t=>{const{data:s}=e,{timestamp:l}=s;return Object.keys(t).forEach((e=>{if(e in s&&s[e].hasOwnProperty("percent")){const{percent:o}=s[e],{current:a}=t[e].chart.ref;if(a){const e=a.chart.series[0].data.length?a.chart.series[0].data[0].x:l;a.chart.series[0].addPoint([l,o],!0,l-e>=3e5)}t[e]={...t[e],holder:{...t[e].holder,values:{usage:o.toFixed(2)}}}}})),t}))})(e,h)}),(e=>{((e,t)=>{if(null===e||void 0===e||!e.data)return;const{position:s}=e.data,{longitude:l,latitude:o,elevation:a}=s;t((e=>({...e,mapbox:{...e.mapbox,center:[o,l],marker:[o,l]},holder:{...e.holder,values:{...e.holder.values,elevation:a.toFixed(2),latitude:o.toFixed(2),longitude:l.toFixed(2)}}})))})(e,x)}))),2e3,!0);const{t:E}=(0,l.Bd)();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.l,{type:t.type,title:E(t.title,{...t.values}),content:E(t.content,{...t.values})}),(0,b.jsx)(a.m,{className:"mt-5 grid lg:grid-cols-3",children:Object.values(d).map((e=>{let{label:t,unit:s,...l}=e;return(0,i.createElement)(c.J,{...l,key:t,label:E(t),unit:E(null!==s&&void 0!==s?s:"")})}))}),(0,b.jsx)(a.m,{className:"mt-5 gap-4 grid grid-cols-1 md:grid-cols-2",children:Object.values(u).map((e=>{var t;let{holder:s,chart:l}=e;return(0,b.jsx)(n.R,{label:E(s.label),text:E(null!==(t=s.text)&&void 0!==t?t:"",{...s.values}),children:(0,b.jsx)(r.t,{...l})},s.label)}))}),(0,b.jsx)(a.m,{children:(0,b.jsx)(n.R,{label:E(f.holder.label),text:E(null!==(e=f.holder.text)&&void 0!==e?e:"",{...f.holder.values}),children:(0,b.jsx)(v,{className:"h-[400px]",...f.mapbox})})})]})}}}]); \ No newline at end of file diff --git a/frontend/dist/static/js/main.62b97fc9.js b/frontend/dist/static/js/main.62b97fc9.js new file mode 100644 index 00000000..d1938591 --- /dev/null +++ b/frontend/dist/static/js/main.62b97fc9.js @@ -0,0 +1,2 @@ +/*! For license information please see main.62b97fc9.js.LICENSE.txt */ +(()=>{var e={55297:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(9950),o=n(35887),a=n(44414);const i=(0,r.forwardRef)(((e,t)=>{const{main:n,className:r,toaster:i,children:s}=e;return(0,a.jsxs)("div",{className:n?"bg-gray-50 min-h-screen ml-10 p-20 px-4 flex flex-col space-y-3":null!==r&&void 0!==r?r:"",ref:t,children:[s,i&&(0,a.jsx)(o.l$,{})]})}))},19325:(e,t,n)=>{"use strict";n.d(t,{DR:()=>S});const r=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/station","message":"Successfully read station information","data":{"timestamp":0,"uptime":0,"station":{"uuid":"00000000-0000-0000-0000-000000000000","name":"AnyShake Station","station":"SHAKE","network":"AS","location":"00"},"memory":{"total":0,"free":0,"used":0,"percent":0},"disk":{"total":0,"free":0,"used":0,"percent":0},"adc":{"resolution":24,"fullscale":5},"os":{"os":"*","arch":"*","distro":"*","hostname":"*"},"cpu":{"model":"*","percent":0},"geophone":{"sensitivity":28.8,"frequency":4.5},"position":{"latitude":0,"longitude":0,"elevation":0},"status":{"messages":0,"pushed":0,"errors":0,"failures":0,"queued":0,"offset":0}}}'),o=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":0,"error":true,"path":"/api/v1/station","message":"","data":null}'),a=JSON.parse('{"start":0,"end":0,"format":"json","channel":"*"}'),i=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/history","message":"The waveform data was successfully filtered","data":[{"ts":0,"ehz":[0],"ehe":[0],"ehn":[0]}]}'),s=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":0,"error":true,"path":"/api/v1/history","message":"","data":null}'),l=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/trace","message":"Successfully read available data source list","data":[{"name":"null","value":"null"}]}'),u=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/trace","message":"Successfully read available data source list","data":[{"verfied":true,"timestamp":0,"event":"null","region":"null","depth":0,"latitude":0,"longitude":0,"distance":0,"magnitude":0,"estimation":{"p":0,"s":0}}]}'),c=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":0,"error":true,"path":"/api/v1/trace","message":"","data":null}'),f=JSON.parse('{"action":"export","name":""}'),d=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/mseed","message":"Successfully get MiniSEED file list","data":[{"ttl":0,"time":0,"size":"null","name":"null"}]}'),p=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":0,"error":true,"path":"/api/v1/mseed","message":"","data":null}'),h=JSON.parse('{"time":"1970-01-01T23:59:59Z","status":200,"error":false,"path":"/api/v1/mseed","message":"Successfully get MiniSEED file list","data":""}'),g={path:"/api/v1/station",method:"get",type:"http",model:{request:{},response:{common:{...r},error:o}}},m={path:"/api/v1/history",method:"post",type:"http",model:{request:{...a},response:{common:{...i},error:s}}},y={path:"/api/v1/trace",method:"post",type:"http",model:{request:{source:"show"},response:{common:{...l,...u},error:c}}},v={path:"/api/v1/mseed",method:"post",type:"http",model:{request:{action:"list",...f},response:{common:{...d},error:p}}},b={path:"/api/v1/socket",type:"socket",model:{request:{},response:{common:{...JSON.parse('{"ts":0,"ehz":[0],"ehe":[0],"ehn":[0]}')}}}},w={path:"/api/v1/inventory",method:"get",type:"http",model:{request:{format:"json"},response:{common:{...h},error:p}}},S={backend:"".concat(window.location.host),endpoints:{station:g,history:m,trace:y,mseed:v,socket:b,inventory:w}}},99145:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,c:()=>o});const r=[new class{constructor(){this.property=()=>({name:"\u6c17\u8c61\u5e81\u9707\u5ea6\u968e\u7d1a",value:"JMA"}),this.getIntensity=(e,t)=>{let{currentPGA:n}=e,r=parseFloat((2*Math.log10(n)+.94).toFixed(3));switch(r=parseFloat(r.toFixed(2)),!0){case r<.5:return"0";case r<1.5:return"1";case r<2.5:return"2";case r<3.5:return"3";case r<4.5:return"4";case r<5:return"5 \u5f31";case r<5.5:return"5 \u5f37";case r<6:return"6 \u5f31";case r<6.5:return"6 \u5f37";default:return"7"}}}},new class{constructor(){this.property=()=>({name:"\u4ea4\u901a\u90e8\u4e2d\u592e\u6c23\u8c61\u7f72\u5730\u9707\u9707\u5ea6\u5206\u7d1a",value:"CWA"}),this.getIntensity=(e,t)=>{let{currentPGA:n,currentPGV:r}=e;if(n<80)switch(!0){case n<.8:return"0 \u7d1a";case n<2.5:return"1 \u7d1a";case n<8:return"2 \u7d1a";case n<25:return"3 \u7d1a";case n<80:return"4 \u7d1a"}else switch(!0){case r<15:return"4 \u7d1a";case r<30:return"5 \u5f31";case r<50:return"5 \u5f37";case r<80:return"6 \u5f31";case r<140:return"6 \u5f37"}return"7 \u7d1a"}}},new class{constructor(){this.property=()=>({name:"The Modified Mercalli Intensity",value:"MMI"}),this.getIntensity=(e,t)=>{let{currentPGA:n}=e;return(2.33*Math.log10(n)+1.5).toFixed(0)}}},new class{constructor(){this.property=()=>({name:"\u4e2d\u56fd\u5730\u9707\u70c8\u5ea6\u8868",value:"CSIS"}),this.getIntensity=(e,t)=>{let{currentPGA:n,currentPGV:r}=e;const o=3.17*Math.log10(n)+6.59,a=3*Math.log10(r)+9.77;let i=1;return i=o>=6&&a>=6?a:(o+a)/2,i<1?i=1:i>12&&(i=12),i.toFixed(0)}}}],o={scales:r,version:"v2.11.9",release:"708759a4-20240323123030",name:"Observer",author:"AnyShake",title:"AnyShake Observer",homepage:"https://anyshake.org",repository:"https://github.com/AnyShake",duration:{default:300,maximum:3600,minimum:10},retention:{default:180,maximum:600,minimum:10},description:{"en-US":"Constructing Realtime Seismic Network Ambitiously.","zh-CN":"\u96c4\u5fc3\u52c3\u52c3\uff0c\u81f4\u529b\u4e8e\u6784\u5efa\u5b9e\u65f6\u5730\u9707\u7f51\u7edc","zh-TW":"\u96c4\u5fc3\u52c3\u52c3\uff0c\u81f4\u529b\u65bc\u5efa\u7f6e\u5373\u6642\u5730\u9707\u7db2\u8def"}},a=r[0]},41237:(e,t,n)=>{"use strict";n.d(t,{A:()=>de,X:()=>fe});const r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let[t,r]=e;for(let o=0;o{let[r,o]=t;for(let a=0;a{e=n,t=r}));return n.resolve=e,n.reject=t,n}function l(e){return null==e?"":""+e}const u=/###/g;function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(u,"."):e}function o(){return!e||"string"===typeof e}const a="string"!==typeof t?t:t.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function m(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>g[e])):e}const y=[" ",",","?","!",";"],v=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let a=0;a-1&&i0?e.replace("_","-"):e}class S extends i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):"string"===typeof n&&o?i.push(...n.split(o)):i.push(n)));const s=d(this.data,i);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),s||!a||"string"!==typeof n?s:b(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),f(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!==typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);let s=d(this.data,i)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?p(s,n,o):s={...s,...n},f(this.data,i,s),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var x={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const k={};class _ extends i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=a.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";const r=y.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=v.getRegExp("(".concat(r.map((e=>"?"===e?"\\?":e)).join("|"),")"));let a=!o.test(e);if(!a){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(a=!0)}return a}(e,n,r);if(a&&!i){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"===typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:i}=this.extractFromKey(e[e.length-1],t),s=i[i.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:"".concat(s).concat(e).concat(a),usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:"".concat(s).concat(e).concat(a)}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:a}const c=this.resolve(e,t);let f=c&&c.res;const d=c&&c.usedKey||a,p=c&&c.exactUsedKey||a,h=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&f&&("string"!==typeof f&&"boolean"!==typeof f&&"number"!==typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!==typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:i}):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(const a in f)if(Object.prototype.hasOwnProperty.call(f,a)){const e="".concat(r).concat(o).concat(a);n[a]=this.translate(e,{...t,joinArrays:!1,ns:i}),n[a]===e&&(n[a]=f[a])}f=n}}else if(m&&"string"===typeof g&&"[object Array]"===h)f=f.join(g),f&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,i=!1;const u=void 0!==t.count&&"string"!==typeof t.count,d=_.hasDefaultValue(t),p=u?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(p)]||t["defaultValue".concat(h)]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(i=!0,f=a);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,v=d&&m!==f&&this.options.updateMissing;if(i||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,a,v?m:f),o){const e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const o=d&&r!==f?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,v,t),this.emit("missingKey",e,s,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach((n=>{r([e],a+n,t["defaultValue".concat(n)]||m)}))})):r(e,a,m))}f=this.extendTranslation(f,e,t,c,n),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f="".concat(s,":").concat(a)),(i||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(s,":").concat(a):a,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(c.res=f,c.usedParams=this.getUsedParamsDetails(t),c):f}extendTranslation(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),i){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,i),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==i.count&&"string"!==typeof i.count,f=c&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==i.context&&("string"===typeof i.context||"number"===typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(a=e,!k["".concat(p[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(k["".concat(p[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,n,e,i);else{let e;c&&(e=this.pluralResolver.getSuffix(n,i.count,i));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(c&&(a.push(l+e),i.ordinal&&0===e.indexOf(r)&&a.push(l+e.replace(r,this.options.pluralSeparator)),f&&a.push(l+t)),d){const n="".concat(l).concat(this.options.contextSeparator).concat(i.context);a.push(n),c&&(a.push(n+e),i.ordinal&&0===e.indexOf(r)&&a.push(n+e.replace(r,this.options.pluralSeparator)),f&&a.push(n+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,i))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!==typeof e.replace;let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function E(e){return e.charAt(0).toUpperCase()+e.slice(1)}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=a.create("languageUtils")}getScriptPartFromCode(e){if(!(e=w(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=w(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=E(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=E(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=E(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],P={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const N=["v1","v2","v3"],j=["v4"],R={zero:0,one:1,two:2,few:3,many:4,other:5};class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=a.create("pluralResolver"),this.options.compatibilityJSON&&!j.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return C.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:P[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(w("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>R[e]-R[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!N.includes(this.options.compatibilityJSON)}}function A(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(e,t,n){const r=d(e,n);return void 0!==r?r:d(t,n)}(e,t,n);return!a&&o&&"string"===typeof n&&(a=b(e,n,r),void 0===a&&(a=b(t,n,r))),a}class T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=a.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:m,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?h(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?h(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?h(t.nestingPrefix):t.nestingPrefixEscaped||h("$t("),this.nestingSuffix=t.nestingSuffix?h(t.nestingSuffix):t.nestingSuffixEscaped||h(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){let o,a,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=A(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),a=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format(A(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...r,...t,interpolationkey:a})};this.resetRegExp();const f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach((t=>{for(i=0;o=t.regex.exec(e);){const n=o[1].trim();if(a=c(n),void 0===a)if("function"===typeof f){const t=f(e,o,r);a="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(d){a=o[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"===typeof a||this.useRawValueToEscape||(a=l(a));const s=t.safeValue(a);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp("".concat(n,"[ ]*{")));let a="{".concat(r[1]);e=r[0],a=this.interpolate(a,o);const i=a.match(/'/g),s=a.match(/"/g);(i&&i.length%2===0&&!s||s.length%2!==0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o={...t,...o})}catch(l){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),l),"".concat(e).concat(n).concat(a)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];o={...a},o=o.replace&&"string"!==typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,u=!0}if(r=t(i.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=l(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=s.reduce(((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function z(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(w(r),o),t[a]=i),i(n)}}class F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=a.create("formatter"),this.options=e,this.formats={number:z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:z(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:z(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:z(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=z(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:a}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const i=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=i.locale||i.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...a,...r,...i})}catch(i){this.logger.warn(i)}return t}return this.logger.warn("there was no format function for ".concat(o)),e}),e)}}class D extends i{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=a.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},a={},i={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const i="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,r=!1,void 0===a[i]&&(a[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(i[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const i={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:a}=c(e,t,Object);o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[o],a),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{i[e]||(i[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===i[e][t]&&(i[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:a});this.readingCalls++;const i=(i,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}i&&s&&r{this.read.call(this,e,t,n,r+1,2*o,a)}),o):a(i,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,i);try{const n=s(e,t);n&&"function"===typeof n.then?n.then((e=>i(null,e))).catch(i):i(null,n)}catch(l){i(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,a)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(r," failed"),n),!n&&a&&this.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(r),a),this.loaded(e,n,a)}))}saveMissing(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let o;o=5===u.length?u(e,t,n,r,l):u(e,t,n,r),o&&"function"===typeof o.then?o.then((e=>i(null,e))).catch(i):i(null,o)}catch(s){i(s)}else u(e,t,n,r,i,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function I(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function U(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function M(){}class H extends i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=U(e),this.services={},this.logger=a,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=I();function o(e){return e?"function"===typeof e?new e:e:null}if(this.options={...r,...this.options,...U(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?a.init(o(this.modules.logger),this.options):a.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=F);const n=new O(this.options);this.store=new S(this.options.resources,this.options);const i=this.services;i.logger=a,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new L(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new T(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new D(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=M),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=s(),l=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=s();return e||(e=this.languages),t||(t=this.options.ns),n||(n=M),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=s();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{a(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let a;if("object"!==typeof t){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l"".concat(a.keyPrefix).concat(u).concat(e))):a.keyPrefix?"".concat(a.keyPrefix).concat(u).concat(e):e,r.t(c,a)};return"string"===typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,a);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||r&&!a(o,e)))}loadNamespaces(e,t){const n=s();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=s();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new O(I());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new H(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new H(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new S(this.store.data,r),o.services.resourceStore=o.store),o.translator=new _(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=encodeURIComponent(t),a="".concat(e,"=").concat(o);if(r.maxAge>0){var i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(i))}if(r.domain){if(!J.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!J.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a}(e,encodeURIComponent(t),o)},Z=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o0)r[o].substring(0,a)===e.lookupQuerystring&&(t=r[o].substring(a+1))}}return t}},ee=null,te=function(){if(null!==ee)return ee;try{ee="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(t){ee=!1}return ee},ne={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&te()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&te()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},re=null,oe=function(){if(null!==re)return re;try{re="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(t){re=!1}return re},ae={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&oe()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&oe()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},ie={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},se={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},le={name:"path",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof e.lookupFromPathIndex){if("string"!==typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},ue={name:"subdomain",lookup:function(e){var t="number"===typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!==typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,$.A)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,V.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return K.call(G.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"===typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(X),this.addDetector(Y),this.addDetector(ne),this.addDetector(ae),this.addDetector(ie),this.addDetector(se),this.addDetector(le),this.addDetector(ue)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),n=n.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();ce.type="languageDetector";const fe={key:"i18n",fallback:"en-US",resources:{"en-US":{label:"US English",translation:JSON.parse('{"components":{"chart":{"reset_zoom":"Reset Zoom","reset_zoom_title":"Reset Zoom to Default"}},"views":{"home":{"banner":{"warning":{"title":"Connecting to Server","content":"Please wait..."},"success":{"title":"{{ station }} Connected","content":"Uptime: {{ uptime }} s\\nFree disk: {{ disk }}%\\nArchitecture: {{ arch }}/{{ os }}"},"error":{"title":"Connection Failed","content":"Unable to connect to the server. Please try refreshing the page or changing your network."}},"charts":{"cpu":{"label":"CPU Usage","text":"Current usage: {{ usage }}%"},"memory":{"label":"Memory Usage","text":"Current usage: {{ usage }}%"}},"map":{"label":"Station Location","text":"Longitude: {{ longitude }} \xb0\\nLatitude: {{ latitude }} \xb0\\nElevation: {{ elevation }} m"},"labels":{"messages":{"label":"Decoded Messages","unit":"messages"},"errors":{"label":"Frame Errors","unit":"errors"},"pushed":{"label":"Pushed Messages","unit":"messages"},"failures":{"label":"Push Failures","unit":"failures"},"queued":{"label":"Queued Messages","unit":"messages"},"offset":{"label":"System Time Offset","unit":"seconds"}}},"realtime":{"banner":{"warning":{"label":"Connecting to Server","text":"Please wait..."},"success":{"label":"Current Sampling Rate {{ sampleRate }} Sps","text":"Current Seismic Scale {{ scale }}\\nData updated at {{ time }}"},"error":{"label":"Connection Failed","text":"Unable to connect to the server, please refresh the page or change your network."}},"charts":{"ehz":{"label":"EHZ Channel Waveform Count","text":"PGA: {{ pga }} gal\\nPGV: {{ pgv }} kine\\nIntensity: {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}},"ehe":{"label":"EHE Channel Waveform Count","text":"PGA: {{ pga }} gal\\nPGV: {{ pgv }} kine\\nIntensity: {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}},"ehn":{"label":"EHN Channel Waveform Count","text":"PGA: {{ pga }} gal\\nPGV: {{ pgv }} kine\\nIntensity: {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}}},"toasts":{"websocket_connected":"WebSocket connection opened"}},"history":{"selects":{"choose_event":{"title":"Select an Earthquake Event","template":"[M{{ magnitude }}] {{ event }}\\nTime: {{ time }}\\nDepth: {{ depth }} km\\nDistance: {{ distance }} km\\nEstimated P-Wave Arrival: {{ p_wave }} sec\\nEstimated S-Wave Arrival: {{ s_wave }} sec"}},"forms":{"choose_channel":{"title":"Select Channel to Export","placeholder":"Channel code","submit":"Submit","cancel":"Cancel"},"choose_source":{"title":"Select Earthquake Data Source","placeholder":"Data source","submit":"Submit","cancel":"Cancel"}},"charts":{"ehz":{"label":"EHZ Channel Waveform Count","text":"Click to setup filter","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}},"ehe":{"label":"EHE Channel Waveform Count","text":"Click to setup filter","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}},"ehn":{"label":"EHN Channel Waveform Count","text":"Click to setup filter","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth Filter","low_corner_freq":"Low Corner Freq. (Hz)","high_corner_freq":"High Corner Freq. (Hz)","enable_filter":"Enable Filter","disable_filter":"Disable Filter"}}}}},"panels":{"query_history":"History Query","analyze_history":"Data Analysis"},"buttons":{"query_waveform":"Retrieve Waveforms","query_sac_file":"Download Data","query_source":"Event Lookup","get_share_link":"Get Share Link"},"labels":{"ehz_detail":{"label":"EHZ Details","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehe_detail":{"label":"EHE Details","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehn_detail":{"label":"EHN Details","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"}},"time_pickers":{"start_time":"Select Start Time","end_time":"Select End Time"},"toasts":{"duration_error":"Please select the correct time range","is_exporting_sac":"Exporting SAC format waveforms, please wait...","export_sac_success":"SAC format waveform data export successful","export_sac_error":"SAC format waveform data export failed","is_fetching_source":"Fetching event data source, please wait...","fetch_source_success":"Event data source retrieval successful","fetch_source_error":"Event data source retrieval failed","is_fetching_events":"Querying earthquake event data, please wait...","fetch_events_success":"Earthquake event query successful","fetch_events_error":"Earthquake event query failed","is_fetching_waveform":"Querying historical waveform data, please wait...","fetch_waveform_success":"Historical waveform data query successful","fetch_waveform_error":"Historical waveform data query failed","copy_link_success":"Share link has copied to clipboard","copy_link_error":"Failed to copy share link to clipboard","event_select_success":"Event selection successful"}},"export":{"panels":{"file_list":"File List"},"table":{"columns":{"name":"File Name","size":"File Size","time":"Modified Date","ttl":"TTL (in days)"},"actions":{"export":"Export"},"placeholder":{"is_fetching_mseed":"Fetching, please wait...","fetch_mseed_error":"Empty or fetch failed"},"load_more":"Load More"},"toasts":{"is_exporting_mseed":"Exporting MiniSEED format file, it may take some time","export_mseed_success":"MiniSEED format file exported successfully","is_fetching_mseed":"Fetching MiniSEED format file list, please wait..."}},"setting":{"buttons":{"select_scale":"Select Seismic Scale","purge_cache":"Clear Application Cache","waveform_retention":"Set Waveform Retention Time","query_duration":"Set Query Range"},"panels":{"select_scale":"Seismic Scale","purge_cache":"Reset Application","waveform_retention":"Waveform Settings","query_duration":"Query Settings","station_inventory":"SeisComp XML Inventory"},"selects":{"choose_scale":{"title":"Select Intensity Scale"}},"forms":{"waveform_retention":{"title":"Real-time waveform retention time","placeholder":"Enter retention time","content":"Please enter an integer greater than {{ minimum }} and less than {{ maximum }} in seconds.","submit":"Submit","cancel":"Cancel"},"query_duration":{"title":"Historical query default range","placeholder":"Enter default query range","content":"Please enter an integer greater than {{ minimum }} and less than {{ maximum }} in seconds.","submit":"Submit","cancel":"Cancel"}},"toasts":{"confirm_title":"Confirmation","confirm_button":"OK","cancel_button":"Cancel","confirm_purge":"App cache will be cleared, click OK to continue.","cache_purged":"App cache has been cleared, page will refresh soon","scale_changed":"Intensity scale has been changed to {{ scale }}, page will refresh soon","retention_set":"Real-time waveform retention time has been set to {{ current }} s, page will refresh soon","duration_set":"Historical waveform default range has been set to {{ current }} s, page will refresh soon"},"contents":{"select_scale":"Current intensity scale: {{ scale }}\\nIntensity scale is a standard used to measure the intensity of an earthquake. Different scales can lead to different magnitude values.","purge_cache":"If the app is experiencing problems, you can try resetting app preferences.\\nAfter resetting, browser preferences will be cleared, but it will not affect the backend server.","waveform_retention":"This setting determines the amount of time that waveforms will be retained on the real-time waveform page. The current value is {{ current }} s.\\nValues must be greater than {{ minimum }} and less than {{ maximum }}. Otherwise, the value will be reset to the default of {{ default }} s.","query_duration":"This setting determines the time range that is automatically filled in on the historical query page. The current value is {{ current }} s.\\nValues must be greater than {{ minimum }} and less than {{ maximum }}. Otherwise, the value will be reset to the default of {{ default }} s."}}}}')},"zh-TW":{label:"\u6b63\u9ad4\u4e2d\u6587",translation:JSON.parse('{"components":{"chart":{"reset_zoom":"\u91cd\u7f6e\u8996\u5716","reset_zoom_title":"\u91cd\u7f6e\u70ba\u521d\u59cb\u8996\u5716"}},"views":{"home":{"banner":{"warning":{"title":"\u6b63\u5728\u9023\u7dda\u4f3a\u670d\u5668","content":"\u8acb\u7a0d\u7b49..."},"success":{"title":"{{ station }} \u5df2\u9023\u7dda","content":"\u5728\u7dda\u6642\u9577 {{ uptime }} \u79d2\\n\u786c\u789f\u53ef\u7528\u7a7a\u9593 {{ disk }}%\\n\u4f3a\u670d\u5668\u67b6\u69cb {{ arch }}/{{ os }}"},"error":{"title":"\u9023\u7dda\u5931\u6557","content":"\u7121\u6cd5\u9023\u7dda\u5230\u4f3a\u670d\u5668\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u6574\u7406\u9801\u9762\u6216\u66f4\u63db\u7db2\u8def"}},"charts":{"cpu":{"label":"CPU \u4f7f\u7528\u7387","text":"\u76ee\u524d\u4f54\u7528\u7387 {{ usage }}%"},"memory":{"label":"\u8a18\u61b6\u9ad4\u4f7f\u7528\u7387","text":"\u76ee\u524d\u4f54\u7528\u7387 {{ usage }}%"}},"map":{"label":"\u7ad9\u9ede\u6240\u5728\u4f4d\u7f6e","text":"\u7d93\u5ea6 {{ longitude }} \xb0\\n\u7def\u5ea6 {{ latitude }} \xb0\\n\u6d77\u62d4 {{ elevation }} \u516c\u5c3a"},"labels":{"messages":{"label":"\u5df2\u89e3\u78bc\u8a0a\u606f\u91cf","unit":"\u7b46"},"errors":{"label":"\u5e40\u932f\u8aa4\u8a0a\u606f\u91cf","unit":"\u7b46"},"pushed":{"label":"\u5df2\u63a8\u9001\u8a0a\u606f\u91cf","unit":"\u7b46"},"failures":{"label":"\u63a8\u9001\u5931\u6557\u8a0a\u606f\u91cf","unit":"\u7b46"},"queued":{"label":"\u7b49\u5f85\u63a8\u9001\u8a0a\u606f\u91cf","unit":"\u7b46"},"offset":{"label":"\u7cfb\u7d71\u6642\u9593\u504f\u79fb\u91cf","unit":"\u79d2"}}},"realtime":{"banner":{"warning":{"label":"\u6b63\u5728\u9023\u7dda\u4f3a\u670d\u5668","text":"\u8acb\u7a0d\u7b49..."},"success":{"label":"\u76ee\u524d\u53d6\u6a23\u7387 {{ sampleRate }} Sps","text":"\u76ee\u524d\u70c8\u5ea6\u6a19\u6e96 {{ scale }}\\n\u8cc7\u6599\u66f4\u65b0\u65bc {{ time }}"},"error":{"label":"\u9023\u7dda\u5931\u6557","text":"\u7121\u6cd5\u9023\u7dda\u5230\u4f3a\u670d\u5668\uff0c\u8acb\u5617\u8a66\u91cd\u65b0\u6574\u7406\u9801\u9762\u6216\u66f4\u63db\u7db2\u8def"}},"charts":{"ehz":{"label":"EHZ \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}},"ehe":{"label":"EHE \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}},"ehn":{"label":"EHN \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}}},"toasts":{"websocket_connected":"WebSocket \u9023\u7dda\u5df2\u7d93\u6253\u958b"}},"history":{"selects":{"choose_event":{"title":"\u9078\u64c7\u4e00\u500b\u5730\u9707\u4e8b\u4ef6","template":"[M{{ magnitude }}] {{ event }}\\n\u9707\u767c\u6642\u9593 {{ time }}\\n\u9707\u592e\u6df1\u5ea6 {{ depth }} \u516c\u91cc\\n\u9707\u592e\u8ddd\u79bb {{ distance }} \u516c\u91cc\\nP \u6ce2\u5230\u7ad9 {{ p_wave }} \u79d2\\nS \u6ce2\u5230\u7ad9 {{ s_wave }} \u79d2"}},"forms":{"choose_channel":{"title":"\u9078\u64c7\u8981\u532f\u51fa\u7684\u901a\u9053","placeholder":"\u901a\u9053\u540d\u7a31","submit":"\u9001\u51fa","cancel":"\u53d6\u6d88"},"choose_source":{"title":"\u9078\u64c7\u5730\u9707\u8cc7\u6599\u4f86\u6e90","placeholder":"\u8cc7\u6599\u4f86\u6e90","submit":"\u9001\u51fa","cancel":"\u53d6\u6d88"}},"charts":{"ehz":{"label":"EHZ \u901a\u9053\u6ce2\u5f62","text":"\u9ede\u64ca\u4e0b\u65b9\u6309\u9215\u8a2d\u5b9a\u6ffe\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}},"ehe":{"label":"EHE \u901a\u9053\u6ce2\u5f62","text":"\u9ede\u64ca\u4e0b\u65b9\u6309\u9215\u8a2d\u5b9a\u6ffe\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}},"ehn":{"label":"EHN \u901a\u9053\u6ce2\u5f62","text":"\u9ede\u64ca\u4e0b\u65b9\u6309\u9215\u8a2d\u5b9a\u6ffe\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ffe\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u983b\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u983b\u7387 Hz","enable_filter":"\u555f\u52d5\u6ffe\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ffe\u6ce2\u5668"}}}}},"panels":{"query_history":"\u6b77\u53f2\u67e5\u8a62","analyze_history":"\u8cc7\u6599\u5206\u6790"},"buttons":{"query_waveform":"\u8abf\u95b1\u6ce2\u5f62","query_sac_file":"\u8cc7\u6599\u4e0b\u8f09","query_source":"\u4e8b\u4ef6\u53cd\u67e5","get_share_link":"\u5206\u4eab\u9023\u7d50"},"labels":{"ehz_detail":{"label":"EHZ \u901a\u9053\u8cc7\u8a0a","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehe_detail":{"label":"EHE \u901a\u9053\u8cc7\u8a0a","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehn_detail":{"label":"EHN \u901a\u9053\u8cc7\u8a0a","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"}},"time_pickers":{"start_time":"\u9078\u64c7\u8d77\u59cb\u6642\u9593","end_time":"\u9078\u64c7\u7d50\u675f\u6642\u9593"},"toasts":{"duration_error":"\u8acb\u9078\u64c7\u6b63\u78ba\u7684\u6642\u9593\u7bc4\u570d","is_exporting_sac":"\u6b63\u5728\u532f\u51fa SAC \u683c\u5f0f\u6ce2\u5f62\uff0c\u8acb\u7a0d\u5019...","export_sac_success":"SAC \u683c\u5f0f\u6ce2\u5f62\u8cc7\u6599\u532f\u51fa\u6210\u529f","export_sac_error":"SAC \u683c\u5f0f\u6ce2\u5f62\u8cc7\u6599\u532f\u51fa\u5931\u6557","is_fetching_source":"\u6b63\u5728\u53d6\u5f97\u4e8b\u4ef6\u8cc7\u6599\u6e90\uff0c\u8acb\u7a0d\u5019...","fetch_source_success":"\u4e8b\u4ef6\u8cc7\u6599\u6e90\u53d6\u5f97\u6210\u529f","fetch_source_error":"\u4e8b\u4ef6\u8cc7\u6599\u6e90\u53d6\u5f97\u5931\u6557","is_fetching_events":"\u6b63\u5728\u67e5\u8a62\u5730\u9707\u4e8b\u4ef6\u8cc7\u6599\uff0c\u8acb\u7a0d\u5019...","fetch_events_success":"\u5730\u9707\u4e8b\u4ef6\u67e5\u8a62\u6210\u529f","fetch_events_error":"\u5730\u9707\u4e8b\u4ef6\u67e5\u8a62\u5931\u6557","is_fetching_waveform":"\u6b63\u5728\u67e5\u8a62\u6b77\u53f2\u6ce2\u5f62\u8cc7\u6599\uff0c\u8acb\u7a0d\u5019...","fetch_waveform_success":"\u6b77\u53f2\u6ce2\u5f62\u8cc7\u6599\u67e5\u8a62\u6210\u529f","fetch_waveform_error":"\u6b77\u53f2\u6ce2\u5f62\u8cc7\u6599\u67e5\u8a62\u5931\u6557","copy_link_success":"\u5206\u4eab\u9023\u7d50\u5df2\u8907\u88fd\u5230\u526a\u8cbc\u7c3f","copy_link_error":"\u5206\u4eab\u9023\u7d50\u8907\u88fd\u5931\u6557","event_select_success":"\u4e8b\u4ef6\u9078\u64c7\u6210\u529f"}},"export":{"panels":{"file_list":"\u6a94\u6848\u6e05\u55ae"},"table":{"columns":{"name":"\u6a94\u6848\u540d\u7a31","size":"\u6a94\u6848\u5927\u5c0f","time":"\u4fee\u6539\u65e5\u671f","ttl":"\u6709\u6548\u671f\uff08\u5929\uff09"},"actions":{"export":"\u532f\u51fa"},"placeholder":{"is_fetching_mseed":"\u6b63\u5728\u53d6\u5f97\u4e2d\uff0c\u8acb\u7a0d\u7b49...","fetch_mseed_error":"\u6e05\u55ae\u70ba\u7a7a\u6216\u53d6\u5f97\u5931\u6557"},"load_more":"\u8f09\u5165\u66f4\u591a"},"toasts":{"is_exporting_mseed":"\u6b63\u5728\u532f\u51fa MiniSEED \u683c\u5f0f\u6a94\u6848\uff0c\u9019\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u6642\u9593","export_mseed_success":"MiniSEED \u683c\u5f0f\u6a94\u6848\u532f\u51fa\u6210\u529f","is_fetching_mseed":"\u6b63\u5728\u53d6\u5f97 MiniSEED \u683c\u5f0f\u6a94\u6848\u6e05\u55ae\uff0c\u8acb\u7a0d\u7b49..."}},"setting":{"buttons":{"select_scale":"\u9078\u64c7\u70c8\u5ea6\u6a19\u6e96","purge_cache":"\u6e05\u9664\u61c9\u7528\u5feb\u53d6","waveform_retention":"\u8a2d\u5b9a\u6ce2\u5f62\u4fdd\u7559\u6642\u9593","query_duration":"\u8a2d\u5b9a\u67e5\u8a62\u7bc4\u570d"},"panels":{"select_scale":"\u70c8\u5ea6\u6a19\u6e96","purge_cache":"\u91cd\u7f6e\u61c9\u7528","waveform_retention":"\u6ce2\u5f62\u8a2d\u5b9a","query_duration":"\u67e5\u8a62\u8a2d\u5b9a","station_inventory":"SeisComp \u8a6e\u91cb\u8cc7\u6599"},"selects":{"choose_scale":{"title":"\u9078\u64c7\u70c8\u5ea6\u6a19\u6e96"}},"forms":{"waveform_retention":{"title":"\u5373\u6642\u6ce2\u5f62\u4fdd\u7559\u6642\u9593","placeholder":"\u8acb\u8f38\u5165\u4fdd\u7559\u6642\u9593","content":"\u8acb\u4ee5\u79d2\u70ba\u55ae\u4f4d\uff0c\u8f38\u5165\u4e00\u500b\u5927\u65bc {{ minimum }} \u4e14\u5c0f\u65bc {{ maximum }} \u7684\u6574\u6578","submit":"\u9001\u51fa","cancel":"\u53d6\u6d88"},"query_duration":{"title":"\u6b77\u53f2\u67e5\u8a62\u9810\u8a2d\u7bc4\u570d","placeholder":"\u8acb\u8f38\u5165\u9810\u8a2d\u67e5\u8a62\u7bc4\u570d","content":"\u8acb\u4ee5\u79d2\u70ba\u55ae\u4f4d\uff0c\u8f38\u5165\u4e00\u500b\u5927\u65bc {{ minimum }} \u4e14\u5c0f\u65bc {{ maximum }} \u7684\u6574\u6578","submit":"\u9001\u51fa","cancel":"\u53d6\u6d88"}},"toasts":{"confirm_title":"\u78ba\u8a8d\u64cd\u4f5c","confirm_button":"\u78ba\u8a8d","cancel_button":"\u53d6\u6d88","confirm_purge":"\u61c9\u7528\u5feb\u53d6\u5c07\u88ab\u6e05\u9664\uff0c\u78ba\u5b9a\u8981\u7e7c\u7e8c\u55ce\uff1f","cache_purged":"\u61c9\u7528\u5feb\u53d6\u5df2\u6e05\u9664\uff0c\u9801\u9762\u5373\u5c07\u5237\u65b0","scale_changed":"\u70c8\u5ea6\u6a19\u6e96\u5df2\u66f4\u6539\u70ba {{ scale }}\uff0c\u9801\u9762\u5373\u5c07\u5237\u65b0","retention_set":"\u5373\u6642\u6ce2\u5f62\u4fdd\u7559\u6642\u9593\u5df2\u66f4\u6539\u70ba {{ current }} \u79d2\uff0c\u9801\u9762\u5373\u5c07\u5237\u65b0","duration_set":"\u6b77\u53f2\u6ce2\u5f62\u9810\u8a2d\u67e5\u8a62\u7bc4\u570d\u5df2\u66f4\u6539\u70ba {{ current }} \u79d2\uff0c\u9801\u9762\u5373\u5c07\u5237\u65b0"},"contents":{"select_scale":"\u76ee\u524d\u70c8\u5ea6\u6a19\u6e96 {{ scale }}\\n\u70c8\u5ea6\u6a19\u6e96\u662f\u7528\u4f86\u8861\u91cf\u5730\u9707\u70c8\u5ea6\u7684\u6a19\u6e96\uff0c\u4e0d\u540c\u7684\u6a19\u6e96\u6703\u5c0e\u81f4\u4e0d\u540c\u7684\u70c8\u5ea6\u503c\u3002","purge_cache":"\u61c9\u7528\u51fa\u73fe\u554f\u984c\u6642\uff0c\u53ef\u5617\u8a66\u91cd\u7f6e\u61c9\u7528\u504f\u597d\u3002\\n\u57f7\u884c\u91cd\u7f6e\u5f8c\uff0c\u700f\u89bd\u5668\u4e2d\u7684\u504f\u597d\u5c07\u88ab\u6e05\u7406\uff0c\u4e0d\u6703\u5c0d\u5f8c\u7aef\u4f3a\u670d\u5668\u7522\u751f\u5f71\u97ff\u3002","waveform_retention":"\u6b64\u9805\u8a2d\u5b9a\u5373\u6642\u6ce2\u5f62\u9801\u9762\u7684\u6ce2\u5f62\u6703\u4fdd\u7559\u7684\u6642\u9593\uff0c\u76ee\u524d {{ current }} \u79d2\u3002\\n\u4ee5\u79d2\u70ba\u55ae\u4f4d\uff0c\u9700\u8981\u5927\u65bc {{ minimum }} \u4e14\u5c0f\u65bc {{ maximum }}\uff0c\u5426\u5247\u5c07\u6703\u88ab\u91cd\u7f6e\u70ba\u9810\u8a2d\u503c {{ default }} \u79d2\u3002","query_duration":"\u6b64\u9805\u8a2d\u5b9a\u6b77\u53f2\u67e5\u8a62\u9801\u9762\u81ea\u52d5\u586b\u5beb\u7684\u6642\u9593\u7bc4\u570d\uff0c\u76ee\u524d {{ current }} \u79d2\u3002\\n\u4ee5\u79d2\u70ba\u55ae\u4f4d\uff0c\u9700\u8981\u5927\u65bc {{ minimum }} \u4e14\u5c0f\u65bc {{ maximum }}\uff0c\u5426\u5247\u5c07\u6703\u88ab\u91cd\u7f6e\u70ba\u9810\u8a2d\u503c {{ default }} \u79d2\u3002"}}}}')},"zh-CN":{label:"\u7b80\u4f53\u4e2d\u6587",translation:JSON.parse('{"components":{"chart":{"reset_zoom":"\u91cd\u7f6e\u89c6\u56fe","reset_zoom_title":"\u91cd\u7f6e\u4e3a\u521d\u59cb\u89c6\u56fe"}},"views":{"home":{"banner":{"warning":{"title":"\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5668","content":"\u8bf7\u7a0d\u7b49..."},"success":{"title":"{{ station }} \u5df2\u8fde\u63a5","content":"\u670d\u52a1\u5668\u5728\u7ebf {{ uptime }} \u79d2\\n\u78c1\u76d8\u5269\u4f59\u5bb9\u91cf {{ disk }}%\\n\u670d\u52a1\u5668\u67b6\u6784 {{ arch }}/{{ os }}"},"error":{"title":"\u8fde\u63a5\u5931\u8d25","content":"\u65e0\u6cd5\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u8bf7\u5c1d\u8bd5\u5237\u65b0\u9875\u9762\u6216\u66f4\u6362\u7f51\u7edc"}},"charts":{"cpu":{"label":"CPU \u4f7f\u7528\u7387","text":"\u5f53\u524d\u5360\u7528\u7387 {{ usage }}%"},"memory":{"label":"\u5185\u5b58\u4f7f\u7528\u7387","text":"\u5f53\u524d\u5360\u7528\u7387 {{ usage }}%"}},"map":{"label":"\u6d4b\u7ad9\u6240\u5728\u4f4d\u7f6e","text":"\u7ecf\u5ea6 {{ longitude }} \xb0\\n\u7eac\u5ea6 {{ latitude }} \xb0\\n\u6d77\u62d4 {{ elevation }} \u7c73"},"labels":{"messages":{"label":"\u5df2\u89e3\u7801\u8baf\u606f\u91cf","unit":"\u6761"},"errors":{"label":"\u5e27\u9519\u8bef\u8baf\u606f\u91cf","unit":"\u6761"},"pushed":{"label":"\u5df2\u63a8\u9001\u8baf\u606f\u91cf","unit":"\u6761"},"failures":{"label":"\u63a8\u9001\u5931\u8d25\u8baf\u606f\u91cf","unit":"\u6761"},"queued":{"label":"\u7b49\u5f85\u63a8\u9001\u8baf\u606f\u91cf","unit":"\u6761"},"offset":{"label":"\u7cfb\u7edf\u65f6\u95f4\u504f\u79fb\u91cf","unit":"\u79d2"}}},"realtime":{"banner":{"warning":{"label":"\u6b63\u5728\u8fde\u63a5\u670d\u52a1\u5668","text":"\u8bf7\u7a0d\u7b49..."},"success":{"label":"\u5f53\u524d\u91c7\u6837\u7387 {{ sampleRate }} Sps","text":"\u5f53\u524d\u70c8\u5ea6\u6807\u51c6 {{ scale }}\\n\u6570\u636e\u66f4\u65b0\u4e8e {{ time }}"},"error":{"label":"\u8fde\u63a5\u5931\u8d25","text":"\u65e0\u6cd5\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u6216\u66f4\u6362\u7f51\u7edc"}},"charts":{"ehz":{"label":"EHZ \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}},"ehe":{"label":"EHE \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}},"ehn":{"label":"EHN \u901a\u9053\u6ce2\u5f62","text":"PGA {{ pga }} gal\\nPGV {{ pgv }} kine\\n\u70c8\u5ea6 {{ intensity }}","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}}},"toasts":{"websocket_connected":"Websocket \u8fde\u7ebf\u5df2\u7ecf\u6253\u5f00"}},"history":{"selects":{"choose_event":{"title":"\u9009\u62e9\u4e00\u4e2a\u5730\u9707\u4e8b\u4ef6","template":"[M{{ magnitude }}] {{ event }}\\n\u9707\u53d1\u65f6\u95f4 {{ time }}\\n\u9707\u6e90\u6df1\u5ea6 {{ depth }} \u516c\u91cc\\n\u9707\u592e\u8ddd\u79bb {{ distance }} \u516c\u91cc\\nP \u6ce2\u5230\u7ad9 {{ p_wave }} \u79d2\\nS \u6ce2\u5230\u7ad9 {{ s_wave }} \u79d2"}},"forms":{"choose_channel":{"title":"\u9009\u62e9\u8981\u5bfc\u51fa\u7684\u901a\u9053","placeholder":"\u901a\u9053\u540d\u79f0","submit":"\u63d0\u4ea4","cancel":"\u53d6\u6d88"},"choose_source":{"title":"\u9009\u62e9\u5730\u9707\u6570\u636e\u6765\u6e90","placeholder":"\u6570\u636e\u6e90","submit":"\u63d0\u4ea4","cancel":"\u53d6\u6d88"}},"charts":{"ehz":{"label":"EHZ \u901a\u9053\u6ce2\u5f62","text":"\u70b9\u51fb\u4e0b\u65b9\u6309\u94ae\u8bbe\u5b9a\u6ee4\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}},"ehe":{"label":"EHE \u901a\u9053\u6ce2\u5f62","text":"\u70b9\u51fb\u4e0b\u65b9\u6309\u94ae\u8bbe\u5b9a\u6ee4\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}},"ehn":{"label":"EHN \u901a\u9053\u6ce2\u5f62","text":"\u70b9\u51fb\u4e0b\u65b9\u6309\u94ae\u8bbe\u5b9a\u6ee4\u6ce2\u5668","advanced":{"panels":{"butterworth_filter":{"title":"Butterworth \u6ee4\u6ce2\u5668","low_corner_freq":"\u4e0b\u9650\u622a\u6b62\u9891\u7387 Hz","high_corner_freq":"\u4e0a\u9650\u622a\u6b62\u9891\u7387 Hz","enable_filter":"\u5f00\u542f\u6ee4\u6ce2\u5668","disable_filter":"\u7981\u7528\u6ee4\u6ce2\u5668"}}}}},"panels":{"query_history":"\u5386\u53f2\u67e5\u8be2","analyze_history":"\u6570\u636e\u5206\u6790"},"buttons":{"query_waveform":"\u8c03\u9605\u6ce2\u5f62","query_sac_file":"\u6570\u636e\u4e0b\u8f7d","query_source":"\u4e8b\u4ef6\u53cd\u67e5","get_share_link":"\u5206\u4eab\u94fe\u63a5"},"labels":{"ehz_detail":{"label":"EHZ \u901a\u9053\u8be6\u60c5","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehe_detail":{"label":"EHE \u901a\u9053\u8be6\u60c5","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"},"ehn_detail":{"label":"EHN \u901a\u9053\u8be6\u60c5","value":"PGA: {{ pga }} gal / PGV: {{ pgv }} kine"}},"time_pickers":{"start_time":"\u9009\u62e9\u8d77\u59cb\u65f6\u95f4","end_time":"\u9009\u62e9\u7ed3\u675f\u65f6\u95f4"},"toasts":{"duration_error":"\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65f6\u95f4\u8303\u56f4","is_exporting_sac":"\u6b63\u5728\u5bfc\u51fa SAC \u683c\u5f0f\u6ce2\u5f62\uff0c\u8bf7\u7a0d\u7b49...","export_sac_success":"SAC \u683c\u5f0f\u6ce2\u5f62\u6570\u636e\u5bfc\u51fa\u6210\u529f","export_sac_error":"SAC \u683c\u5f0f\u6ce2\u5f62\u6570\u636e\u5bfc\u51fa\u5931\u8d25","is_fetching_source":"\u6b63\u5728\u83b7\u53d6\u4e8b\u4ef6\u6570\u636e\u6e90\uff0c\u8bf7\u7a0d\u7b49...","fetch_source_success":"\u4e8b\u4ef6\u6570\u636e\u6e90\u83b7\u53d6\u6210\u529f","fetch_source_error":"\u4e8b\u4ef6\u6570\u636e\u6e90\u83b7\u53d6\u5931\u8d25","is_fetching_events":"\u6b63\u5728\u67e5\u8be2\u5730\u9707\u4e8b\u4ef6\u6570\u636e\uff0c\u8bf7\u7a0d\u7b49...","fetch_events_success":"\u5730\u9707\u4e8b\u4ef6\u67e5\u8be2\u6210\u529f","fetch_events_error":"\u5730\u9707\u4e8b\u4ef6\u67e5\u8be2\u5931\u8d25","is_fetching_waveform":"\u6b63\u5728\u67e5\u8be2\u5386\u53f2\u6ce2\u5f62\u6570\u636e\uff0c\u8bf7\u7a0d\u7b49...","fetch_waveform_success":"\u5386\u53f2\u6ce2\u5f62\u6570\u636e\u67e5\u8be2\u6210\u529f","fetch_waveform_error":"\u5386\u53f2\u6ce2\u5f62\u6570\u636e\u67e5\u8be2\u5931\u8d25","copy_link_success":"\u5206\u4eab\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f","copy_link_error":"\u5206\u4eab\u94fe\u63a5\u590d\u5236\u5931\u8d25","event_select_success":"\u4e8b\u4ef6\u9009\u62e9\u6210\u529f"}},"export":{"panels":{"file_list":"\u6587\u4ef6\u5217\u8868"},"table":{"columns":{"name":"\u6587\u4ef6\u540d\u79f0","size":"\u6587\u4ef6\u5927\u5c0f","time":"\u4fee\u6539\u65e5\u671f","ttl":"\u6709\u6548\u671f\uff08\u5929\uff09"},"actions":{"export":"\u5bfc\u51fa"},"placeholder":{"is_fetching_mseed":"\u6b63\u5728\u83b7\u53d6\uff0c\u8bf7\u7a0d\u7b49...","fetch_mseed_error":"\u5217\u8868\u4e3a\u7a7a\u6216\u83b7\u53d6\u5931\u8d25"},"load_more":"\u52a0\u8f7d\u66f4\u591a"},"toasts":{"is_exporting_mseed":"\u6b63\u5728\u5bfc\u51fa MiniSEED \u683c\u5f0f\u6587\u4ef6\uff0c\u8fd9\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4","export_mseed_success":"MiniSEED \u683c\u5f0f\u6587\u4ef6\u5bfc\u51fa\u6210\u529f","is_fetching_mseed":"\u6b63\u5728\u83b7\u53d6 MiniSEED \u683c\u5f0f\u6587\u4ef6\u5217\u8868\uff0c\u8bf7\u7a0d\u7b49..."}},"setting":{"buttons":{"select_scale":"\u9009\u62e9\u70c8\u5ea6\u6807\u51c6","purge_cache":"\u6e05\u9664\u5e94\u7528\u7f13\u5b58","waveform_retention":"\u8bbe\u5b9a\u6ce2\u5f62\u4fdd\u7559\u65f6\u95f4","query_duration":"\u8bbe\u5b9a\u67e5\u8be2\u8303\u56f4"},"panels":{"select_scale":"\u70c8\u5ea6\u6807\u51c6","purge_cache":"\u91cd\u7f6e\u5e94\u7528","waveform_retention":"\u6ce2\u5f62\u8bbe\u5b9a","query_duration":"\u67e5\u8be2\u8bbe\u5b9a","station_inventory":"SeisComp \u5143\u6570\u636e"},"selects":{"choose_scale":{"title":"\u9009\u62e9\u70c8\u5ea6\u6807\u51c6"}},"forms":{"waveform_retention":{"title":"\u5b9e\u65f6\u6ce2\u5f62\u4fdd\u7559\u65f6\u95f4","placeholder":"\u8bf7\u8f93\u5165\u4fdd\u7559\u65f6\u95f4","content":"\u8bf7\u4ee5\u79d2\u4e3a\u5355\u4f4d\uff0c\u8f93\u5165\u4e00\u4e2a\u5927\u4e8e {{ minimum }} \u4e14\u5c0f\u4e8e {{ maximum }} \u7684\u6574\u6570","submit":"\u63d0\u4ea4","cancel":"\u53d6\u6d88"},"query_duration":{"title":"\u5386\u53f2\u67e5\u8be2\u9ed8\u8ba4\u8303\u56f4","placeholder":"\u8bf7\u8f93\u5165\u9ed8\u8ba4\u67e5\u8be2\u8303\u56f4","content":"\u8bf7\u4ee5\u79d2\u4e3a\u5355\u4f4d\uff0c\u8f93\u5165\u4e00\u4e2a\u5927\u4e8e {{ minimum }} \u4e14\u5c0f\u4e8e {{ maximum }} \u7684\u6574\u6570","submit":"\u63d0\u4ea4","cancel":"\u53d6\u6d88"}},"toasts":{"confirm_title":"\u786e\u8ba4\u64cd\u4f5c","confirm_button":"\u786e\u5b9a","cancel_button":"\u53d6\u6d88","confirm_purge":"\u5e94\u7528\u7f13\u5b58\u5c06\u88ab\u6e05\u9664\uff0c\u786e\u8ba4\u8981\u7ee7\u7eed\u5417\uff1f","cache_purged":"\u5e94\u7528\u7f13\u5b58\u5df2\u6e05\u9664\uff0c\u9875\u9762\u5373\u5c06\u5237\u65b0","scale_changed":"\u70c8\u5ea6\u6807\u51c6\u5df2\u66f4\u6539\u4e3a {{ scale }}\uff0c\u9875\u9762\u5373\u5c06\u5237\u65b0","retention_set":"\u5b9e\u65f6\u6ce2\u5f62\u4fdd\u7559\u65f6\u95f4\u5df2\u66f4\u6539\u4e3a {{ current }} s\uff0c\u9875\u9762\u5373\u5c06\u5237\u65b0","duration_set":"\u5386\u53f2\u6ce2\u5f62\u9ed8\u8ba4\u67e5\u8be2\u8303\u56f4\u5df2\u66f4\u6539\u4e3a {{ current }} s\uff0c\u9875\u9762\u5373\u5c06\u5237\u65b0"},"contents":{"select_scale":"\u5f53\u524d\u70c8\u5ea6\u6807\u51c6 {{ scale }}\\n\u70c8\u5ea6\u6807\u51c6\u662f\u7528\u6765\u8861\u91cf\u5730\u9707\u70c8\u5ea6\u7684\u6807\u51c6\uff0c\u4e0d\u540c\u7684\u6807\u51c6\u4f1a\u5bfc\u81f4\u4e0d\u540c\u7684\u70c8\u5ea6\u503c\u3002","purge_cache":"\u5e94\u7528\u51fa\u73b0\u95ee\u9898\u65f6\uff0c\u53ef\u5c1d\u8bd5\u91cd\u7f6e\u5e94\u7528\u504f\u597d\u3002\\n\u6267\u884c\u91cd\u7f6e\u540e\uff0c\u6d4f\u89c8\u5668\u4e2d\u7684\u504f\u597d\u5c06\u88ab\u6e05\u7406\uff0c\u4e0d\u4f1a\u5bf9\u540e\u7aef\u670d\u52a1\u5668\u4ea7\u751f\u5f71\u54cd\u3002","waveform_retention":"\u6b64\u9879\u8bbe\u5b9a\u5b9e\u65f6\u6ce2\u5f62\u9875\u9762\u7684\u6ce2\u5f62\u4f1a\u4fdd\u7559\u7684\u65f6\u95f4\uff0c\u5f53\u524d {{ current }} s\u3002\\n\u4ee5\u79d2\u4e3a\u5355\u4f4d\uff0c\u9700\u8981\u5927\u4e8e {{ minimum }} \u4e14\u5c0f\u4e8e {{ maximum }}\uff0c\u5426\u5219\u5c06\u4f1a\u88ab\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u503c {{ default }} \u79d2\u3002","query_duration":"\u6b64\u9879\u8bbe\u5b9a\u5386\u53f2\u67e5\u8be2\u9875\u9762\u81ea\u52a8\u586b\u5199\u7684\u65f6\u95f4\u8303\u56f4\uff0c\u5f53\u524d {{ current }} s\u3002\\n\u4ee5\u79d2\u4e3a\u5355\u4f4d\uff0c\u9700\u8981\u5927\u4e8e {{ minimum }} \u4e14\u5c0f\u4e8e {{ maximum }}\uff0c\u5426\u5219\u5c06\u4f1a\u88ab\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u503c {{ default }} \u79d2\u3002"}}}}')}}},de=(async(e,t,n)=>{const r=new ce(null,{lookupLocalStorage:t});return await B.use(q.r9).use(r).init({resources:n,fallbackLng:e,detection:{caches:["localStorage"],order:["localStorage","navigator"]},interpolation:{escapeValue:!0}}),B})(fe.fallback,fe.key,fe.resources)},64192:(e,t,n)=>{"use strict";n.d(t,{w:()=>$,A:()=>V});var r=n(88208),o=n(14912),a=n(11359),i="persist:",s="persist/FLUSH",l="persist/REHYDRATE",u="persist/PAUSE",c="persist/PERSIST",f="persist/PURGE",d="persist/REGISTER";function p(e){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n,r){r.debug;var o=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?m:e.stateReconciler),o=e.getStoredState||b,a=void 0!==e.timeout?e.timeout:5e3,d=null,p=!1,h=!0,g=function(e){return e._persist.rehydrated&&d&&!h&&d.update(e),e};return function(m,v){var b=m||{},w=b._persist,x=E(b,["_persist"]);if(v.type===c){var _=!1,O=function(t,n){_||(v.rehydrate(e.key,t,n),_=!0)};if(a&&setTimeout((function(){!_&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),a),h=!1,d||(d=y(e)),w)return k({},t(x,v),{_persist:w});if("function"!==typeof v.rehydrate||"function"!==typeof v.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return v.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){O(e)}),(function(e){O(void 0,e)}))}),(function(e){O(void 0,e)})),k({},t(x,v),{_persist:{version:n,rehydrated:!1}})}if(v.type===f)return p=!0,v.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:i).concat(e.key);return t.removeItem(n,S)}(e)),k({},t(x,v),{_persist:w});if(v.type===s)return v.result(d&&d.flush()),k({},t(x,v),{_persist:w});if(v.type===u)h=!0;else if(v.type===l){if(p)return k({},x,{_persist:k({},w,{rehydrated:!0})});if(v.key===e.key){var C=t(x,v),P=v.payload,N=k({},!1!==r&&void 0!==P?r(P,m,C,e):C,{_persist:k({},w,{rehydrated:!0})});return g(N)}}if(!w)return t(m,v);var j=t(x,v);return j===x?m:g(k({},j,{_persist:w}))}}function C(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return N({},e,{registry:[].concat(C(e.registry),[t.key])});case l:var n=e.registry.indexOf(t.key),r=C(e.registry);return r.splice(n,1),N({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var A=n(51596),T=n(96068),z=n(83936),F=n(63060),D=n(8354),I=n(38141);const U=O({storage:o.A,key:"scale",whitelist:["scale"]},A.A),M=O({storage:o.A,key:"duration",whitelist:["duration"]},z.A),H=O({storage:o.A,key:"retention",whitelist:["retention"]},F.A),B=(0,r.HY)({adc:T.A,geophone:I.A,station:D.A,scale:U,duration:M,retention:H}),q=(0,a.U1)({reducer:B,middleware:e=>e({serializableCheck:!1})}),$=function(e,t,n){var o=n||!1,a=(0,r.y$)(L,R,t&&t.enhancer?t.enhancer:void 0),i=function(e){a.dispatch({type:d,key:e})},p=function(t,n,r){var i={type:l,payload:n,err:r,key:t};e.dispatch(i),a.dispatch(i),o&&h.getState().bootstrapped&&(o(),o=!1)},h=N({},a,{purge:function(){var t=[];return e.dispatch({type:f,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:s,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:u})},persist:function(){e.dispatch({type:c,register:i,rehydrate:p})}});return t&&t.manualPersist||h.persist(),h}(q),V=q},34339:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r=e=>e?window.location.protocol:"https:"===window.location.protocol?"wss:":"ws:"},38526:(e,t,n)=>{"use strict";n.d(t,{c:()=>Qe});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>re,hasStandardBrowserEnv:()=>oe,hasStandardBrowserWebWorkerEnv:()=>ie});const{toString:a}=Object.prototype,{getPrototypeOf:i}=Object,s=(l=Object.create(null),e=>{const t=a.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:f}=Array,d=c("undefined");const p=u("ArrayBuffer");const h=c("string"),g=c("function"),m=c("number"),y=e=>null!==e&&"object"===typeof e,v=e=>{if("object"!==s(e))return!1;const t=i(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},b=u("Date"),w=u("File"),S=u("Blob"),x=u("FileList"),k=u("URLSearchParams");function _(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),f(e))for(n=0,r=e.length;n0;)if(r=n[o],t===r.toLowerCase())return r;return null}const O="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,C=e=>!d(e)&&e!==O;const P=(N="undefined"!==typeof Uint8Array&&i(Uint8Array),e=>N&&e instanceof N);var N;const j=u("HTMLFormElement"),R=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),L=u("RegExp"),A=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},T="abcdefghijklmnopqrstuvwxyz",z="0123456789",F={DIGIT:z,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+z};const D=u("AsyncFunction"),I={isArray:f,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=s(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:v,isUndefined:d,isDate:b,isFile:w,isBlob:S,isRegExp:L,isFunction:g,isStream:e=>y(e)&&g(e.pipe),isURLSearchParams:k,isTypedArray:P,isFileList:x,forEach:_,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,o)=>{const a=t&&E(n,o)||o;v(n[a])&&v(r)?n[a]=e(n[a],r):v(r)?n[a]=e({},r):f(r)?n[a]=r.slice():n[a]=r};for(let o=0,a=arguments.length;o3&&void 0!==arguments[3]?arguments[3]:{};return _(t,((t,r)=>{n&&g(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:A,freezeMethods:e=>{A(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:E,global:O,isContextDefined:C,ALPHABET:F,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=f(e)?[]:{};return _(e,((e,t)=>{const a=n(e,r+1);!d(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch)};function U(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}I.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const M=U.prototype,H={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{H[e]={value:e}})),Object.defineProperties(U,H),Object.defineProperty(M,"isAxiosError",{value:!0}),U.from=(e,t,n,r,o,a)=>{const i=Object.create(M);return I.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),U.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const B=U;function q(e){return I.isPlainObject(e)||I.isArray(e)}function $(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function V(e,t,n){return e?e.concat(t).map((function(e,t){return e=$(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=I.toFlatObject(I,{},null,(function(e){return/^is[A-Z]/.test(e)}));const K=function(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!I.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!s&&I.isBlob(e))throw new B("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(I.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(I.isArray(e)&&function(e){return I.isArray(e)&&!e.some(q)}(e)||(I.isFileList(e)||I.endsWith(n,"[]"))&&(s=I.toArray(e)))return n=$(n),s.forEach((function(e,r){!I.isUndefined(e)&&null!==e&&t.append(!0===i?V([n],r,a):null===i?n:n+"[]",l(e))})),!1;return!!q(e)||(t.append(V(o,n,a),l(e)),!1)}const c=[],f=Object.assign(W,{defaultVisitor:u,convertValue:l,isVisitable:q});if(!I.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!I.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),I.forEach(n,(function(n,a){!0===(!(I.isUndefined(n)||null===n)&&o.call(t,n,I.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function J(e,t){this._pairs=[],e&&K(e,this,t)}const Q=J.prototype;Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Z=J;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const r=n&&n.encode||X,o=n&&n.serialize;let a;if(a=o?o(t,n):I.isURLSearchParams(t)?t.toString():new Z(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const ee=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Z,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},re="undefined"!==typeof window&&"undefined"!==typeof document,oe=(ae="undefined"!==typeof navigator&&navigator.product,re&&["ReactNative","NativeScript","NS"].indexOf(ae)<0);var ae;const ie="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,se={...r,...ne};const le=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&I.isArray(r)?r.length:a,s)return I.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&I.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&I.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r{t(function(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ue={transitional:te,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=I.isObject(e);o&&I.isHTMLForm(e)&&(e=new FormData(e));if(I.isFormData(e))return r?JSON.stringify(le(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return K(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return se.isNode&&I.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return K(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&I.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw B.from(o,B.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],(e=>{ue.headers[e]={}}));const ce=ue,fe=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),de=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:I.isArray(e)?e.map(he):String(e)}function ge(e,t,n,r,o){return I.isFunction(r)?r.call(this,t,n):(o&&(t=n),I.isString(t)?I.isString(r)?-1!==t.indexOf(r):I.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=pe(t);if(!o)throw new Error("header name must be a non-empty string");const a=I.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=he(e))}const a=(e,t)=>I.forEach(e,((e,n)=>o(e,n,t)));return I.isPlainObject(e)||e instanceof this.constructor?a(e,t):I.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&fe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=pe(e)){const n=I.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(I.isFunction(t))return t.call(this,e,n);if(I.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pe(e)){const n=I.findKey(this,e);return!(!n||void 0===this[n]||t&&!ge(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=pe(e)){const o=I.findKey(n,e);!o||t&&!ge(0,n[o],o,t)||(delete n[o],r=!0)}}return I.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ge(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return I.forEach(this,((r,o)=>{const a=I.findKey(n,o);if(a)return t[a]=he(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=he(r),n[i]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n{null!=n&&!1!==n&&(t[r]=e&&I.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;ot.set(e))),t}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=pe(e);t[r]||(!function(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return I.isArray(e)?e.forEach(r):r(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(me.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),I.freezeMethods(me);const ye=me;function ve(e,t){const n=this||ce,r=t||n,o=ye.from(r.headers);let a=r.data;return I.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){B.call(this,null==e?"canceled":e,B.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(we,B,{__CANCEL__:!0});const Se=we;const xe=se.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),I.isString(r)&&i.push("path="+r),I.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ke(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=se.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=I.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const Ee=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,f=0;for(;c!==a;)f+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s);n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ce={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ye.from(e.headers).normalize();let a,i,{responseType:s,withXSRFToken:l}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(I.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(i=o.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=ke(e.baseURL,e.url);function d(){if(!c)return;const r=ye.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Y(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(new B("Request aborted",B.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new B("Network Error",B.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||te;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new B(t,r.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,c)),c=null},se.hasStandardBrowserEnv&&(l&&I.isFunction(l)&&(l=l(e)),l||!1!==l&&_e(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&xe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&I.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),I.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&c.addEventListener("progress",Oe(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Oe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(n(!t||t.type?new Se(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===se.protocols.indexOf(p)?n(new B("Unsupported protocol "+p+":",B.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};I.forEach(Ce,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Pe=e=>"- ".concat(e),Ne=e=>I.isFunction(e)||null===e||!1===e,je=e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Pe).join("\n"):" "+Pe(e[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function Le(e){Re(e),e.headers=ye.from(e.headers),e.data=ve.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return je(e.adapter||ce.adapter)(e).then((function(t){return Re(e),t.data=ve.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return be(t)||(Re(e),t&&t.response&&(t.response.data=ve.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}const Ae=e=>e instanceof ye?e.toJSON():e;function Te(e,t){t=t||{};const n={};function r(e,t,n){return I.isPlainObject(e)&&I.isPlainObject(t)?I.merge.call({caseless:n},e,t):I.isPlainObject(t)?I.merge({},t):I.isArray(t)?t.slice():t}function o(e,t,n){return I.isUndefined(t)?I.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!I.isUndefined(t))return r(void 0,t)}function i(e,t){return I.isUndefined(t)?I.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>o(Ae(e),Ae(t),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=l[r]||o,i=a(e[r],t[r],r);I.isUndefined(i)&&a!==s||(n[r]=i)})),n}const ze="1.6.7",Fe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Fe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const De={};Fe.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new B(r(o," has been removed"+(t?" in "+t:"")),B.ERR_DEPRECATED);return t&&!De[o]&&(De[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};const Ie={assertOptions:function(e,t,n){if("object"!==typeof e)throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new B("option "+a+" must be "+n,B.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new B("Unknown option "+a,B.ERR_BAD_OPTION)}},validators:Fe},Ue=Ie.validators;class Me{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Te(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ie.assertOptions(n,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),null!=r&&(I.isFunction(r)?t.paramsSerializer={serialize:r}:Ie.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&I.merge(o.common,o[t.method]);o&&I.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ye.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,f=0;if(!s){const e=[Le.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Se(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Be((function(t){e=t})),cancel:e}}}const qe=Be;const $e={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($e).forEach((e=>{let[t,n]=e;$e[n]=t}));const Ve=$e;const We=function e(t){const n=new He(t),r=o(He.prototype.request,n);return I.extend(r,He.prototype,n,{allOwnKeys:!0}),I.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Te(t,n))},r}(ce);We.Axios=He,We.CanceledError=Se,We.CancelToken=qe,We.isCancel=be,We.VERSION=ze,We.toFormData=K,We.AxiosError=B,We.Cancel=We.CanceledError,We.all=function(e){return Promise.all(e)},We.spread=function(e){return function(t){return e.apply(null,t)}},We.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},We.mergeConfig=Te,We.AxiosHeaders=ye,We.formToJSON=e=>le(I.isHTMLForm(e)?new FormData(e):e),We.getAdapter=je,We.HttpStatusCode=Ve,We.default=We;const Ke=We;var Ge=n(34691),Je=n(34339);const Qe=async e=>{let{header:t,payload:n,backend:r,endpoint:o,throwError:a,blobOptions:i,abortController:s,timeout:l=100}=e;const u=Ke.create({timeout:1e3*l});u.interceptors.request.use((e=>(i||(e.headers.Accept="application/json"),e))),u.interceptors.response.use((e=>e),(e=>Promise.reject(e)));const{response:c}=o.model;try{if("socket"===o.type)throw new Error("websocket protocol is not supported");const e=(0,Je.J)(!0);let a="".concat(e,"//").concat(r).concat(o.path);const l=new URLSearchParams;"get"===o.method&&n&&(Object.entries(n).forEach((e=>{let[t,n]=e;l.set(t,n)})),a+="?".concat(l.toString()));const{data:d,headers:p}=await u.request({url:a,headers:t,method:o.method,signal:null===s||void 0===s?void 0:s.signal,onDownloadProgress:null===i||void 0===i?void 0:i.onDownload,responseType:i?"blob":"json",data:"post"===o.method?n:{}});if(i){const{"content-disposition":e}=p;let t=i.fileName;var f;if(e)t=null===(f=e.split(";").find((e=>e.includes("filename="))))||void 0===f?void 0:f.split("=")[1];return(0,Ge.saveAs)(d,t.length?t:"stream"),c.common}return{...c.common,...d}}catch(p){var d;const e=null!==(d=c.error)&&void 0!==d?d:c.common;return a?Promise.reject(p):e}}},96068:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,L:()=>o});const r=(0,n(11359).Z0)({name:"adc",initialState:{adc:{fullscale:5,resolution:24,initialized:!1}},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;e.adc=n}}}),{onUpdate:o}=r.actions,a=r.reducer},83936:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,L:()=>l});var r=n(11359),o=n(99145);const{duration:a}=o.c,{default:i}=a,s=(0,r.Z0)({name:"duration",initialState:{duration:i},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;n>a.minimum&&n<=a.maximum?e.duration=n:e.duration=a.default}}}),{onUpdate:l}=s.actions,u=s.reducer},38141:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,L:()=>o});const r=(0,n(11359).Z0)({name:"geophone",initialState:{geophone:{frequency:4.5,sensitivity:28.8,initialized:!1}},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;e.geophone=n}}}),{onUpdate:o}=r.actions,a=r.reducer},63060:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,L:()=>l});var r=n(11359),o=n(99145);const{retention:a}=o.c,{default:i}=a,s=(0,r.Z0)({name:"retention",initialState:{retention:i},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;n>a.minimum&&n<=a.maximum?e.retention=n:e.retention=a.default}}}),{onUpdate:l}=s.actions,u=s.reducer},51596:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,L:()=>s});var r=n(11359),o=n(99145);const{value:a}=o.R.property(),i=(0,r.Z0)({name:"scale",initialState:{scale:a},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;e.scale=n}}}),{onUpdate:s}=i.actions,l=i.reducer},8354:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,L:()=>o});const r=(0,n(11359).Z0)({name:"station",initialState:{station:{station:"SHAKE",network:"AS",location:"00",initialized:!1}},reducers:{onUpdate:(e,t)=>{const{payload:n}=t;e.station=n}}}),{onUpdate:o}=r.actions,a=r.reducer},50857:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(w,--v):0,m--,10===b&&(m=1,g--),b}function _(){return b=v2||P(b)>3?"":" "}function A(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return C(e,O()+(t<6&&32==E()&&32==_()))}function T(e){for(;_();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&T(b);break;case 40:41===e&&T(e);break;case 92:_()}return v}function z(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+C(t,v-1)+"*"+a(47===e?e:_())}function F(e){for(;!P(E());)_();return C(e,v)}var D="-ms-",I="-moz-",U="-webkit-",M="comm",H="rule",B="decl",q="@keyframes";function $(e,t){for(var n="",r=p(e),o=0;o0&&d(I)-y&&h(b>32?Q(I+";",r,n,y-1):Q(l(I," ","")+";",r,n,y-2),p);break;case 59:I+=";";default:if(h(D=G(I,t,n,g,m,o,f,N,j=[],T=[],y),i),123===P)if(0===m)K(I,t,D,D,j,i,y,f,T);else switch(99===v&&110===c(I,3)?100:v){case 100:case 108:case 109:case 115:K(e,D,D,r&&h(G(e,D,D,0,0,o,f,N,o,j=[],y),T),o,T,y,f,r?j:T);break;default:K(I,D,D,D,[""],T,0,f,T)}}g=m=b=0,S=C=1,N=I="",y=s;break;case 58:y=1+d(I),b=w;default:if(S<1)if(123==P)--S;else if(125==P&&0==S++&&125==k())continue;switch(I+=a(P),P*S){case 38:C=m>0?1:(I+="\f",-1);break;case 44:f[g++]=(d(I)-1)*C,C=1;break;case 64:45===E()&&(I+=R(_())),v=E(),m=y=d(N=I+=F(O())),P++;break;case 45:45===w&&2==d(I)&&(S=0)}}return i}function G(e,t,n,r,a,i,u,c,d,h,g){for(var m=a-1,y=0===a?i:[""],v=p(y),b=0,w=0,x=0;b0?y[k]+" "+_:l(_,/&\f/g,y[k])))&&(d[x++]=E);return S(e,t,n,0===a?H:c,d,h,g)}function J(e,t,n){return S(e,t,n,M,a(b),f(e,2,-2),0)}function Q(e,t,n,r){return S(e,t,n,B,f(e,0,r),f(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!P(o);)_();return C(e,v)},X=function(e,t){return j(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=_());return e}(N(e),t))},Y=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Y.get(n))&&!r){Y.set(e,!0);for(var o=[],a=X(t,o),i=n.props,s=0,l=0;s6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+I+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,d(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===c(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return U+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case q:return $([x(e,{value:l(e.value,"@","@"+U)})],r);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([x(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var a,i,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},74658:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>u,i:()=>a,w:()=>l});var r=n(9950),o=n(50857),a=(n(21192),n(96477),!0),i=r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null);var s=i.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))};a||(l=function(e){return function(t){var n=(0,r.useContext)(i);return null===n?(n=(0,o.A)({key:"css"}),r.createElement(i.Provider,{value:n},e(t,n))):e(t,n)}});var u=r.createContext({})},21192:(e,t,n)=>{"use strict";n.d(t,{J:()=>h});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(57923),a=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),c=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(i,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===r[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)d={name:r.name,styles:r.styles,next:d},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:d}}},96477:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>i});var o=n(9950),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},50600:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(9950);var r=n(74658),o=n(50857),a=n(44414);let i;function s(e){const{injectFirst:t,children:n}=e;return t&&i?(0,a.jsx)(r.C,{value:i,children:n}):n}"object"===typeof document&&(i=(0,o.A)({key:"css",prepend:!0}))},11359:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return B&&e instanceof Map}function p(e){return q&&e instanceof Set}function h(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[K];for(var n=J(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&i(e,(function(e,t){return m(t,!0)}),!0)),e}function y(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Z[e];return t||r(18,e),t}function w(e,t){Z[e]||(Z[e]=t)}function S(){return M}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){_(e),e.p.forEach(O),e.p=null}function _(e){e===M&&(M=e.l)}function E(e){return M={p:[],l:M,h:e,m:!0,_:0}}function O(e){var t=e[K];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,o),o?(n[K].P&&(k(t),r(4)),a(e)&&(e=P(t,e),t.l||j(t,e)),t.u&&b("Patches").M(n[K].t,e,t.u,t.s)):e=P(t,n,[]),k(t),t.u&&t.v(t.u,t.s),e!==V?e:void 0}function P(e,t,n){if(v(t))return t;var r=t[K];if(!r)return i(t,(function(o,a){return N(e,r,t,o,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return j(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=g(r.k):r.o,a=o,s=!1;3===r.i&&(a=new Set(o),o.clear(),s=!0),i(a,(function(t,a){return N(e,r,o,t,a,n,s)})),j(e,o,!1),n&&e.u&&b("Patches").N(r,n,e.u,e.s)}return r.o}function N(e,t,n,r,i,s,u){if(o(i)){var f=P(e,i,s&&t&&3!==t.i&&!l(t.R,r)?s.concat(r):void 0);if(c(n,r,f),!o(f))return;e.m=!1}else u&&n.add(i);if(a(i)&&!v(i)){if(!e.h.D&&e._<1)return;P(e,i),t&&t.A.l||j(e,i)}}function j(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function R(e,t){var n=e[K];return(n?h(n):e)[t]}function L(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function A(e){e.P||(e.P=!0,e.l&&A(e.l))}function T(e){e.o||(e.o=g(e.t))}function z(e,t,n){var r=d(t)?b("MapSet").F(t,n):p(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:S(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,a=X;n&&(o=[r],a=Y);var i=Proxy.revocable(o,a),s=i.revoke,l=i.proxy;return r.k=l,r.j=s,l}(t,n):b("ES5").J(t,n);return(n?n.A:S()).p.push(r),r}function F(e){return o(e)||r(22,e),function e(t){if(!a(t))return t;var n,r=t[K],o=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=D(t,o),r.I=!1}else n=D(t,o);return i(n,(function(t,o){r&&u(r.t,t)===o||c(n,t,e(o))})),3===o?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}function I(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return X.get(t,e)},set:function(t){var n=this[K];X.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][K];if(!o.P)switch(o.i){case 5:r(o)&&A(o);break;case 4:n(o)&&A(o)}}}function n(e){for(var t=e.t,n=e.k,r=J(n),o=r.length-1;o>=0;o--){var a=r[o];if(a!==K){var i=t[a];if(void 0===i&&!l(t,a))return!0;var s=n[a],u=s&&s[K];if(u?u.t!==i:!f(s,i))return!0}}var c=!!t[K];return r.length!==J(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rNe,Z0:()=>Re});var U,M,H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,q="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=H?Symbol.for("immer-nothing"):((U={})["immer-nothing"]=!0,U),W=H?Symbol.for("immer-draftable"):"__$immer_draftable",K=H?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q=Object.getOwnPropertyDescriptors||function(e){var t={};return J(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Z={},X={get:function(e,t){if(t===K)return e;var n=h(e);if(!l(n,t))return function(e,t,n){var r,o=L(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!a(r)?r:r===R(e.t,t)?(T(e),e.o[t]=z(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=L(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=R(h(e),t),a=null==o?void 0:o[K];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(f(n,o)&&(void 0!==n||l(e.t,t)))return!0;T(e),A(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==R(e.t,t)||t in e.t?(e.R[t]=!1,T(e),A(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Y={};i(X,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,n){return X.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=$,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=b("Patches").$;return o(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const re=ne;var oe=n(88208);function ae(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var ie=ae();ie.withExtraArgument=ae;const se=ie;var le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;td,Gh:()=>T,HS:()=>z,Oi:()=>l,Rr:()=>p,TM:()=>s,pX:()=>M,pb:()=>j,rc:()=>o,tH:()=>U,ue:()=>m,yD:()=>A,zR:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const a="popstate";function i(e){return void 0===e&&(e={}),h((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:d(t)}),null,e)}function s(e){return void 0===e&&(e={}),h((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),f("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:d(t))}),(function(e,t){u("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function l(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function u(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?p(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:u=!1}=i,p=s.history,h=o.Pop,g=null,m=y();function y(){return(p.state||{idx:null}).idx}function v(){h=o.Pop;let e=y(),t=null==e?null:e-m;m=e,g&&g({action:h,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==m&&(m=0,p.replaceState(r({},p.state,{idx:m}),""));let w={get action(){return h},get location(){return e(s,p)},listen(e){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(a,v),g=e,()=>{s.removeEventListener(a,v),g=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=o.Push;let r=f(w.location,e,t);n&&n(r,e),m=y()+1;let a=c(r,m),i=w.createHref(r);try{p.pushState(a,"",i)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;s.location.assign(i)}u&&g&&g({action:h,location:w.location,delta:1})},replace:function(e,t){h=o.Replace;let r=f(w.location,e,t);n&&n(r,e),m=y();let a=c(r,m),i=w.createHref(r);p.replaceState(a,"",i),u&&g&&g({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){void 0===n&&(n="/");let r=j(("string"===typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let i=0;null==a&&i{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=z([r,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),y(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:O(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of v(e.path))o(e,t,r);else o(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=v(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,S=2,x=1,k=10,_=-2,E=e=>"*"===e;function O(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=_),t&&(r+=S),n.filter((e=>!E(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?x:k)),r)}function C(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function L(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function A(e,t){let n=L(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function T(e,t,n,o){let a;void 0===o&&(o=!1),"string"===typeof e?a=p(e):(a=r({},e),l(!a.pathname||!a.pathname.includes("?"),R("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),R("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),R("#","search","hash",a)));let i,s=""===e||""===a.pathname,u=s?"/":a.pathname;if(null==u)i=n;else{let e=t.length-1;if(!o&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?p(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:D(r),hash:I(o)}}(a,i),f=u&&"/"!==u&&u.endsWith("/"),d=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const z=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}function M(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],B=(new Set(H),["get",...H]);new Set(B),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},34691:function(e,t,n){var r,o,a;o=[],void 0===(a="function"===typeof(r=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=i.URL||i.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):o(l.href)?r(e,t,n):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,i),n);else if(o(e))r(e,n,i);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var f=i.URL||i.webkitURL,d=f.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,o):r)||(e.exports=a)},23876:(e,t,n)=>{"use strict";var r=n(50630),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var s=l(t),g=l(n),m=0;m{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case o:return t}}}function x(e){return S(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===i||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},50630:(e,t,n)=>{"use strict";e.exports=n(72138)},38345:(e,t,n)=>{"use strict";var r=n(9950),o=n(75340);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n