@devflow-tools/devflow 0.16.10 → 0.16.12

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.
Files changed (134) hide show
  1. package/dist/cli.js +111 -62
  2. package/dist/hooks/hook-client.js +5 -5
  3. package/dist/hooks/hook-daemon.js +32 -14
  4. package/dist/hooks/memory-snapshot-cache.js +11 -0
  5. package/dist/hooks/post-tool-use-failure.js +2 -2
  6. package/dist/hooks/post-tool-use.js +6 -3
  7. package/dist/hooks/pre-compact.js +2 -2
  8. package/dist/hooks/pre-tool-use.js +2 -2
  9. package/dist/hooks/session-end.js +2 -2
  10. package/dist/hooks/stop.js +15 -2
  11. package/dist/hooks/user-prompt-submit.js +14 -5
  12. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  13. package/dist/plugin/dist/command-registry.json +39 -13
  14. package/dist/plugin/dist/hooks/hook-client.js +5 -5
  15. package/dist/plugin/dist/hooks/hook-daemon.js +32 -14
  16. package/dist/plugin/dist/hooks/memory-snapshot-cache.js +11 -0
  17. package/dist/plugin/dist/hooks/post-tool-use-failure.js +2 -2
  18. package/dist/plugin/dist/hooks/post-tool-use.js +6 -3
  19. package/dist/plugin/dist/hooks/pre-compact.js +2 -2
  20. package/dist/plugin/dist/hooks/pre-tool-use.js +2 -2
  21. package/dist/plugin/dist/hooks/session-end.js +2 -2
  22. package/dist/plugin/dist/hooks/stop.js +15 -2
  23. package/dist/plugin/dist/hooks/user-prompt-submit.js +14 -5
  24. package/dist/plugin/dist/skills/devflow:animation/SKILL.md +3 -1
  25. package/dist/plugin/dist/skills/devflow:css/SKILL.md +3 -1
  26. package/dist/plugin/dist/skills/devflow:docker/SKILL.md +3 -1
  27. package/dist/plugin/dist/skills/devflow:electron/SKILL.md +3 -1
  28. package/dist/plugin/dist/skills/devflow:git/SKILL.md +3 -1
  29. package/dist/plugin/dist/skills/devflow:graphql/SKILL.md +3 -1
  30. package/dist/plugin/dist/skills/devflow:nest/SKILL.md +3 -1
  31. package/dist/plugin/dist/skills/devflow:nextjs/SKILL.md +3 -1
  32. package/dist/plugin/dist/skills/devflow:performance/SKILL.md +3 -1
  33. package/dist/plugin/dist/skills/devflow:react/SKILL.md +14 -4
  34. package/dist/plugin/dist/skills/devflow:tailwind/SKILL.md +3 -1
  35. package/dist/plugin/dist/skills/devflow:taro/SKILL.md +3 -1
  36. package/dist/plugin/dist/skills/devflow:ui-layout/SKILL.md +3 -1
  37. package/dist/plugin/dist/skills/devflow:vue/SKILL.md +3 -1
  38. package/dist/plugin/hooks/hooks.json +3 -2
  39. package/dist/plugin/hooks/session-start +66 -82
  40. package/dist/plugin/package.json +7 -7
  41. package/dist/plugin/skills/animation/SKILL.md +3 -1
  42. package/dist/plugin/skills/css/SKILL.md +3 -1
  43. package/dist/plugin/skills/docker/SKILL.md +3 -1
  44. package/dist/plugin/skills/doctor/SKILL.md +1 -1
  45. package/dist/plugin/skills/electron/SKILL.md +3 -1
  46. package/dist/plugin/skills/git/SKILL.md +3 -1
  47. package/dist/plugin/skills/graphql/SKILL.md +3 -1
  48. package/dist/plugin/skills/nest/SKILL.md +3 -1
  49. package/dist/plugin/skills/nextjs/SKILL.md +3 -1
  50. package/dist/plugin/skills/performance/SKILL.md +3 -1
  51. package/dist/plugin/skills/react/SKILL.md +14 -4
  52. package/dist/plugin/skills/tailwind/SKILL.md +3 -1
  53. package/dist/plugin/skills/taro/SKILL.md +3 -1
  54. package/dist/plugin/skills/ui-layout/SKILL.md +3 -1
  55. package/dist/plugin/skills/vue/SKILL.md +3 -1
  56. package/package.json +13 -13
  57. package/plugin-registry.json +29 -29
  58. package/dist/dashboard/404.html +0 -1
  59. package/dist/dashboard/_next/static/E8qR8p8oP4qQpCa0xXyqj/_buildManifest.js +0 -1
  60. package/dist/dashboard/_next/static/E8qR8p8oP4qQpCa0xXyqj/_ssgManifest.js +0 -1
  61. package/dist/dashboard/_next/static/chunks/1dd3208c-f3e84932bdc53383.js +0 -1
  62. package/dist/dashboard/_next/static/chunks/221-893fab1a7d7d9317.js +0 -1
  63. package/dist/dashboard/_next/static/chunks/249-e04c1de6240fd78a.js +0 -1
  64. package/dist/dashboard/_next/static/chunks/343-09a7e255220705c5.js +0 -1
  65. package/dist/dashboard/_next/static/chunks/402-a2e4eb98bb6a524c.js +0 -1
  66. package/dist/dashboard/_next/static/chunks/429-eac85fdc49353ed8.js +0 -1
  67. package/dist/dashboard/_next/static/chunks/458-75822399a849befa.js +0 -1
  68. package/dist/dashboard/_next/static/chunks/528-7d4fc14903647f1e.js +0 -2
  69. package/dist/dashboard/_next/static/chunks/568-50487ea5e93fe11f.js +0 -1
  70. package/dist/dashboard/_next/static/chunks/697-05cf55b6c667773f.js +0 -1
  71. package/dist/dashboard/_next/static/chunks/6b3bb038-34d5cf36bd0210d6.js +0 -1
  72. package/dist/dashboard/_next/static/chunks/736-db1a009357c222d2.js +0 -1
  73. package/dist/dashboard/_next/static/chunks/806-195d4d5cc6c28f6c.js +0 -1
  74. package/dist/dashboard/_next/static/chunks/app/_not-found/page-5252c260804ee1ce.js +0 -1
  75. package/dist/dashboard/_next/static/chunks/app/accuracy/page-ca6a419d8b29eb4f.js +0 -1
  76. package/dist/dashboard/_next/static/chunks/app/benchmark/page-6c6d0acbcde4eb85.js +0 -1
  77. package/dist/dashboard/_next/static/chunks/app/context/page-1874ae1050524cb6.js +0 -1
  78. package/dist/dashboard/_next/static/chunks/app/doctor/page-d542f2ab8d6a1c59.js +0 -1
  79. package/dist/dashboard/_next/static/chunks/app/executions/page-b98ec834dcda8d93.js +0 -1
  80. package/dist/dashboard/_next/static/chunks/app/graph/page-f0e7e15288791e9c.js +0 -1
  81. package/dist/dashboard/_next/static/chunks/app/knowledge/page-86808abd0d47c026.js +0 -1
  82. package/dist/dashboard/_next/static/chunks/app/layout-4b78776412bd4fee.js +0 -1
  83. package/dist/dashboard/_next/static/chunks/app/memory/page-e169762426ac7a23.js +0 -1
  84. package/dist/dashboard/_next/static/chunks/app/page-c3e980fb2621470c.js +0 -1
  85. package/dist/dashboard/_next/static/chunks/app/replay/page-a8a465ed885df0cf.js +0 -1
  86. package/dist/dashboard/_next/static/chunks/app/runs/[id]/page-cc1d5182707fca5b.js +0 -1
  87. package/dist/dashboard/_next/static/chunks/app/runs/page-bbf0a58abd70430c.js +0 -1
  88. package/dist/dashboard/_next/static/chunks/app/settings/page-9602ff45892e7910.js +0 -1
  89. package/dist/dashboard/_next/static/chunks/app/timeline/page-a8eb3caf23be8a86.js +0 -1
  90. package/dist/dashboard/_next/static/chunks/app/tool-metrics/page-1f86f62b187f2b5e.js +0 -1
  91. package/dist/dashboard/_next/static/chunks/app/workflows/page-551939c9e86b26c6.js +0 -1
  92. package/dist/dashboard/_next/static/chunks/framework-58c3457e28c4602f.js +0 -1
  93. package/dist/dashboard/_next/static/chunks/main-3175faffdbfc3051.js +0 -1
  94. package/dist/dashboard/_next/static/chunks/main-app-202a5f91ead17fa7.js +0 -1
  95. package/dist/dashboard/_next/static/chunks/pages/_app-58c3f1a8a070bd35.js +0 -1
  96. package/dist/dashboard/_next/static/chunks/pages/_error-312a564ec7e2663f.js +0 -1
  97. package/dist/dashboard/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  98. package/dist/dashboard/_next/static/chunks/webpack-d6388c5dcd85b0c5.js +0 -1
  99. package/dist/dashboard/_next/static/css/322e14d06135256b.css +0 -31
  100. package/dist/dashboard/_next/static/css/7d4d1db5aa137b5a.css +0 -3
  101. package/dist/dashboard/accuracy.html +0 -1
  102. package/dist/dashboard/accuracy.txt +0 -7
  103. package/dist/dashboard/benchmark.html +0 -1
  104. package/dist/dashboard/benchmark.txt +0 -7
  105. package/dist/dashboard/context.html +0 -1
  106. package/dist/dashboard/context.txt +0 -7
  107. package/dist/dashboard/doctor.html +0 -1
  108. package/dist/dashboard/doctor.txt +0 -7
  109. package/dist/dashboard/executions.html +0 -1
  110. package/dist/dashboard/executions.txt +0 -7
  111. package/dist/dashboard/graph.html +0 -1
  112. package/dist/dashboard/graph.txt +0 -7
  113. package/dist/dashboard/index.html +0 -1
  114. package/dist/dashboard/index.txt +0 -7
  115. package/dist/dashboard/knowledge.html +0 -1
  116. package/dist/dashboard/knowledge.txt +0 -7
  117. package/dist/dashboard/locales/en.json +0 -335
  118. package/dist/dashboard/locales/zh.json +0 -335
  119. package/dist/dashboard/memory.html +0 -1
  120. package/dist/dashboard/memory.txt +0 -7
  121. package/dist/dashboard/replay.html +0 -1
  122. package/dist/dashboard/replay.txt +0 -7
  123. package/dist/dashboard/runs/_.html +0 -1
  124. package/dist/dashboard/runs/_.txt +0 -8
  125. package/dist/dashboard/runs.html +0 -1
  126. package/dist/dashboard/runs.txt +0 -7
  127. package/dist/dashboard/settings.html +0 -1
  128. package/dist/dashboard/settings.txt +0 -7
  129. package/dist/dashboard/timeline.html +0 -1
  130. package/dist/dashboard/timeline.txt +0 -7
  131. package/dist/dashboard/tool-metrics.html +0 -1
  132. package/dist/dashboard/tool-metrics.txt +0 -7
  133. package/dist/dashboard/workflows.html +0 -1
  134. package/dist/dashboard/workflows.txt +0 -7
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[221],{26598:function(t,e,n){"use strict";n.d(e,{t8:function(){return p},jD:function(){return l},QZ:function(){return v},IY:function(){return h},Ly:function(){return g},pB:function(){return y},oW:function(){return d},oC:function(){return rb},Ql:function(){return rj},FD:function(){return rM},X6:function(){return rT},Z_:function(){return n2},yF:function(){return rf},OL:function(){return nC},U:function(){return np},q7:function(){return ns},F1:function(){return nj},n3:function(){return ro},Z:function(){return e3},wQ:function(){return e6},Qj:function(){return e2},ZB:function(){return nP},Eg:function(){return na},lM:function(){return nX},OQ:function(){return nZ},oI:function(){return nb},Zp:function(){return e4},t_:function(){return nD},JU:function(){return n8},WD:function(){return nc},xx:function(){return nQ},wv:function(){return nY},OH:function(){return re},S2:function(){return nV},W0:function(){return no},dW:function(){return rr},Rf:function(){return n$},RX:function(){return nr},f5:function(){return ni},lp:function(){return n_},OW:function(){return n5},Hm:function(){return n9},$i:function(){return nO},so:function(){return rd},k5:function(){return e9},Ky:function(){return e7},J3:function(){return e8},RY:function(){return nJ},s$:function(){return nH},Q5:function(){return nz},N5:function(){return nq},Vt:function(){return nt},kE:function(){return nk},J$:function(){return nE},AL:function(){return nR},nb:function(){return nT},PS:function(){return nm},hO:function(){return rv},m:function(){return nN},oj:function(){return nA},_2:function(){return nM},VV:function(){return rs},be:function(){return ry},B1:function(){return rp},nu:function(){return nL}});var r,o,i,u,a,s,c,f,l,h,d,p,v,g,y,m={value:()=>{}};function x(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new b(r)}function b(t){this._=t}function w(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=m,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function _(){}function E(t){return null==t?_:function(){return this.querySelector(t)}}function k(){return[]}function j(t){return null==t?k:function(){return this.querySelectorAll(t)}}function M(t){return function(){return this.matches(t)}}function N(t){return function(e){return e.matches(t)}}b.prototype=x.prototype={constructor:b,on:function(t,e){var n,r=this._,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),i=-1,u=o.length;if(arguments.length<2){for(;++i<u;)if((n=(t=o[i]).type)&&(n=function(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++i<u;)if(n=(t=o[i]).type)r[n]=w(r[n],t.name,e);else if(null==e)for(n in r)r[n]=w(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new b(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],i=0,n=r.length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};var A=Array.prototype.find;function I(){return this.firstElementChild}var O=Array.prototype.filter;function z(){return Array.from(this.children)}function S(t){return Array(t.length)}function $(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function T(t,e,n,r,o,i){for(var u,a=0,s=e.length,c=i.length;a<c;++a)(u=e[a])?(u.__data__=i[a],r[a]=u):n[a]=new $(t,i[a]);for(;a<s;++a)(u=e[a])&&(o[a]=u)}function P(t,e,n,r,o,i,u){var a,s,c,f=new Map,l=e.length,h=i.length,d=Array(l);for(a=0;a<l;++a)(s=e[a])&&(d[a]=c=u.call(s,s.__data__,a,e)+"",f.has(c)?o[a]=s:f.set(c,s));for(a=0;a<h;++a)c=u.call(t,i[a],a,i)+"",(s=f.get(c))?(r[a]=s,s.__data__=i[a],f.delete(c)):n[a]=new $(t,i[a]);for(a=0;a<l;++a)(s=e[a])&&f.get(d[a])===s&&(o[a]=s)}function C(t){return t.__data__}function L(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}$.prototype={constructor:$,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var R="http://www.w3.org/1999/xhtml",B={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function D(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),B.hasOwnProperty(e)?{space:B[e],local:t}:t}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function F(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function H(t){return t.trim().split(/^|\s+/)}function q(t){return t.classList||new Y(t)}function Y(t){this._node=t,this._names=H(t.getAttribute("class")||"")}function U(t,e){for(var n=q(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function X(t,e){for(var n=q(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function G(){this.textContent=""}function W(){this.innerHTML=""}function Z(){this.nextSibling&&this.parentNode.appendChild(this)}function K(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Q(t){var e=D(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===R&&e.documentElement.namespaceURI===R?e.createElement(t):e.createElementNS(n,t)}})(e)}function J(){return null}function tt(){var t=this.parentNode;t&&t.removeChild(this)}function te(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tr(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function to(t,e,n){return function(){var r,o=this.__on,i=function(t){e.call(this,t,this.__data__)};if(o){for(var u=0,a=o.length;u<a;++u)if((r=o[u]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},o?o.push(r):this.__on=[r]}}function ti(t,e,n){var r=V(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}Y.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function ta(t,e){this._groups=t,this._parents=e}function ts(){return new ta([[document.documentElement]],tu)}function tc(t){return"string"==typeof t?new ta([[document.querySelector(t)]],[document.documentElement]):new ta([[t]],tu)}function tf(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}ta.prototype=ts.prototype={constructor:ta,select:function(t){"function"!=typeof t&&(t=E(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,u,a=e[o],s=a.length,c=r[o]=Array(s),f=0;f<s;++f)(i=a[f])&&(u=t.call(i,i.__data__,f,a))&&("__data__"in i&&(u.__data__=i.__data__),c[f]=u);return new ta(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=j(t);for(var n=this._groups,r=n.length,o=[],i=[],u=0;u<r;++u)for(var a,s=n[u],c=s.length,f=0;f<c;++f)(a=s[f])&&(o.push(t.call(a,a.__data__,f,s)),i.push(a));return new ta(o,i)},selectChild:function(t){var e;return this.select(null==t?I:(e="function"==typeof t?t:N(t),function(){return A.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?z:(e="function"==typeof t?t:N(t),function(){return O.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,u=e[o],a=u.length,s=r[o]=[],c=0;c<a;++c)(i=u[c])&&t.call(i,i.__data__,c,u)&&s.push(i);return new ta(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,C);var n=e?P:T,r=this._parents,o=this._groups;"function"!=typeof t&&(m=t,t=function(){return m});for(var i=o.length,u=Array(i),a=Array(i),s=Array(i),c=0;c<i;++c){var f=r[c],l=o[c],h=l.length,d="object"==typeof(y=t.call(f,f&&f.__data__,c,r))&&"length"in y?y:Array.from(y),p=d.length,v=a[c]=Array(p),g=u[c]=Array(p);n(f,l,v,g,s[c]=Array(h),d,e);for(var y,m,x,b,w=0,_=0;w<p;++w)if(x=v[w]){for(w>=_&&(_=w+1);!(b=g[_])&&++_<p;);x._next=b||null}}return(u=new ta(u,r))._enter=a,u._exit=s,u},enter:function(){return new ta(this._enter||this._groups.map(S),this._parents)},exit:function(){return new ta(this._exit||this._groups.map(S),this._parents)},join:function(t,e,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,u=Math.min(o,i),a=Array(o),s=0;s<u;++s)for(var c,f=n[s],l=r[s],h=f.length,d=a[s]=Array(h),p=0;p<h;++p)(c=f[p]||l[p])&&(d[p]=c);for(;s<o;++s)a[s]=n[s];return new ta(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,u=o[i];--i>=0;)(r=o[i])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=L);for(var n=this._groups,r=n.length,o=Array(r),i=0;i<r;++i){for(var u,a=n[i],s=a.length,c=o[i]=Array(s),f=0;f<s;++f)(u=a[f])&&(c[f]=u);c.sort(e)}return new ta(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var u=r[o];if(u)return u}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],u=0,a=i.length;u<a;++u)(o=i[u])&&t.call(o,o.__data__,u,i);return this},attr:function(t,e){var n=D(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):F(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=H(t+"");if(arguments.length<2){for(var r=q(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?U:X)(this,t)}}:e?function(t){return function(){U(this,t)}}:function(t){return function(){X(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?G:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Z)},lower:function(){return this.each(K)},append:function(t){var e="function"==typeof t?t:Q(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Q(t),r=null==e?J:"function"==typeof e?e:E(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(tt)},clone:function(t){return this.select(t?tn:te)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),u=i.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var s,c=0,f=a.length;c<f;++c)for(r=0,s=a[c];r<u;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value}return}for(r=0,a=e?to:tr;r<u;++r)this.each(a(i[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return ti(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return ti(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,o=t[e],i=0,u=o.length;i<u;++i)(r=o[i])&&(yield r)}};let tl={passive:!1},th={capture:!0,passive:!1};function td(t){t.stopImmediatePropagation()}function tp(t){t.preventDefault(),t.stopImmediatePropagation()}function tv(t){var e=t.document.documentElement,n=tc(t).on("dragstart.drag",tp,th);"onselectstart"in e?n.on("selectstart.drag",tp,th):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function tg(t,e){var n=t.document.documentElement,r=tc(t).on("dragstart.drag",null);e&&(r.on("click.drag",tp,th),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var ty=t=>()=>t;function tm(t,{sourceEvent:e,subject:n,target:r,identifier:o,active:i,x:u,y:a,dx:s,dy:c,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}function tx(t){return!t.ctrlKey&&!t.button}function tb(){return this.parentNode}function tw(t,e){return null==e?{x:t.x,y:t.y}:e}function t_(){return navigator.maxTouchPoints||"ontouchstart"in this}function tE(t){return((t=Math.exp(t))+1/t)/2}tm.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var tk,tj,tM=function t(e,n,r){function o(t,o){var i,u,a=t[0],s=t[1],c=t[2],f=o[0],l=o[1],h=o[2],d=f-a,p=l-s,v=d*d+p*p;if(v<1e-12)u=Math.log(h/c)/e,i=function(t){return[a+t*d,s+t*p,c*Math.exp(e*t*u)]};else{var g=Math.sqrt(v),y=(h*h-c*c+r*v)/(2*c*n*g),m=(h*h-c*c-r*v)/(2*h*n*g),x=Math.log(Math.sqrt(y*y+1)-y);u=(Math.log(Math.sqrt(m*m+1)-m)-x)/e,i=function(t){var r,o,i=t*u,f=tE(x),l=c/(n*g)*(((r=Math.exp(2*(r=e*i+x)))-1)/(r+1)*f-((o=Math.exp(o=x))-1/o)/2);return[a+l*d,s+l*p,c*f/tE(e*i+x)]}}return i.duration=1e3*u*e/Math.SQRT2,i}return o.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},o}(Math.SQRT2,2,4),tN=0,tA=0,tI=0,tO=0,tz=0,tS=0,t$="object"==typeof performance&&performance.now?performance:Date,tT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tP(){return tz||(tT(tC),tz=t$.now()+tS)}function tC(){tz=0}function tL(){this._call=this._time=this._next=null}function tR(t,e,n){var r=new tL;return r.restart(t,e,n),r}function tB(){tz=(tO=t$.now())+tS,tN=tA=0;try{!function(){tP(),++tN;for(var t,e=tk;e;)(t=tz-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tN}()}finally{tN=0,function(){for(var t,e,n=tk,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tk=e);tj=t,tV(r)}(),tz=0}}function tD(){var t=t$.now(),e=t-tO;e>1e3&&(tS-=e,tO=t)}function tV(t){!tN&&(tA&&(tA=clearTimeout(tA)),t-tz>24?(t<1/0&&(tA=setTimeout(tB,t-t$.now()-tS)),tI&&(tI=clearInterval(tI))):(tI||(tO=t$.now(),tI=setInterval(tD,1e3)),tN=1,tT(tB)))}function tF(t,e,n){var r=new tL;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tL.prototype=tR.prototype={constructor:tL,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tP():+n)+(null==e?0:+e),this._next||tj===this||(tj?tj._next=this:tk=this,tj=this),this._call=t,this._time=n,tV()},stop:function(){this._call&&(this._call=null,this._time=1/0,tV())}};var tH=x("start","end","cancel","interrupt"),tq=[];function tY(t,e,n,r,o,i){var u=t.__transition;if(u){if(n in u)return}else t.__transition={};!function(t,e,n){var r,o=t.__transition;function i(s){var c,f,l,h;if(1!==n.state)return a();for(c in o)if((h=o[c]).name===n.name){if(3===h.state)return tF(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete o[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete o[c])}if(tF(function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(s))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(l=n.tween.length),f=-1;c<l;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++f]=h);r.length=f+1}}function u(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),i=-1,u=r.length;++i<u;)r[i].call(t,o);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=n,n.timer=tR(function(t){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:o,on:tH,tween:tq,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function tU(t,e){var n=tG(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tX(t,e){var n=tG(t,e);if(n.state>3)throw Error("too late; already running");return n}function tG(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tW(t,e){var n,r,o,i=t.__transition,u=!0;if(i){for(o in e=null==e?null:e+"",i){if((n=i[o]).name!==e){u=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[o]}u&&delete t.__transition}}function tZ(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var tK=180/Math.PI,tQ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tJ(t,e,n,r,o,i){var u,a,s;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,s/=a),t*r<e*n&&(t=-t,e=-e,s=-s,u=-u),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*tK,skewX:Math.atan(s)*tK,scaleX:u,scaleY:a}}function t0(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,u){var a,s,c,f,l=[],h=[];return i=t(i),u=t(u),!function(t,r,o,i,u,a){if(t!==o||r!==i){var s=u.push("translate(",null,e,null,n);a.push({i:s-4,x:tZ(t,o)},{i:s-2,x:tZ(r,i)})}else(o||i)&&u.push("translate("+o+e+i+n)}(i.translateX,i.translateY,u.translateX,u.translateY,l,h),(a=i.rotate)!==(s=u.rotate)?(a-s>180?s+=360:s-a>180&&(a+=360),h.push({i:l.push(o(l)+"rotate(",null,r)-2,x:tZ(a,s)})):s&&l.push(o(l)+"rotate("+s+r),(c=i.skewX)!==(f=u.skewX)?h.push({i:l.push(o(l)+"skewX(",null,r)-2,x:tZ(c,f)}):f&&l.push(o(l)+"skewX("+f+r),!function(t,e,n,r,i,u){if(t!==n||e!==r){var a=i.push(o(i)+"scale(",null,",",null,")");u.push({i:a-4,x:tZ(t,n)},{i:a-2,x:tZ(e,r)})}else(1!==n||1!==r)&&i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,u.scaleX,u.scaleY,l,h),i=u=null,function(t){for(var e,n=-1,r=h.length;++n<r;)l[(e=h[n]).i]=e.x(t);return l.join("")}}}var t1=t0(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tQ:tJ(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),t2=t0(function(t){return null==t?tQ:(f||(f=document.createElementNS("http://www.w3.org/2000/svg","g")),f.setAttribute("transform",t),t=f.transform.baseVal.consolidate())?tJ((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tQ},", ",")",")");function t9(t,e,n){var r=t._id;return t.each(function(){var t=tX(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tG(t,r).value[e]}}function t6(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function t3(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function t7(){}var t5="\\s*([+-]?\\d+)\\s*",t4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",t8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",et=/^#([0-9a-f]{3,8})$/,ee=RegExp(`^rgb\\(${t5},${t5},${t5}\\)$`),en=RegExp(`^rgb\\(${t8},${t8},${t8}\\)$`),er=RegExp(`^rgba\\(${t5},${t5},${t5},${t4}\\)$`),eo=RegExp(`^rgba\\(${t8},${t8},${t8},${t4}\\)$`),ei=RegExp(`^hsl\\(${t4},${t8},${t8}\\)$`),eu=RegExp(`^hsla\\(${t4},${t8},${t8},${t4}\\)$`),ea={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function es(){return this.rgb().formatHex()}function ec(){return this.rgb().formatRgb()}function ef(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=et.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?el(e):3===n?new ep(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?eh(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?eh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ee.exec(t))?new ep(e[1],e[2],e[3],1):(e=en.exec(t))?new ep(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=er.exec(t))?eh(e[1],e[2],e[3],e[4]):(e=eo.exec(t))?eh(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ei.exec(t))?eb(e[1],e[2]/100,e[3]/100,1):(e=eu.exec(t))?eb(e[1],e[2]/100,e[3]/100,e[4]):ea.hasOwnProperty(t)?el(ea[t]):"transparent"===t?new ep(NaN,NaN,NaN,0):null}function el(t){return new ep(t>>16&255,t>>8&255,255&t,1)}function eh(t,e,n,r){return r<=0&&(t=e=n=NaN),new ep(t,e,n,r)}function ed(t,e,n,r){var o;return 1==arguments.length?((o=t)instanceof t7||(o=ef(o)),o)?new ep((o=o.rgb()).r,o.g,o.b,o.opacity):new ep:new ep(t,e,n,null==r?1:r)}function ep(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ev(){return`#${ex(this.r)}${ex(this.g)}${ex(this.b)}`}function eg(){let t=ey(this.opacity);return`${1===t?"rgb(":"rgba("}${em(this.r)}, ${em(this.g)}, ${em(this.b)}${1===t?")":`, ${t})`}`}function ey(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function em(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ex(t){return((t=em(t))<16?"0":"")+t.toString(16)}function eb(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new e_(t,e,n,r)}function ew(t){if(t instanceof e_)return new e_(t.h,t.s,t.l,t.opacity);if(t instanceof t7||(t=ef(t)),!t)return new e_;if(t instanceof e_)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),u=NaN,a=i-o,s=(i+o)/2;return a?(u=e===i?(n-r)/a+(n<r)*6:n===i?(r-e)/a+2:(e-n)/a+4,a/=s<.5?i+o:2-i-o,u*=60):a=s>0&&s<1?0:u,new e_(u,a,s,t.opacity)}function e_(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eE(t){return(t=(t||0)%360)<0?t+360:t}function ek(t){return Math.max(0,Math.min(1,t||0))}function ej(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function eM(t,e,n,r,o){var i=t*t,u=i*t;return((1-3*t+3*i-u)*e+(4-6*i+3*u)*n+(1+3*t+3*i-3*u)*r+u*o)/6}t6(t7,ef,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ew(this).formatHsl()},formatRgb:ec,toString:ec}),t6(ep,ed,t3(t7,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ep(em(this.r),em(this.g),em(this.b),ey(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ev,formatHex:ev,formatHex8:function(){return`#${ex(this.r)}${ex(this.g)}${ex(this.b)}${ex((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eg,toString:eg})),t6(e_,function(t,e,n,r){return 1==arguments.length?ew(t):new e_(t,e,n,null==r?1:r)},t3(t7,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new e_(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new e_(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new ep(ej(t>=240?t-240:t+120,o,r),ej(t,o,r),ej(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new e_(eE(this.h),ek(this.s),ek(this.l),ey(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=ey(this.opacity);return`${1===t?"hsl(":"hsla("}${eE(this.h)}, ${100*ek(this.s)}%, ${100*ek(this.l)}%${1===t?")":`, ${t})`}`}}));var eN=t=>()=>t;function eA(t,e){var n=e-t;return n?function(e){return t+e*n}:eN(isNaN(t)?e:t)}var eI=function t(e){var n,r=1==(n=+(n=e))?eA:function(t,e){var r,o,i;return e-t?(r=t,o=e,r=Math.pow(r,i=n),o=Math.pow(o,i)-r,i=1/i,function(t){return Math.pow(r+t*o,i)}):eN(isNaN(t)?e:t)};function o(t,e){var n=r((t=ed(t)).r,(e=ed(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),u=eA(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=u(e),t+""}}return o.gamma=t,o}(1);function eO(t){return function(e){var n,r,o=e.length,i=Array(o),u=Array(o),a=Array(o);for(n=0;n<o;++n)r=ed(e[n]),i[n]=r.r||0,u[n]=r.g||0,a[n]=r.b||0;return i=t(i),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=i(t),r.g=u(t),r.b=a(t),r+""}}}eO(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],u=r>0?t[r-1]:2*o-i,a=r<e-1?t[r+2]:2*i-o;return eM((n-r/e)*e,u,o,i,a)}}),eO(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],u=t[(r+1)%e],a=t[(r+2)%e];return eM((n-r/e)*e,o,i,u,a)}});var ez=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eS=RegExp(ez.source,"g");function e$(t,e){var n,r,o,i,u,a=ez.lastIndex=eS.lastIndex=0,s=-1,c=[],f=[];for(t+="",e+="";(o=ez.exec(t))&&(i=eS.exec(e));)(u=i.index)>a&&(u=e.slice(a,u),c[s]?c[s]+=u:c[++s]=u),(o=o[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,f.push({i:s,x:tZ(o,i)})),a=eS.lastIndex;return a<e.length&&(u=e.slice(a),c[s]?c[s]+=u:c[++s]=u),c.length<2?f[0]?(n=f[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=f.length,function(t){for(var n,r=0;r<e;++r)c[(n=f[r]).i]=n.x(t);return c.join("")})}function eT(t,e){var n;return("number"==typeof e?tZ:e instanceof ef?eI:(n=ef(e))?(e=n,eI):e$)(t,e)}var eP=ts.prototype.constructor;function eC(t){return function(){this.style.removeProperty(t)}}var eL=0;function eR(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var eB=ts.prototype;eR.prototype=(function(t){return ts().transition(t)}).prototype={constructor:eR,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,o=r.length,i=Array(o),u=0;u<o;++u)for(var a,s,c=r[u],f=c.length,l=i[u]=Array(f),h=0;h<f;++h)(a=c[h])&&(s=t.call(a,a.__data__,h,c))&&("__data__"in a&&(s.__data__=a.__data__),l[h]=s,tY(l[h],e,n,h,l,tG(a,n)));return new eR(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=j(t));for(var r=this._groups,o=r.length,i=[],u=[],a=0;a<o;++a)for(var s,c=r[a],f=c.length,l=0;l<f;++l)if(s=c[l]){for(var h,d=t.call(s,s.__data__,l,c),p=tG(s,n),v=0,g=d.length;v<g;++v)(h=d[v])&&tY(h,e,n,v,d,p);i.push(d),u.push(s)}return new eR(i,u,e,n)},selectChild:eB.selectChild,selectChildren:eB.selectChildren,filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,u=e[o],a=u.length,s=r[o]=[],c=0;c<a;++c)(i=u[c])&&t.call(i,i.__data__,c,u)&&s.push(i);return new eR(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),u=Array(r),a=0;a<i;++a)for(var s,c=e[a],f=n[a],l=c.length,h=u[a]=Array(l),d=0;d<l;++d)(s=c[d]||f[d])&&(h[d]=s);for(;a<r;++a)u[a]=e[a];return new eR(u,this._parents,this._name,this._id)},selection:function(){return new eP(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++eL,r=this._groups,o=r.length,i=0;i<o;++i)for(var u,a=r[i],s=a.length,c=0;c<s;++c)if(u=a[c]){var f=tG(u,e);tY(u,t,n,c,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new eR(r,this._parents,t,n)},call:eB.call,nodes:eB.nodes,node:eB.node,size:eB.size,empty:eB.empty,each:eB.each,on:function(t,e){var n,r,o,i=this._id;return arguments.length<2?tG(this.node(),i).on.on(t):this.each((o=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tU:tX,function(){var u=o(this,i),a=u.on;a!==n&&(r=(n=a).copy()).on(t,e),u.on=r}))},attr:function(t,e){var n=D(t),r="transform"===n?t2:eT;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,o,i;return function(){var u,a,s=n(this);return null==s?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===o?i:(o=a,i=e(r=u,s))}}:function(t,e,n){var r,o,i;return function(){var u,a,s=n(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===o?i:(o=a,i=e(r=u,s))}})(n,r,t9(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,o,i=n+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===r?o:o=e(r=u,n)}}:function(t,e,n){var r,o,i=n+"";return function(){var u=this.getAttribute(t);return u===i?null:u===r?o:o=e(r=u,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=D(t);return this.tween(n,(r.local?function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttributeNS(t.space,t.local,o.call(this,e))}),n}return o._value=e,o}:function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttribute(t,o.call(this,e))}),n}return o._value=e,o})(r,e))},style:function(t,e,n){var r,o,i,u,a,s,c,f,l,h,d,p,v,g,y,m,x,b,w,_,E,k="transform"==(t+="")?t1:eT;return null==e?this.styleTween(t,(r=t,function(){var t=F(this,r),e=(this.style.removeProperty(r),F(this,r));return t===e?null:t===o&&e===i?u:u=k(o=t,i=e)})).on("end.style."+t,eC(t)):"function"==typeof e?this.styleTween(t,(a=t,s=t9(this,"style."+t,e),function(){var t=F(this,a),e=s(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=F(this,a)),t===n?null:t===c&&n===f?l:(f=n,l=k(c=t,e))})).each((h=this._id,x="end."+(m="style."+(d=t)),function(){var t=tX(this,h),e=t.on,n=null==t.value[m]?y||(y=eC(d)):void 0;(e!==p||g!==n)&&(v=(p=e).copy()).on(x,g=n),t.on=v})):this.styleTween(t,(b=t,E=e+"",function(){var t=F(this,b);return t===E?null:t===w?_:_=k(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,o;function i(){var i=e.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e){this.style.setProperty(t,i.call(this,e),n)}),r}return i._value=e,i}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=t9(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,o=tG(this.node(),n).tween,i=0,u=o.length;i<u;++i)if((r=o[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var o=tX(this,t),i=o.tween;if(i!==n){r=n=i;for(var u=0,a=r.length;u<a;++u)if(r[u].name===e){(r=r.slice()).splice(u,1);break}}o.tween=r}}:function(t,e,n){var r,o;if("function"!=typeof n)throw Error();return function(){var i=tX(this,t),u=i.tween;if(u!==r){o=(r=u).slice();for(var a={name:e,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===e){o[s]=a;break}s===c&&o.push(a)}i.tween=o}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tU(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tU(this,t).delay=e}})(e,t)):tG(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tX(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tX(this,t).duration=e}})(e,t)):tG(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tX(this,t).ease=e}}(e,t)):tG(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tX(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,u){var a={value:u},s={value:function(){0==--o&&i()}};n.each(function(){var n=tX(this,r),o=n.on;o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(s)),n.on=e}),0===o&&i()})},[Symbol.iterator]:eB[Symbol.iterator]};var eD={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};ts.prototype.interrupt=function(t){return this.each(function(){tW(this,t)})},ts.prototype.transition=function(t){var e,n;t instanceof eR?(e=t._id,t=t._name):(e=++eL,(n=eD).time=tP(),t=null==t?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var u,a=r[i],s=a.length,c=0;c<s;++c)(u=a[c])&&tY(u,t,e,c,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(u,e));return new eR(r,this._parents,t,e)};var eV=t=>()=>t;function eF(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function eH(t,e,n){this.k=t,this.x=e,this.y=n}eH.prototype={constructor:eH,scale:function(t){return 1===t?this:new eH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eq=new eH(1,0,0);function eY(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eq;return t.__zoom}function eU(t){t.stopImmediatePropagation()}function eX(t){t.preventDefault(),t.stopImmediatePropagation()}function eG(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eW(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eZ(){return this.__zoom||eq}function eK(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],u=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),u>i?(i+u)/2:Math.min(0,i)||Math.max(0,u))}function e0(){var t,e,n,r=eG,o=eW,i=eJ,u=eK,a=eQ,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,l=tM,h=x("start","zoom","end"),d=0,p=10;function v(t){t.property("__zoom",eZ).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",j).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eH(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k;return r===t.x&&o===t.y?t:new eH(t.k,r,o)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=w(this,t).event(r),u=o.apply(this,t),a=null==n?m(u):"function"==typeof n?n.apply(this,t):n,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=this.__zoom,f="function"==typeof e?e.apply(this,t):e,h=l(c.invert(a).concat(s/c.k),f.invert(a).concat(s/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=s/e[2];t=new eH(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=w(this,e).event(t),o=this.__zoom,a=Math.max(s[0],Math.min(s[1],o.k*Math.pow(2,u.apply(this,arguments)))),f=tf(t);if(n.wheel)(n.mouse[0][0]!==f[0]||n.mouse[0][1]!==f[1])&&(n.mouse[1]=o.invert(n.mouse[0]=f)),clearTimeout(n.wheel);else{if(o.k===a)return;n.mouse=[f,o.invert(f)],tW(this),n.start()}eX(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",i(y(g(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(t,...e){if(!n&&r.apply(this,arguments)){var o=t.currentTarget,u=w(this,e,!0).event(t),a=tc(t.view).on("mousemove.zoom",function(t){if(eX(t),!u.moved){var e=t.clientX-f,n=t.clientY-l;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",i(y(u.that.__zoom,u.mouse[0]=tf(t,o),u.mouse[1]),u.extent,c))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),tg(t.view,u.moved),eX(t),u.event(t).end()},!0),s=tf(t,o),f=t.clientX,l=t.clientY;tv(t.view),eU(t),u.mouse=[s,this.__zoom.invert(s)],tW(this),u.start()}}function j(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,u=tf(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(u),s=n.k*(t.shiftKey?.5:2),l=i(y(g(n,s),u,a),o.apply(this,e),c);eX(t),f>0?tc(this).transition().duration(f).call(b,l,u,t):tc(this).call(v.transform,l,u,t)}}function M(n,...o){if(r.apply(this,arguments)){var i,u,a,s,c=n.touches,f=c.length,l=w(this,o,n.changedTouches.length===f).event(n);for(eU(n),u=0;u<f;++u)s=[s=tf(a=c[u],this),this.__zoom.invert(s),a.identifier],l.touch0?l.touch1||l.touch0[2]===s[2]||(l.touch1=s,l.taps=0):(l.touch0=s,i=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),i&&(l.taps<2&&(e=s[0],t=setTimeout(function(){t=null},500)),tW(this),l.start())}}function N(t,...e){if(this.__zooming){var n,r,o,u,a=w(this,e).event(t),s=t.changedTouches,f=s.length;for(eX(t),n=0;n<f;++n)o=tf(r=s[n],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=o);if(r=a.that.__zoom,a.touch1){var l=a.touch0[0],h=a.touch0[1],d=a.touch1[0],p=a.touch1[1],v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v,m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m;r=g(r,Math.sqrt(v/m)),o=[(l[0]+d[0])/2,(l[1]+d[1])/2],u=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!a.touch0)return;o=a.touch0[0],u=a.touch0[1]}a.zoom("touch",i(y(r,o,u),a.extent,c))}}function A(t,...r){if(this.__zooming){var o,i,u=w(this,r).event(t),a=t.changedTouches,s=a.length;for(eU(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<s;++o)i=a[o],u.touch0&&u.touch0[2]===i.identifier?delete u.touch0:u.touch1&&u.touch1[2]===i.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(i=tf(i,this),Math.hypot(e[0]-i[0],e[1]-i[1])<p)){var c=tc(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,r){var o=t.selection?t.selection():t;o.property("__zoom",eZ),t!==o?b(t,e,n,r):o.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},v.scaleBy=function(t,e,n,r){v.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},v.scaleTo=function(t,e,n,r){v.transform(t,function(){var t=o.apply(this,arguments),r=this.__zoom,u=null==n?m(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(u),s="function"==typeof e?e.apply(this,arguments):e;return i(y(g(r,s),u,a),t,c)},n,r)},v.translateBy=function(t,e,n,r){v.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)},null,r)},v.translateTo=function(t,e,n,r,u){v.transform(t,function(){var t=o.apply(this,arguments),u=this.__zoom,a=null==r?m(t):"function"==typeof r?r.apply(this,arguments):r;return i(eq.translate(a[0],a[1]).scale(u.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},r,u)},_.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=tc(this.that).datum();h.call(t,this.that,new eF(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),e)}},v.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:eV(+t),v):u},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:eV(!!t),v):r},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:eV(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:eV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],v):[s[0],s[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(i=t,v):i},v.duration=function(t){return arguments.length?(f=+t,v):f},v.interpolate=function(t){return arguments.length?(l=t,v):l},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,v):Math.sqrt(d)},v.tapDistance=function(t){return arguments.length?(p=+t,v):p},v}function e1(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?eN(e):("number"===o?tZ:"string"===o?(r=ef(e))?(e=r,eI):e$:e instanceof ef?eI:e instanceof Date?function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(n=e)||n instanceof DataView?Array.isArray(e)?function(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=Array(o),u=Array(r);for(n=0;n<o;++n)i[n]=e1(t[n],e[n]);for(;n<r;++n)u[n]=e[n];return function(t){for(n=0;n<o;++n)u[n]=i[n](t);return u}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},o={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=e1(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}:tZ:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}})(t,e)}eY.prototype=eH.prototype;let e2={error001:(t="react")=>`Seems like you have not used ${"svelte"===t?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${t}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:t=>`Edge with id "${t}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},e9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],e6=["Enter"," ","Escape"],e3={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=l||(l={})).Strict="strict",r.Loose="loose",(o=h||(h={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(i=d||(d={})).Partial="partial",i.Full="full";let e7={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(u=p||(p={})).Bezier="default",u.Straight="straight",u.Step="step",u.SmoothStep="smoothstep",u.SimpleBezier="simplebezier",(a=v||(v={})).Arrow="arrow",a.ArrowClosed="arrowclosed",(s=g||(g={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";let e5={[g.Left]:g.Right,[g.Right]:g.Left,[g.Top]:g.Bottom,[g.Bottom]:g.Top};function e4(t){return null===t?null:t?"valid":"invalid"}let e8=t=>!!t&&"object"==typeof t&&"id"in t&&"source"in t&&"target"in t,nt=t=>!!t&&"object"==typeof t&&"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),ne=t=>!!t&&"object"==typeof t&&"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),nn=(t,e=[0,0])=>{let{width:n,height:r}=n$(t),o=t.origin??e,i=n*o[0],u=r*o[1];return{x:t.position.x-i,y:t.position.y-u}},nr=(t,e={nodeOrigin:[0,0]})=>0===t.length?{x:0,y:0,width:0,height:0}:ny(t.reduce((t,n)=>{let r="string"==typeof n,o=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(o=r?e.nodeLookup.get(n):ne(n)?n:e.nodeLookup.get(n.id)),nv(t,o?nx(o,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),no=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(t=>{(void 0===e.filter||e.filter(t))&&(n=nv(n,nx(t)),r=!0)}),r?ny(n):{x:0,y:0,width:0,height:0}},ni=(t,e,[n,r,o]=[0,0,1],i=!1,u=!1)=>{let a=(e.x-n)/o,s=(e.y-r)/o,c=e.width/o,f=e.height/o,l=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(u&&!n||r)continue;let o=t.width??e.width??e.initialWidth??0,h=t.height??e.height??e.initialHeight??0,{x:d,y:p}=e.internals.positionAbsolute,v=nw(a,s,c,f,d,p,o,h),g=o*h,y=i&&v>0;(!e.internals.handleBounds||y||v>=g||e.dragging)&&l.push(e)}return l},nu=(t,e)=>{let n=new Set;return t.forEach(t=>{n.add(t.id)}),e.filter(t=>n.has(t.source)||n.has(t.target))};async function na({nodes:t,width:e,height:n,panZoom:r,minZoom:o,maxZoom:i},u){if(0===t.size)return!0;let a=nO(no(function(t,e){let n=new Map,r=e?.nodes?new Set(e.nodes.map(t=>t.id)):null;return t.forEach(t=>{let o;if(e?.includeHiddenNodes){let{width:e,height:n}=n$(t);o=e>0&&n>0}else o=!!(t.measured.width&&t.measured.height&&!t.hidden);o&&(!r||r.has(t.id))&&n.set(t.id,t)}),n}(t,u)),e,n,u?.minZoom??o,u?.maxZoom??i,u?.padding??.1);return await r.setViewport(a,{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),!0}function ns({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){let u=n.get(t),a=u.parentId?n.get(u.parentId):void 0,{x:s,y:c}=a?a.internals.positionAbsolute:{x:0,y:0},f=u.origin??r,l=u.extent||o;if("parent"!==u.extent||u.expandParent)a&&nS(u.extent)&&(l=[[u.extent[0][0]+s,u.extent[0][1]+c],[u.extent[1][0]+s,u.extent[1][1]+c]]);else if(a){let t=a.measured.width,e=a.measured.height;t&&e&&(l=[[s,c],[s+t,c+e]])}else i?.("005",e2.error005());let h=nS(l)?nl(e,l,u.measured):e;return(void 0===u.measured.width||void 0===u.measured.height)&&i?.("015",e2.error015()),{position:{x:h.x-s+(u.measured.width??0)*f[0],y:h.y-c+(u.measured.height??0)*f[1]},positionAbsolute:h}}async function nc({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:o}){let i=new Set(t.map(t=>t.id)),u=[];for(let t of n){if(!1===t.deletable)continue;let e=i.has(t.id),n=!e&&t.parentId&&u.find(e=>e.id===t.parentId);(e||n)&&u.push(t)}let a=new Set(e.map(t=>t.id)),s=r.filter(t=>!1!==t.deletable),c=nu(u,s);for(let t of s)a.has(t.id)&&!c.find(e=>e.id===t.id)&&c.push(t);if(!o)return{edges:c,nodes:u};let f=await o({nodes:u,edges:c});return"boolean"==typeof f?f?{edges:c,nodes:u}:{edges:[],nodes:[]}:f}let nf=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),nl=(t={x:0,y:0},e,n)=>({x:nf(t.x,e[0][0],e[1][0]-(n?.width??0)),y:nf(t.y,e[0][1],e[1][1]-(n?.height??0))});function nh(t,e,n){let{width:r,height:o}=n$(n),{x:i,y:u}=n.internals.positionAbsolute;return nl(t,[[i,u],[i+r,u+o]],e)}let nd=(t,e,n)=>t<e?nf(Math.abs(t-e),1,e)/e:t>n?-nf(Math.abs(t-n),1,e)/e:0,np=(t,e,n=15,r=40)=>[nd(t.x,r,e.width-r)*n,nd(t.y,r,e.height-r)*n],nv=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),ng=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),ny=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),nm=(t,e=[0,0])=>{let{x:n,y:r}=ne(t)?t.internals.positionAbsolute:nn(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},nx=(t,e=[0,0])=>{let{x:n,y:r}=ne(t)?t.internals.positionAbsolute:nn(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},nb=(t,e)=>ny(nv(ng(t),ng(e))),nw=(t,e,n,r,o,i,u,a)=>Math.ceil(Math.max(0,Math.min(t+n,o+u)-Math.max(t,o))*Math.max(0,Math.min(e+r,i+a)-Math.max(e,i))),n_=(t,e)=>nw(t.x,t.y,t.width,t.height,e.x,e.y,e.width,e.height),nE=t=>nk(t.width)&&nk(t.height)&&nk(t.x)&&nk(t.y),nk=t=>!isNaN(t)&&isFinite(t),nj=(t,e)=>(t,e)=>{},nM=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),nN=({x:t,y:e},[n,r,o],i=!1,u=[1,1])=>{let a={x:(t-n)/o,y:(e-r)/o};return i?nM(a,u):a},nA=({x:t,y:e},[n,r,o])=>({x:t*o+n,y:e*o+r});function nI(t,e){if("number"==typeof t)return Math.floor((e-e/(1+t))*.5);if("string"==typeof t&&t.endsWith("px")){let e=parseFloat(t);if(!Number.isNaN(e))return Math.floor(e)}if("string"==typeof t&&t.endsWith("%")){let n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let nO=(t,e,n,r,o,i)=>{let u=function(t,e,n){if("string"==typeof t||"number"==typeof t){let r=nI(t,n),o=nI(t,e);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof t){let r=nI(t.top??t.y??0,n),o=nI(t.bottom??t.y??0,n),i=nI(t.left??t.x??0,e),u=nI(t.right??t.x??0,e);return{top:r,right:u,bottom:o,left:i,x:i+u,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,e,n),a=nf(Math.min((e-u.x)/t.width,(n-u.y)/t.height),r,o),s=t.x+t.width/2,c=t.y+t.height/2,f=e/2-s*a,l=n/2-c*a,h=function(t,e,n,r,o,i){let{x:u,y:a}=nA(t,[e,n,r]),{x:s,y:c}=nA({x:t.x+t.width,y:t.y+t.height},[e,n,r]);return{left:Math.floor(u),top:Math.floor(a),right:Math.floor(o-s),bottom:Math.floor(i-c)}}(t,f,l,a,e,n),d={left:Math.min(h.left-u.left,0),top:Math.min(h.top-u.top,0),right:Math.min(h.right-u.right,0),bottom:Math.min(h.bottom-u.bottom,0)};return{x:f-d.left+d.right,y:l-d.top+d.bottom,zoom:a}},nz=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function nS(t){return null!=t&&"parent"!==t}function n$(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function nT(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function nP(t,e={width:0,height:0},n,r,o){let i={...t},u=r.get(n);if(u){let t=u.origin||o;i.x+=u.internals.positionAbsolute.x-(e.width??0)*t[0],i.y+=u.internals.positionAbsolute.y-(e.height??0)*t[1]}return i}function nC(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function nL(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function nR(t){return{...e3,...t||{}}}function nB(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){let{x:i,y:u}=nY(t),a=nN({x:i-(o?.left??0),y:u-(o?.top??0)},r),{x:s,y:c}=n?nM(a,e):a;return{xSnapped:s,ySnapped:c,...a}}let nD=t=>({width:t.offsetWidth,height:t.offsetHeight}),nV=t=>t?.getRootNode?.()||window?.document,nF=["INPUT","SELECT","TEXTAREA"];function nH(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(nF.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let nq=t=>"clientX"in t,nY=(t,e)=>{let n=nq(t),r=n?t.clientX:t.touches?.[0].clientX,o=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:o-(e?.top??0)}},nU=(t,e,n,r,o)=>{let i=e.querySelectorAll(`.${t}`);return i&&i.length?Array.from(i).map(e=>{let i=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:o,position:e.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...nD(e)}}):null};function nX({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:u,targetControlY:a}){let s=.125*t+.375*o+.375*u+.125*n,c=.125*e+.375*i+.375*a+.125*r;return[s,c,Math.abs(s-t),Math.abs(c-e)]}function nG(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nW({pos:t,x1:e,y1:n,x2:r,y2:o,c:i}){switch(t){case g.Left:return[e-nG(e-r,i),n];case g.Right:return[e+nG(r-e,i),n];case g.Top:return[e,n-nG(n-o,i)];case g.Bottom:return[e,n+nG(o-n,i)]}}function nZ({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:o,targetPosition:i=g.Top,curvature:u=.25}){let[a,s]=nW({pos:n,x1:t,y1:e,x2:r,y2:o,c:u}),[c,f]=nW({pos:i,x1:r,y1:o,x2:t,y2:e,c:u}),[l,h,d,p]=nX({sourceX:t,sourceY:e,targetX:r,targetY:o,sourceControlX:a,sourceControlY:s,targetControlX:c,targetControlY:f});return[`M${t},${e} C${a},${s} ${c},${f} ${r},${o}`,l,h,d,p]}function nK({sourceX:t,sourceY:e,targetX:n,targetY:r}){let o=Math.abs(n-t)/2,i=Math.abs(r-e)/2;return[n<t?n+o:n-o,r<e?r+i:r-i,o,i]}function nQ({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1,zIndexMode:i="basic"}){if("manual"===i)return r;let u=Math.max(t.parentId||o&&t.selected?t.internals.z:0,e.parentId||o&&e.selected?e.internals.z:0);return(o&&n?r+1e3:r)+u}function nJ({sourceNode:t,targetNode:e,width:n,height:r,transform:o}){let i=nv(nx(t),nx(e));return i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1),n_({x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]},ny(i))>0}let n0=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,n1=(t,e)=>e.some(e=>e.source===t.source&&e.target===t.target&&(e.sourceHandle===t.sourceHandle||!e.sourceHandle&&!t.sourceHandle)&&(e.targetHandle===t.targetHandle||!e.targetHandle&&!t.targetHandle)),n2=(t,e,n={})=>{let r;if(!t.source||!t.target)return n.onError?.("006",e2.error006()),e;let o=n.getEdgeId||n0;return n1(r=e8(t)?{...t}:{...t,id:o(t)},e)?e:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,e.concat(r))};function n9({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[o,i,u,a]=nK({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,o,i,u,a]}let n6={[g.Left]:{x:-1,y:0},[g.Right]:{x:1,y:0},[g.Top]:{x:0,y:-1},[g.Bottom]:{x:0,y:1}},n3=({source:t,sourcePosition:e=g.Bottom,target:n})=>e===g.Left||e===g.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},n7=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function n5({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:o,targetPosition:i=g.Top,borderRadius:u=5,centerX:a,centerY:s,offset:c=20,stepPosition:f=.5}){let[l,h,d,p,v]=function({source:t,sourcePosition:e=g.Bottom,target:n,targetPosition:r=g.Top,center:o,offset:i,stepPosition:u}){let a,s;let c=n6[e],f=n6[r],l={x:t.x+c.x*i,y:t.y+c.y*i},h={x:n.x+f.x*i,y:n.y+f.y*i},d=n3({source:l,sourcePosition:e,target:h}),p=0!==d.x?"x":"y",v=d[p],y=[],m={x:0,y:0},x={x:0,y:0},[,,b,w]=nK({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(c[p]*f[p]==-1){"x"===p?(a=o.x??l.x+(h.x-l.x)*u,s=o.y??(l.y+h.y)/2):(a=o.x??(l.x+h.x)/2,s=o.y??l.y+(h.y-l.y)*u);let t=[{x:a,y:l.y},{x:a,y:h.y}],e=[{x:l.x,y:s},{x:h.x,y:s}];y=c[p]===v?"x"===p?t:e:"x"===p?e:t}else{let o=[{x:l.x,y:h.y}],u=[{x:h.x,y:l.y}];if(y="x"===p?c.x===v?u:o:c.y===v?o:u,e===r){let e=Math.abs(t[p]-n[p]);if(e<=i){let r=Math.min(i-1,i-e);c[p]===v?m[p]=(l[p]>t[p]?-1:1)*r:x[p]=(h[p]>n[p]?-1:1)*r}}if(e!==r){let t="x"===p?"y":"x",e=c[p]===f[t],n=l[t]>h[t],r=l[t]<h[t];(1===c[p]&&(!e&&n||e&&r)||1!==c[p]&&(!e&&r||e&&n))&&(y="x"===p?o:u)}let d={x:l.x+m.x,y:l.y+m.y},g={x:h.x+x.x,y:h.y+x.y};Math.max(Math.abs(d.x-y[0].x),Math.abs(g.x-y[0].x))>=Math.max(Math.abs(d.y-y[0].y),Math.abs(g.y-y[0].y))?(a=(d.x+g.x)/2,s=y[0].y):(a=y[0].x,s=(d.y+g.y)/2)}let _={x:l.x+m.x,y:l.y+m.y},E={x:h.x+x.x,y:h.y+x.y};return[[t,..._.x!==y[0].x||_.y!==y[0].y?[_]:[],...y,...E.x!==y[y.length-1].x||E.y!==y[y.length-1].y?[E]:[],n],a,s,b,w]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:s},offset:c,stepPosition:f}),y=`M${l[0].x} ${l[0].y}`;for(let t=1;t<l.length-1;t++)y+=function(t,e,n,r){let o=Math.min(n7(t,e)/2,n7(e,n)/2,r),{x:i,y:u}=e;if(t.x===i&&i===n.x||t.y===u&&u===n.y)return`L${i} ${u}`;if(t.y===u){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${i+o*e},${u}Q ${i},${u} ${i},${u+o*r}`}let a=t.x<n.x?1:-1,s=t.y<n.y?-1:1;return`L ${i},${u+o*s}Q ${i},${u} ${i+o*a},${u}`}(l[t-1],l[t],l[t+1],u);return[y+=`L${l[l.length-1].x} ${l[l.length-1].y}`,h,d,p,v]}function n4(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function n8(t){let{sourceNode:e,targetNode:n}=t;if(!n4(e)||!n4(n))return null;let r=e.internals.handleBounds||rt(e.handles),o=n.internals.handleBounds||rt(n.handles),i=rn(r?.source??[],t.sourceHandle),u=rn(t.connectionMode===l.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),t.targetHandle);if(!i||!u)return t.onError?.("008",e2.error008(i?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let a=i?.position||g.Bottom,s=u?.position||g.Top,c=re(e,i,a),f=re(n,u,s);return{sourceX:c.x,sourceY:c.y,targetX:f.x,targetY:f.y,sourcePosition:a,targetPosition:s}}function rt(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function re(t,e,n=g.Left,r=!1){let o=(e?.x??0)+t.internals.positionAbsolute.x,i=(e?.y??0)+t.internals.positionAbsolute.y,{width:u,height:a}=e??n$(t);if(r)return{x:o+u/2,y:i+a/2};switch(e?.position??n){case g.Top:return{x:o+u/2,y:i};case g.Right:return{x:o+u,y:i+a/2};case g.Bottom:return{x:o+u/2,y:i+a};case g.Left:return{x:o,y:i+a/2}}}function rn(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function rr(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function ro(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){let i=new Set;return t.reduce((t,u)=>([u.markerStart||r,u.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){let o=rr(r,e);i.has(o)||(t.push({id:o,color:r.color||n,...r}),i.add(o))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let ri={nodeOrigin:[0,0],nodeExtent:e9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},ru={...ri,checkEquality:!0};function ra(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function rs(t,e,n){let r=ra(ri,n);for(let n of t.values())if(n.parentId)rl(n,t,e,r);else{let t=nl(nn(n,r.nodeOrigin),nS(n.extent)?n.extent:r.nodeExtent,n$(n));n.internals.positionAbsolute=t}}function rc(t){return"manual"===t}function rf(t,e,n,r={}){let o=ra(ru,r),i={i:0},u=new Map(e),a=o?.elevateNodesOnSelect&&!rc(o.zIndexMode)?1e3:0,s=t.length>0,c=!1;for(let f of(e.clear(),n.clear(),t)){let t=u.get(f.id);if(o.checkEquality&&f===t?.internals.userNode)e.set(f.id,t);else{let n=nl(nn(f,o.nodeOrigin),nS(f.extent)?f.extent:o.nodeExtent,n$(f));t={...o.defaults,...f,measured:{width:f.measured?.width,height:f.measured?.height},internals:{positionAbsolute:n,handleBounds:function(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;let n=[],r=[];for(let e of t.handles){let o={id:e.id,width:e.width??1,height:e.height??1,nodeId:t.id,x:e.x,y:e.y,position:e.position,type:e.type};"source"===e.type?n.push(o):"target"===e.type&&r.push(o)}return{source:n,target:r}}(f,t),z:rh(f,a,o.zIndexMode),userNode:f}},e.set(f.id,t)}void 0!==t.measured&&void 0!==t.measured.width&&void 0!==t.measured.height||t.hidden||(s=!1),f.parentId&&rl(t,e,n,r,i),c||=f.selected??!1}return{nodesInitialized:s,hasSelectedNodes:c}}function rl(t,e,n,r,o){let{elevateNodesOnSelect:i,nodeOrigin:u,nodeExtent:a,zIndexMode:s}=ra(ri,r),c=t.parentId,f=e.get(c);if(!f){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n),o&&!f.parentId&&void 0===f.internals.rootParentIndex&&"auto"===s&&(f.internals.rootParentIndex=++o.i,f.internals.z=f.internals.z+10*o.i),o&&void 0!==f.internals.rootParentIndex&&(o.i=f.internals.rootParentIndex);let{x:l,y:h,z:d}=function(t,e,n,r,o,i){let{x:u,y:a}=e.internals.positionAbsolute,s=n$(t),c=nn(t,n),f=nS(t.extent)?nl(c,t.extent,s):c,l=nl({x:u+f.x,y:a+f.y},r,s);"parent"===t.extent&&(l=nh(l,s,e));let h=rh(t,o,i),d=e.internals.z??0;return{x:l.x,y:l.y,z:d>=h?d+1:h}}(t,f,u,a,i&&!rc(s)?1e3:0,s),{positionAbsolute:p}=t.internals,v=l!==p.x||h!==p.y;(v||d!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:v?{x:l,y:h}:p,z:d}})}function rh(t,e,n){let r=nk(t.zIndex)?t.zIndex:0;return rc(n)?r:r+(t.selected?e:0)}function rd(t,e,n,r=[0,0]){let o=[],i=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=nb(i.get(n.parentId)?.expandedRect??nm(t),n.rect);i.set(n.parentId,{expandedRect:r,parent:t})}return i.size>0&&i.forEach(({expandedRect:e,parent:i},u)=>{let a=i.internals.positionAbsolute,s=n$(i),c=i.origin??r,f=e.x<a.x?Math.round(Math.abs(a.x-e.x)):0,l=e.y<a.y?Math.round(Math.abs(a.y-e.y)):0,h=Math.max(s.width,Math.round(e.width)),d=Math.max(s.height,Math.round(e.height)),p=(h-s.width)*c[0],v=(d-s.height)*c[1];(f>0||l>0||p||v)&&(o.push({id:u,type:"position",position:{x:i.position.x-f+p,y:i.position.y-l+v}}),n.get(u)?.forEach(e=>{t.some(t=>t.id===e.id)||o.push({id:e.id,type:"position",position:{x:e.position.x+f,y:e.position.y+l}})})),(s.width<e.width||s.height<e.height||f||l)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:h+(f?c[0]*f-p:0),height:d+(l?c[1]*l-v:0)}})}),o}function rp(t,e,n,r,o,i,u){let a=r?.querySelector(".xyflow__viewport"),s=!1;if(!a)return{changes:[],updatedInternals:s};let c=[],f=window.getComputedStyle(a),{m22:l}=new window.DOMMatrixReadOnly(f.transform),h=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),s=!0;continue}let a=nD(r.nodeElement),f=t.measured.width!==a.width||t.measured.height!==a.height;if(a.width&&a.height&&(f||!t.internals.handleBounds||r.force)){let d=r.nodeElement.getBoundingClientRect(),p=nS(t.extent)?t.extent:i,{positionAbsolute:v}=t.internals;if(t.parentId&&"parent"===t.extent){let n=e.get(t.parentId);n&&(v=nh(v,a,n))}else p&&(v=nl(v,p,a));let g={...t,measured:a,internals:{...t.internals,positionAbsolute:v,handleBounds:{source:nU("source",r.nodeElement,d,l,t.id),target:nU("target",r.nodeElement,d,l,t.id)}}};e.set(t.id,g),t.parentId&&rl(g,e,n,{nodeOrigin:o,zIndexMode:u}),s=!0,f&&(c.push({id:t.id,type:"dimensions",dimensions:a}),t.expandParent&&t.parentId&&h.push({id:t.id,parentId:t.parentId,rect:nm(g,o)}))}}if(h.length>0){let t=rd(h,e,n,o);c.push(...t)}return{changes:c,updatedInternals:s}}async function rv({delta:t,panZoom:e,transform:n,translateExtent:r,width:o,height:i}){if(!e||!t.x&&!t.y)return!1;let u=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[o,i]],r);return!!u&&(u.x!==n[0]||u.y!==n[1]||u.k!==n[2])}function rg(t,e,n,r,o,i){let u=o,a=r.get(u)||new Map;r.set(u,a.set(n,e)),u=`${o}-${t}`;let s=r.get(u)||new Map;if(r.set(u,s.set(n,e)),i){u=`${o}-${t}-${i}`;let a=r.get(u)||new Map;r.set(u,a.set(n,e))}}function ry(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:o,sourceHandle:i=null,targetHandle:u=null}=r,a={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:u},s=`${n}-${i}--${o}-${u}`;rg("source",a,`${o}-${u}--${n}-${i}`,t,n,i),rg("target",a,s,t,o,u),e.set(r.id,r)}}function rm(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function rx({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let o=[];for(let[t,i]of e){let e=n.get(t)?.internals.userNode;e&&o.push({...e,position:i.position,dragging:r})}if(!t)return[o[0],o];let i=n.get(t)?.internals.userNode;return[i?{...i,position:e.get(t)?.position||i.position,dragging:r}:o[0],o]}function rb({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},u=0,a=new Map,s=!1,c={x:0,y:0},f=null,l=!1,h=null,d=!1,p=!1,v=null;return{update:function({noDragClassName:g,handleSelector:y,domNode:m,isSelectable:b,nodeId:w,nodeClickDistance:_=0}){function E({x:t,y:n}){let{nodeLookup:o,nodeExtent:u,snapGrid:s,snapToGrid:c,nodeOrigin:f,onNodeDrag:l,onSelectionDrag:h,onError:d,updateNodePositions:g}=e();i={x:t,y:n};let y=!1,m=a.size>1,x=m&&u?ng(no(a)):null,b=m&&c?function({dragItems:t,snapGrid:e,x:n,y:r}){let o=t.values().next().value;if(!o)return null;let i={x:n-o.distance.x,y:r-o.distance.y},u=nM(i,e);return{x:u.x-i.x,y:u.y-i.y}}({dragItems:a,snapGrid:s,x:t,y:n}):null;for(let[e,r]of a){if(!o.has(e))continue;let i={x:t-r.distance.x,y:n-r.distance.y};c&&(i=b?{x:Math.round(i.x+b.x),y:Math.round(i.y+b.y)}:nM(i,s));let a=null;if(m&&u&&!r.extent&&x){let{positionAbsolute:t}=r.internals,e=t.x-x.x+u[0][0],n=t.x+r.measured.width-x.x2+u[1][0];a=[[e,t.y-x.y+u[0][1]],[n,t.y+r.measured.height-x.y2+u[1][1]]]}let{position:l,positionAbsolute:h}=ns({nodeId:e,nextPosition:i,nodeLookup:o,nodeExtent:a||u,nodeOrigin:f,onError:d});y=y||r.position.x!==l.x||r.position.y!==l.y,r.position=l,r.internals.positionAbsolute=h}if(p=p||y,y&&(g(a,!0),v&&(r||l||!w&&h))){let[t,e]=rx({nodeId:w,dragItems:a,nodeLookup:o});r?.(v,a,t,e),l?.(v,t,e),w||h?.(v,e)}}async function k(){if(!f)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=e();if(!o){s=!1,cancelAnimationFrame(u);return}let[a,l]=np(c,f,r);(0!==a||0!==l)&&(i.x=(i.x??0)-a/t[2],i.y=(i.y??0)-l/t[2],await n({x:a,y:l})&&E(i)),u=requestAnimationFrame(k)}function j(r){let{nodeLookup:o,multiSelectionActive:u,nodesDraggable:s,transform:c,snapGrid:h,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:v,onSelectionDragStart:g,unselectNodesAndEdges:y}=e();l=!0,p&&b||u||!w||o.get(w)?.selected||y(),b&&p&&w&&t?.(w);let m=nB(r.sourceEvent,{transform:c,snapGrid:h,snapToGrid:d,containerBounds:f});if(i=m,(a=function(t,e,n,r){let o=new Map;for(let[i,u]of t)if((u.selected||u.id===r)&&(!u.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(u,t))&&(u.draggable||e&&void 0===u.draggable)){let e=t.get(i);e&&o.set(i,{id:i,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return o}(o,s,m,w)).size>0&&(n||v||!w&&g)){let[t,e]=rx({nodeId:w,dragItems:a,nodeLookup:o});n?.(r.sourceEvent,a,t,e),v?.(r.sourceEvent,t,e),w||g?.(r.sourceEvent,e)}}h=tc(m);let M=(function(){var t,e,n,r,o=tx,i=tb,u=tw,a=t_,s={},c=x("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",y,tl).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(u,a){if(!r&&o.call(this,u,a)){var s=b(this,i.call(this,u,a),u,a,"mouse");s&&(tc(u.view).on("mousemove.drag",p,th).on("mouseup.drag",v,th),tv(u.view),td(u),n=!1,t=u.clientX,e=u.clientY,s("start",u))}}function p(r){if(tp(r),!n){var o=r.clientX-t,i=r.clientY-e;n=o*o+i*i>l}s.mouse("drag",r)}function v(t){tc(t.view).on("mousemove.drag mouseup.drag",null),tg(t.view,n),tp(t),s.mouse("end",t)}function g(t,e){if(o.call(this,t,e)){var n,r,u=t.changedTouches,a=i.call(this,t,e),s=u.length;for(n=0;n<s;++n)(r=b(this,a,t,e,u[n].identifier,u[n]))&&(td(t),r("start",t,u[n]))}}function y(t){var e,n,r=t.changedTouches,o=r.length;for(e=0;e<o;++e)(n=s[r[e].identifier])&&(tp(t),n("drag",t,r[e]))}function m(t){var e,n,o=t.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(n=s[o[e].identifier])&&(td(t),n("end",t,o[e]))}function b(t,e,n,r,o,i){var a,l,d,p=c.copy(),v=tf(i||n,e);if(null!=(d=u.call(t,new tm("beforestart",{sourceEvent:n,target:h,identifier:o,active:f,x:v[0],y:v[1],dx:0,dy:0,dispatch:p}),r)))return a=d.x-v[0]||0,l=d.y-v[1]||0,function n(i,u,c){var g,y=v;switch(i){case"start":s[o]=n,g=f++;break;case"end":delete s[o],--f;case"drag":v=tf(c||u,e),g=f}p.call(i,t,new tm(i,{sourceEvent:u,subject:d,target:h,identifier:o,active:g,x:v[0]+a,y:v[1]+l,dx:v[0]-y[0],dy:v[1]-y[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(o="function"==typeof t?t:ty(!!t),h):o},h.container=function(t){return arguments.length?(i="function"==typeof t?t:ty(t),h):i},h.subject=function(t){return arguments.length?(u="function"==typeof t?t:ty(t),h):u},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:ty(!!t),h):a},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h})().clickDistance(_).on("start",t=>{let{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:u,snapToGrid:a}=e();f=n?.getBoundingClientRect()||null,d=!1,p=!1,v=t.sourceEvent,0===r&&j(t),i=nB(t.sourceEvent,{transform:o,snapGrid:u,snapToGrid:a,containerBounds:f}),c=nY(t.sourceEvent,f)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:u,nodeDragThreshold:h,nodeLookup:p}=e(),g=nB(t.sourceEvent,{transform:r,snapGrid:o,snapToGrid:u,containerBounds:f});if(v=t.sourceEvent,("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||w&&!p.has(w))&&(d=!0),!d){if(!s&&n&&l&&(s=!0,k()),!l){let e=nY(t.sourceEvent,f),n=e.x-c.x,r=e.y-c.y;Math.sqrt(n*n+r*r)>h&&j(t)}(i.x!==g.xSnapped||i.y!==g.ySnapped)&&a&&l&&(c=nY(t.sourceEvent,f),E(g))}}).on("end",t=>{if(!l||d){d&&a.size>0&&e().updateNodePositions(a,!1);return}if(s=!1,l=!1,cancelAnimationFrame(u),a.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:u}=e();if(p&&(r(a,!1),p=!1),o||i||!w&&u){let[e,r]=rx({nodeId:w,dragItems:a,nodeLookup:n,dragging:!1});o?.(t.sourceEvent,a,e,r),i?.(t.sourceEvent,e,r),w||u?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!g||!rm(e,`.${g}`,m))&&(!y||rm(e,y,m))});h.call(M)},destroy:function(){h?.on(".drag",null)}}}function rw(t,e,n,r,o,i=!1){let u=r.get(t);if(!u)return null;let a="strict"===o?u.internals.handleBounds?.[e]:[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]],s=(n?a?.find(t=>t.id===n):a?.[0])??null;return s&&i?{...s,...re(u,s,s.position,!0)}:s}function r_(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}let rE=()=>!0;function rk(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:u,lib:a,flowId:s,isValidConnection:c=rE,nodeLookup:f}){let h="target"===i,d=e?u.querySelector(`.${a}-flow__handle[data-id="${s}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y:v}=nY(t),g=u.elementFromPoint(p,v),y=g?.classList.contains(`${a}-flow__handle`)?g:d,m={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let t=r_(void 0,y),e=y.getAttribute("data-nodeid"),i=y.getAttribute("data-handleid"),u=y.classList.contains("connectable"),a=y.classList.contains("connectableend");if(!e||!t)return m;let s={source:h?e:r,sourceHandle:h?i:o,target:h?r:e,targetHandle:h?o:i};m.connection=s;let d=u&&a&&(n===l.Strict?h&&"source"===t||!h&&"target"===t:e!==r||i!==o);m.isValid=d&&c(s),m.toHandle=rw(e,t,i,f,n,!0)}return m}let rj={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:u,domNode:a,nodeLookup:s,lib:c,autoPanOnConnect:f,flowId:l,panBy:h,cancelConnection:d,onConnectStart:p,onConnect:v,onConnectEnd:y,isValidConnection:m=rE,onReconnectEnd:x,updateConnection:b,getTransform:w,getFromHandle:_,autoPanSpeed:E,dragThreshold:k=1,handleDomNode:j}){let M;let N=nV(t.target),A=0,{x:I,y:O}=nY(t),z=r_(i,j),S=a?.getBoundingClientRect(),$=!1;if(!S||!z)return;let T=rw(o,z,r,s,e);if(!T)return;let P=nY(t,S),C=!1,L=null,R=!1,B=null,D={...T,nodeId:o,type:z,position:T.position},V=s.get(o),F={inProgress:!0,isValid:null,from:re(V,D,g.Left,!0),fromHandle:D,fromPosition:D.position,fromNode:V,to:P,toHandle:null,toPosition:e5[D.position],toNode:null,pointer:P};function H(){$=!0,b(F),p?.(t,{nodeId:o,handleId:r,handleType:z})}function q(t){var i,a;let d;if(!$){let{x:e,y:n}=nY(t),r=e-I,o=n-O;if(!(r*r+o*o>k*k))return;H()}if(!_()||!D){Y(t);return}let p=w();M=function(t,e,n,r){let o=[],i=1/0;for(let u of function(t,e,n){let r=[],o={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())n_(o,nm(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:a,y:s}=re(u,n,n.position,!0),c=Math.sqrt(Math.pow(a-t.x,2)+Math.pow(s-t.y,2));c>e||(c<i?(o=[{...n,x:a,y:s}],i=c):c===i&&o.push({...n,x:a,y:s}))}if(!o.length)return null;if(o.length>1){let t="source"===r.type?"target":"source";return o.find(e=>e.type===t)??o[0]}return o[0]}(nN(P=nY(t,S),p,!1,[1,1]),n,s,D),C||(function t(){if(!f||!S)return;let[e,n]=np(P,S,E);h({x:e,y:n}),A=requestAnimationFrame(t)}(),C=!0);let v=rk(t,{handle:M,connectionMode:e,fromNodeId:o,fromHandleId:r,fromType:u?"target":"source",isValidConnection:m,doc:N,lib:c,flowId:l,nodeLookup:s});B=v.handleDomNode,L=v.connection,i=!!M,a=v.isValid,d=null,a?d=!0:i&&!a&&(d=!1),R=d;let y=s.get(o),x=y?re(y,D,g.Left,!0):F.from,j={...F,from:x,isValid:R,to:v.toHandle&&R?nA({x:v.toHandle.x,y:v.toHandle.y},p):P,toHandle:v.toHandle,toPosition:R&&v.toHandle?v.toHandle.position:e5[D.position],toNode:v.toHandle?s.get(v.toHandle.nodeId):null,pointer:P};b(j),F=j}function Y(t){if(!("touches"in t)||!(t.touches.length>0)){if($){(M||B)&&L&&R&&v?.(L);let{inProgress:e,...n}=F,r={...n,toPosition:F.toHandle?F.toPosition:null};y?.(t,r),i&&x?.(t,r)}d(),cancelAnimationFrame(A),C=!1,R=!1,L=null,B=null,N.removeEventListener("mousemove",q),N.removeEventListener("mouseup",Y),N.removeEventListener("touchmove",q),N.removeEventListener("touchend",Y)}}0===k&&H(),N.addEventListener("mousemove",q),N.addEventListener("mouseup",Y),N.addEventListener("touchmove",q),N.addEventListener("touchend",Y)},isValid:rk};function rM({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let o=tc(t);return{update:function({translateExtent:t,width:i,height:u,zoomStep:a=1,pannable:s=!0,zoomable:c=!0,inversePan:f=!1}){let l=[0,0],h=e0().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(l=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",s?o=>{let a=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!e)return;let s=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],c=[s[0]-l[0],s[1]-l[1]];l=s;let h=r()*Math.max(a[2],Math.log(a[2]))*(f?-1:1),d={x:a[0]-c[0]*h,y:a[1]-c[1]*h};e.setViewportConstrained({x:d.x,y:d.y,zoom:a[2]},[[0,0],[i,u]],t)}:null).on("zoom.wheel",c?t=>{if("wheel"!==t.sourceEvent.type||!e)return;let r=n(),o=t.sourceEvent.ctrlKey&&nz()?10:1,i=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*a,u=r[2]*Math.pow(2,i*o);e.scaleTo(u)}:null);o.call(h,{})},destroy:function(){o.on("zoom",null)},pointer:tf}}let rN=t=>({x:t.x,y:t.y,zoom:t.k}),rA=({x:t,y:e,zoom:n})=>eq.translate(t,e).scale(n),rI=(t,e)=>t.target.closest(`.${e}`),rO=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),rz=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,rS=(t,e=0,n=rz,r=()=>{})=>{let o="number"==typeof e&&e>0;return o||r(),o?t.transition().duration(e).ease(n).on("end",r):t},r$=t=>{let e=t.ctrlKey&&nz()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function rT({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:o,onPanZoom:i,onPanZoomStart:u,onPanZoomEnd:a,onDraggingChange:s}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=t.getBoundingClientRect(),l=[[0,0],[f.width,f.height]],d="undefined"!=typeof ResizeObserver?new ResizeObserver(t=>{let e=t[0];e&&(l=[[0,0],[e.contentRect.width,e.contentRect.height]])}):null;d?.observe(t);let p=e0().extent(()=>l).scaleExtent([e,n]).translateExtent(r),v=tc(t).call(p);b({x:o.x,y:o.y,zoom:nf(o.zoom,e,n)},[[0,0],[f.width,f.height]],r);let g=v.on("wheel.zoom"),y=v.on("dblclick.zoom");async function m(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tM).transform(rS(v,e?.duration,e?.ease,()=>n(!0)),t)})}function x(){p.on("zoom",null)}async function b(t,e,n){let r=rA(t),o=p?.constrain()(r,e,n);return o&&await m(o),o}return p.wheelDelta(r$),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:f,panOnScrollMode:l,panOnScrollSpeed:d,preventScrolling:m,zoomOnPinch:b,zoomOnScroll:w,zoomOnDoubleClick:_,zoomActivationKeyPressed:E,lib:k,onTransformChange:j,connectionInProgress:M,paneClickDistance:N,selectionOnDrag:A}){r&&!c.isZoomingOrPanning&&x();let I=o&&!E&&!r;p.clickDistance(A?1/0:!nk(N)||N<0?0:N);let O=I?function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:u,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:c}){return f=>{if(rI(f,e))return f.ctrlKey&&f.preventDefault(),!1;f.preventDefault(),f.stopImmediatePropagation();let l=n.property("__zoom").k||1;if(f.ctrlKey&&u){let t=tf(f),e=r$(f);r.scaleTo(n,l*Math.pow(2,e),t,f);return}let d=1===f.deltaMode?20:1,p=o===h.Vertical?0:f.deltaX*d,v=o===h.Horizontal?0:f.deltaY*d;!nz()&&f.shiftKey&&o!==h.Vertical&&(p=f.deltaY*d,v=0),r.translateBy(n,-(p/l)*i,-(v/l)*i,{internal:!0});let g=rN(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?s?.(f,g):(t.isPanScrolling=!0,a?.(f,g)),t.panScrollTimeout=setTimeout(()=>{c?.(f,g),t.isPanScrolling=!1},150)}}({zoomPanValues:c,noWheelClassName:t,d3Selection:v,d3Zoom:p,panOnScrollMode:l,panOnScrollSpeed:d,zoomOnPinch:b,onPanZoomStart:u,onPanZoom:i,onPanZoomEnd:a}):function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,o){let i="wheel"===r.type,u=!e&&i&&!r.ctrlKey,a=rI(r,t);if(r.ctrlKey&&i&&a&&r.preventDefault(),u||a)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:t,preventScrolling:m,d3ZoomHandler:g});v.on("wheel.zoom",O,{passive:!1});let z=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let o=rN(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=o,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:c,onDraggingChange:s,onPanZoomStart:u});p.on("start",z);let S=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{t.usedRightMouseButton=!!(n&&rO(e,t.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,rN(i.transform))}}({zoomPanValues:c,panOnDrag:f,onPaneContextMenu:!!n,onPanZoom:i,onTransformChange:j});p.on("zoom",S);let $=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return u=>{if(!u.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,i&&rO(e,t.mouseButton??0)&&!t.usedRightMouseButton&&u.sourceEvent&&i(u.sourceEvent),t.usedRightMouseButton=!1,r(!1),o)){let e=rN(u.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{o?.(u.sourceEvent,e)},n?150:0)}}}({zoomPanValues:c,panOnDrag:f,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:a,onDraggingChange:s});p.on("end",$);let T=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:u,noWheelClassName:a,noPanClassName:s,lib:c,connectionInProgress:f}){return l=>{let h=t||e,d=n&&l.ctrlKey,p="wheel"===l.type;if(1===l.button&&"mousedown"===l.type&&(rI(l,`${c}-flow__node`)||rI(l,`${c}-flow__edge`)))return!0;if(!r&&!h&&!o&&!i&&!n||u||f&&!p||rI(l,a)&&p||rI(l,s)&&(!p||o&&p&&!t)||!n&&l.ctrlKey&&p)return!1;if(!n&&"touchstart"===l.type&&l.touches?.length>1)return l.preventDefault(),!1;if(!h&&!o&&!d&&p||!r&&("mousedown"===l.type||"touchstart"===l.type)||Array.isArray(r)&&!r.includes(l.button)&&"mousedown"===l.type)return!1;let v=Array.isArray(r)&&r.includes(l.button)||!l.button||l.button<=1;return(!l.ctrlKey||p)&&v}}({zoomActivationKeyPressed:E,panOnDrag:f,zoomOnScroll:w,panOnScroll:o,zoomOnDoubleClick:_,zoomOnPinch:b,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:k,connectionInProgress:M});p.filter(T),_?v.on("dblclick.zoom",y):v.on("dblclick.zoom",null)},destroy:x,setViewport:async function(t,e){let n=rA(t);return await m(n,e),n},setViewportConstrained:b,getViewport:function(){let t=v?eY(v.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:async function(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tM).scaleTo(rS(v,e?.duration,e?.ease,()=>n(!0)),t)})},scaleBy:async function(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tM).scaleBy(rS(v,e?.duration,e?.ease,()=>n(!0)),t)})},setScaleExtent:function(t){p?.scaleExtent(t)},setTranslateExtent:function(t){p?.translateExtent(t)},syncViewport:function(t){if(v){let e=rA(t),n=v.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&p?.transform(v,e,null,{sync:!0})}},setClickDistance:function(t){let e=!nk(t)||t<0?0:t;p?.clickDistance(e)}}}(c=y||(y={})).Line="line",c.Handle="handle"},86332:function(t,e,n){t.exports={graphlib:n(82901),layout:n(74086),debug:n(79050),util:{time:n(13616).time,notime:n(13616).notime},version:n(91e3)}},91725:function(t,e,n){"use strict";var r=n(9361),o=n(18265);t.exports={run:function(t){var e,n,i,u="greedy"===t.graph().acyclicer?o(t,function(e){return t.edge(e).weight}):(e=[],n={},i={},r.forEach(t.nodes(),function o(u){r.has(i,u)||(i[u]=!0,n[u]=!0,r.forEach(t.outEdges(u),function(t){r.has(n,t.w)?e.push(t):o(t.w)}),delete n[u])}),e);r.forEach(u,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},11415:function(t,e,n){var r=n(9361),o=n(13616);function i(t,e,n,r,i,u){var a=i[e][u-1],s=o.addDummyNode(t,"border",{width:0,height:0,rank:u,borderType:e},n);i[e][u]=s,t.setParent(s,r),a&&t.setEdge(a,s,{weight:1})}t.exports=function(t){r.forEach(t.children(),function e(n){var o=t.children(n),u=t.node(n);if(o.length&&r.forEach(o,e),r.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var a=u.minRank,s=u.maxRank+1;a<s;++a)i(t,"borderLeft","_bl",n,u,a),i(t,"borderRight","_br",n,u,a)}})}},98653:function(t,e,n){"use strict";var r=n(9361);function o(t){r.forEach(t.nodes(),function(e){i(t.node(e))}),r.forEach(t.edges(),function(e){i(t.edge(e))})}function i(t){var e=t.width;t.width=t.height,t.height=e}function u(t){t.y=-t.y}function a(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();("bt"===e||"rl"===e)&&(r.forEach(t.nodes(),function(e){u(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"y")&&u(n)})),("lr"===e||"rl"===e)&&(r.forEach(t.nodes(),function(e){a(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"x")&&a(n)}),o(t))}}},64517:function(t){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},79050:function(t,e,n){var r=n(9361),o=n(13616),i=n(82901).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.forEach(e,function(t,e){n.setNode("layer"+e,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}}},82901:function(t,e,n){var r;try{r=n(46038)}catch(t){}r||(r=window.graphlib),t.exports=r},18265:function(t,e,n){var r=n(9361),o=n(82901).Graph,i=n(64517);t.exports=function(t,e){if(1>=t.nodeCount())return[];var n,c,f,l,h,d,p=(n=e||u,c=new o,f=0,l=0,r.forEach(t.nodes(),function(t){c.setNode(t,{v:t,in:0,out:0})}),r.forEach(t.edges(),function(t){var e=c.edge(t.v,t.w)||0,r=n(t);c.setEdge(t.v,t.w,e+r),l=Math.max(l,c.node(t.v).out+=r),f=Math.max(f,c.node(t.w).in+=r)}),h=r.range(l+f+3).map(function(){return new i}),d=f+1,r.forEach(c.nodes(),function(t){s(h,d,c.node(t))}),{graph:c,buckets:h,zeroIdx:d}),v=function(t,e,n){for(var r,o=[],i=e[e.length-1],u=e[0];t.nodeCount();){for(;r=u.dequeue();)a(t,e,n,r);for(;r=i.dequeue();)a(t,e,n,r);if(t.nodeCount()){for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){o=o.concat(a(t,e,n,r,!0));break}}}return o}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(v,function(e){return t.outEdges(e.v,e.w)}),!0)};var u=r.constant(1);function a(t,e,n,o,i){var u=i?[]:void 0;return r.forEach(t.inEdges(o.v),function(r){var o=t.edge(r),a=t.node(r.v);i&&u.push({v:r.v,w:r.w}),a.out-=o,s(e,n,a)}),r.forEach(t.outEdges(o.v),function(r){var o=t.edge(r),i=r.w,u=t.node(i);u.in-=o,s(e,n,u)}),t.removeNode(o.v),u}function s(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},74086:function(t,e,n){"use strict";var r=n(9361),o=n(91725),i=n(35061),u=n(59653),a=n(13616).normalizeRanks,s=n(118),c=n(13616).removeEmptyRanks,f=n(58361),l=n(11415),h=n(98653),d=n(79838),p=n(67884),v=n(13616),g=n(82901).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){var e,n;return e=new g({multigraph:!0,compound:!0}),n=M(t.graph()),e.setGraph(r.merge({},m,j(n,y),r.pick(n,x))),r.forEach(t.nodes(),function(n){var o=M(t.node(n));e.setNode(n,r.defaults(j(o,b),w)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var o=M(t.edge(n));e.setEdge(n,r.merge({},E,j(o,_),r.pick(o,k)))}),e});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var t;t=e.graph(),t.ranksep/=2,r.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),n(" removeSelfEdges",function(){r.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),n(" acyclic",function(){o.run(e)}),n(" nestingGraph.run",function(){f.run(e)}),n(" rank",function(){u(v.asNonCompoundGraph(e))}),n(" injectEdgeLabelProxies",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}})}),n(" removeEmptyRanks",function(){c(e)}),n(" nestingGraph.cleanup",function(){f.cleanup(e)}),n(" normalizeRanks",function(){a(e)}),n(" assignRankMinMax",function(){var t;t=0,r.forEach(e.nodes(),function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))}),e.graph().maxRank=t}),n(" removeEdgeLabelProxies",function(){r.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}),n(" normalize.run",function(){i.run(e)}),n(" parentDummyChains",function(){s(e)}),n(" addBorderSegments",function(){l(e)}),n(" order",function(){d(e)}),n(" insertSelfEdges",function(){var t;t=v.buildLayerMatrix(e),r.forEach(t,function(t){var n=0;r.forEach(t,function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}),n(" adjustCoordinateSystem",function(){h.adjust(e)}),n(" position",function(){p(e)}),n(" positionSelfEdges",function(){r.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,u=n.x-o,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*u/3,y:i-a},{x:o+5*u/6,y:i-a},{x:o+u,y:i},{x:o+5*u/6,y:i+a},{x:o+2*u/3,y:i+a}],n.label.x=n.x,n.label.y=n.y}})}),n(" removeBorderNodes",function(){r.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),u=e.node(r.last(n.borderLeft)),a=e.node(r.last(n.borderRight));n.width=Math.abs(a.x-u.x),n.height=Math.abs(i.y-o.y),n.x=u.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),n(" normalize.undo",function(){i.undo(e)}),n(" fixupEdgeLabelCoords",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),n(" undoCoordinateSystem",function(){h.undo(e)}),n(" translateGraph",function(){(function(t){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,u=t.graph(),a=u.marginx||0,s=u.marginy||0;function c(t){var r=t.x,u=t.y,a=t.width,s=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),o=Math.min(o,u-s/2),i=Math.max(i,u+s/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=a,o-=s,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=o}),r.forEach(t.edges(),function(n){var i=t.edge(n);r.forEach(i.points,function(t){t.x-=e,t.y-=o}),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)}),u.width=n-e+a,u.height=i-o+s})(e)}),n(" assignNodeIntersects",function(){r.forEach(e.edges(),function(t){var n,r,o=e.edge(t),i=e.node(t.v),u=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=u,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(u,r))})}),n(" reversePoints",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}),n(" acyclic.undo",function(){o.undo(e)})}),n(" updateInputGraph",function(){r.forEach(t.nodes(),function(n){var r=t.node(n),o=e.node(n);r&&(r.x=o.x,r.y=o.y,e.children(n).length&&(r.width=o.width,r.height=o.height))}),r.forEach(t.edges(),function(n){var o=t.edge(n),i=e.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height})})};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},x=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function j(t,e){return r.mapValues(r.pick(t,e),Number)}function M(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},9361:function(t,e,n){var r;try{r={cloneDeep:n(97975),constant:n(38461),defaults:n(85339),each:n(48325),filter:n(21231),find:n(87639),flatten:n(68274),forEach:n(58391),forIn:n(77230),has:n(4093),isUndefined:n(51790),last:n(2457),map:n(89232),mapValues:n(20993),max:n(15387),merge:n(79491),min:n(47479),minBy:n(86971),now:n(54987),pick:n(4036),range:n(60297),reduce:n(59897),sortBy:n(21520),uniqueId:n(22942),values:n(87838),zipObject:n(3097)}}catch(t){}r||(r=window._),t.exports=r},58361:function(t,e,n){var r=n(9361),o=n(13616);t.exports={run:function(t){var e,n=o.addDummyNode(t,"root",{},"_root"),i=(e={},r.forEach(t.children(),function(n){!function n(o,i){var u=t.children(o);u&&u.length&&r.forEach(u,function(t){n(t,i+1)}),e[o]=i}(n,1)}),e),u=r.max(r.values(i))-1,a=2*u+1;t.graph().nestingRoot=n,r.forEach(t.edges(),function(e){t.edge(e).minlen*=a});var s=r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)+1;r.forEach(t.children(),function(e){(function t(e,n,i,u,a,s,c){var f=e.children(c);if(!f.length){c!==n&&e.setEdge(n,c,{weight:0,minlen:i});return}var l=o.addBorderNode(e,"_bt"),h=o.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(l,c),d.borderTop=l,e.setParent(h,c),d.borderBottom=h,r.forEach(f,function(r){t(e,n,i,u,a,s,r);var o=e.node(r),f=o.borderTop?o.borderTop:r,d=o.borderBottom?o.borderBottom:r,p=o.borderTop?u:2*u,v=f!==d?1:a-s[c]+1;e.setEdge(l,f,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})}),e.parent(c)||e.setEdge(n,l,{weight:0,minlen:a+s[c]})})(t,n,a,s,u,i,e)}),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},35061:function(t,e,n){"use strict";var r=n(9361),o=n(13616);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){(function(t,e){var n,r,i,u=e.v,a=t.node(u).rank,s=e.w,c=t.node(s).rank,f=e.name,l=t.edge(e),h=l.labelRank;if(c!==a+1){for(t.removeEdge(e),i=0,++a;a<c;++i,++a)l.points=[],r={width:0,height:0,edgeLabel:l,edgeObj:e,rank:a},n=o.addDummyNode(t,"edge",r,"_d"),a===h&&(r.width=l.width,r.height=l.height,r.dummy="edge-label",r.labelpos=l.labelpos),t.setEdge(u,n,{weight:l.weight},f),0===i&&t.graph().dummyChains.push(n),u=n;t.setEdge(u,s,{weight:l.weight},f)}})(t,e)})},undo:function(t){r.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),o=r.edgeLabel;for(t.setEdge(r.edgeObj,o);r.dummy;)n=t.successors(e)[0],t.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=n,r=t.node(e)})}}},38719:function(t,e,n){var r=n(9361);t.exports=function(t,e,n){var o,i={};r.forEach(n,function(n){for(var r,u,a=t.parent(n);a;){if((r=t.parent(a))?(u=i[r],i[r]=a):(u=o,o=a),u&&u!==a){e.setEdge(u,a);return}a=r}})}},12956:function(t,e,n){var r=n(9361);t.exports=function(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(!n.length)return{v:e};var o=r.reduce(n,function(e,n){var r=t.edge(n),o=t.node(n.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}})}},53684:function(t,e,n){var r=n(9361),o=n(82901).Graph;t.exports=function(t,e,n){var i=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),u=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(e){return t.node(e)});return r.forEach(t.nodes(),function(o){var a=t.node(o),s=t.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(u.setNode(o),u.setParent(o,s||i),r.forEach(t[n](o),function(e){var n=e.v===o?e.w:e.v,i=u.edge(n,o),a=r.isUndefined(i)?0:i.weight;u.setEdge(n,o,{weight:t.edge(e).weight+a})}),r.has(a,"minRank")&&u.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),u}},74101:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t,e){for(var n=0,o=1;o<e.length;++o)n+=function(t,e,n){for(var o=r.zipObject(n,r.map(n,function(t,e){return e})),i=r.flatten(r.map(e,function(e){return r.sortBy(r.map(t.outEdges(e),function(e){return{pos:o[e.w],weight:t.edge(e).weight}}),"pos")}),!0),u=1;u<n.length;)u<<=1;var a=2*u-1;u-=1;var s=r.map(Array(a),function(){return 0}),c=0;return r.forEach(i.forEach(function(t){var e=t.pos+u;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),e=e-1>>1,s[e]+=t.weight;c+=t.weight*n})),c}(t,e[o-1],e[o]);return n}},79838:function(t,e,n){"use strict";var r=n(9361),o=n(25209),i=n(74101),u=n(57456),a=n(53684),s=n(38719),c=n(82901).Graph,f=n(13616);function l(t,e,n){return r.map(e,function(e){return a(t,e,n)})}function h(t,e){r.forEach(e,function(e){r.forEach(e,function(e,n){t.node(e).order=n})})}t.exports=function(t){var e=f.maxRank(t),n=l(t,r.range(1,e+1),"inEdges"),a=l(t,r.range(e-1,-1,-1),"outEdges"),d=o(t);h(t,d);for(var p,v=Number.POSITIVE_INFINITY,g=0,y=0;y<4;++g,++y){(function(t,e){var n=new c;r.forEach(t,function(t){var o=t.graph().root,i=u(t,o,n,e);r.forEach(i.vs,function(e,n){t.node(e).order=n}),s(t,n,i.vs)})})(g%2?n:a,g%4>=2),d=f.buildLayerMatrix(t);var m=i(t,d);m<v&&(y=0,p=r.cloneDeep(d),v=m)}h(t,p)}},25209:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t){var e={},n=r.filter(t.nodes(),function(e){return!t.children(e).length}),o=r.max(r.map(n,function(e){return t.node(e).rank})),i=r.map(r.range(o+1),function(){return[]}),u=r.sortBy(n,function(e){return t.node(e).rank});return r.forEach(u,function n(o){r.has(e,o)||(e[o]=!0,i[t.node(o).rank].push(o),r.forEach(t.successors(o),n))}),i}},98279:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t,e){var n={};return r.forEach(t,function(t,e){var o=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),r.forEach(e.edges(),function(t){var e=n[t.v],o=n[t.w];r.isUndefined(e)||r.isUndefined(o)||(o.indegree++,e.out.push(n[t.w]))}),function(t){for(var e=[];t.length;){var n=t.pop();e.push(n),r.forEach(n.in.reverse(),function(t){return function(e){!e.merged&&(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}(n)),r.forEach(n.out,function(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}(n))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},57456:function(t,e,n){var r=n(9361),o=n(12956),i=n(98279),u=n(99790);t.exports=function t(e,n,a,s){var c=e.children(n),f=e.node(n),l=f?f.borderLeft:void 0,h=f?f.borderRight:void 0,d={};l&&(c=r.filter(c,function(t){return t!==l&&t!==h}));var p=o(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var o=t(e,n.v,a,s);d[n.v]=o,r.has(o,"barycenter")&&(r.isUndefined(n.barycenter)?(n.barycenter=o.barycenter,n.weight=o.weight):(n.barycenter=(n.barycenter*n.weight+o.barycenter*o.weight)/(n.weight+o.weight),n.weight+=o.weight))}});var v=i(p,a);r.forEach(v,function(t){t.vs=r.flatten(t.vs.map(function(t){return d[t]?d[t].vs:t}),!0)});var g=u(v,s);if(l&&(g.vs=r.flatten([l,g.vs,h],!0),e.predecessors(l).length)){var y=e.node(e.predecessors(l)[0]),m=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+m.order)/(g.weight+2),g.weight+=2}return g}},99790:function(t,e,n){var r=n(9361),o=n(13616);function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n,u=o.partition(t,function(t){return r.has(t,"barycenter")}),a=u.lhs,s=r.sortBy(u.rhs,function(t){return-t.i}),c=[],f=0,l=0,h=0;a.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),h=i(c,s,h),r.forEach(a,function(t){h+=t.vs.length,c.push(t.vs),f+=t.barycenter*t.weight,l+=t.weight,h=i(c,s,h)});var d={vs:r.flatten(c,!0)};return l&&(d.barycenter=f/l,d.weight=l),d}},118:function(t,e,n){var r=n(9361);t.exports=function(t){var e,n,o=(e={},n=0,r.forEach(t.children(),function o(i){var u=n;r.forEach(t.children(i),o),e[i]={low:u,lim:n++}}),e);r.forEach(t.graph().dummyChains,function(e){for(var n=t.node(e),r=n.edgeObj,i=function(t,e,n,r){var o,i,u=[],a=[],s=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);o=n;do u.push(o=t.parent(o));while(o&&(e[o].low>s||c>e[o].lim));for(i=o,o=r;(o=t.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(t,o,r.v,r.w),u=i.path,a=i.lca,s=0,c=u[0],f=!0;e!==r.w;){if(n=t.node(e),f){for(;(c=u[s])!==a&&t.node(c).maxRank<n.rank;)s++;c===a&&(f=!1)}if(!f){for(;s<u.length-1&&t.node(c=u[s+1]).minRank<=n.rank;)s++;c=u[s]}t.setParent(e,c),e=t.successors(e)[0]}})}},91077:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph,i=n(13616);function u(t,e){var n={};return r.reduce(e,function(e,o){var i=0,u=0,a=e.length,c=r.last(o);return r.forEach(o,function(e,f){var l=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),h=l?t.node(l).order:a;(l||e===c)&&(r.forEach(o.slice(u,f+1),function(e){r.forEach(t.predecessors(e),function(r){var o=t.node(r),u=o.order;(u<i||h<u)&&!(o.dummy&&t.node(e).dummy)&&s(n,r,e)})}),u=f+1,i=h)}),o}),n}function a(t,e){var n={};function o(e,o,i,u,a){var c;r.forEach(r.range(o,i),function(o){c=e[o],t.node(c).dummy&&r.forEach(t.predecessors(c),function(e){var r=t.node(e);r.dummy&&(r.order<u||r.order>a)&&s(n,e,c)})})}return r.reduce(e,function(e,n){var i,u=-1,a=0;return r.forEach(n,function(r,s){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(i=t.node(c[0]).order,o(n,a,s,u,i),a=s,u=i)}o(n,a,n.length,i,e.length)}),n}),n}function s(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function c(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function f(t,e,n,o){var i={},u={},a={};return r.forEach(e,function(t){r.forEach(t,function(t,e){i[t]=t,u[t]=t,a[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var s=o(t);if(s.length)for(var f=((s=r.sortBy(s,function(t){return a[t]})).length-1)/2,l=Math.floor(f),h=Math.ceil(f);l<=h;++l){var d=s[l];u[t]===t&&e<a[d]&&!c(n,t,d)&&(u[d]=t,u[t]=i[t]=i[d],e=a[d])}})}),{root:i,align:u}}function l(t,e,n,i,u){var a,s,c,f,l,h={},d=(c=new o,a=(f=t.graph()).nodesep,s=f.edgesep,l=function(t,e,n){var o,i,c=t.node(e),f=t.node(n);if(o=0+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":i=-c.width/2;break;case"r":i=c.width/2}if(i&&(o+=u?i:-i),i=0,o+=(c.dummy?s:a)/2+(f.dummy?s:a)/2+f.width/2,r.has(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":i=f.width/2;break;case"r":i=-f.width/2}return i&&(o+=u?i:-i),i=0,o},r.forEach(e,function(e){var o;r.forEach(e,function(e){var r=n[e];if(c.setNode(r),o){var i=n[o],u=c.edge(i,r);c.setEdge(i,r,Math.max(l(t,e,o),u||0))}o=e})}),c),p=u?"borderLeft":"borderRight";function v(t,e){for(var n=d.nodes(),r=n.pop(),o={};r;)o[r]?t(r):(o[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return v(function(t){h[t]=d.inEdges(t).reduce(function(t,e){return Math.max(t,h[e.v]+d.edge(e))},0)},d.predecessors.bind(d)),v(function(e){var n=d.outEdges(e).reduce(function(t,e){return Math.min(t,h[e.w]-d.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==p&&(h[e]=Math.max(h[e],n))},d.successors.bind(d)),r.forEach(i,function(t){h[t]=h[n[t]]}),h}function h(t,e){return r.minBy(r.values(e),function(e){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(e,function(e,r){var i=t.node(r).width/2;n=Math.max(e+i,n),o=Math.min(e-i,o)}),n-o})}function d(t,e){var n=r.values(e),o=r.min(n),i=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(u){var a,s=n+u,c=t[s];if(c!==e){var f=r.values(c);(a="l"===u?o-r.min(f):i-r.max(f))&&(t[s]=r.mapValues(c,function(t){return t+a}))}})})}function p(t,e){return r.mapValues(t.ul,function(n,o){if(e)return t[e.toLowerCase()][o];var i=r.sortBy(r.map(t,o));return(i[1]+i[2])/2})}t.exports={positionX:function(t){var e,n=i.buildLayerMatrix(t),o=r.merge(u(t,n),a(t,n)),s={};r.forEach(["u","d"],function(i){e="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(e=r.map(e,function(t){return r.values(t).reverse()}));var u=("u"===i?t.predecessors:t.successors).bind(t),a=f(t,e,o,u),c=l(t,e,a.root,a.align,"r"===n);"r"===n&&(c=r.mapValues(c,function(t){return-t})),s[i+n]=c})});var c=h(t,s);return d(s,c),p(s,t.graph().align)},findType1Conflicts:u,findType2Conflicts:a,addConflict:s,hasConflict:c,verticalAlignment:f,horizontalCompaction:l,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},67884:function(t,e,n){"use strict";var r=n(9361),o=n(13616),i=n(91077).positionX;t.exports=function(t){var e,n,u,a;e=t=o.asNonCompoundGraph(t),n=o.buildLayerMatrix(e),u=e.graph().ranksep,a=0,r.forEach(n,function(t){var n=r.max(r.map(t,function(t){return e.node(t).height}));r.forEach(t,function(t){e.node(t).y=a+n/2}),a+=n+u}),r.forEach(i(t),function(e,n){t.node(n).x=e})}},66763:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph,i=n(88827).slack;t.exports=function(t){var e,n,u=new o({directed:!1}),a=t.nodes()[0],s=t.nodeCount();for(u.setNode(a,{});r.forEach(u.nodes(),function e(n){r.forEach(t.nodeEdges(n),function(r){var o=r.v,a=n===o?r.w:o;u.hasNode(a)||i(t,r)||(u.setNode(a,{}),u.setEdge(n,a,{}),e(a))})}),u.nodeCount()<s;)e=function(t,e){return r.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return i(e,n)})}(u,t),n=u.hasNode(e.v)?i(t,e):-i(t,e),function(t,e,n){r.forEach(t.nodes(),function(t){e.node(t).rank+=n})}(u,t,n);return u}},59653:function(t,e,n){"use strict";var r=n(88827).longestPath,o=n(66763),i=n(48052);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:i(t);break;case"tight-tree":r(t),o(t);break;case"longest-path":u(t)}};var u=r},48052:function(t,e,n){"use strict";var r=n(9361),o=n(66763),i=n(88827).slack,u=n(88827).longestPath,a=n(82901).alg.preorder,s=n(82901).alg.postorder,c=n(13616).simplify;function f(t){u(t=c(t));var e,n,r=o(t);for(d(r),l(r,t);e=p(r);)n=v(r,t,e),g(r,t,e,n)}function l(t,e){var n=s(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r;r=t.node(n).parent,t.edge(n,r).cutvalue=h(t,e,n)})}function h(t,e,n){var o=t.node(n).parent,i=!0,u=e.edge(n,o),a=0;return u||(i=!1,u=e.edge(o,n)),a=u.weight,r.forEach(e.nodeEdges(n),function(r){var u=r.v===n,s=u?r.w:r.v;if(s!==o){var c=u===i,f=e.edge(r).weight;if(a+=c?f:-f,t.hasEdge(n,s)){var l=t.edge(n,s).cutvalue;a+=c?-l:l}}}),a}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,o,i,u){var a=o,s=e.node(i);return n[i]=!0,r.forEach(e.neighbors(i),function(u){r.has(n,u)||(o=t(e,n,o,u,i))}),s.low=a,s.lim=o++,u?s.parent=u:delete s.parent,o}(t,{},1,e)}function p(t){return r.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function v(t,e,n){var o=n.v,u=n.w;e.hasEdge(o,u)||(o=n.w,u=n.v);var a=t.node(o),s=t.node(u),c=a,f=!1;a.lim>s.lim&&(c=s,f=!0);var l=r.filter(e.edges(),function(e){return f===y(t,t.node(e.v),c)&&f!==y(t,t.node(e.w),c)});return r.minBy(l,function(t){return i(e,t)})}function g(t,e,n,o){var i,u,s=n.v,c=n.w;t.removeEdge(s,c),t.setEdge(o.v,o.w,{}),d(t),l(t,e),i=r.find(t.nodes(),function(t){return!e.node(t).parent}),u=(u=a(t,i)).slice(1),r.forEach(u,function(n){var r=t.node(n).parent,o=e.edge(n,r),i=!1;o||(o=e.edge(r,n),i=!0),e.node(n).rank=e.node(r).rank+(i?o.minlen:-o.minlen)})}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=f,f.initLowLimValues=d,f.initCutValues=l,f.calcCutValue=h,f.leaveEdge=p,f.enterEdge=v,f.exchangeEdges=g},88827:function(t,e,n){"use strict";var r=n(9361);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var u=r.min(r.map(t.outEdges(o),function(e){return n(e.w)-t.edge(e).minlen}));return(u===Number.POSITIVE_INFINITY||null==u)&&(u=0),i.rank=u})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},13616:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph;function i(t,e,n,o){var i;do i=r.uniqueId(o);while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function u(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:i,simplify:function(t){var e=new o().setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,u=e.x-o,a=e.y-i,s=t.width/2,c=t.height/2;if(!u&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*s>Math.abs(u)*c?(a<0&&(c=-c),n=c*u/a,r=c):(u<0&&(s=-s),n=s,r=s*a/u),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(u(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)});var o=0,i=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,function(e){t.node(e).rank+=o})})},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:u,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},91e3:function(t){t.exports="0.8.5"},46038:function(t,e,n){var r=n(75717);t.exports={Graph:r.Graph,json:n(39107),alg:n(84725),version:r.version}},55201:function(t,e,n){var r=n(99090);t.exports=function(t){var e,n={},o=[];return r.each(t.nodes(),function(i){e=[],function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}(i),e.length&&o.push(e)}),o}},25605:function(t,e,n){var r=n(99090);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],u={};return r.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);(function t(e,n,o,i,u,a){!r.has(i,n)&&(i[n]=!0,o||a.push(n),r.each(u(n),function(n){t(e,n,o,i,u,a)}),o&&a.push(n))})(t,e,"post"===n,u,o,i)}),i}},84324:function(t,e,n){var r=n(28126),o=n(99090);t.exports=function(t,e,n){return o.transform(t.nodes(),function(o,i){o[i]=r(t,i,e,n)},{})}},28126:function(t,e,n){var r=n(99090),o=n(24569);t.exports=function(t,e,n,r){return function(t,e,n,r){var i,u,a={},s=new o,c=function(t){var e=t.v!==i?t.v:t.w,r=a[e],o=n(t),c=u.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a[t]={distance:n},s.add(t,n)});s.size()>0&&(u=a[i=s.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(i).forEach(c);return a}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},1004:function(t,e,n){var r=n(99090),o=n(10791);t.exports=function(t){return r.filter(o(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},68236:function(t,e,n){var r=n(99090);t.exports=function(t,e,n){var r,i,u,a;return r=e||o,i=n||function(e){return t.outEdges(e)},u={},(a=t.nodes()).forEach(function(t){u[t]={},u[t][t]={distance:0},a.forEach(function(e){t!==e&&(u[t][e]={distance:Number.POSITIVE_INFINITY})}),i(t).forEach(function(e){var n=e.v===t?e.w:e.v,o=r(e);u[t][n]={distance:o,predecessor:t}})}),a.forEach(function(t){var e=u[t];a.forEach(function(n){var r=u[n];a.forEach(function(n){var o=r[t],i=e[n],u=r[n],a=o.distance+i.distance;a<u.distance&&(u.distance=a,u.predecessor=i.predecessor)})})}),u};var o=r.constant(1)},84725:function(t,e,n){t.exports={components:n(55201),dijkstra:n(28126),dijkstraAll:n(84324),findCycles:n(1004),floydWarshall:n(68236),isAcyclic:n(78165),postorder:n(58726),preorder:n(90414),prim:n(60163),tarjan:n(10791),topsort:n(46398)}},78165:function(t,e,n){var r=n(46398);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},58726:function(t,e,n){var r=n(25605);t.exports=function(t,e){return r(t,e,"post")}},90414:function(t,e,n){var r=n(25605);t.exports=function(t,e){return r(t,e,"pre")}},60163:function(t,e,n){var r=n(99090),o=n(39213),i=n(24569);t.exports=function(t,e){var n,u=new o,a={},s=new i;function c(t){var r=t.v===n?t.w:t.v,o=s.priority(r);if(void 0!==o){var i=e(t);i<o&&(a[r]=n,s.decrease(r,i))}}if(0===t.nodeCount())return u;r.each(t.nodes(),function(t){s.add(t,Number.POSITIVE_INFINITY),u.setNode(t)}),s.decrease(t.nodes()[0],0);for(var f=!1;s.size()>0;){if(n=s.removeMin(),r.has(a,n))u.setEdge(n,a[n]);else if(f)throw Error("Input graph is not connected: "+t);else f=!0;t.nodeEdges(n).forEach(c)}return u}},10791:function(t,e,n){var r=n(99090);t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach(function(u){r.has(o,u)||function u(a){var s=o[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach(function(t){r.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(u(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))}),s.lowlink===s.index){var c,f=[];do o[c=n.pop()].onStack=!1,f.push(c);while(a!==c);i.push(f)}}(u)}),i}},46398:function(t,e,n){var r=n(99090);function o(t){var e={},n={},o=[];if(r.each(t.sinks(),function u(a){if(r.has(n,a))throw new i;r.has(e,a)||(n[a]=!0,e[a]=!0,r.each(t.predecessors(a),u),delete n[a],o.push(a))}),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=Error()},24569:function(t,e,n){var r=n(99090);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(t){return t.key})},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n<e.length&&(o=e[n].priority<e[o].priority?n:o,r<e.length&&(o=e[r].priority<e[o].priority?r:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,o=n[t],i=n[e];n[t]=i,n[e]=o,r[i.key]=t,r[o.key]=e}},39213:function(t,e,n){"use strict";var r=n(99090);function o(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function a(t,e,n,o){var i=""+e,u=""+n;if(!t&&i>u){var a=i;i=u,u=a}return i+"\x01"+u+"\x01"+(r.isUndefined(o)?"\0":o)}function s(t,e){return a(t,e.v,e.w,e.name)}t.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},o.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},o.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,function(t){n.length>1?o.setNode(t,e):o.setNode(t)}),this},o.prototype.setNode=function(t,e){return r.has(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return r.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},o.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var o={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))}),e},o.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},o.prototype.setEdge=function(){var t,e,n,o,u=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2==arguments.length&&(o=arguments[1],u=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],u=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=a(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return u&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=u?o:this._defaultEdgeLabelFn(t,e,n);var f=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var u=o;o=i,i=u}var a={v:o,w:i};return r&&(a.name=r),a}(this._isDirected,t,e,n);return t=f.v,e=f.w,Object.freeze(f),this._edgeObjs[c]=f,i(this._preds[e],t),i(this._sucs[t],e),this._in[e][c]=f,this._out[t][c]=f,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(t,e,n){var o=1==arguments.length?s(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):a(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.v===e}):o}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.w===e}):o}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},75717:function(t,e,n){t.exports={Graph:n(39213),version:n(26111)}},39107:function(t,e,n){var r=n(99090),o=n(39213);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r.map(t.nodes(),function(e){var n=t.node(e),o=t.parent(e),i={v:e};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}),edges:r.map(t.edges(),function(e){var n=t.edge(e),o={v:e.v,w:e.w};return r.isUndefined(e.name)||(o.name=e.name),r.isUndefined(n)||(o.value=n),o})};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},99090:function(t,e,n){var r;try{r={clone:n(64816),constant:n(38461),each:n(48325),filter:n(21231),has:n(4093),isArray:n(73509),isEmpty:n(38278),isFunction:n(74449),isUndefined:n(51790),keys:n(35147),map:n(89232),reduce:n(59897),size:n(11159),transform:n(88364),union:n(97135),values:n(87838)}}catch(t){}r||(r=window._),t.exports=r},26111:function(t){t.exports="2.1.8"},48361:function(t,e,n){var r=n(64620)(n(3642),"DataView");t.exports=r},42220:function(t,e,n){var r=n(85026),o=n(74781),i=n(98870),u=n(29396),a=n(85714);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},92960:function(t,e,n){var r=n(32725),o=n(414),i=n(93767),u=n(33820),a=n(74468);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},3055:function(t,e,n){var r=n(64620)(n(3642),"Map");t.exports=r},41223:function(t,e,n){var r=n(47459),o=n(82643),i=n(42857),u=n(41154),a=n(25529);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=a,t.exports=s},7737:function(t,e,n){var r=n(64620)(n(3642),"Promise");t.exports=r},64637:function(t,e,n){var r=n(64620)(n(3642),"Set");t.exports=r},44643:function(t,e,n){var r=n(41223),o=n(76882),i=n(80786);function u(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},15450:function(t,e,n){var r=n(92960),o=n(99669),i=n(62881),u=n(99024),a=n(44701),s=n(75694);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=u,c.prototype.has=a,c.prototype.set=s,t.exports=c},65085:function(t,e,n){var r=n(3642).Symbol;t.exports=r},8129:function(t,e,n){var r=n(3642).Uint8Array;t.exports=r},28345:function(t,e,n){var r=n(64620)(n(3642),"WeakMap");t.exports=r},97913:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},10908:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},92010:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}},29163:function(t,e,n){var r=n(13918);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},72040:function(t){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},99207:function(t,e,n){var r=n(83090),o=n(41080),i=n(73509),u=n(91485),a=n(24923),s=n(23329),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&u(t),h=!n&&!f&&!l&&s(t),d=n||f||l||h,p=d?r(t.length,String):[],v=p.length;for(var g in t)(e||c.call(t,g))&&!(d&&("length"==g||l&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,v)))&&p.push(g);return p}},2173:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},73056:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},63541:function(t){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},14803:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},99463:function(t,e,n){var r=n(79339)("length");t.exports=r},82930:function(t,e,n){var r=n(16610),o=n(30207);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},63045:function(t,e,n){var r=n(16610),o=n(30207),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var u=t[e];i.call(t,e)&&o(u,n)&&(void 0!==n||e in t)||r(t,e,n)}},76532:function(t,e,n){var r=n(30207);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return -1}},49769:function(t,e,n){var r=n(89028),o=n(35147);t.exports=function(t,e){return t&&r(e,o(e),t)}},3907:function(t,e,n){var r=n(89028),o=n(71885);t.exports=function(t,e){return t&&r(e,o(e),t)}},16610:function(t,e,n){var r=n(59907);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2174:function(t,e,n){var r=n(15450),o=n(10908),i=n(63045),u=n(49769),a=n(3907),s=n(88908),c=n(19029),f=n(56365),l=n(93626),h=n(24592),d=n(31453),p=n(17121),v=n(88244),g=n(544),y=n(54768),m=n(73509),x=n(91485),b=n(51820),w=n(88873),_=n(68414),E=n(35147),k=n(71885),j="[object Arguments]",M="[object Function]",N="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[N]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[M]=A["[object WeakMap]"]=!1,t.exports=function t(e,n,I,O,z,S){var $,T=1&n,P=2&n,C=4&n;if(I&&($=z?I(e,O,z,S):I(e)),void 0!==$)return $;if(!w(e))return e;var L=m(e);if(L){if($=v(e),!T)return c(e,$)}else{var R=p(e),B=R==M||"[object GeneratorFunction]"==R;if(x(e))return s(e,T);if(R==N||R==j||B&&!z){if($=P||B?{}:y(e),!T)return P?l(e,a($,e)):f(e,u($,e))}else{if(!A[R])return z?e:{};$=g(e,R,T)}}S||(S=new r);var D=S.get(e);if(D)return D;S.set(e,$),_(e)?e.forEach(function(r){$.add(t(r,n,I,r,e,S))}):b(e)&&e.forEach(function(r,o){$.set(o,t(r,n,I,o,e,S))});var V=C?P?d:h:P?k:E,F=L?void 0:V(e);return o(F||e,function(r,o){F&&(r=e[o=r]),i($,o,t(r,n,I,o,e,S))}),$}},58987:function(t,e,n){var r=n(88873),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},47035:function(t,e,n){var r=n(69583),o=n(79427)(r);t.exports=o},60443:function(t,e,n){var r=n(58510);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var u=t[o],a=e(u);if(null!=a&&(void 0===s?a==a&&!r(a):n(a,s)))var s=a,c=u}return c}},69911:function(t,e,n){var r=n(47035);t.exports=function(t,e){var n=[];return r(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}},84981:function(t){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},18060:function(t,e,n){var r=n(73056),o=n(15095);t.exports=function t(e,n,i,u,a){var s=-1,c=e.length;for(i||(i=o),a||(a=[]);++s<c;){var f=e[s];n>0&&i(f)?n>1?t(f,n-1,i,u,a):r(a,f):u||(a[a.length]=f)}return a}},92244:function(t,e,n){var r=n(13898)();t.exports=r},69583:function(t,e,n){var r=n(92244),o=n(35147);t.exports=function(t,e){return t&&r(t,e,o)}},19716:function(t,e,n){var r=n(1746),o=n(4593);t.exports=function(t,e){e=r(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},42600:function(t,e,n){var r=n(73056),o=n(73509);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},606:function(t,e,n){var r=n(65085),o=n(52439),i=n(5063),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},12192:function(t){t.exports=function(t,e){return t>e}},77631:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},19144:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},13918:function(t,e,n){var r=n(84981),o=n(22315),i=n(79723);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},34852:function(t,e,n){var r=n(606),o=n(62743);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},62579:function(t,e,n){var r=n(44748),o=n(62743);t.exports=function t(e,n,i,u,a){return e===n||(null!=e&&null!=n&&(o(e)||o(n))?r(e,n,i,u,t,a):e!=e&&n!=n)}},44748:function(t,e,n){var r=n(15450),o=n(91491),i=n(13989),u=n(86002),a=n(17121),s=n(73509),c=n(91485),f=n(23329),l="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,g,y){var m=s(t),x=s(e),b=m?h:a(t),w=x?h:a(e);b=b==l?d:b,w=w==l?d:w;var _=b==d,E=w==d,k=b==w;if(k&&c(t)){if(!c(e))return!1;m=!0,_=!1}if(k&&!_)return y||(y=new r),m||f(t)?o(t,e,n,v,g,y):i(t,e,b,n,v,g,y);if(!(1&n)){var j=_&&p.call(t,"__wrapped__"),M=E&&p.call(e,"__wrapped__");if(j||M){var N=j?t.value():t,A=M?e.value():e;return y||(y=new r),g(N,A,n,v,y)}}return!!k&&(y||(y=new r),u(t,e,n,v,g,y))}},48745:function(t,e,n){var r=n(17121),o=n(62743);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},90234:function(t,e,n){var r=n(15450),o=n(62579);t.exports=function(t,e,n,i){var u=n.length,a=u,s=!i;if(null==t)return!a;for(t=Object(t);u--;){var c=n[u];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var f=(c=n[u])[0],l=t[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in t))return!1}else{var d=new r;if(i)var p=i(l,h,f,t,e,d);if(!(void 0===p?o(h,l,3,i,d):p))return!1}}return!0}},22315:function(t){t.exports=function(t){return t!=t}},40369:function(t,e,n){var r=n(74449),o=n(70871),i=n(88873),u=n(33679),a=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,f=s.hasOwnProperty,l=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?l:a).test(u(t))}},49375:function(t,e,n){var r=n(17121),o=n(62743);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},58980:function(t,e,n){var r=n(606),o=n(63831),i=n(62743),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[r(t)]}},60876:function(t,e,n){var r=n(2837),o=n(95224),i=n(65778),u=n(73509),a=n(4924);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):r(t):a(t)}},50419:function(t,e,n){var r=n(99166),o=n(10369),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},69208:function(t,e,n){var r=n(88873),o=n(99166),i=n(71914),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var a in t)"constructor"==a&&(e||!u.call(t,a))||n.push(a);return n}},74951:function(t){t.exports=function(t,e){return t<e}},67641:function(t,e,n){var r=n(47035),o=n(15206);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,function(t,r,o){i[++n]=e(t,r,o)}),i}},2837:function(t,e,n){var r=n(90234),o=n(99367),i=n(4733);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},95224:function(t,e,n){var r=n(62579),o=n(55854),i=n(83320),u=n(1841),a=n(28162),s=n(4733),c=n(4593);t.exports=function(t,e){return u(t)&&a(e)?s(c(t),e):function(n){var u=o(n,t);return void 0===u&&u===e?i(n,t):r(e,u,3)}}},42540:function(t,e,n){var r=n(15450),o=n(82930),i=n(92244),u=n(541),a=n(88873),s=n(71885),c=n(12693);t.exports=function t(e,n,f,l,h){e!==n&&i(n,function(i,s){if(h||(h=new r),a(i))u(e,n,s,f,t,l,h);else{var d=l?l(c(e,s),i,s+"",e,n,h):void 0;void 0===d&&(d=i),o(e,s,d)}},s)}},541:function(t,e,n){var r=n(82930),o=n(88908),i=n(21991),u=n(19029),a=n(54768),s=n(41080),c=n(73509),f=n(64709),l=n(91485),h=n(74449),d=n(88873),p=n(40598),v=n(23329),g=n(12693),y=n(80466);t.exports=function(t,e,n,m,x,b,w){var _=g(t,n),E=g(e,n),k=w.get(E);if(k){r(t,n,k);return}var j=b?b(_,E,n+"",t,e,w):void 0,M=void 0===j;if(M){var N=c(E),A=!N&&l(E),I=!N&&!A&&v(E);j=E,N||A||I?c(_)?j=_:f(_)?j=u(_):A?(M=!1,j=o(E,!0)):I?(M=!1,j=i(E,!0)):j=[]:p(E)||s(E)?(j=_,s(_)?j=y(_):(!d(_)||h(_))&&(j=a(E))):M=!1}M&&(w.set(E,j),x(j,E,m,b,w),w.delete(E)),r(t,n,j)}},50997:function(t,e,n){var r=n(2173),o=n(19716),i=n(60876),u=n(67641),a=n(77726),s=n(19040),c=n(91690),f=n(65778),l=n(73509);t.exports=function(t,e,n){e=e.length?r(e,function(t){return l(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[f];var h=-1;return e=r(e,s(i)),a(u(t,function(t,n,o){return{criteria:r(e,function(e){return e(t)}),index:++h,value:t}}),function(t,e){return c(t,e,n)})}},46635:function(t,e,n){var r=n(80980),o=n(83320);t.exports=function(t,e){return r(t,e,function(e,n){return o(t,n)})}},80980:function(t,e,n){var r=n(19716),o=n(76677),i=n(1746);t.exports=function(t,e,n){for(var u=-1,a=e.length,s={};++u<a;){var c=e[u],f=r(t,c);n(f,c)&&o(s,i(c,t),f)}return s}},79339:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},29101:function(t,e,n){var r=n(19716);t.exports=function(t){return function(e){return r(e,t)}}},36441:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var u=-1,a=n(e((r-t)/(o||1)),0),s=Array(a);a--;)s[i?a:++u]=t,t+=o;return s}},79736:function(t){t.exports=function(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}},99749:function(t,e,n){var r=n(65778),o=n(25912),i=n(81288);t.exports=function(t,e){return i(o(t,e,r),t+"")}},76677:function(t,e,n){var r=n(63045),o=n(1746),i=n(24923),u=n(88873),a=n(4593);t.exports=function(t,e,n,s){if(!u(t))return t;e=o(e,t);for(var c=-1,f=e.length,l=f-1,h=t;null!=h&&++c<f;){var d=a(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(c!=l){var v=h[d];void 0===(p=s?s(v,d,h):void 0)&&(p=u(v)?v:i(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},47063:function(t,e,n){var r=n(38461),o=n(59907),i=n(65778),u=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=u},77726:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},83090:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},20530:function(t,e,n){var r=n(65085),o=n(2173),i=n(73509),u=n(58510),a=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n}},79884:function(t,e,n){var r=n(15428),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},19040:function(t){t.exports=function(t){return function(e){return t(e)}}},53367:function(t,e,n){var r=n(44643),o=n(29163),i=n(72040),u=n(34675),a=n(58223),s=n(22780);t.exports=function(t,e,n){var c=-1,f=o,l=t.length,h=!0,d=[],p=d;if(n)h=!1,f=i;else if(l>=200){var v=e?null:a(t);if(v)return s(v);h=!1,f=u,p=new r}else p=e?[]:d;t:for(;++c<l;){var g=t[c],y=e?e(g):g;if(g=n||0!==g?g:0,h&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;e&&p.push(y),d.push(g)}else f(p,y,n)||(p!==d&&p.push(y),d.push(g))}return d}},9720:function(t,e,n){var r=n(2173);t.exports=function(t,e){return r(e,function(e){return t[e]})}},13799:function(t){t.exports=function(t,e,n){for(var r=-1,o=t.length,i=e.length,u={};++r<o;){var a=r<i?e[r]:void 0;n(u,t[r],a)}return u}},34675:function(t){t.exports=function(t,e){return t.has(e)}},51032:function(t,e,n){var r=n(65778);t.exports=function(t){return"function"==typeof t?t:r}},1746:function(t,e,n){var r=n(73509),o=n(1841),i=n(80770),u=n(93014);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(u(t))}},67391:function(t,e,n){var r=n(8129);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},88908:function(t,e,n){t=n.nmd(t);var r=n(3642),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?r.Buffer:void 0,a=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},28395:function(t,e,n){var r=n(67391);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},52882:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},85492:function(t,e,n){var r=n(65085),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},21991:function(t,e,n){var r=n(67391);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},60615:function(t,e,n){var r=n(58510);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,u=r(t),a=void 0!==e,s=null===e,c=e==e,f=r(e);if(!s&&!f&&!u&&t>e||u&&a&&c&&!s&&!f||o&&a&&c||!n&&c||!i)return 1;if(!o&&!u&&!f&&t<e||f&&n&&i&&!o&&!u||s&&n&&i||!a&&i||!c)return -1}return 0}},91690:function(t,e,n){var r=n(60615);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,u=e.criteria,a=i.length,s=n.length;++o<a;){var c=r(i[o],u[o]);if(c){if(o>=s)return c;return c*("desc"==n[o]?-1:1)}}return t.index-e.index}},19029:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},89028:function(t,e,n){var r=n(63045),o=n(16610);t.exports=function(t,e,n,i){var u=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var c=e[a],f=i?i(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),u?o(n,c,f):r(n,c,f)}return n}},56365:function(t,e,n){var r=n(89028),o=n(24729);t.exports=function(t,e){return r(t,o(t),e)}},93626:function(t,e,n){var r=n(89028),o=n(52250);t.exports=function(t,e){return r(t,o(t),e)}},71627:function(t,e,n){var r=n(3642)["__core-js_shared__"];t.exports=r},80822:function(t,e,n){var r=n(99749),o=n(64091);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,u=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,u)}return e})}},79427:function(t,e,n){var r=n(15206);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,u=e?i:-1,a=Object(n);(e?u--:++u<i)&&!1!==o(a[u],u,a););return n}}},13898:function(t){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var s=u[t?a:++o];if(!1===n(i[s],s,i))break}return e}}},40593:function(t,e,n){var r=n(60876),o=n(15206),i=n(35147);t.exports=function(t){return function(e,n,u){var a=Object(e);if(!o(e)){var s=r(n,3);e=i(e),n=function(t){return s(a[t],t,a)}}var c=t(e,n,u);return c>-1?a[s?e[c]:c]:void 0}}},84521:function(t,e,n){var r=n(36441),o=n(64091),i=n(77615);t.exports=function(t){return function(e,n,u){return u&&"number"!=typeof u&&o(e,n,u)&&(n=u=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),u=void 0===u?e<n?1:-1:i(u),r(e,n,u,t)}}},58223:function(t,e,n){var r=n(64637),o=n(35919),i=n(22780),u=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=u},59907:function(t,e,n){var r=n(64620),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},91491:function(t,e,n){var r=n(44643),o=n(14803),i=n(34675);t.exports=function(t,e,n,u,a,s){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var p=-1,v=!0,g=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++p<f;){var y=t[p],m=e[p];if(u)var x=c?u(m,y,p,e,t,s):u(y,m,p,t,e,s);if(void 0!==x){if(x)continue;v=!1;break}if(g){if(!o(e,function(t,e){if(!i(g,e)&&(y===t||a(y,t,n,u,s)))return g.push(e)})){v=!1;break}}else if(!(y===m||a(y,m,n,u,s))){v=!1;break}}return s.delete(t),s.delete(e),v}},13989:function(t,e,n){var r=n(65085),o=n(8129),i=n(30207),u=n(91491),a=n(19143),s=n(22780),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!l(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=s),t.size!=e.size&&!p)break;var v=h.get(t);if(v)return v==e;r|=2,h.set(t,e);var g=u(d(t),d(e),r,c,l,h);return h.delete(t),g;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},86002:function(t,e,n){var r=n(24592),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,u,a){var s=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in e:o.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=s;++l<f;){var y=t[h=c[l]],m=e[h];if(i)var x=s?i(m,y,h,e,t,a):i(y,m,h,t,e,a);if(!(void 0===x?y===m||u(y,m,n,i,a):x)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(v=!1)}return a.delete(t),a.delete(e),v}},5213:function(t,e,n){var r=n(68274),o=n(25912),i=n(81288);t.exports=function(t){return i(o(t,void 0,r),t+"")}},31357:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},24592:function(t,e,n){var r=n(42600),o=n(24729),i=n(35147);t.exports=function(t){return r(t,i,o)}},31453:function(t,e,n){var r=n(42600),o=n(52250),i=n(71885);t.exports=function(t){return r(t,i,o)}},46722:function(t,e,n){var r=n(91010);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},99367:function(t,e,n){var r=n(28162),o=n(35147);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],u=t[i];e[n]=[i,u,r(u)]}return e}},64620:function(t,e,n){var r=n(40369),o=n(83324);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},99672:function(t,e,n){var r=n(49203)(Object.getPrototypeOf,Object);t.exports=r},52439:function(t,e,n){var r=n(65085),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[a]=n:delete t[a]),o}},24729:function(t,e,n){var r=n(92010),o=n(58182),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(t){return null==t?[]:r(u(t=Object(t)),function(e){return i.call(t,e)})}:o;t.exports=a},52250:function(t,e,n){var r=n(73056),o=n(99672),i=n(24729),u=n(58182),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:u;t.exports=a},17121:function(t,e,n){var r=n(48361),o=n(3055),i=n(7737),u=n(64637),a=n(28345),s=n(606),c=n(33679),f="[object Map]",l="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",v=c(r),g=c(o),y=c(i),m=c(u),x=c(a),b=s;(r&&b(new r(new ArrayBuffer(1)))!=p||o&&b(new o)!=f||i&&b(i.resolve())!=l||u&&b(new u)!=h||a&&b(new a)!=d)&&(b=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return p;case g:return f;case y:return l;case m:return h;case x:return d}return e}),t.exports=b},83324:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},41166:function(t,e,n){var r=n(1746),o=n(41080),i=n(73509),u=n(24923),a=n(63831),s=n(4593);t.exports=function(t,e,n){e=r(e,t);for(var c=-1,f=e.length,l=!1;++c<f;){var h=s(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&a(f)&&u(h,f)&&(i(t)||o(t))}},56121:function(t){var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},85026:function(t,e,n){var r=n(59780);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},74781:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},98870:function(t,e,n){var r=n(59780),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},29396:function(t,e,n){var r=n(59780),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},85714:function(t,e,n){var r=n(59780);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},88244:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},544:function(t,e,n){var r=n(67391),o=n(28395),i=n(52882),u=n(85492),a=n(21991);t.exports=function(t,e,n){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return u(t)}}},54768:function(t,e,n){var r=n(58987),o=n(99672),i=n(99166);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},15095:function(t,e,n){var r=n(65085),o=n(41080),i=n(73509),u=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(u&&t&&t[u])}},24923:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},64091:function(t,e,n){var r=n(30207),o=n(15206),i=n(24923),u=n(88873);t.exports=function(t,e,n){if(!u(n))return!1;var a=typeof e;return("number"==a?!!(o(n)&&i(e,n.length)):"string"==a&&e in n)&&r(n[e],t)}},1841:function(t,e,n){var r=n(73509),o=n(58510),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},91010:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},70871:function(t,e,n){var r,o=n(71627),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},99166:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},28162:function(t,e,n){var r=n(88873);t.exports=function(t){return t==t&&!r(t)}},32725:function(t){t.exports=function(){this.__data__=[],this.size=0}},414:function(t,e,n){var r=n(76532),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},93767:function(t,e,n){var r=n(76532);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},33820:function(t,e,n){var r=n(76532);t.exports=function(t){return r(this.__data__,t)>-1}},74468:function(t,e,n){var r=n(76532);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},47459:function(t,e,n){var r=n(42220),o=n(92960),i=n(3055);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},82643:function(t,e,n){var r=n(46722);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},42857:function(t,e,n){var r=n(46722);t.exports=function(t){return r(this,t).get(t)}},41154:function(t,e,n){var r=n(46722);t.exports=function(t){return r(this,t).has(t)}},25529:function(t,e,n){var r=n(46722);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},19143:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},4733:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},38061:function(t,e,n){var r=n(39969);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},59780:function(t,e,n){var r=n(64620)(Object,"create");t.exports=r},10369:function(t,e,n){var r=n(49203)(Object.keys,Object);t.exports=r},71914:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},44055:function(t,e,n){t=n.nmd(t);var r=n(31357),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a},5063:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},49203:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},25912:function(t,e,n){var r=n(97913),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=n(s),r(t,this,c)}}},3642:function(t,e,n){var r=n(31357),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},12693:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},76882:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},80786:function(t){t.exports=function(t){return this.__data__.has(t)}},22780:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},81288:function(t,e,n){var r=n(47063),o=n(27873)(r);t.exports=o},27873:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},99669:function(t,e,n){var r=n(92960);t.exports=function(){this.__data__=new r,this.size=0}},62881:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},99024:function(t){t.exports=function(t){return this.__data__.get(t)}},44701:function(t){t.exports=function(t){return this.__data__.has(t)}},75694:function(t,e,n){var r=n(92960),o=n(3055),i=n(41223);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.length<199)return u.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(u)}return n.set(t,e),this.size=n.size,this}},79723:function(t){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return -1}},79624:function(t,e,n){var r=n(99463),o=n(56121),i=n(52132);t.exports=function(t){return o(t)?i(t):r(t)}},80770:function(t,e,n){var r=n(38061),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=u},4593:function(t,e,n){var r=n(58510),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},33679:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},15428:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},52132:function(t){var e="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,u].join("|")+")"+s+a+")*",f=RegExp(r+"(?="+r+")|(?:"+[o+n+"?",n,i,u,"["+e+"]"].join("|")+")"+(s+a+c),"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},64816:function(t,e,n){var r=n(2174);t.exports=function(t){return r(t,4)}},97975:function(t,e,n){var r=n(2174);t.exports=function(t){return r(t,5)}},38461:function(t){t.exports=function(t){return function(){return t}}},85339:function(t,e,n){var r=n(99749),o=n(30207),i=n(64091),u=n(71885),a=Object.prototype,s=a.hasOwnProperty,c=r(function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(r=1);++n<r;)for(var f=e[n],l=u(f),h=-1,d=l.length;++h<d;){var p=l[h],v=t[p];(void 0===v||o(v,a[p])&&!s.call(t,p))&&(t[p]=f[p])}return t});t.exports=c},48325:function(t,e,n){t.exports=n(58391)},30207:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},21231:function(t,e,n){var r=n(92010),o=n(69911),i=n(60876),u=n(73509);t.exports=function(t,e){return(u(t)?r:o)(t,i(e,3))}},87639:function(t,e,n){var r=n(40593)(n(2166));t.exports=r},2166:function(t,e,n){var r=n(84981),o=n(60876),i=n(76642),u=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return -1;var s=null==n?0:i(n);return s<0&&(s=u(a+s,0)),r(t,o(e,3),s)}},68274:function(t,e,n){var r=n(18060);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},58391:function(t,e,n){var r=n(10908),o=n(47035),i=n(51032),u=n(73509);t.exports=function(t,e){return(u(t)?r:o)(t,i(e))}},77230:function(t,e,n){var r=n(92244),o=n(51032),i=n(71885);t.exports=function(t,e){return null==t?t:r(t,o(e),i)}},55854:function(t,e,n){var r=n(19716);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},4093:function(t,e,n){var r=n(77631),o=n(41166);t.exports=function(t,e){return null!=t&&o(t,e,r)}},83320:function(t,e,n){var r=n(19144),o=n(41166);t.exports=function(t,e){return null!=t&&o(t,e,r)}},65778:function(t){t.exports=function(t){return t}},41080:function(t,e,n){var r=n(34852),o=n(62743),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=s},73509:function(t){var e=Array.isArray;t.exports=e},15206:function(t,e,n){var r=n(74449),o=n(63831);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},64709:function(t,e,n){var r=n(15206),o=n(62743);t.exports=function(t){return o(t)&&r(t)}},91485:function(t,e,n){t=n.nmd(t);var r=n(3642),o=n(9183),i=e&&!e.nodeType&&e,u=i&&t&&!t.nodeType&&t,a=u&&u.exports===i?r.Buffer:void 0,s=a?a.isBuffer:void 0;t.exports=s||o},38278:function(t,e,n){var r=n(50419),o=n(17121),i=n(41080),u=n(73509),a=n(15206),s=n(91485),c=n(99166),f=n(23329),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||f(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},74449:function(t,e,n){var r=n(606),o=n(88873);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},63831:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},51820:function(t,e,n){var r=n(48745),o=n(19040),i=n(44055),u=i&&i.isMap,a=u?o(u):r;t.exports=a},88873:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},62743:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},40598:function(t,e,n){var r=n(606),o=n(99672),i=n(62743),u=Object.prototype,a=Function.prototype.toString,s=u.hasOwnProperty,c=a.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==c}},68414:function(t,e,n){var r=n(49375),o=n(19040),i=n(44055),u=i&&i.isSet,a=u?o(u):r;t.exports=a},24558:function(t,e,n){var r=n(606),o=n(73509),i=n(62743);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},58510:function(t,e,n){var r=n(606),o=n(62743);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},23329:function(t,e,n){var r=n(58980),o=n(19040),i=n(44055),u=i&&i.isTypedArray,a=u?o(u):r;t.exports=a},51790:function(t){t.exports=function(t){return void 0===t}},35147:function(t,e,n){var r=n(99207),o=n(50419),i=n(15206);t.exports=function(t){return i(t)?r(t):o(t)}},71885:function(t,e,n){var r=n(99207),o=n(69208),i=n(15206);t.exports=function(t){return i(t)?r(t,!0):o(t)}},2457:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},89232:function(t,e,n){var r=n(2173),o=n(60876),i=n(67641),u=n(73509);t.exports=function(t,e){return(u(t)?r:i)(t,o(e,3))}},20993:function(t,e,n){var r=n(16610),o=n(69583),i=n(60876);t.exports=function(t,e){var n={};return e=i(e,3),o(t,function(t,o,i){r(n,o,e(t,o,i))}),n}},15387:function(t,e,n){var r=n(60443),o=n(12192),i=n(65778);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},39969:function(t,e,n){var r=n(41223);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},79491:function(t,e,n){var r=n(42540),o=n(80822)(function(t,e,n){r(t,e,n)});t.exports=o},47479:function(t,e,n){var r=n(60443),o=n(74951),i=n(65778);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},86971:function(t,e,n){var r=n(60443),o=n(60876),i=n(74951);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},35919:function(t){t.exports=function(){}},54987:function(t,e,n){var r=n(3642);t.exports=function(){return r.Date.now()}},4036:function(t,e,n){var r=n(46635),o=n(5213)(function(t,e){return null==t?{}:r(t,e)});t.exports=o},4924:function(t,e,n){var r=n(79339),o=n(29101),i=n(1841),u=n(4593);t.exports=function(t){return i(t)?r(u(t)):o(t)}},60297:function(t,e,n){var r=n(84521)();t.exports=r},59897:function(t,e,n){var r=n(63541),o=n(47035),i=n(60876),u=n(79736),a=n(73509);t.exports=function(t,e,n){var s=a(t)?r:u,c=arguments.length<3;return s(t,i(e,4),n,c,o)}},11159:function(t,e,n){var r=n(50419),o=n(17121),i=n(15206),u=n(24558),a=n(79624);t.exports=function(t){if(null==t)return 0;if(i(t))return u(t)?a(t):t.length;var e=o(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},21520:function(t,e,n){var r=n(18060),o=n(50997),i=n(99749),u=n(64091),a=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&u(t,e[0],e[1])?e=[]:n>2&&u(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])});t.exports=a},58182:function(t){t.exports=function(){return[]}},9183:function(t){t.exports=function(){return!1}},77615:function(t,e,n){var r=n(97172),o=1/0;t.exports=function(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},76642:function(t,e,n){var r=n(77615);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},97172:function(t,e,n){var r=n(79884),o=n(88873),i=n(58510),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return u;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?f(t.slice(2),n?2:8):a.test(t)?u:+t}},80466:function(t,e,n){var r=n(89028),o=n(71885);t.exports=function(t){return r(t,o(t))}},93014:function(t,e,n){var r=n(20530);t.exports=function(t){return null==t?"":r(t)}},88364:function(t,e,n){var r=n(10908),o=n(58987),i=n(69583),u=n(60876),a=n(99672),s=n(73509),c=n(91485),f=n(74449),l=n(88873),h=n(23329);t.exports=function(t,e,n){var d=s(t),p=d||c(t)||h(t);if(e=u(e,4),null==n){var v=t&&t.constructor;n=p?d?new v:[]:l(t)&&f(v)?o(a(t)):{}}return(p?r:i)(t,function(t,r,o){return e(n,t,r,o)}),n}},97135:function(t,e,n){var r=n(18060),o=n(99749),i=n(53367),u=n(64709),a=o(function(t){return i(r(t,1,u,!0))});t.exports=a},22942:function(t,e,n){var r=n(93014),o=0;t.exports=function(t){var e=++o;return r(t)+e}},87838:function(t,e,n){var r=n(9720),o=n(35147);t.exports=function(t){return null==t?[]:r(t,o(t))}},3097:function(t,e,n){var r=n(63045),o=n(13799);t.exports=function(t,e){return o(t||[],e||[],r)}},2389:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(7653);let o=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((t,e,n)=>!!t&&n.indexOf(t)===e).join(" ")};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:l,...h}=t;return(0,r.createElement)("svg",{ref:e,...u,width:o,height:o,stroke:n,strokeWidth:s?24*Number(a)/Number(o):a,className:i("lucide",c),...h},[...l.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(f)?f:[f]])}),s=(t,e)=>{let n=(0,r.forwardRef)((n,u)=>{let{className:s,...c}=n;return(0,r.createElement)(a,{ref:u,iconNode:e,className:i("lucide-".concat(o(t)),s),...c})});return n.displayName="".concat(t),n}},38333:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},57124:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},95731:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},38475:function(t,e,n){"use strict";var r=n(7653),o=n(96250),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=o.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,f=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var l=a(null);if(null===l.current){var h={hasValue:!1,value:null};l.current=h}else h=l.current;var d=u(t,(l=c(function(){function t(t){if(!s){if(s=!0,u=t,t=r(t),void 0!==o&&h.hasValue){var e=h.value;if(o(e,t))return a=e}return a=t}if(e=a,i(u,t))return e;var n=r(t);return void 0!==o&&o(e,n)?(u=t,e):(u=t,a=n)}var u,a,s=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,n,r,o]))[0],l[1]);return s(function(){h.hasValue=!0,h.value=d},[d]),f(d),d}},18678:function(t,e,n){"use strict";t.exports=n(38475)},23867:function(){},49289:function(t,e,n){"use strict";n.d(e,{j:function(){return u}});var r=n(10607);let o=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,i=r.W,u=(t,e)=>n=>{var r;if((null==e?void 0:e.variants)==null)return i(t,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:u,defaultVariants:a}=e,s=Object.keys(u).map(t=>{let e=null==n?void 0:n[t],r=null==a?void 0:a[t];if(null===e)return null;let i=o(e)||o(r);return u[t][i]}),c=n&&Object.entries(n).reduce((t,e)=>{let[n,r]=e;return void 0===r||(t[n]=r),t},{});return i(t,s,null==e?void 0:null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:n,className:r,...o}=e;return Object.entries(o).every(t=>{let[e,n]=t;return Array.isArray(n)?n.includes({...a,...c}[e]):({...a,...c})[e]===n})?[...t,n,r]:t},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},32717:function(t,e,n){"use strict";n.d(e,{Z:function(){return function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,o;r<e.length;r++)""!==(o=t(e[r]))&&(n+=(n&&" ")+o);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}}})},62052:function(t,e,n){"use strict";n.d(e,{Ue:function(){return l}});var r=n(19730),o=n(7653),i=n(18678);let{useDebugValue:u}=o,{useSyncExternalStoreWithSelector:a}=i,s=!1,c=t=>t,f=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?(0,r.M)(t):t,n=(t,n)=>(function(t,e=c,n){n&&!s&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s=!0);let r=a(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return u(r),r})(e,t,n);return Object.assign(n,e),n},l=t=>t?f(t):f},30526:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}n.d(e,{X:function(){return r}})},90383:function(t,e,n){"use strict";n.d(e,{F:function(){return l},s:function(){return c}});var r=n(7653),o=n(18678),i=n(19730);let{useDebugValue:u}=r,{useSyncExternalStoreWithSelector:a}=o,s=t=>t;function c(t,e=s,n){let r=a(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return u(r),r}let f=(t,e)=>{let n=(0,i.M)(t),r=(t,r=e)=>c(n,t,r);return Object.assign(r,n),r},l=(t,e)=>t?f(t,e):f},19730:function(t,e,n){"use strict";n.d(e,{M:function(){return o}});let r=t=>{let e;let n=new Set,r=(t,r)=>{let o="function"==typeof t?t(e):t;if(!Object.is(o,e)){let t=e;e=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},e,o),n.forEach(n=>n(e,t))}},o=()=>e,i={setState:r,getState:o,getInitialState:()=>u,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,o,i);return i},o=t=>t?r(t):r}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[249],{39790:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},46693:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},70548:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]])},88497:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},31815:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},25555:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},84142:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},50646:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("GitGraph",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]])},41755:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},83071:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},88623:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},12198:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},71523:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Stethoscope",[["path",{d:"M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6a6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3",key:"10lez9"}],["path",{d:"M8 15v1a6 6 0 0 0 6 6a6 6 0 0 0 6-6v-4",key:"ce9bce"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]])},31095:function(e,t,i){i.d(t,{Z:function(){return n}});let n=(0,i(2389).Z)("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},38475:function(e,t,i){var n=i(7653),r=i(96250),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useSyncExternalStore,o=n.useRef,u=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,i,n,r){var h=o(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=s(e,(h=l(function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==r&&d.hasValue){var t=d.value;if(r(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var i=n(e);return void 0!==r&&r(t,i)?(s=e,t):(s=e,o=i)}var s,o,u=!1,l=void 0===i?null:i;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,i,n,r]))[0],h[1]);return u(function(){d.hasValue=!0,d.value=f},[f]),c(f),f}},18678:function(e,t,i){e.exports=i(38475)},71628:function(e,t,i){i.d(t,{S:function(){return f}});var n=i(50803),r=i(99617),a=i(2906),s=i(24559),o=class extends s.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){let a=t.queryKey,s=t.queryHash??(0,n.Rm)(a,t),o=this.get(s);return o||(o=new r.A({client:e,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.Vr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n._x)(e,t)):t}notify(e){a.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.Vr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u=i(64855),l=class extends s.l{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#i=new Map,this.#n=0}#t;#i;#n;build(e,t,i){let n=new u.m({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:i});return this.add(n),n}add(e){this.#t.add(e);let t=c(e);if("string"==typeof t){let i=this.#i.get(t);i?i.push(e):this.#i.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=c(e);if("string"==typeof t){let i=this.#i.get(t);if(i){if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#i.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let i=this.#i.get(t),n=i?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#i.get(t)?.find(t=>t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){a.Vr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#i.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.X7)(e,t))}notify(e){a.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.ZT))))}};function c(e){return e.options.scope?.id}var h=i(87047),d=i(33906),f=class{#r;#a;#s;#o;#u;#l;#c;#h;constructor(e={}){this.#r=e.queryCache||new o,this.#a=e.mutationCache||new l,this.#s=e.defaultOptions||{},this.#o=new Map,this.#u=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#c=h.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#h=d.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#c?.(),this.#c=void 0,this.#h?.(),this.#h=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#r.build(this,t),r=i.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,n.KC)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let r=this.defaultQueryOptions({queryKey:e}),a=this.#r.get(r.queryHash),s=a?.state.data,o=(0,n.SE)(t,s);if(void 0!==o)return this.#r.build(this,r).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return a.Vr.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;a.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#r;return a.Vr.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(a.Vr.batch(()=>this.#r.findAll(e).map(e=>e.cancel(i)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e,t={}){return a.Vr.batch(()=>(this.#r.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(a.Vr.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#r.build(this,t);return i.isStaleByTime((0,n.KC)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return d.N.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#a}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#o.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],i={};return t.forEach(t=>{(0,n.to)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#u.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],i={};return t.forEach(t=>{(0,n.to)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#a.clear()}}},53495:function(e,t,i){i.d(t,{Z:function(){return q}});let{slice:n,forEach:r}=[],a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},n=encodeURIComponent(t),r=`${e}=${n}`;if(i.maxAge>0){let e=i.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(i.domain){if(!a.test(i.domain))throw TypeError("option domain is invalid");r+=`; Domain=${i.domain}`}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");r+=`; Path=${i.path}`}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");r+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(r+="; HttpOnly"),i.secure&&(r+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i.partitioned&&(r+="; Partitioned"),r},o={create(e,t,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+6e4*i)),n&&(r.domain=n),document.cookie=s(e,t,r)},read(e){let t=`${e}=`,i=document.cookie.split(";");for(let e=0;e<i.length;e++){let n=i[e];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var u={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return o.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:i,cookieMinutes:n,cookieDomain:r,cookieOptions:a}=t;i&&"undefined"!=typeof document&&o.create(i,e,n,r,a)}},l={name:"querystring",lookup(e){let t,{lookupQuerystring:i}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let n=e.substring(1).split("&");for(let e=0;e<n.length;e++){let r=n[e].indexOf("=");r>0&&n[e].substring(0,r)===i&&(t=n[e].substring(r+1))}}return t}},c={name:"hash",lookup(e){let t,{lookupHash:i,lookupFromHashIndex:n}=e;if("undefined"!=typeof window){let{hash:e}=window.location;if(e&&e.length>2){let r=e.substring(1);if(i){let e=r.split("&");for(let n=0;n<e.length;n++){let r=e[n].indexOf("=");r>0&&e[n].substring(0,r)===i&&(t=e[n].substring(r+1))}}if(t)return t;if(!t&&n>-1){let t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return t["number"==typeof n?n:0]?.replace("/","")}}}return t}};let h=null,d=()=>{if(null!==h)return h;try{if(!(h="undefined"!=typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){h=!1}return h};var f={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&d())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:i}=t;i&&d()&&window.localStorage.setItem(i,e)}};let y=null,p=()=>{if(null!==y)return y;try{if(!(y="undefined"!=typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){y=!1}return y};var g={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&p())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:i}=t;i&&p()&&window.sessionStorage.setItem(i,e)}},m={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:i,language:n}=navigator;if(e)for(let i=0;i<e.length;i++)t.push(e[i]);i&&t.push(i),n&&t.push(n)}return t.length>0?t:void 0}},v={name:"htmlTag",lookup(e){let t,{htmlTag:i}=e,n=i||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},k={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(i))return i["number"==typeof t?t:0]?.replace("/","")}},w={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i["number"==typeof t?t+1:1]}};let b=!1;try{document.cookie,b=!0}catch(e){}let x=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];b||x.splice(1,1);let M=()=>({order:x,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return r.call(n.call(arguments,1),t=>{if(t)for(let i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},M()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(u),this.addDetector(l),this.addDetector(f),this.addDetector(g),this.addDetector(m),this.addDetector(v),this.addDetector(k),this.addDetector(w),this.addDetector(c)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let i=this.detectors[e].lookup(this.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}}),t=t.filter(e=>null!=e&&!("string"==typeof e&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e)))).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}q.type="languageDetector"},62052:function(e,t,i){i.d(t,{Ue:function(){return h}});var n=i(19730),r=i(7653),a=i(18678);let{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:o}=a,u=!1,l=e=>e,c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(0,n.M)(e):e,i=(e,i)=>(function(e,t=l,i){i&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return s(n),n})(t,e,i);return Object.assign(i,t),i},h=e=>e?c(e):c},19730:function(e,t,i){i.d(t,{M:function(){return r}});let n=e=>{let t;let i=new Set,n=(e,n)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},t,r),i.forEach(i=>i(t,e))}},r=()=>t,a={setState:n,getState:r,getInitialState:()=>s,subscribe:e=>(i.add(e),()=>i.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},s=t=e(n,r,a);return a},r=e=>e?n(e):n}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[343],{4343:function(e,t,r){r.d(t,{VY:function(){return er},aV:function(){return ee},fC:function(){return $},xz:function(){return et}});var n=r(7653),o=r.t(n,2),a=r(46196),i=r(99933),l=r(94492),u=r(8828),c=r(27573),s=r(17321),f=r(78378),d=r(523),p=r(47178),v=n.createContext(void 0);function m(e){let t=n.useContext(v);return e||t||"ltr"}var b=r(81523),w=!1,h=o[" useSyncExternalStore ".trim().toString()];function y(){return()=>{}}var g="function"==typeof h?function(){return h(y,()=>!0,()=>!1)}:function(){let[e,t]=n.useState(w);return n.useEffect(()=>{w||(w=!0,t(!0))},[]),e},x="rovingFocusGroup.onEntryFocus",R={bubbles:!1,cancelable:!0},j="RovingFocusGroup",[C,M,I]=function(e){let t=e+"CollectionProvider",[r,o]=(0,i.b)(t),[a,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:r}=e,o=n.useRef(null),i=n.useRef(new Map).current;return(0,c.jsx)(a,{scope:t,itemMap:i,collectionRef:o,children:r})};f.displayName=t;let d=e+"CollectionSlot",p=(0,u.Z8)(d),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=s(d,r),a=(0,l.e)(t,o.collectionRef);return(0,c.jsx)(p,{ref:a,children:n})});v.displayName=d;let m=e+"CollectionItemSlot",b="data-radix-collection-item",w=(0,u.Z8)(m),h=n.forwardRef((e,t)=>{let{scope:r,children:o,...a}=e,i=n.useRef(null),u=(0,l.e)(t,i),f=s(m,r);return n.useEffect(()=>(f.itemMap.set(i,{ref:i,...a}),()=>void f.itemMap.delete(i))),(0,c.jsx)(w,{[b]:"",ref:u,children:o})});return h.displayName=m,[{Provider:f,Slot:v,ItemSlot:h},function(t){let r=s(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(b,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},o]}(j),[F,T]=(0,i.b)(j,[I]),[A,S]=F(j),D=n.forwardRef((e,t)=>(0,c.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(E,{...e,ref:t})})}));D.displayName=j;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:u,currentTabStopId:s,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:h=!1,...y}=e,g=n.useRef(null),C=(0,l.e)(t,g),I=m(u),[F,T]=(0,p.T)({prop:s,defaultProp:null!=v?v:null,onChange:b,caller:j}),[S,D]=n.useState(!1),E=(0,d.W)(w),k=M(r),V=n.useRef(!1),[N,P]=n.useState(0);return n.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(x,E),()=>e.removeEventListener(x,E)},[E]),(0,c.jsx)(A,{scope:r,orientation:o,dir:I,loop:i,currentTabStopId:F,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>D(!0),[]),onFocusableItemAdd:n.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>P(e=>e-1),[]),children:(0,c.jsx)(f.WV.div,{tabIndex:S||0===N?-1:0,"data-orientation":o,...y,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,a.Mj)(e.onMouseDown,()=>{V.current=!0}),onFocus:(0,a.Mj)(e.onFocus,e=>{let t=!V.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(x,R);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);K([e.find(e=>e.active),e.find(e=>e.id===F),...e].filter(Boolean).map(e=>e.ref.current),h)}}V.current=!1}),onBlur:(0,a.Mj)(e.onBlur,()=>D(!1))})})}),k="RovingFocusGroupItem",V=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:l,children:u,...d}=e,p=(0,s.M)(),v=l||p,m=S(k,r),w=m.currentTabStopId===v,h=M(r),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:R}=m,j=g();return(0,b.b)(()=>{if(j&&o)return y(),()=>x()},[j,o,y,x]),n.useEffect(()=>{if(!j&&o)return y(),()=>x()},[j,o,y,x]),(0,c.jsx)(C.ItemSlot,{scope:r,id:v,focusable:o,active:i,children:(0,c.jsx)(f.WV.span,{tabIndex:w?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,a.Mj)(e.onMouseDown,e=>{o?m.onItemFocus(v):e.preventDefault()}),onFocus:(0,a.Mj)(e.onFocus,()=>m.onItemFocus(v)),onKeyDown:(0,a.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return N[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>K(o))}}),children:"function"==typeof u?u({isCurrentTabStop:w,hasTabStop:null!=R}):u})})});V.displayName=k;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var P=r(65622),_="Tabs",[L,W]=(0,i.b)(_,[T]),G=T(),[z,B]=L(_),O=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:u="automatic",...d}=e,v=m(l),[b,w]=(0,p.T)({prop:n,onChange:o,defaultProp:null!=a?a:"",caller:_});return(0,c.jsx)(z,{scope:r,baseId:(0,s.M)(),value:b,onValueChange:w,orientation:i,dir:v,activationMode:u,children:(0,c.jsx)(f.WV.div,{dir:v,"data-orientation":i,...d,ref:t})})});O.displayName=_;var U="TabsList",q=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=B(U,r),i=G(r);return(0,c.jsx)(D,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:(0,c.jsx)(f.WV.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});q.displayName=U;var Z="TabsTrigger",H=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,l=B(Z,r),u=G(r),s=Q(l.baseId,n),d=X(l.baseId,n),p=n===l.value;return(0,c.jsx)(V,{asChild:!0,...u,focusable:!o,active:p,children:(0,c.jsx)(f.WV.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":d,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:(0,a.Mj)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:(0,a.Mj)(e.onKeyDown,e=>{!o&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:(0,a.Mj)(e.onFocus,()=>{let e="manual"!==l.activationMode;p||o||!e||l.onValueChange(n)})})})});H.displayName=Z;var Y="TabsContent",J=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:i,...l}=e,u=B(Y,r),s=Q(u.baseId,o),d=X(u.baseId,o),p=o===u.value,v=n.useRef(p);return n.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(P.z,{present:a||p,children:r=>{let{present:n}=r;return(0,c.jsx)(f.WV.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:n&&i})}})});function Q(e,t){return"".concat(e,"-trigger-").concat(t)}function X(e,t){return"".concat(e,"-content-").concat(t)}J.displayName=Y;var $=O,ee=q,et=H,er=J}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[402],{2389:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(7653);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:a="",children:s,iconNode:f,...d}=e;return(0,r.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:n,strokeWidth:c?24*Number(l)/Number(o):l,className:u("lucide",a),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),c=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:c,...a}=n;return(0,r.createElement)(l,{ref:i,iconNode:t,className:u("lucide-".concat(o(e)),c),...a})});return n.displayName="".concat(e),n}},46196:function(e,t,n){function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}n.d(t,{Mj:function(){return r}}),"undefined"!=typeof window&&window.document&&window.document.createElement},94492:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(7653);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(...e),e)}},99933:function(e,t,n){n.d(t,{b:function(){return u}});var r=n(7653),o=n(27573);function u(e,t=[]){let n=[],u=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return u.scopeName=e,[function(t,u){let i=r.createContext(u);i.displayName=t+"Context";let l=n.length;n=[...n,u];let c=t=>{let{scope:n,children:u,...c}=t,a=n?.[e]?.[l]||i,s=r.useMemo(()=>c,Object.values(c));return(0,o.jsx)(a.Provider,{value:s,children:u})};return c.displayName=t+"Provider",[c,function(n,o,c={}){let{optional:a=!1}=c,s=o?.[e]?.[l]||i,f=r.useContext(s);if(f)return f;if(void 0!==u)return u;if(!a)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(u,...t)]}},17321:function(e,t,n){n.d(t,{M:function(){return c}});var r,o=n(7653),u=n(81523),i=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function c(e){let[t,n]=o.useState(i());return(0,u.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},65622:function(e,t,n){n.d(t,{z:function(){return u}});var r=n(7653),o=n(81523),u=e=>{var t,n;let u,c;let{present:a,children:s}=e,f=function(e){var t,n;let[u,i]=r.useState(),c=r.useRef(null),a=r.useRef(e),s=r.useRef("none"),f=r.useRef(void 0),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{if("mounted"===d){var e;s.current=null!==(e=f.current)&&void 0!==e?e:l(c.current),f.current=void 0}else s.current="none"},[d]),(0,o.b)(()=>{let t=c.current,n=a.current;if(n!==e){let r=s.current,o=l(t);e?(f.current=o,p("MOUNT")):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),a.current=e}},[e,p]),(0,o.b)(()=>{if(u){var e;let t;let n=null!==(e=u.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(c.current).includes(CSS.escape(e.animationName));if(e.target===u&&r&&(p("ANIMATION_END"),!a.current)){let e=u.style.animationFillMode;u.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===u.style.animationFillMode&&(u.style.animationFillMode=e)})}},o=e=>{e.target===u&&(s.current=l(c.current))};return u.addEventListener("animationstart",o),u.addEventListener("animationcancel",r),u.addEventListener("animationend",r),()=>{n.clearTimeout(t),u.removeEventListener("animationstart",o),u.removeEventListener("animationcancel",r),u.removeEventListener("animationend",r)}}p("ANIMATION_END")},[u,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);c.current=t,f.current=l(t)}else c.current=null;i(e)},[])}}(a),d="function"==typeof s?s({present:f.isPresent}):r.Children.only(s),p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=r.useRef(t);return o.current=t,r.useCallback(e=>{let t=o.current,n=!1,r=t.map(t=>{let r=i(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():i(t[e],null)}}},[])}(f.ref,(u=null===(t=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in u&&u.isReactWarning?d.ref:(u=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in u&&u.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof s||f.isPresent?r.cloneElement(d,{ref:p}):null};function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},78378:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return c}});var r=n(7653),o=n(3458),u=n(8828),i=n(27573),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,u.Z8)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...u}=e,l=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...u,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function c(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},8828:function(e,t,n){n.d(t,{Z8:function(){return i}});var r,o=n(7653),u=n(94492);function i(e){let t=o.forwardRef((t,n)=>{var r;let i,a,{children:m,...v}=t,y=null,h=!1,N=[];s(m)&&"function"==typeof p&&(m=p(m._payload)),o.Children.forEach(m,e=>{if(o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l){h=!0;let t="child"in e.props?e.props.child:e.props.children;s(t)&&"function"==typeof p&&(t=p(t._payload)),y=c(e,t),N.push(y?.props?.children)}else N.push(e)}),y?y=o.cloneElement(y,void 0,N):!h&&1===o.Children.count(m)&&o.isValidElement(m)&&(y=m);let g=y?(r=y,(i=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning?r.ref:(i=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning?r.props.ref:r.props.ref||r.ref):void 0,w=(0,u.e)(n,g);if(!y){if(m||0===m)throw Error(h?d(e):f(e));return m}let b=function(e,t){let n={...t};for(let r in t){let o=e[r],u=t[r];/^on[A-Z]/.test(r)?o&&u?n[r]=(...e)=>{let t=u(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...u}:"className"===r&&(n[r]=[o,u].filter(Boolean).join(" "))}return{...e,...n}}(v,y.props??{});return y.type!==o.Fragment&&(b.ref=n?w:g),o.cloneElement(y,b)});return t.displayName=`${e}.Slot`,t}var l=Symbol.for("radix.slottable"),c=(e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},a=Symbol.for("react.lazy");function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var f=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=(r||(r=n.t(o,2)))[" use ".trim().toString()]},523:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(7653);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},47178:function(e,t,n){n.d(t,{T:function(){return l}});var r,o=n(7653),u=n(81523),i=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||u.b;function l({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[u,l,c]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),u=o.useRef(n),l=o.useRef(t);return i(()=>{l.current=t},[t]),o.useEffect(()=>{u.current!==n&&(l.current?.(n),u.current=n)},[n,u]),[n,r,l]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:u;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[s,o.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c.current?.(n)}else l(t)},[a,e,l,c])]}Symbol("RADIX:SYNC_STATE")},81523:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(7653),o=globalThis?.document?r.useLayoutEffect:()=>{}},49289:function(e,t,n){n.d(t,{j:function(){return i}});var r=n(10607);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,u=r.W,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,c=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];if(null===t)return null;let u=o(t)||o(r);return i[e][u]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,c,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...a}[t]):({...l,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]);