@next-bricks/vb-experiment 1.3.19 → 1.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/bricks.json +3 -3
  2. package/dist/chunks/{1563.f975c5ed.js → 1563.c5c318f5.js} +2 -2
  3. package/dist/chunks/1563.c5c318f5.js.map +1 -0
  4. package/dist/chunks/1889.787b50d3.js +2 -0
  5. package/dist/chunks/1889.787b50d3.js.map +1 -0
  6. package/dist/chunks/3171.cfccf6dc.js +2 -0
  7. package/dist/chunks/3171.cfccf6dc.js.map +1 -0
  8. package/dist/chunks/5399.1b31a549.js +2 -0
  9. package/dist/chunks/5399.1b31a549.js.map +1 -0
  10. package/dist/chunks/5552.514a3ebe.js +2 -0
  11. package/dist/chunks/5552.514a3ebe.js.map +1 -0
  12. package/dist/chunks/6376.bd2948e8.js +2 -0
  13. package/dist/chunks/6376.bd2948e8.js.map +1 -0
  14. package/dist/chunks/9118.0f0a0cf2.js +3 -0
  15. package/dist/chunks/9118.0f0a0cf2.js.LICENSE.txt +11 -0
  16. package/dist/chunks/9118.0f0a0cf2.js.map +1 -0
  17. package/dist/chunks/948.5bd39253.js +3 -0
  18. package/dist/chunks/948.5bd39253.js.map +1 -0
  19. package/dist/chunks/9564.e671e913.js +3 -0
  20. package/dist/chunks/9564.e671e913.js.map +1 -0
  21. package/dist/chunks/{app-playground.bbfe9735.js → app-playground.3a2c3b61.js} +2 -2
  22. package/dist/chunks/app-playground.3a2c3b61.js.map +1 -0
  23. package/dist/chunks/app-preview.9d068eec.js.map +1 -1
  24. package/dist/chunks/main.a056e7d9.js +2 -0
  25. package/dist/chunks/main.a056e7d9.js.map +1 -0
  26. package/dist/chunks/{tsx-playground.7cc3ac8d.js → tsx-playground.a12c4749.js} +2 -2
  27. package/dist/chunks/tsx-playground.a12c4749.js.map +1 -0
  28. package/dist/examples.json +7 -1
  29. package/dist/index.10bbab41.js +2 -0
  30. package/dist/index.10bbab41.js.map +1 -0
  31. package/dist/manifest.json +41 -31
  32. package/dist-types/app-playground/index.d.ts +7 -2
  33. package/dist-types/app-preview/index.d.ts +4 -1
  34. package/dist-types/tsx-playground/index.d.ts +16 -2
  35. package/docs/app-playground.md +121 -0
  36. package/docs/app-playground.react.md +105 -0
  37. package/docs/app-preview.md +37 -0
  38. package/docs/app-preview.react.md +51 -0
  39. package/docs/tsx-playground.md +68 -33
  40. package/docs/tsx-playground.react.md +139 -0
  41. package/package.json +2 -2
  42. package/dist/chunks/1563.f975c5ed.js.map +0 -1
  43. package/dist/chunks/1889.e2b26594.js +0 -2
  44. package/dist/chunks/1889.e2b26594.js.map +0 -1
  45. package/dist/chunks/3171.95cc1b7d.js +0 -2
  46. package/dist/chunks/3171.95cc1b7d.js.map +0 -1
  47. package/dist/chunks/3483.023fac95.js +0 -3
  48. package/dist/chunks/3483.023fac95.js.map +0 -1
  49. package/dist/chunks/4837.208ae445.js +0 -2
  50. package/dist/chunks/4837.208ae445.js.map +0 -1
  51. package/dist/chunks/5399.22dcdc27.js +0 -2
  52. package/dist/chunks/5399.22dcdc27.js.map +0 -1
  53. package/dist/chunks/5552.7cd1c4db.js +0 -2
  54. package/dist/chunks/5552.7cd1c4db.js.map +0 -1
  55. package/dist/chunks/7218.00131d23.js +0 -2
  56. package/dist/chunks/7218.00131d23.js.map +0 -1
  57. package/dist/chunks/948.7f8e7e72.js +0 -3
  58. package/dist/chunks/948.7f8e7e72.js.map +0 -1
  59. package/dist/chunks/app-playground.bbfe9735.js.map +0 -1
  60. package/dist/chunks/main.a0f77374.js +0 -2
  61. package/dist/chunks/main.a0f77374.js.map +0 -1
  62. package/dist/chunks/tsx-playground.7cc3ac8d.js.map +0 -1
  63. package/dist/index.da2f4f76.js +0 -2
  64. package/dist/index.da2f4f76.js.map +0 -1
  65. /package/dist/chunks/{948.7f8e7e72.js.LICENSE.txt → 948.5bd39253.js.LICENSE.txt} +0 -0
  66. /package/dist/chunks/{3483.023fac95.js.LICENSE.txt → 9564.e671e913.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 9564.e671e913.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_next_bricks_vb_experiment=globalThis.webpackChunk_next_bricks_vb_experiment||[]).push([[2052,9564],{689:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6488),o=n(7985),a=n(5405);function i(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,a.A)()}},829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},918:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},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,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1258:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(){o=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new M(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function b(){}function x(){}function A(){}var w={};p(w,c,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(_([])));P&&P!==n&&a.call(P,c)&&(w=P);var T=A.prototype=b.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==(0,r.A)(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}})}function C(t,n,r){var o=m;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?y:h,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(a.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,r.A)(t)+" is not iterable")}return x.prototype=A,i(T,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:x,configurable:!0}),x.displayName=p(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},S(E.prototype),p(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(d(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(T),p(T,l,"Generator"),p(T,c,(function(){return this})),p(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}},1369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},1493:e=>{e.exports='/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-empty-object-type */\n\nexport interface ViewProps {\n title: string;\n}\n\nexport interface BaseProps {\n key?: string | number;\n}\n\nexport interface TableProps<T extends object> extends BaseProps {\n dataSource: {\n list: T[];\n page?: number;\n pageSize?: number;\n total?: number;\n };\n columns: TableColumn<T>[];\n rowKey: string;\n rowSelection?: boolean;\n sort?: TableSort | null;\n pagination?: boolean;\n onSelect?: (event: CustomEvent<T[]>) => void;\n onPaginate?: (event: CustomEvent<{ page: number; pageSize: number }>) => void;\n onSort?: (event: CustomEvent<TableSort | null>) => void;\n}\n\nexport interface ListProps extends BaseProps {\n dataSource: object[];\n fields?: {\n title?: string;\n icon?: string;\n url?: string;\n };\n variant?: "default" | "navigation" | "ranking";\n}\n\nexport interface DescriptionsProps<T extends object> extends BaseProps {\n title?: string;\n dataSource?: T;\n list: Array<\n | {\n label: string;\n text: string;\n }\n | {\n label: string;\n /** 数据字段,多级字段使用点号分隔 */\n field: string;\n }\n | {\n label: string;\n render: (record: T) => any;\n }\n >;\n}\n\nexport interface ButtonProps extends BaseProps {\n type?: "default" | "primary";\n icon?: IconProps;\n onClick?: (e: Event) => void;\n}\n\nexport interface SearchProps extends BaseProps {\n placeholder?: string;\n onSearch?: (e: CustomEvent<string>) => void;\n}\n\nexport interface FormProps<T extends object> extends BaseProps {\n values?: T;\n onValidateSuccess?: (e: CustomEvent<T>) => void;\n ref?: {\n readonly current: FormRef;\n };\n}\n\nexport interface FormRef {\n validate: () => void;\n reset: () => void;\n}\n\nexport interface InputProps extends FormItemProps {\n placeholder?: string;\n}\n\nexport interface NumberInputProps extends InputProps {\n min?: number;\n max?: number;\n}\n\nexport interface TextareaProps extends InputProps {}\n\nexport interface SelectProps extends InputProps {\n options: (FormItemOptions | string)[];\n onChange?: (e: CustomEvent<string | number | boolean | null>) => void;\n}\n\nexport interface RadioProps extends SelectProps {}\n\nexport interface CheckboxProps extends SelectProps {}\n\nexport interface SwitchProps extends FormItemProps {}\n\nexport interface DatePickerProps extends FormItemProps {}\n\nexport interface TimePickerProps extends FormItemProps {}\n\nexport interface DashboardProps extends BaseProps {\n dataSource: Array<object>;\n groupField?: string;\n widgets: Array<DashboardWidget>;\n}\n\nexport interface ModalProps extends BaseProps {\n title: string;\n confirmText?: string;\n cancelText?: string;\n onConfirm?: () => void;\n ref?: {\n readonly current: ModalRef;\n };\n}\n\nexport interface ModalRef {\n open: () => void;\n close: () => void;\n}\n\nexport interface CardProps extends BaseProps {\n title?: string;\n}\n\nexport interface TagProps extends BaseProps {\n color?: string;\n outline?: boolean;\n}\n\nexport interface LinkProps extends BaseProps {\n /** 站外链接 */\n href?: string;\n\n /** 站内链接 */\n url?: string;\n\n target?: "_blank" | "_self";\n}\n\nexport interface AvatarProps extends BaseProps {\n size?: "large" | "medium" | "small";\n name?: string;\n src?: string;\n}\n\nexport interface AvatarGroupProps extends BaseProps {\n size?: "large" | "medium" | "small";\n}\n\nexport interface CodeBlockProps extends BaseProps {\n source: string;\n language: string;\n}\n\nexport interface PlaintextProps extends BaseProps {\n /** Related advisory information */\n title?: string;\n}\n\nexport interface DashboardWidget {\n widget: "chart";\n type: "line" | "area";\n title?: string;\n metric: {\n id: string;\n unit: string;\n };\n precision?: number;\n}\n\nexport interface FormItemProps extends BaseProps {\n name: string;\n label?: string;\n required?: boolean;\n disabled?: boolean;\n}\n\nexport interface FormItemOptions {\n label: string;\n value: string;\n}\n\nexport interface IconProps {\n lib: "fa";\n prefix: "fas" | "far";\n icon: string;\n}\n\nexport interface TableColumn<T extends object> {\n key: string;\n /** 数据索引,多级索引使用数组 */\n dataIndex: string | string[];\n title: string;\n sortable?: boolean;\n render?: (value: any, record: T) => any;\n}\n\nexport interface TableSort {\n columnKey: string | number;\n order: "ascend" | "descend";\n}\n\ndeclare const View: (props: ViewProps) => any;\ndeclare const Table: <T extends object>(props: TableProps<T>) => any;\ndeclare const List: (props: ListProps) => any;\ndeclare const Descriptions: <T extends object>(\n props: DescriptionsProps<T>\n) => any;\ndeclare const Button: (props: ButtonProps) => any;\ndeclare const Toolbar: (props: BaseProps) => any;\ndeclare const Search: (props: SearchProps) => any;\ndeclare const Form: <T extends object>(props: FormProps<T>) => any;\ndeclare const Input: (props: InputProps) => any;\ndeclare const NumberInput: (props: NumberInputProps) => any;\ndeclare const Textarea: (props: TextareaProps) => any;\ndeclare const Select: (props: SelectProps) => any;\ndeclare const Radio: (props: RadioProps) => any;\ndeclare const Checkbox: (props: CheckboxProps) => any;\ndeclare const Switch: (props: SwitchProps) => any;\ndeclare const DatePicker: (props: DatePickerProps) => any;\ndeclare const TimePicker: (props: TimePickerProps) => any;\ndeclare const Dashboard: (props: DashboardProps) => any;\ndeclare const Modal: (props: ModalProps) => any;\ndeclare const Card: (props: CardProps) => any;\ndeclare const Output: (props: BaseProps) => any;\ndeclare const Tag: (props: TagProps) => any;\ndeclare const Link: (props: LinkProps) => any;\ndeclare const Avatar: (props: AvatarProps) => any;\ndeclare const AvatarGroup: (props: AvatarGroupProps) => any;\ndeclare const CodeBlock: (props: CodeBlockProps) => any;\ndeclare const Plaintext: (props: PlaintextProps) => any;\ndeclare const Fragment: (props: { key?: string | number }) => any;\n'},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},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})},2025:(e,t,n)=>{n.d(t,{k:()=>c});var r=n(1258),o=n(3705),a=n(6330),i=n(8291),s=n(6981);function c(e,t,n,r){return u.apply(this,arguments)}function u(){return u=(0,a.A)((0,r.A)().mark((function e(t,n,c,u){var l,p;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Promise.all(null!==(l=null==t?void 0:t.map(function(){var e=(0,a.A)((0,r.A)().mark((function e(t){var a,l,p,d,f,m,h,v,y,g,b,x,A;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,i.dN)(t,"Route")){e.next=1;break}throw new Error("All children of <Routes> must be <Route>.");case 1:if(l=t.properties,p=l.path,d=l.component,"string"==typeof p&&p.startsWith("/")){e.next=2;break}throw new Error('The "path" property of <Route> must be a string starting with "/".');case 2:if(d){e.next=3;break}throw new Error('The "component" property of <Route> is required.');case 3:if(m=(f=d).reference,h=f.name,y="local"===m.type?c.filePath:m.importSource,g=null,n.convertedModules.has(y)?g=n.convertedModules.get(y):((b=n.app.modules.get(y))&&(g=(0,s.A)(b,n,u)),n.convertedModules.set(y,g)),g){e.next=4;break}throw new Error('Cannot find the module "'.concat(m.importSource,'" imported by the route "').concat(p,'".'));case 4:return"local"===m.type?(x=[].concat((0,o.A)(g.internals),(0,o.A)(g.namedExports.values())),v=x.find((function(e){var t=e.raw;return"function"!==t.type&&"context"!==t.type&&t.component.id&&t.component.id.name===m.name}))):v=m.name?g.namedExports.get(m.name):g.defaultExport,e.next=5,null===(a=v)||void 0===a?void 0:a.promise;case 5:if(A=e.sent){e.next=6;break}throw new Error('Cannot find the component "'.concat(m.name,'" used in the route "').concat(p,'".'));case 6:if("page"===A.type){e.next=7;break}throw new Error('The component "'.concat(m.name,'" used in the route "').concat(p,'" must be a page component.'));case 7:return e.abrupt("return",{path:"${APP.homepage}".concat("/"===p?"":p),alias:h,incrementalSubRoutes:!0,bricks:A.bricks,context:A.context});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))&&void 0!==l?l:[]);case 1:return(p=e.sent).sort((function(e,t){return t.path.length-e.path.length})),e.abrupt("return",p);case 2:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}},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})},2591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,p="".concat(u," ").concat(l);a[u]=l+1;var d=n(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var m=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},2612:(e,t,n)=>{n.d(t,{m:()=>u});const r='export function mergeTexts(\n ...items: (\n | { type: "text"; text: string }\n | { type: "expression"; value: unknown }\n )[]\n): string {\n function mergeValuesAsText(value: unknown): string {\n if (Array.isArray(value)) {\n return value.map(mergeValuesAsText).join("");\n }\n const type = typeof value;\n if (type === "string" || type === "number") {\n return String(value);\n }\n if (type === "object" && value !== null) {\n throw new Error("Can not render object as text");\n }\n return "";\n }\n\n const texts: string[] = [];\n for (const item of items) {\n if (item.type === "text") {\n texts.push(item.text.trim());\n } else {\n texts.push(mergeValuesAsText(item.value));\n }\n }\n return texts.join("");\n}\n',o='import { pipes as PIPES } from "@easyops-cn/brick-next-pipes";\n\nexport function getLatestMetricValue(\n list: Record<string, any>[] | undefined,\n {\n metric,\n precision,\n }: { metric: { id: string; unit: string }; precision?: number }\n) {\n const value = list?.findLast?.((item) => item[metric.id] != null)?.[\n metric.id\n ];\n const unit = metric.unit === "load" ? "" : metric.unit;\n return PIPES.unitFormat(value, unit, precision).join("");\n}\n',a="export function extractList<T = unknown>(data: T[] | { list: T[] }): T[] {\n if (Array.isArray(data)) {\n return data;\n }\n return data?.list;\n}\n",i="export function groupMetricData(\n list: Record<string, any>[],\n groupField: string\n) {\n if (!list || !Array.isArray(list) || list.length === 0) {\n return [];\n }\n const grouped = new Map<\n string,\n { group: string; list: Record<string, any>[] }\n >();\n for (const item of list) {\n const key = item[groupField];\n let groupedList = grouped.get(key);\n if (!groupedList) {\n grouped.set(key, (groupedList = { group: key, list: [] }));\n }\n groupedList.list.push(item);\n }\n return Array.from(grouped.values());\n}\n",s="export function getMetricDisplayNames(\n displayNameList:\n | { metric_name: string; metric_display_name: string }[]\n | undefined,\n metricNames: string[]\n): string[] {\n return metricNames.map(\n (metricName) =>\n displayNameList?.find((item) => item.metric_name === metricName)\n ?.metric_display_name ?? metricName\n );\n}\n";var c;function u(){return c||(c=new Map([["_helper_mergeTexts",l(r)],["_helper_getLatestMetricValue",l(o)],["_helper_extractList",l(a)],["_helper_groupMetricData",l(i)],["_helper_getMetricDisplayNames",l(s)]])),c}function l(e){return e.replace(/^export /m,"").replace(/^import [^\n]+\n/gm,"")}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),o=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 i=n(1369);function s(e,t,n,s,c,u){var l,p,d,f,m,h,v,y=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,b=Object.create,x=[b(null),b(null)],A=t.length;function w(t,n,r){return function(o,a){n&&(a=o,o=e);for(var i=0;i<t.length;i++)a=t[i].apply(o,r?[a]:[]);return r?a:o}}function k(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 P(e,t,n,o,i,s,c,u,d,f,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),y=t[3],b=!c,A=1===i,P=3===i,T=4===i,S=2===i;function E(t,n,r){return function(o,a){return n&&(a=o,o=e),r&&r(o),C[t].call(o,a)}}if(!b){var C={},j=[],O=P?"get":T||A?"set":"value";if(d?(f||A?C={get:a((function(){return y(this)}),o,"get"),set:function(e){t[4](this,e)}}:C[O]=y,f||a(C[O],o,S?"":O)):f||(C=Object.getOwnPropertyDescriptor(e,o)),!f&&!d){if((p=x[+u][o])&&7!=(p^i))throw Error("Decorating two elements with the same name ("+C[O].name+") is not supported yet");x[+u][o]=i<3?1:i}}for(var L=e,M=v.length-1;M>=0;M-=n?2:1){var _=k(v[M],"A decorator","be",!0),F=n?v[M-1]:void 0,N={},R={kind:["field","accessor","method","getter","setter","class"][i],name:o,metadata:l,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),s.push(t)}.bind(null,N)};if(b)p=_.call(F,L,R),N.v=1,k(p,"class decorators","return")&&(L=p);else if(R.static=u,R.private=d,p=R.access={has:d?m.bind():function(e){return o in e}},T||(p.get=d?S?function(e){return h(e),C.value}:E("get",0,h):function(e){return e[o]}),S||P||(p.set=d?E("set",0,h):function(e,t){e[o]=t}),L=_.call(F,A?{get:C.get,set:C.set}:C[O],R),N.v=1,A){if("object"==(0,r.A)(L)&&L)(p=k(L.get,"accessor.get"))&&(C.get=p),(p=k(L.set,"accessor.set"))&&(C.set=p),(p=k(L.init,"accessor.init"))&&j.unshift(p);else if(void 0!==L)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(L,(f?"field":"method")+" decorators","return")&&(f?j.unshift(L):C[O]=L)}return i<2&&c.push(w(j,u,1),w(s,u,0)),f||b||(d?A?c.splice(-1,0,E("get",u),E("set",u)):c.push(S?C[O]:k.call.bind(C[O])):g(e,o,C)),L}function T(e){return g(e,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=b(null==l?null:l),m=[],h=function(e){e&&m.push(w(e))},v=function(t,r){for(var a=0;a<n.length;a++){var s=n[a],u=s[1],l=7&u;if((8&u)==t&&!l==r){var p=s[2],h=!!s[3],v=16&u;P(t?e:e.prototype,s,v,h?"#"+p:(0,i.A)(p),l,l<2?[]:t?f=f||[]:d=d||[],m,!!t,h,r,t&&h?function(t){return(0,o.A)(t)===e}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),h(d),h(f),p=m,A||T(e),{e:p,get c(){var n=[];return A&&[T(e=P(e,[t],s,e.name,5,n)),w(n,1)]}}}},3221:(e,t,n)=>{n.d(t,{$:()=>a,v:()=>i});var r=0,o=new Map;function a(e,t){return"".concat(function(e){return o.has(e)||o.set(e,"isolated-tpl-".concat(r++)),o.get(e)}(t)).concat(s(e))}function i(e){return"tpl".concat(s(e))}function s(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}},3310:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7985);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}},3656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3705:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6284),o=n(4430),a=n(7985);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,a.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4430:(e,t,n)=>{function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},4586:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(1369);function o(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}},4612:e=>{e.exports='import type { ReactNode, PropsWithChildren } from "react";\n\nexport function render(app: ReactNode): ReactNode;\n\nexport function Routes(props: PropsWithChildren<{}>): ReactNode;\n\nexport function Route(props: {\n path: string;\n component: () => ReactNode;\n}): ReactNode;\n\n/** 返回一个有状态的值和一个更新它的函数。 */\nexport function useState<T>(\n initialValue?: T\n): [value: T, setter: Dispatch<SetStateAction<T>>];\n\nexport type Dispatch<A> = (value: A) => void;\n\nexport type SetStateAction<S> = S | ((prevState: S) => S);\n\n/** 异步获取资源,返回获取到的数据、以及一个重新拉取数据的函数 */\nexport function useResource<T = any>(\n fetcher: () => Promise<T>,\n options?: {\n // 不启用则直接返回 fallback\n enabled?: boolean;\n fallback?: unknown;\n }\n): [data: T, refetch: () => void];\n\n/** 返回一个可变的 ref 对象,其 `.current` 属性初始化为传入的参数 (`initialValue`) */\nexport function useRef<T>(initialValue: T): {\n current: T;\n};\n\n/** 获取当前应用的信息 */\nexport function useApp(): App;\n\nexport interface App {\n id: string;\n name: string;\n homepage: string;\n config: Record<string, any>;\n}\n\n/** 获取当前的 URL search 参数 */\nexport function useQuery(): {\n readonly [key: string]: string | undefined;\n};\n\n/** 获取当前的 URL path 参数 */\nexport function usePathParams(): {\n readonly [key: string]: string | undefined;\n};\n\n/** 获取用于进行导航跳转的对象 */\nexport function useHistory(): History;\n\nexport interface History {\n push: (url: string) => void;\n replace: (url: string) => void;\n reload: () => void;\n pushQuery: UpdateQuery;\n replaceQuery: UpdateQuery;\n}\n\nexport type UpdateQuery = (\n newQuery: Record<string, string | null>,\n options?: {\n clear?: boolean; // 是否清除已有参数,默认 false\n notify?: boolean; // 是否通知路由变化,默认 true\n }\n) => void;\n\nexport function useLocation(): {\n href: string;\n origin: string;\n host: string;\n hostname: string;\n};\n\n/** 获取当前用户的信息 */\nexport function useAuth(): {\n username: string;\n userInstanceId: string;\n isAdmin: boolean;\n};\n\n/** 接收一个 Context 对象,返回其当前的值 */\nexport function useContext<T>(context: Context<T>): T;\n\n/** 创建一个 Context 来跨组件传递数据 */\nexport function createContext<T>(defaultValue?: T): Context<T>;\n\nexport interface Context<T> {\n /** 提供 Context 数据的组件 */\n Provider: (props: { value: T; children: React.ReactNode }) => any;\n}\n\n/** 将 children 放置在统一提供的 portal 容器中渲染 */\nexport function createPortal(children: any): any;\n\n/**\n * 按 key 获取翻译后的文本。\n * 第二个参数可传递变量用于替换文本中的占位符(形如 `{{ propName }}`),\n * 也可传递默认值,当找不到对应 key 的翻译时使用该默认值。\n */\nexport function translate(\n key: string,\n variables?: Record<string, unknown>\n): string;\n\n/**\n * 按 key 获取翻译后的文本。\n * 第二个参数可传递变量用于替换文本中的占位符(形如 `{{ propName }}`),\n * 也可传递默认值,当找不到对应 key 的翻译时使用该默认值。\n */\nexport function translate(\n key: string,\n defaultValue?: string\n): string;\n\nexport function translateByRecord(record: Record<string, string>): string;\n\n/** 根据错误对象显示错误信息弹窗 */\nexport function handleHttpError(error: any): void;\n\n/** 调用指定的 Provider 接口 */\nexport function callApi<T extends keyof ContractMap>(\n api: T,\n params: Parameters<ContractMap[T]>[0]\n): Promise<ReturnType<ContractMap[T]>>;\n\n/** 调用指定的 HTTP 接口 */\nexport function callHttp<T = any>(url: string, init?: RequestInit): Promise<T>;\n\n/** 调用指定的工具函数 */\nexport function callTool<T = any, P = any>(\n conversationId: string,\n stepId: string,\n params: P\n): Promise<T>;\n\n/** 提示用户操作结果 */\nexport function showMessage(options: {\n type: "success" | "error" | "warn" | "info";\n content: string;\n}): void;\n\n/** 弹出对话框 */\nexport function showDialog(options: {\n type?: "success" | "error" | "warn" | "info" | "confirm" | "delete";\n title?: string;\n content: string;\n danger?: boolean;\n /**\n * 配合 type: delete 使用,用户需要输入期望值才能进行操作。\n * 在 content 中可以使用 `{{ expect }}` 占位符来显示期望值。\n */\n expect?: string;\n}): Promise<void>;\n\n/** 拷贝一段文本 */\nexport function copyText(text: string): Promise<void>;\n\n/**\n * 平台部署的基础路径,通常为 `/next/`。\n *\n * 对于大部分组件,设置 url 时不需要带上该前缀,但在某些需要使用完整 URL 的场景下需要使用该常量进行拼接。\n */\nexport const BASE_URL: string;\n'},4635:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},5405:(e,t,n)=>{function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},5432:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5536:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},6121:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},6284:(e,t,n)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6330:(e,t,n)=>{function r(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,c,"next",e)}function c(e){r(i,o,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>o})},6488:(e,t,n)=>{function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},6758:e=>{e.exports=function(e){return e[1]}},6902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(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}},6981:(e,t,n)=>{n.d(t,{A:()=>oe});var r=n(1258),o=n(6330),a=n(689),i=n(3705),s=n(3310),c=n(8291),u=n(9740),l=n(410);function p(e,t){for(var n={},r=0,o=Object.entries(null!==(i=e.events)&&void 0!==i?i:{});r<o.length;r++){var i,s=(0,a.A)(o[r],2),c=s[0],u=s[1];switch(e.name){case"Table":switch(c){case"select":var l=d(u,t);l&&(n["row.select.v2"]=l);break;case"sort":var p=d(u,t);p&&(n["sort.change"]=p);break;case"paginate":var f=d(u,t);f&&(n["page.change"]=f)}break;case"Button":if("click"===c){var m=d(u,t);m&&(n.click=m)}break;case"Search":if("search"===c){var h=d(u,t);h&&(n.search=h)}break;case"Select":if("change"===c){var v=d(u,t);v&&(n["change.v2"]=v)}break;default:var y=d(u,t);y&&(n[c]=y)}}return Object.keys(n).length>0?n:void 0}function d(e,t){if(e){var n=(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n;switch(null==e?void 0:e.action){case"update_variable":return{action:"template"===e.payload.scope?"state.set":"context.set",args:[e.payload.name,e.payload.value]};case"refresh_data_source":return{action:"template"===e.payload.scope?"state.refresh":"context.refresh",args:[e.payload.name]};case"call_api":var r,o,a=e.payload,i=a.api,s=a.http,c=a.tool,l=a.params,p=a.isRawProvider,f=null!==(r=e.callback)&&void 0!==r&&r.success?d(e.callback.success,t):void 0,m=null!==(o=e.callback)&&void 0!==o&&o.error?d(e.callback.error,t):void 0;return(0,u.A)((0,u.A)({},p?{useProvider:i,args:l}:s?{useProvider:"basic.http-request",args:[i,l]}:c?{useProvider:"ai-portal.call-tool",args:[c,l]}:{useProvider:"".concat(i).concat(i.includes(":")?"":":*"),params:l}),{},{callback:(0,u.A)((0,u.A)({},f&&{success:f}),m&&{error:m})});case"call_ref":return(0,u.A)((0,u.A)({},"template"===e.payload.scope?{targetRef:e.payload.ref}:{target:"".concat(t.rootId?'[data-root-id="'.concat(t.rootId,'"] '):"",'[data-ref="').concat(e.payload.ref,'"]')}),{},{method:e.payload.method,args:e.payload.args});case"call_selector":return{target:e.payload.selector,method:e.payload.method,args:e.payload.args};case"navigate":return{action:"history.".concat(e.payload.method),args:e.payload.args};case"show_message":return{action:"message.".concat(e.payload.type),args:[e.payload.content]};case"handle_http_error":return{action:"handleHttpError",args:[e.payload]};case"dispatch_event":return{action:"tpl.dispatchEvent",args:[e.payload.type,{detail:e.payload.detail}]};case"conditional":return{if:e.payload.test,then:null!==(n=d(e.payload.consequent,t))&&void 0!==n?n:[],else:d(e.payload.alternate,t)}}}(e,t)})).filter(Boolean);return n.length>0?n:void 0}}var f=n(5188),m=/^<%=?\s/,h=/\s%>$/;function v(e){if("string"!=typeof e)return{isString:!1};var t,n,r=e.trim();return n=r,m.test(n)&&h.test(n)?t=r.replace(m,"").replace(h,"").trim():(console.warn("Invalid expression:",JSON.stringify(e)),t="null"),{isString:!0,embedded:e,expression:t,usedContexts:(0,f.strictCollectMemberUsage)(e,"CTX")}}function y(e){var t=e.properties,n=t.dataSource,r=t.fields,o=t.variant,a=v(n);return{brick:"eo-list",properties:{variant:o,dataSource:a.isString?a.embedded:n,fields:r,themeVariant:"elevo"}}}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=n(7545),x=n(1321);function A(e,t){return null!=t&&t.size?Array.isArray(e)?e.map((function(e){return A(e,t)})):"object"===(0,b.A)(e)&&null!==e?Object.fromEntries(Object.entries(e).map((function(e){var n=(0,a.A)(e,2);return[n[0],A(n[1],t)]}))):"string"==typeof e&&(0,c.UQ)(e)?function(e,t){if(null==t||!t.size)return e;if((0,i.A)(t.keys()).some((function(t){return e.includes(t)}))){var n,r=[];try{n=(0,x.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:function(e,n){if(t.has(e.name)){var o,a,i=null===(o=n[n.length-1])||void 0===o?void 0:o.node;i&&"Property"===i.type&&!i.computed&&i.shorthand&&(a=!0),r.push({id:e,shorthand:a})}}}})}catch(e){console.error("Parse expression failed:",e)}if(r.length>0&&n){for(var o=n,a=o.prefix,s=o.source,c=o.suffix,u=[],l=0,p=0;p<r.length;p++){var d=r[p],f=d.id,m=d.shorthand,h=f.name,v=f.start,y=f.end;u.push(s.substring(l,v),"".concat(m?"".concat(h,": "):"").concat(t.get(h))),l=y}return u.push(s.substring(l)),"".concat(a).concat(u.join("")).concat(c)}}return e}(e,t):e:e}var w=["dataSource","size","columns","rowKey","pagination"],k=["render"],P=["cellData","rowData"];function T(e,t,n,r,o){return S.apply(this,arguments)}function S(){return S=(0,o.A)((0,r.A)().mark((function e(t,n,a,i,s){var c,l,p,d,f,m,h,y,b,x,T,S;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=t.properties,d=(p=l).dataSource,p.size,f=p.columns,m=p.rowKey,h=p.pagination,y=g(p,w),b=v(d),x=new Map,!Array.isArray(f)){e.next=2;break}return e.next=1,Promise.all(f.map(function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,c,l,p,d;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.render,c=g(t,k),!o){e.next=2;break}for(l=new Map,p=0;p<o.params.length&&p<P.length;p++)l.set(o.params[p],"DATA.".concat(P[p]));return e.next=1,Promise.all(o.children.map((function(e){return te(e,n,a,i,s)})));case 1:return d=e.sent.flatMap((function(e){return A(e,l)})),e.abrupt("return",(0,u.A)((0,u.A)({},c),{},{useBrick:d.map((function(e){return e.brick.startsWith(":")?{brick:"div",children:[e]}:e}))}));case 2:return e.abrupt("return","string"==typeof c.dataIndex&&x.has(c.dataIndex)?(0,u.A)((0,u.A)({},c),{},{useChildren:"[".concat(c.dataIndex,"]")}):c);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:S=e.sent,e.next=3;break;case 2:S=f;case 3:return T=S,e.abrupt("return",{brick:"eo-next-table",properties:(0,u.A)((0,u.A)({dataSource:b.isString?b.embedded:d},y),{},{rowKey:null!=m?m:Array.isArray(f)?null===(c=f[0])||void 0===c?void 0:c.key:void 0,columns:T,themeVariant:"elevo",scrollConfig:{x:"max-content"}},i.expanded?{bordered:!0,pagination:h,size:"large"}:{size:"middle",pagination:!1}),children:x.size>0?Array.from(x.values()):[]});case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}var E=["dataSource","title","list","columns"],C=["render"];function j(e,t,n,r,o){return O.apply(this,arguments)}function O(){return O=(0,o.A)((0,r.A)().mark((function e(t,n,a,i,s){var c,l,p,d,f,m,h,y,b,x;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=t.properties,p=(l=c).dataSource,l.title,d=l.list,f=l.columns,m=g(l,E),h=v(p),y=new Map,!Array.isArray(d)){e.next=2;break}return e.next=1,Promise.all(d.map(function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,c,u,l,p;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.render,c=g(t,C),!o){e.next=2;break}return u=new Map,o.params.length>0&&u.set(o.params[0],"DATA"),e.next=1,Promise.all(o.children.map((function(e){return te(e,n,a,i,s)})));case 1:return l=e.sent.flatMap((function(e){return A(e,u)})),e.abrupt("return",{label:c.label,useBrick:l});case 2:return p=c.field?y.get(c.field):void 0,e.abrupt("return",p?{label:c.label,useChildren:"[".concat(c.field,"]")}:c);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:x=e.sent,e.next=3;break;case 2:x=d;case 3:return b=x,e.abrupt("return",{brick:"eo-descriptions",properties:(0,u.A)((0,u.A)((0,u.A)({},m),{},{dataSource:h.isString?h.embedded:p,list:b},null==f?{column:i.expanded?3:1,templateColumns:"repeat(auto-fill,minmax(360px,1fr))"}:{column:f}),{},{themeVariant:"elevo"}),children:y.size>0?Array.from(y.values()):[]});case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}var L=n(4586),M=["#336EF4","#45CAFF","#41CDCF","#8146F3","#F8A075","#94E65E","#57689C","#C285EF","#FAC60B","#E4551F","#8984FF","#2540FF","#08BF33","#F7811C","#AC7CFF","#1BA5DC","#E89716","#76A6F5","#4F69FF"];function _(e,t,n,r){return F.apply(this,arguments)}function F(){return(F=(0,o.A)((0,r.A)().mark((function e(t,n,o,a){var i,c,l,p,d,f,m,h,y,g,b,x,A,w,k,P,T,S,E;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.properties,l=(c=i).dataSource,p=c.groupField,d=c.widgets,o.usedHelpers.add("_helper_getLatestMetricValue"),o.usedHelpers.add("_helper_extractList"),o.usedHelpers.add("_helper_groupMetricData"),o.usedHelpers.add("_helper_getMetricDisplayNames"),f=p?"#showKey":void 0,m=v(l),h=m.isString,y=m.expression,g=h?"<%= FN._helper_extractList((".concat(y,")) %>"):l,!a.expanded){e.next=9;break}if(b=d,!((x=[]).length>0)){e.next=8;break}b=[],A=new Set,w=new Set(d.map((function(e){return e.metric.id}))),k=(0,s.A)(d),e.prev=1,T=(0,r.A)().mark((function e(){var t,n,o,a,i,c,l;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=P.value,!A.has(t.metric.id)){e.next=1;break}return e.abrupt("return",1);case 1:if(n=(0,u.A)({},t),b.push(n),(o=x.find((function(e){return e.metrics.includes(t.metric.id)})))&&(a=o.metrics.filter((function(e){return w.has(e)}))).length>1){n.relevantMetrics=a,n.counterMetric=o.counter,n.groupTitle=o.group,i=(0,s.A)(a);try{for(i.s();!(c=i.n()).done;)l=c.value,A.add(l),w.delete(l)}catch(e){i.e(e)}finally{i.f()}}case 2:case"end":return e.stop()}}),e)})),k.s();case 2:if((P=k.n()).done){e.next=5;break}return e.delegateYield(T(),"t0",3);case 3:if(!e.t0){e.next=4;break}return e.abrupt("continue",4);case 4:e.next=2;break;case 5:e.next=7;break;case 6:e.prev=6,E=e.catch(1),k.e(E);case 7:return e.prev=7,k.f(),e.finish(7);case 8:return S=0,e.abrupt("return",{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))",gap:"16px"},dataset:{component:"dashboard"}},children:b.map((function(e){var t,n,r=e.title,o=e.metric,a=e.size,i=e.precision,s=null!==(t=null===(n=e.relevantMetrics)||void 0===n?void 0:n.length)&&void 0!==t?t:f?2:1,c=Array.from({length:s},(function(e,t){return M[(S+t)%M.length]}));S+=s;var l,p,d,m,h,v,b="load"===o.unit?"":o.unit,x={brick:"chart-v2.time-series-chart",properties:(0,u.A)((0,u.A)((0,u.A)((0,u.A)({data:g,xField:"time"},e.relevantMetrics?{yFields:"<% FN._helper_getMetricDisplayNames((".concat(y,").displayNameList, ").concat(JSON.stringify(e.relevantMetrics),") %>")}:{yField:"<% FN._helper_getMetricDisplayNames((".concat(y,").displayNameList, [").concat(JSON.stringify(o.id),"])[0] %>")}),e.counterMetric?{forceAbsoluteNumbers:!0,series:(0,L.A)({},e.counterMetric,{isNegative:!0})}:null),{},{height:"large"===a?230:200,timeFormat:"HH:mm"},e.relevantMetrics||f?null:{areaOptions:{style:{fill:"l(90) 0:".concat(c[0]," 1:#ffffff")}}}),{},{axis:{yAxis:(0,u.A)((0,u.A)({unit:b,precision:i},e.counterMetric?null:"percent(1)"===b?{min:0,max:1}:"percent(100)"===b||"%"===b?{min:0,max:100}:{min:0}),{},{shape:"smooth"})},groupField:f,areaShape:"smooth",legends:!(!e.relevantMetrics&&!f),colors:c,tooltip:{marker:{fill:c[0],stroke:"#fff",lineWidth:2,shadowColor:c[0],shadowBlur:8,shadowOffsetX:0,shadowOffsetY:4},domStyles:{"g2-tooltip":{background:["radial-gradient( farthest-corner at -20px 150px, ".concat(c[0]," 0%, rgba(238,238,238,0) 60%)"),"linear-gradient( 180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%)"].join(", "),boxShadow:"0px 4px 8px 0px ".concat((l=c[0],p=l.slice(1),d=parseInt(p,16),m=d>>16&255,h=d>>8&255,v=255&d,"rgba(".concat(m,", ").concat(h,", ").concat(v,", ").concat(.08,")"))),borderRadius:"8px",border:"1px solid rgba(255,255,255,1)",backdropFilter:"blur(3px)"}}}})};return{brick:"div",properties:{style:{background:"rgba(255,255,255,0.8)",boxShadow:"0px 2px 4px 0px rgba(0,0,0,0.06)",borderRadius:"8px",padding:"16px 20px 20px"}},children:[{brick:"div",properties:{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"},textContent:e.groupTitle||r||o.id}},x]}}))});case 9:if(!f){e.next=10;break}return e.abrupt("return",{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:[{brick:":forEach",dataSource:"<%= FN._helper_groupMetricData(FN._helper_extractList((".concat(y,")), ").concat(JSON.stringify(f),") %>"),children:[{brick:"div",properties:{textContent:"<% `${ITEM.group}:` %>",style:{fontWeight:"500"}}},{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",marginBottom:"8px"},dataset:{component:"dashboard"}},children:d.map((function(e,t){var n=e.title,r=e.metric,o=e.precision;return{brick:"ai-portal.stat-with-mini-chart",properties:(0,u.A)((0,u.A)({size:"small",label:n||r.id,data:"<% ITEM.list %>",xField:"time",yField:r.id,lineColor:M[t%M.length],showArea:!0},"percent(1)"===r.unit?{min:0,max:1}:"percent(100)"===r.unit||"%"===r.unit?{min:0,max:100}:{min:0}),{},{value:"<%= FN._helper_getLatestMetricValue(ITEM.list, ".concat(JSON.stringify({metric:r,precision:o}),") %>")})}}))}]}]});case 10:return e.abrupt("return",{brick:"div",properties:{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px"},dataset:{component:"dashboard"}},children:d.map((function(e,t){var n=e.title,r=e.metric,o=e.precision;return{brick:"ai-portal.stat-with-mini-chart",properties:(0,u.A)((0,u.A)({size:"small",label:n||r.id,data:g,xField:"time",yField:r.id,lineColor:M[t%M.length],showArea:!0},"percent(1)"===r.unit?{min:0,max:1}:"percent(100)"===r.unit||"%"===r.unit?{min:0,max:100}:{min:0}),{},{value:"<%= FN._helper_getLatestMetricValue((".concat(h?"FN._helper_extractList((".concat(y,"))"):JSON.stringify(null!=l?l:null),"), ").concat(JSON.stringify({metric:r,precision:o}),") %>")})}}))});case 11:case"end":return e.stop()}}),e,null,[[1,6,7,8]])})))).apply(this,arguments)}function N(e){var t=e.properties;return{brick:"eo-button",properties:(0,u.A)((0,u.A)({},t),{},{themeVariant:"elevo"})}}function R(e){var t=e.properties,n=(null!=t?t:{}).values;return{brick:"eo-form",properties:{values:null!=n?n:{},themeVariant:"elevo"}}}function I(e,t){var n=e.properties,r=t,o=(0,u.A)((0,u.A)({},n),{},{themeVariant:"elevo"});switch(r){case"eo-search":o=(0,u.A)((0,u.A)({},o),{},{trim:!0});break;case"eo-number-input":r="eo-input",o=(0,u.A)({type:"number"},o)}return{brick:r,properties:o}}var D=["title","confirmText","cancelText"];function B(e){var t=e.properties,n=t.title,r=t.confirmText,o=t.cancelText,a=g(t,D);return{brick:"eo-modal",portal:!0,properties:(0,u.A)({themeVariant:"elevo",modalTitle:n,confirmText:r,cancelText:o,keyboard:!0},a)}}function z(e){var t=e.properties;return{brick:"span",properties:(0,u.A)({},t)}}function V(e){var t=e.properties,n=t.title,r=t.textContent;return{brick:"eo-card",properties:(0,u.A)({themeVariant:"elevo",cardTitle:n,background:"#fff",outline:"background"},r?{textContent:r}:null)}}function H(e){return{brick:":forEach",dataSource:e.properties.dataSource}}function U(e){return{brick:":if",dataSource:e.properties.dataSource}}var G=["style"];function W(e){var t=e.properties,n=t.style,r=g(t,G);return{brick:"pre",properties:(0,u.A)({style:(0,u.A)({background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",tabSize:"2",hyphens:"none",fontSize:"13px",padding:"1em",margin:"0",overflowX:"auto",borderRadius:"9px"},n)},r)}}function J(e,t,n){var r=e.properties;return{brick:"eo-link",properties:(0,u.A)((0,u.A)({},r),{},{inApp:"app"===n.app.appType,themeVariant:"elevo"})}}function Q(e){var t=e.properties;return{brick:"eo-tag",properties:(0,u.A)((0,u.A)({},t),{},{themeVariant:"elevo"})}}function $(e){var t=e.properties;return{brick:"eo-avatar",properties:(0,u.A)((0,u.A)({},t),{},{themeVariant:"elevo"})}}function q(e){var t=e.properties;return{brick:"eo-avatar-group",properties:(0,u.A)((0,u.A)({},t),{},{themeVariant:"elevo"})}}function K(e){var t=e.properties;return{brick:"eo-code-block",properties:(0,u.A)((0,u.A)({},t),{},{themeVariant:"elevo"})}}var Y=n(3221),X=n(2025);function Z(e,t){for(var n={},r=0,o=Object.entries(null!==(i=e.lifeCycle)&&void 0!==i?i:{});r<o.length;r++){var i,s=(0,a.A)(o[r],2),c=s[0],u=s[1];switch(c){case"onMount":case"onUnmount":var l=d(u,t);l&&(n[c]=l)}}return Object.keys(n).length>0?n:void 0}var ee=["eo-modal","eo-drawer"];function te(e,t,n,r,o){return ne.apply(this,arguments)}function ne(){return(ne=(0,o.A)((0,r.A)().mark((function e(t,n,o,a,s){var u,l,d,f,m,h,v,g,b,x,A,w,k,P,S,E,C;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=null,!(0,c.zk)(t)){e.next=43;break}d=t.reference?t.reference.name:t.name,C=d,e.next="List"===C?1:"Table"===C?3:"Descriptions"===C?5:"Card"===C?7:"Dashboard"===C?9:"Button"===C?11:"Form"===C?13:"Toolbar"===C?15:"Modal"===C?17:"Plaintext"===C?19:"Link"===C?21:"Output"===C?23:"Tag"===C?25:"Avatar"===C?27:"AvatarGroup"===C?29:"CodeBlock"===C?31:"Search"===C||"Input"===C||"NumberInput"===C||"Textarea"===C||"Select"===C||"Radio"===C||"Checkbox"===C||"Switch"===C||"DatePicker"===C||"TimePicker"===C?33:"ForEach"===C?35:"If"===C?37:"Routes"===C?39:"Route"===C?40:41;break;case 1:return e.next=2,y(t);case 2:return l=e.sent,e.abrupt("continue",42);case 3:return e.next=4,T(t,n,o,a,s);case 4:return l=e.sent,e.abrupt("continue",42);case 5:return e.next=6,j(t,n,o,a,s);case 6:return l=e.sent,e.abrupt("continue",42);case 7:return e.next=8,V(t);case 8:return l=e.sent,e.abrupt("continue",42);case 9:return e.next=10,_(t,n,o,a);case 10:return l=e.sent,e.abrupt("continue",42);case 11:return e.next=12,N(t);case 12:return l=e.sent,e.abrupt("continue",42);case 13:return e.next=14,R(t);case 14:return l=e.sent,e.abrupt("continue",42);case 15:return e.next=16,{brick:"eo-flex-layout",properties:{gap:"0.5em",alignItems:"center"}};case 16:return l=e.sent,e.abrupt("continue",42);case 17:return e.next=18,B(t);case 18:return l=e.sent,e.abrupt("continue",42);case 19:return e.next=20,z(t);case 20:return l=e.sent,e.abrupt("continue",42);case 21:return e.next=22,J(t,0,o);case 22:return l=e.sent,e.abrupt("continue",42);case 23:return e.next=24,W(t);case 24:return l=e.sent,e.abrupt("continue",42);case 25:return e.next=26,Q(t);case 26:return l=e.sent,e.abrupt("continue",42);case 27:return e.next=28,$(t);case 28:return l=e.sent,e.abrupt("continue",42);case 29:return e.next=30,q(t);case 30:return l=e.sent,e.abrupt("continue",42);case 31:return e.next=32,K(t);case 32:return l=e.sent,e.abrupt("continue",42);case 33:return e.next=34,I(t,re(t.name));case 34:return l=e.sent,e.abrupt("continue",42);case 35:return e.next=36,H(t);case 36:return l=e.sent,e.abrupt("continue",42);case 37:return e.next=38,U(t);case 38:return l=e.sent,e.abrupt("continue",42);case 39:return e.abrupt("return",(0,X.k)(t.children,o,n,a));case 40:return console.error("<Route> should be a child of <Routes>."),e.abrupt("continue",42);case 41:"app"!==o.app.appType&&!a.allowAnyBricks||t.name.toLowerCase()!==t.name?console.error("Unknown component:",t.name):l={brick:t.name.replaceAll("_",".").replaceAll("--","."),properties:t.properties};case 42:e.next=44;break;case 43:m=t.reference,h=m.type,v=m.importSource,g=m.name,"imported"===h?(x=o.app.modules.get(v),b=g?null==x?void 0:x.namedExports.get(g):null==x?void 0:x.defaultExport):(A=[].concat((0,i.A)(n.internals),(0,i.A)(n.namedExports.values())),b=A.find((function(e){var t;return"template"===e.type&&(null===(t=e.component.id)||void 0===t?void 0:t.name)===g}))),"template"===(null===(f=b)||void 0===f?void 0:f.type)?(w=b.component.id.name,l={brick:"app"===o.app.appType?(0,Y.v)(w):(0,Y.$)(w,a.rootId),properties:t.properties}):console.error('Cannot find the component "'.concat(t.reference.name,'".'));case 44:if(l){e.next=45;break}return e.abrupt("return",[]);case 45:if(t.ref&&("template"===s?l.ref=t.ref:(null!==(P=(k=l).properties)&&void 0!==P||(k.properties={}),null!==(E=(S=l.properties).dataset)&&void 0!==E||(S.dataset={}),l.properties.dataset.ref=t.ref)),t.slot&&(l.slot=t.slot),l.events=p(t,a),l.lifeCycle=Z(t,a),null===(u=t.children)||void 0===u||!u.length){e.next=47;break}return e.next=46,Promise.all(t.children.map((function(e){return te(e,n,o,a,s)})));case 46:l.children=e.sent.flat(),("Card"===t.name||"Modal"===t.name)&&l.children.length>0&&(l.children=[{brick:"eo-content-layout",children:l.children}]);case 47:return(t.portal||ee.includes(l.brick))&&(l.portal=!0),t.context&&(l.context=t.context),e.abrupt("return",l);case 48:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(e){return e.includes("-")?e:"eo".concat(e.replace(/([A-Z])/g,"-$1").toLowerCase())}function oe(e,t,n){if(e.usedHelpers.size>0){var r,o=(0,s.A)(e.usedHelpers);try{for(o.s();!(r=o.n()).done;){var c=r.value;t.usedHelpers.add(c)}}catch(e){o.e(e)}finally{o.f()}}return{sourceModule:e,defaultExport:e.defaultExport?{raw:e.defaultExport,promise:ae(e.defaultExport,e,t,n)}:null,namedExports:new Map((0,i.A)(e.namedExports).map((function(r){var o=(0,a.A)(r,2),i=o[0],s=o[1];return[i,{raw:s,promise:ae(s,e,t,n)}]}))),internals:e.internals.map((function(r){return{raw:r,promise:ae(r,e,t,n)}}))}}function ae(e,t,n,r){return ie.apply(this,arguments)}function ie(){return(ie=(0,o.A)((0,r.A)().mark((function e(t,n,o,a){var i,p,d,f,m,h,v,y,g,b,x,A;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==t.type&&"context"!==t.type){e.next=1;break}return e.abrupt("return",t);case 1:d=[],f=t.component,m=(0,s.A)(f.bindingMap.values());try{for(m.s();!(h=m.n()).done;)"resource"===(v=h.value).kind?d.push((r=v.resource,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w=r.name,k=r.http,P=r.api,T=r.params,S=r.tool,E=r.transform,C=r.rejectTransform,j=r.config,O=r.scope,L=r.isRawProvider,M=j&&Object.prototype.hasOwnProperty.call(j,"enabled"),(0,u.A)((0,u.A)({name:w,resolve:(0,u.A)((0,u.A)((0,u.A)((0,u.A)({},L?{useProvider:P,args:T}:k?{useProvider:"basic.http-request",args:[P,T]}:S?{useProvider:"ai-portal.call-tool",args:[S,T]}:(0,u.A)({useProvider:"".concat(P,":*"),params:T},"easyops.api.data_exchange.olap@Query"===P&&(0,l.isObject)(T)?{params:(0,u.A)((0,u.A)({},T),{},{translate:["#showKey"],limit:void 0,limitBy:void 0,order:void 0,displayName:!0})}:null)),E?{transform:{value:E}}:null),C?{onReject:{transform:{value:C}}}:null),M?{if:j.enabled}:null),track:!0},M?{value:j.fallback}:null),"template"===O?{expose:!1}:null))):"state"!==v.kind&&"constant"!==v.kind&&"param"!==v.kind||d.push({name:v.id.name,value:v.initialValue,expose:"param"===v.kind,track:!0})}catch(e){m.e(e)}finally{m.f()}if("view"===t.type?(b=null===(g=f.children)||void 0===g?void 0:g.find((function(e){return(0,c.dN)(e,"View")})))&&(y=b.children):y=f.children,null===(i=y)||void 0===i||!i.length){e.next=3;break}return e.next=2,Promise.all(y.map((function(e){return te(e,n,o,a,t.type)})));case 2:A=e.sent.flat(),e.next=4;break;case 3:A=[];case 4:return x=A,e.abrupt("return",{type:t.type,bricks:x,context:d,name:null===(p=f.id)||void 0===p?void 0:p.name,proxy:f.proxy,title:t.title});case 5:case"end":return e.stop()}var r,w,k,P,T,S,E,C,j,O,L,M}),e)})))).apply(this,arguments)}},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})},7695:(e,t,n)=>{n.d(t,{LV:()=>d});const r=Symbol("Comlink.proxy"),o=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),i=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),c=e=>"object"==typeof e&&null!==e||"function"==typeof e,u=new Map([["proxy",{canHandle:e=>c(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return l(e,t),[n,[n]]},deserialize:e=>(e.start(),d(e))}],["throw",{canHandle:e=>c(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function l(e,t=globalThis,n=["*"]){t.addEventListener("message",(function o(a){if(!a||!a.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:c,type:u,path:d}=Object.assign({path:[]},a.data),f=(a.data.argumentList||[]).map(A);let m;try{const t=d.slice(0,-1).reduce(((e,t)=>e[t]),e),n=d.reduce(((e,t)=>e[t]),e);switch(u){case"GET":m=n;break;case"SET":t[d.slice(-1)[0]]=A(a.data.value),m=!0;break;case"APPLY":m=n.apply(t,f);break;case"CONSTRUCT":m=function(e){return Object.assign(e,{[r]:!0})}(new n(...f));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;l(e,n),m=function(e,t){return b.set(e,t),e}(t,[t])}break;case"RELEASE":m=void 0;break;default:return}}catch(e){m={value:e,[s]:0}}Promise.resolve(m).catch((e=>({value:e,[s]:0}))).then((n=>{const[r,a]=x(n);t.postMessage(Object.assign(Object.assign({},r),{id:c}),a),"RELEASE"===u&&(t.removeEventListener("message",o),p(t),i in e&&"function"==typeof e[i]&&e[i]())})).catch((e=>{const[n,r]=x({value:new TypeError("Unserializable return value"),[s]:0});t.postMessage(Object.assign(Object.assign({},n),{id:c}),r)}))})),t.start&&t.start()}function p(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function d(e,t){const n=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}})),y(e,n,[],t)}function f(e){if(e)throw new Error("Proxy has been released and is not useable")}function m(e){return w(e,new Map,{type:"RELEASE"}).then((()=>{p(e)}))}const h=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(h.get(e)||0)-1;h.set(e,t),0===t&&m(e)}));function y(e,t,n=[],r=function(){}){let i=!1;const s=new Proxy(r,{get(r,o){if(f(i),o===a)return()=>{!function(e){v&&v.unregister(e)}(s),m(e),t.clear(),i=!0};if("then"===o){if(0===n.length)return{then:()=>s};const r=w(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(A);return r.then.bind(r)}return y(e,t,[...n,o])},set(r,o,a){f(i);const[s,c]=x(a);return w(e,t,{type:"SET",path:[...n,o].map((e=>e.toString())),value:s},c).then(A)},apply(r,a,s){f(i);const c=n[n.length-1];if(c===o)return w(e,t,{type:"ENDPOINT"}).then(A);if("bind"===c)return y(e,t,n.slice(0,-1));const[u,l]=g(s);return w(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:u},l).then(A)},construct(r,o){f(i);const[a,s]=g(o);return w(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:a},s).then(A)}});return function(e,t){const n=(h.get(t)||0)+1;h.set(t,n),v&&v.register(e,t,e)}(s,e),s}function g(e){const t=e.map(x);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const b=new WeakMap;function x(e){for(const[t,n]of u)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},b.get(e)||[]]}function A(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function w(e,t,n,r){return new Promise((o=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(a,o),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)}))}},7985:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6284);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},8291:(e,t,n)=>{n.d(t,{UQ:()=>i,dN:()=>c,zk:()=>s}),n(8135);var r=n(9978),o=/^<%=?\s/,a=/\s%>$/;function i(e){if("string"!=typeof e)return!1;var t=e.trim();return o.test(t)&&a.test(t)}function s(e){return!e.reference||"imported"===e.reference.type&&e.reference.importSource===r.FJ}function c(e,t){return s(e)&&(e.reference?e.reference.name===t:e.name===t)}},9740:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(4586);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},9978:(e,t,n)=>{n.d(t,{FJ:()=>r});var r="@next-tsx/core"}}]);
3
+ //# sourceMappingURL=9564.e671e913.js.map