E(d,y,$))}catch(N){a.error(N)}};return C([Number(u)+48],1)}catch(o){a.error(o)}}parseSummaryBlock(n,t,i){const a=[];let r=t;const o=new DataView(n.buffer,n.byteOffset,n.length);for(;rNt(f.start,f.end,a.start,a.end)):r}parseBigWigBlock(n,t,i){const a=n.subarray(t),r=new DataView(a.buffer,a.byteOffset,a.length);let o=0;o+=4;const f=r.getInt32(o,!0);o+=8;const u=r.getUint32(o,!0);o+=4;const s=r.getUint32(o,!0);o+=4;const l=r.getUint8(o);o+=2;const p=r.getUint16(o,!0);o+=2;const c=new Array(p);switch(l){case 1:{for(let h=0;hNt(h.start,h.end,i.start,i.end)):c}async readFeatures(n,t,i={}){try{const{blockType:a,isCompressed:r}=this,{signal:o,request:f}=i,u=Fo(t);et(o),await Promise.all(u.map(async s=>{et(o);const{length:l,offset:p}=s,c=await this.featureCache.get(`${l}_${p}`,s,o);for(const h of s.blocks){et(o);let _=Number(h.offset)-Number(s.offset),g=c;switch(r&&(g=Vo(c.subarray(_)),_=0),et(o),a){case"summary":{n.next(this.parseSummaryBlock(g,_,f));break}case"bigwig":{n.next(this.parseBigWigBlock(g,_,f));break}case"bigbed":{n.next(this.parseBigBedBlock(g,_,Number(h.offset)*256,f));break}default:console.warn(`Don't know what to do with ${a}`)}}})),n.complete()}catch(a){n.error(a)}}}var Ft=function(e,n){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Ft(e,n)};function Wt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Ft(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function jo(e,n,t,i){function a(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function f(l){try{s(i.next(l))}catch(p){o(p)}}function u(l){try{s(i.throw(l))}catch(p){o(p)}}function s(l){l.done?r(l.value):a(l.value).then(f,u)}s((i=i.apply(e,n||[])).next())})}function Ai(e,n){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(s){return function(l){return u([s,l])}}function u(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(t=0)),t;)try{if(i=1,a&&(r=s[0]&2?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,a=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),a,r=[],o;try{for(;(n===void 0||n-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(f){o={error:f}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return r}function st(e,n,t){if(t||arguments.length===2)for(var i=0,a=n.length,r;i1||f(c,h)})})}function f(c,h){try{u(i[c](h))}catch(_){p(r[0][3],_)}}function u(c){c.value instanceof be?Promise.resolve(c.value.v).then(s,l):p(r[0][2],c)}function s(c){f("next",c)}function l(c){f("throw",c)}function p(c,h){c(h),r.shift(),r.length&&f(r[0][0],r[0][1])}}function Yo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Le=="function"?Le(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(o){return new Promise(function(f,u){o=e[r](o),a(f,u,o.done,o.value)})}}function a(r,o,f,u){Promise.resolve(u).then(function(s){r({value:s,done:f})},o)}}function O(e){return typeof e=="function"}function Oi(e){var n=function(i){Error.call(i),i.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var xt=Oi(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
+`+t.map(function(i,a){return a+1+") "+i.toString()}).join(`
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Pn(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Xt=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,i,a,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var f=Le(o),u=f.next();!u.done;u=f.next()){var s=u.value;s.remove(this)}}catch(g){n={error:g}}finally{try{u&&!u.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}else o.remove(this);var l=this.initialTeardown;if(O(l))try{l()}catch(g){r=g instanceof xt?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var c=Le(p),h=c.next();!h.done;h=c.next()){var _=h.value;try{Zn(_)}catch(g){r=r??[],g instanceof xt?r=st(st([],ot(r)),ot(g.errors)):r.push(g)}}}catch(g){i={error:g}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}}if(r)throw new xt(r)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)Zn(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&Pn(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&Pn(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}();Xt.EMPTY;function zi(e){return e instanceof Xt||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Zn(e){O(e)?e():e.unsubscribe()}var Ri={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Pt={setTimeout:function(e,n){for(var t=[],i=2;i=2,!1,!0))}var Ns=function(e,n){return e.push(n),e};function xs(){return $e(function(e,n){er(Ns,[])(e).subscribe(n)})}const jn=-2003829722,Tt=-2021002517;function Is(e){return new TextDecoder().decode(e)}function Gn(e){const n=e?"big":"little",t=new S().endianess(n).int32("magic").uint16("version").uint16("numZoomLevels").uint64("chromTreeOffset").uint64("unzoomedDataOffset").uint64("unzoomedIndexOffset").uint16("fieldCount").uint16("definedFieldCount").uint64("asOffset").uint64("totalSummaryOffset").uint32("uncompressBufSize").uint64("extHeaderOffset").array("zoomLevels",{length:"numZoomLevels",type:new S().endianess(n).uint32("reductionLevel").uint32("reserved").uint64("dataOffset").uint64("indexOffset")}),i=new S().endianess(n).uint64("basesCovered").doublele("scoreMin").doublele("scoreMax").doublele("scoreSum").doublele("scoreSumSquares"),a=new S().endianess(n).uint32("magic").uint32("blockSize").uint32("keySize").uint32("valSize").uint64("itemCount"),r=new S().endianess(n).uint8("isLeafNode").skip(1).uint16("cnt").saveOffset("offset");return{chromTreeParser:a,totalSummaryParser:i,headerParser:t,isLeafNode:r}}class tr{getHeader(n){return this.headerP||(this.headerP=this._getHeader(n).catch(t=>{throw this.headerP=void 0,t})),this.headerP}constructor(n){const{filehandle:t,renameRefSeqs:i=o=>o,path:a,url:r}=n;if(this.renameRefSeqs=i,t)this.bbi=t;else if(r)this.bbi=new ir(r);else if(a)this.bbi=new nr(a);else throw new Error("no file given")}async _getHeader(n){const t=await this._getMainHeader(n),i=await this._readChromTree(t,n);return{...t,...i}}async _getMainHeader(n,t=2e3){const{buffer:i}=await this.bbi.read(J.Buffer.alloc(t),0,t,0,n),a=this._isBigEndian(i),r=Gn(a),o=r.headerParser.parse(i),{magic:f,asOffset:u,totalSummaryOffset:s}=o;if(o.fileType=f===Tt?"bigbed":"bigwig",u>t||s>t)return this._getMainHeader(n,t*2);if(u){const l=Number(o.asOffset);o.autoSql=Is(i.subarray(l,i.indexOf(0,l)))}if(o.totalSummaryOffset>t-8*5)return this._getMainHeader(n,t*2);if(o.totalSummaryOffset){const l=i.subarray(Number(o.totalSummaryOffset)),p=r.totalSummaryParser.parse(l);o.totalSummary={...p,basesCovered:Number(p.basesCovered)}}return{...o,isBigEndian:a}}_isBigEndian(n){let t=n.readInt32LE(0);if(t===jn||t===Tt)return!1;if(t=n.readInt32BE(0),t===jn||t===Tt)return!0;throw new Error("not a BigWig/BigBed file")}async _readChromTree(n,t){const i=n.isBigEndian,a=i?"big":"little",r=[],o={};let f=Number(n.unzoomedDataOffset);const u=Number(n.chromTreeOffset);for(;f%4!==0;)f+=1;const s=f-u,{buffer:l}=await this.bbi.read(J.Buffer.alloc(s),0,s,Number(u),t),p=Gn(i),{keySize:c}=p.chromTreeParser.parse(l),h=new S().endianess(a).string("key",{stripNull:!0,length:c}).uint32("refId").uint32("refSize").saveOffset("offset"),_=new S().endianess(a).skip(c).uint64("childOffset").saveOffset("offset"),g=32,k=async m=>{let E=m;if(E>=l.length)throw new Error("reading beyond end of buffer");const C=p.isLeafNode.parse(l.subarray(E)),{isLeafNode:d,cnt:$}=C;if(E+=C.offset,d)for(let N=0;N<$;N+=1){const b=h.parse(l.subarray(E));E+=b.offset;const{key:y,refId:w,refSize:v}=b,x={name:y,id:w,length:v};o[this.renameRefSeqs(y)]=w,r[w]=x}else{const N=[];for(let b=0;b<$;b+=1){const y=_.parse(l.subarray(E)),{childOffset:w}=y;E+=y.offset,N.push(k(Number(w)-Number(u)))}await Promise.all(N)}};return await k(g),{refsByName:o,refsByNumber:r}}async getUnzoomedView(n){const{unzoomedIndexOffset:t,refsByName:i,uncompressBufSize:a,isBigEndian:r,fileType:o}=await this.getHeader(n);return new Ti(this.bbi,i,t,r,a>0,o)}async getFeatureStream(n,t,i,a){await this.getHeader(a);const r=this.renameRefSeqs(n);let o;const{basesPerSpan:f,scale:u}=a||{};return f?o=await this.getView(1/f,a):u?o=await this.getView(u,a):o=await this.getView(1,a),new P(s=>{o.readWigData(r,t,i,s,a).catch(l=>s.error(l))})}async getFeatures(n,t,i,a){const r=await this.getFeatureStream(n,t,i,a);return(await qi(r.pipe(xs()))).flat()}}class Ls extends tr{async getView(n,t){const{zoomLevels:i,refsByName:a,fileSize:r,isBigEndian:o,uncompressBufSize:f}=await this.getHeader(t),u=1/n;let s=i.length;r||(s-=1);for(let l=s;l>=0;l-=1){const p=i[l];if(p&&p.reductionLevel<=2*u){const c=Number(p.indexOffset);return new Ti(this.bbi,a,c,o,f>0,"summary")}}return this.getUnzoomedView(t)}}function Ts(e){return e.filter(n=>!!n)}class Fs extends tr{constructor(){super(...arguments),this.readIndicesCache=new Yn({cache:new Kn({maxSize:1}),fill:(n,t)=>this._readIndices({...n,signal:t})})}readIndices(n={}){const{signal:t,...i}=n;return this.readIndicesCache.get(JSON.stringify(i),n,t)}async getView(n,t){return this.getUnzoomedView(t)}async _readIndices(n){const{extHeaderOffset:t,isBigEndian:i}=await this.getHeader(n),{buffer:a}=await this.bbi.read(J.Buffer.alloc(64),0,64,Number(t)),r=i?"big":"little",o=new S().endianess(r).uint16("size").uint16("count").uint64("offset").parse(a),{count:f,offset:u}=o;if(f===0)return[];const s=20,l=s*f,{buffer:p}=await this.bbi.read(J.Buffer.alloc(l),0,l,Number(u)),c=new S().endianess(r).int16("type").int16("fieldcount").uint64("offset").skip(4).int16("field"),h=[];for(let _=0;_{const{offset:f,field:u}=o,{buffer:s}=await this.bbi.read(J.Buffer.alloc(32),0,32,Number(f),t),l=i?"big":"little",p=new S().endianess(l).int32("magic").int32("blockSize").int32("keySize").int32("valSize").uint64("itemCount"),{blockSize:c,keySize:h,valSize:_}=p.parse(s),g=new S().endianess(l).int8("nodeType").skip(1).int16("cnt").choice({tag:"nodeType",choices:{0:new S().array("leafkeys",{length:"cnt",type:new S().endianess(l).string("key",{length:h,stripNull:!0}).uint64("offset")}),1:new S().array("keys",{length:"cnt",type:new S().endianess(l).string("key",{length:h,stripNull:!0}).uint64("offset").uint32("length").uint32("reserved")})}}),k=async E=>{const C=Number(E),d=4+c*(h+_),{buffer:$}=await this.bbi.read(J.Buffer.alloc(d),0,d,C,t),N=g.parse($);if(N.leafkeys){let b;for(const{key:y,offset:w}of N.leafkeys){if(n.localeCompare(y)<0&&b)return k(b);b=w}return k(b)}for(const b of N.keys)if(b.key===n)return{...b,field:u}},m=32;return k(Number(f)+m)});return Ts(await Promise.all(r))}async searchExtraIndex(n,t={}){const i=await this.searchExtraIndexBlocks(n,t);if(i.length===0)return[];const a=await this.getUnzoomedView(t),r=i.map(f=>new P(u=>{a.readFeatures(u,[f],t).catch(s=>u.error(s))}).pipe(er((u,s)=>u.concat(s)),Ji(u=>{for(const s of u)s.field=f.field;return u})));return(await qi(Cs(...r))).filter(f=>{var u;return((u=f.rest)===null||u===void 0?void 0:u.split(" ")[(f.field||0)-3])===n})}}export{Fs as BigBed,Ls as BigWig};
diff --git a/segmentmodel/assets/index-785cda83.js b/segmentmodel/assets/index-785cda83.js
new file mode 100644
index 0000000..0dda79d
--- /dev/null
+++ b/segmentmodel/assets/index-785cda83.js
@@ -0,0 +1,522 @@
+var Hg=Object.defineProperty;var Wg=(t,e,n)=>e in t?Hg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ve=(t,e,n)=>(Wg(t,typeof e!="symbol"?e+"":e,n),n),rc=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var b=(t,e,n)=>(rc(t,e,"read from private field"),n?n.call(t):e.get(t)),F=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},k=(t,e,n,r)=>(rc(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var cf=(t,e,n,r)=>({set _(i){k(t,e,i,n)},get _(){return b(t,e,r)}}),D=(t,e,n)=>(rc(t,e,"access private method"),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */const hi=globalThis,_o=hi.trustedTypes,uf=_o?_o.createPolicy("lit-html",{createHTML:t=>t}):void 0,gd="$lit$",Nt=`lit$${Math.random().toFixed(9).slice(2)}$`,yd="?"+Nt,qg=`<${yd}>`,Wn=document,wi=()=>Wn.createComment(""),Ai=t=>t===null||typeof t!="object"&&typeof t!="function",xd=Array.isArray,jg=t=>xd(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ic=`[
+\f\r]`,ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lf=/-->/g,ff=/>/g,yn=RegExp(`>|${ic}(?:([^\\s"'>=/]+)(${ic}*=${ic}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`,"g"),hf=/'/g,df=/"/g,bd=/^(?:script|style|textarea|title)$/i,Yg=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),z=Yg(1),Wt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),pf=new WeakMap,Sn=Wn.createTreeWalker(Wn,129);function wd(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return uf!==void 0?uf.createHTML(e):e}const Xg=(t,e)=>{const n=t.length-1,r=[];let i,s=e===2?"":"")),r]};class vi{constructor({strings:e,_$litType$:n},r){let i;this.parts=[];let s=0,o=0;const a=e.length-1,c=this.parts,[u,f]=Xg(e,n);if(this.el=vi.createElement(u,r),Sn.currentNode=this.el.content,n===2){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=Sn.nextNode())!==null&&c.length0){i.textContent=_o?_o.emptyScript:"";for(let p=0;p2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Q}_$AI(e,n=this,r,i){const s=this.strings;let o=!1;if(s===void 0)e=kr(this,e,n,0),o=!Ai(e)||e!==this._$AH&&e!==Wt,o&&(this._$AH=e);else{const a=e;let c,u;for(e=s[0],c=0;c{const r=(n==null?void 0:n.renderBefore)??e;let i=r._$litPart$;if(i===void 0){const s=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Ts(e.insertBefore(wi(),s),s,void 0,n??{})}return i._$AI(t),i};/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */const Ad={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},vd=t=>(...e)=>({_$litDirective$:t,values:e});let Ed=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,r){this._$Ct=e,this._$AM=n,this._$Ci=r}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};/**
+ * @license
+ * Copyright 2018 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */const mf=vd(class extends Ed{constructor(t){var e;if(super(t),t.type!==Ad.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,i;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(e)}const n=t.element.classList;for(const s of this.st)s in e||(n.remove(s),this.st.delete(s));for(const s in e){const o=!!e[s];o===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(o?(n.add(s),this.st.add(s)):(n.remove(s),this.st.delete(s)))}return Wt}});var gf={},io={},oc=34,xn=10,so=13;function Cd(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function t1(t,e){var n=Cd(t);return function(r,i){return e(n(r),i,t)}}function yf(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function _e(t,e){var n=t+"",r=n.length;return r9999?"+"+_e(t,6):_e(t,4)}function r1(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":n1(t.getUTCFullYear())+"-"+_e(t.getUTCMonth()+1,2)+"-"+_e(t.getUTCDate(),2)+(i?"T"+_e(e,2)+":"+_e(n,2)+":"+_e(r,2)+"."+_e(i,3)+"Z":r?"T"+_e(e,2)+":"+_e(n,2)+":"+_e(r,2)+"Z":n||e?"T"+_e(e,2)+":"+_e(n,2)+"Z":"")}function Sd(t,e){var n=new RegExp('["'+t+`
+\r]`),r=t.charCodeAt(0);function i(h,p){var d,m,g=s(h,function(y,x){if(d)return d(y,x-1);m=y,d=p?t1(y,p):Cd(y)});return g.columns=m||[],g}function s(h,p){var d=[],m=h.length,g=0,y=0,x,w=m<=0,v=!1,C=!0,S=e?e.comment:void 0;h.charCodeAt(m-1)===xn&&--m,h.charCodeAt(m-1)===so&&--m;function E(){if(w)return io;if(v)return v=!1,C=!0,gf;if(C&&S){for(;;){let q=0;for(;q=m)return io}C=!1;var P,O=g,R;if(h.charCodeAt(O)===oc){for(;g++=m?w=!0:(R=h.charCodeAt(g++))===xn?v=!0:R===so&&(v=!0,h.charCodeAt(g)===xn&&++g),h.slice(O+1,P-1).replace(/""/g,'"')}for(;gfunction(e){return e[t]},l1=t=>{const e=t.length;return function(n){for(let r=0;ro?u():o=a+1:c==="["?(a>o&&u(),i=o=a+1):c==="]"&&(i||te("Access path missing open bracket: "+t),i>0&&u(),i=0,o=a+1)}return i&&te("Access path missing closing bracket: "+t),r&&te("Access path missing closing quote: "+t),a>o&&(a++,u()),e}function ya(t,e,n){const r=f1(t);return t=r.length===1?r[0]:t,rn((n&&n.get||c1)(r),[t],e||t)}ya("id");const xa=rn(t=>t,[],"identity");rn(()=>0,[],"zero");rn(()=>1,[],"one");rn(()=>!0,[],"true");rn(()=>!1,[],"false");var he=Array.isArray;function be(t){return t===Object(t)}function nt(t){return t[t.length-1]}function Ei(t){return t==null||t===""?null:+t}const Fd=t=>e=>t*Math.exp(e),Td=t=>e=>Math.log(t*e),h1=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),d1=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,Io=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function Xu(t,e,n,r){const i=n(t[0]),s=n(nt(t)),o=(s-i)*e;return[r(i-o),r(s-o)]}function p1(t,e){return Xu(t,e,Ei,xa)}function m1(t,e){var n=Math.sign(t[0]);return Xu(t,e,Td(n),Fd(n))}function g1(t,e,n){return Xu(t,e,Io(n),Io(1/n))}function ba(t,e,n,r,i){const s=r(t[0]),o=r(nt(t)),a=e!=null?r(e):(s+o)/2;return[i(a+(s-a)*n),i(a+(o-a)*n)]}function Dd(t,e,n){return ba(t,e,n,Ei,xa)}function _d(t,e,n){const r=Math.sign(t[0]);return ba(t,e,n,Td(r),Fd(r))}function Nc(t,e,n,r){return ba(t,e,n,Io(r),Io(1/r))}function y1(t,e,n,r){return ba(t,e,n,h1(r),d1(r))}function $c(t){return t!=null?he(t)?t:[t]:[]}function x1(t,e,n){let r=t[0],i=t[1],s;return i=n-e?[e,n]:[r=Math.min(Math.max(r,e),n-s),r+s]}function je(t){return typeof t=="function"}const b1="descending";function Id(t,e,n){n=n||{},e=$c(e)||[];const r=[],i=[],s={},o=n.comparator||w1;return $c(t).forEach((a,c)=>{a!=null&&(r.push(e[c]===b1?-1:1),i.push(a=je(a)?a:ya(a,null,n)),(a1(a)||[]).forEach(u=>s[u]=1))}),i.length===0?null:rn(o(i,r),Object.keys(s))}const Rd=(t,e)=>(te||e==null)&&t!=null?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),w1=(t,e)=>t.length===1?A1(t[0],e[0]):v1(t,e,t.length),A1=(t,e)=>function(n,r){return Rd(t(n),t(r))*e},v1=(t,e,n)=>(e.push(0),function(r,i){let s,o=0,a=-1;for(;o===0&&++aCe(t)||S1(t)?t:Date.parse(t);function I1(t,e){return e=e||_1,t==null||t===""?null:e(t)}function R1(t){return t==null||t===""?null:t+""}function Mo(t){const e={},n=t.length;for(let r=0;rnew M1(typeof t=="string"?t:t+"",void 0,kd),B1=(t,e)=>{if(Ju)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),i=wo.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,t.appendChild(r)}},bf=Ju?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return k1(n)})(t):t;/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */const{is:P1,defineProperty:O1,getOwnPropertyDescriptor:L1,getOwnPropertyNames:N1,getOwnPropertySymbols:$1,getPrototypeOf:U1}=Object,Gt=globalThis,wf=Gt.trustedTypes,z1=wf?wf.emptyScript:"",ac=Gt.reactiveElementPolyfillSupport,di=(t,e)=>t,Uc={toAttribute(t,e){switch(e){case Boolean:t=t?z1:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},Bd=(t,e)=>!P1(t,e),Af={attribute:!0,type:String,converter:Uc,reflect:!1,hasChanged:Bd};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Gt.litPropertyMetadata??(Gt.litPropertyMetadata=new WeakMap);class cr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Af){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,n);i!==void 0&&O1(this.prototype,e,i)}}static getPropertyDescriptor(e,n,r){const{get:i,set:s}=L1(this.prototype,e)??{get(){return this[n]},set(o){this[n]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const a=i==null?void 0:i.call(this);s.call(this,o),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Af}static _$Ei(){if(this.hasOwnProperty(di("elementProperties")))return;const e=U1(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(di("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(di("properties"))){const n=this.properties,r=[...N1(n),...$1(n)];for(const i of r)this.createProperty(i,n[i])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)n.unshift(bf(i))}else e!==void 0&&n.push(bf(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return B1(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$EC(e,n){var s;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Uc).toAttribute(n,r.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,n){var s;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const o=r.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Uc;this._$Em=i,this[i]=a.fromAttribute(n,o.type),this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Bd)(this[e],n))return;this.P(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,r){this._$AL.has(e)||this._$AL.set(e,n),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,o]of i)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(n)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}}cr.elementStyles=[],cr.shadowRootOptions={mode:"open"},cr[di("elementProperties")]=new Map,cr[di("finalized")]=new Map,ac==null||ac({ReactiveElement:cr}),(Gt.reactiveElementVersions??(Gt.reactiveElementVersions=[])).push("2.0.4");/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */class Ao extends cr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const e=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qn(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Wt}}var md;Ao._$litElement$=!0,Ao.finalized=!0,(md=globalThis.litElementHydrateSupport)==null||md.call(globalThis,{LitElement:Ao});const cc=globalThis.litElementPolyfillSupport;cc==null||cc({LitElement:Ao});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");var vf={},uc={},lc=34,ti=10,fc=13;function Pd(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function V1(t,e){var n=Pd(t);return function(r,i){return e(n(r),i,t)}}function Ef(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function Ie(t,e){var n=t+"",r=n.length;return r9999?"+"+Ie(t,6):Ie(t,4)}function H1(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":G1(t.getUTCFullYear())+"-"+Ie(t.getUTCMonth()+1,2)+"-"+Ie(t.getUTCDate(),2)+(i?"T"+Ie(e,2)+":"+Ie(n,2)+":"+Ie(r,2)+"."+Ie(i,3)+"Z":r?"T"+Ie(e,2)+":"+Ie(n,2)+":"+Ie(r,2)+"Z":n||e?"T"+Ie(e,2)+":"+Ie(n,2)+"Z":"")}function W1(t){var e=new RegExp('["'+t+`
+\r]`),n=t.charCodeAt(0);function r(l,h){var p,d,m=i(l,function(g,y){if(p)return p(g,y-1);d=g,p=h?V1(g,h):Pd(g)});return m.columns=d||[],m}function i(l,h){var p=[],d=l.length,m=0,g=0,y,x=d<=0,w=!1;l.charCodeAt(d-1)===ti&&--d,l.charCodeAt(d-1)===fc&&--d;function v(){if(x)return uc;if(w)return w=!1,vf;var S,E=m,M;if(l.charCodeAt(E)===lc){for(;m++=d?x=!0:(M=l.charCodeAt(m++))===ti?w=!0:M===fc&&(w=!0,l.charCodeAt(m)===ti&&++m),l.slice(E+1,S-1).replace(/""/g,'"')}for(;m1)r=Q1(t,e,n);else for(i=0,r=new Array(s=t.arcs.length);ie?1:t>=e?0:NaN}function ey(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Br(t){let e,n,r;t.length!==2?(e=pi,n=(a,c)=>pi(t(a),c),r=(a,c)=>t(a)-c):(e=t===pi||t===ey?t:ty,n=t,r=t);function i(a,c,u=0,f=a.length){if(u>>1;n(a[l],c)<0?u=l+1:f=l}while(u>>1;n(a[l],c)<=0?u=l+1:f=l}while(uu&&r(a[l-1],c)>-r(a[l],c)?l-1:l}return{left:i,center:o,right:s}}function ty(){return 0}function Ld(t){return t===null?NaN:+t}const Nd=Br(pi),zc=Nd.right;Nd.left;Br(Ld).center;const Wr=zc;function ny(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=s&&(n=r=s):(n>s&&(n=s),r=r.length)return n(s);const a=new Mt,c=r[o++];let u=-1;for(const f of s){const l=c(f,++u,s),h=a.get(l);h?h.push(f):a.set(l,[f])}for(const[f,l]of a)a.set(f,i(l,o));return e(a)}(t,0)}const ay=Math.sqrt(50),cy=Math.sqrt(10),uy=Math.sqrt(2);function ko(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=ay?10:s>=cy?5:s>=uy?2:1;let a,c,u;return i<0?(u=Math.pow(10,-i)/o,a=Math.round(t*u),c=Math.round(e*u),a/ue&&--c,u=-u):(u=Math.pow(10,i)*o,a=Math.round(t/u),c=Math.round(e/u),a*ue&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const a=s-i+1,c=new Array(a);if(r)if(o<0)for(let u=0;u=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,s=Math.floor(i),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(i-s)}}function Ci(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(i);++r=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Po(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Pr(t){return t=Po(Math.abs(t)),t?t[1]:NaN}function fy(t,e){return function(n,r){for(var i=n.length,s=[],o=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),s.push(n.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function hy(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var dy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jt(t){if(!(e=dy.exec(t)))throw new Error("invalid format: "+t);var e;return new Zu({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}jt.prototype=Zu.prototype;function Zu(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Zu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function py(t){e:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var zd;function my(t,e){var n=Po(t,e);if(!n)return t+"";var r=n[0],i=n[1],s=i-(zd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Po(t,Math.max(0,e+s-1))[0]}function Ff(t,e){var n=Po(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Tf={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ly,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ff(t*100,e),r:Ff,s:my,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Df(t){return t}var _f=Array.prototype.map,If=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gy(t){var e=t.grouping===void 0||t.thousands===void 0?Df:fy(_f.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Df:hy(_f.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(l){l=jt(l);var h=l.fill,p=l.align,d=l.sign,m=l.symbol,g=l.zero,y=l.width,x=l.comma,w=l.precision,v=l.trim,C=l.type;C==="n"?(x=!0,C="g"):Tf[C]||(w===void 0&&(w=12),v=!0,C="g"),(g||h==="0"&&p==="=")&&(g=!0,h="0",p="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",E=m==="$"?r:/[%p]/.test(C)?o:"",M=Tf[C],P=/[defgprs%]/.test(C);w=w===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(R){var q=S,J=E,we,We,Ae;if(C==="c")J=M(R)+J,R="";else{R=+R;var Oe=R<0||1/R<0;if(R=isNaN(R)?c:M(Math.abs(R),w),v&&(R=py(R)),Oe&&+R==0&&d!=="+"&&(Oe=!1),q=(Oe?d==="("?d:a:d==="-"||d==="("?"":d)+q,J=(C==="s"?If[8+zd/3]:"")+J+(Oe&&d==="("?")":""),P){for(we=-1,We=R.length;++weAe||Ae>57){J=(Ae===46?i+R.slice(we+1):R.slice(we))+J,R=R.slice(0,we);break}}}x&&!g&&(R=e(R,1/0));var Te=q.length+R.length+J.length,de=Te>1)+q+R+J+de.slice(Te);break;default:R=de+q+R+J;break}return s(R)}return O.toString=function(){return l+""},O}function f(l,h){var p=u((l=jt(l),l.type="f",l)),d=Math.max(-8,Math.min(8,Math.floor(Pr(h)/3)))*3,m=Math.pow(10,-d),g=If[8+d/3];return function(y){return p(m*y)+g}}return{format:u,formatPrefix:f}}var ao,fe,Qu;yy({thousands:",",grouping:[3],currency:["$",""]});function yy(t){return ao=gy(t),fe=ao.format,Qu=ao.formatPrefix,ao}function Vd(t){return Math.max(0,-Pr(Math.abs(t)))}function Gd(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pr(e)/3)))*3-Pr(Math.abs(t)))}function Hd(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Pr(e)-Pr(t))+1}const hc=new Date,dc=new Date;function ne(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const c=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return c;let u;do c.push(u=new Date(+s)),e(s,a),t(s);while(une(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(hc.setTime(+s),dc.setTime(+o),t(hc),t(dc),Math.floor(n(hc,dc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Or=ne(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Or.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ne(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Or);Or.range;const Tt=1e3,qe=Tt*60,Dt=qe*60,kt=Dt*24,el=kt*7,Rf=kt*30,pc=kt*365,_t=ne(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Tt)},(t,e)=>(e-t)/Tt,t=>t.getUTCSeconds());_t.range;const Aa=ne(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tt)},(t,e)=>{t.setTime(+t+e*qe)},(t,e)=>(e-t)/qe,t=>t.getMinutes());Aa.range;const va=ne(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*qe)},(t,e)=>(e-t)/qe,t=>t.getUTCMinutes());va.range;const Ea=ne(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tt-t.getMinutes()*qe)},(t,e)=>{t.setTime(+t+e*Dt)},(t,e)=>(e-t)/Dt,t=>t.getHours());Ea.range;const Ca=ne(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Dt)},(t,e)=>(e-t)/Dt,t=>t.getUTCHours());Ca.range;const Ht=ne(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qe)/kt,t=>t.getDate()-1);Ht.range;const Un=ne(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/kt,t=>t.getUTCDate()-1);Un.range;const Wd=ne(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/kt,t=>Math.floor(t/kt));Wd.range;function Zn(t){return ne(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*qe)/el)}const _s=Zn(0),Oo=Zn(1),xy=Zn(2),by=Zn(3),Lr=Zn(4),wy=Zn(5),Ay=Zn(6);_s.range;Oo.range;xy.range;by.range;Lr.range;wy.range;Ay.range;function Qn(t){return ne(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/el)}const Is=Qn(0),Lo=Qn(1),vy=Qn(2),Ey=Qn(3),Nr=Qn(4),Cy=Qn(5),Sy=Qn(6);Is.range;Lo.range;vy.range;Ey.range;Nr.range;Cy.range;Sy.range;const Si=ne(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Si.range;const Fi=ne(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Fi.range;const dt=ne(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());dt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ne(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});dt.range;const pt=ne(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ne(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function qd(t,e,n,r,i,s){const o=[[_t,1,Tt],[_t,5,5*Tt],[_t,15,15*Tt],[_t,30,30*Tt],[s,1,qe],[s,5,5*qe],[s,15,15*qe],[s,30,30*qe],[i,1,Dt],[i,3,3*Dt],[i,6,6*Dt],[i,12,12*Dt],[r,1,kt],[r,2,2*kt],[n,1,el],[e,1,Rf],[e,3,3*Rf],[t,1,pc]];function a(u,f,l){const h=fg).right(o,h);if(p===o.length)return t.every(qt(u/pc,f/pc,l));if(p===0)return Or.every(Math.max(qt(u,f,l),1));const[d,m]=o[h/o[p-1][2](t[e]=1+n,t),{});const Ry={[Ti]:dt,[Di]:Si.every(3),[_i]:Si,[Ii]:_s,[Ri]:Ht,[Sa]:Ht,[tl]:Ht,[Mi]:Ea,[ki]:Aa,[Bi]:_t,[Fa]:Or},My={[Ti]:pt,[Di]:Fi.every(3),[_i]:Fi,[Ii]:Is,[Ri]:Un,[Sa]:Un,[tl]:Un,[Mi]:Ca,[ki]:va,[Bi]:_t,[Fa]:Or};function ky(t){return Ry[t]}function By(t){return My[t]}function mc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function gc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ni(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function jd(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,u=ri(i),f=ii(i),l=ri(s),h=ii(s),p=ri(o),d=ii(o),m=ri(a),g=ii(a),y=ri(c),x=ii(c),w={a:Oe,A:Te,b:de,B:Le,c:null,d:Lf,e:Lf,f:rx,g:dx,G:mx,H:ex,I:tx,j:nx,L:Yd,m:ix,M:sx,p:no,q:mn,Q:Uf,s:zf,S:ox,u:ax,U:cx,V:ux,w:lx,W:fx,x:null,X:null,y:hx,Y:px,Z:gx,"%":$f},v={a:Zr,A:ro,b:ce,B:st,c:null,d:Nf,e:Nf,f:wx,g:Ix,G:Mx,H:yx,I:xx,j:bx,L:Kd,m:Ax,M:vx,p:Ke,q:Qr,Q:Uf,s:zf,S:Ex,u:Cx,U:Sx,V:Fx,w:Tx,W:Dx,x:null,X:null,y:_x,Y:Rx,Z:kx,"%":$f},C={a:O,A:R,b:q,B:J,c:we,d:Pf,e:Pf,f:Ky,g:Bf,G:kf,H:Of,I:Of,j:qy,L:Xy,m:Wy,M:jy,p:P,q:Hy,Q:Zy,s:Qy,S:Yy,u:$y,U:Uy,V:zy,w:Ny,W:Vy,x:We,X:Ae,y:Bf,Y:kf,Z:Gy,"%":Jy};w.x=S(n,w),w.X=S(r,w),w.c=S(e,w),v.x=S(n,v),v.X=S(r,v),v.c=S(e,v);function S(_,L){return function(N){var T=[],De=-1,j=0,Ne=_.length,$e,gn,af;for(N instanceof Date||(N=new Date(+N));++De53)return null;"w"in T||(T.w=1),"Z"in T?(j=gc(ni(T.y,0,1)),Ne=j.getUTCDay(),j=Ne>4||Ne===0?Lo.ceil(j):Lo(j),j=Un.offset(j,(T.V-1)*7),T.y=j.getUTCFullYear(),T.m=j.getUTCMonth(),T.d=j.getUTCDate()+(T.w+6)%7):(j=mc(ni(T.y,0,1)),Ne=j.getDay(),j=Ne>4||Ne===0?Oo.ceil(j):Oo(j),j=Ht.offset(j,(T.V-1)*7),T.y=j.getFullYear(),T.m=j.getMonth(),T.d=j.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),Ne="Z"in T?gc(ni(T.y,0,1)).getUTCDay():mc(ni(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(Ne+5)%7:T.w+T.U*7-(Ne+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,gc(T)):mc(T)}}function M(_,L,N,T){for(var De=0,j=L.length,Ne=N.length,$e,gn;De=Ne)return-1;if($e=L.charCodeAt(De++),$e===37){if($e=L.charAt(De++),gn=C[$e in Mf?L.charAt(De++):$e],!gn||(T=gn(_,N,T))<0)return-1}else if($e!=N.charCodeAt(T++))return-1}return T}function P(_,L,N){var T=u.exec(L.slice(N));return T?(_.p=f.get(T[0].toLowerCase()),N+T[0].length):-1}function O(_,L,N){var T=p.exec(L.slice(N));return T?(_.w=d.get(T[0].toLowerCase()),N+T[0].length):-1}function R(_,L,N){var T=l.exec(L.slice(N));return T?(_.w=h.get(T[0].toLowerCase()),N+T[0].length):-1}function q(_,L,N){var T=y.exec(L.slice(N));return T?(_.m=x.get(T[0].toLowerCase()),N+T[0].length):-1}function J(_,L,N){var T=m.exec(L.slice(N));return T?(_.m=g.get(T[0].toLowerCase()),N+T[0].length):-1}function we(_,L,N){return M(_,e,L,N)}function We(_,L,N){return M(_,n,L,N)}function Ae(_,L,N){return M(_,r,L,N)}function Oe(_){return o[_.getDay()]}function Te(_){return s[_.getDay()]}function de(_){return c[_.getMonth()]}function Le(_){return a[_.getMonth()]}function no(_){return i[+(_.getHours()>=12)]}function mn(_){return 1+~~(_.getMonth()/3)}function Zr(_){return o[_.getUTCDay()]}function ro(_){return s[_.getUTCDay()]}function ce(_){return c[_.getUTCMonth()]}function st(_){return a[_.getUTCMonth()]}function Ke(_){return i[+(_.getUTCHours()>=12)]}function Qr(_){return 1+~~(_.getUTCMonth()/3)}return{format:function(_){var L=S(_+="",w);return L.toString=function(){return _},L},parse:function(_){var L=E(_+="",!1);return L.toString=function(){return _},L},utcFormat:function(_){var L=S(_+="",v);return L.toString=function(){return _},L},utcParse:function(_){var L=E(_+="",!0);return L.toString=function(){return _},L}}}var Mf={"-":"",_:" ",0:"0"},ae=/^\s*\d+/,Py=/^%/,Oy=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function Ny(t,e,n){var r=ae.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function $y(t,e,n){var r=ae.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Uy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function zy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Vy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function kf(t,e,n){var r=ae.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Bf(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Gy(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Hy(t,e,n){var r=ae.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Wy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Pf(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qy(t,e,n){var r=ae.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Of(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function jy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yy(t,e,n){var r=ae.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Xy(t,e,n){var r=ae.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ky(t,e,n){var r=ae.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jy(t,e,n){var r=Py.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zy(t,e,n){var r=ae.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Qy(t,e,n){var r=ae.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Lf(t,e){return U(t.getDate(),e,2)}function ex(t,e){return U(t.getHours(),e,2)}function tx(t,e){return U(t.getHours()%12||12,e,2)}function nx(t,e){return U(1+Ht.count(dt(t),t),e,3)}function Yd(t,e){return U(t.getMilliseconds(),e,3)}function rx(t,e){return Yd(t,e)+"000"}function ix(t,e){return U(t.getMonth()+1,e,2)}function sx(t,e){return U(t.getMinutes(),e,2)}function ox(t,e){return U(t.getSeconds(),e,2)}function ax(t){var e=t.getDay();return e===0?7:e}function cx(t,e){return U(_s.count(dt(t)-1,t),e,2)}function Xd(t){var e=t.getDay();return e>=4||e===0?Lr(t):Lr.ceil(t)}function ux(t,e){return t=Xd(t),U(Lr.count(dt(t),t)+(dt(t).getDay()===4),e,2)}function lx(t){return t.getDay()}function fx(t,e){return U(Oo.count(dt(t)-1,t),e,2)}function hx(t,e){return U(t.getFullYear()%100,e,2)}function dx(t,e){return t=Xd(t),U(t.getFullYear()%100,e,2)}function px(t,e){return U(t.getFullYear()%1e4,e,4)}function mx(t,e){var n=t.getDay();return t=n>=4||n===0?Lr(t):Lr.ceil(t),U(t.getFullYear()%1e4,e,4)}function gx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Nf(t,e){return U(t.getUTCDate(),e,2)}function yx(t,e){return U(t.getUTCHours(),e,2)}function xx(t,e){return U(t.getUTCHours()%12||12,e,2)}function bx(t,e){return U(1+Un.count(pt(t),t),e,3)}function Kd(t,e){return U(t.getUTCMilliseconds(),e,3)}function wx(t,e){return Kd(t,e)+"000"}function Ax(t,e){return U(t.getUTCMonth()+1,e,2)}function vx(t,e){return U(t.getUTCMinutes(),e,2)}function Ex(t,e){return U(t.getUTCSeconds(),e,2)}function Cx(t){var e=t.getUTCDay();return e===0?7:e}function Sx(t,e){return U(Is.count(pt(t)-1,t),e,2)}function Jd(t){var e=t.getUTCDay();return e>=4||e===0?Nr(t):Nr.ceil(t)}function Fx(t,e){return t=Jd(t),U(Nr.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function Tx(t){return t.getUTCDay()}function Dx(t,e){return U(Lo.count(pt(t)-1,t),e,2)}function _x(t,e){return U(t.getUTCFullYear()%100,e,2)}function Ix(t,e){return t=Jd(t),U(t.getUTCFullYear()%100,e,2)}function Rx(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function Mx(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Nr(t):Nr.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function kx(){return"+0000"}function $f(){return"%"}function Uf(t){return+t}function zf(t){return Math.floor(+t/1e3)}var nr,nl,Zd,rl,Qd;Bx({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Bx(t){return nr=jd(t),nl=nr.format,Zd=nr.parse,rl=nr.utcFormat,Qd=nr.utcParse,nr}function ai(t){const e={};return n=>e[n]||(e[n]=t(n))}function Px(t,e){return n=>{const r=t(n),i=r.indexOf(e);if(i<0)return r;let s=Ox(r,i);const o=si;)if(r[s]!=="0"){++s;break}return r.slice(0,s)+o}}function Ox(t,e){let n=t.lastIndexOf("e"),r;if(n>0)return n;for(n=t.length;--n>e;)if(r=t.charCodeAt(n),r>=48&&r<=57)return n+1}function Lx(t){const e=ai(t.format),n=t.formatPrefix;return{format:e,formatPrefix:n,formatFloat(r){const i=jt(r||",");if(i.precision==null){switch(i.precision=12,i.type){case"%":i.precision-=2;break;case"e":i.precision-=1;break}return Px(e(i),e(".1f")(1)[1])}else return e(i)},formatSpan(r,i,s,o){o=jt(o??",f");const a=qt(r,i,s),c=Math.max(Math.abs(r),Math.abs(i));let u;if(o.precision==null)switch(o.type){case"s":return isNaN(u=Gd(a,c))||(o.precision=u),n(o,c);case"":case"e":case"g":case"p":case"r":{isNaN(u=Hd(a,c))||(o.precision=u-(o.type==="e"));break}case"f":case"%":{isNaN(u=Vd(a))||(o.precision=u-(o.type==="%")*2);break}}return e(o)}}}Nx();function Nx(){return Lx({format:fe,formatPrefix:Qu})}function Vf(t,e,n){n=n||{},be(n)||te(`Invalid time multi-format specifier: ${n}`);const r=e(Bi),i=e(ki),s=e(Mi),o=e(Ri),a=e(Ii),c=e(_i),u=e(Di),f=e(Ti),l=t(n[Fa]||".%L"),h=t(n[Bi]||":%S"),p=t(n[ki]||"%I:%M"),d=t(n[Mi]||"%I %p"),m=t(n[Ri]||n[Sa]||"%a %d"),g=t(n[Ii]||"%b %d"),y=t(n[_i]||"%B"),x=t(n[Di]||"%B"),w=t(n[Ti]||"%Y");return v=>(r(v)H(r)?e(r):Vf(e,ky,r),utcFormat:r=>H(r)?n(r):Vf(n,By,r),timeParse:ai(t.parse),utcParse:ai(t.utcParse)}}let Hc;$x();function $x(){return Hc=e0({format:nl,parse:Zd,utcFormat:rl,utcParse:Qd})}function Ux(t){return e0(jd(t))}function zx(t){return arguments.length?Hc=Ux(t):Hc}const Vx=t=>t!=null&&t===t,Gx=t=>t==="true"||t==="false"||t===!0||t===!1,Hx=t=>!Number.isNaN(Date.parse(t)),t0=t=>!Number.isNaN(+t)&&!(t instanceof Date),Wx=t=>t0(t)&&Number.isInteger(+t),Gf={boolean:D1,integer:Ei,number:Ei,date:I1,string:R1,unknown:xa},co=[Gx,Wx,t0,Hx],qx=["boolean","integer","number","date"];function jx(t,e){if(!t||!t.length)return"unknown";const n=t.length,r=co.length,i=co.map((s,o)=>o+1);for(let s=0,o=0,a,c;ss===0?o:s,0)-1]}function Yx(t,e){return e.reduce((n,r)=>(n[r]=jx(t,r),n),{})}function Hf(t){const e=function(n,r){const i={delimiter:t};return il(n,r?E1(r,i):i)};return e.responseType="text",e}function il(t,e){return e.header&&(t=e.header.map(Ku).join(e.delimiter)+`
+`+t),W1(e.delimiter).parse(t+"")}il.responseType="text";function Xx(t){return typeof Buffer=="function"&&je(Buffer.isBuffer)?Buffer.isBuffer(t):!1}function sl(t,e){const n=e&&e.property?ya(e.property):xa;return be(t)&&!Xx(t)?Kx(n(t),e):n(JSON.parse(t))}sl.responseType="json";function Kx(t,e){return!he(t)&&F1(t)&&(t=[...t]),e&&e.copy?JSON.parse(JSON.stringify(t)):t}const Jx={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function n0(t,e){let n,r,i,s;return t=sl(t,e),e&&e.feature?(n=X1,i=e.feature):e&&e.mesh?(n=J1,i=e.mesh,s=Jx[e.filter]):te("Missing TopoJSON feature or mesh parameter."),r=(r=t.objects[i])?n(t,r,s):te("Invalid TopoJSON object: "+i),r&&r.features||[r]}n0.responseType="json";const yc={dsv:il,csv:Hf(","),tsv:Hf(" "),json:sl,topojson:n0};function ol(t,e){return arguments.length>1?(yc[t]=e,this):ur(yc,t)?yc[t]:null}function r0(t,e,n,r){e=e||{};const i=ol(e.type||"json");return i||te("Unknown data format type: "+e.type),t=i(t,e),e.parse&&Zx(t,e.parse,n,r),ur(t,"columns")&&delete t.columns,t}function Zx(t,e,n,r){if(!t.length)return;const i=zx();n=n||i.timeParse,r=r||i.utcParse;let s=t.columns||Object.keys(t[0]),o,a,c,u,f,l;e==="auto"&&(e=Yx(t,s)),s=Object.keys(e);const h=s.map(p=>{const d=e[p];let m,g;if(d&&(d.startsWith("date:")||d.startsWith("utc:")))return m=d.split(/:(.+)?/,2),g=m[1],(g[0]==="'"&&g[g.length-1]==="'"||g[0]==='"'&&g[g.length-1]==='"')&&(g=g.slice(1,-1)),(m[0]==="utc"?r:n)(g);if(!Gf[d])throw Error("Illegal format pattern: "+p+":"+d);return Gf[d]});for(c=0,f=t.length,l=s.length;c2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r==null?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:n}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const r of this.ft)e[r]==null&&(this.ft.delete(r),r.includes("-")?n.removeProperty(r):n[r]=null);for(const r in e){const i=e[r];if(i!=null){this.ft.add(r);const s=typeof i=="string"&&i.endsWith(Qx);r.includes("-")||s?n.setProperty(r,s?i.slice(0,-11):i,s?i0:""):n[r]=i}}return Wt}}),tb=""+new URL("90-ring-with-bg-3f133867.svg",import.meta.url).href,nb=`
+.genome-spy {
+ font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+ position: relative;
+ display: flex;
+ flex-direction: column;
+}
+.genome-spy .canvas-wrapper {
+ position: relative;
+ flex-grow: 1;
+ overflow: hidden;
+}
+.genome-spy canvas {
+ display: block;
+ transform: scale(1, 1);
+ opacity: 1;
+ transition: transform 0.6s, opacity 0.6s;
+}
+.genome-spy .loading-message {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.genome-spy .loading-message .message {
+ color: #666;
+ opacity: 0;
+ transition: opacity 0.7s;
+}
+.genome-spy .loading > canvas {
+ transform: scale(0.95, 0.95);
+ opacity: 0;
+}
+.genome-spy .loading > .loading-message .message {
+ opacity: 1;
+}
+.genome-spy .loading > .loading-message .message .ellipsis {
+ animation: blinker 1s linear infinite;
+}
+@keyframes blinker {
+ 50% {
+ opacity: 0;
+ }
+}
+.genome-spy .loading-indicators {
+ position: absolute;
+ inset: 0;
+ user-select: none;
+ pointer-events: none;
+}
+.genome-spy .loading-indicators div {
+ position: absolute;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.genome-spy .loading-indicators div > div {
+ font-size: 11px;
+ transition: opacity 0.2s;
+ background: white;
+ padding: 2px 5px;
+ display: flex;
+ border-radius: 3px;
+ gap: 0.5em;
+ opacity: 0;
+}
+.genome-spy .loading-indicators div > div.loading {
+ opacity: 0.5;
+}
+.genome-spy .loading-indicators div > div.error {
+ opacity: 0.8;
+ color: firebrick;
+}
+.genome-spy .loading-indicators div > div > * {
+ display: block;
+}
+.genome-spy .loading-indicators div > div img {
+ width: 1.5em;
+ height: 1.5em;
+}
+.genome-spy .tooltip {
+ position: absolute;
+ max-width: 450px;
+ overflow: hidden;
+ background: #f6f6f6;
+ padding: 10px;
+ font-size: 13px;
+ box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.21);
+ pointer-events: none;
+ z-index: 100;
+}
+.genome-spy .tooltip > :last-child {
+ margin-bottom: 0;
+}
+.genome-spy .tooltip > .title {
+ padding-bottom: 5px;
+ margin-bottom: 5px;
+ border-bottom: 1px dashed #b6b6b6;
+}
+.genome-spy .tooltip .summary {
+ font-size: 12px;
+}
+.genome-spy .tooltip table {
+ border-collapse: collapse;
+}
+.genome-spy .tooltip table:first-child {
+ margin-top: 0;
+}
+.genome-spy .tooltip table th,
+.genome-spy .tooltip table td {
+ padding: 2px 0.4em;
+ vertical-align: top;
+}
+.genome-spy .tooltip table th:first-child,
+.genome-spy .tooltip table td:first-child {
+ padding-left: 0;
+}
+.genome-spy .tooltip table th {
+ text-align: left;
+ font-weight: bold;
+}
+.genome-spy .tooltip .color-legend {
+ display: inline-block;
+ width: 0.8em;
+ height: 0.8em;
+ margin-left: 0.4em;
+ box-shadow: 0px 0px 3px 1px white;
+}
+.genome-spy .tooltip .attributes .hovered {
+ background-color: #e0e0e0;
+}
+.genome-spy .tooltip .na {
+ color: #aaa;
+ font-style: italic;
+ font-size: 80%;
+}
+.genome-spy .gene-track-tooltip .summary {
+ font-size: 90%;
+}
+.genome-spy .message-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ top: 0;
+ height: 100%;
+ width: 100%;
+}
+.genome-spy .message-box > div {
+ border: 1px solid red;
+ padding: 10px;
+ background: #fff0f0;
+}
+
+.gs-input-binding {
+ display: grid;
+ grid-template-columns: max-content max-content;
+ column-gap: 1em;
+ row-gap: 0.3em;
+ justify-items: start;
+}
+.gs-input-binding > select,
+.gs-input-binding > input:not([type=checkbox]) {
+ width: 100%;
+}
+.gs-input-binding input[type=range] + span {
+ display: inline-block;
+ margin-left: 0.3em;
+ min-width: 2.2em;
+ font-variant-numeric: tabular-nums;
+}
+.gs-input-binding input[type=range],
+.gs-input-binding input[type=radio] {
+ vertical-align: text-bottom;
+}
+.gs-input-binding .radio-group {
+ display: flex;
+ align-items: center;
+}
+.gs-input-binding .description {
+ max-width: 26em;
+ grid-column: 1/-1;
+ color: #777;
+ font-size: 90%;
+ margin-top: -0.5em;
+}
+
+.gs-input-bindings {
+ flex-basis: content;
+ font-size: 14px;
+ padding: 10px;
+}
+`;function rb(t,e){var n=t.getBoundingClientRect();return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}function No(t,e){return t.length==e.length&&t.every((n,r)=>t[r]===e[r])}function Be(t){return Array.isArray(t)?t:typeof t<"u"?[t]:[]}function Rs(t){return t[t.length-1]}class ib{constructor(e){this.container=e,this.element=document.createElement("div"),this.element.className="tooltip",this._visible=!0,this.container.appendChild(this.element),this._previousTooltipDatum=void 0,this.enabledStack=[!0],this._penaltyUntil=0,this._lastCoords=void 0,this._previousMove=0,this.clear()}set visible(e){e!=this._visible&&(this.element.style.display=e?null:"none",this._visible=e)}get visible(){return this._visible}get enabled(){return Rs(this.enabledStack)??!0}pushEnabledState(e){this.enabledStack.push(e),e||(this.visible=!1)}popEnabledState(){this.enabledStack.pop()}handleMouseMove(e){this.mouseCoords=rb(this.container,e);const n=performance.now();!this.visible&&!this._isPenalty()&&n-this._previousMove>500&&(this._penaltyUntil=n+70),this._lastCoords&&sb(this.mouseCoords,this._lastCoords)>20&&(this._penaltyUntil=n+400),this._lastCoords=this.mouseCoords,this.visible&&this.updatePlacement(),this._previousMove=n}updatePlacement(){const[n,r]=this.mouseCoords;let i=n+20;i>this.container.clientWidth-this.element.offsetWidth&&(i=n-20-this.element.offsetWidth),this.element.style.left=i+"px",this.element.style.top=Math.min(r+20,this.container.clientHeight-this.element.offsetHeight)+"px"}setContent(e){if(!e||!this.enabled||this._isPenalty()){this.visible&&(qn("",this.element),this.visible=!1),this._previousTooltipDatum=void 0;return}qn(e,this.element),this.visible=!0,this.updatePlacement()}clear(){this._previousTooltipDatum=void 0,this.setContent(void 0)}updateWithDatum(e,n){e!==this._previousTooltipDatum&&(this._previousTooltipDatum=e,n||(n=r=>Promise.resolve(z`${JSON.stringify(r)}`)),n(e).then(r=>this.setContent(r)).catch(r=>{if(r!=="debounced")throw r}))}_isPenalty(){return this._penaltyUntil&&this._penaltyUntil>performance.now()}}function sb(t,e){let n=0;for(let r=0;r0)throw new Error(`Can not guess numComponents for attribute '${t}'. Tried ${n} but ${e} values is not evenly divisible by ${n}. You should specify it.`);return n}function Bb(t,e){return t.numComponents||t.size||d0(e,Rb(t).length)}function pl(t,e){if($o(t))return t;if($o(t.data))return t.data;Array.isArray(t)&&(t={data:t});let n=t.type;return n||(h0(e)?n=Uint16Array:n=Float32Array),new n(t.data)}function Pb(t,e){const n={};return Object.keys(e).forEach(function(r){if(!h0(r)){const i=e[r],s=i.attrib||i.name||i.attribName||u0.attribPrefix+r;if(i.value){if(!Array.isArray(i.value)&&!$o(i.value))throw new Error("array.value is not array or typedarray");n[s]={value:i.value}}else{let o,a,c,u;if(i.buffer&&i.buffer instanceof WebGLBuffer)o=i.buffer,u=i.numComponents||i.size,a=i.type,c=i.normalize;else if(typeof i=="number"||typeof i.data=="number"){const f=i.data||i,l=i.type||Float32Array,h=f*l.BYTES_PER_ELEMENT;a=mb(l),c=i.normalize!==void 0?i.normalize:Ib(l),u=i.numComponents||i.size||d0(r,f),o=t.createBuffer(),t.bindBuffer(ut,o),t.bufferData(ut,h,i.drawType||c0)}else{const f=pl(i,r);o=f0(t,f,void 0,i.drawType),a=dl(f),c=i.normalize!==void 0?i.normalize:_b(f),u=Bb(i,r)}n[s]={buffer:o,numComponents:u,type:a,normalize:c,stride:i.stride||0,offset:i.offset||0,divisor:i.divisor===void 0?void 0:i.divisor,drawType:i.drawType}}}}),t.bindBuffer(ut,null),n}function Ob(t,e,n,r){n=pl(n),r!==void 0?(t.bindBuffer(ut,e.buffer),t.bufferSubData(ut,r,n)):l0(t,ut,e.buffer,n,e.drawType)}function Lb(t,e){return e===vb||e===Eb?1:e===Cb||e===Sb?2:e===Fb||e===Tb||e===Db?4:0}const xc=["position","positions","a_position"];function Nb(t,e){let n,r;for(r=0;r{const w=y*x.ndx,v=n.subarray(w,w+y);t.texImage2D(x.face,c,u,s,o,0,l,h,v)})}else i===Yt||i===Xt?t.texImage3D(i,c,u,s,o,a,0,l,h,n):t.texImage2D(i,c,u,s,o,0,l,h,n);return{width:s,height:o,depth:a,type:h}}function mw(t,e,n){const r=n.target||Ot;t.bindTexture(r,e);const i=n.level||0,s=n.internalFormat||n.format||K,o=jr(s),a=n.format||o.format,c=n.type||o.type;if(Ur(t,n),r===Bt)for(let u=0;u<6;++u)t.texImage2D(Da+u,i,s,n.width,n.height,0,a,c,null);else r===Yt||r===Xt?t.texImage3D(r,i,s,n.width,n.height,n.depth,0,a,c,null):t.texImage2D(r,i,s,n.width,n.height,0,a,c,null)}function Li(t,e,n){n=n||Ms,e=e||sn.textureOptions;const r=t.createTexture(),i=e.target||Ot;let s=e.width||1,o=e.height||1;const a=e.internalFormat||K;t.bindTexture(i,r),i===Bt&&(t.texParameteri(i,zo,Uo),t.texParameteri(i,Vo,Uo));let c=e.src;if(c)if(typeof c=="function"&&(c=c(t,e)),typeof c=="string")hw(t,r,e,n);else if($r(c)||Array.isArray(c)&&(typeof c[0]=="number"||Array.isArray(c[0])||$r(c[0]))){const u=S0(t,r,c,e);s=u.width,o=u.height}else Array.isArray(c)&&(typeof c[0]=="string"||C0(c[0]))?i===Bt?dw(t,r,e,n):pw(t,r,e,n):(E0(t,r,c,e),s=c.width,o=c.height);else mw(t,r,e);return Oi(e)&&Yc(t,r,e,s,o,a),v0(t,r,e),r}function gw(t,e,n,r,i,s){r=r||n.width,i=i||n.height,s=s||n.depth;const o=n.target||Ot;t.bindTexture(o,e);const a=n.level||0,c=n.internalFormat||n.format||K,u=jr(c),f=n.format||u.format;let l;const h=n.src;if(h&&($r(h)||Array.isArray(h)&&typeof h[0]=="number")?l=n.type||w0(t,h,u.type):l=n.type||u.type,o===Bt)for(let p=0;p<6;++p)t.texImage2D(Da+p,a,c,r,i,0,f,l,null);else o===Yt||o===Xt?t.texImage3D(o,a,c,r,i,s,0,f,l,null):t.texImage2D(o,a,c,r,i,0,f,l,null)}const yw=o0,Go=33984,xw=35048,Ia=34962,bw=34963,xl=35345,F0=35718,ww=35721,Aw=35971,vw=35382,Ew=35396,Cw=35398,Sw=35392,Fw=35395,Ra=5126,T0=35664,D0=35665,_0=35666,bl=5124,I0=35667,R0=35668,M0=35669,k0=35670,B0=35671,P0=35672,O0=35673,L0=35674,N0=35675,$0=35676,Tw=35678,Dw=35680,_w=35679,Iw=35682,Rw=35685,Mw=35686,kw=35687,Bw=35688,Pw=35689,Ow=35690,Lw=36289,Nw=36292,$w=36293,wl=5125,U0=36294,z0=36295,V0=36296,Uw=36298,zw=36299,Vw=36300,Gw=36303,Hw=36306,Ww=36307,qw=36308,jw=36311,Ma=3553,ka=34067,Al=32879,Ba=35866,B={};function G0(t,e){return B[e].bindPoint}function Yw(t,e){return function(n){t.uniform1f(e,n)}}function Xw(t,e){return function(n){t.uniform1fv(e,n)}}function Kw(t,e){return function(n){t.uniform2fv(e,n)}}function Jw(t,e){return function(n){t.uniform3fv(e,n)}}function Zw(t,e){return function(n){t.uniform4fv(e,n)}}function H0(t,e){return function(n){t.uniform1i(e,n)}}function W0(t,e){return function(n){t.uniform1iv(e,n)}}function q0(t,e){return function(n){t.uniform2iv(e,n)}}function j0(t,e){return function(n){t.uniform3iv(e,n)}}function Y0(t,e){return function(n){t.uniform4iv(e,n)}}function Qw(t,e){return function(n){t.uniform1ui(e,n)}}function eA(t,e){return function(n){t.uniform1uiv(e,n)}}function tA(t,e){return function(n){t.uniform2uiv(e,n)}}function nA(t,e){return function(n){t.uniform3uiv(e,n)}}function rA(t,e){return function(n){t.uniform4uiv(e,n)}}function iA(t,e){return function(n){t.uniformMatrix2fv(e,!1,n)}}function sA(t,e){return function(n){t.uniformMatrix3fv(e,!1,n)}}function oA(t,e){return function(n){t.uniformMatrix4fv(e,!1,n)}}function aA(t,e){return function(n){t.uniformMatrix2x3fv(e,!1,n)}}function cA(t,e){return function(n){t.uniformMatrix3x2fv(e,!1,n)}}function uA(t,e){return function(n){t.uniformMatrix2x4fv(e,!1,n)}}function lA(t,e){return function(n){t.uniformMatrix4x2fv(e,!1,n)}}function fA(t,e){return function(n){t.uniformMatrix3x4fv(e,!1,n)}}function hA(t,e){return function(n){t.uniformMatrix4x3fv(e,!1,n)}}function Se(t,e,n,r){const i=G0(t,e);return qr(t)?function(s){let o,a;Ta(t,s)?(o=s,a=null):(o=s.texture,a=s.sampler),t.uniform1i(r,n),t.activeTexture(Go+n),t.bindTexture(i,o),t.bindSampler(n,a)}:function(s){t.uniform1i(r,n),t.activeTexture(Go+n),t.bindTexture(i,s)}}function Fe(t,e,n,r,i){const s=G0(t,e),o=new Int32Array(i);for(let a=0;at>="0"&&t<="9";function K0(t,e,n,r){const i=t.split(dA).filter(a=>a!=="");let s=0,o="";for(;;){const a=i[s++];o+=a;const c=pA(a[0]),u=c?parseInt(a):a;if(c&&(o+=i[s++]),s===i.length){n[u]=e;break}else{const l=i[s++],h=l==="[",p=n[u]||(h?[]:{});n[u]=p,n=p,r[o]=r[o]||function(d){return function(m){Z0(d,m)}}(p),o+=l}}}function mA(t,e){let n=0;function r(a,c,u){const f=c.name.endsWith("[0]"),l=c.type,h=B[l];if(!h)throw new Error(`unknown type: 0x${l.toString(16)}`);let p;if(h.bindPoint){const d=n;n+=c.size,f?p=h.arraySetter(t,l,d,u,c.size):p=h.setter(t,l,d,u,c.size)}else h.arraySetter&&f?p=h.arraySetter(t,u):p=h.setter(t,u);return p.location=u,p}const i={},s={},o=t.getProgramParameter(e,F0);for(let a=0;a((t+(e-1))/e|0)*e;function bA(t,e,n,r){if(e||n){r=r||1;const s=t.length/4;return function(o){let a=0,c=0;for(let u=0;u=Jc&&t1?t.renderbufferStorageMultisample(Fn,l,h,n,r):t.renderbufferStorage(Fn,h,n,r);else{const d=Object.assign({},c);d.width=n,d.height=r,d.auto===void 0&&(d.auto=!1,d.min=d.min||d.minMag||Qc,d.mag=d.mag||d.minMag||Qc,d.wrapS=d.wrapS||d.wrap||Zc,d.wrapT=d.wrapT||d.wrap||Zc),f=Li(t,d)}if(a0(t,f))t.framebufferRenderbuffer(i,p,Fn,f);else if(Ta(t,f))c.layer!==void 0?t.framebufferTextureLayer(i,p,f,c.level||0,c.layer):t.framebufferTexture2D(i,p,c.target||FA,f,c.level||0);else throw new Error("unknown attachment type");a.attachments.push(f)}),t.drawBuffers&&t.drawBuffers(o),a}function VA(t,e,n,r,i){r=r||t.drawingBufferWidth,i=i||t.drawingBufferHeight,e.width=r,e.height=i,n=n||rp,n.forEach(function(s,o){const a=e.attachments[o],c=s.format,u=s.samples;if(u!==void 0||a0(t,a))t.bindRenderbuffer(Fn,a),u>1?t.renderbufferStorageMultisample(Fn,u,c,r,i):t.renderbufferStorage(Fn,c,r,i);else if(Ta(t,a))gw(t,a,s,r,i);else throw new Error("unknown attachment type")})}function GA(t,e,n){const r=t.createVertexArray();return t.bindVertexArray(r),e.length||(e=[e]),e.forEach(function(i){jn(t,i,n)}),t.bindVertexArray(null),{numElements:n.numElements,elementType:n.elementType,vertexArrayObject:r}}const HA=/^(.*?)_/;function WA(t,e){Wc(t,0);const n=t.getExtension(e);if(n){const r={},i=HA.exec(e)[1],s="_"+i;for(const o in n){const a=n[o],c=typeof a=="function",u=c?i:s;let f=o;o.endsWith(u)&&(f=o.substring(0,o.length-u.length)),t[f]!==void 0?!c&&t[f]!==a&&o0(f,t[f],a,o):c?t[f]=function(l){return function(){return l.apply(n,arguments)}}(a):(t[f]=a,r[f]=a)}r.constructor={name:n.constructor.name},Wc(r,0)}return n}const ih=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function ip(t){for(let e=0;e0.0&&abs(size)b){float tmp=b;b=a;a=tmp;}}/***The vertex position wrt the rectangle specified by(x,x2,y,y2).*[0,0]=[x,y],[1,1]=[x2,y2].*The x or y component may contain fractional values if the rectangle*have been tessellated.*/vec2 getVertexPos(){int index=gl_VertexID % 6;return vec2(index==0||index==1||index==3 ? 0.0 : 1.0,index==0||index==1||index==2 ? 0.0 : 1.0);}void main(void){vec2 frac=getVertexPos();vec2 normalizedMinSize=vec2(uMinWidth,uMinHeight)/uViewportSize;vec4 cornerRadii=vec4(uCornerRadiusTopRight,uCornerRadiusBottomRight,uCornerRadiusTopLeft,uCornerRadiusBottomLeft);float x=getScaled_x();float x2=getScaled_x2();float y=getScaled_y();float y2=getScaled_y2();sort(x,x2);sort(y,y2);float clampMargin=1.0;vec2 pos1=vec2(clamp(x,0.0-clampMargin,1.0+clampMargin),y);vec2 pos2=vec2(clamp(x2,0.0-clampMargin,1.0+clampMargin),y2);vec2 size=pos2-pos1;if(size.x<=0.0||size.y<=0.0){gl_Position=vec4(0.0,0.0,0.0,1.0);return;}vec2 pos=pos1+frac*size;size.y*=getSampleFacetHeight(pos);float opaFactor=uViewOpacity*max(uMinOpacity,clampMinSize(pos.x,frac.x,size.x,normalizedMinSize.x)*clampMinSize(pos.y,frac.y,size.y,normalizedMinSize.y));pos=applySampleFacet(pos);
+#if defined(ROUNDED_CORNERS) || defined(STROKED)
+float aaPadding=1.0/uDevicePixelRatio;float strokeWidth=getScaled_strokeWidth();float strokeOpacity=getScaled_strokeOpacity()*opaFactor;vec2 centeredFrac=frac-0.5;vec2 expand=centeredFrac*(strokeWidth+aaPadding)/uViewportSize;pos+=expand;vec2 sizeInPixels=size*uViewportSize;vPosInPixels=(centeredFrac+expand/size)*sizeInPixels;vHalfSizeInPixels=sizeInPixels/2.0;vCornerRadii=min(cornerRadii,min(vHalfSizeInPixels.x,vHalfSizeInPixels.y));vHalfStrokeWidth=strokeWidth/2.0;vStrokeColor=vec4(getScaled_stroke()*strokeOpacity,strokeOpacity);
+#endif
+gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,XA=`#if defined(ROUNDED_CORNERS) || defined(STROKED)
+in vec2 vPosInPixels;
+#endif
+in vec2 vHalfSizeInPixels;in lowp vec4 vFillColor;in lowp vec4 vStrokeColor;in float vHalfStrokeWidth;in vec4 vCornerRadii;out lowp vec4 fragColor;float sdRoundedBox(vec2 p,vec2 b,vec4 r){r.xy=p.x>0.0 ? r.xy : r.zw;r.x=p.y>0.0 ? r.x : r.y;vec2 q=abs(p)-b+r.x;return min(max(q.x,q.y),0.0)+length(max(q,0.0))-r.x;}float sdSharpBox(vec2 p,vec2 b){vec2 q=abs(p)-b;return max(q.x,q.y);}void main(void){
+#if defined(ROUNDED_CORNERS) || defined(STROKED)
+#ifdef ROUNDED_CORNERS
+float d=sdRoundedBox(vPosInPixels,vHalfSizeInPixels,vCornerRadii);
+#else
+float d=sdSharpBox(vPosInPixels,vHalfSizeInPixels);
+#endif
+fragColor=distanceToColor(d,vFillColor,vStrokeColor,vHalfStrokeWidth);if(fragColor.a==0.0){discard;}
+#else
+fragColor=vFillColor;
+#endif
+if(uPickingEnabled){fragColor=vPickingColor;}}`,KA=`layout(std140)uniform Mark{uniform float uMinWidth;uniform float uMinHeight;uniform float uMinOpacity;uniform float uCornerRadiusTopRight;uniform float uCornerRadiusBottomRight;uniform float uCornerRadiusTopLeft;uniform float uCornerRadiusBottomLeft;
+#pragma markUniforms
+};`;function mt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function cn(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const eu=Symbol("implicit");function Sl(){var t=new Mt,e=[],n=[],r=eu;function i(s){let o=t.get(s);if(o===void 0){if(r!==eu)return r;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Mt;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return Sl(e,n).unknown(r)},mt.apply(i,arguments),i}function Yr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ks(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function un(){}var Yn=.7,zr=1/Yn,hr="\\s*([+-]?\\d+)\\s*",$i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JA=/^#([0-9a-f]{3,8})$/,ZA=new RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),QA=new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`),ev=new RegExp(`^rgba\\(${hr},${hr},${hr},${$i}\\)$`),tv=new RegExp(`^rgba\\(${lt},${lt},${lt},${$i}\\)$`),nv=new RegExp(`^hsl\\(${$i},${lt},${lt}\\)$`),rv=new RegExp(`^hsla\\(${$i},${lt},${lt},${$i}\\)$`),sh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yr(un,Kt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:oh,formatHex:oh,formatHex8:iv,formatHsl:sv,formatRgb:ah,toString:ah});function oh(){return this.rgb().formatHex()}function iv(){return this.rgb().formatHex8()}function sv(){return sp(this).formatHsl()}function ah(){return this.rgb().formatRgb()}function Kt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=JA.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?ch(e):n===3?new ie(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?mo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?mo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ZA.exec(t))?new ie(e[1],e[2],e[3],1):(e=QA.exec(t))?new ie(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ev.exec(t))?mo(e[1],e[2],e[3],e[4]):(e=tv.exec(t))?mo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=nv.exec(t))?fh(e[1],e[2]/100,e[3]/100,1):(e=rv.exec(t))?fh(e[1],e[2]/100,e[3]/100,e[4]):sh.hasOwnProperty(t)?ch(sh[t]):t==="transparent"?new ie(NaN,NaN,NaN,0):null}function ch(t){return new ie(t>>16&255,t>>8&255,t&255,1)}function mo(t,e,n,r){return r<=0&&(t=e=n=NaN),new ie(t,e,n,r)}function Fl(t){return t instanceof un||(t=Kt(t)),t?(t=t.rgb(),new ie(t.r,t.g,t.b,t.opacity)):new ie}function Ho(t,e,n,r){return arguments.length===1?Fl(t):new ie(t,e,n,r??1)}function ie(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Yr(ie,Ho,ks(un,{brighter(t){return t=t==null?zr:Math.pow(zr,t),new ie(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Yn:Math.pow(Yn,t),new ie(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ie(zn(this.r),zn(this.g),zn(this.b),Wo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:uh,formatHex:uh,formatHex8:ov,formatRgb:lh,toString:lh}));function uh(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}`}function ov(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}${Tn((isNaN(this.opacity)?1:this.opacity)*255)}`}function lh(){const t=Wo(this.opacity);return`${t===1?"rgb(":"rgba("}${zn(this.r)}, ${zn(this.g)}, ${zn(this.b)}${t===1?")":`, ${t})`}`}function Wo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Tn(t){return t=zn(t),(t<16?"0":"")+t.toString(16)}function fh(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,n,r)}function sp(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof un||(t=Kt(t)),!t)return new tt;if(t instanceof tt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,c=(s+i)/2;return a?(e===s?o=(n-r)/a+(n0&&c<1?0:o,new tt(o,a,c,t.opacity)}function tu(t,e,n,r){return arguments.length===1?sp(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Yr(tt,tu,ks(un,{brighter(t){return t=t==null?zr:Math.pow(zr,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Yn:Math.pow(Yn,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ie(Ac(t>=240?t-240:t+120,i,r),Ac(t,i,r),Ac(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new tt(hh(this.h),go(this.s),go(this.l),Wo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Wo(this.opacity);return`${t===1?"hsl(":"hsla("}${hh(this.h)}, ${go(this.s)*100}%, ${go(this.l)*100}%${t===1?")":`, ${t})`}`}}));function hh(t){return t=(t||0)%360,t<0?t+360:t}function go(t){return Math.max(0,Math.min(1,t||0))}function Ac(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const op=Math.PI/180,ap=180/Math.PI,qo=18,cp=.96422,up=1,lp=.82521,fp=4/29,dr=6/29,hp=3*dr*dr,av=dr*dr*dr;function dp(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof It)return pp(t);t instanceof ie||(t=Fl(t));var e=Sc(t.r),n=Sc(t.g),r=Sc(t.b),i=vc((.2225045*e+.7168786*n+.0606169*r)/up),s,o;return e===n&&n===r?s=o=i:(s=vc((.4360747*e+.3850649*n+.1430804*r)/cp),o=vc((.0139322*e+.0971045*n+.7141733*r)/lp)),new ft(116*i-16,500*(s-i),200*(i-o),t.opacity)}function nu(t,e,n,r){return arguments.length===1?dp(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Yr(ft,nu,ks(un,{brighter(t){return new ft(this.l+qo*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-qo*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=cp*Ec(e),t=up*Ec(t),n=lp*Ec(n),new ie(Cc(3.1338561*e-1.6168667*t-.4906146*n),Cc(-.9787684*e+1.9161415*t+.033454*n),Cc(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function vc(t){return t>av?Math.pow(t,1/3):t/hp+fp}function Ec(t){return t>dr?t*t*t:hp*(t-fp)}function Cc(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Sc(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function cv(t){if(t instanceof It)return new It(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=dp(t)),t.a===0&&t.b===0)return new It(NaN,0=1?(n=1,e-1):Math.floor(n*e),i=t[r],s=t[r+1],o=r>0?t[r-1]:2*i-s,a=r()=>t;function bp(t,e){return function(n){return t+n*e}}function lv(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function za(t,e){var n=e-t;return n?bp(t,n>180||n<-180?n-360*Math.round(n/360):n):Ua(isNaN(t)?e:t)}function fv(t){return(t=+t)==1?se:function(e,n){return n-e?lv(e,n,t):Ua(isNaN(e)?n:e)}}function se(t,e){var n=e-t;return n?bp(t,n):Ua(isNaN(t)?e:t)}const su=function t(e){var n=fv(e);function r(i,s){var o=n((i=Ho(i)).r,(s=Ho(s)).r),a=n(i.g,s.g),c=n(i.b,s.b),u=se(i.opacity,s.opacity);return function(f){return i.r=o(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r}(1);function wp(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),s=new Array(n),o,a;for(o=0;on&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:et(r,i)})),n=Fc.lastIndex;return n180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:et(u,f)})):f&&l.push(i(l)+"rotate("+f+r)}function a(u,f,l,h){u!==f?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:et(u,f)}):f&&l.push(i(l)+"skewX("+f+r)}function c(u,f,l,h,p,d){if(u!==l||f!==h){var m=p.push(i(p)+"scale(",null,",",null,")");d.push({i:m-4,x:et(u,l)},{i:m-2,x:et(f,h)})}else(l!==1||h!==1)&&p.push(i(p)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),s(u.translateX,u.translateY,f.translateX,f.translateY,l,h),o(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(p){for(var d=-1,m=h.length,g;++de&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Nv(t,e,n){var r=t[0],i=t[1],s=e[0],o=e[1];return i2?$v:Nv,c=u=null,l}function l(h){return h==null||isNaN(h=+h)?s:(c||(c=a(t.map(r),e,n)))(r(o(h)))}return l.invert=function(h){return o(i((u||(u=a(e,t.map(r),et)))(h)))},l.domain=function(h){return arguments.length?(t=Array.from(h,cu),f()):t.slice()},l.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},l.rangeRound=function(h){return e=Array.from(h),n=Bs,f()},l.clamp=function(h){return arguments.length?(o=h?!0:ke,f()):o!==ke},l.interpolate=function(h){return arguments.length?(n=h,f()):n},l.unknown=function(h){return arguments.length?(s=h,l):s},function(h,p){return r=h,i=p,f()}}function Rp(){return Va()(ke,ke)}function Mp(t,e,n,r){var i=qt(t,e,n),s;switch(r=jt(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(s=Gd(i,o))&&(r.precision=s),Qu(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Hd(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Vd(i))&&(r.precision=s-(r.type==="%")*2);break}}return fe(r)}function er(t){var e=t.domain;return t.ticks=function(n){var r=e();return Bo(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Mp(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,s=r.length-1,o=r[i],a=r[s],c,u,f=10;for(a0;){if(u=Gc(o,a,n),u===c)return r[i]=o,r[s]=a,e(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;c=u}return t},t}function kp(){var t=Rp();return t.copy=function(){return Ps(t,kp())},mt.apply(t,arguments),er(t)}function Bp(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,cu),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return Bp(t).unknown(e)},t=arguments.length?Array.from(t,cu):[0,1],er(n)}function Pp(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],o;return sMath.pow(t,e)}function Hv(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Ah(t){return(e,n)=>-t(-e,n)}function Rl(t){const e=t(bh,wh),n=e.domain;let r=10,i,s;function o(){return i=Hv(r),s=Gv(r),n()[0]<0?(i=Ah(i),s=Ah(s),t(Uv,zv)):t(bh,wh),e}return e.base=function(a){return arguments.length?(r=+a,o()):r},e.domain=function(a){return arguments.length?(n(a),o()):n()},e.ticks=a=>{const c=n();let u=c[0],f=c[c.length-1];const l=f0){for(;h<=p;++h)for(d=1;df)break;y.push(m)}}else for(;h<=p;++h)for(d=r-1;d>=1;--d)if(m=h>0?d/s(-h):d*s(h),!(m