h2o-wave 0.25.1__py3-none-manylinux1_x86_64.whl → 0.25.2__py3-none-manylinux1_x86_64.whl

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.

Potentially problematic release.


This version of h2o-wave might be problematic. Click here for more details.

Files changed (67) hide show
  1. h2o_wave/server.py +21 -8
  2. h2o_wave/version.py +1 -1
  3. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/waved +0 -0
  4. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/index.html +2 -2
  5. h2o_wave-0.25.1.data/data/www/wave-static/LocalizationProvider-791c84a4.js → h2o_wave-0.25.2.data/data/www/wave-static/LocalizationProvider-37783156.js +1 -1
  6. h2o_wave-0.25.1.data/data/www/wave-static/LocalizationProvider-legacy-aa8cc478.js → h2o_wave-0.25.2.data/data/www/wave-static/LocalizationProvider-legacy-96f60a66.js +1 -1
  7. h2o_wave-0.25.1.data/data/www/wave-static/Paper-fd23f413.js → h2o_wave-0.25.2.data/data/www/wave-static/Paper-4d147184.js +1 -1
  8. h2o_wave-0.25.1.data/data/www/wave-static/Paper-legacy-550282b4.js → h2o_wave-0.25.2.data/data/www/wave-static/Paper-legacy-121b08d0.js +1 -1
  9. h2o_wave-0.25.1.data/data/www/wave-static/index-63586f9a.js → h2o_wave-0.25.2.data/data/www/wave-static/index-3c25791d.js +1 -1
  10. h2o_wave-0.25.1.data/data/www/wave-static/index-00a392ce.js → h2o_wave-0.25.2.data/data/www/wave-static/index-48ed503e.js +1 -1
  11. h2o_wave-0.25.2.data/data/www/wave-static/index-529168e3.js +1 -0
  12. h2o_wave-0.25.1.data/data/www/wave-static/index-9fe5cfc3.js → h2o_wave-0.25.2.data/data/www/wave-static/index-98d98a8e.js +3 -3
  13. h2o_wave-0.25.1.data/data/www/wave-static/index-e58cf482.js → h2o_wave-0.25.2.data/data/www/wave-static/index-c3265590.js +1 -1
  14. h2o_wave-0.25.1.data/data/www/wave-static/index-682349f7.js → h2o_wave-0.25.2.data/data/www/wave-static/index-e8d47765.js +1 -1
  15. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-36514a26.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-0ee9233a.js +1 -1
  16. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-80452473.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-2d3fc744.js +1 -1
  17. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-cbdef2e3.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-8a2eff9d.js +1 -1
  18. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-a2eccf8a.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-becb296d.js +1 -1
  19. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-7de39754.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-c5ead357.js +1 -1
  20. h2o_wave-0.25.1.data/data/www/wave-static/index-legacy-b5f51a1c.js → h2o_wave-0.25.2.data/data/www/wave-static/index-legacy-ed0338c4.js +1 -1
  21. h2o_wave-0.25.1.data/data/www/wave-static/useThemeProps-4c07ccd3.js → h2o_wave-0.25.2.data/data/www/wave-static/useThemeProps-fea5f4d7.js +1 -1
  22. h2o_wave-0.25.1.data/data/www/wave-static/useThemeProps-legacy-59cea0af.js → h2o_wave-0.25.2.data/data/www/wave-static/useThemeProps-legacy-a789ba38.js +1 -1
  23. h2o_wave-0.25.1.data/data/www/wave-static/vega-embed.module-e67823b9.js → h2o_wave-0.25.2.data/data/www/wave-static/vega-embed.module-7711e462.js +1 -1
  24. h2o_wave-0.25.1.data/data/www/wave-static/vega-embed.module-legacy-178a3b56.js → h2o_wave-0.25.2.data/data/www/wave-static/vega-embed.module-legacy-5d1c4396.js +1 -1
  25. h2o_wave-0.25.1.data/data/www/wave-static/vega.module-a696f830.js → h2o_wave-0.25.2.data/data/www/wave-static/vega.module-5ec44502.js +1 -1
  26. h2o_wave-0.25.1.data/data/www/wave-static/vega.module-legacy-f95e6434.js → h2o_wave-0.25.2.data/data/www/wave-static/vega.module-legacy-f9b103ce.js +1 -1
  27. {h2o_wave-0.25.1.dist-info → h2o_wave-0.25.2.dist-info}/METADATA +1 -1
  28. h2o_wave-0.25.2.dist-info/RECORD +78 -0
  29. {h2o_wave-0.25.1.dist-info → h2o_wave-0.25.2.dist-info}/WHEEL +1 -1
  30. h2o_wave-0.25.1.data/data/www/wave-static/index-8fcb8163.js +0 -1
  31. h2o_wave-0.25.1.dist-info/RECORD +0 -78
  32. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/README.md +0 -0
  33. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/header.py +0 -0
  34. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/header_nav.py +0 -0
  35. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/header_sidebar_nav.py +0 -0
  36. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/hello_world.py +0 -0
  37. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/project_templates/sidebar_nav.py +0 -0
  38. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/favicon.ico +0 -0
  39. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/logo192.png +0 -0
  40. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/logo512.png +0 -0
  41. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/manifest.json +0 -0
  42. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/robots.txt +0 -0
  43. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Black-8b21d5be.woff +0 -0
  44. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Black-fc10113c.woff2 +0 -0
  45. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Bold-3e242080.woff +0 -0
  46. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Bold-c63158ba.woff2 +0 -0
  47. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-ExtraBold-307d9809.woff2 +0 -0
  48. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-ExtraBold-f053602c.woff +0 -0
  49. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-ExtraLight-015dad27.woff +0 -0
  50. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-ExtraLight-b6cd094a.woff2 +0 -0
  51. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Light-36b86832.woff2 +0 -0
  52. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Light-4871aed0.woff +0 -0
  53. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Medium-1b498b95.woff2 +0 -0
  54. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Medium-53deda46.woff +0 -0
  55. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Regular-d612f121.woff2 +0 -0
  56. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Regular-ef1f23c0.woff +0 -0
  57. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-SemiBold-15226129.woff2 +0 -0
  58. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-SemiBold-653fed7a.woff +0 -0
  59. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Thin-77d96c1c.woff2 +0 -0
  60. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/Inter-Thin-e6bced8e.woff +0 -0
  61. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/index-17424b44.js +0 -0
  62. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/index-ac9b477c.css +0 -0
  63. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/index-legacy-7034fa46.js +0 -0
  64. {h2o_wave-0.25.1.data → h2o_wave-0.25.2.data}/data/www/wave-static/polyfills-legacy-d6764e4c.js +0 -0
  65. {h2o_wave-0.25.1.dist-info → h2o_wave-0.25.2.dist-info}/LICENSE +0 -0
  66. {h2o_wave-0.25.1.dist-info → h2o_wave-0.25.2.dist-info}/entry_points.txt +0 -0
  67. {h2o_wave-0.25.1.dist-info → h2o_wave-0.25.2.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{c as Es,a as ev,b as rv,_ as ai,d as T,t as iv,i as Bs,e as nv,f as vt,g as y,h as ct}from"./index-9fe5cfc3.js";const Ln=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Jt},get Circle(){return jx},get Ellipse(){return Zx},get Image(){return Kx},get Line(){return t1},get Marker(){return i1},get Path(){return us},get Polygon(){return f1},get Polyline(){return p1},get Rect(){return m1},get Text(){return w1}},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return jt},get Circle(){return B1},get Dom(){return k1},get Ellipse(){return F1},get Image(){return D1},get Line(){return Y1},get Marker(){return H1},get Path(){return X1},get Polygon(){return N1},get Polyline(){return _1},get Rect(){return j1},get Text(){return J1}},Symbol.toStringTag,{value:"Module"}));function av(i){return+i}function ov(i){return i*i}function sv(i){return i*(2-i)}function Is(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var xo=3,lv=function i(r){r=+r;function t(e){return Math.pow(e,r)}return t.exponent=i,t}(xo),hv=function i(r){r=+r;function t(e){return 1-Math.pow(1-e,r)}return t.exponent=i,t}(xo),ks=function i(r){r=+r;function t(e){return((e*=2)<=1?Math.pow(e,r):2-Math.pow(2-e,r))/2}return t.exponent=i,t}(xo),Qh=Math.PI,Kh=Qh/2;function uv(i){return+i==1?1:1-Math.cos(i*Kh)}function cv(i){return Math.sin(i*Kh)}function Ps(i){return(1-Math.cos(Qh*i))/2}function De(i){return(Math.pow(2,-10*i)-.0009765625)*1.0009775171065494}function fv(i){return De(1-+i)}function vv(i){return 1-De(i)}function Fs(i){return((i*=2)<=1?De(1-i):2-De(i-1))/2}function pv(i){return 1-Math.sqrt(1-i*i)}function gv(i){return Math.sqrt(1- --i*i)}function Os(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Da=4/11,dv=6/11,yv=8/11,mv=3/4,xv=9/11,wv=10/11,Cv=15/16,Mv=21/22,Sv=63/64,Fi=1/Da/Da;function Av(i){return 1-oi(1-i)}function oi(i){return(i=+i)<Da?Fi*i*i:i<yv?Fi*(i-=dv)*i+mv:i<wv?Fi*(i-=xv)*i+Cv:Fi*(i-=Mv)*i+Sv}function bv(i){return((i*=2)<=1?1-oi(1-i):oi(i-1)+1)/2}var wo=1.70158,Tv=function i(r){r=+r;function t(e){return(e=+e)*e*(r*(e-1)+e)}return t.overshoot=i,t}(wo),Lv=function i(r){r=+r;function t(e){return--e*e*((e+1)*r+e)+1}return t.overshoot=i,t}(wo),Ds=function i(r){r=+r;function t(e){return((e*=2)<1?e*e*((r+1)*e-r):(e-=2)*e*((r+1)*e+r)+2)/2}return t.overshoot=i,t}(wo),Sr=2*Math.PI,Co=1,Mo=.3,Ev=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return r*De(- --a)*Math.sin((e-a)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Rs=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return 1-r*De(a=+a)*Math.sin((a+e)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Bv=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return((a=a*2-1)<0?r*De(-a)*Math.sin((e-a)/t):2-r*De(a)*Math.sin((e+a)/t))/2}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo);const Ys=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Ds,easeBackIn:Tv,easeBackInOut:Ds,easeBackOut:Lv,easeBounce:oi,easeBounceIn:Av,easeBounceInOut:bv,easeBounceOut:oi,easeCircle:Os,easeCircleIn:pv,easeCircleInOut:Os,easeCircleOut:gv,easeCubic:Es,easeCubicIn:ev,easeCubicInOut:Es,easeCubicOut:rv,easeElastic:Rs,easeElasticIn:Ev,easeElasticInOut:Bv,easeElasticOut:Rs,easeExp:Fs,easeExpIn:fv,easeExpInOut:Fs,easeExpOut:vv,easeLinear:av,easePoly:ks,easePolyIn:lv,easePolyInOut:ks,easePolyOut:hv,easeQuad:Is,easeQuadIn:ov,easeQuadInOut:Is,easeQuadOut:sv,easeSin:Ps,easeSinIn:uv,easeSinInOut:Ps,easeSinOut:cv},Symbol.toStringTag,{value:"Module"}));var Ht=function(i){return i!==null&&typeof i!="function"&&isFinite(i.length)},je=function(i,r){return Ht(i)?i.indexOf(r)>-1:!1},Vt=function(i,r){if(!Ht(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];r(n,e)&&t.push(n)}return t},Iv=function(i,r){return r===void 0&&(r=[]),Vt(i,function(t){return!je(r,t)})},kv={}.toString,ar=function(i,r){return kv.call(i)==="[object "+r+"]"};const R=function(i){return ar(i,"Function")};var E=function(i){return i==null};const I=function(i){return Array.isArray?Array.isArray(i):ar(i,"Array")},Q=function(i){var r=typeof i;return i!==null&&r==="object"||r==="function"};function M(i,r){if(i){var t;if(I(i))for(var e=0,n=i.length;e<n&&(t=r(i[e],e),t!==!1);e++);else if(Q(i)){for(var a in i)if(i.hasOwnProperty(a)&&(t=r(i[a],a),t===!1))break}}}var Ci=Object.keys?function(i){return Object.keys(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(e)}),r};function Pv(i,r){var t=Ci(r),e=t.length;if(E(i))return!e;for(var n=0;n<e;n+=1){var a=t[n];if(r[a]!==i[a]||!(a in i))return!1}return!0}var Ra=function(i){return typeof i=="object"&&i!==null},ne=function(i){if(!Ra(i)||!ar(i,"Object"))return!1;if(Object.getPrototypeOf(i)===null)return!0;for(var r=i;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(i)===r};function pe(i,r){if(!I(i))return null;var t;if(R(r)&&(t=r),ne(r)&&(t=function(n){return Pv(n,r)}),t){for(var e=0;e<i.length;e+=1)if(t(i[e]))return i[e]}return null}var Fv=function(i,r){for(var t=null,e=0;e<i.length;e++){var n=i[e],a=n[r];if(!E(a)){I(a)?t=a[0]:t=a;break}}return t},Xt=function(i){if(!I(i))return[];for(var r=[],t=0;t<i.length;t++)r=r.concat(i[t]);return r};const Yt=function(i){if(I(i))return i.reduce(function(r,t){return Math.max(r,t)},i[0])},$t=function(i){if(I(i))return i.reduce(function(r,t){return Math.min(r,t)},i[0])};var Ov=function(i){var r=i.filter(function(o){return!isNaN(o)});if(!r.length)return{min:0,max:0};if(I(i[0])){for(var t=[],e=0;e<i.length;e++)t=t.concat(i[e]);r=t}var n=Yt(r),a=$t(r);return{min:a,max:n}},Dv=Array.prototype.splice,Rv=function(r,t){if(!Ht(r))return[];for(var e=r?t.length:0,n=e-1;e--;){var a=void 0,o=t[e];(e===n||o!==a)&&(a=o,Dv.call(r,o,1))}return r},Jh=function(i,r,t){if(!I(i)&&!ne(i))return i;var e=t;return M(i,function(n,a){e=r(e,n,a)}),e},Yv=function(i,r){var t=[];if(!Ht(i))return t;for(var e=-1,n=[],a=i.length;++e<a;){var o=i[e];r(o,e,i)&&(t.push(o),n.push(e))}return Rv(i,n),t};const H=function(i){return ar(i,"String")};function tu(i,r){r===void 0&&(r=new Map);var t=[];if(Array.isArray(i))for(var e=0,n=i.length;e<n;e++){var a=i[e];r.has(a)||(t.push(a),r.set(a,!0))}return t}const ge=function(i,r){for(var t=[],e={},n=0;n<i.length;n++){var a=i[n],o=a[r];if(!E(o)){I(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];e[l]||(t.push(l),e[l]=!0)}}}return t};function Gt(i){if(Ht(i))return i[0]}function pt(i){if(Ht(i)){var r=i;return r[r.length-1]}}var Gv=function(i,r){for(var t=0;t<i.length;t++)if(!r(i[t],t))return!1;return!0},Bn=function(i,r){for(var t=0;t<i.length;t++)if(r(i[t],t))return!0;return!1},Hv=Object.prototype.hasOwnProperty;function He(i,r){if(!r||!I(i))return{};for(var t={},e=R(r)?r:function(s){return s[r]},n,a=0;a<i.length;a++){var o=i[a];n=e(o),Hv.call(t,n)?t[n].push(o):t[n]=[o]}return t}function eu(i,r){if(!r)return{0:i};if(!R(r)){var t=I(r)?r:r.replace(/\s+/g,"").split("*");r=function(e){for(var n="_",a=0,o=t.length;a<o;a++)n+=e[t[a]]&&e[t[a]].toString();return n}}return He(i,r)}const Vv=function(i,r){if(!r)return[i];var t=eu(i,r),e=[];for(var n in t)e.push(t[n]);return e};var J=function(i,r,t){return i<r?r:i>t?t:i},ha=function(i,r){var t=r.toString(),e=t.indexOf(".");if(e===-1)return Math.round(i);var n=t.substr(e+1).length;return n>20&&(n=20),parseFloat(i.toFixed(n))},W=function(i){return ar(i,"Number")},Xv=1e-5;function yt(i,r,t){return t===void 0&&(t=Xv),Math.abs(i-r)<t}var So=function(i,r){return(i%r+r)%r},zv=Math.PI/180,Ao=function(i){return zv*i};const Ar=function(i,r){return i.hasOwnProperty(r)};var bo=Object.values?function(i){return Object.values(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(t)}),r};const In=function(i){return E(i)?"":i.toString()};var Nv=function(i){return In(i).toLowerCase()};const Ir=Nv;function ru(i,r){return!i||!r?i:i.replace(/\\?\{([^{}]+)\}/g,function(t,e){return t.charAt(0)==="\\"?t.slice(1):r[e]===void 0?"":r[e]})}var or=function(i){var r=In(i);return r.charAt(0).toUpperCase()+r.substring(1)},Wv={}.toString,_v=function(i){return Wv.call(i).replace(/^\[object /,"").replace(/]$/,"")},si=function(i){return ar(i,"Boolean")},iu=function(i){return ar(i,"Date")},$v=function(i){return i===null},Uv=Object.prototype,jv=function(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||Uv;return i===t},vr=function(i){return i===void 0},nu=function(i){return i instanceof Element||i instanceof HTMLDocument};function qv(i){var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return r(i)}function Zv(i){var r=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;r(i)}function ua(i,r){for(var t in r)r.hasOwnProperty(t)&&t!=="constructor"&&r[t]!==void 0&&(i[t]=r[t])}function rt(i,r,t,e){return r&&ua(i,r),t&&ua(i,t),e&&ua(i,e),i}var Rt=function(i){if(typeof i!="object"||i===null)return i;var r;if(I(i)){r=[];for(var t=0,e=i.length;t<e;t++)typeof i[t]=="object"&&i[t]!=null?r[t]=Rt(i[t]):r[t]=i[t]}else{r={};for(var n in i)typeof i[n]=="object"&&i[n]!=null?r[n]=Rt(i[n]):r[n]=i[n]}return r};function au(i,r,t){var e;return function(){var n=this,a=arguments,o=function(){e=null,t||i.apply(n,a)},s=t&&!e;clearTimeout(e),e=setTimeout(o,r),s&&i.apply(n,a)}}const kn=function(i,r){if(!R(i))throw new TypeError("Expected a function");var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=r?r.apply(this,e):e[0],o=t.cache;if(o.has(a))return o.get(a);var s=i.apply(this,e);return o.set(a,s),s};return t.cache=new Map,t};var Qv=5;function ou(i,r,t,e){t=t||0,e=e||Qv;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];a!==null&&ne(a)?(ne(i[n])||(i[n]={}),t<e?ou(i[n],a,t+1,e):i[n]=r[n]):I(a)?(i[n]=[],i[n]=i[n].concat(a)):a!==void 0&&(i[n]=a)}}var O=function(i){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var e=0;e<r.length;e+=1)ou(i,r[e]);return i},su=function(i,r){if(!Ht(i))return-1;var t=Array.prototype.indexOf;if(t)return t.call(i,r);for(var e=-1,n=0;n<i.length;n++)if(i[n]===r){e=n;break}return e},Kv=Object.prototype.hasOwnProperty;function oe(i){if(E(i))return!0;if(Ht(i))return!i.length;var r=_v(i);if(r==="Map"||r==="Set")return!i.size;if(jv(i))return!Object.keys(i).length;for(var t in i)if(Kv.call(i,t))return!1;return!0}var st=function(i,r){if(i===r)return!0;if(!i||!r||H(i)||H(r))return!1;if(Ht(i)||Ht(r)){if(i.length!==r.length)return!1;for(var t=!0,e=0;e<i.length&&(t=st(i[e],r[e]),!!t);e++);return t}if(Ra(i)||Ra(r)){var n=Object.keys(i),a=Object.keys(r);if(n.length!==a.length)return!1;for(var t=!0,e=0;e<n.length&&(t=st(i[n[e]],r[n[e]]),!!t);e++);return t}return!1},At=function(i,r){if(!Ht(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];t.push(r(n,e))}return t},Jv=function(i){return i};const tp=function(i,r){r===void 0&&(r=Jv);var t={};return Q(i)&&!E(i)&&Object.keys(i).forEach(function(e){t[e]=r(i[e],e)}),t},A=function(i,r,t){for(var e=0,n=H(r)?r.split("."):r;i&&e<n.length;)i=i[n[e++]];return i===void 0||e<n.length?t:i},ot=function(i,r,t){var e=i,n=H(r)?r.split("."):r;return n.forEach(function(a,o){o<n.length-1?(Q(e[a])||(e[a]=W(n[o+1])?[]:{}),e=e[a]):e[a]=t}),i};var ep=Object.prototype.hasOwnProperty;const To=function(i,r){if(i===null||!ne(i))return{};var t={};return M(r,function(e){ep.call(i,e)&&(t[e]=i[e])}),t},Lo=function(i,r,t){var e,n,a,o,s=0;t||(t={});var l=function(){s=t.leading===!1?0:Date.now(),e=null,o=i.apply(n,a),e||(n=a=null)},h=function(){var u=Date.now();!s&&t.leading===!1&&(s=u);var c=r-(u-s);return n=this,a=arguments,c<=0||c>r?(e&&(clearTimeout(e),e=null),s=u,o=i.apply(n,a),e||(n=a=null)):!e&&t.trailing!==!1&&(e=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(e),s=0,e=n=a=null},h},rp=function(i){return Ht(i)?Array.prototype.slice.call(i):[]};var Oi={};const Ve=function(i){return i=i||"g",Oi[i]?Oi[i]+=1:Oi[i]=1,i+Oi[i]},Ee=function(){};function Ft(i){return E(i)?0:Ht(i)?i.length:Object.keys(i).length}var Di;const Ri=kn(function(i,r){r===void 0&&(r={});var t=r.fontSize,e=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant;return Di||(Di=document.createElement("canvas").getContext("2d")),Di.font=[a,o,n,t+"px",e].join(" "),Di.measureText(H(i)?i:"").width},function(i,r){return r===void 0&&(r={}),ai([i],bo(r)).join("")}),ip=function(i,r,t,e){e===void 0&&(e="...");var n=16,a=Ri(e,t),o=H(i)?i:In(i),s=r,l=[],h,u;if(Ri(i,t)<=r)return i;for(;h=o.substr(0,n),u=Ri(h,t),!(u+a>s&&u>s);)if(l.push(h),s-=u,o=o.substr(n),!o)return l.join("");for(;h=o.substr(0,1),u=Ri(h,t),!(u+a>s);)if(l.push(h),s-=u,o=o.substr(1),!o)return l.join("");return""+l.join("")+e};var np=function(){function i(){this.map={}}return i.prototype.has=function(r){return this.map[r]!==void 0},i.prototype.get=function(r,t){var e=this.map[r];return e===void 0?t:e},i.prototype.set=function(r,t){this.map[r]=t},i.prototype.clear=function(){this.map={}},i.prototype.delete=function(r){delete this.map[r]},i.prototype.size=function(){return Object.keys(this.map).length},i}(),tt;(function(i){i.FORE="fore",i.MID="mid",i.BG="bg"})(tt||(tt={}));var k;(function(i){i.TOP="top",i.TOP_LEFT="top-left",i.TOP_RIGHT="top-right",i.RIGHT="right",i.RIGHT_TOP="right-top",i.RIGHT_BOTTOM="right-bottom",i.LEFT="left",i.LEFT_TOP="left-top",i.LEFT_BOTTOM="left-bottom",i.BOTTOM="bottom",i.BOTTOM_LEFT="bottom-left",i.BOTTOM_RIGHT="bottom-right",i.RADIUS="radius",i.CIRCLE="circle",i.NONE="none"})(k||(k={}));var ht;(function(i){i.AXIS="axis",i.GRID="grid",i.LEGEND="legend",i.TOOLTIP="tooltip",i.ANNOTATION="annotation",i.SLIDER="slider",i.SCROLLBAR="scrollbar",i.OTHER="other"})(ht||(ht={}));var mr={FORE:3,MID:2,BG:1},Z;(function(i){i.BEFORE_RENDER="beforerender",i.AFTER_RENDER="afterrender",i.BEFORE_PAINT="beforepaint",i.AFTER_PAINT="afterpaint",i.BEFORE_CHANGE_DATA="beforechangedata",i.AFTER_CHANGE_DATA="afterchangedata",i.BEFORE_CLEAR="beforeclear",i.AFTER_CLEAR="afterclear",i.BEFORE_DESTROY="beforedestroy",i.BEFORE_CHANGE_SIZE="beforechangesize",i.AFTER_CHANGE_SIZE="afterchangesize"})(Z||(Z={}));var xr;(function(i){i.BEFORE_DRAW_ANIMATE="beforeanimate",i.AFTER_DRAW_ANIMATE="afteranimate"})(xr||(xr={}));var Lt;(function(i){i.MOUSE_ENTER="plot:mouseenter",i.MOUSE_DOWN="plot:mousedown",i.MOUSE_MOVE="plot:mousemove",i.MOUSE_UP="plot:mouseup",i.MOUSE_LEAVE="plot:mouseleave",i.TOUCH_START="plot:touchstart",i.TOUCH_MOVE="plot:touchmove",i.TOUCH_END="plot:touchend",i.TOUCH_CANCEL="plot:touchcancel",i.CLICK="plot:click",i.DBLCLICK="plot:dblclick",i.CONTEXTMENU="plot:contextmenu",i.LEAVE="plot:leave",i.ENTER="plot:enter"})(Lt||(Lt={}));var fn;(function(i){i.ACTIVE="active",i.INACTIVE="inactive",i.SELECTED="selected",i.DEFAULT="default"})(fn||(fn={}));var pr=["color","shape","size"],$="_origin",Gs=1,Hs=1,Vs=.25,lu={};function ap(i){var r=lu[i];if(!r)throw new Error("G engine '".concat(i,"' is not exist, please register it at first."));return r}function hu(i,r){lu[i]=r}function lr(i,r,t){if(i){if(typeof i.addEventListener=="function")return i.addEventListener(r,t,!1),{remove:function(){i.removeEventListener(r,t,!1)}};if(typeof i.attachEvent=="function")return i.attachEvent("on"+r,t),{remove:function(){i.detachEvent("on"+r,t)}}}}var Ur,ca,uu,Ya;function op(){Ur=document.createElement("table"),ca=document.createElement("tr"),uu=/^\s*<(\w+|!)[^>]*>/,Ya={tr:document.createElement("tbody"),tbody:Ur,thead:Ur,tfoot:Ur,td:ca,th:ca,"*":document.createElement("div")}}function Pe(i){Ur||op();var r=uu.test(i)&&RegExp.$1;(!r||!(r in Ya))&&(r="*");var t=Ya[r];i=typeof i=="string"?i.replace(/(^\s*)|(\s*$)/g,""):i,t.innerHTML=""+i;var e=t.childNodes[0];return e&&t.contains(e)&&t.removeChild(e),e}function Pt(i,r,t){var e;try{e=window.getComputedStyle?window.getComputedStyle(i,null)[r]:i.style[r]}catch(n){}finally{e=e===void 0?t:e}return e}function sp(i,r){var t=Pt(i,"height",r);return t==="auto"&&(t=i.offsetHeight),parseFloat(t)}function lp(i,r){var t=sp(i,r),e=parseFloat(Pt(i,"borderTopWidth"))||0,n=parseFloat(Pt(i,"paddingTop"))||0,a=parseFloat(Pt(i,"paddingBottom"))||0,o=parseFloat(Pt(i,"borderBottomWidth"))||0,s=parseFloat(Pt(i,"marginTop"))||0,l=parseFloat(Pt(i,"marginBottom"))||0;return t+e+o+n+a+s+l}function hp(i,r){var t=Pt(i,"width",r);return t==="auto"&&(t=i.offsetWidth),parseFloat(t)}function up(i,r){var t=hp(i,r),e=parseFloat(Pt(i,"borderLeftWidth"))||0,n=parseFloat(Pt(i,"paddingLeft"))||0,a=parseFloat(Pt(i,"paddingRight"))||0,o=parseFloat(Pt(i,"borderRightWidth"))||0,s=parseFloat(Pt(i,"marginRight"))||0,l=parseFloat(Pt(i,"marginLeft"))||0;return t+e+o+n+a+l+s}function wt(i,r){if(i)for(var t in r)r.hasOwnProperty(t)&&(i.style[t]=r[t]);return i}function cp(i){var r=getComputedStyle(i);return{width:(i.clientWidth||parseInt(r.width,10))-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),height:(i.clientHeight||parseInt(r.height,10))-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10)}}function Xs(i){return typeof i=="number"&&!isNaN(i)}function zs(i,r,t,e){var n=t,a=e;if(r){var o=cp(i);n=o.width?o.width:n,a=o.height?o.height:a}return{width:Math.max(Xs(n)?n:Gs,Gs),height:Math.max(Xs(a)?a:Hs,Hs)}}function fp(i){var r=i.parentNode;r&&r.removeChild(i)}var vp="*",cu=function(){function i(){this._events={}}return i.prototype.on=function(r,t,e){return this._events[r]||(this._events[r]=[]),this._events[r].push({callback:t,once:!!e}),this},i.prototype.once=function(r,t){return this.on(r,t,!0),this},i.prototype.emit=function(r){for(var t=this,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var a=this._events[r]||[],o=this._events[vp]||[],s=function(l){for(var h=l.length,u=0;u<h;u++)if(l[u]){var c=l[u],f=c.callback,v=c.once;v&&(l.splice(u,1),l.length===0&&delete t._events[r],h--,u--),f.apply(t,e)}};s(a),s(o)},i.prototype.off=function(r,t){if(!r)this._events={};else if(!t)delete this._events[r];else{for(var e=this._events[r]||[],n=e.length,a=0;a<n;a++)e[a].callback===t&&(e.splice(a,1),n--,a--);e.length===0&&delete this._events[r]}return this},i.prototype.getEvents=function(){return this._events},i}(),Eo=function(i){T(r,i);function r(t){var e=i.call(this)||this;e.destroyed=!1;var n=t.visible,a=n===void 0?!0:n;return e.visible=a,e}return r.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},r.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},r.prototype.destroy=function(){this.off(),this.destroyed=!0},r.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},r}(cu),Zr=`
1
+ import{c as Es,a as ev,b as rv,_ as ai,d as T,t as iv,i as Bs,e as nv,f as vt,g as y,h as ct}from"./index-98d98a8e.js";const Ln=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Jt},get Circle(){return jx},get Ellipse(){return Zx},get Image(){return Kx},get Line(){return t1},get Marker(){return i1},get Path(){return us},get Polygon(){return f1},get Polyline(){return p1},get Rect(){return m1},get Text(){return w1}},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return jt},get Circle(){return B1},get Dom(){return k1},get Ellipse(){return F1},get Image(){return D1},get Line(){return Y1},get Marker(){return H1},get Path(){return X1},get Polygon(){return N1},get Polyline(){return _1},get Rect(){return j1},get Text(){return J1}},Symbol.toStringTag,{value:"Module"}));function av(i){return+i}function ov(i){return i*i}function sv(i){return i*(2-i)}function Is(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var xo=3,lv=function i(r){r=+r;function t(e){return Math.pow(e,r)}return t.exponent=i,t}(xo),hv=function i(r){r=+r;function t(e){return 1-Math.pow(1-e,r)}return t.exponent=i,t}(xo),ks=function i(r){r=+r;function t(e){return((e*=2)<=1?Math.pow(e,r):2-Math.pow(2-e,r))/2}return t.exponent=i,t}(xo),Qh=Math.PI,Kh=Qh/2;function uv(i){return+i==1?1:1-Math.cos(i*Kh)}function cv(i){return Math.sin(i*Kh)}function Ps(i){return(1-Math.cos(Qh*i))/2}function De(i){return(Math.pow(2,-10*i)-.0009765625)*1.0009775171065494}function fv(i){return De(1-+i)}function vv(i){return 1-De(i)}function Fs(i){return((i*=2)<=1?De(1-i):2-De(i-1))/2}function pv(i){return 1-Math.sqrt(1-i*i)}function gv(i){return Math.sqrt(1- --i*i)}function Os(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Da=4/11,dv=6/11,yv=8/11,mv=3/4,xv=9/11,wv=10/11,Cv=15/16,Mv=21/22,Sv=63/64,Fi=1/Da/Da;function Av(i){return 1-oi(1-i)}function oi(i){return(i=+i)<Da?Fi*i*i:i<yv?Fi*(i-=dv)*i+mv:i<wv?Fi*(i-=xv)*i+Cv:Fi*(i-=Mv)*i+Sv}function bv(i){return((i*=2)<=1?1-oi(1-i):oi(i-1)+1)/2}var wo=1.70158,Tv=function i(r){r=+r;function t(e){return(e=+e)*e*(r*(e-1)+e)}return t.overshoot=i,t}(wo),Lv=function i(r){r=+r;function t(e){return--e*e*((e+1)*r+e)+1}return t.overshoot=i,t}(wo),Ds=function i(r){r=+r;function t(e){return((e*=2)<1?e*e*((r+1)*e-r):(e-=2)*e*((r+1)*e+r)+2)/2}return t.overshoot=i,t}(wo),Sr=2*Math.PI,Co=1,Mo=.3,Ev=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return r*De(- --a)*Math.sin((e-a)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Rs=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return 1-r*De(a=+a)*Math.sin((a+e)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Bv=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return((a=a*2-1)<0?r*De(-a)*Math.sin((e-a)/t):2-r*De(a)*Math.sin((e+a)/t))/2}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo);const Ys=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Ds,easeBackIn:Tv,easeBackInOut:Ds,easeBackOut:Lv,easeBounce:oi,easeBounceIn:Av,easeBounceInOut:bv,easeBounceOut:oi,easeCircle:Os,easeCircleIn:pv,easeCircleInOut:Os,easeCircleOut:gv,easeCubic:Es,easeCubicIn:ev,easeCubicInOut:Es,easeCubicOut:rv,easeElastic:Rs,easeElasticIn:Ev,easeElasticInOut:Bv,easeElasticOut:Rs,easeExp:Fs,easeExpIn:fv,easeExpInOut:Fs,easeExpOut:vv,easeLinear:av,easePoly:ks,easePolyIn:lv,easePolyInOut:ks,easePolyOut:hv,easeQuad:Is,easeQuadIn:ov,easeQuadInOut:Is,easeQuadOut:sv,easeSin:Ps,easeSinIn:uv,easeSinInOut:Ps,easeSinOut:cv},Symbol.toStringTag,{value:"Module"}));var Ht=function(i){return i!==null&&typeof i!="function"&&isFinite(i.length)},je=function(i,r){return Ht(i)?i.indexOf(r)>-1:!1},Vt=function(i,r){if(!Ht(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];r(n,e)&&t.push(n)}return t},Iv=function(i,r){return r===void 0&&(r=[]),Vt(i,function(t){return!je(r,t)})},kv={}.toString,ar=function(i,r){return kv.call(i)==="[object "+r+"]"};const R=function(i){return ar(i,"Function")};var E=function(i){return i==null};const I=function(i){return Array.isArray?Array.isArray(i):ar(i,"Array")},Q=function(i){var r=typeof i;return i!==null&&r==="object"||r==="function"};function M(i,r){if(i){var t;if(I(i))for(var e=0,n=i.length;e<n&&(t=r(i[e],e),t!==!1);e++);else if(Q(i)){for(var a in i)if(i.hasOwnProperty(a)&&(t=r(i[a],a),t===!1))break}}}var Ci=Object.keys?function(i){return Object.keys(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(e)}),r};function Pv(i,r){var t=Ci(r),e=t.length;if(E(i))return!e;for(var n=0;n<e;n+=1){var a=t[n];if(r[a]!==i[a]||!(a in i))return!1}return!0}var Ra=function(i){return typeof i=="object"&&i!==null},ne=function(i){if(!Ra(i)||!ar(i,"Object"))return!1;if(Object.getPrototypeOf(i)===null)return!0;for(var r=i;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(i)===r};function pe(i,r){if(!I(i))return null;var t;if(R(r)&&(t=r),ne(r)&&(t=function(n){return Pv(n,r)}),t){for(var e=0;e<i.length;e+=1)if(t(i[e]))return i[e]}return null}var Fv=function(i,r){for(var t=null,e=0;e<i.length;e++){var n=i[e],a=n[r];if(!E(a)){I(a)?t=a[0]:t=a;break}}return t},Xt=function(i){if(!I(i))return[];for(var r=[],t=0;t<i.length;t++)r=r.concat(i[t]);return r};const Yt=function(i){if(I(i))return i.reduce(function(r,t){return Math.max(r,t)},i[0])},$t=function(i){if(I(i))return i.reduce(function(r,t){return Math.min(r,t)},i[0])};var Ov=function(i){var r=i.filter(function(o){return!isNaN(o)});if(!r.length)return{min:0,max:0};if(I(i[0])){for(var t=[],e=0;e<i.length;e++)t=t.concat(i[e]);r=t}var n=Yt(r),a=$t(r);return{min:a,max:n}},Dv=Array.prototype.splice,Rv=function(r,t){if(!Ht(r))return[];for(var e=r?t.length:0,n=e-1;e--;){var a=void 0,o=t[e];(e===n||o!==a)&&(a=o,Dv.call(r,o,1))}return r},Jh=function(i,r,t){if(!I(i)&&!ne(i))return i;var e=t;return M(i,function(n,a){e=r(e,n,a)}),e},Yv=function(i,r){var t=[];if(!Ht(i))return t;for(var e=-1,n=[],a=i.length;++e<a;){var o=i[e];r(o,e,i)&&(t.push(o),n.push(e))}return Rv(i,n),t};const H=function(i){return ar(i,"String")};function tu(i,r){r===void 0&&(r=new Map);var t=[];if(Array.isArray(i))for(var e=0,n=i.length;e<n;e++){var a=i[e];r.has(a)||(t.push(a),r.set(a,!0))}return t}const ge=function(i,r){for(var t=[],e={},n=0;n<i.length;n++){var a=i[n],o=a[r];if(!E(o)){I(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];e[l]||(t.push(l),e[l]=!0)}}}return t};function Gt(i){if(Ht(i))return i[0]}function pt(i){if(Ht(i)){var r=i;return r[r.length-1]}}var Gv=function(i,r){for(var t=0;t<i.length;t++)if(!r(i[t],t))return!1;return!0},Bn=function(i,r){for(var t=0;t<i.length;t++)if(r(i[t],t))return!0;return!1},Hv=Object.prototype.hasOwnProperty;function He(i,r){if(!r||!I(i))return{};for(var t={},e=R(r)?r:function(s){return s[r]},n,a=0;a<i.length;a++){var o=i[a];n=e(o),Hv.call(t,n)?t[n].push(o):t[n]=[o]}return t}function eu(i,r){if(!r)return{0:i};if(!R(r)){var t=I(r)?r:r.replace(/\s+/g,"").split("*");r=function(e){for(var n="_",a=0,o=t.length;a<o;a++)n+=e[t[a]]&&e[t[a]].toString();return n}}return He(i,r)}const Vv=function(i,r){if(!r)return[i];var t=eu(i,r),e=[];for(var n in t)e.push(t[n]);return e};var J=function(i,r,t){return i<r?r:i>t?t:i},ha=function(i,r){var t=r.toString(),e=t.indexOf(".");if(e===-1)return Math.round(i);var n=t.substr(e+1).length;return n>20&&(n=20),parseFloat(i.toFixed(n))},W=function(i){return ar(i,"Number")},Xv=1e-5;function yt(i,r,t){return t===void 0&&(t=Xv),Math.abs(i-r)<t}var So=function(i,r){return(i%r+r)%r},zv=Math.PI/180,Ao=function(i){return zv*i};const Ar=function(i,r){return i.hasOwnProperty(r)};var bo=Object.values?function(i){return Object.values(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(t)}),r};const In=function(i){return E(i)?"":i.toString()};var Nv=function(i){return In(i).toLowerCase()};const Ir=Nv;function ru(i,r){return!i||!r?i:i.replace(/\\?\{([^{}]+)\}/g,function(t,e){return t.charAt(0)==="\\"?t.slice(1):r[e]===void 0?"":r[e]})}var or=function(i){var r=In(i);return r.charAt(0).toUpperCase()+r.substring(1)},Wv={}.toString,_v=function(i){return Wv.call(i).replace(/^\[object /,"").replace(/]$/,"")},si=function(i){return ar(i,"Boolean")},iu=function(i){return ar(i,"Date")},$v=function(i){return i===null},Uv=Object.prototype,jv=function(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||Uv;return i===t},vr=function(i){return i===void 0},nu=function(i){return i instanceof Element||i instanceof HTMLDocument};function qv(i){var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return r(i)}function Zv(i){var r=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;r(i)}function ua(i,r){for(var t in r)r.hasOwnProperty(t)&&t!=="constructor"&&r[t]!==void 0&&(i[t]=r[t])}function rt(i,r,t,e){return r&&ua(i,r),t&&ua(i,t),e&&ua(i,e),i}var Rt=function(i){if(typeof i!="object"||i===null)return i;var r;if(I(i)){r=[];for(var t=0,e=i.length;t<e;t++)typeof i[t]=="object"&&i[t]!=null?r[t]=Rt(i[t]):r[t]=i[t]}else{r={};for(var n in i)typeof i[n]=="object"&&i[n]!=null?r[n]=Rt(i[n]):r[n]=i[n]}return r};function au(i,r,t){var e;return function(){var n=this,a=arguments,o=function(){e=null,t||i.apply(n,a)},s=t&&!e;clearTimeout(e),e=setTimeout(o,r),s&&i.apply(n,a)}}const kn=function(i,r){if(!R(i))throw new TypeError("Expected a function");var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=r?r.apply(this,e):e[0],o=t.cache;if(o.has(a))return o.get(a);var s=i.apply(this,e);return o.set(a,s),s};return t.cache=new Map,t};var Qv=5;function ou(i,r,t,e){t=t||0,e=e||Qv;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];a!==null&&ne(a)?(ne(i[n])||(i[n]={}),t<e?ou(i[n],a,t+1,e):i[n]=r[n]):I(a)?(i[n]=[],i[n]=i[n].concat(a)):a!==void 0&&(i[n]=a)}}var O=function(i){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var e=0;e<r.length;e+=1)ou(i,r[e]);return i},su=function(i,r){if(!Ht(i))return-1;var t=Array.prototype.indexOf;if(t)return t.call(i,r);for(var e=-1,n=0;n<i.length;n++)if(i[n]===r){e=n;break}return e},Kv=Object.prototype.hasOwnProperty;function oe(i){if(E(i))return!0;if(Ht(i))return!i.length;var r=_v(i);if(r==="Map"||r==="Set")return!i.size;if(jv(i))return!Object.keys(i).length;for(var t in i)if(Kv.call(i,t))return!1;return!0}var st=function(i,r){if(i===r)return!0;if(!i||!r||H(i)||H(r))return!1;if(Ht(i)||Ht(r)){if(i.length!==r.length)return!1;for(var t=!0,e=0;e<i.length&&(t=st(i[e],r[e]),!!t);e++);return t}if(Ra(i)||Ra(r)){var n=Object.keys(i),a=Object.keys(r);if(n.length!==a.length)return!1;for(var t=!0,e=0;e<n.length&&(t=st(i[n[e]],r[n[e]]),!!t);e++);return t}return!1},At=function(i,r){if(!Ht(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];t.push(r(n,e))}return t},Jv=function(i){return i};const tp=function(i,r){r===void 0&&(r=Jv);var t={};return Q(i)&&!E(i)&&Object.keys(i).forEach(function(e){t[e]=r(i[e],e)}),t},A=function(i,r,t){for(var e=0,n=H(r)?r.split("."):r;i&&e<n.length;)i=i[n[e++]];return i===void 0||e<n.length?t:i},ot=function(i,r,t){var e=i,n=H(r)?r.split("."):r;return n.forEach(function(a,o){o<n.length-1?(Q(e[a])||(e[a]=W(n[o+1])?[]:{}),e=e[a]):e[a]=t}),i};var ep=Object.prototype.hasOwnProperty;const To=function(i,r){if(i===null||!ne(i))return{};var t={};return M(r,function(e){ep.call(i,e)&&(t[e]=i[e])}),t},Lo=function(i,r,t){var e,n,a,o,s=0;t||(t={});var l=function(){s=t.leading===!1?0:Date.now(),e=null,o=i.apply(n,a),e||(n=a=null)},h=function(){var u=Date.now();!s&&t.leading===!1&&(s=u);var c=r-(u-s);return n=this,a=arguments,c<=0||c>r?(e&&(clearTimeout(e),e=null),s=u,o=i.apply(n,a),e||(n=a=null)):!e&&t.trailing!==!1&&(e=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(e),s=0,e=n=a=null},h},rp=function(i){return Ht(i)?Array.prototype.slice.call(i):[]};var Oi={};const Ve=function(i){return i=i||"g",Oi[i]?Oi[i]+=1:Oi[i]=1,i+Oi[i]},Ee=function(){};function Ft(i){return E(i)?0:Ht(i)?i.length:Object.keys(i).length}var Di;const Ri=kn(function(i,r){r===void 0&&(r={});var t=r.fontSize,e=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant;return Di||(Di=document.createElement("canvas").getContext("2d")),Di.font=[a,o,n,t+"px",e].join(" "),Di.measureText(H(i)?i:"").width},function(i,r){return r===void 0&&(r={}),ai([i],bo(r)).join("")}),ip=function(i,r,t,e){e===void 0&&(e="...");var n=16,a=Ri(e,t),o=H(i)?i:In(i),s=r,l=[],h,u;if(Ri(i,t)<=r)return i;for(;h=o.substr(0,n),u=Ri(h,t),!(u+a>s&&u>s);)if(l.push(h),s-=u,o=o.substr(n),!o)return l.join("");for(;h=o.substr(0,1),u=Ri(h,t),!(u+a>s);)if(l.push(h),s-=u,o=o.substr(1),!o)return l.join("");return""+l.join("")+e};var np=function(){function i(){this.map={}}return i.prototype.has=function(r){return this.map[r]!==void 0},i.prototype.get=function(r,t){var e=this.map[r];return e===void 0?t:e},i.prototype.set=function(r,t){this.map[r]=t},i.prototype.clear=function(){this.map={}},i.prototype.delete=function(r){delete this.map[r]},i.prototype.size=function(){return Object.keys(this.map).length},i}(),tt;(function(i){i.FORE="fore",i.MID="mid",i.BG="bg"})(tt||(tt={}));var k;(function(i){i.TOP="top",i.TOP_LEFT="top-left",i.TOP_RIGHT="top-right",i.RIGHT="right",i.RIGHT_TOP="right-top",i.RIGHT_BOTTOM="right-bottom",i.LEFT="left",i.LEFT_TOP="left-top",i.LEFT_BOTTOM="left-bottom",i.BOTTOM="bottom",i.BOTTOM_LEFT="bottom-left",i.BOTTOM_RIGHT="bottom-right",i.RADIUS="radius",i.CIRCLE="circle",i.NONE="none"})(k||(k={}));var ht;(function(i){i.AXIS="axis",i.GRID="grid",i.LEGEND="legend",i.TOOLTIP="tooltip",i.ANNOTATION="annotation",i.SLIDER="slider",i.SCROLLBAR="scrollbar",i.OTHER="other"})(ht||(ht={}));var mr={FORE:3,MID:2,BG:1},Z;(function(i){i.BEFORE_RENDER="beforerender",i.AFTER_RENDER="afterrender",i.BEFORE_PAINT="beforepaint",i.AFTER_PAINT="afterpaint",i.BEFORE_CHANGE_DATA="beforechangedata",i.AFTER_CHANGE_DATA="afterchangedata",i.BEFORE_CLEAR="beforeclear",i.AFTER_CLEAR="afterclear",i.BEFORE_DESTROY="beforedestroy",i.BEFORE_CHANGE_SIZE="beforechangesize",i.AFTER_CHANGE_SIZE="afterchangesize"})(Z||(Z={}));var xr;(function(i){i.BEFORE_DRAW_ANIMATE="beforeanimate",i.AFTER_DRAW_ANIMATE="afteranimate"})(xr||(xr={}));var Lt;(function(i){i.MOUSE_ENTER="plot:mouseenter",i.MOUSE_DOWN="plot:mousedown",i.MOUSE_MOVE="plot:mousemove",i.MOUSE_UP="plot:mouseup",i.MOUSE_LEAVE="plot:mouseleave",i.TOUCH_START="plot:touchstart",i.TOUCH_MOVE="plot:touchmove",i.TOUCH_END="plot:touchend",i.TOUCH_CANCEL="plot:touchcancel",i.CLICK="plot:click",i.DBLCLICK="plot:dblclick",i.CONTEXTMENU="plot:contextmenu",i.LEAVE="plot:leave",i.ENTER="plot:enter"})(Lt||(Lt={}));var fn;(function(i){i.ACTIVE="active",i.INACTIVE="inactive",i.SELECTED="selected",i.DEFAULT="default"})(fn||(fn={}));var pr=["color","shape","size"],$="_origin",Gs=1,Hs=1,Vs=.25,lu={};function ap(i){var r=lu[i];if(!r)throw new Error("G engine '".concat(i,"' is not exist, please register it at first."));return r}function hu(i,r){lu[i]=r}function lr(i,r,t){if(i){if(typeof i.addEventListener=="function")return i.addEventListener(r,t,!1),{remove:function(){i.removeEventListener(r,t,!1)}};if(typeof i.attachEvent=="function")return i.attachEvent("on"+r,t),{remove:function(){i.detachEvent("on"+r,t)}}}}var Ur,ca,uu,Ya;function op(){Ur=document.createElement("table"),ca=document.createElement("tr"),uu=/^\s*<(\w+|!)[^>]*>/,Ya={tr:document.createElement("tbody"),tbody:Ur,thead:Ur,tfoot:Ur,td:ca,th:ca,"*":document.createElement("div")}}function Pe(i){Ur||op();var r=uu.test(i)&&RegExp.$1;(!r||!(r in Ya))&&(r="*");var t=Ya[r];i=typeof i=="string"?i.replace(/(^\s*)|(\s*$)/g,""):i,t.innerHTML=""+i;var e=t.childNodes[0];return e&&t.contains(e)&&t.removeChild(e),e}function Pt(i,r,t){var e;try{e=window.getComputedStyle?window.getComputedStyle(i,null)[r]:i.style[r]}catch(n){}finally{e=e===void 0?t:e}return e}function sp(i,r){var t=Pt(i,"height",r);return t==="auto"&&(t=i.offsetHeight),parseFloat(t)}function lp(i,r){var t=sp(i,r),e=parseFloat(Pt(i,"borderTopWidth"))||0,n=parseFloat(Pt(i,"paddingTop"))||0,a=parseFloat(Pt(i,"paddingBottom"))||0,o=parseFloat(Pt(i,"borderBottomWidth"))||0,s=parseFloat(Pt(i,"marginTop"))||0,l=parseFloat(Pt(i,"marginBottom"))||0;return t+e+o+n+a+s+l}function hp(i,r){var t=Pt(i,"width",r);return t==="auto"&&(t=i.offsetWidth),parseFloat(t)}function up(i,r){var t=hp(i,r),e=parseFloat(Pt(i,"borderLeftWidth"))||0,n=parseFloat(Pt(i,"paddingLeft"))||0,a=parseFloat(Pt(i,"paddingRight"))||0,o=parseFloat(Pt(i,"borderRightWidth"))||0,s=parseFloat(Pt(i,"marginRight"))||0,l=parseFloat(Pt(i,"marginLeft"))||0;return t+e+o+n+a+l+s}function wt(i,r){if(i)for(var t in r)r.hasOwnProperty(t)&&(i.style[t]=r[t]);return i}function cp(i){var r=getComputedStyle(i);return{width:(i.clientWidth||parseInt(r.width,10))-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),height:(i.clientHeight||parseInt(r.height,10))-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10)}}function Xs(i){return typeof i=="number"&&!isNaN(i)}function zs(i,r,t,e){var n=t,a=e;if(r){var o=cp(i);n=o.width?o.width:n,a=o.height?o.height:a}return{width:Math.max(Xs(n)?n:Gs,Gs),height:Math.max(Xs(a)?a:Hs,Hs)}}function fp(i){var r=i.parentNode;r&&r.removeChild(i)}var vp="*",cu=function(){function i(){this._events={}}return i.prototype.on=function(r,t,e){return this._events[r]||(this._events[r]=[]),this._events[r].push({callback:t,once:!!e}),this},i.prototype.once=function(r,t){return this.on(r,t,!0),this},i.prototype.emit=function(r){for(var t=this,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var a=this._events[r]||[],o=this._events[vp]||[],s=function(l){for(var h=l.length,u=0;u<h;u++)if(l[u]){var c=l[u],f=c.callback,v=c.once;v&&(l.splice(u,1),l.length===0&&delete t._events[r],h--,u--),f.apply(t,e)}};s(a),s(o)},i.prototype.off=function(r,t){if(!r)this._events={};else if(!t)delete this._events[r];else{for(var e=this._events[r]||[],n=e.length,a=0;a<n;a++)e[a].callback===t&&(e.splice(a,1),n--,a--);e.length===0&&delete this._events[r]}return this},i.prototype.getEvents=function(){return this._events},i}(),Eo=function(i){T(r,i);function r(t){var e=i.call(this)||this;e.destroyed=!1;var n=t.visible,a=n===void 0?!0:n;return e.visible=a,e}return r.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},r.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},r.prototype.destroy=function(){this.off(),this.destroyed=!0},r.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},r}(cu),Zr=`
2
2
  \v\f\r   ᠎              \u2028\u2029`,pp=new RegExp("([a-z])["+Zr+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Zr+"]*,?["+Zr+"]*)+)","ig"),gp=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Zr+"]*,?["+Zr+"]*","ig"),gr=function(i){if(!i)return null;if(I(i))return i;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(i).replace(pp,function(e,n,a){var o=[],s=n.toLowerCase();if(a.replace(gp,function(l,h){h&&o.push(+h)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return i}),t},Ga=function(i,r){for(var t=[],e=0,n=i.length;n-2*!r>e;e+=2){var a=[{x:+i[e-2],y:+i[e-1]},{x:+i[e],y:+i[e+1]},{x:+i[e+2],y:+i[e+3]},{x:+i[e+4],y:+i[e+5]}];r?e?n-4===e?a[3]={x:+i[0],y:+i[1]}:n-2===e&&(a[2]={x:+i[0],y:+i[1]},a[3]={x:+i[2],y:+i[3]}):a[0]={x:+i[n-2],y:+i[n-1]}:n-4===e?a[3]=a[2]:e||(a[0]={x:+i[e],y:+i[e+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t},Yi=function(i,r,t,e,n){var a=[];if(n===null&&e===null&&(e=t),i=+i,r=+r,t=+t,e=+e,n!==null){var o=Math.PI/180,s=i+t*Math.cos(-e*o),l=i+t*Math.cos(-n*o),h=r+t*Math.sin(-e*o),u=r+t*Math.sin(-n*o);a=[["M",s,h],["A",t,t,0,+(n-e>180),0,l,u]]}else a=[["M",i,r],["m",0,-e],["a",t,e,0,1,1,0,2*e],["a",t,e,0,1,1,0,-2*e],["z"]];return a},Ha=function(i){if(i=gr(i),!i||!i.length)return[["M",0,0]];var r=[],t=0,e=0,n=0,a=0,o=0,s,l;i[0][0]==="M"&&(t=+i[0][1],e=+i[0][2],n=t,a=e,o++,r[0]=["M",t,e]);for(var h=i.length===3&&i[0][0]==="M"&&i[1][0].toUpperCase()==="R"&&i[2][0].toUpperCase()==="Z",u=void 0,c=void 0,f=o,v=i.length;f<v;f++){if(r.push(u=[]),c=i[f],s=c[0],s!==s.toUpperCase())switch(u[0]=s.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+t,u[7]=+c[7]+e;break;case"V":u[1]=+c[1]+e;break;case"H":u[1]=+c[1]+t;break;case"R":l=[t,e].concat(c.slice(1));for(var p=2,g=l.length;p<g;p++)l[p]=+l[p]+t,l[++p]=+l[p]+e;r.pop(),r=r.concat(Ga(l,h));break;case"O":r.pop(),l=Yi(t,e,c[1],c[2]),l.push(l[0]),r=r.concat(l);break;case"U":r.pop(),r=r.concat(Yi(t,e,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));break;case"M":n=+c[1]+t,a=+c[2]+e;break;default:for(var p=1,g=c.length;p<g;p++)u[p]=+c[p]+(p%2?t:e)}else if(s==="R")l=[t,e].concat(c.slice(1)),r.pop(),r=r.concat(Ga(l,h)),u=["R"].concat(c.slice(-2));else if(s==="O")r.pop(),l=Yi(t,e,c[1],c[2]),l.push(l[0]),r=r.concat(l);else if(s==="U")r.pop(),r=r.concat(Yi(t,e,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));else for(var d=0,m=c.length;d<m;d++)u[d]=c[d];if(s=s.toUpperCase(),s!=="O")switch(u[0]){case"Z":t=+n,e=+a;break;case"H":t=u[1];break;case"V":e=u[1];break;case"M":n=u[u.length-2],a=u[u.length-1];break;default:t=u[u.length-2],e=u[u.length-1]}}return r},Gi=function(i,r,t,e){return[i,r,t,e,t,e]},Ns=function(i,r,t,e,n,a){var o=.3333333333333333,s=2/3;return[o*i+s*t,o*r+s*e,o*n+s*t,o*a+s*e,n,a]},fu=function(i,r,t,e,n,a,o,s,l,h){t===e&&(t+=1);var u=Math.PI*120/180,c=Math.PI/180*(+n||0),f=[],v,p,g,d,m,w=function(Yr,Pi,me){var sa=Yr*Math.cos(me)-Pi*Math.sin(me),Gr=Yr*Math.sin(me)+Pi*Math.cos(me);return{x:sa,y:Gr}};if(h)p=h[0],g=h[1],d=h[2],m=h[3];else{v=w(i,r,-c),i=v.x,r=v.y,v=w(s,l,-c),s=v.x,l=v.y,i===s&&r===l&&(s+=1,l+=1);var x=(i-s)/2,C=(r-l)/2,S=x*x/(t*t)+C*C/(e*e);S>1&&(S=Math.sqrt(S),t=S*t,e=S*e);var b=t*t,L=e*e,B=(a===o?-1:1)*Math.sqrt(Math.abs((b*L-b*C*C-L*x*x)/(b*C*C+L*x*x)));d=B*t*C/e+(i+s)/2,m=B*-e*x/t+(r+l)/2,p=Math.asin(((r-m)/e).toFixed(9)),g=Math.asin(((l-m)/e).toFixed(9)),p=i<d?Math.PI-p:p,g=s<d?Math.PI-g:g,p<0&&(p=Math.PI*2+p),g<0&&(g=Math.PI*2+g),o&&p>g&&(p=p-Math.PI*2),!o&&g>p&&(g=g-Math.PI*2)}var P=g-p;if(Math.abs(P)>u){var F=g,D=s,Y=l;g=p+u*(o&&g>p?1:-1),s=d+t*Math.cos(g),l=m+e*Math.sin(g),f=fu(s,l,t,e,n,0,o,D,Y,[g,F,d,m])}P=g-p;var z=Math.cos(p),q=Math.sin(p),ut=Math.cos(g),at=Math.sin(g),St=Math.tan(P/4),lt=4/3*t*St,U=4/3*e*St,ye=[i,r],xt=[i+lt*q,r-U*z],Ne=[s+lt*at,l-U*ut],Ii=[s,l];if(xt[0]=2*ye[0]-xt[0],xt[1]=2*ye[1]-xt[1],h)return[xt,Ne,Ii].concat(f);f=[xt,Ne,Ii].concat(f).join().split(",");for(var ki=[],qt=0,Rr=f.length;qt<Rr;qt++)ki[qt]=qt%2?w(f[qt-1],f[qt],c).y:w(f[qt],f[qt+1],c).x;return ki},Va=function(i,r){var t=Ha(i),e=r&&Ha(r),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],l="",h="",u,c=function(x,C,S){var b,L;if(!x)return["C",C.x,C.y,C.x,C.y,C.x,C.y];switch(!(x[0]in{T:1,Q:1})&&(C.qx=C.qy=null),x[0]){case"M":C.X=x[1],C.Y=x[2];break;case"A":x=["C"].concat(fu.apply(0,[C.x,C.y].concat(x.slice(1))));break;case"S":S==="C"||S==="S"?(b=C.x*2-C.bx,L=C.y*2-C.by):(b=C.x,L=C.y),x=["C",b,L].concat(x.slice(1));break;case"T":S==="Q"||S==="T"?(C.qx=C.x*2-C.qx,C.qy=C.y*2-C.qy):(C.qx=C.x,C.qy=C.y),x=["C"].concat(Ns(C.x,C.y,C.qx,C.qy,x[1],x[2]));break;case"Q":C.qx=x[1],C.qy=x[2],x=["C"].concat(Ns(C.x,C.y,x[1],x[2],x[3],x[4]));break;case"L":x=["C"].concat(Gi(C.x,C.y,x[1],x[2]));break;case"H":x=["C"].concat(Gi(C.x,C.y,x[1],C.y));break;case"V":x=["C"].concat(Gi(C.x,C.y,C.x,x[1]));break;case"Z":x=["C"].concat(Gi(C.x,C.y,C.X,C.Y));break}return x},f=function(x,C){if(x[C].length>7){x[C].shift();for(var S=x[C];S.length;)o[C]="A",e&&(s[C]="A"),x.splice(C++,0,["C"].concat(S.splice(0,6)));x.splice(C,1),u=Math.max(t.length,e&&e.length||0)}},v=function(x,C,S,b,L){x&&C&&x[L][0]==="M"&&C[L][0]!=="M"&&(C.splice(L,0,["M",b.x,b.y]),S.bx=0,S.by=0,S.x=x[L][1],S.y=x[L][2],u=Math.max(t.length,e&&e.length||0))};u=Math.max(t.length,e&&e.length||0);for(var p=0;p<u;p++){t[p]&&(l=t[p][0]),l!=="C"&&(o[p]=l,p&&(h=o[p-1])),t[p]=c(t[p],n,h),o[p]!=="A"&&l==="C"&&(o[p]="C"),f(t,p),e&&(e[p]&&(l=e[p][0]),l!=="C"&&(s[p]=l,p&&(h=s[p-1])),e[p]=c(e[p],a,h),s[p]!=="A"&&l==="C"&&(s[p]="C"),f(e,p)),v(t,e,n,a,p),v(e,t,a,n,p);var g=t[p],d=e&&e[p],m=g.length,w=e&&d.length;n.x=g[m-2],n.y=g[m-1],n.bx=parseFloat(g[m-4])||n.x,n.by=parseFloat(g[m-3])||n.y,a.bx=e&&(parseFloat(d[w-4])||a.x),a.by=e&&(parseFloat(d[w-3])||a.y),a.x=e&&d[w-2],a.y=e&&d[w-1]}return e?[t,e]:t},dp=/,?([a-z]),?/gi,vu=function(i){return i.join(",").replace(dp,"$1")},Ws=function(i,r,t,e,n){var a=-3*r+9*t-9*e+3*n,o=i*a+6*r-12*t+6*e;return i*o-3*r+3*t},_s=function(i,r,t,e,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var h=l/2,u=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],v=0,p=0;p<u;p++){var g=h*c[p]+h,d=Ws(g,i,t,n,o),m=Ws(g,r,e,a,s),w=d*d+m*m;v+=f[p]*Math.sqrt(w)}return h*v},yp=function(i,r,t,e,n,a,o,s){for(var l=[],h=[[],[]],u,c,f,v,p=0;p<2;++p){if(p===0?(c=6*i-12*t+6*n,u=-3*i+9*t-9*n+3*o,f=3*t-3*i):(c=6*r-12*e+6*a,u=-3*r+9*e-9*a+3*s,f=3*e-3*r),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;v=-f/c,v>0&&v<1&&l.push(v);continue}var g=c*c-4*f*u,d=Math.sqrt(g);if(!(g<0)){var m=(-c+d)/(2*u);m>0&&m<1&&l.push(m);var w=(-c-d)/(2*u);w>0&&w<1&&l.push(w)}}for(var x=l.length,C=x,S;x--;)v=l[x],S=1-v,h[0][x]=S*S*S*i+3*S*S*v*t+3*S*v*v*n+v*v*v*o,h[1][x]=S*S*S*r+3*S*S*v*e+3*S*v*v*a+v*v*v*s;return h[0][C]=i,h[1][C]=r,h[0][C+1]=o,h[1][C+1]=s,h[0].length=h[1].length=C+2,{min:{x:Math.min.apply(0,h[0]),y:Math.min.apply(0,h[1])},max:{x:Math.max.apply(0,h[0]),y:Math.max.apply(0,h[1])}}},mp=function(i,r,t,e,n,a,o,s){if(!(Math.max(i,t)<Math.min(n,o)||Math.min(i,t)>Math.max(n,o)||Math.max(r,e)<Math.min(a,s)||Math.min(r,e)>Math.max(a,s))){var l=(i*e-r*t)*(n-o)-(i-t)*(n*s-a*o),h=(i*e-r*t)*(a-s)-(r-e)*(n*s-a*o),u=(i-t)*(a-s)-(r-e)*(n-o);if(u){var c=l/u,f=h/u,v=+c.toFixed(2),p=+f.toFixed(2);if(!(v<+Math.min(i,t).toFixed(2)||v>+Math.max(i,t).toFixed(2)||v<+Math.min(n,o).toFixed(2)||v>+Math.max(n,o).toFixed(2)||p<+Math.min(r,e).toFixed(2)||p>+Math.max(r,e).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:c,y:f}}}},we=function(i,r,t){return r>=i.x&&r<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},pu=function(i,r,t,e,n){if(n)return[["M",+i+ +n,r],["l",t-n*2,0],["a",n,n,0,0,1,n,n],["l",0,e-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-t,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-e],["a",n,n,0,0,1,n,-n],["z"]];var a=[["M",i,r],["l",t,0],["l",0,e],["l",-t,0],["z"]];return a.parsePathArray=vu,a},Xa=function(i,r,t,e){return i===null&&(i=r=t=e=0),r===null&&(r=i.y,t=i.width,e=i.height,i=i.x),{x:i,y:r,width:t,w:t,height:e,h:e,x2:i+t,y2:r+e,cx:i+t/2,cy:r+e/2,r1:Math.min(t,e)/2,r2:Math.max(t,e)/2,r0:Math.sqrt(t*t+e*e)/2,path:pu(i,r,t,e),vb:[i,r,t,e].join(" ")}},xp=function(i,r){return i=Xa(i),r=Xa(r),we(r,i.x,i.y)||we(r,i.x2,i.y)||we(r,i.x,i.y2)||we(r,i.x2,i.y2)||we(i,r.x,r.y)||we(i,r.x2,r.y)||we(i,r.x,r.y2)||we(i,r.x2,r.y2)||(i.x<r.x2&&i.x>r.x||r.x<i.x2&&r.x>i.x)&&(i.y<r.y2&&i.y>r.y||r.y<i.y2&&r.y>i.y)},$s=function(i,r,t,e,n,a,o,s){I(i)||(i=[i,r,t,e,n,a,o,s]);var l=yp.apply(null,i);return Xa(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Us=function(i,r,t,e,n,a,o,s,l){var h=1-l,u=Math.pow(h,3),c=Math.pow(h,2),f=l*l,v=f*l,p=u*i+c*3*l*t+h*3*l*l*n+v*o,g=u*r+c*3*l*e+h*3*l*l*a+v*s,d=i+2*l*(t-i)+f*(n-2*t+i),m=r+2*l*(e-r)+f*(a-2*e+r),w=t+2*l*(n-t)+f*(o-2*n+t),x=e+2*l*(a-e)+f*(s-2*a+e),C=h*i+l*t,S=h*r+l*e,b=h*n+l*o,L=h*a+l*s,B=90-Math.atan2(d-w,m-x)*180/Math.PI;return{x:p,y:g,m:{x:d,y:m},n:{x:w,y:x},start:{x:C,y:S},end:{x:b,y:L},alpha:B}},wp=function(i,r,t){var e=$s(i),n=$s(r);if(!xp(e,n))return t?0:[];for(var a=_s.apply(0,i),o=_s.apply(0,r),s=~~(a/8),l=~~(o/8),h=[],u=[],c={},f=t?0:[],v=0;v<s+1;v++){var p=Us.apply(0,i.concat(v/s));h.push({x:p.x,y:p.y,t:v/s})}for(var v=0;v<l+1;v++){var p=Us.apply(0,r.concat(v/l));u.push({x:p.x,y:p.y,t:v/l})}for(var v=0;v<s;v++)for(var g=0;g<l;g++){var d=h[v],m=h[v+1],w=u[g],x=u[g+1],C=Math.abs(m.x-d.x)<.001?"y":"x",S=Math.abs(x.x-w.x)<.001?"y":"x",b=mp(d.x,d.y,m.x,m.y,w.x,w.y,x.x,x.y);if(b){if(c[b.x.toFixed(4)]===b.y.toFixed(4))continue;c[b.x.toFixed(4)]=b.y.toFixed(4);var L=d.t+Math.abs((b[C]-d[C])/(m[C]-d[C]))*(m.t-d.t),B=w.t+Math.abs((b[S]-w[S])/(x[S]-w[S]))*(x.t-w.t);L>=0&&L<=1&&B>=0&&B<=1&&(t?f+=1:f.push({x:b.x,y:b.y,t1:L,t2:B}))}}return f},Cp=function(i,r,t){i=Va(i),r=Va(r);for(var e,n,a,o,s,l,h,u,c,f,v=t?0:[],p=0,g=i.length;p<g;p++){var d=i[p];if(d[0]==="M")e=s=d[1],n=l=d[2];else{d[0]==="C"?(c=[e,n].concat(d.slice(1)),e=c[6],n=c[7]):(c=[e,n,e,n,s,l,s,l],e=s,n=l);for(var m=0,w=r.length;m<w;m++){var x=r[m];if(x[0]==="M")a=h=x[1],o=u=x[2];else{x[0]==="C"?(f=[a,o].concat(x.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,h,u,h,u],a=h,o=u);var C=wp(c,f,t);if(t)v+=C;else{for(var S=0,b=C.length;S<b;S++)C[S].segment1=p,C[S].segment2=m,C[S].bez1=c,C[S].bez2=f;v=v.concat(C)}}}}}return v},Mp=function(i,r){return Cp(i,r)};function Sp(i,r){var t=[],e=[];function n(a,o){if(a.length===1)t.push(a[0]),e.push(a[0]);else{for(var s=[],l=0;l<a.length-1;l++)l===0&&t.push(a[0]),l===a.length-2&&e.push(a[l+1]),s[l]=[(1-o)*a[l][0]+o*a[l+1][0],(1-o)*a[l][1]+o*a[l+1][1]];n(s,o)}}return i.length&&n(i,r),{left:t,right:e.reverse()}}function Ap(i,r,t){var e=[[i[1],i[2]]];t=t||2;var n=[];r[0]==="A"?(e.push(r[6]),e.push(r[7])):r[0]==="C"?(e.push([r[1],r[2]]),e.push([r[3],r[4]]),e.push([r[5],r[6]])):r[0]==="S"||r[0]==="Q"?(e.push([r[1],r[2]]),e.push([r[3],r[4]])):e.push([r[1],r[2]]);for(var a=e,o=1/t,s=0;s<t-1;s++){var l=o/(1-o*s),h=Sp(a,l);n.push(h.left),a=h.right}n.push(a);var u=n.map(function(c){var f=[];return c.length===4&&(f.push("C"),f=f.concat(c[2])),c.length>=3&&(c.length===3&&f.push("Q"),f=f.concat(c[1])),c.length===2&&f.push("L"),f=f.concat(c[c.length-1]),f});return u}var bp=function(i,r,t){if(t===1)return[[].concat(i)];var e=[];if(r[0]==="L"||r[0]==="C"||r[0]==="Q")e=e.concat(Ap(i,r,t));else{var n=[].concat(i);n[0]==="M"&&(n[0]="L");for(var a=0;a<=t-1;a++)e.push(n)}return e},Tp=function(i,r){if(i.length===1)return i;var t=i.length-1,e=r.length-1,n=t/e,a=[];if(i.length===1&&i[0][0]==="M"){for(var o=0;o<e-t;o++)i.push(i[0]);return i}for(var o=0;o<e;o++){var s=Math.floor(n*o);a[s]=(a[s]||0)+1}var l=a.reduce(function(h,u,c){return c===t?h.concat(i[t]):h.concat(bp(i[c],i[c+1],u))},[]);return l.unshift(i[0]),(r[e]==="Z"||r[e]==="z")&&l.push("Z"),l},Lp=function(i,r){if(i.length!==r.length)return!1;var t=!0;return M(i,function(e,n){if(e!==r[n])return t=!1,!1}),t};function Ep(i,r,t){var e=null,n=t;return r<n&&(n=r,e="add"),i<n&&(n=i,e="del"),{type:e,min:n}}var Bp=function(i,r){var t=i.length,e=r.length,n,a,o=0;if(t===0||e===0)return null;for(var s=[],l=0;l<=t;l++)s[l]=[],s[l][0]={min:l};for(var h=0;h<=e;h++)s[0][h]={min:h};for(var l=1;l<=t;l++){n=i[l-1];for(var h=1;h<=e;h++){a=r[h-1],Lp(n,a)?o=0:o=1;var u=s[l-1][h].min+1,c=s[l][h-1].min+1,f=s[l-1][h-1].min+o;s[l][h]=Ep(u,c,f)}}return s},gu=function(i,r){var t=Bp(i,r),e=i.length,n=r.length,a=[],o=1,s=1;if(t[e][n].min!==e){for(var l=1;l<=e;l++){var h=t[l][l].min;s=l;for(var u=o;u<=n;u++)t[l][u].min<h&&(h=t[l][u].min,s=u);o=s,t[l][o].type&&a.push({index:l-1,type:t[l][o].type})}for(var l=a.length-1;l>=0;l--)o=a[l].index,a[l].type==="add"?i.splice(o,0,[].concat(i[o])):i.splice(o,1)}e=i.length;var c=n-e;if(e<n)for(var l=0;l<c;l++)i[e-1][0]==="z"||i[e-1][0]==="Z"?i.splice(e-2,0,i[e-2]):i.push(i[e-1]),e+=1;return i};function fa(i,r,t){for(var e=[].concat(i),n,a=1/(t+1),o=du(r)[0],s=1;s<=t;s++)a*=s,n=Math.floor(i.length*a),n===0?e.unshift([o[0]*a+i[n][0]*(1-a),o[1]*a+i[n][1]*(1-a)]):e.splice(n,0,[o[0]*a+i[n][0]*(1-a),o[1]*a+i[n][1]*(1-a)]);return e}function du(i){var r=[];switch(i[0]){case"M":r.push([i[1],i[2]]);break;case"L":r.push([i[1],i[2]]);break;case"A":r.push([i[6],i[7]]);break;case"Q":r.push([i[3],i[4]]),r.push([i[1],i[2]]);break;case"T":r.push([i[1],i[2]]);break;case"C":r.push([i[5],i[6]]),r.push([i[1],i[2]]),r.push([i[3],i[4]]);break;case"S":r.push([i[3],i[4]]),r.push([i[1],i[2]]);break;case"H":r.push([i[1],i[1]]);break;case"V":r.push([i[1],i[1]]);break}return r}var za=function(i,r){if(i.length<=1)return i;for(var t,e=0;e<r.length;e++)if(i[e][0]!==r[e][0])switch(t=du(i[e]),r[e][0]){case"M":i[e]=["M"].concat(t[0]);break;case"L":i[e]=["L"].concat(t[0]);break;case"A":i[e]=[].concat(r[e]),i[e][6]=t[0][0],i[e][7]=t[0][1];break;case"Q":if(t.length<2)if(e>0)t=fa(t,i[e-1],1);else{i[e]=r[e];break}i[e]=["Q"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"T":i[e]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(e>0)t=fa(t,i[e-1],2);else{i[e]=r[e];break}i[e]=["C"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"S":if(t.length<2)if(e>0)t=fa(t,i[e-1],1);else{i[e]=r[e];break}i[e]=["S"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;default:i[e]=r[e]}return i};const Bo=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:Ga,fillPath:Tp,fillPathByDiff:gu,formatPath:za,intersection:Mp,parsePathArray:vu,parsePathString:gr,pathToAbsolute:Ha,pathToCurve:Va,rectPath:pu},Symbol.toStringTag,{value:"Module"}));var Mi=function(){function i(r,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=r,this.name=r,this.originalEvent=t,this.timeStamp=t.timeStamp}return i.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},i.prototype.stopPropagation=function(){this.propagationStopped=!0},i.prototype.toString=function(){var r=this.type;return"[Event (type="+r+")]"},i.prototype.save=function(){},i.prototype.restore=function(){},i}();function yu(i,r){var t=i.indexOf(r);t!==-1&&i.splice(t,1)}var js=typeof window<"u"&&typeof window.document<"u";function mu(i,r){if(i.isCanvas())return!0;for(var t=r.getParent(),e=!1;t;){if(t===i){e=!0;break}t=t.getParent()}return e}function li(i){return i.cfg.visible&&i.cfg.capture}var Pn=function(i){T(r,i);function r(t){var e=i.call(this)||this;e.destroyed=!1;var n=e.getDefaultCfg();return e.cfg=rt(n,t),e}return r.prototype.getDefaultCfg=function(){return{}},r.prototype.get=function(t){return this.cfg[t]},r.prototype.set=function(t,e){this.cfg[t]=e},r.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},r}(cu),qs=globalThis&&globalThis.__spreadArray||function(i,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,a;e<n;e++)(a||!(e in r))&&(a||(a=Array.prototype.slice.call(r,0,e)),a[e]=r[e]);return i.concat(a||Array.prototype.slice.call(r))},Ip=function(){function i(r,t,e){this.name=r,this.version=t,this.os=e,this.type="browser"}return i}(),kp=function(){function i(r){this.version=r,this.type="node",this.name="node",this.os=process.platform}return i}(),Pp=function(){function i(r,t,e,n){this.name=r,this.version=t,this.os=e,this.bot=n,this.type="bot-device"}return i}(),Fp=function(){function i(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return i}(),Op=function(){function i(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return i}(),Dp=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Rp=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Zs=3,Yp=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Dp]],Qs=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function xu(i){return i?Ks(i):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Op:typeof navigator<"u"?Ks(navigator.userAgent):Vp()}function Gp(i){return i!==""&&Yp.reduce(function(r,t){var e=t[0],n=t[1];if(r)return r;var a=n.exec(i);return!!a&&[e,a]},!1)}function Ks(i){var r=Gp(i);if(!r)return null;var t=r[0],e=r[1];if(t==="searchbot")return new Fp;var n=e[1]&&e[1].split(".").join("_").split("_").slice(0,3);n?n.length<Zs&&(n=qs(qs([],n,!0),Xp(Zs-n.length),!0)):n=[];var a=n.join("."),o=Hp(i),s=Rp.exec(i);return s&&s[1]?new Pp(t,a,o,s[1]):new Ip(t,a,o)}function Hp(i){for(var r=0,t=Qs.length;r<t;r++){var e=Qs[r],n=e[0],a=e[1],o=a.exec(i);if(o)return n}return null}function Vp(){var i=typeof process<"u"&&process.version;return i?new kp(process.version.slice(1)):null}function Xp(i){for(var r=[],t=0;t<i;t++)r.push("0");return r}var vn=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var i=0,r=arguments.length;r--;)i+=arguments[r]*arguments[r];return Math.sqrt(i)});function zp(i,r){var t=r[0],e=r[1],n=r[2],a=r[3],o=r[4],s=r[5],l=r[6],h=r[7],u=r[8],c=u*o-s*h,f=-u*a+s*l,v=h*a-o*l,p=t*c+e*f+n*v;return p?(p=1/p,i[0]=c*p,i[1]=(-u*e+n*h)*p,i[2]=(s*e-n*o)*p,i[3]=f*p,i[4]=(u*t-n*l)*p,i[5]=(-s*t+n*a)*p,i[6]=v*p,i[7]=(-h*t+e*l)*p,i[8]=(o*t-e*a)*p,i):null}function Fn(i,r,t){var e=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],h=r[6],u=r[7],c=r[8],f=t[0],v=t[1],p=t[2],g=t[3],d=t[4],m=t[5],w=t[6],x=t[7],C=t[8];return i[0]=f*e+v*o+p*h,i[1]=f*n+v*s+p*u,i[2]=f*a+v*l+p*c,i[3]=g*e+d*o+m*h,i[4]=g*n+d*s+m*u,i[5]=g*a+d*l+m*c,i[6]=w*e+x*o+C*h,i[7]=w*n+x*s+C*u,i[8]=w*a+x*l+C*c,i}function Np(i,r){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=r[0],i[7]=r[1],i[8]=1,i}function Wp(i,r){var t=Math.sin(r),e=Math.cos(r);return i[0]=e,i[1]=t,i[2]=0,i[3]=-t,i[4]=e,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i}function _p(i,r){return i[0]=r[0],i[1]=0,i[2]=0,i[3]=0,i[4]=r[1],i[5]=0,i[6]=0,i[7]=0,i[8]=1,i}function $p(){var i=new vn(3);return vn!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0),i}function hi(i,r,t){var e=r[0],n=r[1],a=r[2];return i[0]=e*t[0]+n*t[3]+a*t[6],i[1]=e*t[1]+n*t[4]+a*t[7],i[2]=e*t[2]+n*t[5]+a*t[8],i}(function(){var i=$p();return function(r,t,e,n,a,o){var s,l;for(t||(t=3),e||(e=0),n?l=Math.min(n*t+e,r.length):l=r.length,s=e;s<l;s+=t)i[0]=r[s],i[1]=r[s+1],i[2]=r[s+2],a(i,i,o),r[s]=i[0],r[s+1]=i[1],r[s+2]=i[2];return r}})();function Up(){var i=new vn(2);return vn!=Float32Array&&(i[0]=0,i[1]=0),i}function Be(i,r,t){return i[0]=r[0]+t[0],i[1]=r[1]+t[1],i}function wu(i,r,t){return i[0]=r[0]-t[0],i[1]=r[1]-t[1],i}function It(i,r,t){return i[0]=Math.min(r[0],t[0]),i[1]=Math.min(r[1],t[1]),i}function kt(i,r,t){return i[0]=Math.max(r[0],t[0]),i[1]=Math.max(r[1],t[1]),i}function _t(i,r,t){return i[0]=r[0]*t,i[1]=r[1]*t,i}function pn(i,r){var t=r[0]-i[0],e=r[1]-i[1];return Math.hypot(t,e)}function dr(i){var r=i[0],t=i[1];return Math.hypot(r,t)}function Cu(i,r){var t=r[0],e=r[1],n=t*t+e*e;return n>0&&(n=1/Math.sqrt(n)),i[0]=r[0]*n,i[1]=r[1]*n,i}function Mu(i,r){return i[0]*r[0]+i[1]*r[1]}function jp(i,r,t){var e=r[0],n=r[1];return i[0]=t[0]*e+t[3]*n+t[6],i[1]=t[1]*e+t[4]*n+t[7],i}function Na(i,r){var t=i[0],e=i[1],n=r[0],a=r[1],o=Math.sqrt(t*t+e*e)*Math.sqrt(n*n+a*a),s=o&&(t*n+e*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function qp(i,r){return i[0]===r[0]&&i[1]===r[1]}var wr=wu;(function(){var i=Up();return function(r,t,e,n,a,o){var s,l;for(t||(t=2),e||(e=0),n?l=Math.min(n*t+e,r.length):l=r.length,s=e;s<l;s+=t)i[0]=r[s],i[1]=r[s+1],a(i,i,o),r[s]=i[0],r[s+1]=i[1];return r}})();function cr(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return Np(e,t),Fn(i,e,r)}function Io(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return Wp(e,t),Fn(i,e,r)}function Su(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return _p(e,t),Fn(i,e,r)}function Zp(i,r,t){return Fn(i,t,r)}function nt(i,r){for(var t=i?[].concat(i):[1,0,0,0,1,0,0,0,1],e=0,n=r.length;e<n;e++){var a=r[e];switch(a[0]){case"t":cr(t,t,[a[1],a[2]]);break;case"s":Su(t,t,[a[1],a[2]]);break;case"r":Io(t,t,a[1]);break;case"m":Zp(t,t,a[1]);break}}return t}function Qp(i,r){return i[0]*r[1]-r[0]*i[1]}function ko(i,r,t){var e=Na(i,r),n=Qp(i,r)>=0;return t?n?Math.PI*2-e:e:n?e:Math.PI*2-e}function Js(i,r){var t=[],e=i[0],n=i[1],a=i[2],o=i[3],s=i[4],l=i[5],h=i[6],u=i[7],c=i[8],f=r[0],v=r[1],p=r[2],g=r[3],d=r[4],m=r[5],w=r[6],x=r[7],C=r[8];return t[0]=f*e+v*o+p*h,t[1]=f*n+v*s+p*u,t[2]=f*a+v*l+p*c,t[3]=g*e+d*o+m*h,t[4]=g*n+d*s+m*u,t[5]=g*a+d*l+m*c,t[6]=w*e+x*o+C*h,t[7]=w*n+x*s+C*u,t[8]=w*a+x*l+C*c,t}function fe(i,r){var t=[],e=r[0],n=r[1];return t[0]=i[0]*e+i[3]*n+i[6],t[1]=i[1]*e+i[4]*n+i[7],t}function On(i){var r=[],t=i[0],e=i[1],n=i[2],a=i[3],o=i[4],s=i[5],l=i[6],h=i[7],u=i[8],c=u*o-s*h,f=-u*a+s*l,v=h*a-o*l,p=t*c+e*f+n*v;return p?(p=1/p,r[0]=c*p,r[1]=(-u*e+n*h)*p,r[2]=(s*e-n*o)*p,r[3]=f*p,r[4]=(u*t-n*l)*p,r[5]=(-s*t+n*a)*p,r[6]=v*p,r[7]=(-h*t+e*l)*p,r[8]=(o*t-e*a)*p,r):null}var Vr=nt,va="matrix",Kp=["zIndex","capture","visible","type"],Jp=["repeat"],tg=":",eg="*";function rg(i){for(var r=[],t=0;t<i.length;t++)I(i[t])?r.push([].concat(i[t])):r.push(i[t]);return r}function ig(i,r){var t={},e=r.attrs;for(var n in i)t[n]=e[n];return t}function ng(i,r){var t={},e=r.attr();return M(i,function(n,a){Jp.indexOf(a)===-1&&!st(e[a],n)&&(t[a]=n)}),t}function ag(i,r){if(r.onFrame)return i;var t=r.startTime,e=r.delay,n=r.duration,a=Object.prototype.hasOwnProperty;return M(i,function(o){t+e<o.startTime+o.delay+o.duration&&n>o.delay&&M(r.toAttrs,function(s,l){a.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),i}var Au=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.attrs={};var n=e.getDefaultAttrs();return rt(n,t.attrs),e.attrs=n,e.initAttrs(n),e.initAnimate(),e}return r.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},r.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},r.prototype.onCanvasChange=function(t){},r.prototype.initAttrs=function(t){},r.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},r.prototype.isGroup=function(){return!1},r.prototype.getParent=function(){return this.get("parent")},r.prototype.getCanvas=function(){return this.get("canvas")},r.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=e[0],o=e[1];if(!a)return this.attrs;if(Q(a)){for(var s in a)this.setAttr(s,a[s]);return this.afterAttrsChange(a),this}return e.length===2?(this.setAttr(a,o),this.afterAttrsChange((t={},t[a]=o,t)),this):this.attrs[a]},r.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},r.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},r.prototype.onAttrChange=function(t,e,n){t==="matrix"&&this.set("totalMatrix",null)},r.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},r.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},r.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},r.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},r.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},r.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},r.prototype.remove=function(t){t===void 0&&(t=!0);var e=this.getParent();e?(yu(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},r.prototype.resetMatrix=function(){this.attr(va,this.getDefaultMatrix()),this.onCanvasChange("matrix")},r.prototype.getMatrix=function(){return this.attr(va)},r.prototype.setMatrix=function(t){this.attr(va,t),this.onCanvasChange("matrix")},r.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;n&&e?t=Js(n,e):t=e||n,this.set("totalMatrix",t)}return t},r.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;t&&e?n=Js(t,e):n=e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},r.prototype.getDefaultMatrix=function(){return null},r.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?fe(e,t):t},r.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=On(e);if(n)return fe(n,t)}return t},r.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var a=this.getShapeBase(),o=or(t.type),s=a[o];s&&(n=new s({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},r.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},r.prototype.clone=function(){var t=this,e=this.attrs,n={};M(e,function(s,l){I(e[l])?n[l]=rg(e[l]):n[l]=e[l]});var a=this.constructor,o=new a({attrs:n});return M(Kp,function(s){o.set(s,t.get(s))}),o},r.prototype.destroy=function(){var t=this.destroyed;t||(this.attrs={},i.prototype.destroy.call(this))},r.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},r.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var a=this.get("animations")||[];n.timer||n.initTimer();var o=t[0],s=t[1],l=t[2],h=l===void 0?"easeLinear":l,u=t[3],c=u===void 0?Ee:u,f=t[4],v=f===void 0?0:f,p,g,d,m,w;R(o)?(p=o,o={}):Q(o)&&o.onFrame&&(p=o.onFrame,g=o.repeat),Q(s)?(w=s,s=w.duration,h=w.easing||"easeLinear",v=w.delay||0,g=w.repeat||g||!1,c=w.callback||Ee,d=w.pauseCallback||Ee,m=w.resumeCallback||Ee):(W(c)&&(v=c,c=null),R(h)?(c=h,h="easeLinear"):h=h||"easeLinear");var x=ng(o,this),C={fromAttrs:ig(x,this),toAttrs:x,duration:s,easing:h,repeat:g,callback:c,pauseCallback:d,resumeCallback:m,delay:v,startTime:n.getTime(),id:Ve(),onFrame:p,pathFormatted:!1};a.length>0?a=ag(a,C):n.addAnimator(this),a.push(C),this.set("animations",a),this.set("_pause",{isPaused:!1})}},r.prototype.stopAnimate=function(t){var e=this;t===void 0&&(t=!0);var n=this.get("animations");M(n,function(a){t&&(a.onFrame?e.attr(a.onFrame(1)):e.attr(a.toAttrs)),a.callback&&a.callback()}),this.set("animating",!1),this.set("animations",[])},r.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return M(e,function(a){a._paused=!0,a._pauseTime=n,a.pauseCallback&&a.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},r.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),a=this.get("_pause").pauseTime;return M(n,function(o){o.startTime=o.startTime+(e-a),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},r.prototype.emitDelegation=function(t,e){var n=this,a=e.propagationPath;this.getEvents();var o;t==="mouseenter"?o=e.fromShape:t==="mouseleave"&&(o=e.toShape);for(var s=function(c){var f=a[c],v=f.get("name");if(v){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&mu(f,o))return"break";I(v)?M(v,function(p){n.emitDelegateEvent(f,p,e)}):l.emitDelegateEvent(f,v,e)}},l=this,h=0;h<a.length;h++){var u=s(h);if(u==="break")break}},r.prototype.emitDelegateEvent=function(t,e,n){var a=this.getEvents(),o=e+tg+n.type;(a[o]||a[eg])&&(n.name=o,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(o,n))},r.prototype.translate=function(t,e){t===void 0&&(t=0),e===void 0&&(e=0);var n=this.getMatrix(),a=Vr(n,[["t",t,e]]);return this.setMatrix(a),this},r.prototype.move=function(t,e){var n=this.attr("x")||0,a=this.attr("y")||0;return this.translate(t-n,e-a),this},r.prototype.moveTo=function(t,e){return this.move(t,e)},r.prototype.scale=function(t,e){var n=this.getMatrix(),a=Vr(n,[["s",t,e||t]]);return this.setMatrix(a),this},r.prototype.rotate=function(t){var e=this.getMatrix(),n=Vr(e,[["r",t]]);return this.setMatrix(n),this},r.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,a=e.y,o=this.getMatrix(),s=Vr(o,[["t",-n,-a],["r",t],["t",n,a]]);return this.setMatrix(s),this},r.prototype.rotateAtPoint=function(t,e,n){var a=this.getMatrix(),o=Vr(a,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(o),this},r}(Pn),tl={},Wa="_INDEX";function bu(i,r){if(i.set("canvas",r),i.isGroup()){var t=i.get("children");t.length&&t.forEach(function(e){bu(e,r)})}}function Tu(i,r){if(i.set("timeline",r),i.isGroup()){var t=i.get("children");t.length&&t.forEach(function(e){Tu(e,r)})}}function og(i,r,t){t===void 0&&(t=!0),t?r.destroy():(r.set("parent",null),r.set("canvas",null)),yu(i.getChildren(),r)}function sg(i){return function(r,t){var e=i(r,t);return e===0?r[Wa]-t[Wa]:e}}var Lu=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isCanvas=function(){return!1},r.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,a=-1/0,o=[],s=[],l=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});l.length>0?(M(l,function(u){var c=u.getBBox();o.push(c.minX,c.maxX),s.push(c.minY,c.maxY)}),t=$t(o),e=Yt(o),n=$t(s),a=Yt(s)):(t=0,e=0,n=0,a=0);var h={x:t,y:n,minX:t,minY:n,maxX:e,maxY:a,width:e-t,height:a-n};return h},r.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,a=-1/0,o=[],s=[],l=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});l.length>0?(M(l,function(u){var c=u.getCanvasBBox();o.push(c.minX,c.maxX),s.push(c.minY,c.maxY)}),t=$t(o),e=Yt(o),n=$t(s),a=Yt(s)):(t=0,e=0,n=0,a=0);var h={x:t,y:n,minX:t,minY:n,maxX:e,maxY:a,width:e-t,height:a-n};return h},r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return t.children=[],t},r.prototype.onAttrChange=function(t,e,n){if(i.prototype.onAttrChange.call(this,t,e,n),t==="matrix"){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},r.prototype.applyMatrix=function(t){var e=this.getTotalMatrix();i.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==e&&this._applyChildrenMarix(n)},r.prototype._applyChildrenMarix=function(t){var e=this.getChildren();M(e,function(n){n.applyMatrix(t)})},r.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],a=t[1];Q(n)?a=n:a.type=n;var o=tl[a.type];o||(o=or(a.type),tl[a.type]=o);var s=this.getShapeBase(),l=new s[o](a);return this.add(l),l},r.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],a=t[1],o;if(R(n))a?o=new n(a):o=new n({parent:this});else{var s=n||{},l=this.getGroupBase();o=new l(s)}return this.add(o),o},r.prototype.getCanvas=function(){var t;return this.isCanvas()?t=this:t=this.get("canvas"),t},r.prototype.getShape=function(t,e,n){if(!li(this))return null;var a=this.getChildren(),o;if(this.isCanvas())o=this._findShape(a,t,e,n);else{var s=[t,e,1];s=this.invertFromMatrix(s),this.isClipped(s[0],s[1])||(o=this._findShape(a,s[0],s[1],n))}return o},r.prototype._findShape=function(t,e,n,a){for(var o=null,s=t.length-1;s>=0;s--){var l=t[s];if(li(l)&&(l.isGroup()?o=l.getShape(e,n,a):l.isHit(e,n)&&(o=l)),o)break}return o},r.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),a=this.get("timeline"),o=t.getParent();o&&og(o,t,!1),t.set("parent",this),e&&bu(t,e),a&&Tu(t,a),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},r.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},r.prototype.getChildren=function(){return this.get("children")},r.prototype.sort=function(){var t=this.getChildren();M(t,function(e,n){return e[Wa]=n,e}),t.sort(sg(function(e,n){return e.get("zIndex")-n.get("zIndex")})),this.onCanvasChange("sort")},r.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},r.prototype.destroy=function(){this.get("destroyed")||(this.clear(),i.prototype.destroy.call(this))},r.prototype.getFirst=function(){return this.getChildByIndex(0)},r.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},r.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},r.prototype.getCount=function(){var t=this.getChildren();return t.length},r.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},r.prototype.removeChild=function(t,e){e===void 0&&(e=!0),this.contain(t)&&t.remove(e)},r.prototype.findAll=function(t){var e=[],n=this.getChildren();return M(n,function(a){t(a)&&e.push(a),a.isGroup()&&(e=e.concat(a.findAll(t)))}),e},r.prototype.find=function(t){var e=null,n=this.getChildren();return M(n,function(a){if(t(a)?e=a:a.isGroup()&&(e=a.find(t)),e)return!1}),e},r.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},r.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},r.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},r}(Au),lg=function(i){return["fill","stroke","fillStyle","strokeStyle"].includes(i)},hg=function(i){return/^[r,R,L,l]{1}[\s]*\(/.test(i)},el=[1,0,0,0,1,0,0,0,1];function ug(i,r,t){var e={},n=r.fromAttrs,a=r.toAttrs;if(!i.destroyed){var o;for(var s in a)if(!st(n[s],a[s]))if(s==="path"){var l=a[s],h=n[s];l.length>h.length?(l=gr(a[s]),h=gr(n[s]),h=gu(h,l),h=za(h,l),r.fromAttrs.path=h,r.toAttrs.path=l):r.pathFormatted||(l=gr(a[s]),h=gr(n[s]),h=za(h,l),r.fromAttrs.path=h,r.toAttrs.path=l,r.pathFormatted=!0),e[s]=[];for(var u=0;u<l.length;u++){for(var c=l[u],f=h[u],v=[],p=0;p<c.length;p++)W(c[p])&&f&&W(f[p])?(o=Bs(f[p],c[p]),v.push(o(t))):v.push(c[p]);e[s].push(v)}}else if(s==="matrix"){var g=nv(n[s]||el,a[s]||el),d=g(t);e[s]=d}else lg(s)&&hg(a[s])?e[s]=a[s]:R(a[s])||(o=Bs(n[s],a[s]),e[s]=o(t));i.attr(e)}}function cg(i,r,t){var e=r.startTime,n=r.delay;if(t<e+n||r._paused)return!1;var a,o=r.duration,s=r.easing;if(t=t-e-r.delay,r.repeat)a=t%o/o,a=Ys[s](a);else if(a=t/o,a<1)a=Ys[s](a);else return r.onFrame?i.attr(r.onFrame(1)):i.attr(r.toAttrs),!0;if(r.onFrame){var l=r.onFrame(a);i.attr(l)}else ug(i,r,a);return!1}var fg=function(){function i(r){this.animators=[],this.current=0,this.timer=null,this.canvas=r}return i.prototype.initTimer=function(){var r=this,t=!1,e,n,a;this.timer=iv(function(o){if(r.current=o,r.animators.length>0){for(var s=r.animators.length-1;s>=0;s--){if(e=r.animators[s],e.destroyed){r.removeAnimator(s);continue}if(!e.isAnimatePaused()){n=e.get("animations");for(var l=n.length-1;l>=0;l--)a=n[l],t=cg(e,a,o),t&&(n.splice(l,1),t=!1,a.callback&&a.callback())}n.length===0&&r.removeAnimator(s)}var h=r.canvas.get("autoDraw");h||r.canvas.draw()}})},i.prototype.addAnimator=function(r){this.animators.push(r)},i.prototype.removeAnimator=function(r){this.animators.splice(r,1)},i.prototype.isAnimating=function(){return!!this.animators.length},i.prototype.stop=function(){this.timer&&this.timer.stop()},i.prototype.stopAllAnimations=function(r){r===void 0&&(r=!0),this.animators.forEach(function(t){t.stopAnimate(r)}),this.animators=[],this.canvas.draw()},i.prototype.getTime=function(){return this.current},i}(),vg=40,rl=0,il=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function nl(i,r,t){t.name=r,t.target=i,t.currentTarget=i,t.delegateTarget=i,i.emit(r,t)}function pg(i,r,t){if(t.bubbles){var e=void 0,n=!1;if(r==="mouseenter"?(e=t.fromShape,n=!0):r==="mouseleave"&&(n=!0,e=t.toShape),i.isCanvas()&&n)return;if(e&&mu(i,e)){t.bubbles=!1;return}t.name=r,t.currentTarget=i,t.delegateTarget=i,i.emit(r,t)}}var gg=function(){function i(r){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){var n=t.canvas,a=n.get("el");if(a!==e.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(e);t.dragging&&t._emitEvent("drag",e,o,t.draggingShape)}},this._onDocumentMouseUp=function(e){var n=t.canvas,a=n.get("el");if(a!==e.target&&t.dragging){var o=t._getPointInfo(e);t.draggingShape&&t._emitEvent("drop",e,o,null),t._emitEvent("dragend",e,o,t.draggingShape),t._afterDrag(t.draggingShape,o,e)}},this.canvas=r.canvas}return i.prototype.init=function(){this._bindEvents()},i.prototype._bindEvents=function(){var r=this,t=this.canvas.get("el");M(il,function(e){t.addEventListener(e,r._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},i.prototype._clearEvents=function(){var r=this,t=this.canvas.get("el");M(il,function(e){t.removeEventListener(e,r._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},i.prototype._getEventObj=function(r,t,e,n,a,o){var s=new Mi(r,t);return s.fromShape=a,s.toShape=o,s.x=e.x,s.y=e.y,s.clientX=e.clientX,s.clientY=e.clientY,s.propagationPath.push(n),s},i.prototype._getShape=function(r,t){return this.canvas.getShape(r.x,r.y,t)},i.prototype._getPointInfo=function(r){var t=this.canvas,e=t.getClientByEvent(r),n=t.getPointByEvent(r);return{x:n.x,y:n.y,clientX:e.x,clientY:e.y}},i.prototype._triggerEvent=function(r,t){var e=this._getPointInfo(t),n=this._getShape(e,t),a=this["_on"+r],o=!1;if(a)a.call(this,e,n,t);else{var s=this.currentShape;r==="mouseenter"||r==="dragenter"||r==="mouseover"?(this._emitEvent(r,t,e,null,null,n),n&&this._emitEvent(r,t,e,n,null,n),r==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,e,null)):r==="mouseleave"||r==="dragleave"||r==="mouseout"?(o=!0,s&&this._emitEvent(r,t,e,s,s,null),this._emitEvent(r,t,e,null,s,null),r==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,e,null)):this._emitEvent(r,t,e,n,null,null)}if(o||(this.currentShape=n),n&&!n.get("destroyed")){var l=this.canvas,h=l.get("el");h.style.cursor=n.attr("cursor")||l.get("cursor")}},i.prototype._onmousedown=function(r,t,e){e.button===rl&&(this.mousedownShape=t,this.mousedownPoint=r,this.mousedownTimeStamp=e.timeStamp),this._emitEvent("mousedown",e,r,t,null,null)},i.prototype._emitMouseoverEvents=function(r,t,e,n){var a=this.canvas.get("el");e!==n&&(e&&(this._emitEvent("mouseout",r,t,e,e,n),this._emitEvent("mouseleave",r,t,e,e,n),(!n||n.get("destroyed"))&&(a.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",r,t,n,e,n),this._emitEvent("mouseenter",r,t,n,e,n)))},i.prototype._emitDragoverEvents=function(r,t,e,n,a){n?(n!==e&&(e&&this._emitEvent("dragleave",r,t,e,e,n),this._emitEvent("dragenter",r,t,n,e,n)),a||this._emitEvent("dragover",r,t,n)):e&&this._emitEvent("dragleave",r,t,e,e,n),a&&this._emitEvent("dragover",r,t,n)},i.prototype._afterDrag=function(r,t,e){r&&(r.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(t,e);n!==r&&this._emitMouseoverEvents(e,t,r,n),this.currentShape=n},i.prototype._onmouseup=function(r,t,e){if(e.button===rl){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",e,r,t),this._emitEvent("dragend",e,r,n),this._afterDrag(n,r,e)):(this._emitEvent("mouseup",e,r,t),t===this.mousedownShape&&this._emitEvent("click",e,r,t),this.mousedownShape=null,this.mousedownPoint=null)}},i.prototype._ondragover=function(r,t,e){e.preventDefault();var n=this.currentShape;this._emitDragoverEvents(e,r,n,t,!0)},i.prototype._onmousemove=function(r,t,e){var n=this.canvas,a=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(e,r,a,t,!1),this._emitEvent("drag",e,r,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,h=e.timeStamp,u=h-this.mousedownTimeStamp,c=s.clientX-r.clientX,f=s.clientY-r.clientY,v=c*c+f*f;u>120||v>vg?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",e,r,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",e,r,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t)):(this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t))}else this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t)}},i.prototype._emitEvent=function(r,t,e,n,a,o){var s=this._getEventObj(r,t,e,n,a,o);if(n){s.shape=n,nl(n,r,s);for(var l=n.getParent();l;)l.emitDelegation(r,s),s.propagationStopped||pg(l,r,s),s.propagationPath.push(l),l=l.getParent()}else{var h=this.canvas;nl(h,r,s)}},i.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},i}(),al="px",ol=xu(),dg=ol&&ol.name==="firefox",Dn=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.initContainer(),e.initDom(),e.initEvents(),e.initTimeline(),e}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},r.prototype.initContainer=function(){var t=this.get("container");H(t)&&(t=document.getElementById(t),this.set("container",t))},r.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},r.prototype.initEvents=function(){var t=new gg({canvas:this});t.init(),this.set("eventController",t)},r.prototype.initTimeline=function(){var t=new fg(this);this.set("timeline",t)},r.prototype.setDOMSize=function(t,e){var n=this.get("el");js&&(n.style.width=t+al,n.style.height=e+al)},r.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},r.prototype.getRenderer=function(){return this.get("renderer")},r.prototype.getCursor=function(){return this.get("cursor")},r.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");js&&e&&(e.style.cursor=t)},r.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(dg&&!E(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!E(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),a=n.x,o=n.y;return this.getPointByClient(a,o)},r.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(t.type==="touchend"?e=t.changedTouches[0]:e=t.touches[0]),{x:e.clientX,y:e.clientY}},r.prototype.getPointByClient=function(t,e){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t-a.left,y:e-a.top}},r.prototype.getClientByPoint=function(t,e){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t+a.left,y:e+a.top}},r.prototype.draw=function(){},r.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},r.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},r.prototype.isCanvas=function(){return!0},r.prototype.getParent=function(){return null},r.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),i.prototype.destroy.call(this))},r}(Lu),Rn=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isGroup=function(){return!0},r.prototype.isEntityGroup=function(){return!1},r.prototype.clone=function(){for(var t=i.prototype.clone.call(this),e=this.getChildren(),n=0;n<e.length;n++){var a=e[n];t.add(a.clone())}return t},r}(Lu),Yn=function(i){T(r,i);function r(t){return i.call(this,t)||this}return r.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},r.prototype.afterAttrsChange=function(t){i.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},r.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},r.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},r.prototype.applyMatrix=function(t){i.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},r.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,a=t.minY,o=t.maxX,s=t.maxY;if(e){var l=fe(e,[t.minX,t.minY]),h=fe(e,[t.maxX,t.minY]),u=fe(e,[t.minX,t.maxY]),c=fe(e,[t.maxX,t.maxY]);n=Math.min(l[0],h[0],u[0],c[0]),o=Math.max(l[0],h[0],u[0],c[0]),a=Math.min(l[1],h[1],u[1],c[1]),s=Math.max(l[1],h[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var v=f.shadowBlur,p=v===void 0?0:v,g=f.shadowOffsetX,d=g===void 0?0:g,m=f.shadowOffsetY,w=m===void 0?0:m,x=n-p+d,C=o+p+d,S=a-p+w,b=s+p+w;n=Math.min(n,x),o=Math.max(o,C),a=Math.min(a,S),s=Math.max(s,b)}return{x:n,y:a,minX:n,minY:a,maxX:o,maxY:s,width:o-n,height:s-a}},r.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},r.prototype.isClipShape=function(){return this.get("isClipShape")},r.prototype.isInShape=function(t,e){return!1},r.prototype.isOnlyHitBox=function(){return!1},r.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),a=this.get("endArrowShape"),o=[t,e,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],h=this._isInBBox(s,l);return this.isOnlyHitBox()?h:!!(h&&!this.isClipped(s,l)&&(this.isInShape(s,l)||n&&n.isHit(s,l)||a&&a.isHit(s,l)))},r}(Au),Eu=new Map;function se(i,r){Eu.set(i,r)}function Gn(i){return Eu.get(i)}function Bu(i){var r=i.attr(),t=r.x,e=r.y,n=r.width,a=r.height;return{x:t,y:e,width:n,height:a}}function Iu(i){var r=i.attr(),t=r.x,e=r.y,n=r.r;return{x:t-n,y:e-n,width:n*2,height:n*2}}function sl(i){return Math.min.apply(null,i)}function ll(i){return Math.max.apply(null,i)}function Mt(i,r,t,e){var n=i-t,a=r-e;return Math.sqrt(n*n+a*a)}function ln(i,r){return Math.abs(i-r)<.001}function kr(i,r){var t=sl(i),e=sl(r),n=ll(i),a=ll(r);return{x:t,y:e,width:n-t,height:a-e}}function Hn(i){return(i+Math.PI*2)%(Math.PI*2)}const ft={box:function(i,r,t,e){return kr([i,t],[r,e])},length:function(i,r,t,e){return Mt(i,r,t,e)},pointAt:function(i,r,t,e,n){return{x:(1-n)*i+n*t,y:(1-n)*r+n*e}},pointDistance:function(i,r,t,e,n,a){var o=(t-i)*(n-i)+(e-r)*(a-r);if(o<0)return Mt(i,r,n,a);var s=(t-i)*(t-i)+(e-r)*(e-r);return o>s?Mt(t,e,n,a):this.pointToLine(i,r,t,e,n,a)},pointToLine:function(i,r,t,e,n,a){var o=[t-i,e-r];if(qp(o,[0,0]))return Math.sqrt((n-i)*(n-i)+(a-r)*(a-r));var s=[-o[1],o[0]];Cu(s,s);var l=[n-i,a-r];return Math.abs(Mu(l,s))},tangentAngle:function(i,r,t,e){return Math.atan2(e-r,t-i)}};var yg=1e-4;function ku(i,r,t,e,n,a){var o,s=1/0,l=[t,e],h=20;a&&a>200&&(h=a/10);for(var u=1/h,c=u/10,f=0;f<=h;f++){var v=f*u,p=[n.apply(null,i.concat([v])),n.apply(null,r.concat([v]))],g=Mt(l[0],l[1],p[0],p[1]);g<s&&(o=v,s=g)}if(o===0)return{x:i[0],y:r[0]};if(o===1){var d=i.length;return{x:i[d-1],y:r[d-1]}}s=1/0;for(var f=0;f<32&&!(c<yg);f++){var m=o-c,w=o+c,p=[n.apply(null,i.concat([m])),n.apply(null,r.concat([m]))],g=Mt(l[0],l[1],p[0],p[1]);if(m>=0&&g<s)o=m,s=g;else{var x=[n.apply(null,i.concat([w])),n.apply(null,r.concat([w]))],C=Mt(l[0],l[1],x[0],x[1]);w<=1&&C<s?(o=w,s=C):c*=.5}}return{x:n.apply(null,i.concat([o])),y:n.apply(null,r.concat([o]))}}function mg(i,r){for(var t=0,e=i.length,n=0;n<e;n++){var a=i[n],o=r[n],s=i[(n+1)%e],l=r[(n+1)%e];t+=Mt(a,o,s,l)}return t/2}function Ae(i,r,t,e){var n=1-e;return n*n*i+2*e*n*r+e*e*t}function hl(i,r,t){var e=i+t-2*r;if(ln(e,0))return[.5];var n=(i-r)/e;return n<=1&&n>=0?[n]:[]}function ul(i,r,t,e){return 2*(1-e)*(r-i)+2*e*(t-r)}function Pu(i,r,t,e,n,a,o){var s=Ae(i,t,n,o),l=Ae(r,e,a,o),h=ft.pointAt(i,r,t,e,o),u=ft.pointAt(t,e,n,a,o);return[[i,r,h.x,h.y,s,l],[s,l,u.x,u.y,n,a]]}function _a(i,r,t,e,n,a,o){if(o===0)return(Mt(i,r,t,e)+Mt(t,e,n,a)+Mt(i,r,n,a))/2;var s=Pu(i,r,t,e,n,a,.5),l=s[0],h=s[1];return l.push(o-1),h.push(o-1),_a.apply(null,l)+_a.apply(null,h)}const Fu={box:function(i,r,t,e,n,a){var o=hl(i,t,n)[0],s=hl(r,e,a)[0],l=[i,n],h=[r,a];return o!==void 0&&l.push(Ae(i,t,n,o)),s!==void 0&&h.push(Ae(r,e,a,s)),kr(l,h)},length:function(i,r,t,e,n,a){return _a(i,r,t,e,n,a,3)},nearestPoint:function(i,r,t,e,n,a,o,s){return ku([i,t,n],[r,e,a],o,s,Ae)},pointDistance:function(i,r,t,e,n,a,o,s){var l=this.nearestPoint(i,r,t,e,n,a,o,s);return Mt(l.x,l.y,o,s)},interpolationAt:Ae,pointAt:function(i,r,t,e,n,a,o){return{x:Ae(i,t,n,o),y:Ae(r,e,a,o)}},divide:function(i,r,t,e,n,a,o){return Pu(i,r,t,e,n,a,o)},tangentAngle:function(i,r,t,e,n,a,o){var s=ul(i,t,n,o),l=ul(r,e,a,o),h=Math.atan2(l,s);return Hn(h)}};function be(i,r,t,e,n){var a=1-n;return a*a*a*i+3*r*n*a*a+3*t*n*n*a+e*n*n*n}function cl(i,r,t,e,n){var a=1-n;return 3*(a*a*(r-i)+2*a*n*(t-r)+n*n*(e-t))}function pa(i,r,t,e){var n=-3*i+9*r-9*t+3*e,a=6*i-12*r+6*t,o=3*r-3*i,s=[],l,h,u;if(ln(n,0))ln(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var c=a*a-4*n*o;ln(c,0)?s.push(-a/(2*n)):c>0&&(u=Math.sqrt(c),l=(-a+u)/(2*n),h=(-a-u)/(2*n),l>=0&&l<=1&&s.push(l),h>=0&&h<=1&&s.push(h))}return s}function Ou(i,r,t,e,n,a,o,s,l){var h=be(i,t,n,o,l),u=be(r,e,a,s,l),c=ft.pointAt(i,r,t,e,l),f=ft.pointAt(t,e,n,a,l),v=ft.pointAt(n,a,o,s,l),p=ft.pointAt(c.x,c.y,f.x,f.y,l),g=ft.pointAt(f.x,f.y,v.x,v.y,l);return[[i,r,c.x,c.y,p.x,p.y,h,u],[h,u,g.x,g.y,v.x,v.y,o,s]]}function $a(i,r,t,e,n,a,o,s,l){if(l===0)return mg([i,t,n,o],[r,e,a,s]);var h=Ou(i,r,t,e,n,a,o,s,.5),u=h[0],c=h[1];return u.push(l-1),c.push(l-1),$a.apply(null,u)+$a.apply(null,c)}const Qr={extrema:pa,box:function(i,r,t,e,n,a,o,s){for(var l=[i,o],h=[r,s],u=pa(i,t,n,o),c=pa(r,e,a,s),f=0;f<u.length;f++)l.push(be(i,t,n,o,u[f]));for(var f=0;f<c.length;f++)h.push(be(r,e,a,s,c[f]));return kr(l,h)},length:function(i,r,t,e,n,a,o,s){return $a(i,r,t,e,n,a,o,s,3)},nearestPoint:function(i,r,t,e,n,a,o,s,l,h,u){return ku([i,t,n,o],[r,e,a,s],l,h,be,u)},pointDistance:function(i,r,t,e,n,a,o,s,l,h,u){var c=this.nearestPoint(i,r,t,e,n,a,o,s,l,h,u);return Mt(c.x,c.y,l,h)},interpolationAt:be,pointAt:function(i,r,t,e,n,a,o,s,l){return{x:be(i,t,n,o,l),y:be(r,e,a,s,l)}},divide:function(i,r,t,e,n,a,o,s,l){return Ou(i,r,t,e,n,a,o,s,l)},tangentAngle:function(i,r,t,e,n,a,o,s,l){var h=cl(i,t,n,o,l),u=cl(r,e,a,s,l);return Hn(Math.atan2(u,h))}};function fl(i,r){var t=Math.abs(i);return r>0?t:t*-1}const xg={box:function(i,r,t,e){return{x:i-t,y:r-e,width:t*2,height:e*2}},length:function(i,r,t,e){return Math.PI*(3*(t+e)-Math.sqrt((3*t+e)*(t+3*e)))},nearestPoint:function(i,r,t,e,n,a){var o=t,s=e;if(o===0||s===0)return{x:i,y:r};for(var l=n-i,h=a-r,u=Math.abs(l),c=Math.abs(h),f=o*o,v=s*s,p=Math.PI/4,g,d,m=0;m<4;m++){g=o*Math.cos(p),d=s*Math.sin(p);var w=(f-v)*Math.pow(Math.cos(p),3)/o,x=(v-f)*Math.pow(Math.sin(p),3)/s,C=g-w,S=d-x,b=u-w,L=c-x,B=Math.hypot(S,C),P=Math.hypot(L,b),F=B*Math.asin((C*L-S*b)/(B*P)),D=F/Math.sqrt(f+v-g*g-d*d);p+=D,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:i+fl(g,l),y:r+fl(d,h)}},pointDistance:function(i,r,t,e,n,a){var o=this.nearestPoint(i,r,t,e,n,a);return Mt(o.x,o.y,n,a)},pointAt:function(i,r,t,e,n){var a=2*Math.PI*n;return{x:i+t*Math.cos(a),y:r+e*Math.sin(a)}},tangentAngle:function(i,r,t,e,n){var a=2*Math.PI*n,o=Math.atan2(e*Math.cos(a),-t*Math.sin(a));return Hn(o)}};function wg(i,r,t,e,n,a,o,s){return-1*t*Math.cos(n)*Math.sin(s)-e*Math.sin(n)*Math.cos(s)}function Cg(i,r,t,e,n,a,o,s){return-1*t*Math.sin(n)*Math.sin(s)+e*Math.cos(n)*Math.cos(s)}function Mg(i,r,t){return Math.atan(-r/i*Math.tan(t))}function Sg(i,r,t){return Math.atan(r/(i*Math.tan(t)))}function vl(i,r,t,e,n,a){return t*Math.cos(n)*Math.cos(a)-e*Math.sin(n)*Math.sin(a)+i}function pl(i,r,t,e,n,a){return t*Math.sin(n)*Math.cos(a)+e*Math.cos(n)*Math.sin(a)+r}function Ag(i,r,t,e){var n=Math.atan2(e*i,t*r);return(n+Math.PI*2)%(Math.PI*2)}function gl(i,r,t){return{x:i*Math.cos(t),y:r*Math.sin(t)}}function dl(i,r,t){var e=Math.cos(t),n=Math.sin(t);return[i*e-r*n,i*n+r*e]}const bg={box:function(i,r,t,e,n,a,o){for(var s=Mg(t,e,n),l=1/0,h=-1/0,u=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var f=s+c;a<o?a<f&&f<o&&u.push(f):o<f&&f<a&&u.push(f)}for(var c=0;c<u.length;c++){var v=vl(i,r,t,e,n,u[c]);v<l&&(l=v),v>h&&(h=v)}for(var p=Sg(t,e,n),g=1/0,d=-1/0,m=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var w=p+c;a<o?a<w&&w<o&&m.push(w):o<w&&w<a&&m.push(w)}for(var c=0;c<m.length;c++){var x=pl(i,r,t,e,n,m[c]);x<g&&(g=x),x>d&&(d=x)}return{x:l,y:g,width:h-l,height:d-g}},length:function(i,r,t,e,n,a,o){},nearestPoint:function(i,r,t,e,n,a,o,s,l){var h=dl(s-i,l-r,-n),u=h[0],c=h[1],f=xg.nearestPoint(0,0,t,e,u,c),v=Ag(t,e,f.x,f.y);v<a?f=gl(t,e,a):v>o&&(f=gl(t,e,o));var p=dl(f.x,f.y,n);return{x:p[0]+i,y:p[1]+r}},pointDistance:function(i,r,t,e,n,a,o,s,l){var h=this.nearestPoint(i,r,t,e,s,l);return Mt(h.x,h.y,s,l)},pointAt:function(i,r,t,e,n,a,o,s){var l=(o-a)*s+a;return{x:vl(i,r,t,e,n,l),y:pl(i,r,t,e,n,l)}},tangentAngle:function(i,r,t,e,n,a,o,s){var l=(o-a)*s+a,h=wg(i,r,t,e,n,a,o,l),u=Cg(i,r,t,e,n,a,o,l);return Hn(Math.atan2(u,h))}};function Du(i){for(var r=0,t=[],e=0;e<i.length-1;e++){var n=i[e],a=i[e+1],o=Mt(n[0],n[1],a[0],a[1]),s={from:n,to:a,length:o};t.push(s),r+=o}return{segments:t,totalLength:r}}function Tg(i){if(i.length<2)return 0;for(var r=0,t=0;t<i.length-1;t++){var e=i[t],n=i[t+1];r+=Mt(e[0],e[1],n[0],n[1])}return r}function Lg(i,r){if(r>1||r<0||i.length<2)return null;var t=Du(i),e=t.segments,n=t.totalLength;if(n===0)return{x:i[0][0],y:i[0][1]};for(var a=0,o=null,s=0;s<e.length;s++){var l=e[s],h=l.from,u=l.to,c=l.length/n;if(r>=a&&r<=a+c){var f=(r-a)/c;o=ft.pointAt(h[0],h[1],u[0],u[1],f);break}a+=c}return o}function Eg(i,r){if(r>1||r<0||i.length<2)return 0;for(var t=Du(i),e=t.segments,n=t.totalLength,a=0,o=0,s=0;s<e.length;s++){var l=e[s],h=l.from,u=l.to,c=l.length/n;if(r>=a&&r<=a+c){o=Math.atan2(u[1]-h[1],u[0]-h[0]);break}a+=c}return o}function Bg(i,r,t){for(var e=1/0,n=0;n<i.length-1;n++){var a=i[n],o=i[n+1],s=ft.pointDistance(a[0],a[1],o[0],o[1],r,t);s<e&&(e=s)}return e}const Ru={box:function(i){for(var r=[],t=[],e=0;e<i.length;e++){var n=i[e];r.push(n[0]),t.push(n[1])}return kr(r,t)},length:function(i){return Tg(i)},pointAt:function(i,r){return Lg(i,r)},pointDistance:function(i,r,t){return Bg(i,r,t)},tangentAngle:function(i,r){return Eg(i,r)}};function yl(i,r){return!i||!r?i||r:{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}}function Po(i,r){var t=i.get("startArrowShape"),e=i.get("endArrowShape"),n=null,a=null;return t&&(n=t.getCanvasBBox(),r=yl(r,n)),e&&(a=e.getCanvasBBox(),r=yl(r,a)),r}function Ig(i){for(var r=i.attr(),t=r.points,e=[],n=[],a=0;a<t.length;a++){var o=t[a];e.push(o[0]),n.push(o[1])}var s=kr(e,n),l=s.x,h=s.y,u=s.width,c=s.height,f={minX:l,minY:h,maxX:l+u,maxY:h+c};return f=Po(i,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}function kg(i){for(var r=i.attr(),t=r.points,e=[],n=[],a=0;a<t.length;a++){var o=t[a];e.push(o[0]),n.push(o[1])}return kr(e,n)}var ga=null;function Vn(){if(!ga){var i=document.createElement("canvas");i.width=1,i.height=1,ga=i.getContext("2d")}return ga}function Xn(i,r,t){var e=1;if(H(i)&&(e=i.split(`
3
3
  `).length),e>1){var n=Pg(r,t);return r*e+n*(e-1)}return r}function Pg(i,r){return r?r-i:i*.14}function Fg(i,r){var t=Vn(),e=0;if(E(i)||i==="")return e;if(t.save(),t.font=r,H(i)&&i.includes(`
4
4
  `)){var n=i.split(`
@@ -1,4 +1,4 @@
1
- import{z as I,A as T,B as y,D as V,E as Ee}from"./index-9fe5cfc3.js";import{u as Ie,T as ve,a as Pe,f as O,d as Q,c as _e,b as Fe,e as q,g as p,l as S,h as R,i as K,j as E,k as Le}from"./useThemeProps-4c07ccd3.js";import{t as Vt,o as Ot,v as jt,w as Rt,q as Kt,s as Gt,m as zt,n as Ut,p as Ht,r as Wt,x as qt}from"./useThemeProps-4c07ccd3.js";import{C as Me,c as De,G as Ve,d as Oe,T as je,u as Re,g as Ke}from"./Paper-fd23f413.js";import{a as Qt,s as Jt,k as Xt,s as Zt,b as Nt}from"./Paper-fd23f413.js";const Ge=De({key:"css",prepend:!0});function Tt(r){const{injectFirst:o,children:s}=r;return o?I(Me,{value:Ge,children:s}):s}function ze(r){return r==null||Object.keys(r).length===0}function H(r){const{styles:o,defaultTheme:s={}}=r;return I(Ve,{styles:typeof o=="function"?l=>o(ze(l)?s:l):o})}function At(r){return({theme:o})=>Oe({sx:r,theme:o})}const Ue=typeof Symbol=="function"&&Symbol.for,He=Ue?Symbol.for("mui.nested"):"__THEME_NESTED__";function We(r,o){return typeof o=="function"?o(r):y({},r,o)}function qe(r){const{children:o,theme:s}=r,i=Ie(),l=T.useMemo(()=>{const m=i===null?s:We(i,s);return m!=null&&(m[He]=i!==null),m},[s,i]);return I(ve.Provider,{value:l,children:o})}function Ye(r){const o=Pe();return I(je.Provider,{value:typeof o=="object"?o:{},children:r.children})}function Qe(r){const{children:o,theme:s}=r;return I(qe,{theme:s,children:I(Ye,{children:o})})}const ce=(r,o,s,i=[])=>{let l=r;o.forEach((m,c)=>{c===o.length-1?Array.isArray(l)?l[Number(m)]=s:l&&typeof l=="object"&&(l[m]=s):l&&typeof l=="object"&&(l[m]||(l[m]=i.includes(m)?[]:{}),l=l[m])})},Je=(r,o,s)=>{function i(l,m=[],c=[]){Object.entries(l).forEach(([g,a])=>{(!s||s&&!s([...m,g]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?i(a,[...m,g],Array.isArray(a)?[...c,g]:c):o([...m,g],a,c))})}i(r)},Xe=(r,o)=>typeof o=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>r.includes(i))||r[r.length-1].toLowerCase().indexOf("opacity")>=0?o:`${o}px`:o;function de(r,o){const{prefix:s,shouldSkipGeneratingVar:i}=o||{},l={},m={},c={};return Je(r,(g,a,f)=>{if((typeof a=="string"||typeof a=="number")&&(!i||i&&!i(g,a))){const b=`--${s?`${s}-`:""}${g.join("-")}`;Object.assign(l,{[b]:Xe(g,a)}),ce(m,g,`var(${b})`,f)}ce(c,g,a,f)},g=>g[0]==="vars"),{css:l,vars:m,parsedTheme:c}}const J="mode",X="color-scheme",ue="data-color-scheme";function Ze(r){const{enableColorScheme:o=!0,enableSystem:s=!1,defaultLightColorScheme:i="light",defaultDarkColorScheme:l="dark",modeStorageKey:m=J,colorSchemeStorageKey:c=X,attribute:g=ue,colorSchemeNode:a="document.documentElement"}=r||{};return I("script",{dangerouslySetInnerHTML:{__html:`(function() { try {
1
+ import{z as I,A as T,B as y,D as V,E as Ee}from"./index-98d98a8e.js";import{u as Ie,T as ve,a as Pe,f as O,d as Q,c as _e,b as Fe,e as q,g as p,l as S,h as R,i as K,j as E,k as Le}from"./useThemeProps-fea5f4d7.js";import{t as Vt,o as Ot,v as jt,w as Rt,q as Kt,s as Gt,m as zt,n as Ut,p as Ht,r as Wt,x as qt}from"./useThemeProps-fea5f4d7.js";import{C as Me,c as De,G as Ve,d as Oe,T as je,u as Re,g as Ke}from"./Paper-4d147184.js";import{a as Qt,s as Jt,k as Xt,s as Zt,b as Nt}from"./Paper-4d147184.js";const Ge=De({key:"css",prepend:!0});function Tt(r){const{injectFirst:o,children:s}=r;return o?I(Me,{value:Ge,children:s}):s}function ze(r){return r==null||Object.keys(r).length===0}function H(r){const{styles:o,defaultTheme:s={}}=r;return I(Ve,{styles:typeof o=="function"?l=>o(ze(l)?s:l):o})}function At(r){return({theme:o})=>Oe({sx:r,theme:o})}const Ue=typeof Symbol=="function"&&Symbol.for,He=Ue?Symbol.for("mui.nested"):"__THEME_NESTED__";function We(r,o){return typeof o=="function"?o(r):y({},r,o)}function qe(r){const{children:o,theme:s}=r,i=Ie(),l=T.useMemo(()=>{const m=i===null?s:We(i,s);return m!=null&&(m[He]=i!==null),m},[s,i]);return I(ve.Provider,{value:l,children:o})}function Ye(r){const o=Pe();return I(je.Provider,{value:typeof o=="object"?o:{},children:r.children})}function Qe(r){const{children:o,theme:s}=r;return I(qe,{theme:s,children:I(Ye,{children:o})})}const ce=(r,o,s,i=[])=>{let l=r;o.forEach((m,c)=>{c===o.length-1?Array.isArray(l)?l[Number(m)]=s:l&&typeof l=="object"&&(l[m]=s):l&&typeof l=="object"&&(l[m]||(l[m]=i.includes(m)?[]:{}),l=l[m])})},Je=(r,o,s)=>{function i(l,m=[],c=[]){Object.entries(l).forEach(([g,a])=>{(!s||s&&!s([...m,g]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?i(a,[...m,g],Array.isArray(a)?[...c,g]:c):o([...m,g],a,c))})}i(r)},Xe=(r,o)=>typeof o=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>r.includes(i))||r[r.length-1].toLowerCase().indexOf("opacity")>=0?o:`${o}px`:o;function de(r,o){const{prefix:s,shouldSkipGeneratingVar:i}=o||{},l={},m={},c={};return Je(r,(g,a,f)=>{if((typeof a=="string"||typeof a=="number")&&(!i||i&&!i(g,a))){const b=`--${s?`${s}-`:""}${g.join("-")}`;Object.assign(l,{[b]:Xe(g,a)}),ce(m,g,`var(${b})`,f)}ce(c,g,a,f)},g=>g[0]==="vars"),{css:l,vars:m,parsedTheme:c}}const J="mode",X="color-scheme",ue="data-color-scheme";function Ze(r){const{enableColorScheme:o=!0,enableSystem:s=!1,defaultLightColorScheme:i="light",defaultDarkColorScheme:l="dark",modeStorageKey:m=J,colorSchemeStorageKey:c=X,attribute:g=ue,colorSchemeNode:a="document.documentElement"}=r||{};return I("script",{dangerouslySetInnerHTML:{__html:`(function() { try {
2
2
  var mode = localStorage.getItem('${m}');
3
3
  var cssColorScheme = mode;
4
4
  var colorScheme = '';
@@ -0,0 +1 @@
1
+ import{L as a,M as e}from"./LocalizationProvider-37783156.js";import"./index-98d98a8e.js";import"./useThemeProps-fea5f4d7.js";export{a as LocalizationProvider,e as MuiPickersAdapterContext};