blogwright-analytics 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +162 -0
- package/dist/adapters/duckdb-ingest.d.ts +76 -0
- package/dist/adapters/duckdb-ingest.js +173 -0
- package/dist/adapters/duckdb-query.d.ts +56 -0
- package/dist/adapters/duckdb-query.js +80 -0
- package/dist/adapters/duckdb-session.d.ts +168 -0
- package/dist/adapters/duckdb-session.js +330 -0
- package/dist/app/_app/immutable/assets/0.BTQrrh5B.css +1 -0
- package/dist/app/_app/immutable/assets/2.CZSK3rT8.css +1 -0
- package/dist/app/_app/immutable/assets/BrushContext.D7c8UPey.css +1 -0
- package/dist/app/_app/immutable/assets/ChartAnnotations.CPxIG7Mw.css +1 -0
- package/dist/app/_app/immutable/assets/Circle.C5MKzgk2.css +1 -0
- package/dist/app/_app/immutable/assets/DefaultTooltip.C5-uctZ7.css +1 -0
- package/dist/app/_app/immutable/assets/Group.DV48xipa.css +1 -0
- package/dist/app/_app/immutable/assets/Labels.BxZ4NUVz.css +1 -0
- package/dist/app/_app/immutable/assets/Legend.CxnrE4Ye.css +1 -0
- package/dist/app/_app/immutable/assets/Line.fkmsECm9.css +1 -0
- package/dist/app/_app/immutable/assets/Path.CvpwNZ6g.css +1 -0
- package/dist/app/_app/immutable/assets/Rect.CtRaGMmQ.css +1 -0
- package/dist/app/_app/immutable/assets/Text.j9l35qB0.css +1 -0
- package/dist/app/_app/immutable/assets/TransformContext.Bs_HkpAk.css +1 -0
- package/dist/app/_app/immutable/assets/Voronoi.ce7atosu.css +1 -0
- package/dist/app/_app/immutable/chunks/-aNGNaBT.js +1 -0
- package/dist/app/_app/immutable/chunks/6djn-yLs.js +1 -0
- package/dist/app/_app/immutable/chunks/B1amyutE.js +1 -0
- package/dist/app/_app/immutable/chunks/B3vZDoek.js +1 -0
- package/dist/app/_app/immutable/chunks/B5KRA4hC.js +1 -0
- package/dist/app/_app/immutable/chunks/BClnVG6H.js +1 -0
- package/dist/app/_app/immutable/chunks/BID1NNRh.js +1 -0
- package/dist/app/_app/immutable/chunks/BR2LaRms.js +1 -0
- package/dist/app/_app/immutable/chunks/Bd1gDe3Y.js +1 -0
- package/dist/app/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/dist/app/_app/immutable/chunks/Bl052uUt.js +1 -0
- package/dist/app/_app/immutable/chunks/Bye3lL0c.js +1 -0
- package/dist/app/_app/immutable/chunks/C58PZtCD.js +4 -0
- package/dist/app/_app/immutable/chunks/CAzydqEO.js +1 -0
- package/dist/app/_app/immutable/chunks/CCch3uox.js +1 -0
- package/dist/app/_app/immutable/chunks/CIlSMUH9.js +1 -0
- package/dist/app/_app/immutable/chunks/CO1vUXfR.js +1 -0
- package/dist/app/_app/immutable/chunks/CPbD8C65.js +5 -0
- package/dist/app/_app/immutable/chunks/CRTcXoMo.js +1 -0
- package/dist/app/_app/immutable/chunks/CjjyIQAO.js +1 -0
- package/dist/app/_app/immutable/chunks/CuXAxjvF.js +1 -0
- package/dist/app/_app/immutable/chunks/CvyVA_jC.js +1 -0
- package/dist/app/_app/immutable/chunks/CxGCFVdy.js +1 -0
- package/dist/app/_app/immutable/chunks/D0Ty6LN0.js +1 -0
- package/dist/app/_app/immutable/chunks/D2AaQUUW.js +1 -0
- package/dist/app/_app/immutable/chunks/D2BnX0Uk.js +3 -0
- package/dist/app/_app/immutable/chunks/DJc8C0NK.js +1 -0
- package/dist/app/_app/immutable/chunks/DKMlMI4a.js +1 -0
- package/dist/app/_app/immutable/chunks/DVXZkpbf.js +1 -0
- package/dist/app/_app/immutable/chunks/DVt8ukQ_.js +1 -0
- package/dist/app/_app/immutable/chunks/DZPlYdq_.js +1 -0
- package/dist/app/_app/immutable/chunks/Db0q5_zr.js +1 -0
- package/dist/app/_app/immutable/chunks/Dfvzj6n2.js +1 -0
- package/dist/app/_app/immutable/chunks/Dh958be7.js +1 -0
- package/dist/app/_app/immutable/chunks/DjKLLdnY.js +15 -0
- package/dist/app/_app/immutable/chunks/Doz7YX1W.js +1 -0
- package/dist/app/_app/immutable/chunks/DthYhn6Y.js +2 -0
- package/dist/app/_app/immutable/chunks/DtuTIrAM.js +1 -0
- package/dist/app/_app/immutable/chunks/HclGiUj8.js +1 -0
- package/dist/app/_app/immutable/chunks/Hx0TNsV3.js +1 -0
- package/dist/app/_app/immutable/chunks/RobXhXPM.js +1 -0
- package/dist/app/_app/immutable/chunks/V9ZjaxiY.js +1 -0
- package/dist/app/_app/immutable/chunks/Y5urAfNy.js +1 -0
- package/dist/app/_app/immutable/chunks/caXkbKD3.js +1 -0
- package/dist/app/_app/immutable/chunks/devYm2ud.js +1 -0
- package/dist/app/_app/immutable/chunks/mtZWP0zR.js +1 -0
- package/dist/app/_app/immutable/chunks/vDgBJUjM.js +1 -0
- package/dist/app/_app/immutable/chunks/xIq_fFFM.js +1 -0
- package/dist/app/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/app/_app/immutable/chunks/z05MoCFz.js +1 -0
- package/dist/app/_app/immutable/entry/app.CLAerUAN.js +2 -0
- package/dist/app/_app/immutable/entry/start.D3MqnNci.js +1 -0
- package/dist/app/_app/immutable/nodes/0.UTMEigHJ.js +1 -0
- package/dist/app/_app/immutable/nodes/1.Cn4f11bT.js +1 -0
- package/dist/app/_app/immutable/nodes/2.B39cIcr2.js +6 -0
- package/dist/app/_app/version.json +1 -0
- package/dist/app/index.html +82 -0
- package/dist/aws/clients.d.ts +70 -0
- package/dist/aws/clients.js +52 -0
- package/dist/aws/errors.d.ts +41 -0
- package/dist/aws/errors.js +70 -0
- package/dist/aws/firehose.d.ts +228 -0
- package/dist/aws/firehose.js +347 -0
- package/dist/aws/glue.d.ts +103 -0
- package/dist/aws/glue.js +225 -0
- package/dist/aws/lambda.d.ts +132 -0
- package/dist/aws/lambda.js +339 -0
- package/dist/aws/s3tables.d.ts +120 -0
- package/dist/aws/s3tables.js +281 -0
- package/dist/backfill.d.ts +100 -0
- package/dist/backfill.js +294 -0
- package/dist/commands.d.ts +124 -0
- package/dist/commands.js +336 -0
- package/dist/config.d.ts +162 -0
- package/dist/config.js +317 -0
- package/dist/fixture-ingest.d.ts +49 -0
- package/dist/fixture-ingest.js +43 -0
- package/dist/fixture-query.d.ts +39 -0
- package/dist/fixture-query.js +70 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +35 -0
- package/dist/nodes.d.ts +404 -0
- package/dist/nodes.js +2708 -0
- package/dist/paths.d.ts +45 -0
- package/dist/paths.js +47 -0
- package/dist/plugin.d.ts +102 -0
- package/dist/plugin.js +248 -0
- package/dist/ports.d.ts +113 -0
- package/dist/ports.js +35 -0
- package/dist/queries.d.ts +301 -0
- package/dist/queries.js +414 -0
- package/dist/schema.d.ts +240 -0
- package/dist/schema.js +154 -0
- package/dist/server.d.ts +150 -0
- package/dist/server.js +499 -0
- package/dist/transform/bots.d.ts +47 -0
- package/dist/transform/bots.js +73 -0
- package/dist/transform/handler.d.ts +135 -0
- package/dist/transform/handler.js +177 -0
- package/dist/transform/map-record.d.ts +110 -0
- package/dist/transform/map-record.js +275 -0
- package/dist/transform/visitor-key.d.ts +83 -0
- package/dist/transform/visitor-key.js +120 -0
- package/dist/transform-bundle/index.mjs +21456 -0
- package/dist/transform-bundle/transform-manifest.json +4 -0
- package/dist/transform-hash.d.ts +135 -0
- package/dist/transform-hash.js +186 -0
- package/dist/write-transform-manifest.mjs +365 -0
- package/package.json +59 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=Array.isArray,r=Array.prototype.indexOf,i=Array.prototype.includes,a=Array.from,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible;function p(e){return typeof e==`function`}var m=()=>{};function h(e){return typeof e?.then==`function`}function g(e){for(var t=0;t<e.length;t++)e[t]()}function _(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function v(e,t,n=!1){return e===void 0?n?t():t:e}function y(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}function b(e,t){var n={};for(var r in e)t.includes(r)||(n[r]=e[r]);for(var i of Object.getOwnPropertySymbols(e))Object.propertyIsEnumerable.call(e,i)&&!t.includes(i)&&(n[i]=e[i]);return n}var x=1<<24,S=1024,C=2048,w=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,ae=1<<18,oe=1<<19,se=1<<20,ce=1<<25,le=65536,ue=1<<21,de=1<<22,fe=1<<23,T=Symbol(`$state`),pe=Symbol(`component`),me=Symbol(`legacy props`),he=Symbol(``),ge=Symbol(`proxy path`),_e=Symbol(`attributes`),ve=Symbol(`class`),ye=Symbol(`style`),be=Symbol(`text`),xe=Symbol(`form reset`),Se=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ce=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),we={},E=Symbol(`uninitialized`),Te=`http://www.w3.org/1999/xhtml`;function Ee(){console.warn(`https://svelte.dev/e/derived_inert`)}function De(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var D=!1;function O(e){D=e}var k;function A(e){if(e===null)throw Oe(),we;return k=e}function je(){return A(z(k))}function Me(e){if(D){if(z(k)!==null)throw Oe(),we;k=e}}function Ne(e=1){if(D){for(var t=e,n=k;t--;)n=z(n);k=n}}function Pe(e=!0){for(var t=0,n=k;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Oe(),we;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}function ze(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Be(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Ve(){throw Error(`https://svelte.dev/e/missing_context`)}function He(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ue(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function We(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ke(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function qe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Je(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Ye(){throw Error(`https://svelte.dev/e/fork_timing`)}function Xe(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ze(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Qe(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function $e(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function et(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function tt(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function nt(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function rt(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var it=[];function at(e,t=!1,n=!1){return ot(e,new Map,``,it,null,n)}function ot(e,t,r,i,a=null,o=!1){if(typeof e==`object`&&e){var s=t.get(e);if(s!==void 0)return s;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(n(e)){var c=Array(e.length);t.set(e,c),a!==null&&t.set(a,c);for(var u=0;u<e.length;u+=1){var f=e[u];u in e&&(c[u]=ot(f,t,r,i,null,o))}return c}if(d(e)===l){c={},t.set(e,c),a!==null&&t.set(a,c);for(var p of Object.keys(e))c[p]=ot(e[p],t,r,i,null,o);return c}if(e instanceof Date)return e.getTime(),structuredClone(e);if(typeof e.toJSON==`function`&&!o)return ot(e.toJSON(),t,r,i,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}function st(e,t){return e.label=t,ct(e.v,t),e}function ct(e,t){return e?.[ge]?.(t),e}function lt(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function ut(e,t,n){let r={};return[()=>(n(r)||Ve(),e(r)),e=>t(r,e),()=>n(r)]}function dt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function ft(e,t){return e===null&&Be(t),e.c??=new Map(dt(e)||void 0)}var j=null;function pt(e){j=e}function mt(){return ut(ht,gt,_t)}function ht(e){return ft(j,`getContext`).get(e)}function gt(e,t){return ft(j,`setContext`).set(e,t),t}function _t(e){return ft(j,`hasContext`).has(e)}function vt(){return ft(j,`getAllContexts`)}function yt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:K,l:null}}function bt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)er(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,xt(e)}function xt(e={}){return o(e,pe,{value:!0}),e}function St(){return!0}var Ct=[];function wt(){var e=Ct;Ct=[],g(e)}function M(e){if(Ct.length===0&&!nn){var t=Ct;queueMicrotask(()=>{t===Ct&&wt()})}Ct.push(e)}function Tt(){for(;Ct.length>0;)wt()}var Et=~(C|w|S);function N(e,t){e.f=e.f&Et|t}function Dt(e){e.f&512||e.deps===null?N(e,S):N(e,w)}function Ot(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Ot(t.deps))}function kt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ot(e.deps),N(e,S)}var At=[];function jt(e,t=m){let n=null,r=new Set;function i(t){if(Le(e,t)&&(e=t,n)){let t=!At.length;for(let t of r)t[1](),At.push(t,e);if(t){for(let e=0;e<At.length;e+=2)At[e][0](At[e+1]);At.length=0}}}function a(t){i(t(e))}function o(o,s=m){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||m),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var Mt=!1;function Nt(e){var t=Mt;try{return Mt=!1,[e(),Mt]}finally{Mt=t}}function Pt(e,t){if(t){let t=document.body;e.autofocus=!0,M(()=>{document.activeElement===t&&e.focus()})}}var Ft=!1;function It(){Ft||(Ft=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[xe]?.()})},{capture:!0}))}function Lt(e){var t=U,n=K;G(null),wr(null);try{return e()}finally{G(t),wr(n)}}function Rt(e,t,n,r=n){e.addEventListener(t,()=>Lt(n));let i=e[xe];e[xe]=i?()=>{i(),r(!0)}:()=>r(!0),It()}function zt(e,t,n,r){let i=St()?Ut:qt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=K,c=Bt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Jn(e,s)}Vt()}}var d=Ht();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Gt(e))).then(u).catch(e=>Jn(e,s)).finally(d)}l?l.then(()=>{c(),f(),Vt()}):f()}function Bt(){var e=K,t=U,n=j,r=P;return function(i=!0){wr(e),G(t),pt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Vt(e=!0){wr(null),G(null),pt(null),e&&P?.deactivate()}function Ht(){var e=K,t=e.b,n=P,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Ut(e){var t=2|C;return K!==null&&(K.f|=oe),{ctx:j,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:K,ac:null}}var Wt=Symbol(`obsolete`);function Gt(e,t,n){let r=K;r===null&&He();var i=void 0,a=Cn(E),o=!U,s=new Set;return ar(()=>{var t=K,n=_();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Se&&n.reject(e)}).finally(Vt)}catch(e){n.reject(e),Vt()}var c=P;if(o){if(t.f&32768)var l=Ht();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Wt);else for(let e of s.values())e.reject(Wt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Wt&&(c.activate(),t?(a.f|=fe,En(a,t)):(a.f&8388608&&(a.f^=fe),En(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Qn(()=>{for(let e of s)e.reject(Wt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Kt(e){let t=Ut(e);return Er(t),t}function qt(e){let t=Ut(e);return t.equals=Re,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Yt(e){var t,n=K,r=e.parent;if(!Sr&&r!==null&&e.v!==E&&r.f&24576)return Ee(),e.v;wr(r);try{e.f&=~le,Jt(e),t=Fr(e)}finally{wr(n)}return t}function Xt(e){var t=Yt(e);if(!e.equals(t)&&(e.wv=Mr(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),en?.capture(e,t,!0)),e.deps===null))){N(e,S);return}Sr||(F===null?Dt(e):(Zn()||P?.is_fork)&&F.set(e,t))}function Zt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Lt(()=>{t.ac.abort(Se),t.ac=null}),t.fn!==null&&(t.teardown=m),Rr(t,0),dr(t))}function Qt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&zr(t)}var $t=null,P=null,en=null,F=null,tn=null,nn=!1,rn=!1,an=null,on=null,sn=0,cn=1,ln=class e{id=cn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){$t===null?$t=this:($t.#n=this,this.#t=$t),$t=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)N(r,C),t(r);for(r of n.m)N(r,w),t(r)}this.#p.add(e)}#g(){this.#e=!0,sn++>1e3&&(this.#x(),dn());for(let e of this.#u)this.#d.delete(e),N(e,C),this.schedule(e);for(let e of this.#d)N(e,w),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=an=[],r=[],i=on=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw _n(e),this.#h()||this.discard(),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(an=null,on=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)gn(e,t);i.length>0&&P.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),en=this,pn(r),pn(n),en=null,this.#s?.resolve();var s=P;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(bn.clear(),s.#g())}#_(e,t,n){e.f^=S;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=S:i&4?t.push(r):Nr(r)&&(i&16&&this.#d.add(r),zr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),N(i,C),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),P=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)kt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==E&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{rn=!0,P=this,this.#g()}finally{sn=0,tn=null,an=null,on=null,rn=!1,P=null,F=null,bn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Wt);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,M(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=_()).promise}static ensure(){if(P===null){let t=P=new e;!rn&&!nn&&M(()=>{t.#e||t.flush()})}return P}apply(){F=null}schedule(e){if(tn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(an!==null&&t===K&&(U===null||!(U.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=S}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?$t=e:t.#t=e,this.linked=!1}}};function un(e){var t=nn;nn=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(Tt(),P===null)return n;P.flush()}}finally{nn=t}}function dn(){try{qe()}catch(e){Jn(e,tn)}}var fn=null;function pn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Nr(r)&&(fn=new Set,zr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mr(r),fn?.size>0)){bn.clear();for(let e of fn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)fn.has(n)&&(fn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||zr(n)}}fn.clear()}}fn=null}}function mn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?mn(n,t):e&131072&&(N(n,C),t.add(n))}}function hn(e){P.schedule(e)}function gn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,S);for(var n=e.first;n!==null;)gn(n,t),n=n.next}}function _n(e){N(e,S);for(var t=e.first;t!==null;)_n(t),t=t.next}function vn(e){ze(`fork`),P!==null&&Ye();var t=ln.ensure();t.is_fork=!0,F=new Map;var n=!1,r=t.settled();return un(e),{commit:async()=>{if(n){await r;return}t.linked||Je(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Mr();un(()=>{var e=new Set;for(var n of t.current.keys())mn(n,e);xn(e),Dn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Mr();!n&&t.linked&&t.discard()}}}var yn=new Set,bn=new Map;function xn(e){yn=e}var Sn=!1;function Cn(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function wn(e,t){let n=Cn(e,t);return Er(n),n}function Tn(e,t=!1,n=!0){let r=Cn(e);return t||(r.equals=Re),r}function I(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&St()&&U.f&4325394&&(Tr===null||!Tr.has(e))&&nt(),En(e,n?An(t):t,on)}function En(e,t,n=null){if(!e.equals(t)){Sr?bn.set(e,t):bn.has(e)||bn.set(e,e.v);var r=ln.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Yt(t),F===null&&Dt(t)}e.wv=Mr(),kn(e,C,n),St()&&K!==null&&K.f&1024&&!(K.f&96)&&(Y===null?Dr([e]):Y.push(e)),!r.is_fork&&yn.size>0&&!Sn&&Dn()}return t}function Dn(){Sn=!1;for(let e of yn){e.f&1024&&N(e,w);let t;try{t=Nr(e)}catch{t=!0}t&&zr(e)}yn.clear()}function On(e){I(e,e.v+1)}function kn(e,t,n){var r=e.reactions;if(r!==null)for(var i=St(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&C)===0;if(l&&N(s,t),c&131072)yn.add(s);else if(c&2){var u=s;F?.delete(u),c&65536||(c&512&&(K===null||!(K.f&2097152))&&(s.f|=le),kn(u,w,n))}else if(l){var d=s;c&16&&fn!==null&&fn.add(d),n===null?hn(d):n.push(d)}}}}function An(e){if(typeof e!=`object`||!e||T in e||pe in e)return e;let t=d(e);if(t!==l&&t!==u)return e;var r=new Map,i=n(e),a=wn(0),o=null,c=Ar,f=e=>{if(Ar===c)return e();var t=U,n=Ar;G(null),jr(c);var r=e();return G(t),jr(n),r};return i&&r.set(`length`,wn(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&et();var i=r.get(t);return i===void 0?f(()=>{var e=wn(n.value,o);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>wn(E,o));r.set(t,e),On(a)}}else I(n,E),On(a);return!0},get(t,n,i){if(n===T)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>wn(An(c?t[n]:E),o)),r.set(n,a)),a!==void 0){var l=X(a);return l===E?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=X(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==E)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===T)return!0;var n=r.get(t),i=n!==void 0&&n.v!==E||Reflect.has(e,t);return(n!==void 0||K!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>wn(i?An(e[t]):E,o)),r.set(t,n)),X(n)===E)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>wn(E,o)),r.set(d+``,p)):I(p,E)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>wn(void 0,o)),I(l,An(n)),r.set(t,l));else{u=l.v!==E;var m=f(()=>An(n));I(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}On(a)}return!0},ownKeys(e){X(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==E});for(var[n,i]of r)i.v!==E&&!(n in e)&&t.push(n);return t},setPrototypeOf(){tt()}})}function jn(e){try{if(typeof e==`object`&&e&&T in e)return e[T]}catch{}return e}function Mn(e,t){return Object.is(jn(e),jn(t))}var Nn,Pn,Fn,In,Ln;function Rn(){if(Nn===void 0){Nn=window,Pn=document,Fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;In=s(t,`firstChild`).get,Ln=s(t,`nextSibling`).get,f(e)&&(e[ve]=void 0,e[_e]=null,e[ye]=void 0,e.__e=void 0),f(n)&&(n[be]=void 0)}}function L(e=``){return document.createTextNode(e)}function R(e){return In.call(e)}function z(e){return Ln.call(e)}function zn(e,t){if(!D)return R(e);var n=R(k);if(n===null)n=k.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),A(r),r}return t&&Kn(n),A(n),n}function Bn(e,t=!1){if(!D){var n=R(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(k?.nodeType!==3){var r=L();return k?.before(r),A(r),r}Kn(k)}return k}function Vn(e,t=!1){if(!D)return R(e);var n=zn(e,t);return Me(e),n}function Hn(e,t=1,n=!1){let r=D?k:e;for(var i;t--;)i=r,r=z(r);if(!D)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),A(a),a}Kn(r)}return A(r),r}function Un(e){e.textContent=``}function Wn(){return!1}function Gn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Kn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function qn(e){var t=K;if(t===null)return U.f|=fe,e;if(!(t.f&32768)&&!(t.f&4))throw e;Jn(e,t)}function Jn(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function Yn(e){K===null&&(U===null&&Ke(e),Ge()),Sr&&We(e)}function Xn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=ee);var r={ctx:j,deps:null,nodes:null,f:e|C|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)an===null?ln.ensure().schedule(r):an.push(r);else if(t!==null){try{zr(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&Xn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function Zn(){return U!==null&&!W}function Qn(e){let t=B(8,null);return N(t,S),t.teardown=e,t}function $n(e){Yn(`$effect`);var t=K.f;if(!U&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return er(e)}function er(e){return B(4|se,e)}function tr(e){return Yn(`$effect.pre`),B(8|se,e)}function nr(e){ln.ensure();let t=B(64|oe,e);return()=>{H(t)}}function rr(e){ln.ensure();let t=B(64|oe,e);return(e={})=>new Promise(n=>{e.outro?hr(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function ir(e){return B(4,e)}function ar(e){return B(de|oe,e)}function or(e,t=0){return B(8|t,e)}function sr(e,t=[],n=[],r=[]){zt(r,t,n,t=>{B(8,()=>{e(...t.map(X))})})}function cr(e,t=0){return B(16|t,e)}function lr(e,t=0){return B(x|t,e)}function V(e){return B(32|oe,e)}function ur(e){var t=e.teardown;if(t!==null){let n=Sr,r=U;Cr(!0),G(null);try{t.call(null)}catch(t){Jn(t,e.parent)}finally{Cr(n),G(r)}}}function dr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Lt(()=>{e.abort(Se)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function fr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(pr(e.nodes.start,e.nodes.end),n=!0),e.f|=re,dr(e,t&&!n),Rr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();ur(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function pr(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function mr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hr(e,t,n=!0){var r=[];e.f|=256,gr(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function gr(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);gr(i,t,o?n:!1)}i=a}}}function _r(e){e.f&=-257,vr(e,!0)}function vr(e,t){if(!(e.f&256)&&e.f&8192){e.f^=ee,e.f&1024||(N(e,C),ln.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);vr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function yr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var br=null,xr=!1,Sr=!1;function Cr(e){Sr=e}var U=null,W=!1;function G(e){U=e}var K=null;function wr(e){K=e}var Tr=null;function Er(e){U!==null&&(Tr??=new Set).add(e)}var q=null,J=0,Y=null;function Dr(e){Y=e}var Or=1,kr=0,Ar=kr;function jr(e){Ar=e}function Mr(){return++Or}function Nr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Nr(a)&&Xt(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,S)}return!1}function Pr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Tr!==null&&Tr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Pr(a,t,!1):t===a&&(n?N(a,C):a.f&1024&&N(a,w),hn(a))}}function Fr(e){var t=q,n=J,r=Y,i=U,a=Tr,o=j,s=W,c=Ar,l=e.f;q=null,J=0,Y=null,U=l&96?null:e,Tr=null,pt(e.ctx),W=!1,Ar=++kr,e.ac!==null&&(Lt(()=>{e.ac.abort(Se)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=ne;var f=Ir(e);if(St()&&Y!==null&&!W&&f!==null&&!(e.f&6146))for(var p=0;p<Y.length;p++)Pr(Y[p],e);if(i!==null&&i!==e){if(kr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=kr;if(t!==null)for(let e of t)e.rv=kr;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=fe),d}catch(t){return Ir(e),qn(t)}finally{e.f^=ue,q=t,J=n,Y=r,U=i,Tr=a,pt(o),W=s,Ar=c}}function Ir(e){var t=e.deps,n=P?.is_fork;if(q!==null){var r;if(n||Rr(e,J),t!==null&&J>0)for(t.length=J+q.length,r=0;r<q.length;r++)t[J+r]=q[r];else e.deps=t=q;if(Zn()&&e.f&512)for(r=J;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&J<t.length&&(Rr(e,J),t.length=J);return t}function Lr(e,t){let n=t.reactions;if(n!==null){var a=r.call(n,e);if(a!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[a]=n[o],n.pop())}}if(n===null&&t.f&2&&(q===null||!i.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~le),s.v!==E&&Dt(s),s.ac!==null&&Lt(()=>{s.ac.abort(Se),s.ac=null,N(s,C)}),Zt(s),Rr(s,0)}}function Rr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Lr(e,n[r])}function zr(e){var t=e.f;if(!(t&16384)){N(e,S);var n=K,r=xr;K=e,xr=!(t&96);try{t&16777232?fr(e):dr(e),ur(e);var i=Fr(e);e.teardown=typeof i==`function`?i:null,e.wv=Or}finally{xr=r,K=n}}}async function Br(){await Promise.resolve(),un()}function Vr(){return ln.ensure().settled()}function X(e){var t=!!(e.f&2);if(br?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(Tr===null||!Tr.has(e))){var n=U.deps;if(U.f&2097152)e.rv<kr&&(e.rv=kr,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{U.deps??=[],i.call(U.deps,e)||U.deps.push(e);var r=e.reactions;r===null?e.reactions=[U]:i.call(r,U)||r.push(U)}}if(Sr&&bn.has(e))return bn.get(e);if(t){var a=e;if(Sr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Ur(a))&&(o=Yt(a)),bn.set(a,o),o}var s=!(a.f&512)&&!W&&U!==null&&(xr||!!(U.f&512)),c=(a.f&ne)===0;Nr(a)&&(s&&(a.f|=512),Xt(a)),s&&!c&&(Qt(a),Hr(a))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function Hr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Qt(t),Hr(t))}function Ur(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(bn.has(t)||t.f&2&&Ur(t))return!0;return!1}function Z(e){var t=W;try{return W=!0,e()}finally{W=t}}function Wr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(T in e)Gr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&T in n&&Gr(n)}}}function Gr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Gr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Kr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var qr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Jr(e){return qr.includes(e)}var Yr=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Xr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Zr(e){return e=e.toLowerCase(),Xr[e]??e}[...Yr];var Qr=[`touchstart`,`touchmove`];function $r(e){return Qr.includes(e)}var ei=Symbol(`events`),ti=new Set,ni=new Set;function ri(e,t,n,r={}){function i(e){if(r.capture||ui.call(t,e),!e.cancelBubble)return Lt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?M(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ii(e,t,n,r={}){var i=ri(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ai(e,t,n,r,i){var a={capture:r,passive:i},o=ri(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qn(()=>{t.removeEventListener(e,o,a)})}function oi(e,t,n){(t[ei]??={})[e]=n}function si(e){for(var t=0;t<e.length;t++)ti.add(e[t]);for(var n of ni)n(e)}var ci=null,li=!1;function ui(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ci=e,li||(li=!0,setTimeout(()=>{li=!1,ci=null}));var s=0,c=ci===e&&e[ei];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[ei]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),wr(null);try{for(var p,m=[];a!==null&&a!==t;){try{var h=a[ei]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,a=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[ei]=t,delete e.currentTarget,G(d),wr(f)}}}var di=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function fi(e){return di?.createHTML(e)??e}function pi(e){var t=Gn(`template`);return t.innerHTML=fi(e.replaceAll(`<!>`,`<!---->`)),t.content}function Q(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function mi(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(D)return Q(k,null),k;i===void 0&&(i=pi(a?e:`<!>`+e),n||(i=R(i)));var t=r||Fn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=R(t),s=t.lastChild;Q(o,s)}else Q(t,t);return t}}function hi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(D)return Q(k,null),k;if(!o){var e=R(pi(a));if(i)for(o=document.createDocumentFragment();R(e);)o.appendChild(R(e));else o=R(e)}var t=o.cloneNode(!0);if(i){var n=R(t),r=t.lastChild;Q(n,r)}else Q(t,t);return t}}function gi(e,t){return hi(e,t,`svg`)}function _i(e=``){if(!D){var t=L(e+``);return Q(t,t),t}var n=k;return n.nodeType===3?Kn(n):(n.before(n=L()),A(n)),Q(n,n),n}function vi(){if(D)return Q(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(``),n=L();return e.append(t,n),Q(t,n),e}function yi(e,t){if(D){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=k),je();return}e!==null&&e.before(t)}function bi(){if(D&&k&&k.nodeType===8&&k.textContent?.startsWith(`$`)){let e=k.textContent.substring(1);return je(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function xi(e){let t=0,n=Cn(0),r;return()=>{Zn()&&(X(n),or(()=>(t===0&&(r=Z(()=>e(()=>On(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,On(n))})})))}}var Si=ie|oe;function Ci(e,t,n,r){new wi(e,t,n,r)}var wi=class{parent;is_pending=!1;transform_error;#e;#t=D?k:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=xi(()=>(this.#m=Cn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=cr(()=>{if(D){let e=this.#t;je();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Si),D&&(this.#e=k)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);M(r),t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){Ae();return}t=!0,n&&rt(),this.#s!==null&&hr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Jn(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),M(()=>{var e=this.#c=document.createDocumentFragment(),t=L(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return V(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){Jn(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(P);return}this.#u===0&&(this.#e.before(e),this.#c=null,hr(this.#o,()=>{this.#o=null}),this.#x(P))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();yr(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#x(P)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){kt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=K,n=U,r=j;wr(this.#i),G(this.#i),pt(this.#i.ctx);try{return ln.ensure(),e()}finally{wr(t),G(n),pt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&hr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&En(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),X(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),D&&(A(this.#t),Ne(),A(Pe()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return V(()=>{var r=K;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Jn(e,this.#i.parent),null}}))};M(()=>{var t;try{t=this.transform_error(e)}catch(e){Jn(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Jn(e,this.#i&&this.#i.parent)):n(t)})}},Ti=!0;function Ei(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[be]??=e.nodeValue)&&(e[be]=n,e.nodeValue=`${n}`)}function Di(e,t){return Ai(e,t)}function Oi(e,t){Rn(),t.intro=t.intro??!1;let n=t.target,r=D,i=k;try{for(var a=R(n);a&&(a.nodeType!==8||a.data!==`[`);)a=z(a);if(!a)throw we;O(!0),A(a);let r=Ai(e,{...t,anchor:a});return O(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==we&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ze(),Rn(),Un(n),O(!1),Di(e,t)}finally{O(r),A(i)}}var ki=new Map;function Ai(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:c}){Rn();var l=void 0,u=rr(()=>{var u=n??t.appendChild(L());Ci(u,{pending:()=>{}},t=>{yt({});var n=j;if(o&&(n.c=o),i&&(r.$$events=i),D&&Q(t,null),Ti=s,l=e(t,r)||xt(),Ti=!0,D&&(K.nodes.end=k,k===null||k.nodeType!==8||k.data!==`]`))throw Oe(),we;bt()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=$r(r);for(let e of[t,document]){var a=ki.get(e);a===void 0&&(a=new Map,ki.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ui,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(a(ti)),ni.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=ki.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ui),r.delete(e),r.size===0&&ki.delete(n)):r.set(e,i)}ni.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return ji.set(l,u),l}var ji=new WeakMap;function Mi(e,t){let n=ji.get(e);return n?(ji.delete(e),n(t)):Promise.resolve()}var Ni=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)_r(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(_r(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();yr(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),hr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=Wn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else D&&(this.anchor=k),this.#a(n)}},Pi=0,Fi=1,Ii=2;function Li(e,t,n,r,i){D&&je();var a=St(),o=E,s=a?Cn(o):Tn(o,!1,!1),c=a?Cn(o):Tn(o,!1,!1),l=new Ni(e);cr(()=>{var a=P,o=t(),u=!1;let d=D&&h(o)===(e.data===`[!`);if(d&&(A(Pe()),O(!1)),h(o)){var f=Bt(),p=!1;let e=e=>{if(!u){p=!0,f(!1),P===a&&a.deactivate(),ln.ensure();try{e()}finally{Vt(!1),nn||un()}}};o.then(t=>{e(()=>{En(s,t),l.ensure(Fi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(En(c,t),l.ensure(Ii,i&&(e=>i(e,c))),!i)throw c.v})}),D?l.ensure(Pi,n):M(()=>{p||e(()=>{l.ensure(Pi,n)})})}else En(s,o),l.ensure(Fi,r&&(e=>r(e,s)));return d&&O(!0),()=>{u=!0}})}function Ri(e,t,n=!1){var r;D&&(r=k,je());var i=new Ni(e),a=n?ie:0;function o(e,t){if(D){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();A(a),i.anchor=a,O(!1),i.ensure(e,t),O(!0);return}}i.ensure(e,t)}cr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var zi=Symbol(`NaN`);function Bi(e,t,n){D&&je();var r=new Ni(e),i=!St();cr(()=>{var e=t();e!==e&&(e=zi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Vi(e,t){return t}function Hi(e,t,n){for(var r=[],i=t.length,o,s=t.length,c=0;c<i;c++){let n=t[c];hr(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Ui(e,a(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;Un(d),d.append(u),e.items.clear()}Ui(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ui(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ce,yr(a,document.createDocumentFragment())):H(t[i],n)}}var Wi;function Gi(e,t,r,i,o,s=null){var c=e,l=new Map;if(t&4){var u=e;c=D?A(R(u)):u.appendChild(L())}D&&je();var d=null,f=qt(()=>{var e=r();return n(e)?e:e==null?[]:a(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,qi(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=ce,Yi(d,null,c)):_r(d):hr(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:cr(()=>{p=X(f);var e=p.length;let n=!1;D&&Fe(c)===`[!`!=(e===0)&&(c=Pe(),A(c),O(!1),n=!0);for(var a=new Set,u=P,v=Wn(),y=0;y<e;y+=1){D&&k.nodeType===8&&k.data===`]`&&(c=k,n=!0,O(!1));var b=p[y],x=i(b,y),S=h?null:l.get(x);S?(S.v&&En(S.v,b),S.i&&En(S.i,y),v&&u.unskip_effect(S.e)):(S=Ji(l,h?c:Wi??=L(),b,x,y,o,t,r),h||(S.e.f|=ce),l.set(x,S)),a.add(x)}if(e===0&&s&&!d&&(h?d=V(()=>s(c)):(d=V(()=>s(Wi??=L())),d.f|=ce)),e>a.size&&Ue(``,``,``),D&&e>0&&A(Pe()),!h){if(m.set(u,a),v){for(let[e,t]of l)a.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u)}n&&O(!0),X(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,D&&(c=k)}function Ki(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function qi(e,t,n,r,i){var o=!!(r&8),s=t.length,c=e.items,l=Ki(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(_r(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=ce,_===l)Yi(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Xi(e,d,_),Xi(e,_,y),Yi(_,y,n),d=_,p=[],m=[],l=Ki(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Yi(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Xi(e,S.prev,C.next),Xi(e,d,S),Xi(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),Yi(_,l,n),Xi(e,_.prev,_.next),Xi(e,_,d===null?e.effect.first:d.next),Xi(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Ki(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Ki(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ui(e,a(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Ki(l.next);var ee=w.length;if(ee>0){var te=r&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}Hi(e,w,te)}}o&&M(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ji(e,t,n,r,i,a,o,s){var c=o&1?o&16?Cn(n):Tn(n,!1,!1):null,l=o&2?Cn(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Yi(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function Xi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Zi(e,t,...n){var r=new Ni(e);cr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ie)}function Qi(e){return(t,...n)=>{var r=e(...n),i;D?(i=k,je()):(i=R(pi(r.render().trim())),t.before(i));let a=r.setup?.(i);Q(i,i),typeof a==`function`&&Qn(a)}}function $i(e,t,n){var r;D&&(r=k,je());var i=new Ni(e);cr(()=>{var e=t()??null;if(D&&Fe(r)===`[`!=(e!==null)){var a=Pe();A(a),i.anchor=a,O(!1),i.ensure(e,e&&(t=>n(t,e))),O(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ie)}var ea=()=>performance.now(),$={tick:e=>requestAnimationFrame(e),now:()=>ea(),tasks:new Set};function ta(){let e=$.now();$.tasks.forEach(t=>{t.c(e)||($.tasks.delete(t),t.f())}),$.tasks.size!==0&&$.tick(ta)}function na(e){let t;return $.tasks.size===0&&$.tick(ta),{promise:new Promise(n=>{$.tasks.add(t={c:e,f:n})}),abort(){$.tasks.delete(t)}}}function ra(e,t){Lt(()=>{e.dispatchEvent(new CustomEvent(t))})}function ia(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function aa(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=ia(n.trim());t[i]=r.trim()}return t}var oa=e=>e;function sa(e,t,n,r){var i=!!(e&1),a=!!(e&2),o=i&&a,s=!!(e&4),c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return Lt(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=ca(t,m(),p,1,()=>{ra(t,`introstart`)},()=>{ra(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=ca(t,m(),f,0,()=>{ra(t,`outrostart`)},()=>{ra(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=K;if((g.nodes.t??=[]).push(h),i&&Ti){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||!!(v.f&32768)}_&&ir(()=>{Z(()=>h.in())})}}function ca(e,t,n,r,i,a){var o=r===1,s=!1;if(p(t)){var c;return M(()=>{s||(c=ca(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{s=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:m,deactivate:m,reset:m,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=oa}=t;var h,g=()=>1-r;return M(()=>{if(!s){var c=[];if(o&&n===void 0&&(d&&d(0,1),u)){var p=aa(u(0,1));c.push(p,p)}h=e.animate(c,{duration:l,fill:`forwards`}),h.onfinish=()=>{h.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=aa(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),g=()=>{var e=h.currentTime;return o+s*f(e/c)},d&&na(()=>{if(h.playState!==`running`)return!1;var e=g();return d(e,1-e),!0})}h=e.animate(l,{duration:c,fill:`forwards`}),h.onfinish=()=>{g=()=>r,d?.(r,1-r),a()}}}}),{abort:()=>{s=!0,h&&(h.cancel(),h.effect=null,h.onfinish=m)},deactivate:()=>{a=m},reset:()=>{r===0&&d?.(1,0)},t:()=>g()}}function la(e,t){let n=null,r=D;var i;if(D){n=k;for(var a=R(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=z(a);if(a===null)O(!1);else{var o=z(a);a.remove(),A(o)}}D||(i=document.head.appendChild(L()));try{cr(()=>{var e=V(()=>t(i));e.f|=ae,D||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(O(!0),A(n))}}function ua(e,t,n){ir(()=>{var r=Z(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};or(()=>{var e=n();Wr(e),i&&Le(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function da(e,t){var n=void 0,r;lr(()=>{n!==(n=t())&&(r&&=(H(r),null),n&&(r=V(()=>{ir(()=>n(e))})))})}function fa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function pa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=` `),r+=t);return r}function ma(e){return typeof e==`object`?pa(e):e??``}var ha=[...`
|
|
3
|
+
\r\f\xA0\v`];function ga(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ha.includes(r[o-1]))&&(s===r.length||ha.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function _a(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function va(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ya(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(va)),i&&c.push(...Object.keys(i).map(va));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=va(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=_a(r)),i&&(n+=_a(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ba(e,t,n,r,i,a){var o=e[ve];if(D||o!==n||o===void 0){var s=ga(n,r,a);(!D||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[ve]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function xa(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Sa(e,t,n,r){var i=e[ye];if(D||i!==t){var a=ya(t,r);(!D||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ye]=t}else r&&(Array.isArray(r)?(xa(e,n?.[0],r[0]),xa(e,n?.[1],r[1],`important`)):xa(e,n,r));return r}function Ca(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function wa(e,t){var n=!(`__defaultValue`in e);!n&&e.__defaultValue===t||(e.__defaultValue=t,Ta(e,!n||`__value`in e))}function Ta(e,t){var r=e.__defaultValue,i=e.multiple,a=i?r??[]:null;if(!(i&&!n(a))){var o=e.selectedIndex,s=t&&i?new Set(e.selectedOptions):null;for(var c of e.options){var l=ka(c);Ca(c,i?a.includes(l):Mn(l,r))}if(t){if(s!==null)for(c of e.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else e.selectedIndex!==o&&(e.selectedIndex=o)}}}function Ea(e,t,r=!1){if(e.multiple){if(t==null)return;if(!n(t))return ke();for(var i of e.options)i.selected=t.includes(ka(i));return}for(i of e.options)if(Mn(ka(i),t)){i.selected=!0;return}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Da(e){var t=new MutationObserver(t=>{t.every(Aa)||(`__defaultValue`in e&&Ta(e,!1),`__value`in e&&Ea(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Qn(()=>{t.disconnect()})}function Oa(e,t,n=t){var r=new WeakSet,i=!0;Rt(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),ka);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&ka(o)}n(a),e.__value=a,P!==null&&r.add(P)}),ir(()=>{var a=t();if(e===document.activeElement){var o=P;if(r.has(o))return}if(Ea(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=ka(s),n(a))}e.__value=a,i=!1})}function ka(e){return`__value`in e?e.__value:e.value}function Aa(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var ja=Symbol(`class`),Ma=Symbol(`style`),Na=Symbol(`is custom element`),Pa=Symbol(`is html`),Fa=Ce?`link`:`LINK`,Ia=Ce?`input`:`INPUT`,La=Ce?`option`:`OPTION`,Ra=Ce?`select`:`SELECT`;function za(e){if(D){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Ba(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Ba(e,`checked`,null),e.checked=r}}};e[xe]=n,M(n),It()}}function Ba(e,t,n,r){var i=Ua(e);D&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Fa)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ga(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Va(e,t,n,r,i=!1,a=!1){D&&i&&e.nodeName===Ia&&(`defaultValue`in n||`defaultChecked`in n||za(e));var o=Ua(e),s=o[Na],c=!o[Pa];let l=D&&s;l&&O(!1);var u=t||{},d=e.nodeName===La,f=e.nodeName===Ra;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=ma(n.class):(r||n[ja])&&(n.class=null),n[Ma]&&(n.style??=null);var m=Ga(e);if(e.nodeName===Ia&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,Ba(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){ba(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[ja],n[ja]),u[i]=l,u[ja]=n[ja];continue}if(i===`style`){Sa(e,l,t?.[Ma],n[Ma]),u[i]=l,u[Ma]=n[Ma];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Jr(r);if(Kr(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)oi(r,e,l),si([r]);else if(l!=null){function a(e){u[i].call(this,e)}u[n]=ri(r,e,a,t)}}else if(i===`style`)Ba(e,i,l);else if(i===`autofocus`)Pt(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)Ca(e,l);else{var y=i;c||(y=Zr(y));var b=y===`defaultValue`||y===`defaultChecked`;if(f&&y===`defaultValue`)continue;if(l==null&&!s&&!b){if(o[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||(s||typeof l!=`string`)&&m.has(y)?(e[y]=l,y in o&&(o[y]=E)):typeof l!=`function`&&Ba(e,y,l,a)}}}}return l&&O(!0),u}function Ha(e,t,n=[],r=[],i=[],a,o=!1,s=!1){zt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ra,l=!1;if(lr(()=>{var u=t(...n.map(X)),d=Va(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&wa(f,u.defaultValue),`value`in u&&Ea(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||H(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&H(i[t]),i[t]=V(()=>da(e,()=>p))),d[t]=p}r=d}),c){var u=e;ir(()=>{var e=r;`defaultValue`in e&&wa(u,e.defaultValue),Ea(u,e.value,!0),Da(u)})}l=!0})}function Ua(e){return e[_e]??={[Na]:e.nodeName.includes(`-`),[Pa]:e.namespaceURI===Te}}var Wa=new Map;function Ga(e){var t=e.getAttribute(`is`)||e.nodeName,n=Wa.get(t);if(n)return n;Wa.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=d(i)}return n}function Ka(e,t,n=t){var r=new WeakSet;Rt(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=qa(e)?Ja(a):a,n(a),P!==null&&r.add(P),await Br(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(D&&e.defaultValue!==e.value||Z(t)==null&&e.value)&&(n(qa(e)?Ja(e.value):e.value),P!==null&&r.add(P)),or(()=>{var n=t();if(e===document.activeElement){var i=P;if(r.has(i))return}qa(e)&&n===Ja(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function qa(e){var t=e.type;return t===`number`||t===`range`}function Ja(e){return e===``?null:+e}var Ya=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function Xa(e,t,n){var r=Ya.observe(e,()=>n(e[t]));ir(()=>(Z(()=>n(e[t])),r))}function Za(e,t){return e===t||e?.[T]===t}function Qa(e=xt(),t,n,r){var i=j.r,a=K;return ir(()=>{var o,s;return or(()=>{o=s,s=r?.()||[],Z(()=>{Za(n(...s),e)||(t(e,...s),o&&Za(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Za(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var $a={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function eo(e,t,n){return new Proxy({props:e,exclude:t},$a)}var to={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];p(i)&&(i=i());let a=s(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=s(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===T||t===me)return!1;for(let n of e.props)if(p(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(p(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function no(...e){return new Proxy({props:e},to)}function ro(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),c=r,l=!0,u=void 0,d=()=>o&&i?(u??=Ut(r),X(u)):(l&&(l=!1,c=o?Z(r):r),c);let f;if(a){var p=T in e||me in e;f=s(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=Nt(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&$e(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Ut:qt)(()=>(v=!1,g()));a&&X(y);var b=K;return(function(e,t){if(arguments.length>0){let n=t?X(y):i&&a?An(e):e;return I(y,n),v=!0,c!==void 0&&(c=n),e}return Sr&&v||b.f&16384?y.v:X(y)})}function io(e){return class extends ao{constructor(t){super({component:e,...t})}}}var ao=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Tn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return X(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me||(X(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Oi:Di)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&un(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&o(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Mi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function oo(e,t){if(ze(`hydratable`),D){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);De(e)}return t()}var so=t({afterUpdate:()=>ho,beforeUpdate:()=>mo,createContext:()=>mt,createEventDispatcher:()=>po,createRawSnippet:()=>Qi,flushSync:()=>un,fork:()=>vn,getAbortSignal:()=>co,getAllContexts:()=>vt,getContext:()=>ht,hasContext:()=>_t,hydratable:()=>oo,hydrate:()=>Oi,mount:()=>Di,onDestroy:()=>uo,onMount:()=>lo,setContext:()=>gt,settled:()=>Vr,tick:()=>Br,unmount:()=>Mi,untrack:()=>Z});function co(){return U===null&&Xe(),(U.ac??=new AbortController).signal}function lo(e){j===null&&Be(`onMount`),$n(()=>{let t=Z(e);if(typeof t==`function`)return t})}function uo(e){j===null&&Be(`onDestroy`),lo(()=>()=>Z(e))}function fo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function po(){let e=j;return e===null&&Be(`createEventDispatcher`),(t,r,i)=>{let a=e.s.$$events?.[t];if(a){let o=n(a)?a.slice():[a],s=fo(t,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function mo(e){j===null&&Be(`beforeUpdate`),j.l===null&&Qe(`beforeUpdate`),go(j).b.push(e)}function ho(e){j===null&&Be(`afterUpdate`),j.l===null&&Qe(`afterUpdate`),go(j).a.push(e)}function go(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{sr as $,Bi as A,_i as B,sa as C,Me as Ct,Zi as D,m as Dt,$i as E,v as Et,yi as F,X as G,oi as H,vi as I,Z as J,Vr as K,mi as L,Li as M,Ei as N,Gi as O,y as Ot,xi as P,or as Q,gi as R,la as S,Ne as St,$ as T,b as Tt,ai as U,si as V,ii as W,ir as X,Ar as Y,nr as Z,Sa as _,yt as _t,eo as a,Vn as at,pa as b,st as bt,Xa as c,On as ct,Ma as d,wn as dt,$n as et,Ha as f,Kt as ft,Da as g,bt as gt,Oa as h,_t as ht,ro as i,Bn as it,Ri as j,Vi as k,t as kt,Ka as l,I as lt,Ba as m,ht as mt,lo as n,Pn as nt,no as o,Hn as ot,za as p,jt as pt,Br as q,io as r,zn as rt,Qa as s,An as st,so as t,tr as tt,ja as u,Cn as ut,ba as v,gt as vt,na as w,_ as wt,ua as x,at as xt,ma as y,lt as yt,bi as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e}from"./Doz7YX1W.js";import{c as t}from"./DKMlMI4a.js";var n=class extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(o(this,e))}},r=class extends Set{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let t of e)this.add(t)}has(e){return super.has(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(o(this,e))}};function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function a({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function o({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function s(e){return typeof e==`object`&&e?e.valueOf():e}var c=Symbol(`implicit`);function l(){var t=new n,r=[],i=[],a=c;function o(e){let n=t.get(e);if(n===void 0){if(a!==c)return a;t.set(e,n=r.push(e)-1)}return i[n%i.length]}return o.domain=function(e){if(!arguments.length)return r.slice();r=[],t=new n;for(let n of e)t.has(n)||t.set(n,r.push(n)-1);return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(a=e,o):a},o.copy=function(){return l(r,i).unknown(a)},e.apply(o,arguments),o}function u(){var n=l().unknown(void 0),r=n.domain,i=n.range,a=0,o=1,s,c,d=!1,f=0,p=0,m=.5;delete n.unknown;function h(){var e=r().length,n=o<a,l=n?o:a,u=n?a:o;s=(u-l)/Math.max(1,e-f+p*2),d&&(s=Math.floor(s)),l+=(u-l-s*(e-f))*m,c=s*(1-f),d&&(l=Math.round(l),c=Math.round(c));var h=t(e).map(function(e){return l+s*e});return i(n?h.reverse():h)}return n.domain=function(e){return arguments.length?(r(e),h()):r()},n.range=function(e){return arguments.length?([a,o]=e,a=+a,o=+o,h()):[a,o]},n.rangeRound=function(e){return[a,o]=e,a=+a,o=+o,d=!0,h()},n.bandwidth=function(){return c},n.step=function(){return s},n.round=function(e){return arguments.length?(d=!!e,h()):d},n.padding=function(e){return arguments.length?(f=Math.min(1,p=+e),h()):f},n.paddingInner=function(e){return arguments.length?(f=Math.min(1,e),h()):f},n.paddingOuter=function(e){return arguments.length?(p=+e,h()):p},n.align=function(e){return arguments.length?(m=Math.max(0,Math.min(1,e)),h()):m},n.copy=function(){return u(r(),[a,o]).round(d).paddingInner(f).paddingOuter(p).align(m)},e.apply(h(),arguments)}export{r as i,l as n,n as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./D2BnX0Uk.js";import{H as t}from"./Bd1gDe3Y.js";function n(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}var r=[`primary`,`secondary`,`accent`,`neutral`],i=[`info`,`success`,`warning`,`danger`];[...r,...i],[...n(100,1e3,100)];var a=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},o=(e,t)=>({classGroupId:e,validator:t}),s=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),c=`-`,l=[],u=`arbitrary..`,d=e=>{let t=ee(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return p(e);let n=e.split(c);return f(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?a(i,t):t:i||l}return n[e]||l}}},f=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=f(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(c):e.slice(t).join(c),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},p=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?u+r:void 0})(),ee=e=>{let{theme:t,classGroups:n}=e;return m(n,t)},m=(e,t)=>{let n=s();for(let r in e){let i=e[r];h(i,n,r,t)}return n},h=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];g(i,t,n,r)}},g=(e,t,n,r)=>{if(typeof e==`string`){te(e,t,n);return}if(typeof e==`function`){_(e,t,n,r);return}v(e,t,n,r)},te=(e,t,n)=>{let r=e===``?t:y(t,e);r.classGroupId=n},_=(e,t,n,r)=>{if(b(e)){h(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(o(n,e))},v=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];h(o,y(t,a),n,r)}},y=(e,t)=>{let n=e,r=t.split(c),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=s(),n.nextPart.set(t,i)),n=i}return n},b=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,x=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},S=`!`,C=`:`,ne=[],w=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),T=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===C){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(S)?(c=s.slice(0,-1),l=!0):s.startsWith(S)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return w(t,l,c,u)};if(t){let e=t+C,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):w(ne,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},re=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},E=e=>({cache:x(e.cacheSize),parseClassName:T(e),sortModifiers:re(e),postfixLookupClassGroupIds:D(e),...d(e)}),D=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},O=/\s+/,k=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(O),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:ee}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let m=!!ee,h;if(m){h=r(p.substring(0,ee));let e=h&&o[h]?r(p):void 0;e&&e!==h&&(h=e,m=!1)}else h=r(p);if(!h){if(!m){l=t+(l.length>0?` `+l:l);continue}if(h=r(p),!h){l=t+(l.length>0?` `+l:l);continue}m=!1}let g=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),te=f?g+S:g,_=te+h;if(s.indexOf(_)>-1)continue;s.push(_);let v=i(h,m);for(let e=0;e<v.length;++e){let t=v[e];s.push(te+t)}l=t+(l.length>0?` `+l:l)}return l},ie=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=A(n))&&(i&&(i+=` `),i+=r);return i},A=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=A(e[r]))&&(n&&(n+=` `),n+=t);return n},j=(e,...t)=>{let n,r,i,a,o=o=>(n=E(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=k(e,n);return i(e,a),a};return a=o,(...e)=>a(ie(...e))},ae=[],M=e=>{let t=t=>t[e]||ae;return t.isThemeGetter=!0,t},N=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P=/^\((?:(\w[\w-]*):)?(.+)\)$/i,F=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,I=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,R=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>F.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>I.test(e),ce=()=>!0,le=e=>L.test(e)&&!R.test(e),W=()=>!1,G=e=>oe.test(e),K=e=>z.test(e),ue=e=>!q(e)&&!Y(e),de=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),fe=e=>Z(e,De,W),q=e=>N.test(e),J=e=>Z(e,Oe,le),pe=e=>Z(e,ke,V),me=e=>Z(e,je,ce),he=e=>Z(e,Ae,W),ge=e=>Z(e,Te,W),_e=e=>Z(e,Ee,K),ve=e=>Z(e,Me,G),Y=e=>P.test(e),X=e=>Q(e,Oe),ye=e=>Q(e,Ae),be=e=>Q(e,Te),xe=e=>Q(e,De),Se=e=>Q(e,Ee),Ce=e=>Q(e,Me,!0),we=e=>Q(e,je,!0),Z=(e,t,n)=>{let r=N.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Q=(e,t,n=!1)=>{let r=P.exec(e);return r?r[1]?t(r[1]):n:!1},Te=e=>e===`position`||e===`percentage`,Ee=e=>e===`image`||e===`url`,De=e=>e===`length`||e===`size`||e===`bg-size`,Oe=e=>e===`length`,ke=e=>e===`number`,Ae=e=>e===`family-name`,je=e=>e===`number`||e===`weight`,Me=e=>e===`shadow`,Ne=()=>{let e=M(`color`),t=M(`font`),n=M(`text`),r=M(`font-weight`),i=M(`tracking`),a=M(`leading`),o=M(`breakpoint`),s=M(`container`),c=M(`spacing`),l=M(`radius`),u=M(`shadow`),d=M(`inset-shadow`),f=M(`text-shadow`),p=M(`drop-shadow`),ee=M(`blur`),m=M(`perspective`),h=M(`aspect`),g=M(`ease`),te=M(`animate`),_=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],v=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],y=()=>[...v(),Y,q],b=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],x=()=>[`auto`,`contain`,`none`],S=()=>[Y,q,c],C=()=>[B,`full`,`auto`,...S()],ne=()=>[H,`none`,`subgrid`,Y,q],w=()=>[`auto`,{span:[`full`,H,Y,q]},H,Y,q],T=()=>[H,`auto`,Y,q],re=()=>[`auto`,`min`,`max`,`fr`,Y,q],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...S()],k=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],ie=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],A=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],j=()=>[e,Y,q],ae=()=>[...v(),be,ge,{position:[Y,q]}],N=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],P=()=>[`auto`,`cover`,`contain`,xe,fe,{size:[Y,q]}],F=()=>[se,X,J],I=()=>[``,`none`,`full`,l,Y,q],L=()=>[``,V,X,J],R=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],z=()=>[V,se,be,ge],le=()=>[``,`none`,ee,Y,q],W=()=>[`none`,V,Y,q],G=()=>[`none`,V,Y,q],K=()=>[V,Y,q],Z=()=>[B,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[ce],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[ue],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,q,Y,h]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Y,q]}],"container-named":[de],columns:[{columns:[V,q,Y,s]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:y()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,Y,q]}],basis:[{basis:[B,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,V,Y,q]}],shrink:[{shrink:[``,V,Y,q]}],order:[{order:[H,`first`,`last`,`none`,Y,q]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...A()]}],"min-block-size":[{"min-block":[`auto`,...A()]}],"max-block-size":[{"max-block":[`none`,...A()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,X,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,we,me]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,se,q]}],"font-family":[{font:[ye,he,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Y,q]}],"line-clamp":[{"line-clamp":[V,`none`,Y,pe]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":[`none`,Y,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...R(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,Y,J]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[V,`auto`,Y,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[H,Y,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Y,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:P()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,Y,q],radial:[``,Y,q],conic:[H,Y,q]},Se,_e]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...R(),`hidden`,`none`]}],"divide-style":[{divide:[...R(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...R(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,Y,q]}],"outline-w":[{outline:[``,V,X,J]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ce,ve]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ce,ve]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[V,J]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ce,ve]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[V,Y,q]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Y,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,q]}],filter:[{filter:[``,`none`,Y,q]}],blur:[{blur:le()}],brightness:[{brightness:[V,Y,q]}],contrast:[{contrast:[V,Y,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ce,ve]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,V,Y,q]}],"hue-rotate":[{"hue-rotate":[V,Y,q]}],invert:[{invert:[``,V,Y,q]}],saturate:[{saturate:[V,Y,q]}],sepia:[{sepia:[``,V,Y,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[V,Y,q]}],"backdrop-contrast":[{"backdrop-contrast":[V,Y,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,Y,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,Y,q]}],"backdrop-invert":[{"backdrop-invert":[``,V,Y,q]}],"backdrop-opacity":[{"backdrop-opacity":[V,Y,q]}],"backdrop-saturate":[{"backdrop-saturate":[V,Y,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,Y,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,Y,q]}],ease:[{ease:[`linear`,`initial`,g,Y,q]}],delay:[{delay:[V,Y,q]}],animate:[{animate:[`none`,te,Y,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,Y,q]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":[`scale-3d`],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[Y,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,Y,q]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Y,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Y,q]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[V,X,J,pe]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Pe=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>($(e,`cacheSize`,t),$(e,`prefix`,n),$(e,`experimentalParseClassName`,r),Fe(e.theme,a.theme),Fe(e.classGroups,a.classGroups),Fe(e.conflictingClassGroups,a.conflictingClassGroups),Fe(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),$(e,`postfixLookupClassGroups`,a.postfixLookupClassGroups),$(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),Ie(e.theme,i.theme),Ie(e.classGroups,i.classGroups),Ie(e.conflictingClassGroups,i.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,i,`postfixLookupClassGroups`),Le(e,i,`orderSensitiveModifiers`),e),$=(e,t,n)=>{n!==void 0&&(e[t]=n)},Fe=(e,t)=>{if(t)for(let n in t)$(e,n,t[n])},Ie=(e,t)=>{if(t)for(let n in t)Le(e,t,n)},Le=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Re=((e,...t)=>typeof e==`function`?j(Ne,e,...t):j(()=>Pe(Ne(),e),...t))({extend:{classGroups:{shadow:[`shadow-border-l`,`shadow-border-r`,`shadow-border-t`,`shadow-border-b`,`elevation-none`,...n(1,25).map(e=>`elevation-${e}`)]}}}),ze=(...t)=>Re(e(...t));function Be(e){return Array.isArray(e)?t=>e.map(e=>Be(e)(t)):typeof e==`function`?e:typeof e==`string`||typeof e==`number`?n=>t(n,e):e=>e}function Ve(e){return e==null?[]:Array.isArray(e)?e:`nodes`in e?e.nodes:`descendants`in e?e.descendants():[]}function He(e={}){let{axis:t=!0,legend:n=!1,top:r,left:i,bottom:a,right:o}=e;if(t!==!1)return{top:r??(t===!0||t===`y`?4:0),left:i??(t===!0||t===`y`?20:0),bottom:(a??(t===!0||t===`x`?20:0))+(n?32:0),right:o??(t===!0||t===`x`?4:0)}}function Ue(e,t,n){return e.includes(t)?t:e.find(e=>n(e)?.valueOf()===n(t)?.valueOf())}function We(e){if(typeof e==`object`)return e;if(e!==void 0)return null}function Ge(e,...t){return typeof e==`function`?e(...t):e}export{We as a,n as c,Ue as i,Ve as n,Ge as o,He as r,ze as s,Be as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,F as n,G as r,I as i,O as a,_t as o,a as s,ft as c,gt as l,i as u,it as d,j as f,k as p,lt as m,o as h}from"./D2BnX0Uk.js";import"./xihTtKlq.js";import{t as g}from"./Bd1gDe3Y.js";import{t as _}from"./DKMlMI4a.js";import{i as v}from"./V9ZjaxiY.js";import{t as y}from"./xIq_fFFM.js";import{t as b}from"./BR2LaRms.js";import{n as x,r as S,t as C}from"./D0Ty6LN0.js";var w=class{#e=()=>({});ctx=g();constructor(e){this.#e=e,this.ctx.registerComponent({name:`Points`,kind:`mark`,markInfo:()=>{let t=e();return{data:t.data,x:t.x,y:t.y,seriesKey:t.seriesKey,color:t.fill??t.stroke}}})}#t=c(()=>this.ctx.series.series.find(e=>e.key===this.#e().seriesKey));get series(){return r(this.#t)}set series(e){m(this.#t,e)}#n=c(()=>this.series?.value??(this.series?.data?void 0:this.series?.key));get seriesAccessor(){return r(this.#n)}set seriesAccessor(e){m(this.#n,e)}#r=c(()=>{let e=this.#e().seriesKey;return e&&this.ctx.series.isStacked?this.ctx.series.getStackAccessors(e):null});get stackAccessors(){return r(this.#r)}set stackAccessors(e){m(this.#r,e)}#i=c(()=>_(this.#e().x??(this.ctx.valueAxis===`x`?this.seriesAccessor:void 0)??this.ctx.x));get xAccessor(){return r(this.#i)}set xAccessor(e){m(this.#i,e)}#a=c(()=>{let e=this.#e();return e.y?_(e.y):this.stackAccessors?this.stackAccessors.y1:Array.isArray(this.seriesAccessor)&&this.ctx.valueAxis===`y`?_(this.seriesAccessor[1]):_((this.ctx.valueAxis===`y`?this.seriesAccessor:void 0)??this.ctx.y)});get yAccessor(){return r(this.#a)}set yAccessor(e){m(this.#a,e)}#o=c(()=>this.#e().data??this.series?.data??this.ctx.data);get pointsData(){return r(this.#o)}set pointsData(e){m(this.#o,e)}#s(e,t,n,r){let i=this.#e().seriesKey;return typeof t==`function`?t(e,this.ctx):t??(r&&i?r(i)+(r.bandwidth?.()??0)/2:v(n)&&!this.ctx.radial?n.bandwidth()/2:0)}#c(e,t,n,r){let i=this.#e(),a=this.ctx.xScale(e),o=this.ctx.yScale(t),s=a+this.#s(a,i.offsetX,this.ctx.xScale,this.ctx.x1Scale??void 0),c=o+this.#s(o,i.offsetY,this.ctx.yScale,this.ctx.y1Scale??void 0),l=b(s,c);return{x:this.ctx.radial?l[0]:s,y:this.ctx.radial?l[1]:c,r:this.ctx.config.r?this.ctx.rGet(n):i.r??5,xValue:e,yValue:t,data:n,edgeIndex:r}}#l=c(()=>this.pointsData.flatMap(e=>{let t=this.xAccessor(e),n=this.yAccessor(e);return Array.isArray(t)?t.filter(Boolean).map((t,r)=>this.#c(t,n,e,r)):Array.isArray(n)?n.filter(Boolean).map((n,r)=>this.#c(t,n,e,r)):t!=null&&n!=null?this.#c(t,n,e):[]}));get points(){return r(this.#l)}set points(e){m(this.#l,e)}},T=new Set([`$$slots`,`$$events`,`$$legacy`,`Circle`,`data`,`x`,`y`,`seriesKey`,`r`,`offsetX`,`offsetY`,`fill`,`fillOpacity`,`stroke`,`strokeWidth`,`opacity`,`children`]);function E(m,g){o(g,!0);let _=u(g,`r`,3,5),v=s(g,T),b=new w(()=>({data:g.data,x:g.x,y:g.y,seriesKey:g.seriesKey,r:_(),offsetX:g.offsetX,offsetY:g.offsetY,fill:g.fill,fillOpacity:g.fillOpacity,stroke:g.stroke,strokeWidth:g.strokeWidth,opacity:g.opacity}));var x=i(),S=d(x),C=t=>{var r=i(),a=d(r);e(a,()=>g.children,()=>({points:b.points})),n(t,r)},E=e=>{var o=i(),s=d(o);a(s,17,()=>b.points,p,(e,a)=>{var o=i(),s=d(o);{let e=c(()=>g.fill??b.series?.color??(b.ctx.config.c?b.ctx.cGet(r(a).data):null)),n=c(()=>g.opacity??(b.series?.key==null||b.ctx.series.visibleSeries.length<=1||b.ctx.series.isHighlighted(b.series.key,!0)?1:.1)),i=c(()=>y(v,`lc-point`));t(s,()=>g.Circle,(t,o)=>{o(t,h({get cx(){return r(a).x},get cy(){return r(a).y},get r(){return r(a).r},get fill(){return r(e)},get fillOpacity(){return g.fillOpacity},get stroke(){return g.stroke},get strokeWidth(){return g.strokeWidth},get opacity(){return r(n)}},()=>b.series?.props,()=>r(i)))})}n(e,o)}),n(e,o)};f(S,e=>{g.children?e(C):e(E,-1)}),n(m,x),l()}var D=new Set([`$$slots`,`$$events`,`$$legacy`]);function O(e,t){let n=s(t,D);E(e,h({get Circle(){return S}},()=>n))}var k=new Set([`$$slots`,`$$events`,`$$legacy`]);function A(e,t){let n=s(t,k);E(e,h({get Circle(){return x}},()=>n))}var j=new Set([`$$slots`,`$$events`,`$$legacy`]);function M(e,t){let n=s(t,j);E(e,h({get Circle(){return C}},()=>n))}export{A as n,O as r,M as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as e,I as t,_t as n,a as r,gt as i,it as a,j as o,o as s}from"./D2BnX0Uk.js";import"./xihTtKlq.js";import{x as c}from"./Dh958be7.js";import{n as l,r as u,t as d}from"./CjjyIQAO.js";var f=new Set([`$$slots`,`$$events`,`$$legacy`]);function p(p,m){n(m,!0);let h=c(),g=r(m,f);var _=t(),v=a(_),y=e=>{u(e,s(()=>g))},b=e=>{l(e,s(()=>g))},x=e=>{d(e,s(()=>g))};o(v,e=>{h===`svg`?e(y):h===`canvas`?e(b,1):h===`html`&&e(x,2)}),e(p,_),i()}export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,F as n,G as r,I as i,O as a,_t as o,a as s,ft as c,gt as l,i as u,it as d,j as f,k as p,o as m,z as h}from"./D2BnX0Uk.js";import"./xihTtKlq.js";import{t as g}from"./Bd1gDe3Y.js";import{a as _,n as v,r as y,t as b}from"./mtZWP0zR.js";import{C as x,S,_ as C,a as w,b as T,c as E,d as D,f as O,g as k,h as A,i as j,l as M,n as ee,o as N,p as P,r as te,s as ne,t as re,u as F,v as ie,w as ae,x as I,y as L}from"./Y5urAfNy.js";import{t as oe}from"./Db0q5_zr.js";import{s as se,t as ce}from"./DKMlMI4a.js";import{C as le,x as ue}from"./Dh958be7.js";import{i as de,n as fe,r as pe}from"./CuXAxjvF.js";import{n as me,o as he,t as ge}from"./DthYhn6Y.js";import{t as _e}from"./BR2LaRms.js";function*ve(e){for(let t of e)yield*t}function ye(e){return Array.from(ve(e))}function be(e){return[F(e[1],e[0]),E(e[2])]}function R(e){var t=e[0],n=e[1],r=D(n);return[r*D(t),r*I(t),I(n)]}function xe(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Se(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ce(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function we(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Te(e){var t=S(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,z,B,V,H={sphere:w,point:ze,lineStart:Ve,lineEnd:We,polygonStart:function(){H.lineStart=Ge,H.lineEnd=Ke},polygonEnd:function(){H.lineStart=Ve,H.lineEnd=We}};function ze(e,t){e*=L,t*=L;var n=D(t);Be(n*D(e),n*I(e),I(t))}function Be(e,t,n){++Ee,Oe+=(e-Oe)/Ee,ke+=(t-ke)/Ee,Ae+=(n-Ae)/Ee}function Ve(){H.point=He}function He(e,t){e*=L,t*=L;var n=D(t);z=n*D(e),B=n*I(e),V=I(t),H.point=Ue,Be(z,B,V)}function Ue(e,t){e*=L,t*=L;var n=D(t),r=n*D(e),i=n*I(e),a=I(t),o=F(S((o=B*a-V*i)*o+(o=V*r-z*a)*o+(o=z*i-B*r)*o),z*r+B*i+V*a);De+=o,je+=o*(z+(z=r)),Me+=o*(B+(B=i)),Ne+=o*(V+(V=a)),Be(z,B,V)}function We(){H.point=ze}function Ge(){H.point=qe}function Ke(){Je(Le,Re),H.point=ze}function qe(e,t){Le=e,Re=t,e*=L,t*=L,H.point=Je;var n=D(t);z=n*D(e),B=n*I(e),V=I(t),Be(z,B,V)}function Je(e,t){e*=L,t*=L;var n=D(t),r=n*D(e),i=n*I(e),a=I(t),o=B*a-V*i,s=V*r-z*a,c=z*i-B*r,l=k(o,s,c),u=E(l),d=l&&-u/l;Pe.add(d*o),Fe.add(d*s),Ie.add(d*c),De+=u,je+=u*(z+(z=r)),Me+=u*(B+(B=i)),Ne+=u*(V+(V=a)),Be(z,B,V)}function Ye(e){Ee=De=Oe=ke=Ae=je=Me=Ne=0,Pe=new ae,Fe=new ae,Ie=new ae,j(e,H);var t=+Pe,n=+Fe,r=+Ie,i=k(t,n,r);return i<1e-12&&(t=je,n=Me,r=Ne,De<1e-6&&(t=Oe,n=ke,r=Ae),i=k(t,n,r),i<1e-12)?[NaN,NaN]:[F(n,t)*O,E(r/i)*O]}function Xe(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function Ze(e,t){return N(e)>C&&(e-=Math.round(e/x)*x),[e,t]}Ze.invert=Ze;function Qe(e,t,n){return(e%=x)?t||n?Xe(et(e),tt(t,n)):et(e):t||n?tt(t,n):Ze}function $e(e){return function(t,n){return t+=e,N(t)>C&&(t-=Math.round(t/x)*x),[t,n]}}function et(e){var t=$e(e);return t.invert=$e(-e),t}function tt(e,t){var n=D(e),r=I(e),i=D(t),a=I(t);function o(e,t){var o=D(t),s=D(e)*o,c=I(e)*o,l=I(t),u=l*n+s*r;return[F(c*i-u*a,s*n-l*r),E(u*i+c*a)]}return o.invert=function(e,t){var o=D(t),s=D(e)*o,c=I(e)*o,l=I(t),u=l*i-c*a;return[F(c*i+l*a,s*n+u*r),E(u*n-s*r)]},o}function nt(e){e=Qe(e[0]*L,e[1]*L,e.length>2?e[2]*L:0);function t(t){return t=e(t[0]*L,t[1]*L),t[0]*=O,t[1]*=O,t}return t.invert=function(t){return t=e.invert(t[0]*L,t[1]*L),t[0]*=O,t[1]*=O,t},t}function rt(e,t,n,r,i,a){if(n){var o=D(t),s=I(t),c=r*n;i==null?(i=t+r*x,a=t-c/2):(i=it(o,i),a=it(o,a),(r>0?i<a:i>a)&&(i+=r*x));for(var l,u=i;r>0?u>a:u<a;u-=c)l=be([o,-s*D(u),-s*I(u)]),e.point(l[0],l[1])}}function it(e,t){t=R(t),t[0]-=e,Te(t);var n=ne(-t[1]);return((-t[2]<0?-n:n)+x-P)%x}function at(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:w,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ot(e,t){return N(e[0]-t[0])<1e-6&&N(e[1]-t[1])<1e-6}function st(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ct(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;if(ot(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*P}a.push(c=new st(n,e,null,!0)),o.push(c.o=new st(n,null,c,!1)),a.push(c=new st(r,e,null,!1)),o.push(c.o=new st(r,null,c,!0))}}),a.length){for(o.sort(t),lt(a),lt(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function lt(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function ut(e){return N(e[0])<=C?e[0]:T(e[0])*((N(e[0])+C)%x-C)}function dt(e,t){var n=ut(t),r=t[1],i=I(r),a=[I(n),-D(n),0],o=0,s=0,c=new ae;i===1?r=A+P:i===-1&&(r=-A-P);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=ut(p),h=p[1]/2+ie,g=I(h),_=D(h),v=0;v<f;++v,m=b,g=w,_=T,p=y){var y=d[v],b=ut(y),S=y[1]/2+ie,w=I(S),T=D(S),O=b-m,k=O>=0?1:-1,j=k*O,M=j>C,ee=g*w;if(c.add(F(ee*k*I(j),_*T+ee*D(j))),o+=M?O+k*x:O,M^m>=n^b>=n){var N=Se(R(p),R(y));Te(N);var te=Se(a,N);Te(te);var ne=(M^O>=0?-1:1)*E(te[2]);(r>ne||r===ne&&(N[0]||N[1]))&&(s+=M^O>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}function ft(e,t,n,r){return function(i){var a=t(i),o=at(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=ye(u);var e=dt(l,r);u.length?(c||=(i.polygonStart(),!0),ct(u,mt,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(pt))}}return f}}function pt(e){return e.length>1}function mt(e,t){return((e=e.x)[0]<0?e[1]-A-P:A-e[1])-((t=t.x)[0]<0?t[1]-A-P:A-t[1])}var ht=ft(function(){return!0},gt,vt,[-C,-A]);function gt(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?C:-C,c=N(a-t);N(c-C)<1e-6?(e.point(t,n=(n+o)/2>0?A:-A),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=C&&(N(t-r)<1e-6&&(t-=r*P),N(a-s)<1e-6&&(a-=s*P),n=_t(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function _t(e,t,n,r){var i,a,o=I(e-n);return N(o)>1e-6?M((I(t)*(a=D(r))*I(n)-I(r)*(i=D(t))*I(e))/(i*a*o)):(t+r)/2}function vt(e,t,n,r){var i;if(e==null)i=n*A,r.point(-C,i),r.point(0,i),r.point(C,i),r.point(C,0),r.point(C,-i),r.point(0,-i),r.point(-C,-i),r.point(-C,0),r.point(-C,i);else if(N(e[0]-t[0])>1e-6){var a=e[0]<t[0]?C:-C;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function yt(e){var t=D(e),n=2*L,r=t>0,i=N(t)>P;function a(t,r,i,a){rt(a,e,n,i,t,r)}function o(e,n){return D(e)*D(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?C:-C),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||ot(t,m)||ot(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!ot(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=R(e),a=R(n),o=[1,0,0],s=Se(i,a),c=xe(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=Se(o,s),m=we(o,d);Ce(m,we(s,f));var h=p,g=xe(m,h),_=xe(h,h),v=g*g-_*(xe(m,m)-1);if(!(v<0)){var y=S(v),b=we(h,(-g-y)/_);if(Ce(b,m),b=be(b),!r)return b;var x=e[0],w=n[0],T=e[1],E=n[1],D;w<x&&(D=x,x=w,w=D);var O=w-x,k=N(O-C)<P,A=k||O<1e-6;if(!k&&E<T&&(D=T,T=E,E=D),A?k?T+E>0^b[1]<(N(b[0]-x)<1e-6?T:E):T<=b[1]&&b[1]<=E:O>C^(x<=b[0]&&b[0]<=w)){var j=we(h,(-g+y)/_);return Ce(j,m),[b,be(j)]}}}function l(t,n){var i=r?e:C-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return ft(o,s,a,r?[0,-e]:[-C,e-C])}function bt(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var xt=1e9,St=-xt;function Ct(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return N(r[0]-e)<1e-6?i>0?0:3:N(r[0]-n)<1e-6?i>0?2:1:N(r[1]-t)<1e-6?+(i>0):i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=at(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=ye(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&ct(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(St,Math.min(xt,g)),_=Math.max(St,Math.min(xt,_))],u=[a=Math.max(St,Math.min(xt,a)),o=Math.max(St,Math.min(xt,o))];bt(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}var wt,Tt,Et,Dt,U={sphere:w,point:w,lineStart:Ot,lineEnd:w,polygonStart:w,polygonEnd:w};function Ot(){U.point=At,U.lineEnd=kt}function kt(){U.point=U.lineEnd=w}function At(e,t){e*=L,t*=L,Tt=e,Et=I(t),Dt=D(t),U.point=jt}function jt(e,t){e*=L,t*=L;var n=I(t),r=D(t),i=N(e-Tt),a=D(i),o=r*I(i),s=Dt*n-Et*r*a,c=Et*n+Dt*r*a;wt.add(F(S(o*o+s*s),c)),Tt=e,Et=n,Dt=r}function Mt(e){return wt=new ae,j(e,U),+wt}var Nt=[null,null],Pt={type:`LineString`,coordinates:Nt};function Ft(e,t){return Nt[0]=e,Nt[1]=t,Mt(Pt)}function It(e){return{stream:Lt(e)}}function Lt(e){return function(t){var n=new Rt;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Rt(){}Rt.prototype={constructor:Rt,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function zt(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),j(n,e.stream(ee)),t(ee.result()),r!=null&&e.clipExtent(r),e}function Bt(e,t,n){return zt(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function Vt(e,t,n){return Bt(e,[[0,0],t],n)}function Ht(e,t,n){return zt(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function Ut(e,t,n){return zt(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var Wt=16,Gt=D(30*L);function Kt(e,t){return+t?Jt(e,t):qt(e)}function qt(e){return Lt({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function Jt(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,C=c+m,w=S(b*b+x*x+C*C),T=E(C/=w),D=N(N(C)-1)<1e-6||N(a-d)<1e-6?(a+d)/2:F(x,b),O=e(D,T),k=O[0],A=O[1],j=k-r,M=A-i,ee=v*j-_*M;(ee*ee/y>t||N((_*j+v*M)/y-.5)>.3||o*f+s*p+c*m<Gt)&&(n(r,i,a,o,s,c,k,A,D,b/=w,x/=w,C,h,g),g.point(k,A),n(k,A,D,b,x,C,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=R([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],Wt,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,Wt,t),h.lineEnd=y,y()}return h}}var Yt=Lt({point:function(e,t){this.stream.point(e*L,t*L)}});function Xt(e){return Lt({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function Zt(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function Qt(e,t,n,r,i,a){if(!a)return Zt(e,t,n,r,i);var o=D(a),s=I(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function $t(e){return en(function(){return e})()}function en(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=ht,g=null,_,v,y,b=te,x=.5,C,w,T,E,D;function k(e){return T(e[0]*L,e[1]*L)}function A(e){return e=T.invert(e[0],e[1]),e&&[e[0]*O,e[1]*O]}k.stream=function(e){return E&&D===e?E:E=Yt(Xt(u)(h(C(b(D=e)))))},k.preclip=function(e){return arguments.length?(h=e,m=void 0,M()):h},k.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,M()):b},k.clipAngle=function(e){return arguments.length?(h=+e?yt(m=e*L):(m=null,ht),M()):m*O},k.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,te):Ct(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),M()):g==null?null:[[g,_],[v,y]]},k.scale=function(e){return arguments.length?(n=+e,j()):n},k.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],j()):[r,i]},k.center=function(e){return arguments.length?(a=e[0]%360*L,o=e[1]%360*L,j()):[a*O,o*O]},k.rotate=function(e){return arguments.length?(s=e[0]%360*L,c=e[1]%360*L,l=e.length>2?e[2]%360*L:0,j()):[s*O,c*O,l*O]},k.angle=function(e){return arguments.length?(d=e%360*L,j()):d*O},k.reflectX=function(e){return arguments.length?(f=e?-1:1,j()):f<0},k.reflectY=function(e){return arguments.length?(p=e?-1:1,j()):p<0},k.precision=function(e){return arguments.length?(C=Kt(w,x=e*e),M()):S(x)},k.fitExtent=function(e,t){return Bt(k,e,t)},k.fitSize=function(e,t){return Vt(k,e,t)},k.fitWidth=function(e,t){return Ht(k,e,t)},k.fitHeight=function(e,t){return Ut(k,e,t)};function j(){var e=Qt(n,0,0,f,p,d).apply(null,t(a,o)),m=Qt(n,r-e[0],i-e[1],f,p,d);return u=Qe(s,c,l),w=Xe(t,m),T=Xe(u,w),C=Kt(w,x),M()}function M(){return E=D=null,k}return function(){return t=e.apply(this,arguments),k.invert=t.invert&&A,j()}}function tn(e){return function(t,n){var r=S(t*t+n*n),i=e(r),a=I(i),o=D(i);return[F(t*a,r*o),E(r&&n*a/r)]}}function nn(e,t){var n=D(t),r=1+D(e)*n;return[n*I(e)/r,I(t)/r]}nn.invert=tn(function(e){return 2*M(e)});function rn(){return $t(nn).scale(250).clipAngle(142)}function an(e,a){let s=h();o(a,!0);let f=u(a,`id`,19,()=>de(`clipPath-`,s)),p=u(a,`cx`,3,0),m=u(a,`cy`,3,0),g=u(a,`disabled`,3,!1),_=u(a,`invert`,3,!1),v=c(()=>`M${p()-a.r},${m()} a${a.r},${a.r} 0 1,0 ${2*a.r},0 a${a.r},${a.r} 0 1,0 ${-2*a.r},0 Z`);var y=i(),b=d(y);t(b,()=>a.ClipPath,(e,t)=>{t(e,{get id(){return f()},get disabled(){return g()},get invert(){return _()},get children(){return a.children},get path(){return r(v)}})}),n(e,y),l()}var on=new Set([`$$slots`,`$$events`,`$$legacy`]);function sn(e,t){let n=s(t,on);an(e,m({get ClipPath(){return y}},()=>n))}var cn=new Set([`$$slots`,`$$events`,`$$legacy`]);function ln(e,t){let n=s(t,cn);an(e,m({get ClipPath(){return v}},()=>n))}function un(e,t,n){let r=n===void 0?he():n,i=re(e,dn(t(r))),a=e=>(i(e),n===void 0?r+``:void 0);return Object.setPrototypeOf(a,i),a}function dn(e){return{beginPath(){},moveTo(t,n){e.lineStart(),e.point(t,n)},arc(e,t,n,r,i,a){},lineTo(t,n){e.point(t,n)},closePath(){e.lineEnd()}}}var W=11102230246251565e-32,G=134217729,fn=3.000000000000001*W;function pn(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[p++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[p++]=s);return(a!==0||p===0)&&(i[p++]=a),p}function mn(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function K(e){return new Float64Array(e)}var hn=(3+16*W)*W,gn=(2+12*W)*W,_n=(9+64*W)*W*W,q=K(4),vn=K(8),yn=K(12),bn=K(16),J=K(4);function xn(e,t,n,r,i,a,o){let s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e-i,E=n-i,D=t-a,O=r-a;b=T*O,f=G*T,p=f-(f-T),m=T-p,f=G*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=D*E,f=G*D,p=f-(f-D),m=D-p,f=G*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,q[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,q[1]=y-(_+d)+(d-S),w=v+_,d=w-v,q[2]=v-(w-d)+(_-d),q[3]=w;let k=mn(4,q),A=gn*o;if(k>=A||-k>=A||(d=e-T,s=e-(T+d)+(d-i),d=n-E,l=n-(E+d)+(d-i),d=t-D,c=t-(D+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(A=_n*o+fn*Math.abs(k),k+=T*u+O*s-(D*l+E*c),k>=A||-k>=A))return k;b=s*O,f=G*s,p=f-(f-s),m=s-p,f=G*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=c*E,f=G*c,p=f-(f-c),m=c-p,f=G*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,J[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,J[1]=y-(_+d)+(d-S),w=v+_,d=w-v,J[2]=v-(w-d)+(_-d),J[3]=w;let j=pn(4,q,4,J,vn);b=T*u,f=G*T,p=f-(f-T),m=T-p,f=G*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=D*l,f=G*D,p=f-(f-D),m=D-p,f=G*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,J[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,J[1]=y-(_+d)+(d-S),w=v+_,d=w-v,J[2]=v-(w-d)+(_-d),J[3]=w;let M=pn(j,vn,4,J,yn);return b=s*u,f=G*s,p=f-(f-s),m=s-p,f=G*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=c*l,f=G*c,p=f-(f-c),m=c-p,f=G*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,J[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,J[1]=y-(_+d)+(d-S),w=v+_,d=w-v,J[2]=v-(w-d)+(_-d),J[3]=w,bn[pn(M,yn,4,J,bn)-1]}function Sn(e,t,n,r,i,a){let o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=hn*l?c:-xn(e,t,n,r,i,a,l)}(7+56*W)*W,(3+28*W)*W,(26+288*W)*W*W,K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(8),K(8),K(8),K(4),K(8),K(8),K(16),K(12),K(192),K(192),(10+96*W)*W,(4+48*W)*W,(44+576*W)*W*W,K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(8),K(8),K(8),K(8),K(8),K(8),K(8),K(8),K(8),K(4),K(4),K(4),K(8),K(16),K(16),K(16),K(32),K(32),K(48),K(64),K(1152),K(1152),(16+224*W)*W,(5+72*W)*W,(71+1408*W)*W*W,K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(4),K(24),K(24),K(24),K(24),K(24),K(24),K(24),K(24),K(24),K(24),K(1152),K(1152),K(1152),K(1152),K(1152),K(2304),K(2304),K(3456),K(5760),K(8),K(8),K(8),K(16),K(24),K(48),K(48),K(96),K(192),K(384),K(384),K(384),K(768),K(96),K(96),K(96),K(1152);var Cn=2**-52,wn=new Uint32Array(512),Tn=class e{static from(t,n=Mn,r=Nn){let i=t.length,a=new Float64Array(i*2);for(let e=0;e<i;e++){let i=t[e];a[2*e]=n(i),a[2*e+1]=r(i)}return new e(a)}constructor(e){let t=e.length>>1;if(t>0&&typeof e[0]!=`number`)throw Error(`Expected coords to contain numbers.`);this.coords=e;let n=Math.max(2*t-5,0);this._triangles=new Uint32Array(n*3),this._halfedges=new Int32Array(n*3),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){let{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,a=e.length>>1,o=1/0,s=1/0,c=-1/0,l=-1/0;for(let t=0;t<a;t++){let n=e[2*t],r=e[2*t+1];n<o&&(o=n),r<s&&(s=r),n>c&&(c=n),r>l&&(l=r),this._ids[t]=t}let u=(o+c)/2,d=(s+l)/2,f=0,p=0,m=0;for(let t=0,n=1/0;t<a;t++){let r=Dn(u,d,e[2*t],e[2*t+1]);r<n&&(f=t,n=r)}let h=e[2*f],g=e[2*f+1];for(let t=0,n=1/0;t<a;t++){if(t===f)continue;let r=Dn(h,g,e[2*t],e[2*t+1]);r<n&&r>0&&(p=t,n=r)}let _=e[2*p],v=e[2*p+1],y=1/0;for(let t=0;t<a;t++){if(t===f||t===p)continue;let n=kn(h,g,_,v,e[2*t],e[2*t+1]);n<y&&(m=t,y=n)}let b=e[2*m],x=e[2*m+1];if(y===1/0){for(let t=0;t<a;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];Y(this._ids,this._dists,0,a-1);let t=new Uint32Array(a),n=0;for(let e=0,r=-1/0;e<a;e++){let i=this._ids[e],a=this._dists[i];a>r&&(t[n++]=i,r=a)}this.hull=t.subarray(0,n),this.triangles=new Uint32Array,this.halfedges=new Int32Array;return}if(Sn(h,g,_,v,b,x)<0){let e=p,t=_,n=v;p=m,_=b,v=x,m=e,b=t,x=n}let S=An(h,g,_,v,b,x);this._cx=S.x,this._cy=S.y;for(let t=0;t<a;t++)this._dists[t]=Dn(e[2*t],e[2*t+1],S.x,S.y);Y(this._ids,this._dists,0,a-1),this._hullStart=f;let C=3;n[f]=t[m]=p,n[p]=t[f]=m,n[m]=t[p]=f,r[f]=0,r[p]=1,r[m]=2,i.fill(-1),i[this._hashKey(h,g)]=f,i[this._hashKey(_,v)]=p,i[this._hashKey(b,x)]=m,this.trianglesLen=0,this._addTriangle(f,p,m,-1,-1,-1);for(let a=0,o=0,s=0;a<this._ids.length;a++){let c=this._ids[a],l=e[2*c],u=e[2*c+1];if(a>0&&Math.abs(l-o)<=Cn&&Math.abs(u-s)<=Cn||(o=l,s=u,c===f||c===p||c===m))continue;let d=0;for(let e=0,t=this._hashKey(l,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],d===-1||d===n[d]);e++);d=t[d];let h=d,g;for(;g=n[h],Sn(l,u,e[2*h],e[2*h+1],e[2*g],e[2*g+1])>=0;)if(h=g,h===d){h=-1;break}if(h===-1)continue;let _=this._addTriangle(h,c,n[h],-1,-1,r[h]);r[c]=this._legalize(_+2),r[h]=_,C++;let v=n[h];for(;g=n[v],Sn(l,u,e[2*v],e[2*v+1],e[2*g],e[2*g+1])<0;)_=this._addTriangle(v,c,g,r[c],-1,r[v]),r[c]=this._legalize(_+2),n[v]=v,C--,v=g;if(h===d)for(;g=t[h],Sn(l,u,e[2*g],e[2*g+1],e[2*h],e[2*h+1])<0;)_=this._addTriangle(g,c,h,-1,r[h],r[g]),this._legalize(_+2),r[g]=_,n[h]=h,C--,h=g;this._hullStart=t[c]=h,n[h]=t[v]=c,n[c]=v,i[this._hashKey(l,u)]=c,i[this._hashKey(e[2*h],e[2*h+1])]=h}this.hull=new Uint32Array(C);for(let e=0,t=this._hullStart;e<C;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(En(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:n,coords:r}=this,i=0,a=0;for(;;){let o=n[e],s=e-e%3;if(a=s+(e+2)%3,o===-1){if(i===0)break;e=wn[--i];continue}let c=o-o%3,l=s+(e+1)%3,u=c+(o+2)%3,d=t[a],f=t[e],p=t[l],m=t[u];if(On(r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*p],r[2*p+1],r[2*m],r[2*m+1])){t[e]=m,t[o]=d;let r=n[u];if(r===-1){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(o,n[a]),this._link(a,u);let s=c+(o+1)%3;i<wn.length&&(wn[i++]=s)}else{if(i===0)break;e=wn[--i]}}return a}_link(e,t){this._halfedges[e]=t,t!==-1&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,a){let o=this.trianglesLen;return this._triangles[o]=e,this._triangles[o+1]=t,this._triangles[o+2]=n,this._link(o,r),this._link(o+1,i),this._link(o+2,a),this.trianglesLen+=3,o}};function En(e,t){let n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Dn(e,t,n,r){let i=e-n,a=t-r;return i*i+a*a}function On(e,t,n,r,i,a,o,s){let c=e-o,l=t-s,u=n-o,d=r-s,f=i-o,p=a-s,m=c*c+l*l,h=u*u+d*d,g=f*f+p*p;return c*(d*g-h*p)-l*(u*g-h*f)+m*(u*p-d*f)<0}function kn(e,t,n,r,i,a){let o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),p=(l*u-s*d)*f,m=(o*d-c*u)*f;return p*p+m*m}function An(e,t,n,r,i,a){let o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c);return{x:e+(l*u-s*d)*f,y:t+(o*d-c*u)*f}}function Y(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=e[i],a=t[r],o=i-1;for(;o>=n&&t[e[o]]>a;)e[o+1]=e[o--];e[o+1]=r}else{let i=n+r>>1,a=n+1,o=r;jn(e,i,a),t[e[n]]>t[e[r]]&&jn(e,n,r),t[e[a]]>t[e[r]]&&jn(e,a,r),t[e[n]]>t[e[a]]&&jn(e,n,a);let s=e[a],c=t[s];for(;;){do a++;while(t[e[a]]<c);do o--;while(t[e[o]]>c);if(o<a)break;jn(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Y(e,t,a,r),Y(e,t,n,o-1)):(Y(e,t,n,o-1),Y(e,t,a,r))}}function jn(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Mn(e){return e[0]}function Nn(e){return e[1]}var Pn=1e-6,X=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=``}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){e=+e,t=+t,n=+n;let r=e+n,i=t;if(n<0)throw Error(`negative radius`);this._x1===null?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>Pn||Math.abs(this._y1-i)>Pn)&&(this._+=`L`+r+`,`+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}},Fn=class{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}},In=class{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error(`invalid bounds`);this.delaunay=e,this._circumcenters=new Float64Array(e.points.length*2),this.vectors=new Float64Array(e.points.length*2),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i,a,o=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r=0,s=0,c=n.length,l,u;r<c;r+=3,s+=2){let c=n[r]*2,d=n[r+1]*2,f=n[r+2]*2,p=e[c],m=e[c+1],h=e[d],g=e[d+1],_=e[f],v=e[f+1],y=h-p,b=g-m,x=_-p,S=v-m,C=(y*S-b*x)*2;if(Math.abs(C)<1e-9){if(i===void 0){i=a=0;for(let n of t)i+=e[n*2],a+=e[n*2+1];i/=t.length,a/=t.length}let n=1e9*Math.sign((i-p)*S-(a-m)*x);l=(p+_)/2-n*S,u=(m+v)/2+n*x}else{let e=1/C,t=y*y+b*b,n=x*x+S*S;l=p+(S*t-b*n)*e,u=m+(y*n-x*t)*e}o[s]=l,o[s+1]=u}let s=t[t.length-1],c,l=s*4,u,d=e[2*s],f,p=e[2*s+1];r.fill(0);for(let n=0;n<t.length;++n)s=t[n],c=l,u=d,f=p,l=s*4,d=e[2*s],p=e[2*s+1],r[c+2]=r[l]=f-p,r[c+3]=r[l+1]=d-u}render(e){let t=e==null?e=new X:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:a,vectors:o}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){let r=n[t];if(r<t)continue;let i=Math.floor(t/3)*2,o=Math.floor(r/3)*2,s=a[i],c=a[i+1],l=a[o],u=a[o+1];this._renderSegment(s,c,l,u,e)}let s,c=i[i.length-1];for(let t=0;t<i.length;++t){s=c,c=i[t];let n=Math.floor(r[c]/3)*2,l=a[n],u=a[n+1],d=s*4,f=this._project(l,u,o[d+2],o[d+3]);f&&this._renderSegment(l,u,f[0],f[1],e)}return t&&t.value()}renderBounds(e){let t=e==null?e=new X:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){let n=t==null?t=new X:void 0,r=this._clip(e);if(r===null||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)(r[e]!==r[e-2]||r[e+1]!==r[e-1])&&t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){let{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){let e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){let t=new Fn;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let a,o=this._regioncode(e,t),s=this._regioncode(n,r);o===0&&s===0?(i.moveTo(e,t),i.lineTo(n,r)):(a=this._clipSegment(e,t,n,r,o,s))&&(i.moveTo(a[0],a[1]),i.lineTo(a[2],a[3]))}contains(e,t,n){return t=+t,t!==t||(n=+n,n!==n)?!1:this.delaunay._step(e,t,n)===e}*neighbors(e){let t=this._clip(e);if(t)for(let n of this.delaunay.neighbors(e)){let e=this._clip(n);if(e){loop:for(let r=0,i=t.length;r<i;r+=2)for(let a=0,o=e.length;a<o;a+=2)if(t[r]===e[a]&&t[r+1]===e[a+1]&&t[(r+2)%i]===e[(a+o-2)%o]&&t[(r+3)%i]===e[(a+o-1)%o]){yield n;break loop}}}}_cell(e){let{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,a=n[e];if(a===-1)return null;let o=[],s=a;do{let n=Math.floor(s/3);if(o.push(t[n*2],t[n*2+1]),s=s%3==2?s-2:s+1,i[s]!==e)break;s=r[s]}while(s!==a&&s!==-1);return o}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let t=this._cell(e);if(t===null)return null;let{vectors:n}=this,r=e*4;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){let n=t.length,r=null,i,a,o=t[n-2],s=t[n-1],c,l=this._regioncode(o,s),u,d=0;for(let f=0;f<n;f+=2)if(i=o,a=s,o=t[f],s=t[f+1],c=l,l=this._regioncode(o,s),c===0&&l===0)u=d,d=0,r?r.push(o,s):r=[o,s];else{let t,n,f,p,m;if(c===0){if((t=this._clipSegment(i,a,o,s,c,l))===null)continue;[n,f,p,m]=t}else{if((t=this._clipSegment(o,s,i,a,l,c))===null)continue;[p,m,n,f]=t,u=d,d=this._edgecode(n,f),u&&d&&this._edge(e,u,d,r,r.length),r?r.push(n,f):r=[n,f]}u=d,d=this._edgecode(p,m),u&&d&&this._edge(e,u,d,r,r.length),r?r.push(p,m):r=[p,m]}if(r)u=d,d=this._edgecode(r[0],r[1]),u&&d&&this._edge(e,u,d,r,r.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(e,t,n,r,i,a){let o=i<a;for(o&&([e,t,n,r,i,a]=[n,r,e,t,a,i]);;){if(i===0&&a===0)return o?[n,r,e,t]:[e,t,n,r];if(i&a)return null;let s,c,l=i||a;l&8?(s=e+(n-e)*(this.ymax-t)/(r-t),c=this.ymax):l&4?(s=e+(n-e)*(this.ymin-t)/(r-t),c=this.ymin):l&2?(c=t+(r-t)*(this.xmax-e)/(n-e),s=this.xmax):(c=t+(r-t)*(this.xmin-e)/(n-e),s=this.xmin),i?(e=s,t=c,i=this._regioncode(e,t)):(n=s,r=c,a=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,a){let o=Array.from(t),s;if((s=this._project(o[0],o[1],n,r))&&o.unshift(s[0],s[1]),(s=this._project(o[o.length-2],o[o.length-1],i,a))&&o.push(s[0],s[1]),o=this._clipFinite(e,o))for(let t=0,n=o.length,r,i=this._edgecode(o[n-2],o[n-1]);t<n;t+=2)r=i,i=this._edgecode(o[t],o[t+1]),r&&i&&(t=this._edge(e,r,i,o,t),n=o.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(o=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return o}_edge(e,t,n,r,i){for(;t!==n;){let n,a;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,a=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,a=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,a=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,a=this.ymin}(r[i]!==n||r[i+1]!==a)&&this.contains(e,n,a)&&(r.splice(i,0,n,a),i+=2)}return i}_project(e,t,n,r){let i=1/0,a,o,s;if(r<0){if(t<=this.ymin)return null;(a=(this.ymin-t)/r)<i&&(s=this.ymin,o=e+(i=a)*n)}else if(r>0){if(t>=this.ymax)return null;(a=(this.ymax-t)/r)<i&&(s=this.ymax,o=e+(i=a)*n)}if(n>0){if(e>=this.xmax)return null;(a=(this.xmax-e)/n)<i&&(o=this.xmax,s=t+(i=a)*r)}else if(n<0){if(e<=this.xmin)return null;(a=(this.xmin-e)/n)<i&&(o=this.xmin,s=t+(i=a)*r)}return[o,s]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){let n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}},Ln=2*Math.PI,Z=Math.pow;function Rn(e){return e[0]}function zn(e){return e[1]}function Bn(e){let{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){let r=2*t[e],i=2*t[e+1],a=2*t[e+2];if((n[a]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[a+1]-n[r+1])>1e-10)return!1}return!0}function Vn(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}var Hn=class e{static from(t,n=Rn,r=zn,i){return new e(`length`in t?Un(t,n,r,i):Float64Array.from(Wn(t,n,r,i)))}constructor(e){this._delaunator=new Tn(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&Bn(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);let e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){let n=Vn(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new Tn(t)}else delete this.collinear;let n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),o=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){let t=i[e%3==2?e-2:e+1];(n[e]===-1||a[t]===-1)&&(a[t]=e)}for(let e=0,t=r.length;e<t;++e)o[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],a[r[0]]=1,r.length===2&&(a[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new In(this,e)}*neighbors(e){let{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:a,collinear:o}=this;if(o){let t=o.indexOf(e);t>0&&(yield o[t-1]),t<o.length-1&&(yield o[t+1]);return}let s=t[e];if(s===-1)return;let c=s,l=-1;do{if(yield l=a[c],c=c%3==2?c-2:c+1,a[c]!==e)return;if(c=i[c],c===-1){let t=n[(r[e]+1)%n.length];t!==l&&(yield t);return}}while(c!==s)}find(e,t,n=0){if(e=+e,e!==e||(t=+t,t!==t))return-1;let r=n,i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){let{inedges:r,hull:i,_hullIndex:a,halfedges:o,triangles:s,points:c}=this;if(r[e]===-1||!c.length)return(e+1)%(c.length>>1);let l=e,u=Z(t-c[e*2],2)+Z(n-c[e*2+1],2),d=r[e],f=d;do{let r=s[f],d=Z(t-c[r*2],2)+Z(n-c[r*2+1],2);if(d<u&&(u=d,l=r),f=f%3==2?f-2:f+1,s[f]!==e)break;if(f=o[f],f===-1){if(f=i[(a[e]+1)%i.length],f!==r&&Z(t-c[f*2],2)+Z(n-c[f*2+1],2)<u)return f;break}}while(f!==d);return l}render(e){let t=e==null?e=new X:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,a=r.length;t<a;++t){let a=r[t];if(a<t)continue;let o=i[t]*2,s=i[a]*2;e.moveTo(n[o],n[o+1]),e.lineTo(n[s],n[s+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){t===void 0&&(!e||typeof e.moveTo!=`function`)&&(t=e,e=null),t=t==null?2:+t;let n=e==null?e=new X:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){let i=r[n],a=r[n+1];e.moveTo(i+t,a),e.arc(i,a,t,0,Ln)}return n&&n.value()}renderHull(e){let t=e==null?e=new X:void 0,{hull:n,points:r}=this,i=n[0]*2,a=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<a;++t){let i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){let e=new Fn;return this.renderHull(e),e.value()}renderTriangle(e,t){let n=t==null?t=new X:void 0,{points:r,triangles:i}=this,a=i[e*=3]*2,o=i[e+1]*2,s=i[e+2]*2;return t.moveTo(r[a],r[a+1]),t.lineTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.closePath(),n&&n.value()}*trianglePolygons(){let{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){let t=new Fn;return this.renderTriangle(e,t),t.value()}};function Un(e,t,n,r){let i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){let i=e[o];a[o*2]=t.call(r,i,o,e),a[o*2+1]=n.call(r,i,o,e)}return a}function*Wn(e,t,n,r){let i=0;for(let a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var Gn=Math.PI,Kn=Gn/2;Gn/4,Gn*2;var qn=180/Gn,Jn=Gn/180,Yn=Math.atan2,Xn=Math.cos,Zn=Math.max,Qn=Math.min,$n=Math.sin,er=Math.sign||function(e){return e>0?1:e<0?-1:0},tr=Math.sqrt;function nr(e){return e>1?Kn:e<-1?-Kn:Math.asin(e)}function rr(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Q(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ir(e,t){return[e[0]+t[0],e[1]+t[1],e[2]+t[2]]}function ar(e){var t=tr(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);return[e[0]/t,e[1]/t,e[2]/t]}function or(e){return[Yn(e[1],e[0])*qn,nr(Zn(-1,Qn(1,e[2])))*qn]}function $(e){let t=e[0]*Jn,n=e[1]*Jn,r=Xn(n);return[r*Xn(t),r*$n(t),$n(n)]}function sr(e){return e=e.map(e=>$(e)),rr(e[0],Q(e[2],e[1]))}function cr(e){let t=ur(e),n=fr(t),r=dr(n,e),i=mr(n,e.length),a=lr(i,e),{polygons:o,centers:s}=hr(pr(n,e),n,e);return{delaunay:t,edges:r,triangles:n,centers:s,neighbors:i,polygons:o,mesh:_r(o),hull:yr(n,e),urquhart:vr(r,n),find:a}}function lr(e,t){function n(e,t){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}return function(r,i,a){a===void 0&&(a=0);let o,s,c=a,l=$([r,i]);do o=a,a=null,s=n(l,$(t[o])),e[o].forEach(e=>{let r=n(l,$(t[e]));if(r<s){s=r,a=e,c=e;return}});while(a!==null);return c}}function ur(e){if(e.length<2)return{};let t=0;for(;isNaN(e[t][0]+e[t][1])&&t++<e.length;);let n=nt(e[t]),r=rn().translate([0,0]).scale(1).rotate(n.invert([180,0]));e=e.map(r);let i=[],a=1;for(let t=0,n=e.length;t<n;t++){let n=e[t][0]**2+e[t][1]**2;!isFinite(n)||n>1e32?i.push(t):n>a&&(a=n)}let o=1e6*tr(a);i.forEach(t=>e[t]=[o,0]),e.push([0,o]),e.push([-o,0]),e.push([0,-o]);let s=Hn.from(e);s.projection=r;let{triangles:c,halfedges:l,inedges:u}=s,d=[];for(let n=0,r=l.length;n<r;n++)if(l[n]<0){let e=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=l[e],a=l[r];l[i]=a,l[a]=i,l[e]=l[r]=-1,c[n]=c[e]=c[r]=t,u[c[i]]=i%3==0?i+2:i-1,u[c[a]]=a%3==0?a+2:a-1,d.push(Math.min(n,e,r)),n+=2-n%3}else c[n]>e.length-3-1&&(c[n]=t);return s}function dr(e,t){let n=new Set;return t.length===2?[[0,1]]:(e.forEach(e=>{if(e[0]!==e[1]&&!(sr(e.map(e=>t[e]))<0))for(let t=0,r;t<3;t++)r=(t+1)%3,n.add(_([e[t],e[r]]).join(`-`))}),Array.from(n,e=>e.split(`-`).map(Number)))}function fr(e){let{triangles:t}=e;if(!t)return[];let n=[];for(let e=0,r=t.length/3;e<r;e++){let r=t[3*e],i=t[3*e+1],a=t[3*e+2];r!==i&&i!==a&&n.push([r,a,i])}return n}function pr(e,t){return e.map(e=>{let n=e.map(e=>t[e]).map($);return or(ar(ir(ir(Q(n[1],n[0]),Q(n[2],n[1])),Q(n[0],n[2]))))})}function mr(e,t){let n=[];return e.forEach(e=>{for(let t=0;t<3;t++){let r=e[t],i=e[(t+1)%3];n[r]=n[r]||[],n[r].push(i)}}),e.length===0&&(t===2?(n[0]=[1],n[1]=[0]):t===1&&(n[0]=[])),n}function hr(e,t,n){let r=[],i=e.slice();if(t.length===0){if(n.length<2)return{polygons:r,centers:i};if(n.length===2){let e=$(n[0]),t=$(n[1]),a=ar(ir(e,t)),s=Q(a,ar(Q(e,t))),c=[a,Q(a,s),Q(Q(a,s),s),Q(Q(Q(a,s),s),s)].map(or).map(o);return r.push(c),r.push(c.slice().reverse()),{polygons:r,centers:i}}}t.forEach((e,t)=>{for(let n=0;n<3;n++){let i=e[n],a=e[(n+1)%3],o=e[(n+2)%3];r[i]=r[i]||[],r[i].push([a,o,t,[i,a,o]])}});let a=r.map(e=>{let t=[e[0][2]],r=e[0][1];for(let n=1;n<e.length;n++)for(let n=0;n<e.length;n++)if(e[n][0]==r){r=e[n][1],t.push(e[n][2]);break}if(t.length>2)return t;if(t.length==2){let r=gr(n[e[0][3][0]],n[e[0][3][1]],i[t[0]]),a=gr(n[e[0][3][2]],n[e[0][3][0]],i[t[0]]),s=o(r),c=o(a);return[t[0],c,t[1],s]}});function o(e){let n=-1;return i.slice(t.length,1/0).forEach((r,i)=>{r[0]===e[0]&&r[1]===e[1]&&(n=i+t.length)}),n<0&&(n=i.length,i.push(e)),n}return{polygons:a,centers:i}}function gr(e,t,n){e=$(e),t=$(t),n=$(n);let r=er(rr(Q(t,e),n));return or(ar(ir(e,t)).map(e=>r*e))}function _r(e){let t=[];return e.forEach(e=>{if(!e)return;let n=e[e.length-1];for(let r of e)r>n&&t.push([n,r]),n=r}),t}function vr(e,t){return function(n){let r=new Map,i=new Map;return e.forEach((e,t)=>{let a=e.join(`-`);r.set(a,n[t]),i.set(a,!0)}),t.forEach(e=>{let t=0,n=-1;for(let i=0;i<3;i++){let a=_([e[i],e[(i+1)%3]]).join(`-`);r.get(a)>t&&(t=r.get(a),n=a)}i.set(n,!1)}),e.map(e=>i.get(e.join(`-`)))}}function yr(e,t){let n=new Set,r=[];e.map(e=>{if(!(sr(e.map(e=>t[e>t.length?0:e]))>1e-12))for(let t=0;t<3;t++){let r=[e[t],e[(t+1)%3]],i=`${r[0]}-${r[1]}`;n.has(i)?n.delete(i):n.add(`${r[1]}-${r[0]}`)}});let i=new Map,a;if(n.forEach(e=>{e=e.split(`-`).map(Number),i.set(e[0],e[1]),a=e[0]}),a===void 0)return r;let o=a;do{r.push(o);let e=i.get(o);i.set(o,-1),o=e}while(o>-1&&o!==a);return r}function br(e){let t=function(e){if(t.delaunay=null,t._data=e,typeof t._data==`object`&&t._data.type===`FeatureCollection`&&(t._data=t._data.features),typeof t._data==`object`){let e=t._data.map(e=>[t._vx(e),t._vy(e),e]).filter(e=>isFinite(e[0]+e[1]));t.points=e.map(e=>[e[0],e[1]]),t.valid=e.map(e=>e[2]),t.delaunay=cr(t.points)}return t};return t._vx=function(e){if(typeof e==`object`&&`type`in e)return Ye(e)[0];if(0 in e)return e[0]},t._vy=function(e){if(typeof e==`object`&&`type`in e)return Ye(e)[1];if(1 in e)return e[1]},t.x=function(e){return e?(t._vx=e,t):t._vx},t.y=function(e){return e?(t._vy=e,t):t._vy},t.polygons=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n={type:`FeatureCollection`,features:[]};return t.valid.length===0?n:(t.delaunay.polygons.forEach((e,r)=>n.features.push({type:`Feature`,geometry:e?{type:`Polygon`,coordinates:[[...e,e[0]].map(e=>t.delaunay.centers[e])]}:null,properties:{site:t.valid[r],sitecoordinates:t.points[r],neighbours:t.delaunay.neighbors[r]}})),t.valid.length===1&&n.features.push({type:`Feature`,geometry:{type:`Sphere`},properties:{site:t.valid[0],sitecoordinates:t.points[0],neighbours:[]}}),n)},t.triangles=function(e){return e!==void 0&&t(e),t.delaunay?{type:`FeatureCollection`,features:t.delaunay.triangles.map((e,n)=>(e=e.map(e=>t.points[e]),e.center=t.delaunay.centers[n],e)).filter(e=>sr(e)>0).map(e=>({type:`Feature`,properties:{circumcenter:e.center},geometry:{type:`Polygon`,coordinates:[[...e,e[0]]]}}))}:!1},t.links=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let n=t.delaunay.edges.map(e=>Ft(t.points[e[0]],t.points[e[1]])),r=t.delaunay.urquhart(n);return{type:`FeatureCollection`,features:t.delaunay.edges.map((e,i)=>({type:`Feature`,properties:{source:t.valid[e[0]],target:t.valid[e[1]],length:n[i],urquhart:!!r[i]},geometry:{type:`LineString`,coordinates:[t.points[e[0]],t.points[e[1]]]}}))}},t.mesh=function(e){return e!==void 0&&t(e),t.delaunay?{type:`MultiLineString`,coordinates:t.delaunay.edges.map(e=>[t.points[e[0]],t.points[e[1]]])}:!1},t.cellMesh=function(e){if(e!==void 0&&t(e),!t.delaunay)return!1;let{centers:n,polygons:r}=t.delaunay,i=[];for(let e of r)if(e)for(let t=e.length,r=e[t-1],a=e[0],o=0;o<t;r=a,a=e[++o])a>r&&i.push([n[r],n[a]]);return{type:`MultiLineString`,coordinates:i}},t._found=void 0,t.find=function(e,n,r){if(t._found=t.delaunay.find(e,n,t._found),!r||Ft([e,n],t.points[t._found])<r)return t._found},t.hull=function(e){e!==void 0&&t(e);let n=t.delaunay.hull,r=t.points;return n.length===0?null:{type:`Polygon`,coordinates:[[...n.map(e=>r[e]),r[n[0]]]]}},e?t(e):t}var xr=new Set([`$$slots`,`$$events`,`$$legacy`,`Path`,`geoTransform`,`geojson`,`tooltip`,`curve`,`onclick`,`onpointerenter`,`onpointermove`,`onpointerleave`,`class`,`ref`,`children`]);function Sr(a,p){o(p,!0);let h=u(p,`curve`,3,b),_=s(p,xr),v=g(),y=le(),x=c(()=>p.geoTransform&&y.projection?It(p.geoTransform(y.projection)):y.projection),S=c(()=>{if(p.geojson,r(x))return h()===b?re(r(x)):un(r(x),h())}),C=c(()=>p.geojson?r(S)?.(p.geojson)??``:``);function w(e){p.onclick?.(e,r(S))}function T(e){p.onpointerenter?.(e),p.tooltip&&v?.tooltip.show(e,p.geojson)}function E(e){p.onpointermove?.(e),p.tooltip&&v.tooltip.show(e,p.geojson)}function D(e){p.onpointerleave?.(e),p.tooltip&&v.tooltip.hide()}var O=i(),k=d(O),A=t=>{var a=i(),o=d(a);e(o,()=>p.children,()=>({geoPath:r(S)})),n(t,a)},j=e=>{var a=i(),o=d(a);{let e=c(()=>se(`lc-geo-path`,p.class));t(o,()=>p.Path,(t,n)=>{n(t,m({get pathData(){return r(C)}},()=>_,()=>p.onclick&&{onclick:w},()=>(p.tooltip||p.onpointerenter)&&{onpointerenter:T},()=>(p.tooltip||p.onpointermove)&&{onpointermove:E},()=>(p.tooltip||p.onpointerleave)&&{onpointerleave:D},{get class(){return r(e)},get pathRef(){return p.ref}}))})}n(e,a)};f(k,e=>{p.children?e(A):e(j,-1)}),n(a,O),l()}var Cr=new Set([`$$slots`,`$$events`,`$$legacy`]);function wr(e,t){let n=s(t,Cr);Sr(e,m({get Path(){return me}},()=>n))}var Tr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Er(e,t){let n=s(t,Tr);Sr(e,m({get Path(){return ge}},()=>n))}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Or(e,t){o(t,!0);let r=ue(),a=s(t,Dr);var c=i(),u=d(c),p=e=>{wr(e,m(()=>a))},h=e=>{Er(e,m(()=>a))};f(u,e=>{r===`svg`?e(p):r===`canvas`&&e(h,1)}),n(e,c),l()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`Group`,`Path`,`CircleClipPath`,`data`,`x`,`y`,`r`,`classes`,`onclick`,`onpointerenter`,`onpointerdown`,`onpointermove`,`class`]);function Ar(e,h){o(h,!0);let _=u(h,`classes`,19,()=>({})),v=s(h,kr),y=g(),b=le(),x=c(()=>h.x==null?void 0:ce(h.x)),S=c(()=>h.y==null?void 0:ce(h.y)),C=c(()=>(h.data??y.flatData).map(e=>{let t=r(x)?b.projection?r(x)(e):y.xScale(r(x)(e)):b.projection?y.x(e):y.xGet(e),n=r(S)?b.projection?r(S)(e):y.yScale(r(S)(e)):b.projection?y.y(e):y.yGet(e),i=Array.isArray(t)?oe(t):t,a=Array.isArray(n)?oe(n):n,o;if(y.radial){let e=_e(i,a);o=[e[0]+y.width/2,e[1]+y.height/2]}else o=[i,a];return o.data=e,o})),w=c(()=>Math.max(y.width,0)),T=c(()=>Math.max(y.height,0)),E=c(()=>h.r===0||h.r==null||h.r===1/0);var D=i(),O=d(D);{let e=c(()=>se(`lc-voronoi-g`,_().root,h.class));t(O,()=>h.Group,(o,s)=>{s(o,m(()=>v,{get class(){return r(e)},children:(e,o)=>{var s=i(),l=d(s),u=e=>{let o=c(()=>br().polygons(r(C)));var s=i(),l=d(s);a(l,17,()=>r(o).features,p,(e,a)=>{let o=c(()=>h.r?b.projection?.(r(a).properties.sitecoordinates):null);var s=i(),l=d(s);{let e=c(()=>r(o)?.[0]),n=c(()=>r(o)?.[1]),i=c(()=>h.r??0),s=c(()=>r(o)==null||r(E));t(l,()=>h.CircleClipPath,(t,o)=>{o(t,{get cx(){return r(e)},get cy(){return r(n)},get r(){return r(i)},get disabled(){return r(s)},children:(e,t)=>{{let t=c(()=>[`lc-voronoi-geo-path`,_().path]);Or(e,{get geojson(){return r(a)},get class(){return r(t)},onclick:e=>h.onclick?.(e,{data:r(a).properties.site.data,feature:r(a)}),onpointerenter:e=>h.onpointerenter?.(e,{data:r(a).properties.site.data,feature:r(a)}),onpointermove:e=>h.onpointermove?.(e,{data:r(a).properties.site.data,feature:r(a)}),onpointerdown:e=>h.onpointerdown?.(e,{data:r(a).properties.site.data,feature:r(a)}),ontouchmove:e=>{e.preventDefault()}})}},$$slots:{default:!0}})})}n(e,s)}),n(e,s)},m=e=>{let o=c(()=>Hn.from(r(C)).voronoi([0,0,r(w),r(T)]));var s=i(),l=d(s);a(l,17,()=>r(C),p,(e,a,s)=>{let l=c(()=>r(o).renderCell(s));var u=i(),p=d(u),m=e=>{var o=i(),s=d(o);{let e=c(()=>h.r??0);t(s,()=>h.CircleClipPath,(o,s)=>{s(o,{get cx(){return r(a)[0]},get cy(){return r(a)[1]},get r(){return r(e)},get disabled(){return r(E)},children:(e,o)=>{var s=i(),u=d(s);{let e=c(()=>[`lc-voronoi-path`,_().path]);t(u,()=>h.Path,(t,n)=>{n(t,{get pathData(){return r(l)},get class(){return r(e)},onclick:e=>h.onclick?.(e,{data:r(a).data,point:r(a)}),onpointerenter:e=>h.onpointerenter?.(e,{data:r(a).data,point:r(a)}),onpointermove:e=>h.onpointermove?.(e,{data:r(a).data,point:r(a)}),onpointerdown:e=>h.onpointerdown?.(e,{data:r(a).data,point:r(a)}),ontouchmove:e=>{e.preventDefault()}})})}n(e,s)},$$slots:{default:!0}})})}n(e,o)};f(p,e=>{r(l)&&e(m)}),n(e,u)}),n(e,s)};f(l,e=>{b.projection?e(u):e(m,-1)}),n(e,s)},$$slots:{default:!0}}))})}n(e,D),l()}var jr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mr(e,t){let n=s(t,jr);Ar(e,m({get Group(){return pe},get Path(){return me},get CircleClipPath(){return sn}},()=>n))}var Nr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pr(e,t){let n=s(t,Nr);Ar(e,m({get Group(){return fe},get Path(){return ge},get CircleClipPath(){return ln}},()=>n))}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ir(e,t){o(t,!0);let r=ue(),a=s(t,Fr);var c=i(),u=d(c),p=e=>{Mr(e,m(()=>a))},h=e=>{Pr(e,m(()=>a))};f(u,e=>{r===`svg`?e(p):r===`canvas`&&e(h,1)}),n(e,c),l()}export{Ir as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);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}export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e}export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as e,ft as t}from"./D2BnX0Uk.js";import{B as n,H as r,o as i}from"./Bd1gDe3Y.js";import{s as a}from"./DKMlMI4a.js";var o=new i(`GeoContext`);function s(){return o.getOr({projection:void 0})}function c(e){return o.set(e)}var l=new i(`LayerContext`);function u(){return l.get()}function d(e){return l.set(e)}var f=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!p(i,a)&&r||Object.defineProperty(e,n,a)},p=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ee=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},m=(e,t)=>`/* Wrapped ${e}*/\n${t}`,h=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),g=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),_=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=m.bind(null,r,t.toString());Object.defineProperty(i,"name",g);let{writable:a,enumerable:o,configurable:s}=h;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function v(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))f(e,t,r,n);return ee(e,t),_(e,t,r),e}var y=2147483647,b=new WeakMap,x=new WeakMap,S=new WeakMap;function C(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now()){e.delete(t);return}return n}}function w(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>y)throw TypeError(`The \`maxAge\` option cannot exceed ${y}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=C(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>y)throw TypeError(`The \`maxAge\` function result cannot exceed ${y}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),x.get(i)?.delete(e)},l);e.unref?.();let t=x.get(i)??new Set;t.add(e),x.set(i,t)}return c};return v(i,e,{ignoreNonConfigurable:!0}),b.set(i,n),S.set(i,t??(e=>e[0])),i}function T(e,t,n,r,[i,a,o,s]){let c=n-i-a,l=r-a-o,u=n-o-s,d=r-s-i;return[`M${e+i},${t}`,`h${c}`,a>0?`a${a},${a} 0 0 1 ${a},${a}`:``,`v${l}`,o>0?`a${o},${o} 0 0 1 ${-o},${o}`:``,`h${-u}`,s>0?`a${s},${s} 0 0 1 ${-s},${-s}`:``,`v${-d}`,i>0?`a${i},${i} 0 0 1 ${i},${-i}`:``,`z`].filter(Boolean).join(` `)}function E(e){if(e==null||e===``||e===`none`)return null;let t;return t=typeof e==`number`?[e,e]:Array.isArray(e)?e.filter(e=>Number.isFinite(e)):e.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``))).filter(e=>Number.isFinite(e)),t.length===0||t.every(e=>e===0)?null:(t.length%2==1&&(t=[...t,...t]),t)}function D(e,t,n=`to right`){let r=[],i=0;for(let n=0;n<e.length;n++){let a=e[n],o=n%2==0?t:`transparent`;r.push(`${o} ${i}px ${i+a}px`),i+=a}return`repeating-linear-gradient(${n}, ${r.join(`, `)})`}function O(e,t=0){let n=e;return n=n.replace(/([MLTQCSAZ])(-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,n,r,i)=>`${n}${r},${t}`),n=n.replace(/([v])(-?\d*\.?\d+)/g,(e,t,n)=>`${t}0`),n=n.replace(/a(-?\d*\.?\d+),(-?\d*\.?\d+) (\d+) (\d+) (\d+) (-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,t,n,r,i,a,o,s)=>`a${t},0 ${r} ${i} ${a} ${o},0`),n}function k(e){return!e||e===`none`||e===`transparent`||/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*0\s*\)/.test(e)}function A(e){return typeof e==`string`?e.includes(`var(`)||e.toLowerCase()===`currentcolor`:!1}var j=`__layerchart_canvas_styles_id`;function M(e){if(!e)return{};let t={},n=e.split(`;`).filter(e=>e.trim());for(let e of n){let n=e.indexOf(`:`);if(n===-1)continue;let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();if(!r||!i)continue;let a=r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[a]=i}return t}var N=[`fill`,`fillOpacity`,`stroke`,`strokeOpacity`,`strokeWidth`,`strokeDasharray`,`opacity`,`fontWeight`,`fontSize`,`fontFamily`,`textAnchor`,`textAlign`,`paintOrder`];function P(e,{styles:t,classes:n}={}){if(typeof document>`u`){let e={...t};return e.fontSize||=`10px`,e.fontFamily||=`sans-serif`,e}try{let r=document.getElementById(j);return r||(r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),r.setAttribute(`id`,j),r.style.display=`none`,e.after(r)),r=r,r.removeAttribute(`style`),r.removeAttribute(`class`),t&&Object.assign(r.style,t),r.style.display=`none`,n&&r.setAttribute(`class`,a(n).split(` `).filter(e=>!e.startsWith(`transition-`)).join(` `)),N.reduce((e,t)=>(e[t]=window.getComputedStyle(r)[t],e),{})}catch(e){return console.error(`Unable to get computed styles`,e),{}}}function F(e,{styles:t,classes:n}={}){return JSON.stringify({canvasId:e.id,styles:t,classes:n})}var I=w(P,{cacheKey:([e,t])=>F(e,t)});function L(e,t,n={},{applyText:r}={}){let i=M(n.style),a={...n.styles,...i},o;if(typeof document>`u`||n.classes==null&&!Object.values(a).some(A))o=a,typeof document>`u`&&!o.stroke&&!o.fill&&(o={...o,stroke:`black`});else{let{constantStyles:t,variableStyles:r}=Object.entries(a).reduce((e,[t,n])=>(A(n)?e.variableStyles[t]=n:(typeof n==`number`||typeof n==`string`)&&(e.constantStyles[t]=n),e),{constantStyles:{},variableStyles:{}});o={...I(e.canvas,{styles:r,classes:n.classes}),...t}}let s=o?.paintOrder===`stroke`?[`stroke`,`fill`]:[`fill`,`stroke`];if(o?.opacity&&(e.globalAlpha*=Number(o?.opacity)),r){let t=o.fontSize||`10px`,n=o.fontFamily||`sans-serif`;e.font=`${o.fontWeight||``} ${t} ${n}`.trim(),o.textAnchor===`middle`?e.textAlign=`center`:o.textAnchor===`end`?e.textAlign=`right`:o.textAnchor===`start`?e.textAlign=`left`:o.textAlign&&(e.textAlign=o.textAlign)}if(o.strokeDasharray&&o.strokeDasharray!==`none`){let t=o.strokeDasharray.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``)));t.length>0&&t.every(e=>!isNaN(e))&&e.setLineDash(t)}for(let r of s)if(r===`fill`){let r=n.styles?.fill&&(typeof CanvasGradient<`u`&&n.styles?.fill instanceof CanvasGradient||typeof CanvasPattern<`u`&&n.styles?.fill instanceof CanvasPattern||!A(n.styles?.fill))?n.styles.fill:o?.fill;if(r&&!k(r)){let n=e.globalAlpha,i=Number(o?.fillOpacity);e.globalAlpha*=isNaN(i)?1:i,e.fillStyle=r,t.fill(e),e.globalAlpha=n}}else if(r===`stroke`){let r=n.styles?.stroke&&(typeof CanvasGradient<`u`&&n.styles?.stroke instanceof CanvasGradient||!A(n.styles?.stroke))?n.styles?.stroke:o?.stroke;if(r&&![`none`].includes(r)){let n=e.globalAlpha,i=Number(o?.strokeOpacity);Number(o?.opacity),!isNaN(i)&&i!==1&&(e.globalAlpha*=i),e.lineWidth=typeof o?.strokeWidth==`string`?Number(o?.strokeWidth?.replace(`px`,``)):o?.strokeWidth??1,e.strokeStyle=r,t.stroke(e),e.globalAlpha=n}}}function R(e,t,n={}){let r=new Path2D(t??``);L(e,{fill:e=>e.fill(r),stroke:e=>e.stroke(r)},n)}function z(e,t,n,r={}){t&&L(e,{fill:e=>e.fillText(t.toString(),n.x,n.y),stroke:e=>e.strokeText(t.toString(),n.x,n.y)},r,{applyText:!0})}function B(e,t,n={}){let{x:r,y:i,width:a,height:o,corners:s}=t,c=t.rx??0,l=t.ry??c;if(!(s&&!s.every(e=>e===s[0]))&&c===0&&l===0&&!s){L(e,{fill:e=>e.fillRect(r,i,a,o),stroke:e=>e.strokeRect(r,i,a,o)},n);return}if(typeof e.roundRect==`function`){e.beginPath(),e.roundRect(r,i,a,o,s??[c,l]),L(e,{fill:e=>e.fill(),stroke:e=>e.stroke()},n),e.closePath();return}if(s){R(e,T(r,i,a,o,s),n);return}let u=Math.min(c,a/2),d=Math.min(l,o/2);R(e,[`M${r+u},${i}`,`h${a-2*u}`,`a${u},${d} 0 0 1 ${u},${d}`,`v${o-2*d}`,`a${u},${d} 0 0 1 ${-u},${d}`,`h${2*u-a}`,`a${u},${d} 0 0 1 ${-u},${-d}`,`v${2*d-o}`,`a${u},${d} 0 0 1 ${u},${-d}`,`z`].join(` `),n)}function V(e,t,n={}){e.beginPath(),e.arc(t.cx,t.cy,t.r,0,2*Math.PI),L(e,{fill:e=>{e.fill()},stroke:e=>{e.stroke()}},n),e.closePath()}function H(e,t,n){let r=typeof window<`u`&&window.devicePixelRatio||1;return e.canvas.width=t*r,e.canvas.height=n*r,e.canvas.style.width=`${t}px`,e.canvas.style.height=`${n}px`,e.scale(r,r),{width:e.canvas.width,height:e.canvas.height}}function U(e,t,n){let r=(typeof window<`u`?window.devicePixelRatio:null)??1,[i,a,o,s]=e.getImageData(t*r,n*r,1,1).data;return{r:i,g:a,b:o,a:s}}function W(e,t,n,r,i,a){let o=e.createLinearGradient(t,n,r,i);for(let{offset:e,color:t}of a)o.addColorStop(e,t);return o}var G=w(W,{cacheKey:e=>JSON.stringify(e.slice(1))});function K(e,t,n,r,i){let a=document.createElement(`canvas`),o=a.getContext(`2d`);e.canvas.after(a);let s=(typeof window<`u`?window.devicePixelRatio:1)||1;a.width=Math.max(1,Math.round(t*s)),a.height=Math.max(1,Math.round(n*s)),o.scale(s,s),i&&(o.fillStyle=i,o.fillRect(0,0,t,n));for(let e of r){if(o.save(),e.type===`circle`)V(o,{cx:e.cx,cy:e.cy,r:e.r},{styles:{fill:e.fill,opacity:e.opacity}});else if(e.type===`line`)R(o,e.path,{styles:{stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity}});else if(e.type===`rect`){let t=typeof e.rx==`string`?J(e.rx,e.width):e.rx,n=typeof e.ry==`string`?J(e.ry,e.height):e.ry??t;B(o,{x:e.x,y:e.y,width:e.width,height:e.height,rx:t,ry:n},{styles:{fill:e.fill,opacity:e.opacity}})}o.restore()}let c=e.createPattern(a,`repeat`);if(c){let e=t/a.width,r=n/a.height;c.setTransform(new DOMMatrix([e,0,0,r,0,0]))}return e.canvas.parentElement?.removeChild(a),c}var q=w(K,{cacheKey:e=>JSON.stringify(e.slice(1))});function J(e,t){if(e.endsWith(`%`)){let n=parseFloat(e);return Number.isFinite(n)?t/2*(n/100):0}let n=parseFloat(e);return Number.isFinite(n)?n:0}function Y(e){return typeof e==`string`||typeof e==`function`}function X(...e){return e.some(e=>e!==void 0&&Y(e))}function Z(e,t,n,i=0){if(e==null)return i;if(typeof e==`number`)return e;let a;if(typeof e==`string`)a=r(t,e);else if(typeof e==`function`)a=e(t);else return i;if(n){let e=n(a);return typeof e==`number`&&isFinite(e)?e:i}return typeof a==`number`?a:i}function Q(e,t){if(e!=null){if(typeof e==`number`)return e;if(typeof e==`string`)return r(t,e);if(typeof e==`function`)return e(t)}}function $(e,t,n,r,i=[0,0]){let a=Q(e,n),o=Q(t,n);return a==null||o==null?i:r([a,o])??i}function te(e){return e.startsWith(`#`)||e.includes(`(`)}function ne(e,t,n,...i){if(e!=null){if(typeof e==`function`){let r=e(t,...i);return r==null?void 0:String(n?n(r):r)}if(typeof e==`string`){if(te(e))return e;let i=r(t,e);return i===void 0?e:String(n?n(i):i)}}}function re(e,t,...n){if(e!==void 0)return typeof e==`function`?e(t,...n):e}function ie(r){let i=t(r),a=t(()=>e(i)&&typeof e(i)==`object`?n(e(i)):e(i));return{get current(){return e(a)}}}export{s as C,d as S,O as _,$ as a,w as b,q as c,V as d,R as f,D as g,H as h,Z as i,I as l,z as m,X as n,re as o,B as p,ne as r,G as s,ie as t,U as u,E as v,c as w,u as x,T as y};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{$ as e,Ct as t,D as n,Dt as r,E as i,F as a,G as o,I as s,L as c,O as l,R as u,_t as d,a as f,dt as p,f as m,ft as h,gt as g,i as _,it as v,j as y,k as b,lt as x,m as S,o as C,ot as w,rt as T,s as E,tt as D,v as O,y as k,z as A}from"./D2BnX0Uk.js";import"./xihTtKlq.js";import{t as j}from"./Bd1gDe3Y.js";import{s as M,t as N}from"./DKMlMI4a.js";import{i as P}from"./V9ZjaxiY.js";import{t as F}from"./Dfvzj6n2.js";import{C as I,c as ee,l as L,s as R,x as z}from"./Dh958be7.js";import{t as te}from"./xIq_fFFM.js";import{i as B}from"./CuXAxjvF.js";import{a as V,r as ne}from"./caXkbKD3.js";import{i as H}from"./RobXhXPM.js";import{n as U,r as W,t as G}from"./CPbD8C65.js";import{n as K,t as re}from"./D2AaQUUW.js";import{n as ie,r as ae,t as q}from"./DthYhn6Y.js";import{n as oe}from"./B5KRA4hC.js";import{i as se,n as ce,r as le,t as ue}from"./CO1vUXfR.js";import{t as J}from"./BR2LaRms.js";import{n as de,r as fe,t as pe}from"./CRTcXoMo.js";import{n as me,r as he,t as ge}from"./devYm2ud.js";import{n as _e,r as ve,t as ye}from"./D0Ty6LN0.js";var be=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}},xe=class{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,this._point===0)this._point=1;else{let n=J(this._x0,this._y0),r=J(this._x0,this._y0=(this._y0+t)/2),i=J(e,this._y0),a=J(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...a)}this._x0=e,this._y0=t}};function Se(e){return new be(e,!0)}function Ce(e){return new be(e,!1)}function we(e){return new xe(e)}function Te(e){return e.source}function Ee(e){return e.target}function De(e){let t=Te,n=Ee,r=le,i=se,a=null,o=null,s=re(c);function c(){let c,l=oe.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:K(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:K(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function Oe(){let e=De(we);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}function Y(e,t){this._context=e,this._t=t}Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function ke(e){return new Y(e,.5)}function Ae(e){return new Y(e,0)}function je(e){return new Y(e,1)}var Me=c(`<!> <!>`,1);function Ne(e,t){d(t,!0);let n=_(t,`labelPlacement`,3,`top-right`),r=_(t,`labelXOffset`,3,0),c=_(t,`labelYOffset`,3,0),l=j(),u=h(()=>t.x!=null||t.x1!=null&&t.x2!=null&&t.x1===t.x2),f=h(()=>({x1:t.x1==null?t.x==null?l.xRange[0]:l.xScale(t.x):l.xScale(t.x1),y1:t.y1==null?t.y!=null&&t.x==null?l.yScale(t.y):l.yRange[0]:l.yScale(t.y1),x2:t.x2==null?t.x==null?l.xRange[1]:l.xScale(t.x):l.xScale(t.x2),y2:t.y2==null?t.y==null?l.yRange[1]:l.yScale(t.y):l.yScale(t.y2)})),p=h(()=>!o(u)&&o(f).x1!==o(f).x2&&o(f).y1!==o(f).y2),m=h(()=>{let e=Math.atan2(o(f).y2-o(f).y1,o(f).x2-o(f).x1)*(180/Math.PI);return e>90?e-=180:e<-90&&(e+=180),e}),b=h(()=>{let e=n().includes(`left`),t=n().includes(`right`),i=n().includes(`top`),a=n().includes(`bottom`);if(o(u))return{x:o(f).x1+(e?-r():r()),y:(i?o(f).y2:a?o(f).y1:(o(f).y1-o(f).y2)/2)+([`top`,`bottom-left`,`bottom-right`].includes(n())?-c():c()),dy:-2,textAnchor:e?`end`:t?`start`:`middle`,verticalAnchor:n()===`top`?`end`:n()===`bottom`||i?`start`:a?`end`:`middle`};let s=e?o(f).x1:t?o(f).x2:(o(f).x1+o(f).x2)/2,l=e?o(f).y1:t?o(f).y2:(o(f).y1+o(f).y2)/2,d=n()===`left`?`end`:n()===`right`||e?`start`:t?`end`:`middle`,h=i?`end`:a?`start`:`middle`;if(o(p)){let e=[`left`,`top-right`,`bottom-right`].includes(n())?-1:1,t=i?1:-1,a=e*r(),u=t*c()+2,f=o(m)*Math.PI/180,p=Math.cos(f),g=Math.sin(f);return{x:s,y:l,rotate:o(m),dx:a*p+u*g,dy:a*g-u*p,textAnchor:d,verticalAnchor:h}}return{x:s+([`left`,`top-right`,`bottom-right`].includes(n())?-r():r()),y:l+(i?-c():c()),dy:-2,textAnchor:d,verticalAnchor:h}});var x=Me(),S=v(x);{let e=h(()=>M(`lc-annotation-line`,t.props?.line?.class));i(S,()=>t.Line,(n,r)=>{r(n,C({get x1(){return o(f).x1},get y1(){return o(f).y1},get x2(){return o(f).x2},get y2(){return o(f).y2}},()=>t.props?.line,{get class(){return o(e)}}))})}var T=w(S,2),E=e=>{var n=s(),r=v(n);{let e=h(()=>M(`lc-annotation-line-label`,t.props?.label?.class));i(r,()=>t.Text,(n,r)=>{r(n,C({get value(){return t.label}},()=>o(b),()=>t.props?.label,{get class(){return o(e)}}))})}a(e,n)};y(T,e=>{t.label&&e(E)}),a(e,x),g()}var Pe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fe(e,t){let n=f(t,Pe);Ne(e,C({get Line(){return he},get Text(){return W}},()=>n))}var Ie=new Set([`$$slots`,`$$events`,`$$legacy`]);function Le(e,t){let n=f(t,Ie);Ne(e,C({get Line(){return me},get Text(){return U}},()=>n))}var Re=new Set([`$$slots`,`$$events`,`$$legacy`]);function ze(e,t){let n=f(t,Re);Ne(e,C({get Line(){return ge},get Text(){return G}},()=>n))}var Be=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ve(e,t){d(t,!0);let n=z(),r=f(t,Be);var i=s(),o=v(i),c=e=>{Fe(e,C(()=>r))},l=e=>{Le(e,C(()=>r))},u=e=>{ze(e,C(()=>r))};y(o,e=>{n===`svg`?e(c):n===`canvas`?e(l,1):n===`html`&&e(u,2)}),a(e,i),g()}var He=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ue(e,t){d(t,!0);let n=z(),r=f(t,He);var i=s(),o=v(i),c=e=>{ve(e,C(()=>r))},l=e=>{_e(e,C(()=>r))},u=e=>{ye(e,C(()=>r))};y(o,e=>{n===`svg`?e(c):n===`canvas`?e(l,1):n===`html`&&e(u,2)}),a(e,i),g()}function We(e,t){return Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6}function Ge(e,t){return We(e,t)?``:`M ${e.x} ${e.y} L ${t.x} ${t.y}`}function X(e){return Math.abs(e)<1e-6}function Ke({source:e,target:t,sweep:n}){return n===`horizontal-vertical`?`M ${e.x} ${e.y} L ${t.x} ${e.y} L ${t.x} ${t.y}`:`M ${e.x} ${e.y} L ${e.x} ${t.y} L ${t.x} ${t.y}`}function qe(e){let{radius:t,dx:n,dy:r,source:i,target:a,sweep:o}=e,s=Math.max(0,Math.min(t,Math.abs(n),Math.abs(r)));if(X(s))return Ke(e);let c=Math.sign(n),l=Math.sign(r);if(o===`horizontal-vertical`){let e={x:a.x-s*c,y:i.y},t={x:a.x,y:i.y+s*l};return`M ${i.x} ${i.y} L ${e.x} ${e.y} L ${t.x} ${t.y} L ${a.x} ${a.y}`}{let e={x:i.x,y:a.y-s*l},t={x:i.x+s*c,y:a.y};return`M ${i.x} ${i.y} L ${e.x} ${e.y} L ${t.x} ${t.y} L ${a.x} ${a.y}`}}function Je(e){let{radius:t,dx:n,dy:r,source:i,target:a,sweep:o}=e,s=Math.max(0,Math.min(t,Math.abs(n),Math.abs(r)));if(X(s))return Ke(e);let c=Math.sign(n),l=Math.sign(r);if(o===`horizontal-vertical`){let e={x:a.x-s*c,y:i.y},t={x:a.x,y:i.y+s*l},n=+(c*l>0);return`M ${i.x} ${i.y} L ${e.x} ${e.y} A ${s} ${s} 0 0 ${n} ${t.x} ${t.y} L ${a.x} ${a.y}`}{let e={x:i.x,y:a.y-s*l},t={x:i.x+s*c,y:a.y},n=c*l>0?0:1;return`M ${i.x} ${i.y} L ${e.x} ${e.y} A ${s} ${s} 0 0 ${n} ${t.x} ${t.y} L ${a.x} ${a.y}`}}function Ye({source:e,target:t,dx:n,dy:r,bend:i=22.5}){let a=Math.hypot(n,r),o=i*Math.PI/180;if(Math.abs(o)<1e-6||a<1e-6)return Ge(e,t);let s=a/(2*Math.sin(Math.abs(o))),c=+(Math.abs(i)>90),l=+(i>0);return`M${e.x},${e.y}A${s},${s} 0 ${c} ${l} ${t.x},${t.y}`}var Xe={square:Ke,beveled:qe,rounded:Je,swoop:Ye};function Ze(e){let{source:t,target:n,type:r}=e;if(We(t,n))return``;let i=n.x-t.x,a=n.y-t.y;return r===`straight`||r!==`swoop`&&(X(i)||X(a))?Ge(t,n):(Xe[r]||Xe.square)({...e,dx:i,dy:a})}var Z=`M0,0L0,0`;function Qe({source:e,target:t,sweep:n,curve:r,orientation:i=`horizontal`}){let a=t.x-e.x,o=t.y-e.y;if(i===`vertical`&&n===`none`){let{x:n,y:i}=e,{x:a,y:o}=t;if(r===ke){let e=(i+o)/2;return`M${n},${i}L${n},${e}L${a},${e}L${a},${o}`}if(r===Ae)return`M${n},${i}L${a},${i}L${a},${o}`;if(r===je)return`M${n},${i}L${n},${o}L${a},${o}`}let s=ce().curve(r),c=[],l=X(a)||X(o);if(n===`none`||l?c=[[e.x,e.y],[t.x,t.y]]:n===`horizontal-vertical`?c=[[e.x,e.y],[t.x,e.y],[t.x,t.y]]:n===`vertical-horizontal`&&(c=[[e.x,e.y],[e.x,t.y],[t.x,t.y]]),c.length===2&&X(a)&&X(a))return Z;let u=s(c);return!u||u.includes(`NaN`)?Z:u}function $e(e,t){let n=e.x-Math.PI/2,r=e.y,i=t.x-Math.PI/2,a=t.y,o=Math.cos(n),s=Math.sin(n),c=Math.cos(i),l=Math.sin(i),u=Math.abs(i-n)>Math.PI?+(i<=n):+(i>n);return{sa:n,sr:r,ta:i,tr:a,sc:o,ss:s,tc:c,ts:l,sx:r*o,sy:r*s,tx:a*c,ty:a*l,sweepFlag:u}}function et({source:e,target:t,type:n,radius:r,bend:i=22.5}){let{sr:a,ta:o,tr:s,sc:c,ss:l,tc:u,ts:d,sx:f,sy:p,tx:m,ty:h,sweepFlag:g}=$e(e,t);if(n===`straight`)return`M${f},${p}L${m},${h}`;if(n===`swoop`){let e=m-f,t=h-p,n=Math.hypot(e,t),r=i*Math.PI/180;if(Math.abs(r)<1e-6||n<1e-6)return`M${f},${p}L${m},${h}`;let a=n/(2*Math.sin(Math.abs(r)));return`M${f},${p}A${a},${a} 0 ${+(Math.abs(i)>90)} ${+(i>0)} ${m},${h}`}if(n===`rounded`){let e=.2,t=m-f,n=h-p,r=e*(t+n),i=e*(n-t);return`M${f},${p}C${f+r},${p+i} ${m+i},${h-r} ${m},${h}`}if(n===`square`){if(a<1e-6)return`M${f},${p}L${m},${h}`;let e=(a+s)/2;return`M${f},${p}L${e*c},${e*l}A${e},${e},0,0,${g},${e*u},${e*d}L${m},${h}`}let _=a*u,v=a*d,y=_-f,b=v-p,x=Math.hypot(y,b);if(x<1e-6)return`M${f},${p}L${m},${h}`;let S=Math.abs(s-a)||1,C=Math.max(0,Math.min(r,x,S)),w=y/x,T=b/x,E=Math.sign(s-a)||1;return`M${f},${p}L${_-C*w},${v-C*T}L${_+E*C*u},${v+E*C*d}L${m},${h}`}function tt({source:e,target:t,curve:n}){let{sr:r,tr:i,sc:a,ss:o,tc:s,ts:c,sx:l,sy:u,tx:d,ty:f,sweepFlag:p}=$e(e,t);if((n===Ae||n===je||n===ke)&&r<1e-6)return`M${l},${u}L${d},${f}`;if(n===Ae)return`M${l},${u}A${r},${r},0,0,${p},${r*s},${r*c}L${d},${f}`;if(n===je)return`M${l},${u}L${i*a},${i*o}A${i},${i},0,0,${p},${d},${f}`;if(n===ke){let e=(r+i)/2;return`M${l},${u}L${e*a},${e*o}A${e},${e},0,0,${p},${e*s},${e*c}L${d},${f}`}return n?ue().curve(n)([[e.x,e.y],[t.x,t.y]])??Z:Oe().angle(e=>e.x).radius(e=>e.y)({source:e,target:t})??Z}var Q={x:0,y:0};function $(e){return typeof e==`string`||typeof e==`function`}var nt=new Set(`$$slots.$$events.$$legacy.Path.x1.y1.x2.y2.data.sankey.source.target.x.y.orientation.curve.type.sweep.radius.bend.radial.marker.markerStart.markerMid.markerEnd.motion.pathRef.pathData.class`.split(`.`));function rt(e,t){d(t,!0);let n=j(),r=_(t,`sankey`,3,!1),c=_(t,`type`,3,`d3`),u=_(t,`radius`,3,20),p=_(t,`bend`,3,22.5),m=_(t,`pathRef`,15),x=f(t,nt),S=h(()=>t.radial??n.radial??!1),w=h(()=>t.orientation?t.orientation:r()?`horizontal`:`vertical`),T=h(()=>t.curve?t.curve:o(w)===`horizontal`?Se:Ce),E=h(()=>c()===`d3`?t.sweep??`none`:t.sweep&&t.sweep!==`none`?t.sweep:o(w)===`vertical`?`horizontal-vertical`:`vertical-horizontal`),D=h(()=>$(t.x1)||$(t.y1)||$(t.x2)||$(t.y2)),O=h(()=>!o(D)&&(typeof t.x1==`number`||typeof t.y1==`number`||typeof t.x2==`number`||typeof t.y2==`number`)),k=h(()=>t.source?t.source:r()?e=>({node:e.source,y:e.y0,isSource:!0}):e=>e.source),A=h(()=>t.target?t.target:r()?e=>({node:e.target,y:e.y1,isSource:!1}):e=>e.target),P=h(()=>t.x?t.x:r()?e=>e.isSource?e.node.x1:e.node.x0:o(S)?e=>e.x:e=>o(w)===`horizontal`?e.y:e.x),F=h(()=>t.y?t.y:r()||o(S)?e=>e.y:e=>o(w)===`horizontal`?e.x:e.y),I=h(()=>N(t.x1)),ee=h(()=>N(t.y1)),L=h(()=>N(t.x2)),R=h(()=>N(t.y2)),z=e=>{let r=o(I)(e),i=o(ee)(e),a=o(L)(e),s=o(R)(e),c=typeof t.x1==`string`||typeof t.x1==`function`?n.xScale:null,l=typeof t.y1==`string`||typeof t.y1==`function`?n.yScale:null,u=c&&r!=null?c(r):typeof r==`number`?r:0,d=l&&i!=null?l(i):typeof i==`number`?i:0,f=c&&a!=null?c(a):typeof a==`number`?a:0,p=l&&s!=null?l(s):typeof s==`number`?s:0;return{source:{x:Number.isFinite(u)?u:0,y:Number.isFinite(d)?d:0},target:{x:Number.isFinite(f)?f:0,y:Number.isFinite(p)?p:0}}},te=h(()=>{if(o(O))return{x:typeof t.x1==`number`?t.x1:0,y:typeof t.y1==`number`?t.y1:0};if(!t.data)return Q;try{let e=o(k)(t.data);if(e==null)return Q;let n=o(P)(e),r=o(F)(e);return{x:Number.isFinite(n)?n:0,y:Number.isFinite(r)?r:0}}catch(e){return console.error(`Error accessing source coordinates:`,e,`Data:`,t.data),Q}}),B=h(()=>{if(o(O))return{x:typeof t.x2==`number`?t.x2:100,y:typeof t.y2==`number`?t.y2:100};if(!t.data)return Q;try{let e=o(A)(t.data);if(e==null)return Q;let n=o(P)(e),r=o(F)(e);return{x:Number.isFinite(n)?n:0,y:Number.isFinite(r)?r:0}}catch(e){return console.error(`Error accessing target coordinates:`,e,`Data:`,t.data),Q}});function H(e,n){return t.pathData?t.pathData:o(S)?c()===`d3`?tt({source:e,target:n,curve:o(T)}):et({source:e,target:n,type:c(),radius:u(),bend:p()}):c()===`d3`?Qe({source:e,target:n,sweep:o(E),curve:o(T),orientation:o(w)}):Ze({source:e,target:n,sweep:o(E),type:c(),radius:u(),bend:p()})}let U=h(()=>o(D)?``:H(o(te),o(B))),W=V(t.motion),G=W?{type:W.type,options:{interpolate:ae,...W.options}}:void 0,K=ne(``,()=>o(U),G),re=()=>K.current,ie=h(()=>o(D)?t.data??n.data??[]:[]);function q(e,t){return typeof e==`function`?e(t):e}function oe(e){return q(t.class,e)}let se=h(()=>t.stroke),ce=h(()=>t.fill),le=h(()=>x[`stroke-width`]??t.strokeWidth);var ue=s(),J=v(ue),de=e=>{var r=s(),c=v(r);l(c,17,()=>o(ie),b,(e,r)=>{let c=h(()=>z(o(r))),l=h(()=>q(o(se),o(r))??(n.config.c?n.cGet(o(r)):void 0));var u=s(),d=v(u);{let e=h(()=>H(o(c).source,o(c).target)),n=h(()=>q(o(ce),o(r))),a=h(()=>q(o(le),o(r))),s=h(()=>M(`lc-link`,oe(o(r))));i(d,()=>t.Path,(r,i)=>{i(r,C({get pathData(){return o(e)},get marker(){return t.marker},get markerStart(){return t.markerStart},get markerMid(){return t.markerMid},get markerEnd(){return t.markerEnd}},()=>x,{get stroke(){return o(l)},get fill(){return o(n)},get"stroke-width"(){return o(a)},get class(){return o(s)}}))})}a(e,u)}),a(e,r)},fe=e=>{var n=s(),r=v(n);{let e=h(()=>M(`lc-link`,typeof t.class==`string`?t.class:void 0));i(r,()=>t.Path,(n,r)=>{r(n,C({pathData:re,get marker(){return t.marker},get markerStart(){return t.markerStart},get markerMid(){return t.markerMid},get markerEnd(){return t.markerEnd}},()=>x,{get class(){return o(e)},get pathRef(){return m()},set pathRef(e){m(e)}}))})}a(e,n)};y(J,e=>{o(D)?e(de):e(fe,-1)}),a(e,ue),g()}var it=new Set([`$$slots`,`$$events`,`$$legacy`,`pathRef`]);function at(e,t){d(t,!0);let n=_(t,`pathRef`,15),r=f(t,it);rt(e,C({get Path(){return ie}},()=>r,{get pathRef(){return n()},set pathRef(e){n(e)}})),g()}var ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function st(e,t){let n=f(t,ot);rt(e,C({get Path(){return q}},()=>n))}var ct=new Set([`$$slots`,`$$events`,`$$legacy`,`pathRef`]);function lt(e,t){d(t,!0);let n=z(),r=_(t,`pathRef`,15),i=f(t,ct);var o=s(),c=v(o),l=e=>{at(e,C(()=>i,{get pathRef(){return r()},set pathRef(e){r(e)}}))},u=e=>{st(e,C(()=>i))};y(c,e=>{n===`svg`?e(l):n===`canvas`&&e(u,1)}),a(e,o),g()}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){d(t,!0);let n=z(),r=f(t,ut);var i=s(),o=v(i),c=e=>{W(e,C(()=>r))},l=e=>{U(e,C(()=>r))},u=e=>{G(e,C(()=>r))};y(o,e=>{n===`svg`?e(c):n===`canvas`?e(l,1):n===`html`&&e(u,2)}),a(e,i),g()}var ft=c(`<!> <!> <!>`,1);function pt(e,t){d(t,!0);let n=_(t,`r`,3,4),r=_(t,`labelPlacement`,3,`center`),i=_(t,`labelXOffset`,3,0),s=_(t,`labelYOffset`,3,0),c=j(),l=I(),u=h(()=>{if(l.projection&&typeof t.x==`number`&&typeof t.y==`number`){let[e,n]=l.projection([t.x,t.y])??[0,0];return{x:e,y:n}}return{x:t.x?c.xScale(t.x)+(P(c.xScale)?c.xScale.bandwidth()/2:0):0,y:t.y?c.yScale(t.y)+(P(c.yScale)?c.yScale.bandwidth()/2:0):c.height}}),f=h(()=>{let e=r().includes(`left`)?-1:+!!r().includes(`right`),t=r().includes(`top`)?-1:+!!r().includes(`bottom`),a=Math.hypot(e,t)||1,c=r().includes(`left`)?-1:1,l=r().includes(`top`)?-1:1;return{x:o(u).x+n()*e/a+i()*c,y:o(u).y+n()*t/a+s()*l,dy:-2,textAnchor:r().includes(`left`)?`end`:r().includes(`right`)?`start`:`middle`,verticalAnchor:r().includes(`top`)?`end`:r().includes(`bottom`)?`start`:`middle`}}),p=h(()=>{if(!t.link)return null;let e=r().includes(`left`)?-1:+!!r().includes(`right`),i=r().includes(`top`)?-1:+!!r().includes(`bottom`);if(e===0&&i===0)return null;let a=Math.hypot(e,i);return{source:{x:o(u).x+n()*e/a,y:o(u).y+n()*i/a},target:{x:o(f).x,y:o(f).y}}}),m=h(()=>typeof t.link==`object`?t.link:{});function b(e){t.details&&(e.stopPropagation(),c.tooltip.show(e,{annotation:{label:t.label,details:t.details}}))}function x(e){t.details&&(e.stopPropagation(),c.tooltip.hide())}var S=ft(),T=v(S);{let e=h(()=>M(`lc-annotation-point`,t.link&&`lc-annotation-point-ring`,t.props?.circle?.class));Ue(T,C({get cx(){return o(u).x},get cy(){return o(u).y},get r(){return n()},onpointermove:b,onmousemove:b,ontouchmove:b,onpointerleave:x,onmouseleave:x,ontouchend:x},()=>t.props?.circle,{get class(){return o(e)}}))}var E=w(T,2),D=e=>{{let t=h(()=>M(`lc-annotation-point-link`,typeof o(m).class==`string`?o(m).class:void 0));lt(e,C({get x1(){return o(p).source.x},get y1(){return o(p).source.y},get x2(){return o(p).target.x},get y2(){return o(p).target.y},type:`straight`},()=>o(m),{get class(){return o(t)}}))}};y(E,e=>{o(p)&&e(D)});var O=w(E,2),k=e=>{{let n=h(()=>M(`lc-annotation-point-label`,t.props?.label?.class));dt(e,C({get value(){return t.label}},()=>o(f),()=>t.props?.label,{get class(){return o(n)}}))}};y(O,e=>{t.label&&e(k)}),a(e,S),g()}var mt=c(`<!> <!> <!> <!>`,1);function ht(e,t){d(t,!0);let n=_(t,`labelPlacement`,3,`center`),r=_(t,`labelXOffset`,3,0),c=_(t,`labelYOffset`,3,0),l=j(),u=h(()=>{let e=t.x?.[0]!=null,n=t.x?.[1]!=null,r=e?l.xScale(t.x[0]):l.xRange[0],i=n?l.xScale(t.x[1]):l.xRange[1],a=t.y?.[0]==null?l.yRange[0]:l.yScale(t.y[0]),o=t.y?.[1]==null?l.yRange[1]:l.yScale(t.y[1]),s=P(l.xScale)?l.xScale.padding()*l.xScale.step()/2:0,c=P(l.xScale)?l.xScale.step():0,u=r<=i?e:n,d=r<=i?n:e,f=Math.min(r,i)-(u?s:0),p=Math.max(r,i)+(d?c-s:0);return{x:f,y:Math.min(a,o),width:p-f,height:Math.abs(o-a)}}),f=h(()=>({x:((n().includes(`left`)?o(u).x:n().includes(`right`)?(o(u).x??0)+o(u).width:(o(u).x??0)+o(u).width/2)??0)+(n().includes(`right`)?-r():r()),y:((n().includes(`top`)?o(u).y:n().includes(`bottom`)?(o(u).y??0)+o(u).height:(o(u).y??0)+o(u).height/2)??0)+(n().includes(`bottom`)?-c():c()),dy:-2,textAnchor:n().includes(`left`)?`start`:n().includes(`right`)?`end`:`middle`,verticalAnchor:n().includes(`top`)?`start`:n().includes(`bottom`)?`end`:`middle`}));var p=mt(),m=v(p),b=e=>{var n=s(),r=v(n);{let e=h(()=>M(`lc-annotation-range`,t.props?.rect?.class,t.class));i(r,()=>t.Rect,(n,r)=>{r(n,C(()=>o(u),()=>t.props?.rect,{get fill(){return t.fill},get class(){return o(e)}}))})}a(e,n)};y(m,e=>{(t.fill||t.class)&&e(b)});var x=w(m,2),S=e=>{var n=s(),r=v(n);{let e=(e,n)=>{let r=()=>(n?.()).gradient;var c=s(),l=v(c);i(l,()=>t.Rect,(e,n)=>{n(e,C(()=>o(u),()=>t.props?.rect,{get fill(){return r()}}))}),a(e,c)};i(r,()=>t.LinearGradient,(n,r)=>{r(n,C(()=>t.gradient,{children:e,$$slots:{default:!0}}))})}a(e,n)};y(x,e=>{t.gradient&&e(S)});var T=w(x,2),E=e=>{var n=s(),r=v(n);{let e=(e,n)=>{let r=()=>(n?.()).pattern;var c=s(),l=v(c);i(l,()=>t.Rect,(e,n)=>{n(e,C(()=>o(u),()=>t.props?.rect,{get fill(){return r()}}))}),a(e,c)};i(r,()=>t.Pattern,(n,r)=>{r(n,C(()=>t.pattern,{children:e,$$slots:{default:!0}}))})}a(e,n)};y(T,e=>{t.pattern&&e(E)});var D=w(T,2),O=e=>{var n=s(),r=v(n);{let e=h(()=>M(`lc-annotation-range-label`,t.props?.label?.class));i(r,()=>t.Text,(n,r)=>{r(n,C({get value(){return t.label}},()=>o(f),()=>t.props?.label,{get class(){return o(e)}}))})}a(e,n)};y(D,e=>{t.label&&e(O)}),a(e,p),g()}var gt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`stops`,`vertical`,`x1`,`y1`,`x2`,`y2`,`rotate`,`units`,`ref`,`class`,`stopsContent`,`children`]),_t=u(`<stop></stop>`),vt=u(`<defs><linearGradient><!></linearGradient></defs><!>`,1);function yt(i,c){let u=A();d(c,!0);let C=_(c,`id`,19,()=>B(`linearGradient-`,u)),j=_(c,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),N=_(c,`vertical`,3,!1),P=_(c,`x1`,3,`0%`),F=_(c,`y1`,3,`0%`),I=_(c,`x2`,19,()=>N()?`0%`:`100%`),ee=_(c,`y2`,19,()=>N()?`100%`:`0%`),L=_(c,`units`,3,`objectBoundingBox`),R=_(c,`ref`,15),z=f(c,gt),V=p(void 0);D(()=>{R(o(V))});var ne=vt(),H=v(ne),U=T(H);m(U,e=>({id:C(),x1:P(),y1:F(),x2:I(),y2:ee(),gradientTransform:c.rotate?`rotate(${c.rotate})`:``,gradientUnits:L(),...e}),[()=>te(z,`lc-linear-gradient`)]);var W=T(U),G=e=>{var t=s(),i=v(t);n(i,()=>c.stopsContent??r),a(e,t)},K=t=>{var n=s(),r=v(n);l(r,17,j,b,(t,n,r)=>{var i=s(),l=v(i),u=t=>{var r=_t();e(e=>{S(r,`offset`,o(n)[0]),S(r,`stop-color`,o(n)[1]),O(r,0,e)},[()=>k(M(`lc-linear-gradient-stop`,c.class))]),a(t,r)},d=h(()=>Array.isArray(o(n))),f=t=>{var i=_t();e(e=>{S(i,`offset`,`${r*(100/(j().length-1))}%`),S(i,`stop-color`,o(n)),O(i,0,e)},[()=>k(M(`lc-linear-gradient-stop`,c.class))]),a(t,i)};y(l,e=>{o(d)?e(u):e(f,-1)}),a(t,i)}),a(t,n)};y(W,e=>{c.stopsContent?e(G):j()&&e(K,1)}),t(U),E(U,e=>x(V,e),()=>o(V)),t(H);var re=w(H);n(re,()=>c.children??r,()=>({id:C(),gradient:`url(#${C()})`})),a(i,ne),g()}function bt(e,t,n,r,i,a){let o=[];if(e){let t=Array.isArray(e)?e:e===!0?[{}]:[e];for(let e of t){let t=e.color??`var(--color-surface-content, currentColor)`,n=e.width??1,a=e.opacity??1,s=Math.round(e.rotate??0)%360;s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);let c=``;c=s===0?`
|
|
2
|
+
M 0 0 L ${r} 0
|
|
3
|
+
M 0 ${i} L ${r} ${i}
|
|
4
|
+
`:s===90?`
|
|
5
|
+
M 0 0 L 0 ${i}
|
|
6
|
+
M ${r} 0 L ${r} ${i}
|
|
7
|
+
`:s>0?`
|
|
8
|
+
M 0 ${-i} L ${r*2} ${i}
|
|
9
|
+
M ${-r} ${-i} L ${r} ${i}
|
|
10
|
+
M ${-r} 0 L ${r} ${i*2}
|
|
11
|
+
`:`
|
|
12
|
+
M ${-r} ${i} L ${r} ${-i}
|
|
13
|
+
M ${-r} ${i*2} L ${r*2} ${-i}
|
|
14
|
+
M 0 ${i*2} L ${r*2} 0
|
|
15
|
+
`,o.push({type:`line`,path:c,stroke:t,strokeWidth:n,opacity:a})}}if(t){let e=Array.isArray(t)?t:t===!0?[{}]:[t];for(let t of e){let e=t.color??`var(--color-surface-content, currentColor)`,r=t.opacity??1,i=t.radius??1;t.stagger?o.push({type:`circle`,cx:n/4,cy:n/4,r:i,fill:e,opacity:r},{type:`circle`,cx:n*3/4,cy:n*3/4,r:i,fill:e,opacity:r}):o.push({type:`circle`,cx:n/2,cy:n/2,r:i,fill:e,opacity:r})}}if(a){let e=Array.isArray(a)?a:a===!0?[{}]:[a];for(let t of e){let e=t.inset??0,n=t.color??`var(--color-surface-content, currentColor)`,a=t.opacity??1;o.push({type:`rect`,x:e,y:e,width:Math.max(0,r-2*e),height:Math.max(0,i-2*e),rx:t.rx,ry:t.ry,fill:n,opacity:a})}}return o}var xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`size`,`width`,`height`,`lines`,`circles`,`rects`,`background`,`patternContent`,`children`]),St=u(`<rect></rect>`),Ct=u(`<path fill="none"></path>`),wt=u(`<circle></circle>`),Tt=u(`<!><!><!><!>`,1),Et=u(`<defs><pattern><!></pattern></defs><!>`,1);function Dt(i,c){let u=A();d(c,!0);let p=_(c,`id`,19,()=>B(`pattern-`,u)),x=_(c,`size`,3,4),C=_(c,`width`,19,x),E=_(c,`height`,19,x),D=f(c,xt),O=h(()=>bt(c.lines,c.circles,x(),C(),E(),c.rects));var k=Et(),j=v(k),M=T(j);m(M,e=>({id:p(),width:C(),height:E(),patternUnits:`userSpaceOnUse`,...e}),[()=>te(D,`lc-pattern`)]);var N=T(M),P=e=>{var t=s(),i=v(t);n(i,()=>c.patternContent??r),a(e,t)},F=t=>{var n=Tt(),r=v(n),i=t=>{var n=St();e(()=>{S(n,`width`,C()),S(n,`height`,E()),S(n,`fill`,c.background)}),a(t,n)};y(r,e=>{c.background&&e(i)});var s=w(r);l(s,17,()=>o(O).filter(e=>e.type===`line`),b,(t,n)=>{var r=Ct();e(()=>{S(r,`d`,o(n).path),S(r,`stroke`,o(n).stroke),S(r,`stroke-width`,o(n).strokeWidth),S(r,`opacity`,o(n).opacity)}),a(t,r)});var u=w(s);l(u,17,()=>o(O).filter(e=>e.type===`circle`),b,(t,n)=>{var r=wt();e(()=>{S(r,`cx`,o(n).cx),S(r,`cy`,o(n).cy),S(r,`r`,o(n).r),S(r,`fill`,o(n).fill),S(r,`opacity`,o(n).opacity)}),a(t,r)});var d=w(u);l(d,17,()=>o(O).filter(e=>e.type===`rect`),b,(t,n)=>{var r=St();e(()=>{S(r,`x`,o(n).x),S(r,`y`,o(n).y),S(r,`width`,o(n).width),S(r,`height`,o(n).height),S(r,`rx`,o(n).rx),S(r,`ry`,o(n).ry),S(r,`fill`,o(n).fill),S(r,`opacity`,o(n).opacity)}),a(t,r)}),a(t,n)};y(N,e=>{c.patternContent?e(P):e(F,-1)}),t(M),t(j);var I=w(j);n(I,()=>c.children??r,()=>({id:p(),pattern:`url(#${p()})`})),a(i,k),g()}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=f(t,Ot);ht(e,C({get LinearGradient(){return yt},get Pattern(){return Dt},get Rect(){return fe},get Text(){return W}},()=>n))}var At=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`stops`,`vertical`,`x1`,`y1`,`x2`,`y2`,`class`,`children`]);function jt(e,t){let i=A();d(t,!0);let c=_(t,`id`,19,()=>B(`linearGradient-`,i)),l=_(t,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),u=_(t,`vertical`,3,!1),m=_(t,`x1`,3,`0%`),y=_(t,`y1`,3,`0%`),b=_(t,`x2`,19,()=>u()?`0%`:`100%`),S=_(t,`y2`,19,()=>u()?`100%`:`0%`);f(t,At);let C=j(),w=p(void 0);function T(e){let n=l().map((n,r)=>{if(Array.isArray(n)){let{fill:r}=L(e.canvas,{styles:{fill:n[1]},classes:t.class});return{offset:H(n[0]),color:r}}{let{fill:i}=L(e.canvas,{styles:{fill:n},classes:t.class});return{offset:r/(l().length-1),color:i}}}),r=R(e,C.padding.left,C.padding.top,u()?C.padding.left:C.width-C.padding.right,u()?C.height+C.padding.bottom:C.padding.top,n);x(w,r,!0)}C.registerComponent({name:`Gradient`,kind:`group`,canvasRender:{render:T,deps:()=>[m(),y(),b(),S(),l(),t.class]}});var E=s(),D=v(E);{let e=h(()=>({id:c(),gradient:F(o(w))}));n(D,()=>t.children??r,()=>o(e))}a(e,E),g()}function Mt(e,t){let i=A();d(t,!0);let c=j(),l=_(t,`id`,19,()=>B(`pattern-`,i)),u=_(t,`size`,3,4),f=_(t,`width`,19,u),m=_(t,`height`,19,u),y=h(()=>bt(t.lines,t.circles,u(),f(),m(),t.rects)),b=p(null);function S(e){let n=ee(e,f(),m(),o(y),t.background);x(b,n,!0)}c.registerComponent({name:`Pattern`,kind:`group`,canvasRender:{render:S,deps:()=>[f(),m(),o(y),t.background]}});var C=s(),w=v(C);{let e=h(()=>({id:l(),pattern:F(o(b))}));n(w,()=>t.children??r,()=>o(e))}a(e,C),g()}var Nt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pt(e,t){let n=f(t,Nt);ht(e,C({get LinearGradient(){return jt},get Pattern(){return Mt},get Rect(){return de},get Text(){return U}},()=>n))}function Ft(e,t){let i=A();d(t,!0);let c=_(t,`id`,19,()=>B(`linearGradient-`,i)),l=_(t,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),u=_(t,`vertical`,3,!1);function f(){if(!l()?.length)return``;let e;e=t.rotate===void 0?u()?`to bottom`:`to right`:`${(u()?180:90)+t.rotate}deg`;let n=l().map((e,t)=>Array.isArray(e)?`${e[1]} ${e[0]}`:`${e} ${t*(100/(l().length-1))}%`).join(`, `);return`linear-gradient(${e}, ${n})`}var p=s(),m=v(p);{let e=h(()=>({id:c(),gradient:f()}));n(m,()=>t.children??r,()=>o(e))}a(e,p),g()}function It(e,t){let i=A();d(t,!0);let c=_(t,`id`,19,()=>B(`pattern-`,i)),l=_(t,`size`,3,4),u=_(t,`width`,19,l),f=_(t,`height`,19,l);function p(e,t){return t===1?e:`color-mix(in srgb, ${e} ${t*100}%, transparent)`}function m(){let e=[];if(t.lines){let n=Array.isArray(t.lines)?t.lines:t.lines===!0?[{}]:[t.lines];for(let t of n){let n=p(t.color??`var(--color-surface-content, currentColor)`,t.opacity??1),r=t.width??1,i=Math.round(t.rotate??0)%360;i>180?i-=360:i>90?i-=180:i<-180?i+=360:i<-90&&(i+=180);let a,o;i===0?(a=0,o=f()):i===90?(a=90,o=u()):i>0?(a=45,o=u()*f()/Math.sqrt(u()*u()+f()*f())):(a=135,o=u()*f()/Math.sqrt(u()*u()+f()*f())),e.push(`repeating-linear-gradient(${a}deg, ${n} 0 ${r}px, transparent ${r}px ${o}px)`)}}if(t.circles){let n=Array.isArray(t.circles)?t.circles:t.circles===!0?[{}]:[t.circles];for(let t of n){let n=p(t.color??`var(--color-surface-content, currentColor)`,t.opacity??1),r=t.radius??1;t.stagger?e.push(`radial-gradient(circle at 25% 25%, ${n} ${r}px, transparent ${r}px) 0 0 / ${l()}px ${l()}px`,`radial-gradient(circle at 75% 75%, ${n} ${r}px, transparent ${r}px) 0 0 / ${l()}px ${l()}px`):e.push(`radial-gradient(circle at center, ${n} ${r}px, transparent ${r}px) 0 0 / ${l()}px ${l()}px`)}}let n=t.background!=null&&/gradient\(|url\(/i.test(t.background);return n&&e.push(`${t.background} 0 0 / ${u()}px ${f()}px`),e.length===0?t.background??`transparent`:!n&&t.background?`${e.join(`, `)}, ${t.background}`:e.join(`, `)}var y=s(),b=v(y);{let e=h(()=>({id:c(),pattern:m()}));n(b,()=>t.children??r,()=>o(e))}a(e,y),g()}var Lt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Rt(e,t){let n=f(t,Lt);ht(e,C({get LinearGradient(){return Ft},get Pattern(){return It},get Rect(){return pe},get Text(){return G}},()=>n))}var zt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Bt(e,t){d(t,!0);let n=z(),r=f(t,zt);var i=s(),o=v(i),c=e=>{kt(e,C(()=>r))},l=e=>{Pt(e,C(()=>r))},u=e=>{Rt(e,C(()=>r))};y(o,e=>{n===`svg`?e(c):n===`canvas`?e(l,1):n===`html`&&e(u,2)}),a(e,i),g()}function Vt(e,t){d(t,!0);let n=j(),r=h(()=>t.annotations.filter(e=>(e.layer===t.layer||e.layer==null&&t.layer===`above`)&&(n.series.highlightKey==null||e.seriesKey==null||e.seriesKey===n.series.highlightKey)&&n.series.visibleSeries.some(t=>e.seriesKey==null||e.seriesKey===t.key)));var i=s(),c=v(i);l(c,17,()=>o(r),b,(e,t)=>{var n=s(),r=v(n),i=e=>{pt(e,C(()=>o(t)))},c=e=>{Ve(e,C(()=>o(t)))},l=e=>{Bt(e,C(()=>o(t)))};y(r,e=>{o(t).type===`point`?e(i):o(t).type===`line`?e(c,1):o(t).type===`range`&&e(l,2)}),a(e,n)}),a(e,i),g()}export{Vt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as e}from"./Bd1gDe3Y.js";function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}function*a(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var o=n(e),s=o.right;o.left,n(i).center;var c=Math.sqrt(50),l=Math.sqrt(10),u=Math.sqrt(2);function d(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=c?10:a>=l?5:a>=u?2:1,s,f,p;return i<0?(p=10**-i/o,s=Math.round(e*p),f=Math.round(t*p),s/p<e&&++s,f/p>t&&--f,p=-p):(p=10**i*o,s=Math.round(e/p),f=Math.round(t/p),s*p<e&&++s,f*p>t&&--f),f<s&&.5<=n&&n<2?d(e,t,n*2):[s,f,p]}function f(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?d(t,e,n):d(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function p(e,t,n){return t=+t,e=+e,n=+n,d(e,t,n)[2]}function m(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?p(t,e,n):p(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function h(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function g(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}var y=.7,b=1/y,x=`\\s*([+-]?\\d+)\\s*`,S=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,C=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,w=/^#([0-9a-f]{3,8})$/,T=RegExp(`^rgb\\(${x},${x},${x}\\)$`),E=RegExp(`^rgb\\(${C},${C},${C}\\)$`),ee=RegExp(`^rgba\\(${x},${x},${x},${S}\\)$`),te=RegExp(`^rgba\\(${C},${C},${C},${S}\\)$`),ne=RegExp(`^hsl\\(${S},${C},${C}\\)$`),re=RegExp(`^hsla\\(${S},${C},${C},${S}\\)$`),ie={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};g(v,O,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ae,formatHex:ae,formatHex8:oe,formatHsl:se,formatRgb:D,toString:D});function ae(){return this.rgb().formatHex()}function oe(){return this.rgb().formatHex8()}function se(){return pe(this).formatHsl()}function D(){return this.rgb().formatRgb()}function O(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=w.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?k(t):n===3?new M(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?A(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?A(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=T.exec(e))?new M(t[1],t[2],t[3],1):(t=E.exec(e))?new M(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ee.exec(e))?A(t[1],t[2],t[3],t[4]):(t=te.exec(e))?A(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ne.exec(e))?fe(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?fe(t[1],t[2]/100,t[3]/100,t[4]):ie.hasOwnProperty(e)?k(ie[e]):e===`transparent`?new M(NaN,NaN,NaN,0):null}function k(e){return new M(e>>16&255,e>>8&255,e&255,1)}function A(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function ce(e){return e instanceof v||(e=O(e)),e?(e=e.rgb(),new M(e.r,e.g,e.b,e.opacity)):new M}function j(e,t,n,r){return arguments.length===1?ce(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g(M,j,_(v,{brighter(e){return e=e==null?b:b**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new M(P(this.r),P(this.g),P(this.b),N(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:le,formatHex:le,formatHex8:ue,formatRgb:de,toString:de}));function le(){return`#${F(this.r)}${F(this.g)}${F(this.b)}`}function ue(){return`#${F(this.r)}${F(this.g)}${F(this.b)}${F((isNaN(this.opacity)?1:this.opacity)*255)}`}function de(){let e=N(this.opacity);return`${e===1?`rgb(`:`rgba(`}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${e===1?`)`:`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function F(e){return e=P(e),(e<16?`0`:``)+e.toString(16)}function fe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function pe(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=O(e)),!e)return new I;if(e instanceof I)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,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function me(e,t,n,r){return arguments.length===1?pe(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g(I,me,_(v,{brighter(e){return e=e==null?b:b**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?y:y**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){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 M(z(e>=240?e-240:e+120,i,r),z(e,i,r),z(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(L(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${e===1?`hsl(`:`hsla(`}${L(this.h)}, ${R(this.s)*100}%, ${R(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function L(e){return e=(e||0)%360,e<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function z(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var B=e=>()=>e;function he(e,t){return function(n){return e+n*t}}function ge(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _e(e){return(e=+e)==1?ve:function(t,n){return n-t?ge(t,n,e):B(isNaN(t)?n:t)}}function ve(e,t){var n=t-e;return n?he(e,n):B(isNaN(e)?t:e)}var ye=(function e(t){var n=_e(t);function r(e,t){var r=n((e=j(e)).r,(t=j(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function be(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Se(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=W(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Ce(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function V(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function we(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=W(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U=new RegExp(H.source,`g`);function Te(e){return function(){return e}}function Ee(e){return function(t){return e(t)+``}}function De(e,t){var n=H.lastIndex=U.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=H.exec(e))&&(i=U.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,c.push({i:o,x:V(r,i)})),n=U.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Ee(c[0].x):Te(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function W(e,t){var n=typeof t,r;return t==null||n===`boolean`?B(t):(n===`number`?V:n===`string`?(r=O(t))?(t=r,ye):De:t instanceof O?ye:t instanceof Date?Ce:xe(t)?be:Array.isArray(t)?Se:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?we:V)(e,t)}function Oe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ke(e){return function(){return e}}function Ae(e){return+e}var je=[0,1];function G(e){return e}function K(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ke(isNaN(t)?NaN:.5)}function Me(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Ne(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=K(i,r),a=n(o,a)):(r=K(r,i),a=n(a,o)),function(e){return a(r(e))}}function Pe(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=K(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=s(e,t,1,r)-1;return a[n](i[n](t))}}function Fe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ie(){var e=je,t=je,n=W,r,i,a,o=G,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==G&&(o=Me(e[0],e[n-1])),s=n>2?Pe:Ne,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),V))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Ae),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Oe,u()},d.clamp=function(e){return arguments.length?(o=e?!0:G,u()):o!==G},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Le(){return Ie()(G,G)}function Re(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function q(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function J(e){return e=q(Math.abs(e)),e?e[1]:NaN}function ze(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Be(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y(e){if(!(t=Ve.exec(e)))throw Error(`invalid format: `+e);var t;return new X({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]})}Y.prototype=X.prototype;function X(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+``}X.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 He(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Z;function Ue(e,t){var n=q(e,t);if(!n)return Z=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Z=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+q(e,Math.max(0,t+a-1))[0]}function We(e,t){var n=q(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ge={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Re,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)=>We(e*100,t),r:We,s:Ue,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Q(e){return e}var Ke=Array.prototype.map,qe=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Je(e){var t=e.grouping===void 0||e.thousands===void 0?Q:ze(Ke.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?Q:Be(Ke.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Y(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Ge[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Ge[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=He(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Z!==void 0?qe[8+Z/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3,r=10**-n,i=l((e=Y(e),e.type=`f`,e),{suffix:qe[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var $,Ye,Xe;Ze({thousands:`,`,grouping:[3],currency:[`$`,``]});function Ze(e){return $=Je(e),Ye=$.format,Xe=$.formatPrefix,$}function Qe(e){return Math.max(0,-J(Math.abs(e)))}function $e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(J(t)/3)))*3-J(Math.abs(e)))}function et(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,J(t)-J(e))+1}function tt(e,t,n,r){var i=m(e,t,n),a;switch(r=Y(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=$e(i,o))&&(r.precision=a),Xe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=et(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Qe(i))&&(r.precision=a-(r.type===`%`)*2)}return Ye(r)}function nt(e){var t=e.domain;return e.ticks=function(e){var n=t();return f(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return tt(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=p(o,s,n),l===c)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;c=l}return e},e}function rt(){var e=Le();return e.copy=function(){return Fe(e,rt())},h.apply(e,arguments),nt(e)}export{G as a,W as c,m as d,a as f,Fe as i,j as l,nt as n,Ie as o,n as p,Le as r,Oe as s,rt as t,h as u};
|