PageSourceSearch

https://www.uniprot.org/modern.9394.80d6ae.js

js uniprot.org collected 2026-09-24 08:35:14 UTC 60,081 bytes, 3 lines download raw bytes

1/*! For license information please see modern.9394.80d6ae.js.LICENSE.txt */
2"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[9394],{79394(t,e,n){n.d(e,{A:()=>Pr});var r=n(16302);function i(t,e,n,r){var i,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,n,o):i(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function o(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}"function"==typeof SuppressedError&&SuppressedError;const a=globalThis,h=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),l=new WeakMap;let c=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(h&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&l.set(e,t))}return t}toString(){return this.cssText}};const f=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new c("string"==typeof t?t:t+"",void 0,u))(e)})(t):t,{is:p,defineProperty:d,getOwnPropertyDescriptor:g,getOwnPropertyNames:_,getOwnPropertySymbols:y,getPrototypeOf:m}=Object,v=globalThis,w=v.trustedTypes,$=w?w.emptyScript:"",b=v.reactiveElementPolyfillSupport,A=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},E=(t,e)=>!p(t,e),S={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class k extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);void 0!==r&&d(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:i}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const s=r?.call(this);i.call(this,e),this.requestUpdate(t,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[..._(t),...y(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];
2if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(h)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),r=a.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=n.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(void 0!==r&&!0===n.reflect){const i=(void 0!==n.converter?.toAttribute?n.converter:x).toAttribute(e,n.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const n=this.constructor,r=n._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=n.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??E)(this[t],e))return;this.P(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t)!0!==n.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(t){}firstUpdated(t){}}k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[A("elementProperties")]=new Map,k[A("finalized")]=new Map,b?.({ReactiveElement:k}),(v.reactiveElementVersions??=[]).push("2.0.4");const M=globalThis,N=M.trustedTypes,C=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+T,H=`<${O}>`,U=document,q=()=>U.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,j="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,L=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,W=/"/g,V=/^(?:script|style|textarea|title)$/i,F=(t,...e)=>({_$litType$:1,strings:t,values:e}
vendor: 8,033 bytes, line 2
2),Y=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),K=new WeakMap,G=U.createTreeWalker(U,129);function J(t,e){if(!B(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}class Q{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[h,u]=((t,e)=>{const n=t.length-1,r=[];let i,s=2===e?"<svg>":3===e?"<math>":"",o=z;for(let e=0;e<n;e++){const n=t[e];let a,h,u=-1,l=0;for(;l<n.length&&(o.lastIndex=l,h=o.exec(n),null!==h);)l=o.lastIndex,o===z?"!--"===h[1]?o=I:void 0!==h[1]?o=D:void 0!==h[2]?(V.test(h[2])&&(i=RegExp("</"+h[2],"g")),o=L):void 0!==h[3]&&(o=L):o===L?">"===h[0]?(o=i??z,u=-1):void 0===h[1]?u=-2:(u=o.lastIndex-h[2].length,a=h[1],o=void 0===h[3]?L:'"'===h[3]?W:X):o===W||o===X?o=L:o===I||o===D?o=z:(o=L,i=void 0);const c=o===L&&t[e+1].startsWith("/>")?" ":"";s+=o===z?n+H:u>=0?(r.push(a),n.slice(0,u)+P+n.slice(u)+T+c):n+T+(-2===u?e:c)}return[J(t,s+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=Q.createElement(h,n),G.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=G.nextNode())&&a.length<o;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(P)){const e=u[s++],n=r.getAttribute(t).split(T),o=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:o[2],strings:n,ctor:"."===o[1]?it:"?"===o[1]?st:"@"===o[1]?ot:rt}),r.removeAttribute(t)}else t.startsWith(T)&&(a.push({type:6,index:i}),r.removeAttribute(t));if(V.test(r.tagName)){const t=r.textContent.split(T),e=t.length-1;if(e>0){r.textContent=N?N.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],q()),G.nextNode(),a.push({type:2,index:++i});r.append(t[e],q())}}}else if(8===r.nodeType)if(r.data===O)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(T,t+1));)a.push({type:7,index:i}),t+=T.length-1}i++}}static createElement(t,e){const n=U.createElement("template");return n.innerHTML=t,n}}function tt(t,e,n=t,r){if(e===Y)return e;let i=void 0!==r?n._$Co?.[r]:n._$Cl;const s=R(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),void 0===s?i=void 0:(i=new s(t),i._$AT(t,n,r)),void 0!==r?(n._$Co??=[])[r]=i:n._$Cl=i),void 0!==i&&(e=tt(t,i._$AS(t,e.values),i,r)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=(t?.creationScope??U).importNode(e,!0);G.currentNode=r;let i=G.nextNode(),s=0,o=0,a=n[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new nt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new at(i,this,t)),this._$AV.push(e),a=n[++o]}s!==a?.index&&(i=G.nextNode(),s++)}return G.currentNode=U,r}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),R(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>B(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Z&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Q.createElement(J(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new et(r,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Q(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const i of t)r===e.length?e.push(n=new nt(this.O(q()),this.O(q()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,i){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Z}_$AI(t,e=this,n,r){const i=this.strings;let s=!1;if(void 0===i)t=tt(this,t,e,0),s=!R(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const r=t;let o,a;for(t=i[0],o=0;o<i.length-1;o++)a=tt(this,r[n+o],e,o),a===Y&&(a=this._$AH[o]),s||=!R(a)||a!==this._$AH[o],a===Z?t=Z:t!==Z&&(t+=(a??"")+i[o+1]),this._$AH[o]=a}s&&!r&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class it extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}class st extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}}class ot extends rt{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){if((t=tt(this,t,e,0)??Z)===Y)return;const n=this._$AH,r=t===Z&&n!==Z||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Z&&(n===Z||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=M.litHtmlPolyfillSupport;ht?.(Q,nt),(M.litHtmlVersions??=[]).push("3.2.1");let ut=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{const r=n?.renderBefore??e;let i=r._$litPart$;if(void 0===i){const t=n?.renderBefore??null;r._$litPart$=i=new nt(e.insertBefore(q(),t),t,void 0,n??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Y}};ut._$litElement$=!0,ut.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ut});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:ut}),(globalThis.litElementVersions??=[]).push("4.1.1");const ct={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:E},ft=(t=ct,e,n)=>{const{kind:r,metadata:i}=n;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(n.name,t),"accessor"===r){const{name:r}=n;return{set(n){const i=e.get.call(this);e.set.call(this,n),this.requestUpdate(r,i,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=n;return function(n){const i=this[r];e.call(this,n),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function pt(t){return t}var dt=1e-6;function gt(t){return"translate("+t+",0)"}function _t(t){return e=>+t(e)}function yt(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function mt(){return!this.__axis}
vendor: 5,397 bytes, line 2
2function vt(t,e){var n=[],r=null,i=null,s=6,o=6,a=3,h="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=gt;function l(t){var l=r??(e.ticks?e.ticks.apply(e,n):e.domain()),c=i??(e.tickFormat?e.tickFormat.apply(e,n):pt),f=Math.max(s,0)+a,p=e.range(),d=+p[0]+h,g=+p[p.length-1]+h,_=(e.bandwidth?yt:_t)(e.copy(),h),y=t.selection?t.selection():t,m=y.selectAll(".domain").data([null]),v=y.selectAll(".tick").data(l,e).order(),w=v.exit(),$=v.enter().append("g").attr("class","tick"),b=v.select("line"),A=v.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge($),b=b.merge($.append("line").attr("stroke","currentColor").attr("y2",1*s)),A=A.merge($.append("text").attr("fill","currentColor").attr("y",1*f).attr("dy","0.71em")),t!==y&&(m=m.transition(t),v=v.transition(t),b=b.transition(t),A=A.transition(t),w=w.transition(t).attr("opacity",dt).attr("transform",function(t){return isFinite(t=_(t))?u(t+h):this.getAttribute("transform")}),$.attr("opacity",dt).attr("transform",function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:_(t))+h)})),w.remove(),m.attr("d",o?"M"+d+","+1*o+"V"+h+"H"+g+"V"+1*o:"M"+d+","+h+"H"+g),v.attr("opacity",1).attr("transform",function(t){return u(_(t)+h)}),b.attr("y2",1*s),A.attr("y",1*f).text(c),y.filter(mt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","middle"),y.each(function(){this.__axis=_})}return l.scale=function(t){return arguments.length?(e=t,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),l):n.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),l):r&&r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(s=o=+t,l):s},l.tickSizeInner=function(t){return arguments.length?(s=+t,l):s},l.tickSizeOuter=function(t){return arguments.length?(o=+t,l):o},l.tickPadding=function(t){return arguments.length?(a=+t,l):a},l.offset=function(t){return arguments.length?(h=+t,l):h},l}var wt={value:()=>{}};function $t(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new bt(r)}function bt(t){this._=t}function At(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function xt(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=wt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}bt.prototype=$t.prototype={constructor:bt,on:function(t,e){var n,r,i=this._,s=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),o=-1,a=s.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=s[o]).type)i[n]=xt(i[n],t.name,e);else if(null==e)for(n in i)i[n]=xt(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=s[o]).type)&&(n=At(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),s=0;s<n;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(r=this._[t]).length;s<n;++s)r[s].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};var Et="http://www.w3.org/1999/xhtml",St={svg:"http://www.w3.org/2000/svg",xhtml:Et,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),St.hasOwnProperty(e)?{space:St[e],local:t}:t}function Mt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Et&&e.documentElement.namespaceURI===Et?e.createElement(t):e.createElementNS(n,t)}}function Nt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ct(t){var e=kt(t);return(e.local?Nt:Mt)(e)}function Pt(){}function Tt(t){return null==t?Pt:function(){return this.querySelector(t)}}function Ot(){return[]}function Ht(t){return null==t?Ot:function(){return this.querySelectorAll(t)}}function Ut(t){return function(){return this.matches(t)}}function qt(t){return function(e){return e.matches(t)}}var Rt=Array.prototype.find;function Bt(){return this.firstElementChild}var jt=Array.prototype.filter;function zt(){return Array.from(this.children)}function It(t){return new Array(t.length)}function Dt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Lt(t,e,n,r,i,s){for(var o,a=0,h=e.length,u=s.length;a<u;++a)(o=e[a])?(o.__data__=s[a],r[a]=o):n[a]=new Dt(t,s[a]);for(;a<h;++a)(o=e[a])&&(i[a]=o)}function Xt(t,e,n,r,i,s,o){var a,h,u,l=new Map,c=e.length,f=s.length,p=new Array(c);for(a=0;a<c;++a)(h=e[a])&&(p[a]=u=o.call(h,h.__data__,a,e)+"",l.has(u)?i[a]=h:l.set(u,h));for(a=0;a<f;++a)u=o.call(t,s[a],a,s)+"",(h=l.get(u))?(r[a]=h,h.__data__=s[a],l.delete(u)):n[a]=new Dt(t,s[a]);for(a=0;a<c;
vendor: 8,617 bytes, line 2
2++a)(h=e[a])&&l.get(p[a])===h&&(i[a]=h)}function Wt(t){return t.__data__}function Vt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ft(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Yt(t){return function(){this.removeAttribute(t)}}function Zt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kt(t,e){return function(){this.setAttribute(t,e)}}function Gt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Qt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function te(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ee(t){return function(){this.style.removeProperty(t)}}function ne(t,e,n){return function(){this.style.setProperty(t,e,n)}}function re(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function ie(t,e){return t.style.getPropertyValue(e)||te(t).getComputedStyle(t,null).getPropertyValue(e)}function se(t){return function(){delete this[t]}}function oe(t,e){return function(){this[t]=e}}function ae(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function he(t){return t.trim().split(/^|\s+/)}function ue(t){return t.classList||new le(t)}function le(t){this._node=t,this._names=he(t.getAttribute("class")||"")}function ce(t,e){for(var n=ue(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function fe(t,e){for(var n=ue(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function pe(t){return function(){ce(this,t)}}function de(t){return function(){fe(this,t)}}function ge(t,e){return function(){(e.apply(this,arguments)?ce:fe)(this,t)}}function _e(){this.textContent=""}function ye(t){return function(){this.textContent=t}}function me(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ve(){this.innerHTML=""}function we(t){return function(){this.innerHTML=t}}function $e(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function be(){this.nextSibling&&this.parentNode.appendChild(this)}function Ae(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xe(){return null}function Ee(){var t=this.parentNode;t&&t.removeChild(this)}function Se(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ke(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Me(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,s=e.length;r<s;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Ne(t,e,n){return function(){var r,i=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),void(r.value=e);this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function Ce(t,e,n){var r=te(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Pe(t,e){return function(){return Ce(this,t,e)}}function Te(t,e){return function(){return Ce(this,t,e.apply(this,arguments))}}Dt.prototype={constructor:Dt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},le.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Oe=[null];function He(t,e){this._groups=t,this._parents=e}function Ue(){return new He([[document.documentElement]],Oe)}function qe(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Re(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Be(){}He.prototype=Ue.prototype={constructor:He,select:function(t){"function"!=typeof t&&(t=Tt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o,a=e[i],h=a.length,u=r[i]=new Array(h),l=0;l<h;++l)(s=a[l])&&(o=t.call(s,s.__data__,l,a))&&("__data__"in s&&(o.__data__=s.__data__),u[l]=o);return new He(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}(t):Ht(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o,a=e[s],h=a.length,u=0;u<h;++u)(o=a[u])&&(r.push(t.call(o,o.__data__,u,a)),i.push(o));return new He(r,i)},selectChild:function(t){return this.select(null==t?Bt:function(t){return function(){return Rt.call(this.children,t)}}("function"==typeof t?t:qt(t)))},selectChildren:function(t){return this.selectAll(null==t?zt:function(t){return function(){return jt.call(this.children,t)}}("function"==typeof t?t:qt(t)))},filter:function(t){"function"!=typeof t&&(t=Ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,h=r[i]=[],u=0;u<a;++u)(s=o[u])&&t.call(s,s.__data__,u,o)&&h.push(s);return new He(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Wt);var n=e?Xt:Lt,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var s=i.length,o=new Array(s),a=new Array(s),h=new Array(s),u=0;u<s;++u){var l=r[u],c=i[u],f=c.length,p=Vt(t.call(l,l&&l.__data__,u,r)),d=p.length,g=a[u]=new Array(d),_=o[u]=new Array(d);n(l,c,g,_,h[u]=new Array(f),p,e);for(var y,m,v=0,w=0;v<d;++v)if(y=g[v]){for(v>=w&&(w=v+1);!(m=_[w])&&++w<d;);y._next=m||null}}return(o=new He(o,r))._enter=a,o._exit=h,o},enter:function(){return new He(this._enter||this._groups.map(It),this._parents)},exit:function(){return new He(this._exit||this._groups.map(It),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,s=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?s.remove():n(s),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),h=0;h<o;++h)for(var u,l=n[h],c=r[h],f=l.length,p=a[h]=new Array(f),d=0;d<f;++d)(u=l[d]||c[d])&&(p[d]=u);for(;h<i;++h)a[h]=n[h];return new He(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],s=i.length-1,o=i[s];--s>=0;)(r=i[s])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ft);for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o,a=n[s],h=a.length,u=i[s]=new Array(h),l=0;l<h;++l)(o=a[l])&&(u[l]=o);u.sort(e)}return new He(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,s=e[n],o=0,a=s.length;o<a;++o)(i=s[o])&&t.call(i,i.__data__,o,s);return this},attr:function(t,e){var n=kt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Zt:Yt:"function"==typeof e?n.local?Qt:Jt:n.local?Gt:Kt)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?ee:"function"==typeof e?re:ne)(t,e,n??"")):ie(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?se:"function"==typeof e?ae:oe)(t,e)):this.node()[t]},classed:function(t,e){var n=he(t+"");
vendor: 5,041 bytes, line 2
2if(arguments.length<2){for(var r=ue(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?ge:e?pe:de)(n,e))},text:function(t){return arguments.length?this.each(null==t?_e:("function"==typeof t?me:ye)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ve:("function"==typeof t?$e:we)(t)):this.node().innerHTML},raise:function(){return this.each(be)},lower:function(){return this.each(Ae)},append:function(t){var e="function"==typeof t?t:Ct(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Ct(t),r=null==e?xe:"function"==typeof e?e:Tt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Ee)},clone:function(t){return this.select(t?ke:Se)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,s=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?Ne:Me,r=0;r<o;++r)this.each(a(s[r],e,n));return this}var a=this.node().__on;if(a)for(var h,u=0,l=a.length;u<l;++u)for(r=0,h=a[u];r<o;++r)if((i=s[r]).type===h.type&&i.name===h.name)return h.value},dispatch:function(t,e){return this.each(("function"==typeof e?Te:Pe)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],s=0,o=i.length;s<o;++s)(r=i[s])&&(yield r)}};var je=.7,ze=1/je,Ie="\\s*([+-]?\\d+)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xe=/^#([0-9a-f]{3,8})$/,We=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Ve=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Fe=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${De}\\)$`),Ye=new RegExp(`^rgba\\(${Le},${Le},${Le},${De}\\)$`),Ze=new RegExp(`^hsl\\(${De},${Le},${Le}\\)$`),Ke=new RegExp(`^hsla\\(${De},${Le},${Le},${De}\\)$`),Ge={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};function Je(){return this.rgb().formatHex()}function Qe(){return this.rgb().formatRgb()}function tn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Xe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?en(e):3===n?
vendor: 5,824 bytes, line 2
2new sn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?nn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?nn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=We.exec(t))?new sn(e[1],e[2],e[3],1):(e=Ve.exec(t))?new sn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Fe.exec(t))?nn(e[1],e[2],e[3],e[4]):(e=Ye.exec(t))?nn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ze.exec(t))?cn(e[1],e[2]/100,e[3]/100,1):(e=Ke.exec(t))?cn(e[1],e[2]/100,e[3]/100,e[4]):Ge.hasOwnProperty(t)?en(Ge[t]):"transparent"===t?new sn(NaN,NaN,NaN,0):null}function en(t){return new sn(t>>16&255,t>>8&255,255&t,1)}function nn(t,e,n,r){return r<=0&&(t=e=n=NaN),new sn(t,e,n,r)}function rn(t,e,n,r){return 1===arguments.length?function(t){return t instanceof Be||(t=tn(t)),t?new sn((t=t.rgb()).r,t.g,t.b,t.opacity):new sn}(t):new sn(t,e,n,r??1)}function sn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function on(){return`#${ln(this.r)}${ln(this.g)}${ln(this.b)}`}function an(){const t=hn(this.opacity);return`${1===t?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${1===t?")":`, ${t})`}`}function hn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function un(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ln(t){return((t=un(t))<16?"0":"")+t.toString(16)}function cn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new pn(t,e,n,r)}function fn(t){if(t instanceof pn)return new pn(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=tn(t)),!t)return new pn;if(t instanceof pn)return t;var e=(t=t.rgb()).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,h=(s+i)/2;return a?(o=e===s?(n-r)/a+6*(n<r):n===s?(r-e)/a+2:(e-n)/a+4,a/=h<.5?s+i:2-s-i,o*=60):a=h>0&&h<1?0:o,new pn(o,a,h,t.opacity)}function pn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function dn(t){return(t=(t||0)%360)<0?t+360:t}function gn(t){return Math.max(0,Math.min(1,t||0))}function _n(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}qe(Be,tn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Je,formatHex:Je,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fn(this).formatHsl()},formatRgb:Qe,toString:Qe}),qe(sn,rn,Re(Be,{brighter(t){return t=null==t?ze:Math.pow(ze,t),new sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?je:Math.pow(je,t),new sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new sn(un(this.r),un(this.g),un(this.b),hn(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:on,formatHex:on,formatHex8:function(){return`#${ln(this.r)}${ln(this.g)}${ln(this.b)}${ln(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:an,toString:an})),qe(pn,function(t,e,n,r){return 1===arguments.length?fn(t):new pn(t,e,n,r??1)},Re(Be,{brighter(t){return t=null==t?ze:Math.pow(ze,t),new pn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?je:Math.pow(je,t),new pn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),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 sn(_n(t>=240?t-240:t+120,i,r),_n(t,i,r),_n(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new pn(dn(this.h),gn(this.s),gn(this.l),hn(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=hn(this.opacity);return`${1===t?"hsl(":"hsla("}${dn(this.h)}, ${100*gn(this.s)}%, ${100*gn(this.l)}%${1===t?")":`, ${t})`}`}}));var yn=t=>()=>t;function mn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):yn(isNaN(t)?e:t)}var vn=function t(e){var n=function(t){return 1==(t=+t)?mn:function(e,n){return n-e?function(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)}}(e,n,t):yn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=rn(t)).r,(e=rn(e)).r),i=n(t.g,e.g),s=n(t.b,e.b),o=mn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=s(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function wn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var $n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bn=new RegExp($n.source,"g");function An(t,e){var n,r,i,s=$n.lastIndex=bn.lastIndex=0,o=-1,a=[],h=[];for(t+="",e+="";(n=$n.exec(t))&&(r=bn.exec(e));)(i=r.index)>s&&(i=e.slice(s,i),a[o]?a[o]+=i:a[++o]=i),(n=n[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,h.push({i:o,x:wn(n,r)})),s=bn.lastIndex;return s<e.length&&(i=e.slice(s),a[o]?a[o]+=i:a[++o]=i),a.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)a[(n=h[r]).i]=n.x(t);return a.join("")})}var xn,En=180/Math.PI,Sn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kn(t,e,n,r,i,s){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*n+e*r)&&(n-=t*h,r-=e*h),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,h/=a),t*r<e*n&&(t=-t,e=-e,h=-h,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*En,skewX:Math.atan(h)*En,scaleX:o,scaleY:a}}function Mn(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],h=[];return s=t(s),o=t(o),function(t,r,i,s,o,a){if(t!==i||r!==s){var h=o.push("translate(",null,e,null,n);a.push({i:h-4,x:wn(t,i)},{i:h-2,x:wn(r,s)})}else(i||s)&&o.push("translate("+i+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,h),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(i(n)+"rotate(",null,r)-2,x:wn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(s.rotate,o.rotate,a,h),function(t,e,n,s){t!==e?s.push({i:n.push(i(n)+"skewX(",
vendor: 8,165 bytes, line 2
2null,r)-2,x:wn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(s.skewX,o.skewX,a,h),function(t,e,n,r,s,o){if(t!==n||e!==r){var a=s.push(i(s)+"scale(",null,",",null,")");o.push({i:a-4,x:wn(t,n)},{i:a-2,x:wn(e,r)})}else 1===n&&1===r||s.push(i(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,h),s=o=null,function(t){for(var e,n=-1,r=h.length;++n<r;)a[(e=h[n]).i]=e.x(t);return a.join("")}}}var Nn,Cn,Pn=Mn(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Sn:kn(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Tn=Mn(function(t){return null==t?Sn:(xn||(xn=document.createElementNS("http://www.w3.org/2000/svg","g")),xn.setAttribute("transform",t),(t=xn.transform.baseVal.consolidate())?kn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Sn)},", ",")",")"),On=0,Hn=0,Un=0,qn=0,Rn=0,Bn=0,jn="object"==typeof performance&&performance.now?performance:Date,zn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function In(){return Rn||(zn(Dn),Rn=jn.now()+Bn)}function Dn(){Rn=0}function Ln(){this._call=this._time=this._next=null}function Xn(t,e,n){var r=new Ln;return r.restart(t,e,n),r}function Wn(){Rn=(qn=jn.now())+Bn,On=Hn=0;try{!function(){In(),++On;for(var t,e=Nn;e;)(t=Rn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--On}()}finally{On=0,function(){for(var t,e,n=Nn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Nn=e);Cn=t,Fn(r)}(),Rn=0}}function Vn(){var t=jn.now(),e=t-qn;e>1e3&&(Bn-=e,qn=t)}function Fn(t){On||(Hn&&(Hn=clearTimeout(Hn)),t-Rn>24?(t<1/0&&(Hn=setTimeout(Wn,t-jn.now()-Bn)),Un&&(Un=clearInterval(Un))):(Un||(qn=jn.now(),Un=setInterval(Vn,1e3)),On=1,zn(Wn)))}function Yn(t,e,n){var r=new Ln;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}Ln.prototype=Xn.prototype={constructor:Ln,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?In():+n)+(null==e?0:+e),this._next||Cn===this||(Cn?Cn._next=this:Nn=this,Cn=this),this._call=t,this._time=n,Fn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fn())}};var Zn=$t("start","end","cancel","interrupt"),Kn=[];function Gn(t,e,n,r,i,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(h){var u,l,c,f;if(1!==n.state)return a();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Yn(s);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[u])}if(Yn(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(h))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(c=n.tween.length),u=0,l=-1;u<c;++u)(f=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),s=-1,o=r.length;++s<o;)r[s].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Xn(function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:Zn,tween:Kn,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Jn(t,e){var n=tr(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Qn(t,e){var n=tr(t,e);if(n.state>3)throw new Error("too late; already running");return n}function tr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function er(t,e){var n,r;return function(){var i=Qn(this,t),s=i.tween;if(s!==n)for(var o=0,a=(r=n=s).length;o<a;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function nr(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var s=Qn(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},h=0,u=i.length;h<u;++h)if(i[h].name===e){i[h]=a;break}h===u&&i.push(a)}s.tween=i}}function rr(t,e,n){var r=t._id;return t.each(function(){var t=Qn(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tr(t,r).value[e]}}function ir(t,e){var n;return("number"==typeof e?wn:e instanceof tn?vn:(n=tn(e))?(e=n,vn):An)(t,e)}function sr(t){return function(){this.removeAttribute(t)}}function or(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ar(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===r?i:i=e(r=o,n)}}function hr(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===r?i:i=e(r=o,n)}}function ur(t,e,n){var r,i,s;return function(){var o,a,h=n(this);if(null!=h)return(o=this.getAttribute(t))===(a=h+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,h));this.removeAttribute(t)}}function lr(t,e,n){var r,i,s;return function(){var o,a,h=n(this);if(null!=h)return(o=this.getAttributeNS(t.space,t.local))===(a=h+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,h));this.removeAttributeNS(t.space,t.local)}}function cr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function fr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function pr(t,e){return function(){Jn(this,t).delay=+e.apply(this,arguments)}}function dr(t,e){return e=+e,function(){Jn(this,t).delay=e}}function gr(t,e){return function(){Qn(this,t).duration=+e.apply(this,arguments)}}function _r(t,e){return e=+e,function(){Qn(this,t).duration=e}}var yr=Ue.prototype.constructor;function mr(t){return function(){this.style.removeProperty(t)}}var vr=0;function wr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $r(){return++vr}var br=Ue.prototype;wr.prototype={constructor:wr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Tt(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a,h,u=r[o],l=u.length,c=s[o]=new Array(l),f=0;f<l;++f)(a=u[f])&&(h=t.call(a,a.__data__,f,u))&&("__data__"in a&&(h.__data__=a.__data__),c[f]=h,Gn(c[f],e,n,f,c,tr(a,n)));return new wr(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ht(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var h,u=r[a],l=u.length,c=0;c<l;++c)if(h=u[c]){for(var f,p=t.call(h,h.__data__,c,u),d=tr(h,n),g=0,_=p.length;g<_;++g)(f=p[g])&&Gn(f,e,n,g,p,d);s.push(p),o.push(h)}return new wr(s,o,e,n)},selectChild:br.selectChild,selectChildren:br.selectChildren,filter:function(t){"function"!=typeof t&&(t=Ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,h=r[i]=[],u=0;u<a;++u)(s=o[u])&&t.call(s,s.__data__,u,o)&&h.push(s);return new wr(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var h,u=e[a],l=n[a],c=u.length,f=o[a]=new Array(c),p=0;p<c;++p)(h=u[p]||l[p])&&(f[p]=h);for(;a<r;++a)o[a]=e[a];return new wr(o,this._parents,this._name,this._id)},selection:function(){return new yr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=$r(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],h=a.length,u=0;u<h;++u)if(o=a[u]){var l=tr(o,e);Gn(o,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new wr(r,this._parents,t,n)},call:br.call,nodes:br.nodes,node:br.node,size:br.size,empty:br.empty,each:br.each,on:function(t,e){var n=this._id;return arguments.length<2?tr(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,s=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>
2=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Jn:Qn;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=kt(t),r="transform"===n?Tn:ir;return this.attrTween(t,"function"==typeof e?(n.local?lr:ur)(n,r,rr(this,"attr."+t,e)):null==e?(n.local?or:sr)(n):(n.local?hr:ar)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=kt(t);return this.tween(n,(r.local?cr:fr)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Pn:ir;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var s=ie(this,t),o=(this.style.removeProperty(t),ie(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}(t,r)).on("end.style."+t,mr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,s;return function(){var o=ie(this,t),a=n(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=ie(this,t)),o===h?null:o===r&&h===i?s:(i=h,s=e(r=o,a))}}(t,r,rr(this,"style."+t,e))).each(function(t,e){var n,r,i,s,o="style."+e,a="end."+o;return function(){var h=Qn(this,t),u=h.on,l=null==h.value[o]?s||(s=mr(e)):void 0;u===n&&i===l||(r=(n=u).copy()).on(a,i=l),h.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,s=n+"";return function(){var o=ie(this,t);return o===s?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function s(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,s,n)),r}return s._value=e,s}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(rr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=tr(this.node(),n).tween,s=0,o=i.length;s<o;++s)if((r=i[s]).name===t)return r.value;return null}return this.each((null==e?er:nr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?pr:dr)(e,t)):tr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?gr:_r)(e,t)):tr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Qn(this,t).ease=e}}(e,t)):tr(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Qn(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},h={value:function(){0==--i&&s()}};n.each(function(){var n=Qn(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(h)),n.on=e}),0===i&&s()})},[Symbol.iterator]:br[Symbol.iterator]};var Ar,xr,Er,Sr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function kr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Mr(t,e,n){this.k=t,this.x=e,this.y=n}Ue.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,i,s=t.__transition,o=!0;if(s){for(i in e=null==e?null:e+"",s)(n=s[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[i]):o=!1;o&&delete t.__transition}}(this,t)})},Ue.prototype.transition=function(t){var e,n;t instanceof wr?(e=t._id,t=t._name):(e=$r(),(n=Sr).time=In(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],h=a.length,u=0;u<h;++u)(o=a[u])&&Gn(o,t,e,u,a,n||kr(o,e));return new wr(r,this._parents,t,e)},Mr.prototype={constructor:Mr,scale:function(t){return 1===t?this:new Mr(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Mr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Mr.prototype;let Nr=class extends((0,r.Iz)((0,r.ST)((0,r.GB)((0,r.Zd)((0,r.uX)((0,r.I3)((0,r.l9)(r.Ay)))))))){constructor(){super(...arguments),Ar.set(this,void 0),xr.set(this,void 0),Er.set(this,void 0)}connectedCallback(){super.connectedCallback();const t=parseInt(this.getAttribute("numberofticks")||"",10);this.numberOfTicks=Number.isInteger(t)?t:3,this.addEventListener("load",t=>{this.data=t.detail.payload})}get data(){return this.sequence||""}set data(t){"string"==typeof t?this.sequence=t:"string"==typeof(null==t?void 0:t.sequence)&&(this.sequence=t.sequence),this.svg&&(this.updateScaleDomain(),this.applyZoomTranslation())}getCharSize(){var t,e;if(!this.seq_g)return;const n=this.seq_g.select("text.base").node();if(n)this.chWidth=.8*n.getBBox().width,this.chHeight=1.6*n.getBBox().height;else{const n=this.seq_g.append("text").attr("class","base").text("T");this.chWidth=.8*((null===(t=n.node())||void 0===t?void 0:t.getBBox().width)||0),this.chHeight=1.6*((null===(e=n.node())||void 0===e?void 0:e.getBBox().height)||0),n.remove()}}createSequence(){var t,e,n;this.svg=function(t){return"string"==typeof t?new He([[document.querySelector(t)]],[document.documentElement]):new He([[t]],Oe)}(this).selectAll("svg").attr("id","").attr("width",this.width).attr("height",this.height),o(this,Ar,null===(t=this.svg)||void 0===t?void 0:t.append("g").attr("class","background"),"f"),o(this,xr,null===(e=this.svg)||void 0===e?void 0:e.append("g").attr("class","x axis"),"f"),this.seq_g=null===(n=this.svg)||void 0===n?void 0:n.append("g").attr("class","sequence").attr("transform",`translate(0,${this["margin-top"]+.75*this.getHeightWithMargins()})`),this.highlighted=this.svg.append("g").attr("class","highlighted"),this.margins=this.svg.append("g").attr("class","margin"),this.sequence&&(this.updateScaleDomain(),this.applyZoomTranslation())}firstUpdated(){this.createSequence()}zoomRefreshed(){this.renderD3()}renderD3(){var t,e,n,i;if(this.getCharSize(),null===(t=this.svg)||void 0===t||t.attr("width",this.width).attr("height",this.height),s(this,xr,"f")){const t=this.getSingleBaseWidth(),a=t-(this.chWidth||0),h=t/2,u=Math.floor(Math.max(0,this.get
2Start()-1)),l=Math.ceil(Math.min((null===(e=this.sequence)||void 0===e?void 0:e.length)||0,this.getEnd())),c=a<0?[]:(null===(n=this.sequence)||void 0===n?void 0:n.slice(u,l).split("").map((t,e)=>({position:1+u+e,aa:t})))||[];if(this.height>(this.chWidth||0)&&this.xScale){const t=(i=this.xScale,vt(0,i)).tickFormat(t=>`${Number.isInteger(t)?t:""}`).ticks(this.numberOfTicks,"s");s(this,xr,"f").call(t)}s(this,xr,"f").attr("transform",`translate(${h},${this["margin-top"]})`),s(this,xr,"f").select(".domain").remove(),s(this,xr,"f").selectAll(".tick line").remove(),s(this,xr,"f").selectAll(".tick text").attr("y",2);const f=Math.max(10,this.chWidth||10,Math.min(this["margin-top"]+.25*this.getHeightWithMargins(),t-2));if(s(this,xr,"f").selectAll(".tick text").attr("font-size",f),this.seq_g){this.seq_g.attr("transform",`translate(0,${this["margin-top"]+.75*this.getHeightWithMargins()})`),o(this,Er,this.seq_g.selectAll("text.base"),"f");const e=s(this,Er,"f").data(c,t=>t.position);if(e.enter().append("text").attr("class","base").attr("text-anchor","middle").attr("x",t=>this.getXFromSeqPosition(t.position)+h).text(t=>t.aa).attr("font-size",f).style("pointer-events","none").style("font-family","monospace"),e.exit().remove(),e.attr("font-size",f).attr("x",t=>this.getXFromSeqPosition(t.position)+h),s(this,Ar,"f")){const e=s(this,Ar,"f").selectAll("rect.base_bg").data(c,t=>t.position);e.enter().append("rect").attr("class","base_bg feature").attr("height",this.getHeightWithMargins()).attr("width",t).attr("fill",t=>Math.round(t.position)%2?"#ccc":"#eee").attr("x",t=>this.getXFromSeqPosition(t.position)).attr("y",this["margin-top"]).style("opacity",Math.min(1,a)).call(r.vY,this),e.attr("width",t).attr("fill",t=>Math.round(t.position)%2?"#ccc":"#eee").attr("height",this.getHeightWithMargins()).attr("x",t=>this.getXFromSeqPosition(t.position)).attr("y",this["margin-top"]),e.exit().remove(),this.seq_g.style("opacity",Math.min(1,a)),e.style("opacity",Math.min(1,a))}}this.updateHighlight(),this.renderMarginOnGroup(this.margins)}}getStart(){return this["display-start"]||1}getEnd(){return((this["display-end"]||0)>0?this["display-end"]:this.length)||0}updateHighlight(){if(!this.highlighted)return;const t=this.highlighted.selectAll("rect").data(this.highlightedRegion.segments);t.enter().append("rect").style("pointer-events","none").merge(t).attr("fill",this["highlight-color"]).attr("height",this.height).attr("x",t=>this.getXFromSeqPosition(t.start)).attr("width",t=>Math.max(0,this.getSingleBaseWidth()*(t.end-t.start+1))),t.exit().remove()}render(){return F`<svg class="container"></svg>`}};var Cr;Ar=new WeakMap,xr=new WeakMap,Er=new WeakMap,i([(Cr={type:String},(t,e)=>"object"==typeof e?ft(Cr,t,e):((t,e,n)=>{const r=e.hasOwnProperty(n);return e.constructor.createProperty(n,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,n):void 0})(Cr,t,e))],Nr.prototype,"sequence",void 0),Nr=i([(0,r.f2)("nightingale-sequence")],Nr);var Pr=Nr}}]);
3//# sourceMappingURL=modern.9394.80d6ae.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.