@limetech/lime-elements 39.24.1 → 39.25.0

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 (157) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/{_assignValue-DpsLUlF4.js → _assignValue-DQh76m39.js} +2 -2
  3. package/dist/cjs/{_baseEach-C570gT5Y.js → _baseEach-Bygi-un6.js} +2 -2
  4. package/dist/cjs/{_baseIsEqual-aOPReRWl.js → _baseIsEqual-CQZKiKbe.js} +20 -365
  5. package/dist/cjs/{_baseIteratee-DggA4e7a.js → _baseIteratee-DDklwtn9.js} +6 -4
  6. package/dist/cjs/{_defineProperty-BDFOiqJL.js → _defineProperty-Csu6P9HT.js} +1 -1
  7. package/dist/cjs/{_getAllKeysIn-BQIV8aw7.js → _getAllKeysIn-BJsgUTAt.js} +5 -4
  8. package/dist/cjs/{_getNative-B4n5HX2B.js → _getNative-Cf52giNE.js} +2 -2
  9. package/dist/cjs/_getTag-BC28Za7d.js +355 -0
  10. package/dist/cjs/_isIndex-Bu45fvR7.js +27 -0
  11. package/dist/cjs/{_isIterateeCall-CPWXFS_s.js → _isIterateeCall-BUGt9SrH.js} +4 -3
  12. package/dist/cjs/{cloneDeep-CxFNKF1Y.js → cloneDeep-hE40Q8aw.js} +13 -12
  13. package/dist/cjs/{difference-Bfsq4sXB.js → difference-B543MGsY.js} +5 -4
  14. package/dist/cjs/eq-DFcUoVzv.js +39 -0
  15. package/dist/cjs/file-metadata-BrhOssGG.js +76 -0
  16. package/dist/cjs/{files-Cf615Ytp.js → files-Bt11HLi4.js} +1 -1
  17. package/dist/cjs/{focus-trigger-element-Brw8VubX.js → focus-trigger-element-BfnJmxKO.js} +1 -1
  18. package/dist/{esm/file-metadata-BwF9vTXN.js → cjs/icons-isR5V1X0.js} +4 -69
  19. package/dist/cjs/{isArrayLike-_dR1U5-Y.js → isArrayLike-C2RwZMG4.js} +2 -27
  20. package/dist/cjs/{isEmpty-EBCFxX1S.js → isEmpty-CCxl3bYc.js} +6 -6
  21. package/dist/cjs/{isEqual-bXyw7kXo.js → isEqual-Cd9J8a5-.js} +1 -1
  22. package/dist/cjs/{eq-B1KBAwmK.js → isFunction-RSHwsz1x.js} +0 -37
  23. package/dist/cjs/lime-elements.cjs.js +1 -1
  24. package/dist/cjs/{limel-breadcrumbs_7.cjs.entry.js → limel-breadcrumbs_8.cjs.entry.js} +74 -8
  25. package/dist/cjs/limel-chip-set.cjs.entry.js +588 -0
  26. package/dist/cjs/limel-chip_2.cjs.entry.js +33 -540
  27. package/dist/cjs/limel-dialog.cjs.entry.js +9 -6
  28. package/dist/cjs/limel-email-viewer.cjs.entry.js +15 -10
  29. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +12 -8
  30. package/dist/cjs/limel-file.cjs.entry.js +2 -1
  31. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +5 -3
  32. package/dist/cjs/limel-form.cjs.entry.js +28 -25
  33. package/dist/cjs/limel-helper-line.cjs.entry.js +42 -0
  34. package/dist/cjs/limel-popover_2.cjs.entry.js +6 -5
  35. package/dist/cjs/limel-profile-picture.cjs.entry.js +3 -2
  36. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +16 -12
  37. package/dist/cjs/limel-tab-bar.cjs.entry.js +11 -8
  38. package/dist/cjs/limel-table.cjs.entry.js +14 -11
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{pickBy-kLjYLoam.js → pickBy-D-X6S5kg.js} +5 -5
  41. package/dist/collection/components/chip-set/chip-set-input-helpers.js +8 -3
  42. package/dist/collection/components/chip-set/chip-set.js +9 -3
  43. package/dist/collection/components/email-viewer/email-viewer.css +7 -33
  44. package/dist/collection/components/email-viewer/email-viewer.js +16 -9
  45. package/dist/esm/{_assignValue-DOEO9byf.js → _assignValue-CEFvyZxO.js} +2 -2
  46. package/dist/esm/{_baseEach-C4UJIc96.js → _baseEach-lvj-g1Zj.js} +2 -2
  47. package/dist/esm/{_baseIsEqual-DCZXUzsZ.js → _baseIsEqual-B6bIeexY.js} +10 -346
  48. package/dist/esm/{_baseIteratee-CI-QZdpx.js → _baseIteratee-CEZRuq23.js} +4 -2
  49. package/dist/esm/{_defineProperty-yVdnnt__.js → _defineProperty-C69Btzid.js} +1 -1
  50. package/dist/esm/{_getAllKeysIn-v-KlW5r_.js → _getAllKeysIn-kT3KizYN.js} +3 -2
  51. package/dist/esm/{_getNative-aN4R8EiP.js → _getNative-COawFdVX.js} +1 -1
  52. package/dist/esm/_getTag-CMJL-6hk.js +344 -0
  53. package/dist/esm/_isIndex-B--C3qwe.js +25 -0
  54. package/dist/esm/{_isIterateeCall-CTcCv8Mb.js → _isIterateeCall-Bb4gUZLK.js} +3 -2
  55. package/dist/esm/{cloneDeep-V4fB8wfG.js → cloneDeep-CL7UD3mR.js} +4 -3
  56. package/dist/esm/{difference-CWrdq-hd.js → difference-DND5tWiA.js} +4 -3
  57. package/dist/esm/eq-CZ30nDJE.js +37 -0
  58. package/dist/esm/file-metadata-BHzkIH4g.js +71 -0
  59. package/dist/esm/{files-P324wLau.js → files-CZAZotms.js} +1 -1
  60. package/dist/esm/{focus-trigger-element-DubROLkE.js → focus-trigger-element-BOFcjLq3.js} +1 -1
  61. package/dist/{cjs/file-metadata-rQ0WzFlZ.js → esm/icons-Bu_YRgCL.js} +1 -75
  62. package/dist/esm/{isArrayLike-D1QkaJU2.js → isArrayLike-CyVGB489.js} +2 -26
  63. package/dist/esm/{isEmpty-BFxMjh_H.js → isEmpty-DHgukT5k.js} +2 -2
  64. package/dist/esm/{isEqual-CsrptmTU.js → isEqual-4tbMaaf_.js} +1 -1
  65. package/dist/esm/{eq-D7VMHFyO.js → isFunction-9zQTeQI8.js} +1 -37
  66. package/dist/esm/lime-elements.js +1 -1
  67. package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_8.entry.js} +71 -6
  68. package/dist/esm/limel-chip-set.entry.js +586 -0
  69. package/dist/esm/limel-chip_2.entry.js +35 -542
  70. package/dist/esm/limel-dialog.entry.js +9 -6
  71. package/dist/esm/limel-email-viewer.entry.js +15 -10
  72. package/dist/esm/limel-file-dropzone_2.entry.js +12 -8
  73. package/dist/esm/limel-file.entry.js +2 -1
  74. package/dist/esm/limel-flatpickr-adapter.entry.js +5 -3
  75. package/dist/esm/limel-form.entry.js +18 -15
  76. package/dist/esm/limel-helper-line.entry.js +40 -0
  77. package/dist/esm/limel-popover_2.entry.js +6 -5
  78. package/dist/esm/limel-profile-picture.entry.js +3 -2
  79. package/dist/esm/limel-prosemirror-adapter.entry.js +16 -12
  80. package/dist/esm/limel-tab-bar.entry.js +11 -8
  81. package/dist/esm/limel-table.entry.js +14 -11
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/{pickBy-D8CUtxE4.js → pickBy-C4C3CM4m.js} +4 -4
  84. package/dist/lime-elements/lime-elements.esm.js +1 -1
  85. package/dist/lime-elements/p-01651634.entry.js +1 -0
  86. package/dist/lime-elements/p-4ecd565b.entry.js +1 -0
  87. package/dist/lime-elements/p-5442e09e.entry.js +13 -0
  88. package/dist/lime-elements/p-56bkn1D-.js +1 -0
  89. package/dist/lime-elements/p-60327283.entry.js +1 -0
  90. package/dist/lime-elements/{p-cfe85e59.entry.js → p-6eaa9776.entry.js} +10 -10
  91. package/dist/lime-elements/p-72b9d03e.entry.js +1 -0
  92. package/dist/lime-elements/p-80162ba0.entry.js +1 -0
  93. package/dist/lime-elements/p-9W8bTt2G.js +1 -0
  94. package/dist/lime-elements/p-B--C3qwe.js +1 -0
  95. package/dist/lime-elements/p-B8yl2MCT.js +1 -0
  96. package/dist/lime-elements/p-BAR6am-7.js +1 -0
  97. package/dist/lime-elements/p-BCq5M9TE.js +1 -0
  98. package/dist/lime-elements/p-BE1Efiuj.js +1 -0
  99. package/dist/lime-elements/p-BYfPV0O4.js +1 -0
  100. package/dist/lime-elements/p-BcJ-TDVt.js +1 -0
  101. package/dist/lime-elements/p-BsX7ma3n.js +1 -0
  102. package/dist/lime-elements/p-Bu_YRgCL.js +1 -0
  103. package/dist/lime-elements/p-ByzvFNMm.js +1 -0
  104. package/dist/lime-elements/{p-CWuGCKo1.js → p-C4caLnTg.js} +1 -1
  105. package/dist/lime-elements/p-CR7u-m0b.js +1 -0
  106. package/dist/lime-elements/p-CVzgpz9P.js +1 -0
  107. package/dist/lime-elements/p-CZ30nDJE.js +1 -0
  108. package/dist/lime-elements/{p-BvDmWgCs.js → p-D0F7gOYG.js} +1 -1
  109. package/dist/lime-elements/p-D4RdItCq.js +1 -0
  110. package/dist/lime-elements/p-D8H5afYg.js +1 -0
  111. package/dist/lime-elements/p-DbBZn7JO.js +1 -0
  112. package/dist/lime-elements/p-DtrvybFR.js +1 -0
  113. package/dist/lime-elements/{p-8139d26a.entry.js → p-a712087a.entry.js} +3 -3
  114. package/dist/lime-elements/p-b1645d2d.entry.js +1 -0
  115. package/dist/lime-elements/p-c8eabc9d.entry.js +1 -0
  116. package/dist/lime-elements/p-cba2dbb6.entry.js +1 -0
  117. package/dist/lime-elements/{p-e720f65c.entry.js → p-d00ec6c2.entry.js} +3 -3
  118. package/dist/lime-elements/{p-a416d439.entry.js → p-e5c7cac0.entry.js} +2 -2
  119. package/dist/lime-elements/p-f6e58e6c.entry.js +1 -0
  120. package/dist/lime-elements/p-f867b424.entry.js +1 -0
  121. package/dist/lime-elements/p-mmkVLOjW.js +1 -0
  122. package/dist/types/components/chip-set/chip-set.d.ts +1 -0
  123. package/dist/types/components/chip-set/chip.types.d.ts +9 -0
  124. package/dist/types/components/email-viewer/email-viewer.d.ts +0 -1
  125. package/dist/types/components.d.ts +4 -0
  126. package/package.json +1 -1
  127. package/dist/cjs/limel-helper-line_2.cjs.entry.js +0 -107
  128. package/dist/cjs/limel-linear-progress.cjs.entry.js +0 -59
  129. package/dist/esm/limel-helper-line_2.entry.js +0 -104
  130. package/dist/esm/limel-linear-progress.entry.js +0 -57
  131. package/dist/lime-elements/p-4118be32.entry.js +0 -13
  132. package/dist/lime-elements/p-48db87d3.entry.js +0 -1
  133. package/dist/lime-elements/p-4e9baf08.entry.js +0 -1
  134. package/dist/lime-elements/p-59f1460d.entry.js +0 -1
  135. package/dist/lime-elements/p-7uuv3HUP.js +0 -1
  136. package/dist/lime-elements/p-811c4820.entry.js +0 -1
  137. package/dist/lime-elements/p-83e084f9.entry.js +0 -1
  138. package/dist/lime-elements/p-9a378cf0.entry.js +0 -1
  139. package/dist/lime-elements/p-BTHqaZIi.js +0 -1
  140. package/dist/lime-elements/p-Bj622DVt.js +0 -1
  141. package/dist/lime-elements/p-Bp0tNo1s.js +0 -1
  142. package/dist/lime-elements/p-C3Myy3mA.js +0 -1
  143. package/dist/lime-elements/p-CXgJVvTe.js +0 -1
  144. package/dist/lime-elements/p-CxfAgSVd.js +0 -1
  145. package/dist/lime-elements/p-DNIqLXTL.js +0 -1
  146. package/dist/lime-elements/p-D_uMnX5g.js +0 -1
  147. package/dist/lime-elements/p-DbC-smVQ.js +0 -1
  148. package/dist/lime-elements/p-DlJXKdhK.js +0 -1
  149. package/dist/lime-elements/p-DtS35Df5.js +0 -1
  150. package/dist/lime-elements/p-SvuA3Boo.js +0 -1
  151. package/dist/lime-elements/p-b306735b.entry.js +0 -1
  152. package/dist/lime-elements/p-c1c635c1.entry.js +0 -1
  153. package/dist/lime-elements/p-cebdd797.entry.js +0 -1
  154. package/dist/lime-elements/p-efBXH4mj.js +0 -1
  155. package/dist/lime-elements/p-f_1nwOC8.js +0 -1
  156. package/dist/lime-elements/p-fd4a4f87.entry.js +0 -1
  157. package/dist/lime-elements/p-v6b303K5.js +0 -1
@@ -0,0 +1,13 @@
1
+ import{r as e,c as t,h as n,a as r}from"./p-DBTJNfo7.js";import{g as o}from"./p-B85MJLTf.js";import{t as i,a,b as l,c as s,d as u,e as c,h as f,s as d,g as h}from"./p-BE1Efiuj.js";import{b as m,a as p,h as v,p as y,n as b}from"./p-B8yl2MCT.js";import{S as g,k as w,a as $,c as k,b as S,s as E}from"./p-mmkVLOjW.js";import{i as j}from"./p-CK4jS9_E.js";import{t as O,i as x}from"./p-CR7u-m0b.js";import{c as _,a as C,b as D,d as I,i as A,e as F,f as M,g as P,h as T}from"./p-56bkn1D-.js";import{b as N,a as R,c as U}from"./p-DtrvybFR.js";import{g as q,k as z,a as L}from"./p-BsX7ma3n.js";import{i as B}from"./p-B8VKuhvH.js";import{i as V,a as W,b as H,S as G}from"./p-D4RdItCq.js";import{i as K}from"./p-BcJ-TDVt.js";import{b as J,i as Y}from"./p-BJQylLSL.js";import{b as X}from"./p-ByzvFNMm.js";import{e as Z}from"./p-CZ30nDJE.js";import{b as Q,a as ee,s as te,o as ne,i as re,c as oe,d as ie,e as ae}from"./p-BAR6am-7.js";import{i as le}from"./p-oiMYqRQ0.js";import{i as se}from"./p-D8H5afYg.js";import{i as ue}from"./p-BOEi1C7r.js";import{i as ce}from"./p-BYfPV0O4.js";import{i as fe}from"./p-CVzgpz9P.js";import{m as de}from"./p-zo6O9LC9.js";import{i as he}from"./p-B8hi7R6R.js";import"./p-B--C3qwe.js";import"./p-DbBZn7JO.js";import"./p-D6dCQvwl.js";import"./p-9W8bTt2G.js";function me(e){var t=O(e),n=t%1;return t==t?n?t-n:t:0}function pe(){}function ve(e){return null!=e&&e.length?ee(e,1):[]}function ye(e){return te(ne(e,void 0,ve),e+"")}var be=Function.prototype.toString,ge=Object.prototype.hasOwnProperty,we=be.call(Object);function $e(e){if(!le(e)||"[object Object]"!=J(e))return!1;var t=q(e);if(null===t)return!0;var n=ge.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&be.call(n)==we}function ke(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}var Se=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ee(e){return Se.test(e)}var je="\\ud800-\\udfff",Oe="["+je+"]",xe="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_e="\\ud83c[\\udffb-\\udfff]",Ce="[^"+je+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="(?:"+xe+"|"+_e+")?",Fe="[\\ufe0e\\ufe0f]?",Me=Fe+Ae+"(?:\\u200d(?:"+[Ce,De,Ie].join("|")+")"+Fe+Ae+")*",Pe="(?:"+[Ce+xe+"?",xe,De,Ie,Oe].join("|")+")",Te=RegExp(_e+"(?="+_e+")|"+Pe+Me,"g");var Ne=function(e){var t,n,r,o=Ee(e=i(e))?function(e){return Ee(e)?function(e){return e.match(Te)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,a=o?o[0]:e.charAt(0),l=o?(t=o,r=t.length,n=void 0===n?r:n,ke(t,1,n)).join(""):e.slice(1);return a.toUpperCase()+l};function Re(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ue(e,t,n){(void 0!==n&&!Z(e[t],n)||void 0===n&&!(t in e))&&X(e,t,n)}function qe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ze(e,t,n,r,o){e!==t&&N(t,(function(i,a){if(o||(o=new g),Y(i))!function(e,t,n,r,o,i,a){var l=qe(e,n),s=qe(t,n),u=a.get(s);if(u)Ue(e,n,u);else{var c,f=i?i(l,s,n+"",e,t,a):void 0,d=void 0===f;if(d){var h=B(s),m=!h&&V(s),p=!h&&!m&&W(s);f=s,h||m||p?B(l)?f=l:re(l)?f=C(l):m?(d=!1,f=D(s,!0)):p?(d=!1,f=I(s,!0)):f=[]:$e(s)||H(s)?(f=l,H(l)?f=_(c=l,z(c)):Y(l)&&!K(l)||(f=A(s))):d=!1}d&&(a.set(s,f),o(f,s,r,i,a),a.delete(s)),Ue(e,n,f)}}(e,t,a,n,ze,r,o);else{var l=r?r(qe(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Ue(e,a,l)}}),z)}function Le(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function Be(e){return"function"==typeof e?e:j}var Ve=1/0;function We(e){return"string"==typeof e||!B(e)&&le(e)&&"[object String]"==J(e)}var He=Math.max,Ge=Math.min;function Ke(e){return re(e)?e:[]}var Je=Q((function(e){var t=a(e,Ke);return t.length&&t[0]===e[0]?function(e){for(var t=ie,n=e[0].length,r=e.length,o=r,i=Array(r),a=1/0,l=[];o--;){var s=e[o];a=Ge(s.length,a),i[o]=n>=120&&s.length>=120?new $(o&&s):void 0}s=e[0];var u=-1,c=i[0];e:for(;++u<n&&l.length<a;){var f=s[u],d=f;if(f=0!==f?f:0,!(c?k(c,d):t(l,d))){for(o=r;--o;){var h=i[o];if(!(h?k(h,d):t(e[o],d)))continue e}c&&c.push(d),l.push(f)}}return l}(t):[]}));function Ye(e){return"number"==typeof e||le(e)&&"[object Number]"==J(e)}function Xe(e){return null==e}function Ze(e){return void 0===e}var Qe,et=(Qe=function(e,t,n){ze(e,t,n)},Q((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Qe.length>3&&"function"==typeof o?(r--,o):void 0,i&&x(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Qe(e,a,n)}return e}))),tt=Object.prototype.hasOwnProperty;function nt(e,t){var n=-1,r=(t=u(t,e)).length;if(!r)return!0;for(;++n<r;){var o=c(t[n]);if("__proto__"===o&&!tt.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var i=function(e,t){return t.length<2?e:l(e,ke(t,0,-1))}(e,t);return null==i||delete i[c(Le(t))]}function rt(e){return $e(e)?void 0:e}var ot=ye((function(e,t){var n={};if(null==e)return n;var r=!1;t=a(t,(function(t){return t=u(t,e),r||(r=t.length>1),t})),_(e,L(e),n),r&&(n=M(n,7,rt));for(var o=t.length;o--;)nt(n,t[o]);return n})),it=ye((function(e,t){return null==e?{}:function(e,t){return m(e,t,(function(t,n){return f(e,n)}))}(e,t)}));function at(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function lt(e,t,n){return null==e?e:p(e,t,n)}var st=4294967295,ut=Math.min;function ct(e,t){if((e=me(e))<1||e>9007199254740991)return[];var n=st,r=ut(e,st);t=Be(t),e-=st;for(var o=S(r,t);++n<e;)t(n);return o}function ft(e){return B(e)?a(e,c):ue(e)?[e]:C(d(i(e)))}var dt=G&&1/E(new G([,-0]))[1]==1/0?function(e){return new G(e)}:pe;function ht(e,t,n){var r=-1,o=ie,i=e.length,a=!0,l=[],s=l;if(i>=200){var u=dt(e);if(u)return E(u);a=!1,o=k,s=new $}else s=l;e:for(;++r<i;){var c=e[r],f=c;if(c=0!==c?c:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;l.push(c)}else o(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}var mt=Q((function(e){return ht(ee(e,1,re,!0))}));function pt(e){return e&&e.length?ht(e):[]}var vt=0;function yt(e){var t=++vt;return i(e)+t}var bt,gt,wt={exports:{}},$t={};function kt(){if(bt)return $t;bt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function p(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||d}p.prototype.isReactComponent={},p.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=p.prototype;var b=y.prototype=new v;b.constructor=y,h(b,p.prototype),b.isPureReactComponent=!0;var g=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function k(t,n,r,o,i,a){return{$$typeof:e,type:t,key:n,ref:void 0!==(r=a.ref)?r:null,props:a}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var n}function O(){}function x(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,u,d=!1;if(null===n)d=!0;else switch(l){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case c:return x((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+j(n,0):i,g(a)?(o="",null!=d&&(o=d.replace(E,"$&/")+"/"),x(a,r,o,"",(function(e){return e}))):null!=a&&(S(a)&&(s=a,u=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+d,a=k(s.type,u,void 0,0,0,s.props)),r.push(a)),1;d=0;var h,m=""===i?".":i+":";if(g(n))for(var p=0;p<n.length;p++)d+=x(i=n[p],r,o,l=m+j(i,p),a);else if("function"==typeof(p=null===(h=n)||"object"!=typeof h?null:"function"==typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(n=p.call(n),p=0;!(i=n.next()).done;)d+=x(i=i.value,r,o,l=m+j(i,p++),a);else if("object"===l){if("function"==typeof n.then)return x(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(O,O):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function _(e,t,n){if(null==e)return e;var r=[],o=0;return x(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function C(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function I(){}return $t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},$t.Component=p,$t.Fragment=n,$t.Profiler=o,$t.PureComponent=y,$t.StrictMode=r,$t.Suspense=s,$t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,$t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},$t.cache=function(e){return function(){return e.apply(null,arguments)}},$t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!$.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return k(e.type,o,void 0,0,0,r)},$t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},$t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return k(e,i,void 0,0,0,o)},$t.createRef=function(){return{current:null}},$t.forwardRef=function(e){return{$$typeof:l,render:e}},$t.isValidElement=S,$t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:C}},$t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},$t.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),o=w.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(I,D)}catch(e){D(e)}finally{w.T=t}},$t.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},$t.use=function(e){return w.H.use(e)},$t.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},$t.useCallback=function(e,t){return w.H.useCallback(e,t)},$t.useContext=function(e){return w.H.useContext(e)},$t.useDebugValue=function(){},$t.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},$t.useEffect=function(e,t,n){var r=w.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},$t.useId=function(){return w.H.useId()},$t.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},$t.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},$t.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},$t.useMemo=function(e,t){return w.H.useMemo(e,t)},$t.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},$t.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},$t.useRef=function(e){return w.H.useRef(e)},$t.useState=function(e){return w.H.useState(e)},$t.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},$t.useTransition=function(){return w.H.useTransition()},$t.version="19.1.1",$t}function St(){return gt||(gt=1,wt.exports=kt()),wt.exports}var Et,jt,Ot=St(),xt=o(Ot),_t={exports:{}},Ct={},Dt={exports:{}},It={};var At,Ft,Mt,Pt,Tt={exports:{}},Nt={};var Rt,Ut,qt=(Pt||(Pt=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),_t.exports=function(){if(Mt)return Ct;Mt=1;var e=(jt||(jt=1,Dt.exports=(Et||(Et=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,f=null,d=3,h=!1,m=!1,p=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function $(e){if(p=!1,w(e),!m)if(null!==n(s))m=!0,S||(S=!0,k());else{var t=n(u);null!==t&&I($,t.startTime-e)}}var k,S=!1,E=-1,j=5,O=-1;function x(){return!(!v&&e.unstable_now()-O<j)}function _(){if(v=!1,S){var t=e.unstable_now();O=t;var o=!0;try{e:{m=!1,p&&(p=!1,b(E),E=-1),h=!0;var i=d;try{t:{for(w(t),f=n(s);null!==f&&!(f.expirationTime>t&&x());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var l=a(f.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){f.callback=l,w(t),o=!0;break t}f===n(s)&&r(s),w(t)}else r(s);f=n(s)}if(null!==f)o=!0;else{var c=n(u);null!==c&&I($,c.startTime-t),o=!1}}break e}finally{f=null,d=i,h=!1}o=void 0}}finally{o?k():S=!1}}}if("function"==typeof g)k=function(){g(_)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,D=C.port2;C.port1.onmessage=_,k=function(){D.postMessage(null)}}else k=function(){y(_,0)};function I(t,n){E=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(p?(b(E),E=-1):p=!0,I($,i-a))):(r.sortIndex=l,t(s,r),m||h||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(It)),It)),Dt.exports),t=St(),n=(Ft||(Ft=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Tt.exports=function(){if(At)return Nt;At=1;var e=St();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal"),i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nt.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},Nt.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},Nt.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},Nt.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},Nt.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},Nt.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},Nt.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},Nt.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},Nt.requestFormReset=function(e){r.d.r(e)},Nt.unstable_batchedUpdates=function(e,t){return e(t)},Nt.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},Nt.useFormStatus=function(){return i.H.useHostTransitionStatus()},Nt.version="19.1.1",Nt}()),Tt.exports);function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function l(e){if(i(e)!==e)throw Error(r(188))}function s(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=s(e)))return t;e=e.sibling}return null}var u=Object.assign,c=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function x(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var _=Symbol.for("react.client.reference");function C(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===_?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case p:return"Profiler";case m:return"StrictMode";case w:return"Suspense";case $:return"SuspenseList";case E:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case d:return"Portal";case b:return(e.displayName||"Context")+".Provider";case y:return(e._context.displayName||"Context")+".Consumer";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:C(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return C(e(t))}catch(e){}}return null}var D=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},M=[],P=-1;function T(e){return{current:e}}function N(e){0>P||(e.current=M[P],M[P]=null,P--)}function R(e,t){P++,M[P]=e.current,e.current=t}var U=T(null),q=T(null),z=T(null),L=T(null);function B(e,t){switch(R(z,t),R(q,e),R(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=mf(t=hf(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}N(U),R(U,e)}function V(){N(U),N(q),N(z)}function W(e){null!==e.memoizedState&&R(L,e);var t=U.current,n=mf(t,e.type);t!==n&&(R(q,e),R(U,n))}function H(e){q.current===e&&(N(U),N(q)),L.current===e&&(N(L),rd._currentValue=F)}var G=Object.prototype.hasOwnProperty,K=e.unstable_scheduleCallback,J=e.unstable_cancelCallback,Y=e.unstable_shouldYield,X=e.unstable_requestPaint,Z=e.unstable_now,Q=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,te=e.unstable_UserBlockingPriority,ne=e.unstable_NormalPriority,re=e.unstable_LowPriority,oe=e.unstable_IdlePriority,ie=e.log,ae=e.unstable_setDisableYieldValue,le=null,se=null;function ue(e){if("function"==typeof ie&&ae(e),se&&"function"==typeof se.setStrictMode)try{se.setStrictMode(le,e)}catch(e){}}var ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/de|0)|0},fe=Math.log,de=Math.LN2,he=256,me=4194304;function pe(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ve(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!=(r=l&~i)?o=pe(r):0!=(a&=l)?o=pe(a):n||0!=(n=l&~e)&&(o=pe(n)):0!=(l=r&~i)?o=pe(l):0!==a?o=pe(a):n||0!=(n=r&~e)&&(o=pe(n)),0===o?0:0===t||t===o||t&i||!((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?o:t}function ye(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ge(){var e=he;return!(4194048&(he<<=1))&&(he=256),e}function we(){var e=me;return!(62914560&(me<<=1))&&(me=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ke(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Se(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Ee(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Oe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function xe(){var e=A.p;return 0!==e?e:void 0===(e=window.event)?32:bd(e.type)}var _e=Math.random().toString(36).slice(2),Ce="__reactFiber$"+_e,De="__reactProps$"+_e,Ie="__reactContainer$"+_e,Ae="__reactEvents$"+_e,Fe="__reactListeners$"+_e,Me="__reactHandles$"+_e,Pe="__reactResources$"+_e,Te="__reactMarker$"+_e;function Ne(e){delete e[Ce],delete e[De],delete e[Ae],delete e[Fe],delete e[Me]}function Re(e){var t=e[Ce];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ie]||n[Ce]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_f(e);null!==e;){if(n=e[Ce])return n;e=_f(e)}return t}n=(e=n).parentNode}return null}function Ue(e){if(e=e[Ce]||e[Ie]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function ze(e){var t=e[Pe];return t||(t=e[Pe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Le(e){e[Te]=!0}var Be=new Set,Ve={};function We(e,t){He(e,t),He(e+"Capture",t)}function He(e,t){for(Ve[e]=t,e=0;e<t.length;e++)Be.add(t[e])}var Ge,Ke,Je=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ye={},Xe={};function Ze(e,t,n){if(G.call(Xe,o=t)||!G.call(Ye,o)&&(Je.test(o)?Xe[o]=!0:(Ye[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function Qe(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function et(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function tt(e){if(void 0===Ge)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ge=t&&t[1]||"",Ke=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ge+e+Ke}var nt=!1;function rt(e,t){if(!e||nt)return"";nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],l=i[1];if(a&&l){var s=a.split("\n"),u=l.split("\n");for(o=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===s.length||o===u.length)for(r=s.length-1,o=u.length-1;1<=r&&0<=o&&s[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(s[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||s[r]!==u[o]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{nt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tt(n):""}function ot(e){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return rt(e.type,!1);case 11:return rt(e.type.render,!1);case 1:return rt(e.type,!0);case 31:return tt("Activity");default:return""}}function it(e){try{var t="";do{t+=ot(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function at(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function lt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function st(e){e._valueTracker||(e._valueTracker=function(e){var t=lt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ut(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ct(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ft=/[\n"\\]/g;function dt(e){return e.replace(ft,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function ht(e,t,n,r,o,i,a,l){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+at(t)):e.value!==""+at(t)&&(e.value=""+at(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?pt(e,a,at(t)):null!=n?pt(e,a,at(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+at(l):e.removeAttribute("name")}function mt(e,t,n,r,o,i,a,l){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+at(n):"",t=null!=t?""+at(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a)}function pt(e,t,n){"number"===t&&ct(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+at(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function yt(e,t,n){null==t||((t=""+at(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+at(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function bt(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(D(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=at(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o)}function gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var wt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||wt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function kt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&$t(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&$t(e,a,t[a])}function Ot(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return _t.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Rt=null;function Ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var qt=null,zt=null;function Lt(e){var t=Ue(e);if(t&&(e=t.stateNode)){var n=e[De]||null;e:switch(e=t.stateNode,t.type){case"input":if(ht(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+dt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[De]||null;if(!i)throw Error(r(90));ht(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&ut(o)}break e;case"textarea":yt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&vt(e,!!n.multiple,t,!1)}}}var Bt=!1;function Vt(e,t,n){if(Bt)return e(t,n);Bt=!0;try{return e(t)}finally{if(Bt=!1,(null!==qt||null!==zt)&&(Ju(),qt&&(t=qt,e=zt,zt=qt=null,Lt(t),e)))for(t=0;t<e.length;t++)Lt(e[t])}}function Wt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[De]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ht=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Gt=!1;if(Ht)try{var Kt={};Object.defineProperty(Kt,"passive",{get:function(){Gt=!0}}),window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch(e){Gt=!1}var Jt=null,Yt=null,Xt=null;function Zt(){if(Xt)return Xt;var e,t,n=Yt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(this[a]=(t=e[a])?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=nn(ln),un=u({},ln,{view:0,detail:0}),cn=nn(un),fn=u({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),dn=nn(fn),hn=nn(u({},fn,{dataTransfer:0})),mn=nn(u({},un,{relatedTarget:0})),pn=nn(u({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=nn(u({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),yn=nn(u({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function kn(){return $n}var Sn=nn(u({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),En=nn(u({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=nn(u({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),On=nn(u({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=nn(u({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),_n=nn(u({},ln,{newState:0,oldState:0})),Cn=[9,13,27,32],Dn=Ht&&"CompositionEvent"in window,In=null;Ht&&"documentMode"in document&&(In=document.documentMode);var An=Ht&&"TextEvent"in window&&!In,Fn=Ht&&(!Dn||In&&8<In&&11>=In),Mn=String.fromCharCode(32),Pn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Rn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function zn(e,t,n,r){qt?zt?zt.push(r):zt=[r]:qt=r,0<(t=Zc(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ln=null,Bn=null;function Vn(e){Vc(e,0)}function Wn(e){if(ut(qe(e)))return e}function Hn(e,t){if("change"===e)return t}var Gn=!1;if(Ht){var Kn;if(Ht){var Jn="oninput"in document;if(!Jn){var Yn=document.createElement("div");Yn.setAttribute("oninput","return;"),Jn="function"==typeof Yn.oninput}Kn=Jn}else Kn=!1;Gn=Kn&&(!document.documentMode||9<document.documentMode)}function Xn(){Ln&&(Ln.detachEvent("onpropertychange",Zn),Bn=Ln=null)}function Zn(e){if("value"===e.propertyName&&Wn(Bn)){var t=[];zn(t,Bn,e,Ut(e)),Vt(Vn,t)}}function Qn(e,t,n){"focusin"===e?(Xn(),Bn=n,(Ln=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Xn()}function er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Bn)}function tr(e,t){if("click"===e)return Wn(t)}function nr(e,t){if("input"===e||"change"===e)return Wn(t)}var rr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(rr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!G.call(t,o)||!rr(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sr(e){for(var t=ct((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ct((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var cr=Ht&&"documentMode"in document&&11>=document.documentMode,fr=null,dr=null,hr=null,mr=!1;function pr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==fr||fr!==ct(r)||(r="selectionStart"in(r=fr)&&ur(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&or(hr,r)||(hr=r,0<(r=Zc(dr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},br={},gr={};function wr(e){if(br[e])return br[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in gr)return br[e]=n[t];return e}Ht&&(gr=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var $r=wr("animationend"),kr=wr("animationiteration"),Sr=wr("animationstart"),Er=wr("transitionrun"),jr=wr("transitionstart"),Or=wr("transitioncancel"),xr=wr("transitionend"),_r=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){_r.set(e,t),We(t,[e])}Cr.push("scrollEnd");var Ir=new WeakMap;function Ar(e,t){if("object"==typeof e&&null!==e){var n=Ir.get(e);return void 0!==n?n:(t={value:e,source:t,stack:it(t)},Ir.set(e,t),t)}return{value:e,source:t,stack:it(t)}}var Fr=[],Mr=0,Pr=0;function Tr(){for(var e=Mr,t=Pr=Mr=0;t<e;){var n=Fr[t];Fr[t++]=null;var r=Fr[t];Fr[t++]=null;var o=Fr[t];Fr[t++]=null;var i=Fr[t];if(Fr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&qr(n,o,i)}}function Nr(e,t,n,r){Fr[Mr++]=e,Fr[Mr++]=t,Fr[Mr++]=n,Fr[Mr++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Rr(e,t,n,r){return Nr(e,t,n,r),zr(e)}function Ur(e,t){return Nr(e,null,null,t),zr(e)}function qr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function zr(e){if(50<qu)throw qu=0,zu=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Lr={};function Br(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(e,t,n,r){return new Br(e,t,n,r)}function Wr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hr(e,t){var n=e.alternate;return null===n?((n=Vr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Gr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,e.dependencies=null===(t=n.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kr(e,t,n,o,i,a){var l=0;if(o=e,"function"==typeof e)Wr(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,U.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case E:return(e=Vr(31,n,t,i)).elementType=E,e.lanes=a,e;case h:return Jr(n.children,i,a,t);case m:l=8,i|=24;break;case p:return(e=Vr(12,n,t,2|i)).elementType=p,e.lanes=a,e;case w:return(e=Vr(13,n,t,i)).elementType=w,e.lanes=a,e;case $:return(e=Vr(19,n,t,i)).elementType=$,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case b:l=10;break e;case y:l=9;break e;case g:l=11;break e;case k:l=14;break e;case S:l=16,o=null;break e}l=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Vr(l,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Jr(e,t,n,r){return(e=Vr(7,e,r,t)).lanes=n,e}function Yr(e,t,n){return(e=Vr(6,e,null,t)).lanes=n,e}function Xr(e,t,n){return(t=Vr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zr=[],Qr=0,eo=null,to=0,no=[],ro=0,oo=null,io=1,ao="";function lo(e,t){Zr[Qr++]=to,Zr[Qr++]=eo,eo=e,to=t}function so(e,t,n){no[ro++]=io,no[ro++]=ao,no[ro++]=oo,oo=e;var r=io;e=ao;var o=32-ce(r)-1;r&=~(1<<o),n+=1;var i=32-ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,io=1<<32-ce(t)+o|n<<o|r,ao=i+e}else io=1<<i|n<<o|r,ao=e}function uo(e){null!==e.return&&(lo(e,1),so(e,1,0))}function co(e){for(;e===eo;)eo=Zr[--Qr],Zr[Qr]=null,to=Zr[--Qr],Zr[Qr]=null;for(;e===oo;)oo=no[--ro],no[ro]=null,ao=no[--ro],no[ro]=null,io=no[--ro],no[ro]=null}var fo=null,ho=null,mo=!1,po=null,vo=!1,yo=Error(r(519));function bo(e){throw Eo(Ar(Error(r(418,"")),e)),yo}function go(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ce]=e,t[De]=r,n){case"dialog":Wc("cancel",t),Wc("close",t);break;case"iframe":case"object":case"embed":Wc("load",t);break;case"video":case"audio":for(n=0;n<Lc.length;n++)Wc(Lc[n],t);break;case"source":Wc("error",t);break;case"img":case"image":case"link":Wc("error",t),Wc("load",t);break;case"details":Wc("toggle",t);break;case"input":Wc("invalid",t),mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),st(t);break;case"select":Wc("invalid",t);break;case"textarea":Wc("invalid",t),bt(t,r.value,r.defaultValue,r.children),st(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||of(t.textContent,n)?(null!=r.popover&&(Wc("beforetoggle",t),Wc("toggle",t)),null!=r.onScroll&&Wc("scroll",t),null!=r.onScrollEnd&&Wc("scrollend",t),null!=r.onClick&&(t.onclick=af),t=!0):t=!1,t||bo(e)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 13:return void(vo=!1);case 27:case 3:return void(vo=!0);default:fo=fo.return}}function $o(e){if(e!==fo)return!1;if(!mo)return wo(e),mo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||pf(e.type,e.memoizedProps)),t=!t),t&&ho&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ho=Of(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ho=null}}else 27===n?(n=ho,kf(e.type)?(e=xf,xf=null,ho=e):ho=n):ho=fo?Of(e.stateNode.nextSibling):null;return!0}function ko(){ho=fo=null,mo=!1}function So(){var e=po;return null!==e&&(null===xu?xu=e:xu.push.apply(xu,e),po=null),e}function Eo(e){null===po?po=[e]:po.push(e)}var jo=T(null),Oo=null,xo=null;function _o(e,t,n){R(jo,t._currentValue),t._currentValue=n}function Co(e){e._currentValue=jo.current,N(jo)}function Do(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Io(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var l=i.child;a=a.firstContext;e:for(;null!==a;){var s=a;a=i;for(var u=0;u<t.length;u++)if(s.context===t[u]){a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Do(a.return,n,e),o||(l=null);break e}a=s.next}}else if(18===i.tag){if(null===(l=i.return))throw Error(r(341));l.lanes|=n,null!==(a=l.alternate)&&(a.lanes|=n),Do(l,n,e),l=null}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===e){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}}function Ao(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var l=i.alternate;if(null===l)throw Error(r(387));if(null!==(l=l.memoizedProps)){var s=i.type;rr(i.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(i===L.current){if(null===(l=i.alternate))throw Error(r(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(rd):e=[rd])}i=i.return}null!==e&&Io(t,e,n,o),t.flags|=262144}function Fo(e){for(e=e.firstContext;null!==e;){if(!rr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mo(e){Oo=e,xo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Po(e){return No(Oo,e)}function To(e,t){return null===Oo&&Mo(e),No(e,t)}function No(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xo){if(null===e)throw Error(r(308));xo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xo=xo.next=t;return n}var Ro="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Uo=e.unstable_scheduleCallback,qo=e.unstable_NormalPriority,zo={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lo(){return{controller:new Ro,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Uo(qo,(function(){e.controller.abort()}))}var Vo=null,Wo=0,Ho=0,Go=null;function Ko(){if(0==--Wo&&null!==Vo){null!==Go&&(Go.status="fulfilled");var e=Vo;Vo=null,Ho=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Jo=I.S;I.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Vo){var n=Vo=[];Wo=0,Ho=Nc(),Go={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wo++,t.then(Ko,Ko)}(0,t),null!==Jo&&Jo(e,t)};var Yo=T(null);function Xo(){var e=Yo.current;return null!==e?e:fu.pooledCache}function Zo(e,t){R(Yo,null===t?Yo.current:t.pool)}function Qo(){var e=Xo();return null===e?null:{parent:zo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(){}function ai(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ii,ii),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ui(e=t.reason),e;default:if("string"==typeof t.status)t.then(ii,ii);else{if(null!==(e=fu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ui(e=t.reason),e}throw li=t,ei}}var li=null;function si(){if(null===li)throw Error(r(459));var e=li;return li=null,e}function ui(e){if(e===ei||e===ni)throw Error(r(483))}var ci=!1;function fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function di(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&cu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=zr(e),qr(e,null,n),t}return Nr(e,r,t,n),zr(e)}function pi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,Ee(e,n)}}function vi(e,t){var n=e.updateQueue,r=e.alternate;if(null===r||n!==(r=r.updateQueue))null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t;else{var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;e.updateQueue=n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks}}}var yi=!1;function bi(){if(yi&&null!==Go)throw Go}function gi(e,t,n,r){yi=!1;var o=e.updateQueue;ci=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var f=e.alternate;null!==f&&(l=(f=f.updateQueue).lastBaseUpdate)!==a&&(null===l?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,f=c=s=null,l=i;;){var h=-536870913&l.lane,m=h!==l.lane;if(m?(hu&h)===h:(r&h)===h){0!==h&&h===Ho&&(yi=!0),null!==f&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var p=e,v=l;h=t;var y=n;switch(v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(y,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=v.payload)?p.call(y,d,h):p))break e;d=u({},d,h);break e;case 2:ci=!0}}null!==(h=l.callback)&&(e.flags|=64,m&&(e.flags|=8192),null===(m=o.callbacks)?o.callbacks=[h]:m.push(h))}else m={lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===f?(c=f=m,s=d):f=f.next=m,a|=h;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(m=l).next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}null===f&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,null===i&&(o.shared.lanes=0),$u|=a,e.lanes=a,e.memoizedState=d}}function wi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function $i(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)wi(n[e],t)}var ki=T(null),Si=T(0);function Ei(e,t){R(Si,e=gu),R(ki,t),gu=e|t.baseLanes}function ji(){R(Si,gu),R(ki,ki.current)}function Oi(){gu=Si.current,N(ki),N(Si)}var xi=0,_i=null,Ci=null,Di=null,Ii=!1,Ai=!1,Fi=!1,Mi=0,Pi=0,Ti=null,Ni=0;function Ri(){throw Error(r(321))}function Ui(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rr(e[n],t[n]))return!1;return!0}function qi(e,t,n,r,o,i){return xi=i,_i=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=null===e||null===e.memoizedState?el:tl,Fi=!1,i=n(r,o),Fi=!1,Ai&&(i=Li(t,n,r,o)),zi(e),i}function zi(e){I.H=Qa;var t=null!==Ci&&null!==Ci.next;if(xi=0,Di=Ci=_i=null,Ii=!1,Pi=0,Ti=null,t)throw Error(r(300));null===e||Pl||null!==(e=e.dependencies)&&Fo(e)&&(Pl=!0)}function Li(e,t,n,o){_i=e;var i=0;do{if(Ai&&(Ti=null),Pi=0,Ai=!1,25<=i)throw Error(r(301));if(i+=1,Di=Ci=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}I.H=nl,a=t(n,o)}while(Ai);return a}function Bi(){var e=I.H,t=e.useState()[0];return t="function"==typeof t.then?Ji(t):t,e=e.useState()[0],(null!==Ci?Ci.memoizedState:null)!==e&&(_i.flags|=1024),t}function Vi(){var e=0!==Mi;return Mi=0,e}function Wi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Hi(e){if(Ii){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ii=!1}xi=0,Di=Ci=_i=null,Ai=!1,Pi=Mi=0,Ti=null}function Gi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Di?_i.memoizedState=Di=e:Di=Di.next=e,Di}function Ki(){if(null===Ci){var e=_i.alternate;e=null!==e?e.memoizedState:null}else e=Ci.next;var t=null===Di?_i.memoizedState:Di.next;if(null!==t)Di=t,Ci=e;else{if(null===e){if(null===_i.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Ci=e).memoizedState,baseState:Ci.baseState,baseQueue:Ci.baseQueue,queue:Ci.queue,next:null},null===Di?_i.memoizedState=Di=e:Di=Di.next=e}return Di}function Ji(e){var t=Pi;return Pi+=1,null===Ti&&(Ti=[]),e=ai(Ti,e,t),t=_i,null===(null===Di?t.memoizedState:Di.next)&&(I.H=null===(t=t.alternate)||null===t.memoizedState?el:tl),e}function Yi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ji(e);if(e.$$typeof===b)return Po(e)}throw Error(r(438,String(e)))}function Xi(e){var t=null,n=_i.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=_i.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(_i.updateQueue=n={lastEffect:null,events:null,stores:null,memoCache:null}),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=j;return t.index++,n}function Zi(e,t){return"function"==typeof t?t(e):t}function Qi(e){return ea(Ki(),Ci,e)}function ea(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var s=l=null,u=null,c=t=i.next,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(hu&d)===d:(xi&d)===d){var h=c.revertLane;if(0===h)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Ho&&(f=!0);else{if((xi&h)===h){c=c.next,h===Ho&&(f=!0);continue}d={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=d,l=a):u=u.next=d,_i.lanes|=h,$u|=h}d=c.action,Fi&&n(a,d),a=c.hasEagerState?c.eagerState:n(a,d)}else h={lane:d,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=h,l=a):u=u.next=h,_i.lanes|=d,$u|=d;c=c.next}while(null!==c&&c!==t);if(null===u?l=a:u.next=s,!rr(a,e.memoizedState)&&(Pl=!0,f&&null!==(n=Go)))throw n;e.memoizedState=a,e.baseState=l,e.baseQueue=u,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ta(e){var t=Ki(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);rr(a,t.memoizedState)||(Pl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function na(e,t,n){var o=_i,i=Ki(),a=mo;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var l=!rr((Ci||i).memoizedState,n);if(l&&(i.memoizedState=n,Pl=!0),ja(2048,8,ia.bind(null,o,i=i.queue,e),[e]),i.getSnapshot!==t||l||null!==Di&&1&Di.memoizedState.tag){if(o.flags|=2048,ka(9,{destroy:void 0,resource:void 0},oa.bind(null,o,i,n,t),null),null===fu)throw Error(r(349));a||124&xi||ra(o,t,n)}return n}function ra(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=_i.updateQueue)?(_i.updateQueue=t={lastEffect:null,events:null,stores:null,memoCache:null},t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oa(e,t,n,r){t.value=n,t.getSnapshot=r,aa(t)&&la(e)}function ia(e,t,n){return n((function(){aa(t)&&la(e)}))}function aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(e){return!0}}function la(e){var t=Ur(e,2);null!==t&&Vu(t,0,2)}function sa(e){var t=Gi();if("function"==typeof e){var n=e;if(e=n(),Fi){ue(!0);try{n()}finally{ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:e},t}function ua(e,t,n,r){return e.baseState=n,ea(e,Ci,"function"==typeof r?r:Zi)}function ca(e,t,n,o,i){if(Ya(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==I.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,fa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function fa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=I.T,a={};I.T=a;try{var l=n(o,r),s=I.S;null!==s&&s(a,l),da(e,t,l)}catch(n){ma(e,t,n)}finally{I.T=i}}else try{da(e,t,i=n(o,r))}catch(n){ma(e,t,n)}}function da(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then((function(n){ha(e,t,n)}),(function(n){return ma(e,t,n)})):ha(e,t,n)}function ha(e,t,n){t.status="fulfilled",t.value=n,pa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(t.next=n=n.next,fa(e,n)))}function ma(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,pa(t),t=t.next}while(t!==r)}e.action=null}function pa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function va(e,t){return t}function ya(e,t){if(mo){var n=fu.formState;if(null!==n){e:{var r=_i;if(mo){if(ho){t:{for(var o=ho,i=vo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Of(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){ho=Of(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=Gi()).memoizedState=n.baseState=t,n.queue=r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:t},n=Ga.bind(null,_i,r),r.dispatch=n,r=sa(!1),i=Ja.bind(null,_i,!1,r.queue),(r=Gi()).queue=o={state:t,dispatch:null,action:e,pending:null},n=ca.bind(null,_i,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function ba(e){return ga(Ki(),Ci,e)}function ga(e,t,n){if(t=ea(e,t,va)[0],e=Qi(Zi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Ji(t)}catch(e){if(e===ei)throw ni;throw e}else r=t;var o=(t=Ki()).queue,i=o.dispatch;return n!==t.memoizedState&&(_i.flags|=2048,ka(9,{destroy:void 0,resource:void 0},wa.bind(null,o,n),null)),[r,i,e]}function wa(e,t){e.action=t}function $a(e){var t=Ki(),n=Ci;if(null!==n)return ga(t,n,e);Ki(),t=t.memoizedState;var r=(n=Ki()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ka(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=_i.updateQueue)&&(_i.updateQueue=t={lastEffect:null,events:null,stores:null,memoCache:null}),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Sa(){return Ki().memoizedState}function Ea(e,t,n,r){var o=Gi();r=void 0===r?null:r,_i.flags|=e,o.memoizedState=ka(1|t,{destroy:void 0,resource:void 0},n,r)}function ja(e,t,n,r){var o=Ki();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Ci&&null!==r&&Ui(r,Ci.memoizedState.deps)?o.memoizedState=ka(t,i,n,r):(_i.flags|=e,o.memoizedState=ka(1|t,i,n,r))}function Oa(e,t){Ea(8390656,8,e,t)}function xa(e,t){ja(2048,8,e,t)}function _a(e,t){return ja(4,2,e,t)}function Ca(e,t){return ja(4,4,e,t)}function Da(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ia(e,t,n){n=null!=n?n.concat([e]):null,ja(4,4,Da.bind(null,t,e),n)}function Aa(){}function Fa(e,t){var n=Ki(),r=n.memoizedState;return null!==(t=void 0===t?null:t)&&Ui(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ma(e,t){var n=Ki(),r=n.memoizedState;if(null!==(t=void 0===t?null:t)&&Ui(t,r[1]))return r[0];if(r=e(),Fi){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[r,t],r}function Pa(e,t,n){return void 0===n||1073741824&xi?e.memoizedState=t:(e.memoizedState=n,e=Bu(),_i.lanes|=e,$u|=e,n)}function Ta(e,t,n,r){return rr(n,t)?n:null!==ki.current?(e=Pa(e,n,r),rr(e,t)||(Pl=!0),e):42&xi?(e=Bu(),_i.lanes|=e,$u|=e,t):(Pl=!0,e.memoizedState=n)}function Na(e,t,n,r,o){var i=A.p;A.p=0!==i&&8>i?i:8;var a,l,s,u=I.T,c={};I.T=c,Ja(e,!1,t,n);try{var f=o(),d=I.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=(a=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},f.then((function(){s.status="fulfilled",s.value=a;for(var e=0;e<l.length;e++)(0,l[e])(a)}),(function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)})),s);Ka(e,t,h,Lu())}else Ka(e,t,r,Lu())}catch(n){Ka(e,t,{then:function(){},status:"rejected",reason:n},Lu())}finally{A.p=i,I.T=u}}function Ra(){}function Ua(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=qa(e).queue;Na(e,i,t,F,null===n?Ra:function(){return za(e),n(o)})}function qa(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:F},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function za(e){Ka(e,qa(e).next.queue,{},Lu())}function La(){return Po(rd)}function Ba(){return Ki().memoizedState}function Va(){return Ki().memoizedState}function Wa(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Lu(),r=mi(t,e=hi(n),n);return null!==r&&(Vu(r,0,n),pi(r,t,n)),t={cache:Lo()},void(e.payload=t)}t=t.return}}function Ha(e,t,n){var r=Lu();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e)?Xa(t,n):null!==(n=Rr(e,t,n,r))&&(Vu(n,0,r),Za(n,t,r))}function Ga(e,t,n){Ka(e,t,n,Lu())}function Ka(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,rr(l,a))return Nr(e,t,o,0),null===fu&&Tr(),!1}catch(e){}if(null!==(n=Rr(e,t,o,r)))return Vu(n,0,r),Za(n,t,r),!0}return!1}function Ja(e,t,n,o){if(o={lane:2,revertLane:Nc(),action:o,hasEagerState:!1,eagerState:null,next:null},Ya(e)){if(t)throw Error(r(479))}else null!==(t=Rr(e,n,o,2))&&Vu(t,0,2)}function Ya(e){var t=e.alternate;return e===_i||null!==t&&t===_i}function Xa(e,t){Ai=Ii=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(4194048&n){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,Ee(e,n)}}var Qa={readContext:Po,use:Yi,useCallback:Ri,useContext:Ri,useEffect:Ri,useImperativeHandle:Ri,useLayoutEffect:Ri,useInsertionEffect:Ri,useMemo:Ri,useReducer:Ri,useRef:Ri,useState:Ri,useDebugValue:Ri,useDeferredValue:Ri,useTransition:Ri,useSyncExternalStore:Ri,useId:Ri,useHostTransitionStatus:Ri,useFormState:Ri,useActionState:Ri,useOptimistic:Ri,useMemoCache:Ri,useCacheRefresh:Ri},el={readContext:Po,use:Yi,useCallback:function(e,t){return Gi().memoizedState=[e,void 0===t?null:t],e},useContext:Po,useEffect:Oa,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ea(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ea(4194308,4,e,t)},useInsertionEffect:function(e,t){Ea(4,2,e,t)},useMemo:function(e,t){var n=Gi();t=void 0===t?null:t;var r=e();if(Fi){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Gi();if(void 0!==n){var o=n(t);if(Fi){ue(!0);try{n(t)}finally{ue(!1)}}}else o=t;return r.memoizedState=r.baseState=o,r.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},e=e.dispatch=Ha.bind(null,_i,e),[r.memoizedState,e]},useRef:function(e){return Gi().memoizedState={current:e}},useState:function(e){var t=(e=sa(e)).queue,n=Ga.bind(null,_i,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Aa,useDeferredValue:function(e,t){return Pa(Gi(),e,t)},useTransition:function(){var e=sa(!1);return e=Na.bind(null,_i,e.queue,!0,!1),Gi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=_i,i=Gi();if(mo){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===fu)throw Error(r(349));124&hu||ra(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Oa(ia.bind(null,o,a,e),[e]),o.flags|=2048,ka(9,{destroy:void 0,resource:void 0},oa.bind(null,o,a,n,t),null),n},useId:function(){var e=Gi(),t=fu.identifierPrefix;if(mo){var n=ao;t="«"+t+"R"+(n=(io&~(1<<32-ce(io)-1)).toString(32)+n),0<(n=Mi++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ni++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:La,useFormState:ya,useActionState:ya,useOptimistic:function(e){var t=Gi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ja.bind(null,_i,!0,n),n.dispatch=t,[e,t]},useMemoCache:Xi,useCacheRefresh:function(){return Gi().memoizedState=Wa.bind(null,_i)}},tl={readContext:Po,use:Yi,useCallback:Fa,useContext:Po,useEffect:xa,useImperativeHandle:Ia,useInsertionEffect:_a,useLayoutEffect:Ca,useMemo:Ma,useReducer:Qi,useRef:Sa,useState:function(){return Qi(Zi)},useDebugValue:Aa,useDeferredValue:function(e,t){return Ta(Ki(),Ci.memoizedState,e,t)},useTransition:function(){var e=Qi(Zi)[0],t=Ki().memoizedState;return["boolean"==typeof e?e:Ji(e),t]},useSyncExternalStore:na,useId:Ba,useHostTransitionStatus:La,useFormState:ba,useActionState:ba,useOptimistic:function(e,t){return ua(Ki(),0,e,t)},useMemoCache:Xi,useCacheRefresh:Va},nl={readContext:Po,use:Yi,useCallback:Fa,useContext:Po,useEffect:xa,useImperativeHandle:Ia,useInsertionEffect:_a,useLayoutEffect:Ca,useMemo:Ma,useReducer:ta,useRef:Sa,useState:function(){return ta(Zi)},useDebugValue:Aa,useDeferredValue:function(e,t){var n=Ki();return null===Ci?Pa(n,e,t):Ta(n,Ci.memoizedState,e,t)},useTransition:function(){var e=ta(Zi)[0],t=Ki().memoizedState;return["boolean"==typeof e?e:Ji(e),t]},useSyncExternalStore:na,useId:Ba,useHostTransitionStatus:La,useFormState:$a,useActionState:$a,useOptimistic:function(e,t){var n=Ki();return null!==Ci?ua(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Xi,useCacheRefresh:Va},rl=null,ol=0;function il(e){var t=ol;return ol+=1,null===rl&&(rl=[]),ai(rl,e,t)}function al(e,t){e.ref=void 0!==(t=t.props.ref)?t:null}function ll(e,t){if(t.$$typeof===c)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sl(e){return(0,e._init)(e._payload)}function ul(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)t.set(null!==e.key?e.key:e.index,e),e=e.sibling;return t}function i(e,t){return(e=Hr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Yr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===h?m(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===S&&sl(o)===t.type)?(al(t=i(t,n.props),n),t.return=e,t):(al(t=Kr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function m(e,t,n,r,o){return null===t||7!==t.tag?((t=Jr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Yr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return al(n=Kr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case d:return(t=Xr(t,e.mode,n)).return=e,t;case S:return p(e,t=(0,t._init)(t._payload),n)}if(D(t)||x(t))return(t=Jr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,il(t),n);if(t.$$typeof===b)return p(e,To(e,t),n);ll(e,t)}return null}function v(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?u(e,t,n,r):null;case d:return n.key===o?c(e,t,n,r):null;case S:return v(e,t,n=(o=n._init)(n._payload),r)}if(D(n)||x(n))return null!==o?null:m(e,t,n,r,null);if("function"==typeof n.then)return v(e,t,il(n),r);if(n.$$typeof===b)return v(e,t,To(e,n),r);ll(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case d:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return y(e,t,n,r=(0,r._init)(r._payload),o)}if(D(r)||x(r))return m(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,il(r),o);if(r.$$typeof===b)return y(e,t,n,To(t,r),o);ll(t,r)}return null}function g(s,u,c,m){if("object"==typeof c&&null!==c&&c.type===h&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case f:e:{for(var w=c.key;null!==u;){if(u.key===w){if((w=c.type)===h){if(7===u.tag){n(s,u.sibling),(m=i(u,c.props.children)).return=s,s=m;break e}}else if(u.elementType===w||"object"==typeof w&&null!==w&&w.$$typeof===S&&sl(w)===u.type){n(s,u.sibling),al(m=i(u,c.props),c),m.return=s,s=m;break e}n(s,u);break}t(s,u),u=u.sibling}c.type===h?((m=Jr(c.props.children,s.mode,m,c.key)).return=s,s=m):(al(m=Kr(c.type,c.key,c.props,null,s.mode,m),c),m.return=s,s=m)}return l(s);case d:e:{for(w=c.key;null!==u;){if(u.key===w){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(s,u.sibling),(m=i(u,c.children||[])).return=s,s=m;break e}n(s,u);break}t(s,u),u=u.sibling}(m=Xr(c,s.mode,m)).return=s,s=m}return l(s);case S:return g(s,u,c=(w=c._init)(c._payload),m)}if(D(c))return function(r,i,l,s){for(var u=null,c=null,f=i,d=i=0,h=null;null!==f&&d<l.length;d++){f.index>d?(h=f,f=null):h=f.sibling;var m=v(r,f,l[d],s);if(null===m){null===f&&(f=h);break}e&&f&&null===m.alternate&&t(r,f),i=a(m,i,d),null===c?u=m:c.sibling=m,c=m,f=h}if(d===l.length)return n(r,f),mo&&lo(r,d),u;if(null===f){for(;d<l.length;d++)null!==(f=p(r,l[d],s))&&(i=a(f,i,d),null===c?u=f:c.sibling=f,c=f);return mo&&lo(r,d),u}for(f=o(f);d<l.length;d++)null!==(h=y(f,r,d,l[d],s))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),i=a(h,i,d),null===c?u=h:c.sibling=h,c=h);return e&&f.forEach((function(e){return t(r,e)})),mo&&lo(r,d),u}(s,u,c,m);if(x(c)){if("function"!=typeof(w=x(c)))throw Error(r(150));return function(i,l,s,u){if(null==s)throw Error(r(151));for(var c=null,f=null,d=l,h=l=0,m=null,b=s.next();null!==d&&!b.done;h++,b=s.next()){d.index>h?(m=d,d=null):m=d.sibling;var g=v(i,d,b.value,u);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),l=a(g,l,h),null===f?c=g:f.sibling=g,f=g,d=m}if(b.done)return n(i,d),mo&&lo(i,h),c;if(null===d){for(;!b.done;h++,b=s.next())null!==(b=p(i,b.value,u))&&(l=a(b,l,h),null===f?c=b:f.sibling=b,f=b);return mo&&lo(i,h),c}for(d=o(d);!b.done;h++,b=s.next())null!==(b=y(d,i,h,b.value,u))&&(e&&null!==b.alternate&&d.delete(null===b.key?h:b.key),l=a(b,l,h),null===f?c=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(i,e)})),mo&&lo(i,h),c}(s,u,c=w.call(c),m)}if("function"==typeof c.then)return g(s,u,il(c),m);if(c.$$typeof===b)return g(s,u,To(s,c),m);ll(s,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(m=i(u,c)).return=s,s=m):(n(s,u),(m=Yr(c,s.mode,m)).return=s,s=m),l(s)):n(s,u)}return function(e,t,n,r){try{ol=0;var o=g(e,t,n,r);return rl=null,o}catch(t){if(t===ei||t===ni)throw t;var i=Vr(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var cl=ul(!0),fl=ul(!1),dl=T(null),hl=null;function ml(e){var t=e.alternate;R(bl,1&bl.current),R(dl,e),null===hl&&(null===t||null!==ki.current||null!==t.memoizedState)&&(hl=e)}function pl(e){if(22===e.tag){if(R(bl,bl.current),R(dl,e),null===hl){var t=e.alternate;null!==t&&null!==t.memoizedState&&(hl=e)}}else vl()}function vl(){R(bl,bl.current),R(dl,dl.current)}function yl(e){N(dl),hl===e&&(hl=null),N(bl)}var bl=T(0);function gl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||jf(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function wl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $l={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Lu(),o=hi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=mi(e,o,r))&&(Vu(t,0,r),pi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Lu(),o=hi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=mi(e,o,r))&&(Vu(t,0,r),pi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lu(),r=hi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=mi(e,r,n))&&(Vu(t,0,n),pi(t,e,n))}};function kl(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&or(n,r)&&or(o,i))}function Sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$l.enqueueReplaceState(t,t.state,null)}function El(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var jl="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Ol(e){jl(e)}function xl(e){console.error(e)}function _l(e){jl(e)}function Cl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout((function(){throw e}))}}function Dl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function Il(e,t,n){return(n=hi(n)).tag=3,n.payload={element:null},n.callback=function(){Cl(e,t)},n}function Al(e){return(e=hi(e)).tag=3,e}function Fl(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Dl(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Dl(t,n,r),"function"!=typeof o&&(null===Au?Au=new Set([this]):Au.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ml=Error(r(461)),Pl=!1;function Tl(e,t,n,r){t.child=null===e?fl(t,null,n,r):cl(t,e.child,n,r)}function Nl(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var l in r)"ref"!==l&&(a[l]=r[l])}else a=r;return Mo(t),r=qi(e,t,n,a,i,o),l=Vi(),null===e||Pl?(mo&&l&&uo(t),t.flags|=1,Tl(e,t,r,o),t.child):(Wi(e,t,o),rs(e,t,o))}function Rl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Wr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Kr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ul(e,t,i,r,o))}return i=e.child,!os(e,o)&&(n=null!==(n=n.compare)?n:or)(i.memoizedProps,r)&&e.ref===t.ref?rs(e,t,o):(t.flags|=1,(e=Hr(i,r)).ref=t.ref,e.return=t,t.child=e)}function Ul(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(Pl=!1,t.pendingProps=r=i,!os(e,o))return t.lanes=e.lanes,rs(e,t,o);131072&e.flags&&(Pl=!0)}}return Bl(e,t,n,r,o)}function ql(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return zl(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,zl(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Zo(0,null!==i?i.cachePool:null),null!==i?Ei(t,i):ji(),pl(t)}else null!==i?(Zo(0,i.cachePool),Ei(t,i),vl(),t.memoizedState=null):(null!==e&&Zo(0,null),ji(),vl());return Tl(e,t,o,n),t.child}function zl(e,t,n,r){var o=Xo();return t.memoizedState={baseLanes:n,cachePool:o=null===o?null:{parent:zo._currentValue,pool:o}},null!==e&&Zo(0,null),ji(),pl(t),null!==e&&Ao(e,t,r,!0),null}function Ll(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Bl(e,t,n,r,o){return Mo(t),n=qi(e,t,n,r,void 0,o),r=Vi(),null===e||Pl?(mo&&r&&uo(t),t.flags|=1,Tl(e,t,n,o),t.child):(Wi(e,t,o),rs(e,t,o))}function Vl(e,t,n,r,o,i){return Mo(t),t.updateQueue=null,n=Li(t,r,n,o),zi(e),r=Vi(),null===e||Pl?(mo&&r&&uo(t),t.flags|=1,Tl(e,t,n,i),t.child):(Wi(e,t,i),rs(e,t,i))}function Wl(e,t,n,r,o){if(Mo(t),null===t.stateNode){var i=Lr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Po(a)),i=new n(r,i),t.memoizedState=null!=i.state?i.state:null,i.updater=$l,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},fi(t),i.context="object"==typeof(a=n.contextType)&&null!==a?Po(a):Lr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(wl(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&$l.enqueueReplaceState(i,i.state,null),gi(t,r,i,o),bi(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,s=El(n,l);i.props=s;var u=i.context,c=n.contextType;a=Lr,"object"==typeof c&&null!==c&&(a=Po(c));var f=n.getDerivedStateFromProps;l=t.pendingProps!==l,(c="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l||u!==a)&&Sl(t,i,r,a),ci=!1;var d=t.memoizedState;i.state=d,gi(t,r,i,o),bi(),u=t.memoizedState,l||d!==u||ci?("function"==typeof f&&(wl(t,n,f,r),u=t.memoizedState),(s=ci||kl(t,n,s,r,d,u,a))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,di(e,t),c=El(n,a=t.memoizedProps),i.props=c,f=t.pendingProps,d=i.context,s=Lr,"object"==typeof(u=n.contextType)&&null!==u&&(s=Po(u)),(u="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==f||d!==s)&&Sl(t,i,r,s),ci=!1,i.state=d=t.memoizedState,gi(t,r,i,o),bi();var h=t.memoizedState;a!==f||d!==h||ci||null!==e&&null!==e.dependencies&&Fo(e.dependencies)?("function"==typeof l&&(wl(t,n,l,r),h=t.memoizedState),(c=ci||kl(t,n,c,r,d,h,s)||null!==e&&null!==e.dependencies&&Fo(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Ll(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=cl(t,e.child,null,o),t.child=cl(t,null,n,o)):Tl(e,t,n,o),t.memoizedState=i.state,e=t.child):e=rs(e,t,o),e}function Hl(e,t,n,r){return ko(),t.flags|=256,Tl(e,t,n,r),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kl(e){return{baseLanes:e,cachePool:Qo()}}function Jl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Eu),e}function Yl(e,t,n){var o,i=t.pendingProps,a=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&bl.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(mo){if(a?ml(t):vl(),mo){var s,u=ho;if(s=u){e:{for(s=u,u=vo;8!==s.nodeType;){if(!u){u=null;break e}if(null===(s=Of(s.nextSibling))){u=null;break e}}u=s}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==oo?{id:io,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},(s=Vr(18,null,null,0)).stateNode=u,s.return=t,t.child=s,fo=t,ho=null,s=!0):s=!1}s||bo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return t.lanes=jf(u)?32:536870912,null;yl(t)}return u=i.children,i=i.fallback,a?(vl(),u=Zl({mode:"hidden",children:u},a=t.mode),i=Jr(i,a,n,null),u.return=t,i.return=t,u.sibling=i,t.child=u,(a=t.child).memoizedState=Kl(n),a.childLanes=Jl(e,o,n),t.memoizedState=Gl,i):(ml(t),Xl(t,u))}if(null!==(s=e.memoizedState)&&null!==(u=s.dehydrated)){if(l)256&t.flags?(ml(t),t.flags&=-257,t=Ql(e,t,n)):null!==t.memoizedState?(vl(),t.child=e.child,t.flags|=128,t=null):(vl(),a=i.fallback,i=Zl({mode:"visible",children:i.children},u=t.mode),(a=Jr(a,u,n,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,cl(t,e.child,null,n),(i=t.child).memoizedState=Kl(n),i.childLanes=Jl(e,o,n),t.memoizedState=Gl,t=a);else if(ml(t),jf(u)){if(o=u.nextSibling&&u.nextSibling.dataset)var c=o.dgst;o=c,(i=Error(r(419))).stack="",i.digest=o,Eo({value:i,source:null,stack:null}),t=Ql(e,t,n)}else if(Pl||Ao(e,t,n,!1),o=!!(n&e.childLanes),Pl||o){if(null!==(o=fu)&&0!==(i=(i=42&(i=n&-n)?1:je(i))&(o.suspendedLanes|n)?0:i)&&i!==s.retryLane)throw s.retryLane=i,Ur(e,i),Vu(o,0,i),Ml;"$?"===u.data||tc(),t=Ql(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,ho=Of(u.nextSibling),fo=t,mo=!0,po=null,vo=!1,null!==e&&(no[ro++]=io,no[ro++]=ao,no[ro++]=oo,io=e.id,ao=e.overflow,oo=t),(t=Xl(t,i.children)).flags|=4096);return t}return a?(vl(),a=i.fallback,u=t.mode,c=(s=e.child).sibling,(i=Hr(s,{mode:"hidden",children:i.children})).subtreeFlags=65011712&s.subtreeFlags,null!==c?a=Hr(c,a):(a=Jr(a,u,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,null===(u=e.child.memoizedState)?u=Kl(n):(s=null!==(s=u.cachePool)?s.parent!==(c=zo._currentValue)?{parent:c,pool:c}:s:Qo(),u={baseLanes:u.baseLanes|n,cachePool:s}),a.memoizedState=u,a.childLanes=Jl(e,o,n),t.memoizedState=Gl,i):(ml(t),e=(n=e.child).sibling,(n=Hr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Xl(e,t){return(t=Zl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zl(e,t){return(e=Vr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ql(e,t,n){return cl(t,e.child,null,n),(e=Xl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function es(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Do(e.return,t,n)}function ts(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ns(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Tl(e,t,r.children,n),2&(r=bl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n,t);else if(19===e.tag)es(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(R(bl,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===gl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ts(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===gl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ts(t,!0,n,null,i);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),$u|=t.lanes,!(n&t.childLanes)){if(null===e)return null;if(Ao(e,t,n,!1),!(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Hr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Hr(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function os(e,t){return!!(e.lanes&t)||!(null===(e=e.dependencies)||!Fo(e))}function is(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Pl=!0;else{if(!(os(e,n)||128&t.flags))return Pl=!1,function(e,t,n){switch(t.tag){case 3:B(t,t.stateNode.containerInfo),_o(0,zo,e.memoizedState.cache),ko();break;case 27:case 5:W(t);break;case 4:B(t,t.stateNode.containerInfo);break;case 10:_o(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ml(t),t.flags|=128,null):n&t.child.childLanes?Yl(e,t,n):(ml(t),null!==(e=rs(e,t,n))?e.sibling:null);ml(t);break;case 19:var o=!!(128&e.flags);if((r=!!(n&t.childLanes))||(Ao(e,t,n,!1),r=!!(n&t.childLanes)),o){if(r)return ns(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),R(bl,bl.current),r)break;return null;case 22:case 23:return t.lanes=0,ql(e,t,n);case 24:_o(0,zo,e.memoizedState.cache)}return rs(e,t,n)}(e,t,n);Pl=!!(131072&e.flags)}else Pl=!1,mo&&1048576&t.flags&&so(t,to,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,i=o._init;if(o=i(o._payload),t.type=o,"function"!=typeof o){if(null!=o){if((i=o.$$typeof)===g){t.tag=11,t=Nl(null,t,o,e,n);break e}if(i===k){t.tag=14,t=Rl(null,t,o,e,n);break e}}throw t=C(o)||o,Error(r(306,t,""))}Wr(o)?(e=El(o,e),t.tag=1,t=Wl(null,t,o,e,n)):(t.tag=0,t=Bl(null,t,o,e,n))}return t;case 0:return Bl(e,t,t.type,t.pendingProps,n);case 1:return Wl(e,t,o=t.type,i=El(o,t.pendingProps),n);case 3:e:{if(B(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,di(e,t),gi(t,o,null,n);var l=t.memoizedState;if(_o(0,zo,o=l.cache),o!==a.cache&&Io(t,[zo],n,!0),bi(),o=l.element,a.isDehydrated){if(t.updateQueue.baseState=a={element:o,isDehydrated:!1,cache:l.cache},t.memoizedState=a,256&t.flags){t=Hl(e,t,o,n);break e}if(o!==i){Eo(i=Ar(Error(r(424)),t)),t=Hl(e,t,o,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ho=Of(e.firstChild),fo=t,mo=!0,po=null,vo=!0,n=fl(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ko(),o===i){t=rs(e,t,n);break e}Tl(e,t,o,n)}t=t.child}return t;case 26:return Ll(e,t),null===e?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:mo||(n=t.type,e=t.pendingProps,(o=df(z.current).createElement(n))[Ce]=t,o[De]=e,uf(o,n,e),Le(o),t.stateNode=o):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return W(t),null===e&&mo&&(o=t.stateNode=Cf(t.type,t.pendingProps,z.current),fo=t,vo=!0,i=ho,kf(t.type)?(xf=i,ho=Of(o.firstChild)):ho=i),Tl(e,t,t.pendingProps.children,n),Ll(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&mo&&((i=o=ho)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Te])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Of(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,vo))?(t.stateNode=o,fo=t,ho=Of(o.firstChild),vo=!1,i=!0):i=!1),i||bo(t)),W(t),l=null!==e?e.memoizedProps:null,o=(a=t.pendingProps).children,pf(i=t.type,a)?o=null:null!==l&&pf(i,l)&&(t.flags|=32),null!==t.memoizedState&&(i=qi(e,t,Bi,null,null,n),rd._currentValue=i),Ll(e,t),Tl(e,t,o,n),t.child;case 6:return null===e&&mo&&((e=n=ho)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Of(e.nextSibling)))return null}return e}(n,t.pendingProps,vo))?(t.stateNode=n,fo=t,ho=null,e=!0):e=!1),e||bo(t)),null;case 13:return Yl(e,t,n);case 4:return B(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=cl(t,null,o,n):Tl(e,t,o,n),t.child;case 11:return Nl(e,t,t.type,t.pendingProps,n);case 7:return Tl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Tl(e,t,t.pendingProps.children,n),t.child;case 10:return _o(0,t.type,(o=t.pendingProps).value),Tl(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Mo(t),o=o(i=Po(i)),t.flags|=1,Tl(e,t,o,n),t.child;case 14:return Rl(e,t,t.type,t.pendingProps,n);case 15:return Ul(e,t,t.type,t.pendingProps,n);case 19:return ns(e,t,n);case 31:return n=t.mode,o={mode:(o=t.pendingProps).mode,children:o.children},null===e?((n=Zl(o,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Hr(e.child,o)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return ql(e,t,n);case 24:return Mo(t),o=Po(zo),null===e?(null===(i=Xo())&&(i=fu,a=Lo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},fi(t),_o(0,zo,i)):(!!(e.lanes&n)&&(di(e,t),gi(t,null,null,n),bi()),a=t.memoizedState,(i=e.memoizedState).parent!==o?(t.memoizedState=i={parent:o,cache:o},0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),_o(0,zo,o)):(_o(0,zo,o=a.cache),o!==i.cache&&Io(t,[zo],n,!0))),Tl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function as(e){e.flags|=4}function ls(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Yf(t)){if(null!==(t=dl.current)&&((4194048&hu)===hu?null!==hl:(62914560&hu)!==hu&&!(536870912&hu)||t!==hl))throw li=ri,ti;e.flags|=8192}}function ss(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?we():536870912,e.lanes|=t,ju|=t)}function us(e,t){if(!mo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function cs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fs(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return cs(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Co(zo),V(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||($o(t)?as(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,So())),cs(t),null;case 26:return n=t.memoizedState,null===e?(as(t),null!==n?(cs(t),ls(t,n)):(cs(t),t.flags&=-16777217)):n?n!==e.memoizedState?(as(t),cs(t),ls(t,n)):(cs(t),t.flags&=-16777217):(e.memoizedProps!==o&&as(t),cs(t),t.flags&=-16777217),null;case 27:H(t),n=z.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==o&&as(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return cs(t),null}e=U.current,$o(t)?go(t):(e=Cf(i,o,n),t.stateNode=e,as(t))}return cs(t),null;case 5:if(H(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&as(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return cs(t),null}if(e=U.current,$o(t))go(t);else{switch(i=df(z.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof o.is?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e="string"==typeof o.is?i.createElement(n,{is:o.is}):i.createElement(n)}}e[Ce]=t,e[De]=o;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(uf(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&as(t)}}return cs(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&as(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=z.current,$o(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Ce]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||of(e.nodeValue,n)))||bo(t)}else(e=df(e).createTextNode(o))[Ce]=t,t.stateNode=e}return cs(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=$o(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Ce]=t}else ko(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;cs(t),i=!1}else i=So(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(yl(t),t):(yl(t),null)}if(yl(t),128&t.flags)return t.lanes=n,t;if(e=null!==e&&null!==e.memoizedState,n=null!==o){i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool);var a=null;null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ss(t,t.updateQueue),cs(t),null;case 4:return V(),null===e&&Kc(t.stateNode.containerInfo),cs(t),null;case 10:return Co(t.type),cs(t),null;case 19:if(N(bl),null===(i=t.memoizedState))return cs(t),null;if(o=!!(128&t.flags),null===(a=i.rendering))if(o)us(i,!1);else{if(0!==wu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=gl(e))){for(t.flags|=128,us(i,!1),t.updateQueue=e=a.updateQueue,ss(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Gr(n,e),n=n.sibling;return R(bl,1&bl.current|2),t.child}e=e.sibling}null!==i.tail&&Z()>Du&&(t.flags|=128,o=!0,us(i,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=gl(a))){if(t.flags|=128,o=!0,t.updateQueue=e=e.updateQueue,ss(t,e),us(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!mo)return cs(t),null}else 2*Z()-i.renderingStartTime>Du&&536870912!==n&&(t.flags|=128,o=!0,us(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=i.last)?e.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(i.rendering=t=i.tail,i.tail=t.sibling,i.renderingStartTime=Z(),t.sibling=null,e=bl.current,R(bl,o?1&e|2:1&e),t):(cs(t),null);case 22:case 23:return yl(t),Oi(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(cs(t),6&t.subtreeFlags&&(t.flags|=8192)):cs(t),null!==(n=t.updateQueue)&&ss(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&N(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Co(zo),cs(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ds(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Co(zo),V(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return H(t),null;case 13:if(yl(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ko()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return N(bl),null;case 4:return V(),null;case 10:return Co(t.type),null;case 22:case 23:return yl(t),Oi(),null!==e&&N(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Co(zo),null;default:return null}}function hs(e,t){switch(co(t),t.tag){case 3:Co(zo),V();break;case 26:case 27:case 5:H(t);break;case 4:V();break;case 13:yl(t);break;case 19:N(bl);break;case 10:Co(t.type);break;case 22:case 23:yl(t),Oi(),null!==e&&N(Yo);break;case 24:Co(zo)}}function ms(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.inst;r=(0,n.create)(),i.destroy=r}n=n.next}while(n!==o)}}catch(e){bc(t,t.return,e)}}function ps(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(void 0!==l){a.destroy=void 0,o=t;var s=n,u=l;try{u()}catch(e){bc(o,s,e)}}}r=r.next}while(r!==i)}}catch(e){bc(t,t.return,e)}}function vs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{$i(t,n)}catch(t){bc(e,e.return,t)}}}function ys(e,t,n){n.props=El(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){bc(e,t,n)}}function bs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){bc(e,t,n)}}function gs(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){bc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){bc(e,t,n)}else n.current=null}function ws(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){bc(e,e.return,t)}}function $s(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,l=null,s=null,u=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":u=d;default:o.hasOwnProperty(m)||lf(e,t,m,null,o,d)}}for(var h in o){var m=o[h];if(d=n[h],o.hasOwnProperty(h)&&(null!=m||null!=d))switch(h){case"type":a=m;break;case"name":i=m;break;case"checked":c=m;break;case"defaultChecked":f=m;break;case"value":l=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(r(137,t));break;default:m!==d&&lf(e,t,h,m,o,d)}}return void ht(e,l,s,u,c,f,a,i);case"select":for(a in m=l=s=h=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":m=u;default:o.hasOwnProperty(a)||lf(e,t,a,null,o,u)}for(i in o)if(a=o[i],u=n[i],o.hasOwnProperty(i)&&(null!=a||null!=u))switch(i){case"value":h=a;break;case"defaultValue":s=a;break;case"multiple":l=a;default:a!==u&&lf(e,t,i,a,o,u)}return t=s,n=l,o=m,void(null!=h?vt(e,!!n,h,!1):!!o!=!!n&&(null!=t?vt(e,!!n,t,!0):vt(e,!!n,n?[]:"",!1)));case"textarea":for(s in m=h=null,n)if(i=n[s],n.hasOwnProperty(s)&&null!=i&&!o.hasOwnProperty(s))switch(s){case"value":case"children":break;default:lf(e,t,s,null,o,i)}for(l in o)if(i=o[l],a=n[l],o.hasOwnProperty(l)&&(null!=i||null!=a))switch(l){case"value":h=i;break;case"defaultValue":m=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&lf(e,t,l,i,o,a)}return void yt(e,h,m);case"option":for(var p in n)h=n[p],n.hasOwnProperty(p)&&null!=h&&!o.hasOwnProperty(p)&&("selected"===p?e.selected=!1:lf(e,t,p,null,o,h));for(u in o)h=o[u],m=n[u],!o.hasOwnProperty(u)||h===m||null==h&&null==m||("selected"===u?e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h:lf(e,t,u,h,o,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!o.hasOwnProperty(v)&&lf(e,t,v,null,o,h);for(c in o)if(h=o[c],m=n[c],o.hasOwnProperty(c)&&h!==m&&(null!=h||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:lf(e,t,c,h,o,m)}return;default:if(Ot(t)){for(var y in n)h=n[y],n.hasOwnProperty(y)&&void 0!==h&&!o.hasOwnProperty(y)&&sf(e,t,y,void 0,o,h);for(f in o)h=o[f],m=n[f],!o.hasOwnProperty(f)||h===m||void 0===h&&void 0===m||sf(e,t,f,h,o,m);return}}for(var b in n)h=n[b],n.hasOwnProperty(b)&&null!=h&&!o.hasOwnProperty(b)&&lf(e,t,b,null,o,h);for(d in o)h=o[d],m=n[d],!o.hasOwnProperty(d)||h===m||null==h&&null==m||lf(e,t,d,h,o,m)}(o,e.type,n,t),o[De]=t}catch(t){bc(e,e.return,t)}}function ks(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&kf(e.type)||4===e.tag}function Ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ks(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&kf(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=af));else if(4!==r&&(27===r&&kf(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function js(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&kf(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(js(e,t,n),e=e.sibling;null!==e;)js(e,t,n),e=e.sibling}function Os(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);uf(t,r,n),t[Ce]=e,t[De]=n}catch(t){bc(e,e.return,t)}}var xs=!1,_s=!1,Cs=!1,Ds="function"==typeof WeakSet?WeakSet:Set,Is=null;function As(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ws(e,n),4&r&&ms(5,n);break;case 1:if(Ws(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){bc(n,n.return,e)}else{var o=El(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bc(n,n.return,e)}}64&r&&vs(n),512&r&&bs(n,n.return);break;case 3:if(Ws(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{$i(e,t)}catch(e){bc(n,n.return,e)}}break;case 27:null===t&&4&r&&Os(n);case 26:case 5:Ws(e,n),null===t&&4&r&&ws(n),512&r&&bs(n,n.return);break;case 12:Ws(e,n);break;case 13:Ws(e,n),4&r&&Rs(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=kc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||xs)){o=xs;var i=_s;xs=r,(_s=t=null!==t&&null!==t.memoizedState||_s)&&!i?Gs(e,n,!!(8772&n.subtreeFlags)):Ws(e,n),xs=o,_s=i}break;case 30:break;default:Ws(e,n)}}function Fs(e){var t=e.alternate;null!==t&&(e.alternate=null,Fs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ne(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ms=null,Ps=!1;function Ts(e,t,n){for(n=n.child;null!==n;)Ns(e,t,n),n=n.sibling}function Ns(e,t,n){if(se&&"function"==typeof se.onCommitFiberUnmount)try{se.onCommitFiberUnmount(le,n)}catch(e){}switch(n.tag){case 26:_s||gs(n,t),Ts(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:_s||gs(n,t);var r=Ms,o=Ps;kf(n.type)&&(Ms=n.stateNode,Ps=!1),Ts(e,t,n),Df(n.stateNode),Ms=r,Ps=o;break;case 5:_s||gs(n,t);case 6:if(r=Ms,o=Ps,Ms=null,Ts(e,t,n),Ps=o,null!==(Ms=r))if(Ps)try{(9===Ms.nodeType?Ms.body:"HTML"===Ms.nodeName?Ms.ownerDocument.body:Ms).removeChild(n.stateNode)}catch(e){bc(n,t,e)}else try{Ms.removeChild(n.stateNode)}catch(e){bc(n,t,e)}break;case 18:null!==Ms&&(Ps?(Sf(9===(e=Ms).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Td(e)):Sf(Ms,n.stateNode));break;case 4:r=Ms,o=Ps,Ms=n.stateNode.containerInfo,Ps=!0,Ts(e,t,n),Ms=r,Ps=o;break;case 0:case 11:case 14:case 15:_s||ps(2,n,t),_s||ps(4,n,t),Ts(e,t,n);break;case 1:_s||(gs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ys(n,t,r)),Ts(e,t,n);break;case 21:Ts(e,t,n);break;case 22:_s=(r=_s)||null!==n.memoizedState,Ts(e,t,n),_s=r;break;default:Ts(e,t,n)}}function Rs(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Td(e)}catch(e){bc(t,t.return,e)}}function Us(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ds),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ds),t;default:throw Error(r(435,e.tag))}}(e);t.forEach((function(t){var r=Sc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function qs(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(kf(s.type)){Ms=s.stateNode,Ps=!1;break e}break;case 5:Ms=s.stateNode,Ps=!1;break e;case 3:case 4:Ms=s.stateNode.containerInfo,Ps=!0;break e}s=s.return}if(null===Ms)throw Error(r(160));Ns(a,l,i),Ms=null,Ps=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ls(t,e),t=t.sibling}var zs=null;function Ls(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qs(t,e),Bs(e),4&o&&(ps(3,e,e.return),ms(3,e),ps(5,e,e.return));break;case 1:qs(t,e),Bs(e),512&o&&(_s||null===n||gs(n,n.return)),64&o&&xs&&null!==(e=e.updateQueue)&&null!==(o=e.callbacks)&&(e.shared.hiddenCallbacks=null===(n=e.shared.hiddenCallbacks)?o:n.concat(o));break;case 26:var i=zs;if(qs(t,e),Bs(e),512&o&&(_s||null===n||gs(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o=e.type){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Te]||a[Ce]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),uf(a,o,n),a[Ce]=e,Le(a),o=a;break e;case"link":var l=Kf("link","href",i).get(o+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((a=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}uf(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(l=Kf("meta","content",i).get(o+(n.content||"")))for(s=0;s<l.length;s++)if((a=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}uf(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Ce]=e,Le(a),o=a}e.stateNode=o}else Jf(i,e.type,e.stateNode);else e.stateNode=Bf(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?Jf(i,e.type,e.stateNode):Bf(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&$s(e,e.memoizedProps,n.memoizedProps)}break;case 27:qs(t,e),Bs(e),512&o&&(_s||null===n||gs(n,n.return)),null!==n&&4&o&&$s(e,e.memoizedProps,n.memoizedProps);break;case 5:if(qs(t,e),Bs(e),512&o&&(_s||null===n||gs(n,n.return)),32&e.flags){i=e.stateNode;try{gt(i,"")}catch(t){bc(e,e.return,t)}}4&o&&null!=e.stateNode&&$s(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Cs=!0);break;case 6:if(qs(t,e),Bs(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){bc(e,e.return,t)}}break;case 3:if(Gf=null,i=zs,zs=Ff(t.containerInfo),qs(t,e),zs=i,Bs(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Td(t.containerInfo)}catch(t){bc(e,e.return,t)}Cs&&(Cs=!1,Vs(e));break;case 4:o=zs,zs=Ff(e.stateNode.containerInfo),qs(t,e),Bs(e),zs=o;break;case 12:default:qs(t,e),Bs(e);break;case 13:qs(t,e),Bs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Cu=Z()),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,Us(e,o));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=xs,f=_s;if(xs=c||i,_s=f||u,qs(t,e),_s=f,xs=c,Bs(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||xs||_s||Hs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(a=u.stateNode,i)"function"==typeof(l=a.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=u.stateNode;var d=u.memoizedProps.style,h=null!=d&&d.hasOwnProperty("display")?d.display:null;s.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(e){bc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(e){bc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&null!==(o=e.updateQueue)&&null!==(n=o.retryQueue)&&(o.retryQueue=null,Us(e,n));break;case 19:qs(t,e),Bs(e),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,Us(e,o));case 30:case 21:}}function Bs(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(ks(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;js(e,Ss(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(gt(a,""),n.flags&=-33),js(e,Ss(e),a);break;case 3:case 4:var l=n.stateNode.containerInfo;Es(e,Ss(e),l);break;default:throw Error(r(161))}}catch(t){bc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Vs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Vs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ws(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)As(e,t.alternate,t),t=t.sibling}function Hs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ps(4,t,t.return),Hs(t);break;case 1:gs(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ys(t,t.return,n),Hs(t);break;case 27:Df(t.stateNode);case 26:case 5:gs(t,t.return),Hs(t);break;case 22:null===t.memoizedState&&Hs(t);break;default:Hs(t)}e=e.sibling}}function Gs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Gs(o,i,n),ms(4,i);break;case 1:if(Gs(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){bc(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var l=r.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)wi(s[o],l)}catch(e){bc(r,r.return,e)}}n&&64&a&&vs(i),bs(i,i.return);break;case 27:Os(i);case 26:case 5:Gs(o,i,n),n&&null===r&&4&a&&ws(i),bs(i,i.return);break;case 12:Gs(o,i,n);break;case 13:Gs(o,i,n),n&&4&a&&Rs(o,i);break;case 22:null===i.memoizedState&&Gs(o,i,n),bs(i,i.return);break;case 30:break;default:Gs(o,i,n)}t=t.sibling}}function Ks(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function Js(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function Ys(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Xs(e,t,n,r),t=t.sibling}function Xs(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ys(e,t,n,r),2048&o&&ms(9,t);break;case 1:case 13:default:Ys(e,t,n,r);break;case 3:Ys(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){Ys(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,l=i.onPostCommit;"function"==typeof l&&l(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){bc(t,t.return,e)}}else Ys(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?Ys(e,t,n,r):Qs(e,t):2&i._visibility?Ys(e,t,n,r):(i._visibility|=2,Zs(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Ks(a,t);break;case 24:Ys(e,t,n,r),2048&o&&Js(t.alternate,t)}}function Zs(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,a=t,l=n,s=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:Zs(i,a,l,s,o),ms(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?Zs(i,a,l,s,o):Qs(i,a):(c._visibility|=2,Zs(i,a,l,s,o)),o&&2048&u&&Ks(a.alternate,a);break;case 24:Zs(i,a,l,s,o),o&&2048&u&&Js(a.alternate,a);break;default:Zs(i,a,l,s,o)}t=t.sibling}}function Qs(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Qs(n,r),2048&o&&Ks(r.alternate,r);break;case 24:Qs(n,r),2048&o&&Js(r.alternate,r);break;default:Qs(n,r)}t=t.sibling}}var eu=8192;function tu(e){if(e.subtreeFlags&eu)for(e=e.child;null!==e;)nu(e),e=e.sibling}function nu(e){switch(e.tag){case 26:tu(e),e.flags&eu&&null!==e.memoizedState&&function(e,t,n){if(null===Xf)throw Error(r(475));var o=Xf;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=Rf(n.href),a=e.querySelector(Uf(i));if(a)return null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(o.count++,o=Qf.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=a,void Le(a);a=e.ownerDocument||e,n=qf(n),(i=If.get(i))&&Wf(n,i),Le(a=a.createElement("link"));var l=a;l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),uf(a,"link",n),t.instance=a}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(o.count++,t=Qf.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}(zs,e.memoizedState,e.memoizedProps);break;case 5:default:tu(e);break;case 3:case 4:var t=zs;zs=Ff(e.stateNode.containerInfo),tu(e),zs=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=eu,eu=16777216,tu(e),eu=t):tu(e))}}function ru(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function ou(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Is=r,lu(r,e)}ru(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)iu(e),e=e.sibling}function iu(e){switch(e.tag){case 0:case 11:case 15:ou(e),2048&e.flags&&ps(9,e,e.return);break;case 3:case 12:default:ou(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,au(e)):ou(e)}}function au(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Is=r,lu(r,e)}ru(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ps(8,t,t.return),au(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function lu(e,t){for(;null!==Is;){var n=Is;switch(n.tag){case 0:case 11:case 15:ps(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Is=r;else e:for(n=e;null!==Is;){var o=(r=Is).sibling,i=r.return;if(Fs(r),r===n){Is=null;break e}if(null!==o){o.return=i,Is=o;break e}Is=i}}}var su={getCacheForType:function(e){var t=Po(zo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},uu="function"==typeof WeakMap?WeakMap:Map,cu=0,fu=null,du=null,hu=0,mu=0,pu=null,vu=!1,yu=!1,bu=!1,gu=0,wu=0,$u=0,ku=0,Su=0,Eu=0,ju=0,Ou=null,xu=null,_u=!1,Cu=0,Du=1/0,Iu=null,Au=null,Fu=0,Mu=null,Pu=null,Tu=0,Nu=0,Ru=null,Uu=null,qu=0,zu=null;function Lu(){return 2&cu&&0!==hu?hu&-hu:null!==I.T?0!==Ho?Ho:Nc():xe()}function Bu(){0===Eu&&(Eu=536870912&hu&&!mo?536870912:ge());var e=dl.current;return null!==e&&(e.flags|=32),Eu}function Vu(e,t,n){(e!==fu||2!==mu&&9!==mu)&&null===e.cancelPendingCommit||(Xu(e,0),Ku(e,hu,Eu,!1)),ke(e,n),2&cu&&e===fu||(e===fu&&(!(2&cu)&&(ku|=n),4===wu&&Ku(e,hu,Eu,!1)),Dc(e))}function Wu(e,t,n){if(6&cu)throw Error(r(327));for(var o=!n&&!(124&t)&&!(t&e.expiredLanes)||ye(e,t),i=o?function(e,t){var n=cu;cu|=2;var o=Qu(),i=ec();fu!==e||hu!==t?(Iu=null,Du=Z()+500,Xu(e,t)):yu=ye(e,t);e:for(;;)try{if(0!==mu&&null!==du){t=du;var a=pu;t:switch(mu){case 1:mu=0,pu=null,lc(e,t,a,1);break;case 2:case 9:if(oi(a)){mu=0,pu=null,ac(t);break}a.then(t=function(){2!==mu&&9!==mu||fu!==e||(mu=7),Dc(e)},t);break e;case 3:mu=7;break e;case 4:mu=5;break e;case 7:oi(a)?(mu=0,pu=null,ac(t)):(mu=0,pu=null,lc(e,t,a,7));break;case 5:var l=null;switch(du.tag){case 26:l=du.memoizedState;case 5:case 27:var s=du;if(!l||Yf(l)){mu=0,pu=null;var u=s.sibling;if(null!==u)du=u;else{var c=s.return;null!==c?(du=c,sc(c)):du=null}break t}}mu=0,pu=null,lc(e,t,a,5);break;case 6:mu=0,pu=null,lc(e,t,a,6);break;case 8:Yu(),wu=6;break e;default:throw Error(r(462))}}oc();break}catch(t){Zu(e,t)}return xo=Oo=null,I.H=o,I.A=i,cu=n,null!==du?0:(fu=null,hu=0,Tr(),wu)}(e,t):nc(e,t,!0),a=o;;){if(0===i){yu&&!o&&Ku(e,t,0,!1);break}if(n=e.current.alternate,!a||Gu(n)){if(2===i){if(e.errorRecoveryDisabledLanes&(a=t))var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;i=Ou;var u=s.current.memoizedState.isDehydrated;if(u&&(Xu(s,l).flags|=256),2!==(l=nc(s,l,!1))){if(bu&&!u){s.errorRecoveryDisabledLanes|=a,ku|=a,i=4;break e}a=xu,xu=i,null!==a&&(null===xu?xu=a:xu.push.apply(xu,a))}i=l}if(a=!1,2!==i)continue}}if(1===i){Xu(e,0),Ku(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Ku(o,t,Eu,!vu);break e;case 2:xu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Cu+300-Z())){if(Ku(o,t,Eu,!vu),0!==ve(o,0,!0))break e;o.timeoutHandle=yf(Hu.bind(null,o,n,xu,Iu,_u,t,Eu,ku,ju,vu,a,2,-0,0),i)}else Hu(o,n,xu,Iu,_u,t,Eu,ku,ju,vu,a,0,-0,0)}break}i=nc(e,t,!1),a=!1}Dc(e)}function Hu(e,t,n,o,i,a,l,s,u,c,f,d,h,m){if(e.timeoutHandle=-1,(8192&(d=t.subtreeFlags)||!(16785408&~d))&&(Xf={stylesheets:null,count:0,unsuspend:Zf},nu(t),null!==(d=function(){if(null===Xf)throw Error(r(475));var e=Xf;return e.stylesheets&&0===e.count&&td(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&td(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=d(cc.bind(null,e,t,a,n,o,i,l,s,u,f,1,h,m)),void Ku(e,a,l,!c);cc(e,t,a,n,o,i,l,s,u)}function Gu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!rr(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ku(e,t,n,r){t&=~Su,e.suspendedLanes|=t&=~ku,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Se(e,n,t)}function Ju(){return!!(6&cu)||(Ic(0),!1)}function Yu(){if(null!==du){if(0===mu)var e=du.return;else xo=Oo=null,Hi(e=du),rl=null,ol=0,e=du;for(;null!==e;)hs(e.alternate,e),e=e.return;du=null}}function Xu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,bf(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Yu(),fu=e,du=n=Hr(e.current,null),hu=t,mu=0,pu=null,vu=!1,yu=ye(e,t),bu=!1,ju=Eu=Su=ku=$u=wu=0,xu=Ou=null,_u=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-ce(r);t|=e[o],r&=~(1<<o)}return gu=t,Tr(),n}function Zu(e,t){_i=null,I.H=Qa,t===ei||t===ni?(t=si(),mu=3):t===ti?(t=si(),mu=4):mu=t===Ml?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,pu=t,null===du&&(wu=1,Cl(e,Ar(t,e.current)))}function Qu(){var e=I.H;return I.H=Qa,null===e?Qa:e}function ec(){var e=I.A;return I.A=su,e}function tc(){wu=4,vu||(4194048&hu)!==hu&&null!==dl.current||(yu=!0),!(134217727&$u)&&!(134217727&ku)||null===fu||Ku(fu,hu,Eu,!1)}function nc(e,t,n){var r=cu;cu|=2;var o=Qu(),i=ec();fu===e&&hu===t||(Iu=null,Xu(e,t)),t=!1;var a=wu;e:for(;;)try{if(0!==mu&&null!==du){var l=du,s=pu;switch(mu){case 8:Yu(),a=6;break e;case 3:case 2:case 9:case 6:null===dl.current&&(t=!0);var u=mu;if(mu=0,pu=null,lc(e,l,s,u),n&&yu){a=0;break e}break;default:u=mu,mu=0,pu=null,lc(e,l,s,u)}}rc(),a=wu;break}catch(t){Zu(e,t)}return t&&e.shellSuspendCounter++,xo=Oo=null,cu=r,I.H=o,I.A=i,null===du&&(fu=null,hu=0,Tr()),a}function rc(){for(;null!==du;)ic(du)}function oc(){for(;null!==du&&!Y();)ic(du)}function ic(e){var t=is(e.alternate,e,gu);e.memoizedProps=e.pendingProps,null===t?sc(e):du=t}function ac(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vl(n,t,t.pendingProps,t.type,void 0,hu);break;case 11:t=Vl(n,t,t.pendingProps,t.type.render,t.ref,hu);break;case 5:Hi(t);default:hs(n,t),t=is(n,t=du=Gr(t,gu),gu)}e.memoizedProps=e.pendingProps,null===t?sc(e):du=t}function lc(e,t,n,o){xo=Oo=null,Hi(t),rl=null,ol=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Ao(t,n,i,!0),null!==(n=dl.current)){switch(n.tag){case 13:return null===hl?tc():null===n.alternate&&0===wu&&(wu=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),gc(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),gc(e,o,i)),!1}throw Error(r(435,n.tag))}return gc(e,o,i),tc(),!1}if(mo)return null!==(t=dl.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&Eo(Ar(e=Error(r(422),{cause:o}),n))):(o!==yo&&Eo(Ar(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,e.lanes|=i&=-i,o=Ar(o,n),vi(e,i=Il(e.stateNode,o,i)),4!==wu&&(wu=2)),!1;var a=Error(r(520),{cause:o});if(a=Ar(a,n),null===Ou?Ou=[a]:Ou.push(a),4!==wu&&(wu=2),null===t)return!0;o=Ar(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,n.lanes|=e=i&-i,vi(n,e=Il(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Au&&Au.has(a))))return n.flags|=65536,n.lanes|=i&=-i,Fl(i=Al(i),e,n,o),vi(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,hu))return wu=1,Cl(e,Ar(n,e.current)),void(du=null)}catch(t){if(null!==i)throw du=i,t;return wu=1,Cl(e,Ar(n,e.current)),void(du=null)}32768&t.flags?(mo||1===o?e=!0:yu||536870912&hu?e=!1:(vu=e=!0,(2===o||9===o||3===o||6===o)&&null!==(o=dl.current)&&13===o.tag&&(o.flags|=16384)),uc(t,e)):sc(t)}function sc(e){var t=e;do{if(32768&t.flags)return void uc(t,vu);e=t.return;var n=fs(t.alternate,t,gu);if(null!==n)return void(du=n);if(null!==(t=t.sibling))return void(du=t);du=t=e}while(null!==t);0===wu&&(wu=5)}function uc(e,t){do{var n=ds(e.alternate,e);if(null!==n)return n.flags&=32767,void(du=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(du=e);du=e=n}while(null!==e);wu=6,du=null}function cc(e,t,n,o,i,a,l,s,u){e.cancelPendingCommit=null;do{pc()}while(0!==Fu);if(6&cu)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-ce(n),f=1<<c;l[c]=0,s[c]=-1;var d=u[c];if(null!==d)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];null!==h&&(h.lane&=-536870913)}n&=~f}0!==r&&Se(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Pr,l,s,u),e===fu&&(du=fu=null,hu=0),Pu=t,Mu=e,Tu=n,Nu=a,Ru=i,Uu=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,K(ne,(function(){return vc(),null}))):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=I.T,I.T=null,i=A.p,A.p=2,l=cu,cu|=4;try{!function(e,t){if(cf=fd,ur(e=sr(e=e.containerInfo))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;var l=0,s=-1,u=-1,c=0,f=0,d=e,h=null;e:for(;;){for(var m;d!==n||0!==i&&3!==d.nodeType||(s=l+i),d!==a||0!==o&&3!==d.nodeType||(u=l+o),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)h=d,d=m;for(;;){if(d===e)break e;if(h===n&&++c===i&&(s=l),h===a&&++f===o&&(u=l),null!==(m=d.nextSibling))break;h=(d=h).parentNode}d=m}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ff={focusedElem:e,selectionRange:n},fd=!1,Is=t;null!==Is;)if(e=(t=Is).child,1024&t.subtreeFlags&&null!==e)e.return=t,Is=e;else for(;null!==Is;){switch(a=(t=Is).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,i=a.memoizedProps,a=a.memoizedState,o=(n=t).stateNode;try{var p=El(n.type,i);e=o.getSnapshotBeforeUpdate(p,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){bc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ef(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ef(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Is=e;break}Is=t.return}}(e,t)}finally{cu=l,A.p=i,I.T=o}}Fu=1,fc(),dc(),hc()}}function fc(){if(1===Fu){Fu=0;var e=Mu,t=Pu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=I.T,I.T=null;var r=A.p;A.p=2;var o=cu;cu|=4;try{Ls(t,e);var i=ff,a=sr(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(a!==l&&l&&l.ownerDocument&&lr(l.ownerDocument.documentElement,l)){if(null!==s&&ur(l)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var f=l.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),m=l.textContent.length,p=Math.min(s.start,m),v=void 0===s.end?p:Math.min(s.end,m);!h.extend&&p>v&&(a=v,v=p,p=a);var y=ar(l,p),b=ar(l,v);if(y&&b&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var g=f.createRange();g.setStart(y.node,y.offset),h.removeAllRanges(),p>v?(h.addRange(g),h.extend(b.node,b.offset)):(g.setEnd(b.node,b.offset),h.addRange(g))}}}}for(f=[],h=l;h=h.parentNode;)1===h.nodeType&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<f.length;l++){var w=f[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}fd=!!cf,ff=cf=null}finally{cu=o,A.p=r,I.T=n}}e.current=t,Fu=2}}function dc(){if(2===Fu){Fu=0;var e=Mu,t=Pu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=I.T,I.T=null;var r=A.p;A.p=2;var o=cu;cu|=4;try{As(e,t.alternate,t)}finally{cu=o,A.p=r,I.T=n}}Fu=3}}function hc(){if(4===Fu||3===Fu){Fu=0,X();var e=Mu,t=Pu,n=Tu,r=Uu;10256&t.subtreeFlags||10256&t.flags?Fu=5:(Fu=0,Pu=Mu=null,mc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Au=null),Oe(n),t=t.stateNode,se&&"function"==typeof se.onCommitFiberRoot)try{se.onCommitFiberRoot(le,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=I.T,o=A.p,A.p=2,I.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];i(l.value,{componentStack:l.stack})}}finally{I.T=t,A.p=o}}3&Tu&&pc(),Dc(e),o=e.pendingLanes,4194090&n&&42&o?e===zu?qu++:(qu=0,zu=e):qu=0,Ic(0)}}function mc(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t))}function pc(){return fc(),dc(),hc(),vc()}function vc(){if(5!==Fu)return!1;var e=Mu,t=Nu;Nu=0;var n=Oe(Tu),o=I.T,i=A.p;try{A.p=32>n?32:n,I.T=null,n=Ru,Ru=null;var a=Mu,l=Tu;if(Fu=0,Pu=Mu=null,Tu=0,6&cu)throw Error(r(331));var s=cu;if(cu|=4,iu(a.current),Xs(a,a.current,l,n),cu=s,Ic(0),se&&"function"==typeof se.onPostCommitFiberRoot)try{se.onPostCommitFiberRoot(le,a)}catch(e){}return!0}finally{A.p=i,I.T=o,mc(e,t)}}function yc(e,t,n){t=Ar(n,t),null!==(e=mi(e,t=Il(e.stateNode,t,2),2))&&(ke(e,2),Dc(e))}function bc(e,t,n){if(3===e.tag)yc(e,e,n);else for(;null!==t;){if(3===t.tag){yc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Au||!Au.has(r))){e=Ar(n,e),null!==(r=mi(t,n=Al(2),2))&&(Fl(n,r,t,e),ke(r,2),Dc(r));break}}t=t.return}}function gc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new uu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(bu=!0,o.add(n),e=wc.bind(null,e,t,n),t.then(e,e))}function wc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,fu===e&&(hu&n)===n&&(4===wu||3===wu&&(62914560&hu)===hu&&300>Z()-Cu?!(2&cu)&&Xu(e,0):Su|=n,ju===hu&&(ju=0)),Dc(e)}function $c(e,t){0===t&&(t=we()),null!==(e=Ur(e,t))&&(ke(e,t),Dc(e))}function kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$c(e,n)}function Sc(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),$c(e,n)}var Ec=null,jc=null,Oc=!1,xc=!1,_c=!1,Cc=0;function Dc(e){e!==jc&&null===e.next&&(null===jc?Ec=jc=e:jc=jc.next=e),xc=!0,Oc||(Oc=!0,wf((function(){6&cu?K(ee,Ac):Fc()})))}function Ic(e){if(!_c&&xc){_c=!0;do{for(var t=!1,n=Ec;null!==n;){if(0!==e){var r=n.pendingLanes;if(0===r)var o=0;else{var i=n.suspendedLanes,a=n.pingedLanes;o=(1<<31-ce(42|e)+1)-1,o=201326741&(o&=r&~(i&~a))?201326741&o|1:o?2|o:0}0!==o&&(t=!0,Tc(n,o))}else o=hu,!(3&(o=ve(n,n===fu?o:0,null!==n.cancelPendingCommit||-1!==n.timeoutHandle)))||ye(n,o)||(t=!0,Tc(n,o));n=n.next}}while(t);_c=!1}}function Ac(){Fc()}function Fc(){xc=Oc=!1;var e,t=0;0!==Cc&&(((e=window.event)&&"popstate"===e.type?e!==vf&&(vf=e,!0):(vf=null,!1))&&(t=Cc),Cc=0);for(var n=Z(),r=null,o=Ec;null!==o;){var i=o.next,a=Mc(o,n);0===a?(o.next=null,null===r?Ec=i:r.next=i,null===i&&(jc=r)):(r=o,(0!==t||3&a)&&(xc=!0)),o=i}Ic(t)}function Mc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-ce(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=be(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(n=hu,n=ve(e,e===(t=fu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===mu||9===mu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&J(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||ye(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&J(r),Oe(n)){case 2:case 8:n=te;break;case 32:default:n=ne;break;case 268435456:n=oe}return r=Pc.bind(null,e),n=K(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&J(r),e.callbackPriority=2,e.callbackNode=null,2}function Pc(e,t){if(0!==Fu&&5!==Fu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pc()&&e.callbackNode!==n)return null;var r=hu;return 0===(r=ve(e,e===fu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Wu(e,r,t),Mc(e,Z()),null!=e.callbackNode&&e.callbackNode===n?Pc.bind(null,e):null)}function Tc(e,t){if(pc())return null;Wu(e,t,!0)}function Nc(){return 0===Cc&&(Cc=ge()),Cc}function Rc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Uc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var qc=0;qc<Cr.length;qc++){var zc=Cr[qc];Dr(zc.toLowerCase(),"on"+(zc[0].toUpperCase()+zc.slice(1)))}Dr($r,"onAnimationEnd"),Dr(kr,"onAnimationIteration"),Dr(Sr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Er,"onTransitionRun"),Dr(jr,"onTransitionStart"),Dr(Or,"onTransitionCancel"),Dr(xr,"onTransitionEnd"),He("onMouseEnter",["mouseout","mouseover"]),He("onMouseLeave",["mouseout","mouseover"]),He("onPointerEnter",["pointerout","pointerover"]),He("onPointerLeave",["pointerout","pointerover"]),We("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),We("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),We("onBeforeInput",["compositionend","keypress","textInput","paste"]),We("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lc));function Vc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=u;try{i(o)}catch(e){jl(e)}o.currentTarget=null,i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=u;try{i(o)}catch(e){jl(e)}o.currentTarget=null,i=s}}}}function Wc(e,t){var n=t[Ae];void 0===n&&(n=t[Ae]=new Set);var r=e+"__bubble";n.has(r)||(Jc(t,e,2,!1),n.add(r))}function Hc(e,t,n){var r=0;t&&(r|=4),Jc(n,e,r,t)}var Gc="_reactListening"+Math.random().toString(36).slice(2);function Kc(e){if(!e[Gc]){e[Gc]=!0,Be.forEach((function(t){"selectionchange"!==t&&(Bc.has(t)||Hc(t,!1,e),Hc(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Gc]||(t[Gc]=!0,Hc("selectionchange",!1,t))}}function Jc(e,t,n,r){switch(bd(t)){case 2:var o=dd;break;case 8:o=hd;break;default:o=md}n=o.bind(null,t,n,e),o=void 0,!Gt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),e.addEventListener(t,n,r?void 0===o||{capture:!0,passive:o}:void 0!==o&&{passive:o})}function Yc(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var s=r.stateNode.containerInfo;if(s===o)break;if(4===l)for(l=r.return;null!==l;){var u=l.tag;if((3===u||4===u)&&l.stateNode.containerInfo===o)return;l=l.return}for(;null!==s;){if(null===(l=Re(s)))return;if(5===(u=l.tag)||6===u||26===u||27===u){r=a=l;continue e}s=s.parentNode}}r=r.return}Vt((function(){var r=a,o=Ut(n),l=[];e:{var s=_r.get(e);if(void 0!==s){var u=sn,c=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":u=Sn;break;case"focusin":c="focus",u=mn;break;case"focusout":c="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=jn;break;case $r:case kr:case Sr:u=pn;break;case xr:u=On;break;case"scroll":case"scrollend":u=cn;break;case"wheel":u=xn;break;case"copy":case"cut":case"paste":u=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En;break;case"toggle":case"beforetoggle":u=_n}var f=!!(4&t),d=!f&&("scroll"===e||"scrollend"===e),h=f?null!==s?s+"Capture":null:s;f=[];for(var m,p=r;null!==p;){var v=p;if(m=v.stateNode,5!==(v=v.tag)&&26!==v&&27!==v||null===m||null===h||null!=(v=Wt(p,h))&&f.push(Xc(p,v,m)),d)break;p=p.return}0<f.length&&(s=new u(s,c,null,n,o),l.push({event:s,listeners:f}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Rt||!(c=n.relatedTarget||n.fromElement)||!Re(c)&&!c[Ie])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Re(c):null)&&(d=i(c),f=c.tag,c!==d||5!==f&&27!==f&&6!==f)&&(c=null)):(u=null,c=r),u!==c)){if(f=dn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(f=En,v="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==u?s:qe(u),m=null==c?s:qe(c),(s=new f(v,p+"leave",u,n,o)).target=d,s.relatedTarget=m,v=null,Re(o)===r&&((f=new f(h,p+"enter",c,n,o)).target=m,f.relatedTarget=d,v=f),d=v,u&&c)e:{for(h=c,p=0,m=f=u;m;m=Qc(m))p++;for(m=0,v=h;v;v=Qc(v))m++;for(;0<p-m;)f=Qc(f),p--;for(;0<m-p;)h=Qc(h),m--;for(;p--;){if(f===h||null!==h&&f===h.alternate)break e;f=Qc(f),h=Qc(h)}f=null}else f=null;null!==u&&ef(l,s,u,f,!1),null!==c&&null!==d&&ef(l,d,c,f,!0)}if("select"===(u=(s=r?qe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var y=Hn;else if(qn(s))if(Gn)y=nr;else{y=er;var b=Qn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Ot(r.elementType)&&(y=Hn):y=tr;switch(y&&(y=y(e,r))?zn(l,y,n,o):(b&&b(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&pt(s,"number",s.value)),b=r?qe(r):window,e){case"focusin":(qn(b)||"true"===b.contentEditable)&&(fr=b,dr=r,hr=null);break;case"focusout":hr=dr=fr=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,pr(l,n,o);break;case"selectionchange":if(cr)break;case"keydown":case"keyup":pr(l,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Rn?Tn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Fn&&"ko"!==n.locale&&(Rn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Rn&&(g=Zt()):(Yt="value"in(Jt=o)?Jt.value:Jt.textContent,Rn=!0)),0<(b=Zc(r,w)).length&&(w=new yn(w,e,null,n,o),l.push({event:w,listeners:b}),(g||null!==(g=Nn(n)))&&(w.data=g))),(g=An?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Rn)return"compositionend"===e||!Dn&&Tn(e,t)?(e=Zt(),Xt=Yt=Jt=null,Rn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(w=Zc(r,"onBeforeInput")).length&&(b=new yn("onBeforeInput","beforeinput",null,n,o),l.push({event:b,listeners:w}),b.data=g),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Rc((o[De]||null).action),a=r.submitter;a&&null!==(t=(t=a[De]||null)?Rc(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var l=new sn("action","action",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Cc){var e=a?Uc(o,a):new FormData(o);Ua(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(l.preventDefault(),e=a?Uc(o,a):new FormData(o),Ua(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(l,e,r,n,o)}Vc(l,t)}))}function Xc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Wt(e,n))&&r.unshift(Xc(e,o,i)),null!=(o=Wt(e,t))&&r.push(Xc(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Qc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function ef(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===u||(s=u,o?null!=(u=Wt(n,i))&&a.unshift(Xc(n,u,s)):o||null!=(u=Wt(n,i))&&a.push(Xc(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var tf=/\r\n?/g,nf=/\u0000|\uFFFD/g;function rf(e){return("string"==typeof e?e:""+e).replace(tf,"\n").replace(nf,"")}function of(e,t){return t=rf(t),rf(e)===t}function af(){}function lf(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||gt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&gt(e,""+o);break;case"className":Qe(e,"class",o);break;case"tabIndex":Qe(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Qe(e,n,o);break;case"style":kt(e,o,a);break;case"data":if("object"!==t){Qe(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Pt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&lf(e,t,"name",i.name,i,null),lf(e,t,"formEncType",i.formEncType,i,null),lf(e,t,"formMethod",i.formMethod,i,null),lf(e,t,"formTarget",i.formTarget,i,null)):(lf(e,t,"encType",i.encType,i,null),lf(e,t,"method",i.method,i,null),lf(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Pt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=af);break;case"onScroll":null!=o&&Wc("scroll",e);break;case"onScrollEnd":null!=o&&Wc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Pt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Wc("beforetoggle",e),Wc("toggle",e),Ze(e,"popover",o);break;case"xlinkActuate":et(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":et(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":et(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":et(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":et(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":et(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":et(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":et(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":et(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ze(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&Ze(e,n=xt.get(n)||n,o)}}function sf(e,t,n,o,i,a){switch(n){case"style":kt(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?gt(e,o):("number"==typeof o||"bigint"==typeof o)&&gt(e,""+o);break;case"onScroll":null!=o&&Wc("scroll",e);break;case"onScrollEnd":null!=o&&Wc("scrollend",e);break;case"onClick":null!=o&&(e.onclick=af);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ve.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[De]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):Ze(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function uf(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wc("error",e),Wc("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(null!=l)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:lf(e,t,o,l,n,null)}}return a&&lf(e,t,"srcSet",n.srcSet,n,null),void(i&&lf(e,t,"src",n.src,n,null));case"input":Wc("invalid",e);var s=o=l=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(null!=f)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:lf(e,t,i,f,n,null)}}return mt(e,o,s,u,c,l,a,!1),void st(e);case"select":for(a in Wc("invalid",e),i=l=o=null,n)if(n.hasOwnProperty(a)&&null!=(s=n[a]))switch(a){case"value":o=s;break;case"defaultValue":l=s;break;case"multiple":i=s;default:lf(e,t,a,s,n,null)}return t=o,n=l,e.multiple=!!i,void(null!=t?vt(e,!!i,t,!1):null!=n&&vt(e,!!i,n,!0));case"textarea":for(l in Wc("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":i=s;break;case"defaultValue":a=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:lf(e,t,l,s,n,null)}return bt(e,i,a,o),void st(e);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:lf(e,t,u,i,n,null));return;case"dialog":Wc("beforetoggle",e),Wc("toggle",e),Wc("cancel",e),Wc("close",e);break;case"iframe":case"object":Wc("load",e);break;case"video":case"audio":for(i=0;i<Lc.length;i++)Wc(Lc[i],e);break;case"image":Wc("error",e),Wc("load",e);break;case"details":Wc("toggle",e);break;case"embed":case"source":case"link":Wc("error",e),Wc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:lf(e,t,c,i,n,null)}return;default:if(Ot(t)){for(f in n)n.hasOwnProperty(f)&&void 0!==(i=n[f])&&sf(e,t,f,i,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(i=n[s])&&lf(e,t,s,i,n,null)}var cf=null,ff=null;function df(e){return 9===e.nodeType?e:e.ownerDocument}function hf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mf(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function pf(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vf=null,yf="function"==typeof setTimeout?setTimeout:void 0,bf="function"==typeof clearTimeout?clearTimeout:void 0,gf="function"==typeof Promise?Promise:void 0,wf="function"==typeof queueMicrotask?queueMicrotask:void 0!==gf?function(e){return gf.resolve(null).then(e).catch($f)}:yf;function $f(e){setTimeout((function(){throw e}))}function kf(e){return"head"===e}function Sf(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0<r&&8>r){var a=e.ownerDocument;if(1&(n=r)&&Df(a.documentElement),2&n&&Df(a.body),4&n)for(Df(n=a.head),a=n.firstChild;a;){var l=a.nextSibling,s=a.nodeName;a[Te]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=l}}if(0===o)return e.removeChild(i),void Td(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);Td(t)}function Ef(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ef(n),Ne(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function jf(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function Of(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var xf=null;function _f(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Cf(e,t,n){switch(t=df(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Df(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ne(e)}var If=new Map,Af=new Set;function Ff(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Mf=A.d;A.d={f:function(){var e=Mf.f(),t=Ju();return e||t},r:function(e){var t=Ue(e);null!==t&&5===t.tag&&"form"===t.type?za(t):Mf.r(e)},D:function(e){Mf.D(e),Tf("dns-prefetch",e,null)},C:function(e,t){Mf.C(e,t),Tf("preconnect",e,t)},L:function(e,t,n){Mf.L(e,t,n);var r=Pf;if(r&&e&&t){var o='link[rel="preload"][as="'+dt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+dt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+dt(n.imageSizes)+'"]')):o+='[href="'+dt(e)+'"]';var i=o;switch(t){case"style":i=Rf(e);break;case"script":i=zf(e)}If.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),If.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Uf(i))||"script"===t&&r.querySelector(Lf(i))||(uf(t=r.createElement("link"),"link",e),Le(t),r.head.appendChild(t)))}},m:function(e,t){Mf.m(e,t);var n=Pf;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+dt(r)+'"][href="'+dt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=zf(e)}if(!If.has(i)&&(e=u({rel:"modulepreload",href:e},t),If.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Lf(i)))return}uf(r=n.createElement("link"),"link",e),Le(r),n.head.appendChild(r)}}},X:function(e,t){Mf.X(e,t);var n=Pf;if(n&&e){var r=ze(n).hoistableScripts,o=zf(e),i=r.get(o);i||((i=n.querySelector(Lf(o)))||(e=u({src:e,async:!0},t),(t=If.get(o))&&Hf(e,t),Le(i=n.createElement("script")),uf(i,"link",e),n.head.appendChild(i)),r.set(o,i={type:"script",instance:i,count:1,state:null}))}},S:function(e,t,n){Mf.S(e,t,n);var r=Pf;if(r&&e){var o=ze(r).hoistableStyles,i=Rf(e);t=t||"default";var a=o.get(i);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Uf(i)))l.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=If.get(i))&&Wf(e,n);var s=a=r.createElement("link");Le(s),uf(s,"link",e),s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),s.addEventListener("load",(function(){l.loading|=1})),s.addEventListener("error",(function(){l.loading|=2})),l.loading|=4,Vf(a,t,r)}o.set(i,a={type:"stylesheet",instance:a,count:1,state:l})}}},M:function(e,t){Mf.M(e,t);var n=Pf;if(n&&e){var r=ze(n).hoistableScripts,o=zf(e),i=r.get(o);i||((i=n.querySelector(Lf(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=If.get(o))&&Hf(e,t),Le(i=n.createElement("script")),uf(i,"link",e),n.head.appendChild(i)),r.set(o,i={type:"script",instance:i,count:1,state:null}))}}};var Pf="undefined"==typeof document?null:document;function Tf(e,t,n){var r=Pf;if(r&&"string"==typeof t&&t){var o=dt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Af.has(o)||(Af.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(uf(t=r.createElement("link"),"link",e),Le(t),r.head.appendChild(t)))}}function Nf(e,t,n,o){var i,a,l,s,u=(u=z.current)?Ff(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Rf(n.href),(o=(n=ze(u).hoistableStyles).get(t))||n.set(t,o={type:"style",instance:null,count:0,state:null}),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Rf(n.href);var c=ze(u).hoistableStyles,f=c.get(e);if(f||(u=u.ownerDocument||u,c.set(e,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}}),(c=u.querySelector(Uf(e)))&&!c._p&&(f.instance=c,f.state.loading=5),If.has(e)||(If.set(e,n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy}),c||(l=n,s=f.state,(i=u).querySelector('link[rel="preload"][as="style"]['+(a=e)+"]")?s.loading=1:(a=i.createElement("link"),s.preload=a,a.addEventListener("load",(function(){return s.loading|=1})),a.addEventListener("error",(function(){return s.loading|=2})),uf(a,"link",l),Le(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return f}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=zf(n),(o=(n=ze(u).hoistableScripts).get(t))||n.set(t,o={type:"script",instance:null,count:0,state:null}),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Rf(e){return'href="'+dt(e)+'"'}function Uf(e){return'link[rel="stylesheet"]['+e+"]"}function qf(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function zf(e){return'[src="'+dt(e)+'"]'}function Lf(e){return"script[async]"+e}function Bf(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+dt(n.href)+'"]');if(o)return t.instance=o,Le(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Le(o=(e.ownerDocument||e).createElement("style")),uf(o,"style",i),Vf(o,n.precedence,e),t.instance=o;case"stylesheet":i=Rf(n.href);var a=e.querySelector(Uf(i));if(a)return t.state.loading|=4,t.instance=a,Le(a),a;o=qf(n),(i=If.get(i))&&Wf(o,i),Le(a=(e.ownerDocument||e).createElement("link"));var l=a;return l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),uf(a,"link",o),t.state.loading|=4,Vf(a,n.precedence,e),t.instance=a;case"script":return a=zf(n.src),(i=e.querySelector(Lf(a)))?(t.instance=i,Le(i),i):(o=n,(i=If.get(a))&&Hf(o=u({},n),i),Le(i=(e=e.ownerDocument||e).createElement("script")),uf(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Vf(o,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)i=l;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Wf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Hf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Gf=null;function Kf(e,t,n){if(null===Gf){var r=new Map,o=Gf=new Map;o.set(n,r)}else(r=(o=Gf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Te]||i[Ce]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"",l=r.get(a=e+a);l?l.push(i):r.set(a,[i])}}return r}function Jf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Yf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Xf=null;function Zf(){}function Qf(){if(this.count--,0===this.count)if(this.stylesheets)td(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var ed=null;function td(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,ed=new Map,t.forEach(nd,e),ed=null,Qf.call(e))}function nd(e,t){if(!(4&t.state.loading)){var n=ed.get(e);if(n)var r=n.get(null);else{n=new Map,ed.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=Qf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var rd={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function od(e,t,n,r,o,i,a,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function id(e,t,n,r,o,i,a,l,s,u,c,f){return e=new od(e,t,n,a,l,s,u,f),t=1,!0===i&&(t|=24),i=Vr(3,null,null,t),e.current=i,i.stateNode=e,(t=Lo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},fi(i),e}function ad(e){return e?e=Lr:Lr}function ld(e,t,n,r,o,i){o=ad(o),null===r.context?r.context=o:r.pendingContext=o,(r=hi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=mi(e,r,t))&&(Vu(n,0,t),pi(n,e,t))}function sd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ud(e,t){sd(e,t),(e=e.alternate)&&sd(e,t)}function cd(e){if(13===e.tag){var t=Ur(e,67108864);null!==t&&Vu(t,0,67108864),ud(e,67108864)}}var fd=!0;function dd(e,t,n,r){var o=I.T;I.T=null;var i=A.p;try{A.p=2,md(e,t,n,r)}finally{A.p=i,I.T=o}}function hd(e,t,n,r){var o=I.T;I.T=null;var i=A.p;try{A.p=8,md(e,t,n,r)}finally{A.p=i,I.T=o}}function md(e,t,n,r){if(fd){var o=pd(r);if(null===o)Yc(e,t,r,vd,n),xd(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return wd=_d(wd,e,t,n,r,o),!0;case"dragenter":return $d=_d($d,e,t,n,r,o),!0;case"mouseover":return kd=_d(kd,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Sd.set(i,_d(Sd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return Ed.set(i=o.pointerId,_d(Ed.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(xd(e,r),4&t&&-1<Od.indexOf(e)){for(;null!==o;){var i=Ue(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=pe(i.pendingLanes);if(0!==a){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var s=1<<31-ce(a);l.entanglements[1]|=s,a&=~s}Dc(i),!(6&cu)&&(Du=Z()+500,Ic(0))}}break;case 13:null!==(l=Ur(i,2))&&Vu(l,0,2),Ju(),ud(i,2)}if(null===(i=pd(r))&&Yc(e,t,r,vd,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Yc(e,t,r,null,n)}}function pd(e){return yd(e=Ut(e))}var vd=null;function yd(e){if(vd=null,null!==(e=Re(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vd=e,null}function bd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Q()){case ee:return 2;case te:return 8;case ne:case re:return 32;case oe:return 268435456;default:return 32}default:return 32}}var gd=!1,wd=null,$d=null,kd=null,Sd=new Map,Ed=new Map,jd=[],Od="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xd(e,t){switch(e){case"focusin":case"focusout":wd=null;break;case"dragenter":case"dragleave":$d=null;break;case"mouseover":case"mouseout":kd=null;break;case"pointerover":case"pointerout":Sd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ed.delete(t.pointerId)}}function _d(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Ue(t))&&cd(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Cd(e){var t=Re(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void function(e){var t=A.p;try{return A.p=e,function(){if(13===n.tag){var e=Lu();e=je(e);var t=Ur(n,e);null!==t&&Vu(t,0,e),ud(n,e)}}()}finally{A.p=t}}(e.priority)}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dd(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=pd(e.nativeEvent);if(null!==n)return null!==(t=Ue(n))&&cd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Rt=r,n.target.dispatchEvent(r),Rt=null,t.shift()}return!0}function Id(e,t,n){Dd(e)&&n.delete(t)}function Ad(){gd=!1,null!==wd&&Dd(wd)&&(wd=null),null!==$d&&Dd($d)&&($d=null),null!==kd&&Dd(kd)&&(kd=null),Sd.forEach(Id),Ed.forEach(Id)}function Fd(t,n){t.blockedOn===n&&(t.blockedOn=null,gd||(gd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ad)))}var Md=null;function Pd(t){Md!==t&&(Md=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,(function(){Md===t&&(Md=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===yd(r||n))continue;break}var i=Ue(n);null!==i&&(t.splice(e,3),e-=3,Ua(i,{pending:!0,data:o,method:n.method,action:r},r,o))}})))}function Td(e){function t(t){return Fd(t,e)}null!==wd&&Fd(wd,e),null!==$d&&Fd($d,e),null!==kd&&Fd(kd,e),Sd.forEach(t),Ed.forEach(t);for(var n=0;n<jd.length;n++){var r=jd[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jd.length&&null===(n=jd[0]).blockedOn;)Cd(n),null===n.blockedOn&&jd.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[De]||null;if("function"==typeof i)a||Pd(n);else if(a){var l=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[De]||null)l=a.formAction;else if(null!==yd(o))continue}else l=a.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Pd(n)}}}function Nd(e){this._internalRoot=e}function Rd(e){this._internalRoot=e}Rd.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ld(t.current,Lu(),e,t,null,null)},Rd.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ld(e.current,2,null,e,null,null),Ju(),t[Ie]=null}},Rd.prototype.unstable_scheduleHydration=function(e){if(e){var t=xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jd.length&&0!==t&&t<jd[n].priority;n++);jd.splice(n,0,e),0===n&&Cd(e)}};var Ud=t.version;if("19.1.1"!==Ud)throw Error(r(527,Ud,"19.1.1"));A.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var u=!1,c=a.child;c;){if(c===n){u=!0,n=a,o=s;break}if(c===o){u=!0,o=a,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,o=a;break}if(c===o){u=!0,o=s,n=a;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?s(e):null)?null:e.stateNode};var qd={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var zd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zd.isDisabled&&zd.supportsFiber)try{le=zd.inject(qd),se=zd}catch(e){}}return Ct.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=Ol,l=xl,s=_l;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=id(e,1,!1,null,0,n,i,a,l,s,0,null),e[Ie]=t.current,Kc(e),new Nd(t)},Ct.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",l=Ol,s=xl,u=_l,c=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=id(e,1,!0,t,0,i,a,l,s,u,0,c)).context=ad(null),n=t.current,(a=hi(i=je(i=Lu()))).callback=null,mi(n,a,i),t.current.lanes=n=i,ke(t,n),Dc(t),e[Ie]=t.current,Kc(e),new Rd(t)},Ct.version="19.1.1",Ct}()),_t.exports),zt={exports:{}},Lt={},Bt=(Ut||(Ut=1,zt.exports=function(){if(Rt)return Lt;Rt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return{$$typeof:e,type:t,key:o,ref:void 0!==(n=r.ref)?n:null,props:r}}return Lt.Fragment=t,Lt.jsx=n,Lt.jsxs=n,Lt}()),zt.exports);function Vt(e){return!("object"!=typeof e||null===e||"number"==typeof e.lastModified&&"undefined"!=typeof File&&e instanceof File||"function"==typeof e.getMonth&&"undefined"!=typeof Date&&e instanceof Date||Array.isArray(e))}function Wt(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"!=typeof t||Number.isNaN(t)?e:t}const Ht="__additional_property",Gt="additionalProperties",Kt="allOf",Jt="anyOf",Yt="const",Xt="default",Zt="dependencies",Qt="__errors",en="$id",tn="if",nn="items",rn="$name",on="oneOf",an="patternProperties",ln="properties",sn="readonly",un="required",cn="submitButtonOptions",fn="$ref",dn="__rjsf_ref",hn="$schema",mn="root",pn="_",vn=["discriminator","propertyName"],yn="formContext",bn="__rjsf_additionalProperties",gn="__rjsf_rootSchema",wn="ui:widget",$n="ui:options",kn="ui:globalOptions",Sn="https://json-schema.org/draft/2020-12/schema";function En(e={},t={}){return e?Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,n)=>{const r=e[n];return n===wn&&Vt(r)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):n===$n&&Vt(r)?{...t,...r}:{...t,[n.substring(3)]:r}}),{...t}):{...t}}function jn(e,t={},n){if(!e.additionalProperties&&!e.patternProperties)return!1;const{expandable:r=!0}=En(t);return!1===r?r:void 0===e.maxProperties||!n||Object.keys(n).length<e.maxProperties}function On(e){const t={[Qt]:[],addError(e){this[Qt].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,n)=>({...e,[n]:On(t)})),t);if($e(e)){const n=e;return Object.keys(n).reduce(((e,t)=>({...e,[t]:On(n[t])})),t)}return t}const{getOwnPropertyNames:xn,getOwnPropertySymbols:_n}=Object,{hasOwnProperty:Cn}=Object.prototype;function Dn(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function In(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);const{cache:o}=r,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);const l=e(t,n,r);return o.delete(t),o.delete(n),l}}function An(e){return xn(e).concat(_n(e))}const Fn=Object.hasOwn||((e,t)=>Cn.call(e,t)),{getOwnPropertyDescriptor:Mn,keys:Pn}=Object,Tn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};function Nn(e,t){return e===t}function Rn(e,t){return e.byteLength===t.byteLength&&Jn(new Uint8Array(e),new Uint8Array(t))}function Un(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function qn(e,t){return e.byteLength===t.byteLength&&Jn(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function zn(e,t){return Tn(e.getTime(),t.getTime())}function Ln(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Bn(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.entries();let a,l,s=0;for(;(a=i.next())&&!a.done;){const r=t.entries();let i=!1,u=0;for(;(l=r.next())&&!l.done;){if(o[u]){u++;continue}const r=a.value,c=l.value;if(n.equals(r[0],c[0],s,u,e,t,n)&&n.equals(r[1],c[1],r[0],c[0],e,t,n)){i=o[u]=!0;break}u++}if(!i)return!1;s++}return!0}function Vn(e,t,n){const r=Pn(e);let o=r.length;if(Pn(t).length!==o)return!1;for(;o-- >0;)if(!Xn(e,t,n,r[o]))return!1;return!0}function Wn(e,t,n){const r=An(e);let o,i,a,l=r.length;if(An(t).length!==l)return!1;for(;l-- >0;){if(o=r[l],!Xn(e,t,n,o))return!1;if(i=Mn(e,o),a=Mn(t,o),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable))return!1}return!0}function Hn(e,t){return Tn(e.valueOf(),t.valueOf())}function Gn(e,t){return e.source===t.source&&e.flags===t.flags}function Kn(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.values();let a,l;for(;(a=i.next())&&!a.done;){const r=t.values();let i=!1,s=0;for(;(l=r.next())&&!l.done;){if(!o[s]&&n.equals(a.value,l.value,a.value,l.value,e,t,n)){i=o[s]=!0;break}s++}if(!i)return!1}return!0}function Jn(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Yn(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Xn(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||Fn(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Zn=Object.prototype.toString;function Qn(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Rn,areArraysEqual:n?Wn:Un,areDataViewsEqual:qn,areDatesEqual:zn,areErrorsEqual:Ln,areFunctionsEqual:Nn,areMapsEqual:n?Dn(Bn,Wn):Bn,areNumbersEqual:Tn,areObjectsEqual:n?Wn:Vn,arePrimitiveWrappersEqual:Hn,areRegExpsEqual:Gn,areSetsEqual:n?Dn(Kn,Wn):Kn,areTypedArraysEqual:n?Dn(Jn,Wn):Jn,areUrlsEqual:Yn,getUnsupportedCustomComparator:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=In(r.areArraysEqual),t=In(r.areMapsEqual),n=In(r.areObjectsEqual),o=In(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:o})}return r}(e),a=function(e){const t=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h}){return{"[object Arguments]":s,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":i,"[object BigInt]":l,"[object BigInt64Array]":d,"[object BigUint64Array]":d,"[object Boolean]":u,"[object DataView]":n,"[object Date]":r,"[object Error]":o,"[object Float16Array]":d,"[object Float32Array]":d,"[object Float64Array]":d,"[object Function]":i,"[object GeneratorFunction]":i,"[object Int8Array]":d,"[object Int16Array]":d,"[object Int32Array]":d,"[object Map]":a,"[object Number]":u,"[object Object]":(e,t,n)=>"function"!=typeof e.then&&"function"!=typeof t.then&&s(e,t,n),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":h,"[object Uint8Array]":d,"[object Uint8ClampedArray]":d,"[object Uint16Array]":d,"[object Uint32Array]":d}}(e),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:o,areMapsEqual:i,areNumbersEqual:a,areObjectsEqual:l,areRegExpsEqual:s,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(e,f,d){if(e===f)return!0;if(null==e||null==f)return!1;const h=typeof e;if(h!==typeof f)return!1;if("object"!==h)return"number"===h||"bigint"===h?a(e,f,d):"function"===h&&o(e,f,d);const m=e.constructor;if(m!==f.constructor)return!1;if(m===Object)return l(e,f,d);if(m===Array)return n(e,f,d);if(m===Date)return r(e,f,d);if(m===RegExp)return s(e,f,d);if(m===Map)return i(e,f,d);if(m===Set)return u(e,f,d);if(m===Promise)return!1;if(Array.isArray(e))return n(e,f,d);const p=Zn.call(e),v=t[p];if(v)return v(e,f,d);const y=c&&c(e,f,d,p);return!!y&&y(e,f,d)}}(i),l=n?n(a):(s=a,function(e,t,n,r,o,i,a){return s(e,t,a)});var s;return function({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(i,a){const{cache:l=(e?new WeakMap:void 0),meta:s}=n();return t(i,a,{cache:l,equals:r,meta:s,strict:o})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const i={cache:void 0,equals:r,meta:void 0,strict:o};return function(e,n){return t(e,n,i)}}({circular:t,comparator:a,createState:r,equals:l,strict:o})}Qn(),Qn({strict:!0}),Qn({circular:!0}),Qn({circular:!0,strict:!0}),Qn({createInternalComparator:()=>Tn}),Qn({strict:!0,createInternalComparator:()=>Tn}),Qn({circular:!0,createInternalComparator:()=>Tn}),Qn({circular:!0,createInternalComparator:()=>Tn,strict:!0});const er=Qn({circular:!0,createCustomConfig:()=>({areFunctionsEqual:(e,t)=>"function"==typeof t})}),tr=Object.prototype;function nr(e){for(const t in e)if(tr.hasOwnProperty.call(e,t))return!1;return!0}function rr(e){return"object"==typeof e}function or(e){return rr(e)?nr(e):!0===e}function ir(e,t){return e<t?-1:e>t?1:0}function ar(e,t){const n=e.length;if(0===n)return t;let r=t.length;if(0===r)return e;if(n<r){const o=e;e=t,t=o,r=n}const o=new Set(e);for(let e=0;e<r;e++)o.add(t[e]);return Array.from(o)}function lr(e,t){const n=[];if(0===e.length||0===t.length)return n;if(e.length>t.length){const n=e;e=t,t=n}const r=new Set(t);for(let t=0;t<e.length&&r.size>0;t++){const o=e[t];r.delete(o)&&n.push(o)}return n}function sr(e){return 0===e.length}function ur(e){return(t,n)=>{const r=t.length-n.length;if(0!==r)return r;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){const o=e(t[r],n[r]);if(0!==o)return o}return 0}}function cr(e,{threshold:t=12}={}){return n=>{const r=n.length;if(0===r)return n;if(r<=t){const t=[];let o=0;e:for(let i=0;i<r;i++){const r=n[i];for(let n=0;n<o;n++)if(0===e(r,t[n]))continue e;o=t.push(r)}return t}const o=n.slice().sort(e);let i=0;for(let t=1;t<r;t++)0!==e(o[i],o[t])&&++i!==t&&(o[i]=o[t]);return o.length=i+1,o}}new Set(["array","boolean","integer","null","number","object","string"]),new Set(["$defs","definitions","properties","patternProperties","dependencies"]),new Set(["items","allOf","oneOf","anyOf"]),new Set(["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"]);const fr=function(e,t){return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}},dr=()=>0,hr=e=>void 0===e,mr=e=>"object"!=typeof e,pr={boolean:0,number:1,string:2};function vr(e,t){const n=typeof e,r=typeof t;return n===r?ir(e,t):pr[n]-pr[r]}function yr(e,t,n=dr){return(r,o)=>e(r)?e(o)?n(r,o):-1:e(o)?1:t(r,o)}function br(e){return yr(hr,e)}function gr(e,t){return yr((t=>void 0===t||e(t)),t)}function wr(e,t){return yr(Array.isArray,e,t)}const $r=br(ir),kr=gr((e=>0===e),((e,t)=>e-t));function Sr(e){return e}const Er=(e,t)=>e?Er(t%e,e):t;function jr(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function Or(e,t,n){const r=e.length,o=t.length;if(r>0&&o>0)for(let i=0;i<r;i++){const r=e[i];for(let e=0;e<o;e++)n(r,t[e])}}function xr(e,t){return e||t}function _r(e){return(t,n)=>{const r={...t},o=Object.keys(n),i=o.length;for(let a=0;a<i;a++){const i=o[a];r[i]=void 0===t[i]?n[i]:e(t[i],n[i])}return r}}function Cr(e,t,n){void 0===n||or(n)?delete e[t]:e[t]=n}const Dr=["properties","patternProperties","additionalProperties"];function Ir(e){const t=Object.keys(e),n=t.length,r=[];for(let o=0;o<n;o++){const n=t[o];r.push({regExp:new RegExp(n),schema:e[n]})}return[r,t]}const Ar=[[],[]];function Fr(e,t,n){const r=n.length;for(let o=0;o<r;o++){const r=n[o];if(!r.regExp.test(t))continue;const i=r.schema;if(!1===i)return!0;e.push(i)}return!1}const Mr=["items","additionalItems"],Pr=["if","then","else"];function Tr(e,t){return void 0!==t.if&&(e.if=t.if),void 0!==t.then&&(e.then=t.then),void 0!==t.else&&(e.else=t.else),e}function Nr(e,t){if(e===t)return e;switch(e){case"number":if("integer"===t)return"integer";case"integer":if("number"===t)return"integer";default:return}}function Rr(e,t,n){return[e,t,n]}const Ur=[Rr("minimum","maximum",(e=>e.maximum>=e.minimum)),Rr("exclusiveMinimum","maximum",(e=>e.maximum>e.exclusiveMinimum)),Rr("minimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.minimum)),Rr("exclusiveMinimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.exclusiveMinimum)),Rr("minLength","maxLength",(e=>e.maxLength>=e.minLength)),Rr("minItems","maxItems",(e=>e.maxItems>=e.minItems)),Rr("minProperties","maxProperties",(e=>e.maxProperties>=e.minProperties))];var qr,zr,Lr,Br,Vr,Wr,Hr={},Gr=function(){if(qr)return Hr;qr=1;var e=/~/,t=/~[01]/g;function n(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function r(r){return e.test(r)?r.replace(t,n):r}function o(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function i(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var n=(t=o(t)).length;if(1===n)return e;for(var i=1;i<n;){if(e=e[r(t[i++])],n===i)return e;if("object"!=typeof e||null===e)return}}function a(e,t,n){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=o(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,n){for(var o,i,a=1,l=t.length;a<l;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(o=r(t[a++]),i=l>a,void 0===e[o]&&(Array.isArray(e)&&"-"===o&&(o=e.length),i&&(e[o]=""!==t[a]&&t[a]<1/0||"-"===t[a]?[]:{})),!i)break;e=e[o]}var s=e[o];return void 0===n?delete e[o]:e[o]=n,s}(e,t,n)}return Hr.get=i,Hr.set=a,Hr.compile=function(e){var t=o(e);return{get:function(e){return i(e,t)},set:function(e,n){return a(e,t,n)}}},Hr}(),Kr=o(Gr),Jr={exports:{}};function Yr(){if(Lr)return zr;Lr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),r=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function i(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),48!==n){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function s(e,t,n){if(e.length){const r=i(e);if(""===r)return n.error=!0,!1;t.push(r),e.length=0}return!0}function u(e){if(function(e){let t=0;for(let n=0;n<e.length;n++)":"===e[n]&&t++;return t}(e)<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const n={error:!1,address:"",zone:""},r=[],o=[];let a=!1,u=!1,c=s;for(let i=0;i<e.length;i++){const s=e[i];if("["!==s&&"]"!==s)if(":"!==s)if("%"===s){if(!c(o,r,n))break;c=l}else o.push(s);else{if(!0===a&&(u=!0),!c(o,r,n))break;if(++t>7){n.error=!0;break}i>0&&":"===e[i-1]&&(a=!0),r.push(":")}}return o.length&&(c===l?n.zone=o.join(""):r.push(u?o.join(""):i(o))),n.address=r.join(""),n}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+="%"+t.zone,n+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}const c={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,d=/[@/?#]/g;function h(e,t){const n=t?d:f;return n.lastIndex=0,e.replace(n,(e=>c[e]))}return zr={nonSimpleDomain:a,recomposeAuthority:function(e){const n=[];if(void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host){let r=unescape(e.host);if(!t(r)){const e=u(r);r=!0===e.isIPV6?`[${e.escapedHost}]`:h(r,!1)}n.push(r)}return"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0},reescapeHostDelimiters:h,normalizePercentEncoding:function(e,t=!1){if(-1===e.indexOf("%"))return e;let o="";for(let i=0;i<e.length;i++){if("%"===e[i]&&i+2<e.length){const a=e.slice(i+1,i+3);if(n(a)){const e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));t&&r(n)?o+=n:o+="%"+e,i+=2;continue}}o+=e[i]}return o},normalizePathEncoding:function(e){let t="";for(let i=0;i<e.length;i++){if("%"===e[i]&&i+2<e.length){const o=e.slice(i+1,i+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&r(n)?t+=n:t+="%"+e,i+=2;continue}}o(e[i])?t+=e[i]:t+=escape(e[i])}return t},escapePreservingEscapes:function(e){let t="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){const o=e.slice(r+1,r+3);if(n(o)){t+="%"+o.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t},removeDotSegments:function(e){let t=e;const n=[];let r=-1,o=0;for(;o=t.length;){if(1===o){if("."===t)break;if("/"===t){n.push("/");break}n.push(t);break}if(2===o){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){n.push("/");break}}else if(3===o&&"/.."===t){0!==n.length&&n.pop(),n.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==n.length&&n.pop();continue}}if(-1===(r=t.indexOf("/",1))){n.push(t);break}n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")},isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:i},zr}function Xr(){if(Wr)return Jr.exports;Wr=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:o,escapePreservingEscapes:i,reescapeHostDelimiters:a,isIPv4:l,nonSimpleDomain:s}=Yr(),{SCHEMES:u,getSchemeHandler:c}=function(){if(Vr)return Br;Vr=1;const{isUUID:e}=Yr(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function o(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function i(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:o,serialize:i},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=r(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(r(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},s={scheme:"urn",parse:function(e,n){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(t);if(r){const t=n.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const o=c(`${t}:${n.nid||e.nid}`);e.path=void 0,o&&(e=o.parse(e,n))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),o=c(`${n}:${t.nid||r}`);o&&(e=o.serialize(e,t));const i=e;return i.path=`${r||t.nid}:${e.nss}`,t.skipEscape=!0,i},skipNormalize:!0},u={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:o,serialize:i},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:s,"urn:uuid":{scheme:"urn:uuid",parse:function(t,n){const r=t;return r.uuid=r.nss,r.nss=void 0,n.tolerant||r.uuid&&e(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function c(e){return e&&(u[e]||u[e.toLowerCase()])||void 0}return Object.setPrototypeOf(u,null),Br={wsIsSecure:r,SCHEMES:u,isValidSchemeName:function(e){return-1!==n.indexOf(e)},getSchemeHandler:c}}();function f(e,n,r,o){const i={};return o||(e=p(d(e,r),r),n=p(d(n,r),r)),!(r=r||{}).tolerant&&n.scheme?(i.scheme=n.scheme,i.userinfo=n.userinfo,i.host=n.host,i.port=n.port,i.path=t(n.path||""),i.query=n.query):(void 0!==n.userinfo||void 0!==n.host||void 0!==n.port?(i.userinfo=n.userinfo,i.host=n.host,i.port=n.port,i.path=t(n.path||""),i.query=n.query):(n.path?("/"===n.path[0]?i.path=t(n.path):(i.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path:n.path:"/"+n.path,i.path=t(i.path)),i.query=n.query):(i.path=e.path,i.query=void 0!==n.query?n.query:e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=n.fragment,i}function d(e,o){const a={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},l=Object.assign({},o),s=[],u=c(l.scheme||a.scheme);u&&u.serialize&&u.serialize(a,l),void 0!==a.path&&(l.skipEscape?a.path=r(a.path):(a.path=i(a.path),void 0!==a.scheme&&(a.path=a.path.split("%3A").join(":")))),"suffix"!==l.reference&&a.scheme&&s.push(a.scheme,":");const f=n(a);if(void 0!==f&&("suffix"!==l.reference&&s.push("//"),s.push(f),a.path&&"/"!==a.path[0]&&s.push("/")),void 0!==a.path){let e=a.path;l.absolutePath||u&&u.absolutePath||(e=t(e)),void 0===f&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),s.push(e)}return void 0!==a.query&&s.push("?",a.query),void 0!==a.fragment&&s.push("#",a.fragment),s.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function m(t,n){const r=Object.assign({},n),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let u=!1,f=!1;"suffix"===r.reference&&(t=r.scheme?r.scheme+":"+t:"//"+t);const d=t.match(h);if(d){i.scheme=d[1],i.userinfo=d[3],i.host=d[4],i.port=parseInt(d[5],10),i.path=d[6]||"",i.query=d[7],i.fragment=d[8],isNaN(i.port)&&(i.port=d[5]);const n=function(e,t){return void 0!==t[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(i,d);if(void 0!==n&&(i.error=i.error||n,u=!0),i.host)if(!1===l(i.host)){const t=e(i.host);i.host=t.host.toLowerCase(),f=t.isIPV6}else f=!0;i.reference=void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?"relative":void 0===i.fragment?"absolute":"uri":"same-document",r.reference&&"suffix"!==r.reference&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");const h=c(r.scheme||i.scheme);if(!(r.unicodeSupport||h&&h.unicodeSupport)&&i.host&&(r.domainHost||h&&h.domainHost)&&!1===f&&s(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}if((!h||h&&!h.skipNormalize)&&(-1!==t.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=a(unescape(i.host),f))),i.path&&(i.path=o(i.path)),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}h&&h.parse&&h.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:u}}function p(e,t){return m(e,t).parsed}function v(e,t){const{parsed:n,malformedAuthorityOrPort:r}=m(e,t);return{normalized:r?e:d(n,t),malformedAuthorityOrPort:r}}function y(e,t){if("string"==typeof e){const{normalized:n,malformedAuthorityOrPort:r}=v(e,t);return r?void 0:n}if("object"==typeof e)return d(e,t)}const b={SCHEMES:u,normalize:function(e,t){return"string"==typeof e?e=function(e,t){return v(e,t).normalized}(e,t):"object"==typeof e&&(e=p(d(e,t),t)),e},resolve:function(e,t,n){const r=n?Object.assign({scheme:"null"},n):{scheme:"null"},o=f(p(e,r),p(t,r),r,!0);return r.skipEscape=!0,d(o,r)},resolveComponent:f,equal:function(e,t,n){const r=y(e,n),o=y(t,n);return void 0!==r&&void 0!==o&&r.toLowerCase()===o.toLowerCase()},serialize:d,parse:p};return Jr.exports=b,Jr.exports.default=b,Jr.exports.fastUri=b,Jr.exports}var Zr=o(Xr());function Qr(e,t){if(en in e&&Zr.equal(e[en],t))return e;for(const n of Object.values(e))if(Array.isArray(n)){for(const e of n)if(Y(e)){const n=Qr(e,t);if(void 0!==n)return n}}else if(Y(n)){const e=Qr(n,t);if(void 0!==e)return e}}function eo(e,t){const n=h(e,en,t);fn in e&&(e={...e,[fn]:Zr.resolve(n,e[fn])});for(const[t,r]of Object.entries(e))Array.isArray(r)?e={...e,[t]:r.map((e=>Y(e)?eo(e,n):e))}:Y(r)&&(e={...e,[t]:eo(r,n)});return e}function to(e,t){const n=t[e];return[ot(t,[e]),n]}function no(e,t={},n=[],r=h(t,[en])){const o=e||"";let i;if(o.startsWith("#")){const e=decodeURIComponent(o.substring(1));void 0===r||en in t&&t[en]===r?i=Kr.get(t,e):t[hn]===Sn&&(i=Qr(t,r.replace(/\/$/,"")),void 0!==i&&(i=Kr.get(i,e)))}else if(t[hn]===Sn){const e=r?Zr.resolve(r,o):o,[n,...a]=e.replace(/#\/?$/,"").split("#");i=Qr(t,n.replace(/\/$/,"")),void 0!==i&&(r=i[en],se(a)||(i=Kr.get(i,decodeURIComponent(a.join("#")))))}if(void 0===i)throw new Error(`Could not find a definition for ${e}.`);const a=i[fn];if(a){if(n.includes(a)){if(1===n.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...r]=n,i=[...r,o,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${i}`)}const[l,s]=to(fn,i),u=no(s,t,[...n,o],r);return Object.keys(l).length>0?"https://json-schema.org/draft/2019-09/schema"===t[hn]||t[hn]===Sn?{[Kt]:[l,u]}:{...l,...u}:u}return i}function ro(e,t={},n=h(t,[en])){return no(e,t,[],n)}function oo(e){let t;const n=h(e,vn);return We(n)?t=n:void 0!==n&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),t}function io(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}function ao(e){let{type:t}=e;return!t&&e.const?io(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t)}function lo(e,t){const n=Object.assign({},e);return Object.keys(t).reduce(((n,r)=>{const o=e?e[r]:{},i=t[r];return n[r]=e&&r in e&&Vt(i)?lo(o,i):e&&t&&("object"===ao(e)||"object"===ao(t))&&r===un&&Array.isArray(o)&&Array.isArray(i)?mt(o,i):i,n}),n)}function so(e,t,n){var r;if(e&&n){const o=h(e,n);if(void 0===o)return;for(let e=0;e<t.length;e++){const i=h(t[e],[ln,n],{});if("object"!==i.type&&"array"!==i.type){if(i.const===o)return e;if(null===(r=i.enum)||void 0===r?void 0:r.includes(o))return e}}}}function uo(e,t,n,r,o){if(void 0===t)return 0;const i=so(t,n,o);if(Ye(i))return i;for(let i=0;i<n.length;i++){const a=n[i];if(o&&v(a,[ln,o])){const n=h(t,o),l=h(a,[ln,o],{});if(e.isValid(l,n,r))return i}else if(a[ln]){const n={anyOf:Object.keys(a[ln]).map((e=>({required:[e]})))};let o;if(a.anyOf){const{...e}=a;e.allOf=e.allOf?e.allOf.slice():[],e.allOf.push(n),o=e}else o=Object.assign({},a,n);if(delete o.required,e.isValid(o,t,r))return i}else if(e.isValid(a,t,r))return i}return 0}function co(e,t,n={},r,o,i=!1){return $o(e,t,n,r,void 0,void 0,o,i)[0]}function fo(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>ct(e.length,(n=>[...e[n]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function ho(e,t){return Object.keys(e.patternProperties).filter((e=>RegExp(e).test(t))).reduce(((t,n)=>(lt(t,[n],e.patternProperties[n]),t)),{})}function mo(e,t,n,r,o,i,a,l){const s=po(t,n,o,void 0,l);return s!==t?$o(e,s,n,i,r,o,a,l):[t]}function po(e,t,n,r,o){if(!Vt(e))return e;let i=e;if(fn in i){const{$ref:e,...o}=i;if(n.includes(e))return i;n.push(e),i={...ro(e,t,r),...o,[dn]:e},en in i&&(r=i[en])}if(ln in i){const e=[],l=function(e,t,n){var r=B(e),o=r||V(e)||W(e);if(t=s(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Y(e)&&K(i)?P(q(e)):{}}return(o?F:U)(e,(function(e,r,o){return t(n,e,r,o)})),n}(i[ln],((i,a,l)=>{const s=[...n];i[l]=po(a,t,s,r,o),e.push(s)}),{});et(n,pt(null!=(a=e)&&a.length?ee(a,Ve):[])),i={...i,[ln]:l}}var a;if(nn in i&&!Array.isArray(i.items)&&"boolean"!=typeof i.items&&(i={...i,items:po(i.items,t,n,r,o)}),o){let a,l;Jt in e&&Array.isArray(e[Jt])?(a=Jt,l=i[Jt]):on in e&&Array.isArray(e[on])&&(a=on,l=i[on]),a&&l&&(i={...i,[a]:l.map((e=>po(e,t,n,r,o)))})}return er(e,i)?e:i}const{compareSchemaDefinitions:vo,compareSchemaValues:yo}=function({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const n=fr(t,(e=>Object.keys(e).sort()));function r(e){return(t,r)=>{const o=n(t),i=n(r),a=Math.min(o.length,i.length);for(let e=0;e<a;e++){const t=ir(o[e],i[e]);if(0!==t)return t}if(o.length!==i.length)return o.length-i.length;for(let n=0;n<a;n++){const i=o[n],a=e(t[i],r[i]);if(0!==a)return a}return 0}}function o(t){const n=ur(t),r=fr(e,cr(t,{threshold:0}));return(e,t)=>n(r(e),r(t))}const i=o(ir);function a(e,t){if(rr(e)){if(rr(t)){const n=function(e,t){const n=e.length;if(0===n)return t;const r=t.length;if(0===r)return e;if(r>n){const n=e;e=t,t=n}const o=new Set(e),i=t.length;for(let n=0;n<i;n++){const r=t[n];o.has(r)||e.push(r)}return e}(Object.keys(e),Object.keys(t)),r=n.length;for(let o=0;o<r;o++){const r=n[o];if(e[r]===t[r])continue;const i=(m[r]??l)(e[r],t[r]);if(0!==i)return i}return 0}return!0===t&&nr(e)?0:1}return rr(t)?!0===e&&nr(t)?0:-1:ir(e,t)}const l=br(u),s=yr(mr,wr(r(l),ur(u)),vr);function u(e,t){return null===e?-1:null===t?1:s(e,t)}const c=br(a),f=gr(nr,r(c)),d=br(o(a)),h=gr(or,a),m={$id:$r,$comment:$r,$defs:f,$ref:$r,$schema:$r,const:l,contains:c,contentEncoding:$r,contentMediaType:$r,default:l,definitions:f,description:$r,else:c,examples:l,exclusiveMaximum:$r,exclusiveMinimum:$r,format:$r,if:c,maximum:$r,maxItems:$r,maxLength:$r,maxProperties:$r,minimum:$r,multipleOf:$r,not:c,pattern:$r,propertyNames:c,readOnly:$r,then:c,title:$r,writeOnly:$r,uniqueItems:gr((e=>!1===e),dr),minLength:kr,minItems:kr,minProperties:kr,required:gr(sr,i),enum:gr(sr,o(u)),type:br(((e,t)=>{const n=Array.isArray(e),r=Array.isArray(t);return n||r?i(n?e:[e],r?t:[t]):ir(e,t)})),items:gr((e=>!Array.isArray(e)&&or(e)),wr(a,ur(a))),anyOf:d,allOf:d,oneOf:d,properties:f,patternProperties:f,additionalProperties:h,additionalItems:h,dependencies:gr(nr,r(br(wr(a,i))))};return{compareSchemaValues:u,compareSchemaDefinitions:a}}(),{mergeArrayOfSchemaDefinitions:bo}=function({mergePatterns:e=jr,isSubRegExp:t=Object.is,intersectJson:n=lr,deduplicateJsonSchemaDef:r=Sr,defaultMerger:o=Sr,assigners:i=[],checks:a=Ur,mergers:l}={}){function s(e){const t=e.length;let n=e[0];for(let r=1;r<t;r++){const t=m(n,e[r]);if(!1===t)return!1;or(t)||(n=t)}return n}function u(e,t,n,r,o,i,a){if(e.length=0,!1===n)return!1;if(e.push(n),void 0!==o){if(!1===o)return!1;e.push(o)}if(Fr(e,t,i))return!1;const l=e.length<2;if(!1===a){if(l)return;if(Fr(e,t,r))return!1}else l&&void 0!==a&&e.push(a);return 1===e.length?e[0]:s(e)}function c(e,t,n,r,o,i){const a=n.length;if(a>0&&!1!==o)if(i)Object.assign(e,t);else for(let i=0;i<a;i++){const a=n[i];r.has(a)||(e[a]=m(t[a],o))}return e}function f(e,t){const n=[];if(Or(e,t,((e,t)=>{try{n.push(m(e,t))}catch{}})),0===n.length)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(e)}" and "${JSON.stringify(t)}"; the merged result is empty`);return r(n)}const d=function(e){const t=new Map;for(const n of e)for(const e of n[0])t.set(e,n[1]);return t}([[Dr,(n,{properties:r={},patternProperties:o,additionalProperties:i=!0},{properties:a={},patternProperties:l,additionalProperties:s=!0})=>{const f=or(i),d=or(s);if(f&&d)return Cr(n,"properties",p(r,a)),Cr(n,"patternProperties",o&&l?p(o,l):o??l),delete n.additionalProperties,n;Cr(n,"additionalProperties",m(i,s));const h={},v=Object.keys(r),y=v.length,[b,g]=o?Ir(o):Ar,[w,$]=l?Ir(l):Ar,k=[],S=new Set,E=d?void 0:s;for(let e=0;e<y;e++){const t=v[e];S.add(t);const n=u(k,t,r[t],b,a[t],w,E);void 0!==n&&(h[t]=n)}const j=Object.keys(a),O=j.length,x=f?void 0:i;for(let e=0;e<O;e++){const t=j[e];if(S.has(t))continue;const n=u(k,t,a[t],w,void 0,b,x);void 0!==n&&(h[t]=n)}Cr(n,"properties",h);let _={};const C=new Set;return g.length>0&&$.length>0&&Or(g,$,((n,r)=>{t(n,r)&&C.add(n),t(r,n)&&C.add(r),_[e(n,r)]=m(o[n],l[r])})),_=c(_,o,g,C,s,d),_=c(_,l,$,C,i,f),Cr(n,"patternProperties",_),n}],[Mr,(e,{items:t=[],additionalItems:n},{items:r=[],additionalItems:o})=>{const i=Array.isArray(t),a=Array.isArray(r),l=[];if(e.items=l,i&&a){const[i,a,s]=t.length<r.length?[t.length,n,r]:[r.length,o,t];let u=0;for(;u<i;u++)l.push(m(t[u],r[u]));if(!1===a)e.additionalItems=!1;else{const t=void 0===a||or(a);for(;u<s.length;u++)l.push(t?s[u]:m(s[u],a));Cr(e,"additionalItems",void 0!==n&&void 0!==o?m(n,o):n??o)}}else if(i||a){const[a,s,u]=i?[t,r,n]:[r,t,o];Cr(e,"additionalItems",u&&m(u,s));for(let e=0;e<a.length;e++)l.push(m(a[e],s))}else delete e.additionalItems,e.items=m(t,r);return e}],[Pr,(e,t,n)=>{Tr(e,t);const r=Tr({},n);return e.allOf=void 0===e.allOf?[r]:e.allOf.concat(r),e}],...i]),h=function(e){const t=new Map;for(const[n,r,o]of e){const e=e=>{if(!o(e))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(e[n])}, ${r}: ${JSON.stringify(e[r])})`)};for(const o of[[n,r],[r,n]]){let n=t.get(o[0]);void 0===n&&(n=[],t.set(o[0],n)),n.push({oppositeKey:o[1],check:e})}}return t}(a);function m(e,t){if(!1===e||!1===t)return!1;if(or(e))return!!or(t)||t;if(or(t))return e;let n={...e};const r=new Set,i=new Set,a=Object.keys(t),l=a.length;for(let s=0;s<l;s++){const l=a[s],u=t[l];if(void 0===u)continue;const c=h.get(l);if(void 0!==c){const t=c.length;for(let n=0;n<t;n++){const t=c[n];void 0!==e[t.oppositeKey]&&i.add(t.check)}}const f=e[l];if(void 0===f){n[l]=u;continue}const m=d.get(l);m?r.add(m):n[l]=(v[l]??o)(f,u)}for(const o of r)n=o(n,e,t);for(const e of i)e(n);return n}const p=_r(m),v={$id:o,$ref:o,$schema:o,$comment:o,$defs:p,definitions:p,type:(e,t)=>{if(e===t)return e;const n=Array.isArray(e),r=Array.isArray(t);if(n||r){if(n||r){const o=new Set;if(n&&r)Or(e,t,((e,t)=>{const n=Nr(e,t);void 0!==n&&o.add(n)}));else{const r=n?e:t,i=n?t:e,a=r.length;for(let e=0;e<a;e++){const t=Nr(i,r[e]);void 0!==t&&o.add(t)}}const i=o.size;if(1===i)return o.values().next().value;if(i>1)return Array.from(o)}}else{const n=Nr(e,t);if(void 0!==n)return n}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${e.toString()}, ${t.toString()}`)},default:o,description:o,title:o,const:o,format:o,contentEncoding:o,contentMediaType:o,not:(e,t)=>{const n=r([e,t]);return 1===n.length?n[0]:{anyOf:n}},pattern:e,readOnly:xr,writeOnly:xr,enum:(e,t)=>{const r=n(e,t);if(0===r.length)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(e)}", "${JSON.stringify(t)}"`);return r},anyOf:f,oneOf:f,allOf:(e,t)=>r(e.concat(t)),propertyNames:m,contains:m,dependencies:_r(((e,t)=>Array.isArray(e)?Array.isArray(t)?ar(e,t):m(t,{required:e}):Array.isArray(t)?m(e,{required:t}):m(e,t))),examples:(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(e)}" and "${JSON.stringify(t)}"`);return ar(e,t)},multipleOf:(e,t)=>{let n=1;for(;!Number.isInteger(e)||!Number.isInteger(t);)n*=10,e*=10,t*=10;return((e,t)=>Math.abs(e*t)/Er(e,t))(e,t)/n},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:xr,required:ar,...l};return{mergeSchemaDefinitions:m,mergeArrayOfSchemaDefinitions:s}}({intersectJson:(go=yo,(e,t)=>{const n=[];let r=e.length,o=t.length;if(0===r||0===o)return n;if(r>o){const n=e;e=t,t=n;const i=r;r=o,o=i}const i=[...e].sort(go),a=[...t].sort(go);let l=0,s=0;for(;l<r&&s<o;){const e=go(i[l],a[s]);0===e?(0!==n.length&&0===go(n[n.length-1],i[l])||n.push(i[l]),l++,s++):e<0?l++:s++}return n}),deduplicateJsonSchemaDef:cr(vo)});var go;const wo=function(e){return t=>e(function(e){const t=[],n=[e];for(;n.length>0;){const e=n.pop();if("boolean"==typeof e||void 0===e.allOf){t.push(e);continue}const{allOf:r,...o}=e;t.push(o);for(let e=r.length-1;e>=0;e--)n.push(r[e])}return t}(t))}(bo);function $o(e,t,n,r,o=!1,i=[],a,l){if(!Vt(t))return[{}];const s=function(e,t,n,r,o,i,a,l){const s=mo(e,t,n,r,o,i,a,l);return s.length>1||s[0]!==t?s:Zt in t?ko(e,t,n,r,o,i,a).flatMap((t=>$o(e,t,n,i,r,o,a))):Kt in t&&Array.isArray(t[Kt])?fo(t.allOf.map((t=>$o(e,t,n,i,r,o,a)))).map((e=>({...t,allOf:e}))):[t]}(e,t,n,o,i,r,a,l);return s.flatMap((t=>{var l;let s=t;if(tn in s)return function(e,t,n,r,o,i,a){const{if:l,then:s,else:u,...c}=t,f=e.isValid(l,i||{},n);let d=[c],h=[];if(r)s&&"boolean"!=typeof s&&(h=h.concat($o(e,s,n,i,r,o,a))),u&&"boolean"!=typeof u&&(h=h.concat($o(e,u,n,i,r,o,a)));else{const t=f?s:u;t&&"boolean"!=typeof t&&(h=h.concat($o(e,t,n,i,r,o,a)))}return h.length&&(d=h.map((e=>lo(c,e)))),d.flatMap((t=>$o(e,t,n,i,r,o,a)))}(e,s,n,o,i,r,a);if(Kt in s){if(o){const{allOf:e,...t}=s;return[...e,t]}try{const e=[],t=[];null===(l=s.allOf)||void 0===l||l.forEach((n=>{"object"==typeof n&&n.contains?e.push(n):t.push(n)})),e.length&&(s={...s,allOf:t}),s=a?a(s):function(e){return wo(e)}(s),e.length&&(s.allOf=e)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:t,...n}=s;return n}}return ln in s&&an in s&&(s=Object.keys(s.properties).reduce(((t,o)=>{const i=ho(t,o);return se(i)||(t.properties[o]=co(e,{allOf:[t.properties[o],...Object.values(i)]},n,h(r,[o]),a)),t}),{...s,properties:{...s.properties}})),an in s||Gt in s&&!1!==s.additionalProperties?function(e,t,n,r,o){const i={...t,properties:{...t.properties}},a=r&&Vt(r)?r:{};return Object.keys(a).forEach((t=>{if(!(t in i.properties)){if(an in i){const r=ho(i,t);if(!se(r))return i.properties[t]=co(e,{[Kt]:Object.values(r)},n,h(a,[t]),o),void lt(i.properties,[t,Ht],!0)}if(Gt in i&&!1!==i.additionalProperties){let r;r="boolean"!=typeof i.additionalProperties?fn in i.additionalProperties?co(e,{[fn]:h(i.additionalProperties,[fn])},n,a,o):"type"in i.additionalProperties?{...i.additionalProperties}:Jt in i.additionalProperties||on in i.additionalProperties?{type:"object",...i.additionalProperties}:{type:io(h(a,[t]))}:{type:io(h(a,[t]))},i.properties[t]=r,lt(i.properties,[t,Ht],!0)}else i.properties[t]={type:"null"},lt(i.properties,[t,Ht],!0)}})),i}(e,s,n,r,a):s}))}function ko(e,t,n,r,o,i,a){const{dependencies:l,...s}=t,u=function(e,t,n,r,o){let i;const{oneOf:a,anyOf:l,...s}=t;if(Array.isArray(a)?i=a:Array.isArray(l)&&(i=l),i){const a=void 0===o&&r?{}:o,l=oo(t);i=i.map((e=>po(e,n,[])));const u=uo(e,a,i,n,l);if(r)return i.map((e=>lo(s,e)));t=lo(s,i[u])}return[t]}(e,s,n,r,i);return u.flatMap((t=>So(e,l,t,n,r,o,i,a)))}function So(e,t,n,r,o,i,a,l){let s=[n];for(const u in t){if(!o&&void 0===h(a,[u]))continue;if(n.properties&&!(u in n.properties))continue;const[c,f]=to(u,t);return Array.isArray(f)?s[0]=Eo(n,f):Vt(f)&&(s=jo(e,n,r,u,f,o,i,a,l)),s.flatMap((t=>So(e,c,t,r,o,i,a,l)))}return s}function Eo(e,t){if(!t)return e;const n=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:n}}function jo(e,t,n,r,o,i,a,l,s){return $o(e,o,n,l,i,a,s).flatMap((o=>{const{oneOf:u,...c}=o;if(t=lo(t,c),void 0===u)return t;const f=u.map((t=>"boolean"!=typeof t&&fn in t?mo(e,t,n,i,a,l):[t]));return fo(f).flatMap((o=>function(e,t,n,r,o,i,a,l,s){const u=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[r]:o}=t.properties;return!!o&&(e.isValid({type:"object",properties:{[r]:o}},l,n)||i)}));return i||1===u.length?u.flatMap((o=>{const u=o,[c]=to(r,u.properties),f={...u,properties:c};return $o(e,f,n,l,i,a,s).map((e=>lo(t,e)))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t])}(e,t,n,r,o,i,a,l,s)))}))}function Oo(e,t,n,r,o,i={},a){if(Array.isArray(n[o])){const l=oo(n)||r,s=n[o].map((n=>co(e,n,t,i,a))),u=h(i,l);if(void 0!==u)return s.find((e=>er(h(e,[ln,l,Xt],h(e,[ln,l,Yt])),u)))}}function xo(e,t,n,r,o){let i=n;if(v(n,fn)&&(i=co(e,n,t,void 0,o)),se(r))return i;const a=Array.isArray(r)?r:r.split("."),[l,...s]=a;return l&&v(i,l)?(i=h(i,l),xo(e,t,i,s,o)):void 0}function _o(e,t,n,r,o,i){const a=xo(e,t,n,r,i);return void 0===a?o:a}const Co={title:"!@#$_UNKNOWN_$#@!"},Do={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function Io(e,t,n,r,o){let i=0;return n&&(Y(n.properties)?i+=function(e,t,n){var r=B(e)?Re:at,o=arguments.length<3;return r(e,s(t),n,o,R)}(n.properties,((n,i,a)=>{const l=h(r,a);if("boolean"==typeof i)return n;if(v(i,fn)){const r=co(e,i,t,l,o);return n+Io(e,t,r,l||{},o)}if((v(i,on)||v(i,Jt))&&l){const r=v(i,on)?on:Jt,a=oo(i);return n+Ao(e,t,l,h(i,r),-1,a,o)}if("object"===i.type)return Y(l)&&(n+=1),n+Io(e,t,i,l,o);if(i.type===io(l)){let e=n+1;return i.default?e+=l===i.default?1:-1:i.const&&(e+=l===i.const?1:-1),e}return n}),0):We(n.type)&&n.type===io(r)&&(i+=1)),i}function Ao(e,t,n,r,o=-1,i,a){const l=r.map((e=>po(e,t,[]))),s=so(n,r,i);if(Ye(s))return s;const u=l.reduce(((r,o,a)=>(1===uo(e,n,[Do,o],t,i)&&r.push(a),r)),[]);if(1===u.length)return u[0];u.length||ct(l.length,(e=>u.push(e)));const c=new Set,{bestIndex:f}=u.reduce(((r,o)=>{const{bestScore:i}=r,s=Io(e,t,l[o],n,a);return c.add(s),s>i?{bestIndex:o,bestScore:s}:r}),{bestIndex:o,bestScore:0});return 1===c.size&&o>=0?o:f}function Fo(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>Vt(e)))}function Mo(e,t,n=!1,r=!1,o=!1){if(Array.isArray(t)){const i=Array.isArray(e)?e:[],a=o?t:i,l=(o?i:t).map(((e,l)=>void 0!==a[l]?Mo(i[l],t[l],n,r,o):e));return(n||o)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(Vt(t)){const i=Object.assign({},e);return Object.keys(t).reduce(((i,a)=>{var l;const s=h(t,a),u=Vt(e)&&a in e,c=a in t,f=null!==(l=h(e,a))&&void 0!==l?l:{},d=u&&Object.entries(f).some((([,e])=>Vt(e))),m=u&&Vt(h(e,a)),p=c&&Vt(s);return m&&p&&!d?(i[a]={...h(e,a),...s},i):(i[a]=Mo(h(e,a),s,n,r,o&&(u||!c)),i)}),i)}return r&&(void 0!==e&&Xe(t)||"number"==typeof t&&isNaN(t))||o&&!Xe(t)?e:t}function Po(e,t,n=!1){return Object.keys(t).reduce(((r,o)=>{const i=e?e[o]:{},a=t[o];if(e&&o in e&&Vt(a))r[o]=Po(i,a,n);else if(n&&Array.isArray(i)&&Array.isArray(a)){let e=a;"preventDuplicates"===n&&(e=a.reduce(((e,t)=>(i.includes(t)||e.push(t),e)),[])),r[o]=i.concat(e)}else r[o]=a;return r}),Object.assign({},e))}function To(e){return Array.isArray(e.enum)&&1===e.enum.length||Yt in e}function No(e,t,n={},r){const o=co(e,t,n,void 0,r),i=o.oneOf||o.anyOf;return!!Array.isArray(o.enum)||!!Array.isArray(i)&&i.every((e=>"boolean"!=typeof e&&To(e)))}function Ro(e,t,n,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&No(e,t.items,n,r)}function Uo(e){const t=e[Yt],n=ao(e);return Vt(t)&&We(null==t?void 0:t.$data)&&"object"!==n&&"array"!==n}function qo(e,t){if(e.enum){let n,r;if(t){const{enumNames:e,enumOrder:o}=En(t);n=e,r=o}let o=e.enum.map(((e,t)=>({label:Array.isArray(n)?n[t]||String(e):(null==n?void 0:n[String(e)])||String(e),value:e})));return r&&(o=function(e,t){const n=new Map(e.map((e=>[String(e.value),e]))),r=new Set(t.filter((e=>"*"!==e)).map(String)),o=e.filter((e=>!r.has(String(e.value))));return t.flatMap((e=>{if("*"===e)return o;const t=n.get(String(e));return t?[t]:[]}))}(o,r)),o}let n,r;e.anyOf?(n=e.anyOf,r=null==t?void 0:t.anyOf):e.oneOf&&(n=e.oneOf,r=null==t?void 0:t.oneOf);let o=oo(e);if(t){const{optionsSchemaSelector:e=o}=En(t);o=e}return n&&n.map(((e,t)=>{const{title:n}=En(null==r?void 0:r[t]),i=e;let a,l=n;if(o){const e=h(i,[ln,o],{});a=h(e,Xt,h(e,Yt)),l=l||(null==e?void 0:e.title)||i.title||String(a)}else a=function(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(Yt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(i),l=l||i.title||String(a);return{schema:i,label:l,value:a}}))}const zo=["string","number","integer","boolean","null"];var Lo;function Bo(e,t=Lo.Ignore,n=-1){if(n>=0){if(Array.isArray(e.items)&&n<e.items.length){const t=e.items[n];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==Lo.Ignore&&Vt(e.additionalItems)?e.additionalItems:{}}function Vo(e,t){const{default:n,type:r}=e;return Array.isArray(r)&&r.includes("null")&&se(t)&&null===n?null:t}function Wo(e,t,n,r,o,i=[],a={},l=!1,s=!1){const{emptyObjectFields:u="populateAllDefaults"}=a;if(!0===r||l)e[t]=n;else if("excludeObjectChildren"===r)(s&&void 0!==n||!Vt(n)||!se(n))&&(e[t]=n);else if("skipDefaults"!==u){const r=void 0===o?i.includes(t):o;Vt(n)?"skipEmptyDefaults"===u?se(n)||(e[t]=n):se(n)&&!i.includes(t)||!r&&"populateRequiredDefaults"===u||(e[t]=n):void 0!==n&&("populateAllDefaults"===u||"skipEmptyDefaults"===u||r&&i.includes(t))&&(e[t]=n)}}function Ho(e,t,n={}){const{parentDefaults:r,rawFormData:o,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:l=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:d}=n;let h=Vt(o)?o:{};const m=Vt(t)?t:{};let p=r,v=null,y=s,b=l;if(void 0===m[Yt]||"never"===(null==s?void 0:s.constAsDefaults)||Uo(m))if(!Vt(p)||!Vt(m.default)||m[Jt]||m[on]||m[fn])if(!(Xt in m)||m[Jt]||m[on]||m[fn]){if(fn in m){const e=m[fn];l.includes(e)||(b=l.concat(e),v=ro(e,i));const t=void 0===o||Vt(o)&&se(o);v&&!p&&t&&(p=m.default),f&&v&&!Vt(o)&&(h=o)}else if(Zt in m){const t={...Go(e,m,n,p),...h};v=ko(e,m,i,!1,[],t,u)[0]}else if(Fo(m))p=m.items.map(((t,n)=>Ho(e,t,{rootSchema:i,includeUndefinedValues:a,_recurseList:l,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:h,required:c,shouldMergeDefaultsIntoFormData:f})));else if(on in m){const{oneOf:t,...n}=m;if(0===t.length)return;const r=oo(m),{type:a="null"}=n;!Array.isArray(a)&&zo.includes(a)&&"skipOneOf"===(null==y?void 0:y.constAsDefaults)&&(y={...y,constAsDefaults:"never"}),v=t[Ao(e,i,null!=o?o:m.default,t,0,r,u)],v=lo(n,v)}else if(Jt in m){const{anyOf:t,...n}=m;if(0===t.length)return;const r=oo(m);v=t[Ao(e,i,null!=o?o:m.default,t,0,r,u)],v=lo(n,v)}}else p=m.default;else p=Po(p,m.default);else p=m[Yt];if(v)return Ho(e,v,{rootSchema:i,includeUndefinedValues:a,_recurseList:b,experimental_defaultFormStateBehavior:y,experimental_customMergeAllOf:u,parentDefaults:p,rawFormData:null!=o?o:h,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:d});void 0===p&&(p=m.default);const g=Go(e,m,n,p);let w=null!=g?g:p;if(f){const{arrayMinItems:t={}}=s||{},{mergeExtraDefaults:n}=t,r=function(e,t,n,r,o,i){const a=!To(t)&&No(e,t,n,i);let l=r;if(a){const e=qo(t);l=(null==e?void 0:e.some((e=>er(e.value,r))))?r:void 0}return t[Yt]&&"always"===(null==o?void 0:o.constAsDefaults)&&(l=t.const),l}(e,m,i,o,s,u);Vt(o)&&!(Kt in m)||(w=Mo(w,r,n,!0))}return w}function Go(e,t,n={},r){switch(ao(t)){case"object":return function(e,t,{rawFormData:n,rootSchema:r={},includeUndefinedValues:o=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,required:s,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const d=Vt(n)?n:{},m=t,p="populateDefaults"===(null==a?void 0:a.allOf)&&Kt in m||"skipEmptyDefaults"!==(null==a?void 0:a.emptyObjectFields)&&tn in m?co(e,m,r,d,l):m,v=p[Yt],y=Object.keys(p.properties||{}).reduce(((t,n)=>{var m;const y=h(p,[ln,n],{}),b=Vt(v)&&void 0!==v[n],g=(Vt(y)&&Yt in y||b)&&"never"!==(null==a?void 0:a.constAsDefaults)&&!Uo(y);return Wo(t,n,Ho(e,y,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===o,parentDefaults:h(f,[n]),rawFormData:h(d,[n]),required:null===(m=p.required)||void 0===m?void 0:m.includes(n),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}),o,s,p.required,a,g,"null"===(null==y?void 0:y.type)),t}),{});if(p.additionalProperties&&!c){const t=Vt(p.additionalProperties)?p.additionalProperties:{},n=new Set,m=[];Object.keys(d).filter((e=>!p.properties||!p.properties[e])).forEach((e=>{n.add(e),m.push(e)})),Vt(f)&&0===m.length&&Object.keys(f).filter((e=>!p.properties||!p.properties[e])).forEach((e=>n.add(e))),n.forEach((n=>{var v;const b=Ho(e,t,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===o,parentDefaults:h(f,[n]),rawFormData:h(d,[n]),required:null===(v=p.required)||void 0===v?void 0:v.includes(n),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});Wo(y,n,b,o,s,m)}))}return Vo(t,y)}}(e,t,n,r);case"array":return function(e,t,{rawFormData:n,rootSchema:r={},_recurseList:o=[],experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:a,required:l,requiredAsRoot:s=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var d,m;const p=t,v=null!==(d=null==i?void 0:i.arrayMinItems)&&void 0!==d?d:{},{populate:y,mergeExtraDefaults:b}=v,g="never"===y,w="requiredOnly"===y,$="all"===y||!g&&!w,k=null!==(m=null==v?void 0:v.computeSkipPopulate)&&void 0!==m?m:()=>!1,S="skipEmptyDefaults"===(null==i?void 0:i.emptyObjectFields)?void 0:[];if(Array.isArray(f)&&(f=f.map(((t,s)=>{const f=Bo(p,Lo.Fallback,s),d=Array.isArray(n)?n[s]:void 0;return Ho(e,f,{rootSchema:r,_recurseList:o,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:a,parentDefaults:t,rawFormData:d,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})}))),Array.isArray(n)){const t=Bo(p);if(g)f=n;else{const s=n.map(((n,s)=>Ho(e,t,{rootSchema:r,_recurseList:o,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:a,rawFormData:n,parentDefaults:h(f,[s]),required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})));f=Mo(f,s,(w&&l||$)&&b)}}if(!1===(Vt(p)&&Yt in p&&"never"!==(null==i?void 0:i.constAsDefaults))){if(g)return null!=f?f:S;if(w&&!l)return f||void 0}let E;const j=Array.isArray(f)?f.length:0;if(!p.minItems||Ro(e,p,r,a)||k(e,p,r)||p.minItems<=j)E=f||!l&&!s?f:S;else{const t=f||[],n=Bo(p,Lo.Invert),s=n.default,c=Array.from({length:p.minItems-j},(()=>Ho(e,n,{parentDefaults:s,rootSchema:r,_recurseList:o,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:a,required:l,shouldMergeDefaultsIntoFormData:u})));E=t.concat(c)}return Vo(t,E)}(e,t,n,r)}}function Ko(e,t,n,r,o=!1,i,a,l){if(!Vt(t))throw new Error("Invalid schema: "+t);const s=co(e,t,r,n,a),u=Ho(e,s,{rootSchema:r,includeUndefinedValues:o,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:a,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:l,requiredAsRoot:!0});if("object"!==s.type&&Vt(s.default))return{...u,...n};if(Vt(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:e}=i||{};return Mo(u,n,!0,"useDefaultIfFormDataUndefined"===e,!0)}return u}function Jo(e={}){return"widget"in En(e)&&"hidden"!==En(e).widget}function Yo(e,t,n={},r,o){if("files"===n[wn])return!0;if(t.items){const n=co(e,t.items,r,void 0,o);return"string"===n.type&&"data-url"===n.format}return!1}function Xo(e,t,n,r,o,i=[],a){if(fn in t||Zt in t||Kt in t||tn in t){const l=co(e,t,r,o,a);if(-1===i.findIndex((e=>er(e,l))))return Xo(e,l,n,r,o,i.concat(l),a)}let l={[rn]:n.replace(/^\./,"")};if(on in t||Jt in t){const s=on in t?t.oneOf:t.anyOf,u=oo(t),c=s[Ao(e,r,o,s,0,u,a)];l={...l,...Xo(e,c,n,r,o,i,a)}}if(Gt in t&&!1!==t[Gt]){lt(l,bn,!0);const s=Y(t[Gt])?t[Gt]:{},u=h(t,ln,{});for(const t of Object.keys(null!=o?o:{}))t in u||(l[t]=Xo(e,s,`${n}.${t}`,r,h(o,[t]),i,a))}if(nn in t&&Array.isArray(o)){const{items:s,additionalItems:u}=t;Array.isArray(s)?o.forEach(((t,o)=>{s[o]?l[o]=Xo(e,s[o],`${n}.${o}`,r,t,i,a):u?l[o]=Xo(e,u,`${n}.${o}`,r,t,i,a):console.warn(`Unable to generate path schema for "${n}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{l[o]=Xo(e,s,`${n}.${o}`,r,t,i,a)}))}else if(ln in t)for(const s in t.properties){const u=h(t,[ln,s],{});l[s]=Xo(e,u,`${n}.${s}`,r,h(o,[s]),i,a)}return l}function Zo(e,t,n="",r,o,i){return Xo(e,t,n,r,o,void 0,i)}function Qo(e,t){if(0===t.length&&"object"!=typeof e)return e;const n=it(e,t);return Array.isArray(e)?Object.keys(n).map((e=>n[e])):n}function ei(e,t){const n=(e,t)=>"object"!=typeof e||se(e)||t&&!se(e),r=(e,o=[],i=[[]])=>{const a=Object.keys(e);return a.forEach((l=>{const s=e[l];if("object"==typeof s){const e=i.map((e=>[...e,l]));s[bn]&&""!==s[rn]?o.push(s[rn]):r(s,o,e)}else l===rn&&""!==s&&i.forEach((e=>{const r=h(t,e),i=1===a.length;(n(r,i)||Array.isArray(r)&&r.every((e=>n(e,i))))&&o.push(e)}))})),o};return r(e)}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Lo||(Lo={}));const ti=Symbol("no Value");function ni(e,t,n,r,o={},i){let a;if(v(n,ln)){const l={};if(v(r,ln)){const e=h(r,ln,{});Object.keys(e).forEach((e=>{v(o,e)&&(l[e]=void 0)}))}const s=Object.keys(h(n,ln,{})),u={};s.forEach((a=>{const s=h(o,a);let c=h(r,[ln,a],{}),f=h(n,[ln,a],{});v(c,fn)&&(c=co(e,c,t,s,i)),v(f,fn)&&(f=co(e,f,t,s,i));const d=h(c,"type"),m=h(f,"type");if(!d||d===m)if(v(l,a)&&delete l[a],"object"===m||"array"===m&&Array.isArray(s)){const n=ni(e,t,f,c,s,i);void 0===n&&"array"!==m||(u[a]=n)}else{const e=h(f,"default",ti),t=h(c,"default",ti);e!==ti&&e!==s&&(t===s?l[a]=e:!0===h(f,"readOnly")&&(l[a]=void 0));const n=h(f,"const",ti),r=h(c,"const",ti);n!==ti&&n!==s&&(l[a]=r===s?n:void 0)}})),a={..."string"==typeof o||Array.isArray(o)?void 0:o,...l,...u}}else if("array"===h(r,"type")&&"array"===h(n,"type")&&Array.isArray(o)){let l=h(r,"items"),s=h(n,"items");if("object"!=typeof l||"object"!=typeof s||Array.isArray(l)||Array.isArray(s))"boolean"==typeof l&&"boolean"==typeof s&&l===s&&(a=o);else{v(l,fn)&&(l=co(e,l,t,o,i)),v(s,fn)&&(s=co(e,s,t,o,i));const r=h(l,"type"),u=h(s,"type");if(!r||r===u){const r=h(n,"maxItems",-1);a="object"===u?o.reduce(((n,o)=>{const a=ni(e,t,s,l,o,i);return void 0!==a&&(r<0||n.length<r)&&n.push(a),n}),[]):r>0&&o.length>r?o.slice(0,r):o}}}return a}class ri{constructor(e,t,n,r){this.rootSchema=t&&t[hn]===Sn?eo(t,h(t,en,"#")):t,this.validator=e,this.experimental_defaultFormStateBehavior=n,this.experimental_customMergeAllOf=r}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,n={},r){return!(!e||!t||this.validator===e&&er(this.rootSchema,t)&&er(this.experimental_defaultFormStateBehavior,n)&&this.experimental_customMergeAllOf===r)}findFieldInSchema(e,t,n){return function(e,t,n,r,o={},i){const a=Array.isArray(r)?[...r]:r.split(".");let l=n;const s=a.pop();a.length&&a.forEach((n=>{l=_o(e,t,l,[ln,n],{},i),v(l,on)?l=Oo(e,t,l,s,on,h(o,n),i):v(l,Jt)&&(l=Oo(e,t,l,s,Jt,h(o,n),i))})),v(l,on)?l=Oo(e,t,l,s,on,o,i):v(l,Jt)&&(l=Oo(e,t,l,s,Jt,o,i));let u=_o(e,t,l,[ln,s],Co,i);u===Co&&(u=void 0);const c=_o(e,t,l,un,[],i);let f;return u&&Array.isArray(c)&&(f=c.includes(s)),{field:u,isRequired:f}}(this.validator,this.rootSchema,e,t,n,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,t,n,r){return Oo(this.validator,this.rootSchema,e,t,n,r,this.experimental_customMergeAllOf)}getDefaultFormState(e,t,n=!1,r){return Ko(this.validator,e,t,this.rootSchema,n,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,r)}getDisplayLabel(e,t,n){return function(e,t,n={},r,o,i){const a=En(n,o),{label:l=!0}=a;let s=Boolean(l);if(s){const o=ao(t),a=h(t,Ht,!1);"array"===o&&(s=a||Ro(e,t,r,i)||Yo(e,t,n,r,i)||Jo(n)),"object"===o&&(s=a),"boolean"===o&&n&&!n[wn]&&(s=!1),n&&n["ui:field"]&&(s=!1)}return s}(this.validator,e,t,this.rootSchema,n,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,t,n,r){return Ao(this.validator,this.rootSchema,e,t,n,r,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,n){return uo(this.validator,e,t,this.rootSchema,n)}getFromSchema(e,t,n){return _o(this.validator,this.rootSchema,e,t,n,this.experimental_customMergeAllOf)}isFilesArray(e,t){return Yo(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Ro(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return No(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,t){return function(e,t,n={},r){return Qo(r,ei(Zo(e,co(e,t,n,r),"",n,r),r).map((e=>Array.isArray(e)?e.join("."):e)))}(this.validator,e,this.rootSchema,t)}retrieveSchema(e,t,n){return co(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf,n)}sanitizeDataForNewSchema(e,t,n){return ni(this.validator,this.rootSchema,e,t,n,this.experimental_customMergeAllOf)}toPathSchema(e,t,n){return Zo(this.validator,e,t,this.rootSchema,n,this.experimental_customMergeAllOf)}}function oi(e,t){let n=String(e);for(;n.length<t;)n="0"+n;return n}function ii(e,t){if(e<=0&&t<=0)e=(new Date).getFullYear()+e,t=(new Date).getFullYear()+t;else if(e<0||t<0)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);if(e>t)return ii(t,e).reverse();const n=[];for(let r=e;r<=t;r++)n.push({value:r,label:oi(r,2)});return n}function ai(e,t){if(Object.is(e,t))return!0;if(null==e||null==t)return!1;if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Object.prototype.hasOwnProperty.call(t,o)||!Object.is(e[o],t[o]))return!1}return!0}function li(e,t){return function(e,t){let n=e;if(Array.isArray(t)){const e=n.split(/(%\d)/);t.forEach(((t,n)=>{const r=e.findIndex((e=>e===`%${n+1}`));r>=0&&(e[r]=t)})),n=e.join("")}return n}(e,t)}function si(e,t){return Array.isArray(t)?t.some((t=>er(t,e))):er(t,e)}function ui(e,t=[],n){if(Array.isArray(e))return e.map((e=>ui(e,t))).filter((e=>e!==n));const r=""===e||null===e?-1:Number(e),o=t[r];return o?o.value:n}function ci(e,t,n){if(""===e||!Array.isArray(t))return n;const r=t.find((t=>String(t.value)===e));if(r)return r.value;const o=Number(e);return!isNaN(o)&&o>=0&&o<t.length?t[o].value:n}function fi(e,t,n="indexed",r){return"realValue"!==n?ui(e,t,r):Array.isArray(e)?e.map((e=>ci(e,t,r))):ci(e,t,r)}function di(e,t,n="indexed"){return"realValue"!==n?String(t):Xe(e)?"":String("object"==typeof e?t:e)}class hi{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?h(this.errorSchema,e):this.errorSchema;var n,r;return!t&&e&&(t={},n=this.errorSchema,r="function"==typeof(r=Object)?r:void 0,null==n||p(n,e,t,r)),t}resetAllErrors(e){return this.errorSchema=e?T(e):{},this}addErrors(e,t){const n=this.getOrCreateErrorBlock(t);let r=h(n,Qt);return Array.isArray(r)||(r=[],n[Qt]=r),Array.isArray(e)?lt(n,Qt,[...new Set([...r,...e])]):lt(n,Qt,[...new Set([...r,e])]),this}setErrors(e,t){const n=this.getOrCreateErrorBlock(t),r=Array.isArray(e)?[...new Set([...e])]:[e];return lt(n,Qt,r),this}clearErrors(e){return lt(this.getOrCreateErrorBlock(e),Qt,[]),this}}function mi(e,t){const n=$e(e),r=$e(t);return e===t||!n&&!r?[]:n&&!r?w(e):!n&&r?w(t):[...w(y(e,((e,n)=>!er(e,h(t,n))))),...ae(w(t),w(e))]}function pi(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function vi(e,t,n={},r=!0){const o={type:t||"text",...pi(e)};return n.inputType?o.type=n.inputType:t||("number"===e.type?(o.type="number",r&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),["date","datetime-local","time","week","month"].includes(o.type)&&(void 0!==e.formatMinimum&&(o.min=e.formatMinimum),void 0!==e.formatMaximum&&(o.max=e.formatMaximum)),n.autocomplete&&(o.autoComplete=n.autocomplete),n.accept&&(o.accept=n.accept),o}function yi(e){var t;return null!==(t=null==e?void 0:e.optionValueFormat)&&void 0!==t?t:"indexed"}const bi={props:{disabled:!1},submitText:"Submit",norender:!1};function gi(e,t,n={}){const{templates:r}=t;return"ButtonTemplates"===e?r[e]:Object.hasOwn(n,e)&&"string"==typeof n[e]&&Object.hasOwn(r,n[e])?r[n[e]]:n[e]||r[e]}function wi(){if("undefined"==typeof process||"test"!==h(process,"env.NODE_ENV"))return{};const e=new Map;return new Proxy({},{get:(t,n)=>(e.has(n)||e.set(n,yt("test-id-")),e.get(n))})}var $i,ki,Si={exports:{}},Ei={},ji=(ki||(ki=1,Si.exports=function(){if($i)return Ei;$i=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function p(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case f:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case h:case d:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Ei.ContextConsumer=l,Ei.ContextProvider=a,Ei.Element=t,Ei.ForwardRef=u,Ei.Fragment=r,Ei.Lazy=h,Ei.Memo=d,Ei.Portal=n,Ei.Profiler=i,Ei.StrictMode=o,Ei.Suspense=c,Ei.SuspenseList=f,Ei.isAsyncMode=function(){return!1},Ei.isConcurrentMode=function(){return!1},Ei.isContextConsumer=function(e){return p(e)===l},Ei.isContextProvider=function(e){return p(e)===a},Ei.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ei.isForwardRef=function(e){return p(e)===u},Ei.isFragment=function(e){return p(e)===r},Ei.isLazy=function(e){return p(e)===h},Ei.isMemo=function(e){return p(e)===d},Ei.isPortal=function(e){return p(e)===n},Ei.isProfiler=function(e){return p(e)===i},Ei.isStrictMode=function(e){return p(e)===o},Ei.isSuspense=function(e){return p(e)===c},Ei.isSuspenseList=function(e){return p(e)===f},Ei.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===f||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},Ei.typeOf=p,Ei}()),Si.exports),Oi=o(ji);const xi={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function _i(e,t,n={}){const r=ao(e);if("function"==typeof t||t&&Oi.isForwardRef(Ot.createElement(t))||Oi.isMemo(t))return function(e){let t=h(e,"MergedWidget");if(!t){const n=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...r})=>Bt.jsx(e,{options:{...n,...t},...r}),lt(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in n)return _i(e,n[t],n);if("string"==typeof r){if(!(r in xi))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(e)}`);if(t in xi[r])return _i(e,n[xi[r][t]],n)}throw new Error(`No widget '${t}' for type '${r}' in schema: ${JSON.stringify(e)}`)}function Ci(e){return function(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t.toString(16)}(function(e){const t=new Set;return JSON.stringify(e,((e,n)=>(t.add(e),n))),JSON.stringify(e,Array.from(t).sort())}(e))}function Di(e,t){return`${We(e)?e:e[en]}__${t}`}function Ii(e){return Di(e,"description")}function Ai(e){return Di(e,"error")}function Fi(e){return Di(e,"examples")}function Mi(e){return Di(e,"help")}function Pi(e){return Di(e,"title")}function Ti(e,t=!1){const n=t?` ${Fi(e)}`:"";return`${Ai(e)} ${Ii(e)} ${Mi(e)}${n}`}function Ni(e,t){return`${e}-${t}`}function Ri(e,t){return Di(e,t)}function Ui(e,t){return Di(e,`optional${t}`)}function qi(e){return!Xe(e)&&(!Y(e)||Array.isArray(e)||!se(e))}function zi(e,t,n){return t?n:e}function Li(e,t,n){const r=["layoutGridLookupMap"];return v(e,yn)&&r.unshift(yn),h(e,[...r,t],n)}function Bi(e){if(Xe(e)||""===e)return!0;if(Array.isArray(e))return 0===e.length;if(Vt(e)){const t=e;return Object.keys(t).every((e=>Bi(t[e])))}return!1}function Vi(e,t,n,r){if(!Vt(t))return r;const o=co(e,t,n,r);if(Array.isArray(r)){const t=o.items;if(!t)return r;let i=!1;const a=r.map(((r,a)=>{let l=t;Array.isArray(t)&&(l=t[a]||o.additionalItems||{});const s=Vi(e,l,n,r);return s!==r&&(i=!0),void 0===s?{}:s}));return i?a:r}const{properties:i,required:a=[]}=o;if(!Vt(r)||!i)return r;const l={},s=r;let u=!1;for(const t of Object.keys(s)){const r=s[t],o=i[t]||{},c=a.includes(t),f=Vt(r),d=Array.isArray(r);if((f||d)&&i[t]){const i=Vi(e,o,n,r);if(!c&&Bi(i))continue;l[t]=i,u=!0}else{if(!c&&Bi(r)&&i[t])continue;l[t]=r,Bi(r)||(u=!0)}}return u||0!==Object.keys(l).length?l:void 0}function Wi(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}}function Hi(e){return!!e.const||(!(!e.enum||1!==e.enum.length||!0!==e.enum[0])||(e.anyOf&&1===e.anyOf.length?Hi(e.anyOf[0]):e.oneOf&&1===e.oneOf.length?Hi(e.oneOf[0]):!!e.allOf&&e.allOf.some((e=>Hi(e)))))}function Gi(e,t,n,r="customDeep"){if("always"===r)return!0;if("shallow"===r){const{props:r,state:o}=e;return!ai(r,t)||!ai(o,n)}const{props:o,state:i}=e;return!er(o,t)||!er(i,n)}function Ki(e){const t=pt(e.map((e=>Y(e)?ao(e):void 0)).flat().filter((e=>void 0!==e)));return 1===t.length?t[0]:t}function Ji(e,t,n,r){const{enableOptionalDataFieldForType:o=[]}=En(r,e.globalUiOptions);let i;return i=Jt in t&&Array.isArray(t[Jt])?Ki(t[Jt]):on in t&&Array.isArray(t[on])?Ki(t[on]):ao(t),!(function(e,t){const{rootSchema:n,schemaUtils:r}=e;if(er(t,n))return!0;if(fn in n){const e=r.retrieveSchema(n);return er(t,ot(e,dn))}return!1}(e,t)||n||!i||Array.isArray(i)||!o.find((e=>e===i)))}function Yi(e,t=!0){const{year:n,month:r,day:o,hour:i=0,minute:a=0,second:l=0}=e,s=Date.UTC(n,r-1,o,i,a,l),u=new Date(s).toJSON();return t?u:u.slice(0,10)}function Xi(e,t=[]){if(!e)return[];let n=[];return Qt in e&&(n=n.concat(e[Qt].map((e=>{const n=`.${t.join(".")}`;return{property:n,message:e,stack:`${n} ${e}`}})))),Object.keys(e).reduce(((n,r)=>{if(r!==Qt){const o=e[r];$e(o)&&(n=n.concat(Xi(o,[...t,r])))}return n}),n)}function Zi(e,t,n,r){const o=Array.isArray(n)?n:null==n?void 0:n.path,i=""===e?[]:[e],a=o?o.concat(...i):i,l=[t.idPrefix,...a].join(t.idSeparator);let s;return t.nameGenerator&&a.length>0&&(s=t.nameGenerator(a,t.idPrefix,r)),{path:a,[en]:l,...void 0!==s&&{name:s}}}function Qi(e){return Object.keys(e).reduce(((t,n)=>{if("addError"===n)return t;{const r=e[n];return $e(r)?{...t,[n]:Qi(r)}:{...t,[n]:r}}}),{})}function ea(e){const{className:t="form-control",type:n,range:r,value:o,select:i,rootId:a,name:l,disabled:s,readonly:u,autofocus:c,registry:f,onBlur:d,onFocus:h}=e,m=`${a}_${n}`,{SelectWidget:p}=f.widgets,v=Ot.useCallback((e=>i(n,e)),[i,n]);return Bt.jsx(p,{schema:{type:"integer"},id:m,name:l,className:t,options:{enumOptions:ii(r[0],r[1])},placeholder:n,value:o,disabled:s,readonly:u,autofocus:c,onChange:v,onBlur:d,onFocus:h,registry:f,label:"","aria-describedby":Ti(a)})}function ta(e){const t=Ot.useRef(e);return er(e,t.current)||(t.current=e),t.current}function na(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function ra(e){const{name:t,size:n,type:r}=e;return new Promise(((o,i)=>{const a=new window.FileReader;a.onerror=i,a.onload=e=>{var i;"string"==typeof(null===(i=e.target)||void 0===i?void 0:i.result)?o({dataURL:na(e.target.result,t),name:t,size:n,type:r}):o({dataURL:null,name:t,size:n,type:r})},a.readAsDataURL(e)}))}function oa(e){return e.reduce(((e,t)=>{if(!t)return e;try{const{blob:n,name:r}=function(e){var t;if(-1===e.indexOf("data:"))throw new Error("File is invalid: URI must be a dataURI");const n=e.slice(5).split(";base64,");if(2!==n.length)throw new Error("File is invalid: dataURI must be base64");const[r,o]=n,[i,...a]=r.split(";"),l=i||"",s=decodeURI((null===(t=a.map((e=>e.split("="))).find((([e])=>"name"===e)))||void 0===t?void 0:t[1])||"unknown");try{const e=atob(o),t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return{blob:new window.Blob([new Uint8Array(t)],{type:l}),name:s}}catch(e){throw new Error("File is invalid: "+e.message)}}(t);return[...e,{dataURL:t,name:r,size:n.size,type:n.type}]}catch(t){return e}}),[])}function ia(e){if(!e)return"";const t=new Date(e);return`${oi(t.getFullYear(),4)}-${oi(t.getMonth()+1,2)}-${oi(t.getDate(),2)}T${oi(t.getHours(),2)}:${oi(t.getMinutes(),2)}:${oi(t.getSeconds(),2)}.${oi(t.getMilliseconds(),3)}`}function aa(e,t,n=!1){if(!t)return e;const{errors:r,errorSchema:o}=e;let i=Xi(t),a=t;return se(o)||(a=Po(o,t,!n||"preventDuplicates"),i=[...r].concat(i)),{errorSchema:a,errors:i}}function la(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=la(e[t]);return e}([...e]):Y(e)?function(e){for(const t in e){const n=e[t];e[t]=t===fn&&"string"==typeof n&&n.startsWith("#")?gn+n:la(n)}return e}({...e}):e}var sa,ua,ca;function fa(){return yt("rjsf-array-item-")}function da(e){return Array.isArray(e)?e.map((e=>({key:fa(),item:e}))):[]}function ha(e){return Array.isArray(e)?e.map((e=>e.item)):[]}function ma(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}function pa(e,t,n,r){let{addable:o}=En(r,e.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||n.length<t.maxItems),o}function va(e,t,n,r){if("function"!=typeof e.items)return e.items;try{return e.items(t,n,r)}catch(e){return void console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,e)}}function ya(e,t){const{schemaUtils:n,globalFormOptions:r}=e;let o=t.items;return r.useFallbackUiForUnsupportedType&&!o?o={}:Fo(t)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Vt(e.additionalItems)}(t)&&(o=t.additionalItems),n.getDefaultFormState(o)}function ba(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:o=[],disabled:i=!1,readonly:a=!1,autofocus:l=!1,required:s=!1,placeholder:u,onBlur:c,onFocus:f,registry:d,rawErrors:h,name:m,onSelectChange:p}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:g}=d,w=qo(y.retrieveSchema(t.items,o),r?.items??r),{widget:$="select",title:k,...S}=En(r,g),E=_i(t,$,v),j=k??t.title??m,O=y.getDisplayLabel(t,r,g),x=ta(Zi("",b,n,!0));return Bt.jsx(E,{id:x[en],name:m,multiple:!0,onChange:p,onBlur:c,onFocus:f,options:{...S,enumOptions:w},schema:t,uiSchema:r,registry:d,value:o,disabled:i,readonly:a,required:s,label:j,hideLabel:!O,placeholder:u,autofocus:l,rawErrors:h,htmlName:x.name})}function ga(e){const{schema:t,fieldPathId:n,uiSchema:r,disabled:o=!1,readonly:i=!1,autofocus:a=!1,required:l=!1,hideError:s,placeholder:u,onBlur:c,onFocus:f,formData:d=[],registry:h,rawErrors:m,name:p,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:g,globalUiOptions:w}=h,{widget:$,title:k,...S}=En(r,w),E=_i(t,$,y),j=k??t.title??p,O=b.getDisplayLabel(t,r,w),x=ta(Zi("",g,n,!0));return Bt.jsx(E,{id:x[en],name:p,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:r,registry:h,value:d,disabled:o,readonly:i,hideError:s,required:l,label:j,hideLabel:!O,placeholder:u,autofocus:a,rawErrors:m,htmlName:x.name})}function wa(e){const{schema:t,uiSchema:n,fieldPathId:r,name:o,disabled:i=!1,readonly:a=!1,autofocus:l=!1,required:s=!1,onBlur:u,onFocus:c,registry:f,formData:d=[],rawErrors:h,onSelectChange:m}=e,{widgets:p,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:g="files",title:w,...$}=En(n,b),k=_i(t,g,p),S=w??t.title??o,E=v.getDisplayLabel(t,n,b),j=ta(Zi("",y,r,!0));return Bt.jsx(k,{options:$,id:j[en],name:o,multiple:!0,onChange:m,onBlur:u,onFocus:c,schema:t,uiSchema:n,value:d,disabled:i,readonly:a,required:s,registry:f,autofocus:l,rawErrors:h,label:S,hideLabel:!E,htmlName:j.name})}function $a(e){const{itemKey:t,index:n,name:r,disabled:o,hideError:i,readonly:a,registry:l,uiOptions:s,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:d,canMoveDown:h,itemSchema:m,itemData:p,itemUiSchema:v,itemFieldPathId:y,itemErrorSchema:b,autofocus:g,onBlur:w,onFocus:$,onChange:k,rawErrors:S,totalItems:E,title:j,handleAddItem:O,handleCopyItem:x,handleRemoveItem:_,handleReorderItems:C}=e,{schemaUtils:D,fields:{ArraySchemaField:I,SchemaField:A},globalUiOptions:F}=l,M=ta(y),P=I||A,T=gi("ArrayFieldItemTemplate",l,s),N=D.getDisplayLabel(m,v,F),{description:R}=En(v),U=!!R||!!m.description,{orderable:q=!0,removable:z=!0,copyable:L=!1}=s,B={moveUp:q&&d,moveDown:q&&h,copy:L&&c,remove:z&&f,toolbar:!1};B.toolbar=Object.keys(B).some((e=>B[e]));const V=Ot.useCallback((e=>{O(e,n+1)}),[O,n]),W=Ot.useCallback((e=>{x(e,n)}),[x,n]),H=Ot.useCallback((e=>{_(e,n)}),[_,n]),G=Ot.useCallback((e=>{C(e,n,n-1)}),[C,n]),K=Ot.useCallback((e=>{C(e,n,n+1)}),[C,n]),J={children:Bt.jsx(P,{name:r,title:j,index:n,schema:m,uiSchema:v,formData:p,errorSchema:b,fieldPathId:M,required:ma(m),onChange:k,onBlur:w,onFocus:$,registry:l,disabled:o,readonly:a,hideError:i,autofocus:g,rawErrors:S}),buttonsProps:{fieldPathId:M,disabled:o,readonly:a,canAdd:c,hasCopy:B.copy,hasMoveUp:B.moveUp,hasMoveDown:B.moveDown,hasRemove:B.remove,index:n,totalItems:E,onAddItem:V,onCopyItem:W,onRemoveItem:H,onMoveUpItem:G,onMoveDownItem:K,registry:l,schema:m,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:o,hasToolbar:B.toolbar,index:n,totalItems:E,readonly:a,registry:l,schema:m,uiSchema:v,parentUiSchema:u,displayLabel:N,hasDescription:U};return Bt.jsx(T,{...J})}function ka(e){const{schema:t,uiSchema:n={},errorSchema:r,fieldPathId:o,formData:i,name:a,title:l,disabled:s=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:$,handleReorderItems:k}=e,S=t.title||l||a,{schemaUtils:E,fields:j,formContext:O,globalFormOptions:x,globalUiOptions:_}=h,{OptionalDataControlsField:C}=j,D=En(n,_),I=Y(t.items)?t.items:{},A=E.retrieveSchema(I),F=ha(b),M=Ji(h,t,f,n),P=qi(i),T=pa(h,t,F,n)&&(!M||P),N=P?b:[],R=M?" rjsf-optional-array-field":"",U=e.childFieldPathId??o,q=M?Bt.jsx(C,{...e,fieldPathId:U}):void 0,z={canAdd:T,items:N.map(((e,t)=>{const{key:o,item:i}=e,l=i,j=E.retrieveSchema(I,l),_=r?r[t]:void 0,C=Zi(t,x,U),A=va(n,i,t,O);return Bt.jsx($a,{itemKey:o,index:t,name:a&&`${a}-${t}`,registry:h,uiOptions:D,parentUiSchema:n,hideError:d,readonly:u,disabled:s,required:f,title:S?`${S}-${t+1}`:void 0,canAdd:T,canMoveUp:t>0,canMoveDown:t<F.length-1,itemSchema:j,itemFieldPathId:C,itemErrorSchema:_,itemData:l,itemUiSchema:A,autofocus:c&&0===t,onBlur:m,onFocus:p,rawErrors:v,totalItems:b.length,handleAddItem:g,handleCopyItem:w,handleRemoveItem:$,handleReorderItems:k,onChange:y},o)})),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${A.type}${R}`,disabled:s,fieldPathId:o,uiSchema:n,onAddClick:g,readonly:u,required:f,schema:t,title:S,formData:F,rawErrors:v,registry:h,optionalDataControl:q},L=gi("ArrayFieldTemplate",h,D);return Bt.jsx(L,{...z})}function Sa(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:o,fieldPathId:i,name:a,title:l,disabled:s=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:$,handleReorderItems:k}=e;let{formData:S=[]}=e;const E=t.title||l||a,{schemaUtils:j,fields:O,formContext:x,globalFormOptions:_,globalUiOptions:C}=h,D=En(n,C),{OptionalDataControlsField:I}=O,A=Ji(h,t,f,n),F=qi(r),M=(Y(t.items)?t.items:[]).map(((e,t)=>j.retrieveSchema(e,S[t]))),P=Y(t.additionalItems)?j.retrieveSchema(t.additionalItems,r):null,T=e.childFieldPathId??i;S.length<M.length&&(S=S.concat(new Array(M.length-S.length)));const N=F?y:[],R=A?" rjsf-optional-array-field":"",U=A?Bt.jsx(I,{...e,fieldPathId:T}):void 0,q=pa(h,t,S,n)&&!!P&&(!A||F),z={canAdd:q,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${R}`,disabled:s,fieldPathId:i,formData:r,items:N.map(((e,r)=>{const{key:i,item:l}=e,O=l,C=r>=M.length,I=(C&&Y(t.additionalItems)?j.retrieveSchema(t.additionalItems,O):M[r])||{},A=Zi(r,_,T);let F;return F=C?n.additionalItems:Array.isArray(n.items)?n.items[r]:va(n,l,r,x),Bt.jsx($a,{index:r,itemKey:i,name:a&&`${a}-${r}`,registry:h,uiOptions:D,parentUiSchema:n,hideError:d,readonly:u,disabled:s,required:f,title:E?`${E}-${r+1}`:void 0,canAdd:q,canRemove:C,canMoveUp:r>=M.length+1,canMoveDown:C&&r<S.length-1,itemSchema:I,itemData:O,itemUiSchema:F,itemFieldPathId:A,itemErrorSchema:o?o[r]:void 0,autofocus:c&&0===r,onBlur:m,onFocus:p,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:$,handleReorderItems:k},i)})),onAddClick:g,readonly:u,required:f,registry:h,schema:t,uiSchema:n,title:E,errorSchema:o,rawErrors:v,optionalDataControl:U},L=gi("ArrayFieldTemplate",h,D);return Bt.jsx(L,{...z})}function Ea(e){const{schema:t,uiSchema:n,errorSchema:r,fieldPathId:o,registry:i,formData:a,onChange:l}=e,{globalFormOptions:s,schemaUtils:u,translateString:c}=i,{keyedFormData:f,updateKeyedFormData:d}=function(e=[]){const t=Ot.useMemo((()=>Ci(e)),[e]),[n,r]=Ot.useState((()=>({formDataHash:t,keyedFormData:da(e)})));let{keyedFormData:o,formDataHash:i}=n;if(t!==i){const n=Array.isArray(e)?e:[],a=o||[];o=n.length===a.length?a.map(((e,t)=>({key:e.key,item:n[t]}))):da(n),i=t,r({formDataHash:i,keyedFormData:o})}const a=Ot.useCallback((e=>{const t=ha(e),n=Ci(t);return r({formDataHash:n,keyedFormData:e}),t}),[]);return{keyedFormData:o,updateKeyedFormData:a}}(a),h=e.childFieldPathId??o,m=Ot.useCallback(((e,n)=>{let o;if(e&&e.preventDefault(),r){o={};for(const e in r){const t=parseInt(e);void 0===n||t<n?lt(o,[t],r[e]):t>=n&&lt(o,[t+1],r[e])}}const a={key:fa(),item:ya(i,t)},s=[...f];void 0!==n?s.splice(n,0,a):s.push(a),l(d(s),h.path,o)}),[f,i,t,l,d,r,h]),p=Ot.useCallback(((e,t)=>{let n;if(e&&e.preventDefault(),r){n={};for(const e in r){const o=parseInt(e);o<=t?lt(n,[o],r[e]):o>t&&lt(n,[o+1],r[e])}}const o={key:fa(),item:T(f[t].item)},i=[...f];void 0!==t?i.splice(t+1,0,o):i.push(o),l(d(i),h.path,n)}),[f,l,d,r,h]),v=Ot.useCallback(((e,t)=>{let n;if(e&&e.preventDefault(),r){n={};for(const e in r){const o=parseInt(e);o<t?lt(n,[o],r[e]):o>t&&lt(n,[o-1],r[e])}}const o=f.filter(((e,n)=>n!==t));l(d(o),h.path,n)}),[f,l,d,r,h]),y=Ot.useCallback(((e,t,n)=>{let o;if(e&&(e.preventDefault(),e.currentTarget.blur()),r){o={};for(const e in r){const i=parseInt(e);i==t?lt(o,[n],r[t]):i==n?lt(o,[t],r[n]):lt(o,[e],r[i])}}const i=function(){const e=f.slice();return e.splice(t,1),e.splice(n,0,f[t]),e}();l(d(i),h.path,o)}),[f,l,d,r,h]),b=Ot.useCallback(((e,t,n,r)=>{const o="number"==typeof t.at(-1);l(o&&void 0===e?null:e,t,n,r)}),[l]),g=Ot.useCallback((e=>{l(e,h.path,void 0,h?.[en])}),[l,h]),w={...e,formData:a,fieldPathId:h,onSelectChange:g},$={...e,handleAddItem:m,handleCopyItem:p,handleRemoveItem:v,handleReorderItems:y,keyedFormData:f,onChange:b};if(!(nn in t)){if(!s.useFallbackUiForUnsupportedType){const e=En(n),r=gi("UnsupportedFieldTemplate",i,e);return Bt.jsx(r,{schema:t,fieldPathId:o,reason:c(sa.MissingItems),registry:i})}const e={...t,[nn]:{type:void 0}};w.schema=e,$.schema=e}return u.isMultiSelect(w.schema)?Bt.jsx(ba,{...w}):Jo(n)?Bt.jsx(ga,{...w}):Fo(w.schema)?Bt.jsx(Sa,{...$}):u.isFilesArray(w.schema,n)?Bt.jsx(wa,{...w}):Bt.jsx(ka,{...$})}function ja(e){const{schema:t,name:n,uiSchema:r,fieldPathId:o,formData:i,registry:a,required:l,disabled:s,readonly:u,hideError:c,autofocus:f,title:d,onChange:h,onFocus:m,onBlur:p,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:g,globalUiOptions:w}=a,{widget:$="checkbox",title:k,label:S=!0,enumNames:E,...j}=En(r,w),O=_i(t,$,b),x=g(sa.YesLabel),_=g(sa.NoLabel);let C;const D=k??y??d??n;if(Array.isArray(t.oneOf))C=qo({oneOf:t.oneOf.map((e=>{if(Y(e))return{...e,title:e.title||(!0===e.const?x:_)}})).filter((e=>e))},r);else{const e=t.enum??[!0,!1];C=!E&&2===e.length&&e.every((e=>"boolean"==typeof e))?[{value:e[0],label:e[0]?x:_},{value:e[1],label:e[1]?x:_}]:qo({enum:e},r)}const I=Ot.useCallback(((e,t,n)=>h(e,o.path,t,n)),[h,o]);return Bt.jsx(O,{options:{...j,enumOptions:C},schema:t,uiSchema:r,id:o.$id,name:n,onChange:I,onFocus:m,onBlur:p,label:D,hideLabel:!S,value:i,required:l,disabled:s,readonly:u,hideError:c,registry:a,autofocus:f,rawErrors:v,htmlName:o.name})}function Oa(e){const{id:t,formData:n,displayLabel:r=!0,schema:o,name:i,uiSchema:a,required:l,disabled:s=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:d,fieldPathId:h,onChange:m,errorSchema:p}=e,{translateString:v,fields:y,globalFormOptions:b}=d,[g,w]=Ot.useState(function(e){const t=typeof e;return"string"===t||"number"===t||"boolean"===t?t:"object"===t?Array.isArray(e)?"array":"object":"string"}(n)),$=En(a),k=ta(Zi("__internal_type_selector",b,h)),S=v(sa.Type),E=Ot.useMemo((()=>({type:"string",enum:["string","number","boolean","object","array"],default:"string",title:S})),[S]);if(!b.useFallbackUiForUnsupportedType){const{reason:t=v(sa.UnknownFieldType,[String(o.type)])}=e,n=gi("UnsupportedFieldTemplate",d,$);return Bt.jsx(n,{schema:o,fieldPathId:h,reason:t,registry:d})}const j=gi("FallbackFieldTemplate",d,$),{SchemaField:O}=y;return Bt.jsx(j,{schema:o,registry:d,typeSelector:Bt.jsx(O,{fieldPathId:k,name:`${i}__fallback_type`,schema:E,formData:g,onChange:e=>{null!=e&&(w(e),m(function(e,t){switch(t){case"string":return String(e);case"number":{const t=Number(e);return isNaN(t)?0:t}case"boolean":return Boolean(e);default:return e}}(n,e),h.path,p,t))},onBlur:c,onFocus:f,registry:d,hideLabel:!r,disabled:s,readonly:u,required:l},n?Ci(n):"__empty__"),schemaField:Bt.jsx(O,{...e,schema:{type:g,title:v(sa.Value),..."object"===g&&{additionalProperties:!0}}})})}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(sa||(sa={})),function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"}(ua||(ua={})),function(e){e.ALL="all",e.SOME="some",e.NONE="none"}(ca||(ca={}));const xa=/^\$lookup=(.+)/,_a="layoutGrid";function Ca(e,t){return e??t}const Da=wi();function Ia(e,t,n){let r={},o=e[t];if($e(o)){const{children:e,className:t,...i}=o;if(o=e,t){const e=t.split(" ").map((e=>Li(n,e,e))).join(" ");r={...i,className:e}}else r=i}if(!Array.isArray(o))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:o,gridProps:r}}function Aa(e,t,n){let r;if(/^\d+?$/.test(n)&&e&&"array"===e?.type&&v(e,nn)){const o=Number(n),i=e[nn];r=Array.isArray(i)?o>i.length?Le(i):i[o]:i,t={[en]:t[en],path:[...t.path.slice(0,t.path.length-1),o]}}return{rawSchema:r,fieldPathId:t}}function Fa(e,t,n,r,o){const{schemaUtils:i,globalFormOptions:l}=e;let s=n,u=o;const c=t.split("."),f=c.pop();let d,m=i.retrieveSchema(s,r),p=r,y=m.readOnly;c.forEach((e=>{if(u=Zi(e,l,u),v(m,ln))s=h(m,[ln,e],{});else if(m&&(v(m,on)||v(m,Jt))){const t=v(m,on)?on:Jt,n=i.findSelectedOptionInXxxOf(m,e,t,p);s=h(n,[ln,e],{})}else{const t=Aa(m,u,e);s=t.rawSchema??{},u=t.fieldPathId}p=h(p,e,{}),m=i.retrieveSchema(s,p),y=Ca(m.readOnly,y)}));let b=!1;if(se(m)&&(m=void 0),m&&f){if(m&&(v(m,on)||v(m,Jt))){const e=v(m,on)?on:Jt;m=i.findSelectedOptionInXxxOf(m,f,e,p)}u=Zi(f,l,u),b=void 0!==m&&Array.isArray(m.required)&&function(e,t,n){var r;e=ce(e)?e:null==(r=e)?[]:function(e,t){return a(t,(function(t){return e[t]}))}(r,w(r)),n=n?me(n):0;var o=e.length;return n<0&&(n=He(o+n,0)),We(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&oe(e,t,n)>-1}(m.required,f);const e=Aa(m,u,f);if(e.rawSchema?(m=e.rawSchema,u=e.fieldPathId):(m=h(m,[ln,f]),m=m?i.retrieveSchema(m):m),y=Ca(m?.readOnly,y),m&&(v(m,on)||v(m,Jt))){const e=v(m,on)?on:Jt,t=oo(m);d={options:m[e],hasDiscriminator:!!t}}}return{schema:m,isRequired:b,isReadonly:y,optionsInfo:d,fieldPathId:u}}function Ma(e){const{childrenLayoutGridSchemaId:t,...n}=e,{registry:r,schema:o,formData:i}=n,{schemaUtils:a}=r,l=a.retrieveSchema(o,i);return t.map((e=>Ot.createElement(qa,{...n,key:`layoutGrid-${Ci(e)}`,schema:l,layoutGridSchema:e})))}function Pa(e){const{layoutGridSchema:t,...n}=e,{formData:r,registry:o}=n,{children:i,gridProps:a}=Ia(t,ua.CONDITION,o),{operator:l,field:s="",value:u}=a;return function(e,t,n="$0m3tH1nG Un3xP3cT3d"){const r=ve([t]).sort(),o=ve([n]).sort();switch(e){case ca.ALL:return fe(r,o);case ca.SOME:return Je(r,o).length>0;case ca.NONE:return 0===Je(r,o).length;default:return!1}}(l,h(r,s,null),u)?Bt.jsx(Ma,{...n,childrenLayoutGridSchemaId:i}):null}function Ta(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:o}=n,{children:i,gridProps:a}=Ia(t,ua.COLUMN,r),l=gi("GridTemplate",r,En(o));return Bt.jsx(l,{column:!0,"data-testid":Da.col,...a,children:Bt.jsx(Ma,{...n,childrenLayoutGridSchemaId:i})})}function Na(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:o}=n,{children:i,gridProps:a}=Ia(t,ua.COLUMNS,r),l=gi("GridTemplate",r,En(o));return i.map((e=>Bt.jsx(l,{column:!0,"data-testid":Da.col,...a,children:Bt.jsx(Ma,{...n,childrenLayoutGridSchemaId:[e]})},`column-${Ci(e)}`)))}function Ra(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:o}=n,{children:i,gridProps:a}=Ia(t,ua.ROW,r),l=gi("GridTemplate",r,En(o));return Bt.jsx(l,{...a,"data-testid":Da.row,children:Bt.jsx(Ma,{...n,childrenLayoutGridSchemaId:i})})}function Ua(e){const{gridSchema:t,schema:n,uiSchema:r,errorSchema:o,fieldPathId:i,onBlur:a,onFocus:l,formData:s,readonly:u,registry:c,layoutGridSchema:f,...d}=e,{onChange:m}=d,{fields:p}=c,{SchemaField:y,LayoutMultiSchemaField:b}=p,g=function(e,t){let n,r,o=null,i={};if(We(t)||Ze(t))n=t??"";else{const{name:s="",render:u,...c}=t;n=s,i=c,se(i)||(l=(t,n)=>{if(We(t)){const r=xa.exec(t);if(Array.isArray(r)&&r.length>1){const t=r[1];i[n]=Li(e,t,t)}}},(B(a=i)?F:R)(a,Be(l))),o=function(e,t){let n=e;return We(n)&&(n=Li(t,n)),K(n)?n:null}(u,e),!s&&o&&(r=Bt.jsx(o,{...c,"data-testid":Da.uiComponent}))}var a,l;return{name:n,UIComponent:o,uiProps:i,rendered:r}}(c,t),{name:w,UIComponent:$,uiProps:k}=g,{schema:S,isRequired:E,isReadonly:j,optionsInfo:O,fieldPathId:x}=Fa(c,w,n,s,i),_=ta(x);if(g.rendered)return g.rendered;if(S){const e=O?.hasDiscriminator?b:y,{fieldUiSchema:t,uiReadonly:n}=function(e,t,n,r,o){const i=h(n,[kn],{}),a=h(n,e),l={...h(a,[$n],{}),...t,...i},s={...a};se(l)||lt(s,[$n],l),se(i)||lt(s,[kn],i);let{readonly:u}=En(s);return(!0===o||Ze(u)&&!0===r)&&(u=!0,v(l,sn)?lt(s,[$n,sn],!0):lt(s,`ui:${sn}`,!0)),{fieldUiSchema:s,uiReadonly:u}}(w,k,r,j,u);return Bt.jsx(e,{"data-testid":O?.hasDiscriminator?Da.layoutMultiSchemaField:Da.field,...d,name:w,required:E,readonly:n,schema:S,uiSchema:t,errorSchema:h(o,w),fieldPathId:_,formData:h(s,w),onChange:m,onBlur:a,onFocus:l,options:O?.options,registry:c})}return $?Bt.jsx($,{"data-testid":Da.uiComponent,...d,name:w,required:E,formData:s,readOnly:!!j||u,errorSchema:o,uiSchema:r,schema:n,fieldPathId:i,onBlur:a,onFocus:l,registry:c,...k}):null}function qa(e){const{uiSchema:t}=e;let{layoutGridSchema:n}=e;const r=En(t);if(!n&&_a in r&&Y(r[_a])&&(n=r[_a]),Y(n)){if(ua.ROW in n)return Bt.jsx(Ra,{...e,layoutGridSchema:n});if(ua.COLUMN in n)return Bt.jsx(Ta,{...e,layoutGridSchema:n});if(ua.COLUMNS in n)return Bt.jsx(Na,{...e,layoutGridSchema:n});if(ua.CONDITION in n)return Bt.jsx(Pa,{...e,layoutGridSchema:n})}return Bt.jsx(Ua,{...e,gridSchema:n})}function za(e){const{fieldPathId:t,title:n,schema:r,uiSchema:o,required:i,registry:a,name:l}=e,s=En(o,a.globalUiOptions),{title:u}=s,{title:c}=r,f=u||n||c||l;if(!f)return null;const d=gi("TitleFieldTemplate",a,s);return Bt.jsx(d,{id:Pi(t),title:f,required:i,schema:r,uiSchema:o,registry:a})}function La(e,t,n){return e.map((({schema:e})=>e)).find((e=>{const r=h(e,[ln,t]);return h(r,Xt,h(r,Yt,"!@#!@$@#$!@$#"))===n}))}function Ba(e,t,n,r,o){const i=t.map((e=>n.retrieveSchema(e,o)));let a=e;v(e,on)?a={...e,[on]:i}:v(e,Jt)&&(a={...e,[Jt]:i});const l=qo(a,r);if(!l)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(a)}`);return l}function Va(e){const{name:t,baseType:n,disabled:r=!1,formData:o,fieldPathId:i,onBlur:a,onChange:l,options:s,onFocus:u,registry:c,uiSchema:f,schema:d,autofocus:m,readonly:p,required:v,errorSchema:y,hideError:b=!1}=e,{widgets:g,schemaUtils:w,globalUiOptions:$}=c,[k,S]=Ot.useState(Ba(d,s,w,f,o)),E=h(i,en),j=oo(d),O=gi("FieldErrorTemplate",c,s),x=gi("FieldTemplate",c,s),_=Ci(d),C=Ci(s),D=f?Ci(f):"",I=o?Ci(o):"";Ot.useEffect((()=>{S(Ba(d,s,w,f,o))}),[_,C,w,D,I]);const{widget:A=(j?"radio":"select"),title:F="",placeholder:M="",optionsSchemaSelector:P=j,hideError:T,...N}=En(f);if(!P)throw new Error("No selector field provided for the LayoutMultiSchemaField");const R=h(o,P);let U=h(k[0]?.schema,[ln,P],{});const q=La(k,P,R);U=U?.type?U:{...U,type:q?.type||n};const z=_i(U,A,g),L=void 0===T?b:Boolean(T),B=h(y,[Qt],[]),V=ot(y,[Qt]),W=w.getDisplayLabel(d,f,$),H={enumOptions:k,...N},G=!L&&B.length>0?Bt.jsx(O,{fieldPathId:i,schema:d,errors:B,registry:c}):void 0;return Bt.jsx(x,{fieldPathId:i,id:E,schema:d,label:(F||d.title)??"",disabled:r||Array.isArray(k)&&se(k),uiSchema:f,required:v,readonly:!!p,registry:c,displayLabel:W,errors:G,onChange:l,onKeyRename:pe,onKeyRenameBlur:pe,onRemoveProperty:pe,children:Bt.jsx(z,{id:E,name:t,schema:d,label:(F||d.title)??"",disabled:r||Array.isArray(k)&&se(k),uiSchema:f,autofocus:m,readonly:p,required:v,registry:c,multiple:!1,rawErrors:B,hideError:L,hideLabel:!W,errorSchema:V,placeholder:M,onChange:e=>{const t=La(k,P,e),n=La(k,P,R);let r=w.sanitizeDataForNewSchema(t,n,o);r&&t&&(r=w.getDefaultFormState(t,r,"excludeObjectChildren")),r&&lt(r,P,e),l(r,i.path,void 0,E)},onBlur:a,onFocus:u,value:R,options:H,htmlName:i.name})})}qa.TEST_IDS=Da;class Wa extends Ot.Component{constructor(e){super(e);const{formData:t,options:n,registry:{schemaUtils:r}}=this.props,o=n.map((e=>r.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:n,options:r,fieldPathId:o}=this.props,{selectedOption:i}=this.state;let a=this.state;if(!er(e.options,r)){const{registry:{schemaUtils:e}}=this.props;a={selectedOption:i,retrievedOptions:r.map((t=>e.retrieveSchema(t,n)))}}if(!er(n,e.formData)&&o.$id===e.fieldPathId.$id){const{retrievedOptions:e}=a,r=this.getMatchingOption(i,n,e);t&&r!==i&&(a={selectedOption:r,retrievedOptions:e})}a!==this.state&&this.setState(a)}getMatchingOption(e,t,n){const{schema:r,registry:{schemaUtils:o}}=this.props,i=oo(r);return o.getClosestMatchingOption(t,n,e,i)}onOptionChange=e=>{const{selectedOption:t,retrievedOptions:n}=this.state,{formData:r,onChange:o,registry:i,fieldPathId:a}=this.props,{schemaUtils:l}=i,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const u=s>=0?n[s]:void 0;let c=l.sanitizeDataForNewSchema(u,t>=0?n[t]:void 0,r);u&&(c=l.getDefaultFormState(u,c,"excludeObjectChildren")),this.setState({selectedOption:s},(()=>{o(c,a.path,void 0,this.getFieldId())}))};getFieldId(){const{fieldPathId:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:n={},formData:r,onBlur:o,onFocus:i,readonly:a,required:l=!1,registry:s,schema:u,uiSchema:c}=this.props,{widgets:f,fields:d,translateString:m,globalUiOptions:p,schemaUtils:v}=s,{SchemaField:y}=d,b=gi("MultiSchemaFieldTemplate",s,p),g=Ji(s,u,l,c),w=qi(r),{selectedOption:$,retrievedOptions:k}=this.state,{widget:S="select",placeholder:E,autofocus:j,autocomplete:O,title:x=u.title,..._}=En(c,p),C=_i({type:"number"},S,f),D=h(n,Qt,[]),I=ot(n,[Qt]),A=v.getDisplayLabel(u,c,p),F=$>=0&&k[$]||null;let M;if(F){const{required:e}=u;M=e?lo({required:e},F):F}let P=[];on in u&&c&&on in c?Array.isArray(c[on])?P=c[on]:console.warn(`uiSchema.oneOf is not an array for "${x||e}"`):Jt in u&&c&&Jt in c&&(Array.isArray(c[Jt])?P=c[Jt]:console.warn(`uiSchema.anyOf is not an array for "${x||e}"`));let T=c;$>=0&&P.length>$&&(T=P[$]);const N=x?sa.TitleOptionPrefix:sa.OptionPrefix,R=x?[x]:[],U=k.map(((e,t)=>{const{title:n=e.title}=En(P[t]);return{label:n||m(N,R.concat(String(t+1))),value:t}})),q=!g||w?Bt.jsx(C,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:i,disabled:t||se(U),multiple:!1,rawErrors:D,errorSchema:I,value:$>=0?$:void 0,options:{enumOptions:U,..._},registry:s,placeholder:E,autocomplete:O,autofocus:j,label:x??e,hideLabel:!A,readonly:a}):void 0,z=M&&"null"!==M.type&&Bt.jsx(y,{...this.props,schema:M,uiSchema:T})||null;return Bt.jsx(b,{schema:u,registry:s,uiSchema:c,selector:q,optionSchemaField:z})}}const Ha=/\.([0-9]*0)*$/,Ga=/[0.]0*$/;function Ka(e){const{registry:t,onChange:n,formData:r,value:o}=e,[i,a]=Ot.useState(o),{StringField:l}=t.fields;let s=r;const u=Ot.useCallback(((e,t,r,o)=>{a(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const i="string"==typeof e&&e.match(Ha)?Wt(e.replace(Ga,"")):Wt(e);n(i,t,r,o)}),[n]);if("string"==typeof i&&"number"==typeof s){const e=new RegExp(`^(${String(s).replace(".","\\.")})?\\.?0*$`);i.match(e)&&(s=i)}return Bt.jsx(l,{...e,formData:s,onChange:u})}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ja.apply(null,arguments)}const Ya=["strong","em","del","mark"],Xa=[["**",Ya[0]],["__",Ya[0]],["~~",Ya[2]],["==",Ya[3]],["*","em"],["_","em"]];function Za(e,t){for(var n=1,r=t+1;r<e.length&&n>0;)"\\"!==e[r]?("["===e[r]&&n++,"]"===e[r]&&n--,r++):r+=2;if(0===n&&r<e.length&&("("===e[r]||"["===e[r])){var o="("===e[r]?")":"]",i=1;for(r++;r<e.length&&i>0;)"\\"!==e[r]?("("===e[r]&&")"===o&&i++,e[r]===o&&i--,r++):r+=2;if(0===i)return r}return-1}function Qa(e,t){if(!t||!t.inline&&!t.simple)return null;var n=e[0];if("*"!==n&&"_"!==n&&"~"!==n&&"="!==n)return null;for(var r="",o=0,i="",a=0;a<6;a++){var l=Xa[a][0];if(e.startsWith(l)&&e.length>=2*l.length){r=l,o=l.length,i=Xa[a][1];break}}if(!r)return null;for(var s=o,u=!1,c=!1,f="",d=0,h="",m=!1,p="";s<e.length;){var v=e[s];if(m)h+=v,m=!1,p=v,s++;else if("\\"!==v)if("`"!==v||0!==d){if("["===v&&!u&&0===d){var y=Za(e,s);if(-1!==y){h+=e.slice(s,y),s=y,p=e[y-1];continue}}if(c)h+=v,f?v===f&&(f=""):'"'===v||"'"===v?f=v:">"===v&&(c=!1),p=v,s++;else if("<"!==v||u){if("\n"===v&&"\n"===p&&!u&&0===d)return null;if(!u&&0===d){for(var b=0;s+b<e.length&&e[s+b]===r[0];)b++;if(b>=o&&(1!==o||"*"!==r&&"_"!==r||e[s-1]!==r&&e[s+1]!==r)){var g=[e.slice(0,s+b),i,h+e.slice(s+o,s+b)];return g.index=0,g.input=e,g}}h+=v,p=v,s++}else{var w=e[s+1],$=e.indexOf(">",s);if(-1!==$){var k=e.slice(s,$+1).endsWith("/>");"/"===w?d=Math.max(0,d-1):k||d++}c=!0,h+=v,p=v,s++}}else u=!u,h+=v,p=v,s++;else h+=v,m=!0,p=v,s++}return null}const el=["children","options"],tl=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{class:"className",for:"htmlFor"}),nl={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rl=["style","script","pre"],ol=["src","href","data","formAction","srcDoc","action"],il=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,al=/\n{2,}$/,ll=/^(\s*>[\s\S]*?)(?=\n\n|$)/,sl=/^ *> ?/gm,ul=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,cl=/^ {2,}\n/,fl=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,dl=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,hl=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ml=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,pl=/^(?:\n *)*\n/,vl=/\r\n?/g,yl=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,bl=/^\[\^([^\]]+)]/,gl=/\f/g,wl=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$l=/^\[(x|\s)\]/,kl=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Sl=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,El=/^([^\n]+)\n *(=|-)\2{2,} *\n/,jl=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function Ol(e){const t=jl.exec(e);if(!t)return null;const n=t[1],r=n.toLowerCase(),o=r.length+1;let i=t[0].length;"\n"===e[i]&&i++;const a=i;let l=i,s=1;const u=e.length;for(;s>0;){const t=e.indexOf("<",i);if(-1===t)return null;let a=-1,c=-1;if("/"===e[t+1])c=t;else if(e[t+1]===r[0]||e[t+1]===n[0]){let i=!0;for(let o=0;o<r.length;o++){const a=e[t+1+o];if(a!==r[o]&&a!==n[o]){i=!1;break}}!i||" "!==e[t+o]&&">"!==e[t+o]||(a=t)}if(-1!==a||-1!==c)if(-1!==a&&(-1===c||a<c))i=a+o+1,s++;else{let t=c+2;for(;t<u;){const n=e[t];if(" "!==n&&"\t"!==n&&"\n"!==n&&"\r"!==n)break;t++}if(t+r.length>u)return null;let o=!0;for(let i=0;i<r.length;i++){const a=e[t+i];if(a!==r[i]&&a!==n[i]){o=!1;break}}if(!o){i=t;continue}for(t+=r.length;t<u;){const n=e[t];if(" "!==n&&"\t"!==n&&"\n"!==n&&"\r"!==n)break;t++}if(t>=u||">"!==e[t]){i=t;continue}l=c,i=t+1,s--}else i=t+1}let c=0;for(;i+c<u&&"\n"===e[i+c];)c++;return[e.slice(0,i+c),n,t[2],e.slice(a,l)]}const xl=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_l=/^<!--[\s\S]*?(?:-->)/,Cl=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Il=/^\{.*\}$/,Al=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Fl=/^<([^ >]+[:@\/][^ >]+)>/,Ml=/-([a-z])?/gi,Pl=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Tl=/^[^\n]+(?: \n|\n{2,})/,Nl=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Rl=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Ul=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ql=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,zl=/\t/g,Ll=/(^ *\||\| *$)/g,Bl=/^ *:-+: *$/,Vl=/^ *:-+ *$/,Wl=/^ *-+: *$/,Hl=/^(:[a-zA-Z0-9-_]+:)/,Gl=/^\\([^0-9A-Za-z\s])/,Kl=/\\([^0-9A-Za-z\s])/g,Jl=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Yl=/^\n+/,Xl=/^([ \t]*)/,Zl=/(?:^|\n)( *)$/,Ql="(?:\\d+\\.)",es="(?:[*+-])";function ts(e){return"( *)("+(1===e?Ql:es)+") +"}const ns=ts(1),rs=ts(2);function os(e){return RegExp("^"+(1===e?ns:rs))}const is=os(1),as=os(2);function ls(e){return RegExp("^"+(1===e?ns:rs)+"[^\\n]*(?:\\n(?!\\1"+(1===e?Ql:es)+" )[^\\n]*)*(\\n|$)","gm")}const ss=ls(1),us=ls(2);function cs(e){const t=1===e?Ql:es;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const fs=cs(1),ds=cs(2);function hs(e,t){const n=1===t,r=n?fs:ds,o=n?ss:us,i=n?is:as;return{t:e=>i.test(e),o:Os((function(e,t){const n=Zl.exec(t.prevCapture);return n&&(t.list||!t.inline&&!t.simple)?r.exec(e=n[1]+e):null})),u:1,i(e,t,r){const a=n?+e[2]:void 0,l=e[0].replace(al,"\n").match(o),s=i.exec(l[0]),u=RegExp("^ {1,"+(s?s[0].length:0)+"}","gm");let c=!1;return{items:l.map((function(e,n){const o=e.replace(u,"").replace(i,""),a=n===l.length-1,s=gs(o,"\n\n")||a&&c;c=s;const f=r.inline,d=r.list;let h;r.list=!0,s?(r.inline=!1,h=ys(o)+"\n\n"):(r.inline=!0,h=ys(o));const m=t(h,r);return r.inline=f,r.list=d,m})),ordered:n,start:a}}}}const ms=RegExp("^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ps=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function vs(e){return"string"==typeof e}function ys(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function bs(e,t){return e.startsWith(t)}function gs(e,t){return-1!==e.indexOf(t)}function ws(e,t,n){if(Array.isArray(n)){for(let t=0;t<n.length;t++)if(bs(e,n[t]))return!0;return!1}return n(e,t)}function $s(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ks(e){return Wl.test(e)?"right":Bl.test(e)?"center":Vl.test(e)?"left":null}function Ss(e,t,n,r){const o=n.inTable;n.inTable=!0;let i=[[]],a="";function l(){if(!a)return;const e=i[i.length-1];e.push.apply(e,t(a,n)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach(((e,t,n)=>{"|"===e.trim()&&(l(),r)?0!==t&&t!==n.length-1&&i.push([]):a+=e})),l(),n.inTable=o,i}function Es(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(Ll,"").split("|").map(ks):[],o=e[3]?function(e,t,n){return e.trim().split("\n").map((function(e){return Ss(e,t,n,!0)}))}(e[3],t,n):[],i=Ss(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function js(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Os(e){return e.inline=1,e}function xs(e){return Os((function(t,n){return n.inline?e.exec(t):null}))}function _s(e){return Os((function(t,n){return n.inline||n.simple?e.exec(t):null}))}function Cs(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ds(e){return Os((function(t){return e.exec(t)}))}const Is=/(javascript|vbscript|data(?!:image)):/i;function As(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Is.test(t))return null}catch(e){return null}return e}function Fs(e){return e?e.replace(Kl,"$1"):e}function Ms(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const i=e(t,n);return n.inline=r,n.simple=o,i}function Ps(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const i=e(t,n);return n.inline=r,n.simple=o,i}function Ts(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const Ns=(e,t,n)=>({children:Ms(t,e[2],n)});function Rs(){return{}}function Us(...e){return e.filter(Boolean).join(" ")}function qs(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||n}function zs(e,t,n,r){if(!t||!t.trim())return null;const o=t.match(il);return o?o.reduce((function(t,o){const i=o.indexOf("=");if(-1!==i){const a=function(e){return-1!==e.indexOf("-")&&null===e.match(Cl)&&(e=e.replace(Ml,(function(e,t){return t.toUpperCase()}))),e}(o.slice(0,i)).trim(),l=tl[a]||a;if("ref"===l)return t;const s=t[l]=function(e,t,n,r){return"style"===t?function(e){const t=[];if(!e)return t;let n="",r=0,o="";for(let i=0;i<e.length;i++){const a=e[i];if('"'===a||"'"===a)o?a===o&&(o="",r--):(o=a,r++);else if("("===a&&n.endsWith("url"))r++;else if(")"===a&&r>0)r--;else if(";"===a&&0===r){const e=n.indexOf(":");e>0&&t.push([n.slice(0,e).trim(),n.slice(e+1).trim()]),n="";continue}n+=a}const i=n.indexOf(":");return i>0&&t.push([n.slice(0,i).trim(),n.slice(i+1).trim()]),t}(n).reduce((function(t,[n,o]){return t[n.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=r(o,e,n),t}),{}):-1!==ol.indexOf(t)?r(Fs(n),e,t):(n.match(Il)&&(n=Fs(n.slice(1,n.length-1))),"true"===n||"false"!==n&&n)}(e,a,function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(o.slice(i+1).trim()),n);"string"==typeof s&&(jl.test(s)||Dl.test(s))&&(t[l]=r(s.trim()))}else"style"!==o&&(t[tl[o]||o]=!0);return t}),{}):null}function Ls(e,t){for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1}const Bs=e=>{let{children:t,options:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,el);return function(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Ja({},nl,t.namedCodesToUnicode):nl;const n=t.slugify||$s,r=t.sanitizer||As,o=t.createElement||Ot.createElement,i=[ll,dl,hl,t.enforceAtxHeadings?Sl:kl,El,Pl,fs,ds],a=[...i,Tl,jl,_l,Dl];function l(e,n,...r){const i=qs(t.overrides,e+".props",{});return o(function(e,t){const n=qs(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:qs(t,e+".component",e):e}(e,t.overrides),Ja({},n,i,{className:Us(null==n?void 0:n.className,i.className)||void 0}),...r)}function s(e){e=e.replace(wl,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===ql.test(e));const i=d(r?e:ys(e).replace(Yl,"")+"\n\n",{inline:r});if(t.ast)return i;const a=h(i);for(;vs(a[a.length-1])&&!a[a.length-1].trim();)a.pop();if(u.length&&a.push(l("footer",{key:"footer"},u.map((function(e){return l("div",{id:n(e.identifier,$s),key:e.identifier},e.identifier,h(d(e.footnote,{inline:!0})))})))),null===t.wrapper)return a;const s=t.wrapper||(r?"span":"div");let c;if(a.length>1||t.forceWrapper)c=a;else{if(1===a.length)return c=a[0],"string"==typeof c?l("span",{key:"outer"},c):c;c=null}return o(s,Ja({key:"outer"},t.wrapperProps),c)}const u=[],c={},f={0:{t:[">"],o:Cs(ll),u:1,i(e,t,n){const[,r,o]=e[0].replace(sl,"").match(ul);return{alert:r,children:t(o,n)}}},1:{t:[" "],o:xs(cl),u:1,i:Rs},2:{t:function(e,t){if(t.inline||t.simple)return!1;var n=e[0];return"-"===n||"*"===n||"_"===n},o:Cs(fl),u:1,i:Rs},3:{t:[" "],o:Cs(hl),u:0,i:e=>({lang:void 0,text:Fs(ys(e[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:Cs(dl),u:0,i:e=>({attrs:zs("code",e[3]||"",r,s),lang:e[2]||void 0,text:e[4],type:"3"})},5:{t:["`"],o:_s(ml),u:3,i:e=>({text:Fs(e[2])})},6:{t:["[^"],o:Cs(yl),u:0,i:e=>(u.push({footnote:e[2],identifier:e[1]}),{})},7:{t:["[^"],o:xs(bl),u:1,i:e=>({target:"#"+n(e[1],$s),text:e[1]})},8:{t:["[ ]","[x]"],o:xs($l),u:1,i:e=>({completed:"x"===e[1].toLowerCase()})},9:{t:["#"],o:Cs(t.enforceAtxHeadings?Sl:kl),u:1,i:(e,t,r)=>({children:Ms(t,e[2],r),id:n(e[2],$s),level:e[1].length})},10:{t:e=>{const t=e.indexOf("\n");return t>0&&t<e.length-1&&("="===e[t+1]||"-"===e[t+1])},o:Cs(El),u:1,i:(e,t,n)=>({children:Ms(t,e[1],n),level:"="===e[2]?1:2,type:"9"})},11:{t:["<"],o:Os(Ol),u:1,i(e,t,n){const[,o]=e[3].match(Xl),i=RegExp("^"+o,"gm"),l=e[3].replace(i,""),u=Ls(a,l)?Ts:Ms,c=e[1].toLowerCase(),f=-1!==rl.indexOf(c),d=(f?c:e[1]).trim(),h={attrs:zs(d,e[2],r,s),noInnerParse:f,tag:d};if(n.inAnchor=n.inAnchor||"a"===c,f)h.text=e[3];else{const e=n.inHTML;n.inHTML=!0,h.children=u(t,l,n),n.inHTML=e}return n.inAnchor=!1,h}},13:{t:["<"],o:Ds(Dl),u:1,i(e){const t=e[1].trim();return{attrs:zs(t,e[2]||"",r,s),tag:t}}},12:{t:["\x3c!--"],o:Ds(_l),u:1,i:()=>({})},14:{t:["!["],o:_s(ps),u:1,i:e=>({alt:Fs(e[1]),target:Fs(e[2]),title:Fs(e[3])})},15:{t:["["],o:xs(ms),u:3,i:(e,t,n)=>({children:Ps(t,e[1],n),target:Fs(e[2]),title:Fs(e[3])})},16:{t:function(e,t){return!(!t.inline||t.inAnchor)&&"<"===e[0]&&(gs(e,":")||gs(e,"@")||gs(e,"/"))},o:xs(Fl),u:0,i(e){let t=e[1],n=!1;return gs(t,"@")&&!gs(t,"//")&&(n=!0,t=t.replace("mailto:","")),{children:[{text:t,type:"27"}],target:n?"mailto:"+t:t,type:"15"}}},17:{t:(e,n)=>!n.inAnchor&&!t.disableAutoLink&&bs(e,"http"),o:xs(Al),u:0,i:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},20:hs(0,1),30:hs(0,2),19:{t:["\n"],o:Cs(pl),u:3,i:Rs},21:{t:function(e,t){return!t.inline&&!t.simple},o:Os((function(e,t){if(t.inline||t.simple||t.inHTML&&!gs(e,"\n\n")&&!gs(t.prevCapture,"\n\n"))return null;let n="",r=0;for(;;){const t=e.indexOf("\n",r),o=e.slice(r,-1===t?void 0:t+1),a=e[r];if((">"===a||"#"===a||"|"===a||"`"===a||"~"===a||"*"===a||"-"===a||"_"===a||" "===a)&&Ls(i,o))break;if(n+=o,-1===t||!o.trim())break;r=t+1}const o=ys(n);return""===o?null:[n,,o]})),u:3,i:Ns},22:{t:["["],o:xs(Nl),u:0,i:e=>(c[e[1]]={target:e[2],title:e[4]},{})},23:{t:["!["],o:_s(Rl),u:0,i:e=>({alt:e[1]?Fs(e[1]):void 0,ref:e[2]})},24:{t:e=>"["===e[0]&&!gs(e,"]("),o:xs(Ul),u:0,i:(e,t,n)=>({children:t(e[1],n),fallbackChildren:e[0],ref:e[2]})},25:{t:["|"],o:Cs(Pl),u:1,i:Es},27:{o:Os((function(e){let t;return bs(e,":")&&(t=Hl.exec(e)),t||Jl.exec(e)})),u:4,i(e){const n=e[0];return{text:gs(n,"&")?n.replace(xl,((e,n)=>t.namedCodesToUnicode[n]||e)):n}}},34:{t:["*","_","~","="],o:Os(Qa),u:2,i:(e,t,n)=>({children:t(e[2],n),tag:e[1]})},28:{t:["\\"],o:_s(Gl),u:1,i:e=>({text:e[1],type:"27"})}};!0===t.disableParsingRawHTML&&(delete f[11],delete f[13]);const d=function(e){var t=Object.keys(e);function n(r,o){var i=[];if(o.prevCapture=o.prevCapture||"",r.trim())for(;r;)for(var a=0;a<t.length;){var l=t[a],s=e[l];if(!s.t||ws(r,o,s.t)){var u=s.o(r,o);if(u&&u[0]){r=r.substring(u[0].length);var c=s.i(u,n,o);o.prevCapture+=u[0],c.type||(c.type=l),i.push(c);break}a++}else a++}return o.prevCapture="",i}return t.sort((function(t,n){return e[t].u-e[n].u||(t<n?-1:1)})),function(e,t){return n(function(e){return e.replace(vl,"\n").replace(gl,"").replace(zl," ")}(e),t)}}(f),h=function(e,t,n,r,o){function i(e){return Array.isArray(e)?e.map((e=>"text"in e?e.text:"")):"text"in e?e.text:""}return function a(l,s={}){const u=(s.renderDepth||0)+1;if(u>2500)return i(l);s.renderDepth=u;try{if(Array.isArray(l)){const e=s.key,t=[];let n=!1;for(let e=0;e<l.length;e++){s.key=e;const r=a(l[e],s),o=vs(r);o&&n?t[t.length-1]+=r:null!==r&&t.push(r),n=o}return s.key=e,s.renderDepth=u-1,t}const i=function(i,a,l){const s=()=>function(e,t,n,r,o,i,a){switch(e.type){case"0":{const o={key:n.key};return e.alert&&(o.className="markdown-alert-"+i(e.alert.toLowerCase(),$s),e.children.unshift({attrs:{},children:[{type:"27",text:e.alert}],noInnerParse:!0,type:"11",tag:"header"})),r("blockquote",o,t(e.children,n))}case"1":return r("br",{key:n.key});case"2":return r("hr",{key:n.key});case"3":return r("pre",{key:n.key},r("code",Ja({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text));case"5":return r("code",{key:n.key},e.text);case"7":return r("a",{key:n.key,href:o(e.target,"a","href")},r("sup",{key:n.key},e.text));case"8":return r("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"});case"9":return r("h"+e.level,{id:e.id,key:n.key},t(e.children,n));case"11":return r(e.tag,Ja({key:n.key},e.attrs),e.text||(e.children?t(e.children,n):""));case"13":return r(e.tag,Ja({},e.attrs,{key:n.key}));case"14":return r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:o(e.target,"img","src")});case"15":return r("a",{key:n.key,href:o(e.target,"a","href"),title:e.title},t(e.children,n));case"23":return a[e.ref]?r("img",{key:n.key,alt:e.alt,src:o(a[e.ref].target,"img","src"),title:a[e.ref].title}):null;case"24":return a[e.ref]?r("a",{key:n.key,href:o(a[e.ref].target,"a","href"),title:a[e.ref].title},t(e.children,n)):r("span",{key:n.key},e.fallbackChildren);case"25":{const o=e;return r("table",{key:n.key},r("thead",null,r("tr",null,o.header.map((function(e,i){return r("th",{key:i,style:js(o,i)},t(e,n))})))),r("tbody",null,o.cells.map((function(e,i){return r("tr",{key:i},e.map((function(e,i){return r("td",{key:i,style:js(o,i)},t(e,n))})))}))))}case"27":return e.text;case"34":return r(e.tag,{key:n.key},t(e.children,n));case"20":case"30":return r(e.ordered?"ol":"ul",{key:n.key,start:"20"===e.type?e.start:void 0},e.items.map((function(e,o){return r("li",{key:o},t(e,n))})));case"19":return"\n";case"21":return r("p",{key:n.key},t(e.children,n));default:return null}}(i,a,l,t,n,r,o);return e?e(s,i,a,l):s()}(l,a,s);return s.renderDepth=u-1,i}catch(e){if(e instanceof RangeError&&e.message.includes("Maximum call stack"))return i(l);throw e}}}(t.renderRule,l,r,n,c);return s(e)}(null==t?"":t,Ja({},n,{wrapperProps:Ja({},null==n?void 0:n.wrapperProps,r)}))},Vs=Symbol("remove-this-key"),Ws=Symbol("reset");function Hs(e,t){return Array.isArray(e.required)&&-1!==e.required.indexOf(t)}function Gs(e){const{fieldPathId:t,schema:n,registry:r,uiSchema:o,errorSchema:i,formData:a,onChange:l,onBlur:s,onFocus:u,disabled:c,readonly:f,required:d,hideError:h,propertyName:m,handleKeyRename:p,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,g]=Ot.useState(!1),{globalFormOptions:w,fields:$}=r,{SchemaField:k}=$,S=ta(Zi(m,w,t.path)),E=Ot.useCallback(((e,t,n,r)=>{void 0===e&&y&&(e=""),l(e,t,n,r)}),[l,y]),j=Ot.useCallback((e=>{m!==e&&g(!0),p(m,e)}),[m,p]),O=Ot.useCallback((e=>{const{target:{value:t}}=e;j(t)}),[j]),x=Ot.useCallback((()=>{v(m)}),[m,v]);return Bt.jsx(k,{name:m,required:d,schema:n,uiSchema:o,errorSchema:i,fieldPathId:S,formData:a,wasPropertyKeyModified:b,onKeyRename:j,onKeyRenameBlur:O,onRemoveProperty:x,onChange:E,onBlur:s,onFocus:u,registry:r,disabled:c,readonly:f,hideError:h})}function Ks(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:o,fieldPathId:i,name:a,required:l=!1,disabled:s,readonly:u,hideError:c,onBlur:f,onFocus:d,onChange:m,registry:p,title:y}=e,{fields:b,schemaUtils:g,translateString:w,globalUiOptions:$}=p,{OptionalDataControlsField:k}=b,S=Ot.useRef(r);S.current=r;const E=g.retrieveSchema(t,r,!0),j=En(n,$),{properties:O={}}=E,x=e.childFieldPathId??i,_=Ot.useRef({previousKey:"",currentKey:void 0}),C=j.title??E.title??y??a,D=j.description??E.description,I=Ji(p,E,l,n),A=qi(r);let F=[];const M=Ot.useCallback(((e,t)=>{const{duplicateKeySuffixSeparator:r="-"}=En(n,$);let o=0,i=e;for(;v(t,i);)i=`${e}${r}${++o}`;return i}),[n,$]),P=Ot.useCallback((()=>{if(!E.additionalProperties&&!E.patternProperties)return;const{translateString:e}=p,t={...r},n=M("newKey",t);if(E.patternProperties)lt(t,n,null);else{let o,i,a;if(Y(E.additionalProperties)){o=E.additionalProperties.type,i=E.additionalProperties.const,a=E.additionalProperties.default;let e=E.additionalProperties;if(fn in e){const{schemaUtils:t}=p;e=t.retrieveSchema({[fn]:e[fn]},r),o=e.type,i=e.const,a=e.default}o||!(Jt in e)&&!(on in e)||(o="object")}const l=i??a??function(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return e(sa.NewStringDefault)}}(e,o);lt(t,n,l)}_.current.previousKey===n&&(_.current.currentKey=n,_.current.previousKey=M(n,t)),m(t,x.path)}),[r,m,p,x,M,E]),T=Ot.useCallback(((e,t)=>{if(e!==t){const n=S.current,r=M(t,n),o={...n},i={[e]:r},a=Object.keys(o).map((e=>{const t=i[e]||e;return{[t]:o[e]}})),l=Object.assign({},...a);S.current=l,e!==_.current.currentKey&&(_.current.previousKey=e),_.current.currentKey=r,m(l,x.path)}}),[m,x,M]),N=Ot.useCallback((e=>{m(Vs,[...x.path,e])}),[m,x]),R=Ot.useCallback((e=>_.current.currentKey===e?_.current.previousKey:e),[]);if(!I||A)try{F=function(e,t){if(!Array.isArray(t))return e;const n=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),r=n(e),o=t.filter((e=>"*"===e||r[e])),i=n(o),a=e.filter((e=>!i[e])),l=o.indexOf("*");if(-1===l){if(a.length)throw new Error("uiSchema order list does not contain "+((s=a).length>1?`properties '${s.join("', '")}'`:`property '${s[0]}'`));return o}var s;if(l!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...o];return u.splice(l,1,...a),u}(Object.keys(O),j.order)}catch(e){return Bt.jsxs("div",{children:[Bt.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:Bt.jsx(Bs,{options:{disableParsingRawHTML:!0},children:w(sa.InvalidObjectField,[a||"root",e.message])})}),Bt.jsx("pre",{children:JSON.stringify(E)})]})}const U=gi("ObjectFieldTemplate",p,j),q=I?Bt.jsx(k,{...e,fieldPathId:x,schema:E}):void 0,z={title:!1===j.label?"":C,description:!1===j.label?void 0:D,properties:F.map((e=>{const t=v(E,[ln,e,Ht]),i=t?n.additionalProperties:n[e],a="hidden"===En(i).widget;return{content:Bt.jsx(Gs,{propertyName:e,required:Hs(E,e),schema:h(E,[ln,e],{}),uiSchema:i,errorSchema:h(o,[e]),fieldPathId:x,formData:h(r,[e]),handleKeyRename:T,handleRemoveProperty:N,addedByAdditionalProperties:t,onChange:m,onBlur:f,onFocus:d,registry:p,disabled:s,readonly:u,hideError:c},R(e)),name:e,readonly:u,disabled:s,required:l,hidden:a}})),readonly:u,disabled:s,required:l,fieldPathId:i,uiSchema:n,errorSchema:o,schema:E,formData:r,registry:p,optionalDataControl:q,className:I?"rjsf-optional-object-field":void 0};return Bt.jsx(U,{...z,onAddProperty:P})}function Js(e){const{schema:t,uiSchema:n={},formData:r,disabled:o=!1,readonly:i=!1,onChange:a,errorSchema:l,fieldPathId:s,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:d}=u,h=gi("OptionalDataControlsTemplate",u,En(n,c)),m=qi(r);let p,v,y,b;return o||i?(p=Ui(s,"Msg"),v=m?void 0:d(sa.OptionalObjectEmptyMsg)):(v=d(m?sa.OptionalObjectRemove:sa.OptionalObjectAdd),m?(p=Ui(s,"Remove"),b=()=>a(void 0,s.path,l)):(p=Ui(s,"Add"),y=()=>{let e=f.getDefaultFormState(t,r,"excludeObjectChildren");void 0===e&&(e="array"===ao(t)?[]:{}),a(e,s.path,l)})),v&&Bt.jsx(h,{id:p,registry:u,schema:t,uiSchema:n,label:v,onAddClick:y,onRemoveClick:b})}const Ys={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Xs(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:o,errorSchema:i,name:a,onChange:l,onKeyRename:s,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:d,wasPropertyKeyModified:h=!1}=e,{schemaUtils:m,globalFormOptions:p,globalUiOptions:v,fields:y}=d,{AnyOfField:b,OneOfField:g}=y,w=function(e,t,n){var r,o;const i=null!==(r=e[dn])&&void 0!==r?r:e[fn],a=n.uiSchemaDefinitions,l=i&&a?a[i]:void 0;let s;if(s=l?!t||se(t)?{...l}:Po(l,t):t||{},a){let t=e;if(i&&e[fn]&&!e[dn])try{t=ro(i,n.rootSchema)}catch(e){return console.warn("could not resolve $ref in resolveUiSchema:\n",e),s}for(const e of[on,Jt]){const n=t[e];if(!Array.isArray(n)||0===n.length)continue;const r=s[e],i=Array.isArray(r)?[...r]:[];let l=!1;for(let e=0;e<n.length;e++){const t=n[e],r=null!==(o=null==t?void 0:t[dn])&&void 0!==o?o:null==t?void 0:t[fn];r&&r in a&&(i[e]=Po(a[r],i[e]||{}),l=!0)}l&&(s[e]=i)}}return s}(t,r,d),$=En(w,v),k=gi("FieldTemplate",d,$),S=gi("DescriptionFieldTemplate",d,$),E=gi("FieldHelpTemplate",d,$),j=gi("FieldErrorTemplate",d,$),O=m.retrieveSchema(t,o),x=n[en],_=Ot.useCallback(((e,t,n,r)=>l(e,t,n,r||x)),[x,l]),C=function(e,t,n){const r=t.field,{fields:o}=n;if("function"==typeof r)return r;if("string"==typeof r&&r in o)return o[r];const i=ao(e),a=Array.isArray(i)?i[0]:i||"",l=e.$id;let s=Ys[a];return l&&l in o&&(s=l),s||!e.anyOf&&!e.oneOf?s in o?o[s]:o.FallbackField:()=>null}(O,$,d),D=Boolean($.disabled??e.disabled),I=Boolean($.readonly??(e.readonly||e.schema.readOnly||O.readOnly)),A=$.hideError,F=void 0===A?e.hideError:Boolean(A),M=Boolean($.autofocus??e.autofocus);if(0===Object.keys(O).length)return null;let P,T,N=m.getDisplayLabel(O,w,v),R={fieldPathId:n};if(!(!(Jt in O)&&!(on in O)||$.field&&!0===$.fieldReplacesAnyOrOneOf||m.isSelect(O))){O[Jt]?(P=b,T=O[Jt].map((e=>m.retrieveSchema(Y(e)?e:{},o)))):O[on]&&(P=g,T=O[on].map((e=>m.retrieveSchema(Y(e)?e:{},o))));const e=Ji(d,O,f,w),t=qi(o);N=N&&(!e||t),R={childFieldPathId:n,fieldPathId:Zi("XxxOf",p,n)}}const{__errors:U,...q}=i||{},z=ot(w,["ui:classNames","classNames","ui:style"]);$n in z&&(z[$n]=ot(z[$n],["classNames","style"]));const L=Bt.jsx(C,{...e,onChange:_,...R,schema:O,uiSchema:z,disabled:D,readonly:I,hideError:F,autofocus:M,errorSchema:q,rawErrors:U}),B=n[en];let V;V=h||Ht in O?a:$.title||e.schema.title||O.title||e.title||a;const W=$.description||e.schema.description||O.description||"",H=$.help,G="hidden"===$.widget,K=["rjsf-field",`rjsf-field-${ao(O)}`];!F&&U&&U.length>0&&K.push("rjsf-field-error"),$.classNames&&K.push($.classNames);const J=Bt.jsx(E,{help:H,fieldPathId:n,schema:O,uiSchema:w,hasErrors:!F&&U&&U.length>0,registry:d}),X=F||P&&!m.isSelect(O)?void 0:Bt.jsx(j,{errors:U,errorSchema:i,fieldPathId:n,schema:O,uiSchema:w,registry:d}),Z={description:Bt.jsx(S,{id:Ii(B),description:W,schema:O,uiSchema:w,registry:d}),rawDescription:W,help:J,rawHelp:"string"==typeof H?H:void 0,errors:X,rawErrors:F?void 0:U,fieldPathId:n,id:B,label:V,hidden:G,onChange:l,onKeyRename:s,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:D,readonly:I,hideError:F,displayLabel:N,classNames:K.join(" ").trim(),style:$.style,formData:o,schema:O,uiSchema:w,registry:d};return Bt.jsx(k,{...Z,children:Bt.jsxs(Bt.Fragment,{children:[L,P&&Bt.jsx(P,{name:a,disabled:D,readonly:I,hideError:F,errorSchema:i,formData:o,fieldPathId:n,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:T,registry:d,required:f,schema:O,uiSchema:w})]})})}let Zs=class extends Ot.Component{shouldComponentUpdate(e){const{registry:{globalFormOptions:t}}=this.props,{experimental_componentUpdateStrategy:n="customDeep"}=t;return Gi(this,e,this.state,n)}render(){return Bt.jsx(Xs,{...this.props})}};function Qs(e){const{schema:t,name:n,uiSchema:r,fieldPathId:o,formData:i,required:a,disabled:l=!1,readonly:s=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:d,registry:h,rawErrors:m,hideError:p,title:v}=e,{title:y,format:b}=t,{widgets:g,schemaUtils:w,globalUiOptions:$}=h,k=w.isSelect(t)?qo(t,r):void 0;let S=k?"select":"text";b&&function(e,t,n={}){try{return _i(e,t,n),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(t,b,g)&&(S=b);const{widget:E=S,placeholder:j="",title:O,...x}=En(r),_=w.getDisplayLabel(t,r,$),C=O??v??y??n,D=_i(t,E,g),I=Ot.useCallback(((e,t,n)=>c(e,o.path,t,n)),[c,o]);return Bt.jsx(D,{options:{...x,enumOptions:k},schema:t,uiSchema:r,id:o.$id,name:n,label:C,hideLabel:!_,hideError:p,value:i,onChange:I,onBlur:f,onFocus:d,required:a,disabled:l,readonly:s,autofocus:u,registry:h,placeholder:j,rawErrors:m,htmlName:o.name})}function eu(e){const{formData:t,onChange:n,fieldPathId:r}=e;return Ot.useEffect((()=>{void 0===t&&n(null,r.path)}),[r,t,n]),null}function tu(e){const{fieldPathId:t,description:n,registry:r,schema:o,uiSchema:i}=e,a=En(i,r.globalUiOptions),{label:l=!0}=a;if(!n||!l)return null;const s=gi("DescriptionFieldTemplate",r,a);return Bt.jsx(s,{id:Ii(t),description:n,schema:o,uiSchema:i,registry:r})}function nu(e){const{children:t,className:n,buttonsProps:r,displayLabel:o,hasDescription:i,hasToolbar:a,registry:l,uiSchema:s}=e,u=gi("ArrayFieldItemButtonsTemplate",l,En(s)),c={display:"flex",justifyContent:"flex-end",marginTop:o?(i?31:9)+"px":0};return Bt.jsxs("div",{className:n,style:{display:"flex",alignItems:o?"center":"baseline"},children:[Bt.jsx("div",{className:a?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),a&&Bt.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:Bt.jsx("div",{className:"btn-group",style:c,children:Bt.jsx(u,{...r,style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"}})})})]})}function ru(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:o,hasRemove:i,fieldPathId:a,onCopyItem:l,onRemoveItem:s,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:d,uiSchema:h}=e,{CopyButton:m,MoveDownButton:p,MoveUpButton:v,RemoveButton:y}=d.templates.ButtonTemplates;return Bt.jsxs(Bt.Fragment,{children:[(o||r)&&Bt.jsx(v,{id:Ri(a,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!o,onClick:c,uiSchema:h,registry:d}),(o||r)&&Bt.jsx(p,{id:Ri(a,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!r,onClick:u,uiSchema:h,registry:d}),n&&Bt.jsx(m,{id:Ri(a,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:l,uiSchema:h,registry:d}),i&&Bt.jsx(y,{id:Ri(a,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:s,uiSchema:h,registry:d})]})}function ou(e){const{canAdd:t,className:n,disabled:r,fieldPathId:o,uiSchema:i,items:a,optionalDataControl:l,onAddClick:s,readonly:u,registry:c,required:f,schema:d,title:h}=e,m=En(i),p=gi("ArrayFieldDescriptionTemplate",c,m),v=gi("ArrayFieldTitleTemplate",c,m),y=!u&&!r,{ButtonTemplates:{AddButton:b}}=c.templates;return Bt.jsxs("fieldset",{className:n,id:o.$id,children:[Bt.jsx(v,{fieldPathId:o,title:m.title||h,required:f,schema:d,uiSchema:i,registry:c,optionalDataControl:y?l:void 0}),Bt.jsx(p,{fieldPathId:o,description:m.description||d.description,schema:d,uiSchema:i,registry:c}),y?void 0:l,Bt.jsx("div",{className:"row array-item-list",children:a}),t&&Bt.jsx(b,{id:Ri(o,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||u,uiSchema:i,registry:c})]})}function iu(e){const{fieldPathId:t,title:n,schema:r,uiSchema:o,required:i,registry:a,optionalDataControl:l}=e,s=En(o,a.globalUiOptions),{label:u=!0}=s;if(!n||!u)return null;const c=gi("TitleFieldTemplate",a,s);return Bt.jsx(c,{id:Pi(t),title:n,required:i,schema:r,uiSchema:o,registry:a,optionalDataControl:l})}function au(e){const{id:t,schema:n}=e,{examples:r,default:o}=n;return Array.isArray(r)?Bt.jsx("datalist",{id:Fi(t),children:r.concat(void 0===o||r.map(String).includes(String(o))?[]:[o]).map((e=>Bt.jsx("option",{value:e},String(e))))},`datalist_${t}`):null}function lu(e){const{id:t,name:n,htmlName:r,value:o,readonly:i,disabled:a,autofocus:l,onBlur:s,onFocus:u,onChange:c,onChangeOverride:f,options:d,schema:h,uiSchema:m,registry:p,rawErrors:v,type:y,hideLabel:b,hideError:g,...w}=e,{ClearButton:$}=p.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const k={...w,...vi(h,y,d)};let S;S="number"===k.type||"integer"===k.type?o||0===o?o:"":null==o?"":o;const E=Ot.useCallback((({target:{value:e}})=>c(""===e?d.emptyValue:e)),[c,d]),j=Ot.useCallback((({target:e})=>s(t,e&&e.value)),[s,t]),O=Ot.useCallback((({target:e})=>u(t,e&&e.value)),[u,t]),x=Ot.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c(d.emptyValue??"")}),[c,d.emptyValue]);return Bt.jsxs(Bt.Fragment,{children:[Bt.jsx("input",{id:t,name:r||t,className:"form-control",readOnly:i,disabled:a,autoFocus:l,value:S,...k,list:h.examples?Fi(t):void 0,onChange:f||E,onBlur:j,onFocus:O,"aria-describedby":Ti(t,!!h.examples)}),d.allowClearTextInputs&&!i&&!a&&S&&Bt.jsx($,{registry:p,onClick:x}),Bt.jsx(au,{id:t,schema:h})]})}function su({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=function(e={}){const t=En(e);if(t&&t[cn]){const e=t[cn];return{...bi,...e}}return bi}(e);return n?null:Bt.jsx("div",{children:Bt.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:t})})}function uu(e){const{iconType:t="default",icon:n,className:r,uiSchema:o,registry:i,...a}=e;return Bt.jsx("button",{type:"button",className:`btn btn-${t} ${r}`,...a,children:Bt.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function cu(e){const{registry:{translateString:t}}=e;return Bt.jsx(uu,{title:t(sa.CopyButton),...e,icon:"copy"})}function fu(e){const{registry:{translateString:t}}=e;return Bt.jsx(uu,{title:t(sa.MoveDownButton),...e,icon:"arrow-down"})}function du(e){const{registry:{translateString:t}}=e;return Bt.jsx(uu,{title:t(sa.MoveUpButton),...e,icon:"arrow-up"})}function hu(e){const{registry:{translateString:t}}=e;return Bt.jsx(uu,{title:t(sa.RemoveButton),...e,iconType:"danger",icon:"remove"})}function mu({id:e,className:t,onClick:n,disabled:r,registry:o,...i}){const{translateString:a}=o;return Bt.jsx(uu,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:a(sa.ClearButton),onClick:n,disabled:r,registry:o,...i})}function pu({id:e,className:t,onClick:n,disabled:r,registry:o}){const{translateString:i}=o;return Bt.jsx("div",{className:"row",children:Bt.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:Bt.jsx(uu,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(sa.AddButton),onClick:n,disabled:r,registry:o})})})}const vu=wi();function yu({description:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return En(n,r).enableMarkdownInDescription&&"string"==typeof e?Bt.jsx(Bs,{options:{disableParsingRawHTML:!0},"data-testid":vu.markdown,children:e}):e}function bu(e){const{id:t,description:n,registry:r,uiSchema:o}=e;return n?Bt.jsx("div",{id:t,className:"field-description",children:Bt.jsx(yu,{description:n,registry:r,uiSchema:o})}):null}function gu({errors:e,registry:t}){const{translateString:n}=t;return Bt.jsxs("div",{className:"panel panel-danger errors",children:[Bt.jsx("div",{className:"panel-heading",children:Bt.jsx("h3",{className:"panel-title",children:n(sa.ErrorsLabel)})}),Bt.jsx("ul",{className:"list-group",children:e.map(((e,t)=>Bt.jsx("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}function wu(e){const{schema:t,registry:n,typeSelector:r,schemaField:o}=e,i=gi("MultiSchemaFieldTemplate",n);return Bt.jsx(i,{selector:r,optionSchemaField:o,schema:t,registry:n})}function $u(e){const{label:t,required:n,id:r}=e;return t?Bt.jsxs("label",{className:"control-label",htmlFor:r,children:[t,n&&Bt.jsx("span",{className:"required",children:"*"})]}):null}function ku(e){const{id:t,label:n,children:r,errors:o,help:i,description:a,hidden:l,required:s,displayLabel:u,registry:c,uiSchema:f}=e,d=En(f),h=gi("WrapIfAdditionalTemplate",c,d);if(l)return Bt.jsx("div",{className:"hidden",children:r});const m="checkbox"===d.widget;return Bt.jsxs(h,{...e,children:[u&&!m&&Bt.jsx($u,{label:n,required:s,id:t}),u&&a?a:null,r,o,i]})}function Su(e){const{errors:t=[],fieldPathId:n}=e;if(0===t.length)return null;const r=Ai(n);return Bt.jsx("div",{children:Bt.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>Bt.jsx("li",{className:"text-danger",children:e},t)))})})}yu.TEST_IDS=vu;const Eu=wi();function ju({help:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return En(n,r).enableMarkdownInHelp&&"string"==typeof e?Bt.jsx(Bs,{options:{disableParsingRawHTML:!0},"data-testid":Eu.markdown,children:e}):e}function Ou(e){const{fieldPathId:t,help:n,uiSchema:r,registry:o}=e;return n?Bt.jsx("div",{id:Mi(t),className:"help-block",children:Bt.jsx(ju,{help:n,registry:o,uiSchema:r})}):null}function xu(e){const{children:t,column:n,className:r,...o}=e;return Bt.jsx("div",{className:r,...o,children:t})}function _u(e){const{selector:t,optionSchemaField:n}=e;return Bt.jsxs("div",{className:"panel panel-default panel-body",children:[Bt.jsx("div",{className:"form-group",children:t}),n]})}function Cu(e){const{className:t,description:n,disabled:r,formData:o,fieldPathId:i,onAddProperty:a,optionalDataControl:l,properties:s,readonly:u,registry:c,required:f,schema:d,title:h,uiSchema:m}=e,p=En(m),v=gi("TitleFieldTemplate",c,p),y=gi("DescriptionFieldTemplate",c,p);if((d.oneOf||d.anyOf)&&!d.properties&&0===s.length)return null;const b=!u&&!r,{ButtonTemplates:{AddButton:g}}=c.templates;return Bt.jsxs("fieldset",{className:t,id:i.$id,children:[h&&Bt.jsx(v,{id:Pi(i),title:h,required:f,schema:d,uiSchema:m,registry:c,optionalDataControl:b?l:void 0}),n&&Bt.jsx(y,{id:Ii(i),description:n,schema:d,uiSchema:m,registry:c}),b?void 0:l,s.map((e=>e.content)),jn(d,m,o)&&Bt.jsx(g,{id:Ri(i,"add"),className:"rjsf-object-property-expand",onClick:a,disabled:r||u,uiSchema:m,registry:c})]})}function Du(e){const{id:t,registry:n,label:r,onAddClick:o,onRemoveClick:i}=e;return o?Bt.jsx(uu,{id:t,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:o,title:r}):i?Bt.jsx(uu,{id:t,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:i,title:r}):Bt.jsx("em",{id:t,children:r})}function Iu(e){const{id:t,title:n,required:r,optionalDataControl:o}=e;return Bt.jsxs("legend",{id:t,children:[n,r&&Bt.jsx("span",{className:"required",children:"*"}),o&&Bt.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:o})]})}function Au(e){const{schema:t,fieldPathId:n,reason:r,registry:o}=e,{translateString:i}=o;let a=sa.UnsupportedField;const l=[];return n&&n.$id&&(a=sa.UnsupportedFieldWithId,l.push(n.$id)),r&&(a=a===sa.UnsupportedField?sa.UnsupportedFieldWithReason:sa.UnsupportedFieldWithIdAndReason,l.push(r)),Bt.jsxs("div",{className:"unsupported-field",children:[Bt.jsx("p",{children:Bt.jsx(Bs,{options:{disableParsingRawHTML:!0},children:i(a,l)})}),t&&Bt.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function Fu(e){const{id:t,classNames:n,style:r,disabled:o,displayLabel:i,label:a,onKeyRenameBlur:l,onRemoveProperty:s,rawDescription:u,readonly:c,required:f,schema:d,hideError:h,rawErrors:m,children:p,uiSchema:v,registry:y}=e,{templates:b,translateString:g}=y,{RemoveButton:w}=b.ButtonTemplates,$=g(sa.KeyLabel,[a]),k=Ht in d,S=!!u,E=["form-group",n];!h&&m&&m.length>0&&E.push("has-error has-danger");const j=E.join(" ").trim();if(!k)return Bt.jsx("div",{className:j,style:r,children:p});const O=S?46:26;return Bt.jsx("div",{className:j,style:r,children:Bt.jsxs("div",{className:"row",children:[Bt.jsx("div",{className:"col-xs-5 form-additional",children:Bt.jsxs("div",{className:"form-group",children:[i&&Bt.jsx($u,{label:$,required:f,id:`${t}-key`}),i&&u&&Bt.jsx("div",{children:" "}),Bt.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:l,defaultValue:a},a)]})}),Bt.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),Bt.jsx("div",{className:"col-xs-2",style:{marginTop:i?`${O}px`:void 0},children:Bt.jsx(w,{id:Ri(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:o||c,onClick:s,uiSchema:v,registry:y})})]})})}function Mu(e){const{disabled:t=!1,readonly:n=!1,autofocus:r=!1,options:o,id:i,name:a,registry:l,onBlur:s,onFocus:u}=e,{translateString:c}=l,{elements:f,handleChange:d,handleClear:h,handleSetNow:m}=function(e){const{time:t=!1,disabled:n=!1,readonly:r=!1,options:o,onChange:i,value:a}=e,[l,s]=Ot.useState(Wi(a,t));Ot.useEffect((()=>{s(Wi(a,t))}),[t,a]);const u=Ot.useCallback(((e,n)=>{const r={...l,[e]:void 0===n?-1:n};!function(e){return Object.values(e).every((e=>-1!==e))}(r)?s(r):i(Yi(r,t))}),[l,i,t]),c=Ot.useCallback((e=>{e.preventDefault(),n||r||i(void 0)}),[n,r,i]),f=Ot.useCallback((e=>{if(e.preventDefault(),n||r)return;const o=Wi((new Date).toJSON(),t);i(Yi(o,t))}),[n,r,t,i]),d=Ot.useMemo((()=>function(e,t,n=[1900,(new Date).getFullYear()+2],r="YMD"){const{day:o,month:i,year:a,hour:l,minute:s,second:u}=e,c={type:"day",range:[1,31],value:o},f={type:"month",range:[1,12],value:i},d={type:"year",range:n,value:a},h=[];switch(r){case"MDY":h.push(f,c,d);break;case"DMY":h.push(c,f,d);break;default:h.push(d,f,c)}return t&&h.push({type:"hour",range:[0,23],value:l},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:u}),h}(l,t,o.yearsRange,o.format)),[l,t,o.yearsRange,o.format]);return{elements:d,handleChange:u,handleClear:c,handleSetNow:f}}(e);return Bt.jsxs("ul",{className:"list-inline",children:[f.map(((e,o)=>Bt.jsx("li",{className:"list-inline-item",children:Bt.jsx(ea,{rootId:i,name:a,select:d,...e,disabled:t,readonly:n,registry:l,onBlur:s,onFocus:u,autofocus:r&&0===o})},o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&Bt.jsx("li",{className:"list-inline-item",children:Bt.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:m,children:c(sa.NowLabel)})}),("undefined"===o.hideClearButton||!o.hideClearButton)&&Bt.jsx("li",{className:"list-inline-item",children:Bt.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:h,children:c(sa.ClearLabel)})})]})}function Pu({time:e=!0,...t}){const{AltDateWidget:n}=t.registry.widgets;return Bt.jsx(n,{time:e,...t})}function Tu({schema:e,uiSchema:t,options:n,id:r,value:o,disabled:i,readonly:a,label:l,hideLabel:s,autofocus:u=!1,onBlur:c,onFocus:f,onChange:d,registry:h,htmlName:m}){const p=gi("DescriptionFieldTemplate",h,n),v=Hi(e),y=Ot.useCallback((e=>d(e.target.checked)),[d]),b=Ot.useCallback((e=>c(r,e.target.checked)),[c,r]),g=Ot.useCallback((e=>f(r,e.target.checked)),[f,r]),w="checkbox"===En(t).widget?void 0:n.description??e.description;return Bt.jsxs("div",{className:"checkbox "+(i||a?"disabled":""),children:[!s&&w&&Bt.jsx(p,{id:Ii(r),description:w,schema:e,uiSchema:t,registry:h}),Bt.jsxs("label",{children:[Bt.jsx("input",{type:"checkbox",id:r,name:m||r,checked:void 0!==o&&o,required:v,disabled:i||a,autoFocus:u,onChange:y,onBlur:b,onFocus:g,"aria-describedby":Ti(r)}),zi(Bt.jsx("span",{children:l}),s)]})]})}function Nu({id:e,disabled:t,options:n,value:r,autofocus:o=!1,readonly:i,onChange:a,onBlur:l,onFocus:s,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:d,emptyValue:h}=n,m=yi(n),p=Array.isArray(r)?r:[r],v=Ot.useCallback((({target:t})=>l(e,fi(t&&t.value,f,m,h))),[l,e,f,h,m]),y=Ot.useCallback((({target:t})=>s(e,fi(t&&t.value,f,m,h))),[s,e,f,h,m]);return Bt.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map(((n,r)=>{const l=si(n.value,p),s=Array.isArray(d)&&-1!==d.indexOf(n.value),h=t||s||i?"disabled":"",b=Bt.jsxs("span",{children:[Bt.jsx("input",{type:"checkbox",id:Ni(e,r),name:u||e,checked:l,value:di(n.value,r,m),disabled:t||s||i,autoFocus:o&&0===r,onChange:e=>{a(e.target.checked?function(e,t,n=[]){const r=ui(e,n);if(!Xe(r)){const e=n.findIndex((e=>r===e.value)),o=n.map((({value:e})=>e));return t.slice(0,e).concat(r,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}(r,p,f):function(e,t,n=[]){const r=ui(e,n);return Array.isArray(t)?t.filter((e=>!er(e,r))):er(r,t)?void 0:t}(r,p,f))},onBlur:v,onFocus:y,"aria-describedby":Ti(e)}),Bt.jsx("span",{children:n.label})]});return c?Bt.jsx("label",{className:`checkbox-inline ${h}`,children:b},r):Bt.jsx("div",{className:`checkbox ${h}`,children:Bt.jsx("label",{children:b})},r)}))})}function Ru(e){const{disabled:t,readonly:n,options:r,registry:o}=e,i=gi("BaseInputTemplate",o,r);return Bt.jsx(i,{type:"color",...e,disabled:t||n})}function Uu(e){const{onChange:t,options:n,registry:r}=e,o=gi("BaseInputTemplate",r,n),i=Ot.useCallback((e=>t(e||void 0)),[t]);return Bt.jsx(o,{type:"date",...e,onChange:i})}function qu(e){const{onChange:t,value:n,options:r,registry:o}=e,i=gi("BaseInputTemplate",o,r);return Bt.jsx(i,{type:"datetime-local",...e,value:ia(n),onChange:e=>{return t((n=e)?new Date(n).toJSON():void 0);var n}})}function zu(e){const{options:t,registry:n}=e,r=gi("BaseInputTemplate",n,t);return Bt.jsx(r,{type:"email",...e})}function Lu({fileInfo:e,registry:t}){const{translateString:n}=t,{dataURL:r,type:o,name:i}=e;return r?["image/jpeg","image/png"].includes(o)?Bt.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):Bt.jsxs(Bt.Fragment,{children:[" ",Bt.jsx("a",{download:`preview-${i}`,href:r,className:"file-download",children:n(sa.PreviewLabel)})]}):null}function Bu({filesInfo:e,registry:t,preview:n,onRemove:r,options:o}){if(0===e.length)return null;const{translateString:i}=t,{RemoveButton:a}=gi("ButtonTemplates",t,o);return Bt.jsx("ul",{className:"file-info",children:e.map(((e,o)=>{const{name:l,size:s,type:u}=e;return Bt.jsxs("li",{children:[Bt.jsx(Bs,{children:i(sa.FilesInfo,[l,u,String(s)])}),n&&Bt.jsx(Lu,{fileInfo:e,registry:t}),Bt.jsx(a,{onClick:()=>r(o),registry:t})]},o)}))})}function Vu(e){const{disabled:t,readonly:n,required:r,multiple:o,onChange:i,value:a,options:l,registry:s}=e,{filesInfo:u,handleChange:c,handleRemove:f}=function(e,t,n=!1){const r=Ot.useMemo((()=>n&&e?Array.isArray(e)?e:[e]:[]),[e,n]),o=Ot.useMemo((()=>Array.isArray(e)?oa(e):oa([e||""])),[e]),i=Ot.useCallback((e=>{(function(e){return Promise.all(Array.from(e).map(ra))})(e).then((e=>{const o=e.map((e=>e.dataURL||null));t(n?r.concat(...o):o[0])}))}),[r,n,t]),a=Ot.useCallback((e=>{if(n){const n=r.filter(((t,n)=>n!==e));t(n)}else t(void 0)}),[r,n,t]);return{filesInfo:o,handleChange:i,handleRemove:a}}(a,i,o),d=gi("BaseInputTemplate",s,l);return Bt.jsxs("div",{children:[Bt.jsx(d,{...e,disabled:t||n,type:"file",required:!a&&r,onChangeOverride:e=>{e.target.files&&c(e.target.files)},value:"",accept:l.accept?String(l.accept):void 0}),Bt.jsx(Bu,{filesInfo:u,onRemove:f,registry:s,preview:l.filePreview,options:l})]})}function Wu({id:e,value:t,htmlName:n}){return Bt.jsx("input",{type:"hidden",id:e,name:n||e,value:void 0===t?"":t})}function Hu(e){const{options:t,registry:n}=e,r=gi("BaseInputTemplate",n,t);return Bt.jsx(r,{type:"password",...e})}function Gu({options:e,value:t,required:n,disabled:r,readonly:o,autofocus:i=!1,onBlur:a,onFocus:l,onChange:s,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:d,inline:h,emptyValue:m}=e,p=yi(e),v=Ot.useCallback((({target:e})=>a(u,fi(e&&e.value,f,p,m))),[a,f,m,u,p]),y=Ot.useCallback((({target:e})=>l(u,fi(e&&e.value,f,p,m))),[l,f,m,u,p]);return Bt.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map(((e,a)=>{const l=si(e.value,t),f=Array.isArray(d)&&-1!==d.indexOf(e.value),m=r||f||o?"disabled":"",b=Bt.jsxs("span",{children:[Bt.jsx("input",{type:"radio",id:Ni(u,a),checked:l,name:c||u,required:n,value:di(e.value,a,p),disabled:r||f||o,autoFocus:i&&0===a,onChange:()=>s(e.value),onBlur:v,onFocus:y,"aria-describedby":Ti(u)}),Bt.jsx("span",{children:e.label})]});return h?Bt.jsx("label",{className:`radio-inline ${m}`,children:b},a):Bt.jsx("div",{className:`radio ${m}`,children:Bt.jsx("label",{children:b})},a)}))})}function Ku(e){const{value:t,registry:{templates:{BaseInputTemplate:n}}}=e;return Bt.jsxs("div",{className:"field-range-wrapper",children:[Bt.jsx(n,{type:"range",...e}),Bt.jsx("span",{className:"range-view",children:t})]})}function Ju({id:e,value:t,required:n,disabled:r,readonly:o,onChange:i,onFocus:a,onBlur:l,schema:s,options:u,htmlName:c}){const{stars:f=5,shape:d="star"}=u,h=s.maximum?Math.min(s.maximum,5):Math.min(Math.max(f,1),5),m=s.minimum||0,p=Ot.useCallback((e=>{r||o||i(e)}),[i,r,o]),v=Ot.useCallback((t=>{if(a){const n=Number(t.target.dataset.value);a(e,n)}}),[a,e]),y=Ot.useCallback((t=>{if(l){const n=Number(t.target.dataset.value);l(e,n)}}),[l,e]),b=e=>"heart"===d?e?"♥":"♡":e?"★":"☆";return Bt.jsx(Bt.Fragment,{children:Bt.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||o?"default":"pointer"},children:[[...Array(h)].map(((e,n)=>{const i=m+n,a=i<=t;return Bt.jsx("span",{onClick:()=>p(i),onFocus:v,onBlur:y,"data-value":i,tabIndex:r||o?-1:0,role:"radio","aria-checked":i===t,"aria-label":`${i} ${"heart"===d?"heart":"star"}${1===i?"":"s"}`,style:{color:a?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:b(a)},n)})),Bt.jsx("input",{type:"hidden",id:e,name:c||e,value:t||"",required:n,disabled:r||o,"aria-hidden":"true"})]})})}function Yu(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function Xu({schema:e,id:t,options:n,value:r,required:o,disabled:i,readonly:a,multiple:l=!1,autofocus:s=!1,onChange:u,onBlur:c,onFocus:f,placeholder:d,htmlName:h}){const{enumOptions:m,enumDisabled:p,emptyValue:v}=n,y=l?[]:"",b=yi(n),g=Ot.useCallback((e=>{const n=Yu(e,l);return f(t,fi(n,m,b,v))}),[f,t,l,m,v,b]),w=Ot.useCallback((e=>{const n=Yu(e,l);return c(t,fi(n,m,b,v))}),[c,t,l,m,v,b]),$=Ot.useCallback((e=>{const t=Yu(e,l);return u(fi(t,m,b,v))}),[u,l,m,v,b]),k=function(e,t,n,r="indexed",o){if(void 0===e||n&&Array.isArray(e)&&e.length<1||!n&&e===o)return o;if("realValue"===r)return n?e.map(String):String(e);const i=function(e,t=[],n=!1){const r=t.map(((t,n)=>si(t.value,e)?String(n):void 0)).filter((e=>void 0!==e));return n?r:r[0]}(e,t,n);return void 0===i?o:i}(r,m,l,b,y),S=!l&&void 0===e.default;return Bt.jsxs("select",{id:t,name:h||t,multiple:l,role:"combobox",className:"form-control",value:k,required:o,disabled:i||a,autoFocus:s,onBlur:w,onFocus:g,onChange:$,"aria-describedby":Ti(t),children:[S&&Bt.jsx("option",{value:"",children:d}),Array.isArray(m)&&m.map((({value:e,label:t},n)=>{const r=p&&-1!==p.indexOf(e);return Bt.jsx("option",{value:di(e,n,b),disabled:r,children:t},n)}))]})}function Zu({id:e,options:t={},placeholder:n,value:r,required:o,disabled:i,readonly:a,autofocus:l=!1,onChange:s,onBlur:u,onFocus:c,htmlName:f}){const d=Ot.useCallback((({target:{value:e}})=>s(""===e?t.emptyValue:e)),[s,t.emptyValue]),h=Ot.useCallback((({target:t})=>u(e,t&&t.value)),[u,e]),m=Ot.useCallback((({target:t})=>c(e,t&&t.value)),[e,c]);return Bt.jsx("textarea",{id:e,name:f||e,className:"form-control",value:r||"",placeholder:n,required:o,disabled:i,readOnly:a,autoFocus:l,rows:t.rows,onBlur:h,onFocus:m,onChange:d,"aria-describedby":Ti(e)})}function Qu(e){const{options:t,registry:n}=e,r=gi("BaseInputTemplate",n,t);return Bt.jsx(r,{...e})}function ec(e){const{onChange:t,options:n,registry:r}=e,o=gi("BaseInputTemplate",r,n),i=Ot.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return Bt.jsx(o,{type:"time",...e,onChange:i})}function tc(e){const{options:t,registry:n}=e,r=gi("BaseInputTemplate",n,t);return Bt.jsx(r,{type:"url",...e})}function nc(e){const{options:t,registry:n}=e,r=gi("BaseInputTemplate",n,t);return Bt.jsx(r,{type:"number",...e})}function rc(){return{fields:{AnyOfField:Wa,ArrayField:Ea,BooleanField:ja,FallbackField:Oa,LayoutGridField:qa,LayoutHeaderField:za,LayoutMultiSchemaField:Va,NumberField:Ka,ObjectField:Ks,OneOfField:Wa,OptionalDataControlsField:Js,SchemaField:Zs,StringField:Qs,NullField:eu},templates:{ArrayFieldDescriptionTemplate:tu,ArrayFieldItemTemplate:nu,ArrayFieldItemButtonsTemplate:ru,ArrayFieldTemplate:ou,ArrayFieldTitleTemplate:iu,ButtonTemplates:{SubmitButton:su,AddButton:pu,CopyButton:cu,MoveDownButton:fu,MoveUpButton:du,RemoveButton:hu,ClearButton:mu},BaseInputTemplate:lu,DescriptionFieldTemplate:bu,ErrorListTemplate:gu,FallbackFieldTemplate:wu,FieldTemplate:ku,FieldErrorTemplate:Su,FieldHelpTemplate:Ou,GridTemplate:xu,MultiSchemaFieldTemplate:_u,ObjectFieldTemplate:Cu,OptionalDataControlsTemplate:Du,TitleFieldTemplate:Iu,UnsupportedFieldTemplate:Au,WrapIfAdditionalTemplate:Fu},widgets:{AltDateWidget:Mu,AltDateTimeWidget:Pu,CheckboxWidget:Tu,CheckboxesWidget:Nu,ColorWidget:Ru,DateWidget:Uu,DateTimeWidget:qu,EmailWidget:zu,FileWidget:Vu,HiddenWidget:Wu,PasswordWidget:Hu,RadioWidget:Gu,RangeWidget:Ku,RatingWidget:Ju,SelectWidget:Xu,TextWidget:Qu,TextareaWidget:Zu,TimeWidget:ec,UpDownWidget:nc,URLWidget:tc},rootSchema:{},formContext:{},translateString:li,globalFormOptions:{idPrefix:mn,idSeparator:pn,useFallbackUiForUnsupportedType:!1}}}function oc(e,t){return{...it(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...void 0!==t&&{status:t}}}ju.TEST_IDS=Eu;let ic=class extends Ot.Component{formElement;pendingChanges=[];_isProcessingUserChange=!1;static getDerivedStateFromProps(e,t){if(e.extraErrors!==t._prevExtraErrors){const n={errors:t.schemaValidationErrors||[],errorSchema:t.schemaValidationErrorSchema||{}};let{errors:r,errorSchema:o}=n;return e.extraErrors&&({errors:r,errorSchema:o}=aa(n,e.extraErrors)),t.customErrors&&({errors:r,errorSchema:o}=aa({errors:r,errorSchema:o},t.customErrors.ErrorSchema,!0)),{_prevExtraErrors:e.extraErrors,errors:r,errorSchema:o}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:t,initialFormData:n,onChange:r}=e,o=t??n;this.state={...this.getStateFromProps(e,o,void 0,void 0,void 0,!0),_prevExtraErrors:e.extraErrors},r&&!er(this.state.formData,o)&&r(oc(this.state)),this.formElement=Ot.createRef()}getSnapshotBeforeUpdate(e,t){if(!er(this.props,e)){const n=mi(this.props.formData,e.formData),r=mi(this.props.formData,this.state.formData),o=!er(e.schema,this.props.schema),i=n.length>0||!er(e.formData,this.props.formData),a=r.length>0||!er(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,o||i?void 0:this.state.retrievedSchema,o,n,!a);return{nextState:l,shouldUpdate:!er(l,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,n){if(n.shouldUpdate){const{nextState:e}=n,r=!er(e.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&r)return;r&&!er(e.formData,t.formData)&&this.props.onChange&&this.props.onChange(oc(e)),this.setState(e)}}getStateFromProps(e,t,n,r=!1,o=[],i=!1){const a=this.state||{},l="schema"in e?e.schema:this.props.schema,s="validator"in e?e.validator:this.props.validator,u=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},c=void 0===e.formData&&void 0===this.props.formData,f=void 0!==t,d=f&&!e.noValidate&&("liveValidate"in e?e.liveValidate:this.props.liveValidate),h="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,m="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let p=a.schemaUtils;p&&!p.doesSchemaUtilsDiffer(s,l,h,m)||(p=function(e,t,n={},r){return new ri(e,t,n,r)}(s,l,h,m));const v=p.getRootSchema();let y=t;t===Ws?y=void 0:void 0===t&&c&&(y=a.formData);const b=p.getDefaultFormState(v,y,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(n??p.retrieveSchema(v,b));let w,$,k=a.schemaValidationErrors,S=a.schemaValidationErrorSchema;if(d&&!i){const e=this.liveValidate(v,p,a.errorSchema,b,void 0,a.customErrors,n,void 0!==n);w=e.errors,$=e.errorSchema,k=e.schemaValidationErrors,S=e.schemaValidationErrorSchema}else{const t=e.noValidate||r?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};if(w=t.errors,$=t.errorSchema,o.length>0&&!d){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});$=S=Po(t.errorSchema,e,"preventDuplicates")}const n=this.mergeErrors({errorSchema:$,errors:w},e.extraErrors,a.customErrors);w=n.errors,$=n.errorSchema}const E=this.getRegistry(e,v,p),j=er(a.registry,E)?a.registry:E;return{schemaUtils:p,schema:v,uiSchema:u,fieldPathId:a.fieldPathId&&a.fieldPathId?.[en]===j.globalFormOptions.idPrefix?a.fieldPathId:Zi("",j.globalFormOptions),formData:b,edit:f,errors:w,errorSchema:$,schemaValidationErrors:k,schemaValidationErrorSchema:S,retrievedSchema:g,initialDefaultsGenerated:!0,registry:j}}shouldComponentUpdate(e,t){const{experimental_componentUpdateStrategy:n="customDeep"}=this.props;return Gi(this,e,t,n)}validate(e,t=this.state.schema,n,r){const o=n||this.state.schemaUtils,{customValidate:i,transformErrors:a,uiSchema:l}=this.props,s=r??o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,s,i,a,l)}renderErrors(e){const{errors:t,errorSchema:n,schema:r,uiSchema:o}=this.state,i=gi("ErrorListTemplate",e,En(o));return t&&t.length?Bt.jsx(i,{errors:t,errorSchema:n||{},schema:r,uiSchema:o,registry:e}):null}mergeErrors(e,t,n){let r=e.errorSchema,o=e.errors;if(t){const n=aa(e,t);r=n.errorSchema,o=n.errors}if(n){const e=aa({errors:o,errorSchema:r},n.ErrorSchema,!0);r=e.errorSchema,o=e.errors}return{errors:o,errorSchema:r}}liveValidate(e,t,n,r,o,i,a,l=!1){const s=this.validate(r,e,t,a),u=s.errors;let c=s.errorSchema;l&&(c=Po(n,s.errorSchema,"preventDuplicates"));const f=u,d=c;return{...this.mergeErrors({errorSchema:c,errors:u},o,i),schemaValidationErrors:f,schemaValidationErrorSchema:d}}getUsedFormData=(e,t)=>Qo(e,t);getFieldNames=(e,t)=>ei(e,t);omitExtraData=e=>{const{schema:t,schemaUtils:n}=this.state;return n.omitExtraData(t,e)};setFieldValue=(e,t)=>{const{registry:n}=this.state,r=Array.isArray(e)?e:e.split("."),o=Zi("",n.globalFormOptions,r);this.onChange(t,r,void 0,o[en])};onChange=(e,t,n,r)=>{this.pendingChanges.push({newValue:e,path:t,newErrorSchema:n,id:r}),1===this.pendingChanges.length&&this.processPendingChange()};processPendingChange(){if(0===this.pendingChanges.length)return;this._isProcessingUserChange=!0;const{newValue:e,path:t,id:n}=this.pendingChanges[0],{newErrorSchema:r}=this.pendingChanges[0],{extraErrors:o,omitExtraData:i,liveOmit:a,noValidate:l,liveValidate:s,onChange:u,removeEmptyOptionalObjects:c}=this.props,{formData:f,schemaUtils:d,schema:m,fieldPathId:p,schemaValidationErrorSchema:v,errors:y}=this.state;let{customErrors:b}=this.state,g=v;const w=!t||0===t.length||1===t.length&&t[0]===(p.path[0]||"");let $=this.state.retrievedSchema,k=w?e:T(f);const S=Vt(k)&&Object.keys(k).length>0&&Object.values(k).every((e=>void 0===e)),E=S&&null==f?void 0:k;if(Vt(k)||Array.isArray(k)){e===Vs?function(e,t){null==e||nt(e,t)}(k,t):w||lt(k,t,e);const n=this.getStateFromProps(this.props,E,void 0,void 0,void 0,!0);k=n.formData,$=n.retrievedSchema}const j=!l&&(!0===s||"onChange"===s);let O={formData:k,schema:m},x=k;if(!0!==i||!0!==a&&"onChange"!==a||(x=this.omitExtraData(k),O={formData:x}),c&&(x=Vi(d.getValidator(),m,d.getRootSchema(),x),O={...O,formData:x}),r){const e=w?v:h(v,t);if(se(e))if(b||(b=new hi),w){const e=h(r,Qt);e&&b.setErrors(e)}else lt(b.ErrorSchema,t,r);else w?g=r:(g=T(v),lt(g,t,r))}else b&&h(b.ErrorSchema,[...t,Qt])&&b.clearErrors(t);if(j&&1===this.pendingChanges.length){const e=this.liveValidate(m,d,g,x,o,b,$);O={formData:x,...e,customErrors:b}}else if(!l&&r){const e=this.mergeErrors({errorSchema:g,errors:y},o,b);O={formData:x,...e,customErrors:b}}this.setState(O,(()=>{u&&u(oc({...this.state,...O}),n),this.pendingChanges.shift(),this.processPendingChange()}))}updateRetrievedSchema(e){return er(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:t=Ws,onChange:n}=this.props,r={formData:this.getStateFromProps(this.props,e??t,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(r,(()=>n&&n(oc({...this.state,...r}))))};onBlur=(e,t)=>{const{onBlur:n,omitExtraData:r,liveOmit:o,liveValidate:i,removeEmptyOptionalObjects:a}=this.props;if(n&&n(e,t),!0===r&&"onBlur"===o||"onBlur"===i){const{onChange:t,extraErrors:n}=this.props,{formData:l,schemaUtils:s,schema:u}=this.state;let c=l,f={formData:c};if(!0===r&&"onBlur"===o&&(c=this.omitExtraData(l),f={formData:c}),a&&(c=Vi(s.getValidator(),u,s.getRootSchema(),c),f={...f,formData:c}),"onBlur"===i){const{schema:e,schemaUtils:t,errorSchema:r,customErrors:o,retrievedSchema:i}=this.state,a=this.liveValidate(e,t,r,c,n,o,i);f={formData:c,...a,customErrors:o}}const d=Object.keys(f).filter((e=>!e.startsWith("schemaValidation"))).some((e=>{const t=h(this.state,e),n=h(f,e);return!er(t,n)}));this.setState(f,(()=>{t&&d&&t(oc({...this.state,...f}),e)}))}};onFocus=(e,t)=>{const{onFocus:n}=this.props;n&&n(e,t)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:n,noValidate:r,onSubmit:o,removeEmptyOptionalObjects:i}=this.props;let{formData:a}=this.state;if(!0===t&&(a=this.omitExtraData(a)),i){const{schemaUtils:e,schema:t}=this.state;a=Vi(e.getValidator(),t,e.getRootSchema(),a)}if(r||this.validateFormWithFormData(a)){const t=n||{},r=n?Xi(n):[];this.setState({formData:a,errors:r,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(oc({...this.state,formData:a},"submitted"),e)}))}};getGlobalFormOptions(e){const{uiSchema:t={},experimental_componentUpdateStrategy:n,idSeparator:r=pn,idPrefix:o=mn,nameGenerator:i,useFallbackUiForUnsupportedType:a=!1}=e;return{idPrefix:t["ui:rootFieldId"]||o,idSeparator:r,useFallbackUiForUnsupportedType:a,...void 0!==n&&{experimental_componentUpdateStrategy:n},...void 0!==i&&{nameGenerator:i}}}getRegistry(e,t,n){const{translateString:r,uiSchema:o={}}=e,{fields:i,templates:a,widgets:l,formContext:s,translateString:u}=rc();return{fields:{...i,...e.fields},templates:{...a,...e.templates,ButtonTemplates:{...a.ButtonTemplates,...e.templates?.ButtonTemplates}},widgets:{...l,...e.widgets},rootSchema:t,formContext:e.formContext||s,schemaUtils:n,translateString:r||u,globalUiOptions:o[kn],globalFormOptions:this.getGlobalFormOptions(e),uiSchemaDefinitions:o["ui:definitions"]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:t="root",idSeparator:n="_"}=this.props,{property:r}=e,o=ft(r);""===o[0]?o[0]=t:o.unshift(t);const i=o.join(n);let a=this.formElement.current.elements[i];a||(a=this.formElement.current.querySelector(`input[id^="${i}"], button[id^="${i}"]`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:t,extraErrorsBlockSubmit:n,focusOnFirstError:r,onError:o}=this.props,{errors:i}=this.state,a=this.validate(e),{errors:l,errorSchema:s}=t?this.mergeErrors(a,t):a,u=a.errors.length>0||t&&n;return u?(r&&("function"==typeof r?r(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:s,schemaValidationErrors:a.errors,schemaValidationErrorSchema:a.errorSchema},(()=>{o?o(l):console.error("Form validation failed",l)}))):l.length>0?this.setState({errors:l,errorSchema:s,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):i.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!u};validateForm(){const{omitExtraData:e,removeEmptyOptionalObjects:t}=this.props;let{formData:n}=this.state;if(!0===e&&(n=this.omitExtraData(n)),t){const{schemaUtils:e,schema:t}=this.state;n=Vi(e.getValidator(),t,e.getRootSchema(),n)}return this.validateFormWithFormData(n)}render(){const{children:e,id:t,className:n="",tagName:r,name:o,method:i,target:a,action:l,autoComplete:s,enctype:u,acceptCharset:c,noHtml5Validate:f=!1,disabled:d,readonly:h,showErrorList:m="top",_internalFormWrapper:p}=this.props,{schema:v,uiSchema:y,formData:b,errorSchema:g,fieldPathId:w,registry:$}=this.state,{SchemaField:k}=$.fields,{SubmitButton:S}=$.templates.ButtonTemplates,E=p?r:void 0,j=p||r||"form";let{[cn]:O={}}=En(y);d&&(O={...O,props:{...O.props,disabled:!0}});const x={[$n]:{[cn]:O}};return Bt.jsxs(j,{className:n||"rjsf",id:t,name:o,method:i,target:a,action:l,autoComplete:s,encType:u,acceptCharset:c,noValidate:f,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:["top"===m&&this.renderErrors($),Bt.jsx(k,{name:"",schema:v,uiSchema:y,errorSchema:g,fieldPathId:w,formData:b,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:$,disabled:d,readonly:h}),e||Bt.jsx(S,{uiSchema:x,registry:$}),"bottom"===m&&this.renderErrors($)]})}};var ac,lc={exports:{}},sc={},uc={},cc={},fc={},dc={},hc={};function mc(){return ac||(ac=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let o=0;for(;o<t.length;)l(n,t[o]),n.push(e[++o]);return new r(n)}e._Code=r,e.nil=new r(""),e._=o;const i=new r("+");function a(e,...t){const n=[u(e[0])];let o=0;for(;o<t.length;)n.push(i),l(n,t[o]),n.push(i,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const n=s(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function l(e,t){t instanceof r?e.push(...t._items):e.push(t instanceof n?t:function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function s(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=l,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},e.stringify=function(e){return new r(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new r(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new r(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new r(e.toString())}}(hc)),hc}var pc,vc,yc={};function bc(){return pc||(pc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=mc();class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${r}]`}}e.ValueScopeName=i;const a=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[o];if(a){const e=a.get(i);if(e)return e}else a=this._values[o]=new Map;a.set(i,r);const l=this._scope[o]||(this._scope[o]=[]),s=l.length;return l[s]=t.ref,r.setValue(t,{property:o,itemIndex:s}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,(n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(o,i,a={},l){let s=t.nil;for(const u in o){const c=o[u];if(!c)continue;const f=a[u]=a[u]||new Map;c.forEach((o=>{if(f.has(o))return;f.set(o,r.Started);let a=i(o);if(a)s=t._`${s}${this.opts.es5?e.varKinds.var:e.varKinds.const} ${o} = ${a};${this.opts._n}`;else{if(!(a=null==l?void 0:l(o)))throw new n(o);s=t._`${s}${a}${this.opts._n}`}f.set(o,r.Completed)}))}return s}}}(yc)),yc}function gc(){return vc||(vc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=mc(),n=bc();var r=mc();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=bc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends i{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){return`${e?n.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=C(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends i{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=C(this.rhs,e,n),this}get names(){return _(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class s extends l{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class d extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=C(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(D(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>x(e,t.names)),{})}}class m extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class p extends h{}class v extends m{}v.kind="else";class y extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(I(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=C(this.condition,e,t),this}get names(){const e=super.names;return _(e,this.condition),this.else&&x(e,this.else.names),e}}y.kind="if";class b extends m{}b.kind="for";class g extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=C(this.iteration,e,t),this}get names(){return x(super.names,this.iteration.names)}}class w extends b{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:o,to:i}=this;return`for(${t} ${r}=${o}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){const e=_(super.names,this.from);return _(e,this.to)}}class $ extends b{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=C(this.iterable,e,t),this}get names(){return x(super.names,this.iterable.names)}}class k extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class E extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&x(e,this.catch.names),this.finally&&x(e,this.finally.names),e}}class j extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class O extends m{render(e){return"finally"+super.render(e)}}function x(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function _(e,n){return n instanceof t._CodeOrName?x(e,n.names):e}function C(e,n,r){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str]))}(e)?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=o(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;function o(e){const t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function D(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${P(e)}`}O.kind="finally",e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new a(e,o,n)),o}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new l(e,t,n))}add(t,n){return this._leafNode(new s(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new d(e)),this}object(...e){const n=["{"];for(const[r,o]of e)n.length>1&&n.push(","),n.push(r),(r!==o||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,o));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new y(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(i,a,t,r),(()=>o(a)))}forOf(e,r,o,i=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(a,t._`${e}[${n}]`),o(a)}))}return this._for(new $("of",i,a,r),(()=>o(a)))}forIn(e,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,o);const a=this._scope.toName(e);return this._for(new $("in",i,a,r),(()=>o(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new E;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new j(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(j,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,o){return this._blockNode(new k(e,n,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=I;const A=M(e.operators.AND);e.and=function(...e){return e.reduce(A)};const F=M(e.operators.OR);function M(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${P(n)} ${e} ${P(r)}`}function P(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(F)}}(dc)),dc}var wc,$c={};function kc(){if(wc)return $c;wc=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.checkStrictMode=$c.getErrorPath=$c.Type=$c.useFunc=$c.setEvaluated=$c.evaluatedPropsToName=$c.mergeEvaluated=$c.eachItem=$c.unescapeJsonPointer=$c.escapeJsonPointer=$c.escapeFragment=$c.unescapeFragment=$c.schemaRefOrVal=$c.schemaHasRulesButRef=$c.schemaHasRules=$c.checkUnknownRules=$c.alwaysValidSchema=$c.toHash=void 0;const e=gc(),t=mc();function n(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const n in t)o[n]||f(e,`unknown keyword: "${n}"`)}function r(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function o(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:t,mergeToName:n,mergeValues:r,resultToName:o}){return(i,a,l,s)=>{const u=void 0===l?a:l instanceof e.Name?(a instanceof e.Name?t(i,a,l):n(i,a,l),l):a instanceof e.Name?(n(i,l,a),a):r(a,l);return s!==e.Name||u instanceof e.Name?u:o(i,u)}}function l(t,n){if(!0===n)return t.var("props",!0);const r=t.var("props",e._`{}`);return void 0!==n&&s(t,r,n),r}function s(t,n,r){Object.keys(r).forEach((r=>t.assign(e._`${n}${(0,e.getProperty)(r)}`,!0)))}$c.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},$c.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!r(t,e.self.RULES.all))},$c.checkUnknownRules=n,$c.schemaHasRules=r,$c.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},$c.schemaRefOrVal=function({topSchemaRef:t,schemaPath:n},r,o,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return e._`${r}`}return e._`${t}${n}${(0,e.getProperty)(o)}`},$c.unescapeFragment=function(e){return i(decodeURIComponent(e))},$c.escapeFragment=function(e){return encodeURIComponent(o(e))},$c.escapeJsonPointer=o,$c.unescapeJsonPointer=i,$c.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},$c.mergeEvaluated={props:a({mergeNames:(t,n,r)=>t.if(e._`${r} !== true && ${n} !== undefined`,(()=>{t.if(e._`${n} === true`,(()=>t.assign(r,!0)),(()=>t.assign(r,e._`${r} || {}`).code(e._`Object.assign(${r}, ${n})`)))})),mergeToName:(t,n,r)=>t.if(e._`${r} !== true`,(()=>{!0===n?t.assign(r,!0):(t.assign(r,e._`${r} || {}`),s(t,r,n))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:a({mergeNames:(t,n,r)=>t.if(e._`${r} !== true && ${n} !== undefined`,(()=>t.assign(r,e._`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`))),mergeToName:(t,n,r)=>t.if(e._`${r} !== true`,(()=>t.assign(r,!0===n||e._`${r} > ${n} ? ${r} : ${n}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},$c.evaluatedPropsToName=l,$c.setEvaluated=s;const u={};var c;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}return $c.useFunc=function(e,n){return e.scopeValue("func",{ref:n,code:u[n.code]||(u[n.code]=new t._Code(n.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(c||($c.Type=c={})),$c.getErrorPath=function(t,n,r){if(t instanceof e.Name){const o=n===c.Num;return r?o?e._`"[" + ${t} + "]"`:e._`"['" + ${t} + "']"`:o?e._`"/" + ${t}`:e._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,e.getProperty)(t).toString():"/"+o(t)},$c.checkStrictMode=f,$c}var Sc,Ec,jc,Oc={};function xc(){if(Sc)return Oc;Sc=1,Object.defineProperty(Oc,"__esModule",{value:!0});const e=gc(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Oc.default=t,Oc}function _c(){return Ec||(Ec=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=gc(),n=kc(),r=xc();function o(e,n){const o=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,(()=>e.assign(r.default.vErrors,t._`[${o}]`)),t._`${r.default.vErrors}.push(${o})`),e.code(t._`${r.default.errors}++`)}function i(e,n){const{gen:r,validateName:o,schemaEnv:i}=e;i.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${o}.errors`,n),r.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,r=e.keywordError,a,s){const{it:u}=n,{gen:c,compositeRule:f,allErrors:d}=u,h=l(n,r,a);(null!=s?s:f||d)?o(c,h):i(u,t._`[${h}]`)},e.reportExtraError=function(t,n=e.keywordError,a){const{it:s}=t,{gen:u,compositeRule:c,allErrors:f}=s;o(u,l(t,n,a)),c||f||i(s,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${r.default.vErrors}.length`,n)),(()=>e.assign(r.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:o,data:i,errsCount:a,it:l}){if(void 0===a)throw new Error("ajv implementation error");const s=e.name("err");e.forRange("i",a,r.default.errors,(a=>{e.const(s,t._`${r.default.vErrors}[${a}]`),e.if(t._`${s}.instancePath === undefined`,(()=>e.assign(t._`${s}.instancePath`,(0,t.strConcat)(r.default.instancePath,l.errorPath)))),e.assign(t._`${s}.schemaPath`,t.str`${l.errSchemaPath}/${n}`),l.opts.verbose&&(e.assign(t._`${s}.schema`,o),e.assign(t._`${s}.data`,i))}))};const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function l(e,n,o){const{createErrors:i}=e.it;return!1===i?t._`{}`:function(e,n,o={}){const{gen:i,it:l}=e,c=[s(l,o),u(e,o)];return function(e,{params:n,message:o},i){const{keyword:l,data:s,schemaValue:u,it:c}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:m}=c;i.push([a.keyword,l],[a.params,"function"==typeof n?n(e):n||t._`{}`]),f.messages&&i.push([a.message,"function"==typeof o?o(e):o]),f.verbose&&i.push([a.schema,u],[a.parentSchema,t._`${h}${m}`],[r.default.data,s]),d&&i.push([a.propertyName,d])}(e,n,c),i.object(...c)}(e,n,o)}function s({errorPath:e},{instancePath:o}){const i=o?t.str`${e}${(0,n.getErrorPath)(o,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,i)]}function u({keyword:e,it:{errSchemaPath:r}},{schemaPath:o,parentSchema:i}){let l=i?r:t.str`${r}/${e}`;return o&&(l=t.str`${l}${(0,n.getErrorPath)(o,n.Type.Str)}`),[a.schemaPath,l]}}(fc)),fc}function Cc(){if(jc)return cc;jc=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.boolOrEmptySchema=cc.topBoolOrEmptySchema=void 0;const e=_c(),t=gc(),n=xc(),r={message:"boolean schema is false"};function o(t,n){const{gen:o,data:i}=t;(0,e.reportError)({gen:o,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t},r,void 0,n)}return cc.topBoolOrEmptySchema=function(e){const{gen:r,schema:i,validateName:a}=e;!1===i?o(e,!1):"object"==typeof i&&!0===i.$async?r.return(n.default.data):(r.assign(t._`${a}.errors`,null),r.return(!0))},cc.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),o(e)):n.var(t,!0)},cc}var Dc,Ic={},Ac={};function Fc(){if(Dc)return Ac;Dc=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.getRules=Ac.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return Ac.isJSONType=function(t){return"string"==typeof t&&e.has(t)},Ac.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},Ac}var Mc,Pc,Tc={};function Nc(){if(Mc)return Tc;function e(e,n){return n.rules.some((n=>t(e,n)))}function t(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}return Mc=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.shouldUseRule=Tc.shouldUseGroup=Tc.schemaHasRulesForType=void 0,Tc.schemaHasRulesForType=function({schema:t,self:n},r){const o=n.RULES.types[r];return o&&!0!==o&&e(t,o)},Tc.shouldUseGroup=e,Tc.shouldUseRule=t,Tc}function Rc(){if(Pc)return Ic;Pc=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.reportTypeError=Ic.checkDataTypes=Ic.checkDataType=Ic.coerceAndCheckDataType=Ic.getJSONTypes=Ic.getSchemaTypes=Ic.DataType=void 0;const e=Fc(),t=Nc(),n=_c(),r=gc(),o=kc();var i;function a(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(e.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i||(Ic.DataType=i={})),Ic.getSchemaTypes=function(e){const t=a(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},Ic.getJSONTypes=a,Ic.coerceAndCheckDataType=function(e,n){const{gen:o,data:a,opts:s}=e,c=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(n,s.coerceTypes),d=n.length>0&&!(0===c.length&&1===n.length&&(0,t.schemaHasRulesForType)(e,n[0]));if(d){const t=u(n,a,s.strictNumbers,i.Wrong);o.if(t,(()=>{c.length?function(e,t,n){const{gen:o,data:i,opts:a}=e,s=o.let("dataType",r._`typeof ${i}`),c=o.let("coerced",r._`undefined`);"array"===a.coerceTypes&&o.if(r._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>o.assign(i,r._`${i}[0]`).assign(s,r._`typeof ${i}`).if(u(t,i,a.strictNumbers),(()=>o.assign(c,i))))),o.if(r._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===a.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void o.elseIf(r._`${s} == "number" || ${s} == "boolean"`).assign(c,r._`"" + ${i}`).elseIf(r._`${i} === null`).assign(c,r._`""`);case"number":return void o.elseIf(r._`${s} == "boolean" || ${i} === null
2
+ || (${s} == "string" && ${i} && ${i} == +${i})`).assign(c,r._`+${i}`);case"integer":return void o.elseIf(r._`${s} === "boolean" || ${i} === null
3
+ || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,r._`+${i}`);case"boolean":return void o.elseIf(r._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(r._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return o.elseIf(r._`${i} === "" || ${i} === 0 || ${i} === false`),void o.assign(c,null);case"array":o.elseIf(r._`${s} === "string" || ${s} === "number"
4
+ || ${s} === "boolean" || ${i} === null`).assign(c,r._`[${i}]`)}}o.else(),f(e),o.endIf(),o.if(r._`${c} !== undefined`,(()=>{o.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},o){e.if(r._`${t} !== undefined`,(()=>e.assign(r._`${t}[${n}]`,o)))}(e,c)}))}(e,n,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function s(e,t,n,o=i.Correct){const a=o===i.Correct?r.operators.EQ:r.operators.NEQ;let l;switch(e){case"null":return r._`${t} ${a} null`;case"array":l=r._`Array.isArray(${t})`;break;case"object":l=r._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":l=s(r._`!(${t} % 1) && !isNaN(${t})`);break;case"number":l=s();break;default:return r._`typeof ${t} ${a} ${e}`}return o===i.Correct?l:(0,r.not)(l);function s(e=r.nil){return(0,r.and)(r._`typeof ${t} == "number"`,e,n?r._`isFinite(${t})`:r.nil)}}function u(e,t,n,i){if(1===e.length)return s(e[0],t,n,i);let a;const l=(0,o.toHash)(e);if(l.array&&l.object){const e=r._`typeof ${t} != "object"`;a=l.null?e:r._`!${t} || ${e}`,delete l.null,delete l.array,delete l.object}else a=r.nil;l.number&&delete l.integer;for(const e in l)a=(0,r.and)(a,s(e,t,n,i));return a}Ic.checkDataType=s,Ic.checkDataTypes=u;const c={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?r._`{type: ${e}}`:r._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,o.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,n.reportError)(t,c)}return Ic.reportTypeError=f,Ic}var Uc,qc={};function zc(){if(Uc)return qc;Uc=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.assignDefaults=void 0;const e=gc(),t=kc();function n(n,r,o){const{gen:i,compositeRule:a,data:l,opts:s}=n;if(void 0===o)return;const u=e._`${l}${(0,e.getProperty)(r)}`;if(a)return void(0,t.checkStrictMode)(n,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===s.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),i.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return qc.assignDefaults=function(e,t){const{properties:r,items:o}=e.schema;if("object"===t&&r)for(const t in r)n(e,t,r[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,r)=>n(e,r,t.default)))},qc}var Lc,Bc,Vc={},Wc={};function Hc(){if(Lc)return Wc;Lc=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.validateUnion=Wc.validateArray=Wc.usePattern=Wc.callValidateCode=Wc.schemaProperties=Wc.allSchemaProperties=Wc.noPropertyInData=Wc.propertyInData=Wc.isOwnProperty=Wc.hasPropFunc=Wc.reportMissingProp=Wc.checkMissingProp=Wc.checkReportMissingProp=void 0;const e=gc(),t=kc(),n=xc(),r=kc();function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function i(t,n,r){return e._`${o(t)}.call(${n}, ${r})`}function a(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} === undefined`;return o?(0,e.or)(a,(0,e.not)(i(t,n,r))):a}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}Wc.checkReportMissingProp=function(t,n){const{gen:r,data:o,it:i}=t;r.if(a(r,o,n,i.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${n}`},!0),t.error()}))},Wc.checkMissingProp=function({gen:t,data:n,it:{opts:r}},o,i){return(0,e.or)(...o.map((o=>(0,e.and)(a(t,n,o,r.ownProperties),e._`${i} = ${o}`))))},Wc.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},Wc.hasPropFunc=o,Wc.isOwnProperty=i,Wc.propertyInData=function(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} !== undefined`;return o?e._`${a} && ${i(t,n,r)}`:a},Wc.noPropertyInData=a,Wc.allSchemaProperties=l,Wc.schemaProperties=function(e,n){return l(n).filter((r=>!(0,t.alwaysValidSchema)(e,n[r])))},Wc.callValidateCode=function({schemaCode:t,data:r,it:{gen:o,topSchemaRef:i,schemaPath:a,errorPath:l},it:s},u,c,f){const d=f?e._`${t}, ${r}, ${i}${a}`:r,h=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,l)],[n.default.parentData,s.parentData],[n.default.parentDataProperty,s.parentDataProperty],[n.default.rootData,n.default.rootData]];s.opts.dynamicRef&&h.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const m=e._`${d}, ${o.object(...h)}`;return c!==e.nil?e._`${u}.call(${c}, ${m})`:e._`${u}(${m})`};const s=e._`new RegExp`;return Wc.usePattern=function({gen:t,it:{opts:n}},o){const i=n.unicodeRegExp?"u":"",{regExp:a}=n.code,l=a(o,i);return t.scopeValue("pattern",{key:l.toString(),ref:l,code:e._`${"new RegExp"===a.code?s:(0,r.useFunc)(t,a)}(${o}, ${i})`})},Wc.validateArray=function(n){const{gen:r,data:o,keyword:i,it:a}=n,l=r.name("valid");if(a.allErrors){const e=r.let("valid",!0);return s((()=>r.assign(e,!1))),e}return r.var(l,!0),s((()=>r.break())),l;function s(a){const s=r.const("len",e._`${o}.length`);r.forRange("i",0,s,(o=>{n.subschema({keyword:i,dataProp:o,dataPropType:t.Type.Num},l),r.if((0,e.not)(l),a)}))}},Wc.validateUnion=function(n){const{gen:r,schema:o,keyword:i,it:a}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const l=r.let("valid",!1),s=r.name("_valid");r.block((()=>o.forEach(((t,o)=>{const a=n.subschema({keyword:i,schemaProp:o,compositeRule:!0},s);r.assign(l,e._`${l} || ${s}`),n.mergeValidEvaluated(a,s)||r.if((0,e.not)(l))})))),n.result(l,(()=>n.reset()),(()=>n.error(!0)))},Wc}function Gc(){if(Bc)return Vc;Bc=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateKeywordUsage=Vc.validSchemaType=Vc.funcKeywordCode=Vc.macroKeywordCode=void 0;const e=gc(),t=xc(),n=Hc(),r=_c();function o(t){const{gen:n,data:r,it:o}=t;n.if(o.parentData,(()=>n.assign(r,e._`${o.parentData}[${o.parentDataProperty}]`)))}function i(t,n,r){if(void 0===r)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,e.stringify)(r)})}return Vc.macroKeywordCode=function(t,n){const{gen:r,keyword:o,schema:a,parentSchema:l,it:s}=t,u=n.macro.call(s.self,a,l,s),c=i(r,o,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);const f=r.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${s.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},f),t.pass(f,(()=>t.error(!0)))},Vc.funcKeywordCode=function(a,l){var s;const{gen:u,keyword:c,schema:f,parentSchema:d,$data:h,it:m}=a;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,l);const p=!h&&l.compile?l.compile.call(m.self,f,d,m):l.validate,v=i(u,c,p),y=u.let("valid");function b(r=(l.async?e._`await `:e.nil)){u.assign(y,e._`${r}${(0,n.callValidateCode)(a,v,m.opts.passContext?t.default.this:t.default.self,!("compile"in l&&!h||!1===l.schema))}`,l.modifying)}function g(t){var n;u.if((0,e.not)(null!==(n=l.valid)&&void 0!==n?n:y),t)}a.block$data(y,(function(){if(!1===l.errors)b(),l.modifying&&o(a),g((()=>a.error()));else{const n=l.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>b(e._`await `)),(n=>u.assign(y,!1).if(e._`${n} instanceof ${m.ValidationError}`,(()=>u.assign(t,e._`${n}.errors`)),(()=>u.throw(n))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),b(e.nil),t}();l.modifying&&o(a),g((()=>function(n,o){const{gen:i}=n;i.if(e._`Array.isArray(${o})`,(()=>{i.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,r.extendErrors)(n)}),(()=>n.error()))}(a,n)))}})),a.ok(null!==(s=l.valid)&&void 0!==s?s:y)},Vc.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},Vc.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");const a=o.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}},Vc}var Kc,Jc={};function Yc(){if(Kc)return Jc;Kc=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.extendSubschemaMode=Jc.extendSubschemaData=Jc.getSubschema=void 0;const e=gc(),t=kc();return Jc.getSubschema=function(n,{keyword:r,schemaProp:o,schema:i,schemaPath:a,errSchemaPath:l,topSchemaRef:s}){if(void 0!==r&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==r){const i=n.schema[r];return void 0===o?{schema:i,schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(r)}`,errSchemaPath:`${n.errSchemaPath}/${r}`}:{schema:i[o],schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(r)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${r}/${(0,t.escapeFragment)(o)}`}}if(void 0!==i){if(void 0===a||void 0===l||void 0===s)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:s,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')},Jc.extendSubschemaData=function(n,r,{dataProp:o,dataPropType:i,data:a,dataTypes:l,propertyName:s}){if(void 0!==a&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=r;if(void 0!==o){const{errorPath:a,dataPathArr:l,opts:s}=r;c(u.let("data",e._`${r.data}${(0,e.getProperty)(o)}`,!0)),n.errorPath=e.str`${a}${(0,t.getErrorPath)(o,i,s.jsPropertySyntax)}`,n.parentDataProperty=e._`${o}`,n.dataPathArr=[...l,n.parentDataProperty]}function c(e){n.data=e,n.dataLevel=r.dataLevel+1,n.dataTypes=[],r.definedProperties=new Set,n.parentData=r.data,n.dataNames=[...r.dataNames,e]}void 0!==a&&(c(a instanceof e.Name?a:u.let("data",a,!0)),void 0!==s&&(n.propertyName=s)),l&&(n.dataTypes=l)},Jc.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n},Jc}var Xc,Zc,Qc={};function ef(){return Zc||(Zc=1,Xc=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}),Xc}var tf,nf,rf,of={exports:{}};function af(){if(tf)return of.exports;tf=1;var e=of.exports=function(e,n,r){"function"==typeof n&&(r=n,n={}),t(n,"function"==typeof(r=n.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function t(n,r,o,i,a,l,s,u,c,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var d in r(i,a,l,s,u,c,f),i){var h=i[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var m=0;m<h.length;m++)t(n,r,o,h[m],a+"/"+d+"/"+m,l,a,d,i,m)}else if(d in e.propsKeywords){if(h&&"object"==typeof h)for(var p in h)t(n,r,o,h[p],a+"/"+d+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),l,a,d,i,p)}else(d in e.keywords||n.allKeys&&!(d in e.skipKeywords))&&t(n,r,o,h,a+"/"+d,l,a,d,i)}o(i,a,l,s,u,c,f)}}return e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},of.exports}function lf(){if(nf)return Qc;nf=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.getSchemaRefs=Qc.resolveUrl=Qc.normalizeId=Qc._getFullPath=Qc.getFullPath=Qc.inlineRef=void 0;const e=kc(),t=ef(),n=af(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);Qc.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!i(e):!!t&&a(e)<=t)};const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(e){for(const t in e){if(o.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(i))return!0;if("object"==typeof n&&i(n))return!0}return!1}function a(t){let n=0;for(const o in t){if("$ref"===o)return 1/0;if(n++,!r.has(o)&&("object"==typeof t[o]&&(0,e.eachItem)(t[o],(e=>n+=a(e))),n===1/0))return 1/0}return n}function l(e,t="",n){!1!==n&&(t=c(t));const r=e.parse(t);return s(e,r)}function s(e,t){return e.serialize(t).split("#")[0]+"#"}Qc.getFullPath=l,Qc._getFullPath=s;const u=/#\/?$/;function c(e){return e?e.replace(u,""):""}Qc.normalizeId=c,Qc.resolveUrl=function(e,t,n){return n=c(n),e.resolve(t,n)};const f=/^[a-z_][-a-z0-9._]*$/i;return Qc.getSchemaRefs=function(e,r){if("boolean"==typeof e)return{};const{schemaId:o,uriResolver:i}=this.opts,a=c(e[o]||r),s={"":a},u=l(i,a,!1),d={},h=new Set;return n(e,{allKeys:!0},((e,t,n,r)=>{if(void 0===r)return;const i=u+t;let a=s[r];function l(t){if(t=c(a?(0,this.opts.uriResolver.resolve)(a,t):t),h.has(t))throw p(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?m(e,n.schema,t):t!==c(i)&&("#"===t[0]?(m(e,d[t],t),d[t]=e):this.refs[t]=i),t}function v(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[o]&&(a=l.call(this,e[o])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),s[t]=a})),d;function m(e,n,r){if(void 0!==n&&!t(e,n))throw p(r)}function p(e){return new Error(`reference "${e}" resolves to more than one schema`)}},Qc}function sf(){if(rf)return uc;rf=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.getData=uc.KeywordCxt=uc.validateFunctionCode=void 0;const e=Cc(),t=Rc(),n=Nc(),r=Rc(),o=zc(),i=Gc(),a=Yc(),l=gc(),s=xc(),u=lf(),c=kc(),f=_c();function d({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},i){o.code.es5?e.func(t,l._`${s.default.data}, ${s.default.valCxt}`,r.$async,(()=>{e.code(l._`"use strict"; ${h(n,o)}`),function(e,t){e.if(s.default.valCxt,(()=>{e.var(s.default.instancePath,l._`${s.default.valCxt}.${s.default.instancePath}`),e.var(s.default.parentData,l._`${s.default.valCxt}.${s.default.parentData}`),e.var(s.default.parentDataProperty,l._`${s.default.valCxt}.${s.default.parentDataProperty}`),e.var(s.default.rootData,l._`${s.default.valCxt}.${s.default.rootData}`),t.dynamicRef&&e.var(s.default.dynamicAnchors,l._`${s.default.valCxt}.${s.default.dynamicAnchors}`)}),(()=>{e.var(s.default.instancePath,l._`""`),e.var(s.default.parentData,l._`undefined`),e.var(s.default.parentDataProperty,l._`undefined`),e.var(s.default.rootData,s.default.data),t.dynamicRef&&e.var(s.default.dynamicAnchors,l._`{}`)}))}(e,o),e.code(i)})):e.func(t,l._`${s.default.data}, ${function(e){return l._`{${s.default.instancePath}="", ${s.default.parentData}, ${s.default.parentDataProperty}, ${s.default.rootData}=${s.default.data}${e.dynamicRef?l._`, ${s.default.dynamicAnchors}={}`:l.nil}}={}`}(o)}`,r.$async,(()=>e.code(h(n,o)).code(i)))}function h(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function p(e){return"boolean"!=typeof e.schema}function v(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function y(e,n){if(e.opts.jtd)return g(e,[],!1,n);const r=(0,t.getSchemaTypes)(e.schema);g(e,r,!(0,t.coerceAndCheckDataType)(e,r),n)}function b({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const i=n.$comment;if(!0===o.$comment)e.code(l._`${s.default.self}.logger.log(${i})`);else if("function"==typeof o.$comment){const n=l.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(l._`${s.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`)}}function g(e,t,o,i){const{gen:a,schema:u,data:f,allErrors:d,opts:h,self:m}=e,{RULES:p}=m;function v(c){(0,n.shouldUseGroup)(u,c)&&(c.type?(a.if((0,r.checkDataType)(c.type,f,h.strictNumbers)),w(e,c),1===t.length&&t[0]===c.type&&o&&(a.else(),(0,r.reportTypeError)(e)),a.endIf()):w(e,c),d||a.if(l._`${s.default.errors} === ${i||0}`))}!u.$ref||!h.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,p)?(h.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{$(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)$(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const o in r){const i=r[o];if("object"==typeof i&&(0,n.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return(n=t).includes(r=e)||"number"===r&&n.includes("integer");var n,r}))&&k(e,`missing type "${n.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes))}(e,t),a.block((()=>{for(const e of p.rules)v(e);v(p.post)}))):a.block((()=>E(e,"$ref",p.all.$ref.definition)))}function w(e,t){const{gen:r,schema:i,opts:{useDefaults:a}}=e;a&&(0,o.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,n.shouldUseRule)(i,r)&&E(e,r.keyword,r.definition,t.type)}))}function $(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){(0,c.checkStrictMode)(e,t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,e.opts.strictTypes)}uc.validateFunctionCode=function(t){p(t)&&(v(t),m(t))?function(e){const{schema:t,opts:n,gen:r}=e;d(e,(()=>{n.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(s.default.vErrors,null),r.let(s.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:i}=e;n.$async?t.if(l._`${s.default.errors} === 0`,(()=>t.return(s.default.data)),(()=>t.throw(l._`new ${o}(${s.default.vErrors})`))):(t.assign(l._`${r}.errors`,s.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${s.default.errors} === 0`))}(e)}))}(t):d(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class S{constructor(e,t,n){if((0,i.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",x(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",s.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:i}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:o,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,r.checkDataTypes)(e,t,i.opts.strictNumbers,r.DataType.Wrong)}`}return l.nil}(),function(){if(o.validateSchema){const n=e.scopeValue("validate$data",{ref:o.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(t,n){const r=(0,a.getSubschema)(this.it,t);(0,a.extendSubschemaData)(r,this.it,t),(0,a.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return function(t,n){p(t)&&(v(t),m(t))?function(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&b(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=r.const("_errs",s.default.errors);y(e,i),r.var(t,l._`${i} === ${s.default.errors}`)}(t,n):(0,e.boolOrEmptySchema)(t,n)}(o,n),o}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=c.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=c.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,t,n,r){const o=new S(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,i.funcKeywordCode)(o,n):"macro"in n?(0,i.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,i.funcKeywordCode)(o,n)}uc.KeywordCxt=S;const j=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,i;if(""===e)return s.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=s.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+a[1];if(o=a[2],"#"===o){if(l>=t)throw new Error(f("property/index",l));return r[t-l]}if(l>t)throw new Error(f("data",l));if(i=n[t-l],!o)return i}let a=i;const u=o.split("/");for(const e of u)e&&(i=l._`${i}${(0,l.getProperty)((0,c.unescapeJsonPointer)(e))}`,a=l._`${a} && ${i}`);return a;function f(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}return uc.getData=x,uc}var uf,cf={};function ff(){if(uf)return cf;uf=1,Object.defineProperty(cf,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return cf.default=e,cf}var df,hf={};function mf(){if(df)return hf;df=1,Object.defineProperty(hf,"__esModule",{value:!0});const e=lf();class t extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,e.resolveUrl)(t,n,r),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return hf.default=t,hf}var pf,vf={};function yf(){if(pf)return vf;pf=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.resolveSchema=vf.getCompilingSchema=vf.resolveRef=vf.compileSchema=vf.SchemaEnv=void 0;const e=gc(),t=ff(),n=xc(),r=lf(),o=kc(),i=sf();class a{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,r.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(o){const a=u.call(this,o);if(a)return a;const l=(0,r.getFullPath)(this.opts.uriResolver,o.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:f}=this.opts,d=new e.CodeGen(this.scope,{es5:s,lines:c,ownProperties:f});let h;o.$async&&(h=d.scopeValue("Error",{ref:t.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");o.validateName=m;const p={gen:d,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:o.schema,code:(0,e.stringify)(o.schema)}:{ref:o.schema}),validateName:m,ValidationError:h,schema:o.schema,schemaEnv:o,rootId:l,baseId:o.baseId||l,schemaPath:e.nil,errSchemaPath:o.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(o),(0,i.validateFunctionCode)(p),d.optimize(this.opts.code.optimize);const t=d.toString();v=`${d.scopeRefs(n.default.scope)}return ${t}`,this.opts.code.process&&(v=this.opts.code.process(v,o));const r=new Function(`${n.default.self}`,`${n.default.scope}`,v)(this,this.scope.get());if(this.scope.value(m,{ref:r}),r.errors=null,r.schema=o.schema,r.schemaEnv=o,o.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:m,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:t,items:n}=p;r.evaluated={props:t instanceof e.Name?void 0:t,items:n instanceof e.Name?void 0:n,dynamicProps:t instanceof e.Name,dynamicItems:n instanceof e.Name},r.source&&(r.source.evaluated=(0,e.stringify)(r.evaluated))}return o.validate=r,o}catch(e){throw delete o.validate,delete o.validateName,v&&this.logger.error("Error compiling schema, function code:",v),e}finally{this._compilations.delete(o)}}function s(e){return(0,r.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function u(e){for(const r of this._compilations)if((t=r).schema===(n=e).schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function c(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||f.call(this,e,t)}function f(e,t){const n=this.opts.uriResolver.parse(t),o=(0,r._getFullPath)(this.opts.uriResolver,n);let i=(0,r.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===i)return h.call(this,n,e);const s=(0,r.normalizeId)(o),u=this.refs[s]||this.schemas[s];if("string"==typeof u){const t=f.call(this,e,u);if("object"!=typeof(null==t?void 0:t.schema))return;return h.call(this,n,t)}if("object"==typeof(null==u?void 0:u.schema)){if(u.validate||l.call(this,u),s===(0,r.normalizeId)(t)){const{schema:t}=u,{schemaId:n}=this.opts,o=t[n];return o&&(i=(0,r.resolveUrl)(this.opts.uriResolver,i,o)),new a({schema:t,schemaId:n,root:e,baseId:i})}return h.call(this,n,u)}}vf.SchemaEnv=a,vf.compileSchema=l,vf.resolveRef=function(e,t,n){var o;n=(0,r.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let l=c.call(this,e,n);if(void 0===l){const r=null===(o=e.localRefs)||void 0===o?void 0:o[n],{schemaId:i}=this.opts;r&&(l=new a({schema:r,schemaId:i,root:e,baseId:t}))}return void 0!==l?e.refs[n]=s.call(this,l):void 0},vf.getCompilingSchema=u,vf.resolveSchema=f;const d=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,{baseId:t,schema:n,root:i}){var l;if("/"!==(null===(l=e.fragment)||void 0===l?void 0:l[0]))return;for(const i of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,o.unescapeFragment)(i)];if(void 0===e)return;const a="object"==typeof(n=e)&&n[this.opts.schemaId];!d.has(i)&&a&&(t=(0,r.resolveUrl)(this.opts.uriResolver,t,a))}let s;if("boolean"!=typeof n&&n.$ref&&!(0,o.schemaHasRulesButRef)(n,this.RULES)){const e=(0,r.resolveUrl)(this.opts.uriResolver,t,n.$ref);s=f.call(this,i,e)}const{schemaId:u}=this.opts;return s=s||new a({schema:n,schemaId:u,root:i,baseId:t}),s.schema!==s.root.schema?s:void 0}return vf}var bf,gf,wf={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},$f={};function kf(){if(bf)return $f;bf=1,Object.defineProperty($f,"__esModule",{value:!0});const e=Xr();return e.code='require("ajv/dist/runtime/uri").default',$f.default=e,$f}function Sf(){return gf||(gf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=sf();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=gc();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=ff(),o=mf(),i=Fc(),a=yf(),l=gc(),s=lf(),u=Rc(),c=kc(),f=wf,d=kf(),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],p=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,n,r,o,i,a,l,s,u,c,f,m,p,v,y,b,g,w,$,k,S,E,j,O,x;const _=e.strict,C=null===(t=e.code)||void 0===t?void 0:t.optimize,D=!0===C||void 0===C?1:C||0,I=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:h,A=null!==(o=e.uriResolver)&&void 0!==o?o:d.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:_)||void 0===a||a,strictNumbers:null===(s=null!==(l=e.strictNumbers)&&void 0!==l?l:_)||void 0===s||s,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:_)&&void 0!==c?c:"log",strictTuples:null!==(m=null!==(f=e.strictTuples)&&void 0!==f?f:_)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(p=e.strictRequired)&&void 0!==p?p:_)&&void 0!==v&&v,code:e.code?{...e.code,optimize:D,regExp:I}:{optimize:D,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(j=e.validateFormats)||void 0===j||j,unicodeRegExp:null===(O=e.unicodeRegExp)||void 0===O||O,int32range:null===(x=e.int32range)||void 0===x||x,uriResolver:A}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:p,es5:t,lines:n}),this.logger=function(e){if(!1===e)return O;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=f;"id"===n&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return l.call(this,t),await s.call(this,t.missingSchema),a.call(this,e)}}function l({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function s(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,s.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=$.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new a.SchemaEnv({schema:{},schemaId:n});if(t=a.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=$.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,s.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(_.call(this,n,t),!t)return(0,c.eachItem)(n,(e=>C.call(this,e))),this;I.call(this,t);const r={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(n,0===r.type.length?e=>C.call(this,e,r):e=>r.type.forEach((t=>C.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=o[e];r&&i&&(o[e]=F(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let i;const{schemaId:l}=this.opts;if("object"==typeof e)i=e[l];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;n=(0,s.normalizeId)(i||n);const c=s.getSchemaRefs.call(this,e,n);return u=new a.SchemaEnv({schema:e,schemaId:l,meta:t,baseId:n,localRefs:c}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),r&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,n,r="error"){for(const o in e)o in t&&this.logger[r](`${n}: option ${o}. ${e[o]}`)}function $(e){return e=(0,s.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function j(){const e={...this.opts};for(const t of m)delete e[t];return e}g.ValidationError=r.default,g.MissingRefError=o.default,e.default=g;const O={log(){},warn(){},error(){}},x=/^[a-z_$][a-z0-9_$:-]*$/i;function _(e,t){const{RULES:n}=this;if((0,c.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!x.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=o?i.post:i.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const l={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?D.call(this,a,l,t.before):a.rules.push(l),i.all[e]=l,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function D(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=F(t)),e.validateSchema=this.compile(t,!0))}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F(e){return{anyOf:[e,A]}}}(sc)),sc}var Ef,jf={},Of={},xf={};function _f(){return Ef||(Ef=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}),xf}var Cf,Df,If={};function Af(){if(Cf)return If;Cf=1,Object.defineProperty(If,"__esModule",{value:!0}),If.callRef=If.getValidate=void 0;const e=mf(),t=Hc(),n=gc(),r=xc(),o=yf(),i=kc(),a={keyword:"$ref",schemaType:"string",code(t){const{gen:r,schema:i,it:a}=t,{baseId:u,schemaEnv:c,validateName:f,opts:d,self:h}=a,{root:m}=c;if(("#"===i||"#/"===i)&&u===m.baseId)return function(){if(c===m)return s(t,f,c,c.$async);const e=r.scopeValue("root",{ref:m});return s(t,n._`${e}.validate`,m,m.$async)}();const p=o.resolveRef.call(h,m,u,i);if(void 0===p)throw new e.default(a.opts.uriResolver,u,i);return p instanceof o.SchemaEnv?function(e){const n=l(t,e);s(t,n,e,e.$async)}(p):function(e){const o=r.scopeValue("schema",!0===d.code.source?{ref:e,code:(0,n.stringify)(e)}:{ref:e}),a=r.name("valid"),l=t.subschema({schema:e,dataTypes:[],schemaPath:n.nil,topSchemaRef:o,errSchemaPath:i},a);t.mergeEvaluated(l),t.ok(a)}(p)}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):n._`${r.scopeValue("wrapper",{ref:t})}.validate`}function s(e,o,a,l){const{gen:s,it:u}=e,{allErrors:c,schemaEnv:f,opts:d}=u,h=d.passContext?r.default.this:n.nil;function m(e){const t=n._`${e}.errors`;s.assign(r.default.vErrors,n._`${r.default.vErrors} === null ? ${t} : ${r.default.vErrors}.concat(${t})`),s.assign(r.default.errors,n._`${r.default.vErrors}.length`)}function p(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==a?void 0:a.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=i.mergeEvaluated.props(s,r.props,u.props));else{const t=s.var("props",n._`${e}.evaluated.props`);u.props=i.mergeEvaluated.props(s,t,u.props,n.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=i.mergeEvaluated.items(s,r.items,u.items));else{const t=s.var("items",n._`${e}.evaluated.items`);u.items=i.mergeEvaluated.items(s,t,u.items,n.Name)}}l?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=s.let("valid");s.try((()=>{s.code(n._`await ${(0,t.callValidateCode)(e,o,h)}`),p(o),c||s.assign(r,!0)}),(e=>{s.if(n._`!(${e} instanceof ${u.ValidationError})`,(()=>s.throw(e))),m(e),c||s.assign(r,!1)})),e.ok(r)}():e.result((0,t.callValidateCode)(e,o,h),(()=>p(o)),(()=>m(o)))}return If.getValidate=l,If.callRef=s,If.default=a,If}function Ff(){return Df||(Df=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",_f().default,Af().default]),Of}var Mf,Pf={},Tf={};function Nf(){if(Mf)return Tf;Mf=1,Object.defineProperty(Tf,"__esModule",{value:!0});const e=gc(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},r={message:({keyword:t,schemaCode:r})=>e.str`must be ${n[t].okStr} ${r}`,params:({keyword:t,schemaCode:r})=>e._`{comparison: ${n[t].okStr}, limit: ${r}}`},o={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(t){const{keyword:r,data:o,schemaCode:i}=t;t.fail$data(e._`${o} ${n[r].fail} ${i} || isNaN(${o})`)}};return Tf.default=o,Tf}var Rf,Uf={};function qf(){if(Rf)return Uf;Rf=1,Object.defineProperty(Uf,"__esModule",{value:!0});const e=gc();return Uf.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>e.str`must be multiple of ${t}`,params:({schemaCode:t})=>e._`{multipleOf: ${t}}`},code(t){const{gen:n,data:r,schemaCode:o,it:i}=t,a=i.opts.multipleOfPrecision,l=n.let("res"),s=a?e._`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:e._`${l} !== parseInt(${l})`;t.fail$data(e._`(${o} === 0 || (${l} = ${r}/${o}, ${s}))`)}},Uf}var zf,Lf,Bf={},Vf={};function Wf(){if(zf)return Vf;function e(e){const t=e.length;let n,r=0,o=0;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),56320==(64512&n)&&o++);return r}return zf=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Vf}function Hf(){if(Lf)return Bf;Lf=1,Object.defineProperty(Bf,"__esModule",{value:!0});const e=gc(),t=kc(),n=Wf(),r={message:({keyword:t,schemaCode:n})=>e.str`must NOT have ${"maxLength"===t?"more":"fewer"} than ${n} characters`,params:({schemaCode:t})=>e._`{limit: ${t}}`},o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:r,code(r){const{keyword:o,data:i,schemaCode:a,it:l}=r,s="maxLength"===o?e.operators.GT:e.operators.LT,u=!1===l.opts.unicode?e._`${i}.length`:e._`${(0,t.useFunc)(r.gen,n.default)}(${i})`;r.fail$data(e._`${u} ${s} ${a}`)}};return Bf.default=o,Bf}var Gf,Kf={};function Jf(){if(Gf)return Kf;Gf=1,Object.defineProperty(Kf,"__esModule",{value:!0});const e=Hc(),t=kc(),n=gc(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(r){const{gen:o,data:i,$data:a,schema:l,schemaCode:s,it:u}=r,c=u.opts.unicodeRegExp?"u":"";if(a){const{regExp:e}=u.opts.code,a="new RegExp"===e.code?n._`new RegExp`:(0,t.useFunc)(o,e),l=o.let("valid");o.try((()=>o.assign(l,n._`${a}(${s}, ${c}).test(${i})`)),(()=>o.assign(l,!1))),r.fail$data(n._`!${l}`)}else{const t=(0,e.usePattern)(r,l);r.fail$data(n._`!${t}.test(${i})`)}}};return Kf.default=r,Kf}var Yf,Xf={};function Zf(){if(Yf)return Xf;Yf=1,Object.defineProperty(Xf,"__esModule",{value:!0});const e=gc(),t={message:({keyword:t,schemaCode:n})=>e.str`must NOT have ${"maxProperties"===t?"more":"fewer"} than ${n} properties`,params:({schemaCode:t})=>e._`{limit: ${t}}`},n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:t,code(t){const{keyword:n,data:r,schemaCode:o}=t;t.fail$data(e._`Object.keys(${r}).length ${"maxProperties"===n?e.operators.GT:e.operators.LT} ${o}`)}};return Xf.default=n,Xf}var Qf,ed={};function td(){if(Qf)return ed;Qf=1,Object.defineProperty(ed,"__esModule",{value:!0});const e=Hc(),t=gc(),n=kc();return ed.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>t.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>t._`{missingProperty: ${e}}`},code(r){const{gen:o,schema:i,schemaCode:a,data:l,$data:s,it:u}=r,{opts:c}=u;if(!s&&0===i.length)return;const f=i.length>=c.loopRequired;if(u.allErrors?function(){if(f||s)r.block$data(t.nil,d);else for(const t of i)(0,e.checkReportMissingProp)(r,t)}():function(){const n=o.let("missing");if(f||s){const i=o.let("valid",!0);r.block$data(i,(()=>function(n,i){r.setParams({missingProperty:n}),o.forOf(n,a,(()=>{o.assign(i,(0,e.propertyInData)(o,l,n,c.ownProperties)),o.if((0,t.not)(i),(()=>{r.error(),o.break()}))}),t.nil)}(n,i))),r.ok(i)}else o.if((0,e.checkMissingProp)(r,i,n)),(0,e.reportMissingProp)(r,n),o.else()}(),c.strictRequired){const e=r.parentSchema.properties,{definedProperties:t}=r.it;for(const r of i)void 0!==(null==e?void 0:e[r])||t.has(r)||(0,n.checkStrictMode)(u,`required property "${r}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`,u.opts.strictRequired)}function d(){o.forOf("prop",a,(t=>{r.setParams({missingProperty:t}),o.if((0,e.noPropertyInData)(o,l,t,c.ownProperties),(()=>r.error()))}))}}},ed}var nd,rd={};function od(){if(nd)return rd;nd=1,Object.defineProperty(rd,"__esModule",{value:!0});const e=gc(),t={message:({keyword:t,schemaCode:n})=>e.str`must NOT have ${"maxItems"===t?"more":"fewer"} than ${n} items`,params:({schemaCode:t})=>e._`{limit: ${t}}`},n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:t,code(t){const{keyword:n,data:r,schemaCode:o}=t;t.fail$data(e._`${r}.length ${"maxItems"===n?e.operators.GT:e.operators.LT} ${o}`)}};return rd.default=n,rd}var id,ad,ld={},sd={};function ud(){if(id)return sd;id=1,Object.defineProperty(sd,"__esModule",{value:!0});const e=ef();return e.code='require("ajv/dist/runtime/equal").default',sd.default=e,sd}function cd(){if(ad)return ld;ad=1,Object.defineProperty(ld,"__esModule",{value:!0});const e=Rc(),t=gc(),n=kc(),r=ud(),o={message:({params:{i:e,j:n}})=>t.str`must NOT have duplicate items (items ## ${n} and ${e} are identical)`,params:({params:{i:e,j:n}})=>t._`{i: ${e}, j: ${n}}`},i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:o,code(o){const{gen:i,data:a,$data:l,schema:s,parentSchema:u,schemaCode:c,it:f}=o;if(!l&&!s)return;const d=i.let("valid"),h=u.items?(0,e.getSchemaTypes)(u.items):[];function m(n,r){const l=i.name("item"),s=(0,e.checkDataTypes)(h,l,f.opts.strictNumbers,e.DataType.Wrong),u=i.const("indices",t._`{}`);i.for(t._`;${n}--;`,(()=>{i.let(l,t._`${a}[${n}]`),i.if(s,t._`continue`),h.length>1&&i.if(t._`typeof ${l} == "string"`,t._`${l} += "_"`),i.if(t._`typeof ${u}[${l}] == "number"`,(()=>{i.assign(r,t._`${u}[${l}]`),o.error(),i.assign(d,!1).break()})).code(t._`${u}[${l}] = ${n}`)}))}function p(e,l){const s=(0,n.useFunc)(i,r.default),u=i.name("outer");i.label(u).for(t._`;${e}--;`,(()=>i.for(t._`${l} = ${e}; ${l}--;`,(()=>i.if(t._`${s}(${a}[${e}], ${a}[${l}])`,(()=>{o.error(),i.assign(d,!1).break(u)}))))))}o.block$data(d,(function(){const e=i.let("i",t._`${a}.length`),n=i.let("j");o.setParams({i:e,j:n}),i.assign(d,!0),i.if(t._`${e} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?m:p)(e,n)))}),t._`${c} === false`),o.ok(d)}};return ld.default=i,ld}var fd,dd={};function hd(){if(fd)return dd;fd=1,Object.defineProperty(dd,"__esModule",{value:!0});const e=gc(),t=kc(),n=ud();return dd.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>e._`{allowedValue: ${t}}`},code(r){const{gen:o,data:i,$data:a,schemaCode:l,schema:s}=r;a||s&&"object"==typeof s?r.fail$data(e._`!${(0,t.useFunc)(o,n.default)}(${i}, ${l})`):r.fail(e._`${s} !== ${i}`)}},dd}var md,pd,vd={};function yd(){if(md)return vd;md=1,Object.defineProperty(vd,"__esModule",{value:!0});const e=gc(),t=kc(),n=ud(),r={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>e._`{allowedValues: ${t}}`},code(r){const{gen:o,data:i,$data:a,schema:l,schemaCode:s,it:u}=r;if(!a&&0===l.length)throw new Error("enum must have non-empty array");let c;const f=()=>null!=c?c:c=(0,t.useFunc)(o,n.default);let d;if(l.length>=u.opts.loopEnum||a)d=o.let("valid"),r.block$data(d,(function(){o.assign(d,!1),o.forOf("v",s,(t=>o.if(e._`${f()}(${i}, ${t})`,(()=>o.assign(d,!0).break()))))}));else{if(!Array.isArray(l))throw new Error("ajv implementation error");const t=o.const("vSchema",s);d=(0,e.or)(...l.map(((n,r)=>function(t,n){const r=l[n];return"object"==typeof r&&null!==r?e._`${f()}(${i}, ${t}[${n}])`:e._`${i} === ${r}`}(t,r))))}r.pass(d)}};return vd.default=r,vd}function bd(){return pd||(pd=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.default=[Nf().default,qf().default,Hf().default,Jf().default,Zf().default,td().default,od().default,cd().default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hd().default,yd().default]),Pf}var gd,wd={},$d={};function kd(){if(gd)return $d;gd=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.validateAdditionalItems=void 0;const e=gc(),t=kc(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{parentSchema:n,it:o}=e,{items:i}=n;Array.isArray(i)?r(e,i):(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas')}};function r(n,r){const{gen:o,schema:i,data:a,keyword:l,it:s}=n;s.items=!0;const u=o.const("len",e._`${a}.length`);if(!1===i)n.setParams({len:r.length}),n.pass(e._`${u} <= ${r.length}`);else if("object"==typeof i&&!(0,t.alwaysValidSchema)(s,i)){const i=o.var("valid",e._`${u} <= ${r.length}`);o.if((0,e.not)(i),(()=>function(i){o.forRange("i",r.length,u,(r=>{n.subschema({keyword:l,dataProp:r,dataPropType:t.Type.Num},i),s.allErrors||o.if((0,e.not)(i),(()=>o.break()))}))}(i))),n.ok(i)}}return $d.validateAdditionalItems=r,$d.default=n,$d}var Sd,Ed,jd={},Od={};function xd(){if(Sd)return Od;Sd=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.validateTuple=void 0;const e=gc(),t=kc(),n=Hc(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:r,it:i}=e;if(Array.isArray(r))return o(e,"additionalItems",r);i.items=!0,(0,t.alwaysValidSchema)(i,r)||e.ok((0,n.validateArray)(e))}};function o(n,r,o=n.schema){const{gen:i,parentSchema:a,data:l,keyword:s,it:u}=n;!function(e){const{opts:n,errSchemaPath:i}=u,a=o.length;n.strictTuples&&!(a===e.minItems&&(a===e.maxItems||!1===e[r]))&&(0,t.checkStrictMode)(u,`"${s}" is ${a}-tuple, but minItems or maxItems/${r} are not specified or different at path "${i}"`,n.strictTuples)}(a),u.opts.unevaluated&&o.length&&!0!==u.items&&(u.items=t.mergeEvaluated.items(i,o.length,u.items));const c=i.name("valid"),f=i.const("len",e._`${l}.length`);o.forEach(((r,o)=>{(0,t.alwaysValidSchema)(u,r)||(i.if(e._`${f} > ${o}`,(()=>n.subschema({keyword:s,schemaProp:o,dataProp:o},c))),n.ok(c))}))}return Od.validateTuple=o,Od.default=r,Od}function _d(){if(Ed)return jd;Ed=1,Object.defineProperty(jd,"__esModule",{value:!0});const e=xd();return jd.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,e.validateTuple)(t,"items")},jd}var Cd,Dd={};function Id(){if(Cd)return Dd;Cd=1,Object.defineProperty(Dd,"__esModule",{value:!0});const e=gc(),t=kc(),n=Hc(),r=kd(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>e.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>e._`{limit: ${t}}`},code(e){const{schema:o,parentSchema:i,it:a}=e,{prefixItems:l}=i;a.items=!0,(0,t.alwaysValidSchema)(a,o)||(l?(0,r.validateAdditionalItems)(e,l):e.ok((0,n.validateArray)(e)))}};return Dd.default=o,Dd}var Ad,Fd={};function Md(){if(Ad)return Fd;Ad=1,Object.defineProperty(Fd,"__esModule",{value:!0});const e=gc(),t=kc(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:n}})=>void 0===n?e.str`must contain at least ${t} valid item(s)`:e.str`must contain at least ${t} and no more than ${n} valid item(s)`,params:({params:{min:t,max:n}})=>void 0===n?e._`{minContains: ${t}}`:e._`{minContains: ${t}, maxContains: ${n}}`},code(n){const{gen:r,schema:o,parentSchema:i,data:a,it:l}=n;let s,u;const{minContains:c,maxContains:f}=i;l.opts.next?(s=void 0===c?1:c,u=f):s=1;const d=r.const("len",e._`${a}.length`);if(n.setParams({min:s,max:u}),void 0===u&&0===s)return void(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&s>u)return(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),void n.fail();if((0,t.alwaysValidSchema)(l,o)){let t=e._`${d} >= ${s}`;return void 0!==u&&(t=e._`${t} && ${d} <= ${u}`),void n.pass(t)}l.items=!0;const h=r.name("valid");function m(){const t=r.name("_valid"),n=r.let("count",0);p(t,(()=>r.if(t,(()=>function(t){r.code(e._`${t}++`),void 0===u?r.if(e._`${t} >= ${s}`,(()=>r.assign(h,!0).break())):(r.if(e._`${t} > ${u}`,(()=>r.assign(h,!1).break())),1===s?r.assign(h,!0):r.if(e._`${t} >= ${s}`,(()=>r.assign(h,!0))))}(n)))))}function p(e,o){r.forRange("i",0,d,(r=>{n.subschema({keyword:"contains",dataProp:r,dataPropType:t.Type.Num,compositeRule:!0},e),o()}))}void 0===u&&1===s?p(h,(()=>r.if(h,(()=>r.break())))):0===s?(r.let(h,!0),void 0!==u&&r.if(e._`${a}.length > 0`,m)):(r.let(h,!1),m()),n.result(h,(()=>n.reset()))}};return Fd.default=n,Fd}var Pd,Td={};function Nd(){return Pd||(Pd=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=gc(),n=kc(),r=Hc();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>t.str`must have ${1===n?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:n,deps:r,missingProperty:o}})=>t._`{property: ${e},
5
+ missingProperty: ${o},
6
+ depsCount: ${n},
7
+ deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);i(e,t),a(e,n)}};function i(e,n=e.schema){const{gen:o,data:i,it:a}=e;if(0===Object.keys(n).length)return;const l=o.let("missing");for(const s in n){const u=n[s];if(0===u.length)continue;const c=(0,r.propertyInData)(o,i,s,a.opts.ownProperties);e.setParams({property:s,depsCount:u.length,deps:u.join(", ")}),a.allErrors?o.if(c,(()=>{for(const t of u)(0,r.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,r.checkMissingProp)(e,u,l)})`),(0,r.reportMissingProp)(e,l),o.else())}}function a(e,t=e.schema){const{gen:o,data:i,keyword:a,it:l}=e,s=o.name("valid");for(const u in t)(0,n.alwaysValidSchema)(l,t[u])||(o.if((0,r.propertyInData)(o,i,u,l.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},s);e.mergeValidEvaluated(t,s)}),(()=>o.var(s,!0))),e.ok(s))}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=o}(Td)),Td}var Rd,Ud={};function qd(){if(Rd)return Ud;Rd=1,Object.defineProperty(Ud,"__esModule",{value:!0});const e=gc(),t=kc();return Ud.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>e._`{propertyName: ${t.propertyName}}`},code(n){const{gen:r,schema:o,data:i,it:a}=n;if((0,t.alwaysValidSchema)(a,o))return;const l=r.name("valid");r.forIn("key",i,(t=>{n.setParams({propertyName:t}),n.subschema({keyword:"propertyNames",data:t,dataTypes:["string"],propertyName:t,compositeRule:!0},l),r.if((0,e.not)(l),(()=>{n.error(!0),a.allErrors||r.break()}))})),n.ok(l)}},Ud}var zd,Ld={};function Bd(){if(zd)return Ld;zd=1,Object.defineProperty(Ld,"__esModule",{value:!0});const e=Hc(),t=gc(),n=xc(),r=kc(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>t._`{additionalProperty: ${e.additionalProperty}}`},code(o){const{gen:i,schema:a,parentSchema:l,data:s,errsCount:u,it:c}=o;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=c;if(c.props=!0,"all"!==d.removeAdditional&&(0,r.alwaysValidSchema)(c,a))return;const h=(0,e.allSchemaProperties)(l.properties),m=(0,e.allSchemaProperties)(l.patternProperties);function p(e){i.code(t._`delete ${s}[${e}]`)}function v(e){if("all"===d.removeAdditional||d.removeAdditional&&!1===a)p(e);else{if(!1===a)return o.setParams({additionalProperty:e}),o.error(),void(f||i.break());if("object"==typeof a&&!(0,r.alwaysValidSchema)(c,a)){const n=i.name("valid");"failing"===d.removeAdditional?(y(e,n,!1),i.if((0,t.not)(n),(()=>{o.reset(),p(e)}))):(y(e,n),f||i.if((0,t.not)(n),(()=>i.break())))}}}function y(e,t,n){const i={keyword:"additionalProperties",dataProp:e,dataPropType:r.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(i,t)}i.forIn("key",s,(n=>{h.length||m.length?i.if(function(n){let a;if(h.length>8){const t=(0,r.schemaRefOrVal)(c,l.properties,"properties");a=(0,e.isOwnProperty)(i,t,n)}else a=h.length?(0,t.or)(...h.map((e=>t._`${n} === ${e}`))):t.nil;return m.length&&(a=(0,t.or)(a,...m.map((r=>t._`${(0,e.usePattern)(o,r)}.test(${n})`)))),(0,t.not)(a)}(n),(()=>v(n))):v(n)})),o.ok(t._`${u} === ${n.default.errors}`)}};return Ld.default=o,Ld}var Vd,Wd={};function Hd(){if(Vd)return Wd;Vd=1,Object.defineProperty(Wd,"__esModule",{value:!0});const e=sf(),t=Hc(),n=kc(),r=Bd(),o={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:i,schema:a,parentSchema:l,data:s,it:u}=o;"all"===u.opts.removeAdditional&&void 0===l.additionalProperties&&r.default.code(new e.KeywordCxt(u,r.default,"additionalProperties"));const c=(0,t.allSchemaProperties)(a);for(const e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=n.mergeEvaluated.props(i,(0,n.toHash)(c),u.props));const f=c.filter((e=>!(0,n.alwaysValidSchema)(u,a[e])));if(0===f.length)return;const d=i.name("valid");for(const e of f)h(e)?m(e):(i.if((0,t.propertyInData)(i,s,e,u.opts.ownProperties)),m(e),u.allErrors||i.else().var(d,!0),i.endIf()),o.it.definedProperties.add(e),o.ok(d);function h(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==a[e].default}function m(e){o.subschema({keyword:"properties",schemaProp:e,dataProp:e},d)}}};return Wd.default=o,Wd}var Gd,Kd={};function Jd(){if(Gd)return Kd;Gd=1,Object.defineProperty(Kd,"__esModule",{value:!0});const e=Hc(),t=gc(),n=kc(),r=kc(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:i,schema:a,data:l,parentSchema:s,it:u}=o,{opts:c}=u,f=(0,e.allSchemaProperties)(a),d=f.filter((e=>(0,n.alwaysValidSchema)(u,a[e])));if(0===f.length||d.length===f.length&&(!u.opts.unevaluated||!0===u.props))return;const h=c.strictSchema&&!c.allowMatchingProperties&&s.properties,m=i.name("valid");!0===u.props||u.props instanceof t.Name||(u.props=(0,r.evaluatedPropsToName)(i,u.props));const{props:p}=u;function v(e){for(const t in h)new RegExp(e).test(t)&&(0,n.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){i.forIn("key",l,(a=>{i.if(t._`${(0,e.usePattern)(o,n)}.test(${a})`,(()=>{const e=d.includes(n);e||o.subschema({keyword:"patternProperties",schemaProp:n,dataProp:a,dataPropType:r.Type.Str},m),u.opts.unevaluated&&!0!==p?i.assign(t._`${p}[${a}]`,!0):e||u.allErrors||i.if((0,t.not)(m),(()=>i.break()))}))}))}!function(){for(const e of f)h&&v(e),u.allErrors?y(e):(i.var(m,!0),y(e),i.if(m))}()}};return Kd.default=o,Kd}var Yd,Xd={};function Zd(){if(Yd)return Xd;Yd=1,Object.defineProperty(Xd,"__esModule",{value:!0});const e=kc();return Xd.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:n,schema:r,it:o}=t;if((0,e.alwaysValidSchema)(o,r))return void t.fail();const i=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,(()=>t.reset()),(()=>t.error()))},error:{message:"must NOT be valid"}},Xd}var Qd,eh={};function th(){return Qd||(Qd=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Hc().validateUnion,error:{message:"must match a schema in anyOf"}}),eh}var nh,rh={};function oh(){if(nh)return rh;nh=1,Object.defineProperty(rh,"__esModule",{value:!0});const e=gc(),t=kc(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>e._`{passingSchemas: ${t.passing}}`},code(n){const{gen:r,schema:o,parentSchema:i,it:a}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;const l=o,s=r.let("valid",!1),u=r.let("passing",null),c=r.name("_valid");n.setParams({passing:u}),r.block((function(){l.forEach(((o,i)=>{let l;(0,t.alwaysValidSchema)(a,o)?r.var(c,!0):l=n.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},c),i>0&&r.if(e._`${c} && ${s}`).assign(s,!1).assign(u,e._`[${u}, ${i}]`).else(),r.if(c,(()=>{r.assign(s,!0),r.assign(u,i),l&&n.mergeEvaluated(l,e.Name)}))}))})),n.result(s,(()=>n.reset()),(()=>n.error(!0)))}};return rh.default=n,rh}var ih,ah={};function lh(){if(ih)return ah;ih=1,Object.defineProperty(ah,"__esModule",{value:!0});const e=kc(),t={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=n.name("valid");r.forEach(((n,r)=>{if((0,e.alwaysValidSchema)(o,n))return;const a=t.subschema({keyword:"allOf",schemaProp:r},i);t.ok(i),t.mergeEvaluated(a)}))}};return ah.default=t,ah}var sh,uh={};function ch(){if(sh)return uh;sh=1,Object.defineProperty(uh,"__esModule",{value:!0});const e=gc(),t=kc(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>e.str`must match "${t.ifClause}" schema`,params:({params:t})=>e._`{failingKeyword: ${t.ifClause}}`},code(n){const{gen:o,parentSchema:i,it:a}=n;void 0===i.then&&void 0===i.else&&(0,t.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const l=r(a,"then"),s=r(a,"else");if(!l&&!s)return;const u=o.let("valid",!0),c=o.name("_valid");if(function(){const e=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);n.mergeEvaluated(e)}(),n.reset(),l&&s){const e=o.let("ifClause");n.setParams({ifClause:e}),o.if(c,f("then",e),f("else",e))}else l?o.if(c,f("then")):o.if((0,e.not)(c),f("else"));function f(t,r){return()=>{const i=n.subschema({keyword:t},c);o.assign(u,c),n.mergeValidEvaluated(i,u),r?o.assign(r,e._`${t}`):n.setParams({ifClause:t})}}n.pass(u,(()=>n.error(!0)))}};function r(e,n){const r=e.schema[n];return void 0!==r&&!(0,t.alwaysValidSchema)(e,r)}return uh.default=n,uh}var fh,dh,hh={};function mh(){if(fh)return hh;fh=1,Object.defineProperty(hh,"__esModule",{value:!0});const e=kc(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:r}){void 0===n.if&&(0,e.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};return hh.default=t,hh}function ph(){if(dh)return wd;dh=1,Object.defineProperty(wd,"__esModule",{value:!0});const e=kd(),t=_d(),n=xd(),r=Id(),o=Md(),i=Nd(),a=qd(),l=Bd(),s=Hd(),u=Jd(),c=Zd(),f=th(),d=oh(),h=lh(),m=ch(),p=mh();return wd.default=function(v=!1){const y=[c.default,f.default,d.default,h.default,m.default,p.default,a.default,l.default,i.default,s.default,u.default];return v?y.push(t.default,r.default):y.push(e.default,n.default),y.push(o.default),y},wd}var vh,yh,bh={},gh={};function wh(){if(vh)return gh;vh=1,Object.defineProperty(gh,"__esModule",{value:!0});const e=gc(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>e.str`must match format "${t}"`,params:({schemaCode:t})=>e._`{format: ${t}}`},code(t,n){const{gen:r,data:o,$data:i,schema:a,schemaCode:l,it:s}=t,{opts:u,errSchemaPath:c,schemaEnv:f,self:d}=s;u.validateFormats&&(i?function(){const i=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),a=r.const("fDef",e._`${i}[${l}]`),s=r.let("fType"),c=r.let("format");r.if(e._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,e._`${a}.type || "string"`).assign(c,e._`${a}.validate`)),(()=>r.assign(s,e._`"string"`).assign(c,a))),t.fail$data((0,e.or)(!1===u.strictSchema?e.nil:e._`${l} && !${c}`,function(){const t=f.$async?e._`(${a}.async ? await ${c}(${o}) : ${c}(${o}))`:e._`${c}(${o})`,r=e._`(typeof ${c} == "function" ? ${t} : ${c}.test(${o}))`;return e._`${c} && ${c} !== true && ${s} === ${n} && !${r}`}()))}():function(){const i=d.formats[a];if(!i)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}d.logger.warn(e())}();if(!0===i)return;const[l,s,h]=function(t){const n=t instanceof RegExp?(0,e.regexpCode)(t):u.code.formats?e._`${u.code.formats}${(0,e.getProperty)(a)}`:void 0,o=r.scopeValue("formats",{key:a,ref:t,code:n});return"object"!=typeof t||t instanceof RegExp?["string",t,o]:[t.type||"string",t.validate,e._`${o}.validate`]}(i);l===n&&t.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!f.$async)throw new Error("async format in sync schema");return e._`await ${h}(${o})`}return"function"==typeof s?e._`${h}(${o})`:e._`${h}.test(${o})`}())}())}};return gh.default=t,gh}function $h(){return yh||(yh=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.default=[wh().default]),bh}var kh,Sh,Eh={};function jh(){return kh||(kh=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.contentVocabulary=Eh.metadataVocabulary=void 0,Eh.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Eh.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Eh}function Oh(){if(Sh)return jf;Sh=1,Object.defineProperty(jf,"__esModule",{value:!0});const e=Ff(),t=bd(),n=ph(),r=$h(),o=jh(),i=[e.default,t.default,(0,n.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];return jf.default=i,jf}var xh,_h,Ch={},Dh={};function Ih(){return xh||(xh=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(e||(Dh.DiscrError=e={}))),Dh;var e}function Ah(){if(_h)return Ch;_h=1,Object.defineProperty(Ch,"__esModule",{value:!0});const e=gc(),t=Ih(),n=yf(),r=mf(),o=kc(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:n}})=>e===t.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:t,tag:n,tagName:r}})=>e._`{error: ${t}, tag: ${r}, tagValue: ${n}}`},code(i){const{gen:a,data:l,schema:s,parentSchema:u,it:c}=i,{oneOf:f}=u;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");const h=a.let("valid",!1),m=a.const("tag",e._`${l}${(0,e.getProperty)(d)}`);function p(t){const n=a.name("valid"),r=i.subschema({keyword:"oneOf",schemaProp:t},n);return i.mergeEvaluated(r,e.Name),n}a.if(e._`typeof ${m} == "string"`,(()=>function(){const l=function(){var e;const t={},i=l(u);let a=!0;for(let t=0;t<f.length;t++){let u=f[t];if((null==u?void 0:u.$ref)&&!(0,o.schemaHasRulesButRef)(u,c.self.RULES)){const e=u.$ref;if(u=n.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e),u instanceof n.SchemaEnv&&(u=u.schema),void 0===u)throw new r.default(c.opts.uriResolver,c.baseId,e)}const h=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[d];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);a=a&&(i||l(u)),s(h,t)}if(!a)throw new Error(`discriminator: "${d}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(d)}function s(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const n of e.enum)h(n,t)}}function h(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${d}" values must be unique strings`);t[e]=n}}();a.if(!1);for(const t in l)a.elseIf(e._`${m} === ${t}`),a.assign(h,p(l[t]));a.else(),i.error(!1,{discrError:t.DiscrError.Mapping,tag:m,tagName:d}),a.endIf()}()),(()=>i.error(!1,{discrError:t.DiscrError.Tag,tag:m,tagName:d}))),i.ok(h)}};return Ch.default=i,Ch}var Fh,Mh={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};function Ph(){return Fh||(Fh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=Sf(),r=Oh(),o=Ah(),i=Mh,a=["/properties"],l="http://json-schema.org/draft-07/schema";class s extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=s,e.exports=t=s,e.exports.Ajv=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var u=sf();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=gc();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=ff();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var d=mf();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(lc,lc.exports)),lc.exports}var Th,Nh,Rh,Uh=o(Ph()),qh={exports:{}},zh={},Lh={},Bh=(Rh||(Rh=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=(Th||(Th=1,function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,i),time:t(l,s),"date-time":t((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&l(t[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&d.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=p&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,s),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=n.exec(e);if(!t)return!1;const o=+t[2],i=+t[3];return o>=1&&o<=12&&i>=1&&i<=(2!==o||(a=+t[1])%4!=0||a%100==0&&a%400!=0?r[o]:29);var a}function i(e,t){if(e&&t)return e>t?1:e<t?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(e,t){const n=a.exec(e);if(!n)return!1;const r=+n[1],o=+n[2],i=+n[3];return(r<=23&&o<=59&&i<=59||23===r&&59===o&&60===i)&&(!t||""!==n[5])}function s(e,t){if(!e||!t)return;const n=a.exec(e),r=a.exec(t);return n&&r?(e=n[1]+n[2]+n[3]+(n[4]||""))>(t=r[1]+r[2]+r[3]+(r[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function c(e,t){if(!e||!t)return;const[n,r]=e.split(u),[o,a]=t.split(u),l=i(n,o);return void 0!==l?l||s(r,a):void 0}const f=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,m=-2147483648,p=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(zh)),zh),r=(Nh||(Nh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ph(),n=gc(),r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:r,data:i,schemaCode:a,keyword:l,it:s}=e,{opts:u,self:c}=s;if(!u.validateFormats)return;const f=new t.KeywordCxt(s,c.RULES.all.format.definition,"format");function d(e){return n._`${e}.compare(${i}, ${a}) ${o[l].fail} 0`}f.$data?function(){const t=r.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=r.const("fmt",n._`${t}[${f.schemaCode}]`);e.fail$data(n.or(n._`typeof ${o} != "object"`,n._`${o} instanceof RegExp`,n._`typeof ${o}.compare != "function"`,d(o)))}():function(){const t=f.schema,o=c.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${l}": format "${t}" does not define "compare" function`);const i=r.scopeValue("formats",{key:t,ref:o,code:u.code.formats?n._`${u.code.formats}${n.getProperty(t)}`:void 0});e.fail$data(d(i))}()},dependencies:["format"]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(Lh)),Lh),o=gc(),i=new o.Name("fullFormats"),a=new o.Name("fastFormats"),l=(e,t={keywords:!0})=>{if(Array.isArray(t))return s(e,t,n.fullFormats,i),e;const[o,l]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return s(e,t.formats||n.formatNames,o,l),t.keywords&&r.default(e),e};function s(e,t,n,r){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=o._`require("ajv-formats/dist/formats").${r}`);for(const r of t)e.addFormat(r,n[r])}l.get=(e,t="full")=>{const r=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l}(qh,qh.exports)),qh.exports),Vh=o(Bh);const Wh={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Hh=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,Gh=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Kh(e,t,n,r,o,i,a,l){const{validationError:s}=t;let u=function(e=[],t,n){const r=e.map((e=>{var n;const{instancePath:r,keyword:o,params:i,schemaPath:a,parentSchema:l,...s}=e;let{message:u=""}=s,c=r.replace(/\//g,"."),f=`${c} ${u}`.trim(),d="";const m=[...(null===(n=i.deps)||void 0===n?void 0:n.split(", "))||[],i.missingProperty,i.property].filter((e=>e));if(m.length>0)m.forEach((e=>{let n=En(h(t,`${(c?`${c}.${e}`:e).replace(/^\./,"")}`)).title;if(void 0===n){const r=a.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);n=En(h(t,r)).title}if(n)u=u.replace(`'${e}'`,`'${n}'`),d=n;else{const t=h(l,[ln,e,"title"]);t&&(u=u.replace(`'${e}'`,`'${t}'`),d=t)}})),f=u;else{const e=En(h(t,`${c.replace(/^\./,"")}`)).title;if(e)f=`'${e}' ${u}`.trim(),d=e;else{const e=null==l?void 0:l.title;e&&(f=`'${e}' ${u}`.trim(),d=e)}}return"missingProperty"in i&&(c=c?`${c}.${i.missingProperty}`:i.missingProperty),{name:o,property:c,message:u,params:i,stack:f,schemaPath:a,title:d}}));return function(e,t="none"){return"all"===t?e:e.reduce(((e,n)=>{const{message:r,schemaPath:o}=n,i="anyOf"!==t?null==o?void 0:o.indexOf(`/${Jt}/`):void 0,a="oneOf"!==t?null==o?void 0:o.indexOf(`/${on}/`):void 0;let l;i&&i>=0?l=null==o?void 0:o.substring(0,i):a&&a>=0&&(l=null==o?void 0:o.substring(0,a));const s=l?e.find((e=>{var t;return e.message===r&&(null===(t=e.schemaPath)||void 0===t?void 0:t.startsWith(l))})):void 0;return s||e.push(n),e}),[])}(r,n)}(t.errors,a,l);s&&(u=[...u,{stack:s.message}]),"function"==typeof i&&(u=i(u,a));let c=function(e){const t=new hi;return e.length&&e.forEach((e=>{const{property:n,message:r}=e,o="."===n?[]:ft(n);o.length>0&&""===o[0]&&o.splice(0,1),r&&t.addErrors(r,o)})),t.ErrorSchema}(u);if(s&&(c={...c,$schema:{__errors:[s.message]}}),"function"!=typeof o)return{errors:u,errorSchema:c};const f=Ko(e,r,n,r,!0);return aa({errors:u,errorSchema:c},Qi(o(f,On(f),a,c)))}class Jh{constructor(e,t){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:n,customFormats:r,ajvOptionsOverrides:o,ajvFormatOptions:i,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:s}=e;this.ajv=function(e,t,n={},r,o=Uh,i){let a=new o({...Wh,...n});return r?Vh(a,r):!1!==r&&Vh(a),a.addFormat("data-url",Gh),a.addFormat("color",Hh),a.addKeyword(Ht),a.addKeyword(bn),Array.isArray(e)&&a.addMetaSchema(e),Y(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),i&&(a=i(a)),a}(n,r,o,i,a,l),this.localizer=t,this.suppressDuplicateFiltering=s}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(e,t){var n,r;let o,i,a;try{e[en]&&(i=this.ajv.getSchema(e[en])),void 0===i&&(i=this.ajv.compile(e)),i(t)}catch(e){o=e}return i&&("function"==typeof this.localizer&&((null!==(n=i.errors)&&void 0!==n?n:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var n;(null===(n=e.params)||void 0===n?void 0:n[t])&&(e.params[t]=`'${e.params[t]}'`)})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(i.errors),(null!==(r=i.errors)&&void 0!==r?r:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var n;(null===(n=e.params)||void 0===n?void 0:n[t])&&(e.params[t]=e.params[t].slice(1,-1))})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),a=i.errors||void 0,i.errors=null),{errors:a,validationError:o}}validateFormData(e,t,n,r,o){return Kh(this,this.rawValidation(t,e),e,t,n,r,o,this.suppressDuplicateFiltering)}handleSchemaUpdate(e){var t,n;if(this.lastSeenRootSchema===e&&this.hasRegisteredRootSchema)return;const r=null!==(t=e[en])&&void 0!==t?t:gn;void 0===this.ajv.getSchema(r)?this.ajv.addSchema(e,r):er(e,null===(n=this.ajv.getSchema(r))||void 0===n?void 0:n.schema)||(this.ajv.removeSchema(r),this.ajv.addSchema(e,r)),this.lastSeenRootSchema=e,this.hasRegisteredRootSchema=!0}isValid(e,t,n){var r;try{this.handleSchemaUpdate(n);const o=la(e),i=null!==(r=o[en])&&void 0!==r?r:function(e){return Ci(e)}(o);let a;return a=this.ajv.getSchema(i),void 0===a&&(a=this.ajv.addSchema(o,i).getSchema(i)||this.ajv.compile(o)),a(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}}}function Yh(e={},t){return new Jh(e,t)}function Xh(e={}){return tm(e.type,"object")}function Zh(e){return tm(e.type,"array")}function Qh(e){return tm(e.type,"number")}function em(e){return tm(e.type,"integer")}function tm(e,t){return Array.isArray(e)?e.includes(t):e===t}Yh();const nm=e=>{let t=e.classNames;const n=function(e){var t;const n=null===(t=e.lime)||void 0===t?void 0:t.layout,r=null==n?void 0:n.colSpan;return!r&&Xh(e)?"all":r}(e.schema),r=function(e){var t;const n=null===(t=e.lime)||void 0===t?void 0:t.layout;return null==n?void 0:n.rowSpan}(e.schema);let o;return n&&(t+=` limel-form-layout-colspan--${n}`),r&&(o={gridRow:`span ${r}`,minHeight:`calc(var(--min-height-of-one-row) * ${r})`}),xt.createElement("div",{className:t,style:o},e.children)};function rm(e){if(e)return xt.createElement("h1",{className:"mdc-typography mdc-typography--headline1"},e)}function om(e){if(e)return xt.createElement("limel-markdown",{value:e})}function im(e,t,n){if(!e)return null;if(Array.isArray(e)&&Xh(t.items))return im(e[0],t,n);if(Array.isArray(e)||"object"!=typeof e)return function(e,t){var n;return Zh(t)&&t.items.anyOf?t.items.anyOf.filter((t=>e.includes(t.const))).map((e=>e.title)).join(", "):t.oneOf?(null===(n=t.oneOf.find((t=>e===t.const)))||void 0===n?void 0:n.title)||`${e} is an invalid option`:e}
8
+ /**!
9
+ * Sortable 1.15.6
10
+ * @author RubaXa <trash@rubaxa.org>
11
+ * @author owenm <owen23355@gmail.com>
12
+ * @license MIT
13
+ */(e,t);const r=function(e,t){let n=e;if(Zh(e)&&(n=e.items),n.$ref){const e=n.$ref.split("/").slice(1).join(".");n=h(t,e)}return n}(t,n);e=function(e,t){if(!t||se(t))return e;const n={};for(const r of Object.keys(t))n[r]=e[r];return n}(e,r.properties);const o=function(e,t){return[["title",e.title],["name",e.name],am(e,t),...Object.entries(e)].find((e=>{const t=e[1];return!!t&&"boolean"!=typeof t}))}(e,r);if(!o)return null;if(!r.properties)return null;const[i,a]=o;return im(a,r.properties[i],n)}function am(e,t){if(!("required"in t))return[null,null];const n=Object.keys(e).find((e=>t.required.includes(e)));return n?[n,e[n]]:[null,null]}function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function um(e){return um="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},um(e)}function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fm(){return fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function dm(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var hm=dm(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),mm=dm(/Edge/i),pm=dm(/firefox/i),vm=dm(/safari/i)&&!dm(/chrome/i)&&!dm(/android/i),ym=dm(/iP(ad|od|hone)/i),bm=dm(/chrome/i)&&dm(/android/i),gm={capture:!1,passive:!1};function wm(e,t,n){e.addEventListener(t,n,!hm&&gm)}function $m(e,t,n){e.removeEventListener(t,n,!hm&&gm)}function km(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Sm(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Em(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&km(e,t):km(e,t))||r&&e===n)return e;if(e===n)break}while(e=Sm(e))}return null}var jm,Om=/\s+/g;function xm(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Om," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Om," ")}}function _m(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Cm(e,t){var n="";if("string"==typeof e)n=e;else do{var r=_m(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Dm(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Im(){return document.scrollingElement||document.documentElement}function Am(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,c,f;if(e!==window&&e.parentNode&&e!==Im()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!hm))do{if(o&&o.getBoundingClientRect&&("none"!==_m(o,"transform")||n&&"static"!==_m(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(_m(o,"border-top-width")),l-=d.left+parseInt(_m(o,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=Cm(o||e),m=h&&h.a,p=h&&h.d;h&&(s=(a/=p)+(c/=p),u=(l/=m)+(f/=m))}return{top:a,left:l,bottom:s,right:u,width:f,height:c}}}function Fm(e,t,n){for(var r=Rm(e,!0),o=Am(e)[t];r;){if(!(o>=Am(r)[n]))return r;if(r===Im())break;r=Rm(r,!1)}return!1}function Mm(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==zp.ghost&&(r||a[i]!==zp.dragged)&&Em(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function Pm(e,t){for(var n=e.lastElementChild;n&&(n===zp.ghost||"none"===_m(n,"display")||t&&!km(n,t));)n=n.previousElementSibling;return n||null}function Tm(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===zp.clone||t&&!km(e,t)||n++;return n}function Nm(e){var t=0,n=0,r=Im();if(e)do{var o=Cm(e);t+=e.scrollLeft*o.a,n+=e.scrollTop*o.d}while(e!==r&&(e=e.parentNode));return[t,n]}function Rm(e,t){if(!e||!e.getBoundingClientRect)return Im();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=_m(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Im();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Im()}function Um(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function qm(e,t){return function(){if(!jm){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),jm=setTimeout((function(){jm=void 0}),t)}}}function zm(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Lm(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Bm(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var i,a,l,s;if(Em(o,t.draggable,e,!1)&&!o.animated&&o!==n){var u=Am(o);r.left=Math.min(null!==(i=r.left)&&void 0!==i?i:1/0,u.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,u.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,u.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,u.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Vm="Sortable"+(new Date).getTime();var Wm=[],Hm={initializeByDefault:!0},Gm={mount:function(e){for(var t in Hm)Hm.hasOwnProperty(t)&&!(t in e)&&(e[t]=Hm[t]);Wm.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Wm.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";Wm.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](sm({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](sm({sortable:t},n)))}))},initializePlugins:function(e,t,n){for(var r in Wm.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,fm(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);void 0!==o&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return Wm.forEach((function(r){"function"==typeof r.eventProperties&&fm(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return Wm.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}},Km=["evt"],Jm=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Km);Gm.pluginEvent.bind(zp)(e,t,sm({dragEl:Xm,parentEl:Zm,ghostEl:Qm,rootEl:ep,nextEl:tp,lastDownEl:np,cloneEl:rp,cloneHidden:op,dragStarted:yp,putSortable:cp,activeSortable:zp.active,originalEvent:r,oldIndex:ip,oldDraggableIndex:lp,newIndex:ap,newDraggableIndex:sp,hideGhostForTarget:Np,unhideGhostForTarget:Rp,cloneNowHidden:function(){op=!0},cloneNowShown:function(){op=!1},dispatchSortableEvent:function(e){Ym({sortable:t,name:e,originalEvent:r})}},o))};function Ym(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[Vm]){var p,v=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||hm||mm?(p=document.createEvent("Event")).initEvent(r,!0,!0):p=new CustomEvent(r,{bubbles:!0,cancelable:!0}),p.to=a||n,p.from=l||n,p.item=o||n,p.clone=i,p.oldIndex=s,p.newIndex=u,p.oldDraggableIndex=c,p.newDraggableIndex=f,p.originalEvent=d,p.pullMode=h?h.lastPutMode:void 0;var b=sm(sm({},m),Gm.getEventProperties(r,t));for(var g in b)p[g]=b[g];n&&n.dispatchEvent(p),v[y]&&v[y].call(t,p)}}(sm({putSortable:cp,cloneEl:rp,targetEl:Xm,rootEl:ep,oldIndex:ip,oldDraggableIndex:lp,newIndex:ap,newDraggableIndex:sp},e))}var Xm,Zm,Qm,ep,tp,np,rp,op,ip,ap,lp,sp,up,cp,fp,dp,hp,mp,pp,vp,yp,bp,gp,wp,$p,kp=!1,Sp=!1,Ep=[],jp=!1,Op=!1,xp=[],_p=!1,Cp=[],Dp="undefined"!=typeof document,Ip=ym,Ap=mm||hm?"cssFloat":"float",Fp=Dp&&!bm&&!ym&&"draggable"in document.createElement("div"),Mp=function(){if(Dp){if(hm)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Pp=function(e,t){var n=_m(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Mm(e,0,t),i=Mm(e,1,t),a=o&&_m(o),l=i&&_m(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Am(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Am(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!i||"both"!==l.clear&&l.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Ap]||i&&"none"===n[Ap]&&s+u>r)?"vertical":"horizontal"},Tp=function(e){function t(e,n){return function(r,o,i,a){if(null==e&&(n||r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==um(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Np=function(){!Mp&&Qm&&_m(Qm,"display","none")},Rp=function(){!Mp&&Qm&&_m(Qm,"display","")};Dp&&!bm&&document.addEventListener("click",(function(e){if(Sp)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Sp=!1,!1}),!0);var Up=function(e){if(Xm){var t=function(e,t){var n;return Ep.some((function(r){var o=r[Vm].options.emptyInsertThreshold;if(o&&!Pm(r)){var i=Am(r);return e>=i.left-o&&e<=i.right+o&&t>=i.top-o&&t<=i.bottom+o?n=r:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Vm]._onDragOver(n)}}},qp=function(e){Xm&&Xm.parentNode[Vm]._isOutsideThisEl(e.target)};function zp(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=fm({},t),e[Vm]=this;var n,r,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pp(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zp.supportPointer&&"PointerEvent"in window&&(!vm||ym),emptyInsertThreshold:5};for(var i in Gm.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var a in Tp(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Fp,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?wm(e,"pointerdown",this._onTapStart):(wm(e,"mousedown",this._onTapStart),wm(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(wm(e,"dragover",this),wm(e,"dragenter",this)),Ep.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fm(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==_m(e,"display")&&e!==zp.ghost){r.push({target:e,rect:Am(e)});var t=sm({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=Cm(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,i=0;r.forEach((function(e){var n=0,r=e.target,a=r.fromRect,l=Am(r),s=r.prevFromRect,u=r.prevToRect,c=e.rect,f=Cm(r,!0);f&&(l.top-=f.f,l.left-=f.e),r.toRect=l,r.thisAnimationDuration&&Um(s,l)&&!Um(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,s,u,t.options)),Um(l,a)||(r.prevFromRect=a,r.prevToRect=l,n||(n=t.options.animation),t.animate(r,c,l,n)),n&&(o=!0,i=Math.max(i,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){_m(e,"transition",""),_m(e,"transform","");var o=Cm(this.el),i=(t.left-n.left)/(o&&o.a||1),a=(t.top-n.top)/(o&&o.d||1);e.animatingX=!!i,e.animatingY=!!a,_m(e,"transform","translate3d("+i+"px,"+a+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),_m(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),_m(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){_m(e,"transition",""),_m(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Lp(e,t,n,r,o,i,a,l){var s,u,c=e[Vm],f=c.options.onMove;return!window.CustomEvent||hm||mm?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||Am(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),f&&(u=f.call(c,s,a)),u}function Bp(e){e.draggable=!1}function Vp(){_p=!1}function Wp(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Hp(e){return setTimeout(e,0)}function Gp(e){return clearTimeout(e)}zp.prototype={constructor:zp,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(bp=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Xm):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){Cp.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Cp.push(r)}}(n),!Xm&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!vm||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Em(l,r.draggable,n,!1))&&l.animated||np===l)){if(ip=Tm(l),lp=Tm(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Ym({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Jm("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Em(s,r.trim(),n,!1))return Ym({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Jm("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!Em(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!Xm&&n.parentNode===i){var s=Am(n);if(ep=i,Zm=(Xm=n).parentNode,tp=Xm.nextSibling,np=n,up=a.group,zp.dragged=Xm,pp=(fp={target:Xm,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-s.left,vp=fp.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Xm.style["will-change"]="all",r=function(){Jm("delayEnded",o,{evt:e}),zp.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!pm&&o.nativeDraggable&&(Xm.draggable=!0),o._triggerDragStart(e,t),Ym({sortable:o,name:"choose",originalEvent:e}),xm(Xm,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Dm(Xm,e.trim(),Bp)})),wm(l,"dragover",Up),wm(l,"mousemove",Up),wm(l,"touchmove",Up),a.supportPointer?(wm(l,"pointerup",o._onDrop),!this.nativeDraggable&&wm(l,"pointercancel",o._onDrop)):(wm(l,"mouseup",o._onDrop),wm(l,"touchend",o._onDrop),wm(l,"touchcancel",o._onDrop)),pm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Xm.draggable=!0),Jm("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(mm||hm))r();else{if(zp.eventCanceled)return void this._onDrop();a.supportPointer?(wm(l,"pointerup",o._disableDelayedDrag),wm(l,"pointercancel",o._disableDelayedDrag)):(wm(l,"mouseup",o._disableDelayedDrag),wm(l,"touchend",o._disableDelayedDrag),wm(l,"touchcancel",o._disableDelayedDrag)),wm(l,"mousemove",o._delayedDragTouchMoveHandler),wm(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&wm(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Xm&&Bp(Xm),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;$m(e,"mouseup",this._disableDelayedDrag),$m(e,"touchend",this._disableDelayedDrag),$m(e,"touchcancel",this._disableDelayedDrag),$m(e,"pointerup",this._disableDelayedDrag),$m(e,"pointercancel",this._disableDelayedDrag),$m(e,"mousemove",this._delayedDragTouchMoveHandler),$m(e,"touchmove",this._delayedDragTouchMoveHandler),$m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?wm(document,this.options.supportPointer?"pointermove":t?"touchmove":"mousemove",this._onTouchMove):(wm(Xm,"dragend",this),wm(ep,"dragstart",this._onDragStart));try{document.selection?Hp((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(kp=!1,ep&&Xm){Jm("dragStarted",this,{evt:t}),this.nativeDraggable&&wm(document,"dragover",qp);var n=this.options;!e&&xm(Xm,n.dragClass,!1),xm(Xm,n.ghostClass,!0),zp.active=this,e&&this._appendGhost(),Ym({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(dp){this._lastX=dp.clientX,this._lastY=dp.clientY,Np();for(var e=document.elementFromPoint(dp.clientX,dp.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(dp.clientX,dp.clientY))!==t;)t=e;if(Xm.parentNode[Vm]._isOutsideThisEl(e),t)do{if(t[Vm]&&t[Vm]._onDragOver({clientX:dp.clientX,clientY:dp.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=Sm(t));Rp()}},_onTouchMove:function(e){if(fp){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=Qm&&Cm(Qm,!0),a=Qm&&i&&i.a,l=Qm&&i&&i.d,s=Ip&&$p&&Nm($p),u=(o.clientX-fp.clientX+r.x)/(a||1)+(s?s[0]-xp[0]:0)/(a||1),c=(o.clientY-fp.clientY+r.y)/(l||1)+(s?s[1]-xp[1]:0)/(l||1);if(!zp.active&&!kp){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Qm){i?(i.e+=u-(hp||0),i.f+=c-(mp||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");_m(Qm,"webkitTransform",f),_m(Qm,"mozTransform",f),_m(Qm,"msTransform",f),_m(Qm,"transform",f),hp=u,mp=c,dp=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Qm){var e=this.options.fallbackOnBody?document.body:ep,t=Am(Xm,!0,Ip,!0,e),n=this.options;if(Ip){for($p=e;"static"===_m($p,"position")&&"none"===_m($p,"transform")&&$p!==document;)$p=$p.parentNode;$p!==document.body&&$p!==document.documentElement?($p===document&&($p=Im()),t.top+=$p.scrollTop,t.left+=$p.scrollLeft):$p=Im(),xp=Nm($p)}xm(Qm=Xm.cloneNode(!0),n.ghostClass,!1),xm(Qm,n.fallbackClass,!0),xm(Qm,n.dragClass,!0),_m(Qm,"transition",""),_m(Qm,"transform",""),_m(Qm,"box-sizing","border-box"),_m(Qm,"margin",0),_m(Qm,"top",t.top),_m(Qm,"left",t.left),_m(Qm,"width",t.width),_m(Qm,"height",t.height),_m(Qm,"opacity","0.8"),_m(Qm,"position",Ip?"absolute":"fixed"),_m(Qm,"zIndex","100000"),_m(Qm,"pointerEvents","none"),zp.ghost=Qm,e.appendChild(Qm),_m(Qm,"transform-origin",pp/parseInt(Qm.style.width)*100+"% "+vp/parseInt(Qm.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Jm("dragStart",this,{evt:e}),zp.eventCanceled?this._onDrop():(Jm("setupClone",this),zp.eventCanceled||((rp=Lm(Xm)).removeAttribute("id"),rp.draggable=!1,rp.style["will-change"]="",this._hideClone(),xm(rp,this.options.chosenClass,!1),zp.clone=rp),n.cloneId=Hp((function(){Jm("clone",n),zp.eventCanceled||(n.options.removeCloneOnHide||ep.insertBefore(rp,Xm),n._hideClone(),Ym({sortable:n,name:"clone"}))})),!t&&xm(Xm,o.dragClass,!0),t?(Sp=!0,n._loopId=setInterval(n._emulateDragOver,50)):($m(document,"mouseup",n._onDrop),$m(document,"touchend",n._onDrop),$m(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Xm)),wm(document,"drop",n),_m(Xm,"transform","translateZ(0)")),kp=!0,n._dragStartId=Hp(n._dragStarted.bind(n,t,e)),wm(document,"selectstart",n),yp=!0,window.getSelection().removeAllRanges(),vm&&_m(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,l=this.options,s=l.group,u=zp.active,c=up===s,f=l.sort,d=cp||u,h=this,m=!1;if(!_p){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Em(a,l.draggable,i,!0),C("dragOver"),zp.eventCanceled)return m;if(Xm.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return I(!1);if(Sp=!1,u&&!l.disabled&&(c?f||(r=Zm!==ep):cp===this||(this.lastPutMode=up.checkPull(this,u,Xm,e))&&s.checkPut(this,u,Xm,e))){if(o="vertical"===this._getDirection(e,a),t=Am(Xm),C("dragOverValid"),zp.eventCanceled)return m;if(r)return Zm=ep,D(),this._hideClone(),C("revert"),zp.eventCanceled||(tp?ep.insertBefore(Xm,tp):ep.appendChild(Xm)),I(!0);var p=Pm(i,l.draggable);if(!p||function(e,t,n){var r=Am(Pm(n.el,n.options.draggable)),o=Bm(n.el,n.options,Qm);return t?e.clientX>o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,o,this)&&!p.animated){if(p===Xm)return I(!1);if(p&&i===e.target&&(a=p),a&&(n=Am(a)),!1!==Lp(ep,i,Xm,t,a,n,e,!!a))return D(),p&&p.nextSibling?i.insertBefore(Xm,p.nextSibling):i.appendChild(Xm),Zm=i,A(),I(!0)}else if(p&&function(e,t,n){var r=Am(Mm(n.el,0,n.options,!0)),o=Bm(n.el,n.options,Qm);return t?e.clientX<o.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var v=Mm(i,0,l,!0);if(v===Xm)return I(!1);if(n=Am(a=v),!1!==Lp(ep,i,Xm,t,a,n,e,!1))return D(),i.insertBefore(Xm,v),Zm=i,A(),I(!0)}else if(a.parentNode===i){n=Am(a);var y,b,g,w=Xm.parentNode!==i,$=!function(e,t,n){var r=n?e.left:e.top,o=n?t.left:t.top;return r===o||(n?e.right:e.bottom)===(n?t.right:t.bottom)||r+(n?e.width:e.height)/2===o+(n?t.width:t.height)/2}(Xm.animated&&Xm.toRect||t,a.animated&&a.toRect||n,o),k=o?"top":"left",S=Fm(a,"top","top")||Fm(Xm,"top","top"),E=S?S.scrollTop:void 0;if(bp!==a&&(b=n[k],jp=!1,Op=!$&&l.invertSwap||w),y=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(l&&wp<u*o){if(!jp&&(1===gp?s>c+u*i/2:s<f-u*i/2)&&(jp=!0),jp)d=!0;else if(1===gp?s<c+wp:s>f-wp)return-gp}else if(s>c+u*(1-o)/2&&s<f-u*(1-o)/2)return function(e){return Tm(Xm)<Tm(e)?1:-1}(t);return(d=d||a)&&(s<c+u*i/2||s>f-u*i/2)?s>c+u/2?1:-1:0}(e,a,n,o,$?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Op,bp===a),0!==y){var j=Tm(Xm);do{g=Zm.children[j-=y]}while(g&&("none"===_m(g,"display")||g===Qm))}if(0===y||g===a)return I(!1);bp=a,gp=y;var O=a.nextElementSibling,x=!1,_=Lp(ep,i,Xm,t,a,n,e,x=1===y);if(!1!==_)return 1!==_&&-1!==_||(x=1===_),_p=!0,setTimeout(Vp,30),D(),x&&!O?i.appendChild(Xm):a.parentNode.insertBefore(Xm,x?O:a),S&&zm(S,0,E-S.scrollTop),Zm=Xm.parentNode,void 0===b||Op||(wp=Math.abs(b-Am(a)[k])),A(),I(!0)}if(i.contains(Xm))return I(!1)}return!1}function C(l,s){Jm(l,h,sm({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:a,completed:I,onMove:function(n,r){return Lp(ep,i,Xm,t,n,Am(n),e,r)},changed:A},s))}function D(){C("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function I(t){return C("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==d&&(xm(Xm,cp?cp.options.ghostClass:u.options.ghostClass,!1),xm(Xm,l.ghostClass,!0)),cp!==h&&h!==zp.active?cp=h:h===zp.active&&cp&&(cp=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){C("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===Xm&&!Xm.animated||a===i&&!a.animated)&&(bp=null),l.dragoverBubble||e.rootEl||a===document||(Xm.parentNode[Vm]._isOutsideThisEl(e.target),!t&&Up(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function A(){ap=Tm(Xm),sp=Tm(Xm,l.draggable),Ym({sortable:h,name:"change",toEl:i,newIndex:ap,newDraggableIndex:sp,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){$m(document,"mousemove",this._onTouchMove),$m(document,"touchmove",this._onTouchMove),$m(document,"pointermove",this._onTouchMove),$m(document,"dragover",Up),$m(document,"mousemove",Up),$m(document,"touchmove",Up)},_offUpEvents:function(){var e=this.el.ownerDocument;$m(e,"mouseup",this._onDrop),$m(e,"touchend",this._onDrop),$m(e,"pointerup",this._onDrop),$m(e,"pointercancel",this._onDrop),$m(e,"touchcancel",this._onDrop),$m(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ap=Tm(Xm),sp=Tm(Xm,n.draggable),Jm("drop",this,{evt:e}),Zm=Xm&&Xm.parentNode,ap=Tm(Xm),sp=Tm(Xm,n.draggable),zp.eventCanceled||(kp=!1,Op=!1,jp=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gp(this.cloneId),Gp(this._dragStartId),this.nativeDraggable&&($m(document,"drop",this),$m(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),vm&&_m(document.body,"user-select",""),_m(Xm,"transform",""),e&&(yp&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Qm&&Qm.parentNode&&Qm.parentNode.removeChild(Qm),(ep===Zm||cp&&"clone"!==cp.lastPutMode)&&rp&&rp.parentNode&&rp.parentNode.removeChild(rp),Xm&&(this.nativeDraggable&&$m(Xm,"dragend",this),Bp(Xm),Xm.style["will-change"]="",yp&&!kp&&xm(Xm,cp?cp.options.ghostClass:this.options.ghostClass,!1),xm(Xm,this.options.chosenClass,!1),Ym({sortable:this,name:"unchoose",toEl:Zm,newIndex:null,newDraggableIndex:null,originalEvent:e}),ep!==Zm?(ap>=0&&(Ym({rootEl:Zm,name:"add",toEl:Zm,fromEl:ep,originalEvent:e}),Ym({sortable:this,name:"remove",toEl:Zm,originalEvent:e}),Ym({rootEl:Zm,name:"sort",toEl:Zm,fromEl:ep,originalEvent:e}),Ym({sortable:this,name:"sort",toEl:Zm,originalEvent:e})),cp&&cp.save()):ap!==ip&&ap>=0&&(Ym({sortable:this,name:"update",toEl:Zm,originalEvent:e}),Ym({sortable:this,name:"sort",toEl:Zm,originalEvent:e})),zp.active&&(null!=ap&&-1!==ap||(ap=ip,sp=lp),Ym({sortable:this,name:"end",toEl:Zm,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Jm("nulling",this),ep=Xm=Zm=Qm=tp=rp=np=op=fp=dp=yp=ap=sp=ip=lp=bp=gp=cp=up=zp.dragged=zp.ghost=zp.clone=zp.active=null,Cp.forEach((function(e){e.checked=!0})),Cp.length=hp=mp=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Xm&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)Em(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Wp(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];Em(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Em(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Gm.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Tp(n)},destroy:function(){Jm("destroy",this);var e=this.el;e[Vm]=null,$m(e,"mousedown",this._onTapStart),$m(e,"touchstart",this._onTapStart),$m(e,"pointerdown",this._onTapStart),this.nativeDraggable&&($m(e,"dragover",this),$m(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ep.splice(Ep.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!op){if(Jm("hideClone",this),zp.eventCanceled)return;_m(rp,"display","none"),this.options.removeCloneOnHide&&rp.parentNode&&rp.parentNode.removeChild(rp),op=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(op){if(Jm("showClone",this),zp.eventCanceled)return;Xm.parentNode!=ep||this.options.group.revertClone?tp?ep.insertBefore(rp,tp):ep.appendChild(rp):ep.insertBefore(rp,Xm),this.options.group.revertClone&&this.animate(Xm,rp),_m(rp,"display",""),op=!1}}else this._hideClone()}},Dp&&wm(document,"touchmove",(function(e){(zp.active||kp)&&e.cancelable&&e.preventDefault()})),zp.utils={on:wm,off:$m,css:_m,find:Dm,is:function(e,t){return!!Em(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:qm,closest:Em,toggleClass:xm,clone:Lm,index:Tm,nextTick:Hp,cancelNextTick:Gp,detectDirection:Pp,getChild:Mm,expando:Vm},zp.get=function(e){return e[Vm]},zp.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(zp.utils=sm(sm({},zp.utils),e.utils)),Gm.mount(e)}))},zp.create=function(e,t){return new zp(e,t)},zp.version="1.15.6";var Kp,Jp,Yp,Xp,Zp,Qp,ev=[],tv=!1;function nv(){ev.forEach((function(e){clearInterval(e.pid)})),ev=[]}function rv(){clearInterval(Qp)}var ov=qm((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=Im(),c=!1;Jp!==n&&(Jp=n,nv(),o=t.scrollFn,!0===(Kp=t.scroll)&&(Kp=Rm(n,!0)));var f=0,d=Kp;do{var h=d,m=Am(h),p=m.top,v=m.bottom,y=m.left,b=m.right,g=m.width,w=m.height,$=void 0,k=void 0,S=h.scrollWidth,E=h.scrollHeight,j=_m(h),O=h.scrollLeft,x=h.scrollTop;h===u?($=g<S&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),k=w<E&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):($=g<S&&("auto"===j.overflowX||"scroll"===j.overflowX),k=w<E&&("auto"===j.overflowY||"scroll"===j.overflowY));var _=$&&(Math.abs(b-i)<=l&&O+g<S)-(Math.abs(y-i)<=l&&!!O),C=k&&(Math.abs(v-a)<=l&&x+w<E)-(Math.abs(p-a)<=l&&!!x);if(!ev[f])for(var D=0;D<=f;D++)ev[D]||(ev[D]={});ev[f].vx==_&&ev[f].vy==C&&ev[f].el===h||(ev[f].el=h,ev[f].vx=_,ev[f].vy=C,clearInterval(ev[f].pid),0==_&&0==C||(c=!0,ev[f].pid=setInterval(function(){r&&0===this.layer&&zp.active._onTouchMove(Zp);var t=ev[this.layer].vy?ev[this.layer].vy*s:0,n=ev[this.layer].vx?ev[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(zp.dragged.parentNode[Vm],n,t,e,Zp,ev[this.layer].el)||zm(ev[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==u&&(d=Rm(d,!1)));tv=c}}),30),iv=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.dispatchSortableEvent,i=e.unhideGhostForTarget;if(t){var a=n||e.activeSortable;(0,e.hideGhostForTarget)();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,s=document.elementFromPoint(l.clientX,l.clientY);i(),a&&!a.el.contains(s)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function av(){}function lv(){}av.prototype={startIndex:null,dragStart:function(e){this.startIndex=e.oldDraggableIndex},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Mm(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:iv},fm(av,{pluginName:"revertOnSpill"}),lv.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:iv},fm(lv,{pluginName:"removeOnSpill"}),zp.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?wm(document,"dragover",this._handleAutoScroll):wm(document,this.options.supportPointer?"pointermove":t.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?$m(document,"dragover",this._handleAutoScroll):($m(document,"pointermove",this._handleFallbackAutoScroll),$m(document,"touchmove",this._handleFallbackAutoScroll),$m(document,"mousemove",this._handleFallbackAutoScroll)),rv(),nv(),clearTimeout(jm),jm=void 0},nulling:function(){Zp=Jp=Kp=tv=Qp=Yp=Xp=null,ev.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(Zp=e,t||this.options.forceAutoScrollFallback||mm||hm||vm){ov(e,this.options,i,t);var a=Rm(i,!0);!tv||Qp&&r===Yp&&o===Xp||(Qp&&rv(),Qp=setInterval((function(){var i=Rm(document.elementFromPoint(r,o),!0);i!==a&&(a=i,nv()),ov(e,n.options,i,t)}),10),Yp=r,Xp=o)}else{if(!this.options.bubbleScroll||Rm(i,!0)===Im())return void nv();ov(e,this.options,Rm(i,!1),!1)}}},fm(e,{pluginName:"scroll",initializeByDefault:!0})}),zp.mount(lv,av);const sv=Ot.createContext(null),uv="arrayReorder",cv="[data-drag-handle]",fv='.array-item[data-reorderable="true"]',dv="has-an-item-which-is-being-dragged",hv="is-elevated";class mv extends xt.Component{constructor(e){super(e),this.cachedContextValue=null,this.handleAddClick=e=>{e.stopPropagation(),this.props.onAddClick(e)},this.setContainer=e=>{this.container!==e&&(this.teardownDragController(),this.container=null!=e?e:void 0,this.setupDragController())},this.handleSortStart=e=>{this.canReorderItems()&&(this.dragSnapshot=[...this.state.order],this.draggedItemIndex=this.getReorderId(e.item),this.container&&this.container.classList.add(dv),e.item instanceof HTMLElement&&this.applyDropElevation(e.item))},this.handleSortEnd=e=>{var t;if(!this.canReorderItems())return;this.container&&this.container.classList.remove(dv);const n=this.dragSnapshot,r=this.draggedItemIndex;this.dragSnapshot=void 0,this.draggedItemIndex=void 0,e.item instanceof HTMLElement&&(this.dropElevationTarget=e.item);const o=this.readOrderFromDom();if(this.arraysEqual(this.state.order,o)||this.setState({order:o}),void 0===n||void 0===r||!(e.item instanceof HTMLElement))return void this.scheduleDropElevationRemoval();const i=n.indexOf(r),a=o.indexOf(r);-1!==i&&-1!==a&&i!==a?(null===(t=this.container)||void 0===t||t.dispatchEvent(new CustomEvent(uv,{bubbles:!0,detail:{fromIndex:i,toIndex:a}})),this.scheduleDropElevationRemoval()):this.scheduleDropElevationRemoval()},this.state={order:this.extractIndices(e.items)}}componentWillUnmount(){this.teardownDragController()}componentDidMount(){this.setupDragController()}componentDidUpdate(e){if(e.items!==this.props.items){const e=this.extractIndices(this.props.items);if(!this.arraysEqual(this.state.order,e))return void this.setState({order:e},(()=>{this.setupDragController()}))}e.items===this.props.items&&e.schema===this.props.schema&&e.disabled===this.props.disabled&&e.readonly===this.props.readonly||this.setupDragController()}render(){const e=this.getOrderedItems(),t=this.getContextValue();return xt.createElement(sv.Provider,{value:t},xt.createElement("div",{},rm(this.props.title),om(this.props.schema.description),xt.createElement("div",{className:"array-items",ref:this.setContainer},e),this.renderAddButton()))}renderAddButton(){if(this.props.canAdd)return xt.createElement("limel-button",{label:this.props.title||"Add",onClick:this.handleAddClick,icon:"plus_math",class:"button-add-new"})}getOrderedItems(){var e;const t=null!==(e=this.props.items)&&void 0!==e?e:[];if(0===t.length)return[];const n=new Map;for(const[e,r]of t.entries())n.set(e,r);const r=[],o=new Set;for(const e of this.state.order){const t=n.get(e);t&&(r.push(t),o.add(e))}for(const[e,t]of n.entries())o.has(e)||r.push(t);return r}setupDragController(){if(this.container&&this.canReorderItems())return this.container.querySelectorAll(`:scope > ${fv}`).length<2?void this.teardownDragController():this.sortable?(this.sortable.option("handle",cv),this.sortable.option("draggable",fv),this.sortable.option("disabled",!1),this.sortable.option("delay",200),void this.sortable.option("delayOnTouchOnly",!0)):void(this.sortable=zp.create(this.container,{animation:150,handle:cv,draggable:fv,delay:200,delayOnTouchOnly:!0,onStart:this.handleSortStart,onEnd:this.handleSortEnd}));this.teardownDragController()}teardownDragController(){this.sortable&&(this.sortable.destroy(),this.sortable=void 0),this.clearDropElevationTimer(),this.dropElevationTarget&&(this.dropElevationTarget.classList.remove(hv),this.dropElevationTarget=void 0),this.container&&this.container.classList.remove(dv),this.dragSnapshot=void 0,this.draggedItemIndex=void 0}canReorderItems(){if(this.props.disabled||this.props.readonly)return!1;const e=this.props.schema;return!1!==((null==e?void 0:e.lime)||{}).allowItemReorder}readOrderFromDom(){if(!this.container)return[];const e=[...this.container.children].filter((e=>{var t,n;return Boolean(null===(n=null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,"array-item"))})),t=[];for(const n of e){const e=this.getReorderId(n);void 0!==e&&t.push(e)}return t}getReorderId(e){var t;if(!e)return;const n=null===(t=null==e?void 0:e.dataset)||void 0===t?void 0:t.reorderId;if(void 0===n)return;const r=Number.parseInt(n,10);return Number.isNaN(r)?void 0:r}applyDropElevation(e){this.dropElevationTarget&&this.dropElevationTarget!==e&&this.dropElevationTarget.classList.remove(hv),this.clearDropElevationTimer(),e.classList.add(hv),this.dropElevationTarget=e}scheduleDropElevationRemoval(){if(!this.dropElevationTarget)return;const e=this.dropElevationTarget;this.clearDropElevationTimer(),this.dropElevationTimeout=globalThis.setTimeout((()=>{e.classList.remove(hv),this.dropElevationTarget===e&&(this.dropElevationTarget=void 0),this.dropElevationTimeout=void 0}),1e3)}clearDropElevationTimer(){void 0!==this.dropElevationTimeout&&(clearTimeout(this.dropElevationTimeout),this.dropElevationTimeout=void 0)}arraysEqual(e,t){if(e.length!==t.length)return!1;let n=0;for(const r of e){if(r!==t[n])return!1;n+=1}return!0}extractIndices(e=[]){return(null!=e?e:[]).map(((e,t)=>t))}getContextValue(){var e;const t=this.props.schema,n=null!==(e=this.props.formData)&&void 0!==e?e:[];return this.cachedContextValue&&this.cachedSchema===t&&this.cachedFormData===n||(this.cachedSchema=t,this.cachedFormData=n,this.cachedContextValue={arraySchema:t,formData:n}),this.cachedContextValue}}class pv extends xt.Component{constructor(e){super(e),this.props=e,this.state={isOpen:!1},this.handleOpen=()=>{this.setState({isOpen:!0})},this.handleAction=this.handleAction.bind(this),this.isDeepEmpty=this.isDeepEmpty.bind(this),this.state={isOpen:this.isDeepEmpty(e.data)}}componentDidMount(){const e=this.section;e.addEventListener("action",this.handleAction),e.addEventListener("open",this.handleOpen),this.setActions(e)}componentDidUpdate(){this.setActions(this.section)}componentWillUnmount(){const e=this.section;e.removeEventListener("action",this.handleAction),e.removeEventListener("open",this.handleOpen)}render(){const{data:e,schema:t,formSchema:n}=this.props;let r;this.state.isOpen&&(r=this.props.children);const o=this.props.allowItemReorder?xt.createElement("limel-drag-handle",{slot:"header",class:"drag-handle"}):null;return xt.createElement("limel-collapsible-section",{header:im(e,t,n)||"New item",class:"array-item limel-form-array-item--object",ref:e=>{this.section=e},"is-open":this.state.isOpen,"data-reorder-id":String(this.props.index),"data-reorderable":this.props.allowItemReorder?"true":"false"},o,r)}setActions(e){const{buttonsProps:t,allowItemRemoval:n}=this.props,r=[];n&&r.push({id:"remove",icon:"trash",disabled:!t.hasRemove,run:t.onRemoveItem}),e.actions=r}handleAction(e){e.stopPropagation(),e.detail.run(e)}isDeepEmpty(e){return"object"==typeof e&&(!!se(e)||Object.values(e).every(this.isDeepEmpty))}}class vv extends xt.Component{constructor(e){super(e),this.props=e,this.handleRemove=e=>{this.props.buttonsProps.onRemoveItem(e)},this.setRemoveButton=e=>{this.removeButton&&this.removeButton.removeEventListener("click",this.handleRemove),this.removeButton=e||void 0,this.removeButton&&this.removeButton.addEventListener("click",this.handleRemove)}}componentWillUnmount(){this.setRemoveButton(void 0)}render(){const{allowItemReorder:e}=this.props;return xt.createElement("div",{className:"array-item limel-form-array-item--simple","data-reorder-id":String(this.props.index),"data-reorderable":e?"true":"false"},this.props.children,this.renderRemoveButton(),this.renderDragHandle())}renderDragHandle(){if(this.props.allowItemReorder)return xt.createElement("limel-drag-handle",{class:"drag-handle"})}renderRemoveButton(){if(this.props.allowItemRemoval)return xt.createElement("limel-icon-button",{icon:"trash",disabled:!this.props.buttonsProps.hasRemove,ref:this.setRemoveButton})}}const yv=e=>{const t=Ot.useContext(sv),n=null==t?void 0:t.arraySchema,r=null==t?void 0:t.formData,o=e.registry.formContext,i=function(e,t){if(!1===((null==t?void 0:t.lime)||{}).allowItemReorder)return!1;const{buttonsProps:n}=e;return Boolean((null==n?void 0:n.hasMoveDown)||(null==n?void 0:n.hasMoveUp))}(e,n),a=function(e){return!1!==((null==e?void 0:e.lime)||{}).allowItemRemoval}(n);if(n&&Xh(n.items)){const t=Array.isArray(r)?r[e.index]:void 0;return xt.createElement(pv,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,data:t,schema:n,formSchema:null==o?void 0:o.schema,allowItemRemoval:a,allowItemReorder:i},e.children)}return xt.createElement(vv,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,allowItemRemoval:a,allowItemReorder:i},e.children)},bv="--number-of-columns";class gv extends xt.Component{constructor(e){super(e),this.props=e,this.handleResize=this.handleResize.bind(this),this.state={maxColumns:5},this.elementRef=xt.createRef()}componentDidMount(){this.observer=new ResizeObserver(this.handleResize),this.observer.observe(this.elementRef.current),window.addEventListener("resize",this.handleResize,{capture:!0,passive:!0})}componentWillUnmount(){this.observer.unobserve(this.elementRef.current),window.removeEventListener("resize",this.handleResize,{capture:!0})}handleResize(){requestAnimationFrame((()=>{const e=this.elementRef.current;if(!e)return;const t=e.getBoundingClientRect().width,n=Math.min(5,Math.max(1,Math.floor(t/240))),r=this.getColumnCount(n);e.style.getPropertyValue(bv)!==`${r}`&&e.style.setProperty(bv,`${r}`),n!==this.state.maxColumns&&this.setState({maxColumns:n})}))}render(){const e=["limel-form-layout--grid"],t=this.getColumnCount(this.state.maxColumns);return e.push(`layout-${t}-columns`),this.hasAutoFlowDense()&&e.push("auto-reorder-to-avoid-empty-cells"),xt.createElement("div",{className:e.join(" "),ref:this.elementRef},this.props.children)}getColumnCount(e){return Math.min(this.props.options.columns||5,e)}hasAutoFlowDense(){return!1!==this.props.options.dense}}const wv=Ot.createContext(!1);class $v extends xt.Component{constructor(e){super(e),this.props=e}render(){const e=["row"];return this.icon&&e.push("has-icon"),xt.createElement("div",{className:e.join(" ")},this.renderMainInformation(),this.renderDescription())}renderIcon(){if(this.icon)return xt.createElement("limel-icon",{name:this.icon})}renderMainInformation(){return xt.createElement("div",{className:"main-information"},this.renderIcon(),this.renderTitle(),this.renderChildren())}renderTitle(){var e;return xt.createElement("h1",{className:"title"},null===(e=this.schema)||void 0===e?void 0:e.title)}renderDescription(){var e;if(null===(e=this.schema)||void 0===e?void 0:e.description)return xt.createElement("limel-markdown",{class:"description",value:this.schema.description})}renderChildren(){return xt.createElement(wv.Provider,{value:!0},this.props.children)}get schema(){return this.props.children.props.schema}get icon(){var e,t,n;return null===(n=null===(t=null===(e=this.schema)||void 0===e?void 0:e.lime)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.icon}}class kv extends xt.Component{constructor(e){super(e),this.props=e,this.elementRef=xt.createRef()}render(){return xt.createElement("div",{className:["limel-form-row--layout"].join(" "),ref:this.elementRef},this.props.children.map(((e,t)=>xt.createElement($v,{key:t.toString()},e))))}}function Sv(e,t){var n;const r=null===(n=e.lime)||void 0===n?void 0:n.help;if(r)return xt.createElement("limel-help",Object.assign("string"==typeof r?{value:r}:Object.assign({},r),t))}const Ev=e=>{const t=Ot.useContext(sv),n=e.fieldPathId.$id;return t&&"root"!==n?xt.createElement(sv.Provider,{value:null},Ov(e.properties,e.schema)):"root"!==n&&(null===(r=e.schema.lime)||void 0===r?void 0:r.collapsible)?function(e){const t=!(!1!==e.schema.lime.collapsed),n=Sv(e.schema,{slot:"header"});return xt.createElement("limel-collapsible-section",{header:e.title,id:jv(e.registry.formContext.schema,e.fieldPathId),"is-open":t},n,om(e.description),Ov(e.properties,e.schema))}(e):function(e){return xt.createElement(xt.Fragment,{},function(e){const t=Sv(e.schema);return t?xt.createElement(xt.Fragment,{},rm(e.title),t):rm(e.title)}(e),om(e.description),Ov(e.properties,e.schema))}(e);var r};function jv(e,t){var n,r;return`${null!==(r=null===(n=e.$ref)||void 0===n?void 0:n.replace(/\//g,".").slice(2))&&void 0!==r?r:""}${t.path.map((e=>`.properties.${e}`)).join("")}`}function Ov(e,t){var n;return function(e,t){return{default:xv,grid:_v,row:Cv}[(null==t?void 0:t.type)||"default"](e,t)}(e,null===(n=t.lime)||void 0===n?void 0:n.layout)}function xv(e){return xt.createElement("div",{className:"limel-form-layout--default"},e.map((e=>e.content)))}function _v(e,t){return xt.createElement(gv,{options:t},e.map((e=>e.content)))}function Cv(e){return xt.createElement(kv,{},e.map((e=>e.content)))}function Dv(e){return null!=e&&""!==e&&(Array.isArray(e)?e.length>0:e instanceof Date||"object"!=typeof e||!se(e))}function Iv(e){return e.hasErrors&&(e.modified||e.hasValue||!e.required)}function Av(e){return e.required||e.minItems>0}function Fv(e,t,n){return(null==e?void 0:e.length)>0?Ne(i(e[0]).toLowerCase()):n||t}const Mv=Yh({customFormats:{integer:function(e){return Number.isInteger(Number(e))}},ajvOptionsOverrides:{allErrors:!0,multipleOfPrecision:2}}),Pv=(e,t,n,r)=>{if(!$e(t))return t;if(Tv(n))return t;const o=co(Mv,n,r,e),i=((e={},t={})=>mt(Object.keys(e),Object.keys(t)).filter((n=>!fe(t[n],e[n]))))(co(Mv,n,r,t).properties,o.properties);for(const e of i)delete t[e];return t};function Tv(e){return!!e.additionalProperties&&(!("properties"in e)||0===Object.values(e.properties).filter(b(Nv)).length)}function Nv(e){return!0===e[Ht]}const Rv=e=>{const t=null==e?void 0:e.type;return!!t&&(Array.isArray(t)?t.includes("null"):"null"===t)};class Uv extends xt.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=e=>{this.props.events.change(e.nativeEvent)},this.handleBlur=this.handleBlur.bind(this)}handleBlur(){this.setState({modified:!0})}getLabel(){if(this.context)return"";const{schema:e,label:t,hideLabel:n}=this.props.widgetProps;return n?"":t||e.title}isInvalid(){const{modified:e}=this.state,{rawErrors:t,required:n,schema:r}=this.props.widgetProps;return Iv({hasErrors:!!t,modified:e,hasValue:Dv(this.getValue()),required:Av({required:n,minItems:r.minItems})})}getHelperText(){const{rawErrors:e,schema:t}=this.props.widgetProps;return this.isInvalid()?Fv(e||[],t.description):this.context?"":t.description}getValue(){const{value:e}=this.props,{value:t}=this.props.widgetProps;return e||t}render(){const{name:e,extraProps:t}=this.props,n=this.isDisabled(),r=this.getValue(),o=this.isReadOnly();return xt.createElement(xt.Fragment,{},xt.createElement(e,Object.assign(Object.assign({value:r,label:this.getLabel(),disabled:n,readonly:o,required:Av({required:this.props.widgetProps.required,minItems:this.props.widgetProps.schema.minItems}),invalid:this.isInvalid(),"helper-text":this.getHelperText()},t),{onChange:this.handleChange,onBlur:this.handleBlur})),Sv(this.props.widgetProps.schema))}isDisabled(){var e,t;const n=this.props.widgetProps,r=n.schema.lime;return n.disabled||(null==r?void 0:r.disabled)||(null===(t=null===(e=null==r?void 0:r.component)||void 0===e?void 0:e.props)||void 0===t?void 0:t.disabled)}isReadOnly(){return this.props.widgetProps.readonly}}Uv.contextType=wv;class qv extends xt.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,t;const n=this.props,{type:r="datetime"}=n,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["type"]);return xt.createElement(Uv,{name:"limel-date-picker",value:this.getValue(),events:{change:this.handleChange},widgetProps:o,extraProps:Object.assign({type:r},null===(t=null===(e=o.schema.lime)||void 0===e?void 0:e.component)||void 0===t?void 0:t.props)})}getValue(){return"string"==typeof this.props.value?new Date(this.props.value):this.props.value}handleChange(e){const t=this.props;if(e.stopPropagation(),!t.onChange)return;if(!e.detail)return void t.onChange(null);const n=de(e.detail).format({"date-time":"YYYY-MM-DDTHH:mm:ssZ",date:"YYYY-MM-DD",time:"HH:mm:ss"}[t.schema.format]);t.onChange(n)}}const zv=e=>{var{value:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value"]);return"string"==typeof t&&Lv.test(t)&&(t=new Date("2000-01-01T"+t)),xt.createElement(qv,Object.assign({type:"time",value:t},n))},Lv=/^\d\d:\d\d/,{fields:Bv}=rc(),Vv=Bv.SchemaField,Wv=e=>{if(!customElements.get(e))throw new Error(`Custom form element '${e}' is not defined!`)};class Hv extends xt.Component{constructor(e){super(e),this.state={modified:!1},this.handleChange=this.handleChange.bind(this),this.handleCustomComponentChange=this.handleCustomComponentChange.bind(this)}isInvalid(){const{modified:e}=this.state,{errorSchema:t,required:n,schema:r}=this.props;return Iv({hasErrors:!se(t),modified:e,hasValue:Dv(this.props.formData),required:Av({required:n,minItems:r.minItems})})}getHelperText(){var e,t,n;const{errorSchema:r,schema:o}=this.props,i=!se(r)&&"__errors"in r,a=this.isInvalid()&&i?r.__errors:[],l=null===(n=null===(t=null===(e=o.lime)||void 0===e?void 0:e.component)||void 0===t?void 0:t.props)||void 0===n?void 0:n.helperText;return Fv(a,o.description,l)}handleCustomComponentChange(e){const{schema:t}=this.props;e.stopPropagation();let n=e.nativeEvent.detail;((e,t)=>null===e&&!Rv(t))(n,t)&&(n=void 0),this.handleChange(n,this.props.fieldPathId.path)}handleChange(e,t){const{formData:n,schema:r}=this.props,{rootSchema:o}=this.props.registry;if(this.setState({modified:!0}),this.isDeepLeafChange(t))return void this.props.onChange(e,t);const i=Pv(n,e,r,o);this.props.onChange(i,t)}isDeepLeafChange(e){const{fieldPathId:t}=this.props;return!!t&&e.length>t.path.length}buildCustomComponentProps(){const{disabled:e,readonly:t,name:n,registry:r,schema:o,errorSchema:i,fieldPathId:a}=this.props,l=o,s=function(e,t){const n=e.propsFactory;if("function"!=typeof n)return{};return n(t)||{}}(r.formContext,l);return Object.assign(Object.assign({},s),{value:this.props.formData,required:Av({required:this.props.required,minItems:l.minItems}),readonly:t||l.readOnly,disabled:e,invalid:this.isInvalid(),label:this.context?"":l.title,helperText:this.context&&!this.isInvalid()?"":this.getHelperText(),ref:e=>{var t;return e.formInfo={schema:l,rootSchema:r.formContext.schema,errorSchema:i,rootValue:r.formContext.rootValue,name:n,schemaPath:null===(t=null==a?void 0:a.path)||void 0===t?void 0:t.map(String)},()=>{}}})}renderCustomComponent(e){const t=e.schema,{name:n,props:r}=(e=>{var t,n,r,o;return{name:null===(n=null===(t=e.lime)||void 0===t?void 0:t.component)||void 0===n?void 0:n.name,props:(null===(o=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===o?void 0:o.props)||{}}})(t);Wv(n);const o=xt.createElement(n,Object.assign(Object.assign(Object.assign({},r),this.buildCustomComponentProps()),{onChange:this.handleCustomComponentChange}));return xt.createElement(nm,Object.assign(Object.assign({},this.props),{classNames:"rjsf-field rjsf-field-custom"}),o,Sv(t))}render(){var e;if(null===(e=this.props.schema.lime)||void 0===e?void 0:e.hidden)return null;if((()=>{var e,t;const n=null===(t=null===(e=this.props.schema.lime)||void 0===e?void 0:e.component)||void 0===t?void 0:t.name;if(!n)return!1;try{Wv(n)}catch(e){return console.warn(`Custom component ${n} not defined`),!1}return!0})())return this.renderCustomComponent(this.props);const t=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return"time"===this.props.schema.format&&(t.uiSchema=Object.assign({"ui:widget":zv},t.uiSchema)),xt.createElement(Vv,t)}}Hv.contextType=wv;const{fields:Gv}=rc(),Kv=Gv.ArrayField;class Jv extends xt.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.handleReorder=this.handleReorder.bind(this),this.setWrapper=this.setWrapper.bind(this)}componentWillUnmount(){this.setWrapper(null)}setWrapper(e){this.wrapper&&this.wrapper.removeEventListener(uv,this.handleReorder),this.wrapper=null!=e?e:void 0,this.wrapper&&this.wrapper.addEventListener(uv,this.handleReorder)}handleReorder(e){e.stopPropagation();const{fromIndex:t,toIndex:n}=e.detail,{formData:r,fieldPathId:o}=this.props;if(!Array.isArray(r)||!o)return;const i=[...r],[a]=i.splice(t,1);i.splice(n,0,a),this.props.onChange(i,o.path)}handleChange(e,t){const{formData:n,schema:r}=this.props,{rootSchema:o}=this.props.registry;if(this.isDeepLeafChange(t))return void this.handleDeepLeafChange(e,t);if(!n)return void this.props.onChange(e,t);if(n.length!==e.length)return void this.props.onChange(e,t);const i=[];for(const[t,r]of n.entries())e[t]!==r&&i.push(t);if(1===i.length){const t=i[0];e[t]=Pv(n[t],e[t],r.items,o)}this.props.onChange(e,t)}isDeepLeafChange(e){const{formData:t,fieldPathId:n}=this.props;return Array.isArray(t)&&!!n&&e.length>n.path.length}handleDeepLeafChange(e,t){const{formData:n,fieldPathId:r}=this.props,[o,...i]=t.slice(r.path.length),a=Number(o),l=[...n];l[a]=this.buildResetItem(e,a,i),this.props.onChange(l,r.path)}buildResetItem(e,t,n){const{formData:r,schema:o}=this.props,{rootSchema:i}=this.props.registry,a=Array.isArray(o.items)?o.items[t]:o.items,l=function(e,t){let n=e;for(const e of t){if(!n)return;n=Yv(n,e)}return n}(a,n),s=null!==e||Rv(l)?e:void 0,u=r[t],c=function(e,t,n){if(0===t.length)return n;const r=function(e,t){return Array.isArray(e)||$e(e)?T(e):"number"==typeof t?[]:{}}(e,t[0]);return lt(r,t,n),r}(u,n,s);return Pv(u,c,a,i)}render(){const e=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return xt.createElement("div",{ref:this.setWrapper},xt.createElement(Kv,e))}}function Yv(e,t){var n;if("number"==typeof t){const n=e.items;return Array.isArray(n)?n[t]:n}return null===(n=e.properties)||void 0===n?void 0:n[t]}class Xv extends xt.Component{constructor(e){super(e),this.state={validationError:"",modified:!1},this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;let t="{}";try{t=JSON.stringify(e.formData,null," ")}catch(e){}const{validationError:n,modified:r}=this.state,{errorSchema:o,formData:i,required:a}=e,l=!se(o)&&(r||null!=i||!a),s=n.length>0||l;let u;return n?u=n:l&&(u=Zv(o)),xt.createElement("limel-code-editor",{value:t,language:"json",lineNumbers:!0,fold:!0,lint:!0,onChange:this.handleChange,invalid:s,helperText:u})}componentDidUpdate(e){e.formData===this.props.formData||""===this.state.validationError&&!this.state.modified||this.setState({validationError:"",modified:!1})}handleChange(e){const t=this.props;if(e.stopPropagation(),!t.onChange)return;let n;try{n=JSON.parse(e.nativeEvent.detail)}catch(e){const t=e instanceof SyntaxError?`Invalid JSON: ${e.message}`:"Should be a valid JSON document";return void this.setState({validationError:t,modified:!0})}t.onChange(n,t.fieldPathId.path),this.setState({validationError:"",modified:!0})}}function Zv(e){if(e&&"object"==typeof e){if("__errors"in e&&Array.isArray(e.__errors)){const t=e.__errors;if(t.length>0)return t[0]}for(const t of Object.keys(e)){if("__errors"===t)continue;const n=e[t];if(n&&"object"==typeof n){const e=Zv(n);if(e)return`${t}: ${e}`}}}}const{fields:Qv}=rc(),ey=Qv.ObjectField;class ty extends xt.Component{render(){return Tv(this.props.schema)?xt.createElement(xt.Fragment,{},rm(this.props.schema.title),om(this.props.schema.description),xt.createElement(Xv,this.props)):xt.createElement(ey,this.props)}}class ny extends xt.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,t=e.schema;let n,r;const o=function(e){var t,n;let r={};return(null===(n=null===(t=e.lime)||void 0===t?void 0:t.component)||void 0===n?void 0:n.props)&&(r=Object.assign(Object.assign({},r),e.lime.component.props)),r}(e.schema);return function(e){return e.multipleOf<1&&0===e.minimum&&1===e.maximum}(t)&&(n=100,r="%"),xt.createElement(Uv,{name:"limel-slider",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({valuemin:t.minimum,valuemax:t.maximum,step:t.multipleOf,factor:n,unit:r},o)})}handleChange(e){const t=this.props;e.stopPropagation(),t.onChange&&t.onChange(e.detail)}}class ry extends xt.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;if((Qh(t=e.schema)||em(t))&&"minimum"in t&&"maximum"in t&&"multipleOf"in t)return xt.createElement(ny,e);var t;const n=oy(e.schema),r=function(e){return Qh(e)&&e.multipleOf?+e.multipleOf||"any":em(e)?Math.floor(+e.multipleOf)||1:"any"}(e.schema),o=function(e){var t,n;let r={};return e.minimum&&(r.min=e.minimum),e.maximum&&(r.max=e.maximum),e.maxLength&&(r.maxlength=e.maxLength),e.minLength&&(r.minlength=e.minLength),(null===(n=null===(t=e.lime)||void 0===t?void 0:t.component)||void 0===n?void 0:n.props)&&(r=Object.assign(Object.assign({},r),e.lime.component.props)),r}(e.schema);return xt.createElement(Uv,{name:"limel-input-field",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({step:r,type:n},o)})}handleChange(e){e.stopPropagation();const t=this.props,n=oy(t.schema);if(!t.onChange)return;let r;r=e.detail||"number"==typeof e.detail?e.detail:"number"===n||t.required?null:"",t.onChange(r)}}function oy(e){return Qh(e)||em(e)?"number":"email"===e.format?"email":"text"}function iy(e){var t;return{text:e.label,value:e.value,disabled:!!(null===(t=e.schema)||void 0===t?void 0:t.readOnly)}}const ay={CheckboxWidget:class extends xt.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,t=null!==(o=null===(r=null===(n=e.schema.lime)||void 0===n?void 0:n.component)||void 0===r?void 0:r.props)&&void 0!==o?o:{};var n,r,o;return xt.createElement(Uv,{name:"limel-checkbox",value:e.value,widgetProps:e,extraProps:Object.assign({checked:!!e.value},t),events:{change:this.handleChange}})}handleChange(e){const t=this.props;e.stopPropagation(),t.onChange&&t.onChange(e.detail)}},DateTimeWidget:qv,DateWidget:e=>{var{value:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value"]);return"string"==typeof t&&/-\d\d$/.test(t)&&(t+="T00:00"),xt.createElement(qv,Object.assign({type:"date",value:t},n))},EmailWidget:ry,TextWidget:ry,SelectWidget:class extends xt.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,t;const n=this.props,r=n.options.enumOptions.map(iy);let o;o=n.multiple?function(e,t){return t.filter((t=>e.includes(t.value)))}(n.value,r):function(e,t){return t.find((t=>t.value===e))}(n.value,r);const i=(null===(t=null===(e=n.schema.lime)||void 0===e?void 0:e.component)||void 0===t?void 0:t.props)||{};return xt.createElement(Uv,{name:"limel-select",value:o,events:{change:this.handleChange},widgetProps:n,extraProps:Object.assign({multiple:n.multiple,options:r},i)})}handleChange(e){const t=this.props;if(e.stopPropagation(),t.onChange)if(he(e.detail)){const n=e.detail.map((e=>e.value));t.onChange(n)}else t.onChange(e.detail.value)}},RangeWidget:ny};const ly=class{constructor(n){e(this,n),this.change=t(this,"change"),this.validate=t(this,"validate"),this.schema={},this.disabled=!1,this.isValid=!0,this.initialized=!1,this.handleChange=this.handleChange.bind(this),this.getCustomErrorMessages=this.getCustomErrorMessages.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){this.initialized||this.host.shadowRoot.querySelector(".root")&&(this.initialized=!0,this.reactRender(),this.validateFormData())}componentDidUpdate(){this.reactRender(),this.validateFormData()}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=void 0),this.initialized=!1}render(){return n("div",{key:"56c9180ab3e5b4ee3282db2c38b5eaf522e8c60f",class:"root"})}reactRender(){if(!this.root){const e=this.host.shadowRoot.querySelector(".root");this.root=qt.createRoot(e)}this.root.render(xt.createElement(ic,{schema:this.prepareSchema(this.schema),formData:this.value,onChange:this.handleChange,widgets:ay,validator:Mv,liveValidate:"onChange",showErrorList:!1,extraErrors:this.getExtraErrors(this.errors),templates:{FieldTemplate:nm,ArrayFieldTemplate:mv,ArrayFieldItemTemplate:yv,ObjectFieldTemplate:Ev},disabled:this.disabled,transformErrors:this.getCustomErrorMessages,formContext:{schema:this.schema,rootValue:this.value,propsFactory:this.propsFactory},fields:{SchemaField:Hv,ArrayField:Jv,ObjectField:ty}},[]))}handleChange(e){this.change.emit(e.formData)}validateFormData(){var e;const{errors:t}=Mv.validateFormData(null!==(e=this.value)&&void 0!==e?e:{},this.prepareSchema(this.schema));this.emitValidationStatus(t)}prepareSchema(e){const{$id:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["$id"]),r=JSON.stringify(n);let o=5381;for(let e=0;e<r.length;e++)o=(o<<5)+o+r.codePointAt(e)&4294967295;const i=(o>>>0).toString(36);return Object.assign(Object.assign({},e),{$id:t?`${t}-${i}`:i})}hasExtraErrors(){return!!this.errors&&Object.keys(this.errors).length>0}emitValidationStatus(e){const t=!(e&&0!==e.length||this.hasExtraErrors()),n=this.mapErrors(null!=e?e:[]);this.isValid===t&&t||this.validate.emit({valid:t,errors:n}),this.isValid=t}mapErrors(e){return e.map((e=>({name:e.name,property:e.property,message:e.message,schemaPath:e.schemaPath,params:e.params})))}getExtraErrors(e){var t,n,r;if(e)return t=e,r={},n=s(n=e=>Array.isArray(e)?{__errors:e}:this.getExtraErrors(e)),U(t,(function(e,t,o){X(r,t,n(e,t,o))})),r}getCustomErrorMessages(e){if(!this.transformErrors)return e;const t=this.mapErrors(e);return this.transformErrors.call({},t).map((t=>{const n=e.find((e=>t.property===e.property));return Object.assign(Object.assign({},n),{message:t.message})}))}get host(){return r(this)}};ly.style='@charset "UTF-8";.limel-form-row--layout{--limel-form-row-border-radius:0.375rem;--limel-form-row-icon-size:1.75rem;--limel-form-row-main-information-gap:0.5rem;display:flex;flex-direction:column}.limel-form-row--layout .row{display:flex;gap:0.5rem;flex-direction:column;padding:0.5rem 1rem}.limel-form-row--layout .row:nth-child(odd){background-color:var(--form-background-color-of-odd-rows, rgb(var(--contrast-200)))}.limel-form-row--layout .row:nth-child(even){background-color:var(--form-background-color-of-even-rows, transparent)}.limel-form-row--layout .row:first-child{border-radius:var(--limel-form-row-border-radius) var(--limel-form-row-border-radius) 0 0}.limel-form-row--layout .row:last-child{border-radius:0 0 var(--limel-form-row-border-radius) var(--limel-form-row-border-radius)}.limel-form-row--layout .main-information{position:relative;display:flex;flex-direction:row;align-items:center;gap:var(--limel-form-row-main-information-gap);min-width:0}.limel-form-row--layout .main-information{position:relative}.limel-form-row--layout .main-information>.rjsf-field{position:unset}.limel-form-row--layout .main-information>.rjsf-field limel-help{top:0}.limel-form-row--layout limel-icon{color:rgb(var(--contrast-1200));width:var(--limel-form-row-icon-size);flex-shrink:0;min-width:0}.limel-form-row--layout .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:normal;flex-grow:1;color:var(--limel-theme-on-surface-color);font-size:0.875rem}.limel-form-row--layout .description{margin:0;color:var(--limel-theme-text-secondary-on-background-color);font-size:var(--limel-theme-default-small-font-size);line-height:1.5}.limel-form-row--layout .has-icon .description{padding-left:calc(var(--limel-form-row-icon-size) + var(--limel-form-row-main-information-gap))}.limel-form-row--layout .rjsf-field{flex-shrink:0;display:flex;align-content:center}.limel-form-row--layout .rjsf-field limel-slider{min-width:8rem;display:block}*,*::after,*::before{box-sizing:border-box}.rjsf-field{min-width:0}.limel-form-array-item--simple{display:flex;align-items:center;padding:0.25rem}.limel-form-array-item--simple>*:first-child{flex:1;min-width:0}.array-items{isolation:isolate;display:flex;flex-direction:column;row-gap:var(--form-row-gap, 0.5rem);margin-top:1rem}.array-items.has-an-item-which-is-being-dragged limel-collapsible-section{--limel-cs-grid-template-rows:0fr;--limel-cs-opacity-transition-speed:0.2s;--limel-cs-grid-template-rows-transition-speed:0.2s;--limel-cs-open-header-bottom-border-radius:0.75rem}.array-item:has(limel-drag-handle:hover),.array-item:has(limel-drag-handle:focus-within),.array-item.is-elevated,.array-item.sortable-chosen{will-change:transform, box-shadow, border-radius, background-color}.array-item.sortable-ghost{border-radius:0.5rem;box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}.array-item.sortable-chosen{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color)}.array-item.is-elevated[draggable=false]{animation:sit-here 0.8s forwards}@keyframes sit-here{0%{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}100%{box-shadow:none}}limel-drag-handle{order:10}limel-collapsible-section.is-being-dragged{border-radius:0.75rem !important}.limel-form-layout--default{display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--min-height-of-one-row:2.5rem;display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.limel-form-layout--grid limel-checkbox,.limel-form-layout--grid limel-switch{min-height:var(--min-height-of-one-row)}.limel-form-layout--grid limel-checkbox{display:block}.limel-form-layout--grid limel-switch{margin-left:0.5rem}.form-error{color:var(--limel-theme-error-color);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}h1{position:relative;margin-top:0;margin-bottom:0;word-break:break-word;hyphens:auto;-webkit-hyphens:auto;text-wrap:balance;font-size:var(--limel-form-h1-font-size);line-height:calc(var(--limel-form-h1-font-size) * 1.42857);letter-spacing:-0.01rem;font-weight:500}limel-markdown{display:block;margin-bottom:0.5rem}.rjsf-field{position:relative}.rjsf-field limel-help{position:absolute;top:calc(var(--form-row-gap, 1rem) * -0.5);left:calc(var(--form-column-gap, 1rem) * -0.5)}.rjsf-field h1{color:rgb(var(--contrast-1400), 0.8)}.rjsf-field h1{--limel-form-h1-font-size:1.476rem;font-weight:800}.rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.383rem;font-weight:700}.rjsf-field .rjsf-field h1:before{content:"";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--lime-primary-color, var(--limel-theme-primary-color));width:0.125rem;height:1.5rem;border-radius:0.125rem;opacity:0.6}.rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.296rem;font-weight:600}.rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.215rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.138rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.067rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}';export{ly as limel_form}