/*! shiny 1.3.2 | (c) 2012-2019 RStudio, Inc. | License: GPL-3 | file LICENSE */ "use strict";function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};!function(){function escapeHTML(a){var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return a.replace(/[&<>'"\/]/g,function(a){return b[a]})}function randomId(){return Math.floor(4294967296+64424509440*Math.random()).toString(16)}function strToBool(a){if(a&&a.toLowerCase)switch(a.toLowerCase()){case"true":return!0;case"false":return!1;default:return}}function getStyle(a,b){var c;if(a.currentStyle)c=a.currentStyle[b];else if(window.getComputedStyle){var d=document.defaultView.getComputedStyle(a,null);d&&(c=d.getPropertyValue(b))}return c}function padZeros(a,b){for(var c=a.toString();c.length1&&void 0!==arguments[1]?arguments[1]:1;if(b<1)throw"Significant digits must be at least 1.";return parseFloat(a.toPrecision(b))}function parseDate(a){var b=new Date(a);return isNaN(b)&&(b=new Date(a.replace(/-/g,"/"))),b}function formatDateUTC(a){return a instanceof Date?a.getUTCFullYear()+"-"+padZeros(a.getUTCMonth()+1,2)+"-"+padZeros(a.getUTCDate(),2):null}function makeResizeFilter(a,b){var c={};return function(){var d={w:a.offsetWidth,h:a.offsetHeight};0===d.w&&0===d.h||d.w===c.w&&d.h===c.h||(c=d,b(d.w,d.h))}}function makeBlob(a){try{return new Blob(a)}catch(b){var c=new _BlobBuilder;return $.each(a,function(a,b){c.append(b)}),c.getBlob()}}function pixelRatio(){return window.devicePixelRatio?window.devicePixelRatio:1}function scopeExprToFunc(a){var b=a.replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\b]/g,"\\b");try{var c=new Function("with (this) {\n try {\n return ("+a+");\n } catch (e) {\n console.error('Error evaluating expression: "+b+"');\n throw e;\n }\n }")}catch(d){throw console.error("Error parsing expression: "+a),d}return function(a){return c.call(a)}}function asArray(a){return null===a||void 0===a?[]:$.isArray(a)?a:[a]}function mergeSort(a,b){function c(a,b,c){for(var d=0,e=0,f=[];d1?b[1]:""}}function findScalingRatio(a){var b=a[0].getBoundingClientRect();return{x:b.width/a.outerWidth(),y:b.height/a.outerHeight()}}function findOrigin(a){var b=a.offset(),c=findScalingRatio(a),d={left:parseInt(a.css("border-left-width"))+parseInt(a.css("padding-left")),top:parseInt(a.css("border-top-width"))+parseInt(a.css("padding-top"))};return{x:b.left+c.x*d.left,y:b.top+c.y*d.top}}function findDims(a){var b={x:a.width()/a.outerWidth(),y:a.height()/a.outerHeight()},c=a[0].getBoundingClientRect();return{x:b.x*c.width,y:b.y*c.height}}function registerDependency(a,b){htmlDependencies[a]=b}function renderDependency(a){if(htmlDependencies.hasOwnProperty(a.name))return!1;registerDependency(a.name,a.version);var b=a.src.href,c=$("head").first();if(a.meta){var d=$.map(asArray(a.meta),function(a,b){var c=Object.keys(a)[0];return $("").attr("name",c).attr("content",a[c])});c.append(d)}if(a.stylesheet){var e=$.map(asArray(a.stylesheet),function(a){return $("").attr("href",b+"/"+encodeURI(a))});c.append(e)}if(a.script){var f=$.map(asArray(a.script),function(a){return $("