!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vega"),require("vega-lite")):"function"==typeof define&&define.amd?define(["vega","vega-lite"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).vegaEmbed=t(e.vega,e.vegaLite)}(this,(function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(e),i=r(t),o="6.17.0",a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=48&&t<=57))return!1;r++}return!0}function g(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function E(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t=h){if(r&&"add"===t.op&&p>l.length)throw new w("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(a=I[t.op].call(t,l,p,e)).test)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}}else if(p&&-1!=p.indexOf("~")&&(p=m(p)),c>=h){if(!1===(a=A[t.op].call(t,l,p,e)).test)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}l=l[p]}}function x(e,t,r,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),r&&!Array.isArray(t))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=d(e));for(var o=new Array(t.length),a=0,s=t.length;a0)throw new w('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new w("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&E(e.value))throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var i=e.path.split("/").length,o=n.split("/").length;if(i!==o+1&&i!==o)throw new w("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new w("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var a=S([{op:"_get",path:e.from,value:void 0}],r);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new w("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function S(e,t,r){try{if(!Array.isArray(e))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)x(d(t),d(e),r||!0);else{r=r||$;for(var n=0;n0&&(e.patches=[],e.callback&&e.callback(n)),n}function P(e,t,r,n,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=f(t),a=f(e),s=!1,l=a.length-1;l>=0;l--){var c=e[u=a[l]];if(!p(t,u)||void 0===t[u]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+g(u),value:d(c)}),r.push({op:"remove",path:n+"/"+g(u)}),s=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var h=t[u];"object"==typeof c&&null!=c&&"object"==typeof h&&null!=h?P(c,h,r,n+"/"+g(u),i):c!==h&&(i&&r.push({op:"test",path:n+"/"+g(u),value:d(c)}),r.push({op:"replace",path:n+"/"+g(u),value:d(h)}))}}if(s||o.length!=a.length)for(l=0;l0)return[g,r+c.join(",\n"+d),s].join("\n"+o)}return m}(e,"",0)};var M={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var B="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},G=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=M,n=(t=e.exports={}).re=[],i=t.src=[],o=t.t={};let a=0;const s=(e,t,r)=>{const s=a++;B(s,t),o[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),s("FULL",`^${i[o.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),s("LOOSE",`^${i[o.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${i[o.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),s("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),s("COERCERTL",i[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const U=["includePrerelease","loose","rtl"];var X=e=>e?"object"!=typeof e?{loose:!0}:U.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const V=/^[0-9]+$/,W=(e,t)=>{const r=V.test(e),n=V.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eW(t,e)};const{MAX_LENGTH:q,MAX_SAFE_INTEGER:Y}=M,{re:J,t:Q}=G,{compareIdentifiers:Z}=H;class K{constructor(e,t){if(t=X(t),e instanceof K){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>q)throw new TypeError(`version is longer than ${q} characters`);B("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?J[Q.LOOSE]:J[Q.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Y||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Y||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Y||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var ee=K;const{MAX_LENGTH:te}=M,{re:re,t:ne}=G;var ie=(e,t)=>{if(t=X(t),e instanceof ee)return e;if("string"!=typeof e)return null;if(e.length>te)return null;if(!(t.loose?re[ne.LOOSE]:re[ne.FULL]).test(e))return null;try{return new ee(e,t)}catch(e){return null}};var oe=(e,t)=>{const r=ie(e,t);return r?r.version:null};var ae=(e,t)=>{const r=ie(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var se=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new ee(e,r).inc(t,n).version}catch(e){return null}};var le=(e,t,r)=>new ee(e,r).compare(new ee(t,r));var ce=(e,t,r)=>0===le(e,t,r);var he=(e,t)=>{if(ce(e,t))return null;{const r=ie(e),n=ie(t),i=r.prerelease.length||n.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return o+e;return a}};var ue=(e,t)=>new ee(e,t).major;var pe=(e,t)=>new ee(e,t).minor;var fe=(e,t)=>new ee(e,t).patch;var de=(e,t)=>{const r=ie(e,t);return r&&r.prerelease.length?r.prerelease:null};var ve=(e,t,r)=>le(t,e,r);var ge=(e,t)=>le(e,t,!0);var me=(e,t,r)=>{const n=new ee(e,r),i=new ee(t,r);return n.compare(i)||n.compareBuild(i)};var Ee=(e,t)=>e.sort(((e,r)=>me(e,r,t)));var be=(e,t)=>e.sort(((e,r)=>me(r,e,t)));var ye=(e,t,r)=>le(e,t,r)>0;var we=(e,t,r)=>le(e,t,r)<0;var Oe=(e,t,r)=>0!==le(e,t,r);var Ae=(e,t,r)=>le(e,t,r)>=0;var Ie=(e,t,r)=>le(e,t,r)<=0;var Re=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return ce(e,r,n);case"!=":return Oe(e,r,n);case">":return ye(e,r,n);case">=":return Ae(e,r,n);case"<":return we(e,r,n);case"<=":return Ie(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const{re:Ne,t:xe}=G;var $e=(e,t)=>{if(e instanceof ee)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=Ne[xe.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),Ne[xe.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;Ne[xe.COERCERTL].lastIndex=-1}else r=e.match(Ne[xe.COERCE]);return null===r?null:ie(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)},Se=Te;function Te(e){var t=this;if(t instanceof Te||(t=new Te),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},Te.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},Te.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},Te.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},Te.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Te;if(tthis.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&nthis.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},Te.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n1;const We=(e,t,r)=>{const n=e[Ue].get(t);if(n){const t=n.value;if(He(e,t)){if(Ye(e,n),!e[je])return}else r&&(e[Xe]&&(n.value.now=Date.now()),e[Ge].unshiftNode(n));return t.value}},He=(e,t)=>{if(!t||!t.maxAge&&!e[ze])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[ze]&&r>e[ze]},qe=e=>{if(e[Pe]>e[Fe])for(let t=e[Ge].tail;e[Pe]>e[Fe]&&null!==t;){const r=t.prev;Ye(e,t),t=r}},Ye=(e,t)=>{if(t){const r=t.value;e[Me]&&e[Me](r.key,r.value),e[Pe]-=r.length,e[Ue].delete(r.key),e[Ge].removeNode(t)}};class Je{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const Qe=(e,t,r,n)=>{let i=r.value;He(e,i)&&(Ye(e,r),e[je]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Ze=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[Fe]=e.max||1/0;const t=e.length||Ve;if(this[_e]="function"!=typeof t?Ve:t,this[je]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[ze]=e.maxAge||0,this[Me]=e.dispose,this[Be]=e.noDisposeOnSet||!1,this[Xe]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[Fe]=e||1/0,qe(this)}get max(){return this[Fe]}set allowStale(e){this[je]=!!e}get allowStale(){return this[je]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[ze]=e,qe(this)}get maxAge(){return this[ze]}set lengthCalculator(e){"function"!=typeof e&&(e=Ve),e!==this[_e]&&(this[_e]=e,this[Pe]=0,this[Ge].forEach((e=>{e.length=this[_e](e.value,e.key),this[Pe]+=e.length}))),qe(this)}get lengthCalculator(){return this[_e]}get length(){return this[Pe]}get itemCount(){return this[Ge].length}rforEach(e,t){t=t||this;for(let r=this[Ge].tail;null!==r;){const n=r.prev;Qe(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[Ge].head;null!==r;){const n=r.next;Qe(this,e,r,t),r=n}}keys(){return this[Ge].toArray().map((e=>e.key))}values(){return this[Ge].toArray().map((e=>e.value))}reset(){this[Me]&&this[Ge]&&this[Ge].length&&this[Ge].forEach((e=>this[Me](e.key,e.value))),this[Ue]=new Map,this[Ge]=new Se,this[Pe]=0}dump(){return this[Ge].map((e=>!He(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Ge]}set(e,t,r){if((r=r||this[ze])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,i=this[_e](t,e);if(this[Ue].has(e)){if(i>this[Fe])return Ye(this,this[Ue].get(e)),!1;const o=this[Ue].get(e).value;return this[Me]&&(this[Be]||this[Me](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[Pe]+=i-o.length,o.length=i,this.get(e),qe(this),!0}const o=new Je(e,t,i,n,r);return o.length>this[Fe]?(this[Me]&&this[Me](e,t),!1):(this[Pe]+=o.length,this[Ge].unshift(o),this[Ue].set(e,this[Ge].head),qe(this),!0)}has(e){if(!this[Ue].has(e))return!1;const t=this[Ue].get(e).value;return!He(this,t)}get(e){return We(this,e,!0)}peek(e){return We(this,e,!1)}pop(){const e=this[Ge].tail;return e?(Ye(this,e),e.value):null}del(e){Ye(this,this[Ue].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[Ue].forEach(((e,t)=>We(this,t,!1)))}};class Ke{constructor(e,t){if(t=X(t),e instanceof Ke)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ke(e.raw,t);if(e instanceof It)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!st(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&<(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=tt.get(t);if(r)return r;const n=this.options.loose,i=n?rt[nt.HYPHENRANGELOOSE]:rt[nt.HYPHENRANGE];e=e.replace(i,yt(this.options.includePrerelease)),B("hyphen replace",e),e=e.replace(rt[nt.COMPARATORTRIM],it),B("comparator trim",e,rt[nt.COMPARATORTRIM]),e=(e=(e=e.replace(rt[nt.TILDETRIM],ot)).replace(rt[nt.CARETTRIM],at)).split(/\s+/).join(" ");const o=n?rt[nt.COMPARATORLOOSE]:rt[nt.COMPARATOR],a=e.split(" ").map((e=>ht(e,this.options))).join(" ").split(/\s+/).map((e=>bt(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new It(e,this.options)));a.length;const s=new Map;for(const e of a){if(st(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return tt.set(t,l),l}intersects(e,t){if(!(e instanceof Ke))throw new TypeError("a Range is required");return this.set.some((r=>ct(r,t)&&e.set.some((e=>ct(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new ee(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,lt=e=>""===e.value,ct=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},ht=(e,t)=>(B("comp",e,t),e=dt(e,t),B("caret",e),e=pt(e,t),B("tildes",e),e=gt(e,t),B("xrange",e),e=Et(e,t),B("stars",e),e),ut=e=>!e||"x"===e.toLowerCase()||"*"===e,pt=(e,t)=>e.trim().split(/\s+/).map((e=>ft(e,t))).join(" "),ft=(e,t)=>{const r=t.loose?rt[nt.TILDELOOSE]:rt[nt.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return B("tilde",e,t,r,n,i,o),ut(r)?a="":ut(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:ut(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(B("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,B("tilde return",a),a}))},dt=(e,t)=>e.trim().split(/\s+/).map((e=>vt(e,t))).join(" "),vt=(e,t)=>{B("caret",e,t);const r=t.loose?rt[nt.CARETLOOSE]:rt[nt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let s;return B("caret",e,t,r,i,o,a),ut(r)?s="":ut(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:ut(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(B("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(B("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),B("caret return",s),s}))},gt=(e,t)=>(B("replaceXRanges",e,t),e.split(/\s+/).map((e=>mt(e,t))).join(" ")),mt=(e,t)=>{e=e.trim();const r=t.loose?rt[nt.XRANGELOOSE]:rt[nt.XRANGE];return e.replace(r,((r,n,i,o,a,s)=>{B("xRange",e,r,n,i,o,a,s);const l=ut(i),c=l||ut(o),h=c||ut(a),u=h;return"="===n&&u&&(n=""),s=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),B("xRange return",r),r}))},Et=(e,t)=>(B("replaceStars",e,t),e.trim().replace(rt[nt.STAR],"")),bt=(e,t)=>(B("replaceGTE0",e,t),e.trim().replace(rt[t.includePrerelease?nt.GTE0PRE:nt.GTE0],"")),yt=e=>(t,r,n,i,o,a,s,l,c,h,u,p,f)=>`${r=ut(n)?"":ut(i)?`>=${n}.0.0${e?"-0":""}`:ut(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=ut(c)?"":ut(h)?`<${+c+1}.0.0-0`:ut(u)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${u}-${p}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),wt=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},Ot=Symbol("SemVer ANY");class At{static get ANY(){return Ot}constructor(e,t){if(t=X(t),e instanceof At){if(e.loose===!!t.loose)return e;e=e.value}B("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ot?this.value="":this.value=this.operator+this.semver.version,B("comp",this)}parse(e){const t=this.options.loose?Rt[Nt.COMPARATORLOOSE]:Rt[Nt.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new ee(r[2],this.options.loose):this.semver=Ot}toString(){return this.value}test(e){if(B("Comparator.test",e,this.options.loose),this.semver===Ot||e===Ot)return!0;if("string"==typeof e)try{e=new ee(e,this.options)}catch(e){return!1}return Re(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof At))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new et(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new et(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=Re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=Re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&o||a||s}}var It=At;const{re:Rt,t:Nt}=G;var xt=(e,t,r)=>{try{t=new et(t,r)}catch(e){return!1}return t.test(e)};var $t=(e,t)=>new et(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));var St=(e,t,r)=>{let n=null,i=null,o=null;try{o=new et(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new ee(n,r)))})),n};var Tt=(e,t,r)=>{let n=null,i=null,o=null;try{o=new et(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new ee(n,r)))})),n};var Lt=(e,t)=>{e=new et(e,t);let r=new ee("0.0.0");if(e.test(r))return r;if(r=new ee("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new ee(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!ye(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!ye(r,i)||(r=i)}return r&&e.test(r)?r:null};var Ct=(e,t)=>{try{return new et(e,t).range||"*"}catch(e){return null}};const{ANY:Dt}=It;var kt=(e,t,r,n)=>{let i,o,a,s,l;switch(e=new ee(e,n),t=new et(t,n),r){case">":i=ye,o=Ie,a=we,s=">",l=">=";break;case"<":i=we,o=Ae,a=ye,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xt(e,t,n))return!1;for(let r=0;r{e.semver===Dt&&(e=new It(">=0.0.0")),h=h||e,u=u||e,i(e.semver,h.semver,n)?h=e:a(e.semver,u.semver,n)&&(u=e)})),h.operator===s||h.operator===l)return!1;if((!u.operator||u.operator===s)&&o(e,u.semver))return!1;if(u.operator===l&&a(e,u.semver))return!1}return!0};var Ft=(e,t,r)=>kt(e,t,">",r);var Pt=(e,t,r)=>kt(e,t,"<",r);var _t=(e,t,r)=>(e=new et(e,r),t=new et(t,r),e.intersects(t));const{ANY:jt}=It,zt=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===jt){if(1===t.length&&t[0].semver===jt)return!0;e=r.includePrerelease?[new It(">=0.0.0-0")]:[new It(">=0.0.0")]}if(1===t.length&&t[0].semver===jt){if(r.includePrerelease)return!0;t=[new It(">=0.0.0")]}const n=new Set;let i,o,a,s,l,c,h;for(const t of e)">"===t.operator||">="===t.operator?i=Mt(i,t,r):"<"===t.operator||"<="===t.operator?o=Bt(o,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&o){if(a=le(i.semver,o.semver,r),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of n){if(i&&!xt(e,String(i),r))return null;if(o&&!xt(e,String(o),r))return null;for(const n of t)if(!xt(e,String(n),r))return!1;return!0}let u=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver,p=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;u&&1===u.prerelease.length&&"<"===o.operator&&0===u.prerelease[0]&&(u=!1);for(const e of t){if(h=h||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(p&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===p.major&&e.semver.minor===p.minor&&e.semver.patch===p.patch&&(p=!1),">"===e.operator||">="===e.operator){if(s=Mt(i,e,r),s===e&&s!==i)return!1}else if(">="===i.operator&&!xt(i.semver,String(e),r))return!1;if(o)if(u&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===u.major&&e.semver.minor===u.minor&&e.semver.patch===u.patch&&(u=!1),"<"===e.operator||"<="===e.operator){if(l=Bt(o,e,r),l===e&&l!==o)return!1}else if("<="===o.operator&&!xt(o.semver,String(e),r))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&h&&!i&&0!==a)&&(!p&&!u))},Mt=(e,t,r)=>{if(!e)return t;const n=le(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Bt=(e,t,r)=>{if(!e)return t;const n=le(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var Gt=(e,t,r={})=>{if(e===t)return!0;e=new et(e,r),t=new et(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=zt(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},Ut={re:G.re,src:G.src,tokens:G.t,SEMVER_SPEC_VERSION:M.SEMVER_SPEC_VERSION,SemVer:ee,compareIdentifiers:H.compareIdentifiers,rcompareIdentifiers:H.rcompareIdentifiers,parse:ie,valid:oe,clean:ae,inc:se,diff:he,major:ue,minor:pe,patch:fe,prerelease:de,compare:le,rcompare:ve,compareLoose:ge,compareBuild:me,sort:Ee,rsort:be,gt:ye,lt:we,eq:ce,neq:Oe,gte:Ae,lte:Ie,cmp:Re,coerce:$e,Comparator:It,Range:et,satisfies:xt,toComparators:$t,maxSatisfying:St,minSatisfying:Tt,minVersion:Lt,validRange:Ct,outside:kt,gtr:Ft,ltr:Pt,intersects:_t,simplifyRange:(e,t,r)=>{const n=[];let i=null,o=null;const a=e.sort(((e,t)=>le(e,t,r)));for(const e of a){xt(e,t,r)?(o=e,i||(i=e)):(o&&n.push([i,o]),o=null,i=null)}i&&n.push([i,null]);const s=[];for(const[e,t]of n)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.lengthfunction(t){return t[e]},$r=e=>{const t=e.length;return function(r){for(let n=0;nn&&c(),s=n=i+1):"]"===o&&(s||Sr("Access path missing open bracket: "+e),s>0&&c(),s=0,n=i+1):i>n?c():n=i+1}return s&&Sr("Access path missing closing bracket: "+e),a&&Sr("Access path missing closing quote: "+e),i>n&&(i++,c()),t}(e);e=1===n.length?n[0]:e,Rr((r&&r.get||Nr)(n),[e],t||e)}("id"),Rr((e=>e),[],"identity"),Rr((()=>0),[],"zero"),Rr((()=>1),[],"one"),Rr((()=>!0),[],"true"),Rr((()=>!1),[],"false");var Tr=Array.isArray;function Lr(e){return e===Object(e)}var Cr="#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black; }\n #vg-tooltip-element.visible {\n visibility: visible; }\n #vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px; }\n #vg-tooltip-element img {\n max-width: 200px;\n max-height: 200px; }\n #vg-tooltip-element table {\n border-spacing: 0; }\n #vg-tooltip-element table tr {\n border: none; }\n #vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px; }\n #vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px; }\n #vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left; }\n #vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white; }\n #vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf; }\n";const Dr="vg-tooltip-element",kr={offsetX:10,offsetY:10,id:Dr,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&").replace(/t("string"==typeof e?e:Pr(e,r)))).join(", ")}]`;if(Lr(e)){let n="";const i=e,{title:o,image:a}=i,s= /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i${t(o)}`),a&&(n+=``);const l=Object.keys(s);if(l.length>0){n+="";for(const e of l){let i=s[e];void 0!==i&&(Lr(i)&&(i=Pr(i,r)),n+=``)}n+="
${t(e)}:${t(i)}
"}return n||"{}"}return t(e)}function Pr(e,t){return JSON.stringify(e,function(e){const t=[];return function(r,n){if("object"!=typeof n||null===n)return n;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(n)>=0?"[Circular]":(t.push(n),n)}}(t))}class _r{constructor(e){this.options=Object.assign(Object.assign({},kr),e);const t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId),e.innerHTML=function(e){if(!/^[A-Za-z]+[-:.\w]*$/.test(e))throw new Error("Invalid HTML ID");return Cr.toString().replace(Dr,e)}(t);const r=document.head;r.childNodes.length>0?r.insertBefore(e,r.childNodes[0]):r.appendChild(e)}}tooltipHandler(e,t,r,n){this.el=document.getElementById(this.options.id),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip"),document.body.appendChild(this.el));if((null!=document.fullscreenElement?document.fullscreenElement:document.body).appendChild(this.el),null==n||""===n)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=Fr(n,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:i,y:o}=function(e,t,r,n){let i=e.clientX+r;i+t.width>window.innerWidth&&(i=+e.clientX-r-t.width);let o=e.clientY+n;return o+t.height>window.innerHeight&&(o=+e.clientY-n-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.setAttribute("style",`top: ${o}px; left: ${i}px`)}}var jr;function zr(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")}function Mr(e){for(var t=[],r=1;r
',o="
"+r+"",a=window.open("");a.document.write(i+e+o),a.document.title=Hr[n]+" JSON Source"}function Qr(e){return(t=e)&&"load"in t?e:Gr.loader(e);var t}function Zr(e){var t;return null!==(t=e.usermeta&&e.usermeta.embedOptions)&&void 0!==t?t:{}}function Kr(t,r,n){var i,o,c;return void 0===n&&(n={}),s(this,void 0,void 0,(function(){var s,h,u,p,f,d,v,g;return l(this,(function(l){switch(l.label){case 0:return e.isString(r)?(h=Qr(n.loader),p=(u=JSON).parse,[4,h.load(r)]):[3,2];case 1:return s=p.apply(u,[l.sent()]),[3,3];case 2:s=r,l.label=3;case 3:return f=Zr(s).loader,h&&!f||(h=Qr(null!==(i=n.loader)&&void 0!==i?i:f)),[4,en(Zr(s),h)];case 4:return d=l.sent(),[4,en(n,h)];case 5:return v=l.sent(),g=a(a({},Mr(v,d)),{config:e.mergeConfig(null!==(o=v.config)&&void 0!==o?o:{},null!==(c=d.config)&&void 0!==c?c:{})}),[4,tn(t,s,g,h)];case 6:return[2,l.sent()]}}))}))}function en(t,r){var n;return s(this,void 0,void 0,(function(){var i,o,s,c,h,u,p,f;return l(this,(function(l){switch(l.label){case 0:return e.isString(t.config)?(c=(s=JSON).parse,[4,r.load(t.config)]):[3,2];case 1:return o=c.apply(s,[l.sent()]),[3,3];case 2:o=null!==(n=t.config)&&void 0!==n?n:{},l.label=3;case 3:return i=o,e.isString(t.patch)?(f=(p=JSON).parse,[4,r.load(t.patch)]):[3,5];case 4:return u=f.apply(p,[l.sent()]),[3,6];case 5:u=t.patch,l.label=6;case 6:return h=u,[2,a(a(a({},t),h?{patch:h}:{}),i?{config:i}:{})]}}))}))}function tn(t,r,n,i){var o,c,h,u,p,f;return void 0===n&&(n={}),s(this,void 0,void 0,(function(){function d(){U&&document.removeEventListener("click",U),P.finalize()}var v,g,m,E,b,y,w,O,A,I,R,N,$,S,T,L,C,D,k,F,P,_,j,M,B,G,U,X,V,W,H,q,Y,J,Q,Z,K,ee;return l(this,(function(te){switch(te.label){case 0:if(v=n.theme?e.mergeConfig(Ir[n.theme],null!==(o=n.config)&&void 0!==o?o:{}):n.config,g=e.isBoolean(n.actions)?n.actions:Mr({},Vr,null!==(c=n.actions)&&void 0!==c?c:{}),m=a(a({},Wr),n.i18n),E=null!==(h=n.renderer)&&void 0!==h?h:"canvas",b=null!==(u=n.logLevel)&&void 0!==u?u:Gr.Warn,y=null!==(p=n.downloadFileName)&&void 0!==p?p:"visualization",!(w="string"==typeof t?document.querySelector(t):t))throw new Error(t+" does not exist");return!1!==n.defaultStyle&&(O="vega-embed-style",A=function(e){var t,r=e.getRootNode?e.getRootNode():document;return r instanceof ShadowRoot?{root:r,rootContainer:r}:{root:document,rootContainer:null!==(t=document.head)&&void 0!==t?t:document.body}}(w),I=A.root,R=A.rootContainer,I.getElementById(O)||((N=document.createElement("style")).id=O,N.innerText=void 0===n.defaultStyle||!0===n.defaultStyle?'.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box; }\n .vega-embed.has-actions {\n padding-right: 38px; }\n .vega-embed details:not([open]) > :not(summary) {\n display: none !important; }\n .vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n outline: none;\n cursor: pointer;\n line-height: 0px; }\n .vega-embed summary::-webkit-details-marker {\n display: none; }\n .vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset; }\n .vega-embed summary svg {\n width: 14px;\n height: 14px; }\n .vega-embed details[open] summary {\n opacity: 0.7; }\n .vega-embed:hover summary,\n .vega-embed:focus summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease; }\n .vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left; }\n .vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none; }\n .vega-embed .vega-actions a:hover {\n background-color: #f7f7f9;\n color: black; }\n .vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute; }\n .vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid #0000;\n border-bottom-color: #d9d9d9; }\n .vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid #0000;\n border-bottom-color: #fff; }\n .vega-embed .chart-wrapper {\n width: 100%;\n height: 100%; }\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px; }\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6); }\n to {\n opacity: 1;\n transform: scale(1); } }\n'.toString():n.defaultStyle,R.appendChild(N))),$=function(e,t){var r;if(e.$schema){var n=Xt(e.$schema);t&&t!==n.library&&console.warn("The given visualization spec is written in "+Hr[n.library]+", but mode argument sets "+(null!==(r=Hr[t])&&void 0!==r?r:t)+".");var i=n.library;return Ut.satisfies(qr[i],"^"+n.version.slice(1))||console.warn("The input spec uses "+Hr[i]+" "+n.version+", but the current version of "+Hr[i]+" is v"+qr[i]+"."),i}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":null!=t?t:"vega"}(r,n.mode),S=Yr[$](r,v),"vega-lite"===$&&S.$schema&&(T=Xt(S.$schema),Ut.satisfies(qr.vega,"^"+T.version.slice(1))||console.warn("The compiled spec uses Vega "+T.version+", but current version is v"+qr.vega+".")),w.classList.add("vega-embed"),g&&w.classList.add("has-actions"),w.innerHTML="",L=w,g&&((C=document.createElement("div")).classList.add("chart-wrapper"),w.appendChild(C),L=C),(D=n.patch)&&(S=D instanceof Function?D(S):x(S,D,!0,!1).newDocument),n.formatLocale&&Gr.formatLocale(n.formatLocale),n.timeFormatLocale&&Gr.timeFormatLocale(n.timeFormatLocale),k=n.ast,F=Gr.parse(S,"vega-lite"===$?{}:v,{ast:k}),P=new(n.viewClass||Gr.View)(F,a({loader:i,logLevel:b,renderer:E},k?{expr:Gr.expressionInterpreter}:{})),!1!==n.tooltip&&(_=void 0,re=n.tooltip,_="function"==typeof re?n.tooltip:new _r(!0===n.tooltip?{}:n.tooltip).call,P.tooltip(_)),void 0===(j=n.hover)&&(j="vega"===$),j&&(B=(M="boolean"==typeof j?{}:j).hoverSet,G=M.updateSet,P.hover(B,G)),n&&(null!=n.width&&P.width(n.width),null!=n.height&&P.height(n.height),null!=n.padding&&P.padding(n.padding)),[4,P.initialize(L,n.bind).runAsync()];case 1:if(te.sent(),!1!==g){if(X=w,!1!==n.defaultStyle&&((V=document.createElement("details")).title=m.CLICK_TO_VIEW_ACTIONS,w.append(V),X=V,(W=document.createElement("summary")).innerHTML='\n\n \n \n \n',V.append(W),U=function(e){V.contains(e.target)||V.removeAttribute("open")},document.addEventListener("click",U)),H=document.createElement("div"),X.append(H),H.classList.add("vega-actions"),!0===g||!1!==g.export)for(q=function(e){if(!0===g||!0===g.export||g.export[e]){var t=m[e.toUpperCase()+"_ACTION"],r=document.createElement("a");r.text=t,r.href="#",r.target="_blank",r.download=y+"."+e,r.addEventListener("mousedown",(function(t){return s(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return t.preventDefault(),[4,P.toImageURL(e,n.scaleFactor)];case 1:return r=i.sent(),this.href=r,[2]}}))}))})),H.append(r)}},Y=0,J=["svg","png"];Y1&&(e.isString(t[0])&&!zr(t[0])||nn(t[0])||3===t.length)?Kr(t[0],t[1],t[2]):rn(t[0],t[1])};return on.vegaLite=Ur,on.vl=Ur,on.container=rn,on.embed=Kr,on.vega=Gr,on.default=Kr,on.version=o,on})); //# sourceMappingURL=vega-embed.min.js.map