recce-nightly 1.10.0.20250629__py3-none-any.whl → 1.25.0.20251112a20664__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. recce/VERSION +1 -1
  2. recce/__init__.py +5 -0
  3. recce/adapter/dbt_adapter/__init__.py +116 -74
  4. recce/artifact.py +76 -3
  5. recce/cli.py +665 -69
  6. recce/config.py +2 -2
  7. recce/connect_to_cloud.py +1 -1
  8. recce/core.py +3 -3
  9. recce/data/404.html +1 -22
  10. recce/data/__next.__PAGE__.txt +10 -0
  11. recce/data/__next._full.txt +23 -0
  12. recce/data/__next._index.txt +8 -0
  13. recce/data/__next._tree.txt +12 -0
  14. recce/data/_next/static/JwV_pqetN5WamZZ7aGdfH/_buildManifest.js +11 -0
  15. recce/data/_next/static/JwV_pqetN5WamZZ7aGdfH/_clientMiddlewareManifest.json +1 -0
  16. recce/data/_next/static/chunks/0a2b2dd4b57049c2.js +1 -0
  17. recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
  18. recce/data/_next/static/chunks/24fd885c7180a612.js +1 -0
  19. recce/data/_next/static/chunks/27e66b2eab4adc32.js +19 -0
  20. recce/data/_next/static/chunks/67b1c6a62f19d429.js +110 -0
  21. recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
  22. recce/data/_next/static/chunks/917619ab62a32388.js +1 -0
  23. recce/data/_next/static/chunks/93ba5a62932b704f.js +4 -0
  24. recce/data/_next/static/chunks/a43a2a5e06d5a92b.js +1 -0
  25. recce/data/_next/static/chunks/a6c78b24bd8b84fc.js +1 -0
  26. recce/data/_next/static/chunks/ba2d87265a68599d.css +2 -0
  27. recce/data/_next/static/chunks/c117fd1c1382dd83.js +11 -0
  28. recce/data/_next/static/chunks/c9425ca46eebdde9.js +1 -0
  29. recce/data/_next/static/chunks/cc8a9eadba012be0.css +6 -0
  30. recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
  31. recce/data/_next/static/chunks/e392ad92847c3e17.js +1 -0
  32. recce/data/_next/static/chunks/e4ce95efe88dae79.js +11 -0
  33. recce/data/_next/static/chunks/e69c777814fea6ed.js +2 -0
  34. recce/data/_next/static/chunks/turbopack-21cfd73037ff57ab.js +3 -0
  35. recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
  36. recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
  37. recce/data/_next/static/media/{montserrat-cyrillic-800-normal.bd5c9f50.woff → montserrat-cyrillic-800-normal.f9d58125.woff} +0 -0
  38. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
  39. recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
  40. recce/data/_next/static/media/{montserrat-latin-800-normal.fc315020.woff → montserrat-latin-800-normal.d5761935.woff} +0 -0
  41. recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
  42. recce/data/_next/static/media/{montserrat-latin-ext-800-normal.2e5381b2.woff → montserrat-latin-ext-800-normal.b671449b.woff} +0 -0
  43. recce/data/_next/static/media/{montserrat-vietnamese-800-normal.20c545e6.woff → montserrat-vietnamese-800-normal.9f7b8541.woff} +0 -0
  44. recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
  45. recce/data/_not-found/__next._full.txt +17 -0
  46. recce/data/_not-found/__next._index.txt +8 -0
  47. recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
  48. recce/data/_not-found/__next._not-found.txt +4 -0
  49. recce/data/_not-found/__next._tree.txt +10 -0
  50. recce/data/_not-found.html +1 -0
  51. recce/data/_not-found.txt +17 -0
  52. recce/data/auth_callback.html +1 -1
  53. recce/data/index.html +1 -27
  54. recce/data/index.txt +23 -8
  55. recce/event/__init__.py +9 -8
  56. recce/event/collector.py +6 -2
  57. recce/event/track.py +10 -0
  58. recce/github.py +1 -1
  59. recce/mcp_server.py +632 -0
  60. recce/models/types.py +23 -2
  61. recce/pull_request.py +1 -1
  62. recce/run.py +23 -16
  63. recce/server.py +165 -11
  64. recce/state/__init__.py +31 -0
  65. recce/state/cloud.py +632 -0
  66. recce/state/const.py +26 -0
  67. recce/state/local.py +56 -0
  68. recce/state/state.py +119 -0
  69. recce/state/state_loader.py +174 -0
  70. recce/summary.py +2 -1
  71. recce/tasks/dataframe.py +59 -2
  72. recce/tasks/rowcount.py +4 -1
  73. recce/tasks/schema.py +4 -1
  74. recce/tasks/valuediff.py +1 -1
  75. recce/util/api_token.py +11 -2
  76. recce/util/breaking.py +9 -0
  77. recce/util/cll.py +1 -2
  78. recce/util/io.py +2 -2
  79. recce/util/lineage.py +14 -18
  80. recce/util/perf_tracking.py +85 -0
  81. recce/util/recce_cloud.py +229 -5
  82. recce/yaml/__init__.py +2 -2
  83. recce_cloud/__init__.py +15 -0
  84. recce_cloud/api/__init__.py +17 -0
  85. recce_cloud/api/base.py +104 -0
  86. recce_cloud/api/client.py +150 -0
  87. recce_cloud/api/exceptions.py +26 -0
  88. recce_cloud/api/factory.py +63 -0
  89. recce_cloud/api/github.py +72 -0
  90. recce_cloud/api/gitlab.py +78 -0
  91. recce_cloud/artifact.py +57 -0
  92. recce_cloud/ci_providers/__init__.py +9 -0
  93. recce_cloud/ci_providers/base.py +82 -0
  94. recce_cloud/ci_providers/detector.py +147 -0
  95. recce_cloud/ci_providers/github_actions.py +136 -0
  96. recce_cloud/ci_providers/gitlab_ci.py +130 -0
  97. recce_cloud/cli.py +303 -0
  98. recce_cloud/upload.py +213 -0
  99. {recce_nightly-1.10.0.20250629.dist-info → recce_nightly-1.25.0.20251112a20664.dist-info}/METADATA +31 -27
  100. recce_nightly-1.25.0.20251112a20664.dist-info/RECORD +178 -0
  101. {recce_nightly-1.10.0.20250629.dist-info → recce_nightly-1.25.0.20251112a20664.dist-info}/top_level.txt +1 -0
  102. tests/adapter/dbt_adapter/test_dbt_cll.py +68 -17
  103. tests/recce_cloud/__init__.py +0 -0
  104. tests/recce_cloud/test_ci_providers.py +351 -0
  105. tests/recce_cloud/test_cli.py +372 -0
  106. tests/recce_cloud/test_client.py +273 -0
  107. tests/recce_cloud/test_platform_clients.py +279 -0
  108. tests/test_cli.py +106 -3
  109. tests/test_cli_mcp_optional.py +45 -0
  110. tests/test_cloud_listing_cli.py +324 -0
  111. tests/test_core.py +147 -0
  112. tests/test_mcp_server.py +332 -0
  113. tests/test_server.py +6 -6
  114. tests/test_summary.py +14 -6
  115. recce/data/_next/static/Mrb9CZ3toH6Q8xrzNzCrg/_buildManifest.js +0 -1
  116. recce/data/_next/static/chunks/181-acc61ddada3bc0ca.js +0 -43
  117. recce/data/_next/static/chunks/1bff33f1-1ef85cf5e658a751.js +0 -1
  118. recce/data/_next/static/chunks/217-879a84d70f7a907c.js +0 -2
  119. recce/data/_next/static/chunks/29e3cc0d-60045b2e47aa3916.js +0 -1
  120. recce/data/_next/static/chunks/36e1c10d-8e7be4a6c1f6ab2d.js +0 -1
  121. recce/data/_next/static/chunks/3998a672-03adacad07b346ac.js +0 -1
  122. recce/data/_next/static/chunks/3a92ee20-1081c360214f9602.js +0 -1
  123. recce/data/_next/static/chunks/41-f30276c289169376.js +0 -9
  124. recce/data/_next/static/chunks/450c323b-fd94e7ffaa4a5efa.js +0 -1
  125. recce/data/_next/static/chunks/47d8844f-929aed9b1c73a905.js +0 -1
  126. recce/data/_next/static/chunks/608-3b079b544e5d5f5e.js +0 -15
  127. recce/data/_next/static/chunks/6dc81886-adbfa45836061d79.js +0 -1
  128. recce/data/_next/static/chunks/7a8a3e83-edf6dc64b5d5f0a5.js +0 -1
  129. recce/data/_next/static/chunks/7f27ae6c-d5f0438edd5c2a5b.js +0 -1
  130. recce/data/_next/static/chunks/86730205-cfb14e3f051bab35.js +0 -1
  131. recce/data/_next/static/chunks/8d700b6a.8bb140898499c512.js +0 -1
  132. recce/data/_next/static/chunks/92-68460b15fe448f33.js +0 -1
  133. recce/data/_next/static/chunks/9746af58-a42b7d169cacadf0.js +0 -1
  134. recce/data/_next/static/chunks/a30376cd-de84559016d7e133.js +0 -1
  135. recce/data/_next/static/chunks/app/_not-found/page-01ed58b7f971d311.js +0 -1
  136. recce/data/_next/static/chunks/app/layout-292f035bb0d2a98e.js +0 -1
  137. recce/data/_next/static/chunks/app/page-598f8acc82179d01.js +0 -1
  138. recce/data/_next/static/chunks/b63b1b3f-4282bdcf459e075c.js +0 -1
  139. recce/data/_next/static/chunks/bbda5537-9ec25eb1dd62348a.js +0 -1
  140. recce/data/_next/static/chunks/c132bf7d-08cb668a789d6afd.js +0 -1
  141. recce/data/_next/static/chunks/ce84277d-2e5d1d46910cf052.js +0 -1
  142. recce/data/_next/static/chunks/febdd86e-c6b525341634b860.js +0 -54
  143. recce/data/_next/static/chunks/fee69bc6-2dbccaf9b90474e6.js +0 -1
  144. recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
  145. recce/data/_next/static/chunks/main-app-39061b0166c47f55.js +0 -1
  146. recce/data/_next/static/chunks/main-b5b3ae20a1405261.js +0 -1
  147. recce/data/_next/static/chunks/pages/_app-437c455677d62394.js +0 -1
  148. recce/data/_next/static/chunks/pages/_error-e7650df18ca04bde.js +0 -1
  149. recce/data/_next/static/chunks/webpack-7b49d5ba7e3a434d.js +0 -1
  150. recce/data/_next/static/css/17a96168e3a9db13.css +0 -1
  151. recce/data/_next/static/css/35c6679a098e1e34.css +0 -1
  152. recce/data/_next/static/css/951e2e0eea2d4a5b.css +0 -14
  153. recce/data/_next/static/css/a2b12b4ba4227f0a.css +0 -3
  154. recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
  155. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
  156. recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
  157. recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
  158. recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
  159. recce/state.py +0 -786
  160. recce_nightly-1.10.0.20250629.dist-info/RECORD +0 -154
  161. tests/test_state.py +0 -134
  162. /recce/data/_next/static/{Mrb9CZ3toH6Q8xrzNzCrg → JwV_pqetN5WamZZ7aGdfH}/_ssgManifest.js +0 -0
  163. /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
  164. /recce/data/_next/static/media/{montserrat-cyrillic-ext-800-normal.e6e0d8d0.woff → montserrat-cyrillic-ext-800-normal.a4fa76b5.woff} +0 -0
  165. /recce/data/_next/static/media/{reload-image.79aabb7d.svg → reload-image.7aa931c7.svg} +0 -0
  166. {recce_nightly-1.10.0.20250629.dist-info → recce_nightly-1.25.0.20251112a20664.dist-info}/WHEEL +0 -0
  167. {recce_nightly-1.10.0.20250629.dist-info → recce_nightly-1.25.0.20251112a20664.dist-info}/entry_points.txt +0 -0
  168. {recce_nightly-1.10.0.20250629.dist-info → recce_nightly-1.25.0.20251112a20664.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,110 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35305,(e,A,t)=>{"use strict";A.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},61227,(e,A,t)=>{"use strict";var n=e.r(35305);function r(){}function i(){}i.resetWarningCache=r,A.exports=function(){function e(e,A,t,r,i,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function A(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:A,element:e,elementType:e,instanceOf:A,node:e,objectOf:A,oneOf:A,oneOfType:A,shape:A,exact:A,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},4153,(e,A,t)=>{A.exports=e.r(61227)()},70795,(e,A,t)=>{var n=Object.prototype;A.exports=function(e){var A=e&&e.constructor;return e===("function"==typeof A&&A.prototype||n)}},91915,(e,A,t)=>{A.exports=function(e,A){return function(t){return e(A(t))}}},42918,(e,A,t)=>{A.exports=e.r(91915)(Object.keys,Object)},3114,(e,A,t)=>{var n=e.r(70795),r=e.r(42918),i=Object.prototype.hasOwnProperty;A.exports=function(e){if(!n(e))return r(e);var A=[];for(var t in Object(e))i.call(e,t)&&"constructor"!=t&&A.push(t);return A}},91606,(e,A,t)=>{A.exports=function(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)}},63883,(e,A,t)=>{var n=e.r(23748),r=e.r(91606);A.exports=function(e){if(!r(e))return!1;var A=n(e);return"[object Function]"==A||"[object GeneratorFunction]"==A||"[object AsyncFunction]"==A||"[object Proxy]"==A}},56921,(e,A,t)=>{A.exports=e.r(18408)["__core-js_shared__"]},63803,(e,A,t)=>{var n,r=e.r(56921),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";A.exports=function(e){return!!i&&i in e}},95331,(e,A,t)=>{var n=Function.prototype.toString;A.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},32150,(e,A,t)=>{var n=e.r(63883),r=e.r(63803),i=e.r(91606),o=e.r(95331),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");A.exports=function(e){return!(!i(e)||r(e))&&(n(e)?u:s).test(o(e))}},61686,(e,A,t)=>{A.exports=function(e,A){return null==e?void 0:e[A]}},22280,(e,A,t)=>{var n=e.r(32150),r=e.r(61686);A.exports=function(e,A){var t=r(e,A);return n(t)?t:void 0}},31751,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"DataView")},74136,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Map")},31337,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Promise")},11524,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Set")},15942,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"WeakMap")},26568,(e,A,t)=>{var n=e.r(31751),r=e.r(74136),i=e.r(31337),o=e.r(11524),s=e.r(15942),a=e.r(23748),l=e.r(95331),c="[object Map]",u="[object Promise]",d="[object Set]",h="[object WeakMap]",f="[object DataView]",g=l(n),p=l(r),B=l(i),m=l(o),w=l(s),y=a;(n&&y(new n(new ArrayBuffer(1)))!=f||r&&y(new r)!=c||i&&y(i.resolve())!=u||o&&y(new o)!=d||s&&y(new s)!=h)&&(y=function(e){var A=a(e),t="[object Object]"==A?e.constructor:void 0,n=t?l(t):"";if(n)switch(n){case g:return f;case p:return c;case B:return u;case m:return d;case w:return h}return A}),A.exports=y},48313,(e,A,t)=>{var n=e.r(23748),r=e.r(19674);A.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},17288,(e,A,t)=>{var n=e.r(48313),r=e.r(19674),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable;A.exports=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")}},72098,(e,A,t)=>{A.exports=Array.isArray},45373,(e,A,t)=>{A.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},7850,(e,A,t)=>{var n=e.r(63883),r=e.r(45373);A.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},24019,(e,A,t)=>{A.exports=function(){return!1}},85370,(e,A,t)=>{var n=e.r(18408),r=e.r(24019),i=t&&!t.nodeType&&t,o=i&&A&&!A.nodeType&&A,s=o&&o.exports===i?n.Buffer:void 0;A.exports=(s?s.isBuffer:void 0)||r},19575,(e,A,t)=>{var n=e.r(23748),r=e.r(45373),i=e.r(19674),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,A.exports=function(e){return i(e)&&r(e.length)&&!!o[n(e)]}},32900,(e,A,t)=>{A.exports=function(e){return function(A){return e(A)}}},45361,(e,A,t)=>{var n=e.r(72668),r=t&&!t.nodeType&&t,i=r&&A&&!A.nodeType&&A,o=i&&i.exports===r&&n.process;A.exports=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()},13376,(e,A,t)=>{var n=e.r(19575),r=e.r(32900),i=e.r(45361),o=i&&i.isTypedArray;A.exports=o?r(o):n},20686,(e,A,t)=>{var n=e.r(3114),r=e.r(26568),i=e.r(17288),o=e.r(72098),s=e.r(7850),a=e.r(85370),l=e.r(70795),c=e.r(13376),u=Object.prototype.hasOwnProperty;A.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||a(e)||c(e)||i(e)))return!e.length;var A=r(e);if("[object Map]"==A||"[object Set]"==A)return!e.size;if(l(e))return!n(e).length;for(var t in e)if(u.call(e,t))return!1;return!0}},21665,(e,A,t)=>{"use strict";var n=e.r(64789),r=e.r(34960),i="function"==typeof Object.is?Object.is:function(e,A){return e===A&&(0!==e||1/e==1/A)||e!=e&&A!=A},o=r.useSyncExternalStore,s=n.useRef,a=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,A,t,n,r){var u=s(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var h=o(e,(u=l(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==r&&d.hasValue){var A=d.value;if(r(A,e))return s=A}return s=e}if(A=s,i(o,e))return A;var t=n(e);return void 0!==r&&r(A,t)?(o=e,A):(o=e,s=t)}var o,s,a=!1,l=void 0===t?null:t;return[function(){return e(A())},null===l?void 0:function(){return e(l())}]},[A,t,n,r]))[0],u[1]);return a(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},19985,(e,A,t)=>{"use strict";A.exports=e.r(21665)},96045,(e,A,t)=>{e.e,A.exports=function(){"use strict";var e,A,t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C=function(e,A){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])})(e,A)};function b(e,A){if("function"!=typeof A&&null!==A)throw TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}C(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}var v=function(){return(v=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)};function Q(e,A,t,n){return new(t||(t=Promise))(function(r,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var A;e.done?r(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A)})).then(o,s)}a((n=n.apply(e,A||[])).next())})}function F(e,A){var t,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){var l=[s,a];if(t)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=A.call(e,o)}catch(e){l=[6,e],n=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function U(e,A,t){if(t||2==arguments.length)for(var n,r=0,i=A.length;r<i;r++)!n&&r in A||(n||(n=Array.prototype.slice.call(A,0,r)),n[r]=A[r]);return e.concat(n||Array.prototype.slice.call(A))}"function"==typeof SuppressedError&&SuppressedError;for(var E=function(){function e(e,A,t,n){this.left=e,this.top=A,this.width=t,this.height=n}return e.prototype.add=function(A,t,n,r){return new e(this.left+A,this.top+t,this.width+n,this.height+r)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var n=Array.from(t).find(function(e){return 0!==e.width});return n?new e(n.left+A.windowBounds.left,n.top+A.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),I=function(e,A){return E.fromClientRect(e,A.getBoundingClientRect())},S=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw Error("Unable to get document size");return new E(0,0,Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight)))},k=function(e){for(var A=[],t=0,n=e.length;t<n;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var i=e.charCodeAt(t++);(64512&i)==56320?A.push(((1023&r)<<10)+(1023&i)+65536):(A.push(r),t--)}else A.push(r)}return A},j=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var n=[],r=-1,i="";++r<t;){var o=e[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="undefined"==typeof Uint8Array?[]:new Uint8Array(256),L=0;L<H.length;L++)D[H.charCodeAt(L)]=L;for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),M=0;M<R.length;M++)T[R.charCodeAt(M)]=M;for(var O=2112,N=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},P=function(){function e(e,A,t,n,r,i){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=i}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=((A=this.index[e>>5])<<2)+(31&e),this.data[A];if(e<=65535)return A=((A=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[A];if(e<this.highStart)return A=O-32+(e>>11),A=this.index[A]+(e>>5&63),A=((A=this.index[A])<<2)+(31&e),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K="undefined"==typeof Uint8Array?[]:new Uint8Array(256),V=0;V<_.length;V++)K[_.charCodeAt(V)]=V;var G=[9001,65288],z=(A=Array.isArray(e=function(e){var A,t,n,r,i,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=T[e.charCodeAt(A)],n=T[e.charCodeAt(A+1)],r=T[e.charCodeAt(A+2)],i=T[e.charCodeAt(A+3)],c[a++]=t<<2|n>>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return l}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="))?function(e){for(var A=e.length,t=[],n=0;n<A;n+=4)t.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return t}(e):new Uint32Array(e),n=N(t=Array.isArray(e)?function(e){for(var A=e.length,t=[],n=0;n<A;n+=2)t.push(e[n+1]<<8|e[n]);return t}(e):new Uint16Array(e),12,A[4]/2),i=2===A[5]?N(t,(24+A[4])/2):(r=Math.ceil((24+A[4])/4),A.slice?A.slice(r,void 0):new Uint32Array(Array.prototype.slice.call(A,r,void 0))),new P(A[0],A[1],A[2],A[3],n,i)),W=[30,36],$=[1,2,3,5],X=[10,8],Y=[27,26],J=$.concat(X),q=[38,39,40,34,35],Z=[15,13],ee=function(e,A){void 0===A&&(A="strict");var t=[],n=[],r=[];return e.forEach(function(e,i){var o=z.get(e);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(A)&&-1!==[8208,8211,12316,12448].indexOf(e))return n.push(i),t.push(16);if(4===o||11===o){if(0===i)return n.push(i),t.push(30);var s=t[i-1];return -1===J.indexOf(s)?(n.push(n[i-1]),t.push(s)):(n.push(i),t.push(30))}if(n.push(i),31===o)return t.push("strict"===A?21:37);if(42===o||29===o)return t.push(30);if(43===o)if(e>=131072&&e<=196605||e>=196608&&e<=262141)return t.push(37);else return t.push(30);t.push(o)}),[n,t,r]},eA=function(e,A,t,n){var r=n[t];if(Array.isArray(e)?-1!==e.indexOf(r):e===r)for(var i=t;i<=n.length;){var o=n[++i];if(o===A)return!0;if(10!==o)break}if(10===r)for(var i=t;i>0;){var s=n[--i];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=t;a<=n.length;){var o=n[++a];if(o===A)return!0;if(10!==o)break}if(10!==s)break}return!1},et=function(e,A){for(var t=e;t>=0;){var n=A[t];if(10!==n)return n;t--}return 0},en=function(e,A,t,n,r){if(0===t[n])return"×";var i=n-1;if(Array.isArray(r)&&!0===r[i])return"×";var o=i-1,s=i+1,a=A[i],l=o>=0?A[o]:0,c=A[s];if(2===a&&3===c)return"×";if(-1!==$.indexOf(a))return"!";if(-1!==$.indexOf(c)||-1!==X.indexOf(c))return"×";if(8===et(i,A))return"÷";if(11===z.get(e[i])||(32===a||33===a)&&11===z.get(e[s])||7===a||7===c||9===a||-1===[10,13,15].indexOf(a)&&9===c||-1!==[17,18,19,24,28].indexOf(c)||22===et(i,A)||eA(23,22,i,A)||eA([17,18],21,i,A)||eA(12,12,i,A))return"×";if(10===a)return"÷";if(23===a||23===c)return"×";if(16===c||16===a)return"÷";if(-1!==[13,15,21].indexOf(c)||14===a||36===l&&-1!==Z.indexOf(a)||28===a&&36===c||20===c||-1!==W.indexOf(c)&&25===a||-1!==W.indexOf(a)&&25===c||27===a&&-1!==[37,32,33].indexOf(c)||-1!==[37,32,33].indexOf(a)&&26===c||-1!==W.indexOf(a)&&-1!==Y.indexOf(c)||-1!==Y.indexOf(a)&&-1!==W.indexOf(c)||-1!==[27,26].indexOf(a)&&(25===c||-1!==[22,15].indexOf(c)&&25===A[s+1])||-1!==[22,15].indexOf(a)&&25===c||25===a&&-1!==[25,28,24].indexOf(c))return"×";if(-1!==[25,28,24,17,18].indexOf(c))for(var u=i;u>=0;){var d=A[u];if(25===d)return"×";if(-1!==[28,24].indexOf(d))u--;else break}if(-1!==[27,26].indexOf(c))for(var u=-1!==[17,18].indexOf(a)?o:i;u>=0;){var d=A[u];if(25===d)return"×";if(-1!==[28,24].indexOf(d))u--;else break}if(38===a&&-1!==[38,39,34,35].indexOf(c)||-1!==[39,34].indexOf(a)&&-1!==[39,40].indexOf(c)||-1!==[40,35].indexOf(a)&&40===c||-1!==q.indexOf(a)&&-1!==[20,26].indexOf(c)||-1!==q.indexOf(c)&&27===a||-1!==W.indexOf(a)&&-1!==W.indexOf(c)||24===a&&-1!==W.indexOf(c)||-1!==W.concat(25).indexOf(a)&&22===c&&-1===G.indexOf(e[s])||-1!==W.concat(25).indexOf(c)&&18===a)return"×";if(41===a&&41===c){for(var h=t[i],f=1;h>0;)if(41===A[--h])f++;else break;if(f%2!=0)return"×"}return 32===a&&33===c?"×":"÷"},er=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=ee(e,A.lineBreak),n=t[0],r=t[1],i=t[2];return("break-all"===A.wordBreak||"break-word"===A.wordBreak)&&(r=r.map(function(e){return -1!==[25,30,42].indexOf(e)?37:e})),[n,r,"keep-all"===A.wordBreak?i.map(function(A,t){return A&&e[t]>=19968&&e[t]<=40959}):void 0]},ei=function(){function e(e,A,t,n){this.codePoints=e,this.required="!"===A,this.start=t,this.end=n}return e.prototype.slice=function(){return j.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),eo=function(e,A){var t=k(e),n=er(t,A),r=n[0],i=n[1],o=n[2],s=t.length,a=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var e="×";l<s&&"×"===(e=en(t,i,r,++l,o)););if("×"!==e||l===s){var A=new ei(t,e,a,l);return a=l,{value:A,done:!1}}return{done:!0,value:null}}}},es=function(e){return e>=48&&e<=57},ea=function(e){return es(e)||e>=65&&e<=70||e>=97&&e<=102},el=function(e){return e>=97&&e<=122||e>=65&&e<=90},ec=function(e){return 10===e||9===e||32===e},eu=function(e){return el(e)||e>=128||95===e},ed=function(e){return eu(e)||es(e)||45===e},eh=function(e,A){return 92===e&&10!==A},ef=function(e,A,t){return 45===e?eu(A)||eh(A,t):!!(eu(e)||92===e&&eh(e,A))||!1},eg=function(e,A,t){return 43===e||45===e?!!es(A)||46===A&&es(t):46===e?es(A):es(e)},ep=function(e){var A=0,t=1;(43===e[0]||45===e[A])&&(45===e[A]&&(t=-1),A++);for(var n=[];es(e[A]);)n.push(e[A++]);var r=n.length?parseInt(j.apply(void 0,n),10):0;46===e[A]&&A++;for(var i=[];es(e[A]);)i.push(e[A++]);var o=i.length,s=o?parseInt(j.apply(void 0,i),10):0;(69===e[A]||101===e[A])&&A++;var a=1;(43===e[A]||45===e[A])&&(45===e[A]&&(a=-1),A++);for(var l=[];es(e[A]);)l.push(e[A++]);return t*(r+s*Math.pow(10,-o))*Math.pow(10,a*(l.length?parseInt(j.apply(void 0,l),10):0))},eB={type:2},em={type:3},ew={type:4},ey={type:13},ex={type:8},eC={type:21},eb={type:9},ev={type:10},eQ={type:11},eF={type:12},eU={type:14},eE={type:23},eI={type:1},eS={type:25},ek={type:24},ej={type:26},eH={type:27},eD={type:28},eL={type:29},eR={type:31},eT={type:32},eM=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(k(e))},e.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==eT;)e.push(A),A=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var A=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ed(A)||eh(t,n)){var r=ef(A,t,n)?2:1,i=this.consumeName();return{type:5,value:i,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ey;break;case 39:return this.consumeStringToken(39);case 40:return eB;case 41:return em;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),eU;break;case 43:case 46:if(eg(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ew;case 45:var o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(eg(e,o,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ef(e,o,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===o&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),ek;break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint())||-1===a)return this.consumeToken()}break;case 58:return ej;case 59:return eH;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),eS;break;case 64:if(ef(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var i=this.consumeName();return{type:7,value:i}}break;case 91:return eD;case 92:if(eh(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return eL;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ex;break;case 123:return eQ;case 125:return eF;case 117:case 85:var l=this.peekCodePoint(0),c=this.peekCodePoint(1);return 43===l&&(ea(c)||63===c)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),eb;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),eC;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ev;break;case -1:return eT}return ec(e)?(this.consumeWhiteSpace(),eR):es(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):eu(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:j(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],A=this.consumeCodePoint();ea(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var t=!1;63===A&&e.length<6;)e.push(A),A=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(j.apply(void 0,e.map(function(e){return 63===e?48:e})),16),r=parseInt(j.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:30,start:n,end:r}}var i=parseInt(j.apply(void 0,e),16);if(!(45===this.peekCodePoint(0)&&ea(this.peekCodePoint(1))))return{type:30,start:i,end:i};this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];ea(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var r=parseInt(j.apply(void 0,o),16);return{type:30,start:i,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var A=this.peekCodePoint(0);if(39===A||34===A){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),eE)}for(;;){var n,r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:j.apply(void 0,e)};if(ec(r)){if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))return this.consumeCodePoint(),{type:22,value:j.apply(void 0,e)};return this.consumeBadUrlRemnants(),eE}if(34===r||39===r||40===r||(n=r)>=0&&n<=8||11===n||n>=14&&n<=31||127===n)return this.consumeBadUrlRemnants(),eE;if(92===r)if(!eh(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),eE;else e.push(this.consumeEscapedCodePoint());else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ec(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;eh(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var A="";e>0;){var t=Math.min(5e4,e);A+=j.apply(void 0,this._value.splice(0,t)),e-=t}return this._value.shift(),A},e.prototype.consumeStringToken=function(e){for(var A="",t=0;;){var n=this._value[t];if(-1===n||void 0===n||n===e)return{type:0,value:A+=this.consumeStringSlice(t)};if(10===n)return this._value.splice(0,t),eI;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(A+=this.consumeStringSlice(t),t=-1,this._value.shift()):eh(n,r)&&(A+=this.consumeStringSlice(t),A+=j(this.consumeEscapedCodePoint()),t=-1))}t++}},e.prototype.consumeNumber=function(){var e=[],A=4,t=this.peekCodePoint(0);for((43===t||45===t)&&e.push(this.consumeCodePoint());es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&es(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=8;es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&es(r)||es(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=8;es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ep(e),A]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],t=e[1],n=this.peekCodePoint(0);return ef(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:A,flags:t,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:A,flags:t}):{type:17,number:A,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ea(e)){for(var A=j(e);ea(this.peekCodePoint(0))&&A.length<6;)A+=j(this.consumeCodePoint());ec(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(A,16);return 0===t||t>=55296&&t<=57343||t>1114111?65533:t}return -1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(ed(A))e+=j(A);else{if(!eh(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),e;e+=j(this.consumeEscapedCodePoint())}}},e}(),eO=function(){function e(e){this._tokens=e}return e.create=function(A){var t=new eM;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do e=this.consumeToken();while(31===e.type)if(32===e.type)return A;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(32===A.type)return e;e.push(A),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var A={type:e,values:[]},t=this.consumeToken();;){if(32===t.type||e$(t,e))return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?eT:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),eN=function(e){return 15===e.type},eP=function(e){return 17===e.type},e_=function(e){return 20===e.type},eK=function(e){return 0===e.type},eV=function(e,A){return e_(e)&&e.value===A},eG=function(e){return 31!==e.type},ez=function(e){return 31!==e.type&&4!==e.type},eW=function(e){var A=[],t=[];return e.forEach(function(e){if(4===e.type){if(0===t.length)throw Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}31!==e.type&&t.push(e)}),t.length&&A.push(t),A},e$=function(e,A){return 11===A&&12===e.type||28===A&&29===e.type||2===A&&3===e.type},eX=function(e){return 17===e.type||15===e.type},eY=function(e){return 16===e.type||eX(e)},eJ=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},eq={type:17,number:0,flags:4},eZ={type:16,number:50,flags:4},e0={type:16,number:100,flags:4},e1=function(e,A,t){var n=e[0],r=e[1];return[e2(n,A),e2(void 0!==r?r:n,t)]},e2=function(e,A){if(16===e.type)return e.number/100*A;if(eN(e))switch(e.unit){case"rem":case"em":return 16*e.number}return e.number},e4="grad",e3="turn",e5=function(e,A){if(15===A.type)switch(A.unit){case"deg":return Math.PI*A.number/180;case e4:return Math.PI/200*A.number;case"rad":return A.number;case e3:return 2*Math.PI*A.number}throw Error("Unsupported angle type")},e6=function(e){return 15===e.type&&("deg"===e.unit||e.unit===e4||"rad"===e.unit||e.unit===e3)},e8=function(e){switch(e.filter(e_).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[eq,eq];case"to top":case"bottom":return e7(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[eq,e0];case"to right":case"left":return e7(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[e0,e0];case"to bottom":case"top":return e7(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[e0,eq];case"to left":case"right":return e7(270)}return 0},e7=function(e){return Math.PI*e/180},e9=function(e){return(255&e)==0},Ae=function(e){var A=255&e,t=255&e>>8,n=255&e>>16,r=255&e>>24;return A<255?"rgba(".concat(r,",").concat(n,",").concat(t,",").concat(A/255,")"):"rgb(".concat(r,",").concat(n,",").concat(t,")")},AA=function(e,A,t,n){return(e<<24|A<<16|t<<8|(0|Math.round(255*n)))>>>0},At=function(e,A){if(17===e.type)return e.number;if(16===e.type){var t=3===A?1:255;return 3===A?e.number/100*t:Math.round(e.number/100*t)}return 0},An=function(e){return(20===e[0].type?e[0].value:"unknown")==="from"},Ar=function(e,A,t){return Math.min(Math.max(e,A),t)},Ai=function(e,A){return[e[0]*A[0]+e[1]*A[1]+e[2]*A[2],e[3]*A[0]+e[4]*A[1]+e[5]*A[2],e[6]*A[0]+e[7]*A[1]+e[8]*A[2]]},Ao=function(e){var A=e[0],t=e[1],n=e[2],r=e[3],i=Av([A,t,n]);return AA(Ar(Math.round(255*i[0]),0,255),Ar(Math.round(255*i[1]),0,255),Ar(Math.round(255*i[2]),0,255),r)},As=function(e){var A=AC([e[0],e[1],e[2]]);return Ao([A[0],A[1],A[2],e[3]])},Aa=function(e,A){var t=A.filter(ez),n=t[0],r=t[1],i=t[2],o=t[3];return[(17===n.type?e7(n.number):e5(e,n))/(2*Math.PI),eY(r)?r.number/100:0,eY(i)?i.number/100:0,void 0!==o&&eY(o)?e2(o,1):1]},Al=function(e,A){if(An(A))throw Error("Relative color not supported for hsl()");var t=Aa(e,A),n=t[0],r=t[1],i=t[2],o=t[3],s=Ap([n,r,i]);return AA(255*s[0],255*s[1],255*s[2],0===r?1:o)},Ac=function(e){var A=e.filter(ez);return[eY(A[0])?A[0].number:0,eY(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Au=function(e){var A=e.filter(ez);return[16===A[0].type?A[0].number/100:eP(A[0])?A[0].number:0,16===A[1].type?A[1].number/100:eP(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Ad=function(e){var A=e.filter(ez);return[16===A[0].type?A[0].number/100:eP(A[0])?A[0].number:0,16===A[1].type?A[1].number/100:eP(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Ah=function(e){return Ai([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],e)},Af=function(e){return Ai([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],e)},Ag=function(e,A,t){return(t<0&&(t+=1),t>=1&&(t-=1),t<1/6)?(A-e)*t*6+e:t<.5?A:t<2/3?(A-e)*6*(2/3-t)+e:e},Ap=function(e){var A=e[0],t=e[1],n=e[2];if(0===t)return[255*n,255*n,255*n];var r=n<=.5?n*(t+1):n+t-n*t,i=2*n-r;return[Ag(i,r,A+1/3),Ag(i,r,A),Ag(i,r,A-1/3)]},AB=function(e){var A=e[0],t=e[1],n=e[2];return t<0&&(t=0),isNaN(n)&&(n=0),[A,t*Math.cos(n*Math.PI/180),t*Math.sin(n*Math.PI/180)]},Am=function(e){var A=Ai([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],e).map(function(e){return Math.pow(e,3)});return Ai([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],A)},Aw=function(e){var A=(e[0]+16)/116,t=e[1]/500+A,n=A-e[2]/200,r=24389/27,i=[(t>24/116?Math.pow(t,3):(116*t-16)/r)*.3457/.3585,e[0]>8?Math.pow(A,3):e[0]/r,(n>24/116?Math.pow(n,3):(116*n-16)/r)*.2958/.3585];return Af([i[0],i[1],i[2]])},Ay=function(e){return e},Ax=function(e){return As([e[0],e[1],e[2],e[3]])},AC=function(e){return Ai([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],e)},Ab=function(e){return Ai([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],e)},Av=function(e){return e.map(function(e){var A=Math.abs(e);return A>.0031308?(e<0?-1:1)*(1.055*Math.pow(A,1/2.4)-.055):12.92*e})},AQ=function(e){return e.map(function(e){var A=Math.abs(e);return A<=.04045?e/12.92:(e<0?-1:1)*Math.pow((A+.055)/1.055,2.4)})},AF=function(e){var A=[e[0],e[1],e[2]].map(function(e){var A=e<0?-1:1;return e*A<=.04045?e/12.92:A*Math.pow((e+.055)/1.055,2.4)||0});return Ai([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],[A[0],A[1],A[2]])},AU=function(e){var A=e.map(function(e){var A=Math.abs(e);return(e<0?-1:1)*Math.pow(A,563/256)});return[A[0],A[1],A[2]]},AE=function(e){var A=e.map(function(e){var A=Math.abs(e);return(e<0?-1:1)*Math.pow(A,256/563)});return[A[0],A[1],A[2]]},AI=function(e){var A=[e[0],e[1],e[2]].map(function(e){return e<16/512?e/16:Math.pow(e,1.8)});return Af(Ai([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],[A[0],A[1],A[2]]))},AS=function(e){var A=[e[0],e[1],e[2]].map(function(e){return e<.08124285829863151?e/4.5:Math.pow((e+1.09929682680944-1)/1.09929682680944,1/.45)});return Ai([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],[A[0],A[1],A[2]])},Ak=function(e,A){if(18===A.type){var t=AT[A.name];if(void 0===t)throw Error('Attempting to parse an unsupported color function "'.concat(A.name,'"'));return t(e,A.values)}if(5===A.type){var n=Aj(A);return AA(n[0],n[1],n[2],n[3])}if(20===A.type){var r=AO[A.value.toUpperCase()];if(void 0!==r)return r}return AO.TRANSPARENT},Aj=function(e){if(3===e.value.length){var A=e.value.substring(0,1),t=e.value.substring(1,2),n=e.value.substring(2,3);return[parseInt(A+A,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(4===e.value.length){var A=e.value.substring(0,1),t=e.value.substring(1,2),n=e.value.substring(2,3),r=e.value.substring(3,4);return[parseInt(A+A,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(6===e.value.length){var A=e.value.substring(0,2),t=e.value.substring(2,4),n=e.value.substring(4,6);return[parseInt(A,16),parseInt(t,16),parseInt(n,16),1]}if(8===e.value.length){var A=e.value.substring(0,2),t=e.value.substring(2,4),n=e.value.substring(4,6),r=e.value.substring(6,8);return[parseInt(A,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},AH=function(e,A){var t=A.filter(ez);if(An(t))throw Error("Relative color not supported for rgb()");if(3===t.length){var n=t.map(At),r=n[0],i=n[1],o=n[2];return AA(r,i,o,1)}if(4===t.length){var s=t.map(At),r=s[0],i=s[1],o=s[2];return AA(r,i,o,s[3])}return 0},AD={srgb:function(e){return AA(Ar(Math.round(255*e[0]),0,255),Ar(Math.round(255*e[1]),0,255),Ar(Math.round(255*e[2]),0,255),Ar(e[3],0,1))},"srgb-linear":Ao,"display-p3":function(e){var A=AF([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])},"a98-rgb":function(e){var A=AC(Ai([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],AU([e[0],e[1],e[2]])));return Ao([A[0],A[1],A[2],e[3]])},"prophoto-rgb":function(e){var A=AI([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])},xyz:Ax,"xyz-d50":function(e){var A,t=Af([(A=[e[0],e[1],e[2]])[0],A[1],A[2]]);return As([t[0],t[1],t[2],e[3]])},"xyz-d65":Ax,rec2020:function(e){var A=AS([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])}},AL={rgb:function(e,A){var t=A.filter(ez);if(3===t.length){var n=t.map(At),r=n[0],i=n[1],o=n[2],s=AQ([r/255,i/255,o/255]),a=Ab([s[0],s[1],s[2]]),l=a[0],c=a[1],u=a[2];return[l,c,u,1]}if(4===t.length){var d=t.map(At),r=d[0],i=d[1],o=d[2],h=d[3],s=AQ([r/255,i/255,o/255]),f=Ab([s[0],s[1],s[2]]),l=f[0],c=f[1],u=f[2];return[l,c,u,h]}return[0,0,0,1]},hsl:function(e,A){var t=Aa(e,A),n=t[0],r=t[1],i=t[2],o=t[3],s=AQ(Ap([n,r,i])),a=Ab([s[0],s[1],s[2]]);return[a[0],a[1],a[2],o]},lab:function(e,A){var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Aw([n,r,i]);return[s[0],s[1],s[2],o]},lch:function(e,A){var t=Ac(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Aw(AB([n,r,i]));return[s[0],s[1],s[2],o]},oklab:function(e,A){var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Am([n,r,i]);return[s[0],s[1],s[2],o]},oklch:function(e,A){var t=Ad(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Am(AB([n,r,i]));return[s[0],s[1],s[2],o]}},AR={srgb:function(e){var A=Av(AC([e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"srgb-linear":function(e){var A=AC([e[0],e[1],e[2]]),t=A[0],n=A[1],r=A[2];return[Ar(Math.round(255*t),0,255),Ar(Math.round(255*n),0,255),Ar(Math.round(255*r),0,255),e[3]]},"display-p3":function(e){var A=Av(Ai([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],[e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"a98-rgb":function(e){var A=AE(Ai([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],[e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"prophoto-rgb":function(e){var A=Ai([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],Ah([e[0],e[1],e[2]])).map(function(e){return e>1/512?Math.pow(e,1/1.8):16*e});return[A[0],A[1],A[2],e[3]]},xyz:Ay,"xyz-d50":function(e){var A=Ah([e[0],e[2],e[3]]);return[A[0],A[1],A[2],e[3]]},"xyz-d65":Ay,rec2020:function(e){var A=Ai([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],[e[0],e[1],e[2]]).map(function(e){return e>=.018053968510807?1.09929682680944*Math.pow(e,.45)-(1.09929682680944-1):4.5*e});return[A[0],A[1],A[2],e[3]]}},AT={hsl:Al,hsla:Al,rgb:AH,rgba:AH,lch:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for lch()");var t=Ac(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Aw(AB([n,r,i]))));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},oklch:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for oklch()");var t=Ad(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Am(AB([n,r,i]))));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},oklab:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for oklab()");var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Am([n,r,i])));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},lab:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for lab()");var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Aw([n,r,i])));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},color:function(e,A){var t=A.filter(ez),n=20===t[0].type?t[0].value:"unknown";if(!An(t)){var r=AD[n];if(void 0===r)throw Error('Attempting to parse an unsupported color space "'.concat(n,'" for color() function'));var i=eP(t[1])?t[1].number:0,o=eP(t[2])?t[2].number:0,s=eP(t[3])?t[3].number:0,a=t.length>4&&6===t[4].type&&"/"===t[4].value&&eP(t[5])?t[5].number:1;return r([i,o,s,a])}var l=function(e,A){if(eP(A))return A.number;if(e_(A)){var t;return e["r"===(t=A.value)||"x"===t?0:"g"===t||"y"===t?1:2]}var n=function(e){for(var A=e.filter(ez),t="(",r=0;r<A.length;r++){var i=A[r];t+=18===i.type&&"calc"===i.name?n(i.values):eP(i)?i.number:6===i.type||e_(i)?i.value:""}return t+")"};if(18===A.type){var r=A.values.filter(ez);if("calc"===A.name)return Function("return "+n(r).replace(/r|x/,e[0].toString()).replace(/g|y/,e[1].toString()).replace(/b|z/,e[2].toString()))()}return null},c=18===t[1].type?t[1].name:e_(t[1])||5===t[1].type?"rgb":"unknown",u=e_(t[2])?t[2].value:"unknown",d=18===t[1].type?t[1].values:e_(t[1])?[t[1]]:[];if(e_(t[1])){if(void 0===AO[t[1].value.toUpperCase()])throw Error("Attempting to use unknown color in relative color 'from'");var h=AM(e,t[1].value),f=255&h,g=255&h>>8,p=255&h>>16,B=255&h>>24;d=[{type:17,number:B,flags:1},{type:17,number:p,flags:1},{type:17,number:g,flags:1},{type:17,number:f>1?f/255:f,flags:1}]}else if(5===t[1].type){var m=Aj(t[1]),B=m[0],p=m[1],g=m[2],f=m[3];d=[{type:17,number:B,flags:1},{type:17,number:p,flags:1},{type:17,number:g,flags:1},{type:17,number:f>1?f/255:f,flags:1}]}if(0===d.length)throw Error("Attempting to use unknown color in relative color 'from'");if("unknown"===u)throw Error("Attempting to use unknown colorspace in relative color 'to'");var w=AL[c],y=AR[u],x=AD[u];if(void 0===w)throw Error('Attempting to parse an unsupported color space "'.concat(c,'" for color() function'));if(void 0===y)throw Error('Attempting to parse an unsupported color space "'.concat(u,'" for color() function'));var C=y(w(e,d)),i=l(C,t[3]),o=l(C,t[4]),s=l(C,t[5]),a=t.length>6&&6===t[6].type&&"/"===t[6].value&&eP(t[7])?t[7].number:1;if(null===i||null===o||null===s)throw Error("Invalid relative color in color() function");return x([i,o,s,a])}},AM=function(e,A){return Ak(e,eO.create(A).parseComponentValue())},AO={ALICEBLUE:0xf0f8ffff,ANTIQUEWHITE:0xfaebd7ff,AQUA:0xffffff,AQUAMARINE:0x7fffd4ff,AZURE:0xf0ffffff,BEIGE:0xf5f5dcff,BISQUE:0xffe4c4ff,BLACK:255,BLANCHEDALMOND:0xffebcdff,BLUE:65535,BLUEVIOLET:0x8a2be2ff,BROWN:0xa52a2aff,BURLYWOOD:0xdeb887ff,CADETBLUE:0x5f9ea0ff,CHARTREUSE:0x7fff00ff,CHOCOLATE:0xd2691eff,CORAL:0xff7f50ff,CORNFLOWERBLUE:0x6495edff,CORNSILK:0xfff8dcff,CRIMSON:0xdc143cff,CYAN:0xffffff,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:0xb886bbff,DARKGRAY:0xa9a9a9ff,DARKGREEN:6553855,DARKGREY:0xa9a9a9ff,DARKKHAKI:0xbdb76bff,DARKMAGENTA:0x8b008bff,DARKOLIVEGREEN:0x556b2fff,DARKORANGE:0xff8c00ff,DARKORCHID:0x9932ccff,DARKRED:0x8b0000ff,DARKSALMON:0xe9967aff,DARKSEAGREEN:0x8fbc8fff,DARKSLATEBLUE:0x483d8bff,DARKSLATEGRAY:0x2f4f4fff,DARKSLATEGREY:0x2f4f4fff,DARKTURQUOISE:0xced1ff,DARKVIOLET:0x9400d3ff,DEEPPINK:0xff1493ff,DEEPSKYBLUE:0xbfffff,DIMGRAY:0x696969ff,DIMGREY:0x696969ff,DODGERBLUE:0x1e90ffff,FIREBRICK:0xb22222ff,FLORALWHITE:0xfffaf0ff,FORESTGREEN:0x228b22ff,FUCHSIA:0xff00ffff,GAINSBORO:0xdcdcdcff,GHOSTWHITE:0xf8f8ffff,GOLD:0xffd700ff,GOLDENROD:0xdaa520ff,GRAY:0x808080ff,GREEN:8388863,GREENYELLOW:0xadff2fff,GREY:0x808080ff,HONEYDEW:0xf0fff0ff,HOTPINK:0xff69b4ff,INDIANRED:0xcd5c5cff,INDIGO:0x4b0082ff,IVORY:0xfffff0ff,KHAKI:0xf0e68cff,LAVENDER:0xe6e6faff,LAVENDERBLUSH:0xfff0f5ff,LAWNGREEN:0x7cfc00ff,LEMONCHIFFON:0xfffacdff,LIGHTBLUE:0xadd8e6ff,LIGHTCORAL:0xf08080ff,LIGHTCYAN:0xe0ffffff,LIGHTGOLDENRODYELLOW:0xfafad2ff,LIGHTGRAY:0xd3d3d3ff,LIGHTGREEN:0x90ee90ff,LIGHTGREY:0xd3d3d3ff,LIGHTPINK:0xffb6c1ff,LIGHTSALMON:0xffa07aff,LIGHTSEAGREEN:0x20b2aaff,LIGHTSKYBLUE:0x87cefaff,LIGHTSLATEGRAY:0x778899ff,LIGHTSLATEGREY:0x778899ff,LIGHTSTEELBLUE:0xb0c4deff,LIGHTYELLOW:0xffffe0ff,LIME:0xff00ff,LIMEGREEN:0x32cd32ff,LINEN:0xfaf0e6ff,MAGENTA:0xff00ffff,MAROON:0x800000ff,MEDIUMAQUAMARINE:0x66cdaaff,MEDIUMBLUE:52735,MEDIUMORCHID:0xba55d3ff,MEDIUMPURPLE:0x9370dbff,MEDIUMSEAGREEN:0x3cb371ff,MEDIUMSLATEBLUE:0x7b68eeff,MEDIUMSPRINGGREEN:0xfa9aff,MEDIUMTURQUOISE:0x48d1ccff,MEDIUMVIOLETRED:0xc71585ff,MIDNIGHTBLUE:0x191970ff,MINTCREAM:0xf5fffaff,MISTYROSE:0xffe4e1ff,MOCCASIN:0xffe4b5ff,NAVAJOWHITE:0xffdeadff,NAVY:33023,OLDLACE:0xfdf5e6ff,OLIVE:0x808000ff,OLIVEDRAB:0x6b8e23ff,ORANGE:0xffa500ff,ORANGERED:0xff4500ff,ORCHID:0xda70d6ff,PALEGOLDENROD:0xeee8aaff,PALEGREEN:0x98fb98ff,PALETURQUOISE:0xafeeeeff,PALEVIOLETRED:0xdb7093ff,PAPAYAWHIP:0xffefd5ff,PEACHPUFF:0xffdab9ff,PERU:0xcd853fff,PINK:0xffc0cbff,PLUM:0xdda0ddff,POWDERBLUE:0xb0e0e6ff,PURPLE:0x800080ff,REBECCAPURPLE:0x663399ff,RED:0xff0000ff,ROSYBROWN:0xbc8f8fff,ROYALBLUE:0x4169e1ff,SADDLEBROWN:0x8b4513ff,SALMON:0xfa8072ff,SANDYBROWN:0xf4a460ff,SEAGREEN:0x2e8b57ff,SEASHELL:0xfff5eeff,SIENNA:0xa0522dff,SILVER:0xc0c0c0ff,SKYBLUE:0x87ceebff,SLATEBLUE:0x6a5acdff,SLATEGRAY:0x708090ff,SLATEGREY:0x708090ff,SNOW:0xfffafaff,SPRINGGREEN:0xff7fff,STEELBLUE:0x4682b4ff,TAN:0xd2b48cff,TEAL:8421631,THISTLE:0xd8bfd8ff,TOMATO:0xff6347ff,TRANSPARENT:0,TURQUOISE:0x40e0d0ff,VIOLET:0xee82eeff,WHEAT:0xf5deb3ff,WHITE:0xffffffff,WHITESMOKE:0xf5f5f5ff,YELLOW:0xffff00ff,YELLOWGREEN:0x9acd32ff},AN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(e){if(e_(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},AP={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},A_=function(e,A){var t=Ak(e,A[0]),n=A[1];return n&&eY(n)?{color:t,stop:n}:{color:t,stop:null}},AK=function(e,A){var t=e[0],n=e[e.length-1];null===t.stop&&(t.stop=eq),null===n.stop&&(n.stop=e0);for(var r=[],i=0,o=0;o<e.length;o++){var s=e[o].stop;if(null!==s){var a=e2(s,A);a>i?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,o=0;o<r.length;o++){var c=r[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var u=o-l,d=(c-r[l-1])/(u+1),h=1;h<=u;h++)r[l+h-1]=d*h;l=null}}return e.map(function(e,t){return{color:e.color,stop:Math.max(Math.min(1,r[t]/A),0)}})},AV=function(e,A,t){var n=A/2,r=t/2,i=e2(e[0],A)-n;return(Math.atan2(r-e2(e[1],t),i)+2*Math.PI)%(2*Math.PI)},AG=function(e,A,t){var n="number"==typeof e?e:AV(e,A,t),r=Math.abs(A*Math.sin(n))+Math.abs(t*Math.cos(n)),i=A/2,o=t/2,s=r/2,a=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[r,i-l,i+l,o-a,o+a]},Az=function(e,A){return Math.sqrt(e*e+A*A)},AW=function(e,A,t,n,r){return[[0,0],[0,A],[e,0],[e,A]].reduce(function(e,A){var i=Az(t-A[0],n-A[1]);return(r?i<e.optimumDistance:i>e.optimumDistance)?{optimumCorner:A,optimumDistance:i}:e},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},A$=function(e,A,t,n,r){var i=0,o=0;switch(e.size){case 0:0===e.shape?i=o=Math.min(Math.abs(A),Math.abs(A-n),Math.abs(t),Math.abs(t-r)):1===e.shape&&(i=Math.min(Math.abs(A),Math.abs(A-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(0===e.shape)i=o=Math.min(Az(A,t),Az(A,t-r),Az(A-n,t),Az(A-n,t-r));else if(1===e.shape){var s=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(A),Math.abs(A-n)),a=AW(n,r,A,t,!0),l=a[0],c=a[1];i=Az(l-A,(c-t)/s),o=s*i}break;case 1:0===e.shape?i=o=Math.max(Math.abs(A),Math.abs(A-n),Math.abs(t),Math.abs(t-r)):1===e.shape&&(i=Math.max(Math.abs(A),Math.abs(A-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(0===e.shape)i=o=Math.max(Az(A,t),Az(A,t-r),Az(A-n,t),Az(A-n,t-r));else if(1===e.shape){var s=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(A),Math.abs(A-n)),u=AW(n,r,A,t,!1),l=u[0],c=u[1];i=Az(l-A,(c-t)/s),o=s*i}}return Array.isArray(e.size)&&(i=e2(e.size[0],n),o=2===e.size.length?e2(e.size[1],r):i),[i,o]},AX=function(e,A){var t=e7(180),n=[];return eW(A).forEach(function(A,r){if(0===r){var i=A[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value)){t=e8(A);return}if(e6(i)){t=(e5(e,i)+e7(270))%e7(360);return}}var o=A_(e,A);n.push(o)}),{angle:t,stops:n,type:1}},AY="closest-side",AJ="farthest-side",Aq="closest-corner",AZ="farthest-corner",A0="circle",A1="ellipse",A2="cover",A4="contain",A3=function(e,A){var t=0,n=3,r=[],i=[];return eW(A).forEach(function(A,o){var s=!0;if(0===o?s=A.reduce(function(e,A){if(e_(A))switch(A.value){case"center":return i.push(eZ),!1;case"top":case"left":return i.push(eq),!1;case"right":case"bottom":return i.push(e0),!1}else if(eY(A)||eX(A))return i.push(A),!1;return e},s):1===o&&(s=A.reduce(function(e,A){if(e_(A))switch(A.value){case A0:return t=0,!1;case A1:return t=1,!1;case A4:case AY:return n=0,!1;case AJ:return n=1,!1;case Aq:return n=2,!1;case A2:case AZ:return n=3,!1}else if(eX(A)||eY(A))return Array.isArray(n)||(n=[]),n.push(A),!1;return e},s)),s){var a=A_(e,A);r.push(a)}}),{size:n,shape:t,stops:r,position:i,type:2}},A5=function(e,A){if(22===A.type){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(18===A.type){var n=A6[A.name];if(void 0===n)throw Error('Attempting to parse an unsupported image function "'.concat(A.name,'"'));return n(e,A.values)}throw Error("Unsupported image type ".concat(A.type))},A6={"linear-gradient":function(e,A){var t=e7(180),n=[];return eW(A).forEach(function(A,r){if(0===r){var i=A[0];if(20===i.type&&"to"===i.value){t=e8(A);return}if(e6(i)){t=e5(e,i);return}}var o=A_(e,A);n.push(o)}),{angle:t,stops:n,type:1}},"-moz-linear-gradient":AX,"-ms-linear-gradient":AX,"-o-linear-gradient":AX,"-webkit-linear-gradient":AX,"radial-gradient":function(e,A){var t=0,n=3,r=[],i=[];return eW(A).forEach(function(A,o){var s=!0;if(0===o){var a=!1;s=A.reduce(function(e,A){if(a)if(e_(A))switch(A.value){case"center":i.push(eZ);break;case"top":case"left":i.push(eq);break;case"right":case"bottom":i.push(e0)}else(eY(A)||eX(A))&&i.push(A);else if(e_(A))switch(A.value){case A0:return t=0,!1;case A1:return t=1,!1;case"at":return a=!0,!1;case AY:return n=0,!1;case A2:case AJ:return n=1,!1;case A4:case Aq:return n=2,!1;case AZ:return n=3,!1}else if(eX(A)||eY(A))return Array.isArray(n)||(n=[]),n.push(A),!1;return e},s)}if(s){var l=A_(e,A);r.push(l)}}),{size:n,shape:t,stops:r,position:i,type:2}},"-moz-radial-gradient":A3,"-ms-radial-gradient":A3,"-o-radial-gradient":A3,"-webkit-radial-gradient":A3,"-webkit-gradient":function(e,A){var t=e7(180),n=[],r=1;return eW(A).forEach(function(A,t){var i=A[0];if(0===t){if(e_(i)&&"linear"===i.value){r=1;return}else if(e_(i)&&"radial"===i.value){r=2;return}}if(18===i.type){if("from"===i.name){var o=Ak(e,i.values[0]);n.push({stop:eq,color:o})}else if("to"===i.name){var o=Ak(e,i.values[0]);n.push({stop:e0,color:o})}else if("color-stop"===i.name){var s=i.values.filter(ez);if(2===s.length){var o=Ak(e,s[1]),a=s[0];eP(a)&&n.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}}}),1===r?{angle:(t+e7(180))%e7(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},A8={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(e){var A;return ez(e)&&(20!==(A=e).type||"none"!==A.value)&&(18!==A.type||!!A6[A.name])}).map(function(A){return A5(e,A)})}},A7={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(e){if(e_(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},A9={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return eW(A).map(function(e){return e.filter(eY)}).map(eJ)}},te={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return eW(A).map(function(e){return e.filter(e_).map(function(e){return e.value}).join(" ")}).map(tA)}},tA=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(o=B||(B={})).AUTO="auto",o.CONTAIN="contain",o.COVER="cover";var tt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return eW(A).map(function(e){return e.filter(tn)})}},tn=function(e){return e_(e)||eY(e)},tr=function(e){return{name:"border-".concat(e,"-color"),initialValue:"transparent",prefix:!1,type:3,format:"color"}},ti=tr("top"),to=tr("right"),ts=tr("bottom"),ta=tr("left"),tl=function(e){return{name:"border-radius-".concat(e),initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return eJ(A.filter(eY))}}},tc=tl("top-left"),tu=tl("top-right"),td=tl("bottom-right"),th=tl("bottom-left"),tf=function(e){return{name:"border-".concat(e,"-style"),initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},tg=tf("top"),tp=tf("right"),tB=tf("bottom"),tm=tf("left"),tw=function(e){return{name:"border-".concat(e,"-width"),initialValue:"0",type:0,prefix:!1,parse:function(e,A){return eN(A)?A.number:0}}},ty=tw("top"),tx=tw("right"),tC=tw("bottom"),tb=tw("left"),tv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tQ={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return+("rtl"===A)}},tF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).reduce(function(e,A){return e|tU(A.value)},0)}},tU=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 0x1000000;case"inline-block":return 0x2000000;case"inline-list-item":return 0x4000000;case"inline-table":return 0x8000000;case"inline-flex":return 0x10000000;case"inline-grid":return 0x20000000}return 0},tE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},tI={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"normal"===A.value?0:17===A.type||15===A.type?A.number:0}};(s=m||(m={})).NORMAL="normal",s.STRICT="strict";var tS={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"strict"===A?m.STRICT:m.NORMAL}},tk={name:"line-height",initialValue:"normal",prefix:!1,type:4},tj=function(e,A){return e_(e)&&"normal"===e.value?1.2*A:17===e.type?A*e.number:eY(e)?e2(e,A):A},tH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return 20===A.type&&"none"===A.value?null:A5(e,A)}},tD={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return+("inside"!==A)}},tL={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return -1}}},tR=function(e){return{name:"margin-".concat(e),initialValue:"0",prefix:!1,type:4}},tT=tR("top"),tM=tR("right"),tO=tR("bottom"),tN=tR("left"),tP={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},t_={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"break-word"===A?"break-word":"normal"}},tK=function(e){return{name:"padding-".concat(e),initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tV=tK("top"),tG=tK("right"),tz=tK("bottom"),tW=tK("left"),t$={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},tX={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},tY={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&eV(A[0],"none")?[]:eW(A).map(function(A){for(var t={color:AO.TRANSPARENT,offsetX:eq,offsetY:eq,blur:eq},n=0,r=0;r<A.length;r++){var i=A[r];eX(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:t.blur=i,n++):t.color=Ak(e,i)}return t})}},tJ={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},tq={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(20===A.type&&"none"===A.value)return null;if(18===A.type){var t=tZ[A.name];if(void 0===t)throw Error('Attempting to parse an unsupported transform function "'.concat(A.name,'"'));return t(e,A.values)}return null}},tZ={matrix:function(e,A){var t=A.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e,A){var t=A.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[n,r,i,o,s,a]:null},rotate:function(e,A){if(1!==A.length)return null;var t=A[0],n=0;if(17===t.type&&0===t.number)n=0;else{if(15!==t.type)return null;n=e5(e,t)}var r=Math.cos(n),i=Math.sin(n);return[r,i,-i,r,0,0]}},t0={type:16,number:50,flags:4},t1=[t0,t0],t2={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(eY);return 2!==t.length?t1:[t[0],t[1]]}},t4={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"none"===A.value?null:17===A.type&&0===A.number?0:15===A.type?180*e5(e,A)/Math.PI:null}},t3={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(a=w||(w={})).NORMAL="normal",a.BREAK_ALL="break-all",a.KEEP_ALL="keep-all";for(var t5={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return w.BREAK_ALL;case"keep-all":return w.KEEP_ALL;default:return w.NORMAL}}},t6={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(20===A.type)return{auto:!0,order:0};if(eP(A))return{auto:!1,order:A.number};throw Error("Invalid z-index number parsed")}},t8=function(e,A){if(15===A.type)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw Error("Unsupported time type")},t7={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return eP(A)?A.number:1}},t9={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ne={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},nA={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],n=[];return A.forEach(function(e){switch(e.type){case 20:case 0:t.push(e.value);break;case 17:t.push(e.number.toString());break;case 4:n.push(t.join(" ")),t.length=0}}),t.length&&n.push(t.join(" ")),n.map(function(e){return -1===e.indexOf(" ")?e:"'".concat(e,"'")})}},nt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return eP(A)?A.number:e_(A)&&"bold"===A.value?700:400}},nr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(e_).map(function(e){return e.value})}},ni={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},no=function(e,A){return(e&A)!=0},ns={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A}},na={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;for(var n=[],r=A.filter(eG),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(20===o.type){var a=s&&eP(s)?s.number:1;n.push({counter:o.value,increment:a})}}return n}},nl={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return[];for(var t=[],n=A.filter(eG),r=0;r<n.length;r++){var i=n[r],o=n[r+1];if(e_(i)&&"none"!==i.value){var s=o&&eP(o)?o.number:0;t.push({counter:i.value,reset:s})}}return t}},nc={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(eN).map(function(A){return t8(e,A)})}},nu={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;var n=[],r=A.filter(eK);if(r.length%2!=0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,s=r[i+1].value;n.push({open:o,close:s})}return n}},nd=function(e,A,t){if(!e)return"";var n=e[Math.min(A,e.length-1)];return n?t?n.open:n.close:""},nh={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&eV(A[0],"none")?[]:eW(A).map(function(A){for(var t={color:255,offsetX:eq,offsetY:eq,blur:eq,spread:eq,inset:!1},n=0,r=0;r<A.length;r++){var i=A[r];eV(i,"inset")?t.inset=!0:eX(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:2===n?t.blur=i:t.spread=i,n++):t.color=Ak(e,i)}return t})}},nf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[];return A.filter(e_).forEach(function(e){switch(e.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2)}}),[0,1,2].forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}},ng={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},np={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return eN(A)?A.number:0}},nB={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).reduce(function(e,A){return e|nm(A.value)},0)}},nm=function(e){switch(e){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},nw=function(){function e(e,A){this.animationDuration=nC(e,nc,A.animationDuration),this.backgroundClip=nC(e,AN,A.backgroundClip),this.backgroundColor=nC(e,AP,A.backgroundColor),this.backgroundImage=nC(e,A8,A.backgroundImage),this.backgroundOrigin=nC(e,A7,A.backgroundOrigin),this.backgroundPosition=nC(e,A9,A.backgroundPosition),this.backgroundRepeat=nC(e,te,A.backgroundRepeat),this.backgroundSize=nC(e,tt,A.backgroundSize),this.borderTopColor=nC(e,ti,A.borderTopColor),this.borderRightColor=nC(e,to,A.borderRightColor),this.borderBottomColor=nC(e,ts,A.borderBottomColor),this.borderLeftColor=nC(e,ta,A.borderLeftColor),this.borderTopLeftRadius=nC(e,tc,A.borderTopLeftRadius),this.borderTopRightRadius=nC(e,tu,A.borderTopRightRadius),this.borderBottomRightRadius=nC(e,td,A.borderBottomRightRadius),this.borderBottomLeftRadius=nC(e,th,A.borderBottomLeftRadius),this.borderTopStyle=nC(e,tg,A.borderTopStyle),this.borderRightStyle=nC(e,tp,A.borderRightStyle),this.borderBottomStyle=nC(e,tB,A.borderBottomStyle),this.borderLeftStyle=nC(e,tm,A.borderLeftStyle),this.borderTopWidth=nC(e,ty,A.borderTopWidth),this.borderRightWidth=nC(e,tx,A.borderRightWidth),this.borderBottomWidth=nC(e,tC,A.borderBottomWidth),this.borderLeftWidth=nC(e,tb,A.borderLeftWidth),this.boxShadow=nC(e,nh,A.boxShadow),this.color=nC(e,tv,A.color),this.direction=nC(e,tQ,A.direction),this.display=nC(e,tF,A.display),this.float=nC(e,tE,A.cssFloat),this.fontFamily=nC(e,nA,A.fontFamily),this.fontSize=nC(e,nt,A.fontSize),this.fontStyle=nC(e,ni,A.fontStyle),this.fontVariant=nC(e,nr,A.fontVariant),this.fontWeight=nC(e,nn,A.fontWeight),this.letterSpacing=nC(e,tI,A.letterSpacing),this.lineBreak=nC(e,tS,A.lineBreak),this.lineHeight=nC(e,tk,A.lineHeight),this.listStyleImage=nC(e,tH,A.listStyleImage),this.listStylePosition=nC(e,tD,A.listStylePosition),this.listStyleType=nC(e,tL,A.listStyleType),this.marginTop=nC(e,tT,A.marginTop),this.marginRight=nC(e,tM,A.marginRight),this.marginBottom=nC(e,tO,A.marginBottom),this.marginLeft=nC(e,tN,A.marginLeft),this.opacity=nC(e,t7,A.opacity);var t,n,r=nC(e,tP,A.overflow);this.overflowX=r[0],this.overflowY=r[+(r.length>1)],this.overflowWrap=nC(e,t_,A.overflowWrap),this.paddingTop=nC(e,tV,A.paddingTop),this.paddingRight=nC(e,tG,A.paddingRight),this.paddingBottom=nC(e,tz,A.paddingBottom),this.paddingLeft=nC(e,tW,A.paddingLeft),this.paintOrder=nC(e,nf,A.paintOrder),this.position=nC(e,tX,A.position),this.textAlign=nC(e,t$,A.textAlign),this.textDecorationColor=nC(e,t9,null!=(t=A.textDecorationColor)?t:A.color),this.textDecorationLine=nC(e,ne,null!=(n=A.textDecorationLine)?n:A.textDecoration),this.textShadow=nC(e,tY,A.textShadow),this.textTransform=nC(e,tJ,A.textTransform),this.transform=nC(e,tq,A.transform),this.transformOrigin=nC(e,t2,A.transformOrigin),this.rotate=nC(e,t4,A.rotate),this.visibility=nC(e,t3,A.visibility),this.webkitTextStrokeColor=nC(e,ng,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=nC(e,np,A.webkitTextStrokeWidth),this.wordBreak=nC(e,t5,A.wordBreak),this.zIndex=nC(e,t6,A.zIndex),this.objectFit=nC(e,nB,A.objectFit)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return e9(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform||null!==this.rotate},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return no(this.display,4)||no(this.display,0x2000000)||no(this.display,0x10000000)||no(this.display,0x20000000)||no(this.display,0x4000000)||no(this.display,0x8000000)},e}(),ny=function(e,A){this.content=nC(e,ns,A.content),this.quotes=nC(e,nu,A.quotes)},nx=function(e,A){this.counterIncrement=nC(e,na,A.counterIncrement),this.counterReset=nC(e,nl,A.counterReset)},nC=function(e,A,t){var n=new eM,r=null!=t?t.toString():A.initialValue;n.write(r);var i=new eO(n.read());switch(A.type){case 2:var o=i.parseComponentValue();return A.parse(e,e_(o)?o.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return e5(e,i.parseComponentValue());case"color":return Ak(e,i.parseComponentValue());case"image":return A5(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return eX(s)?s:eq;case"length-percentage":var a=i.parseComponentValue();return eY(a)?a:eq;case"time":return t8(e,i.parseComponentValue())}}},nb=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},nv=function(e,A){var t=nb(e);return 1===t||A===t},nQ=function(e,A){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,nv(A,3),this.styles=new nw(e,window.getComputedStyle(A,null)),rI(A)&&(this.styles.animationDuration.some(function(e){return e>0})&&(A.style.animationDuration="0s"),null!==this.styles.transform&&(A.style.transform="none"),null!==this.styles.rotate&&(A.style.rotate="none")),this.bounds=I(this.context,A),nv(A,4)&&(this.flags|=16)},nF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nU="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nE=0;nE<nF.length;nE++)nU[nF.charCodeAt(nE)]=nE;for(var nI=2112,nS=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},nk=function(){function e(e,A,t,n,r,i){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=i}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=((A=this.index[e>>5])<<2)+(31&e),this.data[A];if(e<=65535)return A=((A=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[A];if(e<this.highStart)return A=nI-32+(e>>11),A=this.index[A]+(e>>5&63),A=((A=this.index[A])<<2)+(31&e),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),nj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nH="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nD=0;nD<nj.length;nD++)nH[nj.charCodeAt(nD)]=nD;var nL=function(e){for(var A=[],t=0,n=e.length;t<n;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var i=e.charCodeAt(t++);(64512&i)==56320?A.push(((1023&r)<<10)+(1023&i)+65536):(A.push(r),t--)}else A.push(r)}return A},nR=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var n=[],r=-1,i="";++r<t;){var o=e[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},nT=(c=Array.isArray(l=function(e){var A,t,n,r,i,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=nU[e.charCodeAt(A)],n=nU[e.charCodeAt(A+1)],r=nU[e.charCodeAt(A+2)],i=nU[e.charCodeAt(A+3)],c[a++]=t<<2|n>>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return l}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="))?function(e){for(var A=e.length,t=[],n=0;n<A;n+=4)t.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return t}(l):new Uint32Array(l),d=nS(u=Array.isArray(l)?function(e){for(var A=e.length,t=[],n=0;n<A;n+=2)t.push(e[n+1]<<8|e[n]);return t}(l):new Uint16Array(l),12,c[4]/2),f=2===c[5]?nS(u,(24+c[4])/2):(h=Math.ceil((24+c[4])/4),c.slice?c.slice(h,void 0):new Uint32Array(Array.prototype.slice.call(c,h,void 0))),new nk(c[0],c[1],c[2],c[3],d,f)),nM=function(e){return nT.get(e)},nO=function(e,A,t){var n=t-2,r=A[n],i=A[t-1],o=A[t];if(2===i&&3===o)return"×";if(2===i||3===i||4===i||2===o||3===o||4===o)return"÷";if(8===i&&-1!==[8,9,11,12].indexOf(o)||(11===i||9===i)&&(9===o||10===o)||(12===i||10===i)&&10===o||13===o||5===o||7===o||1===i)return"×";if(13===i&&14===o){for(;5===r;)r=A[--n];if(14===r)return"×"}if(15===i&&15===o){for(var s=0;15===r;)s++,r=A[--n];if(s%2==0)return"×"}return"÷"},nN=function(e){var A=nL(e),t=A.length,n=0,r=0,i=A.map(nM);return{next:function(){if(n>=t)return{done:!0,value:null};for(var e="×";n<t&&"×"===(e=nO(A,i,++n)););if("×"!==e||n===t){var o=nR.apply(null,A.slice(r,n));return r=n,{value:o,done:!1}}return{done:!0,value:null}}}},nP=function(e){for(var A,t=nN(e),n=[];!(A=t.next()).done;)A.value&&n.push(A.value.slice());return n},n_=function(e){if(e.createRange){var A=e.createRange();if(A.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height="".concat(123,"px"),t.style.display="block",e.body.appendChild(t),A.selectNode(t);var n=Math.round(A.getBoundingClientRect().height);if(e.body.removeChild(t),123===n)return!0}}return!1},nK=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var n=A.firstChild,r=k(n.data).map(function(e){return j(e)}),i=0,o={},s=r.every(function(e,A){t.setStart(n,i),t.setEnd(n,i+e.length);var r=t.getBoundingClientRect();i+=e.length;var s=r.x>o.x||r.y>o.y;return o=r,0===A||s});return e.body.removeChild(A),s},nV=function(e){var A=new Image,t=e.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(A,0,0),t.toDataURL()}catch(e){return!1}return!0},nG=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},nz=function(e){var A=e.createElement("canvas");A.width=100,A.height=100;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=A.toDataURL();n.src=r;var i=nW(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),n$(i).then(function(A){t.drawImage(A,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var i=e.createElement("div");return i.style.backgroundImage="url(".concat(r,")"),i.style.height="".concat(100,"px"),nG(n)?n$(nW(100,100,0,0,i)):Promise.reject(!1)}).then(function(e){return t.drawImage(e,0,0),nG(t.getImageData(0,0,100,100).data)}).catch(function(){return!1})},nW=function(e,A,t,n,r){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",A.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(r),o},n$=function(e){return new Promise(function(A,t){var n=new Image;n.onload=function(){return A(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(new XMLSerializer().serializeToString(e)))})},nX={get SUPPORT_RANGE_BOUNDS(){var nY=n_(document);return Object.defineProperty(nX,"SUPPORT_RANGE_BOUNDS",{value:nY}),nY},get SUPPORT_WORD_BREAKING(){var nJ=nX.SUPPORT_RANGE_BOUNDS&&nK(document);return Object.defineProperty(nX,"SUPPORT_WORD_BREAKING",{value:nJ}),nJ},get SUPPORT_SVG_DRAWING(){var nq=nV(document);return Object.defineProperty(nX,"SUPPORT_SVG_DRAWING",{value:nq}),nq},get SUPPORT_FOREIGNOBJECT_DRAWING(){var nZ="function"==typeof Array.from&&"function"==typeof window.fetch?nz(document):Promise.resolve(!1);return Object.defineProperty(nX,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:nZ}),nZ},get SUPPORT_CORS_IMAGES(){var n0=void 0!==new Image().crossOrigin;return Object.defineProperty(nX,"SUPPORT_CORS_IMAGES",{value:n0}),n0},get SUPPORT_RESPONSE_TYPE(){var n1="string"==typeof new XMLHttpRequest().responseType;return Object.defineProperty(nX,"SUPPORT_RESPONSE_TYPE",{value:n1}),n1},get SUPPORT_CORS_XHR(){var n2="withCredentials"in new XMLHttpRequest;return Object.defineProperty(nX,"SUPPORT_CORS_XHR",{value:n2}),n2},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var n4=!!("undefined"!=typeof Intl&&Intl.Segmenter);return Object.defineProperty(nX,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:n4}),n4}},n3=function(e,A){this.text=e,this.bounds=A},n5=function(e,A,t,n){var r=n9(A,t),i=[],o=0;return r.forEach(function(A){if(t.textDecorationLine.length||A.trim().length>0)if(nX.SUPPORT_RANGE_BOUNDS){var r=n8(n,o,A.length).getClientRects();if(r.length>1){var s=n7(A),a=0;s.forEach(function(A){i.push(new n3(A,E.fromDOMRectList(e,n8(n,a+o,A.length).getClientRects()))),a+=A.length})}else i.push(new n3(A,E.fromDOMRectList(e,r)))}else{var l=n.splitText(A.length);i.push(new n3(A,n6(e,n))),n=l}else nX.SUPPORT_RANGE_BOUNDS||(n=n.splitText(A.length));o+=A.length}),i},n6=function(e,A){var t=A.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(n,A);var i=I(e,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return E.EMPTY},n8=function(e,A,t){var n=e.ownerDocument;if(!n)throw Error("Node has no owner document");var r=n.createRange();return r.setStart(e,A),r.setEnd(e,A+t),r},n7=function(e){return nX.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)).map(function(e){return e.segment}):nP(e)},n9=function(e,A){return 0!==A.letterSpacing?n7(e):nX.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"word"}).segment(e)).map(function(e){return e.segment}):rA(e,A)},re=[32,160,4961,65792,65793,4153,4241],rA=function(e,A){for(var t,n=eo(e,{lineBreak:A.lineBreak,wordBreak:"break-word"===A.overflowWrap?"break-word":A.wordBreak}),r=[];!(t=n.next()).done;)!function(){if(t.value){var e=k(t.value.slice()),A="";e.forEach(function(e){-1===re.indexOf(e)?A+=j(e):(A.length&&r.push(A),r.push(j(e)),A="")}),A.length&&r.push(A)}}();return r},rt=function(e,A,t){this.text=rn(A.data,t.textTransform),this.textBounds=n5(e,this.text,t,A)},rn=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(rr,ri);case 2:return e.toUpperCase();default:return e}},rr=/(^|\s|:|-|\(|\))([a-z])/g,ri=function(e,A,t){return e.length>0?A+t.toUpperCase():e},ro=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return b(A,e),A}(nQ),rs=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return b(A,e),A}(nQ),ra=function(e){function A(A,t){var n=e.call(this,A,t)||this,r=new XMLSerializer,i=I(A,t);return t.setAttribute("width","".concat(i.width,"px")),t.setAttribute("height","".concat(i.height,"px")),n.svg="data:image/svg+xml,".concat(encodeURIComponent(r.serializeToString(t))),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return b(A,e),A}(nQ),rl=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.value=t.value,n}return b(A,e),A}(nQ),rc=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return b(A,e),A}(nQ),ru=[{type:15,flags:0,unit:"px",number:3}],rd=[{type:16,flags:0,number:50}],rh=function(e){var A=e.type===rp?Array(e.value.length+1).join("•"):e.value;return 0===A.length?e.placeholder||"":A},rf="checkbox",rg="radio",rp="password",rB=function(e){function A(A,t){var n,r=e.call(this,A,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=rh(t),(r.type===rf||r.type===rg)&&(r.styles.backgroundColor=0xdededeff,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=0xa5a5a5ff,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=(n=r.bounds).width>n.height?new E(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width<n.height?new E(n.left,n.top+(n.height-n.width)/2,n.width,n.width):n),r.type){case rf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ru;break;case rg:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=rd}return r}return b(A,e),A}(nQ),rm=function(e){function A(A,t){var n=e.call(this,A,t)||this,r=t.options[t.selectedIndex||0];return n.value=r&&r.text||"",n}return b(A,e),A}(nQ),rw=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.value=t.value,n}return b(A,e),A}(nQ),ry=function(e){function A(A,t){var n=e.call(this,A,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=rv(A,t.contentWindow.document.documentElement);var r=t.contentWindow.document.documentElement?AM(A,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):AO.TRANSPARENT,i=t.contentWindow.document.body?AM(A,getComputedStyle(t.contentWindow.document.body).backgroundColor):AO.TRANSPARENT;n.backgroundColor=e9(r)?e9(i)?n.styles.backgroundColor:i:r}}catch(e){}return n}return b(A,e),A}(nQ),rx=["OL","UL","MENU"],rC=function(e,A,t,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,rU(r)&&r.data.length>0)t.textNodes.push(new rt(e,r,t.styles));else if(rE(r))if(rK(r)&&r.assignedNodes)r.assignedNodes().forEach(function(A){return rC(e,A,t,n)});else{var o=rb(e,r);o.styles.isVisible()&&(rQ(r,o,n)?o.flags|=4:rF(o.styles)&&(o.flags|=2),-1!==rx.indexOf(r.tagName)&&(o.flags|=8),t.elements.push(o),r.slot,r.shadowRoot?rC(e,r.shadowRoot,o,n):rP(r)||rD(r)||r_(r)||rC(e,r,o,n))}},rb=function(e,A){return rM(A)?new ro(e,A):rR(A)?new rs(e,A):rD(A)?new ra(e,A):rk(A)?new rl(e,A):rj(A)?new rc(e,A):rH(A)?new rB(e,A):r_(A)?new rm(e,A):rP(A)?new rw(e,A):rO(A)?new ry(e,A):new nQ(e,A)},rv=function(e,A){var t=rb(e,A);return t.flags|=4,rC(e,A,t,t),t},rQ=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||rL(e)&&t.styles.isTransparent()},rF=function(e){return e.isPositioned()||e.isFloating()},rU=function(e){return e.nodeType===Node.TEXT_NODE},rE=function(e){return e.nodeType===Node.ELEMENT_NODE},rI=function(e){return rE(e)&&void 0!==e.style&&!rS(e)},rS=function(e){return"object"==typeof e.className},rk=function(e){return"LI"===e.tagName},rj=function(e){return"OL"===e.tagName},rH=function(e){return"INPUT"===e.tagName},rD=function(e){return"svg"===e.tagName},rL=function(e){return"BODY"===e.tagName},rR=function(e){return"CANVAS"===e.tagName},rT=function(e){return"VIDEO"===e.tagName},rM=function(e){return"IMG"===e.tagName},rO=function(e){return"IFRAME"===e.tagName},rN=function(e){return"STYLE"===e.tagName},rP=function(e){return"TEXTAREA"===e.tagName},r_=function(e){return"SELECT"===e.tagName},rK=function(e){return"SLOT"===e.tagName},rV=function(e){return e.tagName.indexOf("-")>0},rG=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var A=this;e.forEach(function(e){return A.counters[e].pop()})},e.prototype.parse=function(e){var A=this,t=e.counterIncrement,n=e.counterReset,r=!0;null!==t&&t.forEach(function(e){var t=A.counters[e.counter];t&&0!==e.increment&&(r=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=e.increment)});var i=[];return r&&n.forEach(function(e){var t=A.counters[e.counter];i.push(e.counter),t||(t=A.counters[e.counter]=[]),t.push(e.reset)}),i},e}(),rz={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},rW={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},r$={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},rX={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},rY=function(e,A,t,n,r,i){return e<A||e>t?r5(e,r,i.length>0):n.integers.reduce(function(A,t,r){for(;e>=t;)e-=t,A+=n.values[r];return A},"")+i},rJ=function(e,A,t,n){var r="";do!t&&e--,r=n(e)+r,e/=A;while(e*A>=A)return r},rq=function(e,A,t,n,r){var i=t-A+1;return(e<0?"-":"")+(rJ(Math.abs(e),i,n,function(e){return j(Math.floor(e%i)+A)})+r)},rZ=function(e,A,t){void 0===t&&(t=". ");var n=A.length;return rJ(Math.abs(e),n,!1,function(e){return A[Math.floor(e%n)]})+t},r0=function(e,A,t,n,r,i){if(e<-9999||e>9999)return r5(e,4,r.length>0);var o=Math.abs(e),s=r;if(0===o)return A[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&no(i,1)&&""!==s?s=A[l]+s:l>1||1===l&&0===a||1===l&&1===a&&no(i,2)||1===l&&1===a&&no(i,4)&&e>100||1===l&&a>1&&no(i,8)?s=A[l]+(a>0?t[a-1]:"")+s:1===l&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(e<0?n:"")+s},r1="十百千萬",r2="拾佰仟萬",r4="マイナス",r3="마이너스",r5=function(e,A,t){var n=t?". ":"",r=t?"、":"",i=t?", ":"",o=t?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=rq(e,48,57,!0,n);return s.length<4?"0".concat(s):s;case 4:return rZ(e,"〇一二三四五六七八九",r);case 6:return rY(e,1,3999,rz,3,n).toLowerCase();case 7:return rY(e,1,3999,rz,3,n);case 8:return rq(e,945,969,!1,n);case 9:return rq(e,97,122,!1,n);case 10:return rq(e,65,90,!1,n);case 11:return rq(e,1632,1641,!0,n);case 12:case 49:return rY(e,1,9999,rW,3,n);case 35:return rY(e,1,9999,rW,3,n).toLowerCase();case 13:return rq(e,2534,2543,!0,n);case 14:case 30:return rq(e,6112,6121,!0,n);case 15:return rZ(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return rZ(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return r0(e,"零一二三四五六七八九",r1,"負",r,14);case 47:return r0(e,"零壹貳參肆伍陸柒捌玖",r2,"負",r,15);case 42:return r0(e,"零一二三四五六七八九",r1,"负",r,14);case 41:return r0(e,"零壹贰叁肆伍陆柒捌玖",r2,"负",r,15);case 26:return r0(e,"〇一二三四五六七八九","十百千万",r4,r,0);case 25:return r0(e,"零壱弐参四伍六七八九","拾百千万",r4,r,7);case 31:return r0(e,"영일이삼사오육칠팔구","십백천만",r3,i,7);case 33:return r0(e,"零一二三四五六七八九","十百千萬",r3,i,0);case 32:return r0(e,"零壹貳參四五六七八九","拾百千",r3,i,7);case 18:return rq(e,2406,2415,!0,n);case 20:return rY(e,1,19999,rX,3,n);case 21:return rq(e,2790,2799,!0,n);case 22:return rq(e,2662,2671,!0,n);case 52:return rY(e,1,10999,r$,3,n);case 23:return rZ(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return rZ(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return rq(e,3302,3311,!0,n);case 28:return rZ(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return rZ(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return rq(e,3792,3801,!0,n);case 37:return rq(e,6160,6169,!0,n);case 38:return rq(e,4160,4169,!0,n);case 39:return rq(e,2918,2927,!0,n);case 40:return rq(e,1776,1785,!0,n);case 43:return rq(e,3046,3055,!0,n);case 44:return rq(e,3174,3183,!0,n);case 45:return rq(e,3664,3673,!0,n);case 46:return rq(e,3872,3881,!0,n);default:return rq(e,48,57,!0,n)}},r6="data-html2canvas-ignore",r8=function(){function e(e,A,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=A,this.counters=new rG,this.quoteDepth=0,!A.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,A){var t=this,n=r7(e,A);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var r=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,o=n.contentWindow,s=o.document,a=iA(n).then(function(){return Q(t,void 0,void 0,function(){var e,t;return F(this,function(r){switch(r.label){case 0:if(this.scrolledElements.forEach(is),o&&(o.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==A.top||o.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-A.left,o.scrollY-A.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement))return[2,Promise.reject("Error finding the ".concat(this.referenceElement.nodeName," in the cloned document"))];if(!(s.fonts&&s.fonts.ready))return[3,2];return[4,s.fonts.ready];case 1:r.sent(),r.label=2;case 2:if(!/(AppleWebKit)/g.test(navigator.userAgent))return[3,4];return[4,ie(s)];case 3:r.sent(),r.label=4;case 4:if("function"==typeof e)return[2,Promise.resolve().then(function(){return e(s,t)}).then(function(){return n})];return[2,n]}})})}),l=s.baseURI;s.open(),s.write("".concat(ii(document.doctype),"<html></html>")),io(this.referenceElement.ownerDocument,r,i);var c=s.adoptNode(this.documentElement);return ih(c,l),s.replaceChild(c,s.documentElement),s.close(),a},e.prototype.createElementClone=function(e){if(nv(e,2),rR(e))return this.createCanvasClone(e);if(rT(e))return this.createVideoClone(e);if(rN(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return(rM(A)&&(rM(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),"lazy"===A.loading&&(A.loading="eager")),rV(A))?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return ir(e.style,A),A},e.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var t=[].slice.call(A.cssRules,0).reduce(function(e,A){return A&&"string"==typeof A.cssText?e+A.cssText:e},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var A,t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),i=n.getContext("2d",{willReadFrequently:!0});if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var o=null!=(A=e.getContext("webgl2"))?A:e.getContext("webgl");if(o){var s=o.getContextAttributes();(null==s?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},e.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var t=A.getContext("2d");try{return t&&(t.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||t.getImageData(0,0,A.width,A.height)),A}catch(A){this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},e.prototype.appendChildNode=function(e,A,t){rE(A)&&("SCRIPT"===A.tagName||A.hasAttribute(r6)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(A))||this.options.copyStyles&&rE(A)&&rN(A)||e.appendChild(this.cloneNode(A,t))},e.prototype.cloneChildNodes=function(e,A,t){for(var n=this,r=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;r;r=r.nextSibling)if(rE(r)&&rK(r)&&"function"==typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach(function(e){return n.appendChildNode(A,e,t)})}else this.appendChildNode(A,r,t)},e.prototype.cloneNode=function(e,A){if(rU(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&rE(e)&&(rI(e)||rS(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&rI(n)&&(this.clonedReferenceElement=n),rL(n)&&iu(n);var s=this.counters.parse(new nx(this.context,r)),a=this.resolvePseudoContent(e,n,i,y.BEFORE);rV(e)&&(A=!0),rT(e)||this.cloneChildNodes(e,n,A),a&&n.insertBefore(a,n.firstChild);var l=this.resolvePseudoContent(e,n,o,y.AFTER);return l&&n.appendChild(l),this.counters.pop(s),(r&&(this.options.copyStyles||rS(e))&&!rO(e)||A)&&ir(r,n),(0!==e.scrollTop||0!==e.scrollLeft)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(rP(e)||r_(e))&&(rP(n)||r_(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,A,t,n){var r=this;if(t){var i=t.content,o=A.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new nx(this.context,t));var s=new ny(this.context,t),a=o.createElement("html2canvaspseudoelement");ir(t,a),s.content.forEach(function(A){if(0===A.type)a.appendChild(o.createTextNode(A.value));else if(22===A.type){var t=o.createElement("img");t.src=A.value,t.style.opacity="1",a.appendChild(t)}else if(18===A.type){if("attr"===A.name){var n=A.values.filter(e_);n.length&&a.appendChild(o.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===A.name){var i=A.values.filter(ez),l=i[0],c=i[1];if(l&&e_(l)){var u=r.counters.getCounterValue(l.value),d=c&&e_(c)?tL.parse(r.context,c.value):3;a.appendChild(o.createTextNode(r5(u,d,!1)))}}else if("counters"===A.name){var h=A.values.filter(ez),l=h[0],f=h[1],c=h[2];if(l&&e_(l)){var g=r.counters.getCounterValues(l.value),p=c&&e_(c)?tL.parse(r.context,c.value):3,B=f&&0===f.type?f.value:"",m=g.map(function(e){return r5(e,p,!1)}).join(B);a.appendChild(o.createTextNode(m))}}}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(o.createTextNode(nd(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(nd(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(A.value))}}),a.className="".concat(ia," ").concat(il);var l=n===y.BEFORE?" ".concat(ia):" ".concat(il);return rS(A)?A.className.baseValue+=l:A.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(g=y||(y={}))[g.BEFORE=0]="BEFORE",g[g.AFTER=1]="AFTER";var r7=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(r6,"true"),e.body.appendChild(t),t},r9=function(e){return new Promise(function(A){e.complete||!e.src?A():(e.onload=A,e.onerror=A)})},ie=function(e){return Promise.all([].slice.call(e.images,0).map(r9))},iA=function(e){return new Promise(function(A,t){var n=e.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var t=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),A(e))},50)}})},it=["all","d","content"],ir=function(e,A){for(var t=e.length-1;t>=0;t--){var n=e.item(t);-1===it.indexOf(n)&&A.style.setProperty(n,e.getPropertyValue(n))}return A},ii=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'.concat(e.publicId,'"')),e.systemId&&(A+='"'.concat(e.systemId,'"')),A+=">"),A},io=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},is=function(e){var A=e[0],t=e[1],n=e[2];A.scrollLeft=t,A.scrollTop=n},ia="___html2canvas___pseudoelement_before",il="___html2canvas___pseudoelement_after",ic='{\n content: "" !important;\n display: none !important;\n}',iu=function(e){id(e,".".concat(ia).concat(":before").concat(ic,"\n .").concat(il).concat(":after").concat(ic))},id=function(e,A){var t=e.ownerDocument;if(t){var n=t.createElement("style");n.textContent=A,e.appendChild(n)}},ih=function(e,A){var t,n=e.ownerDocument.createElement("base");n.href=A;var r=e.getElementsByTagName("head").item(0);null==r||r.insertBefore(n,null!=(t=null==r?void 0:r.firstChild)?t:null)},ig=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),ip=function(){function e(e,A){this.context=e,this._options=A,this._cache={}}return e.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(ib(e)||iy(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o=this;return F(this,function(s){switch(s.label){case 0:if("function"!=typeof this._options.customIsSameOrigin)return[3,2];return[4,this._options.customIsSameOrigin(e,ig.isSameOrigin)];case 1:return t=s.sent(),[3,3];case 2:t=ig.isSameOrigin(e),s.label=3;case 3:if(A=t,n=!ix(e)&&!0===this._options.useCORS&&nX.SUPPORT_CORS_IMAGES&&!A,r=!ix(e)&&!A&&!ib(e)&&"string"==typeof this._options.proxy&&nX.SUPPORT_CORS_XHR&&!n,!A&&!1===this._options.allowTaint&&!ix(e)&&!ib(e)&&!r&&!n)return[2];if(i=e,!r)return[3,5];return[4,this.proxy(i)];case 4:i=s.sent(),s.label=5;case 5:return this.context.logger.debug("Added image ".concat(e.substring(0,256))),[4,new Promise(function(e,A){var t=new Image;t.onload=function(){return e(t)},t.onerror=A,(iC(i)||n)&&(t.crossOrigin="anonymous"),t.src=i,!0===t.complete&&setTimeout(function(){return e(t)},500),o._options.imageTimeout>0&&setTimeout(function(){return A("Timed out (".concat(o._options.imageTimeout,"ms) loading image"))},o._options.imageTimeout)})];case 6:return[2,s.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var A=this,t=this._options.proxy;if(!t)throw Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(r,i){var o=nX.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)r(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return r(e.result)},!1),e.addEventListener("error",function(e){return i(e)},!1),e.readAsDataURL(s.response)}else i("Failed to proxy resource ".concat(n," with status code ").concat(s.status))},s.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET","".concat(t).concat(a,"url=").concat(encodeURIComponent(e),"&responseType=").concat(o)),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),A._options.imageTimeout){var l=A._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return i("Timed out (".concat(l,"ms) proxying ").concat(n))}}s.send()})},e}(),iB=/^data:image\/svg\+xml/i,im=/^data:image\/.*;base64,/i,iw=/^data:image\/.*/i,iy=function(e){return nX.SUPPORT_SVG_DRAWING||!iv(e)},ix=function(e){return iw.test(e)},iC=function(e){return im.test(e)},ib=function(e){return"blob"===e.substr(0,4)},iv=function(e){return"svg"===e.substr(-3).toLowerCase()||iB.test(e)},iQ=function(){function e(e,A){this.type=0,this.x=e,this.y=A}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),iF=function(e,A,t){return new iQ(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},iU=function(){function e(e,A,t,n){this.type=1,this.start=e,this.startControl=A,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,t){var n=iF(this.start,this.startControl,A),r=iF(this.startControl,this.endControl,A),i=iF(this.endControl,this.end,A),o=iF(n,r,A),s=iF(r,i,A),a=iF(o,s,A);return t?new e(this.start,n,o,a):new e(a,s,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),iE=function(e){return 1===e.type},iI=function(e){var A=e.styles,t=e.bounds,n=e1(A.borderTopLeftRadius,t.width,t.height),r=n[0],i=n[1],o=e1(A.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],l=e1(A.borderBottomRightRadius,t.width,t.height),c=l[0],u=l[1],d=e1(A.borderBottomLeftRadius,t.width,t.height),h=d[0],f=d[1],g=[];g.push((r+s)/t.width),g.push((h+c)/t.width),g.push((i+f)/t.height),g.push((a+u)/t.height);var p=Math.max.apply(Math,g);p>1&&(r/=p,i/=p,s/=p,a/=p,c/=p,u/=p,h/=p,f/=p);var B=t.width-s,m=t.height-u,w=t.width-c,y=t.height-f,C=A.borderTopWidth,b=A.borderRightWidth,v=A.borderBottomWidth,Q=A.borderLeftWidth,F=e2(A.paddingTop,e.bounds.width),U=e2(A.paddingRight,e.bounds.width),E=e2(A.paddingBottom,e.bounds.width),I=e2(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?iS(t.left+Q/3,t.top+C/3,r-Q/3,i-C/3,x.TOP_LEFT):new iQ(t.left+Q/3,t.top+C/3),this.topRightBorderDoubleOuterBox=r>0||i>0?iS(t.left+B,t.top+C/3,s-b/3,a-C/3,x.TOP_RIGHT):new iQ(t.left+t.width-b/3,t.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?iS(t.left+w,t.top+m,c-b/3,u-v/3,x.BOTTOM_RIGHT):new iQ(t.left+t.width-b/3,t.top+t.height-v/3),this.bottomLeftBorderDoubleOuterBox=h>0||f>0?iS(t.left+Q/3,t.top+y,h-Q/3,f-v/3,x.BOTTOM_LEFT):new iQ(t.left+Q/3,t.top+t.height-v/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?iS(t.left+2*Q/3,t.top+2*C/3,r-2*Q/3,i-2*C/3,x.TOP_LEFT):new iQ(t.left+2*Q/3,t.top+2*C/3),this.topRightBorderDoubleInnerBox=r>0||i>0?iS(t.left+B,t.top+2*C/3,s-2*b/3,a-2*C/3,x.TOP_RIGHT):new iQ(t.left+t.width-2*b/3,t.top+2*C/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?iS(t.left+w,t.top+m,c-2*b/3,u-2*v/3,x.BOTTOM_RIGHT):new iQ(t.left+t.width-2*b/3,t.top+t.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=h>0||f>0?iS(t.left+2*Q/3,t.top+y,h-2*Q/3,f-2*v/3,x.BOTTOM_LEFT):new iQ(t.left+2*Q/3,t.top+t.height-2*v/3),this.topLeftBorderStroke=r>0||i>0?iS(t.left+Q/2,t.top+C/2,r-Q/2,i-C/2,x.TOP_LEFT):new iQ(t.left+Q/2,t.top+C/2),this.topRightBorderStroke=r>0||i>0?iS(t.left+B,t.top+C/2,s-b/2,a-C/2,x.TOP_RIGHT):new iQ(t.left+t.width-b/2,t.top+C/2),this.bottomRightBorderStroke=c>0||u>0?iS(t.left+w,t.top+m,c-b/2,u-v/2,x.BOTTOM_RIGHT):new iQ(t.left+t.width-b/2,t.top+t.height-v/2),this.bottomLeftBorderStroke=h>0||f>0?iS(t.left+Q/2,t.top+y,h-Q/2,f-v/2,x.BOTTOM_LEFT):new iQ(t.left+Q/2,t.top+t.height-v/2),this.topLeftBorderBox=r>0||i>0?iS(t.left,t.top,r,i,x.TOP_LEFT):new iQ(t.left,t.top),this.topRightBorderBox=s>0||a>0?iS(t.left+B,t.top,s,a,x.TOP_RIGHT):new iQ(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||u>0?iS(t.left+w,t.top+m,c,u,x.BOTTOM_RIGHT):new iQ(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=h>0||f>0?iS(t.left,t.top+y,h,f,x.BOTTOM_LEFT):new iQ(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||i>0?iS(t.left+Q,t.top+C,Math.max(0,r-Q),Math.max(0,i-C),x.TOP_LEFT):new iQ(t.left+Q,t.top+C),this.topRightPaddingBox=s>0||a>0?iS(t.left+Math.min(B,t.width-b),t.top+C,B>t.width+b?0:Math.max(0,s-b),Math.max(0,a-C),x.TOP_RIGHT):new iQ(t.left+t.width-b,t.top+C),this.bottomRightPaddingBox=c>0||u>0?iS(t.left+Math.min(w,t.width-Q),t.top+Math.min(m,t.height-v),Math.max(0,c-b),Math.max(0,u-v),x.BOTTOM_RIGHT):new iQ(t.left+t.width-b,t.top+t.height-v),this.bottomLeftPaddingBox=h>0||f>0?iS(t.left+Q,t.top+Math.min(y,t.height-v),Math.max(0,h-Q),Math.max(0,f-v),x.BOTTOM_LEFT):new iQ(t.left+Q,t.top+t.height-v),this.topLeftContentBox=r>0||i>0?iS(t.left+Q+I,t.top+C+F,Math.max(0,r-(Q+I)),Math.max(0,i-(C+F)),x.TOP_LEFT):new iQ(t.left+Q+I,t.top+C+F),this.topRightContentBox=s>0||a>0?iS(t.left+Math.min(B,t.width+Q+I),t.top+C+F,B>t.width+Q+I?0:s-Q+I,a-(C+F),x.TOP_RIGHT):new iQ(t.left+t.width-(b+U),t.top+C+F),this.bottomRightContentBox=c>0||u>0?iS(t.left+Math.min(w,t.width-(Q+I)),t.top+Math.min(m,t.height+C+F),Math.max(0,c-(b+U)),u-(v+E),x.BOTTOM_RIGHT):new iQ(t.left+t.width-(b+U),t.top+t.height-(v+E)),this.bottomLeftContentBox=h>0||f>0?iS(t.left+Q+I,t.top+y,Math.max(0,h-(Q+I)),f-(v+E),x.BOTTOM_LEFT):new iQ(t.left+Q+I,t.top+t.height-(v+E))};(p=x||(x={}))[p.TOP_LEFT=0]="TOP_LEFT",p[p.TOP_RIGHT=1]="TOP_RIGHT",p[p.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",p[p.BOTTOM_LEFT=3]="BOTTOM_LEFT";var iS=function(e,A,t,n,r){var i=(Math.sqrt(2)-1)/3*4,o=t*i,s=n*i,a=e+t,l=A+n;switch(r){case x.TOP_LEFT:return new iU(new iQ(e,l),new iQ(e,l-s),new iQ(a-o,A),new iQ(a,A));case x.TOP_RIGHT:return new iU(new iQ(e,A),new iQ(e+o,A),new iQ(a,l-s),new iQ(a,l));case x.BOTTOM_RIGHT:return new iU(new iQ(a,A),new iQ(a,A+s),new iQ(e+o,l),new iQ(e,l));case x.BOTTOM_LEFT:default:return new iU(new iQ(a,l),new iQ(a-o,l),new iQ(e,A+s),new iQ(e,A))}},ik=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ij=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},iH=function(e,A,t){this.offsetX=e,this.offsetY=A,this.matrix=t,this.type=0,this.target=6},iD=function(e,A){this.path=e,this.target=A,this.type=1},iL=function(e){this.opacity=e,this.type=2,this.target=6},iR=function(e){return 1===e.type},iT=function(e,A){return e.length===A.length&&e.some(function(e,t){return e===A[t]})},iM=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},iO=function(){function e(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new iI(this.container),this.container.styles.opacity<1&&this.effects.push(new iL(this.container.styles.opacity)),null!==this.container.styles.rotate){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.rotate*Math.PI/180,i=Math.cos(r),o=Math.sin(r);this.effects.push(new iH(t,n,[i,o,-o,i,0,0]))}if(null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new iH(t,n,s))}if(0!==this.container.styles.overflowX){var a=ik(this.curves),l=ij(this.curves);iT(a,l)?this.effects.push(new iD(a,6)):(this.effects.push(new iD(a,2)),this.effects.push(new iD(l,4)))}}return e.prototype.getEffects=function(e){for(var A=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);t;){var r=t.effects.filter(function(e){return!iR(e)});if(A||0!==t.container.styles.position||!t.parent){if(A=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=ik(t.curves),o=ij(t.curves);iT(i,o)||n.unshift(new iD(o,6))}n.unshift.apply(n,r)}else n.unshift.apply(n,r);t=t.parent}return n.filter(function(A){return no(A.target,e)})},e}(),iN=function(e,A,t,n){e.container.elements.forEach(function(r){var i=no(r.flags,4),o=no(r.flags,2),s=new iO(r,e);no(r.styles.display,2048)&&n.push(s);var a=no(r.flags,8)?[]:n;if(i||o){var l=i||r.styles.isPositioned()?t:A,c=new iM(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(e,A){if(u>e.element.container.styles.zIndex.order)d=A;else if(d>0)return!0;return!1}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var h=0;l.positiveZIndex.some(function(e,A){if(u>=e.element.container.styles.zIndex.order)h=A+1;else if(h>0)return!0;return!1}),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);iN(s,c,i?c:t,a)}else r.styles.isInlineLevel()?A.inlineLevel.push(s):A.nonInlineLevel.push(s),iN(s,A,t,a);no(r.flags,8)&&iP(r,a)})},iP=function(e,A){for(var t=e instanceof rc?e.start:1,n=e instanceof rc&&e.reversed,r=0;r<A.length;r++){var i=A[r];i.container instanceof rl&&"number"==typeof i.container.value&&0!==i.container.value&&(t=i.container.value),i.listValue=r5(t,i.container.styles.listStyleType,!0),t+=n?-1:1}},i_=function(e){var A=new iO(e,null),t=new iM(A),n=[];return iN(A,t,t,n),iP(A.container,n),t},iK=function(e,A){switch(A){case 0:return i$(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return i$(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return i$(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return i$(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},iV=function(e,A){switch(A){case 0:return i$(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return i$(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return i$(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return i$(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},iG=function(e,A){switch(A){case 0:return i$(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return i$(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return i$(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return i$(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},iz=function(e,A){switch(A){case 0:return iW(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return iW(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return iW(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return iW(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},iW=function(e,A){var t=[];return iE(e)?t.push(e.subdivide(.5,!1)):t.push(e),iE(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},i$=function(e,A,t,n){var r=[];return iE(e)?r.push(e.subdivide(.5,!1)):r.push(e),iE(t)?r.push(t.subdivide(.5,!0)):r.push(t),iE(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),iE(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},iX=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},iY=function(e){var A=e.styles,t=e.bounds,n=e2(A.paddingLeft,t.width),r=e2(A.paddingRight,t.width),i=e2(A.paddingTop,t.width),o=e2(A.paddingBottom,t.width);return t.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+o))},iJ=function(e,A,t){var n,r,i=(n=i1(e.styles.backgroundOrigin,A),0===n?e.bounds:2===n?iY(e):iX(e)),o=(r=i1(e.styles.backgroundClip,A),0===r?e.bounds:2===r?iY(e):iX(e)),s=i0(i1(e.styles.backgroundSize,A),t,i),a=s[0],l=s[1],c=e1(i1(e.styles.backgroundPosition,A),i.width-a,i.height-l);return[i2(i1(e.styles.backgroundRepeat,A),c,s,i,o),Math.round(i.left+c[0]),Math.round(i.top+c[1]),a=Math.max(1,a),l=Math.max(1,l)]},iq=function(e){return e_(e)&&e.value===B.AUTO},iZ=function(e){return"number"==typeof e},i0=function(e,A,t){var n=A[0],r=A[1],i=A[2],o=e[0],s=e[1];if(!o)return[0,0];if(eY(o)&&s&&eY(s))return[e2(o,t.width),e2(s,t.height)];var a=iZ(i);if(e_(o)&&(o.value===B.CONTAIN||o.value===B.COVER))return iZ(i)?t.width/t.height<i!=(o.value===B.COVER)?[t.width,t.width/i]:[t.height*i,t.height]:[t.width,t.height];var l=iZ(n),c=iZ(r),u=l||c;if(iq(o)&&(!s||iq(s)))return l&&c?[n,r]:a||u?u&&a?[l?n:r*i,c?r:n/i]:[l?n:t.width,c?r:t.height]:[t.width,t.height];if(a){var d=0,h=0;return eY(o)?d=e2(o,t.width):eY(s)&&(h=e2(s,t.height)),iq(o)?d=h*i:(!s||iq(s))&&(h=d/i),[d,h]}var f=null,g=null;if(eY(o)?f=e2(o,t.width):s&&eY(s)&&(g=e2(s,t.height)),null!==f&&(!s||iq(s))&&(g=l&&c?f/n*r:t.height),null!==g&&iq(o)&&(f=l&&c?g/r*n:t.width),null!==f&&null!==g)return[f,g];throw Error("Unable to calculate background-size for element")},i1=function(e,A){var t=e[A];return void 0===t?e[0]:t},i2=function(e,A,t,n,r){var i=A[0],o=A[1],s=t[0],a=t[1];switch(e){case 2:return[new iQ(Math.round(n.left),Math.round(n.top+o)),new iQ(Math.round(n.left+n.width),Math.round(n.top+o)),new iQ(Math.round(n.left+n.width),Math.round(a+n.top+o)),new iQ(Math.round(n.left),Math.round(a+n.top+o))];case 3:return[new iQ(Math.round(n.left+i),Math.round(n.top)),new iQ(Math.round(n.left+i+s),Math.round(n.top)),new iQ(Math.round(n.left+i+s),Math.round(n.height+n.top)),new iQ(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new iQ(Math.round(n.left+i),Math.round(n.top+o)),new iQ(Math.round(n.left+i+s),Math.round(n.top+o)),new iQ(Math.round(n.left+i+s),Math.round(n.top+o+a)),new iQ(Math.round(n.left+i),Math.round(n.top+o+a))];default:return[new iQ(Math.round(r.left),Math.round(r.top)),new iQ(Math.round(r.left+r.width),Math.round(r.top)),new iQ(Math.round(r.left+r.width),Math.round(r.height+r.top)),new iQ(Math.round(r.left),Math.round(r.height+r.top))]}},i4="Hidden Text",i3=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,A){var t=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=A,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(i4)),t.appendChild(r),t.appendChild(n);var o=n.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(i4)),t.style.lineHeight="normal",n.style.verticalAlign="super";var s=n.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,A){var t="".concat(e," ").concat(A);return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(e,A)),this._data[t]},e}(),i5=function(e,A){this.context=e,this.options=A},i6=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width="".concat(t.width,"px"),n.canvas.style.height="".concat(t.height,"px")),n.fontMetrics=new i3(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized (".concat(t.width,"x").concat(t.height,") with scale ").concat(t.scale)),n}return b(A,e),A.prototype.applyEffects=function(e){for(var A=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return A.applyEffect(e)})},A.prototype.applyEffect=function(e){this.ctx.save(),2===e.type&&(this.ctx.globalAlpha=e.opacity),0===e.type&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),iR(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Q(this,void 0,void 0,function(){return F(this,function(A){switch(A.label){case 0:if(!e.element.container.styles.isVisible())return[3,2];return[4,this.renderStackContent(e)];case 1:A.sent(),A.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Q(this,void 0,void 0,function(){return F(this,function(A){switch(A.label){case 0:if(no(e.container.flags,16),!e.container.styles.isVisible())return[3,3];return[4,this.renderNodeBackgroundAndBorders(e)];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,A,t){var n=this;0===A?-1===navigator.userAgent.indexOf("Firefox")?(this.ctx.textBaseline="ideographic",this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)):this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+t):n7(e.text).reduce(function(A,r){return n.ctx.fillText(r,A,e.bounds.top+t),A+n.ctx.measureText(r).width},e.bounds.left)},A.prototype.createFontStyle=function(e){var A=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),t=oA(e.fontFamily).join(", "),n=eN(e.fontSize)?"".concat(e.fontSize.number).concat(e.fontSize.unit):"".concat(e.fontSize.number,"px");return[[e.fontStyle,A,e.fontWeight,n,t].join(" "),t,n]},A.prototype.renderTextNode=function(e,A){return Q(this,void 0,void 0,function(){var t,n,r=this;return F(this,function(i){return t=this.createFontStyle(A)[0],this.ctx.font=t,this.ctx.direction=1===A.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",n=A.paintOrder,e.textBounds.forEach(function(e){n.forEach(function(t){switch(t){case 0:r.ctx.fillStyle=Ae(A.color),r.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number);var n=A.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach(function(t){r.ctx.shadowColor=Ae(t.color),r.ctx.shadowOffsetX=t.offsetX.number*r.options.scale,r.ctx.shadowOffsetY=t.offsetY.number*r.options.scale,r.ctx.shadowBlur=t.blur.number,r.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number)}),r.ctx.shadowColor="",r.ctx.shadowOffsetX=0,r.ctx.shadowOffsetY=0,r.ctx.shadowBlur=0),A.textDecorationLine.length&&(r.ctx.fillStyle=Ae(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(A){switch(A){case 1:r.ctx.fillRect(e.bounds.left,e.bounds.top+e.bounds.height-1,e.bounds.width,1);break;case 2:r.ctx.fillRect(e.bounds.left,e.bounds.top,e.bounds.width,1);break;case 3:r.ctx.fillRect(e.bounds.left,e.bounds.top+(e.bounds.height/2-.5),e.bounds.width,1)}}));break;case 1:A.webkitTextStrokeWidth&&e.text.trim().length&&(r.ctx.strokeStyle=Ae(A.webkitTextStrokeColor),r.ctx.lineWidth=A.webkitTextStrokeWidth,r.ctx.lineJoin=window.chrome?"miter":"round",r.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)),r.ctx.strokeStyle="",r.ctx.lineWidth=0,r.ctx.lineJoin="miter"}})}),[2]})})},A.prototype.renderReplacedElement=function(e,A,t){var n=t.naturalWidth||e.intrinsicWidth,r=t.naturalHeight||e.intrinsicHeight;if(t&&n>0&&r>0){var i=iY(e),o=ij(A);this.path(o),this.ctx.save(),this.ctx.clip();var s=0,a=0,l=n,c=r,u=i.left,d=i.top,h=i.width,f=i.height,g=e.styles.objectFit,p=h/f,B=l/c;2===g?B>p?(f=h/B,d+=(i.height-f)/2):(h=f*B,u+=(i.width-h)/2):4===g?B>p?s+=(n-(l=c*p))/2:a+=(r-(c=l/p))/2:8===g?(l>h?(s+=(l-h)/2,l=h):(u+=(h-l)/2,h=l),c>f?(a+=(c-f)/2,c=f):(d+=(f-c)/2,f=c)):16===g&&((B>p?h:f*B)<(l>h?l:h)?B>p?(f=h/B,d+=(i.height-f)/2):(h=f*B,u+=(i.width-h)/2):(l>h?(s+=(l-h)/2,l=h):(u+=(h-l)/2,h=l),c>f?(a+=(c-f)/2,c=f):(d+=(f-c)/2,f=c))),this.ctx.drawImage(t,s,a,l,c,u,d,h,f),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Q(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y;return F(this,function(x){switch(x.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,r=t.styles,i=0,o=t.textNodes,x.label=1;case 1:if(!(i<o.length))return[3,4];return s=o[i],[4,this.renderTextNode(s,r)];case 2:x.sent(),x.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof ro))return[3,8];x.label=5;case 5:return x.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return a=x.sent(),this.renderReplacedElement(t,n,a),[3,8];case 7:return x.sent(),this.context.logger.error("Error loading image ".concat(t.src)),[3,8];case 8:if(t instanceof rs&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof ra))return[3,12];x.label=9;case 9:return x.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return a=x.sent(),this.renderReplacedElement(t,n,a),[3,12];case 11:return x.sent(),this.context.logger.error("Error loading svg ".concat(t.svg.substring(0,255))),[3,12];case 12:if(!(t instanceof ry&&t.tree))return[3,14];return[4,new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)];case 13:l=x.sent(),t.width&&t.height&&this.ctx.drawImage(l,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),x.label=14;case 14:if(t instanceof rB&&(c=Math.min(t.bounds.width,t.bounds.height),t.type===rf?t.checked&&(this.ctx.save(),this.path([new iQ(t.bounds.left+.39363*c,t.bounds.top+.79*c),new iQ(t.bounds.left+.16*c,t.bounds.top+.5549*c),new iQ(t.bounds.left+.27347*c,t.bounds.top+.44071*c),new iQ(t.bounds.left+.39694*c,t.bounds.top+.5649*c),new iQ(t.bounds.left+.72983*c,t.bounds.top+.23*c),new iQ(t.bounds.left+.84*c,t.bounds.top+.34085*c),new iQ(t.bounds.left+.39363*c,t.bounds.top+.79*c)]),this.ctx.fillStyle=Ae(0x2a2a2aff),this.ctx.fill(),this.ctx.restore()):t.type===rg&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+c/2,t.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ae(0x2a2a2aff),this.ctx.fill(),this.ctx.restore())),i8(t)&&t.value.length){switch(d=(u=this.createFontStyle(r))[0],h=u[1],f=u[2],g=this.fontMetrics.getMetrics(h,f).baseline,this.ctx.font=d,this.ctx.fillStyle=Ae(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=i9(t.styles.textAlign),p=iY(t),B=0,t.styles.textAlign){case 1:B+=p.width/2;break;case 2:B+=p.width}m=p.add(B,0,0,-p.height/2+1),this.ctx.save(),this.path([new iQ(p.left,p.top),new iQ(p.left+p.width,p.top),new iQ(p.left+p.width,p.top+p.height),new iQ(p.left,p.top+p.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new n3(t.value,m),r.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!no(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(w=t.styles.listStyleImage).type)return[3,18];a=void 0,y=w.url,x.label=15;case 15:return x.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return a=x.sent(),this.ctx.drawImage(a,t.bounds.left-(a.width+10),t.bounds.top),[3,18];case 17:return x.sent(),this.context.logger.error("Error loading list-style-image ".concat(y)),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(d=this.createFontStyle(r)[0],this.ctx.font=d,this.ctx.fillStyle=Ae(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",p=new E(t.bounds.left,t.bounds.top+e2(t.styles.paddingTop,t.bounds.width),t.bounds.width,tj(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new n3(e.listValue,p),r.letterSpacing,tj(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),x.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o,s,a,l,c,u,d,h,f,g;return F(this,function(p){switch(p.label){case 0:return no(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:p.sent(),A=0,t=e.negativeZIndex,p.label=2;case 2:if(!(A<t.length))return[3,5];return n=t[A],[4,this.renderStack(n)];case 3:p.sent(),p.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:p.sent(),r=0,i=e.nonInlineLevel,p.label=7;case 7:if(!(r<i.length))return[3,10];return n=i[r],[4,this.renderNode(n)];case 8:p.sent(),p.label=9;case 9:return r++,[3,7];case 10:o=0,s=e.nonPositionedFloats,p.label=11;case 11:if(!(o<s.length))return[3,14];return n=s[o],[4,this.renderStack(n)];case 12:p.sent(),p.label=13;case 13:return o++,[3,11];case 14:a=0,l=e.nonPositionedInlineLevel,p.label=15;case 15:if(!(a<l.length))return[3,18];return n=l[a],[4,this.renderStack(n)];case 16:p.sent(),p.label=17;case 17:return a++,[3,15];case 18:c=0,u=e.inlineLevel,p.label=19;case 19:if(!(c<u.length))return[3,22];return n=u[c],[4,this.renderNode(n)];case 20:p.sent(),p.label=21;case 21:return c++,[3,19];case 22:d=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,p.label=23;case 23:if(!(d<h.length))return[3,26];return n=h[d],[4,this.renderStack(n)];case 24:p.sent(),p.label=25;case 25:return d++,[3,23];case 26:f=0,g=e.positiveZIndex,p.label=27;case 27:if(!(f<g.length))return[3,30];return n=g[f],[4,this.renderStack(n)];case 28:p.sent(),p.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var A=this;e.forEach(function(e,t){var n=iE(e)?e.start:e;0===t?A.ctx.moveTo(n.x,n.y):A.ctx.lineTo(n.x,n.y),iE(e)&&A.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},A.prototype.renderRepeat=function(e,A,t,n){this.path(e),this.ctx.fillStyle=A,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)},A.prototype.resizeImage=function(e,A,t){var n,r=(null!=(n=this.canvas.ownerDocument)?n:document).createElement("canvas");return r.width=Math.max(1,A),r.height=Math.max(1,t),r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,A,t),r},A.prototype.renderBackgroundImage=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o;return F(this,function(s){switch(s.label){case 0:A=e.styles.backgroundImage.length-1,t=function(t){var r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C,b,v,Q,U,E,I,S,k,j,H,D,L,R,T;return F(this,function(F){switch(F.label){case 0:if(0!==t.type)return[3,5];r=void 0,i=t.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,n.context.cache.match(i)];case 2:return r=F.sent(),[3,4];case 3:return F.sent(),n.context.logger.error("Error loading background-image ".concat(i)),[3,4];case 4:return r&&(o=isNaN(r.width)||0===r.width?1:r.width,s=isNaN(r.height)||0===r.height?1:r.height,l=(a=iJ(e,A,[o,s,o/s]))[0],c=a[1],u=a[2],d=a[3],h=a[4],f=n.ctx.createPattern(n.resizeImage(r,d,h),"repeat"),n.renderRepeat(l,f,c,u)),[3,6];case 5:1===t.type?(l=(g=iJ(e,A,[null,null,null]))[0],c=g[1],u=g[2],d=g[3],h=g[4],B=(p=AG(t.angle,d,h))[0],m=p[1],w=p[2],y=p[3],x=p[4],(C=document.createElement("canvas")).width=d,C.height=h,v=(b=C.getContext("2d")).createLinearGradient(m,y,w,x),AK(t.stops,B||1).forEach(function(e){return v.addColorStop(e.stop,Ae(e.color))}),b.fillStyle=v,b.fillRect(0,0,d,h),d>0&&h>0&&(f=n.ctx.createPattern(C,"repeat"),n.renderRepeat(l,f,c,u))):2===t.type&&(l=(Q=iJ(e,A,[null,null,null]))[0],U=Q[1],E=Q[2],d=Q[3],h=Q[4],c=e2((I=0===t.position.length?[eZ]:t.position)[0],d),u=e2(I[I.length-1],h),k=(S=A$(t,c,u,d,h))[0],j=S[1],k>0&&j>0&&(H=n.ctx.createRadialGradient(U+c,E+u,0,U+c,E+u,k),AK(t.stops,2*k).forEach(function(e){return H.addColorStop(e.stop,Ae(e.color))}),n.path(l),n.ctx.fillStyle=H,k!==j?(D=e.bounds.left+.5*e.bounds.width,L=e.bounds.top+.5*e.bounds.height,T=1/(R=j/k),n.ctx.save(),n.ctx.translate(D,L),n.ctx.transform(1,0,0,R,0,0),n.ctx.translate(-D,-L),n.ctx.fillRect(U,T*(E-L)+L,d,h*T),n.ctx.restore()):n.ctx.fill())),F.label=6;case 6:return A--,[2]}})},n=this,r=0,i=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:if(!(r<i.length))return[3,4];return o=i[r],[5,t(o)];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,A,t){return Q(this,void 0,void 0,function(){return F(this,function(n){return this.path(iK(t,A)),this.ctx.fillStyle=Ae(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,A,t,n){return Q(this,void 0,void 0,function(){var r,i;return F(this,function(o){switch(o.label){case 0:if(!(A<3))return[3,2];return[4,this.renderSolidBorder(e,t,n)];case 1:return o.sent(),[2];case 2:return r=iV(n,t),this.path(r),this.ctx.fillStyle=Ae(e),this.ctx.fill(),i=iG(n,t),this.path(i),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o,s,a,l=this;return F(this,function(c){switch(c.label){case 0:if(this.applyEffects(e.getEffects(2)),t=!e9((A=e.container.styles).backgroundColor)||A.backgroundImage.length,n=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],r=i7(i1(A.backgroundClip,0),e.curves),!(t||A.boxShadow.length))return[3,2];return this.ctx.save(),this.path(r),this.ctx.clip(),e9(A.backgroundColor)||(this.ctx.fillStyle=Ae(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)];case 1:c.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(A){l.ctx.save();var t,n,r,i,o=ik(e.curves),s=1e4*!A.inset,a=(t=-s+(A.inset?1:-1)*A.spread.number,n=(A.inset?1:-1)*A.spread.number,r=A.spread.number*(A.inset?-2:2),i=A.spread.number*(A.inset?-2:2),o.map(function(e,A){switch(A){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e}));A.inset?(l.path(o),l.ctx.clip(),l.mask(a)):(l.mask(o),l.ctx.clip(),l.path(a)),l.ctx.shadowOffsetX=A.offsetX.number+s,l.ctx.shadowOffsetY=A.offsetY.number,l.ctx.shadowColor=Ae(A.color),l.ctx.shadowBlur=A.blur.number,l.ctx.fillStyle=A.inset?Ae(A.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),c.label=2;case 2:i=0,o=0,s=n,c.label=3;case 3:if(!(o<s.length))return[3,13];if(!(0!==(a=s[o]).style&&!e9(a.color)&&a.width>0))return[3,11];if(2!==a.style)return[3,5];return[4,this.renderDashedDottedBorder(a.color,a.width,i,e.curves,2)];case 4:case 6:case 8:return c.sent(),[3,11];case 5:if(3!==a.style)return[3,7];return[4,this.renderDashedDottedBorder(a.color,a.width,i,e.curves,3)];case 7:if(4!==a.style)return[3,9];return[4,this.renderDoubleBorder(a.color,a.width,i,e.curves)];case 9:return[4,this.renderSolidBorder(a.color,i,e.curves)];case 10:c.sent(),c.label=11;case 11:i++,c.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,A,t,n,r){return Q(this,void 0,void 0,function(){var i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y;return F(this,function(x){return this.ctx.save(),i=iz(n,t),o=iK(n,t),2===r&&(this.path(o),this.ctx.clip()),iE(o[0])?(s=o[0].start.x,a=o[0].start.y):(s=o[0].x,a=o[0].y),iE(o[1])?(l=o[1].end.x,c=o[1].end.y):(l=o[1].x,c=o[1].y),u=0===t||2===t?Math.abs(s-l):Math.abs(a-c),this.ctx.beginPath(),3===r?this.formatPath(i):this.formatPath(o.slice(0,2)),d=A<3?3*A:2*A,h=A<3?2*A:A,3===r&&(d=A,h=A),f=!0,u<=2*d?f=!1:u<=2*d+h?(g=u/(2*d+h),d*=g,h*=g):(p=Math.floor((u+h)/(d+h)),B=(u-p*d)/(p-1),h=(m=(u-(p+1)*d)/p)<=0||Math.abs(h-B)<Math.abs(h-m)?B:m),f&&(3===r?this.ctx.setLineDash([0,d+h]):this.ctx.setLineDash([d,h])),3===r?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=2*A+1.1,this.ctx.strokeStyle=Ae(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===r&&(iE(o[0])&&(w=o[3],y=o[0],this.ctx.beginPath(),this.formatPath([new iQ(w.end.x,w.end.y),new iQ(y.start.x,y.start.y)]),this.ctx.stroke()),iE(o[1])&&(w=o[1],y=o[2],this.ctx.beginPath(),this.formatPath([new iQ(w.end.x,w.end.y),new iQ(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Q(this,void 0,void 0,function(){var A;return F(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=i_(e),[4,this.renderStack(A)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(i5),i8=function(e){return e instanceof rw||e instanceof rm||e instanceof rB&&e.type!==rg&&e.type!==rf||!1},i7=function(e,A){switch(e){case 0:return ik(A);case 2:return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox];default:return ij(A)}},i9=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},oe=["-apple-system","system-ui"],oA=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return -1===oe.indexOf(e)}):e},ot=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width="".concat(t.width,"px"),n.canvas.style.height="".concat(t.height,"px"),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (".concat(t.width,"x").concat(t.height," at ").concat(t.x,",").concat(t.y,") with scale ").concat(t.scale)),n}return b(A,e),A.prototype.render=function(e){return Q(this,void 0,void 0,function(){var A;return F(this,function(t){switch(t.label){case 0:return[4,on(nW(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e))];case 1:return A=t.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(i5),on=function(e){return new Promise(function(A,t){var n=new Image;n.onload=function(){A(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(new XMLSerializer().serializeToString(e)))})},or=function(){function e(e){var A=e.id,t=e.enabled;this.id=A,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1))},e.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.instances={},e}(),oi=function(){function e(A,t){var n;this.windowBounds=t,this.instanceName="#".concat(e.instanceCount++),this.logger=new or({id:this.instanceName,enabled:A.logging}),this.cache=null!=(n=A.cache)?n:new ip(this,A)}return e.instanceCount=1,e}();"undefined"!=typeof window&&ig.setContext(window);var oo=function(e,A,t){var n=A.ownerDocument,r=n.documentElement?AM(e,getComputedStyle(n.documentElement).backgroundColor):AO.TRANSPARENT,i=n.body?AM(e,getComputedStyle(n.body).backgroundColor):AO.TRANSPARENT,o="string"==typeof t?AM(e,t):null===t?AO.TRANSPARENT:0xffffffff;return A===n.documentElement?e9(r)?e9(i)?o:i:r:o};return function(e,A){var t,n;return void 0===A&&(A={}),t=e,n=A,Q(void 0,void 0,void 0,function(){var e,A,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C,b,Q,U,k,j,H,D,L,R,T,M,O,N,P,_,K;return F(this,function(F){switch(F.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=t.ownerDocument))throw Error("Element is not attached to a Document");if(!(A=e.defaultView))throw Error("Document is not attached to a Window");if(r={allowTaint:null!=(C=n.allowTaint)&&C,imageTimeout:null!=(b=n.imageTimeout)?b:15e3,proxy:n.proxy,useCORS:null!=(Q=n.useCORS)&&Q,customIsSameOrigin:n.customIsSameOrigin},s=new oi(v({logging:null==(U=n.logging)||U,cache:n.cache},r),o=new E((i={windowWidth:null!=(k=n.windowWidth)?k:A.innerWidth,windowHeight:null!=(j=n.windowHeight)?j:A.innerHeight,scrollX:null!=(H=n.scrollX)?H:A.pageXOffset,scrollY:null!=(D=n.scrollY)?D:A.pageYOffset}).scrollX,i.scrollY,i.windowWidth,i.windowHeight)),a=null!=(L=n.foreignObjectRendering)&&L,l={allowTaint:null!=(R=n.allowTaint)&&R,onclone:n.onclone,ignoreElements:n.ignoreElements,inlineImages:a,copyStyles:a},s.logger.debug("Starting document clone with size ".concat(o.width,"x").concat(o.height," scrolled to ").concat(-o.left,",").concat(-o.top)),!(u=(c=new r8(s,t,l)).clonedReferenceElement))return[2,Promise.reject("Unable to find element in cloned iframe")];return[4,c.toIFrame(e,o)];case 1:if(d=F.sent(),f=(h=rL(u)||"HTML"===u.tagName?S(u.ownerDocument):I(s,u)).width,g=h.height,p=h.left,B=h.top,m=oo(s,u,n.backgroundColor),w={canvas:n.canvas,backgroundColor:m,scale:null!=(M=null!=(T=n.scale)?T:A.devicePixelRatio)?M:1,x:(null!=(O=n.x)?O:0)+p,y:(null!=(N=n.y)?N:0)+B,width:null!=(P=n.width)?P:Math.ceil(f),height:null!=(_=n.height)?_:Math.ceil(g)},!a)return[3,3];return s.logger.debug("Document cloned, using foreign object rendering"),[4,new ot(s,w).render(u)];case 2:return y=F.sent(),[3,5];case 3:return s.logger.debug("Document cloned, element located at ".concat(p,",").concat(B," with size ").concat(f,"x").concat(g," using computed rendering")),s.logger.debug("Starting DOM parsing"),x=rv(s,u),m===x.styles.backgroundColor&&(x.styles.backgroundColor=AO.TRANSPARENT),s.logger.debug("Starting renderer for element at ".concat(w.x,",").concat(w.y," with size ").concat(w.width,"x").concat(w.height)),[4,new i6(s,w).render(x)];case 4:y=F.sent(),F.label=5;case 5:return(null==(K=n.removeContainer)||K)&&!r8.destroy(d)&&s.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),s.logger.debug("Finished rendering"),[2,y]}})})}}()},82114,(e,A,t)=>{!function(A,t){if("function"==typeof define&&define.amd){let A;void 0!==(A=t())&&e.v(A)}else t()}(e.e,function(){"use strict";function t(e,A,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,A,t)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch(e){}return 200<=A.status&&299>=A.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:e.g.global===e.g?e.g:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,A,o){var s=i.URL||i.webkitURL,a=document.createElement("a");a.download=A=A||e.name||"download",a.rel="noopener","string"==typeof e?(a.href=e,a.origin===location.origin?r(a):n(a.href)?t(e,A,o):r(a,a.target="_blank")):(a.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,i){if(A=A||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=i)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),A)}else if(n(e))t(e,A,i);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,A,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,A,n);var s="application/octet-stream"===e.type,a=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&a||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},c.readAsDataURL(e)}else{var u=i.URL||i.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});i.saveAs=s.saveAs=s,A.exports=s})},22587,(e,A,t)=>{"use strict";var n=e.r(64789),r="function"==typeof Object.is?Object.is:function(e,A){return e===A&&(0!==e||1/e==1/A)||e!=e&&A!=A},i=n.useSyncExternalStore,o=n.useRef,s=n.useEffect,a=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,A,t,n,c){var u=o(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var h=i(e,(u=a(function(){function e(e){if(!s){if(s=!0,i=e,e=n(e),void 0!==c&&d.hasValue){var A=d.value;if(c(A,e))return o=A}return o=e}if(A=o,r(i,e))return A;var t=n(e);return void 0!==c&&c(A,t)?(i=e,A):(i=e,o=t)}var i,o,s=!1,a=void 0===t?null:t;return[function(){return e(A())},null===a?void 0:function(){return e(a())}]},[A,t,n,c]))[0],u[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),l(h),h}},75103,(e,A,t)=>{"use strict";A.exports=e.r(22587)},31713,e=>{"use strict";let A,t,n,r,i,o,s,a,l,c;var u,d,h,f,g=e.i(15839),p=e.i(64789),B=e.i(5376),m=e.i(41344);let w=(0,p.forwardRef)(function(e,A){let{align:t,fit:n="cover",...r}=e;return(0,g.jsx)(B.chakra.img,{ref:A,objectFit:n,objectPosition:t,className:(0,m.cx)("chakra-image",e.className),...r})});w.displayName="Image",e.s([],62672),e.i(62672),e.s([],68543),e.i(68543);var y=e.i(52713),x=e.i(24074),C=e.i(46067),b=e.i(89521),v=e.i(63761),Q=e.i(67077),F=e.i(96733),U=e.i(39414);let[E,I]=(0,U.createContext)({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),S=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["value"]),r=I(),i=(0,b.useRenderStrategyPropsContext)(),o=(0,Q.usePresence)({...i,present:r.value===e.value,immediate:!0}),s=(0,y.mergeProps)(r.getContentProps(t),o.getPresenceProps(),n);return(0,g.jsx)(F.PresenceProvider,{value:o,children:o.unmounted?null:(0,g.jsx)(v.ark.div,{...s,ref:(0,x.composeRefs)(o.ref,A)})})});S.displayName="TabContent";let k=(0,p.forwardRef)((e,A)=>{let t=I(),n=(0,y.mergeProps)(t.getIndicatorProps(),e);return(0,g.jsx)(v.ark.div,{...n,ref:A})});k.displayName="TabIndicator";let j=(0,p.forwardRef)((e,A)=>{let t=I(),n=(0,y.mergeProps)(t.getListProps(),e);return(0,g.jsx)(v.ark.div,{...n,ref:A})});j.displayName="TabList";let H=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["disabled","value"]),r=I(),i=(0,y.mergeProps)(r.getTriggerProps(t),n);return(0,g.jsx)(v.ark.button,{...i,ref:A})});H.displayName="TabTrigger";let D=e=>e.children(I());var L=e.i(61697),R=e.i(94548),T=e.i(92109),M=e.i(58287),O=e.i(92242),N=(0,R.createAnatomy)("tabs").parts("root","list","trigger","content","indicator").build(),P=e=>e.ids?.list??`tabs:${e.id}:list`,_=(e,A)=>e.ids?.content?.(A)??`tabs:${e.id}:content-${A}`,K=(e,A)=>e.ids?.trigger?.(A)??`tabs:${e.id}:trigger-${A}`,V=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,G=(e,A)=>e.getById(K(e,A)),z=e=>e.getById(V(e)),W=e=>{let A=CSS.escape(P(e)),t=`[role=tab][data-ownedby='${A}']:not([disabled])`;return(0,T.queryAll)(e.getById(P(e)),t)},$=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),X=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`}),{createMachine:Y}=(0,y.setup)(),J=Y({props:({props:e})=>({dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(e){(0,T.clickIfLink)(e.node)},defaultValue:null,...e}),initialState:()=>"idle",context:({prop:e,bindable:A})=>({value:A(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(A){e("onValueChange")?.({value:A})}})),focusedValue:A(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(A){e("onFocusChange")?.({focusedValue:A})}})),ssr:A(()=>({defaultValue:!0})),indicatorTransition:A(()=>({defaultValue:!1})),indicatorRect:A(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}),watch({context:e,prop:A,track:t,action:n}){t([()=>e.get("value")],()=>{n(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),t([()=>A("dir"),()=>A("orientation")],()=>{n(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>"automatic"===e("activationMode")},actions:{selectFocusedTab({context:e,prop:A}){(0,T.raf)(()=>{let t=e.get("focusedValue");if(!t)return;let n=A("deselectable")&&e.get("value")===t;e.set("value",n?null:t)})},setFocusedValue({context:e,event:A,flush:t}){null!=A.value&&t(()=>{e.set("focusedValue",A.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:A,prop:t}){let n=t("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",n?null:A.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){(0,T.raf)(()=>{(0,M.first)(W(e))?.focus()})},focusLastTab({scope:e}){(0,T.raf)(()=>{(0,M.last)(W(e))?.focus()})},focusNextTab({context:e,prop:A,scope:t,event:n}){let r,i=n.value??e.get("focusedValue");if(!i)return;let o=(r={value:i,loopFocus:A("loopFocus")},(0,T.nextById)(W(t),K(t,r.value),r.loopFocus));(0,T.raf)(()=>{A("composite")?o?.focus():o?.dataset.value!=null&&e.set("focusedValue",o.dataset.value)})},focusPrevTab({context:e,prop:A,scope:t,event:n}){let r,i=n.value??e.get("focusedValue");if(!i)return;let o=(r={value:i,loopFocus:A("loopFocus")},(0,T.prevById)(W(t),K(t,r.value),r.loopFocus));(0,T.raf)(()=>{A("composite")?o?.focus():o?.dataset.value!=null&&e.set("focusedValue",o.dataset.value)})},syncTabIndex({context:e,scope:A}){(0,T.raf)(()=>{let t=e.get("value");if(!t)return;let n=A.getById(_(A,t));n&&((0,T.getFocusables)(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0"))})},cleanupObserver({refs:e}){let A=e.get("indicatorCleanup");A&&A()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:A,scope:t}){let n=A.id??e.get("value");if(z(t)){if(!n)return void e.set("indicatorTransition",!1);G(t,n)&&(e.set("indicatorRect",X($((0,T.itemById)(W(t),K(t,n))))),(0,T.nextTick)(()=>{e.set("indicatorTransition",!1)}))}},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:A,scope:t}){let n=A.get("indicatorCleanup");n&&n();let r=e.get("value");if(!r)return void e.set("indicatorTransition",!1);let i=G(t,r),o=z(t);if(!i||!o)return;let s=(0,T.trackElementRect)([i],{measure:e=>$(e),onEntry({rects:A}){let[t]=A;e.set("indicatorRect",X(t))}});A.set("indicatorCleanup",s)},navigateIfNeeded({context:e,prop:A,scope:t}){let n=e.get("value");if(!n)return;let r=G(t,n);(0,T.isAnchorElement)(r)&&A("navigate")?.({value:n,node:r,href:r.href})}}}}),q=(0,O.createProps)()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);(0,M.createSplitProps)(q);var Z=(0,O.createProps)()(["disabled","value"]);(0,M.createSplitProps)(Z);var ee=(0,O.createProps)()(["value"]);(0,M.createSplitProps)(ee);var eA=e.i(21173),et=e.i(64614);let en=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,b.splitRenderStrategyProps)(e),[r,i]=(0,C.createSplitProps)()(n,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),o=(e=>{let A=(0,p.useId)(),{getRootNode:t}=(0,eA.useEnvironmentContext)(),{dir:n}=(0,et.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e};return function(e,A){let{state:t,send:n,context:r,prop:i,scope:o}=e,s=i("translations"),a=t.matches("focused"),l="vertical"===i("orientation"),c="horizontal"===i("orientation"),u=i("composite");function d(e){return{selected:r.get("value")===e.value,focused:r.get("focusedValue")===e.value,disabled:!!e.disabled}}return{value:r.get("value"),focusedValue:r.get("focusedValue"),setValue(e){n({type:"SET_VALUE",value:e})},clearValue(){n({type:"CLEAR_VALUE"})},setIndicatorRect(e){n({type:"SET_INDICATOR_RECT",id:K(o,e)})},syncTabIndex(){n({type:"SYNC_TAB_INDEX"})},selectNext(e){n({type:"TAB_FOCUS",value:e,src:"selectNext"}),n({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(e){n({type:"TAB_FOCUS",value:e,src:"selectPrev"}),n({type:"ARROW_PREV",src:"selectPrev"})},focus(){let e=r.get("value");e&&G(o,e)?.focus()},getRootProps:()=>A.element({...N.root.attrs,id:o.ids?.root??`tabs:${o.id}`,"data-orientation":i("orientation"),"data-focus":(0,T.dataAttr)(a),dir:i("dir")}),getListProps:()=>A.element({...N.list.attrs,id:P(o),role:"tablist",dir:i("dir"),"data-focus":(0,T.dataAttr)(a),"aria-orientation":i("orientation"),"data-orientation":i("orientation"),"aria-label":s?.listLabel,onKeyDown(e){if(e.defaultPrevented||(0,T.isComposingEvent)(e)||!(0,T.contains)(e.currentTarget,(0,T.getEventTarget)(e)))return;let A={ArrowDown(){c||n({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){c||n({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){l||n({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){l||n({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){n({type:"HOME"})},End(){n({type:"END"})}}[(0,T.getEventKey)(e,{dir:i("dir"),orientation:i("orientation")})];if(A){e.preventDefault(),A(e);return}}}),getTriggerState:d,getTriggerProps(e){let{value:t,disabled:s}=e,a=d(e);return A.button({...N.trigger.attrs,role:"tab",type:"button",disabled:s,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":(0,T.dataAttr)(s),"aria-disabled":s,"data-value":t,"aria-selected":a.selected,"data-selected":(0,T.dataAttr)(a.selected),"data-focus":(0,T.dataAttr)(a.focused),"aria-controls":a.selected?_(o,t):void 0,"data-ownedby":P(o),"data-ssr":(0,T.dataAttr)(r.get("ssr")),id:K(o,t),tabIndex:a.selected&&u?0:-1,onFocus(){n({type:"TAB_FOCUS",value:t})},onBlur(e){let A=e.relatedTarget;A?.getAttribute("role")!=="tab"&&n({type:"TAB_BLUR"})},onClick(e){e.defaultPrevented||(0,T.isOpeningInNewTab)(e)||s||((0,T.isSafari)()&&e.currentTarget.focus(),n({type:"TAB_CLICK",value:t}))}})},getContentProps(e){let{value:t}=e,n=r.get("value")===t;return A.element({...N.content.attrs,dir:i("dir"),id:_(o,t),tabIndex:u?0:-1,"aria-labelledby":K(o,t),role:"tabpanel","data-ownedby":P(o),"data-selected":(0,T.dataAttr)(n),"data-orientation":i("orientation"),hidden:!n})},getIndicatorProps(){let e=r.get("indicatorRect"),t=r.get("indicatorTransition");return A.element({id:V(o),...N.indicator.attrs,dir:i("dir"),"data-orientation":i("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":e.left,"--top":e.top,"--width":e.width,"--height":e.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:t?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[c?"left":"top"]:c?"var(--left)":"var(--top)"}})}}}((0,L.useMachine)(J,r),L.normalizeProps)})(r),s=(0,y.mergeProps)(o.getRootProps(),i);return(0,g.jsx)(E,{value:o,children:(0,g.jsx)(b.RenderStrategyPropsProvider,{value:t,children:(0,g.jsx)(v.ark.div,{...s,ref:A})})})});en.displayName="TabsRoot";let er=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,b.splitRenderStrategyProps)(e),[{value:r},i]=(0,C.createSplitProps)()(n,["value"]),o=(0,y.mergeProps)(r.getRootProps(),i);return(0,g.jsx)(E,{value:r,children:(0,g.jsx)(b.RenderStrategyPropsProvider,{value:t,children:(0,g.jsx)(v.ark.div,{...o,ref:A})})})});er.displayName="TabsRootProvider",e.s(["Content",()=>S,"Context",()=>D,"Indicator",()=>k,"List",()=>j,"Root",()=>en,"RootProvider",()=>er,"Trigger",()=>H],96784);var ei=e.i(96784),ei=ei,eo=e.i(45362);let{withProvider:es,withContext:ea,useStyles:el,PropsProvider:ec}=(0,eo.createSlotRecipeContext)({key:"tabs"}),eu=es(ei.RootProvider,"root",{forwardAsChild:!0}),ed=es(ei.Root,"root",{forwardAsChild:!0}),eh=ea(ei.Trigger,"trigger",{forwardAsChild:!0}),ef=ea(ei.Content,"content",{forwardAsChild:!0}),eg=ea("div","contentGroup"),ep=ea(ei.List,"list",{forwardAsChild:!0}),eB=ea(ei.Indicator,"indicator",{forwardAsChild:!0});e.s(["Content",()=>ef,"ContentGroup",()=>eg,"Context",()=>D,"Indicator",()=>eB,"List",()=>ep,"PropsProvider",()=>ec,"Root",()=>ed,"RootProvider",()=>eu,"Trigger",()=>eh],58262);var em=e.i(58262),em=em,ew=e.i(30315);let{withContext:ey,PropsProvider:ex}=(0,ew.createRecipeContext)({key:"code"}),eC=ey("code");eC.displayName="Code";var eb=e.i(18128),ev=e.i(42436),eQ=e.i(32219),eF=e.i(61479),eU=e.i(79278),eE=e.i(35043);let{PropsProvider:eI,withContext:eS}=(0,ew.createRecipeContext)({key:"badge"}),ek=eS("span");ek.displayName="Badge",e.s([],85454),e.i(85454),e.s([],85901),e.i(85901);let[ej,eH]=(0,U.createContext)({name:"ProgressContext",hookName:"useProgressContext",providerName:"<ProgressProvider />"}),eD=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getCircleProps(),e);return(0,g.jsx)(v.ark.svg,{ref:A,...n})});eD.displayName="ProgressCircle";let eL=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getCircleRangeProps(),e);return(0,g.jsx)(v.ark.circle,{ref:A,...n})});eL.displayName="ProgressCircleRange";let eR=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getCircleTrackProps(),e);return(0,g.jsx)(v.ark.circle,{ref:A,...n})});eR.displayName="ProgressCircleTrack";let eT=e=>e.children(eH()),eM=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(v.ark.label,{...n,ref:A})});eM.displayName="ProgressLabel";let eO=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getRangeProps(),e);return(0,g.jsx)(v.ark.div,{...n,ref:A})});eO.displayName="ProgressRange";var eN=e.i(39289);let eP=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["defaultValue","formatOptions","id","ids","locale","max","min","onValueChange","orientation","translations","value"]),r=(e=>{let A=(0,p.useId)(),{getRootNode:t}=(0,eA.useEnvironmentContext)(),{dir:n,locale:r}=(0,et.useLocaleContext)(),i={id:A,dir:n,locale:r,getRootNode:t,...e},o=(0,L.useMachine)(eN.machine,i);return eN.connect(o,L.normalizeProps)})(t),i=(0,y.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(ej,{value:r,children:(0,g.jsx)(v.ark.div,{...i,ref:A})})});eP.displayName="ProgressRoot";let e_=(0,p.forwardRef)((e,A)=>{let[{value:t},n]=(0,C.createSplitProps)()(e,["value"]),r=(0,y.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(ej,{value:t,children:(0,g.jsx)(v.ark.div,{...r,ref:A})})});e_.displayName="ProgressRootProvider";let eK=(0,p.forwardRef)((e,A)=>{let t=eH(),n=(0,y.mergeProps)(t.getTrackProps(),e);return(0,g.jsx)(v.ark.div,{...n,ref:A})});eK.displayName="ProgressTrack";let eV=(0,p.forwardRef)((e,A)=>{let{children:t,...n}=e,r=eH(),i=(0,y.mergeProps)(r.getValueTextProps(),n);return(0,g.jsx)(v.ark.span,{...i,ref:A,children:t||r.percentAsString})});eV.displayName="ProgressValueText";let eG=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["state"]),r=eH(),i=(0,y.mergeProps)(r.getViewProps(t),n);return(0,g.jsx)(v.ark.span,{...i,ref:A})});eG.displayName="ProgressView",e.s(["Circle",()=>eD,"CircleRange",()=>eL,"CircleTrack",()=>eR,"Context",()=>eT,"Label",()=>eM,"Range",()=>eO,"Root",()=>eP,"RootProvider",()=>e_,"Track",()=>eK,"ValueText",()=>eV,"View",()=>eG],57269);var ez=e.i(57269),ez=ez;let{withProvider:eW,withContext:e$,useStyles:eX,PropsProvider:eY}=(0,eo.createSlotRecipeContext)({key:"progress"}),eJ=eW(ez.RootProvider,"root",{forwardAsChild:!0}),eq=eW(ez.Root,"root"),eZ=e$(ez.Label,"label",{forwardAsChild:!0}),e0=e$(ez.Track,"track",{forwardAsChild:!0}),e1=e$(ez.Range,"range",{forwardAsChild:!0}),e2=e$(ez.ValueText,"valueText",{forwardAsChild:!0}),e4=ez.Context;e.s(["Context",()=>e4,"Label",()=>eZ,"PropsProvider",()=>eY,"Range",()=>e1,"Root",()=>eq,"RootProvider",()=>eJ,"Track",()=>e0,"ValueText",()=>e2],70938);var e3=e.i(70938),e3=e3,e5=e.i(84615),e6=e.i(23331),e8=e.i(87391),e7=e.i(5443),e9=e.i(7101),Ae=e.i(3158);async function AA(e,A){let t=(0,Ae.getExperimentTrackingBreakingChangeEnabled)()?{breaking_change_analysis:!0}:{};return(await e7.axiosClient.post("/api/checks",{run_id:e,view_options:A,track_props:t})).data}async function At(){return(await e7.axiosClient.get("/api/checks")).data}async function An(e){return(await e7.axiosClient.get(`/api/checks/${e}`)).data}async function Ar(e,A){return(await e7.axiosClient.patch(`/api/checks/${e}`,A)).data}async function Ai(e){return(await e7.axiosClient.delete(`/api/checks/${e}`)).data}async function Ao(e){return await e7.axiosClient.post("/api/checks/reorder",e)}var As=e.i(51713),Aa=e.i(81955),Al=e.i(42671),Ac=e.i(59760),Au=(e,A)=>{let t=[],n=(e,A,n)=>{A-e>0&&t.push({start:e,end:A,match:n})};if(0===e.length)n(0,A,!1);else{let t=0;for(let A of e)n(t,A.start,!1),n(A.start,A.end,!0),t=A.end;n(t,A,!1)}return t},Ad=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>`\\${e}`);let{withContext:Ah,PropsProvider:Af}=(0,ew.createRecipeContext)({key:"mark"}),Ag=Ah("mark");function Ap(e){let{each:A,fallback:t,children:n}=e;return A?.length===0?t||null:A?.map(n)}function AB(e){let A,{children:t,query:n,ignoreCase:r,matchAll:i,styles:o}=e;if("string"!=typeof t)throw Error("The children prop of Highlight must be a string");let s=(A={query:n,text:t,matchAll:i,ignoreCase:r},(0,p.useMemo)(()=>(e=>{if(null==e.matchAll&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw Error("matchAll must be true when using multiple queries");return e.matchAll?function(e){var A;let t,{text:n,query:r,ignoreCase:i,matchAll:o,exactMatch:s}=e;if(0===r.length)return[{text:n,match:!1}];let a=((e,A=!0)=>`${e?"i":""}${A?"g":""}`)(i,o),l=(A=Array.isArray(r)?r:[r],t=A.filter(Boolean).map(e=>Ad(e)),new RegExp(s?`\\b(${t.join("|")})\\b`:`(${t.join("|")})`,a));return Au([...n.matchAll(l)].map(e=>({start:e.index||0,end:(e.index||0)+e[0].length})),e.text.length).map(A=>({text:e.text.slice(A.start,A.end),match:!!A.match}))}(e):function(e){let{text:A,query:t,ignoreCase:n,exactMatch:r}=e;if(r){let e=Ad(t),r=RegExp(`\\b(${e})\\b`,n?"i":""),i=A.match(r);if(!i||void 0===i.index)return[{text:A,match:!1}];let o=i.index,s=o+i[0].length;return Au([{start:o,end:s}],A.length).map(e=>({text:A.slice(e.start,e.end),match:!!e.match}))}let i=n?A.toLowerCase():A,o=n&&"string"==typeof t?t.toLowerCase():t,s="string"==typeof i?i.indexOf(o):-1;if(-1===s)return[{text:A,match:!1}];let a=s+o.length;return Au([{start:s,end:a}],A.length).map(e=>({text:A.slice(e.start,e.end),match:!!e.match}))}(e)})(A),[A]));return(0,g.jsx)(Ap,{each:s,children:(e,A)=>e.match?(0,g.jsx)(Ag,{css:o,children:e.text},A):(0,g.jsx)(p.Fragment,{children:e.text},A)})}Ag.displayName="Mark";var Am=e.i(88076),Aw=e.i(70496),em=em;e.s([],79921),e.i(79921);var Ay=e.i(19284);let{withProvider:Ax,withContext:AC,useStyles:Ab,PropsProvider:Av}=(0,eo.createSlotRecipeContext)({key:"tag"}),AQ=Ax("div","root"),AF=AC("span","label"),AU=AC("button","closeTrigger",{defaultProps:{children:(0,g.jsx)(Ay.CloseIcon,{})}}),AE=AC("span","startElement"),AI=AC("span","endElement");e.s(["CloseTrigger",()=>AU,"EndElement",()=>AI,"Label",()=>AF,"Root",()=>AQ,"RootPropsProvider",()=>Av,"StartElement",()=>AE],20360);var AS=e.i(20360),AS=AS,Ak=e.i(39196),Aj=e.i(59889),AH=e.i(70839),AD=e.i(52309),AL=e.i(29801),AR=e.i(74992);function AT(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Bookmark"},child:[{tag:"path",attr:{d:"M17.6,21.945a1.483,1.483,0,0,1-1.01-.4l-4.251-3.9a.5.5,0,0,0-.68,0L7.409,21.545a1.5,1.5,0,0,1-2.516-1.1V4.57a2.5,2.5,0,0,1,2.5-2.5h9.214a2.5,2.5,0,0,1,2.5,2.5V20.442a1.481,1.481,0,0,1-.9,1.374A1.507,1.507,0,0,1,17.6,21.945ZM12,16.51a1.5,1.5,0,0,1,1.018.395l4.251,3.9a.5.5,0,0,0,.839-.368V4.57a1.5,1.5,0,0,0-1.5-1.5H7.393a1.5,1.5,0,0,0-1.5,1.5V20.442a.5.5,0,0,0,.839.368L10.983,16.9A1.5,1.5,0,0,1,12,16.51Z"},child:[]}]}]})(e)}function AM(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M190.4 354.1L91.9 256l98.4-98.1-30-29.9L32 256l128.4 128 30-29.9zm131.2 0L420 256l-98.4-98.1 30-29.9L480 256 351.6 384l-30-29.9z"},child:[]},{tag:"path",attr:{d:"M155.6 276h40v-40h-40v40zm200.8-40h-40v40h40v-40zM236 276h40v-40h-40v40z"},child:[]}]})(e)}e.s([],82189),e.i(82189);let{withProvider:AO,withContext:AN,useStyles:AP,PropsProvider:A_}=(0,eo.createSlotRecipeContext)({key:"breadcrumb"}),AK=AO("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),AV=AN("ol","list"),AG=AN("li","item"),Az=AN("a","link"),AW=AN("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),A$=AN("li","separator",{defaultProps:{"aria-hidden":!0,children:(0,g.jsx)(Ay.ChevronRightIcon,{})}}),AX=AN("li","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:(0,g.jsx)(Ay.EllpsisIcon,{})}});e.s(["CurrentLink",()=>AW,"Ellipsis",()=>AX,"Item",()=>AG,"Link",()=>Az,"List",()=>AV,"PropsProvider",()=>A_,"Root",()=>AK,"Separator",()=>A$],3090);var AY=e.i(3090),AY=AY,AJ=e.i(94707);function Aq({name:e,setName:A}){let[t,n]=(0,p.useState)(!1),[r,i]=(0,p.useState)(e),o=(0,p.useRef)(null),s=(0,p.useCallback)(()=>{A(r),n(!1)},[A,n,r]);return(0,p.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&s()};return t&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,o,s]),(0,g.jsx)(AY.Root,{flex:"0 1 auto",fontSize:"12pt",fontWeight:"500",className:"no-track-pii-safe",overflow:"hidden",children:(0,g.jsx)(AY.Item,{cursor:"pointer",flex:"0 1 auto",overflow:"hidden",children:t?(0,g.jsx)(AJ.Input,{ref:o,value:r,onChange:e=>{i(e.target.value)},onKeyDown:t=>{"Enter"===t.key?(A(r),n(!1)):"Escape"===t.key&&(i(e),n(!1))},size:"sm",w:"100%"}):(0,g.jsx)(eb.Box,{flex:"0 1 auto",onClick:()=>{i(e),n(!0)},textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e})})})}var AZ=e.i(56949),A0=e.i(1370),A1=e.i(71477),A2=e.i(21548),A4=e.i(51327),A3=class extends A2.Subscribable{#e;#A=void 0;#t;#n;constructor(e,A){super(),this.#e=e,this.setOptions(A),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let A=this.options;this.options=this.#e.defaultMutationOptions(e),(0,A4.shallowEqualObjects)(this.options,A)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),A?.mutationKey&&this.options.mutationKey&&(0,A4.hashKey)(A.mutationKey)!==(0,A4.hashKey)(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#A}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#i()}mutate(e,A){return this.#n=A,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){let e=this.#t?.state??(0,A0.getDefaultState)();this.#A={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){A1.notifyManager.batch(()=>{if(this.#n&&this.hasListeners()){let A=this.#A.variables,t=this.#A.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#n.onSuccess?.(e.data,A,t,n),this.#n.onSettled?.(e.data,null,A,t,n)):e?.type==="error"&&(this.#n.onError?.(e.error,A,t,n),this.#n.onSettled?.(void 0,e.error,A,t,n))}this.listeners.forEach(e=>{e(this.#A)})})}},A5=e.i(941);function A6(e,A){let t=(0,A5.useQueryClient)(A),[n]=p.useState(()=>new A3(t,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);let r=p.useSyncExternalStore(p.useCallback(e=>n.subscribe(A1.notifyManager.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=p.useCallback((e,A)=>{n.mutate(e,A).catch(A4.noop)},[n]);if(r.error&&(0,A4.shouldThrowError)(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}var A8=e.i(16955),A7=e.i(75155),A9=e.i(29134),te=e.i(36099),tA=e.i(45364),tt=e.i(12007);let tn=(0,p.createContext)(void 0),tr=()=>{let e=(0,p.useContext)(tn);if(!e)throw Error("useLineageViewContext must be used within a LineageViewProvider");return e},ti=()=>(0,p.useContext)(tn);var to=e.i(46798);function ts({model:e,row:A,singleEnv:t,cllRunning:n}){let r=ti(),{runAction:i}=(0,A9.useRecceActionContext)(),{featureToggles:o}=(0,tt.useRecceInstanceContext)(),{name:s,baseType:a,currentType:l,baseIndex:c,currentIndex:u}=A,d=l??a,h=!a||!l;return(0,g.jsx)(to.Tooltip,{content:"View column lineage",positioning:{placement:"top"},showArrow:!0,disabled:void 0===r||void 0!==c&&void 0===u,children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"3px",children:[(0,g.jsx)(eb.Box,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:s}),(0,g.jsx)(eF.Spacer,{}),n&&(0,g.jsx)(te.Spinner,{size:"xs",color:"gray.400"}),!t&&"source"!==e.resource_type&&(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(Am.IconButton,{display:"flex",className:"row-context-menu",variant:"plain",size:"sm",color:"gray",_hover:{color:"black"},disabled:o.disableDatabaseQuery,onClick:e=>{e.stopPropagation()},children:(0,g.jsx)(eU.Icon,{as:AZ.VscKebabVertical})})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsx)(Aw.Menu.Content,{lineHeight:"20px",children:(0,g.jsxs)(Aw.Menu.ItemGroup,{title:"Diff",m:"0",p:"4px 12px",children:[(0,g.jsx)(Aw.Menu.Item,{value:"profile-diff",fontSize:"10pt",onClick:()=>{i("profile_diff",{model:e.name,columns:[s]},{showForm:!1})},disabled:h,children:"Profile Diff"}),(0,g.jsx)(Aw.Menu.Item,{value:"histogram-diff",fontSize:"10pt",onClick:()=>{i("histogram_diff",{model:e.name,column_name:s,column_type:d},{showForm:!1})},disabled:h||!d||!(0,tA.supportsHistogramDiff)(d),children:"Histogram Diff"}),(0,g.jsx)(Aw.Menu.Item,{value:"top-k-diff",fontSize:"10pt",onClick:()=>{i("top_k_diff",{model:e.name,column_name:s,k:50},{showForm:!1})},disabled:h,children:"Top-k Diff"})]})})})})]})]})})}function ta(e,A,t){function n(e){return void 0!==e.baseIndex&&void 0!==e.currentIndex&&!0===e.reordered?"column-index-reordered schema-column schema-column-index":"schema-column schema-column-index"}function r(e){return void 0!==e.baseIndex&&void 0!==e.currentIndex&&e.baseType!==e.currentType?"column-body-type-changed schema-column":"schema-column"}return{columns:[{key:"baseIndex",name:"",resizable:!0,minWidth:35,width:35,cellClass:n},{key:"currentIndex",name:"",resizable:!0,minWidth:35,width:35,cellClass:n},{key:"name",name:"Name",resizable:!0,renderCell:({row:e,column:n})=>A?(0,g.jsx)(ts,{model:A,row:e,cllRunning:t?.get(e.name)??!1}):e.name,cellClass:function(){return"schema-column"}},{key:"baseType",name:"Base Type",resizable:!0,cellClass:r},{key:"currentType",name:"Current Type",resizable:!0,cellClass:r}],rows:Object.values(e)}}e.s([],48361),e.i(48361);let[tl,tc]=(0,e.i(6251).createContext)({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:tu,withContext:td,useStyles:th,PropsProvider:tf}=(0,eo.createSlotRecipeContext)({key:"alert"}),tg=tu("div","root",{forwardAsChild:!0,wrapElement:(e,A)=>(0,g.jsx)(tl,{value:{status:A.status||"info"},children:e})}),tp=td("div","title"),tB=td("div","description"),tm=td("div","content"),tw={info:Ay.InfoIcon,warning:Ay.WarningIcon,success:Ay.CheckCircleIcon,error:Ay.WarningIcon,neutral:Ay.InfoIcon},ty=(0,p.forwardRef)(function(e,A){let t=tc(),n=th(),r="string"==typeof t.status?tw[t.status]:p.Fragment,{children:i=(0,g.jsx)(r,{}),...o}=e;return(0,g.jsx)(B.chakra.span,{ref:A,...o,css:[n.indicator,e.css],children:i})});e.s(["Content",()=>tm,"Description",()=>tB,"Indicator",()=>ty,"Root",()=>tg,"RootPropsProvider",()=>tf,"Title",()=>tp],57228);var tx=e.i(57228),tx=tx,tC=e.i(62234);let tb=(0,p.forwardRef)(function({base:e,current:A,enableScreenshot:t=!1},n){let r,i,o=ti(),[s,a]=(0,p.useState)(new Map),{columns:l,rows:c}=(0,p.useMemo)(()=>{let t=function(e={},A={}){let t={};Object.entries((0,A7.mergeKeysWithStatus)(Object.keys(e),Object.keys(A))).forEach(([e,A])=>{t[e]={name:e,reordered:"reordered"===A,__status:void 0}});let n=0;return Object.entries(e).forEach(([e,A])=>{null!=A&&(t[e].baseIndex=n+=1,t[e].baseType=A.type)}),n=0,Object.entries(A).forEach(([e,A])=>{null!=A&&(t[e].currentIndex=n+=1,t[e].currentType=A.type)}),t}(e?.columns,A?.columns),n=A?.resource_type??e?.resource_type;return n&&["model","seed","snapshot","source"].includes(n)?ta(t,A??e,s):ta(t)},[e,A,s]),{lineageGraph:u}=(0,A8.useLineageGraphContext)(),d=!u?.catalogMetadata.base,h=!u?.catalogMetadata.current;d&&h?r="catalog.json not found on both environments. Run `recce debug` to troubleshoot.":d?r="catalog.json not found on base environment. Run `recce debug` to troubleshoot.":h&&(r="catalog.json not found on current environment. Run `recce debug` to troubleshoot.");let f=e&&void 0===e.columns,B=A&&void 0===A.columns;f&&B?i="catalog.json is outdated on both environments. Update catalog.json to get schema information.":f?i="catalog.json is outdated on base environment. Update catalog.json to get schema information.":B&&(i="catalog.json is outdated on current environment. Update catalog.json to get schema information.");let m=async t=>{(0,Ae.trackColumnLevelLineage)({action:"view",source:"schema_column"}),a(e=>new Map(e).set(t,!0));let n=A?.id??e?.id;n&&await o?.showColumnLevelLineage({node_id:n,column:t}),a(e=>new Map(e).set(t,!1))},w=o?.viewOptions.column_level_lineage,y=w?new Set([`${w.node_id}-${w.column}`]):new Set;return(0,g.jsxs)(ev.Flex,{direction:"column",children:[r?(0,g.jsxs)(tx.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(tx.Indicator,{}),(0,g.jsx)(tx.Description,{children:r})]}):i?(0,g.jsxs)(tx.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(tx.Indicator,{}),(0,g.jsx)(tx.Description,{children:i})]}):(0,g.jsx)(g.Fragment,{}),c.length>0&&(0,g.jsx)(tC.ScreenshotDataGrid,{style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"0.8rem",borderWidth:1},columns:l,rows:c,rowHeight:35,renderers:{noRowsFallback:(0,g.jsx)(tC.EmptyRowsRenderer,{})},className:"rdg-light no-track-pii-safe",ref:n,rowKeyGetter:t=>{let n=A?.id??e?.id;return`${n}-${t.name}`},selectedRows:y,onSelectedRowsChange:()=>{},onCellClick:async e=>{(void 0===e.row.baseIndex||void 0!==e.row.currentIndex)&&await m(e.row.name)},rowClass:e=>{let A;if(void 0===e.baseIndex)A="row-added";else{if(void 0===e.currentIndex)return"row-removed";A="row-normal"}return void 0!==o&&(A+=" row-selectable"),A}})]})}),tv=(0,p.forwardRef)(function({current:e},A){let t,n,r=ti(),[i,o]=(0,p.useState)(new Map),{columns:s,rows:a}=(0,p.useMemo)(()=>(function(e={},A,t){return{columns:[{key:"index",name:"",resizable:!0,minWidth:35,width:35,cellClass:"schema-column schema-column-index"},{key:"name",name:"Name",resizable:!0,renderCell:({row:e})=>A?(0,g.jsx)(ts,{model:A,row:e,cllRunning:t?.get(e.name)??!1,singleEnv:!0}):e.name,cellClass:"schema-column"},{key:"type",name:"Type",resizable:!0,cellClass:"schema-column"}],rows:Object.entries(e).filter(([e,A])=>null!=A).map(([e,A],t)=>({name:e,index:t+1,type:A.type,__status:void 0}))}})(e?.columns,e,i),[e,i]),{lineageGraph:l}=(0,A8.useLineageGraphContext)();l?.catalogMetadata.current||(t="catalog.json not found. Run `recce debug` to troubleshoot."),e&&void 0===e.columns&&(n="catalog.json is outdated. Update catalog.json to get schema information.");let c=async A=>{(0,Ae.trackColumnLevelLineage)({action:"view",source:"schema_column"}),o(e=>new Map(e).set(A,!0));let t=e?.id;t&&await r?.showColumnLevelLineage({node_id:t,column:A}),o(e=>new Map(e).set(A,!1))},u=r?.viewOptions.column_level_lineage,d=u?new Set([`${u.node_id}-${u.column}`]):new Set;return(0,g.jsxs)(ev.Flex,{direction:"column",children:[t?(0,g.jsxs)(tx.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(tx.Indicator,{}),(0,g.jsx)(tx.Description,{children:t})]}):n?(0,g.jsxs)(tx.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(tx.Indicator,{}),(0,g.jsx)(tx.Description,{children:n})]}):(0,g.jsx)(g.Fragment,{}),a.length>0&&(0,g.jsx)(tC.ScreenshotDataGrid,{style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"10pt",borderWidth:1},columns:s,rows:a,renderers:{noRowsFallback:(0,g.jsx)(tC.EmptyRowsRenderer,{})},className:"rdg-light",ref:A,rowKeyGetter:A=>{let t=e?.id;return`${t}-${A.name}`},selectedRows:d,onSelectedRowsChange:()=>{},onCellClick:async e=>{await c(e.row.name)},rowClass:()=>void 0!==r?"row-normal row-selectable":"row-normal"})]})});async function tQ(e){return(await e7.axiosClient.post("/api/select",e)).data}var tF=e.i(4153),tU="undefined"!=typeof window?window:null,tE=null===tU,tI=tE?void 0:tU.document,tS="addEventListener",tk="removeEventListener",tj="getBoundingClientRect",tH="horizontal",tD=function(){return!1},tL=tE?"calc":["","-webkit-","-moz-","-o-"].filter(function(e){var A=tI.createElement("div");return A.style.cssText="width:"+e+"calc(9px)",!!A.style.length}).shift()+"calc",tR=function(e){return"string"==typeof e||e instanceof String},tT=function(e){if(tR(e)){var A=tI.querySelector(e);if(!A)throw Error("Selector "+e+" did not match a DOM element");return A}return e},tM=function(e,A,t){var n=e[A];return void 0!==n?n:t},tO=function(e,A,t,n){if(A){if("end"===n)return 0;if("center"===n)return e/2}else if(t){if("start"===n)return 0;if("center"===n)return e/2}return e},tN=function(e,A){var t=tI.createElement("div");return t.className="gutter gutter-"+A,t},tP=function(e,A,t){var n={};return tR(A)?n[e]=A:n[e]=tL+"("+A+"% - "+t+"px)",n},t_=function(e,A){var t;return(t={})[e]=A+"px",t};let tK=function(e,A){if(void 0===A&&(A={}),tE)return{};var t,n,r,i,o,s,a=e;Array.from&&(a=Array.from(a));var l=tT(a[0]).parentNode,c=getComputedStyle?getComputedStyle(l):null,u=c?c.flexDirection:null,d=tM(A,"sizes")||a.map(function(){return 100/a.length}),h=tM(A,"minSize",100),f=Array.isArray(h)?h:a.map(function(){return h}),g=tM(A,"maxSize",1/0),p=Array.isArray(g)?g:a.map(function(){return g}),B=tM(A,"expandToMin",!1),m=tM(A,"gutterSize",10),w=tM(A,"gutterAlign","center"),y=tM(A,"snapOffset",30),x=Array.isArray(y)?y:a.map(function(){return y}),C=tM(A,"dragInterval",1),b=tM(A,"direction",tH),v=tM(A,"cursor",b===tH?"col-resize":"row-resize"),Q=tM(A,"gutter",tN),F=tM(A,"elementStyle",tP),U=tM(A,"gutterStyle",t_);function E(e,A,n,r){var i=F(t,A,n,r);Object.keys(i).forEach(function(A){e.style[A]=i[A]})}function I(){return s.map(function(e){return e.size})}function S(e){return"touches"in e?e.touches[0][n]:e[n]}function k(e){var A=s[this.a],t=s[this.b],n=A.size+t.size;A.size=e/this.size*n,t.size=n-e/this.size*n,E(A.element,A.size,this._b,A.i),E(t.element,t.size,this._c,t.i)}function j(e){var t,n=s[this.a],r=s[this.b];this.dragging&&(t=S(e)-this.start+(this._b-this.dragOffset),C>1&&(t=Math.round(t/C)*C),t<=n.minSize+n.snapOffset+this._b?t=n.minSize+this._b:t>=this.size-(r.minSize+r.snapOffset+this._c)&&(t=this.size-(r.minSize+this._c)),t>=n.maxSize-n.snapOffset+this._b?t=n.maxSize+this._b:t<=this.size-(r.maxSize-r.snapOffset+this._c)&&(t=this.size-(r.maxSize+this._c)),k.call(this,t),tM(A,"onDrag",tD)(I()))}function H(){var e=s[this.a].element,A=s[this.b].element,n=e[tj](),o=A[tj]();this.size=n[t]+o[t]+this._b+this._c,this.start=n[r],this.end=n[i]}function D(e){var A=function(e){if(!getComputedStyle)return null;var A=getComputedStyle(e);if(!A)return null;var t=e[o];return 0===t?null:(b===tH?t-=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight):t-=parseFloat(A.paddingTop)+parseFloat(A.paddingBottom),t)}(l);if(null===A||f.reduce(function(e,A){return e+A},0)>A)return e;var t=0,n=[],r=e.map(function(r,i){var o=A*r/100,s=tO(m,0===i,i===e.length-1,w),a=f[i]+s;return o<a?(t+=a-o,n.push(0),a):(n.push(o-a),o)});return 0===t?e:r.map(function(e,r){var i=e;if(t>0&&n[r]-t>0){var o=Math.min(t,n[r]-t);t-=o,i=e-o}return i/A*100})}function L(){var e=s[this.a].element,t=s[this.b].element;this.dragging&&tM(A,"onDragEnd",tD)(I()),this.dragging=!1,tU[tk]("mouseup",this.stop),tU[tk]("touchend",this.stop),tU[tk]("touchcancel",this.stop),tU[tk]("mousemove",this.move),tU[tk]("touchmove",this.move),this.stop=null,this.move=null,e[tk]("selectstart",tD),e[tk]("dragstart",tD),t[tk]("selectstart",tD),t[tk]("dragstart",tD),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",tI.body.style.cursor=""}function R(e){if(!("button"in e)||0===e.button){var t=s[this.a].element,n=s[this.b].element;this.dragging||tM(A,"onDragStart",tD)(I()),e.preventDefault(),this.dragging=!0,this.move=j.bind(this),this.stop=L.bind(this),tU[tS]("mouseup",this.stop),tU[tS]("touchend",this.stop),tU[tS]("touchcancel",this.stop),tU[tS]("mousemove",this.move),tU[tS]("touchmove",this.move),t[tS]("selectstart",tD),t[tS]("dragstart",tD),n[tS]("selectstart",tD),n[tS]("dragstart",tD),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",this.gutter.style.cursor=v,this.parent.style.cursor=v,tI.body.style.cursor=v,H.call(this),this.dragOffset=S(e)-this.end}}b===tH?(t="width",n="clientX",r="left",i="right",o="clientWidth"):"vertical"===b&&(t="height",n="clientY",r="top",i="bottom",o="clientHeight"),d=D(d);var T=[];function M(e){var A=e.i===T.length,t=A?T[e.i-1]:T[e.i];H.call(t);var n=A?t.size-e.minSize-t._c:e.minSize+t._b;k.call(t,n)}return(s=a.map(function(e,A){var n,r={element:tT(e),size:d[A],minSize:f[A],maxSize:p[A],snapOffset:x[A],i:A};if(A>0&&((n={a:A-1,b:A,dragging:!1,direction:b,parent:l})._b=tO(m,A-1==0,!1,w),n._c=tO(m,!1,A===a.length-1,w),"row-reverse"===u||"column-reverse"===u)){var i=n.a;n.a=n.b,n.b=i}if(A>0){var o,s=Q(A,b,r.element);Object.keys(o=U(t,m,A)).forEach(function(e){s.style[e]=o[e]}),n._a=R.bind(n),s[tS]("mousedown",n._a),s[tS]("touchstart",n._a),l.insertBefore(s,r.element),n.gutter=s}return E(r.element,r.size,tO(m,0===A,A===a.length-1,w),A),A>0&&T.push(n),r})).forEach(function(e){var A=e.element[tj]()[t];A<e.minSize&&(B?M(e):e.minSize=A)}),{setSizes:function(e){var A=D(e);A.forEach(function(e,t){if(t>0){var n=T[t-1],r=s[n.a],i=s[n.b];r.size=A[t-1],i.size=e,E(r.element,r.size,n._b,r.i),E(i.element,i.size,n._c,i.i)}})},getSizes:I,collapse:function(e){M(s[e])},destroy:function(e,A){T.forEach(function(n){!0!==A?n.parent.removeChild(n.gutter):(n.gutter[tk]("mousedown",n._a),n.gutter[tk]("touchstart",n._a)),!0!==e&&Object.keys(F(t,n.a.size,n._b)).forEach(function(e){s[n.a].element.style[e]="",s[n.b].element.style[e]=""})})},parent:l,pairs:T}};function tV(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===A.indexOf(n)&&(t[n]=e[n]);return t}var tG=function(e){function A(){e.apply(this,arguments)}return e&&(A.__proto__=e),A.prototype=Object.create(e&&e.prototype),A.prototype.constructor=A,A.prototype.componentDidMount=function(){var e=this.props;e.children;var A=e.gutter,t=tV(e,["children","gutter"]);t.gutter=function(e,t){var n;return A?n=A(e,t):(n=document.createElement("div")).className="gutter gutter-"+t,n.__isSplitGutter=!0,n},this.split=tK(this.parent.children,t)},A.prototype.componentDidUpdate=function(e){var A=this,t=this.props;t.children;var n=t.minSize,r=t.sizes,i=t.collapsed,o=tV(t,["children","minSize","sizes","collapsed"]),s=e.minSize,a=e.sizes,l=e.collapsed,c=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map(function(t){return A.props[t]!==e[t]}).reduce(function(e,A){return e||A},!1);if(Array.isArray(n)&&Array.isArray(s)){var u=!1;n.forEach(function(e,A){u=u||e!==s[A]}),c=c||u}else c=!!(Array.isArray(n)||Array.isArray(s))||c||n!==s;if(c)o.minSize=n,o.sizes=r||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,A,t){return t.previousSibling},this.split=tK(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),o);else if(r){var d=!1;r.forEach(function(e,A){d=d||e!==a[A]}),d&&this.split.setSizes(this.props.sizes)}Number.isInteger(i)&&(i!==l||c)&&this.split.collapse(i)},A.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},A.prototype.render=function(){var e=this,A=this.props;A.sizes,A.minSize,A.maxSize,A.expandToMin,A.gutterSize,A.gutterAlign,A.snapOffset,A.dragInterval,A.direction,A.cursor,A.gutter,A.elementStyle,A.gutterStyle,A.onDrag,A.onDragStart,A.onDragEnd,A.collapsed;var t=A.children,n=tV(A,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return p.default.createElement("div",Object.assign({},{ref:function(A){e.parent=A}},n),t)},A}(p.default.Component);tG.propTypes={sizes:tF.default.arrayOf(tF.default.number),minSize:tF.default.oneOfType([tF.default.number,tF.default.arrayOf(tF.default.number)]),maxSize:tF.default.oneOfType([tF.default.number,tF.default.arrayOf(tF.default.number)]),expandToMin:tF.default.bool,gutterSize:tF.default.number,gutterAlign:tF.default.string,snapOffset:tF.default.oneOfType([tF.default.number,tF.default.arrayOf(tF.default.number)]),dragInterval:tF.default.number,direction:tF.default.string,cursor:tF.default.string,gutter:tF.default.func,elementStyle:tF.default.func,gutterStyle:tF.default.func,onDrag:tF.default.func,onDragStart:tF.default.func,onDragEnd:tF.default.func,collapsed:tF.default.number,children:tF.default.arrayOf(tF.default.element)},tG.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};let tz=e=>{let{style:A,children:t,gutterSize:n=5,...r}=e;return(0,g.jsx)(tG,{style:{display:"flex",flexDirection:"row",...A},direction:"horizontal",gutterSize:n,...r,children:t})},tW=e=>{let{style:A,children:t,gutterSize:n=5,...r}=e;return(0,g.jsx)(tG,{style:{display:"flex",flexDirection:"column",...A},gutterSize:n,direction:"vertical",...r,children:t})};e.s([],38911),e.i(38911);let{withProvider:t$,withContext:tX,useStyles:tY,PropsProvider:tJ}=(0,eo.createSlotRecipeContext)({key:"list"}),tq=t$("ul","root",{defaultProps:{role:"list"}}),tZ=tX("li","item"),t0=tX("span","indicator");e.s(["Indicator",()=>t0,"Item",()=>tZ,"Root",()=>tq,"RootPropsProvider",()=>tJ],11431);var t1=e.i(11431),t1=t1;function t2(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function t4(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"},child:[]}]})(e)}function t3(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}function t5(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function t6(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"},child:[]}]})(e)}function t8(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},child:[]}]})(e)}function t7(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"},child:[]}]})(e)}function t9(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},child:[]}]})(e)}function ne(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"},child:[]}]})(e)}function nA(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(e)}function nt(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"},child:[]}]})(e)}function nn(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}function nr(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(e)}function ni(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"},child:[]}]})(e)}function no(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"},child:[]}]})(e)}function ns(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M160 80c0-26.5 21.5-48 48-48l32 0c26.5 0 48 21.5 48 48l0 352c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48l0-352zM0 272c0-26.5 21.5-48 48-48l32 0c26.5 0 48 21.5 48 48l0 160c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48L0 272zM368 96l32 0c26.5 0 48 21.5 48 48l0 288c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48z"},child:[]}]})(e)}function na(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M418.4 157.9c35.3-8.3 61.6-40 61.6-77.9c0-44.2-35.8-80-80-80c-43.4 0-78.7 34.5-80 77.5L136.2 151.1C121.7 136.8 101.9 128 80 128c-44.2 0-80 35.8-80 80s35.8 80 80 80c12.2 0 23.8-2.7 34.1-7.6L259.7 407.8c-2.4 7.6-3.7 15.8-3.7 24.2c0 44.2 35.8 80 80 80s80-35.8 80-80c0-27.7-14-52.1-35.4-66.4l37.8-207.7zM156.3 232.2c2.2-6.9 3.5-14.2 3.7-21.7l183.8-73.5c3.6 3.5 7.4 6.7 11.6 9.5L317.6 354.1c-5.5 1.3-10.8 3.1-15.8 5.5L156.3 232.2z"},child:[]}]})(e)}function nl(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm320 96c0-26.9-16.5-49.9-40-59.3L280 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 204.7c-23.5 9.5-40 32.5-40 59.3c0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"},child:[]}]})(e)}function nc(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},child:[]}]})(e)}var nu=e.i(99180);let nd=AZ.VscDiffAdded,nh=AZ.VscDiffRemoved,nf=AZ.VscDiffModified;function ng(e){return"added"===e?{color:"green.solid",hexColor:String(nu.system.token("colors.green.solid")),backgroundColor:"green.subtle",hexBackgroundColor:String(nu.system.token("colors.green.subtle")),icon:nd}:"removed"===e?{color:"red.solid",hexColor:String(nu.system.token("colors.red.solid")),backgroundColor:"red.subtle",hexBackgroundColor:String(nu.system.token("colors.red.subtle")),icon:nh}:"modified"===e?{color:"orange.emphasized",hexColor:String(nu.system.token("colors.orange.emphasized")),backgroundColor:"orange.subtle",hexBackgroundColor:String(nu.system.token("colors.orange.subtle")),icon:nf}:{color:"gray.focusRing",hexColor:String(nu.system.token("colors.gray.focusRing")),backgroundColor:"white",hexBackgroundColor:String(nu.system.token("colors.white")),icon:void 0}}function np(e){if("model"===e)return{color:String(nu.system.token("colors.cyan.subtle")),icon:t7};if("metric"===e)return{color:String(nu.system.token("colors.rose.subtle")),icon:ns};if("source"===e)return{color:String(nu.system.token("colors.green.muted")),icon:t9};if("exposure"===e)return{color:String(nu.system.token("colors.rose.subtle")),icon:nl};if("semantic_model"===e)return{color:String(nu.system.token("colors.rose.focusRing")),icon:na};else if("seed"===e)return{color:String(nu.system.token("colors.green.emphasized")),icon:nt};else if("snapshot"===e)return{color:String(nu.system.token("colors.green.emphasized")),icon:t3};else return{color:"inherit",icon:void 0}}function nB(e,A){if(!e||!A)return;let t=Object.keys(e),n=Object.keys(A);if(t.length!==n.length)return!0;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!0;for(let t of n)if(!e[t]||e[t].type!==A[t]?.type)return!0;return!1}var nm=e.i(72230);let nw=({node:e,selected:A,onSelect:t,schemaChanged:n})=>{let r,i,{icon:o}=np(e.data.resourceType),{base:s,current:a}=e.data.data;return n?(r=(0,nm.findByRunType)("schema_diff").icon,i=ng("modified").color):!s&&a?(r=ng("added").icon,i=ng("added").color):s&&!a&&(r=ng("removed").icon,i=ng("removed").color),(0,g.jsx)(t1.Item,{children:(0,g.jsxs)(ev.Flex,{width:"100%",fontSize:"10pt",p:"5px 8px",cursor:"pointer",_hover:{bg:"gray.200"},bg:A?"gray.100":"inherit",onClick:()=>{t(e.id)},alignItems:"center",gap:"5px",children:[(0,g.jsx)(eU.Icon,{as:o}),(0,g.jsx)(eb.Box,{flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e.data.name}),r&&i&&(0,g.jsx)(eU.Icon,{as:r,color:i})]})})},ny=(0,p.forwardRef)(function({check:e},A){let{lineageGraph:t}=(0,A8.useLineageGraphContext)(),n=e.params,r=[...e9.cacheKeys.check(e.check_id),"select"],{isLoading:i,error:o,data:s}=(0,e8.useQuery)({queryKey:r,queryFn:async()=>tQ({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode}),refetchOnMount:!0,enabled:!n.node_id}),[a,l]=(0,p.useMemo)(()=>{let e=[],A=[],r=[],i=[];if(n.node_id)for(let A of n.node_id instanceof Array?n.node_id:[n.node_id]){let n=t?.nodes[A];n&&e.push(n)}else for(let A of s?.nodes??[]){let n=t?.nodes[A];n&&e.push(n)}let o=e.filter(e=>"model"===e.data.resourceType||"seed"===e.data.resourceType||"source"===e.data.resourceType||"snapshot"===e.data.resourceType);for(let e of o)nB(e.data.data.base?.columns,e.data.data.current?.columns)?A.push(e.id):!e.data.data.base&&e.data.data.current?r.push(e.id):e.data.data.base&&!e.data.data.current&&i.push(e.id);function a(e){return A.includes(e.id)?3:r.includes(e.id)?2:+!!i.includes(e.id)}return o.sort((e,A)=>{let t=a(e),n=a(A);return t!==n?n-t:e.data.name.localeCompare(A.data.name)}),[o,A]},[n.node_id,s?.nodes,t]),[c,u]=(0,p.useState)(0);if(i)return(0,g.jsx)(As.Center,{bg:"rgb(249,249,249)",height:"100%",children:"Loading..."});if(o)return(0,g.jsxs)(As.Center,{bg:"rgb(249,249,249)",height:"100%",className:"no-track-pii-safe",children:["Error: ",o.message]});if(0==a.length)return(0,g.jsx)(As.Center,{bg:"rgb(249,249,249)",height:"100%",children:"No nodes matched"});if(c<a.length){let e=a[c];return(0,g.jsxs)(tz,{sizes:[80,20],minSize:30,style:{height:"100%"},children:[(0,g.jsx)(tb,{base:e.data.data.base,current:e.data.data.current,enableScreenshot:!0,ref:A}),(0,g.jsx)(t1.Root,{overflow:"auto",backgroundColor:"white",as:"ul",listStyle:"none",children:a.map((e,A)=>(0,g.jsx)(nw,{node:e,schemaChanged:l.includes(e.id),selected:A===c,onSelect:()=>{u(A)}},e.id))})]})}return(0,g.jsx)(g.Fragment,{})});var nx=e.i(1343),nC=e.i(73465);let{withContext:nb,PropsProvider:nv}=(0,ew.createRecipeContext)({key:"textarea"}),nQ=nb(nC.Field.Textarea);function nF({value:e,onChange:A}){let{featureToggles:t}=(0,tt.useRecceInstanceContext)(),[n,r]=(0,p.useState)(!1),[i,o]=(0,p.useState)(),s=(0,p.useRef)(null),a=()=>{A&&(A(i),r(!1))};return((0,p.useEffect)(()=>{if(n&&s.current){let e=s.current;e.focus(),e.setSelectionRange(e.value.length,e.value.length)}},[n]),n)?(0,g.jsxs)(ev.Flex,{direction:"column",align:"flex-end",height:"100%",className:"no-track-pii-safe",children:[(0,g.jsx)(nQ,{value:i,onChange:e=>{o(e.target.value)},onKeyDown:e=>{"Escape"===e.key&&r(!1),(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),a())},ref:s,flex:1}),(0,g.jsxs)(ev.Flex,{gap:"12px",alignItems:"flex-end",children:[(0,g.jsx)(eQ.Link,{onClick:()=>{setTimeout(()=>{r(!1)},100)},colorPalette:"blue",children:"cancel"}),(0,g.jsx)(Ac.Button,{mt:"8px",size:"sm",colorPalette:"blue",onClick:a,children:"Update"})]})]}):(0,g.jsx)(e6.Text,{className:"no-track-pii-safe",height:"100%",overflow:"auto",fontSize:"11pt",onClick:t.disableUpdateChecklist?void 0:()=>{o(e??""),r(!0)},whiteSpace:"pre-wrap",wordBreak:"break-word",color:e?"inherit":"lightgray",children:e||"Add description here"})}nQ.displayName="Textarea";var nU=function(){function e(e,A){for(var t=0;t<A.length;t++){var n=A[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(A,t,n){return t&&e(A.prototype,t),n&&e(A,n),A}}(),nE=Object.freeze(Object.defineProperties(["",""],{raw:{value:Object.freeze(["",""])}})),nI=function(){function e(){for(var A=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return this.tag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?A.interimTag.bind(A,e):"string"==typeof e?A.transformEndResult(e):(e=e.map(A.transformString.bind(A)),A.transformEndResult(e.reduce(A.processSubstitutions.bind(A,n))))},n.length>0&&Array.isArray(n[0])&&(n=n[0]),this.transformers=n.map(function(e){return"function"==typeof e?e():e}),this.tag}return nU(e,[{key:"interimTag",value:function(e,A){for(var t=arguments.length,n=Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return this.tag(nE,e.apply(void 0,[A].concat(n)))}},{key:"processSubstitutions",value:function(e,A,t){var n=this.transformSubstitution(e.shift(),A);return"".concat(A,n,t)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,A){return A.onString?A.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,A){return this.transformers.reduce(function(e,t){return t.onSubstitution?t.onSubstitution(e,A):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,A){return A.onEndResult?A.onEndResult(e):e},e)}}]),e}();let nS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(A){if(""===e)return A.trim();if("start"===(e=e.toLowerCase())||"left"===e)return A.replace(/^\s*/,"");if("end"===e||"right"===e)return A.replace(/\s*$/,"");throw Error("Side not supported: "+e)}}},nk=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(A){if("initial"===e){var t=A.match(/^[^\S\n]*(?=\S)/gm),n=t&&Math.min.apply(Math,function(e){if(!Array.isArray(e))return Array.from(e);for(var A=0,t=Array(e.length);A<e.length;A++)t[A]=e[A];return t}(t.map(function(e){return e.length})));if(n){var r=RegExp("^.{"+n+"}","gm");return A.replace(r,"")}return A}if("all"===e)return A.replace(/^[^\S\n]+/gm,"");throw Error("Unknown type: "+e)}}},nj=function(e,A){return{onEndResult:function(t){if(null==e||null==A)throw Error("replaceResultTransformer requires at least 2 arguments.");return t.replace(e,A)}}},nH=function(e,A){return{onSubstitution:function(t,n){if(null==e||null==A)throw Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==t?t:t.toString().replace(e,A)}}};var nD={separator:"",conjunction:"",serial:!1};let nL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nD;return{onSubstitution:function(A,t){if(Array.isArray(A)){var n=A.length,r=e.separator,i=e.conjunction,o=e.serial,s=t.match(/(\n?[^\S\n]+)$/);if(A=s?A.join(r+s[1]):A.join(r+" "),i&&n>1){var a=A.lastIndexOf(r);A=A.slice(0,a)+(o?r:"")+" "+i+A.slice(a+1)}}return A}}},nR=function(e){return{onSubstitution:function(A,t){if(null!=e&&"string"==typeof e)"string"==typeof A&&A.includes(e)&&(A=A.split(e));else throw Error("You need to specify a string character to split by.");return A}}};var nT=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new nI(nL({separator:","}),nk,nS),new nI(nL({separator:",",conjunction:"and"}),nk,nS),new nI(nL({separator:",",conjunction:"or"}),nk,nS),new nI(nR("\n"),function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(nT):nT(e)?e:""}}},nL,nk,nS),new nI(nR("\n"),nL,nk,nS,nH(/&/g,"&amp;"),nH(/</g,"&lt;"),nH(/>/g,"&gt;"),nH(/"/g,"&quot;"),nH(/'/g,"&#x27;"),nH(/`/g,"&#x60;")),new nI(nj(/(?:\n(?:\s*))+/g," "),nS),new nI(nj(/(?:\n\s*)/g,""),nS),new nI(nL({separator:","}),nj(/(?:\s+)/g," "),nS),new nI(nL({separator:",",conjunction:"or"}),nj(/(?:\s+)/g," "),nS),new nI(nL({separator:",",conjunction:"and"}),nj(/(?:\s+)/g," "),nS),new nI(nL,nk,nS),new nI(nL,nj(/(?:\s+)/g," "),nS);var nM=new nI(nk,nS),nO=new nI(nk("all"),nS),nN=e.i(77855);function nP(){return{successToast:function(e){nN.toaster.create({description:e,type:"info",duration:5e3,closable:!0})},failToast:function(e,A){nN.toaster.create({title:e,description:String(A),type:"error",duration:5e3,closable:!0})}}}function n_(e){return(e.description??"")||"_(no description)_"}var nK=e.i(52051);function nV(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,n=Array(A);t<A;t++)n[t]=e[t];return n}function nG(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);A&&(n=n.filter(function(A){return Object.getOwnPropertyDescriptor(e,A).enumerable})),t.push.apply(t,n)}return t}function nz(e){for(var A=1;A<arguments.length;A++){var t=null!=arguments[A]?arguments[A]:{};A%2?nG(Object(t),!0).forEach(function(A){var n;n=t[A],A in e?Object.defineProperty(e,A,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[A]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nG(Object(t)).forEach(function(A){Object.defineProperty(e,A,Object.getOwnPropertyDescriptor(t,A))})}return e}function nW(e){return function A(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.length>=e.length?e.apply(this,r):function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return A.apply(t,[].concat(r,n))}}}function n$(e){return({}).toString.call(e).includes("Object")}function nX(e){return"function"==typeof e}var nY=nW(function(e,A){throw Error(e[A]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),nJ=function(e,A){return n$(A)||nY("changeType"),Object.keys(A).some(function(A){return!Object.prototype.hasOwnProperty.call(e,A)})&&nY("changeField"),A},nq=function(e){nX(e)||nY("selectorType")},nZ=function(e){nX(e)||n$(e)||nY("handlerType"),n$(e)&&Object.values(e).some(function(e){return!nX(e)})&&nY("handlersType")},n0=function(e){e||nY("initialIsRequired"),n$(e)||nY("initialType"),Object.keys(e).length||nY("initialContent")};function n1(e,A){return nX(A)?A(e.current):A}function n2(e,A){return e.current=nz(nz({},e.current),A),A}function n4(e,A,t){return nX(A)?A(e.current):Object.keys(t).forEach(function(t){var n;return null==(n=A[t])?void 0:n.call(A,e.current[t])}),t}var n3={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},n5=(u=function(e,A){throw Error(e[A]||e.default)},function e(){for(var A=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.length>=u.length?u.apply(this,n):function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.apply(A,[].concat(n,r))}})(n3),n6=function(){for(var e=arguments.length,A=Array(e),t=0;t<e;t++)A[t]=arguments[t];return function(e){return A.reduceRight(function(e,A){return A(e)},e)}},n8={type:"cancelation",msg:"operation is manually canceled"};function n7(e){var A=!1,t=new Promise(function(t,n){e.then(function(e){return A?n(n8):t(e)}),e.catch(n)});return t.cancel=function(){return A=!0},t}var n9=function(e){if(Array.isArray(e))return e}(d=({create:function(e){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n0(e),nZ(A);var t={current:e},n=nW(n4)(t,A),r=nW(n2)(t),i=nW(nJ)(e),o=nW(n1)(t);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return nq(e),e(t.current)},function(e){(function(){for(var e=arguments.length,A=Array(e),t=0;t<e;t++)A[t]=arguments[t];return function(e){return A.reduceRight(function(e,A){return A(e)},e)}})(n,r,i,o)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e,A){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,s=[],a=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(a=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(d,2)||function(e,A){if(e){if("string"==typeof e)return nV(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nV(e,2):void 0}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),re=n9[0],rA=n9[1];function rt(e){return document.body.appendChild(e)}function rn(e){var A,t,n=re(function(e){return{config:e.config,reject:e.reject}}),r=(A="".concat(n.config.paths.vs,"/loader.js"),t=document.createElement("script"),A&&(t.src=A),t);return r.onload=function(){return e()},r.onerror=n.reject,r}function rr(){var e=re(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),A=window.require;A.config(e.config),A(["vs/editor/editor.main"],function(A){var t=A.m;ri(t),e.resolve(t)},function(A){e.reject(A)})}function ri(e){re().monaco||rA({monaco:e})}var ro=new Promise(function(e,A){return rA({resolve:e,reject:A})}),rs=function(){var e=re(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(rA({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),n7(ro);if(window.monaco&&window.monaco.editor)return ri(window.monaco),e.resolve(window.monaco),n7(ro);n6(rt,rn)(rr)}return n7(ro)},ra={display:"flex",position:"relative",textAlign:"initial"},rl={width:"100%"},rc={display:"none"},ru={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},rd=function({children:e}){return p.default.createElement("div",{style:ru},e)},rh=(0,p.memo)(function({width:e,height:A,isEditorReady:t,loading:n,_ref:r,className:i,wrapperProps:o}){return p.default.createElement("section",{style:{...ra,width:e,height:A},...o},!t&&p.default.createElement(rd,null,n),p.default.createElement("div",{ref:r,style:{...rl,...!t&&rc},className:i}))}),rf=function(e){(0,p.useEffect)(e,[])},rg=function(e,A,t=!0){let n=(0,p.useRef)(!0);(0,p.useEffect)(n.current||!t?()=>{n.current=!1}:e,A)};function rp(){}function rB(e,A,t,n){var r,i,o,s,a,l;return r=e,i=n,r.editor.getModel(rm(r,i))||(o=e,s=A,a=t,l=n,o.editor.createModel(s,a,l?rm(o,l):void 0))}function rm(e,A){return e.Uri.parse(A)}var rw=(0,p.memo)(function({original:e,modified:A,language:t,originalLanguage:n,modifiedLanguage:r,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:c="Loading...",options:u={},height:d="100%",width:h="100%",className:f,wrapperProps:g={},beforeMount:B=rp,onMount:m=rp}){let[w,y]=(0,p.useState)(!1),[x,C]=(0,p.useState)(!0),b=(0,p.useRef)(null),v=(0,p.useRef)(null),Q=(0,p.useRef)(null),F=(0,p.useRef)(m),U=(0,p.useRef)(B),E=(0,p.useRef)(!1);rf(()=>{let e=rs();return e.then(e=>(v.current=e)&&C(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let A;return b.current?(A=b.current?.getModel(),void(s||A?.original?.dispose(),a||A?.modified?.dispose(),b.current?.dispose())):e.cancel()}}),rg(()=>{if(b.current&&v.current){let A=b.current.getOriginalEditor(),r=rB(v.current,e||"",n||t||"text",i||"");r!==A.getModel()&&A.setModel(r)}},[i],w),rg(()=>{if(b.current&&v.current){let e=b.current.getModifiedEditor(),n=rB(v.current,A||"",r||t||"text",o||"");n!==e.getModel()&&e.setModel(n)}},[o],w),rg(()=>{let e=b.current.getModifiedEditor();e.getOption(v.current.editor.EditorOption.readOnly)?e.setValue(A||""):A!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:A||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[A],w),rg(()=>{b.current?.getModel()?.original.setValue(e||"")},[e],w),rg(()=>{let{original:e,modified:A}=b.current.getModel();v.current.editor.setModelLanguage(e,n||t||"text"),v.current.editor.setModelLanguage(A,r||t||"text")},[t,n,r],w),rg(()=>{v.current?.editor.setTheme(l)},[l],w),rg(()=>{b.current?.updateOptions(u)},[u],w);let I=(0,p.useCallback)(()=>{if(!v.current)return;U.current(v.current);let s=rB(v.current,e||"",n||t||"text",i||""),a=rB(v.current,A||"",r||t||"text",o||"");b.current?.setModel({original:s,modified:a})},[t,A,r,e,n,i,o]),S=(0,p.useCallback)(()=>{!E.current&&Q.current&&(b.current=v.current.editor.createDiffEditor(Q.current,{automaticLayout:!0,...u}),I(),v.current?.editor.setTheme(l),y(!0),E.current=!0)},[u,l,I]);return(0,p.useEffect)(()=>{w&&F.current(b.current,v.current)},[w]),(0,p.useEffect)(()=>{x||w||S()},[x,w,S]),p.default.createElement(rh,{width:h,height:d,isEditorReady:w,loading:c,_ref:Q,className:f,wrapperProps:g})}),ry=function(e){let A=(0,p.useRef)();return(0,p.useEffect)(()=>{A.current=e},[e]),A.current},rx=new Map,rC=(0,p.memo)(function({defaultValue:e,defaultLanguage:A,defaultPath:t,value:n,language:r,path:i,theme:o="light",line:s,loading:a="Loading...",options:l={},overrideServices:c={},saveViewState:u=!0,keepCurrentModel:d=!1,width:h="100%",height:f="100%",className:g,wrapperProps:B={},beforeMount:m=rp,onMount:w=rp,onChange:y,onValidate:x=rp}){let[C,b]=(0,p.useState)(!1),[v,Q]=(0,p.useState)(!0),F=(0,p.useRef)(null),U=(0,p.useRef)(null),E=(0,p.useRef)(null),I=(0,p.useRef)(w),S=(0,p.useRef)(m),k=(0,p.useRef)(),j=(0,p.useRef)(n),H=ry(i),D=(0,p.useRef)(!1),L=(0,p.useRef)(!1);rf(()=>{let e=rs();return e.then(e=>(F.current=e)&&Q(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>U.current?void(k.current?.dispose(),d?u&&rx.set(i,U.current.saveViewState()):U.current.getModel()?.dispose(),U.current.dispose()):e.cancel()}),rg(()=>{let o=rB(F.current,e||n||"",A||r||"",i||t||"");o!==U.current?.getModel()&&(u&&rx.set(H,U.current?.saveViewState()),U.current?.setModel(o),u&&U.current?.restoreViewState(rx.get(i)))},[i],C),rg(()=>{U.current?.updateOptions(l)},[l],C),rg(()=>{U.current&&void 0!==n&&(U.current.getOption(F.current.editor.EditorOption.readOnly)?U.current.setValue(n):n!==U.current.getValue()&&(L.current=!0,U.current.executeEdits("",[{range:U.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),U.current.pushUndoStop(),L.current=!1))},[n],C),rg(()=>{let e=U.current?.getModel();e&&r&&F.current?.editor.setModelLanguage(e,r)},[r],C),rg(()=>{void 0!==s&&U.current?.revealLine(s)},[s],C),rg(()=>{F.current?.editor.setTheme(o)},[o],C);let R=(0,p.useCallback)(()=>{if(!(!E.current||!F.current)&&!D.current){S.current(F.current);let a=i||t,d=rB(F.current,n||e||"",A||r||"",a||"");U.current=F.current?.editor.create(E.current,{model:d,automaticLayout:!0,...l},c),u&&U.current.restoreViewState(rx.get(a)),F.current.editor.setTheme(o),void 0!==s&&U.current.revealLine(s),b(!0),D.current=!0}},[e,A,t,n,r,i,l,c,u,o,s]);return(0,p.useEffect)(()=>{C&&I.current(U.current,F.current)},[C]),(0,p.useEffect)(()=>{v||C||R()},[v,C,R]),j.current=n,(0,p.useEffect)(()=>{C&&y&&(k.current?.dispose(),k.current=U.current?.onDidChangeModelContent(e=>{L.current||y(U.current.getValue(),e)}))},[C,y]),(0,p.useEffect)(()=>{if(C){let e=F.current.editor.onDidChangeMarkers(e=>{let A=U.current.getModel()?.uri;if(A&&e.find(e=>e.path===A.path)){let e=F.current.editor.getModelMarkers({resource:A});x?.(e)}});return()=>{e?.dispose()}}return()=>{}},[C,x]),p.default.createElement(rh,{width:h,height:f,isEditorReady:C,loading:a,_ref:E,className:g,wrapperProps:B})}),t1=t1;e.s([],87047),e.i(87047);let{StylesProvider:rb,ClassNamesProvider:rv,useRecipeResult:rQ,withContext:rF,useStyles:rU,PropsProvider:rE}=(0,eo.createSlotRecipeContext)({key:"table"}),rI=(0,p.forwardRef)(function({native:e,...A},t){let{styles:n,props:r,classNames:i}=rQ(A),o=(0,p.useMemo)(()=>e?{...n.root,"& thead":n.header,"& tbody":n.body,"& tfoot":n.footer,"& thead th":n.columnHeader,"& tr":n.row,"& td":n.cell,"& caption":n.caption}:n.root,[n,e]);return(0,g.jsx)(rv,{value:i,children:(0,g.jsx)(rb,{value:n,children:(0,g.jsx)(B.chakra.table,{ref:t,...r,css:[o,A.css],className:(0,m.cx)(i?.root,A.className)})})})}),rS=rF("tr","row"),rk=(0,B.chakra)("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),rj=rF("thead","header"),rH=rF("tfoot","footer"),rD=rF("th","columnHeader"),rL=rF("td","cell"),rR=rF("caption","caption",{defaultProps:{captionSide:"bottom"}}),rT=rF("tbody","body"),rM=rF("colgroup"),rO=rF("col");e.s(["Body",()=>rT,"Caption",()=>rR,"Cell",()=>rL,"Column",()=>rO,"ColumnGroup",()=>rM,"ColumnHeader",()=>rD,"Footer",()=>rH,"Header",()=>rj,"Root",()=>rI,"RootPropsProvider",()=>rE,"Row",()=>rS,"ScrollArea",()=>rk],65265);var rN=e.i(65265),rN=rN,rP=e.i(30902),r_=e.i(38153),rK=e.i(92421),rV=e.i(32713),rG=e.i(39392),rz=e.i(16467);function rW(e,A){let t=(0,rz.toDate)(e)-(0,rz.toDate)(A);return t<0?-1:t>0?1:t}var r$=e.i(11518);function rX(e,A,t){var n;let r,i=(0,rK.getDefaultOptions)(),o=t?.locale??i.locale??r_.defaultLocale,s=rW(e,A);if(isNaN(s))throw RangeError("Invalid time value");let a=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:s}),[l,c]=(0,rG.normalizeDates)(t?.in,...s>0?[A,e]:[e,A]),u=(n=void 0,e=>{let A=(n?Math[n]:Math.trunc)(e);return 0===A?0:A})(((0,rz.toDate)(c)-(0,rz.toDate)(l))/1e3),d=Math.round((u-((0,rV.getTimezoneOffsetInMilliseconds)(c)-(0,rV.getTimezoneOffsetInMilliseconds)(l))/1e3)/60);if(d<2)if(t?.includeSeconds)if(u<5)return o.formatDistance("lessThanXSeconds",5,a);else if(u<10)return o.formatDistance("lessThanXSeconds",10,a);else if(u<20)return o.formatDistance("lessThanXSeconds",20,a);else if(u<40)return o.formatDistance("halfAMinute",0,a);else if(u<60)return o.formatDistance("lessThanXMinutes",1,a);else return o.formatDistance("xMinutes",1,a);else if(0===d)return o.formatDistance("lessThanXMinutes",1,a);else return o.formatDistance("xMinutes",d,a);if(d<45)return o.formatDistance("xMinutes",d,a);if(d<90)return o.formatDistance("aboutXHours",1,a);if(d<r$.minutesInDay){let e=Math.round(d/60);return o.formatDistance("aboutXHours",e,a)}if(d<2520)return o.formatDistance("xDays",1,a);else if(d<r$.minutesInMonth){let e=Math.round(d/r$.minutesInDay);return o.formatDistance("xDays",e,a)}else if(d<2*r$.minutesInMonth)return r=Math.round(d/r$.minutesInMonth),o.formatDistance("aboutXMonths",r,a);if((r=function(e,A,t){var n,r;let i,o,s,a,[l,c,u]=(0,rG.normalizeDates)(void 0,e,e,A),d=rW(c,u),h=Math.abs(function(e,A,t){let[n,r]=(0,rG.normalizeDates)(void 0,e,A);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(c,u));if(h<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-d*h);let f=rW(c,u)===-d;+(i=(0,rz.toDate)(l,void 0),n=void 0,(o=(0,rz.toDate)(i,n?.in)).setHours(23,59,59,999),o)==+(r=void 0,a=(s=(0,rz.toDate)(i,r?.in)).getMonth(),s.setFullYear(s.getFullYear(),a+1,0),s.setHours(23,59,59,999),s)&&1===h&&1===rW(l,u)&&(f=!1);let g=d*(h-f);return 0===g?0:g}(c,l))<12){let e=Math.round(d/r$.minutesInMonth);return o.formatDistance("xMonths",e,a)}{let e=r%12,A=Math.trunc(r/12);return e<3?o.formatDistance("aboutXYears",A,a):e<9?o.formatDistance("overXYears",A,a):o.formatDistance("almostXYears",A+1,a)}}var rY=e.i(87122);function rJ(e,A){let t,n,r=()=>(0,rY.constructFrom)(A?.in,NaN),i=A?.additionalDigits??2,o=function(e){let A,t={},n=e.split(rq);if(n.length>2)return t;if(/:/.test(n[0])?A=n[0]:(t.date=n[0],A=n[1],rZ.test(t.date)&&(t.date=e.split(rZ)[0],A=e.substr(t.date.length,e.length))),A){let e=r0.exec(A);e?(t.time=A.replace(e[1],""),t.timezone=e[1]):t.time=A}return t}(e);if(o.date){let e=function(e,A){let t=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+A)+"})|(\\d{2}|[+-]\\d{"+(2+A)+"})$)"),n=e.match(t);if(!n)return{year:NaN,restDateString:""};let r=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?r:100*i,restDateString:e.slice((n[1]||n[2]).length)}}(o.date,i);t=function(e,A){var t,n,r,i,o,s,a,l,c,u;if(null===A)return new Date(NaN);let d=e.match(r1);if(!d)return new Date(NaN);let h=!!d[4],f=r3(d[1]),g=r3(d[2])-1,p=r3(d[3]),B=r3(d[4]),m=r3(d[5])-1;if(h){let e,s;return(t=B,n=m,t>=1&&t<=53&&n>=0&&n<=6)?(r=A,i=B,o=m,(e=new Date(0)).setUTCFullYear(r,0,4),s=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((i-1)*7+o+1-s)),e):new Date(NaN)}{let e=new Date(0);return(s=A,a=g,l=p,a>=0&&a<=11&&l>=1&&l<=(r6[a]||(r8(s)?29:28))&&(c=A,(u=f)>=1&&u<=(r8(c)?366:365)))?(e.setUTCFullYear(A,g,Math.max(f,p)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!t||isNaN(+t))return r();let s=+t,a=0;if(o.time&&isNaN(a=function(e){var A,t,n;let r=e.match(r2);if(!r)return NaN;let i=r5(r[1]),o=r5(r[2]),s=r5(r[3]);return(A=i,t=o,n=s,24===A?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&A>=0&&A<25)?i*r$.millisecondsInHour+o*r$.millisecondsInMinute+1e3*s:NaN}(o.time)))return r();if(o.timezone){if(isNaN(n=function(e){var A;if("Z"===e)return 0;let t=e.match(r4);if(!t)return 0;let n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return(A=i)>=0&&A<=59?n*(r*r$.millisecondsInHour+i*r$.millisecondsInMinute):NaN}(o.timezone)))return r()}else{let e=new Date(s+a),t=(0,rz.toDate)(0,A?.in);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return(0,rz.toDate)(s+a+n,A?.in)}let rq=/[T ]/,rZ=/[Z ]/i,r0=/([Z+-].*)$/,r1=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,r2=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,r4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function r3(e){return e?parseInt(e):1}function r5(e){return e&&parseFloat(e.replace(",","."))||0}let r6=[31,null,31,30,31,30,31,31,30,31,30,31];function r8(e){return e%400==0||e%4==0&&e%100!=0}var r7=e.i(72064),r9=e.i(20686),ie=e.i(10280);function iA(e){let A=rJ(e);return(0,rP.format)(A,"yyyy-MM-dd'T'HH:mm:ss")}function it(e){return rX(rJ(e),new Date,{addSuffix:!0})}function ir(e){let A=new Set,t=new Set;if(e?.nodes)for(let n of Object.values(e.nodes))n.data.data.base?.schema&&A.add(n.data.data.base.schema),n.data.data.current?.schema&&t.add(n.data.data.current.schema);return[A,t]}function ii(e){return Object.values(e).every(e=>null===e)?[(0,g.jsx)(ev.Flex,{ml:"10px",children:"No information"},"no info")]:Object.entries(e).filter(([e,A])=>"url"!==e&&null!=A).map(([e,A])=>(0,g.jsxs)(t1.Item,{ml:"10px",children:[e,": ",A]},e))}function io(){let{envInfo:e,reviewMode:A,lineageGraph:t}=(0,A8.useLineageGraphContext)(),{open:n,onOpen:r,onClose:i}=(0,Ak.useDisclosure)(),o=e?.git,s=e?.pullRequest,a={...o,...s},l=e?.dbt?.base,c=e?.dbt?.current,u=l?.generated_at?iA(l.generated_at):"",d=c?.generated_at?iA(c.generated_at):"",h="",f="";l&&(h=l.generated_at?it(l.generated_at):""),c&&(f=c.generated_at?it(c.generated_at):"");let[p,B]=ir(t);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(to.Tooltip,{content:"Environment Info",positioning:{placement:"bottom-end"},children:(0,g.jsxs)("div",{className:"flex items-center hover:cursor-pointer hover:text-black",onClick:r,children:[(0,g.jsxs)("div",{className:"hidden text-sm lg:flex lg:flex-col",children:[(0,g.jsxs)("div",{className:"flex gap-1",children:[(0,g.jsx)("span",{className:"no-track-pii-safe max-w-32 truncate",children:Array.from(p).join(", ")})," ","(",h,")"]}),(0,g.jsxs)("div",{className:"flex gap-1",children:[(0,g.jsx)("span",{className:"no-track-pii-safe max-w-32 truncate",children:Array.from(B).join(", ")})," ","(",f,")"]})]}),(0,g.jsx)(Am.IconButton,{size:"sm",variant:"plain","aria-label":"Environment Info",children:(0,g.jsx)(eU.Icon,{verticalAlign:"middle",as:r7.IconInfo,boxSize:"16px"})})]})}),(0,g.jsx)(Aj.Dialog.Root,{open:n,onOpenChange:i,size:"lg",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:"Environment Information"})}),(0,g.jsx)(Aj.Dialog.Body,{children:(0,g.jsxs)(ev.Flex,{direction:"column",gap:"5px",children:[A?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(ev.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(eE.Heading,{size:"sm",children:"Review Information"}),(0,g.jsxs)(t1.Root,{children:[a.url&&(0,g.jsxs)(t1.Item,{ml:"10px",children:["url:"," ",(0,g.jsxs)(eQ.Link,{href:a.url,color:"blue.500",target:"_blank",children:[a.url," ",(0,g.jsx)(ie.LuExternalLink,{})]})]}),!(0,r9.default)(a)&&ii(a)]})]})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(ev.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(eE.Heading,{size:"sm",children:"Dev Information"}),(0,g.jsx)(t1.Root,{children:o&&ii(o)})]})}),(0,g.jsx)(Aa.Separator,{}),e?.adapterType==="dbt"&&(0,g.jsxs)(ev.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(eE.Heading,{size:"sm",children:"DBT"}),(0,g.jsx)(rN.ScrollArea,{borderWidth:"1px",height:"30rem",children:(0,g.jsxs)(rN.Root,{size:"sm",variant:"line",stickyHeader:!0,children:[(0,g.jsx)(rN.Header,{children:(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.ColumnHeader,{}),(0,g.jsx)(rN.ColumnHeader,{children:"base"}),(0,g.jsx)(rN.ColumnHeader,{children:"current"})]})}),(0,g.jsxs)(rN.Body,{children:[(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.Cell,{children:"schema"}),(0,g.jsx)(rN.Cell,{className:"no-track-pii-safe",children:Array.from(p).map(e=>(0,g.jsx)(to.Tooltip,{content:e,positioning:{placement:"bottom"},children:(0,g.jsx)("div",{className:"max-w-72 truncate",children:e})},e))}),(0,g.jsx)(rN.Cell,{className:"no-track-pii-safe",children:Array.from(B).map(e=>(0,g.jsx)(to.Tooltip,{content:e,positioning:{placement:"bottom"},children:(0,g.jsx)("div",{className:"max-w-72 truncate",children:e})},e))})]}),(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.Cell,{children:"version"}),(0,g.jsx)(rN.Cell,{children:l?.dbt_version}),(0,g.jsx)(rN.Cell,{children:c?.dbt_version})]}),(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.Cell,{children:"timestamp"}),(0,g.jsx)(rN.Cell,{children:u}),(0,g.jsx)(rN.Cell,{children:d})]})]})]})})]}),e?.adapterType==="sqlmesh"&&(0,g.jsxs)(ev.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(eE.Heading,{size:"sm",children:"SQLMesh"}),(0,g.jsx)(rN.ScrollArea,{borderWidth:"1px",height:"30rem",children:(0,g.jsxs)(rN.Root,{variant:"line",stickyHeader:!0,children:[(0,g.jsx)(rN.Header,{children:(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.ColumnHeader,{}),(0,g.jsx)(rN.ColumnHeader,{children:"base"}),(0,g.jsx)(rN.ColumnHeader,{children:"current"})]})}),(0,g.jsx)(rN.Body,{children:(0,g.jsxs)(rN.Row,{children:[(0,g.jsx)(rN.Cell,{children:"Environment"}),(0,g.jsx)(rN.Cell,{className:"no-track-pii-safe",children:e.sqlmesh?.base_env}),(0,g.jsx)(rN.Cell,{className:"no-track-pii-safe",children:e.sqlmesh?.current_env})]})})]})})]})]})}),(0,g.jsx)(Aj.Dialog.Footer,{children:(0,g.jsx)(Ac.Button,{colorPalette:"blue",mr:3,onClick:i,children:"Close"})}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})]})}function is({value:e,onChange:A,onRun:t,onRunBase:n,onRunDiff:r,label:i,CustomEditor:o,options:s={},manifestData:a,schemas:l,...c}){let{featureToggles:u}=(0,tt.useRecceInstanceContext)(),d="";return a&&(d=a.generated_at?it(a.generated_at):""),(0,p.useEffect)(()=>{let e=e=>{let A=document.querySelector(".monaco-editor");A?.contains(document.activeElement)&&" "===e.key&&e.stopPropagation()};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[]),(0,g.jsxs)(g.Fragment,{children:[(i??t??n)&&(0,g.jsxs)(ev.Flex,{backgroundColor:"#EDF2F880",height:"40px",minH:"40px",fontSize:"14px",align:"center",margin:"0",padding:"0px 16px",flex:"0 0 40px",children:[(0,g.jsx)(e6.Text,{as:"strong",className:"no-track-pii-safe",children:i?i.toUpperCase():""}),a&&(0,g.jsxs)("span",{className:"ml-1",children:["(",l&&(0,g.jsxs)("span",{className:"no-track-pii-safe",children:[l,", "]}),(0,g.jsx)("span",{children:d}),")"]}),(0,g.jsx)(eF.Spacer,{}),(t??n)&&(0,g.jsxs)(Ac.Button,{size:"xs",variant:"outline",onClick:t??n,backgroundColor:"white",padding:"6px 12px",disabled:u.disableDatabaseQuery,children:[(0,g.jsx)(nc,{})," Run Query"]})]}),o??(0,g.jsx)(rC,{className:"no-track-pii-safe",language:"sql",theme:"vs",value:e,onChange:e=>{void 0!==e&&A&&A(e)},onMount:(e,A)=>{t&&e.addCommand(A.KeyMod.CtrlCmd|A.KeyCode.Enter,t),n&&e.addCommand(A.KeyMod.Alt|A.KeyCode.Enter,n),r&&e.addCommand(A.KeyMod.CtrlCmd|A.KeyMod.Shift|A.KeyCode.Enter,r)},options:{domReadOnly:!1,readOnly:!1,extraEditorClassName:"no-track-pii-safe max-h-dvh",tabSize:2,fontSize:16,lineNumbers:"on",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"indent",...s}})]})}function ia({value:e,baseValue:A,onChange:t,onChangeBase:n,onRun:r,onRunBase:i,onRunDiff:o,options:s={},labels:a,SetupGuide:l,...c}){let u,d,h=a?a[0]:"Base",f=a?a[1]:"Current",{envInfo:p,lineageGraph:B}=(0,A8.useLineageGraphContext)();p?.dbt?.base&&p.dbt.current&&(u=p.dbt.base,d=p.dbt.current);let[m,w]=ir(B);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(ev.Flex,{height:"100%",gap:0,children:[(0,g.jsx)(nK.Stack,{height:"100%",width:"50%",gap:0,borderRight:"1px",borderColor:"#D4DBE4",children:(0,g.jsx)(is,{label:h,value:A??"",onChange:n,onRunBase:i,options:s,CustomEditor:l,manifestData:u??void 0,schemas:Array.from(m).join(", "),...c})}),(0,g.jsx)(nK.Stack,{height:"100%",width:"50%",gap:0,children:(0,g.jsx)(is,{label:f,value:e,onChange:t,onRun:r,options:s,manifestData:d??void 0,schemas:Array.from(w).join(", "),...c})})]})})}var il=e.i(61566),tx=tx;e.s([],97219),e.i(97219);var ez=ez;let{withProvider:ic,withContext:iu,useStyles:id,PropsProvider:ih}=(0,eo.createSlotRecipeContext)({key:"progressCircle"}),ig=ic(ez.RootProvider,"root",{forwardAsChild:!0}),ip=ic(ez.Root,"root",{forwardAsChild:!0}),iB=iu(ez.Label,"label",{forwardAsChild:!0}),im=iu(ez.Circle,"circle",{forwardAsChild:!0}),iw=iu(ez.CircleTrack,"circleTrack",{forwardAsChild:!0}),iy=iu(ez.CircleRange,"circleRange",{forwardAsChild:!0}),ix=iu(ez.ValueText,"valueText",{forwardAsChild:!0});ez.Context,e.s(["Circle",()=>im,"Label",()=>iB,"PropsProvider",()=>ih,"Range",()=>iy,"Root",()=>ip,"RootProvider",()=>ig,"Track",()=>iw,"ValueText",()=>ix],75214);var iC=e.i(75214),iC=iC;let ib="10.22.0",iv=globalThis;function iQ(){return iF(iv),iv}function iF(e){let A=e.__SENTRY__=e.__SENTRY__||{};return A.version=A.version||ib,A[ib]=A[ib]||{}}function iU(e,A,t=iv){let n=t.__SENTRY__=t.__SENTRY__||{},r=n[ib]=n[ib]||{};return r[e]||(r[e]=A())}let iE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,iI=Object.prototype.toString,iS={};function ik(e){if(!("console"in iv))return e();let A=iv.console,t={},n=Object.keys(iS);n.forEach(e=>{let n=iS[e];t[e]=A[e],A[e]=n});try{return e()}finally{n.forEach(e=>{A[e]=t[e]})}}function ij(e,...A){iE&&function(){return iE?iU("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&ik(()=>{iv.console[e](`Sentry Logger [${e}]:`,...A)})}let iH=function(...e){ij("log",...e)},iD=function(...e){ij("warn",...e)},iL=function(...e){ij("error",...e)};function iR(e=iv.crypto||iv.msCrypto){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return A||(A="10000000100040008000100000000000"),A.replace(/[018]/g,e=>(e^(15&16*Math.random())>>e/4).toString(16))}function iT(){return Date.now()/1e3}let iM="_sentrySpan";function iO(e,A){if(A)try{Object.defineProperty(e,iM,{value:A,writable:!0,configurable:!0})}catch{iE&&iH(`Failed to add non-enumerable property "${iM}" to object`,e)}else delete e[iM]}class iN{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:iR(),sampleRand:Math.random()}}clone(){let e=new iN;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,iO(e,this[iM]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,A={}){if(A.user&&(!e.ipAddress&&A.user.ip_address&&(e.ipAddress=A.user.ip_address),e.did||A.did||(e.did=A.user.id||A.user.email||A.user.username)),e.timestamp=A.timestamp||(t??(t=function(){let{performance:e}=iv;if(!e?.now||!e.timeOrigin)return iT;let A=e.timeOrigin;return()=>(A+e.now())/1e3}()))(),A.abnormal_mechanism&&(e.abnormal_mechanism=A.abnormal_mechanism),A.ignoreDuration&&(e.ignoreDuration=A.ignoreDuration),A.sid&&(e.sid=32===A.sid.length?A.sid:iR()),void 0!==A.init&&(e.init=A.init),!e.did&&A.did&&(e.did=`${A.did}`),"number"==typeof A.started&&(e.started=A.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof A.duration)e.duration=A.duration;else{let A=e.timestamp-e.started;e.duration=A>=0?A:0}A.release&&(e.release=A.release),A.environment&&(e.environment=A.environment),!e.ipAddress&&A.ipAddress&&(e.ipAddress=A.ipAddress),!e.userAgent&&A.userAgent&&(e.userAgent=A.userAgent),"number"==typeof A.errors&&(e.errors=A.errors),A.status&&(e.status=A.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,A){return this._tags={...this._tags,[e]:A},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,A){return this._extra={...this._extra,[e]:A},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,A){return null===A?delete this._contexts[e]:this._contexts[e]=A,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let A="function"==typeof e?e(this):e,{tags:t,extra:n,user:r,contexts:i,level:o,fingerprint:s=[],propagationContext:a}=(A instanceof iN?A.getScopeData():"[object Object]"===iI.call(A)?e:void 0)||{};return this._tags={...this._tags,...t},this._extra={...this._extra,...n},this._contexts={...this._contexts,...i},r&&Object.keys(r).length&&(this._user=r),o&&(this._level=o),s.length&&(this._fingerprint=s),a&&(this._propagationContext=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,iO(this,void 0),this._attachments=[],this.setPropagationContext({traceId:iR(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,A){let t="number"==typeof A?A:100;if(t<=0)return this;let n={timestamp:iT(),...e,message:e.message?function(e,A=0){return"string"!=typeof e||0===A||e.length<=A?e:`${e.slice(0,A)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>t&&(this._breadcrumbs=this._breadcrumbs.slice(-t),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[iM]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(A,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(A&&0===Object.keys(t).length)return A;let r={...A};for(let A in t)Object.prototype.hasOwnProperty.call(t,A)&&(r[A]=e(r[A],t[A],n-1));return r}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,A){let t=A?.event_id||iR();if(!this._client)return iE&&iD("No client configured on scope - will not capture exception!"),t;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...A,event_id:t},this),t}captureMessage(e,A,t){let n=t?.event_id||iR();if(!this._client)return iE&&iD("No client configured on scope - will not capture message!"),n;let r=Error(e);return this._client.captureMessage(e,A,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureEvent(e,A){let t=A?.event_id||iR();return this._client?this._client.captureEvent(e,{...A,event_id:t},this):iE&&iD("No client configured on scope - will not capture event!"),t}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class iP{constructor(e,A){let t,n;t=e||new iN,n=A||new iN,this._stack=[{scope:t}],this._isolationScope=n}withScope(e){var A;let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(A=t,A?.then&&"function"==typeof A.then)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function i_(){let e=iF(iQ());return e.stack=e.stack||new iP(iU("defaultCurrentScope",()=>new iN),iU("defaultIsolationScope",()=>new iN))}function iK(e){return i_().withScope(e)}function iV(e,A){let t=i_();return t.withScope(()=>(t.getStackTop().scope=e,A(e)))}function iG(e){return i_().withScope(()=>e(i_().getIsolationScope()))}function iz(e){let A=iF(e);return A.acs?A.acs:{withIsolationScope:iG,withScope:iK,withSetScope:iV,withSetIsolationScope:(e,A)=>iG(A),getCurrentScope:()=>i_().getScope(),getIsolationScope:()=>i_().getIsolationScope()}}function iW(){return iz(iQ()).getCurrentScope()}function i$(...e){let A=iz(iQ());if(2===e.length){let[t,n]=e;return t?A.withSetScope(t,n):A.withScope(n)}return A.withScope(e[0])}function iX(){return iW().getClient()}let iY=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function iJ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let iq=["user","level","extra","contexts","tags","fingerprint","propagationContext"],iZ="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function i0(e={}){let A=iv.document,t=A?.head||A?.body;if(!t){iZ&&iL("[showReportDialog] Global document not defined");return}let n=iW(),r=iX(),i=r?.getDsn();if(!i){iZ&&iL("[showReportDialog] DSN not configured");return}let o={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||iz(iQ()).getIsolationScope().lastEventId()},s=iv.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,A){let t,n,r=function(e){let A="string"==typeof e?function(e){let A=iY.exec(e);if(!A)return void ik(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[t,n,r="",i="",o="",s=""]=A.slice(1),a="",l=s,c=l.split("/");if(c.length>1&&(a=c.slice(0,-1).join("/"),l=c.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return iJ({host:i,pass:r,path:a,projectId:l,port:o,protocol:t,publicKey:n})}(e):iJ(e);if(A&&function(e){if(!iE)return!0;let{port:A,projectId:t,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(A=>!e[A]&&(iL(`Invalid Sentry Dsn: ${A} missing`),!0))&&(t.match(/^\d+$/)?"http"!==n&&"https"!==n?(iL(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):!(A&&isNaN(parseInt(A,10)))||(iL(`Invalid Sentry Dsn: Invalid port ${A}`),!1):(iL(`Invalid Sentry Dsn: Invalid projectId ${t}`),!1))}(A))return A}(e);if(!r)return"";let i=`${(t=r.protocol?`${r.protocol}:`:"",n=r.port?`:${r.port}`:"",`${t}//${r.host}${n}${r.path?`/${r.path}`:""}/api/`)}embed/error-page/`,o=`dsn=${function(e,A=!1){let{host:t,path:n,pass:r,port:i,projectId:o,protocol:s,publicKey:a}=e;return`${s}://${a}${A&&r?`:${r}`:""}@${t}${i?`:${i}`:""}/${n?`${n}/`:n}${o}`}(r)}`;for(let e in A)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=A.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(A[e])}`;return`${i}?${o}`}(i,o);let{onLoad:a,onClose:l}=o;if(a&&(s.onload=a),l){let e=A=>{if("__sentry_reportdialog_closed__"===A.data)try{l()}finally{iv.removeEventListener("message",e)}};iv.addEventListener("message",e)}t.appendChild(s)}var i1=p;let i2="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.i(5927).default;let i4={componentStack:null,error:null,eventId:null};class i3 extends i1.Component{constructor(e){super(e),this.state=i4,this._openFallbackReportDialog=!0;const A=iX();A&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=A.on("afterSendEvent",A=>{!A.type&&this._lastEventId&&A.event_id===this._lastEventId&&i0({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,A){let{componentStack:t}=A,{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;i$(s=>{n&&n(s,e,t);let a=function(e,{componentStack:A},t){let n;if(null!==(n=p.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&function(e){switch(iI.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var A=e,t=Error;try{return A instanceof t}catch{return!1}}}(e)&&A){let t,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=A,t=new WeakSet,function e(A,n){if(!t.has(A)){if(A.cause)return t.add(A),e(A.cause,n);A.cause=n}}(e,n)}return i$(n=>(n.setContext("react",{componentStack:A}),iW().captureException(e,function(e){if(e){var A;return(A=e)instanceof iN||"function"==typeof A||Object.keys(e).some(e=>iq.includes(e))?{captureContext:e}:e}}(t))))}(e,A,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});r&&r(e,t,a),i&&(this._lastEventId=a,this._openFallbackReportDialog&&i0({...o,eventId:a})),this.setState({error:e,componentStack:t,eventId:a})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:A,eventId:t}=this.state,{onUnmount:n}=this.props;n&&(this.state===i4?n(null,null,null):n(e,A,t)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:A,componentStack:t,eventId:n}=this.state;e&&e(A,t,n),this.setState(i4)}render(){let{fallback:e,children:A}=this.props,t=this.state;if(null===t.componentStack)return"function"==typeof A?A():A;let n="function"==typeof e?i1.createElement(e,{error:t.error,componentStack:t.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:t.eventId}):e;return i1.isValidElement(n)?n:(e&&i2&&iD("fallback did not produce a valid ReactElement"),null)}}let i5=(0,p.forwardRef)(({isRunning:e,isAborting:A,progress:t,error:n,run:r,onCancel:i,viewOptions:o,onViewOptionsChanged:s,RunResultView:a,children:l,onExecuteRun:c},u)=>{let d=n?.response?.data?.detail??r?.error;if(d)return(0,g.jsxs)(tx.Root,{status:"error",title:`Error: ${d}`,children:[(0,g.jsx)(tx.Indicator,{}),(0,g.jsxs)(tx.Title,{children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:d})]})]});if(e??r?.status==="running"){let e="Loading...";return t?.message?e=t.message:r?.progress?.message&&(e=r.progress.message),(0,g.jsx)(As.Center,{p:"1rem",height:"100%",bg:"rgb(249,249,249)",children:(0,g.jsxs)(Al.VStack,{children:[(0,g.jsxs)(ev.Flex,{alignItems:"center",children:[t?.percentage==null?(0,g.jsx)(iC.Root,{value:null,size:"md",mr:"0.5rem",children:(0,g.jsx)(iC.Circle,{})}):(0,g.jsx)(iC.Root,{value:100*t.percentage,size:"md",mr:"0.5rem",children:(0,g.jsx)(iC.Circle,{})}),A?(0,g.jsx)("span",{children:"Aborting..."}):(0,g.jsx)("span",{className:"no-track-pii-safe",children:e})]}),!A&&(0,g.jsx)(Ac.Button,{onClick:i,colorPalette:"blue",size:"sm",children:"Cancel"})]})})}if(!r)return(0,g.jsx)(As.Center,{bg:"rgb(249,249,249)",height:"100%",children:"Loading..."});if(l&&a)throw Error("RunView requires either a children or a RunResultView prop, but not both.");if(!l&&!a)throw Error("RunView requires at least one of children or RunResultView prop.");return(0,g.jsxs)(eb.Box,{h:"100%",style:{contain:"size layout"},overflow:"auto",className:"no-track-pii-safe",children:[a&&(r.error??r.result)&&(0,g.jsx)(i3,{children:(0,g.jsx)(a,{ref:u,run:r,viewOptions:o,onViewOptionsChanged:s})}),l?.({run:r,viewOptions:o,onViewOptionsChanged:s})]})});function i6(e,A){return rX(e,(0,rY.constructFrom)(e,Date.now()),A)}var i8=e.i(23043);let i7=(0,B.chakra)("div",{base:{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});i7.displayName="StackSeparator";var i9=e.i(48962);function oe(e){if("string"==typeof e||"number"==typeof e)return""+e;let A="";if(Array.isArray(e))for(let t=0,n;t<e.length;t++)""!==(n=oe(e[t]))&&(A+=(A&&" ")+n);else for(let t in e)e[t]&&(A+=(A&&" ")+t);return A}var oA=e.i(23795),ot=e.i(19985);let on={get url(){return`file://${e.P("node_modules/.pnpm/zustand@4.5.7_@types+react@19.2.2_react@19.2.0/node_modules/zustand/esm/vanilla.mjs")}`}},or=e=>{let A,t=new Set,n=(e,n)=>{let r="function"==typeof e?e(A):e;if(!Object.is(r,A)){let e=A;A=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},A,r),t.forEach(t=>t(A,e))}},r=()=>A,i={setState:n,getState:r,getInitialState:()=>o,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>{(on.env?on.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},o=A=e(n,r,i);return i},{useDebugValue:oi}=p.default,{useSyncExternalStoreWithSelector:oo}=ot.default,os=e=>e;function oa(e,A=os,t){let n=oo(e.subscribe,e.getState,e.getServerState||e.getInitialState,A,t);return oi(n),n}let ol=(e,A)=>{let t=e?or(e):or,n=(e,n=A)=>oa(t,e,n);return Object.assign(n,t),n};function oc(e,A){if(Object.is(e,A))return!0;if("object"!=typeof e||null===e||"object"!=typeof A||null===A)return!1;if(e instanceof Map&&A instanceof Map){if(e.size!==A.size)return!1;for(let[t,n]of e)if(!Object.is(n,A.get(t)))return!1;return!0}if(e instanceof Set&&A instanceof Set){if(e.size!==A.size)return!1;for(let t of e)if(!A.has(t))return!1;return!0}let t=Object.keys(e);if(t.length!==Object.keys(A).length)return!1;for(let n of t)if(!Object.prototype.hasOwnProperty.call(A,n)||!Object.is(e[n],A[n]))return!1;return!0}var ou=e.i(62258);let od=(0,p.createContext)(null),oh=od.Provider,of=oA.errorMessages.error001();function og(e,A){let t=(0,p.useContext)(od);if(null===t)throw Error(of);return oa(t,e,A)}function op(){let e=(0,p.useContext)(od);if(null===e)throw Error(of);return(0,p.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}let oB={display:"none"},om={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ow="react-flow__node-desc",oy="react-flow__edge-desc",ox=e=>e.ariaLiveMessage,oC=e=>e.ariaLabelConfig;function ob({rfId:e}){let A=og(ox);return(0,g.jsx)("div",{id:`react-flow__aria-live-${e}`,"aria-live":"assertive","aria-atomic":"true",style:om,children:A})}function ov({rfId:e,disableKeyboardA11y:A}){let t=og(oC);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{id:`${ow}-${e}`,style:oB,children:A?t["node.a11yDescription.default"]:t["node.a11yDescription.keyboardDisabled"]}),(0,g.jsx)("div",{id:`${oy}-${e}`,style:oB,children:t["edge.a11yDescription.default"]}),!A&&(0,g.jsx)(ob,{rfId:e})]})}let oQ=(0,p.forwardRef)(({position:e="top-left",children:A,className:t,style:n,...r},i)=>{let o=`${e}`.split("-");return(0,g.jsx)("div",{className:oe(["react-flow__panel",t,...o]),style:n,ref:i,...r,children:A})});function oF({proOptions:e,position:A="bottom-right"}){return e?.hideAttribution?null:(0,g.jsx)(oQ,{position:A,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:(0,g.jsx)("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}oQ.displayName="Panel";let oU=e=>{let A=[],t=[];for(let[,t]of e.nodeLookup)t.selected&&A.push(t.internals.userNode);for(let[,A]of e.edgeLookup)A.selected&&t.push(A);return{selectedNodes:A,selectedEdges:t}},oE=e=>e.id;function oI(e,A){return oc(e.selectedNodes.map(oE),A.selectedNodes.map(oE))&&oc(e.selectedEdges.map(oE),A.selectedEdges.map(oE))}function oS({onSelectionChange:e}){let A=op(),{selectedNodes:t,selectedEdges:n}=og(oU,oI);return(0,p.useEffect)(()=>{let r={nodes:t,edges:n};e?.(r),A.getState().onSelectionChangeHandlers.forEach(e=>e(r))},[t,n,e]),null}let ok=e=>!!e.onSelectionChangeHandlers;function oj({onSelectionChange:e}){let A=og(ok);return e||A?(0,g.jsx)(oS,{onSelectionChange:e}):null}let oH=[0,0],oD={x:0,y:0,zoom:1},oL=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","rfId"],oR=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),oT={translateExtent:oA.infiniteExtent,nodeOrigin:oH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function oM(e){let{setNodes:A,setEdges:t,setMinZoom:n,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:a}=og(oR,oc),l=op();(0,p.useEffect)(()=>(a(e.defaultNodes,e.defaultEdges),()=>{c.current=oT,s()}),[]);let c=(0,p.useRef)(oT);return(0,p.useEffect)(()=>{for(let s of oL){let a=e[s];a!==c.current[s]&&void 0!==e[s]&&("nodes"===s?A(a):"edges"===s?t(a):"minZoom"===s?n(a):"maxZoom"===s?r(a):"translateExtent"===s?i(a):"nodeExtent"===s?o(a):"ariaLabelConfig"===s?l.setState({ariaLabelConfig:(0,oA.mergeAriaLabelConfig)(a)}):"fitView"===s?l.setState({fitViewQueued:a}):"fitViewOptions"===s?l.setState({fitViewOptions:a}):l.setState({[s]:a}))}c.current=e},oL.map(A=>e[A])),null}function oO(){return"undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}let oN="undefined"!=typeof document?document:null;function oP(e=null,A={target:oN,actInsideInputWithModifier:!0}){let[t,n]=(0,p.useState)(!1),r=(0,p.useRef)(!1),i=(0,p.useRef)(new Set([])),[o,s]=(0,p.useMemo)(()=>{if(null!==e){let A=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e).map(e=>e.replace("+","\n").replace("\n\n","\n+").split("\n")),t=A.reduce((e,A)=>e.concat(...A),[]);return[A,t]}return[[],[]]},[e]);return(0,p.useEffect)(()=>{let t=A?.target??oN,a=A?.actInsideInputWithModifier??!0;if(null!==e){let e=e=>{if(r.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!r.current||r.current&&!a)&&(0,oA.isInputDOMNode)(e))return!1;let t=oK(e.code,s);if(i.current.add(e[t]),o_(o,i.current,!1)){let t=e.composedPath?.()?.[0]||e.target,i=t?.nodeName==="BUTTON"||t?.nodeName==="A";!1!==A.preventDefault&&(r.current||!i)&&e.preventDefault(),n(!0)}},l=e=>{let A=oK(e.code,s);o_(o,i.current,!0)?(n(!1),i.current.clear()):i.current.delete(e[A]),"Meta"===e.key&&i.current.clear(),r.current=!1},c=()=>{i.current.clear(),n(!1)};return t?.addEventListener("keydown",e),t?.addEventListener("keyup",l),window.addEventListener("blur",c),window.addEventListener("contextmenu",c),()=>{t?.removeEventListener("keydown",e),t?.removeEventListener("keyup",l),window.removeEventListener("blur",c),window.removeEventListener("contextmenu",c)}}},[e,n]),t}function o_(e,A,t){return e.filter(e=>t||e.length===A.size).some(e=>e.every(e=>A.has(e)))}function oK(e,A){return A.includes(e)?"code":"key"}function oV(e,A){let t=[],n=new Map,r=[];for(let A of e)if("add"===A.type){r.push(A);continue}else if("remove"===A.type||"replace"===A.type)n.set(A.id,[A]);else{let e=n.get(A.id);e?e.push(A):n.set(A.id,[A])}for(let e of A){let A=n.get(e.id);if(!A){t.push(e);continue}if("remove"===A[0].type)continue;if("replace"===A[0].type){t.push({...A[0].item});continue}let r={...e};for(let e of A){var i=e,o=r;switch(i.type){case"select":o.selected=i.selected;break;case"position":void 0!==i.position&&(o.position=i.position),void 0!==i.dragging&&(o.dragging=i.dragging);break;case"dimensions":void 0!==i.dimensions&&(o.measured??={},o.measured.width=i.dimensions.width,o.measured.height=i.dimensions.height,i.setAttributes&&((!0===i.setAttributes||"width"===i.setAttributes)&&(o.width=i.dimensions.width),(!0===i.setAttributes||"height"===i.setAttributes)&&(o.height=i.dimensions.height))),"boolean"==typeof i.resizing&&(o.resizing=i.resizing)}}t.push(r)}return r.length&&r.forEach(e=>{void 0!==e.index?t.splice(e.index,0,{...e.item}):t.push({...e.item})}),t}function oG(e,A){return{id:e,type:"select",selected:A}}function oz(e,A=new Set,t=!1){let n=[];for(let[r,i]of e){let e=A.has(r);(void 0!==i.selected||e)&&i.selected!==e&&(t&&(i.selected=e),n.push(oG(i.id,e)))}return n}function oW({items:e=[],lookup:A}){let t=[],n=new Map(e.map(e=>[e.id,e]));for(let[n,r]of e.entries()){let e=A.get(r.id),i=e?.internals?.userNode??e;void 0!==i&&i!==r&&t.push({id:r.id,item:r,type:"replace"}),void 0===i&&t.push({item:r,type:"add",index:n})}for(let[e]of A)void 0===n.get(e)&&t.push({id:e,type:"remove"});return t}function o$(e){return{id:e.id,type:"remove"}}let oX=e=>(0,oA.isNodeBase)(e);function oY(e){return(0,p.forwardRef)(e)}let oJ="undefined"!=typeof window?p.useLayoutEffect:p.useEffect;function oq(e){let[A,t]=(0,p.useState)(BigInt(0)),[n]=(0,p.useState)(()=>{var e;let A;return e=()=>t(e=>e+BigInt(1)),A=[],{get:()=>A,reset:()=>{A=[]},push:t=>{A.push(t),e()}}});return oJ(()=>{let A=n.get();A.length&&(e(A),n.reset())},[A]),n}let oZ=(0,p.createContext)(null);function o0({children:e}){let A=op(),t=oq((0,p.useCallback)(e=>{let{nodes:t=[],setNodes:n,hasDefaultNodes:r,onNodesChange:i,nodeLookup:o,fitViewQueued:s}=A.getState(),a=t;for(let A of e)a="function"==typeof A?A(a):A;let l=oW({items:a,lookup:o});r&&n(a),l.length>0?i?.(l):s&&window.requestAnimationFrame(()=>{let{fitViewQueued:e,nodes:t,setNodes:n}=A.getState();e&&n(t)})},[])),n=oq((0,p.useCallback)(e=>{let{edges:t=[],setEdges:n,hasDefaultEdges:r,onEdgesChange:i,edgeLookup:o}=A.getState(),s=t;for(let A of e)s="function"==typeof A?A(s):A;r?n(s):i&&i(oW({items:s,lookup:o}))},[])),r=(0,p.useMemo)(()=>({nodeQueue:t,edgeQueue:n}),[]);return(0,g.jsx)(oZ.Provider,{value:r,children:e})}let o1=e=>!!e.panZoom;function o2(){let e,A=(e=op(),(0,p.useMemo)(()=>({zoomIn:A=>{let{panZoom:t}=e.getState();return t?t.scaleBy(1.2,{duration:A?.duration}):Promise.resolve(!1)},zoomOut:A=>{let{panZoom:t}=e.getState();return t?t.scaleBy(1/1.2,{duration:A?.duration}):Promise.resolve(!1)},zoomTo:(A,t)=>{let{panZoom:n}=e.getState();return n?n.scaleTo(A,{duration:t?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(A,t)=>{let{transform:[n,r,i],panZoom:o}=e.getState();return o?(await o.setViewport({x:A.x??n,y:A.y??r,zoom:A.zoom??i},t),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{let[A,t,n]=e.getState().transform;return{x:A,y:t,zoom:n}},setCenter:async(A,t,n)=>e.getState().setCenter(A,t,n),fitBounds:async(A,t)=>{let{width:n,height:r,minZoom:i,maxZoom:o,panZoom:s}=e.getState(),a=(0,oA.getViewportForBounds)(A,n,r,i,o,t?.padding??.1);return s?(await s.setViewport(a,{duration:t?.duration,ease:t?.ease,interpolate:t?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(A,t={})=>{let{transform:n,snapGrid:r,snapToGrid:i,domNode:o}=e.getState();if(!o)return A;let{x:s,y:a}=o.getBoundingClientRect(),l={x:A.x-s,y:A.y-a},c=t.snapGrid??r,u=t.snapToGrid??i;return(0,oA.pointToRendererPoint)(l,n,u,c)},flowToScreenPosition:A=>{let{transform:t,domNode:n}=e.getState();if(!n)return A;let{x:r,y:i}=n.getBoundingClientRect(),o=(0,oA.rendererPointToPoint)(A,t);return{x:o.x+r,y:o.y+i}}}),[])),t=op(),n=function(){let e=(0,p.useContext)(oZ);if(!e)throw Error("useBatchContext must be used within a BatchProvider");return e}(),r=og(o1),i=(0,p.useMemo)(()=>{let e=e=>t.getState().nodeLookup.get(e),A=e=>{n.nodeQueue.push(e)},r=e=>{n.edgeQueue.push(e)},i=e=>{let{nodeLookup:A,nodeOrigin:n}=t.getState(),r=oX(e)?e:A.get(e.id),i=r.parentId?(0,oA.evaluateAbsolutePosition)(r.position,r.measured,r.parentId,A,n):r.position,o={...r,position:i,width:r.measured?.width??r.width,height:r.measured?.height??r.height};return(0,oA.nodeToRect)(o)},o=(e,t,n={replace:!1})=>{A(A=>A.map(A=>{if(A.id===e){let e="function"==typeof t?t(A):t;return n.replace&&oX(e)?e:{...A,...e}}return A}))},s=(e,A,t={replace:!1})=>{r(n=>n.map(n=>{if(n.id===e){let e="function"==typeof A?A(n):A;return t.replace&&(0,oA.isEdgeBase)(e)?e:{...n,...e}}return n}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:A=>e(A)?.internals.userNode,getInternalNode:e,getEdges:()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:A,setEdges:r,addNodes:e=>{let A=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...A])},addEdges:e=>{let A=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...A])},toObject:()=>{let{nodes:e=[],edges:A=[],transform:n}=t.getState(),[r,i,o]=n;return{nodes:e.map(e=>({...e})),edges:A.map(e=>({...e})),viewport:{x:r,y:i,zoom:o}}},deleteElements:async({nodes:e=[],edges:A=[]})=>{let{nodes:n,edges:r,onNodesDelete:i,onEdgesDelete:o,triggerNodeChanges:s,triggerEdgeChanges:a,onDelete:l,onBeforeDelete:c}=t.getState(),{nodes:u,edges:d}=await (0,oA.getElementsToRemove)({nodesToRemove:e,edgesToRemove:A,nodes:n,edges:r,onBeforeDelete:c}),h=d.length>0,f=u.length>0;if(h){let e=d.map(o$);o?.(d),a(e)}if(f){let e=u.map(o$);i?.(u),s(e)}return(f||h)&&l?.({nodes:u,edges:d}),{deletedNodes:u,deletedEdges:d}},getIntersectingNodes:(e,A=!0,n)=>{let r=(0,oA.isRectObject)(e),o=r?e:i(e),s=void 0!==n;return o?(n||t.getState().nodes).filter(n=>{let i=t.getState().nodeLookup.get(n.id);if(i&&!r&&(n.id===e.id||!i.internals.positionAbsolute))return!1;let a=(0,oA.nodeToRect)(s?n:i),l=(0,oA.getOverlappingArea)(a,o);return A&&l>0||l>=a.width*a.height||l>=o.width*o.height}):[]},isNodeIntersecting:(e,A,t=!0)=>{let n=(0,oA.isRectObject)(e)?e:i(e);if(!n)return!1;let r=(0,oA.getOverlappingArea)(n,A);return t&&r>0||r>=A.width*A.height||r>=n.width*n.height},updateNode:o,updateNodeData:(e,A,t={replace:!1})=>{o(e,e=>{let n="function"==typeof A?A(e):A;return t.replace?{...e,data:n}:{...e,data:{...e.data,...n}}},t)},updateEdge:s,updateEdgeData:(e,A,t={replace:!1})=>{s(e,e=>{let n="function"==typeof A?A(e):A;return t.replace?{...e,data:n}:{...e,data:{...e.data,...n}}},t)},getNodesBounds:e=>{let{nodeLookup:A,nodeOrigin:n}=t.getState();return(0,oA.getNodesBounds)(e,{nodeLookup:A,nodeOrigin:n})},getHandleConnections:({type:e,id:A,nodeId:n})=>Array.from(t.getState().connectionLookup.get(`${n}-${e}${A?`-${A}`:""}`)?.values()??[]),getNodeConnections:({type:e,handleId:A,nodeId:n})=>Array.from(t.getState().connectionLookup.get(`${n}${e?A?`-${e}-${A}`:`-${e}`:""}`)?.values()??[]),fitView:async e=>{let A=t.getState().fitViewResolver??(0,oA.withResolvers)();return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:A}),n.nodeQueue.push(e=>[...e]),A.promise}}},[]);return(0,p.useMemo)(()=>({...i,...A,viewportInitialized:r}),[r])}let o4=e=>e.selected,o3="undefined"!=typeof window?window:void 0,o5={position:"absolute",width:"100%",height:"100%",top:0,left:0},o6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function o8({onPaneContextMenu:e,zoomOnScroll:A=!0,zoomOnPinch:t=!0,panOnScroll:n=!1,panOnScrollSpeed:r=.5,panOnScrollMode:i=oA.PanOnScrollMode.Free,zoomOnDoubleClick:o=!0,panOnDrag:s=!0,defaultViewport:a,translateExtent:l,minZoom:c,maxZoom:u,zoomActivationKeyCode:d,preventScrolling:h=!0,children:f,noWheelClassName:B,noPanClassName:m,onViewportChange:w,isControlledViewport:y,paneClickDistance:x,selectionOnDrag:C}){let b,v=op(),Q=(0,p.useRef)(null),{userSelectionActive:F,lib:U,connectionInProgress:E}=og(o6,oc),I=oP(d),S=(0,p.useRef)();b=op(),(0,p.useEffect)(()=>{let e=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let e=(0,oA.getDimensions)(Q.current);(0===e.height||0===e.width)&&b.getState().onError?.("004",oA.errorMessages.error004()),b.setState({width:e.width||500,height:e.height||500})};if(Q.current){e(),window.addEventListener("resize",e);let A=new ResizeObserver(()=>e());return A.observe(Q.current),()=>{window.removeEventListener("resize",e),A&&Q.current&&A.unobserve(Q.current)}}},[]);let k=(0,p.useCallback)(e=>{w?.({x:e[0],y:e[1],zoom:e[2]}),y||v.setState({transform:e})},[w,y]);return(0,p.useEffect)(()=>{if(Q.current){S.current=(0,oA.XYPanZoom)({domNode:Q.current,minZoom:c,maxZoom:u,translateExtent:l,viewport:a,onDraggingChange:e=>v.setState({paneDragging:e}),onPanZoomStart:(e,A)=>{let{onViewportChangeStart:t,onMoveStart:n}=v.getState();n?.(e,A),t?.(A)},onPanZoom:(e,A)=>{let{onViewportChange:t,onMove:n}=v.getState();n?.(e,A),t?.(A)},onPanZoomEnd:(e,A)=>{let{onViewportChangeEnd:t,onMoveEnd:n}=v.getState();n?.(e,A),t?.(A)}});let{x:e,y:A,zoom:t}=S.current.getViewport();return v.setState({panZoom:S.current,transform:[e,A,t],domNode:Q.current.closest(".react-flow")}),()=>{S.current?.destroy()}}},[]),(0,p.useEffect)(()=>{S.current?.update({onPaneContextMenu:e,zoomOnScroll:A,zoomOnPinch:t,panOnScroll:n,panOnScrollSpeed:r,panOnScrollMode:i,zoomOnDoubleClick:o,panOnDrag:s,zoomActivationKeyPressed:I,preventScrolling:h,noPanClassName:m,userSelectionActive:F,noWheelClassName:B,lib:U,onTransformChange:k,connectionInProgress:E,selectionOnDrag:C,paneClickDistance:x})},[e,A,t,n,r,i,o,s,I,h,m,F,B,U,k,E,C,x]),(0,g.jsx)("div",{className:"react-flow__renderer",ref:Q,style:o5,children:f})}let o7=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function o9(){let{userSelectionActive:e,userSelectionRect:A}=og(o7,oc);return e&&A?(0,g.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:A.width,height:A.height,transform:`translate(${A.x}px, ${A.y}px)`}}):null}let se=(e,A)=>t=>{t.target===A.current&&e?.(t)},sA=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function st({isSelecting:e,selectionKeyPressed:A,selectionMode:t=oA.SelectionMode.Full,panOnDrag:n,paneClickDistance:r,selectionOnDrag:i,onSelectionStart:o,onSelectionEnd:s,onPaneClick:a,onPaneContextMenu:l,onPaneScroll:c,onPaneMouseEnter:u,onPaneMouseMove:d,onPaneMouseLeave:h,children:f}){let B=op(),{userSelectionActive:m,elementsSelectable:w,dragging:y,connectionInProgress:x}=og(sA,oc),C=w&&(e||m),b=(0,p.useRef)(null),v=(0,p.useRef)(),Q=(0,p.useRef)(new Set),F=(0,p.useRef)(new Set),U=(0,p.useRef)(!1),E=e=>{if(U.current||x){U.current=!1;return}a?.(e),B.getState().resetSelectedElements(),B.setState({nodesSelectionActive:!1})},I=!0===n||Array.isArray(n)&&n.includes(0);return(0,g.jsxs)("div",{className:oe(["react-flow__pane",{draggable:I,dragging:y,selection:e}]),onClick:C?void 0:se(E,b),onContextMenu:se(e=>{Array.isArray(n)&&n?.includes(2)?e.preventDefault():l?.(e)},b),onWheel:se(c?e=>c(e):void 0,b),onPointerEnter:C?void 0:u,onPointerMove:C?e=>{let{userSelectionRect:n,transform:i,nodeLookup:s,edgeLookup:a,connectionLookup:l,triggerNodeChanges:c,triggerEdgeChanges:u,defaultEdgeOptions:d,resetSelectedElements:h}=B.getState();if(!v.current||!n)return;let{x:f,y:g}=(0,oA.getEventPosition)(e.nativeEvent,v.current),{startX:p,startY:m}=n;if(!U.current){if(Math.hypot(f-p,g-m)<=(A?0:r))return;h(),o?.(e)}U.current=!0;let w={startX:p,startY:m,x:f<p?f:p,y:g<m?g:m,width:Math.abs(f-p),height:Math.abs(g-m)},y=Q.current,x=F.current;Q.current=new Set((0,oA.getNodesInside)(s,w,i,t===oA.SelectionMode.Partial,!0).map(e=>e.id)),F.current=new Set;let C=d?.selectable??!0;for(let e of Q.current){let A=l.get(e);if(A)for(let{edgeId:e}of A.values()){let A=a.get(e);A&&(A.selectable??C)&&F.current.add(e)}}(0,oA.areSetsEqual)(y,Q.current)||c(oz(s,Q.current,!0)),(0,oA.areSetsEqual)(x,F.current)||u(oz(a,F.current)),B.setState({userSelectionRect:w,userSelectionActive:!0,nodesSelectionActive:!1})}:d,onPointerUp:C?e=>{0===e.button&&(e.target?.releasePointerCapture?.(e.pointerId),!m&&e.target===b.current&&B.getState().userSelectionRect&&E?.(e),B.setState({userSelectionActive:!1,userSelectionRect:null}),U.current&&(s?.(e),B.setState({nodesSelectionActive:Q.current.size>0})))}:void 0,onPointerDownCapture:C?t=>{let{domNode:n}=B.getState();if(v.current=n?.getBoundingClientRect(),!v.current)return;let r=t.target===b.current;if(!r&&t.target.closest(".nokey")||!e||!(i&&r||A)||0!==t.button||!t.isPrimary)return;t.target?.setPointerCapture?.(t.pointerId),U.current=!1;let{x:o,y:s}=(0,oA.getEventPosition)(t.nativeEvent,v.current);B.setState({userSelectionRect:{width:0,height:0,startX:o,startY:s,x:o,y:s}}),r||(t.stopPropagation(),t.preventDefault())}:void 0,onClickCapture:C?e=>{U.current&&(e.stopPropagation(),U.current=!1)}:void 0,onPointerLeave:h,ref:b,style:o5,children:[f,(0,g.jsx)(o9,{})]})}function sn({id:e,store:A,unselect:t=!1,nodeRef:n}){let{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:o,nodeLookup:s,onError:a}=A.getState(),l=s.get(e);l?(A.setState({nodesSelectionActive:!1}),l.selected?(t||l.selected&&o)&&(i({nodes:[l],edges:[]}),requestAnimationFrame(()=>n?.current?.blur())):r([e])):a?.("012",oA.errorMessages.error012(e))}function sr({nodeRef:e,disabled:A=!1,noDragClassName:t,handleSelector:n,nodeId:r,isSelectable:i,nodeClickDistance:o}){let s=op(),[a,l]=(0,p.useState)(!1),c=(0,p.useRef)();return(0,p.useEffect)(()=>{c.current=(0,oA.XYDrag)({getStoreItems:()=>s.getState(),onNodeMouseDown:A=>{sn({id:A,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}})},[]),(0,p.useEffect)(()=>{if(A)c.current?.destroy();else if(e.current)return c.current?.update({noDragClassName:t,handleSelector:n,domNode:e.current,isSelectable:i,nodeId:r,nodeClickDistance:o}),()=>{c.current?.destroy()}},[t,n,A,i,e,r]),a}function si(){let e=op();return(0,p.useCallback)(A=>{let{nodeExtent:t,snapToGrid:n,snapGrid:r,nodesDraggable:i,onError:o,updateNodePositions:s,nodeLookup:a,nodeOrigin:l}=e.getState(),c=new Map,u=e=>e.selected&&(e.draggable||i&&void 0===e.draggable),d=n?r[0]:5,h=n?r[1]:5,f=A.direction.x*d*A.factor,g=A.direction.y*h*A.factor;for(let[,e]of a){if(!u(e))continue;let A={x:e.internals.positionAbsolute.x+f,y:e.internals.positionAbsolute.y+g};n&&(A=(0,oA.snapPosition)(A,r));let{position:i,positionAbsolute:s}=(0,oA.calculateNodePosition)({nodeId:e.id,nextPosition:A,nodeLookup:a,nodeExtent:t,nodeOrigin:l,onError:o});e.position=i,e.internals.positionAbsolute=s,c.set(e.id,e)}s(c)},[])}let so=(0,p.createContext)(null),ss=so.Provider;so.Consumer;let sa=()=>(0,p.useContext)(so),sl=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),sc=(0,p.memo)(oY(function({type:e="source",position:A=oA.Position.Top,isValidConnection:t,isConnectable:n=!0,isConnectableStart:r=!0,isConnectableEnd:i=!0,id:o,onConnect:s,children:a,className:l,onMouseDown:c,onTouchStart:u,...d},h){let f=o||null,p="target"===e,B=op(),m=sa(),{connectOnClick:w,noPanClassName:y,rfId:x}=og(sl,oc),{connectingFrom:C,connectingTo:b,clickConnecting:v,isPossibleEndHandle:Q,connectionInProcess:F,clickConnectionInProcess:U,valid:E}=og(A=>{let{connectionClickStartHandle:t,connectionMode:n,connection:r}=A,{fromHandle:i,toHandle:o,isValid:s}=r,a=o?.nodeId===m&&o?.id===f&&o?.type===e;return{connectingFrom:i?.nodeId===m&&i?.id===f&&i?.type===e,connectingTo:a,clickConnecting:t?.nodeId===m&&t?.id===f&&t?.type===e,isPossibleEndHandle:n===oA.ConnectionMode.Strict?i?.type!==e:m!==i?.nodeId||f!==i?.id,connectionInProcess:!!i,clickConnectionInProcess:!!t,valid:a&&s}},oc);m||B.getState().onError?.("010",oA.errorMessages.error010());let I=e=>{let{defaultEdgeOptions:A,onConnect:t,hasDefaultEdges:n}=B.getState(),r={...A,...e};if(n){let{edges:e,setEdges:A}=B.getState();A((0,oA.addEdge)(r,e))}t?.(r),s?.(r)},S=e=>{if(!m)return;let A=(0,oA.isMouseEvent)(e.nativeEvent);if(r&&(A&&0===e.button||!A)){let A=B.getState();oA.XYHandle.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:A.autoPanOnConnect,connectionMode:A.connectionMode,connectionRadius:A.connectionRadius,domNode:A.domNode,nodeLookup:A.nodeLookup,lib:A.lib,isTarget:p,handleId:f,nodeId:m,flowId:A.rfId,panBy:A.panBy,cancelConnection:A.cancelConnection,onConnectStart:A.onConnectStart,onConnectEnd:A.onConnectEnd,updateConnection:A.updateConnection,onConnect:I,isValidConnection:t||A.isValidConnection,getTransform:()=>B.getState().transform,getFromHandle:()=>B.getState().connection.fromHandle,autoPanSpeed:A.autoPanSpeed,dragThreshold:A.connectionDragThreshold})}A?c?.(e):u?.(e)};return(0,g.jsx)("div",{"data-handleid":f,"data-nodeid":m,"data-handlepos":A,"data-id":`${x}-${m}-${f}-${e}`,className:oe(["react-flow__handle",`react-flow__handle-${A}`,"nodrag",y,l,{source:!p,target:p,connectable:n,connectablestart:r,connectableend:i,clickconnecting:v,connectingfrom:C,connectingto:b,valid:E,connectionindicator:n&&(!F||Q)&&(F||U?i:r)}]),onMouseDown:S,onTouchStart:S,onClick:w?A=>{let{onClickConnectStart:n,onClickConnectEnd:i,connectionClickStartHandle:o,connectionMode:s,isValidConnection:a,lib:l,rfId:c,nodeLookup:u,connection:d}=B.getState();if(!m||!o&&!r)return;if(!o){n?.(A.nativeEvent,{nodeId:m,handleId:f,handleType:e}),B.setState({connectionClickStartHandle:{nodeId:m,type:e,id:f}});return}let h=(0,oA.getHostForElement)(A.target),g=t||a,{connection:p,isValid:w}=oA.XYHandle.isValid(A.nativeEvent,{handle:{nodeId:m,id:f,type:e},connectionMode:s,fromNodeId:o.nodeId,fromHandleId:o.id||null,fromType:o.type,isValidConnection:g,flowId:c,doc:h,lib:l,nodeLookup:u});w&&p&&I(p);let y=structuredClone(d);delete y.inProgress,y.toPosition=y.toHandle?y.toHandle.position:null,i?.(A,y),B.setState({connectionClickStartHandle:null})}:void 0,ref:h,...d,children:a})})),su={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},sd={input:function({data:e,isConnectable:A,sourcePosition:t=oA.Position.Bottom}){return(0,g.jsxs)(g.Fragment,{children:[e?.label,(0,g.jsx)(sc,{type:"source",position:t,isConnectable:A})]})},default:function({data:e,isConnectable:A,targetPosition:t=oA.Position.Top,sourcePosition:n=oA.Position.Bottom}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(sc,{type:"target",position:t,isConnectable:A}),e?.label,(0,g.jsx)(sc,{type:"source",position:n,isConnectable:A})]})},output:function({data:e,isConnectable:A,targetPosition:t=oA.Position.Top}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(sc,{type:"target",position:t,isConnectable:A}),e?.label]})},group:function(){return null}},sh=e=>{let{width:A,height:t,x:n,y:r}=(0,oA.getInternalNodesBounds)(e.nodeLookup,{filter:e=>!!e.selected});return{width:(0,oA.isNumeric)(A)?A:null,height:(0,oA.isNumeric)(t)?t:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${n}px,${r}px)`}};function sf({onSelectionContextMenu:e,noPanClassName:A,disableKeyboardA11y:t}){let n=op(),{width:r,height:i,transformString:o,userSelectionActive:s}=og(sh,oc),a=si(),l=(0,p.useRef)(null);if((0,p.useEffect)(()=>{t||l.current?.focus({preventScroll:!0})},[t]),sr({nodeRef:l}),s||!r||!i)return null;let c=e?A=>{e(A,n.getState().nodes.filter(e=>e.selected))}:void 0;return(0,g.jsx)("div",{className:oe(["react-flow__nodesselection","react-flow__container",A]),style:{transform:o},children:(0,g.jsx)("div",{ref:l,className:"react-flow__nodesselection-rect",onContextMenu:c,tabIndex:t?void 0:-1,onKeyDown:t?void 0:e=>{Object.prototype.hasOwnProperty.call(su,e.key)&&(e.preventDefault(),a({direction:su[e.key],factor:e.shiftKey?4:1}))},style:{width:r,height:i}})})}let sg="undefined"!=typeof window?window:void 0,sp=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function sB({children:e,onPaneClick:A,onPaneMouseEnter:t,onPaneMouseMove:n,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:o,paneClickDistance:s,deleteKeyCode:a,selectionKeyCode:l,selectionOnDrag:c,selectionMode:u,onSelectionStart:d,onSelectionEnd:h,multiSelectionKeyCode:f,panActivationKeyCode:B,zoomActivationKeyCode:m,elementsSelectable:w,zoomOnScroll:y,zoomOnPinch:x,panOnScroll:C,panOnScrollSpeed:b,panOnScrollMode:v,zoomOnDoubleClick:Q,panOnDrag:F,defaultViewport:U,translateExtent:E,minZoom:I,maxZoom:S,preventScrolling:k,onSelectionContextMenu:j,noWheelClassName:H,noPanClassName:D,disableKeyboardA11y:L,onViewportChange:R,isControlledViewport:T}){let{nodesSelectionActive:M,userSelectionActive:O}=og(sp),N=oP(l,{target:sg}),P=oP(B,{target:sg}),_=P||F,K=P||C,V=c&&!0!==_,G=N||O||V;return!function({deleteKeyCode:e,multiSelectionKeyCode:A}){let t=op(),{deleteElements:n}=o2(),r=oP(e,{actInsideInputWithModifier:!1}),i=oP(A,{target:o3});(0,p.useEffect)(()=>{if(r){let{edges:e,nodes:A}=t.getState();n({nodes:A.filter(o4),edges:e.filter(o4)}),t.setState({nodesSelectionActive:!1})}},[r]),(0,p.useEffect)(()=>{t.setState({multiSelectionActive:i})},[i])}({deleteKeyCode:a,multiSelectionKeyCode:f}),(0,g.jsx)(o8,{onPaneContextMenu:i,elementsSelectable:w,zoomOnScroll:y,zoomOnPinch:x,panOnScroll:K,panOnScrollSpeed:b,panOnScrollMode:v,zoomOnDoubleClick:Q,panOnDrag:!N&&_,defaultViewport:U,translateExtent:E,minZoom:I,maxZoom:S,zoomActivationKeyCode:m,preventScrolling:k,noWheelClassName:H,noPanClassName:D,onViewportChange:R,isControlledViewport:T,paneClickDistance:s,selectionOnDrag:V,children:(0,g.jsxs)(st,{onSelectionStart:d,onSelectionEnd:h,onPaneClick:A,onPaneMouseEnter:t,onPaneMouseMove:n,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:o,panOnDrag:_,isSelecting:!!G,selectionMode:u,selectionKeyPressed:N,paneClickDistance:s,selectionOnDrag:V,children:[e,M&&(0,g.jsx)(sf,{onSelectionContextMenu:j,noPanClassName:D,disableKeyboardA11y:L})]})})}sB.displayName="FlowRenderer";let sm=(0,p.memo)(sB),sw=e=>e.updateNodeInternals;var sy=(0,p.memo)(function({id:e,onClick:A,onMouseEnter:t,onMouseMove:n,onMouseLeave:r,onContextMenu:i,onDoubleClick:o,nodesDraggable:s,elementsSelectable:a,nodesConnectable:l,nodesFocusable:c,resizeObserver:u,noDragClassName:d,noPanClassName:h,disableKeyboardA11y:f,rfId:B,nodeTypes:m,nodeClickDistance:w,onError:y}){let{node:x,internals:C,isParent:b}=og(A=>{let t=A.nodeLookup.get(e),n=A.parentLookup.has(e);return{node:t,internals:t.internals,isParent:n}},oc),v=x.type||"default",Q=m?.[v]||sd[v];void 0===Q&&(y?.("003",oA.errorMessages.error003(v)),v="default",Q=m?.default||sd.default);let F=!!(x.draggable||s&&void 0===x.draggable),U=!!(x.selectable||a&&void 0===x.selectable),E=!!(x.connectable||l&&void 0===x.connectable),I=!!(x.focusable||c&&void 0===x.focusable),S=op(),k=(0,oA.nodeHasDimensions)(x),j=function({node:e,nodeType:A,hasDimensions:t,resizeObserver:n}){let r=op(),i=(0,p.useRef)(null),o=(0,p.useRef)(null),s=(0,p.useRef)(e.sourcePosition),a=(0,p.useRef)(e.targetPosition),l=(0,p.useRef)(A),c=t&&!!e.internals.handleBounds;return(0,p.useEffect)(()=>{!i.current||e.hidden||c&&o.current===i.current||(o.current&&n?.unobserve(o.current),n?.observe(i.current),o.current=i.current)},[c,e.hidden]),(0,p.useEffect)(()=>()=>{o.current&&(n?.unobserve(o.current),o.current=null)},[]),(0,p.useEffect)(()=>{if(i.current){let t=l.current!==A,n=s.current!==e.sourcePosition,o=a.current!==e.targetPosition;(t||n||o)&&(l.current=A,s.current=e.sourcePosition,a.current=e.targetPosition,r.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,A,e.sourcePosition,e.targetPosition]),i}({node:x,nodeType:v,hasDimensions:k,resizeObserver:u}),H=sr({nodeRef:j,disabled:x.hidden||!F,noDragClassName:d,handleSelector:x.dragHandle,nodeId:e,isSelectable:U,nodeClickDistance:w}),D=si();if(x.hidden)return null;let L=(0,oA.getNodeDimensions)(x),R=void 0===x.internals.handleBounds?{width:x.width??x.initialWidth??x.style?.width,height:x.height??x.initialHeight??x.style?.height}:{width:x.width??x.style?.width,height:x.height??x.style?.height},T=U||F||A||t||n||r,M=t?e=>t(e,{...C.userNode}):void 0,O=n?e=>n(e,{...C.userNode}):void 0,N=r?e=>r(e,{...C.userNode}):void 0,P=i?e=>i(e,{...C.userNode}):void 0,_=o?e=>o(e,{...C.userNode}):void 0;return(0,g.jsx)("div",{className:oe(["react-flow__node",`react-flow__node-${v}`,{[h]:F},x.className,{selected:x.selected,selectable:U,parent:b,draggable:F,dragging:H}]),ref:j,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:T?"all":"none",visibility:k?"visible":"hidden",...x.style,...R},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:M,onMouseMove:O,onMouseLeave:N,onContextMenu:P,onClick:t=>{let{selectNodesOnDrag:n,nodeDragThreshold:r}=S.getState();U&&(!n||!F||r>0)&&sn({id:e,store:S,nodeRef:j}),A&&A(t,{...C.userNode})},onDoubleClick:_,onKeyDown:I?A=>{if(!(0,oA.isInputDOMNode)(A.nativeEvent)&&!f){if(oA.elementSelectionKeys.includes(A.key)&&U)sn({id:e,store:S,unselect:"Escape"===A.key,nodeRef:j});else if(F&&x.selected&&Object.prototype.hasOwnProperty.call(su,A.key)){A.preventDefault();let{ariaLabelConfig:e}=S.getState();S.setState({ariaLiveMessage:e["node.a11yDescription.ariaLiveMessage"]({direction:A.key.replace("Arrow","").toLowerCase(),x:~~C.positionAbsolute.x,y:~~C.positionAbsolute.y})}),D({direction:su[A.key],factor:A.shiftKey?4:1})}}}:void 0,tabIndex:I?0:void 0,onFocus:I?()=>{if(f||!j.current?.matches(":focus-visible"))return;let{transform:A,width:t,height:n,autoPanOnNodeFocus:r,setCenter:i}=S.getState();!r||(0,oA.getNodesInside)(new Map([[e,x]]),{x:0,y:0,width:t,height:n},A,!0).length>0||i(x.position.x+L.width/2,x.position.y+L.height/2,{zoom:A[2]})}:void 0,role:x.ariaRole??(I?"group":void 0),"aria-roledescription":"node","aria-describedby":f?void 0:`${ow}-${B}`,"aria-label":x.ariaLabel,...x.domAttributes,children:(0,g.jsx)(ss,{value:e,children:(0,g.jsx)(Q,{id:e,data:x.data,type:v,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:x.selected??!1,selectable:U,draggable:F,deletable:x.deletable??!0,isConnectable:E,sourcePosition:x.sourcePosition,targetPosition:x.targetPosition,dragging:H,dragHandle:x.dragHandle,zIndex:C.z,parentId:x.parentId,...L})})})});let sx=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function sC(e){var A;let{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:o}=og(sx,oc),s=(A=e.onlyRenderVisibleElements,og((0,p.useCallback)(e=>A?(0,oA.getNodesInside)(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(e=>e.id):Array.from(e.nodeLookup.keys()),[A]),oc)),a=function(){let e=og(sw),[A]=(0,p.useState)(()=>"undefined"==typeof ResizeObserver?null:new ResizeObserver(A=>{let t=new Map;A.forEach(e=>{let A=e.target.getAttribute("data-id");t.set(A,{id:A,nodeElement:e.target,force:!0})}),e(t)}));return(0,p.useEffect)(()=>()=>{A?.disconnect()},[A]),A}();return(0,g.jsx)("div",{className:"react-flow__nodes",style:o5,children:s.map(A=>(0,g.jsx)(sy,{id:A,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:o},A))})}sC.displayName="NodeRenderer";let sb=(0,p.memo)(sC),sv={[oA.MarkerType.Arrow]:({color:e="none",strokeWidth:A=1})=>{let t={strokeWidth:A,...e&&{stroke:e}};return(0,g.jsx)("polyline",{className:"arrow",style:t,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},[oA.MarkerType.ArrowClosed]:({color:e="none",strokeWidth:A=1})=>{let t={strokeWidth:A,...e&&{stroke:e,fill:e}};return(0,g.jsx)("polyline",{className:"arrowclosed",style:t,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})}},sQ=({id:e,type:A,color:t,width:n=12.5,height:r=12.5,markerUnits:i="strokeWidth",strokeWidth:o,orient:s="auto-start-reverse"})=>{let a,l=(a=op(),(0,p.useMemo)(()=>Object.prototype.hasOwnProperty.call(sv,A)?sv[A]:(a.getState().onError?.("009",oA.errorMessages.error009(A)),null),[A]));return l?(0,g.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${n}`,markerHeight:`${r}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:(0,g.jsx)(l,{color:t,strokeWidth:o})}):null},sF=({defaultColor:e,rfId:A})=>{let t=og(e=>e.edges),n=og(e=>e.defaultEdgeOptions),r=(0,p.useMemo)(()=>(0,oA.createMarkerIds)(t,{id:A,defaultColor:e,defaultMarkerStart:n?.markerStart,defaultMarkerEnd:n?.markerEnd}),[t,n,A,e]);return r.length?(0,g.jsx)("svg",{className:"react-flow__marker","aria-hidden":"true",children:(0,g.jsx)("defs",{children:r.map(e=>(0,g.jsx)(sQ,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};sF.displayName="MarkerDefinitions";var sU=(0,p.memo)(sF);function sE({x:e,y:A,label:t,labelStyle:n,labelShowBg:r=!0,labelBgStyle:i,labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:a,className:l,...c}){let[u,d]=(0,p.useState)({x:1,y:0,width:0,height:0}),h=oe(["react-flow__edge-textwrapper",l]),f=(0,p.useRef)(null);return((0,p.useEffect)(()=>{if(f.current){let e=f.current.getBBox();d({x:e.x,y:e.y,width:e.width,height:e.height})}},[t]),t)?(0,g.jsxs)("g",{transform:`translate(${e-u.width/2} ${A-u.height/2})`,className:h,visibility:u.width?"visible":"hidden",...c,children:[r&&(0,g.jsx)("rect",{width:u.width+2*o[0],x:-o[0],y:-o[1],height:u.height+2*o[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),(0,g.jsx)("text",{className:"react-flow__edge-text",y:u.height/2,dy:"0.3em",ref:f,style:n,children:t}),a]}):null}sE.displayName="EdgeText";let sI=(0,p.memo)(sE);function sS({path:e,labelX:A,labelY:t,label:n,labelStyle:r,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:a,interactionWidth:l=20,...c}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("path",{...c,d:e,fill:"none",className:oe(["react-flow__edge-path",c.className])}),l?(0,g.jsx)("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:l,className:"react-flow__edge-interaction"}):null,n&&(0,oA.isNumeric)(A)&&(0,oA.isNumeric)(t)?(0,g.jsx)(sI,{x:A,y:t,label:n,labelStyle:r,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:a}):null]})}function sk({pos:e,x1:A,y1:t,x2:n,y2:r}){return e===oA.Position.Left||e===oA.Position.Right?[.5*(A+n),t]:[A,.5*(t+r)]}function sj({sourceX:e,sourceY:A,sourcePosition:t=oA.Position.Bottom,targetX:n,targetY:r,targetPosition:i=oA.Position.Top}){let[o,s]=sk({pos:t,x1:e,y1:A,x2:n,y2:r}),[a,l]=sk({pos:i,x1:n,y1:r,x2:e,y2:A}),[c,u,d,h]=(0,oA.getBezierEdgeCenter)({sourceX:e,sourceY:A,targetX:n,targetY:r,sourceControlX:o,sourceControlY:s,targetControlX:a,targetControlY:l});return[`M${e},${A} C${o},${s} ${a},${l} ${n},${r}`,c,u,d,h]}function sH(e){return(0,p.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:o,targetPosition:s,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:m})=>{let[w,y,x]=sj({sourceX:t,sourceY:n,sourcePosition:o,targetX:r,targetY:i,targetPosition:s}),C=e.isInternal?void 0:A;return(0,g.jsx)(sS,{id:C,path:w,labelX:y,labelY:x,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:m})})}let sD=sH({isInternal:!1}),sL=sH({isInternal:!0});function sR(e){return(0,p.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,sourcePosition:h=oA.Position.Bottom,targetPosition:f=oA.Position.Top,markerEnd:p,markerStart:B,pathOptions:m,interactionWidth:w})=>{let[y,x,C]=(0,oA.getSmoothStepPath)({sourceX:t,sourceY:n,sourcePosition:h,targetX:r,targetY:i,targetPosition:f,borderRadius:m?.borderRadius,offset:m?.offset,stepPosition:m?.stepPosition}),b=e.isInternal?void 0:A;return(0,g.jsx)(sS,{id:b,path:y,labelX:x,labelY:C,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:p,markerStart:B,interactionWidth:w})})}sD.displayName="SimpleBezierEdge",sL.displayName="SimpleBezierEdgeInternal";let sT=sR({isInternal:!1}),sM=sR({isInternal:!0});function sO(e){return(0,p.memo)(({id:A,...t})=>{let n=e.isInternal?void 0:A;return(0,g.jsx)(sT,{...t,id:n,pathOptions:(0,p.useMemo)(()=>({borderRadius:0,offset:t.pathOptions?.offset}),[t.pathOptions?.offset])})})}sT.displayName="SmoothStepEdge",sM.displayName="SmoothStepEdgeInternal";let sN=sO({isInternal:!1}),sP=sO({isInternal:!0});function s_(e){return(0,p.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:f,interactionWidth:p})=>{let[B,m,w]=(0,oA.getStraightPath)({sourceX:t,sourceY:n,targetX:r,targetY:i}),y=e.isInternal?void 0:A;return(0,g.jsx)(sS,{id:y,path:B,labelX:m,labelY:w,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:f,interactionWidth:p})})}sN.displayName="StepEdge",sP.displayName="StepEdgeInternal";let sK=s_({isInternal:!1}),sV=s_({isInternal:!0});function sG(e){return(0,p.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:o=oA.Position.Bottom,targetPosition:s=oA.Position.Top,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,pathOptions:m,interactionWidth:w})=>{let[y,x,C]=(0,oA.getBezierPath)({sourceX:t,sourceY:n,sourcePosition:o,targetX:r,targetY:i,targetPosition:s,curvature:m?.curvature}),b=e.isInternal?void 0:A;return(0,g.jsx)(sS,{id:b,path:y,labelX:x,labelY:C,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:w})})}sK.displayName="StraightEdge",sV.displayName="StraightEdgeInternal";let sz=sG({isInternal:!1}),sW=sG({isInternal:!0});sz.displayName="BezierEdge",sW.displayName="BezierEdgeInternal";let s$={default:sW,straight:sV,step:sP,smoothstep:sM,simplebezier:sL},sX={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},sY="react-flow__edgeupdater";function sJ({position:e,centerX:A,centerY:t,radius:n=10,onMouseDown:r,onMouseEnter:i,onMouseOut:o,type:s}){return(0,g.jsx)("circle",{onMouseDown:r,onMouseEnter:i,onMouseOut:o,className:oe([sY,`${sY}-${s}`]),cx:e===oA.Position.Left?A-n:e===oA.Position.Right?A+n:A,cy:e===oA.Position.Top?t-n:e===oA.Position.Bottom?t+n:t,r:n,stroke:"transparent",fill:"transparent"})}function sq({isReconnectable:e,reconnectRadius:A,edge:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,onReconnect:l,onReconnectStart:c,onReconnectEnd:u,setReconnecting:d,setUpdateHover:h}){let f=op(),p=(e,A)=>{if(0!==e.button)return;let{autoPanOnConnect:n,domNode:r,isValidConnection:i,connectionMode:o,connectionRadius:s,lib:a,onConnectStart:h,onConnectEnd:g,cancelConnection:p,nodeLookup:B,rfId:m,panBy:w,updateConnection:y}=f.getState(),x="target"===A.type;oA.XYHandle.onPointerDown(e.nativeEvent,{autoPanOnConnect:n,connectionMode:o,connectionRadius:s,domNode:r,handleId:A.id,nodeId:A.nodeId,nodeLookup:B,isTarget:x,edgeUpdaterType:A.type,lib:a,flowId:m,cancelConnection:p,panBy:w,isValidConnection:i,onConnect:e=>l?.(t,e),onConnectStart:(n,r)=>{d(!0),c?.(e,t,A.type),h?.(n,r)},onConnectEnd:g,onReconnectEnd:(e,n)=>{d(!1),u?.(e,t,A.type,n)},updateConnection:y,getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,dragThreshold:f.getState().connectionDragThreshold,handleDomNode:e.currentTarget})},B=()=>h(!0),m=()=>h(!1);return(0,g.jsxs)(g.Fragment,{children:[(!0===e||"source"===e)&&(0,g.jsx)(sJ,{position:s,centerX:n,centerY:r,radius:A,onMouseDown:e=>p(e,{nodeId:t.target,id:t.targetHandle??null,type:"target"}),onMouseEnter:B,onMouseOut:m,type:"source"}),(!0===e||"target"===e)&&(0,g.jsx)(sJ,{position:a,centerX:i,centerY:o,radius:A,onMouseDown:e=>p(e,{nodeId:t.source,id:t.sourceHandle??null,type:"source"}),onMouseEnter:B,onMouseOut:m,type:"target"})]})}var sZ=(0,p.memo)(function({id:e,edgesFocusable:A,edgesReconnectable:t,elementsSelectable:n,onClick:r,onDoubleClick:i,onContextMenu:o,onMouseEnter:s,onMouseMove:a,onMouseLeave:l,reconnectRadius:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,rfId:f,edgeTypes:B,noPanClassName:m,onError:w,disableKeyboardA11y:y}){let x=og(A=>A.edgeLookup.get(e)),C=og(e=>e.defaultEdgeOptions),b=(x=C?{...C,...x}:x).type||"default",v=B?.[b]||s$[b];void 0===v&&(w?.("011",oA.errorMessages.error011(b)),b="default",v=B?.default||s$.default);let Q=!!(x.focusable||A&&void 0===x.focusable),F=void 0!==u&&(x.reconnectable||t&&void 0===x.reconnectable),U=!!(x.selectable||n&&void 0===x.selectable),E=(0,p.useRef)(null),[I,S]=(0,p.useState)(!1),[k,j]=(0,p.useState)(!1),H=op(),{zIndex:D,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N}=og((0,p.useCallback)(A=>{let t=A.nodeLookup.get(x.source),n=A.nodeLookup.get(x.target);if(!t||!n)return{zIndex:x.zIndex,...sX};let r=(0,oA.getEdgePosition)({id:e,sourceNode:t,targetNode:n,sourceHandle:x.sourceHandle||null,targetHandle:x.targetHandle||null,connectionMode:A.connectionMode,onError:w});return{zIndex:(0,oA.getElevatedEdgeZIndex)({selected:x.selected,zIndex:x.zIndex,sourceNode:t,targetNode:n,elevateOnSelect:A.elevateEdgesOnSelect}),...r||sX}},[x.source,x.target,x.sourceHandle,x.targetHandle,x.selected,x.zIndex]),oc),P=(0,p.useMemo)(()=>x.markerStart?`url('#${(0,oA.getMarkerId)(x.markerStart,f)}')`:void 0,[x.markerStart,f]),_=(0,p.useMemo)(()=>x.markerEnd?`url('#${(0,oA.getMarkerId)(x.markerEnd,f)}')`:void 0,[x.markerEnd,f]);if(x.hidden||null===L||null===R||null===T||null===M)return null;let K=i?e=>{i(e,{...x})}:void 0,V=o?e=>{o(e,{...x})}:void 0,G=s?e=>{s(e,{...x})}:void 0,z=a?e=>{a(e,{...x})}:void 0,W=l?e=>{l(e,{...x})}:void 0;return(0,g.jsx)("svg",{style:{zIndex:D},children:(0,g.jsxs)("g",{className:oe(["react-flow__edge",`react-flow__edge-${b}`,x.className,m,{selected:x.selected,animated:x.animated,inactive:!U&&!r,updating:I,selectable:U}]),onClick:A=>{let{addSelectedEdges:t,unselectNodesAndEdges:n,multiSelectionActive:i}=H.getState();U&&(H.setState({nodesSelectionActive:!1}),x.selected&&i?(n({nodes:[],edges:[x]}),E.current?.blur()):t([e])),r&&r(A,x)},onDoubleClick:K,onContextMenu:V,onMouseEnter:G,onMouseMove:z,onMouseLeave:W,onKeyDown:Q?A=>{if(!y&&oA.elementSelectionKeys.includes(A.key)&&U){let{unselectNodesAndEdges:t,addSelectedEdges:n}=H.getState();"Escape"===A.key?(E.current?.blur(),t({edges:[x]})):n([e])}}:void 0,tabIndex:Q?0:void 0,role:x.ariaRole??(Q?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":null===x.ariaLabel?void 0:x.ariaLabel||`Edge from ${x.source} to ${x.target}`,"aria-describedby":Q?`${oy}-${f}`:void 0,ref:E,...x.domAttributes,children:[!k&&(0,g.jsx)(v,{id:e,source:x.source,target:x.target,type:x.type,selected:x.selected,animated:x.animated,selectable:U,deletable:x.deletable??!0,label:x.label,labelStyle:x.labelStyle,labelShowBg:x.labelShowBg,labelBgStyle:x.labelBgStyle,labelBgPadding:x.labelBgPadding,labelBgBorderRadius:x.labelBgBorderRadius,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N,data:x.data,style:x.style,sourceHandleId:x.sourceHandle,targetHandleId:x.targetHandle,markerStart:P,markerEnd:_,pathOptions:"pathOptions"in x?x.pathOptions:void 0,interactionWidth:x.interactionWidth}),F&&(0,g.jsx)(sq,{edge:x,isReconnectable:F,reconnectRadius:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N,setUpdateHover:S,setReconnecting:j})]})})});let s0=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function s1({defaultMarkerColor:e,onlyRenderVisibleElements:A,rfId:t,edgeTypes:n,noPanClassName:r,onReconnect:i,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:a,onEdgeMouseLeave:l,onEdgeClick:c,reconnectRadius:u,onEdgeDoubleClick:d,onReconnectStart:h,onReconnectEnd:f,disableKeyboardA11y:B}){let{edgesFocusable:m,edgesReconnectable:w,elementsSelectable:y,onError:x}=og(s0,oc),C=og((0,p.useCallback)(e=>{if(!A)return e.edges.map(e=>e.id);let t=[];if(e.width&&e.height)for(let A of e.edges){let n=e.nodeLookup.get(A.source),r=e.nodeLookup.get(A.target);n&&r&&(0,oA.isEdgeVisible)({sourceNode:n,targetNode:r,width:e.width,height:e.height,transform:e.transform})&&t.push(A.id)}return t},[A]),oc);return(0,g.jsxs)("div",{className:"react-flow__edges",children:[(0,g.jsx)(sU,{defaultColor:e,rfId:t}),C.map(e=>(0,g.jsx)(sZ,{id:e,edgesFocusable:m,edgesReconnectable:w,elementsSelectable:y,noPanClassName:r,onReconnect:i,onContextMenu:o,onMouseEnter:s,onMouseMove:a,onMouseLeave:l,onClick:c,reconnectRadius:u,onDoubleClick:d,onReconnectStart:h,onReconnectEnd:f,rfId:t,onError:x,edgeTypes:n,disableKeyboardA11y:B},e))]})}s1.displayName="EdgeRenderer";let s2=(0,p.memo)(s1),s4=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function s3({children:e}){let A=og(s4);return(0,g.jsx)("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:A},children:e})}let s5=e=>e.panZoom?.syncViewport;function s6(e){return e.connection.inProgress?{...e.connection,to:(0,oA.pointToRendererPoint)(e.connection.to,e.transform)}:{...e.connection}}let s8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function s7({containerStyle:e,style:A,type:t,component:n}){let{nodesConnectable:r,width:i,height:o,isValid:s,inProgress:a}=og(s8,oc);return i&&r&&a?(0,g.jsx)("svg",{style:e,width:i,height:o,className:"react-flow__connectionline react-flow__container",children:(0,g.jsx)("g",{className:oe(["react-flow__connection",(0,oA.getConnectionStatus)(s)]),children:(0,g.jsx)(s9,{style:A,type:t,CustomComponent:n,isValid:s})})}):null}let s9=({style:e,type:A=oA.ConnectionLineType.Bezier,CustomComponent:t,isValid:n})=>{let{inProgress:r,from:i,fromNode:o,fromHandle:s,fromPosition:a,to:l,toNode:c,toHandle:u,toPosition:d}=og(s6,oc);if(!r)return;if(t)return(0,g.jsx)(t,{connectionLineType:A,connectionLineStyle:e,fromNode:o,fromHandle:s,fromX:i.x,fromY:i.y,toX:l.x,toY:l.y,fromPosition:a,toPosition:d,connectionStatus:(0,oA.getConnectionStatus)(n),toNode:c,toHandle:u});let h="",f={sourceX:i.x,sourceY:i.y,sourcePosition:a,targetX:l.x,targetY:l.y,targetPosition:d};switch(A){case oA.ConnectionLineType.Bezier:[h]=(0,oA.getBezierPath)(f);break;case oA.ConnectionLineType.SimpleBezier:[h]=sj(f);break;case oA.ConnectionLineType.Step:[h]=(0,oA.getSmoothStepPath)({...f,borderRadius:0});break;case oA.ConnectionLineType.SmoothStep:[h]=(0,oA.getSmoothStepPath)(f);break;default:[h]=(0,oA.getStraightPath)(f)}return(0,g.jsx)("path",{d:h,fill:"none",className:"react-flow__connection-path",style:e})};s9.displayName="ConnectionLine";let ae={};function aA(e=ae){(0,p.useRef)(e),op(),(0,p.useEffect)(()=>{},[e])}function at({nodeTypes:e,edgeTypes:A,onInit:t,onNodeClick:n,onEdgeClick:r,onNodeDoubleClick:i,onEdgeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:a,onNodeMouseLeave:l,onNodeContextMenu:c,onSelectionContextMenu:u,onSelectionStart:d,onSelectionEnd:h,connectionLineType:f,connectionLineStyle:B,connectionLineComponent:m,connectionLineContainerStyle:w,selectionKeyCode:y,selectionOnDrag:x,selectionMode:C,multiSelectionKeyCode:b,panActivationKeyCode:v,zoomActivationKeyCode:Q,deleteKeyCode:F,onlyRenderVisibleElements:U,elementsSelectable:E,defaultViewport:I,translateExtent:S,minZoom:k,maxZoom:j,preventScrolling:H,defaultMarkerColor:D,zoomOnScroll:L,zoomOnPinch:R,panOnScroll:T,panOnScrollSpeed:M,panOnScrollMode:O,zoomOnDoubleClick:N,panOnDrag:P,onPaneClick:_,onPaneMouseEnter:K,onPaneMouseMove:V,onPaneMouseLeave:G,onPaneScroll:z,onPaneContextMenu:W,paneClickDistance:$,nodeClickDistance:X,onEdgeContextMenu:Y,onEdgeMouseEnter:J,onEdgeMouseMove:q,onEdgeMouseLeave:Z,reconnectRadius:ee,onReconnect:eA,onReconnectStart:et,onReconnectEnd:en,noDragClassName:er,noWheelClassName:ei,noPanClassName:eo,disableKeyboardA11y:es,nodeExtent:ea,rfId:el,viewport:ec,onViewportChange:eu}){let ed,eh,ef,eg;return aA(e),aA(A),op(),(0,p.useRef)(!1),(0,p.useEffect)(()=>{},[]),ed=o2(),eh=(0,p.useRef)(!1),(0,p.useEffect)(()=>{!eh.current&&ed.viewportInitialized&&t&&(setTimeout(()=>t(ed),1),eh.current=!0)},[t,ed.viewportInitialized]),ef=og(s5),eg=op(),(0,p.useEffect)(()=>{ec&&(ef?.(ec),eg.setState({transform:[ec.x,ec.y,ec.zoom]}))},[ec,ef]),(0,g.jsx)(sm,{onPaneClick:_,onPaneMouseEnter:K,onPaneMouseMove:V,onPaneMouseLeave:G,onPaneContextMenu:W,onPaneScroll:z,paneClickDistance:$,deleteKeyCode:F,selectionKeyCode:y,selectionOnDrag:x,selectionMode:C,onSelectionStart:d,onSelectionEnd:h,multiSelectionKeyCode:b,panActivationKeyCode:v,zoomActivationKeyCode:Q,elementsSelectable:E,zoomOnScroll:L,zoomOnPinch:R,zoomOnDoubleClick:N,panOnScroll:T,panOnScrollSpeed:M,panOnScrollMode:O,panOnDrag:P,defaultViewport:I,translateExtent:S,minZoom:k,maxZoom:j,onSelectionContextMenu:u,preventScrolling:H,noDragClassName:er,noWheelClassName:ei,noPanClassName:eo,disableKeyboardA11y:es,onViewportChange:eu,isControlledViewport:!!ec,children:(0,g.jsxs)(s3,{children:[(0,g.jsx)(s2,{edgeTypes:A,onEdgeClick:r,onEdgeDoubleClick:o,onReconnect:eA,onReconnectStart:et,onReconnectEnd:en,onlyRenderVisibleElements:U,onEdgeContextMenu:Y,onEdgeMouseEnter:J,onEdgeMouseMove:q,onEdgeMouseLeave:Z,reconnectRadius:ee,defaultMarkerColor:D,noPanClassName:eo,disableKeyboardA11y:es,rfId:el}),(0,g.jsx)(s7,{style:B,type:f,component:m,containerStyle:w}),(0,g.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,g.jsx)(sb,{nodeTypes:e,onNodeClick:n,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:a,onNodeMouseLeave:l,onNodeContextMenu:c,nodeClickDistance:X,onlyRenderVisibleElements:U,noPanClassName:eo,noDragClassName:er,disableKeyboardA11y:es,nodeExtent:ea,rfId:el}),(0,g.jsx)("div",{className:"react-flow__viewport-portal"})]})})}at.displayName="GraphView";let an=(0,p.memo)(at),ar=({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a=.5,maxZoom:l=2,nodeOrigin:c,nodeExtent:u}={})=>{let d=new Map,h=new Map,f=new Map,g=new Map,p=n??A??[],B=t??e??[],m=c??[0,0],w=u??oA.infiniteExtent;(0,oA.updateConnectionLookup)(f,g,p);let y=(0,oA.adoptUserNodes)(B,d,h,{nodeOrigin:m,nodeExtent:w,elevateNodesOnSelect:!1}),x=[0,0,1];if(o&&r&&i){let e=(0,oA.getInternalNodesBounds)(d,{filter:e=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),{x:A,y:t,zoom:n}=(0,oA.getViewportForBounds)(e,r,i,a,l,s?.padding??.1);x=[A,t,n]}return{rfId:"1",width:r??0,height:i??0,transform:x,nodes:B,nodesInitialized:y,nodeLookup:d,parentLookup:h,edges:p,edgeLookup:g,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:void 0!==t,hasDefaultEdges:void 0!==n,panZoom:null,minZoom:a,maxZoom:l,translateExtent:oA.infiniteExtent,nodeExtent:w,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:oA.ConnectionMode.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:m,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:s,fitViewResolver:null,connection:{...oA.initialConnection},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:oA.devWarn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:oA.defaultAriaLabelConfig}};function ai({initialNodes:e,initialEdges:A,defaultNodes:t,defaultEdges:n,initialWidth:r,initialHeight:i,initialMinZoom:o,initialMaxZoom:s,initialFitViewOptions:a,fitView:l,nodeOrigin:c,nodeExtent:u,children:d}){let[h]=(0,p.useState)(()=>(({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a,maxZoom:l,nodeOrigin:c,nodeExtent:u})=>{let d,h;return d=(d,h)=>{async function f(){let{nodeLookup:e,panZoom:A,fitViewOptions:t,fitViewResolver:n,width:r,height:i,minZoom:o,maxZoom:s}=h();A&&(await (0,oA.fitViewport)({nodes:e,width:r,height:i,panZoom:A,minZoom:o,maxZoom:s},t),n?.resolve(!0),d({fitViewResolver:null}))}return{...ar({nodes:e,edges:A,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a,maxZoom:l,nodeOrigin:c,nodeExtent:u,defaultNodes:t,defaultEdges:n}),setNodes:e=>{let{nodeLookup:A,parentLookup:t,nodeOrigin:n,elevateNodesOnSelect:r,fitViewQueued:i}=h(),o=(0,oA.adoptUserNodes)(e,A,t,{nodeOrigin:n,nodeExtent:u,elevateNodesOnSelect:r,checkEquality:!0});i&&o?(f(),d({nodes:e,nodesInitialized:o,fitViewQueued:!1,fitViewOptions:void 0})):d({nodes:e,nodesInitialized:o})},setEdges:e=>{let{connectionLookup:A,edgeLookup:t}=h();(0,oA.updateConnectionLookup)(A,t,e),d({edges:e})},setDefaultNodesAndEdges:(e,A)=>{if(e){let{setNodes:A}=h();A(e),d({hasDefaultNodes:!0})}if(A){let{setEdges:e}=h();e(A),d({hasDefaultEdges:!0})}},updateNodeInternals:e=>{let{triggerNodeChanges:A,nodeLookup:t,parentLookup:n,domNode:r,nodeOrigin:i,nodeExtent:o,debug:s,fitViewQueued:a}=h(),{changes:l,updatedInternals:c}=(0,oA.updateNodeInternals)(e,t,n,r,i,o);c&&((0,oA.updateAbsolutePositions)(t,n,{nodeOrigin:i,nodeExtent:o}),a?(f(),d({fitViewQueued:!1,fitViewOptions:void 0})):d({}),l?.length>0&&(s&&console.log("React Flow: trigger node changes",l),A?.(l)))},updateNodePositions:(e,A=!1)=>{let t=[],n=[],{nodeLookup:r,triggerNodeChanges:i}=h();for(let[i,o]of e){let e=r.get(i),s=!!(e?.expandParent&&e?.parentId&&o?.position),a={id:i,type:"position",position:s?{x:Math.max(0,o.position.x),y:Math.max(0,o.position.y)}:o.position,dragging:A};s&&e.parentId&&t.push({id:i,parentId:e.parentId,rect:{...o.internals.positionAbsolute,width:o.measured.width??0,height:o.measured.height??0}}),n.push(a)}if(t.length>0){let{parentLookup:e,nodeOrigin:A}=h(),i=(0,oA.handleExpandParent)(t,r,e,A);n.push(...i)}i(n)},triggerNodeChanges:e=>{let{onNodesChange:A,setNodes:t,nodes:n,hasDefaultNodes:r,debug:i}=h();e?.length&&(r&&t(oV(e,n)),i&&console.log("React Flow: trigger node changes",e),A?.(e))},triggerEdgeChanges:e=>{let{onEdgesChange:A,setEdges:t,edges:n,hasDefaultEdges:r,debug:i}=h();e?.length&&(r&&t(oV(e,n)),i&&console.log("React Flow: trigger edge changes",e),A?.(e))},addSelectedNodes:e=>{let{multiSelectionActive:A,edgeLookup:t,nodeLookup:n,triggerNodeChanges:r,triggerEdgeChanges:i}=h();A?r(e.map(e=>oG(e,!0))):(r(oz(n,new Set([...e]),!0)),i(oz(t)))},addSelectedEdges:e=>{let{multiSelectionActive:A,edgeLookup:t,nodeLookup:n,triggerNodeChanges:r,triggerEdgeChanges:i}=h();A?i(e.map(e=>oG(e,!0))):(i(oz(t,new Set([...e]))),r(oz(n,new Set,!0)))},unselectNodesAndEdges:({nodes:e,edges:A}={})=>{let{edges:t,nodes:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:o}=h(),s=(e||n).map(e=>{let A=r.get(e.id);return A&&(A.selected=!1),oG(e.id,!1)}),a=(A||t).map(e=>oG(e.id,!1));i(s),o(a)},setMinZoom:e=>{let{panZoom:A,maxZoom:t}=h();A?.setScaleExtent([e,t]),d({minZoom:e})},setMaxZoom:e=>{let{panZoom:A,minZoom:t}=h();A?.setScaleExtent([t,e]),d({maxZoom:e})},setTranslateExtent:e=>{h().panZoom?.setTranslateExtent(e),d({translateExtent:e})},resetSelectedElements:()=>{let{edges:e,nodes:A,triggerNodeChanges:t,triggerEdgeChanges:n,elementsSelectable:r}=h();if(!r)return;let i=A.reduce((e,A)=>A.selected?[...e,oG(A.id,!1)]:e,[]),o=e.reduce((e,A)=>A.selected?[...e,oG(A.id,!1)]:e,[]);t(i),n(o)},setNodeExtent:e=>{let{nodes:A,nodeLookup:t,parentLookup:n,nodeOrigin:r,elevateNodesOnSelect:i,nodeExtent:o}=h();(e[0][0]!==o[0][0]||e[0][1]!==o[0][1]||e[1][0]!==o[1][0]||e[1][1]!==o[1][1])&&((0,oA.adoptUserNodes)(A,t,n,{nodeOrigin:r,nodeExtent:e,elevateNodesOnSelect:i,checkEquality:!1}),d({nodeExtent:e}))},panBy:e=>{let{transform:A,width:t,height:n,panZoom:r,translateExtent:i}=h();return(0,oA.panBy)({delta:e,panZoom:r,transform:A,translateExtent:i,width:t,height:n})},setCenter:async(e,A,t)=>{let{width:n,height:r,maxZoom:i,panZoom:o}=h();if(!o)return Promise.resolve(!1);let s=void 0!==t?.zoom?t.zoom:i;return await o.setViewport({x:n/2-e*s,y:r/2-A*s,zoom:s},{duration:t?.duration,ease:t?.ease,interpolate:t?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{d({connection:{...oA.initialConnection}})},updateConnection:e=>{d({connection:e})},reset:()=>d({...ar()})}},h=Object.is,d?ol(d,h):ol})({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:l,minZoom:o,maxZoom:s,fitViewOptions:a,nodeOrigin:c,nodeExtent:u}));return(0,g.jsx)(oh,{value:h,children:(0,g.jsx)(o0,{children:d})})}function ao({children:e,nodes:A,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d}){return(0,p.useContext)(od)?(0,g.jsx)(g.Fragment,{children:e}):(0,g.jsx)(ai,{initialNodes:A,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:o,fitView:s,initialFitViewOptions:a,initialMinZoom:l,initialMaxZoom:c,nodeOrigin:u,nodeExtent:d,children:e})}let as={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};var aa=oY(function({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,className:r,nodeTypes:i,edgeTypes:o,onNodeClick:s,onEdgeClick:a,onInit:l,onMove:c,onMoveStart:u,onMoveEnd:d,onConnect:h,onConnectStart:f,onConnectEnd:B,onClickConnectStart:m,onClickConnectEnd:w,onNodeMouseEnter:y,onNodeMouseMove:x,onNodeMouseLeave:C,onNodeContextMenu:b,onNodeDoubleClick:v,onNodeDragStart:Q,onNodeDrag:F,onNodeDragStop:U,onNodesDelete:E,onEdgesDelete:I,onDelete:S,onSelectionChange:k,onSelectionDragStart:j,onSelectionDrag:H,onSelectionDragStop:D,onSelectionContextMenu:L,onSelectionStart:R,onSelectionEnd:T,onBeforeDelete:M,connectionMode:O,connectionLineType:N=oA.ConnectionLineType.Bezier,connectionLineStyle:P,connectionLineComponent:_,connectionLineContainerStyle:K,deleteKeyCode:V="Backspace",selectionKeyCode:G="Shift",selectionOnDrag:z=!1,selectionMode:W=oA.SelectionMode.Full,panActivationKeyCode:$="Space",multiSelectionKeyCode:X=(0,oA.isMacOs)()?"Meta":"Control",zoomActivationKeyCode:Y=(0,oA.isMacOs)()?"Meta":"Control",snapToGrid:J,snapGrid:q,onlyRenderVisibleElements:Z=!1,selectNodesOnDrag:ee,nodesDraggable:eA,autoPanOnNodeFocus:et,nodesConnectable:en,nodesFocusable:er,nodeOrigin:ei=oH,edgesFocusable:eo,edgesReconnectable:es,elementsSelectable:ea=!0,defaultViewport:el=oD,minZoom:ec=.5,maxZoom:eu=2,translateExtent:ed=oA.infiniteExtent,preventScrolling:eh=!0,nodeExtent:ef,defaultMarkerColor:eg="#b1b1b7",zoomOnScroll:ep=!0,zoomOnPinch:eB=!0,panOnScroll:em=!1,panOnScrollSpeed:ew=.5,panOnScrollMode:ey=oA.PanOnScrollMode.Free,zoomOnDoubleClick:ex=!0,panOnDrag:eC=!0,onPaneClick:eb,onPaneMouseEnter:ev,onPaneMouseMove:eQ,onPaneMouseLeave:eF,onPaneScroll:eU,onPaneContextMenu:eE,paneClickDistance:eI=0,nodeClickDistance:eS=0,children:ek,onReconnect:ej,onReconnectStart:eH,onReconnectEnd:eD,onEdgeContextMenu:eL,onEdgeDoubleClick:eR,onEdgeMouseEnter:eT,onEdgeMouseMove:eM,onEdgeMouseLeave:eO,reconnectRadius:eN=10,onNodesChange:eP,onEdgesChange:e_,noDragClassName:eK="nodrag",noWheelClassName:eV="nowheel",noPanClassName:eG="nopan",fitView:ez,fitViewOptions:eW,connectOnClick:e$,attributionPosition:eX,proOptions:eY,defaultEdgeOptions:eJ,elevateNodesOnSelect:eq,elevateEdgesOnSelect:eZ,disableKeyboardA11y:e0=!1,autoPanOnConnect:e1,autoPanOnNodeDrag:e2,autoPanSpeed:e4,connectionRadius:e3,isValidConnection:e5,onError:e6,style:e8,id:e7,nodeDragThreshold:e9,connectionDragThreshold:Ae,viewport:AA,onViewportChange:At,width:An,height:Ar,colorMode:Ai="light",debug:Ao,onScroll:As,ariaLabelConfig:Aa,...Al},Ac){let Au=e7||"1",Ad=function(e){let[A,t]=(0,p.useState)("system"===e?null:e);return(0,p.useEffect)(()=>{if("system"!==e)return void t(e);let A=oO(),n=()=>t(A?.matches?"dark":"light");return n(),A?.addEventListener("change",n),()=>{A?.removeEventListener("change",n)}},[e]),null!==A?A:oO()?.matches?"dark":"light"}(Ai),Ah=(0,p.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),As?.(e)},[As]);return(0,g.jsx)("div",{"data-testid":"rf__wrapper",...Al,onScroll:Ah,style:{...e8,...as},ref:Ac,className:oe(["react-flow",r,Ad]),id:e7,role:"application",children:(0,g.jsxs)(ao,{nodes:e,edges:A,width:An,height:Ar,fitView:ez,fitViewOptions:eW,minZoom:ec,maxZoom:eu,nodeOrigin:ei,nodeExtent:ef,children:[(0,g.jsx)(an,{onInit:l,onNodeClick:s,onEdgeClick:a,onNodeMouseEnter:y,onNodeMouseMove:x,onNodeMouseLeave:C,onNodeContextMenu:b,onNodeDoubleClick:v,nodeTypes:i,edgeTypes:o,connectionLineType:N,connectionLineStyle:P,connectionLineComponent:_,connectionLineContainerStyle:K,selectionKeyCode:G,selectionOnDrag:z,selectionMode:W,deleteKeyCode:V,multiSelectionKeyCode:X,panActivationKeyCode:$,zoomActivationKeyCode:Y,onlyRenderVisibleElements:Z,defaultViewport:el,translateExtent:ed,minZoom:ec,maxZoom:eu,preventScrolling:eh,zoomOnScroll:ep,zoomOnPinch:eB,zoomOnDoubleClick:ex,panOnScroll:em,panOnScrollSpeed:ew,panOnScrollMode:ey,panOnDrag:eC,onPaneClick:eb,onPaneMouseEnter:ev,onPaneMouseMove:eQ,onPaneMouseLeave:eF,onPaneScroll:eU,onPaneContextMenu:eE,paneClickDistance:eI,nodeClickDistance:eS,onSelectionContextMenu:L,onSelectionStart:R,onSelectionEnd:T,onReconnect:ej,onReconnectStart:eH,onReconnectEnd:eD,onEdgeContextMenu:eL,onEdgeDoubleClick:eR,onEdgeMouseEnter:eT,onEdgeMouseMove:eM,onEdgeMouseLeave:eO,reconnectRadius:eN,defaultMarkerColor:eg,noDragClassName:eK,noWheelClassName:eV,noPanClassName:eG,rfId:Au,disableKeyboardA11y:e0,nodeExtent:ef,viewport:AA,onViewportChange:At}),(0,g.jsx)(oM,{nodes:e,edges:A,defaultNodes:t,defaultEdges:n,onConnect:h,onConnectStart:f,onConnectEnd:B,onClickConnectStart:m,onClickConnectEnd:w,nodesDraggable:eA,autoPanOnNodeFocus:et,nodesConnectable:en,nodesFocusable:er,edgesFocusable:eo,edgesReconnectable:es,elementsSelectable:ea,elevateNodesOnSelect:eq,elevateEdgesOnSelect:eZ,minZoom:ec,maxZoom:eu,nodeExtent:ef,onNodesChange:eP,onEdgesChange:e_,snapToGrid:J,snapGrid:q,connectionMode:O,translateExtent:ed,connectOnClick:e$,defaultEdgeOptions:eJ,fitView:ez,fitViewOptions:eW,onNodesDelete:E,onEdgesDelete:I,onDelete:S,onNodeDragStart:Q,onNodeDrag:F,onNodeDragStop:U,onSelectionDrag:H,onSelectionDragStart:j,onSelectionDragStop:D,onMove:c,onMoveStart:u,onMoveEnd:d,noPanClassName:eG,nodeOrigin:ei,rfId:Au,autoPanOnConnect:e1,autoPanOnNodeDrag:e2,autoPanSpeed:e4,onError:e6,connectionRadius:e3,isValidConnection:e5,selectNodesOnDrag:ee,nodeDragThreshold:e9,connectionDragThreshold:Ae,onBeforeDelete:M,debug:Ao,ariaLabelConfig:Aa}),(0,g.jsx)(oj,{onSelectionChange:k}),ek,(0,g.jsx)(oF,{proOptions:eY,position:eX}),(0,g.jsx)(ov,{rfId:Au,disableKeyboardA11y:e0})]})})});function al({dimensions:e,lineWidth:A,variant:t,className:n}){return(0,g.jsx)("path",{strokeWidth:A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:oe(["react-flow__background-pattern",t,n])})}function ac({radius:e,className:A}){return(0,g.jsx)("circle",{cx:e,cy:e,r:e,className:oe(["react-flow__background-pattern","dots",A])})}oA.errorMessages.error014(),(h=f||(f={})).Lines="lines",h.Dots="dots",h.Cross="cross";let au={[f.Dots]:1,[f.Lines]:1,[f.Cross]:6},ad=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ah({id:e,variant:A=f.Dots,gap:t=20,size:n,lineWidth:r=1,offset:i=0,color:o,bgColor:s,style:a,className:l,patternClassName:c}){let u=(0,p.useRef)(null),{transform:d,patternId:h}=og(ad,oc),B=n||au[A],m=A===f.Dots,w=A===f.Cross,y=Array.isArray(t)?t:[t,t],x=[y[0]*d[2]||1,y[1]*d[2]||1],C=B*d[2],b=Array.isArray(i)?i:[i,i],v=w?[C,C]:x,Q=[b[0]*d[2]||1+v[0]/2,b[1]*d[2]||1+v[1]/2],F=`${h}${e||""}`;return(0,g.jsxs)("svg",{className:oe(["react-flow__background",l]),style:{...a,...o5,"--xy-background-color-props":s,"--xy-background-pattern-color-props":o},ref:u,"data-testid":"rf__background",children:[(0,g.jsx)("pattern",{id:F,x:d[0]%x[0],y:d[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${Q[0]},-${Q[1]})`,children:m?(0,g.jsx)(ac,{radius:C/2,className:c}):(0,g.jsx)(al,{dimensions:v,lineWidth:r,variant:A,className:c})}),(0,g.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${F})`})]})}ah.displayName="Background";let af=(0,p.memo)(ah);function ag(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,g.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function ap(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,g.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function aB(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,g.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function am(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,g.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function aw(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,g.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function ay({children:e,className:A,...t}){return(0,g.jsx)("button",{type:"button",className:oe(["react-flow__controls-button",A]),...t,children:e})}let ax=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function aC({style:e,showZoom:A=!0,showFitView:t=!0,showInteractive:n=!0,fitViewOptions:r,onZoomIn:i,onZoomOut:o,onFitView:s,onInteractiveChange:a,className:l,children:c,position:u="bottom-left",orientation:d="vertical","aria-label":h}){let f=op(),{isInteractive:p,minZoomReached:B,maxZoomReached:m,ariaLabelConfig:w}=og(ax,oc),{zoomIn:y,zoomOut:x,fitView:C}=o2();return(0,g.jsxs)(oQ,{className:oe(["react-flow__controls","horizontal"===d?"horizontal":"vertical",l]),position:u,style:e,"data-testid":"rf__controls","aria-label":h??w["controls.ariaLabel"],children:[A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ay,{onClick:()=>{y(),i?.()},className:"react-flow__controls-zoomin",title:w["controls.zoomIn.ariaLabel"],"aria-label":w["controls.zoomIn.ariaLabel"],disabled:m,children:(0,g.jsx)(ag,{})}),(0,g.jsx)(ay,{onClick:()=>{x(),o?.()},className:"react-flow__controls-zoomout",title:w["controls.zoomOut.ariaLabel"],"aria-label":w["controls.zoomOut.ariaLabel"],disabled:B,children:(0,g.jsx)(ap,{})})]}),t&&(0,g.jsx)(ay,{className:"react-flow__controls-fitview",onClick:()=>{C(r),s?.()},title:w["controls.fitView.ariaLabel"],"aria-label":w["controls.fitView.ariaLabel"],children:(0,g.jsx)(aB,{})}),n&&(0,g.jsx)(ay,{className:"react-flow__controls-interactive",onClick:()=>{f.setState({nodesDraggable:!p,nodesConnectable:!p,elementsSelectable:!p}),a?.(!p)},title:w["controls.interactive.ariaLabel"],"aria-label":w["controls.interactive.ariaLabel"],children:p?(0,g.jsx)(aw,{}):(0,g.jsx)(am,{})}),c]})}aC.displayName="Controls";let ab=(0,p.memo)(aC),av=(0,p.memo)(function({id:e,x:A,y:t,width:n,height:r,style:i,color:o,strokeColor:s,strokeWidth:a,className:l,borderRadius:c,shapeRendering:u,selected:d,onClick:h}){let{background:f,backgroundColor:p}=i||{};return(0,g.jsx)("rect",{className:oe(["react-flow__minimap-node",{selected:d},l]),x:A,y:t,rx:c,ry:c,width:n,height:r,style:{fill:o||f||p,stroke:s,strokeWidth:a},shapeRendering:u,onClick:h?A=>h(A,e):void 0})}),aQ=e=>e.nodes.map(e=>e.id),aF=e=>e instanceof Function?e:()=>e,aU=(0,p.memo)(function({id:e,nodeColorFunc:A,nodeStrokeColorFunc:t,nodeClassNameFunc:n,nodeBorderRadius:r,nodeStrokeWidth:i,shapeRendering:o,NodeComponent:s,onClick:a}){let{node:l,x:c,y:u,width:d,height:h}=og(A=>{let{internals:t}=A.nodeLookup.get(e),n=t.userNode,{x:r,y:i}=t.positionAbsolute,{width:o,height:s}=(0,oA.getNodeDimensions)(n);return{node:n,x:r,y:i,width:o,height:s}},oc);return l&&!l.hidden&&(0,oA.nodeHasDimensions)(l)?(0,g.jsx)(s,{x:c,y:u,width:d,height:h,style:l.style,selected:!!l.selected,className:n(l),color:A(l),borderRadius:r,strokeColor:t(l),strokeWidth:i,shapeRendering:o,onClick:a,id:l.id}):null});var aE=(0,p.memo)(function({nodeStrokeColor:e,nodeColor:A,nodeClassName:t="",nodeBorderRadius:n=5,nodeStrokeWidth:r,nodeComponent:i=av,onClick:o}){let s=og(aQ,oc),a=aF(A),l=aF(e),c=aF(t),u="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return(0,g.jsx)(g.Fragment,{children:s.map(e=>(0,g.jsx)(aU,{id:e,nodeColorFunc:a,nodeStrokeColorFunc:l,nodeClassNameFunc:c,nodeBorderRadius:n,nodeStrokeWidth:r,NodeComponent:i,onClick:o,shapeRendering:u},e))})});let aI=e=>!e.hidden,aS=e=>{let A={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:A,boundingRect:e.nodeLookup.size>0?(0,oA.getBoundsOfRects)((0,oA.getInternalNodesBounds)(e.nodeLookup,{filter:aI}),A):A,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}};function ak({style:e,className:A,nodeStrokeColor:t,nodeColor:n,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:o,nodeComponent:s,bgColor:a,maskColor:l,maskStrokeColor:c,maskStrokeWidth:u,position:d="bottom-right",onClick:h,onNodeClick:f,pannable:B=!1,zoomable:m=!1,ariaLabel:w,inversePan:y,zoomStep:x=1,offsetScale:C=5}){let b=op(),v=(0,p.useRef)(null),{boundingRect:Q,viewBB:F,rfId:U,panZoom:E,translateExtent:I,flowWidth:S,flowHeight:k,ariaLabelConfig:j}=og(aS,oc),H=e?.width??200,D=e?.height??150,L=Math.max(Q.width/H,Q.height/D),R=L*H,T=L*D,M=C*L,O=Q.x-(R-Q.width)/2-M,N=Q.y-(T-Q.height)/2-M,P=R+2*M,_=T+2*M,K=`react-flow__minimap-desc-${U}`,V=(0,p.useRef)(0),G=(0,p.useRef)();V.current=L,(0,p.useEffect)(()=>{if(v.current&&E)return G.current=(0,oA.XYMinimap)({domNode:v.current,panZoom:E,getTransform:()=>b.getState().transform,getViewScale:()=>V.current}),()=>{G.current?.destroy()}},[E]),(0,p.useEffect)(()=>{G.current?.update({translateExtent:I,width:S,height:k,inversePan:y,pannable:B,zoomStep:x,zoomable:m})},[B,m,y,x,I,S,k]);let z=h?e=>{let[A,t]=G.current?.pointer(e)||[0,0];h(e,{x:A,y:t})}:void 0,W=f?(0,p.useCallback)((e,A)=>{f(e,b.getState().nodeLookup.get(A).internals.userNode)},[]):void 0,$=w??j["minimap.ariaLabel"];return(0,g.jsx)(oQ,{position:d,style:{...e,"--xy-minimap-background-color-props":"string"==typeof a?a:void 0,"--xy-minimap-mask-background-color-props":"string"==typeof l?l:void 0,"--xy-minimap-mask-stroke-color-props":"string"==typeof c?c:void 0,"--xy-minimap-mask-stroke-width-props":"number"==typeof u?u*L:void 0,"--xy-minimap-node-background-color-props":"string"==typeof n?n:void 0,"--xy-minimap-node-stroke-color-props":"string"==typeof t?t:void 0,"--xy-minimap-node-stroke-width-props":"number"==typeof o?o:void 0},className:oe(["react-flow__minimap",A]),"data-testid":"rf__minimap",children:(0,g.jsxs)("svg",{width:H,height:D,viewBox:`${O} ${N} ${P} ${_}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":K,ref:v,onClick:z,children:[$&&(0,g.jsx)("title",{id:K,children:$}),(0,g.jsx)(aE,{onClick:W,nodeColor:n,nodeStrokeColor:t,nodeBorderRadius:i,nodeClassName:r,nodeStrokeWidth:o,nodeComponent:s}),(0,g.jsx)("path",{className:"react-flow__minimap-mask",d:`M${O-M},${N-M}h${P+2*M}v${_+2*M}h${-P-2*M}z
2
+ M${F.x},${F.y}h${F.width}v${F.height}h${-F.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}ak.displayName="MiniMap";let aj=(0,p.memo)(ak),aH={[oA.ResizeControlVariant.Line]:"right",[oA.ResizeControlVariant.Handle]:"bottom-right"};(0,p.memo)(function({nodeId:e,position:A,variant:t=oA.ResizeControlVariant.Handle,className:n,style:r,children:i,color:o,minWidth:s=10,minHeight:a=10,maxWidth:l=Number.MAX_VALUE,maxHeight:c=Number.MAX_VALUE,keepAspectRatio:u=!1,resizeDirection:d,autoScale:h=!0,shouldResize:f,onResizeStart:B,onResize:m,onResizeEnd:w}){let y,x=sa(),C="string"==typeof e?e:x,b=op(),v=(0,p.useRef)(null),Q=t===oA.ResizeControlVariant.Handle,F=og((0,p.useCallback)((y=Q&&h,e=>y?`${Math.max(1/e.transform[2],1)}`:void 0),[Q,h]),oc),U=(0,p.useRef)(null),E=A??aH[t];(0,p.useEffect)(()=>{if(v.current&&C)return U.current||(U.current=(0,oA.XYResizer)({domNode:v.current,nodeId:C,getStoreItems:()=>{let{nodeLookup:e,transform:A,snapGrid:t,snapToGrid:n,nodeOrigin:r,domNode:i}=b.getState();return{nodeLookup:e,transform:A,snapGrid:t,snapToGrid:n,nodeOrigin:r,paneDomNode:i}},onChange:(e,A)=>{let{triggerNodeChanges:t,nodeLookup:n,parentLookup:r,nodeOrigin:i}=b.getState(),o=[],s={x:e.x,y:e.y},a=n.get(C);if(a&&a.expandParent&&a.parentId){let A=a.origin??i,t=e.width??a.measured.width??0,l=e.height??a.measured.height??0,c={id:a.id,parentId:a.parentId,rect:{width:t,height:l,...(0,oA.evaluateAbsolutePosition)({x:e.x??a.position.x,y:e.y??a.position.y},{width:t,height:l},a.parentId,n,A)}},u=(0,oA.handleExpandParent)([c],n,r,i);o.push(...u),s.x=e.x?Math.max(A[0]*t,e.x):void 0,s.y=e.y?Math.max(A[1]*l,e.y):void 0}if(void 0!==s.x&&void 0!==s.y){let e={id:C,type:"position",position:{...s}};o.push(e)}if(void 0!==e.width&&void 0!==e.height){let A={id:C,type:"dimensions",resizing:!0,setAttributes:!d||("horizontal"===d?"width":"height"),dimensions:{width:e.width,height:e.height}};o.push(A)}for(let e of A){let A={...e,type:"position"};o.push(A)}t(o)},onEnd:({width:e,height:A})=>{b.getState().triggerNodeChanges([{id:C,type:"dimensions",resizing:!1,dimensions:{width:e,height:A}}])}})),U.current.update({controlPosition:E,boundaries:{minWidth:s,minHeight:a,maxWidth:l,maxHeight:c},keepAspectRatio:u,resizeDirection:d,onResizeStart:B,onResize:m,onResizeEnd:w,shouldResize:f}),()=>{U.current?.destroy()}},[E,s,a,l,c,u,B,m,w,f]);let I=E.split("-");return(0,g.jsx)("div",{className:oe(["react-flow__resize-control","nodrag",...I,t,n]),ref:v,style:{...r,scale:F,...o&&{[Q?"backgroundColor":"borderColor"]:o}},children:i})});var AS=AS,iC=iC,AS=AS,aD=e.i(52077),AS=AS;function aL(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(e)}function aR(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function aT(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function aM(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"},child:[]},{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(e)}function aO(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 16L6 10H18L12 16Z"},child:[]}]})(e)}function aN(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 8L18 14H6L12 8Z"},child:[]}]})(e)}function aP(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM12 15H18V17H12V15ZM8.66685 12L5.83842 9.17157L7.25264 7.75736L11.4953 12L7.25264 16.2426L5.83842 14.8284L8.66685 12Z"},child:[]}]})(e)}function a_(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18 3C19.6569 3 21 4.34315 21 6C21 7.65685 19.6569 9 18 9H15C13.6941 9 12.5831 8.16562 12.171 7.0009L11 7C9.9 7 9 7.9 9 9L9.0009 9.17102C10.1656 9.58312 11 10.6941 11 12C11 13.3059 10.1656 14.4169 9.0009 14.829L9 15C9 16.1 9.9 17 11 17L12.1707 17.0001C12.5825 15.8349 13.6937 15 15 15H18C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21H15C13.6941 21 12.5831 20.1656 12.171 19.0009L11 19C8.79 19 7 17.21 7 15H5C3.34315 15 2 13.6569 2 12C2 10.3431 3.34315 9 5 9H7C7 6.79086 8.79086 5 11 5L12.1707 5.00009C12.5825 3.83485 13.6937 3 15 3H18ZM18 17H15C14.4477 17 14 17.4477 14 18C14 18.5523 14.4477 19 15 19H18C18.5523 19 19 18.5523 19 18C19 17.4477 18.5523 17 18 17ZM8 11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H8C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11ZM18 5H15C14.4477 5 14 5.44772 14 6C14 6.55228 14.4477 7 15 7H18C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"},child:[]}]})(e)}function aK(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0049 22.0027C6.48204 22.0027 2.00488 17.5256 2.00488 12.0027C2.00488 6.4799 6.48204 2.00275 12.0049 2.00275C17.5277 2.00275 22.0049 6.4799 22.0049 12.0027C22.0049 17.5256 17.5277 22.0027 12.0049 22.0027ZM12.0049 20.0027C16.4232 20.0027 20.0049 16.421 20.0049 12.0027C20.0049 7.58447 16.4232 4.00275 12.0049 4.00275C7.5866 4.00275 4.00488 7.58447 4.00488 12.0027C4.00488 16.421 7.5866 20.0027 12.0049 20.0027ZM7.00488 9.00275L10.0049 5.50275L13.0049 9.00275H11.0049V13.0027H9.00488V9.00275H7.00488ZM17.0049 15.0027L14.0049 18.5027L11.0049 15.0027H13.0049V11.0027H15.0049V15.0027H17.0049Z"},child:[]}]})(e)}var aV=e.i(52058),aG=e.i(328),az=e.i(80806),aW=e.i(49301);function a$({children:e,display:A}){let[t,n]=(0,p.useState)(!1),r=(0,p.useRef)(null),i=(0,p.useRef)(null),o=(0,p.useCallback)(()=>{r.current&&(clearTimeout(r.current),r.current=null),n(!0)},[]),s=(0,p.useCallback)(()=>{r.current=setTimeout(()=>{n(!1)},100)},[]);return A?(0,g.jsxs)(aW.Popover.Root,{open:t,onFocusOutside:()=>{n(!1)},positioning:{getAnchorRect:()=>i.current?.getBoundingClientRect()??null},lazyMount:!0,unmountOnExit:!0,size:"xs",autoFocus:!1,children:[(0,g.jsx)(aW.Popover.Trigger,{asChild:!0,children:(0,g.jsx)(eb.Box,{ref:i,onMouseEnter:o,onMouseLeave:s,display:"contents",children:e})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(aW.Popover.Positioner,{children:(0,g.jsx)(aW.Popover.Content,{bg:"gray.600",color:"white",zIndex:"popover",width:"auto",onMouseEnter:o,onMouseLeave:s,children:(0,g.jsxs)(aW.Popover.Body,{children:["Connect to a data warehouse to unlock Diff."," ",(0,g.jsx)(eQ.Link,{href:az.RECCE_SUPPORT_CALENDAR_URL,color:"white",target:"_blank",textDecoration:"underline",children:"Learn more"}),"."]})})})})]}):e}function aX({node:e}){let{icon:A}=np(e.data.resourceType);return(0,g.jsx)(to.Tooltip,{showArrow:!0,content:"Type of resource",children:(0,g.jsxs)(AS.Root,{children:[A&&(0,g.jsx)(AS.StartElement,{children:(0,g.jsx)(A,{})}),(0,g.jsx)(AS.Label,{children:e.data.resourceType})]})})}function aY({rowCount:e}){let A=e.base,t=e.curr,n=null===e.base?"N/A":`${e.base} rows`,r=null===e.curr?"N/A":`${e.curr} rows`;return null===A&&null===t?(0,g.jsx)(g.Fragment,{children:" Failed to load"}):null===A||null===t?(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(e6.Text,{children:n}),(0,g.jsx)(eU.Icon,{as:aL}),(0,g.jsx)(e6.Text,{children:r})]}):A===t?(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(eU.Icon,{as:aK,color:"gray.500"}),(0,g.jsx)(e6.Text,{color:"gray.500",children:"No Change"})]}):A<t?(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(eU.Icon,{as:aN,color:"green.500"}),(0,g.jsx)(e6.Text,{color:"green.500",children:(0,aV.deltaPercentageString)(A,t)})]}):(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(eU.Icon,{as:aO,color:"red.500"}),(0,g.jsx)(e6.Text,{color:"red.500",children:(0,aV.deltaPercentageString)(A,t)})]})}function aJ({rowCount:e,node:A,onRefresh:t,isFetching:n}){let{featureToggles:r}=(0,tt.useRecceInstanceContext)(),{runsAggregated:i}=(0,A8.useLineageGraphContext)(),o=i?.[A.id]?.row_count_diff.result,s=(0,nm.findByRunType)("row_count_diff").icon,a=e??o,l=a?`${a.base??"N/A"} -> ${a.curr??"N/A"} rows`:"";return(0,g.jsx)(to.Tooltip,{content:l,children:(0,g.jsx)(a$,{display:"metadata only"===r.mode,children:(0,g.jsx)(AS.Root,{asChild:!0,children:(0,g.jsxs)(ev.Flex,{direction:"row",alignItems:"center",gap:"1",children:[(0,g.jsx)(s,{}),null!=a||n?(0,g.jsx)(aD.SkeletonText,{loading:!1,noOfLines:1,minWidth:"30px",fontSize:"xs",children:null!=a?(0,g.jsx)(aY,{rowCount:a}):"row count"}):(0,g.jsx)(e6.Text,{fontSize:"xs",children:"row count"}),t&&(0,g.jsx)(Am.IconButton,{loading:n,"aria-label":"Query Row Count",size:"2xs",p:"0",variant:"ghost",onClick:t,disabled:r.disableDatabaseQuery,children:(0,g.jsx)(aG.PiRepeat,{})})]})})})})}function aq({rowCount:e,node:A,onRefresh:t,isFetching:n}){let r,{runsAggregated:i}=(0,A8.useLineageGraphContext)(),o=i?.[A.id]?.row_count.result,s=(0,nm.findByRunType)("row_count").icon,a=e??o;if(a){let e=a.curr??"N/A";r=`${e} rows`}return(0,g.jsxs)(AS.Root,{children:[(0,g.jsx)(AS.StartElement,{children:(0,g.jsx)(s,{})}),(0,g.jsx)(AS.Label,{children:a||n?(0,g.jsx)(aD.SkeletonText,{loading:n,lineClamp:1,height:2,minWidth:"30px",children:a?`${r}`:"row count"}):(0,g.jsx)(g.Fragment,{children:"row count"})}),t&&(0,g.jsx)(Am.IconButton,{loading:n,"aria-label":"Query Row Count",size:"2xs",p:"0",variant:"ghost",onClick:t,disabled:"base"===A.data.from,children:(0,g.jsx)(aG.PiRepeat,{})})]})}var aZ=e.i(62754);let a0=({node:e,action:A})=>{let{status:t,skipReason:n,run:r}=A;if("pending"===t)return(0,g.jsx)(iC.Root,{value:0,size:"xs",children:(0,g.jsxs)(iC.Circle,{children:[(0,g.jsx)(iC.Track,{}),(0,g.jsx)(iC.Range,{})]})});if("skipped"===t)return(0,g.jsx)(AS.Root,{backgroundColor:"gray.100",children:(0,g.jsx)(AS.Label,{children:(0,g.jsxs)(ev.Flex,{fontSize:"10pt",color:"gray.500",alignItems:"center",gap:"3px",children:[(0,g.jsx)(eb.Box,{children:"Skipped"}),n&&(0,g.jsx)(to.Tooltip,{content:n,children:(0,g.jsx)(aG.PiInfo,{})})]})})});if(!r)return(0,g.jsx)(iC.Root,{value:null,size:"xs",children:(0,g.jsxs)(iC.Circle,{children:[(0,g.jsx)(iC.Track,{}),(0,g.jsx)(iC.Range,{})]})});let{error:i,run_id:o,progress:s}=r;if("running"===t)if(s?.percentage===void 0)return(0,g.jsx)(iC.Root,{value:null,size:"xs",children:(0,g.jsxs)(iC.Circle,{children:[(0,g.jsx)(iC.Track,{}),(0,g.jsx)(iC.Range,{})]})});else return(0,g.jsx)(iC.Root,{value:100*s.percentage,size:"xs",children:(0,g.jsxs)(iC.Circle,{children:[(0,g.jsx)(iC.Track,{}),(0,g.jsx)(iC.Range,{})]})});if(i)return(0,g.jsxs)(ev.Flex,{fontSize:"10pt",color:"gray",children:[(0,g.jsx)(eb.Box,{children:"Error"}),n&&(0,g.jsx)(to.Tooltip,{content:i,children:(0,g.jsx)(aG.PiWarning,{})})]});if((0,aZ.isValueDiffRun)(r)&&r.result){let e=r.result,A=0;for(let t of e.data.data)t[2]<1&&A++;return(0,g.jsx)(AS.Root,{backgroundColor:A>0?"red.100":"green.100",children:(0,g.jsx)(AS.Label,{children:(0,g.jsx)(ev.Flex,{fontSize:"10pt",color:A>0?"red":"green",alignItems:"center",gap:"3px",children:A>0?`${A} columns mismatched`:"All columns match"})})})}if((0,aZ.isRowCountDiffRun)(r)&&r.result){let A=r.result;return(0,g.jsx)(aJ,{rowCount:A[e.data.name],node:e})}if((0,aZ.isRowCountRun)(r)&&r.result){let A=r.result;return(0,g.jsx)(aq,{rowCount:A[e.data.name],node:e})}return(0,g.jsx)(g.Fragment,{children:o})};function a1({rowCount:e}){let A,t,n=e.base,r=e.curr,i=null===e.base?"N/A":`${e.base} Rows`,o=null===e.curr?"N/A":`${e.curr} Rows`;return null===n&&null===r?(A="Failed to load",t="gray"):null===n||null===r?(A=`${i} -> ${o}`,t=null===n?"green":"red"):n===r?(A="=",t="gray"):n!==r&&(A=`${(0,aV.deltaPercentageString)(n,r)} Rows`,t=n<r?"green":"red"),(0,g.jsx)(AS.Root,{colorPalette:t,children:(0,g.jsxs)(ev.Flex,{gap:1,alignItems:"center",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("row_count_diff").icon}),(0,g.jsx)(AS.Label,{children:A})]})})}let a2={breaking:"Breaking",non_breaking:"Non Breaking",partial_breaking:"Partial Breaking",unknown:"Unknown"},a4=({id:e,inverted:A})=>{let t,n,{lineageGraph:r,runsAggregated:i}=(0,A8.useLineageGraphContext)(),o=i?.[e],s=r?.nodes[e];if(!o&&!s)return(0,g.jsx)(g.Fragment,{});if(s?.data.data.base&&s.data.data.current&&(t=nB(s.data.data.base.columns,s.data.data.current.columns)),o?.row_count_diff){let e=o.row_count_diff.result;n=e.curr!==e.base}let a=A?"white":ng("modified").color;return(0,g.jsxs)(ev.Flex,{flex:"1",children:[void 0!==t&&(0,g.jsx)(to.Tooltip,{content:`Schema (${t?"changed":"no change"})`,openDelay:500,children:(0,g.jsx)(eb.Box,{height:"16px",children:(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("schema_diff").icon,color:t?a:A?"gray":"gray.100"})})}),(0,g.jsx)(eF.Spacer,{}),o?.row_count_diff&&void 0!==n&&(0,g.jsx)(to.Tooltip,{content:`Row count (${n?"changed":"="})`,openDelay:500,children:(0,g.jsx)(eb.Box,{children:(0,g.jsx)(a1,{rowCount:o.row_count_diff.result})})})]})},a3=({checked:e,onClick:A})=>(0,g.jsx)(ev.Flex,{onClick:A,alignSelf:"center",alignItems:"center",cursor:"pointer",children:e?(0,g.jsx)(eU.Icon,{boxSize:"20px",as:t6}):(0,g.jsx)(eU.Icon,{boxSize:"20px",as:no})}),a5=({name:e,color:A,resourceType:t})=>(0,g.jsx)(eb.Box,{flex:"1",color:A,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:(0,g.jsx)(to.Tooltip,{content:"model"===t?e:`${e} (${t})`,positioning:{placement:"top"},children:(0,g.jsx)("span",{children:e})})}),a6=(0,p.forwardRef)(function(e,A){let{templateAreas:t,column:n,row:r,autoFlow:i,autoRows:o,templateRows:s,autoColumns:a,templateColumns:l,inline:c,...u}=e;return(0,g.jsx)(B.chakra.div,{...u,ref:A,css:[{display:c?"inline-grid":"grid",gridTemplateAreas:t,gridAutoColumns:a,gridColumn:n,gridRow:r,gridAutoFlow:i,gridAutoRows:o,gridTemplateRows:s,gridTemplateColumns:l},e.css]})});a6.displayName="Grid";var em=em,a8=e.i(75119),a7=e.i(905);async function a9(e){return(await e7.axiosClient.post("/api/checks",{type:"schema_diff",params:e})).data}let le=e=>{let A,[t,n]=(0,p.useState)(!1),[r,i]=(0,p.useState)(!1),[,o]=(0,A8.useRunsAggregated)(),{error:s,data:a}=(0,e8.useQuery)({queryKey:e9.cacheKeys.run(e??""),queryFn:async()=>(0,il.waitRun)(e??"",2*!!t),enabled:!!e,refetchInterval:!!t&&50,retry:!1}),[l,c]=(0,p.useState)(a),[u,d]=(0,p.useState)(s);(a!==l||s!==u)&&(c(a),d(s),s||a?.result||a?.error?n(!1):a?.status==="running"&&n(!0)),(0,p.useEffect)(()=>{(s||a?.result||a?.error)&&(a?.type==="row_count_diff"||a?.type==="row_count")&&o()},[a,s,o]);let h=(0,p.useCallback)(async()=>{i(!0),e&&await (0,il.cancelRun)(e)},[e,i]);return a&&(0,nm.runTypeHasRef)(a.type)&&(A=(0,nm.findByRunType)(a.type).RunResultView),{run:a,isRunning:t,aborting:r,error:s,onCancel:h,RunResultView:A}};var em=em;let lA=Symbol.for("yaml.alias"),lt=Symbol.for("yaml.document"),ln=Symbol.for("yaml.map"),lr=Symbol.for("yaml.pair"),li=Symbol.for("yaml.scalar"),lo=Symbol.for("yaml.seq"),ls=Symbol.for("yaml.node.type"),la=e=>!!e&&"object"==typeof e&&e[ls]===lA,ll=e=>!!e&&"object"==typeof e&&e[ls]===lt,lc=e=>!!e&&"object"==typeof e&&e[ls]===ln,lu=e=>!!e&&"object"==typeof e&&e[ls]===lr,ld=e=>!!e&&"object"==typeof e&&e[ls]===li,lh=e=>!!e&&"object"==typeof e&&e[ls]===lo;function lf(e){if(e&&"object"==typeof e)switch(e[ls]){case ln:case lo:return!0}return!1}function lg(e){if(e&&"object"==typeof e)switch(e[ls]){case lA:case ln:case li:case lo:return!0}return!1}let lp=e=>(ld(e)||lf(e))&&!!e.anchor,lB=Symbol("break visit"),lm=Symbol("skip children"),lw=Symbol("remove node");function ly(e,A){let t=lv(A);ll(e)?lx(null,e.contents,t,Object.freeze([e]))===lw&&(e.contents=null):lx(null,e,t,Object.freeze([]))}function lx(e,A,t,n){let r=lQ(e,A,t,n);if(lg(r)||lu(r))return lF(e,n,r),lx(e,r,t,n);if("symbol"!=typeof r){if(lf(A)){n=Object.freeze(n.concat(A));for(let e=0;e<A.items.length;++e){let r=lx(e,A.items[e],t,n);if("number"==typeof r)e=r-1;else{if(r===lB)return lB;r===lw&&(A.items.splice(e,1),e-=1)}}}else if(lu(A)){n=Object.freeze(n.concat(A));let e=lx("key",A.key,t,n);if(e===lB)return lB;e===lw&&(A.key=null);let r=lx("value",A.value,t,n);if(r===lB)return lB;r===lw&&(A.value=null)}}return r}async function lC(e,A){let t=lv(A);ll(e)?await lb(null,e.contents,t,Object.freeze([e]))===lw&&(e.contents=null):await lb(null,e,t,Object.freeze([]))}async function lb(e,A,t,n){let r=await lQ(e,A,t,n);if(lg(r)||lu(r))return lF(e,n,r),lb(e,r,t,n);if("symbol"!=typeof r){if(lf(A)){n=Object.freeze(n.concat(A));for(let e=0;e<A.items.length;++e){let r=await lb(e,A.items[e],t,n);if("number"==typeof r)e=r-1;else{if(r===lB)return lB;r===lw&&(A.items.splice(e,1),e-=1)}}}else if(lu(A)){n=Object.freeze(n.concat(A));let e=await lb("key",A.key,t,n);if(e===lB)return lB;e===lw&&(A.key=null);let r=await lb("value",A.value,t,n);if(r===lB)return lB;r===lw&&(A.value=null)}}return r}function lv(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function lQ(e,A,t,n){return"function"==typeof t?t(e,A,n):lc(A)?t.Map?.(e,A,n):lh(A)?t.Seq?.(e,A,n):lu(A)?t.Pair?.(e,A,n):ld(A)?t.Scalar?.(e,A,n):la(A)?t.Alias?.(e,A,n):void 0}function lF(e,A,t){let n=A[A.length-1];if(lf(n))n.items[e]=t;else if(lu(n))"key"===e?n.key=t:n.value=t;else if(ll(n))n.contents=t;else{let e=la(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}ly.BREAK=lB,ly.SKIP=lm,ly.REMOVE=lw,lC.BREAK=lB,lC.SKIP=lm,lC.REMOVE=lw;let lU={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},lE=e=>e.replace(/[!,[\]{}]/g,e=>lU[e]);class lI{constructor(e,A){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},lI.defaultYaml,e),this.tags=Object.assign({},lI.defaultTags,A)}clone(){let e=new lI(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new lI(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:lI.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},lI.defaultTags)}return e}add(e,A){this.atNextDocument&&(this.yaml={explicit:lI.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},lI.defaultTags),this.atNextDocument=!1);let t=e.trim().split(/[ \t]+/),n=t.shift();switch(n){case"%TAG":{if(2!==t.length&&(A(0,"%TAG directive should contain exactly two parts"),t.length<2))return!1;let[e,n]=t;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==t.length)return A(0,"%YAML directive should contain exactly one part"),!1;let[e]=t;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return A(6,`Unsupported YAML version ${e}`,t),!1}}default:return A(0,`Unknown directive ${n}`,!0),!1}}tagName(e,A){if("!"===e)return"!";if("!"!==e[0])return A(`Not a valid tag: ${e}`),null;if("<"===e[1]){let t=e.slice(2,-1);return"!"===t||"!!"===t?(A(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&A("Verbatim tags must end with a >"),t)}let[,t,n]=e.match(/^(.*!)([^!]*)$/s);n||A(`The ${e} tag has no suffix`);let r=this.tags[t];if(r)try{return r+decodeURIComponent(n)}catch(e){return A(String(e)),null}return"!"===t?e:(A(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[A,t]of Object.entries(this.tags))if(e.startsWith(t))return A+lE(e.substring(t.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let A,t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&lg(e.contents)){let t={};ly(e.contents,(e,A)=>{lg(A)&&A.tag&&(t[A.tag]=!0)}),A=Object.keys(t)}else A=[];for(let[r,i]of n)("!!"!==r||"tag:yaml.org,2002:"!==i)&&(!e||A.some(e=>e.startsWith(i)))&&t.push(`%TAG ${r} ${i}`);return t.join("\n")}}function lS(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let A=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${A}`)}return!0}function lk(e){let A=new Set;return ly(e,{Value(e,t){t.anchor&&A.add(t.anchor)}}),A}function lj(e,A){for(let t=1;;++t){let n=`${e}${t}`;if(!A.has(n))return n}}function lH(e,A,t,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let A=0,t=n.length;A<t;++A){let t=n[A],r=lH(e,n,String(A),t);void 0===r?delete n[A]:r!==t&&(n[A]=r)}else if(n instanceof Map)for(let A of Array.from(n.keys())){let t=n.get(A),r=lH(e,n,A,t);void 0===r?n.delete(A):r!==t&&n.set(A,r)}else if(n instanceof Set)for(let A of Array.from(n)){let t=lH(e,n,A,A);void 0===t?n.delete(A):t!==A&&(n.delete(A),n.add(t))}else for(let[A,t]of Object.entries(n)){let r=lH(e,n,A,t);void 0===r?delete n[A]:r!==t&&(n[A]=r)}return e.call(A,t,n)}function lD(e,A,t){if(Array.isArray(e))return e.map((e,A)=>lD(e,String(A),t));if(e&&"function"==typeof e.toJSON){if(!t||!lp(e))return e.toJSON(A,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(e,n),t.onCreate=e=>{n.res=e,delete t.onCreate};let r=e.toJSON(A,t);return t.onCreate&&t.onCreate(r),r}return"bigint"!=typeof e||t?.keep?e:Number(e)}lI.defaultYaml={explicit:!1,version:"1.2"},lI.defaultTags={"!!":"tag:yaml.org,2002:"};class lL{constructor(e){Object.defineProperty(this,ls,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:A,maxAliasCount:t,onAnchor:n,reviver:r}={}){if(!ll(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===A,mapKeyWarned:!1,maxAliasCount:"number"==typeof t?t:100},o=lD(this,"",i);if("function"==typeof n)for(let{count:e,res:A}of i.anchors.values())n(A,e);return"function"==typeof r?lH(r,{"":o},"",o):o}}class lR extends lL{constructor(e){super(lA),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,A){let t,n;for(let r of(A?.aliasResolveCache?t=A.aliasResolveCache:(t=[],ly(e,{Node:(e,A)=>{(la(A)||lp(A))&&t.push(A)}}),A&&(A.aliasResolveCache=t)),t)){if(r===this)break;r.anchor===this.source&&(n=r)}return n}toJSON(e,A){if(!A)return{source:this.source};let{anchors:t,doc:n,maxAliasCount:r}=A,i=this.resolve(n,A);if(!i)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=t.get(i);if(o||(lD(i,null,A),o=t.get(i)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(A,t,n){if(la(t)){let e=t.resolve(A),r=n&&e&&n.get(e);return r?r.count*r.aliasCount:0}if(lf(t)){let r=0;for(let i of t.items){let t=e(A,i,n);t>r&&(r=t)}return r}return lu(t)?Math.max(e(A,t.key,n),e(A,t.value,n)):1}(n,i,t)),o.count*o.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,A,t){let n=`*${this.source}`;if(e){if(lS(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let lT=e=>!e||"function"!=typeof e&&"object"!=typeof e;class lM extends lL{constructor(e){super(li),this.value=e}toJSON(e,A){return A?.keep?this.value:lD(this.value,e,A)}toString(){return String(this.value)}}function lO(e,A,t){let n;if(ll(e)&&(e=e.contents),lg(e))return e;if(lu(e)){let A=t.schema[ln].createNode?.(t.schema,null,t);return A.items.push(e),A}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:s,sourceObjects:a}=t;if(r&&e&&"object"==typeof e){if(n=a.get(e))return n.anchor??(n.anchor=i(e)),new lR(n.anchor);n={anchor:null,node:null},a.set(e,n)}A?.startsWith("!!")&&(A="tag:yaml.org,2002:"+A.slice(2));let l=function(e,A,t){if(A){let e=t.filter(e=>e.tag===A),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${A} not found`);return n}return t.find(A=>A.identify?.(e)&&!A.format)}(e,A,s.tags);if(!l){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let A=new lM(e);return n&&(n.node=A),A}l=e instanceof Map?s[ln]:Symbol.iterator in Object(e)?s[lo]:s[ln]}o&&(o(l),delete t.onTagObj);let c=l?.createNode?l.createNode(t.schema,e,t):"function"==typeof l?.nodeClass?.from?l.nodeClass.from(t.schema,e,t):new lM(e);return A?c.tag=A:l.default||(c.tag=l.tag),n&&(n.node=c),c}function lN(e,A,t){let n=t;for(let e=A.length-1;e>=0;--e){let t=A[e];if("number"==typeof t&&Number.isInteger(t)&&t>=0){let e=[];e[t]=n,n=e}else n=new Map([[t,n]])}return lO(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}lM.BLOCK_FOLDED="BLOCK_FOLDED",lM.BLOCK_LITERAL="BLOCK_LITERAL",lM.PLAIN="PLAIN",lM.QUOTE_DOUBLE="QUOTE_DOUBLE",lM.QUOTE_SINGLE="QUOTE_SINGLE";let lP=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class l_ extends lL{constructor(e,A){super(e),Object.defineProperty(this,"schema",{value:A,configurable:!0,enumerable:!1,writable:!0})}clone(e){let A=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(A.schema=e),A.items=A.items.map(A=>lg(A)||lu(A)?A.clone(e):A),this.range&&(A.range=this.range.slice()),A}addIn(e,A){if(lP(e))this.add(A);else{let[t,...n]=e,r=this.get(t,!0);if(lf(r))r.addIn(n,A);else if(void 0===r&&this.schema)this.set(t,lN(this.schema,n,A));else throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}deleteIn(e){let[A,...t]=e;if(0===t.length)return this.delete(A);let n=this.get(A,!0);if(lf(n))return n.deleteIn(t);throw Error(`Expected YAML collection at ${A}. Remaining path: ${t}`)}getIn(e,A){let[t,...n]=e,r=this.get(t,!0);return 0===n.length?!A&&ld(r)?r.value:r:lf(r)?r.getIn(n,A):void 0}hasAllNullValues(e){return this.items.every(A=>{if(!lu(A))return!1;let t=A.value;return null==t||e&&ld(t)&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn(e){let[A,...t]=e;if(0===t.length)return this.has(A);let n=this.get(A,!0);return!!lf(n)&&n.hasIn(t)}setIn(e,A){let[t,...n]=e;if(0===n.length)this.set(t,A);else{let e=this.get(t,!0);if(lf(e))e.setIn(n,A);else if(void 0===e&&this.schema)this.set(t,lN(this.schema,n,A));else throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}}let lK=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function lV(e,A){return/^\n+$/.test(e)?e.substring(1):A?e.replace(/^(?! *$)/gm,A):e}let lG=(e,A,t)=>e.endsWith("\n")?lV(t,A):t.includes("\n")?"\n"+lV(t,A):(e.endsWith(" ")?"":" ")+t,lz="flow",lW="block",l$="quoted";function lX(e,A,t="flow",{indentAtStart:n,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:s}={}){let a,l,c;if(!r||r<0)return e;r<i&&(i=0);let u=Math.max(1+i,1+r-A.length);if(e.length<=u)return e;let d=[],h={},f=r-A.length;"number"==typeof n&&(n>r-Math.max(2,i)?d.push(0):f=r-n);let g=!1,p=-1,B=-1,m=-1;for(t===lW&&-1!==(p=lY(e,p,A.length))&&(f=p+u);c=e[p+=1];){if(t===l$&&"\\"===c){switch(B=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}m=p}if("\n"===c)t===lW&&(p=lY(e,p,A.length)),f=p+A.length+u,a=void 0;else{if(" "===c&&l&&" "!==l&&"\n"!==l&&" "!==l){let A=e[p+1];A&&" "!==A&&"\n"!==A&&" "!==A&&(a=p)}if(p>=f)if(a)d.push(a),f=a+u,a=void 0;else if(t===l$){for(;" "===l||" "===l;)l=c,c=e[p+=1],g=!0;let A=p>m+1?p-2:B-1;if(h[A])return e;d.push(A),h[A]=!0,f=A+u,a=void 0}else g=!0}l=c}if(g&&s&&s(),0===d.length)return e;o&&o();let w=e.slice(0,d[0]);for(let n=0;n<d.length;++n){let r=d[n],i=d[n+1]||e.length;0===r?w=`
3
+ ${A}${e.slice(0,i)}`:(t===l$&&h[r]&&(w+=`${e[r]}\\`),w+=`
4
+ ${A}${e.slice(r+1,i)}`)}return w}function lY(e,A,t){let n=A,r=A+1,i=e[r];for(;" "===i||" "===i;)if(A<r+t)i=e[++A];else{do i=e[++A];while(i&&"\n"!==i)n=A,i=e[r=A+1]}return n}let lJ=(e,A)=>({indentAtStart:A?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function lq(e,A){let t=JSON.stringify(e);if(A.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=A,r=A.options.doubleQuotedMinMultiLineLength,i=A.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",s=0;for(let e=0,A=t[e];A;A=t[++e])if(" "===A&&"\\"===t[e+1]&&"n"===t[e+2]&&(o+=t.slice(s,e)+"\\ ",e+=1,s=e,A="\\"),"\\"===A)switch(t[e+1]){case"u":{o+=t.slice(s,e);let A=t.substr(e+2,4);switch(A){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===A.substr(0,2)?o+="\\x"+A.substr(2):o+=t.substr(e,6)}e+=5,s=e+1}break;case"n":if(n||'"'===t[e+2]||t.length<r)e+=1;else{for(o+=t.slice(s,e)+"\n\n";"\\"===t[e+2]&&"n"===t[e+3]&&'"'!==t[e+4];)o+="\n",e+=2;o+=i," "===t[e+2]&&(o+="\\"),e+=1,s=e+1}break;default:e+=1}return o=s?o+t.slice(s):t,n?o:lX(o,i,l$,lJ(A,!1))}function lZ(e,A){if(!1===A.options.singleQuote||A.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return lq(e,A);let t=A.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
5
+ ${t}`)+"'";return A.implicitKey?n:lX(n,t,lz,lJ(A,!1))}function l0(e,A){let t,{singleQuote:n}=A.options;if(!1===n)t=lq;else{let A=e.includes('"'),r=e.includes("'");t=A&&!r?lZ:r&&!A?lq:n?lZ:lq}return t(e,A)}try{n=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{n=/\n+(?!\n|$)/g}function l1({comment:e,type:A,value:t},r,i,o){let s,a,l,c,{blockQuote:u,commentString:d,lineWidth:h}=r.options;if(!u||/\n[\t ]+$/.test(t))return l0(t,r);let f=r.indent||(r.forceBlockIndent||(c=t,/^(%|---|\.\.\.)/m.test(c))?" ":""),g="literal"===u||"folded"!==u&&A!==lM.BLOCK_FOLDED&&(A===lM.BLOCK_LITERAL||!function(e,A,t){if(!A||A<0)return!1;let n=A-t,r=e.length;if(r<=n)return!1;for(let A=0,t=0;A<r;++A)if("\n"===e[A]){if(A-t>n)return!0;if(r-(t=A+1)<=n)return!1}return!0}(t,h,f.length));if(!t)return g?"|\n":">\n";for(a=t.length;a>0;--a){let e=t[a-1];if("\n"!==e&&" "!==e&&" "!==e)break}let p=t.substring(a),B=p.indexOf("\n");-1===B?s="-":t===p||B!==p.length-1?(s="+",o&&o()):s="",p&&(t=t.slice(0,-p.length),"\n"===p[p.length-1]&&(p=p.slice(0,-1)),p=p.replace(n,`$&${f}`));let m=!1,w=-1;for(l=0;l<t.length;++l){let e=t[l];if(" "===e)m=!0;else if("\n"===e)w=l;else break}let y=t.substring(0,w<l?w+1:l);y&&(t=t.substring(y.length),y=y.replace(/\n+/g,`$&${f}`));let x=f?"2":"1",C=(m?x:"")+s;if(e&&(C+=" "+d(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!g){let e=t.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),n=!1,i=lJ(r,!0);"folded"!==u&&A!==lM.BLOCK_FOLDED&&(i.onOverflow=()=>{n=!0});let o=lX(`${y}${e}${p}`,f,lW,i);if(!n)return`>${C}
6
+ ${f}${o}`}return t=t.replace(/\n+/g,`$&${f}`),`|${C}
7
+ ${f}${y}${t}${p}`}function l2(e,A,t,n){let{implicitKey:r,inFlow:i}=A,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==lM.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=lM.QUOTE_DOUBLE);let a=e=>{switch(e){case lM.BLOCK_FOLDED:case lM.BLOCK_LITERAL:return r||i?l0(o.value,A):l1(o,A,t,n);case lM.QUOTE_DOUBLE:return lq(o.value,A);case lM.QUOTE_SINGLE:return lZ(o.value,A);case lM.PLAIN:return function(e,A,t,n){let{type:r,value:i}=e,{actualString:o,implicitKey:s,indent:a,indentStep:l,inFlow:c}=A;if(s&&i.includes("\n")||c&&/[[\]{},]/.test(i))return l0(i,A);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||c||!i.includes("\n")?l0(i,A):l1(e,A,t,n);if(!s&&!c&&r!==lM.PLAIN&&i.includes("\n"))return l1(e,A,t,n);if(/^(%|---|\.\.\.)/m.test(i)){if(""===a)return A.forceBlockIndent=!0,l1(e,A,t,n);else if(s&&a===l)return l0(i,A)}let u=i.replace(/\n+/g,`$&
8
+ ${a}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(u),{compat:t,tags:n}=A.doc.schema;if(n.some(e)||t?.some(e))return l0(i,A)}return s?u:lX(u,a,lz,lJ(A,!1))}(o,A,t,n);default:return null}},l=a(s);if(null===l){let{defaultKeyType:e,defaultStringType:t}=A.options,n=r&&e||t;if(null===(l=a(n)))throw Error(`Unsupported default string type ${n}`)}return l}function l4(e,A){let t,n=Object.assign({blockQuote:!0,commentString:lK,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,A);switch(n.collectionStyle){case"block":t=!1;break;case"flow":t=!0;break;default:t=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:t,options:n}}function l3(e,A,t,n){let r;if(lu(e))return e.toString(A,t,n);if(la(e)){if(A.doc.directives)return e.toString(A);if(A.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");A.resolvedAliases?A.resolvedAliases.add(e):A.resolvedAliases=new Set([e]),e=e.resolve(A.doc)}let i=lg(e)?e:A.doc.createNode(e,{onTagObj:e=>r=e});r??(r=function(e,A){let t,n;if(A.tag){let t=e.filter(e=>e.tag===A.tag);if(t.length>0)return t.find(e=>e.format===A.format)??t[0]}if(ld(A)){t=A.value;let r=e.filter(e=>e.identify?.(t));if(r.length>1){let e=r.filter(e=>e.test);e.length>0&&(r=e)}n=r.find(e=>e.format===A.format)??r.find(e=>!e.format)}else t=A,n=e.find(e=>e.nodeClass&&t instanceof e.nodeClass);if(!n){let e=t?.constructor?.name??(null===t?"null":typeof t);throw Error(`Tag not resolved for ${e} value`)}return n}(A.doc.schema.tags,i));let o=function(e,A,{anchors:t,doc:n}){if(!n.directives)return"";let r=[],i=(ld(e)||lf(e))&&e.anchor;i&&lS(i)&&(t.add(i),r.push(`&${i}`));let o=e.tag??(A.default?null:A.tag);return o&&r.push(n.directives.tagString(o)),r.join(" ")}(i,r,A);o.length>0&&(A.indentAtStart=(A.indentAtStart??0)+o.length+1);let s="function"==typeof r.stringify?r.stringify(i,A,t,n):ld(i)?l2(i,A,t,n):i.toString(A,t,n);return o?ld(i)||"{"===s[0]||"["===s[0]?`${o} ${s}`:`${o}
9
+ ${A.indent}${s}`:s}function l5(e,A){("debug"===e||"warn"===e)&&console.warn(A)}let l6={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new lM(Symbol("<<")),{addToJSMap:l8}),stringify:()=>"<<"};function l8(e,A,t){if(lh(t=e&&la(t)?t.resolve(e.doc):t))for(let n of t.items)l7(e,A,n);else if(Array.isArray(t))for(let n of t)l7(e,A,n);else l7(e,A,t)}function l7(e,A,t){let n=e&&la(t)?t.resolve(e.doc):t;if(!lc(n))throw Error("Merge sources must be maps or map aliases");for(let[t,r]of n.toJSON(null,e,Map))A instanceof Map?A.has(t)||A.set(t,r):A instanceof Set?A.add(t):Object.prototype.hasOwnProperty.call(A,t)||Object.defineProperty(A,t,{value:r,writable:!0,enumerable:!0,configurable:!0});return A}function l9(e,A,{key:t,value:n}){if(lg(t)&&t.addToJSMap)t.addToJSMap(e,A,n);else if((l6.identify(t)||ld(t)&&(!t.type||t.type===lM.PLAIN)&&l6.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===l6.tag&&e.default))l8(e,A,n);else{let r=lD(t,"",e);if(A instanceof Map)A.set(r,lD(n,r,e));else if(A instanceof Set)A.add(r);else{let i=function(e,A,t){if(null===A)return"";if("object"!=typeof A)return String(A);if(lg(e)&&t?.doc){let A=l4(t.doc,{});for(let e of(A.anchors=new Set,t.anchors.keys()))A.anchors.add(e.anchor);A.inFlow=!0,A.inStringifyKey=!0;let n=e.toString(A);if(!t.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),l5(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(A)}(t,r,e),o=lD(n,i,e);i in A?Object.defineProperty(A,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):A[i]=o}}return A}function ce(e,A,t){return new cA(lO(e,void 0,t),lO(A,void 0,t))}class cA{constructor(e,A=null){Object.defineProperty(this,ls,{value:lr}),this.key=e,this.value=A}clone(e){let{key:A,value:t}=this;return lg(A)&&(A=A.clone(e)),lg(t)&&(t=t.clone(e)),new cA(A,t)}toJSON(e,A){let t=A?.mapAsMap?new Map:{};return l9(A,t,this)}toString(e,A,t){return e?.doc?function({key:e,value:A},t,n,r){let i,o,s,{allNullValues:a,doc:l,indent:c,indentStep:u,options:{commentString:d,indentSeq:h,simpleKeys:f}}=t,g=lg(e)&&e.comment||null;if(f){if(g)throw Error("With simple keys, key nodes cannot have comments");if(lf(e)||!lg(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let p=!f&&(!e||g&&null==A&&!t.inFlow||lf(e)||(ld(e)?e.type===lM.BLOCK_FOLDED||e.type===lM.BLOCK_LITERAL:"object"==typeof e));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(f||!a),indent:c+u});let B=!1,m=!1,w=l3(e,t,()=>B=!0,()=>m=!0);if(!p&&!t.inFlow&&w.length>1024){if(f)throw Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(a||null==A)return B&&n&&n(),""===w?"?":p?`? ${w}`:w}else if(a&&!f||null==A&&p)return w=`? ${w}`,g&&!B?w+=lG(w,t.indent,d(g)):m&&r&&r(),w;B&&(g=null),p?(g&&(w+=lG(w,t.indent,d(g))),w=`? ${w}
10
+ ${c}:`):(w=`${w}:`,g&&(w+=lG(w,t.indent,d(g)))),lg(A)?(i=!!A.spaceBefore,o=A.commentBefore,s=A.comment):(i=!1,o=null,s=null,A&&"object"==typeof A&&(A=l.createNode(A))),t.implicitKey=!1,!p&&!g&&ld(A)&&(t.indentAtStart=w.length+1),m=!1,!(!h&&u.length>=2&&!t.inFlow&&!p&&lh(A))||A.flow||A.tag||A.anchor||(t.indent=t.indent.substring(2));let y=!1,x=l3(A,t,()=>y=!0,()=>m=!0),C=" ";if(g||i||o){if(C=i?"\n":"",o){let e=d(o);C+=`
11
+ ${lV(e,t.indent)}`}""!==x||t.inFlow?C+=`
12
+ ${t.indent}`:"\n"===C&&(C="\n\n")}else if(!p&&lf(A)){let e=x[0],n=x.indexOf("\n"),r=-1!==n,i=t.inFlow??A.flow??0===A.items.length;if(r||!i){let A=!1;if(r&&("&"===e||"!"===e)){let t=x.indexOf(" ");"&"===e&&-1!==t&&t<n&&"!"===x[t+1]&&(t=x.indexOf(" ",t+1)),(-1===t||n<t)&&(A=!0)}A||(C=`
13
+ ${t.indent}`)}}else(""===x||"\n"===x[0])&&(C="");return w+=C+x,t.inFlow?y&&n&&n():s&&!y?w+=lG(w,t.indent,d(s)):m&&r&&r(),w}(this,e,A,t):JSON.stringify(this)}}function ct(e,A,t){return(A.inFlow??e.flow?function({items:e},A,{flowChars:t,itemIndent:n}){let{indent:r,indentStep:i,flowCollectionPadding:o,options:{commentString:s}}=A,a=Object.assign({},A,{indent:n+=i,inFlow:!0,type:null}),l=!1,c=0,u=[];for(let t=0;t<e.length;++t){let r=e[t],i=null;if(lg(r))r.spaceBefore&&u.push(""),cn(A,u,r.commentBefore,!1),r.comment&&(i=r.comment);else if(lu(r)){let e=lg(r.key)?r.key:null;e&&(e.spaceBefore&&u.push(""),cn(A,u,e.commentBefore,!1),e.comment&&(l=!0));let t=lg(r.value)?r.value:null;t?(t.comment&&(i=t.comment),t.commentBefore&&(l=!0)):null==r.value&&e?.comment&&(i=e.comment)}i&&(l=!0);let o=l3(r,a,()=>i=null);t<e.length-1&&(o+=","),i&&(o+=lG(o,n,s(i))),!l&&(u.length>c||o.includes("\n"))&&(l=!0),u.push(o),c=u.length}let{start:d,end:h}=t;if(0===u.length)return d+h;if(!l){let e=u.reduce((e,A)=>e+A.length+2,2);l=A.options.lineWidth>0&&e>A.options.lineWidth}if(!l)return`${d}${o}${u.join(" ")}${o}${h}`;{let e=d;for(let A of u)e+=A?`
14
+ ${i}${r}${A}`:"\n";return`${e}
15
+ ${r}${h}`}}:function({comment:e,items:A},t,{blockItemPrefix:n,flowChars:r,itemIndent:i,onChompKeep:o,onComment:s}){let a,{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:i,type:null}),d=!1,h=[];for(let e=0;e<A.length;++e){let r=A[e],o=null;if(lg(r))!d&&r.spaceBefore&&h.push(""),cn(t,h,r.commentBefore,d),r.comment&&(o=r.comment);else if(lu(r)){let e=lg(r.key)?r.key:null;e&&(!d&&e.spaceBefore&&h.push(""),cn(t,h,e.commentBefore,d))}d=!1;let s=l3(r,u,()=>o=null,()=>d=!0);o&&(s+=lG(s,i,c(o))),d&&o&&(d=!1),h.push(n+s)}if(0===h.length)a=r.start+r.end;else{a=h[0];for(let e=1;e<h.length;++e){let A=h[e];a+=A?`
16
+ ${l}${A}`:"\n"}}return e?(a+="\n"+lV(c(e),l),s&&s()):d&&o&&o(),a})(e,A,t)}function cn({indent:e,options:{commentString:A}},t,n,r){if(n&&r&&(n=n.replace(/^\n+/,"")),n){let r=lV(A(n),e);t.push(r.trimStart())}}function cr(e,A){let t=ld(A)?A.value:A;for(let n of e)if(lu(n)&&(n.key===A||n.key===t||ld(n.key)&&n.key.value===t))return n}class ci extends l_{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ln,e),this.items=[]}static from(e,A,t){let{keepUndefined:n,replacer:r}=t,i=new this(e),o=(e,o)=>{if("function"==typeof r)o=r.call(A,e,o);else if(Array.isArray(r)&&!r.includes(e))return;(void 0!==o||n)&&i.items.push(ce(e,o,t))};if(A instanceof Map)for(let[e,t]of A)o(e,t);else if(A&&"object"==typeof A)for(let e of Object.keys(A))o(e,A[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,A){let t;t=lu(e)?e:e&&"object"==typeof e&&"key"in e?new cA(e.key,e.value):new cA(e,e?.value);let n=cr(this.items,t.key),r=this.schema?.sortMapEntries;if(n){if(!A)throw Error(`Key ${t.key} already set`);ld(n.value)&&lT(t.value)?n.value.value=t.value:n.value=t.value}else if(r){let e=this.items.findIndex(e=>0>r(t,e));-1===e?this.items.push(t):this.items.splice(e,0,t)}else this.items.push(t)}delete(e){let A=cr(this.items,e);return!!A&&this.items.splice(this.items.indexOf(A),1).length>0}get(e,A){let t=cr(this.items,e),n=t?.value;return(!A&&ld(n)?n.value:n)??void 0}has(e){return!!cr(this.items,e)}set(e,A){this.add(new cA(e,A),!0)}toJSON(e,A,t){let n=t?new t:A?.mapAsMap?new Map:{};for(let e of(A?.onCreate&&A.onCreate(n),this.items))l9(A,n,e);return n}toString(e,A,t){if(!e)return JSON.stringify(this);for(let e of this.items)if(!lu(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ct(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:t,onComment:A})}}let co={collection:"map",default:!0,nodeClass:ci,tag:"tag:yaml.org,2002:map",resolve:(e,A)=>(lc(e)||A("Expected a mapping for this tag"),e),createNode:(e,A,t)=>ci.from(e,A,t)};class cs extends l_{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(lo,e),this.items=[]}add(e){this.items.push(e)}delete(e){let A=ca(e);return"number"==typeof A&&this.items.splice(A,1).length>0}get(e,A){let t=ca(e);if("number"!=typeof t)return;let n=this.items[t];return!A&&ld(n)?n.value:n}has(e){let A=ca(e);return"number"==typeof A&&A<this.items.length}set(e,A){let t=ca(e);if("number"!=typeof t)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[t];ld(n)&&lT(A)?n.value=A:this.items[t]=A}toJSON(e,A){let t=[];A?.onCreate&&A.onCreate(t);let n=0;for(let e of this.items)t.push(lD(e,String(n++),A));return t}toString(e,A,t){return e?ct(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:t,onComment:A}):JSON.stringify(this)}static from(e,A,t){let{replacer:n}=t,r=new this(e);if(A&&Symbol.iterator in Object(A)){let e=0;for(let i of A){if("function"==typeof n){let t=A instanceof Set?i:String(e++);i=n.call(A,t,i)}r.items.push(lO(i,void 0,t))}}return r}}function ca(e){let A=ld(e)?e.value:e;return A&&"string"==typeof A&&(A=Number(A)),"number"==typeof A&&Number.isInteger(A)&&A>=0?A:null}let cl={collection:"seq",default:!0,nodeClass:cs,tag:"tag:yaml.org,2002:seq",resolve:(e,A)=>(lh(e)||A("Expected a sequence for this tag"),e),createNode:(e,A,t)=>cs.from(e,A,t)},cc={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,A,t,n)=>l2(e,A=Object.assign({actualString:!0},A),t,n)},cu={identify:e=>null==e,createNode:()=>new lM(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new lM(null),stringify:({source:e},A)=>"string"==typeof e&&cu.test.test(e)?e:A.options.nullStr},cd={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new lM("t"===e[0]||"T"===e[0]),stringify:({source:e,value:A},t)=>e&&cd.test.test(e)&&A===("t"===e[0]||"T"===e[0])?e:A?t.options.trueStr:t.options.falseStr};function ch({format:e,minFractionDigits:A,tag:t,value:n}){if("bigint"==typeof n)return String(n);let r="number"==typeof n?n:Number(n);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&A&&(!t||"tag:yaml.org,2002:float"===t)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let t=A-(i.length-e-1);for(;t-- >0;)i+="0"}return i}let cf={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:ch},cg={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let A=Number(e.value);return isFinite(A)?A.toExponential():ch(e)}},cp={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let A=new lM(parseFloat(e)),t=e.indexOf(".");return -1!==t&&"0"===e[e.length-1]&&(A.minFractionDigits=e.length-t-1),A},stringify:ch},cB=e=>"bigint"==typeof e||Number.isInteger(e),cm=(e,A,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(A),t);function cw(e,A,t){let{value:n}=e;return cB(n)&&n>=0?t+n.toString(A):ch(e)}let cy={identify:e=>cB(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,A,t)=>cm(e,2,8,t),stringify:e=>cw(e,8,"0o")},cx={identify:cB,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,A,t)=>cm(e,0,10,t),stringify:ch},cC={identify:e=>cB(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,A,t)=>cm(e,2,16,t),stringify:e=>cw(e,16,"0x")},cb=[co,cl,cc,cu,cd,cy,cx,cC,cf,cg,cp];function cv(e){return"bigint"==typeof e||Number.isInteger(e)}let cQ=({value:e})=>JSON.stringify(e),cF=[co,cl].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:cQ},{identify:e=>null==e,createNode:()=>new lM(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:cQ},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:cQ},{identify:cv,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,A,{intAsBigInt:t})=>t?BigInt(e):parseInt(e,10),stringify:({value:e})=>cv(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:cQ}],{default:!0,tag:"",test:/^/,resolve:(e,A)=>(A(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),cU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,A){if("function"!=typeof atob)return A("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let A=atob(e.replace(/[\n\r]/g,"")),t=new Uint8Array(A.length);for(let e=0;e<A.length;++e)t[e]=A.charCodeAt(e);return t}},stringify({comment:e,type:A,value:t},n,r,i){let o;if(!t)return"";if("function"==typeof btoa){let e="";for(let A=0;A<t.length;++A)e+=String.fromCharCode(t[A]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(A??(A=lM.BLOCK_LITERAL),A!==lM.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),t=Math.ceil(o.length/e),r=Array(t);for(let A=0,n=0;A<t;++A,n+=e)r[A]=o.substr(n,e);o=r.join(A===lM.BLOCK_LITERAL?"\n":" ")}return l2({comment:e,type:A,value:o},n,r,i)}};function cE(e,A){if(lh(e))for(let t=0;t<e.items.length;++t){let n=e.items[t];if(!lu(n)){if(lc(n)){n.items.length>1&&A("Each pair must have its own sequence indicator");let e=n.items[0]||new cA(new lM(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
17
+ ${e.key.commentBefore}`:n.commentBefore),n.comment){let A=e.value??e.key;A.comment=A.comment?`${n.comment}
18
+ ${A.comment}`:n.comment}n=e}e.items[t]=lu(n)?n:new cA(n)}}else A("Expected a sequence for this tag");return e}function cI(e,A,t){let{replacer:n}=t,r=new cs(e);r.tag="tag:yaml.org,2002:pairs";let i=0;if(A&&Symbol.iterator in Object(A))for(let e of A){let o,s;if("function"==typeof n&&(e=n.call(A,String(i++),e)),Array.isArray(e))if(2===e.length)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let A=Object.keys(e);if(1===A.length)s=e[o=A[0]];else throw TypeError(`Expected tuple with one key, not ${A.length} keys`)}else o=e;r.items.push(ce(o,s,t))}return r}let cS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:cE,createNode:cI};class ck extends cs{constructor(){super(),this.add=ci.prototype.add.bind(this),this.delete=ci.prototype.delete.bind(this),this.get=ci.prototype.get.bind(this),this.has=ci.prototype.has.bind(this),this.set=ci.prototype.set.bind(this),this.tag=ck.tag}toJSON(e,A){if(!A)return super.toJSON(e);let t=new Map;for(let e of(A?.onCreate&&A.onCreate(t),this.items)){let n,r;if(lu(e)?(n=lD(e.key,"",A),r=lD(e.value,n,A)):n=lD(e,"",A),t.has(n))throw Error("Ordered maps must not include duplicate keys");t.set(n,r)}return t}static from(e,A,t){let n=cI(e,A,t),r=new this;return r.items=n.items,r}}ck.tag="tag:yaml.org,2002:omap";let cj={collection:"seq",identify:e=>e instanceof Map,nodeClass:ck,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,A){let t=cE(e,A),n=[];for(let{key:e}of t.items)ld(e)&&(n.includes(e.value)?A(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new ck,t)},createNode:(e,A,t)=>ck.from(e,A,t)};function cH({value:e,source:A},t){return A&&(e?cD:cL).test.test(A)?A:e?t.options.trueStr:t.options.falseStr}let cD={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new lM(!0),stringify:cH},cL={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new lM(!1),stringify:cH},cR=e=>"bigint"==typeof e||Number.isInteger(e);function cT(e,A,t,{intAsBigInt:n}){let r=e[0];if(("-"===r||"+"===r)&&(A+=1),e=e.substring(A).replace(/_/g,""),n){switch(t){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let A=BigInt(e);return"-"===r?BigInt(-1)*A:A}let i=parseInt(e,t);return"-"===r?-1*i:i}function cM(e,A,t){let{value:n}=e;if(cR(n)){let e=n.toString(A);return n<0?"-"+t+e.substr(1):t+e}return ch(e)}class cO extends ci{constructor(e){super(e),this.tag=cO.tag}add(e){let A;A=lu(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new cA(e.key,null):new cA(e,null),cr(this.items,A.key)||this.items.push(A)}get(e,A){let t=cr(this.items,e);return!A&&lu(t)?ld(t.key)?t.key.value:t.key:t}set(e,A){if("boolean"!=typeof A)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof A}`);let t=cr(this.items,e);t&&!A?this.items.splice(this.items.indexOf(t),1):!t&&A&&this.items.push(new cA(e))}toJSON(e,A){return super.toJSON(e,A,Set)}toString(e,A,t){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),A,t);throw Error("Set items must all have null values")}static from(e,A,t){let{replacer:n}=t,r=new this(e);if(A&&Symbol.iterator in Object(A))for(let e of A)"function"==typeof n&&(e=n.call(A,e,e)),r.items.push(ce(e,null,t));return r}}cO.tag="tag:yaml.org,2002:set";let cN={collection:"map",identify:e=>e instanceof Set,nodeClass:cO,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,A,t)=>cO.from(e,A,t),resolve(e,A){if(lc(e))if(e.hasAllNullValues(!0))return Object.assign(new cO,e);else A("Set items must all have null values");else A("Expected a mapping for this tag");return e}};function cP(e,A){let t=e[0],n="-"===t||"+"===t?e.substring(1):e,r=e=>A?BigInt(e):Number(e),i=n.replace(/_/g,"").split(":").reduce((e,A)=>e*r(60)+r(A),r(0));return"-"===t?r(-1)*i:i}function c_(e){let{value:A}=e,t=e=>e;if("bigint"==typeof A)t=e=>BigInt(e);else if(isNaN(A)||!isFinite(A))return ch(e);let n="";A<0&&(n="-",A*=t(-1));let r=t(60),i=[A%r];return A<60?i.unshift(0):(A=(A-i[0])/r,i.unshift(A%r),A>=60&&(A=(A-i[0])/r,i.unshift(A))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let cK={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,A,{intAsBigInt:t})=>cP(e,t),stringify:c_},cV={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>cP(e,!1),stringify:c_},cG={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let A=e.match(cG.test);if(!A)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,r,i,o,s]=A.map(Number),a=Date.UTC(t,n-1,r,i||0,o||0,s||0,A[7]?Number((A[7]+"00").substr(1,3)):0),l=A[8];if(l&&"Z"!==l){let e=cP(l,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},cz=[co,cl,cc,cu,cD,cL,{identify:cR,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,A,t)=>cT(e,2,2,t),stringify:e=>cM(e,2,"0b")},{identify:cR,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,A,t)=>cT(e,1,8,t),stringify:e=>cM(e,8,"0")},{identify:cR,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,A,t)=>cT(e,0,10,t),stringify:ch},{identify:cR,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,A,t)=>cT(e,2,16,t),stringify:e=>cM(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:ch},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let A=Number(e.value);return isFinite(A)?A.toExponential():ch(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let A=new lM(parseFloat(e.replace(/_/g,""))),t=e.indexOf(".");if(-1!==t){let n=e.substring(t+1).replace(/_/g,"");"0"===n[n.length-1]&&(A.minFractionDigits=n.length)}return A},stringify:ch},cU,l6,cj,cS,cN,cK,cV,cG],cW=new Map([["core",cb],["failsafe",[co,cl,cc]],["json",cF],["yaml11",cz],["yaml-1.1",cz]]),c$={binary:cU,bool:cd,float:cp,floatExp:cg,floatNaN:cf,floatTime:cV,int:cx,intHex:cC,intOct:cy,intTime:cK,map:co,merge:l6,null:cu,omap:cj,pairs:cS,seq:cl,set:cN,timestamp:cG},cX={"tag:yaml.org,2002:binary":cU,"tag:yaml.org,2002:merge":l6,"tag:yaml.org,2002:omap":cj,"tag:yaml.org,2002:pairs":cS,"tag:yaml.org,2002:set":cN,"tag:yaml.org,2002:timestamp":cG};function cY(e,A,t){let n=cW.get(A);if(n&&!e)return t&&!n.includes(l6)?n.concat(l6):n.slice();let r=n;if(!r)if(Array.isArray(e))r=[];else{let e=Array.from(cW.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${A}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let A of e)r=r.concat(A);else"function"==typeof e&&(r=e(r.slice()));return t&&(r=r.concat(l6)),r.reduce((e,A)=>{let t="string"==typeof A?c$[A]:A;if(!t){let e=JSON.stringify(A),t=Object.keys(c$).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${t}`)}return e.includes(t)||e.push(t),e},[])}let cJ=(e,A)=>e.key<A.key?-1:+(e.key>A.key);class cq{constructor({compat:e,customTags:A,merge:t,resolveKnownTags:n,schema:r,sortMapEntries:i,toStringDefaults:o}){this.compat=Array.isArray(e)?cY(e,"compat"):e?cY(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=n?cX:{},this.tags=cY(A,this.name,t),this.toStringOptions=o??null,Object.defineProperty(this,ln,{value:co}),Object.defineProperty(this,li,{value:cc}),Object.defineProperty(this,lo,{value:cl}),this.sortMapEntries="function"==typeof i?i:!0===i?cJ:null}clone(){let e=Object.create(cq.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class cZ{constructor(e,A,t){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ls,{value:lt});let n=null;"function"==typeof A||Array.isArray(A)?n=A:void 0===t&&A&&(t=A,A=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},t);this.options=r;let{version:i}=r;t?._directives?(this.directives=t._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new lI({version:i}),this.setSchema(i,t),this.contents=void 0===e?null:this.createNode(e,n,t)}clone(){let e=Object.create(cZ.prototype,{[ls]:{value:lt}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=lg(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){c0(this.contents)&&this.contents.add(e)}addIn(e,A){c0(this.contents)&&this.contents.addIn(e,A)}createAlias(e,A){if(!e.anchor){let t=lk(this);e.anchor=!A||t.has(A)?lj(A||"a",t):A}return new lR(e.anchor)}createNode(e,A,t){var n,r;let i,o,s,a;if("function"==typeof A)e=A.call({"":e},"",e),i=A;else if(Array.isArray(A)){let e=A.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(A=A.concat(e)),i=A}else void 0===t&&A&&(t=A,A=void 0);let{aliasDuplicateObjects:l,anchorPrefix:c,flow:u,keepUndefined:d,onTagObj:h,tag:f}=t??{},{onAnchor:g,setAnchors:p,sourceObjects:B}=(n=this,r=c||"a",o=[],s=new Map,a=null,{onAnchor:e=>{o.push(e),a??(a=lk(n));let A=lj(r,a);return a.add(A),A},setAnchors:()=>{for(let e of o){let A=s.get(e);if("object"==typeof A&&A.anchor&&(ld(A.node)||lf(A.node)))A.node.anchor=A.anchor;else{let A=Error("Failed to resolve repeated object (this should not happen)");throw A.source=e,A}}},sourceObjects:s}),m={aliasDuplicateObjects:l??!0,keepUndefined:d??!1,onAnchor:g,onTagObj:h,replacer:i,schema:this.schema,sourceObjects:B},w=lO(e,f,m);return u&&lf(w)&&(w.flow=!0),p(),w}createPair(e,A,t={}){return new cA(this.createNode(e,null,t),this.createNode(A,null,t))}delete(e){return!!c0(this.contents)&&this.contents.delete(e)}deleteIn(e){return lP(e)?null!=this.contents&&(this.contents=null,!0):!!c0(this.contents)&&this.contents.deleteIn(e)}get(e,A){return lf(this.contents)?this.contents.get(e,A):void 0}getIn(e,A){return lP(e)?!A&&ld(this.contents)?this.contents.value:this.contents:lf(this.contents)?this.contents.getIn(e,A):void 0}has(e){return!!lf(this.contents)&&this.contents.has(e)}hasIn(e){return lP(e)?void 0!==this.contents:!!lf(this.contents)&&this.contents.hasIn(e)}set(e,A){null==this.contents?this.contents=lN(this.schema,[e],A):c0(this.contents)&&this.contents.set(e,A)}setIn(e,A){lP(e)?this.contents=A:null==this.contents?this.contents=lN(this.schema,Array.from(e),A):c0(this.contents)&&this.contents.setIn(e,A)}setSchema(e,A={}){let t;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new lI({version:"1.1"}),t={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new lI({version:e}),t={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,t=null;break;default:{let A=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${A}`)}}if(A.schema instanceof Object)this.schema=A.schema;else if(t)this.schema=new cq(Object.assign(t,A));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:A,mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=lD(this.contents,A??"",o);if("function"==typeof r)for(let{count:e,res:A}of o.anchors.values())r(A,e);return"function"==typeof i?lH(i,{"":s},"",s):s}toJSON(e,A){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:A})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let A=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${A}`)}return function(e,A){let t=[],n=!0===A.directives;if(!1!==A.directives&&e.directives){let A=e.directives.toString(e);A?(t.push(A),n=!0):e.directives.docStart&&(n=!0)}n&&t.push("---");let r=l4(e,A),{commentString:i}=r.options;if(e.commentBefore){1!==t.length&&t.unshift("");let A=i(e.commentBefore);t.unshift(lV(A,""))}let o=!1,s=null;if(e.contents){if(lg(e.contents)){if(e.contents.spaceBefore&&n&&t.push(""),e.contents.commentBefore){let A=i(e.contents.commentBefore);t.push(lV(A,""))}r.forceBlockIndent=!!e.comment,s=e.contents.comment}let A=s?void 0:()=>o=!0,a=l3(e.contents,r,()=>s=null,A);s&&(a+=lG(a,"",i(s))),("|"===a[0]||">"===a[0])&&"---"===t[t.length-1]?t[t.length-1]=`--- ${a}`:t.push(a)}else t.push(l3(e.contents,r));if(e.directives?.docEnd)if(e.comment){let A=i(e.comment);A.includes("\n")?(t.push("..."),t.push(lV(A,""))):t.push(`... ${A}`)}else t.push("...");else{let A=e.comment;A&&o&&(A=A.replace(/^\n+/,"")),A&&((!o||s)&&""!==t[t.length-1]&&t.push(""),t.push(lV(i(A),"")))}return t.join("\n")+"\n"}(this,e)}}function c0(e){if(lf(e))return!0;throw Error("Expected a YAML collection as document contents")}class c1 extends Error{constructor(e,A,t,n){super(),this.name=e,this.code=t,this.message=n,this.pos=A}}class c2 extends c1{constructor(e,A,t){super("YAMLParseError",e,A,t)}}class c4 extends c1{constructor(e,A,t){super("YAMLWarning",e,A,t)}}let c3=(e,A)=>t=>{if(-1===t.pos[0])return;t.linePos=t.pos.map(e=>A.linePos(e));let{line:n,col:r}=t.linePos[0];t.message+=` at line ${n}, column ${r}`;let i=r-1,o=e.substring(A.lineStarts[n-1],A.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let t=e.substring(A.lineStarts[n-2],A.lineStarts[n-1]);t.length>80&&(t=t.substring(0,79)+"…\n"),o=t+o}if(/[^ ]/.test(o)){let e=1,A=t.linePos[1];A&&A.line===n&&A.col>r&&(e=Math.max(1,Math.min(A.col-r,80-i)));let s=" ".repeat(i)+"^".repeat(e);t.message+=`:
19
+
20
+ ${o}
21
+ ${s}
22
+ `}};function c5(e,{flow:A,indicator:t,next:n,offset:r,onError:i,parentIndent:o,startOnNewline:s}){let a=!1,l=s,c=s,u="",d="",h=!1,f=!1,g=null,p=null,B=null,m=null,w=null,y=null,x=null;for(let r of e)switch(f&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),g&&(l&&"comment"!==r.type&&"newline"!==r.type&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),r.type){case"space":!A&&("doc-start"!==t||n?.type!=="flow-collection")&&r.source.includes(" ")&&(g=r),c=!0;break;case"comment":{c||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=r.source.substring(1)||" ";u?u+=d+e:u=e,d="",l=!1;break}case"newline":l?u?u+=r.source:y&&"seq-item-ind"===t||(a=!0):d+=r.source,l=!0,h=!0,(p||B)&&(m=r),c=!0;break;case"anchor":p&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),p=r,x??(x=r.offset),l=!1,c=!1,f=!0;break;case"tag":B&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),B=r,x??(x=r.offset),l=!1,c=!1,f=!0;break;case t:(p||B)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),y&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${A??"collection"}`),y=r,l="seq-item-ind"===t||"explicit-key-ind"===t,c=!1;break;case"comma":if(A){w&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${A}`),w=r,l=!1,c=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,c=!1}let C=e[e.length-1],b=C?C.offset+C.source.length:r;return f&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(l&&g.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:y,spaceBefore:a,comment:u,hasNewline:h,anchor:p,tag:B,newlineAfterProp:m,end:b,start:x??b}}function c6(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let A of e.end)if("newline"===A.type)return!0}return!1;case"flow-collection":for(let A of e.items){for(let e of A.start)if("newline"===e.type)return!0;if(A.sep){for(let e of A.sep)if("newline"===e.type)return!0}if(c6(A.key)||c6(A.value))return!0}return!1;default:return!0}}function c8(e,A,t){if(A?.type==="flow-collection"){let n=A.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&c6(A)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function c7(e,A,t){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let r="function"==typeof n?n:(e,A)=>e===A||ld(e)&&ld(A)&&e.value===A.value;return A.some(e=>r(e.key,t))}let c9="All mapping items must start at the same column";function ue(e,A,t,n){let r="";if(e){let i=!1,o="";for(let s of e){let{source:e,type:a}=s;switch(a){case"space":i=!0;break;case"comment":{t&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let A=e.substring(1)||" ";r?r+=o+A:r=A,o="";break}case"newline":r&&(o+=e),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}A+=e.length}}return{comment:r,offset:A}}let uA="Block collections are not allowed within flow collections",ut=e=>e&&("block-map"===e.type||"block-seq"===e.type);function un(e,A,t,n,r,i){let o="block-map"===t.type?function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o=new(i?.nodeClass??ci)(t.schema);t.atRoot&&(t.atRoot=!1);let s=n.offset,a=null;for(let i of n.items){let{start:l,key:c,sep:u,value:d}=i,h=c5(l,{indicator:"explicit-key-ind",next:c??u?.[0],offset:s,onError:r,parentIndent:n.indent,startOnNewline:!0}),f=!h.found;if(f){if(c&&("block-seq"===c.type?r(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==n.indent&&r(s,"BAD_INDENT",c9)),!h.anchor&&!h.tag&&!u){a=h.end,h.comment&&(o.comment?o.comment+="\n"+h.comment:o.comment=h.comment);continue}(h.newlineAfterProp||c6(c))&&r(c??l[l.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&r(s,"BAD_INDENT",c9);t.atKey=!0;let g=h.end,p=c?e(t,c,h,r):A(t,g,l,null,h,r);t.schema.compat&&c8(n.indent,c,r),t.atKey=!1,c7(t,o.items,p)&&r(g,"DUPLICATE_KEY","Map keys must be unique");let B=c5(u??[],{indicator:"map-value-ind",next:d,offset:p.range[2],onError:r,parentIndent:n.indent,startOnNewline:!c||"block-scalar"===c.type});if(s=B.end,B.found){f&&(d?.type!=="block-map"||B.hasNewline||r(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<B.found.offset-1024&&r(p.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let a=d?e(t,d,B,r):A(t,s,u,null,B,r);t.schema.compat&&c8(n.indent,d,r),s=a.range[2];let l=new cA(p,a);t.options.keepSourceTokens&&(l.srcToken=i),o.items.push(l)}else{f&&r(p.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),B.comment&&(p.comment?p.comment+="\n"+B.comment:p.comment=B.comment);let e=new cA(p);t.options.keepSourceTokens&&(e.srcToken=i),o.items.push(e)}}return a&&a<s&&r(a,"IMPOSSIBLE","Map comment with trailing content"),o.range=[n.offset,s,a??s],o}(e,A,t,n,i):"block-seq"===t.type?function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o=new(i?.nodeClass??cs)(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let s=n.offset,a=null;for(let{start:i,value:l}of n.items){let c=c5(i,{indicator:"seq-item-ind",next:l,offset:s,onError:r,parentIndent:n.indent,startOnNewline:!0});if(!c.found)if(c.anchor||c.tag||l)l&&"block-seq"===l.type?r(c.end,"BAD_INDENT","All sequence items must start at the same column"):r(s,"MISSING_CHAR","Sequence item without - indicator");else{a=c.end,c.comment&&(o.comment=c.comment);continue}let u=l?e(t,l,c,r):A(t,c.end,i,null,c,r);t.schema.compat&&c8(n.indent,l,r),s=u.range[2],o.items.push(u)}return o.range=[n.offset,s,a??s],o}(e,A,t,n,i):function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o="{"===n.start.source,s=o?"flow map":"flow sequence",a=new(i?.nodeClass??(o?ci:cs))(t.schema);a.flow=!0;let l=t.atRoot;l&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=n.offset+n.start.source.length;for(let i=0;i<n.items.length;++i){let l=n.items[i],{start:u,key:d,sep:h,value:f}=l,g=c5(u,{flow:s,indicator:"explicit-key-ind",next:d??h?.[0],offset:c,onError:r,parentIndent:n.indent,startOnNewline:!1});if(!g.found){if(!g.anchor&&!g.tag&&!h&&!f){0===i&&g.comma?r(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):i<n.items.length-1&&r(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),g.comment&&(a.comment?a.comment+="\n"+g.comment:a.comment=g.comment),c=g.end;continue}!o&&t.options.strict&&c6(d)&&r(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)g.comma&&r(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(g.comma||r(g.start,"MISSING_CHAR",`Missing , between ${s} items`),g.comment){let e="";e:for(let A of u)switch(A.type){case"comma":case"space":break;case"comment":e=A.source.substring(1);break e;default:break e}if(e){let A=a.items[a.items.length-1];lu(A)&&(A=A.value??A.key),A.comment?A.comment+="\n"+e:A.comment=e,g.comment=g.comment.substring(e.length+1)}}if(o||h||g.found){t.atKey=!0;let i=g.end,p=d?e(t,d,g,r):A(t,i,u,null,g,r);ut(d)&&r(p.range,"BLOCK_IN_FLOW",uA),t.atKey=!1;let B=c5(h??[],{flow:s,indicator:"map-value-ind",next:f,offset:p.range[2],onError:r,parentIndent:n.indent,startOnNewline:!1});if(B.found){if(!o&&!g.found&&t.options.strict){if(h)for(let e of h){if(e===B.found)break;if("newline"===e.type){r(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<B.found.offset-1024&&r(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else f&&("source"in f&&f.source&&":"===f.source[0]?r(f,"MISSING_CHAR",`Missing space after : in ${s}`):r(B.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let m=f?e(t,f,B,r):B.found?A(t,B.end,h,null,B,r):null;m?ut(f)&&r(m.range,"BLOCK_IN_FLOW",uA):B.comment&&(p.comment?p.comment+="\n"+B.comment:p.comment=B.comment);let w=new cA(p,m);if(t.options.keepSourceTokens&&(w.srcToken=l),o)c7(t,a.items,p)&&r(i,"DUPLICATE_KEY","Map keys must be unique"),a.items.push(w);else{let e=new ci(t.schema);e.flow=!0,e.items.push(w);let A=(m??p).range;e.range=[p.range[0],A[1],A[2]],a.items.push(e)}c=m?m.range[2]:B.end}else{let n=f?e(t,f,g,r):A(t,g.end,h,null,g,r);a.items.push(n),c=n.range[2],ut(f)&&r(n.range,"BLOCK_IN_FLOW",uA)}}let u=o?"}":"]",[d,...h]=n.end,f=c;if(d&&d.source===u)f=d.offset+d.source.length;else{let e=s[0].toUpperCase()+s.substring(1),A=l?`${e} must end with a ${u}`:`${e} in block collection must be sufficiently indented and end with a ${u}`;r(c,l?"MISSING_CHAR":"BAD_INDENT",A),d&&1!==d.source.length&&h.unshift(d)}if(h.length>0){let e=ue(h,f,t.options.strict,r);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[n.offset,f,e.offset]}else a.range=[n.offset,f,f];return a}(e,A,t,n,i),s=o.constructor;return"!"===r||r===s.tagName?o.tag=s.tagName:r&&(o.tag=r),o}function ur(e,A,t){let n=A.offset,r=function({offset:e,props:A},t,n){if("block-scalar-header"!==A[0].type)return n(A[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=A[0],i=r[0],o=0,s="",a=-1;for(let A=1;A<r.length;++A){let t=r[A];if(s||"-"!==t&&"+"!==t){let n=Number(t);!o&&n?o=n:-1===a&&(a=e+A)}else s=t}-1!==a&&n(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let l=!1,c="",u=r.length;for(let e=1;e<A.length;++e){let r=A[e];switch(r.type){case"space":l=!0;case"newline":u+=r.source.length;break;case"comment":t&&!l&&n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=r.source.length,c=r.source.substring(1);break;case"error":n(r,"UNEXPECTED_TOKEN",r.message),u+=r.source.length;break;default:{let e=`Unexpected token in block scalar header: ${r.type}`;n(r,"UNEXPECTED_TOKEN",e);let A=r.source;A&&"string"==typeof A&&(u+=A.length)}}}return{mode:i,indent:o,chomp:s,comment:c,length:u}}(A,e.options.strict,t);if(!r)return{value:"",type:null,comment:"",range:[n,n,n]};let i=">"===r.mode?lM.BLOCK_FOLDED:lM.BLOCK_LITERAL,o=A.source?function(e){let A=e.split(/\n( *)/),t=A[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let e=1;e<A.length;e+=2)r.push([A[e],A[e+1]]);return r}(A.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let A=o[e][1];if(""===A||"\r"===A)s=e;else break}if(0===s){let e="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",t=n+r.length;return A.source&&(t+=A.source.length),{value:e,type:i,comment:r.comment,range:[n,t,t]}}let a=A.indent+r.indent,l=A.offset+r.length,c=0;for(let A=0;A<s;++A){let[n,i]=o[A];if(""===i||"\r"===i)0===r.indent&&n.length>a&&(a=n.length);else{n.length<a&&t(l+n.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===r.indent&&(a=n.length),c=A,0!==a||e.atRoot||t(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=n.length+i.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>a&&(s=e+1);let u="",d="",h=!1;for(let e=0;e<c;++e)u+=o[e][0].slice(a)+"\n";for(let e=c;e<s;++e){let[A,n]=o[e];l+=A.length+n.length+1;let s="\r"===n[n.length-1];if(s&&(n=n.slice(0,-1)),n&&A.length<a){let e=r.indent?"explicit indentation indicator":"first line",i=`Block scalar lines must not be less indented than their ${e}`;t(l-n.length-(s?2:1),"BAD_INDENT",i),A=""}i===lM.BLOCK_LITERAL?(u+=d+A.slice(a)+n,d="\n"):A.length>a||" "===n[0]?(" "===d?d="\n":h||"\n"!==d||(d="\n\n"),u+=d+A.slice(a)+n,d="\n",h=!0):""===n?"\n"===d?u+="\n":d="\n":(u+=d+n,d=" ",h=!1)}switch(r.chomp){case"-":break;case"+":for(let e=s;e<o.length;++e)u+="\n"+o[e][0].slice(a);"\n"!==u[u.length-1]&&(u+="\n");break;default:u+="\n"}let f=n+r.length+A.source.length;return{value:u,type:i,comment:r.comment,range:[n,f,f]}}function ui(e,A,t){let n,r,{offset:i,type:o,source:s,end:a}=e,l=(e,A,n)=>t(i+e,A,n);switch(o){case"scalar":n=lM.PLAIN,r=function(e,A){let t="";switch(e[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":t=`block scalar indicator ${e[0]}`;break;case"@":case"`":t=`reserved character ${e[0]}`}return t&&A(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),uo(e)}(s,l);break;case"single-quoted-scalar":var c,u;n=lM.QUOTE_SINGLE,c=s,u=l,("'"!==c[c.length-1]||1===c.length)&&u(c.length,"MISSING_CHAR","Missing closing 'quote"),r=uo(c.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=lM.QUOTE_DOUBLE,r=function(e,A){let t="";for(let n=1;n<e.length-1;++n){let r=e[n];if("\r"!==r||"\n"!==e[n+1])if("\n"===r){let{fold:A,offset:r}=function(e,A){let t="",n=e[A+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[A+2]);)"\n"===n&&(t+="\n"),A+=1,n=e[A+1];return t||(t=" "),{fold:t,offset:A}}(e,n);t+=A,n=r}else if("\\"===r){let r=e[++n],i=us[r];if(i)t+=i;else if("\n"===r)for(r=e[n+1];" "===r||" "===r;)r=e[++n+1];else if("\r"===r&&"\n"===e[n+1])for(r=e[++n+1];" "===r||" "===r;)r=e[++n+1];else if("x"===r||"u"===r||"U"===r){let i={x:2,u:4,U:8}[r];t+=function(e,A,t,n){let r=e.substr(A,t),i=r.length===t&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(i)){let r=e.substr(A-2,t+2);return n(A-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),r}return String.fromCodePoint(i)}(e,n+1,i,A),n+=i}else{let r=e.substr(n-1,2);A(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),t+=r}}else if(" "===r||" "===r){let A=n,i=e[n+1];for(;" "===i||" "===i;)i=e[++n+1];"\n"!==i&&("\r"!==i||"\n"!==e[n+2])&&(t+=n>A?e.slice(A,n+1):r)}else t+=r}return('"'!==e[e.length-1]||1===e.length)&&A(e.length,"MISSING_CHAR",'Missing closing "quote'),t}(s,l);break;default:return t(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+s.length,i+s.length]}}let d=i+s.length,h=ue(a,d,A,t);return{value:r,type:n,comment:h.comment,range:[i,d,h.offset]}}function uo(e){let A,t;try{A=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),t=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{A=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=A.exec(e);if(!n)return e;let r=n[1],i=" ",o=A.lastIndex;for(t.lastIndex=o;n=t.exec(e);)""===n[1]?"\n"===i?r+=i:i="\n":(r+=i+n[1],i=" "),o=t.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,n=s.exec(e),r+i+(n?.[1]??"")}let us={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function ua(e,A,t,n){let r,i,{value:o,type:s,comment:a,range:l}="block-scalar"===A.type?ur(e,A,n):ui(A,e.options.strict,n),c=t?e.directives.tagName(t.source,e=>n(t,"TAG_RESOLVE_FAILED",e)):null;r=e.options.stringKeys&&e.atKey?e.schema[li]:c?function(e,A,t,n,r){if("!"===t)return e[li];let i=[];for(let A of e.tags)if(!A.collection&&A.tag===t)if(!A.default||!A.test)return A;else i.push(A);for(let e of i)if(e.test?.test(A))return e;let o=e.knownTags[t];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,"tag:yaml.org,2002:str"!==t),e[li])}(e.schema,o,c,t,n):"scalar"===A.type?function({atKey:e,directives:A,schema:t},n,r,i){let o=t.tags.find(A=>(!0===A.default||e&&"key"===A.default)&&A.test?.test(n))||t[li];if(t.compat){let e=t.compat.find(e=>e.default&&e.test?.test(n))??t[li];if(o.tag!==e.tag){let t=A.tagString(o.tag),n=A.tagString(e.tag);i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t} or ${n}`,!0)}}return o}(e,o,A,n):e.schema[li];try{let s=r.resolve(o,e=>n(t??A,"TAG_RESOLVE_FAILED",e),e.options);i=ld(s)?s:new lM(s)}catch(e){n(t??A,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),i=new lM(o)}return i.range=l,i.source=o,s&&(i.type=s),c&&(i.tag=c),r.format&&(i.format=r.format),a&&(i.comment=a),i}let ul={composeNode:uc,composeEmptyNode:uu};function uc(e,A,t,n){let r,i=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:l}=t,c=!0;switch(A.type){case"alias":r=function({options:e},{offset:A,source:t,end:n},r){let i=new lR(t.substring(1));""===i.source&&r(A,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(A+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=A+t.length,s=ue(n,o,e.strict,r);return i.range=[A,o,s.offset],s.comment&&(i.comment=s.comment),i}(e,A,n),(a||l)&&n(A,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":r=ua(e,A,l,n),a&&(r.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":r=function(e,A,t,n,r){let i=n.tag,o=i?A.directives.tagName(i.source,e=>r(i,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===t.type){let{anchor:e,newlineAfterProp:A}=n,t=e&&i?e.offset>i.offset?e:i:e??i;t&&(!A||A.offset<t.offset)&&r(t,"MISSING_CHAR","Missing newline after block sequence props")}let s="block-map"===t.type?"map":"block-seq"===t.type?"seq":"{"===t.start.source?"map":"seq";if(!i||!o||"!"===o||o===ci.tagName&&"map"===s||o===cs.tagName&&"seq"===s)return un(e,A,t,r,o);let a=A.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!a){let n=A.schema.knownTags[o];if(!n||n.collection!==s)return n?r(i,"BAD_COLLECTION_TYPE",`${n.tag} used for ${s} collection, but expects ${n.collection??"scalar"}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),un(e,A,t,r,o);A.schema.tags.push(Object.assign({},n,{default:!1})),a=n}let l=un(e,A,t,r,o,a),c=a.resolve?.(l,e=>r(i,"TAG_RESOLVE_FAILED",e),A.options)??l,u=lg(c)?c:new lM(c);return u.range=l.range,u.tag=o,a?.format&&(u.format=a.format),u}(ul,e,A,t,n),a&&(r.anchor=a.source.substring(1));break;default:{let i="error"===A.type?A.message:`Unsupported token (type: ${A.type})`;n(A,"UNEXPECTED_TOKEN",i),r=uu(e,A.offset,void 0,null,t,n),c=!1}}return a&&""===r.anchor&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!ld(r)||"string"!=typeof r.value||r.tag&&"tag:yaml.org,2002:str"!==r.tag)&&n(l??A,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(r.spaceBefore=!0),s&&("scalar"===A.type&&""===A.source?r.comment=s:r.commentBefore=s),e.options.keepSourceTokens&&c&&(r.srcToken=A),r}function uu(e,A,t,n,{spaceBefore:r,comment:i,anchor:o,tag:s,end:a},l){let c=ua(e,{type:"scalar",offset:function(e,A,t){if(A){t??(t=A.length);for(let n=t-1;n>=0;--n){let t=A[n];switch(t.type){case"space":case"comment":case"newline":e-=t.source.length;continue}for(t=A[++n];t?.type==="space";)e+=t.source.length,t=A[++n];break}}return e}(A,t,n),indent:-1,source:""},s,l);return o&&(c.anchor=o.source.substring(1),""===c.anchor&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(c.spaceBefore=!0),i&&(c.comment=i,c.range[2]=a),c}function ud(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:A,source:t}=e;return[A,A+("string"==typeof t?t.length:1)]}function uh(e){let A="",t=!1,n=!1;for(let r=0;r<e.length;++r){let i=e[r];switch(i[0]){case"#":A+=(""===A?"":n?"\n\n":"\n")+(i.substring(1)||" "),t=!0,n=!1;break;case"%":e[r+1]?.[0]!=="#"&&(r+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:A,afterEmptyLine:n}}class uf{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,A,t,n)=>{let r=ud(e);n?this.warnings.push(new c4(r,A,t)):this.errors.push(new c2(r,A,t))},this.directives=new lI({version:e.version||"1.2"}),this.options=e}decorate(e,A){let{comment:t,afterEmptyLine:n}=uh(this.prelude);if(t){let r=e.contents;if(A)e.comment=e.comment?`${e.comment}
23
+ ${t}`:t;else if(n||e.directives.docStart||!r)e.commentBefore=t;else if(lf(r)&&!r.flow&&r.items.length>0){let e=r.items[0];lu(e)&&(e=e.key);let A=e.commentBefore;e.commentBefore=A?`${t}
24
+ ${A}`:t}else{let e=r.commentBefore;r.commentBefore=e?`${t}
25
+ ${e}`:t}}A?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:uh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,A=!1,t=-1){for(let A of e)yield*this.next(A);yield*this.end(A,t)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(A,t,n)=>{let r=ud(e);r[0]+=A,this.onError(r,"BAD_DIRECTIVE",t,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let A=function(e,A,{offset:t,start:n,value:r,end:i},o){let s=new cZ(void 0,Object.assign({_directives:A},e)),a={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=c5(n,{indicator:"doc-start",next:r??i?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!l.hasNewline&&o(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),s.contents=r?uc(a,r,l,o):uu(a,l.end,n,null,l,o);let c=s.contents.range[2],u=ue(i,c,!1,o);return u.comment&&(s.comment=u.comment),s.range=[t,c,u.offset],s}(this.options,this.directives,e,this.onError);this.atDirectives&&!A.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(A,!1),this.doc&&(yield this.doc),this.doc=A,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let A=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,t=new c2(ud(e),"UNEXPECTED_TOKEN",A);this.atDirectives||!this.doc?this.errors.push(t):this.doc.errors.push(t);break}case"doc-end":{if(!this.doc){this.errors.push(new c2(ud(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let A=ue(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),A.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
26
+ ${A.comment}`:A.comment}this.doc.range[2]=A.offset;break}default:this.errors.push(new c2(ud(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,A=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new cZ(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(A,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,A,A],this.decorate(e,!1),yield e}}}function ug(e,A=!0,t){if(e){let n=(e,A,n)=>{let r="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(t)t(r,A,n);else throw new c2([r,r+1],A,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ui(e,A,n);case"block-scalar":return ur({options:{strict:A}},e,n)}}return null}function up(e,A){let{implicitKey:t=!1,indent:n,inFlow:r=!1,offset:i=-1,type:o="PLAIN"}=A,s=l2({type:o,value:e},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),a=A.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(s[0]){case"|":case">":{let e=s.indexOf("\n"),A=s.substring(0,e),t=s.substring(e+1)+"\n",r=[{type:"block-scalar-header",offset:i,indent:n,source:A}];return um(r,a)||r.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:i,indent:n,props:r,source:t}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:s,end:a};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:s,end:a};default:return{type:"scalar",offset:i,indent:n,source:s,end:a}}}function uB(e,A,t={}){let{afterKey:n=!1,implicitKey:r=!1,inFlow:i=!1,type:o}=t,s="indent"in e?e.indent:null;if(n&&"number"==typeof s&&(s+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let A=e.props[0];if("block-scalar-header"!==A.type)throw Error("Invalid block scalar header");o=">"===A.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=l2({type:o,value:A},{implicitKey:r||null===s,indent:null!==s&&s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":!function(e,A){let t=A.indexOf("\n"),n=A.substring(0,t),r=A.substring(t+1)+"\n";if("block-scalar"===e.type){let A=e.props[0];if("block-scalar-header"!==A.type)throw Error("Invalid block scalar header");A.source=n,e.source=r}else{let{offset:A}=e,t="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:A,indent:t,source:n}];for(let A of(um(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:t,source:"\n"}),Object.keys(e)))"type"!==A&&"offset"!==A&&delete e[A];Object.assign(e,{type:"block-scalar",indent:t,props:i,source:r})}}(e,a);break;case'"':uw(e,a,"double-quoted-scalar");break;case"'":uw(e,a,"single-quoted-scalar");break;default:uw(e,a,"scalar")}}function um(e,A){if(A)for(let t of A)switch(t.type){case"space":case"comment":e.push(t);break;case"newline":return e.push(t),!0}return!1}function uw(e,A,t){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=t,e.source=A;break;case"block-scalar":{let n=e.props.slice(1),r=A.length;for(let A of("block-scalar-header"===e.props[0].type&&(r-=e.props[0].source.length),n))A.offset+=r;delete e.props,Object.assign(e,{type:t,source:A,end:n});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+A.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:t,source:A,end:[n]});break}default:{let n="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let A of Object.keys(e))"type"!==A&&"offset"!==A&&delete e[A];Object.assign(e,{type:t,indent:n,source:A,end:r})}}}let uy=e=>"type"in e?ux(e):uC(e);function ux(e){switch(e.type){case"block-scalar":{let A="";for(let t of e.props)A+=ux(t);return A+e.source}case"block-map":case"block-seq":{let A="";for(let t of e.items)A+=uC(t);return A}case"flow-collection":{let A=e.start.source;for(let t of e.items)A+=uC(t);for(let t of e.end)A+=t.source;return A}case"document":{let A=uC(e);if(e.end)for(let t of e.end)A+=t.source;return A}default:{let A=e.source;if("end"in e&&e.end)for(let t of e.end)A+=t.source;return A}}}function uC({start:e,key:A,sep:t,value:n}){let r="";for(let A of e)r+=A.source;if(A&&(r+=ux(A)),t)for(let e of t)r+=e.source;return n&&(r+=ux(n)),r}let ub=Symbol("break visit"),uv=Symbol("skip children"),uQ=Symbol("remove item");function uF(e,A){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(A,t,n){let r=n(t,A);if("symbol"==typeof r)return r;for(let i of["key","value"]){let o=t[i];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){let r=e(Object.freeze(A.concat([[i,t]])),o.items[t],n);if("number"==typeof r)t=r-1;else{if(r===ub)return ub;r===uQ&&(o.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,A))}}return"function"==typeof r?r(t,A):r}(Object.freeze([]),e,A)}uF.BREAK=ub,uF.SKIP=uv,uF.REMOVE=uQ,uF.itemAtPath=(e,A)=>{let t=e;for(let[e,n]of A){let A=t?.[e];if(!A||!("items"in A))return;t=A.items[n]}return t},uF.parentCollection=(e,A)=>{let t=uF.itemAtPath(e,A.slice(0,-1)),n=A[A.length-1][0],r=t?.[n];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let uU=e=>!!e&&"items"in e,uE=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function uI(e){switch(e){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(e)}}function uS(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}e.s(["BOM",()=>"\uFEFF","DOCUMENT",()=>"\x02","FLOW_END",()=>"\x18","SCALAR",()=>"\x1f","isCollection",()=>uU,"isScalar",()=>uE,"prettyToken",()=>uI,"tokenType",()=>uS],19707),e.i(19707),e.s(["BOM",()=>"\uFEFF","DOCUMENT",()=>"\x02","FLOW_END",()=>"\x18","SCALAR",()=>"\x1f","createScalarToken",()=>up,"isCollection",()=>uU,"isScalar",()=>uE,"prettyToken",()=>uI,"resolveAsScalar",()=>ug,"setScalarValue",()=>uB,"stringify",()=>uy,"tokenType",()=>uS,"visit",()=>uF],39511);var uk=e.i(39511);function uj(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let uH=new Set("0123456789ABCDEFabcdef"),uD=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),uL=new Set(",[]{}"),uR=new Set(" ,[]{}\n\r "),uT=e=>!e||uR.has(e);class uM{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,A=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!A;let t=this.next??"stream";for(;t&&(A||this.hasChars(1));)t=yield*this.parseNext(t)}atLineEnd(){let e=this.pos,A=this.buffer[e];for(;" "===A||" "===A;)A=this.buffer[++e];return!A||"#"===A||"\n"===A||"\r"===A&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let A=this.buffer[e];if(this.indentNext>0){let t=0;for(;" "===A;)A=this.buffer[++t+e];if("\r"===A){let A=this.buffer[t+e+1];if("\n"===A||!A&&!this.atEnd)return e+t+1}return"\n"!==A&&!(t>=this.indentNext)&&(A||this.atEnd)?-1:e+t}if("-"===A||"."===A){let A=this.buffer.substr(e,3);if(("---"===A||"..."===A)&&uj(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let A=e.length,t=e.indexOf("#");for(;-1!==t;){let n=e[t-1];if(" "===n||" "===n){A=t-1;break}t=e.indexOf("#",t+1)}for(;;){let t=e[A-1];if(" "===t||" "===t)A-=1;else break}let n=(yield*this.pushCount(A))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let A=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-A),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&uj(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!uj(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,A]=this.peek(2);if(!A&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&uj(A)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let A=yield*this.pushIndicators();switch(e[A]){case"#":yield*this.pushCount(e.length-A);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(uT),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return A+=yield*this.parseBlockScalarHeader(),A+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-A),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,A,t=-1;do(e=yield*this.pushNewline())>0?(A=yield*this.pushSpaces(!1),this.indentValue=t=A):A=0,A+=yield*this.pushSpaces(!0);while(e+A>0)let n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==t&&t<this.indentNext&&"#"!==n[0]||0===t&&(n.startsWith("---")||n.startsWith("..."))&&uj(n[3]))&&(t!==this.indentNext-1||1!==this.flowLevel||"]"!==n[0]&&"}"!==n[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let r=0;for(;","===n[r];)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(uT),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||uj(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),A=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==A&&"'"===this.buffer[A+1];)A=this.buffer.indexOf("'",A+2);else for(;-1!==A;){let e=0;for(;"\\"===this.buffer[A-1-e];)e+=1;if(e%2==0)break;A=this.buffer.indexOf('"',A+1)}let t=this.buffer.substring(0,A),n=t.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){let e=this.continueScalar(n+1);if(-1===e)break;n=t.indexOf("\n",e)}-1!==n&&(A=n-("\r"===t[n-1]?2:1))}if(-1===A){if(!this.atEnd)return this.setNext("quoted-scalar");A=this.buffer.length}return yield*this.pushToIndex(A+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let A=this.buffer[++e];if("+"===A)this.blockScalarKeep=!0;else if(A>"0"&&A<="9")this.blockScalarIndent=Number(A)-1;else if("-"!==A)break}return yield*this.pushUntil(e=>uj(e)||"#"===e)}*parseBlockScalar(){let e,A=this.pos-1,t=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":t+=1;break;case"\n":A=n,t=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=t:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(A+1);if(-1===e)break;A=this.buffer.indexOf("\n",e)}while(-1!==A)if(-1===A){if(!this.atEnd)return this.setNext("block-scalar");A=this.buffer.length}}let n=A+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];A=n-1}else if(!this.blockScalarKeep)for(;;){let e=A-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let r=e;for(;" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+t>r)A=e;else break}return yield"\x1f",yield*this.pushToIndex(A+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,A=this.flowLevel>0,t=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(uj(e)||A&&uL.has(e))break;t=n}else if(uj(e)){let r=this.buffer[n+1];if("\r"===e&&("\n"===r?(n+=1,e="\n",r=this.buffer[n+1]):t=n),"#"===r||A&&uL.has(r))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(A&&uL.has(e))break;t=n}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(t+1,!0),A?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,A){let t=this.buffer.slice(this.pos,e);return t?(yield t,this.pos+=t.length,t.length):(A&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(uT))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,A=this.charAt(1);if(uj(A)||e&&uL.has(A))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,A=this.buffer[e];for(;!uj(A)&&">"!==A;)A=this.buffer[++e];return yield*this.pushToIndex(">"===A?e+1:e,!1)}{let e=this.pos+1,A=this.buffer[e];for(;A;)if(uD.has(A))A=this.buffer[++e];else if("%"===A&&uH.has(this.buffer[e+1])&&uH.has(this.buffer[e+2]))A=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let A,t=this.pos-1;do A=this.buffer[++t];while(" "===A||e&&" "===A)let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let A=this.pos,t=this.buffer[A];for(;!e(t);)t=this.buffer[++A];return yield*this.pushToIndex(A,!1)}}class uO{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let A=0,t=this.lineStarts.length;for(;A<t;){let n=A+t>>1;this.lineStarts[n]<e?A=n+1:t=n}if(this.lineStarts[A]===e)return{line:A+1,col:1};if(0===A)return{line:0,col:e};let n=this.lineStarts[A-1];return{line:A,col:e-n+1}}}}function uN(e,A){for(let t=0;t<e.length;++t)if(e[t].type===A)return!0;return!1}function uP(e){for(let A=0;A<e.length;++A)switch(e[A].type){case"space":case"comment":case"newline":break;default:return A}return -1}function u_(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function uK(e){switch(e.type){case"document":return e.start;case"block-map":{let A=e.items[e.items.length-1];return A.sep??A.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function uV(e){if(0===e.length)return[];let A=e.length;e:for(;--A>=0;)switch(e[A].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++A]?.type==="space";);return e.splice(A,e.length)}function uG(e){if("flow-seq-start"===e.start.type)for(let A of e.items)!A.sep||A.value||uN(A.start,"explicit-key-ind")||uN(A.sep,"map-value-ind")||(A.key&&(A.value=A.key),delete A.key,u_(A.value)?A.value.end?Array.prototype.push.apply(A.value.end,A.sep):A.value.end=A.sep:Array.prototype.push.apply(A.start,A.sep),delete A.sep)}class uz{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new uM,this.onNewLine=e}*parse(e,A=!1){for(let t of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,A)))yield*this.next(t);A||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let A=uS(e);if(A)if("scalar"===A)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=A,yield*this.step(),A){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let A=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:A,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let A=e??this.stack.pop();if(A)if(0===this.stack.length)yield A;else{let e=this.peek(1);switch("block-scalar"===A.type?A.indent="indent"in e?e.indent:0:"flow-collection"===A.type&&"document"===e.type&&(A.indent=0),"flow-collection"===A.type&&uG(A),e.type){case"document":e.value=A;break;case"block-scalar":e.props.push(A);break;case"block-map":{let t=e.items[e.items.length-1];if(t.value){e.items.push({start:[],key:A,sep:[]}),this.onKeyLine=!0;return}if(t.sep)t.value=A;else{Object.assign(t,{key:A,sep:[]}),this.onKeyLine=!t.explicitKey;return}break}case"block-seq":{let t=e.items[e.items.length-1];t.value?e.items.push({start:[],value:A}):t.value=A;break}case"flow-collection":{let t=e.items[e.items.length-1];!t||t.value?e.items.push({start:[],key:A,sep:[]}):t.sep?t.value=A:Object.assign(t,{key:A,sep:[]});return}default:yield*this.pop(),yield*this.pop(A)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===A.type||"block-seq"===A.type)){let t=A.items[A.items.length-1];t&&!t.sep&&!t.value&&t.start.length>0&&-1===uP(t.start)&&(0===A.indent||t.start.every(e=>"comment"!==e.type||e.indent<A.indent))&&("document"===e.type?e.end=t.start:e.items.push({start:t.start}),A.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==uP(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let A=this.startBlockValue(e);A?this.stack.push(A):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let A,t=uV(uK(this.peek(2)));e.end?((A=e.end).push(this.sourceToken),delete e.end):A=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:A}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let A=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,A.value){let t="end"in A.value?A.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;n?.type==="comment"?t?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"space":case"comment":if(A.value)e.items.push({start:[this.sourceToken]});else if(A.sep)A.sep.push(this.sourceToken);else{if(this.atIndentedComment(A.start,e.indent)){let t=e.items[e.items.length-2],n=t?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,A.start),n.push(this.sourceToken),e.items.pop();return}}A.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let t=!this.onKeyLine&&this.indent===e.indent,n=t&&(A.sep||A.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(n&&A.sep&&!A.value){let t=[];for(let n=0;n<A.sep.length;++n){let r=A.sep[n];switch(r.type){case"newline":t.push(n);break;case"space":break;case"comment":r.indent>e.indent&&(t.length=0);break;default:t.length=0}}t.length>=2&&(r=A.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":n||A.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"explicit-key-ind":A.sep||A.explicitKey?n||A.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(A.start.push(this.sourceToken),A.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(A.explicitKey)if(A.sep)if(A.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(uN(A.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(u_(A.key)&&!uN(A.sep,"newline")){let e=uV(A.start),t=A.key,n=A.sep;n.push(this.sourceToken),delete A.key,delete A.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:n}]})}else r.length>0?A.sep=A.sep.concat(r,this.sourceToken):A.sep.push(this.sourceToken);else if(uN(A.start,"newline"))Object.assign(A,{key:null,sep:[this.sourceToken]});else{let e=uV(A.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else A.sep?A.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):uN(A.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):A.sep.push(this.sourceToken):Object.assign(A,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let t=this.flowScalar(this.type);n||A.value?(e.items.push({start:r,key:t,sep:[]}),this.onKeyLine=!0):A.sep?this.stack.push(t):(Object.assign(A,{key:t,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!A.explicitKey&&A.sep&&!uN(A.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else t&&e.items.push({start:r});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let A=e.items[e.items.length-1];switch(this.type){case"newline":if(A.value){let t="end"in A.value?A.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;n?.type==="comment"?t?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else A.start.push(this.sourceToken);return;case"space":case"comment":if(A.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(A.start,e.indent)){let t=e.items[e.items.length-2],n=t?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,A.start),n.push(this.sourceToken),e.items.pop();return}}A.start.push(this.sourceToken)}return;case"anchor":case"tag":if(A.value||this.indent<=e.indent)break;A.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;A.value||uN(A.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):A.start.push(this.sourceToken);return}if(this.indent>e.indent){let A=this.startBlockValue(e);if(A)return void this.stack.push(A)}yield*this.pop(),yield*this.step()}*flowCollection(e){let A=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!A||A.sep?e.items.push({start:[this.sourceToken]}):A.start.push(this.sourceToken);return;case"map-value-ind":!A||A.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):A.sep?A.sep.push(this.sourceToken):Object.assign(A,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!A||A.value?e.items.push({start:[this.sourceToken]}):A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let t=this.flowScalar(this.type);!A||A.value?e.items.push({start:[],key:t,sep:[]}):A.sep?this.stack.push(t):Object.assign(A,{key:t,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):(yield*this.pop(),yield*this.step())}else{let A=this.peek(2);if("block-map"!==A.type||("map-value-ind"!==this.type||A.indent!==e.indent)&&("newline"!==this.type||A.items[A.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==A.type){let t=uV(uK(A));uG(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let A=uV(uK(e));return A.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let A=uV(uK(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,A){return"comment"===this.type&&!(this.indent<=A)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function uW(e){let A=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||A&&new uO||null,prettyErrors:A}}function u$(e,A={}){let{lineCounter:t,prettyErrors:n}=uW(A),r=new uz(t?.addNewLine),i=new uf(A),o=Array.from(i.compose(r.parse(e)));if(n&&t)for(let A of o)A.errors.forEach(c3(e,t)),A.warnings.forEach(c3(e,t));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function uX(e,A={}){let{lineCounter:t,prettyErrors:n}=uW(A),r=new uz(t?.addNewLine),i=new uf(A),o=null;for(let A of i.compose(r.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new c2(A.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=A;return n&&t&&(o.errors.forEach(c3(e,t)),o.warnings.forEach(c3(e,t))),o}function uY(e,A,t){let n;"function"==typeof A?n=A:void 0===t&&A&&"object"==typeof A&&(t=A);let r=uX(e,t);if(!r)return null;if(r.warnings.forEach(e=>l5(r.options.logLevel,e)),r.errors.length>0)if("silent"!==r.options.logLevel)throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:n},t))}function uJ(e,A,t){let n=null;if("function"==typeof A||Array.isArray(A)?n=A:void 0===t&&A&&(t=A),"string"==typeof t&&(t=t.length),"number"==typeof t){let e=Math.round(t);t=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=t??A??{};if(!e)return}return ll(e)&&!n?e.toString(t):new cZ(e,n,t).toString(t)}e.s([],11706),e.i(11706),e.s(["Alias",()=>lR,"CST",0,uk,"Composer",()=>uf,"Document",()=>cZ,"Lexer",()=>uM,"LineCounter",()=>uO,"Pair",()=>cA,"Parser",()=>uz,"Scalar",()=>lM,"Schema",()=>cq,"YAMLError",()=>c1,"YAMLMap",()=>ci,"YAMLParseError",()=>c2,"YAMLSeq",()=>cs,"YAMLWarning",()=>c4,"isAlias",()=>la,"isCollection",()=>lf,"isDocument",()=>ll,"isMap",()=>lc,"isNode",()=>lg,"isPair",()=>lu,"isScalar",()=>ld,"isSeq",()=>lh,"parse",()=>uY,"parseAllDocuments",()=>u$,"parseDocument",()=>uX,"stringify",()=>uJ,"visit",()=>ly,"visitAsync",()=>lC],76947);var uq=e.i(76947),uZ=e.i(96045);let u0=(r=0,()=>(r+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${r}`));function u1(e){let A=[];for(let t=0,n=e.length;t<n;t++)A.push(e[t]);return A}let u2=null;function u4(e={}){return u2||(u2=e.includeStyleProperties?e.includeStyleProperties:u1(window.getComputedStyle(document.documentElement)))}function u3(e,A){let t=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(A);return t?parseFloat(t.replace("px","")):0}function u5(e,A={}){let t,n,r,i;return{width:A.width||(t=u3(e,"border-left-width"),n=u3(e,"border-right-width"),e.clientWidth+t+n),height:A.height||(r=u3(e,"border-top-width"),i=u3(e,"border-bottom-width"),e.clientHeight+r+i)}}function u6(e){return new Promise((A,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>A(n))})},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function u8(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function u7(e,A,t){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${A}`),r.setAttribute("height",`${t}`),r.setAttribute("viewBox",`0 0 ${A} ${t}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),u8(r)}let u9=(e,A)=>{if(e instanceof A)return!0;let t=Object.getPrototypeOf(e);return null!==t&&(t.constructor.name===A.name||u9(t,A))};function de(e,A,t,n){let r,i,o,s=window.getComputedStyle(e,t),a=s.getPropertyValue("content");if(""===a||"none"===a)return;let l=u0();try{A.className=`${A.className} ${l}`}catch(e){return}let c=document.createElement("style");c.appendChild((r=`.${l}:${t}`,o=s.cssText?(i=s.getPropertyValue("content"),`${s.cssText} content: '${i.replace(/'|"/g,"")}';`):u4(n).map(e=>{let A=s.getPropertyValue(e),t=s.getPropertyPriority(e);return`${e}: ${A}${t?" !important":""};`}).join(" "),document.createTextNode(`${r}{${o}}`))),A.appendChild(c)}let dA="application/font-woff",dt="image/jpeg",dn={woff:dA,woff2:dA,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:dt,jpeg:dt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function dr(e){let A;return dn[((A=/\.([^./]*?)$/g.exec(e))?A[1]:"").toLowerCase()]||""}function di(e){return -1!==e.search(/^(data:)/)}function ds(e,A){return`data:${A};base64,${e}`}async function da(e,A,t){let n=await fetch(e,A);if(404===n.status)throw Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((e,A)=>{let i=new FileReader;i.onerror=A,i.onloadend=()=>{try{e(t({res:n,result:i.result}))}catch(e){A(e)}},i.readAsDataURL(r)})}let dl={};async function dc(e,A,t){var n,r,i;let o,s,a=(n=e,r=A,i=t.includeQueryParams,s=n.replace(/\?.*/,""),i&&(s=n),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),r?`[${r}]${s}`:s);if(null!=dl[a])return dl[a];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let n=await da(e,t.fetchRequestInit,({res:e,result:t})=>(A||(A=e.headers.get("Content-Type")||""),t.split(/,/)[1]));o=ds(n,A)}catch(n){o=t.imagePlaceholder||"";let A=`Failed to fetch resource: ${e}`;n&&(A="string"==typeof n?n:n.message),A&&console.warn(A)}return dl[a]=o,o}async function du(e){let A=e.toDataURL();return"data:,"===A?e.cloneNode(!1):u6(A)}async function dd(e,A){if(e.currentSrc){let A=document.createElement("canvas"),t=A.getContext("2d");return A.width=e.clientWidth,A.height=e.clientHeight,null==t||t.drawImage(e,0,0,A.width,A.height),u6(A.toDataURL())}let t=e.poster,n=dr(t);return u6(await dc(t,n,A))}async function dh(e,A){var t;try{if(null==(t=null==e?void 0:e.contentDocument)?void 0:t.body)return await dm(e.contentDocument.body,A,!0)}catch(e){}return e.cloneNode(!1)}async function df(e,A){return u9(e,HTMLCanvasElement)?du(e):u9(e,HTMLVideoElement)?dd(e,A):u9(e,HTMLIFrameElement)?dh(e,A):e.cloneNode(dg(e))}let dg=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();async function dp(e,A,t){var n,r;if(dg(A))return A;let i=[];return 0===(i=null!=e.tagName&&"SLOT"===e.tagName.toUpperCase()&&e.assignedNodes?u1(e.assignedNodes()):u9(e,HTMLIFrameElement)&&(null==(n=e.contentDocument)?void 0:n.body)?u1(e.contentDocument.body.childNodes):u1((null!=(r=e.shadowRoot)?r:e).childNodes)).length||u9(e,HTMLVideoElement)||await i.reduce((e,n)=>e.then(()=>dm(n,t)).then(e=>{e&&A.appendChild(e)}),Promise.resolve()),A}async function dB(e,A){let t=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===t.length)return e;let n={};for(let r=0;r<t.length;r++){let i=t[r].getAttribute("xlink:href");if(i){let t=e.querySelector(i),r=document.querySelector(i);t||!r||n[i]||(n[i]=await dm(r,A,!0))}}let r=Object.values(n);if(r.length){let A="http://www.w3.org/1999/xhtml",t=document.createElementNS(A,"svg");t.setAttribute("xmlns",A),t.style.position="absolute",t.style.width="0",t.style.height="0",t.style.overflow="hidden",t.style.display="none";let n=document.createElementNS(A,"defs");t.appendChild(n);for(let e=0;e<r.length;e++)n.appendChild(r[e]);e.appendChild(t)}return e}async function dm(e,A,t){return t||!A.filter||A.filter(e)?Promise.resolve(e).then(e=>df(e,A)).then(t=>dp(e,t,A)).then(t=>(function(e,A,t){if(u9(A,Element)&&(!function(e,A,t){let n=A.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):u4(t).forEach(t=>{let i=r.getPropertyValue(t);if("font-size"===t&&i.endsWith("px")){let e=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${e}px`}u9(e,HTMLIFrameElement)&&"display"===t&&"inline"===i&&(i="block"),"d"===t&&A.getAttribute("d")&&(i=`path(${A.getAttribute("d")})`),n.setProperty(t,i,r.getPropertyPriority(t))})}(e,A,t),de(e,A,":before",t),de(e,A,":after",t),u9(e,HTMLTextAreaElement)&&(A.innerHTML=e.value),u9(e,HTMLInputElement)&&A.setAttribute("value",e.value),u9(e,HTMLSelectElement))){let t=Array.from(A.children).find(A=>e.value===A.getAttribute("value"));t&&t.setAttribute("selected","")}return A})(e,t,A)).then(e=>dB(e,A)):null}let dw=/url\((['"]?)([^'"]+?)\1\)/g,dy=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,dx=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function dC(e,A,t,n,r){try{let i,o,s=t?function(e,A){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),r=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(r),A&&(n.href=A),r.href=e,r.href}(A,t):A,a=dr(A);if(r){let e=await r(s);i=ds(e,a)}else i=await dc(s,a,n);return e.replace((o=A.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1"),RegExp(`(url\\(['"]?)(${o})(['"]?\\))`,"g")),`$1${i}$3`)}catch(e){}return e}function db(e){return -1!==e.search(dw)}async function dv(e,A,t){let n;if(!db(e))return e;let r=function(e,{preferredFontFormat:A}){return A?e.replace(dx,e=>{for(;;){let[t,,n]=dy.exec(e)||[];if(!n)return"";if(n===A)return`src: ${t};`}}):e}(e,t);return(n=[],r.replace(dw,(e,A,t)=>(n.push(t),e)),n.filter(e=>!di(e))).reduce((e,n)=>e.then(e=>dC(e,n,A,t)),Promise.resolve(r))}async function dQ(e,A,t){var n;let r=null==(n=A.style)?void 0:n.getPropertyValue(e);if(r){let n=await dv(r,null,t);return A.style.setProperty(e,n,A.style.getPropertyPriority(e)),!0}return!1}async function dF(e,A){await dQ("background",e,A)||await dQ("background-image",e,A),await dQ("mask",e,A)||await dQ("-webkit-mask",e,A)||await dQ("mask-image",e,A)||await dQ("-webkit-mask-image",e,A)}async function dU(e,A){let t=u9(e,HTMLImageElement);if(!(t&&!di(e.src))&&!(u9(e,SVGImageElement)&&!di(e.href.baseVal)))return;let n=t?e.src:e.href.baseVal,r=await dc(n,dr(n),A);await new Promise((n,i)=>{e.onload=n,e.onerror=A.onImageErrorHandler?(...e)=>{try{n(A.onImageErrorHandler(...e))}catch(e){i(e)}}:i,e.decode&&(e.decode=n),"lazy"===e.loading&&(e.loading="eager"),t?(e.srcset="",e.src=r):e.href.baseVal=r})}async function dE(e,A){let t=u1(e.childNodes).map(e=>dI(e,A));await Promise.all(t).then(()=>e)}async function dI(e,A){u9(e,Element)&&(await dF(e,A),await dU(e,A),await dE(e,A))}let dS={};async function dk(e){let A=dS[e];if(null!=A)return A;let t=await fetch(e);return A={url:e,cssText:await t.text()},dS[e]=A,A}async function dj(e,A){let t=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((t.match(/url\([^)]+\)/g)||[]).map(async r=>{let i=r.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),da(i,A.fetchRequestInit,({result:e})=>(t=t.replace(r,`url(${e})`),[r,e]))})).then(()=>t)}function dH(e){if(null==e)return[];let A=[],t=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=n.exec(t);if(null===e)break;A.push(e[0])}t=t.replace(n,"");let r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=r.exec(t);if(null===e){if(null===(e=i.exec(t)))break;r.lastIndex=i.lastIndex}else i.lastIndex=r.lastIndex;A.push(e[0])}return A}async function dD(e,A){let t=[],n=[];return e.forEach(t=>{if("cssRules"in t)try{u1(t.cssRules||[]).forEach((e,r)=>{if(e.type===CSSRule.IMPORT_RULE){let i=r+1,o=e.href,s=dk(o).then(e=>dj(e,A)).then(e=>dH(e).forEach(e=>{try{t.insertRule(e,e.startsWith("@import")?i+=1:t.cssRules.length)}catch(A){console.error("Error inserting rule from remote css",{rule:e,error:A})}})).catch(e=>{console.error("Error loading remote css",e.toString())});n.push(s)}})}catch(i){let r=e.find(e=>null==e.href)||document.styleSheets[0];null!=t.href&&n.push(dk(t.href).then(e=>dj(e,A)).then(e=>dH(e).forEach(e=>{r.insertRule(e,r.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",i)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{u1(e.cssRules||[]).forEach(e=>{t.push(e)})}catch(A){console.error(`Error while reading CSS rules from ${e.href}`,A)}}),t))}async function dL(e,A){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let t=u1(e.ownerDocument.styleSheets);return(await dD(t,A)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>db(e.style.getPropertyValue("src")))}function dR(e){return e.trim().replace(/["']/g,"")}async function dT(e,A){let t,n=await dL(e,A),r=(t=new Set,!function e(A){(A.style.fontFamily||getComputedStyle(A).fontFamily).split(",").forEach(e=>{t.add(dR(e))}),Array.from(A.children).forEach(A=>{A instanceof HTMLElement&&e(A)})}(e),t);return(await Promise.all(n.filter(e=>r.has(dR(e.style.fontFamily))).map(e=>{let t=e.parentStyleSheet?e.parentStyleSheet.href:null;return dv(e.cssText,t,A)}))).join("\n")}async function dM(e,A){let t=null!=A.fontEmbedCSS?A.fontEmbedCSS:A.skipFonts?null:await dT(e,A);if(t){let A=document.createElement("style"),n=document.createTextNode(t);A.appendChild(n),e.firstChild?e.insertBefore(A,e.firstChild):e.appendChild(A)}}async function dO(e,A={}){let{width:t,height:n}=u5(e,A),r=await dm(e,A,!0);return await dM(r,A),await dI(r,A),!function(e,A){let{style:t}=e;A.backgroundColor&&(t.backgroundColor=A.backgroundColor),A.width&&(t.width=`${A.width}px`),A.height&&(t.height=`${A.height}px`);let n=A.style;null!=n&&Object.keys(n).forEach(e=>{t[e]=n[e]})}(r,A),await u7(r,t,n)}async function dN(e,A={}){let{width:t,height:n}=u5(e,A),r=await dO(e,A),i=await u6(r),o=document.createElement("canvas"),s=o.getContext("2d"),a=A.pixelRatio||function(){let e,A;try{A=i9.default}catch(e){}let t=A&&A.env?A.env.devicePixelRatio:null;return t&&Number.isNaN(e=parseInt(t,10))&&(e=1),e||window.devicePixelRatio||1}(),l=A.canvasWidth||t,c=A.canvasHeight||n;return o.width=l*a,o.height=c*a,!A.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${l}`,o.style.height=`${c}`,A.backgroundColor&&(s.fillStyle=A.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(i,0,0,o.width,o.height),o}var dP=e.i(82114);let d_=e=>"element"in e?e.element:e,dK="ignore-screenshot";function dV({renderLibrary:e="html2canvas",imageType:A="png",backgroundColor:t=null,boardEffect:n=!0,shadowEffect:r=!1,borderStyle:i="solid 1px #ccc",borderRadius:o="10px",onSuccess:s,onError:a,ignoreElements:l}){let[c,u]=(0,p.useState)("idle"),d=(0,p.useRef)(null),{onOpen:h,setImgBlob:f,ImageDownloadModal:B}=function(){let{open:e,onOpen:A,onClose:t}=(0,Ak.useDisclosure)(),[n,r]=(0,p.useState)();return{onOpen:A,setImgBlob:r,ImageDownloadModal:function(){let[A,r]=(0,p.useState)();return(0,p.useEffect)(()=>{if(!n)return;let e=new FileReader;e.readAsDataURL(n),e.onloadend=e=>{e.target?.result!=null&&r(e.target.result)}},[r]),(0,g.jsx)(Aj.Dialog.Root,{size:"xl",open:e,onOpenChange:t,children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:"Screenshot Preview"})}),(0,g.jsxs)(Aj.Dialog.Body,{children:[(0,g.jsxs)(ev.Flex,{px:"10px",gap:"10px",direction:"column",children:[(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"5px",children:[(0,g.jsx)(aG.PiInfo,{color:"red.600"}),(0,g.jsx)(e6.Text,{fontWeight:"500",display:"inline",children:"Copy to the Clipboard"})," ","is not supported in the current browser"]}),(0,g.jsx)(e6.Text,{children:"Please download it directly"})]}),(0,g.jsx)(w,{src:A,alt:"screenshot"})]}),(0,g.jsxs)(Aj.Dialog.Footer,{children:[(0,g.jsx)(Ac.Button,{mr:3,onClick:t,children:"Close"}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:()=>{if(!n)return;let e=new Date,A=`recce-screenshot-${(0,rP.format)(e,"yyyy-MM-dd-HH-mm-ss")}.png`;(0,dP.default)(n,A),t()},children:"Download"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})}}}(),m=async()=>{if(!d.current)throw console.error("No node to use for screenshot"),Error("No node to use for screenshot");let A=d_(d.current),s=A.style.overflow,a=A.style.border,c=A.style.borderRadius,h=A.style.backgroundColor,f=A.style.height;try{A.style.overflow="hidden",A.style.border=n?i:"",A.style.borderRadius=n?o:"",A.style.backgroundColor=t??"",A.style.height=`${String(A.offsetHeight)}px`;let s=document.createElement("style");document.head.appendChild(s),s.sheet?.insertRule("body > div:last-child img { display: inline-block; }"),u("loading");let a="html2canvas"===e?await (0,uZ.default)(A,{logging:!1,backgroundColor:null,ignoreElements:l}):await dN(A,{filter:l?e=>!l(e):void 0});s.remove();let c=r?document.createElement("canvas"):a;if(r){c.width=a.width+80,c.height=a.height+80;let e=c.getContext("2d");if(e)e.shadowColor="rgba(0, 0, 0, 0.5)",e.shadowBlur=20,e.shadowOffsetX=10,e.shadowOffsetY=10,e.drawImage(a,40,40);else throw console.error("Error getting canvas context"),Error("Error getting canvas context to add shadow effect")}let d=await fetch(c.toDataURL());return await d.blob()}catch(e){throw console.error("Error converting to image",e),e}finally{A.style.overflow=s,A.style.border=a,A.style.borderRadius=c,A.style.backgroundColor=h,A.style.height=f}};return{status:c,isLoading:"loading"===c,isErrored:"error"===c,isSuccess:"success"===c,copyToClipboard:async()=>{try{await navigator.clipboard.write([new ClipboardItem({[`image/${A}`]:m()})]),u("success"),s&&s()}catch(e){"ClipboardItem is not defined"===e.message?(f(await m()),h(),u("success")):(u("error"),console.error("Error copying to clipboard",e),a&&a(e))}},ImageDownloadModal:B,ref:d}}function dG(e){let{successToast:A,failToast:t}=nP(),{isLoading:n,copyToClipboard:r,ImageDownloadModal:i,ref:o}=dV({imageType:"png",shadowEffect:!0,backgroundColor:e?.backgroundColor??null,onSuccess:()=>{A("Copied the query result as an image to clipboard")},onError:e=>{console.error("Error taking screenshot",e),t("Failed to copy image to clipboard",e)}}),s=(0,p.useCallback)(()=>{if(o.current){let e=d_(o.current);e.style.boxShadow="rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px",e.style.transition="box-shadow 0.5s ease-in-out"}},[o]),a=(0,p.useCallback)(()=>{o.current&&(d_(o.current).style.boxShadow="")},[o]),l=(0,p.useCallback)(async()=>{o.current?(await r(),d_(o.current).style.boxShadow=""):t("Failed to copy image to clipboard","No content to copy")},[o,r,t]);return{ref:o,CopyToClipboardButton:function({imageType:e="png",...A}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Ac.Button,{size:"sm",style:{position:"absolute",bottom:"16px",right:"16px"},loading:n,onMouseEnter:s,onMouseLeave:a,onClick:l,children:[(0,g.jsx)(aG.PiCopy,{})," Copy to Clipboard"]}),(0,g.jsx)(i,{})]})},onMouseEnter:s,onMouseLeave:a,onCopyToClipboard:l}}function dz(e){let A=new Date,t=new Date;return(t.setDate(A.getDate()-1),null==e)?null:A.toDateString()===e.toDateString()?"Today, "+(0,rP.format)(e,"HH:mm"):t.toDateString()===e.toDateString()?"Yesterday, "+(0,rP.format)(e,"HH:mm"):(0,rP.format)(e,"MMM d, HH:mm")}let dW=({run:e})=>{let A,t,n="running"===e.status,r=e.status;!r&&(e.result?r="finished":e.error&&(r="failed")),"finished"===r?(A="green",t="Finished"):"failed"===r?(A="red",t="Failed"):"cancelled"===r?(A="gray",t="Cancelled"):"running"===r?(A="blue",t="Running"):(A="green",t="Finished");let i=e.run_at?dz(new Date(e.run_at)):null;return(0,g.jsxs)(ev.Flex,{justifyContent:"start",fontSize:"11pt",color:"gray.500",gap:"3px",alignItems:"center",overflow:"hidden",children:[n&&(0,g.jsx)(te.Spinner,{size:"xs",color:`${A}.400`}),(0,g.jsx)(e6.Text,{fontWeight:500,color:`${A}.400`,children:t}),(0,g.jsx)(e6.Text,{children:"•"}),(0,g.jsx)(e6.Text,{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:i})]})},d$=e=>(0,g.jsxs)(ev.Flex,{flex:"1",minH:"48px",m:"4px",px:"16px",py:"12px",bg:"blue.50",border:"1px",borderRadius:"4px",borderColor:"blue.400",align:e.align??"center",gap:"12px",children:[(0,g.jsx)(eU.Icon,{as:aT,width:"20px",height:"20px",color:"blue.900"}),e.children,(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(AL.CloseButton,{onClick:e.onClose})]}),dX=()=>(0,g.jsxs)(eQ.Link,{href:"https://docs.datarecce.io/get-started/#prepare-dbt-artifacts",target:"_blank",color:"rgba(49, 130, 206, 1)",fontWeight:"bold",textDecoration:"underline",children:["Learn how ",(0,g.jsx)(ie.LuExternalLink,{})]});var dY=e.i(6033),dJ=e.i(60214);function dq(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)e[n]=t[n]}return e}var dZ=function e(A,t){function n(e,n,r){if("undefined"!=typeof document){"number"==typeof(r=dq({},t,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var o in r)r[o]&&(i+="; "+o,!0!==r[o]&&(i+="="+r[o].split(";")[0]));return document.cookie=e+"="+A.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},r=0;r<t.length;r++){var i=t[r].split("="),o=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=A.read(o,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,A){n(e,"",dq({},A,{expires:-1}))},withAttributes:function(A){return e(this.converter,dq({},this.attributes,A))},withConverter:function(A){return e(dq({},this.converter,A),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(A)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let d0={src:e.i(97585).default,width:104,height:105,blurWidth:0,blurHeight:0};async function d1(){return(await e7.axiosClient.post("/api/connect")).data}function d2({handleParentClose:e,parentOpen:A=!1,ignoreCookie:t=!1,variant:n="auth"}){let{authed:r}=(0,tt.useRecceInstanceContext)(),[i,o]=(0,p.useState)(A||!r),s=dZ.get("authState")??"pending",[a,l]=(0,p.useState)(t?"pending":s);if("ignored"===a&&!t||r)return null;let c={auth:{title:"Configure Cloud Token",action:"Get token and configure"},"enable-share":{title:"Enable Sharing with Cloud",action:"Enable sharing"},"user-profile":{title:"Configure Cloud Token",action:"Get token and configure"}}[n];return(0,g.jsx)(Aj.Dialog.Root,{size:"lg",placement:"center",lazyMount:!0,open:i,onOpenChange:A=>{o(A.open),e&&e(A.open)},children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{borderRadius:"2xl",children:["authenticating"!==a&&(0,g.jsx)(Aj.Dialog.Header,{className:"text-center",fontSize:"2xl",children:(0,g.jsx)(Aj.Dialog.Title,{children:c.title})}),"authenticating"!==a?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Aj.Dialog.Body,{className:"space-y-2 font-light",children:[(0,g.jsx)(e6.Text,{children:"To enable sharing, get your token from Recce Cloud and launch your local instance with it."}),(0,g.jsxs)("ul",{className:"list-inside list-disc",children:[(0,g.jsx)("li",{children:"Share your instance with teammates via Recce Cloud."}),(0,g.jsx)("li",{children:"Your instance will be securely and freely hosted for sharing."}),"auth"===n&&(0,g.jsx)("li",{children:"This step is recommended but optional."})]}),(0,g.jsxs)(e6.Text,{display:"flex",gap:1,children:["More directions",(0,g.jsxs)(eQ.Link,{variant:"underline",color:"blue.500",_focus:{outline:"none"},href:"https://cloud.datarecce.io/connect-to-cloud",target:"_blank",children:["here ",(0,g.jsx)(ie.LuExternalLink,{})]})]})]}),(0,g.jsx)(Aj.Dialog.Footer,{children:(0,g.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,g.jsxs)(Ac.Button,{className:"w-full !rounded-lg !font-medium",colorPalette:"brand",onClick:async()=>{l("authenticating");let{connection_url:e}=await d1();window.open(e,"_blank")},children:[c.action," ",(0,g.jsx)(ie.LuExternalLink,{})]}),(0,g.jsx)(Aj.Dialog.ActionTrigger,{asChild:!0,children:(0,g.jsx)(Ac.Button,{className:"!rounded-lg !font-medium",variant:"subtle",colorPalette:"gray",size:"sm",children:"auth"===n?"Skip":"Cancel"})}),"auth"===n&&(0,g.jsx)(Aj.Dialog.ActionTrigger,{asChild:!0,children:(0,g.jsx)(Ac.Button,{width:"100%",className:"!rounded-lg !font-medium !text-black",variant:"ghost",size:"sm",onClick:()=>{dZ.set("authState","ignored",{expires:30}),l("ignored")},children:"Snooze for 30 days"})})]})})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Aj.Dialog.Body,{className:"space-y-2 self-center font-light",children:(0,g.jsxs)(Al.VStack,{gap:4,paddingTop:"1rem",children:[(0,g.jsx)(w,{className:"mx-auto mb-2",h:"6rem",fit:"contain",src:d0.src}),(0,g.jsx)(e6.Text,{fontSize:"2xl",fontWeight:"medium",children:"Reload to Finish"}),(0,g.jsx)(e6.Text,{children:"Reload to complete connection to Recce Cloud"})]})}),(0,g.jsx)(Aj.Dialog.Footer,{children:(0,g.jsx)(Ac.Button,{className:"w-full",colorPalette:"brand",onClick:()=>{window.location.reload()},children:"Reload"})})]})]})})]})})}let d4=e=>{let A=uq.stringify(e,null,2);return(0,g.jsx)(rC,{className:"no-track-pii-safe",height:"100%",language:"yaml",theme:"vs",value:A,options:{extraEditorClassName:"no-track-pii-safe",readOnly:!0,fontSize:14,lineNumbers:"off",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"same",scrollBeyondLastLine:!1}})},d3=({runType:e})=>{let{open:A,onClose:t}=(0,Ak.useDisclosure)({defaultOpen:!0});if(!A)return(0,g.jsx)(g.Fragment,{});switch(e){case"row_count":return(0,g.jsx)(d$,{onClose:t,children:(0,g.jsxs)(e6.Text,{children:["Enable row count diffing, and other Recce features, by configuring a base dbt environment to compare against. ",(0,g.jsx)(dX,{})]})});case"profile":return(0,g.jsx)(d$,{onClose:t,children:(0,g.jsxs)(e6.Text,{children:["Enable data-profile diffing, and other Recce features, by configuring a base dbt environment to compare against. ",(0,g.jsx)(dX,{})]})});default:return(0,g.jsx)(g.Fragment,{})}},d5=({disableCopyToClipboard:e,onCopyToClipboard:A,onMouseEnter:t,onMouseLeave:n})=>{let{authed:r}=(0,tt.useRecceInstanceContext)(),{handleShareClick:i}=(0,dJ.useRecceShareStateContext)(),[o,s]=(0,p.useState)(!1);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{size:"xs",variant:"outline",colorPalette:"gray",children:["Share ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{minW:"0",children:[(0,g.jsxs)(Aw.Menu.Item,{value:"copy-to-clipboard",onClick:A,onMouseEnter:t,onMouseLeave:n,disabled:e,children:[(0,g.jsx)(aG.PiCopy,{})," Copy to Clipboard"]}),(0,g.jsx)(Aw.Menu.Separator,{}),r?(0,g.jsxs)(Aw.Menu.Item,{value:"share-to-cloud",onClick:async()=>{await i(),(0,Ae.trackShareState)({name:"create"})},children:[(0,g.jsx)(dY.TbCloudUpload,{})," Share to Cloud"]}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(Aw.Menu.Item,{value:"share",onClick:()=>{s(!0)},children:[(0,g.jsx)(dY.TbCloudUpload,{})," Share"]})})]})})})]}),o&&(0,g.jsx)(d2,{parentOpen:o,handleParentClose:s,ignoreCookie:!0,variant:"enable-share"})]})},d6=({runId:e,onClose:A,isSingleEnvironment:t})=>{let n,{featureToggles:r}=(0,tt.useRecceInstanceContext)(),{runAction:i}=(0,A9.useRecceActionContext)(),{error:o,run:s,onCancel:a,isRunning:l}=le(e),[c,u]=(0,p.useState)(),[d,h]=(0,p.useState)("result");s&&(0,nm.runTypeHasRef)(s.type)&&(n=(0,nm.findByRunType)(s.type).RunResultView);let f=(0,p.useCallback)(()=>{s&&i(s.type,s.params)},[s,i]),B=s?.type==="query"||s?.type==="query_diff"||s?.type==="query_base",{ref:m,onCopyToClipboard:w,onMouseEnter:y,onMouseLeave:x}=dG(),C=!e||!s?.result||!!o||"result"!==d;return(0,g.jsxs)(ev.Flex,{direction:"column",children:[t&&(0,g.jsx)(d3,{runType:s?.type}),(0,g.jsx)(em.Root,{size:"lg",colorPalette:"iochmara",value:d,onValueChange:e=>{h(e.value)},flexDirection:"column",mb:"1px",children:(0,g.jsxs)(em.List,{children:[(0,g.jsx)(em.Trigger,{value:"result",children:"Result"}),(0,g.jsx)(em.Trigger,{value:"params",children:"Params"}),B&&(0,g.jsx)(em.Trigger,{value:"query",children:"Query"}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsxs)(e5.HStack,{overflow:"hidden",children:[s&&(0,g.jsx)(dW,{run:s}),(0,g.jsxs)(Ac.Button,{variant:"outline",colorPalette:"gray",disabled:!e||l||r.disableDatabaseQuery,size:"xs",onClick:f,children:[(0,g.jsx)(aG.PiRepeat,{})," Rerun"]}),r.disableShare?(0,g.jsxs)(Ac.Button,{variant:"outline",disabled:!e||!s?.result||!!o||"result"!==d,onMouseEnter:y,onMouseLeave:x,size:"sm",onClick:w,children:[(0,g.jsx)(aG.PiCopy,{})," Copy to Clipboard"]}):(0,g.jsx)(d5,{disableCopyToClipboard:C,onCopyToClipboard:async()=>{await w(),(0,Ae.trackCopyToClipboard)({type:s?.type??"unknown",from:"run"})},onMouseEnter:y,onMouseLeave:x}),(0,g.jsx)(d7,{runId:e,viewOptions:c}),(0,g.jsx)(AL.CloseButton,{size:"sm",onClick:()=>{A&&A()}})]})]})}),"result"===d&&(0,g.jsx)(i5,{ref:m,error:o,run:s,onCancel:a,viewOptions:c,onViewOptionsChanged:u,RunResultView:n}),"params"===d&&s&&(0,g.jsx)(d4,{type:s.type,params:s.params}),"query"===d&&s&&s.params&&((0,aZ.isQueryRun)(s)||(0,aZ.isQueryBaseRun)(s)||(0,aZ.isQueryDiffRun)(s))&&((0,aZ.isQueryDiffRun)(s)?(0,g.jsx)(ia,{value:s.params.sql_template,baseValue:s.params.base_sql_template,options:{readOnly:!0}}):(0,g.jsx)(is,{value:s.params.sql_template,options:{readOnly:!0}}))]})},d8=({onClose:e,isSingleEnvironment:A})=>{let{runId:t}=(0,A9.useRecceActionContext)();return(0,g.jsx)(d6,{runId:t,onClose:e,isSingleEnvironment:A})};function d7({runId:e,viewOptions:A}){let{featureToggles:t}=(0,tt.useRecceInstanceContext)(),{error:n,run:r}=le(e),i=(0,A5.useQueryClient)(),[,o]=(0,nx.useLocation)(),s=r?.check_id,a=(0,p.useCallback)(()=>{s&&o(`/checks/${s}`)},[s,o]),l=(0,p.useCallback)(async()=>{if(!e)return;let t=await AA(e,A);await i.invalidateQueries({queryKey:e9.cacheKeys.checks()}),o(`/checks/${t.check_id}`)},[e,o,i,A]);return t.disableUpdateChecklist?(0,g.jsx)(g.Fragment,{}):r?.check_id?(0,g.jsxs)(Ac.Button,{disabled:!e||!r.result||!!n,size:"sm",colorPalette:"iochmara",onClick:a,children:[(0,g.jsx)(aG.PiCheck,{})," Go to Check"]}):(0,g.jsxs)(Ac.Button,{disabled:!e||!r?.result||!!n,size:"xs",colorPalette:"iochmara",onClick:l,children:[(0,g.jsx)(aG.PiCheck,{})," Add to Checklist"]})}async function d9(e,A){return await (0,il.submitRun)("query",e,A)}async function he(e,A){return await (0,il.submitRun)("query_base",e,A)}async function hA(e,A){return await (0,il.submitRun)("query_diff",e,A)}var ht=e.i(30852),hn=e.i(90819);let hr=(0,p.forwardRef)(function({unstyled:e,...A},t){let n=(0,hn.useRecipe)({key:"inputAddon",recipe:A.recipe}),[r,i]=n.splitVariantProps(A),o=e?ht.EMPTY_SLOT_STYLES:n(r);return(0,g.jsx)(B.chakra.div,{ref:t,...i,css:[o,A.css]})}),hi=(0,B.chakra)("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}});var ho=e.i(94307);let hs=(0,p.forwardRef)(function(e,A){let{startElement:t,startElementProps:n,endElement:r,endElementProps:i,startAddon:o,startAddonProps:s,endAddon:a,endAddonProps:l,children:c,startOffset:u="0px",endOffset:d="0px",...h}=e,f=p.Children.only(c),B=!!(o||a);return(0,g.jsxs)(ho.Group,{width:"full",ref:A,attached:B,skip:e=>e.type===hi,...h,children:[o&&(0,g.jsx)(hr,{...s,children:o}),t&&(0,g.jsx)(hi,{pointerEvents:"none",...n,children:t}),(0,p.cloneElement)(f,{...t&&{ps:`calc(var(--input-height) - ${u})`},...r&&{pe:`calc(var(--input-height) - ${d})`},...c.props}),r&&(0,g.jsx)(hi,{placement:"end",...i,children:r}),a&&(0,g.jsx)(hr,{...l,children:a})]})});var AS=AS,ha=e.i(13683);let hl=(0,p.forwardRef)(function(e,A){let{gap:t="0.5rem",justify:n,direction:r,align:i,...o}=e;return(0,g.jsx)(B.chakra.div,{ref:A,display:"flex",flexWrap:"wrap",justifyContent:n,alignItems:i,flexDirection:r,gap:t,...o,className:(0,m.cx)("chakra-wrap",e.className)})});hl.displayName="Wrap";let hc=(0,ha.defineStyle)({display:"flex",alignItems:"flex-start"}),hu=(0,p.forwardRef)(function(e,A){return(0,g.jsx)(B.chakra.div,{ref:A,css:[hc,e.css],...e,className:(0,m.cx)("chakra-wrap__listitem",e.className)})});var hd=e.i(28337);let hh=e=>{let{defaultValues:A,suggestionList:t,onValuesChange:n,className:r}=e,[i,o]=(0,p.useState)(A??[]),[s,a]=(0,p.useState)(""),[l,c]=(0,p.useState)(!1),u=(0,p.useRef)(null),d=e=>{i.includes(e)||(a(""),o([...i,e]),n([...i,e]))},h=s.toLowerCase(),f=t?.filter(e=>""===h||e.toLowerCase().includes(h)).filter(e=>!i.includes(e))??[],B=i.length>0?(0,g.jsx)(Ac.Button,{size:"2xs",variant:"ghost",color:"#3182CE",fontSize:e.size,paddingTop:"0",me:-2,onClick:()=>{a(""),o([]),n([])},children:"Clear"}):void 0;return(0,g.jsx)(hs,{width:e.width,className:r,endElement:B,children:(0,g.jsxs)(Aw.Menu.Root,{size:"sm",lazyMount:!0,closeOnSelect:!1,onOpenChange:()=>u.current?.focus(),children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(Ac.Button,{width:"100%",size:"2xs",colorPalette:"gray",variant:"outline",justifyContent:"flex-start",children:i.length>1?`${i.length} ${e.unitName}s selected`:1===i.length?i[0]:""})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{zIndex:"popover",fontSize:e.size,width:e.width,className:"no-track-pii-safe",children:[(0,g.jsx)(Aw.Menu.ItemGroup,{children:(0,g.jsxs)(hl,{border:"1px solid #e2e8f0",borderRadius:"4px",width:"calc(100% - 8px)",marginX:"4px",padding:"4px",children:[i.map(A=>(0,g.jsx)(hu,{children:(0,g.jsxs)(AS.Root,{paddingX:"0.5rem",size:"sm"===e.size||"md"===e.size||"lg"===e.size?e.size:"md",children:[(0,g.jsx)(AS.Label,{children:A}),(0,g.jsx)(AS.EndElement,{children:(0,g.jsx)(AS.CloseTrigger,{onClick:()=>{o(i.filter(e=>e!==A)),n(i.filter(e=>e!==A))}})})]},A)},A)),(0,g.jsx)(hu,{width:"100%",children:(0,g.jsx)(AJ.Input,{ref:u,placeholder:"Filter or add custom keys",variant:"subtle",size:e.size,value:s,onChange:e=>{a(e.target.value),c(!0)},onKeyDown:e=>{let A=e.currentTarget.value.trim().replace(",","");switch(e.key){case",":case"Enter":d(A),a("");break;case"Backspace":""===e.currentTarget.value&&i.length>0&&(o(i.slice(0,-1)),n(i.slice(0,-1)))}},onBlur:()=>{u.current&&l&&u.current.focus()}})})]})}),(0,g.jsx)(Aw.Menu.Separator,{}),(0,g.jsxs)(Aw.Menu.ItemGroup,{children:[""!==s&&!t?.includes(s)&&(0,g.jsxs)(Aw.Menu.Item,{value:"custom-value-by-filter",onClick:()=>{d(s),c(!1)},children:["Add '",s,"' to the list"]},"custom-value-by-filter"),f.map((e,A)=>(0,g.jsx)(Aw.Menu.Item,{value:`option-${A}`,onClick:()=>{d(e)},children:e},hd.default.uniqueId(`option-${A}`))).slice(0,10),f.length>10&&(0,g.jsx)(to.Tooltip,{content:"Please use filter to find more items",positioning:{placement:"top"},children:(0,g.jsxs)(eb.Box,{px:"12px",color:"gray",fontSize:"8pt",children:["and ",f.length-10," more items..."]})})]})]})})})]})})};var hf=e.i(21613);let hg=({defaultPrimaryKeys:e,onPrimaryKeysChange:A,...t})=>{let{lineageGraph:n,isActionAvailable:r}=(0,A8.useLineageGraphContext)(),i=(0,p.useMemo)(()=>{if(!n)return[];let e=new Set;for(let A in n.nodes){let t=n.nodes[A],r=t.data.data.base?.columns,i=t.data.data.current?.columns;for(let A in r)e.add(A);for(let A in i)e.add(A)}return Array.from(e).sort()},[n]);return(0,g.jsx)(ev.Flex,{...t,children:(0,g.jsxs)(hf.Field.Root,{m:"0 0.5rem",gap:0,children:[(0,g.jsxs)(hf.Field.Label,{fontSize:"0.625rem",margin:0,children:["Diff with Primary Key(s) (suggested)"," ",(0,g.jsx)(to.Tooltip,{content:"Provide a primary key to perform query diff in data warehouse and only return changed rows.",positioning:{placement:"bottom-end"},children:(0,g.jsx)(aG.PiInfo,{color:"gray.600"})})]}),(0,g.jsx)(hh,{className:"no-track-pii-safe",unitName:"key",defaultValues:e,suggestionList:i,onValuesChange:A,size:"2xs",width:"240px",placeholder:"Select or type to add keys",disabled:!r("query_diff_with_primary_key")})]})})};function hp(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"},child:[]}]})(e)}function hB({description:e,onLike:A,onDislike:t,onClickLink:n,externalLink:r,externalLinkText:i}){return(0,g.jsxs)(ev.Flex,{gap:4,justifyContent:"center",alignContent:"center",alignItems:"center",children:[e,(0,g.jsx)(Am.IconButton,{"aria-label":"thumbs up",variant:"ghost",width:"32px",height:"32px",onClick:A,children:(0,g.jsx)(w,{src:"/imgs/feedback/thumbs-up.png",alt:"like"})}),(0,g.jsx)(Am.IconButton,{"aria-label":"thumbs down",variant:"ghost",width:"32px",height:"32px",onClick:t,children:(0,g.jsx)(w,{src:"/imgs/feedback/thumbs-down.png",alt:"dislike"})}),r&&i&&(0,g.jsxs)(eQ.Link,{href:r,target:"_blank",textDecoration:"underline",onClick:n,children:[i," ",(0,g.jsx)(ie.LuExternalLink,{})]})]})}let hm="recce-",hw={bypassSaveOverwrite:`${hm}-bypass-save-overwrite`,previewChangeFeedbackID:`${hm}-preview-change-feedback`,prepareEnvGuideID:`${hm}-prepare-env`};var hy=e.i(86568);function hx({current:e,primaryKeys:A,setPrimaryKeys:t,onRunResultOpen:n,runQuery:r,isPending:i}){return(0,g.jsxs)(ev.Flex,{justifyContent:"right",alignItems:"center",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",flex:"0 0 54px",children:[(0,g.jsxs)(eb.Box,{children:[(0,g.jsxs)(eE.Heading,{as:"h2",size:"md",display:"flex",alignItems:"center",gap:"5px",children:[(0,g.jsx)(eU.Icon,{as:hp,boxSize:"1.2em"}),"Sandbox"]}),(0,g.jsxs)(e6.Text,{fontSize:"xs",color:"gray.500",children:["Compare the run results based on the modified SQL code of model ",(0,g.jsx)("b",{children:e?.name})]})]}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(hg,{defaultPrimaryKeys:A,onPrimaryKeysChange:t}),(0,g.jsx)(to.Tooltip,{content:"Run diff to see the changes",children:(0,g.jsx)(Ac.Button,{size:"xs",marginTop:"16px",fontSize:"14px",onClick:()=>{n(),r()},colorPalette:"blue",loading:i,children:"Run Diff"})})]})}function hC({currentModelID:e,height:A="32px",flex:t="0 0 auto"}){let{lineageGraph:n,envInfo:r}=(0,A8.useLineageGraphContext)(),i="0 16px",o=i6(iA(r?.dbt?.current?.generated_at??""),{addSuffix:!0}),s="N/A";if(n?.nodes[e]){let A=n.nodes[e];A.data.data.current?.schema&&(s=A.data.data.current.schema)}return(0,g.jsxs)(ev.Flex,{gap:0,height:A,flex:t,fontSize:"14px",align:"center",margin:"0",backgroundColor:"#EDF2F880",children:[(0,g.jsx)(nK.Stack,{width:"50%",children:(0,g.jsxs)(e6.Text,{as:"b",margin:i,children:["ORIGINAL (Schema: ",s,", Last Updated: ",o,")"]})}),(0,g.jsx)(nK.Stack,{width:"50%",children:(0,g.jsx)(e6.Text,{as:"b",margin:i,children:"SANDBOX EDITOR"})})]})}function hb({current:e,onChange:A}){var t;let n,r=(t=e?.raw_code??"",n=(0,p.useRef)(null),(0,p.useEffect)(()=>{n.current&&t!==n.current.getValue()&&n.current.setValue(t)},[t]),{onMount(e){let t=e.getModifiedEditor();n.current=t,t.onDidChangeModelContent(()=>{A(t.getValue())})}});return(0,g.jsx)(eb.Box,{flex:1,overflowY:"auto",children:(0,g.jsx)(rw,{language:"sql",theme:"vs",original:e?.raw_code,modified:e?.raw_code,options:{readOnly:!1,fontSize:14,lineNumbers:"on",automaticLayout:!0,renderOverviewRuler:!1,minimap:{enabled:!0}},onMount:r.onMount})})}function hv({isOpen:e,onClose:A,current:t}){let{open:n,onClose:r,onOpen:i}=(0,Ak.useDisclosure)(),[o,s]=(0,p.useState)(t?.raw_code??""),[a,l]=(0,p.useState)(e),{showRunId:c,clearRunResult:u}=(0,A9.useRecceActionContext)(),{primaryKeys:d,setPrimaryKeys:h}=(0,a8.useRecceQueryContext)(),{data:f,isLoading:B}=(0,hy.useRecceServerFlag)(),{mutate:m,isPending:y}=A6({mutationFn:async()=>{let e={current_model:t?.name??"",primary_keys:d,sql_template:o},{run_id:A}=await hA(e,{nowait:!0});return c(A),await (0,il.waitRun)(A)},onSuccess(e){e.error?(0,Ae.trackPreviewChange)({action:"run",node:t?.name,status:"failure"}):((0,Ae.trackPreviewChange)({action:"run",node:t?.name,status:"success"}),setTimeout(()=>{x()},1e3),!B&&f?.single_env_onboarding&&setTimeout(()=>{b()},2e3))}}),{feedbackToast:x,closeToast:C}=function(e){let{feedbackId:A,description:t,onFeedbackSubmit:n,externalLink:r,externalLinkText:i}=e,[o,s]=(0,p.useState)(void 0);return{feedbackToast:function(e=!1){let a=localStorage.getItem(A);null!=o||("true"!==a||e)&&s(nN.toaster.create({id:A,duration:void 0,type:"success",description:(0,g.jsx)(e5.HStack,{children:(0,g.jsx)(hB,{description:t,onLike:()=>{n("like"),nN.toaster.dismiss(o),localStorage.setItem(A,"true")},onDislike:()=>{n("dislike"),nN.toaster.dismiss(o),localStorage.setItem(A,"true")},externalLink:r,externalLinkText:i,onClickLink:()=>{n("link")}})})}))},closeToast:()=>{nN.toaster.dismiss(o)}}}({feedbackId:hw.previewChangeFeedbackID,description:"Enjoy preview change?",onFeedbackSubmit:e=>{switch(e){case"like":(0,Ae.trackPreviewChangeFeedback)({feedback:"like",node:t?.name});break;case"dislike":(0,Ae.trackPreviewChangeFeedback)({feedback:"dislike",node:t?.name});break;case"link":(0,Ae.trackPreviewChangeFeedback)({feedback:"form",node:t?.name});break;default:console.log("Not support feedback type")}},externalLink:"https://docs.google.com/forms/d/e/1FAIpQLSd7Lei7Ijwo7MinWaI0K6rzZi_21gV1BKetmiNEX254kDziDA/viewform?usp=header",externalLinkText:"Give us feedback"}),{guideToast:b,closeGuideToast:v}=function(e){let[A,t]=(0,p.useState)(void 0),{guideId:n,description:r,externalLink:i,externalLinkText:o,onExternalLinkClick:s}=e;return{guideToast:function(){null==A&&t(nN.toaster.create({id:n,duration:3e3,type:"success",description:r,action:{label:o??"link",onClick:()=>{s&&s()}}}))},closeGuideToast:()=>{nN.toaster.dismiss(A)}}}({guideId:hw.prepareEnvGuideID,description:"Want to compare data changes with production data?",externalLink:"https://docs.datarecce.io/get-started/#prepare-dbt-artifacts",externalLinkText:"Learn how.",onExternalLinkClick:()=>{(0,Ae.trackSingleEnvironment)({action:"external_link",from:"preview_changes",node:t?.name})}});return e!==a&&(l(e),e&&s(t?.raw_code??"")),(0,g.jsx)(Aj.Dialog.Root,{open:e,size:"cover",onOpenChange:()=>{A(),r(),u(),C(),v(),(0,Ae.trackPreviewChange)({action:"close",node:t?.name})},children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{height:"100%",children:[(0,g.jsxs)(Aj.Dialog.Header,{height:"40px",bg:"rgb(77, 209, 176)",px:0,py:4,children:[(0,g.jsxs)(ev.Flex,{alignItems:"center",height:"100%",gap:"10px",children:[(0,g.jsx)(w,{boxSize:"20px",ml:"18px",src:"/logo/recce-logo-white.png",alt:"recce-logo-white"}),(0,g.jsx)(Aj.Dialog.Title,{as:"h1",fontFamily:'"Montserrat", sans-serif',fontSize:"lg",color:"white",children:"RECCE"}),(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",children:"Experiment"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]}),(0,g.jsx)(Aj.Dialog.Body,{p:0,children:(0,g.jsxs)(tW,{sizes:n?[50,50]:[100,0],minSize:100*!!n,gutterSize:5*!!n,style:{flex:"1",contain:"size",height:"100%"},children:[(0,g.jsxs)(ev.Flex,{direction:"column",height:"100%",m:0,p:0,children:[(0,g.jsx)(hx,{current:t,primaryKeys:d??[],setPrimaryKeys:h,onRunResultOpen:i,runQuery:m,isPending:y}),(0,g.jsx)(hC,{height:"32pxs",flex:"0 0 auto",currentModelID:t?.id??""}),(0,g.jsx)(hb,{current:t,onChange:s})]}),n?(0,g.jsx)(d8,{onClose:r,disableAddToChecklist:!0}):(0,g.jsx)(eb.Box,{})]})}),(0,g.jsx)(eb.Box,{position:"fixed",bottom:"4",right:"4",opacity:.5,children:(0,g.jsx)(to.Tooltip,{content:"Give us feedback",children:(0,g.jsx)(Am.IconButton,{"aria-label":"feedback",variant:"ghost",size:"md",onClick:()=>{x(!0)},children:(0,g.jsx)(AZ.VscFeedback,{})})})})]})})]})})}let hQ=({node:e})=>{let{open:A,onOpen:t,onClose:n}=(0,Ak.useDisclosure)(),[r,i]=(0,p.useState)(!1),{data:o,isLoading:s}=(0,hy.useRecceServerFlag)(),a=o?.single_env_onboarding;if(s)return(0,g.jsx)(g.Fragment,{});if("model"!==e.data.resourceType&&"snapshot"!==e.data.resourceType)return"Not available";let l={readOnly:!0,lineNumbers:"on",automaticLayout:!0,renderOverviewRuler:!1,wordWrap:"off",minimap:{enabled:!1}},c={readOnly:!0,lineNumbers:"on",automaticLayout:!0,wordWrap:"off",minimap:{enabled:!1}},u=e.data.data.base?.raw_code,d=e.data.data.current?.raw_code,h=e.data.data.base?.name??e.data.data.current?.name??"";return(0,g.jsxs)(eb.Box,{className:"no-track-pii-safe",style:{position:"relative"},height:"100%",onMouseEnter:()=>{i(!0)},onMouseLeave:()=>{i(!1)},children:[a?(0,g.jsx)(is,{language:"sql",theme:"light",value:u??"",options:c}):(0,g.jsx)(rw,{language:"sql",theme:"light",original:u,modified:d,keepCurrentOriginalModel:!0,keepCurrentModifiedModel:!0,options:{...l,renderSideBySide:!1}}),(0,g.jsx)(Am.IconButton,{onClick:t,size:"md","aria-label":"Expand",variant:"ghost",style:{position:"absolute",top:"5px",right:"20px",opacity:r?.5:.1,transition:"opacity 0.3s ease-in-out"},children:(0,g.jsx)(ne,{})}),(0,g.jsx)(Aj.Dialog.Root,{open:A,onOpenChange:n,size:"xl",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{overflowY:"auto",height:"75%",children:[(0,g.jsxs)(Aj.Dialog.Header,{children:[a?(0,g.jsxs)(Aj.Dialog.Title,{children:[(0,g.jsx)("code",{children:h})," Model Code"]}):(0,g.jsxs)(Aj.Dialog.Title,{children:[(0,g.jsx)("code",{children:h})," Model Code Diff"]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]}),(0,g.jsx)(Aj.Dialog.Body,{children:a?(0,g.jsx)(rC,{language:"sql",theme:"light",value:u??"",options:{...c,fontSize:16}}):(0,g.jsx)(rw,{language:"sql",theme:"light",original:u,modified:d,options:{...l,fontSize:16}})})]})})]})})]})};function hF(e,A){let t=(0,A7.mergeKeys)(e,A);if(0===t.length)return[];if(0===e.length||0===A.length)return t.map((e,A)=>A===t.length-1?e:e+",");let n="";return t.forEach(t=>{e.includes(t)&&A.includes(t)&&(n=t)}),t.map((r,i)=>{let o;return(o=e.includes(r)?A.includes(r)?r:`--- ${r} (Removed)`:`--- ${r} (Added)`,r===n||i===t.length-1)?o:o+","})}function hU({node:e,onCloseNode:A}){let t="model"===e.data.resourceType||"seed"===e.data.resourceType||"source"===e.data.resourceType||"snapshot"===e.data.resourceType,{open:n,onOpen:r,onClose:i}=(0,Ak.useDisclosure)(),{open:o,onClose:s}=(0,Ak.useDisclosure)({defaultOpen:!0}),{runAction:a}=(0,A9.useRecceActionContext)(),{isActionAvailable:l}=(0,A8.useLineageGraphContext)(),c=()=>{a("row_count",{node_names:[e.data.name]},{showForm:!1,showLast:!1})},u=()=>{a("row_count_diff",{node_names:[e.data.name]},{showForm:!1,showLast:!1})},{singleEnv:d}=(0,tt.useRecceInstanceContext)(),h=(e,A)=>e?"Unavailable for added or removed resources.":l(A)?"":"This action is not supported yet.",f=Object.keys(e.data.data.base?.columns??{}),p=Object.keys(e.data.data.current?.columns??{});return(0,g.jsxs)(a6,{height:"100%",templateRows:"auto auto 1fr",children:[(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(eb.Box,{flex:"0 1 20%",p:"16px",children:(0,g.jsx)(eE.Heading,{size:"sm",className:"no-track-pii-safe",children:e.data.name})}),(0,g.jsx)(eF.Spacer,{}),d?(0,g.jsx)(hE,{node:e,baseColumns:f,currentColumns:p,refetchRowCount:c,disableReason:h}):(0,g.jsx)(hI,{node:e,baseColumns:f,currentColumns:p,disableReason:h,refetchRowCountDiff:u,onSandboxOpen:r}),(0,g.jsx)(eb.Box,{flex:"0 1 1%",children:(0,g.jsx)(AL.CloseButton,{size:"2xs",onClick:A})})]}),(0,g.jsx)(eb.Box,{color:"gray",paddingLeft:"16px",children:(0,g.jsxs)(e5.HStack,{gap:"8px",children:[(0,g.jsx)(aX,{node:e}),("model"===e.data.resourceType||"snapshot"===e.data.resourceType||"seed"===e.data.resourceType)&&(d?(0,g.jsx)(aq,{node:e,onRefresh:c}):(0,g.jsx)(aJ,{node:e,onRefresh:u}))]})}),t&&(0,g.jsxs)(em.Root,{defaultValue:"columns",overflow:"auto",children:[d&&o&&(0,g.jsx)(eb.Box,{p:"12px",children:(0,g.jsx)(d$,{onClose:s,align:"flex-start",children:(0,g.jsxs)(e6.Text,{children:["Enable the Recce Checklist and start adding checks for better data validation and review.",(0,g.jsx)("br",{}),(0,g.jsx)(dX,{})]})})}),(0,g.jsxs)(em.List,{children:[(0,g.jsx)(em.Trigger,{value:"columns",children:"Columns"}),(0,g.jsx)(em.Trigger,{value:"code",children:"Code"})]}),(0,g.jsxs)(em.ContentGroup,{overflow:"auto",height:"calc(100% - 42px)",children:[(0,g.jsx)(em.Content,{value:"columns",p:0,overflowY:"auto",height:"100%",children:d?(0,g.jsx)(tv,{current:e.data.data.current}):(0,g.jsx)(tb,{base:e.data.data.base,current:e.data.data.current})}),(0,g.jsx)(em.Content,{value:"code",height:"100%",p:0,children:(0,g.jsx)(hQ,{node:e})})]})]}),(0,g.jsx)(hv,{isOpen:n,onClose:i,current:e.data.data.current})]})}function hE({node:e,baseColumns:A,currentColumns:t,refetchRowCount:n,disableReason:r}){let[,i]=(0,nx.useLocation)(),{setSqlQuery:o}=(0,a8.useRecceQueryContext)(),{runAction:s}=(0,A9.useRecceActionContext)(),{envInfo:a}=(0,A8.useLineageGraphContext)(),l="added"===e.data.changeStatus||"removed"===e.data.changeStatus,c=hF(A,t),u=`select * from {{ ref("${e.data.name}") }}`;return(c.length&&(u=`select
27
+ ${c.join("\n ")}
28
+ from {{ ref("${e.data.name}") }}`),"model"===e.data.resourceType||"seed"===e.data.resourceType||"snapshot"===e.data.resourceType)?(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{size:"xs",variant:"outline",children:["Explore ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{children:[(0,g.jsxs)(Aw.Menu.Item,{value:"label",fontSize:"14px",onClick:()=>{a?.adapterType==="dbt"?o(u):a?.adapterType==="sqlmesh"&&o(`select * from ${e.data.name}`),i("/query")},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("query").icon})," Query"]}),(0,g.jsxs)(Aw.Menu.Item,{value:"row-count",fontSize:"14px",onClick:()=>{n()},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("row_count").icon})," Row Count"]}),(0,g.jsx)(to.Tooltip,{content:r(l,"profile"),positioning:{placement:"left"},children:(0,g.jsxs)(Aw.Menu.Item,{value:"profile",fontSize:"14px",disabled:l,onClick:()=>{s("profile",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("profile").icon})," Profile"]})})]})})})]}):(0,g.jsx)(g.Fragment,{})}function hI({node:e,baseColumns:A,currentColumns:t,disableReason:n,onSandboxOpen:r,refetchRowCountDiff:i}){let[,o]=(0,nx.useLocation)(),{runAction:s}=(0,A9.useRecceActionContext)(),{setSqlQuery:a,setPrimaryKeys:l}=(0,a8.useRecceQueryContext)(),{envInfo:c,isActionAvailable:u}=(0,A8.useLineageGraphContext)(),{featureToggles:d}=(0,tt.useRecceInstanceContext)(),{primaryKey:h}=(0,a7.default)(e.data.name),f="metadata only"===d.mode,B="added"===e.data.changeStatus||"removed"===e.data.changeStatus,m=(0,p.useCallback)(async()=>{let A=e.id,t=await a9({node_id:A});o(`/checks/${t.check_id}`)},[e,o]),w=hF(A,t),y=`select * from {{ ref("${e.data.name}") }}`;w.length&&(y=`select
29
+ ${w.join("\n ")}
30
+ from {{ ref("${e.data.name}") }}`);let x=(e,A)=>{if(f)return(0,g.jsx)(a$,{display:!0,children:e});let t=n(B,A);return(0,g.jsx)(to.Tooltip,{disabled:""===t,content:t,positioning:{placement:"left"},children:e})};return"model"===e.data.resourceType||"seed"===e.data.resourceType||"snapshot"===e.data.resourceType?(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{size:"2xs",variant:"outline",disabled:d.disableNodeActionDropdown,children:["Explore ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{children:[(0,g.jsx)(a$,{display:f,children:(0,g.jsxs)(Aw.Menu.Item,{value:"query",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{c?.adapterType==="dbt"?a(y):c?.adapterType==="sqlmesh"&&a(`select * from ${e.data.name}`),u("query_diff_with_primary_key")&&l(void 0!==h?[h]:void 0),o("/query")},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("query_diff").icon})," Query"]})}),(0,g.jsx)(a$,{display:f,children:(0,g.jsxs)(Aw.Menu.Item,{value:"sandbox",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{u("query_diff_with_primary_key")&&l(void 0!==h?[h]:void 0),r(),(0,Ae.trackPreviewChange)({action:"explore",node:e.data.name})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("sandbox").icon})," Sandbox (Experiment)"]})}),(0,g.jsx)(Aw.Menu.Separator,{}),(0,g.jsxs)(Aw.Menu.ItemGroup,{m:"0",p:"0",children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"Diff"}),(0,g.jsx)(a$,{display:f,children:(0,g.jsxs)(Aw.Menu.Item,{value:"row-count-diff",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{i()},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("row_count_diff").icon})," Row Count Diff"]})}),x((0,g.jsxs)(Aw.Menu.Item,{value:"profile-diff",fontSize:"14px",disabled:B||d.disableDatabaseQuery,onClick:()=>{s("profile_diff",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("profile_diff").icon})," Profile Diff"]}),"profile_diff"),x((0,g.jsxs)(Aw.Menu.Item,{value:"value-diff",fontSize:"14px",disabled:B||d.disableDatabaseQuery,onClick:()=>{s("value_diff",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("value_diff").icon})," Value Diff"]}),"value_diff"),x((0,g.jsxs)(Aw.Menu.Item,{value:"top-k-diff",fontSize:"14px",disabled:B||d.disableDatabaseQuery,onClick:()=>{s("top_k_diff",{model:e.data.name,column_name:"",k:50},{showForm:!0})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("top_k_diff").icon})," Top-K Diff"]}),"top_k_diff"),x((0,g.jsxs)(Aw.Menu.Item,{value:"histogram-diff",fontSize:"14px",disabled:B||d.disableDatabaseQuery,onClick:()=>{s("histogram_diff",{model:e.data.name,column_name:"",column_type:""},{showForm:!0})},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("histogram_diff").icon})," Histogram Diff"]}),"histogram_diff")]}),(0,g.jsx)(Aw.Menu.Separator,{}),(0,g.jsxs)(Aw.Menu.ItemGroup,{m:"0",p:"4px 12px",children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"Add to Checklist"}),(0,g.jsxs)(Aw.Menu.Item,{value:"schema-diff",fontSize:"14px",onClick:()=>{m()},children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("schema_diff").icon})," Schema Diff"]})]})]})})})]}):(0,g.jsx)(g.Fragment,{})}function hS({onClose:e}){let{cancel:A,actionState:t}=tr();return(0,g.jsx)(eb.Box,{bg:"white",rounded:"md",shadow:"dark-lg",children:(0,g.jsxs)(e5.HStack,{p:"5px 15px",mt:"4",separator:(0,g.jsx)(i7,{borderColor:"gray.200"}),gap:4,children:[(0,g.jsxs)(eb.Box,{fontSize:"10pt",children:["Progress: ","per_node"===t.mode?`${t.completed} / ${t.total}`:t.currentRun?.progress?.percentage?`${100*t.currentRun.progress.percentage}%`:"completed"===t.status?"100%":"0%"," ","canceled"===t.status?" (canceled)":""]}),"running"===t.status||"canceling"===t.status?(0,g.jsx)(Ac.Button,{size:"xs",variant:"outline",onClick:A,loading:"canceling"===t.status,loadingText:"Canceling",children:"Cancel"}):(0,g.jsx)(e5.HStack,{children:(0,g.jsx)(Ac.Button,{size:"xs",variant:"outline",onClick:e,children:"Close"})})]})})}var hk=e.i(6850),hj=e.i(43291);function hH(){let{isHistoryOpen:e,setHistoryOpen:A,showHistory:t,closeHistory:n}=(0,A9.useRecceActionContext)();if(!e)return(0,g.jsxs)(eb.Box,{children:[(0,g.jsx)(eb.Box,{fontSize:"8pt",children:"History"}),(0,g.jsxs)(Ac.Button,{size:"2xs",variant:"outline",onClick:()=>{(0,Ae.trackHistoryAction)({name:"show"}),t()},children:[(0,g.jsx)(AZ.VscHistory,{})," Show"]})]})}let hD=()=>(0,g.jsxs)(Al.VStack,{align:"start",gap:0,children:[(0,g.jsx)(e6.Text,{fontSize:"10pt",color:"gray.500",pb:1,children:"Select nodes by dbt node selector syntax"}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(eC,{fontSize:"8pt",children:"model_name"})," Select a node"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(eC,{fontSize:"8pt",children:"model_name+"})," Select downstream nodes"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(eC,{fontSize:"8pt",children:"+model_name"})," Select upstream nodes"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(eC,{fontSize:"8pt",children:"model*"})," Select by wildcard"]})]}),hL=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=tr(),n=A.view_mode??"changed_models";return(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{minWidth:"100px",size:"2xs",variant:"outline",disabled:e,children:[(0,g.jsx)(eU.Icon,{as:np("model").icon})," ","changed_models"===n?"Changed Models":"All"," ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsx)(Aw.Menu.Content,{children:(0,g.jsxs)(Aw.Menu.RadioItemGroup,{value:n,onValueChange:e=>{var n;n=e.value,t({...A,view_mode:n})},children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"mode"}),(0,g.jsxs)(Aw.Menu.RadioItem,{value:"changed_models",children:["Changed Models",(0,g.jsx)(Aw.Menu.ItemIndicator,{})]}),(0,g.jsxs)(Aw.Menu.RadioItem,{value:"all",children:["All",(0,g.jsx)(Aw.Menu.ItemIndicator,{})]})]})})})})]})},hR=({isDisabled:e})=>{let{lineageGraph:A}=(0,A8.useLineageGraphContext)(),{viewOptions:t,onViewOptionsChanged:n}=tr(),r=new Set;for(let e of Object.values(A?.nodes??{}))e.data.packageName&&r.add(e.data.packageName);let i=A?.manifestMetadata.current?.project_name,o=t.packages?new Set(t.packages):i?new Set([i]):r,s=o.size===r.size,a=0===o.size,l=1===o.size?Array.from(o)[0]:s?"All Packages":a?"No Package":`${o.size} Packages`;return(0,g.jsxs)(Aw.Menu.Root,{closeOnSelect:!1,children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{minWidth:"100px",size:"2xs",variant:"outline",disabled:e,children:[(0,g.jsx)(eU.Icon,{as:aM})," ",l," ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsx)(Aw.Menu.Content,{children:(0,g.jsxs)(Aw.Menu.ItemGroup,{children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"Select Packages"}),(0,g.jsx)(Aw.Menu.Item,{value:"",asChild:!0,children:(0,g.jsxs)(hk.Checkbox.Root,{checked:s||a?s:"indeterminate",onCheckedChange:()=>{s?n({...t,packages:[]}):n({...t,packages:Array.from(r)})},children:[(0,g.jsx)(hk.Checkbox.HiddenInput,{}),(0,g.jsx)(hk.Checkbox.Control,{}),(0,g.jsx)(hk.Checkbox.Label,{children:"Select All"})]})}),(0,g.jsx)(Aw.Menu.Separator,{}),Array.from(r).map(e=>(0,g.jsx)(Aw.Menu.Item,{value:e,children:(0,g.jsxs)(hk.Checkbox.Root,{checked:o.has(e),onCheckedChange:()=>{let A;(A=new Set(o)).has(e)?A.delete(e):A.add(e),n({...t,packages:Array.from(A)})},children:[(0,g.jsx)(hk.Checkbox.HiddenInput,{}),(0,g.jsx)(hk.Checkbox.Control,{}),(0,g.jsx)(hk.Checkbox.Label,{className:"no-track-pii-safe",children:e})]})},e))]})})})})]})},hT=e=>{let[A,t]=(0,p.useState)(e.value),{data:n}=(0,hy.useRecceServerFlag)(),r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{r.current&&(r.current.value=e.value)},[e.value]),(0,g.jsx)(to.Tooltip,{contentProps:{width:"300px",padding:2,shadow:"md",borderWidth:1,rounded:"md",color:"black",backgroundColor:"white"},content:e.tooltipComponent,positioning:{placement:"bottom-start"},closeOnClick:!1,disabled:!n?.single_env_onboarding,children:(0,g.jsx)(AJ.Input,{ref:r,height:"24px",fontSize:"10pt",placeholder:"with selectors",disabled:e.isDisabled,value:A,onChange:e=>{t(e.target.value)},onKeyUp:n=>{"Enter"===n.key?e.onChange(A):"Escape"===n.key&&(n.preventDefault(),t(e.value),r.current&&r.current.blur())},onBlur:()=>{t(e.value)}})})},hM=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=tr();return(0,g.jsx)(hT,{isDisabled:e,value:A.select??"",onChange:e=>{t({...A,select:e||void 0})},tooltipComponent:(0,g.jsx)(hD,{})})},hO=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=tr();return(0,g.jsx)(hT,{isDisabled:e,value:A.exclude??"",onChange:e=>{t({...A,exclude:e||void 0})}})},hN=e=>(0,g.jsxs)(eb.Box,{style:e.style,maxWidth:"300px",children:[(0,g.jsx)(eb.Box,{fontSize:"8pt",children:e.label||(0,g.jsx)(g.Fragment,{children:" "})}),e.children]}),hP=()=>{let{deselect:e,focusedNode:A,selectedNodes:t,...n}=tr(),{featureToggles:r}=(0,tt.useRecceInstanceContext)(),{data:i}=(0,hy.useRecceServerFlag)(),o=i?.single_env_onboarding,s=t.length>0,a=!A&&!s;return(0,g.jsx)(e5.HStack,{width:"100%",padding:"4pt 8pt",className:"chakra-style-reset",children:(0,g.jsxs)(e5.HStack,{flex:"1",children:[(0,g.jsx)(hH,{}),(0,g.jsx)(hN,{label:"Mode",style:{flexShrink:"1"},children:(0,g.jsx)(hL,{isDisabled:s})}),(0,g.jsx)(hN,{label:"Package",style:{flexShrink:"1"},children:(0,g.jsx)(hR,{isDisabled:s})}),(0,g.jsx)(hN,{label:"Select",style:{flex:"100 1 auto"},children:(0,g.jsx)(hM,{isDisabled:s})}),(0,g.jsx)(hN,{label:"Exclude",style:{flex:"100 1 auto"},children:(0,g.jsx)(hO,{isDisabled:s})}),(0,g.jsx)(eF.Spacer,{}),s&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(hN,{label:"",style:{flexShrink:"0"},children:(0,g.jsx)(e6.Text,{fontSize:"9pt",color:"gray.500",children:t.length>1?`${t.length} nodes selected`:`${t.length} node selected`})}),(0,g.jsx)(hN,{label:"",children:(0,g.jsx)(Ac.Button,{variant:"outline",size:"2xs",fontSize:"9pt",onClick:()=>{e()},children:"Deselect"})}),o&&(0,g.jsx)(hN,{label:"Explore",children:(0,g.jsx)(hj.ButtonGroup,{attached:!0,variant:"outline",children:(0,g.jsxs)(Aw.Menu.Root,{positioning:{placement:"bottom-end"},children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{size:"2xs",children:["Actions ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsx)(Aw.Menu.Content,{children:(0,g.jsx)(Aw.Menu.Item,{value:"row-count",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runRowCount()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("row_count_diff").icon})," Row Count"]})})})})})]})})})]}),!o&&(0,g.jsx)(hN,{label:"Explore",children:(0,g.jsx)(hj.ButtonGroup,{attached:!0,variant:"outline",children:(0,g.jsxs)(Aw.Menu.Root,{positioning:{placement:"bottom-end"},children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(Ac.Button,{size:"2xs",disabled:r.disableViewActionDropdown,children:["Actions ",(0,g.jsx)(aG.PiCaretDown,{})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{children:[(0,g.jsxs)(Aw.Menu.ItemGroup,{m:"0",p:"4px 12px",children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"Diff"}),(0,g.jsx)(a$,{display:"metadata only"===r.mode,children:(0,g.jsx)(Aw.Menu.Item,{value:"row-count-diff",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runRowCountDiff()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("row_count_diff").icon})," Row Count Diff"]})})}),(0,g.jsx)(a$,{display:"metadata only"===r.mode,children:(0,g.jsx)(Aw.Menu.Item,{value:"value-diff",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runValueDiff()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("value_diff").icon})," Value Diff"]})})})]}),(0,g.jsx)(Aw.Menu.Separator,{}),(0,g.jsxs)(Aw.Menu.ItemGroup,{m:"0",px:"12px",children:[(0,g.jsx)(Aw.Menu.ItemGroupLabel,{children:"Add to Checklist"}),(0,g.jsx)(Aw.Menu.Item,{value:"lineage-diff",disabled:!(a||s&&t.length>1),onClick:()=>{n.addLineageDiffCheck(n.viewOptions.view_mode)},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("lineage_diff").icon})," Lineage Diff"]})}),(0,g.jsx)(Aw.Menu.Item,{value:"schema-diff",disabled:!1,onClick:()=>{n.addSchemaDiffCheck()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(eU.Icon,{as:(0,nm.findByRunType)("schema_diff").icon})," Schema Diff"]})})]})]})})})]})})})]})})};var h_=e.i(81167);async function hK(e){return(await e7.axiosClient.post("/api/checks",{type:"lineage_diff",params:{},view_options:e})).data}function hV(){return(0,g.jsx)(eb.Box,{bg:"white",padding:"12px",borderWidth:"1px",borderColor:"gray.200",fontSize:"sm",children:Object.entries({added:["Added","Added resource"],removed:["Removed","Removed resource"],modified:["Modified","Modified resource"]}).map(([e,[A,t]])=>{let{icon:n,color:r}=ng(e);return(0,g.jsx)(to.Tooltip,{content:t,positioning:{placement:"right"},children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"6px",marginBottom:"2px",children:[(0,g.jsx)(eU.Icon,{color:r,as:n})," ",A]})},e)})})}var hG=e.i(60536);let hz={mode:"per_node",status:"pending",completed:0,total:0,actions:{}},hW=function(){let{open:e,onOpen:A,onClose:t}=(0,Ak.useDisclosure)(),[n,r]=(0,p.useState)(0),[i,o]=(0,p.useState)(),s=(0,p.useRef)(null),a=(0,p.useCallback)(e=>(r(e),new Promise(e=>{o(()=>e),A()})),[A]),l=()=>{i?.(!1),t()};return{confirm:a,AlertDialog:(0,g.jsx)(Aj.Dialog.Root,{size:"xl",open:e,role:"alertdialog",initialFocusEl:()=>s.current,onOpenChange:l,children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsxs)(Aj.Dialog.Title,{children:["Value Diff on ",n," nodes"]})}),(0,g.jsx)(Aj.Dialog.Body,{gap:"20px",as:ev.Flex,direction:"column",children:(0,g.jsxs)(eb.Box,{children:["Value diff will be executed on ",n," nodes in the Lineage, which can add extra costs to your bill."]})}),(0,g.jsxs)(Aj.Dialog.Footer,{gap:1,children:[(0,g.jsx)(Ac.Button,{ref:s,onClick:l,variant:"outline",colorPalette:"gray",children:"Cancel"}),(0,g.jsx)(Ac.Button,{colorPalette:"iochmara",onClick:()=>{i?.(!0),t()},ml:3,children:"Execute"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})}};var AS=AS;let h$=({changeStatus:e})=>{if(!e)return(0,g.jsx)(g.Fragment,{});let{color:A,icon:t}=ng(e);return(0,g.jsx)(eU.Icon,{boxSize:"14px",display:"inline-flex",color:A,as:t})},hX=({transformationType:e,legend:A})=>{let t="U",n="red";return("passthrough"===e?(t="P",n="gray"):"renamed"===e?(t="R",n="orange"):"derived"===e?(t="D",n="orange"):"source"===e?(t="S",n="blue"):(t="U",n="red"),e)?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(AS.Root,{fontSize:"8pt",size:"sm",colorPalette:n,borderRadius:"full",paddingX:"4px",children:(0,g.jsx)(AS.Label,{children:t})})}):(0,g.jsx)(g.Fragment,{})},hY=()=>{let{lineageGraph:e}=(0,A8.useLineageGraphContext)(),{centerNode:A,viewOptions:t,cll:n}=tr(),r=t.column_level_lineage;if(!e)return(0,g.jsx)(g.Fragment,{});if(!r)return"Default View";if(void 0===r.node_id)return(0,g.jsx)(e6.Text,{as:"span",children:"Impact Radius for All Changed Models"});let i=r.node_id in e.nodes?e.nodes[r.node_id].data.name:r.node_id;if(r.column){let e=`${r.node_id}_${r.column}`;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(e6.Text,{as:"span",mr:"5px",children:["Column Lineage for"," "]}),(0,g.jsxs)(eC,{onClick:()=>{A(e)},cursor:"pointer",children:[i,".",r.column]})]})}{let e=r.node_id;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e6.Text,{as:"span",mr:"5px",children:"Impact Radius for"}),(0,g.jsx)(eC,{onClick:()=>{A(e)},cursor:"pointer",children:i})]})}},hJ=({action:e})=>{let{showColumnLevelLineage:A,resetColumnLevelLineage:t,interactive:n,viewOptions:r}=tr(),{data:i}=(0,hy.useRecceServerFlag)(),o=i?.single_env_onboarding??!1,{lineageGraph:s}=(0,A8.useLineageGraphContext)(),a=!s?.catalogMetadata.current;return(0,g.jsxs)(ev.Flex,{direction:"row",gap:"5px",children:[!o&&(0,g.jsx)(eb.Box,{borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:"white",children:(0,g.jsx)(to.Tooltip,{openDelay:50,content:"Please provide catalog.json to enable Impact Radius",disabled:!a,positioning:{placement:"top"},children:(0,g.jsxs)(Ac.Button,{size:"sm",variant:"ghost",whiteSpace:"nowrap",display:"inline-flex",disabled:!n||a,onClick:()=>{A({no_upstream:!0,change_analysis:!0})},children:[(0,g.jsx)(ni,{})," Impact Radius"]})})}),r.column_level_lineage&&(0,g.jsxs)(ev.Flex,{borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:"white",fontSize:"0.8rem",p:"0 0.625rem",alignItems:"center",children:[(0,g.jsx)(hY,{}),e.isError&&(0,g.jsx)(to.Tooltip,{content:`Error: ${e.error.message}`,positioning:{placement:"bottom"},children:(0,g.jsx)(e6.Text,{as:"span",color:"red.500",ml:"2px",display:"inline-flex",alignItems:"center",children:(0,g.jsx)(eU.Icon,{as:aG.PiInfo,color:"red.500",boxSize:"14px"})})}),e.isPending?(0,g.jsx)(te.Spinner,{size:"xs",ml:"2px"}):(0,g.jsx)(Am.IconButton,{variant:"ghost",size:"xs",ml:"2px","aria-label":"Reset Column Level Lineage",onClick:()=>{t()},children:(0,g.jsx)(aG.PiX,{size:"10px"})})]})]})};function hq(){return(0,g.jsx)(eb.Box,{bg:"white",padding:"12px",borderWidth:"1px",borderColor:"gray.200",fontSize:"sm",children:Object.entries({passthrough:["Pass Through","The column is directly selected from the upstream table."],renamed:["Renamed","The column is selected from the upstream table but with a different name."],derived:["Derived","The column is created through transformations applied to upstream columns, such as calculations, conditions, functions, or aggregations."],source:["Source","The column is not derived from any upstream data. It may originate from a seed/source node, literal value, or data generation function."],unknown:["Unknown","We have no information about the transformation type. This could be due to a parse error, or other unknown reason."]}).map(([e,[A,t]])=>(0,g.jsx)(to.Tooltip,{content:t,positioning:{placement:"right"},children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"6px",marginBottom:"2px",children:[(0,g.jsx)(hX,{legend:!0,transformationType:e})," ",A]})},e))})}let hZ="recce",h0={recommendationIgnored:`${hZ}-recommendation-ignored`,recommendationShowed:`${hZ}-recommendation-showed`,prevRefreshTimeStamp:`${hZ}-prev-refresh-timestamp`,lineageNotificationDismissed:`${hZ}-lineage-notification-dismissed`};function h1({notification:e,type:A}){let t=h0.lineageNotificationDismissed,[n,r]=(0,p.useState)(()=>"true"!==sessionStorage.getItem(t));return null!==e&&n?(0,g.jsxs)(ev.Flex,{w:"100%",direction:"row",p:"5px 10px",gap:"5px",alignItems:"flex-start",borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:{info:"blue.50",success:"green.50",warning:"yellow.50",error:"red.50"}[A],children:[e,(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(AL.CloseButton,{onClick:()=>{sessionStorage.setItem(t,"true"),r(!1)}})]}):null}var t1=t1;function h2(){return(0,g.jsx)(ev.Flex,{flex:"1",h:"100%",minH:0,m:"2",p:"4",bg:"blue.50",borderRadius:"lg",boxShadow:"md",justifyContent:"center",children:(0,g.jsxs)(ev.Flex,{w:"80%",direction:"column",overflowY:"auto",gap:6,px:8,pb:8,children:[(0,g.jsxs)(ev.Flex,{direction:"column",alignItems:"center",gap:4,children:[(0,g.jsx)(ev.Flex,{p:2,bg:"white",borderRadius:"full",alignItems:"center",justifyContent:"center",boxShadow:"md",children:(0,g.jsx)(eU.Icon,{as:aP,boxSize:7,color:"blue.500"})}),(0,g.jsx)(eE.Heading,{mt:"4",size:"lg",children:"Wait, there's more!"}),(0,g.jsxs)(e6.Text,{fontSize:"md",textAlign:"center",children:["Recce is currently running in"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"limited functionality mode"})," ","so you can run queries but"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"can't diff the results yet!"})]})]}),(0,g.jsxs)(ev.Flex,{direction:"column",gap:2,children:[(0,g.jsx)(e6.Text,{fontSize:"md",children:"To unlock the full power of Recce, set up a base environment of dbt artifacts for comparison."}),(0,g.jsx)(e6.Text,{children:"Once configured, you'll be able to:"}),(0,g.jsxs)(t1.Root,{children:[(0,g.jsx)(t1.Item,{children:(0,g.jsx)(e6.Text,{children:"Run statistical data diffs"})}),(0,g.jsx)(t1.Item,{children:(0,g.jsx)(e6.Text,{children:"Run query diffs"})}),(0,g.jsx)(t1.Item,{children:(0,g.jsx)(e6.Text,{children:"Save checks to your Recce Checklist"})}),(0,g.jsx)(t1.Item,{children:(0,g.jsx)(e6.Text,{children:"...and more!"})})]}),(0,g.jsx)(e6.Text,{fontSize:"md",children:"Take the next step toward better data impact assessment."})]}),(0,g.jsx)(ev.Flex,{w:"100%",direction:"column",mt:6,children:(0,g.jsx)(Ac.Button,{colorPalette:"blue",size:"lg",onClick:()=>{window.open("https://docs.datarecce.io/get-started/#prepare-dbt-artifacts","_blank")},children:"Start Now"})})]})})}function h4(){return(0,g.jsxs)(ev.Flex,{direction:"row",gap:"10px",alignItems:"flex-start",children:[(0,g.jsx)(eU.Icon,{as:a_,color:"blue.500",boxSize:"5"}),(0,g.jsxs)(ev.Flex,{direction:"column",gap:"5px",children:[(0,g.jsxs)(e6.Text,{fontWeight:"bold",children:["Single Environment Mode"," ",(0,g.jsx)(e6.Text,{color:"red",as:"span",children:"Limited Functionality"})]}),(0,g.jsx)(e6.Text,{fontSize:"sm",children:"Single Environment Mode allows you to explore your dbt project but won't show data comparisons between environments."}),(0,g.jsx)(e6.Text,{fontSize:"sm",children:"To set up full environment comparison:"}),(0,g.jsxs)(t1.Root,{ps:"4",children:[(0,g.jsx)(t1.Item,{children:(0,g.jsx)(e6.Text,{fontSize:"sm",children:"Run `recce debug` for setup assistance"})}),(0,g.jsx)(t1.Item,{children:(0,g.jsxs)(e6.Text,{fontSize:"sm",children:["Visit"," ",(0,g.jsx)(eQ.Link,{color:"blue.500",fontSize:"sm",fontWeight:"medium",target:"_blank",href:"https://docs.datarecce.io/configure-diff/",children:"docs"})," ","for configuration details"]})})]})]})]})}async function h3(e){return(await e7.axiosClient.post("/api/cll",e)).data}function h5(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 18h12v2H6zm6-14.414-6.707 6.707 1.414 1.414L11 7.414V16h2V7.414l4.293 4.293 1.414-1.414z"},child:[]}]})(e)}function h6(e){return(0,AR.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 18h12v2H6zm5-14v8.586L6.707 8.293 5.293 9.707 12 16.414l6.707-6.707-1.414-1.414L13 12.586V4z"},child:[]}]})(e)}let h8=({menuItems:e,open:A,onClose:t,x:n,y:r})=>{let{featureToggles:i}=(0,tt.useRecceInstanceContext)();return(0,g.jsx)(Aw.Menu.Root,{open:A,onOpenChange:t,children:(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsx)(Aw.Menu.Content,{fontSize:"10pt",position:"absolute",width:"250px",style:{left:`${n}px`,top:`${r}px`},children:0===e.length?(0,g.jsx)(Aw.Menu.Item,{value:"no-action",disabled:!0,children:"No action available"},"no action"):e.map(({isSeparator:e,label:A,isDisabled:n,action:r,itemIcon:o})=>{if(e)return(0,g.jsx)(Aw.Menu.Separator,{},A);{let e=(0,g.jsxs)(Aw.Menu.Item,{value:String(A),disabled:n,onClick:()=>{r&&r(),t()},children:[o," ",A]},A);return n?(0,g.jsx)(a$,{display:"metadata only"===i.mode,children:e}):e}})})})})})},h7=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let i=[],{selectParentNodes:o,selectChildNodes:s,getNodeColumnSet:a,selectMode:l,cll:c,showColumnLevelLineage:u}=tr(),{runAction:d}=(0,A9.useRecceActionContext)(),{featureToggles:h}=(0,tt.useRecceInstanceContext)(),{isActionAvailable:f}=(0,A8.useLineageGraphContext)(),{data:p}=(0,hy.useRecceServerFlag)(),{lineageGraph:B}=(0,A8.useLineageGraphContext)(),m=!B?.catalogMetadata.current,w=p?.single_env_onboarding??!1,y=h.disableDatabaseQuery,{primaryKey:x}=(0,a7.default)(r?.data?.data.name),{setSqlQuery:C,setPrimaryKeys:b}=(0,a8.useRecceQueryContext)(),[,v]=(0,nx.useLocation)();if(!r?.data)return(0,g.jsx)(g.Fragment,{});let Q=r.data,F=Q.resourceType,U=Array.from(a(r.id)),E={source:"lineage_model_node"};if("modified"===Q.changeStatus&&i.push({label:"Show Impact Radius",itemIcon:(0,g.jsx)(ni,{}),isDisabled:m,action:()=>{u({node_id:r.id,change_analysis:!0,no_upstream:!0})}}),!l&&F&&["model","seed","snapshot"].includes(F)){i.length>0&&i.push({label:"select group one",isSeparator:!0});let e=(0,nm.findByRunType)(w?"query":"query_diff"),A=hF(Object.keys(Q.data.base?.columns??{}),Object.keys(Q.data.current?.columns??{})),t=`select * from {{ ref("${Q.name}") }}`;if(A.length&&(t=`select
31
+ ${A.join("\n ")}
32
+ from {{ ref("${Q.name}") }}`),i.push({label:"Query",itemIcon:(0,g.jsx)(eU.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(t),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}}),U.length>0)if(void 0!==c){let A=new Set;x&&A.add(x),U.forEach(e=>{A.add(e)}),i.push({label:"Query Related Columns",itemIcon:(0,g.jsx)(eU.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(`select
33
+ ${Array.from(A).join(",\n ")}
34
+ from {{ ref("${Q.name}") }}`),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}})}else{let A=Object.entries(Q.change?.columns??{}).filter(([,e])=>"modified"===e).map(([e])=>e);if(A.length>0){let t=new Set;x&&t.add(x),A.forEach(e=>{t.add(e)}),i.push({label:"Query Modified Columns",itemIcon:(0,g.jsx)(eU.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(`select
35
+ ${Array.from(t).join(",\n ")}
36
+ from {{ ref("${Q.name}") }}`),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}})}}let n=(0,nm.findByRunType)(w?"row_count":"row_count_diff");i.push({label:n.title,itemIcon:(0,g.jsx)(eU.Icon,{as:n.icon}),isDisabled:y,action:()=>{d(w?"row_count":"row_count_diff",{node_names:[Q.name]},{showForm:!1,trackProps:E})}});let o=(0,nm.findByRunType)(w?"profile":"profile_diff");if(i.push({label:o.title,itemIcon:(0,g.jsx)(eU.Icon,{as:o.icon}),isDisabled:y,action:()=>{let e=Array.from(a(r.id));d(w?"profile":"profile_diff",{model:Q.name,columns:e},{showForm:!0,trackProps:E})}}),!w){let e=(0,nm.findByRunType)("value_diff");i.push({label:e.title,itemIcon:(0,g.jsx)(eU.Icon,{as:e.icon}),isDisabled:y,action:()=>{let e=Array.from(a(r.id));d("value_diff",{model:Q.name,columns:e},{showForm:!0,trackProps:E})}})}}return w||(i.length>0&&i.push({label:"select group two",isSeparator:!0}),i.push({label:"Select Parent Nodes",itemIcon:(0,g.jsx)(h5,{}),action:()=>{o(r.id,1)}}),i.push({label:"Select Child Nodes",itemIcon:(0,g.jsx)(h6,{}),action:()=>{s(r.id,1)}}),i.push({label:"Select All Upstream Nodes",itemIcon:(0,g.jsx)(h5,{}),action:()=>{o(r.id)}}),i.push({label:"Select All Downstream Nodes",itemIcon:(0,g.jsx)(h6,{}),action:()=>{s(r.id)}})),(0,g.jsx)(h8,{x:t,y:n,menuItems:i,open:e,onClose:A})},h9=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let i=[],{runAction:o}=(0,A9.useRecceActionContext)(),{isActionAvailable:s}=(0,A8.useLineageGraphContext)(),{featureToggles:a}=(0,tt.useRecceInstanceContext)(),{data:l}=(0,hy.useRecceServerFlag)(),c=l?.single_env_onboarding??!1,u=a.disableDatabaseQuery;if(r?.data===void 0)return(0,g.jsx)(g.Fragment,{});let d=r.data,h=d.node,f=d.column,p=d.type,B={source:"lineage_column_node"},m=h.data.base?.columns?.[f]===void 0||h.data.current?.columns?.[f]===void 0,w=(0,nm.findByRunType)(c?"profile":"profile_diff");if(i.push({label:w.title,itemIcon:(0,g.jsx)(eU.Icon,{as:w.icon}),action:()=>{o("profile_diff",{model:h.name,columns:[f]},{showForm:!1,trackProps:B})},isDisabled:m||!s("profile_diff")||u}),!c){let e=(0,nm.findByRunType)("histogram_diff");i.push({label:e.title,itemIcon:(0,g.jsx)(eU.Icon,{as:e.icon}),action:()=>{o("histogram_diff",{model:h.name,column_name:f,column_type:p},{showForm:!1,trackProps:B})},isDisabled:m||!p||!(0,tA.supportsHistogramDiff)(p)||u});let A=(0,nm.findByRunType)("top_k_diff");i.push({label:A.title,itemIcon:(0,g.jsx)(eU.Icon,{as:A.icon}),action:()=>{o("top_k_diff",{model:h.name,column_name:f,k:50},{showForm:!1,trackProps:B})},isDisabled:m||u})}return(0,g.jsx)(h8,{x:t,y:n,menuItems:i,open:e,onClose:A})},fe=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let{featureToggles:i}=(0,tt.useRecceInstanceContext)();return i.disableViewActionDropdown?(0,g.jsx)(h8,{menuItems:[],open:e,onClose:A,x:t,y:n}):r&&(0,i8.isLineageGraphNode)(r)?(0,g.jsx)(h7,{x:t,y:n,isOpen:e,onClose:A,node:r}):r&&(0,i8.isLineageGraphColumnNode)(r)?(0,g.jsx)(h9,{x:t,y:n,isOpen:e,onClose:A,node:r}):void 0};var fA=e.i(9624);function ft(e){return e?.organization_name&&e.web_url?`${e.web_url}/organizations/${e.organization_name}/settings`:az.RECCE_SUPPORT_CALENDAR_URL}function fn(){let{featureToggles:e}=(0,tt.useRecceInstanceContext)(),{data:A}=(0,e8.useQuery)({queryKey:e9.cacheKeys.instanceInfo(),queryFn:fA.getRecceInstanceInfo});return"metadata only"!==e.mode?null:(0,g.jsx)("div",{className:"flex items-center w-full px-2 py-0.5 bg-cyan-50",children:(0,g.jsxs)(e5.HStack,{flex:"1",fontSize:"sm",color:"cyan.600",children:[(0,g.jsx)(aG.PiInfo,{}),(0,g.jsx)(e6.Text,{children:"Query functions disabled without a data warehouse connection."}),(0,g.jsx)(Ac.Button,{bgColor:"iochmara.400",size:"2xs",onClick:()=>{window.open(ft(A),"_blank")},children:"Connect to Data Warehouse"})]})})}let fr={lineageGraphNode:function(e){let{data:A}=e,{id:t,resourceType:n,changeStatus:r}=A,i=og(e=>e.transform[2]>.3),{icon:o}=np(n),[s,a]=(0,p.useState)(!1),{interactive:l,selectNode:c,selectMode:u,focusedNode:d,getNodeAction:h,getNodeColumnSet:f,isNodeHighlighted:B,isNodeSelected:m,isNodeShowingChangeAnalysis:w,showContextMenu:y,viewOptions:x,cll:C,showColumnLevelLineage:b}=tr(),v=C?.current.nodes[t]?.change_category,Q=B(t),F=m(t),U=x.column_level_lineage?.node_id===t&&void 0===x.column_level_lineage.column,E=d?.id===t||U,I=w(t),{icon:S,color:k,backgroundColor:j}=r?ng(r):{icon:void 0,color:"gray.400",backgroundColor:"gray.100"},H=A.name,D=f(A.id),L=D.size>0,R="action_result"===u?h(A.id):void 0,T=i?"selecting"===u?F?k:"white":"action_result"!==u?E||F||s?j:"white":R?E||F||s?j:k:"white":E||F||s?k:j,M="selecting"===u?F?"white":"inherit":"action_result"===u&&R&&!F?"white":"inherit",O="selecting"===u?F?"white":"inherit":"action_result"===u&&R&&!F?"white":"inherit",N="selecting"===u?F?"white":k:"action_result"===u?R&&!F?"white":"inherit":k;return(0,g.jsxs)(ev.Flex,{cursor:"selecting"===u?"pointer":"inherit",direction:"column",width:"300px",transition:"box-shadow 0.2s ease-in-out",padding:0,filter:"action_result"===u?R?"none":"opacity(0.2) grayscale(50%)":Q||E||F||s?"none":"opacity(0.2) grayscale(50%)",onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},children:[(0,g.jsxs)(ev.Flex,{borderColor:k,borderWidth:"2px",borderTopRadius:8,borderBottomRadius:8*!L,backgroundColor:T,height:"60px",children:[(0,g.jsx)(ev.Flex,{bg:k,padding:l?"8px":"2px",borderRightWidth:"2px",borderColor:"selecting"===u?"#00000020":k,alignItems:"top",visibility:i?"inherit":"hidden",children:l&&(0,g.jsx)(a3,{checked:"selecting"===u&&F||"action_result"===u&&!!R,onClick:e=>{"action_result"!==u&&(e.stopPropagation(),c(A.id))}})}),(0,g.jsxs)(ev.Flex,{flex:"1 0 auto",mx:"1",width:"100px",direction:"column",children:[(0,g.jsxs)(ev.Flex,{width:"100%",textAlign:"left",fontWeight:"600",flex:"1",p:1,gap:"5px",alignItems:"center",visibility:i?"inherit":"hidden",children:[(0,g.jsx)(a5,{name:H,color:M,resourceType:n}),s?(0,g.jsxs)(g.Fragment,{children:["modified"===r&&(0,g.jsx)(to.Tooltip,{content:"Show Impact Radius",positioning:{placement:"top"},openDelay:500,children:(0,g.jsx)(As.Center,{children:(0,g.jsx)(eU.Icon,{boxSize:"14px",as:ni,color:"gray",cursor:"pointer",_hover:{color:"black"},onClick:e=>{e.preventDefault(),e.stopPropagation(),b({node_id:t,change_analysis:!0,no_upstream:!0})}})})}),(0,g.jsx)(eU.Icon,{as:AZ.VscKebabVertical,color:"gray",cursor:"pointer",_hover:{color:"black"},onClick:A=>{A.preventDefault(),A.stopPropagation(),y(A,e)}})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eU.Icon,{boxSize:"16px",color:O,as:o}),r&&(0,g.jsx)(eU.Icon,{color:N,as:S})]})]}),(0,g.jsx)(ev.Flex,{flex:"1 0 auto",mx:"1",direction:"column",paddingBottom:"1",visibility:i?"inherit":"hidden",children:(0,g.jsx)(e5.HStack,{gap:"8px",children:R?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(a0,{node:A,action:R})]}):I?(0,g.jsx)(eb.Box,{height:"20px",color:"gray",fontSize:"9pt",margin:0,fontWeight:600,children:v?a2[v]:""}):"action_result"!==u&&"model"===A.resourceType?(0,g.jsx)(a4,{id:A.id,inverted:"selecting"===u&&F}):(0,g.jsx)(g.Fragment,{})})})]})]}),L&&(0,g.jsx)(eb.Box,{p:"10px 10px",borderColor:k,borderWidth:"2px",borderTopWidth:0,borderBottomRadius:8,children:(0,g.jsx)(eb.Box,{height:`${D.size*i8.COLUMN_HEIGHT}px`,overflow:"auto"})}),Object.keys(A.parents??{}).length>0&&(0,g.jsx)(sc,{type:"target",position:oA.Position.Left,isConnectable:!1}),Object.keys(A.children??{}).length>0&&(0,g.jsx)(sc,{type:"source",position:oA.Position.Right,isConnectable:!1})]})},lineageGraphColumnNode:function(e){let{id:A,data:t}=e,{id:n}=t.node,{column:r,type:i,transformationType:o,changeStatus:s}=t,a=og(e=>e.transform[2]>.3),{viewOptions:l,showContextMenu:c,isNodeHighlighted:u,isNodeShowingChangeAnalysis:d}=tr(),h=l.column_level_lineage?.node_id,f=r===l.column_level_lineage?.column&&n===h,[B,m]=p.default.useState(!1),w=u(A),y=d(n);return a?(0,g.jsxs)(ev.Flex,{width:"280px",padding:"0px 10px",border:"1px solid gray",backgroundColor:f?"#f0f0f0":"inherit",_hover:{backgroundColor:"#f0f0f0"},onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},filter:w?"none":"opacity(0.2) grayscale(50%)",cursor:"pointer",children:[(0,g.jsxs)(ev.Flex,{fontSize:"11px",color:"black",width:"100%",gap:"3px",alignItems:"center",height:`${i8.COLUMN_HEIGHT-1}px`,children:[y&&s?(0,g.jsx)(h$,{changeStatus:s}):(0,g.jsx)(hX,{transformationType:o}),(0,g.jsx)(eb.Box,{height:`${i8.COLUMN_HEIGHT+1}px`,children:r}),(0,g.jsx)(eF.Spacer,{}),B?(0,g.jsx)(eU.Icon,{as:AZ.VscKebabVertical,boxSize:"14px",display:"inline-flex",cursor:"pointer",_hover:{color:"black"},onClick:A=>{A.preventDefault(),A.stopPropagation(),c(A,e)}}):(0,g.jsx)(eb.Box,{height:`${i8.COLUMN_HEIGHT+1} px`,children:i})]}),(0,g.jsx)(sc,{type:"target",position:oA.Position.Left,isConnectable:!1,style:{left:0,visibility:"hidden"}}),(0,g.jsx)(sc,{type:"source",position:oA.Position.Right,isConnectable:!1,style:{right:0,visibility:"hidden"}})]}):(0,g.jsx)(g.Fragment,{})}},fi=[],fo={lineageGraphEdge:function(e){let{source:A,target:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,style:l={},markerEnd:c,data:u}=e,d={...l},{isEdgeHighlighted:h}=tr();u?.changeStatus&&(d.stroke=ng(u.changeStatus).hexColor,d.strokeDasharray="5"),h(A,t)||(d.filter="opacity(0.2) grayscale(50%)");let[f]=(0,oA.getBezierPath)({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a});return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(sS,{path:f,markerEnd:c,style:{...d,...l}})})}},fs=e=>e.data.changeStatus?ng(e.data.changeStatus).hexColor:"lightgray",fa=(0,p.forwardRef)(function({interactive:e=!1,...A},t){var n;let r,i=o2(),o=(0,p.useRef)(null),{successToast:s,failToast:a}=nP(),{copyToClipboard:l,ImageDownloadModal:c,ref:u}=dV({renderLibrary:"html-to-image",imageType:"png",shadowEffect:!0,backgroundColor:"white",ignoreElements:e=>{try{return e.classList.contains(dK)}catch{if(e.className)return e.className.includes(dK);return!1}},onSuccess:()=>{s("Copied the Lineage View as an image to clipboard")},onError:e=>{console.error("Error taking screenshot",e),a("Failed to copy image to clipboard",e)}}),[d,h,f]=function(e){let[A,t]=(0,p.useState)(e),n=(0,p.useCallback)(e=>t(A=>oV(e,A)),[]);return[A,t,n]}(fi),[B,m,w]=function(e){let[A,t]=(0,p.useState)(e),n=(0,p.useCallback)(e=>t(A=>oV(e,A)),[]);return[A,t,n]}([]),{lineageGraph:y,retchLineageGraph:x,isLoading:C,error:b,refetchRunsAggregated:v}=(0,A8.useLineageGraphContext)(),{featureToggles:Q,singleEnv:F}=(0,tt.useRecceInstanceContext)(),{runId:U,showRunId:E,closeRunResult:I,runAction:S,isRunResultOpen:k}=(0,A9.useRecceActionContext)(),{run:j}=le(U),[H,D]=(0,p.useState)({...A.viewOptions}),L=(0,p.useRef)([]).current,[R,T]=(0,p.useState)(void 0),M=A6({mutationFn:h3}),[O,N]=(0,p.useState)({}),P=(0,p.useCallback)(e=>d.filter(i8.isLineageGraphNode).find(A=>A.data.name===e),[d]);(0,p.useImperativeHandle)(t,()=>({copyToClipboard:l}));let _=(0,p.useMemo)(()=>!!(y&&y.modifiedSet.length>0),[y]),K=H.view_mode??"changed_models",V=(0,p.useMemo)(()=>d.filter(e=>"lineageGraphNode"===e.type).map(e=>e.id),[d]),G=(0,p.useMemo)(()=>y?V.map(e=>y.nodes[e]):[],[y,V]),[z,W]=(0,p.useState)(),$=z?y?.nodes[z]:void 0,[X,Y]=(0,p.useState)(),[J,q]=(0,p.useState)(new Set),Z=(0,p.useMemo)(()=>y?Array.from(J).map(e=>y.nodes[e]):[],[y,J]),ee=((e,{onActionStarted:A,onActionNodeUpdated:t,onActionCompleted:n})=>{let r=(0,p.useRef)({...hz}).current,{showRunId:i}=(0,A9.useRecceActionContext)(),o=async(o,s,a)=>{r.mode="multi_nodes",r.actions={};let l=r.mode,c=r.actions;A(),r.status="running";let u=[];for(let A of e){let e=s(A);e?(c[A.id]={mode:l,status:"skipped",skipReason:e},t(A)):(c[A.id]={mode:l,status:"pending"},u.push(A))}let d=a(u);try{let{run_id:e}=await (0,il.submitRun)(o,d,{nowait:!0});for(i(e),r.currentRun={run_id:e},r.total=1;;){let A=await (0,il.waitRun)(e,2);r.currentRun=A;let n=A.error?"failure":A.result?"success":"running";for(let e of u)c[e.id]={mode:l,status:n,run:A},t(e);if(A.error||A.result)break}}catch(e){}if(r.completed=1,"canceling"===r.status){r.status="canceled",n();return}r.status="completed",n()},s=async(i,o)=>{r.mode="per_node",r.actions={};let s=r.mode,a=r.actions;for(let n of(A(),r.status="running",e))a[n.id]={mode:s,status:"pending"},t(n);for(let A of(r.completed=0,r.total=e.length,e)){let{params:e,skipReason:l}=o(A);if(l)a[A.id]={mode:s,status:"skipped",skipReason:l},t(A);else try{let{run_id:n}=await (0,il.submitRun)(i,e,{nowait:!0});for(r.currentRun={run_id:n},a[A.id]={mode:s,status:"running"},t(A);;){let e=await (0,il.waitRun)(n,2);r.currentRun=e;let i=e.error?"failure":e.result?"success":"running";if(a[A.id]={mode:s,status:i,run:e},t(A),e.error||e.result)break}}catch(e){}finally{r.currentRun=void 0}if(r.completed++,"canceling"===r.status){r.status="canceled",n();return}}r.status="completed",n()},a=async()=>{let A=[];for(let n of e)"model"!==n.data.resourceType?(r.actions[n.id]={mode:"multi_nodes",status:"skipped",skipReason:"Not a model"},t(n)):A.push(n.data.name);await o("row_count",e=>{if("model"!==e.data.resourceType)return"Not a model"},e=>({node_names:e.map(e=>e.data.name)}))},l=async()=>{let A=[];for(let n of e)"model"!==n.data.resourceType?(r.actions[n.id]={mode:"multi_nodes",status:"skipped",skipReason:"Not a model"},t(n)):A.push(n.data.name);await o("row_count_diff",e=>{if("model"!==e.data.resourceType)return"Not a model"},e=>({node_names:e.map(e=>e.data.name)}))},c=async()=>{r.status="canceling",r.currentRun?.run_id&&await (0,il.cancelRun)(r.currentRun.run_id)};return{actionState:r,runRowCount:a,runRowCountDiff:l,runValueDiff:async()=>{await s("value_diff",e=>{let A=e.data.data.current?.primary_key;return A?{params:{model:e.data.name,primary_key:A}}:{skipReason:"No primary key found. The first unique column is used as primary key."}})},addLineageDiffCheck:async()=>{let A=e.map(e=>e.id);return await hK({node_ids:A})},addSchemaDiffCheck:async()=>{let A;if(1===e.length)A=await a9({node_id:e[0].id});else{let t=e.map(e=>e.id);A=await a9({node_id:t})}return A},cancel:c,reset:()=>{Object.assign(r,hz)}}})(Z.length>0?Z:G,{onActionStarted:()=>{Y("action_result")},onActionNodeUpdated:e=>{h(A=>A.map(A=>A.id===e.id?{...A}:A))},onActionCompleted:()=>{}}),eA=(0,p.useMemo)(()=>{if(!y)return new Set;let e=new Set;if(R){for(let[A,t]of Object.entries(R.current.nodes))!1!==t.impacted&&e.add(A);for(let A of Object.keys(R.current.columns))e.add(A)}else e="action_result"===X?new Set(Object.keys(ee.actionState.actions)):$?(0,h_.union)((0,i8.selectUpstream)(y,[$.id]),(0,i8.selectDownstream)(y,[$.id])):_?(0,i8.selectDownstream)(y,y.modifiedSet):new Set(V);return new Set(e)},[y,R,X,$,_,ee.actionState.actions,V]),et=(()=>{let{open:e,onClose:A,onOpen:t}=(0,Ak.useDisclosure)(),[n,r]=(0,p.useState)({x:0,y:0}),[i,o]=(0,p.useState)();return{props:{x:n.x,y:n.y,node:i,isOpen:e,onClose:A},showContextMenu:(e,A,n)=>{r({x:e,y:A}),o(n),t()},closeContextMenu:()=>{r({x:0,y:0}),o(void 0),A()}}})(),en=()=>{et.closeContextMenu()};(0,p.useLayoutEffect)(()=>{(async()=>{let e,t;if(!y)return;if(H.node_ids)t=H.node_ids;else{let e=y.manifestMetadata.current?.project_name,n={view_mode:H.view_mode??(_?"changed_models":"all"),packages:e?[e]:void 0,...A.viewOptions};try{t=(await tQ({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode})).nodes}catch(e){n.view_mode="all",t=(await tQ({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode})).nodes}D(n)}if(H.column_level_lineage)try{e=await M.mutateAsync(H.column_level_lineage)}catch(e){if(e instanceof hG.AxiosError)return void nN.toaster.create({title:"Column Level Lineage error",description:e.response?.data.detail??e.message,type:"error",closable:!0})}let[n,r,i]=(0,i8.toReactFlow)(y,{selectedNodes:t,cll:e});(0,i8.layout)(n,r),h(n),m(r),N(i),T(e)})()},[y]);let er=()=>{W(void 0)},ei=async e=>{let A=d.find(A=>A.id===e);if(A){if(A.parentId){let e=A.parentId;A=d.find(A=>A.id===e)??A}if(null!=A.measured){let{width:e,height:t}=A.measured;if(e&&t){let n=A.position.x+e/2,r=A.position.y+t/2,o=i.getZoom();await i.setCenter(n,r,{zoom:o,duration:200})}}}},eo=(()=>{let[,e]=(0,nx.useLocation)();return(0,p.useCallback)(A=>{A.check_id&&e(`/checks/${A.check_id}`)},[e])})();n=async()=>{"selecting"!==X&&(z?await ei(z):await i.fitView({nodes:d,duration:200}))},r=(0,p.useRef)({width:0,height:0}),(0,p.useEffect)(()=>{let e=o.current,A=new ResizeObserver(e=>{for(let A of e){let e=A.contentRect.width,t=A.contentRect.height;(Math.abs(t-r.current.height)>10||Math.abs(e-r.current.width)>10)&&r.current.height>0&&t>0&&r.current.width>0&&e>0&&n(),r.current={width:e,height:t}}});return e&&A.observe(e),()=>{e&&A.unobserve(e)}},[n,o]);let es=async(e,A=!1)=>{let t=H.column_level_lineage;await eu({...H,column_level_lineage:e},!1),A||L.push(t),e?.node_id?W(e.node_id):W(void 0)},ea=async e=>{if(e){if(0===L.length)return;let e=L.pop();e?await es(e,!0):await es(void 0,!0)}else await es(void 0,!0)},el=(A,t)=>{if(e&&y){if((0,i8.isLineageGraphColumnNode)(t))return void(!X&&es({node_id:t.data.node.id,column:t.data.column}));if(en(),X)if("action_result"===X){let e=ee.actionState.actions[t.id];e.run?.run_id&&E(e.run.run_id),W(t.id)}else{let e=new Set(J);J.has(t.id)?e.delete(t.id):e.add(t.id),q(e),0===e.size&&Y(void 0)}else W(t.id)}},ec=async e=>{let A,t,{viewOptions:n=H}=e,{fitView:r}=e;if(!y)return;if(H.select!==n.select||H.exclude!==n.exclude||H.packages!==n.packages||H.view_mode!==n.view_mode){try{let e=await tQ({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode});n={...n,column_level_lineage:void 0},A=e.nodes}catch(e){e instanceof hG.AxiosError&&nN.toaster.create({title:"Select node error",description:e.response?.data.detail??e.message,type:"error",closable:!0});return}W(void 0)}else A=d.map(e=>e.id);if(n.column_level_lineage)try{t=await M.mutateAsync(n.column_level_lineage)}catch(e){if(e instanceof hG.AxiosError)return void nN.toaster.create({title:"Column Level Lineage error",description:e.response?.data.detail??e.message,type:"error",closable:!0})}let[o,s,a]=(0,i8.toReactFlow)(y,{selectedNodes:A,cll:t});h(o),m(s),N(a),T(t),j&&((0,aZ.isTopKDiffRun)(j)||(0,aZ.isProfileDiffRun)(j)||(0,aZ.isHistogramDiffRun)(j)||(0,aZ.isValueDiffRun)(j)||(0,aZ.isValueDiffDetailRun)(j))&&j.params?.model&&!P(j.params.model)&&I(),r&&(await new Promise(e=>setTimeout(e,1)),i.fitView({nodes:o,duration:200}))},eu=async(e,A=!0)=>{D(e),await ec({viewOptions:e,fitView:A})},ed=hW();(0,p.useEffect)(()=>{let A=j?.type;if(e&&k&&!(!A||["query_diff","query","row_count"].includes(A))&&!X){let e;((0,aZ.isTopKDiffRun)(j)||(0,aZ.isProfileDiffRun)(j)||(0,aZ.isHistogramDiffRun)(j)||(0,aZ.isValueDiffRun)(j)||(0,aZ.isValueDiffDetailRun)(j))&&(e=j.params?.model);let A=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});if(e){let t=P(e);t?(0,i8.isLineageGraphNode)(t)&&$!==t.data.data&&el(A,t):eu({...H,view_mode:"all"})}else er()}},[j,H,k,X,P,$,e]);let eh=(A,t)=>{if(!e||"action_result"===X)return;A.preventDefault();let n=u.current,r=n.getBoundingClientRect(),i=A.clientX-r.left,o=A.clientY-r.top+n.offsetTop;et.showContextMenu(i,o,t)},ef=()=>{Y(void 0),q(new Set),W(void 0),I(),v?.()},eg={interactive:e,nodes:d,focusedNode:$,selectedNodes:Z,viewOptions:H,showContextMenu:eh,onViewOptionsChanged:eu,selectMode:X,selectNode:e=>{if(X){if("selecting"===X){let A=new Set(J);J.has(e)?A.delete(e):A.add(e),q(A),0===A.size&&Y(void 0)}}else y&&(q(new Set([e])),Y("selecting"),W(void 0),ee.reset())},selectParentNodes:(e,A=1e3)=>{if("action_result"===X||void 0===y)return;!X&&(Y("selecting"),ee.reset(),H.column_level_lineage&&eu({...H,column_level_lineage:void 0}));let t=(0,i8.selectUpstream)(y,[e],A);q((0,h_.union)(J,t))},selectChildNodes:(e,A=1e3)=>{if("action_result"===X||void 0===y)return;!X&&(Y("selecting"),ee.reset(),H.column_level_lineage&&eu({...H,column_level_lineage:void 0}));let t=(0,i8.selectDownstream)(y,[e],A);q((0,h_.union)(J,t))},deselect:ef,isNodeHighlighted:e=>eA.has(e),isNodeSelected:e=>J.has(e),isEdgeHighlighted:(e,A)=>R?e in R.current.parent_map&&A in R.current.parent_map[e]:eA.has(e)&&eA.has(A),isNodeShowingChangeAnalysis:e=>{if(!y)return!1;let A=e in y.nodes?y.nodes[e]:void 0;if(H.column_level_lineage?.change_analysis){let t=H.column_level_lineage;return t.node_id&&!t.column?t.node_id===e&&!!A?.data.changeStatus:!!A?.data.changeStatus}return!1},getNodeAction:e=>ee.actionState.actions[e],getNodeColumnSet:e=>e in O?new Set(O[e]):new Set,runRowCount:async()=>{"selecting"===X?(await ee.runRowCount(),(0,Ae.trackMultiNodesAction)({type:"row_count",selected:"multi"})):$?(S("row_count",{node_names:[$.data.name]},{showForm:!1,showLast:!1}),(0,Ae.trackMultiNodesAction)({type:"row_count",selected:"single"})):(S("row_count",{select:H.select,exclude:H.exclude,packages:H.packages,view_mode:H.view_mode}),(0,Ae.trackMultiNodesAction)({type:"row_count",selected:"none"}))},runRowCountDiff:async()=>{"selecting"===X?(await ee.runRowCountDiff(),(0,Ae.trackMultiNodesAction)({type:"row_count_diff",selected:"multi"})):$?(S("row_count_diff",{node_names:[$.data.name]},{showForm:!1,showLast:!1}),(0,Ae.trackMultiNodesAction)({type:"row_count_diff",selected:"single"})):(S("row_count_diff",{select:H.select,exclude:H.exclude,packages:H.packages,view_mode:H.view_mode}),(0,Ae.trackMultiNodesAction)({type:"row_count_diff",selected:"none"}))},runValueDiff:async()=>{if($)S("value_diff",{model:$.data.name},{showForm:!0,showLast:!1}),(0,Ae.trackMultiNodesAction)({type:"value_diff",selected:"single"});else{let e="selecting"===X?Z.length:V.length;await ed.confirm(e)&&(await ee.runValueDiff(),(0,Ae.trackMultiNodesAction)({type:"value_diff",selected:"selecting"===X?"multi":"none"}))}},addLineageDiffCheck:async()=>{let e;"selecting"===X?(e=await ee.addLineageDiffCheck(),ef(),(0,Ae.trackMultiNodesAction)({type:"lineage_diff",selected:"multi"})):$||(e=await hK(H),(0,Ae.trackMultiNodesAction)({type:"lineage_diff",selected:"none"})),e&&eo(e)},addSchemaDiffCheck:async()=>{let e;"selecting"===X?Z.length>0&&(e=await ee.addSchemaDiffCheck(),ef(),(0,Ae.trackMultiNodesAction)({type:"schema_diff",selected:"multi"})):$?(e=await a9({node_id:$.id}),(0,Ae.trackMultiNodesAction)({type:"schema_diff",selected:"single"})):(e=await a9({select:H.select,exclude:H.exclude,packages:H.packages,view_mode:H.view_mode}),(0,Ae.trackMultiNodesAction)({type:"schema_diff",selected:"none"})),e&&eo(e)},cancel:ee.cancel,actionState:ee.actionState,centerNode:ei,cll:R,showColumnLevelLineage:es,resetColumnLevelLineage:ea};return C?(0,g.jsx)(ev.Flex,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:(0,g.jsx)(te.Spinner,{size:"xl"})}):b?(0,g.jsx)(As.Center,{h:"100%",children:(0,g.jsxs)(Al.VStack,{children:[(0,g.jsx)(eb.Box,{children:"Failed to load lineage data. This could be because the server has been terminated or there is a network error."}),(0,g.jsxs)(eb.Box,{children:["[Reason: ",b,"]"]}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:()=>{x&&x()},children:"Retry"})]})}):y&&d!=fi?"changed_models"!==K||y.modifiedSet.length?(0,g.jsxs)(tn.Provider,{value:eg,children:[(0,g.jsxs)(tz,{sizes:$?[70,30]:[100,0],minSize:400*!!$,gutterSize:5*!!$,style:{height:"100%",width:"100%"},children:[(0,g.jsxs)(Al.VStack,{ref:o,separator:(0,g.jsx)(i7,{borderColor:"gray.200"}),gap:0,style:{contain:"strict"},position:"relative",children:[e&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(hP,{}),"metadata only"===Q.mode&&(0,g.jsx)(fn,{})]}),(0,g.jsxs)(aa,{proOptions:{hideAttribution:!0},nodeTypes:fr,edgeTypes:fo,nodes:d,edges:B,onNodesChange:f,onEdgesChange:w,onNodeClick:el,onNodeContextMenu:eh,onClick:en,onInit:async()=>{if(_)await i.fitView();else{let e=(0,oA.getNodesBounds)(d,{});await i.setCenter(e.x+e.width/2,e.y+e.height/2,{zoom:1})}},maxZoom:1,minZoom:.1,nodesDraggable:e,ref:u,children:[(0,g.jsx)(af,{color:"#ccc"}),(0,g.jsx)(ab,{showInteractive:!1,position:"top-right",className:dK,children:(0,g.jsx)(ay,{title:"copy image",onClick:async()=>{await l(),(0,Ae.trackCopyToClipboard)({type:K,from:"lineage_view"})},children:(0,g.jsx)(eU.Icon,{as:aR})})}),(0,g.jsx)(c,{}),(0,g.jsx)(oQ,{position:"bottom-left",children:(0,g.jsxs)(ev.Flex,{direction:"column",gap:"5px",children:[_&&(0,g.jsx)(hV,{}),H.column_level_lineage&&(0,g.jsx)(hq,{})]})}),(0,g.jsx)(oQ,{position:"top-center",children:(0,g.jsx)(h1,{notification:F?(0,g.jsx)(h4,{}):null,type:"info"})}),(0,g.jsx)(oQ,{position:"top-left",children:(0,g.jsxs)(ev.Flex,{direction:"column",gap:"5px",children:[(0,g.jsx)(hJ,{action:M}),0==d.length&&(0,g.jsx)(e6.Text,{fontSize:"xl",color:"grey",opacity:.5,children:"No nodes"})]})}),(0,g.jsx)(aj,{nodeColor:fs,nodeStrokeWidth:3,zoomable:!0,pannable:!0}),"action_result"===X&&(0,g.jsx)(oQ,{position:"bottom-center",className:dK,children:(0,g.jsx)(hS,{onClose:()=>{ef()}})})]}),(0,g.jsx)(fe,{...et.props})]}),$?(0,g.jsx)(eb.Box,{borderLeft:"solid 1px lightgray",height:"100%",children:(0,g.jsx)(hU,{node:$,onCloseNode:er})}):(0,g.jsx)(eb.Box,{})]}),ed.AlertDialog]}):(0,g.jsx)(As.Center,{h:"100%",children:(0,g.jsxs)(Al.VStack,{children:[(0,g.jsx)(g.Fragment,{children:"No change detected"}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:async()=>{await eu({...H,view_mode:"all"})},children:"Show all nodes"})]})}):(0,g.jsx)(g.Fragment,{})}),fl=(0,p.forwardRef)(function({check:e},A){let t={...e.params,...e.view_options};return(0,g.jsx)(ev.Flex,{direction:"column",height:"100%",children:(0,g.jsx)(ai,{children:(0,g.jsx)(fa,{viewOptions:t,interactive:!1,ref:A})})})});function fc({yamlTemplate:e}){return(0,g.jsx)(rC,{height:"300px",language:"yaml",theme:"vs",value:e,options:{readOnly:!0,fontSize:14,lineNumbers:"off",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"same",scrollBeyondLastLine:!1}})}function fu(){return{markedAsApprovedToast:function(){nN.toaster.create({title:"Marked as approved",type:"success",duration:2e3})}}}var fd=e.i(69993);let fh=(e,A)=>"schema_diff"!==e&&"lineage_diff"!==e&&(!A?.result||!!A.error),ff=({checkId:e,refreshCheckList:A})=>{let t,{featureToggles:n}=(0,tt.useRecceInstanceContext)(),{setLatestSelectedCheckId:r}=(0,fd.useRecceCheckContext)(),i=(0,A5.useQueryClient)(),[,o]=(0,nx.useLocation)(),{successToast:s,failToast:a}=nP(),{markedAsApprovedToast:l}=fu(),[c,u]=(0,p.useState)(),[d]=(0,p.useState)(),[h,f]=(0,p.useState)(!1),{open:B,onOpen:m,onClose:w}=(0,Ak.useDisclosure)(),[y,x]=(0,p.useState)((0,g.jsx)(fg,{})),{isLoading:C,error:b,data:v}=(0,e8.useQuery)({queryKey:e9.cacheKeys.check(e),queryFn:async()=>An(e),refetchOnMount:!0}),Q=c??v?.last_run?.run_id,{run:F,error:U}=le(Q),E=c?!F||"running"===F.status:F?.status==="running",I=v?.type?(0,nm.findByRunType)(v.type):void 0;I&&(t=I.RunResultView);let S=v?.is_preset??!1,k=(0,p.useRef)(null),{mutate:j}=A6({mutationFn:A=>Ar(e,A),onSuccess:async()=>{await i.invalidateQueries({queryKey:e9.cacheKeys.check(e)}),await i.invalidateQueries({queryKey:e9.cacheKeys.checks()})}}),{mutate:H}=A6({mutationFn:()=>Ai(e),onSuccess:async()=>{r(""),await i.invalidateQueries({queryKey:e9.cacheKeys.checks()}),o("/checks")}}),D=(0,p.useCallback)(async()=>{!v?.type||(u((await (0,il.submitRunFromCheck)(e,{nowait:!0})).run_id),await i.invalidateQueries({queryKey:e9.cacheKeys.check(e)}),A&&A())},[v,e,u,i,A]),L=(0,p.useCallback)(async()=>{if(f(!0),Q)return await (0,il.cancelRun)(Q)},[Q]),R=async()=>{if(!v)return;let e=function(e){return nO`
37
+ <details><summary>${`${e.is_checked?"✅ ":""}${e.name}`}</summary>
38
+
39
+ ${function(e){if("query"===e.type||"query_diff"===e.type){let A,t;return`${n_(e)}
40
+
41
+ ${A=e.params,t="",A&&"sql_template"in A&&(t=A.sql_template),nM`
42
+ **SQL**
43
+ \`\`\`sql
44
+ ${t}
45
+ \`\`\`
46
+ `}`}return n_(e)}(e)}
47
+
48
+ </details>`}(v);if(!window.isSecureContext)return void a("Failed to copy the check to clipboard",Error("Copy to clipboard is available only in secure contexts (HTTPS)"));try{await navigator.clipboard.writeText(e),s("Copied the check to the clipboard")}catch(e){a("Failed to copy the check to clipboard",e)}},T=(0,p.useCallback)(()=>{let e=v?.is_checked;j({is_checked:!e}),e||l()},[v?.is_checked,j,l]),[M,O]=(0,p.useState)("result"),{ref:N,onCopyToClipboard:P,onMouseEnter:_,onMouseLeave:K}=dG(),V=function({name:e,description:A,type:t,params:n,viewOptions:r}){let i={name:e,description:A,type:t,params:n};return r&&(i.view_options=r),uq.stringify({checks:[i]})}({name:v?.name??"",description:v?.description??"",type:v?.type??"",params:v?.params,viewOptions:v?.view_options});if(C)return(0,g.jsx)(As.Center,{h:"100%",children:"Loading"});if(b)return(0,g.jsxs)(As.Center,{h:"100%",children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:b.message})]});if(!v)return(0,g.jsx)(tW,{minSize:100,sizes:[30,70],style:{height:"100%",width:"100%",maxHeight:"100%"},children:(0,g.jsx)(eb.Box,{style:{contain:"strict"},display:"flex",flexDirection:"column",children:(0,g.jsx)(ev.Flex,{p:"0px 16px",alignItems:"center",h:"40px",children:(0,g.jsx)(Aq,{name:"Check not found",setName:()=>{}})})})});let G=F?.run_at?i6(new Date(F.run_at),{addSuffix:!0}):null;return(0,g.jsxs)(tW,{minSize:100,sizes:[30,70],style:{height:"100%",width:"100%",maxHeight:"100%"},children:[(0,g.jsxs)(eb.Box,{style:{contain:"strict"},display:"flex",flexDirection:"column",children:[(0,g.jsxs)(ev.Flex,{p:"0px 16px",alignItems:"center",h:"40px",children:[(0,g.jsx)(Aq,{name:v.name,setName:e=>{j({name:e})}}),S&&(0,g.jsx)(to.Tooltip,{content:"Preset Check defined in recce config",children:(0,g.jsxs)(AS.Root,{size:"sm",flex:"0 0 auto",ml:"2",children:[(0,g.jsx)(AS.StartElement,{children:(0,g.jsx)(AT,{size:"14px"})}),(0,g.jsx)(AS.Label,{children:"Preset"})]})}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsxs)(e5.HStack,{mr:"10px",children:[G&&(0,g.jsx)(eb.Box,{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:"10pt",children:G}),(0,g.jsxs)(Aw.Menu.Root,{children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(Am.IconButton,{rounded:"full",variant:"ghost",size:"sm",children:(0,g.jsx)(eU.Icon,{as:AZ.VscKebabVertical})})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{children:[(0,g.jsx)(Aw.Menu.Item,{value:"preset-check-template",onClick:()=>{x((0,g.jsx)(fg,{})),m()},children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(AM,{})," Get Preset Check Template"]})}),(0,g.jsx)(Aw.Menu.Item,{value:"copy-markdown",onClick:()=>R(),children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(aG.PiCopy,{})," Copy Markdown"]})}),(0,g.jsx)(AD.MenuSeparator,{}),(0,g.jsx)(Aw.Menu.Item,{value:"delete",color:"red.solid",onClick:()=>{H()},disabled:n.disableUpdateChecklist,children:(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(aG.PiTrashFill,{})," Delete"]})})]})})})]}),(0,g.jsx)(to.Tooltip,{content:fh(v.type,F)?"Run the check first":v.is_checked?"Mark as Pending":"Mark as Approved",positioning:{placement:"bottom-end"},children:(0,g.jsxs)(Ac.Button,{flex:"0 0 auto",size:"sm",colorPalette:v.is_checked?"green":"gray",variant:v.is_checked?"solid":"outline",onClick:()=>{T()},disabled:fh(v.type,F)||n.disableUpdateChecklist,children:[v.is_checked?(0,g.jsx)(aG.PiCheckCircle,{}):(0,g.jsx)(eU.Icon,{as:AZ.VscCircleLarge,color:"lightgray"})," ",v.is_checked?"Approved":"Mark as Approved"]})})]})]}),(0,g.jsx)(eb.Box,{flex:"1",p:"8px 16px",minHeight:"100px",children:(0,g.jsx)(nF,{value:v.description,onChange:e=>{j({description:e})}},v.check_id)})]}),(0,g.jsx)(eb.Box,{style:{contain:"strict"},children:(0,g.jsxs)(em.Root,{height:"100%",display:"flex",flexDirection:"column",value:M,onValueChange:e=>{O(e.value)},children:[(0,g.jsxs)(em.List,{height:"50px",children:[(0,g.jsx)(em.Trigger,{value:"result",fontSize:"0.75rem",children:"Result"}),("query"===v.type||"query_diff"===v.type)&&(0,g.jsx)(em.Trigger,{value:"query",fontSize:"0.75rem",children:"Query"}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsxs)(e5.HStack,{mr:"10px",children:[t&&(0,g.jsx)(to.Tooltip,{content:"Rerun",children:(0,g.jsxs)(Ac.Button,{variant:"outline",loading:E,size:"sm",onClick:()=>D(),disabled:n.disableDatabaseQuery,children:[(0,g.jsx)(aG.PiRepeat,{})," Rerun"]})}),(0,g.jsxs)(Ac.Button,{variant:"outline",disabled:fh(v.type,F)||"result"!==M,onMouseEnter:_,onMouseLeave:K,size:"sm",onClick:async()=>{"lineage_diff"===v.type?k.current?.copyToClipboard():await P(),(0,Ae.trackCopyToClipboard)({type:v.type,from:"check"})},children:[(0,g.jsx)(aG.PiCopy,{})," Copy to Clipboard"]})]})]}),(0,g.jsxs)(em.ContentGroup,{height:"100%",flex:"1",style:{contain:"strict"},children:[(0,g.jsxs)(em.Content,{value:"result",p:0,width:"100%",height:"100%",children:[t&&(v.last_run||Q?(0,g.jsx)(i5,{ref:N,isRunning:E,isAborting:h,run:Q?F:v.last_run,error:U,progress:d,RunResultView:t,viewOptions:v.view_options,onViewOptionsChanged:e=>{j({view_options:e})},onCancel:L,onExecuteRun:D}):(0,g.jsx)(As.Center,{bg:"rgb(249,249,249)",height:"100%",children:(0,g.jsxs)(Al.VStack,{gap:4,children:[(0,g.jsx)(eb.Box,{children:"This action is part of the initial preset and has not been performed yet. Once performed, the result will be shown here."}),(0,g.jsx)(a$,{display:"metadata only"===n.mode,children:(0,g.jsx)(Ac.Button,{onClick:D,colorPalette:"blue",size:"sm",disabled:n.disableDatabaseQuery,children:"Run Query"})})]})})),"schema_diff"===v.type&&(0,g.jsx)(ny,{check:v,ref:N},v.check_id),"lineage_diff"===v.type&&(0,g.jsx)(fl,{check:v,ref:k},v.check_id)]}),("query"===v.type||"query_diff"===v.type||"query_base"===v.type)&&(0,g.jsx)(em.Content,{value:"query",p:0,height:"100%",width:"100%",children:v.params.base_sql_template?(0,g.jsx)(ia,{value:v.params.sql_template??"",baseValue:v.params.base_sql_template??"",options:{readOnly:!0}}):(0,g.jsx)(is,{value:v.params.sql_template??"",options:{readOnly:!0}})})]})]})}),(0,g.jsx)(Aj.Dialog.Root,{open:B,onOpenChange:w,placement:"center",size:"xl",children:(0,g.jsxs)(AH.Portal,{children:[y,(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{overflowY:"auto",height:"40%",width:"60%",children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:"Preset Check Template"})}),(0,g.jsxs)(Aj.Dialog.Body,{children:[(0,g.jsxs)(eE.Heading,{size:"sm",fontWeight:"bold",children:["Please"," ",(0,g.jsx)(e6.Text,{as:"span",cursor:"pointer",_hover:{textDecoration:"underline"},color:"blue.500",onClick:async()=>{await navigator.clipboard.writeText(V),s("Copied the template to the clipboard")},children:"copy"})," ","the following template and paste it into the"," ",(0,g.jsx)(AB,{query:"recce.yml",styles:{px:"1",py:"0",bg:"red.100"},children:"recce.yml"})," ","file."]}),(0,g.jsx)("br",{}),(0,g.jsx)(fc,{yamlTemplate:V})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})]})};function fg(){return(0,g.jsx)(Aj.Dialog.Backdrop,{bg:"blackAlpha.300",backdropFilter:"blur(10px) "})}var fp=p;function fB(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fm="function"==typeof Symbol&&Symbol.observable||"@@observable",fw=()=>Math.random().toString(36).substring(7).split("").join("."),fy={INIT:`@@redux/INIT${fw()}`,REPLACE:`@@redux/REPLACE${fw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fw()}`};function fx(e,A){return function(...t){return A(e.apply(this,t))}}function fC(e,A){if("function"==typeof e)return fx(e,A);if("object"!=typeof e||null===e)throw Error(fB(16));let t={};for(let n in e){let r=e[n];"function"==typeof r&&(t[n]=fx(r,A))}return t}function fb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,A)=>(...t)=>e(A(...t)))}e.i(75103);var fv=Symbol.for(p.version.startsWith("19")?"react.transitional.element":"react.element"),fQ=Symbol.for("react.portal"),fF=Symbol.for("react.fragment"),fU=Symbol.for("react.strict_mode"),fE=Symbol.for("react.profiler"),fI=Symbol.for("react.consumer"),fS=Symbol.for("react.context"),fk=Symbol.for("react.forward_ref"),fj=Symbol.for("react.suspense"),fH=Symbol.for("react.suspense_list"),fD=Symbol.for("react.memo"),fL=Symbol.for("react.lazy");function fR(e){return function(A){let t=e(A);function n(){return t}return n.dependsOnOwnProps=!1,n}}function fT(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function fM(e,A){return function(A,{displayName:t}){let n=function(e,A){return n.dependsOnOwnProps?n.mapToProps(e,A):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(A,t){n.mapToProps=e,n.dependsOnOwnProps=fT(e);let r=n(A,t);return"function"==typeof r&&(n.mapToProps=r,n.dependsOnOwnProps=fT(r),r=n(A,t)),r},n}}function fO(e,A){return(t,n)=>{throw Error(`Invalid value of type ${typeof e} for ${A} argument when connecting component ${n.wrappedComponentName}.`)}}function fN(e,A,t){return{...t,...e,...A}}var fP={notify(){},get:()=>[]};function f_(e,A){let t,n=fP,r=0,i=!1;function o(){l.onStateChange&&l.onStateChange()}function s(){if(r++,!t){let r,i;t=A?A.addNestedSub(o):e.subscribe(o),r=null,i=null,n={clear(){r=null,i=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],A=r;for(;A;)e.push(A),A=A.next;return e},subscribe(e){let A=!0,t=i={callback:e,next:null,prev:i};return t.prev?t.prev.next=t:r=t,function(){A&&null!==r&&(A=!1,t.next?t.next.prev=t.prev:i=t.prev,t.prev?t.prev.next=t.next:r=t.next)}}}}}function a(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=fP)}let l={addNestedSub:function(e){s();let A=n.subscribe(e),t=!1;return()=>{t||(t=!0,A(),a())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,a())},getListeners:()=>n};return l}var fK="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,fV="undefined"!=typeof navigator&&"ReactNative"===navigator.product,fG=fK||fV?p.useLayoutEffect:p.useEffect;function fz(e,A){return e===A?0!==e||0!==A||1/e==1/A:e!=e&&A!=A}function fW(e,A){if(fz(e,A))return!0;if("object"!=typeof e||null===e||"object"!=typeof A||null===A)return!1;let t=Object.keys(e),n=Object.keys(A);if(t.length!==n.length)return!1;for(let n=0;n<t.length;n++)if(!Object.prototype.hasOwnProperty.call(A,t[n])||!fz(e[t[n]],A[t[n]]))return!1;return!0}var f$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fJ={[fk]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[fD]:fY};function fq(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:A}=e;switch(A){case fv:switch(e=e.type){case fF:case fE:case fU:case fj:case fH:return e;default:switch(e=e&&e.$$typeof){case fS:case fk:case fL:case fD:case fI:return e;default:return A}}case fQ:return A}}}(e)===fD?fY:fJ[e.$$typeof]||f$}var fZ=Object.defineProperty,f0=Object.getOwnPropertyNames,f1=Object.getOwnPropertySymbols,f2=Object.getOwnPropertyDescriptor,f4=Object.getPrototypeOf,f3=Object.prototype;function f5(e,A){if("string"!=typeof A){if(f3){let t=f4(A);t&&t!==f3&&f5(e,t)}let t=f0(A);f1&&(t=t.concat(f1(A)));let n=fq(e),r=fq(A);for(let i=0;i<t.length;++i){let o=t[i];if(!fX[o]&&!(r&&r[o])&&!(n&&n[o])){let t=f2(A,o);try{fZ(e,o,t)}catch(e){}}}}return e}var f6=Symbol.for("react-redux-context"),f8="undefined"!=typeof globalThis?globalThis:{},f7=function(){if(!p.createContext)return{};let e=f8[f6]??=new Map,A=e.get(p.createContext);return A||(A=p.createContext(null),e.set(p.createContext,A)),A}(),f9=[null,null];function ge(e,A,t,n,r,i){e.current=n,t.current=!1,r.current&&(r.current=null,i())}function gA(e,A){return e===A}var gt=function(e,A,t,{pure:n,areStatesEqual:r=gA,areOwnPropsEqual:i=fW,areStatePropsEqual:o=fW,areMergedPropsEqual:s=fW,forwardRef:a=!1,context:l=f7}={}){let c=e?"function"==typeof e?fM(e,"mapStateToProps"):fO(e,"mapStateToProps"):fR(()=>({})),u=A&&"object"==typeof A?fR(e=>(function(e,A){let t={};for(let n in e){let r=e[n];"function"==typeof r&&(t[n]=(...e)=>A(r(...e)))}return t})(A,e)):A?"function"==typeof A?fM(A,"mapDispatchToProps"):fO(A,"mapDispatchToProps"):fR(e=>({dispatch:e})),d=t?"function"==typeof t?function(e,{displayName:A,areMergedPropsEqual:n}){let r,i=!1;return function(e,A,o){let s=t(e,A,o);return i?n(s,r)||(r=s):(i=!0,r=s),r}}:fO(t,"mergeProps"):()=>fN,h=!!e;return e=>{let A=e.displayName||e.name||"Component",t=`Connect(${A})`,n={shouldHandleStateChanges:h,displayName:t,wrappedComponentName:A,WrappedComponent:e,initMapStateToProps:c,initMapDispatchToProps:u,initMergeProps:d,areStatesEqual:r,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:s};function f(A){var t;let r,[i,o,s]=p.useMemo(()=>{let{reactReduxForwardedRef:e,...t}=A;return[A.context,e,t]},[A]),a=p.useMemo(()=>(i?.Consumer,l),[i,l]),c=p.useContext(a),u=!!A.store&&!!A.store.getState&&!!A.store.dispatch,d=!!c&&!!c.store,f=u?A.store:c.store,g=d?c.getServerState:f.getState,B=p.useMemo(()=>(function(e,{initMapStateToProps:A,initMapDispatchToProps:t,initMergeProps:n,...r}){return function(e,A,t,n,{areStatesEqual:r,areOwnPropsEqual:i,areStatePropsEqual:o}){let s,a,l,c,u,d=!1;return function(h,f){return d?function(d,h){let f=!i(h,a),g=!r(d,s,h,a);if(s=d,a=h,f&&g)return l=e(s,a),A.dependsOnOwnProps&&(c=A(n,a)),u=t(l,c,a);if(f)return e.dependsOnOwnProps&&(l=e(s,a)),A.dependsOnOwnProps&&(c=A(n,a)),u=t(l,c,a);if(g){let A,n;return n=!o(A=e(s,a),l),l=A,n&&(u=t(l,c,a)),u}return u}(h,f):(l=e(s=h,a=f),c=A(n,a),u=t(l,c,a),d=!0,u)}}(A(e,r),t(e,r),n(e,r),e,r)})(f.dispatch,n),[f]),[m,w]=p.useMemo(()=>{if(!h)return f9;let e=f_(f,u?void 0:c.subscription),A=e.notifyNestedSubs.bind(e);return[e,A]},[f,u,c]),y=p.useMemo(()=>u?c:{...c,subscription:m},[u,c,m]),x=p.useRef(void 0),C=p.useRef(s),b=p.useRef(void 0),v=p.useRef(!1),Q=p.useRef(!1),F=p.useRef(void 0);fG(()=>(Q.current=!0,()=>{Q.current=!1}),[]);let U=p.useMemo(()=>()=>b.current&&s===C.current?b.current:B(f.getState(),s),[f,s]),E=p.useMemo(()=>e=>{if(!m)return()=>{};if(!h)return()=>{};let A=!1,t=null,n=()=>{let n,r;if(A||!Q.current)return;let i=f.getState();try{n=B(i,C.current)}catch(e){r=e,t=e}r||(t=null),n===x.current?v.current||w():(x.current=n,b.current=n,v.current=!0,e())};return m.onStateChange=n,m.trySubscribe(),n(),()=>{if(A=!0,m.tryUnsubscribe(),m.onStateChange=null,t)throw t}},[m]);t=[C,x,v,s,b,w],fG(()=>ge(...t),void 0);try{r=p.useSyncExternalStore(E,U,g?()=>B(g(),s):U)}catch(e){throw F.current&&(e.message+=`
49
+ The error may be correlated with this previous error:
50
+ ${F.current.stack}
51
+
52
+ `),e}fG(()=>{F.current=void 0,b.current=void 0,x.current=r});let I=p.useMemo(()=>p.createElement(e,{...r,ref:o}),[o,e,r]);return p.useMemo(()=>h?p.createElement(a.Provider,{value:y},I):I,[a,I,y])}let g=p.memo(f);if(g.WrappedComponent=e,g.displayName=f.displayName=t,a){let A=p.forwardRef(function(e,A){return p.createElement(g,{...e,reactReduxForwardedRef:A})});return A.displayName=t,A.WrappedComponent=e,f5(A,e)}return f5(g,e)}},gn=function(e){let{children:A,context:t,serverState:n,store:r}=e,i=p.useMemo(()=>{let e=f_(r);return{store:r,subscription:e,getServerState:n?()=>n:void 0}},[r,n]),o=p.useMemo(()=>r.getState(),[r]);return fG(()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,o]),p.createElement((t||f7).Provider,{value:i},A)};function gr(e=f7){return function(){return p.useContext(e)}}var gi=gr(),go=function(e){var A=e.top,t=e.right,n=e.bottom,r=e.left;return{top:A,right:t,bottom:n,left:r,width:t-r,height:n-A,x:r,y:A,center:{x:(t+r)/2,y:(n+A)/2}}},gs=function(e,A){return{top:e.top-A.top,left:e.left-A.left,bottom:e.bottom+A.bottom,right:e.right+A.right}},ga=function(e,A){return{top:e.top+A.top,left:e.left+A.left,bottom:e.bottom-A.bottom,right:e.right-A.right}},gl={top:0,right:0,bottom:0,left:0},gc=function(e){var A=e.borderBox,t=e.margin,n=void 0===t?gl:t,r=e.border,i=void 0===r?gl:r,o=e.padding,s=void 0===o?gl:o,a=go(gs(A,n)),l=go(ga(A,i)),c=go(ga(l,s));return{marginBox:a,borderBox:go(A),paddingBox:l,contentBox:c,margin:n,border:i,padding:s}},gu=function(e){var A=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(A);return isNaN(t)&&function(e,A){if(!e)throw Error("Invariant failed")}(!1),t},gd=function(e,A){var t=e.borderBox,n=e.border,r=e.margin,i=e.padding;return gc({borderBox:{top:t.top+A.y,left:t.left+A.x,bottom:t.bottom+A.y,right:t.right+A.x},border:n,margin:r,padding:i})},gh=function(e,A){return void 0===A&&(A={x:window.pageXOffset,y:window.pageYOffset}),gd(e,A)},gf=function(e,A){return gc({borderBox:e,margin:{top:gu(A.marginTop),right:gu(A.marginRight),bottom:gu(A.marginBottom),left:gu(A.marginLeft)},padding:{top:gu(A.paddingTop),right:gu(A.paddingRight),bottom:gu(A.paddingBottom),left:gu(A.paddingLeft)},border:{top:gu(A.borderTopWidth),right:gu(A.borderRightWidth),bottom:gu(A.borderBottomWidth),left:gu(A.borderLeftWidth)}})},gg=function(e){return gf(e.getBoundingClientRect(),window.getComputedStyle(e))};let gp=function(e){var A=[],t=null,n=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];A=r,t||(t=requestAnimationFrame(function(){t=null,e.apply(void 0,A)}))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};var gB=e.i(30330);function gm(e,A){}gm.bind(null,"warn");let gw=gm.bind(null,"error");function gy(){}function gx(e,A,t){let n=A.map(A=>{var n;let r=(n=A.options,{...t,...n});return e.addEventListener(A.eventName,A.fn,r),function(){e.removeEventListener(A.eventName,A.fn,r)}});return function(){n.forEach(e=>{e()})}}class gC extends Error{}function gb(e,A){throw new gC("Invariant failed")}gC.prototype.toString=function(){return this.message};class gv extends fp.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=gy,this.onWindowError=e=>{let A=this.getCallbacks();A.isDragging()&&A.tryAbort(),e.error instanceof gC&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=gx(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof gC)return void this.setState({});throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}let gQ=`
53
+ Press space bar to start a drag.
54
+ When dragging you can use the arrow keys to move the item around and escape to cancel.
55
+ Some screen readers may require you to be in focus mode or to use your pass through key
56
+ `,gF=(e,A)=>{let t=e.droppableId===A.droppableId,n=e.index+1,r=A.index+1;return t?`
57
+ You have moved the item from position ${n}
58
+ to position ${r}
59
+ `:`
60
+ You have moved the item from position ${n}
61
+ in list ${e.droppableId}
62
+ to list ${A.droppableId}
63
+ in position ${r}
64
+ `},gU=(e,A,t)=>A.droppableId===t.droppableId?`
65
+ The item ${e}
66
+ has been combined with ${t.draggableId}`:`
67
+ The item ${e}
68
+ in list ${A.droppableId}
69
+ has been combined with ${t.draggableId}
70
+ in list ${t.droppableId}
71
+ `,gE=e=>`
72
+ The item has returned to its starting position
73
+ of ${e.index+1}
74
+ `,gI=e=>`
75
+ You have lifted an item in position ${e.source.index+1}
76
+ `,gS=e=>{let A=e.destination;if(A)return gF(e.source,A);let t=e.combine;return t?gU(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},gk=e=>{if("CANCEL"===e.reason)return`
77
+ Movement cancelled.
78
+ ${gE(e.source)}
79
+ `;let A=e.destination,t=e.combine;return A?`
80
+ You have dropped the item.
81
+ ${gF(e.source,A)}
82
+ `:t?`
83
+ You have dropped the item.
84
+ ${gU(e.draggableId,e.source,t)}
85
+ `:`
86
+ The item has been dropped while not over a drop area.
87
+ ${gE(e.source)}
88
+ `};function gj(e,A){if(e.length!==A.length)return!1;for(let r=0;r<e.length;r++){var t,n;if(!((t=e[r])===(n=A[r])||Number.isNaN(t)&&Number.isNaN(n))&&1)return!1}return!0}function gH(e,A){let t=(0,fp.useState)(()=>({inputs:A,result:e()}))[0],n=(0,fp.useRef)(!0),r=(0,fp.useRef)(t),i=n.current||A&&r.current.inputs&&gj(A,r.current.inputs)?r.current:{inputs:A,result:e()};return(0,fp.useEffect)(()=>{n.current=!1,r.current=i},[i]),i.result}function gD(e,A){return gH(()=>e,A)}let gL={x:0,y:0},gR=(e,A)=>({x:e.x+A.x,y:e.y+A.y}),gT=(e,A)=>({x:e.x-A.x,y:e.y-A.y}),gM=(e,A)=>e.x===A.x&&e.y===A.y,gO=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),gN=(e,A,t=0)=>"x"===e?{x:A,y:t}:{x:t,y:A},gP=(e,A)=>Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2),g_=(e,A)=>Math.min(...A.map(A=>gP(e,A))),gK=e=>A=>({x:e(A.x),y:e(A.y)}),gV=(e,A)=>({top:e.top+A.y,left:e.left+A.x,bottom:e.bottom+A.y,right:e.right+A.x}),gG=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}];var gz=({page:e,withPlaceholder:A,axis:t,frame:n})=>{var r,i;let o=((e,A)=>{if(A&&A.shouldClipSubject){var t;let n;return t=A.pageMarginBox,(n=go({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)})).width<=0||n.height<=0?null:n}return go(e)})((r=e.marginBox,i=n?gV(r,n.scroll.diff.displacement):r,A&&A.increasedBy?{...i,[t.end]:i[t.end]+A.increasedBy[t.line]}:i),n);return{page:e,withPlaceholder:A,active:o}},gW=(e,A)=>{e.frame||gb();let t=e.frame,n=gT(A,t.scroll.initial),r=gO(n),i={...t,scroll:{initial:t.scroll.initial,current:A,diff:{value:n,displacement:r},max:t.scroll.max}},o=gz({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};function g$(e,A=gj){let t=null;function n(...r){if(t&&t.lastThis===this&&A(r,t.lastArgs))return t.lastResult;let i=e.apply(this,r);return t={lastResult:i,lastArgs:r,lastThis:this},i}return n.clear=function(){t=null},n}let gX=g$(e=>e.reduce((e,A)=>(e[A.descriptor.id]=A,e),{})),gY=g$(e=>e.reduce((e,A)=>(e[A.descriptor.id]=A,e),{})),gJ=g$(e=>Object.values(e)),gq=g$(e=>Object.values(e));var gZ=g$((e,A)=>gq(A).filter(A=>e===A.descriptor.droppableId).sort((e,A)=>e.descriptor.index-A.descriptor.index));function g0(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function g1(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var g2=g$((e,A)=>A.filter(A=>A.descriptor.id!==e.descriptor.id)),g4=(e,A)=>e.descriptor.droppableId===A.descriptor.id;let g3={point:gL,value:0},g5={invisible:{},visible:{},all:[]},g6={displaced:g5,displacedBy:g3,at:null};var g8=(e,A)=>t=>e<=t&&t<=A,g7=e=>{let A=g8(e.top,e.bottom),t=g8(e.left,e.right);return n=>{if(A(n.top)&&A(n.bottom)&&t(n.left)&&t(n.right))return!0;let r=A(n.top)||A(n.bottom),i=t(n.left)||t(n.right);if(r&&i)return!0;let o=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!!o&&!!s||o&&i||s&&r}},g9=e=>{let A=g8(e.top,e.bottom),t=g8(e.left,e.right);return e=>A(e.top)&&A(e.bottom)&&t(e.left)&&t(e.right)};let pe={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pA={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},pt=({target:e,destination:A,viewport:t,withDroppableDisplacement:n,isVisibleThroughFrameFn:r})=>{let i=n?gV(e,A.frame?A.frame.scroll.diff.displacement:gL):e;return!!A.subject.active&&r(A.subject.active)(i)&&r(t)(i)},pn=e=>pt({...e,isVisibleThroughFrameFn:g9});function pr({afterDragging:e,destination:A,displacedBy:t,viewport:n,forceShouldAnimate:r,last:i}){return e.reduce(function(e,o){let s=go(gs(o.page.marginBox,{top:t.point.y,right:0,bottom:0,left:t.point.x})),a=o.descriptor.id;if(e.all.push(a),!pt({target:s,destination:A,viewport:n,withDroppableDisplacement:!0,isVisibleThroughFrameFn:g7}))return e.invisible[o.descriptor.id]=!0,e;let l=((e,A,t)=>{if("boolean"==typeof t)return t;if(!A)return!0;let{invisible:n,visible:r}=A;if(n[e])return!1;let i=r[e];return!i||i.shouldAnimate})(a,i,r);return e.visible[a]={draggableId:a,shouldAnimate:l},e},{all:[],visible:{},invisible:{}})}function pi({insideDestination:e,inHomeList:A,displacedBy:t,destination:n}){let r=function(e,A){if(!e.length)return 0;let t=e[e.length-1].descriptor.index;return A.inHomeList?t:t+1}(e,{inHomeList:A});return{displaced:g5,displacedBy:t,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:r}}}}function po({draggable:e,insideDestination:A,destination:t,viewport:n,displacedBy:r,last:i,index:o,forceShouldAnimate:s}){let a=g4(e,t);if(null==o)return pi({insideDestination:A,inHomeList:a,displacedBy:r,destination:t});let l=A.find(e=>e.descriptor.index===o);if(!l)return pi({insideDestination:A,inHomeList:a,displacedBy:r,destination:t});let c=g2(e,A),u=A.indexOf(l);return{displaced:pr({afterDragging:c.slice(u),destination:t,displacedBy:r,last:i,viewport:n.frame,forceShouldAnimate:s}),displacedBy:r,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:o}}}}function ps(e,A){return!!A.effected[e]}let pa=(e,A)=>A.margin[e.start]+A.borderBox[e.size]/2,pl=(e,A,t)=>A[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2,pc=({axis:e,moveRelativeTo:A,isMoving:t})=>gN(e.line,A.marginBox[e.end]+pa(e,t),pl(e,A.marginBox,t)),pu=({axis:e,moveRelativeTo:A,isMoving:t})=>gN(e.line,A.marginBox[e.start]-(t.margin[e.end]+t.borderBox[e.size]/2),pl(e,A.marginBox,t));var pd=(e,A)=>{let t=e.frame;return t?gR(A,t.scroll.diff.displacement):A},ph=e=>{let A=(({impact:e,draggable:A,droppable:t,draggables:n,afterCritical:r})=>{let i=A.page.borderBox.center,o=e.at;return t&&o?"REORDER"===o.type?(({impact:e,draggable:A,draggables:t,droppable:n,afterCritical:r})=>{let i=gZ(n.descriptor.id,t),o=A.page,s=n.axis;if(!i.length)return(({axis:e,moveInto:A,isMoving:t})=>gN(e.line,A.contentBox[e.start]+pa(e,t),pl(e,A.contentBox,t)))({axis:s,moveInto:n.page,isMoving:o});let{displaced:a,displacedBy:l}=e,c=a.all[0];if(c){let e=t[c];return ps(c,r)?pu({axis:s,moveRelativeTo:e.page,isMoving:o}):pu({axis:s,moveRelativeTo:gd(e.page,l.point),isMoving:o})}let u=i[i.length-1];return u.descriptor.id===A.descriptor.id?o.borderBox.center:ps(u.descriptor.id,r)?pc({axis:s,moveRelativeTo:gd(u.page,gO(r.displacedBy.point)),isMoving:o}):pc({axis:s,moveRelativeTo:u.page,isMoving:o})})({impact:e,draggable:A,draggables:n,droppable:t,afterCritical:r}):(({afterCritical:e,impact:A,draggables:t})=>{let n=g1(A);n||gb();let r=n.draggableId;return gR(t[r].page.borderBox.center,(({displaced:e,afterCritical:A,combineWith:t,displacedBy:n})=>{let r=!!(e.visible[t]||e.invisible[t]);return ps(t,A)?r?gL:gO(n.point):r?n.point:gL})({displaced:A.displaced,afterCritical:e,combineWith:r,displacedBy:A.displacedBy}))})({impact:e,draggables:n,afterCritical:r}):i})(e),t=e.droppable;return t?pd(t,A):A},pf=(e,A)=>{let t=gT(A,e.scroll.initial),n=gO(t);return{frame:go({top:A.y,bottom:A.y+e.frame.height,left:A.x,right:A.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:A,diff:{value:t,displacement:n}}}};function pg(e,A){return e.map(e=>A[e])}var pp=({pageBorderBoxCenter:e,draggable:A,viewport:t})=>{let n=gT(gR(t.scroll.diff.displacement,e),A.page.borderBox.center);return gR(A.client.borderBox.center,n)},pB=({draggable:e,destination:A,newPageBorderBoxCenter:t,viewport:n,withDroppableDisplacement:r,onlyOnMainAxis:i=!1})=>{let o,s=gT(t,e.page.borderBox.center),a={target:gV(e.page.borderBox,s),destination:A,withDroppableDisplacement:r,viewport:n};return i?pt({...a,isVisibleThroughFrameFn:(o=a.destination.axis,e=>{let A=g8(e.top,e.bottom),t=g8(e.left,e.right);return e=>o===pe?A(e.top)&&A(e.bottom):t(e.left)&&t(e.right)})}):pn(a)};let pm=e=>{let A=e.subject.active;return A||gb(),A},pw=(e,A)=>{let t=e.page.borderBox.center;return ps(e.descriptor.id,A)?gT(t,A.displacedBy.point):t};var py=g$(function(e,A){let t=A[e.line];return{value:t,point:gN(e.line,t)}});let px=(e,A)=>({...e,scroll:{...e.scroll,max:A}}),pC=(e,A,t)=>{let n=e.frame;g4(A,e)&&gb(),e.subject.withPlaceholder&&gb();let r=py(e.axis,A.displaceBy).point,i=((e,A,t)=>{let n=e.axis;if("virtual"===e.descriptor.mode)return gN(n.line,A[n.line]);let r=e.subject.page.contentBox[n.size],i=gZ(e.descriptor.id,t).reduce((e,A)=>e+A.client.marginBox[n.size],0)+A[n.line]-r;return i<=0?null:gN(n.line,i)})(e,r,t),o={placeholderSize:r,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){let A=gz({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:A}}let s=i?gR(n.scroll.max,i):n.scroll.max,a=px(n,s),l=gz({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:a});return{...e,subject:l,frame:a}};var pb=e=>{let A=e.at;return A?"REORDER"===A.type?A.destination.droppableId:A.combine.droppableId:null};function pv(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function pQ(e){let A=g8(e.top,e.bottom),t=g8(e.left,e.right);return function(e){return A(e.y)&&t(e.x)}}function pF({displaced:e,id:A}){return!!(e.visible[A]||e.invisible[A])}var pU=({pageOffset:e,draggable:A,draggables:t,droppables:n,previousImpact:r,viewport:i,afterCritical:o})=>{var s,a;let l,c=go(gV(A.page.borderBox,e)),u=function({pageBorderBox:e,draggable:A,droppables:t}){let n=gJ(t).filter(A=>{if(!A.isEnabled)return!1;let t=A.subject.active;if(!t||!(e.left<t.right)||!(e.right>t.left)||!(e.top<t.bottom)||!(e.bottom>t.top))return!1;if(pQ(t)(e.center))return!0;let n=A.axis,r=t.center[n.crossAxisLine],i=e[n.crossAxisStart],o=e[n.crossAxisEnd],s=g8(t[n.crossAxisStart],t[n.crossAxisEnd]),a=s(i),l=s(o);return!a&&!l||(a?i<r:o>r)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:A,candidates:t}){let n=A.page.borderBox.center,r=t.map(A=>{let t=A.axis,r=gN(A.axis.line,e.center[t.line],A.page.borderBox.center[t.crossAxisLine]);return{id:A.descriptor.id,distance:gP(n,r)}}).sort((e,A)=>A.distance-e.distance);return r[0]?r[0].id:null}({pageBorderBox:e,draggable:A,candidates:n}):null}({pageBorderBox:c,draggable:A,droppables:n});if(!u)return g6;let d=n[u],h=gZ(d.descriptor.id,t),f=(s=d,a=c,(l=s.frame)?go(gV(a,l.scroll.diff.value)):a);return(({draggable:e,pageBorderBoxWithDroppableScroll:A,previousImpact:t,destination:n,insideDestination:r,afterCritical:i})=>{if(!n.isCombineEnabled)return null;let o=n.axis,s=py(n.axis,e.displaceBy),a=s.value,l=A[o.start],c=A[o.end],u=g2(e,r).find(e=>{let A=e.descriptor.id,n=e.page.borderBox,r=n[o.size]/4,s=ps(A,i),u=pF({displaced:t.displaced,id:A});return s?u?c>n[o.start]+r&&c<n[o.end]-r:l>n[o.start]-a+r&&l<n[o.end]-a-r:u?c>n[o.start]+a+r&&c<n[o.end]+a-r:l>n[o.start]+r&&l<n[o.end]-r});return u?{displacedBy:s,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:f,draggable:A,previousImpact:r,destination:d,insideDestination:h,afterCritical:o})||(({pageBorderBoxWithDroppableScroll:e,draggable:A,destination:t,insideDestination:n,last:r,viewport:i,afterCritical:o})=>{let s=t.axis,a=py(t.axis,A.displaceBy),l=a.value,c=e[s.start],u=e[s.end],d=g2(A,n).find(e=>{let A=e.descriptor.id,t=e.page.borderBox.center[s.line],n=ps(A,o),i=pF({displaced:r,id:A});return n?i?u<=t:c<t-l:i?u<=t+l:c<t})||null,h=function({draggable:e,closest:A,inHomeList:t}){return A?t&&A.descriptor.index>e.descriptor.index?A.descriptor.index-1:A.descriptor.index:null}({draggable:A,closest:d,inHomeList:g4(A,t)});return po({draggable:A,insideDestination:n,destination:t,viewport:i,last:r,displacedBy:a,index:h})})({pageBorderBoxWithDroppableScroll:f,draggable:A,destination:d,insideDestination:h,last:r.displaced,viewport:i,afterCritical:o})},pE=(e,A)=>({...e,[A.descriptor.id]:A}),pI=({state:e,clientSelection:A,dimensions:t,viewport:n,impact:r,scrollJumpRequest:i})=>{let o=n||e.viewport,s=t||e.dimensions,a=A||e.current.client.selection,l=gT(a,e.initial.client.selection),c={offset:l,selection:a,borderBoxCenter:gR(e.initial.client.borderBoxCenter,l)},u={selection:gR(c.selection,o.scroll.current),borderBoxCenter:gR(c.borderBoxCenter,o.scroll.current),offset:gR(c.offset,o.scroll.diff.value)},d={client:c,page:u};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:o,current:d};let h=s.draggables[e.critical.draggable.id],f=r||pU({pageOffset:u.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:o,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:A,droppables:t,previousImpact:n,impact:r})=>{let i=(({previousImpact:e,impact:A,droppables:t})=>{let n=pb(e),r=pb(A);if(!n||n===r)return t;let i=t[n];return i.subject.withPlaceholder?pE(t,(e=>{let A=e.subject.withPlaceholder;A||gb();let t=e.frame;if(!t){let A=gz({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:A}}let n=A.oldFrameMaxScroll;n||gb();let r=px(t,n),i=gz({page:e.subject.page,axis:e.axis,frame:r,withPlaceholder:null});return{...e,subject:i,frame:r}})(i)):t})({previousImpact:n,impact:r,droppables:t}),o=pb(r);if(!o)return i;let s=t[o];return g4(e,s)||s.subject.withPlaceholder?i:pE(i,pC(s,e,A))})({draggable:h,impact:f,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:d,dimensions:{draggables:s.draggables,droppables:g},impact:f,viewport:o,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},pS=({impact:e,viewport:A,draggables:t,destination:n,forceShouldAnimate:r})=>{var i;let o=e.displaced,s=pr({afterDragging:(i=o.all,i.map(e=>t[e])),destination:n,displacedBy:e.displacedBy,viewport:A.frame,forceShouldAnimate:r,last:o});return{...e,displaced:s}},pk=({impact:e,draggable:A,droppable:t,draggables:n,viewport:r,afterCritical:i})=>pp({pageBorderBoxCenter:ph({impact:e,draggable:A,draggables:n,droppable:t,afterCritical:i}),draggable:A,viewport:r}),pj=({state:e,dimensions:A,viewport:t})=>{"SNAP"!==e.movementMode&&gb();let n=e.impact,r=t||e.viewport,i=A||e.dimensions,{draggables:o,droppables:s}=i,a=o[e.critical.draggable.id],l=pb(n);l||gb();let c=s[l],u=pS({impact:n,viewport:r,destination:c,draggables:o}),d=pk({impact:u,draggable:a,droppable:c,draggables:o,viewport:r,afterCritical:e.afterCritical});return pI({impact:u,clientSelection:d,state:e,dimensions:i,viewport:r})},pH=({draggable:e,home:A,draggables:t,viewport:n})=>{let r,i=py(A.axis,e.displaceBy),o=gZ(A.descriptor.id,t),s=o.indexOf(e);-1===s&&gb();let a=o.slice(s+1),l=a.reduce((e,A)=>(e[A.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===A.descriptor.mode,displacedBy:i,effected:l};return{impact:{displaced:pr({afterDragging:a,destination:A,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:{index:(r=e.descriptor).index,droppableId:r.droppableId}}},afterCritical:c}};let pD=e=>{},pL=e=>{},pR=(e,A,t)=>{let n,r=(n=e.dimensions,{draggables:n.draggables,droppables:pE(n.droppables,A)});return"SNAP"!==e.movementMode||t?pI({state:e,dimensions:r}):pj({state:e,dimensions:r})};function pT(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}let pM={phase:"IDLE",completed:null,shouldFlush:!1};var pO=(e=pM,A)=>{if("FLUSH"===A.type)return{...pM,shouldFlush:!0};if("INITIAL_PUBLISH"===A.type){"IDLE"!==e.phase&&gb();let{critical:t,clientSelection:n,viewport:r,dimensions:i,movementMode:o}=A.payload,s=i.draggables[t.draggable.id],a=i.droppables[t.droppable.id],l={selection:n,borderBoxCenter:s.client.borderBox.center,offset:gL},c={client:l,page:{selection:gR(l.selection,r.scroll.initial),borderBoxCenter:gR(l.selection,r.scroll.initial),offset:gR(l.selection,r.scroll.diff.value)}},u=gJ(i.droppables).every(e=>!e.isFixedOnPage),{impact:d,afterCritical:h}=pH({draggable:s,home:a,draggables:i.draggables,viewport:r});return{phase:"DRAGGING",isDragging:!0,critical:t,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:u,impact:d,afterCritical:h,onLiftImpact:d,viewport:r,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===A.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&gb(),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===A.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&gb(),(({state:e,published:A})=>{pD();let t=A.modified.map(A=>gW(e.dimensions.droppables[A.droppableId],A.scroll)),n={...e.dimensions.droppables,...gX(t)},r=gY((({additions:e,updatedDroppables:A,viewport:t})=>{let n=t.scroll.diff.value;return e.map(e=>{let r,i=gR(n,((r=A[e.descriptor.droppableId].frame)||gb(),r).scroll.diff.value);return(({draggable:e,offset:A,initialWindowScroll:t})=>{let n=gd(e.client,A),r=gh(n,t);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:r}})({draggable:e,offset:i,initialWindowScroll:t.scroll.initial})})})({additions:A.additions,updatedDroppables:n,viewport:e.viewport})),i={...e.dimensions.draggables,...r};A.removals.forEach(e=>{delete i[e]});let o={droppables:n,draggables:i},s=pb(e.impact),a=s?o.droppables[s]:null,{impact:l,afterCritical:c}=pH({draggable:o.draggables[e.critical.draggable.id],home:o.droppables[e.critical.droppable.id],draggables:i,viewport:e.viewport}),u=a&&a.isCombineEnabled?e.impact:l,d=pU({pageOffset:e.current.page.offset,draggable:o.draggables[e.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:u,viewport:e.viewport,afterCritical:c});pL();let h={...e,phase:"DRAGGING",impact:d,onLiftImpact:l,dimensions:o,afterCritical:c,forceShouldAnimate:!1};return"COLLECTING"===e.phase?h:{...h,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:A.payload});if("MOVE"===A.type){if("DROP_PENDING"===e.phase)return e;pv(e)||gb();let{client:t}=A.payload;return gM(t,e.current.client.selection)?e:pI({state:e,clientSelection:t,impact:"SNAP"===e.movementMode?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===A.type){if("DROP_PENDING"===e.phase||"COLLECTING"===e.phase)return pT(e);pv(e)||gb();let{id:t,newScroll:n}=A.payload,r=e.dimensions.droppables[t];return r?pR(e,gW(r,n),!1):e}if("UPDATE_DROPPABLE_IS_ENABLED"===A.type){if("DROP_PENDING"===e.phase)return e;pv(e)||gb();let{id:t,isEnabled:n}=A.payload,r=e.dimensions.droppables[t];return r||gb(),r.isEnabled===n&&gb(),pR(e,{...r,isEnabled:n},!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===A.type){if("DROP_PENDING"===e.phase)return e;pv(e)||gb();let{id:t,isCombineEnabled:n}=A.payload,r=e.dimensions.droppables[t];return r||gb(),r.isCombineEnabled===n&&gb(),pR(e,{...r,isCombineEnabled:n},!0)}if("MOVE_BY_WINDOW_SCROLL"===A.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;pv(e)||gb(),e.isWindowScrollAllowed||gb();let t=A.payload.newScroll;if(gM(e.viewport.scroll.current,t))return pT(e);let n=pf(e.viewport,t);return"SNAP"===e.movementMode?pj({state:e,viewport:n}):pI({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===A.type){if(!pv(e))return e;let t=A.payload.maxScroll;if(gM(t,e.viewport.scroll.max))return e;let n={...e.viewport,scroll:{...e.viewport.scroll,max:t}};return{...e,viewport:n}}if("MOVE_UP"===A.type||"MOVE_DOWN"===A.type||"MOVE_LEFT"===A.type||"MOVE_RIGHT"===A.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&gb();let t=(({state:e,type:A})=>{var t,n;let r,i=(t=e.impact,n=e.dimensions.droppables,(r=pb(t))?n[r]:null),o=!!i,s=e.dimensions.droppables[e.critical.droppable.id],a=i||s,l=a.axis.direction,c="vertical"===l&&("MOVE_UP"===A||"MOVE_DOWN"===A)||"horizontal"===l&&("MOVE_LEFT"===A||"MOVE_RIGHT"===A);if(c&&!o)return null;let u="MOVE_DOWN"===A||"MOVE_RIGHT"===A,d=e.dimensions.draggables[e.critical.draggable.id],h=e.current.page.borderBoxCenter,{draggables:f,droppables:g}=e.dimensions;return c?(({isMovingForward:e,draggable:A,destination:t,draggables:n,previousImpact:r,viewport:i,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:a})=>{if(!t.isEnabled)return null;let l=gZ(t.descriptor.id,n),c=g4(A,t),u=(({isMovingForward:e,draggable:A,destination:t,insideDestination:n,previousImpact:r})=>{if(!t.isCombineEnabled||!g0(r))return null;function i(e){let A={type:"COMBINE",combine:{draggableId:e,droppableId:t.descriptor.id}};return{...r,at:A}}let o=r.displaced.all,s=o.length?o[0]:null;if(e)return s?i(s):null;let a=g2(A,n);if(!s)return a.length?i(a[a.length-1].descriptor.id):null;let l=a.findIndex(e=>e.descriptor.id===s);-1===l&&gb();let c=l-1;return c<0?null:i(a[c].descriptor.id)})({isMovingForward:e,draggable:A,destination:t,insideDestination:l,previousImpact:r})||(({isMovingForward:e,isInHomeList:A,draggable:t,draggables:n,destination:r,insideDestination:i,previousImpact:o,viewport:s,afterCritical:a})=>{let l=o.at;if(l||gb(),"REORDER"===l.type){let n=(({isMovingForward:e,isInHomeList:A,insideDestination:t,location:n})=>{if(!t.length)return null;let r=n.index,i=e?r+1:r-1,o=t[0].descriptor.index,s=t[t.length-1].descriptor.index;return i<o||i>(A?s:s+1)?null:i})({isMovingForward:e,isInHomeList:A,location:l.destination,insideDestination:i});return null==n?null:po({draggable:t,insideDestination:i,destination:r,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:n})}let c=(({isMovingForward:e,destination:A,draggables:t,combine:n,afterCritical:r})=>{if(!A.isCombineEnabled)return null;let i=n.draggableId,o=t[i].descriptor.index;return ps(i,r)?e?o:o-1:e?o+1:o})({isMovingForward:e,destination:r,displaced:o.displaced,draggables:n,combine:l.combine,afterCritical:a});return null==c?null:po({draggable:t,insideDestination:i,destination:r,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:c})})({isMovingForward:e,isInHomeList:c,draggable:A,draggables:n,destination:t,insideDestination:l,previousImpact:r,viewport:i,afterCritical:a});if(!u)return null;let d=ph({impact:u,draggable:A,droppable:t,draggables:n,afterCritical:a});if(pB({draggable:A,destination:t,newPageBorderBoxCenter:d,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:pp({pageBorderBoxCenter:d,draggable:A,viewport:i}),impact:u,scrollJumpRequest:null};let h=gT(d,o),f=(({impact:e,viewport:A,destination:t,draggables:n,maxScrollChange:r})=>{let i=pf(A,gR(A.scroll.current,r)),o=t.frame?gW(t,gR(t.frame.scroll.current,r)):t,s=e.displaced,a=pr({afterDragging:pg(s.all,n),destination:t,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),l=pr({afterDragging:pg(s.all,n),destination:o,displacedBy:e.displacedBy,viewport:A.frame,last:s,forceShouldAnimate:!1}),c={},u={},d=[s,a,l];return s.all.forEach(e=>{let A=function(e,A){for(let t=0;t<A.length;t++){let n=A[t].visible[e];if(n)return n}return null}(e,d);if(A){u[e]=A;return}c[e]=!0}),{...e,displaced:{all:s.all,invisible:c,visible:u}}})({impact:u,viewport:i,destination:t,draggables:n,maxScrollChange:h});return{clientSelection:s,impact:f,scrollJumpRequest:h}})({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:d,destination:a,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:A,draggable:t,isOver:n,draggables:r,droppables:i,viewport:o,afterCritical:s})=>{let a=(({isMovingForward:e,pageBorderBoxCenter:A,source:t,droppables:n,viewport:r})=>{let i=t.subject.active;if(!i)return null;let o=t.axis,s=g8(i[o.start],i[o.end]),a=gJ(n).filter(e=>e!==t).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>g7(r.frame)(pm(e))).filter(A=>{let t=pm(A);return e?i[o.crossAxisEnd]<t[o.crossAxisEnd]:t[o.crossAxisStart]<i[o.crossAxisStart]}).filter(e=>{let A=pm(e),t=g8(A[o.start],A[o.end]);return s(A[o.start])||s(A[o.end])||t(i[o.start])||t(i[o.end])}).sort((A,t)=>{let n=pm(A)[o.crossAxisStart],r=pm(t)[o.crossAxisStart];return e?n-r:r-n}).filter((e,A,t)=>pm(e)[o.crossAxisStart]===pm(t[0])[o.crossAxisStart]);if(!a.length)return null;if(1===a.length)return a[0];let l=a.filter(e=>g8(pm(e)[o.start],pm(e)[o.end])(A[o.line]));return 1===l.length?l[0]:l.length>1?l.sort((e,A)=>pm(e)[o.start]-pm(A)[o.start])[0]:a.sort((e,t)=>{let n=g_(A,gG(pm(e))),r=g_(A,gG(pm(t)));return n!==r?n-r:pm(e)[o.start]-pm(t)[o.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:A,source:n,droppables:i,viewport:o});if(!a)return null;let l=gZ(a.descriptor.id,r),c=(({pageBorderBoxCenter:e,viewport:A,destination:t,insideDestination:n,afterCritical:r})=>n.filter(e=>{let n;return pn({target:(n=e.page.borderBox,ps(e.descriptor.id,r)?gV(n,gO(r.displacedBy.point)):n),destination:t,viewport:A.frame,withDroppableDisplacement:!0})}).sort((A,n)=>{let i=gP(e,pd(t,pw(A,r))),o=gP(e,pd(t,pw(n,r)));return i<o?-1:o<i?1:A.descriptor.index-n.descriptor.index})[0]||null)({pageBorderBoxCenter:A,viewport:o,destination:a,insideDestination:l,afterCritical:s}),u=(({previousPageBorderBoxCenter:e,moveRelativeTo:A,insideDestination:t,draggable:n,draggables:r,destination:i,viewport:o,afterCritical:s})=>{let a;if(!A){if(t.length)return null;let e={displaced:g5,displacedBy:g3,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},A=ph({impact:e,draggable:n,droppable:i,draggables:r,afterCritical:s}),a=g4(n,i)?i:pC(i,n,r);return pB({draggable:n,destination:a,newPageBorderBoxCenter:A,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}let l=e[i.axis.line]<=A.page.borderBox.center[i.axis.line],c=(a=A.descriptor.index,A.descriptor.id===n.descriptor.id||l?a:a+1),u=py(i.axis,n.displaceBy);return po({draggable:n,insideDestination:t,destination:i,viewport:o,displacedBy:u,last:g5,index:c})})({previousPageBorderBoxCenter:A,destination:a,draggable:t,draggables:r,moveRelativeTo:c,insideDestination:l,viewport:o,afterCritical:s});return u?{clientSelection:pp({pageBorderBoxCenter:ph({impact:u,draggable:t,droppable:a,draggables:r,afterCritical:s}),draggable:t,viewport:o}),impact:u,scrollJumpRequest:null}:null})({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:d,isOver:a,draggables:f,droppables:g,viewport:e.viewport,afterCritical:e.afterCritical})})({state:e,type:A.type});return t?pI({state:e,impact:t.impact,clientSelection:t.clientSelection,scrollJumpRequest:t.scrollJumpRequest}):e}if("DROP_PENDING"===A.type){let t=A.payload.reason;return"COLLECTING"!==e.phase&&gb(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:t}}if("DROP_ANIMATE"===A.type){let{completed:t,dropDuration:n,newHomeClientOffset:r}=A.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&gb(),{phase:"DROP_ANIMATING",completed:t,dropDuration:n,newHomeClientOffset:r,dimensions:e.dimensions}}if("DROP_COMPLETE"===A.type){let{completed:e}=A.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function pN(e,A){return e instanceof Object&&"type"in e&&e.type===A}let pP=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),p_=()=>({type:"COLLECTION_STARTING",payload:null}),pK=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),pV=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),pG=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),pz=e=>({type:"MOVE",payload:e}),pW=()=>({type:"MOVE_UP",payload:null}),p$=()=>({type:"MOVE_DOWN",payload:null}),pX=()=>({type:"MOVE_RIGHT",payload:null}),pY=()=>({type:"MOVE_LEFT",payload:null}),pJ=()=>({type:"FLUSH",payload:null}),pq=e=>({type:"DROP_COMPLETE",payload:e}),pZ=e=>({type:"DROP",payload:e}),p0=()=>({type:"DROP_ANIMATION_FINISHED",payload:null}),p1="cubic-bezier(.2,1,.1,1)",p2=0,p4=.7,p3=.75,p5={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},p6=`${p5.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,p8={fluid:`opacity ${p6}`,snap:`transform ${p6}, opacity ${p6}`,drop:e=>{let A=`${e}s ${p1}`;return`transform ${A}, opacity ${A}`},outOfTheWay:`transform ${p6}`,placeholder:`height ${p6}, width ${p6}, margin ${p6}`},p7=e=>gM(e,gL)?void 0:`translate(${e.x}px, ${e.y}px)`,{minDropTime:p9,maxDropTime:Be}=p5,BA=Be-p9,Bt=({getState:e,dispatch:A})=>t=>n=>{if(!pN(n,"DROP"))return void t(n);let r=e(),i=n.payload.reason;if("COLLECTING"===r.phase)return void A({type:"DROP_PENDING",payload:{reason:i}});if("IDLE"===r.phase)return;"DROP_PENDING"===r.phase&&r.isWaiting&&gb(),"DRAGGING"!==r.phase&&"DROP_PENDING"!==r.phase&&gb();let o=r.critical,s=r.dimensions,a=s.draggables[r.critical.draggable.id],{impact:l,didDropInsideDroppable:c}=(({draggables:e,reason:A,lastImpact:t,home:n,viewport:r,onLiftImpact:i})=>t.at&&"DROP"===A?"REORDER"===t.at.type?{impact:t,didDropInsideDroppable:!0}:{impact:{...t,displaced:g5},didDropInsideDroppable:!0}:{impact:pS({draggables:e,impact:i,destination:n,viewport:r,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:i,lastImpact:r.impact,afterCritical:r.afterCritical,onLiftImpact:r.onLiftImpact,home:r.dimensions.droppables[r.critical.droppable.id],viewport:r.viewport,draggables:r.dimensions.draggables}),u=c?g0(l):null,d=c?g1(l):null,h={index:o.draggable.index,droppableId:o.droppable.id},f={draggableId:a.descriptor.id,type:a.descriptor.type,source:h,reason:i,mode:r.movementMode,destination:u,combine:d},g=(({impact:e,draggable:A,dimensions:t,viewport:n,afterCritical:r})=>{let{draggables:i,droppables:o}=t,s=pb(e),a=s?o[s]:null,l=o[A.descriptor.droppableId];return gT(pk({impact:e,draggable:A,draggables:i,afterCritical:r,droppable:a||l,viewport:n}),A.client.borderBox.center)})({impact:l,draggable:a,dimensions:s,viewport:r.viewport,afterCritical:r.afterCritical}),p={critical:r.critical,afterCritical:r.afterCritical,result:f,impact:l};if(!(!gM(r.current.client.offset,g)||f.combine))return void A(pq({completed:p}));let B=(({current:e,destination:A,reason:t})=>{let n=gP(e,A);if(n<=0)return p9;if(n>=1500)return Be;let r=p9+n/1500*BA;return Number(("CANCEL"===t?.6*r:r).toFixed(2))})({current:r.current.client.offset,destination:g,reason:i});A({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:B,completed:p}})};var Bn=()=>({x:window.pageXOffset,y:window.pageYOffset});let Br=e=>{let A=function({onWindowScroll:e}){let A=gp(function(){e(Bn())}),t={eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{(e.target===window||e.target===window.document)&&A()}},n=gy;function r(){return n!==gy}return{start:function(){r()&&gb(),n=gx(window,[t])},stop:function(){r()||gb(),A.cancel(),n(),n=gy},isActive:r}}({onWindowScroll:A=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:A}})}});return e=>t=>{!A.isActive()&&pN(t,"INITIAL_PUBLISH")&&A.start(),A.isActive()&&(pN(t,"DROP_COMPLETE")||pN(t,"DROP_ANIMATE")||pN(t,"FLUSH"))&&A.stop(),e(t)}},Bi=(e,A)=>{pD(),A(),pL()},Bo=(e,A)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:A});function Bs(e,A,t,n){let r,i,o,s;if(!e)return void t(n(A));let a=(r=!1,i=!1,o=setTimeout(()=>{i=!0}),(s=e=>{r||i||(r=!0,t(e),clearTimeout(o))}).wasCalled=()=>r,s);e(A,{announce:a}),a.wasCalled()||t(n(A))}let Ba=e=>A=>t=>{if(!pN(t,"DROP_ANIMATION_FINISHED"))return void A(t);let n=e.getState();"DROP_ANIMATING"!==n.phase&&gb(),e.dispatch(pq({completed:n.completed}))},Bl=e=>{let A=null,t=null;return n=>r=>{if((pN(r,"FLUSH")||pN(r,"DROP_COMPLETE")||pN(r,"DROP_ANIMATION_FINISHED"))&&(t&&(cancelAnimationFrame(t),t=null),A&&(A(),A=null)),n(r),!pN(r,"DROP_ANIMATE"))return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch(p0())}};t=requestAnimationFrame(()=>{t=null,A=gx(window,[i])})}},Bc=e=>A=>t=>{if(A(t),!pN(t,"PUBLISH_WHILE_DRAGGING"))return;let n=e.getState();"DROP_PENDING"!==n.phase||n.isWaiting||e.dispatch(pZ({reason:n.reason}))},Bu=()=>({additions:{},removals:{},modified:{}});var Bd=({scrollHeight:e,scrollWidth:A,height:t,width:n})=>{let r=gT({x:A,y:e},{x:n,y:t});return{x:Math.max(0,r.x),y:Math.max(0,r.y)}},Bh=()=>{let e=document.documentElement;return e||gb(),e},Bf=()=>{let e=Bh();return Bd({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Bg(e,A,t){return t.descriptor.id!==A.id&&t.descriptor.type===A.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode}var Bp=(e,A)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==A&&"DROP"===e.completed.result.reason,BB=e=>{window.scrollBy(e.x,e.y)};let Bm=g$(e=>gJ(e).filter(e=>!!e.isEnabled&&!!e.frame)),Bw={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var By=({startOfRange:e,endOfRange:A,current:t})=>{let n=A-e;return 0===n?0:(t-e)/n},Bx=({distanceToEdge:e,thresholds:A,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:r})=>{let i=((e,A,t=()=>Bw)=>{let n=t();if(e>A.startScrollingFrom)return 0;if(e<=A.maxScrollValueAt)return n.maxPixelScroll;if(e===A.startScrollingFrom)return 1;let r=By({startOfRange:A.maxScrollValueAt,endOfRange:A.startScrollingFrom,current:e});return Math.ceil(n.maxPixelScroll*n.ease(1-r))})(e,A,r);return 0===i?0:n?Math.max(((e,A,t)=>{let n=t(),r=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,o=Date.now()-A;if(o>=i)return e;if(o<r)return 1;let s=By({startOfRange:r,endOfRange:i,current:o});return Math.ceil(e*n.ease(s))})(i,t,r),1):i},BC=({container:e,distanceToEdges:A,dragStartTime:t,axis:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=((e,A,t=()=>Bw)=>{let n=t(),r=e[A.size]*n.startFromPercentage;return{startScrollingFrom:r,maxScrollValueAt:e[A.size]*n.maxScrollAtPercentage}})(e,n,i);return A[n.end]<A[n.start]?Bx({distanceToEdge:A[n.end],thresholds:o,dragStartTime:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i}):-1*Bx({distanceToEdge:A[n.start],thresholds:o,dragStartTime:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i})};let Bb=gK(e=>0===e?0:e);var Bv=({dragStartTime:e,container:A,subject:t,center:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o={top:n.y-A.top,right:A.right-n.x,bottom:A.bottom-n.y,left:n.x-A.left},s=BC({container:A,distanceToEdges:o,dragStartTime:e,axis:pe,shouldUseTimeDampening:r,getAutoScrollerOptions:i}),a=Bb({x:BC({container:A,distanceToEdges:o,dragStartTime:e,axis:pA,shouldUseTimeDampening:r,getAutoScrollerOptions:i}),y:s});if(gM(a,gL))return null;let l=(({container:e,subject:A,proposedScroll:t})=>{let n=A.height>e.height,r=A.width>e.width;return r||n?r&&n?null:{x:r?0:t.x,y:n?0:t.y}:t})({container:A,subject:t,proposedScroll:a});return l?gM(l,gL)?null:l:null};let BQ=gK(e=>0===e?0:e>0?1:-1),BF=(i=(e,A)=>e<0?e:e>A?e-A:0,({current:e,max:A,change:t})=>{let n=gR(e,t),r={x:i(n.x,A.x),y:i(n.y,A.y)};return gM(r,gL)?null:r}),BU=({max:e,current:A,change:t})=>{let n={x:Math.max(A.x,e.x),y:Math.max(A.y,e.y)},r=BQ(t),i=BF({max:n,current:A,change:r});return!i||0!==r.x&&0===i.x||0!==r.y&&0===i.y},BE=(e,A)=>BU({current:e.scroll.current,max:e.scroll.max,change:A}),BI=(e,A)=>{let t=e.frame;return!!t&&BU({current:t.scroll.current,max:t.scroll.max,change:A})};var BS=({state:e,dragStartTime:A,shouldUseTimeDampening:t,scrollWindow:n,scrollDroppable:r,getAutoScrollerOptions:i})=>{let o=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let r=(({viewport:e,subject:A,center:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=Bv({dragStartTime:n,container:e.frame,subject:A,center:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i});return o&&BE(e,o)?o:null})({dragStartTime:A,viewport:e.viewport,subject:s,center:o,shouldUseTimeDampening:t,getAutoScrollerOptions:i});if(r)return void n(r)}let a=(({center:e,destination:A,droppables:t})=>{if(A){let e=t[A];return e.frame?e:null}return Bm(t).find(A=>(A.frame||gb(),pQ(A.frame.pageMarginBox)(e)))||null})({center:o,destination:pb(e.impact),droppables:e.dimensions.droppables});if(!a)return;let l=(({droppable:e,subject:A,center:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=e.frame;if(!o)return null;let s=Bv({dragStartTime:n,container:o.pageMarginBox,subject:A,center:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i});return s&&BI(e,s)?s:null})({dragStartTime:A,droppable:a,subject:s,center:o,shouldUseTimeDampening:t,getAutoScrollerOptions:i});l&&r(a.descriptor.id,l)};let Bk="data-rfd",Bj={base:o=`${Bk}-drag-handle`,draggableId:`${o}-draggable-id`,contextId:`${o}-context-id`},BH={base:s=`${Bk}-draggable`,contextId:`${s}-context-id`,id:`${s}-id`},BD={base:a=`${Bk}-droppable`,contextId:`${a}-context-id`,id:`${a}-id`},BL={contextId:`${Bk}-scroll-container-context-id`},BR=(e,A)=>e.map(e=>{let t=e.styles[A];return t?`${e.selector} { ${t} }`:""}).join(" "),BT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?fp.useLayoutEffect:fp.useEffect,BM=()=>{let e=document.querySelector("head");return e||gb(),e},BO=e=>{let A=document.createElement("style");return e&&A.setAttribute("nonce",e),A.type="text/css",A};function BN(e,A){return Array.from(e.querySelectorAll(A))}var BP=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function B_(e){return e instanceof BP(e).HTMLElement}function BK(e,A){let t=BN(document,`[${Bj.contextId}="${e}"]`);if(!t.length)return null;let n=t.find(e=>e.getAttribute(Bj.draggableId)===A);return n&&B_(n)?n:null}function BV(){let e={draggables:{},droppables:{}},A=[];function t(e){A.length&&A.forEach(A=>A(e))}function n(A){return e.draggables[A]||null}function r(A){return e.droppables[A]||null}return{draggable:{register:A=>{e.draggables[A.descriptor.id]=A,t({type:"ADDITION",value:A})},update:(A,t)=>{let n=e.draggables[t.descriptor.id];n&&n.uniqueId===A.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[A.descriptor.id]=A)},unregister:A=>{let r=A.descriptor.id,i=n(r);!i||A.uniqueId===i.uniqueId&&(delete e.draggables[r],e.droppables[A.descriptor.droppableId]&&t({type:"REMOVAL",value:A}))},getById:function(e){let A=n(e);return A||gb(),A},findById:n,exists:e=>!!n(e),getAllByType:A=>Object.values(e.draggables).filter(e=>e.descriptor.type===A)},droppable:{register:A=>{e.droppables[A.descriptor.id]=A},unregister:A=>{let t=r(A.descriptor.id);t&&A.uniqueId===t.uniqueId&&delete e.droppables[A.descriptor.id]},getById:function(e){let A=r(e);return A||gb(),A},findById:r,exists:e=>!!r(e),getAllByType:A=>Object.values(e.droppables).filter(e=>e.descriptor.type===A)},subscribe:function(e){return A.push(e),function(){let t=A.indexOf(e);-1!==t&&A.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},A.length=0}}}var BG=fp.default.createContext(null),Bz=()=>{let e=document.body;return e||gb(),e};let BW={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},B$={separator:"::"};function BX(e,A=B$){let t=fp.default.useId();return gH(()=>`${e}${A.separator}${t}`,[A.separator,e,t])}var BY=fp.default.createContext(null);let BJ=/(\d+)\.(\d+)\.(\d+)/,Bq=e=>{let A=BJ.exec(e);null==A&&gb();let t=Number(A[1]);return{major:t,minor:Number(A[2]),patch:Number(A[3]),raw:e}};function BZ(e){}function B0(e,A){BZ(()=>{(0,fp.useEffect)(()=>{try{e()}catch(e){gw(`
89
+ A setup problem was encountered.
90
+
91
+ > ${e.message}
92
+ `)}},A)})}function B1(e){let A=(0,fp.useRef)(e);return(0,fp.useEffect)(()=>{A.current=e}),A}function B2(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}let B4={13:!0,9:!0};var B3=e=>{B4[e.keyCode]&&e.preventDefault()};let B5=(l="visibilitychange","undefined"==typeof document?l:[l,`ms${l}`,`webkit${l}`,`moz${l}`,`o${l}`].find(e=>`on${e}`in document)||l),B6={type:"IDLE"};function B8(){}let B7={34:!0,33:!0,36:!0,35:!0},B9={type:"IDLE"},me=["input","button","textarea","select","option","optgroup","video","audio"],mA=(c="matches","undefined"==typeof document?c:[c,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||c);function mt(e){e.preventDefault()}function mn({expected:e,phase:A,isLockActive:t,shouldWarn:n}){return!!t()&&e===A}function mr({lockAPI:e,store:A,registry:t,draggableId:n}){if(e.isClaimed())return!1;let r=t.draggable.findById(n);return!!r&&!!r.options.isEnabled&&!!Bp(A.getState(),n)}let mi=[function(e){let A=(0,fp.useRef)(B6),t=(0,fp.useRef)(gy),n=gH(()=>({eventName:"mousedown",fn:function(A){if(A.defaultPrevented||0!==A.button||A.ctrlKey||A.metaKey||A.shiftKey||A.altKey)return;let n=e.findClosestDraggableId(A);if(!n)return;let r=e.tryGetLock(n,o,{sourceEvent:A});if(!r)return;A.preventDefault();let i={x:A.clientX,y:A.clientY};t.current(),l(r,i)}}),[e]),r=gH(()=>({eventName:"webkitmouseforcewillbegin",fn:A=>{if(A.defaultPrevented)return;let t=e.findClosestDraggableId(A);if(!t)return;let n=e.findOptionsForDraggable(t);!n||n.shouldRespectForcePress||e.canGetLock(t)&&A.preventDefault()}}),[e]),i=gD(function(){t.current=gx(window,[r,n],{passive:!1,capture:!0})},[r,n]),o=gD(()=>{"IDLE"!==A.current.type&&(A.current=B6,t.current(),i())},[i]),s=gD(()=>{let e=A.current;o(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[o]),a=gD(function(){t.current=gx(window,function({cancel:e,completed:A,getPhase:t,setPhase:n}){return[{eventName:"mousemove",fn:e=>{var A;let{button:r,clientX:i,clientY:o}=e;if(0!==r)return;let s={x:i,y:o},a=t();if("DRAGGING"===a.type){e.preventDefault(),a.actions.move(s);return}"PENDING"!==a.type&&gb(),A=a.point,(Math.abs(s.x-A.x)>=5||Math.abs(s.y-A.y)>=5)&&(e.preventDefault(),n({type:"DRAGGING",actions:a.actions.fluidLift(s)}))}},{eventName:"mouseup",fn:n=>{let r=t();"DRAGGING"!==r.type?e():(n.preventDefault(),r.actions.drop({shouldBlockNextClick:!0}),A())}},{eventName:"mousedown",fn:A=>{"DRAGGING"===t().type&&A.preventDefault(),e()}},{eventName:"keydown",fn:A=>{if("PENDING"===t().type)return void e();if(27===A.keyCode){A.preventDefault(),e();return}B3(A)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===t().type&&e()}},{eventName:"webkitmouseforcedown",fn:A=>{let n=t();("IDLE"===n.type&&gb(),n.actions.shouldRespectForcePress())?e():A.preventDefault()}},{eventName:B5,fn:e}]}({cancel:s,completed:o,getPhase:()=>A.current,setPhase:e=>{A.current=e}}),{capture:!0,passive:!1})},[s,o]),l=gD(function(e,t){"IDLE"!==A.current.type&&gb(),A.current={type:"PENDING",point:t,actions:e},a()},[a]);BT(function(){return i(),function(){t.current()}},[i])},function(e){let A=(0,fp.useRef)(B8),t=gH(()=>({eventName:"keydown",fn:function(t){if(t.defaultPrevented||32!==t.keyCode)return;let r=e.findClosestDraggableId(t);if(!r)return;let i=e.tryGetLock(r,a,{sourceEvent:t});if(!i)return;t.preventDefault();let o=!0,s=i.snapLift();function a(){o||gb(),o=!1,A.current(),n()}A.current(),A.current=gx(window,function(e,A){function t(){A(),e.cancel()}return[{eventName:"keydown",fn:n=>{if(27===n.keyCode){n.preventDefault(),t();return}if(32===n.keyCode){n.preventDefault(),A(),e.drop();return}if(40===n.keyCode){n.preventDefault(),e.moveDown();return}if(38===n.keyCode){n.preventDefault(),e.moveUp();return}if(39===n.keyCode){n.preventDefault(),e.moveRight();return}if(37===n.keyCode){n.preventDefault(),e.moveLeft();return}B7[n.keyCode]?n.preventDefault():B3(n)}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:B5,fn:t}]}(s,a),{capture:!0,passive:!1})}}),[e]),n=gD(function(){A.current=gx(window,[t],{passive:!1,capture:!0})},[t]);BT(function(){return n(),function(){A.current()}},[n])},function(e){let A=(0,fp.useRef)(B9),t=(0,fp.useRef)(gy),n=gD(function(){return A.current},[]),r=gD(function(e){A.current=e},[]),i=gH(()=>({eventName:"touchstart",fn:function(A){if(A.defaultPrevented)return;let n=e.findClosestDraggableId(A);if(!n)return;let r=e.tryGetLock(n,s,{sourceEvent:A});if(!r)return;let{clientX:i,clientY:o}=A.touches[0];t.current(),u(r,{x:i,y:o})}}),[e]),o=gD(function(){t.current=gx(window,[i],{capture:!0,passive:!1})},[i]),s=gD(()=>{let e=A.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),r(B9),t.current(),o())},[o,r]),a=gD(()=>{let e=A.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),l=gD(function(){let e={capture:!0,passive:!1},A={cancel:a,completed:s,getPhase:n},r=gx(window,function({cancel:e,completed:A,getPhase:t}){return[{eventName:"touchmove",options:{capture:!1},fn:A=>{let n=t();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;let{clientX:r,clientY:i}=A.touches[0];A.preventDefault(),n.actions.move({x:r,y:i})}},{eventName:"touchend",fn:n=>{let r=t();"DRAGGING"!==r.type?e():(n.preventDefault(),r.actions.drop({shouldBlockNextClick:!0}),A())}},{eventName:"touchcancel",fn:A=>{"DRAGGING"!==t().type||A.preventDefault(),e()}},{eventName:"touchforcechange",fn:A=>{let n=t();"IDLE"===n.type&&gb();let r=A.touches[0];if(!r||!(r.force>=.15))return;let i=n.actions.shouldRespectForcePress();if("PENDING"===n.type){i&&e();return}i?n.hasMoved?A.preventDefault():e():A.preventDefault()}},{eventName:B5,fn:e}]}(A),e),i=gx(window,function({cancel:e,getPhase:A}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:t=>{"DRAGGING"!==A().type||27===t.keyCode&&t.preventDefault(),e()}},{eventName:B5,fn:e}]}(A),e);t.current=function(){r(),i()}},[a,n,s]),c=gD(function(){let e=n();"PENDING"!==e.type&&gb(),r({type:"DRAGGING",actions:e.actions.fluidLift(e.point),hasMoved:!1})},[n,r]),u=gD(function(e,A){"IDLE"!==n().type&&gb(),r({type:"PENDING",point:A,actions:e,longPressTimerId:setTimeout(c,120)}),l()},[l,n,r,c]);BT(function(){return o(),function(){t.current();let e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),r(B9))}},[n,o,r]),BT(function(){return gx(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function mo(e){return e.current||gb(),e.current}function ms(e){var A;let t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,{contextId:C,setCallbacks:b,sensors:v,nonce:Q,dragHandleUsageInstructions:F}=e,U=(0,fp.useRef)(null);B0(()=>{let e;((e,A)=>{let t=Bq(e),n=Bq(A);if(n.major>t.major||!(n.major<t.major)&&(n.minor>t.minor||!(n.minor<t.minor)&&n.patch>=t.patch))return})("^18.0.0 || ^19.0.0",fp.default.version),(e=document.doctype)&&(e.name.toLowerCase(),e.publicId)},[]);let E=B1(e),I=gD(()=>{let e;return{onBeforeCapture:A=>{(0,ou.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(A)})},onBeforeDragStart:(e=E.current).onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}},[E]),S=gD(()=>{let e;return e=E.current,{...Bw,...e.autoScrollerOptions,durationDampening:{...Bw.durationDampening,...e.autoScrollerOptions}}},[E]),k=(t=gH(()=>{let e;return e=A,`rfd-announcement-${e}`},[A=C]),n=(0,fp.useRef)(null),(0,fp.useEffect)(function(){let e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,gB.default)(e.style,BW),Bz().appendChild(e),function(){setTimeout(function(){let A=Bz();A.contains(e)&&A.removeChild(e),e===n.current&&(n.current=null)})}},[t]),gD(e=>{let A=n.current;if(A){A.textContent=e;return}},[])),j=function({contextId:e,text:A}){let t=BX("hidden-text",{separator:"-"}),n=gH(()=>(function({contextId:e,uniqueId:A}){return`rfd-hidden-text-${e}-${A}`})({contextId:e,uniqueId:t}),[t,e]);return(0,fp.useEffect)(function(){let e=document.createElement("div");return e.id=n,e.textContent=A,e.style.display="none",Bz().appendChild(e),function(){let A=Bz();A.contains(e)&&A.removeChild(e)}},[n,A]),n}({contextId:C,text:F}),H=(r=gH(()=>{let e,A,t,n,r,i;return A=`
93
+ cursor: -webkit-grab;
94
+ cursor: grab;
95
+ `,t={selector:(e=e=>`[${e}="${C}"]`)(Bj.contextId),styles:{always:`
96
+ -webkit-touch-callout: none;
97
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
98
+ touch-action: manipulation;
99
+ `,resting:A,dragging:"pointer-events: none;",dropAnimating:A}},n=`
100
+ transition: ${p8.outOfTheWay};
101
+ `,r={selector:e(BH.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}},{always:BR(i=[r,t,{selector:e(BD.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:`
102
+ cursor: grabbing;
103
+ cursor: -webkit-grabbing;
104
+ user-select: none;
105
+ -webkit-user-select: none;
106
+ -moz-user-select: none;
107
+ -ms-user-select: none;
108
+ overflow-anchor: none;
109
+ `}}],"always"),resting:BR(i,"resting"),dragging:BR(i,"dragging"),dropAnimating:BR(i,"dropAnimating"),userCancel:BR(i,"userCancel")}},[C]),i=(0,fp.useRef)(null),o=(0,fp.useRef)(null),s=gD(g$(e=>{let A=o.current;A||gb(),A.textContent=e}),[]),BT(()=>{(i.current||o.current)&&gb();let e=BO(Q),A=BO(Q);return i.current=e,o.current=A,e.setAttribute(`${Bk}-always`,C),A.setAttribute(`${Bk}-dynamic`,C),BM().appendChild(e),BM().appendChild(A),a(r.always),s(r.resting),()=>{let e=e=>{let A=e.current;A||gb(),BM().removeChild(A),e.current=null};e(i),e(o)}},[Q,a=gD(e=>{let A=i.current;A||gb(),A.textContent=e},[]),s,r.always,r.resting,C]),l=gD(()=>s(r.dragging),[s,r.dragging]),c=gD(e=>{"DROP"===e?s(r.dropAnimating):s(r.userCancel)},[s,r.dropAnimating,r.userCancel]),gH(()=>({dragging:l,dropping:c,resting:u}),[l,c,u=gD(()=>{o.current&&s(r.resting)},[s,r.resting])])),D=gD(e=>{mo(U).dispatch(e)},[]),L=gH(()=>fC({publishWhileDragging:pP,updateDroppableScroll:pK,updateDroppableIsEnabled:pV,updateDroppableIsCombineEnabled:pG,collectionStarting:p_},D),[D]),R=(d=gH(BV,[]),(0,fp.useEffect)(()=>function(){d.clean()},[d]),d),T=gH(()=>{let e,A,t;return e=null,A=function({registry:e,callbacks:A}){let t=Bu(),n=null,r=()=>{n||(A.collectionStarting(),n=requestAnimationFrame(()=>{n=null,pD();let{additions:r,removals:i,modified:o}=t,s=Object.keys(r).map(A=>e.draggable.getById(A).getDimension(gL)).sort((e,A)=>e.descriptor.index-A.descriptor.index),a=Object.keys(o).map(A=>{let t=e.droppable.getById(A).callbacks.getScrollWhileDragging();return{droppableId:A,scroll:t}}),l={additions:s,removals:Object.keys(i),modified:a};t=Bu(),pL(),A.publish(l)}))};return{add:e=>{let A=e.descriptor.id;t.additions[A]=e,t.modified[e.descriptor.droppableId]=!0,t.removals[A]&&delete t.removals[A],r()},remove:e=>{let A=e.descriptor;t.removals[A.id]=!0,t.modified[A.droppableId]=!0,t.additions[A.id]&&delete t.additions[A.id],r()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,t=Bu())}}}({callbacks:{publish:L.publishWhileDragging,collectionStarting:L.collectionStarting},registry:R}),t=t=>{e||gb();let n=e.critical.draggable;"ADDITION"===t.type&&Bg(R,n,t.value)&&A.add(t.value),"REMOVAL"===t.type&&Bg(R,n,t.value)&&A.remove(t.value)},{updateDroppableIsEnabled:(A,t)=>{R.droppable.exists(A)||gb(),e&&L.updateDroppableIsEnabled({id:A,isEnabled:t})},updateDroppableIsCombineEnabled:(A,t)=>{e&&(R.droppable.exists(A)||gb(),L.updateDroppableIsCombineEnabled({id:A,isCombineEnabled:t}))},scrollDroppable:(A,t)=>{e&&R.droppable.getById(A).callbacks.scroll(t)},updateDroppableScroll:(A,t)=>{e&&(R.droppable.exists(A)||gb(),L.updateDroppableScroll({id:A,newScroll:t}))},startPublishing:A=>{e&&gb();let n=R.draggable.getById(A.draggableId),r=R.droppable.getById(n.descriptor.droppableId),i={draggable:n.descriptor,droppable:r.descriptor};return e={critical:i,unsubscribe:R.subscribe(t)},(({critical:e,scrollOptions:A,registry:t})=>{let n,r,i,o,s,a;pD();let l=(n=Bn(),r=Bf(),i=n.y,o=n.x,a=(s=Bh()).clientWidth,{frame:go({top:i,left:o,right:o+a,bottom:i+s.clientHeight}),scroll:{initial:n,current:n,max:r,diff:{value:gL,displacement:gL}}}),c=l.scroll.current,u=e.droppable,d=t.droppable.getAllByType(u.type).map(e=>e.callbacks.getDimensionAndWatchScroll(c,A)),h={draggables:gY(t.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(c))),droppables:gX(d)};return pL(),{dimensions:h,critical:e,viewport:l}})({critical:i,registry:R,scrollOptions:A.scrollOptions})},stopPublishing:()=>{if(!e)return;A.stop();let t=e.critical.droppable;R.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),e.unsubscribe(),e=null}}},[R,L]),M=gH(()=>(({scrollDroppable:e,scrollWindow:A,move:t,getAutoScrollerOptions:n})=>{let r=(({scrollWindow:e,scrollDroppable:A,getAutoScrollerOptions:t=()=>Bw})=>{let n=gp(e),r=gp(A),i=null,o=e=>{i||gb();let{shouldUseTimeDampening:A,dragStartTime:o}=i;BS({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:o,shouldUseTimeDampening:A,getAutoScrollerOptions:t})};return{start:e=>{pD(),i&&gb();let A=Date.now(),n=!1,r=()=>{n=!0};BS({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r,getAutoScrollerOptions:t}),i={dragStartTime:A,shouldUseTimeDampening:n},pL(),n&&o(e)},stop:()=>{i&&(n.cancel(),r.cancel(),i=null)},scroll:o}})({scrollWindow:A,scrollDroppable:e,getAutoScrollerOptions:n}),i=(({move:e,scrollDroppable:A,scrollWindow:t})=>n=>{let r=n.scrollJumpRequest;if(!r)return;let i=pb(n.impact);i||gb();let o=((e,t)=>{let n;if(!BI(e,t))return t;let r=(n=e.frame)&&BI(e,t)?BF({current:n.scroll.current,max:n.scroll.max,change:t}):null;if(!r)return A(e.descriptor.id,t),null;let i=gT(t,r);return A(e.descriptor.id,i),gT(t,i)})(n.dimensions.droppables[i],r);if(!o)return;let s=n.viewport,a=((e,A,n)=>{if(!e||!BE(A,n))return n;let r=((e,A)=>{if(!BE(e,A))return null;let t=e.scroll.max;return BF({current:e.scroll.current,max:t,change:A})})(A,n);if(!r)return t(n),null;let i=gT(n,r);return t(i),gT(n,i)})(n.isWindowScrollAllowed,s,o);a&&e({client:gR(n.current.client.selection,a)})})({move:t,scrollWindow:A,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"===e.movementMode?r.scroll(e):e.scrollJumpRequest&&i(e))},start:r.start,stop:r.stop}})({scrollWindow:BB,scrollDroppable:T.scrollDroppable,getAutoScrollerOptions:S,...fC({move:pz},D)}),[T.scrollDroppable,D,S]),O=(h=(0,fp.useRef)({}),f=(0,fp.useRef)(null),g=(0,fp.useRef)(null),p=(0,fp.useRef)(!1),B=gD(function(e,A){let t={id:e,focus:A};return h.current[e]=t,function(){let A=h.current;A[e]!==t&&delete A[e]}},[]),m=gD(function(e){let A=BK(C,e);A&&A!==document.activeElement&&A.focus()},[C]),w=gD(function(e,A){f.current===e&&(f.current=A)},[]),y=gD(function(){g.current||p.current&&(g.current=requestAnimationFrame(()=>{g.current=null;let e=f.current;e&&m(e)}))},[m]),x=gD(function(e){f.current=null;let A=document.activeElement;A&&A.getAttribute(Bj.draggableId)===e&&(f.current=e)},[]),BT(()=>(p.current=!0,function(){p.current=!1;let e=g.current;e&&cancelAnimationFrame(e)}),[]),gH(()=>({register:B,tryRecordFocus:x,tryRestoreFocusRecorded:y,tryShiftRecord:w}),[B,x,y,w])),N=gH(()=>(({dimensionMarshal:e,focusMarshal:A,styleMarshal:t,getResponders:n,announce:r,autoScroller:i})=>{let o,s,a,l,c,u;return function e(A,t,n){if("function"!=typeof A)throw Error(fB(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(fB(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(fB(1));return n(e)(A,t)}let r=A,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((e,A)=>{s.set(A,e)}))}function u(){if(l)throw Error(fB(3));return i}function d(e){if("function"!=typeof e)throw Error(fB(4));if(l)throw Error(fB(5));let A=!0;c();let t=a++;return s.set(t,e),function(){if(A){if(l)throw Error(fB(6));A=!1,c(),s.delete(t),o=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let A=e;for(;null!==Object.getPrototypeOf(A);)A=Object.getPrototypeOf(A);return Object.getPrototypeOf(e)===A||null===Object.getPrototypeOf(e)}(e))throw Error(fB(7));if(void 0===e.type)throw Error(fB(8));if("string"!=typeof e.type)throw Error(fB(17));if(l)throw Error(fB(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=s).forEach(e=>{e()}),e}return h({type:fy.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw Error(fB(10));r=e,h({type:fy.REPLACE})},[fm]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(fB(11));function A(){e.next&&e.next(u())}return A(),{unsubscribe:d(A)}},[fm](){return this}}}}}(pO,fb(function(...e){return A=>(t,n)=>{let r=A(t,n),i=()=>{throw Error(fB(15))},o={getState:r.getState,dispatch:(e,...A)=>i(e,...A)};return i=fb(...e.map(e=>e(o)))(r.dispatch),{...r,dispatch:i}}}(()=>e=>A=>{pN(A,"INITIAL_PUBLISH")&&t.dragging(),pN(A,"DROP_ANIMATE")&&t.dropping(A.payload.completed.result.reason),(pN(A,"FLUSH")||pN(A,"DROP_COMPLETE"))&&t.resting(),e(A)},()=>A=>t=>{(pN(t,"DROP_COMPLETE")||pN(t,"FLUSH")||pN(t,"DROP_ANIMATE"))&&e.stopPublishing(),A(t)},({getState:A,dispatch:t})=>n=>r=>{if(!pN(r,"LIFT"))return void n(r);let{id:i,clientSelection:o,movementMode:s}=r.payload,a=A();"DROP_ANIMATING"===a.phase&&t(pq({completed:a.completed})),"IDLE"!==A().phase&&gb(),t(pJ()),t({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});let{critical:l,dimensions:c,viewport:u}=e.startPublishing({draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}});t({type:"INITIAL_PUBLISH",payload:{critical:l,dimensions:c,clientSelection:o,movementMode:s,viewport:u}})},Bt,Ba,Bl,Bc,e=>A=>t=>{if(pN(t,"DROP_COMPLETE")||pN(t,"DROP_ANIMATE")||pN(t,"FLUSH")){i.stop(),A(t);return}if(pN(t,"INITIAL_PUBLISH")){A(t);let n=e.getState();"DRAGGING"!==n.phase&&gb(),i.start(n);return}A(t),i.scroll(e.getState())},Br,(o=!1,()=>e=>t=>{if(pN(t,"INITIAL_PUBLISH")){o=!0,A.tryRecordFocus(t.payload.critical.draggable.id),e(t),A.tryRestoreFocusRecorded();return}if(e(t),o){if(pN(t,"FLUSH")){o=!1,A.tryRestoreFocusRecorded();return}if(pN(t,"DROP_COMPLETE")){o=!1;let e=t.payload.completed.result;e.combine&&A.tryShiftRecord(e.draggableId,e.combine.draggableId),A.tryRestoreFocusRecorded()}}}),(s=[],a={add:e=>{let A=setTimeout(()=>(e=>{let A=s.findIndex(A=>A.timerId===e);-1===A&&gb();let[t]=s.splice(A,1);t.callback()})(A));s.push({timerId:A,callback:e})},flush:()=>{if(!s.length)return;let e=[...s];s.length=0,e.forEach(e=>{clearTimeout(e.timerId),e.callback()})}},l=null,u={beforeCapture:(e,A)=>{l&&gb(),Bi("onBeforeCapture",()=>{let t=n().onBeforeCapture;t&&t({draggableId:e,mode:A})})},beforeStart:(e,A)=>{l&&gb(),Bi("onBeforeDragStart",()=>{let t=n().onBeforeDragStart;t&&t(Bo(e,A))})},start:(e,A)=>{l&&gb();let t=Bo(e,A);l={mode:A,lastCritical:e,lastLocation:t.source,lastCombine:null},a.add(()=>{Bi("onDragStart",()=>Bs(n().onDragStart,t,r,gI))})},update:(e,A)=>{var t,i;let o=g0(A),s=g1(A);l||gb();let c=!((e,A)=>{if(e===A)return!0;let t=e.draggable.id===A.draggable.id&&e.draggable.droppableId===A.draggable.droppableId&&e.draggable.type===A.draggable.type&&e.draggable.index===A.draggable.index,n=e.droppable.id===A.droppable.id&&e.droppable.type===A.droppable.type;return t&&n})(e,l.lastCritical);c&&(l.lastCritical=e);let u=(t=l.lastLocation,(null!=t||null!=o)&&(null==t||null==o||t.droppableId!==o.droppableId||t.index!==o.index));u&&(l.lastLocation=o);let d=(i=l.lastCombine,(null!=i||null!=s)&&(null==i||null==s||i.draggableId!==s.draggableId||i.droppableId!==s.droppableId));if(d&&(l.lastCombine=s),!c&&!u&&!d)return;let h={...Bo(e,l.mode),combine:s,destination:o};a.add(()=>{Bi("onDragUpdate",()=>Bs(n().onDragUpdate,h,r,gS))})},flush:()=>{l||gb(),a.flush()},drop:c=e=>{l||gb(),l=null,Bi("onDragEnd",()=>Bs(n().onDragEnd,e,r,gk))},abort:()=>{l&&c({...Bo(l.lastCritical,l.mode),combine:null,destination:null,reason:"CANCEL"})}},e=>A=>t=>{if(pN(t,"BEFORE_INITIAL_CAPTURE"))return void u.beforeCapture(t.payload.draggableId,t.payload.movementMode);if(pN(t,"INITIAL_PUBLISH")){let e=t.payload.critical;u.beforeStart(e,t.payload.movementMode),A(t),u.start(e,t.payload.movementMode);return}if(pN(t,"DROP_COMPLETE")){let e=t.payload.completed.result;u.flush(),A(t),u.drop(e);return}if(A(t),pN(t,"FLUSH"))return void u.abort();let n=e.getState();"DRAGGING"===n.phase&&u.update(n.critical,n.impact)}))))})({announce:k,autoScroller:M,dimensionMarshal:T,focusMarshal:O,getResponders:I,styleMarshal:H}),[k,M,T,O,I,H]);U.current=N;let P=gD(()=>{let e=mo(U);"IDLE"!==e.getState().phase&&e.dispatch(pJ())},[]),_=gD(()=>{let e=mo(U).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);b(gH(()=>({isDragging:_,tryAbort:P}),[_,P]));let K=gD(e=>Bp(mo(U).getState(),e),[]),V=gD(()=>pv(mo(U).getState()),[]),G=gH(()=>({marshal:T,focus:O,contextId:C,canLift:K,isMovementAllowed:V,dragHandleUsageInstructionsId:j,registry:R}),[C,T,j,O,K,V,R]);return!function({contextId:e,store:A,registry:t,customSensors:n,enableDefaultSensors:r}){let i=[...r?mi:[],...n||[]],o=(0,fp.useState)(()=>(function(){let e=null;function A(){e||gb(),e=null}return{isClaimed:function(){return!!e},isActive:function(A){return A===e},claim:function(A){e&&gb();let t={abandon:A};return e=t,t},release:A,tryAbandon:function(){e&&(e.abandon(),A())}}})())[0],s=gD(function(e,A){B2(e)&&!B2(A)&&o.tryAbandon()},[o]);BT(function(){let e=A.getState();return A.subscribe(()=>{let t=A.getState();s(e,t),e=t})},[o,A,s]),BT(()=>o.tryAbandon,[o.tryAbandon]);let a=gD(e=>mr({lockAPI:o,registry:t,store:A,draggableId:e}),[o,t,A]),l=gD((n,r,i)=>(function({lockAPI:e,contextId:A,store:t,registry:n,draggableId:r,forceSensorStop:i,sourceEvent:o}){var s;let a,l;if(!mr({lockAPI:e,store:t,registry:n,draggableId:r}))return null;let c=n.draggable.getById(r),u=(s=c.descriptor.id,(a=BN(document,`[${BH.contextId}="${A}"]`).find(e=>e.getAttribute(BH.id)===s))&&B_(a)?a:null);if(!u||o&&!c.options.canDragInteractiveElements&&B_(l=o.target)&&function e(A,t){if(null==t)return!1;if(me.includes(t.tagName.toLowerCase()))return!0;let n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==A&&e(A,t.parentElement)}(u,l))return null;let d=e.claim(i||gy),h="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return e.isActive(d)}let p=(function(e,A){mn({expected:e,phase:h,isLockActive:g,shouldWarn:!0})&&t.dispatch(A())}).bind(null,"DRAGGING");function B(A){function n(){e.release(),h="COMPLETED"}function r(e,i={shouldBlockNextClick:!1}){A.cleanup(),i.shouldBlockNextClick&&setTimeout(gx(window,[{eventName:"click",fn:mt,options:{once:!0,passive:!1,capture:!0}}])),n(),t.dispatch(pZ({reason:e}))}return"PRE_DRAG"!==h&&(n(),gb()),t.dispatch({type:"LIFT",payload:A.liftActionArgs}),h="DRAGGING",{isActive:()=>mn({expected:"DRAGGING",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>r("DROP",e),cancel:e=>r("CANCEL",e),...A.actions}}return{isActive:()=>mn({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){let A=gp(e=>{p(()=>pz({client:e}))});return{...B({liftActionArgs:{id:r,clientSelection:e,movementMode:"FLUID"},cleanup:()=>A.cancel(),actions:{move:A}}),move:A}},snapLift:function(){return B({liftActionArgs:{id:r,clientSelection:go(u.getBoundingClientRect()).center,movementMode:"SNAP"},cleanup:gy,actions:{moveUp:()=>p(pW),moveRight:()=>p(pX),moveDown:()=>p(p$),moveLeft:()=>p(pY)}})},abort:function(){mn({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!0})&&e.release()}}})({lockAPI:o,registry:t,contextId:e,store:A,draggableId:n,forceSensorStop:r||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,o,t,A]),c=gD(A=>{let t;return(t=function(e,A){let t=A.target;if(!(t instanceof BP(t).Element))return null;let n=`[${Bj.contextId}="${e}"]`,r=t.closest?t.closest(n):function e(A,t){return null==A?null:A[mA](t)?A:e(A.parentElement,t)}(t,n);return r&&B_(r)?r:null}(e,A))?t.getAttribute(Bj.draggableId):null},[e]),u=gD(e=>{let A=t.draggable.findById(e);return A?A.options:null},[t.draggable]),d=gD(function(){o.isClaimed()&&(o.tryAbandon(),"IDLE"!==A.getState().phase&&A.dispatch(pJ()))},[o,A]),h=gD(()=>o.isClaimed(),[o]),f=gH(()=>({canGetLock:a,tryGetLock:l,findClosestDraggableId:c,findOptionsForDraggable:u,tryReleaseLock:d,isLockClaimed:h}),[a,l,c,u,d,h]);BZ(()=>{let e=B1(i);B0(()=>{e.current.length!==i.length&&gb(!1)})});for(let e=0;e<i.length;e++)i[e](f)}({contextId:C,store:N,registry:R,customSensors:v||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,fp.useEffect)(()=>P,[P]),fp.default.createElement(BY.Provider,{value:G},fp.default.createElement(gn,{context:BG,store:N},e.children))}function ma(e){let A=fp.default.useId(),t=e.dragHandleUsageInstructions||gQ;return fp.default.createElement(gv,null,n=>fp.default.createElement(ms,{nonce:e.nonce,contextId:A,setCallbacks:n,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}var ml=fp.default.createContext(null);function mc(e){e&&B_(e)||gb()}function mu(e){let A=(0,fp.useContext)(e);return A||gb(),A}function md(e){e.preventDefault()}var mh=(e,A)=>e===A,mf=e=>{let{combine:A,destination:t}=e;return t?t.droppableId:A?A.droppableId:null};function mg(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}let mp={mapped:{type:"SECONDARY",offset:gL,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:mg(null)}},mB=gt(()=>{let e,A,t,n,r,i,o,s,a=(e=g$((e,A)=>({x:e,y:A})),A=g$((e,A,t=null,n=null,r=null)=>({isDragging:!0,isClone:A,isDropAnimating:!!r,dropAnimation:r,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null})),t=g$((e,t,n,r,i=null,o=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:s,snapshot:A(t,r,i,o,null)}})),(n,r)=>{if(B2(n)){let A;if(n.critical.draggable.id!==r.draggableId)return null;let i=n.current.client.offset,o=n.dimensions.draggables[r.draggableId],s=pb(n.impact),a=(A=n.impact).at&&"COMBINE"===A.at.type?A.at.combine.draggableId:null,l=n.forceShouldAnimate;return t(e(i.x,i.y),n.movementMode,o,r.isClone,s,a,l)}if("DROP_ANIMATING"===n.phase){let e=n.completed;if(e.result.draggableId!==r.draggableId)return null;let t=r.isClone,i=n.dimensions.draggables[r.draggableId],o=e.result,s=o.mode,a=mf(o),l=o.combine?o.combine.draggableId:null,c={duration:n.dropDuration,curve:p1,moveTo:n.newHomeClientOffset,opacity:l?p2:null,scale:l?p3:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:c,draggingOver:a,combineWith:l,mode:s,forceShouldAnimate:null,snapshot:A(s,t,a,l,c)}}}return null}),l=(n=g$((e,A)=>({x:e,y:A})),r=g$(mg),i=g$((e,A=null,t)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:A,shouldAnimateDisplacement:t,snapshot:r(A)}})),o=e=>e?i(gL,e,!0):null,s=(e,A,t,r)=>{let s=t.displaced.visible[e],a=!!(r.inVirtualList&&r.effected[e]),l=g1(t),c=l&&l.draggableId===e?A:null;if(!s){if(!a)return o(c);if(t.displaced.invisible[e])return null;let A=gO(r.displacedBy.point);return i(n(A.x,A.y),c,!0)}if(a)return o(c);let u=t.displacedBy.point;return i(n(u.x,u.y),c,s.shouldAnimate)},(e,A)=>{if(B2(e))return e.critical.draggable.id===A.draggableId?null:s(A.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){let t=e.completed;return t.result.draggableId===A.draggableId?null:s(A.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null});return(e,A)=>a(e,A)||l(e,A)||mp},{dropAnimationFinished:p0},null,{context:BG,areStatePropsEqual:mh})(e=>{let A=(0,fp.useRef)(null),t=gD((e=null)=>{A.current=e},[]),n=gD(()=>A.current,[]),{contextId:r,dragHandleUsageInstructionsId:i,registry:o}=mu(BY),{type:s,droppableId:a}=mu(ml),l=gH(()=>({id:e.draggableId,index:e.index,type:s,droppableId:a}),[e.draggableId,e.index,s,a]),{children:c,draggableId:u,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:f,isClone:g,mapped:p,dropAnimationFinished:B}=e;B0(()=>{let A=e.draggableId;A||gb(!1),"string"!=typeof A&&gb(!1),Number.isInteger(e.index)||gb(!1),"DRAGGING"!==e.mapped.type&&(mc(n()),e.isEnabled&&(BK(r,A)||gb(!1)))}),BZ(()=>{let e=(0,fp.useRef)(g);B0(()=>{g!==e.current&&gb(!1)},[g])}),g||function(e){let A=BX("draggable"),{descriptor:t,registry:n,getDraggableRef:r,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:s}=e,a=gH(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:s}),[i,s,o]),l=gD(e=>{let A=r();return A||gb(),function(e,A,t=gL){let n=window.getComputedStyle(A),r=gf(A.getBoundingClientRect(),n),i=gh(r,t),o={client:r,tagName:A.tagName.toLowerCase(),display:n.display};return{descriptor:e,placeholder:o,displaceBy:{x:r.marginBox.width,y:r.marginBox.height},client:r,page:i}}(t,A,e)},[t,r]),c=gH(()=>({uniqueId:A,descriptor:t,options:a,getDimension:l}),[t,l,a,A]),u=(0,fp.useRef)(c),d=(0,fp.useRef)(!0);BT(()=>(n.draggable.register(u.current),()=>n.draggable.unregister(u.current)),[n.draggable]),BT(()=>{if(d.current){d.current=!1;return}let e=u.current;u.current=c,n.draggable.update(c,e)},[c,n.draggable])}(gH(()=>({descriptor:l,registry:o,getDraggableRef:n,canDragInteractiveElements:f,shouldRespectForcePress:h,isEnabled:d}),[l,o,n,f,h,d]));let m=gH(()=>d?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":r,draggable:!1,onDragStart:md}:null,[r,i,u,d]),w=gD(e=>{"DRAGGING"===p.type&&p.dropping&&"transform"===e.propertyName&&(0,ou.flushSync)(B)},[B,p]),y=gH(()=>{let e="DRAGGING"===p.type?function(e){let A=e.dimension.client,{offset:t,combineWith:n,dropping:r}=e,i=!!n,o=null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode,s=!!r,a=s?((e,A)=>{let t=p7(e);if(t)return A?`${t} scale(${p3})`:t})(t,i):p7(t);return{position:"fixed",top:A.marginBox.top,left:A.marginBox.left,boxSizing:"border-box",width:A.borderBox.width,height:A.borderBox.height,transition:r?p8.drop(r.duration):o?p8.snap:p8.fluid,transform:a,opacity:((e,A)=>{if(e)return A?p2:p4})(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(p):{transform:p7(p.offset),transition:p.shouldAnimateDisplacement?void 0:"none"};return{innerRef:t,draggableProps:{"data-rfd-draggable-context-id":r,"data-rfd-draggable-id":u,style:e,onTransitionEnd:"DRAGGING"===p.type&&p.dropping?w:void 0},dragHandleProps:m}},[r,m,u,p,w,t]),x=gH(()=>({draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}),[l.droppableId,l.id,l.index,l.type]);return fp.default.createElement(fp.default.Fragment,null,c(y,p.snapshot,x))});function mm(e){return mu(ml).isUsingCloneFor!==e.draggableId||e.isClone?fp.default.createElement(mB,e):null}function mw(e){let A="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,t=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return fp.default.createElement(mm,(0,gB.default)({},e,{isClone:!1,isEnabled:A,canDragInteractiveElements:t,shouldRespectForcePress:n}))}let my=e=>A=>e===A,mx=my("scroll"),mC=my("auto");my("visible");let mb=(e,A)=>A(e.overflowX)||A(e.overflowY),mv=e=>{let A,t;return null==e||e===document.body||e===document.documentElement?null:mb(t={overflowX:(A=window.getComputedStyle(e)).overflowX,overflowY:A.overflowY},mx)||mb(t,mC)?e:mv(e.parentElement)};var mQ=e=>({x:e.scrollLeft,y:e.scrollTop});let mF=e=>!!e&&("fixed"===window.getComputedStyle(e).position||mF(e.parentElement)),mU={passive:!1},mE={passive:!0};var mI=e=>e.shouldPublishImmediately?mU:mE;let mS=e=>e&&e.env.closestScrollable||null;function mk(){}let mj={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var mH=fp.default.memo(e=>{let A=(0,fp.useRef)(null),t=gD(()=>{A.current&&(clearTimeout(A.current),A.current=null)},[]),{animate:n,onTransitionEnd:r,onClose:i,contextId:o}=e,[s,a]=(0,fp.useState)("open"===e.animate);(0,fp.useEffect)(()=>s?"open"!==n?(t(),a(!1),mk):A.current?mk:(A.current=setTimeout(()=>{A.current=null,a(!1)}),t):mk,[n,s,t]);let l=gD(e=>{"height"===e.propertyName&&(r(),"close"===n&&i())},[n,i,r]),c=(({isAnimatingOpenOnMount:e,placeholder:A,animate:t})=>{let n=(({isAnimatingOpenOnMount:e,placeholder:A,animate:t})=>e||"close"===t?mj:{height:A.client.borderBox.height,width:A.client.borderBox.width,margin:A.client.margin})({isAnimatingOpenOnMount:e,placeholder:A,animate:t});return{display:A.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==t?p8.placeholder:null}})({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return fp.default.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:l,ref:e.innerRef})});function mD(e){return"boolean"==typeof e}function mL(e,A){A.forEach(A=>A(e))}let mR=[function({props:e}){e.droppableId||gb(),"string"!=typeof e.droppableId&&gb()},function({props:e}){mD(e.isDropDisabled)||gb(),mD(e.isCombineEnabled)||gb(),mD(e.ignoreContainerClipping)||gb()},function({getDroppableRef:e}){mc(e())}],mT=[function({props:e,getPlaceholderRef:A}){if(!e.placeholder||A())return}],mM=[function({props:e}){e.renderClone||gb()},function({getPlaceholderRef:e}){e()&&gb()}];class mO extends fp.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,A){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:A.isVisible?{isVisible:!0,data:A.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}let mN={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||gb(),document.body}},mP=e=>{let A,t={...e};for(A in mN)void 0===e[A]&&(t={...t,[A]:mN[A]});return t},m_=(e,A)=>A.draggables[e.draggable.id],mK=gt(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},A={...e,shouldAnimatePlaceholder:!1},t=g$(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=g$((n,r,i,o,s,a)=>{let l=s.descriptor.id;if(s.descriptor.droppableId===n){let e=a?{render:a,dragging:t(s.descriptor)}:null;return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:i,draggingOverWith:i?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0},useClone:e}}return r?o?{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:i,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:e:A});return(t,r)=>{let i=mP(r),o=i.droppableId,s=i.type,a=!i.isDropDisabled,l=i.renderClone;if(B2(t)){let e=t.critical;if(s!==e.droppable.type)return A;let r=m_(e,t.dimensions),i=pb(t.impact)===o;return n(o,a,i,i,r,l)}if("DROP_ANIMATING"===t.phase){let e=t.completed;if(s!==e.critical.droppable.type)return A;let r=m_(e.critical,t.dimensions);return n(o,a,mf(e.result)===o,pb(e.impact)===o,r,l)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){let n=t.completed;if(s!==n.critical.droppable.type)return A;let r=pb(n.impact)===o,i=!!(n.impact.at&&"COMBINE"===n.impact.at.type),a=n.critical.droppable.id===o;if(r)return i?e:A;if(a)return e}return A}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,A,t)=>({...mP(t),...e,...A}),{context:BG,areStatePropsEqual:mh})(e=>{var A;let t=(0,fp.useContext)(BY);t||gb();let{contextId:n,isMovementAllowed:r}=t,i=(0,fp.useRef)(null),o=(0,fp.useRef)(null),{children:s,droppableId:a,type:l,mode:c,direction:u,ignoreContainerClipping:d,isDropDisabled:h,isCombineEnabled:f,snapshot:g,useClone:p,updateViewportMaxScroll:B,getContainerForClone:m}=e,w=gD(()=>i.current,[]),y=gD((e=null)=>{i.current=e},[]),x=gD(()=>o.current,[]),C=gD((e=null)=>{o.current=e},[]);A={props:e,getDroppableRef:w,getPlaceholderRef:x},B0(()=>{mL(A,mR),"standard"===A.props.mode&&mL(A,mT),"virtual"===A.props.mode&&mL(A,mM)});let b=gD(()=>{r()&&B({maxScroll:Bf()})},[r,B]);!function(e){let A=(0,fp.useRef)(null),t=mu(BY),n=BX("droppable"),{registry:r,marshal:i}=t,o=B1(e),s=gH(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),a=(0,fp.useRef)(s),l=gH(()=>g$((e,t)=>{A.current||gb(),i.updateDroppableScroll(s.id,{x:e,y:t})}),[s.id,i]),c=gD(()=>{let e=A.current;return e&&e.env.closestScrollable?mQ(e.env.closestScrollable):gL},[]),u=gD(()=>{let e=c();l(e.x,e.y)},[c,l]),d=gH(()=>gp(u),[u]),h=gD(()=>{let e=A.current,t=mS(e);(e&&t||gb(),e.scrollOptions.shouldPublishImmediately)?u():d()},[d,u]),f=gD((e,n)=>{A.current&&gb();let r=o.current,i=r.getDroppableRef();i||gb();let a={closestScrollable:mv(i),isFixedOnPage:mF(i)},l={ref:i,descriptor:s,env:a,scrollOptions:n};A.current=l;let c=(({ref:e,descriptor:A,env:t,windowScroll:n,direction:r,isDropDisabled:i,isCombineEnabled:o,shouldClipSubject:s})=>{let a=t.closestScrollable,l=((e,A)=>{let t=gg(e);if(!A||e!==A)return t;let n=t.paddingBox.top-A.scrollTop,r=t.paddingBox.left-A.scrollLeft,i=n+A.scrollHeight;return gc({borderBox:gs({top:n,right:r+A.scrollWidth,bottom:i,left:r},t.border),margin:t.margin,border:t.border,padding:t.padding})})(e,a),c=gh(l,n),u=(()=>{if(!a)return null;let e=gg(a),A={scrollHeight:a.scrollHeight,scrollWidth:a.scrollWidth};return{client:e,page:gh(e,n),scroll:mQ(a),scrollSize:A,shouldClipSubject:s}})();return(({descriptor:e,isEnabled:A,isCombineEnabled:t,isFixedOnPage:n,direction:r,client:i,page:o,closest:s})=>{let a=(()=>{if(!s)return null;let{scrollSize:e,client:A}=s,t=Bd({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:A.paddingBox.height,width:A.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:A,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:t,diff:{value:gL,displacement:gL}}}})(),l="vertical"===r?pe:pA,c=gz({page:o,withPlaceholder:null,axis:l,frame:a});return{descriptor:e,isCombineEnabled:t,isFixedOnPage:n,axis:l,isEnabled:A,client:i,page:o,frame:a,subject:c}})({descriptor:A,isEnabled:!i,isCombineEnabled:o,isFixedOnPage:t.isFixedOnPage,direction:r,client:l,page:c,closest:u})})({ref:i,descriptor:s,env:a,windowScroll:e,direction:r.direction,isDropDisabled:r.isDropDisabled,isCombineEnabled:r.isCombineEnabled,shouldClipSubject:!r.ignoreContainerClipping}),u=a.closestScrollable;return u&&(u.setAttribute(BL.contextId,t.contextId),u.addEventListener("scroll",h,mI(l.scrollOptions))),c},[t.contextId,s,h,o]),g=gD(()=>{let e=A.current,t=mS(e);return e&&t||gb(),mQ(t)},[]),p=gD(()=>{let e=A.current;e||gb();let t=mS(e);A.current=null,t&&(d.cancel(),t.removeAttribute(BL.contextId),t.removeEventListener("scroll",h,mI(e.scrollOptions)))},[h,d]),B=gD(e=>{let t=A.current;t||gb();let n=mS(t);n||gb(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),m=gH(()=>({getDimensionAndWatchScroll:f,getScrollWhileDragging:g,dragStopped:p,scroll:B}),[p,f,g,B]),w=gH(()=>({uniqueId:n,descriptor:s,callbacks:m}),[m,s,n]);BT(()=>(a.current=w.descriptor,r.droppable.register(w),()=>{A.current&&p(),r.droppable.unregister(w)}),[m,s,p,w,i,r.droppable]),BT(()=>{A.current&&i.updateDroppableIsEnabled(a.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),BT(()=>{A.current&&i.updateDroppableIsCombineEnabled(a.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}({droppableId:a,type:l,mode:c,direction:u,isDropDisabled:h,isCombineEnabled:f,ignoreContainerClipping:d,getDroppableRef:w});let v=gH(()=>fp.default.createElement(mO,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:A,animate:t})=>fp.default.createElement(mH,{placeholder:A,onClose:e,innerRef:C,animate:t,contextId:n,onTransitionEnd:b})),[n,b,e.placeholder,e.shouldAnimatePlaceholder,C]),Q=gH(()=>({innerRef:y,placeholder:v,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,v,y]),F=p?p.dragging.draggableId:null,U=gH(()=>({droppableId:a,type:l,isUsingCloneFor:F}),[a,F,l]);return fp.default.createElement(ml.Provider,{value:U},s(Q,g),function(){if(!p)return null;let{dragging:e,render:A}=p,t=fp.default.createElement(mm,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(t,n)=>A(t,n,e));return ou.default.createPortal(t,m())}())}),mV=({check:e,selected:A,onSelect:t,onMarkAsApproved:n})=>{let{featureToggles:r}=(0,tt.useRecceInstanceContext)(),i=(0,A5.useQueryClient)(),o=e.check_id,{mutate:s}=A6({mutationFn:e=>Ar(o,e),onSuccess:async()=>{await i.invalidateQueries({queryKey:e9.cacheKeys.check(o)}),await i.invalidateQueries({queryKey:e9.cacheKeys.checks()})}}),{run:a}=le(e.last_run?.run_id),l=(0,nm.findByRunType)(e.type).icon,c=fh(e.type,a)||r.disableUpdateChecklist,u=fh(e.type,a);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(ev.Flex,{width:"100%",p:"10px 20px",cursor:"pointer",_hover:{bg:"Cornsilk"},bg:A?"Floralwhite":"inherit",borderBlockEndWidth:"1px",borderLeftWidth:"3px",borderLeftColor:A?"orange":"transparent",onClick:()=>{t(e.check_id)},alignItems:"center",gap:"5px",children:[(0,g.jsx)(eU.Icon,{as:l}),(0,g.jsx)(eb.Box,{flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",className:"no-track-pii-safe",children:e.name}),(0,g.jsx)(to.Tooltip,{content:u?"Run the check first":"Click to mark as approved",positioning:{placement:"top"},showArrow:!0,children:(0,g.jsx)(ev.Flex,{children:(0,g.jsxs)(hk.Checkbox.Root,{checked:e.is_checked,colorPalette:"green",variant:"solid",size:"sm",onCheckedChange:e=>{e.checked?n():s({is_checked:e.checked})},disabled:c,children:[(0,g.jsx)(hk.Checkbox.HiddenInput,{}),(0,g.jsx)(hk.Checkbox.Control,{borderColor:"border.inverted",backgroundColor:c?"bg.emphasized":void 0})]})})})]})})},mG=({checks:e,selectedItem:A,onCheckSelected:t,onChecksReordered:n})=>{let[r,i]=(0,p.useState)(!1),o=(0,A5.useQueryClient)(),{mutate:s}=A6({mutationFn:e=>Ar(e,{is_checked:!0}),onSuccess:async(e,A)=>{await o.invalidateQueries({queryKey:e9.cacheKeys.check(A)}),await o.invalidateQueries({queryKey:e9.cacheKeys.checks()})}}),{open:a,onOpen:l,onClose:c}=(0,Ak.useDisclosure)(),{markedAsApprovedToast:u}=fu(),d=()=>{A&&("true"===localStorage.getItem("bypassMarkAsApprovedWarning")?(s(A),u()):l())};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ma,{onDragEnd:e=>{e.destination&&n(e.source.index,e.destination.index)},children:(0,g.jsx)(mK,{droppableId:"checklist",children:n=>(0,g.jsxs)(Al.VStack,{...n.droppableProps,ref:n.innerRef,className:"no-track-pii-safe",w:"full",gap:"0",flex:"1",overflow:"auto",children:[e.map((e,n)=>(0,g.jsx)(mw,{draggableId:e.check_id,index:n,children:(n,r)=>{if(r.isDragging){let e=n.draggableProps;if(null!=e.style&&"left"in e.style){let A=e.style.left-0,t=e.style.top-80;e.style.left=A,e.style.top=t}}return(0,g.jsx)(ev.Flex,{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,w:"full",children:(0,g.jsx)(mV,{check:e,selected:e.check_id===A,onSelect:t,onMarkAsApproved:d},e.check_id)})}},e.check_id)),n.placeholder]})})}),(0,g.jsx)(Aj.Dialog.Root,{open:a,onOpenChange:c,placement:"center",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{width:"400px",children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:"Mark as Approved?"})}),(0,g.jsx)(Aa.Separator,{}),(0,g.jsxs)(eb.Box,{p:"16px",fontSize:"sm",gap:"16px",children:[(0,g.jsx)("p",{children:"Please ensure you have reviewed the contents of this check before marking it as approved."}),(0,g.jsxs)(hk.Checkbox.Root,{checked:r,onCheckedChange:e=>{i(!!e.checked)},fontWeight:"bold",size:"sm",pt:"8px",children:[(0,g.jsx)(hk.Checkbox.HiddenInput,{}),(0,g.jsx)(hk.Checkbox.Control,{}),(0,g.jsx)(hk.Checkbox.Label,{children:"Don't show this again"})]})]}),(0,g.jsx)(Aa.Separator,{}),(0,g.jsxs)(Aj.Dialog.Footer,{gap:0,children:[(0,g.jsx)(Ac.Button,{variant:"outline",size:"xs",mr:2,onClick:c,children:"Cancel"}),(0,g.jsx)(Ac.Button,{colorPalette:"iochmara",size:"xs",onClick:()=>{A&&(s(A),r&&localStorage.setItem("bypassMarkAsApprovedWarning","true"),u(),c())},children:"Mark as approved"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})]})};var mz=e.i(5288);function mW({checksOnly:e=!0}){let{featureToggles:A}=(0,tt.useRecceInstanceContext)(),t=(0,A5.useQueryClient)(),n=(0,p.useRef)(null),r=(0,p.useRef)(null),[i,o]=(0,p.useState)(null),{open:s,onOpen:a,onClose:l}=(0,Ak.useDisclosure)(),[c,u]=(0,nx.useLocation)(),[,d]=(0,A8.useRunsAggregated)(),h=(0,p.useCallback)(async()=>{if(i){try{let{runs:A,checks:n}=await (0,mz.importState)(i,e);d(),await t.invalidateQueries({queryKey:e9.cacheKeys.checks()}),await t.invalidateQueries({queryKey:e9.cacheKeys.runs()}),c.includes("/checks")&&u("/checks");let r=e?`${n} checks imported successfully`:`${A} runs and ${n} checks imported successfully`;nN.toaster.create({description:r,type:"info",duration:5e3,closable:!0})}catch(e){console.error("Import failed",e),nN.toaster.create({title:"Import failed",description:String(e),type:"error",duration:5e3,closable:!0})}l()}},[t,i,l,c,u,d,e]),f=e?"checks":"runs and checks",{isDemoSite:B}=(0,A8.useLineageGraphContext)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(to.Tooltip,{content:"Import Checklist from State File"+(B?" (Disabled in the demo site)":""),children:(0,g.jsx)(Am.IconButton,{pt:"6px",variant:"plain","aria-label":"Import state",onClick:()=>{n.current&&n.current.click(),(0,Ae.trackStateAction)({name:"import"})},disabled:A.disableImportStateFile||B,children:(0,g.jsx)(eU.Icon,{as:r7.IconImport})})}),(0,g.jsx)("input",{type:"file",style:{display:"none"},ref:n,onChange:e=>{e.target.files?.length===1&&(o(e.target.files[0]),a()),n.current&&(n.current.value="")}}),(0,g.jsx)(Aj.Dialog.Root,{open:s,role:"alertdialog",initialFocusEl:()=>r.current,onOpenChange:l,size:"xl",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsx)(Aj.Dialog.Title,{children:"Import state"})}),(0,g.jsx)(Aj.Dialog.Body,{children:(0,g.jsxs)(ev.Flex,{px:"5px",gap:"5px",rounded:"md",direction:"column",children:[(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"5px",children:[(0,g.jsx)(aG.PiInfo,{color:"red.600"}),(0,g.jsx)(e6.Text,{as:"span",fontWeight:"500",color:"red.600",children:"Caution!"})]}),(0,g.jsx)(ev.Flex,{children:(0,g.jsxs)(e6.Text,{children:["The current ",f," will be"," ",(0,g.jsx)(e6.Text,{as:"span",fontWeight:"600",children:"merged"})," ","with the imported state"]})})]})}),(0,g.jsxs)(Aj.Dialog.Footer,{children:[(0,g.jsx)(Ac.Button,{ref:r,onClick:l,children:"Cancel"}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:h,ml:"5px",children:"Import"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})]})}let m$=()=>{let e=(0,A5.useQueryClient)(),[,A]=(0,nx.useLocation)(),{mutate:t,isPending:n}=A6({mutationFn:()=>a9({select:"state:modified"}),onSuccess:async t=>{await e.invalidateQueries({queryKey:e9.cacheKeys.checks()}),A(`/checks/${t.check_id}`)}});return(0,g.jsx)(As.Center,{h:"100%",w:"100%",children:(0,g.jsxs)(Al.VStack,{gap:6,textAlign:"center",maxW:"400px",children:[(0,g.jsx)(eU.Icon,{as:dY.TbChecklist,boxSize:16,color:"gray.400"}),(0,g.jsxs)(Al.VStack,{gap:2,children:[(0,g.jsx)(eE.Heading,{size:"lg",color:"gray.600",children:"No checks yet"}),(0,g.jsx)(e6.Text,{color:"gray.500",fontSize:"md",children:"Checks help you validate data quality and catch issues."})]}),(0,g.jsxs)(Al.VStack,{gap:3,w:"100%",children:[(0,g.jsx)(e6.Text,{fontSize:"sm",color:"gray.600",fontWeight:"medium",children:"Get started with your first check:"}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:()=>{t()},loading:n,size:"lg",w:"100%",children:(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(eU.Icon,{as:dY.TbPlus}),(0,g.jsx)(e6.Text,{children:"Create Schema Diff Check"})]})}),(0,g.jsx)(e6.Text,{fontSize:"xs",color:"gray.400",mt:2,children:"The schema checks compare modified models between environments to detect changes, additions, or removals."})]})]})})},mX=()=>{let[,e]=(0,nx.useLocation)(),[,A]=(0,nx.useRoute)("/checks/:checkId"),{latestSelectedCheckId:t,setLatestSelectedCheckId:n}=(0,fd.useRecceCheckContext)(),r=(0,A5.useQueryClient)(),i=A?.checkId;(0,p.useEffect)(()=>{i&&n(i)},[i,n]);let{isLoading:o,error:s,data:a,status:l,refetch:c}=(0,e8.useQuery)({queryKey:e9.cacheKeys.checks(),queryFn:At,refetchOnMount:!0}),u=(0,p.useCallback)(A=>{e(`/checks/${A}`)},[e]),[d,h]=(0,p.useState)(a??[]),[f,B]=(0,p.useState)(a);a!==f&&(B(a),h(a??[]));let{mutate:m}=A6({mutationFn:e=>Ao(e),onSuccess:async()=>{await r.invalidateQueries({queryKey:e9.cacheKeys.checks()})}}),w=(0,p.useCallback)((e,A)=>{let t=[...d],[n]=t.splice(e,1);t.splice(A,0,n),m({source:e,destination:A}),h(t)},[d,h,m]);return((0,p.useEffect)(()=>{"success"===l&&!i&&a.length>0&&(t?e(`/checks/${t}`):e(`/checks/${a[0].check_id}`))},[l,i,a,e,t]),o)?(0,g.jsx)(g.Fragment,{}):s?(0,g.jsxs)(g.Fragment,{children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:s.message})]}):a?.length?(0,g.jsxs)(tz,{style:{height:"100%"},minSize:50,sizes:[20,80],children:[(0,g.jsx)(eb.Box,{borderRight:"lightgray solid 1px",height:"100%",style:{contain:"size"},children:(0,g.jsxs)(Al.VStack,{gap:0,h:"100%",style:{contain:"strict"},alignItems:"stretch",children:[(0,g.jsx)(ev.Flex,{justifyContent:"right",padding:"0px 10px",children:(0,g.jsx)(mW,{checksOnly:!0})}),(0,g.jsx)(Aa.Separator,{}),(0,g.jsx)(mG,{checks:d,selectedItem:i,onCheckSelected:u,onChecksReordered:w})]})}),(0,g.jsx)(eb.Box,{height:"100%",children:(0,g.jsx)(nx.Switch,{children:(0,g.jsx)(nx.Route,{path:"/checks/:checkId",children:e=>(0,g.jsx)(ff,{checkId:e.checkId,refreshCheckList:c},e.checkId)})})})]}):(0,g.jsxs)(tz,{style:{height:"100%"},minSize:50,sizes:[20,80],children:[(0,g.jsx)(eb.Box,{borderRight:"lightgray solid 1px",height:"100%",style:{contain:"size"},children:(0,g.jsxs)(Al.VStack,{gap:0,h:"100%",style:{contain:"strict"},alignItems:"stretch",children:[(0,g.jsx)(ev.Flex,{justifyContent:"flex-end",padding:"0px 10px",children:(0,g.jsx)(mW,{checksOnly:!0})}),(0,g.jsx)(Aa.Separator,{}),(0,g.jsx)(As.Center,{h:"100%",children:(0,g.jsx)(eb.Box,{textAlign:"center",color:"gray.500",children:"No checks"})})]})}),(0,g.jsx)(eb.Box,{children:(0,g.jsx)(As.Center,{h:"100%",children:(0,g.jsx)(m$,{})})})]})};e.s([],56977),e.i(56977),e.s([],40617),e.i(40617);let[mY,mJ]=(0,U.createContext)({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),mq=e=>e.children(mJ()),mZ=(0,p.forwardRef)((e,A)=>{let t=mJ(),n=(0,y.mergeProps)(t.getControlProps(),e);return(0,g.jsx)(v.ark.span,{...n,ref:A})});mZ.displayName="SwitchControl";var m0=e.i(40292);let m1=(0,p.forwardRef)((e,A)=>{let t=mJ(),n=(0,y.mergeProps)(t.getHiddenInputProps(),e),r=(0,m0.useFieldContext)();return(0,g.jsx)(v.ark.input,{"aria-describedby":r?.ariaDescribedby,...n,ref:A})});m1.displayName="SwitchHiddenInput";let m2=(0,p.forwardRef)((e,A)=>{let t=mJ(),n=(0,y.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(v.ark.span,{...n,ref:A})});m2.displayName="SwitchLabel";var m4=e.i(93424);let m3=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),r=(e=>{let A=(0,p.useId)(),{getRootNode:t}=(0,eA.useEnvironmentContext)(),{dir:n}=(0,et.useLocaleContext)(),r=(0,m0.useFieldContext)(),i={id:A,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:n,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:t,...e},o=(0,L.useMachine)(m4.machine,i);return m4.connect(o,L.normalizeProps)})(t),i=(0,y.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(mY,{value:r,children:(0,g.jsx)(v.ark.label,{...i,ref:A})})});m3.displayName="SwitchRoot";let m5=(0,p.forwardRef)((e,A)=>{let[{value:t},n]=(0,C.createSplitProps)()(e,["value"]),r=(0,y.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(mY,{value:t,children:(0,g.jsx)(v.ark.label,{...r,ref:A})})});m5.displayName="SwitchRootProvider";let m6=(0,p.forwardRef)((e,A)=>{let t=mJ(),n=(0,y.mergeProps)(t.getThumbProps(),e);return(0,g.jsx)(v.ark.span,{...n,ref:A})});m6.displayName="SwitchThumb",e.s(["Context",()=>mq,"Control",()=>mZ,"HiddenInput",()=>m1,"Label",()=>m2,"Root",()=>m3,"RootProvider",()=>m5,"Thumb",()=>m6],44056);var m8=e.i(44056),m8=m8,m7=e.i(76184);let{withProvider:m9,withContext:we,useStyles:wA,PropsProvider:wt}=(0,eo.createSlotRecipeContext)({key:"switch"}),wn=m9(m8.RootProvider,"root",{forwardAsChild:!0}),wr=m9(m8.Root,"root",{forwardAsChild:!0}),wi=we(m8.Label,"label",{forwardAsChild:!0}),wo=we(m8.Thumb,"thumb",{forwardAsChild:!0}),ws=we(m8.Control,"control",{forwardAsChild:!0,defaultProps:{children:(0,g.jsx)(wo,{})}}),wa=(0,p.forwardRef)(function(e,A){let t=mJ(),n=wA(),{fallback:r,children:i,unstyled:o,...s}=e;return(0,g.jsx)(B.chakra.span,{ref:A,"data-checked":(0,m7.dataAttr)(t.checked),...s,css:[o?void 0:n.indicator,e.css],children:t.checked?i:r})}),wl=(0,p.forwardRef)(function(e,A){let t=mJ(),{fallback:n,children:r,...i}=e;return(0,g.jsx)(B.chakra.span,{ref:A,"data-checked":(0,m7.dataAttr)(t.checked),...i,children:t.checked?r:n})}),wc=m8.Context,wu=m8.HiddenInput;e.s(["Context",()=>wc,"Control",()=>ws,"HiddenInput",()=>wu,"Indicator",()=>wa,"Label",()=>wi,"PropsProvider",()=>wt,"Root",()=>wr,"RootProvider",()=>wn,"Thumb",()=>wo,"ThumbIndicator",()=>wl],4958);var wd=e.i(4958),wd=wd;function wh(){let{data:e}=(0,e8.useQuery)({queryKey:e9.cacheKeys.instanceInfo(),queryFn:fA.getRecceInstanceInfo});return(0,g.jsx)("div",{className:"flex flex-1 h-full min-h-0 m-2 p-4 bg-blue-50 rounded-lg shadow-md justify-center",children:(0,g.jsxs)("div",{className:"w-4/5 flex flex-col overflow-y-auto gap-6 px-8 pb-8",children:[(0,g.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,g.jsx)("div",{className:"p-2 bg-white rounded-full flex items-center justify-center shadow-md",children:(0,g.jsx)(eU.Icon,{as:aP,boxSize:7,color:"blue.500"})}),(0,g.jsx)(eE.Heading,{mt:"4",size:"lg",children:"Wait, there's more!"}),(0,g.jsxs)(e6.Text,{fontSize:"md",textAlign:"center",children:["Query functions disabled without a"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"data warehouse connection"})]})]}),(0,g.jsx)("div",{className:"w-1/2 flex flex-col mt-6 mx-auto",children:(0,g.jsx)(Ac.Button,{colorPalette:"blue",size:"lg",onClick:()=>{window.open(ft(e),"_blank")},children:"Connect to Data Warehouse"})})]})})}let wf=()=>{let{isCustomQueries:e,setCustomQueries:A,sqlQuery:t,setBaseSqlQuery:n}=(0,a8.useRecceQueryContext)();return(0,g.jsxs)(eb.Box,{children:[(0,g.jsxs)(ev.Flex,{fontSize:"0.75rem",gap:1,alignItems:"center",children:["Custom Queries"," ",(0,g.jsx)(to.Tooltip,{content:"Custom queries allow you to use two SQL queries to compare results between current and base environments.",children:(0,g.jsx)(aG.PiInfoFill,{color:"gray.600",fontSize:"1rem"})})]}),(0,g.jsxs)(wd.Root,{size:"sm",colorPalette:"iochmara",checked:e,onCheckedChange:()=>{!e&&n&&n(t),A(!e)},children:[(0,g.jsx)(wd.HiddenInput,{}),(0,g.jsx)(wd.Control,{}),(0,g.jsx)(wd.Label,{})]})]})},wg=()=>{let{sqlQuery:e,baseSqlQuery:A,setSqlQuery:t,setBaseSqlQuery:n,primaryKeys:r,setPrimaryKeys:i,isCustomQueries:o}=(0,a8.useRecceQueryContext)(),{lineageGraph:s,envInfo:a}=(0,A8.useLineageGraphContext)(),{featureToggles:l,singleEnv:c}=(0,tt.useRecceInstanceContext)(),u=e;a?.adapterType==="sqlmesh"&&e===a8.defaultSqlQuery&&(u="select * from db.mymodel"),"read only"===l.mode&&(u=`--- Would like to do query here? Book a demo with us at ${az.RECCE_SUPPORT_CALENDAR_URL}
110
+ ${u}`);let{showRunId:d}=(0,A9.useRecceActionContext)(),{mutate:h,isPending:f}=A6({mutationFn:async e=>{let t="query_base"===e?A??"":u,n=function(e){switch(e){case"query":return d9;case"query_base":return he;case"query_diff":return hA;default:throw Error(`Unknown query type: ${e}`)}}(e),i={sql_template:t};"query_diff"===e&&(i.primary_keys=r,o&&(i.base_sql_template=A));let{run_id:s}=await n(i,{nowait:!0});return d(s),await (0,il.waitRun)(s)}}),B=(0,p.useMemo)(()=>{let e={};if(!s)return"N/A";for(let A in s.nodes){let t=s.nodes[A].data.data.current?.schema;t&&(e[t]=(e[t]||0)+1)}return Object.keys(e).reduce((A,t)=>e[t]>(e[A]||0)?t:A,"N/A")},[s]);return c||"metadata only"===l.mode?(0,g.jsxs)(ev.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(ev.Flex,{justifyContent:"right",alignItems:"center",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",children:[(0,g.jsx)(hH,{}),(0,g.jsx)(eF.Spacer,{}),c?(0,g.jsx)(to.Tooltip,{content:"Please configure the base environment before running the diff",positioning:{placement:"left"},children:(0,g.jsx)(Ac.Button,{colorPalette:"iochmara",disabled:!0,size:"xs",fontSize:"14px",marginTop:"16px",children:"Run Diff"})}):(0,g.jsx)(a$,{display:"metadata only"===l.mode,children:(0,g.jsx)(Ac.Button,{colorPalette:"iochmara",disabled:!0,size:"xs",fontSize:"14px",marginTop:"16px",children:"Run Diff"})})]}),(0,g.jsx)(ia,{value:u,onChange:t,onRun:()=>{h("query")},labels:["base (production)",`current (${B})`],SetupGuide:"metadata only"===l.mode?(0,g.jsx)(wh,{}):(0,g.jsx)(h2,{})})]}):(0,g.jsxs)(ev.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(ev.Flex,{justifyContent:"right",alignItems:"flex-end",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",flex:"0 0 54px",children:[(0,g.jsx)(hH,{}),(0,g.jsx)(wf,{}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(hg,{defaultPrimaryKeys:r,onPrimaryKeysChange:i}),(0,g.jsx)(Ac.Button,{colorPalette:"iochmara",onClick:()=>{h("query_diff")},disabled:f||l.disableDatabaseQuery,size:"2xs",children:"Run Diff"})]}),(0,g.jsx)(eb.Box,{width:"100%",flex:"1",children:o?(0,g.jsx)(ia,{value:u,baseValue:A,onChange:t,onChangeBase:n,onRun:()=>{h("query")},onRunBase:()=>{h("query_base")},onRunDiff:()=>{h("query_diff")}}):(0,g.jsx)(is,{value:u,onChange:t,onRun:()=>{h("query")},onRunDiff:()=>{h("query_diff")}})})]})},wp=({runId:e})=>{let A,{error:t,data:n}=(0,e8.useQuery)({queryKey:e9.cacheKeys.run(e),queryFn:async()=>(0,il.waitRun)(e)});return n&&(0,nm.runTypeHasRef)(n.type)&&(A=(0,nm.findByRunType)(n.type).RunResultView),(0,g.jsx)(i5,{error:t,run:n,RunResultView:A})},wB=e=>(0,g.jsx)(As.Center,{height:"100%",backgroundColor:"gray.50",children:(0,g.jsxs)(ev.Flex,{p:4,direction:"column",justifyContent:"flex-start",backgroundColor:"white",border:"solid lightgray 1px",minHeight:"200px",children:[(0,g.jsx)(eE.Heading,{width:"800px",size:"md",children:"You have encountered an error"}),(0,g.jsx)(eb.Box,{flex:"1",fontSize:"10pt",children:String(e.error)}),(0,g.jsx)(Ac.Button,{justifySelf:"center",alignSelf:"center",mt:"20px",colorPalette:"blue",size:"sm",onClick:()=>{e.resetError()},children:"Reset"})]})}),wm=({children:e})=>(0,g.jsx)(i3,{fallback:wB,children:e});function ww(){let{featureToggles:e}=(0,tt.useRecceInstanceContext)(),A=async()=>{try{let e=await (0,mz.exportState)(),A=JSON.stringify(e,null,2),t=new Blob([A],{type:"application/json"}),n=new Date,r=`recce-state-${(0,rP.format)(n,"yyyy-MM-dd-HH-mm-ss")}.json`;(0,dP.default)(t,r)}catch(e){console.error("Export failed",e),nN.toaster.create({title:"Export failed",description:String(e),type:"error",duration:5e3,closable:!0})}};return(0,g.jsx)(to.Tooltip,{content:"Export",children:(0,g.jsx)(Am.IconButton,{size:"sm",variant:"plain","aria-label":"Export state",onClick:async()=>{await A(),(0,Ae.trackStateAction)({name:"export"})},disabled:e.disableExportStateFile,children:(0,g.jsx)(eU.Icon,{as:r7.IconExport,verticalAlign:"middle",boxSize:"16px"})})})}function wy(){return(0,g.jsx)(ai,{children:(0,g.jsx)(fa,{interactive:!0})})}let wx=()=>{var e;let A,{featureToggles:t}=(0,tt.useRecceInstanceContext)(),{fileName:n,cloudMode:r,isDemoSite:i,envInfo:o}=(0,A8.useLineageGraphContext)(),s=(0,Ak.useDisclosure)(),a=(0,Ak.useDisclosure)(),l=!n&&!r&&!i,{data:c}=(0,e8.useQuery)({queryKey:e9.cacheKeys.checks(),queryFn:At,enabled:l}),u=void 0!=c&&c.filter(e=>!e.is_preset).length>0;e=l&&u,(0,p.useEffect)(()=>{let A=e=>{e.preventDefault()};return e&&window.addEventListener("beforeunload",A),()=>{e&&window.removeEventListener("beforeunload",A)}},[e]);let[{newFileName:d,errorMessage:h,modified:f,overwriteWithMethod:B,bypass:m},w]=(0,p.useState)({newFileName:n??"recce_state.json"}),y=(0,p.useRef)(null),{toastSuccess:x,toastError:C}={toastSuccess:e=>{nN.toaster.create({description:e,type:"success",duration:5e3,closable:!0})},toastError:(e,A)=>{let t=e;null!=A&&(t=A instanceof hG.AxiosError?`${e}. ${String(A.response?.data?.detail)}`:`${e}. ${A}`),nN.toaster.create({description:t,type:"error",duration:5e3,closable:!0})}},b=(0,A5.useQueryClient)(),v=async(e,A)=>{if(!d)return;let t="true"===localStorage.getItem(hw.bypassSaveOverwrite);try{"save"===e?await (0,mz.saveAs)({filename:d,overwrite:A??t}):await (0,mz.rename)({filename:d,overwrite:A??t}),x("save"===e?"Save file successfully":"Rename file successfully"),await b.invalidateQueries({queryKey:e9.cacheKeys.lineage()}),m&&localStorage.setItem(hw.bypassSaveOverwrite,"true")}catch(A){if(A instanceof hG.AxiosError&&A.response?.status===409){w(A=>({...A,overwriteWithMethod:e})),a.onOpen();return}C("save"===e?"Save file failed":"Rename file failed",A)}finally{s.onClose()}};if(r||i)return(0,g.jsx)(g.Fragment,{});if(t.disableSaveToFile&&n){let e=o?.stateMetadata?.generated_at,t=e?dz(new Date(e)):null;A=t?`${n} (${t})`:null}return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(ev.Flex,{justifyContent:"center",alignItems:"center",children:[(0,g.jsx)(eb.Box,{fontWeight:"600",children:A??n??"New Instance"+(u?" (unsaved)":"")}),!t.disableSaveToFile&&(0,g.jsx)(to.Tooltip,{content:n?"Change Filename":"Save",openDelay:1e3,children:(0,g.jsx)(Am.IconButton,{onClick:()=>{w({newFileName:n??"recce_state.json",modified:!n}),s.onOpen()},"aria-label":n?"Change Filename":"Save",variant:"ghost",size:"sm",colorPalette:"gray",children:(0,g.jsx)(eU.Icon,{as:n?r7.IconEdit:r7.IconSave,boxSize:"16px",verticalAlign:"middle"})})})]}),(0,g.jsx)(Aj.Dialog.Root,{open:s.open,onOpenChange:s.onClose,placement:"center",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:n?"Change Filename":"Save File"})}),(0,g.jsx)(Aj.Dialog.Body,{onKeyDown:e=>{e.stopPropagation()},children:(0,g.jsxs)(hf.Field.Root,{invalid:!!h,children:[(0,g.jsx)(hf.Field.Label,{children:"File name:"}),(0,g.jsx)(AJ.Input,{ref:y,value:d,placeholder:"Enter filename",onChange:e=>{let A,t=e.target.value;t?t.endsWith(".json")?/^[a-zA-Z0-9 _-]+\.json$/.test(t)?n&&t===n&&(A="Filename is the same as the current one."):A="Invalid filename. Only alphanumeric, space, _ and - are allowed.":A="Filename must end with .json.":A="Filename cannot be empty.",w(e=>({...e,modified:!0,newFileName:t,errorMessage:A}))},onKeyDown:e=>{"Enter"===e.key?h||(n?v("rename"):v("save")):"Escape"===e.key&&s.onClose()}}),(0,g.jsx)(hf.Field.ErrorText,{children:h})]})}),(0,g.jsxs)(Aj.Dialog.Footer,{gap:"5px",children:[(0,g.jsx)(Ac.Button,{size:"sm",colorPalette:n?void 0:"blue",onClick:async()=>{await v("save")},disabled:!d||!!h||!f,children:n?"Save as New File":"Confirm"}),n&&(0,g.jsx)(Ac.Button,{size:"sm",colorPalette:"blue",onClick:async()=>{await v("rename")},disabled:!d||!!h||!f,children:"Rename"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})}),(0,g.jsx)(Aj.Dialog.Root,{open:a.open,onOpenChange:a.onClose,initialFocusEl:()=>y.current,placement:"center",children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsx)(Aj.Dialog.Positioner,{children:(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{children:(0,g.jsx)(Aj.Dialog.Title,{children:"Overwrite File?"})}),(0,g.jsxs)(Aj.Dialog.Body,{borderTop:"solid 1px lightgray",borderBottom:"solid 1px lightgray",onKeyDown:e=>{e.stopPropagation()},children:[(0,g.jsx)(eb.Box,{fontSize:"12pt",children:"save"===B?"Saving a file with this name will overwrite the existing file. Are you sure you wish to continue?":"Renaming the file with this name will overwrite the existing file. Are you sure you wish to continue?"}),(0,g.jsxs)(hk.Checkbox.Root,{size:"xs",checked:m,onCheckedChange:e=>{w(A=>({...A,bypass:!!e.checked}))},children:[(0,g.jsx)(hk.Checkbox.HiddenInput,{}),(0,g.jsx)(hk.Checkbox.Control,{}),(0,g.jsx)(hk.Checkbox.Label,{fontWeight:"bold",pt:"8px",children:"Don't show this again"})]})]}),(0,g.jsxs)(Aj.Dialog.Footer,{gap:"5px",children:[(0,g.jsx)(Ac.Button,{variant:"outline",onClick:()=>{a.onClose(),s.onOpen(),w(e=>({...e,overwriteWithMethod:void 0}))},size:"sm",children:"Back"}),(0,g.jsx)(Ac.Button,{size:"sm",colorPalette:"blue",onClick:()=>{B&&(v(B,!0),a.onClose())},children:"Overwrite"})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})})]})})]})};e.s([],22036),e.i(22036),e.s([],27565),e.i(27565);let[wC,wb]=(0,U.createContext)({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),wv=e=>e.children(wb()),wQ=(0,p.forwardRef)((e,A)=>{let t=wb(),n=(0,y.mergeProps)(t.getIndicatorProps(),e);return(0,g.jsx)(v.ark.div,{...n,ref:A})});wQ.displayName="RadioGroupIndicator";let[wF,wU]=(0,U.createContext)({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[wE,wI]=(0,U.createContext)({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),wS=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["value","disabled","invalid"]),r=wb(),i=(0,y.mergeProps)(r.getItemProps(t),n),o=r.getItemState(t);return(0,g.jsx)(wF,{value:o,children:(0,g.jsx)(wE,{value:t,children:(0,g.jsx)(v.ark.label,{...i,ref:A})})})});wS.displayName="RadioGroupItem";let wk=e=>e.children(wU()),wj=(0,p.forwardRef)((e,A)=>{let t=wb(),n=wI(),r=(0,y.mergeProps)(t.getItemControlProps(n),e);return(0,g.jsx)(v.ark.div,{...r,ref:A})});wj.displayName="RadioGroupItemControl";let wH=(0,p.forwardRef)((e,A)=>{let t=wb(),n=wI(),r=(0,y.mergeProps)(t.getItemHiddenInputProps(n),e);return(0,g.jsx)(v.ark.input,{...r,ref:A})});wH.displayName="RadioGroupItemHiddenInput";let wD=(0,p.forwardRef)((e,A)=>{let t=wb(),n=wI(),r=(0,y.mergeProps)(t.getItemTextProps(n),e);return(0,g.jsx)(v.ark.span,{...r,ref:A})});wD.displayName="RadioGroupItemText";let wL=(0,p.forwardRef)((e,A)=>{let t=wb(),n=(0,y.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(v.ark.label,{...n,ref:A})});wL.displayName="RadioGroupLabel";var wR=e.i(96019);let wT=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),r=(e=>{let A=(0,p.useId)(),{getRootNode:t}=(0,eA.useEnvironmentContext)(),{dir:n}=(0,et.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e},i=(0,L.useMachine)(wR.machine,r);return wR.connect(i,L.normalizeProps)})(t),i=(0,y.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(wC,{value:r,children:(0,g.jsx)(v.ark.div,{...i,ref:A})})});wT.displayName="RadioGroupRoot";let wM=(0,p.forwardRef)((e,A)=>{let[{value:t},n]=(0,C.createSplitProps)()(e,["value"]),r=(0,y.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(wC,{value:t,children:(0,g.jsx)(v.ark.div,{...r,ref:A})})});wM.displayName="RadioGroupRootProvider",e.s(["Context",()=>wv,"Indicator",()=>wQ,"Item",()=>wS,"ItemContext",()=>wk,"ItemControl",()=>wj,"ItemHiddenInput",()=>wH,"ItemText",()=>wD,"Label",()=>wL,"Root",()=>wT,"RootProvider",()=>wM],64178);var wO=e.i(64178),wO=wO;let wN=(0,p.forwardRef)(function(e,A){let t=(0,hn.useRecipe)({key:"radiomark",recipe:e.recipe}),[n,r]=t.splitVariantProps(e),{checked:i,disabled:o,unstyled:s,children:a,...l}=r,c=s?ht.EMPTY_STYLES:t(n),u={ref:A,"data-checked":(0,m7.dataAttr)(i),"data-disabled":(0,m7.dataAttr)(o),...l,css:[c,e.css]};return(0,g.jsx)(B.chakra.span,{...u,children:i&&(0,g.jsx)("span",{className:"dot"})})});wN.displayName="Radiomark";let{withProvider:wP,withContext:w_,useStyles:wK,PropsProvider:wV}=(0,eo.createSlotRecipeContext)({key:"radioGroup"}),wG=wP(wO.RootProvider,"root",{forwardAsChild:!0}),wz=wP(wO.Root,"root",{forwardAsChild:!0}),wW=w_(wO.Label,"label",{forwardAsChild:!0}),w$=w_(wO.Item,"item",{forwardAsChild:!0}),wX=w_(wO.ItemText,"itemText",{forwardAsChild:!0}),wY=w_(wO.ItemControl,"itemControl",{forwardAsChild:!0}),wJ=(0,p.forwardRef)(function(e,A){let t=wK();return(0,g.jsx)(wO.ItemContext,{children:n=>(0,g.jsx)(wO.ItemControl,{asChild:!0,children:(0,g.jsx)(wN,{ref:A,unstyled:!0,...e,checked:n.checked,disabled:n.disabled,css:[t.itemControl,e.css]})})})}),wq=wO.Context,wZ=wO.ItemContext,w0=wO.ItemHiddenInput;e.s(["Context",()=>wq,"Item",()=>w$,"ItemContext",()=>wZ,"ItemControl",()=>wY,"ItemHiddenInput",()=>w0,"ItemIndicator",()=>wJ,"ItemText",()=>wX,"Label",()=>wW,"PropsProvider",()=>wV,"Root",()=>wz,"RootProvider",()=>wG],506);var w1=e.i(506),w1=w1,w2=e.i(30520);function w4(){return(0,g.jsx)(to.Tooltip,{content:"Syncing",children:(0,g.jsx)(eb.Box,{mx:"10px",children:(0,g.jsx)(te.Spinner,{size:"sm"})})})}function w3(){let[e,A]=(0,p.useState)(!1),t=(0,A5.useQueryClient)(),[n,r]=(0,nx.useLocation)(),{open:i,onOpen:o,onClose:s}=(0,Ak.useDisclosure)(),[a,l]=(0,p.useState)(""),{data:c}=(0,w2.useRecceInstanceInfo)(),u=(0,p.useCallback)(async e=>{if(s(),A(!0),"conflict"===(await (0,mz.syncState)(e)).status){o(),A(!1);return}for(;await (0,mz.isStateSyncing)();)await new Promise(e=>setTimeout(e,1e3));nN.toaster.create({description:"Sync Completed",type:"success",duration:5e3,closable:!0}),A(!1),l(""),await t.invalidateQueries({queryKey:e9.cacheKeys.lineage()}),await t.invalidateQueries({queryKey:e9.cacheKeys.checks()}),await t.invalidateQueries({queryKey:e9.cacheKeys.runs()}),/^\/checks\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/.test(n)&&r("/checks")},[t,n,r,o,s]);return e?(0,g.jsx)(w4,{}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(to.Tooltip,{content:"Sync with Cloud",children:(0,g.jsx)(Am.IconButton,{size:"sm",variant:"plain","aria-label":"Sync state",onClick:()=>u(c?.session_id?{method:"merge"}:{}),children:(0,g.jsx)(eU.Icon,{as:r7.IconSync,verticalAlign:"middle",boxSize:"16px"})})}),(0,g.jsx)(Aj.Dialog.Root,{open:i,onOpenChange:s,children:(0,g.jsxs)(AH.Portal,{children:[(0,g.jsx)(Aj.Dialog.Backdrop,{}),(0,g.jsxs)(Aj.Dialog.Positioner,{children:[(0,g.jsxs)(Aj.Dialog.Content,{children:[(0,g.jsx)(Aj.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsx)(Aj.Dialog.Title,{children:"Sync with Cloud"})}),(0,g.jsxs)(Aj.Dialog.Body,{children:[(0,g.jsx)(eb.Box,{children:"New changes have been detected in the cloud. Please choose a method to sync your state"}),(0,g.jsx)(eb.Box,{mt:"5px",children:(0,g.jsx)(w1.Root,{onValueChange:e=>{l(e.value)},value:a,children:(0,g.jsxs)(nK.Stack,{direction:"column",children:[(0,g.jsxs)(w1.Item,{value:"merge",children:[(0,g.jsx)(w1.ItemHiddenInput,{}),(0,g.jsx)(w1.ItemIndicator,{}),(0,g.jsxs)(w1.ItemText,{children:["Merge",(0,g.jsx)(to.Tooltip,{content:"This will merge the local and remote states.",children:(0,g.jsx)("span",{children:(0,g.jsx)(eU.Icon,{as:aG.PiInfo,ml:2,cursor:"pointer"})})})]})]}),(0,g.jsxs)(w1.Item,{value:"overwrite",children:[(0,g.jsx)(w1.ItemHiddenInput,{}),(0,g.jsx)(w1.ItemIndicator,{}),(0,g.jsxs)(w1.ItemText,{children:["Overwrite",(0,g.jsx)(to.Tooltip,{content:"This will overwrite the remote state file with the local state.",children:(0,g.jsx)("span",{children:(0,g.jsx)(eU.Icon,{as:aG.PiInfo,ml:2,cursor:"pointer"})})})]})]}),(0,g.jsxs)(w1.Item,{value:"revert",children:[(0,g.jsx)(w1.ItemHiddenInput,{}),(0,g.jsx)(w1.ItemIndicator,{}),(0,g.jsxs)(w1.ItemText,{children:["Revert",(0,g.jsx)(to.Tooltip,{content:"This will discard local changes and revert to the cloud state.",children:(0,g.jsx)("span",{children:(0,g.jsx)(eU.Icon,{as:aG.PiInfo,ml:2,cursor:"pointer"})})})]})]})]})})})]}),(0,g.jsxs)(Aj.Dialog.Footer,{children:[(0,g.jsx)(Ac.Button,{onClick:s,mr:3,children:"Cancel"}),(0,g.jsx)(Ac.Button,{colorPalette:"blue",onClick:()=>u({method:a||void 0}),disabled:!a,children:"Sync"})]})]}),(0,g.jsx)(Aj.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AL.CloseButton,{size:"sm"})})]})]})})]})}var w5=e.i(7880);let w6=["Processing...","Still processing, please wait...","Almost there, thanks for your patience..."];function w8(){let{successToast:e,failToast:A}=nP(),[,t]=(0,w5.useCopyToClipboard)(),{authed:n}=(0,tt.useRecceInstanceContext)(),{shareUrl:r,isLoading:i,error:o,handleShareClick:s}=(0,dJ.useRecceShareStateContext)(),[a,l]=(0,p.useState)(!1),[c,u]=(0,p.useState)(0),[d,h]=(0,p.useState)(i);i!==d&&(h(i),i&&u(0)),(0,w5.useInterval)(()=>{u(e=>Math.min(e+1,w6.length-1))},i?3e4:null);let f=async()=>{try{await t(String(r)),e("Copied the link to clipboard")}catch(e){A("Failed to copy the link",e)}};return n?(0,g.jsxs)(ev.Flex,{flex:"1",alignItems:"center",gap:"5px",children:[(0,g.jsxs)(Ac.Button,{size:"xs",variant:"outline",colorPalette:"gray",onClick:async()=>{await s(),(0,Ae.trackShareState)({name:"create"})},loading:i,children:[(0,g.jsx)(dY.TbCloudUpload,{})," Share ",r?(0,g.jsx)(aG.PiCheckCircle,{color:"green"}):void 0]}),i&&(0,g.jsx)(e6.Text,{fontSize:"14",color:"gray.500",children:w6[c]}),(0,g.jsxs)(ev.Flex,{gap:"5px",alignItems:"center",children:[r&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ev.Flex,{overflowX:"auto",whiteSpace:"nowrap",maxWidth:"350px",children:(0,g.jsx)(e6.Text,{fontSize:"14",children:r})}),(0,g.jsx)(Am.IconButton,{size:"2xs","aria-label":"Copy the share URL",onClick:async()=>{await f(),(0,Ae.trackShareState)({name:"copy"})},children:(0,g.jsx)(aG.PiCopy,{})})]}),o&&(0,g.jsx)(e6.Text,{fontSize:"14",color:"red.500",children:o})]})]}):(0,g.jsxs)(ev.Flex,{flex:"1",alignItems:"center",children:[(0,g.jsxs)(Ac.Button,{size:"xs",colorPalette:"gray",variant:"outline",onClick:()=>{l(!0)},children:[(0,g.jsx)(dY.TbCloudUpload,{})," Share"]}),a&&(0,g.jsx)(d2,{parentOpen:a,handleParentClose:l,ignoreCookie:!0,variant:"enable-share"})]})}let w7=e=>`The server will be closed in ${e} seconds.`,w9=function(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)};var ye=e.g&&e.g.Object===Object&&e.g,yA="object"==typeof self&&self&&self.Object===Object&&self,yt=ye||yA||Function("return this")();let yn=function(){return yt.Date.now()};var yr=/\s/;let yi=function(e){for(var A=e.length;A--&&yr.test(e.charAt(A)););return A};var yo=/^\s+/,ys=yt.Symbol,ya=Object.prototype,yl=ya.hasOwnProperty,yc=ya.toString,yu=ys?ys.toStringTag:void 0;let yd=function(e){var A=yl.call(e,yu),t=e[yu];try{e[yu]=void 0;var n=!0}catch(e){}var r=yc.call(e);return n&&(A?e[yu]=t:delete e[yu]),r};var yh=Object.prototype.toString,yf=ys?ys.toStringTag:void 0;let yg=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yf&&yf in Object(e)?yd(e):yh.call(e)},yp=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==yg(e)};var yB=0/0,ym=/^[-+]0x[0-9a-f]+$/i,yw=/^0b[01]+$/i,yy=/^0o[0-7]+$/i,yx=parseInt;let yC=function(e){if("number"==typeof e)return e;if(yp(e))return yB;if(w9(e)){var A,t="function"==typeof e.valueOf?e.valueOf():e;e=w9(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(A=e)?A.slice(0,yi(A)+1).replace(yo,""):A;var n=yw.test(e);return n||yy.test(e)?yx(e.slice(2),n?2:8):ym.test(e)?yB:+e};var yb=Math.max,yv=Math.min;let yQ=function(e,A,t){var n,r,i,o,s,a,l=0,c=!1,u=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(A){var t=n,i=r;return n=r=void 0,l=A,o=e.apply(i,t)}function f(e){var t=e-a,n=e-l;return void 0===a||t>=A||t<0||u&&n>=i}function g(){var e,t,n,r=yn();if(f(r))return p(r);s=setTimeout(g,(e=r-a,t=r-l,n=A-e,u?yv(n,i-t):n))}function p(e){return(s=void 0,d&&n)?h(e):(n=r=void 0,o)}function B(){var e,t=yn(),i=f(t);if(n=arguments,r=this,a=t,i){if(void 0===s)return l=e=a,s=setTimeout(g,A),c?h(e):o;if(u)return clearTimeout(s),s=setTimeout(g,A),h(a)}return void 0===s&&(s=setTimeout(g,A)),o}return A=yC(A)||0,w9(t)&&(c=!!t.leading,i=(u="maxWait"in t)?yb(yC(t.maxWait)||0,A):i,d="trailing"in t?!!t.trailing:d),B.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=a=r=s=void 0},B.flush=function(){return void 0===s?o:p(yn())},B},yF=function(e,A,t){var n=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return w9(t)&&(n="leading"in t?!!t.leading:n,r="trailing"in t?!!t.trailing:r),yQ(e,A,{leading:n,maxWait:A,trailing:r})};var yU=function(){return(yU=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)};function yE(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function yI(e){return e&&e.ownerDocument?e.ownerDocument:document}var yS=function(e){return Array.prototype.reduce.call(e,function(e,A){var t=A.name.match(/data-simplebar-(.+)/);if(t){var n=t[1].replace(/\W+(.)/g,function(e,A){return A.toUpperCase()});switch(A.value){case"true":case void 0:e[n]=!0;break;case"false":e[n]=!1;break;default:e[n]=A.value}}return e},{})};function yk(e,A){var t;e&&(t=e.classList).add.apply(t,A.split(" "))}function yj(e,A){e&&A.split(" ").forEach(function(A){e.classList.remove(A)})}function yH(e){return".".concat(e.split(" ").join("."))}var yD=!!("undefined"!=typeof window&&window.document&&window.document.createElement),yL=Object.freeze({__proto__:null,addClasses:yk,canUseDOM:yD,classNamesToQuery:yH,getElementDocument:yI,getElementWindow:yE,getOptions:yS,removeClasses:yj}),yR=null,yT=null;function yM(){if(null===yR){if("undefined"==typeof document)return yR=0;var e=document.body,A=document.createElement("div");A.classList.add("simplebar-hide-scrollbar"),e.appendChild(A);var t=A.getBoundingClientRect().right;e.removeChild(A),yR=t}return yR}yD&&window.addEventListener("resize",function(){yT!==window.devicePixelRatio&&(yT=window.devicePixelRatio,yR=null)});var yO=function(){function e(A,t){void 0===t&&(t={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=yE(n.el);n.scrollXTicking||(e.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(e.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,yk(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){yj(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(yk(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){yj(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(e){n.mouseX=e.clientX,n.mouseY=e.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(e){var A,t;n.axis.x.track.el&&n.axis.y.track.el&&n.axis.x.scrollbar.el&&n.axis.y.scrollbar.el&&(n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(A=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(t=n.isWithinBounds(n.axis.y.track.rect)),(A||t)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(A&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(e,"x"):n.onTrackClick(e,"x")),t&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(e,"y"):n.onTrackClick(e,"y")))))},this.drag=function(A){if(n.draggedAxis&&n.contentWrapperEl){var t,r,i,o,s,a,l,c,u,d,h,f=n.axis[n.draggedAxis].track,g=null!=(r=null==(t=f.rect)?void 0:t[n.axis[n.draggedAxis].sizeAttr])?r:0,p=n.axis[n.draggedAxis].scrollbar,B=null!=(o=null==(i=n.contentWrapperEl)?void 0:i[n.axis[n.draggedAxis].scrollSizeAttr])?o:0,m=parseInt(null!=(a=null==(s=n.elStyles)?void 0:s[n.axis[n.draggedAxis].sizeAttr])?a:"0px",10);A.preventDefault(),A.stopPropagation();var w=("y"===n.draggedAxis?A.pageY:A.pageX)-(null!=(c=null==(l=f.rect)?void 0:l[n.axis[n.draggedAxis].offsetAttr])?c:0)-n.axis[n.draggedAxis].dragOffset,y=(w="x"===n.draggedAxis&&n.isRtl?(null!=(d=null==(u=f.rect)?void 0:u[n.axis[n.draggedAxis].sizeAttr])?d:0)-p.size-w:w)/(g-p.size)*(B-m);"x"===n.draggedAxis&&n.isRtl&&(y=(null==(h=e.getRtlHelpers())?void 0:h.isScrollingToNegative)?-y:y),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=y}},this.onEndDrag=function(e){n.isDragging=!1;var A=yI(n.el),t=yE(n.el);e.preventDefault(),e.stopPropagation(),yj(n.el,n.classNames.dragging),n.onStopScrolling(),A.removeEventListener("mousemove",n.drag,!0),A.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=t.setTimeout(function(){A.removeEventListener("click",n.preventClick,!0),A.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=A,this.options=yU(yU({},e.defaultOptions),t),this.classNames=yU(yU({},e.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=yF(this._onMouseMove,64),this.onWindowResize=yQ(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=yQ(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=yQ(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var A=document.createElement("div");A.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=A.firstElementChild,n=null==t?void 0:t.firstElementChild;if(!n)return null;document.body.appendChild(t),t.scrollLeft=0;var r=e.getOffset(t),i=e.getOffset(n);t.scrollLeft=-999;var o=e.getOffset(n);return document.body.removeChild(t),e.rtlHelpers={isScrollOriginAtZero:r.left!==i.left,isScrollingToNegative:i.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{if(this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style)return 0;return yM()}catch(e){return yM()}},e.getOffset=function(e){var A=e.getBoundingClientRect(),t=yI(e),n=yE(e);return{top:A.top+(n.pageYOffset||t.documentElement.scrollTop),left:A.left+(n.pageXOffset||t.documentElement.scrollLeft)}},e.prototype.init=function(){yD&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,A;this.wrapperEl=this.el.querySelector(yH(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(yH(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(yH(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(yH(this.classNames.offset)),this.maskEl=this.el.querySelector(yH(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,yH(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(yH(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(yH(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(yH(this.classNames.track)).concat(yH(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(yH(this.classNames.track)).concat(yH(this.classNames.vertical))),this.axis.x.scrollbar.el=(null==(e=this.axis.x.track.el)?void 0:e.querySelector(yH(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null==(A=this.axis.y.track.el)?void 0:A.querySelector(yH(this.classNames.scrollbar)))||null,this.options.autoHide||(yk(this.axis.x.scrollbar.el,this.classNames.visible),yk(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,A=this,t=yE(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null==(e=this.contentWrapperEl)||e.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var n=!1,r=t.ResizeObserver||ResizeObserver;this.resizeObserver=new r(function(){n&&t.requestAnimationFrame(function(){A.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame(function(){n=!0})}this.mutationObserver=new t.MutationObserver(function(){t.requestAnimationFrame(function(){A.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=yE(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var A=this.contentEl.offsetWidth,t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1||A>0,r=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var s=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?"".concat(A||a,"px"):"auto",this.placeholderEl.style.height="".concat(s,"px");var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==A&&a>A,this.axis.y.isOverflowing=s>l,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>r-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>l-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var A,t,n,r=this.contentEl[this.axis[e].scrollSizeAttr],i=null!=(t=null==(A=this.axis[e].track.el)?void 0:A[this.axis[e].offsetSizeAttr])?t:0;return n=Math.max(~~(i/r*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},e.prototype.positionScrollbar=function(A){void 0===A&&(A="y");var t,n,r,i=this.axis[A].scrollbar;if(this.axis[A].isOverflowing&&this.contentWrapperEl&&i.el&&this.elStyles){var o=this.contentWrapperEl[this.axis[A].scrollSizeAttr],s=(null==(t=this.axis[A].track.el)?void 0:t[this.axis[A].offsetSizeAttr])||0,a=parseInt(this.elStyles[this.axis[A].sizeAttr],10),l=this.contentWrapperEl[this.axis[A].scrollOffsetAttr];l="x"===A&&this.isRtl&&(null==(n=e.getRtlHelpers())?void 0:n.isScrollOriginAtZero)?-l:l,"x"===A&&this.isRtl&&(l=(null==(r=e.getRtlHelpers())?void 0:r.isScrollingToNegative)?l:-l);var c=l/(o-a),u=~~((s-i.size)*c);u="x"===A&&this.isRtl?-u+(s-i.size):u,i.el.style.transform="x"===A?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var A=this.axis[e].track.el,t=this.axis[e].scrollbar.el;A&&t&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(A.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(A.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?t.style.display="block":t.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(yk(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(yj(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var A=this.axis[e];A.track.el&&A.scrollbar.el&&(A.track.rect=A.track.el.getBoundingClientRect(),A.scrollbar.rect=A.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(A.track.rect)?(this.showScrollbar(e),yk(A.track.el,this.classNames.hover),this.isWithinBounds(A.scrollbar.rect)?yk(A.scrollbar.el,this.classNames.hover):yj(A.scrollbar.el,this.classNames.hover)):(yj(A.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),yj(this.axis[e].track.el,this.classNames.hover),yj(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,A){void 0===A&&(A="y"),this.isDragging=!0;var t,n=yI(this.el),r=yE(this.el),i=this.axis[A].scrollbar,o="y"===A?e.pageY:e.pageX;this.axis[A].dragOffset=o-((null==(t=i.rect)?void 0:t[this.axis[A].offsetAttr])||0),this.draggedAxis=A,yk(this.el,this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,A){var t,n,r,i,o=this;void 0===A&&(A="y");var s=this.axis[A];if(this.options.clickOnTrack&&s.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var a=yE(this.el);this.axis[A].scrollbar.rect=s.scrollbar.el.getBoundingClientRect();var l=null!=(n=null==(t=this.axis[A].scrollbar.rect)?void 0:t[this.axis[A].offsetAttr])?n:0,c=parseInt(null!=(i=null==(r=this.elStyles)?void 0:r[this.axis[A].sizeAttr])?i:"0px",10),u=this.contentWrapperEl[this.axis[A].scrollOffsetAttr],d=("y"===A?this.mouseY-l:this.mouseX-l)<0?-1:1,h=-1===d?u-c:u+c,f=function(){o.contentWrapperEl&&(-1===d?u>h&&(u-=40,o.contentWrapperEl[o.axis[A].scrollOffsetAttr]=u,a.requestAnimationFrame(f)):u<h&&(u+=40,o.contentWrapperEl[o.axis[A].scrollOffsetAttr]=u,a.requestAnimationFrame(f)))};f()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=yE(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,A){var t=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return t.call(e,A)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=yS,e.helpers=yL,e}(),yN=function(){return(yN=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)},yP=p.forwardRef(function(e,A){var t=e.children,n=e.scrollableNodeProps,r=void 0===n?{}:n,i=function(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>A.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>A.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]]);return t}(e,["children","scrollableNodeProps"]),o=p.useRef(),s=p.useRef(),a=p.useRef(),l={},c={};Object.keys(i).forEach(function(e){Object.prototype.hasOwnProperty.call(yO.defaultOptions,e)?l[e]=i[e]:c[e]=i[e]});var u=yN(yN({},yO.defaultOptions.classNames),l.classNames),d=yN(yN({},r),{className:"".concat(u.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:l.tabIndex||yO.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||yO.defaultOptions.ariaLabel});return p.useEffect(function(){var e;return s.current=d.ref?d.ref.current:s.current,o.current&&(e=new yO(o.current,yN(yN(yN({},l),s.current&&{scrollableNode:s.current}),a.current&&{contentNode:a.current})),"function"==typeof A?A(e):A&&(A.current=e)),function(){null==e||e.unMount(),e=null,"function"==typeof A&&A(null)}},[]),p.createElement("div",yN({"data-simplebar":"init",ref:o},c),p.createElement("div",{className:u.wrapper},p.createElement("div",{className:u.heightAutoObserverWrapperEl},p.createElement("div",{className:u.heightAutoObserverEl})),p.createElement("div",{className:u.mask},p.createElement("div",{className:u.offset},"function"==typeof t?t({scrollableNodeRef:s,scrollableNodeProps:yN(yN({},d),{ref:s}),contentNodeRef:a,contentNodeProps:{className:u.contentEl,ref:a}}):p.createElement("div",yN({},d),p.createElement("div",{className:u.contentEl},t)))),p.createElement("div",{className:u.placeholder})),p.createElement("div",{className:"".concat(u.track," ").concat(u.horizontal)},p.createElement("div",{className:u.scrollbar})),p.createElement("div",{className:"".concat(u.track," ").concat(u.vertical)},p.createElement("div",{className:u.scrollbar})))});yP.displayName="SimpleBar";let y_=({run:e,isSelected:A,onSelectRun:t,onAddToChecklist:n,onGoToCheck:r})=>{let{featureToggles:i}=(0,tt.useRecceInstanceContext)(),{data:o}=(0,e8.useQuery)({queryKey:e9.cacheKeys.run(e.run_id),queryFn:async()=>await (0,il.waitRun)(e.run_id),enabled:"running"===e.status,retry:!1}),s=(0,nm.findByRunType)(e.type).icon,a=e.check_id,l=i.disableUpdateChecklist;return(0,g.jsxs)(ev.Flex,{minWidth:"200px",direction:"column",width:"100%",p:"5px 20px",cursor:"pointer",borderBottom:"solid 1px lightgray",borderLeft:"4px",borderLeftColor:A?"orange.400":"transparent",backgroundColor:A?"orange.50":"transparent",onClick:()=>{t(e.run_id)},_hover:{bg:A?"orange.50":"gray.200"},children:[(0,g.jsxs)(ev.Flex,{onClick:()=>{},alignItems:"center",gap:"12px",children:[(0,g.jsx)(eU.Icon,{as:s}),(0,g.jsx)(eb.Box,{className:"no-track-pii-safe",flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",color:e.name?"inherit":"gray.500",fontSize:"11pt",fontWeight:"500",children:e.name||"<no name>"}),a?(0,g.jsx)(to.Tooltip,{content:"Go to Check","aria-label":"Go to Check",children:(0,g.jsx)(e6.Text,{onClick:e=>{e.preventDefault(),e.stopPropagation(),r(a)},children:(0,g.jsx)(eU.Icon,{color:"green",as:t5})})}):l?null:(0,g.jsx)(to.Tooltip,{content:"Add to Checklist","aria-label":"Add to Checklist",children:(0,g.jsx)(e6.Text,{onClick:A=>{A.preventDefault(),A.stopPropagation(),(0,Ae.trackHistoryAction)({name:"add_to_checklist"}),n(e.run_id)},children:(0,g.jsx)(eU.Icon,{as:nr})})})]}),(0,g.jsx)(ev.Flex,{justifyContent:"start",fontSize:"11pt",color:"gray.500",gap:"3px",alignItems:"center",children:(0,g.jsx)(dW,{run:o??e})})]})},yK=({runAt:e})=>{var A;let t,n,r=e?(A=new Date(e),t=new Date,((n=new Date).setDate(t.getDate()-1),null==A)?null:t.toDateString()===A.toDateString()?"Today":n.toDateString()===A.toDateString()?"Yesterday":(0,rP.format)(A,"MMM d")):null;return(0,g.jsx)(ev.Flex,{minWidth:"200px",width:"100%",p:"5px 20px",borderBottom:"solid 1px lightgray",color:"gray.500",fontSize:"11pt",children:r})},yV=()=>{let{closeHistory:e}=(0,A9.useRecceActionContext)(),{data:A,isLoading:t}=(0,e8.useQuery)({queryKey:e9.cacheKeys.runs(),queryFn:async()=>await (0,il.listRuns)(),retry:!1});return(0,g.jsxs)(ev.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(e5.HStack,{width:"100%",flex:"0 0 54px",paddingInline:"24px 8px",borderBottom:"solid 1px lightgray",children:[(0,g.jsx)(eE.Heading,{size:"md",children:"History"}),(0,g.jsx)(eF.Spacer,{}),(0,g.jsx)(Am.IconButton,{variant:"ghost","aria-label":"Close History",onClick:()=>{(0,Ae.trackHistoryAction)({name:"hide"}),e()},children:(0,g.jsx)(aG.PiX,{})})]}),(0,g.jsx)(eb.Box,{flex:"1 1 auto",children:t?"Loading...":A?.length===0?(0,g.jsx)(As.Center,{height:"100%",color:"gray.400",children:"No runs"}):(0,g.jsx)(yP,{style:{minHeight:"100%",height:0},children:(A??[]).map((e,t)=>{if(null!=A){let n=0===t?null:new Date(A[t-1].run_at).toDateString();return(0,g.jsx)(yG,{run:e,previousDate:n},e.run_id)}})})})]})};function yG({run:e,previousDate:A}){let[,t]=(0,nx.useLocation)(),n=(0,A5.useQueryClient)(),{showRunId:r,runId:i}=(0,A9.useRecceActionContext)(),o=new Date(e.run_at).toDateString(),s=(0,p.useCallback)(async()=>{if(!i)return;let e=await AA(i);await n.invalidateQueries({queryKey:e9.cacheKeys.checks()}),t(`/checks/${e.check_id}`)},[i,t,n]),a=(0,p.useCallback)(e=>{(0,Ae.trackHistoryAction)({name:"go_to_check"}),t(`/checks/${e}`)},[t]);return(0,g.jsxs)(p.default.Fragment,{children:[null!=A&&A!==o&&(0,g.jsx)(yK,{runAt:e.run_at},o),(0,g.jsx)(y_,{run:e,isSelected:e.run_id===i,onSelectRun:e=>{(0,Ae.trackHistoryAction)({name:"click_run"}),r(e,!1)},onGoToCheck:a,onAddToChecklist:s},e.run_id)]})}var yz=e.i(51484);async function yW(){try{return(await e7.axiosClient.get("/api/users")).data}catch(e){throw console.error("Error fetching user data:",e),e}}async function y$(e){try{return(await yz.default.get(`https://api.github.com/user/${e}`)).data.avatar_url}catch(e){return console.warn("Failed to fetch GitHub avatar:",e),null}}e.s([],69020),e.i(69020),e.s([],79166),e.i(79166);let[yX,yY]=(0,U.createContext)({name:"AvatarContext",hookName:"useAvatarContext",providerName:"<AvatarProvider />"}),yJ=e=>e.children(yY()),yq=(0,p.forwardRef)((e,A)=>{let t=yY(),n=(0,y.mergeProps)(t.getFallbackProps(),e);return(0,g.jsx)(v.ark.span,{...n,ref:A})});yq.displayName="AvatarFallback";let yZ=(0,p.forwardRef)((e,A)=>{let t=yY(),n=(0,y.mergeProps)(t.getImageProps(),e);return(0,g.jsx)(v.ark.img,{...n,ref:A})});yZ.displayName="AvatarImage";var y0=e.i(42582);let y1=(0,p.forwardRef)((e,A)=>{let[t,n]=(0,C.createSplitProps)()(e,["id","ids","onStatusChange"]),r=(e=>{let A=(0,p.useId)(),{getRootNode:t}=(0,eA.useEnvironmentContext)(),{dir:n}=(0,et.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e},i=(0,L.useMachine)(y0.machine,r);return y0.connect(i,L.normalizeProps)})(t),i=(0,y.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(yX,{value:r,children:(0,g.jsx)(v.ark.div,{...i,ref:A})})});y1.displayName="AvatarRoot";let y2=(0,p.forwardRef)((e,A)=>{let[{value:t},n]=(0,C.createSplitProps)()(e,["value"]),r=(0,y.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(yX,{value:t,children:(0,g.jsx)(v.ark.div,{...r,ref:A})})});y2.displayName="AvatarRootProvider",e.s(["Context",()=>yJ,"Fallback",()=>yq,"Image",()=>yZ,"Root",()=>y1,"RootProvider",()=>y2],64036);var y4=e.i(64036),y4=y4,y3=e.i(90304);let{withProvider:y5,withContext:y6,useStyles:y8,useClassNames:y7,PropsProvider:y9}=(0,eo.createSlotRecipeContext)({key:"avatar"}),xe=y5(y4.RootProvider,"root",{forwardAsChild:!0}),xA=y5(y4.Root,"root",{forwardAsChild:!0}),xt=(0,B.chakra)(y4.Fallback,{},{forwardAsChild:!0}),xn=(0,p.forwardRef)(function(e,A){let t,n,r,i=y8(),o=y7(),{name:s,...a}=e;return(0,g.jsx)(xt,{ref:A,...a,className:(0,m.cx)(e.className,o.fallback),css:[i.fallback,e.css],children:e.children||e.asChild?e.children:e.name?(n=null!=(t=e.name.trim().split(" "))[0]?t[0]:"",r=t.length>1?t[t.length-1]:"",n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)):(0,g.jsx)(xi,{})})}),xr=y6(y4.Image,"image",{forwardAsChild:!0,defaultProps:{draggable:"false",referrerPolicy:"no-referrer"}}),xi=(0,p.forwardRef)(function(e,A){return(0,g.jsx)(B.chakra.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1.2em",width:"1.2em",ref:A,...e,children:(0,g.jsx)("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})})}),xo=y4.Context;(0,p.forwardRef)(function(e,A){let t=(0,y3.useSlotRecipe)({key:"avatar"}),[n,r]=(0,p.useMemo)(()=>t.splitVariantProps(e),[e,t]);return(0,g.jsx)(y9,{value:n,children:(0,g.jsx)(ho.Group,{gap:"0",spaceX:"-3",ref:A,...r})})}),e.s(["Context",()=>xo,"Fallback",()=>xn,"Icon",()=>xi,"Image",()=>xr,"PropsProvider",()=>y9,"Root",()=>xA,"RootProvider",()=>xe],22543);var xs=e.i(22543),xs=xs;function xa(){let{data:e,isLoading:A,error:t}=(0,e8.useQuery)({queryKey:e9.cacheKeys.user(),queryFn:yW,retry:!1}),{data:n}=(0,e8.useQuery)({queryKey:["github-avatar",e?.id],queryFn:()=>e?y$(e.id):Promise.resolve(null),enabled:!!e?.id&&"github"===e.login_type,retry:!1,staleTime:3e5}),r=(0,p.useRef)(null),i=!A&&!t&&e;return(0,g.jsxs)(Aw.Menu.Root,{positioning:{getAnchorRect:()=>r.current?.getBoundingClientRect()??null},children:[(0,g.jsx)(Aw.Menu.Trigger,{asChild:!0,children:A?(0,g.jsx)(eb.Box,{width:"32px",height:"32px",borderRadius:"full",bg:"white",color:"brand.500",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",children:(0,g.jsx)(te.Spinner,{size:"sm"})}):(0,g.jsxs)(xs.Root,{outlineStyle:"solid",outlineWidth:"1px",outlineColor:"white",ref:r,size:"xs",cursor:"pointer",children:[(0,g.jsx)(xs.Fallback,{name:e?.login??"U"}),n&&(0,g.jsx)(xs.Image,{src:n})]})}),(0,g.jsx)(AH.Portal,{children:(0,g.jsx)(Aw.Menu.Positioner,{children:(0,g.jsxs)(Aw.Menu.Content,{bg:"white",borderColor:"gray.200",boxShadow:"lg",minW:"180px",children:[(0,g.jsxs)(eb.Box,{px:3,py:2,children:[A&&(0,g.jsxs)(eb.Box,{display:"flex",alignItems:"center",gap:2,children:[(0,g.jsx)(e6.Text,{fontSize:"sm",color:"gray.800",children:"Loading..."}),(0,g.jsx)(te.Spinner,{size:"sm"})]}),t&&(0,g.jsx)(e6.Text,{fontSize:"xs",color:"red.500",children:"Failed to load user information"}),i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e6.Text,{fontWeight:"semibold",fontSize:"sm",color:"gray.800",children:e.login}),e.email&&(0,g.jsx)(e6.Text,{fontSize:"xs",color:"gray.400",children:e.email})]})]}),(0,g.jsx)(Aw.Menu.Separator,{}),(0,g.jsxs)(Aw.Menu.Item,{value:"recce cloud",onClick:()=>window.open("https://cloud.datarecce.io/","_blank"),children:[(0,g.jsx)(eU.Icon,{as:t8,mr:2}),"Recce Cloud"]}),(0,g.jsxs)(Aw.Menu.Item,{value:"get live support",onClick:()=>window.open(az.RECCE_SUPPORT_CALENDAR_URL,"_blank"),children:[(0,g.jsx)(eU.Icon,{as:nn,mr:2}),"Get live support"]})]})})})]})}let xl=({children:e,path:A})=>{let[t]=(0,nx.useRoute)(A);return(0,g.jsx)(eb.Box,{display:t?"block":"none",height:"100%",children:e})};function xc({icon:e,href:A,...t}){return(0,g.jsx)(eQ.Link,{height:"20px",color:"white",href:A,target:"_blank",...t,children:(0,g.jsx)(eU.Icon,{color:"white",boxSize:"20px",as:e})})}function xu(){let{version:e,latestVersion:A}=function(){let[e,A]=(0,p.useState)(""),[t,n]=(0,p.useState)("");return(0,p.useEffect)(()=>{!async function(){try{let{version:e,latestVersion:t}=(await e7.axiosClient.get("/api/version")).data;A(e),n(t)}catch(e){console.error("Error fetching version number:",e)}}()},[]),{version:e,latestVersion:t}}(),t=(0,p.useMemo)(()=>RegExp("^\\d+\\.\\d+\\.\\d+$"),[]);return((0,p.useEffect)(()=>{if(t.test(e)&&e!==A){let e="recce-update-toast-shown";sessionStorage.getItem(e)||setTimeout(()=>{nN.toaster.create({id:"recce-update-available",title:"Update available",description:(0,g.jsxs)("span",{children:["A new version of Recce (v",A,") is available.",(0,g.jsx)("br",{}),"Please run ",(0,g.jsx)(eC,{children:"pip install --upgrade recce"})," to update Recce.",(0,g.jsx)("br",{}),(0,g.jsx)(eQ.Link,{color:"brand.700",fontWeight:"bold",href:`https://github.com/DataRecce/recce/releases/tag/v${A}`,_hover:{textDecoration:"underline"},target:"_blank",children:"Click here to view the detail of latest release"})]}),duration:6e4,closable:!0}),sessionStorage.setItem(e,"true")},0)}},[e,A,t]),t.test(e))?(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsx)(eQ.Link,{href:`https://github.com/DataRecce/recce/releases/tag/v${e}`,_hover:{textDecoration:"none"},children:(0,g.jsx)(e6.Text,{color:"white/80",children:e})})}):(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:e})}function xd(){let{reviewMode:e,isDemoSite:A,envInfo:t,cloudMode:n}=(0,A8.useLineageGraphContext)(),{featureToggles:r,lifetimeExpiredAt:i,authed:o}=(0,tt.useRecceInstanceContext)(),{url:s,id:a}=t?.pullRequest??{},l=s?s.split("/").pop():null,c=n||o?"https://cloud.datarecce.io/":"https://reccehq.com/",[u,d]=(0,p.useState)(!1);return!function(e){let A=nN.toaster,[t,n]=(0,p.useState)(null),r=(0,p.useRef)(void 0),i=(0,p.useCallback)(()=>{if(!e)return 0;let A=new Date;return Math.max(0,Math.floor((e.getTime()-A.getTime())/1e3))},[e]),o=(0,p.useCallback)(()=>{null!=t&&(A.remove(t),n(null))},[A,t]),s=(0,p.useCallback)(()=>{if(null==t)return;let e=i();e<=0?o():A.update(t,{description:w7(e)})},[t,i,A,o]),a=(0,p.useCallback)(()=>{if(!e)return;o();let t=i();t<=0||(n(A.create({id:"lifetime-countdown",description:w7(t)})),r.current=setInterval(s,1e3))},[e,A,i,s,o]),l=i(),c=e?1e3*Math.max(0,l-60):null;(0,w5.useTimeout)(a,c),(0,p.useEffect)(()=>o,[o])}(i),(0,g.jsxs)(ev.Flex,{gap:"10px",minHeight:"40px",alignItems:"center",bg:"rgb(255, 110, 66)",children:[(0,g.jsx)(eQ.Link,{href:c,target:"_blank",_hover:{textDecoration:"none"},children:(0,g.jsxs)(ev.Flex,{gap:"10px",alignItems:"center",children:[(0,g.jsx)(w,{boxSize:"20px",ml:"18px",src:"/logo/recce-logo-white.png",alt:"recce-logo-white"}),(0,g.jsx)(eE.Heading,{as:"h1",fontFamily:'"Montserrat", sans-serif',fontSize:"lg",color:"white",children:"RECCE"})]})}),(0,g.jsx)(xu,{}),(r.mode??e)&&(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:r.mode??"review mode"}),n&&a&&(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(eb.Box,{children:"cloud mode"}),(0,g.jsx)(eb.Box,{borderLeftWidth:"1px",borderLeftColor:"white/80",paddingLeft:"8px",children:(0,g.jsxs)(eQ.Link,{href:s,_hover:{textDecoration:"none"},target:"_blank",children:[(0,g.jsx)(eU.Icon,{color:"white/80",as:AZ.VscGitPullRequest,boxSize:"3",marginRight:.5,fontWeight:"extrabold",strokeWidth:"1"}),(0,g.jsx)(e6.Text,{color:"white/80",children:`#${String(a)}`})]})})]})}),A&&s&&l&&(0,g.jsx)(ek,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsxs)(e5.HStack,{children:[(0,g.jsx)(eb.Box,{children:"demo mode"}),(0,g.jsx)(eb.Box,{borderLeftWidth:"1px",borderLeftColor:"white/80",paddingLeft:"8px",children:(0,g.jsxs)(eQ.Link,{href:s,_hover:{textDecoration:"none"},target:"_blank",children:[(0,g.jsx)(eU.Icon,{color:"white/80",as:AZ.VscGitPullRequest,boxSize:"3",marginRight:.5,fontWeight:"extrabold",strokeWidth:"1"}),(0,g.jsx)(e6.Text,{color:"white/80",children:`#${l}`})]})})]})}),(0,g.jsx)(eF.Spacer,{}),(A||"read only"===r.mode)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(xc,{icon:t2,href:"https://github.com/DataRecce/recce"}),(0,g.jsx)(xc,{icon:t4,href:"https://getdbt.slack.com/archives/C05C28V7CPP"}),(0,g.jsx)(xc,{mr:2,icon:nA,href:"https://docs.datarecce.io"})]}),!A&&"read only"!==r.mode&&(0,g.jsx)(g.Fragment,{children:o||n?(0,g.jsx)(eb.Box,{mr:2,children:(0,g.jsx)(xa,{})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eb.Box,{as:"button",color:"white",fontSize:"sm",fontWeight:"semibold",bg:"brand.700",borderRadius:"md",px:3,py:1,mr:2,cursor:"pointer",onClick:()=>{d(!0)},children:"Connect to Cloud"}),u&&(0,g.jsx)(d2,{parentOpen:u,handleParentClose:d,ignoreCookie:!0,variant:"user-profile"})]})})]})}function xh({queryKey:e,fetchCallback:A,selectCallback:t}){let{data:n,isLoading:r,error:i}=(0,e8.useQuery)({queryKey:e,queryFn:A,select:t});return r||i||0===n?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)(eb.Box,{ml:"2px",maxH:"20px",height:"80%",aspectRatio:1,borderRadius:"full",bg:"tomato",alignContent:"center",color:"white",fontSize:"xs",children:n})}function xf(){let{isDemoSite:e,cloudMode:A,isLoading:t}=(0,A8.useLineageGraphContext)(),{featureToggles:n}=(0,tt.useRecceInstanceContext)(),[r,i]=(0,nx.useLocation)(),[o,s]=(0,p.useState)("/lineage"),{data:a,isLoading:l}=(0,hy.useRecceServerFlag)(),c=[{name:"Lineage",href:"/lineage"},{name:"Query",href:"/query"},{name:"Checklist",href:"/checks",badge:(0,g.jsx)(xh,{queryKey:e9.cacheKeys.checks(),fetchCallback:At,selectCallback:e=>e.filter(e=>!e.is_checked).length}),disable:a?.single_env_onboarding===!0}];return(0,p.useEffect)(()=>{s(`/${r.split("/")[1]}`)},[r]),(0,g.jsx)(em.Root,{colorPalette:"iochmara",defaultValue:"/lineage",value:o,onValueChange:e=>{s(e.value)},children:(0,g.jsxs)(em.List,{display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",children:[(0,g.jsx)(eb.Box,{display:"flex",children:c.map(({name:e,href:A,badge:n,disable:r})=>(0,g.jsxs)(em.Trigger,{value:A,onClick:()=>{i(A)},disabled:!!t||l||r,hidden:r,children:[e,n]},A))}),(0,g.jsxs)(ev.Flex,{alignItems:"center",gap:"12px",justifyContent:"center",children:[!t&&!e&&(0,g.jsx)(wx,{}),!t&&!e&&!a?.single_env_onboarding&&!n.disableShare&&(0,g.jsx)(w8,{})]}),!t&&(0,g.jsxs)(ev.Flex,{justifyContent:"right",alignItems:"center",mr:"8px",children:[(0,g.jsx)(io,{}),A&&(0,g.jsx)(w3,{}),(0,g.jsx)(ww,{})]})]})})}function xg(){let{isRunResultOpen:e,isHistoryOpen:A,closeRunResult:t}=(0,A9.useRecceActionContext)(),{data:n}=(0,hy.useRecceServerFlag)(),[r]=(0,nx.useLocation)(),i=e&&!r.startsWith("/checks"),o=A&&!r.startsWith("/checks");return(0,g.jsxs)(tz,{sizes:[0,100],minSize:300*!!o,gutterSize:5*!!o,style:{height:"100%"},children:[(0,g.jsx)(eb.Box,{style:{contain:"size"},children:o&&(0,g.jsx)(yV,{})}),(0,g.jsxs)(tW,{sizes:i?[50,50]:[100,0],minSize:100*!!i,gutterSize:5*!!i,style:{flex:"1",contain:"size"},children:[(0,g.jsx)(eb.Box,{p:0,style:{contain:"content"},children:(0,g.jsxs)(wm,{children:[(0,g.jsx)(xl,{path:"/lineage",children:(0,g.jsx)(wy,{})}),(0,g.jsxs)(nx.Switch,{children:[(0,g.jsx)(nx.Route,{path:"/query",children:(0,g.jsx)(wg,{})}),(0,g.jsx)(nx.Route,{path:"/checks/:slug?",children:(0,g.jsx)(mX,{})}),(0,g.jsx)(nx.Route,{path:"/runs/:runId",children:({runId:e})=>(0,g.jsx)(wp,{runId:e})}),(0,g.jsx)(nx.Route,{path:"/ssr",children:(0,g.jsx)(e3.Root,{size:"xs",value:null,colorPalette:"iochmara",children:(0,g.jsx)(e3.Track,{children:(0,g.jsx)(e3.Range,{})})})}),(0,g.jsx)(nx.Route,{children:(0,g.jsx)(nx.Redirect,{to:"/lineage"})})]})]})}),i?(0,g.jsx)(d8,{onClose:t,isSingleEnvironment:!!n?.single_env_onboarding}):(0,g.jsx)(eb.Box,{})]})]})}function xp({children:e}){return(0,g.jsx)(ev.Flex,{direction:"column",height:"100vh",overflow:"hidden",children:e})}function xB(){let{isDemoSite:e,isLoading:A,isCodespace:t}=(0,A8.useLineageGraphContext)(),{featureToggles:n}=(0,tt.useRecceInstanceContext)();return(0,p.useEffect)(()=>{(0,Ae.trackInit)()},[]),(0,g.jsxs)(xp,{children:[(0,g.jsx)(xd,{}),(0,g.jsx)(xf,{}),(0,g.jsx)(xg,{}),!A&&!e&&!t&&null===n.mode&&(0,g.jsx)(d2,{})]})}e.s(["default",()=>xB],31713)}]);