!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=e||self).vegaEmbed=t(e.vega,e.vegaLite)}(this,(function(e,t){"use strict";var r="6.6.0"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ function n(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))} /*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017 Joachim Wester * MIT license */var o,i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=Object.prototype.hasOwnProperty;function s(e,t){return a.call(e,t)}function l(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&t<=57))return!1;r++}return!0}function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function f(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u(e,t){var r=[e];for(var n in t){var o="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==o&&r.push(n+": "+o)}return r.join("\n")}var h=function(e){function t(t,r,n,o,i){var a=this.constructor,s=e.call(this,u(t,{name:r,index:n,operation:o,tree:i}))||this;return s.name=r,s.index=n,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=u(t,{name:r,index:n,operation:o,tree:i}),s}return i(t,e),t}(Error),v=h,g=c,m={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=b(r,this.path);n&&(n=c(n));var o=y(r,{op:"remove",path:this.from}).removed;return y(r,{op:"add",path:this.path,value:o}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=b(r,this.from);return y(r,{op:"add",path:this.path,value:c(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:A(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},E={add:function(e,t,r){return p(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:m.move,copy:m.copy,test:m.test,_get:m._get};function b(e,t){if(""==t)return e;var r={op:"_get",path:t};return y(e,r),r.value}function y(e,t,r,n,o,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):w(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=b(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=A(e,t.value),!1===a.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(r)throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}n||(e=c(e));var s=(t.path||"").split("/"),l=e,d=1,u=s.length,h=void 0,g=void 0,y=void 0;for(y="function"==typeof r?r:w;;){if(g=s[d],o&&"__proto__"==g)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===h&&(void 0===l[g]?h=s.slice(0,d).join("/"):d==u-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),d++,Array.isArray(l)){if("-"===g)g=l.length;else{if(r&&!p(g))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);p(g)&&(g=~~g)}if(d>=u){if(r&&"add"===t.op&&g>l.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=E[t.op].call(t,l,g,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(g&&-1!=g.indexOf("~")&&(g=f(g)),d>=u){if(!1===(a=m[t.op].call(t,l,g,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}l=l[g]}}function O(e,t,r,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!0),r&&!Array.isArray(t))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=c(e));for(var i=new Array(t.length),a=0,s=t.length;a0)throw new v('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 v("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 v("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)&&function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var r=0,n=t.length;r0&&(e.patches=[],e.callback&&e.callback(n)),n}function S(e,t,r,n,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=l(t),a=l(e),p=!1,f=a.length-1;f>=0;f--){var u=e[v=a[f]];if(!s(t,v)||void 0===t[v]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+d(v),value:c(u)}),r.push({op:"remove",path:n+"/"+d(v)}),p=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var h=t[v];"object"==typeof u&&null!=u&&"object"==typeof h&&null!=h?S(u,h,r,n+"/"+d(v),o):u!==h&&(o&&r.push({op:"test",path:n+"/"+d(v),value:c(u)}),r.push({op:"replace",path:n+"/"+d(v),value:c(h)}))}}if(p||i.length!=a.length)for(f=0;f0)return[g,r+c.join(",\n"+h),s].join("\n"+i)}return m}(e,"",0)};function F(e,t){return e(t={exports:{}},t.exports),t.exports}var P={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var _="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},k=F((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=P,n=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let a=0;const s=(e,t,r)=>{const s=a++;_(s,t),i[e]=s,o[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",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),s("FULL",`^${o[i.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),s("LOOSE",`^${o[i.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",o[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),s("XRANGEIDENTIFIER",o[i.NUMERICIDENTIFIER]+"|x|X|\\*"),s("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),s("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),s("COERCERTL",o[i.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));k.re,k.src,k.t,k.tildeTrimReplace,k.caretTrimReplace,k.comparatorTrimReplace;const j=/^[0-9]+$/,z=(e,t)=>{const r=j.test(e),n=j.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:ez(t,e)};const{MAX_LENGTH:B,MAX_SAFE_INTEGER:G}=P,{re:U,t:X}=k,{compareIdentifiers:V}=M;class W{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){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>B)throw new TypeError(`version is longer than ${B} characters`);_("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?U[X.LOOSE]:U[X.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>G||this.major<0)throw new TypeError("Invalid major version");if(this.minor>G||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>G||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 H=W;const{MAX_LENGTH:q}=P,{re:Y,t:J}=k;var Q=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof H)return e;if("string"!=typeof e)return null;if(e.length>q)return null;if(!(t.loose?Y[J.LOOSE]:Y[J.FULL]).test(e))return null;try{return new H(e,t)}catch(e){return null}};var Z=(e,t)=>{const r=Q(e,t);return r?r.version:null};var K=(e,t)=>{const r=Q(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var ee=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new H(e,r).inc(t,n).version}catch(e){return null}};var te=(e,t,r)=>new H(e,r).compare(new H(t,r));var re=(e,t,r)=>0===te(e,t,r);var ne=(e,t)=>{if(re(e,t))return null;{const r=Q(e),n=Q(t),o=r.prerelease.length||n.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return i+e;return a}};var oe=(e,t)=>new H(e,t).major;var ie=(e,t)=>new H(e,t).minor;var ae=(e,t)=>new H(e,t).patch;var se=(e,t)=>{const r=Q(e,t);return r&&r.prerelease.length?r.prerelease:null};var le=(e,t,r)=>te(t,e,r);var ce=(e,t)=>te(e,t,!0);var pe=(e,t,r)=>{const n=new H(e,r),o=new H(t,r);return n.compare(o)||n.compareBuild(o)};var de=(e,t)=>e.sort((e,r)=>pe(e,r,t));var fe=(e,t)=>e.sort((e,r)=>pe(r,e,t));var ue=(e,t,r)=>te(e,t,r)>0;var he=(e,t,r)=>te(e,t,r)<0;var ve=(e,t,r)=>0!==te(e,t,r);var ge=(e,t,r)=>te(e,t,r)>=0;var me=(e,t,r)=>te(e,t,r)<=0;var Ee=(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 re(e,r,n);case"!=":return ve(e,r,n);case">":return ue(e,r,n);case">=":return ge(e,r,n);case"<":return he(e,r,n);case"<=":return me(e,r,n);default:throw new TypeError("Invalid operator: "+t)}};const{re:be,t:ye}=k;var Oe=(e,t)=>{if(e instanceof H)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=be[ye.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),be[ye.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;be[ye.COERCERTL].lastIndex=-1}else r=e.match(be[ye.COERCE]);return null===r?null:Q(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};class we{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof we)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new we(e.raw,t);if(e instanceof Xe)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);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?Ae[Re.HYPHENRANGELOOSE]:Ae[Re.HYPHENRANGE];e=e.replace(r,Me(this.options.includePrerelease)),_("hyphen replace",e),e=e.replace(Ae[Re.COMPARATORTRIM],Ne),_("comparator trim",e,Ae[Re.COMPARATORTRIM]),e=(e=(e=e.replace(Ae[Re.TILDETRIM],$e)).replace(Ae[Re.CARETTRIM],Te)).split(/\s+/).join(" ");const n=t?Ae[Re.COMPARATORLOOSE]:Ae[Re.COMPARATOR];return e.split(" ").map(e=>Se(e,this.options)).join(" ").split(/\s+/).map(e=>ze(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new Xe(e,this.options))}intersects(e,t){if(!(e instanceof we))throw new TypeError("a Range is required");return this.set.some(r=>Le(r,t)&&e.set.some(e=>Le(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 H(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r},Se=(e,t)=>(_("comp",e,t),e=Fe(e,t),_("caret",e),e=xe(e,t),_("tildes",e),e=_e(e,t),_("xrange",e),e=je(e,t),_("stars",e),e),Ce=e=>!e||"x"===e.toLowerCase()||"*"===e,xe=(e,t)=>e.trim().split(/\s+/).map(e=>De(e,t)).join(" "),De=(e,t)=>{const r=t.loose?Ae[Re.TILDELOOSE]:Ae[Re.TILDE];return e.replace(r,(t,r,n,o,i)=>{let a;return _("tilde",e,t,r,n,o,i),Ce(r)?a="":Ce(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:Ce(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(_("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,_("tilde return",a),a})},Fe=(e,t)=>e.trim().split(/\s+/).map(e=>Pe(e,t)).join(" "),Pe=(e,t)=>{_("caret",e,t);const r=t.loose?Ae[Re.CARETLOOSE]:Ae[Re.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,o,i,a)=>{let s;return _("caret",e,t,r,o,i,a),Ce(r)?s="":Ce(o)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:Ce(i)?s="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(_("replaceCaret pr",a),s="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(_("no pr"),s="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),_("caret return",s),s})},_e=(e,t)=>(_("replaceXRanges",e,t),e.split(/\s+/).map(e=>ke(e,t)).join(" ")),ke=(e,t)=>{e=e.trim();const r=t.loose?Ae[Re.XRANGELOOSE]:Ae[Re.XRANGE];return e.replace(r,(r,n,o,i,a,s)=>{_("xRange",e,r,n,o,i,a,s);const l=Ce(o),c=l||Ce(i),p=c||Ce(a),d=p;return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(i=0),a=0,">"===n?(n=">=",c?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",c?o=+o+1:i=+i+1),"<"===n&&(s="-0"),r=`${n+o}.${i}.${a}${s}`):c?r=`>=${o}.0.0${s} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${i}.0${s} <${o}.${+i+1}.0-0`),_("xRange return",r),r})},je=(e,t)=>(_("replaceStars",e,t),e.trim().replace(Ae[Re.STAR],"")),ze=(e,t)=>(_("replaceGTE0",e,t),e.trim().replace(Ae[t.includePrerelease?Re.GTE0PRE:Re.GTE0],"")),Me=e=>(t,r,n,o,i,a,s,l,c,p,d,f,u)=>`${r=Ce(n)?"":Ce(o)?`>=${n}.0.0${e?"-0":""}`:Ce(i)?`>=${n}.${o}.0${e?"-0":""}`:a?">="+r:`>=${r}${e?"-0":""}`} ${l=Ce(c)?"":Ce(p)?`<${+c+1}.0.0-0`:Ce(d)?`<${c}.${+p+1}.0-0`:f?`<=${c}.${p}.${d}-${f}`:e?`<${c}.${p}.${+d+1}-0`:"<="+l}`.trim(),Be=(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},Ge=Symbol("SemVer ANY");class Ue{static get ANY(){return Ge}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Ue){if(e.loose===!!t.loose)return e;e=e.value}_("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ge?this.value="":this.value=this.operator+this.semver.version,_("comp",this)}parse(e){const t=this.options.loose?Ve[We.COMPARATORLOOSE]:Ve[We.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 H(r[2],this.options.loose):this.semver=Ge}toString(){return this.value}test(e){if(_("Comparator.test",e,this.options.loose),this.semver===Ge||e===Ge)return!0;if("string"==typeof e)try{e=new H(e,this.options)}catch(e){return!1}return Ee(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ue))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new Ie(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new Ie(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),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=Ee(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=Ee(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&i||a||s}}var Xe=Ue;const{re:Ve,t:We}=k;var He=(e,t,r)=>{try{t=new Ie(t,r)}catch(e){return!1}return t.test(e)};var qe=(e,t)=>new Ie(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));var Ye=(e,t,r)=>{let n=null,o=null,i=null;try{i=new Ie(t,r)}catch(e){return null}return e.forEach(e=>{i.test(e)&&(n&&-1!==o.compare(e)||(n=e,o=new H(n,r)))}),n};var Je=(e,t,r)=>{let n=null,o=null,i=null;try{i=new Ie(t,r)}catch(e){return null}return e.forEach(e=>{i.test(e)&&(n&&1!==o.compare(e)||(n=e,o=new H(n,r)))}),n};var Qe=(e,t)=>{e=new Ie(e,t);let r=new H("0.0.0");if(e.test(r))return r;if(r=new H("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new H(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!ue(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}return r&&e.test(r)?r:null};var Ze=(e,t)=>{try{return new Ie(e,t).range||"*"}catch(e){return null}};const{ANY:Ke}=Xe;var et=(e,t,r,n)=>{let o,i,a,s,l;switch(e=new H(e,n),t=new Ie(t,n),r){case">":o=ue,i=me,a=he,s=">",l=">=";break;case"<":o=he,i=ge,a=ue,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(He(e,t,n))return!1;for(let r=0;r{e.semver===Ke&&(e=new Xe(">=0.0.0")),p=p||e,d=d||e,o(e.semver,p.semver,n)?p=e:a(e.semver,d.semver,n)&&(d=e)}),p.operator===s||p.operator===l)return!1;if((!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};var tt=(e,t,r)=>et(e,t,">",r);var rt=(e,t,r)=>et(e,t,"<",r);var nt=(e,t,r)=>(e=new Ie(e,r),t=new Ie(t,r),e.intersects(t));const{ANY:ot}=Xe,it=(e,t,r)=>{if(1===e.length&&e[0].semver===ot)return 1===t.length&&t[0].semver===ot;const n=new Set;let o,i,a,s,l,c,p;for(const t of e)">"===t.operator||">="===t.operator?o=at(o,t,r):"<"===t.operator||"<="===t.operator?i=st(i,t,r):n.add(t.semver);if(n.size>1)return null;if(o&&i){if(a=te(o.semver,i.semver,r),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const e of n){if(o&&!He(e,String(o),r))return null;if(i&&!He(e,String(i),r))return null;for(const n of t)if(!He(e,String(n),r))return!1;return!0}for(const e of t){if(p=p||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,o)if(">"===e.operator||">="===e.operator){if(s=at(o,e,r),s===e)return!1}else if(">="===o.operator&&!He(o.semver,String(e),r))return!1;if(i)if("<"===e.operator||"<="===e.operator){if(l=st(i,e,r),l===e)return!1}else if("<="===i.operator&&!He(i.semver,String(e),r))return!1;if(!e.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&!(i&&p&&!o&&0!==a)},at=(e,t,r)=>{if(!e)return t;const n=te(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},st=(e,t,r)=>{if(!e)return t;const n=te(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var lt,ct=(e,t,r)=>{e=new Ie(e,r),t=new Ie(t,r);let n=!1;e:for(const o of e.set){for(const e of t.set){const t=it(o,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},pt={re:k.re,src:k.src,tokens:k.t,SEMVER_SPEC_VERSION:P.SEMVER_SPEC_VERSION,SemVer:H,compareIdentifiers:M.compareIdentifiers,rcompareIdentifiers:M.rcompareIdentifiers,parse:Q,valid:Z,clean:K,inc:ee,diff:ne,major:oe,minor:ie,patch:ae,prerelease:se,compare:te,rcompare:le,compareLoose:ce,compareBuild:pe,sort:de,rsort:fe,gt:ue,lt:he,eq:re,neq:ve,gte:ge,lte:me,cmp:Ee,coerce:Oe,Comparator:Xe,Range:Ie,satisfies:He,toComparators:qe,maxSatisfying:Ye,minSatisfying:Je,minVersion:Qe,validRange:Ze,outside:et,gtr:tt,ltr:rt,intersects:nt,simplifyRange:(e,t,r)=>{const n=[];let o=null,i=null;const a=e.sort((e,t)=>te(e,t,r));for(const e of a){He(e,t,r)?(i=e,o||(o=e)):(i&&n.push([o,i]),i=null,o=null)}o&&n.push([o,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.lengtht&&c(),a=t=r+1):"]"===n&&(a||Ct("Access path missing open bracket: "+e),a>0&&c(),a=0,t=r+1):r>t?c():t=r+1}return a&&Ct("Access path missing closing bracket: "+e),i&&Ct("Access path missing closing quote: "+e),r>t&&(r++,c()),o}(e),n="return _["+r.map(Pt).join("][")+"];";St(Function("_",n),[e=1===r.length?r[0]:e],t||e)})("id"),St((function(e){return e}),_t,"identity"),St((function(){return 0}),_t,"zero"),St((function(){return 1}),_t,"one"),St((function(){return!0}),_t,"true"),St((function(){return!1}),_t,"false");const kt=e=>"__proto__"!==e;function jt(...e){return e.reduce((e,t)=>{for(var r in t)if("signals"===r)e.signals=Mt(e.signals,t.signals);else{var n="legend"===r?{layout:1}:"style"===r||null;zt(e,r,t[r],n)}return e},{})}function zt(e,t,r,n){var o,i;if(kt(t))if(Dt(r)&&!xt(r))for(o in i=Dt(e[t])?e[t]:e[t]={},r)n&&(!0===n||n[o])?zt(i,o,r[o]):kt(o)&&(i[o]=r[o]);else e[t]=r}function Mt(e,t){if(null==e)return t;const r={},n=[];function o(e){r[e.name]||(r[e.name]=1,n.push(e))}return t.forEach(o),e.forEach(o),n}var Bt=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 o=0;for(n=Object.getOwnPropertySymbols(e);oe?"[Object]":t.indexOf(n)>=0?"[Circular]":(t.push(n),n)}}(t))}class Ut{constructor(e){this.options=Object.assign(Object.assign({},Lt),e);const t=this.options.id;if(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 $t.toString().replace(Tt,e)}(t);const r=document.head;r.childNodes.length>0?r.insertBefore(e,r.childNodes[0]):r.appendChild(e)}this.el=document.getElementById(t),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",t),this.el.classList.add("vg-tooltip"),document.body.appendChild(this.el))}tooltipHandler(e,t,r,n){if(null==n||""===n)return void this.el.classList.remove("visible",this.options.theme+"-theme");this.el.innerHTML=function(e,t,r){if(xt(e))return`[${e.map(e=>t(Ft(e)?e:Gt(e,r))).join(", ")}]`;if(Dt(e)){let n="";const o=e,{title:i}=o,a=Bt(o,["title"]);i&&(n+=`

${t(i)}

`);const s=Object.keys(a);if(s.length>0){n+="";for(const e of s){let o=a[e];void 0!==o&&(Dt(o)&&(o=Gt(o,r)),n+=``)}n+="
${t(e)}:${t(o)}
"}return n||"{}"}return t(e)}(n,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",this.options.theme+"-theme");const{x:o,y:i}=function(e,t,r,n){let o=e.clientX+r;o+t.width>window.innerWidth&&(o=+e.clientX-r-t.width);let i=e.clientY+n;return i+t.height>window.innerHeight&&(i=+e.clientY-n-t.height),{x:o,y:i}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.setAttribute("style",`top: ${i}px; left: ${o}px`)}}var Xt,Vt='.vega-embed {\n position: relative;\n display: inline-block; }\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\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: scroll;\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';function Wt(e,...t){for(const r of t)Ht(e,r);return e}function Ht(t,r){for(const n of Object.keys(r))e.writeConfig(t,n,r[n],!0)}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e});const qt=e;let Yt=t;const Jt="undefined"!=typeof window?window:void 0;void 0===Yt&&(null===(Xt=null==Jt?void 0:Jt.vl)||void 0===Xt?void 0:Xt.compile)&&(Yt=Jt.vl);const Qt={export:{svg:!0,png:!0},source:!0,compiled:!0,editor:!0},Zt={CLICK_TO_VIEW_ACTIONS:"Click to view actions",COMPILED_ACTION:"View Compiled Vega",EDITOR_ACTION:"Open in Vega Editor",PNG_ACTION:"Save as PNG",SOURCE_ACTION:"View Source",SVG_ACTION:"Save as SVG"},Kt={vega:"Vega","vega-lite":"Vega-Lite"},er={vega:qt.version,"vega-lite":Yt?Yt.version:"not available"},tr={vega:e=>e,"vega-lite":(e,t)=>Yt.compile(e,{config:t}).spec};function rr(e,t,r,n){const o=`${t}
`,i=`
${r}`,a=window.open("");a.document.write(o+e+i),a.document.title=Kt[n]+" JSON Source"}function nr(e,t,r={}){var o,i,a;return n(this,void 0,void 0,(function*(){const s=(l=r.loader)&&"load"in l?r.loader:qt.loader(r.loader);var l;const c=Ft(t)?JSON.parse(yield s.load(t)):t,p=yield or(null!==(o=c.usermeta&&c.usermeta.embedOptions)&&void 0!==o?o:{},s),d=yield or(r,s),f=Object.assign(Object.assign({},Wt(d,p)),{config:jt(null!==(i=d.config)&&void 0!==i?i:{},null!==(a=p.config)&&void 0!==a?a:{})});return yield function(e,t,r={},o){var i,a,s,l,c,p;return n(this,void 0,void 0,(function*(){const d=r.theme?jt(Nt[r.theme],null!==(i=r.config)&&void 0!==i?i:{}):r.config,f="boolean"==typeof r.actions?r.actions:Wt({},Qt,null!==(a=r.actions)&&void 0!==a?a:{});const u=Object.assign(Object.assign({},Zt),r.i18n),h=null!==(s=r.renderer)&&void 0!==s?s:"canvas",v=null!==(l=r.logLevel)&&void 0!==l?l:qt.Warn,g=null!==(c=r.downloadFileName)&&void 0!==c?c:"visualization";if(!1!==r.defaultStyle){const e="vega-embed-style";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerText=void 0===r.defaultStyle||!0===r.defaultStyle?Vt.toString():r.defaultStyle,document.head.appendChild(t)}}const m=function(e,t){var r;if(e.$schema){const n=ft(e.$schema);t&&t!==n.library&&console.warn(`The given visualization spec is written in ${Kt[n.library]}, but mode argument sets ${null!==(r=Kt[t])&&void 0!==r?r:t}.`);const o=n.library;return pt(er[o],"^"+n.version.slice(1))||console.warn(`The input spec uses ${Kt[o]} ${n.version}, but the current version of ${Kt[o]} is v${er[o]}.`),o}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"}(t,r.mode);let E=tr[m](t,d);if("vega-lite"===m&&E.$schema){const e=ft(E.$schema);pt(er.vega,"^"+e.version.slice(1))||console.warn(`The compiled spec uses Vega ${e.version}, but current version is v${er.vega}.`)}const b="string"==typeof e?document.querySelector(e):e;if(!b)throw Error(e+" does not exist");b.classList.add("vega-embed"),f&&b.classList.add("has-actions"),b.innerHTML="";const y=r.patch;y&&(E=y instanceof Function?y(E):O(E,y,!0,!1).newDocument),r.formatLocale&&qt.formatLocale(r.formatLocale),r.timeFormatLocale&&qt.timeFormatLocale(r.timeFormatLocale);const w=qt.parse(E,"vega-lite"===m?{}:d),I=new qt.View(w,{loader:o,logLevel:v,renderer:h});if(!1!==r.tooltip){let e;e="function"==typeof r.tooltip?r.tooltip:new Ut(!0===r.tooltip?{}:r.tooltip).call,I.tooltip(e)}let A,{hover:R}=r;if(void 0===R&&(R="vega"===m),R){const{hoverSet:e,updateSet:t}="boolean"==typeof R?{}:R;I.hover(e,t)}if(r&&(null!=r.width&&I.width(r.width),null!=r.height&&I.height(r.height),null!=r.padding&&I.padding(r.padding)),yield I.initialize(e).runAsync(),!1!==f){let e=b;if(!1!==r.defaultStyle){const t=document.createElement("details");t.title=u.CLICK_TO_VIEW_ACTIONS,b.append(t),e=t;const r=document.createElement("summary");r.innerHTML='\n\n \n \n \n',t.append(r),A=e=>{t.contains(e.target)||t.removeAttribute("open")},document.addEventListener("click",A)}const o=document.createElement("div");if(e.append(o),o.classList.add("vega-actions"),!0===f||!1!==f.export)for(const e of["svg","png"])if(!0===f||!0===f.export||f.export[e]){const t=u[e.toUpperCase()+"_ACTION"],i=document.createElement("a");i.text=t,i.href="#",i.target="_blank",i.download=`${g}.${e}`,i.addEventListener("mousedown",(function(t){return n(this,void 0,void 0,(function*(){t.preventDefault();const n=yield I.toImageURL(e,r.scaleFactor);this.href=n}))})),o.append(i)}if(!0===f||!1!==f.source){const e=document.createElement("a");e.text=u.SOURCE_ACTION,e.href="#",e.addEventListener("mousedown",(function(e){var n,o;rr(D(t),null!==(n=r.sourceHeader)&&void 0!==n?n:"",null!==(o=r.sourceFooter)&&void 0!==o?o:"",m),e.preventDefault()})),o.append(e)}if("vega-lite"===m&&(!0===f||!1!==f.compiled)){const e=document.createElement("a");e.text=u.COMPILED_ACTION,e.href="#",e.addEventListener("mousedown",(function(e){var t,n;rr(D(E),null!==(t=r.sourceHeader)&&void 0!==t?t:"",null!==(n=r.sourceFooter)&&void 0!==n?n:"","vega"),e.preventDefault()})),o.append(e)}if(!0===f||!1!==f.editor){const e=null!==(p=r.editorUrl)&&void 0!==p?p:"https://vega.github.io/editor/",n=document.createElement("a");n.text=u.EDITOR_ACTION,n.href="#",n.addEventListener("mousedown",(function(r){!function(e,t,r){const n=e.open(t);let o=40;e.addEventListener("message",(function t(r){r.source===n&&(o=0,e.removeEventListener("message",t,!1))}),!1),setTimeout((function e(){o<=0||(n.postMessage(r,"*"),setTimeout(e,250),o-=1)}),250)}(window,e,{config:d,mode:m,renderer:h,spec:D(t)}),r.preventDefault()})),o.append(n)}}return{view:I,spec:t,vgSpec:E,finalize:function(){A&&document.removeEventListener("click",A),I.finalize()}}}))}(e,c,f,s)}))}function or(e,t){var r;return n(this,void 0,void 0,(function*(){const n=Ft(e.config)?JSON.parse(yield t.load(e.config)):null!==(r=e.config)&&void 0!==r?r:{},o=Ft(e.patch)?JSON.parse(yield t.load(e.patch)):e.patch;return Object.assign(Object.assign(Object.assign({},e),o?{patch:o}:{}),n?{config:n}:{})}))}function ir(e,t={}){var r;return n(this,void 0,void 0,(function*(){const n=document.createElement("div");n.classList.add("vega-embed-wrapper");const o=document.createElement("div");n.appendChild(o);const i=!0===t.actions||!1===t.actions?t.actions:Object.assign({export:!0,source:!1,compiled:!0,editor:!0},null!==(r=t.actions)&&void 0!==r?r:{}),a=yield nr(o,e,Object.assign({actions:i},null!=t?t:{}));return n.value=a.view,n}))}const ar=(...t)=>{return t.length>1&&(e.isString(t[0])&&!((r=t[0]).startsWith("http://")||r.startsWith("https://")||r.startsWith("//"))||t[0]instanceof HTMLElement||3===t.length)?nr(t[0],t[1],t[2]):ir(t[0],t[1]);var r};return ar.vegaLite=Yt,ar.vl=Yt,ar.container=ir,ar.embed=nr,ar.vega=qt,ar.default=nr,ar.version=r,ar}));