@next-bricks/form 1.9.5 → 1.9.7

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 (213) hide show
  1. package/dist/bricks.json +26 -26
  2. package/dist/chunks/1045.b1bc5ba1.js +2 -0
  3. package/dist/chunks/1045.b1bc5ba1.js.map +1 -0
  4. package/dist/chunks/1122.6128277d.js +2 -0
  5. package/dist/chunks/1122.6128277d.js.map +1 -0
  6. package/dist/chunks/114.22e33460.js +2 -0
  7. package/dist/chunks/114.22e33460.js.map +1 -0
  8. package/dist/chunks/{4884.146dfa39.js → 1269.54e4c66b.js} +2 -2
  9. package/dist/chunks/1269.54e4c66b.js.map +1 -0
  10. package/dist/chunks/1330.fee707aa.js +2 -0
  11. package/dist/chunks/1330.fee707aa.js.map +1 -0
  12. package/dist/chunks/1370.a4868fd8.js +2 -0
  13. package/dist/chunks/1370.a4868fd8.js.map +1 -0
  14. package/dist/chunks/{1940.ccdd04a4.js → 1940.b9abb8c5.js} +2 -2
  15. package/dist/chunks/{1940.ccdd04a4.js.map → 1940.b9abb8c5.js.map} +1 -1
  16. package/dist/chunks/{2277.1a0956e9.js → 2277.8f64ef60.js} +2 -2
  17. package/dist/chunks/{4658.556612b4.js.map → 2277.8f64ef60.js.map} +1 -1
  18. package/dist/chunks/{3067.ab189336.js → 3067.052f8655.js} +2 -1
  19. package/dist/chunks/3067.052f8655.js.LICENSE.txt +3 -0
  20. package/dist/chunks/3067.052f8655.js.map +1 -0
  21. package/dist/chunks/{3171.87e8940d.js → 3171.5cdb171f.js} +2 -2
  22. package/dist/chunks/{3171.87e8940d.js.map → 3171.5cdb171f.js.map} +1 -1
  23. package/dist/chunks/3426.cf27e18e.js +2 -0
  24. package/dist/chunks/3426.cf27e18e.js.map +1 -0
  25. package/dist/chunks/{3933.02261fd0.js → 3933.6d84e6d6.js} +2 -2
  26. package/dist/chunks/{6314.9d9aac9d.js.map → 3933.6d84e6d6.js.map} +1 -1
  27. package/dist/chunks/{4103.473c1ae2.js → 4103.18ccacda.js} +2 -2
  28. package/dist/chunks/4103.18ccacda.js.map +1 -0
  29. package/dist/chunks/{4658.556612b4.js → 4658.013f10c4.js} +2 -2
  30. package/dist/chunks/{2277.1a0956e9.js.map → 4658.013f10c4.js.map} +1 -1
  31. package/dist/chunks/5399.7cc0c108.js +2 -0
  32. package/dist/chunks/5399.7cc0c108.js.map +1 -0
  33. package/dist/chunks/{5552.a169645a.js → 5552.233d455a.js} +2 -2
  34. package/dist/chunks/{5552.a169645a.js.map → 5552.233d455a.js.map} +1 -1
  35. package/dist/chunks/{6314.9d9aac9d.js → 6314.c44c4ded.js} +2 -2
  36. package/dist/chunks/{3933.02261fd0.js.map → 6314.c44c4ded.js.map} +1 -1
  37. package/dist/chunks/{6773.652dfdc3.js → 6773.4999c644.js} +2 -2
  38. package/dist/chunks/6773.4999c644.js.map +1 -0
  39. package/dist/chunks/7115.27a0e67d.js +2 -0
  40. package/dist/chunks/7115.27a0e67d.js.map +1 -0
  41. package/dist/chunks/726.3f2c2edb.js +2 -0
  42. package/dist/chunks/726.3f2c2edb.js.map +1 -0
  43. package/dist/chunks/7304.fb3a17e4.js +2 -0
  44. package/dist/chunks/7304.fb3a17e4.js.map +1 -0
  45. package/dist/chunks/7434.0fe3413f.js +2 -0
  46. package/dist/chunks/7434.0fe3413f.js.map +1 -0
  47. package/dist/chunks/7733.420b5fb9.js +2 -0
  48. package/dist/chunks/7733.420b5fb9.js.map +1 -0
  49. package/dist/chunks/{790.a0da1c30.js → 790.febb6afa.js} +2 -2
  50. package/dist/chunks/{790.a0da1c30.js.map → 790.febb6afa.js.map} +1 -1
  51. package/dist/chunks/{818.006ee5f0.js → 818.0e60c75d.js} +3 -3
  52. package/dist/chunks/818.0e60c75d.js.LICENSE.txt +13 -0
  53. package/dist/chunks/818.0e60c75d.js.map +1 -0
  54. package/dist/chunks/825.6af9664c.js +3 -0
  55. package/dist/chunks/825.6af9664c.js.map +1 -0
  56. package/dist/chunks/8954.92afdd66.js +2 -0
  57. package/dist/chunks/8954.92afdd66.js.map +1 -0
  58. package/dist/chunks/8989.b92b1ae1.js +2 -0
  59. package/dist/chunks/8989.b92b1ae1.js.map +1 -0
  60. package/dist/chunks/9259.7e553f4a.js +3 -0
  61. package/dist/chunks/9259.7e553f4a.js.LICENSE.txt +1 -0
  62. package/dist/chunks/9259.7e553f4a.js.map +1 -0
  63. package/dist/chunks/{9496.a39c7c4e.js → 9496.53037151.js} +2 -2
  64. package/dist/chunks/{9496.a39c7c4e.js.map → 9496.53037151.js.map} +1 -1
  65. package/dist/chunks/{9515.e0e282f4.js → 9515.3824dc76.js} +2 -2
  66. package/dist/chunks/{9515.e0e282f4.js.map → 9515.3824dc76.js.map} +1 -1
  67. package/dist/chunks/9559.a627254b.js +2 -0
  68. package/dist/chunks/9559.a627254b.js.map +1 -0
  69. package/dist/chunks/{9850.34970be8.js → 9850.833b8b86.js} +2 -1
  70. package/dist/chunks/9850.833b8b86.js.LICENSE.txt +3 -0
  71. package/dist/chunks/9850.833b8b86.js.map +1 -0
  72. package/dist/chunks/eo-auto-complete.27d63bb7.js +3 -0
  73. package/dist/chunks/eo-auto-complete.27d63bb7.js.map +1 -0
  74. package/dist/chunks/eo-checkbox.2d909a08.js +2 -0
  75. package/dist/chunks/eo-checkbox.2d909a08.js.map +1 -0
  76. package/dist/chunks/eo-color-picker.96088cda.js +2 -0
  77. package/dist/chunks/{eo-color-picker.c0fc35a2.js.map → eo-color-picker.96088cda.js.map} +1 -1
  78. package/dist/chunks/eo-date-picker.0bd5d04b.js +2 -0
  79. package/dist/chunks/eo-date-picker.0bd5d04b.js.map +1 -0
  80. package/dist/chunks/eo-dynamic-form-item.12f8373f.js +3 -0
  81. package/dist/chunks/eo-dynamic-form-item.12f8373f.js.map +1 -0
  82. package/dist/chunks/eo-form-item.35a9cebb.js +3 -0
  83. package/dist/chunks/eo-form-item.35a9cebb.js.map +1 -0
  84. package/dist/chunks/eo-form.0e58f33b.js +2 -0
  85. package/dist/chunks/eo-form.0e58f33b.js.map +1 -0
  86. package/dist/chunks/eo-icon-select.2446679c.js +3 -0
  87. package/dist/chunks/eo-icon-select.2446679c.js.map +1 -0
  88. package/dist/chunks/eo-input.d9018d17.js +3 -0
  89. package/dist/chunks/eo-input.d9018d17.js.map +1 -0
  90. package/dist/chunks/eo-radio.12b1b510.js +3 -0
  91. package/dist/chunks/eo-radio.12b1b510.js.map +1 -0
  92. package/dist/chunks/eo-search.1a3293a8.js +2 -0
  93. package/dist/chunks/eo-search.1a3293a8.js.map +1 -0
  94. package/dist/chunks/eo-select.cfc26f46.js +3 -0
  95. package/dist/chunks/eo-select.cfc26f46.js.map +1 -0
  96. package/dist/chunks/eo-submit-buttons.8a9b72d9.js +2 -0
  97. package/dist/chunks/eo-submit-buttons.8a9b72d9.js.map +1 -0
  98. package/dist/chunks/eo-switch.e644ffeb.js +3 -0
  99. package/dist/chunks/eo-switch.e644ffeb.js.map +1 -0
  100. package/dist/chunks/eo-textarea.05ea0943.js +3 -0
  101. package/dist/chunks/eo-textarea.05ea0943.js.map +1 -0
  102. package/dist/chunks/eo-time-picker.3cbae577.js +2 -0
  103. package/dist/chunks/eo-time-picker.3cbae577.js.map +1 -0
  104. package/dist/chunks/eo-time-range-picker.793468d8.js +2 -0
  105. package/dist/chunks/eo-time-range-picker.793468d8.js.map +1 -0
  106. package/dist/chunks/eo-upload-file.edeb4c66.js +3 -0
  107. package/dist/chunks/eo-upload-file.edeb4c66.js.map +1 -0
  108. package/dist/chunks/eo-upload-image.08f75296.js +3 -0
  109. package/dist/chunks/eo-upload-image.08f75296.js.map +1 -0
  110. package/dist/chunks/main.d730fff2.js +2 -0
  111. package/dist/chunks/main.d730fff2.js.map +1 -0
  112. package/dist/examples.json +12 -12
  113. package/dist/index.258ff005.js +2 -0
  114. package/dist/index.258ff005.js.map +1 -0
  115. package/dist/manifest.json +413 -413
  116. package/dist/types.json +1290 -1290
  117. package/package.json +4 -4
  118. package/dist/chunks/1045.d3f875fb.js +0 -2
  119. package/dist/chunks/1045.d3f875fb.js.map +0 -1
  120. package/dist/chunks/1122.753b75ff.js +0 -2
  121. package/dist/chunks/1122.753b75ff.js.map +0 -1
  122. package/dist/chunks/114.892f7d1f.js +0 -2
  123. package/dist/chunks/114.892f7d1f.js.map +0 -1
  124. package/dist/chunks/1337.7e5a7581.js +0 -2
  125. package/dist/chunks/1337.7e5a7581.js.map +0 -1
  126. package/dist/chunks/1370.155c3038.js +0 -2
  127. package/dist/chunks/1370.155c3038.js.map +0 -1
  128. package/dist/chunks/3067.ab189336.js.map +0 -1
  129. package/dist/chunks/3426.c567ab09.js +0 -2
  130. package/dist/chunks/3426.c567ab09.js.map +0 -1
  131. package/dist/chunks/3649.abde197c.js +0 -3
  132. package/dist/chunks/3649.abde197c.js.map +0 -1
  133. package/dist/chunks/4103.473c1ae2.js.map +0 -1
  134. package/dist/chunks/4884.146dfa39.js.map +0 -1
  135. package/dist/chunks/5399.c3256f5a.js +0 -2
  136. package/dist/chunks/5399.c3256f5a.js.map +0 -1
  137. package/dist/chunks/6606.9c7347be.js +0 -2
  138. package/dist/chunks/6606.9c7347be.js.map +0 -1
  139. package/dist/chunks/6773.652dfdc3.js.map +0 -1
  140. package/dist/chunks/7115.6e551388.js +0 -2
  141. package/dist/chunks/7115.6e551388.js.map +0 -1
  142. package/dist/chunks/726.16d4cb2c.js +0 -2
  143. package/dist/chunks/726.16d4cb2c.js.map +0 -1
  144. package/dist/chunks/7304.6302a538.js +0 -2
  145. package/dist/chunks/7304.6302a538.js.map +0 -1
  146. package/dist/chunks/7434.f34ef845.js +0 -2
  147. package/dist/chunks/7434.f34ef845.js.map +0 -1
  148. package/dist/chunks/7733.f25ce4b9.js +0 -2
  149. package/dist/chunks/7733.f25ce4b9.js.map +0 -1
  150. package/dist/chunks/7949.1f1c9f7d.js +0 -2
  151. package/dist/chunks/7949.1f1c9f7d.js.map +0 -1
  152. package/dist/chunks/818.006ee5f0.js.LICENSE.txt +0 -11
  153. package/dist/chunks/818.006ee5f0.js.map +0 -1
  154. package/dist/chunks/8954.458a7fa9.js +0 -2
  155. package/dist/chunks/8954.458a7fa9.js.map +0 -1
  156. package/dist/chunks/8989.f2cc68c9.js +0 -2
  157. package/dist/chunks/8989.f2cc68c9.js.map +0 -1
  158. package/dist/chunks/9559.258cc5ae.js +0 -2
  159. package/dist/chunks/9559.258cc5ae.js.map +0 -1
  160. package/dist/chunks/9850.34970be8.js.map +0 -1
  161. package/dist/chunks/eo-auto-complete.02f91029.js +0 -3
  162. package/dist/chunks/eo-auto-complete.02f91029.js.map +0 -1
  163. package/dist/chunks/eo-checkbox.d15b0afb.js +0 -2
  164. package/dist/chunks/eo-checkbox.d15b0afb.js.map +0 -1
  165. package/dist/chunks/eo-color-picker.c0fc35a2.js +0 -2
  166. package/dist/chunks/eo-date-picker.80184cf4.js +0 -2
  167. package/dist/chunks/eo-date-picker.80184cf4.js.map +0 -1
  168. package/dist/chunks/eo-dynamic-form-item.01e53cc9.js +0 -3
  169. package/dist/chunks/eo-dynamic-form-item.01e53cc9.js.map +0 -1
  170. package/dist/chunks/eo-form-item.a5db4203.js +0 -3
  171. package/dist/chunks/eo-form-item.a5db4203.js.map +0 -1
  172. package/dist/chunks/eo-form.19913e06.js +0 -2
  173. package/dist/chunks/eo-form.19913e06.js.map +0 -1
  174. package/dist/chunks/eo-icon-select.7e1794dc.js +0 -3
  175. package/dist/chunks/eo-icon-select.7e1794dc.js.map +0 -1
  176. package/dist/chunks/eo-input.1180f4e2.js +0 -3
  177. package/dist/chunks/eo-input.1180f4e2.js.map +0 -1
  178. package/dist/chunks/eo-radio.53354dcb.js +0 -3
  179. package/dist/chunks/eo-radio.53354dcb.js.map +0 -1
  180. package/dist/chunks/eo-search.a9569167.js +0 -2
  181. package/dist/chunks/eo-search.a9569167.js.map +0 -1
  182. package/dist/chunks/eo-select.5d07e8c1.js +0 -3
  183. package/dist/chunks/eo-select.5d07e8c1.js.map +0 -1
  184. package/dist/chunks/eo-submit-buttons.82b33a72.js +0 -2
  185. package/dist/chunks/eo-submit-buttons.82b33a72.js.map +0 -1
  186. package/dist/chunks/eo-switch.18c89925.js +0 -3
  187. package/dist/chunks/eo-switch.18c89925.js.map +0 -1
  188. package/dist/chunks/eo-textarea.b6e645b7.js +0 -3
  189. package/dist/chunks/eo-textarea.b6e645b7.js.map +0 -1
  190. package/dist/chunks/eo-time-picker.2b4110b1.js +0 -2
  191. package/dist/chunks/eo-time-picker.2b4110b1.js.map +0 -1
  192. package/dist/chunks/eo-time-range-picker.59524fd1.js +0 -2
  193. package/dist/chunks/eo-time-range-picker.59524fd1.js.map +0 -1
  194. package/dist/chunks/eo-upload-file.3e9ed5ea.js +0 -3
  195. package/dist/chunks/eo-upload-file.3e9ed5ea.js.map +0 -1
  196. package/dist/chunks/eo-upload-image.729ca4da.js +0 -3
  197. package/dist/chunks/eo-upload-image.729ca4da.js.map +0 -1
  198. package/dist/chunks/main.9465fd29.js +0 -2
  199. package/dist/chunks/main.9465fd29.js.map +0 -1
  200. package/dist/index.7f6674a6.js +0 -2
  201. package/dist/index.7f6674a6.js.map +0 -1
  202. /package/dist/chunks/{3649.abde197c.js.LICENSE.txt → 825.6af9664c.js.LICENSE.txt} +0 -0
  203. /package/dist/chunks/{eo-auto-complete.02f91029.js.LICENSE.txt → eo-auto-complete.27d63bb7.js.LICENSE.txt} +0 -0
  204. /package/dist/chunks/{eo-dynamic-form-item.01e53cc9.js.LICENSE.txt → eo-dynamic-form-item.12f8373f.js.LICENSE.txt} +0 -0
  205. /package/dist/chunks/{eo-form-item.a5db4203.js.LICENSE.txt → eo-form-item.35a9cebb.js.LICENSE.txt} +0 -0
  206. /package/dist/chunks/{eo-icon-select.7e1794dc.js.LICENSE.txt → eo-icon-select.2446679c.js.LICENSE.txt} +0 -0
  207. /package/dist/chunks/{eo-input.1180f4e2.js.LICENSE.txt → eo-input.d9018d17.js.LICENSE.txt} +0 -0
  208. /package/dist/chunks/{eo-radio.53354dcb.js.LICENSE.txt → eo-radio.12b1b510.js.LICENSE.txt} +0 -0
  209. /package/dist/chunks/{eo-select.5d07e8c1.js.LICENSE.txt → eo-select.cfc26f46.js.LICENSE.txt} +0 -0
  210. /package/dist/chunks/{eo-switch.18c89925.js.LICENSE.txt → eo-switch.e644ffeb.js.LICENSE.txt} +0 -0
  211. /package/dist/chunks/{eo-textarea.b6e645b7.js.LICENSE.txt → eo-textarea.05ea0943.js.LICENSE.txt} +0 -0
  212. /package/dist/chunks/{eo-upload-file.3e9ed5ea.js.LICENSE.txt → eo-upload-file.edeb4c66.js.LICENSE.txt} +0 -0
  213. /package/dist/chunks/{eo-upload-image.729ca4da.js.LICENSE.txt → eo-upload-image.08f75296.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_form=self.webpackChunk_next_bricks_form||[]).push([[8954],{8954:(e,t,r)=>{r.r(t),r.d(t,{Dialog:()=>sr,Notification:()=>hr,StoryboardFunctionRegistryFactory:()=>ve,__secret_internals:()=>n,__test_only:()=>{},applyTheme:()=>re,authenticate:()=>Qa,batchSetAppsLocalTheme:()=>ne,checkIfByTransform:()=>_t,checkIfOfComputed:()=>Ot,createHistory:()=>I,createRuntime:()=>Fa,customProcessors:()=>B,customTemplates:()=>xe,fetchByProvider:()=>ei,getAuth:()=>Ya,getBasePath:()=>v,getCssPropertyValue:()=>ce,getCurrentMode:()=>se,getCurrentTheme:()=>te,getHistory:()=>C,getPageInfo:()=>_o,getRealValue:()=>ni,getRuntime:()=>ja,getV2RuntimeFromDll:()=>k,handleHttpError:()=>vr,httpErrorToString:()=>cr,isLoggedIn:()=>Za,isUnauthenticatedError:()=>ur,logout:()=>Xa,matchPath:()=>zt,registerWidgetFunctions:()=>Fe,registerWidgetI18n:()=>j,setUIVersion:()=>Lo,unstable_createRoot:()=>ri});var n={};r.r(n),r.d(n,{addRealTimeDataInspectHook:()=>Vn,getAddedContracts:()=>jn,getAllContextValues:()=>Ln,getBrickPackagesById:()=>Nn,getContextValue:()=>Bn,getRenderId:()=>Fn,legacyDoTransform:()=>kn,loadBricks:()=>Un,mountUseBrick:()=>En,renderUseBrick:()=>bn,setRealTimeDataInspectRoot:()=>Kn,symbolForRootRuntimeContext:()=>An,unmountUseBrick:()=>Sn,updateSnippetPreviewSettings:()=>Mn,updateStoryboard:()=>In,updateStoryboardByRoute:()=>Cn,updateStoryboardBySnippet:()=>Pn,updateStoryboardByTemplate:()=>Rn,updateTemplatePreviewSettings:()=>Tn});var o=r(9740),a=r(6330),i=r(4635),s=r(4586),l=r(918),c=r(5386),u=r(6154),d=r(9523),p=r(1302),f=(r(6036),r(2890));function v(){var e=document.querySelector("base");return e?e.getAttribute("href"):"/"}var h=r(4223),m=r(1030);function g(e,t){var r=(0,m.orderBy)(e,(e=>{var t,r;return null!==(t=null===(r=e.app.homepage)||void 0===r?void 0:r.length)&&void 0!==t?t:0}),"desc");for(var n of r){var o=n.app.homepage;if("string"==typeof o&&"/"===o[0]&&y(o,t))return n}}function y(e,t){return"/"===e?t===e:"".concat(t.replace(/\/+$/,""),"/").startsWith("".concat(e.replace(/\/+$/,""),"/"))}function A(e){var t;return!e||(null===(t=ja().getCurrentApp())||void 0===t?void 0:t.id)!==e.app.id&&!window.STANDALONE_MICRO_APPS&&e.app.standaloneMode}var b,w=["extraQuery","clear","keepHash"],E=!1;function S(e,t){t(!(E=!confirm(e)))}function k(){var e,{dll:t}=window;if(t&&null!==(e=window.BRICK_NEXT_VERSIONS)&&void 0!==e&&null!==(e=e["brick-container"])&&void 0!==e&&e.startsWith("2."))return t("tYg3")}function I(){if(!b){var e=(0,f.createBrowserHistory)({basename:v().replace(/\/$/,""),getUserConfirmation:S});Object.assign(e,function(e){var t,{push:r,replace:n}=e;function a(e,t,n){E=!1,r(e,t),null==n||n(E)}function i(e,t,r){E=!1,n(e,t),null==r||r(E)}function s(t){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,{extraQuery:s,clear:l,keepHash:c}=n,u=(0,h.A)(n,w),d=new URLSearchParams(l?"":e.location.search),p={};for(var[f,v]of(Object.assign(p,r,s),Object.entries(p)))if(Array.isArray(v))for(var m of(d.delete(f),v))d.append(f,m);else null==v||""===v?d.delete(f):d.set(f,v);("push"===t?a:i)("?".concat(d.toString()).concat(c?e.location.hash:""),u,o)}}return(0,o.A)({pushQuery:s("push"),replaceQuery:s("replace"),pushAnchor:function(t,r,n){a((0,o.A)((0,o.A)({},e.location),{},{key:void 0,hash:t,state:(0,o.A)({notify:!1},r)}),void 0,n)},reload:function(t){i((0,o.A)((0,o.A)({},e.location),{},{state:(0,o.A)((0,o.A)({},e.location.state),{},{notify:!0,noIncremental:!0})}),void 0,t)},setBlockMessage:function(e){t=e},getBlockMessage:function(){return t},unblock:function(){t=void 0}},function(e){var{push:t,replace:r}=e;function n(n){return function(o,a,i){var s,l="string"==typeof o;return"string"==typeof(s=l?(0,f.parsePath)(o).pathname:o.pathname)&&s.startsWith("/")&&A(function(e){var t,r;return g(null!==(t=null===(r=ka)||void 0===r?void 0:r.storyboards)&&void 0!==t?t:[],e)}(s))?location["push"===n?"assign":"replace"](l?v()+o.substring(1):e.createHref(o)):("push"===n?t:r)(o,a,i)}}return{push:n("push"),replace:n("replace")}}((0,o.A)((0,o.A)({},e),{},{push:a,replace:i})))}(e)),b=e}return b}var C=function(){var e=k();if(e)return e.getHistory}()||function(){return b},R=r(5290),T=r(5481),O=r(4317),P=r(8929),_=r(7731);function M(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var x=new WeakMap,B=function(){var e=k();if(e)return Object.freeze({define:(t,r)=>e.getRuntime().registerCustomProcessor(t,r)})}()||new class{constructor(){(0,l.A)(this,x,new Map)}define(e,t){var[r,n]=e.split("."),o=M(x,this).get(r);if(o||(o=new Map,M(x,this).set(r,o)),o.has(n))throw new Error('Custom processor of "'.concat(e,'" already registered'));o.set(n,t)}get(e){return M(x,this).get(e)}};function L(e){var{app:t,meta:r}=e;if(null!=r&&r.i18n){var n=N("app",t.id),o=[];return Object.entries(r.i18n).forEach((e=>{var[t,r]=e;c.i18n.addResourceBundle(t,n,r),o.push(t)})),()=>{for(var e of o)c.i18n.removeResourceBundle(e,n)}}}function N(e,t){return"".concat(e,"/").concat(t)}function U(e){return c.i18n.getFixedT(null,N("widget",e))}var F,j=function(){var e=k();if(e)return function(t,r){return e.getRuntime().registerWidgetI18n(t,r)}}()||function(e,t){var r=N("widget",e);Object.entries(t).forEach((e=>{var[t,n]=e;c.i18n.addResourceBundle(t,r,n)}))},$="brick-next-devtools-panel",D="devtools-frame-active-change",K="devtools-panel-change",V=!0;function W(e,t){var r=H();if(r&&("evaluation"!==e||V&&(!F||"Evaluations"===F))){var n=()=>{var n;null===(n=r.emit)||void 0===n||n.call(r,{type:e,payload:t})};"function"==typeof window.requestIdleCallback?window.requestIdleCallback(n):setTimeout(n,0)}}function H(){return window.__BRICK_NEXT_DEVTOOLS_HOOK__}var z=()=>{throw new Error("Can't modify read-only proxy object")},q={set:z,defineProperty:z,deleteProperty:z,setPrototypeOf:z};function G(e){return new Proxy(e,q)}function J(e){var{get:t,ownKeys:r}=e;return H()?G(Object.fromEntries(r(null).map((e=>[e,t(null,e,null)])))):new Proxy(Object.freeze({}),{get:t})}var Q="light",Y=new d.JsonStorage(localStorage),X="apps-theme";function Z(e){if("dark"!==e&&"light"!==e&&"dark-v2"!==e)throw new Error("Unsupported theme: ".concat(e));Q=e}function ee(){return Q}function te(){return document.documentElement.dataset.theme}function re(e){e?Z(e):e=ee(),e!==te()&&(document.documentElement.dataset.theme=e,window.dispatchEvent(new CustomEvent("theme.change",{detail:e})))}function ne(e){Y.setItem(X,(0,o.A)((0,o.A)({},oe()),e))}function oe(){var e,t;try{t=Y.getItem(X)}catch(e){console.error("JSON parse error inside `getLocalAppsTheme()`")}return null!==(e=t)&&void 0!==e?e:{}}var ae="default";function ie(e){if("dashboard"!==e&&"default"!==e)throw new Error("Unsupported mode: ".concat(e));ae=e}function se(){return document.documentElement.dataset.mode}function le(e){e?ie(e):e=ae,e!==se()&&(document.documentElement.dataset.mode=e,window.dispatchEvent(new CustomEvent("mode.change",{detail:e})))}function ce(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return r&&(null===(t=window.getComputedStyle(r))||void 0===t?void 0:t.getPropertyValue(e))||""}function ue(e,t){var r={};for(var n of e){var o=de(n,t);void 0!==o&&(r[n]=o)}return r}function de(e,t){var r,n,o,{collectCoverage:a,widgetId:i,widgetVersion:s,app:l,appendI18nNamespace:u,storyboardFunctions:d,isStoryboardFunction:p}=t;switch(e){case"BASE_URL":return a?"/next":v().replace(/\/$/,"");case"FN":return d;case"IMG":return a?{get:e=>"mock/images/".concat(e)}:i?null==Ca||null===(r=Ca.images)||void 0===r?void 0:r.widgetImagesFactory(i,s):null==Ca||null===(n=Ca.images)||void 0===n?void 0:n.imagesFactory(l.id,l.isBuildPush,l.currentVersion);case"I18N":return a?m.identity:i?U(i):c.i18n.getFixedT(null,[u,N("app",l.id)].filter(Boolean));case"I18N_TEXT":return a?pe:c.i18nText;case"PERMISSIONS":return G({check:a?fe:null==Ca||null===(o=Ca.checkPermissions)||void 0===o?void 0:o.checkPermissions});case"THEME":return G({getTheme:a?()=>"light":ee});case"console":return p?G(console):void 0;case"location":return a?{href:"http://localhost:3000/functions/test",origin:"http://localhost:3000",host:"localhost:3000",hostname:"localhost"}:{href:location.href,origin:location.origin,host:location.host,hostname:location.hostname}}}function pe(e){return null==e?void 0:e.en}function fe(){return!0}function ve(){var e,{widgetId:t,widgetVersion:r,collectCoverage:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=new Map,i=new Proxy(Object.freeze({}),{get:(o,s)=>function(o){var s,l=a.get(o);if(l){if(l.processed)return l.cooked;n&&(s=n.createCollector(o));var c=(0,T.precookFunction)(l.source,{typescript:l.typescript,hooks:s&&{beforeVisit:s.beforeVisit}});return l.cooked=(0,T.cook)(c.function,l.source,{rules:{noVar:!0},globalVariables:(0,_.supply)(c.attemptToVisitGlobals,ue(c.attemptToVisitGlobals,{collectCoverage:n,widgetId:t,widgetVersion:r,app:e,storyboardFunctions:i,isStoryboardFunction:!0}),!!n),hooks:s&&{beforeEvaluate:s.beforeEvaluate,beforeCall:s.beforeCall,beforeBranch:s.beforeBranch}}),l.processed=!0,l.cooked}}(s)});return{storyboardFunctions:i,registerStoryboardFunctions:function(t,r){if(r&&(e=r),a.clear(),Array.isArray(t))for(var o of t){var i=(0,O.collectMemberUsageInFunction)(o,"FN",!!n),s=(0,O.collectMemberUsageInFunction)(o,"PERMISSIONS",!!n).has("check");a.set(o.name,{source:o.source,typescript:o.typescript,deps:i,hasPermissionsCheck:s})}},updateStoryboardFunction(e,t){var r=(0,o.A)((0,o.A)({},t),{},{name:e}),n=(0,O.collectMemberUsageInFunction)(r,"FN",!0),i=(0,O.collectMemberUsageInFunction)(r,"PERMISSIONS",!0).has("check");a.set(e,{source:t.source,typescript:t.typescript,deps:n,hasPermissionsCheck:i})},checkPermissionsUsage(e){var t=new Set,r=e=>{if(!t.has(e)){t.add(e);var n=a.get(e);return!!n&&(n.hasPermissionsCheck||[...n.deps].some(r))}return!1};return e.some(r)}}}var{storyboardFunctions:he,registerStoryboardFunctions:me,checkPermissionsUsage:ge}=ve(),ye={};try{ye.EventTarget=(new EventTarget).constructor}catch(e){!function(e,t){var r=e.create,n=e.defineProperty,o=a.prototype;function a(){t.set(this,r(null))}function i(e,t,r){n(e,t,{configurable:!0,writable:!0,value:r})}function s(e){var t=e.options;return t&&t.once&&e.target.removeEventListener(this.type,e.listener),"function"==typeof e.listener?e.listener.call(e.target,this):e.listener.handleEvent(this),this._stopImmediatePropagationFlag}i(o,"addEventListener",(function(e,r,n){for(var o=t.get(this),a=o[e]||(o[e]=[]),i=0,s=a.length;i<s;i++)if(a[i].listener===r)return;a.push({target:this,listener:r,options:n})})),i(o,"dispatchEvent",(function(e){var r=t.get(this)[e.type];return r&&(i(e,"target",this),i(e,"currentTarget",this),r.slice(0).some(s,e),delete e.currentTarget,delete e.target),!0})),i(o,"removeEventListener",(function(e,r){for(var n=t.get(this),o=n[e]||(n[e]=[]),a=0,i=o.length;a<i;a++)if(o[a].listener===r)return void o.splice(a,1)})),ye.EventTarget=a}(Object,new WeakMap)}const Ae=ye.EventTarget;var be=function(e){return e.xLarge="xLarge",e.large="large",e.medium="medium",e.small="small",e.xSmall="xSmall",e}({}),we=new Map([[be.xLarge,"1920px"],[be.large,"1600px"],[be.medium,"1280px"],[be.small,"1024px"],[be.xSmall,0]]),Ee=new Ae,Se={},ke={};function Ie(e,t){var r=!1;for(var[n]of(Se[t]=e.matches,we))if(Se[n]&&ke.breakpoint!==n){ke.breakpoint=n,r=!0;break}r&&Ee.dispatchEvent(new CustomEvent("change",{detail:ke}))}we.forEach(((e,t)=>{var r=window.matchMedia("(min-width: ".concat(e,")"));Ie(r,t),r.addEventListener?r.addEventListener("change",(e=>{Ie(e,t)})):r.addListener((e=>{Ie(e,t)}))}));var Ce=()=>ke;function Re(e){return function(t){var r,n="local"===e?localStorage:sessionStorage;return JSON.parse(null!==(r=n.getItem(t))&&void 0!==r?r:"null")}}function Te(e){var t,r;return!(null===(t=e?e.flags:null===(r=ja())||void 0===r?void 0:r.getFeatureFlags())||void 0===t||!t["brick-next-v3-strict-mode"])}function Oe(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var a=0===n.length?"":",";e?console.error("".concat(t," is dropped in v3 strict mode").concat(a),...n):console.warn("".concat(t," is deprecated in v3 and will be dropped in strict mode").concat(a),...n)}function Pe(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var _e=new Set(["prefix"]),Me=new WeakMap,xe=function(){var e=k();if(e)return Object.freeze({define:(t,r)=>e.getRuntime().registerCustomTemplate(t,r)})}()||new class{constructor(){(0,l.A)(this,Me,new Map)}define(e,t){var r,n,a,i,s=Pe(Me,this).has(e);s?console.warn('Custom template of "'.concat(e,'" already registered.')):(s=!!customElements.get(e))&&console.warn('Custom template of "'.concat(e,'" already defined by customElements.'));var l=Te(),c=null!==(r=null===(n=t.proxy)||void 0===n?void 0:n.properties)&&void 0!==r?r:{},u=[],d=[];for(var[p,f]of Object.entries(c))f.asVariable?(Oe(l,"Template `asVariable`",e,p),l||d.push(p)):f.mergeProperty||f.refTransform?console.error("Template `mergeProperty` and `refTransform` are dropped in v3:",e,p):f.ref&&u.push([p,f]);var v=(0,o.A)((0,o.A)({},t),{},{proxy:(0,o.A)((0,o.A)({},t.proxy),{},{properties:Object.fromEntries(u)}),state:(t.state?l?t.state:t.state.map((e=>(0,o.A)({expose:!0},e))):[]).concat(d.map((e=>({name:e,expose:!0}))))});Pe(Me,this).set(e,(0,o.A)((0,o.A)({},v),{},{name:e}));var h,g,y=(h=v.state,(0,m.uniq)(null!==(g=null==h?void 0:h.filter((e=>e.expose)).map((e=>e.name)))&&void 0!==g?g:[])),A=Object.entries(null!==(a=null===(i=v.proxy)||void 0===i?void 0:i.methods)&&void 0!==a?a:{}),b=y.concat(u.map((e=>e[0]))),w=A.map((e=>e[0])),E=b.concat(w).filter((e=>e in HTMLElement.prototype&&!_e.has(e)));if(E.length>0&&(Oe(l,"Using native HTMLElement properties as template properties or methods",e,...E),l))throw new Error('In custom template "'.concat(e,'", ').concat(E.map((e=>'"'.concat(e,'"'))).join(", ")," are native HTMLElement properties, and should be avoid to be used as brick properties or methods."));if(!s){class t extends HTMLElement{get $$typeof(){return"custom-template"}static get _dev_only_definedProperties(){return b}static get _dev_only_definedMethods(){return w}$$getElementByRef(e){var t;return null===(t=this.$$tplStateStore)||void 0===t||null===(t=t.hostBrick)||void 0===t||null===(t=t.tplHostMetadata)||void 0===t||null===(t=t.internalBricksByRef.get(e))||void 0===t?void 0:t.element}connectedCallback(){var e=this.shadowRoot;e||(e=this.attachShadow({mode:"open"}));var t=document.createDocumentFragment(),r=document.createElement("style");r.textContent=":host{display:block}:host([hidden]){display:none}";var n=document.createElement("slot");t.appendChild(r),t.appendChild(n),e.appendChild(t)}disconnectedCallback(){this.shadowRoot&&(this.shadowRoot.textContent="")}}var S=function(r){if(u.some((e=>e[0]===r)))return console.error('Cannot define an exposed state that is also a proxy property: "'.concat(r,'" in ').concat(e)),1;Object.defineProperty(t.prototype,r,{get(){return this.$$tplStateStore.getValue(r)},set(e){var t;null===(t=this.$$tplStateStore)||void 0===t||t.updateValue(r,e,"replace")},enumerable:!0})};for(var k of y)S(k);var I=function(e,r){Object.defineProperty(t.prototype,e,{get(){var t;return this.$$getElementByRef(r.ref)[null!==(t=r.refProperty)&&void 0!==t?t:e]},set(t){var n,o,a=null===(n=this.$$getElementByRef)||void 0===n?void 0:n.call(this,r.ref);a&&(a[null!==(o=r.refProperty)&&void 0!==o?o:e]=t)},enumerable:!0})};for(var[C,R]of u)I(C,R);var T=function(e,r){Object.defineProperty(t.prototype,e,{value(){var t;this.$$getElementByRef(r.ref)[null!==(t=r.refMethod)&&void 0!==t?t:e](...arguments)},enumerable:!0})};for(var[O,P]of A)T(O,P);customElements.define(e,t)}}get(e){return Pe(Me,this).get(e)}};function Be(e,t,r){var{tplStateStoreId:n,tplStateStoreMap:o}=e;if(!n)throw new Error('Using "'.concat(t,'" outside of a custom template').concat(null!=r?r:""));var a=o.get(n);if(!a)throw new Error('Template state store is not found when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return a}function Le(e,t,r){var n=Be(e,t,r).hostBrick.element;if(!n)throw new Error('Template host element is gone when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return n}var Ne=new Map,Ue=new Proxy(Object.freeze({}),{get:(e,t)=>Ne.get(t)}),Fe=function(){var e=k();if(e)return function(t,r,n){return e.getRuntime().registerWidgetFunctions(t,r,n)}}()||function(e,t,r){if(Ne.has(e))throw new Error('Widget functions of "'.concat(e,'" already registered'));var{storyboardFunctions:n,registerStoryboardFunctions:o}=ve({widgetId:e,widgetVersion:r});Ne.set(e,n),o(t)};const je=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,$e=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(je);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},De=e=>"*"===e||"x"===e||"X"===e,Ke=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Ve=(e,t)=>{if(De(e)||De(t))return 0;const[r,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(Ke(e),Ke(t));return r>n?1:r<n?-1:0},We=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Ve(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0},He=(e,t,r)=>{Ge(r);const n=((e,t)=>{const r=$e(e),n=$e(t),o=r.pop(),a=n.pop(),i=We(r,n);return 0!==i?i:o&&a?We(o.split("."),a.split(".")):o||a?o?-1:1:0})(e,t);return ze[r].includes(n)},ze={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},qe=Object.keys(ze),Ge=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===qe.indexOf(e))throw new Error(`Invalid operator, expected one of ${qe.join("|")}`)};function Je(e,t){var r=Ja(e);if(!r&&null!=Ca&&Ca.checkInstalledApps&&(r=Ca.checkInstalledApps.getCheckedApp(e)),!r||"running"===r.installStatus)return!1;if(!t||!r.currentVersion)return!0;var n=t.match(/^([><]=?|=)(.*)$/);try{if(!n)throw new TypeError("Invalid match version: ".concat(t));return He(r.currentVersion,n[2],n[1])}catch(e){console.error(e)}return!1}function Qe(e,t,r){var{formStateStoreId:n,formStateStoreMap:o}=e;if(!n)throw new Error('Using "'.concat(t,'" outside of form renderer').concat(null!=r?r:""));var a=o.get(n);if(!a)throw new Error('Form state store is not found when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return a}var Ye=new Map;function Xe(e){return Ze.apply(this,arguments)}function Ze(){return Ze=(0,a.A)((function*(e){var t,r=null==Ca||null===(t=Ca.flowApi)||void 0===t?void 0:t.isFlowApiProvider(e);r&&(e=Ca.flowApi.FLOW_API_PROVIDER);var n=Ye.get(e);if(n)return n;if(e.includes("-")&&!customElements.get(e))if(r)Ca.flowApi.registerFlowApiProvider();else if(yield(0,u.loadBricksImperatively)([e],Ha()),!customElements.get(e))throw new Error('Provider not defined: "'.concat(e,'".'));return n=document.createElement(e),Ye.set(e,n),n})),Ze.apply(this,arguments)}var et=new WeakSet;function tt(e){if((0,d.isObject)(e)&&!rt(e))if(et.add(e),Array.isArray(e))e.forEach(tt);else{var t=Object.getPrototypeOf(e);t&&t.constructor!==Object||Object.values(e).forEach(tt)}}function rt(e){return et.has(e)}var nt=new Map;function ot(e,t,r){return at.apply(this,arguments)}function at(){return(at=(0,a.A)((function*(e,t,r){var{useProvider:n,method:a="resolve",args:i=[],onReject:s}=e,{provider:l,field:c}=e;if(l&&!n)throw new Error("You're using \"provider: ".concat(l,'" which is dropped in v3, please use "useProvider" instead'));var u=null!=c;if(u){var d=Te();if(Oe(d,"`resolve.field`"),d)throw new Error("Using deprecated `resolve.field`")}var p,[f,v]=yield Promise.all([Xe(n),wt(i,t)]),h=null==r?void 0:r.renderId,g=it(f,n,a,v,r,i,!!h&&h!==za()),{transform:y}=e;try{var A=yield g;tt(p=u?(0,m.get)(A,c):A)}catch(e){if(!function(e){return!(null==e||!e.transform)}(s))throw e;y=s.transform,p=e}return y?"string"==typeof y?{[y]:p}:wt(y,(0,o.A)((0,o.A)({},t),{},{data:p})):p}))).apply(this,arguments)}function it(e,t,r,n,o,a,i){return st.apply(this,arguments)}function st(){return st=(0,a.A)((function*(e,t,r,n,o,i,s){var l,c;try{l=JSON.stringify({useProvider:t,method:r,args:n})}catch(e){if(!i)throw e;l=JSON.stringify({useProvider:t,method:r,originalArgs:i})}return"reload"!==(null==o?void 0:o.cache)&&(c=nt.get(l)),c||(c=(0,a.A)((function*(){var o,a=null!=Ca&&null!==(o=Ca.flowApi)&&void 0!==o&&o.isFlowApiProvider(t)?yield Ca.flowApi.getArgsOfFlowApi(t,n,r):n;return e[r](...a)}))(),s||nt.set(l,c)),c})),st.apply(this,arguments)}var lt=Symbol.for("pre.evaluated.raw"),ct=Symbol.for("pre.evaluated.context");function ut(e){return!(null==e||!e[lt])}function dt(e){return e[lt]}function pt(e){return"string"==typeof e?(0,T.shouldAllowRecursiveEvaluations)(e):(0,T.shouldAllowRecursiveEvaluations)(e[lt])}var ft=new WeakSet([SyntaxError,TypeError,ReferenceError]);function vt(e){return ft.has(e.constructor)?e.constructor:TypeError}function ht(){return(ht=(0,a.A)((function*(e,t,r){var{blockingList:n,run:o}=gt(e,t,r,!0);return yield Promise.all(n),o()}))).apply(this,arguments)}function mt(e,t,r){var{run:n}=gt(e,t,r,!1);return n()}function gt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=[];if("string"!=typeof e){var i=(0,m.omit)(t,["pendingPermissionsPreCheck","tplStateStoreMap","tplStateStoreScope","formStateStoreMap","formStateStoreScope"]);t=(0,o.A)((0,o.A)({},e[ct]),i),e=e[lt]}var s,l={usedArgs:new Set},c={usedArgs:new Set};try{s=(0,T.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal(e,t){(0,O.collectAppGetMenuUsage)(l,e,t),(0,O.collectInstalledAppsHasUsage)(c,e,t)}}})}catch(t){var p="".concat(t.message,', in "').concat(e,'"');throw new(vt(t))(p)}if(l.hasNonStaticUsage)throw new Error('Non-static usage of "APP.getMenu" is prohibited in v3, check your expression: "'.concat(e,'"'));if(c.hasNonStaticUsage)throw new Error('Non-static usage of "INSTALLED_APPS.has" is prohibited in v3, check your expression: "'.concat(e,'"'));var f,v,h,g,y={},{attemptToVisitGlobals:A}=s;if(r.lazy||A.has("EVENT")&&!(0,d.hasOwnProperty)(t,"event")||A.has("DATA")&&!(0,d.hasOwnProperty)(t,"data"))return{blockingList:a,run:()=>Object.keys(t).length>0?{[lt]:e,[ct]:t}:e};var b,w,E=Te(t);(A.has("STATE")||!E&&A.has("TPL"))&&(g=Be(t,"STATE",': "'.concat(e,'"'))),A.has("FORM_STATE")&&(w=Qe(t,"FORM_STATE",': "'.concat(e,'"')));var S=H();if(n||S){if(A.has("CTX")&&(f=(0,O.strictCollectMemberUsage)(e,"CTX"),n&&a.push(t.ctxStore.waitFor(f))),g){if(h=(0,O.strictCollectMemberUsage)(e,"STATE"),!E){var k=(0,O.strictCollectMemberUsage)(e,"TPL");for(var I of k)h.add(I)}n&&a.push(g.waitFor(h))}w&&(b=(0,O.strictCollectMemberUsage)(e,"FORM_STATE"),n&&a.push(w.waitFor(b))),A.has("PROCESSORS")&&(v=(0,O.strictCollectMemberUsage)(e,"PROCESSORS",2),n&&a.push((0,u.loadProcessorsImperatively)(v,Ha())))}if(n){var C,R=A.has("PERMISSIONS");if(!R&&A.has("FN")){var P=[...(0,O.strictCollectMemberUsage)(e,"FN")];R=ge(P)}if(R&&a.push(...t.pendingPermissionsPreCheck),l.usedArgs.size>0&&null!=Ca&&Ca.menu){var M=[...l.usedArgs];a.push(Promise.all(M.map((e=>Ca.menu.fetchMenuById(e,t,{getStoryboardByAppId:Ga,resolveData:ot,asyncComputeRealValue:wt})))))}c.usedArgs.size>0&&a.push(null==Ca||null===(C=Ca.checkInstalledApps)||void 0===C?void 0:C.waitForCheckingApps([...c.usedArgs]))}return{blockingList:a,run(){var r,n,a,i,{app:l,location:c,query:u,match:p,flags:S,sys:k,ctxStore:I,data:C,event:R}=t,O=null!==(r=t.overrideApp)&&void 0!==r?r:l;for(var P of A)switch(P){case"ANCHOR":y[P]=c.hash?c.hash.substring(1):null;break;case"APP":y[P]=(0,o.A)((0,o.A)({},(0,m.cloneDeep)(O)),{},{getMenu:null==Ca||null===(n=Ca.menu)||void 0===n?void 0:n.getMenuById});break;case"CTX":y[P]=J({get:(e,t)=>I.getValue(t),ownKeys:()=>Array.from(f)});break;case"DATA":y[P]=C;break;case"EVENT":y[P]=R;break;case"FLAGS":y[P]=G(S);break;case"FORM_STATE":y[P]=J({get:(e,t)=>w.getValue(t),ownKeys:()=>Array.from(b)});break;case"HASH":y[P]=c.hash;break;case"INSTALLED_APPS":y[P]=G({has:Je});break;case"ITEM":case"INDEX":var M="ITEM"===P?"forEachItem":"forEachIndex";(0,d.hasOwnProperty)(t,M)?y[P]=t[M]:console.error("Using `".concat(P,'` but no `:forEach` is found, check your expression: "').concat(e,'"'));break;case"LOCAL_STORAGE":y[P]=G({getItem:Re("local")});break;case"MEDIA":y[P]=G(Ce());break;case"MISC":y[P]=ja().getMiscSettings();break;case"PARAMS":y[P]=new URLSearchParams(u);break;case"PATH":y[P]=G(null!==(a=null==p?void 0:p.params)&&void 0!==a?a:{});break;case"PATH_NAME":y[P]=c.pathname;break;case"PROCESSORS":y[P]=J({get(e,t){var r=B.get(t);if(!r)throw new Error("'PROCESSORS.".concat(t,"' is not registered! Have you installed the relevant brick package?"));return J({get:(e,t)=>r.get(t),ownKeys:()=>Array.from(r.keys())})},ownKeys(){var e=new Set;for(var t of v){var r=t.split(".")[0];e.add(r)}return Array.from(e)}});break;case"QUERY":y[P]=Object.fromEntries(Array.from(u.keys()).map((e=>[e,u.get(e)])));break;case"QUERY_ARRAY":y[P]=Object.fromEntries(Array.from(u.keys()).map((e=>[e,u.getAll(e)])));break;case"SESSION_STORAGE":y[P]=G({getItem:Re("session")});break;case"TPL":if(Oe(E,'Using "TPL" in expression','check your expression: "'.concat(e,'"')),E)break;case"STATE":y[P]=J({get:(e,t)=>g.getValue(t),ownKeys:()=>Array.from(h)});break;case"SYS":y[P]=G(null!=k?k:{});break;case"__WIDGET_FN__":y[P]=Ue;break;case"__WIDGET_IMG__":y[P]=null==Ca||null===(i=Ca.images)||void 0===i?void 0:i.widgetImagesFactory;break;case"__WIDGET_I18N__":y[P]=U}Object.assign(y,ue(s.attemptToVisitGlobals,{storyboardFunctions:he,app:O,appendI18nNamespace:t.appendI18nNamespace}));try{var x=(0,T.cook)(s.expression,s.source,{globalVariables:(0,_.supply)(s.attemptToVisitGlobals,y)});return W("evaluation",{raw:e,context:y,result:x}),x}catch(t){var L="".concat(t.message,', in "').concat(e,'"');throw new(vt(t))(L)}}}}var yt=function(e){return e[e.INITIAL=0]="INITIAL",e[e.USE_BRICK=1]="USE_BRICK",e[e.USE_BRICK_ITEM=2]="USE_BRICK_ITEM",e[e.USE_BRICK_PROPERTIES=3]="USE_BRICK_PROPERTIES",e[e.USE_BRICK_TRANSFORM=4]="USE_BRICK_TRANSFORM",e[e.USE_BRICK_EVENTS=5]="USE_BRICK_EVENTS",e[e.USE_BRICK_IF=6]="USE_BRICK_IF",e[e.USE_BRICK_SLOTS=7]="USE_BRICK_SLOTS",e[e.USE_BRICK_SLOTS_ITEM=8]="USE_BRICK_SLOTS_ITEM",e[e.USE_BRICK_SLOTS_ITEM_BRICKS=9]="USE_BRICK_SLOTS_ITEM_BRICKS",e[e.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM=10]="USE_BRICK_SLOTS_ITEM_BRICKS_ITEM",e[e.USE_BRICK_LIFECYCLE=11]="USE_BRICK_LIFECYCLE",e[e.USE_BRICK_DATA_SOURCE=12]="USE_BRICK_DATA_SOURCE",e}({});function At(e){switch(e){case yt.USE_BRICK_PROPERTIES:case yt.USE_BRICK_TRANSFORM:case yt.USE_BRICK_EVENTS:case yt.USE_BRICK_IF:case yt.USE_BRICK_LIFECYCLE:case yt.USE_BRICK_DATA_SOURCE:return!0}return!1}function bt(e,t,r){if(At(e))return e;if(t)switch(e){case yt.USE_BRICK:return yt.USE_BRICK_ITEM;case yt.USE_BRICK_SLOTS_ITEM_BRICKS:return yt.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM}else switch(e){case yt.INITIAL:if("useBrick"===r)return yt.USE_BRICK;break;case yt.USE_BRICK:case yt.USE_BRICK_ITEM:case yt.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM:switch(r){case"properties":return yt.USE_BRICK_PROPERTIES;case"transform":return yt.USE_BRICK_TRANSFORM;case"dataSource":return yt.USE_BRICK_DATA_SOURCE;case"events":return yt.USE_BRICK_EVENTS;case"slots":return yt.USE_BRICK_SLOTS;case"children":return yt.USE_BRICK_SLOTS_ITEM_BRICKS;case"if":return yt.USE_BRICK_IF;case"lifeCycle":return yt.USE_BRICK_LIFECYCLE}break;case yt.USE_BRICK_SLOTS:return yt.USE_BRICK_SLOTS_ITEM;case yt.USE_BRICK_SLOTS_ITEM:if("bricks"===r)return yt.USE_BRICK_SLOTS_ITEM_BRICKS}return yt.INITIAL}function wt(e,t){return Et.apply(this,arguments)}function Et(){return Et=(0,a.A)((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ut(e);if(n||"string"==typeof e){var o,a=r.$$lazyForUseBrick&&At(r.$$stateOfUseBrick),i=a;return n||(0,T.isEvaluable)(e)?(o=yield function(e,t,r){return ht.apply(this,arguments)}(e,t,{lazy:a}),i=pt(e)):o=a?e:((0,d.hasOwnProperty)(t,"data")?r.noInject?P.transform:P.transformAndInject:r.noInject?It:P.inject)(e,t),i||tt(o),o}if(!(0,d.isObject)(e)||rt(e)||"function"==typeof e)return e;if(Array.isArray(e)){var s=kt(r,!0);return Promise.all(e.map((e=>wt(e,t,s))))}return Object.fromEntries((yield Promise.all(Object.entries(e).map((e=>{var[n,o]=e;return Promise.all([wt(n,t),wt(o,t,kt(r,!1,n))])})))).concat(r.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))})),Et.apply(this,arguments)}function St(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ut(e);if(n||"string"==typeof e){var o,a=r.$$lazyForUseBrick&&At(r.$$stateOfUseBrick),i=a;return n||(0,T.isEvaluable)(e)?(o=mt(e,t),i=pt(e)):o=a?e:((0,d.hasOwnProperty)(t,"data")?r.noInject?P.transform:P.transformAndInject:r.noInject?It:P.inject)(e,t),i||tt(o),o}if(!(0,d.isObject)(e)||rt(e)||"function"==typeof e)return e;if(Array.isArray(e)){var s=kt(r,!0);return e.map((e=>St(e,t,s)))}return Object.fromEntries(Object.entries(e).map((e=>{var[n,o]=e;return[St(n,t),St(o,t,kt(r,!1,n))]})).concat(r.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))}function kt(e,t,r){return e.$$lazyForUseBrick?(0,o.A)((0,o.A)({},e),{},{$$stateOfUseBrick:bt(e.$$stateOfUseBrick,t,r)}):e}function It(e){return e}function Ct(e,t){return Rt.apply(this,arguments)}function Rt(){return(Rt=(0,a.A)((function*(e,t){return!(0,d.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||ut(e.if)?yield wt(e.if,t):e.if)}))).apply(this,arguments)}function Tt(e,t){return!(0,d.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||ut(e.if)?St(e.if,t):e.if)}function Ot(e){return!(0,d.hasOwnProperty)(e,"if")||!!e.if}function Pt(){return(Pt=(0,a.A)((function*(e,t){return(0,d.isObject)(e.if)&&!ut(e.if)?Ot(yield ot(e.if,t)):Ct(e,t)}))).apply(this,arguments)}var _t=function(){var e=k();if(e)return e.looseCheckIfByTransform}()||function(e,t){return Tt(e,{data:t})};function Mt(e){var t=!1,r=!1,n=!1;if("string"==typeof e?(0,T.isEvaluable)(e):ut(e)){var o="string"==typeof e?e:dt(e);if((0,T.isTrackAll)(o)){var a=(0,O.trackAll)(o);a&&(t=a.context,r=a.state,n=a.formState)}else t=(0,O.track)(o,"track context","CTX"),r=(0,O.track)(o,"track state","STATE"),n=(0,O.track)(o,"track formstate","FORM_STATE")}return{contextNames:t,stateNames:r,formStateNames:n}}function xt(e,t){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,a.A)((function*(e,t){for(var[r,n,o]of e)if(r===t){var a=yield n;if(void 0!==a||!o)return a}}))).apply(this,arguments)}function Lt(e){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,a.A)((function*(e){var t={};for(var[r,n,o]of e){var a=yield n;void 0===a&&o||!("style"!==r&&"dataset"!==r||(0,d.isObject)(a))||(t[r]=a)}return t}))).apply(this,arguments)}function Ut(e,t){if(t)for(var[r,n]of Object.entries(t))switch(r){case"style":case"dataset":for(var[o,a]of Object.entries(n))e[r][o]=a;break;case"constructor":case"__proto__":case"innerHTML":throw new Error("set `".concat(r,"` is prohibited"));default:e[r]=n}}function Ft(e,t,r){var n=function(e,t){return(0,d.isObject)(e)?Object.fromEntries(Object.entries(e).map((e=>{var[r,n]=e,o=St(n,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===r?yt.USE_BRICK:yt.INITIAL});if("style"!==r&&"dataset"!==r||(0,d.isObject)(o))return[r,o]})).filter(Boolean)):{}}(t,r);Array.isArray(e)||(e=[e]),e.forEach((e=>{Ut(e,n)}))}function jt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function $t(e){return e&&e.sensitive?"":"i"}function Dt(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,a=r.start,i=void 0===a||a,s=r.end,l=void 0===s||s,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,p=void 0===d?"/#?":d,f=r.endsWith,v="[".concat(jt(void 0===f?"":f),"]|$"),h="[".concat(jt(p),"]"),m=i?"^":"",g=0,y=e;g<y.length;g++){var A=y[g];if("string"==typeof A)m+=jt(u(A));else{var b=jt(u(A.prefix)),w=jt(u(A.suffix));if(A.pattern)if(t&&t.push(A),b||w)if("+"===A.modifier||"*"===A.modifier){var E="*"===A.modifier?"?":"";m+="(?:".concat(b,"((?:").concat(A.pattern,")(?:").concat(w).concat(b,"(?:").concat(A.pattern,"))*)").concat(w,")").concat(E)}else m+="(?:".concat(b,"(").concat(A.pattern,")").concat(w,")").concat(A.modifier);else"+"===A.modifier||"*"===A.modifier?m+="((?:".concat(A.pattern,")").concat(A.modifier,")"):m+="(".concat(A.pattern,")").concat(A.modifier);else m+="(?:".concat(b).concat(w,")").concat(A.modifier)}}if(l)o||(m+="".concat(h,"?")),m+=r.endsWith?"(?=".concat(v,")"):"$";else{var S=e[e.length-1],k="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;o||(m+="(?:".concat(h,"(?=").concat(v,"))?")),k||(m+="(?=".concat(h,"|").concat(v,")"))}return new RegExp(m,$t(r))}(function(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var o=1,a="";if("?"===e[s=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(r));if(!a)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:a}),r=s}else{for(var i="",s=r+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,o=void 0===n?"./":n,a="[^".concat(jt(t.delimiter||"/#?"),"]+?"),i=[],s=0,l=0,c="",u=function(e){if(l<r.length&&r[l].type===e)return r[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=r[l],o=n.type,a=n.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<r.length;){var f=u("CHAR"),v=u("NAME"),h=u("PATTERN");if(v||h){var m=f||"";-1===o.indexOf(m)&&(c+=m,m=""),c&&(i.push(c),c=""),i.push({name:v||s++,prefix:m,suffix:"",pattern:h||a,modifier:u("MODIFIER")||""})}else{var g=f||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),u("OPEN")){m=p();var y=u("NAME")||"",A=u("PATTERN")||"",b=p();d("CLOSE"),i.push({name:y||(A?s++:""),pattern:y&&!A?a:A,prefix:m,suffix:b,modifier:u("MODIFIER")||""})}else d("END")}}return i}(e,r),t,r)}function Kt(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return Kt(e,t,r).source}));return new RegExp("(?:".concat(n.join("|"),")"),$t(r))}(e,t,r):Dt(e,t,r)}var Vt=new Map,Wt=1e4,Ht=0;function zt(e,t){var{path:r,exact:n=!1,strict:o=!1,sensitive:a=!0}=t;return(Array.isArray(r)?r:[r]).reduce(((t,r)=>{if(t)return t;var{regexp:i,keys:s}=function(e,t){var r="".concat(t.end).concat(t.strict).concat(t.sensitive),n=Vt.get(r);n||Vt.set(r,n=new Map);var o=n.get(e);if(o)return o;var a=[],i={regexp:Kt(e,a,t),keys:a};return Ht<Wt&&(n.set(e,i),Ht++),i}(r,{end:n,strict:o,sensitive:a}),l=i.exec(e);if(!l)return null;var[c,...u]=l,d=e===c;return n&&!d?null:{path:r,url:"/"===r&&""===c?"/":c,isExact:d,params:s.reduce(((e,t,r)=>(e[t.name]=u[r],e)),{})}}),null)}function qt(){return(qt=(0,a.A)((function*(e,t){for(var r of e){if("string"!=typeof r.path)throw console.error("Invalid route with invalid path:",r),new Error("Invalid route with invalid type of path: ".concat(typeof r.path));var n=Gt(r,t.app.homepage,t.location.pathname);if(n&&(yield Ct(r,t)))return t.app.noAuthGuard||r.public||null==Ca||!Ca.auth||Ca.auth.isLoggedIn()?{match:n,route:r}:"unauthenticated"}return"missed"}))).apply(this,arguments)}function Gt(e,t,r){return zt(r,{path:e.path.replace(/^\$\{APP.homepage\}/,t),exact:e.exact})}var Jt,Qt=Symbol.for("tpl.asyncComputedPropsFromHost"),Yt=Symbol.for("tpl.stateStoreId"),Xt=Symbol.for("tpl.externalForEachItem"),Zt=Symbol.for("tpl.externalForEachIndex"),er=Symbol.for("tpl.externalNoForEach"),tr=new Set,rr=function(e){return e.REQUEST_FAILED="REQUEST_FAILED",e.SOMETHING_WENT_WRONG="SOMETHING_WENT_WRONG",e.LOGIN_TIMEOUT_MESSAGE="LOGIN_TIMEOUT_MESSAGE",e.NETWORK_ERROR="NETWORK_ERROR",e}({}),nr={[rr.REQUEST_FAILED]:"Request Failed",[rr.SOMETHING_WENT_WRONG]:"Something went wrong!",[rr.LOGIN_TIMEOUT_MESSAGE]:"You haven't logged in or your login session has expired. Login right now?",[rr.NETWORK_ERROR]:"Network error, please check your network."},or={[rr.REQUEST_FAILED]:"请求失败",[rr.SOMETHING_WENT_WRONG]:"出现了一些问题!",[rr.LOGIN_TIMEOUT_MESSAGE]:"您还未登录或登录信息已过期,现在重新登录?",[rr.NETWORK_ERROR]:"网络错误,请检查您的网络连接。"},ar="core/runtime",ir={en:nr,zh:or},sr=Object.freeze({show:function(e){if(Jt)return Jt.resolve(e);if("confirm"===e.type){var t=confirm(e.content);return new Promise(((e,r)=>setTimeout((()=>{(t?e:r)()}),1)))}return alert(e.content),new Promise((e=>setTimeout((()=>{e()}),1)))}});function lr(e){var{search:t,pathname:r}=e,n=r?window.btoa(encodeURIComponent(r)):"",o=t?window.btoa(encodeURIComponent(t)):"";document.cookie="SALOGINPATH=".concat(n,"; path=/"),document.cookie="SALOGINQUERY=".concat(o,"; path=/")}function cr(e){if(e instanceof Event&&e.target instanceof HTMLScriptElement)return e.target.src;if(e instanceof R.HttpFetchError)return c.i18n.t("".concat(ar,":").concat(rr.NETWORK_ERROR));if(e instanceof R.HttpResponseError&&e.responseJson){if("string"==typeof e.responseJson.error)return e.responseJson.error;if("string"==typeof e.responseJson.msg)return e.responseJson.msg}return null==e?"Unknown error":e.toString()}function ur(e){return e instanceof R.HttpResponseError&&401===e.response.status&&!!e.responseJson&&100003===e.responseJson.code}var dr,pr,fr=!1;function vr(e){if(!(e instanceof R.HttpAbortError)){if(ur(e)&&!window.NO_AUTH_GUARD){if(fr)return;return fr=!0,void sr.show({type:"confirm",content:c.i18n.t("".concat(ar,":").concat(rr.LOGIN_TIMEOUT_MESSAGE))}).then((()=>{var e,t;e=ja().getFeatureFlags()["sso-enabled"],lr((t=C()).location),t.push(e?"/sso-auth/login":"/auth/login",{from:(0,o.A)((0,o.A)({},t.location),{},{state:void 0})}),fr=!1}),(()=>{fr=!1}))}console.error(e);var t=cr(e);t!==dr&&(dr=t,sr.show({type:"error",title:c.i18n.t("".concat(ar,":").concat(rr.REQUEST_FAILED)),content:t,contentStyle:{whiteSpace:"pre-wrap",wordBreak:"break-word"}}).then((()=>{dr=void 0})))}}var hr=Object.freeze({show:function(e){pr?pr.resolve(e):alert(e.message)}});function mr(e,t,r){t&&Object.entries(t).forEach((t=>{var[n,o]=t,a=wr(o,r,{element:e});for(var i of(e.addEventListener(n,a),e.$$listeners||(e.$$listeners=[]),e.$$listeners.push([n,a]),e.$$eventListeners||(e.$$eventListeners=[]),[].concat(o)))e.$$eventListeners.push([n,null,i])}))}function gr(e){return"string"==typeof e.action}function yr(e){return"string"==typeof e.useProvider}function Ar(e){return!(!e.target&&!e.targetRef||!e.method&&!e.properties)}function br(e){return!!e.then}function wr(e,t,r){return function(n){var a,i;for(var s of[].concat(e))if(Tt(s,(0,o.A)((0,o.A)({},t),{},{event:n})))if(br(s))wr(s.then,t,r)(n);else if(gr(s)){var[l,c]=s.action.split(".");switch(s.action){case"history.push":case"history.replace":case"history.pushQuery":case"history.replaceQuery":case"history.pushAnchor":case"history.block":case"history.goBack":case"history.goForward":case"history.reload":case"history.unblock":Rr(n,c,s.args,s.callback,t);break;case"window.open":Tr(n,s.args,t);break;case"location.reload":case"location.assign":xr(n,c,s.args,t);break;case"localStorage.setItem":case"localStorage.removeItem":case"sessionStorage.setItem":case"sessionStorage.removeItem":Br(n,l,c,s.args,t);break;case"event.preventDefault":n.preventDefault();break;case"event.stopPropagation":n.stopPropagation();break;case"console.log":case"console.error":case"console.warn":case"console.info":Lr(n,c,s.args,t);break;case"message.success":case"message.error":case"message.info":case"message.warn":Nr(n,c,s.args,t);break;case"handleHttpError":vr(n.detail);break;case"context.assign":case"context.replace":case"context.refresh":case"context.load":Pr(n,c,s.args,null===(a=s.batch)||void 0===a||a,s.callback,t);break;case"state.update":case"state.refresh":case"state.load":_r(n,c,s.args,null===(i=s.batch)||void 0===i||i,s.callback,t);break;case"tpl.dispatchEvent":var[u,d]=$r(s.args,t,n);Le(t,s.action,": ".concat(u)).dispatchEvent(new CustomEvent(u,d));break;case"formstate.update":Mr(n,s.args,s.callback,t);break;case"message.subscribe":case"message.unsubscribe":Ur(n,c,s.args,t,r,s.callback);break;case"theme.setDarkTheme":case"theme.setLightTheme":re("theme.setDarkTheme"===s.action?"dark":"light");break;case"theme.setTheme":var[p]=$r(s.args,t,n);re(p);break;case"mode.setDashboardMode":case"mode.setDefaultMode":le("mode.setDashboardMode"===s.action?"dashboard":"default");break;default:console.error("unknown event listener action:",s.action)}}else yr(s)?Er(n,s,t,r):Ar(s)?kr(n,s,t,r):console.error("unknown event handler:",s);else s.else&&wr(s.else,t,r)(n)}}function Er(e,t,r,n){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,a.A)((function*(e,t,r,n){try{Ir(e,yield Xe(t.useProvider),t,"saveAs"!==t.method?"resolve":"saveAs",r,n)}catch(e){console.error(cr(e))}}))).apply(this,arguments)}function kr(e,t,r,n){var a=[],i=t.target,s=t.targetRef,l=i;if(("string"==typeof i?(0,T.isEvaluable)(i):ut(i))&&(l=St(i,(0,o.A)((0,o.A)({},r),{},{event:e}))),"string"==typeof l)if("_self"===l)a.push(n.element);else if(t.multiple)a=Array.from(document.querySelectorAll(l));else{var c=document.querySelector(l);null!==c&&a.push(c)}else if(l)l instanceof HTMLElement?a.push(l):console.error("unexpected target:",l);else if(s){var u=s;("string"==typeof s?(0,T.isEvaluable)(s):ut(s))&&(u=St(s,(0,o.A)((0,o.A)({},r),{},{event:e})));var d=[].concat(u),p=Le(r,"targetRef",": ".concat(d.join(", ")));a.push(...d.map((e=>{var t;return null===(t=p.$$getElementByRef)||void 0===t?void 0:t.call(p,e)})).filter(Boolean))}0!==a.length?function(e){return!!e.method}(t)?a.forEach((o=>{Ir(e,o,t,t.method,r,n,{useEventAsDefault:!0})})):function(e){return!!e.properties}(t)&&Ft(a,t.properties,(0,o.A)((0,o.A)({},r),{},{event:e})):console.error("target not found:",i||s)}function Ir(e,t,r,n,o,a,i){return Cr.apply(this,arguments)}function Cr(){return Cr=(0,a.A)((function*(e,t,r,n,i,s,l){if("function"==typeof t[n]){var c=function(){var o=(0,a.A)((function*(){var o,a=$r(r.args,i,e,l);return yr(r)&&null!=Ca&&null!==(o=Ca.flowApi)&&void 0!==o&&o.isFlowApiProvider(r.useProvider)&&(a=yield Ca.flowApi.getArgsOfFlowApi(r.useProvider,a,n)),t[n](...a)}));return function(){return o.apply(this,arguments)}}();if(r.callback){var u=jr(r.callback,i,s),d={progress:u("progress"),success:u("success"),error:u("error"),finally:u("finally")};if(yr(r)){var p,f=(0,o.A)((0,o.A)({},i),{},{event:e});if(St(null===(p=r.poll)||void 0===p?void 0:p.enabled,f))return void function(e,t,r,n){var o,{progress:i,success:s,error:l,finally:c}=t,{expectPollStopImmediately:u,expectPollEnd:d}=r,{interval:p,leadingRequestDelay:f,continueOnError:v,delegateLoadingBar:h}=St((0,m.pick)(r,["interval","leadingRequestDelay","continueOnError","delegateLoadingBar"]),n),g=za();function y(){return A.apply(this,arguments)}function A(){return(A=(0,a.A)((function*(){var t;tr.delete(o);try{var r;if(t=null===(r=St(u,n))||void 0===r?void 0:r())null==c||c();else{var a,f,m=yield e(),y=null===(a=St(u,n))||void 0===a?void 0:a();(t=y||g!==za())?y&&(null==c||c()):(null==i||i(m),null!==(f=St(d,n))&&void 0!==f&&f(m)?(h&&window.dispatchEvent(new Event("request.end")),null==s||s(m),null==c||c()):b(null!=p?p:3e3))}}catch(e){var A,w=null===(A=St(u,n))||void 0===A?void 0:A();(t=w||g!==za())?w&&(null==c||c()):(null==l||l(e),v?b(null!=p?p:3e3):null==c||c())}finally{h&&t&&window.dispatchEvent(new Event("request.end"))}}))).apply(this,arguments)}function b(e){o=setTimeout(y,e),tr.add(o)}b(null!=f?f:0),h&&window.dispatchEvent(new Event("request.start"))}(c,d,r.poll,f)}try{var v=yield c();d.success(v)}catch(e){d.error(e)}finally{d.finally()}}else c()}else console.error("target has no method:",{target:t,method:n})})),Cr.apply(this,arguments)}function Rr(e,t,r,n,o){var a=0,i=!1,s=t;switch(t){case"push":case"replace":case"pushQuery":case"replaceQuery":case"pushAnchor":a=2,i=!0;break;case"reload":i=!0;break;case"block":a=1,s="setBlockMessage"}var l=[];if(a>0&&((l=$r(r,o,e,{useEventDetailAsDefault:!0})).length=a),i&&n){var c=jr(n,o,void 0);l.push((e=>{c(e?"error":"success")({blocked:e}),c("finally")({blocked:e})}))}C()[s](...l)}function Tr(e,t,r){var[n,o,a]=$r(t,r,e);window.open(n,o||"_self",a)}function Or(e,t,r,n,o,a){t?n.updateValues(e,r,(e=>$r(e,o,a)[0])):e.forEach((e=>{var{name:t,value:i}=$r([e],o,a)[0];n.updateValue(t,i,r)}))}function Pr(e,t,r,n,o,a){if(!Array.isArray(r)||!r.every(d.isObject)||"assign"!==t&&"replace"!==t){var[i,s]=$r(r,a,e);a.ctxStore.updateValue(i,s,t,o,a)}else Or(r,n,t,a.ctxStore,a,e)}function _r(e,t,r,n,o,a){if(Array.isArray(r)&&r.every(d.isObject)&&"update"===t)Or(r,n,"replace",Be(a,"state.".concat(t),": ".concat(JSON.stringify(r))),a,e);else{var[i,s]=$r(r,a,e);Be(a,"state.".concat(t),": ".concat(i)).updateValue(i,s,"update"===t?"replace":t,o,a)}}function Mr(e,t,r,n){var[o,a]=$r(t,n,e);Qe(n,"formstate.update",": ".concat(o)).updateValue(o,a,"replace",r,n)}function xr(e,t,r,n){if("assign"===t){var[o]=$r(r,n,e);location.assign(o)}else location[t]()}function Br(e,t,r,n,o){var a="localStorage"===t?localStorage:sessionStorage,[i,s]=$r(n,o,e);"setItem"===r?void 0!==s&&a.setItem(i,JSON.stringify(s)):a.removeItem(i)}function Lr(e,t,r,n){console[t](...$r(r,n,e,{useEventAsDefault:!0}))}function Nr(e,t,r,n){var o=$r(r,n,e,{useEventAsDefault:!0});hr.show({type:t,message:o[0]})}function Ur(e,t,r,n,o,a){return Fr.apply(this,arguments)}function Fr(){return(Fr=(0,a.A)((function*(e,t,r,n,o,a){var i=()=>{var o,a=$r(r,n,e);return null==Ca||null===(o=Ca.messageDispatcher)||void 0===o?void 0:o[t](...a)};if(a){var s=jr(a,n,o);try{var l=yield i();s("success")(l)}catch(e){s("error")(e)}finally{s("finally")()}}else i()}))).apply(this,arguments)}function jr(e,t,r){return function(n){return function(o){var a=null==e?void 0:e[n];if(a)try{var i=new CustomEvent("callback.".concat(n),{detail:o});wr(a,t,r)(i)}catch(e){console.error(e)}else"error"===n&&console.error("Unhandled callback error:",o)}}}function $r(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Array.isArray(e)?St(e,(0,o.A)((0,o.A)({},t),{},{event:r})):n.useEventAsDefault?[r]:n.useEventDetailAsDefault?[r.detail]:[]}function Dr(e){var t,{ref:r,runtimeContext:n,element:o}=e;if(r&&n.tplStateStoreId){var{hostBrick:a}=Be(n,"bindTemplateProxy"),i=a.tplHostMetadata;i.internalBricksByRef.set(r,e);var s=null===(t=i.proxy)||void 0===t?void 0:t.events;if(s){var l=function(e){if(u.ref===r){var t,n,i,s=t=>{t.bubbles&&t.stopPropagation(),a.element.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))},l=null!==(t=u.refEvent)&&void 0!==t?t:e;o.addEventListener(l,s),null!==(i=(n=o).$$proxyListeners)&&void 0!==i||(n.$$proxyListeners=[]),o.$$proxyListeners.push([l,s])}};for(var[c,u]of Object.entries(s))l(c)}}}function Kr(e){var{ref:t,runtimeContext:r,element:n}=e;if(null!=r&&r.tplStateStoreId&&t){var{hostBrick:o}=Be(r,"unbindTemplateProxy"),a=o.tplHostMetadata;for(var[i,s]of(a.internalBricksByRef.delete(t),null!==(l=n.$$proxyListeners)&&void 0!==l?l:[])){var l;n.removeEventListener(i,s)}delete n.$$proxyListeners}}var Vr=function(e){return e[e.ROOT=1]="ROOT",e[e.BRICK=2]="BRICK",e[e.PLACEHOLDER=3]="PLACEHOLDER",e}({});function Wr(e){e.replaceChildren()}function Hr(e,t){window.DISABLE_REACT_FLUSH_SYNC=!1;for(var r=e.child,n=[];r;){if(r.tag===Vr.BRICK){var o,a=r.type;a.includes("-")&&!customElements.get(a)&&console.error("Undefined custom element: ".concat(a)),"basic-bricks.script-brick"===a&&console.warn("`basic-bricks.script-brick` is deprecated, please take caution when using it");var i=t&&r===e.child?t:document.createElement(a);r.element=i,r.slotId&&i.setAttribute("slot",r.slotId),r.iid&&(i.dataset.iid=r.iid),null!==(o=r.tplHostMetadata)&&void 0!==o&&o.tplStateStoreId&&(i.dataset.tplStateStoreId=r.tplHostMetadata.tplStateStoreId),Ut(i,r.properties),mr(i,r.events,r.runtimeContext),r.tplHostMetadata&&(i.$$tplStateStore=Be({tplStateStoreId:r.tplHostMetadata.tplStateStoreId,tplStateStoreMap:r.runtimeContext.tplStateStoreMap},"mount")),Dr(r),r.portal?n.push(i):r.return&&(r.return.childElements||(r.return.childElements=[]),r.return.childElements.push(i))}if(r.child)r=r.child;else if(r.sibling)r=r.sibling;else{for(var s,l=r.return;l;){var c;if(l.childElements)l.tag===Vr.ROOT?null===(c=l.container)||void 0===c||c.append(...l.childElements):l.element.append(...l.childElements),l.childElements=void 0;if(l.tag===Vr.ROOT&&n.length>0&&("function"==typeof l.createPortal?l.createPortal():l.createPortal).append(...n),l.sibling)break;l=l.return}r=null===(s=l)||void 0===s?void 0:s.sibling}}setTimeout((()=>{window.DISABLE_REACT_FLUSH_SYNC=!0}))}function zr(e,t){return e.get(Gr(e,t))}function qr(e,t,r){return e.set(Gr(e,t),r),r}function Gr(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var Jr=["onMount","onUnmount","onMediaChange","onScrollIntoView","onMessage","onMessageClose"],Qr=["onBeforePageLoad","onPageLoad","onPageLeave","onBeforePageLeave","onAnchorLoad","onAnchorUnload"],Yr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,en=new WeakMap,tn=new WeakMap,rn=new WeakMap,nn=new WeakMap,on=new WeakMap,an=new WeakMap,sn=new WeakSet;class ln{constructor(e,t){var r;(0,i.A)(this,sn),(0,s.A)(this,"scope",void 0),(0,s.A)(this,"unknownBricks",void 0),(0,s.A)(this,"renderId",void 0),(0,l.A)(this,Yr,void 0),(0,l.A)(this,Xr,{onBeforePageLoad:[],onPageLoad:[],onPageLeave:[],onBeforePageLeave:[],onAnchorLoad:[],onAnchorUnload:[],onMediaChange:[],onScrollIntoView:[],onMount:[],onUnmount:[],onMessage:[],onMessageClose:[]}),(0,l.A)(this,Zr,new Map),(0,l.A)(this,en,void 0),(0,l.A)(this,tn,new Map),(0,l.A)(this,rn,void 0),(0,l.A)(this,nn,void 0),(0,l.A)(this,on,new WeakMap),(0,l.A)(this,an,new Map),this.scope=e,this.unknownBricks=null!==(r=null==t?void 0:t.unknownBricks)&&void 0!==r?r:"throw",qr(Yr,this,null==t?void 0:t.routeHelper),this.renderId=null==t?void 0:t.renderId}setInitialMenuRequestNode(e){qr(nn,this,e)}memoizeMenuRequestNode(e,t){zr(on,this).set(e,t)}getMenuRequests(){for(var e=[],t=zr(nn,this);t;)if(t.request&&e.push(t.request),t.child)t=t.child;else{for(var r;t&&!t.sibling;)t=t.return;t=null===(r=t)||void 0===r?void 0:r.sibling}return e}reMergeMenuRequestNodes(e,t){var r=arguments,n=this;return(0,a.A)((function*(){var o=r.length>2&&void 0!==r[2]?r[2]:{},a=zr(on,n).get(t);zr(on,n).set(t,o);for(var i,s=e.child;s&&s!==a;)i=s,s=s.sibling;i?(i.sibling=o,o.sibling=null==a?void 0:a.sibling):e.child=o,yield zr(Yr,n).mergeMenus(n.getMenuRequests())}))()}reBailout(e){return zr(Yr,this).bailout(e)}reCatch(e,t){return zr(Yr,this).catch(e,t)}didPerformIncrementalRender(e,t){var r=this;return(0,a.A)((function*(){var n=!1,o=[];for(var{parentRoutes:a,callback:i}of[...zr(an,r).values()].reverse()){var s=a[a.length-1];if(!o.includes(s)){var l=yield i(e,t);l&&o.push(...a.slice(0,-1)),!1!==l&&(n=!0)}}return n}))()}performIncrementalRender(e,t,r){zr(an,this).set(e,{parentRoutes:t,callback:r})}registerBrickLifeCycle(e,t){if(t){var r=[...Jr,..."page"===this.scope?Qr:[]];for(var n of r){var o=t[n];o&&zr(Xr,this)[n].push({brick:e,handlers:o})}(0,m.isEmpty)(t.useResolves)||console.error("`lifeCycle.useResolves` is dropped in v3:",t)}}registerArbitraryLifeCycle(e,t){var r=zr(tn,this).get(e);r?r.add(t):zr(tn,this).set(e,new Set([t]))}memoize(e,t,r,n){zr(rn,this)||qr(rn,this,new WeakMap);var o=[null!=e?e:"",...t].join("."),a=zr(rn,this).get(n);a||(a=new Map,zr(rn,this).set(n,a)),a.set(o,{node:r,last:fn(r),lastNormal:vn(r),lastPortal:mn(r)})}reRender(e,t,r,n){var o,a=[null!=e?e:"",...t].join("."),i=zr(rn,this).get(n).get(a),{node:s,last:l,lastNormal:c,lastPortal:u}=i,d=[];if((null==s?void 0:s.tag)===Vr.PLACEHOLDER){var p,f,v;o=null!==(p=null===(f=function(e){return hn(e,!0)}(s))||void 0===f?void 0:f.element)&&void 0!==p?p:null;var h=null===(v=function(e){return gn(e,!0)}(s))||void 0===v?void 0:v.element;h&&d.push(h)}else{var m,g,y;o=null!==(m=null==c||null===(g=c.element)||void 0===g?void 0:g.nextSibling)&&void 0!==m?m:null;for(var A=null==u||null===(y=u.element)||void 0===y?void 0:y.nextSibling;A&&(d.push(A),A instanceof HTMLElement&&"DIV"===A.tagName);)A=A.nextSibling}var b,w=fn(r);i.node=r,i.last=w,i.lastNormal=vn(r),i.lastPortal=mn(r);for(var E=n.child;E&&E!==l;){if(E.sibling===s){b=E;break}E=E.sibling}var S=document.createDocumentFragment(),k=document.createDocumentFragment(),I={tag:Vr.ROOT,container:S,createPortal:k,child:r};for(E=r;E;)E.return=I,E=E.sibling;var C,R,T=yn(s,l);for(Gr(sn,this,cn).call(this,T),Hr(I),b?b.sibling=r:n.child=r,w&&(w.sibling=null==l?void 0:l.sibling),E=r;E;)E.return=n,E=E.sibling;if(n.tag===Vr.ROOT?null===(C=n.container)||void 0===C||C.insertBefore(S,o):null===(R=n.element)||void 0===R||R.insertBefore(S,o),k.childNodes.length>0){for(var O,P=r;P&&P.return;)P=P.return;if((null===(O=P)||void 0===O?void 0:O.tag)!==Vr.ROOT)throw new Error("Cannot find render root node. This is a bug of Brick Next, please report it.");var _="function"==typeof P.createPortal?P.createPortal():P.createPortal,M=null;for(var x of d)if(_.contains(x)){M=x;break}_.insertBefore(k,M)}var B=yn(r,w);Gr(sn,this,un).call(this,B)}dispose(){for(var e of Object.values(zr(Xr,this)))e.length=0;for(var t of zr(Zr,this).values()){for(var r of t)r.disconnect();t.length=0}zr(Zr,this).clear(),zr(en,this)&&(Ee.removeEventListener("change",zr(en,this)),qr(en,this,void 0)),qr(rn,this,void 0),zr(tn,this).clear(),zr(an,this).clear(),qr(on,this,void 0)}dispatchBeforePageLoad(){Gr(sn,this,dn).call(this,"onBeforePageLoad",new CustomEvent("page.beforeLoad"))}dispatchPageLoad(){var e=new CustomEvent("page.load");Gr(sn,this,dn).call(this,"onPageLoad",e),window.dispatchEvent(e)}dispatchBeforePageLeave(e){Gr(sn,this,dn).call(this,"onBeforePageLeave",new CustomEvent("page.beforeLeave",{detail:e}))}dispatchPageLeave(){Gr(sn,this,dn).call(this,"onPageLeave",new CustomEvent("page.leave"))}dispatchAnchorLoad(){var{hash:e}=C().location;e&&"#"!==e?Gr(sn,this,dn).call(this,"onAnchorLoad",new CustomEvent("anchor.load",{detail:{hash:e,anchor:e.substring(1)}})):Gr(sn,this,dn).call(this,"onAnchorUnload",new CustomEvent("anchor.unload"))}initializeScrollIntoView(){for(var{brick:e,handlers:t}of zr(Xr,this).onScrollIntoView)Gr(sn,this,pn).call(this,e,t)}initializeMediaChange(){qr(en,this,(e=>{Gr(sn,this,dn).call(this,"onMediaChange",new CustomEvent("media.change",{detail:G(e.detail)}))})),Ee.addEventListener("change",zr(en,this))}initializeMessageDispatcher(){var e,t=function(e){var t=function(t){var r;null==Ca||null===(r=Ca.messageDispatcher)||void 0===r||r.onMessage(t.channel,(r=>{wr(t.handlers,e.runtimeContext,e)(new CustomEvent("message.push",{detail:r}))}))};for(var r of[].concat(n))t(r)};for(var{brick:r,handlers:n}of zr(Xr,this).onMessage)t(r);null==Ca||null===(e=Ca.messageDispatcher)||void 0===e||e.onClose((()=>{Gr(sn,this,dn).call(this,"onMessageClose",new CustomEvent("message.close"))}))}dispatchOnMount(){Gr(sn,this,dn).call(this,"onMount",new CustomEvent("mount"))}dispatchOnUnmount(){Gr(sn,this,dn).call(this,"onUnmount",new CustomEvent("unmount"))}}function cn(e){var t=[...Jr,..."page"===this.scope?Qr:[]],r=[];for(var n of t){var o=(0,m.remove)(zr(Xr,this)[n],(t=>e.has(t.brick)));"onUnmount"===n&&r.push(...o)}for(var a of e){var i,s,l=zr(Zr,this).get(a);if(null!=l&&l.length){for(var c of l)c.disconnect();l.length=0,zr(Zr,this).delete(a)}Kr(a),null===(i=a.element)||void 0===i||delete i.$$tplStateStore,null===(s=a.element)||void 0===s||s.remove()}var u=new CustomEvent("unmount");for(var{brick:d,handlers:p}of r)wr(p,d.runtimeContext,d)(u)}function un(e){var t=new CustomEvent("mount");for(var{brick:r,handlers:n}of zr(Xr,this).onMount)e.has(r)&&wr(n,r.runtimeContext,r)(t);for(var{brick:o,handlers:a}of zr(Xr,this).onScrollIntoView)e.has(o)&&Gr(sn,this,pn).call(this,o,a)}function dn(e,t){for(var{brick:r,handlers:n}of zr(Xr,this)[e])wr(n,r.runtimeContext,r)(t);var o=zr(tn,this).get(e);if(o)for(var a of o)a()}function pn(e,t){var r,n=null!==(r=t.threshold)&&void 0!==r?r:.1,o=new IntersectionObserver(((r,o)=>{r.forEach((r=>{r.isIntersecting&&r.intersectionRatio>=n&&(wr(t.handlers,e.runtimeContext,e)(new CustomEvent("scroll.into.view")),o.disconnect())}))}),{threshold:n});o.observe(e.element);var a=zr(Zr,this).get(e);a||(a=[],zr(Zr,this).set(e,a)),a.push(o)}function fn(e){for(var t=e;null!==(r=t)&&void 0!==r&&r.sibling;){var r;t=t.sibling}return t}function vn(e){return hn(e,!1)}function hn(e,t){for(var r,n=e;n;){if(n.tag===Vr.BRICK&&!n.portal){if(t)return n;r=n}n=n.sibling}return r}function mn(e){return gn(e,!1)}function gn(e,t){for(var r,n=e;n;){if(n.tag===Vr.BRICK&&n.portal){if(t)return n;r=n}if(n.child)n=n.child;else if(n.sibling)n=n.sibling;else{for(var o,a=n.return;a&&!a.sibling;)a=a.return;n=null===(o=a)||void 0===o?void 0:o.sibling}}return r}function yn(e,t){for(var r=new Set,n=e;n;)if(n.tag===Vr.BRICK&&r.add(n),n.child)n=n.child;else{if(n===t)break;if(n.sibling)n=n.sibling;else{for(var o,a=n.return;a&&a!==t&&!a.sibling;)a=a.return;if(a===t)break;n=null===(o=a)||void 0===o?void 0:o.sibling}}return r}var An=Symbol.for("root.runtimeContext");function bn(e,t){return wn.apply(this,arguments)}function wn(){return(wn=(0,a.A)((function*(e,t){var r,n,a,i,s,[l,c,u]=Co((0,o.A)((0,o.A)({},null!==(r=e[An])&&void 0!==r?r:qa()),{},{data:t,pendingPermissionsPreCheck:[]}));null!==(n=l.tplStateStoreMap)&&void 0!==n||(l.tplStateStoreMap=new Map),null!==(a=l.formStateStoreMap)&&void 0!==a||(l.formStateStoreMap=new Map);var d=new ln("fragment"),p={tag:Vr.ROOT,createPortal:null},f=e.transform,v=Te();f&&Oe(v,"`useBrick.transform`",'please use "properties" instead, check your useBrick:',e);var h=yield wo(p,v?e:(0,o.A)((0,o.A)({},e),{},{properties:(0,o.A)((0,o.A)({},e.properties),f)}),l,d,[],{}),m=[...c,...u];if(yield Io(h,l,m),(null===(i=h.node)||void 0===i?void 0:i.tag)===Vr.PLACEHOLDER)throw new Error("The root brick of useBrick cannot be an ignored control node");if(null!==(s=h.node)&&void 0!==s&&s.portal)throw new Error("The root brick of useBrick cannot be a portal brick");return p.child=h.node,{tagName:h.node?h.node.type:null,renderRoot:p,rendererContext:d,scopedStores:m}}))).apply(this,arguments)}function En(e,t){var r,{renderRoot:n,rendererContext:o,scopedStores:a}=e;for(var i of(n.createPortal=()=>{var e=document.querySelector("#portal-mount-point");return r=document.createElement("div"),e.appendChild(r),r},Hr(n,t),o.dispatchOnMount(),o.initializeScrollIntoView(),o.initializeMediaChange(),o.initializeMessageDispatcher(),a))i.mountAsyncData();return{portal:r}}function Sn(e,t){var{rendererContext:r}=e;t.portal&&(Wr(t.portal),t.portal.remove()),r.dispatchOnUnmount(),r.dispose()}function kn(e,t,r){if(r)throw new Error("Legacy doTransform does not support options in v3");return St(t,(0,o.A)((0,o.A)({},qa()),{},{data:e}),{noInject:!0})}function In(e,t){var r=Ga(e);Object.assign(r,(0,o.A)((0,o.A)({},t),{},{meta:(0,o.A)((0,o.A)({},r.meta),t.meta),$$fulfilling:null,$$fulfilled:!0,$$registerCustomTemplateProcessed:!1})),L(r)}function Cn(e,t){var r=Ga(e),n=!1,o=e=>"".concat(e.path,".").concat(e.exact),a=(e,r)=>e.map((e=>{var i=o(e);return"routes"===e.type?(e.routes=a(e.routes,r),e):i===r?(n=!0,t):e}));r.routes=a(r.routes,o(t)),n||r.routes.unshift(t)}function Rn(e,t,r){var n="".concat(e,".").concat(t.name);xe.define(n,{bricks:t.bricks,proxy:t.proxy,state:t.state}),Tn(e,t.name,r)}function Tn(e,t,r){xn(e,"${APP.homepage}/_dev_only_/template-preview/".concat(t),[(0,o.A)({brick:t},(0,m.pick)(r,"properties","events","lifeCycle","context","slots","children"))])}function On(e){return"${APP.homepage}/_dev_only_/snippet-preview/".concat(e)}function Pn(e,t){var r;xn(e,On(t.snippetId),null!==(r=t.bricks)&&void 0!==r&&r.length?t.bricks:[{brick:"span"}],t.context)}var _n,Mn=Pn;function xn(e,t,r,n){var{routes:o}=Ga(e),a=o.findIndex((e=>e.path===t)),i={path:t,bricks:r,context:n,menu:!1,exact:!0};-1===a?o.unshift(i):o.splice(a,1,i)}function Bn(e,t){var{tplStateStoreId:r}=t,n=qa();return r?Be((0,o.A)((0,o.A)({},n),{},{tplStateStoreId:r}),"STATE").getValue(e):n.ctxStore.getValue(e)}function Ln(e){var{tplStateStoreId:t}=e,r=qa();return t?Be((0,o.A)((0,o.A)({},r),{},{tplStateStoreId:t}),"STATE").getAllValues():r.ctxStore.getAllValues()}function Nn(e){return Ha().find((t=>t.id?t.id===e:t.filePath.startsWith(e)))}function Un(e){return(0,u.loadBricksImperatively)(e,Ha())}function Fn(){return za()}function jn(e,t){return $n.apply(this,arguments)}function $n(){return($n=(0,a.A)((function*(e,t){var r,{appId:n,updateStoryboardType:o,collectUsedContracts:a}=t,i=Ga(n);if("route"===o)r={routes:[e]};else if("template"===o)r={meta:{customTemplates:[e]}};else if("snippet"===o){var s,l=On(e.snippetId);r={routes:[null==i||null===(s=i.routes)||void 0===s?void 0:s.find((e=>e.path===l))]}}var c=[];return r&&a&&(yield a(r)).forEach((e=>{var t,[r,n,o]=e.match(/(.*)@(.*):\d\.\d\.\d/);null!=i&&null!==(t=i.meta)&&void 0!==t&&null!==(t=t.contracts)&&void 0!==t&&t.some((e=>e.namespaceId===n&&e.name===o))||c.push(e)})),c}))).apply(this,arguments)}var Dn=[];function Kn(e){_n=e;var t=Ln({tplStateStoreId:e.tplStateStoreId});Wn({changeType:"initialize",tplStateStoreId:e.tplStateStoreId,detail:{data:t}})}function Vn(e){Dn.push(e)}function Wn(e){setTimeout((()=>{for(var t of Dn)try{t(e)}catch(t){console.error("RealTimeDataInspectHook failed (".concat(e.changeType,"):"),t)}}))}var Hn=["onBeforePageLoad","onPageLoad","onBeforePageLeave","onPageLeave","onAnchorLoad","onAnchorUnload"];class zn{constructor(e,t,r,n){(0,s.A)(this,"type",void 0),(0,s.A)(this,"data",new Map),(0,s.A)(this,"changeEventType",void 0),(0,s.A)(this,"pendingStack",[]),(0,s.A)(this,"hostBrick",void 0),(0,s.A)(this,"stateStoreId",void 0),(0,s.A)(this,"batchUpdate",!1),(0,s.A)(this,"batchUpdateContextsNames",[]),(0,s.A)(this,"rendererContext",void 0),(0,s.A)(this,"routeMap",new WeakMap),this.type=e,this.changeEventType="FORM_STATE"===this.type?"formstate.change":"STATE"===this.type?"state.change":"context.change",this.hostBrick=t,this.rendererContext=r,this.stateStoreId=n}getAllValues(){return Object.fromEntries([...this.data.entries()].map((e=>{var[t,{value:r}]=e;return[t,r]})))}getValue(e){var t;return null===(t=this.data.get(e))||void 0===t?void 0:t.value}notifyRealTimeDataChange(e,t){if(_n){var{tplStateStoreId:r}=_n;(r?"STATE"===this.type&&this.stateStoreId===r:"CTX"===this.type)&&Wn({changeType:"update",tplStateStoreId:r,detail:{name:e,value:t}})}}getAffectListByContext(e){var t=[e];return this.data.forEach(((e,r)=>{e.deps&&e.deps.some((e=>t.includes(e)))&&t.push(r)&&t.push(...this.getAffectListByContext(r))})),t.shift(),[...new Set(t)]}updateValues(e,t,r){if(this.batchUpdate=!0,this.batchUpdateContextsNames=e.map((e=>e.name)),[...new Set(this.batchUpdateContextsNames)].length!==this.batchUpdateContextsNames.length)throw new Error("Batch update not allow to update same item");var n={},o={},a=[];e.forEach((e=>{var{name:o,value:i}=r([e]),s=this.data.get(o);a.push(...this.getAffectListByContext(o)),s&&(n[o]=s),this.updateValue(o,i,t)})),a.filter((e=>!n[e])).forEach((e=>{var t=this.data.get(e);t&&(o[e]=t)}));var i=e=>{for(var t in e){var r,n=e[t];null===(r=n.eventTarget)||void 0===r||r.dispatchEvent(new CustomEvent(this.changeEventType,{detail:n.value}))}};i(n),i(o),this.batchUpdate=!1}updateValue(e,t,r,n,a){var i=this.data.get(e);if(!i)throw new Error("".concat(this.type," '").concat(e,"' is not defined"));if("refresh"!==r&&"load"!==r)"replace"===r?i.value=t:(0,d.isObject)(i.value)?Object.assign(i.value,t):(console.warn('Non-object current value of "'.concat(this.type,".").concat(e,'" for "context.assign", try "context.replace" instead.')),i.value=t),this.batchUpdate||i.eventTarget.dispatchEvent(new CustomEvent(this.changeEventType,{detail:i.value}));else{if(!i.useResolve)throw new Error("You can not ".concat(r,' "').concat(this.type,".").concat(e,'" which is not using resolve'));var s;"load"===r&&(i.loaded?s=Promise.resolve(i.value):i.loading&&(s=i.loading));var l=e=>{var t,r;return"FlowApiNotFoundError"===(null==e?void 0:e.name)&&!!(r=null===(t=this.rendererContext)||void 0===t?void 0:t.renderId)&&r!==za()};if(s||(s=i.loading=i.load((0,o.A)({cache:"load"===r?"default":"reload"},t))).then((e=>{this.finishLoad(i,e)}),(e=>{!i.useResolve||l(e)||null!=n&&n.error||vr(e)})),n){var c=jr(n,a);s.then((e=>{c("success")({value:e}),c("finally")()}),(e=>{!l(e)&&n.error&&c("error")(e),c("finally")()}))}}}finishLoad(e,t){e.useResolve&&(e.loaded=!0,e.value=t,e.eventTarget.dispatchEvent(new CustomEvent(this.changeEventType,{detail:t})))}define(e,t,r,n){if(Array.isArray(e)&&e.length>0){var o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CTX",n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CTX",r=arguments.length>2?arguments[2]:void 0,n=new Map;for(var o of e){var a=[o.if,o.value,o.resolve],i=(0,O.collectMemberUsage)(a,t);if(!r&&"STATE"===t){var s=(0,O.collectMemberUsage)(a,"TPL");for(var l of s.usedProperties)i.usedProperties.add(l);s.hasNonStaticUsage&&(i.hasNonStaticUsage=!0)}n.set(o,i)}return n}(e,r,arguments.length>3?arguments[3]:void 0),o=new Map;for(var i of Array.from(n.keys()).map((e=>e.name))){var s;o.set(i,(null!==(s=o.get(i))&&void 0!==s?s:0)+1)}var l=Array.from(n.values()).some((e=>e.hasNonStaticUsage)),c=new WeakSet,u=new Map,d=new Map([...new Set(e.map((e=>e.name)))].map((e=>[e,new Promise(((t,r)=>{u.set(e,{resolve:t,reject:r})}))]))),p=function(){var e=(0,a.A)((function*(e){var r;c.add(e);var a=yield t(e);n.delete(e);var i=null!==(r=o.get(e.name))&&void 0!==r?r:0;if(a){if(u.get(e.name).resolve(),o.delete(e.name),0===i)throw new Error("Duplicated context defined: ".concat(e.name))}else 1===i?(u.get(e.name).resolve(),o.delete(e.name)):o.set(e.name,i-1);yield v()}));return function(t){return e.apply(this,arguments)}}(),f=l;function v(){return h.apply(this,arguments)}function h(){return h=(0,a.A)((function*(){var e=Array.from(n.entries()).filter(function(e,t){return(r,n)=>t?0===n:![...r[1].usedProperties].some((t=>e.has(t)))}(o,f)).map((e=>e[0])).filter((e=>!c.has(e)));yield Promise.all(e.map(p))})),h.apply(this,arguments)}return{pendingResult:v().then((0,a.A)((function*(){for(var e of(n.size>0&&(function(e,t){var r=new Map(e),n=new Set(Array.from(r.keys()).map((e=>e.name))),o=()=>{var e=!1;for(var[t,a]of r.entries())[...a.usedProperties].some((e=>n.has(e)))||(r.delete(t),n.delete(t.name),e=!0);e&&o()};if(o(),r.size>0)throw new ReferenceError("Circular ".concat(t," detected: ").concat(Array.from(r.keys()).map((e=>e.name)).join(", ")))}(n,r),f=!0,yield v()),u.values()))e.resolve()}))).catch((e=>{for(var t of u.values())t.reject(e);throw e})),pendingContexts:d}}(e,(e=>this.resolve(e,t,r,n)),this.type,Te(t));this.pendingStack.push(o)}}onChange(e,t){var r;null===(r=this.data.get(e))||void 0===r||r.eventTarget.addEventListener(this.changeEventType,t)}waitFor(e){var t=this;return(0,a.A)((function*(){var r=function*(t){yield Promise.all([...e].map((e=>t.get(e))))};for(var{pendingContexts:n}of t.pendingStack)yield*r(n)}))()}waitForAll(){var e=this;return(0,a.A)((function*(){for(var{pendingContexts:t}of e.pendingStack)for(var r of t.values())r.catch((()=>{}));for(var{pendingResult:n}of e.pendingStack)yield n}))()}mountAsyncData(e){this.data.forEach((t=>{var r;if(t.async&&(!e||null!==(r=this.routeMap.get(e))&&void 0!==r&&r.has(t.name))){if(t.asyncMounted)return void console.error('Async data "'.concat(t.name,'" already mounted. This is a bug of Brick Next, please report it.'));t.asyncMounted=!0,t.loading.then((e=>{this.finishLoad(t,e)}))}}))}resolve(e,t,r,n){var i=this;return(0,a.A)((function*(){if(!(yield Ct(e,t)))return!1;var s,l,c,u,p,f;if(r&&("STATE"===i.type?e.expose:"FORM_STATE"===i.type)&&(s=yield xt(r,e.name)),void 0===s){if(e.resolve){var v=(0,d.hasOwnProperty)(e,"value");p=e.track&&v&&(0,d.hasOwnProperty)(e.resolve,"if")&&(0,O.strictCollectMemberUsage)(e.resolve.if,i.type).size>0;var h=(0,o.A)({transform:"value"},e.resolve);if(((u=yield Ct(e.resolve,t))||p)&&(l=function(){var e=(0,a.A)((function*(e){var r;return(yield ot(h,t,(0,o.A)((0,o.A)({},e),{},{renderId:null===(r=i.rendererContext)||void 0===r?void 0:r.renderId}))).value}));return function(t){return e.apply(this,arguments)}}()),u)"eager"==(f=e.resolve.async?"async":e.resolve.lazy?"lazy":"eager")?s=yield l():"async"===f&&(c=l());else if(!v)return!1}u&&"eager"===f||void 0===e.value||(s=yield wt(e.value,t))}if(i.data.has(e.name))throw new Error("".concat(i.type," '").concat(e.name,"' has already been declared"));var m={name:e.name,value:s,eventTarget:new Ae,useResolve:u,load:l,loaded:"eager"===f,loading:c,async:"async"===f,deps:[]};if("lazy"===f){var g,{trigger:y}=e.resolve;y&&Hn.includes(y)&&(null===(g=i.rendererContext)||void 0===g||g.registerArbitraryLifeCycle(y,(()=>{i.updateValue(e.name,void 0,"load")})))}if(e.onChange&&m.eventTarget.addEventListener(i.changeEventType,wr(e.onChange,t)),e.track){var A=(0,O.strictCollectMemberUsage)(p?[e.resolve,e.value]:l?e.resolve:e.value,i.type);for(var b of(!l&&(m.deps=[...A]),A))i.onChange(b,i.batchAddListener((()=>{m.useResolve=p?Tt(e.resolve,t):!!l,m.useResolve?i.updateValue(e.name,{cache:"default"},"refresh"):i.updateValue(e.name,St(e.value,t),"replace")}),e))}if(m.eventTarget.addEventListener(i.changeEventType,(t=>{i.notifyRealTimeDataChange(e.name,t.detail)})),i.data.set(e.name,m),Array.isArray(n))for(var w of n){var E=i.routeMap.get(w);E?E.add(e.name):i.routeMap.set(w,new Set([e.name]))}return!0}))()}disposeDataInRoutes(e){for(var t of e){var r=this.routeMap.get(t);if(void 0!==r)for(var n of r)this.data.delete(n)}}batchAddListener(e,t){return r=>{this.batchUpdate&&this.batchUpdateContextsNames.includes(t.name)||e(r)}}}var qn=r(1369);function Gn(e,t,r){var n,o,{reversedProxies:a,asyncHostPropertyEntries:i,externalSlots:s,tplStateStoreId:l,hostBrick:c}=e;if(t&&a){var u=a.properties.get(t);u&&(o=i,n=u.map((e=>{var{from:t,to:r}=e,n=o.filter((e=>e[0]===t));if(n.length>0&&r.refProperty)return[r.refProperty,xt(n,t),!0]})).filter(Boolean));var p=a.slots.get(t);if(p&&s){var f=new Map;for(var{from:v,to:h}of p){var g,y,A,b,w=null!==(g=null===(y=s[v])||void 0===y?void 0:y.bricks)&&void 0!==g?g:[];if(w.length){var E=null!==(A=h.refSlot)&&void 0!==A?A:v,S=f.get(E);if(!S){S=[];for(var k=(0,d.hasOwnProperty)(r,E)?r[E].bricks.length+1:1,I=0;I<k;I+=1)S.push([]);f.set(E,S)}var C=null!==(b=h.refPosition)&&void 0!==b?b:-1,R=(0,d.hasOwnProperty)(c.runtimeContext,"forEachItem");S[(0,m.clamp)(C<0?S.length+C:C,0,S.length-1)].push(..."base-layout-v3.tpl-scroll-load-list"!==e.__temporary_tpl_tag_name&&"shrcb-homepage.tpl-custom-scroll-load-list"!==e.__temporary_tpl_tag_name||R?Jn(w,R,c.runtimeContext.forEachItem,c.runtimeContext.forEachIndex):w)}}var T=function(){(0,d.hasOwnProperty)(r,O)||(r[O]={type:"bricks",bricks:[]});var e=r[O];e.bricks=P.flatMap(((t,r)=>r<e.bricks.length?t.concat(e.bricks[r]):t)),0===e.bricks.length&&delete r[O]};for(var[O,P]of f.entries())T()}}return{[Qt]:n,[Yt]:l}}function Jn(e,t,r,n){return e.map((e=>{var a,{children:i,slots:s,[Xt]:l,[Zt]:c,[er]:u}=e,d=(0,h.A)(e,["children","slots",Xt,Zt,er].map(qn.A));return(0,o.A)((0,o.A)((0,o.A)({},d),t?{[Xt]:r,[Zt]:n}:{[er]:!0}),{},{slots:":forEach"===d.brick?Oo(i,s):Object.fromEntries(Object.entries(null!==(a=Oo(i,s))&&void 0!==a?a:{}).map((e=>{var[o,a]=e;return[o,"routes"===a.type?{type:"routes",routes:Qn(a.routes,t,r,n)}:{type:"bricks",bricks:Jn(a.bricks,t,r,n)}]})))})}))}function Qn(e,t,r,n){return e.map((e=>"routes"===e.type?(0,o.A)((0,o.A)({},e),{},{routes:Qn(e.routes,t,r,n)}):"redirect"===e.type?e:(0,o.A)((0,o.A)({},e),{},{bricks:Jn(e.bricks,t,r,n)})))}var Yn=["properties","slots","children"];function Xn(e,t){function r(e){return(0,d.isObject)(e)&&"function"!=typeof e?Array.isArray(e)?e.map(r):Object.fromEntries(Object.entries(e).map((e=>{var[t,o]=e;return(0,d.isObject)(o)&&"useBrick"===t?Array.isArray(o)?[t,o.map(n)]:[t,n(o)]:[t,r(o)]})).concat(Object.getOwnPropertySymbols(e).map((t=>[t,e[t]])))):e}function n(e){var{properties:a,slots:i,children:s}=e,l=(0,h.A)(e,Yn),c=Oo(s,i),u=Object.fromEntries(Object.entries(null!=c?c:{}).map((e=>{var t,[r,o]=e;return[r,{type:"bricks",bricks:(null!==(t=o.bricks)&&void 0!==t?t:[]).map(n)}]})));return(0,o.A)((0,o.A)({},l),{},{properties:r(a),slots:u},Gn(t,l.ref,u))}return r(e)}var Zn=["slots","children"],eo=["properties","slots","children"];function to(e,t,r,n,a){var i,s=(0,m.uniqueId)("tpl-state-"),l=(0,o.A)((0,o.A)({},r.runtimeContext),{},{tplStateStoreId:s});delete l.forEachItem,delete l.forEachIndex,delete l.formStateStoreId;var c=new zn("STATE",r,a,s);l.tplStateStoreMap.set(s,c),l.tplStateStoreScope&&l.tplStateStoreScope.push(c);var{bricks:u,proxy:d,state:p,contracts:f}=xe.get(e);null==Ca||null===(i=Ca.flowApi)||void 0===i||i.collectWidgetContract(f),c.define(p,l,n);var{slots:v,children:g}=t,y=(0,h.A)(t,Zn),A=(0,o.A)((0,o.A)({},y),{},{brick:e});r.tplHostMetadata={internalBricksByRef:new Map,tplStateStoreId:s,proxy:d};var b={properties:new Map,slots:new Map};if(null!=d&&d.properties)for(var[w,E]of Object.entries(d.properties)){var S=b.properties.get(E.ref);S||(S=[],b.properties.set(E.ref,S)),S.push({from:w,to:E})}if(null!=d&&d.slots)for(var[k,I]of Object.entries(d.slots)){var C=b.slots.get(I.ref);C||(C=[],b.slots.set(I.ref,C)),C.push({from:k,to:I})}var R={reversedProxies:b,asyncHostPropertyEntries:n,externalSlots:Oo(g,v),tplStateStoreId:s,hostBrick:r,__temporary_tpl_tag_name:e};return A.slots={"":{type:"bricks",bricks:u.map((e=>ro(e,R)))}},A}function ro(e,t){null===e.if&&delete e.if;var{properties:r,slots:n,children:a}=e,i=(0,h.A)(e,eo),s=Oo(a,n),l=Object.fromEntries(Object.entries(null!=s?s:{}).map((e=>{var r,[n,o]=e;return[n,{type:"bricks",bricks:(null!==(r=o.bricks)&&void 0!==r?r:[]).map((e=>ro(e,t)))}]})));return(0,o.A)((0,o.A)({},i),{},{properties:Xn(r,t),slots:l},Gn(t,i.ref,l))}var no="form-renderer.form-renderer",oo=Symbol.for("form.stateStoreId"),ao=["forms.general-form","form.general-form","eo-form"];function io(e,t,r){var{id:n,bricks:a,events:i,context:s,mountPoint:l,instanceId:c}=e,{brick:u,properties:p}=e,f=t.find((e=>e.fieldId===n));if(f){var v=function(e){var t,r={id:e.fieldId,name:e.fieldId,label:e.name,dataset:{testid:e.fieldId}},n=()=>{var t,r;return{readOnly:null===(t=e.limit)||void 0===t?void 0:t.includes("READONLY"),required:null===(r=e.limit)||void 0===r?void 0:r.includes("REQUIRED")}};switch(e.fieldType){case"INT":t={brick:"forms.general-input-number",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{placeholder:e.description,precision:0,inputBoxStyle:{width:"100%"}})};break;case"BOOLEAN":t={brick:"forms.general-switch",properties:(0,o.A)((0,o.A)({},r),n())};break;case"FLOAT":t={brick:"forms.general-input-number",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"ENUM":t={brick:"forms.general-select",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{options:[{label:"选项一",value:1},{label:"选项二",value:2}],placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"ENUMS":t={brick:"forms.general-select",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{mode:"multiple",options:[{label:"选项一",value:1},{label:"选项二",value:2}],placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"DATE":case"TIME":t={brick:"forms.general-date-picker",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{placeholder:e.description})};break;case"IP":t={brick:"forms.general-input",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{placeholder:e.description,pattern:"((^s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))s*$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*$))",message:{pattern:"输入字符不匹配IP格式"}})};break;case"JSON":t={brick:"forms.general-textarea",properties:(0,o.A)({},r)};break;case"ARRAY":t={brick:"forms.general-select",properties:(0,o.A)({},r)};break;case"STRUCTURE":case"STRUCTURE_ARRAY":t={brick:"forms.cmdb-instance-select-panel",properties:(0,o.A)((0,o.A)({},r),n())};break;default:t={brick:"forms.general-input",properties:(0,o.A)((0,o.A)((0,o.A)({},r),n()),{},{placeholder:e.description})}}return t}(f);u||(u=v.brick),p=(0,o.A)((0,o.A)({},v.properties),p)}var h={brick:u,properties:p,iid:c,slot:l,events:i,context:s,children:so(a,t,r),[oo]:r};return(0,d.hasOwnProperty)(e,"if")&&(h.if=e.if),h}function so(e,t,r){if(Array.isArray(e))return e.map((e=>io(e,t,r)))}var lo,co,uo,po=["blockingList","node","menuRequestNode","hasTrackingControls"],fo=["if","permissionsPreCheck"],vo=["formData"],ho=["src"],mo=["href"];function go(e,t,r,n,o,a,i,s){return yo.apply(this,arguments)}function yo(){return yo=(0,a.A)((function*(e,t,r,n,a,i,s,l){var c=yield function(e,t){return qt.apply(this,arguments)}(t,r),d={blockingList:[]},p={return:i};switch(d.menuRequestNode=p,c){case"missed":break;case"unauthenticated":d.unauthenticated=!0;break;default:var f,v=d.route=c.route;d.path=c.match.path;var h=(0,o.A)((0,o.A)({},r),{},{match:c.match});l&&h.ctxStore.disposeDataInRoutes(t);var m=a.concat(v);h.ctxStore.define(v.context,h,void 0,m),h.pendingPermissionsPreCheck.push(null==Ca||null===(f=Ca.checkPermissions)||void 0===f?void 0:f.preCheckPermissionsForBrickOrRoute(v,(e=>wt(e,h))));var{preLoadBricks:g}=v;if(Array.isArray(g)&&d.blockingList.push((0,u.loadBricksImperatively)(g,Ha())),"redirect"===v.type){var y;if("string"!=typeof(y="string"==typeof v.redirect?yield wt(v.redirect,h):(yield ot((0,o.A)({transform:"redirect"},v.redirect),h)).redirect))throw console.error("Unexpected redirect result:",y),new Error("Unexpected type of redirect result: ".concat(typeof y));d.redirect={path:y}}else{var A,b=function(e,t){if(e){if("brick"===e.type)throw console.error("Set menu with brick is dropped in v3:",e),new Error("Set menu with brick is dropped in v3");if("resolve"!==e.type)return wt(e,t);console.warn("Set menu with resolve is not supported in v3 yet:",e)}}(v.menu,h);b&&(p.request=b),l||n.memoizeMenuRequestNode(t,p),Ro(d,A="routes"===v.type?yield go(e,v.routes,h,n,m,p,s):yield Ao(e,v.bricks,h,n,m,p,s)),To(i,A.menuRequestNode)}}return d})),yo.apply(this,arguments)}function Ao(e,t,r,n,o,a,i,s,l){return bo.apply(this,arguments)}function bo(){return bo=(0,a.A)((function*(e,t,r,n,o,a,i,s,l){!function(e,t,r){function n(e){if((0,d.isObject)(e)&&"function"!=typeof e)if(Array.isArray(e))e.map(n);else for(var[t,r]of Object.entries(e))(0,d.isObject)(r)&&"useBrick"===t?Array.isArray(r)?r.forEach((e=>o(e,!0))):o(r,!0,!0):n(r)}function o(e,a,i){if(a&&(e[An]=t),n(e.properties),!r||i){var s=Oo(e.children,e.slots);for(var l of Object.values(null!=s?s:{}))for(var c of null!==(u=l.bricks)&&void 0!==u?u:[]){var u;o(c,a)}}}for(var a of e)o(a)}(t,r,!0);var c={blockingList:[]},u=null!=l?l:[];return(yield Promise.all(t.map(((t,l)=>wo(e,t,r,n,o,a,i,u.concat(l),s&&new Map(s)))))).forEach(((t,r)=>{t.hasTrackingControls&&n.memoize(i,u.concat(r),t.node,e),Ro(c,t)})),c})),bo.apply(this,arguments)}function wo(e,t,r,n,o,a,i){return Eo.apply(this,arguments)}function Eo(){return Eo=(0,a.A)((function*(e,t,r,n,i,s,l){var c,p,f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],v=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Map,g={blockingList:[]};if(!t.brick)return t.template?console.error("Legacy templates are dropped in v3:",t):console.error("Invalid brick:",t),g;var{if:A,permissionsPreCheck:b}=t,w=(0,h.A)(t,fo);if(function(e){return"string"==typeof e?(0,T.isTrackAll)(e):ut(e)&&(0,T.isTrackAll)(dt(e))}(A))return wo(e,(0,o.A)({brick:":if",dataSource:A,permissionsPreCheck:b,slots:{"":{type:"bricks",bricks:[w]}}},Object.getOwnPropertySymbols(t).reduce(((e,r)=>(0,o.A)((0,o.A)({},e),{},{[r]:t[r]})),{})),r,n,i,s,l,f,v);var E=t[Yt],S=t[oo],k=(0,o.A)((0,o.A)({},r),{},{tplStateStoreId:E,formStateStoreId:S});(0,d.hasOwnProperty)(t,Xt)?(k.forEachItem=t[Xt],k.forEachIndex=t[Zt]):t[er]&&(delete k.forEachItem,delete k.forEachIndex);var{context:I}=t;if(Array.isArray(I)&&I.length>0){var C=Te(k);Oe(C,"Defining context on bricks","check your brick:",t),C||k.ctxStore.define(I,k)}if(k.pendingPermissionsPreCheck.push(null==Ca||null===(c=Ca.checkPermissions)||void 0===c?void 0:c.preCheckPermissionsForBrickOrRoute(t,(e=>wt(e,k)))),!(yield function(e,t){return Pt.apply(this,arguments)}(t,k)))return g;var R=t.brick;if(R.startsWith(":")){var P;!function(e){if(":forEach"!==e&&":if"!==e&&":switch"!==e)throw new Error('Unknown storyboard control node: "'.concat(e,'"'))}(R);var{dataSource:_}=t,M=function(){var r=(0,a.A)((function*(r){var o,a=yield wt(_,r),c=":forEach"===R?"":":switch"===R?String(a):a?"":"else",u=Oo(t.children,t.slots),p=u&&(0,d.hasOwnProperty)(u,c)&&(null===(o=u[c])||void 0===o?void 0:o.bricks);if(!Array.isArray(p))return{blockingList:[]};switch(R){case":forEach":return Array.isArray(a)?function(e,t,r,n,o,a,i,s,l,c){return So.apply(this,arguments)}(e,a,p,r,n,i,s,l,v,f):{blockingList:[]};case":if":case":switch":return Ao(e,p,r,n,i,s,l,v,f)}}));return function(e){return r.apply(this,arguments)}}(),x=function(){var t=(0,a.A)((function*(t){var r,n=yield M(t);return null!==(r=n.node)&&void 0!==r||(n.node={tag:Vr.PLACEHOLDER,return:e}),n}));return function(e){return t.apply(this,arguments)}}(),B=yield x(k),{onMount:L,onUnmount:N}=null!==(P=t.lifeCycle)&&void 0!==P?P:{},{contextNames:U,stateNames:F}=Mt(_);if(U||F){B.hasTrackingControls=!0;var j=0,$=function(){var t=(0,a.A)((function*(){var t=++j,[r,o,a]=Co(k),i=yield x(r),s=[...o,...a];if(yield Io(i,r,s),j===t)for(var c of(N&&wr(N,k)(new CustomEvent("unmount",{detail:{rerender:!0}})),n.reRender(l,f,i.node,e),L&&wr(L,r)(new CustomEvent("mount",{detail:{rerender:!0}})),s))c.mountAsyncData()}));return function(){return t.apply(this,arguments)}}(),D=(0,m.debounce)($);if(U)for(var K of U)k.ctxStore.onChange(K,D);if(F)for(var V of F)Be(k,"STATE",': "'.concat(_,'"')).onChange(V,D)}return L&&n.registerArbitraryLifeCycle("onMount",(()=>{wr(L,k)(new CustomEvent("mount",{detail:{rerender:!1}}))})),N&&n.registerArbitraryLifeCycle("onUnmount",(()=>{wr(N,k)(new CustomEvent("unmount",{detail:{rerender:!1}}))})),B}/\.tpl-/.test(R)&&!xe.get(R)&&(yield Po((0,u.loadBricksImperatively)([R],Ha()),"brick",R,n.unknownBricks));var W,H,z=function(e,t){if(!e.includes(".")&&e.startsWith("tpl-")&&t){var r="".concat(t,".").concat(e);if(xe.get(r))return r}return!!xe.get(e)&&e}(R,null===(p=k.app)||void 0===p?void 0:p.id);if(z){var q,G=null!==(q=v.get(z))&&void 0!==q?q:0;if(G>=10)throw new Error('Maximum custom template stack overflowed: "'.concat(z,'"'));v.set(z,G+1)}else R.includes("-")&&!customElements.get(R)&&(R===no?customElements.define(no,class extends HTMLElement{get $$typeof(){return"form-renderer"}}):g.blockingList.push(Po((0,u.enqueueStableLoadBricks)([R],Ha()),"brick",R,n.unknownBricks)));if(R===no){var J,Q=null!==(J=t.properties)&&void 0!==J?J:{};({formData:W}=Q),H=(0,h.A)(Q,vo)}else H=t.properties;var Y=[],X=function(e,t,r){return(0,d.isObject)(e)?Object.entries(e).map((e=>{var[n,o]=e,{contextNames:a,stateNames:i,formStateNames:s}=Mt(o);return(a||i||s)&&r.push({contextNames:a,stateNames:i,formStateNames:s,propName:n,propValue:o}),[n,wt(o,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===n?yt.USE_BRICK:yt.INITIAL})]})):[]}(H,k,Y),Z=t[Qt];Z&&X.push(...Z);var ee="script"===R;if(ee||"link"===R){var te=yield Lt(X);if(ee?te.src:"stylesheet"===te.rel&&te.href){var re,ne=null!==(re=window.PUBLIC_ROOT)&&void 0!==re?re:"";if(ee){var{src:oe}=te,ae=(0,h.A)(te,ho);yield Po((0,u.loadScript)(oe,ne,ae),"script",oe,"silent")}else{var{href:ie}=te;ae=(0,h.A)(te,mo),yield Po((0,u.loadStyle)(ie,ne,ae),"stylesheet",ie,"silent")}return g}}var se={tag:Vr.BRICK,type:z||R,return:e,slotId:l,events:t.events,runtimeContext:k,portal:t.portal,iid:t.iid,ref:t.ref};g.node=se;var le=(0,O.strictCollectMemberUsage)([t.events,t.lifeCycle],"PROCESSORS",2);le.size>0&&g.blockingList.push(Po((0,u.loadProcessorsImperatively)(le,Ha()),"processors",[...le].join(", "),n.unknownBricks));var ce=[],ue=function(){var e=(0,a.A)((function*(){se.properties=yield Lt(X),function(e,t){var r=function(t){var r=()=>{e.element&&Ft(e.element,{[t.propName]:t.propValue},e.runtimeContext)};if(t.contextNames)for(var n of t.contextNames)e.runtimeContext.ctxStore.onChange(n,r);if(t.stateNames){var o=Be(e.runtimeContext,"STATE",': "'.concat(t.propValue,'"'));for(var a of t.stateNames)o.onChange(a,r)}if(t.formStateNames){var i=Qe(e.runtimeContext,"FORM_STATE",': "'.concat(t.propValue,'"'));for(var s of t.formStateNames)i.onChange(s,r)}};for(var n of t)r(n)}(se,Y)}));return function(){return e.apply(this,arguments)}}();ce.push(ue()),n.registerBrickLifeCycle(se,t.lifeCycle);var de,pe=t;z?pe=to(z,t,se,X,n):R===no&&(pe=function(e,t,r,n,a){var i,s,l="string"==typeof e?JSON.parse(e):e,c=(0,m.uniqueId)("form-state-"),u=(0,o.A)((0,o.A)({},r.runtimeContext),{},{formStateStoreId:c});delete u.forEachItem,delete u.forEachIndex,delete u.tplStateStoreId;var p=new zn("FORM_STATE",void 0,a,c);u.formStateStoreMap.set(c,p),u.formStateStoreScope&&u.formStateStoreScope.push(p);var f=null!==(i=l.context)&&void 0!==i?i:[];f.some((e=>"params"===e.name))||f.push({name:"params"}),p.define(f,u,n);var v=io(l.formSchema,l.fields,c);return ao.includes(v.brick)&&t.events&&(v.events=function(e,t){var r=null!=e?e:{};for(var[n,o]of Object.entries(t))r[n]=(0,d.hasOwnProperty)(r,n)?[r[n],o].flat():o;return r}(v.events,t.events)),"boolean"!=typeof(null===(s=t.properties)||void 0===s?void 0:s.renderRoot)||t.properties.renderRoot?(0,o.A)((0,o.A)({},t),{},{slots:void 0,children:[{brick:"eo-micro-view",properties:{style:{padding:"12px"}},children:[v]}]}):(0,o.A)((0,o.A)({},t),{},{slots:void 0,children:[v]})}(W,t,se,X,n)),pe.portal&&(se.slotId=void 0),z?(delete(de=(0,o.A)({},k)).forEachItem,delete de.forEachIndex):de=k;var fe=function(){var e=(0,a.A)((function*(){var e=Oo(pe.children,pe.slots);if(e){var t=new Map,r=yield Promise.all(Object.entries(e).map(((e,r)=>{var[l,c]=e;if("routes"!==c.type)return Ao(se,c.bricks,de,n,i,s,l,v);var u=i[i.length-1];return null!=u&&u.incrementalSubRoutes&&(t.set(r,l),n.performIncrementalRender(c,i,function(){var e=(0,a.A)((function*(e,t){var{homepage:r}=de.app,{pathname:a}=e;if(!y(r,a)||!i.every((e=>{var n,o;return(n=Gt(e,r,t.pathname))&&(o=Gt(e,r,a))&&(e!==u||(0,m.isEqual)(n.params,o.params))})))return!1;var d,[p,f,v]=Co((0,o.A)((0,o.A)({},de),{},{location:e,query:new URLSearchParams(e.search)})),h=!1,g=[];try{if((d=yield go(se,c.routes,p,n,i,s,l,!0)).route){if(n.reBailout(d))return!0;g=[...f,...v],yield Io(d,p,[p.ctxStore,...g])}yield n.reMergeMenuRequestNodes(s,c.routes,d.menuRequestNode)}catch(e){console.error("Incremental sub-router failed:",e);var A=n.reCatch(e,se);if(!A)return!0;({failed:h,output:d}=A),yield n.reMergeMenuRequestNodes(s,c.routes,d.menuRequestNode)}if(n.reRender(l,[],d.node,se),!h)for(var b of(p.ctxStore.mountAsyncData(d.route),g))b.mountAsyncData();return!!d.route||null}));return function(t,r){return e.apply(this,arguments)}}())),go(se,c.routes,de,n,i,s,l)}))),l=(0,o.A)((0,o.A)({},g),{},{node:void 0,blockingList:[],menuRequestNode:void 0});r.forEach(((e,r)=>{t.has(r)&&n.memoize(t.get(r),[],e.node,se),Ro(l,e),function(e,t){var r=t.menuRequestNode;if(r)if(e.menuRequestNode){for(var n=e.menuRequestNode;n.sibling;)n=n.sibling;n.sibling=r}else e.menuRequestNode=r}(l,e)})),l.node&&(se.child=l.node),Ro(g,(0,o.A)((0,o.A)({},l),{},{node:void 0})),To(s,g.menuRequestNode=l.menuRequestNode)}}));return function(){return e.apply(this,arguments)}}();return ce.push(fe()),yield Promise.all(ce),g})),Eo.apply(this,arguments)}function So(){return(So=(0,a.A)((function*(e,t,r,n,a,i,s,l,c,u){var d={blockingList:[]},p=t.length;return(yield Promise.all(t.map(((t,d)=>Promise.all(r.map(((r,f)=>wo(e,r,(0,o.A)((0,o.A)({},n),{},{forEachItem:t,forEachIndex:d}),a,i,s,l,u.concat(d*p+f),c&&new Map(c))))))))).flat().forEach(((t,r)=>{t.hasTrackingControls&&a.memoize(l,u.concat(r),t.node,e),Ro(d,t)})),d}))).apply(this,arguments)}function ko(e){return[e.ctxStore,...e.tplStateStoreMap.values(),...e.formStateStoreMap.values()]}function Io(e,t,r){return(0,u.flushStableLoadBricks)(),Promise.all([...e.blockingList,...r.map((e=>e.waitForAll())),...t.pendingPermissionsPreCheck])}function Co(e){var t=[],r=[];return[(0,o.A)((0,o.A)({},e),{},{tplStateStoreScope:t,formStateStoreScope:r}),t,r]}function Ro(e,t){var{blockingList:r,node:n,menuRequestNode:o,hasTrackingControls:a}=t,i=(0,h.A)(t,po);if(e.blockingList.push(...r),n)if(e.node){for(var s=e.node;s.sibling;)s=s.sibling;s.sibling=n}else e.node=n;Object.assign(e,i)}function To(e,t){if(t)if(e.child){for(var r=e.child;r.sibling;)r=r.sibling;r.sibling=t}else e.child=t}function Oo(e,t){var r=t;if(Array.isArray(e)&&!r)for(var n of(r={},e)){var o,a=null!==(o=n.slot)&&void 0!==o?o:"";(0,d.hasOwnProperty)(r,a)||(r[a]={type:"bricks",bricks:[]}),r[a].bricks.push(n)}return r}function Po(e,t,r,n){return"silent"===n?e.catch((e=>{console.error('Load %s "%s" failed:',t,r,e)})):e}function _o(){if(!lo){if(lo={isInIframe:!1,isInIframeOfSameSite:!1,isInIframeOfNext:!1,isInIframeOfVisualBuilder:!1,isInIframeOfLegacyConsole:!1},window!==window.parent){lo.isInIframe=!0;try{if(window.origin===window.parent.origin){lo.isInIframeOfSameSite=!0;var e="/next/"===v(),t=window.parent.location.pathname,r=t.startsWith("/next/");lo.isInIframeOfNext=0==(Number(e)^Number(r)),lo.isInIframeOfVisualBuilder=t.startsWith("".concat(r?"/next":"","/visual-builder/")),lo.isInIframeOfLegacyConsole=e&&!r}}catch(e){}}Object.freeze(lo)}return lo}function Mo(e){var t;if(!e.$$registerCustomTemplateProcessed){e.$$registerCustomTemplateProcessed=!0;var r=null===(t=e.meta)||void 0===t?void 0:t.customTemplates;if(Array.isArray(r))for(var n of r){var o=n.name.includes(".")?n.name:"".concat(e.app.id,".").concat(n.name);xe.define(o,n)}}}function xo(){return xo=(0,a.A)((function*(e){if(!e.$$fulfilled)return e.$$fulfilling||(e.$$fulfilling=function(e){return Bo.apply(this,arguments)}(e)),e.$$fulfilling})),xo.apply(this,arguments)}function Bo(){return(Bo=(0,a.A)((function*(e){var t;yield null==Ca||null===(t=Ca.fulfilStoryboard)||void 0===t?void 0:t.call(Ca,e),L(e),Object.assign(e,{$$fulfilled:!0,$$fulfilling:null})}))).apply(this,arguments)}function Lo(e){var t;t="8.2"===e?"v8-2":"v8",document.documentElement.dataset.ui=t}var No="basic.show-watermark";function Uo(e,t){return e.get(jo(e,t))}function Fo(e,t,r){return e.set(jo(e,t),r),r}function jo(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var $o=new WeakMap,Do=new WeakMap,Ko=new WeakMap,Vo=new WeakMap,Wo=new WeakMap,Ho=new WeakMap,zo=new WeakMap,qo=new WeakMap,Go=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Xo=new WeakSet;class Zo{constructor(e){(0,i.A)(this,Xo),(0,l.A)(this,$o,void 0),(0,l.A)(this,Do,!1),(0,l.A)(this,Ko,void 0),(0,l.A)(this,Vo,void 0),(0,l.A)(this,Wo,void 0),(0,l.A)(this,Ho,void 0),(0,l.A)(this,zo,new Set),(0,l.A)(this,qo,0),(0,l.A)(this,Go,void 0),(0,l.A)(this,Jo,void 0),(0,l.A)(this,Qo,void 0),(0,l.A)(this,Yo,void 0),Fo($o,this,e);var t=C();window.addEventListener("beforeunload",(e=>{jo(Xo,this,ea).call(this,{})?(e.preventDefault(),e.returnValue=""):delete e.returnValue})),t.block(((e,t)=>jo(Xo,this,ea).call(this,{location:e,action:t})))}getRenderId(){return Uo(Go,this)}getRuntimeContext(){return Uo(Wo,this)}getRecentApps(){return{currentApp:Uo(Jo,this),previousApp:Uo(Qo,this)}}getNavConfig(){return Uo(Yo,this)}bootstrap(){var e=this;window.AbortController&&(co=new AbortController,R.http.interceptors.request.use((e=>{var t;return(0,o.A)((0,o.A)({},e),{},{options:(0,o.A)((0,o.A)({},e.options),{},{signal:null!==(t=e.options)&&void 0!==t&&t.noAbortOnRouteChange?null:co.signal})})})));var t=C();Fo(Ko,this,t.location);var r=0;return t.listen(function(){var t=(0,a.A)((function*(t,n){var a,i,s,l,c,u,d=++r,p={hash:void 0,state:void 0};if(void 0!==t.key&&("POP"!==n||void 0!==Uo(Ko,e).key&&!1!==(null===(a=Uo(Ko,e).state)||void 0===a?void 0:a.notify))||(p.key=void 0),((0,f.locationsAreEqual)((0,o.A)((0,o.A)({},Uo(Ko,e)),p),(0,o.A)((0,o.A)({},t),p))||"POP"!==n&&!1===(null===(i=t.state)||void 0===i?void 0:i.notify))&&(c=!0),c||null!==(s=t.state)&&void 0!==s&&s.noIncremental||(c=yield null===(u=Uo(Ho,e))||void 0===u?void 0:u.didPerformIncrementalRender(t,Uo(Ko,e))),r===d)if(c)Fo(Ko,e,t);else{if(co&&(co.abort(),co=new AbortController),Fo(Ko,e,t),null===(l=Uo(Ho,e))||void 0===l||l.dispatchPageLeave(),"POP"===n&&A(g(Uo($o,e),t.pathname)))return void window.location.reload();Uo(Do,e)?Fo(Vo,e,t):(W("locationChange"),jo(Xo,e,ra).call(e,t).catch(vr))}}));return function(e,r){return t.apply(this,arguments)}}()),jo(Xo,this,ra).call(this,t.location)}}function ea(e){var t,r=C(),n=r.getBlockMessage();null===(t=Uo(Ho,this))||void 0===t||t.dispatchBeforePageLeave(e);var o=r.getBlockMessage();return!n&&o&&r.unblock(),o}function ta(e,t,r){var n,o;if(Fo(qo,this,(n=Uo(qo,this),o=n++,n)),o>10){var a='Infinite redirect detected: from "'.concat(r.pathname).concat(r.search).concat(r.hash,'" to "').concat(e,'"');throw new Error(a)}C().replace(e,t)}function ra(e){return na.apply(this,arguments)}function na(){return(na=(0,a.A)((function*(e){Fo(Do,this,!0);try{yield jo(Xo,this,oa).call(this,e)}finally{if(Fo(Do,this,!1),Uo(Vo,this)){var t=Uo(Vo,this);Fo(Vo,this,void 0),yield jo(Xo,this,ra).call(this,t)}}}))).apply(this,arguments)}function oa(e){return aa.apply(this,arguments)}function aa(){return aa=(0,a.A)((function*(e){var t,r,n,i,s=this,l=Fo(Go,this,(0,m.uniqueId)("render-id-"));et=new WeakSet,nt.clear(),null==Ca||null===(t=Ca.flowApi)||void 0===t||t.clearCollectWidgetContract(),C().unblock();var c=null==Ca||null===(r=Ca.pageView)||void 0===r?void 0:r.create(),d=g(Uo($o,this),e.pathname),p=null===(n=Uo(Wo,this))||void 0===n?void 0:n.app,f=null==d||null===(i=d.app)||void 0===i?void 0:i.id;window.BOOTSTRAP_UNION_FILE&&f&&f!==(null==p?void 0:p.id)&&function(e){var{appId:t,version:r}=e;window.APP_ROOT_TPL&&(window.APP_ID=t,window.APP_ROOT=window.APP_ROOT_TPL.replace("{id}",t).replace("{version}",r))}({appId:f,version:d.app.currentVersion}),null!=d&&d.app&&(yield function(e){return xo.apply(this,arguments)}(d));var v=Fo(Jo,this,null==d?void 0:d.app);!function(){var e,t,r,n,a,i,s,l,c=ja().getFeatureFlags(),d=ja().getMiscSettings();if(c["show-watermark"]){var p="0.0.0"===(null===(e=window.APP_ROOT)||void 0===e||null===(e=e.match(/versions\/([^/]+)\//))||void 0===e?void 0:e[1])||"0.0.0"===(null===(t=window.APP_ROOT)||void 0===t||null===(t=t.match(/micro-apps\/(?:v2|v3)\/[^/]+\/([^/]+)/))||void 0===t?void 0:t[1]),f=null!==(r=null==Ca||null===(n=Ca.auth)||void 0===n||null===(n=n.getAuth())||void 0===n?void 0:n.username)&&void 0!==r?r:"",v=null!==(a=d.watermarkConfig)&&void 0!==a?a:{flags:{}},h=(0,o.A)({content:[..."string"==typeof v.content?[v.content]:null!==(i=v.content)&&void 0!==i?i:[],null!==(s=v.flags)&&void 0!==s&&s["show-development"]&&p?"Development":"",null!==(l=v.flags)&&void 0!==l&&l["show-user"]?f:""].filter(Boolean),zIndex:1001,width:200,font:{fontSize:28},gap:[190,190]},(0,m.omit)(v,["content","flags"]));uo?uo.resolve(h):(0,u.loadBricksImperatively)([No],Ha()).then((()=>{(uo=document.createElement(No)).resolve(h)}),(e=>{console.error("Load watermark service failed:",e)}))}}();var h,y=p&&v?p.id!==v.id:p!==v,A=ja().getFeatureFlags(),b=Uo(Ho,this),w=(t,r)=>{null==c||c({status:"redirected"}),Uo(zo,this).add(b),jo(Xo,this,ta).call(this,t,r,e)},E=()=>{var t=A["sso-enabled"]?"/sso-auth/login":"/auth/login";lr(e),w(t,{from:e})},S=document.querySelector("#main-mount-point"),k=document.querySelector("#portal-mount-point"),I={tag:Vr.ROOT,container:S,createPortal:k},T=()=>{var e;for(var t of(Wr(S),Wr(k),Uo(zo,this).add(b),Uo(zo,this)))t&&(t.dispatchOnUnmount(),t.dispose());Uo(zo,this).clear(),null==Ca||null===(e=Ca.messageDispatcher)||void 0===e||e.reset(),y&&(Fo(Qo,this,p),window.dispatchEvent(new CustomEvent("app.change",{detail:{previousApp:p,currentApp:v}})))};if(Z(v&&(oe()[v.id]||v.theme)||"light"),ie("default"),v){var O,P,_,M,x,B;null==Ca||null===(O=Ca.checkInstalledApps)||void 0===O||O.preCheckInstalledApps(d,(e=>!!Ja(e)));var L={bailout:e=>e.unauthenticated?(E(),!0):e.redirect?(w(e.redirect.path,e.redirect.state),!0):void Fo(qo,this,0),mergeMenus:(h=(0,a.A)((function*(e){var t=yield Promise.all(e);Fo(Yo,s,function(e){var t={breadcrumb:[]};for(var r of e){var{breadcrumb:n}=r;n&&(n.overwrite?t.breadcrumb=n.items:t.breadcrumb.push(...n.items))}return t}(t)),window.dispatchEvent(new CustomEvent("navConfig.change",{detail:Uo(Yo,s)}))})),function(e){return h.apply(this,arguments)}),catch:(t,r)=>{if(!ur(t)||window.NO_AUTH_GUARD){if(!(t instanceof R.HttpAbortError)){var n=ja().getMiscSettings().noAuthGuardLoginPath;return ur(t)&&n?void w(n,{from:e}):{failed:!0,output:{node:{tag:Vr.BRICK,type:"div",properties:{textContent:cr(t)},runtimeContext:null,return:r},blockingList:[],menuRequests:[]}}}Uo(zo,this).add(b)}else E()}},N=Fo(Ho,this,new ln("page",{routeHelper:L,renderId:l})),U=Fo(Wo,this,{app:v,location:e,query:new URLSearchParams(e.search),flags:A,sys:(0,o.A)((0,o.A)((0,o.A)({},null==Ca||null===(P=Ca.auth)||void 0===P?void 0:P.getAuth()),_o()),{},{settings:{brand:ja().getBrandSettings()}}),ctxStore:new zn("CTX",void 0,N),pendingPermissionsPreCheck:[null==Ca||null===(_=Ca.checkPermissions)||void 0===_?void 0:_.preCheckPermissions(d)],tplStateStoreMap:new Map,formStateStoreMap:new Map});Fo(Yo,this,void 0),Mo(d),me(null===(M=d.meta)||void 0===M?void 0:M.functions,v),null==Ca||null===(x=Ca.flowApi)||void 0===x||x.collectContract(null===(B=d.meta)||void 0===B?void 0:B.contracts);var F,j=!1,$=[];try{var D={};if(F=yield go(I,function(e){if(window.parent===window)return e;var t=e,r=(0,m.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/template-preview/")));t=[...t.slice(0,r+1),{path:"${APP.homepage}/_dev_only_/template-preview/:templateId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(r+1)];var n=(0,m.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/snippet-preview/")));return[...t.slice(0,n+1),{path:"${APP.homepage}/_dev_only_/snippet-preview/:snippetId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(n+1)]}(d.routes),U,N,[],D),L.bailout(F))return;$=ko(U),yield Io(F,U,$),D.child=F.menuRequestNode,N.setInitialMenuRequestNode(D),yield L.mergeMenus(N.getMenuRequests())}catch(e){console.error("Router failed:",e);var K=L.catch(e,I);if(!K)return;({failed:j,output:F}=K)}if(I.child=F.node,T(),F.route&&"routes"!==F.route.type||j){if(j||N.dispatchBeforePageLoad(),re(),le(),Lo(null==v?void 0:v.uiVersion),Hr(I),window.scrollTo(0,0),j)null==c||c({status:"failed"});else{for(var V of(N.dispatchPageLoad(),N.dispatchAnchorLoad(),N.dispatchOnMount(),N.initializeScrollIntoView(),N.initializeMediaChange(),N.initializeMessageDispatcher(),$))V.mountAsyncData();null==c||c({status:"ok",path:F.path,pageTitle:document.title})}return void W("rendered")}}else{if(!window.NO_AUTH_GUARD&&null!=Ca&&Ca.auth&&!Ca.auth.isLoggedIn())return void E();T()}re(),le();var H={tag:Vr.BRICK,type:"div",properties:{textContent:"Page not found"},runtimeContext:null,return:I};I.child=H,Hr(I),window.scrollTo(0,0),null==c||c({status:"not-found"}),W("rendered")})),aa.apply(this,arguments)}var ia="undefined"!=typeof BRICK_PACKAGES?BRICK_PACKAGES:null,sa=r(4579),la=r(4501),ca=2,ua=.16,da=.05,pa=.05,fa=.15,va=5,ha=4,ma=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ga(e){var t=e.r,r=e.g,n=e.b,o=(0,sa.wE)(t,r,n);return{h:360*o.h,s:o.s,v:o.v}}function ya(e){var t=e.r,r=e.g,n=e.b;return"#".concat((0,sa.Ob)(t,r,n,!1))}function Aa(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-ca*t:Math.round(e.h)+ca*t:r?Math.round(e.h)+ca*t:Math.round(e.h)-ca*t)<0?n+=360:n>=360&&(n-=360),n}function ba(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-ua*t:t===ha?e.s+ua:e.s+da*t)>1&&(n=1),r&&t===va&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function wa(e,t,r){var n;return(n=r?e.v+pa*t:e.v-fa*t)>1&&(n=1),Number(n.toFixed(2))}function Ea(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,la.RO)(e),o=va;o>0;o-=1){var a=ga(n),i=ya((0,la.RO)({h:Aa(a,o,!0),s:ba(a,o,!0),v:wa(a,o,!0)}));r.push(i)}r.push(ya(n));for(var s=1;s<=ha;s+=1){var l=ga(n),c=ya((0,la.RO)({h:Aa(l,s),s:ba(l,s),v:wa(l,s)}));r.push(c)}return"dark"===t.theme?ma.map((function(e){var n,o,a,i=e.index,s=e.opacity;return ya((n=(0,la.RO)(t.backgroundColor||"#141414"),a=100*s/100,{r:((o=(0,la.RO)(r[i])).r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b}))})):r}var Sa,ka,Ia,Ca,Ra={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ta={},Oa={};function Pa(e){return':root,\n[data-override-theme="light"] {\n'.concat(e,"}")}function _a(e){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(e,"}")}function Ma(e){return e.match(/[0-9a-fA-F]{2}/g).map((e=>parseInt(e,16))).join(", ")}function xa(e,t,r){return"dark"===t?Ea(e,{theme:t,backgroundColor:r})[5]:e}function Ba(e){var t=[];if(["light","dark"].forEach((r=>{if(e[r])switch(e.type){case"brandColor":t.push(function(e,t){return("dark"===e?_a:Pa)("string"==typeof(r=t)?" --color-brand: ".concat(r,";\n"):[" --color-brand: ".concat(r.default,";")," --color-brand-hover: ".concat(r.hover,";")," --color-brand-active: ".concat(r.active,";"),""].join("\n"));var r}(r,e[r]));break;case"baseColors":t.push(function(e,t,r){return("dark"===e?_a:Pa)("".concat(function(e,t){return Object.entries(e).flatMap((e=>{var[r,n]=e;return function(e){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e))throw new Error("Invalid base color name: ".concat(JSON.stringify(e)))}(r),n.map(((e,n)=>[" --palette-".concat(r,"-").concat(n+1,"-channel: ").concat(Ma(e),";")].concat("dark"===t?[]:" --palette-".concat(r,"-").concat(n+1,": rgb(var(--palette-").concat(r,"-").concat(n+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(e,t,r){return Object.fromEntries(Object.entries(e).map((e=>{var[n,o]=e;return[n,Ea(o,"dark"===t?{theme:t,backgroundColor:r}:void 0)]})))}(t,e,r),e),"\n").concat(function(e,t,r){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((n=>{var[o,a]=n;return[" --theme-".concat(o,"-color-rgb-channel: ").concat(Ma(xa(t[a],e,r)),";"),..."dark"===e?[]:[" --theme-".concat(o,"-color: var(--palette-").concat(a,"-6);")," --theme-".concat(o,"-border-color: var(--palette-").concat(a,"-3);")]," --theme-".concat(o,"-background: var(--palette-").concat(a,"-").concat("dark"===e?2:1,");"),""]})).join("\n")}(e,t,r)))}(r,e[r],e.backgroundColor));break;case"variables":t.push(function(e,t){return("dark"===e?_a:Pa)(function(e){return Object.entries(e).map((e=>{var[t,r]=e;return function(e){if(!/^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw new Error("Invalid css variable name: ".concat(JSON.stringify(e)))}(t)," ".concat(t,": ").concat(r,";")})).concat("").join("\n")}(t))}(r,e[r]))}})),t.length>0){var r=document.createElement("style");return r.textContent=t.join("\n\n"),document.head.appendChild(r),()=>{r.remove()}}}function La(e,t,r){return e.set(Ua(e,t),r),r}function Na(e,t){return e.get(Ua(e,t))}function Ua(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Fa(e){if(Sa)throw new Error("Cannot create multiple runtimes");return window.addEventListener("message",(e=>{var{data:t}=e;if((null==t?void 0:t.source)===$){var r=t.payload;switch(null==r?void 0:r.type){case D:V=r.active;break;case K:F=r.panel}}})),Ca=null==e?void 0:e.hooks,(0,c.initializeI18n)(ar,ir),p.locale(c.i18n.language),c.i18n.on("languageChanged",(()=>{p.locale(c.i18n.language)})),I(),Sa=new Va}Object.keys(Ra).forEach((function(e){Ta[e]=Ea(Ra[e]),Ta[e].primary=Ta[e][5],Oa[e]=Ea(Ra[e],{theme:"dark",backgroundColor:"#141414"}),Oa[e].primary=Oa[e][5]})),Ta.red,Ta.volcano,Ta.gold,Ta.orange,Ta.yellow,Ta.lime,Ta.green,Ta.cyan,Ta.blue,Ta.geekblue,Ta.purple,Ta.magenta,Ta.grey;var ja=function(){var e=k();if(e)return function(){return new Proxy(e.getRuntime(),{get(){switch(arguments.length<=1?void 0:arguments[1]){case"getCurrentApp":case"getRecentApps":case"hasInstalledApp":case"getDesktops":case"getLaunchpadSettings":case"getLaunchpadSiteMap":case"toggleLaunchpadEffect":case"applyPageTitle":case"getNavConfig":case"getFeatureFlags":case"getMiscSettings":case"getBrandSettings":return Reflect.get(...arguments)}}})}}()||function(){return Sa},$a=new WeakMap,Da=new WeakMap,Ka=new WeakSet;class Va{constructor(){(0,i.A)(this,Ka),(0,l.A)(this,$a,!1),(0,l.A)(this,Da,!1),(0,s.A)(this,"version",3)}initialize(e){var t;if(Na($a,this))throw new Error("The runtime cannot be initialized more than once");La($a,this,!0),function(e){if(Array.isArray(e.storyboards)){var t=function(){if(r.locales){var e="tmp/".concat(r.id);Object.entries(r.locales).forEach((t=>{var[r,n]=t;c.i18n.addResourceBundle(r,e,n)})),r.localeName=c.i18n.getFixedT(null,e)("name",r.name),Object.keys(r.locales).forEach((t=>{c.i18n.removeResourceBundle(t,e)}))}else r.localeName=r.name};for(var{app:r}of e.storyboards)t()}(0,d.isObject)(e.settings)&&(0,d.deepFreeze)(e.settings),e.brickPackages&&(0,d.deepFreeze)(e.brickPackages)}(e),ka=e;var r,{notification:n,dialog:a}=Ua(Ka,this,Wa).call(this);!1!==n&&(r=null!=n?n:"basic.show-notification",(0,this.loadBricks)([r]).then((()=>{pr=document.createElement(r)}),(e=>{console.error("Load notification service failed:",e)}))),!1!==a&&function(e,t){t([e]).then((()=>{Jt=document.createElement(e)}),(e=>{console.error("Load dialog service failed:",e)}))}(null!=a?a:"basic.show-dialog",this.loadBricks),function(e){e&&(e.brandColor?Ba((0,o.A)({type:"brandColor"},e.brandColor)):e.baseColors?Ba((0,o.A)({type:"baseColors"},e.baseColors)):e.variables&&Ba((0,o.A)({type:"variables"},e.variables)))}(null===(t=e.settings)||void 0===t||null===(t=t.misc)||void 0===t?void 0:t.theme)}bootstrap(e){var t=this;return(0,a.A)((function*(){if(e&&t.initialize(e),Na(Da,t))throw new Error("The runtime cannot be bootstrapped more than once");La(Da,t,!0),Ia=new Zo(ka.storyboards),yield Ia.bootstrap()}))()}getRecentApps(){var e,t;return null!==(e=null===(t=Ia)||void 0===t?void 0:t.getRecentApps())&&void 0!==e?e:{}}getCurrentApp(){var e;return null===(e=Ia)||void 0===e?void 0:e.getRecentApps().currentApp}hasInstalledApp(e,t){return Je(e,t)}getFeatureFlags(){var e,t;return(0,o.A)((0,o.A)((0,o.A)({},null===(e=ka)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.featureFlags),null===(t=Ia)||void 0===t||null===(t=t.getRecentApps().currentApp)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.featureFlags),{},{"migrate-to-brick-next-v3":!0})}getMiscSettings(){var e,t;return(0,o.A)((0,o.A)({},null===(e=ka)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.misc),null===(t=Ia)||void 0===t||null===(t=t.getRecentApps().currentApp)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.misc)}getBrandSettings(){var e;return(0,o.A)({base_title:"DevOps 管理专家"},null===(e=ka)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.brand)}getLaunchpadSettings(){var e;return(0,o.A)({columns:7,rows:4},null===(e=ka)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.launchpad)}getDesktops(){var e,t;return null!==(e=null===(t=ka)||void 0===t?void 0:t.desktops)&&void 0!==e?e:[]}getLaunchpadSiteMap(){var e,t;return null!==(e=null===(t=ka)||void 0===t?void 0:t.siteSort)&&void 0!==e?e:[]}toggleLaunchpadEffect(e){document.body.classList.toggle("launchpad-open",e)}applyPageTitle(e){var t=this.getBrandSettings().base_title;document.title=e?"".concat(e," - ").concat(t):t}getNavConfig(){var e;return null===(e=Ia)||void 0===e?void 0:e.getNavConfig()}loadBricks(e){return(0,u.loadBricksImperatively)(e,Ha())}}function Wa(){var e,t;return null!==(e=null===(t=ka)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.presetBricks)&&void 0!==e?e:{}}function Ha(){var e,t,r,n;return null!==(e=null!==(t=null!==(r=function(e,t){if(null==t||!t.length)return e;var r=new Map;return[...e,...t].forEach((e=>{var t=e.filePath.split("/")[1];r.set(t,e)})),Array.from(r.values())}(null===(n=ka)||void 0===n?void 0:n.brickPackages,window.PUBLIC_DEPS))&&void 0!==r?r:ia)&&void 0!==t?t:window.STANDALONE_BRICK_PACKAGES)&&void 0!==e?e:[]}function za(){var e;return null===(e=Ia)||void 0===e?void 0:e.getRenderId()}function qa(){var e;return null===(e=Ia)||void 0===e?void 0:e.getRuntimeContext()}function Ga(e){var t;return null===(t=ka)||void 0===t||null===(t=t.storyboards)||void 0===t?void 0:t.find((t=>t.app.id===e))}function Ja(e){var t;return null===(t=Ga(e))||void 0===t?void 0:t.app}function Qa(){for(var e,t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null==Ca||null===(e=Ca.auth)||void 0===e||null===(t=e.authenticate)||void 0===t||t.call(e,...n)}function Ya(){var e;return null==Ca||null===(e=Ca.auth)||void 0===e?void 0:e.getAuth()}function Xa(){var e,t;return null==Ca||null===(e=Ca.auth)||void 0===e||null===(t=e.logout)||void 0===t?void 0:t.call(e)}function Za(){var e;return null==Ca||null===(e=Ca.auth)||void 0===e?void 0:e.isLoggedIn()}function ei(e,t,r){return ti.apply(this,arguments)}function ti(){return(ti=(0,a.A)((function*(e,t,r){return it(yield Xe(e),e,"resolve",t,r)}))).apply(this,arguments)}function ri(e){var t,{portal:r,scope:n="fragment",unknownBricks:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r;t=r||(()=>((i=document.createElement("div")).style.position="absolute",i.style.width=i.style.height="0",document.body.append(i),i));var s,l,c=!1;return{render(r){var u=arguments;return(0,a.A)((function*(){var{theme:a,uiVersion:d,context:p,functions:f,templates:v,i18n:h}=u.length>1&&void 0!==u[1]?u[1]:{};if(c)throw new Error("The root is unmounted and cannot be rendered any more");var g=[].concat(r),y=s,A=(0,m.uniqueId)("render-id-");s=new ln(n,{unknownBricks:o,renderId:A});var b={ctxStore:new zn("CTX",void 0,s),pendingPermissionsPreCheck:[],tplStateStoreMap:new Map,formStateStoreMap:new Map},w={tag:Vr.ROOT,container:e,createPortal:t};if("page"===n){var E;Z(null!=a?a:"light"),ie("default"),Lo(d);var S={id:"demo",homepage:"/demo"};b.app=S;var k={app:S,meta:{i18n:h,customTemplates:v}};null===(E=l)||void 0===E||E(),l=L(k),Mo(k),me(f,S)}b.ctxStore.define(p,b);var I,C=!1,R=[];try{I=yield Ao(w,g,b,s,[],{}),R=ko(b),yield Io(I,b,R)}catch(e){C=!0,I={node:{tag:Vr.BRICK,type:"div",properties:{textContent:cr(e)},return:w,runtimeContext:null},blockingList:[]}}if(w.child=I.node,null==y||y.dispatchOnUnmount(),null==y||y.dispose(),Wr(e),i&&Wr(i),"page"===n&&(C||s.dispatchBeforePageLoad(),re(),le()),Hr(w),"page"===n&&window.scrollTo(0,0),!C){for(var T of R)T.mountAsyncData();"page"===n&&s.dispatchPageLoad(),s.dispatchOnMount(),s.initializeScrollIntoView(),s.initializeMediaChange(),s.initializeMessageDispatcher()}}))()},unmount(){c||(c=!0,Wr(e),i&&(Wr(i),r||i.remove()))}}}function ni(e){var{useRealTimeQuery:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.A)({},qa());t&&(r.query=new URLSearchParams(C().location.search));var n=t=>{if("string"==typeof t){if((0,T.isEvaluable)(t)){var o=mt(t,r);return tt(o),o}return(0,P.inject)(t,r)}return!(0,d.isObject)(t)||rt(e)?t:Array.isArray(t)?t.map((e=>n(e))):Object.fromEntries(Object.entries(t).map((e=>{var[t,r]=e;return[n(t),n(r)]})))};return n(e)}}}]);
2
- //# sourceMappingURL=8954.458a7fa9.js.map