var _n=Object.defineProperty;var mn=(e,t,r)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Yr=(e,t,r)=>(mn(e,typeof t!="symbol"?t+"":t,r),r);import{B as writable,I as derived,J as get_store_value}from"./index-e85f5ed2.js";import{_ as __vitePreload}from"./preload-helper-b21cceae.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(e,t)=>{loadingStateStore.set({loading:!0,message:e});const r=await t;return loadingStateStore.set({loading:!1}),r};var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var bundle$1={};(function(exports){(function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})})(exports,(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function e(){}return e.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},e.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),e.originRequire=Module.prototype.require,Module.prototype.require=function(){var t=e.originRequire.apply(this,arguments),r=t.name;return e.requiredClasses[r]||(e.requiredClasses[r]=t),t})},e.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=e.originRequire,this.isRequireIntercepted=!1},e.isInterceptingRequire=function(){return this.isRequireIntercepted},e.getRequiredClasses=function(){return this.requiredClasses},e.clearRequiredClasses=function(){this.requiredClasses={}},e.registerClass=function(t){this.registeredClasses.push(t)},e.registerClasses=function(t){this.registeredClasses=this.registeredClasses.concat(t)},e.clearRegisteredClasses=function(){this.registeredClasses=[]},e.serialize=function(t,r){return r===void 0&&(r={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(t,r))},e.deserialize=function(t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),deserializer_1.deserializeFromParsedObj(JSON.parse(t),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(r),n)},e.originRequire=null,e.isRequireIntercepted=!1,e.requiredClasses={},e.registeredClasses=[],e}();module.exports=ESSerializer},917:function(e,t){var r=this&&this.__spreadArrays||function(){for(var _e=0,ke=0,de=arguments.length;ke0&&(V=V.concat(Array.from(Array(W),function(){return{}}))),l.test(P.toString()))try{z=new(P.bind.apply(P,n([void 0],V)))}catch{b(P.name),z={},Object.setPrototypeOf(z,P?P.prototype:Object.prototype)}else{z=Object.create(P.prototype.constructor.prototype);try{P.prototype.constructor.call(z,V)}catch{b(P.name)}}return z}(L[F],G),R,L,N)}function h(R,L){return R.map(function(N){return u(N,L)})}function f(R,L){return new L(R)}function d(R,L){return new L(R.map(function(N){return g(N[o.TO_STRING_FIELD])}))}function g(R){return BigInt(R)}function p(R,L){var N=R[o.OPTIONS_FIELD],F=N.locale;return delete N.locale,new L(F,N)}function m(R,L){var N;return delete(N=R.message?new L(R.message):new L).stack,R.name&&(N.name=R.name),R.stack&&(N.stack=R.stack),L===AggregateError&&(N.errors=u(R.errors,{})),N}function b(R){console.warn("Incorrect parameter type passed to constructor: "+R)}function $(R,L,N){for(var F in L){var H=Object.getOwnPropertyDescriptor(R,F);H&&H.writable!==!0&&typeof H.set!="function"||(R[F]=u(L[F],N))}}function S(R){R===void 0&&(R=[]);var L={};return R.forEach(function(N){if(i.isClass(N)){var F=N.name,H=L[F];H&&H!==N&&console.warn("WARNING: Found class definition with the same name: "+F),L[F]=N}}),L}t.deserializeFromParsedObj=function(R,L,N){return u(R,S(L),N)},t.deserializeFromParsedObjWithClassMapping=u,t.getClassMappingFromClassArray=S,t.getParentClassName=function(R){return R.prototype.__proto__.constructor.name}},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isClass=t.notObject=t.getValueFromToStringResult=void 0,t.notObject=function(r){return r===null||typeof r!="object"},t.getValueFromToStringResult=function(r){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},t.isClass=function(r){if(function(n){return[Date].indexOf(n)>=0}(r))return!0;try{Reflect.construct(String,[],r)}catch{return!1}return!0}},810:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializeValueWithClassName=void 0;var n=r(917),i=r(821);function o(u,h){h===void 0&&(h={});var f=function(m){var b,$,S;return m===void 0?((b={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_UNDEFINED,b):typeof m!="number"||isFinite(m)?typeof m=="bigint"?((S={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_BIG_INT,S[n.TO_STRING_FIELD]=m.toString(),S):i.notObject(m)?m:n.ESSERIALIZER_NULL:(($={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_NOT_FINITE,$[n.TO_STRING_FIELD]=m.toString(),$)}(u);if(f!==n.ESSERIALIZER_NULL)return f;if(Array.isArray(u))return l(u);var d={};if(!function(m){var b=m.__proto__.constructor.name;return n.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(b)}(u)){if(h.ignoreProperties&&h.ignoreProperties.forEach(function(m){delete u[m]}),h.interceptProperties)for(var g in h.interceptProperties)u[g]=h.interceptProperties[g].call(u,u[g]);for(var p in u)d[p]=o(u[p])}return function(m,b){var $=m.__proto__.constructor.name;return $!=="Object"&&(b[n.CLASS_NAME_FIELD]=$,$===n.BUILTIN_CLASS_ARRAYBUFFER||$===n.BUILTIN_CLASS_SHAREDARRAYBUFFER?b[n.ARRAY_FIELD]=l(Array.from(new Uint8Array(m))):$===n.BUILTIN_CLASS_BOOLEAN?b[n.BOOLEAN_FIELD]=m.valueOf():$===n.BUILTIN_CLASS_DATAVIEW?b[n.ARRAY_FIELD]=l(Array.from(new Uint8Array(m.buffer))):$===n.BUILTIN_CLASS_DATE?b[n.TIMESTAMP_FIELD]=m.getTime():$===n.BUILTIN_CLASS_INTL_LOCALE||$===n.BUILTIN_CLASS_REGEXP?b[n.TO_STRING_FIELD]=m.toString():$===n.BUILTIN_CLASS_SET?b[n.ARRAY_FIELD]=l(Array.from(m)):$===n.BUILTIN_CLASS_STRING?b[n.TO_STRING_FIELD]=m.toString():n.ALL_BUILTIN_ARRAYS.includes($)?b[n.ARRAY_FIELD]=l(Array.from(m)):n.ALL_BUILTIN_ERRORS.includes($)?function(S,R,L){S.name!=="Error"&&(R.name=S.name),S.message&&(R.message=S.message),S.stack&&(R.stack=S.stack),L===n.BUILTIN_CLASS_AGGREGATE_ERROR&&(R.errors=o(S.errors))}(m,b,$):n.ALL_BUILTIN_INTLS.includes($)&&(b[n.OPTIONS_FIELD]=m.resolvedOptions())),b}(u,d)}function l(u){return u.map(function(h){return o(h)})}t.getSerializeValueWithClassName=o}},__webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e])return __webpack_module_cache__[e].exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}return __webpack_require__(607)})())})(bundle$1);const ESSerializer=getDefaultExportFromCjs(bundle$1),alreadyWarnFor=[],warnStorageNotFound=e=>{const t=typeof process<"u"&&!0;if(!alreadyWarnFor.includes(e)&&!t){let r=`Unable to find the ${e}. No data will be persisted.`;typeof window>"u"&&(r+=` Are you running on a server? Most of storages are not available while running on a server.`),console.warn(r),alreadyWarnFor.push(e)}},serialize$1=e=>ESSerializer.serialize(e),deserialize=e=>{if(e!=="undefined"){if(e!=null){try{return ESSerializer.deserialize(e)}catch{}try{return JSON.parse(e)}catch{}}return e}};function persist(e,t,r){const n=t.getValue(r);return n!==null&&e.set(n),"addListener"in t&&t.addListener(r,i=>{e.set(i)}),e.subscribe(i=>{t.setValue(r,i)}),{...e,delete(){t.deleteValue(r)}}}function getBrowserStorage(e,t=!1){const r=[],n=l=>{const u=l.key;l.storageArea===e&&r.filter(({key:h})=>h===u).forEach(({listener:h})=>{h(deserialize(l.newValue))})},i=()=>{t&&typeof window<"u"&&window.addEventListener&&window.addEventListener("storage",n)},o=()=>{t&&typeof window<"u"&&window.removeEventListener&&window.removeEventListener("storage",n)};return{addListener(l,u){r.push({key:l,listener:u}),r.length===1&&i()},removeListener(l,u){const h=r.indexOf({key:l,listener:u});h!==-1&&r.splice(h,1),r.length===0&&o()},getValue(l){const u=e.getItem(l);return deserialize(u)},deleteValue(l){e.removeItem(l)},setValue(l,u){e.setItem(l,serialize$1(u))}}}function localStorage(e=!1){return typeof window<"u"&&window.localStorage?getBrowserStorage(window.localStorage,e):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:e},{default:t}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-80770405.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-eef04f76.js").then(r=>r.p),[],import.meta.url)]);analytics=e({app:"mermaid-live-editor",plugins:[t({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(e){console.log(e),console.info("Analytics blocked ;)")}},detectType$1=e=>{const t=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],r=e.replace(/^\s*%%.*\n/g,` `).trimStart().split(" ")[0].toLowerCase();return t.find(i=>r.includes(i.toLowerCase()))},countLines=e=>{var t,r;return((r=(t=e.match(/\n/g))==null?void 0:t.length)!=null?r:0)+1},saveStatistics=e=>{const t=detectType$1(e);if(!t)return;const r=countLines(e);logEvent("render",{graphType:t,length:r})},minutesToMilliSeconds=e=>e*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts=new Map,logEvent=(e,t)=>{if(!analytics)return;const r=t?JSON.stringify({name:e,data:t}):e;timeouts.has(r)?clearTimeout(timeouts.get(r)):analytics.track(e,t),timeouts.set(r,window.setTimeout(()=>timeouts.delete(r),delaysPerEvent[e]))};/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1$1(e){let t=e.length;for(;--t>=0;)e[t]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1$1(base_length);const base_dist=new Array(D_CODES$1);zero$1$1(base_dist);function StaticTreeDesc(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const d_code=e=>e<256?_dist_code[e]:_dist_code[256+(e>>>7)],put_short=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},send_bits=(e,t,r)=>{e.bi_valid>Buf_size-r?(e.bi_buf|=t<>Buf_size-e.bi_valid,e.bi_valid+=r-Buf_size):(e.bi_buf|=t<{send_bits(e,r[t*2],r[t*2+1])},bi_reverse=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},bi_flush=e=>{e.bi_valid===16?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gen_bitlen=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,h=t.stat_desc.max_length;let f,d,g,p,m,b,$=0;for(p=0;p<=MAX_BITS$1;p++)e.bl_count[p]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;fh&&(p=h,$++),r[d*2+1]=p,!(d>n)&&(e.bl_count[p]++,m=0,d>=u&&(m=l[d-u]),b=r[d*2],e.opt_len+=b*(p+m),o&&(e.static_len+=b*(i[d*2+1]+m)));if($!==0){do{for(p=h-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[h]--,$-=2}while($>0);for(p=h;p!==0;p--)for(d=e.bl_count[p];d!==0;)g=e.heap[--f],!(g>n)&&(r[g*2+1]!==p&&(e.opt_len+=(p-r[g*2+1])*r[g*2],r[g*2+1]=p),d--)}},gen_codes=(e,t,r)=>{const n=new Array(MAX_BITS$1+1);let i=0,o,l;for(o=1;o<=MAX_BITS$1;o++)i=i+r[o-1]<<1,n[o]=i;for(l=0;l<=t;l++){let u=e[l*2+1];u!==0&&(e[l*2]=bi_reverse(n[u]++,u))}},tr_static_init=()=>{let e,t,r,n,i;const o=new Array(MAX_BITS$1+1);for(r=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},smaller=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i{let n,i,o=0,l,u;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],n===0?send_code(e,i,t):(l=_length_code[i],send_code(e,l+LITERALS$1+1,t),u=extra_lbits[l],u!==0&&(i-=base_length[l],send_bits(e,i,u)),n--,l=d_code(n),send_code(e,l,r),u=extra_dbits[l],u!==0&&(n-=base_dist[l],send_bits(e,n,u)));while(o{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let l,u,h=-1,f;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,l=0;l>1;l>=1;l--)pqdownheap(e,r,l);f=o;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,r,1),u=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=u,r[f*2]=r[l*2]+r[u*2],e.depth[f]=(e.depth[l]>=e.depth[u]?e.depth[l]:e.depth[u])+1,r[l*2+1]=r[u*2+1]=f,e.heap[1]=f++,pqdownheap(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,t),gen_codes(r,h,e.bl_count)},scan_tree=(e,t,r)=>{let n,i=-1,o,l=t[0*2+1],u=0,h=7,f=4;for(l===0&&(h=138,f=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=l,l=t[(n+1)*2+1],!(++u{let n,i=-1,o,l=t[0*2+1],u=0,h=7,f=4;for(l===0&&(h=138,f=3),n=0;n<=r;n++)if(o=l,l=t[(n+1)*2+1],!(++u{let t;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),t=BL_CODES$1-1;t>=3&&e.bl_tree[bl_order[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},send_all_trees=(e,t,r,n)=>{let i;for(send_bits(e,t-257,5),send_bits(e,r-1,5),send_bits(e,n-4,4),i=0;i{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Z_BINARY;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Z_TEXT;for(r=32;r{static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)},_tr_stored_block$1=(e,t,r,n)=>{send_bits(e,(STORED_BLOCK<<1)+(n?1:0),3),bi_windup(e),put_short(e,r),put_short(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},_tr_align$1=e=>{send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)},_tr_flush_block$1=(e,t,r,n)=>{let i,o,l=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),l=build_bl_tree(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&t!==-1?_tr_stored_block$1(e,t,r,n):e.strategy===Z_FIXED$1||o===i?(send_bits(e,(STATIC_TREES<<1)+(n?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),n&&bi_windup(e)},_tr_tally$1=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(_length_code[r]+LITERALS$1+1)*2]++,e.dyn_dtree[d_code(t)*2]++),e.sym_next===e.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,l=0;for(;r!==0;){l=r>2e3?2e3:r,r-=l;do i=i+t[n++]|0,o=o+i|0;while(--l);i%=65521,o%=65521}return i|o<<16|0};var adler32_1=adler32;const makeTable=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},crcTable=new Uint32Array(makeTable()),crc32=(e,t,r,n)=>{const i=crcTable,o=n+r;e^=-1;for(let l=n;l>>8^i[(e^t[l])&255];return e^-1};var crc32_1=crc32,messages$1={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(e,t)=>(e.msg=messages$1[t],t),rank$2=e=>e*2-(e>4?9:0),zero$3=e=>{let t=e.length;for(;--t>=0;)e[t]=0},slide_hash=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=i?r-i:0;while(--t);t=i,n=t;do r=e.prev[--n],e.prev[n]=r>=i?r-i:0;while(--t)};let HASH_ZLIB=(e,t,r)=>(t<{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},flush_block_only=(e,t)=>{_tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)},put_byte=(e,t)=>{e.pending_buf[e.pending++]=t},putShortMSB=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},read_buf=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),e.state.wrap===1?e.adler=adler32_1(e.adler,t,i,r):e.state.wrap===2&&(e.adler=crc32_1(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},longest_match=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,l=e.prev_length,u=e.nice_match;const h=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,f=e.window,d=e.w_mask,g=e.prev,p=e.strstart+MAX_MATCH;let m=f[n+l-1],b=f[n+l];e.prev_length>=e.good_match&&(r>>=2),u>e.lookahead&&(u=e.lookahead);do if(i=t,!(f[i+l]!==b||f[i+l-1]!==m||f[i]!==f[n]||f[++i]!==f[n+1])){n+=2,i++;do;while(f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&f[++n]===f[++i]&&nl){if(e.match_start=t,l=o,o>=u)break;m=f[n+l-1],b=f[n+l]}}while((t=g[t&d])>h&&--r!==0);return l<=e.lookahead?l:e.lookahead},fill_window=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-MIN_LOOKAHEAD)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),slide_hash(e),n+=t),e.strm.avail_in===0)break;if(r=read_buf(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=MIN_MATCH)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=HASH(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=HASH(e,e.ins_h,e.window[i+MIN_MATCH-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,l=0,u=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(n=i+e.strm.avail_in),n>o&&(n=o),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,flush_pending(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(read_buf(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(l===0);return u-=e.strm.avail_in,u&&(u>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=u&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-u,e.strm.next_in),e.strstart),e.strstart+=u,e.insert+=u>e.w_size-e.insert?e.w_size-e.insert:u),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(read_buf(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=r||(i||t===Z_FINISH$3)&&t!==Z_NO_FLUSH$2&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,l=t===Z_FINISH$3&&e.strm.avail_in===0&&n===i?1:0,_tr_stored_block(e,e.block_start,n,l),e.block_start+=n,flush_pending(e.strm)),l?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(e,t)=>{let r,n;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r)),e.match_length>=MIN_MATCH)if(n=_tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do e.strstart++,e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+1]);else n=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=e.strstart{let r,n,i;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,r!==0&&e.prev_length4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-MIN_MATCH,n=_tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,n&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}else if(e.match_available){if(n=_tr_tally(e,0,e.window[e.strstart-1]),n&&flush_block_only(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=_tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let r,n,i,o;const l=e.window;for(;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&t===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(i=e.strstart-1,n=l[i],n===l[++i]&&n===l[++i]&&n===l[++i])){o=e.strstart+MAX_MATCH;do;while(n===l[++i]&&n===l[++i]&&n===l[++i]&&n===l[++i]&&n===l[++i]&&n===l[++i]&&n===l[++i]&&n===l[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(r=_tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(fill_window(e),e.lookahead===0)){if(t===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(e.match_length=0,r=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=e=>{e.window_size=2*e.w_size,zero$3(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero$3(this.dyn_ltree),zero$3(this.dyn_dtree),zero$3(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero$3(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero$3(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==INIT_STATE&&t.status!==GZIP_STATE&&t.status!==EXTRA_STATE&&t.status!==NAME_STATE&&t.status!==COMMENT_STATE&&t.status!==HCRC_STATE&&t.status!==BUSY_STATE&&t.status!==FINISH_STATE?1:0},deflateResetKeep=e=>{if(deflateStateCheck(e))return err(e,Z_STREAM_ERROR$2);e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?GZIP_STATE:t.wrap?INIT_STATE:BUSY_STATE,e.adler=t.wrap===2?0:1,t.last_flush=-2,_tr_init(t),Z_OK$3},deflateReset=e=>{const t=deflateResetKeep(e);return t===Z_OK$3&&lm_init(e.state),t},deflateSetHeader=(e,t)=>deflateStateCheck(e)||e.state.wrap!==2?Z_STREAM_ERROR$2:(e.state.gzhead=t,Z_OK$3),deflateInit2=(e,t,r,n,i,o)=>{if(!e)return Z_STREAM_ERROR$2;let l=1;if(t===Z_DEFAULT_COMPRESSION$1&&(t=6),n<0?(l=0,n=-n):n>15&&(l=2,n-=16),i<1||i>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||t<0||t>9||o<0||o>Z_FIXED||n===8&&l!==1)return err(e,Z_STREAM_ERROR$2);n===8&&(n=9);const u=new DeflateState;return e.state=u,u.strm=e,u.status=INIT_STATE,u.wrap=l,u.gzhead=null,u.w_bits=n,u.w_size=1<deflateInit2(e,t,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(e,t)=>{if(deflateStateCheck(e)||t>Z_BLOCK$1||t<0)return e?err(e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===FINISH_STATE&&t!==Z_FINISH$3)return err(e,e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(flush_pending(e),e.avail_out===0)return r.last_flush=-1,Z_OK$3}else if(e.avail_in===0&&rank$2(t)<=rank$2(n)&&t!==Z_FINISH$3)return err(e,Z_BUF_ERROR$1);if(r.status===FINISH_STATE&&e.avail_in!==0)return err(e,Z_BUF_ERROR$1);if(r.status===INIT_STATE&&r.wrap===0&&(r.status=BUSY_STATE),r.status===INIT_STATE){let i=Z_DEFLATED$2+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=Z_HUFFMAN_ONLY||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=PRESET_DICT),i+=31-i%31,putShortMSB(r,i),r.strstart!==0&&(putShortMSB(r,e.adler>>>16),putShortMSB(r,e.adler&65535)),e.adler=1,r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===GZIP_STATE){if(e.adler=0,put_byte(r,31),put_byte(r,139),put_byte(r,8),r.gzhead)put_byte(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),put_byte(r,r.gzhead.time&255),put_byte(r,r.gzhead.time>>8&255),put_byte(r,r.gzhead.time>>16&255),put_byte(r,r.gzhead.time>>24&255),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(put_byte(r,r.gzhead.extra.length&255),put_byte(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=EXTRA_STATE;else if(put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,OS_CODE),r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===EXTRA_STATE){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let u=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+u),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=u,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;i=0,o-=u}let l=new Uint8Array(r.gzhead.extra);r.pending_buf.set(l.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=NAME_STATE}if(r.status===NAME_STATE){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i)),flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;i=0}r.gzindexi&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=COMMENT_STATE}if(r.status===COMMENT_STATE){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i)),flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3;i=0}r.gzindexi&&(e.adler=crc32_1(e.adler,r.pending_buf,r.pending-i,i))}r.status=HCRC_STATE}if(r.status===HCRC_STATE){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(flush_pending(e),r.pending!==0))return r.last_flush=-1,Z_OK$3;put_byte(r,e.adler&255),put_byte(r,e.adler>>8&255),e.adler=0}if(r.status=BUSY_STATE,flush_pending(e),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(e.avail_in!==0||r.lookahead!==0||t!==Z_NO_FLUSH$2&&r.status!==FINISH_STATE){let i=r.level===0?deflate_stored(r,t):r.strategy===Z_HUFFMAN_ONLY?deflate_huff(r,t):r.strategy===Z_RLE?deflate_rle(r,t):configuration_table[r.level].func(r,t);if((i===BS_FINISH_STARTED||i===BS_FINISH_DONE)&&(r.status=FINISH_STATE),i===BS_NEED_MORE||i===BS_FINISH_STARTED)return e.avail_out===0&&(r.last_flush=-1),Z_OK$3;if(i===BS_BLOCK_DONE&&(t===Z_PARTIAL_FLUSH?_tr_align(r):t!==Z_BLOCK$1&&(_tr_stored_block(r,0,0,!1),t===Z_FULL_FLUSH$1&&(zero$3(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),flush_pending(e),e.avail_out===0))return r.last_flush=-1,Z_OK$3}return t!==Z_FINISH$3?Z_OK$3:r.wrap<=0?Z_STREAM_END$3:(r.wrap===2?(put_byte(r,e.adler&255),put_byte(r,e.adler>>8&255),put_byte(r,e.adler>>16&255),put_byte(r,e.adler>>24&255),put_byte(r,e.total_in&255),put_byte(r,e.total_in>>8&255),put_byte(r,e.total_in>>16&255),put_byte(r,e.total_in>>24&255)):(putShortMSB(r,e.adler>>>16),putShortMSB(r,e.adler&65535)),flush_pending(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=e=>{if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const t=e.state.status;return e.state=null,t===BUSY_STATE?err(e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(e,t)=>{let r=t.length;if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==INIT_STATE||n.lookahead)return Z_STREAM_ERROR$2;if(i===1&&(e.adler=adler32_1(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(zero$3(n.head),n.strstart=0,n.block_start=0,n.insert=0);let h=new Uint8Array(n.w_size);h.set(t.subarray(r-n.w_size,r),0),t=h,r=n.w_size}const o=e.avail_in,l=e.next_in,u=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,fill_window(n);n.lookahead>=MIN_MATCH;){let h=n.strstart,f=n.lookahead-(MIN_MATCH-1);do n.ins_h=HASH(n,n.ins_h,n.window[h+MIN_MATCH-1]),n.prev[h&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=h,h++;while(--f);n.strstart=h,n.lookahead=MIN_MATCH-1,fill_window(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=MIN_MATCH-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=o,n.wrap=i,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var assign=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(!!r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)_has(r,n)&&(e[n]=r[n])}}return e},flattenChunks=e=>{let t=0;for(let n=0,i=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,l=e.length,u=0;for(i=0;i>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const buf2binstring=(e,t)=>{if(t<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const o=new Array(r*2);for(i=0,n=0;n4){o[i++]=65533,n+=u-1;continue}for(l&=u===2?31:u===3?15:7;u>1&&n1){o[i++]=65533;continue}l<65536?o[i++]=l:(l-=65536,o[i++]=55296|l>>10&1023,o[i++]=56320|l&1023)}return buf2binstring(o,i)},utf8border=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+_utf8len[e[r]]>t?r:t},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(e){this.options=common$1.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=deflate_1$2.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Z_OK$2)throw new Error(messages$1[r]);if(t.header&&deflate_1$2.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=strings.string2buf(t.dictionary):toString$1.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=deflate_1$2.deflateSetDictionary(this.strm,n),r!==Z_OK$2)throw new Error(messages$1[r]);this._dict_set=!0}}Deflate$1.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof e=="string"?r.input=strings.string2buf(e):toString$1.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===Z_SYNC_FLUSH||o===Z_FULL_FLUSH)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=deflate_1$2.deflate(r,o),i===Z_STREAM_END$2)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=deflate_1$2.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Z_OK$2;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(e){this.chunks.push(e)};Deflate$1.prototype.onEnd=function(e){e===Z_OK$2&&(this.result=common$1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function deflate$1(e,t){const r=new Deflate$1(t);if(r.push(e,!0),r.err)throw r.msg||messages$1[r.err];return r.result}function deflateRaw$1(e,t){return t=t||{},t.raw=!0,deflate$1(e,t)}function gzip$1(e,t){return t=t||{},t.gzip=!0,deflate$1(e,t)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=16209,TYPE$1=16191;var inffast=function e(t,r){let n,i,o,l,u,h,f,d,g,p,m,b,$,S,R,L,N,F,H,G,P,V,z,W;const T=t.state;n=t.next_in,z=t.input,i=n+(t.avail_in-5),o=t.next_out,W=t.output,l=o-(r-t.avail_out),u=o+(t.avail_out-257),h=T.dmax,f=T.wsize,d=T.whave,g=T.wnext,p=T.window,m=T.hold,b=T.bits,$=T.lencode,S=T.distcode,R=(1<>>24,m>>>=F,b-=F,F=N>>>16&255,F===0)W[o++]=N&65535;else if(F&16){H=N&65535,F&=15,F&&(b>>=F,b-=F),b<15&&(m+=z[n++]<>>24,m>>>=F,b-=F,F=N>>>16&255,F&16){if(G=N&65535,F&=15,bh){t.msg="invalid distance too far back",T.mode=BAD$1;break e}if(m>>>=F,b-=F,F=o-l,G>F){if(F=G-F,F>d&&T.sane){t.msg="invalid distance too far back",T.mode=BAD$1;break e}if(P=0,V=p,g===0){if(P+=f-F,F2;)W[o++]=V[P++],W[o++]=V[P++],W[o++]=V[P++],H-=3;H&&(W[o++]=V[P++],H>1&&(W[o++]=V[P++]))}else{P=o-G;do W[o++]=W[P++],W[o++]=W[P++],W[o++]=W[P++],H-=3;while(H>2);H&&(W[o++]=W[P++],H>1&&(W[o++]=W[P++]))}}else if((F&64)===0){N=S[(N&65535)+(m&(1<>3,n-=H,b-=H<<3,m&=(1<{const h=u.bits;let f=0,d=0,g=0,p=0,m=0,b=0,$=0,S=0,R=0,L=0,N,F,H,G,P,V=null,z;const W=new Uint16Array(MAXBITS+1),T=new Uint16Array(MAXBITS+1);let U=null,I,ae,Q;for(f=0;f<=MAXBITS;f++)W[f]=0;for(d=0;d=1&&W[p]===0;p--);if(m>p&&(m=p),p===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,u.bits=1,0;for(g=1;g0&&(e===CODES$1||p!==1))return-1;for(T[1]=0,f=1;fENOUGH_LENS$1||e===DISTS$1&&R>ENOUGH_DISTS$1)return 1;for(;;){I=f-$,l[d]+1=z?(ae=U[l[d]-z],Q=V[l[d]-z]):(ae=32+64,Q=0),N=1<>$)+F]=I<<24|ae<<16|Q|0;while(F!==0);for(N=1<>=1;if(N!==0?(L&=N-1,L+=N):L=0,d++,--W[f]===0){if(f===p)break;f=t[r+l[d]]}if(f>m&&(L&G)!==H){for($===0&&($=m),P+=g,b=f-$,S=1<ENOUGH_LENS$1||e===DISTS$1&&R>ENOUGH_DISTS$1)return 1;H=L&G,i[H]=m<<24|b<<16|P-o|0}}return L!==0&&(i[P+L]=f-$<<24|64<<16|0),u.bits=m,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT$1=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE$2=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeSYNC?1:0},inflateResetKeep=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=HEAD,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ENOUGH_LENS),t.distcode=t.distdyn=new Int32Array(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK$1},inflateReset=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)},inflateReset2=(e,t)=>{let r;if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR$1:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,inflateReset(e))},inflateInit2=(e,t)=>{if(!e)return Z_STREAM_ERROR$1;const r=new InflateState;e.state=r,r.strm=e,r.window=null,r.mode=HEAD;const n=inflateReset2(e,t);return n!==Z_OK$1&&(e.state=null),n},inflateInit=e=>inflateInit2(e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=(e,t,r,n)=>{let i;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let r,n,i,o,l,u,h,f,d,g,p,m,b,$,S=0,R,L,N,F,H,G,P,V;const z=new Uint8Array(4);let W,T;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(e)||!e.output||!e.input&&e.avail_in!==0)return Z_STREAM_ERROR$1;r=e.state,r.mode===TYPE$2&&(r.mode=TYPEDO),l=e.next_out,i=e.output,h=e.avail_out,o=e.next_in,n=e.input,u=e.avail_in,f=r.hold,d=r.bits,g=u,p=h,V=Z_OK$1;e:for(;;)switch(r.mode){case HEAD:if(r.wrap===0){r.mode=TYPEDO;break}for(;d<16;){if(u===0)break e;u--,f+=n[o++]<>>8&255,r.check=crc32_1(r.check,z,2,0),f=0,d=0,r.mode=FLAGS;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=BAD;break}if((f&15)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(f>>>=4,d-=4,P=(f&15)+8,r.wbits===0&&(r.wbits=P),P>15||P>r.wbits){e.msg="invalid window size",r.mode=BAD;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&(z[0]=f&255,z[1]=f>>>8&255,r.check=crc32_1(r.check,z,2,0)),f=0,d=0,r.mode=TIME;case TIME:for(;d<32;){if(u===0)break e;u--,f+=n[o++]<>>8&255,z[2]=f>>>16&255,z[3]=f>>>24&255,r.check=crc32_1(r.check,z,4,0)),f=0,d=0,r.mode=OS;case OS:for(;d<16;){if(u===0)break e;u--,f+=n[o++]<>8),r.flags&512&&r.wrap&4&&(z[0]=f&255,z[1]=f>>>8&255,r.check=crc32_1(r.check,z,2,0)),f=0,d=0,r.mode=EXLEN;case EXLEN:if(r.flags&1024){for(;d<16;){if(u===0)break e;u--,f+=n[o++]<>>8&255,r.check=crc32_1(r.check,z,2,0)),f=0,d=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(r.flags&1024&&(m=r.length,m>u&&(m=u),m&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+m),P)),r.flags&512&&r.wrap&4&&(r.check=crc32_1(r.check,n,m,o)),u-=m,o+=m,r.length-=m),r.length))break e;r.length=0,r.mode=NAME;case NAME:if(r.flags&2048){if(u===0)break e;m=0;do P=n[o+m++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P));while(P&&m>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=TYPE$2;break;case DICTID:for(;d<32;){if(u===0)break e;u--,f+=n[o++]<>>=d&7,d-=d&7,r.mode=CHECK;break}for(;d<3;){if(u===0)break e;u--,f+=n[o++]<>>=1,d-=1,f&3){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,t===Z_TREES){f>>>=2,d-=2;break e}break;case 2:r.mode=TABLE;break;case 3:e.msg="invalid block type",r.mode=BAD}f>>>=2,d-=2;break;case STORED:for(f>>>=d&7,d-=d&7;d<32;){if(u===0)break e;u--,f+=n[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=f&65535,f=0,d=0,r.mode=COPY_,t===Z_TREES)break e;case COPY_:r.mode=COPY;case COPY:if(m=r.length,m){if(m>u&&(m=u),m>h&&(m=h),m===0)break e;i.set(n.subarray(o,o+m),l),u-=m,o+=m,h-=m,l+=m,r.length-=m;break}r.mode=TYPE$2;break;case TABLE:for(;d<14;){if(u===0)break e;u--,f+=n[o++]<>>=5,d-=5,r.ndist=(f&31)+1,f>>>=5,d-=5,r.ncode=(f&15)+4,f>>>=4,d-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have>>=3,d-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,W={bits:r.lenbits},V=inftrees(CODES,r.lens,0,19,r.lencode,0,r.work,W),r.lenbits=W.bits,V){e.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have>>24,L=S>>>16&255,N=S&65535,!(R<=d);){if(u===0)break e;u--,f+=n[o++]<>>=R,d-=R,r.lens[r.have++]=N;else{if(N===16){for(T=R+2;d>>=R,d-=R,r.have===0){e.msg="invalid bit length repeat",r.mode=BAD;break}P=r.lens[r.have-1],m=3+(f&3),f>>>=2,d-=2}else if(N===17){for(T=R+3;d>>=R,d-=R,P=0,m=3+(f&7),f>>>=3,d-=3}else{for(T=R+7;d>>=R,d-=R,P=0,m=11+(f&127),f>>>=7,d-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=BAD;break}for(;m--;)r.lens[r.have++]=P}}if(r.mode===BAD)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,W={bits:r.lenbits},V=inftrees(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,W),r.lenbits=W.bits,V){e.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,W={bits:r.distbits},V=inftrees(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,W),r.distbits=W.bits,V){e.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,t===Z_TREES)break e;case LEN_:r.mode=LEN;case LEN:if(u>=6&&h>=258){e.next_out=l,e.avail_out=h,e.next_in=o,e.avail_in=u,r.hold=f,r.bits=d,inffast(e,p),l=e.next_out,i=e.output,h=e.avail_out,o=e.next_in,n=e.input,u=e.avail_in,f=r.hold,d=r.bits,r.mode===TYPE$2&&(r.back=-1);break}for(r.back=0;S=r.lencode[f&(1<>>24,L=S>>>16&255,N=S&65535,!(R<=d);){if(u===0)break e;u--,f+=n[o++]<>F)],R=S>>>24,L=S>>>16&255,N=S&65535,!(F+R<=d);){if(u===0)break e;u--,f+=n[o++]<>>=F,d-=F,r.back+=F}if(f>>>=R,d-=R,r.back+=R,r.length=N,L===0){r.mode=LIT;break}if(L&32){r.back=-1,r.mode=TYPE$2;break}if(L&64){e.msg="invalid literal/length code",r.mode=BAD;break}r.extra=L&15,r.mode=LENEXT;case LENEXT:if(r.extra){for(T=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;S=r.distcode[f&(1<>>24,L=S>>>16&255,N=S&65535,!(R<=d);){if(u===0)break e;u--,f+=n[o++]<>F)],R=S>>>24,L=S>>>16&255,N=S&65535,!(F+R<=d);){if(u===0)break e;u--,f+=n[o++]<>>=F,d-=F,r.back+=F}if(f>>>=R,d-=R,r.back+=R,L&64){e.msg="invalid distance code",r.mode=BAD;break}r.offset=N,r.extra=L&15,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(T=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(h===0)break e;if(m=p-h,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=BAD;break}m>r.wnext?(m-=r.wnext,b=r.wsize-m):b=r.wnext-m,m>r.length&&(m=r.length),$=r.window}else $=i,b=l-r.offset,m=r.length;m>h&&(m=h),h-=m,r.length-=m;do i[l++]=$[b++];while(--m);r.length===0&&(r.mode=LEN);break;case LIT:if(h===0)break e;i[l++]=r.length,h--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;d<32;){if(u===0)break e;u--,f|=n[o++]<{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;let t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK$1},inflateGetHeader=(e,t)=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const r=e.state;return(r.wrap&2)===0?Z_STREAM_ERROR$1:(r.head=t,t.done=!1,Z_OK$1)},inflateSetDictionary=(e,t)=>{const r=t.length;let n,i,o;return inflateStateCheck(e)||(n=e.state,n.wrap!==0&&n.mode!==DICT)?Z_STREAM_ERROR$1:n.mode===DICT&&(i=1,i=adler32_1(i,t,r,0),i!==n.check)?Z_DATA_ERROR$1:(o=updatewindow(e,t,r,r),o?(n.mode=MEM,Z_MEM_ERROR$1):(n.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(e){this.options=common$1.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=inflate_1$2.inflateInit2(this.strm,t.windowBits);if(r!==Z_OK)throw new Error(messages$1[r]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=strings.string2buf(t.dictionary):toString.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=inflate_1$2.inflateSetDictionary(this.strm,t.dictionary),r!==Z_OK)))throw new Error(messages$1[r])}Inflate$1.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,l,u;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?Z_FINISH:Z_NO_FLUSH,toString.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=inflate_1$2.inflate(r,l),o===Z_NEED_DICT&&i&&(o=inflate_1$2.inflateSetDictionary(r,i),o===Z_OK?o=inflate_1$2.inflate(r,l):o===Z_DATA_ERROR&&(o=Z_NEED_DICT));r.avail_in>0&&o===Z_STREAM_END&&r.state.wrap>0&&e[r.next_in]!==0;)inflate_1$2.inflateReset(r),o=inflate_1$2.inflate(r,l);switch(o){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(o),this.ended=!0,!1}if(u=r.avail_out,r.next_out&&(r.avail_out===0||o===Z_STREAM_END))if(this.options.to==="string"){let h=strings.utf8border(r.output,r.next_out),f=r.next_out-h,d=strings.buf2string(r.output,h);r.next_out=f,r.avail_out=n-f,f&&r.output.set(r.output.subarray(h,h+f),0),this.onData(d)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===Z_OK&&u===0)){if(o===Z_STREAM_END)return o=inflate_1$2.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(e){this.chunks.push(e)};Inflate$1.prototype.onEnd=function(e){e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common$1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function inflate$1(e,t){const r=new Inflate$1(t);if(r.push(e),r.err)throw r.msg||messages$1[r.err];return r.result}function inflateRaw$1(e,t){return t=t||{},t.raw=!0,inflate$1(e,t)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants$3=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants:constants$3};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(e,t=r=>r)=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let t,r,n,i,o="";const l=e.length%3;for(let u=0;u255||(n=e.charCodeAt(u++))>255||(i=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=b64chs[t>>18&63]+b64chs[t>>12&63]+b64chs[t>>6&63]+b64chs[t&63]}return l?o.slice(0,l-3)+"===".substring(l):o},_btoa=_hasbtoa?e=>btoa(e):_hasBuffer?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;nt?_mkUriSafe(_fromUint8Array(e)):_fromUint8Array(e),cb_utob=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?_fromCC(192|t>>>6)+_fromCC(128|t&63):_fromCC(224|t>>>12&15)+_fromCC(128|t>>>6&63)+_fromCC(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _fromCC(240|t>>>18&7)+_fromCC(128|t>>>12&63)+_fromCC(128|t>>>6&63)+_fromCC(128|t&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode=(e,t=!1)=>t?_mkUriSafe(_encode(e)):_encode(e),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return _fromCC((r>>>10)+55296)+_fromCC((r&1023)+56320);case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o>16&255):i===64?_fromCC(t>>16&255,t>>8&255):_fromCC(t>>16&255,t>>8&255,t&255);return r},_atob=_hasatob?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer.from(e,"base64")):e=>_U8Afrom(_atob(e),t=>t.charCodeAt(0)),toUint8Array=e=>_toUint8Array(_unURI(e)),_decode=_hasBuffer?e=>Buffer.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),decode=e=>_decode(_unURI(e)),base64Serde={serialize:e=>encode(e,!0),deserialize:e=>decode(e)},pakoSerde={serialize:e=>{const t=new TextEncoder().encode(e),r=deflate_1(t,{level:9});return fromUint8Array(r,!0)},deserialize:e=>{const t=toUint8Array(e);return inflate_1(t,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(e,t="pako")=>{if(!(t in serdes))throw new Error(`Unknown serde type: ${t}`);const r=JSON.stringify(e),n=serdes[t].serialize(r);return`${t}:${n}`},deserializeState=e=>{let t,r;if(e.includes(":")){let i;if([i,r]=e.split(":"),i in serdes)t=i;else throw new Error(`Unknown serde type: ${i}`)}else t="base64",r=e;const n=serdes[t].deserialize(r);return JSON.parse(n)};var dist$1={},words={};(function(e){var t=commonjsGlobal$1&&commonjsGlobal$1.__values||function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],l=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&l>=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.getWordsByCategory=e.wordList=void 0,e.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function r(n,i){var o,l;i===void 0&&(i=[]);var u=new Set(i),h=[];try{for(var f=t(e.wordList[n]),d=f.next();!d.done;d=f.next()){var g=d.value;(i.length===0||g.categories.some(function(p){return u.has(p)}))&&h.push(g.word)}}catch(p){o={error:p}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(o)throw o.error}}return h}e.getWordsByCategory=r})(words);var __assign=commonjsGlobal$1&&commonjsGlobal$1.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{i(e==="auto"?t:e==="manual"?r:e==="loader"?n:t)}),addHistoryEntry=e=>{const t={...e,id:v4()};if(t.type==="loader"){loaderHistoryStore.update(r=>[t,...r]);return}t.name||(t.name=generateSlug_1(2)),t.type==="auto"?autoHistoryStore.update(r=>(r.length>=MAX_AUTO_HISTORY_LENGTH&&(r=r.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[t,...r])):t.type==="manual"&&(manualHistoryStore.update(r=>[t,...r]),logEvent("history",{action:"save"}))},clearHistoryData=e=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(t=>(get_store_value(historyModeStore)!=="loader"&&(t=t.filter(({id:r})=>e&&r!=e),logEvent("history",{action:"clear",type:e?"single":"all"})),t))},getPreviousState=e=>{const t=get_store_value(e?autoHistoryStore:manualHistoryStore);return t.length>0?JSON.stringify(t[0].state):""},restoreHistory=e=>{const t=e.filter(validateEntry),r=e.length-t.length;if(r>0&&(console.error(`${r} invalid history entries were removed.`),console.error(e)),t.length>0){let n=0;(t[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(i=>{const o=new Set(i.map(({id:h})=>h)),l=t.filter(({id:h})=>!o.has(h));n=l.length;const u=[...i,...l];return u.sort((h,f)=>f.time-h.time),u}),alert(`${n} entries restored. ${r} invalid, ${t.length-n} duplicates.`),logEvent("history",{action:"restore",success:n,invalid:r,duplicates:t.length-n})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const e=t=>{for(const r of t)r.id||(r.id=v4());return t};autoHistoryStore.update(e),manualHistoryStore.update(e)},validateEntry=e=>e.type&&e.state&&e.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=e=>codeFileName in e,getFileContent=async e=>e.truncated?await(await fetch(e.raw_url)).text():e.content,getGistData=async e=>{const t=e.split("github.com").pop();if(!t)throw new Error("Invalid GitHub URL"+e);const[r,n,i,o]=t.split("/"),{html_url:l,files:u,history:h}=await(await fetch(`https://api.github.com/gists/${i}${o?"/"+o:""}`)).json();if(isValidGist(u)){const f=await getFileContent(u[codeFileName]);let d="{}";configFileName in u&&(d=await getFileContent(u[configFileName]));const g=h[0];return{url:`${l}/${g.version}`,code:f,config:d,author:g.user.login,time:new Date(g.committed_at).getTime(),version:g.version.slice(-7)}}else throw new Error("Invalid gist provided")},getStateFromGist=(e,t=e.url)=>{const r={...defaultState,code:e.code,loader:{type:"gist",config:{url:t}}};return e.config&&(r.mermaid=e.config),r},loadGistData=async e=>{const t=e.split("github.com").pop();if(!t)throw new Error("Invalid GitHub URL"+e);const[r,n,i,o]=t.split("/"),{history:l}=await(await fetch(`https://api.github.com/gists/${i}${o?"/"+o:""}`)).json(),u=[];for(const d of l){const g=await getGistData(d.url).catch(()=>{});g&&u.push(g)}if(u.length===0)throw new Error("Invalid gist provided");u.reverse();const h=u.slice(-1).pop();if(!h)throw new Error("Invalid gist provided");const f=getStateFromGist(h,e);for(const d of u)addHistoryEntry({state:getStateFromGist(d),time:d.time,type:"loader",url:d.url,name:`${d.author} v${d.version}`});return f},loaders={gist:loadGistData},loadDataFromUrl=async()=>{var u,h;const e=new URLSearchParams(window.location.search);let t=defaultState,r,n,i=!1;const o=(u=e.get("code"))!=null?u:void 0,l=(h=e.get("config"))!=null?h:void 0;if(o&&(r=await(await fetch(o)).text(),i=!0),l?n=await(await fetch(l)).text():n=defaultState.mermaid,r){if(!o)throw new Error("Code URL is not defined");t={code:r,mermaid:n,loader:{type:"files",config:{codeURL:o,configURL:l}}}}else for(const[f,d]of e.entries())if(f in loaders)try{t=await loaders[f](d),i=!0;break}catch(g){console.error(g)}i&&updateCodeStore({...t,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:e}=get_store_value(migrationStore),t=Object.entries(migrations);if(e!==t.length-1){console.log(`Current migration version: v${e}. Migrating to v${t.length-1}.`);for(let r=e+1;r>>0,ne=0;negt(v)?($e=v+1,De-gt(v)):($e=v,De);return{year:$e,dayOfYear:ze}}function Nt(v,O,j){var ne,le,$e=St(v.year(),O,j),$e=Math.floor((v.dayOfYear()-$e-1)/7)+1;return $e<1?ne=$e+Pt(le=v.year()-1,O,j):$e>Pt(v.year(),O,j)?(ne=$e-Pt(v.year(),O,j),le=v.year()+1):(le=v.year(),ne=$e),{week:ne,year:le}}function Pt(v,le,j){var ne=St(v,le,j),le=St(v+1,le,j);return(gt(v)-ne+le)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),me("week","w"),me("isoWeek","W"),pe("week",5),pe("isoWeek",5),Te("w",we),Te("ww",we,mt),Te("W",we),Te("WW",we,mt),wt(["w","ww","W","WW"],function(v,O,j,ne){O[ne.substr(0,1)]=ee(v)});function Lt(v,O){return v.slice(O,7).concat(v.slice(0,O))}ce("d",0,"do","day"),ce("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),ce("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),ce("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),me("day","d"),me("weekday","e"),me("isoWeekday","E"),pe("day",11),pe("weekday",11),pe("isoWeekday",11),Te("d",we),Te("e",we),Te("E",we),Te("dd",function(v,O){return O.weekdaysMinRegex(v)}),Te("ddd",function(v,O){return O.weekdaysShortRegex(v)}),Te("dddd",function(v,O){return O.weekdaysRegex(v)}),wt(["dd","ddd","dddd"],function(v,O,j,ne){ne=j._locale.weekdaysParse(v,ne,j._strict),ne!=null?O.d=ne:b(j).invalidWeekday=v}),wt(["d","e","E"],function(v,O,j,ne){O[ne]=ee(v)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=Be,Ve=Be,ot=Be;function Mt(){function v(We,yt){return yt.length-We.length}for(var O,j,ne,le=[],$e=[],De=[],ze=[],Qe=0;Qe<7;Qe++)ne=m([2e3,1]).day(Qe),O=Ge(this.weekdaysMin(ne,"")),j=Ge(this.weekdaysShort(ne,"")),ne=Ge(this.weekdays(ne,"")),le.push(O),$e.push(j),De.push(ne),ze.push(O),ze.push(j),ze.push(ne);le.sort(v),$e.sort(v),De.sort(v),ze.sort(v),this._weekdaysRegex=new RegExp("^("+ze.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+De.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+$e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+le.join("|")+")","i")}function At(){return this.hours()%12||12}function Rt(v,O){ce(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),O)})}function Ut(v,O){return O._meridiemParse}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,At),ce("k",["kk",2],0,function(){return this.hours()||24}),ce("hmm",0,0,function(){return""+At.apply(this)+Q(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+At.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)}),Rt("a",!0),Rt("A",!1),me("hour","h"),pe("hour",13),Te("a",Ut),Te("A",Ut),Te("H",we),Te("h",we),Te("k",we),Te("HH",we,mt),Te("hh",we,mt),Te("kk",we,mt),Te("hmm",Ye),Te("hmmss",He),Te("Hmm",Ye),Te("Hmmss",He),st(["H","HH"],Me),st(["k","kk"],function(v,O,j){v=ee(v),O[Me]=v===24?0:v}),st(["a","A"],function(v,O,j){j._isPm=j._locale.isPM(v),j._meridiem=v}),st(["h","hh"],function(v,O,j){O[Me]=ee(v),b(j).bigHour=!0}),st("hmm",function(v,O,j){var ne=v.length-2;O[Me]=ee(v.substr(0,ne)),O[Fe]=ee(v.substr(ne)),b(j).bigHour=!0}),st("hmmss",function(v,O,j){var ne=v.length-4,le=v.length-2;O[Me]=ee(v.substr(0,ne)),O[Fe]=ee(v.substr(ne,2)),O[qe]=ee(v.substr(le)),b(j).bigHour=!0}),st("Hmm",function(v,O,j){var ne=v.length-2;O[Me]=ee(v.substr(0,ne)),O[Fe]=ee(v.substr(ne))}),st("Hmmss",function(v,O,j){var ne=v.length-4,le=v.length-2;O[Me]=ee(v.substr(0,ne)),O[Fe]=ee(v.substr(ne,2)),O[qe]=ee(v.substr(le))}),Be=Z("Hours",!0);var It,rr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:lt,monthsShort:xt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:ye,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},Tt={},Qt={};function Sr(v){return v&&v.toLowerCase().replace("_","-")}function xr(v){for(var O,j,ne,le,$e=0;$e=O&&function(De,ze){for(var Qe=Math.min(De.length,ze.length),We=0;We=O-1)break;O--}$e++}return It}function Gt(v){var O;if(Tt[v]===void 0&&!0&&e&&e.exports&&v.match("^[^/\\\\]*$")!=null)try{O=It._abbr,commonjsRequire$1("./locale/"+v),at(O)}catch{Tt[v]=null}return Tt[v]}function at(v,O){return v&&((O=h(O)?pt(v):ct(v,O))?It=O:typeof console<"u"&&console.warn&&console.warn("Locale "+v+" not found. Did you forget to load it?")),It._abbr}function ct(v,O){if(O===null)return delete Tt[v],null;var j,ne=rr;if(O.abbr=v,Tt[v]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ne=Tt[v]._config;else if(O.parentLocale!=null)if(Tt[O.parentLocale]!=null)ne=Tt[O.parentLocale]._config;else{if((j=Gt(O.parentLocale))==null)return Qt[O.parentLocale]||(Qt[O.parentLocale]=[]),Qt[O.parentLocale].push({name:v,config:O}),null;ne=j._config}return Tt[v]=new I(U(ne,O)),Qt[v]&&Qt[v].forEach(function(le){ct(le.name,le.config)}),at(v),Tt[v]}function pt(v){var O;if(!(v=v&&v._locale&&v._locale._abbr?v._locale._abbr:v))return It;if(!i(v)){if(O=Gt(v))return O;v=[v]}return xr(v)}function Ze(v){var O=v._a;return O&&b(v).overflow===-2&&(O=O[Je]<0||11Re(O[Ke],O[Je])?Oe:O[Me]<0||24Pt($e,Qe,We)?b(ne)._overflowWeeks=!0:yt!=null?b(ne)._overflowWeekday=!0:(ut=ft($e,De,ze,Qe,We),ne._a[Ke]=ut.year,ne._dayOfYear=ut.dayOfYear)),v._dayOfYear!=null&&(le=er(v._a[Ke],j[Ke]),(v._dayOfYear>gt(le)||v._dayOfYear===0)&&(b(v)._overflowDayOfYear=!0),yt=Ht(le,0,v._dayOfYear),v._a[Je]=yt.getUTCMonth(),v._a[Oe]=yt.getUTCDate()),O=0;O<3&&v._a[O]==null;++O)v._a[O]=Ot[O]=j[O];for(;O<7;O++)v._a[O]=Ot[O]=v._a[O]==null?O===2?1:0:v._a[O];v._a[Me]===24&&v._a[Fe]===0&&v._a[qe]===0&&v._a[et]===0&&(v._nextDay=!0,v._a[Me]=0),v._d=(v._useUTC?Ht:tr).apply(null,Ot),$e=v._useUTC?v._d.getUTCDay():v._d.getDay(),v._tzm!=null&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[Me]=24),v._w&&v._w.d!==void 0&&v._w.d!==$e&&(b(v).weekdayMismatch=!0)}}function wr(v){if(v._f===n.ISO_8601)Ar(v);else if(v._f===n.RFC_2822)Jt(v);else{v._a=[],b(v).empty=!0;for(var O,j,ne,le,$e,De=""+v._i,ze=De.length,Qe=0,We=Se(v._f,v._locale).match(ue)||[],yt=We.length,ut=0;utv.valueOf():v.valueOf()"}),te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},te.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},te.eraName=function(){for(var v,O=this.localeData().eras(),j=0,ne=O.length;jthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},te.isLocal=function(){return!!this.isValid()&&!this._isUTC},te.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},te.isUtc=Vr,te.isUTC=Vr,te.zoneAbbr=function(){return this._isUTC?"UTC":""},te.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},te.dates=V("dates accessor is deprecated. Use date instead.",hr),te.months=V("months accessor is deprecated. Use month instead",ht),te.years=V("years accessor is deprecated. Use year instead",Dr),te.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(v,O){return v!=null?(this.utcOffset(v=typeof v!="string"?-v:v,O),this):-this.utcOffset()}),te.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var v,O={};return F(O,this),(O=Rr(O))._a?(v=(O._isUTC?m:Et)(O._a),this._isDSTShifted=this.isValid()&&0-1}function decodeHtmlCharacters(e){return e.replace(htmlEntitiesRegex,function(t,r){return String.fromCharCode(r)})}function sanitizeUrl(e){var t=decodeHtmlCharacters(e||"").replace(ctrlCharactersRegex,"").trim();if(!t)return"about:blank";if(isRelativeUrlWithoutProtocol(t))return t;var r=t.match(urlSchemeRegex);if(!r)return t;var n=r[0];return invalidProtocolRegex.test(n)?"about:blank":t}sanitizeUrl_1=dist.sanitizeUrl=sanitizeUrl;class InternMap extends Map{constructor(t,r=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(intern_get(this,t))}has(t){return super.has(intern_get(this,t))}set(t,r){return super.set(intern_set(this,t),r)}delete(t){return super.delete(intern_delete(this,t))}}function intern_get({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function intern_set({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function intern_delete({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}function max$4(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function min$3(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function identity$e(e){return e}var top$1=1,right$1=2,bottom$1=3,left$1=4,epsilon$7=1e-6;function translateX$1(e){return"translate("+e+",0)"}function translateY$1(e){return"translate(0,"+e+")"}function number$7(e){return t=>+e(t)}function center$2(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function entering$1(){return!this.__axis}function axis$1(e,t){var r=[],n=null,i=null,o=6,l=6,u=3,h=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=e===top$1||e===left$1?-1:1,d=e===left$1||e===right$1?"x":"y",g=e===top$1||e===bottom$1?translateX$1:translateY$1;function p(m){var b=n==null?t.ticks?t.ticks.apply(t,r):t.domain():n,$=i==null?t.tickFormat?t.tickFormat.apply(t,r):identity$e:i,S=Math.max(o,0)+u,R=t.range(),L=+R[0]+h,N=+R[R.length-1]+h,F=(t.bandwidth?center$2:number$7)(t.copy(),h),H=m.selection?m.selection():m,G=H.selectAll(".domain").data([null]),P=H.selectAll(".tick").data(b,t).order(),V=P.exit(),z=P.enter().append("g").attr("class","tick"),W=P.select("line"),T=P.select("text");G=G.merge(G.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(z),W=W.merge(z.append("line").attr("stroke","currentColor").attr(d+"2",f*o)),T=T.merge(z.append("text").attr("fill","currentColor").attr(d,f*S).attr("dy",e===top$1?"0em":e===bottom$1?"0.71em":"0.32em")),m!==H&&(G=G.transition(m),P=P.transition(m),W=W.transition(m),T=T.transition(m),V=V.transition(m).attr("opacity",epsilon$7).attr("transform",function(U){return isFinite(U=F(U))?g(U+h):this.getAttribute("transform")}),z.attr("opacity",epsilon$7).attr("transform",function(U){var I=this.parentNode.__axis;return g((I&&isFinite(I=I(U))?I:F(U))+h)})),V.remove(),G.attr("d",e===left$1||e===right$1?l?"M"+f*l+","+L+"H"+h+"V"+N+"H"+f*l:"M"+h+","+L+"V"+N:l?"M"+L+","+f*l+"V"+h+"H"+N+"V"+f*l:"M"+L+","+h+"H"+N),P.attr("opacity",1).attr("transform",function(U){return g(F(U)+h)}),W.attr(d+"2",f*o),T.attr(d,f*S).text($),H.filter(entering$1).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right$1?"start":e===left$1?"end":"middle"),H.each(function(){this.__axis=F})}return p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(o=l=+m,p):o},p.tickSizeInner=function(m){return arguments.length?(o=+m,p):o},p.tickSizeOuter=function(m){return arguments.length?(l=+m,p):l},p.tickPadding=function(m){return arguments.length?(u=+m,p):u},p.offset=function(m){return arguments.length?(h=+m,p):h},p}function axisTop$1(e){return axis$1(top$1,e)}function axisBottom$1(e){return axis$1(bottom$1,e)}function define$2(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function extend$2(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Color$4(){}var darker$2=.7,brighter$2=1/darker$2,reI$2="\\s*([+-]?\\d+)\\s*",reN$2="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP$2="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex$2=/^#([0-9a-f]{3,8})$/,reRgbInteger$2=new RegExp("^rgb\\("+[reI$2,reI$2,reI$2]+"\\)$"),reRgbPercent$2=new RegExp("^rgb\\("+[reP$2,reP$2,reP$2]+"\\)$"),reRgbaInteger$2=new RegExp("^rgba\\("+[reI$2,reI$2,reI$2,reN$2]+"\\)$"),reRgbaPercent$2=new RegExp("^rgba\\("+[reP$2,reP$2,reP$2,reN$2]+"\\)$"),reHslPercent$2=new RegExp("^hsl\\("+[reN$2,reP$2,reP$2]+"\\)$"),reHslaPercent$2=new RegExp("^hsla\\("+[reN$2,reP$2,reP$2,reN$2]+"\\)$"),named$2={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};define$2(Color$4,color$2,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex$2,formatHex:color_formatHex$2,formatHsl:color_formatHsl$2,formatRgb:color_formatRgb$2,toString:color_formatRgb$2});function color_formatHex$2(){return this.rgb().formatHex()}function color_formatHsl$2(){return hslConvert$2(this).formatHsl()}function color_formatRgb$2(){return this.rgb().formatRgb()}function color$2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=reHex$2.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?rgbn$2(t):r===3?new Rgb$2(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?rgba$4(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?rgba$4(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=reRgbInteger$2.exec(e))?new Rgb$2(t[1],t[2],t[3],1):(t=reRgbPercent$2.exec(e))?new Rgb$2(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger$2.exec(e))?rgba$4(t[1],t[2],t[3],t[4]):(t=reRgbaPercent$2.exec(e))?rgba$4(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent$2.exec(e))?hsla$2(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent$2.exec(e))?hsla$2(t[1],t[2]/100,t[3]/100,t[4]):named$2.hasOwnProperty(e)?rgbn$2(named$2[e]):e==="transparent"?new Rgb$2(NaN,NaN,NaN,0):null}function rgbn$2(e){return new Rgb$2(e>>16&255,e>>8&255,e&255,1)}function rgba$4(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb$2(e,t,r,n)}function rgbConvert$2(e){return e instanceof Color$4||(e=color$2(e)),e?(e=e.rgb(),new Rgb$2(e.r,e.g,e.b,e.opacity)):new Rgb$2}function rgb$3(e,t,r,n){return arguments.length===1?rgbConvert$2(e):new Rgb$2(e,t,r,n==null?1:n)}function Rgb$2(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}define$2(Rgb$2,rgb$3,extend$2(Color$4,{brighter:function(e){return e=e==null?brighter$2:Math.pow(brighter$2,e),new Rgb$2(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?darker$2:Math.pow(darker$2,e),new Rgb$2(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:rgb_formatHex$2,formatHex:rgb_formatHex$2,formatRgb:rgb_formatRgb$2,toString:rgb_formatRgb$2}));function rgb_formatHex$2(){return"#"+hex$2(this.r)+hex$2(this.g)+hex$2(this.b)}function rgb_formatRgb$2(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function hex$2(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function hsla$2(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl$2(e,t,r,n)}function hslConvert$2(e){if(e instanceof Hsl$2)return new Hsl$2(e.h,e.s,e.l,e.opacity);if(e instanceof Color$4||(e=color$2(e)),!e)return new Hsl$2;if(e instanceof Hsl$2)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=NaN,u=o-i,h=(o+i)/2;return u?(t===o?l=(r-n)/u+(r0&&h<1?0:l,new Hsl$2(l,u,h,e.opacity)}function hsl$4(e,t,r,n){return arguments.length===1?hslConvert$2(e):new Hsl$2(e,t,r,n==null?1:n)}function Hsl$2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}define$2(Hsl$2,hsl$4,extend$2(Color$4,{brighter:function(e){return e=e==null?brighter$2:Math.pow(brighter$2,e),new Hsl$2(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?darker$2:Math.pow(darker$2,e),new Hsl$2(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Rgb$2(hsl2rgb$2(e>=240?e-240:e+120,i,n),hsl2rgb$2(e,i,n),hsl2rgb$2(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function hsl2rgb$2(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const radians$1=Math.PI/180,degrees$3=180/Math.PI,K$1=18,Xn$1=.96422,Yn$1=1,Zn$1=.82521,t0$4=4/29,t1$4=6/29,t2$1=3*t1$4*t1$4,t3$1=t1$4*t1$4*t1$4;function labConvert$1(e){if(e instanceof Lab$1)return new Lab$1(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl$1)return hcl2lab$1(e);e instanceof Rgb$2||(e=rgbConvert$2(e));var t=rgb2lrgb$1(e.r),r=rgb2lrgb$1(e.g),n=rgb2lrgb$1(e.b),i=xyz2lab$1((.2225045*t+.7168786*r+.0606169*n)/Yn$1),o,l;return t===r&&r===n?o=l=i:(o=xyz2lab$1((.4360747*t+.3850649*r+.1430804*n)/Xn$1),l=xyz2lab$1((.0139322*t+.0971045*r+.7141733*n)/Zn$1)),new Lab$1(116*i-16,500*(o-i),200*(i-l),e.opacity)}function lab$2(e,t,r,n){return arguments.length===1?labConvert$1(e):new Lab$1(e,t,r,n==null?1:n)}function Lab$1(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}define$2(Lab$1,lab$2,extend$2(Color$4,{brighter:function(e){return new Lab$1(this.l+K$1*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Lab$1(this.l-K$1*(e==null?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=Xn$1*lab2xyz$1(t),e=Yn$1*lab2xyz$1(e),r=Zn$1*lab2xyz$1(r),new Rgb$2(lrgb2rgb$1(3.1338561*t-1.6168667*e-.4906146*r),lrgb2rgb$1(-.9787684*t+1.9161415*e+.033454*r),lrgb2rgb$1(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function xyz2lab$1(e){return e>t3$1?Math.pow(e,1/3):e/t2$1+t0$4}function lab2xyz$1(e){return e>t1$4?e*e*e:t2$1*(e-t0$4)}function lrgb2rgb$1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb$1(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert$1(e){if(e instanceof Hcl$1)return new Hcl$1(e.h,e.c,e.l,e.opacity);if(e instanceof Lab$1||(e=labConvert$1(e)),e.a===0&&e.b===0)return new Hcl$1(NaN,0{}};function dispatch$1(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Dispatch$1.prototype=dispatch$1.prototype={constructor:Dispatch$1,on:function(e,t){var r=this._,n=parseTypenames$3(e+"",r),i,o=-1,l=n.length;if(arguments.length<2){for(;++o0)for(var r=new Array(i),n=0,i,o;n=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),namespaces$1.hasOwnProperty(t)?{space:namespaces$1[t],local:e}:e}function creatorInherit$1(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===xhtml$1&&t.documentElement.namespaceURI===xhtml$1?t.createElement(e):t.createElementNS(r,e)}}function creatorFixed$1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator$1(e){var t=namespace$1(e);return(t.local?creatorFixed$1:creatorInherit$1)(t)}function none$3(){}function selector$1(e){return e==null?none$3:function(){return this.querySelector(e)}}function selection_select$1(e){typeof e!="function"&&(e=selector$1(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i=N&&(N=L+1);!(H=S[N])&&++N=0;)(l=n[i])&&(o&&l.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(l,o),o=l);return this}function selection_sort$1(e){e||(e=ascending$5);function t(g,p){return g&&p?e(g.__data__,p.__data__):!g-!p}for(var r=this._groups,n=r.length,i=new Array(n),o=0;ot?1:e>=t?0:NaN}function selection_call$1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes$1(){return Array.from(this)}function selection_node$1(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?styleRemove$3:typeof t=="function"?styleFunction$3:styleConstant$3)(e,t,r==null?"":r)):styleValue$1(this.node(),e)}function styleValue$1(e,t){return e.style.getPropertyValue(t)||defaultView$1(e).getComputedStyle(e,null).getPropertyValue(t)}function propertyRemove$1(e){return function(){delete this[e]}}function propertyConstant$1(e,t){return function(){this[e]=t}}function propertyFunction$1(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function selection_property$1(e,t){return arguments.length>1?this.each((t==null?propertyRemove$1:typeof t=="function"?propertyFunction$1:propertyConstant$1)(e,t)):this.node()[e]}function classArray$1(e){return e.trim().split(/^|\s+/)}function classList$1(e){return e.classList||new ClassList$1(e)}function ClassList$1(e){this._node=e,this._names=classArray$1(e.getAttribute("class")||"")}ClassList$1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd$1(e,t){for(var r=classList$1(e),n=-1,i=t.length;++n=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function onRemove$1(e){return function(){var t=this.__on;if(!!t){for(var r=0,n=-1,i=t.length,o;r()=>e;function linear$5(e,t){return function(r){return e+r*t}}function exponential$3(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function hue$2(e,t){var r=t-e;return r?linear$5(e,r>180||r<-180?r-360*Math.round(r/360):r):constant$g(isNaN(e)?t:e)}function gamma$2(e){return(e=+e)==1?nogamma$2:function(t,r){return r-t?exponential$3(t,r,e):constant$g(isNaN(t)?r:t)}}function nogamma$2(e,t){var r=t-e;return r?linear$5(e,r):constant$g(isNaN(e)?t:e)}const interpolateRgb$1=function e(t){var r=gamma$2(t);function n(i,o){var l=r((i=rgb$3(i)).r,(o=rgb$3(o)).r),u=r(i.g,o.g),h=r(i.b,o.b),f=nogamma$2(i.opacity,o.opacity);return function(d){return i.r=l(d),i.g=u(d),i.b=h(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function interpolateNumber$2(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var reA$2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB$2=new RegExp(reA$2.source,"g");function zero$2(e){return function(){return e}}function one$2(e){return function(t){return e(t)+""}}function interpolateString$1(e,t){var r=reA$2.lastIndex=reB$2.lastIndex=0,n,i,o,l=-1,u=[],h=[];for(e=e+"",t=t+"";(n=reA$2.exec(e))&&(i=reB$2.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),u[l]?u[l]+=o:u[++l]=o),(n=n[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,h.push({i:l,x:interpolateNumber$2(n,i)})),r=reB$2.lastIndex;return r180?d+=360:d-f>180&&(f+=360),p.push({i:g.push(i(g)+"rotate(",null,n)-2,x:interpolateNumber$2(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function u(f,d,g,p){f!==d?p.push({i:g.push(i(g)+"skewX(",null,n)-2,x:interpolateNumber$2(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function h(f,d,g,p,m,b){if(f!==g||d!==p){var $=m.push(i(m)+"scale(",null,",",null,")");b.push({i:$-4,x:interpolateNumber$2(f,g)},{i:$-2,x:interpolateNumber$2(d,p)})}else(g!==1||p!==1)&&m.push(i(m)+"scale("+g+","+p+")")}return function(f,d){var g=[],p=[];return f=e(f),d=e(d),o(f.translateX,f.translateY,d.translateX,d.translateY,g,p),l(f.rotate,d.rotate,g,p),u(f.skewX,d.skewX,g,p),h(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,p),f=d=null,function(m){for(var b=-1,$=p.length,S;++b<$;)g[(S=p[b]).i]=S.x(m);return g.join("")}}}var interpolateTransformCss$1=interpolateTransform$1(parseCss$1,"px, ","px)","deg)"),interpolateTransformSvg$1=interpolateTransform$1(parseSvg$1,", ",")",")");function hcl$3(e){return function(t,r){var n=e((t=hcl$4(t)).h,(r=hcl$4(r)).h),i=nogamma$2(t.c,r.c),o=nogamma$2(t.l,r.l),l=nogamma$2(t.opacity,r.opacity);return function(u){return t.h=n(u),t.c=i(u),t.l=o(u),t.opacity=l(u),t+""}}}const interpolateHcl=hcl$3(hue$2);function ascending$4(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function bisector$1(e){let t=e,r=e,n=e;e.length!==2&&(t=(u,h)=>e(u)-h,r=ascending$4,n=(u,h)=>ascending$4(e(u),h));function i(u,h,f=0,d=u.length){if(f>>1;n(u[g],h)<0?f=g+1:d=g}while(f>>1;n(u[g],h)<=0?f=g+1:d=g}while(ff&&t(u[g-1],h)>-t(u[g],h)?g-1:g}return{left:i,center:l,right:o}}function number$6(e){return e===null?NaN:+e}const ascendingBisect$1=bisector$1(ascending$4),bisectRight$1=ascendingBisect$1.right;bisector$1(number$6).center;const bisect=bisectRight$1;var e10$1=Math.sqrt(50),e5$1=Math.sqrt(10),e2$1=Math.sqrt(2);function ticks$1(e,t,r){var n,i=-1,o,l,u;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((n=t0){let h=Math.round(e/u),f=Math.round(t/u);for(h*ut&&--f,l=new Array(o=f-h+1);++it&&--f,l=new Array(o=f-h+1);++i=0?(o>=e10$1?10:o>=e5$1?5:o>=e2$1?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=e10$1?10:o>=e5$1?5:o>=e2$1?2:1)}function tickStep$1(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=e10$1?i*=10:o>=e5$1?i*=5:o>=e2$1&&(i*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?rgba$3(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?rgba$3(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=reRgbInteger$1.exec(e))?new Rgb$1(t[1],t[2],t[3],1):(t=reRgbPercent$1.exec(e))?new Rgb$1(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger$1.exec(e))?rgba$3(t[1],t[2],t[3],t[4]):(t=reRgbaPercent$1.exec(e))?rgba$3(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent$1.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent$1.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,t[4]):named$1.hasOwnProperty(e)?rgbn$1(named$1[e]):e==="transparent"?new Rgb$1(NaN,NaN,NaN,0):null}function rgbn$1(e){return new Rgb$1(e>>16&255,e>>8&255,e&255,1)}function rgba$3(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb$1(e,t,r,n)}function rgbConvert$1(e){return e instanceof Color$3||(e=color$1(e)),e?(e=e.rgb(),new Rgb$1(e.r,e.g,e.b,e.opacity)):new Rgb$1}function rgb$2(e,t,r,n){return arguments.length===1?rgbConvert$1(e):new Rgb$1(e,t,r,n==null?1:n)}function Rgb$1(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}define$1(Rgb$1,rgb$2,extend$1(Color$3,{brighter:function(e){return e=e==null?brighter$1:Math.pow(brighter$1,e),new Rgb$1(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?darker$1:Math.pow(darker$1,e),new Rgb$1(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:rgb_formatHex$1,formatHex:rgb_formatHex$1,formatRgb:rgb_formatRgb$1,toString:rgb_formatRgb$1}));function rgb_formatHex$1(){return"#"+hex$1(this.r)+hex$1(this.g)+hex$1(this.b)}function rgb_formatRgb$1(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function hex$1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function hsla$1(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl$1(e,t,r,n)}function hslConvert$1(e){if(e instanceof Hsl$1)return new Hsl$1(e.h,e.s,e.l,e.opacity);if(e instanceof Color$3||(e=color$1(e)),!e)return new Hsl$1;if(e instanceof Hsl$1)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=NaN,u=o-i,h=(o+i)/2;return u?(t===o?l=(r-n)/u+(r0&&h<1?0:l,new Hsl$1(l,u,h,e.opacity)}function hsl$3(e,t,r,n){return arguments.length===1?hslConvert$1(e):new Hsl$1(e,t,r,n==null?1:n)}function Hsl$1(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}define$1(Hsl$1,hsl$3,extend$1(Color$3,{brighter:function(e){return e=e==null?brighter$1:Math.pow(brighter$1,e),new Hsl$1(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?darker$1:Math.pow(darker$1,e),new Hsl$1(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Rgb$1(hsl2rgb$1(e>=240?e-240:e+120,i,n),hsl2rgb$1(e,i,n),hsl2rgb$1(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function hsl2rgb$1(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const constant$f=e=>()=>e;function linear$4(e,t){return function(r){return e+r*t}}function exponential$2(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function gamma$1(e){return(e=+e)==1?nogamma$1:function(t,r){return r-t?exponential$2(t,r,e):constant$f(isNaN(t)?r:t)}}function nogamma$1(e,t){var r=t-e;return r?linear$4(e,r):constant$f(isNaN(e)?t:e)}const rgb$1=function e(t){var r=gamma$1(t);function n(i,o){var l=r((i=rgb$2(i)).r,(o=rgb$2(o)).r),u=r(i.g,o.g),h=r(i.b,o.b),f=nogamma$1(i.opacity,o.opacity);return function(d){return i.r=l(d),i.g=u(d),i.b=h(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function numberArray$1(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;ir&&(o=t.slice(r,o),u[l]?u[l]+=o:u[++l]=o),(n=n[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,h.push({i:l,x:interpolateNumber$1(n,i)})),r=reB$1.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function bimap$1(e,t,r){var n=e[0],i=e[1],o=t[0],l=t[1];return i2?polymap$1:bimap$1,h=f=null,g}function g(p){return p==null||isNaN(p=+p)?o:(h||(h=u(e.map(n),t,r)))(n(l(p)))}return g.invert=function(p){return l(i((f||(f=u(t,e.map(n),interpolateNumber$1)))(p)))},g.domain=function(p){return arguments.length?(e=Array.from(p,number$5),d()):e.slice()},g.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},g.rangeRound=function(p){return t=Array.from(p),r=interpolateRound$1,d()},g.clamp=function(p){return arguments.length?(l=p?!0:identity$c,d()):l!==identity$c},g.interpolate=function(p){return arguments.length?(r=p,d()):r},g.unknown=function(p){return arguments.length?(o=p,g):o},function(p,m){return n=p,i=m,d()}}function continuous$1(){return transformer$4()(identity$c,identity$c)}function formatDecimal$1(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts$1(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function exponent$2(e){return e=formatDecimalParts$1(Math.abs(e)),e?e[1]:NaN}function formatGroup$1(e,t){return function(r,n){for(var i=r.length,o=[],l=0,u=e[0],h=0;i>0&&u>0&&(h+u+1>n&&(u=Math.max(1,n-h)),o.push(r.substring(i-=u,i+u)),!((h+=u+1)>n));)u=e[l=(l+1)%e.length];return o.reverse().join(t)}}function formatNumerals$1(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var re$1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier$1(e){if(!(t=re$1.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier$1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}formatSpecifier$1.prototype=FormatSpecifier$1.prototype;function FormatSpecifier$1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier$1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim$1(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var prefixExponent$1;function formatPrefixAuto$1(e,t){var r=formatDecimalParts$1(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(prefixExponent$1=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=n.length;return o===l?n:o>l?n+new Array(o-l+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+formatDecimalParts$1(e,Math.max(0,t+o-1))[0]}function formatRounded$1(e,t){var r=formatDecimalParts$1(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const formatTypes$1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal$1,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>formatRounded$1(e*100,t),r:formatRounded$1,s:formatPrefixAuto$1,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$b(e){return e}var map$4=Array.prototype.map,prefixes$1=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$4(e){var t=e.grouping===void 0||e.thousands===void 0?identity$b:formatGroup$1(map$4.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?identity$b:formatNumerals$1(map$4.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function f(g){g=formatSpecifier$1(g);var p=g.fill,m=g.align,b=g.sign,$=g.symbol,S=g.zero,R=g.width,L=g.comma,N=g.precision,F=g.trim,H=g.type;H==="n"?(L=!0,H="g"):formatTypes$1[H]||(N===void 0&&(N=12),F=!0,H="g"),(S||p==="0"&&m==="=")&&(S=!0,p="0",m="=");var G=$==="$"?r:$==="#"&&/[boxX]/.test(H)?"0"+H.toLowerCase():"",P=$==="$"?n:/[%p]/.test(H)?l:"",V=formatTypes$1[H],z=/[defgprs%]/.test(H);N=N===void 0?6:/[gprs]/.test(H)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function W(T){var U=G,I=P,ae,Q,ue;if(H==="c")I=V(T)+I,T="";else{T=+T;var _e=T<0||1/T<0;if(T=isNaN(T)?h:V(Math.abs(T),N),F&&(T=formatTrim$1(T)),_e&&+T==0&&b!=="+"&&(_e=!1),U=(_e?b==="("?b:u:b==="-"||b==="("?"":b)+U,I=(H==="s"?prefixes$1[8+prefixExponent$1/3]:"")+I+(_e&&b==="("?")":""),z){for(ae=-1,Q=T.length;++aeue||ue>57){I=(ue===46?i+T.slice(ae+1):T.slice(ae))+I,T=T.slice(0,ae);break}}}L&&!S&&(T=t(T,1/0));var ke=U.length+T.length+I.length,de=ke>1)+U+T+I+de.slice(ke);break;default:T=de+U+T+I;break}return o(T)}return W.toString=function(){return g+""},W}function d(g,p){var m=f((g=formatSpecifier$1(g),g.type="f",g)),b=Math.max(-8,Math.min(8,Math.floor(exponent$2(p)/3)))*3,$=Math.pow(10,-b),S=prefixes$1[8+b/3];return function(R){return m($*R)+S}}return{format:f,formatPrefix:d}}var locale$4,format$2,formatPrefix$1;defaultLocale$4({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$4(e){return locale$4=formatLocale$4(e),format$2=locale$4.format,formatPrefix$1=locale$4.formatPrefix,locale$4}function precisionFixed$1(e){return Math.max(0,-exponent$2(Math.abs(e)))}function precisionPrefix$1(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent$2(t)/3)))*3-exponent$2(Math.abs(e)))}function precisionRound$1(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,exponent$2(t)-exponent$2(e))+1}function tickFormat$1(e,t,r,n){var i=tickStep$1(e,t,r),o;switch(n=formatSpecifier$1(n==null?",f":n),n.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=precisionPrefix$1(i,l))&&(n.precision=o),formatPrefix$1(n,l)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=precisionRound$1(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=precisionFixed$1(i))&&(n.precision=o-(n.type==="%")*2);break}}return format$2(n)}function linearish$1(e){var t=e.domain;return e.ticks=function(r){var n=t();return ticks$1(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var i=t();return tickFormat$1(i[0],i[i.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,l=n[i],u=n[o],h,f,d=10;for(u0;){if(f=tickIncrement$1(l,u,r),f===h)return n[i]=l,n[o]=u,t(n);if(f>0)l=Math.floor(l/f)*f,u=Math.ceil(u/f)*f;else if(f<0)l=Math.ceil(l*f)/f,u=Math.floor(u*f)/f;else break;h=f}return e},e}function linear$3(){var e=continuous$1();return e.copy=function(){return copy$3(e,linear$3())},initRange$1.apply(e,arguments),linearish$1(e)}function nice$1(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],l;return o0))return h;do h.push(f=new Date(+o)),t(o,u),e(o);while(f=l)for(;e(l),!o(l);)l.setTime(l-1)},function(l,u){if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!o(l););else for(;--u>=0;)for(;t(l,1),!o(l););})},r&&(i.count=function(o,l){return t0$3.setTime(+o),t1$3.setTime(+l),e(t0$3),e(t1$3),Math.floor(r(t0$3,t1$3))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?function(l){return n(l)%o===0}:function(l){return i.count(0,l)%o===0}):i}),i}var millisecond$1=newInterval$2(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});millisecond$1.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?newInterval$2(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):millisecond$1};const millisecond$2=millisecond$1;millisecond$1.range;const durationSecond$3=1e3,durationMinute$3=durationSecond$3*60,durationHour$3=durationMinute$3*60,durationDay$3=durationHour$3*24,durationWeek$3=durationDay$3*7,durationMonth$1=durationDay$3*30,durationYear$1=durationDay$3*365;var second$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*durationSecond$3)},function(e,t){return(t-e)/durationSecond$3},function(e){return e.getUTCSeconds()});const utcSecond$1=second$1;second$1.range;var minute$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond$3)},function(e,t){e.setTime(+e+t*durationMinute$3)},function(e,t){return(t-e)/durationMinute$3},function(e){return e.getMinutes()});const timeMinute$1=minute$1;minute$1.range;var hour$1=newInterval$2(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond$3-e.getMinutes()*durationMinute$3)},function(e,t){e.setTime(+e+t*durationHour$3)},function(e,t){return(t-e)/durationHour$3},function(e){return e.getHours()});const timeHour$1=hour$1;hour$1.range;var day$2=newInterval$2(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute$3)/durationDay$3,e=>e.getDate()-1);const timeDay$2=day$2;day$2.range;function weekday$2(e){return newInterval$2(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute$3)/durationWeek$3})}var sunday$2=weekday$2(0),monday$2=weekday$2(1),tuesday$2=weekday$2(2),wednesday$2=weekday$2(3),thursday$2=weekday$2(4),friday$2=weekday$2(5),saturday$2=weekday$2(6);sunday$2.range;monday$2.range;tuesday$2.range;wednesday$2.range;thursday$2.range;friday$2.range;saturday$2.range;var month$1=newInterval$2(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const timeMonth$1=month$1;month$1.range;var year$2=newInterval$2(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});year$2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$2(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const timeYear$2=year$2;year$2.range;var utcMinute$2=newInterval$2(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*durationMinute$3)},function(e,t){return(t-e)/durationMinute$3},function(e){return e.getUTCMinutes()});const utcMinute$3=utcMinute$2;utcMinute$2.range;var utcHour$2=newInterval$2(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*durationHour$3)},function(e,t){return(t-e)/durationHour$3},function(e){return e.getUTCHours()});const utcHour$3=utcHour$2;utcHour$2.range;var utcDay$4=newInterval$2(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay$3},function(e){return e.getUTCDate()-1});const utcDay$5=utcDay$4;utcDay$4.range;function utcWeekday$2(e){return newInterval$2(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/durationWeek$3})}var utcSunday$2=utcWeekday$2(0),utcMonday$2=utcWeekday$2(1),utcTuesday$2=utcWeekday$2(2),utcWednesday$2=utcWeekday$2(3),utcThursday$2=utcWeekday$2(4),utcFriday$2=utcWeekday$2(5),utcSaturday$2=utcWeekday$2(6);utcSunday$2.range;utcMonday$2.range;utcTuesday$2.range;utcWednesday$2.range;utcThursday$2.range;utcFriday$2.range;utcSaturday$2.range;var utcMonth$2=newInterval$2(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const utcMonth$3=utcMonth$2;utcMonth$2.range;var utcYear$4=newInterval$2(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});utcYear$4.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$2(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const utcYear$5=utcYear$4;utcYear$4.range;function ticker(e,t,r,n,i,o){const l=[[utcSecond$1,1,durationSecond$3],[utcSecond$1,5,5*durationSecond$3],[utcSecond$1,15,15*durationSecond$3],[utcSecond$1,30,30*durationSecond$3],[o,1,durationMinute$3],[o,5,5*durationMinute$3],[o,15,15*durationMinute$3],[o,30,30*durationMinute$3],[i,1,durationHour$3],[i,3,3*durationHour$3],[i,6,6*durationHour$3],[i,12,12*durationHour$3],[n,1,durationDay$3],[n,2,2*durationDay$3],[r,1,durationWeek$3],[t,1,durationMonth$1],[t,3,3*durationMonth$1],[e,1,durationYear$1]];function u(f,d,g){const p=dS).right(l,p);if(m===l.length)return e.every(tickStep$1(f/durationYear$1,d/durationYear$1,g));if(m===0)return millisecond$2.every(Math.max(tickStep$1(f,d,g),1));const[b,$]=l[p/l[m-1][2]53)return null;"w"in Z||(Z.w=1),"Z"in Z?(se=utcDate$2(newDate$2(Z.y,0,1)),te=se.getUTCDay(),se=te>4||te===0?utcMonday$2.ceil(se):utcMonday$2(se),se=utcDay$5.offset(se,(Z.V-1)*7),Z.y=se.getUTCFullYear(),Z.m=se.getUTCMonth(),Z.d=se.getUTCDate()+(Z.w+6)%7):(se=localDate$2(newDate$2(Z.y,0,1)),te=se.getDay(),se=te>4||te===0?monday$2.ceil(se):monday$2(se),se=timeDay$2.offset(se,(Z.V-1)*7),Z.y=se.getFullYear(),Z.m=se.getMonth(),Z.d=se.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),te="Z"in Z?utcDate$2(newDate$2(Z.y,0,1)).getUTCDay():localDate$2(newDate$2(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(te+5)%7:Z.w+Z.U*7-(te+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,utcDate$2(Z)):localDate$2(Z)}}function V(J,oe,ee,Z){for(var ie=0,se=oe.length,te=ee.length,fe,we;ie=te)return-1;if(fe=oe.charCodeAt(ie++),fe===37){if(fe=oe.charAt(ie++),we=H[fe in pads$2?oe.charAt(ie++):fe],!we||(Z=we(J,ee,Z))<0)return-1}else if(fe!=ee.charCodeAt(Z++))return-1}return Z}function z(J,oe,ee){var Z=f.exec(oe.slice(ee));return Z?(J.p=d.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function W(J,oe,ee){var Z=m.exec(oe.slice(ee));return Z?(J.w=b.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function T(J,oe,ee){var Z=g.exec(oe.slice(ee));return Z?(J.w=p.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function U(J,oe,ee){var Z=R.exec(oe.slice(ee));return Z?(J.m=L.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function I(J,oe,ee){var Z=$.exec(oe.slice(ee));return Z?(J.m=S.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function ae(J,oe,ee){return V(J,t,oe,ee)}function Q(J,oe,ee){return V(J,r,oe,ee)}function ue(J,oe,ee){return V(J,n,oe,ee)}function _e(J){return l[J.getDay()]}function ke(J){return o[J.getDay()]}function de(J){return h[J.getMonth()]}function ce(J){return u[J.getMonth()]}function he(J){return i[+(J.getHours()>=12)]}function Se(J){return 1+~~(J.getMonth()/3)}function ve(J){return l[J.getUTCDay()]}function me(J){return o[J.getUTCDay()]}function Ce(J){return h[J.getUTCMonth()]}function xe(J){return u[J.getUTCMonth()]}function Ne(J){return i[+(J.getUTCHours()>=12)]}function pe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var oe=G(J+="",N);return oe.toString=function(){return J},oe},parse:function(J){var oe=P(J+="",!1);return oe.toString=function(){return J},oe},utcFormat:function(J){var oe=G(J+="",F);return oe.toString=function(){return J},oe},utcParse:function(J){var oe=P(J+="",!0);return oe.toString=function(){return J},oe}}}var pads$2={"-":"",_:" ",0:"0"},numberRe$2=/^\s*\d+/,percentRe$2=/^%/,requoteRe$2=/[\\^$*+?|[\]().{}]/g;function pad$3(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[t.toLowerCase(),r]))}function parseWeekdayNumberSunday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone$2(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent$2(e,t,r){var n=percentRe$2.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp$2(e,t,r){var n=numberRe$2.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds$2(e,t,r){var n=numberRe$2.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth$2(e,t){return pad$3(e.getDate(),t,2)}function formatHour24$2(e,t){return pad$3(e.getHours(),t,2)}function formatHour12$2(e,t){return pad$3(e.getHours()%12||12,t,2)}function formatDayOfYear$2(e,t){return pad$3(1+timeDay$2.count(timeYear$2(e),e),t,3)}function formatMilliseconds$2(e,t){return pad$3(e.getMilliseconds(),t,3)}function formatMicroseconds$2(e,t){return formatMilliseconds$2(e,t)+"000"}function formatMonthNumber$2(e,t){return pad$3(e.getMonth()+1,t,2)}function formatMinutes$2(e,t){return pad$3(e.getMinutes(),t,2)}function formatSeconds$2(e,t){return pad$3(e.getSeconds(),t,2)}function formatWeekdayNumberMonday$2(e){var t=e.getDay();return t===0?7:t}function formatWeekNumberSunday$2(e,t){return pad$3(sunday$2.count(timeYear$2(e)-1,e),t,2)}function dISO$2(e){var t=e.getDay();return t>=4||t===0?thursday$2(e):thursday$2.ceil(e)}function formatWeekNumberISO$2(e,t){return e=dISO$2(e),pad$3(thursday$2.count(timeYear$2(e),e)+(timeYear$2(e).getDay()===4),t,2)}function formatWeekdayNumberSunday$2(e){return e.getDay()}function formatWeekNumberMonday$2(e,t){return pad$3(monday$2.count(timeYear$2(e)-1,e),t,2)}function formatYear$3(e,t){return pad$3(e.getFullYear()%100,t,2)}function formatYearISO$2(e,t){return e=dISO$2(e),pad$3(e.getFullYear()%100,t,2)}function formatFullYear$2(e,t){return pad$3(e.getFullYear()%1e4,t,4)}function formatFullYearISO$2(e,t){var r=e.getDay();return e=r>=4||r===0?thursday$2(e):thursday$2.ceil(e),pad$3(e.getFullYear()%1e4,t,4)}function formatZone$2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad$3(t/60|0,"0",2)+pad$3(t%60,"0",2)}function formatUTCDayOfMonth$2(e,t){return pad$3(e.getUTCDate(),t,2)}function formatUTCHour24$2(e,t){return pad$3(e.getUTCHours(),t,2)}function formatUTCHour12$2(e,t){return pad$3(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear$2(e,t){return pad$3(1+utcDay$5.count(utcYear$5(e),e),t,3)}function formatUTCMilliseconds$2(e,t){return pad$3(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds$2(e,t){return formatUTCMilliseconds$2(e,t)+"000"}function formatUTCMonthNumber$2(e,t){return pad$3(e.getUTCMonth()+1,t,2)}function formatUTCMinutes$2(e,t){return pad$3(e.getUTCMinutes(),t,2)}function formatUTCSeconds$2(e,t){return pad$3(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday$2(e){var t=e.getUTCDay();return t===0?7:t}function formatUTCWeekNumberSunday$2(e,t){return pad$3(utcSunday$2.count(utcYear$5(e)-1,e),t,2)}function UTCdISO$2(e){var t=e.getUTCDay();return t>=4||t===0?utcThursday$2(e):utcThursday$2.ceil(e)}function formatUTCWeekNumberISO$2(e,t){return e=UTCdISO$2(e),pad$3(utcThursday$2.count(utcYear$5(e),e)+(utcYear$5(e).getUTCDay()===4),t,2)}function formatUTCWeekdayNumberSunday$2(e){return e.getUTCDay()}function formatUTCWeekNumberMonday$2(e,t){return pad$3(utcMonday$2.count(utcYear$5(e)-1,e),t,2)}function formatUTCYear$2(e,t){return pad$3(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO$2(e,t){return e=UTCdISO$2(e),pad$3(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear$2(e,t){return pad$3(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO$2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?utcThursday$2(e):utcThursday$2.ceil(e),pad$3(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone$2(){return"+0000"}function formatLiteralPercent$2(){return"%"}function formatUnixTimestamp$2(e){return+e}function formatUnixTimestampSeconds$2(e){return Math.floor(+e/1e3)}var locale$3,timeFormat$2;defaultLocale$3({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale$3(e){return locale$3=formatLocale$3(e),timeFormat$2=locale$3.format,locale$3.parse,locale$3.utcFormat,locale$3.utcParse,locale$3}function date$2(e){return new Date(e)}function number$4(e){return e instanceof Date?+e:+new Date(+e)}function calendar$1(e,t,r,n,i,o,l,u,h,f){var d=continuous$1(),g=d.invert,p=d.domain,m=f(".%L"),b=f(":%S"),$=f("%I:%M"),S=f("%I %p"),R=f("%a %d"),L=f("%b %d"),N=f("%B"),F=f("%Y");function H(G){return(h(G)epsilon$6)if(!(Math.abs(d*u-h*f)>epsilon$6)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=r-o,m=n-l,b=u*u+h*h,$=p*p+m*m,S=Math.sqrt(b),R=Math.sqrt(g),L=i*Math.tan((pi$6-Math.acos((b+g-$)/(2*S*R)))/2),N=L/R,F=L/S;Math.abs(N-1)>epsilon$6&&(this._+="L"+(e+N*f)+","+(t+N*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>f*m)+","+(this._x1=e+F*u)+","+(this._y1=t+F*h)}},arc:function(e,t,r,n,i,o){e=+e,t=+t,r=+r,o=!!o;var l=r*Math.cos(n),u=r*Math.sin(n),h=e+l,f=t+u,d=1^o,g=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+h+","+f:(Math.abs(this._x1-h)>epsilon$6||Math.abs(this._y1-f)>epsilon$6)&&(this._+="L"+h+","+f),r&&(g<0&&(g=g%tau$6+tau$6),g>tauEpsilon$1?this._+="A"+r+","+r+",0,1,"+d+","+(e-l)+","+(t-u)+"A"+r+","+r+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):g>epsilon$6&&(this._+="A"+r+","+r+",0,"+ +(g>=pi$6)+","+d+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function constant$e(e){return function(){return e}}var abs$3=Math.abs,atan2$2=Math.atan2,cos$3=Math.cos,max$3=Math.max,min$2=Math.min,sin$3=Math.sin,sqrt$3=Math.sqrt,epsilon$5=1e-12,pi$5=Math.PI,halfPi$4=pi$5/2,tau$5=2*pi$5;function acos$2(e){return e>1?0:e<-1?pi$5:Math.acos(e)}function asin$2(e){return e>=1?halfPi$4:e<=-1?-halfPi$4:Math.asin(e)}function arcInnerRadius$1(e){return e.innerRadius}function arcOuterRadius$1(e){return e.outerRadius}function arcStartAngle$1(e){return e.startAngle}function arcEndAngle$1(e){return e.endAngle}function arcPadAngle$1(e){return e&&e.padAngle}function intersect$3(e,t,r,n,i,o,l,u){var h=r-e,f=n-t,d=l-i,g=u-o,p=g*h-d*f;if(!(p*pae*ae+Q*Q&&(V=W,z=T),{cx:V,cy:z,x01:-d,y01:-g,x11:V*(i/H-1),y11:z*(i/H-1)}}function arc$1(){var e=arcInnerRadius$1,t=arcOuterRadius$1,r=constant$e(0),n=null,i=arcStartAngle$1,o=arcEndAngle$1,l=arcPadAngle$1,u=null;function h(){var f,d,g=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-halfPi$4,b=o.apply(this,arguments)-halfPi$4,$=abs$3(b-m),S=b>m;if(u||(u=f=path$1()),pepsilon$5))u.moveTo(0,0);else if($>tau$5-epsilon$5)u.moveTo(p*cos$3(m),p*sin$3(m)),u.arc(0,0,p,m,b,!S),g>epsilon$5&&(u.moveTo(g*cos$3(b),g*sin$3(b)),u.arc(0,0,g,b,m,S));else{var R=m,L=b,N=m,F=b,H=$,G=$,P=l.apply(this,arguments)/2,V=P>epsilon$5&&(n?+n.apply(this,arguments):sqrt$3(g*g+p*p)),z=min$2(abs$3(p-g)/2,+r.apply(this,arguments)),W=z,T=z,U,I;if(V>epsilon$5){var ae=asin$2(V/g*sin$3(P)),Q=asin$2(V/p*sin$3(P));(H-=ae*2)>epsilon$5?(ae*=S?1:-1,N+=ae,F-=ae):(H=0,N=F=(m+b)/2),(G-=Q*2)>epsilon$5?(Q*=S?1:-1,R+=Q,L-=Q):(G=0,R=L=(m+b)/2)}var ue=p*cos$3(R),_e=p*sin$3(R),ke=g*cos$3(F),de=g*sin$3(F);if(z>epsilon$5){var ce=p*cos$3(L),he=p*sin$3(L),Se=g*cos$3(N),ve=g*sin$3(N),me;if($epsilon$5?T>epsilon$5?(U=cornerTangents$1(Se,ve,ue,_e,p,T,S),I=cornerTangents$1(ce,he,ke,de,p,T,S),u.moveTo(U.cx+U.x01,U.cy+U.y01),Tepsilon$5)||!(H>epsilon$5)?u.lineTo(ke,de):W>epsilon$5?(U=cornerTangents$1(ke,de,ce,he,g,-W,S),I=cornerTangents$1(ue,_e,Se,ve,g,-W,S),u.lineTo(U.cx+U.x01,U.cy+U.y01),We?1:t>=e?0:NaN}function identity$a(e){return e}function pie$1(){var e=identity$a,t=descending$3,r=null,n=constant$e(0),i=constant$e(tau$5),o=constant$e(0);function l(u){var h,f=(u=array$4(u)).length,d,g,p=0,m=new Array(f),b=new Array(f),$=+n.apply(this,arguments),S=Math.min(tau$5,Math.max(-tau$5,i.apply(this,arguments)-$)),R,L=Math.min(Math.abs(S)/f,o.apply(this,arguments)),N=L*(S<0?-1:1),F;for(h=0;h0&&(p+=F);for(t!=null?m.sort(function(H,G){return t(b[H],b[G])}):r!=null&&m.sort(function(H,G){return r(u[H],u[G])}),h=0,g=p?(S-f*N)/p:0;h0?F*g:0)+N,b[d]={data:u[d],index:h,value:F,startAngle:$,endAngle:R,padAngle:L};return b}return l.value=function(u){return arguments.length?(e=typeof u=="function"?u:constant$e(+u),l):e},l.sortValues=function(u){return arguments.length?(t=u,r=null,l):t},l.sort=function(u){return arguments.length?(r=u,t=null,l):r},l.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:constant$e(+u),l):n},l.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:constant$e(+u),l):i},l.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:constant$e(+u),l):o},l}function noop$4(){}function point$8(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Basis$1(e){this._context=e}Basis$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$8(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis$1(e)}function BasisClosed$1(e){this._context=e}BasisClosed$1.prototype={areaStart:noop$4,areaEnd:noop$4,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed$1(e)}function BasisOpen$1(e){this._context=e}BasisOpen$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:point$8(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen$1(e)}function LinearClosed$1(e){this._context=e}LinearClosed$1.prototype={areaStart:noop$4,areaEnd:noop$4,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed$1(e)}function sign$2(e){return e<0?-1:1}function slope3$1(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),l=(r-e._y1)/(i||n<0&&-0),u=(o*i+l*n)/(n+i);return(sign$2(o)+sign$2(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(u))||0}function slope2$1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function point$7(e,t,r){var n=e._x0,i=e._y0,o=e._x1,l=e._y1,u=(o-n)/3;e._context.bezierCurveTo(n+u,i+u*t,o-u,l-u*r,o,l)}function MonotoneX$1(e){this._context=e}MonotoneX$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$7(this,this._t0,slope2$1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$7(this,slope2$1(this,r=slope3$1(this,e,t)),r);break;default:point$7(this,this._t0,r=slope3$1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function MonotoneY$1(e){this._context=new ReflectContext$1(e)}(MonotoneY$1.prototype=Object.create(MonotoneX$1.prototype)).point=function(e,t){MonotoneX$1.prototype.point.call(this,t,e)};function ReflectContext$1(e){this._context=e}ReflectContext$1.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function monotoneX$1(e){return new MonotoneX$1(e)}function monotoneY$1(e){return new MonotoneY$1(e)}function Natural$1(e){this._context=e}Natural$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=controlPoints$1(e),i=controlPoints$1(t),o=0,l=1;l=0;--t)i[t]=(l[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step$1(e,.5)}function stepBefore$1(e){return new Step$1(e,0)}function stepAfter$1(e){return new Step$1(e,1)}var t0$2=new Date,t1$2=new Date;function newInterval$1(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var l=i(o),u=i.ceil(o);return o-l0))return h;do h.push(f=new Date(+o)),t(o,u),e(o);while(f=l)for(;e(l),!o(l);)l.setTime(l-1)},function(l,u){if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!o(l););else for(;--u>=0;)for(;t(l,1),!o(l););})},r&&(i.count=function(o,l){return t0$2.setTime(+o),t1$2.setTime(+l),e(t0$2),e(t1$2),Math.floor(r(t0$2,t1$2))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?function(l){return n(l)%o===0}:function(l){return i.count(0,l)%o===0}):i}),i}const durationSecond$2=1e3,durationMinute$2=durationSecond$2*60,durationHour$2=durationMinute$2*60,durationDay$2=durationHour$2*24,durationWeek$2=durationDay$2*7;var day$1=newInterval$1(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute$2)/durationDay$2,e=>e.getDate()-1);const timeDay$1=day$1;day$1.range;function weekday$1(e){return newInterval$1(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute$2)/durationWeek$2})}var sunday$1=weekday$1(0),monday$1=weekday$1(1),tuesday$1=weekday$1(2),wednesday$1=weekday$1(3),thursday$1=weekday$1(4),friday$1=weekday$1(5),saturday$1=weekday$1(6);sunday$1.range;monday$1.range;tuesday$1.range;wednesday$1.range;thursday$1.range;friday$1.range;saturday$1.range;var year$1=newInterval$1(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});year$1.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$1(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const timeYear$1=year$1;year$1.range;var utcDay$2=newInterval$1(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay$2},function(e){return e.getUTCDate()-1});const utcDay$3=utcDay$2;utcDay$2.range;function utcWeekday$1(e){return newInterval$1(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/durationWeek$2})}var utcSunday$1=utcWeekday$1(0),utcMonday$1=utcWeekday$1(1),utcTuesday$1=utcWeekday$1(2),utcWednesday$1=utcWeekday$1(3),utcThursday$1=utcWeekday$1(4),utcFriday$1=utcWeekday$1(5),utcSaturday$1=utcWeekday$1(6);utcSunday$1.range;utcMonday$1.range;utcTuesday$1.range;utcWednesday$1.range;utcThursday$1.range;utcFriday$1.range;utcSaturday$1.range;var utcYear$2=newInterval$1(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});utcYear$2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval$1(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const utcYear$3=utcYear$2;utcYear$2.range;function localDate$1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate$1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate$1(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function formatLocale$2(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,l=e.shortDays,u=e.months,h=e.shortMonths,f=formatRe$1(i),d=formatLookup$1(i),g=formatRe$1(o),p=formatLookup$1(o),m=formatRe$1(l),b=formatLookup$1(l),$=formatRe$1(u),S=formatLookup$1(u),R=formatRe$1(h),L=formatLookup$1(h),N={a:_e,A:ke,b:de,B:ce,c:null,d:formatDayOfMonth$1,e:formatDayOfMonth$1,f:formatMicroseconds$1,g:formatYearISO$1,G:formatFullYearISO$1,H:formatHour24$1,I:formatHour12$1,j:formatDayOfYear$1,L:formatMilliseconds$1,m:formatMonthNumber$1,M:formatMinutes$1,p:he,q:Se,Q:formatUnixTimestamp$1,s:formatUnixTimestampSeconds$1,S:formatSeconds$1,u:formatWeekdayNumberMonday$1,U:formatWeekNumberSunday$1,V:formatWeekNumberISO$1,w:formatWeekdayNumberSunday$1,W:formatWeekNumberMonday$1,x:null,X:null,y:formatYear$2,Y:formatFullYear$1,Z:formatZone$1,"%":formatLiteralPercent$1},F={a:ve,A:me,b:Ce,B:xe,c:null,d:formatUTCDayOfMonth$1,e:formatUTCDayOfMonth$1,f:formatUTCMicroseconds$1,g:formatUTCYearISO$1,G:formatUTCFullYearISO$1,H:formatUTCHour24$1,I:formatUTCHour12$1,j:formatUTCDayOfYear$1,L:formatUTCMilliseconds$1,m:formatUTCMonthNumber$1,M:formatUTCMinutes$1,p:Ne,q:pe,Q:formatUnixTimestamp$1,s:formatUnixTimestampSeconds$1,S:formatUTCSeconds$1,u:formatUTCWeekdayNumberMonday$1,U:formatUTCWeekNumberSunday$1,V:formatUTCWeekNumberISO$1,w:formatUTCWeekdayNumberSunday$1,W:formatUTCWeekNumberMonday$1,x:null,X:null,y:formatUTCYear$1,Y:formatUTCFullYear$1,Z:formatUTCZone$1,"%":formatLiteralPercent$1},H={a:W,A:T,b:U,B:I,c:ae,d:parseDayOfMonth$1,e:parseDayOfMonth$1,f:parseMicroseconds$1,g:parseYear$1,G:parseFullYear$1,H:parseHour24$1,I:parseHour24$1,j:parseDayOfYear$1,L:parseMilliseconds$1,m:parseMonthNumber$1,M:parseMinutes$1,p:z,q:parseQuarter$1,Q:parseUnixTimestamp$1,s:parseUnixTimestampSeconds$1,S:parseSeconds$1,u:parseWeekdayNumberMonday$1,U:parseWeekNumberSunday$1,V:parseWeekNumberISO$1,w:parseWeekdayNumberSunday$1,W:parseWeekNumberMonday$1,x:Q,X:ue,y:parseYear$1,Y:parseFullYear$1,Z:parseZone$1,"%":parseLiteralPercent$1};N.x=G(r,N),N.X=G(n,N),N.c=G(t,N),F.x=G(r,F),F.X=G(n,F),F.c=G(t,F);function G(J,oe){return function(ee){var Z=[],ie=-1,se=0,te=J.length,fe,we,Ye;for(ee instanceof Date||(ee=new Date(+ee));++ie53)return null;"w"in Z||(Z.w=1),"Z"in Z?(se=utcDate$1(newDate$1(Z.y,0,1)),te=se.getUTCDay(),se=te>4||te===0?utcMonday$1.ceil(se):utcMonday$1(se),se=utcDay$3.offset(se,(Z.V-1)*7),Z.y=se.getUTCFullYear(),Z.m=se.getUTCMonth(),Z.d=se.getUTCDate()+(Z.w+6)%7):(se=localDate$1(newDate$1(Z.y,0,1)),te=se.getDay(),se=te>4||te===0?monday$1.ceil(se):monday$1(se),se=timeDay$1.offset(se,(Z.V-1)*7),Z.y=se.getFullYear(),Z.m=se.getMonth(),Z.d=se.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),te="Z"in Z?utcDate$1(newDate$1(Z.y,0,1)).getUTCDay():localDate$1(newDate$1(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(te+5)%7:Z.w+Z.U*7-(te+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,utcDate$1(Z)):localDate$1(Z)}}function V(J,oe,ee,Z){for(var ie=0,se=oe.length,te=ee.length,fe,we;ie=te)return-1;if(fe=oe.charCodeAt(ie++),fe===37){if(fe=oe.charAt(ie++),we=H[fe in pads$1?oe.charAt(ie++):fe],!we||(Z=we(J,ee,Z))<0)return-1}else if(fe!=ee.charCodeAt(Z++))return-1}return Z}function z(J,oe,ee){var Z=f.exec(oe.slice(ee));return Z?(J.p=d.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function W(J,oe,ee){var Z=m.exec(oe.slice(ee));return Z?(J.w=b.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function T(J,oe,ee){var Z=g.exec(oe.slice(ee));return Z?(J.w=p.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function U(J,oe,ee){var Z=R.exec(oe.slice(ee));return Z?(J.m=L.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function I(J,oe,ee){var Z=$.exec(oe.slice(ee));return Z?(J.m=S.get(Z[0].toLowerCase()),ee+Z[0].length):-1}function ae(J,oe,ee){return V(J,t,oe,ee)}function Q(J,oe,ee){return V(J,r,oe,ee)}function ue(J,oe,ee){return V(J,n,oe,ee)}function _e(J){return l[J.getDay()]}function ke(J){return o[J.getDay()]}function de(J){return h[J.getMonth()]}function ce(J){return u[J.getMonth()]}function he(J){return i[+(J.getHours()>=12)]}function Se(J){return 1+~~(J.getMonth()/3)}function ve(J){return l[J.getUTCDay()]}function me(J){return o[J.getUTCDay()]}function Ce(J){return h[J.getUTCMonth()]}function xe(J){return u[J.getUTCMonth()]}function Ne(J){return i[+(J.getUTCHours()>=12)]}function pe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var oe=G(J+="",N);return oe.toString=function(){return J},oe},parse:function(J){var oe=P(J+="",!1);return oe.toString=function(){return J},oe},utcFormat:function(J){var oe=G(J+="",F);return oe.toString=function(){return J},oe},utcParse:function(J){var oe=P(J+="",!0);return oe.toString=function(){return J},oe}}}var pads$1={"-":"",_:" ",0:"0"},numberRe$1=/^\s*\d+/,percentRe$1=/^%/,requoteRe$1=/[\\^$*+?|[\]().{}]/g;function pad$2(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[t.toLowerCase(),r]))}function parseWeekdayNumberSunday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone$1(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent$1(e,t,r){var n=percentRe$1.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp$1(e,t,r){var n=numberRe$1.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds$1(e,t,r){var n=numberRe$1.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth$1(e,t){return pad$2(e.getDate(),t,2)}function formatHour24$1(e,t){return pad$2(e.getHours(),t,2)}function formatHour12$1(e,t){return pad$2(e.getHours()%12||12,t,2)}function formatDayOfYear$1(e,t){return pad$2(1+timeDay$1.count(timeYear$1(e),e),t,3)}function formatMilliseconds$1(e,t){return pad$2(e.getMilliseconds(),t,3)}function formatMicroseconds$1(e,t){return formatMilliseconds$1(e,t)+"000"}function formatMonthNumber$1(e,t){return pad$2(e.getMonth()+1,t,2)}function formatMinutes$1(e,t){return pad$2(e.getMinutes(),t,2)}function formatSeconds$1(e,t){return pad$2(e.getSeconds(),t,2)}function formatWeekdayNumberMonday$1(e){var t=e.getDay();return t===0?7:t}function formatWeekNumberSunday$1(e,t){return pad$2(sunday$1.count(timeYear$1(e)-1,e),t,2)}function dISO$1(e){var t=e.getDay();return t>=4||t===0?thursday$1(e):thursday$1.ceil(e)}function formatWeekNumberISO$1(e,t){return e=dISO$1(e),pad$2(thursday$1.count(timeYear$1(e),e)+(timeYear$1(e).getDay()===4),t,2)}function formatWeekdayNumberSunday$1(e){return e.getDay()}function formatWeekNumberMonday$1(e,t){return pad$2(monday$1.count(timeYear$1(e)-1,e),t,2)}function formatYear$2(e,t){return pad$2(e.getFullYear()%100,t,2)}function formatYearISO$1(e,t){return e=dISO$1(e),pad$2(e.getFullYear()%100,t,2)}function formatFullYear$1(e,t){return pad$2(e.getFullYear()%1e4,t,4)}function formatFullYearISO$1(e,t){var r=e.getDay();return e=r>=4||r===0?thursday$1(e):thursday$1.ceil(e),pad$2(e.getFullYear()%1e4,t,4)}function formatZone$1(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad$2(t/60|0,"0",2)+pad$2(t%60,"0",2)}function formatUTCDayOfMonth$1(e,t){return pad$2(e.getUTCDate(),t,2)}function formatUTCHour24$1(e,t){return pad$2(e.getUTCHours(),t,2)}function formatUTCHour12$1(e,t){return pad$2(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear$1(e,t){return pad$2(1+utcDay$3.count(utcYear$3(e),e),t,3)}function formatUTCMilliseconds$1(e,t){return pad$2(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds$1(e,t){return formatUTCMilliseconds$1(e,t)+"000"}function formatUTCMonthNumber$1(e,t){return pad$2(e.getUTCMonth()+1,t,2)}function formatUTCMinutes$1(e,t){return pad$2(e.getUTCMinutes(),t,2)}function formatUTCSeconds$1(e,t){return pad$2(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday$1(e){var t=e.getUTCDay();return t===0?7:t}function formatUTCWeekNumberSunday$1(e,t){return pad$2(utcSunday$1.count(utcYear$3(e)-1,e),t,2)}function UTCdISO$1(e){var t=e.getUTCDay();return t>=4||t===0?utcThursday$1(e):utcThursday$1.ceil(e)}function formatUTCWeekNumberISO$1(e,t){return e=UTCdISO$1(e),pad$2(utcThursday$1.count(utcYear$3(e),e)+(utcYear$3(e).getUTCDay()===4),t,2)}function formatUTCWeekdayNumberSunday$1(e){return e.getUTCDay()}function formatUTCWeekNumberMonday$1(e,t){return pad$2(utcMonday$1.count(utcYear$3(e)-1,e),t,2)}function formatUTCYear$1(e,t){return pad$2(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO$1(e,t){return e=UTCdISO$1(e),pad$2(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear$1(e,t){return pad$2(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO$1(e,t){var r=e.getUTCDay();return e=r>=4||r===0?utcThursday$1(e):utcThursday$1.ceil(e),pad$2(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone$1(){return"+0000"}function formatLiteralPercent$1(){return"%"}function formatUnixTimestamp$1(e){return+e}function formatUnixTimestampSeconds$1(e){return Math.floor(+e/1e3)}var locale$2,timeFormat$1;defaultLocale$2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale$2(e){return locale$2=formatLocale$2(e),timeFormat$1=locale$2.format,locale$2.parse,locale$2.utcFormat,locale$2.utcParse,locale$2}var frame$1=0,timeout$3=0,interval$2=0,pokeDelay$1=1e3,taskHead$1,taskTail$1,clockLast$1=0,clockNow$1=0,clockSkew$1=0,clock$1=typeof performance=="object"&&performance.now?performance:Date,setFrame$1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function now$1(){return clockNow$1||(setFrame$1(clearNow$1),clockNow$1=clock$1.now()+clockSkew$1)}function clearNow$1(){clockNow$1=0}function Timer$1(){this._call=this._time=this._next=null}Timer$1.prototype=timer$1.prototype={constructor:Timer$1,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?now$1():+r)+(t==null?0:+t),!this._next&&taskTail$1!==this&&(taskTail$1?taskTail$1._next=this:taskHead$1=this,taskTail$1=this),this._call=e,this._time=r,sleep$1()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep$1())}};function timer$1(e,t,r){var n=new Timer$1;return n.restart(e,t,r),n}function timerFlush$1(){now$1(),++frame$1;for(var e=taskHead$1,t;e;)(t=clockNow$1-e._time)>=0&&e._call.call(void 0,t),e=e._next;--frame$1}function wake$1(){clockNow$1=(clockLast$1=clock$1.now())+clockSkew$1,frame$1=timeout$3=0;try{timerFlush$1()}finally{frame$1=0,nap$1(),clockNow$1=0}}function poke$1(){var e=clock$1.now(),t=e-clockLast$1;t>pokeDelay$1&&(clockSkew$1-=t,clockLast$1=e)}function nap$1(){for(var e,t=taskHead$1,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:taskHead$1=r);taskTail$1=e,sleep$1(n)}function sleep$1(e){if(!frame$1){timeout$3&&(timeout$3=clearTimeout(timeout$3));var t=e-clockNow$1;t>24?(e<1/0&&(timeout$3=setTimeout(wake$1,e-clock$1.now()-clockSkew$1)),interval$2&&(interval$2=clearInterval(interval$2))):(interval$2||(clockLast$1=clock$1.now(),interval$2=setInterval(poke$1,pokeDelay$1)),frame$1=1,setFrame$1(wake$1))}}function timeout$2(e,t,r){var n=new Timer$1;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var emptyOn$1=dispatch$1("start","end","cancel","interrupt"),emptyTween$1=[],CREATED$1=0,SCHEDULED$1=1,STARTING$1=2,STARTED$1=3,RUNNING$1=4,ENDING$1=5,ENDED$1=6;function schedule$1(e,t,r,n,i,o){var l=e.__transition;if(!l)e.__transition={};else if(r in l)return;create$3(e,r,{name:t,index:n,group:i,on:emptyOn$1,tween:emptyTween$1,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:CREATED$1})}function init$3(e,t){var r=get$2(e,t);if(r.state>CREATED$1)throw new Error("too late; already scheduled");return r}function set$3(e,t){var r=get$2(e,t);if(r.state>STARTED$1)throw new Error("too late; already running");return r}function get$2(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function create$3(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=timer$1(o,0,r.time);function o(f){r.state=SCHEDULED$1,r.timer.restart(l,r.delay,r.time),r.delay<=f&&l(f-r.delay)}function l(f){var d,g,p,m;if(r.state!==SCHEDULED$1)return h();for(d in n)if(m=n[d],m.name===r.name){if(m.state===STARTED$1)return timeout$2(l);m.state===RUNNING$1?(m.state=ENDED$1,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[d]):+dSTARTING$1&&n.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function onFunction$1(e,t,r){var n,i,o=start$2(t)?init$3:set$3;return function(){var l=o(this,e),u=l.on;u!==n&&(i=(n=u).copy()).on(t,r),l.on=i}}function transition_on$1(e,t){var r=this._id;return arguments.length<2?get$2(this.node(),r).on.on(e):this.each(onFunction$1(r,e,t))}function removeFunction$1(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function transition_remove$1(){return this.on("end.remove",removeFunction$1(this._id))}function transition_select$1(e){var t=this._name,r=this._id;typeof e!="function"&&(e=selector$1(e));for(var n=this._groups,i=n.length,o=new Array(i),l=0;l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,t,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(i,o,l){var u=[null];u.push.apply(u,o);var h=Function.bind.apply(i,u),f=new h;return l&&_setPrototypeOf(f,l.prototype),f},_construct.apply(null,arguments)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),i=1;i/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function e(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function e(t,r){if(_typeof(t)!=="object"||typeof t.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(u){return u},createScriptURL:function(u){return u}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function createDOMPurify(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),t=function(ye){return createDOMPurify(ye)};if(t.version="2.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var r=e.document,n=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,l=e.Node,u=e.Element,h=e.NodeFilter,f=e.NamedNodeMap,d=f===void 0?e.NamedNodeMap||e.MozNamedAttrMap:f,g=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,b=u.prototype,$=lookupGetter(b,"cloneNode"),S=lookupGetter(b,"nextSibling"),R=lookupGetter(b,"childNodes"),L=lookupGetter(b,"parentNode");if(typeof o=="function"){var N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}var F=_createTrustedTypesPolicy(m,r),H=F?F.createHTML(""):"",G=n,P=G.implementation,V=G.createNodeIterator,z=G.createDocumentFragment,W=G.getElementsByTagName,T=r.importNode,U={};try{U=clone$1(n).documentMode?n.documentMode:{}}catch{}var I={};t.isSupported=typeof L=="function"&&P&&typeof P.createHTMLDocument<"u"&&U!==9;var ae=MUSTACHE_EXPR,Q=ERB_EXPR,ue=DATA_ATTR,_e=ARIA_ATTR,ke=IS_SCRIPT_OR_DATA,de=ATTR_WHITESPACE,ce=IS_ALLOWED_URI,he=null,Se=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text$1))),ve=null,me=addToSet({},[].concat(_toConsumableArray(html$2),_toConsumableArray(svg$2),_toConsumableArray(mathMl),_toConsumableArray(xml$1))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ne=null,pe=!0,J=!0,oe=!1,ee=!1,Z=!1,ie=!1,se=!1,te=!1,fe=!1,we=!1,Ye=!0,He=!1,je="user-content-",Pe=!0,Ee=!1,Ie={},Le=null,Be=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Te=null,dt=addToSet({},["audio","video","img","source","image","track"]),Ge=null,rt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml",nt=wt,Ke=!1,Je,Oe=["application/xhtml+xml","text/html"],Me="text/html",Fe,qe=null,et=n.createElement("form"),Ae=function(ye){return ye instanceof RegExp||ye instanceof Function},_t=function(ye){qe&&qe===ye||((!ye||_typeof(ye)!=="object")&&(ye={}),ye=clone$1(ye),Je=Oe.indexOf(ye.PARSER_MEDIA_TYPE)===-1?Je=Me:Je=ye.PARSER_MEDIA_TYPE,Fe=Je==="application/xhtml+xml"?function(Ue){return Ue}:stringToLowerCase,he="ALLOWED_TAGS"in ye?addToSet({},ye.ALLOWED_TAGS,Fe):Se,ve="ALLOWED_ATTR"in ye?addToSet({},ye.ALLOWED_ATTR,Fe):me,Ge="ADD_URI_SAFE_ATTR"in ye?addToSet(clone$1(rt),ye.ADD_URI_SAFE_ATTR,Fe):rt,Te="ADD_DATA_URI_TAGS"in ye?addToSet(clone$1(dt),ye.ADD_DATA_URI_TAGS,Fe):dt,Le="FORBID_CONTENTS"in ye?addToSet({},ye.FORBID_CONTENTS,Fe):Be,xe="FORBID_TAGS"in ye?addToSet({},ye.FORBID_TAGS,Fe):{},Ne="FORBID_ATTR"in ye?addToSet({},ye.FORBID_ATTR,Fe):{},Ie="USE_PROFILES"in ye?ye.USE_PROFILES:!1,pe=ye.ALLOW_ARIA_ATTR!==!1,J=ye.ALLOW_DATA_ATTR!==!1,oe=ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=ye.SAFE_FOR_TEMPLATES||!1,Z=ye.WHOLE_DOCUMENT||!1,te=ye.RETURN_DOM||!1,fe=ye.RETURN_DOM_FRAGMENT||!1,we=ye.RETURN_TRUSTED_TYPE||!1,se=ye.FORCE_BODY||!1,Ye=ye.SANITIZE_DOM!==!1,He=ye.SANITIZE_NAMED_PROPS||!1,Pe=ye.KEEP_CONTENT!==!1,Ee=ye.IN_PLACE||!1,ce=ye.ALLOWED_URI_REGEXP||ce,nt=ye.NAMESPACE||wt,ye.CUSTOM_ELEMENT_HANDLING&&Ae(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&Ae(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ee&&(J=!1),fe&&(te=!0),Ie&&(he=addToSet({},_toConsumableArray(text$1)),ve=[],Ie.html===!0&&(addToSet(he,html$1),addToSet(ve,html$2)),Ie.svg===!0&&(addToSet(he,svg$1),addToSet(ve,svg$2),addToSet(ve,xml$1)),Ie.svgFilters===!0&&(addToSet(he,svgFilters),addToSet(ve,svg$2),addToSet(ve,xml$1)),Ie.mathMl===!0&&(addToSet(he,mathMl$1),addToSet(ve,mathMl),addToSet(ve,xml$1))),ye.ADD_TAGS&&(he===Se&&(he=clone$1(he)),addToSet(he,ye.ADD_TAGS,Fe)),ye.ADD_ATTR&&(ve===me&&(ve=clone$1(ve)),addToSet(ve,ye.ADD_ATTR,Fe)),ye.ADD_URI_SAFE_ATTR&&addToSet(Ge,ye.ADD_URI_SAFE_ATTR,Fe),ye.FORBID_CONTENTS&&(Le===Be&&(Le=clone$1(Le)),addToSet(Le,ye.FORBID_CONTENTS,Fe)),Pe&&(he["#text"]=!0),Z&&addToSet(he,["html","head","body"]),he.table&&(addToSet(he,["tbody"]),delete xe.tbody),freeze&&freeze(ye),qe=ye)},Re=addToSet({},["mi","mo","mn","ms","mtext"]),lt=addToSet({},["foreignobject","desc","title","annotation-xml"]),xt=addToSet({},["title","style","font","a","script"]),bt=addToSet({},svg$1);addToSet(bt,svgFilters),addToSet(bt,svgDisallowed);var $t=addToSet({},mathMl$1);addToSet($t,mathMlDisallowed);var kt=function(ye){var Ue=L(ye);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:wt,tagName:"template"});var Ve=stringToLowerCase(ye.tagName),ot=stringToLowerCase(Ue.tagName);return ye.namespaceURI===st?Ue.namespaceURI===wt?Ve==="svg":Ue.namespaceURI===it?Ve==="svg"&&(ot==="annotation-xml"||Re[ot]):Boolean(bt[Ve]):ye.namespaceURI===it?Ue.namespaceURI===wt?Ve==="math":Ue.namespaceURI===st?Ve==="math"&<[ot]:Boolean($t[Ve]):ye.namespaceURI===wt?Ue.namespaceURI===st&&!lt[ot]||Ue.namespaceURI===it&&!Re[ot]?!1:!$t[Ve]&&(xt[Ve]||!bt[Ve]):!1},tt=function(ye){arrayPush(t.removed,{element:ye});try{ye.parentNode.removeChild(ye)}catch{try{ye.outerHTML=H}catch{ye.remove()}}},ht=function(ye,Ue){try{arrayPush(t.removed,{attribute:Ue.getAttributeNode(ye),from:Ue})}catch{arrayPush(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(ye),ye==="is"&&!ve[ye])if(te||fe)try{tt(Ue)}catch{}else try{Ue.setAttribute(ye,"")}catch{}},vt=function(ye){var Ue,Ve;if(se)ye=""+ye;else{var ot=stringMatch(ye,/^[\r\n\t ]+/);Ve=ot&&ot[0]}Je==="application/xhtml+xml"&&(ye=''+ye+"");var Mt=F?F.createHTML(ye):ye;if(nt===wt)try{Ue=new p().parseFromString(Mt,Je)}catch{}if(!Ue||!Ue.documentElement){Ue=P.createDocument(nt,"template",null);try{Ue.documentElement.innerHTML=Ke?"":Mt}catch{}}var At=Ue.body||Ue.documentElement;return ye&&Ve&&At.insertBefore(n.createTextNode(Ve),At.childNodes[0]||null),nt===wt?W.call(Ue,Z?"html":"body")[0]:Z?Ue.documentElement:At},gt=function(ye){return V.call(ye.ownerDocument||ye,ye,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},tr=function(ye){return ye instanceof g&&(typeof ye.nodeName!="string"||typeof ye.textContent!="string"||typeof ye.removeChild!="function"||!(ye.attributes instanceof d)||typeof ye.removeAttribute!="function"||typeof ye.setAttribute!="function"||typeof ye.namespaceURI!="string"||typeof ye.insertBefore!="function")},Ht=function(ye){return _typeof(l)==="object"?ye instanceof l:ye&&_typeof(ye)==="object"&&typeof ye.nodeType=="number"&&typeof ye.nodeName=="string"},St=function(ye,Ue,Ve){!I[ye]||arrayForEach(I[ye],function(ot){ot.call(t,Ue,Ve,qe)})},ft=function(ye){var Ue;if(St("beforeSanitizeElements",ye,null),tr(ye)||regExpTest(/[\u0080-\uFFFF]/,ye.nodeName))return tt(ye),!0;var Ve=Fe(ye.nodeName);if(St("uponSanitizeElement",ye,{tagName:Ve,allowedTags:he}),ye.hasChildNodes()&&!Ht(ye.firstElementChild)&&(!Ht(ye.content)||!Ht(ye.content.firstElementChild))&®ExpTest(/<[/\w]/g,ye.innerHTML)&®ExpTest(/<[/\w]/g,ye.textContent)||Ve==="select"&®ExpTest(/