import{j as Sn}from"./jsx-runtime-94f6e698.js";import{R as Uh}from"./index-8ce4a492.js";import{_ as me,a as Un,b as Wh,c as V,d as Bh,e as yu,u as Vh}from"./isNativeReflectConstruct-099dc9ad.js";import{R as z,r as J}from"./index-8db94870.js";import{p as jh}from"./papaparse.min-839a1868.js";import{g as nf,c as nt}from"./_commonjsHelpers-042e6b4d.js";import{P as $}from"./index-1fc0ca9a.js";var Fr=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var i=this,a=r||function(){};return this.listeners.push(a),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(o){return o!==a}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),Ai=typeof window>"u";function Xe(){}function qh(e,t){return typeof e=="function"?e(t):e}function Do(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ii(e){return Array.isArray(e)?e:[e]}function rf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gi(e,t,n){return oa(e)?typeof t=="function"?me({},n,{queryKey:e,queryFn:t}):me({},t,{queryKey:e}):e}function en(e,t,n){return oa(e)?[me({},t,{queryKey:e}),n]:[e||{},t]}function Yh(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function wu(e,t){var n=e.active,r=e.exact,i=e.fetching,a=e.inactive,o=e.predicate,s=e.queryKey,u=e.stale;if(oa(s)){if(r){if(t.queryHash!==vs(s,t.options))return!1}else if(!Oi(t.queryKey,s))return!1}var l=Yh(n,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i=="boolean"&&t.isFetching()!==i||o&&!o(t))}function bu(e,t){var n=e.exact,r=e.fetching,i=e.predicate,a=e.mutationKey;if(oa(a)){if(!t.options.mutationKey)return!1;if(n){if(fn(t.options.mutationKey)!==fn(a))return!1}else if(!Oi(t.options.mutationKey,a))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function vs(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||fn;return n(e)}function fn(e){var t=Ii(e);return Qh(t)}function Qh(e){return JSON.stringify(e,function(t,n){return Eo(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function Oi(e,t){return af(Ii(e),Ii(t))}function af(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!af(e[n],t[n])}):!1}function Ri(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Eo(e)&&Eo(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{},s=0,u=0;u"u")return!0;var n=t.prototype;return!(!_u(n)||!n.hasOwnProperty("isPrototypeOf"))}function _u(e){return Object.prototype.toString.call(e)==="[object Object]"}function oa(e){return typeof e=="string"||Array.isArray(e)}function Gh(e){return new Promise(function(t){setTimeout(t,e)})}function xu(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function of(){if(typeof AbortController=="function")return new AbortController}var Xh=function(e){Un(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var a;if(!Ai&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Fr),dr=new Xh,Zh=function(e){Un(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var a;if(!Ai&&((a=window)!=null&&a.addEventListener)){var o=function(){return i()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var a,o=this;this.setup=i,(a=this.cleanup)==null||a.call(this),this.cleanup=i(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(Fr),vi=new Zh;function Jh(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ki(e){return typeof(e==null?void 0:e.cancel)=="function"}var sf=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function yi(e){return e instanceof sf}var uf=function(t){var n=this,r=!1,i,a,o,s;this.abort=t.abort,this.cancel=function(d){return i==null?void 0:i(d)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,h){o=d,s=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),o(h))},l=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},f=function(){return new Promise(function(h){a=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},c=function d(){if(!n.isResolved){var h;try{h=t.fn()}catch(p){h=Promise.reject(p)}i=function(m){if(!n.isResolved&&(l(new sf(m)),n.abort==null||n.abort(),ki(h)))try{h.cancel()}catch{}},n.isTransportCancelable=ki(h),Promise.resolve(h).then(u).catch(function(p){var m,C;if(!n.isResolved){var y=(m=t.retry)!=null?m:3,v=(C=t.retryDelay)!=null?C:Jh,w=typeof v=="function"?v(n.failureCount,p):v,D=y===!0||typeof y=="number"&&n.failureCount"u"&&(s.exact=!0),this.queries.find(function(u){return wu(s,u)})},n.findAll=function(i,a){var o=en(i,a),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(u){return wu(s,u)}):this.queries},n.notify=function(i){var a=this;Ae.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){var i=this;Ae.batch(function(){i.queries.forEach(function(a){a.onFocus()})})},n.onOnline=function(){var i=this;Ae.batch(function(){i.queries.forEach(function(a){a.onOnline()})})},t}(Fr),ip=function(){function e(n){this.options=me({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||ap(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Xe).catch(Xe)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,i,a=this.state.status==="loading",o=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(s){i=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),Fi().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var r=this,i;return this.retryer=new uf({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var i=this;this.state=op(this.state,r),Ae.batch(function(){i.observers.forEach(function(a){a.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function op(e,t){switch(t.type){case"failed":return me({},e,{failureCount:e.failureCount+1});case"pause":return me({},e,{isPaused:!0});case"continue":return me({},e,{isPaused:!1});case"loading":return me({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return me({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return me({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return me({},e,t.state);default:return e}}var sp=function(e){Un(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=t.prototype;return n.build=function(i,a,o){var s=new ip({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(a),state:o,defaultOptions:a.mutationKey?i.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(a){return a!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;Ae.batch(function(){i.mutations.forEach(function(a){i.remove(a)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(a){return bu(i,a)})},n.findAll=function(i){return this.mutations.filter(function(a){return bu(i,a)})},n.notify=function(i){var a=this;Ae.batch(function(){a.listeners.forEach(function(o){o(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(a){return a.state.isPaused});return Ae.batch(function(){return i.reduce(function(a,o){return a.then(function(){return o.continue().catch(Xe)})},Promise.resolve())})},t}(Fr);function up(){return{onFetch:function(t){t.fetchFn=function(){var n,r,i,a,o,s,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,l=(i=t.fetchOptions)==null||(a=i.meta)==null?void 0:a.fetchMore,f=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],p=((s=t.state.data)==null?void 0:s.pageParams)||[],m=of(),C=m==null?void 0:m.signal,y=p,v=!1,w=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},D=function(I,N,A,H){return y=H?[N].concat(y):[].concat(y,[N]),H?[A].concat(I):[].concat(I,[A])},g=function(I,N,A,H){if(v)return Promise.reject("Cancelled");if(typeof A>"u"&&!N&&I.length)return Promise.resolve(I);var U={queryKey:t.queryKey,signal:C,pageParam:A,meta:t.meta},K=w(U),X=Promise.resolve(K).then(function(j){return D(I,A,j,H)});if(ki(K)){var ne=X;ne.cancel=K.cancel}return X},_;if(!h.length)_=g([]);else if(c){var S=typeof f<"u",F=S?f:Cu(t.options,h);_=g(h,S,F)}else if(d){var P=typeof f<"u",k=P?f:lp(t.options,h);_=g(h,P,k,!0)}else(function(){y=[];var x=typeof t.options.getNextPageParam>"u",I=u&&h[0]?u(h[0],0,h):!0;_=I?g([],x,p[0]):Promise.resolve(D([],p[0],h[0]));for(var N=function(U){_=_.then(function(K){var X=u&&h[U]?u(h[U],U,h):!0;if(X){var ne=x?p[U]:Cu(t.options,K);return g(K,x,ne)}return Promise.resolve(D(K,p[U],h[U]))})},A=1;A"u"&&(f.revert=!0);var c=Ae.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.cancel(f)})});return Promise.all(c).then(Xe).catch(Xe)},t.invalidateQueries=function(r,i,a){var o,s,u,l=this,f=en(r,i,a),c=f[0],d=f[1],h=me({},c,{active:(o=(s=c.refetchActive)!=null?s:c.active)!=null?o:!0,inactive:(u=c.refetchInactive)!=null?u:!1});return Ae.batch(function(){return l.queryCache.findAll(c).forEach(function(p){p.invalidate()}),l.refetchQueries(h,d)})},t.refetchQueries=function(r,i,a){var o=this,s=en(r,i,a),u=s[0],l=s[1],f=Ae.batch(function(){return o.queryCache.findAll(u).map(function(d){return d.fetch(void 0,me({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),c=Promise.all(f).then(Xe);return l!=null&&l.throwOnError||(c=c.catch(Xe)),c},t.fetchQuery=function(r,i,a){var o=gi(r,i,a),s=this.defaultQueryOptions(o);typeof s.retry>"u"&&(s.retry=!1);var u=this.queryCache.build(this,s);return u.isStaleByTime(s.staleTime)?u.fetch(s):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,i,a){return this.fetchQuery(r,i,a).then(Xe).catch(Xe)},t.fetchInfiniteQuery=function(r,i,a){var o=gi(r,i,a);return o.behavior=up(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,i,a){return this.fetchInfiniteQuery(r,i,a).then(Xe).catch(Xe)},t.cancelMutations=function(){var r=this,i=Ae.batch(function(){return r.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(i).then(Xe).catch(Xe)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,i){var a=this.queryDefaults.find(function(o){return fn(r)===fn(o.queryKey)});a?a.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},t.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(a){return Oi(r,a.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var a=this.mutationDefaults.find(function(o){return fn(r)===fn(o.mutationKey)});a?a.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},t.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(a){return Oi(r,a.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=me({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=vs(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:me({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),fp=function(e){Un(t,e);function t(r,i){var a;return a=e.call(this)||this,a.client=r,a.options=i,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(i),a}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Tu(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return Mo(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return Mo(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,a){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&Su(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(a),u&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();u&&(this.currentQuery!==s||this.options.enabled!==o.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},n.getOptimisticResult=function(i){var a=this.client.defaultQueryObserverOptions(i),o=this.client.getQueryCache().build(this.client,a);return this.createResult(o,a)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,a){var o=this,s={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(i).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return u(l),i[l]}})}),(a.useErrorBoundary||a.suspense)&&u("error"),s},n.getNextResult=function(i){var a=this;return new Promise(function(o,s){var u=a.subscribe(function(l){l.isFetching||(u(),l.isError&&(i!=null&&i.throwOnError)?s(l.error):o(l))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(me({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var a=this,o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return a.createResult(s,o)})},n.fetch=function(i){var a=this;return this.executeFetch(i).then(function(){return a.updateResult(),a.currentResult})},n.executeFetch=function(i){this.updateQuery();var a=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(a=a.catch(Xe)),a},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Ai||this.currentResult.isStale||!Do(this.options.staleTime))){var a=rf(this.currentResult.dataUpdatedAt,this.options.staleTime),o=a+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},o)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Ai||this.options.enabled===!1||!Do(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||dr.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,a){var o=this.currentQuery,s=this.options,u=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,c=i!==o,d=c?i.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,p=i.state,m=p.dataUpdatedAt,C=p.error,y=p.errorUpdatedAt,v=p.isFetching,w=p.status,D=!1,g=!1,_;if(a.optimisticResults){var S=this.hasListeners(),F=!S&&Tu(i,a),P=S&&Su(i,o,a,s);(F||P)&&(v=!0,m||(w="loading"))}if(a.keepPreviousData&&!p.dataUpdateCount&&(h!=null&&h.isSuccess)&&w!=="error")_=h.data,m=h.dataUpdatedAt,w=h.status,D=!0;else if(a.select&&typeof p.data<"u")if(u&&p.data===(l==null?void 0:l.data)&&a.select===this.selectFn)_=this.selectResult;else try{this.selectFn=a.select,_=a.select(p.data),a.structuralSharing!==!1&&(_=Ri(u==null?void 0:u.data,_)),this.selectResult=_,this.selectError=null}catch(M){Fi().error(M),this.selectError=M}else _=p.data;if(typeof a.placeholderData<"u"&&typeof _>"u"&&(w==="loading"||w==="idle")){var k;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))k=u.data;else if(k=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof k<"u")try{k=a.select(k),a.structuralSharing!==!1&&(k=Ri(u==null?void 0:u.data,k)),this.selectError=null}catch(M){Fi().error(M),this.selectError=M}typeof k<"u"&&(w="success",_=k,g=!0)}this.selectError&&(C=this.selectError,_=this.selectResult,y=Date.now(),w="error");var b={status:w,isLoading:w==="loading",isSuccess:w==="success",isError:w==="error",isIdle:w==="idle",data:_,dataUpdatedAt:m,error:C,errorUpdatedAt:y,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:v,isRefetching:v&&w!=="loading",isLoadingError:w==="error"&&p.dataUpdatedAt===0,isPlaceholderData:g,isPreviousData:D,isRefetchError:w==="error"&&p.dataUpdatedAt!==0,isStale:ys(i,a),refetch:this.refetch,remove:this.remove};return b},n.shouldNotifyListeners=function(i,a){if(!a)return!0;var o=this.options,s=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(i).some(function(f){var c=f,d=i[c]!==a[c],h=l==null?void 0:l.some(function(m){return m===f}),p=u==null?void 0:u.some(function(m){return m===f});return d&&!p&&(!l||h)})},n.updateResult=function(i){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Kh(this.currentResult,a)){var o={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(o.listeners=!0),this.notify(me({},o,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var a=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var a={};i.type==="success"?a.onSuccess=!0:i.type==="error"&&!yi(i.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var a=this;Ae.batch(function(){i.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):i.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),i.listeners&&a.listeners.forEach(function(o){o(a.currentResult)}),i.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(Fr);function dp(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Tu(e,t){return dp(e,t)||e.state.dataUpdatedAt>0&&Mo(e,t,t.refetchOnMount)}function Mo(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ys(e,t)}return!1}function Su(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&ys(e,n)}function ys(e,t){return e.isStaleByTime(t.staleTime)}var hp=Uh.unstable_batchedUpdates;Ae.setBatchNotifyFunction(hp);var pp=console;tp(pp);var Du=z.createContext(void 0),cf=z.createContext(!1);function ff(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Du),window.ReactQueryClientContext):Du}var mp=function(){var t=z.useContext(ff(z.useContext(cf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gp=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,a=t.children;z.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=ff(i);return z.createElement(cf.Provider,{value:i},z.createElement(o.Provider,{value:n},a))};function vp(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var yp=z.createContext(vp()),wp=function(){return z.useContext(yp)};function bp(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function _p(e,t){var n=z.useRef(!1),r=z.useState(0),i=r[1],a=mp(),o=wp(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Ae.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Ae.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Ae.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var u=z.useState(function(){return new t(a,s)}),l=u[0],f=l.getOptimisticResult(s);if(z.useEffect(function(){n.current=!0,o.clearReset();var c=l.subscribe(Ae.batchCalls(function(){n.current&&i(function(d){return d+1})}));return l.updateResult(),function(){n.current=!1,c()}},[o,l]),z.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(c){var d=c.data;s.onSuccess==null||s.onSuccess(d),s.onSettled==null||s.onSettled(d,null)}).catch(function(c){o.clearReset(),s.onError==null||s.onError(c),s.onSettled==null||s.onSettled(void 0,c)});if(f.isError&&!o.isReset()&&!f.isFetching&&bp(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Eu(e,t,n){var r=gi(e,t,n);return _p(r,fp)}function xp(e){let t;const n=new Set,r=(l,f)=>{const c=typeof l=="function"?l(t):l;if(c!==t){const d=t;t=f?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},i=()=>t,a=(l,f=i,c=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=f(t);function h(){const p=f(t);if(!c(d,p)){const m=d;l(d=p,m)}}return n.add(h),()=>n.delete(h)},u={setState:r,getState:i,subscribe:(l,f,c)=>f||c?a(l,f,c):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,i,u),u}const Cp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Mu=Cp?J.useEffect:J.useLayoutEffect;function Tp(e){const t=typeof e=="function"?xp(e):e,n=(r=t.getState,i=Object.is)=>{const[,a]=J.useReducer(C=>C+1,0),o=t.getState(),s=J.useRef(o),u=J.useRef(r),l=J.useRef(i),f=J.useRef(!1),c=J.useRef();c.current===void 0&&(c.current=r(o));let d,h=!1;(s.current!==o||u.current!==r||l.current!==i||f.current)&&(d=r(o),h=!i(c.current,d)),Mu(()=>{h&&(c.current=d),s.current=o,u.current=r,l.current=i,f.current=!1});const p=J.useRef(o);Mu(()=>{const C=()=>{try{const v=t.getState(),w=u.current(v);l.current(c.current,w)||(s.current=v,c.current=w,a())}catch{f.current=!0,a()}},y=t.subscribe(C);return t.getState()!==p.current&&C(),y},[]);const m=h?d:c.current;return J.useDebugValue(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:ws(e)?2:bs(e)?3:0}function Ao(e,t){return Wn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sp(e,t){return Wn(e)===2?e.get(t):e[t]}function df(e,t,n){var r=Wn(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dp(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ws(e){return Ip&&e instanceof Map}function bs(e){return Op&&e instanceof Set}function ln(e){return e.o||e.t}function _s(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=kp(e);delete t[lt];for(var n=Ss(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Ep),Object.freeze(e),t&&gr(e,function(n,r){return xs(r,!0)},!0)),e}function Ep(){xt(2)}function Cs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ft(e){var t=Fp[e];return t||xt(18,e),t}function Au(){return vr}function La(e,t){t&&(Ft("Patches"),e.u=[],e.s=[],e.v=t)}function Ni(e){Io(e),e.p.forEach(Mp),e.p=null}function Io(e){e===vr&&(vr=e.l)}function Iu(e){return vr={p:[],l:vr,h:e,m:!0,_:0}}function Mp(e){var t=e[lt];t.i===0||t.i===1?t.j():t.g=!0}function $a(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ft("ES5").S(t,e,r),r?(n[lt].P&&(Ni(t),xt(4)),hn(e)&&(e=Pi(t,e),t.l||Li(t,e)),t.u&&Ft("Patches").M(n[lt].t,e,t.u,t.s)):e=Pi(t,n,[]),Ni(t),t.u&&t.v(t.u,t.s),e!==hf?e:void 0}function Pi(e,t,n){if(Cs(t))return t;var r=t[lt];if(!r)return gr(t,function(s,u){return Ou(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Li(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=_s(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),gr(a,function(s,u){return Ou(e,r,i,s,u,n,o)}),Li(e,i,!1),n&&e.u&&Ft("Patches").N(r,n,e.u,e.s)}return r.o}function Ou(e,t,n,r,i,a,o){if(On(i)){var s=Pi(e,i,a&&t&&t.i!==3&&!Ao(t.R,r)?a.concat(r):void 0);if(df(n,r,s),!On(s))return;e.m=!1}else o&&n.add(i);if(hn(i)&&!Cs(i)){if(!e.h.D&&e._<1)return;Pi(e,i),t&&t.A.l||Li(e,i)}}function Li(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&xs(t,n)}function za(e,t){var n=e[lt];return(n?ln(n):e)[t]}function Ru(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Oo(e){e.P||(e.P=!0,e.l&&Oo(e.l))}function Ha(e){e.o||(e.o=_s(e.t))}function Ro(e,t,n){var r=ws(t)?Ft("MapSet").F(t,n):bs(t)?Ft("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Au(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,l=ko;o&&(u=[s],l=ur);var f=Proxy.revocable(u,l),c=f.revoke,d=f.proxy;return s.k=d,s.j=c,d}(t,n):Ft("ES5").J(t,n);return(n?n.A:Au()).p.push(r),r}function Ap(e){return On(e)||xt(22,e),function t(n){if(!hn(n))return n;var r,i=n[lt],a=Wn(n);if(i){if(!i.P&&(i.i<4||!Ft("ES5").K(i)))return i.t;i.I=!0,r=ku(n,a),i.I=!1}else r=ku(n,a);return gr(r,function(o,s){i&&Sp(i.t,o)===s||df(r,o,t(s))}),a===3?new Set(r):r}(e)}function ku(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _s(e)}var Fu,vr,Ts=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ip=typeof Map<"u",Op=typeof Set<"u",Nu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hf=Ts?Symbol.for("immer-nothing"):((Fu={})["immer-nothing"]=!0,Fu),Pu=Ts?Symbol.for("immer-draftable"):"__$immer_draftable",lt=Ts?Symbol.for("immer-state"):"__$immer_state",Rp=""+Object.prototype.constructor,Ss=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,kp=Object.getOwnPropertyDescriptors||function(e){var t={};return Ss(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Fp={},ko={get:function(e,t){if(t===lt)return e;var n=ln(e);if(!Ao(n,t))return function(i,a,o){var s,u=Ru(a,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!hn(r)?r:r===za(e.t,t)?(Ha(e),e.o[t]=Ro(e.A.h,r,e)):r},has:function(e,t){return t in ln(e)},ownKeys:function(e){return Reflect.ownKeys(ln(e))},set:function(e,t,n){var r=Ru(ln(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=za(ln(e),t),a=i==null?void 0:i[lt];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Dp(n,i)&&(n!==void 0||Ao(e.t,t)))return!0;Ha(e),Oo(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return za(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ha(e),Oo(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ln(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},ur={};gr(ko,function(e,t){ur[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ur.deleteProperty=function(e,t){return ur.set.call(this,e,t,void 0)},ur.set=function(e,t,n){return ko.set.call(this,e[0],t,n,e[0])};var Np=function(){function e(n){var r=this;this.O=Nu,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var u=r;return function(m){var C=this;m===void 0&&(m=s);for(var y=arguments.length,v=Array(y>1?y-1:0),w=1;w1?f-1:0),d=1;d=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=Ft("Patches").$;return On(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),ct=new Np,Pp=ct.produce;ct.produceWithPatches.bind(ct);ct.setAutoFreeze.bind(ct);ct.setUseProxies.bind(ct);ct.applyPatches.bind(ct);ct.createDraft.bind(ct);ct.finishDraft.bind(ct);const Lp=Pp;function Ds(e,t){return et?1:e>=t?0:NaN}function pf(e){let t=e,n=e;e.length===1&&(t=(o,s)=>e(o)-s,n=$p(e));function r(o,s,u,l){for(u==null&&(u=0),l==null&&(l=o.length);u>>1;n(o[f],s)<0?u=f+1:l=f}return u}function i(o,s,u,l){for(u==null&&(u=0),l==null&&(l=o.length);u>>1;n(o[f],s)>0?l=f:u=f+1}return u}function a(o,s,u,l){u==null&&(u=0),l==null&&(l=o.length);const f=r(o,s,u,l-1);return f>u&&t(o[f-1],s)>-t(o[f],s)?f-1:f}return{left:r,center:a,right:i}}function $p(e){return(t,n)=>Ds(e(t),n)}function zp(e){return e===null?NaN:+e}const mf=pf(Ds),gf=mf.right,Hp=mf.left;pf(zp).center;function Up(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function Fo(e,t){return te?1:t>=e?0:NaN}function En(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0)return[e];if((r=t0){let u=Math.round(e/s),l=Math.round(t/s);for(u*st&&--l,o=new Array(a=l-u+1);++it&&--l,o=new Array(a=l-u+1);++i=0?(a>=No?10:a>=Po?5:a>=Lo?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=No?10:a>=Po?5:a>=Lo?2:1)}function jp(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=No?i*=10:a>=Po?i*=5:a>=Lo&&(i*=2),t0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function Yp(e){return Math.ceil(Math.log(Up(e))/Math.LN2)+1}function Ua(){var e=Wp,t=En,n=Yp;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,u=new Array(o);for(a=0;a=c)if(C>=c&&t===En){const v=sa(f,c,y);isFinite(v)&&(v>0?c=(Math.floor(c/v)+1)*v:v<0&&(c=(Math.ceil(c*-v)+1)/-v))}else d.pop()}for(var h=d.length;d[0]<=f;)d.shift(),--h;for(;d[h-1]>c;)d.pop(),--h;var p=new Array(h+1),m;for(a=0;a<=h;++a)m=p[a]=[],m.x0=a>0?d[a-1]:f,m.x1=a=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function yf(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var zo="http://www.w3.org/1999/xhtml";const Lu={svg:"http://www.w3.org/2000/svg",xhtml:zo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ua(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Lu.hasOwnProperty(t)?{space:Lu[t],local:e}:e}function Qp(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===zo&&t.documentElement.namespaceURI===zo?t.createElement(e):t.createElementNS(n,e)}}function Kp(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wf(e){var t=ua(e);return(t.local?Kp:Qp)(t)}function Gp(){}function Es(e){return e==null?Gp:function(){return this.querySelector(e)}}function Xp(e){typeof e!="function"&&(e=Es(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=w&&(w=v+1);!(g=C[w])&&++w=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function bm(e){e||(e=_m);function t(c,d){return c&&d?e(c.__data__,d.__data__):!c-!d}for(var n=this._groups,r=n.length,i=new Array(r),a=0;at?1:e>=t?0:NaN}function xm(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Cm(){return Array.from(this)}function Tm(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Nm:typeof t=="function"?Lm:Pm)(e,t,n??"")):Rn(this.node(),e)}function Rn(e,t){return e.style.getPropertyValue(t)||Sf(e).getComputedStyle(e,null).getPropertyValue(t)}function zm(e){return function(){delete this[e]}}function Hm(e,t){return function(){this[e]=t}}function Um(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Wm(e,t){return arguments.length>1?this.each((t==null?zm:typeof t=="function"?Um:Hm)(e,t)):this.node()[e]}function Df(e){return e.trim().split(/^|\s+/)}function Ms(e){return e.classList||new Ef(e)}function Ef(e){this._node=e,this._names=Df(e.getAttribute("class")||"")}Ef.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 Mf(e,t){for(var n=Ms(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function g0(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{}};function Of(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}wi.prototype=Of.prototype={constructor:wi,on:function(e,t){var n=this._,r=D0(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=new Array(i),r=0,i,a;r=0&&e._call.call(null,t),e=e._next;--kn}function zu(){pn=(Hi=yr.now())+la,kn=lr=0;try{A0()}finally{kn=0,O0(),pn=0}}function I0(){var e=yr.now(),t=e-Hi;t>Rf&&(la-=t,Hi=e)}function O0(){for(var e,t=zi,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zi=n);cr=e,Ho(r)}function Ho(e){if(!kn){lr&&(lr=clearTimeout(lr));var t=e-pn;t>24?(e<1/0&&(lr=setTimeout(zu,e-yr.now()-la)),Gn&&(Gn=clearInterval(Gn))):(Gn||(Hi=yr.now(),Gn=setInterval(I0,Rf)),kn=1,kf(zu))}}function Hu(e,t,n){var r=new Ui;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var R0=Of("start","end","cancel","interrupt"),k0=[],Nf=0,Uu=1,Uo=2,bi=3,Wu=4,Wo=5,_i=6;function ca(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;F0(e,n,{name:t,index:r,group:i,on:R0,tween:k0,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Nf})}function Is(e,t){var n=Tt(e,t);if(n.state>Nf)throw new Error("too late; already scheduled");return n}function $t(e,t){var n=Tt(e,t);if(n.state>bi)throw new Error("too late; already running");return n}function Tt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function F0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Ff(a,0,n.time);function a(l){n.state=Uu,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var f,c,d,h;if(n.state!==Uu)return u();for(f in r)if(h=r[f],h.name===n.name){if(h.state===bi)return Hu(o);h.state===Wu?(h.state=_i,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[f]):+fUo&&r.state>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ei(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ei(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=$0.exec(e))?new ot(t[1],t[2],t[3],1):(t=z0.exec(e))?new ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=H0.exec(e))?ei(t[1],t[2],t[3],t[4]):(t=U0.exec(e))?ei(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=W0.exec(e))?Ku(t[1],t[2]/100,t[3]/100,1):(t=B0.exec(e))?Ku(t[1],t[2]/100,t[3]/100,t[4]):Bu.hasOwnProperty(e)?qu(Bu[e]):e==="transparent"?new ot(NaN,NaN,NaN,0):null}function qu(e){return new ot(e>>16&255,e>>8&255,e&255,1)}function ei(e,t,n,r){return r<=0&&(e=t=n=NaN),new ot(e,t,n,r)}function j0(e){return e instanceof Pr||(e=_r(e)),e?(e=e.rgb(),new ot(e.r,e.g,e.b,e.opacity)):new ot}function Bo(e,t,n,r){return arguments.length===1?j0(e):new ot(e,t,n,r??1)}function ot(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Os(ot,Bo,Pf(Pr,{brighter:function(e){return e=e==null?Wi:Math.pow(Wi,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?wr:Math.pow(wr,e),new ot(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:Yu,formatHex:Yu,formatRgb:Qu,toString:Qu}));function Yu(){return"#"+Wa(this.r)+Wa(this.g)+Wa(this.b)}function Qu(){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 Wa(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Ku(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,n,r)}function Lf(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof Pr||(e=_r(e)),!e)return new At;if(e instanceof At)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&u<1?0:o,new At(o,s,u,e.opacity)}function q0(e,t,n,r){return arguments.length===1?Lf(e):new At(e,t,n,r??1)}function At(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Os(At,q0,Pf(Pr,{brighter:function(e){return e=e==null?Wi:Math.pow(Wi,e),new At(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wr:Math.pow(wr,e),new At(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ot(Ba(e>=240?e-240:e+120,i,r),Ba(e,i,r),Ba(e<120?e+240:e-120,i,r),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 Ba(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const $f=e=>()=>e;function Y0(e,t){return function(n){return e+n*t}}function Q0(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function K0(e){return(e=+e)==1?zf:function(t,n){return n-t?Q0(t,n,e):$f(isNaN(t)?n:t)}}function zf(e,t){var n=t-e;return n?Y0(e,n):$f(isNaN(e)?t:e)}const Gu=function e(t){var n=K0(t);function r(i,a){var o=n((i=Bo(i)).r,(a=Bo(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),l=zf(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function tn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Vo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Va=new RegExp(Vo.source,"g");function G0(e){return function(){return e}}function X0(e){return function(t){return e(t)+""}}function Z0(e,t){var n=Vo.lastIndex=Va.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Vo.exec(e))&&(i=Va.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:tn(r,i)})),n=Va.lastIndex;return n180?f+=360:f-l>180&&(l+=360),d.push({i:c.push(i(c)+"rotate(",null,r)-2,x:tn(l,f)})):f&&c.push(i(c)+"rotate("+f+r)}function s(l,f,c,d){l!==f?d.push({i:c.push(i(c)+"skewX(",null,r)-2,x:tn(l,f)}):f&&c.push(i(c)+"skewX("+f+r)}function u(l,f,c,d,h,p){if(l!==c||f!==d){var m=h.push(i(h)+"scale(",null,",",null,")");p.push({i:m-4,x:tn(l,c)},{i:m-2,x:tn(f,d)})}else(c!==1||d!==1)&&h.push(i(h)+"scale("+c+","+d+")")}return function(l,f){var c=[],d=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,d),o(l.rotate,f.rotate,c,d),s(l.skewX,f.skewX,c,d),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,d),l=f=null,function(h){for(var p=-1,m=d.length,C;++p=0&&(t=t.slice(0,n)),!t||t==="start"})}function Og(e,t,n){var r,i,a=Ig(t)?Is:$t;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Rg(e,t){var n=this._id;return arguments.length<2?Tt(this.node(),n).on.on(e):this.each(Og(n,e,t))}function kg(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Fg(){return this.on("end.remove",kg(this._id))}function Ng(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Es(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ni(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ni(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=sv.exec(e))?new st(t[1],t[2],t[3],1):(t=uv.exec(e))?new st(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lv.exec(e))?ni(t[1],t[2],t[3],t[4]):(t=cv.exec(e))?ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fv.exec(e))?il(t[1],t[2]/100,t[3]/100,1):(t=dv.exec(e))?il(t[1],t[2]/100,t[3]/100,t[4]):Zu.hasOwnProperty(e)?tl(Zu[e]):e==="transparent"?new st(NaN,NaN,NaN,0):null}function tl(e){return new st(e>>16&255,e>>8&255,e&255,1)}function ni(e,t,n,r){return r<=0&&(e=t=n=NaN),new st(e,t,n,r)}function pv(e){return e instanceof Lr||(e=Tr(e)),e?(e=e.rgb(),new st(e.r,e.g,e.b,e.opacity)):new st}function Vi(e,t,n,r){return arguments.length===1?pv(e):new st(e,t,n,r??1)}function st(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ks(st,Vi,jf(Lr,{brighter:function(e){return e=e==null?Bi:Math.pow(Bi,e),new st(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?xr:Math.pow(xr,e),new st(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:nl,formatHex:nl,formatRgb:rl,toString:rl}));function nl(){return"#"+ja(this.r)+ja(this.g)+ja(this.b)}function rl(){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 ja(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function il(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new It(e,t,n,r)}function qf(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);if(e instanceof Lr||(e=Tr(e)),!e)return new It;if(e instanceof It)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&u<1?0:o,new It(o,s,u,e.opacity)}function mv(e,t,n,r){return arguments.length===1?qf(e):new It(e,t,n,r??1)}function It(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ks(It,mv,jf(Lr,{brighter:function(e){return e=e==null?Bi:Math.pow(Bi,e),new It(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?xr:Math.pow(xr,e),new It(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new st(qa(e>=240?e-240:e+120,i,r),qa(e,i,r),qa(e<120?e+240:e-120,i,r),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 qa(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function gv(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ji(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fn(e){return e=ji(Math.abs(e)),e?e[1]:NaN}function vv(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function yv(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var wv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qi(e){if(!(t=wv.exec(e)))throw new Error("invalid format: "+e);var t;return new Fs({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]})}qi.prototype=Fs.prototype;function Fs(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+""}Fs.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 bv(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Yf;function _v(e,t){var n=ji(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Yf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ji(e,Math.max(0,t+a-1))[0]}function al(e,t){var n=ji(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const ol={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gv,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)=>al(e*100,t),r:al,s:_v,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sl(e){return e}var ul=Array.prototype.map,ll=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xv(e){var t=e.grouping===void 0||e.thousands===void 0?sl:vv(ul.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?sl:yv(ul.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(c){c=qi(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,C=c.zero,y=c.width,v=c.comma,w=c.precision,D=c.trim,g=c.type;g==="n"?(v=!0,g="g"):ol[g]||(w===void 0&&(w=12),D=!0,g="g"),(C||d==="0"&&h==="=")&&(C=!0,d="0",h="=");var _=m==="$"?n:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?r:/[%p]/.test(g)?o:"",F=ol[g],P=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function k(b){var M=_,x=S,I,N,A;if(g==="c")x=F(b)+x,b="";else{b=+b;var H=b<0||1/b<0;if(b=isNaN(b)?u:F(Math.abs(b),w),D&&(b=bv(b)),H&&+b==0&&p!=="+"&&(H=!1),M=(H?p==="("?p:s:p==="-"||p==="("?"":p)+M,x=(g==="s"?ll[8+Yf/3]:"")+x+(H&&p==="("?")":""),P){for(I=-1,N=b.length;++IA||A>57){x=(A===46?i+b.slice(I+1):b.slice(I))+x,b=b.slice(0,I);break}}}v&&!C&&(b=t(b,1/0));var U=M.length+b.length+x.length,K=U>1)+M+b+x+K.slice(U);break;default:b=K+M+b+x;break}return a(b)}return k.toString=function(){return c+""},k}function f(c,d){var h=l((c=qi(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Fn(d)/3)))*3,m=Math.pow(10,-p),C=ll[8+p/3];return function(y){return h(m*y)+C}}return{format:l,formatPrefix:f}}var ri,dn,Qf;Cv({thousands:",",grouping:[3],currency:["$",""]});function Cv(e){return ri=xv(e),dn=ri.format,Qf=ri.formatPrefix,ri}function Tv(e){return Math.max(0,-Fn(Math.abs(e)))}function Sv(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fn(t)/3)))*3-Fn(Math.abs(e)))}function Dv(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fn(t)-Fn(e))+1}const Ns=e=>()=>e;function Ev(e,t){return function(n){return e+n*t}}function Mv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Av(e){return(e=+e)==1?Kf:function(t,n){return n-t?Mv(t,n,e):Ns(isNaN(t)?n:t)}}function Kf(e,t){var n=t-e;return n?Ev(e,n):Ns(isNaN(e)?t:e)}const cl=function e(t){var n=Av(t);function r(i,a){var o=n((i=Vi(i)).r,(a=Vi(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),l=Kf(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function Iv(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Yi(r,i)})),n=Ya.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Bv(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Vv:Bv,u=l=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(i((l||(l=s(t,e.map(r),Yi)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Uv),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=$v,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Dn,f()):o!==Dn},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,h){return r=d,i=h,f()}}function Yv(){return qv()(Dn,Dn)}function Qv(e,t,n,r){var i=jp(e,t,n),a;switch(r=qi(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Sv(i,o))&&(r.precision=a),Qf(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Dv(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Tv(i))&&(r.precision=a-(r.type==="%")*2);break}}return dn(r)}function Kv(e){var t=e.domain;return e.ticks=function(n){var r=t();return vf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Qv(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,l,f=10;for(s0;){if(l=sa(o,s,n),l===u)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Qi(){var e=Yv();return e.copy=function(){return jv(e,Qi())},zv.apply(e,arguments),Kv(e)}var Qa=new Date,Ka=new Date;function Kt(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o0))return u;do u.push(l=new Date(+a)),t(a,s),e(a);while(l=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return Qa.setTime(+a),Ka.setTime(+o),e(Qa),e(Ka),Math.floor(n(Qa,Ka))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}const Gv=1e3,Ls=Gv*60,Xv=Ls*60,$s=Xv*24,Gf=$s*7;var Xf=Kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ls)/$s,e=>e.getDate()-1);const Zf=Xf;Xf.range;function vn(e){return Kt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ls)/Gf})}var Jf=vn(0),Ki=vn(1),Zv=vn(2),Jv=vn(3),Nn=vn(4),ey=vn(5),ty=vn(6);Jf.range;Ki.range;Zv.range;Jv.range;Nn.range;ey.range;ty.range;var zs=Kt(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()});zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};const Sr=zs;zs.range;var ed=Kt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/$s},function(e){return e.getUTCDate()-1});const td=ed;ed.range;function yn(e){return Kt(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Gf})}var nd=yn(0),Gi=yn(1),ny=yn(2),ry=yn(3),Pn=yn(4),iy=yn(5),ay=yn(6);nd.range;Gi.range;ny.range;ry.range;Pn.range;iy.range;ay.range;var Hs=Kt(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()});Hs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Kt(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};const Dr=Hs;Hs.range;function Ga(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 Xa(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 Xn(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function oy(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=Zn(i),f=Jn(i),c=Zn(a),d=Jn(a),h=Zn(o),p=Jn(o),m=Zn(s),C=Jn(s),y=Zn(u),v=Jn(u),w={a:H,A:U,b:K,B:X,c:null,d:vl,e:vl,f:Ay,g:zy,G:Uy,H:Dy,I:Ey,j:My,L:rd,m:Iy,M:Oy,p:ne,q:j,Q:bl,s:_l,S:Ry,u:ky,U:Fy,V:Ny,w:Py,W:Ly,x:null,X:null,y:$y,Y:Hy,Z:Wy,"%":wl},D={a:oe,A:Q,b:se,B:ee,c:null,d:yl,e:yl,f:qy,g:n1,G:i1,H:By,I:Vy,j:jy,L:ad,m:Yy,M:Qy,p:fe,q:re,Q:bl,s:_l,S:Ky,u:Gy,U:Xy,V:Zy,w:Jy,W:e1,x:null,X:null,y:t1,Y:r1,Z:a1,"%":wl},g={a:k,A:b,b:M,B:x,c:I,d:ml,e:ml,f:xy,g:pl,G:hl,H:gl,I:gl,j:yy,L:_y,m:vy,M:wy,p:P,q:gy,Q:Ty,s:Sy,S:by,u:fy,U:dy,V:hy,w:cy,W:py,x:N,X:A,y:pl,Y:hl,Z:my,"%":Cy};w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),D.x=_(n,D),D.X=_(r,D),D.c=_(t,D);function _(O,Y){return function(G){var R=[],ae=-1,q=0,Ce=O.length,Me,Ne,Ht;for(G instanceof Date||(G=new Date(+G));++ae53)return null;"w"in R||(R.w=1),"Z"in R?(q=Xa(Xn(R.y,0,1)),Ce=q.getUTCDay(),q=Ce>4||Ce===0?Gi.ceil(q):Gi(q),q=td.offset(q,(R.V-1)*7),R.y=q.getUTCFullYear(),R.m=q.getUTCMonth(),R.d=q.getUTCDate()+(R.w+6)%7):(q=Ga(Xn(R.y,0,1)),Ce=q.getDay(),q=Ce>4||Ce===0?Ki.ceil(q):Ki(q),q=Zf.offset(q,(R.V-1)*7),R.y=q.getFullYear(),R.m=q.getMonth(),R.d=q.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ce="Z"in R?Xa(Xn(R.y,0,1)).getUTCDay():Ga(Xn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ce+5)%7:R.w+R.U*7-(Ce+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Xa(R)):Ga(R)}}function F(O,Y,G,R){for(var ae=0,q=Y.length,Ce=G.length,Me,Ne;ae=Ce)return-1;if(Me=Y.charCodeAt(ae++),Me===37){if(Me=Y.charAt(ae++),Ne=g[Me in dl?Y.charAt(ae++):Me],!Ne||(R=Ne(O,G,R))<0)return-1}else if(Me!=G.charCodeAt(R++))return-1}return R}function P(O,Y,G){var R=l.exec(Y.slice(G));return R?(O.p=f.get(R[0].toLowerCase()),G+R[0].length):-1}function k(O,Y,G){var R=h.exec(Y.slice(G));return R?(O.w=p.get(R[0].toLowerCase()),G+R[0].length):-1}function b(O,Y,G){var R=c.exec(Y.slice(G));return R?(O.w=d.get(R[0].toLowerCase()),G+R[0].length):-1}function M(O,Y,G){var R=y.exec(Y.slice(G));return R?(O.m=v.get(R[0].toLowerCase()),G+R[0].length):-1}function x(O,Y,G){var R=m.exec(Y.slice(G));return R?(O.m=C.get(R[0].toLowerCase()),G+R[0].length):-1}function I(O,Y,G){return F(O,t,Y,G)}function N(O,Y,G){return F(O,n,Y,G)}function A(O,Y,G){return F(O,r,Y,G)}function H(O){return o[O.getDay()]}function U(O){return a[O.getDay()]}function K(O){return u[O.getMonth()]}function X(O){return s[O.getMonth()]}function ne(O){return i[+(O.getHours()>=12)]}function j(O){return 1+~~(O.getMonth()/3)}function oe(O){return o[O.getUTCDay()]}function Q(O){return a[O.getUTCDay()]}function se(O){return u[O.getUTCMonth()]}function ee(O){return s[O.getUTCMonth()]}function fe(O){return i[+(O.getUTCHours()>=12)]}function re(O){return 1+~~(O.getUTCMonth()/3)}return{format:function(O){var Y=_(O+="",w);return Y.toString=function(){return O},Y},parse:function(O){var Y=S(O+="",!1);return Y.toString=function(){return O},Y},utcFormat:function(O){var Y=_(O+="",D);return Y.toString=function(){return O},Y},utcParse:function(O){var Y=S(O+="",!0);return Y.toString=function(){return O},Y}}}var dl={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,sy=/^%/,uy=/[\\^$*+?|[\]().{}]/g;function ge(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function cy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function hy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function py(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hl(e,t,n){var r=Ue.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function my(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function gy(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ml(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yy(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gl(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function wy(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function by(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _y(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xy(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cy(e,t,n){var r=sy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ty(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Sy(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vl(e,t){return ge(e.getDate(),t,2)}function Dy(e,t){return ge(e.getHours(),t,2)}function Ey(e,t){return ge(e.getHours()%12||12,t,2)}function My(e,t){return ge(1+Zf.count(Sr(e),e),t,3)}function rd(e,t){return ge(e.getMilliseconds(),t,3)}function Ay(e,t){return rd(e,t)+"000"}function Iy(e,t){return ge(e.getMonth()+1,t,2)}function Oy(e,t){return ge(e.getMinutes(),t,2)}function Ry(e,t){return ge(e.getSeconds(),t,2)}function ky(e){var t=e.getDay();return t===0?7:t}function Fy(e,t){return ge(Jf.count(Sr(e)-1,e),t,2)}function id(e){var t=e.getDay();return t>=4||t===0?Nn(e):Nn.ceil(e)}function Ny(e,t){return e=id(e),ge(Nn.count(Sr(e),e)+(Sr(e).getDay()===4),t,2)}function Py(e){return e.getDay()}function Ly(e,t){return ge(Ki.count(Sr(e)-1,e),t,2)}function $y(e,t){return ge(e.getFullYear()%100,t,2)}function zy(e,t){return e=id(e),ge(e.getFullYear()%100,t,2)}function Hy(e,t){return ge(e.getFullYear()%1e4,t,4)}function Uy(e,t){var n=e.getDay();return e=n>=4||n===0?Nn(e):Nn.ceil(e),ge(e.getFullYear()%1e4,t,4)}function Wy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function yl(e,t){return ge(e.getUTCDate(),t,2)}function By(e,t){return ge(e.getUTCHours(),t,2)}function Vy(e,t){return ge(e.getUTCHours()%12||12,t,2)}function jy(e,t){return ge(1+td.count(Dr(e),e),t,3)}function ad(e,t){return ge(e.getUTCMilliseconds(),t,3)}function qy(e,t){return ad(e,t)+"000"}function Yy(e,t){return ge(e.getUTCMonth()+1,t,2)}function Qy(e,t){return ge(e.getUTCMinutes(),t,2)}function Ky(e,t){return ge(e.getUTCSeconds(),t,2)}function Gy(e){var t=e.getUTCDay();return t===0?7:t}function Xy(e,t){return ge(nd.count(Dr(e)-1,e),t,2)}function od(e){var t=e.getUTCDay();return t>=4||t===0?Pn(e):Pn.ceil(e)}function Zy(e,t){return e=od(e),ge(Pn.count(Dr(e),e)+(Dr(e).getUTCDay()===4),t,2)}function Jy(e){return e.getUTCDay()}function e1(e,t){return ge(Gi.count(Dr(e)-1,e),t,2)}function t1(e,t){return ge(e.getUTCFullYear()%100,t,2)}function n1(e,t){return e=od(e),ge(e.getUTCFullYear()%100,t,2)}function r1(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function i1(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Pn(e):Pn.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function a1(){return"+0000"}function wl(){return"%"}function bl(e){return+e}function _l(e){return Math.floor(+e/1e3)}var Cn,jt;o1({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 o1(e){return Cn=oy(e),jt=Cn.format,Cn.parse,Cn.utcFormat,Cn.utcParse,Cn}function fr(e,t,n){this.k=e,this.x=t,this.y=n}fr.prototype={constructor:fr,scale:function(e){return e===1?this:new fr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};fr.prototype;function fa(e){for(var t=-1,n=e==null?0:e.length,r={};++t-1}function h1(e,t){var n=this.__data__,r=da(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var c=-1,d=!0,h=n&bw?new Xi:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=ob}var sb="[object Arguments]",ub="[object Array]",lb="[object Boolean]",cb="[object Date]",fb="[object Error]",db="[object Function]",hb="[object Map]",pb="[object Number]",mb="[object Object]",gb="[object RegExp]",vb="[object Set]",yb="[object String]",wb="[object WeakMap]",bb="[object ArrayBuffer]",_b="[object DataView]",xb="[object Float32Array]",Cb="[object Float64Array]",Tb="[object Int8Array]",Sb="[object Int16Array]",Db="[object Int32Array]",Eb="[object Uint8Array]",Mb="[object Uint8ClampedArray]",Ab="[object Uint16Array]",Ib="[object Uint32Array]",Se={};Se[xb]=Se[Cb]=Se[Tb]=Se[Sb]=Se[Db]=Se[Eb]=Se[Mb]=Se[Ab]=Se[Ib]=!0;Se[sb]=Se[ub]=Se[bb]=Se[lb]=Se[_b]=Se[cb]=Se[fb]=Se[db]=Se[hb]=Se[pb]=Se[mb]=Se[gb]=Se[vb]=Se[yb]=Se[wb]=!1;function Ob(e){return $n(e)&&pd(e.length)&&!!Se[Bn(e)]}function Rb(e){return function(t){return e(t)}}var md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hr=md&&typeof module=="object"&&module&&!module.nodeType&&module,kb=hr&&hr.exports===md,eo=kb&&ud.process,Fb=function(){try{var e=hr&&hr.require&&hr.require("util").types;return e||eo&&eo.binding&&eo.binding("util")}catch{}}();const Il=Fb;var Ol=Il&&Il.isTypedArray,Nb=Ol?Rb(Ol):Ob;const gd=Nb;var Pb=Object.prototype,Lb=Pb.hasOwnProperty;function $b(e,t){var n=Zi(e),r=!n&&Zw(e),i=!n&&!r&&Qo(e),a=!n&&!r&&!i&&gd(e),o=n||r||i||a,s=o?Yw(e.length,String):[],u=s.length;for(var l in e)(t||Lb.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ab(l,u)))&&s.push(l);return s}var zb=Object.prototype;function Hb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zb;return e===n}function Ub(e,t){return function(n){return e(t(n))}}var Wb=Ub(Object.keys,Object);const Bb=Wb;var Vb=Object.prototype,jb=Vb.hasOwnProperty;function qb(e){if(!Hb(e))return Bb(e);var t=[];for(var n in Object(e))jb.call(e,n)&&n!="constructor"&&t.push(n);return t}function Yb(e){return e!=null&&pd(e.length)&&!cd(e)}function Qb(e){return Yb(e)?$b(e):qb(e)}function Rl(e){return Hw(e,Qb,qw)}var Kb=1,Gb=Object.prototype,Xb=Gb.hasOwnProperty;function Zb(e,t,n,r,i,a){var o=n&Kb,s=Rl(e),u=s.length,l=Rl(t),f=l.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=s[c];if(!(o?d in t:Xb.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var C=o;++c1?"s":"")+" required, but only "+t.length+" present")}function h_(e){return Le(1,arguments),e instanceof Date||Qt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rt(e){Le(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Qt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pr(e){if(Le(1,arguments),!h_(e)&&typeof e!="number")return!1;var t=rt(e);return!isNaN(Number(t))}function Wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}var m_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},g_=function(t,n,r){var i,a=m_[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const v_=g_;function to(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var y_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},b_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},__={date:to({formats:y_,defaultWidth:"full"}),time:to({formats:w_,defaultWidth:"full"}),dateTime:to({formats:b_,defaultWidth:"full"})};const x_=__;var C_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},T_=function(t,n,r,i){return C_[t]};const S_=T_;function tr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var D_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},E_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},A_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},I_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},O_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},R_=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},k_={ordinalNumber:R_,era:tr({values:D_,defaultWidth:"wide"}),quarter:tr({values:E_,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:tr({values:M_,defaultWidth:"wide"}),day:tr({values:A_,defaultWidth:"wide"}),dayPeriod:tr({values:I_,defaultWidth:"wide",formattingValues:O_,defaultFormattingWidth:"wide"})};const F_=k_;function nr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?P_(s,function(c){return c.test(o)}):N_(s,function(c){return c.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=n.valueCallback?n.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}function N_(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function P_(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var $_=/^(\d+)(th|st|nd|rd)?/i,z_=/\d+/i,H_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},U_={any:[/^b/i,/^(a|c)/i]},W_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B_={any:[/1/i,/2/i,/3/i,/4/i]},V_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},j_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},q_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Y_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Q_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},K_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},G_={ordinalNumber:L_({matchPattern:$_,parsePattern:z_,valueCallback:function(t){return parseInt(t,10)}}),era:nr({matchPatterns:H_,defaultMatchWidth:"wide",parsePatterns:U_,defaultParseWidth:"any"}),quarter:nr({matchPatterns:W_,defaultMatchWidth:"wide",parsePatterns:B_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:nr({matchPatterns:V_,defaultMatchWidth:"wide",parsePatterns:j_,defaultParseWidth:"any"}),day:nr({matchPatterns:q_,defaultMatchWidth:"wide",parsePatterns:Y_,defaultParseWidth:"any"}),dayPeriod:nr({matchPatterns:Q_,defaultMatchWidth:"any",parsePatterns:K_,defaultParseWidth:"any"})};const X_=G_;var Z_={code:"en-US",formatDistance:v_,formatLong:x_,formatRelative:S_,localize:F_,match:X_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const J_=Z_;function ft(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ex(e,t){Le(2,arguments);var n=rt(e).getTime(),r=ft(t);return new Date(n+r)}function tx(e,t){Le(2,arguments);var n=ft(t);return ex(e,-n)}function nx(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Vl=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yd=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},rx=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return Vl(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",Vl(i,n)).replace("{{time}}",yd(a,n))},ix={p:yd,P:rx};const jl=ix;function ax(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var ox=["D","DD"],sx=["YY","YYYY"];function ux(e){return ox.indexOf(e)!==-1}function lx(e){return sx.indexOf(e)!==-1}function ql(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function he(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wh(e,t)}function cx(e,t){if(t&&(Qt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function pe(e){var t=Bh();return function(){var r=yu(e),i;if(t){var a=yu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return cx(this,i)}}function le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fx(e,t){if(Qt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wd(e){var t=fx(e,"string");return Qt(t)==="symbol"?t:String(t)}function Yl(e,t){for(var n=0;n0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function Cd(e){return e%400===0||e%4===0&&e%100!==0}var vx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var u=xd(o.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),yx={};function $r(){return yx}function gn(e,t){var n,r,i,a,o,s,u,l;Le(1,arguments);var f=$r(),c=ft((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rt(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var m=gn(p,t),C=new Date(0);C.setUTCFullYear(c,0,h),C.setUTCHours(0,0,0,0);var y=gn(C,t);return f.getTime()>=m.getTime()?c+1:f.getTime()>=y.getTime()?c:c-1}var wx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o,s){var u=Td(i,s);if(o.isTwoDigitYear){var l=xd(o.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),gn(i,s)}var f=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(f,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),gn(i,s)}}]),n}(be);function zn(e){Le(1,arguments);var t=1,n=rt(e),r=n.getUTCDay(),i=(r=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Cx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Tx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(be),Sx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Dx(e,t){var n,r,i,a,o,s,u,l;Le(1,arguments);var f=$r(),c=ft((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=Td(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=gn(h,t);return p}var Ex=6048e5;function Mx(e,t){Le(1,arguments);var n=rt(e),r=gn(n,t).getTime()-Dx(n,t).getTime();return Math.round(r/Ex)+1}function Ax(e,t,n){Le(2,arguments);var r=rt(e),i=ft(t),a=Mx(r,n)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var Ix=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o,s){return gn(Ax(i,o,s),s)}}]),n}(be);function Ox(e){Le(1,arguments);var t=rt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=zn(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=zn(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Rx(e){Le(1,arguments);var t=Ox(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=zn(n);return r}var kx=6048e5;function Fx(e){Le(1,arguments);var t=rt(e),n=zn(t).getTime()-Rx(t).getTime();return Math.round(n/kx)+1}function Nx(e,t){Le(2,arguments);var n=rt(e),r=ft(t),i=Fx(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var Px=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o){return zn(Nx(i,o))}}]),n}(be),Lx=[31,28,31,30,31,30,31,31,30,31,30,31],$x=[31,29,31,30,31,30,31,31,30,31,30,31],zx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=$x[u]:a>=1&&a<=Lx[u]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),n}(be),Hx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Vs(e,t,n){var r,i,a,o,s,u,l,f;Le(2,arguments);var c=$r(),d=ft((r=(i=(a=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(s=n.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&i!==void 0?i:(l=c.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=rt(e),p=ft(t),m=h.getUTCDay(),C=p%7,y=(C+7)%7,v=(y=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be),Wx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be),Bx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Vs(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(be);function Vx(e,t){Le(2,arguments);var n=ft(t);n%7===0&&(n=n-7);var r=1,i=rt(e),a=i.getUTCDay(),o=n%7,s=(o+7)%7,u=(s=1&&a<=7}},{key:"set",value:function(i,a,o){return i=Vx(i,o),i.setUTCHours(0,0,0,0),i}}]),n}(be),qx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(be),Gx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),n}(be),Xx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(be),Zx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),n}(be),Jx=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),n}(be),eC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),n}(be),tC=function(e){he(n,e);var t=pe(n);function n(){var r;le(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=ft((p=(m=(C=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&C!==void 0?C:F.weekStartsOn)!==null&&m!==void 0?m:(D=F.locale)===null||D===void 0||(g=D.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&p!==void 0?p:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return _===""?rt(n):new Date(NaN);var M={firstWeekContainsDate:k,weekStartsOn:b,locale:P},x=[new px],I=S.match(uC).map(function(re){var O=re[0];if(O in jl){var Y=jl[O];return Y(re,P.formatLong)}return re}).join("").match(sC),N=[],A=Bl(I),H;try{var U=function(){var O=H.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&lx(O)&&ql(O,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ux(O)&&ql(O,S,e);var Y=O[0],G=oC[Y];if(G){var R=G.incompatibleTokens;if(Array.isArray(R)){var ae=N.find(function(Ce){return R.includes(Ce.token)||Ce.token===Y});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(O,"` at the same time"))}else if(G.incompatibleTokens==="*"&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(O,"` and any other token at the same time"));N.push({token:Y,fullToken:O});var q=G.run(_,O,P.match,M);if(!q)return{v:new Date(NaN)};x.push(q.setter),_=q.rest}else{if(Y.match(dC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Y+"`");if(O==="''"?O="'":Y==="'"&&(O=hC(O)),_.indexOf(O)===0)_=_.slice(O.length);else return{v:new Date(NaN)}}};for(A.s();!(H=A.n()).done;){var K=U();if(Qt(K)==="object")return K.v}}catch(re){A.e(re)}finally{A.f()}if(_.length>0&&fC.test(_))return new Date(NaN);var X=x.map(function(re){return re.priority}).sort(function(re,O){return O-re}).filter(function(re,O,Y){return Y.indexOf(re)===O}).map(function(re){return x.filter(function(O){return O.priority===re}).sort(function(O,Y){return Y.subPriority-O.subPriority})}).map(function(re){return re[0]}),ne=rt(n);if(isNaN(ne.getTime()))return new Date(NaN);var j=tx(ne,ax(ne)),oe={},Q=Bl(X),se;try{for(Q.s();!(se=Q.n()).done;){var ee=se.value;if(!ee.validate(j,M))return new Date(NaN);var fe=ee.set(j,oe,M);Array.isArray(fe)?(j=fe[0],nx(oe,fe[1])):j=fe}}catch(re){Q.e(re)}finally{Q.f()}return j}function hC(e){return e.match(lC)[1].replace(cC,"'")}function pC(e,t){var n;Le(1,arguments);var r=ft((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=yC(e),a;if(i.date){var o=wC(i.date,r);a=bC(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),u=0,l;if(i.time&&(u=_C(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=xC(i.timezone),isNaN(l))return new Date(NaN)}else{var f=new Date(s+u),c=new Date(0);return c.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),c.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),c}return new Date(s+u+l)}var ai={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,gC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yC(e){var t={},n=e.split(ai.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ai.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ai.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=ai.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function wC(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function bC(e,t){if(t===null)return new Date(NaN);var n=e.match(mC);if(!n)return new Date(NaN);var r=!!n[4],i=rr(n[1]),a=rr(n[2])-1,o=rr(n[3]),s=rr(n[4]),u=rr(n[5])-1;if(r)return EC(t,s,u)?CC(t,s,u):new Date(NaN);var l=new Date(0);return!SC(t,a,o)||!DC(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function rr(e){return e?parseInt(e):1}function _C(e){var t=e.match(gC);if(!t)return NaN;var n=no(t[1]),r=no(t[2]),i=no(t[3]);return MC(n,r,i)?n*Ws+r*Us+i*1e3:NaN}function no(e){return e&&parseFloat(e.replace(",","."))||0}function xC(e){if(e==="Z")return 0;var t=e.match(vC);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return AC(r,i)?n*(r*Ws+i*Us):NaN}function CC(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var TC=[31,null,31,30,31,30,31,31,30,31,30,31];function Sd(e){return e%400===0||e%4===0&&e%100!==0}function SC(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(TC[t]||(Sd(e)?29:28))}function DC(e,t){return t>=1&&t<=(Sd(e)?366:365)}function EC(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function MC(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function AC(e,t){return t>=0&&t<=59}var pa={exports:{}},Dd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},Ed=Object.keys(Dd).join("|"),IC=new RegExp(Ed,"g"),OC=new RegExp(Ed,""),Md=function(e){return e.replace(IC,function(t){return Dd[t]})},RC=function(e){return!!e.match(OC)};pa.exports=Md;pa.exports.has=RC;pa.exports.remove=Md;var kC=pa.exports;const FC=nf(kC);var Je={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};js.rankings=Je;var NC=function(t,n){return String(t.rankedValue).localeCompare(String(n.rankedValue))};function js(e,t,n){n===void 0&&(n={});var r=n,i=r.keys,a=r.threshold,o=a===void 0?Je.MATCHES:a,s=r.baseSort,u=s===void 0?NC:s,l=r.sorter,f=l===void 0?function(h){return h.sort(function(p,m){return zC(p,m,u)})}:l,c=e.reduce(d,[]);return f(c).map(function(h){var p=h.item;return p});function d(h,p,m){var C=PC(p,i,t,n),y=C.rank,v=C.keyThreshold,w=v===void 0?o:v;return y>=w&&h.push(me({},C,{item:p,index:m})),h}}function PC(e,t,n,r){if(!t){var i=e;return{rankedValue:i,rank:Ql(i,n,r),keyIndex:-1,keyThreshold:r.threshold}}var a=WC(e,t);return a.reduce(function(o,s,u){var l=o.rank,f=o.rankedValue,c=o.keyIndex,d=o.keyThreshold,h=s.itemValue,p=s.attributes,m=Ql(h,n,r),C=f,y=p.minRanking,v=p.maxRanking,w=p.threshold;return m=Je.MATCHES?m=y:m>v&&(m=v),m>l&&(l=m,c=u,d=w,C=h),{rankedValue:C,rank:l,keyIndex:c,keyThreshold:d}},{rankedValue:e,rank:Je.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function Ql(e,t,n){return e=Kl(e,n),t=Kl(t,n),t.length>e.length?Je.NO_MATCH:e===t?Je.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Je.EQUAL:e.startsWith(t)?Je.STARTS_WITH:e.includes(" "+t)?Je.WORD_STARTS_WITH:e.includes(t)?Je.CONTAINS:t.length===1?Je.NO_MATCH:LC(e).includes(t)?Je.ACRONYM:$C(e,t))}function LC(e){var t="",n=e.split(" ");return n.forEach(function(r){var i=r.split("-");i.forEach(function(a){t+=a.substr(0,1)})}),t}function $C(e,t){var n=0,r=0;function i(d,h,p){for(var m=p,C=h.length;m-1;if(!f)return Je.NO_MATCH}var c=r-o;return a(c)}function zC(e,t,n){var r=-1,i=1,a=e.rank,o=e.keyIndex,s=t.rank,u=t.keyIndex,l=a===s;return l?o===u?n(e,t):os?r:i}function Kl(e,t){var n=t.keepDiacritics;return e=""+e,n||(e=FC(e)),e}function HC(e,t){typeof t=="object"&&(t=t.key);var n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return UC(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function UC(e,t){for(var n=e.split("."),r=[t],i=0,a=n.length;i0?qe(jn,--it):0,Hn--,Fe===10&&(Hn=1,ga--),Fe}function ut(){return Fe=it2||Or(Fe)>3?"":" "}function r5(e,t){for(;--t&&ut()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return zr(e,xi()+(t<6&&Lt()==32&&ut()==32))}function ts(e){for(;ut();)switch(Fe){case e:return it;case 34:case 39:e!==34&&e!==39&&ts(Fe);break;case 40:e===41&&ts(e);break;case 92:ut();break}return it}function i5(e,t){for(;ut()&&e+Fe!==47+10;)if(e+Fe===42+42&&Lt()===47)break;return"/*"+zr(t,it-1)+"*"+ma(e===47?e:ut())}function a5(e){for(;!Or(Lt());)ut();return zr(e,it)}function o5(e){return Fd(Ti("",null,null,null,[""],e=kd(e),0,[0],e))}function Ti(e,t,n,r,i,a,o,s,u){for(var l=0,f=0,c=o,d=0,h=0,p=0,m=1,C=1,y=1,v=0,w="",D=i,g=a,_=r,S=w;C;)switch(p=v,v=ut()){case 40:if(p!=108&&qe(S,c-1)==58){es(S+=we(Ci(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Ci(v);break;case 9:case 10:case 13:case 32:S+=n5(p);break;case 92:S+=r5(xi()-1,7);continue;case 47:switch(Lt()){case 42:case 47:oi(s5(i5(ut(),xi()),t,n),u);break;default:S+="/"}break;case 123*m:s[l++]=Et(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+f:y==-1&&(S=we(S,/\f/g,"")),h>0&&Et(S)-c&&oi(h>32?Zl(S+";",r,n,c-1):Zl(we(S," ","")+";",r,n,c-2),u);break;case 59:S+=";";default:if(oi(_=Xl(S,t,n,l,f,i,s,w,D=[],g=[],c),a),v===123)if(f===0)Ti(S,t,_,_,D,a,c,s,g);else switch(d===99&&qe(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ti(e,_,_,r&&oi(Xl(e,_,_,0,0,i,s,w,i,D=[],c),g),i,g,c,s,r?D:g);break;default:Ti(S,_,_,_,[""],g,0,s,g)}}l=f=h=0,m=y=1,w=S="",c=o;break;case 58:c=1+Et(S),h=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&t5()==125)continue}switch(S+=ma(v),v*m){case 38:y=f>0?1:(S+="\f",-1);break;case 44:s[l++]=(Et(S)-1)*y,y=1;break;case 64:Lt()===45&&(S+=Ci(ut())),d=Lt(),f=c=Et(w=S+=a5(xi())),v++;break;case 45:p===45&&Et(S)==2&&(m=0)}}return a}function Xl(e,t,n,r,i,a,o,s,u,l,f){for(var c=i-1,d=i===0?a:[""],h=Qs(d),p=0,m=0,C=0;p0?d[y]+" "+v:we(v,/&\f/g,d[y])))&&(u[C++]=w);return va(e,t,n,i===0?qs:s,u,l,f)}function s5(e,t,n){return va(e,t,n,Ad,ma(e5()),Ir(e,2,-2),0)}function Zl(e,t,n,r){return va(e,t,n,Ys,Ir(e,0,r),Ir(e,r+1,-1),r)}function In(e,t){for(var n="",r=Qs(e),i=0;i6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+ea+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~es(e,"stretch")?Nd(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Et(e)-3-(~es(e,"!important")&&10))){case 107:return we(e,":",":"+ye)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(qe(e,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ye+e+Ge+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ye+e+Ge+e+e}return e}var v5=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ys:t.return=Nd(t.value,t.length);break;case Id:return In([ir(t,{value:we(t.value,"@","@"+ye)})],i);case qs:if(t.length)return JC(t.props,function(a){switch(ZC(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return In([ir(t,{props:[we(a,/:(read-\w+)/,":"+ea+"$1")]})],i);case"::placeholder":return In([ir(t,{props:[we(a,/:(plac\w+)/,":"+ye+"input-$1")]}),ir(t,{props:[we(a,/:(plac\w+)/,":"+ea+"$1")]}),ir(t,{props:[we(a,/:(plac\w+)/,Ge+"input-$1")]})],i)}return""})}},y5=[v5],w5=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||y5,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},k5=/[A-Z]|^ms/g,F5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ud=function(t){return t.charCodeAt(1)===45},ec=function(t){return t!=null&&typeof t!="boolean"},ro=f5(function(e){return Ud(e)?e:e.replace(k5,"-$&").toLowerCase()}),tc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(F5,function(r,i,a){return Mt={name:i,styles:a,next:Mt},i})}return R5[t]!==1&&!Ud(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rr(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mt={name:n.name,styles:n.styles,next:Mt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Mt={name:r.name,styles:r.styles,next:Mt},r=r.next;var i=n.styles+";";return i}return N5(e,t,n)}case"function":{if(e!==void 0){var a=Mt,o=n(e);return Mt=a,Rr(e,t,o)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function N5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i"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 Si(e,t,n){return B5()?Si=Reflect.construct:Si=function(i,a,o){var s=[null];s.push.apply(s,a);var u=Function.bind.apply(i,s),l=new u;return o&&rs(l,o.prototype),l},Si.apply(null,arguments)}function _t(e){return V5(e)||j5(e)||q5(e)||Y5()}function V5(e){if(Array.isArray(e))return is(e)}function j5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q5(e,t){if(e){if(typeof e=="string")return is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return is(e,t)}}function is(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),u2=Ct(/\${[\w\W]*}/gm),l2=Ct(/^data-[\-\w.\u00B7-\uFFFF]/),c2=Ct(/^aria-[\-\w]+$/),f2=Ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d2=Ct(/^(?:\w+script|data):/i),h2=Ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p2=Ct(/^html$/i),m2=function(){return typeof window>"u"?null:window},g2=function(t,n){if(nn(t)!=="object"||typeof t.createPolicy!="function")return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Vd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m2(),t=function(T){return Vd(T)};if(t.version="2.4.5",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,a=e.HTMLTemplateElement,o=e.Node,s=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,f=l===void 0?e.NamedNodeMap||e.MozNamedAttrMap:l,c=e.HTMLFormElement,d=e.DOMParser,h=e.trustedTypes,p=s.prototype,m=si(p,"cloneNode"),C=si(p,"nextSibling"),y=si(p,"childNodes"),v=si(p,"parentNode");if(typeof a=="function"){var w=r.createElement("template");w.content&&w.content.ownerDocument&&(r=w.content.ownerDocument)}var D=g2(h,n),g=D?D.createHTML(""):"",_=r,S=_.implementation,F=_.createNodeIterator,P=_.createDocumentFragment,k=_.getElementsByTagName,b=n.importNode,M={};try{M=un(r).documentMode?r.documentMode:{}}catch{}var x={};t.isSupported=typeof v=="function"&&S&&typeof S.createHTMLDocument<"u"&&M!==9;var I=o2,N=s2,A=u2,H=l2,U=c2,K=d2,X=h2,ne=f2,j=null,oe=ie({},[].concat(_t(ac),_t(oo),_t(so),_t(uo),_t(oc))),Q=null,se=ie({},[].concat(_t(sc),_t(lo),_t(uc),_t(ui))),ee=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}})),fe=null,re=null,O=!0,Y=!0,G=!1,R=!0,ae=!1,q=!1,Ce=!1,Me=!1,Ne=!1,Ht=!1,te=!1,xe=!0,ue=!1,Ye="user-content-",ke=!0,Be=!1,Qe={},$e=null,Ut=ie({},["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"]),at=null,Kr=ie({},["audio","video","img","source","image","track"]),qn=null,Gr=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_n="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml",an=wt,Yn=!1,Qn=null,Ra=ie({},[_n,Xt,wt],io),on,Fh=["application/xhtml+xml","text/html"],Nh="text/html",ze,xn=null,Ph=r.createElement("form"),uu=function(T){return T instanceof RegExp||T instanceof Function},ka=function(T){xn&&xn===T||((!T||nn(T)!=="object")&&(T={}),T=un(T),on=Fh.indexOf(T.PARSER_MEDIA_TYPE)===-1?on=Nh:on=T.PARSER_MEDIA_TYPE,ze=on==="application/xhtml+xml"?io:Di,j="ALLOWED_TAGS"in T?ie({},T.ALLOWED_TAGS,ze):oe,Q="ALLOWED_ATTR"in T?ie({},T.ALLOWED_ATTR,ze):se,Qn="ALLOWED_NAMESPACES"in T?ie({},T.ALLOWED_NAMESPACES,io):Ra,qn="ADD_URI_SAFE_ATTR"in T?ie(un(Gr),T.ADD_URI_SAFE_ATTR,ze):Gr,at="ADD_DATA_URI_TAGS"in T?ie(un(Kr),T.ADD_DATA_URI_TAGS,ze):Kr,$e="FORBID_CONTENTS"in T?ie({},T.FORBID_CONTENTS,ze):Ut,fe="FORBID_TAGS"in T?ie({},T.FORBID_TAGS,ze):{},re="FORBID_ATTR"in T?ie({},T.FORBID_ATTR,ze):{},Qe="USE_PROFILES"in T?T.USE_PROFILES:!1,O=T.ALLOW_ARIA_ATTR!==!1,Y=T.ALLOW_DATA_ATTR!==!1,G=T.ALLOW_UNKNOWN_PROTOCOLS||!1,R=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ae=T.SAFE_FOR_TEMPLATES||!1,q=T.WHOLE_DOCUMENT||!1,Ne=T.RETURN_DOM||!1,Ht=T.RETURN_DOM_FRAGMENT||!1,te=T.RETURN_TRUSTED_TYPE||!1,Me=T.FORCE_BODY||!1,xe=T.SANITIZE_DOM!==!1,ue=T.SANITIZE_NAMED_PROPS||!1,ke=T.KEEP_CONTENT!==!1,Be=T.IN_PLACE||!1,ne=T.ALLOWED_URI_REGEXP||ne,an=T.NAMESPACE||wt,ee=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&uu(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&uu(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ae&&(Y=!1),Ht&&(Ne=!0),Qe&&(j=ie({},_t(oc)),Q=[],Qe.html===!0&&(ie(j,ac),ie(Q,sc)),Qe.svg===!0&&(ie(j,oo),ie(Q,lo),ie(Q,ui)),Qe.svgFilters===!0&&(ie(j,so),ie(Q,lo),ie(Q,ui)),Qe.mathMl===!0&&(ie(j,uo),ie(Q,uc),ie(Q,ui))),T.ADD_TAGS&&(j===oe&&(j=un(j)),ie(j,T.ADD_TAGS,ze)),T.ADD_ATTR&&(Q===se&&(Q=un(Q)),ie(Q,T.ADD_ATTR,ze)),T.ADD_URI_SAFE_ATTR&&ie(qn,T.ADD_URI_SAFE_ATTR,ze),T.FORBID_CONTENTS&&($e===Ut&&($e=un($e)),ie($e,T.FORBID_CONTENTS,ze)),ke&&(j["#text"]=!0),q&&ie(j,["html","head","body"]),j.table&&(ie(j,["tbody"]),delete fe.tbody),et&&et(T),xn=T)},lu=ie({},["mi","mo","mn","ms","mtext"]),cu=ie({},["foreignobject","desc","title","annotation-xml"]),Lh=ie({},["title","style","font","a","script"]),Xr=ie({},oo);ie(Xr,so),ie(Xr,i2);var Fa=ie({},uo);ie(Fa,a2);var $h=function(T){var L=v(T);(!L||!L.tagName)&&(L={namespaceURI:an,tagName:"template"});var W=Di(T.tagName),ve=Di(L.tagName);return Qn[T.namespaceURI]?T.namespaceURI===Xt?L.namespaceURI===wt?W==="svg":L.namespaceURI===_n?W==="svg"&&(ve==="annotation-xml"||lu[ve]):!!Xr[W]:T.namespaceURI===_n?L.namespaceURI===wt?W==="math":L.namespaceURI===Xt?W==="math"&&cu[ve]:!!Fa[W]:T.namespaceURI===wt?L.namespaceURI===Xt&&!cu[ve]||L.namespaceURI===_n&&!lu[ve]?!1:!Fa[W]&&(Lh[W]||!Xr[W]):!!(on==="application/xhtml+xml"&&Qn[T.namespaceURI]):!1},Wt=function(T){ar(t.removed,{element:T});try{T.parentNode.removeChild(T)}catch{try{T.outerHTML=g}catch{T.remove()}}},Na=function(T,L){try{ar(t.removed,{attribute:L.getAttributeNode(T),from:L})}catch{ar(t.removed,{attribute:null,from:L})}if(L.removeAttribute(T),T==="is"&&!Q[T])if(Ne||Ht)try{Wt(L)}catch{}else try{L.setAttribute(T,"")}catch{}},fu=function(T){var L,W;if(Me)T=""+T;else{var ve=e2(T,/^[\r\n\t ]+/);W=ve&&ve[0]}on==="application/xhtml+xml"&&an===wt&&(T=''+T+"");var tt=D?D.createHTML(T):T;if(an===wt)try{L=new d().parseFromString(tt,on)}catch{}if(!L||!L.documentElement){L=S.createDocument(an,"template",null);try{L.documentElement.innerHTML=Yn?g:tt}catch{}}var Ke=L.body||L.documentElement;return T&&W&&Ke.insertBefore(r.createTextNode(W),Ke.childNodes[0]||null),an===wt?k.call(L,q?"html":"body")[0]:q?L.documentElement:Ke},du=function(T){return F.call(T.ownerDocument||T,T,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},zh=function(T){return T instanceof c&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof f)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},Kn=function(T){return nn(o)==="object"?T instanceof o:T&&nn(T)==="object"&&typeof T.nodeType=="number"&&typeof T.nodeName=="string"},Bt=function(T,L,W){x[T]&&J5(x[T],function(ve){ve.call(t,L,W,xn)})},hu=function(T){var L;if(Bt("beforeSanitizeElements",T,null),zh(T)||Ze(/[\u0080-\uFFFF]/,T.nodeName))return Wt(T),!0;var W=ze(T.nodeName);if(Bt("uponSanitizeElement",T,{tagName:W,allowedTags:j}),T.hasChildNodes()&&!Kn(T.firstElementChild)&&(!Kn(T.content)||!Kn(T.content.firstElementChild))&&Ze(/<[/\w]/g,T.innerHTML)&&Ze(/<[/\w]/g,T.textContent)||W==="select"&&Ze(/