@openremote/or-gauge 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var ORGauge;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constructor;e.exports=()=>t},7052(e){"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},9630(e,t,o){"use strict";var n=o(469),r=o(24),i=o(1530);e.exports=o(7009)||n.call(i,r)},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,o){"use strict";var n=o(469),r=o(6757),i=o(1530),c=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return c(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),r=o(7196),i=r([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&i(e,".prototype.")>-1?r([o]):o}},714(e,t,o){"use strict";var n,r=o(7196),i=o(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var c=!!n&&i&&i(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;e.exports=c&&"function"==typeof c.get?r([c.get]):"function"==typeof s&&function(e){return s(null==e?e:a(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},802(e){"use strict";e.exports=Object},9691(e){"use strict";var t=Object.prototype.toString,o=Math.max,n=function(e,t){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var r=0;r<t.length;r+=1)o[r+e.length]=t[r];return o},r=function(e,t){for(var o=[],n=t||0,r=0;n<e.length;n+=1,r+=1)o[r]=e[n];return o},i=function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o};e.exports=function(e){var c,a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw TypeError("Function.prototype.bind called on incompatible "+a);for(var s=r(arguments,1),l=o(0,a.length-s.length),d=[],f=0;f<l;f++)d[f]="$"+f;if(c=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof c){var t=a.apply(this,n(s,arguments));return Object(t)===t?t:this}return a.apply(e,n(s,arguments))}),a.prototype){var m=function(){};m.prototype=a.prototype,c.prototype=new m,m.prototype=null}return c}},469(e,t,o){"use strict";var n=o(9691);e.exports=Function.prototype.bind||n},1001(e){(function(){var t,o,n,r,i,c,a,s,l,d,f,m,u,b=[].slice,F={}.hasOwnProperty,h=function(e,t){for(var o in t)F.call(t,o)&&(e[o]=t[o]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p=[].indexOf||function(e){for(var t=0,o=this.length;t<o;t++)if(t in this&&this[t]===e)return t;return -1};!function(){var e,t,o,n,r,i,c;for(o=0,r=(c=["ms","moz","webkit","o"]).length;o<r&&(i=c[o],!window.requestAnimationFrame);o++)window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"];e=null,n=0,t={},window.requestAnimationFrame?window.cancelAnimationFrame||(e=window.requestAnimationFrame,window.requestAnimationFrame=function(o,r){var i;return i=++n,e(function(){if(!t[i])return o()},r),i},window.cancelAnimationFrame=function(e){return t[e]=!0}):(window.requestAnimationFrame=function(e,t){var o,n,r,i;return i=Math.max(0,16-((o=new Date().getTime())-r)),n=window.setTimeout(function(){return e(o+i)},i),r=o+i,n},window.cancelAnimationFrame=function(e){return clearTimeout(e)})}(),u=function(e){var t,o;for(t=Math.floor(e/3600),o=Math.floor((e-3600*t)/60),e-=3600*t+60*o,e+="",o+="";o.length<2;)o="0"+o;for(;e.length<2;)e="0"+e;return(t=t?t+":":"")+o+":"+e},f=function(){var e,t,o;return t=1<=arguments.length?b.call(arguments,0):[],o=t[0],e=t[1],l(o.toFixed(e))},m=function(e,t){var o,n,r;for(o in n={},e)F.call(e,o)&&(r=e[o],n[o]=r);for(o in t)F.call(t,o)&&(r=t[o],n[o]=r);return n},l=function(e){var t,o,n,r;for(e+="",n=(o=e.split("."))[0],r="",o.length>1&&(r="."+o[1]),t=/(\d+)(\d{3})/;t.test(n);)n=n.replace(t,"$1,$2");return n+r},d=function(e){return"#"===e.charAt(0)?e.substring(1,7):e},n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return h(t,e),t.prototype.displayScale=1,t.prototype.forceUpdate=!0,t.prototype.setTextField=function(e,t){return this.textField=e instanceof a?e:new a(e,t)},t.prototype.setMinValue=function(e,t){var o,n,r,i,c;if(this.minValue=e,null==t&&(t=!0),t){for(this.displayedValue=this.minValue,i=this.gp||[],c=[],n=0,r=i.length;n<r;n++)o=i[n],c.push(o.displayedValue=this.minValue);return c}},t.prototype.setOptions=function(e){return null==e&&(e=null),this.options=m(this.options,e),this.textField&&(this.textField.el.style.fontSize=e.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},t.prototype.configDisplayScale=function(){var e,t,o,n,r;return n=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(t=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=t/e),this.displayScale!==n&&(r=this.canvas.G__width||this.canvas.width,o=this.canvas.G__height||this.canvas.height,this.canvas.width=r*this.displayScale,this.canvas.height=o*this.displayScale,this.canvas.style.width=r+"px",this.canvas.style.height=o+"px",this.canvas.G__width=r,this.canvas.G__height=o),this},t.prototype.parseValue=function(e){return isFinite(e=parseFloat(e)||Number(e))?e:0},t}(s=function(){function e(e,o){null==e&&(e=!0),this.clear=null==o||o,e&&t.add(this)}return e.prototype.animationSpeed=32,e.prototype.update=function(e){var t;return null==e&&(e=!1),(!!e||this.displayedValue!==this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),.001>=Math.abs((t=this.value-this.displayedValue)/this.animationSpeed)?this.displayedValue=this.value:this.displayedValue=this.displayedValue+t/this.animationSpeed,this.render(),!0)},e}()),a=function(){function e(e,t){this.el=e,this.fractionDigits=t}return e.prototype.render=function(e){return this.el.innerHTML=f(e.displayedValue,this.fractionDigits)},e}(),function(e){function t(e,o){if(this.elem=e,this.text=null!=o&&o,t.__super__.constructor.call(this),void 0===this.elem)throw Error("The element isn't defined.");this.value=+this.elem.innerHTML,this.text&&(this.value=0)}h(t,e),t.prototype.displayedValue=0,t.prototype.value=0,t.prototype.setVal=function(e){return this.value=+e},t.prototype.render=function(){var e;return e=this.text?u(this.displayedValue.toFixed(0)):l(f(this.displayedValue)),this.elem.innerHTML=e}}(s),c=function(e){function t(e){if(this.gauge=e,void 0===this.gauge)throw Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,t.__super__.constructor.call(this,!1,!1),this.setOptions()}return h(t,e),t.prototype.displayedValue=0,t.prototype.value=0,t.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},t.prototype.img=null,t.prototype.setOptions=function(e){if(null==e&&(e=null),this.options=m(this.options,e),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},t.prototype.render=function(){var e,t,o,n,r,i,c,a,s;if(e=this.gauge.getAngle.call(this,this.displayedValue),a=Math.round(this.length*Math.cos(e)),s=Math.round(this.length*Math.sin(e)),i=Math.round(this.strokeWidth*Math.cos(e-Math.PI/2)),c=Math.round(this.strokeWidth*Math.sin(e-Math.PI/2)),t=Math.round(this.strokeWidth*Math.cos(e+Math.PI/2)),o=Math.round(this.strokeWidth*Math.sin(e+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(i,c),this.ctx.lineTo(a,s),this.ctx.lineTo(t,o),this.ctx.fill(),this.img)return n=Math.round(this.img.width*this.options.iconScale),r=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(a,s),this.ctx.rotate(e+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-n/2,-r/2,n,r),this.ctx.restore()},t}(s),function(){function e(e){this.elem=e}e.prototype.updateValues=function(e){return this.value=e[0],this.maxValue=e[1],this.avgValue=e[2],this.render()},e.prototype.render=function(){var e,t;return this.textField&&this.textField.text(f(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),t=this.value/this.maxValue*100,e=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:t+"%"}),$(".typical-value",this.elem).css({width:e+"%"})}}(),i=function(e){function o(e){var t,n;this.canvas=e,o.__super__.constructor.call(this),this.percentColors=null,"u">typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),t=this.canvas.clientHeight,n=this.canvas.clientWidth,this.canvas.height=t,this.canvas.width=n,this.gp=[new c(this)],this.setOptions()}return h(o,e),o.prototype.elem=null,o.prototype.value=[20],o.prototype.maxValue=80,o.prototype.minValue=0,o.prototype.displayedAngle=0,o.prototype.displayedValue=0,o.prototype.lineWidth=40,o.prototype.paddingTop=.1,o.prototype.paddingBottom=.1,o.prototype.percentColors=null,o.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},o.prototype.setOptions=function(e){var t,n,r,i,c;for(null==e&&(e=null),o.__super__.setOptions.call(this,e),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(i=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(i)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),n=0,r=(c=this.gp).length;n<r;n++)(t=c[n]).setOptions(this.options.pointer),t.render();return this.render(),this},o.prototype.configPercentColors=function(){var e,t,o,n,r,i,c;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=[],i=[],o=n=0,r=this.options.percentColors.length-1;0<=r?n<=r:n>=r;o=0<=r?++n:--n)c=parseInt(d(this.options.percentColors[o][1]).substring(0,2),16),t=parseInt(d(this.options.percentColors[o][1]).substring(2,4),16),e=parseInt(d(this.options.percentColors[o][1]).substring(4,6),16),i.push(this.percentColors[o]={pct:this.options.percentColors[o][0],color:{r:c,g:t,b:e}});return i}},o.prototype.set=function(e){var o,n,r,i,a,s,l,d,f;for(e instanceof Array||(e=[e]),n=r=0,l=e.length-1;0<=l?r<=l:r>=l;n=0<=l?++r:--r)e[n]=this.parseValue(e[n]);if(e.length>this.gp.length)for(n=i=0,d=e.length-this.gp.length;0<=d?i<d:i>d;n=0<=d?++i:--i)(o=new c(this)).setOptions(this.options.pointer),this.gp.push(o);else e.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-e.length));for(s=0,n=0,a=e.length;s<a;s++)(f=e[s])>this.maxValue?this.options.limitMax?f=this.maxValue:this.maxValue=f+1:f<this.minValue&&(this.options.limitMin?f=this.minValue:this.minValue=f-1),this.gp[n].value=f,this.gp[n++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(e[e.length-1],this.maxValue),this.minValue),t.add(this),t.run(this.forceUpdate),this.forceUpdate=!1},o.prototype.getAngle=function(e){return(1+this.options.angle)*Math.PI+(e-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},o.prototype.getColorForPercentage=function(e,t){var o,n,r,i,c,a,s;if(0===e)o=this.percentColors[0].color;else for(o=this.percentColors[this.percentColors.length-1].color,r=i=0,a=this.percentColors.length-1;0<=a?i<=a:i>=a;r=0<=a?++i:--i)if(e<=this.percentColors[r].pct){!0===t?(s=this.percentColors[r-1]||this.percentColors[0],n=this.percentColors[r],c=(e-s.pct)/(n.pct-s.pct),o={r:Math.floor(s.color.r*(1-c)+n.color.r*c),g:Math.floor(s.color.g*(1-c)+n.color.g*c),b:Math.floor(s.color.b*(1-c)+n.color.b*c)}):o=this.percentColors[r].color;break}return"rgb("+[o.r,o.g,o.b].join(",")+")"},o.prototype.getColorForValue=function(e,t){var o;return o=(e-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(o,t)},o.prototype.renderStaticLabels=function(e,t,o,n){var r,i,c,a,s,l,d,m,u,b;for(this.ctx.save(),this.ctx.translate(t,o),r=e.font||"10px Times",l=/\d+\.?\d?/,s=r.match(l)[0],m=r.slice(s.length),i=parseFloat(s)*this.displayScale,this.ctx.font=i+m,this.ctx.fillStyle=e.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",c=0,a=(d=e.labels).length;c<a;c++)void 0!==(b=d[c]).label?(!this.options.limitMin||b>=this.minValue)&&(!this.options.limitMax||b<=this.maxValue)&&(s=(r=b.font||e.font).match(l)[0],m=r.slice(s.length),i=parseFloat(s)*this.displayScale,this.ctx.font=i+m,u=this.getAngle(b.label)-3*Math.PI/2,this.ctx.rotate(u),this.ctx.fillText(f(b.label,e.fractionDigits),0,-n-this.lineWidth/2),this.ctx.rotate(-u)):(!this.options.limitMin||b>=this.minValue)&&(!this.options.limitMax||b<=this.maxValue)&&(u=this.getAngle(b)-3*Math.PI/2,this.ctx.rotate(u),this.ctx.fillText(f(b,e.fractionDigits),0,-n-this.lineWidth/2),this.ctx.rotate(-u));return this.ctx.restore()},o.prototype.renderTicks=function(e,t,o,n){var r,i,c,a,s,l,d,f,m,u,b,F,h,p,g,y,v,E,A,w;if("object"==typeof e&&null!==e&&Object.keys(e).length>0){for(l=e.divisions||0,E=e.subDivisions||0,c=e.divColor||"#fff",p=e.subColor||"#fff",a=e.divLength||.7,y=e.subLength||.2,g=parseFloat(u=parseFloat(m=parseFloat(this.maxValue)-parseFloat(this.minValue))/parseFloat(e.divisions))/parseFloat(e.subDivisions),r=parseFloat(this.minValue),i=0+g,s=(f=m/400)*(e.divWidth||1),v=f*(e.subWidth||1),F=[],A=d=0,b=l+1;d<b;A=d+=1)this.ctx.lineWidth=this.lineWidth*a,h=this.lineWidth/2*(1-a),w=this.radius*this.options.radiusScale+h,this.ctx.strokeStyle=c,this.ctx.beginPath(),this.ctx.arc(0,0,w,this.getAngle(r-s),this.getAngle(r+s),!1),this.ctx.stroke(),i=r+g,r+=u,A!==e.divisions&&E>0?F.push((function(){var e,t,o;for(o=[],e=0,t=E-1;e<t;e+=1)this.ctx.lineWidth=this.lineWidth*y,h=this.lineWidth/2*(1-y),w=this.radius*this.options.radiusScale+h,this.ctx.strokeStyle=p,this.ctx.beginPath(),this.ctx.arc(0,0,w,this.getAngle(i-v),this.getAngle(i+v),!1),this.ctx.stroke(),o.push(i+=g);return o}).call(this)):F.push(void 0);return F}},o.prototype.render=function(){var e,t,o,n,r,i,c,a,s,l,d,f,m,u,b,F,h,p;if(h=this.canvas.width/2,o=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,e=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,h,o,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(h,o),this.ctx.lineWidth=this.lineWidth,n=0,i=(d=this.options.staticZones).length;n<i;n++)s=(p=d[n]).min,this.options.limitMin&&s<this.minValue&&(s=this.minValue),a=p.max,this.options.limitMax&&a>this.maxValue&&(a=this.maxValue),F=this.radius*this.options.radiusScale,p.height&&(this.ctx.lineWidth=this.lineWidth*p.height,m=this.lineWidth/2*(p.offset||1-p.height),F=this.radius*this.options.radiusScale+m),this.ctx.strokeStyle=p.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,F,this.getAngle(s),this.getAngle(a),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?t=this.options.customFillStyle(this):null!==this.percentColors?t=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?(0===this.options.gradientType?(u=l-this.lineWidth/2,b=l+this.lineWidth/2,t=this.ctx.createRadialGradient(h,o,u,h,o,b)):t=this.ctx.createLinearGradient(0,0,h,0),t.addColorStop(0,this.options.colorStart),t.addColorStop(1,this.options.colorStop)):t=this.options.colorStart,this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(h,o,l,(1+this.options.angle)*Math.PI,e,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(h,o,l,e,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(h,o);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,h,o,l),this.ctx.restore(),this.ctx.translate(h,o),r=0,c=(f=this.gp).length;r<c;r++)f[r].update(!0);return this.ctx.translate(-h,-o)},o}(n),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return h(t,e),t.prototype.strokeGradient=function(e,t,o,n){var r;return(r=this.ctx.createRadialGradient(e,t,o,e,t,n)).addColorStop(0,this.options.shadowColor),r.addColorStop(.12,this.options._orgStrokeColor),r.addColorStop(.88,this.options._orgStrokeColor),r.addColorStop(1,this.options.shadowColor),r},t.prototype.setOptions=function(e){var o,n,r,i;return null==e&&(e=null),t.__super__.setOptions.call(this,e),i=this.canvas.width/2,o=this.canvas.height/2,n=this.radius-this.lineWidth/2,r=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(i,o,n,r),this},t}(o=function(e){function o(e){this.canvas=e,o.__super__.constructor.call(this),"u">typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return h(o,e),o.prototype.lineWidth=15,o.prototype.displayedValue=0,o.prototype.value=33,o.prototype.maxValue=80,o.prototype.minValue=0,o.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},o.prototype.getAngle=function(e){return(1-this.options.angle)*Math.PI+(e-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},o.prototype.setOptions=function(e){return null==e&&(e=null),o.__super__.setOptions.call(this,e),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},o.prototype.set=function(e){return this.value=this.parseValue(e),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),t.add(this),t.run(this.forceUpdate),this.forceUpdate=!1},o.prototype.render=function(){var e,t,o,n,r,i;return e=this.getAngle(this.displayedValue),i=this.canvas.width/2,o=this.canvas.height/2,this.textField&&this.textField.render(this),n=this.radius-this.lineWidth/2,r=this.radius+this.lineWidth/2,(t=this.ctx.createRadialGradient(i,o,n,i,o,r)).addColorStop(0,this.options.colorStart),t.addColorStop(1,this.options.colorStop),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(i,o,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(i,o,this.radius,(1-this.options.angle)*Math.PI,e,!1),this.ctx.stroke()},o}(n)),t={elements:[],animId:null,addAll:function(e){var o,n,r,i;for(n=0,i=[],r=e.length;n<r;n++)o=e[n],i.push(t.elements.push(o));return i},add:function(e){if(0>p.call(t.elements,e))return t.elements.push(e)},run:function(e){var o,n,r,i,c,a,s;if(null==e&&(e=!1),isFinite(parseFloat(e))||!0===e){for(o=!0,s=[],a=t.elements,r=n=0,c=a.length;n<c;r=++n)a[r].update(!0===e)?o=!1:s.push(r);for(i=s.length-1;i>=0;i+=-1)r=s[i],t.elements.splice(r,1);return t.animId=o?null:requestAnimationFrame(t.run)}if(!1===e)return!0===t.animId&&cancelAnimationFrame(t.animId),t.animId=requestAnimationFrame(t.run)}},"function"==typeof window.define&&null!=window.define.amd?define(function(){return{Gauge:i,Donut:r,BaseDonut:o,TextRenderer:a,AnimationUpdater:t}}):null!=e.exports?e.exports={Gauge:i,Donut:r,BaseDonut:o,TextRenderer:a,AnimationUpdater:t}:(window.Gauge=i,window.Donut=r,window.BaseDonut=o,window.TextRenderer=a,window.AnimationUpdater=t)}).call(this)},5175(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},4295(e,t,o){"use strict";var n,r=o(802),i=o(593),c=o(155),a=o(7180),s=o(9304),l=o(1742),d=o(6757),f=o(4923),m=o(7256),u=o(5414),b=o(7954),F=o(3452),h=o(1358),p=o(5720),g=o(3515),y=o(1233),v=o(9997),E=function(){throw new d},A=y?function(){try{return arguments.callee,E}catch(e){try{return y(arguments,"callee").get}catch(e){return E}}}():E,w=o(8573)(),k=o(7582),C=o(2170),D=o(9090),_=o(24),S=o(1530),x={},O="u">typeof Uint8Array&&k?k(Uint8Array):n,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":x,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&k?k(k([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&k?k(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&k?k(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&k?k(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":A,"%TypedArray%":O,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":_,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":C,"%Math.abs%":m,"%Math.floor%":u,"%Math.max%":b,"%Math.min%":F,"%Math.pow%":h,"%Math.round%":p,"%Math.sign%":g,"%Reflect.getPrototypeOf%":D};if(k)try{null.error}catch(e){var B=k(k(e));T["%Error.prototype%"]=B}var R=o(3260),N=o(5175),I=o(7052),P=function e(t){var o;if("%AsyncFunction%"===t)o=R()||void 0;else if("%GeneratorFunction%"===t)o=N()||void 0;else if("%AsyncGeneratorFunction%"===t)o=I()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&k&&(o=k(r.prototype))}return T[t]=o,o},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(469),U=o(9731),j=M.call(S,Array.prototype.concat),G=M.call(_,Array.prototype.splice),q=M.call(S,String.prototype.replace),H=M.call(S,String.prototype.slice),V=M.call(S,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,Y=function(e){var t=H(e,0,1),o=H(e,-1);if("%"===t&&"%"!==o)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,W,function(e,t,o,r){n[n.length]=o?q(r,z,"$1"):t||e}),n},K=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(T,n)){var r=T[n];if(r===x&&(r=P(n)),void 0===r&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=Y(e),n=o.length>0?o[0]:"",r=K("%"+n+"%",t),i=r.name,c=r.value,a=!1,s=r.alias;s&&(n=s[0],G(o,j([0,1],s)));for(var f=1,m=!0;f<o.length;f+=1){var u=o[f],b=H(u,0,1),F=H(u,-1);if(('"'===b||"'"===b||"`"===b||'"'===F||"'"===F||"`"===F)&&b!==F)throw new l("property names with quotes must have matching quotes");if("constructor"!==u&&m||(a=!0),n+="."+u,U(T,i="%"+n+"%"))c=T[i];else if(null!=c){if(!(u in c)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&f+1>=o.length){var h=y(c,u);c=(m=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:c[u]}else m=U(c,u),c=c[u];m&&!a&&(T[i]=c)}}return c}},2170(e,t,o){"use strict";e.exports=o(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,o){"use strict";var n=o(9090),r=o(2170),i=o(714);e.exports=n?function(e){return n(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return r(e)}:i?function(e){return i(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,o){"use strict";var n=o(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8573(e,t,o){"use strict";var n="u">typeof Symbol&&Symbol,r=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),o=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,r)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,c=!r.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;c?r=o.g:i&&(r=self);var a=!r.JS_SHA256_NO_COMMON_JS&&e.exports,s="function"==typeof define&&define.amd,l=!r.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[-0x80000000,8388608,32768,128],m=[24,16,8,0],u=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],b=["hex","array","digest","arrayBuffer"],F=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var h=function(e,t){return function(o){return new E(t,!0).update(o)[e]()}},p=function(e){var t=h("hex",e);c&&(t=g(t,e)),t.create=function(){return new E(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=h(n,e)}return t},g=function(e,n){var i,c=o(7791),a=o(5610).Buffer,s=n?"sha224":"sha256";return i=a.from&&!r.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)},function(o){if("string"==typeof o)return c.createHash(s).update(o,"utf8").digest("hex");if(null==o)throw Error(t);return o.constructor===ArrayBuffer&&(o=new Uint8Array(o)),Array.isArray(o)||ArrayBuffer.isView(o)||o.constructor===a?c.createHash(s).update(i(o)).digest("hex"):e(o)}},y=function(e,t){return function(o,n){return new A(o,t,!0).update(n)[e]()}},v=function(e){var t=y("hex",e);t.create=function(t){return new A(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=y(n,e)}return t};function E(e,t){t?(F[0]=F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0,this.blocks=F):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function A(e,o,n){var r,i=typeof e;if("string"===i){var c,a=[],s=e.length,d=0;for(r=0;r<s;++r)(c=e.charCodeAt(r))<128?a[d++]=c:(c<2048?a[d++]=192|c>>>6:(c<55296||c>=57344?a[d++]=224|c>>>12:(c=65536+((1023&c)<<10|1023&e.charCodeAt(++r)),a[d++]=240|c>>>18,a[d++]=128|c>>>12&63),a[d++]=128|c>>>6&63),a[d++]=128|63&c);e=a}else if("object"===i){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new E(o,!0).update(e).array());var f=[],m=[];for(r=0;r<64;++r){var u=e[r]||0;f[r]=92^u,m[r]=54^u}E.call(this,o,n),this.update(m),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}E.prototype.update=function(e){if(!this.finalized){var o,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var r,i,c=0,a=e.length,s=this.blocks;c<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)for(i=this.start;c<a&&i<64;++c)s[i>>>2]|=e[c]<<m[3&i++];else for(i=this.start;c<a&&i<64;++c)(r=e.charCodeAt(c))<128?s[i>>>2]|=r<<m[3&i++]:(r<2048?s[i>>>2]|=(192|r>>>6)<<m[3&i++]:(r<55296||r>=57344?s[i>>>2]|=(224|r>>>12)<<m[3&i++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++c)),s[i>>>2]|=(240|r>>>18)<<m[3&i++],s[i>>>2]|=(128|r>>>12&63)<<m[3&i++]),s[i>>>2]|=(128|r>>>6&63)<<m[3&i++]),s[i>>>2]|=(128|63&r)<<m[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=f[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var e,t,o,n,r,i,c,a,s,l,d=this.h0,f=this.h1,m=this.h2,b=this.h3,F=this.h4,h=this.h5,p=this.h6,g=this.h7,y=this.blocks;for(e=16;e<64;++e)t=((r=y[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,o=((r=y[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,y[e]=y[e-16]+t+y[e-7]+o|0;for(l=f&m,e=0;e<64;e+=4)this.first?(this.is224?(c=300032,g=(r=y[0]-0x543c9a5b)-0x8f1a6c7|0,b=r+0x170e9b5|0):(c=0x2a01a605,g=(r=y[0]-0xc881298)-0x5ab00ac6|0,b=r+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(c=d&f)^d&m^l,r=g+o+(F&h^~F&p)+u[e]+y[e],i=t+n,g=b+r|0,b=r+i|0),t=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(a=b&d)^b&f^c,r=p+o+(g&F^~g&h)+u[e+1]+y[e+1],i=t+n,p=m+r|0,t=((m=r+i|0)>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(s=m&b)^m&d^a,r=h+o+(p&g^~p&F)+u[e+2]+y[e+2],i=t+n,h=f+r|0,t=((f=r+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),n=(l=f&m)^f&b^s,r=F+o+(h&p^~h&g)+u[e+3]+y[e+3],i=t+n,F=d+r|0,d=r+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+f|0,this.h2=this.h2+m|0,this.h3=this.h3+b|0,this.h4=this.h4+F|0,this.h5=this.h5+h|0,this.h6=this.h6+p|0,this.h7=this.h7+g|0},E.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,c=this.h6,a=this.h7,s=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[c>>>28&15]+d[c>>>24&15]+d[c>>>20&15]+d[c>>>16&15]+d[c>>>12&15]+d[c>>>8&15]+d[c>>>4&15]+d[15&c];return this.is224||(s+=d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a]),s},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,c=this.h6,a=this.h7,s=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,o>>>24&255,o>>>16&255,o>>>8&255,255&o,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,c>>>24&255,c>>>16&255,c>>>8&255,255&c];return this.is224||s.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),s},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},A.prototype=new E,A.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),E.prototype.finalize.call(this)}};var w=p();w.sha256=w,w.sha224=p(!0),w.sha256.hmac=v(),w.sha224.hmac=v(!0),a?e.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224,s&&define(function(){return w}))}()},2051(e,t,o){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=s||l||Function("return this")(),f=Object.prototype.toString,m=Math.max,u=Math.min,b=function(){return d.Date.now()};function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return 0/0;if(F(e)){var t,o="function"==typeof e.valueOf?e.valueOf():e;e=F(o)?o+"":o}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||c.test(e)?a(e.slice(2),s?2:8):r.test(e)?0/0:+e}e.exports=function(e,t,o){var n,r,i,c,a,s,l=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var o=n,i=r;return n=r=void 0,l=t,c=e.apply(i,o)}function y(e){var o=e-s,n=e-l;return void 0===s||o>=t||o<0||f&&n>=i}function v(){var e,o,n,r=b();if(y(r))return E(r);a=setTimeout(v,(e=r-s,o=r-l,n=t-e,f?u(n,i-o):n))}function E(e){return(a=void 0,p&&n)?g(e):(n=r=void 0,c)}function A(){var e,o=b(),i=y(o);if(n=arguments,r=this,s=o,i){if(void 0===a)return l=e=s,a=setTimeout(v,t),d?g(e):c;if(f)return a=setTimeout(v,t),g(s)}return void 0===a&&(a=setTimeout(v,t)),c}return t=h(t)||0,F(o)&&(d=!!o.leading,i=(f="maxWait"in o)?m(h(o.maxWait)||0,t):i,p="trailing"in o?!!o.trailing:p),A.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=s=r=a=void 0},A.flush=function(){return void 0===a?c:E(b())},A}},3472(e,t,o){e=o.nmd(e);var n,r="__lodash_hash_undefined__",i="[object Arguments]",c="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",m="[object Number]",u="[object Object]",b="[object Promise]",F="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,k=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[c]=x[v]=x[a]=x[E]=x[s]=x[l]=x[d]=x[f]=x[m]=x[u]=x[F]=x[h]=x[p]=x[y]=!1;var O="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,T="object"==typeof self&&self&&self.Object===Object&&self,B=O||T||Function("return this")(),R=t&&!t.nodeType&&t,N=R&&e&&!e.nodeType&&e,I=N&&N.exports===R&&O.process,P=function(){try{return I&&I.binding("util")}catch(e){}}(),L=P&&P.isTypedArray;function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function j(e,t){return function(o){return e(t(o))}}function G(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var q=Array.prototype,H=Function.prototype,V=Object.prototype,W=B["__core-js_shared__"],z=(n=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Y=H.toString,K=V.hasOwnProperty,J=V.toString,X=RegExp("^"+Y.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=B.Symbol,Z=B.Uint8Array,ee=j(Object.getPrototypeOf,Object),et=Object.create,eo=V.propertyIsEnumerable,en=q.splice,er=j(Object.keys,Object),ei=eT(B,"DataView"),ec=eT(B,"Map"),ea=eT(B,"Promise"),es=eT(B,"Set"),el=eT(B,"WeakMap"),ed=eT(Object,"create"),ef=eM(ei),em=eM(ec),eu=eM(ea),eb=eM(es),eF=eM(el),eh=Q?Q.prototype:void 0,ep=eh?eh.valueOf:void 0,eg=eh?eh.toString:void 0;function ey(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function eE(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function eA(e){var t=-1,o=e?e.length:0;for(this.__data__=new eE;++t<o;)this.add(e[t])}function ew(e){this.__data__=new ev(e)}function ek(e,t){for(var o=e.length;o--;)if(ej(e[o][0],t))return o;return -1}ey.prototype.clear=function(){this.__data__=ed?ed(null):{}},ey.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ey.prototype.get=function(e){var t=this.__data__;if(ed){var o=t[e];return o===r?void 0:o}return K.call(t,e)?t[e]:void 0},ey.prototype.has=function(e){var t=this.__data__;return ed?void 0!==t[e]:K.call(t,e)},ey.prototype.set=function(e,t){return this.__data__[e]=ed&&void 0===t?r:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=ek(t,e);return!(o<0)&&(o==t.length-1?t.pop():en.call(t,o,1),!0)},ev.prototype.get=function(e){var t=this.__data__,o=ek(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return ek(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=ek(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},eE.prototype.clear=function(){this.__data__={hash:new ey,map:new(ec||ev),string:new ey}},eE.prototype.delete=function(e){return eO(this,e).delete(e)},eE.prototype.get=function(e){return eO(this,e).get(e)},eE.prototype.has=function(e){return eO(this,e).has(e)},eE.prototype.set=function(e,t){return eO(this,e).set(e,t),this},eA.prototype.add=eA.prototype.push=function(e){return this.__data__.set(e,r),this},eA.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.clear=function(){this.__data__=new ev},ew.prototype.delete=function(e){return this.__data__.delete(e)},ew.prototype.get=function(e){return this.__data__.get(e)},ew.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!ec||n.length<199)return n.push([e,t]),this;o=this.__data__=new eE(n)}return o.set(e,t),this};var eC=function(e,t,o){for(var n=-1,r=Object(e),i=o(e),c=i.length;c--;){var a=i[++n];if(!1===t(r[a],a,r))break}return e};function eD(e,t){var o;t=eN(t,e)?[t]:eq(o=t)?o:eP(o);for(var n=0,r=t.length;null!=e&&n<r;)e=e[eL(t[n++])];return n&&n==r?e:void 0}function e_(e,t){return null!=e&&t in Object(e)}function eS(e,t,o,n,r){return e===t||(null!=e&&null!=t&&(eW(e)||ez(t))?function(e,t,o,n,r,d){var b=eq(e),y=eq(t),A=c,w=c;b||(A=(A=eB(e))==i?u:A),y||(w=(w=eB(t))==i?u:w);var k=A==u&&!M(e),C=w==u&&!M(t),D=A==w;if(D&&!k)return d||(d=new ew),b||eK(e)?ex(e,t,o,n,r,d):function(e,t,o,n,r,i,c){switch(o){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case v:if(e.byteLength!=t.byteLength||!n(new Z(e),new Z(t)))break;return!0;case a:case s:case m:return ej(+e,+t);case l:return e.name==t.name&&e.message==t.message;case F:case p:return e==t+"";case f:var d=U;case h:var u=2&i;if(d||(d=G),e.size!=t.size&&!u)break;var b=c.get(e);if(b)return b==t;i|=1,c.set(e,t);var y=ex(d(e),d(t),n,r,i,c);return c.delete(e),y;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,A,o,n,r,d);if(!(2&r)){var _=k&&K.call(e,"__wrapped__"),S=C&&K.call(t,"__wrapped__");if(_||S){var x=_?e.value():e,O=S?t.value():t;return d||(d=new ew),o(x,O,n,r,d)}}return!!D&&(d||(d=new ew),function(e,t,o,n,r,i){var c=2&r,a=eJ(e),s=a.length;if(s!=eJ(t).length&&!c)return!1;for(var l=s;l--;){var d=a[l];if(!(c?d in t:K.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var m=!0;i.set(e,t),i.set(t,e);for(var u=c;++l<s;){var b=e[d=a[l]],F=t[d];if(n)var h=c?n(F,b,d,t,e,i):n(b,F,d,e,t,i);if(!(void 0===h?b===F||o(b,F,n,r,i):h)){m=!1;break}u||(u="constructor"==d)}if(m&&!u){var p=e.constructor,g=t.constructor;p!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof p&&p instanceof p&&"function"==typeof g&&g instanceof g)&&(m=!1)}return i.delete(e),i.delete(t),m}(e,t,o,n,r,d))}(e,t,eS,o,n,r):e!=e&&t!=t)}function ex(e,t,o,n,r,i){var c=2&r,a=e.length,s=t.length;if(a!=s&&!(c&&s>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var d=-1,f=!0,m=1&r?new eA:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var u=e[d],b=t[d];if(n)var F=c?n(b,u,d,t,e,i):n(u,b,d,e,t,i);if(void 0!==F){if(F)continue;f=!1;break}if(m){if(!function(e,t){for(var o=-1,n=e?e.length:0;++o<n;)if(t(e[o],o,e))return!0;return!1}(t,function(e,t){if(!m.has(t)&&(u===e||o(u,e,n,r,i)))return m.add(t)})){f=!1;break}}else if(!(u===b||o(u,b,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function eO(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function eT(e,t){var o,n=null==e?void 0:e[t];return!(!eW(n)||(o=n,z&&z in o))&&(e$(n)||M(n)?X:_).test(eM(n))?n:void 0}var eB=function(e){return J.call(e)};function eR(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function eN(e,t){if(eq(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eY(e))||w.test(e)||!A.test(e)||null!=t&&e in Object(t)}(ei&&eB(new ei(new ArrayBuffer(1)))!=E||ec&&eB(new ec)!=f||ea&&eB(ea.resolve())!=b||es&&eB(new es)!=h||el&&eB(new el)!=y)&&(eB=function(e){var t=J.call(e),o=t==u?e.constructor:void 0,n=o?eM(o):void 0;if(n)switch(n){case ef:return E;case em:return f;case eu:return b;case eb:return h;case eF:return y}return t});function eI(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eP=eU(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eY(e))return eg?eg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return k.test(e)&&o.push(""),e.replace(C,function(e,t,n,r){o.push(n?r.replace(D,"$1"):t||e)}),o});function eL(e){if("string"==typeof e||eY(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eM(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eU(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var c=e.apply(this,n);return o.cache=i.set(r,c),c};return o.cache=new(eU.Cache||eE),o}function ej(e,t){return e===t||e!=e&&t!=t}function eG(e){var t;return ez(t=e)&&eH(t)&&K.call(e,"callee")&&(!eo.call(e,"callee")||J.call(e)==i)}eU.Cache=eE;var eq=Array.isArray;function eH(e){return null!=e&&eV(e.length)&&!e$(e)}function e$(e){var t=eW(e)?J.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eV(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eW(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ez(e){return!!e&&"object"==typeof e}function eY(e){return"symbol"==typeof e||ez(e)&&J.call(e)==g}var eK=L?function(e){return L(e)}:function(e){return ez(e)&&eV(e.length)&&!!x[J.call(e)]};function eJ(e){return eH(e)?function(e){var t=eq(e)||eG(e)?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],o=t.length,n=!!o;for(var r in e)K.call(e,r)&&!(n&&("length"==r||eR(r,o)))&&t.push(r);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||V))return er(e);var t,o,n=[];for(var r in Object(e))K.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}function eX(e){return e}e.exports=function(e,t,o){var n=eq(e)||eK(e);if(t="function"==typeof(l=t)?l:null==l?eX:"object"==typeof l?eq(l)?(r=l[0],i=l[1],eN(r)&&(c=i)==c&&!eW(c)?eI(eL(r),i):function(e){var t,o,n,c,a,s=(t=e,o=r,void 0===(n=null==t?void 0:eD(t,o))?void 0:n);return void 0===s&&s===i?(c=e,a=r,null!=c&&function(e,t,o){t=eN(t,e)?[t]:eq(n=t)?n:eP(n);for(var n,r,i=-1,c=t.length;++i<c;){var a=eL(t[i]);if(!(r=null!=e&&o(e,a)))break;e=e[a]}if(r)return r;var c=e?e.length:0;return!!c&&eV(c)&&eR(a,c)&&(eq(e)||eG(e))}(c,a,e_)):eS(i,s,void 0,3)}):1==(s=function(e){for(var t=eJ(e),o=t.length;o--;){var n,r=t[o],i=e[r];t[o]=[r,i,(n=i)==n&&!eW(n)]}return t}(a=l)).length&&s[0][2]?eI(s[0][0],s[0][1]):function(e){return e===a||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var r=t[o];if((0,r[2])?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++o<n;){var i=(r=t[o])[0],c=e[i],a=r[1];if(0,r[2]){if(void 0===c&&!(i in e))return!1}else{var s,l=new ew;if(!(void 0===s?eS(a,c,void 0,3,l):s))return!1}}return!0}(e,s)}:function(e){var t;return eN(e)?(t=eL(e),function(e){return null==e?void 0:e[t]}):function(t){return eD(t,e)}}(l),null==o)if(n||eW(e)){var r,i,c,a,s,l,d,f=e.constructor;o=n?eq(e)?new f:[]:e$(f)&&eW(d=ee(e))?et(d):{}}else o={};return(n?function(e,t){for(var o=-1,n=e?e.length:0;++o<n&&!1!==t(e[o],o,e););return e}:function(e,t){return e&&eC(e,t,eJ)})(e,function(e,n,r){return t(o,e,n,r)}),o}},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,o){"use strict";var n=o(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,o){e=o.nmd(e),e.exports=function(){"use strict";function t(){return G.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function f(e,t){for(var o in t)i(t,o)&&(e[o]=t[o]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,o,n){return tc(e,t,o,n,!0).utc()}function u(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function b(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=u(e),o=q.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function F(e){var t=m(0/0);return null!=e?f(u(t),e):u(t).userInvalidated=!0,t}q=Array.prototype.some?Array.prototype.some:function(e){var t,o=Object(this),n=o.length>>>0;for(t=0;t<n;t++)if(t in o&&e.call(this,o[t],t,o))return!0;return!1};var h,p,g=t.momentProperties=[],y=!1;function v(e,t){var o,n,r,i=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=u(t)),a(t._locale)||(e._locale=t._locale),i>0)for(o=0;o<i;o++)a(r=t[n=g[o]])||(e[n]=r);return e}function E(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===y&&(y=!0,t.updateOffset(this),y=!1)}function A(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,o){var n=!0;return f(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var r,c,a,s=[],l=arguments.length;for(c=0;c<l;c++){if(r="","object"==typeof arguments[c]){for(a in r+="\n["+c+"] ",arguments[0])i(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[c];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var C={};function D(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),C[e]||(w(o),C[e]=!0)}function _(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var o,n=f({},e);for(o in t)i(t,o)&&(r(e[o])&&r(t[o])?(n[o]={},f(n[o],e[o]),f(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)i(e,o)&&!i(t,o)&&r(e[o])&&(n[o]=f({},n[o]));return n}function x(e){null!=e&&this.set(e)}function O(e,t,o){var n=""+Math.abs(e);return(e>=0?o?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},N={};function I(e,t,o,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),o&&(N[o]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(R[t=L(t,e.localeData())]=R[t]||function(e){var t,o,n,r=e.match(T);for(o=0,n=r.length;o<n;o++)N[r[o]]?r[o]=N[r[o]]:r[o]=(t=r[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,i="";for(o=0;o<n;o++)i+=_(r[o])?r[o].call(t,e):r[o];return i}}(t),R[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;o>=0&&B.test(e);)e=e.replace(B,n),B.lastIndex=0,o-=1;return e}var M={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function U(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function j(e){var t,o,n={};for(o in e)i(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var G,q,H,V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},W=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)i(e,t)&&o.push(t);return o},z=/\d/,Y=/\d\d/,K=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,et=/\d{1,3}/,eo=/\d{1,4}/,en=/[+-]?\d{1,6}/,er=/\d+/,ei=/[+-]?\d+/,ec=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,el=/^[1-9]\d?/,ed=/^([1-9]\d|\d)/;function ef(e,t,o){H[e]=_(t)?t:function(e,n){return e&&o?o:t}}function em(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eb(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=eu(t)),o}H={};var eF={};function eh(e,t){var o,n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,o){o[t]=eb(e)}),n=e.length,o=0;o<n;o++)eF[e[o]]=r}function ep(e,t){eh(e,function(e,o,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eg(e){return e%4==0&&e%100!=0||e%400==0}function ey(e){return eg(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?O(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),ef("Y",ei),ef("YY",Q,Y),ef("YYYY",eo,J),ef("YYYYY",en,X),ef("YYYYYY",en,X),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):eb(e)}),eh("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return eb(e)+(eb(e)>68?1900:2e3)};var ev=eE("FullYear",!0);function eE(e,o){return function(n){return null!=n?(ew(this,e,n),t.updateOffset(this,o),this):eA(this,e)}}function eA(e,t){if(!e.isValid())return 0/0;var o=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return n?o.getUTCSeconds():o.getSeconds();case"Minutes":return n?o.getUTCMinutes():o.getMinutes();case"Hours":return n?o.getUTCHours():o.getHours();case"Date":return n?o.getUTCDate():o.getDate();case"Day":return n?o.getUTCDay():o.getDay();case"Month":return n?o.getUTCMonth():o.getMonth();case"FullYear":return n?o.getUTCFullYear():o.getFullYear();default:return 0/0}}function ew(e,t,o){var n,r,i,c;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(r?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(r?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(r?n.setUTCHours(o):n.setHours(o));case"Date":return void(r?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}i=e.month(),c=29!==(c=e.date())||1!==i||eg(o)?c:28,r?n.setUTCFullYear(o,i,c):n.setFullYear(o,i,c)}}function ek(e,t){if(isNaN(e)||isNaN(t))return 0/0;var o=(t%12+12)%12;return e+=(t-o)/12,1===o?eg(e)?29:28:31-o%7%2}e$=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ef("M",Q,el),ef("MM",Q,Y),ef("MMM",function(e,t){return t.monthsShortRegex(e)}),ef("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=eb(e)-1}),eh(["MMM","MMMM"],function(e,t,o,n){var r=o._locale.monthsParse(e,n,o._strict);null!=r?t[1]=r:u(o).invalidMonth=e});var eC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eD=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function e_(e,t,o){var n,r,i,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(r=e$.call(this._shortMonthsParse,c))?r:null;else return -1!==(r=e$.call(this._longMonthsParse,c))?r:null;return"MMM"===t?-1!==(r=e$.call(this._shortMonthsParse,c))||-1!==(r=e$.call(this._longMonthsParse,c))?r:null:-1!==(r=e$.call(this._longMonthsParse,c))||-1!==(r=e$.call(this._shortMonthsParse,c))?r:null}function eS(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eb(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,ek(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function ex(e){return null!=e?(eS(this,e),t.updateOffset(this,!0),this):eA(this,"Month")}function eO(){function e(e,t){return t.length-e.length}var t,o,n,r,i=[],c=[],a=[];for(t=0;t<12;t++)o=m([2e3,t]),n=em(this.monthsShort(o,"")),r=em(this.months(o,"")),i.push(n),c.push(r),a.push(r),a.push(n);i.sort(e),c.sort(e),a.sort(e),this._monthsRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function eT(e,t,o,n,r,i,c){var a;return e<100&&e>=0?isFinite((a=new Date(e+400,t,o,n,r,i,c)).getFullYear())&&a.setFullYear(e):a=new Date(e,t,o,n,r,i,c),a}function eB(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,o))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eR(e,t,o){var n=7+t-o;return-((7+eB(e,0,n).getUTCDay()-t)%7)+n-1}function eN(e,t,o,n,r){var i,c,a=1+7*(t-1)+(7+o-n)%7+eR(e,n,r);return a<=0?c=ey(i=e-1)+a:a>ey(e)?(i=e+1,c=a-ey(e)):(i=e,c=a),{year:i,dayOfYear:c}}function eI(e,t,o){var n,r,i=eR(e.year(),t,o),c=Math.floor((e.dayOfYear()-i-1)/7)+1;return c<1?n=c+eP(r=e.year()-1,t,o):c>eP(e.year(),t,o)?(n=c-eP(e.year(),t,o),r=e.year()+1):(r=e.year(),n=c),{week:n,year:r}}function eP(e,t,o){var n=eR(e,t,o),r=eR(e+1,t,o);return(ey(e)-n+r)/7}function eL(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ef("w",Q,el),ef("ww",Q,Y),ef("W",Q,el),ef("WW",Q,Y),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=eb(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),ef("d",Q),ef("e",Q),ef("E",Q),ef("dd",function(e,t){return t.weekdaysMinRegex(e)}),ef("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ef("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,o,n){var r=o._locale.weekdaysParse(e,n,o._strict);null!=r?t.d=r:u(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=eb(e)});var eM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eU(e,t,o){var n,r,i,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(r=e$.call(this._weekdaysParse,c))?r:null;else if("ddd"===t)return -1!==(r=e$.call(this._shortWeekdaysParse,c))?r:null;else return -1!==(r=e$.call(this._minWeekdaysParse,c))?r:null;return"dddd"===t?-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._shortWeekdaysParse,c))||-1!==(r=e$.call(this._minWeekdaysParse,c))?r:null:"ddd"===t?-1!==(r=e$.call(this._shortWeekdaysParse,c))||-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._minWeekdaysParse,c))?r:null:-1!==(r=e$.call(this._minWeekdaysParse,c))||-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._shortWeekdaysParse,c))?r:null}function ej(){function e(e,t){return t.length-e.length}var t,o,n,r,i,c=[],a=[],s=[],l=[];for(t=0;t<7;t++)o=m([2e3,1]).day(t),n=em(this.weekdaysMin(o,"")),r=em(this.weekdaysShort(o,"")),i=em(this.weekdays(o,"")),c.push(n),a.push(r),s.push(i),l.push(n),l.push(r),l.push(i);c.sort(e),a.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+c.join("|")+")","i")}function eG(){return this.hours()%12||12}function eq(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eH(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,eG),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+eG.apply(this)+O(this.minutes(),2)}),I("hmmss",0,0,function(){return""+eG.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),eq("a",!0),eq("A",!1),ef("a",eH),ef("A",eH),ef("H",Q,ed),ef("h",Q,el),ef("k",Q,el),ef("HH",Q,Y),ef("hh",Q,Y),ef("kk",Q,Y),ef("hmm",Z),ef("hmmss",ee),ef("Hmm",Z),ef("Hmmss",ee),eh(["H","HH"],3),eh(["k","kk"],function(e,t,o){var n=eb(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eh(["h","hh"],function(e,t,o){t[3]=eb(e),u(o).bigHour=!0}),eh("hmm",function(e,t,o){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n)),u(o).bigHour=!0}),eh("hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r)),u(o).bigHour=!0}),eh("Hmm",function(e,t,o){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n))}),eh("Hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r))});var e$,eV,eW=eE("Hours",!0),ez={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eC,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eM,meridiemParse:/[ap]\.?m?\.?/i},eY={},eK={};function eJ(e){return e?e.toLowerCase().replace("_","-"):e}function eX(t){var n=null;if(void 0===eY[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eV._abbr,o(3118)("./locale/"+t),eQ(n)}catch(e){eY[t]=null}return eY[t]}function eQ(e,t){var o;return e&&((o=a(t)?e0(e):eZ(e,t))?eV=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eV._abbr}function eZ(e,t){if(null===t)return delete eY[e],null;var o,n=ez;if(t.abbr=e,null!=eY[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=eY[e]._config;else if(null!=t.parentLocale)if(null!=eY[t.parentLocale])n=eY[t.parentLocale]._config;else{if(null==(o=eX(t.parentLocale)))return eK[t.parentLocale]||(eK[t.parentLocale]=[]),eK[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eY[e]=new x(S(n,t)),eK[e]&&eK[e].forEach(function(e){eZ(e.name,e.config)}),eQ(e),eY[e]}function e0(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eV;if(!n(e)){if(t=eX(e))return t;e=[e]}return function(e){for(var t,o,n,r,i=0;i<e.length;){for(t=(r=eJ(e[i]).split("-")).length,o=(o=eJ(e[i+1]))?o.split("-"):null;t>0;){if(n=eX(r.slice(0,t).join("-")))return n;if(o&&o.length>=t&&function(e,t){var o,n=Math.min(e.length,t.length);for(o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n}(r,o)>=t-1)break;t--}i++}return eV}(e)}function e1(e){var t,o=e._a;return o&&-2===u(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>ek(o[0],o[1])?2:o[3]<0||o[3]>24||24===o[3]&&(0!==o[4]||0!==o[5]||0!==o[6])?3:o[4]<0||o[4]>59?4:o[5]<0||o[5]>59?5:o[6]<0||o[6]>999?6:-1,u(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),u(e)._overflowWeeks&&-1===t&&(t=7),u(e)._overflowWeekday&&-1===t&&(t=8),u(e).overflow=t),e}var e2=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e5=/Z|[+-]\d\d(?::?\d\d)?/,e4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e8=/^\/?Date\((-?\d+)/i,e9=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e7={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function te(e){var t,o,n,r,i,c,a=e._i,s=e2.exec(a)||e3.exec(a),l=e4.length,d=e6.length;if(s){for(u(e).iso=!0,t=0,o=l;t<o;t++)if(e4[t][1].exec(s[1])){r=e4[t][0],n=!1!==e4[t][2];break}if(null==r){e._isValid=!1;return}if(s[3]){for(t=0,o=d;t<o;t++)if(e6[t][1].exec(s[3])){i=(s[2]||" ")+e6[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(s[4])if(e5.exec(s[4]))c="Z";else{e._isValid=!1;return}e._f=r+(i||"")+(c||""),tr(e)}else e._isValid=!1}function tt(e){var t,o,n,r,i,c,a,s,l,d,f,m=e9.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(m){if(i=m[4],c=m[3],a=m[2],s=m[5],l=m[6],d=m[7],f=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eC.indexOf(c),parseInt(a,10),parseInt(s,10),parseInt(l,10)],d&&f.push(parseInt(d,10)),o=m[1],n=f,r=e,o&&eM.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(u(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=f,e._tzm=function(e,t,o){if(e)return e7[e];if(t)return 0;var n=parseInt(o,10),r=n%100;return(n-r)/100*60+r}(m[8],m[9],m[10]),e._d=eB.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),u(e).rfc2822=!0}else e._isValid=!1}function to(e,t,o){return null!=e?e:null!=t?t:o}function tn(e){var o,n,r,i,c,a,s,l,d,f,m,b,F,h,p,g,y=[];if(!e._d){for(m=new Date(t.now()),h=e._useUTC?[m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]:[m.getFullYear(),m.getMonth(),m.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(a=1,s=4,r=to(n.GG,o._a[0],eI(ta(),1,4).year),i=to(n.W,1),((c=to(n.E,1))<1||c>7)&&(d=!0)):(a=o._locale._week.dow,s=o._locale._week.doy,f=eI(ta(),a,s),r=to(n.gg,o._a[0],f.year),i=to(n.w,f.week),null!=n.d?((c=n.d)<0||c>6)&&(d=!0):null!=n.e?(c=n.e+a,(n.e<0||n.e>6)&&(d=!0)):c=a),i<1||i>eP(r,a,s)?u(o)._overflowWeeks=!0:null!=d?u(o)._overflowWeekday=!0:(l=eN(r,i,c,a,s),o._a[0]=l.year,o._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(g=to(e._a[0],h[0]),(e._dayOfYear>ey(g)||0===e._dayOfYear)&&(u(e)._overflowDayOfYear=!0),F=eB(g,0,e._dayOfYear),e._a[1]=F.getUTCMonth(),e._a[2]=F.getUTCDate()),b=0;b<3&&null==e._a[b];++b)e._a[b]=y[b]=h[b];for(;b<7;b++)e._a[b]=y[b]=null==e._a[b]?+(2===b):e._a[b];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eB:eT).apply(null,y),p=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==p&&(u(e).weekdayMismatch=!0)}}function tr(e){if(e._f===t.ISO_8601)return void te(e);if(e._f===t.RFC_2822)return void tt(e);e._a=[],u(e).empty=!0;var o,n,r,c,a,s,l,d,f,m,b,F=""+e._i,h=F.length,p=0;for(b=(l=L(e._f,e._locale).match(T)||[]).length,a=0;a<b;a++)if(d=l[a],(s=(F.match(!i(H,d)?new RegExp(em(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,r){return t||o||n||r}))):H[d](e._strict,e._locale))||[])[0])&&((f=F.substr(0,F.indexOf(s))).length>0&&u(e).unusedInput.push(f),F=F.slice(F.indexOf(s)+s.length),p+=s.length),N[d])s?u(e).empty=!1:u(e).unusedTokens.push(d),null!=s&&i(eF,d)&&eF[d](s,e._a,e,d);else e._strict&&!s&&u(e).unusedTokens.push(d);u(e).charsLeftOver=h-p,F.length>0&&u(e).unusedInput.push(F),e._a[3]<=12&&!0===u(e).bigHour&&e._a[3]>0&&(u(e).bigHour=void 0),u(e).parsedDateParts=e._a.slice(0),u(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(r=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,r):(null!=o.isPM&&((c=o.isPM(r))&&n<12&&(n+=12),c||12!==n||(n=0)),n)),null!==(m=u(e).era)&&(e._a[0]=e._locale.erasConvertYear(m,e._a[0])),tn(e),e1(e)}function ti(e){var o=e._i,i=e._f;return(e._locale=e._locale||e0(e._l),null===o||void 0===i&&""===o)?F({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),A(o))?new E(e1(o)):(l(o)?e._d=o:n(i)?!function(e){var t,o,n,r,i,c,a=!1,s=e._f.length;if(0===s){u(e).invalidFormat=!0,e._d=new Date(0/0);return}for(r=0;r<s;r++)i=0,c=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],tr(t),b(t)&&(c=!0),i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,a?i<n&&(n=i,o=t):(null==n||i<n||c)&&(n=i,o=t,c&&(a=!0));f(e,o||t)}(e):i?tr(e):function(e){var o=e._i;if(a(o))e._d=new Date(t.now());else if(l(o))e._d=new Date(o.valueOf());else if("string"==typeof o)!function(e){var o=e8.exec(e._i);if(null!==o){e._d=new Date(+o[1]);return}te(e),!1!==e._isValid||(delete e._isValid,tt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(o))e._a=d(o.slice(0),function(e){return parseInt(e,10)}),tn(e);else if(r(o)){if(!e._d){var i=j(e._i),c=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,c,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),tn(e)}}else s(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),b(e)||(e._d=null),e)}function tc(e,t,o,i,a){var s,l={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===o||!1===o)&&(i=o,o=void 0),(r(e)&&c(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=o,l._i=e,l._f=t,l._strict=i,(s=new E(e1(ti(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ta(e,t,o,n){return tc(e,t,o,n,!1)}t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:F()}),tl=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:F()});function td(e,t){var o,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](o))&&(o=t[r]);return o}var tf=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tm(e){var t=j(e),o=t.year||0,n=t.quarter||0,r=t.month||0,c=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,r=tf.length;for(t in e)if(i(e,t)&&!(-1!==e$.call(tf,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[tf[o]]){if(n)return!1;parseFloat(e[tf[o]])!==eb(e[tf[o]])&&(n=!0)}return!0}(t),this._milliseconds=+f+1e3*d+6e4*l+1e3*s*3600,this._days=+a+7*c,this._months=+r+3*n+12*o,this._data={},this._locale=e0(),this._bubble()}function tu(e){return e instanceof tm}function tb(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tF(e,t){I(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+O(~~(e/60),2)+t+O(~~e%60,2)})}tF("Z",":"),tF("ZZ",""),ef("Z",ea),ef("ZZ",ea),eh(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var th=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(o=((r[r.length-1]||[])+"").match(th)||["-",0,0])[1])+eb(o[2]))?0:"+"===o[0]?n:-n}function tg(e,o){var n,r;return o._isUTC?(n=o.clone(),r=(A(e)||l(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),t.updateOffset(n,!1),n):ta(e).local()}function ty(e){return-Math.round(e._d.getTimezoneOffset())}function tv(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tE=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tA=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tw(e,t){var o,n,r,c,a,l,d=e,f=null;return tu(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(f=tE.exec(e))?(c="-"===f[1]?-1:1,d={y:0,d:eb(f[2])*c,h:eb(f[3])*c,m:eb(f[4])*c,s:eb(f[5])*c,ms:eb(tb(1e3*f[6]))*c}):(f=tA.exec(e))?(c="-"===f[1]?-1:1,d={y:tk(f[2],c),M:tk(f[3],c),w:tk(f[4],c),d:tk(f[5],c),h:tk(f[6],c),m:tk(f[7],c),s:tk(f[8],c)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),l=o.isValid()&&n.isValid()?(n=tg(n,o),o.isBefore(n)?r=tC(o,n):((r=tC(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(d={}).ms=l.milliseconds,d.M=l.months),a=new tm(d),tu(e)&&i(e,"_locale")&&(a._locale=e._locale),tu(e)&&i(e,"_isValid")&&(a._isValid=e._isValid),a}function tk(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tC(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=t-e.clone().add(o.months,"M"),o}function tD(e,t){return function(o,n){var r;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=o,o=n,n=r),t_(this,tw(o,n),e),this}}function t_(e,o,n,r){var i=o._milliseconds,c=tb(o._days),a=tb(o._months);e.isValid()&&(r=null==r||r,a&&eS(e,eA(e,"Month")+a*n),c&&ew(e,"Date",eA(e,"Date")+c*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&t.updateOffset(e,c||a))}tw.fn=tm.prototype,tw.invalid=function(){return tw(0/0)};var tS=tD(1,"add"),tx=tD(-1,"subtract");function tO(e){return"string"==typeof e||e instanceof String}function tT(e,t){if(e.date()<t.date())return-tT(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return o=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+o)||0}function tB(e){var t;return void 0===e?this._locale._abbr:(null!=(t=e0(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tR=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tN(){return this._locale}function tI(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tP(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tL(e,t){return t.erasAbbrRegex(e)}function tM(){var e,t,o,n,r,i=[],c=[],a=[],s=[],l=this.eras();for(e=0,t=l.length;e<t;++e)o=em(l[e].name),n=em(l[e].abbr),r=em(l[e].narrow),c.push(o),i.push(n),a.push(r),s.push(o),s.push(n),s.push(r);this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+c.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+a.join("|")+")","i")}function tU(e,t){I(0,[e,e.length],0,t)}function tj(e,t,o,n,r){var i;return null==e?eI(this,n,r).year:(t>(i=eP(e,n,r))&&(t=i),tG.call(this,e,t,o,n,r))}function tG(e,t,o,n,r){var i=eN(e,t,o,n,r),c=eB(i.year,0,i.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ef("N",tL),ef("NN",tL),ef("NNN",tL),ef("NNNN",function(e,t){return t.erasNameRegex(e)}),ef("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var r=o._locale.erasParse(e,n,o._strict);r?u(o).era=r:u(o).invalidEra=e}),ef("y",er),ef("yy",er),ef("yyy",er),ef("yyyy",er),ef("yo",function(e,t){return t._eraYearOrdinalRegex||er}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,o,n){var r;o._locale._eraYearOrdinalRegex&&(r=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tU("gggg","weekYear"),tU("ggggg","weekYear"),tU("GGGG","isoWeekYear"),tU("GGGGG","isoWeekYear"),ef("G",ei),ef("g",ei),ef("GG",Q,Y),ef("gg",Q,Y),ef("GGGG",eo,J),ef("gggg",eo,J),ef("GGGGG",en,X),ef("ggggg",en,X),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=eb(e)}),ep(["gg","GG"],function(e,o,n,r){o[r]=t.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),ef("Q",z),eh("Q",function(e,t){t[1]=(eb(e)-1)*3}),I("D",["DD",2],"Do","date"),ef("D",Q,el),ef("DD",Q,Y),ef("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=eb(e.match(Q)[0])});var tq=eE("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ef("DDD",et),ef("DDDD",K),eh(["DDD","DDDD"],function(e,t,o){o._dayOfYear=eb(e)}),I("m",["mm",2],0,"minute"),ef("m",Q,ed),ef("mm",Q,Y),eh(["m","mm"],4);var tH=eE("Minutes",!1);I("s",["ss",2],0,"second"),ef("s",Q,ed),ef("ss",Q,Y),eh(["s","ss"],5);var t$=eE("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ef("S",et,z),ef("SS",et,Y),ef("SSS",et,K),h="SSSS";h.length<=9;h+="S")ef(h,er);function tV(e,t){t[6]=eb(("0."+e)*1e3)}for(h="S";h.length<=9;h+="S")eh(h,tV);p=eE("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var tW=E.prototype;function tz(e){return e}tW.add=tS,tW.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var a,d,f,m;if(a=arguments[0],A(a)||l(a)||tO(a)||s(a)||(f=n(d=a),m=!1,f&&(m=0===d.filter(function(e){return!s(e)&&tO(d)}).length),f&&m)||function(e){var t,o,n=r(e)&&!c(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)o=s[t],a=a||i(e,o);return n&&a}(a)||null==a)e=arguments[0],o=void 0;else(function(e){var t,o,n=r(e)&&!c(e),a=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)o=s[t],a=a||i(e,o);return n&&a})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var u=e||ta(),b=tg(u,this).startOf("day"),F=t.calendarFormat(this,b)||"sameElse",h=o&&(_(o[F])?o[F].call(this,u):o[F]);return this.format(h||this.localeData().calendar(F,this,ta(u)))},tW.clone=function(){return new E(this)},tW.diff=function(e,t,o){var n,r,i;if(!this.isValid()||!(n=tg(e,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":i=tT(this,n)/12;break;case"month":i=tT(this,n);break;case"quarter":i=tT(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return o?i:eu(i)},tW.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tI,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=36e5-((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":o=this._d.valueOf(),o+=6e4-(o%6e4+6e4)%6e4-1;break;case"second":o=this._d.valueOf(),o+=1e3-(o%1e3+1e3)%1e3-1}return this._d.setTime(o),t.updateOffset(this,!0),this},tW.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=P(this,e);return this.localeData().postformat(o)},tW.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ta(e).isValid())?tw({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tW.fromNow=function(e){return this.from(ta(),e)},tW.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ta(e).isValid())?tw({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tW.toNow=function(e){return this.to(ta(),e)},tW.get=function(e){return _(this[e=U(e)])?this[e]():this},tW.invalidAt=function(){return u(this).overflow},tW.isAfter=function(e,t){var o=A(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},tW.isBefore=function(e,t){var o=A(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},tW.isBetween=function(e,t,o,n){var r=A(e)?e:ta(e),i=A(t)?t:ta(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,o):!this.isBefore(r,o))&&(")"===n[1]?this.isBefore(i,o):!this.isAfter(i,o))},tW.isSame=function(e,t){var o,n=A(e)?e:ta(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},tW.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tW.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tW.isValid=function(){return b(this)},tW.lang=tR,tW.locale=tB,tW.localeData=tN,tW.max=tl,tW.min=ts,tW.parsingFlags=function(){return f({},u(this))},tW.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)i(e,t)&&o.push({unit:t,priority:V[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(_(this[e=U(e)]))return this[e](t);return this},tW.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tI,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":o=this._d.valueOf(),o-=(o%6e4+6e4)%6e4;break;case"second":o=this._d.valueOf(),o-=(o%1e3+1e3)%1e3}return this._d.setTime(o),t.updateOffset(this,!0),this},tW.subtract=tx,tW.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tW.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tW.toDate=function(){return new Date(this.valueOf())},tW.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;if(0>o.year()||o.year()>9999)return P(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(_(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(o,"Z"));return P(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tW.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tW[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tW.toJSON=function(){return this.isValid()?this.toISOString():null},tW.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tW.unix=function(){return Math.floor(this.valueOf()/1e3)},tW.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tW.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tW.eraName=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].name;return""},tW.eraNarrow=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].narrow;return""},tW.eraAbbr=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].abbr;return""},tW.eraYear=function(){var e,o,n,r,i=this.localeData().eras();for(e=0,o=i.length;e<o;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tW.year=ev,tW.isLeapYear=function(){return eg(this.year())},tW.weekYear=function(e){return tj.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tW.isoWeekYear=function(e){return tj.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tW.quarter=tW.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tW.month=ex,tW.daysInMonth=function(){return ek(this.year(),this.month())},tW.week=tW.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tW.isoWeek=tW.isoWeeks=function(e){var t=eI(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tW.weeksInYear=function(){var e=this.localeData()._week;return eP(this.year(),e.dow,e.doy)},tW.weeksInWeekYear=function(){var e=this.localeData()._week;return eP(this.weekYear(),e.dow,e.doy)},tW.isoWeeksInYear=function(){return eP(this.year(),1,4)},tW.isoWeeksInISOWeekYear=function(){return eP(this.isoWeekYear(),1,4)},tW.date=tq,tW.day=tW.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=eA(this,"Day");return null==e?n:(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tW.weekday=function(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tW.isoWeekday=function(e){if(!this.isValid())return null!=e?this:0/0;if(null==e)return this.day()||7;var t,o=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?o:o-7)},tW.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tW.hour=tW.hours=eW,tW.minute=tW.minutes=tH,tW.second=tW.seconds=t$,tW.millisecond=tW.milliseconds=p,tW.utcOffset=function(e,o,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?i:ty(this);if("string"==typeof e){if(null===(e=tp(ea,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&o&&(r=ty(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!o||this._changeInProgress?t_(this,tw(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tW.utc=function(e){return this.utcOffset(0,e)},tW.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tW.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(ec,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tW.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tW.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tW.isLocal=function(){return!!this.isValid()&&!this._isUTC},tW.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tW.isUtc=tv,tW.isUTC=tv,tW.zoneAbbr=function(){return this._isUTC?"UTC":""},tW.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tW.dates=k("dates accessor is deprecated. Use date instead.",tq),tW.months=k("months accessor is deprecated. Use month instead",ex),tW.years=k("years accessor is deprecated. Use year instead",ev),tW.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tW.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=ti(t))._a?(e=t._isUTC?m(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(o=0;o<n;o++)eb(e[o])!==eb(t[o])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tY=x.prototype;function tK(e,t,o,n){var r=e0(),i=m().set(n,t);return r[o](i,e)}function tJ(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tK(e,t,o,"month");var n,r=[];for(n=0;n<12;n++)r[n]=tK(e,n,o,"month");return r}function tX(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),s(t)&&(o=t,t=void 0),t=t||"";var r,i=e0(),c=e?i._week.dow:0,a=[];if(null!=o)return tK(t,(o+c)%7,n,"day");for(r=0;r<7;r++)a[r]=tK(t,(r+c)%7,n,"day");return a}tY.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return _(n)?n.call(t,o):n},tY.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(T).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tY.invalidDate=function(){return this._invalidDate},tY.ordinal=function(e){return this._ordinal.replace("%d",e)},tY.preparse=tz,tY.postformat=tz,tY.relativeTime=function(e,t,o,n){var r=this._relativeTime[o];return _(r)?r(e,t,o,n):r.replace(/%d/i,e)},tY.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return _(o)?o(t):o.replace(/%s/i,t)},tY.set=function(e){var t,o;for(o in e)i(e,o)&&(_(t=e[o])?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tY.eras=function(e,o){var n,r,i,c=this._eras||e0("en")._eras;for(n=0,r=c.length;n<r;++n)switch("string"==typeof c[n].since&&(i=t(c[n].since).startOf("day"),c[n].since=i.valueOf()),typeof c[n].until){case"undefined":c[n].until=1/0;break;case"string":i=t(c[n].until).startOf("day").valueOf(),c[n].until=i.valueOf()}return c},tY.erasParse=function(e,t,o){var n,r,i,c,a,s=this.eras();for(e=e.toUpperCase(),n=0,r=s.length;n<r;++n)if(i=s[n].name.toUpperCase(),c=s[n].abbr.toUpperCase(),a=s[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[n];break;case"NNNN":if(i===e)return s[n];break;case"NNNNN":if(a===e)return s[n]}else if([i,c,a].indexOf(e)>=0)return s[n]},tY.erasConvertYear=function(e,o){var n=e.since<=e.until?1:-1;return void 0===o?t(e.since).year():t(e.since).year()+(o-e.offset)*n},tY.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tM.call(this),e?this._erasAbbrRegex:this._erasRegex},tY.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tM.call(this),e?this._erasNameRegex:this._erasRegex},tY.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tM.call(this),e?this._erasNarrowRegex:this._erasRegex},tY.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eD).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tY.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eD.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tY.monthsParse=function(e,t,o){var n,r,i;if(this._monthsParseExact)return e_.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=m([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(i.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}},tY.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eO.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tY.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eO.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tY.week=function(e){return eI(e,this._week.dow,this._week.doy).week},tY.firstDayOfYear=function(){return this._week.doy},tY.firstDayOfWeek=function(){return this._week.dow},tY.weekdays=function(e,t){var o=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eL(o,this._week.dow):e?o[e.day()]:o},tY.weekdaysMin=function(e){return!0===e?eL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tY.weekdaysShort=function(e){return!0===e?eL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tY.weekdaysParse=function(e,t,o){var n,r,i;if(this._weekdaysParseExact)return eU.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=m([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(i.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!o&&this._weekdaysParse[n].test(e))return n}},tY.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tY.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tY.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tY.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tY.meridiem=function(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"},eQ("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,o=1===eb(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",eQ),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",e0);var tQ=Math.abs;function tZ(e,t,o,n){var r=tw(t,o);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function t0(e){return e<0?Math.floor(e):Math.ceil(e)}function t1(e){return 4800*e/146097}function t2(e){return 146097*e/4800}function t3(e){return function(){return this.as(e)}}var t5=t3("ms"),t4=t3("s"),t6=t3("m"),t8=t3("h"),t9=t3("d"),t7=t3("w"),oe=t3("M"),ot=t3("Q"),oo=t3("y");function on(e){return function(){return this.isValid()?this._data[e]:0/0}}var or=on("milliseconds"),oi=on("seconds"),oc=on("minutes"),oa=on("hours"),os=on("days"),ol=on("months"),od=on("years"),of=Math.round,om={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ou(e,t,o,n,r){return r.relativeTime(t||1,!!o,e,n)}var ob=Math.abs;function oF(e){return(e>0)-(e<0)||+e}function oh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,r,i,c,a,s=ob(this._milliseconds)/1e3,l=ob(this._days),d=ob(this._months),f=this.asSeconds();return f?(e=eu(s/60),t=eu(e/60),s%=60,e%=60,o=eu(d/12),d%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=f<0?"-":"",i=oF(this._months)!==oF(f)?"-":"",c=oF(this._days)!==oF(f)?"-":"",a=oF(this._milliseconds)!==oF(f)?"-":"",r+"P"+(o?i+o+"Y":"")+(d?i+d+"M":"")+(l?c+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"}var op=tm.prototype;return op.isValid=function(){return this._isValid},op.abs=function(){var e=this._data;return this._milliseconds=tQ(this._milliseconds),this._days=tQ(this._days),this._months=tQ(this._months),e.milliseconds=tQ(e.milliseconds),e.seconds=tQ(e.seconds),e.minutes=tQ(e.minutes),e.hours=tQ(e.hours),e.months=tQ(e.months),e.years=tQ(e.years),this},op.add=function(e,t){return tZ(this,e,t,1)},op.subtract=function(e,t){return tZ(this,e,t,-1)},op.as=function(e){if(!this.isValid())return 0/0;var t,o,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,o=this._months+t1(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(t2(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},op.asMilliseconds=t5,op.asSeconds=t4,op.asMinutes=t6,op.asHours=t8,op.asDays=t9,op.asWeeks=t7,op.asMonths=oe,op.asQuarters=ot,op.asYears=oo,op.valueOf=t5,op._bubble=function(){var e,t,o,n,r,i=this._milliseconds,c=this._days,a=this._months,s=this._data;return i>=0&&c>=0&&a>=0||i<=0&&c<=0&&a<=0||(i+=864e5*t0(t2(a)+c),c=0,a=0),s.milliseconds=i%1e3,s.seconds=(e=eu(i/1e3))%60,s.minutes=(t=eu(e/60))%60,s.hours=(o=eu(t/60))%24,c+=eu(o/24),a+=r=eu(t1(c)),c-=t0(t2(r)),n=eu(a/12),a%=12,s.days=c,s.months=a,s.years=n,this},op.clone=function(){return tw(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=or,op.seconds=oi,op.minutes=oc,op.hours=oa,op.days=os,op.weeks=function(){return eu(this.days()/7)},op.months=ol,op.years=od,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,r,i,c,a,s,l,d,f,m,u,b,F=!1,h=om;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(F=e),"object"==typeof t&&(h=Object.assign({},om,t),null!=t.s&&null==t.ss&&(h.ss=t.s-1)),u=this.localeData(),o=!F,n=h,r=tw(this).abs(),i=of(r.as("s")),c=of(r.as("m")),a=of(r.as("h")),s=of(r.as("d")),l=of(r.as("M")),d=of(r.as("w")),f=of(r.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||c<=1&&["m"]||c<n.m&&["mm",c]||a<=1&&["h"]||a<n.h&&["hh",a]||s<=1&&["d"]||s<n.d&&["dd",s],null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),(m=m||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=o,m[3]=+this>0,m[4]=u,b=ou.apply(null,m),F&&(b=u.pastFuture(+this,b)),u.postformat(b)},op.toISOString=oh,op.toString=oh,op.toJSON=oh,op.locale=tB,op.localeData=tN,op.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oh),op.lang=tR,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ef("x",ei),ef("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,o){o._d=new Date(eb(e))}),t.version="2.30.1",G=ta,t.fn=tW,t.min=function(){var e=[].slice.call(arguments,0);return td("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return td("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=m,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tJ(e,t,"months")},t.isDate=l,t.locale=eQ,t.invalid=F,t.duration=tw,t.isMoment=A,t.weekdays=function(e,t,o){return tX(e,t,o,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=e0,t.isDuration=tu,t.monthsShort=function(e,t){return tJ(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return tX(e,t,o,"weekdaysMin")},t.defineLocale=eZ,t.updateLocale=function(e,t){if(null!=t){var o,n,r=ez;null!=eY[e]&&null!=eY[e].parentLocale?eY[e].set(S(eY[e]._config,t)):(null!=(n=eX(e))&&(r=n._config),t=S(r,t),null==n&&(t.abbr=e),(o=new x(t)).parentLocale=eY[e],eY[e]=o),eQ(e)}else null!=eY[e]&&(null!=eY[e].parentLocale?(eY[e]=eY[e].parentLocale,e===eQ()&&eQ(e)):null!=eY[e]&&delete eY[e]);return eY[e]},t.locales=function(){return W(eY)},t.weekdaysShort=function(e,t,o){return tX(e,t,o,"weekdaysShort")},t.normalizeUnits=U,t.relativeTimeRounding=function(e){return void 0===e?of:"function"==typeof e&&(of=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==om[e]&&(void 0===t?om[e]:(om[e]=t,"s"===e&&(om.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"},t.prototype=tW,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},3109(e,t,o){var n="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&"function"==typeof r.get?r.get:null,c=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&s&&"function"==typeof s.get?s.get:null,d=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,m="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,F=Object.prototype.toString,h=Function.prototype.toString,p=String.prototype.match,g=String.prototype.slice,y=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,A=RegExp.prototype.test,w=Array.prototype.concat,k=Array.prototype.join,C=Array.prototype.slice,D=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-D(-e):D(e);if(n!==e){var r=String(n),i=g.call(t,r.length+1);return y.call(r,o,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,o,"$&_")}var I=o(6550),P=I.custom,L=V(P)?P:null,M={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,o){var n=M[o.quoteStyle||t];return n+e+n}function G(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function q(e){return"[object Array]"===Y(e)&&G(e)}function H(e){return"[object RegExp]"===Y(e)&&G(e)}function V(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,a){var s,F,v,A,D,S=n||{};if(z(S,"quoteStyle")&&!z(M,S.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(z(S,"maxStringLength")&&("number"==typeof S.maxStringLength?S.maxStringLength<0&&1/0!==S.maxStringLength:null!==S.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=!z(S,"customInspect")||S.customInspect;if("boolean"!=typeof P&&"symbol"!==P)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(S,"indent")&&null!==S.indent&&" "!==S.indent&&!(parseInt(S.indent,10)===S.indent&&S.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(S,"numericSeparator")&&"boolean"!=typeof S.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var W=S.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,o){if(t.length>o.maxStringLength){var n=t.length-o.maxStringLength;return e(g.call(t,0,o.maxStringLength),o)+("... "+n)+" more character"+(n>1?"s":"")}var r=U[o.quoteStyle||"single"];return r.lastIndex=0,j(y.call(y.call(t,r,"\\$1"),/[\x00-\x1f]/g,J),"single",o)}(t,S);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var eo=String(t);return W?N(t,eo):eo}if("bigint"==typeof t){var en=String(t)+"n";return W?N(t,en):en}var er=void 0===S.depth?5:S.depth;if(void 0===r&&(r=0),r>=er&&er>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var ei=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=k.call(Array(e.indent+1)," ")}return{base:o,prev:k.call(Array(t+1),o)}}(S,r);if(void 0===a)a=[];else if(K(a,t)>=0)return"[Circular]";function ec(t,o,n){if(o&&(a=C.call(a)).push(o),n){var i={depth:S.depth};return z(S,"quoteStyle")&&(i.quoteStyle=S.quoteStyle),e(t,i,r+1,a)}return e(t,S,r+1,a)}if("function"==typeof t&&!H(t)){var ea=function(e){if(e.name)return e.name;var t=p.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=et(t,ec);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+k.call(es,", ")+" }":"")}if(V(t)){var el=O?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||O?el:X(el)}if((ed=t)&&"object"==typeof ed&&("u">typeof HTMLElement&&ed instanceof HTMLElement||"string"==typeof ed.nodeName&&"function"==typeof ed.getAttribute)){for(var ed,ef,em="<"+E.call(String(t.nodeName)),eu=t.attributes||[],eb=0;eb<eu.length;eb++){em+=" "+eu[eb].name+"="+j((ef=eu[eb].value,y.call(String(ef),/"/g,"&quot;")),"double",S)}return em+=">",t.childNodes&&t.childNodes.length&&(em+="..."),em+="</"+E.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var eF=et(t,ec);return ei&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(eF)?"["+ee(eF,ei)+"]":"[ "+k.call(eF,", ")+" ]"}if("[object Error]"===Y(s=t)&&G(s)){var eh=et(t,ec);return"cause"in Error.prototype||!("cause"in t)||B.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(eh,", ")+" }":"{ ["+String(t)+"] "+k.call(w.call("[cause]: "+ec(t.cause),eh),", ")+" }"}if("object"==typeof t&&P){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:er-r});else if("symbol"!==P&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ep=[];return c&&c.call(t,function(e,o){ep.push(ec(o,t,!0)+" => "+ec(e,t))}),Z("Map",i.call(t),ep,ei)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return d&&d.call(t,function(e){eg.push(ec(e,t))}),Z("Set",l.call(t),eg,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{m.call(e,m)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{m.call(e,m);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{return u.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===Y(F=t)&&G(F))return X(ec(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return X(ec(_.call(t)));if("[object Boolean]"===Y(v=t)&&G(v))return X(b.call(t));if("[object String]"===Y(A=t)&&G(A))return X(ec(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==o.g&&t===o.g)return"{ [object globalThis] }";if(!("[object Date]"===Y(D=t)&&G(D))&&!H(t)){var ey=et(t,ec),ev=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,eE=t instanceof Object?"":"null prototype",eA=!ev&&T&&Object(t)===t&&T in t?g.call(Y(t),8,-1):eE?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eA||eE?"["+k.call(w.call([],eA||[],eE||[]),": ")+"] ":"");return 0===ey.length?ew+"{}":ei?ew+"{"+ee(ey,ei)+"}":ew+"{ "+k.call(ey,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return W.call(e,t)}function Y(e){return F.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,n=e.length;o<n;o++)if(e[o]===t)return o;return -1}function J(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Z(e,t,o,n){return e+" ("+t+") {"+(n?ee(o,n):k.call(o,", "))+"}"}function ee(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+k.call(e,","+o)+"\n"+t.prev}function et(e,t){var o,n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=z(e,i)?t(e[i],e):""}var c="function"==typeof S?S(e):[];if(O){o={};for(var a=0;a<c.length;a++)o["$"+c[a]]=c[a]}for(var s in e)if(z(e,s)&&(!n||String(Number(s))!==s||!(s<e.length)))if(O&&o["$"+s]instanceof Symbol)continue;else A.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e));if("function"==typeof S)for(var l=0;l<c.length;l++)B.call(e,c[l])&&r.push("["+t(c[l])+"]: "+t(e[c[l]],e));return r}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=n[typeof t]&&t,c=n.object&&e&&!e.nodeType&&e,a=i&&c&&"object"==typeof o.g&&o.g;a&&(a.global===a||a.window===a||a.self===a)&&(r=a);var s=/\bOpera/,l=Object.prototype,d=l.hasOwnProperty,f=l.toString;function m(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function u(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:m(e)}function b(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function F(e){return null==e?m(e):f.call(e).slice(8,-1)}function h(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function p(e,t){var o=null,n=function(n,r){o=t(o,n,r,e)},r=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=0x1fffffffffffff)for(;++r<i;)n(e[r],r);else b(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function y(e){var t,o,n,i,c,a=r,l=e&&"object"==typeof e&&"String"!=F(e);l&&(a=e,e=null);var d=a.navigator||{},m=d.userAgent||"";e||(e=m);var v=l?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(f.toString()),E="Object",A=l&&a.java?"JavaPackage":F(a.java),w=/\bJava/.test(A)&&a.java,k=w&&F(a.environment)==(l?E:"Environment"),C=w?"a":"α",D=w?"b":"β",_=a.document||{},S=a.operamini||a.opera,x=s.test(x=l&&S?S["[[Class]]"]:F(S))?x:S=null,O=e,T=[],B=null,R=e==m,N=R&&S&&"function"==typeof S.version&&S.version(),I=p([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(t,o){return t||RegExp("\\b"+(o.pattern||h(o))+"\\b","i").exec(e)&&(o.label||o)}),P=p(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(t,o){return t||RegExp("\\b"+(o.pattern||h(o))+"\\b","i").exec(e)&&(o.label||o)}),L=j([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),M=p({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(t,o,n){return t||(o[L]||o[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+h(n)+"(?:\\b|\\w*\\d)","i").exec(e))&&n}),U=p(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(t,o){var n,r,i,c=o.pattern||h(o);return!t&&(t=RegExp("\\b"+c+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,r=o.label||o,i={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},c&&r&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(i=i[/[\d.]+$/.exec(n)])&&(n="Windows "+i),n=String(n),c&&r&&(n=n.replace(RegExp(c,"i"),r)),t=n=u(n.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),t});function j(t){return p(t,function(t,o){var n=o.pattern||h(o);return!t&&(t=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(o.label&&!RegExp(n,"i").test(o.label)?o.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),o=o.label||o,t=u(t[0].replace(RegExp(n,"i"),o).replace(RegExp("; *(?:"+o+"[_-])?","i")," ").replace(RegExp("("+o+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function G(t){return p(t,function(t,o){return t||(RegExp(o+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}if(I&&(I=[I]),/\bAndroid\b/.test(U)&&!L&&(i=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(i[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),M&&!L?L=j([M]):M&&L&&(L=L.replace(RegExp("^("+h(M)+")[-_.\\s]","i"),M+" ").replace(RegExp("^("+h(M)+")[-_.]?(\\w)","i"),M+" $2")),(i=/\bGoogle TV\b/.exec(L))&&(L=i[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(e)&&T.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(e)?(M=(i=y(e.replace(/like iPhone OS/,""))).manufacturer,L=i.product):/^iP/.test(L)?(P||(P="Safari"),U="iOS"+((i=/ OS ([\d_]+)/i.exec(e))?" "+i[1].replace(/_/g,"."):"")):"Konqueror"==P&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(P)&&/\bVersion\//i.test(e)?(P="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==P?(/\bMobi/i.test(e)||(U="Android",T.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&T.unshift("accelerated")):"UC Browser"==P&&/\bUCWEB\b/.test(e)?T.push("speed mode"):"PaleMoon"==P&&(i=/\bFirefox\/([\d.]+)\b/.exec(e))?T.push("identifying as Firefox "+i[1]):"Firefox"==P&&(i=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=i[1])):!P||(i=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(i+"/")+8))&&(P=null),(i=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:i)+" Browser")):"Electron"==P&&(i=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&T.push("Chromium "+i),N||(N=G(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",h(P),"(?:Firefox|Minefield|NetFront)"])),(i="iCab"==I&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(P)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(I)&&"WebKit"||!I&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==I&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(I=[i]),"IE"==P&&(i=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(P+=" Mobile",U="Windows Phone "+(/\+$/.test(i)?i:i+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(P="IE Mobile",U="Windows Phone 8.x",T.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=P&&"Trident"==I&&(i=/\brv:([\d.]+)/.exec(e))&&(P&&T.push("identifying as "+P+(N?" "+N:"")),P="IE",N=i[1]),R){if(o="global",n=null!=(t=a)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])F(i=a.runtime)==(l?E:"ScriptBridgingProxyObject")?(P="Adobe AIR",U=i.flash.system.Capabilities.os):F(i=a.phantom)==(l?E:"RuntimeObject")?(P="PhantomJS",N=(i=i.version||null)&&i.major+"."+i.minor+"."+i.patch):"number"==typeof _.documentMode&&(i=/\bTrident\/(\d+)/i.exec(e))?(N=[N,_.documentMode],(i=+i[1]+4)!=N[1]&&(T.push("IE "+N[1]+" mode"),I&&(I[1]=""),N[1]=i),N="IE"==P?String(N[1].toFixed(1)):N[0]):"number"==typeof _.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(T.push("masking as "+P+" "+N),P="IE",N="11.0",I=["Trident"],U="Windows");else if(w&&(O=(i=w.lang.System).getProperty("os.arch"),U=U||i.getProperty("os.name")+" "+i.getProperty("os.version")),k){try{N=a.require("ringo/engine").version.join("."),P="RingoJS"}catch(e){(i=a.system)&&i.global.system==a.system&&(P="Narwhal",U||(U=i[0].os||null))}P||(P="Rhino")}else"object"==typeof a.process&&!a.process.browser&&(i=a.process)&&("object"==typeof i.versions&&("string"==typeof i.versions.electron?(T.push("Node "+i.versions.node),P="Electron",N=i.versions.electron):"string"==typeof i.versions.nw&&(T.push("Chromium "+N,"Node "+i.versions.node),P="NW.js",N=i.versions.nw)),P||(P="Node.js",O=i.arch,U=i.platform,N=(N=/[\d.]+/.exec(i.version))?N[0]:null));U=U&&u(U)}if(N&&(i=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(R&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(B=/b/i.test(i)?"beta":"alpha",N=N.replace(RegExp(i+"\\+?$"),"")+("beta"==B?D:C)+(/\d+\+?/.exec(i)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))P="Firefox Mobile";else if("Maxthon"==P&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&T.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(P)||P&&!L&&!/Browser|Mobi/.test(P))&&("Windows CE"==U||/Mobi/i.test(e)))P+=" Mobile";else if("IE"==P&&R)try{null===a.external&&T.unshift("platform preview")}catch(e){T.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(i=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||N)?(U=((i=[i,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+i[0],N=null):this!=b&&"Wii"!=L&&(R&&S||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==P&&(U&&!/^Win/.test(U)&&N>5.5||/\bWindows XP\b/.test(U)&&N>8||8==N&&!/\bTrident\b/.test(e)))&&!s.test(i=y.call(b,e.replace(s,"")+";"))&&i.name&&(i="ing as "+i.name+((i=i.version)?" "+i:""),s.test(P)?(/\bIE\b/.test(i)&&"Mac OS"==U&&(U=null),i="identify"+i):(i="mask"+i,P=x?u(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(i)&&(U=null),R||(N=null)),I=["Presto"],T.push(i));(i=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(i=[parseFloat(i.replace(/\.(\d)$/,".0$1")),i],"Safari"==P&&"+"==i[1].slice(-1)?(P="WebKit Nightly",B="alpha",N=i[1].slice(0,-1)):(N==i[1]||N==(i[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(N=null),i[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==i[0]&&537.36==i[2]&&parseFloat(i[1])>=28&&"WebKit"==I&&(I=["Blink"]),R&&(v||i[1])?(I&&(I[1]="like Chrome"),i=i[1]||((i=i[0])<530?1:i<532?2:i<532.05?3:i<533?4:i<534.03?5:i<534.07?6:i<534.1?7:i<534.13?8:i<534.16?9:i<534.24?10:i<534.3?11:i<535.01?12:i<535.02?"13+":i<535.07?15:i<535.11?16:i<535.19?17:i<536.05?18:i<536.1?19:i<537.01?20:i<537.11?"21+":i<537.13?23:i<537.18?24:i<537.24?25:i<537.36?26:"Blink"!=I?"27":"28")):(I&&(I[1]="like Safari"),i=(i=i[0])<400?1:i<500?2:i<526?3:i<533?4:i<534?"4+":i<535?5:i<537?6:i<538?7:i<601?8:i<602?9:i<604?10:i<606?11:i<608?12:"12"),I&&(I[1]+=" "+(i+="number"==typeof i?".x":/[.+]/.test(i)?"":"+")),"Safari"==P&&(!N||parseInt(N)>45)?N=i:"Chrome"==P&&/\bHeadlessChrome/i.test(e)&&T.unshift("headless")),"Opera"==P&&(i=/\bzbov|zvav$/.exec(U))?(P+=" ",T.unshift("desktop mode"),"zvav"==i?(P+="Mini",N=null):P+="Mobile",U=U.replace(RegExp(" *"+i+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(I&&I[1])?(T.unshift("desktop mode"),P="Chrome Mobile",N=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(P)&&!N&&(N=G("Chrome")),N&&0==N.indexOf(i=/[\d.]+$/.exec(U))&&e.indexOf("/"+i+"-")>-1&&(U=g(U.replace(i,""))),U&&-1!=U.indexOf(P)&&!RegExp(P+" OS").test(U)&&(U=U.replace(RegExp(" *"+h(P)+" *"),"")),I&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(U)&&/\bSafari\b/.test(I[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(P)&&I[1])&&(i=I[I.length-1])&&T.push(i),T.length&&(T=["("+T.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&T.push("on "+M),L&&T.push((/^on /.test(T[T.length-1])?"":"on ")+L),U&&(c=(i=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-i[0].length-1),U={architecture:32,family:i&&!c?U.replace(i[0],""):U,version:i?i[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(i=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(O))&&!/\bi686\b/i.test(O)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+i),"")),P&&(/\bWOW64\b/i.test(e)||R&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&T.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==P&&parseFloat(N)>=39&&(U.architecture=64),e||(e=null);var q={};return q.description=e,q.layout=I&&I[0],q.manufacturer=M,q.name=P,q.prerelease=B,q.product=L,q.ua=e,q.version=P&&N,q.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},q.parse=y,q.toString=function(){return this.description||""},q.version&&T.unshift(N),q.name&&T.unshift(P),U&&P&&!(U==String(U).split(" ")[0]&&(U==P.split(" ")[0]||L))&&T.push(L?"("+U+")":"on "+U),T.length&&(q.description=T.join(" ")),q}var v=y();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(r.platform=v,define(function(){return v})):i&&c?b(v,function(e,t){i[t]=e}):r.platform=v}).call(this)},5539(e){"use strict";var t=String.prototype.replace,o=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,o){"use strict";var n=o(6334),r=o(4816);e.exports={formats:o(5539),parse:r,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),r=Object.prototype.hasOwnProperty,i=Array.isArray,c={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},s=function(e,t){var o={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=1/0===t.parameterLimit?void 0:t.parameterLimit,d=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&d.length>l)throw RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var f=-1,m=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?m="utf-8":"utf8=%26%2310003%3B"===d[u]&&(m="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var u,b,F,h=d[u],p=h.indexOf("]="),g=-1===p?h.indexOf("="):p+1;if(-1===g?(b=t.decoder(h,c.decoder,m,"key"),F=t.strictNullHandling?null:""):null!==(b=t.decoder(h.slice(0,g),c.decoder,m,"key"))&&(F=n.maybeMap(a(h.slice(g+1),t,i(o[b])?o[b].length:0),function(e){return t.decoder(e,c.decoder,m,"value")})),F&&t.interpretNumericEntities&&"iso-8859-1"===m&&(F=String(F).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),h.indexOf("[]=")>-1&&(F=i(F)?[F]:F),t.comma&&i(F)&&F.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");F=n.combine([],F,t.arrayLimit,t.plainObjects)}if(null!==b){var y=r.call(o,b);y&&("combine"===t.duplicates||h.indexOf("[]=")>-1)?o[b]=n.combine(o[b],F,t.arrayLimit,t.plainObjects):y&&"last"!==t.duplicates||(o[b]=F)}}return o},l=function(e,t,o,r){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var c=e.slice(0,-1).join("");i=Array.isArray(t)&&t[c]?t[c].length:0}for(var s=r?t:a(t,o,i),l=e.length-1;l>=0;--l){var d,f=e[l];if("[]"===f&&o.parseArrays)d=n.isOverflow(s)?s:o.allowEmptyArrays&&(""===s||o.strictNullHandling&&null===s)?[]:n.combine([],s,o.arrayLimit,o.plainObjects);else{d=o.plainObjects?{__proto__:null}:{};var m="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,u=o.decodeDotInKeys?m.replace(/%2E/g,"."):m,b=parseInt(u,10),F=!isNaN(b)&&f!==u&&String(b)===u&&b>=0&&o.parseArrays;if(o.parseArrays||""!==u)if(F&&b<o.arrayLimit)(d=[])[b]=s;else if(F&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else F?(d[b]=s,n.markOverflow(d,b)):"__proto__"!==u&&(d[u]=s);else d={0:s}}s=d}return s},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],i=o.indexOf("["),c=i>=0?o.slice(0,i):o;if(c){if(!t.plainObjects&&r.call(Object.prototype,c)&&!t.allowPrototypes)return;n[n.length]=c}for(var a=o.length,s=i,l=0;s>=0&&l<t.depth;){for(var d=1,f=s+1,m=-1;f<a&&m<0;){var u=o.charCodeAt(f);91===u?d+=1:93===u&&0==(d-=1)&&(m=f),f+=1}if(m<0)return n[n.length]="["+o.slice(s)+"]",n;var b=o.slice(s,m+1),F=b.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,F)&&!t.allowPrototypes)return;n[n.length]=b,l+=1,s=o.indexOf("[",m+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(s)+"]"}return n},f=function(e,t,o,n){if(e){var r=d(e,o);if(r)return l(r,t,o,n)}},m=function(e){if(!e)return c;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?c.charset:e.charset,o=void 0===e.duplicates?c.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||c.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:c.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:c.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:c.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:c.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:c.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:c.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:c.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:c.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:c.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:c.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:c.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:c.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:c.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:c.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:c.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:c.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var o=m(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?s(e,o):e,i=o.plainObjects?{__proto__:null}:{},c=Object.keys(r),a=0;a<c.length;++a){var l=c[a],d=f(l,r[l],o,"string"==typeof e);i=n.merge(i,d,o)}return!0===o.allowSparse?i:n.compact(i)}},6334(e,t,o){"use strict";var n=o(6278),r=o(1954),i=o(5539),c=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,d=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,m=i.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:i.formatters[m],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},F=function e(t,o,i,c,a,l,f,m,F,h,p,g,y,v,E,A,w,k){for(var C,D,_=t,S=k,x=0,O=!1;void 0!==(S=S.get(b))&&!O;){var T=S.get(t);if(x+=1,void 0!==T)if(T===x)throw RangeError("Cyclic object value");else O=!0;void 0===S.get(b)&&(x=0)}if("function"==typeof h?_=h(o,_):_ instanceof Date?_=y(_):"comma"===i&&s(_)&&(_=r.maybeMap(_,function(e){return e instanceof Date?y(e):e})),null===_){if(l)return E(F&&!A?F(o,u.encoder,w,"key",v):o);_=""}if("string"==typeof(C=_)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||r.isBuffer(_))return F?[E(A?o:F(o,u.encoder,w,"key",v))+"="+E(F(_,u.encoder,w,"value",v))]:[E(o)+"="+E(String(_))];var B=[];if(void 0===_)return B;if("comma"===i&&s(_))A&&F&&(_=r.maybeMap(_,function(e){return null==e?e:F(e)})),D=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(h))D=h;else{var R=Object.keys(_);D=p?R.sort(p):R}var N=m?String(o).replace(/\./g,"%2E"):String(o),I=c&&s(_)&&1===_.length?N+"[]":N;if(a&&s(_)&&0===_.length)return I+"[]";for(var P=0;P<D.length;++P){var L=D[P],M="object"==typeof L&&L&&void 0!==L.value?L.value:_[L];if(!f||null!==M){var U=g&&m?String(L).replace(/\./g,"%2E"):String(L),j=s(_)?"function"==typeof i?i(I,U):I:I+(g?"."+U:"["+U+"]");k.set(t,x);var G=n();G.set(b,k),d(B,e(M,j,i,c,a,l,f,m,"comma"===i&&A&&s(_)?null:F,h,p,g,y,v,E,A,w,G))}}return B},h=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,o=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!c.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],l=u.filter;if(("function"==typeof e.filter||s(e.filter))&&(l=e.filter),t=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:l,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}};e.exports=function(e,t){var o,r=e,i=h(t);"function"==typeof i.filter?r=(0,i.filter)("",r):s(i.filter)&&(o=i.filter);var c=[];if("object"!=typeof r||null===r)return"";var l=a[i.arrayFormat],f="comma"===l&&i.commaRoundTrip;o||(o=Object.keys(r)),i.sort&&o.sort(i.sort);for(var m=n(),u=0;u<o.length;++u){var b=o[u];if(null!=b){var p=r[b];i.skipNulls&&null===p||d(c,F(p,b,l,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,m))}}var g=c.join(i.delimiter),y=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?y+="utf8=%26%2310003%3B"+i.delimiter:y+="utf8=%E2%9C%93"+i.delimiter),g.length>0?y+g:""}},1954(e,t,o){"use strict";var n=o(5539),r=o(6278),i=Object.prototype.hasOwnProperty,c=Array.isArray,a=r(),s=function(e,t){return a.set(e,t),e},l=function(e){return a.has(e)},d=function(e){return a.get(e)},f=function(e,t){a.set(e,t)},m=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),u=function(e){for(;e.length>1;){var t=e.pop(),o=t.obj[t.prop];if(c(o)){for(var n=[],r=0;r<o.length;++r)void 0!==o[r]&&(n[n.length]=o[r]);t.obj[t.prop]=n}}},b=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(o[n]=e[n]);return o};e.exports={arrayToObject:b,assign:function(e,t){return Object.keys(t).reduce(function(e,o){return e[o]=t[o],e},e)},combine:function(e,t,o,n){if(l(e)){var r=d(e)+1;return e[r]=t,f(e,r),e}var i=[].concat(e,t);return i.length>o?s(b(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=[],n=0;n<t.length;++n)for(var r=t[n],i=r.obj[r.prop],c=Object.keys(i),a=0;a<c.length;++a){var s=c[a],l=i[s];"object"==typeof l&&null!==l&&-1===o.indexOf(l)&&(t[t.length]={obj:i,prop:s},o[o.length]=l)}return u(t),e},decode:function(e,t,o){var n=e.replace(/\+/g," ");if("iso-8859-1"===o)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,o,r,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===o)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",s=0;s<c.length;s+=1024){for(var l=c.length>=1024?c.slice(s,s+1024):c,d=[],f=0;f<l.length;++f){var u=l.charCodeAt(f);if(45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)){d[d.length]=l.charAt(f);continue}if(u<128){d[d.length]=m[u];continue}if(u<2048){d[d.length]=m[192|u>>6]+m[128|63&u];continue}if(u<55296||u>=57344){d[d.length]=m[224|u>>12]+m[128|u>>6&63]+m[128|63&u];continue}f+=1,u=65536+((1023&u)<<10|1023&l.charCodeAt(f)),d[d.length]=m[240|u>>18]+m[128|u>>12&63]+m[128|u>>6&63]+m[128|63&u]}a+=d.join("")}return a},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:s,maybeMap:function(e,t){if(c(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=t(e[n]);return o}return t(e)},merge:function e(t,o,n){if(!o)return t;if("object"!=typeof o&&"function"!=typeof o){if(c(t)){var r=t.length;if(n&&"number"==typeof n.arrayLimit&&r>n.arrayLimit)return s(b(t.concat(o),n),r);t[r]=o}else if(!t||"object"!=typeof t)return[t,o];else if(l(t)){var a=d(t)+1;t[a]=o,f(t,a)}else{if(n&&n.strictMerge)return[t,o];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,o))&&(t[o]=!0)}return t}if(!t||"object"!=typeof t){if(l(o)){for(var m=Object.keys(o),u=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},F=0;F<m.length;F++)u[parseInt(m[F],10)+1]=o[m[F]];return s(u,d(o)+1)}var h=[t].concat(o);return n&&"number"==typeof n.arrayLimit&&h.length>n.arrayLimit?s(b(h,n),h.length-1):h}var p=t;return(c(t)&&!c(o)&&(p=b(t,n)),c(t)&&c(o))?(o.forEach(function(o,r){if(i.call(t,r)){var c=t[r];c&&"object"==typeof c&&o&&"object"==typeof o?t[r]=e(c,o,n):t[t.length]=o}else t[r]=o}),t):Object.keys(o).reduce(function(t,r){var c=o[r];if(i.call(t,r)?t[r]=e(t[r],c,n):t[r]=c,l(o)&&!l(t)&&s(t,d(o)),l(t)){var a=parseInt(r,10);String(a)===r&&a>=0&&a>d(t)&&f(t,a)}return t},p)}}},6521(e,t,o){"use strict";var n=o(3109),r=o(6757),i=function(e,t,o){for(var n,r=e;null!=(n=r.next);r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},c=function(e,t){if(e){var o=i(e,t);return o&&o.value}},a=function(e,t,o){var n=i(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},s=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){var o=e&&e.next,n=s(e,t);return n&&o&&o===n&&(e=void 0),!!n},get:function(t){return c(e,t)},has:function(t){var o;return!!(o=e)&&!!i(o,t)},set:function(t,o){e||(e={next:void 0}),a(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),c=o(6757),a=n("%Map%",!0),s=r("Map.prototype.get",!0),l=r("Map.prototype.set",!0),d=r("Map.prototype.has",!0),f=r("Map.prototype.delete",!0),m=r("Map.prototype.size",!0);e.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(t){if(e){var o=f(e,t);return 0===m(e)&&(e=void 0),o}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new a),l(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),c=o(3977),a=o(6757),s=n("%WeakMap%",!0),l=r("WeakMap.prototype.get",!0),d=r("WeakMap.prototype.set",!0),f=r("WeakMap.prototype.has",!0),m=r("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return m(e,o)}else if(c&&t)return t.delete(o);return!1},get:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?l(e,o):t&&t.get(o)},has:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?f(e,o):!!t&&t.has(o)},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),d(e,o,n)):c&&(t||(t=c()),t.set(o,n))}};return o}:c},6278(e,t,o){"use strict";var n=o(6757),r=o(3109),i=o(6521),c=o(3977),a=o(8965)||c||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,o){e||(e=a()),e.set(t,o)}};return t}},4532(e,t,o){!function(e){"use strict";var t,o,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),c=n&&"size"in n.prototype,a="__URLSearchParams__",s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),l=u.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!r||!i||!s||!c){l.append=function(e,t){g(this[a],e,t)},l.delete=function(e){delete this[a][e]},l.get=function(e){var t=this[a];return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this[a];return this.has(e)?t[e].slice(0):[]},l.has=function(e){return v(this[a],e)},l.set=function(e,t){this[a][e]=[""+t]},l.toString=function(){var e,t,o,n,r=this[a],i=[];for(t in r)for(o=b(t),e=0,n=r[t];e<n.length;e++)i.push(o+"="+b(n[e]));return i.join("&")};var f=e.Proxy&&n&&(!i||!s||!r||!c);f?(o=new Proxy(n,{construct:function(e,t){return new e(new u(t[0]).toString())}})).toString=Function.prototype.toString.bind(u):o=u,Object.defineProperty(e,"URLSearchParams",{value:o});var m=e.URLSearchParams.prototype;m.polyfill=!0,!f&&e.Symbol&&(m[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in m||(m.forEach=function(e,t){var o=p(this.toString());Object.getOwnPropertyNames(o).forEach(function(n){o[n].forEach(function(o){e.call(t,o,n,this)},this)},this)}),"sort"in m||(m.sort=function(){var e,t,o,n=p(this.toString()),r=[];for(e in n)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],c=n[i];for(o=0;o<c.length;o++)this.append(i,c[o])}}),"keys"in m||(m.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),h(e)}),"values"in m||(m.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)}),"entries"in m||(m.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),h(e)}),d&&(m[e.Symbol.iterator]=m[e.Symbol.iterator]||m.entries),"size"in m||Object.defineProperty(m,"size",{get:function(){var e=p(this.toString());if(m===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this[a]=p(e)}function b(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function F(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(e){return decodeURIComponent(e)})}function h(t){var o={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return d&&(o[e.Symbol.iterator]=function(){return o}),o}function p(e){var t={};if("object"==typeof e)if(y(e))for(var o=0;o<e.length;o++){var n=e[o];if(y(n)&&2===n.length)g(t,n[0],n[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var r in e)e.hasOwnProperty(r)&&g(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),c=0;c<i.length;c++){var a=i[c],s=a.indexOf("=");-1<s?g(t,F(a.slice(0,s)),F(a.slice(s+1))):a&&g(t,F(a),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);v(e,t)?e[t].push(n):e[t]=[n]}function y(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==o.g?o.g:"u">typeof window?window:this)},5610(){},7791(){},6550(){}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t,n)=>{var r=(t,n)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(n,"value")},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";let e,t,r,i,c;o.r(n),o.d(n,{OrGauge:()=>aa});var a,s,l,d,f,m,u,b,F,h,p,g,y,v,E,A,w,k,C,D,_,S,x,O,T,B,R,N,I,P,L,M,U,j,G,q,H,V,W,z,Y,K,J,X,Q,Z,ee,et,eo,en,er,ei,ec,ea,es,el,ed,ef,em,eu,eb,eF,eh,ep,eg,ey,ev,eE,eA,ew,ek,eC,eD,e_,eS,ex,eO,eT,eB,eR,eN,eI,eP,eL,eM,eU,ej,eG,eq,eH,e$,eV,eW,ez,eY,eK,eJ,eX,eQ,eZ,e0,e1,e2,e3,e5,e4,e6,e8,e9,e7,te,tt,to,tn,tr,ti,tc,ta,ts,tl,td,tf,tm,tu,tb,tF,th,tp,tg,ty,tv,tE,tA,tw,tk,tC={};o.r(tC),o.d(tC,{hasBrowserEnv:()=>rq,hasStandardBrowserEnv:()=>r$,hasStandardBrowserWebWorkerEnv:()=>rV,navigator:()=>rH,origin:()=>rW});let tD=globalThis,t_=tD.ShadowRoot&&(void 0===tD.ShadyCSS||tD.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tS=Symbol(),tx=new WeakMap;class tO{constructor(e,t,o){if(this._$cssResult$=!0,o!==tS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(t_&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tx.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tx.set(t,e))}return e}toString(){return this.cssText}}let tT=e=>new tO("string"==typeof e?e:e+"",void 0,tS),tB=(e,...t)=>new tO(1===e.length?e[0]:t.reduce((t,o,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]),e,tS),tR=t_?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tT(t)})(e):e,{is:tN,defineProperty:tI,getOwnPropertyDescriptor:tP,getOwnPropertyNames:tL,getOwnPropertySymbols:tM,getPrototypeOf:tU}=Object,tj=globalThis,tG=tj.trustedTypes,tq=tG?tG.emptyScript:"",tH=tj.reactiveElementPolyfillSupport,t$={toAttribute(e,t){switch(t){case Boolean:e=e?tq:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},tV=(e,t)=>!tN(e,t),tW={attribute:!0,type:String,converter:t$,reflect:!1,useDefault:!1,hasChanged:tV};Symbol.metadata??=Symbol("metadata"),tj.litPropertyMetadata??=new WeakMap;class tz extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=tW){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);void 0!==n&&tI(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:r}=tP(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let i=n?.call(this);r?.call(this,t),this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??tW}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tU(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...tL(e),...tM(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,o]of t)this.elementProperties.set(e,o)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let o of new Set(e.flat(1/0).reverse()))t.unshift(tR(o));else void 0!==e&&t.push(tR(e));return t}static _$Eu(e,t){let o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(t_)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tD.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(void 0!==n&&!0===o.reflect){let r=(void 0!==o.converter?.toAttribute?o.converter:t$).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=o.getPropertyOptions(n),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:t$;this._$Em=n;let i=r.fromAttribute(t,e.type);this[n]=i??this._$Ej?.get(n)??i,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,r=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??tV)(r,t)||o.useDefault&&o.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:r},i){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==r||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,o]of e){let{wrapped:e}=o,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,o,n)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}tz.elementStyles=[],tz.shadowRootOptions={mode:"open"},tz.elementProperties=new Map,tz.finalized=new Map,tH?.({ReactiveElement:tz}),(tj.reactiveElementVersions??=[]).push("2.1.1");let tY=globalThis,tK=tY.trustedTypes,tJ=tK?tK.createPolicy("lit-html",{createHTML:e=>e}):void 0,tX="$lit$",tQ=`lit$${Math.random().toFixed(9).slice(2)}$`,tZ="?"+tQ,t0=`<${tZ}>`,t1=document,t2=()=>t1.createComment(""),t3=e=>null===e||"object"!=typeof e&&"function"!=typeof e,t5=Array.isArray,t4="[ \n\f\r]",t6=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,t8=/-->/g,t9=/>/g,t7=RegExp(`>|${t4}(?:([^\\s"'>=/]+)(${t4}*=${t4}*(?:[^
1
+ var ORGauge;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constructor;e.exports=()=>t},7052(e){"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},9630(e,t,o){"use strict";var n=o(469),r=o(24),i=o(1530);e.exports=o(7009)||n.call(i,r)},24(e){"use strict";e.exports=Function.prototype.apply},1530(e){"use strict";e.exports=Function.prototype.call},7196(e,t,o){"use strict";var n=o(469),r=o(6757),i=o(1530),c=o(9630);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return c(n,i,e)}},7009(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(e,t,o){"use strict";var n=o(4295),r=o(7196),i=r([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var o=n(e,!!t);return"function"==typeof o&&i(e,".prototype.")>-1?r([o]):o}},714(e,t,o){"use strict";var n,r=o(7196),i=o(1233);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var c=!!n&&i&&i(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;e.exports=c&&"function"==typeof c.get?r([c.get]):"function"==typeof s&&function(e){return s(null==e?e:a(e))}},9997(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},155(e){"use strict";e.exports=EvalError},593(e){"use strict";e.exports=Error},7180(e){"use strict";e.exports=RangeError},9304(e){"use strict";e.exports=ReferenceError},1742(e){"use strict";e.exports=SyntaxError},6757(e){"use strict";e.exports=TypeError},4923(e){"use strict";e.exports=URIError},802(e){"use strict";e.exports=Object},9691(e){"use strict";var t=Object.prototype.toString,o=Math.max,n=function(e,t){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var r=0;r<t.length;r+=1)o[r+e.length]=t[r];return o},r=function(e,t){for(var o=[],n=t||0,r=0;n<e.length;n+=1,r+=1)o[r]=e[n];return o},i=function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o};e.exports=function(e){var c,a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw TypeError("Function.prototype.bind called on incompatible "+a);for(var s=r(arguments,1),l=o(0,a.length-s.length),d=[],f=0;f<l;f++)d[f]="$"+f;if(c=Function("binder","return function ("+i(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof c){var t=a.apply(this,n(s,arguments));return Object(t)===t?t:this}return a.apply(e,n(s,arguments))}),a.prototype){var m=function(){};m.prototype=a.prototype,c.prototype=new m,m.prototype=null}return c}},469(e,t,o){"use strict";var n=o(9691);e.exports=Function.prototype.bind||n},1001(e){(function(){var t,o,n,r,i,c,a,s,l,d,f,m,u,b=[].slice,F={}.hasOwnProperty,h=function(e,t){for(var o in t)F.call(t,o)&&(e[o]=t[o]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p=[].indexOf||function(e){for(var t=0,o=this.length;t<o;t++)if(t in this&&this[t]===e)return t;return -1};!function(){var e,t,o,n,r,i,c;for(o=0,r=(c=["ms","moz","webkit","o"]).length;o<r&&(i=c[o],!window.requestAnimationFrame);o++)window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"];e=null,n=0,t={},window.requestAnimationFrame?window.cancelAnimationFrame||(e=window.requestAnimationFrame,window.requestAnimationFrame=function(o,r){var i;return i=++n,e(function(){if(!t[i])return o()},r),i},window.cancelAnimationFrame=function(e){return t[e]=!0}):(window.requestAnimationFrame=function(e,t){var o,n,r,i;return i=Math.max(0,16-((o=new Date().getTime())-r)),n=window.setTimeout(function(){return e(o+i)},i),r=o+i,n},window.cancelAnimationFrame=function(e){return clearTimeout(e)})}(),u=function(e){var t,o;for(t=Math.floor(e/3600),o=Math.floor((e-3600*t)/60),e-=3600*t+60*o,e+="",o+="";o.length<2;)o="0"+o;for(;e.length<2;)e="0"+e;return(t=t?t+":":"")+o+":"+e},f=function(){var e,t,o;return t=1<=arguments.length?b.call(arguments,0):[],o=t[0],e=t[1],l(o.toFixed(e))},m=function(e,t){var o,n,r;for(o in n={},e)F.call(e,o)&&(r=e[o],n[o]=r);for(o in t)F.call(t,o)&&(r=t[o],n[o]=r);return n},l=function(e){var t,o,n,r;for(e+="",n=(o=e.split("."))[0],r="",o.length>1&&(r="."+o[1]),t=/(\d+)(\d{3})/;t.test(n);)n=n.replace(t,"$1,$2");return n+r},d=function(e){return"#"===e.charAt(0)?e.substring(1,7):e},n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return h(t,e),t.prototype.displayScale=1,t.prototype.forceUpdate=!0,t.prototype.setTextField=function(e,t){return this.textField=e instanceof a?e:new a(e,t)},t.prototype.setMinValue=function(e,t){var o,n,r,i,c;if(this.minValue=e,null==t&&(t=!0),t){for(this.displayedValue=this.minValue,i=this.gp||[],c=[],n=0,r=i.length;n<r;n++)o=i[n],c.push(o.displayedValue=this.minValue);return c}},t.prototype.setOptions=function(e){return null==e&&(e=null),this.options=m(this.options,e),this.textField&&(this.textField.el.style.fontSize=e.fontSize+"px"),this.options.angle>.5&&(this.options.angle=.5),this.configDisplayScale(),this},t.prototype.configDisplayScale=function(){var e,t,o,n,r;return n=this.displayScale,!1===this.options.highDpiSupport?delete this.displayScale:(t=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=t/e),this.displayScale!==n&&(r=this.canvas.G__width||this.canvas.width,o=this.canvas.G__height||this.canvas.height,this.canvas.width=r*this.displayScale,this.canvas.height=o*this.displayScale,this.canvas.style.width=r+"px",this.canvas.style.height=o+"px",this.canvas.G__width=r,this.canvas.G__height=o),this},t.prototype.parseValue=function(e){return isFinite(e=parseFloat(e)||Number(e))?e:0},t}(s=function(){function e(e,o){null==e&&(e=!0),this.clear=null==o||o,e&&t.add(this)}return e.prototype.animationSpeed=32,e.prototype.update=function(e){var t;return null==e&&(e=!1),(!!e||this.displayedValue!==this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),.001>=Math.abs((t=this.value-this.displayedValue)/this.animationSpeed)?this.displayedValue=this.value:this.displayedValue=this.displayedValue+t/this.animationSpeed,this.render(),!0)},e}()),a=function(){function e(e,t){this.el=e,this.fractionDigits=t}return e.prototype.render=function(e){return this.el.innerHTML=f(e.displayedValue,this.fractionDigits)},e}(),function(e){function t(e,o){if(this.elem=e,this.text=null!=o&&o,t.__super__.constructor.call(this),void 0===this.elem)throw Error("The element isn't defined.");this.value=+this.elem.innerHTML,this.text&&(this.value=0)}h(t,e),t.prototype.displayedValue=0,t.prototype.value=0,t.prototype.setVal=function(e){return this.value=+e},t.prototype.render=function(){var e;return e=this.text?u(this.displayedValue.toFixed(0)):l(f(this.displayedValue)),this.elem.innerHTML=e}}(s),c=function(e){function t(e){if(this.gauge=e,void 0===this.gauge)throw Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,t.__super__.constructor.call(this,!1,!1),this.setOptions()}return h(t,e),t.prototype.displayedValue=0,t.prototype.value=0,t.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},t.prototype.img=null,t.prototype.setOptions=function(e){if(null==e&&(e=null),this.options=m(this.options,e),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},t.prototype.render=function(){var e,t,o,n,r,i,c,a,s;if(e=this.gauge.getAngle.call(this,this.displayedValue),a=Math.round(this.length*Math.cos(e)),s=Math.round(this.length*Math.sin(e)),i=Math.round(this.strokeWidth*Math.cos(e-Math.PI/2)),c=Math.round(this.strokeWidth*Math.sin(e-Math.PI/2)),t=Math.round(this.strokeWidth*Math.cos(e+Math.PI/2)),o=Math.round(this.strokeWidth*Math.sin(e+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(i,c),this.ctx.lineTo(a,s),this.ctx.lineTo(t,o),this.ctx.fill(),this.img)return n=Math.round(this.img.width*this.options.iconScale),r=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(a,s),this.ctx.rotate(e+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-n/2,-r/2,n,r),this.ctx.restore()},t}(s),function(){function e(e){this.elem=e}e.prototype.updateValues=function(e){return this.value=e[0],this.maxValue=e[1],this.avgValue=e[2],this.render()},e.prototype.render=function(){var e,t;return this.textField&&this.textField.text(f(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),t=this.value/this.maxValue*100,e=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:t+"%"}),$(".typical-value",this.elem).css({width:e+"%"})}}(),i=function(e){function o(e){var t,n;this.canvas=e,o.__super__.constructor.call(this),this.percentColors=null,"u">typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),t=this.canvas.clientHeight,n=this.canvas.clientWidth,this.canvas.height=t,this.canvas.width=n,this.gp=[new c(this)],this.setOptions()}return h(o,e),o.prototype.elem=null,o.prototype.value=[20],o.prototype.maxValue=80,o.prototype.minValue=0,o.prototype.displayedAngle=0,o.prototype.displayedValue=0,o.prototype.lineWidth=40,o.prototype.paddingTop=.1,o.prototype.paddingBottom=.1,o.prototype.percentColors=null,o.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,fontSize:40,limitMax:!1,limitMin:!1},o.prototype.setOptions=function(e){var t,n,r,i,c;for(null==e&&(e=null),o.__super__.setOptions.call(this,e),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(i=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(i)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),n=0,r=(c=this.gp).length;n<r;n++)(t=c[n]).setOptions(this.options.pointer),t.render();return this.render(),this},o.prototype.configPercentColors=function(){var e,t,o,n,r,i,c;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=[],i=[],o=n=0,r=this.options.percentColors.length-1;0<=r?n<=r:n>=r;o=0<=r?++n:--n)c=parseInt(d(this.options.percentColors[o][1]).substring(0,2),16),t=parseInt(d(this.options.percentColors[o][1]).substring(2,4),16),e=parseInt(d(this.options.percentColors[o][1]).substring(4,6),16),i.push(this.percentColors[o]={pct:this.options.percentColors[o][0],color:{r:c,g:t,b:e}});return i}},o.prototype.set=function(e){var o,n,r,i,a,s,l,d,f;for(e instanceof Array||(e=[e]),n=r=0,l=e.length-1;0<=l?r<=l:r>=l;n=0<=l?++r:--r)e[n]=this.parseValue(e[n]);if(e.length>this.gp.length)for(n=i=0,d=e.length-this.gp.length;0<=d?i<d:i>d;n=0<=d?++i:--i)(o=new c(this)).setOptions(this.options.pointer),this.gp.push(o);else e.length<this.gp.length&&(this.gp=this.gp.slice(this.gp.length-e.length));for(s=0,n=0,a=e.length;s<a;s++)(f=e[s])>this.maxValue?this.options.limitMax?f=this.maxValue:this.maxValue=f+1:f<this.minValue&&(this.options.limitMin?f=this.minValue:this.minValue=f-1),this.gp[n].value=f,this.gp[n++].setOptions({minValue:this.minValue,maxValue:this.maxValue,angle:this.options.angle});return this.value=Math.max(Math.min(e[e.length-1],this.maxValue),this.minValue),t.add(this),t.run(this.forceUpdate),this.forceUpdate=!1},o.prototype.getAngle=function(e){return(1+this.options.angle)*Math.PI+(e-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},o.prototype.getColorForPercentage=function(e,t){var o,n,r,i,c,a,s;if(0===e)o=this.percentColors[0].color;else for(o=this.percentColors[this.percentColors.length-1].color,r=i=0,a=this.percentColors.length-1;0<=a?i<=a:i>=a;r=0<=a?++i:--i)if(e<=this.percentColors[r].pct){!0===t?(s=this.percentColors[r-1]||this.percentColors[0],n=this.percentColors[r],c=(e-s.pct)/(n.pct-s.pct),o={r:Math.floor(s.color.r*(1-c)+n.color.r*c),g:Math.floor(s.color.g*(1-c)+n.color.g*c),b:Math.floor(s.color.b*(1-c)+n.color.b*c)}):o=this.percentColors[r].color;break}return"rgb("+[o.r,o.g,o.b].join(",")+")"},o.prototype.getColorForValue=function(e,t){var o;return o=(e-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(o,t)},o.prototype.renderStaticLabels=function(e,t,o,n){var r,i,c,a,s,l,d,m,u,b;for(this.ctx.save(),this.ctx.translate(t,o),r=e.font||"10px Times",l=/\d+\.?\d?/,s=r.match(l)[0],m=r.slice(s.length),i=parseFloat(s)*this.displayScale,this.ctx.font=i+m,this.ctx.fillStyle=e.color||"#000000",this.ctx.textBaseline="bottom",this.ctx.textAlign="center",c=0,a=(d=e.labels).length;c<a;c++)void 0!==(b=d[c]).label?(!this.options.limitMin||b>=this.minValue)&&(!this.options.limitMax||b<=this.maxValue)&&(s=(r=b.font||e.font).match(l)[0],m=r.slice(s.length),i=parseFloat(s)*this.displayScale,this.ctx.font=i+m,u=this.getAngle(b.label)-3*Math.PI/2,this.ctx.rotate(u),this.ctx.fillText(f(b.label,e.fractionDigits),0,-n-this.lineWidth/2),this.ctx.rotate(-u)):(!this.options.limitMin||b>=this.minValue)&&(!this.options.limitMax||b<=this.maxValue)&&(u=this.getAngle(b)-3*Math.PI/2,this.ctx.rotate(u),this.ctx.fillText(f(b,e.fractionDigits),0,-n-this.lineWidth/2),this.ctx.rotate(-u));return this.ctx.restore()},o.prototype.renderTicks=function(e,t,o,n){var r,i,c,a,s,l,d,f,m,u,b,F,h,p,g,y,v,E,A,w;if("object"==typeof e&&null!==e&&Object.keys(e).length>0){for(l=e.divisions||0,E=e.subDivisions||0,c=e.divColor||"#fff",p=e.subColor||"#fff",a=e.divLength||.7,y=e.subLength||.2,g=parseFloat(u=parseFloat(m=parseFloat(this.maxValue)-parseFloat(this.minValue))/parseFloat(e.divisions))/parseFloat(e.subDivisions),r=parseFloat(this.minValue),i=0+g,s=(f=m/400)*(e.divWidth||1),v=f*(e.subWidth||1),F=[],A=d=0,b=l+1;d<b;A=d+=1)this.ctx.lineWidth=this.lineWidth*a,h=this.lineWidth/2*(1-a),w=this.radius*this.options.radiusScale+h,this.ctx.strokeStyle=c,this.ctx.beginPath(),this.ctx.arc(0,0,w,this.getAngle(r-s),this.getAngle(r+s),!1),this.ctx.stroke(),i=r+g,r+=u,A!==e.divisions&&E>0?F.push((function(){var e,t,o;for(o=[],e=0,t=E-1;e<t;e+=1)this.ctx.lineWidth=this.lineWidth*y,h=this.lineWidth/2*(1-y),w=this.radius*this.options.radiusScale+h,this.ctx.strokeStyle=p,this.ctx.beginPath(),this.ctx.arc(0,0,w,this.getAngle(i-v),this.getAngle(i+v),!1),this.ctx.stroke(),o.push(i+=g);return o}).call(this)):F.push(void 0);return F}},o.prototype.render=function(){var e,t,o,n,r,i,c,a,s,l,d,f,m,u,b,F,h,p;if(h=this.canvas.width/2,o=this.canvas.height*this.paddingTop+this.availableHeight-(this.radius+this.lineWidth/2)*this.extraPadding,e=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",l=this.radius*this.options.radiusScale,this.options.staticLabels&&this.renderStaticLabels(this.options.staticLabels,h,o,l),this.options.staticZones)for(this.ctx.save(),this.ctx.translate(h,o),this.ctx.lineWidth=this.lineWidth,n=0,i=(d=this.options.staticZones).length;n<i;n++)s=(p=d[n]).min,this.options.limitMin&&s<this.minValue&&(s=this.minValue),a=p.max,this.options.limitMax&&a>this.maxValue&&(a=this.maxValue),F=this.radius*this.options.radiusScale,p.height&&(this.ctx.lineWidth=this.lineWidth*p.height,m=this.lineWidth/2*(p.offset||1-p.height),F=this.radius*this.options.radiusScale+m),this.ctx.strokeStyle=p.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,F,this.getAngle(s),this.getAngle(a),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?t=this.options.customFillStyle(this):null!==this.percentColors?t=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?(0===this.options.gradientType?(u=l-this.lineWidth/2,b=l+this.lineWidth/2,t=this.ctx.createRadialGradient(h,o,u,h,o,b)):t=this.ctx.createLinearGradient(0,0,h,0),t.addColorStop(0,this.options.colorStart),t.addColorStop(1,this.options.colorStop)):t=this.options.colorStart,this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(h,o,l,(1+this.options.angle)*Math.PI,e,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(h,o,l,e,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(h,o);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,h,o,l),this.ctx.restore(),this.ctx.translate(h,o),r=0,c=(f=this.gp).length;r<c;r++)f[r].update(!0);return this.ctx.translate(-h,-o)},o}(n),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return h(t,e),t.prototype.strokeGradient=function(e,t,o,n){var r;return(r=this.ctx.createRadialGradient(e,t,o,e,t,n)).addColorStop(0,this.options.shadowColor),r.addColorStop(.12,this.options._orgStrokeColor),r.addColorStop(.88,this.options._orgStrokeColor),r.addColorStop(1,this.options.shadowColor),r},t.prototype.setOptions=function(e){var o,n,r,i;return null==e&&(e=null),t.__super__.setOptions.call(this,e),i=this.canvas.width/2,o=this.canvas.height/2,n=this.radius-this.lineWidth/2,r=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(i,o,n,r),this},t}(o=function(e){function o(e){this.canvas=e,o.__super__.constructor.call(this),"u">typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),this.setOptions(),this.render()}return h(o,e),o.prototype.lineWidth=15,o.prototype.displayedValue=0,o.prototype.value=33,o.prototype.maxValue=80,o.prototype.minValue=0,o.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35,radiusScale:1},o.prototype.getAngle=function(e){return(1-this.options.angle)*Math.PI+(e-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},o.prototype.setOptions=function(e){return null==e&&(e=null),o.__super__.setOptions.call(this,e),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.options.radiusScale*(this.canvas.height/2-this.lineWidth/2),this},o.prototype.set=function(e){return this.value=this.parseValue(e),this.value>this.maxValue?this.options.limitMax?this.value=this.maxValue:this.maxValue=this.value:this.value<this.minValue&&(this.options.limitMin?this.value=this.minValue:this.minValue=this.value),t.add(this),t.run(this.forceUpdate),this.forceUpdate=!1},o.prototype.render=function(){var e,t,o,n,r,i;return e=this.getAngle(this.displayedValue),i=this.canvas.width/2,o=this.canvas.height/2,this.textField&&this.textField.render(this),n=this.radius-this.lineWidth/2,r=this.radius+this.lineWidth/2,(t=this.ctx.createRadialGradient(i,o,n,i,o,r)).addColorStop(0,this.options.colorStart),t.addColorStop(1,this.options.colorStop),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(i,o,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(i,o,this.radius,(1-this.options.angle)*Math.PI,e,!1),this.ctx.stroke()},o}(n)),t={elements:[],animId:null,addAll:function(e){var o,n,r,i;for(n=0,i=[],r=e.length;n<r;n++)o=e[n],i.push(t.elements.push(o));return i},add:function(e){if(0>p.call(t.elements,e))return t.elements.push(e)},run:function(e){var o,n,r,i,c,a,s;if(null==e&&(e=!1),isFinite(parseFloat(e))||!0===e){for(o=!0,s=[],a=t.elements,r=n=0,c=a.length;n<c;r=++n)a[r].update(!0===e)?o=!1:s.push(r);for(i=s.length-1;i>=0;i+=-1)r=s[i],t.elements.splice(r,1);return t.animId=o?null:requestAnimationFrame(t.run)}if(!1===e)return!0===t.animId&&cancelAnimationFrame(t.animId),t.animId=requestAnimationFrame(t.run)}},"function"==typeof window.define&&null!=window.define.amd?define(function(){return{Gauge:i,Donut:r,BaseDonut:o,TextRenderer:a,AnimationUpdater:t}}):null!=e.exports?e.exports={Gauge:i,Donut:r,BaseDonut:o,TextRenderer:a,AnimationUpdater:t}:(window.Gauge=i,window.Donut=r,window.BaseDonut=o,window.TextRenderer=a,window.AnimationUpdater=t)}).call(this)},5175(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},4295(e,t,o){"use strict";var n,r=o(802),i=o(593),c=o(155),a=o(7180),s=o(9304),l=o(1742),d=o(6757),f=o(4923),m=o(7256),u=o(5414),b=o(7954),F=o(3452),h=o(1358),p=o(5720),g=o(3515),y=o(1233),v=o(9997),E=function(){throw new d},A=y?function(){try{return arguments.callee,E}catch(e){try{return y(arguments,"callee").get}catch(e){return E}}}():E,w=o(8573)(),k=o(7582),C=o(2170),D=o(9090),_=o(24),S=o(1530),x={},O="u">typeof Uint8Array&&k?k(Uint8Array):n,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":c,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":x,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&k?k(k([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&k?k(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&k?k(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&k?k(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":A,"%TypedArray%":O,"%TypeError%":d,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":_,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":C,"%Math.abs%":m,"%Math.floor%":u,"%Math.max%":b,"%Math.min%":F,"%Math.pow%":h,"%Math.round%":p,"%Math.sign%":g,"%Reflect.getPrototypeOf%":D};if(k)try{null.error}catch(e){var B=k(k(e));T["%Error.prototype%"]=B}var R=o(3260),N=o(5175),I=o(7052),P=function e(t){var o;if("%AsyncFunction%"===t)o=R()||void 0;else if("%GeneratorFunction%"===t)o=N()||void 0;else if("%AsyncGeneratorFunction%"===t)o=I()||void 0;else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&k&&(o=k(r.prototype))}return T[t]=o,o},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(469),U=o(9731),j=M.call(S,Array.prototype.concat),G=M.call(_,Array.prototype.splice),q=M.call(S,String.prototype.replace),H=M.call(S,String.prototype.slice),V=M.call(S,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,Y=function(e){var t=H(e,0,1),o=H(e,-1);if("%"===t&&"%"!==o)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,W,function(e,t,o,r){n[n.length]=o?q(r,z,"$1"):t||e}),n},K=function(e,t){var o,n=e;if(U(L,n)&&(n="%"+(o=L[n])[0]+"%"),U(T,n)){var r=T[n];if(r===x&&(r=P(n)),void 0===r&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=Y(e),n=o.length>0?o[0]:"",r=K("%"+n+"%",t),i=r.name,c=r.value,a=!1,s=r.alias;s&&(n=s[0],G(o,j([0,1],s)));for(var f=1,m=!0;f<o.length;f+=1){var u=o[f],b=H(u,0,1),F=H(u,-1);if(('"'===b||"'"===b||"`"===b||'"'===F||"'"===F||"`"===F)&&b!==F)throw new l("property names with quotes must have matching quotes");if("constructor"!==u&&m||(a=!0),n+="."+u,U(T,i="%"+n+"%"))c=T[i];else if(null!=c){if(!(u in c)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&f+1>=o.length){var h=y(c,u);c=(m=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:c[u]}else m=U(c,u),c=c[u];m&&!a&&(T[i]=c)}}return c}},2170(e,t,o){"use strict";e.exports=o(802).getPrototypeOf||null},9090(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(e,t,o){"use strict";var n=o(9090),r=o(2170),i=o(714);e.exports=n?function(e){return n(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return r(e)}:i?function(e){return i(e)}:null},1067(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1233(e,t,o){"use strict";var n=o(1067);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},8573(e,t,o){"use strict";var n="u">typeof Symbol&&Symbol,r=o(9535);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},9535(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),o=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9731(e,t,o){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;e.exports=o(469).call(n,r)},4954(e,t,o){!function(){"use strict";var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self,c=!r.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;c?r=o.g:i&&(r=self);var a=!r.JS_SHA256_NO_COMMON_JS&&e.exports,s="function"==typeof define&&define.amd,l=!r.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[-0x80000000,8388608,32768,128],m=[24,16,8,0],u=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],b=["hex","array","digest","arrayBuffer"],F=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var h=function(e,t){return function(o){return new E(t,!0).update(o)[e]()}},p=function(e){var t=h("hex",e);c&&(t=g(t,e)),t.create=function(){return new E(e)},t.update=function(e){return t.create().update(e)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=h(n,e)}return t},g=function(e,n){var i,c=o(7791),a=o(5610).Buffer,s=n?"sha224":"sha256";return i=a.from&&!r.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)},function(o){if("string"==typeof o)return c.createHash(s).update(o,"utf8").digest("hex");if(null==o)throw Error(t);return o.constructor===ArrayBuffer&&(o=new Uint8Array(o)),Array.isArray(o)||ArrayBuffer.isView(o)||o.constructor===a?c.createHash(s).update(i(o)).digest("hex"):e(o)}},y=function(e,t){return function(o,n){return new A(o,t,!0).update(n)[e]()}},v=function(e){var t=y("hex",e);t.create=function(t){return new A(t,e)},t.update=function(e,o){return t.create(e).update(o)};for(var o=0;o<b.length;++o){var n=b[o];t[n]=y(n,e)}return t};function E(e,t){t?(F[0]=F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0,this.blocks=F):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function A(e,o,n){var r,i=typeof e;if("string"===i){var c,a=[],s=e.length,d=0;for(r=0;r<s;++r)(c=e.charCodeAt(r))<128?a[d++]=c:(c<2048?a[d++]=192|c>>>6:(c<55296||c>=57344?a[d++]=224|c>>>12:(c=65536+((1023&c)<<10|1023&e.charCodeAt(++r)),a[d++]=240|c>>>18,a[d++]=128|c>>>12&63),a[d++]=128|c>>>6&63),a[d++]=128|63&c);e=a}else if("object"===i){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new E(o,!0).update(e).array());var f=[],m=[];for(r=0;r<64;++r){var u=e[r]||0;f[r]=92^u,m[r]=54^u}E.call(this,o,n),this.update(m),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}E.prototype.update=function(e){if(!this.finalized){var o,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(l&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!l||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);o=!0}for(var r,i,c=0,a=e.length,s=this.blocks;c<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),o)for(i=this.start;c<a&&i<64;++c)s[i>>>2]|=e[c]<<m[3&i++];else for(i=this.start;c<a&&i<64;++c)(r=e.charCodeAt(c))<128?s[i>>>2]|=r<<m[3&i++]:(r<2048?s[i>>>2]|=(192|r>>>6)<<m[3&i++]:(r<55296||r>=57344?s[i>>>2]|=(224|r>>>12)<<m[3&i++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++c)),s[i>>>2]|=(240|r>>>18)<<m[3&i++],s[i>>>2]|=(128|r>>>12&63)<<m[3&i++]),s[i>>>2]|=(128|r>>>6&63)<<m[3&i++]),s[i>>>2]|=(128|63&r)<<m[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=f[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var e,t,o,n,r,i,c,a,s,l,d=this.h0,f=this.h1,m=this.h2,b=this.h3,F=this.h4,h=this.h5,p=this.h6,g=this.h7,y=this.blocks;for(e=16;e<64;++e)t=((r=y[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,o=((r=y[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,y[e]=y[e-16]+t+y[e-7]+o|0;for(l=f&m,e=0;e<64;e+=4)this.first?(this.is224?(c=300032,g=(r=y[0]-0x543c9a5b)-0x8f1a6c7|0,b=r+0x170e9b5|0):(c=0x2a01a605,g=(r=y[0]-0xc881298)-0x5ab00ac6|0,b=r+0x8909ae5|0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),o=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),n=(c=d&f)^d&m^l,r=g+o+(F&h^~F&p)+u[e]+y[e],i=t+n,g=b+r|0,b=r+i|0),t=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(a=b&d)^b&f^c,r=p+o+(g&F^~g&h)+u[e+1]+y[e+1],i=t+n,p=m+r|0,t=((m=r+i|0)>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),o=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(s=m&b)^m&d^a,r=h+o+(p&g^~p&F)+u[e+2]+y[e+2],i=t+n,h=f+r|0,t=((f=r+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),o=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),n=(l=f&m)^f&b^s,r=F+o+(h&p^~h&g)+u[e+3]+y[e+3],i=t+n,F=d+r|0,d=r+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+d|0,this.h1=this.h1+f|0,this.h2=this.h2+m|0,this.h3=this.h3+b|0,this.h4=this.h4+F|0,this.h5=this.h5+h|0,this.h6=this.h6+p|0,this.h7=this.h7+g|0},E.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,c=this.h6,a=this.h7,s=d[e>>>28&15]+d[e>>>24&15]+d[e>>>20&15]+d[e>>>16&15]+d[e>>>12&15]+d[e>>>8&15]+d[e>>>4&15]+d[15&e]+d[t>>>28&15]+d[t>>>24&15]+d[t>>>20&15]+d[t>>>16&15]+d[t>>>12&15]+d[t>>>8&15]+d[t>>>4&15]+d[15&t]+d[o>>>28&15]+d[o>>>24&15]+d[o>>>20&15]+d[o>>>16&15]+d[o>>>12&15]+d[o>>>8&15]+d[o>>>4&15]+d[15&o]+d[n>>>28&15]+d[n>>>24&15]+d[n>>>20&15]+d[n>>>16&15]+d[n>>>12&15]+d[n>>>8&15]+d[n>>>4&15]+d[15&n]+d[r>>>28&15]+d[r>>>24&15]+d[r>>>20&15]+d[r>>>16&15]+d[r>>>12&15]+d[r>>>8&15]+d[r>>>4&15]+d[15&r]+d[i>>>28&15]+d[i>>>24&15]+d[i>>>20&15]+d[i>>>16&15]+d[i>>>12&15]+d[i>>>8&15]+d[i>>>4&15]+d[15&i]+d[c>>>28&15]+d[c>>>24&15]+d[c>>>20&15]+d[c>>>16&15]+d[c>>>12&15]+d[c>>>8&15]+d[c>>>4&15]+d[15&c];return this.is224||(s+=d[a>>>28&15]+d[a>>>24&15]+d[a>>>20&15]+d[a>>>16&15]+d[a>>>12&15]+d[a>>>8&15]+d[a>>>4&15]+d[15&a]),s},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,o=this.h2,n=this.h3,r=this.h4,i=this.h5,c=this.h6,a=this.h7,s=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,o>>>24&255,o>>>16&255,o>>>8&255,255&o,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,c>>>24&255,c>>>16&255,c>>>8&255,255&c];return this.is224||s.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),s},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},A.prototype=new E,A.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),E.prototype.finalize.call(this)}};var w=p();w.sha256=w,w.sha224=p(!0),w.sha256.hmac=v(),w.sha224.hmac=v(!0),a?e.exports=w:(r.sha256=w.sha256,r.sha224=w.sha224,s&&define(function(){return w}))}()},2051(e,t,o){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=s||l||Function("return this")(),f=Object.prototype.toString,m=Math.max,u=Math.min,b=function(){return d.Date.now()};function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return 0/0;if(F(e)){var t,o="function"==typeof e.valueOf?e.valueOf():e;e=F(o)?o+"":o}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||c.test(e)?a(e.slice(2),s?2:8):r.test(e)?0/0:+e}e.exports=function(e,t,o){var n,r,i,c,a,s,l=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var o=n,i=r;return n=r=void 0,l=t,c=e.apply(i,o)}function y(e){var o=e-s,n=e-l;return void 0===s||o>=t||o<0||f&&n>=i}function v(){var e,o,n,r=b();if(y(r))return E(r);a=setTimeout(v,(e=r-s,o=r-l,n=t-e,f?u(n,i-o):n))}function E(e){return(a=void 0,p&&n)?g(e):(n=r=void 0,c)}function A(){var e,o=b(),i=y(o);if(n=arguments,r=this,s=o,i){if(void 0===a)return l=e=s,a=setTimeout(v,t),d?g(e):c;if(f)return a=setTimeout(v,t),g(s)}return void 0===a&&(a=setTimeout(v,t)),c}return t=h(t)||0,F(o)&&(d=!!o.leading,i=(f="maxWait"in o)?m(h(o.maxWait)||0,t):i,p="trailing"in o?!!o.trailing:p),A.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=s=r=a=void 0},A.flush=function(){return void 0===a?c:E(b())},A}},3472(e,t,o){e=o.nmd(e);var n,r="__lodash_hash_undefined__",i="[object Arguments]",c="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",d="[object Function]",f="[object Map]",m="[object Number]",u="[object Object]",b="[object Promise]",F="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,k=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[c]=x[v]=x[a]=x[E]=x[s]=x[l]=x[d]=x[f]=x[m]=x[u]=x[F]=x[h]=x[p]=x[y]=!1;var O="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,T="object"==typeof self&&self&&self.Object===Object&&self,B=O||T||Function("return this")(),R=t&&!t.nodeType&&t,N=R&&e&&!e.nodeType&&e,I=N&&N.exports===R&&O.process,P=function(){try{return I&&I.binding("util")}catch(e){}}(),L=P&&P.isTypedArray;function M(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,o=Array(e.size);return e.forEach(function(e,n){o[++t]=[n,e]}),o}function j(e,t){return function(o){return e(t(o))}}function G(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}var q=Array.prototype,H=Function.prototype,V=Object.prototype,W=B["__core-js_shared__"],z=(n=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Y=H.toString,K=V.hasOwnProperty,J=V.toString,X=RegExp("^"+Y.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=B.Symbol,Z=B.Uint8Array,ee=j(Object.getPrototypeOf,Object),et=Object.create,eo=V.propertyIsEnumerable,en=q.splice,er=j(Object.keys,Object),ei=eT(B,"DataView"),ec=eT(B,"Map"),ea=eT(B,"Promise"),es=eT(B,"Set"),el=eT(B,"WeakMap"),ed=eT(Object,"create"),ef=eM(ei),em=eM(ec),eu=eM(ea),eb=eM(es),eF=eM(el),eh=Q?Q.prototype:void 0,ep=eh?eh.valueOf:void 0,eg=eh?eh.toString:void 0;function ey(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function eE(e){var t=-1,o=e?e.length:0;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function eA(e){var t=-1,o=e?e.length:0;for(this.__data__=new eE;++t<o;)this.add(e[t])}function ew(e){this.__data__=new ev(e)}function ek(e,t){for(var o=e.length;o--;)if(ej(e[o][0],t))return o;return -1}ey.prototype.clear=function(){this.__data__=ed?ed(null):{}},ey.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ey.prototype.get=function(e){var t=this.__data__;if(ed){var o=t[e];return o===r?void 0:o}return K.call(t,e)?t[e]:void 0},ey.prototype.has=function(e){var t=this.__data__;return ed?void 0!==t[e]:K.call(t,e)},ey.prototype.set=function(e,t){return this.__data__[e]=ed&&void 0===t?r:t,this},ev.prototype.clear=function(){this.__data__=[]},ev.prototype.delete=function(e){var t=this.__data__,o=ek(t,e);return!(o<0)&&(o==t.length-1?t.pop():en.call(t,o,1),!0)},ev.prototype.get=function(e){var t=this.__data__,o=ek(t,e);return o<0?void 0:t[o][1]},ev.prototype.has=function(e){return ek(this.__data__,e)>-1},ev.prototype.set=function(e,t){var o=this.__data__,n=ek(o,e);return n<0?o.push([e,t]):o[n][1]=t,this},eE.prototype.clear=function(){this.__data__={hash:new ey,map:new(ec||ev),string:new ey}},eE.prototype.delete=function(e){return eO(this,e).delete(e)},eE.prototype.get=function(e){return eO(this,e).get(e)},eE.prototype.has=function(e){return eO(this,e).has(e)},eE.prototype.set=function(e,t){return eO(this,e).set(e,t),this},eA.prototype.add=eA.prototype.push=function(e){return this.__data__.set(e,r),this},eA.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.clear=function(){this.__data__=new ev},ew.prototype.delete=function(e){return this.__data__.delete(e)},ew.prototype.get=function(e){return this.__data__.get(e)},ew.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.set=function(e,t){var o=this.__data__;if(o instanceof ev){var n=o.__data__;if(!ec||n.length<199)return n.push([e,t]),this;o=this.__data__=new eE(n)}return o.set(e,t),this};var eC=function(e,t,o){for(var n=-1,r=Object(e),i=o(e),c=i.length;c--;){var a=i[++n];if(!1===t(r[a],a,r))break}return e};function eD(e,t){var o;t=eN(t,e)?[t]:eq(o=t)?o:eP(o);for(var n=0,r=t.length;null!=e&&n<r;)e=e[eL(t[n++])];return n&&n==r?e:void 0}function e_(e,t){return null!=e&&t in Object(e)}function eS(e,t,o,n,r){return e===t||(null!=e&&null!=t&&(eW(e)||ez(t))?function(e,t,o,n,r,d){var b=eq(e),y=eq(t),A=c,w=c;b||(A=(A=eB(e))==i?u:A),y||(w=(w=eB(t))==i?u:w);var k=A==u&&!M(e),C=w==u&&!M(t),D=A==w;if(D&&!k)return d||(d=new ew),b||eK(e)?ex(e,t,o,n,r,d):function(e,t,o,n,r,i,c){switch(o){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case v:if(e.byteLength!=t.byteLength||!n(new Z(e),new Z(t)))break;return!0;case a:case s:case m:return ej(+e,+t);case l:return e.name==t.name&&e.message==t.message;case F:case p:return e==t+"";case f:var d=U;case h:var u=2&i;if(d||(d=G),e.size!=t.size&&!u)break;var b=c.get(e);if(b)return b==t;i|=1,c.set(e,t);var y=ex(d(e),d(t),n,r,i,c);return c.delete(e),y;case g:if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,A,o,n,r,d);if(!(2&r)){var _=k&&K.call(e,"__wrapped__"),S=C&&K.call(t,"__wrapped__");if(_||S){var x=_?e.value():e,O=S?t.value():t;return d||(d=new ew),o(x,O,n,r,d)}}return!!D&&(d||(d=new ew),function(e,t,o,n,r,i){var c=2&r,a=eJ(e),s=a.length;if(s!=eJ(t).length&&!c)return!1;for(var l=s;l--;){var d=a[l];if(!(c?d in t:K.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var m=!0;i.set(e,t),i.set(t,e);for(var u=c;++l<s;){var b=e[d=a[l]],F=t[d];if(n)var h=c?n(F,b,d,t,e,i):n(b,F,d,e,t,i);if(!(void 0===h?b===F||o(b,F,n,r,i):h)){m=!1;break}u||(u="constructor"==d)}if(m&&!u){var p=e.constructor,g=t.constructor;p!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof p&&p instanceof p&&"function"==typeof g&&g instanceof g)&&(m=!1)}return i.delete(e),i.delete(t),m}(e,t,o,n,r,d))}(e,t,eS,o,n,r):e!=e&&t!=t)}function ex(e,t,o,n,r,i){var c=2&r,a=e.length,s=t.length;if(a!=s&&!(c&&s>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var d=-1,f=!0,m=1&r?new eA:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var u=e[d],b=t[d];if(n)var F=c?n(b,u,d,t,e,i):n(u,b,d,e,t,i);if(void 0!==F){if(F)continue;f=!1;break}if(m){if(!function(e,t){for(var o=-1,n=e?e.length:0;++o<n;)if(t(e[o],o,e))return!0;return!1}(t,function(e,t){if(!m.has(t)&&(u===e||o(u,e,n,r,i)))return m.add(t)})){f=!1;break}}else if(!(u===b||o(u,b,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function eO(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function eT(e,t){var o,n=null==e?void 0:e[t];return!(!eW(n)||(o=n,z&&z in o))&&(e$(n)||M(n)?X:_).test(eM(n))?n:void 0}var eB=function(e){return J.call(e)};function eR(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function eN(e,t){if(eq(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||eY(e))||w.test(e)||!A.test(e)||null!=t&&e in Object(t)}(ei&&eB(new ei(new ArrayBuffer(1)))!=E||ec&&eB(new ec)!=f||ea&&eB(ea.resolve())!=b||es&&eB(new es)!=h||el&&eB(new el)!=y)&&(eB=function(e){var t=J.call(e),o=t==u?e.constructor:void 0,n=o?eM(o):void 0;if(n)switch(n){case ef:return E;case em:return f;case eu:return b;case eb:return h;case eF:return y}return t});function eI(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}var eP=eU(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eY(e))return eg?eg.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,o=[];return k.test(e)&&o.push(""),e.replace(C,function(e,t,n,r){o.push(n?r.replace(D,"$1"):t||e)}),o});function eL(e){if("string"==typeof e||eY(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eM(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eU(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var c=e.apply(this,n);return o.cache=i.set(r,c),c};return o.cache=new(eU.Cache||eE),o}function ej(e,t){return e===t||e!=e&&t!=t}function eG(e){var t;return ez(t=e)&&eH(t)&&K.call(e,"callee")&&(!eo.call(e,"callee")||J.call(e)==i)}eU.Cache=eE;var eq=Array.isArray;function eH(e){return null!=e&&eV(e.length)&&!e$(e)}function e$(e){var t=eW(e)?J.call(e):"";return t==d||"[object GeneratorFunction]"==t}function eV(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eW(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ez(e){return!!e&&"object"==typeof e}function eY(e){return"symbol"==typeof e||ez(e)&&J.call(e)==g}var eK=L?function(e){return L(e)}:function(e){return ez(e)&&eV(e.length)&&!!x[J.call(e)]};function eJ(e){return eH(e)?function(e){var t=eq(e)||eG(e)?function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}(e.length,String):[],o=t.length,n=!!o;for(var r in e)K.call(e,r)&&!(n&&("length"==r||eR(r,o)))&&t.push(r);return t}(e):function(e){if(o=(t=e)&&t.constructor,t!==("function"==typeof o&&o.prototype||V))return er(e);var t,o,n=[];for(var r in Object(e))K.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}function eX(e){return e}e.exports=function(e,t,o){var n=eq(e)||eK(e);if(t="function"==typeof(l=t)?l:null==l?eX:"object"==typeof l?eq(l)?(r=l[0],i=l[1],eN(r)&&(c=i)==c&&!eW(c)?eI(eL(r),i):function(e){var t,o,n,c,a,s=(t=e,o=r,void 0===(n=null==t?void 0:eD(t,o))?void 0:n);return void 0===s&&s===i?(c=e,a=r,null!=c&&function(e,t,o){t=eN(t,e)?[t]:eq(n=t)?n:eP(n);for(var n,r,i=-1,c=t.length;++i<c;){var a=eL(t[i]);if(!(r=null!=e&&o(e,a)))break;e=e[a]}if(r)return r;var c=e?e.length:0;return!!c&&eV(c)&&eR(a,c)&&(eq(e)||eG(e))}(c,a,e_)):eS(i,s,void 0,3)}):1==(s=function(e){for(var t=eJ(e),o=t.length;o--;){var n,r=t[o],i=e[r];t[o]=[r,i,(n=i)==n&&!eW(n)]}return t}(a=l)).length&&s[0][2]?eI(s[0][0],s[0][1]):function(e){return e===a||function(e,t){var o=t.length,n=o;if(null==e)return!n;for(e=Object(e);o--;){var r=t[o];if((0,r[2])?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++o<n;){var i=(r=t[o])[0],c=e[i],a=r[1];if(0,r[2]){if(void 0===c&&!(i in e))return!1}else{var s,l=new ew;if(!(void 0===s?eS(a,c,void 0,3,l):s))return!1}}return!0}(e,s)}:function(e){var t;return eN(e)?(t=eL(e),function(e){return null==e?void 0:e[t]}):function(t){return eD(t,e)}}(l),null==o)if(n||eW(e)){var r,i,c,a,s,l,d,f=e.constructor;o=n?eq(e)?new f:[]:e$(f)&&eW(d=ee(e))?et(d):{}}else o={};return(n?function(e,t){for(var o=-1,n=e?e.length:0;++o<n&&!1!==t(e[o],o,e););return e}:function(e,t){return e&&eC(e,t,eJ)})(e,function(e,n,r){return t(o,e,n,r)}),o}},7256(e){"use strict";e.exports=Math.abs},5414(e){"use strict";e.exports=Math.floor},981(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7954(e){"use strict";e.exports=Math.max},3452(e){"use strict";e.exports=Math.min},1358(e){"use strict";e.exports=Math.pow},5720(e){"use strict";e.exports=Math.round},3515(e,t,o){"use strict";var n=o(981);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},4867(e,t,o){e=o.nmd(e),e.exports=function(){"use strict";function t(){return G.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o,n=[],r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function f(e,t){for(var o in t)i(t,o)&&(e[o]=t[o]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,o,n){return tc(e,t,o,n,!0).utc()}function u(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function b(e){var t=null,o=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=u(e),o=q.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function F(e){var t=m(0/0);return null!=e?f(u(t),e):u(t).userInvalidated=!0,t}q=Array.prototype.some?Array.prototype.some:function(e){var t,o=Object(this),n=o.length>>>0;for(t=0;t<n;t++)if(t in o&&e.call(this,o[t],t,o))return!0;return!1};var h,p,g=t.momentProperties=[],y=!1;function v(e,t){var o,n,r,i=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=u(t)),a(t._locale)||(e._locale=t._locale),i>0)for(o=0;o<i;o++)a(r=t[n=g[o]])||(e[n]=r);return e}function E(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===y&&(y=!0,t.updateOffset(this),y=!1)}function A(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,o){var n=!0;return f(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var r,c,a,s=[],l=arguments.length;for(c=0;c<l;c++){if(r="","object"==typeof arguments[c]){for(a in r+="\n["+c+"] ",arguments[0])i(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[c];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+Error().stack),n=!1}return o.apply(this,arguments)},o)}var C={};function D(e,o){null!=t.deprecationHandler&&t.deprecationHandler(e,o),C[e]||(w(o),C[e]=!0)}function _(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var o,n=f({},e);for(o in t)i(t,o)&&(r(e[o])&&r(t[o])?(n[o]={},f(n[o],e[o]),f(n[o],t[o])):null!=t[o]?n[o]=t[o]:delete n[o]);for(o in e)i(e,o)&&!i(t,o)&&r(e[o])&&(n[o]=f({},n[o]));return n}function x(e){null!=e&&this.set(e)}function O(e,t,o){var n=""+Math.abs(e);return(e>=0?o?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},N={};function I(e,t,o,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(N[e]=r),t&&(N[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),o&&(N[o]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function P(e,t){return e.isValid()?(R[t=L(t,e.localeData())]=R[t]||function(e){var t,o,n,r=e.match(T);for(o=0,n=r.length;o<n;o++)N[r[o]]?r[o]=N[r[o]]:r[o]=(t=r[o]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var o,i="";for(o=0;o<n;o++)i+=_(r[o])?r[o].call(t,e):r[o];return i}}(t),R[t](e)):e.localeData().invalidDate()}function L(e,t){var o=5;function n(e){return t.longDateFormat(e)||e}for(B.lastIndex=0;o>=0&&B.test(e);)e=e.replace(B,n),B.lastIndex=0,o-=1;return e}var M={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function U(e){return"string"==typeof e?M[e]||M[e.toLowerCase()]:void 0}function j(e){var t,o,n={};for(o in e)i(e,o)&&(t=U(o))&&(n[t]=e[o]);return n}var G,q,H,V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},W=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)i(e,t)&&o.push(t);return o},z=/\d/,Y=/\d\d/,K=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,et=/\d{1,3}/,eo=/\d{1,4}/,en=/[+-]?\d{1,6}/,er=/\d+/,ei=/[+-]?\d+/,ec=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,es=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,el=/^[1-9]\d?/,ed=/^([1-9]\d|\d)/;function ef(e,t,o){H[e]=_(t)?t:function(e,n){return e&&o?o:t}}function em(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eb(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=eu(t)),o}H={};var eF={};function eh(e,t){var o,n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,o){o[t]=eb(e)}),n=e.length,o=0;o<n;o++)eF[e[o]]=r}function ep(e,t){eh(e,function(e,o,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eg(e){return e%4==0&&e%100!=0||e%400==0}function ey(e){return eg(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?O(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),ef("Y",ei),ef("YY",Q,Y),ef("YYYY",eo,J),ef("YYYYY",en,X),ef("YYYYYY",en,X),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(e,o){o[0]=2===e.length?t.parseTwoDigitYear(e):eb(e)}),eh("YY",function(e,o){o[0]=t.parseTwoDigitYear(e)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return eb(e)+(eb(e)>68?1900:2e3)};var ev=eE("FullYear",!0);function eE(e,o){return function(n){return null!=n?(ew(this,e,n),t.updateOffset(this,o),this):eA(this,e)}}function eA(e,t){if(!e.isValid())return 0/0;var o=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return n?o.getUTCSeconds():o.getSeconds();case"Minutes":return n?o.getUTCMinutes():o.getMinutes();case"Hours":return n?o.getUTCHours():o.getHours();case"Date":return n?o.getUTCDate():o.getDate();case"Day":return n?o.getUTCDay():o.getDay();case"Month":return n?o.getUTCMonth():o.getMonth();case"FullYear":return n?o.getUTCFullYear():o.getFullYear();default:return 0/0}}function ew(e,t,o){var n,r,i,c;if(!(!e.isValid()||isNaN(o))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(o):n.setMilliseconds(o));case"Seconds":return void(r?n.setUTCSeconds(o):n.setSeconds(o));case"Minutes":return void(r?n.setUTCMinutes(o):n.setMinutes(o));case"Hours":return void(r?n.setUTCHours(o):n.setHours(o));case"Date":return void(r?n.setUTCDate(o):n.setDate(o));case"FullYear":break;default:return}i=e.month(),c=29!==(c=e.date())||1!==i||eg(o)?c:28,r?n.setUTCFullYear(o,i,c):n.setFullYear(o,i,c)}}function ek(e,t){if(isNaN(e)||isNaN(t))return 0/0;var o=(t%12+12)%12;return e+=(t-o)/12,1===o?eg(e)?29:28:31-o%7%2}e$=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ef("M",Q,el),ef("MM",Q,Y),ef("MMM",function(e,t){return t.monthsShortRegex(e)}),ef("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=eb(e)-1}),eh(["MMM","MMMM"],function(e,t,o,n){var r=o._locale.monthsParse(e,n,o._strict);null!=r?t[1]=r:u(o).invalidMonth=e});var eC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eD=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function e_(e,t,o){var n,r,i,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();if(o)if("MMM"===t)return -1!==(r=e$.call(this._shortMonthsParse,c))?r:null;else return -1!==(r=e$.call(this._longMonthsParse,c))?r:null;return"MMM"===t?-1!==(r=e$.call(this._shortMonthsParse,c))||-1!==(r=e$.call(this._longMonthsParse,c))?r:null:-1!==(r=e$.call(this._longMonthsParse,c))||-1!==(r=e$.call(this._shortMonthsParse,c))?r:null}function eS(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eb(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var o=t,n=e.date();return n=n<29?n:Math.min(n,ek(e.year(),o)),e._isUTC?e._d.setUTCMonth(o,n):e._d.setMonth(o,n),e}function ex(e){return null!=e?(eS(this,e),t.updateOffset(this,!0),this):eA(this,"Month")}function eO(){function e(e,t){return t.length-e.length}var t,o,n,r,i=[],c=[],a=[];for(t=0;t<12;t++)o=m([2e3,t]),n=em(this.monthsShort(o,"")),r=em(this.months(o,"")),i.push(n),c.push(r),a.push(r),a.push(n);i.sort(e),c.sort(e),a.sort(e),this._monthsRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+i.join("|")+")","i")}function eT(e,t,o,n,r,i,c){var a;return e<100&&e>=0?isFinite((a=new Date(e+400,t,o,n,r,i,c)).getFullYear())&&a.setFullYear(e):a=new Date(e,t,o,n,r,i,c),a}function eB(e){var t,o;return e<100&&e>=0?(o=Array.prototype.slice.call(arguments),o[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,o))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eR(e,t,o){var n=7+t-o;return-((7+eB(e,0,n).getUTCDay()-t)%7)+n-1}function eN(e,t,o,n,r){var i,c,a=1+7*(t-1)+(7+o-n)%7+eR(e,n,r);return a<=0?c=ey(i=e-1)+a:a>ey(e)?(i=e+1,c=a-ey(e)):(i=e,c=a),{year:i,dayOfYear:c}}function eI(e,t,o){var n,r,i=eR(e.year(),t,o),c=Math.floor((e.dayOfYear()-i-1)/7)+1;return c<1?n=c+eP(r=e.year()-1,t,o):c>eP(e.year(),t,o)?(n=c-eP(e.year(),t,o),r=e.year()+1):(r=e.year(),n=c),{week:n,year:r}}function eP(e,t,o){var n=eR(e,t,o),r=eR(e+1,t,o);return(ey(e)-n+r)/7}function eL(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ef("w",Q,el),ef("ww",Q,Y),ef("W",Q,el),ef("WW",Q,Y),ep(["w","ww","W","WW"],function(e,t,o,n){t[n.substr(0,1)]=eb(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),ef("d",Q),ef("e",Q),ef("E",Q),ef("dd",function(e,t){return t.weekdaysMinRegex(e)}),ef("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ef("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,o,n){var r=o._locale.weekdaysParse(e,n,o._strict);null!=r?t.d=r:u(o).invalidWeekday=e}),ep(["d","e","E"],function(e,t,o,n){t[n]=eb(e)});var eM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eU(e,t,o){var n,r,i,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();if(o)if("dddd"===t)return -1!==(r=e$.call(this._weekdaysParse,c))?r:null;else if("ddd"===t)return -1!==(r=e$.call(this._shortWeekdaysParse,c))?r:null;else return -1!==(r=e$.call(this._minWeekdaysParse,c))?r:null;return"dddd"===t?-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._shortWeekdaysParse,c))||-1!==(r=e$.call(this._minWeekdaysParse,c))?r:null:"ddd"===t?-1!==(r=e$.call(this._shortWeekdaysParse,c))||-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._minWeekdaysParse,c))?r:null:-1!==(r=e$.call(this._minWeekdaysParse,c))||-1!==(r=e$.call(this._weekdaysParse,c))||-1!==(r=e$.call(this._shortWeekdaysParse,c))?r:null}function ej(){function e(e,t){return t.length-e.length}var t,o,n,r,i,c=[],a=[],s=[],l=[];for(t=0;t<7;t++)o=m([2e3,1]).day(t),n=em(this.weekdaysMin(o,"")),r=em(this.weekdaysShort(o,"")),i=em(this.weekdays(o,"")),c.push(n),a.push(r),s.push(i),l.push(n),l.push(r),l.push(i);c.sort(e),a.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+c.join("|")+")","i")}function eG(){return this.hours()%12||12}function eq(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eH(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,eG),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+eG.apply(this)+O(this.minutes(),2)}),I("hmmss",0,0,function(){return""+eG.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),eq("a",!0),eq("A",!1),ef("a",eH),ef("A",eH),ef("H",Q,ed),ef("h",Q,el),ef("k",Q,el),ef("HH",Q,Y),ef("hh",Q,Y),ef("kk",Q,Y),ef("hmm",Z),ef("hmmss",ee),ef("Hmm",Z),ef("Hmmss",ee),eh(["H","HH"],3),eh(["k","kk"],function(e,t,o){var n=eb(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e}),eh(["h","hh"],function(e,t,o){t[3]=eb(e),u(o).bigHour=!0}),eh("hmm",function(e,t,o){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n)),u(o).bigHour=!0}),eh("hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r)),u(o).bigHour=!0}),eh("Hmm",function(e,t,o){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n))}),eh("Hmmss",function(e,t,o){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r))});var e$,eV,eW=eE("Hours",!0),ez={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eC,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eM,meridiemParse:/[ap]\.?m?\.?/i},eY={},eK={};function eJ(e){return e?e.toLowerCase().replace("_","-"):e}function eX(t){var n=null;if(void 0===eY[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eV._abbr,o(3118)("./locale/"+t),eQ(n)}catch(e){eY[t]=null}return eY[t]}function eQ(e,t){var o;return e&&((o=a(t)?e0(e):eZ(e,t))?eV=o:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eV._abbr}function eZ(e,t){if(null===t)return delete eY[e],null;var o,n=ez;if(t.abbr=e,null!=eY[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=eY[e]._config;else if(null!=t.parentLocale)if(null!=eY[t.parentLocale])n=eY[t.parentLocale]._config;else{if(null==(o=eX(t.parentLocale)))return eK[t.parentLocale]||(eK[t.parentLocale]=[]),eK[t.parentLocale].push({name:e,config:t}),null;n=o._config}return eY[e]=new x(S(n,t)),eK[e]&&eK[e].forEach(function(e){eZ(e.name,e.config)}),eQ(e),eY[e]}function e0(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eV;if(!n(e)){if(t=eX(e))return t;e=[e]}return function(e){for(var t,o,n,r,i=0;i<e.length;){for(t=(r=eJ(e[i]).split("-")).length,o=(o=eJ(e[i+1]))?o.split("-"):null;t>0;){if(n=eX(r.slice(0,t).join("-")))return n;if(o&&o.length>=t&&function(e,t){var o,n=Math.min(e.length,t.length);for(o=0;o<n;o+=1)if(e[o]!==t[o])return o;return n}(r,o)>=t-1)break;t--}i++}return eV}(e)}function e1(e){var t,o=e._a;return o&&-2===u(e).overflow&&(t=o[1]<0||o[1]>11?1:o[2]<1||o[2]>ek(o[0],o[1])?2:o[3]<0||o[3]>24||24===o[3]&&(0!==o[4]||0!==o[5]||0!==o[6])?3:o[4]<0||o[4]>59?4:o[5]<0||o[5]>59?5:o[6]<0||o[6]>999?6:-1,u(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),u(e)._overflowWeeks&&-1===t&&(t=7),u(e)._overflowWeekday&&-1===t&&(t=8),u(e).overflow=t),e}var e2=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e5=/Z|[+-]\d\d(?::?\d\d)?/,e4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e8=/^\/?Date\((-?\d+)/i,e9=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e7={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function te(e){var t,o,n,r,i,c,a=e._i,s=e2.exec(a)||e3.exec(a),l=e4.length,d=e6.length;if(s){for(u(e).iso=!0,t=0,o=l;t<o;t++)if(e4[t][1].exec(s[1])){r=e4[t][0],n=!1!==e4[t][2];break}if(null==r){e._isValid=!1;return}if(s[3]){for(t=0,o=d;t<o;t++)if(e6[t][1].exec(s[3])){i=(s[2]||" ")+e6[t][0];break}if(null==i){e._isValid=!1;return}}if(!n&&null!=i){e._isValid=!1;return}if(s[4])if(e5.exec(s[4]))c="Z";else{e._isValid=!1;return}e._f=r+(i||"")+(c||""),tr(e)}else e._isValid=!1}function tt(e){var t,o,n,r,i,c,a,s,l,d,f,m=e9.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(m){if(i=m[4],c=m[3],a=m[2],s=m[5],l=m[6],d=m[7],f=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,eC.indexOf(c),parseInt(a,10),parseInt(s,10),parseInt(l,10)],d&&f.push(parseInt(d,10)),o=m[1],n=f,r=e,o&&eM.indexOf(o)!==new Date(n[0],n[1],n[2]).getDay()&&(u(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=f,e._tzm=function(e,t,o){if(e)return e7[e];if(t)return 0;var n=parseInt(o,10),r=n%100;return(n-r)/100*60+r}(m[8],m[9],m[10]),e._d=eB.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),u(e).rfc2822=!0}else e._isValid=!1}function to(e,t,o){return null!=e?e:null!=t?t:o}function tn(e){var o,n,r,i,c,a,s,l,d,f,m,b,F,h,p,g,y=[];if(!e._d){for(m=new Date(t.now()),h=e._useUTC?[m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]:[m.getFullYear(),m.getMonth(),m.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=(o=e)._w).GG||null!=n.W||null!=n.E?(a=1,s=4,r=to(n.GG,o._a[0],eI(ta(),1,4).year),i=to(n.W,1),((c=to(n.E,1))<1||c>7)&&(d=!0)):(a=o._locale._week.dow,s=o._locale._week.doy,f=eI(ta(),a,s),r=to(n.gg,o._a[0],f.year),i=to(n.w,f.week),null!=n.d?((c=n.d)<0||c>6)&&(d=!0):null!=n.e?(c=n.e+a,(n.e<0||n.e>6)&&(d=!0)):c=a),i<1||i>eP(r,a,s)?u(o)._overflowWeeks=!0:null!=d?u(o)._overflowWeekday=!0:(l=eN(r,i,c,a,s),o._a[0]=l.year,o._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(g=to(e._a[0],h[0]),(e._dayOfYear>ey(g)||0===e._dayOfYear)&&(u(e)._overflowDayOfYear=!0),F=eB(g,0,e._dayOfYear),e._a[1]=F.getUTCMonth(),e._a[2]=F.getUTCDate()),b=0;b<3&&null==e._a[b];++b)e._a[b]=y[b]=h[b];for(;b<7;b++)e._a[b]=y[b]=null==e._a[b]?+(2===b):e._a[b];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eB:eT).apply(null,y),p=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==p&&(u(e).weekdayMismatch=!0)}}function tr(e){if(e._f===t.ISO_8601)return void te(e);if(e._f===t.RFC_2822)return void tt(e);e._a=[],u(e).empty=!0;var o,n,r,c,a,s,l,d,f,m,b,F=""+e._i,h=F.length,p=0;for(b=(l=L(e._f,e._locale).match(T)||[]).length,a=0;a<b;a++)if(d=l[a],(s=(F.match(!i(H,d)?new RegExp(em(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,o,n,r){return t||o||n||r}))):H[d](e._strict,e._locale))||[])[0])&&((f=F.substr(0,F.indexOf(s))).length>0&&u(e).unusedInput.push(f),F=F.slice(F.indexOf(s)+s.length),p+=s.length),N[d])s?u(e).empty=!1:u(e).unusedTokens.push(d),null!=s&&i(eF,d)&&eF[d](s,e._a,e,d);else e._strict&&!s&&u(e).unusedTokens.push(d);u(e).charsLeftOver=h-p,F.length>0&&u(e).unusedInput.push(F),e._a[3]<=12&&!0===u(e).bigHour&&e._a[3]>0&&(u(e).bigHour=void 0),u(e).parsedDateParts=e._a.slice(0),u(e).meridiem=e._meridiem,e._a[3]=(o=e._locale,n=e._a[3],null==(r=e._meridiem)?n:null!=o.meridiemHour?o.meridiemHour(n,r):(null!=o.isPM&&((c=o.isPM(r))&&n<12&&(n+=12),c||12!==n||(n=0)),n)),null!==(m=u(e).era)&&(e._a[0]=e._locale.erasConvertYear(m,e._a[0])),tn(e),e1(e)}function ti(e){var o=e._i,i=e._f;return(e._locale=e._locale||e0(e._l),null===o||void 0===i&&""===o)?F({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),A(o))?new E(e1(o)):(l(o)?e._d=o:n(i)?!function(e){var t,o,n,r,i,c,a=!1,s=e._f.length;if(0===s){u(e).invalidFormat=!0,e._d=new Date(0/0);return}for(r=0;r<s;r++)i=0,c=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],tr(t),b(t)&&(c=!0),i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,a?i<n&&(n=i,o=t):(null==n||i<n||c)&&(n=i,o=t,c&&(a=!0));f(e,o||t)}(e):i?tr(e):function(e){var o=e._i;if(a(o))e._d=new Date(t.now());else if(l(o))e._d=new Date(o.valueOf());else if("string"==typeof o)!function(e){var o=e8.exec(e._i);if(null!==o){e._d=new Date(+o[1]);return}te(e),!1!==e._isValid||(delete e._isValid,tt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e);else if(n(o))e._a=d(o.slice(0),function(e){return parseInt(e,10)}),tn(e);else if(r(o)){if(!e._d){var i=j(e._i),c=void 0===i.day?i.date:i.day;e._a=d([i.year,i.month,c,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),tn(e)}}else s(o)?e._d=new Date(o):t.createFromInputFallback(e)}(e),b(e)||(e._d=null),e)}function tc(e,t,o,i,a){var s,l={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===o||!1===o)&&(i=o,o=void 0),(r(e)&&c(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=o,l._i=e,l._f=t,l._strict=i,(s=new E(e1(ti(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ta(e,t,o,n){return tc(e,t,o,n,!1)}t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ts=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:F()}),tl=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:F()});function td(e,t){var o,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ta();for(o=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](o))&&(o=t[r]);return o}var tf=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tm(e){var t=j(e),o=t.year||0,n=t.quarter||0,r=t.month||0,c=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,o,n=!1,r=tf.length;for(t in e)if(i(e,t)&&!(-1!==e$.call(tf,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[tf[o]]){if(n)return!1;parseFloat(e[tf[o]])!==eb(e[tf[o]])&&(n=!0)}return!0}(t),this._milliseconds=+f+1e3*d+6e4*l+1e3*s*3600,this._days=+a+7*c,this._months=+r+3*n+12*o,this._data={},this._locale=e0(),this._bubble()}function tu(e){return e instanceof tm}function tb(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tF(e,t){I(e,0,0,function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+O(~~(e/60),2)+t+O(~~e%60,2)})}tF("Z",":"),tF("ZZ",""),ef("Z",ea),ef("ZZ",ea),eh(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=tp(ea,e)});var th=/([\+\-]|\d\d)/gi;function tp(e,t){var o,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(o=((r[r.length-1]||[])+"").match(th)||["-",0,0])[1])+eb(o[2]))?0:"+"===o[0]?n:-n}function tg(e,o){var n,r;return o._isUTC?(n=o.clone(),r=(A(e)||l(e)?e.valueOf():ta(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),t.updateOffset(n,!1),n):ta(e).local()}function ty(e){return-Math.round(e._d.getTimezoneOffset())}function tv(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tE=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tA=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tw(e,t){var o,n,r,c,a,l,d=e,f=null;return tu(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(f=tE.exec(e))?(c="-"===f[1]?-1:1,d={y:0,d:eb(f[2])*c,h:eb(f[3])*c,m:eb(f[4])*c,s:eb(f[5])*c,ms:eb(tb(1e3*f[6]))*c}):(f=tA.exec(e))?(c="-"===f[1]?-1:1,d={y:tk(f[2],c),M:tk(f[3],c),w:tk(f[4],c),d:tk(f[5],c),h:tk(f[6],c),m:tk(f[7],c),s:tk(f[8],c)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(o=ta(d.from),n=ta(d.to),l=o.isValid()&&n.isValid()?(n=tg(n,o),o.isBefore(n)?r=tC(o,n):((r=tC(n,o)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(d={}).ms=l.milliseconds,d.M=l.months),a=new tm(d),tu(e)&&i(e,"_locale")&&(a._locale=e._locale),tu(e)&&i(e,"_isValid")&&(a._isValid=e._isValid),a}function tk(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function tC(e,t){var o={};return o.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=t-e.clone().add(o.months,"M"),o}function tD(e,t){return function(o,n){var r;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=o,o=n,n=r),t_(this,tw(o,n),e),this}}function t_(e,o,n,r){var i=o._milliseconds,c=tb(o._days),a=tb(o._months);e.isValid()&&(r=null==r||r,a&&eS(e,eA(e,"Month")+a*n),c&&ew(e,"Date",eA(e,"Date")+c*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&t.updateOffset(e,c||a))}tw.fn=tm.prototype,tw.invalid=function(){return tw(0/0)};var tS=tD(1,"add"),tx=tD(-1,"subtract");function tO(e){return"string"==typeof e||e instanceof String}function tT(e,t){if(e.date()<t.date())return-tT(t,e);var o,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return o=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+o)||0}function tB(e){var t;return void 0===e?this._locale._abbr:(null!=(t=e0(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tR=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tN(){return this._locale}function tI(e,t,o){return e<100&&e>=0?new Date(e+400,t,o)-126227808e5:new Date(e,t,o).valueOf()}function tP(e,t,o){return e<100&&e>=0?Date.UTC(e+400,t,o)-126227808e5:Date.UTC(e,t,o)}function tL(e,t){return t.erasAbbrRegex(e)}function tM(){var e,t,o,n,r,i=[],c=[],a=[],s=[],l=this.eras();for(e=0,t=l.length;e<t;++e)o=em(l[e].name),n=em(l[e].abbr),r=em(l[e].narrow),c.push(o),i.push(n),a.push(r),s.push(o),s.push(n),s.push(r);this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+c.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+a.join("|")+")","i")}function tU(e,t){I(0,[e,e.length],0,t)}function tj(e,t,o,n,r){var i;return null==e?eI(this,n,r).year:(t>(i=eP(e,n,r))&&(t=i),tG.call(this,e,t,o,n,r))}function tG(e,t,o,n,r){var i=eN(e,t,o,n,r),c=eB(i.year,0,i.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ef("N",tL),ef("NN",tL),ef("NNN",tL),ef("NNNN",function(e,t){return t.erasNameRegex(e)}),ef("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,o,n){var r=o._locale.erasParse(e,n,o._strict);r?u(o).era=r:u(o).invalidEra=e}),ef("y",er),ef("yy",er),ef("yyy",er),ef("yyyy",er),ef("yo",function(e,t){return t._eraYearOrdinalRegex||er}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,o,n){var r;o._locale._eraYearOrdinalRegex&&(r=e.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?t[0]=o._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tU("gggg","weekYear"),tU("ggggg","weekYear"),tU("GGGG","isoWeekYear"),tU("GGGGG","isoWeekYear"),ef("G",ei),ef("g",ei),ef("GG",Q,Y),ef("gg",Q,Y),ef("GGGG",eo,J),ef("gggg",eo,J),ef("GGGGG",en,X),ef("ggggg",en,X),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,n){t[n.substr(0,2)]=eb(e)}),ep(["gg","GG"],function(e,o,n,r){o[r]=t.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),ef("Q",z),eh("Q",function(e,t){t[1]=(eb(e)-1)*3}),I("D",["DD",2],"Do","date"),ef("D",Q,el),ef("DD",Q,Y),ef("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=eb(e.match(Q)[0])});var tq=eE("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ef("DDD",et),ef("DDDD",K),eh(["DDD","DDDD"],function(e,t,o){o._dayOfYear=eb(e)}),I("m",["mm",2],0,"minute"),ef("m",Q,ed),ef("mm",Q,Y),eh(["m","mm"],4);var tH=eE("Minutes",!1);I("s",["ss",2],0,"second"),ef("s",Q,ed),ef("ss",Q,Y),eh(["s","ss"],5);var t$=eE("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ef("S",et,z),ef("SS",et,Y),ef("SSS",et,K),h="SSSS";h.length<=9;h+="S")ef(h,er);function tV(e,t){t[6]=eb(("0."+e)*1e3)}for(h="S";h.length<=9;h+="S")eh(h,tV);p=eE("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var tW=E.prototype;function tz(e){return e}tW.add=tS,tW.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var a,d,f,m;if(a=arguments[0],A(a)||l(a)||tO(a)||s(a)||(f=n(d=a),m=!1,f&&(m=0===d.filter(function(e){return!s(e)&&tO(d)}).length),f&&m)||function(e){var t,o,n=r(e)&&!c(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)o=s[t],a=a||i(e,o);return n&&a}(a)||null==a)e=arguments[0],o=void 0;else(function(e){var t,o,n=r(e)&&!c(e),a=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)o=s[t],a=a||i(e,o);return n&&a})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var u=e||ta(),b=tg(u,this).startOf("day"),F=t.calendarFormat(this,b)||"sameElse",h=o&&(_(o[F])?o[F].call(this,u):o[F]);return this.format(h||this.localeData().calendar(F,this,ta(u)))},tW.clone=function(){return new E(this)},tW.diff=function(e,t,o){var n,r,i;if(!this.isValid()||!(n=tg(e,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":i=tT(this,n)/12;break;case"month":i=tT(this,n);break;case"quarter":i=tT(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return o?i:eu(i)},tW.endOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tI,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=36e5-((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":o=this._d.valueOf(),o+=6e4-(o%6e4+6e4)%6e4-1;break;case"second":o=this._d.valueOf(),o+=1e3-(o%1e3+1e3)%1e3-1}return this._d.setTime(o),t.updateOffset(this,!0),this},tW.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=P(this,e);return this.localeData().postformat(o)},tW.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ta(e).isValid())?tw({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tW.fromNow=function(e){return this.from(ta(),e)},tW.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||ta(e).isValid())?tw({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tW.toNow=function(e){return this.to(ta(),e)},tW.get=function(e){return _(this[e=U(e)])?this[e]():this},tW.invalidAt=function(){return u(this).overflow},tW.isAfter=function(e,t){var o=A(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},tW.isBefore=function(e,t){var o=A(e)?e:ta(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},tW.isBetween=function(e,t,o,n){var r=A(e)?e:ta(e),i=A(t)?t:ta(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,o):!this.isBefore(r,o))&&(")"===n[1]?this.isBefore(i,o):!this.isAfter(i,o))},tW.isSame=function(e,t){var o,n=A(e)?e:ta(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},tW.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tW.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tW.isValid=function(){return b(this)},tW.lang=tR,tW.locale=tB,tW.localeData=tN,tW.max=tl,tW.min=ts,tW.parsingFlags=function(){return f({},u(this))},tW.set=function(e,t){if("object"==typeof e){var o,n=function(e){var t,o=[];for(t in e)i(e,t)&&o.push({unit:t,priority:V[t]});return o.sort(function(e,t){return e.priority-t.priority}),o}(e=j(e)),r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(_(this[e=U(e)]))return this[e](t);return this},tW.startOf=function(e){var o,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tP:tI,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=((o+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":o=this._d.valueOf(),o-=(o%6e4+6e4)%6e4;break;case"second":o=this._d.valueOf(),o-=(o%1e3+1e3)%1e3}return this._d.setTime(o),t.updateOffset(this,!0),this},tW.subtract=tx,tW.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tW.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tW.toDate=function(){return new Date(this.valueOf())},tW.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;if(0>o.year()||o.year()>9999)return P(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(_(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(o,"Z"));return P(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tW.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,o,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",o=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+o)},"u">typeof Symbol&&null!=Symbol.for&&(tW[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tW.toJSON=function(){return this.isValid()?this.toISOString():null},tW.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tW.unix=function(){return Math.floor(this.valueOf()/1e3)},tW.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tW.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tW.eraName=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].name;return""},tW.eraNarrow=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].narrow;return""},tW.eraAbbr=function(){var e,t,o,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(o=this.clone().startOf("day").valueOf(),n[e].since<=o&&o<=n[e].until||n[e].until<=o&&o<=n[e].since)return n[e].abbr;return""},tW.eraYear=function(){var e,o,n,r,i=this.localeData().eras();for(e=0,o=i.length;e<o;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-t(i[e].since).year())*n+i[e].offset;return this.year()},tW.year=ev,tW.isLeapYear=function(){return eg(this.year())},tW.weekYear=function(e){return tj.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tW.isoWeekYear=function(e){return tj.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tW.quarter=tW.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tW.month=ex,tW.daysInMonth=function(){return ek(this.year(),this.month())},tW.week=tW.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tW.isoWeek=tW.isoWeeks=function(e){var t=eI(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tW.weeksInYear=function(){var e=this.localeData()._week;return eP(this.year(),e.dow,e.doy)},tW.weeksInWeekYear=function(){var e=this.localeData()._week;return eP(this.weekYear(),e.dow,e.doy)},tW.isoWeeksInYear=function(){return eP(this.year(),1,4)},tW.isoWeeksInISOWeekYear=function(){return eP(this.isoWeekYear(),1,4)},tW.date=tq,tW.day=tW.days=function(e){if(!this.isValid())return null!=e?this:0/0;var t,o,n=eA(this,"Day");return null==e?n:(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tW.weekday=function(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tW.isoWeekday=function(e){if(!this.isValid())return null!=e?this:0/0;if(null==e)return this.day()||7;var t,o=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?o:o-7)},tW.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tW.hour=tW.hours=eW,tW.minute=tW.minutes=tH,tW.second=tW.seconds=t$,tW.millisecond=tW.milliseconds=p,tW.utcOffset=function(e,o,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null==e)return this._isUTC?i:ty(this);if("string"==typeof e){if(null===(e=tp(ea,e)))return this}else 16>Math.abs(e)&&!n&&(e*=60);return!this._isUTC&&o&&(r=ty(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!o||this._changeInProgress?t_(this,tw(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tW.utc=function(e){return this.utcOffset(0,e)},tW.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tW.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tp(ec,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tW.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tW.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tW.isLocal=function(){return!!this.isValid()&&!this._isUTC},tW.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tW.isUtc=tv,tW.isUTC=tv,tW.zoneAbbr=function(){return this._isUTC?"UTC":""},tW.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tW.dates=k("dates accessor is deprecated. Use date instead.",tq),tW.months=k("months accessor is deprecated. Use month instead",ex),tW.years=k("years accessor is deprecated. Use year instead",ev),tW.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tW.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=ti(t))._a?(e=t._isUTC?m(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var o,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(o=0;o<n;o++)eb(e[o])!==eb(t[o])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tY=x.prototype;function tK(e,t,o,n){var r=e0(),i=m().set(n,t);return r[o](i,e)}function tJ(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tK(e,t,o,"month");var n,r=[];for(n=0;n<12;n++)r[n]=tK(e,n,o,"month");return r}function tX(e,t,o,n){"boolean"==typeof e||(o=t=e,e=!1),s(t)&&(o=t,t=void 0),t=t||"";var r,i=e0(),c=e?i._week.dow:0,a=[];if(null!=o)return tK(t,(o+c)%7,n,"day");for(r=0;r<7;r++)a[r]=tK(t,(r+c)%7,n,"day");return a}tY.calendar=function(e,t,o){var n=this._calendar[e]||this._calendar.sameElse;return _(n)?n.call(t,o):n},tY.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.match(T).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tY.invalidDate=function(){return this._invalidDate},tY.ordinal=function(e){return this._ordinal.replace("%d",e)},tY.preparse=tz,tY.postformat=tz,tY.relativeTime=function(e,t,o,n){var r=this._relativeTime[o];return _(r)?r(e,t,o,n):r.replace(/%d/i,e)},tY.pastFuture=function(e,t){var o=this._relativeTime[e>0?"future":"past"];return _(o)?o(t):o.replace(/%s/i,t)},tY.set=function(e){var t,o;for(o in e)i(e,o)&&(_(t=e[o])?this[o]=t:this["_"+o]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tY.eras=function(e,o){var n,r,i,c=this._eras||e0("en")._eras;for(n=0,r=c.length;n<r;++n)switch("string"==typeof c[n].since&&(i=t(c[n].since).startOf("day"),c[n].since=i.valueOf()),typeof c[n].until){case"undefined":c[n].until=1/0;break;case"string":i=t(c[n].until).startOf("day").valueOf(),c[n].until=i.valueOf()}return c},tY.erasParse=function(e,t,o){var n,r,i,c,a,s=this.eras();for(e=e.toUpperCase(),n=0,r=s.length;n<r;++n)if(i=s[n].name.toUpperCase(),c=s[n].abbr.toUpperCase(),a=s[n].narrow.toUpperCase(),o)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[n];break;case"NNNN":if(i===e)return s[n];break;case"NNNNN":if(a===e)return s[n]}else if([i,c,a].indexOf(e)>=0)return s[n]},tY.erasConvertYear=function(e,o){var n=e.since<=e.until?1:-1;return void 0===o?t(e.since).year():t(e.since).year()+(o-e.offset)*n},tY.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tM.call(this),e?this._erasAbbrRegex:this._erasRegex},tY.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tM.call(this),e?this._erasNameRegex:this._erasRegex},tY.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tM.call(this),e?this._erasNarrowRegex:this._erasRegex},tY.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eD).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tY.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eD.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tY.monthsParse=function(e,t,o){var n,r,i;if(this._monthsParseExact)return e_.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=m([2e3,n]),o&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),o||this._monthsParse[n]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(i.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(o&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!o&&this._monthsParse[n].test(e))return n}},tY.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eO.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=es),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tY.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eO.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=es),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tY.week=function(e){return eI(e,this._week.dow,this._week.doy).week},tY.firstDayOfYear=function(){return this._week.doy},tY.firstDayOfWeek=function(){return this._week.dow},tY.weekdays=function(e,t){var o=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eL(o,this._week.dow):e?o[e.day()]:o},tY.weekdaysMin=function(e){return!0===e?eL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tY.weekdaysShort=function(e){return!0===e?eL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tY.weekdaysParse=function(e,t,o){var n,r,i;if(this._weekdaysParseExact)return eU.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=m([2e3,1]).day(n),o&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(i.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(o&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(o&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;else if(!o&&this._weekdaysParse[n].test(e))return n}},tY.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=es),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tY.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=es),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tY.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||ej.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=es),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tY.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tY.meridiem=function(e,t,o){return e>11?o?"pm":"PM":o?"am":"AM"},eQ("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,o=1===eb(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+o}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",eQ),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",e0);var tQ=Math.abs;function tZ(e,t,o,n){var r=tw(t,o);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function t0(e){return e<0?Math.floor(e):Math.ceil(e)}function t1(e){return 4800*e/146097}function t2(e){return 146097*e/4800}function t3(e){return function(){return this.as(e)}}var t5=t3("ms"),t4=t3("s"),t6=t3("m"),t8=t3("h"),t9=t3("d"),t7=t3("w"),oe=t3("M"),ot=t3("Q"),oo=t3("y");function on(e){return function(){return this.isValid()?this._data[e]:0/0}}var or=on("milliseconds"),oi=on("seconds"),oc=on("minutes"),oa=on("hours"),os=on("days"),ol=on("months"),od=on("years"),of=Math.round,om={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ou(e,t,o,n,r){return r.relativeTime(t||1,!!o,e,n)}var ob=Math.abs;function oF(e){return(e>0)-(e<0)||+e}function oh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o,n,r,i,c,a,s=ob(this._milliseconds)/1e3,l=ob(this._days),d=ob(this._months),f=this.asSeconds();return f?(e=eu(s/60),t=eu(e/60),s%=60,e%=60,o=eu(d/12),d%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=f<0?"-":"",i=oF(this._months)!==oF(f)?"-":"",c=oF(this._days)!==oF(f)?"-":"",a=oF(this._milliseconds)!==oF(f)?"-":"",r+"P"+(o?i+o+"Y":"")+(d?i+d+"M":"")+(l?c+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"}var op=tm.prototype;return op.isValid=function(){return this._isValid},op.abs=function(){var e=this._data;return this._milliseconds=tQ(this._milliseconds),this._days=tQ(this._days),this._months=tQ(this._months),e.milliseconds=tQ(e.milliseconds),e.seconds=tQ(e.seconds),e.minutes=tQ(e.minutes),e.hours=tQ(e.hours),e.months=tQ(e.months),e.years=tQ(e.years),this},op.add=function(e,t){return tZ(this,e,t,1)},op.subtract=function(e,t){return tZ(this,e,t,-1)},op.as=function(e){if(!this.isValid())return 0/0;var t,o,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,o=this._months+t1(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(t2(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},op.asMilliseconds=t5,op.asSeconds=t4,op.asMinutes=t6,op.asHours=t8,op.asDays=t9,op.asWeeks=t7,op.asMonths=oe,op.asQuarters=ot,op.asYears=oo,op.valueOf=t5,op._bubble=function(){var e,t,o,n,r,i=this._milliseconds,c=this._days,a=this._months,s=this._data;return i>=0&&c>=0&&a>=0||i<=0&&c<=0&&a<=0||(i+=864e5*t0(t2(a)+c),c=0,a=0),s.milliseconds=i%1e3,s.seconds=(e=eu(i/1e3))%60,s.minutes=(t=eu(e/60))%60,s.hours=(o=eu(t/60))%24,c+=eu(o/24),a+=r=eu(t1(c)),c-=t0(t2(r)),n=eu(a/12),a%=12,s.days=c,s.months=a,s.years=n,this},op.clone=function(){return tw(this)},op.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():0/0},op.milliseconds=or,op.seconds=oi,op.minutes=oc,op.hours=oa,op.days=os,op.weeks=function(){return eu(this.days()/7)},op.months=ol,op.years=od,op.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var o,n,r,i,c,a,s,l,d,f,m,u,b,F=!1,h=om;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(F=e),"object"==typeof t&&(h=Object.assign({},om,t),null!=t.s&&null==t.ss&&(h.ss=t.s-1)),u=this.localeData(),o=!F,n=h,r=tw(this).abs(),i=of(r.as("s")),c=of(r.as("m")),a=of(r.as("h")),s=of(r.as("d")),l=of(r.as("M")),d=of(r.as("w")),f=of(r.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||c<=1&&["m"]||c<n.m&&["mm",c]||a<=1&&["h"]||a<n.h&&["hh",a]||s<=1&&["d"]||s<n.d&&["dd",s],null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),(m=m||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=o,m[3]=+this>0,m[4]=u,b=ou.apply(null,m),F&&(b=u.pastFuture(+this,b)),u.postformat(b)},op.toISOString=oh,op.toString=oh,op.toJSON=oh,op.locale=tB,op.localeData=tN,op.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oh),op.lang=tR,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ef("x",ei),ef("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,o){o._d=new Date(eb(e))}),t.version="2.30.1",G=ta,t.fn=tW,t.min=function(){var e=[].slice.call(arguments,0);return td("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return td("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=m,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return tJ(e,t,"months")},t.isDate=l,t.locale=eQ,t.invalid=F,t.duration=tw,t.isMoment=A,t.weekdays=function(e,t,o){return tX(e,t,o,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=e0,t.isDuration=tu,t.monthsShort=function(e,t){return tJ(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return tX(e,t,o,"weekdaysMin")},t.defineLocale=eZ,t.updateLocale=function(e,t){if(null!=t){var o,n,r=ez;null!=eY[e]&&null!=eY[e].parentLocale?eY[e].set(S(eY[e]._config,t)):(null!=(n=eX(e))&&(r=n._config),t=S(r,t),null==n&&(t.abbr=e),(o=new x(t)).parentLocale=eY[e],eY[e]=o),eQ(e)}else null!=eY[e]&&(null!=eY[e].parentLocale?(eY[e]=eY[e].parentLocale,e===eQ()&&eQ(e)):null!=eY[e]&&delete eY[e]);return eY[e]},t.locales=function(){return W(eY)},t.weekdaysShort=function(e,t,o){return tX(e,t,o,"weekdaysShort")},t.normalizeUnits=U,t.relativeTimeRounding=function(e){return void 0===e?of:"function"==typeof e&&(of=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==om[e]&&(void 0===t?om[e]:(om[e]=t,"s"===e&&(om.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"},t.prototype=tW,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},3118(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3118,e.exports=t},3109(e,t,o){var n="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&"function"==typeof r.get?r.get:null,c=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&s&&"function"==typeof s.get?s.get:null,d=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,m="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,F=Object.prototype.toString,h=Function.prototype.toString,p=String.prototype.match,g=String.prototype.slice,y=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,A=RegExp.prototype.test,w=Array.prototype.concat,k=Array.prototype.join,C=Array.prototype.slice,D=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(1/0===e||-1/0===e||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-D(-e):D(e);if(n!==e){var r=String(n),i=g.call(t,r.length+1);return y.call(r,o,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,o,"$&_")}var I=o(6550),P=I.custom,L=V(P)?P:null,M={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,o){var n=M[o.quoteStyle||t];return n+e+n}function G(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function q(e){return"[object Array]"===Y(e)&&G(e)}function H(e){return"[object RegExp]"===Y(e)&&G(e)}function V(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,a){var s,F,v,A,D,S=n||{};if(z(S,"quoteStyle")&&!z(M,S.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(z(S,"maxStringLength")&&("number"==typeof S.maxStringLength?S.maxStringLength<0&&1/0!==S.maxStringLength:null!==S.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=!z(S,"customInspect")||S.customInspect;if("boolean"!=typeof P&&"symbol"!==P)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(S,"indent")&&null!==S.indent&&" "!==S.indent&&!(parseInt(S.indent,10)===S.indent&&S.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(S,"numericSeparator")&&"boolean"!=typeof S.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var W=S.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,o){if(t.length>o.maxStringLength){var n=t.length-o.maxStringLength;return e(g.call(t,0,o.maxStringLength),o)+("... "+n)+" more character"+(n>1?"s":"")}var r=U[o.quoteStyle||"single"];return r.lastIndex=0,j(y.call(y.call(t,r,"\\$1"),/[\x00-\x1f]/g,J),"single",o)}(t,S);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var eo=String(t);return W?N(t,eo):eo}if("bigint"==typeof t){var en=String(t)+"n";return W?N(t,en):en}var er=void 0===S.depth?5:S.depth;if(void 0===r&&(r=0),r>=er&&er>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var ei=function(e,t){var o;if(" "===e.indent)o=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;o=k.call(Array(e.indent+1)," ")}return{base:o,prev:k.call(Array(t+1),o)}}(S,r);if(void 0===a)a=[];else if(K(a,t)>=0)return"[Circular]";function ec(t,o,n){if(o&&(a=C.call(a)).push(o),n){var i={depth:S.depth};return z(S,"quoteStyle")&&(i.quoteStyle=S.quoteStyle),e(t,i,r+1,a)}return e(t,S,r+1,a)}if("function"==typeof t&&!H(t)){var ea=function(e){if(e.name)return e.name;var t=p.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=et(t,ec);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(es.length>0?" { "+k.call(es,", ")+" }":"")}if(V(t)){var el=O?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||O?el:X(el)}if((ed=t)&&"object"==typeof ed&&("u">typeof HTMLElement&&ed instanceof HTMLElement||"string"==typeof ed.nodeName&&"function"==typeof ed.getAttribute)){for(var ed,ef,em="<"+E.call(String(t.nodeName)),eu=t.attributes||[],eb=0;eb<eu.length;eb++){em+=" "+eu[eb].name+"="+j((ef=eu[eb].value,y.call(String(ef),/"/g,"&quot;")),"double",S)}return em+=">",t.childNodes&&t.childNodes.length&&(em+="..."),em+="</"+E.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var eF=et(t,ec);return ei&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(eF)?"["+ee(eF,ei)+"]":"[ "+k.call(eF,", ")+" ]"}if("[object Error]"===Y(s=t)&&G(s)){var eh=et(t,ec);return"cause"in Error.prototype||!("cause"in t)||B.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(eh,", ")+" }":"{ ["+String(t)+"] "+k.call(w.call("[cause]: "+ec(t.cause),eh),", ")+" }"}if("object"==typeof t&&P){if(L&&"function"==typeof t[L]&&I)return I(t,{depth:er-r});else if("symbol"!==P&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ep=[];return c&&c.call(t,function(e,o){ep.push(ec(o,t,!0)+" => "+ec(e,t))}),Z("Map",i.call(t),ep,ei)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return d&&d.call(t,function(e){eg.push(ec(e,t))}),Z("Set",l.call(t),eg,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{m.call(e,m)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{m.call(e,m);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{return u.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===Y(F=t)&&G(F))return X(ec(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return X(ec(_.call(t)));if("[object Boolean]"===Y(v=t)&&G(v))return X(b.call(t));if("[object String]"===Y(A=t)&&G(A))return X(ec(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==o.g&&t===o.g)return"{ [object globalThis] }";if(!("[object Date]"===Y(D=t)&&G(D))&&!H(t)){var ey=et(t,ec),ev=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,eE=t instanceof Object?"":"null prototype",eA=!ev&&T&&Object(t)===t&&T in t?g.call(Y(t),8,-1):eE?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eA||eE?"["+k.call(w.call([],eA||[],eE||[]),": ")+"] ":"");return 0===ey.length?ew+"{}":ei?ew+"{"+ee(ey,ei)+"}":ew+"{ "+k.call(ey,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return W.call(e,t)}function Y(e){return F.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,n=e.length;o<n;o++)if(e[o]===t)return o;return -1}function J(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Z(e,t,o,n){return e+" ("+t+") {"+(n?ee(o,n):k.call(o,", "))+"}"}function ee(e,t){if(0===e.length)return"";var o="\n"+t.prev+t.base;return o+k.call(e,","+o)+"\n"+t.prev}function et(e,t){var o,n=q(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=z(e,i)?t(e[i],e):""}var c="function"==typeof S?S(e):[];if(O){o={};for(var a=0;a<c.length;a++)o["$"+c[a]]=c[a]}for(var s in e)if(z(e,s)&&(!n||String(Number(s))!==s||!(s<e.length)))if(O&&o["$"+s]instanceof Symbol)continue;else A.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e));if("function"==typeof S)for(var l=0;l<c.length;l++)B.call(e,c[l])&&r.push("["+t(c[l])+"]: "+t(e[c[l]],e));return r}},4461(e,t,o){e=o.nmd(e),(function(){"use strict";var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=n[typeof t]&&t,c=n.object&&e&&!e.nodeType&&e,a=i&&c&&"object"==typeof o.g&&o.g;a&&(a.global===a||a.window===a||a.self===a)&&(r=a);var s=/\bOpera/,l=Object.prototype,d=l.hasOwnProperty,f=l.toString;function m(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function u(e){return e=g(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:m(e)}function b(e,t){for(var o in e)d.call(e,o)&&t(e[o],o,e)}function F(e){return null==e?m(e):f.call(e).slice(8,-1)}function h(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function p(e,t){var o=null,n=function(n,r){o=t(o,n,r,e)},r=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=0x1fffffffffffff)for(;++r<i;)n(e[r],r);else b(e,n);return o}function g(e){return String(e).replace(/^ +| +$/g,"")}function y(e){var t,o,n,i,c,a=r,l=e&&"object"==typeof e&&"String"!=F(e);l&&(a=e,e=null);var d=a.navigator||{},m=d.userAgent||"";e||(e=m);var v=l?!!d.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(f.toString()),E="Object",A=l&&a.java?"JavaPackage":F(a.java),w=/\bJava/.test(A)&&a.java,k=w&&F(a.environment)==(l?E:"Environment"),C=w?"a":"α",D=w?"b":"β",_=a.document||{},S=a.operamini||a.opera,x=s.test(x=l&&S?S["[[Class]]"]:F(S))?x:S=null,O=e,T=[],B=null,R=e==m,N=R&&S&&"function"==typeof S.version&&S.version(),I=p([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(t,o){return t||RegExp("\\b"+(o.pattern||h(o))+"\\b","i").exec(e)&&(o.label||o)}),P=p(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(t,o){return t||RegExp("\\b"+(o.pattern||h(o))+"\\b","i").exec(e)&&(o.label||o)}),L=j([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),M=p({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(t,o,n){return t||(o[L]||o[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+h(n)+"(?:\\b|\\w*\\d)","i").exec(e))&&n}),U=p(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(t,o){var n,r,i,c=o.pattern||h(o);return!t&&(t=RegExp("\\b"+c+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t,r=o.label||o,i={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},c&&r&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(i=i[/[\d.]+$/.exec(n)])&&(n="Windows "+i),n=String(n),c&&r&&(n=n.replace(RegExp(c,"i"),r)),t=n=u(n.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),t});function j(t){return p(t,function(t,o){var n=o.pattern||h(o);return!t&&(t=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(o.label&&!RegExp(n,"i").test(o.label)?o.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),o=o.label||o,t=u(t[0].replace(RegExp(n,"i"),o).replace(RegExp("; *(?:"+o+"[_-])?","i")," ").replace(RegExp("("+o+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function G(t){return p(t,function(t,o){return t||(RegExp(o+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}if(I&&(I=[I]),/\bAndroid\b/.test(U)&&!L&&(i=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=g(i[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),M&&!L?L=j([M]):M&&L&&(L=L.replace(RegExp("^("+h(M)+")[-_.\\s]","i"),M+" ").replace(RegExp("^("+h(M)+")[-_.]?(\\w)","i"),M+" $2")),(i=/\bGoogle TV\b/.exec(L))&&(L=i[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(e)&&T.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(e)?(M=(i=y(e.replace(/like iPhone OS/,""))).manufacturer,L=i.product):/^iP/.test(L)?(P||(P="Safari"),U="iOS"+((i=/ OS ([\d_]+)/i.exec(e))?" "+i[1].replace(/_/g,"."):"")):"Konqueror"==P&&/^Linux\b/i.test(U)?U="Kubuntu":M&&"Google"!=M&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(P)&&/\bVersion\//i.test(e)?(P="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==P?(/\bMobi/i.test(e)||(U="Android",T.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&T.unshift("accelerated")):"UC Browser"==P&&/\bUCWEB\b/.test(e)?T.push("speed mode"):"PaleMoon"==P&&(i=/\bFirefox\/([\d.]+)\b/.exec(e))?T.push("identifying as Firefox "+i[1]):"Firefox"==P&&(i=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=i[1])):!P||(i=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(i+"/")+8))&&(P=null),(i=L||M||U)&&(L||M||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:i)+" Browser")):"Electron"==P&&(i=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&T.push("Chromium "+i),N||(N=G(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",h(P),"(?:Firefox|Minefield|NetFront)"])),(i="iCab"==I&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(P)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(I)&&"WebKit"||!I&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==I&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(I=[i]),"IE"==P&&(i=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(P+=" Mobile",U="Windows Phone "+(/\+$/.test(i)?i:i+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(P="IE Mobile",U="Windows Phone 8.x",T.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=P&&"Trident"==I&&(i=/\brv:([\d.]+)/.exec(e))&&(P&&T.push("identifying as "+P+(N?" "+N:"")),P="IE",N=i[1]),R){if(o="global",n=null!=(t=a)?typeof t[o]:"number",/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!t[o])F(i=a.runtime)==(l?E:"ScriptBridgingProxyObject")?(P="Adobe AIR",U=i.flash.system.Capabilities.os):F(i=a.phantom)==(l?E:"RuntimeObject")?(P="PhantomJS",N=(i=i.version||null)&&i.major+"."+i.minor+"."+i.patch):"number"==typeof _.documentMode&&(i=/\bTrident\/(\d+)/i.exec(e))?(N=[N,_.documentMode],(i=+i[1]+4)!=N[1]&&(T.push("IE "+N[1]+" mode"),I&&(I[1]=""),N[1]=i),N="IE"==P?String(N[1].toFixed(1)):N[0]):"number"==typeof _.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(T.push("masking as "+P+" "+N),P="IE",N="11.0",I=["Trident"],U="Windows");else if(w&&(O=(i=w.lang.System).getProperty("os.arch"),U=U||i.getProperty("os.name")+" "+i.getProperty("os.version")),k){try{N=a.require("ringo/engine").version.join("."),P="RingoJS"}catch(e){(i=a.system)&&i.global.system==a.system&&(P="Narwhal",U||(U=i[0].os||null))}P||(P="Rhino")}else"object"==typeof a.process&&!a.process.browser&&(i=a.process)&&("object"==typeof i.versions&&("string"==typeof i.versions.electron?(T.push("Node "+i.versions.node),P="Electron",N=i.versions.electron):"string"==typeof i.versions.nw&&(T.push("Chromium "+N,"Node "+i.versions.node),P="NW.js",N=i.versions.nw)),P||(P="Node.js",O=i.arch,U=i.platform,N=(N=/[\d.]+/.exec(i.version))?N[0]:null));U=U&&u(U)}if(N&&(i=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(R&&d.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(B=/b/i.test(i)?"beta":"alpha",N=N.replace(RegExp(i+"\\+?$"),"")+("beta"==B?D:C)+(/\d+\+?/.exec(i)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))P="Firefox Mobile";else if("Maxthon"==P&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&T.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(P)||P&&!L&&!/Browser|Mobi/.test(P))&&("Windows CE"==U||/Mobi/i.test(e)))P+=" Mobile";else if("IE"==P&&R)try{null===a.external&&T.unshift("platform preview")}catch(e){T.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(i=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||N)?(U=((i=[i,/BB10/.test(e)])[1]?(L=null,M="BlackBerry"):"Device Software")+" "+i[0],N=null):this!=b&&"Wii"!=L&&(R&&S||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==P&&(U&&!/^Win/.test(U)&&N>5.5||/\bWindows XP\b/.test(U)&&N>8||8==N&&!/\bTrident\b/.test(e)))&&!s.test(i=y.call(b,e.replace(s,"")+";"))&&i.name&&(i="ing as "+i.name+((i=i.version)?" "+i:""),s.test(P)?(/\bIE\b/.test(i)&&"Mac OS"==U&&(U=null),i="identify"+i):(i="mask"+i,P=x?u(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(i)&&(U=null),R||(N=null)),I=["Presto"],T.push(i));(i=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(i=[parseFloat(i.replace(/\.(\d)$/,".0$1")),i],"Safari"==P&&"+"==i[1].slice(-1)?(P="WebKit Nightly",B="alpha",N=i[1].slice(0,-1)):(N==i[1]||N==(i[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1]))&&(N=null),i[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==i[0]&&537.36==i[2]&&parseFloat(i[1])>=28&&"WebKit"==I&&(I=["Blink"]),R&&(v||i[1])?(I&&(I[1]="like Chrome"),i=i[1]||((i=i[0])<530?1:i<532?2:i<532.05?3:i<533?4:i<534.03?5:i<534.07?6:i<534.1?7:i<534.13?8:i<534.16?9:i<534.24?10:i<534.3?11:i<535.01?12:i<535.02?"13+":i<535.07?15:i<535.11?16:i<535.19?17:i<536.05?18:i<536.1?19:i<537.01?20:i<537.11?"21+":i<537.13?23:i<537.18?24:i<537.24?25:i<537.36?26:"Blink"!=I?"27":"28")):(I&&(I[1]="like Safari"),i=(i=i[0])<400?1:i<500?2:i<526?3:i<533?4:i<534?"4+":i<535?5:i<537?6:i<538?7:i<601?8:i<602?9:i<604?10:i<606?11:i<608?12:"12"),I&&(I[1]+=" "+(i+="number"==typeof i?".x":/[.+]/.test(i)?"":"+")),"Safari"==P&&(!N||parseInt(N)>45)?N=i:"Chrome"==P&&/\bHeadlessChrome/i.test(e)&&T.unshift("headless")),"Opera"==P&&(i=/\bzbov|zvav$/.exec(U))?(P+=" ",T.unshift("desktop mode"),"zvav"==i?(P+="Mini",N=null):P+="Mobile",U=U.replace(RegExp(" *"+i+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(I&&I[1])?(T.unshift("desktop mode"),P="Chrome Mobile",N=null,/\bOS X\b/.test(U)?(M="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(P)&&!N&&(N=G("Chrome")),N&&0==N.indexOf(i=/[\d.]+$/.exec(U))&&e.indexOf("/"+i+"-")>-1&&(U=g(U.replace(i,""))),U&&-1!=U.indexOf(P)&&!RegExp(P+" OS").test(U)&&(U=U.replace(RegExp(" *"+h(P)+" *"),"")),I&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(U)&&/\bSafari\b/.test(I[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(P)&&I[1])&&(i=I[I.length-1])&&T.push(i),T.length&&(T=["("+T.join("; ")+")"]),M&&L&&0>L.indexOf(M)&&T.push("on "+M),L&&T.push((/^on /.test(T[T.length-1])?"":"on ")+L),U&&(c=(i=/ ([\d.+]+)$/.exec(U))&&"/"==U.charAt(U.length-i[0].length-1),U={architecture:32,family:i&&!c?U.replace(i[0],""):U,version:i?i[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(i=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(O))&&!/\bi686\b/i.test(O)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+i),"")),P&&(/\bWOW64\b/i.test(e)||R&&/\w(?:86|32)$/.test(d.cpuClass||d.platform)&&!/\bWin64; x64\b/i.test(e))&&T.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==P&&parseFloat(N)>=39&&(U.architecture=64),e||(e=null);var q={};return q.description=e,q.layout=I&&I[0],q.manufacturer=M,q.name=P,q.prerelease=B,q.product=L,q.ua=e,q.version=P&&N,q.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},q.parse=y,q.toString=function(){return this.description||""},q.version&&T.unshift(N),q.name&&T.unshift(P),U&&P&&!(U==String(U).split(" ")[0]&&(U==P.split(" ")[0]||L))&&T.push(L?"("+U+")":"on "+U),T.length&&(q.description=T.join(" ")),q}var v=y();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(r.platform=v,define(function(){return v})):i&&c?b(v,function(e,t){i[t]=e}):r.platform=v}).call(this)},5539(e){"use strict";var t=String.prototype.replace,o=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8183(e,t,o){"use strict";var n=o(6334),r=o(4816);e.exports={formats:o(5539),parse:r,stringify:n}},4816(e,t,o){"use strict";var n=o(1954),r=Object.prototype.hasOwnProperty,i=Array.isArray,c={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e,t,o){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,r=e.indexOf(",");r>-1;){if((n+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");r=e.indexOf(",",r+1)}return e.split(",")}if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},s=function(e,t){var o={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=1/0===t.parameterLimit?void 0:t.parameterLimit,d=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&d.length>l)throw RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var f=-1,m=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?m="utf-8":"utf8=%26%2310003%3B"===d[u]&&(m="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var u,b,F,h=d[u],p=h.indexOf("]="),g=-1===p?h.indexOf("="):p+1;if(-1===g?(b=t.decoder(h,c.decoder,m,"key"),F=t.strictNullHandling?null:""):null!==(b=t.decoder(h.slice(0,g),c.decoder,m,"key"))&&(F=n.maybeMap(a(h.slice(g+1),t,i(o[b])?o[b].length:0),function(e){return t.decoder(e,c.decoder,m,"value")})),F&&t.interpretNumericEntities&&"iso-8859-1"===m&&(F=String(F).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),h.indexOf("[]=")>-1&&(F=i(F)?[F]:F),t.comma&&i(F)&&F.length>t.arrayLimit&&(F=n.combine([],F,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==b){var y=r.call(o,b);y&&("combine"===t.duplicates||h.indexOf("[]=")>-1)?o[b]=n.combine(o[b],F,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):y&&"last"!==t.duplicates||(o[b]=F)}}return o},l=function(e,t,o,r){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var c=e.slice(0,-1).join("");i=Array.isArray(t)&&t[c]?t[c].length:0}for(var s=r?t:a(t,o,i),l=e.length-1;l>=0;--l){var d,f=e[l];if("[]"===f&&o.parseArrays)d=n.isOverflow(s)?s:o.allowEmptyArrays&&(""===s||o.strictNullHandling&&null===s)?[]:n.combine([],s,o.arrayLimit,o.plainObjects,o.throwOnLimitExceeded);else{d=o.plainObjects?{__proto__:null}:{};var m="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,u=o.decodeDotInKeys?m.replace(/%2E/g,"."):m,b=parseInt(u,10),F=!isNaN(b)&&f!==u&&String(b)===u&&b>=0&&o.parseArrays;if(o.parseArrays||""!==u)if(F&&b<o.arrayLimit)(d=[])[b]=s;else if(F&&o.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");else F?(d[b]=s,n.markOverflow(d,b)):"__proto__"!==u&&(d[u]=s);else d={0:s}}s=d}return s},d=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],i=o.indexOf("["),c=i>=0?o.slice(0,i):o;if(c){if(!t.plainObjects&&r.call(Object.prototype,c)&&!t.allowPrototypes)return;n[n.length]=c}for(var a=o.length,s=i,l=0;s>=0&&l<t.depth;){for(var d=1,f=s+1,m=-1;f<a&&m<0;){var u=o.charCodeAt(f);91===u?d+=1:93===u&&0==(d-=1)&&(m=f),f+=1}if(m<0)return n[n.length]="["+o.slice(s)+"]",n;var b=o.slice(s,m+1),F=b.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,F)&&!t.allowPrototypes)return;n[n.length]=b,l+=1,s=o.indexOf("[",m+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(s)+"]"}return n},f=function(e,t,o,n){if(e){var r=d(e,o);if(r)return l(r,t,o,n)}},m=function(e){if(!e)return c;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?c.charset:e.charset,o=void 0===e.duplicates?c.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||c.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:c.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:c.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:c.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:c.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:c.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:c.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:c.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:c.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:c.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:c.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:c.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:c.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:c.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:c.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:c.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:c.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var o=m(t);if(""===e||null==e)return o.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?s(e,o):e,i=o.plainObjects?{__proto__:null}:{},c=Object.keys(r),a=0;a<c.length;++a){var l=c[a],d=f(l,r[l],o,"string"==typeof e);i=n.merge(i,d,o)}return!0===o.allowSparse?i:n.compact(i)}},6334(e,t,o){"use strict";var n=o(6278),r=o(1954),i=o(5539),c=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,d=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,m=i.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:i.formatters[m],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},b={},F=function e(t,o,i,c,a,l,f,m,F,h,p,g,y,v,E,A,w,k,C,D){var _,S,x=t;if(D>C)throw RangeError("Input depth exceeded depth option of "+C);for(var O=k,T=0,B=!1;void 0!==(O=O.get(b))&&!B;){var R=O.get(t);if(T+=1,void 0!==R)if(R===T)throw RangeError("Cyclic object value");else B=!0;void 0===O.get(b)&&(T=0)}if((x="function"==typeof h?h(o,x):x)instanceof Date?x=y(x):"comma"===i&&s(x)&&(x=r.maybeMap(x,function(e){return e instanceof Date?y(e):e})),null===x){if(l)return E(F&&!A?F(o,u.encoder,w,"key",v):o);x=""}if("string"==typeof(_=x)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||r.isBuffer(x))return F?[E(A?o:F(o,u.encoder,w,"key",v))+"="+E(F(x,u.encoder,w,"value",v))]:[E(o)+"="+E(String(x))];var N=[];if(void 0===x)return N;if("comma"===i&&s(x))A&&F&&(x=r.maybeMap(x,function(e){return null==e?e:F(e)})),S=[{value:x.length>0?x.join(",")||null:void 0}];else if(s(h))S=h;else{var I=Object.keys(x);S=p?I.sort(p):I}var P=m?String(o).replace(/\./g,"%2E"):String(o),L=c&&s(x)&&1===x.length?P+"[]":P;if(a&&s(x)&&0===x.length&&0===Object.keys(x).length)return L+"[]";for(var M=0;M<S.length;++M){var U=S[M],j="object"==typeof U&&U&&void 0!==U.value?U.value:x[U];if(!f||null!==j){var G=g&&m?String(U).replace(/\./g,"%2E"):String(U),q=s(x)?"function"==typeof i?i(L,G):L:L+(g?"."+G:"["+G+"]");k.set(t,T);var H=n();H.set(b,k),d(N,e(j,q,i,c,a,l,f,m,"comma"===i&&A&&s(x)?null:F,h,p,g,y,v,E,A,w,H,C,D+1))}}return N},h=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,o=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!c.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],l=u.filter;if(("function"==typeof e.filter||s(e.filter))&&(l=e.filter),t=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:u.depth,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:l,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}};e.exports=function(e,t){var o,r=e,i=h(t);"function"==typeof i.filter?r=(0,i.filter)("",r):s(i.filter)&&(o=i.filter);var c=[];if("object"!=typeof r||null===r)return"";var l=a[i.arrayFormat],f="comma"===l&&i.commaRoundTrip;o||(o=Object.keys(r)),i.sort&&o.sort(i.sort);for(var m=n(),u=0;u<o.length;++u){var b=o[u];if(null!=b){var p=r[b];i.skipNulls&&null===p||d(c,F(p,i.encodeDotInKeys?String(b).replace(/\./g,"%2E"):String(b),l,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,m,i.depth,0))}}var g=c.join(i.delimiter),y=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?y+="utf8=%26%2310003%3B"+i.delimiter:y+="utf8=%E2%9C%93"+i.delimiter),g.length>0?y+g:""}},1954(e,t,o){"use strict";var n=o(5539),r=o(6278),i=o(9997),c=Object.prototype.hasOwnProperty,a=Array.isArray,s=r(),l=function(e,t){return s.set(e,t),e},d=function(e){return s.has(e)},f=function(e){return s.get(e)},m=function(e,t){s.set(e,t)},u=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),b=function(e){for(;e.length>1;){var t=e.pop(),o=t.obj[t.prop];if(a(o)){for(var n=[],r=0;r<o.length;++r)void 0!==o[r]&&(n[n.length]=o[r]);t.obj[t.prop]=n}}},F=function(e,t){for(var o=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(o[n]=e[n]);return o},h=function(e,t,o){"__proto__"===t&&i?i(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o};e.exports={arrayToObject:F,assign:function(e,t){return Object.keys(t).reduce(function(e,o){return h(e,o,t[o]),e},e)},combine:function(e,t,o,n,r){if(d(e)){if(r)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");for(var i=a(t)?t:[t],c=f(e),s=0;s<i.length;++s)e[c+=1]=i[s];return m(e,c),e}var u=[].concat(e,t);if(u.length>o){if(r)throw RangeError("Array limit exceeded. Only "+o+" element"+(1===o?"":"s")+" allowed in an array.");return l(F(u,{plainObjects:n}),u.length-1)}return u},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],o=r(),n=0;n<t.length;++n)for(var i=t[n],c=i.obj[i.prop],a=Object.keys(c),s=0;s<a.length;++s){var l=a[s],d=c[l];"object"!=typeof d||null===d||o.has(d)||(t[t.length]={obj:c,prop:l},o.set(d,!0))}return b(t),e},decode:function(e,t,o){var n=e.replace(/\+/g," ");if("iso-8859-1"===o)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,o,r,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===o)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",s=0;s<c.length;s+=1024){var l=c.length>=1024?c.slice(s,s+1024):c;if(s+1024<c.length){var d=l.charCodeAt(l.length-1);d>=55296&&d<=56319&&(l=l.slice(0,-1),s-=1)}for(var f=[],m=0;m<l.length;++m){var b=l.charCodeAt(m);if(45===b||46===b||95===b||126===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||i===n.RFC1738&&(40===b||41===b)){f[f.length]=l.charAt(m);continue}if(b<128){f[f.length]=u[b];continue}if(b<2048){f[f.length]=u[192|b>>6]+u[128|63&b];continue}if(b<55296||b>=57344){f[f.length]=u[224|b>>12]+u[128|b>>6&63]+u[128|63&b];continue}m+=1,b=65536+((1023&b)<<10|1023&l.charCodeAt(m)),f[f.length]=u[240|b>>18]+u[128|b>>12&63]+u[128|b>>6&63]+u[128|63&b]}a+=f.join("")}return a},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:d,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(a(e)){for(var o=[],n=0;n<e.length;n+=1)o[o.length]=t(e[n]);return o}return t(e)},merge:function e(t,o,n){if(!o)return t;if("object"!=typeof o&&"function"!=typeof o){if(a(t)){var r=t.length;if(n&&"number"==typeof n.arrayLimit&&r>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(F(t.concat(o),n),r)}t[r]=o}else if(!t||"object"!=typeof t)return[t,o];else if(d(t)){var i=f(t)+1;t[i]=o,m(t,i)}else{if(n&&n.strictMerge)return[t,o];(n&&(n.plainObjects||n.allowPrototypes)||!c.call(Object.prototype,o))&&(t[o]=!0)}return t}if(!t||"object"!=typeof t){if(d(o)){for(var s=Object.keys(o),u=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},b=0;b<s.length;b++)u[parseInt(s[b],10)+1]=o[s[b]];return l(u,f(o)+1)}var p=[t].concat(o);if(n&&"number"==typeof n.arrayLimit&&p.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(F(p,n),p.length-1)}return p}var g=t;if(a(t)&&!a(o)&&(g=F(t,n)),a(t)&&a(o)){if(o.forEach(function(o,r){if(c.call(t,r)){var i=t[r];i&&"object"==typeof i&&o&&"object"==typeof o?t[r]=e(i,o,n):t[t.length]=o}else t[r]=o}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(F(t,n),t.length-1)}return t}return Object.keys(o).reduce(function(t,r){var i=o[r];if(c.call(t,r)?h(t,r,e(t[r],i,n)):h(t,r,i),d(o)&&!d(t)&&l(t,f(o)),d(t)){var a=parseInt(r,10);String(a)===r&&a>=0&&a>f(t)&&m(t,a)}return t},g)}}},6521(e,t,o){"use strict";var n=o(3109),r=o(6757),i=function(e,t,o){for(var n,r=e;null!=(n=r.next);r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},c=function(e,t){if(e){var o=i(e,t);return o&&o.value}},a=function(e,t,o){var n=i(e,t);n?n.value=o:e.next={key:t,next:e.next,value:o}},s=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){var o=s(e,t);return o&&e&&!e.next&&(e=void 0),!!o},get:function(t){return c(e,t)},has:function(t){var o;return!!(o=e)&&!!i(o,t)},set:function(t,o){e||(e={next:void 0}),a(e,t,o)}};return t}},3977(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),c=o(6757),a=n("%Map%",!0),s=r("Map.prototype.get",!0),l=r("Map.prototype.set",!0),d=r("Map.prototype.has",!0),f=r("Map.prototype.delete",!0),m=r("Map.prototype.size",!0);e.exports=!!a&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+i(e))},delete:function(t){if(e){var o=f(e,t);return 0===m(e)&&(e=void 0),o}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,o){e||(e=new a),l(e,t,o)}};return t}},8965(e,t,o){"use strict";var n=o(4295),r=o(8682),i=o(3109),c=o(3977),a=o(6757),s=n("%WeakMap%",!0),l=r("WeakMap.prototype.get",!0),d=r("WeakMap.prototype.set",!0),f=r("WeakMap.prototype.has",!0),m=r("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return m(e,o)}else if(c&&t)return t.delete(o);return!1},get:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?l(e,o):t&&t.get(o)},has:function(o){return s&&o&&("object"==typeof o||"function"==typeof o)&&e?f(e,o):!!t&&t.has(o)},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),d(e,o,n)):c&&(t||(t=c()),t.set(o,n))}};return o}:c},6278(e,t,o){"use strict";var n=o(6757),r=o(3109),i=o(6521),c=o(3977),a=o(8965)||c||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+(e&&Object(e)===e?"the given object key":r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,o){e||(e=a()),e.set(t,o)}};return t}},4532(e,t,o){!function(e){"use strict";var t,o,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),c=n&&"size"in n.prototype,a="__URLSearchParams__",s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),l=u.prototype,d=!!(e.Symbol&&e.Symbol.iterator);if(!n||!r||!i||!s||!c){l.append=function(e,t){g(this[a],e,t)},l.delete=function(e){delete this[a][e]},l.get=function(e){var t=this[a];return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this[a];return this.has(e)?t[e].slice(0):[]},l.has=function(e){return v(this[a],e)},l.set=function(e,t){this[a][e]=[""+t]},l.toString=function(){var e,t,o,n,r=this[a],i=[];for(t in r)for(o=b(t),e=0,n=r[t];e<n.length;e++)i.push(o+"="+b(n[e]));return i.join("&")};var f=e.Proxy&&n&&(!i||!s||!r||!c);f?(o=new Proxy(n,{construct:function(e,t){return new e(new u(t[0]).toString())}})).toString=Function.prototype.toString.bind(u):o=u,Object.defineProperty(e,"URLSearchParams",{value:o});var m=e.URLSearchParams.prototype;m.polyfill=!0,!f&&e.Symbol&&(m[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in m||(m.forEach=function(e,t){var o=p(this.toString());Object.getOwnPropertyNames(o).forEach(function(n){o[n].forEach(function(o){e.call(t,o,n,this)},this)},this)}),"sort"in m||(m.sort=function(){var e,t,o,n=p(this.toString()),r=[];for(e in n)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],c=n[i];for(o=0;o<c.length;o++)this.append(i,c[o])}}),"keys"in m||(m.keys=function(){var e=[];return this.forEach(function(t,o){e.push(o)}),h(e)}),"values"in m||(m.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)}),"entries"in m||(m.entries=function(){var e=[];return this.forEach(function(t,o){e.push([o,t])}),h(e)}),d&&(m[e.Symbol.iterator]=m[e.Symbol.iterator]||m.entries),"size"in m||Object.defineProperty(m,"size",{get:function(){var e=p(this.toString());if(m===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,o){return t+e[o].length},0)}})}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this[a]=p(e)}function b(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function F(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(e){return decodeURIComponent(e)})}function h(t){var o={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return d&&(o[e.Symbol.iterator]=function(){return o}),o}function p(e){var t={};if("object"==typeof e)if(y(e))for(var o=0;o<e.length;o++){var n=e[o];if(y(n)&&2===n.length)g(t,n[0],n[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var r in e)e.hasOwnProperty(r)&&g(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),c=0;c<i.length;c++){var a=i[c],s=a.indexOf("=");-1<s?g(t,F(a.slice(0,s)),F(a.slice(s+1))):a&&g(t,F(a),"")}}return t}function g(e,t,o){var n="string"==typeof o?o:null!=o&&"function"==typeof o.toString?o.toString():JSON.stringify(o);v(e,t)?e[t].push(n):e[t]=[n]}function y(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==o.g?o.g:"u">typeof window?window:this)},5610(){},7791(){},6550(){}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t,n)=>{var r=(t,n)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(n,"value")},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";let e,t,r,i,c;o.r(n),o.d(n,{OrGauge:()=>aa});var a,s,l,d,f,m,u,b,F,h,p,g,y,v,E,A,w,k,C,D,_,S,x,O,T,B,R,N,I,P,L,M,U,j,G,q,H,V,W,z,Y,K,J,X,Q,Z,ee,et,eo,en,er,ei,ec,ea,es,el,ed,ef,em,eu,eb,eF,eh,ep,eg,ey,ev,eE,eA,ew,ek,eC,eD,e_,eS,ex,eO,eT,eB,eR,eN,eI,eP,eL,eM,eU,ej,eG,eq,eH,e$,eV,eW,ez,eY,eK,eJ,eX,eQ,eZ,e0,e1,e2,e3,e5,e4,e6,e8,e9,e7,te,tt,to,tn,tr,ti,tc,ta,ts,tl,td,tf,tm,tu,tb,tF,th,tp,tg,ty,tv,tE,tA,tw,tk,tC={};o.r(tC),o.d(tC,{hasBrowserEnv:()=>rq,hasStandardBrowserEnv:()=>r$,hasStandardBrowserWebWorkerEnv:()=>rV,navigator:()=>rH,origin:()=>rW});let tD=globalThis,t_=tD.ShadowRoot&&(void 0===tD.ShadyCSS||tD.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tS=Symbol(),tx=new WeakMap;class tO{constructor(e,t,o){if(this._$cssResult$=!0,o!==tS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(t_&&void 0===e){let o=void 0!==t&&1===t.length;o&&(e=tx.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&tx.set(t,e))}return e}toString(){return this.cssText}}let tT=e=>new tO("string"==typeof e?e:e+"",void 0,tS),tB=(e,...t)=>new tO(1===e.length?e[0]:t.reduce((t,o,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]),e,tS),tR=t_?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return tT(t)})(e):e,{is:tN,defineProperty:tI,getOwnPropertyDescriptor:tP,getOwnPropertyNames:tL,getOwnPropertySymbols:tM,getPrototypeOf:tU}=Object,tj=globalThis,tG=tj.trustedTypes,tq=tG?tG.emptyScript:"",tH=tj.reactiveElementPolyfillSupport,t$={toAttribute(e,t){switch(t){case Boolean:e=e?tq:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=null!==e;break;case Number:o=null===e?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch(e){o=null}}return o}},tV=(e,t)=>!tN(e,t),tW={attribute:!0,type:String,converter:t$,reflect:!1,useDefault:!1,hasChanged:tV};Symbol.metadata??=Symbol("metadata"),tj.litPropertyMetadata??=new WeakMap;class tz extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=tW){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);void 0!==n&&tI(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:r}=tP(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let i=n?.call(this);r?.call(this,t),this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??tW}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=tU(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...tL(e),...tM(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,o]of t)this.elementProperties.set(e,o)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let o=this._$Eu(e,t);void 0!==o&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let o of new Set(e.flat(1/0).reverse()))t.unshift(tR(o));else void 0!==e&&t.push(tR(e));return t}static _$Eu(e,t){let o=t.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(t_)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let o of t){let t=document.createElement("style"),n=tD.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=o.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(void 0!==n&&!0===o.reflect){let r=(void 0!==o.converter?.toAttribute?o.converter:t$).toAttribute(t,o.type);this._$Em=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=o.getPropertyOptions(n),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:t$;this._$Em=n;let i=r.fromAttribute(t,e.type);this[n]=i??this._$Ej?.get(n)??i,this._$Em=null}}requestUpdate(e,t,o){if(void 0!==e){let n=this.constructor,r=this[e];if(!(((o??=n.getPropertyOptions(e)).hasChanged??tV)(r,t)||o.useDefault&&o.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:r},i){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==r||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,o]of e){let{wrapped:e}=o,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,o,n)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}tz.elementStyles=[],tz.shadowRootOptions={mode:"open"},tz.elementProperties=new Map,tz.finalized=new Map,tH?.({ReactiveElement:tz}),(tj.reactiveElementVersions??=[]).push("2.1.1");let tY=globalThis,tK=tY.trustedTypes,tJ=tK?tK.createPolicy("lit-html",{createHTML:e=>e}):void 0,tX="$lit$",tQ=`lit$${Math.random().toFixed(9).slice(2)}$`,tZ="?"+tQ,t0=`<${tZ}>`,t1=document,t2=()=>t1.createComment(""),t3=e=>null===e||"object"!=typeof e&&"function"!=typeof e,t5=Array.isArray,t4="[ \n\f\r]",t6=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,t8=/-->/g,t9=/>/g,t7=RegExp(`>|${t4}(?:([^\\s"'>=/]+)(${t4}*=${t4}*(?:[^
2
2
  \f\r"'\`<>=]|("|')|))|$)`,"g"),oe=/'/g,ot=/"/g,oo=/^(?:script|style|textarea|title)$/i,on=(e,...t)=>({_$litType$:1,strings:e,values:t}),or=Symbol.for("lit-noChange"),oi=Symbol.for("lit-nothing"),oc=new WeakMap,oa=t1.createTreeWalker(t1,129);function os(e,t){if(!t5(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==tJ?tJ.createHTML(t):t}class ol{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let r=0,i=0;const c=e.length-1,a=this.parts,[s,l]=((e,t)=>{let o=e.length-1,n=[],r,i=2===t?"<svg>":3===t?"<math>":"",c=t6;for(let t=0;t<o;t++){let o=e[t],a,s,l=-1,d=0;for(;d<o.length&&(c.lastIndex=d,null!==(s=c.exec(o)));)d=c.lastIndex,c===t6?"!--"===s[1]?c=t8:void 0!==s[1]?c=t9:void 0!==s[2]?(oo.test(s[2])&&(r=RegExp("</"+s[2],"g")),c=t7):void 0!==s[3]&&(c=t7):c===t7?">"===s[0]?(c=r??t6,l=-1):void 0===s[1]?l=-2:(l=c.lastIndex-s[2].length,a=s[1],c=void 0===s[3]?t7:'"'===s[3]?ot:oe):c===ot||c===oe?c=t7:c===t8||c===t9?c=t6:(c=t7,r=void 0);let f=c===t7&&e[t+1].startsWith("/>")?" ":"";i+=c===t6?o+t0:l>=0?(n.push(a),o.slice(0,l)+tX+o.slice(l)+tQ+f):o+tQ+(-2===l?t:f)}return[os(e,i+(e[o]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=ol.createElement(s,o),oa.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=oa.nextNode())&&a.length<c;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(tX)){const t=l[i++],o=n.getAttribute(e).split(tQ),c=/([.?@])?(.*)/.exec(t);a.push({type:1,index:r,name:c[2],strings:o,ctor:"."===c[1]?ob:"?"===c[1]?oF:"@"===c[1]?oh:ou}),n.removeAttribute(e)}else e.startsWith(tQ)&&(a.push({type:6,index:r}),n.removeAttribute(e));if(oo.test(n.tagName)){const e=n.textContent.split(tQ),t=e.length-1;if(t>0){n.textContent=tK?tK.emptyScript:"";for(let o=0;o<t;o++)n.append(e[o],t2()),oa.nextNode(),a.push({type:2,index:++r});n.append(e[t],t2())}}}else if(8===n.nodeType)if(n.data===tZ)a.push({type:2,index:r});else{let e=-1;for(;-1!==(e=n.data.indexOf(tQ,e+1));)a.push({type:7,index:r}),e+=tQ.length-1}r++}}static createElement(e,t){let o=t1.createElement("template");return o.innerHTML=e,o}}function od(e,t,o=e,n){if(t===or)return t;let r=void 0!==n?o._$Co?.[n]:o._$Cl,i=t3(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),void 0===i?r=void 0:(r=new i(e))._$AT(e,o,n),void 0!==n?(o._$Co??=[])[n]=r:o._$Cl=r),void 0!==r&&(t=od(e,r._$AS(e,t.values),r,n)),t}class of{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??t1).importNode(t,!0);oa.currentNode=n;let r=oa.nextNode(),i=0,c=0,a=o[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new om(r,r.nextSibling,this,e):1===a.type?t=new a.ctor(r,a.name,a.strings,this,e):6===a.type&&(t=new op(r,this,e)),this._$AV.push(t),a=o[++c]}i!==a?.index&&(r=oa.nextNode(),i++)}return oa.currentNode=t1,n}p(e){let t=0;for(let o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class om{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=oi,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let o;t3(e=od(this,e,t))?e===oi||null==e||""===e?(this._$AH!==oi&&this._$AR(),this._$AH=oi):e!==this._$AH&&e!==or&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):t5(o=e)||"function"==typeof o?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==oi&&t3(this._$AH)?this._$AA.nextSibling.data=e:this.T(t1.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=ol.createElement(os(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new of(n,this),o=e.u(this.options);e.p(t),this.T(o),this._$AH=e}}_$AC(e){let t=oc.get(e.strings);return void 0===t&&oc.set(e.strings,t=new ol(e)),t}k(e){t5(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let r of e)n===t.length?t.push(o=new om(this.O(t2()),this.O(t2()),this,this.options)):o=t[n],o._$AI(r),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ou{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,r){this.type=1,this._$AH=oi,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=oi}_$AI(e,t=this,o,n){let r=this.strings,i=!1;if(void 0===r)(i=!t3(e=od(this,e,t,0))||e!==this._$AH&&e!==or)&&(this._$AH=e);else{let n,c,a=e;for(e=r[0],n=0;n<r.length-1;n++)(c=od(this,a[o+n],t,n))===or&&(c=this._$AH[n]),i||=!t3(c)||c!==this._$AH[n],c===oi?e=oi:e!==oi&&(e+=(c??"")+r[n+1]),this._$AH[n]=c}i&&!n&&this.j(e)}j(e){e===oi?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ob extends ou{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===oi?void 0:e}}class oF extends ou{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==oi)}}class oh extends ou{constructor(e,t,o,n,r){super(e,t,o,n,r),this.type=5}_$AI(e,t=this){if((e=od(this,e,t,0)??oi)===or)return;let o=this._$AH,n=e===oi&&o!==oi||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==oi&&(o===oi||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class op{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){od(this,e)}}let og=tY.litHtmlPolyfillSupport;og?.(ol,om),(tY.litHtmlVersions??=[]).push("3.3.1");let oy=globalThis;class ov extends tz{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,o)=>{let n=o?.renderBefore??t,r=n._$litPart$;if(void 0===r){let e=o?.renderBefore??null;n._$litPart$=r=new om(t.insertBefore(t2(),e),e,void 0,o??{})}return r._$AI(e),r})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return or}}ov._$litElement$=!0,ov.finalized=!0,oy.litElementHydrateSupport?.({LitElement:ov});let oE=oy.litElementPolyfillSupport;oE?.({LitElement:ov}),(oy.litElementVersions??=[]).push("4.2.1");let oA=tB`
3
3
  h4 {
4
4
  margin: 0;
@@ -7,7 +7,7 @@ var ORGauge;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constru
7
7
  font-weight: 600;
8
8
  line-height: 125.303%;
9
9
  }
10
- `;class ow extends ov{static finalizeStyles(e){return[oA,...super.finalizeStyles(e)]}}let ok=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oC={attribute:!0,type:String,converter:t$,reflect:!1,hasChanged:tV};function oD(e){return(t,o)=>{let n;return"object"==typeof o?((e=oC,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function o_(e){return oD({...e,state:!0,attribute:!1})}let oS=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function ox(e,t){return(o,n,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:c}="object"==typeof n?o:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return oS(o,n,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&c.call(this,e),e}})}return oS(o,n,{get(){return i(this)}})}}(f=ew||(ew={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(m=ek||(ek={})).LOW="LOW",m.MEDIUM="MEDIUM",m.HIGH="HIGH",(u=eC||(eC={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eD||(eD={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(F=e_||(e_={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(h=eS||(eS={})).CREATE="CREATE",h.READ="READ",h.UPDATE="UPDATE",h.DELETE="DELETE",(p=ex||(ex={})).NONE="NONE",p.FORECAST="FORECAST",p.SETPOINT="SETPOINT",(g=eO||(eO={})).DISCONNECTED="DISCONNECTED",g.CONNECTING="CONNECTING",g.DISCONNECTING="DISCONNECTING",g.CONNECTED="CONNECTED",g.DISABLED="DISABLED",g.WAITING="WAITING",g.ERROR="ERROR",g.STOPPED="STOPPED",(y=eT||(eT={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(v=eB||(eB={})).TOGGLE="TOGGLE",v.INCREMENT="INCREMENT",v.DECREMENT="DECREMENT",v.NEGATE="NEGATE",(E=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",E.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",E.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",E.INVALID_VALUE="INVALID_VALUE",E.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",E.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",E.CANNOT_PROCESS="CANNOT_PROCESS",E.QUEUE_FULL="QUEUE_FULL",E.UNKNOWN="UNKNOWN",E.ASSET_ID_MISSING="ASSET_ID_MISSING",E.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=eN||(eN={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(w=eI||(eI={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(k=eP||(eP={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",k.KEEP_LAYOUT="KEEP_LAYOUT",k.REDIRECT="REDIRECT",k.BLOCK_DEVICE="BLOCK_DEVICE",(C=eL||(eL={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=eM||(eM={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(_=eU||(eU={})).MIN="MIN",_.AVG="AVG",_.MAX="MAX",_.DIFFERENCE="DIFFERENCE",_.COUNT="COUNT",_.SUM="SUM",_.MODE="MODE",_.MEDIAN="MEDIAN",(S=ej||(ej={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(x=eG||(eG={})).HTTPS="HTTPS",x.HTTP="HTTP",x.TCP="TCP",(O=eq||(eq={})).GET="GET",O.POST="POST",O.PUT="PUT",O.DELETE="DELETE",O.OPTIONS="OPTIONS",O.PATCH="PATCH",(T=eH||(eH={})).KEYCLOAK="KEYCLOAK",T.NONE="NONE",(B=e$||(e$={})).WEBSOCKET="WEBSOCKET",B.POLLING="POLLING",(R=eV||(eV={})).INTERNAL="INTERNAL",R.CLIENT="CLIENT",R.GLOBAL_RULESET="GLOBAL_RULESET",R.REALM_RULESET="REALM_RULESET",R.ASSET_RULESET="ASSET_RULESET",(N=eW||(eW={})).REALM="REALM",N.USER="USER",N.ASSET="ASSET",N.CUSTOM="CUSTOM",(I=ez||(ez={})).NORMAL="NORMAL",I.HIGH="HIGH",(P=eY||(eY={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(L=eK||(eK={})).ALWAYS="ALWAYS",L.ONCE="ONCE",L.HOURLY="HOURLY",L.DAILY="DAILY",L.WEEKLY="WEEKLY",L.MONTHLY="MONTHLY",L.ANNUALLY="ANNUALLY",(M=eJ||(eJ={})).TITLE="TITLE",M.SOURCE="SOURCE",M.STATUS="STATUS",M.SENT_ON="SENT_ON",M.DELIVERED_ON="DELIVERED_ON",(U=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",(j=eQ||(eQ={})).PRIVATE="PRIVATE",j.PROTECTED="PROTECTED",j.PUBLIC="PUBLIC",(G=eZ||(eZ={})).EXACT="EXACT",G.BEGIN="BEGIN",G.END="END",G.CONTAINS="CONTAINS",(q=e0||(e0={})).EQUALS="EQUALS",q.GREATER_THAN="GREATER_THAN",q.GREATER_EQUALS="GREATER_EQUALS",q.LESS_THAN="LESS_THAN",q.LESS_EQUALS="LESS_EQUALS",q.BETWEEN="BETWEEN",(H=e1||(e1={})).CREATED_ON="CREATED_ON",H.NAME="NAME",H.ASSET_TYPE="ASSET_TYPE",H.PARENT_ID="PARENT_ID",H.REALM="REALM",(V=e2||(e2={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(W=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",W.ALL="ALL",W.NONE="NONE",(z=e5||(e5={})).AND="AND",z.OR="OR",(Y=e4||(e4={})).CREATED_ON="CREATED_ON",Y.FIRST_NAME="FIRST_NAME",Y.LAST_NAME="LAST_NAME",Y.USERNAME="USERNAME",Y.EMAIL="EMAIL",(K=e6||(e6={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(J=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",J.GROOVY="GROOVY",J.JSON="JSON",J.FLOW="FLOW",(X=e9||(e9={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e7||(e7={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=to||(to={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(eo=tn||(tn={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(en=tr||(tr={})).ADD="ADD",en.ADD_OR_REPLACE="ADD_OR_REPLACE",en.REPLACE="REPLACE",en.DELETE="DELETE",en.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=tc||(tc={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.WRITE_SERVICES="write:services",ei.WRITE_USER="write:user",ei.WRITE_ADMIN="write:admin",ei.WRITE_LOGS="write:logs",ei.WRITE_ASSETS="write:assets",ei.WRITE_ATTRIBUTES="write:attributes",ei.WRITE_RULES="write:rules",ei.WRITE_INSIGHTS="write:insights",ei.WRITE_ALARMS="write:alarms",ei.WRITE_NOTIFICATIONS="write:notifications",ei.READ="read",ei.WRITE="write",(ec=ta||(ta={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(ea=ts||(ts={})).AVAILABLE="AVAILABLE",ea.UNAVAILABLE="UNAVAILABLE",(es=tl||(tl={})).ASSET="ASSET",es.AGENT="AGENT",es.NOTIFICATION="NOTIFICATION",es.ALARM="ALARM",es.RULES="RULES",es.PROTOCOL="PROTOCOL",es.GATEWAY="GATEWAY",es.MODEL_AND_VALUES="MODEL_AND_VALUES",es.API="API",es.DATA="DATA",(el=td||(td={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(ed=tf||(tf={})).NUMERIC="numeric",ed.DIGIT_2="2-digit",ed.FULL="full",ed.LONG="long",ed.MEDIUM="medium",ed.SHORT="short",ed.NARROW="narrow",(ef=tm||(tm={})).SECONDLY="SECONDLY",ef.MINUTELY="MINUTELY",ef.HOURLY="HOURLY",ef.DAILY="DAILY",ef.WEEKLY="WEEKLY",ef.MONTHLY="MONTHLY",ef.YEARLY="YEARLY",(em=tu||(tu={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eu=tb||(tb={})).JAPANESE="JAPANESE",eu.BUDDHIST="BUDDHIST",eu.ROC="ROC",eu.ISLAMIC="ISLAMIC",eu.ISO8601="ISO8601",eu.CHINESE="CHINESE",eu.ETHIOPIC="ETHIOPIC",eu.HEBREW="HEBREW",eu.GREGORIAN="GREGORIAN",(eb=tF||(tF={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eF=th||(th={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eF.MAILAGENT="MailAgent",eF.UDPAGENT="UDPAgent",eF.ROOMASSET="RoomAsset",eF.CITYASSET="CityAsset",eF.VENTILATIONASSET="VentilationAsset",eF.TRADFRILIGHTASSET="TradfriLightAsset",eF.CONSOLEASSET="ConsoleAsset",eF.PRESENCESENSORASSET="PresenceSensorAsset",eF.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eF.LIGHTASSET="LightAsset",eF.KNXAGENT="KNXAgent",eF.THETHINGSSTACKAGENT="TheThingsStackAgent",eF.PLUGASSET="PlugAsset",eF.CHIRPSTACKAGENT="ChirpStackAgent",eF.WEATHERASSET="WeatherAsset",eF.THINGASSET="ThingAsset",eF.WEBSOCKETAGENT="WebsocketAgent",eF.TCPAGENT="TCPAgent",eF.GATEWAYASSET="GatewayAsset",eF.SERIALAGENT="SerialAgent",eF.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eF.PARKINGASSET="ParkingAsset",eF.TRADFRIPLUGASSET="TradfriPlugAsset",eF.SIMULATORAGENT="SimulatorAgent",eF.SNMPAGENT="SNMPAgent",eF.GROUPASSET="GroupAsset",eF.BUILDINGASSET="BuildingAsset",eF.MODBUSSERIALAGENT="ModbusSerialAgent",eF.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eF.MQTTAGENT="MQTTAgent",eF.VELBUSTCPAGENT="VelbusTCPAgent",eF.ARTNETLIGHTASSET="ArtnetLightAsset",eF.VELBUSSERIALAGENT="VelbusSerialAgent",eF.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eF.MICROPHONEASSET="MicrophoneAsset",eF.MODBUSTCPAGENT="ModbusTcpAgent",eF.ZWAVEAGENT="ZWaveAgent",eF.HTTPAGENT="HTTPAgent",eF.DOORASSET="DoorAsset",eF.THERMOSTATASSET="ThermostatAsset",eF.SHIPASSET="ShipAsset",(eh=tp||(tp={})).COLOURRGB="colourRGB",eh.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eh.PRICEHOURLY="priceHourly",eh.MQTTPORT="MQTTPort",eh.PINGDISABLED="pingDisabled",eh.FLOW="flow",eh.CHILDASSETTYPE="childAssetType",eh.LASTACCESS="lastAccess",eh.POSITION="position",eh.NETWORKKEY="networkKey",eh.UNIVERSE="universe",eh.ROUTINGMODE="routingMode",eh.MSSINUMBER="MSSINumber",eh.LASTWILLRETAIN="lastWillRetain",eh.LASTWILLTOPIC="lastWillTopic",eh.SERIALBAUDRATE="serialBaudrate",eh.SUBSCRIBEQOS="subscribeQos",eh.LEDCOUNT="lEDCount",eh.LOCKED="locked",eh.CLOUDCOVERAGE="cloudCoverage",eh.BASEURL="baseURL",eh.PROTOCOL="protocol",eh.REQUIREDVALUES="requiredValues",eh.REGION="region",eh.CONSOLEPLATFORM="consolePlatform",eh.GATEWAYSTATUS="gatewayStatus",eh.NO2LEVEL="NO2Level",eh.ATMOSPHERICPRESSURE="atmosphericPressure",eh.SERIALPORT="serialPort",eh.APPLICATIONID="applicationId",eh.TAGS="tags",eh.UNLOCK="unlock",eh.CHECKINTERVALSECONDS="checkIntervalSeconds",eh.LOCATION="location",eh.CLIENTSECRET="clientSecret",eh.WINDDIRECTION="windDirection",eh.WINDSPEED="windSpeed",eh.PARTICLESPM10="particlesPM10",eh.APPLICATIONKEY="applicationKey",eh.LENGTH="length",eh.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eh.USERNAMEPASSWORD="usernamePassword",eh.WATERLEVEL="waterLevel",eh.CONNECTHEADERS="connectHeaders",eh.CONSOLENAME="consoleName",eh.WEBSOCKETQUERY="websocketQuery",eh.PREFERHTML="preferHTML",eh.PARITY="parity",eh.COOLING="cooling",eh.POLLINGMILLIS="pollingMillis",eh.SOILTEMPERATURE="soilTemperature",eh.SUNIRRADIANCE="sunIrradiance",eh.MESSAGEMAXLENGTH="messageMaxLength",eh.WINDGUSTSPEED="windGustSpeed",eh.LIGHTID="lightId",eh.PROXYADDRESS="proxyAddress",eh.REQUESTQUERYPARAMETERS="requestQueryParameters",eh.MQTTHOST="MQTTHost",eh.SECUREGRPC="secureGRPC",eh.MODEL="model",eh.STREET="street",eh.MANUFACTURER="manufacturer",eh.DELETEPROCESSEDMAIL="deleteProcessedMail",eh.RESUMESESSION="resumeSession",eh.ONOFF="onOff",eh.APIKEY="ApiKey",eh.CITY="city",eh.PRESENCE="presence",eh.SPACESOCCUPIED="spacesOccupied",eh.STARTTLS="startTLS",eh.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eh.WEBSOCKETPATH="websocketPath",eh.AGENTSTATUS="agentStatus",eh.PRICEDAILY="priceDaily",eh.COUNTGROWTHMINUTE="countGrowthMinute",eh.IMONUMBER="IMONumber",eh.ATTRIBUTION="Attribution",eh.TENANTID="tenantId",eh.REQUESTHEADERS="requestHeaders",eh.HOST="host",eh.COUNTOUTMINUTE="countOutMinute",eh.MESSAGECHARSET="messageCharset",eh.CERTIFICATEALIAS="certificateAlias",eh.EMAIL="email",eh.BINDPORT="bindPort",eh.CONSOLEVERSION="consoleVersion",eh.PARTICLESPM1="particlesPM1",eh.MTU="mtu",eh.SPEED="speed",eh.MESSAGESTRIPDELIMITER="messageStripDelimiter",eh.AREA="area",eh.COUNTRY="country",eh.SHIPTYPE="shipType",eh.CONNECTSUBSCRIPTIONS="connectSubscriptions",eh.RELATIVEHUMIDITY="relativeHumidity",eh.SOURCEADDRESS="sourceAddress",eh.RAINFALL="rainfall",eh.OAUTHGRANT="oAuthGrant",eh.OZONELEVEL="ozoneLevel",eh.SEQUENCENUMBER="sequenceNumber",eh.COUNTINMINUTE="countInMinute",eh.PORT="port",eh.SUNALTITUDE="sunAltitude",eh.COUNTOUT="countOut",eh.ROOMNUMBER="roomNumber",eh.TUNNELINGSUPPORTED="tunnelingSupported",eh.ENINUMBER="ENINumber",eh.PARTICLESPM2_5="particlesPM2_5",eh.AGENTDISABLED="agentDisabled",eh.DISABLED="disabled",eh.COUNTIN="countIn",eh.MESSAGESOURCEADDRESS="messageSourceAddress",eh.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eh.TIMEINJECTIONINTERVAL="timeInjectionInterval",eh.TEMPERATURESETPOINT="temperatureSetpoint",eh.CONSOLEPROVIDERS="consoleProviders",eh.COUNTTOTAL="countTotal",eh.SPACESBUFFER="spacesBuffer",eh.DEVICECONFIG="deviceConfig",eh.SPACESTOTAL="spacesTotal",eh.BINDHOST="bindHost",eh.FANSPEED="fanSpeed",eh.MESSAGECONVERTBINARY="messageConvertBinary",eh.NOTES="notes",eh.MAILFOLDERNAME="mailFolderName",eh.MESSAGEDELIMITERS="messageDelimiters",eh.TEMPERATURE="temperature",eh.SUNZENITH="sunZenith",eh.SNMPVERSIONVALUE="SNMPVersionValue",eh.BRIGHTNESS="brightness",eh.POSTALCODE="postalCode",eh.SPACESOPEN="spacesOpen",eh.HUMIDITY="humidity",eh.SOUNDLEVEL="soundLevel",eh.SECUREMODE="secureMode",eh.DIRECTION="direction",eh.STOPBITS="stopbits",eh.UVINDEX="uVIndex",eh.CONNECTURL="connectURL",eh.CLIENTID="clientId",eh.NATMODE="NATMode",eh.UPDATEONWRITE="updateOnWrite",eh.LASTWILLPAYLOAD="lastWillPayload",eh.GROUPID="groupId",eh.FOLLOWREDIRECTS="followRedirects",eh.SUNAZIMUTH="sunAzimuth",eh.MESSAGECONVERTHEX="messageConvertHex",eh.WEBSOCKETMODE="websocketMode",eh.COLOURTEMPERATURE="colourTemperature",eh.PUBLISHQOS="publishQos",eh.DATABITS="dataBits",(ep=tg||(tg={})).FORMAT="format",ep.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ep.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ep.SECRET="secret",ep.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ep.ATTRIBUTELINKS="attributeLinks",ep.RULERESETIMMEDIATE="ruleResetImmediate",ep.RULESTATE="ruleState",ep.AGENTLINKCONFIG="agentLinkConfig",ep.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ep.FORECAST="forecast",ep.STOREDATAPOINTS="storeDataPoints",ep.LABEL="label",ep.CONSTRAINTS="constraints",ep.UNITS="units",ep.USERCONNECTED="userConnected",ep.SHOWONDASHBOARD="showOnDashboard",ep.READONLY="readOnly",ep.MULTILINE="multiline",ep.ACCESSPUBLICWRITE="accessPublicWrite",ep.MOMENTARY="momentary",ep.AGENTLINK="agentLink",ep.ACCESSRESTRICTEDREAD="accessRestrictedRead",ep.ACCESSPUBLICREAD="accessPublicRead",(eg=ty||(ty={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tv||(tv={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tE||(tE={});class oO{static getAssetDescriptors(){return oO._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oO.getValueDescriptor(t)),o=t.jsonType?t:oO.getValueDescriptor(t.type)),!o&&e&&(o=oO.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}oO._assetTypeInfos=[],oO._metaItemDescriptors=[],oO._valueDescriptors=[];var oT=o(1001);function oB(e){return(oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oR(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oN(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:t+""}function oI(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oN(n.key),n)}}function oP(e,t,o){return t&&oI(e.prototype,t),o&&oI(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oL(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(e,t){return(oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oU(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oM(e,t)}function oj(e,t){if(t&&("object"==oB(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oL(e)}function oG(e){return(oG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oq(e,t,o){return(t=oN(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o$(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oV(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o$(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}o(4532);var oW={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},oz=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.init(t,o)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oW,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,oV(oV({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),oY=function(){function e(){oR(this,e),this.observers={}}return oP(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function oK(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function oJ(e){return null==e?"":""+e}function oX(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var c=n(i.shift());!e[c]&&o&&(e[c]=new o),e=Object.prototype.hasOwnProperty.call(e,c)?e[c]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function oQ(e,t,o){var n=oX(e,t,Object);n.obj[n.k]=o}function oZ(e,t){var o=oX(e,t),n=o.obj,r=o.k;if(n)return n[r]}function o0(e,t,o){var n=oZ(e,o);return void 0!==n?n:oZ(t,o)}function o1(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function o3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return o2[e]}):e}var o5="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,o4=[" ",",","?","!",";"];function o6(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o8(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o6(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o6(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var o9=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oP(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,t];o&&"string"!=typeof o&&(c=c.concat(o)),o&&"string"==typeof o&&(c=c.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(c=e.split("."));var a=oZ(this.data,c);return a||!i||"string"!=typeof o?a:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,c=0;c<r.length;++c){if(!i||"string"==typeof i[r[c]]&&c+1<r.length)return;if(void 0===i[r[c]]){for(var a=2,s=r.slice(c,c+a).join(n),l=i[s];void 0===l&&r.length>c+a;)a++,l=i[s=r.slice(c,c+a).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(c+a).join(n);if(d)return e(l,d,n);return}i=i[r[c]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var c=[e,t];o&&(c=c.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(c=e.split("."),n=t,t=c[1]),this.addNamespaces(t),oQ(this.data,c,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),n=o,o=t,t=c[1]),this.addNamespaces(t);var a=oZ(this.data,c)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(a,o,r):a=o8(o8({},a),o),oQ(this.data,c,a),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?o8(o8({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(oY),o7={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var no={},nn=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oL(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=c,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=oz.create("translator"),i}return oP(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=o4.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var c=e.indexOf(o);c>0&&!r.test(e.substring(0,c))&&(i=!0)}return i}(e,o,n);if(i&&!c){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oB(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,c=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),s=a.key,l=a.namespaces,d=l[l.length-1],f=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(m){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(u).concat(s),b):"".concat(d).concat(u).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),F=b&&b.res,h=b&&b.usedKey||s,p=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(F),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof F&&"boolean"!=typeof F&&"number"!=typeof F;if(v&&F&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,F,nt(nt({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=A,b):A}if(c){var w="[object Array]"===g,k=w?[]:{},C=w?p:h;for(var D in F)if(Object.prototype.hasOwnProperty.call(F,D)){var _="".concat(C).concat(c).concat(D);k[D]=this.translate(_,nt(nt({},t),{joinArrays:!1,ns:l})),k[D]===_&&(k[D]=F[D])}F=k}}else if(v&&"string"==typeof y&&"[object Array]"===g)(F=F.join(y))&&(F=this.extendTranslation(F,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(F)&&T&&(S=!0,F=R),this.isValidLookup(F)||(x=!0,F=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:F,I=T&&R!==F&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:F),c){var P=this.resolve(s,nt(nt({},t),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==F?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}F=this.extendTranslation(F,e,t,b,o),x&&F===s&&this.options.appendNamespaceToMissingKey&&(F="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(F="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?F:void 0):this.options.parseMissingKeyHandler(F))}return i?(b.res=F,b):F}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nt(nt({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var c,a="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var s=e.match(this.interpolator.nestingRegexp);c=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=nt(nt({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),a){var d=e.match(this.interpolator.nestingRegexp);c<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),c=0;c<e;c++)n[c]=arguments[c];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,m="string"==typeof f?[f]:f;return null!=e&&m&&m.length&&!1!==o.applyPostProcessor&&(e=o7.handle(m,e,t,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,c=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!c.isValidLookup(t)){var s=c.extractFromKey(e,a),l=s.key;o=l;var d=s.namespaces;c.options.fallbackNS&&(d=d.concat(c.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,m=f&&!a.ordinal&&0===a.count&&c.pluralResolver.shouldUseIntlApi(),u=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,b=a.lngs?a.lngs:c.languageUtils.toResolveHierarchy(a.lng||c.language,a.fallbackLng);d.forEach(function(e){c.isValidLookup(t)||(i=e,!no["".concat(b[0],"-").concat(e)]&&c.utils&&c.utils.hasLoadedNamespace&&!c.utils.hasLoadedNamespace(i)&&(no["".concat(b[0],"-").concat(e)]=!0,c.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(o){if(!c.isValidLookup(t)){r=o;var i,s=[l];if(c.i18nFormat&&c.i18nFormat.addLookupKeys)c.i18nFormat.addLookupKeys(s,l,o,e,a);else{f&&(d=c.pluralResolver.getSuffix(o,a.count,a));var d,b="".concat(c.options.pluralSeparator,"zero");if(f&&(s.push(l+d),m&&s.push(l+b)),u){var F="".concat(l).concat(c.options.contextSeparator).concat(a.context);s.push(F),f&&(s.push(F+d),m&&s.push(F+b))}}for(;i=s.pop();)c.isValidLookup(t)||(n=i,t=c.getResource(o,e,i,a))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(oY);function nr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ni=function(){function e(t){oR(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oz.create("languageUtils")}return oP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nr(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nc=[{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}],na={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ns=["v1","v2","v3"],nl={zero:0,one:1,two:2,few:3,many:4,other:5},nd=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.languageUtils=t,this.options=n,this.logger=oz.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nc.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:na[e.fc]}})}),o)}return oP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nl[e]-nl[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!ns.includes(this.options.compatibilityJSON)}}]),e}();function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nm(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:o3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?o1(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o1(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?o1(t.nestingPrefix):t.nestingPrefixEscaped||o1("$t("),this.nestingSuffix=t.nestingSuffix?o1(t.nestingSuffix):t.nestingSuffixEscaped||o1(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,c,a=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(a.formatSeparator)){var r=o0(t,s,e);return a.alwaysFormat?a.format(r,void 0,o,nm(nm(nm({},n),t),{},{interpolationkey:e})):r}var i=e.split(a.formatSeparator),c=i.shift().trim(),l=i.join(a.formatSeparator).trim();return a.format(o0(t,s,c),l,o,nm(nm(nm({},n),t),{},{interpolationkey:c}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?l(a.escape(e)):l(e)}}].forEach(function(t){for(c=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(m){i=r[0];continue}else a.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||a.useRawValueToEscape||(i=oJ(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),m?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++c>=a.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=nm({},i);function a(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,c)).match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{c=JSON.parse(r),t&&(c=nm(nm({},t),c))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete c.defaultValue,e}for(c.applyPostProcessor=!1,delete c.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(a.call(this,o[1].trim(),c),c))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=oJ(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nm(nm({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nb(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nF(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nb(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nh(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),c=t[i];return c||(c=e(n,r),t[i]=c),c(o)}}var np=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("formatter"),this.options=t,this.formats={number:nh(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nh(function(e,t){var o=new Intl.NumberFormat(e,nF(nF({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nh(function(e,t){var o=new Intl.DateTimeFormat(e,nF({},t));return function(e){return o.format(e)}}),relativetime:nh(function(e,t){var o=new Intl.RelativeTimeFormat(e,nF({},t));return function(e){return o.format(e,t.range||"day")}}),list:nh(function(e,t){var o=new Intl.ListFormat(e,nF({},t));return function(e){return o.format(e)}})},this.init(t)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nh(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return oH(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oH(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),c=i.formatName,a=i.formatOptions;if(r.formats[c]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[c](e,d,nF(nF(nF({},a),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(c)),e},e)}}]),e}();function ng(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ny(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nv=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e,t,r){var i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=c,i.logger=oz.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=c.maxParallelReads||10,i.readingCalls=0,i.maxRetries=c.maxRetries>=0?c.maxRetries:5,i.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,c.backend,c),i}return oP(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},c={},a={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?void 0===c[a]&&(c[a]=!0):(r.state[a]=1,n=!1,void 0===c[a]&&(c[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(c),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var c={};this.queue.forEach(function(o){var n,a,s,l;n=o.loaded,(s=(a=oX(n,[r],Object)).obj)[l=a.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){c[e]||(c[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===c[e][t]&&(c[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:c}):(this.readingCalls++,this.backend[o](e,t,function(a,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}a&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,c)},i):c(a,s)})):c(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,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]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,c){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&c&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),c),t.loaded(e,n,c)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,ny(ny({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(oY);function nE(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nA(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nw(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nA(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nk(){}var nC=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.options=nE(r),t.services={},t.logger=oz,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oL(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),oj(t,oL(t));setTimeout(function(){t.init(r,i)},0)}return t}return oP(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oB(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oB(e[2])||"object"===oB(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nw(nw(nw({},n),this.options),nE(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nw(nw({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?oz.init(r(this.modules.logger),this.options):oz.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=np);var i,c=new ni(this.options);this.store=new o9(this.options.resources,this.options);var a=this.services;a.logger=oz,a.resourceStore=this.store,a.languageUtils=c,a.pluralResolver=new nd(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(a.formatter=r(i),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new nu(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new nv(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new nn(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nk),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=oK(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],c=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?c(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return c(e)}),this.options.preload&&this.options.preload.forEach(function(e){return c(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=oK();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nk),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&o7.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=oK();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},c=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e):c(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oB(r)){for(var i,c=arguments.length,a=Array(c>2?c-2:0),s=2;s<c;s++)a[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else i=nw({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var c=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var a=o.precheck(this,c);if(void 0!==a)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,e)&&(!r||c(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=oK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=oK();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,r=nw(nw(nw({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nw({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new nn(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(oY);oq(nC,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nC(e,t)});var nD=nC.createInstance();nD.createInstance=nC.createInstance,nD.createInstance,nD.init,nD.loadResources,nD.reloadResources,nD.use,nD.changeLanguage,nD.getFixedT,nD.t,nD.exists,nD.setDefaultNamespace,nD.hasLoadedNamespace,nD.loadNamespaces,nD.loadLanguages;let n_=nD;var nS=o(4867),nx=o.n(nS);o(3472);class nO{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}class nT{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,c,a;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(c=e.path)?c:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(a=this.names)||!a.length||!!this.names.every(t=>nT._evalValuePredicate(e.name,t)))&&(!this.attributes||nT._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nT._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nT._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let c=!t.value||nT._evalValuePredicate(i.value,t.value);return t.negated?!c:c}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",c=[...(null!=(n=t.items)?n:[]).map(t=>nT._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nT._evalGroup(e,t))];return!c.length||("OR"===i?c.some(Boolean):c.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nT._collectNames(e))]}}nT._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nB=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};let nR=o(4461);class nN{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),c=n.get("consolePlatform"),a=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=a&&a.length>0?a.split(" "):["push"];this._pendingProviderEnables=l;let d=nN._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},l)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let u=c7.getAppName();u.length>0&&0>d.apps.indexOf(u)&&d.apps.push(u),this._registration=d,r&&(d.name=r),i&&(d.version=i),c&&(d.platform=c),s&&(this._autoEnable="TRUE"===s||"true"===s)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nB(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return nB(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nO,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nB(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return nB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield c7.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&nN._isStaleRegistrationResponse(o)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return nB(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nR.name,version:nR.version,platform:nR.os.toString(),apps:[],model:((nR.manufacturer?nR.manufacturer+" ":"")+(nR.product?nR.product:"")).trim()}}_initialiseProvider(e){return nB(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function nI(e,t){return function(){return e.apply(t,arguments)}}let{toString:nP}=Object.prototype,{getPrototypeOf:nL}=Object,{iterator:nM,toStringTag:nU}=Symbol,nj=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),nG=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),nj(o,t))return!0;o=nL(o)}return!1},nq=(t=Object.create(null),e=>{let o=nP.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())}),nH=e=>(e=e.toLowerCase(),t=>nq(t)===e),n$=e=>t=>typeof t===e,{isArray:nV}=Array,nW=n$("undefined");function nz(e){return null!==e&&!nW(e)&&null!==e.constructor&&!nW(e.constructor)&&nJ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let nY=nH("ArrayBuffer"),nK=n$("string"),nJ=n$("function"),nX=n$("number"),nQ=e=>null!==e&&"object"==typeof e,nZ=e=>{if(!nQ(e))return!1;let t=nL(e);return(null===t||t===Object.prototype||null===nL(t))&&!nG(e,nU)&&!nG(e,nM)},n0=nH("Date"),n1=nH("File"),n2=nH("Blob"),n3=nH("FileList"),n5="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n4=void 0!==n5.FormData?n5.FormData:void 0,n6=nH("URLSearchParams"),[n8,n9,n7,re]=["ReadableStream","Request","Response","Headers"].map(nH);function rt(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),nV(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(nz(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;for(n=0;n<c;n++)r=i[n],t.call(null,e[r],r,e)}}function ro(e,t){let o;if(nz(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let rn="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rr=e=>!nW(e)&&e!==rn,ri=(r="u">typeof Uint8Array&&nL(Uint8Array),e=>r&&e instanceof r),rc=nH("HTMLFormElement"),{propertyIsEnumerable:ra}=Object.prototype,rs=nH("RegExp"),rl=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rt(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rd=nH("AsyncFunction"),rf=(a="function"==typeof setImmediate,s=nJ(rn.postMessage),a?setImmediate:s?(l=`axios@${Math.random()}`,d=[],rn.addEventListener("message",({source:e,data:t})=>{e===rn&&t===l&&d.length&&d.shift()()},!1),e=>{d.push(e),rn.postMessage(l,"*")}):e=>setTimeout(e)),rm="u">typeof queueMicrotask?queueMicrotask.bind(rn):"u">typeof process&&process.nextTick||rf,ru=e=>null!=e&&nJ(e[nM]),rb={isArray:nV,isArrayBuffer:nY,isBuffer:nz,isFormData:e=>{if(!e)return!1;if(n4&&e instanceof n4)return!0;let t=nL(e);if(!t||t===Object.prototype||!nJ(e.append))return!1;let o=nq(e);return"formdata"===o||"object"===o&&nJ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nY(e.buffer)},isString:nK,isNumber:nX,isBoolean:e=>!0===e||!1===e,isObject:nQ,isPlainObject:nZ,isEmptyObject:e=>{if(!nQ(e)||nz(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:n8,isRequest:n9,isResponse:n7,isHeaders:re,isUndefined:nW,isDate:n0,isFile:n1,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:n2,isRegExp:rs,isFunction:nJ,isStream:e=>nQ(e)&&nJ(e.pipe),isURLSearchParams:n6,isTypedArray:ri,isFileList:n3,forEach:rt,merge:function e(...t){let{caseless:o,skipUndefined:n}=rr(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let c=o&&"string"==typeof i&&ro(r,i)||i,a=nj(r,c)?r[c]:void 0;nZ(a)&&nZ(t)?r[c]=e(a,t):nZ(t)?r[c]=e({},t):nV(t)?r[c]=t.slice():n&&nW(t)||(r[c]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||nz(o)||(rt(o,i),"object"!=typeof o||nV(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];ra.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rt(t,(t,n)=>{o&&nJ(t)?Object.defineProperty(e,n,{__proto__:null,value:nI(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),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,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,c,a={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)c=r[i],(!n||n(c,e,t))&&!a[c]&&(t[c]=e[c],a[c]=!0);e=!1!==o&&nL(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:nq,kindOfTest:nH,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(nV(e))return e;let t=e.length;if(!nX(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[nM]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rc,hasOwnProperty:nj,hasOwnProp:nj,hasOwnInPrototypeChain:nG,getSafeProp:(e,t)=>null!=e&&nG(e,t)?e[t]:void 0,reduceDescriptors:rl,freezeMethods:e=>{rl(e,(t,o)=>{if(nJ(e)&&["arguments","caller","callee"].includes(o))return!1;if(nJ(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(nV(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ro,global:rn,isContextDefined:rr,isSpecCompliantForm:function(e){return!!(e&&nJ(e.append)&&"FormData"===e[nU]&&e[nM])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(nQ(e)){if(t.has(e))return;if(nz(e))return e;if(!("toJSON"in e)){t.add(e);let n=nV(e)?[]:{};return rt(e,(e,t)=>{let r=o(e);nW(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rd,isThenable:e=>e&&(nQ(e)||nJ(e))&&nJ(e.then)&&nJ(e.catch),setImmediate:rf,asap:rm,isIterable:ru,isSafeIterable:e=>null!=e&&nG(e,nM)&&ru(e)},rF=rb.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"]),rh=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rp=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rg(e,t){return rb.isArray(e)?e.map(e=>rg(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function ry(e){let t=Object.create(null);return rb.forEach(e.toJSON(),(e,o)=>{t[o]=rg(e,rp)}),t}let rv=Symbol("internals");function rE(e){return e&&String(e).trim().toLowerCase()}function rA(e){return!1===e||null==e?e:rb.isArray(e)?e.map(rA):rg(String(e),rh)}function rw(e,t,o,n,r){if(rb.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rb.isString(t)){if(rb.isString(n))return -1!==t.indexOf(n);if(rb.isRegExp(n))return n.test(t)}}class rk{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rE(t);if(!r)return;let i=rb.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rA(e))}let i=(e,t)=>rb.forEach(e,(e,o)=>r(e,o,t));if(rb.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rb.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var c;let o,n,r,a;i((a={},(c=e)&&c.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||a[o]&&rF[o]||("set-cookie"===o?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a),t)}else if(rb.isObject(e)&&rb.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rb.hasOwnProp(o,r)?(n=o[r],o[r]=rb.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rE(e)){let o=rb.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rb.isFunction(t))return t.call(this,e,o);if(rb.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rE(e)){let o=rb.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rw(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rE(e)){let r=rb.findKey(o,e);r&&(!t||rw(o,o[r],r,t))&&(delete o[r],n=!0)}}return rb.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rw(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rb.forEach(this,(n,r)=>{let i=rb.findKey(o,r);if(i){t[i]=rA(n),delete t[r];return}let c=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();c!==r&&delete t[r],t[c]=rA(n),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rb.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rb.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rv]=this[rv]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rE(e);if(!t[n]){let r;r=rb.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rb.isArray(e)?e.forEach(n):n(e),this}}rk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rb.reduceDescriptors(rk.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rb.freezeMethods(rk);class rC extends Error{static from(e,t,o,n,r,i){let c=new rC(e.message,t||e.code,o,n,r);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,null!=e.status&&null==c.status&&(c.status=e.status),i&&Object.assign(c,i),c}constructor(e,t,o,n,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rb.hasOwnProp(n,"redact")?n.redact:void 0,i=rb.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rb.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof rk&&(n=n.toJSON()),t.push(n),rb.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rb.isUndefined(n)||(r[t]=n)});else{if(!rb.isPlainObject(n)&&function(e){if(rb.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rb.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rb.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rb.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rC.ERR_BAD_OPTION="ERR_BAD_OPTION",rC.ECONNABORTED="ECONNABORTED",rC.ETIMEDOUT="ETIMEDOUT",rC.ECONNREFUSED="ECONNREFUSED",rC.ERR_NETWORK="ERR_NETWORK",rC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rC.ERR_DEPRECATED="ERR_DEPRECATED",rC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rC.ERR_CANCELED="ERR_CANCELED",rC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rC.ERR_INVALID_URL="ERR_INVALID_URL",rC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rD=rC;function r_(e){return rb.isPlainObject(e)||rb.isArray(e)}function rS(e){return rb.endsWith(e,"[]")?e.slice(0,-2):e}function rx(e,t,o){return e?e.concat(t).map(function(e,t){return e=rS(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rO=rb.toFlatObject(rb,{},null,function(e){return/^is[A-Z]/.test(e)}),rT=function(e,t,o){if(!rb.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rb.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rb.isUndefined(t[e])})).metaTokens,r=o.visitor||u,i=o.dots,c=o.indexes,a=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=a&&rb.isSpecCompliantForm(t),d=[];if(!rb.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rb.isDate(e))return e.toISOString();if(rb.isBoolean(e))return e.toString();if(!l&&rb.isBlob(e))throw new rD("Blob is not supported. Use a Buffer instead.");if(rb.isArrayBuffer(e)||rb.isTypedArray(e)){if(l&&"function"==typeof a)return new a([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rD("Blob is not supported. Use a Buffer instead.",rD.ERR_NOT_SUPPORT)}return e}function m(e){if(e>s)throw new rD("Object is too deeply nested ("+e+" levels). Max depth: "+s,rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,o,r){let a=e;if(rb.isReactNative(t)&&rb.isReactNativeBlob(e))return t.append(rx(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rb.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rb.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),m(1+t.length-1),o})}(e);else{var l;if(rb.isArray(e)&&(l=e,rb.isArray(l)&&!l.some(r_))||(rb.isFileList(e)||rb.endsWith(o,"[]"))&&(a=rb.toArray(e)))return o=rS(o),a.forEach(function(e,n){rb.isUndefined(e)||null===e||t.append(!0===c?rx([o],n,i):null===c?o:o+"[]",f(e))}),!1}return!!r_(e)||(t.append(rx(r,o,i),f(e)),!1)}let b=Object.assign(rO,{defaultVisitor:u,convertValue:f,isVisitable:r_});if(!rb.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rb.isUndefined(o)){if(m(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rb.forEach(o,function(o,c){!0===(!(rb.isUndefined(o)||null===o)&&r.call(t,o,rb.isString(c)?c.trim():c,n,b))&&e(o,n?n.concat(c):[c],i+1)}),d.pop()}}(e),t};function rB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rR(e,t){this._pairs=[],e&&rT(e,this,t)}let rN=rR.prototype;function rI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rP(e,t,o){let n;if(!t)return e;e=e||"";let r=rb.isFunction(o)?{serialize:o}:o,i=rb.getSafeProp(r,"encode")||rI,c=rb.getSafeProp(r,"serialize");if(n=c?c(t,r):rb.isURLSearchParams(t)?t.toString():new rR(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rN.append=function(e,t){this._pairs.push([e,t])},rN.toString=function(e){let t=e?t=>e.call(this,t,rB):rB;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rL=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rb.forEach(this.handlers,function(t){null!==t&&e(t)})}},rM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rj="u">typeof FormData?FormData:null,rG="u">typeof Blob?Blob:null,rq="u">typeof window&&"u">typeof document,rH="object"==typeof navigator&&navigator||void 0,r$=rq&&(!rH||0>["ReactNative","NativeScript","NS"].indexOf(rH.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rW=rq&&window.location.href||"http://localhost",rz={...tC,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rj,Blob:rG},protocols:["http","https","file","blob","url","data"]};function rY(e){if(e>100)throw new rD("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rK=function(e){if(rb.isFormData(e)&&rb.isFunction(e.entries)){let t={};return rb.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){rY(r);let i=t[r++];if("__proto__"===i)return!0;let c=Number.isFinite(+i),a=r>=t.length;return(i=!i&&rb.isArray(n)?n.length:i,a)?rb.hasOwnProp(n,i)?n[i]=rb.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rb.hasOwnProp(n,i)&&rb.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rb.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!c}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)rY(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},rJ=(e,t)=>null!=e&&rb.hasOwnProp(e,t)?e[t]:void 0,rX={transitional:rM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rb.isObject(e);if(i&&rb.isHTMLForm(e)&&(e=new FormData(e)),rb.isFormData(e))return r?JSON.stringify(rK(e)):e;if(rb.isArrayBuffer(e)||rb.isBuffer(e)||rb.isStream(e)||rb.isFile(e)||rb.isBlob(e)||rb.isReadableStream(e))return e;if(rb.isArrayBufferView(e))return e.buffer;if(rb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rJ(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rT(e,new rz.classes.URLSearchParams,{visitor:function(e,t,o,n){return rz.isNode&&rb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rb.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=rJ(this,"env"),r=n&&n.FormData;return rT(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var c=e;if(rb.isString(c))try{return(0,JSON.parse)(c),rb.trim(c)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(c)}return e}],transformResponse:[function(e){let t=rJ(this,"transitional")||rX.transitional,o=t&&t.forcedJSONParsing,n=rJ(this,"responseType"),r="json"===n;if(rb.isResponse(e)||rb.isReadableStream(e))return e;if(e&&rb.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,rJ(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rD.from(e,rD.ERR_BAD_RESPONSE,this,null,rJ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rz.classes.FormData,Blob:rz.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rQ(e,t){let o=this||rX,n=t||o,r=rk.from(n.headers),i=n.data;return rb.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rZ(e){return!!(e&&e.__CANCEL__)}rb.forEach(["delete","get","head","post","put","patch","query"],e=>{rX.headers[e]={}});let r0=class extends rD{constructor(e,t,o){super(null==e?"canceled":e,rD.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function r1(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rD("Request failed with status code "+o.status,o.status>=400&&o.status<500?rD.ERR_BAD_REQUEST:rD.ERR_BAD_RESPONSE,o.config,o.request,o))}let r2=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,c=0;return t=void 0!==t?t:1e3,function(a){let s=Date.now(),l=r[c];o||(o=s),n[i]=a,r[i]=s;let d=c,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===c&&(c=(c+1)%e),s-o<t)return;let m=l&&s-l;return m?Math.round(1e3*f/m):void 0}},r3=function(e,t){let o,n,r=0,i=1e3/t,c=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-r;a>=i?c(e,t):(o=e,n||(n=setTimeout(()=>{n=null,c(o)},i-a)))},()=>o&&c(o)]},r5=(e,t,o=3)=>{let n=0,r=r2(50,250);return r3(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,c=o.lengthComputable?o.total:void 0,a=null!=c?Math.min(i,c):i,s=Math.max(0,a-n),l=r(s);n=Math.max(n,a),e({loaded:a,total:c,progress:c?a/c:void 0,bytes:s,rate:l||void 0,estimated:l&&c?(c-a)/l:void 0,event:o,lengthComputable:null!=c,[t?"download":"upload"]:!0})},o)},r4=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},r6=e=>(...t)=>rb.asap(()=>e(...t)),r8=rz.hasStandardBrowserEnv?(i=new URL(rz.origin),c=rz.navigator&&/(msie|trident)/i.test(rz.navigator.userAgent),e=>(e=new URL(e,rz.origin),i.protocol===e.protocol&&i.host===e.host&&(c||i.port===e.port))):()=>!0,r9=rz.hasStandardBrowserEnv?{write(e,t,o,n,r,i,c){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];rb.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),rb.isString(n)&&a.push(`path=${n}`),rb.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),rb.isString(c)&&a.push(`SameSite=${c}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r7=/^https?:(?!\/\/)/i,ie=/[\t\n\r]/g;function it(e,t){if("string"==typeof e&&r7.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ie,"")))throw new rD('Invalid URL: missing "//" after protocol',rD.ERR_INVALID_URL,t)}function io(e,t,o,n){it(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(it(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ir=e=>e instanceof rk?{...e}:e;function ii(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rb.isPlainObject(e)&&rb.isPlainObject(t)?rb.merge.call({caseless:n},e,t):rb.isPlainObject(t)?rb.merge({},t):rb.isArray(t)?t.slice():t}function r(e,t,o,r){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rb.isUndefined(t))return n(void 0,t)}function c(e,t){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(o,r,i){return rb.hasOwnProp(t,i)?n(o,r):rb.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:a,headers:(e,t,o)=>r(ir(e),ir(t),o,!0)};return rb.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rb.hasOwnProp(s,n)?s[n]:r,c=i(rb.hasOwnProp(e,n)?e[n]:void 0,rb.hasOwnProp(t,n)?t[n]:void 0,n);rb.isUndefined(c)&&i!==a||(o[n]=c)}),rb.hasOwnProp(t,"validateStatus")&&rb.isUndefined(t.validateStatus)&&!1===function(o){let n=rb.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rb.isUndefined(n)){if(!rb.isPlainObject(n))return;else if(rb.hasOwnProp(n,o))return n[o]}let r=rb.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rb.isPlainObject(r)&&rb.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rb.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],ia=function(e){let t=ii({},e),o=e=>rb.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),c=o("xsrfCookieName"),a=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=a=rk.from(a),t.url=rP(io(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rb.getSafeProp(s,"username")||"",o=rb.getSafeProp(s,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rD.from(t,rD.ERR_BAD_OPTION_VALUE,e)}}if(rb.isFormData(n))if(rz.hasStandardBrowserEnv||rz.hasStandardBrowserWebWorkerEnv||rb.isReactNative(n))a.setContentType(void 0);else{var m,u;rb.isFunction(n.getHeaders)&&(m=a,u=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?m.set(u):Object.entries(u||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&m.set(e,t)}))}if(rz.hasStandardBrowserEnv&&(rb.isFunction(r)&&(r=r(t)),!0===r||null==r&&r8(t.url))){let e=i&&c&&r9.read(c);e&&a.set(i,e)}return t},is="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,c,a,s,l,d=ia(e),f=d.data,m=rk.from(d.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:F}=d;function h(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let p=new XMLHttpRequest;function g(){if(!p)return;let n=rk.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r1(function(e){t(e),h()},function(e){o(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}p.open(d.method.toUpperCase(),d.url,!0),p.timeout=d.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(g)},p.onabort=function(){p&&(o(new rD("Request aborted",rD.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let n=new rD(t&&t.message?t.message:"Network Error",rD.ERR_NETWORK,e,p);n.event=t||null,o(n),h(),p=null},p.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||rM;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rD(t,n.clarifyTimeoutError?rD.ETIMEDOUT:rD.ECONNABORTED,e,p)),h(),p=null},void 0===f&&m.setContentType(null),"setRequestHeader"in p&&rb.forEach(ry(m),function(e,t){p.setRequestHeader(t,e)}),rb.isUndefined(d.withCredentials)||(p.withCredentials=!!d.withCredentials),u&&"json"!==u&&(p.responseType=d.responseType),F&&([c,s]=r5(F,!0),p.addEventListener("progress",c)),b&&p.upload&&([i,a]=r5(b),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(r=t=>{p&&(o(!t||t.type?new r0(null,e,p):t),p.abort(),h(),p=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(y&&!rz.protocols.includes(y)){o(new rD("Unsupported protocol "+y+":",rD.ERR_BAD_REQUEST,e)),h();return}p.send(f||null)})},il=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},id=async function*(e,t){for await(let o of im(e))yield*il(o,t)},im=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iu=(e,t,o,n)=>{let r,i=id(e,t),c=0,a=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let r=n.byteLength;if(o){let e=c+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},ib=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,o)=>t+2<o&&ib(e.charCodeAt(t+1))&&ib(e.charCodeAt(t+2)),{isFunction:ih}=rb,ip=e=>{if(!rb.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ig=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iy=e=>{let t,o=void 0!==rb.global&&null!==rb.global?rb.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:c,Response:a}=e=rb.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?ih(i):"function"==typeof fetch,l=ih(c),d=ih(a);if(!s)return!1;let f=s&&ih(n),m=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new c(e).arrayBuffer())),u=l&&f&&ig(()=>{let e=!1,t=new c(rz.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&ig(()=>rb.isReadableStream(new a("").body)),F={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{F[e]||(F[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rD(`Response type '${e}' is not supported`,rD.ERR_NOT_SUPPORT,o)})});let h=async e=>{if(null==e)return 0;if(rb.isBlob(e))return e.size;if(rb.isSpecCompliantForm(e)){let t=new c(rz.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rb.isArrayBufferView(e)||rb.isArrayBuffer(e)?e.byteLength:(rb.isURLSearchParams(e)&&(e+=""),rb.isString(e))?(await m(e)).byteLength:void 0},p=async(e,t)=>{let o=rb.toFiniteNumber(e.getContentLength());return null==o?h(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:m,timeout:g,onDownloadProgress:y,onUploadProgress:v,responseType:E,headers:A,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:D}=ia(e),_=rb.isNumber(C)&&C>-1,S=rb.isNumber(D)&&D>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,c();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rD?t:new r0(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rD(`timeout of ${t}ms exceeded`,rD.ETIMEDOUT))},t),c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:a}=o;return a.unsubscribe=()=>rb.asap(c),a})([d,m&&m.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rD("Request body larger than maxBodyLength limit",rD.ERR_BAD_REQUEST,e,T);try{var I;let i,d,m,g,P=(d="auth",rb.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rb.getSafeProp(P,"username")||"",t=rb.getSafeProp(P,"password")||"";i={username:e,password:t}}if(m=(I=o).indexOf("://"),g=I,-1!==m&&(g=g.slice(m+3)),g.includes("@")||g.includes(":")){let e=new URL(o,rz.origin);if(!i&&(e.username||e.password)){let t=ip(e.username),o=ip(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;A.delete("authorization"),A.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(_&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);ib(t)&&ib(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let c=3*Math.floor(e/4)-(o||0);return c>0?c:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iF(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await h(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>D))throw N()}let L=S&&(rb.isReadableStream(s)||rb.isStream(s)),M=(e,t,o)=>iu(e,65536,e=>{if(S&&e>D)throw R=N();t&&t(e)},o);if(u&&"get"!==n&&"head"!==n&&(v||L)){if(t=null==t?await p(A,s):t,0!==t||L){let e,n=new c(o,{method:"POST",body:s,duplex:"half"});if(rb.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){let[e,o]=v&&r4(t,r5(r6(v)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!u&&"get"!==n&&"head"!==n)throw new rD("Stream request bodies are not supported by the current fetch implementation",rD.ERR_NOT_SUPPORT,e,T);rb.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in c.prototype;if(rb.isFormData(s)){let e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:O,method:n.toUpperCase(),headers:ry(A.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new c(o,j);let G=await (l?x(T,k):x(o,j)),q=rk.from(G.headers);if(_){let t=rb.toFiniteNumber(q.getContentLength());if(null!=t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}let H=b&&("stream"===E||"response"===E);if(b&&G.body&&(y||_||H&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=G[e]});let o=rb.toFiniteNumber(q.getContentLength()),[n,r]=y&&r4(o,r5(r6(y),!0))||[];G=new a(iu(G.body,65536,t=>{if(_&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let V=await F[rb.findKey(F,E)||"text"](G,e);if(_&&!b&&!H){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof r?new r().encode(V).byteLength:V.length)),"number"==typeof t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}return!H&&B&&B(),await new Promise((t,o)=>{r1(t,o,{data:V,headers:rk.from(G.headers),status:G.status,statusText:G.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rD){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rD)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rD("Network Error",rD.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rD.from(t,t&&t.code,e,T,t&&t.response)}}},iv=new Map,iE=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],c=i.length,a,s,l=iv;for(;c--;)a=i[c],void 0===(s=l.get(a))&&l.set(a,s=c?new Map:iy(t)),l=s;return s};iE();let iA={http:null,xhr:is,fetch:{get:iE}};rb.forEach(iA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iw=e=>`- ${e}`,ik=e=>rb.isFunction(e)||null===e||!1===e,iC=function(e,t){let o,n,{length:r}=e=rb.isArray(e)?e:[e],i={};for(let c=0;c<r;c++){let r;if(n=o=e[c],!ik(o)&&void 0===(n=iA[(r=String(o)).toLowerCase()]))throw new rD(`Unknown adapter '${r}'`);if(n&&(rb.isFunction(n)||(n=n.get(t))))break;i[r||"#"+c]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rD("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iw).join("\n"):" "+iw(e[0]):"as no adapter specified"),rD.ERR_NOT_SUPPORT)}return n};function iD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r0(null,e)}function i_(e){return iD(e),e.headers=rk.from(e.headers),e.data=rQ.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iC(e.adapter||rX.adapter,e)(e).then(function(t){iD(e),e.response=t;try{t.data=rQ.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rk.from(t.headers),t},function(t){if(!rZ(t)&&(iD(e),t&&t.response)){e.response=t.response;try{t.response.data=rQ.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rk.from(t.response.headers)}return Promise.reject(t)})}let iS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iS[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let ix={};iS.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rD(n(r," has been removed"+(t?" in "+t:"")),rD.ERR_DEPRECATED);return t&&!ix[r]&&(ix[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iS.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iO=function(e,t,o){if("object"!=typeof e||null===e)throw new rD("options must be an object",rD.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],c=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(c){let t=e[i],o=void 0===t||c(t,i,e);if(!0!==o)throw new rD("option "+i+" must be "+o,rD.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rD("Unknown option "+i,rD.ERR_BAD_OPTION)}};class iT{constructor(e){this.defaults=e||{},this.interceptors={request:new rL,response:new rL}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:c}=t=ii(this.defaults,t);void 0!==r&&iO(r,{silentJSONParsing:iS.transitional(iS.boolean),forcedJSONParsing:iS.transitional(iS.boolean),clarifyTimeoutError:iS.transitional(iS.boolean),legacyInterceptorReqResOrdering:iS.transitional(iS.boolean),advertiseZstdAcceptEncoding:iS.transitional(iS.boolean),validateStatusUndefinedResolves:iS.transitional(iS.boolean)},!1),null!=i&&(rb.isFunction(i)?t.paramsSerializer={serialize:i}:iO(i,{encode:iS.function,serialize:iS.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iO(t,{baseUrl:iS.spelling("baseURL"),withXsrfToken:iS.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=c&&rb.merge(c.common,c[t.method]);c&&rb.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete c[e]}),t.headers=rk.concat(a,c);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||rM;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[i_.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let m=t;for(;f<n;){let e=s[f++],t=s[f++];try{m=e(m)}catch(e){t.call(this,e);break}}try{o=i_.call(this,m)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rP(io((e=ii(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rb.forEach(["delete","get","head","options"],function(e){iT.prototype[e]=function(t,o){return this.request(ii(o||{},{method:e,url:t,data:o&&rb.hasOwnProp(o,"data")?o.data:void 0}))}}),rb.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(ii(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iT.prototype[e]=t(),"query"!==e&&(iT.prototype[e+"Form"]=t(!0))});let iB=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new r0(e,n,r),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iR).forEach(([e,t])=>{iR[t]=e});let iN=function e(t){let o=new iT(t),n=nI(iT.prototype.request,o);return rb.extend(n,iT.prototype,o,{allOwnKeys:!0}),rb.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(ii(t,o))},n}(rX);iN.Axios=iT,iN.CanceledError=r0,iN.CancelToken=iB,iN.isCancel=rZ,iN.VERSION="1.18.1",iN.toFormData=rT,iN.AxiosError=rD,iN.Cancel=iN.CanceledError,iN.all=function(e){return Promise.all(e)},iN.spread=function(e){return function(t){return e.apply(null,t)}},iN.isAxiosError=function(e){return rb.isObject(e)&&!0===e.isAxiosError},iN.mergeConfig=ii,iN.AxiosHeaders=rk,iN.formToJSON=e=>rK(rb.isHTMLForm(e)?new FormData(e):e),iN.getAdapter=iC,iN.HttpStatusCode=iR,iN.default=iN;class iI{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:i3`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i3`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i3`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i3`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:i3`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:i3`alarm/${e}/assets`,queryParams:t,options:o})}}class iP{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i3`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i3`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i3`apps/info`,options:e})}}class iL{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i3`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`dashboard/${e}/${t}`,options:o})}}class iM{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i3`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i3`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i3`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i3`syslog/event`,queryParams:e,options:t})}}class iU{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i3`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:i3`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/status/${e}`,options:t})}}class ij{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i3`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i3`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i3`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i3`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i3`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:i3`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}`,options:o})}}class iG{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class iq{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i3`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i3`info`,options:e})}}class iH{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i3`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i3`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i3`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`realm/${e}`,data:t,options:o})}}class i${constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i3`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}}class iV{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i3`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i3`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i3`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/${e}`,data:t,options:o})}}class iW{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i3`console/register`,data:e,options:t})}}class iz{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i3`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i3`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i3`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:i3`provisioning/${e}`,data:t,options:o})}}class iY{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i3`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i3`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i3`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i3`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i3`map/upload`,queryParams:e,options:t})}}class iK{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}}class iJ{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i3`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:i3`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i3`configuration/manager/image/${e}`,options:t})}}class iX{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/datapoint/${e}/${t}`,data:o,options:n})}}class iQ{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i3`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i3`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i3`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/delivered`,queryParams:t,options:o})}}class iZ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i3`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i3`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i3`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i3`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i3`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i3`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:i3`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/child`,queryParams:t,options:o})}}class i0{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i3`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i3`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i3`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i3`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:i3`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:i3`service/${e}/${t}`,options:o})}}class i1{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i3`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class i2{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:i3`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i3`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/valueDescriptors`,queryParams:e,options:t})}}function i3(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class i5{constructor(e,t=iN.create()){this._alarmResource=new i6(e,t),this._appResource=new i8(e,t),this._dashboardResource=new i9(e,t),this._syslogResource=new i7(e,t),this._gatewayClientResource=new ce(e,t),this._userResource=new ct(e,t),this._agentResource=new co(e,t),this._statusResource=new cn(e,t),this._realmResource=new cr(e,t),this._flowResource=new ci(e,t),this._rulesResource=new cc(e,t),this._consoleResource=new ca(e,t),this._provisioningResource=new cs(e,t),this._mapResource=new cl(e,t),this._assetPredictedDatapointResource=new cd(e,t),this._configurationResource=new cf(e,t),this._assetDatapointResource=new cm(e,t),this._notificationResource=new cu(e,t),this._assetResource=new cb(e,t),this._externalServiceResource=new cF(e,t),this._gatewayServiceResource=new ch(e,t),this._assetModelResource=new cp(e,t),this._assetResource=new cb(e,t)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class i4{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class i6 extends iI{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i8 extends iP{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i9 extends iL{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i7 extends iM{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ce extends iU{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ct extends ij{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class co extends iG{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cn extends iq{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cr extends iH{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ci extends i${constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cc extends iV{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ca extends iW{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cs extends iz{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cl extends iY{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cd extends iK{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cf extends iJ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cm extends iX{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cu extends iQ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cb extends iZ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cF extends i0{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ch extends i1{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cp extends i2{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}var cg=o(8183),cy=o.n(cg);iN.isAxiosError;let cv=new class{get api(){return this._client}constructor(){this._axiosInstance=iN.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new i5(e,this._axiosInstance)}};var cE=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};(ev=tA||(tA={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let cA="SUBSCRIBED:",cw="UNAUTHORIZED:",ck="TRIGGERED:",cC="EVENT:";class cD{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new nO,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nO};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return cE(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+cD._subscriptionCounter++;if(!this._assetEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===c7.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,c="AttributeEvent"+cD._subscriptionCounter++;if(!this._attributeEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let a=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===c7.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(c,a),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+c,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(c)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&a({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),c&&this.unsubscribe(c),t}return c})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<c_.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(c_.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cD.MIN_RECONNECT_DELAY=0,cD.MAX_RECONNECT_DELAY=3e4,cD._subscriptionCounter=0;class c_ extends cD{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+c7.config.realm;return this._connectDeferred=new nO,(c7.authenticated?c7.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(cA)){let e=JSON.parse(t.substring(cA.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(ck)){let e=JSON.parse(t.substring(ck.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cC)){let e=JSON.parse(t.substring(cC.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new nO,e.subscriptionId||(e.subscriptionId=c_._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=cC+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new nO;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cC+JSON.stringify(e)),t.promise}}c_._subscriptionCounter=1;let cS=["__proto__","constructor","prototype"];function cx(e){return!("string"!=typeof e||0===e.length||e.length>128||cS.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cO(e){return!(!cx(e)||e.indexOf("/")>-1)}let cT={lng:cO,ns:function(e){return cx(e)}};function cB(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cR(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cN=/\{\{(.+?)\}\}/g;function cI(e,t){let o=!1,n=e.replace(cN,(e,n)=>{let r=n.trim();if(cS.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let c=cT[r]||cO,a=String(i).split("+");for(let t of a)if(!c(t))return o=!0,e;return a.join("+")});return o?null:n}let cP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:cP&&"function"==typeof cP.fetch&&(e=cP.fetch);let cL=cR()&&cP?cP.XMLHttpRequest:void 0,cM="function"==typeof ActiveXObject&&cP?cP.ActiveXObject:void 0,cU=["__proto__","constructor","prototype"],cj=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))cU.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},cG=(t,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let e=r(t,o);if(e instanceof Promise)return void e.then(i).catch(n)}"function"==typeof fetch?fetch(t,o).then(i).catch(n):e(t,o).then(i).catch(n)},cq=(t,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),e&&0!==o.indexOf("file:")){var i=o,c=n,a=r;t.queryStringParams&&(i=cj(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),c&&(e["Content-Type"]="application/json");let s="function"==typeof t.requestOptions?t.requestOptions(c):t.requestOptions,l={method:c?"POST":"GET",body:c?t.stringify(c):void 0,headers:e,...t._omitFetchOptions?{}:s},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{cG(i,l,a,d)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return a(e);try{Object.keys(s).forEach(e=>{delete l[e]}),cG(i,l,a,d),t._omitFetchOptions=!0}catch(e){a(e)}}return}if(cR()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=cj("",l).slice(1)),t.queryStringParams&&(s=cj(s,t.queryStringParams));try{let e=cL?new cL:new cM("MSXML2.XMLHTTP.3.0");e.open(l?"POST":"GET",s,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,l&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let o=t.customHeaders;if(o="function"==typeof o?o():o)for(let t of Object.keys(o))cU.indexOf(t)>-1||e.setRequestHeader(t,o[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var cH=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:cq,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,c;let a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,o)),(a=(c=i=a)&&"function"==typeof c.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let c=cI(i,{lng:e.join("+"),ns:o.join("+")});if(null==c)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cB).join(", ")+"] namespaces=["+o.map(cB).join(", ")+"]"),!1);this.loadUrl(c,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=cB(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let c,a;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+cB(e.message),!0)}if(e)return t(e,!1);try{c="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){a="failed parsing "+i+" to json"}if(a)return t(a,!1);t(null,c)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),c=0,a=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=cI(n,{lng:o,ns:t});if(null==l){c+=1,r&&c===e.length&&r(a,s);return}this.options.request(this.options,l,i,(t,o)=>{c+=1,a.push(t),s.push(o),c===e.length&&"function"==typeof r&&r(a,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};cH.type="backend";let c$=e=>(...t)=>({_$litDirective$:e,values:t});class cV{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cW extends cV{constructor(e){if(super(e),this.it=oi,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===oi||null==e)return this._t=void 0,this.it=e;if(e===or)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cW.directiveName="unsafeHTML",cW.resultType=1,c$(cW);class cz extends cW{}cz.directiveName="unsafeSVG",cz.resultType=2;let cY=c$(cz),cK={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cJ=function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};class cX extends CustomEvent{constructor(){super(cX.NAME,{bubbles:!0,composed:!0})}}cX.NAME="or-iconset-added";let cQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return on``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):on``}},cZ=class extends ow{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tB`
10
+ `;class ow extends ov{static finalizeStyles(e){return[oA,...super.finalizeStyles(e)]}}let ok=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oC={attribute:!0,type:String,converter:t$,reflect:!1,hasChanged:tV};function oD(e){return(t,o)=>{let n;return"object"==typeof o?((e=oC,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function o_(e){return oD({...e,state:!0,attribute:!1})}let oS=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function ox(e,t){return(o,n,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:c}="object"==typeof n?o:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return oS(o,n,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&c.call(this,e),e}})}return oS(o,n,{get(){return i(this)}})}}(f=ew||(ew={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(m=ek||(ek={})).LOW="LOW",m.MEDIUM="MEDIUM",m.HIGH="HIGH",(u=eC||(eC={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eD||(eD={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(F=e_||(e_={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(h=eS||(eS={})).CREATE="CREATE",h.READ="READ",h.UPDATE="UPDATE",h.DELETE="DELETE",(p=ex||(ex={})).NONE="NONE",p.FORECAST="FORECAST",p.SETPOINT="SETPOINT",(g=eO||(eO={})).DISCONNECTED="DISCONNECTED",g.CONNECTING="CONNECTING",g.DISCONNECTING="DISCONNECTING",g.CONNECTED="CONNECTED",g.DISABLED="DISABLED",g.WAITING="WAITING",g.ERROR="ERROR",g.STOPPED="STOPPED",(y=eT||(eT={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(v=eB||(eB={})).TOGGLE="TOGGLE",v.INCREMENT="INCREMENT",v.DECREMENT="DECREMENT",v.NEGATE="NEGATE",(E=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",E.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",E.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",E.INVALID_VALUE="INVALID_VALUE",E.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",E.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",E.CANNOT_PROCESS="CANNOT_PROCESS",E.QUEUE_FULL="QUEUE_FULL",E.UNKNOWN="UNKNOWN",E.ASSET_ID_MISSING="ASSET_ID_MISSING",E.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=eN||(eN={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(w=eI||(eI={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(k=eP||(eP={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",k.KEEP_LAYOUT="KEEP_LAYOUT",k.REDIRECT="REDIRECT",k.BLOCK_DEVICE="BLOCK_DEVICE",(C=eL||(eL={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=eM||(eM={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(_=eU||(eU={})).MIN="MIN",_.AVG="AVG",_.MAX="MAX",_.DIFFERENCE="DIFFERENCE",_.COUNT="COUNT",_.SUM="SUM",_.MODE="MODE",_.MEDIAN="MEDIAN",(S=ej||(ej={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(x=eG||(eG={})).HTTPS="HTTPS",x.HTTP="HTTP",x.TCP="TCP",(O=eq||(eq={})).GET="GET",O.POST="POST",O.PUT="PUT",O.DELETE="DELETE",O.OPTIONS="OPTIONS",O.PATCH="PATCH",(T=eH||(eH={})).KEYCLOAK="KEYCLOAK",T.NONE="NONE",(B=e$||(e$={})).WEBSOCKET="WEBSOCKET",B.POLLING="POLLING",(R=eV||(eV={})).INTERNAL="INTERNAL",R.CLIENT="CLIENT",R.GLOBAL_RULESET="GLOBAL_RULESET",R.REALM_RULESET="REALM_RULESET",R.ASSET_RULESET="ASSET_RULESET",(N=eW||(eW={})).REALM="REALM",N.USER="USER",N.ASSET="ASSET",N.CUSTOM="CUSTOM",(I=ez||(ez={})).NORMAL="NORMAL",I.HIGH="HIGH",(P=eY||(eY={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(L=eK||(eK={})).ALWAYS="ALWAYS",L.ONCE="ONCE",L.HOURLY="HOURLY",L.DAILY="DAILY",L.WEEKLY="WEEKLY",L.MONTHLY="MONTHLY",L.ANNUALLY="ANNUALLY",(M=eJ||(eJ={})).TITLE="TITLE",M.SOURCE="SOURCE",M.STATUS="STATUS",M.SENT_ON="SENT_ON",M.DELIVERED_ON="DELIVERED_ON",(U=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",(j=eQ||(eQ={})).PRIVATE="PRIVATE",j.PROTECTED="PROTECTED",j.PUBLIC="PUBLIC",(G=eZ||(eZ={})).EXACT="EXACT",G.BEGIN="BEGIN",G.END="END",G.CONTAINS="CONTAINS",(q=e0||(e0={})).EQUALS="EQUALS",q.GREATER_THAN="GREATER_THAN",q.GREATER_EQUALS="GREATER_EQUALS",q.LESS_THAN="LESS_THAN",q.LESS_EQUALS="LESS_EQUALS",q.BETWEEN="BETWEEN",(H=e1||(e1={})).CREATED_ON="CREATED_ON",H.NAME="NAME",H.ASSET_TYPE="ASSET_TYPE",H.PARENT_ID="PARENT_ID",H.REALM="REALM",(V=e2||(e2={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(W=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",W.ALL="ALL",W.NONE="NONE",(z=e5||(e5={})).AND="AND",z.OR="OR",(Y=e4||(e4={})).CREATED_ON="CREATED_ON",Y.FIRST_NAME="FIRST_NAME",Y.LAST_NAME="LAST_NAME",Y.USERNAME="USERNAME",Y.EMAIL="EMAIL",(K=e6||(e6={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(J=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",J.GROOVY="GROOVY",J.JSON="JSON",J.FLOW="FLOW",(X=e9||(e9={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e7||(e7={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=to||(to={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(eo=tn||(tn={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(en=tr||(tr={})).ADD="ADD",en.ADD_OR_REPLACE="ADD_OR_REPLACE",en.REPLACE="REPLACE",en.DELETE="DELETE",en.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=tc||(tc={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.WRITE_SERVICES="write:services",ei.WRITE_USER="write:user",ei.WRITE_ADMIN="write:admin",ei.WRITE_LOGS="write:logs",ei.WRITE_ASSETS="write:assets",ei.WRITE_ATTRIBUTES="write:attributes",ei.WRITE_RULES="write:rules",ei.WRITE_INSIGHTS="write:insights",ei.WRITE_ALARMS="write:alarms",ei.WRITE_NOTIFICATIONS="write:notifications",ei.READ="read",ei.WRITE="write",(ec=ta||(ta={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(ea=ts||(ts={})).AVAILABLE="AVAILABLE",ea.UNAVAILABLE="UNAVAILABLE",(es=tl||(tl={})).ASSET="ASSET",es.AGENT="AGENT",es.NOTIFICATION="NOTIFICATION",es.ALARM="ALARM",es.RULES="RULES",es.PROTOCOL="PROTOCOL",es.GATEWAY="GATEWAY",es.MODEL_AND_VALUES="MODEL_AND_VALUES",es.API="API",es.DATA="DATA",(el=td||(td={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(ed=tf||(tf={})).NUMERIC="numeric",ed.DIGIT_2="2-digit",ed.FULL="full",ed.LONG="long",ed.MEDIUM="medium",ed.SHORT="short",ed.NARROW="narrow",(ef=tm||(tm={})).SECONDLY="SECONDLY",ef.MINUTELY="MINUTELY",ef.HOURLY="HOURLY",ef.DAILY="DAILY",ef.WEEKLY="WEEKLY",ef.MONTHLY="MONTHLY",ef.YEARLY="YEARLY",(em=tu||(tu={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eu=tb||(tb={})).JAPANESE="JAPANESE",eu.BUDDHIST="BUDDHIST",eu.ROC="ROC",eu.ISLAMIC="ISLAMIC",eu.ISO8601="ISO8601",eu.CHINESE="CHINESE",eu.ETHIOPIC="ETHIOPIC",eu.HEBREW="HEBREW",eu.GREGORIAN="GREGORIAN",(eb=tF||(tF={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eF=th||(th={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eF.MAILAGENT="MailAgent",eF.UDPAGENT="UDPAgent",eF.ROOMASSET="RoomAsset",eF.CITYASSET="CityAsset",eF.VENTILATIONASSET="VentilationAsset",eF.TRADFRILIGHTASSET="TradfriLightAsset",eF.CONSOLEASSET="ConsoleAsset",eF.PRESENCESENSORASSET="PresenceSensorAsset",eF.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eF.LIGHTASSET="LightAsset",eF.KNXAGENT="KNXAgent",eF.THETHINGSSTACKAGENT="TheThingsStackAgent",eF.PLUGASSET="PlugAsset",eF.CHIRPSTACKAGENT="ChirpStackAgent",eF.WEATHERASSET="WeatherAsset",eF.THINGASSET="ThingAsset",eF.WEBSOCKETAGENT="WebsocketAgent",eF.TCPAGENT="TCPAgent",eF.GATEWAYASSET="GatewayAsset",eF.SERIALAGENT="SerialAgent",eF.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eF.PARKINGASSET="ParkingAsset",eF.TRADFRIPLUGASSET="TradfriPlugAsset",eF.SIMULATORAGENT="SimulatorAgent",eF.SNMPAGENT="SNMPAgent",eF.GROUPASSET="GroupAsset",eF.BUILDINGASSET="BuildingAsset",eF.MODBUSSERIALAGENT="ModbusSerialAgent",eF.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eF.MQTTAGENT="MQTTAgent",eF.VELBUSTCPAGENT="VelbusTCPAgent",eF.ARTNETLIGHTASSET="ArtnetLightAsset",eF.VELBUSSERIALAGENT="VelbusSerialAgent",eF.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eF.MICROPHONEASSET="MicrophoneAsset",eF.MODBUSTCPAGENT="ModbusTcpAgent",eF.ZWAVEAGENT="ZWaveAgent",eF.HTTPAGENT="HTTPAgent",eF.DOORASSET="DoorAsset",eF.THERMOSTATASSET="ThermostatAsset",eF.SHIPASSET="ShipAsset",(eh=tp||(tp={})).COLOURRGB="colourRGB",eh.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eh.PRICEHOURLY="priceHourly",eh.MQTTPORT="MQTTPort",eh.PINGDISABLED="pingDisabled",eh.FLOW="flow",eh.CHILDASSETTYPE="childAssetType",eh.LASTACCESS="lastAccess",eh.POSITION="position",eh.NETWORKKEY="networkKey",eh.UNIVERSE="universe",eh.ROUTINGMODE="routingMode",eh.MSSINUMBER="MSSINumber",eh.LASTWILLRETAIN="lastWillRetain",eh.LASTWILLTOPIC="lastWillTopic",eh.SERIALBAUDRATE="serialBaudrate",eh.SUBSCRIBEQOS="subscribeQos",eh.LEDCOUNT="lEDCount",eh.LOCKED="locked",eh.CLOUDCOVERAGE="cloudCoverage",eh.BASEURL="baseURL",eh.PROTOCOL="protocol",eh.REQUIREDVALUES="requiredValues",eh.REGION="region",eh.CONSOLEPLATFORM="consolePlatform",eh.GATEWAYSTATUS="gatewayStatus",eh.NO2LEVEL="NO2Level",eh.ATMOSPHERICPRESSURE="atmosphericPressure",eh.SERIALPORT="serialPort",eh.APPLICATIONID="applicationId",eh.TAGS="tags",eh.UNLOCK="unlock",eh.CHECKINTERVALSECONDS="checkIntervalSeconds",eh.LOCATION="location",eh.CLIENTSECRET="clientSecret",eh.WINDDIRECTION="windDirection",eh.WINDSPEED="windSpeed",eh.PARTICLESPM10="particlesPM10",eh.APPLICATIONKEY="applicationKey",eh.LENGTH="length",eh.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eh.USERNAMEPASSWORD="usernamePassword",eh.WATERLEVEL="waterLevel",eh.CONNECTHEADERS="connectHeaders",eh.CONSOLENAME="consoleName",eh.WEBSOCKETQUERY="websocketQuery",eh.PREFERHTML="preferHTML",eh.PARITY="parity",eh.COOLING="cooling",eh.POLLINGMILLIS="pollingMillis",eh.SOILTEMPERATURE="soilTemperature",eh.SUNIRRADIANCE="sunIrradiance",eh.MESSAGEMAXLENGTH="messageMaxLength",eh.WINDGUSTSPEED="windGustSpeed",eh.LIGHTID="lightId",eh.PROXYADDRESS="proxyAddress",eh.REQUESTQUERYPARAMETERS="requestQueryParameters",eh.MQTTHOST="MQTTHost",eh.SECUREGRPC="secureGRPC",eh.MODEL="model",eh.STREET="street",eh.MANUFACTURER="manufacturer",eh.DELETEPROCESSEDMAIL="deleteProcessedMail",eh.RESUMESESSION="resumeSession",eh.ONOFF="onOff",eh.APIKEY="ApiKey",eh.CITY="city",eh.PRESENCE="presence",eh.SPACESOCCUPIED="spacesOccupied",eh.STARTTLS="startTLS",eh.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eh.WEBSOCKETPATH="websocketPath",eh.AGENTSTATUS="agentStatus",eh.PRICEDAILY="priceDaily",eh.COUNTGROWTHMINUTE="countGrowthMinute",eh.IMONUMBER="IMONumber",eh.ATTRIBUTION="Attribution",eh.TENANTID="tenantId",eh.REQUESTHEADERS="requestHeaders",eh.HOST="host",eh.COUNTOUTMINUTE="countOutMinute",eh.MESSAGECHARSET="messageCharset",eh.CERTIFICATEALIAS="certificateAlias",eh.EMAIL="email",eh.BINDPORT="bindPort",eh.CONSOLEVERSION="consoleVersion",eh.PARTICLESPM1="particlesPM1",eh.MTU="mtu",eh.SPEED="speed",eh.MESSAGESTRIPDELIMITER="messageStripDelimiter",eh.AREA="area",eh.COUNTRY="country",eh.SHIPTYPE="shipType",eh.CONNECTSUBSCRIPTIONS="connectSubscriptions",eh.RELATIVEHUMIDITY="relativeHumidity",eh.SOURCEADDRESS="sourceAddress",eh.RAINFALL="rainfall",eh.OAUTHGRANT="oAuthGrant",eh.OZONELEVEL="ozoneLevel",eh.SEQUENCENUMBER="sequenceNumber",eh.COUNTINMINUTE="countInMinute",eh.PORT="port",eh.SUNALTITUDE="sunAltitude",eh.COUNTOUT="countOut",eh.ROOMNUMBER="roomNumber",eh.TUNNELINGSUPPORTED="tunnelingSupported",eh.ENINUMBER="ENINumber",eh.PARTICLESPM2_5="particlesPM2_5",eh.AGENTDISABLED="agentDisabled",eh.DISABLED="disabled",eh.COUNTIN="countIn",eh.MESSAGESOURCEADDRESS="messageSourceAddress",eh.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eh.TIMEINJECTIONINTERVAL="timeInjectionInterval",eh.TEMPERATURESETPOINT="temperatureSetpoint",eh.CONSOLEPROVIDERS="consoleProviders",eh.COUNTTOTAL="countTotal",eh.SPACESBUFFER="spacesBuffer",eh.DEVICECONFIG="deviceConfig",eh.SPACESTOTAL="spacesTotal",eh.BINDHOST="bindHost",eh.FANSPEED="fanSpeed",eh.MESSAGECONVERTBINARY="messageConvertBinary",eh.NOTES="notes",eh.MAILFOLDERNAME="mailFolderName",eh.MESSAGEDELIMITERS="messageDelimiters",eh.TEMPERATURE="temperature",eh.SUNZENITH="sunZenith",eh.SNMPVERSIONVALUE="SNMPVersionValue",eh.BRIGHTNESS="brightness",eh.POSTALCODE="postalCode",eh.SPACESOPEN="spacesOpen",eh.HUMIDITY="humidity",eh.SOUNDLEVEL="soundLevel",eh.SECUREMODE="secureMode",eh.DIRECTION="direction",eh.STOPBITS="stopbits",eh.UVINDEX="uVIndex",eh.CONNECTURL="connectURL",eh.CLIENTID="clientId",eh.NATMODE="NATMode",eh.UPDATEONWRITE="updateOnWrite",eh.LASTWILLPAYLOAD="lastWillPayload",eh.GROUPID="groupId",eh.FOLLOWREDIRECTS="followRedirects",eh.SUNAZIMUTH="sunAzimuth",eh.MESSAGECONVERTHEX="messageConvertHex",eh.WEBSOCKETMODE="websocketMode",eh.COLOURTEMPERATURE="colourTemperature",eh.PUBLISHQOS="publishQos",eh.DATABITS="dataBits",(ep=tg||(tg={})).FORMAT="format",ep.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ep.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ep.SECRET="secret",ep.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ep.ATTRIBUTELINKS="attributeLinks",ep.RULERESETIMMEDIATE="ruleResetImmediate",ep.RULESTATE="ruleState",ep.AGENTLINKCONFIG="agentLinkConfig",ep.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ep.FORECAST="forecast",ep.STOREDATAPOINTS="storeDataPoints",ep.LABEL="label",ep.CONSTRAINTS="constraints",ep.UNITS="units",ep.USERCONNECTED="userConnected",ep.SHOWONDASHBOARD="showOnDashboard",ep.READONLY="readOnly",ep.MULTILINE="multiline",ep.ACCESSPUBLICWRITE="accessPublicWrite",ep.MOMENTARY="momentary",ep.AGENTLINK="agentLink",ep.ACCESSRESTRICTEDREAD="accessRestrictedRead",ep.ACCESSPUBLICREAD="accessPublicRead",(eg=ty||(ty={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tv||(tv={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tE||(tE={});class oO{static getAssetDescriptors(){return oO._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oO.getValueDescriptor(t)),o=t.jsonType?t:oO.getValueDescriptor(t.type)),!o&&e&&(o=oO.getValueDescriptor("JSON")),o}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}oO._assetTypeInfos=[],oO._metaItemDescriptors=[],oO._valueDescriptors=[];var oT=o(1001);function oB(e){return(oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oR(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oN(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:t+""}function oI(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oN(n.key),n)}}function oP(e,t,o){return t&&oI(e.prototype,t),o&&oI(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oL(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(e,t){return(oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oU(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oM(e,t)}function oj(e,t){if(t&&("object"==oB(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oL(e)}function oG(e){return(oG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oq(e,t,o){return(t=oN(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o$(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oV(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o$(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}o(4532);var oW={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},oz=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.init(t,o)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oW,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,oV(oV({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),oY=function(){function e(){oR(this,e),this.observers={}}return oP(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function oK(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function oJ(e){return null==e?"":""+e}function oX(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var c=n(i.shift());!e[c]&&o&&(e[c]=new o),e=Object.prototype.hasOwnProperty.call(e,c)?e[c]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function oQ(e,t,o){var n=oX(e,t,Object);n.obj[n.k]=o}function oZ(e,t){var o=oX(e,t),n=o.obj,r=o.k;if(n)return n[r]}function o0(e,t,o){var n=oZ(e,o);return void 0!==n?n:oZ(t,o)}function o1(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function o3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return o2[e]}):e}var o5="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,o4=[" ",",","?","!",";"];function o6(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o8(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o6(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o6(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var o9=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oP(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,t];o&&"string"!=typeof o&&(c=c.concat(o)),o&&"string"==typeof o&&(c=c.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(c=e.split("."));var a=oZ(this.data,c);return a||!i||"string"!=typeof o?a:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,c=0;c<r.length;++c){if(!i||"string"==typeof i[r[c]]&&c+1<r.length)return;if(void 0===i[r[c]]){for(var a=2,s=r.slice(c,c+a).join(n),l=i[s];void 0===l&&r.length>c+a;)a++,l=i[s=r.slice(c,c+a).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(c+a).join(n);if(d)return e(l,d,n);return}i=i[r[c]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var c=[e,t];o&&(c=c.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(c=e.split("."),n=t,t=c[1]),this.addNamespaces(t),oQ(this.data,c,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),n=o,o=t,t=c[1]),this.addNamespaces(t);var a=oZ(this.data,c)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(a,o,r):a=o8(o8({},a),o),oQ(this.data,c,a),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?o8(o8({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(oY),o7={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var no={},nn=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oL(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=c,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=oz.create("translator"),i}return oP(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=o4.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var c=e.indexOf(o);c>0&&!r.test(e.substring(0,c))&&(i=!0)}return i}(e,o,n);if(i&&!c){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oB(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,c=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),s=a.key,l=a.namespaces,d=l[l.length-1],f=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(m){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(u).concat(s),b):"".concat(d).concat(u).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),F=b&&b.res,h=b&&b.usedKey||s,p=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(F),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof F&&"boolean"!=typeof F&&"number"!=typeof F;if(v&&F&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,F,nt(nt({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=A,b):A}if(c){var w="[object Array]"===g,k=w?[]:{},C=w?p:h;for(var D in F)if(Object.prototype.hasOwnProperty.call(F,D)){var _="".concat(C).concat(c).concat(D);k[D]=this.translate(_,nt(nt({},t),{joinArrays:!1,ns:l})),k[D]===_&&(k[D]=F[D])}F=k}}else if(v&&"string"==typeof y&&"[object Array]"===g)(F=F.join(y))&&(F=this.extendTranslation(F,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(F)&&T&&(S=!0,F=R),this.isValidLookup(F)||(x=!0,F=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:F,I=T&&R!==F&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:F),c){var P=this.resolve(s,nt(nt({},t),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==F?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}F=this.extendTranslation(F,e,t,b,o),x&&F===s&&this.options.appendNamespaceToMissingKey&&(F="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(F="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?F:void 0):this.options.parseMissingKeyHandler(F))}return i?(b.res=F,b):F}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nt(nt({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var c,a="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var s=e.match(this.interpolator.nestingRegexp);c=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=nt(nt({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),a){var d=e.match(this.interpolator.nestingRegexp);c<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),c=0;c<e;c++)n[c]=arguments[c];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,m="string"==typeof f?[f]:f;return null!=e&&m&&m.length&&!1!==o.applyPostProcessor&&(e=o7.handle(m,e,t,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,c=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!c.isValidLookup(t)){var s=c.extractFromKey(e,a),l=s.key;o=l;var d=s.namespaces;c.options.fallbackNS&&(d=d.concat(c.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,m=f&&!a.ordinal&&0===a.count&&c.pluralResolver.shouldUseIntlApi(),u=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,b=a.lngs?a.lngs:c.languageUtils.toResolveHierarchy(a.lng||c.language,a.fallbackLng);d.forEach(function(e){c.isValidLookup(t)||(i=e,!no["".concat(b[0],"-").concat(e)]&&c.utils&&c.utils.hasLoadedNamespace&&!c.utils.hasLoadedNamespace(i)&&(no["".concat(b[0],"-").concat(e)]=!0,c.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(o){if(!c.isValidLookup(t)){r=o;var i,s=[l];if(c.i18nFormat&&c.i18nFormat.addLookupKeys)c.i18nFormat.addLookupKeys(s,l,o,e,a);else{f&&(d=c.pluralResolver.getSuffix(o,a.count,a));var d,b="".concat(c.options.pluralSeparator,"zero");if(f&&(s.push(l+d),m&&s.push(l+b)),u){var F="".concat(l).concat(c.options.contextSeparator).concat(a.context);s.push(F),f&&(s.push(F+d),m&&s.push(F+b))}}for(;i=s.pop();)c.isValidLookup(t)||(n=i,t=c.getResource(o,e,i,a))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(oY);function nr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ni=function(){function e(t){oR(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oz.create("languageUtils")}return oP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nr(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nc=[{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}],na={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ns=["v1","v2","v3"],nl={zero:0,one:1,two:2,few:3,many:4,other:5},nd=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.languageUtils=t,this.options=n,this.logger=oz.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nc.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:na[e.fc]}})}),o)}return oP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nl[e]-nl[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!ns.includes(this.options.compatibilityJSON)}}]),e}();function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nm(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:o3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?o1(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o1(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?o1(t.nestingPrefix):t.nestingPrefixEscaped||o1("$t("),this.nestingSuffix=t.nestingSuffix?o1(t.nestingSuffix):t.nestingSuffixEscaped||o1(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,c,a=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(a.formatSeparator)){var r=o0(t,s,e);return a.alwaysFormat?a.format(r,void 0,o,nm(nm(nm({},n),t),{},{interpolationkey:e})):r}var i=e.split(a.formatSeparator),c=i.shift().trim(),l=i.join(a.formatSeparator).trim();return a.format(o0(t,s,c),l,o,nm(nm(nm({},n),t),{},{interpolationkey:c}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?l(a.escape(e)):l(e)}}].forEach(function(t){for(c=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(m){i=r[0];continue}else a.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||a.useRawValueToEscape||(i=oJ(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),m?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++c>=a.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=nm({},i);function a(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,c)).match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{c=JSON.parse(r),t&&(c=nm(nm({},t),c))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete c.defaultValue,e}for(c.applyPostProcessor=!1,delete c.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(a.call(this,o[1].trim(),c),c))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=oJ(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nm(nm({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nb(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nF(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nb(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nh(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),c=t[i];return c||(c=e(n,r),t[i]=c),c(o)}}var np=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("formatter"),this.options=t,this.formats={number:nh(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nh(function(e,t){var o=new Intl.NumberFormat(e,nF(nF({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nh(function(e,t){var o=new Intl.DateTimeFormat(e,nF({},t));return function(e){return o.format(e)}}),relativetime:nh(function(e,t){var o=new Intl.RelativeTimeFormat(e,nF({},t));return function(e){return o.format(e,t.range||"day")}}),list:nh(function(e,t){var o=new Intl.ListFormat(e,nF({},t));return function(e){return o.format(e)}})},this.init(t)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nh(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return oH(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oH(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),c=i.formatName,a=i.formatOptions;if(r.formats[c]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[c](e,d,nF(nF(nF({},a),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(c)),e},e)}}]),e}();function ng(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ny(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nv=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e,t,r){var i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=c,i.logger=oz.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=c.maxParallelReads||10,i.readingCalls=0,i.maxRetries=c.maxRetries>=0?c.maxRetries:5,i.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,c.backend,c),i}return oP(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},c={},a={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?void 0===c[a]&&(c[a]=!0):(r.state[a]=1,n=!1,void 0===c[a]&&(c[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(c),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var c={};this.queue.forEach(function(o){var n,a,s,l;n=o.loaded,(s=(a=oX(n,[r],Object)).obj)[l=a.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){c[e]||(c[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===c[e][t]&&(c[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:c}):(this.readingCalls++,this.backend[o](e,t,function(a,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}a&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,c)},i):c(a,s)})):c(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,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]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,c){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&c&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),c),t.loaded(e,n,c)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,ny(ny({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(oY);function nE(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nA(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nw(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nA(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nk(){}var nC=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.options=nE(r),t.services={},t.logger=oz,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oL(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),oj(t,oL(t));setTimeout(function(){t.init(r,i)},0)}return t}return oP(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oB(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oB(e[2])||"object"===oB(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nw(nw(nw({},n),this.options),nE(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nw(nw({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?oz.init(r(this.modules.logger),this.options):oz.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=np);var i,c=new ni(this.options);this.store=new o9(this.options.resources,this.options);var a=this.services;a.logger=oz,a.resourceStore=this.store,a.languageUtils=c,a.pluralResolver=new nd(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(a.formatter=r(i),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new nu(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new nv(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new nn(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nk),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=oK(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],c=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?c(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return c(e)}),this.options.preload&&this.options.preload.forEach(function(e){return c(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=oK();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nk),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&o7.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=oK();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},c=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e):c(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oB(r)){for(var i,c=arguments.length,a=Array(c>2?c-2:0),s=2;s<c;s++)a[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else i=nw({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var c=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var a=o.precheck(this,c);if(void 0!==a)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,e)&&(!r||c(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=oK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=oK();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,r=nw(nw(nw({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nw({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new nn(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(oY);oq(nC,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nC(e,t)});var nD=nC.createInstance();nD.createInstance=nC.createInstance,nD.createInstance,nD.init,nD.loadResources,nD.reloadResources,nD.use,nD.changeLanguage,nD.getFixedT,nD.t,nD.exists,nD.setDefaultNamespace,nD.hasLoadedNamespace,nD.loadNamespaces,nD.loadLanguages;let n_=nD;var nS=o(4867),nx=o.n(nS);o(3472);class nO{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}class nT{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,c,a;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(c=e.path)?c:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(a=this.names)||!a.length||!!this.names.every(t=>nT._evalValuePredicate(e.name,t)))&&(!this.attributes||nT._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nT._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nT._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let c=!t.value||nT._evalValuePredicate(i.value,t.value);return t.negated?!c:c}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",c=[...(null!=(n=t.items)?n:[]).map(t=>nT._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nT._evalGroup(e,t))];return!c.length||("OR"===i?c.some(Boolean):c.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nT._collectNames(e))]}}nT._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nB=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};let nR=o(4461);class nN{constructor(e,t,o){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),c=n.get("consolePlatform"),a=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=a&&a.length>0?a.split(" "):["push"];this._pendingProviderEnables=l;let d=nN._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},l)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let u=c7.getAppName();u.length>0&&0>d.apps.indexOf(u)&&d.apps.push(u),this._registration=d,r&&(d.name=r),i&&(d.version=i),c&&(d.platform=c),s&&(this._autoEnable="TRUE"===s||"true"===s)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nB(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),n})}disableProvider(e){return nB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return nB(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nO,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nB(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return nB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield c7.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(o){if(e&&t&&nN._isStaleRegistrationResponse(o)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw o}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return nB(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nR.name,version:nR.version,platform:nR.os.toString(),apps:[],model:((nR.manufacturer?nR.manufacturer+" ":"")+(nR.product?nR.product:"")).trim()}}_initialiseProvider(e){return nB(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function nI(e,t){return function(){return e.apply(t,arguments)}}let{toString:nP}=Object.prototype,{getPrototypeOf:nL}=Object,{iterator:nM,toStringTag:nU}=Symbol,nj=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),nG=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),nj(o,t))return!0;o=nL(o)}return!1},nq=(t=Object.create(null),e=>{let o=nP.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())}),nH=e=>(e=e.toLowerCase(),t=>nq(t)===e),n$=e=>t=>typeof t===e,{isArray:nV}=Array,nW=n$("undefined");function nz(e){return null!==e&&!nW(e)&&null!==e.constructor&&!nW(e.constructor)&&nJ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let nY=nH("ArrayBuffer"),nK=n$("string"),nJ=n$("function"),nX=n$("number"),nQ=e=>null!==e&&"object"==typeof e,nZ=e=>{if(!nQ(e))return!1;let t=nL(e);return(null===t||t===Object.prototype||null===nL(t))&&!nG(e,nU)&&!nG(e,nM)},n0=nH("Date"),n1=nH("File"),n2=nH("Blob"),n3=nH("FileList"),n5="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n4=void 0!==n5.FormData?n5.FormData:void 0,n6=nH("URLSearchParams"),[n8,n9,n7,re]=["ReadableStream","Request","Response","Headers"].map(nH);function rt(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),nV(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(nz(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;for(n=0;n<c;n++)r=i[n],t.call(null,e[r],r,e)}}function ro(e,t){let o;if(nz(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let rn="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rr=e=>!nW(e)&&e!==rn,ri=(r="u">typeof Uint8Array&&nL(Uint8Array),e=>r&&e instanceof r),rc=nH("HTMLFormElement"),{propertyIsEnumerable:ra}=Object.prototype,rs=nH("RegExp"),rl=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rt(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rd=nH("AsyncFunction"),rf=(a="function"==typeof setImmediate,s=nJ(rn.postMessage),a?setImmediate:s?(l=`axios@${Math.random()}`,d=[],rn.addEventListener("message",({source:e,data:t})=>{e===rn&&t===l&&d.length&&d.shift()()},!1),e=>{d.push(e),rn.postMessage(l,"*")}):e=>setTimeout(e)),rm="u">typeof queueMicrotask?queueMicrotask.bind(rn):"u">typeof process&&process.nextTick||rf,ru=e=>null!=e&&nJ(e[nM]),rb={isArray:nV,isArrayBuffer:nY,isBuffer:nz,isFormData:e=>{if(!e)return!1;if(n4&&e instanceof n4)return!0;let t=nL(e);if(!t||t===Object.prototype||!nJ(e.append))return!1;let o=nq(e);return"formdata"===o||"object"===o&&nJ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nY(e.buffer)},isString:nK,isNumber:nX,isBoolean:e=>!0===e||!1===e,isObject:nQ,isPlainObject:nZ,isEmptyObject:e=>{if(!nQ(e)||nz(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:n8,isRequest:n9,isResponse:n7,isHeaders:re,isUndefined:nW,isDate:n0,isFile:n1,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:n2,isRegExp:rs,isFunction:nJ,isStream:e=>nQ(e)&&nJ(e.pipe),isURLSearchParams:n6,isTypedArray:ri,isFileList:n3,forEach:rt,merge:function e(...t){let{caseless:o,skipUndefined:n}=rr(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let c=o&&"string"==typeof i&&ro(r,i)||i,a=nj(r,c)?r[c]:void 0;nZ(a)&&nZ(t)?r[c]=e(a,t):nZ(t)?r[c]=e({},t):nV(t)?r[c]=t.slice():n&&nW(t)||(r[c]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||nz(o)||(rt(o,i),"object"!=typeof o||nV(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];ra.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rt(t,(t,n)=>{o&&nJ(t)?Object.defineProperty(e,n,{__proto__:null,value:nI(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),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,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,c,a={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)c=r[i],(!n||n(c,e,t))&&!a[c]&&(t[c]=e[c],a[c]=!0);e=!1!==o&&nL(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:nq,kindOfTest:nH,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(nV(e))return e;let t=e.length;if(!nX(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[nM]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rc,hasOwnProperty:nj,hasOwnProp:nj,hasOwnInPrototypeChain:nG,getSafeProp:(e,t)=>null!=e&&nG(e,t)?e[t]:void 0,reduceDescriptors:rl,freezeMethods:e=>{rl(e,(t,o)=>{if(nJ(e)&&["arguments","caller","callee"].includes(o))return!1;if(nJ(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(nV(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ro,global:rn,isContextDefined:rr,isSpecCompliantForm:function(e){return!!(e&&nJ(e.append)&&"FormData"===e[nU]&&e[nM])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(nQ(e)){if(t.has(e))return;if(nz(e))return e;if(!("toJSON"in e)){t.add(e);let n=nV(e)?[]:{};return rt(e,(e,t)=>{let r=o(e);nW(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rd,isThenable:e=>e&&(nQ(e)||nJ(e))&&nJ(e.then)&&nJ(e.catch),setImmediate:rf,asap:rm,isIterable:ru,isSafeIterable:e=>null!=e&&nG(e,nM)&&ru(e)},rF=rb.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"]),rh=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rp=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rg(e,t){return rb.isArray(e)?e.map(e=>rg(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function ry(e){let t=Object.create(null);return rb.forEach(e.toJSON(),(e,o)=>{t[o]=rg(e,rp)}),t}let rv=Symbol("internals");function rE(e){return e&&String(e).trim().toLowerCase()}function rA(e){return!1===e||null==e?e:rb.isArray(e)?e.map(rA):rg(String(e),rh)}function rw(e,t,o,n,r){if(rb.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rb.isString(t)){if(rb.isString(n))return -1!==t.indexOf(n);if(rb.isRegExp(n))return n.test(t)}}class rk{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rE(t);if(!r)return;let i=rb.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rA(e))}let i=(e,t)=>rb.forEach(e,(e,o)=>r(e,o,t));if(rb.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rb.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var c;let o,n,r,a;i((a={},(c=e)&&c.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||a[o]&&rF[o]||("set-cookie"===o?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a),t)}else if(rb.isObject(e)&&rb.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rb.hasOwnProp(o,r)?(n=o[r],o[r]=rb.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rE(e)){let o=rb.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rb.isFunction(t))return t.call(this,e,o);if(rb.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rE(e)){let o=rb.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rw(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rE(e)){let r=rb.findKey(o,e);r&&(!t||rw(o,o[r],r,t))&&(delete o[r],n=!0)}}return rb.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rw(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rb.forEach(this,(n,r)=>{let i=rb.findKey(o,r);if(i){t[i]=rA(n),delete t[r];return}let c=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();c!==r&&delete t[r],t[c]=rA(n),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rb.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rb.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rv]=this[rv]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rE(e);if(!t[n]){let r;r=rb.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rb.isArray(e)?e.forEach(n):n(e),this}}rk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rb.reduceDescriptors(rk.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rb.freezeMethods(rk);class rC extends Error{static from(e,t,o,n,r,i){let c=new rC(e.message,t||e.code,o,n,r);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,null!=e.status&&null==c.status&&(c.status=e.status),i&&Object.assign(c,i),c}constructor(e,t,o,n,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rb.hasOwnProp(n,"redact")?n.redact:void 0,i=rb.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rb.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof rk&&(n=n.toJSON()),t.push(n),rb.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rb.isUndefined(n)||(r[t]=n)});else{if(!rb.isPlainObject(n)&&function(e){if(rb.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rb.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rb.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rb.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rC.ERR_BAD_OPTION="ERR_BAD_OPTION",rC.ECONNABORTED="ECONNABORTED",rC.ETIMEDOUT="ETIMEDOUT",rC.ECONNREFUSED="ECONNREFUSED",rC.ERR_NETWORK="ERR_NETWORK",rC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rC.ERR_DEPRECATED="ERR_DEPRECATED",rC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rC.ERR_CANCELED="ERR_CANCELED",rC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rC.ERR_INVALID_URL="ERR_INVALID_URL",rC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rD=rC;function r_(e){return rb.isPlainObject(e)||rb.isArray(e)}function rS(e){return rb.endsWith(e,"[]")?e.slice(0,-2):e}function rx(e,t,o){return e?e.concat(t).map(function(e,t){return e=rS(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rO=rb.toFlatObject(rb,{},null,function(e){return/^is[A-Z]/.test(e)}),rT=function(e,t,o){if(!rb.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rb.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rb.isUndefined(t[e])})).metaTokens,r=o.visitor||u,i=o.dots,c=o.indexes,a=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=a&&rb.isSpecCompliantForm(t),d=[];if(!rb.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rb.isDate(e))return e.toISOString();if(rb.isBoolean(e))return e.toString();if(!l&&rb.isBlob(e))throw new rD("Blob is not supported. Use a Buffer instead.");if(rb.isArrayBuffer(e)||rb.isTypedArray(e)){if(l&&"function"==typeof a)return new a([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rD("Blob is not supported. Use a Buffer instead.",rD.ERR_NOT_SUPPORT)}return e}function m(e){if(e>s)throw new rD("Object is too deeply nested ("+e+" levels). Max depth: "+s,rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,o,r){let a=e;if(rb.isReactNative(t)&&rb.isReactNativeBlob(e))return t.append(rx(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rb.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rb.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),m(1+t.length-1),o})}(e);else{var l;if(rb.isArray(e)&&(l=e,rb.isArray(l)&&!l.some(r_))||(rb.isFileList(e)||rb.endsWith(o,"[]"))&&(a=rb.toArray(e)))return o=rS(o),a.forEach(function(e,n){rb.isUndefined(e)||null===e||t.append(!0===c?rx([o],n,i):null===c?o:o+"[]",f(e))}),!1}return!!r_(e)||(t.append(rx(r,o,i),f(e)),!1)}let b=Object.assign(rO,{defaultVisitor:u,convertValue:f,isVisitable:r_});if(!rb.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rb.isUndefined(o)){if(m(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rb.forEach(o,function(o,c){!0===(!(rb.isUndefined(o)||null===o)&&r.call(t,o,rb.isString(c)?c.trim():c,n,b))&&e(o,n?n.concat(c):[c],i+1)}),d.pop()}}(e),t};function rB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rR(e,t){this._pairs=[],e&&rT(e,this,t)}let rN=rR.prototype;function rI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rP(e,t,o){let n;if(!t)return e;e=e||"";let r=rb.isFunction(o)?{serialize:o}:o,i=rb.getSafeProp(r,"encode")||rI,c=rb.getSafeProp(r,"serialize");if(n=c?c(t,r):rb.isURLSearchParams(t)?t.toString():new rR(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rN.append=function(e,t){this._pairs.push([e,t])},rN.toString=function(e){let t=e?t=>e.call(this,t,rB):rB;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rL=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rb.forEach(this.handlers,function(t){null!==t&&e(t)})}},rM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rj="u">typeof FormData?FormData:null,rG="u">typeof Blob?Blob:null,rq="u">typeof window&&"u">typeof document,rH="object"==typeof navigator&&navigator||void 0,r$=rq&&(!rH||0>["ReactNative","NativeScript","NS"].indexOf(rH.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rW=rq&&window.location.href||"http://localhost",rz={...tC,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rj,Blob:rG},protocols:["http","https","file","blob","url","data"]};function rY(e){if(e>100)throw new rD("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rK=function(e){if(rb.isFormData(e)&&rb.isFunction(e.entries)){let t={};return rb.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){rY(r);let i=t[r++];if("__proto__"===i)return!0;let c=Number.isFinite(+i),a=r>=t.length;return(i=!i&&rb.isArray(n)?n.length:i,a)?rb.hasOwnProp(n,i)?n[i]=rb.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rb.hasOwnProp(n,i)&&rb.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rb.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!c}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)rY(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},rJ=(e,t)=>null!=e&&rb.hasOwnProp(e,t)?e[t]:void 0,rX={transitional:rM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rb.isObject(e);if(i&&rb.isHTMLForm(e)&&(e=new FormData(e)),rb.isFormData(e))return r?JSON.stringify(rK(e)):e;if(rb.isArrayBuffer(e)||rb.isBuffer(e)||rb.isStream(e)||rb.isFile(e)||rb.isBlob(e)||rb.isReadableStream(e))return e;if(rb.isArrayBufferView(e))return e.buffer;if(rb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rJ(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rT(e,new rz.classes.URLSearchParams,{visitor:function(e,t,o,n){return rz.isNode&&rb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rb.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=rJ(this,"env"),r=n&&n.FormData;return rT(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var c=e;if(rb.isString(c))try{return(0,JSON.parse)(c),rb.trim(c)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(c)}return e}],transformResponse:[function(e){let t=rJ(this,"transitional")||rX.transitional,o=t&&t.forcedJSONParsing,n=rJ(this,"responseType"),r="json"===n;if(rb.isResponse(e)||rb.isReadableStream(e))return e;if(e&&rb.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,rJ(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rD.from(e,rD.ERR_BAD_RESPONSE,this,null,rJ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rz.classes.FormData,Blob:rz.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rQ(e,t){let o=this||rX,n=t||o,r=rk.from(n.headers),i=n.data;return rb.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rZ(e){return!!(e&&e.__CANCEL__)}rb.forEach(["delete","get","head","post","put","patch","query"],e=>{rX.headers[e]={}});let r0=class extends rD{constructor(e,t,o){super(null==e?"canceled":e,rD.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function r1(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rD("Request failed with status code "+o.status,o.status>=400&&o.status<500?rD.ERR_BAD_REQUEST:rD.ERR_BAD_RESPONSE,o.config,o.request,o))}let r2=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,c=0;return t=void 0!==t?t:1e3,function(a){let s=Date.now(),l=r[c];o||(o=s),n[i]=a,r[i]=s;let d=c,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===c&&(c=(c+1)%e),s-o<t)return;let m=l&&s-l;return m?Math.round(1e3*f/m):void 0}},r3=function(e,t){let o,n,r=0,i=1e3/t,c=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-r;a>=i?c(e,t):(o=e,n||(n=setTimeout(()=>{n=null,c(o)},i-a)))},()=>o&&c(o)]},r5=(e,t,o=3)=>{let n=0,r=r2(50,250);return r3(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,c=o.lengthComputable?o.total:void 0,a=null!=c?Math.min(i,c):i,s=Math.max(0,a-n),l=r(s);n=Math.max(n,a),e({loaded:a,total:c,progress:c?a/c:void 0,bytes:s,rate:l||void 0,estimated:l&&c?(c-a)/l:void 0,event:o,lengthComputable:null!=c,[t?"download":"upload"]:!0})},o)},r4=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},r6=e=>(...t)=>rb.asap(()=>e(...t)),r8=rz.hasStandardBrowserEnv?(i=new URL(rz.origin),c=rz.navigator&&/(msie|trident)/i.test(rz.navigator.userAgent),e=>(e=new URL(e,rz.origin),i.protocol===e.protocol&&i.host===e.host&&(c||i.port===e.port))):()=>!0,r9=rz.hasStandardBrowserEnv?{write(e,t,o,n,r,i,c){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];rb.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),rb.isString(n)&&a.push(`path=${n}`),rb.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),rb.isString(c)&&a.push(`SameSite=${c}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r7=/^https?:(?!\/\/)/i,ie=/[\t\n\r]/g;function it(e,t){if("string"==typeof e&&r7.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ie,"")))throw new rD('Invalid URL: missing "//" after protocol',rD.ERR_INVALID_URL,t)}function io(e,t,o,n){it(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(it(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ir=e=>e instanceof rk?{...e}:e;function ii(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rb.isPlainObject(e)&&rb.isPlainObject(t)?rb.merge.call({caseless:n},e,t):rb.isPlainObject(t)?rb.merge({},t):rb.isArray(t)?t.slice():t}function r(e,t,o,r){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rb.isUndefined(t))return n(void 0,t)}function c(e,t){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(o,r,i){return rb.hasOwnProp(t,i)?n(o,r):rb.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:a,headers:(e,t,o)=>r(ir(e),ir(t),o,!0)};return rb.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rb.hasOwnProp(s,n)?s[n]:r,c=i(rb.hasOwnProp(e,n)?e[n]:void 0,rb.hasOwnProp(t,n)?t[n]:void 0,n);rb.isUndefined(c)&&i!==a||(o[n]=c)}),rb.hasOwnProp(t,"validateStatus")&&rb.isUndefined(t.validateStatus)&&!1===function(o){let n=rb.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rb.isUndefined(n)){if(!rb.isPlainObject(n))return;else if(rb.hasOwnProp(n,o))return n[o]}let r=rb.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rb.isPlainObject(r)&&rb.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rb.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],ia=function(e){let t=ii({},e),o=e=>rb.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),c=o("xsrfCookieName"),a=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=a=rk.from(a),t.url=rP(io(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rb.getSafeProp(s,"username")||"",o=rb.getSafeProp(s,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rD.from(t,rD.ERR_BAD_OPTION_VALUE,e)}}if(rb.isFormData(n))if(rz.hasStandardBrowserEnv||rz.hasStandardBrowserWebWorkerEnv||rb.isReactNative(n))a.setContentType(void 0);else{var m,u;rb.isFunction(n.getHeaders)&&(m=a,u=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?m.set(u):Object.entries(u||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&m.set(e,t)}))}if(rz.hasStandardBrowserEnv&&(rb.isFunction(r)&&(r=r(t)),!0===r||null==r&&r8(t.url))){let e=i&&c&&r9.read(c);e&&a.set(i,e)}return t},is="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,c,a,s,l,d=ia(e),f=d.data,m=rk.from(d.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:F}=d;function h(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let p=new XMLHttpRequest;function g(){if(!p)return;let n=rk.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r1(function(e){t(e),h()},function(e){o(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}p.open(d.method.toUpperCase(),d.url,!0),p.timeout=d.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(g)},p.onabort=function(){p&&(o(new rD("Request aborted",rD.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let n=new rD(t&&t.message?t.message:"Network Error",rD.ERR_NETWORK,e,p);n.event=t||null,o(n),h(),p=null},p.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||rM;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rD(t,n.clarifyTimeoutError?rD.ETIMEDOUT:rD.ECONNABORTED,e,p)),h(),p=null},void 0===f&&m.setContentType(null),"setRequestHeader"in p&&rb.forEach(ry(m),function(e,t){p.setRequestHeader(t,e)}),rb.isUndefined(d.withCredentials)||(p.withCredentials=!!d.withCredentials),u&&"json"!==u&&(p.responseType=d.responseType),F&&([c,s]=r5(F,!0),p.addEventListener("progress",c)),b&&p.upload&&([i,a]=r5(b),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(r=t=>{p&&(o(!t||t.type?new r0(null,e,p):t),p.abort(),h(),p=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(y&&!rz.protocols.includes(y)){o(new rD("Unsupported protocol "+y+":",rD.ERR_BAD_REQUEST,e)),h();return}p.send(f||null)})},il=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},id=async function*(e,t){for await(let o of im(e))yield*il(o,t)},im=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iu=(e,t,o,n)=>{let r,i=id(e,t),c=0,a=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let r=n.byteLength;if(o){let e=c+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},ib=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,o)=>t+2<o&&ib(e.charCodeAt(t+1))&&ib(e.charCodeAt(t+2)),{isFunction:ih}=rb,ip=e=>{if(!rb.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ig=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iy=e=>{let t,o=void 0!==rb.global&&null!==rb.global?rb.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:c,Response:a}=e=rb.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?ih(i):"function"==typeof fetch,l=ih(c),d=ih(a);if(!s)return!1;let f=s&&ih(n),m=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new c(e).arrayBuffer())),u=l&&f&&ig(()=>{let e=!1,t=new c(rz.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&ig(()=>rb.isReadableStream(new a("").body)),F={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{F[e]||(F[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rD(`Response type '${e}' is not supported`,rD.ERR_NOT_SUPPORT,o)})});let h=async e=>{if(null==e)return 0;if(rb.isBlob(e))return e.size;if(rb.isSpecCompliantForm(e)){let t=new c(rz.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rb.isArrayBufferView(e)||rb.isArrayBuffer(e)?e.byteLength:(rb.isURLSearchParams(e)&&(e+=""),rb.isString(e))?(await m(e)).byteLength:void 0},p=async(e,t)=>{let o=rb.toFiniteNumber(e.getContentLength());return null==o?h(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:m,timeout:g,onDownloadProgress:y,onUploadProgress:v,responseType:E,headers:A,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:D}=ia(e),_=rb.isNumber(C)&&C>-1,S=rb.isNumber(D)&&D>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,c();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rD?t:new r0(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rD(`timeout of ${t}ms exceeded`,rD.ETIMEDOUT))},t),c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:a}=o;return a.unsubscribe=()=>rb.asap(c),a})([d,m&&m.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rD("Request body larger than maxBodyLength limit",rD.ERR_BAD_REQUEST,e,T);try{var I;let i,d,m,g,P=(d="auth",rb.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rb.getSafeProp(P,"username")||"",t=rb.getSafeProp(P,"password")||"";i={username:e,password:t}}if(m=(I=o).indexOf("://"),g=I,-1!==m&&(g=g.slice(m+3)),g.includes("@")||g.includes(":")){let e=new URL(o,rz.origin);if(!i&&(e.username||e.password)){let t=ip(e.username),o=ip(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;A.delete("authorization"),A.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(_&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);ib(t)&&ib(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let c=3*Math.floor(e/4)-(o||0);return c>0?c:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iF(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await h(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>D))throw N()}let L=S&&(rb.isReadableStream(s)||rb.isStream(s)),M=(e,t,o)=>iu(e,65536,e=>{if(S&&e>D)throw R=N();t&&t(e)},o);if(u&&"get"!==n&&"head"!==n&&(v||L)){if(t=null==t?await p(A,s):t,0!==t||L){let e,n=new c(o,{method:"POST",body:s,duplex:"half"});if(rb.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){let[e,o]=v&&r4(t,r5(r6(v)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!u&&"get"!==n&&"head"!==n)throw new rD("Stream request bodies are not supported by the current fetch implementation",rD.ERR_NOT_SUPPORT,e,T);rb.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in c.prototype;if(rb.isFormData(s)){let e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:O,method:n.toUpperCase(),headers:ry(A.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new c(o,j);let G=await (l?x(T,k):x(o,j)),q=rk.from(G.headers);if(_){let t=rb.toFiniteNumber(q.getContentLength());if(null!=t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}let H=b&&("stream"===E||"response"===E);if(b&&G.body&&(y||_||H&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=G[e]});let o=rb.toFiniteNumber(q.getContentLength()),[n,r]=y&&r4(o,r5(r6(y),!0))||[];G=new a(iu(G.body,65536,t=>{if(_&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let V=await F[rb.findKey(F,E)||"text"](G,e);if(_&&!b&&!H){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof r?new r().encode(V).byteLength:V.length)),"number"==typeof t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}return!H&&B&&B(),await new Promise((t,o)=>{r1(t,o,{data:V,headers:rk.from(G.headers),status:G.status,statusText:G.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rD){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rD)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rD("Network Error",rD.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rD.from(t,t&&t.code,e,T,t&&t.response)}}},iv=new Map,iE=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],c=i.length,a,s,l=iv;for(;c--;)a=i[c],void 0===(s=l.get(a))&&l.set(a,s=c?new Map:iy(t)),l=s;return s};iE();let iA={http:null,xhr:is,fetch:{get:iE}};rb.forEach(iA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iw=e=>`- ${e}`,ik=e=>rb.isFunction(e)||null===e||!1===e,iC=function(e,t){let o,n,{length:r}=e=rb.isArray(e)?e:[e],i={};for(let c=0;c<r;c++){let r;if(n=o=e[c],!ik(o)&&void 0===(n=iA[(r=String(o)).toLowerCase()]))throw new rD(`Unknown adapter '${r}'`);if(n&&(rb.isFunction(n)||(n=n.get(t))))break;i[r||"#"+c]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rD("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iw).join("\n"):" "+iw(e[0]):"as no adapter specified"),rD.ERR_NOT_SUPPORT)}return n};function iD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r0(null,e)}function i_(e){return iD(e),e.headers=rk.from(e.headers),e.data=rQ.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iC(e.adapter||rX.adapter,e)(e).then(function(t){iD(e),e.response=t;try{t.data=rQ.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rk.from(t.headers),t},function(t){if(!rZ(t)&&(iD(e),t&&t.response)){e.response=t.response;try{t.response.data=rQ.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rk.from(t.response.headers)}return Promise.reject(t)})}let iS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iS[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let ix={};iS.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rD(n(r," has been removed"+(t?" in "+t:"")),rD.ERR_DEPRECATED);return t&&!ix[r]&&(ix[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iS.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iO=function(e,t,o){if("object"!=typeof e||null===e)throw new rD("options must be an object",rD.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],c=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(c){let t=e[i],o=void 0===t||c(t,i,e);if(!0!==o)throw new rD("option "+i+" must be "+o,rD.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rD("Unknown option "+i,rD.ERR_BAD_OPTION)}};class iT{constructor(e){this.defaults=e||{},this.interceptors={request:new rL,response:new rL}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}}throw e}}_request(e,t){let o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:c}=t=ii(this.defaults,t);void 0!==r&&iO(r,{silentJSONParsing:iS.transitional(iS.boolean),forcedJSONParsing:iS.transitional(iS.boolean),clarifyTimeoutError:iS.transitional(iS.boolean),legacyInterceptorReqResOrdering:iS.transitional(iS.boolean),advertiseZstdAcceptEncoding:iS.transitional(iS.boolean),validateStatusUndefinedResolves:iS.transitional(iS.boolean)},!1),null!=i&&(rb.isFunction(i)?t.paramsSerializer={serialize:i}:iO(i,{encode:iS.function,serialize:iS.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iO(t,{baseUrl:iS.spelling("baseURL"),withXsrfToken:iS.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=c&&rb.merge(c.common,c[t.method]);c&&rb.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete c[e]}),t.headers=rk.concat(a,c);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||rM;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[i_.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let m=t;for(;f<n;){let e=s[f++],t=s[f++];try{m=e(m)}catch(e){t.call(this,e);break}}try{o=i_.call(this,m)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rP(io((e=ii(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rb.forEach(["delete","get","head","options"],function(e){iT.prototype[e]=function(t,o){return this.request(ii(o||{},{method:e,url:t,data:o&&rb.hasOwnProp(o,"data")?o.data:void 0}))}}),rb.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(ii(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iT.prototype[e]=t(),"query"!==e&&(iT.prototype[e+"Form"]=t(!0))});let iB=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new r0(e,n,r),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},iR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iR).forEach(([e,t])=>{iR[t]=e});let iN=function e(t){let o=new iT(t),n=nI(iT.prototype.request,o);return rb.extend(n,iT.prototype,o,{allOwnKeys:!0}),rb.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(ii(t,o))},n}(rX);iN.Axios=iT,iN.CanceledError=r0,iN.CancelToken=iB,iN.isCancel=rZ,iN.VERSION="1.18.1",iN.toFormData=rT,iN.AxiosError=rD,iN.Cancel=iN.CanceledError,iN.all=function(e){return Promise.all(e)},iN.spread=function(e){return function(t){return e.apply(null,t)}},iN.isAxiosError=function(e){return rb.isObject(e)&&!0===e.isAxiosError},iN.mergeConfig=ii,iN.AxiosHeaders=rk,iN.formToJSON=e=>rK(rb.isHTMLForm(e)?new FormData(e):e),iN.getAdapter=iC,iN.HttpStatusCode=iR,iN.default=iN;class iI{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:i3`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i3`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i3`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i3`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:i3`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:i3`alarm/${e}/assets`,queryParams:t,options:o})}}class iP{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i3`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class iL{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}}class iM{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class iU{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i3`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i3`info`,options:e})}}class ij{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i3`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i3`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i3`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i3`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i3`map/upload`,queryParams:e,options:t})}}class iG{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i3`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i3`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i3`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i3`syslog/event`,queryParams:e,options:t})}}class iq{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i3`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`dashboard/${e}/${t}`,options:o})}}class iH{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i3`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}}class i${constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/datapoint/${e}/${t}`,data:o,options:n})}}class iV{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i3`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i3`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i3`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i3`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i3`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:i3`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}`,options:o})}}class iW{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:i3`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i3`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/valueDescriptors`,queryParams:e,options:t})}}class iz{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i3`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i3`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i3`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:i3`provisioning/${e}`,data:t,options:o})}}class iY{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i3`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i3`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i3`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i3`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i3`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i3`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:i3`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/child`,queryParams:t,options:o})}}class iK{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i3`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i3`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i3`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`realm/${e}`,data:t,options:o})}}class iJ{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i3`console/register`,data:e,options:t})}}class iX{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i3`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i3`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i3`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/${e}`,data:t,options:o})}}class iQ{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i3`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i3`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i3`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/delivered`,queryParams:t,options:o})}}class iZ{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i3`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:i3`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i3`configuration/manager/image/${e}`,options:t})}}class i0{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i3`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:i3`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/status/${e}`,options:t})}}class i1{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i3`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i3`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i3`apps/info`,options:e})}}class i2{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i3`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i3`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i3`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i3`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:i3`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:i3`service/${e}/${t}`,options:o})}}function i3(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class i5{constructor(e,t=iN.create()){this._alarmResource=new i6(e,t),this._gatewayServiceResource=new i8(e,t),this._assetPredictedDatapointResource=new i9(e,t),this._agentResource=new i7(e,t),this._statusResource=new ce(e,t),this._mapResource=new ct(e,t),this._syslogResource=new co(e,t),this._dashboardResource=new cn(e,t),this._flowResource=new cr(e,t),this._assetDatapointResource=new ci(e,t),this._userResource=new cc(e,t),this._assetModelResource=new ca(e,t),this._provisioningResource=new cs(e,t),this._assetResource=new cl(e,t),this._realmResource=new cd(e,t),this._consoleResource=new cf(e,t),this._rulesResource=new cm(e,t),this._notificationResource=new cu(e,t),this._configurationResource=new cb(e,t),this._gatewayClientResource=new cF(e,t),this._appResource=new ch(e,t),this._externalServiceResource=new cp(e,t),this._assetResource=new cl(e,t)}get AlarmResource(){return this._alarmResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}get DashboardResource(){return this._dashboardResource}get FlowResource(){return this._flowResource}get AssetDatapointResource(){return this._assetDatapointResource}get UserResource(){return this._userResource}get AssetModelResource(){return this._assetModelResource}get ProvisioningResource(){return this._provisioningResource}get AssetResource(){return this._assetResource}get RealmResource(){return this._realmResource}get ConsoleResource(){return this._consoleResource}get RulesResource(){return this._rulesResource}get NotificationResource(){return this._notificationResource}get ConfigurationResource(){return this._configurationResource}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}get ExternalServiceResource(){return this._externalServiceResource}}class i4{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class i6 extends iI{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i8 extends iP{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i9 extends iL{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i7 extends iM{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ce extends iU{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ct extends ij{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class co extends iG{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cn extends iq{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cr extends iH{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ci extends i${constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cc extends iV{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ca extends iW{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cs extends iz{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cl extends iY{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cd extends iK{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cf extends iJ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cm extends iX{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cu extends iQ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cb extends iZ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cF extends i0{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ch extends i1{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cp extends i2{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}var cg=o(8183),cy=o.n(cg);iN.isAxiosError;let cv=new class{get api(){return this._client}constructor(){this._axiosInstance=iN.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new i5(e,this._axiosInstance)}};var cE=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};(ev=tA||(tA={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let cA="SUBSCRIBED:",cw="UNAUTHORIZED:",ck="TRIGGERED:",cC="EVENT:";class cD{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let o=e.indexOf(t);o>=0&&e.splice(o,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new nO,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nO};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return cE(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+cD._subscriptionCounter++;if(!this._assetEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;n?n.find(e=>t===e)&&o(e):e.asset.realm===c7.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,c="AttributeEvent"+cD._subscriptionCounter++;if(!this._attributeEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let a=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===c7.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(c,a),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+c,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(c)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&a({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),c&&this.unsubscribe(c),t}return c})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let o=this._subscriptionMap.get(e);o&&o.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<c_.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(c_.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cD.MIN_RECONNECT_DELAY=0,cD.MAX_RECONNECT_DELAY=3e4,cD._subscriptionCounter=0;class c_ extends cD{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+c7.config.realm;return this._connectDeferred=new nO,(c7.authenticated?c7.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(cA)){let e=JSON.parse(t.substring(cA.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(ck)){let e=JSON.parse(t.substring(ck.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cC)){let e=JSON.parse(t.substring(cC.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new nO,e.subscriptionId||(e.subscriptionId=c_._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=cC+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new nO;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cC+JSON.stringify(e)),t.promise}}c_._subscriptionCounter=1;let cS=["__proto__","constructor","prototype"];function cx(e){return!("string"!=typeof e||0===e.length||e.length>128||cS.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cO(e){return!(!cx(e)||e.indexOf("/")>-1)}let cT={lng:cO,ns:function(e){return cx(e)}};function cB(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cR(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cN=/\{\{(.+?)\}\}/g;function cI(e,t){let o=!1,n=e.replace(cN,(e,n)=>{let r=n.trim();if(cS.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let c=cT[r]||cO,a=String(i).split("+");for(let t of a)if(!c(t))return o=!0,e;return a.join("+")});return o?null:n}let cP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:cP&&"function"==typeof cP.fetch&&(e=cP.fetch);let cL=cR()&&cP?cP.XMLHttpRequest:void 0,cM="function"==typeof ActiveXObject&&cP?cP.ActiveXObject:void 0,cU=["__proto__","constructor","prototype"],cj=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))cU.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},cG=(t,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let e=r(t,o);if(e instanceof Promise)return void e.then(i).catch(n)}"function"==typeof fetch?fetch(t,o).then(i).catch(n):e(t,o).then(i).catch(n)},cq=(t,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),e&&0!==o.indexOf("file:")){var i=o,c=n,a=r;t.queryStringParams&&(i=cj(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),c&&(e["Content-Type"]="application/json");let s="function"==typeof t.requestOptions?t.requestOptions(c):t.requestOptions,l={method:c?"POST":"GET",body:c?t.stringify(c):void 0,headers:e,...t._omitFetchOptions?{}:s},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{cG(i,l,a,d)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return a(e);try{Object.keys(s).forEach(e=>{delete l[e]}),cG(i,l,a,d),t._omitFetchOptions=!0}catch(e){a(e)}}return}if(cR()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=cj("",l).slice(1)),t.queryStringParams&&(s=cj(s,t.queryStringParams));try{let e=cL?new cL:new cM("MSXML2.XMLHTTP.3.0");e.open(l?"POST":"GET",s,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,l&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let o=t.customHeaders;if(o="function"==typeof o?o():o)for(let t of Object.keys(o))cU.indexOf(t)>-1||e.setRequestHeader(t,o[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var cH=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:cq,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=o,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,c;let a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,o)),(a=(c=i=a)&&"function"==typeof c.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let c=cI(i,{lng:e.join("+"),ns:o.join("+")});if(null==c)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cB).join(", ")+"] namespaces=["+o.map(cB).join(", ")+"]"),!1);this.loadUrl(c,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=cB(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let c,a;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+cB(e.message),!0)}if(e)return t(e,!1);try{c="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){a="failed parsing "+i+" to json"}if(a)return t(a,!1);t(null,c)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),c=0,a=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=cI(n,{lng:o,ns:t});if(null==l){c+=1,r&&c===e.length&&r(a,s);return}this.options.request(this.options,l,i,(t,o)=>{c+=1,a.push(t),s.push(o),c===e.length&&"function"==typeof r&&r(a,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};cH.type="backend";let c$=e=>(...t)=>({_$litDirective$:e,values:t});class cV{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cW extends cV{constructor(e){if(super(e),this.it=oi,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===oi||null==e)return this._t=void 0,this.it=e;if(e===or)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cW.directiveName="unsafeHTML",cW.resultType=1,c$(cW);class cz extends cW{}cz.directiveName="unsafeSVG",cz.resultType=2;let cY=c$(cz),cK={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cJ=function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};class cX extends CustomEvent{constructor(){super(cX.NAME,{bubbles:!0,composed:!0})}}cX.NAME="or-iconset-added";let cQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return on``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):on``}},cZ=class extends ow{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tB`
11
11
  :host {
12
12
  --internal-or-icon-width: var(--or-icon-width, 24px);
13
13
  --internal-or-icon-height: var(--or-icon-height, 24px);