@next-bricks/visual-builder 1.36.25 → 1.36.27
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.
- package/dist/bricks.json +23 -23
- package/dist/chunks/1045.f6e80fec.js +2 -0
- package/dist/chunks/{1045.b07d6bc1.js.map → 1045.f6e80fec.js.map} +1 -1
- package/dist/chunks/1122.ba17383d.js +2 -0
- package/dist/chunks/1122.ba17383d.js.map +1 -0
- package/dist/chunks/{114.429325c5.js → 114.aaa7c484.js} +2 -2
- package/dist/chunks/{114.429325c5.js.map → 114.aaa7c484.js.map} +1 -1
- package/dist/chunks/{1940.12b74fb1.js → 1940.94045d6e.js} +2 -2
- package/dist/chunks/{1940.12b74fb1.js.map → 1940.94045d6e.js.map} +1 -1
- package/dist/chunks/{2201.0a5797e4.js → 2201.21df7990.js} +2 -2
- package/dist/chunks/{2201.0a5797e4.js.map → 2201.21df7990.js.map} +1 -1
- package/dist/chunks/{2277.337070c4.js → 2277.73960d42.js} +2 -2
- package/dist/chunks/{4658.7c2c5ee7.js.map → 2277.73960d42.js.map} +1 -1
- package/dist/chunks/{2980.6d37f71e.js → 2980.778671d4.js} +2 -2
- package/dist/chunks/{2980.6d37f71e.js.map → 2980.778671d4.js.map} +1 -1
- package/dist/chunks/3171.5cd02271.js +2 -0
- package/dist/chunks/{3171.0a7855c3.js.map → 3171.5cd02271.js.map} +1 -1
- package/dist/chunks/{3933.3edb4523.js → 3933.21c52045.js} +2 -2
- package/dist/chunks/{6314.f577ecf7.js.map → 3933.21c52045.js.map} +1 -1
- package/dist/chunks/{4291.da2890c6.js → 4291.3c12fe9f.js} +2 -2
- package/dist/chunks/{4291.da2890c6.js.map → 4291.3c12fe9f.js.map} +1 -1
- package/dist/chunks/{4658.7c2c5ee7.js → 4658.758b09ca.js} +2 -2
- package/dist/chunks/{2277.337070c4.js.map → 4658.758b09ca.js.map} +1 -1
- package/dist/chunks/{4837.df6d466c.js → 4837.5f8d6dc7.js} +2 -2
- package/dist/chunks/{7218.f8cd78da.js.map → 4837.5f8d6dc7.js.map} +1 -1
- package/dist/chunks/5552.3773d6dd.js +2 -0
- package/dist/chunks/{5552.2814cc37.js.map → 5552.3773d6dd.js.map} +1 -1
- package/dist/chunks/{5559.46d76c74.js → 5559.5ea3e556.js} +3 -3
- package/dist/chunks/{5559.46d76c74.js.map → 5559.5ea3e556.js.map} +1 -1
- package/dist/chunks/6297.ce3c21bc.js +3 -0
- package/dist/chunks/6297.ce3c21bc.js.map +1 -0
- package/dist/chunks/{6314.f577ecf7.js → 6314.7cf962aa.js} +2 -2
- package/dist/chunks/{3933.3edb4523.js.map → 6314.7cf962aa.js.map} +1 -1
- package/dist/chunks/{6519.94d78769.js → 6519.11291cc6.js} +2 -2
- package/dist/chunks/{6519.94d78769.js.map → 6519.11291cc6.js.map} +1 -1
- package/dist/chunks/{7218.f8cd78da.js → 7218.a358e2b5.js} +2 -2
- package/dist/chunks/{4837.df6d466c.js.map → 7218.a358e2b5.js.map} +1 -1
- package/dist/chunks/{726.e407e050.js → 726.b2215460.js} +2 -2
- package/dist/chunks/726.b2215460.js.map +1 -0
- package/dist/chunks/7304.09d181ac.js +2 -0
- package/dist/chunks/{7304.12ca6e2d.js.map → 7304.09d181ac.js.map} +1 -1
- package/dist/chunks/7434.67a7c326.js +2 -0
- package/dist/chunks/{7434.4ddb3aab.js.map → 7434.67a7c326.js.map} +1 -1
- package/dist/chunks/7507.7e65daab.js +2 -0
- package/dist/chunks/{7507.c0a5c220.js.map → 7507.7e65daab.js.map} +1 -1
- package/dist/chunks/7643.da90fc6d.js +3 -0
- package/dist/chunks/{7643.32857740.js.map → 7643.da90fc6d.js.map} +1 -1
- package/dist/chunks/{7733.80dc8554.js → 7733.8b0e5606.js} +2 -2
- package/dist/chunks/{7733.80dc8554.js.map → 7733.8b0e5606.js.map} +1 -1
- package/dist/chunks/8081.cac28864.js +2 -0
- package/dist/chunks/8081.cac28864.js.map +1 -0
- package/dist/chunks/{8097.f37c5904.js → 8097.beaba572.js} +2 -2
- package/dist/chunks/{8097.f37c5904.js.map → 8097.beaba572.js.map} +1 -1
- package/dist/chunks/8989.0517d458.js +2 -0
- package/dist/chunks/{8989.74e3337d.js.map → 8989.0517d458.js.map} +1 -1
- package/dist/chunks/{9080.58f31ca3.js → 9080.7ef2b8f1.js} +2 -2
- package/dist/chunks/{9080.58f31ca3.js.map → 9080.7ef2b8f1.js.map} +1 -1
- package/dist/chunks/{9515.3823b0b7.js → 9515.80c4b472.js} +2 -2
- package/dist/chunks/{9515.3823b0b7.js.map → 9515.80c4b472.js.map} +1 -1
- package/dist/chunks/{9559.a13f579e.js → 9559.c6a42507.js} +2 -2
- package/dist/chunks/{9559.a13f579e.js.map → 9559.c6a42507.js.map} +1 -1
- package/dist/chunks/{batch-update-raw-data-generated-view.a164f520.js → batch-update-raw-data-generated-view.bc27d0ef.js} +3 -3
- package/dist/chunks/{batch-update-raw-data-generated-view.a164f520.js.map → batch-update-raw-data-generated-view.bc27d0ef.js.map} +1 -1
- package/dist/chunks/{chat-conversation.34898a33.js → chat-conversation.ede87265.js} +3 -3
- package/dist/chunks/{chat-conversation.34898a33.js.map → chat-conversation.ede87265.js.map} +1 -1
- package/dist/chunks/{chat-preview.e99e2848.js → chat-preview.15101f06.js} +3 -3
- package/dist/chunks/{chat-preview.e99e2848.js.map → chat-preview.15101f06.js.map} +1 -1
- package/dist/chunks/{check-editor-by-name.fcc2c37d.js → check-editor-by-name.d03a632d.js} +2 -2
- package/dist/chunks/{check-editor-by-name.fcc2c37d.js.map → check-editor-by-name.d03a632d.js.map} +1 -1
- package/dist/chunks/contract-select.26fce878.js +3 -0
- package/dist/chunks/{contract-select.cceb7453.js.map → contract-select.26fce878.js.map} +1 -1
- package/dist/chunks/{generate-snippets-context-menu.37335c3f.js → generate-snippets-context-menu.19b2db8f.js} +2 -2
- package/dist/chunks/{generate-snippets-context-menu.37335c3f.js.map → generate-snippets-context-menu.19b2db8f.js.map} +1 -1
- package/dist/chunks/{get-data-deps.c38a65f6.js → get-data-deps.24231f8f.js} +2 -2
- package/dist/chunks/{get-data-deps.c38a65f6.js.map → get-data-deps.24231f8f.js.map} +1 -1
- package/dist/chunks/{get-dependency-tree.c0af7e28.js → get-dependency-tree.f0dd3414.js} +2 -2
- package/dist/chunks/{get-dependency-tree.c0af7e28.js.map → get-dependency-tree.f0dd3414.js.map} +1 -1
- package/dist/chunks/{get-raw-data-system-prompts.75e39ffa.js → get-raw-data-system-prompts.e306ead0.js} +2 -2
- package/dist/chunks/{get-raw-data-system-prompts.75e39ffa.js.map → get-raw-data-system-prompts.e306ead0.js.map} +1 -1
- package/dist/chunks/{inject-chat-preview-agent.bd562547.js → inject-chat-preview-agent.e1897fcc.js} +2 -2
- package/dist/chunks/{inject-chat-preview-agent.bd562547.js.map → inject-chat-preview-agent.e1897fcc.js.map} +1 -1
- package/dist/chunks/main.7e154136.js +2 -0
- package/dist/chunks/main.7e154136.js.map +1 -0
- package/dist/chunks/{page-arch-node.65e9e884.js → page-arch-node.6b2ea1fe.js} +3 -3
- package/dist/chunks/{page-arch-node.65e9e884.js.map → page-arch-node.6b2ea1fe.js.map} +1 -1
- package/dist/chunks/{parse-path.8c76084b.js → parse-path.3150102e.js} +2 -2
- package/dist/chunks/{parse-path.8c76084b.js.map → parse-path.3150102e.js.map} +1 -1
- package/dist/chunks/{pre-generated-container.e3db46d5.js → pre-generated-container.2d973de8.js} +2 -2
- package/dist/chunks/{pre-generated-container.e3db46d5.js.map → pre-generated-container.2d973de8.js.map} +1 -1
- package/dist/chunks/{pre-generated-preview.40607780.js → pre-generated-preview.0cbd5b4e.js} +3 -3
- package/dist/chunks/{pre-generated-preview.40607780.js.map → pre-generated-preview.0cbd5b4e.js.map} +1 -1
- package/dist/chunks/{pre-generated-table-view.7b1dc979.js → pre-generated-table-view.5780ee3e.js} +2 -2
- package/dist/chunks/{pre-generated-table-view.7b1dc979.js.map → pre-generated-table-view.5780ee3e.js.map} +1 -1
- package/dist/chunks/{property-editor.b295b8e4.js → property-editor.1c969872.js} +2 -2
- package/dist/chunks/{property-editor.b295b8e4.js.map → property-editor.1c969872.js.map} +1 -1
- package/dist/chunks/{raw-data-preview.1f363728.js → raw-data-preview.fe46c777.js} +3 -3
- package/dist/chunks/{raw-data-preview.1f363728.js.map → raw-data-preview.fe46c777.js.map} +1 -1
- package/dist/chunks/workbench-action-list.e01c0110.js +2 -0
- package/dist/chunks/workbench-action-list.e01c0110.js.map +1 -0
- package/dist/chunks/{workbench-action.0d4aa2f1.js → workbench-action.8c7d1148.js} +3 -3
- package/dist/chunks/{workbench-action.0d4aa2f1.js.map → workbench-action.8c7d1148.js.map} +1 -1
- package/dist/chunks/workbench-history-action.8b1c5841.js +3 -0
- package/dist/chunks/{workbench-history-action.a83dcc98.js.map → workbench-history-action.8b1c5841.js.map} +1 -1
- package/dist/chunks/{workbench-pane.ebe65194.js → workbench-pane.c9d876e0.js} +3 -3
- package/dist/chunks/workbench-pane.c9d876e0.js.map +1 -0
- package/dist/chunks/workbench-sidebar.9e1ea9f1.js +2 -0
- package/dist/chunks/{workbench-sidebar.647c3683.js.map → workbench-sidebar.9e1ea9f1.js.map} +1 -1
- package/dist/chunks/{workbench-tree.f128149d.js → workbench-tree.ce12c809.js} +3 -3
- package/dist/chunks/{workbench-tree.f128149d.js.map → workbench-tree.ce12c809.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.39e2f9dd.js +2 -0
- package/dist/index.39e2f9dd.js.map +1 -0
- package/dist/manifest.json +105 -105
- package/dist/types.json +323 -323
- package/package.json +6 -6
- package/dist/chunks/1045.b07d6bc1.js +0 -2
- package/dist/chunks/1122.7e99ff7d.js +0 -2
- package/dist/chunks/1122.7e99ff7d.js.map +0 -1
- package/dist/chunks/3171.0a7855c3.js +0 -2
- package/dist/chunks/4586.6b85a822.js +0 -2
- package/dist/chunks/4586.6b85a822.js.map +0 -1
- package/dist/chunks/5552.2814cc37.js +0 -2
- package/dist/chunks/5832.7b134e89.js +0 -3
- package/dist/chunks/5832.7b134e89.js.map +0 -1
- package/dist/chunks/726.e407e050.js.map +0 -1
- package/dist/chunks/7304.12ca6e2d.js +0 -2
- package/dist/chunks/7434.4ddb3aab.js +0 -2
- package/dist/chunks/7507.c0a5c220.js +0 -2
- package/dist/chunks/7643.32857740.js +0 -3
- package/dist/chunks/790.ad2cdfc8.js +0 -2
- package/dist/chunks/790.ad2cdfc8.js.map +0 -1
- package/dist/chunks/8989.74e3337d.js +0 -2
- package/dist/chunks/contract-select.cceb7453.js +0 -3
- package/dist/chunks/main.317dc265.js +0 -2
- package/dist/chunks/main.317dc265.js.map +0 -1
- package/dist/chunks/workbench-action-list.6dfe4f95.js +0 -2
- package/dist/chunks/workbench-action-list.6dfe4f95.js.map +0 -1
- package/dist/chunks/workbench-history-action.a83dcc98.js +0 -3
- package/dist/chunks/workbench-pane.ebe65194.js.map +0 -1
- package/dist/chunks/workbench-sidebar.647c3683.js +0 -2
- package/dist/index.20dd929b.js +0 -2
- package/dist/index.20dd929b.js.map +0 -1
- /package/dist/chunks/{5559.46d76c74.js.LICENSE.txt → 5559.5ea3e556.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5832.7b134e89.js.LICENSE.txt → 6297.ce3c21bc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7643.32857740.js.LICENSE.txt → 7643.da90fc6d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{batch-update-raw-data-generated-view.a164f520.js.LICENSE.txt → batch-update-raw-data-generated-view.bc27d0ef.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.34898a33.js.LICENSE.txt → chat-conversation.ede87265.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.e99e2848.js.LICENSE.txt → chat-preview.15101f06.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.cceb7453.js.LICENSE.txt → contract-select.26fce878.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.65e9e884.js.LICENSE.txt → page-arch-node.6b2ea1fe.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.40607780.js.LICENSE.txt → pre-generated-preview.0cbd5b4e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.1f363728.js.LICENSE.txt → raw-data-preview.fe46c777.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.0d4aa2f1.js.LICENSE.txt → workbench-action.8c7d1148.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.a83dcc98.js.LICENSE.txt → workbench-history-action.8b1c5841.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.ebe65194.js.LICENSE.txt → workbench-pane.c9d876e0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.f128149d.js.LICENSE.txt → workbench-tree.ce12c809.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7643.32857740.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[7643],{264:(e,t,n)=>{function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function i(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var i=n.strict,s=void 0!==i&&i,a=n.start,c=void 0===a||a,l=n.end,u=void 0===l||l,d=n.encode,p=void 0===d?function(e){return e}:d,f=n.delimiter,h=void 0===f?"/#?":f,v=n.endsWith,m="[".concat(r(void 0===v?"":v),"]|$"),g="[".concat(r(h),"]"),w=c?"^":"",y=0,E=e;y<E.length;y++){var b=E[y];if("string"==typeof b)w+=r(p(b));else{var S=r(p(b.prefix)),A=r(p(b.suffix));if(b.pattern)if(t&&t.push(b),S||A)if("+"===b.modifier||"*"===b.modifier){var k="*"===b.modifier?"?":"";w+="(?:".concat(S,"((?:").concat(b.pattern,")(?:").concat(A).concat(S,"(?:").concat(b.pattern,"))*)").concat(A,")").concat(k)}else w+="(?:".concat(S,"(").concat(b.pattern,")").concat(A,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw new TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));w+="(".concat(b.pattern,")").concat(b.modifier)}else w+="(?:".concat(S).concat(A,")").concat(b.modifier)}}if(u)s||(w+="".concat(g,"?")),w+=n.endsWith?"(?=".concat(m,")"):"$";else{var I=e[e.length-1],C="string"==typeof I?g.indexOf(I[I.length-1])>-1:void 0===I;s||(w+="(?:".concat(g,"(?=").concat(m,"))?")),C||(w+="(?=".concat(g,"|").concat(m,")"))}return new RegExp(w,o(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<e.length;){var c=e.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;s+=e[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:s}),n=a}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),o=t.prefixes,i=void 0===o?"./":o,s=t.delimiter,a=void 0===s?"/#?":s,c=[],l=0,u=0,d="",p=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},h=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},v=function(e){var t=c[c.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=a;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(r(a),"]+?"):"(?:(?!".concat(r(n),")[^").concat(r(a),"])+?")};u<n.length;){var m=p("CHAR"),g=p("NAME"),w=p("PATTERN");if(g||w){var y=m||"";-1===i.indexOf(y)&&(d+=y,y=""),d&&(c.push(d),d=""),c.push({name:g||l++,prefix:y,suffix:"",pattern:w||v(y),modifier:p("MODIFIER")||""})}else{var E=m||p("ESCAPED_CHAR");if(E)d+=E;else if(d&&(c.push(d),d=""),p("OPEN")){y=h();var b=p("NAME")||"",S=p("PATTERN")||"",A=h();f("CLOSE"),c.push({name:b||(S?l++:""),pattern:b&&!S?v(y):S,prefix:y,suffix:A,modifier:p("MODIFIER")||""})}else f("END")}}return c}(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),o(n))}(e,t,n):i(e,t,n)}n.d(t,{MM:()=>s})},7643:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>Gt,Notification:()=>tn,StoryboardFunctionRegistryFactory:()=>fe,__secret_internals:()=>r,__test_only:()=>{},applyTheme:()=>te,authenticate:()=>ki,batchSetAppsLocalTheme:()=>ne,checkIfByTransform:()=>St,checkIfOfComputed:()=>bt,createHistory:()=>A,createRuntime:()=>fi,customEditors:()=>Ti,customProcessors:()=>x,customTemplates:()=>Pe,fetchByProvider:()=>_i,getAuth:()=>Ii,getBasePath:()=>f,getCssPropertyValue:()=>ce,getCurrentMode:()=>se,getCurrentTheme:()=>ee,getHistory:()=>k,getPageInfo:()=>co,getRealValue:()=>Mi,getRuntime:()=>hi,getV2RuntimeFromDll:()=>S,handleHttpError:()=>en,httpErrorToString:()=>Yt,instantiateModalStack:()=>Li,isLoggedIn:()=>Oi,isNetworkError:()=>fo,isUnauthenticatedError:()=>Xt,logout:()=>Ci,matchPath:()=>xt,registerWidgetFunctions:()=>$e,registerWidgetI18n:()=>N,resetReloadForError:()=>go,setUIVersion:()=>uo,shouldReloadForError:()=>mo,unstable_createRoot:()=>Pi});var r={};n.r(r),n.d(r,{addRealTimeDataInspectHook:()=>Rr,debugDataValue:()=>Ar,getAddedContracts:()=>Sr,getAllContextValues:()=>gr,getBrickPackagesById:()=>wr,getContextValue:()=>mr,getLegalRuntimeValue:()=>kr,getRenderId:()=>br,legacyDoTransform:()=>ar,loadBricks:()=>yr,loadEditors:()=>Er,mountUseBrick:()=>ir,renderUseBrick:()=>or,setRealTimeDataInspectRoot:()=>Or,symbolForRootRuntimeContext:()=>rr,unmountUseBrick:()=>sr,updateSnippetPreviewSettings:()=>hr,updateStoryboard:()=>cr,updateStoryboardByRoute:()=>lr,updateStoryboardBySnippet:()=>fr,updateStoryboardByTemplate:()=>ur,updateTemplatePreviewSettings:()=>dr});var o=n(4586),i=n(918),s=n(6121),a=n(829),c=n(413),l=n(2342),u=n(6878),d=n(155),p=(n(597),n(2890));function f(){const e=document.querySelector("base");return e?e.getAttribute("href"):"/"}var h=n(1030);function v(e,t){const n=(0,h.orderBy)(e,(e=>{var t,n;return null!==(t=null===(n=e.app.homepage)||void 0===n?void 0:n.length)&&void 0!==t?t:0}),"desc");for(const e of n){const n=e.app.homepage;if("string"==typeof n&&"/"===n[0]&&m(n,t))return e}}function m(e,t){return"/"===e?t===e:`${t.replace(/\/+$/,"")}/`.startsWith(`${e.replace(/\/+$/,"")}/`)}function g(e){var t;return!e||(null===(t=hi().getCurrentApp())||void 0===t?void 0:t.id)!==e.app.id&&!window.STANDALONE_MICRO_APPS&&e.app.standaloneMode}let w,y=!1;function E(e,t){y=!confirm(e),t(!y)}function b(e){const{push:t,replace:n}=e;function r(r){return function(o,i,s){let a;const c="string"==typeof o;return a=c?(0,p.parsePath)(o).pathname:o.pathname,"string"==typeof a&&a.startsWith("/")&&g(function(e){var t,n;return v(null!==(t=null===(n=li)||void 0===n?void 0:n.storyboards)&&void 0!==t?t:[],e)}(a))?location["push"===r?"assign":"replace"](c?f()+o.substring(1):e.createHref(o)):("push"===r?t:n)(o,i,s)}}return{push:r("push"),replace:r("replace")}}function S(){var e;const{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 A(){if(!w){const e=(0,p.createBrowserHistory)({basename:f().replace(/\/$/,""),getUserConfirmation:E});Object.assign(e,function(e){const{push:t,replace:n}=e;function r(e,n,r){y=!1,t(e,n),null==r||r(y)}function o(e,t,r){y=!1,n(e,t),null==r||r(y)}function i(t){return function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const{extraQuery:a,clear:c,keepHash:l,...u}=i,d=new URLSearchParams(c?"":e.location.search),p={};Object.assign(p,n,a);for(const[e,t]of Object.entries(p))if(Array.isArray(t)){d.delete(e);for(const n of t)d.append(e,n)}else null==t||""===t?d.delete(e):d.set(e,t);("push"===t?r:o)(`?${d.toString()}${l?e.location.hash:""}`,u,s)}}let s;return{pushQuery:i("push"),replaceQuery:i("replace"),pushAnchor:function(t,n,o){r({...e.location,key:void 0,hash:t,state:{notify:!1,...n}},void 0,o)},reload:function(t){o({...e.location,state:{...e.location.state,notify:!0,noIncremental:!0}},void 0,t)},setBlockMessage:function(e){s=e},getBlockMessage:function(){return s},unblock:function(){s=void 0},...b({...e,push:r,replace:o})}}(e)),w=e}return w}const k=function(){const e=S();if(e)return e.getHistory}()||function(){return w};var I=n(4635),C=n(2559),O=n(9171),R=n(5585),T=n(3633),_=n(7939),P=n(4104),M=new WeakMap;const x=function(){const e=S();if(e)return Object.freeze({define:(t,n)=>e.getRuntime().registerCustomProcessor(t,n)})}()||new class{constructor(){(0,i.A)(this,M,new Map)}define(e,t){const[n,r]=e.split(".");let o=(0,a.A)(M,this).get(n);if(o||(o=new Map,(0,a.A)(M,this).set(n,o)),o.has(r))throw new Error(`Custom processor of "${e}" already registered`);o.set(r,t)}get(e){return(0,a.A)(M,this).get(e)}};function L(e){let{app:t,meta:n}=e;if(null!=n&&n.i18n){const e=B("app",t.id),r=[];return Object.entries(n.i18n).forEach((t=>{let[n,o]=t;c.i18n.addResourceBundle(n,e,o),r.push(n)})),()=>{for(const t of r)c.i18n.removeResourceBundle(t,e)}}}function B(e,t){return`${e}/${t}`}function $(e){return c.i18n.getFixedT(null,B("widget",e))}const N=function(){const e=S();if(e)return function(t,n){return e.getRuntime().registerWidgetI18n(t,n)}}()||function(e,t){const n=B("widget",e);Object.entries(t).forEach((e=>{let[t,r]=e;c.i18n.addResourceBundle(t,n,r)}))},U="brick-next-devtools-panel",F="devtools-frame-active-change",D="devtools-panel-change";let j,K=!0;function V(e,t){const n=W();if(!n||"evaluation"===e&&(!K||j&&"Evaluations"!==j))return;const r=()=>{var r;null===(r=n.emit)||void 0===r||r.call(n,{type:e,payload:t})};"function"==typeof window.requestIdleCallback?window.requestIdleCallback(r):setTimeout(r,0)}function W(){return window.__BRICK_NEXT_DEVTOOLS_HOOK__}const H=()=>{throw new Error("Can't modify read-only proxy object")},z={set:H,defineProperty:H,deleteProperty:H,setPrototypeOf:H};function G(e){return new Proxy(e,z)}function q(e){let{get:t,ownKeys:n}=e;return W()?G(Object.fromEntries(n(null).map((e=>[e,t(null,e,null)])))):new Proxy(Object.freeze({}),{get:t})}let Y="light";const X=new u.JsonStorage(localStorage),J="apps-theme";function Q(e){if("dark"!==e&&"light"!==e&&"dark-v2"!==e)throw new Error(`Unsupported theme: ${e}`);Y=e}function Z(){return Y}function ee(){return document.documentElement.dataset.theme}function te(e){e?Q(e):e=Z(),e!==ee()&&(document.documentElement.dataset.theme=e,window.dispatchEvent(new CustomEvent("theme.change",{detail:e})))}function ne(e){X.setItem(J,{...re(),...e})}function re(){var e;let t;try{t=X.getItem(J)}catch{console.error("JSON parse error inside `getLocalAppsTheme()`")}return null!==(e=t)&&void 0!==e?e:{}}let oe="default";function ie(e){if("dashboard"!==e&&"default"!==e)throw new Error(`Unsupported mode: ${e}`);oe=e}function se(){return document.documentElement.dataset.mode}function ae(e){e?ie(e):e=oe,e!==se()&&(document.documentElement.dataset.mode=e,window.dispatchEvent(new CustomEvent("mode.change",{detail:e})))}function ce(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return n&&(null===(t=window.getComputedStyle(n))||void 0===t?void 0:t.getPropertyValue(e))||""}function le(e,t){const n={};for(const r of e){const e=ue(r,t);void 0!==e&&(n[r]=e)}return n}function ue(e,t){var n,r,o;let{collectCoverage:i,widgetId:s,widgetVersion:a,app:l,appendI18nNamespace:u,storyboardFunctions:d,isStoryboardFunction:p}=t;switch(e){case"BASE_URL":return i?"/next":f().replace(/\/$/,"");case"FN":return d;case"IMG":return i?{get:e=>`mock/images/${e}`}:s?null==pi||null===(n=pi.images)||void 0===n?void 0:n.widgetImagesFactory(s,a):null==pi||null===(r=pi.images)||void 0===r?void 0:r.imagesFactory(l.id,l.isBuildPush,l.currentVersion);case"I18N":return i?h.identity:s?$(s):c.i18n.getFixedT(null,[u,B("app",l.id)].filter(Boolean));case"I18N_TEXT":return i?de:c.i18nText;case"PERMISSIONS":return G({check:i?pe:null==pi||null===(o=pi.checkPermissions)||void 0===o?void 0:o.checkPermissions});case"THEME":return G({getTheme:i?()=>"light":Z,getCssPropertyValue:i?()=>"":ce});case"console":return p?G(console):void 0;case"location":return i?{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 de(e){return null==e?void 0:e.en}function pe(){return!0}function fe(){let{widgetId:e,widgetVersion:t,collectCoverage:n,debuggerOverrides:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map,i=null==r?void 0:r({precookFunction:R.precookFunction,cook:R.cook,supply:P.supply}),s=new Proxy(Object.freeze({}),{get:(e,t)=>function(e){const t=o.get(e);if(!t)return;if(t.processed)return t.cooked;let s;n&&(s=n.createCollector(e));const a=!i&&!s&&t.transformed;if(a){const e=c(a.globals);t.cooked=new Function(...a.globals,`"use strict";return (${a.source})`)(...a.globals.map((t=>(0,u.hasOwnProperty)(e,t)?e[t]:void 0)))}else{const e=(0,R.precookFunction)(t.source,{typescript:t.typescript,hooks:s&&{beforeVisit:s.beforeVisit},cacheKey:t}),n=c(e.attemptToVisitGlobals);t.cooked=(0,R.cook)(e.function,t.source,{rules:{noVar:!0},globalVariables:i?{...n,...null!=i&&i.LodashWithStaticFields&&e.attemptToVisitGlobals.has("_")?{_:{...n._,...i.LodashWithStaticFields}}:null,...null!=i&&i.ArrayConstructor&&e.attemptToVisitGlobals.has("Array")?{Array:i.ArrayConstructor}:null,...null!=i&&i.ObjectWithStaticFields&&e.attemptToVisitGlobals.has("Object")?{Object:{...n.Object,...i.ObjectWithStaticFields}}:null}:n,ArrayConstructor:null==i?void 0:i.ArrayConstructor,hooks:s&&{beforeEvaluate:s.beforeEvaluate,beforeCall:s.beforeCall,beforeBranch:s.beforeBranch},debug:!!r})}return t.processed=!0,t.cooked}(t)});let a;function c(r){return(0,P.supply)(r,le(r,{collectCoverage:n,widgetId:e,widgetVersion:t,app:a,storyboardFunctions:s,isStoryboardFunction:!0}),!!n)}return{storyboardFunctions:s,registerStoryboardFunctions:function(e,t){if(t&&(a=t),o.clear(),Array.isArray(e))for(const t of e){var r;let e=t.deps;null==e&&(e=(0,T.collectMemberUsageInFunction)(t,"FN",!!n),e.delete(t.name));const i=null!==(r=t.perm)&&void 0!==r?r:(0,T.collectMemberUsageInFunction)(t,"PERMISSIONS",!!n).has("check");o.set(t.name,{source:t.source,typescript:t.typescript,transformed:t.transformed,deps:e,hasPermissionsCheck:i})}},updateStoryboardFunction(e,t){const n={...t,name:e},r=(0,T.collectMemberUsageInFunction)(n,"FN",!0),i=(0,T.collectMemberUsageInFunction)(n,"PERMISSIONS",!0).has("check");o.set(e,{source:t.source,typescript:t.typescript,transformed:t.transformed,deps:r,hasPermissionsCheck:i})},checkPermissionsUsage(e){const t=new Set,n=e=>{if(!t.has(e)){t.add(e);const r=o.get(e);return!!r&&(r.hasPermissionsCheck||[...r.deps].some(n))}return!1};return e.some(n)},clearGlobalExecutionContextStack(){(0,R.__dev_only_clearGlobalExecutionContextStack)()},getGlobalExecutionContextStack:()=>(0,R.__dev_only_getGlobalExecutionContextStack)()}}const{storyboardFunctions:he,registerStoryboardFunctions:ve,checkPermissionsUsage:me}=fe();var ge={};try{ge.EventTarget=(new EventTarget).constructor}catch(e){!function(e,t){var n=e.create,r=e.defineProperty,o=i.prototype;function i(){t.set(this,n(null))}function s(e,t,n){r(e,t,{configurable:!0,writable:!0,value:n})}function a(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}s(o,"addEventListener",(function(e,n,r){for(var o=t.get(this),i=o[e]||(o[e]=[]),s=0,a=i.length;s<a;s++)if(i[s].listener===n)return;i.push({target:this,listener:n,options:r})})),s(o,"dispatchEvent",(function(e){var n=t.get(this)[e.type];return n&&(s(e,"target",this),s(e,"currentTarget",this),n.slice(0).some(a,e),delete e.currentTarget,delete e.target),!0})),s(o,"removeEventListener",(function(e,n){for(var r=t.get(this),o=r[e]||(r[e]=[]),i=0,s=o.length;i<s;i++)if(o[i].listener===n)return void o.splice(i,1)})),ge.EventTarget=i}(Object,new WeakMap)}const we=ge.EventTarget;let ye=function(e){return e.xLarge="xLarge",e.large="large",e.medium="medium",e.small="small",e.xSmall="xSmall",e}({});const Ee=new Map([[ye.xLarge,"1920px"],[ye.large,"1600px"],[ye.medium,"1280px"],[ye.small,"1024px"],[ye.xSmall,0]]),be=new we,Se={},Ae={};function ke(e,t){let n=!1;Se[t]=e.matches;for(const[e]of Ee)if(Se[e]&&Ae.breakpoint!==e){Ae.breakpoint=e,n=!0;break}n&&be.dispatchEvent(new CustomEvent("change",{detail:Ae}))}Ee.forEach(((e,t)=>{const n=window.matchMedia(`(min-width: ${e})`);ke(n,t),n.addEventListener?n.addEventListener("change",(e=>{ke(e,t)})):n.addListener((e=>{ke(e,t)}))}));const Ie=()=>Ae;function Ce(e){return function(t){var n;const r="local"===e?localStorage:sessionStorage;return JSON.parse(null!==(n=r.getItem(t))&&void 0!==n?n:"null")}}function Oe(e){var t,n;return!(null===(t=e?e.flags:null===(n=hi())||void 0===n?void 0:n.getFeatureFlags())||void 0===t||!t["brick-next-v3-strict-mode"])}function Re(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];const i=0===r.length?"":",";e?console.error(`${t} is dropped in v3 strict mode${i}`,...r):console.warn(`${t} is deprecated in v3 and will be dropped in strict mode${i}`,...r)}const Te=new Set(["prefix"]);var _e=new WeakMap;const Pe=function(){const e=S();if(e)return Object.freeze({define:(t,n)=>e.getRuntime().registerCustomTemplate(t,n)})}()||new class{constructor(){(0,i.A)(this,_e,new Map)}define(e,t){var n,r,o,i;let s=(0,a.A)(_e,this).has(e);s?console.warn(`Custom template of "${e}" already registered.`):(s=!!customElements.get(e),s&&console.warn(`Custom template of "${e}" already defined by customElements.`));const c=Oe(),l=null!==(n=null===(r=t.proxy)||void 0===r?void 0:r.properties)&&void 0!==n?n:{},u=[],d=[];for(const[t,n]of Object.entries(l))n.asVariable?(Re(c,"Template `asVariable`",e,t),c||d.push(t)):n.mergeProperty||n.refTransform?console.error("Template `mergeProperty` and `refTransform` are dropped in v3:",e,t):n.ref&&u.push([t,n]);const p={...t,proxy:{...t.proxy,properties:Object.fromEntries(u)},state:(t.state?c?t.state:t.state.map((e=>({expose:!0,...e}))):[]).concat(d.map((e=>({name:e,expose:!0}))))};(0,a.A)(_e,this).set(e,{...p,name:e});const f=(v=p.state,(0,h.uniq)(null!==(m=null==v?void 0:v.filter((e=>e.expose)).map((e=>e.name)))&&void 0!==m?m:[]));var v,m;const g=Object.entries(null!==(o=null===(i=p.proxy)||void 0===i?void 0:i.methods)&&void 0!==o?o:{}),w=f.concat(u.map((e=>e[0]))),y=g.map((e=>e[0])),E=w.concat(y).filter((e=>e in HTMLElement.prototype&&!Te.has(e)));if(E.length>0&&(Re(c,"Using native HTMLElement properties as template properties or methods",e,...E),c))throw new Error(`In custom template "${e}", ${E.map((e=>`"${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 w}static get _dev_only_definedMethods(){return y}$$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(){let e=this.shadowRoot;e||(e=this.attachShadow({mode:"open"}));const t=document.createDocumentFragment(),n=document.createElement("style");n.textContent=":host{display:block}:host([hidden]){display:none}";const r=document.createElement("slot");t.appendChild(n),t.appendChild(r),e.appendChild(t)}disconnectedCallback(){this.shadowRoot&&(this.shadowRoot.textContent="")}}for(const n of f)u.some((e=>e[0]===n))?console.error(`Cannot define an exposed state that is also a proxy property: "${n}" in ${e}`):Object.defineProperty(t.prototype,n,{get(){return this.$$tplStateStore.getValue(n)},set(e){var t;null===(t=this.$$tplStateStore)||void 0===t||t.updateValue(n,e,"replace")},enumerable:!0});for(const[e,n]of u)Object.defineProperty(t.prototype,e,{get(){var t;return this.$$getElementByRef(n.ref)[null!==(t=n.refProperty)&&void 0!==t?t:e]},set(t){var r;const o=null===(r=this.$$getElementByRef)||void 0===r?void 0:r.call(this,n.ref);var i;o&&(o[null!==(i=n.refProperty)&&void 0!==i?i:e]=t)},enumerable:!0});for(const[e,n]of g)Object.defineProperty(t.prototype,e,{value(){var t;return this.$$getElementByRef(n.ref)[null!==(t=n.refMethod)&&void 0!==t?t:e](...arguments)},enumerable:!0});customElements.define(e,t)}}get(e){return(0,a.A)(_e,this).get(e)}};function Me(e,t,n){let{tplStateStoreId:r,tplStateStoreMap:o}=e;if(!r)throw new Error(`Using "${t}" outside of a custom template${null!=n?n:""}`);const i=o.get(r);if(!i)throw new Error(`Template state store is not found when using "${t}"${null!=n?n:""}.\nThis is a bug of Brick Next, please report it.`);return i}function xe(e,t,n){const r=Me(e,t,n).hostBrick.element;if(!r)throw new Error(`Template host element is gone when using "${t}"${null!=n?n:""}.\nThis is a bug of Brick Next, please report it.`);return r}const Le=new Map,Be=new Proxy(Object.freeze({}),{get:(e,t)=>Le.get(t)}),$e=function(){const e=S();if(e)return function(t,n,r){return e.getRuntime().registerWidgetFunctions(t,n,r)}}()||function(e,t,n){if(Le.has(e))throw new Error(`Widget functions of "${e}" already registered`);const{storyboardFunctions:r,registerStoryboardFunctions:o}=fe({widgetId:e,widgetVersion:n});Le.set(e,r),o(t)},Ne=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Ue=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(Ne);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Fe=e=>"*"===e||"x"===e||"X"===e,De=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},je=(e,t)=>{if(Fe(e)||Fe(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(De(e),De(t));return n>r?1:n<r?-1:0},Ke=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=je(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},Ve=(e,t,n)=>{ze(n);const r=((e,t)=>{const n=Ue(e),r=Ue(t),o=n.pop(),i=r.pop(),s=Ke(n,r);return 0!==s?s:o&&i?Ke(o.split("."),i.split(".")):o||i?o?-1:1:0})(e,t);return We[n].includes(r)},We={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},He=Object.keys(We),ze=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===He.indexOf(e))throw new Error(`Invalid operator, expected one of ${He.join("|")}`)};function Ge(e,t){let n=Ai(e);if(!n&&null!=pi&&pi.checkInstalledApps&&(n=pi.checkInstalledApps.getCheckedApp(e)),!n||"running"===n.installStatus)return!1;if(!t||!n.currentVersion)return!0;const r=t.match(/^([><]=?|=)(.*)$/);try{if(!r)throw new TypeError(`Invalid match version: ${t}`);return Ve(n.currentVersion,r[2],r[1])}catch(e){console.error(e)}return!1}function qe(e,t,n){let{formStateStoreId:r,formStateStoreMap:o}=e;if(!r)throw new Error(`Using "${t}" outside of form renderer${null!=n?n:""}`);const i=o.get(r);if(!i)throw new Error(`Form state store is not found when using "${t}"${null!=n?n:""}.\nThis is a bug of Brick Next, please report it.`);return i}const Ye=new Map;async function Xe(e){var t;const n=null==pi||null===(t=pi.flowApi)||void 0===t?void 0:t.isFlowApiProvider(e);n&&(e=pi.flowApi.FLOW_API_PROVIDER);let r=Ye.get(e);if(r)return r;if(e.includes("-")&&!customElements.get(e))if(n)pi.flowApi.registerFlowApiProvider();else if(await(0,l.loadBricksImperatively)([e],wi()),!customElements.get(e))throw new Error(`Provider not defined: "${e}".`);return r=document.createElement(e),Ye.set(e,r),r}let Je=new WeakSet;function Qe(e){if((0,u.isObject)(e)&&!Ze(e))if(Je.add(e),Array.isArray(e))e.forEach(Qe);else{const t=Object.getPrototypeOf(e);t&&t.constructor!==Object||Object.values(e).forEach(Qe)}}function Ze(e){return Je.has(e)}const et=new Map;async function tt(e,t,n){const{useProvider:r,method:o="resolve",args:i=[],onReject:s}=e,{provider:a,field:c}=e;if(a&&!r)throw new Error(`You're using "provider: ${a}" which is dropped in v3, please use "useProvider" instead`);const l=null!=c;if(l){const e=Oe();if(Re(e,"`resolve.field`"),e)throw new Error("Using deprecated `resolve.field`")}const[u,d]=await Promise.all([Xe(r),vt(i,t)]),p=null==n?void 0:n.renderId,f=nt(u,r,o,d,n,i,!!p&&p!==Ei());let v,{transform:m}=e;try{const e=await f;v=l?(0,h.get)(e,c):e,Qe(v)}catch(e){if(!function(e){return!(null==e||!e.transform)}(s))throw e;m=s.transform,v=e}return m?"string"==typeof m?{[m]:v}:vt(m,{...t,data:v}):v}async function nt(e,t,n,r,o,i,s){let a,c;try{a=JSON.stringify({useProvider:t,method:n,args:r})}catch(e){if(!i)throw e;a=JSON.stringify({useProvider:t,method:n,originalArgs:i})}return"reload"!==(null==o?void 0:o.cache)&&(c=et.get(a)),c||(c=(async o=>{const i=null!=pi&&null!==(o=pi.flowApi)&&void 0!==o&&o.isFlowApiProvider(t)?await pi.flowApi.getArgsOfFlowApi(t,r,n):r;return e[n](...i)})(),s||et.set(a,c)),c}const rt=Symbol.for("pre.evaluated.raw"),ot=Symbol.for("pre.evaluated.context");function it(e){return!(null==e||!e[rt])}function st(e){return e[rt]}function at(e){return"string"==typeof e?(0,R.shouldAllowRecursiveEvaluations)(e):(0,R.shouldAllowRecursiveEvaluations)(e[rt])}const ct=new WeakSet([SyntaxError,TypeError,ReferenceError]);function lt(e){return ct.has(e.constructor)?e.constructor:TypeError}function ut(e,t,n){const{run:r}=dt(e,t,n,!1);return r()}function dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;const o=[];if("string"!=typeof e){const n=(0,h.omit)(t,["pendingPermissionsPreCheck","tplStateStoreMap","tplStateStoreScope","formStateStoreMap","formStateStoreScope"]);t={...e[ot],...n},e=e[rt]}const i={usedArgs:new Set},s={usedArgs:new Set};let a;try{a=(0,R.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,t){(0,T.collectAppGetMenuUsage)(i,e,t),(0,T.collectInstalledAppsHasUsage)(s,e,t)}}})}catch(t){const n=`${t.message}, in "${e}"`;throw new(lt(t))(n)}if(i.hasNonStaticUsage)throw new Error(`Non-static usage of "APP.getMenu" is prohibited in v3, check your expression: "${e}"`);if(s.hasNonStaticUsage)throw new Error(`Non-static usage of "INSTALLED_APPS.has" is prohibited in v3, check your expression: "${e}"`);const c={},{attemptToVisitGlobals:d}=a;if(n.lazy||d.has("EVENT")&&!(0,u.hasOwnProperty)(t,"event")||d.has("DATA")&&!(0,u.hasOwnProperty)(t,"data"))return{blockingList:o,run:()=>Object.keys(t).length>0?{[rt]:e,[ot]:t}:e};let p,f,v,m;const g=Oe(t);let w,y;(d.has("STATE")||!g&&d.has("TPL"))&&(m=Me(t,"STATE",`: "${e}"`)),d.has("FORM_STATE")&&(y=qe(t,"FORM_STATE",`: "${e}"`));const E=W();if(r||E){if(d.has("CTX")&&(p=(0,T.strictCollectMemberUsage)(e,"CTX"),r&&o.push(t.ctxStore.waitFor(p))),m){if(v=(0,T.strictCollectMemberUsage)(e,"STATE"),!g){const t=(0,T.strictCollectMemberUsage)(e,"TPL");for(const e of t)v.add(e)}r&&o.push(m.waitFor(v))}y&&(w=(0,T.strictCollectMemberUsage)(e,"FORM_STATE"),r&&o.push(y.waitFor(w))),d.has("PROCESSORS")&&(f=(0,T.strictCollectMemberUsage)(e,"PROCESSORS",2),r&&o.push((0,l.loadProcessorsImperatively)(f,wi())))}if(r){let n=d.has("PERMISSIONS");if(!n&&d.has("FN")){const t=[...(0,T.strictCollectMemberUsage)(e,"FN")];n=me(t)}if(n&&o.push(...t.pendingPermissionsPreCheck),i.usedArgs.size>0&&null!=pi&&pi.menu){const e=[...i.usedArgs];o.push(Promise.all(e.map((e=>pi.menu.fetchMenuById(e,t,{getStoryboardByAppId:Si,resolveData:tt,asyncComputeRealValue:vt})))))}var b;s.usedArgs.size>0&&o.push(null==pi||null===(b=pi.checkInstalledApps)||void 0===b?void 0:b.waitForCheckingApps([...s.usedArgs]))}return{blockingList:o,run(){var n,r,o,i;const{app:s,location:l,query:E,match:b,flags:S,sys:A,ctxStore:k,data:I,event:C}=t,O=null!==(n=t.overrideApp)&&void 0!==n?n:s;for(const n of d)switch(n){case"ANCHOR":c[n]=l.hash?l.hash.substring(1):null;break;case"APP":if(null==O)throw new ReferenceError(`APP is not defined, in "${e}"`);c[n]={...(0,h.cloneDeep)(O),getMenu:null==pi||null===(r=pi.menu)||void 0===r?void 0:r.getMenuById};break;case"CTX":c[n]=q({get:(e,t)=>k.getValue(t),ownKeys:()=>Array.from(p)});break;case"DATA":c[n]=I;break;case"EVENT":c[n]=C;break;case"FLAGS":c[n]=G(S);break;case"FORM_STATE":c[n]=q({get:(e,t)=>y.getValue(t),ownKeys:()=>Array.from(w)});break;case"HASH":c[n]=l.hash;break;case"INSTALLED_APPS":c[n]=G({has:Ge});break;case"ITEM":case"INDEX":case"SIZE":{const r="ITEM"===n?"forEachItem":"INDEX"===n?"forEachIndex":"forEachSize";(0,u.hasOwnProperty)(t,r)?c[n]=t[r]:console.error(`Using \`${n}\` but no \`:forEach\` is found, check your expression: "${e}"`);break}case"LOCAL_STORAGE":c[n]=G({getItem:Ce("local")});break;case"MEDIA":c[n]=G(Ie());break;case"MISC":c[n]=hi().getMiscSettings();break;case"PARAMS":if(null==E)throw new ReferenceError(`PARAMS is not defined, in "${e}"`);c[n]=new URLSearchParams(E);break;case"PATH":c[n]=G(null!==(o=null==b?void 0:b.params)&&void 0!==o?o:{});break;case"PATH_NAME":c[n]=l.pathname;break;case"PROCESSORS":c[n]=q({get(e,t){const n=x.get(t);if(!n)throw new Error(`'PROCESSORS.${t}' is not registered! Have you installed the relevant brick package?`);return q({get:(e,t)=>n.get(t),ownKeys:()=>Array.from(n.keys())})},ownKeys(){const e=new Set;for(const t of f){const n=t.split(".")[0];e.add(n)}return Array.from(e)}});break;case"QUERY":if(null==E)throw new ReferenceError(`QUERY is not defined, in "${e}"`);c[n]=Object.fromEntries(Array.from(E.keys()).map((e=>[e,E.get(e)])));break;case"QUERY_ARRAY":if(null==E)throw new ReferenceError(`QUERY_ARRAY is not defined, in "${e}"`);c[n]=Object.fromEntries(Array.from(E.keys()).map((e=>[e,E.getAll(e)])));break;case"SESSION_STORAGE":c[n]=G({getItem:Ce("session")});break;case"TPL":if(Re(g,'Using "TPL" in expression',`check your expression: "${e}"`),g)break;case"STATE":c[n]=q({get:(e,t)=>m.getValue(t),ownKeys:()=>Array.from(v)});break;case"SYS":c[n]=G(null!=A?A:{});break;case"__WIDGET_FN__":c[n]=Be;break;case"__WIDGET_IMG__":c[n]=null==pi||null===(i=pi.images)||void 0===i?void 0:i.widgetImagesFactory;break;case"__WIDGET_I18N__":c[n]=$}Object.assign(c,le(a.attemptToVisitGlobals,{storyboardFunctions:he,app:O,appendI18nNamespace:t.appendI18nNamespace}));try{const t=(0,R.cook)(a.expression,a.source,{globalVariables:(0,P.supply)(a.attemptToVisitGlobals,c)});return V("evaluation",{raw:e,context:c,result:t}),t}catch(t){const n=`${t.message}, in "${e}"`;throw new(lt(t))(n)}}}}let pt=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 ft(e){switch(e){case pt.USE_BRICK_PROPERTIES:case pt.USE_BRICK_TRANSFORM:case pt.USE_BRICK_EVENTS:case pt.USE_BRICK_IF:case pt.USE_BRICK_LIFECYCLE:case pt.USE_BRICK_DATA_SOURCE:return!0}return!1}function ht(e,t,n){if(ft(e))return e;if(t)switch(e){case pt.USE_BRICK:return pt.USE_BRICK_ITEM;case pt.USE_BRICK_SLOTS_ITEM_BRICKS:return pt.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM}else switch(e){case pt.INITIAL:if("useBrick"===n)return pt.USE_BRICK;break;case pt.USE_BRICK:case pt.USE_BRICK_ITEM:case pt.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM:switch(n){case"properties":return pt.USE_BRICK_PROPERTIES;case"transform":return pt.USE_BRICK_TRANSFORM;case"dataSource":return pt.USE_BRICK_DATA_SOURCE;case"events":return pt.USE_BRICK_EVENTS;case"slots":return pt.USE_BRICK_SLOTS;case"children":return pt.USE_BRICK_SLOTS_ITEM_BRICKS;case"if":return pt.USE_BRICK_IF;case"lifeCycle":return pt.USE_BRICK_LIFECYCLE}break;case pt.USE_BRICK_SLOTS:return pt.USE_BRICK_SLOTS_ITEM;case pt.USE_BRICK_SLOTS_ITEM:if("bricks"===n)return pt.USE_BRICK_SLOTS_ITEM_BRICKS}return pt.INITIAL}async function vt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=it(e);if(r||"string"==typeof e){const o=n.$$lazyForUseBrick&&ft(n.$$stateOfUseBrick);let i,s=o;return r||(0,R.isEvaluable)(e)?(i=await async function(e,t,n){const{blockingList:r,run:o}=dt(e,t,n,!0);return await Promise.all(r),o()}(e,t,{lazy:o}),s=at(e)):i=o?e:((0,u.hasOwnProperty)(t,"data")?n.noInject?_.transform:_.transformAndInject:n.noInject?wt:_.inject)(e,t),s||Qe(i),i}if(!(0,u.isObject)(e)||Ze(e)||"function"==typeof e)return e;if(Array.isArray(e)){const r=gt(n,!0);return Promise.all(e.map((e=>vt(e,t,r))))}return Object.fromEntries((await Promise.all(Object.entries(e).map((e=>{let[r,o]=e;return Promise.all([vt(r,t),vt(o,t,gt(n,!1,r))])})))).concat(n.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))}function mt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=it(e);if(r||"string"==typeof e){const o=n.$$lazyForUseBrick&&ft(n.$$stateOfUseBrick);let i,s=o;return r||(0,R.isEvaluable)(e)?(i=ut(e,t),s=at(e)):i=o?e:((0,u.hasOwnProperty)(t,"data")?n.noInject?_.transform:_.transformAndInject:n.noInject?wt:_.inject)(e,t),s||Qe(i),i}if(!(0,u.isObject)(e)||Ze(e)||"function"==typeof e)return e;if(Array.isArray(e)){const r=gt(n,!0);return e.map((e=>mt(e,t,r)))}return Object.fromEntries(Object.entries(e).map((e=>{let[r,o]=e;return[mt(r,t),mt(o,t,gt(n,!1,r))]})).concat(n.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))}function gt(e,t,n){return e.$$lazyForUseBrick?{...e,$$stateOfUseBrick:ht(e.$$stateOfUseBrick,t,n)}:e}function wt(e){return e}async function yt(e,t){return!(0,u.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||it(e.if)?await vt(e.if,t):e.if)}function Et(e,t){return!(0,u.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||it(e.if)?mt(e.if,t):e.if)}function bt(e){return!(0,u.hasOwnProperty)(e,"if")||!!e.if}const St=function(){const e=S();if(e)return e.looseCheckIfByTransform}()||function(e,t){return Et(e,{data:t})};function At(e){let t=!1,n=!1,r=!1;if("string"==typeof e?(0,R.isEvaluable)(e):it(e)){const o="string"==typeof e?e:st(e);if((0,R.isTrackAll)(o)){const e=(0,T.trackAll)(o);e&&(t=e.context,n=e.state,r=e.formState)}else t=(0,T.track)(o,"track context","CTX"),n=(0,T.track)(o,"track state","STATE"),r=(0,T.track)(o,"track formstate","FORM_STATE")}return{contextNames:t,stateNames:n,formStateNames:r}}async function kt(e,t){for(const[n,r,o]of e)if(n===t){const e=await r;if(void 0!==e||!o)return e}}async function It(e){const t={};for(const[n,r,o]of e){const e=await r;void 0===e&&o||!("style"!==n&&"dataset"!==n||(0,u.isObject)(e))||(t[n]=e)}return t}function Ct(e,t){if(t)for(const[n,r]of Object.entries(t))switch(n){case"style":case"dataset":for(const[t,o]of Object.entries(r))e[n][t]=o;break;case"constructor":case"__proto__":case"innerHTML":throw new Error(`set \`${n}\` is prohibited`);default:e[n]=r}}function Ot(e,t,n){const r=function(e,t){return(0,u.isObject)(e)?Object.fromEntries(Object.entries(e).map((e=>{let[n,r]=e;const o=mt(r,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===n?pt.USE_BRICK:pt.INITIAL});if("style"!==n&&"dataset"!==n||(0,u.isObject)(o))return[n,o]})).filter(Boolean)):{}}(t,n);Array.isArray(e)||(e=[e]),e.forEach((e=>{Ct(e,r)}))}function Rt(e,t,n){if(n)for(const{contextNames:r,stateNames:o,propValue:i}of t){if(r)for(const t of r)n.disposes.push(e.ctxStore.onChange(t,n.listener));if(o)for(const t of o){const r=Me(e,"STATE",`: "${i}"`);n.disposes.push(r.onChange(t,n.listener))}}}var Tt=n(264);const _t=new Map,Pt=1e4;let Mt=0;function xt(e,t){const{path:n,exact:r=!1,strict:o=!1,sensitive:i=!0}=t;return(Array.isArray(n)?n:[n]).reduce(((t,n)=>{if(t)return t;const{regexp:s,keys:a}=function(e,t){const n=`${t.end}${t.strict}${t.sensitive}`;let r=_t.get(n);r||_t.set(n,r=new Map);const o=r.get(e);if(o)return o;const i=[],s={regexp:(0,Tt.MM)(e,i,t),keys:i};return Mt<Pt&&(r.set(e,s),Mt++),s}(n,{end:r,strict:o,sensitive:i}),c=s.exec(e);if(!c)return null;const[l,...u]=c,d=e===l;return r&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce(((e,t,n)=>(e[t.name]=u[n],e)),{})}}),null)}function Lt(e,t,n){return xt(n,{path:e.path.replace(/^\$\{APP.homepage\}/,t),exact:e.exact})}const Bt=Symbol.for("tpl.asyncComputedPropsFromHost"),$t=Symbol.for("tpl.stateStoreId"),Nt=Symbol.for("tpl.externalForEachItem"),Ut=Symbol.for("tpl.externalForEachIndex"),Ft=Symbol.for("tpl.externalForEachSize"),Dt=new Set;let jt=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.LICENSE_EXPIRED="LICENSE_EXPIRED",e.LICENSE_BLOCKED="LICENSE_BLOCKED",e.NO_PERMISSION="NO_PERMISSION",e.PAGE_NOT_FOUND="PAGE_NOT_FOUND",e.APP_NOT_FOUND="APP_NOT_FOUND",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.GO_BACK_TO_PREVIOUS_PAGE="GO_BACK_TO_PREVIOUS_PAGE",e.GO_BACK_HOME="GO_BACK_HOME",e.RELOAD="RELOAD",e}({});const Kt={[jt.REQUEST_FAILED]:"Request Failed",[jt.SOMETHING_WENT_WRONG]:"Something went wrong!",[jt.LOGIN_TIMEOUT_MESSAGE]:"You haven't logged in or your login session has expired. Login right now?",[jt.NETWORK_ERROR]:"Network error, please check your network.",[jt.LICENSE_EXPIRED]:"The license authorization has expired, please contact the platform administrator",[jt.LICENSE_BLOCKED]:"The page is not authorized, please contact the platform administrator",[jt.NO_PERMISSION]:"Unauthorized access, unable to retrieve the required resources for this page",[jt.PAGE_NOT_FOUND]:"Page not found, please check the URL",[jt.APP_NOT_FOUND]:"App not found, maybe the URL is wrong or you don't have permission to access",[jt.UNKNOWN_ERROR]:"Oops! Something went wrong",[jt.GO_BACK_TO_PREVIOUS_PAGE]:"Go back to previous page",[jt.GO_BACK_HOME]:"Go back to home page",[jt.RELOAD]:"Reload"},Vt={[jt.REQUEST_FAILED]:"请求失败",[jt.SOMETHING_WENT_WRONG]:"出现了一些问题!",[jt.LOGIN_TIMEOUT_MESSAGE]:"您还未登录或登录信息已过期,现在重新登录?",[jt.NETWORK_ERROR]:"网络错误,请检查您的网络连接。",[jt.LICENSE_EXPIRED]:"License 授权失效,请联系平台管理员",[jt.LICENSE_BLOCKED]:"该页面未授权,请联系平台管理员",[jt.NO_PERMISSION]:"没有权限,无法获取页面所需要的资源",[jt.PAGE_NOT_FOUND]:"请求的页面未找到,请确认 URL 是否正确",[jt.APP_NOT_FOUND]:"请求的微应用无法找到, 可能是 URL 错误或者无权限访问",[jt.UNKNOWN_ERROR]:"糟糕!页面出现了一些问题",[jt.GO_BACK_TO_PREVIOUS_PAGE]:"回到上一页",[jt.GO_BACK_HOME]:"回到首页",[jt.RELOAD]:"刷新"},Wt="core/runtime",Ht={en:Kt,zh:Vt};let zt;const Gt=Object.freeze({show:function(e){if(zt)return zt.resolve(e);if("confirm"===e.type){const t=confirm(e.content);return new Promise(((e,n)=>setTimeout((()=>{(t?e:n)()}),1)))}return alert(e.content),new Promise((e=>setTimeout((()=>{e()}),1)))}});function qt(e){const{search:t,pathname:n}=e,r=n?window.btoa(encodeURIComponent(n)):"",o=t?window.btoa(encodeURIComponent(t)):"";document.cookie=`SALOGINPATH=${r}; path=/`,document.cookie=`SALOGINQUERY=${o}; path=/`}function Yt(e){if(e instanceof Event&&e.target instanceof HTMLScriptElement)return e.target.src;if(e instanceof O.HttpFetchError)return c.i18n.t(`${Wt}:${jt.NETWORK_ERROR}`);if(e instanceof O.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 Xt(e){return e instanceof O.HttpResponseError&&401===e.response.status&&!!e.responseJson&&100003===e.responseJson.code}let Jt,Qt,Zt=!1;function en(e){if(e instanceof O.HttpAbortError)return;if(Xt(e)&&!window.NO_AUTH_GUARD){if(Zt)return;return Zt=!0,void Gt.show({type:"confirm",content:c.i18n.t(`${Wt}:${jt.LOGIN_TIMEOUT_MESSAGE}`)}).then((()=>{!function(){const e=hi().getFeatureFlags()["sso-enabled"],t=k();qt(t.location),t.push(e?"/sso-auth/login":"/auth/login",{from:{...t.location,state:void 0}})}(),Zt=!1}),(()=>{Zt=!1}))}console.error(e);const t=Yt(e);t!==Jt&&(Jt=t,Gt.show({type:"error",title:c.i18n.t(`${Wt}:${jt.REQUEST_FAILED}`),content:t,contentStyle:{whiteSpace:"pre-wrap",wordBreak:"break-word"}}).then((()=>{Jt=void 0})))}const tn=Object.freeze({show:function(e){Qt?Qt.resolve(e):alert(e.message)}});function nn(e,t,n){t&&Object.entries(t).forEach((t=>{let[r,o]=t;const i=cn(o,n,{element:e});e.addEventListener(r,i),e.$$listeners||(e.$$listeners=[]),e.$$listeners.push([r,i]),e.$$eventListeners||(e.$$eventListeners=[]);for(const t of[].concat(o))e.$$eventListeners.push([r,null,t])}))}function rn(e){return"string"==typeof e.action}function on(e){return"string"==typeof e.useProvider}function sn(e){return!(!e.target&&!e.targetRef||!e.method&&!e.properties)}function an(e){return!!e.then}function cn(e,t,n){return function(r){var o,i;for(const s of[].concat(e))if(Et(s,{...t,event:r}))if(an(s))cn(s.then,t,n)(r);else if(rn(s)){const[e,a]=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":pn(r,a,s.args,s.callback,t);break;case"window.open":fn(r,s.args,t);break;case"window.postMessage":hn(r,s.args,t);break;case"parent.postMessage":vn(r,s.args,t);break;case"location.reload":case"location.assign":En(r,a,s.args,t);break;case"localStorage.setItem":case"localStorage.removeItem":case"sessionStorage.setItem":case"sessionStorage.removeItem":bn(r,e,a,s.args,t);break;case"event.preventDefault":r.preventDefault();break;case"event.stopPropagation":r.stopPropagation();break;case"console.log":case"console.error":case"console.warn":case"console.info":Sn(r,a,s.args,t);break;case"message.success":case"message.error":case"message.info":case"message.warn":An(r,a,s.args,t);break;case"handleHttpError":en(r.detail);break;case"context.assign":case"context.replace":case"context.refresh":case"context.load":gn(r,a,s.args,null===(o=s.batch)||void 0===o||o,s.callback,t);break;case"state.update":case"state.refresh":case"state.load":wn(r,a,s.args,null===(i=s.batch)||void 0===i||i,s.callback,t);break;case"tpl.dispatchEvent":{const[e,n]=Cn(s.args,t,r);xe(t,s.action,`: ${e}`).dispatchEvent(new CustomEvent(e,n));break}case"formstate.update":yn(r,s.args,s.callback,t);break;case"message.subscribe":case"message.unsubscribe":kn(r,a,s.args,t,n,s.callback);break;case"theme.setDarkTheme":case"theme.setLightTheme":te("theme.setDarkTheme"===s.action?"dark":"light");break;case"theme.setTheme":{const[e]=Cn(s.args,t,r);te(e);break}case"mode.setDashboardMode":case"mode.setDefaultMode":ae("mode.setDashboardMode"===s.action?"dashboard":"default");break;default:console.error("unknown event listener action:",s.action)}}else on(s)?ln(r,s,t,n):sn(s)?un(r,s,t,n):console.error("unknown event handler:",s);else s.else&&cn(s.else,t,n)(r)}}function ln(e,t,n,r){const o="saveAs"!==t.method?"resolve":"saveAs";dn(e,t.useProvider,t,o,n,r)}function un(e,t,n,r){let o=[];const i=t.target,s=t.targetRef;let a=i;if(("string"==typeof i?(0,R.isEvaluable)(i):it(i))&&(a=mt(i,{...n,event:e})),"string"==typeof a)if("_self"===a)o.push(r.element);else if(t.multiple)o=Array.from(document.querySelectorAll(a));else{const e=document.querySelector(a);null!==e&&o.push(e)}else if(a)a instanceof HTMLElement?o.push(a):console.error("unexpected target:",a);else if(s){let t=s;("string"==typeof s?(0,R.isEvaluable)(s):it(s))&&(t=mt(s,{...n,event:e}));const r=[].concat(t),i=xe(n,"targetRef",`: ${r.join(", ")}`);o.push(...r.map((e=>{var t;return null===(t=i.$$getElementByRef)||void 0===t?void 0:t.call(i,e)})).filter(Boolean))}0!==o.length?function(e){return!!e.method}(t)?o.forEach((o=>{dn(e,o,t,t.method,n,r,{useEventAsDefault:!0})})):function(e){return!!e.properties}(t)&&Ot(o,t.properties,{...n,event:e}):console.error("target not found:",i||s)}async function dn(e,t,n,r,o,i,s){const a=on(n),c=async()=>{var i;const c=a?await Xe(t):t;if("function"!=typeof c[r])throw new Error(`target <${c.tagName.toLowerCase()}> has no method: ${r}`);let l=Cn(n.args,o,e,s);var u;return on(n)&&null!=pi&&null!==(i=pi.flowApi)&&void 0!==i&&i.isFlowApiProvider(n.useProvider)&&(l=await pi.flowApi.getArgsOfFlowApi(n.useProvider,l,r,null===(u=n.sse)||void 0===u?void 0:u.stream)),c[r](...l)};if(!n.callback)return void c();const l=In(n.callback,o,i),u={progress:l("progress"),success:l("success"),error:l("error"),finally:l("finally")};if(a){var d,p;const t={...o,event:e};if(mt(null===(d=n.sse)||void 0===d?void 0:d.stream,t))return void async function(e,t){let{progress:n,success:r,error:o,finally:i}=t;const s=Ei();try{const t=await e();for await(const e of t){if(s!==Ei())return;null==n||n(e)}if(s!==Ei())return;null==r||r()}catch(e){if(s!==Ei())return;null==o||o(e)}finally{null==i||i()}}(c,u);if(mt(null===(p=n.poll)||void 0===p?void 0:p.enabled,t))return void function(e,t,n,r){let{progress:o,success:i,error:s,finally:a}=t;const{expectPollStopImmediately:c,expectPollEnd:l}=n,{interval:u,leadingRequestDelay:d,continueOnError:p,delegateLoadingBar:f}=mt((0,h.pick)(n,["interval","leadingRequestDelay","continueOnError","delegateLoadingBar"]),r),v=Ei();let m;async function g(){let t;Dt.delete(m);try{var n;if(t=null===(n=mt(c,r))||void 0===n?void 0:n(),t)null==a||a();else{var d;const n=await e(),s=null===(d=mt(c,r))||void 0===d?void 0:d();var h;t=s||v!==Ei(),t?s&&(null==a||a()):(null==o||o(n),null!==(h=mt(l,r))&&void 0!==h&&h(n)?(f&&window.dispatchEvent(new Event("request.end")),null==i||i(n),null==a||a()):w(null!=u?u:3e3))}}catch(e){var g;const n=null===(g=mt(c,r))||void 0===g?void 0:g();t=n||v!==Ei(),t?n&&(null==a||a()):(null==s||s(e),p?w(null!=u?u:3e3):null==a||a())}finally{f&&t&&window.dispatchEvent(new Event("request.end"))}}function w(e){m=setTimeout(g,e),Dt.add(m)}w(null!=d?d:0),f&&window.dispatchEvent(new Event("request.start"))}(c,u,n.poll,t)}try{const e=await c();u.success(e)}catch(e){u.error(e)}finally{u.finally()}}function pn(e,t,n,r,o){let i=0,s=!1,a=t;switch(t){case"push":case"replace":case"pushQuery":case"replaceQuery":case"pushAnchor":i=2,s=!0;break;case"reload":s=!0;break;case"block":i=1,a="setBlockMessage"}let c=[];if(i>0&&(c=Cn(n,o,e,{useEventDetailAsDefault:!0}),c.length=i),s&&r){const e=In(r,o,void 0);c.push((t=>{e(t?"error":"success")({blocked:t}),e("finally")({blocked:t})}))}k()[a](...c)}function fn(e,t,n){const[r,o,i]=Cn(t,n,e);window.open(r,o||"_self",i)}function hn(e,t,n){const r=Cn(t,n,e);1===r.length&&r.push(location.origin),window.postMessage(...r)}function vn(e,t,n){if(parent===window)throw new Error("parent is the window itself");const r=Cn(t,n,e);parent.postMessage(...r)}function mn(e,t,n,r,o,i){t?r.updateValues(e,n,(e=>Cn(e,o,i)[0])):e.forEach((e=>{const{name:t,value:s}=Cn([e],o,i)[0];r.updateValue(t,s,n)}))}function gn(e,t,n,r,o,i){if(!Array.isArray(n)||!n.every(u.isObject)||"assign"!==t&&"replace"!==t){const[r,s]=Cn(n,i,e);i.ctxStore.updateValue(r,s,t,o,i)}else mn(n,r,t,i.ctxStore,i,e)}function wn(e,t,n,r,o,i){if(Array.isArray(n)&&n.every(u.isObject)&&"update"===t)mn(n,r,"replace",Me(i,`state.${t}`,`: ${JSON.stringify(n)}`),i,e);else{const[r,s]=Cn(n,i,e);Me(i,`state.${t}`,`: ${r}`).updateValue(r,s,"update"===t?"replace":t,o,i)}}function yn(e,t,n,r){const[o,i]=Cn(t,r,e);qe(r,"formstate.update",`: ${o}`).updateValue(o,i,"replace",n,r)}function En(e,t,n,r){if("assign"===t){const[t]=Cn(n,r,e);location.assign(t)}else location[t]()}function bn(e,t,n,r,o){const i="localStorage"===t?localStorage:sessionStorage,[s,a]=Cn(r,o,e);"setItem"===n?void 0!==a&&i.setItem(s,JSON.stringify(a)):i.removeItem(s)}function Sn(e,t,n,r){console[t](...Cn(n,r,e,{useEventAsDefault:!0}))}function An(e,t,n,r){const o=Cn(n,r,e,{useEventAsDefault:!0});tn.show({type:t,message:o[0]})}async function kn(e,t,n,r,o,i){const s=()=>{var o;const i=Cn(n,r,e);return null==pi||null===(o=pi.messageDispatcher)||void 0===o?void 0:o[t](...i)};if(!i)return void s();const a=In(i,r,o);try{const e=await s();a("success")(e)}catch(e){a("error")(e)}finally{a("finally")()}}function In(e,t,n){return function(r){return function(o){const i=null==e?void 0:e[r];if(i)try{const e=new CustomEvent(`callback.${r}`,{detail:o});cn(i,t,n)(e)}catch(e){console.error(e)}else"error"===r&&console.error("Unhandled callback error:",o)}}}function Cn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Array.isArray(e)?mt(e,{...t,event:n}):r.useEventAsDefault?[n]:r.useEventDetailAsDefault?[n.detail]:[]}function On(e){var t;const{ref:n,runtimeContext:r,element:o}=e;if(!n||!r.tplStateStoreId)return;const{hostBrick:i}=Me(r,"bindTemplateProxy"),s=i.tplHostMetadata;s.internalBricksByRef.set(n,e);const a=null===(t=s.proxy)||void 0===t?void 0:t.events;if(a)for(const[e,t]of Object.entries(a))if(t.ref===n){var c,l,u;const n=t=>{t.bubbles&&t.stopPropagation(),i.element.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))},r=null!==(c=t.refEvent)&&void 0!==c?c:e;o.addEventListener(r,n),null!==(u=(l=o).$$proxyListeners)&&void 0!==u||(l.$$proxyListeners=[]),o.$$proxyListeners.push([r,n])}}function Rn(e){const{ref:t,runtimeContext:n,element:r}=e;if(null==n||!n.tplStateStoreId||!t)return;const{hostBrick:o}=Me(n,"unbindTemplateProxy");o.tplHostMetadata.internalBricksByRef.delete(t);for(const[e,t]of null!==(i=r.$$proxyListeners)&&void 0!==i?i:[]){var i;r.removeEventListener(e,t)}delete r.$$proxyListeners}let Tn=function(e){return e[e.ROOT=1]="ROOT",e[e.BRICK=2]="BRICK",e[e.PLACEHOLDER=3]="PLACEHOLDER",e}({});function _n(e){e.replaceChildren()}function Pn(e,t){window.DISABLE_REACT_FLUSH_SYNC=!1;let n=e.child;const r=[];for(;n;){if(n.tag===Tn.BRICK){var o;const i=n.type;i.includes("-")&&!customElements.get(i)&&console.error(`Undefined custom element: ${i}`),"basic-bricks.script-brick"===i&&console.warn("`basic-bricks.script-brick` is deprecated, please take caution when using it");const s=t&&n===e.child?t:document.createElement(i);n.element=s,n.slotId&&s.setAttribute("slot",n.slotId),n.iid&&(s.dataset.iid=n.iid),null!==(o=n.tplHostMetadata)&&void 0!==o&&o.tplStateStoreId&&(s.dataset.tplStateStoreId=n.tplHostMetadata.tplStateStoreId),Ct(s,n.properties),nn(s,n.events,n.runtimeContext),n.tplHostMetadata&&(s.$$tplStateStore=Me({tplStateStoreId:n.tplHostMetadata.tplStateStoreId,tplStateStoreMap:n.runtimeContext.tplStateStoreMap},"mount")),On(n),n.portal?r.push(s):n.return&&(n.return.childElements||(n.return.childElements=[]),n.return.childElements.push(s))}if(n.child)n=n.child;else if(n.sibling)n=n.sibling;else{var i;let e=n.return;for(;e;){var s;if(e.childElements)e.tag===Tn.ROOT?null===(s=e.container)||void 0===s||s.append(...e.childElements):e.element.append(...e.childElements),e.childElements=void 0;if(e.tag===Tn.ROOT&&r.length>0&&("function"==typeof e.createPortal?e.createPortal():e.createPortal).append(...r),e.sibling)break;e=e.return}n=null===(i=e)||void 0===i?void 0:i.sibling}}setTimeout((()=>{window.DISABLE_REACT_FLUSH_SYNC=!0}))}const Mn=["onMount","onUnmount","onMediaChange","onScrollIntoView","onMessage","onMessageClose"],xn=["onBeforePageLoad","onPageLoad","onPageLeave","onBeforePageLeave","onAnchorLoad","onAnchorUnload"];var Ln=new WeakMap,Bn=new WeakMap,$n=new WeakMap,Nn=new WeakMap,Un=new WeakMap,Fn=new WeakMap,Dn=new WeakMap,jn=new WeakMap,Kn=new WeakMap,Vn=new WeakSet;class Wn{constructor(e,t){var n;(0,I.A)(this,Vn),(0,o.A)(this,"scope",void 0),(0,o.A)(this,"unknownBricks",void 0),(0,o.A)(this,"renderId",void 0),(0,i.A)(this,Ln,void 0),(0,i.A)(this,Bn,{onBeforePageLoad:[],onPageLoad:[],onPageLeave:[],onBeforePageLeave:[],onAnchorLoad:[],onAnchorUnload:[],onMediaChange:[],onScrollIntoView:[],onMount:[],onUnmount:[],onMessage:[],onMessageClose:[]}),(0,i.A)(this,$n,new Map),(0,i.A)(this,Nn,void 0),(0,i.A)(this,Un,new Map),(0,i.A)(this,Fn,void 0),(0,i.A)(this,Dn,void 0),(0,i.A)(this,jn,new WeakMap),(0,i.A)(this,Kn,new Map),this.scope=e,this.unknownBricks=null!==(n=null==t?void 0:t.unknownBricks)&&void 0!==n?n:"throw",(0,s.A)(Ln,this,null==t?void 0:t.routeHelper),this.renderId=null==t?void 0:t.renderId}setInitialMenuRequestNode(e){(0,s.A)(Dn,this,e)}memoizeMenuRequestNode(e,t){(0,a.A)(jn,this).set(e,t)}getMenuRequests(){const e=[];let t=(0,a.A)(Dn,this);for(;t;)if(t.request&&e.push(t.request),t.child)t=t.child;else{for(var n;t&&!t.sibling;)t=t.return;t=null===(n=t)||void 0===n?void 0:n.sibling}return e}async reMergeMenuRequestNodes(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,a.A)(jn,this).get(t);(0,a.A)(jn,this).set(t,n);let o,i=e.child;for(;i&&i!==r;)o=i,i=i.sibling;o?(o.sibling=n,n.sibling=null==r?void 0:r.sibling):e.child=n,await(0,a.A)(Ln,this).mergeMenus(this.getMenuRequests())}reBailout(e){return(0,a.A)(Ln,this).bailout(e)}reCatch(e,t){return(0,a.A)(Ln,this).catch(e,t,!1,!0)}async didPerformIncrementalRender(e,t){let n=!1;const r=[];for(const{parentRoutes:o,callback:i}of[...(0,a.A)(Kn,this).values()].reverse()){const s=o[o.length-1];if(r.includes(s))continue;const a=await i(e,t);a&&r.push(...o.slice(0,-1)),!1!==a&&(n=!0)}return n}performIncrementalRender(e,t,n){(0,a.A)(Kn,this).set(e,{parentRoutes:t,callback:n})}registerBrickLifeCycle(e,t){if(!t)return;const n=[...Mn,..."page"===this.scope?xn:[]];for(const r of n){const n=t[r];n&&(0,a.A)(Bn,this)[r].push({brick:e,handlers:n})}(0,h.isEmpty)(t.useResolves)||console.error("`lifeCycle.useResolves` is dropped in v3:",t)}registerArbitraryLifeCycle(e,t){const n=(0,a.A)(Un,this).get(e);n?n.add(t):(0,a.A)(Un,this).set(e,new Set([t]))}memoize(e,t,n,r){(0,a.A)(Fn,this)||(0,s.A)(Fn,this,new WeakMap);const o=[null!=e?e:"",...t].join(".");let i=(0,a.A)(Fn,this).get(r);i||(i=new Map,(0,a.A)(Fn,this).set(r,i)),i.set(o,{node:n,last:Yn(n),lastNormal:Xn(n),lastPortal:Qn(n)})}reRender(e,t,n,r){const o=[null!=e?e:"",...t].join("."),i=(0,a.A)(Fn,this).get(r).get(o),{node:s,last:c,lastNormal:l,lastPortal:u}=i;let d;const p=[];if((null==s?void 0:s.tag)===Tn.PLACEHOLDER){var f,h,v;d=null!==(f=null===(h=function(e){return Jn(e,!0)}(s))||void 0===h?void 0:h.element)&&void 0!==f?f:null;const e=null===(v=function(e){return Zn(e,!0)}(s))||void 0===v?void 0:v.element;e&&p.push(e)}else{var m,g,w;d=null!==(m=null==l||null===(g=l.element)||void 0===g?void 0:g.nextSibling)&&void 0!==m?m:null;let e=null==u||null===(w=u.element)||void 0===w?void 0:w.nextSibling;for(;e&&(p.push(e),e instanceof HTMLElement&&"DIV"===e.tagName);)e=e.nextSibling}const y=Yn(n);let E;i.node=n,i.last=y,i.lastNormal=Xn(n),i.lastPortal=Qn(n);let b=r.child;for(;b&&b!==c;){if(b.sibling===s){E=b;break}b=b.sibling}const S=document.createDocumentFragment(),A=document.createDocumentFragment(),k={tag:Tn.ROOT,container:S,createPortal:A,child:n};for(b=n;b;)b.return=k,b=b.sibling;const I=er(s,c);for((0,C.A)(Vn,this,Hn).call(this,I),Pn(k),E?E.sibling=n:r.child=n,y&&(y.sibling=null==c?void 0:c.sibling),b=n;b;)b.return=r,b=b.sibling;var O,R;if(S.hasChildNodes()&&(r.tag===Tn.ROOT?null===(O=r.container)||void 0===O||O.insertBefore(S,d):null===(R=r.element)||void 0===R||R.insertBefore(S,d)),A.hasChildNodes()){var T;let e=n;for(;e&&e.return;)e=e.return;if((null===(T=e)||void 0===T?void 0:T.tag)!==Tn.ROOT)throw new Error("Cannot find render root node. This is a bug of Brick Next, please report it.");const t="function"==typeof e.createPortal?e.createPortal():e.createPortal;let r=null;for(const e of p)if(t.contains(e)){r=e;break}t.insertBefore(A,r)}const _=er(n,y);(0,C.A)(Vn,this,zn).call(this,_)}dispose(){for(const e of Object.values((0,a.A)(Bn,this)))e.length=0;for(const e of(0,a.A)($n,this).values()){for(const t of e)t.disconnect();e.length=0}(0,a.A)($n,this).clear(),(0,a.A)(Nn,this)&&(be.removeEventListener("change",(0,a.A)(Nn,this)),(0,s.A)(Nn,this,void 0)),(0,s.A)(Fn,this,void 0),(0,a.A)(Un,this).clear(),(0,a.A)(Kn,this).clear(),(0,s.A)(jn,this,void 0)}dispatchBeforePageLoad(){(0,C.A)(Vn,this,Gn).call(this,"onBeforePageLoad",new CustomEvent("page.beforeLoad"))}dispatchPageLoad(){const e=new CustomEvent("page.load");(0,C.A)(Vn,this,Gn).call(this,"onPageLoad",e),window.dispatchEvent(e)}dispatchBeforePageLeave(e){(0,C.A)(Vn,this,Gn).call(this,"onBeforePageLeave",new CustomEvent("page.beforeLeave",{detail:e}))}dispatchPageLeave(){(0,C.A)(Vn,this,Gn).call(this,"onPageLeave",new CustomEvent("page.leave"))}dispatchAnchorLoad(){const{hash:e}=k().location;e&&"#"!==e?(0,C.A)(Vn,this,Gn).call(this,"onAnchorLoad",new CustomEvent("anchor.load",{detail:{hash:e,anchor:e.substring(1)}})):(0,C.A)(Vn,this,Gn).call(this,"onAnchorUnload",new CustomEvent("anchor.unload"))}initializeScrollIntoView(){for(const{brick:e,handlers:t}of(0,a.A)(Bn,this).onScrollIntoView)(0,C.A)(Vn,this,qn).call(this,e,t)}initializeMediaChange(){(0,s.A)(Nn,this,(e=>{(0,C.A)(Vn,this,Gn).call(this,"onMediaChange",new CustomEvent("media.change",{detail:G(e.detail)}))})),be.addEventListener("change",(0,a.A)(Nn,this))}initializeMessageDispatcher(){var e;for(const{brick:e,handlers:n}of(0,a.A)(Bn,this).onMessage)for(const r of[].concat(n)){var t;null==pi||null===(t=pi.messageDispatcher)||void 0===t||t.onMessage(r.channel,(t=>{cn(r.handlers,e.runtimeContext,e)(new CustomEvent("message.push",{detail:t}))}))}null==pi||null===(e=pi.messageDispatcher)||void 0===e||e.onClose((()=>{(0,C.A)(Vn,this,Gn).call(this,"onMessageClose",new CustomEvent("message.close"))}))}dispatchOnMount(){(0,C.A)(Vn,this,Gn).call(this,"onMount",new CustomEvent("mount"))}dispatchOnUnmount(){(0,C.A)(Vn,this,Gn).call(this,"onUnmount",new CustomEvent("unmount"))}}function Hn(e){const t=[...Mn,..."page"===this.scope?xn:[]],n=[];for(const r of t){const t=(0,h.remove)((0,a.A)(Bn,this)[r],(t=>e.has(t.brick)));"onUnmount"===r&&n.push(...t)}for(const t of e){var r,o,i;const e=(0,a.A)($n,this).get(t);if(null!=e&&e.length){for(const t of e)t.disconnect();e.length=0,(0,a.A)($n,this).delete(t)}Rn(t),null===(r=t.element)||void 0===r||delete r.$$tplStateStore,null===(o=t.element)||void 0===o||o.remove(),null===(i=t.disposes)||void 0===i||i.forEach((e=>e())),delete t.disposes}const s=new CustomEvent("unmount");for(const{brick:e,handlers:t}of n)cn(t,e.runtimeContext,e)(s)}function zn(e){const t=new CustomEvent("mount");for(const{brick:n,handlers:r}of(0,a.A)(Bn,this).onMount)e.has(n)&&cn(r,n.runtimeContext,n)(t);for(const{brick:t,handlers:n}of(0,a.A)(Bn,this).onScrollIntoView)e.has(t)&&(0,C.A)(Vn,this,qn).call(this,t,n)}function Gn(e,t){for(const{brick:n,handlers:r}of(0,a.A)(Bn,this)[e])cn(r,n.runtimeContext,n)(t);const n=(0,a.A)(Un,this).get(e);if(n)for(const e of n)e()}function qn(e,t){var n;const r=null!==(n=t.threshold)&&void 0!==n?n:.1,o=new IntersectionObserver(((n,o)=>{n.forEach((n=>{n.isIntersecting&&n.intersectionRatio>=r&&(cn(t.handlers,e.runtimeContext,e)(new CustomEvent("scroll.into.view")),o.disconnect())}))}),{threshold:r});o.observe(e.element);let i=(0,a.A)($n,this).get(e);i||(i=[],(0,a.A)($n,this).set(e,i)),i.push(o)}function Yn(e){let t=e;for(;null!==(n=t)&&void 0!==n&&n.sibling;){var n;t=t.sibling}return t}function Xn(e){return Jn(e,!1)}function Jn(e,t){let n,r=e;for(;r;){if(r.tag===Tn.BRICK&&!r.portal){if(t)return r;n=r}r=r.sibling}return n}function Qn(e){return Zn(e,!1)}function Zn(e,t){let n,r=e;for(;r;){if(r.tag===Tn.BRICK&&r.portal){if(t)return r;n=r}if(r.child)r=r.child;else if(r.sibling)r=r.sibling;else{var o;let e=r.return;for(;e&&!e.sibling;)e=e.return;r=null===(o=e)||void 0===o?void 0:o.sibling}}return n}function er(e,t){const n=new Set;let r=e;for(;r;)if(r.tag===Tn.BRICK&&n.add(r),r.child)r=r.child;else{if(r===t)break;if(r.sibling)r=r.sibling;else{var o;let e=r.return;for(;e&&e!==t&&!e.sibling;)e=e.return;if(e===t)break;r=null===(o=e)||void 0===o?void 0:o.sibling}}return n}const tr=new Map;function nr(e){return tr.get(e)}const rr=Symbol.for("root.runtimeContext");async function or(e,t,n){var r,o,i,s,a;const[c,l,u]=eo({...null!==(r=e[rr])&&void 0!==r?r:bi(),data:t,pendingPermissionsPreCheck:[]});c.inUseBrick=!0,null!==(o=c.tplStateStoreMap)&&void 0!==o||(c.tplStateStoreMap=new Map),null!==(i=c.formStateStoreMap)&&void 0!==i||(c.formStateStoreMap=new Map);const d=new Wn("fragment"),p={tag:Tn.ROOT,createPortal:null},f=Oe(),h=await Jr(p,f&&!n?e:{errorBoundary:n,...e},c,d,[],{}),v=[...l,...u];if(await Zr(h,c,v),(null===(s=h.node)||void 0===s?void 0:s.tag)===Tn.PLACEHOLDER){if(h.node.tracking)throw new Error("The root brick of useBrick cannot be an ignored tracking control node");h.node=void 0}if(null!==(a=h.node)&&void 0!==a&&a.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:v}}function ir(e,t){let n,{renderRoot:r,rendererContext:o,scopedStores:i}=e;r.createPortal=()=>{const e=document.querySelector("#portal-mount-point");return n=document.createElement("div"),e.appendChild(n),n},Pn(r,t),o.dispatchOnMount(),o.initializeScrollIntoView(),o.initializeMediaChange(),o.initializeMessageDispatcher();for(const e of i)e.mountAsyncData();return{portal:n}}function sr(e,t){let{rendererContext:n}=e;t.portal&&(_n(t.portal),t.portal.remove()),n.dispatchOnUnmount(),n.dispose()}function ar(e,t,n){if(n)throw new Error("Legacy doTransform does not support options in v3");return mt(t,{...bi(),data:e},{noInject:!0})}function cr(e,t){const n=Si(e);Object.assign(n,{...t,meta:{...n.meta,...t.meta},$$fulfilling:null,$$fulfilled:!0,$$registerCustomTemplateProcessed:!1}),L(n)}function lr(e,t){const n=Si(e);let r=!1;function o(e){e.forEach(((n,s)=>{"routes"===n.type?o(n.routes):function(e){return e.path===t.path&&!e.exact==!t.exact}(n)?(r=!0,e[s]=t):Array.isArray(n.bricks)&&i(n.bricks)}))}function i(e){e.forEach((e=>{if(e.slots)for(const t of Object.values(e.slots))"routes"===t.type?o(t.routes):i(t.bricks)}))}o(n.routes),r||n.routes.unshift(t)}function ur(e,t,n){const r=`${e}.${t.name}`;Pe.define(r,{bricks:t.bricks,proxy:t.proxy,state:t.state}),dr(e,t.name,n)}function dr(e,t,n){vr(e,`\${APP.homepage}/_dev_only_/template-preview/${t}`,[{brick:t,...(0,h.pick)(n,"properties","events","lifeCycle","context","slots","children")}])}function pr(e){return`\${APP.homepage}/_dev_only_/snippet-preview/${e}`}function fr(e,t){var n;vr(e,pr(t.snippetId),null!==(n=t.bricks)&&void 0!==n&&n.length?t.bricks:[{brick:"span"}],t.context)}const hr=fr;function vr(e,t,n,r){const{routes:o}=Si(e),i=o.findIndex((e=>e.path===t)),s={path:t,bricks:n,context:r,menu:!1,exact:!0};-1===i?o.unshift(s):o.splice(i,1,s)}function mr(e,t){let{tplStateStoreId:n}=t;const r=bi();return n?Me({...r,tplStateStoreId:n},"STATE").getValue(e):r.ctxStore.getValue(e)}function gr(e){let{tplStateStoreId:t}=e;const n=bi();return t?Me({...n,tplStateStoreId:t},"STATE").getAllValues():n.ctxStore.getAllValues()}function wr(e){return wi().find((t=>t.id?t.id===e:t.filePath.startsWith(`${e}/`)))}function yr(e){return(0,l.loadBricksImperatively)(e,wi())}function Er(e,t){return(0,l.loadEditorsImperatively)(e,null!=t?t:wi())}function br(){return Ei()}async function Sr(e,t){let{appId:n,updateStoryboardType:r,collectUsedContracts:o}=t;const i=Si(n);let s;if("route"===r)s={routes:[e]};else if("template"===r)s={meta:{customTemplates:[e]}};else if("snippet"===r){var a;const t=pr(e.snippetId);s={routes:[null==i||null===(a=i.routes)||void 0===a?void 0:a.find((e=>e.path===t))]}}const c=[];return s&&o&&(await o(s)).forEach((e=>{var t;const[n,r,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===r&&e.name===o))||c.push(e)})),c}async function Ar(e,t){let{tplStateStoreId:n,routeId:r}=t;const o={...bi(),tplStateStoreId:n,match:nr(r)};return e.resolve?tt(e.resolve,o,{cache:"reload"}):vt(e.value,o)}function kr(e){var t;const n=bi();return{app:null!==(t=null==n?void 0:n.overrideApp)&&void 0!==t?t:null==n?void 0:n.app,location:(0,h.pick)(location,["href","origin","hostname","host"]),...(0,h.pick)(n,["query","sys"]),match:nr(null==e?void 0:e.routeId)}}let Ir;const Cr=[];function Or(e){Ir=e;const t=gr({tplStateStoreId:e.tplStateStoreId});Tr({changeType:"initialize",tplStateStoreId:e.tplStateStoreId,detail:{data:t}})}function Rr(e){Cr.push(e)}function Tr(e){setTimeout((()=>{for(const t of Cr)try{t(e)}catch(t){console.error(`RealTimeDataInspectHook failed (${e.changeType}):`,t)}}))}const _r=["onBeforePageLoad","onPageLoad","onBeforePageLeave","onPageLeave","onAnchorLoad","onAnchorUnload"];class Pr{constructor(e,t,n,r){(0,o.A)(this,"type",void 0),(0,o.A)(this,"data",new Map),(0,o.A)(this,"changeEventType",void 0),(0,o.A)(this,"pendingStack",[]),(0,o.A)(this,"hostBrick",void 0),(0,o.A)(this,"stateStoreId",void 0),(0,o.A)(this,"batchUpdate",!1),(0,o.A)(this,"batchUpdateContextsNames",[]),(0,o.A)(this,"rendererContext",void 0),(0,o.A)(this,"routeMap",new WeakMap),(0,o.A)(this,"routeStackMap",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=n,this.stateStoreId=r}getAllValues(){return Object.fromEntries([...this.data.entries()].map((e=>{let[t,{value:n}]=e;return[t,n]})))}getValue(e){var t;return null===(t=this.data.get(e))||void 0===t?void 0:t.value}notifyRealTimeDataChange(e,t){if(Ir){const{tplStateStoreId:n}=Ir;(n?"STATE"===this.type&&this.stateStoreId===n:"CTX"===this.type)&&Tr({changeType:"update",tplStateStoreId:n,detail:{name:e,value:t}})}}getAffectListByContext(e){const t=[e];return this.data.forEach(((e,n)=>{e.deps&&e.deps.some((e=>t.includes(e)))&&t.push(n)&&t.push(...this.getAffectListByContext(n))})),t.shift(),[...new Set(t)]}updateValues(e,t,n){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");const r={},o={},i=[];e.forEach((e=>{const{name:o,value:s}=n([e]),a=this.data.get(o);i.push(...this.getAffectListByContext(o)),a&&(r[o]=a),this.updateValue(o,s,t)})),i.filter((e=>!r[e])).forEach((e=>{const t=this.data.get(e);t&&(o[e]=t)}));const s=e=>{for(const n in e){var t;const r=e[n];null===(t=r.eventTarget)||void 0===t||t.dispatchEvent(new CustomEvent(this.changeEventType,{detail:r.value}))}};s(r),s(o),this.batchUpdate=!1}updateValue(e,t,n,r,o){const i=this.data.get(e);if(!i)throw new Error(`${this.type} '${e}' is not defined`);if("refresh"!==n&&"load"!==n)"replace"===n?i.value=t:(0,u.isObject)(i.value)?Object.assign(i.value,t):(console.warn(`Non-object current value of "${this.type}.${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 ${n} "${this.type}.${e}" which is not using resolve`);let s;"load"===n&&(i.loaded?s=Promise.resolve(i.value):i.loading&&(s=i.loading));const a=e=>{var t;let n;return"FlowApiNotFoundError"===(null==e?void 0:e.name)&&!!(n=null===(t=this.rendererContext)||void 0===t?void 0:t.renderId)&&n!==Ei()};if(s||(s=i.loading=i.load({cache:"load"===n?"default":"reload",...t}),s.then((e=>{this.finishLoad(i,e)}),(e=>{!i.useResolve||a(e)||null!=r&&r.error||en(e)}))),r){const e=In(r,o);s.then((t=>{e("success")({value:t}),e("finally")()}),(t=>{!a(t)&&r.error&&e("error")(t),e("finally")()}))}}}finishLoad(e,t){e.useResolve&&(e.loaded=!0,e.value=t,e.eventTarget.dispatchEvent(new CustomEvent(this.changeEventType,{detail:t})))}define(e,t,n,r){if(Array.isArray(e)&&e.length>0){const o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CTX";const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CTX",n=arguments.length>2?arguments[2]:void 0;const r=new Map;for(const o of e){const e=[o.if,o.value,o.resolve],i=(0,T.collectMemberUsage)(e,t);if(!n&&"STATE"===t){const t=(0,T.collectMemberUsage)(e,"TPL");for(const e of t.usedProperties)i.usedProperties.add(e);t.hasNonStaticUsage&&(i.hasNonStaticUsage=!0)}r.set(o,i)}return r}(e,n,arguments.length>3?arguments[3]:void 0),o=new Map;for(const e of Array.from(r.keys()).map((e=>e.name))){var i;o.set(e,(null!==(i=o.get(e))&&void 0!==i?i:0)+1)}const s=Array.from(r.values()).some((e=>e.hasNonStaticUsage)),a=new WeakSet,c=new Map,l=new Map([...new Set(e.map((e=>e.name)))].map((e=>{const t=new Promise(((t,n)=>{c.set(e,{resolve:t,reject:n})}));return t.catch((()=>{})),[e,t]}))),u=async e=>{var n;a.add(e);const i=await t(e);r.delete(e);const s=null!==(n=o.get(e.name))&&void 0!==n?n:0;if(i){if(c.get(e.name).resolve(),o.delete(e.name),0===s)throw new Error(`Duplicated context defined: ${e.name}`)}else 1===s?(c.get(e.name).resolve(),o.delete(e.name)):o.set(e.name,s-1);await p()};let d=s;async function p(){const e=Array.from(r.entries()).filter(function(e,t){return(n,r)=>t?0===r:![...n[1].usedProperties].some((t=>e.has(t)))}(o,d)).map((e=>e[0])).filter((e=>!a.has(e)));await Promise.all(e.map(u))}const f=p().then((async()=>{r.size>0&&(function(e,t){const n=new Map(e),r=new Set(Array.from(n.keys()).map((e=>e.name))),o=()=>{let e=!1;for(const[t,o]of n.entries())[...o.usedProperties].some((e=>r.has(e)))||(n.delete(t),r.delete(t.name),e=!0);e&&o()};if(o(),n.size>0)throw new ReferenceError(`Circular ${t} detected: ${Array.from(n.keys()).map((e=>e.name)).join(", ")}`)}(r,n),d=!0,await p());for(const e of c.values())e.resolve()})).catch((e=>{for(const t of c.values())t.reject(e);throw e}));return f.catch((()=>{})),{pendingResult:f,pendingContexts:l}}(e,(e=>this.resolve(e,t,n,r)),this.type,Oe(t));if(Array.isArray(r))for(const e of r){const t=this.routeStackMap.get(e);t?t.add(o):this.routeStackMap.set(e,new Set([o]))}this.pendingStack.push(o)}}onChange(e,t){var n;const r=null===(n=this.data.get(e))||void 0===n?void 0:n.eventTarget;return null==r||r.addEventListener(this.changeEventType,t),()=>{null==r||r.removeEventListener(this.changeEventType,t)}}async waitFor(e){for(const{pendingContexts:t}of this.pendingStack)await Promise.all([...e].map((e=>t.get(e))))}async waitForAll(){for(const{pendingResult:e}of this.pendingStack)await e}mountAsyncData(e){this.data.forEach((t=>{var n;if(t.async&&(!e||null!==(n=this.routeMap.get(e))&&void 0!==n&&n.has(t.name))){if(t.asyncMounted)return void console.error(`Async data "${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)}))}}))}async resolve(e,t,n,r){if(!await yt(e,t))return!1;let o,i,s,a,c,l;if(n&&("STATE"===this.type?e.expose:"FORM_STATE"===this.type)&&(o=await kt(n,e.name)),void 0===o){if(e.resolve){const n=(0,u.hasOwnProperty)(e,"value");c=e.track&&n&&(0,u.hasOwnProperty)(e.resolve,"if")&&(0,T.strictCollectMemberUsage)(e.resolve.if,this.type).size>0;const r={transform:"value",...e.resolve};if(a=await yt(e.resolve,t),(a||c)&&(i=async e=>{var n;return(await tt(r,t,{...e,renderId:null===(n=this.rendererContext)||void 0===n?void 0:n.renderId})).value}),a)l=e.resolve.async?"async":e.resolve.lazy?"lazy":"eager","eager"===l?o=await i():"async"===l&&(s=i());else if(!n)return!1}a&&"eager"===l||void 0===e.value||(o=await vt(e.value,t))}if(this.data.has(e.name))throw new Error(`${this.type} '${e.name}' has already been declared`);const d={name:e.name,value:o,eventTarget:new we,useResolve:a,load:i,loaded:"eager"===l,loading:s,async:"async"===l,deps:[]};if("lazy"===l){const{trigger:t}=e.resolve;var p;t&&_r.includes(t)&&(null===(p=this.rendererContext)||void 0===p||p.registerArbitraryLifeCycle(t,(()=>{this.updateValue(e.name,void 0,"load")})))}if(e.onChange&&d.eventTarget.addEventListener(this.changeEventType,cn(e.onChange,t)),e.track){const n=(0,T.strictCollectMemberUsage)(c?[e.resolve,e.value]:i?e.resolve:e.value,this.type);!i&&(d.deps=[...n]);for(const r of n)this.onChange(r,this.batchAddListener((()=>{d.useResolve=c?Et(e.resolve,t):!!i,d.useResolve?this.updateValue(e.name,{cache:"default"},"refresh"):this.updateValue(e.name,mt(e.value,t),"replace")}),e))}if(d.eventTarget.addEventListener(this.changeEventType,(t=>{this.notifyRealTimeDataChange(e.name,t.detail)})),this.data.set(e.name,d),Array.isArray(r))for(const t of r){const n=this.routeMap.get(t);n?n.add(e.name):this.routeMap.set(t,new Set([e.name]))}return!0}disposeDataInRoutes(e){for(const t of e){const e=this.routeMap.get(t);if(void 0!==e){for(const t of e)this.data.delete(t);this.routeMap.delete(t)}const n=this.routeStackMap.get(t);void 0!==n&&((0,h.pull)(this.pendingStack,...n),this.routeStackMap.delete(t))}}batchAddListener(e,t){return n=>{this.batchUpdate&&this.batchUpdateContextsNames.includes(t.name)||e(n)}}}function Mr(e,t,n,r){const{reversedProxies:o,asyncHostPropertyEntries:i,externalSlots:s,tplStateStoreId:a,hostBrick:c}=e;let l;if(t&&o){const e=o.properties.get(t);e&&(m=i,l=e.map((e=>{let{from:t,to:n}=e;const r=m.filter((e=>e[0]===t));if(r.length>0&&n.refProperty)return[n.refProperty,kt(r,t),!0]})).filter(Boolean));const a=o.slots.get(t);if(a&&r)throw new Error(`Can not have proxied slot ref when the ref target has a slot element child, check your template "${c.type}" and ref "${t}"`);if(a&&s){const e=new Map;for(const{from:t,to:r}of a){var d,p,f,v;const o=null!==(d=null===(p=s[t])||void 0===p?void 0:p.bricks)&&void 0!==d?d:[];if(!o.length)continue;const i=null!==(f=r.refSlot)&&void 0!==f?f:t;let a=e.get(i);if(!a){a=[];const t=(0,u.hasOwnProperty)(n,i)?n[i].bricks.length+1:1;for(let e=0;e<t;e+=1)a.push([]);e.set(i,a)}const l=null!==(v=r.refPosition)&&void 0!==v?v:-1,m=(0,u.hasOwnProperty)(c.runtimeContext,"forEachItem");a[(0,h.clamp)(l<0?a.length+l:l,0,a.length-1)].push(...m?xr(o,c.runtimeContext.forEachItem,c.runtimeContext.forEachIndex,c.runtimeContext.forEachSize):o)}for(const[t,r]of e.entries()){(0,u.hasOwnProperty)(n,t)||(n[t]={type:"bricks",bricks:[]});const e=n[t];e.bricks=r.flatMap(((t,n)=>n<e.bricks.length?t.concat(e.bricks[n]):t)),0===e.bricks.length&&delete n[t]}}}var m;return{[Bt]:l,[$t]:a}}function xr(e,t,n,r){return e.map((e=>{var o;let{children:i,slots:s,...a}=e;return{...a,[Nt]:t,[Ut]:n,[Ft]:r,slots:":forEach"===a.brick?ro(i,s):Object.fromEntries(Object.entries(null!==(o=ro(i,s))&&void 0!==o?o:{}).map((e=>{let[o,i]=e;return[o,"routes"===i.type?{type:"routes",routes:Lr(i.routes,t,n,r)}:{type:"bricks",bricks:xr(i.bricks,t,n,r)}]})))}}))}function Lr(e,t,n,r){return e.map((e=>"routes"===e.type?{...e,routes:Lr(e.routes,t,n,r)}:"redirect"===e.type?e:{...e,bricks:xr(e.bricks,t,n,r)}))}function Br(e,t,n){var r,o,i,s;if(null!=e.if&&!e.if||"string"==typeof e.if)throw new Error(`Can not use "if" in a slot currently, check your template "${t.hostBrick.type}"`);const a=String(null!==(r=null===(o=e.properties)||void 0===o?void 0:o.name)&&void 0!==r?r:"");if((0,R.isEvaluable)(a))throw new Error(`Can not use an expression as slot name "${a}" currently, check your template "${t.hostBrick.type}"`);if(t.usedSlots.has(a))throw new Error(`Can not have multiple slots with the same name "${a}", check your template "${t.hostBrick.type}"`);if(t.usedSlots.add(a),t.externalSlots&&(0,u.hasOwnProperty)(t.externalSlots,a)){var c;const e=null!==(c=t.externalSlots[a].bricks)&&void 0!==c?c:[];if(e.length>0){const n=t.hostBrick.runtimeContext;return(0,u.hasOwnProperty)(n,"forEachItem")?xr(e,n.forEachItem,n.forEachIndex,n.forEachSize):e}}const l=ro(e.children,e.slots);return(null!==(i=null==l||null===(s=l[""])||void 0===s?void 0:s.bricks)&&void 0!==i?i:[]).flatMap((e=>n(e,t)))}function $r(e,t){function n(e){return(0,u.isObject)(e)&&"function"!=typeof e?Array.isArray(e)?e.map(n):Object.fromEntries(Object.entries(e).map((e=>{let[t,o]=e;return(0,u.isObject)(o)&&"useBrick"===t?Array.isArray(o)?[t,o.flatMap((e=>r(e)))]:[t,r(o)]:[t,n(o)]})).concat(Object.getOwnPropertySymbols(e).map((t=>[t,e[t]])))):e}function r(e,o){if("slot"===e.brick)return null==o||o(),Br(e,t,(e=>r(e)));const{properties:i,slots:s,children:a,...c}=e,l=ro(a,s);let u=!1;const d=()=>{u=!0},p=Object.fromEntries(Object.entries(null!=l?l:{}).map((e=>{var t;let[n,o]=e;return[n,{type:"bricks",bricks:(null!==(t=o.bricks)&&void 0!==t?t:[]).flatMap((e=>r(e,d)))}]})));return{...c,properties:n(i),slots:p,...Mr(t,c.ref,p,u)}}return n(e)}function Nr(e,t,n){if(null===e.if&&delete e.if,"slot"===e.brick)return null==n||n(),Br(e,t,Nr);const{properties:r,slots:o,children:i,...s}=e,a=ro(i,o);let c=!1;const l=()=>{c=!0},u=Object.fromEntries(Object.entries(null!=a?a:{}).map((e=>{var n;let[r,o]=e;return[r,{type:"bricks",bricks:(null!==(n=o.bricks)&&void 0!==n?n:[]).flatMap((e=>Nr(e,t,l)))}]})));return{...s,properties:$r(r,t),slots:u,...Mr(t,s.ref,u,c)}}const Ur="form-renderer.form-renderer",Fr=Symbol.for("form.stateStoreId"),Dr=["forms.general-form","form.general-form","eo-form"];function jr(e,t,n){const{id:r,bricks:o,events:i,context:s,mountPoint:a,instanceId:c}=e;let{brick:l,properties:d}=e;const p=t.find((e=>e.fieldId===r));if(p){const e=function(e){let t;const n={id:e.fieldId,name:e.fieldId,label:e.name,dataset:{testid:e.fieldId}},r=()=>{var t,n;return{readOnly:null===(t=e.limit)||void 0===t?void 0:t.includes("READONLY"),required:null===(n=e.limit)||void 0===n?void 0:n.includes("REQUIRED")}};switch(e.fieldType){case"INT":t={brick:"forms.general-input-number",properties:{...n,...r(),placeholder:e.description,precision:0,inputBoxStyle:{width:"100%"}}};break;case"BOOLEAN":t={brick:"forms.general-switch",properties:{...n,...r()}};break;case"FLOAT":t={brick:"forms.general-input-number",properties:{...n,...r(),placeholder:e.description,inputBoxStyle:{width:"100%"}}};break;case"ENUM":t={brick:"forms.general-select",properties:{...n,...r(),options:[{label:"选项一",value:1},{label:"选项二",value:2}],placeholder:e.description,inputBoxStyle:{width:"100%"}}};break;case"ENUMS":t={brick:"forms.general-select",properties:{...n,...r(),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:{...n,...r(),placeholder:e.description}};break;case"IP":t={brick:"forms.general-input",properties:{...n,...r(),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:{...n}};break;case"ARRAY":t={brick:"forms.general-select",properties:{...n}};break;case"STRUCTURE":case"STRUCTURE_ARRAY":t={brick:"forms.cmdb-instance-select-panel",properties:{...n,...r()}};break;default:t={brick:"forms.general-input",properties:{...n,...r(),placeholder:e.description}}}return t}(p);l||(l=e.brick),d={...e.properties,...d}}const f={brick:l,properties:d,iid:c,slot:a,events:i,context:s,children:Kr(o,t,n),[Fr]:n};return(0,u.hasOwnProperty)(e,"if")&&(f.if=e.if),f}function Kr(e,t,n){if(Array.isArray(e))return e.map((e=>jr(e,t,n)))}var Vr=new WeakSet;class Wr extends HTMLElement{constructor(){super(...arguments),(0,I.A)(this,Vr),(0,o.A)(this,"renderRoot",void 0)}get $$typeof(){return"formRenderer"}validate(){(0,C.A)(Vr,this,Hr).call(this,"validate")}setInitValue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,C.A)(Vr,this,Hr).call(this,"setInitValue",t)}resetFields(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,C.A)(Vr,this,Hr).call(this,"resetFields",t)}getFieldsValue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,C.A)(Vr,this,Hr).call(this,"getFieldsValue",t)}}function Hr(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=!1!==this.renderRoot?null===(t=this.firstElementChild)||void 0===t?void 0:t.firstElementChild:this.firstElementChild,i=null==o||null===(n=o.tagName)||void 0===n?void 0:n.toLowerCase();if(Dr.includes(i))return o[e](...r);console.error(`no ${e} method in the container element`,{container:i})}class zr extends Error{constructor(e){super(e),this.name="PageError",Error.captureStackTrace&&Error.captureStackTrace(this,l.BrickLoadError)}}async function Gr(e,t,n){const{title:r,variant:o,showLink:i,showDescription:s}=function(e){var t,n;return e instanceof zr?"page blocked"===e.message?{showLink:"home",title:c.i18n.t(`${Wt}:${jt.LICENSE_BLOCKED}`),variant:"no-permission"}:"app not found"===e.message?{showLink:"home",title:c.i18n.t(`${Wt}:${jt.APP_NOT_FOUND}`),variant:"no-permission"}:{showLink:"home",variant:"not-found",title:c.i18n.t(`${Wt}:${jt.PAGE_NOT_FOUND}`)}:e instanceof l.BrickLoadError||e instanceof Error&&"ChunkLoadError"===e.name||e instanceof Event&&"error"===e.type&&e.target instanceof HTMLScriptElement?{showDescription:!0,title:c.i18n.t(`${Wt}:${jt.NETWORK_ERROR}`),variant:"internet-disconnected",showLink:"reload"}:e instanceof O.HttpResponseError&&403===(null===(t=e.response)||void 0===t?void 0:t.status)?{showLink:"previous",showDescription:!0,title:c.i18n.t(`${Wt}:${jt.NO_PERMISSION}`),variant:"no-permission"}:e instanceof O.HttpResponseError&&"200000"===(null===(n=e.responseJson)||void 0===n?void 0:n.code)?{showDescription:!0,title:c.i18n.t(`${Wt}:${jt.LICENSE_EXPIRED}`),variant:"license-expired"}:{showLink:"previous",showDescription:!0,title:c.i18n.t(`${Wt}:${jt.UNKNOWN_ERROR}`),variant:"unknown-error"}}(e);if(n){var a;const n=null!==(a=yi().error)&&void 0!==a?a:"illustrations.error-message";if(!1!==n){const a="eo-link",c=(i?[n,a]:[n]).filter((e=>!customElements.get(e)));try{await Promise.race([(0,l.loadBricksImperatively)(c,wi()),new Promise(((e,t)=>setTimeout((()=>{t(new Error("timeout"))}),3e3)))]);const u={tag:Tn.BRICK,type:n,properties:{errorTitle:r,description:s?Yt(e):void 0,variant:o,dataset:{errorBoundary:""}},runtimeContext:null,return:t};return i&&(u.child=qr(i,a,u,"")),u}catch(e){console.error("Failed to load brick:",c.join(", "),e)}}}const u=n&&!!customElements.get("easyops-default-error"),d={tag:Tn.BRICK,type:u?"easyops-default-error":"div",properties:{errorTitle:r,dataset:{errorBoundary:""},style:{color:"var(--color-error)"}},runtimeContext:null,return:t},p={tag:Tn.BRICK,type:"div",properties:{textContent:u?s?Yt(e):"":s?`${r}: ${Yt(e)}`:r},runtimeContext:null,return:d};return d.child=p,n&&i&&(p.sibling=qr(i,"a",d,u?"link":"")),d}function qr(e,t,n,r){return{tag:Tn.BRICK,type:t,slotId:r,properties:{textContent:"home"===e?c.i18n.t(`${Wt}:${jt.GO_BACK_HOME}`):"reload"===e?c.i18n.t(`${Wt}:${jt.RELOAD}`):c.i18n.t(`${Wt}:${jt.GO_BACK_TO_PREVIOUS_PAGE}`),href:"home"===e?f():"reload"===e?location.href:void 0},events:"previous"===e?{click:{action:"history.goBack"}}:void 0,runtimeContext:null,return:n}}async function Yr(e,t,n,r,o,i,s,a,c){const u=await async function(e,t){for(const n of e){if("string"!=typeof n.path)throw console.error("Invalid route with invalid path:",n),new Error("Invalid route with invalid type of path: "+typeof n.path);const e=Lt(n,t.app.homepage,t.location.pathname);if(e&&await yt(n,t))return t.app.noAuthGuard||n.public||null==pi||!pi.auth||pi.auth.isLoggedIn()?{match:e,route:n}:"unauthenticated"}return"missed"}(t,n),d={blockingList:[]},p=d.menuRequestNode={return:i};switch(u){case"missed":break;case"unauthenticated":d.unauthenticated=!0;break;default:{var f;const i=d.route=u.route;d.path=u.match.path;const m={...n,match:u.match};i.iid&&(h=i.iid,v=u.match,tr.set(h,v)),a&&m.ctxStore.disposeDataInRoutes(t);const g=o.concat(i);m.ctxStore.define(i.context,m,void 0,g),m.pendingPermissionsPreCheck.push(null==pi||null===(f=pi.checkPermissions)||void 0===f?void 0:f.preCheckPermissionsForBrickOrRoute(i,(e=>vt(e,m))));const{preLoadBricks:w}=i;if(Array.isArray(w)&&d.blockingList.push((0,l.loadBricksImperatively)(w,wi())),"redirect"===i.type){let e;if(e="string"==typeof i.redirect?await vt(i.redirect,m):(await tt({transform:"redirect",...i.redirect},m)).redirect,"string"!=typeof e)throw console.error("Unexpected redirect result:",e),new Error("Unexpected type of redirect result: "+typeof e);d.redirect={path:e}}else{const n=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 vt(e,t);console.warn("Set menu with resolve is not supported in v3 yet:",e)}}(i.menu,m);n&&(p.request=n),a||r.memoizeMenuRequestNode(t,p);const o=(0,T.strictCollectMemberUsage)(i.context,"PROCESSORS",2);let u;o.size>0&&d.blockingList.push(oo((0,l.loadProcessorsImperatively)(o,wi()),"processors",[...o].join(", "),r.unknownBricks)),u="routes"===i.type?await Yr(e,i.routes,m,r,g,p,s,void 0,c):await Xr(e,i.bricks,m,r,g,p,s,void 0,void 0,c),to(d,u),no(p,u.menuRequestNode)}}}var h,v;return d}async function Xr(e,t,n,r,o,i,s,a,c,l){!function(e,t,n){function r(e){if((0,u.isObject)(e)&&"function"!=typeof e)if(Array.isArray(e))e.map(r);else for(const[t,n]of Object.entries(e))(0,u.isObject)(n)&&"useBrick"===t?Array.isArray(n)?n.forEach((e=>o(e,!0))):o(n,!0,!0):r(n)}function o(e,i,s){if(i&&(e[rr]=t),r(e.properties),n&&!s)return;const a=ro(e.children,e.slots);for(const e of Object.values(null!=a?a:{}))for(const t of null!==(c=e.bricks)&&void 0!==c?c:[]){var c;o(t,i)}}for(const t of e)o(t)}(t,n,!0);const d={blockingList:[]},p=null!=c?c:[];return(await Promise.all(t.map(((t,c)=>Jr(e,t,n,r,o,i,s,p.concat(c),a&&new Map(a),l))))).forEach(((t,n)=>{t.hasTrackingControls&&r.memoize(s,p.concat(n),t.node,e),to(d,t)})),d}async function Jr(e,t,n,r,o,i,s){let a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Map,d=arguments.length>9?arguments[9]:void 0;try{return await async function(e,t,n,r,o,i,s,a,c,d){var p,f;const v={blockingList:[]};if(!t.brick)return t.template?console.error("Legacy templates are dropped in v3:",t):console.error("Invalid brick:",t),v;const{if:g,permissionsPreCheck:w,...y}=t;if(function(e){return"string"==typeof e?(0,R.isTrackAll)(e):it(e)&&(0,R.isTrackAll)(st(e))}(g))return Jr(e,{brick:":if",dataSource:g,permissionsPreCheck:w,slots:{"":{type:"bricks",bricks:[y]}},...Object.getOwnPropertySymbols(t).reduce(((e,n)=>({...e,[n]:t[n]})),{})},n,r,o,i,s,a,c,d);const E=t[$t],b=t[Fr],S={...n,tplStateStoreId:E,formStateStoreId:b};(0,u.hasOwnProperty)(t,Nt)&&(S.forEachItem=t[Nt],S.forEachIndex=t[Ut],S.forEachSize=t[Ft]);const A=Oe(S),{context:k}=t;if(Array.isArray(k)&&k.length>0&&(Re(A,"Defining context on bricks","check your brick:",t),A||S.ctxStore.define(k,S)),S.pendingPermissionsPreCheck.push(null==pi||null===(p=pi.checkPermissions)||void 0===p?void 0:p.preCheckPermissionsForBrickOrRoute(t,(e=>vt(e,S)))),!await async function(e,t){return(0,u.isObject)(e.if)&&!it(e.if)?bt(await tt(e.if,t)):yt(e,t)}(t,S))return v;const I=t.brick;if(I.startsWith(":")){var C;!function(e){if(":forEach"!==e&&":if"!==e&&":switch"!==e)throw new Error(`Unknown storyboard control node: "${e}"`)}(I);const{dataSource:n}=t,{contextNames:l,stateNames:d}=At(n),p=!(!l&&!d),f=async(p,f,h)=>{var v;const m=await vt(n,p);h&&Rt(p,[{contextNames:l,stateNames:d,propValue:n}],f);const g=":forEach"===I?"":":switch"===I?String(m):m?"":"else",w=ro(t.children,t.slots),y=w&&(0,u.hasOwnProperty)(w,g)&&(null===(v=w[g])||void 0===v?void 0:v.bricks);if(!Array.isArray(y))return{blockingList:[]};switch(I){case":forEach":return Array.isArray(m)?async function(e,t,n,r,o,i,s,a,c,l,u){const d={blockingList:[]},p=t.length,f=await Promise.all(t.map(((t,d)=>Promise.all(n.map(((n,f)=>Jr(e,n,{...r,forEachItem:t,forEachIndex:d,forEachSize:p},o,i,s,a,l.concat(d*p+f),c&&new Map(c),u)))))));return f.flat().forEach(((t,n)=>{t.hasTrackingControls&&o.memoize(a,l.concat(n),t.node,e),to(d,t)})),d}(e,m,y,p,r,o,i,s,c,a,f):{blockingList:[]};case":if":case":switch":return Xr(e,y,p,r,o,i,s,c,a,f)}},v=async n=>{var r,o;let{type:i,runtimeContext:s,tplStateStoreScope:a,formStateStoreScope:c}=n,l=!1;const u={disposes:[],listener:()=>{l=!0}};let d,h=0,v=!0;for(;v||l;){if(l=!1,d=await f(s,u,v&&"initial"===i),!l&&"rerender"===i){const e=[...a,...c];await Zr(d,s,[s.ctxStore,...e])}if(u.disposes.forEach((e=>e())),u.disposes.length=0,v=!1,++h>10)throw new Error(`Maximum rerender stack overflowed (iid: ${t.iid})`)}return null!==(o=(r=d).node)&&void 0!==o||(r.node={tag:Tn.PLACEHOLDER,return:e,tracking:p}),d},m=await v({type:"initial",runtimeContext:S}),{onMount:g,onUnmount:w}=null!==(C=t.lifeCycle)&&void 0!==C?C:{};if(p){var O;m.hasTrackingControls=!0;let t=0;const o=async()=>{const n=++t,[o,i,c]=eo(S),l=await v({type:"rerender",runtimeContext:o,tplStateStoreScope:i,formStateStoreScope:c});if(t===n){w&&cn(w,S)(new CustomEvent("unmount",{detail:{rerender:!0}})),r.reRender(s,a,l.node,e),g&&cn(g,o)(new CustomEvent("mount",{detail:{rerender:!0}}));for(const e of[...i,...c])e.mountAsyncData()}},i=(0,h.debounce)(o,0,{leading:!0,trailing:!0}),c=e.tag===Tn.BRICK?e:null,u=c?null!==(O=c.disposes)&&void 0!==O?O:c.disposes=[]:[];if(l)for(const e of l)u.push(S.ctxStore.onChange(e,i));if(d)for(const e of d){const t=Me(S,"STATE",`: "${n}"`);u.push(t.onChange(e,i))}}return g&&r.registerArbitraryLifeCycle("onMount",(()=>{cn(g,S)(new CustomEvent("mount",{detail:{rerender:!1}}))})),w&&r.registerArbitraryLifeCycle("onUnmount",(()=>{cn(w,S)(new CustomEvent("unmount",{detail:{rerender:!1}}))})),m}/\.tpl-/.test(I)&&!Pe.get(I)&&await oo((0,l.loadBricksImperatively)([I],wi()),"brick",I,r.unknownBricks);const _=function(e,t){if(!e.includes(".")&&e.startsWith("tpl-")&&t){const n=`${t}.${e}`;if(Pe.get(n))return n}return!!Pe.get(e)&&e}(I,null===(f=S.app)||void 0===f?void 0:f.id);if(_){var P;const e=null!==(P=c.get(_))&&void 0!==P?P:0;if(e>=10)throw new Error(`Maximum custom template stack overflowed: "${_}"`);c.set(_,e+1)}else I.includes("-")&&!customElements.get(I)&&(I===Ur?customElements.get(Ur)||customElements.define(Ur,Wr):v.blockingList.push(oo((0,l.enqueueStableLoadBricks)([I],wi()),"brick",I,r.unknownBricks)));let M,x;if(I===Ur){var L,B;({formData:M,...x}=null!==(L=t.properties)&&void 0!==L?L:{}),null!==(B=t.properties)&&void 0!==B&&B.compute&&(M=await vt(M,S))}else{var $;if(S.inUseBrick){const e=t.transform;e&&(Re(A,"`useBrick.transform`",'please use "properties" instead, check your useBrick:',t),A||(x={...t.properties,...e}))}null!==($=x)&&void 0!==$||(x=t.properties)}const N=[],U=function(e,t,n){return(0,u.isObject)(e)?Object.entries(e).map((e=>{let[r,o]=e;const{contextNames:i,stateNames:s,formStateNames:a}=At(o);return(i||s||a)&&n.push({contextNames:i,stateNames:s,formStateNames:a,propName:r,propValue:o}),[r,vt(o,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===r?pt.USE_BRICK:pt.INITIAL})]})):[]}(x,S,N),F=t[Bt];F&&U.push(...F);const D="script"===I;if(D||"link"===I){const e=await It(U);if(D?e.src:"stylesheet"===e.rel&&e.href){var j;const t=null!==(j=window.PUBLIC_ROOT)&&void 0!==j?j:"";if(D){const{src:n,...r}=e;await oo((0,l.loadScript)(n,t,r),"script",n,"silent")}else{const{href:n,...r}=e;await oo((0,l.loadStyle)(n,t,r),"stylesheet",n,"silent")}return v}}const K={tag:Tn.BRICK,type:_||I,return:e,slotId:s,events:t.events,runtimeContext:S,portal:t.portal,iid:t.iid,ref:t.ref};v.node=K;const V=(0,T.strictCollectMemberUsage)([t.events,t.lifeCycle],"PROCESSORS",2);V.size>0&&v.blockingList.push(oo((0,l.loadProcessorsImperatively)(V,wi()),"processors",[...V].join(", "),r.unknownBricks));const W=[];Rt(S,N,d);W.push((async()=>{K.properties=await It(U),function(e,t){for(const r of t){var n;const t=()=>{e.element&&Ot(e.element,{[r.propName]:r.propValue},e.runtimeContext)};if(null!==(n=e.disposes)&&void 0!==n||(e.disposes=[]),r.contextNames)for(const n of r.contextNames)e.disposes.push(e.runtimeContext.ctxStore.onChange(n,t));if(r.stateNames){const n=Me(e.runtimeContext,"STATE",`: "${r.propValue}"`);for(const o of r.stateNames)e.disposes.push(n.onChange(o,t))}if(r.formStateNames){const n=qe(e.runtimeContext,"FORM_STATE",`: "${r.propValue}"`);for(const o of r.formStateNames)e.disposes.push(n.onChange(o,t))}}}(K,N)})()),r.registerBrickLifeCycle(K,t.lifeCycle);let H,z=t;_?z=function(e,t,n,r,o){var i;const s=(0,h.uniqueId)("tpl-state-"),a={...n.runtimeContext,tplStateStoreId:s};delete a.forEachItem,delete a.forEachIndex,delete a.forEachSize,delete a.formStateStoreId;const c=new Pr("STATE",n,o,s);a.tplStateStoreMap.set(s,c),a.tplStateStoreScope&&a.tplStateStoreScope.push(c);const{bricks:l,proxy:u,state:d,contracts:p}=Pe.get(e);null==pi||null===(i=pi.flowApi)||void 0===i||i.collectWidgetContract(p),c.define(d,a,r);const{slots:f,children:v,...m}=t,g={...m,brick:e};n.tplHostMetadata={internalBricksByRef:new Map,tplStateStoreId:s,proxy:u};const w={properties:new Map,slots:new Map};if(null!=u&&u.properties)for(const[e,t]of Object.entries(u.properties)){let n=w.properties.get(t.ref);n||(n=[],w.properties.set(t.ref,n)),n.push({from:e,to:t})}if(null!=u&&u.slots)for(const[e,t]of Object.entries(u.slots)){let n=w.slots.get(t.ref);n||(n=[],w.slots.set(t.ref,n)),n.push({from:e,to:t})}const y={reversedProxies:w,asyncHostPropertyEntries:r,externalSlots:ro(v,f),tplStateStoreId:s,hostBrick:n,usedSlots:new Set};return g.slots={"":{type:"bricks",bricks:l.flatMap((e=>Nr(e,y)))}},g}(_,t,K,U,r):I===Ur&&(z=function(e,t,n,r,o){var i,s;const a="string"==typeof e?JSON.parse(e):e,c=(0,h.uniqueId)("form-state-"),l={...n.runtimeContext,formStateStoreId:c};delete l.forEachItem,delete l.forEachIndex,delete l.forEachSize,delete l.tplStateStoreId;const d=new Pr("FORM_STATE",void 0,o,c);l.formStateStoreMap.set(c,d),l.formStateStoreScope&&l.formStateStoreScope.push(d);const p=null!==(i=a.context)&&void 0!==i?i:[];p.some((e=>"params"===e.name))||p.push({name:"params"}),d.define(p,l,r);const f=jr(a.formSchema,a.fields,c);return Dr.includes(f.brick)&&t.events&&(f.events=function(e,t){const n=null!=e?e:{};for(const[e,r]of Object.entries(t))n[e]=(0,u.hasOwnProperty)(n,e)?[n[e],r].flat():r;return n}(f.events,t.events)),"boolean"!=typeof(null===(s=t.properties)||void 0===s?void 0:s.renderRoot)||t.properties.renderRoot?{...t,slots:void 0,children:[{brick:"eo-micro-view",properties:{style:{padding:"12px"}},children:[f]}]}:{...t,slots:void 0,children:[f]}}(M,t,K,U,r)),z.portal&&(K.slotId=void 0),_?(H={...S},delete H.forEachItem,delete H.forEachIndex,delete H.forEachSize):H=S;return W.push((async()=>{const e=ro(z.children,z.slots);if(!e)return;const t=new Map,n=await Promise.all(Object.entries(e).map(((e,n)=>{let[s,a]=e;if("routes"!==a.type)return Xr(K,a.bricks,H,r,o,i,s,c,void 0,d);const l=o[o.length-1];return null!=l&&l.incrementalSubRoutes&&(t.set(n,s),r.performIncrementalRender(a,o,(async(e,t)=>{const{homepage:n}=H.app,{pathname:c}=e;if(!m(n,c)||!o.every((e=>{let r,o;return(r=Lt(e,n,t.pathname))&&(o=Lt(e,n,c))&&(e!==l||(0,h.isEqual)(r.params,o.params))})))return!1;const[u,d,p]=eo({...H,location:e,query:new URLSearchParams(e.search)});let f,v=!1,g=[];try{if(f=await Yr(K,a.routes,u,r,o,i,s,!0),f.route){if(r.reBailout(f))return!0;g=[...d,...p],await Zr(f,u,[u.ctxStore,...g])}await r.reMergeMenuRequestNodes(i,a.routes,f.menuRequestNode)}catch(e){console.error("Incremental sub-router failed:",e);const t=await r.reCatch(e,K);if(!t)return!0;({failed:v,output:f}=t),await r.reMergeMenuRequestNodes(i,a.routes,f.menuRequestNode)}if(r.reRender(s,[],f.node,K),!v){u.ctxStore.mountAsyncData(f.route);for(const e of g)e.mountAsyncData()}return!0}))),Yr(K,a.routes,H,r,o,i,s,void 0,d)}))),s={...v,node:void 0,blockingList:[],menuRequestNode:void 0};n.forEach(((e,n)=>{t.has(n)&&r.memoize(t.get(n),[],e.node,K),to(s,e),function(e,t){const n=t.menuRequestNode;if(n)if(e.menuRequestNode){let t=e.menuRequestNode;for(;t.sibling;)t=t.sibling;t.sibling=n}else e.menuRequestNode=n}(s,e)})),s.node&&(K.child=s.node),to(v,{...s,node:void 0}),no(i,v.menuRequestNode=s.menuRequestNode)})()),await Promise.all(W),v}(e,t,n,r,o,i,s,a,c,d)}catch(n){if(t.errorBoundary)return console.error("Error caught by error boundary:",n),{node:await Gr(n,e),blockingList:[]};throw n}}function Qr(e){return[e.ctxStore,...e.tplStateStoreMap.values(),...e.formStateStoreMap.values()]}function Zr(e,t,n){return(0,l.flushStableLoadBricks)(),Promise.all([...e.blockingList,...n.map((e=>e.waitForAll())),...t.pendingPermissionsPreCheck])}function eo(e){const t=[],n=[];return[{...e,tplStateStoreScope:t,formStateStoreScope:n},t,n]}function to(e,t){const{blockingList:n,node:r,menuRequestNode:o,hasTrackingControls:i,...s}=t;if(e.blockingList.push(...n),r)if(e.node){let t=e.node;for(;t.sibling;)t=t.sibling;t.sibling=r}else e.node=r;Object.assign(e,s)}function no(e,t){if(t)if(e.child){let n=e.child;for(;n.sibling;)n=n.sibling;n.sibling=t}else e.child=t}function ro(e,t){let n=t;if(Array.isArray(e)&&!n){n={};for(const{slot:t,...r}of e){const e=null!=t?t:"";(0,u.hasOwnProperty)(n,e)||(n[e]={type:"bricks",bricks:[]}),n[e].bricks.push(r)}}return n}function oo(e,t,n,r){return"silent"===r?e.catch((e=>{console.error('Load %s "%s" failed:',t,n,e)})):e}let io,so,ao;function co(){if(!io){if(io={isInIframe:!1,isInIframeOfSameSite:!1,isInIframeOfNext:!1,isInIframeOfVisualBuilder:!1,isInIframeOfLegacyConsole:!1},window!==window.parent){io.isInIframe=!0;try{if(window.origin===window.parent.origin){io.isInIframeOfSameSite=!0;const e="/next/"===f(),t=window.parent.location.pathname,n=t.startsWith("/next/");io.isInIframeOfNext=0==(Number(e)^Number(n));const r=n?"/next":"";io.isInIframeOfVisualBuilder=t.startsWith(`${r}/visual-builder/`)||t.startsWith(`${r}/visual-builder-`),io.isInIframeOfLegacyConsole=e&&!n}}catch{}}Object.freeze(io)}return io}function lo(e){var t;if(e.$$registerCustomTemplateProcessed)return;e.$$registerCustomTemplateProcessed=!0;const n=null===(t=e.meta)||void 0===t?void 0:t.customTemplates;if(Array.isArray(n))for(const t of n){const n=t.name.includes(".")?t.name:`${e.app.id}.${t.name}`;Pe.define(n,t)}}function uo(e){let t;t="8.2"===e?"v8-2":"v8",document.documentElement.dataset.ui=t}const po="basic.show-watermark";function fo(e){return!!e&&(e instanceof l.BrickLoadError||e instanceof O.HttpFetchError||e instanceof Error&&"ChunkLoadError"===e.name||e instanceof Event&&"error"===e.type&&e.target instanceof HTMLScriptElement)}const ho="reload-for-error-count",vo=2;function mo(e){if(/upchat/i.test(navigator.userAgent)&&fo(e)){var t;const e=+(null!==(t=sessionStorage.getItem(ho))&&void 0!==t?t:0);if(e<vo)return sessionStorage.setItem(ho,String(e+1)),!0;go()}return!1}function go(){sessionStorage.removeItem(ho)}var wo=new WeakMap,yo=new WeakMap,Eo=new WeakMap,bo=new WeakMap,So=new WeakMap,Ao=new WeakMap,ko=new WeakMap,Io=new WeakMap,Co=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,To=new WeakMap,_o=new WeakSet;class Po{constructor(e){(0,I.A)(this,_o),(0,i.A)(this,wo,void 0),(0,i.A)(this,yo,!1),(0,i.A)(this,Eo,void 0),(0,i.A)(this,bo,void 0),(0,i.A)(this,So,void 0),(0,i.A)(this,Ao,new Set),(0,i.A)(this,ko,0),(0,i.A)(this,Io,void 0),(0,i.A)(this,Co,void 0),(0,i.A)(this,Oo,void 0),(0,i.A)(this,Ro,void 0),(0,i.A)(this,To,!1),(0,s.A)(wo,this,e);const t=k();window.addEventListener("beforeunload",(e=>{(0,C.A)(_o,this,Mo).call(this,{})?(e.preventDefault(),e.returnValue=""):delete e.returnValue})),t.block(((e,t)=>(0,C.A)(_o,this,Mo).call(this,{location:e,action:t})))}getRenderId(){return(0,a.A)(Io,this)}getRuntimeContext(){return(0,a.A)(bo,this)}getRecentApps(){return{currentApp:(0,a.A)(Co,this),previousApp:(0,a.A)(Oo,this)}}getNavConfig(){return(0,a.A)(Ro,this)}bootstrap(){window.AbortController&&(so=new AbortController,O.http.interceptors.request.use((e=>{var t;return{...e,options:{...e.options,signal:null!==(t=e.options)&&void 0!==t&&t.noAbortOnRouteChange?null:so.signal}}})));const e=k();let t=e.location;return e.listen(((e,n)=>{const r=t;t=e,(0,a.A)(yo,this)?(0,s.A)(Eo,this,{location:e,prevLocation:r,action:n}):(0,C.A)(_o,this,Lo).call(this,{location:e,prevLocation:r,action:n}).catch(en)})),(0,C.A)(_o,this,Lo).call(this,{location:e.location})}}function Mo(e){var t;const n=k(),r=n.getBlockMessage();null===(t=(0,a.A)(So,this))||void 0===t||t.dispatchBeforePageLeave(e);const o=n.getBlockMessage();return!r&&o&&n.unblock(),o}function xo(e,t,n){var r,o;if((0,s.A)(ko,this,(r=(0,a.A)(ko,this),o=r++,r)),o>10){const t=`Infinite redirect detected: from "${n.pathname}${n.search}${n.hash}" to "${e}"`;throw new Error(t)}k().replace(e,t)}async function Lo(e){(0,s.A)(yo,this,!0);try{await(0,C.A)(_o,this,Bo).call(this,e)}finally{if((0,s.A)(yo,this,!1),(0,a.A)(Eo,this)){const e=(0,a.A)(Eo,this);(0,s.A)(Eo,this,void 0),await(0,C.A)(_o,this,Lo).call(this,e)}}}async function Bo(e){let{location:t,prevLocation:n,action:r}=e;if(n){var o,i,s,c;let e;const u={hash:void 0,state:void 0};var l;if(void 0!==t.key&&("POP"!==r||void 0!==n.key&&!1!==(null===(o=n.state)||void 0===o?void 0:o.notify))||(u.key=void 0),((0,p.locationsAreEqual)({...n,...u},{...t,...u})||"POP"!==r&&!1===(null===(i=t.state)||void 0===i?void 0:i.notify))&&(e=!0),e||null!==(s=t.state)&&void 0!==s&&s.noIncremental||(0,a.A)(To,this)||(e=await(null===(l=(0,a.A)(So,this))||void 0===l?void 0:l.didPerformIncrementalRender(t,n))),e)return;if(so&&(so.abort(),so=new AbortController),null===(c=(0,a.A)(So,this))||void 0===c||c.dispatchPageLeave(),"POP"===r&&g(v((0,a.A)(wo,this),t.pathname)))return void window.location.reload();V("locationChange")}return(0,C.A)(_o,this,$o).call(this,t,!n)}async function $o(e,t){var n,r,o,i,c,u;const d=(0,s.A)(Io,this,(0,h.uniqueId)("render-id-")),p=null==pi||null===(n=pi.auth)||void 0===n||null===(r=n.isBlockedPath)||void 0===r?void 0:r.call(n,e.pathname);Je=new WeakSet,et.clear(),null==pi||null===(o=pi.flowApi)||void 0===o||o.clearCollectWidgetContract(),k().unblock();const f=null==pi||null===(i=pi.pageView)||void 0===i?void 0:i.create(),m=p?void 0:v((0,a.A)(wo,this),e.pathname),g=null===(c=(0,a.A)(bo,this))||void 0===c?void 0:c.app,w=null==m||null===(u=m.app)||void 0===u?void 0:u.id;window.BOOTSTRAP_UNION_FILE&&w&&w!==(null==g?void 0:g.id)&&function(e){const{appId:t,version:n}=e;window.APP_ROOT_TPL&&(window.APP_ID=t,window.APP_ROOT=window.APP_ROOT_TPL.replace("{id}",t).replace("{version}",n))}({appId:w,version:m.app.currentVersion}),null!=m&&m.app&&await async function(e){if(!e.$$fulfilled)return e.$$fulfilling||(e.$$fulfilling=async function(e){var t;await(null==pi||null===(t=pi.fulfilStoryboard)||void 0===t?void 0:t.call(pi,e)),L(e),Object.assign(e,{$$fulfilled:!0,$$fulfilling:null})}(e)),e.$$fulfilling}(m);const y=(0,s.A)(Co,this,null==m?void 0:m.app);!function(){var e,t,n,r,o,i,s,a;const c=hi().getFeatureFlags(),u=hi().getMiscSettings();if(!c["show-watermark"])return;const d="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]),p=null!==(n=null==pi||null===(r=pi.auth)||void 0===r||null===(r=r.getAuth())||void 0===r?void 0:r.username)&&void 0!==n?n:"",f=null!==(o=u.watermarkConfig)&&void 0!==o?o:{flags:{}},v=[..."string"==typeof f.content?[f.content]:null!==(i=f.content)&&void 0!==i?i:[],null!==(s=f.flags)&&void 0!==s&&s["show-development"]&&d?"Development":"",null!==(a=f.flags)&&void 0!==a&&a["show-user"]?p:""].filter(Boolean);if(0===v.length)return;const m={content:v,zIndex:1001,width:200,font:{fontSize:28},gap:[190,190],...(0,h.omit)(f,["content","flags"])};ao?ao.resolve(m):(0,l.loadBricksImperatively)([po],wi()).then((()=>{ao=document.createElement(po),ao.resolve(m)}),(e=>{console.error("Load watermark service failed:",e)}))}();const E=g&&y?g.id!==y.id:g!==y;(0,R.clearExpressionASTCache)(),E&&(0,R.clearFunctionASTCache)();const b=hi().getFeatureFlags(),S=(0,a.A)(So,this),A=(t,n)=>{null==f||f({status:"redirected"}),(0,a.A)(Ao,this).add(S),(0,C.A)(_o,this,xo).call(this,t,n,e)},I=()=>{const t=b["sso-enabled"]?"/sso-auth/login":"/auth/login";qt(e),A(t,{from:e})},T=document.querySelector("#main-mount-point"),_=document.querySelector("#portal-mount-point"),P={tag:Tn.ROOT,container:T,createPortal:_},M=()=>{var e;_n(T),_n(_),(0,a.A)(Ao,this).add(S);for(const e of(0,a.A)(Ao,this))e&&(e.dispatchOnUnmount(),e.dispose());(0,a.A)(Ao,this).clear(),null==pi||null===(e=pi.messageDispatcher)||void 0===e||e.reset(),E&&((0,s.A)(Oo,this,g),window.dispatchEvent(new CustomEvent("app.change",{detail:{previousApp:g,currentApp:y}})))};if(Q(y&&(re()[y.id]||y.theme)||"light"),ie("default"),y){var x,B,$,N,U,F;null==pi||null===(x=pi.checkInstalledApps)||void 0===x||x.preCheckInstalledApps(m,(e=>!!Ai(e)));const n={bailout:e=>e.unauthenticated?(I(),!0):e.redirect?(A(e.redirect.path,e.redirect.state),!0):void(0,s.A)(ko,this,0),mergeMenus:async e=>{const t=await Promise.all(e);(0,s.A)(Ro,this,function(e){const t={breadcrumb:[]};for(const n of e){const{breadcrumb:e}=n;e&&(e.overwrite?t.breadcrumb=e.items:t.breadcrumb.push(...e.items))}return t}(t)),window.dispatchEvent(new CustomEvent("navConfig.change",{detail:(0,a.A)(Ro,this)}))},catch:async(t,n,r,o)=>{if(!Xt(t)||window.NO_AUTH_GUARD){if(!(t instanceof O.HttpAbortError)){const i=hi().getMiscSettings().noAuthGuardLoginPath;if(Xt(t)&&i)return void A(i,{from:e});if(r)throw t;return!o&&mo(t)?void window.location.reload():{failed:!0,output:{node:await Gr(t,n,!o),blockingList:[]}}}(0,a.A)(Ao,this).add(S)}else I()}},r=(0,s.A)(So,this,new Wn("page",{routeHelper:n,renderId:d})),o=(0,s.A)(bo,this,{app:y,location:e,query:new URLSearchParams(e.search),flags:b,sys:{...null==pi||null===(B=pi.auth)||void 0===B?void 0:B.getAuth(),...co(),settings:{brand:hi().getBrandSettings()}},ctxStore:new Pr("CTX",void 0,r),pendingPermissionsPreCheck:[null==pi||null===($=pi.checkPermissions)||void 0===$?void 0:$.preCheckPermissions(m)],tplStateStoreMap:new Map,formStateStoreMap:new Map});(0,s.A)(Ro,this,void 0),lo(m),ve(null===(N=m.meta)||void 0===N?void 0:N.functions,y),null==pi||null===(U=pi.flowApi)||void 0===U||U.collectContract(null===(F=m.meta)||void 0===F?void 0:F.contracts);let i,c=!1,l=[];try{tr.clear();const e={};if(i=await Yr(P,function(e){if(window.parent===window)return e;let t=e;const n=(0,h.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/template-preview/")));t=[...t.slice(0,n+1),{path:"${APP.homepage}/_dev_only_/template-preview/:templateId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(n+1)];const r=(0,h.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/snippet-preview/")));return t=[...t.slice(0,r+1),{path:"${APP.homepage}/_dev_only_/snippet-preview/:snippetId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(r+1)],t}(m.routes),o,r,[],e),n.bailout(i))return;l=Qr(o),await Zr(i,o,l),e.child=i.menuRequestNode,r.setInitialMenuRequestNode(e),await n.mergeMenus(r.getMenuRequests())}catch(e){console.error("Router failed:",e),t&&(0,s.A)(To,this,!0);const r=await n.catch(e,P,t);if(!r)return;({failed:c,output:i}=r)}if(go(),P.child=i.node,(0,s.A)(To,this,!1),M(),i.route&&"routes"!==i.route.type||c){if(c||r.dispatchBeforePageLoad(),te(),ae(),uo(null==y?void 0:y.uiVersion),Pn(P),window.scrollTo(0,0),c)null==f||f({status:"failed"});else{r.dispatchPageLoad(),r.dispatchAnchorLoad(),r.dispatchOnMount(),r.initializeScrollIntoView(),r.initializeMediaChange(),r.initializeMessageDispatcher();for(const e of l)e.mountAsyncData();null==f||f({status:"ok",path:i.path,pageTitle:document.title})}return void V("rendered")}}else{if(!window.NO_AUTH_GUARD&&null!=pi&&pi.auth&&!pi.auth.isLoggedIn())return void I();M()}te(),ae();const D=await Gr(new zr(p?"page blocked":y?"page not found":"app not found"),P,!0);P.child=D,Pn(P),window.scrollTo(0,0),null==f||f({status:p?"blocked":"not-found"}),V("rendered")}const No="undefined"!=typeof BRICK_PACKAGES?BRICK_PACKAGES:null;var Uo=n(4579),Fo=n(4501),Do=2,jo=.16,Ko=.05,Vo=.05,Wo=.15,Ho=5,zo=4,Go=[{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 qo(e){var t=e.r,n=e.g,r=e.b,o=(0,Uo.wE)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function Yo(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,Uo.Ob)(t,n,r,!1))}function Xo(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Do*t:Math.round(e.h)+Do*t:n?Math.round(e.h)+Do*t:Math.round(e.h)-Do*t)<0?r+=360:r>=360&&(r-=360),r}function Jo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-jo*t:t===zo?e.s+jo:e.s+Ko*t)>1&&(r=1),n&&t===Ho&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Qo(e,t,n){var r;return(r=n?e.v+Vo*t:e.v-Wo*t)>1&&(r=1),Number(r.toFixed(2))}function Zo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,Fo.RO)(e),o=Ho;o>0;o-=1){var i=qo(r),s=Yo((0,Fo.RO)({h:Xo(i,o,!0),s:Jo(i,o,!0),v:Qo(i,o,!0)}));n.push(s)}n.push(Yo(r));for(var a=1;a<=zo;a+=1){var c=qo(r),l=Yo((0,Fo.RO)({h:Xo(c,a),s:Jo(c,a),v:Qo(c,a)}));n.push(l)}return"dark"===t.theme?Go.map((function(e){var r,o,i,s=e.index,a=e.opacity;return Yo((r=(0,Fo.RO)(t.backgroundColor||"#141414"),i=100*a/100,{r:((o=(0,Fo.RO)(n[s])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ei={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"},ti={},ni={};function ri(e){return':root,\n[data-override-theme="light"] {\n'.concat(e,"}")}function oi(e){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(e,"}")}function ii(e){return e.match(/[0-9a-fA-F]{2}/g).map((e=>parseInt(e,16))).join(", ")}function si(e,t,n){return"dark"===t?Zo(e,{theme:t,backgroundColor:n})[5]:e}function ai(e){const t=[];if(["light","dark"].forEach((n=>{if(e[n])switch(e.type){case"brandColor":t.push(function(e,t){return("dark"===e?oi:ri)("string"==typeof(n=t)?" --color-brand: ".concat(n,";\n"):[" --color-brand: ".concat(n.default,";")," --color-brand-hover: ".concat(n.hover,";")," --color-brand-active: ".concat(n.active,";"),""].join("\n"));var n}(n,e[n]));break;case"baseColors":t.push(function(e,t,n){return("dark"===e?oi:ri)("".concat(function(e,t){return Object.entries(e).flatMap((e=>{var[n,r]=e;return function(e){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e))throw new Error("Invalid base color name: ".concat(JSON.stringify(e)))}(n),r.map(((e,r)=>[" --palette-".concat(n,"-").concat(r+1,"-channel: ").concat(ii(e),";")].concat("dark"===t?[]:" --palette-".concat(n,"-").concat(r+1,": rgb(var(--palette-").concat(n,"-").concat(r+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(e,t,n){return Object.fromEntries(Object.entries(e).map((e=>{var[r,o]=e;return[r,Zo(o,"dark"===t?{theme:t,backgroundColor:n}:void 0)]})))}(t,e,n),e),"\n").concat(function(e,t,n){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((r=>{var[o,i]=r;return[" --theme-".concat(o,"-color-rgb-channel: ").concat(ii(si(t[i],e,n)),";"),..."dark"===e?[]:[" --theme-".concat(o,"-color: var(--palette-").concat(i,"-6);")," --theme-".concat(o,"-border-color: var(--palette-").concat(i,"-3);")]," --theme-".concat(o,"-background: var(--palette-").concat(i,"-").concat("dark"===e?2:1,");"),""]})).join("\n")}(e,t,n)))}(n,e[n],e.backgroundColor));break;case"variables":t.push(function(e,t){return("dark"===e?oi:ri)(function(e){return Object.entries(e).map((e=>{var[t,n]=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(n,";")})).concat("").join("\n")}(t))}(n,e[n]))}})),t.length>0){const e=document.createElement("style");return e.textContent=t.join("\n\n"),document.head.appendChild(e),()=>{e.remove()}}}let ci,li,ui,di,pi;function fi(e){if(ci)throw new Error("Cannot create multiple runtimes");return window.addEventListener("message",(e=>{let{data:t}=e;if((null==t?void 0:t.source)!==U)return;const n=t.payload;switch(null==n?void 0:n.type){case F:K=n.active;break;case D:j=n.panel}})),pi=null==e?void 0:e.hooks,(0,c.initializeI18n)(Wt,Ht),d.locale(c.i18n.language),c.i18n.on("languageChanged",(()=>{d.locale(c.i18n.language)})),A(),ci=new gi,ci}Object.keys(ei).forEach((function(e){ti[e]=Zo(ei[e]),ti[e].primary=ti[e][5],ni[e]=Zo(ei[e],{theme:"dark",backgroundColor:"#141414"}),ni[e].primary=ni[e][5]})),ti.red,ti.volcano,ti.gold,ti.orange,ti.yellow,ti.lime,ti.green,ti.cyan,ti.blue,ti.geekblue,ti.purple,ti.magenta,ti.grey;const hi=function(){const e=S();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 ci};var vi=new WeakMap,mi=new WeakMap;class gi{constructor(){(0,i.A)(this,vi,!1),(0,i.A)(this,mi,!1),(0,o.A)(this,"version",3)}initialize(e){var t;if((0,a.A)(vi,this))throw new Error("The runtime cannot be initialized more than once");(0,s.A)(vi,this,!0),function(e){(0,u.isObject)(e.settings)&&(0,u.deepFreeze)(e.settings),e.brickPackages&&(0,u.deepFreeze)(e.brickPackages)}(e),li=e;const{notification:n,dialog:r}=yi();var o;!1!==n&&(o=null!=n?n:"basic.show-notification",(0,this.loadBricks)([o]).then((()=>{Qt=document.createElement(o)}),(e=>{console.error("Load notification service failed:",e)}))),!1!==r&&function(e,t){t([e]).then((()=>{zt=document.createElement(e)}),(e=>{console.error("Load dialog service failed:",e)}))}(null!=r?r:"basic.show-dialog",this.loadBricks),function(e){e&&(e.brandColor?ai({type:"brandColor",...e.brandColor}):e.baseColors?ai({type:"baseColors",...e.baseColors}):e.variables&&ai({type:"variables",...e.variables}))}(null===(t=e.settings)||void 0===t||null===(t=t.misc)||void 0===t?void 0:t.theme)}async bootstrap(e){if(e&&this.initialize(e),(0,a.A)(mi,this))throw new Error("The runtime cannot be bootstrapped more than once");(0,s.A)(mi,this,!0),ui=new Po(li.storyboards),await ui.bootstrap()}getRecentApps(){var e,t;return null!==(e=null===(t=ui)||void 0===t?void 0:t.getRecentApps())&&void 0!==e?e:{}}getCurrentApp(){var e;return null===(e=ui)||void 0===e?void 0:e.getRecentApps().currentApp}hasInstalledApp(e,t){return Ge(e,t)}getFeatureFlags(){var e,t;return{...null===(e=li)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.featureFlags,...null===(t=ui)||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{...null===(e=li)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.misc,...null===(t=ui)||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{base_title:"DevOps 管理专家",...null===(e=li)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.brand}}getLaunchpadSettings(){var e;return{columns:7,rows:4,...null===(e=li)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.launchpad}}getDesktops(){var e,t;return null!==(e=null===(t=li)||void 0===t?void 0:t.desktops)&&void 0!==e?e:[]}getLaunchpadSiteMap(){var e,t;return null!==(e=null===(t=li)||void 0===t?void 0:t.siteSort)&&void 0!==e?e:[]}toggleLaunchpadEffect(e){document.body.classList.toggle("launchpad-open",e)}applyPageTitle(e){var t;const n=this.getBrandSettings().base_title;document.title=(null===(t=ui)||void 0===t||null===(t=t.getRecentApps().currentApp)||void 0===t?void 0:t.localeTitle)||(e?`${e} - ${n}`:n)}getNavConfig(){var e;return null===(e=ui)||void 0===e?void 0:e.getNavConfig()}loadBricks(e){return(0,l.loadBricksImperatively)(e,wi())}}function wi(){var e,t,n,r,o;return null!==(e=di)&&void 0!==e?e:di=function(e,t){if(null==t||!t.length)return e;const n=new Map;return[...t,...e].forEach((e=>{const t=e.filePath.split("/")[1];n.has(t)||n.set(t,e)})),Array.from(n.values())}(null!==(t=null!==(n=null!==(r=null===(o=li)||void 0===o?void 0:o.brickPackages)&&void 0!==r?r:No)&&void 0!==n?n:window.STANDALONE_BRICK_PACKAGES)&&void 0!==t?t:[],window.PUBLIC_DEPS)}function yi(){var e,t;return null!==(e=null===(t=li)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.presetBricks)&&void 0!==e?e:{}}function Ei(){var e;return null===(e=ui)||void 0===e?void 0:e.getRenderId()}function bi(){var e;return null===(e=ui)||void 0===e?void 0:e.getRuntimeContext()}function Si(e){var t;return null===(t=li)||void 0===t||null===(t=t.storyboards)||void 0===t?void 0:t.find((t=>t.app.id===e))}function Ai(e){var t;return null===(t=Si(e))||void 0===t?void 0:t.app}function ki(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==pi||null===(e=pi.auth)||void 0===e||null===(t=e.authenticate)||void 0===t||t.call(e,...r)}function Ii(){var e;return null==pi||null===(e=pi.auth)||void 0===e?void 0:e.getAuth()}function Ci(){var e,t;return null==pi||null===(e=pi.auth)||void 0===e||null===(t=e.logout)||void 0===t?void 0:t.call(e)}function Oi(){var e;return null==pi||null===(e=pi.auth)||void 0===e?void 0:e.isLoggedIn()}var Ri=new WeakMap;const Ti=new class{constructor(){(0,i.A)(this,Ri,new Map)}define(e,t){(0,a.A)(Ri,this).has(e)?console.error(`Custom editor of "${e}" already registered`):(0,a.A)(Ri,this).set(e,t)}get(e){return(0,a.A)(Ri,this).get(e)}};async function _i(e,t,n){return nt(await Xe(e),e,"resolve",t,n)}function Pi(e){let t,{portal:n,scope:r="fragment",unknownBricks:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n;t=n||(()=>(i=document.createElement("div"),i.style.position="absolute",i.style.width=i.style.height="0",document.body.append(i),i));let s,a,l=!1;return{async render(n){let{theme:u,uiVersion:d,language:p,context:f,functions:v,templates:m,i18n:g,url:w,app:y}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l)throw new Error("The root is unmounted and cannot be rendered any more");const E=[].concat(n),b=s,S=(0,h.uniqueId)("render-id-");s=new Wn(r,{unknownBricks:o,renderId:S});const A={ctxStore:new Pr("CTX",void 0,s),pendingPermissionsPreCheck:[],tplStateStoreMap:new Map,formStateStoreMap:new Map};if(w){const e=new URL(w);A.query=e.searchParams,A.location={pathname:e.pathname,search:e.search,hash:e.hash,state:void 0}}const k={tag:Tn.ROOT,container:e,createPortal:t};if("page"===r){var I,C;Q(null!=u?u:"light"),ie("default"),uo(d),p&&await c.i18n.changeLanguage(p),null!==(I=y)&&void 0!==I||(y={id:"demo",homepage:"/demo"}),A.app=y;const e={app:y,meta:{i18n:g,customTemplates:m}};null===(C=a)||void 0===C||C(),a=L(e),lo(e),ve(v,y)}A.ctxStore.define(f,A);let O,R=!1,T=[];try{O=await Xr(k,E,A,s,[],{}),T=Qr(A),await Zr(O,A,T)}catch(e){R=!0,O={node:await Gr(e,k,"page"===r),blockingList:[]}}if(k.child=O.node,null==b||b.dispatchOnUnmount(),null==b||b.dispose(),_n(e),i&&_n(i),"page"===r&&(R||s.dispatchBeforePageLoad(),te(),ae()),Pn(k),"page"===r&&window.scrollTo(0,0),!R){for(const e of T)e.mountAsyncData();"page"===r&&s.dispatchPageLoad(),s.dispatchOnMount(),s.initializeScrollIntoView(),s.initializeMediaChange(),s.initializeMessageDispatcher()}},unmount(){l||(l=!0,_n(e),i&&(_n(i),n||i.remove()))}}}function Mi(e){let{useRealTimeQuery:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...bi()};t&&(n.query=new URLSearchParams(k().location.search));const r=t=>{if("string"==typeof t){if((0,R.isEvaluable)(t)){const e=ut(t,n);return Qe(e),e}return(0,_.inject)(t,n)}return!(0,u.isObject)(t)||Ze(e)?t:Array.isArray(t)?t.map((e=>r(e))):Object.fromEntries(Object.entries(t).map((e=>{let[t,n]=e;return[r(t),r(n)]})))};return r(e)}const xi=[];function Li(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,t=-1;const n=()=>{if(t>-1){const e=xi.indexOf(t);e>-1&&xi.splice(e,1)}};return{push:()=>{var r;return n(),t=(null!==(r=xi[xi.length-1])&&void 0!==r?r:-1)+1,xi.push(t),t+e},pull:n}}}}]);
|
|
3
|
-
//# sourceMappingURL=7643.32857740.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[790,5552,3171],{5552:(e,n,t)=>{t.r(n),t.d(n,{i18n:()=>d,i18nText:()=>l,initializeI18n:()=>o});var i=t(2350),s=t(8799),r=t(7072);let u=!1;const a=new Set;function o(e,n){if(u||(u=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&n&&!a.has(e)){a.add(e);for(const[t,i]of Object.entries(n))s.i18n.addResourceBundle(t,e,i)}}var c=t(6878);function l(e){var n;if(!e)return;const t=null!==(n=s.i18n.language)&&void 0!==n?n:"zh-CN";if((0,c.hasOwnProperty)(e,t))return e[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(e,i)?e[i]:void 0;const r=`${i}-`;for(const n of Object.keys(e))if(n.startsWith(r))return e[n]}const d=i.default}}]);
|
|
2
|
-
//# sourceMappingURL=790.ad2cdfc8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/790.ad2cdfc8.js","mappings":"gQAEA,IAAIA,GAAc,EAClB,MAAMC,EAAwB,IAAIC,IAC3B,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAAjD,CAGAH,EAAsBmB,IAAIhB,GAC1B,IAAK,MAAOiB,EAAMH,KAAcI,OAAOC,QAAQlB,GAC7C,EAAAC,KAAKkB,kBAAkBH,EAAMjB,EAAIc,EAHnC,CAKF,C,cCjCO,SAASO,EAASC,GACvB,IAAIC,EACJ,IAAKD,EACH,OAEF,MAAME,EAAgD,QAApCD,EAAiB,EAAArB,KAAKsB,gBAAyC,IAAnBD,EAA4BA,EAAiB,QAE3G,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,MAAME,EAAkBF,EAASG,MAAM,KAAK,GAC5C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,MAAMC,EAAS,GAAGH,KAClB,IAAK,MAAMI,KAAOZ,OAAOa,KAAKT,GAC5B,GAAIQ,EAAIE,WAAWH,GACjB,OAAOP,EAAKQ,EAGlB,CC3BO,MAAM5B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nlet initialized = false;\nconst initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (const [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n const language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n const primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n const prefix = `${primaryLanguage}-`;\n for (const key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport const i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","add","lang","Object","entries","addResourceBundle","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","key","keys","startsWith"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8989,4586],{2559:(t,r,e)=>{function s(t,r,e){if("function"==typeof t?t===r:t.has(r))return arguments.length<3?r:e;throw new TypeError("Private element is not present on this object")}e.d(r,{A:()=>s})},2016:(t,r,e)=>{function s(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.d(r,{A:()=>s})},829:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(2559);function o(t,r){return t.get((0,s.A)(t,r))}},918:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(2016);function o(t,r,e){(0,s.A)(t,r),r.set(t,e)}},6121:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(2559);function o(t,r,e){return t.set((0,s.A)(t,r),e),e}},4635:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(2016);function o(t,r){(0,s.A)(t,r),r.add(t)}},4586:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(1369);function o(t,r,e){return(r=(0,s.A)(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},1369:(t,r,e)=>{e.d(r,{A:()=>o});var s=e(7545);function o(t){var r=function(t,r){if("object"!=(0,s.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=(0,s.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,s.A)(r)?r:r+""}},7545:(t,r,e)=>{function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}e.d(r,{A:()=>s})},8989:(t,r,e)=>{e.r(r),e.d(r,{HttpAbortError:()=>I,HttpFetchError:()=>q,HttpParseError:()=>F,HttpResponseError:()=>D,createHttpInstance:()=>L,defaultAdapter:()=>B,fetch:()=>W,http:()=>U,isHttpAbortError:()=>J});var s={};e.r(s),e.d(s,{HttpAbortError:()=>f,HttpFetchError:()=>l,HttpParseError:()=>d,HttpResponseError:()=>p,createHttpInstance:()=>x,defaultAdapter:()=>H,fetch:()=>o,getUrlWithParams:()=>w,http:()=>j,isHttpAbortError:()=>b});const o=(t,r)=>{const e=new Request(t,Object.assign({credentials:"same-origin"},r));return self.fetch(e)};var n=e(4635),a=e(918),i=e(4586),c=e(829),u=e(2559),h=e(6121);class l extends Error{constructor(t){super(t),this.name="HttpFetchError",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}class p extends Error{constructor(t,r){super(t.statusText),(0,i.A)(this,"response",void 0),(0,i.A)(this,"responseJson",void 0),this.name="HttpResponseError",Error.captureStackTrace&&Error.captureStackTrace(this,p),this.response=t,this.responseJson=r}}class d extends Error{constructor(t){super(t.statusText),(0,i.A)(this,"response",void 0),this.name="HttpParseError",Error.captureStackTrace&&Error.captureStackTrace(this,d),this.response=t}}class f extends Error{constructor(t){super(t),this.name="HttpAbortError"}}class A{constructor(){(0,i.A)(this,"handlers",[])}use(t,r){return this.handlers.push({fulfilled:t,rejected:r}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}forEach(t){this.handlers.forEach((r=>{null!==r&&t(r)}))}}function E(t){return null==t}const m=document.querySelector("base"),v=m?m.href:location.origin+"/",b=t=>t instanceof DOMException&&20===t.code,y=async(t,r,e)=>new Promise((async(s,n)=>{let a;e.url=t;let i,{responseType:c}=e.options||{};c||(c="json");try{a=await o(t,r)}catch(t){return void n(b(t)?new f(t.toString()):new l(t.toString()))}if(a.ok){try{i=await a[c]()}catch(t){return void n(b(t)?new f(t.toString()):new d(a))}s({status:a.status,statusText:a.statusText,headers:a.headers,data:i})}else{let t;try{t=await a.json()}catch{}n(new p(a,t))}})),w=(t,r)=>{if(r){const e=new URL(t,v);r instanceof URLSearchParams?r.forEach((function(t,r){e.searchParams.append(r,t)})):Object.entries(r).forEach((t=>{let[r,s]=t;Array.isArray(s)?s.forEach((t=>{e.searchParams.append(r,E(t)?"":t)})):e.searchParams.append(r,E(s)?"":s)}));const{href:s}=e;return s.startsWith(v)?s.substr(v.length):s}return t},T=(t,r)=>{if(void 0!==t){const e=new Headers(r||{}),s="Content-Type";let o=t;return e.has(s)||("string"==typeof t?e.set(s,"application/x-www-form-urlencoded"):t instanceof FormData||(e.set(s,"application/json"),o=JSON.stringify(t))),{body:o,headers:e}}return{headers:r}},H=t=>{const{url:r,method:e,data:s}=t;return["DELETE","GET","HEAD"].includes(t.method)?((t,r,e)=>{const{params:s,responseType:o,interceptorParams:n,observe:a,noAbortOnRouteChange:i,useCache:c,...u}=e.options||{};return y(w(r,s),{...u,method:t},e)})(e,r,t):((t,r,e,s)=>{const{params:o,headers:n,responseType:a,interceptorParams:i,observe:c,noAbortOnRouteChange:u,useCache:h,...l}=s.options||{};return y(w(r,o),{...l,method:t,...T(e,n)},s)})(e,r,s,t)};var g=new WeakMap,S=new WeakSet;class P{constructor(t){var r=this;(0,n.A)(this,S),(0,i.A)(this,"interceptors",void 0),(0,a.A)(this,g,H),(0,i.A)(this,"request",(async(t,r,e)=>{const{body:s,method:o,...n}=r||{};return(0,u.A)(S,this,k).call(this,{url:t,data:s,method:o||"GET",options:{...e||{},...n}})})),(0,i.A)(this,"simpleRequest",(function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,u.A)(S,r,k).call(r,{url:e,method:t,options:s})})),(0,i.A)(this,"requestWithBody",(function(t,e,s){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,u.A)(S,r,k).call(r,{url:e,method:t,data:s,options:o})})),this.interceptors={request:new A,response:new A},null!=t&&t.adapter&&(0,h.A)(g,this,t.adapter)}getUrlWithParams(t,r){return w(t,r)}getBodyAndHeaders(t,r){return T(t,r)}get(t,r){return(0,u.A)(S,this,k).call(this,{url:t,method:"GET",options:r})}delete(t,r){return(0,u.A)(S,this,k).call(this,{url:t,method:"DELETE",options:r})}head(t,r){return(0,u.A)(S,this,k).call(this,{url:t,method:"HEAD",options:r})}post(t,r,e){return(0,u.A)(S,this,k).call(this,{url:t,method:"POST",data:r,options:e})}put(t,r,e){return(0,u.A)(S,this,k).call(this,{url:t,method:"PUT",data:r,options:e})}patch(t,r,e){return(0,u.A)(S,this,k).call(this,{url:t,method:"PATCH",data:r,options:e})}}function k(t){const r=[];let e=Promise.resolve(t);for(this.interceptors.request.forEach((t=>{r.push(t.fulfilled,t.rejected)})),r.push((t=>(0,c.A)(g,this).call(this,t)),void 0),this.interceptors.response.forEach((e=>{r.push((r=>{var s;return null===(s=e.fulfilled)||void 0===s?void 0:s.call(e,r,t)}),(r=>{var s;return null===(s=e.rejected)||void 0===s?void 0:s.call(e,r,t)}))})),r.push((r=>{var e;return"response"===(null===(e=t.options)||void 0===e?void 0:e.observe)?r:r.data}),void 0);r.length;)e=e.then(r.shift(),r.shift());return e}let j=new P;function x(t){j=new P(t)}var R;let C,_;const{dll:O}=window;C=O&&null!==(R=window.BRICK_NEXT_VERSIONS)&&void 0!==R&&null!==(R=R["brick-container"])&&void 0!==R&&R.startsWith("2.")&&(_=O("JxWY"))?_:s;const{fetch:W,HttpFetchError:q,HttpResponseError:D,HttpParseError:F,HttpAbortError:I,http:U,isHttpAbortError:J,createHttpInstance:L,defaultAdapter:B}=C}}]);
|
|
2
|
-
//# sourceMappingURL=8989.74e3337d.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see contract-select.cceb7453.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3046,4586,2052],{1722:(e,t,n)=>{n.d(t,{I:()=>a,K:()=>r,NS:()=>i});let r=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({});const i="bricks/visual-builder/contract-select",a={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}}},4680:(e,t,n)=>{n.r(t),n.d(t,{EoContractSelect:()=>U,EoContractSelectComponent:()=>re,checkContractRule:()=>ne});var r,i=n(4586),a=n(4635),o=n(918),s=n(6902),c=n(5536),l=n(6121),u=n(829),h=n(2740),f=n(8769),d=n.n(f),p=n(2786),A=n(3049),v=n(950),m=(n(6477),n(6213)),g=n(1030),S=n(426),b=n(3065),T=n(1722),y=n(5502),C=n(8799),E=n(2480);let w,_,N,I,O,k,P,R,x,F,B,M,W,j,z;(0,y.initializeReactI18n)(T.NS,T.I);const{defineElement:X,property:D,event:L}=(0,p.createDecorators)(),$=(0,A.wrapBrick)("eo-form-item"),q=(0,A.wrapBrick)("eo-auto-complete",{onChange:"change"});let U;var G=new WeakMap,V=new WeakMap,K=new WeakMap,H=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakSet;class Z extends S.N{constructor(){super(...arguments),(0,a.A)(this,Y),(0,o.A)(this,G,_(this)),(0,o.A)(this,V,(N(this),I(this))),(0,o.A)(this,K,(O(this),k(this))),(0,o.A)(this,H,(P(this),R(this))),(0,o.A)(this,J,(x(this),F(this))),(0,o.A)(this,Q,(B(this),M(this))),(0,i.A)(this,"handleChange",(z(this),e=>{(0,c.A)(Y,this,W).emit(e)}))}get name(){return(0,u.A)(G,this)}set name(e){(0,l.A)(G,this,e)}get required(){return(0,u.A)(V,this)}set required(e){(0,l.A)(V,this,e)}get label(){return(0,u.A)(K,this)}set label(e){(0,l.A)(K,this,e)}get value(){return(0,u.A)(H,this)}set value(e){(0,l.A)(H,this,e)}get suffix(){return(0,u.A)(J,this)}set suffix(e){(0,l.A)(J,this,e)}render(){return d().createElement($,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:ne},d().createElement(re,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}}function ee(e){if("string"!=typeof e)return{name:"",version:""};const[t,n]=e.split(":");return{name:t,version:n}}function te(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function ne(e){return(0,g.isNil)(e)||te(e)?"":C.i18n.t(`${T.NS}:${T.K.CONTRACT_VALIDATE_MESSAGE}`)}function re(e){let{value:t,inputStyle:n,validateState:r,suffix:i,onChange:a}=e;const[o,s]=(0,f.useState)(),[c,l]=(0,f.useState)(20),u=(0,b.E)({q:o,pageSize:c}),[h,p]=(0,f.useState)(ee(t)),[A,m]=(0,f.useState)([]);(0,f.useEffect)((()=>{p(ee(t))}),[t]);const S=(0,f.useMemo)((()=>(0,g.debounce)((e=>{s(e)}),200)),[]);return d().createElement("div",{className:"contract-wrapper"},d().createElement(q,{className:"contract-selector",options:null==u?void 0:u.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:h.name,inputStyle:n,validateState:r,onChange:e=>{const t=e.detail;if(te(t))p(ee(t)),null==a||a(t);else{var n,r;const e=null===(n=u.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,i=null!==(r=null==e?void 0:e[0])&&void 0!==r?r:"";m(e),p({name:t,version:i}),null==a||a(`${t}:${i}`)}S(t)}},d().createElement(E.L,{onBlur:e=>l(e),slot:"options-toolbar"})),d().createElement(q,{className:"version-selector",value:h.version,validateState:r,options:null==A?void 0:A.map((e=>({value:e,label:e}))),onChange:e=>{const t=e.detail;p({name:h.name,version:t}),null==a||a(`${h.name}:${t}`)}}),null!=i&&i.useBrick?d().createElement(v.ReactUseMultipleBricks,i):null)}r=Z,({e:[_,N,I,O,k,P,R,x,F,B,M,W,j,z],c:[U,w]}=(0,h.A)(r,[X("visual-builder.contract-select",{styleTexts:[m.A]})],[[D(),1,"name"],[D({type:Boolean}),1,"required"],[D(),1,"label"],[D({attribute:!1}),1,"value"],[D({attribute:!1}),1,"suffix"],[L({type:"change"}),1,"changeEvent",e=>(0,u.A)(Q,e),(e,t)=>(0,l.A)(Q,e,t)]],0,(e=>Y.has((0,s.A)(e))),S.N)),w()},2480:(e,t,n)=>{n.d(t,{L:()=>u});var r=n(8769),i=n.n(r),a=n(1722),o=n(5502),s=n(3049);(0,o.initializeReactI18n)(a.NS,a.I);const c=(0,s.wrapBrick)("eo-icon"),l=(0,s.wrapBrick)("eo-input",{onChange:"change"});function u(e){const{itemsCount:t=20,onBlur:n}=e,[s,u]=(0,r.useState)(t),{t:h}=(0,o.useTranslation)(a.NS),[f,d]=(0,r.useState)(!1);return i().createElement("div",{className:"options-tips",slot:e.slot},h(a.K.CONTRACT_OPTIONS_TIPS_PREFIX)," ",f?i().createElement(l,{autoFocus:!0,inputStyle:{width:65},value:String(s),onBlur:()=>{d(!1),null==n||n(s)},onChange:e=>{u(Number(e.detail))}}):i().createElement("span",null,s," ",i().createElement(c,{icon:"edit",lib:"antd",onClick:()=>{d(!0)}}))," ",h(a.K.CONTRACT_OPTIONS_TIPS_SUFFIX))}},3065:(e,t,n)=>{n.d(t,{E:()=>a});var r=n(8769),i=n(4244);function a(e){let{pageSize:t=20,q:n=""}=e;const[a,o]=(0,r.useState)([]),[s,c]=(0,r.useState)(n),[l,u]=(0,r.useState)(t);return(0,r.useEffect)((()=>{c(n)}),[n]),(0,r.useEffect)((()=>{u(t)}),[t]),(0,r.useEffect)((()=>{(async()=>{try{const{list:e}=await(0,i.f)({page:1,pageSize:l,fullContractName:s},{interceptorParams:{ignoreLoadingBar:!0}});o(e)}catch(e){console.error(e),o([])}})()}),[s,l]),a}},6213:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),i=n.n(r),a=n(935),o=n.n(a)()(i());o.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=o.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),i=n(6902);function a(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var o=n(1369);function s(e,t,n,s,c,l){var u,h,f,d,p,A,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,S=Object.create,b=[S(null),S(null)],T=t.length;function y(t,n,r){return function(i,a){n&&(a=i,i=e);for(var o=0;o<t.length;o++)a=t[o].apply(i,r?[a]:[]);return r?a:i}}function C(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,i,o,s,c,l,f,d,p){function A(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),m=t[3],S=!c,T=1===o,E=3===o,w=4===o,_=2===o;function N(t,n,r){return function(i,a){return n&&(a=i,i=e),r&&r(i),I[t].call(i,a)}}if(!S){var I={},O=[],k=E?"get":w||T?"set":"value";if(f?(d||T?I={get:a((function(){return m(this)}),i,"get"),set:function(e){t[4](this,e)}}:I[k]=m,d||a(I[k],i,_?"":k)):d||(I=Object.getOwnPropertyDescriptor(e,i)),!d&&!f){if((h=b[+l][i])&&7!=(h^o))throw Error("Decorating two elements with the same name ("+I[k].name+") is not supported yet");b[+l][i]=o<3?1:o}}for(var P=e,R=v.length-1;R>=0;R-=n?2:1){var x=C(v[R],"A decorator","be",!0),F=n?v[R-1]:void 0,B={},M={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");C(t,"An initializer","be",!0),s.push(t)}.bind(null,B)};if(S)h=x.call(F,P,M),B.v=1,C(h,"class decorators","return")&&(P=h);else if(M.static=l,M.private=f,h=M.access={has:f?p.bind():function(e){return i in e}},w||(h.get=f?_?function(e){return A(e),I.value}:N("get",0,A):function(e){return e[i]}),_||E||(h.set=f?N("set",0,A):function(e,t){e[i]=t}),P=x.call(F,T?{get:I.get,set:I.set}:I[k],M),B.v=1,T){if("object"==(0,r.A)(P)&&P)(h=C(P.get,"accessor.get"))&&(I.get=h),(h=C(P.set,"accessor.set"))&&(I.set=h),(h=C(P.init,"accessor.init"))&&O.unshift(h);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else C(P,(d?"field":"method")+" decorators","return")&&(d?O.unshift(P):I[k]=P)}return o<2&&c.push(y(O,l,1),y(s,l,0)),d||S||(f?T?c.splice(-1,0,N("get",l),N("set",l)):c.push(_?I[k]:C.call.bind(I[k])):g(e,i,I)),P}function w(e){return g(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=S(null==u?null:u),p=[],A=function(e){e&&p.push(y(e))},v=function(t,r){for(var a=0;a<n.length;a++){var s=n[a],l=s[1],u=7&l;if((8&l)==t&&!u==r){var h=s[2],A=!!s[3],v=16&l;E(t?e:e.prototype,s,v,A?"#"+h:(0,o.A)(h),u,u<2?[]:t?d=d||[]:f=f||[],p,!!t,A,r,t&&A?function(t){return(0,i.A)(t)===e}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),A(f),A(d),h=p,T||w(e),{e:h,get c(){var n=[];return T&&[w(e=E(e,[t],s,e.name,5,n)),y(n,1)]}}}},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6330:(e,t,n)=>{function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>i})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9492:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n,i){return t((0,r.A)(e,n),i),i}},4586:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},4244:(e,t,n)=>{n.d(t,{f:()=>a});var r=n(6330),i=n(9171),a=function(){var e=(0,r.A)((function*(e,t){return(yield i.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}()},426:(e,t,n)=>{n.d(t,{N:()=>R});var r,i=n(4635),a=n(918),o=n(5536),s=n(9492),c=n(6121),l=n(829),u=n(2740),h=n(2786),f=n(3049);let d,p,A,v,m,g,S,b,T;const{method:y,property:C}=(0,h.createDecorators)();var E=new WeakMap,w=new WeakSet,_=new WeakMap,N=new WeakMap,I=new WeakMap,O=new WeakMap,k=new WeakMap,P=new WeakMap;class R extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,w),(0,a.A)(this,E,(d(this),!1)),(0,a.A)(this,_,"normal"),(0,a.A)(this,N,!1),(0,a.A)(this,I,p(this)),(0,a.A)(this,O,(A(this),v(this))),(0,a.A)(this,k,(m(this),g(this))),(0,a.A)(this,P,(S(this),b(this))),T(this)}get isFormItemElement(){return!0}set validateState(e){(0,s.A)(w,M,this,e),this._render()}get validateState(){return(0,o.A)(w,this,B)}set notRender(e){this.hidden=e,(0,s.A)(w,F,this,e),this._render()}get notRender(){return(0,o.A)(w,this,x)}get $bindFormItem(){return(0,o.A)(w,this,W)}set $bindFormItem(e){(0,s.A)(w,j,this,e),this._render()}get helpBrick(){return(0,l.A)(I,this)}set helpBrick(e){(0,c.A)(I,this,e)}get labelBrick(){return(0,l.A)(O,this)}set labelBrick(e){(0,c.A)(O,this,e)}get labelCol(){return(0,l.A)(k,this)}set labelCol(e){(0,c.A)(k,this,e)}get wrapperCol(){return(0,l.A)(P,this)}set wrapperCol(e){(0,c.A)(P,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function x(e){return(0,l.A)(E,e)}function F(e,t){(0,c.A)(E,e,t)}function B(e){return(0,l.A)(_,e)}function M(e,t){(0,c.A)(_,e,t)}function W(e){return(0,l.A)(N,e)}function j(e,t){(0,c.A)(N,e,t)}r=R,[p,A,v,m,g,S,b,T,d]=(0,u.A)(r,[],[[C({attribute:!1}),1,"helpBrick"],[C({attribute:!1}),1,"labelBrick"],[C({attribute:!1}),1,"labelCol"],[C({attribute:!1}),1,"wrapperCol"],[y(),2,"setNotRender"],[y(),2,"getFormElement"]],0,void 0,f.ReactNextElement).e}}]);
|
|
3
|
-
//# sourceMappingURL=contract-select.cceb7453.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,u,s,d,f,h,p,m,b,v,g,x,y,P,j,k,w,O,_={7934:(e,t,r)=>{Promise.all([r.e(7507),r.e(5559),r.e(5659),r.e(8769),r.e(2786),r.e(3049),r.e(1030),r.e(6878),r.e(6477),r.e(1230),r.e(8799),r.e(155),r.e(1732),r.e(9171),r.e(9435),r.e(9662),r.e(950),r.e(5502),r.e(9080),r.e(2980),r.e(1722),r.e(1201),r.e(5832)]).then(r.bind(r,5832))}},S={};function E(e){var t=S[e];if(void 0!==t)return t.exports;var r=S[e]={id:e,loaded:!1,exports:{}};return _[e].call(r.exports,r,r.exports,E),r.loaded=!0,r.exports}E.m=_,E.c=S,E.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return E.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,E.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);E.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,E.d(a,o),a},E.d=(e,t)=>{for(var r in t)E.o(t,r)&&!E.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},E.f={},E.e=e=>Promise.all(Object.keys(E.f).reduce(((t,r)=>(E.f[r](e,t),t)),[])),E.u=e=>"chunks/"+e+"."+{114:"429325c5",155:"1ebf01ec",726:"e407e050",790:"ad2cdfc8",871:"fff582b1",950:"2a792126",1030:"7081f53a",1045:"b07d6bc1",1122:"7e99ff7d",1201:"8950a28b",1204:"e10067e0",1230:"b6c3e170",1722:"59f0e4b2",1732:"469e9cc0",1889:"c21de868",1940:"12b74fb1",2052:"f1624476",2201:"0a5797e4",2277:"337070c4",2786:"c86aa532",2980:"6d37f71e",3049:"a2da8223",3144:"0096b9c3",3171:"0a7855c3",3340:"1e9223ac",3933:"3edb4523",4041:"468489fa",4291:"da2890c6",4586:"6b85a822",4658:"7c2c5ee7",4837:"df6d466c",5250:"f22684c9",5384:"7fbe2a84",5399:"2121beed",5502:"4cbb4b84",5552:"2814cc37",5559:"46d76c74",5585:"b6442cc9",5659:"9000e441",5832:"7b134e89",6314:"f577ecf7",6477:"7c5762c4",6519:"94d78769",6773:"9ed5373b",6878:"e2ec20f4",7218:"f8cd78da",7304:"12ca6e2d",7434:"4ddb3aab",7507:"c0a5c220",7643:"32857740",7721:"6dd8673d",7733:"80dc8554",8097:"f37c5904",8286:"d1ad8e22",8504:"f64789ff",8769:"09488b9c",8799:"cf82abdb",8989:"74e3337d",9080:"58f31ca3",9171:"8b0eccb1",9435:"ddacadb1",9515:"3823b0b7",9559:"a13f579e",9662:"eefce6d5",9755:"12af1881",9844:"4328557b"}[e]+".js",E.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),E.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@next-bricks/visual-builder:",E.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var l,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==n+a){l=s;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,E.nc&&l.setAttribute("nonce",E.nc),l.setAttribute("data-webpack",n+a),l.src=e),r[e]=[t];var d=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),i&&document.head.appendChild(l)}},E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},E.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{E.S={};var e={},t={};E.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];E.o(E.S,r)||(E.S[r]={});var o=E.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.25.3",(()=>E.e(6773).then((()=>()=>E(6773))))),i("@easyops-cn/brick-next-pipes","0.7.1",(()=>Promise.all([E.e(4291),E.e(1030),E.e(155),E.e(1204)]).then((()=>()=>E(4291))))),i("@next-core/cook","2.5.5",(()=>Promise.all([E.e(1122),E.e(3340),E.e(4586)]).then((()=>()=>E(1122))))),i("@next-core/element","1.2.15",(()=>E.e(1045).then((()=>()=>E(1045))))),i("@next-core/http","1.2.10",(()=>E.e(8989).then((()=>()=>E(8989))))),i("@next-core/i18n/react","1.0.72",(()=>Promise.all([E.e(8799),E.e(8097)]).then((()=>()=>E(8097))))),i("@next-core/i18n","1.0.72",(()=>Promise.all([E.e(6878),E.e(8799),E.e(9755),E.e(5552)]).then((()=>()=>E(5552))))),i("@next-core/inject","1.0.50",(()=>Promise.all([E.e(1030),E.e(8286),E.e(2277)]).then((()=>()=>E(2277))))),i("@next-core/loader","1.6.13",(()=>E.e(5399).then((()=>()=>E(5399))))),i("@next-core/pipes","2.0.29",(()=>E.e(6519).then((()=>()=>E(6519))))),i("@next-core/react-element","1.0.34",(()=>Promise.all([E.e(8769),E.e(2786),E.e(9435),E.e(114)]).then((()=>()=>E(114))))),i("@next-core/react-runtime","1.7.7",(()=>Promise.all([E.e(8769),E.e(3049),E.e(1030),E.e(1230),E.e(4837)]).then((()=>()=>E(4837))))),i("@next-core/runtime","1.59.0",(()=>Promise.all([E.e(7507),E.e(7643),E.e(1030),E.e(6878),E.e(155),E.e(9171),E.e(9662),E.e(5585),E.e(8504)]).then((()=>()=>E(7643))))),i("@next-core/supply","2.3.2",(()=>Promise.all([E.e(1030),E.e(155),E.e(8286),E.e(9559)]).then((()=>()=>E(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([E.e(1889),E.e(2052)]).then((()=>()=>E(1889))))),i("@next-core/utils/general","1.7.30",(()=>E.e(871).then((()=>()=>E(871))))),i("@next-core/utils/storyboard","1.7.30",(()=>Promise.all([E.e(6878),E.e(5585),E.e(3933)]).then((()=>()=>E(3933))))),i("history","4.10.1",(()=>E.e(5384).then((()=>()=>E(5384))))),i("i18next-browser-languagedetector","7.2.1",(()=>E.e(726).then((()=>()=>E(726))))),i("i18next","22.5.1",(()=>E.e(7304).then((()=>()=>E(7304))))),i("js-yaml","3.14.1",(()=>E.e(9515).then((()=>()=>E(9515))))),i("lodash","4.17.21",(()=>E.e(5250).then((()=>()=>E(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(1329))))),i("moment","2.30.1",(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([E.e(3144),E.e(8769)]).then((()=>()=>E(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([E.e(7434),E.e(8769)]).then((()=>()=>E(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>E.e(4041).then((()=>()=>E(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;E.g.importScripts&&(e=E.g.location+"");var t=E.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),E.p=e+"../"})(),a=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},o=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var n=e[r],o=(typeof n)[0];if(r>=t.length)return"u"==o;var l=t[r],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=l)return n<l;r++}},l=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,r+="u"==(typeof(i=e[a]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var o=[];for(a=1;a<e.length;a++){var i=e[a];o.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?o.pop()+" "+o.pop():l(i))}return c();function c(){return o.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,t)=>{if(0 in e){t=a(t);var r=e[0],n=r<0;n&&(r=-r-1);for(var o=0,l=1,c=!0;;l++,o++){var u,s,d=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(s=(typeof(u=t[o]))[0]))return!c||("u"==d?l>r&&!n:""==d!=n);if("u"==s){if(!c||"u"!=d)return!1}else if(c)if(d==s)if(l<=r){if(u!=e[l])return!1}else{if(n?u>e[l]:u<e[l])return!1;u!=e[l]&&(c=!1)}else if("s"!=d&&"n"!=d){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||s<d!=n)return!1;c=!1}else"s"!=d&&"n"!=d&&(c=!1,l--)}}var f=[],h=f.pop.bind(f);for(o=1;o<e.length;o++){var p=e[o];f.push(1==p?h()|h():2==p?h()&h():p?i(p,t):!h())}return!!h()},c=(e,t)=>e&&E.o(e,t),u=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),d=(e,t,r,n)=>{var a=n?s(e[t]):e[t];return(t=Object.keys(a).reduce(((e,t)=>!i(r,t)||e&&!o(e,t)?e:t),0))&&a[t]},f=(e,t,r)=>{var n=r?s(e[t]):e[t];return Object.keys(n).reduce(((e,t)=>!e||!n[e].loaded&&o(e,t)?t:e),0)},h=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+l(n)+")",p=(e,t,r,n,a)=>{var o=e[r];return"No satisfying version ("+l(n)+")"+(a?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(o).map((e=>e+" from "+o[e].from)).join(", ")},m=e=>{throw new Error(e)},b=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},g=(e,t,r)=>r?r():((e,t)=>m("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),x=(v=e=>function(t,r,n,a,o){var l=E.I(t);return l&&l.then&&!n?l.then(e.bind(e,t,E.S[t],r,!1,a,o)):e(t,E.S[t],r,n,a,o)})(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=d(t,r,a,n);return l?u(l):o?o():void m(p(t,e,r,a,n))})),y=v(((e,t,r,n,a)=>{if(!c(t,r))return g(e,r,a);var o=f(t,r,n);return u(t[r][o])})),P=v(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=f(t,r,n);return i(a,l)||b(h(t,r,l,a)),u(t[r][l])})),j={},k={8769:()=>x("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>E.e(4041).then((()=>()=>E(4041))))),2786:()=>x("default","@next-core/element",!1,[1,1,2,15],(()=>E.e(1045).then((()=>()=>E(1045))))),3049:()=>x("default","@next-core/react-element",!1,[1,1,0,34],(()=>Promise.all([E.e(2786),E.e(9435),E.e(7733)]).then((()=>()=>E(114))))),1030:()=>P("default","lodash",!1,[1,4,17,21],(()=>E.e(5250).then((()=>()=>E(5250))))),6878:()=>P("default","@next-core/utils/general",!1,[1,1,7,30],(()=>E.e(871).then((()=>()=>E(871))))),6477:()=>P("default","@next-core/theme",!1,[1,1,5,4],(()=>E.e(1889).then((()=>()=>E(1889))))),1230:()=>P("default","@next-core/runtime",!1,[1,1,59,0],(()=>Promise.all([E.e(7507),E.e(7643),E.e(1030),E.e(6878),E.e(155),E.e(9171),E.e(9662),E.e(5585),E.e(8504)]).then((()=>()=>E(7643))))),8799:()=>y("default","@next-core/i18n",!1,(()=>Promise.all([E.e(6878),E.e(9755),E.e(3171)]).then((()=>()=>E(5552))))),155:()=>P("default","moment",!1,[1,2,29,4],(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(9420))))),1732:()=>y("default","js-yaml",!1,(()=>E.e(9515).then((()=>()=>E(9515))))),9171:()=>P("default","@next-core/http",!1,[1,1,2,10],(()=>E.e(8989).then((()=>()=>E(8989))))),9435:()=>x("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>E.e(3144).then((()=>()=>E(3144))))),3633:()=>P("default","@next-core/utils/storyboard",!1,[1,1,7,30],(()=>Promise.all([E.e(5585),E.e(6314)]).then((()=>()=>E(3933))))),950:()=>x("default","@next-core/react-runtime",!1,[1,1,7,7],(()=>Promise.all([E.e(1030),E.e(1230),E.e(7218)]).then((()=>()=>E(4837))))),5502:()=>y("default","@next-core/i18n/react",!1,(()=>Promise.all([E.e(8799),E.e(8097)]).then((()=>()=>E(8097))))),1431:()=>y("default","@next-core/cook",!1,(()=>Promise.all([E.e(1122),E.e(3340)]).then((()=>()=>E(1122))))),1201:()=>P("default","history",!1,[1,4,7,11],(()=>E.e(5384).then((()=>()=>E(5384))))),1204:()=>P("default","js-yaml",!1,[1,3,14,0],(()=>E.e(9515).then((()=>()=>E(9515))))),3340:()=>P("default","@babel/parser",!1,[1,7,25,6],(()=>E.e(6773).then((()=>()=>E(6773))))),7825:()=>P("default","react-i18next",!1,[1,12,3,1],(()=>Promise.all([E.e(7434),E.e(8769)]).then((()=>()=>E(7434))))),2350:()=>P("default","i18next",!1,[1,22,5,1],(()=>E.e(7304).then((()=>()=>E(7304))))),7072:()=>P("default","i18next-browser-languagedetector",!1,[1,7,2,1],(()=>E.e(726).then((()=>()=>E(726))))),8286:()=>P("default","@next-core/pipes",!1,[1,2,0,29],(()=>E.e(6519).then((()=>()=>E(6519))))),3669:()=>P("default","@easyops-cn/brick-next-pipes",!1,[2,0,7,1],(()=>Promise.all([E.e(4291),E.e(1030),E.e(155),E.e(1204)]).then((()=>()=>E(4291))))),5585:()=>P("default","@next-core/cook",!1,[1,2,5,5],(()=>Promise.all([E.e(1122),E.e(3340),E.e(4586)]).then((()=>()=>E(1122))))),413:()=>P("default","@next-core/i18n",!1,[1,1,0,72],(()=>Promise.all([E.e(8799),E.e(9755),E.e(790)]).then((()=>()=>E(5552))))),597:()=>P("default","moment/locale/zh-cn.js",!1,[1,2,29,4],(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(1329))))),2342:()=>P("default","@next-core/loader",!1,[1,1,6,13],(()=>E.e(5399).then((()=>()=>E(5399))))),2890:()=>P("default","history",!1,[1,4,10,1],(()=>E.e(5384).then((()=>()=>E(5384))))),4104:()=>P("default","@next-core/supply",!1,[1,2,3,2],(()=>Promise.all([E.e(8286),E.e(1940)]).then((()=>()=>E(9559))))),7939:()=>P("default","@next-core/inject",!1,[1,1,0,50],(()=>Promise.all([E.e(8286),E.e(4658)]).then((()=>()=>E(2277)))))},w={155:[155],950:[950],1030:[1030],1201:[1201],1204:[1204],1230:[1230],1732:[1732],2786:[2786],3049:[3049],3340:[3340],5502:[5502],5585:[5585],6477:[6477],6519:[3669],6878:[6878],8097:[7825],8286:[8286],8504:[413,597,2342,2890,4104,7939],8769:[8769],8799:[8799],9080:[1431],9171:[9171],9435:[9435],9662:[3633],9755:[2350,7072]},O={},E.f.consumes=(e,t)=>{E.o(w,e)&&w[e].forEach((e=>{if(E.o(j,e))return t.push(j[e]);if(!O[e]){var r=t=>{j[e]=0,E.m[e]=r=>{delete E.c[e],r.exports=t()}};O[e]=!0;var n=t=>{delete j[e],E.m[e]=r=>{throw delete E.c[e],t}};try{var a=k[e]();a.then?t.push(j[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={8792:0};E.f.j=(t,r)=>{var n=E.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(2(01|04|30)|030|55|732)|55(02|85)|8(286|504|769|799)|9(171|435|50|662|755)|2786|3049|3340|6477|6878)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=E.p+E.u(t),l=new Error;E.l(o,(r=>{if(E.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[o,l,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in l)E.o(l,n)&&(E.m[n]=l[n]);i&&i(E)}for(t&&t(r);c<o.length;c++)a=o[c],E.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),E.nc=void 0,E(7934)})();
|
|
2
|
-
//# sourceMappingURL=main.317dc265.js.map
|