@perses-dev/heatmap-chart-plugin 0.4.1 → 0.5.0-beta.1

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 (156) hide show
  1. package/__mf/css/async/653.85c2cbf6.css +1 -0
  2. package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
  3. package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
  4. package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
  5. package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
  6. package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
  7. package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
  8. package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
  9. package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
  10. package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
  11. package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
  12. package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
  13. package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
  14. package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
  15. package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
  16. package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
  17. package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
  18. package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
  19. package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
  20. package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
  21. package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
  22. package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
  23. package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
  24. package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
  25. package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
  26. package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
  27. package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
  28. package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
  29. package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
  30. package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
  31. package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
  32. package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
  33. package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
  34. package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
  35. package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
  36. package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
  37. package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
  38. package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
  39. package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
  40. package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
  41. package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
  42. package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
  43. package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
  44. package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
  45. package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
  46. package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
  47. package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
  48. package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
  49. package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
  50. package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
  51. package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
  52. package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
  53. package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
  54. package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
  55. package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
  56. package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
  57. package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
  58. package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
  59. package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
  60. package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
  61. package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
  62. package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
  63. package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
  64. package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
  65. package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
  66. package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
  67. package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
  68. package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
  69. package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
  70. package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
  71. package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
  72. package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
  73. package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
  74. package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
  75. package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
  76. package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
  77. package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
  78. package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
  79. package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
  80. package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
  81. package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
  82. package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
  83. package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
  84. package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
  85. package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
  86. package/__mf/js/HeatMapChart.32a03178.js +7 -0
  87. package/__mf/js/async/{121.8ac14a6e.js → 121.b18ceb80.js} +2 -2
  88. package/__mf/js/async/392.0f59f214.js +2 -0
  89. package/__mf/js/async/470.399d3ba9.js +2 -0
  90. package/__mf/js/async/535.1d535ef6.js +1 -0
  91. package/__mf/js/async/653.fc6fe010.js +71 -0
  92. package/__mf/js/async/{12.4ae967ba.js.LICENSE.txt → 653.fc6fe010.js.LICENSE.txt} +42 -2
  93. package/__mf/js/async/888.1c9d2db3.js +1 -0
  94. package/__mf/js/async/941.a8fee60a.js +2 -0
  95. package/__mf/js/async/963.f3d8b714.js +1 -0
  96. package/__mf/js/async/980.2f9fb38d.js +83 -0
  97. package/__mf/js/async/{980.092bc51a.js.LICENSE.txt → 980.2f9fb38d.js.LICENSE.txt} +1 -1
  98. package/__mf/js/async/{__federation_expose_HeatMapChart.142ce29b.js → __federation_expose_HeatMapChart.d2caae8a.js} +8 -8
  99. package/__mf/js/main.abb24772.js +7 -0
  100. package/lib/cjs/components/HeatMapChart.js +3 -4
  101. package/lib/cjs/components/HeatMapTooltip.js +2 -3
  102. package/lib/cjs/utils/data-transform.js +2 -2
  103. package/lib/components/HeatMapChart.d.ts +2 -1
  104. package/lib/components/HeatMapChart.d.ts.map +1 -1
  105. package/lib/components/HeatMapChart.js +1 -2
  106. package/lib/components/HeatMapChart.js.map +1 -1
  107. package/lib/components/HeatMapChartPanel.d.ts +1 -1
  108. package/lib/components/HeatMapChartPanel.d.ts.map +1 -1
  109. package/lib/components/HeatMapChartPanel.js.map +1 -1
  110. package/lib/components/HeatMapTooltip.d.ts +1 -1
  111. package/lib/components/HeatMapTooltip.d.ts.map +1 -1
  112. package/lib/components/HeatMapTooltip.js +1 -2
  113. package/lib/components/HeatMapTooltip.js.map +1 -1
  114. package/lib/heat-map-chart-model.d.ts +2 -1
  115. package/lib/heat-map-chart-model.d.ts.map +1 -1
  116. package/lib/heat-map-chart-model.js.map +1 -1
  117. package/lib/utils/data-transform.d.ts +1 -1
  118. package/lib/utils/data-transform.d.ts.map +1 -1
  119. package/lib/utils/data-transform.js +1 -1
  120. package/lib/utils/data-transform.js.map +1 -1
  121. package/lib/utils/thresholds.d.ts +1 -2
  122. package/lib/utils/thresholds.d.ts.map +1 -1
  123. package/lib/utils/thresholds.js.map +1 -1
  124. package/mf-manifest.json +38 -33
  125. package/mf-stats.json +45 -37
  126. package/package.json +5 -4
  127. package/__mf/css/async/442.d3010b86.css +0 -1
  128. package/__mf/css/async/61.d3010b86.css +0 -1
  129. package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
  130. package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
  131. package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
  132. package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
  133. package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
  134. package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
  135. package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
  136. package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
  137. package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
  138. package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
  139. package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
  140. package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
  141. package/__mf/js/HeatMapChart.9e89e9fc.js +0 -6
  142. package/__mf/js/async/12.4ae967ba.js +0 -2
  143. package/__mf/js/async/392.81aab132.js +0 -2
  144. package/__mf/js/async/470.6889fffa.js +0 -2
  145. package/__mf/js/async/631.8bf555e3.js +0 -71
  146. package/__mf/js/async/631.8bf555e3.js.LICENSE.txt +0 -21
  147. package/__mf/js/async/65.b8155b50.js +0 -1
  148. package/__mf/js/async/888.944e0384.js +0 -1
  149. package/__mf/js/async/941.05360f3e.js +0 -2
  150. package/__mf/js/async/963.6eed3d33.js +0 -1
  151. package/__mf/js/async/980.092bc51a.js +0 -83
  152. package/__mf/js/main.d436962b.js +0 -6
  153. /package/__mf/js/async/{121.8ac14a6e.js.LICENSE.txt → 121.b18ceb80.js.LICENSE.txt} +0 -0
  154. /package/__mf/js/async/{392.81aab132.js.LICENSE.txt → 392.0f59f214.js.LICENSE.txt} +0 -0
  155. /package/__mf/js/async/{470.6889fffa.js.LICENSE.txt → 470.399d3ba9.js.LICENSE.txt} +0 -0
  156. /package/__mf/js/async/{941.05360f3e.js.LICENSE.txt → 941.a8fee60a.js.LICENSE.txt} +0 -0
@@ -21,17 +21,57 @@
21
21
  */
22
22
 
23
23
  /*!
24
- * decimal.js v10.5.0
24
+ * decimal.js v10.6.0
25
25
  * An arbitrary-precision Decimal type for JavaScript.
26
26
  * https://github.com/MikeMcl/decimal.js
27
27
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
28
28
  * MIT Licence
29
29
  */
30
30
 
31
+ /**
32
+ * match-sorter-utils
33
+ *
34
+ * Copyright (c) TanStack
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE.md file in the root directory of this source tree.
38
+ *
39
+ * @license MIT
40
+ */
41
+
42
+ /**
43
+ * react-table
44
+ *
45
+ * Copyright (c) TanStack
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE.md file in the root directory of this source tree.
49
+ *
50
+ * @license MIT
51
+ */
52
+
53
+ /**
54
+ * table-core
55
+ *
56
+ * Copyright (c) TanStack
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE.md file in the root directory of this source tree.
60
+ *
61
+ * @license MIT
62
+ */
63
+
31
64
  /**
32
65
  * @license Fraction.js v4.3.7 31/08/2023
33
66
  * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
34
67
  *
35
68
  * Copyright (c) 2023, Robert Eisele (robert@raw.org)
36
69
  * Dual licensed under the MIT or GPL Version 2 licenses.
37
- **/
70
+ **/
71
+
72
+ /**
73
+ * @name match-sorter
74
+ * @license MIT license.
75
+ * @copyright (c) 2099 Kent C. Dodds
76
+ * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
77
+ */
@@ -0,0 +1 @@
1
+ "use strict";(self["chunk_HeatMapChart "]=self["chunk_HeatMapChart "]||[]).push([["888"],{65130(t,e,n){n.d(e,{f:()=>u});var a=n(12015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);return isNaN(e)?(0,a.w)(n?.in||t,NaN):(e&&u.setDate(u.getDate()+e),u)}},38086(t,e,n){n.d(e,{P:()=>u});var a=n(12015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);if(isNaN(e))return(0,a.w)(n?.in||t,NaN);if(!e)return u;let i=u.getDate(),o=(0,a.w)(n?.in||t,u.getTime());return(o.setMonth(u.getMonth()+e+1,0),i>=o.getDate())?o:(u.setFullYear(o.getFullYear(),o.getMonth(),i),u)}},30439(t,e,n){n.d(e,{_P:()=>i,my:()=>a,s0:()=>u,w4:()=>r});let a=6048e5,r=864e5,u=36e5,i=Symbol.for("constructDateFrom")},12015(t,e,n){n.d(e,{w:()=>r});var a=n(30439);function r(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&a._P in t?t[a._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},4721(t,e,n){n.d(e,{a:()=>r});var a=n(12015);function r(t,e){return(0,a.w)(e||t,t)}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 941.a8fee60a.js.LICENSE.txt */
2
+ "use strict";(self["chunk_HeatMapChart "]=self["chunk_HeatMapChart "]||[]).push([["941"],{7470(e,r,t){var o=t(20231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(70451),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var o,n={},c=null,l=null;for(o in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)_.call(r,o)&&!s.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:a,type:e,key:c,ref:l,props:n,_owner:f.current}}r.Fragment=n,r.jsx=c,r.jsxs=c},62540(e,r,t){e.exports=t(2192)},86604(e,r,t){t.r(r);var o=t(62540),a=t(70451),n=t.n(a);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(n().StrictMode,{}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self["chunk_HeatMapChart "]=self["chunk_HeatMapChart "]||[]).push([["963"],{38662(e,t,r){r.r(t),r.d(t,{Immer:()=>X,applyPatches:()=>et,castDraft:()=>ea,castImmutable:()=>ei,createDraft:()=>er,current:()=>q,enableMapSet:()=>G,enablePatches:()=>B,finishDraft:()=>en,freeze:()=>z,immerable:()=>i,isDraft:()=>u,isDraftable:()=>l,nothing:()=>a,original:()=>h,produce:()=>T,produceWithPatches:()=>V,setAutoFreeze:()=>Y,setUseStrictIteration:()=>ee,setUseStrictShallowCopy:()=>Z});var n,a=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function u(e){return!!e&&!!e[s]}function l(e){return!!e&&(_(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||m(e)||S(e))}var f=Object.prototype.constructor.toString(),p=new WeakMap;function _(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=p.get(r);return void 0===n&&(n=Function.toString.call(r),p.set(r,n)),n===f}function h(e){return u(e)||o(15,e),e[s].base_}function d(e,t,r=!0){0===y(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function y(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:m(e)?2:3*!!S(e)}function b(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===y(e)?e.get(t):e[t]}function g(e,t,r){let n=y(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function m(e){return e instanceof Map}function S(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function P(e,t){if(m(e))return new Map(e);if(S(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(c(e),t)}}function z(e,t=!1){return j(e)||u(e)||!l(e)||(y(e)>1&&Object.defineProperties(e,{set:O,add:O,clear:O,delete:O}),Object.freeze(e),t&&Object.values(e).forEach(e=>z(e,!0))),e}var O={value:function(){o(2)}};function j(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var M={};function A(e){let t=M[e];return t||o(0,e),t}function k(e,t){t&&(A("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){F(e),e.drafts_.forEach(E),e.drafts_=null}function F(e){e===n&&(n=e.parent_)}function I(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function x(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(D(t),o(4)),l(e)&&(e=C(t,e),t.parent_||N(t,e)),t.patches_&&A("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=C(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==a?e:void 0}function C(e,t,r){if(j(t))return t;let n=e.immer_.shouldUseStrictIteration(),a=t[s];if(!a)return d(t,(n,i)=>U(e,a,t,n,i,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return N(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;let t=a.copy_,i=t,s=!1;3===a.type_&&(i=new Set(t),t.clear(),s=!0),d(i,(n,i)=>U(e,a,t,n,i,r,s),n),N(e,t,!1),r&&e.patches_&&A("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function U(e,t,r,n,a,i,s){if(null==a||"object"!=typeof a&&!s)return;let o=j(a);if(!o||s){if(u(a)){let s=C(e,a,i&&t&&3!==t.type_&&!b(t.assigned_,n)?i.concat(n):void 0);if(g(r,n,s),!u(s))return;e.canAutoFreeze_=!1}else s&&r.add(a);if(l(a)&&!o){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===a&&o)return;C(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(m(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&N(e,a)}}}function N(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&z(t,r)}var R={get(e,t){if(t===s)return e;let r=w(e);if(!b(r,t)){var n;let a;return n=e,(a=H(r,t))?"value"in a?a.value:a.get?.call(n.draft_):void 0}let a=r[t];return e.finalized_||!l(a)?a:a===K(e.base_,t)?(J(e),e.copy_[t]=$(a,e)):a},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,r){let n=H(w(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=K(w(e),t),a=n?.[s];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||b(e.base_,t)))return!0;J(e),L(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,J(e),L(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=w(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){o(12)}},W={};function K(e,t){let r=e[s];return(r?w(r):e)[t]}function H(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function L(e){!e.modified_&&(e.modified_=!0,e.parent_&&L(e.parent_))}function J(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}d(R,(e,t)=>{W[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),W.deleteProperty=function(e,t){return W.set.call(this,e,t,void 0)},W.set=function(e,t,r){return R.set.call(this,e[0],t,r,e[0])};var X=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),l(e)){let a=I(this),i=$(e,void 0),s=!0;try{n=t(i),s=!1}finally{s?D(a):F(a)}return k(a,r),x(n,a)}if(e&&"object"==typeof e)o(1,e);else{if(void 0===(n=t(e))&&(n=e),n===a&&(n=void 0),this.autoFreeze_&&z(n,!0),r){let t=[],a=[];A("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){l(e)||o(8),u(e)&&(e=q(e));let t=I(this),r=$(e,void 0);return r[s].isManual_=!0,F(t),r}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||o(9);let{scope_:n}=r;return k(n,t),x(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=A("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}};function $(e,t){let r=m(e)?A("MapSet").proxyMap_(e,t):S(e)?A("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=a,s=R;r&&(i=[a],s=W);let{revoke:o,proxy:c}=Proxy.revocable(i,s);return a.draft_=c,a.revoke_=o,c}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function q(e){return u(e)||o(10,e),function e(t){let r;if(!l(t)||j(t))return t;let n=t[s],a=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_),a=n.scope_.immer_.shouldUseStrictIteration()}else r=P(t,!0);return d(r,(t,n)=>{g(r,t,e(n))},a),n&&(n.finalized_=!1),r}(e)}function B(){let e="replace",t="remove";function r(e){if(!l(e))return e;if(Array.isArray(e))return e.map(r);if(m(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(S(e))return new Set(Array.from(e).map(r));let t=Object.create(c(e));for(let n in e)t[n]=r(e[n]);return b(e,i)&&(t[i]=e[i]),t}function n(e){return u(e)?r(e):e}M.Patches||(M.Patches={applyPatches_:function(n,a){return a.forEach(a=>{let{path:i,op:s}=a,c=n;for(let e=0;e<i.length-1;e++){let t=y(c),r=i[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&o(19),"function"==typeof c&&"prototype"===r&&o(19),"object"!=typeof(c=v(c,r))&&o(18,i.join("/"))}let u=y(c),l=r(a.value),f=i[i.length-1];switch(s){case e:switch(u){case 2:return c.set(f,l);case 3:o(16);default:return c[f]=l}case"add":switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case t:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(a.value);default:return delete c[f]}default:o(17,s)}}),n},generatePatches_:function(r,a,i,s){switch(r.type_){case 0:case 2:return function(r,a,i,s){let{base_:o,copy_:c}=r;d(r.assigned_,(r,u)=>{let l=v(o,r),f=v(c,r),p=u?b(o,r)?e:"add":t;if(l===f&&p===e)return;let _=a.concat(r);i.push(p===t?{op:p,path:_}:{op:p,path:_,value:f}),s.push("add"===p?{op:t,path:_}:p===t?{op:"add",path:_,value:n(l)}:{op:e,path:_,value:n(l)})})}(r,a,i,s);case 1:return function(r,a,i,s){let{base_:o,assigned_:c}=r,u=r.copy_;u.length<o.length&&([o,u]=[u,o],[i,s]=[s,i]);for(let t=0;t<o.length;t++)if(c[t]&&u[t]!==o[t]){let r=a.concat([t]);i.push({op:e,path:r,value:n(u[t])}),s.push({op:e,path:r,value:n(o[t])})}for(let e=o.length;e<u.length;e++){let t=a.concat([e]);i.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;o.length<=e;--e){let r=a.concat([e]);s.push({op:t,path:r})}}(r,a,i,s);case 3:return function(e,r,n,a){let{base_:i,copy_:s}=e,o=0;i.forEach(e=>{if(!s.has(e)){let i=r.concat([o]);n.push({op:t,path:i,value:e}),a.unshift({op:"add",path:i,value:e})}o++}),o=0,s.forEach(e=>{if(!i.has(e)){let i=r.concat([o]);n.push({op:"add",path:i,value:e}),a.unshift({op:t,path:i,value:e})}o++})}(r,a,i,s)}},generateReplacementPatches_:function(t,r,n,i){n.push({op:e,path:[],value:r===a?void 0:r}),i.push({op:e,path:[],value:t})}})}function G(){class e extends Map{constructor(e,t){super(),this[s]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return w(this[s]).size}has(e){return w(this[s]).has(e)}set(e,r){let n=this[s];return i(n),w(n).has(e)&&w(n).get(e)===r||(t(n),L(n),n.assigned_.set(e,!0),n.copy_.set(e,r),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[s];return i(r),t(r),L(r),r.base_.has(e)?r.assigned_.set(e,!1):r.assigned_.delete(e),r.copy_.delete(e),!0}clear(){let e=this[s];i(e),w(e).size&&(t(e),L(e),e.assigned_=new Map,d(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){w(this[s]).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let r=this[s];i(r);let n=w(r).get(e);if(r.finalized_||!l(n)||n!==r.base_.get(e))return n;let a=$(n,r);return t(r),r.copy_.set(e,a),a}keys(){return w(this[s]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class r extends Set{constructor(e,t){super(),this[s]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return w(this[s]).size}has(e){let t=this[s];return(i(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[s];return i(t),this.has(e)||(a(t),L(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[s];return i(t),a(t),L(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[s];i(e),w(e).size&&(a(e),L(e),e.copy_.clear())}values(){let e=this[s];return i(e),a(e),e.copy_.values()}entries(){let e=this[s];return i(e),a(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function a(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(l(t)){let r=$(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function i(e){e.revoked_&&o(3,JSON.stringify(w(e)))}M.MapSet||(M.MapSet={proxyMap_:function(t,r){return new e(t,r)},proxySet_:function(e,t){return new r(e,t)}})}var Q=new X,T=Q.produce,V=Q.produceWithPatches.bind(Q),Y=Q.setAutoFreeze.bind(Q),Z=Q.setUseStrictShallowCopy.bind(Q),ee=Q.setUseStrictIteration.bind(Q),et=Q.applyPatches.bind(Q),er=Q.createDraft.bind(Q),en=Q.finishDraft.bind(Q);function ea(e){return e}function ei(e){return e}}}]);