From 1b0a4fbe7341f1a234e1f306e849b57ad6242d4b Mon Sep 17 00:00:00 2001 From: Ivo Sonderegger Date: Tue, 7 Jul 2020 15:37:14 +0200 Subject: [PATCH] Release 1.7.0 --- meteoJS.min.js | 39 ++------------------------------------- meteoJS.min.js.map | 2 +- package.json | 2 +- webpack.config.js | 7 +------ 4 files changed, 5 insertions(+), 45 deletions(-) diff --git a/meteoJS.min.js b/meteoJS.min.js index 19dc2160..782d7884 100644 --- a/meteoJS.min.js +++ b/meteoJS.min.js @@ -1,38 +1,3 @@ -/*! meteoJS v1.6.0 | (c) Ivo Sonderegger, SRF Meteo | https://chird.github.io/meteoJS/LICENSE */ -var meteoJS=function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([function(t,e){t.exports=$},function(t,e){t.exports=SVG},function(t,e,i){var n,o,r;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r=function(){"use strict";function t(t,n,o,r,s){!function t(i,n,o,r,s){for(;r>o;){if(r-o>600){var a=r-o+1,u=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(o,Math.floor(n-u*c/a+h)),p=Math.min(r,Math.floor(n+(a-u)*c/a+h));t(i,n,f,p,s)}var d=i[n],y=o,v=r;for(e(i,o,n),s(i[r],d)>0&&e(i,o,r);y0;)v--}0===s(i[o],d)?e(i,o,v):(v++,e(i,v,r)),v<=n&&(o=v+1),n<=v&&(r=v-1)}}(t,n,o||0,r||t.length-1,s||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,i,n,o,r){for(var s=[i,n];s.length;)if(!((n=s.pop())-(i=s.pop())<=o)){var a=i+Math.ceil((n-i)/o/2)*o;t(e,a,i,n,r),s.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!p(t,e))return i;for(var n=this.toBBox,o=[];e;){for(var r=0;r=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(n,o,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,n);var s=this._chooseSplitIndex(i,o,n),a=d(i.children.splice(s,i.children.length-s));a.height=i.height,a.leaf=i.leaf,r(i,this.toBBox),r(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,o,r,a,u,l,h,f=1/0,p=1/0,d=e;d<=i-e;d++){var y=s(t,0,d,this.toBBox),v=s(t,d,i,this.toBBox),g=(o=y,r=v,a=void 0,u=void 0,l=void 0,h=void 0,a=Math.max(o.minX,r.minX),u=Math.max(o.minY,r.minY),l=Math.min(o.maxX,r.maxX),h=Math.min(o.maxY,r.maxY),Math.max(0,l-a)*Math.max(0,h-u)),m=c(y)+c(v);g=e;p--){var d=t.children[p];a(u,t.leaf?o(d):d),l+=h(u)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n},"object"===s(e)&&void 0!==t?t.exports=r():void 0===(o="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){"use strict";i.r(e),function(t){ -/**! - * @fileOverview Kickass library to create and place poppers near their reference elements. - * @version 1.16.1 - * @license - * Copyright (c) 2016 Federico Zivolo and contributors - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,n=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();var o=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),n))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(i+o+n)?t:u(a(t))}function l(t){return t&&t.referenceNode?t.referenceNode:t}var c=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function f(t){return 11===t?c:10===t?h:c||h}function p(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===s(i,"position")?p(i):i:t?t.ownerDocument.documentElement:document.documentElement}function d(t){return null!==t.parentNode?d(t.parentNode):t}function y(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,o=i?e:t,r=document.createRange();r.setStart(n,0),r.setEnd(o,0);var s,a,u=r.commonAncestorContainer;if(t!==u&&e!==u||n.contains(o))return"BODY"===(a=(s=u).nodeName)||"HTML"!==a&&p(s.firstElementChild)!==s?p(u):u;var l=d(t);return l.host?y(l.host,e):y(t,d(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[i]}return t[i]}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=v(e,"top"),o=v(e,"left"),r=i?-1:1;return t.top+=n*r,t.bottom+=n*r,t.left+=o*r,t.right+=o*r,t}function m(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function _(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],f(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function b(t){var e=t.body,i=t.documentElement,n=f(10)&&getComputedStyle(i);return{height:_("Height",e,i,n),width:_("Width",e,i,n)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},x=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]&&arguments[2],n=f(10),o="HTML"===e.nodeName,r=C(t),a=C(e),l=u(t),c=s(e),h=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);i&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=O({top:r.top-a.top-h,left:r.left-a.left-p,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var y=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);d.top-=h-y,d.bottom-=h-y,d.left-=p-v,d.right-=p-v,d.marginTop=y,d.marginLeft=v}return(n&&!i?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(d=g(d,e)),d}function P(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=E(t,i),o=Math.max(i.clientWidth,window.innerWidth||0),r=Math.max(i.clientHeight,window.innerHeight||0),s=e?0:v(i),a=e?0:v(i,"left"),u={top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:o,height:r};return O(u)}function R(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var i=a(t);return!!i&&R(i)}function I(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function k(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?I(t):y(t,l(e));if("viewport"===n)r=P(s,o);else{var c=void 0;"scrollParent"===n?"BODY"===(c=u(a(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===n?t.ownerDocument.documentElement:n;var h=E(c,s,o);if("HTML"!==c.nodeName||R(s))r=h;else{var f=b(t.ownerDocument),p=f.height,d=f.width;r.top+=h.top-h.marginTop,r.bottom=p+h.top,r.left+=h.left-h.marginLeft,r.right=d+h.left}}var v="number"==typeof(i=i||0);return r.left+=v?i:i.left||0,r.top+=v?i:i.top||0,r.right-=v?i:i.right||0,r.bottom-=v?i:i.bottom||0,r}function j(t){return t.width*t.height}function L(t,e,i,n,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=k(i,n,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},u=Object.keys(a).map((function(t){return T({key:t},a[t],{area:j(a[t])})})).sort((function(t,e){return e.area-t.area})),l=u.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),c=l.length>0?l[0].key:u[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function M(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?I(e):y(e,l(i));return E(i,o,n)}function F(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function D(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function A(t,e,i){i=i.split("-")[0];var n=F(t),o={width:n.width,height:n.height},r=-1!==["right","left"].indexOf(i),s=r?"top":"left",a=r?"left":"top",u=r?"height":"width",l=r?"width":"height";return o[s]=e[s]+e[u]/2-n[u]/2,o[a]=i===a?e[a]-n[l]:e[D(a)],o}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function G(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=N(t,(function(t){return t[e]===i}));return t.indexOf(n)}(t,"name",i))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&r(i)&&(e.offsets.popper=O(e.offsets.popper),e.offsets.reference=O(e.offsets.reference),e=i(e,t))})),e}function B(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=L(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=A(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=G(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Y(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function X(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n1&&void 0!==arguments[1]&&arguments[1],i=$.indexOf(t),n=$.slice(i+1).concat($.slice(0,i));return e?n.reverse():n}var et="flip",it="clockwise",nt="counterclockwise";function ot(t,e,i,n){var o=[0,0],r=-1!==["right","left"].indexOf(n),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(N(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(u)[0]]),[s[a].split(u)[1]].concat(s.slice(a+1))]:[s];return(l=l.map((function(t,n){var o=(1===n?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,i,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=i;break;case"%":case"%r":default:a=n}return O(a)[e]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(t,o,e,i)}))}))).forEach((function(t,e){t.forEach((function(i,n){H(i)&&(o[e]+=i*("-"===t[n-1]?-1:1))}))})),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(i),u=a?"left":"top",l=a?"width":"height",c={start:S({},u,r[u]),end:S({},u,r[u]+r[l]-s[l])};t.offsets.popper=T({},s,c[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=n.split("-")[0],u=void 0;return u=H(+i)?[+i,0]:ot(i,r,s,a),"left"===a?(r.top+=u[0],r.left-=u[1]):"right"===a?(r.top+=u[0],r.left+=u[1]):"top"===a?(r.left+=u[0],r.top-=u[1]):"bottom"===a&&(r.left+=u[0],r.top+=u[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||p(t.instance.popper);t.instance.reference===i&&(i=p(i));var n=X("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var u=k(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);o.top=r,o.left=s,o[n]=a,e.boundaries=u;var l=e.priority,c=t.offsets.popper,h={primary:function(t){var i=c[t];return c[t]u[t]&&!e.escapeWithReference&&(n=Math.min(c[i],u[t]-("right"===t?c.width:c.height))),S({},i,n)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=T({},c,h[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",u=s?"left":"top",l=s?"width":"height";return i[a]r(n[a])&&(t.offsets.popper[u]=r(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!J(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,u=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",h=l?"Top":"Left",f=h.toLowerCase(),p=l?"left":"top",d=l?"bottom":"right",y=F(n)[c];u[d]-ya[d]&&(t.offsets.popper[f]+=u[f]+y-a[d]),t.offsets.popper=O(t.offsets.popper);var v=u[f]+u[c]/2-y/2,g=s(t.instance.popper),m=parseFloat(g["margin"+h]),_=parseFloat(g["border"+h+"Width"]),b=v-t.offsets.popper[f]-m-_;return b=Math.max(Math.min(a[c]-y,b),0),t.arrowElement=n,t.offsets.arrow=(S(i={},f,Math.round(b)),S(i,p,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Y(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=k(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=D(n),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case et:s=[n,o];break;case it:s=tt(n);break;case nt:s=tt(n,!0);break;default:s=e.behavior}return s.forEach((function(a,u){if(n!==a||s.length===u+1)return t;n=t.placement.split("-")[0],o=D(n);var l=t.offsets.popper,c=t.offsets.reference,h=Math.floor,f="left"===n&&h(l.right)>h(c.left)||"right"===n&&h(l.left)h(c.top)||"bottom"===n&&h(l.top)h(i.right),y=h(l.top)h(i.bottom),g="left"===n&&p||"right"===n&&d||"top"===n&&y||"bottom"===n&&v,m=-1!==["top","bottom"].indexOf(n),_=!!e.flipVariations&&(m&&"start"===r&&p||m&&"end"===r&&d||!m&&"start"===r&&y||!m&&"end"===r&&v),b=!!e.flipVariationsByContent&&(m&&"start"===r&&d||m&&"end"===r&&p||!m&&"start"===r&&v||!m&&"end"===r&&y),w=_||b;(f||g||w)&&(t.flipped=!0,(f||g)&&(n=s[u+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=n+(r?"-"+r:""),t.offsets.popper=T({},t.offsets.popper,A(t.instance.popper,t.offsets.reference,t.placement)),t=G(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,o=n.popper,r=n.reference,s=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return o[s?"left":"top"]=r[i]-(a?o[s?"width":"height"]:0),t.placement=D(e),t.offsets.popper=O(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!J(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=N(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomi.right||e.top>i.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=T({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(T({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){n.options.modifiers[e]=T({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return T({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return x(t,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return K.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();st.Utils=("undefined"!=typeof window?window:t).PopperUtils,st.placements=Q,st.Defaults=rt,e.default=st}.call(this,i(6))},function(t,e,i){var n,o,r,s;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} -/*! - * Bootstrap util.js v4.5.0 (https://getbootstrap.com/) - * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */s=function(t){"use strict";function e(e){var n=this,o=!1;return t(this).one(i.TRANSITION_END,(function(){o=!0})),setTimeout((function(){o||i.triggerTransitionEnd(n)}),e),this}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var i={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var i=t(e).css("transition-duration"),n=t(e).css("transition-delay"),o=parseFloat(i),r=parseFloat(n);return o||r?(i=i.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(i)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o],s=e[o],a=s&&i.isElement(s)?"element":null==(u=s)?""+u:{}.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+r+'".')}var u},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?i.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return i.jQueryDetection(),t.fn.emulateTransitionEnd=e,t.event.special[i.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},i},"object"===a(e)&&void 0!==t?t.exports=s(i(0)):(o=[i(0)],void 0===(r="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=r))},function(t,e,i){var n,o,r,s;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} -/*! - * Bootstrap tooltip.js v4.5.0 (https://getbootstrap.com/) - * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */s=function(t,e,i){"use strict";function n(t,e){for(var i=0;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:l,popperConfig:null},w={HIDE:"hide"+d,HIDDEN:"hidden"+d,SHOW:"show"+d,SHOWN:"shown"+d,INSERTED:"inserted"+d,CLICK:"click"+d,FOCUSIN:"focusin"+d,FOCUSOUT:"focusout"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d},x=function(){function o(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(i),this.tip=null,this._setListeners()}var r,u,l,c=o.prototype;return c.enable=function(){this._isEnabled=!0},c.disable=function(){this._isEnabled=!1},c.toggleEnabled=function(){this._isEnabled=!this._isEnabled},c.toggle=function(e){if(this._isEnabled)if(e){var i=this.constructor.DATA_KEY,n=t(e.currentTarget).data(i);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},c.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},c.show=function(){var n=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var o=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(o);var r=i.findShadowRoot(this.element),s=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(o.isDefaultPrevented()||!s)return;var a=this.getTipElement(),u=i.getUID(this.constructor.NAME);a.setAttribute("id",u),this.element.setAttribute("aria-describedby",u),this.setContent(),this.config.animation&&t(a).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var h=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(h),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new e(this.element,a,this._getPopperConfig(c)),t(a).addClass("show"),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){n.config.animation&&n._fixTransition();var e=n._hoverState;n._hoverState=null,t(n.element).trigger(n.constructor.Event.SHOWN),"out"===e&&n._leave(null,n)};if(t(this.tip).hasClass("fade")){var p=i.getTransitionDurationFromElement(this.tip);t(this.tip).one(i.TRANSITION_END,f).emulateTransitionEnd(p)}else f()}},c.hide=function(e){var n=this,o=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),s=function(){"show"!==n._hoverState&&o.parentNode&&o.parentNode.removeChild(o),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(r),!r.isDefaultPrevented()){if(t(o).removeClass("show"),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,t(this.tip).hasClass("fade")){var a=i.getTransitionDurationFromElement(o);t(o).one(i.TRANSITION_END,s).emulateTransitionEnd(a)}else s();this._hoverState=""}},c.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},c.isWithContent=function(){return Boolean(this.getTitle())},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(".tooltip-inner")),this.getTitle()),t(e).removeClass("fade show")},c.setElementContent=function(e,i){"object"!==a(i)||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=f(i,this.config.whiteList,this.config.sanitizeFn)),e.html(i)):e.text(i):this.config.html?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text())},c.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},c._getPopperConfig=function(t){var e=this;return s(s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},c._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s(s({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},c._getContainer=function(){return!1===this.config.container?document.body:i.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},c._getAttachment=function(t){return _[t.toUpperCase()]},c._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==i){var n="hover"===i?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o="hover"===i?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(o,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s(s({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},c._fixTitle=function(){var t=a(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},c._enter=function(e,i){var n=this.constructor.DATA_KEY;(i=i||t(e.currentTarget).data(n))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),t(i.getTipElement()).hasClass("show")||"show"===i._hoverState?i._hoverState="show":(clearTimeout(i._timeout),i._hoverState="show",i.config.delay&&i.config.delay.show?i._timeout=setTimeout((function(){"show"===i._hoverState&&i.show()}),i.config.delay.show):i.show())},c._leave=function(e,i){var n=this.constructor.DATA_KEY;(i=i||t(e.currentTarget).data(n))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState="out",i.config.delay&&i.config.delay.hide?i._timeout=setTimeout((function(){"out"===i._hoverState&&i.hide()}),i.config.delay.hide):i.hide())},c._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},c._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(t){-1!==g.indexOf(t)&&delete n[t]})),"number"==typeof(e=s(s(s({},this.constructor.Default),n),"object"===a(e)&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),i.typeCheckConfig(p,e,this.constructor.DefaultType),e.sanitize&&(e.template=f(e.template,e.whiteList,e.sanitizeFn)),e},c._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},c._cleanTipClass=function(){var e=t(this.getTipElement()),i=e.attr("class").match(v);null!==i&&i.length&&e.removeClass(i.join(""))},c._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},c._fixTransition=function(){var e=this.getTipElement(),i=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},o._jQueryInterface=function(e){return this.each((function(){var i=t(this).data("bs.tooltip"),n="object"===a(e)&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new o(this,n),t(this).data("bs.tooltip",i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},r=o,l=[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return b}},{key:"NAME",get:function(){return p}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return d}},{key:"DefaultType",get:function(){return m}}],(u=null)&&n(r.prototype,u),l&&n(r,l),o}();return t.fn[p]=x._jQueryInterface,t.fn[p].Constructor=x,t.fn[p].noConflict=function(){return t.fn[p]=y,x._jQueryInterface},x},"object"===a(e)&&void 0!==t?t.exports=s(i(0),i(3),i(4)):(o=[i(0),i(3),i(4)],void 0===(r="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=r))},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";i.r(e),i.d(e,"calc",(function(){return n})),i.d(e,"events",(function(){return iy})),i.d(e,"RepetitiveRequests",(function(){return B})),i.d(e,"Timeline",(function(){return V})),i.d(e,"timeline",(function(){return ny})),i.d(e,"Synview",(function(){return Ta})),i.d(e,"synview",(function(){return oy})),i.d(e,"Tooltip",(function(){return Gh})),i.d(e,"tooltip",(function(){return ry})),i.d(e,"Sounding",(function(){return vf})),i.d(e,"sounding",(function(){return sy})),i.d(e,"ThermodynamicDiagramPluggable",(function(){return Uf})),i.d(e,"ThermodynamicDiagram",(function(){return ty})),i.d(e,"thermodynamicDiagram",(function(){return ay}));var n={};function o(t){if(void 0!==t&&!isNaN(t))return 44330.769*(1-Math.pow(t/1013.25,.19029496))}function r(t){if(void 0!==t&&!isNaN(t))return 1013.25*Math.pow(1-t/44330.769,5.255)}function s(t,e){if(void 0!==t&&!isNaN(t)&&void 0!==e&&!isNaN(e))return t*Math.pow(1e3/e,.286)}function a(t,e){if(void 0!==t&&!isNaN(t)&&void 0!==e&&!isNaN(e))return t*Math.pow(e/1e3,.286)}function u(t,e){if(void 0!==e&&!isNaN(e)){for(var i=void 0,n=Math.pow(1e3/e,.286),o=273,r=20,s=0;Math.abs(r)>.1&&s<100;)s++,i=p(o,e),(o*n*Math.exp(2.5*i/o)-t)*r>0&&(r*=-.5),o+=r;return o}}function l(t,e){if(void 0!==t&&!isNaN(t)&&void 0!==e&&!isNaN(e)){var i=.4343*Math.log(t*e/(622+t));return Math.pow(10,.0498646455*i+2.4082965)-7.07475+38.9114*Math.pow(Math.pow(10,.0915*i)-1.2035,2)}}function c(t,e,i){if(!(void 0===t||isNaN(t)||void 0===e||isNaN(e)||void 0===i||isNaN(i))){for(var n=e-273.15,o=1,r=10,s=1,a=6.112*Math.exp(17.67*n/(n+243.5));Math.abs(o)>.05;){if(0==(o=a-(6.112*Math.exp(17.67*n/(n+243.5))-i*(t-273.15-n)*66e-5*(1+.00115*n))))break;if(o<0?-1!=s&&(s=-1,r/=10):1!=s&&(s=1,r/=10),Math.abs(o)<=.05)break;n+=r*s}return n+273.15}}function h(t,e,i){var n=s(t,i);if(!(void 0===n||void 0===e||isNaN(e)||void 0===t||isNaN(t)||void 0===i||isNaN(i)))return n*Math.exp(2.4819*p(e,i)/v(t,e))}function f(t){if(void 0!==t&&!isNaN(t)){var e=new Array(6.1104546,.4442351,.014302099,.00026454708,30357098e-13,2.0972268e-8,60487594e-18,-1469687e-19),i=new Array(.06485546857696639,.03783195122560735,.02224449342887902,.013182892842468312,.007874020771412448,.004739730494884733,.0028751203550435793,.001757430376758103,.0010824173951885098,.0006717089391856059,.0004199647026320394,.0002645243638634699,.00016784796373681322,.00010728539763162038,6907426344961356e-20,4479404897680843e-20,2925704195639373e-20,19245291263499416e-21,12749137241074795e-21,8505070102755051e-21,5713400253349711e-21,3864650296738762e-21,2632109719650053e-21,18049107293057043e-22,12460785055581605e-22,8.660705713468708e-7,6.059822176688955e-7,4.2682119794324277e-7,3.026165085143795e-7,2.15963854234914e-7,1.5512895457833687e-7),n=0;if((t-=273.15)>-50)n=e[0]+t*(e[1]+t*(e[2]+t*(e[3]+t*(e[4]+t*(e[5]+t*(e[6]+t*e[7]))))));else{var o=(-t-50)/5;n=010;){var o=n+(i-n)/2,r=p(a(t,o),o);if(void 0===r)return;r.1;){var o=n+(i-n)/2,r=d(o,e);if(void 0===r)return;r>t?n=o:i=o}return n+(i-n)/2}}function v(t,e){if(void 0!==t&&!isNaN(t)&&void 0!==e&&!isNaN(e))return e-(.001296*e-.15772)*(t-e)}function g(t){return void 0===t||isNaN(t)?void 0:t+273.15}function m(t){return void 0===t||isNaN(t)?void 0:t-273.15}function _(t){return void 0===t||isNaN(t)?void 0:3.6*t}function b(t){return void 0===t||isNaN(t)?void 0:t/3.6}function w(t){return void 0===t||isNaN(t)?void 0:900*t/463}function x(t){return void 0===t||isNaN(t)?void 0:463*t/900}function S(t){return void 0===t||isNaN(t)?void 0:Math.min(12,Math.pow(t/.836,2/3))}function T(t){return void 0===t||isNaN(t)?void 0:.836*Math.pow(t,1.5)}function O(t,e){if(void 0!==t&&!isNaN(t)&&void 0!==e&&!isNaN(e))return 153*m(t)+.9985*e-304.26}function C(t,e,i,n){if(!(void 0===t||isNaN(t)||void 0===e||isNaN(e)||void 0===i||isNaN(i))){if(0==e)return t;var o=.02896;if(void 0===n&&(n=i),i==n)return t*Math.exp(9.807*-o/8.314/i*e);var r=(i-n)/e;return t*Math.exp(9.807*o/8.314/r*Math.log(1-r*e/i))}}function E(t,e,i){if(!(void 0===t||isNaN(t)||void 0===e||isNaN(e)||void 0===i||isNaN(i))){var n=f(e)*i;return 100*(t-n)/287.058/e+100*n/461.495/e}}function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e,i){"listeners"in this&&void 0!==this.listeners||(this.listeners={}),t in this.listeners||(this.listeners[t]={});var n=Math.random().toString(36).substr(2,9);return this.listeners[t][n]={callback:e,thisArg:i},n}function I(t,e){"listeners"in this&&void 0!==this.listeners&&t in this.listeners&&e in this.listeners[t]&&delete this.listeners[t][e]}function k(t,e,i){"once_listeners"in this&&void 0!==this.once_listeners||(this.once_listeners={}),t in this.once_listeners&&"push"in this.once_listeners[t]||(this.once_listeners[t]=[]),this.once_listeners[t].push({callback:e,thisArg:i})}function j(t){return"listeners"in this&&void 0!==this.listeners&&t in this.listeners&&Object.keys(this.listeners[t]).length||"once_listeners"in this&&t in this.once_listeners&&Object.keys(this.once_listeners[t]).length}function M(t){var e=this,i=Array.prototype.slice.call(arguments);if(i.shift(),"listeners"in this&&void 0!==this.listeners&&t in this.listeners&&"object"==P(this.listeners[t])&&Object.keys(this.listeners[t]).forEach((function(n){e.listeners[t][n].callback.apply(void 0===e.listeners[t][n].thisArg?e:e.listeners[t][n].thisArg,i)})),"once_listeners"in this&&void 0!==this.once_listeners&&t in this.once_listeners&&"forEach"in this.once_listeners[t]){var n=this.once_listeners[t];this.once_listeners[t]=[],n.forEach((function(t){t.callback.apply(void 0===t.thisArg?e:t.thisArg,i)}))}}i.r(n),i.d(n,"altitudeISAByPres",(function(){return o})),i.d(n,"pressureISAByAltitude",(function(){return r})),i.d(n,"potentialTempByTempAndPres",(function(){return s})),i.d(n,"tempByPotentialTempAndPres",(function(){return a})),i.d(n,"tempByEquiPotTempAndPres",(function(){return u})),i.d(n,"dewpointByHMRAndPres",(function(){return l})),i.d(n,"wetbulbTempByTempAndDewpointAndPres",(function(){return c})),i.d(n,"equiPotentialTempByTempAndDewpointAndPres",(function(){return h})),i.d(n,"saturationPressureByTemp",(function(){return f})),i.d(n,"saturationHMRByTempAndPres",(function(){return p})),i.d(n,"lclByPotentialTempAndHMR",(function(){return d})),i.d(n,"potentialTempByLCLAndHMR",(function(){return y})),i.d(n,"lclTemperatureByTempAndDewpoint",(function(){return v})),i.d(n,"tempCelsiusToKelvin",(function(){return g})),i.d(n,"tempKelvinToCelsius",(function(){return m})),i.d(n,"windspeedMSToKMH",(function(){return _})),i.d(n,"windspeedKMHToMS",(function(){return b})),i.d(n,"windspeedMSToKN",(function(){return w})),i.d(n,"windspeedKNToMS",(function(){return x})),i.d(n,"windspeedMSToBF",(function(){return S})),i.d(n,"windspeedBFToMS",(function(){return T})),i.d(n,"snowlineByTemp850hPaAndAltidude",(function(){return O})),i.d(n,"pressureByBarometricFormula",(function(){return C})),i.d(n,"densityHumidAirByPressureAndTempAndRelHumidity",(function(){return E}));var F=function(t){t.on=R,t.un=I,t.once=k,t.hasListener=j,t.trigger=M};function D(t,e,i,n,o,r,s){try{var a=t[r](s),u=a.value}catch(t){return void i(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.url,n=void 0===i?void 0:i,o=e.user,r=void 0===o?"":o,s=e.password,a=void 0===s?"":s,u=e.start,l=void 0===u||u,c=e.defaultTimeout,h=void 0===c?void 0:c,f=e.timeoutOnError,p=void 0===f?void 0:f,d=e.pauseOnHiddenDocument,y=void 0!==d&&d,v=e.responseType,g=void 0===v?"":v;A(this,t),this._url=n,this._user=r,this._password=a,this._isStarted=l,this._defaultTimeout=h,this._timeoutOnError=p,this._pauseOnHiddenDocument=y,this._initPauseOnHiddenDocument(),this._responseType=g,this._timeoutID=void 0,this._loading=!1,this._isStarted&&this.start()}var e,i,n,o,r;return e=t,(i=[{key:"start",value:function(){this.isStarted=!0,this._startRequest()}},{key:"stop",value:function(){this.isStarted=!1,void 0!==this.timeoutID&&clearTimeout(this.timeoutID)}},{key:"_planRequest",value:function(t){var e=this,i=t.delay;void 0===this._timeoutID&&(this._timeoutID=setTimeout((function(){e._startRequest()}),i))}},{key:"_startRequest",value:function(){var t=this;void 0!==this._timeoutID&&clearTimeout(this._timeoutID),this._makeRequest().then((function(e){var i=e.request;if(t.isStarted){var n=t._defaultTimeout,o=i.getResponseHeader("Cache-Control");if(null!==o){var r=/(^|,)max-age=([0-9]+)($|,)/.exec(o);null!==r&&r[2]>0&&(n=Math.round(1e3*r[2]))}t.trigger("success:request",{request:i}),void 0!==n&&t._planRequest({delay:n})}}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.request;t.isStarted&&void 0!==i&&(t.trigger("error:request",{request:i}),void 0!==t._timeoutOnError&&t._planRequest({delay:t._timeoutOnError}))}))}},{key:"_makeRequest",value:(o=regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,i){if(void 0!==e._url)if(e._loading)i();else{e._loading=!0;var n=new XMLHttpRequest;void 0!==e.responseType&&(n.responseType=e.responseType),n.addEventListener("load",(function(){e._loading=!1,200==n.status?t({request:n}):i({request:n})})),n.addEventListener("error",(function(){e._loading=!1,i({request:n})})),n.open("GET",e._url,!0,e._user,e._password),n.send()}else i()})));case 1:case"end":return t.stop()}}),t)})),r=function(){var t=this,e=arguments;return new Promise((function(i,n){var r=o.apply(t,e);function s(t){D(r,i,n,s,a,"next",t)}function a(t){D(r,i,n,s,a,"throw",t)}s(void 0)}))},function(){return r.apply(this,arguments)})},{key:"_initPauseOnHiddenDocument",value:function(){var t=this;this._pauseOnHiddenDocument&&document.addEventListener("visibilitychange",(function(){"hidden"in document&&(document.hidden?t.stop():t.start())}))}},{key:"url",get:function(){return this._url},set:function(t){this._url=t}},{key:"user",get:function(){return this._user},set:function(t){this._user=t}},{key:"password",get:function(){return this._password},set:function(t){this._password=t}},{key:"responseType",get:function(){return this._password},set:function(t){this._responseType=t}}])&&N(e.prototype,i),n&&N(e,n),t}();F(G.prototype);var B=G;function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.maxTimeGap,n=void 0===i?void 0:i,o=e.keyboardNavigation,r=void 0===o?{}:o;X(this,t),this.maxTimeGap=n,this.selectedTime=new Date("invalid"),this.times=[],this.enabledTimes=[],this.allEnabledTimes=[],this.timesByKey={},this._keyboardNavigation={},this._initKeyboardNavigation(r)}var e,i,n;return e=t,(i=[{key:"getSelectedTime",value:function(){return this.selectedTime}},{key:"setSelectedTime",value:function(t){return this._setSelectedTime(K(t,this.times)>-1?t:new Date("invalid")),this}},{key:"getTimes",value:function(){return this.times}},{key:"getEnabledTimes",value:function(){return this.enabledTimes}},{key:"getAllEnabledTimes",value:function(){return this.allEnabledTimes}},{key:"setTimesBySetID",value:function(t,e){return this.timesByKey[t]={times:e,enabled:e},this._updateTimes(),this._updateEnabledTimes(),this}},{key:"setEnabledTimesBySetID",value:function(t,e){return t in this.timesByKey&&(this.timesByKey[t].enabled=e,this._updateEnabledTimes()),this}},{key:"getSetIDs",value:function(){return Object.keys(this.timesByKey)}},{key:"deleteSetID",value:function(t){return t in this.timesByKey&&(delete this.timesByKey[t],this._updateTimes(),this._updateEnabledTimes()),this}},{key:"first",value:function(){return this._setSelectedTime(this.getFirstEnabledTime()),this}},{key:"last",value:function(){return this._setSelectedTime(this.getLastEnabledTime()),this}},{key:"next",value:function(){return this._setSelectedTime(this.getNextEnabledTime()),this}},{key:"prev",value:function(){return this._setSelectedTime(this.getPrevEnabledTime()),this}},{key:"nextAllEnabledTime",value:function(){return this._setSelectedTime(this.getNextAllEnabledTime()),this}},{key:"prevAllEnabledTime",value:function(){return this._setSelectedTime(this.getPrevAllEnabledTime()),this}},{key:"add",value:function(t,e){var i=this.getSelectedTime(),n=0;switch(e){case"hours":case"h":n=3600*t*1e3;break;case"minutes":case"m":n=60*t*1e3;break;case"seconds":case"s":n=1e3*t;break;case"milliseconds":case"ms":n=t}switch(0!=n&&(i=new Date(i.valueOf()+n)),e){case"years":case"y":i.setUTCFullYear(i.getUTCFullYear()+t);break;case"months":case"M":i.setUTCMonth(i.getUTCMonth()+t);break;case"days":case"d":i.setUTCDate(i.getUTCDate()+t)}return K(i,this.times)>-1&&this._setSelectedTime(i),this}},{key:"sub",value:function(t,e){var i=this.getSelectedTime(),n=0;switch(e){case"hours":case"h":n=3600*t*1e3;break;case"minutes":case"m":n=60*t*1e3;break;case"seconds":case"s":n=1e3*t;break;case"milliseconds":case"ms":n=t}switch(0!=n&&(i=new Date(i.valueOf()-n)),e){case"years":case"y":i.setUTCFullYear(i.getUTCFullYear()-t);break;case"months":case"M":i.setUTCMonth(i.getUTCMonth()-t);break;case"days":case"d":i.setUTCDate(i.getUTCDate()-t)}return K(i,this.times)>-1&&this._setSelectedTime(i),this}},{key:"getFirstEnabledTime",value:function(){return this.enabledTimes.length>0?this.enabledTimes[0]:new Date("invalid")}},{key:"getLastEnabledTime",value:function(){return this.enabledTimes.length>0?this.enabledTimes[this.enabledTimes.length-1]:new Date("invalid")}},{key:"getNextEnabledTime",value:function(){if(this.enabledTimes.length<1)return new Date("invalid");var t=K(this.getSelectedTime(),this.enabledTimes);if(t>-1)return++t-1)return-1<--t?this.enabledTimes[t]:this.enabledTimes[0];if(isNaN(this.getSelectedTime()))return this.enabledTimes[0];for(var e=new Date("invalid"),i=this.enabledTimes.length-1;i>=0;i--)if(this.getSelectedTime().valueOf()>this.enabledTimes[i].valueOf()){e=this.enabledTimes[i];break}return e}},{key:"getFirstAllEnabledTime",value:function(){return this.allEnabledTimes.length>0?this.allEnabledTimes[0]:new Date("invalid")}},{key:"getLastAllEnabledTime",value:function(){return this.allEnabledTimes.length>0?this.allEnabledTimes[this.allEnabledTimes.length-1]:new Date("invalid")}},{key:"getNextAllEnabledTime",value:function(){if(this.allEnabledTimes.length<1)return new Date("invalid");var t=K(this.getSelectedTime(),this.allEnabledTimes);if(t>-1)return++t-1)return-1<--t?this.allEnabledTimes[t]:this.allEnabledTimes[0];if(isNaN(this.getSelectedTime()))return this.allEnabledTimes[0];for(var e=new Date("invalid"),i=this.allEnabledTimes.length-1;i>=0;i--)if(this.getSelectedTime().valueOf()>this.allEnabledTimes[i].valueOf()){e=this.allEnabledTimes[i];break}return e}},{key:"isTimeEnabled",value:function(t){return this.enabledTimes.reduce((function(e,i){return i.valueOf()==t.valueOf()||e}),!1)}},{key:"isTimeAllEnabled",value:function(t){return this.allEnabledTimes.reduce((function(e,i){return i.valueOf()==t.valueOf()||e}),!1)}},{key:"isFirstEnabledTime",value:function(){return this.getFirstEnabledTime().valueOf()==this.getSelectedTime().valueOf()}},{key:"isLastEnabledTime",value:function(){return this.getLastEnabledTime().valueOf()==this.getSelectedTime().valueOf()}},{key:"_setSelectedTime",value:function(t){var e=this.selectedTime;return this.selectedTime=t,this.trigger("change:time",e),this.selectedTime}},{key:"_updateTimes",value:function(){this.times=[];var t=[],e={};for(var i in this.timesByKey)this.timesByKey[i].times.forEach((function(i){i.valueOf()in e||(t.push(i),e[i.valueOf()]=i)}));q(t),t.forEach((function(t){if(this.times.length<1)this.times.push(t);else{var e=this.times[this.times.length-1];if(void 0!==this.maxTimeGap&&t.valueOf()-e.valueOf()>1e3*this.maxTimeGap){var i=e;do{i=new Date(i.getTime()+1e3*this.maxTimeGap),this.times.push(i)}while(t.valueOf()-i.valueOf()>1e3*this.maxTimeGap)}this.times.push(t)}}),this),q(this.times),this.trigger("change:times")}},{key:"_updateEnabledTimes",value:function(){this.enabledTimes=[],this.allEnabledTimes=[];var t={},e={};for(var i in this.timesByKey)this.timesByKey[i].enabled.forEach((function(i){i.valueOf()in t||(this.enabledTimes.push(i),t[i.valueOf()]=i),i.valueOf()in e?e[i.valueOf()]++:e[i.valueOf()]=1}),this);for(var n in q(this.enabledTimes),e)e[n]==Object.keys(this.timesByKey).length&&this.allEnabledTimes.push(t[n]);q(this.allEnabledTimes),this.trigger("change:enabledTimes")}},{key:"_initKeyboardNavigation",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.enabled,n=void 0!==i&&i,o=e.first,r=void 0===o?36:o,s=e.last,a=void 0===s?35:s,u=e.prev,l=void 0===u?37:u,c=e.next,h=void 0===c?39:c,f=e.prevAllEnabledTime,p=void 0===f?[37,"ctrl"]:f,d=e.nextAllEnabledTime,y=void 0===d?[38,"ctrl"]:d;this._keyboardNavigation={enabled:n,first:r,last:a,prev:l,next:h,prevAllEnabledTime:p,nextAllEnabledTime:y},document&&this._keyboardNavigation.enabled&&document.addEventListener("keydown",(function(e){Object.keys(t._keyboardNavigation).forEach((function(i){"enabled"!=i&&i in t&&H(e,t._keyboardNavigation[i])&&t[i]()}))}))}}])&&z(e.prototype,i),n&&z(e,n),t}();F(W.prototype);var V=W,K=function(t,e){return e.findIndex((function(e){return e.valueOf()==t.valueOf()}))};function q(t){t.sort((function(t,e){return t.valueOf()-e.valueOf()}))}function H(t,e){if("object"==Y(e)&&"forEach"in e||(e=[e]),0==e.length)return!1;var i=[["ctrl","ctrlKey"],["alt","altKey"],["shift","shiftKey"],["meta","metaKey"]].reduce((function(i,n){return i&&(e.indexOf(n[0])>-1?t[n[1]]:!t[n[1]])}),!0);return e.forEach((function(e){switch(e){case"ctrl":case"alt":case"shift":case"meta":break;default:e!=t.keyCode&&(i=!1)}})),i}var Z=i(0),U=i.n(Z);function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=i.timeline,o=i.restartPause,r=void 0===o?1.8:o,s=i.imagePeriod,a=void 0===s?.2:s,u=i.imageFrequency,l=i.enabledStepsOnly,c=void 0===l||l,h=i.allEnabledStepsOnly,f=void 0!==h&&h;J(this,t),this.options={timeline:n,restartPause:r,imagePeriod:a,imageFrequency:u,enabledStepsOnly:c,allEnabledStepsOnly:f},void 0===this.options.timeline&&(this.options.timeline=new V),void 0!==this.options.imageFrequency&&0!=this.options.imageFrequency&&(this.options.imagePeriod=1/this.options.imageFrequency),this.animationIntervalID=void 0,this.animationTimeoutID=void 0,this.animationStep=0,this.timesHash={},this.times=[];var p=function(){e.times=e.options.timeline[e._getTimelineTimesMethod()](),e.timesHash={},e.times.forEach((function(t,i){return e.timesHash[t.valueOf()]=i}))};this.options.timeline.on(this._getTimelineChangeTimesEvent(),p),p()}var e,i,n;return e=t,(i=[{key:"getImagePeriod",value:function(){return this.options.imagePeriod}},{key:"setImagePeriod",value:function(t){return this.options.imagePeriod=t,this.isStarted()&&this._updateAnimation(),this.trigger("change:imageFrequency"),this}},{key:"getImageFrequency",value:function(){return 1/this.options.imagePeriod}},{key:"setImageFrequency",value:function(t){return 0!=t&&this.setImagePeriod(1/t),this}},{key:"getRestartPause",value:function(){return this.options.restartPause}},{key:"setRestartPause",value:function(t){return this.options.restartPause=Number(t),this.trigger("change:restartPause"),this}},{key:"isStarted",value:function(){return void 0!==this.animationIntervalID||void 0!==this.animationTimeoutID}},{key:"start",value:function(){this.options.timeline.getSelectedTime().valueOf()in this.timesHash&&this._setStep(this.timesHash[this.options.timeline.getSelectedTime().valueOf()]),this.isStarted()||this._updateAnimation(),this.trigger("start:animation")}},{key:"stop",value:function(){this._clearAnimation(),this.trigger("stop:animation")}},{key:"toggle",value:function(){this.isStarted()?this.stop():this.start()}},{key:"_setStep",value:function(t){0<=t&&t=t._getCount()-1&&(t.trigger("end:animation"),t._clearAnimation(),t._initRestartPause())}),1e3*this.options.imagePeriod))}},{key:"_initRestartPause",value:function(){var t=this;void 0===this.animationTimeoutID&&(this.animationTimeoutID=window.setTimeout((function(){t.animationStep=0,t.trigger("restart:animation"),t.animationStep").addClass("form-control").attr("type","number").attr("min",1).attr("step",1),s=U()("
").addClass("input-group").append(r).append(U()("
").addClass("input-group-append").append(U()("").addClass("input-group-text").text(o)));r.on("change",(function(){return i.setImageFrequency(r.val())}));var a=function(){return r.val(i.getImageFrequency())};return i.on("change:imageFrequency",a),a(),t.append(s),s}function it(t,e){var i=e.animation,n=e.frequencies;n=n||[1];var o=U()("").addClass("custom-range").attr("type","range").attr("min",0).attr("max",n.length-1);o.on("change input",(function(){var t=o.val();t-1&&o.val(t)};return i.on("change:imageFrequency",r),r(),t.append(o),o}function nt(t,e){var i=e.animation,n=e.suffix,o=void 0===n?"s":n,r=U()("").addClass("form-control").attr("type","number").attr("min",0).attr("step",.1),s=U()("
").addClass("input-group").append(r).append(U()("
").addClass("input-group-append").append(U()("").addClass("input-group-text").text(o)));r.on("change",(function(){return i.setRestartPause(r.val())}));var a=function(){return r.val(i.getRestartPause())};return i.on("change:restartPause",a),a(),t.append(s),s}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var rt=function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ot(this,t);var n=i.animation,o=void 0===n?void 0:n,r=i.node,s=void 0===r?void 0:r,a=i.startedContent,u=void 0===a?void 0:a,l=i.startedClass,c=void 0===l?void 0:l,h=i.stoppedContent,f=void 0===h?void 0:h,p=i.stoppedClass,d=void 0===p?void 0:p,y=i.classButton,v=void 0===y?void 0:y,g=i.classDropdownToggle,m=void 0===g?void 0:g,_=i.menu,b=void 0===_||_,w=i.menuImageFrequency,x=void 0===w||w,S=i.imageFrequencyCaption,T=void 0===S?"Frequency":S,O=i.menuFrequencies,C=void 0===O?void 0:O,E=i.menuRestartPause,P=void 0===E||E,R=i.restartPauseCaption,I=void 0===R?"Restart pause":R;"startedContent"in i||(u="⏸"),"stoppedContent"in i||(f="▶"),this.options={animation:o,node:s,startedContent:u,startedClass:c,stoppedContent:f,stoppedClass:d,classButton:v,classDropdownToggle:m,menu:b,menuImageFrequency:x,imageFrequencyCaption:T,menuFrequencies:C,menuRestartPause:P,restartPauseCaption:I},this.options.node=U()(this.options.node);var k=this.options.node;this.options.node.is("button")||(k=U()("