import{toBoolean as mr,toNumber as J,toDate as gr,toString as Ar,identity as $,hasOwnProperty as q,error as T,extend as Y,isFunction as V,stringValue as G,field as Rr,isObject as Tr,isArray as Ir,isIterable as Br}from"/-/vega-util@v1.17.2-LUfkDhormMyfWqy3Ts6U/dist=es2020,mode=imports,min/optimized/vega-util.js";import{dsvFormat as Ur}from"/-/d3-dsv@v3.0.1-u1xCRjaLJc0qqv1Z5ERe/dist=es2020,mode=imports,min/optimized/d3-dsv.js";import{feature as _r,mesh as dr}from"/-/topojson-client@v3.1.0-fyhI24JwGwsqazuuSEoq/dist=es2020,mode=imports,min/optimized/topojson-client.js";import{timeFormatDefaultLocale as vr}from"/-/vega-format@v1.1.2-rBsMjG1MOmb395qvySoI/dist=es2020,mode=imports,min/optimized/vega-format.js";var H=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},g=[],F=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,C=!1;function Z(){C=!0;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=i.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");o=i[h-2]==="="?2:i[h-1]==="="?1:0,u=new Dr(h*3/4-o),e=o>0?h-4:h;var s=0;for(r=0,n=0;r>16&255,u[s++]=t>>8&255,u[s++]=t&255;return o===2?(t=F[i.charCodeAt(r)]<<2|F[i.charCodeAt(r+1)]>>4,u[s++]=t&255):o===1&&(t=F[i.charCodeAt(r)]<<10|F[i.charCodeAt(r+1)]<<4|F[i.charCodeAt(r+2)]>>2,u[s++]=t>>8&255,u[s++]=t&255),u}function Pr(i){return g[i>>18&63]+g[i>>12&63]+g[i>>6&63]+g[i&63]}function Yr(i,r,n){for(var e,t=[],o=r;os?s:h+u));return e===1?(r=i[n-1],t+=g[r>>2],t+=g[r<<4&63],t+="=="):e===2&&(r=(i[n-2]<<8)+i[n-1],t+=g[r>>10],t+=g[r>>4&63],t+=g[r<<2&63],t+="="),o.push(t),o.join("")}function U(i,r,n,e,t){var o,u,h=t*8-e-1,s=(1<>1,l=-7,c=n?t-1:0,y=n?-1:1,x=i[r+c];for(c+=y,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+i[r+c],c+=y,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=e;l>0;u=u*256+i[r+c],c+=y,l-=8);if(o===0)o=1-a;else{if(o===s)return u?NaN:(x?-1:1)*Infinity;u=u+Math.pow(2,e),o=o-a}return(x?-1:1)*u*Math.pow(2,o-e)}function K(i,r,n,e,t,o){var u,h,s,a=o*8-t-1,l=(1<>1,y=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:o-1,w=e?1:-1,B=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===Infinity?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+c>=1?r+=y/s:r+=y*Math.pow(2,1-c),r*s>=2&&(u++,s/=2),u+c>=l?(h=0,u=l):u+c>=1?(h=(r*s-1)*Math.pow(2,t),u=u+c):(h=r*Math.pow(2,c-1)*Math.pow(2,t),u=0));t>=8;i[n+x]=h&255,x+=w,h/=256,t-=8);for(u=u<0;i[n+x]=u&255,x+=w,u/=256,a-=8);i[n+x-w]|=B*128}var Cr={}.toString,Q=Array.isArray||function(i){return Cr.call(i)=="[object Array]"};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var Mr=50;f.TYPED_ARRAY_SUPPORT=H.TYPED_ARRAY_SUPPORT!==void 0?H.TYPED_ARRAY_SUPPORT:!0;function M(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(i,r){if(M()=M())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M().toString(16)+" bytes");return i|0}f.isBuffer=un;function A(i){return!!(i!=null&&i._isBuffer)}f.compare=function(r,n){if(!A(r)||!A(n))throw new TypeError("Arguments must be Buffers");if(r===n)return 0;for(var e=r.length,t=n.length,o=0,u=Math.min(e,t);o>>1;case"base64":return cr(i).length;default:if(e)return v(i).length;r=(""+r).toLowerCase(),e=!0}}f.byteLength=nr;function Wr(i,r,n){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length)return"";if((n===void 0||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,r>>>=0,n<=r)return"";for(i||(i="utf8");;)switch(i){case"hex":return Xr(this,r,n);case"utf8":case"utf-8":return or(this,r,n);case"ascii":return Hr(this,r,n);case"latin1":case"binary":return Zr(this,r,n);case"base64":return Vr(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kr(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),e=!0}}f.prototype._isBuffer=!0;function I(i,r,n){var e=i[r];i[r]=i[n],i[n]=e}f.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n0&&(r=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(r+=" ... ")),""},f.prototype.compare=function(r,n,e,t,o){if(!A(r))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),o===void 0&&(o=this.length),n<0||e>r.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&n>=e)return 0;if(t>=o)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,t>>>=0,o>>>=0,this===r)return 0;for(var u=o-t,h=e-n,s=Math.min(u,h),a=this.slice(t,o),l=r.slice(n,e),c=0;c2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=t?0:i.length-1),n<0&&(n=i.length+n),n>=i.length){if(t)return-1;n=i.length-1}else if(n<0)if(t)n=0;else return-1;if(typeof r=="string"&&(r=f.from(r,e)),A(r))return r.length===0?-1:er(i,r,n,e,t);if(typeof r=="number")return r=r&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(i,r,n):Uint8Array.prototype.lastIndexOf.call(i,r,n):er(i,[r],n,e,t);throw new TypeError("val must be string, number or Buffer")}function er(i,r,n,e,t){var o=1,u=i.length,h=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,u/=2,h/=2,n/=2}function s(x,w){return o===1?x[w]:x.readUInt16BE(w*o)}var a;if(t){var l=-1;for(a=n;au&&(n=u-h),a=n;a>=0;a--){for(var c=!0,y=0;yt&&(e=t)):e=t;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;uo)&&(e=o),r.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u=!1;;)switch(t){case"hex":return jr(this,r,n,e);case"utf8":case"utf-8":return zr(this,r,n,e);case"ascii":return tr(this,r,n,e);case"latin1":case"binary":return Jr(this,r,n,e);case"base64":return $r(this,r,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qr(this,r,n,e);default:if(u)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),u=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vr(i,r,n){return r===0&&n===i.length?X(i):X(i.slice(r,n))}function or(i,r,n){n=Math.min(i.length,n);for(var e=[],t=r;t239?4:o>223?3:o>191?2:1;if(t+h<=n){var s,a,l,c;switch(h){case 1:o<128&&(u=o);break;case 2:s=i[t+1],(s&192)===128&&(c=(o&31)<<6|s&63,c>127&&(u=c));break;case 3:s=i[t+1],a=i[t+2],(s&192)===128&&(a&192)===128&&(c=(o&15)<<12|(s&63)<<6|a&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:s=i[t+1],a=i[t+2],l=i[t+3],(s&192)===128&&(a&192)===128&&(l&192)===128&&(c=(o&15)<<18|(s&63)<<12|(a&63)<<6|l&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|u&1023),e.push(u),t+=h}return Gr(e)}var ur=4096;function Gr(i){var r=i.length;if(r<=ur)return String.fromCharCode.apply(String,i);for(var n="",e=0;ee)&&(n=e);for(var t="",o=r;oe&&(r=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),nn)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=this[r],o=1,u=0;++u0&&(o*=256);)t+=this[r+--n]*o;return t},f.prototype.readUInt8=function(r,n){return n||p(r,1,this.length),this[r]},f.prototype.readUInt16LE=function(r,n){return n||p(r,2,this.length),this[r]|this[r+1]<<8},f.prototype.readUInt16BE=function(r,n){return n||p(r,2,this.length),this[r]<<8|this[r+1]},f.prototype.readUInt32LE=function(r,n){return n||p(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},f.prototype.readUInt32BE=function(r,n){return n||p(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},f.prototype.readIntLE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=this[r],o=1,u=0;++u=o&&(t-=Math.pow(2,8*n)),t},f.prototype.readIntBE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=n,o=1,u=this[r+--t];t>0&&(o*=256);)u+=this[r+--t]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*n)),u},f.prototype.readInt8=function(r,n){return n||p(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},f.prototype.readInt16LE=function(r,n){n||p(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e},f.prototype.readInt16BE=function(r,n){n||p(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e},f.prototype.readInt32LE=function(r,n){return n||p(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},f.prototype.readInt32BE=function(r,n){return n||p(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},f.prototype.readFloatLE=function(r,n){return n||p(r,4,this.length),U(this,r,!0,23,4)},f.prototype.readFloatBE=function(r,n){return n||p(r,4,this.length),U(this,r,!1,23,4)},f.prototype.readDoubleLE=function(r,n){return n||p(r,8,this.length),U(this,r,!0,52,8)},f.prototype.readDoubleBE=function(r,n){return n||p(r,8,this.length),U(this,r,!1,52,8)};function E(i,r,n,e,t,o){if(!A(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||ri.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(r,n,e,t){if(r=+r,n=n|0,e=e|0,!t){var o=Math.pow(2,8*e)-1;E(this,r,n,e,o,0)}var u=1,h=0;for(this[n]=r&255;++h=0&&(h*=256);)this[n+u]=r/h&255;return n+e},f.prototype.writeUInt8=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,1,255,0),f.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[n]=r&255,n+1};function _(i,r,n,e){r<0&&(r=65535+r+1);for(var t=0,o=Math.min(i.length-n,2);t>>(e?t:1-t)*8}f.prototype.writeUInt16LE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):_(this,r,n,!0),n+2},f.prototype.writeUInt16BE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):_(this,r,n,!1),n+2};function d(i,r,n,e){r<0&&(r=4294967295+r+1);for(var t=0,o=Math.min(i.length-n,4);t>>(e?t:3-t)*8&255}f.prototype.writeUInt32LE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255):d(this,r,n,!0),n+4},f.prototype.writeUInt32BE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):d(this,r,n,!1),n+4},f.prototype.writeIntLE=function(r,n,e,t){if(r=+r,n=n|0,!t){var o=Math.pow(2,8*e-1);E(this,r,n,e,o-1,-o)}var u=0,h=1,s=0;for(this[n]=r&255;++u>0)-s&255;return n+e},f.prototype.writeIntBE=function(r,n,e,t){if(r=+r,n=n|0,!t){var o=Math.pow(2,8*e-1);E(this,r,n,e,o-1,-o)}var u=e-1,h=1,s=0;for(this[n+u]=r&255;--u>=0&&(h*=256);)r<0&&s===0&&this[n+u+1]!==0&&(s=1),this[n+u]=(r/h>>0)-s&255;return n+e},f.prototype.writeInt8=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,1,127,-128),f.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[n]=r&255,n+1},f.prototype.writeInt16LE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):_(this,r,n,!0),n+2},f.prototype.writeInt16BE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):_(this,r,n,!1),n+2},f.prototype.writeInt32LE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24):d(this,r,n,!0),n+4},f.prototype.writeInt32BE=function(r,n,e){return r=+r,n=n|0,e||E(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):d(this,r,n,!1),n+4};function fr(i,r,n,e,t,o){if(n+e>i.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function hr(i,r,n,e,t){return t||fr(i,r,n,4),K(i,r,n,e,23,4),n+4}f.prototype.writeFloatLE=function(r,n,e){return hr(this,r,n,!0,e)},f.prototype.writeFloatBE=function(r,n,e){return hr(this,r,n,!1,e)};function sr(i,r,n,e,t){return t||fr(i,r,n,8),K(i,r,n,e,52,8),n+8}f.prototype.writeDoubleLE=function(r,n,e){return sr(this,r,n,!0,e)},f.prototype.writeDoubleBE=function(r,n,e){return sr(this,r,n,!1,e)},f.prototype.copy=function(r,n,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),n>=r.length&&(n=r.length),n||(n=0),t>0&&t=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-n=0;--u)r[u+n]=this[u+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(u=0;u>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var u;if(typeof r=="number")for(u=n;u55295&&n<57344){if(!t){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===e){(r-=3)>-1&&o.push(239,191,189);continue}t=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),t=n;continue}n=(t-55296<<10|n-56320)+65536}else t&&((r-=3)>-1&&o.push(239,191,189));if(t=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function en(i){for(var r=[],n=0;n>8,t=n%256,o.push(t),o.push(e);return o}function cr(i){return Sr(br(i))}function D(i,r,n,e){for(var t=0;t=r.length||t>=i.length);++t)r[t+n]=i[t];return t}function on(i){return i!==i}function un(i){return i!=null&&(!!i._isBuffer||ar(i)||fn(i))}function ar(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function fn(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&ar(i.slice(0,0))}const hn=/^(data:|([A-Za-z]+:)?\/\/)/,sn=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,cn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,lr="file://";function an(i,r){return n=>({options:n||{},sanitize:pn,load:ln,fileAccess:!!r,file:xn(r),http:En(i)})}async function ln(i,r){const n=await this.sanitize(i,r),e=n.href;return n.localFile?this.file(e):this.http(e,r)}async function pn(i,r){r=Y({},this.options,r);const n=this.fileAccess,e={href:null};let t,o,u;const h=sn.test(i.replace(cn,""));(i==null||typeof i!="string"||!h)&&T("Sanitize failure, invalid URI: "+G(i));const s=hn.test(i);return(u=r.baseURL)&&!s&&(!i.startsWith("/")&&!u.endsWith("/")&&(i="/"+i),i=u+i),o=(t=i.startsWith(lr))||r.mode==="file"||r.mode!=="http"&&!s&&n,t?i=i.slice(lr.length):i.startsWith("//")&&(r.defaultProtocol==="file"?(i=i.slice(2),o=!0):i=(r.defaultProtocol||"http")+":"+i),Object.defineProperty(e,"localFile",{value:!!o}),e.href=i,r.target&&(e.target=r.target+""),r.rel&&(e.rel=r.rel+""),r.context==="image"&&r.crossOrigin&&(e.crossOrigin=r.crossOrigin+""),e}function xn(i){return i?r=>new Promise((n,e)=>{i.readFile(r,(t,o)=>{t?e(t):n(o)})}):wn}async function wn(){T("No file system access.")}function En(i){return i?async function(r,n){const e=Y({},this.options.http,n),t=n&&n.response,o=await i(r,e);return o.ok?V(o[t])?o[t]():o.text():T(o.status+""+o.statusText)}:yn}async function yn(){T("No HTTP fetch method available.")}const Fn=i=>i!=null&&i===i,mn=i=>i==="true"||i==="false"||i===!0||i===!1,gn=i=>!Number.isNaN(Date.parse(i)),pr=i=>!Number.isNaN(+i)&&!(i instanceof Date),An=i=>pr(i)&&Number.isInteger(+i),O={boolean:mr,integer:J,number:J,date:gr,string:Ar,unknown:$},S=[mn,An,pr,gn],Rn=["boolean","integer","number","date"];function xr(i,r){if(!i||!i.length)return"unknown";const n=i.length,e=S.length,t=S.map((o,u)=>u+1);for(let o=0,u=0,h,s;oo===0?u:o,0)-1]}function wr(i,r){return r.reduce((n,e)=>(n[e]=xr(i,e),n),{})}function Er(i){const r=function(n,e){const t={delimiter:i};return W(n,e?Y(e,t):t)};return r.responseType="text",r}function W(i,r){return r.header&&(i=r.header.map(G).join(r.delimiter)+` `+i),Ur(r.delimiter).parse(i+"")}W.responseType="text";function Tn(i){return typeof f=="function"&&V(f.isBuffer)?f.isBuffer(i):!1}function j(i,r){const n=r&&r.property?Rr(r.property):$;return Tr(i)&&!Tn(i)?In(n(i),r):n(JSON.parse(i))}j.responseType="json";function In(i,r){return!Ir(i)&&Br(i)&&(i=[...i]),r&&r.copy?JSON.parse(JSON.stringify(i)):i}const Bn={interior:(i,r)=>i!==r,exterior:(i,r)=>i===r};function yr(i,r){let n,e,t,o;return i=j(i,r),r&&r.feature?(n=_r,t=r.feature):r&&r.mesh?(n=dr,t=r.mesh,o=Bn[r.filter]):T("Missing TopoJSON feature or mesh parameter."),e=(e=i.objects[t])?n(i,e,o):T("Invalid TopoJSON object: "+t),e&&e.features||[e]}yr.responseType="json";const P={dsv:W,csv:Er(","),tsv:Er(" "),json:j,topojson:yr};function z(i,r){return arguments.length>1?(P[i]=r,this):q(P,i)?P[i]:null}function Un(i){const r=z(i);return r&&r.responseType||"text"}function _n(i,r,n,e){r=r||{};const t=z(r.type||"json");return t||T("Unknown data format type: "+r.type),i=t(i,r),r.parse&&dn(i,r.parse,n,e),q(i,"columns")&&delete i.columns,i}function dn(i,r,n,e){if(!i.length)return;const t=vr();n=n||t.timeParse,e=e||t.utcParse;let o=i.columns||Object.keys(i[0]),u,h,s,a,l,c;r==="auto"&&(r=wr(i,o)),o=Object.keys(r);const y=o.map(x=>{const w=r[x];let B,m;if(w&&(w.startsWith("date:")||w.startsWith("utc:"))){B=w.split(/:(.+)?/,2),m=B[1],(m[0]==="'"&&m[m.length-1]==="'"||m[0]==='"'&&m[m.length-1]==='"')&&(m=m.slice(1,-1));const Fr=B[0]==="utc"?e:n;return Fr(m)}if(!O[w])throw Error("Illegal format pattern: "+x+":"+w);return O[w]});for(s=0,l=i.length,c=o.length;s