PageSourceSearch

https://www.uniprot.org/modern.2022.5ab722.js

js uniprot.org collected 2026-09-24 08:34:44 UTC 82,083 bytes, 3 lines download raw bytes

1/*! For license information please see modern.2022.5ab722.js.LICENSE.txt */
2"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[2022],{42022(t,e,n){n.d(e,{A:()=>es});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,u=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),l=new WeakMap;let c=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==h)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(u&&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=u?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,h))(e)})(t):t,{is:p,defineProperty:d,getOwnPropertyDescriptor:g,getOwnPropertyNames:m,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,_=globalThis,w=_.trustedTypes,b=w?w.emptyScript:"",$=_.reactiveElementPolyfillSupport,A=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b: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}},M=(t,e)=>!p(t,e),E={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:M};Symbol.metadata??=Symbol("metadata"),_.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=E){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)??E}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=v(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=[...m(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(u)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??M)(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,$?.({ReactiveElement:k}),(_.reactiveElementVersions??=[]).push("2.0.4");const S=globalThis,N=S.trustedTypes,C=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+T,U=`<${O}>`,H=document,R=()=>H.createComment(""),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,D="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,q=/>/g,B=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,V=/"/g,W=/^(?:script|style|textarea|title)$/i,Y=(t,...e)=>({_$litType$:1,strings:t,values:e}
2),F=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),G=new WeakMap,Z=H.createTreeWalker(H,129);function J(t,e){if(!j(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,[u,h]=((t,e)=>{const n=t.length-1,r=[];let i,s=2===e?"<svg>":3===e?"<math>":"",o=I;for(let e=0;e<n;e++){const n=t[e];let a,u,h=-1,l=0;for(;l<n.length&&(o.lastIndex=l,u=o.exec(n),null!==u);)l=o.lastIndex,o===I?"!--"===u[1]?o=L:void 0!==u[1]?o=q:void 0!==u[2]?(W.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=B):void 0!==u[3]&&(o=B):o===B?">"===u[0]?(o=i??I,h=-1):void 0===u[1]?h=-2:(h=o.lastIndex-u[2].length,a=u[1],o=void 0===u[3]?B:'"'===u[3]?V:X):o===V||o===X?o=B:o===L||o===q?o=I:(o=B,i=void 0);const c=o===B&&t[e+1].startsWith("/>")?" ":"";s+=o===I?n+U:h>=0?(r.push(a),n.slice(0,h)+P+n.slice(h)+T+c):n+T+(-2===h?e:c)}return[J(t,s+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=Q.createElement(u,n),Z.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Z.nextNode())&&a.length<o;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(P)){const e=h[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(W.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],R()),Z.nextNode(),a.push({type:2,index:++i});r.append(t[e],R())}}}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=H.createElement("template");return n.innerHTML=t,n}}function tt(t,e,n=t,r){if(e===F)return e;let i=void 0!==r?n._$Co?.[r]:n._$Cl;const s=z(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??H).importNode(e,!0);Z.currentNode=r;let i=Z.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=Z.nextNode(),s++)}return Z.currentNode=H,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=K,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),z(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(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!==K&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.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=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new Q(t)),e}k(t){j(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(R()),this.O(R()),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=K,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=K}_$AI(t,e=this,n,r){const i=this.strings;let s=!1;if(void 0===i)t=tt(this,t,e,0),s=!z(t)||t!==this._$AH&&t!==F,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===F&&(a=this._$AH[o]),s||=!z(a)||a!==this._$AH[o],a===K?t=K:t!==K&&(t+=(a??"")+i[o+1]),this._$AH[o]=a}s&&!r&&this.j(t)}j(t){t===K?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===K?void 0:t}}class st extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}}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)??K)===F)return;const n=this._$AH,r=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==K&&(n===K||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 ut=S.litHtmlPolyfillSupport;ut?.(Q,nt),(S.litHtmlVersions??=[]).push("3.2.1");let ht=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(R(),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 F}};ht._$litElement$=!0,ht.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ht});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:ht}),(globalThis.litElementVersions??=[]).push("4.1.1");const ct={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:M},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(e,n)=>"object"==typeof n?ft(t,e,n):((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})(t,e,n)}function dt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gt(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mt(t){let e,n,r;function i(t,r,i=0,s=t.length){if(i<s){if(0!==e(r,r))return s;do{const e=i+s>>>1;n(t[e],r)<0?i=e+1:s=e}while(i<s)}return i}return 2!==t.length?(e=dt,n=(e,n)=>dt(t(e),n),r=(e,n)=>t(e)-n):(e=t===dt||t===gt?t:yt,n=t,r=t),{left:i,center:function(t,e,n=0,s=t.length){const o=i(t,e,n,s-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r,i=0,s=t.length){if(i<s){if(0!==e(r,r))return s;do{const e=i+s>>>1;n(t[e],r)<=0?i=e+1:s=e}while(i<s)}return i}}}function yt(){return 0}const vt=mt(dt).right;mt(function(t){return null===t?NaN:+t}).center;const _t=Math.sqrt(50),wt=Math.sqrt(10),bt=Math.sqrt(2);function $t(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>=_t?10:s>=wt?5:s>=bt?2:1;let a,u,h;return i<0?(h=Math.pow(10,-i)/o,a=Math.round(t*h),u=Math.round(e*h),a/h<t&&++a,u/h>e&&--u,h=-h):(h=Math.pow(10,i)*o,a=Math.round(t/h),u=Math.round(e/h),a*h<t&&++a,u*h>e&&--u),u<a&&.5<=n&&n<2?$t(t,e,2*n):[a,u,h]}function At(t,e,n){return $t(t=+t,e=+e,n=+n)[2]}function xt(t){return t}var Mt=1e-6;function Et(t){return"translate("+t+",0)"}function kt(t){return e=>+t(e)}function St(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Nt(){return!this.__axis}
vendor: 8,946 bytes, line 2
2function Ct(t,e){var n=[],r=null,i=null,s=6,o=6,a=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,h=Et;function l(t){var l=r??(e.ticks?e.ticks.apply(e,n):e.domain()),c=i??(e.tickFormat?e.tickFormat.apply(e,n):xt),f=Math.max(s,0)+a,p=e.range(),d=+p[0]+u,g=+p[p.length-1]+u,m=(e.bandwidth?St:kt)(e.copy(),u),y=t.selection?t.selection():t,v=y.selectAll(".domain").data([null]),_=y.selectAll(".tick").data(l,e).order(),w=_.exit(),b=_.enter().append("g").attr("class","tick"),$=_.select("line"),A=_.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(b),$=$.merge(b.append("line").attr("stroke","currentColor").attr("y2",1*s)),A=A.merge(b.append("text").attr("fill","currentColor").attr("y",1*f).attr("dy","0.71em")),t!==y&&(v=v.transition(t),_=_.transition(t),$=$.transition(t),A=A.transition(t),w=w.transition(t).attr("opacity",Mt).attr("transform",function(t){return isFinite(t=m(t))?h(t+u):this.getAttribute("transform")}),b.attr("opacity",Mt).attr("transform",function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:m(t))+u)})),w.remove(),v.attr("d",o?"M"+d+","+1*o+"V"+u+"H"+g+"V"+1*o:"M"+d+","+u+"H"+g),_.attr("opacity",1).attr("transform",function(t){return h(m(t)+u)}),$.attr("y2",1*s),A.attr("y",1*f).text(c),y.filter(Nt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","middle"),y.each(function(){this.__axis=m})}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?(u=+t,l):u},l}var Pt={value:()=>{}};function Tt(){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 Ot(r)}function Ot(t){this._=t}function Ut(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Ht(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Pt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Ot.prototype=Tt.prototype={constructor:Ot,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]=Ht(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Ht(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=s[o]).type)&&(n=Ut(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ot(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 Rt="http://www.w3.org/1999/xhtml",zt={svg:"http://www.w3.org/2000/svg",xhtml:Rt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zt.hasOwnProperty(e)?{space:zt[e],local:t}:t}function Dt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Rt&&e.documentElement.namespaceURI===Rt?e.createElement(t):e.createElementNS(n,t)}}function It(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Lt(t){var e=jt(t);return(e.local?It:Dt)(e)}function qt(){}function Bt(t){return null==t?qt:function(){return this.querySelector(t)}}function Xt(){return[]}function Vt(t){return null==t?Xt:function(){return this.querySelectorAll(t)}}function Wt(t){return function(){return this.matches(t)}}function Yt(t){return function(e){return e.matches(t)}}var Ft=Array.prototype.find;function Kt(){return this.firstElementChild}var Gt=Array.prototype.filter;function Zt(){return Array.from(this.children)}function Jt(t){return new Array(t.length)}function Qt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function te(t,e,n,r,i,s){for(var o,a=0,u=e.length,h=s.length;a<h;++a)(o=e[a])?(o.__data__=s[a],r[a]=o):n[a]=new Qt(t,s[a]);for(;a<u;++a)(o=e[a])&&(i[a]=o)}function ee(t,e,n,r,i,s,o){var a,u,h,l=new Map,c=e.length,f=s.length,p=new Array(c);for(a=0;a<c;++a)(u=e[a])&&(p[a]=h=o.call(u,u.__data__,a,e)+"",l.has(h)?i[a]=u:l.set(h,u));for(a=0;a<f;++a)h=o.call(t,s[a],a,s)+"",(u=l.get(h))?(r[a]=u,u.__data__=s[a],l.delete(h)):n[a]=new Qt(t,s[a]);for(a=0;a<c;++a)(u=e[a])&&l.get(p[a])===u&&(i[a]=u)}function ne(t){return t.__data__}function re(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ie(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function se(t){return function(){this.removeAttribute(t)}}function oe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function ue(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function he(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function le(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 ce(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fe(t){return function(){this.style.removeProperty(t)}}function pe(t,e,n){return function(){this.style.setProperty(t,e,n)}}function de(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function ge(t,e){return t.style.getPropertyValue(e)||ce(t).getComputedStyle(t,null).getPropertyValue(e)}function me(t){return function(){delete this[t]}}function ye(t,e){return function(){this[t]=e}}function ve(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function _e(t){return t.trim().split(/^|\s+/)}function we(t){return t.classList||new be(t)}function be(t){this._node=t,this._names=_e(t.getAttribute("class")||"")}function $e(t,e){for(var n=we(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Ae(t,e){for(var n=we(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function xe(t){return function(){$e(this,t)}}function Me(t){return function(){Ae(this,t)}}function Ee(t,e){return function(){(e.apply(this,arguments)?$e:Ae)(this,t)}}function ke(){this.textContent=""}function Se(t){return function(){this.textContent=t}}function Ne(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ce(){this.innerHTML=""}function Pe(t){return function(){this.innerHTML=t}}function Te(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Oe(){this.nextSibling&&this.parentNode.appendChild(this)}function Ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function He(){return null}function Re(){var t=this.parentNode;t&&t.removeChild(this)}function ze(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function je(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function De(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 Ie(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 Le(t,e,n){var r=ce(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.dis
vendor: 5,461 bytes, line 2
2patchEvent(i)}function qe(t,e){return function(){return Le(this,t,e)}}function Be(t,e){return function(){return Le(this,t,e.apply(this,arguments))}}Qt.prototype={constructor:Qt,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)}},be.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 Xe=[null];function Ve(t,e){this._groups=t,this._parents=e}function We(){return new Ve([[document.documentElement]],Xe)}function Ye(t){return"string"==typeof t?new Ve([[document.querySelector(t)]],[document.documentElement]):new Ve([[t]],Xe)}function Fe(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}Ve.prototype=We.prototype={constructor:Ve,select:function(t){"function"!=typeof t&&(t=Bt(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],u=a.length,h=r[i]=new Array(u),l=0;l<u;++l)(s=a[l])&&(o=t.call(s,s.__data__,l,a))&&("__data__"in s&&(o.__data__=s.__data__),h[l]=o);return new Ve(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):Vt(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o,a=e[s],u=a.length,h=0;h<u;++h)(o=a[h])&&(r.push(t.call(o,o.__data__,h,a)),i.push(o));return new Ve(r,i)},selectChild:function(t){return this.select(null==t?Kt:function(t){return function(){return Ft.call(this.children,t)}}("function"==typeof t?t:Yt(t)))},selectChildren:function(t){return this.selectAll(null==t?Zt:function(t){return function(){return Gt.call(this.children,t)}}("function"==typeof t?t:Yt(t)))},filter:function(t){"function"!=typeof t&&(t=Wt(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,u=r[i]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&u.push(s);return new Ve(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,ne);var n=e?ee:te,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),u=new Array(s),h=0;h<s;++h){var l=r[h],c=i[h],f=c.length,p=re(t.call(l,l&&l.__data__,h,r)),d=p.length,g=a[h]=new Array(d),m=o[h]=new Array(d);n(l,c,g,m,u[h]=new Array(f),p,e);for(var y,v,_=0,w=0;_<d;++_)if(y=g[_]){for(_>=w&&(w=_+1);!(v=m[w])&&++w<d;);y._next=v||null}}return(o=new Ve(o,r))._enter=a,o._exit=u,o},enter:function(){return new Ve(this._enter||this._groups.map(Jt),this._parents)},exit:function(){return new Ve(this._exit||this._groups.map(Jt),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),u=0;u<o;++u)for(var h,l=n[u],c=r[u],f=l.length,p=a[u]=new Array(f),d=0;d<f;++d)(h=l[d]||c[d])&&(p[d]=h);for(;u<i;++u)a[u]=n[u];return new Ve(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=ie);for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o,a=n[s],u=a.length,h=i[s]=new Array(u),l=0;l<u;++l)(o=a[l])&&(h[l]=o);h.sort(e)}return new Ve(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=jt(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?oe:se:"function"==typeof e?n.local?le:he:n.local?ue:ae)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?fe:"function"==typeof e?de:pe)(t,e,n??"")):ge(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?me:"function"==typeof e?ve:ye)(t,e)):this.node()[t]},classed:function(t,e){var n=_e(t+"");
vendor: 5,297 bytes, line 2
2if(arguments.length<2){for(var r=we(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Ee:e?xe:Me)(n,e))},text:function(t){return arguments.length?this.each(null==t?ke:("function"==typeof t?Ne:Se)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ce:("function"==typeof t?Te:Pe)(t)):this.node().innerHTML},raise:function(){return this.each(Oe)},lower:function(){return this.each(Ue)},append:function(t){var e="function"==typeof t?t:Lt(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Lt(t),r=null==e?He:"function"==typeof e?e:Bt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Re)},clone:function(t){return this.select(t?je:ze)},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?Ie:De,r=0;r<o;++r)this.each(a(s[r],e,n));return this}var a=this.node().__on;if(a)for(var u,h=0,l=a.length;h<l;++h)for(r=0,u=a[h];r<o;++r)if((i=s[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Be:qe)(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)}};const Ke={capture:!0,passive:!1};function Ge(t){t.preventDefault(),t.stopImmediatePropagation()}function Ze(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Je(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qe(){}var tn=.7,en=1/tn,nn="\\s*([+-]?\\d+)\\s*",rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",on=/^#([0-9a-f]{3,8})$/,an=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),un=new RegExp(`^rgb\\(${sn},${sn},${sn}\\)$`),hn=new RegExp(`^rgba\\(${nn},${nn},${nn},${rn}\\)$`),ln=new RegExp(`^rgba\\(${sn},${sn},${sn},${rn}\\)$`),cn=new RegExp(`^hsl\\(${rn},${sn},${sn}\\)$`),fn=new RegExp(`^hsla\\(${rn},${sn},${sn},${rn}\\)$`),pn={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 dn(){return this.rgb().formatHex()}function gn(){return this.rgb().formatRgb()}function mn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=on.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?yn(e):3===n?
vendor: 4,331 bytes, line 2
2new wn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?vn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?vn(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=an.exec(t))?new wn(e[1],e[2],e[3],1):(e=un.exec(t))?new wn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=hn.exec(t))?vn(e[1],e[2],e[3],e[4]):(e=ln.exec(t))?vn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cn.exec(t))?En(e[1],e[2]/100,e[3]/100,1):(e=fn.exec(t))?En(e[1],e[2]/100,e[3]/100,e[4]):pn.hasOwnProperty(t)?yn(pn[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function yn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function vn(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function _n(t,e,n,r){return 1===arguments.length?function(t){return t instanceof Qe||(t=mn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}(t):new wn(t,e,n,r??1)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function bn(){return`#${Mn(this.r)}${Mn(this.g)}${Mn(this.b)}`}function $n(){const t=An(this.opacity);return`${1===t?"rgb(":"rgba("}${xn(this.r)}, ${xn(this.g)}, ${xn(this.b)}${1===t?")":`, ${t})`}`}function An(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mn(t){return((t=xn(t))<16?"0":"")+t.toString(16)}function En(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Sn(t,e,n,r)}function kn(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);if(t instanceof Qe||(t=mn(t)),!t)return new Sn;if(t instanceof Sn)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,u=(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/=u<.5?s+i:2-s-i,o*=60):a=u>0&&u<1?0:o,new Sn(o,a,u,t.opacity)}function Sn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Nn(t){return(t=(t||0)%360)<0?t+360:t}function Cn(t){return Math.max(0,Math.min(1,t||0))}function Pn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ze(Qe,mn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:dn,formatHex:dn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return kn(this).formatHsl()},formatRgb:gn,toString:gn}),Ze(wn,_n,Je(Qe,{brighter(t){return t=null==t?en:Math.pow(en,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wn(xn(this.r),xn(this.g),xn(this.b),An(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:bn,formatHex:bn,formatHex8:function(){return`#${Mn(this.r)}${Mn(this.g)}${Mn(this.b)}${Mn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$n,toString:$n})),Ze(Sn,function(t,e,n,r){return 1===arguments.length?kn(t):new Sn(t,e,n,r??1)},Je(Qe,{brighter(t){return t=null==t?en:Math.pow(en,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new Sn(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 wn(Pn(t>=240?t-240:t+120,i,r),Pn(t,i,r),Pn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Sn(Nn(this.h),Cn(this.s),Cn(this.l),An(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=An(this.opacity);return`${1===t?"hsl(":"hsla("}${Nn(this.h)}, ${100*Cn(this.s)}%, ${100*Cn(this.l)}%${1===t?")":`, ${t})`}`}}));var Tn=t=>()=>t;function On(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Tn(isNaN(t)?e:t)}var Un=function t(e){var n=function(t){return 1==(t=+t)?On: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):Tn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=_n(t)).r,(e=_n(e)).r),i=n(t.g,e.g),s=n(t.b,e.b),o=On(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 Hn(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(s){for(n=0;n<r;
vendor: 5,634 bytes, line 2
2++n)i[n]=t[n]*(1-s)+e[n]*s;return i}}function Rn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,s=new Array(i),o=new Array(r);for(n=0;n<i;++n)s[n]=Bn(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=s[n](t);return o}}function zn(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function jn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Dn(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Bn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var In=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ln=new RegExp(In.source,"g");function qn(t,e){var n,r,i,s=In.lastIndex=Ln.lastIndex=0,o=-1,a=[],u=[];for(t+="",e+="";(n=In.exec(t))&&(r=Ln.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,u.push({i:o,x:jn(n,r)})),s=Ln.lastIndex;return s<e.length&&(i=e.slice(s),a[o]?a[o]+=i:a[++o]=i),a.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)a[(n=u[r]).i]=n.x(t);return a.join("")})}function Bn(t,e){var n,r=typeof e;return null==e||"boolean"===r?Tn(e):("number"===r?jn:"string"===r?(n=mn(e))?(e=n,Un):qn:e instanceof mn?Un:e instanceof Date?zn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Hn:Array.isArray(e)?Rn:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Dn:jn)(t,e)}function Xn(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Vn,Wn=180/Math.PI,Yn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fn(t,e,n,r,i,s){var o,a,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Wn,skewX:Math.atan(u)*Wn,scaleX:o,scaleY:a}}function Kn(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],u=[];return s=t(s),o=t(o),function(t,r,i,s,o,a){if(t!==i||r!==s){var u=o.push("translate(",null,e,null,n);a.push({i:u-4,x:jn(t,i)},{i:u-2,x:jn(r,s)})}else(i||s)&&o.push("translate("+i+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,u),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:jn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(s.rotate,o.rotate,a,u),function(t,e,n,s){t!==e?s.push({i:n.push(i(n)+"skewX(",null,r)-2,x:jn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(s.skewX,o.skewX,a,u),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:jn(t,n)},{i:a-2,x:jn(e,r)})}else 1===n&&1===r||s.push(i(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,u),s=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)a[(e=u[n]).i]=e.x(t);return a.join("")}}}var Gn,Zn,Jn=Kn(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Yn:Fn(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Qn=Kn(function(t){return null==t?Yn:(Vn||(Vn=document.createElementNS("http://www.w3.org/2000/svg","g")),Vn.setAttribute("transform",t),(t=Vn.transform.baseVal.consolidate())?Fn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Yn)},", ",")",")"),tr=0,er=0,nr=0,rr=0,ir=0,sr=0,or="object"==typeof performance&&performance.now?performance:Date,ar="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ur(){return ir||(ar(hr),ir=or.now()+sr)}function hr(){ir=0}function lr(){this._call=this._time=this._next=null}function cr(t,e,n){var r=new lr;return r.restart(t,e,n),r}function fr(){ir=(rr=or.now())+sr,tr=er=0;try{!function(){ur(),++tr;for(var t,e=Gn;e;)(t=ir-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tr}()}finally{tr=0,function(){for(var t,e,n=Gn,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:Gn=e);Zn=t,dr(r)}(),ir=0}}function pr(){var t=or.now(),e=t-rr;e>1e3&&(sr-=e,rr=t)}function dr(t){tr||(er&&(er=clearTimeout(er)),t-ir>24?(t<1/0&&(er=setTimeout(fr,t-or.now()-sr)),nr&&(nr=clearInterval(nr))):(nr||(rr=or.now(),nr=setInterval(pr,1e3)),tr=1,ar(fr)))}function gr(t,e,n){var r=new lr;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}lr.prototype=cr.prototype={constructor:lr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ur():+n)+(null==e?0:+e),this._next||Zn===this||(Zn?Zn._next=this:Gn=this,Zn=this),this._call=t,this._time=n,dr()},stop:function(){this._call&&(this._call=null,this._time=1/0,dr())}};var mr=Tt("start","end","cancel","interrupt"),yr=[];function vr(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(u){var h,l,c,f;if(1!==n.state)return a();for(h in i)if((f=i[h]).name===n.name){if(3===f.state)return gr(s);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[h]):+h<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[h])}if(gr(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))}),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),h=0,l=-1;h<c;++h)(f=n.tween[h].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
vendor: 14,767 bytes, line 2
2),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=cr(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:mr,tween:yr,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function _r(t,e){var n=br(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function wr(t,e){var n=br(t,e);if(n.state>3)throw new Error("too late; already running");return n}function br(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function $r(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}}function Ar(t,e){var n,r;return function(){var i=wr(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 xr(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var s=wr(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},u=0,h=i.length;u<h;++u)if(i[u].name===e){i[u]=a;break}u===h&&i.push(a)}s.tween=i}}function Mr(t,e,n){var r=t._id;return t.each(function(){var t=wr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return br(t,r).value[e]}}function Er(t,e){var n;return("number"==typeof e?jn:e instanceof mn?Un:(n=mn(e))?(e=n,Un):qn)(t,e)}function kr(t){return function(){this.removeAttribute(t)}}function Sr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nr(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 Cr(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 Pr(t,e,n){var r,i,s;return function(){var o,a,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(a=u+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,u));this.removeAttribute(t)}}function Tr(t,e,n){var r,i,s;return function(){var o,a,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(a=u+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}function Or(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 Ur(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 Hr(t,e){return function(){_r(this,t).delay=+e.apply(this,arguments)}}function Rr(t,e){return e=+e,function(){_r(this,t).delay=e}}function zr(t,e){return function(){wr(this,t).duration=+e.apply(this,arguments)}}function jr(t,e){return e=+e,function(){wr(this,t).duration=e}}var Dr=We.prototype.constructor;function Ir(t){return function(){this.style.removeProperty(t)}}var Lr=0;function qr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Br(){return++Lr}var Xr=We.prototype;qr.prototype={constructor:qr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Bt(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a,u,h=r[o],l=h.length,c=s[o]=new Array(l),f=0;f<l;++f)(a=h[f])&&(u=t.call(a,a.__data__,f,h))&&("__data__"in a&&(u.__data__=a.__data__),c[f]=u,vr(c[f],e,n,f,c,br(a,n)));return new qr(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Vt(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var u,h=r[a],l=h.length,c=0;c<l;++c)if(u=h[c]){for(var f,p=t.call(u,u.__data__,c,h),d=br(u,n),g=0,m=p.length;g<m;++g)(f=p[g])&&vr(f,e,n,g,p,d);s.push(p),o.push(u)}return new qr(s,o,e,n)},selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:function(t){"function"!=typeof t&&(t=Wt(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,u=r[i]=[],h=0;h<a;++h)(s=o[h])&&t.call(s,s.__data__,h,o)&&u.push(s);return new qr(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 u,h=e[a],l=n[a],c=h.length,f=o[a]=new Array(c),p=0;p<c;++p)(u=h[p]||l[p])&&(f[p]=u);for(;a<r;++a)o[a]=e[a];return new qr(o,this._parents,this._name,this._id)},selection:function(){return new Dr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Br(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],u=a.length,h=0;h<u;++h)if(o=a[h]){var l=br(o,e);vr(o,t,n,h,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new qr(r,this._parents,t,n)},call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:function(t,e){var n=this._id;return arguments.length<2?br(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>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?_r:wr;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=jt(t),r="transform"===n?Qn:Er;return this.attrTween(t,"function"==typeof e?(n.local?Tr:Pr)(n,r,Mr(this,"attr."+t,e)):null==e?(n.local?Sr:kr)(n):(n.local?Cr:Nr)(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=jt(t);return this.tween(n,(r.local?Or:Ur)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Jn:Er;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var s=ge(this,t),o=(this.style.removeProperty(t),ge(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}(t,r)).on("end.style."+t,Ir(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,s;return function(){var o=ge(this,t),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(t),u=a=ge(this,t)),o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a))}}(t,r,Mr(this,"style."+t,e))).each(function(t,e){var n,r,i,s,o="style."+e,a="end."+o;return function(){var u=wr(this,t),h=u.on,l=null==u.value[o]?s||(s=Ir(e)):void 0;h===n&&i===l||(r=(n=h).copy()).on(a,i=l),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,s=n+"";return function(){var o=ge(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??""}}(Mr(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=br(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?Ar:xr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Hr:Rr)(e,t)):br(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zr:jr)(e,t)):br(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(){wr(this,t).ease=e}}(e,t)):br(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;wr(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},u={value:function(){0==--i&&s()}};n.each(function(){var n=wr(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),n.on=e}),0===i&&s()})},[Symbol.iterator]:Xr[Symbol.iterator]};var Vr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Wr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}We.prototype.interrupt=function(t){return this.each(function(){$r(this,t)})},We.prototype.transition=function(t){var e,n;t instanceof qr?(e=t._id,t=t._name):(e=Br(),(n=Vr).time=ur(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],u=a.length,h=0;h<u;++h)(o=a[h])&&vr(o,t,e,h,a,n||Wr(o,e));return new qr(r,this._parents,t,e)};var Yr=t=>()=>t;function Fr(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Kr(t){t.preventDefault(),t.stopImmediatePropagation()}var Gr={name:"drag"},Zr={name:"space"},Jr={name:"handle"},Qr={name:"center"};const{abs:ti,max:ei,min:ni}=Math;function ri(t){return[+t[0],+t[1]]}function ii(t){return[ri(t[0]),ri(t[1])]}var si={name:"x",handles:["w","e"].map(fi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},oi={name:"y",handles:["n","s"].map(fi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ai={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ui={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},hi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},li={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ci={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function fi(t){return{type:t}}function pi(t){return!t.ctrlKey&&!t.button}function di(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function gi(){return navigator.maxTouchPoints||"ontouchstart"in this}function mi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function yi(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 vi(t){return(t=yi(Math.abs(t)))?t[1]:NaN}var _i,wi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bi(t){if(!(e=wi.exec(t)))throw new Error("invalid format: "+t);var e;return new $i({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]})}function $i(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ai(t,e){var n=yi(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")}bi.prototype=$i.prototype,$i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var xi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},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)=>Ai(100*t,e),r:Ai,s:function(t,e){var n=yi(t,e);if(!n)return t+"";var r=n[0],i=n[1],s=i-(_i=3*Math.max(-8,Math.min(8,Math.floor(i/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")+yi(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Mi(t){return t}var Ei,ki,Si,Ni=Array.prototype.map,Ci=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Ti(t){return+t}Ei=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Mi:(e=Ni.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,s=[],o=0,a=e[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),s.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=e[o=(o+1)%e.length];return s.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Mi:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Ni.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",h=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(t){var e=(t=bi(t)).fill,n=t.align,c=t.sign,f=t.symbol,p=t.zero,d=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):xi[v]||(void 0===m&&(m=12),y=!0,v="g"),(p||"0"===e&&"="===n)&&(p=!0,e="
20",n="=");var _="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===f?s:/[%p]/.test(v)?u:"",b=xi[v],$=/[defgprs%]/.test(v);function A(t){var i,s,u,f=_,A=w;if("c"===v)A=b(t)+A,t="";else{var x=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:b(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),x&&0==+t&&"+"!==c&&(x=!1),f=(x?"("===c?c:h:"-"===c||"("===c?"":c)+f,A=("s"===v?Ci[8+_i/3]:"")+A+(x&&"("===c?")":""),$)for(i=-1,s=t.length;++i<s;)if(48>(u=t.charCodeAt(i))||u>57){A=(46===u?o+t.slice(i+1):t.slice(i))+A,t=t.slice(0,i);break}}g&&!p&&(t=r(t,1/0));var M=f.length+t.length+A.length,E=M<d?new Array(d-M+1).join(e):"";switch(g&&p&&(t=r(E+t,E.length?d-A.length:1/0),E=""),n){case"<":t=f+t+A+E;break;case"=":t=f+E+t+A;break;case"^":t=E.slice(0,M=E.length>>1)+f+t+A+E.slice(M);break;default:t=E+f+t+A}return a(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),A.toString=function(){return t+""},A}return{format:c,formatPrefix:function(t,e){var n=c(((t=bi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(vi(e)/3))),i=Math.pow(10,-r),s=Ci[8+r/3];return function(t){return n(i*t)+s}}}}({thousands:",",grouping:[3],currency:["$",""]}),ki=Ei.format,Si=Ei.formatPrefix;var Oi,Ui,Hi,Ri,zi,ji,Di,Ii,Li,qi,Bi,Xi,Vi,Wi=[0,1];function Yi(t){return t}function Fi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ki(t,e,n){var r=t[0],i=t[1],s=e[0],o=e[1];return i<r?(r=Fi(i,r),s=n(o,s)):(r=Fi(r,i),s=n(s,o)),function(t){return s(r(t))}}function Gi(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),s=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Fi(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(e){var n=vt(t,e,1,r)-1;return s[n](i[n](e))}}function Zi(){var t=function(){var t,e,n,r,i,s,o=Wi,a=Wi,u=Bn,h=Yi;function l(){var t=Math.min(o.length,a.length);return h!==Yi&&(h=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(o[0],o[t-1])),r=t>2?Gi:Ki,i=s=null,c}function c(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),a,u)))(t(h(e)))}return c.invert=function(n){return h(e((s||(s=r(a,o.map(t),jn)))(n)))},c.domain=function(t){return arguments.length?(o=Array.from(t,Ti),l()):o.slice()},c.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},c.rangeRound=function(t){return a=Array.from(t),u=Xn,l()},c.clamp=function(t){return arguments.length?(h=!!t||Yi,l()):h!==Yi},c.interpolate=function(t){return arguments.length?(u=t,l()):u},c.unknown=function(t){return arguments.length?(n=t,c):n},function(n,r){return t=n,e=r,l()}}()(Yi,Yi);return t.copy=function(){return e=t,Zi().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},Pi.apply(t,arguments),function(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,s,o]=r?$t(e,t,n):$t(t,e,n);if(!(s>=i))return[];const a=s-i+1,u=new Array(a);if(r)if(o<0)for(let t=0;t<a;++t)u[t]=(s-t)/-o;else for(let t=0;t<a;++t)u[t]=(s-t)*o;else if(o<0)for(let t=0;t<a;++t)u[t]=(i+t)/-o;else for(let t=0;t<a;++t)u[t]=(i+t)*o;return u}(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,s=function(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?At(e,t,n):At(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}(t,e,n);switch((r=bi(r??",f")).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vi(e)/3)))-vi(Math.abs(t)))}(s,o))||(r.precision=i),Si(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,vi(e)-vi(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-vi(Math.abs(t)))}(s))||(r.precision=i-2*("%"===r.type))}return ki(r)}(r[0],r[r.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var r,i,s=e(),o=0,a=s.length-1,u=s[o],h=s[a],l=10;for(h<u&&(i=u,u=h,h=i,i=o,o=a,a=i);l-- >0;){if((i=At(u,h,n))===r)return s[o]=u,s[a]=h,e(s);if(i>0)u=Math.floor(u/i)*i,h=Math.ceil(h/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,h=Math.floor(h*i)/i}r=i}return t},t}(t)}function Ji(t,e,n){this.k=t,this.x=e,this.y=n}Ji.prototype={constructor:Ji,scale:function(t){return 1===t?this:new Ji(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ji(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+")"}},Ji.prototype;let Qi=class extends((0,r.Iz)((0,r.GB)((0,r.Zd)((0,r.uX)((0,r.I3)((0,r.l9)(r.Ay))))))){constructor(){super(),Oi.set(this,void 0),Ui.set(this,void 0),Hi.set(this,void 0),Ri.set(this,void 0),zi.set(this,void 0),ji.set(this,void 0),Di.set(this,void 0),Ii.set(this,void 0),Li.set(this,void 0),qi.set(this,void 0),Bi.set(this,void 0),Xi.set(this,void 0),Vi.set(this,null),this["ruler-start"]=1,this["ruler-padding"]=10,this["scale-factor"]=(this.length||0)/5||10,this["show-highlight"]=!1,o(this,Oi,null,"f"),o(this,Ui,!1,"f")}createNavRuler(){const t=this.width-this["margin-right"]-this["ruler-padding"];o(this,Oi,Zi().range([this["margin-left"]+this["ruler-padding"],t]).domain([this["ruler-start"],this["ruler-start"]+(this.length||1)]),"f"),o(this,Hi,Ye(this).selectAll("svg").attr("id","").attr("width",this.width).attr("height",this.height),"f"),o(this,Li,Ct(0,s(this,Oi,"f")),"f"),o(this,Ri,s(this,Hi,"f").append("text").attr("class","start-label").attr("x",this["margin-left"]).attr("y",this.height-this["margin-bottom"]-2).style("font-family","sans-serif").style("font-size",12),"f"),o(this,zi,s(this,Hi,"f").append("text").attr("class","end-label").attr("x",this.width-this["margin-right"]).attr("y",this.height-this["margin-bottom"]-2).attr("text-anchor","end").style("font-family","sans-serif").style("font-size",12),"f"),o(this,ji,s(this,Hi,"f").append("g").attr("class","x axis").call(s(this,Li,"f")),"f"),o(this,qi,function(t){var e,n=di,r=pi,i=gi,s=!0,o=Tt("start","brush","end"),a=6;function u(e){var n=e.property("__brush",g).selectAll(".overlay").data([fi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ai.overlay).merge(n).each(function(){var t=mi(this).extent;Ye(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([fi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ai.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return ai[t.type]}),e.each(h).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(){var t=Ye(this),e=mi(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a})):t.selectAll(".selection,.handle").style("display","none").attr("x",
vendor: 4,952 bytes, line 2
2null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new c(t,e,n):r}function c(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,o,a,u,c,f,p,d,g,m,y,v=this,_=n.target.__data__.type,w="selection"===(s&&n.metaKey?_="overlay":_)?Gr:s&&n.altKey?Qr:Jr,b=t===oi?null:li[_],$=t===si?null:ci[_],A=mi(v),x=A.extent,M=A.selection,E=x[0][0],k=x[0][1],S=x[1][0],N=x[1][1],C=0,P=0,T=b&&$&&s&&n.shiftKey,O=Array.from(n.touches||[n],t=>{const e=t.identifier;return(t=Fe(t,v)).point0=t.slice(),t.identifier=e,t});$r(v);var U=l(v,arguments,!0).beforestart();if("overlay"===_){M&&(g=!0);const e=[O[0],O[1]||O[0]];A.selection=M=[[i=t===oi?E:ni(e[0][0],e[1][0]),a=t===si?k:ni(e[0][1],e[1][1])],[c=t===oi?S:ei(e[0][0],e[1][0]),p=t===si?N:ei(e[0][1],e[1][1])]],O.length>1&&D(n)}else i=M[0][0],a=M[0][1],c=M[1][0],p=M[1][1];o=i,u=a,f=c,d=p;var H=Ye(v).attr("pointer-events","none"),R=H.selectAll(".overlay").attr("cursor",ai[_]);if(n.touches)U.moved=j,U.ended=I;else{var z=Ye(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",I,!0);s&&z.on("keydown.brush",function(t){switch(t.keyCode){case 16:T=b&&$;break;case 18:w===Jr&&(b&&(c=f-C*b,i=o+C*b),$&&(p=d-P*$,a=u+P*$),w=Qr,D(t));break;case 32:w!==Jr&&w!==Qr||(b<0?c=f-C:b>0&&(i=o-C),$<0?p=d-P:$>0&&(a=u-P),w=Zr,R.attr("cursor",ai.selection),D(t));break;default:return}Kr(t)},!0).on("keyup.brush",function(t){switch(t.keyCode){case 16:T&&(m=y=T=!1,D(t));break;case 18:w===Qr&&(b<0?c=f:b>0&&(i=o),$<0?p=d:$>0&&(a=u),w=Jr,D(t));break;case 32:w===Zr&&(t.altKey?(b&&(c=f-C*b,i=o+C*b),$&&(p=d-P*$,a=u+P*$),w=Qr):(b<0?c=f:b>0&&(i=o),$<0?p=d:$>0&&(a=u),w=Jr),R.attr("cursor",ai[_]),D(t));break;default:return}Kr(t)},!0),function(t){var e=t.document.documentElement,n=Ye(t).on("dragstart.drag",Ge,Ke);"onselectstart"in e?n.on("selectstart.drag",Ge,Ke):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(n.view)}h.call(v),U.start(n,w.name)}function j(t){for(const e of t.changedTouches||[t])for(const t of O)t.identifier===e.identifier&&(t.cur=Fe(e,v));if(T&&!m&&!y&&1===O.length){const t=O[0];ti(t.cur[0]-t[0])>ti(t.cur[1]-t[1])?y=!0:m=!0}for(const t of O)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,Kr(t),D(t)}function D(t){const e=O[0],n=e.point0;var r;switch(C=e[0]-n[0],P=e[1]-n[1],w){case Zr:case Gr:b&&(C=ei(E-i,ni(S-c,C)),o=i+C,f=c+C),$&&(P=ei(k-a,ni(N-p,P)),u=a+P,d=p+P);break;case Jr:O[1]?(b&&(o=ei(E,ni(S,O[0][0])),f=ei(E,ni(S,O[1][0])),b=1),$&&(u=ei(k,ni(N,O[0][1])),d=ei(k,ni(N,O[1][1])),$=1)):(b<0?(C=ei(E-i,ni(S-i,C)),o=i+C,f=c):b>0&&(C=ei(E-c,ni(S-c,C)),o=i,f=c+C),$<0?(P=ei(k-a,ni(N-a,P)),u=a+P,d=p):$>0&&(P=ei(k-p,ni(N-p,P)),u=a,d=p+P));break;case Qr:b&&(o=ei(E,ni(S,i-C*b)),f=ei(E,ni(S,c+C*b))),$&&(u=ei(k,ni(N,a-P*$)),d=ei(k,ni(N,p+P*$)))}f<o&&(b*=-1,r=i,i=c,c=r,r=o,o=f,f=r,_ in ui&&R.attr("cursor",ai[_=ui[_]])),d<u&&($*=-1,r=a,a=p,p=r,r=u,u=d,d=r,_ in hi&&R.attr("cursor",ai[_=hi[_]])),A.selection&&(M=A.selection),m&&(o=M[0][0],f=M[1][0]),y&&(u=M[0][1],d=M[1][1]),M[0][0]===o&&M[0][1]===u&&M[1][0]===f&&M[1][1]===d||(A.selection=[[o,u],[f,d]],h.call(v),U.brush(t,w.name))}function I(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else!function(t,e){var n=t.document.documentElement,r=Ye(t).on("dragstart.drag",null);e&&(r.on("click.drag",Ge,Ke),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,g),z.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);H.attr("pointer-events","all"),R.attr("cursor",ai.overlay),A.selection&&(M=A.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(M)&&(A.selection=null,h.call(v)),U.end(t,w.name)}}function p(t){l(this,arguments).moved(t)}function d(t){l(this,arguments).ended(t)}function g(){var e=this.__brush||{selection:null};return e.extent=ii(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",function(t){l(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){l(this,arguments).end(t)}).tween("brush",function(){var e=this,r=e.__brush,i=l(e,arguments),s=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),a=Bn(s,o);function u(t){r.selection=1===t&&null===o?null:a(t),h.call(e),i.brush()}return null!==s&&null!==o?u:u(1)}):e.each(function(){var e=this,i=arguments,s=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,s.extent),a=l(e,i).beforestart();$r(e),s.selection=null===o?null:o,h.call(e),a.start(r).brush(r).end(r)})},u.clear=function(t,e){u.move(t,null,e)},c.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit
2("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Ye(this.that).datum();o.call(e,this.that,new Fr(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:o}),i)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:Yr(ii(t)),u):n},u.filter=function(t){return arguments.length?(r="function"==typeof t?t:Yr(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Yr(!!t),u):i},u.handleSize=function(t){return arguments.length?(a=+t,u):a},u.keyModifiers=function(t){return arguments.length?(s=!!t,u):s},u.on=function(){var t=o.on.apply(o,arguments);return t===o?u:t},u}(si).extent([[this["margin-left"]+this["ruler-padding"],0],[t,.5*this.height+3]]).handleSize(6).on("end",({selection:t})=>{null===t&&s(this,Vi,"f")&&s(this,Di,"f")&&s(this,qi,"f")&&s(this,Di,"f").call(s(this,qi,"f").move,s(this,Vi,"f"))}).on("brush",({selection:t,transform:e})=>{t&&s(this,Oi,"f")&&(o(this,Vi,t,"f"),this["display-start"]=Math.round(100*s(this,Oi,"f").invert(t[0]))/100,this["display-end"]=Math.round(100*s(this,Oi,"f").invert(t[1]))/100,s(this,Ui,"f")||this.dispatchEvent(new CustomEvent("change",{detail:{"display-end":this["display-end"],"display-start":this["display-start"],extra:{transform:e}},bubbles:!0,cancelable:!0})),this.updateLabels(),this.updatePolygon())}),"f"),o(this,Di,s(this,Hi,"f").append("g").attr("class","brush"),"f"),t>0&&(s(this,Di,"f").call(s(this,qi,"f")),s(this,Di,"f").call(s(this,qi,"f").move,[s(this,Oi,"f").call(this,this.getStart()),s(this,Oi,"f").call(this,this.getEnd())])),o(this,Ii,s(this,Hi,"f").append("polygon").attr("class","zoom-polygon").attr("fill","#777").attr("fill-opacity","0.3"),"f"),o(this,Xi,s(this,Hi,"f").append("g").attr("class","margin"),"f"),this.createHighlight(),this.renderD3()}createHighlight(){s(this,Hi,"f")&&(o(this,Bi,s(this,Hi,"f").append("g").attr("class","highlighted"),"f"),this.updateHighlight())}onDimensionsChange(){var t,e,n,r;s(this,Oi,"f")&&(s(this,Oi,"f").range([this["margin-left"]+this["ruler-padding"],this.width-this["margin-right"]-this["ruler-padding"]]),null===(t=s(this,Hi,"f"))||void 0===t||t.attr("width",this.width),null===(e=s(this,Hi,"f"))||void 0===e||e.attr("height",this.height),null===(n=s(this,qi,"f"))||void 0===n||n.extent([[this["margin-left"]+this["ruler-padding"],0],[this.width-this["margin-right"]-this["ruler-padding"],.5*this.height+3]]),s(this,qi,"f")&&(null===(r=s(this,Di,"f"))||void 0===r||r.call(s(this,qi,"f"))))}render(){return Y`<svg class="container"></svg>`}updated(t){this.renderD3(),super.updated(t)}firstUpdated(){this.createNavRuler()}renderD3(){if(s(this,Oi,"f")&&s(this,ji,"f")&&s(this,Li,"f")&&s(this,qi,"f")){s(this,Oi,"f").domain([this["ruler-start"],this["ruler-start"]+(this.length||1)-1]),s(this,ji,"f").call(s(this,Li,"f")),this.updatePolygon(),this.updateLabels();const t=[s(this,Oi,"f").call(this,this.getStart()),s(this,Oi,"f").call(this,this.getEnd())];s(this,Di,"f")&&Number.isFinite(t[0])&&Number.isFinite(t[1])&&t[0]>=0&&t[1]>=0&&t[0]<t[1]&&(o(this,Ui,!0,"f"),s(this,Di,"f").call(s(this,qi,"f").move,t),o(this,Ui,!1,"f")),this.updateHighlight(),this.renderMarginOnGroup(s(this,Xi,"f"))}}locate(t,e){s(this,Di,"f")&&s(this,qi,"f")&&s(this,Oi,"f")&&s(this,Di,"f").call(s(this,qi,"f").move,[s(this,Oi,"f").call(this,t),s(this,Oi,"f").call(this,e)])}zoomOut(){this.locate(Math.max(this["ruler-start"]||1,this.getStart()-this["scale-factor"]),Math.min((this.length||1)+this["ruler-start"]-1,this.getEnd()+this["scale-factor"]))}zoomIn(){const t=Math.min(this.getStart()+this["scale-factor"],this.getEnd()-1);this.locate(t,Math.max(this.getEnd()-this["scale-factor"],t+1))}updateHighlight(){if(!s(this,Bi,"f"))return;const t=Zi().domain([this["display-start"]||1,(this["display-end"]||this.length||1)+1]).range([this["margin-left"],this.width-this["margin-right"]]),e=Zi().domain([this["ruler-start"],this["ruler-start"]+(this.length||1)]).range([this["margin-left"]+this["ruler-padding"],this.width-this["margin-right"]-this["ruler-padding"]]),n=s(this,Bi,"f").selectAll("polygon").data(this["show-highlight"]?this.highlightedRegion.segments:[]);
2n.enter().append("polygon").attr("class","highlight-polygon").style("pointer-events","none").merge(n).attr("fill",this["highlight-color"]).attr("points",n=>{const r=Math.max(1,n.start),i=Math.min(this.length||1,n.end)+1;return`${e(r)},${this.height/2}\n        ${e(i)},${this.height/2}\n        ${t(i)},${this.height}\n        ${t(r)},${this.height}`}),n.exit().remove();const r=s(this,Bi,"f").selectAll("rect").data(this["show-highlight"]?this.highlightedRegion.segments:[]);r.enter().append("rect").attr("class","highlight-rectangle").style("pointer-events","none").merge(r).attr("fill",this["highlight-color"]).attr("x",t=>e(Math.max(1,t.start))).attr("width",t=>e(Math.min(this.length||1,t.end)+1)-e(Math.max(1,t.start))).attr("y",this["margin-top"]).attr("height",this.height/2),r.exit().remove()}updateLabels(){s(this,Ri,"f")&&s(this,Ri,"f").attr("x",this["margin-left"]).text(Math.round(this.getStart())),s(this,zi,"f")&&s(this,zi,"f").attr("x",this.width-this["margin-right"]).text(Math.round(this.getEnd()))}updatePolygon(){s(this,Ii,"f")&&s(this,Oi,"f")&&s(this,Ii,"f").attr("points",`${s(this,Oi,"f").call(this,this.getStart())},${this.height/2}\n        ${s(this,Oi,"f").call(this,this.getEnd())},${this.height/2}\n        ${this.width-this["margin-right"]},${this.height}\n        ${this["margin-left"]},${this.height}`)}getStart(){return this["display-start"]||1}getEnd(){return((this["display-end"]||0)>0?this["display-end"]:this.length)||1}};var ts;Oi=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,Ri=new WeakMap,zi=new WeakMap,ji=new WeakMap,Di=new WeakMap,Ii=new WeakMap,Li=new WeakMap,qi=new WeakMap,Bi=new WeakMap,Xi=new WeakMap,Vi=new WeakMap,i([pt({type:Number})],Qi.prototype,"ruler-start",void 0),i([pt({type:Number})],Qi.prototype,"ruler-padding",void 0),i([pt({type:Number})],Qi.prototype,"scale-factor",void 0),i([pt({type:Boolean})],Qi.prototype,"show-highlight",void 0),Qi=i([(ts="nightingale-navigation",(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(ts,t)}):customElements.define(ts,t)})],Qi);var es=Qi}}]);
3//# sourceMappingURL=modern.2022.5ab722.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.