@tachybase/module-multi-app 0.23.58 → 1.0.18

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 (44) hide show
  1. package/dist/client/base/collections/collectionMultiApp.d.ts +73 -0
  2. package/dist/client/base/kit.d.ts +5 -0
  3. package/dist/client/base/schemas/schemaForm.d.ts +2 -0
  4. package/dist/client/{settings/schemas/applications.d.ts → base/schemas/schemaTableActionColumn.d.ts} +0 -2
  5. package/dist/client/index.d.ts +3 -6
  6. package/dist/client/index.js +43 -1
  7. package/dist/client/plugin.d.ts +4 -0
  8. package/dist/client/{AppManager.d.ts → system/AppManager.d.ts} +1 -0
  9. package/dist/client/system/AppManager.schema.d.ts +2 -0
  10. package/dist/client/system/hooks/useCreateDatabaseConnectionAction.d.ts +3 -0
  11. package/dist/client/system/hooks/useHandle.d.ts +4 -0
  12. package/dist/client/system/hooks/useMultiAppUpdateAction.d.ts +3 -0
  13. package/dist/client/system/hooks/useRouteUrl.d.ts +4 -0
  14. package/dist/client/system/hooks/useStartAllAction.d.ts +3 -0
  15. package/dist/client/system/hooks/useStopAllAction.d.ts +3 -0
  16. package/dist/client/system/kit.d.ts +5 -0
  17. package/dist/client/usage/AppList.d.ts +1 -0
  18. package/dist/client/usage/AppList.schema.d.ts +114 -0
  19. package/dist/client/usage/AppList.style.d.ts +3 -0
  20. package/dist/client/usage/MultiAppBlockInitializer.schema.d.ts +15 -0
  21. package/dist/client/usage/ShowMultiAppBlockInitializer.d.ts +1 -0
  22. package/dist/client/usage/ShowMultiAppBlockInitializer.schema.d.ts +15 -0
  23. package/dist/client/usage/ViewMultiAppPane.d.ts +1 -0
  24. package/dist/client/usage/ViewMultiAppPane.schema.d.ts +94 -0
  25. package/dist/client/usage/kit.d.ts +5 -0
  26. package/dist/externalVersion.js +10 -10
  27. package/dist/locale/en-US.json +16 -1
  28. package/dist/locale/zh-CN.json +16 -1
  29. package/dist/node_modules/mariadb/package.json +1 -1
  30. package/dist/node_modules/qs/lib/index.js +1 -1
  31. package/dist/node_modules/qs/package.json +1 -1
  32. package/dist/server/actions/apps.js +1 -1
  33. package/dist/server/collections/applications.js +16 -1
  34. package/dist/server/middlewares/app-selector.js +10 -6
  35. package/dist/server/models/application.js +15 -0
  36. package/dist/server/server.js +1 -2
  37. package/package.json +9 -9
  38. package/dist/client/Settings.d.ts +0 -1
  39. package/dist/client/hooks/index.d.ts +0 -12
  40. /package/dist/client/{AppNameInput.d.ts → base/AppNameInput.d.ts} +0 -0
  41. /package/dist/client/{MultiAppManagerProvider.d.ts → base/MultiAppManagerProvider.d.ts} +0 -0
  42. /package/dist/client/{MultiAppManagerProvider.style.d.ts → base/MultiAppManagerProvider.style.d.ts} +0 -0
  43. /package/dist/client/{utils.d.ts → locale.d.ts} +0 -0
  44. /package/dist/client/{MultiAppBlockInitializer.d.ts → usage/MultiAppBlockInitializer.d.ts} +0 -0
@@ -0,0 +1,73 @@
1
+ export declare const collectionMultiApp: {
2
+ name: string;
3
+ filterTargetKey: string;
4
+ targetKey: string;
5
+ fields: ({
6
+ type: string;
7
+ name: string;
8
+ primaryKey: boolean;
9
+ prefix: string;
10
+ interface: string;
11
+ uiSchema: {
12
+ type: string;
13
+ title: string;
14
+ required: boolean;
15
+ 'x-component': string;
16
+ 'x-validator': string;
17
+ 'x-content'?: undefined;
18
+ enum?: undefined;
19
+ };
20
+ defaultValue?: undefined;
21
+ } | {
22
+ type: string;
23
+ name: string;
24
+ interface: string;
25
+ uiSchema: {
26
+ type: string;
27
+ title: string;
28
+ required: boolean;
29
+ 'x-component': string;
30
+ 'x-validator'?: undefined;
31
+ 'x-content'?: undefined;
32
+ enum?: undefined;
33
+ };
34
+ primaryKey?: undefined;
35
+ prefix?: undefined;
36
+ defaultValue?: undefined;
37
+ } | {
38
+ type: string;
39
+ name: string;
40
+ interface: string;
41
+ uiSchema: {
42
+ type: string;
43
+ 'x-content': string;
44
+ 'x-component': string;
45
+ title?: undefined;
46
+ required?: undefined;
47
+ 'x-validator'?: undefined;
48
+ enum?: undefined;
49
+ };
50
+ primaryKey?: undefined;
51
+ prefix?: undefined;
52
+ defaultValue?: undefined;
53
+ } | {
54
+ type: string;
55
+ name: string;
56
+ interface: string;
57
+ defaultValue: string;
58
+ uiSchema: {
59
+ type: string;
60
+ title: string;
61
+ enum: {
62
+ label: string;
63
+ value: string;
64
+ }[];
65
+ 'x-component': string;
66
+ required?: undefined;
67
+ 'x-validator'?: undefined;
68
+ 'x-content'?: undefined;
69
+ };
70
+ primaryKey?: undefined;
71
+ prefix?: undefined;
72
+ })[];
73
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ /** 基础机制设置部分 */
3
+ export declare class KitBase extends Plugin {
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { ISchema } from '@tachybase/schema';
2
+ export declare const formSchema: ISchema;
@@ -1,4 +1,2 @@
1
1
  import { ISchema } from '@tachybase/schema';
2
- export declare const formSchema: ISchema;
3
2
  export declare const tableActionColumnSchema: ISchema;
4
- export declare const schema: ISchema;
@@ -1,6 +1,3 @@
1
- import { Plugin } from '@tachybase/client';
2
- export declare class MultiAppManagerPlugin extends Plugin {
3
- load(): Promise<void>;
4
- }
5
- export default MultiAppManagerPlugin;
6
- export { formSchema, tableActionColumnSchema } from './settings/schemas/applications';
1
+ export { default } from './plugin';
2
+ export { formSchema } from './base/schemas/schemaForm';
3
+ export { tableActionColumnSchema } from './base/schemas/schemaTableActionColumn';
@@ -1 +1,43 @@
1
- (function(a,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("@ant-design/icons"),require("react"),require("antd"),require("@tachybase/schema"),require("react-i18next"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","@ant-design/icons","react","antd","@tachybase/schema","react-i18next","react-router-dom"],e):(a=typeof globalThis!="undefined"?globalThis:a||self,e(a["@tachybase/module-multi-app"]={},a.jsxRuntime,a["@tachybase/client"],a["@ant-design/icons"],a.react,a.antd,a["@tachybase/schema"],a["react-i18next"],a["react-router-dom"]))})(this,function(a,e,o,A,v,r,x,b,y){"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var V=(a,e,o)=>e in a?X(a,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[e]=o,C=(a,e)=>{for(var o in e||(e={}))ee.call(e,o)&&V(a,o,e[o]);if(O)for(var o of O(e))te.call(e,o)&&V(a,o,e[o]);return a},I=(a,e)=>Z(a,R(e));var g=(a,e,o)=>new Promise((A,v)=>{var r=y=>{try{b(o.next(y))}catch(m){v(m)}},x=y=>{try{b(o.throw(y))}catch(m){v(m)}},b=y=>y.done?A(y.value):Promise.resolve(y.value).then(r,x);b((o=o.apply(a,e)).next())});const m="multi-app",z="subAppsChange",f="subAppsChange",S=()=>{const{t}=b.useTranslation([m,"core"]);return{t}},s=t=>`{{t("${t}", { ns: ["${m}", "client"] })}}`,N=()=>{const t=x.useForm(),n=x.useField(),c=o.useActionContext(),p=o.useDataBlockRequest(),i=o.useDataBlockResource();return{onClick(){return g(this,null,function*(){try{yield t.submit(),n.data=n.data||{},n.data.loading=!0,yield i.create({values:t.values}),c.setVisible(!1),yield t.reset(),n.data.loading=!1,p.refresh()}catch(u){n.data&&(n.data.loading=!1)}})}}},q=t=>{const n=x.useField(),c=x.useForm(),p=o.useActionContext(),i=o.useDataBlockRequest(),d=o.useDataBlockResource(),u=o.useCollectionRecordData(),h=u==null?void 0:u.name;return{onClick(){return g(this,null,function*(){var k;yield c.submit(),n.data=n.data||{},n.data.loading=!0;try{const l=yield d.update({filterByTk:h,values:c.values});p.setVisible(!1),yield c.reset(),i.refresh(),t==null||t(h,(k=l==null?void 0:l.data)==null?void 0:k.data)}catch(l){console.error(l)}finally{n.data.loading=!1}})}}},E=()=>{const t=o.useDataBlockResource(),{t:n}=S();return{onClick(){return g(this,null,function*(){var i,d;const p=yield t.startAll();r.notification.info({key:f,message:e.jsxs("span",{children:[n("Processing..."),"    ",e.jsx(r.Spin,{indicator:e.jsx(A.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0}),((d=(i=p==null?void 0:p.data)==null?void 0:i.data)==null?void 0:d.all)===0&&r.notification.info({key:f,message:`${n("Start count")}: 0/0!`})})}}},$=()=>{const t=o.useDataBlockResource(),{t:n}=S();return{onClick(){return g(this,null,function*(){var i,d;const p=yield t.stopAll();if(((d=(i=p==null?void 0:p.data)==null?void 0:i.data)==null?void 0:d.all)===0){r.notification.info({key:f,message:`${n("Stop count")}: 0/0!`});return}r.notification.info({key:f,message:e.jsxs("span",{children:[n("Processing..."),"    ",e.jsx(r.Spin,{indicator:e.jsx(A.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0})})}}},_={name:"applications",filterTargetKey:"name",targetKey:"name",fields:[{type:"uid",name:"name",primaryKey:!0,prefix:"a",interface:"input",uiSchema:{type:"string",title:s("App ID"),required:!0,"x-component":"Input","x-validator":"uid"}},{type:"string",name:"displayName",interface:"input",uiSchema:{type:"string",title:s("App display name"),required:!0,"x-component":"Input"}},{type:"string",name:"pinned",interface:"checkbox",uiSchema:{type:"boolean","x-content":s("Pin to menu"),"x-component":"Checkbox"}},{type:"string",name:"status",interface:"radioGroup",defaultValue:"pending",uiSchema:{type:"string",title:s("App status"),enum:[{label:"Initializing",value:"initializing"},{label:"Initialized",value:"initialized"},{label:"Running",value:"running"},{label:"Commanding",value:"commanding"},{label:"Stopped",value:"stopped"},{label:"Error",value:"error"},{label:"Not found",value:"not_found"}],"x-component":"Radio.Group"}},{type:"string",name:"isTemplate",interface:"checkbox",uiSchema:{type:"boolean","x-content":s("Is template"),"x-component":"Checkbox"}}]},T={type:"void","x-component":"div",properties:{displayName:{"x-component":"CollectionField","x-decorator":"FormItem"},name:{"x-component":"CollectionField","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}","x-hidden":"{{ !admin }}"},"options.autoStart":{title:s("Start mode"),"x-component":"Radio.Group","x-decorator":"FormItem",default:!1,enum:[{label:s("Start on first visit"),value:!1},{label:s("Start with main application"),value:!0}],"x-hidden":"{{ !admin }}"},cnamePrefix:{title:s("Custom domain prefix"),"x-component":"Input","x-decorator":"FormItem","x-component-props":{addonAfter:`.${window.location.hostname}`},"x-reactions":{dependencies:["cname"],fulfill:{state:{value:'{{($deps[0] && $deps[0].replace(new RegExp("\\."+window.location.hostname+"$"), "")) || ""}}'}}}},cname:{"x-hidden":!0,"x-component":"Input","x-decorator":"FormItem","x-read-pretty":!0,"x-reactions":{dependencies:["cnamePrefix"],fulfill:{state:{value:`{{$deps[0] ? $deps[0] + ".${window.location.hostname}" : null}}`}}}},tmpl:{title:s("Template"),"x-component":"RemoteSelect","x-component-props":{fieldNames:{label:"displayName",value:"name"},service:{resource:"applications",params:{filter:{$or:[{isTemplate:!0},{createdById:"{{ userId }}"}]}}}},"x-decorator":"FormItem","x-disabled":"{{ !createOnly }}"},"options.startEnvs":{type:"string",title:s("Start environment variables"),"x-component":"Input.TextArea","x-decorator":"FormItem","x-hidden":!0},pinned:{"x-component":"CollectionField","x-decorator":"FormItem","x-hidden":"{{ !admin }}"},isTemplate:{"x-component":"CollectionField","x-decorator":"FormItem","x-hidden":"{{ !admin }}"}}},D={properties:{view:{type:"void","x-component":"AppVisitor","x-component-props":{admin:"{{ admin }}"}},update:{type:"void",title:'{{t("Edit")}}',"x-component":"Action.Link",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{t("Edit")}}',properties:{formSchema:T,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{t("Submit")}}',"x-action":"submit","x-component":"Action","x-use-component-props":"useMultiAppUpdateAction","x-component-props":{type:"primary"}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-hidden":"{{ !admin }}","x-use-component-props":"useDestroyActionProps","x-component-props":{confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}},L={type:"void",properties:{applicationsTable:{type:"void","x-decorator":"TableBlockProvider","x-decorator-props":{collection:_,action:"list",params:{pageSize:50,sort:["-createdAt"],appends:[],filter:{createdById:"{{ admin ? undefined : userId }}"}},rowKey:"name"},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{refresh:{type:"void",title:'{{ t("Refresh") }}',"x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-component":"Action","x-decorator":"ACLActionProvider","x-use-component-props":"useBulkDestroyActionProps","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}},"x-hidden":"{{ !admin }}"},startAll:{type:"void",title:'{{ t("Start all") }}',"x-component":"Action","x-use-component-props":"useStartAllAction","x-component-props":{icon:"FastForwardOutlined",danger:!0,confirm:{title:s("Start all"),content:s("Starting all sub-applications may cause lag. The more applications you have, the longer the waiting time")}},"x-hidden":"{{ !admin }}"},stopAll:{type:"void",title:'{{ t("Stop all") }}',"x-component":"Action","x-use-component-props":"useStopAllAction","x-component-props":{icon:"StopOutlined",danger:!0,confirm:{title:s("Stop all"),content:s("All sub-applications have stopped serving, unless you restart them")}},"x-hidden":"{{ !admin }}"},create:{type:"void",title:'{{t("Add new")}}',"x-decorator":t=>v.createElement(o.SchemaComponentOptions,I(C({},t),{scope:{createOnly:!0}})),"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(t){const n=o.useActionContext();return o.useRequest(()=>Promise.resolve({data:{name:`a_${x.uid()}`}}),I(C({},t),{refreshDeps:[n.visible]}))}},title:'{{t("Add new")}}',properties:{formSchema:T,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-use-component-props":"useCreateDatabaseConnectionAction","x-component-props":{type:"primary"}}}}}}}}}},table:{type:"array","x-uid":"input","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"name",rowSelection:{type:"checkbox"}},properties:{displayName:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{displayName:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},name:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},pinned:{type:"void",title:s("Pin to menu"),"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{pinned:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},isTemplate:{type:"void",title:s("Is template"),"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{isTemplate:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},status:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{status:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{actions:C({type:"void","x-component":"Space","x-component-props":{split:"|"}},D)}}}}}}}},K=()=>{const t=o.useCollectionRecordData(),n=o.useApp();return t.cname?`//${t.cname}`:n.getRouteUrl(`/apps/${t.name}/admin/`)},U=()=>{const{t}=S(),n=K(),c=o.useCollectionRecordData(),p=o.useAPIClient(),{data:i,mutate:d,refresh:u}=o.useDataBlockRequest(),h=v.useMemo(()=>p.resource("applications"),[p]),Q=()=>{h.start({filterByTk:c.name}).then(()=>{r.notification.info({key:f,message:e.jsxs("span",{children:[t("Processing..."),"    ",e.jsx(r.Spin,{indicator:e.jsx(A.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0})})},k=()=>{h.stop({filterByTk:c.name}).then(()=>{r.notification.info({key:f,message:e.jsxs("span",{children:[t("Processing..."),"    ",e.jsx(r.Spin,{indicator:e.jsx(A.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0})})};return o.useNoticeSub(z,l=>{const W=r.notification[l.level]||r.notification.info;if(l.message?W({key:f,message:l.message}):l.status!=="commanding"&&r.notification.destroy(f),!(i!=null&&i.data)||l.refresh){u();return}if(!l.app&&!l.status||!i.data.some(w=>w.name===l.app))return;const B=[...i.data];B.find(w=>w.name===l.app).status=l.status,d({data:B})}),e.jsxs(r.Space,{split:e.jsx(r.Divider,{type:"horizontal"}),children:[e.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:t("View",{ns:m})}),e.jsx("a",{onClick:()=>Q(),children:t("Start",{ns:m})}),e.jsx("a",{onClick:()=>k(),children:t("Stop",{ns:m})})]})},P=t=>{var i,d;const{admin:n=!0}=t,c=o.useCurrentUserContext(),p=(d=(i=c==null?void 0:c.data)==null?void 0:i.data)==null?void 0:d.id;return e.jsx(r.Card,{bordered:!1,children:e.jsx(o.SchemaComponent,{schema:L,scope:{admin:n,userId:p,useCreateDatabaseConnectionAction:N,useMultiAppUpdateAction:q,useStartAllAction:E,useStopAllAction:$},components:{AppVisitor:U}})})},F=()=>{const{insert:t}=o.useSchemaInitializer();S();const n=o.useSchemaInitializerItem();return e.jsx(o.SchemaInitializerItem,I(C({},n),{onClick:()=>{t({type:"void","x-decorator-props":{},"x-component":"CardItem","x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:table",properties:{app:{type:"void","x-component":"AppManager","x-component-props":{admin:!1}}}})}}))},j=t=>{const n=o.useApp(),c=t.value&&e.jsx("a",{target:"_blank",href:n.getRouteUrl(`/apps/${t.value}/admin`),rel:"noreferrer",children:t.value});return e.jsxs("div",{style:t.style,children:[t.addonBefore,t.prefix,c,t.suffix,t.addonAfter]})},G=x.connect(r.Input,x.mapReadPretty(j)),Y=o.createStyles(({token:t})=>({button:{color:t.colorTextHeaderMenu+" !important"}})),H=()=>{const{styles:t}=Y(),{data:n,run:c}=o.useRequest({resource:"applications",action:"listPinned"},{manual:!0}),{t:p}=S(),i=o.useApp(),d=[...((n==null?void 0:n.data)||[]).map(u=>{let h=i.getRouteUrl(`/apps/${u.name}/admin/`);return u.cname&&(h=`//${u.cname}`),{key:u.name,label:e.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",children:u.displayName||u.name})}}),{key:".manager",label:e.jsx(y.Link,{to:i.systemSettingsManager.getRoutePath("system-services."+m),children:p("Manage applications")})}];return e.jsx(r.Dropdown,{onOpenChange:u=>{c()},menu:{items:d},children:e.jsx(r.Button,{className:t.button,title:"Apps",icon:e.jsx(o.Icon,{type:"AppstoreOutlined"})})})},J=t=>e.jsx(o.PinnedPluginListProvider,{items:{am:{order:201,component:"MultiAppManager",pin:!0,snippet:"pm.*",belongTo:"pinnedmenu"}},children:e.jsx(o.SchemaComponentOptions,{components:{MultiAppManager:H,AppNameInput:G,MultiAppBlockInitializer:F},children:t.children})});class M extends o.Plugin{load(){return g(this,null,function*(){this.app.addComponents({AppManager:P}),this.app.use(J),this.app.systemSettingsManager.add(`system-services.${m}`,{title:s("Multi-app manager"),icon:"AppstoreOutlined",Component:P,aclSnippet:"pm.multi-app-manager.applications"}),this.app.schemaInitializerManager.get("page:addBlock").add("otherBlocks.multiApp",{name:"multiApp",title:s("Multi-app manager"),icon:e.jsx(A.AppstoreOutlined,{}),Component:F})})}}a.MultiAppManagerPlugin=M,a.default=M,a.formSchema=T,a.tableActionColumnSchema=D,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(i,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("antd"),require("react-router-dom"),require("react-i18next"),require("react"),require("@tachybase/schema"),require("@tachybase/utils/client"),require("@ant-design/icons")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","antd","react-router-dom","react-i18next","react","@tachybase/schema","@tachybase/utils/client","@ant-design/icons"],t):(i=typeof globalThis!="undefined"?globalThis:i||self,t(i["@tachybase/module-multi-app"]={},i["@tachybase/client"],i.jsxRuntime,i.antd,i["react-router-dom"],i["react-i18next"],i.react,i["@tachybase/schema"],i["@tachybase/utils"],i["@ant-design/icons"]))})(this,function(i,t,n,l,w,I,g,x,A,m){"use strict";var ye=Object.defineProperty,fe=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Ae=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var L=(i,t,n)=>t in i?ye(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,v=(i,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&L(i,n,t[n]);if(q)for(var n of q(t))ge.call(t,n)&&L(i,n,t[n]);return i},k=(i,t)=>fe(i,he(t));var h=(i,t,n)=>new Promise((l,w)=>{var I=A=>{try{x(n.next(A))}catch(m){w(m)}},g=A=>{try{x(n.throw(A))}catch(m){w(m)}},x=A=>A.done?l(A.value):Promise.resolve(A.value).then(I,g);x((n=n.apply(i,t)).next())});const b="multi-app",E="subAppsChange",f="subAppsChange",S=()=>{const{t:e}=I.useTranslation([b,"core"]);return{t:e}},c=e=>`{{t("${e}", { ns: ["${b}", "client"] })}}`,_={type:"void","x-component":"CardItem","x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:table",properties:{app:{type:"void","x-component":"AppManager","x-component-props":{admin:!1}}}},F=()=>{const{insert:e}=t.useSchemaInitializer(),o=t.useSchemaInitializerItem(),a=g.useCallback(()=>e(_),[e]);return n.jsx(t.SchemaInitializerItem,k(v({},o),{onClick:a}))},K=e=>{const o=t.useApp(),a=e.value&&n.jsx("a",{target:"_blank",href:o.getRouteUrl(`/apps/${e.value}/admin`),rel:"noreferrer",children:e.value});return n.jsxs("div",{style:e.style,children:[e.addonBefore,e.prefix,a,e.suffix,e.addonAfter]})},U=x.connect(l.Input,x.mapReadPretty(K)),j=t.createStyles(({token:e})=>({button:{color:e.colorTextHeaderMenu+" !important"}})),G=()=>{const{styles:e}=j(),{data:o,run:a}=t.useRequest({resource:"applications",action:"listPinned"},{manual:!0}),{t:s}=S(),r=t.useApp(),d=[...((o==null?void 0:o.data)||[]).map(p=>{let u=r.getRouteUrl(`/apps/${p.name}/admin/`);return p.cname&&(u=`//${p.cname}`),{key:p.name,label:n.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",children:p.displayName||p.name})}}),{key:".manager",label:n.jsx(w.Link,{to:r.systemSettingsManager.getRoutePath("system-services."+b),children:s("Manage applications")})}];return n.jsx(l.Dropdown,{onOpenChange:p=>{a()},menu:{items:d},children:n.jsx(l.Button,{className:e.button,title:"Apps",icon:n.jsx(t.Icon,{type:"AppstoreOutlined"})})})},H=e=>n.jsx(t.PinnedPluginListProvider,{items:{am:{order:201,component:"MultiAppManager",pin:!0,snippet:"pm.*",belongTo:"pinnedmenu"}},children:n.jsx(t.SchemaComponentOptions,{components:{MultiAppManager:G,AppNameInput:U,MultiAppBlockInitializer:F},children:e.children})});class Y extends t.Plugin{load(){return h(this,null,function*(){this.app.use(H)})}}const M={name:"applications",filterTargetKey:"name",targetKey:"name",fields:[{type:"uid",name:"name",primaryKey:!0,prefix:"a",interface:"input",uiSchema:{type:"string",title:c("App ID"),required:!0,"x-component":"Input","x-validator":"uid"}},{type:"string",name:"displayName",interface:"input",uiSchema:{type:"string",title:c("App display name"),required:!0,"x-component":"Input"}},{type:"string",name:"pinned",interface:"checkbox",uiSchema:{type:"boolean","x-content":c("Pin to menu"),"x-component":"Checkbox"}},{type:"string",name:"status",interface:"radioGroup",defaultValue:"pending",uiSchema:{type:"string",title:c("App status"),enum:[{label:c("Initializing"),value:"initializing"},{label:c("Initialized"),value:"initialized"},{label:c("Running"),value:"running"},{label:c("Commanding"),value:"commanding"},{label:c("Stopped"),value:"stopped"},{label:c("Error"),value:"error"},{label:c("Not found"),value:"not_found"}],"x-component":"Radio.Group"}},{type:"string",name:"isTemplate",interface:"checkbox",uiSchema:{type:"boolean","x-content":c("Is template"),"x-component":"Checkbox"}}]},T={type:"void","x-component":"div",properties:{displayName:{"x-component":"CollectionField","x-decorator":"FormItem"},name:{"x-component":"CollectionField","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}","x-hidden":"{{ !admin }}"},"options.autoStart":{title:c("Start mode"),"x-component":"Radio.Group","x-decorator":"FormItem",default:!1,enum:[{label:c("Start on first visit"),value:!1},{label:c("Start with main application"),value:!0}],"x-hidden":"{{ !admin }}"},cnamePrefix:{title:c("Custom domain prefix"),"x-component":"Input","x-decorator":"FormItem","x-validator":`{{(value) => {
2
+ if (!value) {
3
+ return null;
4
+ }
5
+ if (!/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/.test(value)) {
6
+ return t("Custom domain prefix must be 1-63 characters, lowercase letters, numbers, or hyphens (-), and cannot start or end with a hyphen (-)");
7
+ }
8
+ }}}`,"x-component-props":{addonAfter:`.${window.location.hostname}`},"x-reactions":[{dependencies:["cname"],fulfill:{state:{value:'{{ ($deps[0] && $deps[0].replace(new RegExp("\\."+window.location.hostname+"$"), "")) || "" }}'}}}]},cname:{"x-hidden":!0,"x-component":"Input","x-decorator":"FormItem","x-read-pretty":!0,"x-reactions":{dependencies:["cnamePrefix"],fulfill:{state:{value:`{{$deps[0] ? $deps[0] + ".${window.location.hostname}" : null}}`}}}},tmpl:{title:c("Template"),"x-component":"RemoteSelect","x-component-props":{placeholder:c("Can be empty, or selected from the template library or personal applications"),fieldNames:{label:"displayName",value:"name"},service:{resource:"applications",params:{filter:{$or:[{isTemplate:!0},{createdById:"{{ userId }}"}]}}}},"x-decorator":"FormItem","x-disabled":"{{ !createOnly }}"},"options.startEnvs":{type:"string",title:c("Start environment variables"),"x-component":"Input.TextArea","x-decorator":"FormItem","x-hidden":!0},pinned:{"x-component":"CollectionField","x-decorator":"FormItem","x-hidden":"{{ !admin }}"},isTemplate:{"x-component":"CollectionField","x-decorator":"FormItem","x-hidden":"{{ !admin }}"},icon:{type:"string",title:'{{ t("Icon") }}',"x-component":"IconPicker","x-decorator":"FormItem"},color:{type:"string",title:'{{ t("Color") }}',"x-component":"ColorPicker","x-decorator":"FormItem",default:"#e5e5e5"}}},D={properties:{view:{type:"void","x-component":"AppVisitor","x-component-props":{admin:"{{ admin }}"}},update:{type:"void",title:'{{t("Edit")}}',"x-component":"Action.Link",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{t("Edit")}}',properties:{formSchema:T,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{t("Submit")}}',"x-action":"submit","x-component":"Action","x-use-component-props":"useMultiAppUpdateAction","x-component-props":{type:"primary"}}}}}}}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-use-component-props":"useDestroyActionProps","x-component-props":{confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}},W={type:"void",properties:{applicationsTable:{type:"void","x-decorator":"TableBlockProvider","x-decorator-props":{collection:M,action:"list",params:{pageSize:20,sort:["-createdAt"],appends:[],filter:{createdById:"{{ admin ? undefined : userId }}"}},rowKey:"name"},properties:{GlobalNotificationHandler:{type:"void","x-component":"GlobalNotificationHandler"},actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{fuzzySearch:{type:"void","x-component":"FuzzySearchInput","x-align":"left"},refresh:{type:"void",title:'{{ t("Refresh") }}',"x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},delete:{type:"void",title:'{{ t("Delete") }}',"x-action":"destroy","x-component":"Action","x-decorator":"ACLActionProvider","x-use-component-props":"useBulkDestroyActionProps","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}},"x-hidden":"{{ !admin }}"},startAll:{type:"void",title:'{{ t("Start all") }}',"x-component":"Action","x-use-component-props":"useStartAllAction","x-component-props":{icon:"FastForwardOutlined",danger:!0,confirm:{title:c("Start all"),content:c("Starting all sub-applications may cause lag. The more applications you have, the longer the waiting time")}},"x-hidden":"{{ !admin }}"},stopAll:{type:"void",title:'{{ t("Stop all") }}',"x-component":"Action","x-use-component-props":"useStopAllAction","x-component-props":{icon:"StopOutlined",danger:!0,confirm:{title:c("Stop all"),content:c("All sub-applications have stopped serving, unless you restart them")}},"x-hidden":"{{ !admin }}"},create:{type:"void",title:'{{t("Add new")}}',"x-decorator":e=>g.createElement(t.SchemaComponentOptions,k(v({},e),{scope:{createOnly:!0}})),"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues(e){const o=t.useActionContext();return t.useRequest(()=>Promise.resolve({data:{name:`a_${x.uid()}`}}),k(v({},e),{refreshDeps:[o.visible]}))}},title:'{{t("Add new")}}',properties:{formSchema:T,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{ t("Submit") }}',"x-component":"Action","x-use-component-props":"useCreateDatabaseConnectionAction","x-component-props":{type:"primary"}}}}}}}}}},table:{type:"array","x-uid":"input","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"name",rowSelection:{type:"checkbox"}},properties:{displayName:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{displayName:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},name:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},pinned:{type:"void",title:c("Pin to menu"),"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{pinned:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},isTemplate:{type:"void",title:c("Is template"),"x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{isTemplate:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},status:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{status:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{actions:v({type:"void","x-component":"Space","x-component-props":{split:"|"}},D)}}}}}}}},J=()=>{const e=x.useForm(),o=x.useField(),a=t.useActionContext(),s=t.useDataBlockRequest(),r=t.useDataBlockResource();return{onClick(){return h(this,null,function*(){try{yield e.submit(),o.data=o.data||{},o.data.loading=!0,yield r.create({values:e.values}),a.setVisible(!1),yield e.reset(),o.data.loading=!1,s.refresh()}catch(p){o.data&&(o.data.loading=!1)}})}}},z=e=>{const{t:o}=S(),a=t.useAPIClient(),s=g.useMemo(()=>a.resource("applications"),[a]);return{handleStart:()=>h(this,null,function*(){try{l.notification.info({key:f,message:n.jsxs("span",{children:[o("Processing..."),"    ",n.jsx(l.Spin,{indicator:n.jsx(m.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0});const p=yield s.start({filterByTk:e.name});(p==null?void 0:p.status)===205&&l.notification.info({key:f,message:o("App is already running")})}catch(p){l.notification.error({key:f,message:o("Failed to start app")})}}),handleStop:()=>{s.stop({filterByTk:e.name}).then(()=>{l.notification.info({key:f,message:n.jsxs("span",{children:[o("Processing..."),"    ",n.jsx(l.Spin,{indicator:n.jsx(m.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0})})}}},B=e=>{const o=x.useField(),a=x.useForm(),s=t.useActionContext(),r=t.useDataBlockRequest(),d=t.useDataBlockResource(),p=t.useCollectionRecordData(),{record:u}=t.useRecord(),y=(p==null?void 0:p.name)||(u==null?void 0:u.name);return{onClick(){return h(this,null,function*(){var P;yield a.submit(),o.data=o.data||{},o.data.loading=!0;try{const C=yield d.update({filterByTk:y,values:a.values});s.setVisible(!1),yield a.reset(),r.refresh(),e==null||e(y,(P=C==null?void 0:C.data)==null?void 0:P.data)}catch(C){console.error(C)}finally{o.data.loading=!1}})}}};function V({name:e,cname:o}){const a=t.useApp();return o?`//${o}`:a.getRouteUrl(`/apps/${e}/admin/`)}const O=()=>{const e=t.useDataBlockResource(),{t:o}=S();return{onClick(){return h(this,null,function*(){var r,d;const s=yield e.startAll();l.notification.info({key:f,message:n.jsxs("span",{children:[o("Processing..."),"    ",n.jsx(l.Spin,{indicator:n.jsx(m.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0}),((d=(r=s==null?void 0:s.data)==null?void 0:r.data)==null?void 0:d.all)===0&&l.notification.info({key:f,message:`${o("Start count")}: 0/0!`})})}}},N=()=>{const e=t.useDataBlockResource(),{t:o}=S();return{onClick(){return h(this,null,function*(){var r,d;const s=yield e.stopAll();if(((d=(r=s==null?void 0:s.data)==null?void 0:r.data)==null?void 0:d.all)===0){l.notification.info({key:f,message:`${o("Stop count")}: 0/0!`});return}l.notification.info({key:f,message:n.jsxs("span",{children:[o("Processing..."),"    ",n.jsx(l.Spin,{indicator:n.jsx(m.LoadingOutlined,{style:{fontSize:24},spin:!0})})]}),duration:0})})}}},Q=()=>{const e=t.useCollectionRecordData();return V({name:e.name,cname:e.cname})},X=()=>{const{t:e}=S(),o=Q(),a=t.useCollectionRecordData(),{handleStart:s,handleStop:r}=z(a);return n.jsxs(l.Space,{split:n.jsx(l.Divider,{type:"horizontal"}),children:[n.jsx("a",{href:o,target:"_blank",rel:"noreferrer",children:e("View",{ns:b})}),a.status!=="running"&&n.jsx("a",{onClick:()=>s(),children:e("Start",{ns:b})}),a.status==="running"&&n.jsx("a",{onClick:()=>r(),children:e("Stop",{ns:b})})]})},Z=e=>{const{data:o,mutate:a,refresh:s}=t.useDataBlockRequest();return t.useNoticeSub(E,r=>{const d=l.notification[r.level]||l.notification.info;if(r.message?d({key:f,message:r.message}):r.status!=="commanding"&&r.status!=="initializing"&&l.notification.destroy(f),!(o!=null&&o.data)||r.refresh){s();return}if(!r.app&&!r.status||!o.data.some(y=>y.name===r.app))return;const u=[...o.data];u.find(y=>y.name===r.app).status=r.status,a(k(v({},o),{data:u}))}),null},$=e=>{var d,p;const{admin:o=!0}=e,a=t.useCurrentUserContext(),s=(p=(d=a==null?void 0:a.data)==null?void 0:d.data)==null?void 0:p.id,{t:r}=I.useTranslation([b,"core"],{nsMode:"fallback"});return n.jsx(l.Card,{bordered:!1,children:n.jsx(t.SchemaComponent,{schema:W,scope:{admin:o,userId:s,useCreateDatabaseConnectionAction:J,useMultiAppUpdateAction:B,useStartAllAction:O,useStopAllAction:N,t:r,uid:A.uid},components:{AppVisitor:X,GlobalNotificationHandler:Z}})})};class R extends t.Plugin{load(){return h(this,null,function*(){this.app.systemSettingsManager.add(`system-services.${b}`,{title:c("Multi-app manager"),icon:"AppstoreOutlined",Component:$,aclSnippet:"pm.multi-app.applications"})})}}const ee={type:"void","x-component":"CardItem","x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:table",properties:{app:{type:"void","x-component":"ViewMultiAppPane","x-component-props":{admin:!1}}}},te=()=>{const{insert:e}=t.useSchemaInitializer(),o=t.useSchemaInitializerItem(),a=g.useCallback(()=>e(ee),[e]);return n.jsx(t.SchemaInitializerItem,k(v({},o),{onClick:a}))},oe={type:"void",properties:{update:{type:"void","x-component":"Action","x-component-props":{icon:"editoutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:"{{ cm.useValuesFromRecord }}"},title:'{{t("Edit")}}',properties:{formSchema:T,footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-use-component-props":"useCancelActionProps"},submit:{title:'{{t("Submit")}}',"x-action":"submit","x-component":"Action","x-use-component-props":"useMultiAppUpdateAction","x-component-props":{type:"primary"}}}}}}}},delete:{type:"void","x-component":"Action","x-use-component-props":"useDestroyActionProps","x-component-props":{icon:"deleteoutlined",confirm:{title:"{{t('Delete')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}},ne=t.createStyles(({css:e,token:o})=>({appListStyle:e`
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ gap: 16px;
12
+ .media-card {
13
+ position: relative;
14
+ transition: background-color 0.3s ease;
15
+ .media-actions {
16
+ width: 100%;
17
+ display: flex;
18
+ flex-direction: row;
19
+ justify-content: space-evenly;
20
+ position: absolute;
21
+ bottom: 8px;
22
+ height: 22px;
23
+ z-index: 10;
24
+ background-color: #fafafa;
25
+ visibility: hidden;
26
+ .ant-btn {
27
+ border: none;
28
+ box-shadow: none;
29
+ background-color: #fafafa;
30
+ padding: 0;
31
+ height: 20px;
32
+ }
33
+ }
34
+ }
35
+ .media-card:hover {
36
+ background-color: #fafafa;
37
+ transition: background-color 0.3s ease;
38
+ border-radius: ${`${o.borderRadius}px`};
39
+ .media-actions {
40
+ visibility: visible;
41
+ }
42
+ }
43
+ `})),ae=()=>{S();const{styles:e}=ne(),o=t.useTableBlockContext(),a=o==null?void 0:o.service,{data:s,loading:r}=a||{},[d,p]=g.useState(!1);if(r)return n.jsx(l.Spin,{});const{data:u}=s||{};return n.jsx(l.Card,{style:{backgroundColor:"transparent",border:"none",boxShadow:"none"},children:n.jsx("div",{className:e.appListStyle,children:u==null?void 0:u.map(y=>n.jsx(re,k(v({},y),{service:a,appStatus:d,setAppStatus:p}),y.name))})})},re=e=>{const{name:o,cname:a,displayName:s,icon:r,color:d,status:p,service:u,appStatus:y,setAppStatus:le}=e,{t:P}=S(),C=V({name:o,cname:a}),de=g.useCallback(()=>{window&&p==="running"?window.open(C,"_blank"):l.message.warning(P("App is not running"))},[a,p]),{handleStart:ue,handleStop:me}=z(e),xe=()=>{p==="running"?me():ue(),le(!y),u.refresh()};return n.jsx("div",{className:"media-card",children:n.jsxs(t.RecordProvider,{record:e,children:[n.jsxs("div",{className:"media-actions",children:[n.jsx(l.Button,{icon:p==="running"?n.jsx(m.StopOutlined,{}):n.jsx(m.CheckCircleOutlined,{}),onClick:xe}),n.jsx(t.SchemaComponent,{schema:oe,scope:{useMultiAppUpdateAction:B,useStartAllAction:O,useStopAllAction:N}})]}),n.jsx(t.MediaCard,{layout:"vertical",title:s,icon:r,color:p==="running"?d:void 0,needHover:!1,onClick:de})]})})},ie={type:"void",properties:{multiApp:{"x-decorator":"TableBlockProvider","x-decorator-props":{collection:M,action:"list",params:{pageSize:20,sort:["-createdAt"],appends:[],filter:{createdById:"{{ userId }}"}},rowKey:"name"},"x-component":"AppList"}}},se=()=>{var a,s;const e=t.useCurrentUserContext(),o=(s=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:s.id;return n.jsx(t.SchemaComponent,{schema:ie,scope:{userId:o},components:{AppList:ae}})};class pe extends t.Plugin{load(){return h(this,null,function*(){this.app.addComponents({AppManager:$,ViewMultiAppPane:se});const o=this.app.schemaInitializerManager.get("page:addBlock");o.add("otherBlocks.multiApp",{name:"multiApp",title:c("Multi-app manager"),icon:n.jsx(m.AppstoreOutlined,{}),Component:F}),o.add("otherBlocks.showMultiApp",{name:"showMultiApp",title:c("Multi-app display"),icon:n.jsx(m.WindowsOutlined,{}),Component:te})})}}class ce extends t.Plugin{afterAdd(){return h(this,null,function*(){yield this.app.pm.add(Y),yield this.app.pm.add(pe),yield this.app.pm.add(R)})}}i.default=ce,i.formSchema=T,i.tableActionColumnSchema=D,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export default class PluginMultiAppManager extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ }
@@ -1 +1,2 @@
1
+ export declare const GlobalNotificationHandler: (props: any) => any;
1
2
  export declare const AppManager: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ISchema } from '@tachybase/schema';
2
+ export declare const schemaAppManager: ISchema;
@@ -0,0 +1,3 @@
1
+ export declare const useCreateDatabaseConnectionAction: () => {
2
+ onClick(): Promise<void>;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useHandle: (record: any) => {
2
+ handleStart: () => Promise<void>;
3
+ handleStop: () => void;
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useMultiAppUpdateAction: (actionCallback?: (key: string, values: any) => void) => {
2
+ onClick(): Promise<void>;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useRouteUrl({ name, cname }: {
2
+ name: any;
3
+ cname: any;
4
+ }): string;
@@ -0,0 +1,3 @@
1
+ export declare const useStartAllAction: () => {
2
+ onClick(): Promise<void>;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useStopAllAction: () => {
2
+ onClick(): Promise<void>;
3
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ /** 系统配置部分 */
3
+ export declare class KitSystem extends Plugin {
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1 @@
1
+ export declare const AppList: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,114 @@
1
+ export declare const appListSchema: {
2
+ type: string;
3
+ properties: {
4
+ update: {
5
+ type: string;
6
+ 'x-component': string;
7
+ 'x-component-props': {
8
+ icon: string;
9
+ };
10
+ properties: {
11
+ drawer: {
12
+ type: string;
13
+ 'x-component': string;
14
+ 'x-decorator': string;
15
+ 'x-decorator-props': {
16
+ useValues: string;
17
+ };
18
+ title: string;
19
+ properties: {
20
+ formSchema: import("packages/schema/lib").Stringify<{
21
+ [key: symbol]: any;
22
+ [key: `x-${string}`]: any;
23
+ [key: `x-${number}`]: any;
24
+ version?: string;
25
+ name?: import("packages/schema/lib").SchemaKey;
26
+ title?: any;
27
+ description?: any;
28
+ default?: any;
29
+ readOnly?: boolean;
30
+ writeOnly?: boolean;
31
+ type?: import("packages/schema/lib").SchemaTypes;
32
+ enum?: import("packages/schema/lib").SchemaEnum<any>;
33
+ const?: any;
34
+ multipleOf?: number;
35
+ maximum?: number;
36
+ exclusiveMaximum?: number;
37
+ minimum?: number;
38
+ exclusiveMinimum?: number;
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string | RegExp;
42
+ maxItems?: number;
43
+ minItems?: number;
44
+ uniqueItems?: boolean;
45
+ maxProperties?: number;
46
+ minProperties?: number;
47
+ required?: string[] | boolean | string;
48
+ format?: string;
49
+ $ref?: string;
50
+ $namespace?: string;
51
+ definitions?: import("packages/schema/lib").SchemaProperties<any, any, any, any, any, any, any, any>;
52
+ properties?: import("packages/schema/lib").SchemaProperties<any, any, any, any, any, any, any, any>;
53
+ items?: import("packages/schema/lib").SchemaItems<any, any, any, any, any, any, any, any>;
54
+ additionalItems?: import("packages/schema/lib").Stringify</*elided*/ any>;
55
+ patternProperties?: import("packages/schema/lib").SchemaProperties<any, any, any, any, any, any, any, any>;
56
+ additionalProperties?: import("packages/schema/lib").Stringify</*elided*/ any>;
57
+ "x-value"?: any;
58
+ "x-index"?: number;
59
+ "x-pattern"?: any;
60
+ "x-display"?: any;
61
+ "x-validator"?: any;
62
+ "x-decorator"?: any;
63
+ "x-decorator-props"?: any;
64
+ "x-component"?: any;
65
+ "x-component-props"?: any;
66
+ "x-reactions"?: import("packages/schema/lib").SchemaReactions<any>;
67
+ "x-content"?: any;
68
+ "x-data"?: any;
69
+ "x-visible"?: boolean;
70
+ "x-hidden"?: boolean;
71
+ "x-disabled"?: boolean;
72
+ "x-editable"?: boolean;
73
+ "x-read-only"?: boolean;
74
+ "x-read-pretty"?: boolean;
75
+ "x-compile-omitted"?: string[];
76
+ }>;
77
+ footer: {
78
+ type: string;
79
+ 'x-component': string;
80
+ properties: {
81
+ cancel: {
82
+ title: string;
83
+ 'x-component': string;
84
+ 'x-use-component-props': string;
85
+ };
86
+ submit: {
87
+ title: string;
88
+ 'x-action': string;
89
+ 'x-component': string;
90
+ 'x-use-component-props': string;
91
+ 'x-component-props': {
92
+ type: string;
93
+ };
94
+ };
95
+ };
96
+ };
97
+ };
98
+ };
99
+ };
100
+ };
101
+ delete: {
102
+ type: string;
103
+ 'x-component': string;
104
+ 'x-use-component-props': string;
105
+ 'x-component-props': {
106
+ icon: string;
107
+ confirm: {
108
+ title: string;
109
+ content: string;
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ appListStyle: import("antd-style").SerializedStyles;
3
+ }>;
@@ -0,0 +1,15 @@
1
+ export declare const schemaMultiAppBlockInitializer: {
2
+ type: string;
3
+ 'x-component': string;
4
+ 'x-toolbar': string;
5
+ 'x-settings': string;
6
+ properties: {
7
+ app: {
8
+ type: string;
9
+ 'x-component': string;
10
+ 'x-component-props': {
11
+ admin: boolean;
12
+ };
13
+ };
14
+ };
15
+ };
@@ -0,0 +1 @@
1
+ export declare const ShowMultiAppBlockInitializer: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export declare const schemaShowMultiAppBlockInitializer: {
2
+ type: string;
3
+ 'x-component': string;
4
+ 'x-toolbar': string;
5
+ 'x-settings': string;
6
+ properties: {
7
+ app: {
8
+ type: string;
9
+ 'x-component': string;
10
+ 'x-component-props': {
11
+ admin: boolean;
12
+ };
13
+ };
14
+ };
15
+ };
@@ -0,0 +1 @@
1
+ export declare const ViewMultiAppPane: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,94 @@
1
+ export declare const schemaViewMultiAppPane: {
2
+ type: string;
3
+ properties: {
4
+ multiApp: {
5
+ 'x-decorator': string;
6
+ 'x-decorator-props': {
7
+ collection: {
8
+ name: string;
9
+ filterTargetKey: string;
10
+ targetKey: string;
11
+ fields: ({
12
+ type: string;
13
+ name: string;
14
+ primaryKey: boolean;
15
+ prefix: string;
16
+ interface: string;
17
+ uiSchema: {
18
+ type: string;
19
+ title: string;
20
+ required: boolean;
21
+ 'x-component': string;
22
+ 'x-validator': string;
23
+ 'x-content'?: undefined;
24
+ enum?: undefined;
25
+ };
26
+ defaultValue?: undefined;
27
+ } | {
28
+ type: string;
29
+ name: string;
30
+ interface: string;
31
+ uiSchema: {
32
+ type: string;
33
+ title: string;
34
+ required: boolean;
35
+ 'x-component': string;
36
+ 'x-validator'?: undefined;
37
+ 'x-content'?: undefined;
38
+ enum?: undefined;
39
+ };
40
+ primaryKey?: undefined;
41
+ prefix?: undefined;
42
+ defaultValue?: undefined;
43
+ } | {
44
+ type: string;
45
+ name: string;
46
+ interface: string;
47
+ uiSchema: {
48
+ type: string;
49
+ 'x-content': string;
50
+ 'x-component': string;
51
+ title?: undefined;
52
+ required?: undefined;
53
+ 'x-validator'?: undefined;
54
+ enum?: undefined;
55
+ };
56
+ primaryKey?: undefined;
57
+ prefix?: undefined;
58
+ defaultValue?: undefined;
59
+ } | {
60
+ type: string;
61
+ name: string;
62
+ interface: string;
63
+ defaultValue: string;
64
+ uiSchema: {
65
+ type: string;
66
+ title: string;
67
+ enum: {
68
+ label: string;
69
+ value: string;
70
+ }[];
71
+ 'x-component': string;
72
+ required?: undefined;
73
+ 'x-validator'?: undefined;
74
+ 'x-content'?: undefined;
75
+ };
76
+ primaryKey?: undefined;
77
+ prefix?: undefined;
78
+ })[];
79
+ };
80
+ action: string;
81
+ params: {
82
+ pageSize: number;
83
+ sort: string[];
84
+ appends: any[];
85
+ filter: {
86
+ createdById: string;
87
+ };
88
+ };
89
+ rowKey: string;
90
+ };
91
+ 'x-component': string;
92
+ };
93
+ };
94
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ /** 用户界面部分 */
3
+ export declare class KitUsage extends Plugin {
4
+ load(): Promise<void>;
5
+ }
@@ -1,16 +1,16 @@
1
1
  module.exports = {
2
- "react": "18.3.1",
3
- "@tachybase/client": "0.23.58",
4
- "@ant-design/icons": "5.5.2",
5
- "antd": "5.22.5",
6
- "@tachybase/schema": "0.23.58",
7
- "react-router-dom": "6.28.1",
8
2
  "react-i18next": "15.2.0",
9
- "@tachybase/server": "0.23.58",
10
- "@tachybase/database": "0.23.58",
3
+ "@tachybase/client": "1.0.18",
4
+ "@tachybase/server": "1.0.18",
5
+ "@tachybase/database": "1.0.18",
11
6
  "lodash": "4.17.21",
12
7
  "mysql2": "3.11.5",
13
8
  "pg": "8.13.1",
14
- "@tachybase/actions": "0.23.58",
15
- "@tachybase/utils": "0.23.58"
9
+ "react": "18.3.1",
10
+ "@tachybase/schema": "1.0.18",
11
+ "antd": "5.22.5",
12
+ "react-router-dom": "6.28.1",
13
+ "@tachybase/utils": "1.0.18",
14
+ "@ant-design/icons": "5.5.2",
15
+ "@tachybase/actions": "1.0.18"
16
16
  };
@@ -2,17 +2,31 @@
2
2
  "All sub-applications have stopped serving, unless you reopen them": "All sub-applications have stopped serving, unless you reopen them",
3
3
  "App ID": "App ID",
4
4
  "App display name": "App display name",
5
+ "App is already running": "App is already running",
6
+ "App is not running": "App is not running",
5
7
  "App status": "App status",
6
8
  "Applications": "Applications",
7
9
  "Auto start": "Auto start",
10
+ "Can be empty, or selected from the template library or personal applications": "Can be empty, or selected from the template library or personal applications",
11
+ "Commanding": "Commanding",
8
12
  "Custom domain": "Custom domain",
9
13
  "Custom domain prefix": "Custom domain prefix",
14
+ "Custom domain prefix must be 1-63 characters, lowercase letters, numbers, or hyphens (-), and cannot start or end with a hyphen (-)": "Custom domain prefix must be 1-63 characters, lowercase letters, numbers, or hyphens (-), and cannot start or end with a hyphen (-)",
15
+ "Error": "Error",
16
+ "Failed to start app": "Failed to start app",
17
+ "Initialized": "Initialized",
18
+ "Initializing": "Initializing",
10
19
  "Is template": "Is template",
11
20
  "Manage applications": "Manage applications",
21
+ "Multi-app display": "Multi-app display",
12
22
  "Multi-app manager": "Multi-app manager",
23
+ "Not found": "Not found",
13
24
  "Pin to menu": "Pin to menu",
25
+ "Please enter a valid custom domain prefix": "Please enter a valid custom domain prefix",
14
26
  "Preset": "Preset",
27
+ "Processing...": "Processing...",
15
28
  "Refresh": "Refresh",
29
+ "Running": "Running",
16
30
  "Standalone deployment": "Standalone deployment",
17
31
  "Start": "Start",
18
32
  "Start all": "Start all",
@@ -25,9 +39,10 @@
25
39
  "Stop": "Stop",
26
40
  "Stop all": "Stop all",
27
41
  "Stop count": "Stop count",
42
+ "Stopped": "Stopped",
28
43
  "Template": "Template",
29
44
  "Template is in use": "Template is in use",
30
- "Template not exists": "模板不存在",
45
+ "Template not exists": "Template not exists",
31
46
  "This database does not support to create application using template": "This database does not support to create application using template",
32
47
  "View": "View"
33
48
  }
@@ -4,17 +4,31 @@
4
4
  "App already started": "应用已启动",
5
5
  "App already stopped": "应用已关闭",
6
6
  "App display name": "应用名称",
7
+ "App is already running": "应用已启动",
8
+ "App is not running": "应用未启动, 需要先在<系统-多应用管理>里启动应用",
7
9
  "App status": "应用状态",
8
10
  "Applications": "应用",
9
11
  "Auto start": "自动启动",
12
+ "Can be empty, or selected from the template library or personal applications": "可以为空,或从模板库和个人应用中选择",
13
+ "Commanding": "命令中",
10
14
  "Custom domain": "自定义域名",
11
15
  "Custom domain prefix": "自定义域名前缀",
16
+ "Custom domain prefix must be 1-63 characters, lowercase letters, numbers, or hyphens (-), and cannot start or end with a hyphen (-)": "自定义域名前缀必须为1-63位小写字母、数字或短横线(-),且不能以短横线(-)开头或结尾",
17
+ "Error": "错误",
18
+ "Failed to start app": "启动应用失败",
19
+ "Initialized": "初始化完成",
20
+ "Initializing": "初始化",
12
21
  "Is template": "是否模板",
13
22
  "Manage applications": "管理应用",
23
+ "Multi-app display": "多应用展示",
14
24
  "Multi-app manager": "多应用管理",
25
+ "Not found": "未找到",
15
26
  "Pin to menu": "在菜单上显示",
27
+ "Please enter a valid custom domain prefix": "请输入有效的自定义域名前缀",
16
28
  "Preset": "预设",
29
+ "Processing...": "处理中...",
17
30
  "Refresh": "刷新",
31
+ "Running": "运行中",
18
32
  "Standalone deployment": "独立部署",
19
33
  "Start": "启动",
20
34
  "Start all": "启动所有",
@@ -27,9 +41,10 @@
27
41
  "Stop": "停止",
28
42
  "Stop all": "关闭所有",
29
43
  "Stop count": "关闭数量",
44
+ "Stopped": "已停止",
30
45
  "Template": "模板",
31
46
  "Template is in use": "模板正在使用",
32
47
  "Template not exists": "模板不存在",
33
48
  "This database does not support to create application using template": "该数据库不支持使用模板创建应用程序",
34
- "View": "查看"
49
+ "View": "访问"
35
50
  }
@@ -1 +1 @@
1
- {"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-03-06T09:58:29.963Z"}
1
+ {"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-04-18T20:32:57.026Z"}
@@ -1 +1 @@
1
- (function(){var e={262:function(e,t,r){"use strict";var n=r(632);var o=r(24);var a=r(570);var i=r(473);e.exports=i||n.call(a,o)},24:function(e){"use strict";e.exports=Function.prototype.apply},570:function(e){"use strict";e.exports=Function.prototype.call},260:function(e,t,r){"use strict";var n=r(632);var o=r(458);var a=r(570);var i=r(262);e.exports=function callBindBasic(e){if(e.length<1||typeof e[0]!=="function"){throw new o("a function is required")}return i(n,a,e)}},473:function(e){"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply},296:function(e,t,r){"use strict";var n=r(987);var o=r(260);var a=o([n("%String.prototype.indexOf%")]);e.exports=function callBoundIntrinsic(e,t){var r=n(e,!!t);if(typeof r==="function"&&a(e,".prototype.")>-1){return o([r])}return r}},594:function(e,t,r){"use strict";var n=r(260);var o=r(671);var a;try{a=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS"){throw e}}var i=!!a&&o&&o(Object.prototype,"__proto__");var f=Object;var p=f.getPrototypeOf;e.exports=i&&typeof i.get==="function"?n([i.get]):typeof p==="function"?function getDunder(e){return p(e==null?e:f(e))}:false},674:function(e){"use strict";var t=Object.defineProperty||false;if(t){try{t({},"a",{value:1})}catch(e){t=false}}e.exports=t},224:function(e){"use strict";e.exports=EvalError},684:function(e){"use strict";e.exports=Error},433:function(e){"use strict";e.exports=RangeError},409:function(e){"use strict";e.exports=ReferenceError},681:function(e){"use strict";e.exports=SyntaxError},458:function(e){"use strict";e.exports=TypeError},866:function(e){"use strict";e.exports=URIError},241:function(e){"use strict";e.exports=Object},404:function(e){"use strict";var t="Function.prototype.bind called on incompatible ";var r=Object.prototype.toString;var n=Math.max;var o="[object Function]";var a=function concatty(e,t){var r=[];for(var n=0;n<e.length;n+=1){r[n]=e[n]}for(var o=0;o<t.length;o+=1){r[o+e.length]=t[o]}return r};var i=function slicy(e,t){var r=[];for(var n=t||0,o=0;n<e.length;n+=1,o+=1){r[o]=e[n]}return r};var joiny=function(e,t){var r="";for(var n=0;n<e.length;n+=1){r+=e[n];if(n+1<e.length){r+=t}}return r};e.exports=function bind(e){var f=this;if(typeof f!=="function"||r.apply(f)!==o){throw new TypeError(t+f)}var p=i(arguments,1);var l;var binder=function(){if(this instanceof l){var t=f.apply(this,a(p,arguments));if(Object(t)===t){return t}return this}return f.apply(e,a(p,arguments))};var c=n(0,f.length-p.length);var u=[];for(var s=0;s<c;s++){u[s]="$"+s}l=Function("binder","return function ("+joiny(u,",")+"){ return binder.apply(this,arguments); }")(binder);if(f.prototype){var y=function Empty(){};y.prototype=f.prototype;l.prototype=new y;y.prototype=null}return l}},632:function(e,t,r){"use strict";var n=r(404);e.exports=Function.prototype.bind||n},987:function(e,t,r){"use strict";var n;var o=r(241);var a=r(684);var i=r(224);var f=r(433);var p=r(409);var l=r(681);var c=r(458);var u=r(866);var s=r(328);var y=r(422);var d=r(378);var v=r(388);var g=r(526);var m=Function;var getEvalledConstructor=function(e){try{return m('"use strict"; return ('+e+").constructor;")()}catch(e){}};var h=r(671);var b=r(674);var throwTypeError=function(){throw new c};var S=h?function(){try{arguments.callee;return throwTypeError}catch(e){try{return h(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var w=r(718)();var A=r(594);var O=typeof Reflect==="function"&&Reflect.getPrototypeOf||o.getPrototypeOf||A;var j=r(24);var x=r(570);var E={};var P=typeof Uint8Array==="undefined"||!O?n:O(Uint8Array);var _={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&O?O(O([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!w||!O?n:O((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":f,"%ReferenceError%":p,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!w||!O?n:O((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&O?O(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":j,"%Object.defineProperty%":b,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":g};if(O){try{null.error}catch(e){var I=O(O(e));_["%Error.prototype%"]=I}}var R=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&O){t=O(n.prototype)}}_[e]=t;return t};var k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var D=r(632);var F=r(618);var M=D.call(x,Array.prototype.concat);var N=D.call(j,Array.prototype.splice);var B=D.call(x,String.prototype.replace);var T=D.call(x,String.prototype.slice);var C=D.call(x,RegExp.prototype.exec);var U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var W=/\\(\\)?/g;var L=function stringToPath(e){var t=T(e,0,1);var r=T(e,-1);if(t==="%"&&r!=="%"){throw new l("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new l("invalid intrinsic syntax, expected opening `%`")}var n=[];B(e,U,(function(e,t,r,o){n[n.length]=r?B(o,W,"$1"):t||e}));return n};var K=function getBaseIntrinsic(e,t){var r=e;var n;if(F(k,r)){n=k[r];r="%"+n[0]+"%"}if(F(_,r)){var o=_[r];if(o===E){o=R(r)}if(typeof o==="undefined"&&!t){throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new c("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new c('"allowMissing" argument must be a boolean')}if(C(/^%?[^%]*%?$/,e)===null){throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=L(e);var o=r.length>0?r[0]:"";var a=K("%"+o+"%",t);var i=a.name;var f=a.value;var p=false;var u=a.alias;if(u){o=u[0];N(r,M([0,1],u))}for(var s=1,y=true;s<r.length;s+=1){var d=r[s];var v=T(d,0,1);var g=T(d,-1);if((v==='"'||v==="'"||v==="`"||(g==='"'||g==="'"||g==="`"))&&v!==g){throw new l("property names with quotes must have matching quotes")}if(d==="constructor"||!y){p=true}o+="."+d;i="%"+o+"%";if(F(_,i)){f=_[i]}else if(f!=null){if(!(d in f)){if(!t){throw new c("base intrinsic for "+e+" exists, but the property is not available.")}return void n}if(h&&s+1>=r.length){var m=h(f,d);y=!!m;if(y&&"get"in m&&!("originalValue"in m.get)){f=m.get}else{f=f[d]}}else{y=F(f,d);f=f[d]}if(y&&!p){_[i]=f}}}return f}},401:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},671:function(e,t,r){"use strict";var n=r(401);if(n){try{n([],"length")}catch(e){n=null}}e.exports=n},718:function(e,t,r){"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var o=r(44);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return o()}},44:function(e){"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(var o in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==n||i.enumerable!==true){return false}}return true}},618:function(e,t,r){"use strict";var n=Function.prototype.call;var o=Object.prototype.hasOwnProperty;var a=r(632);e.exports=a.call(n,o)},328:function(e){"use strict";e.exports=Math.abs},422:function(e){"use strict";e.exports=Math.floor},378:function(e){"use strict";e.exports=Math.max},388:function(e){"use strict";e.exports=Math.min},526:function(e){"use strict";e.exports=Math.pow},162:function(e,t,r){var n=typeof Map==="function"&&Map.prototype;var o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var a=n&&o&&typeof o.get==="function"?o.get:null;var i=n&&Map.prototype.forEach;var f=typeof Set==="function"&&Set.prototype;var p=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var l=f&&p&&typeof p.get==="function"?p.get:null;var c=f&&Set.prototype.forEach;var u=typeof WeakMap==="function"&&WeakMap.prototype;var s=u?WeakMap.prototype.has:null;var y=typeof WeakSet==="function"&&WeakSet.prototype;var d=y?WeakSet.prototype.has:null;var v=typeof WeakRef==="function"&&WeakRef.prototype;var g=v?WeakRef.prototype.deref:null;var m=Boolean.prototype.valueOf;var h=Object.prototype.toString;var b=Function.prototype.toString;var S=String.prototype.match;var w=String.prototype.slice;var A=String.prototype.replace;var O=String.prototype.toUpperCase;var j=String.prototype.toLowerCase;var x=RegExp.prototype.test;var E=Array.prototype.concat;var P=Array.prototype.join;var _=Array.prototype.slice;var I=Math.floor;var R=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var k=Object.getOwnPropertySymbols;var D=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var F=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var M=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F?"object":"symbol")?Symbol.toStringTag:null;var N=Object.prototype.propertyIsEnumerable;var B=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var n=e<0?-I(-e):I(e);if(n!==e){var o=String(n);var a=w.call(t,o.length+1);return A.call(o,r,"$&_")+"."+A.call(A.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(t,r,"$&_")}var T=r(62);var C=T.custom;var U=isSymbol(C)?C:null;var W={__proto__:null,double:'"',single:"'"};var L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};e.exports=function inspect_(e,t,r,n){var o=t||{};if(has(o,"quoteStyle")&&!has(W,o.quoteStyle)){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var f=has(o,"customInspect")?o.customInspect:true;if(typeof f!=="boolean"&&f!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var p=o.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,o)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var u=String(e);return p?addNumericSeparator(e,u):u}if(typeof e==="bigint"){var s=String(e)+"n";return p?addNumericSeparator(e,s):s}var y=typeof o.depth==="undefined"?5:o.depth;if(typeof r==="undefined"){r=0}if(r>=y&&y>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var d=getIndent(o,r);if(typeof n==="undefined"){n=[]}else if(indexOf(n,e)>=0){return"[Circular]"}function inspect(e,t,a){if(t){n=_.call(n);n.push(t)}if(a){var i={depth:o.depth};if(has(o,"quoteStyle")){i.quoteStyle=o.quoteStyle}return inspect_(e,i,r+1,n)}return inspect_(e,o,r+1,n)}if(typeof e==="function"&&!isRegExp(e)){var v=nameOf(e);var g=arrObjKeys(e,inspect);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+P.call(g,", ")+" }":"")}if(isSymbol(e)){var h=F?A.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(e);return typeof e==="object"&&!F?markBoxed(h):h}if(isElement(e)){var b="<"+j.call(String(e.nodeName));var S=e.attributes||[];for(var O=0;O<S.length;O++){b+=" "+S[O].name+"="+wrapQuotes(quote(S[O].value),"double",o)}b+=">";if(e.childNodes&&e.childNodes.length){b+="..."}b+="</"+j.call(String(e.nodeName))+">";return b}if(isArray(e)){if(e.length===0){return"[]"}var x=arrObjKeys(e,inspect);if(d&&!singleLineValues(x)){return"["+indentedJoin(x,d)+"]"}return"[ "+P.call(x,", ")+" ]"}if(isError(e)){var I=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!N.call(e,"cause")){return"{ ["+String(e)+"] "+P.call(E.call("[cause]: "+inspect(e.cause),I),", ")+" }"}if(I.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+P.call(I,", ")+" }"}if(typeof e==="object"&&f){if(U&&typeof e[U]==="function"&&T){return T(e,{depth:y-r})}else if(f!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var k=[];if(i){i.call(e,(function(t,r){k.push(inspect(r,e,true)+" => "+inspect(t,e))}))}return collectionOf("Map",a.call(e),k,d)}if(isSet(e)){var C=[];if(c){c.call(e,(function(t){C.push(inspect(t,e))}))}return collectionOf("Set",l.call(e),C,d)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(R.call(e)))}if(isBoolean(e)){return markBoxed(m.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(typeof window!=="undefined"&&e===window){return"{ [object Window] }"}if(typeof globalThis!=="undefined"&&e===globalThis||typeof global!=="undefined"&&e===global){return"{ [object globalThis] }"}if(!isDate(e)&&!isRegExp(e)){var L=arrObjKeys(e,inspect);var K=B?B(e)===Object.prototype:e instanceof Object||e.constructor===Object;var q=e instanceof Object?"":"null prototype";var G=!K&&M&&Object(e)===e&&M in e?w.call(toStr(e),8,-1):q?"Object":"";var Q=K||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var $=Q+(G||q?"["+P.call(E.call([],G||[],q||[]),": ")+"] ":"");if(L.length===0){return $+"{}"}if(d){return $+"{"+indentedJoin(L,d)+"}"}return $+"{ "+P.call(L,", ")+" }"}return String(e)};function wrapQuotes(e,t,r){var n=r.quoteStyle||t;var o=W[n];return o+e+o}function quote(e){return A.call(String(e),/"/g,"&quot;")}function isArray(e){return toStr(e)==="[object Array]"&&(!M||!(typeof e==="object"&&M in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!M||!(typeof e==="object"&&M in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!M||!(typeof e==="object"&&M in e))}function isError(e){return toStr(e)==="[object Error]"&&(!M||!(typeof e==="object"&&M in e))}function isString(e){return toStr(e)==="[object String]"&&(!M||!(typeof e==="object"&&M in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!M||!(typeof e==="object"&&M in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!M||!(typeof e==="object"&&M in e))}function isSymbol(e){if(F){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!D){return false}try{D.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!R){return false}try{R.call(e);return true}catch(e){}return false}var K=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return K.call(e,t)}function toStr(e){return h.call(e)}function nameOf(e){if(e.name){return e.name}var t=S.call(b.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,n=e.length;r<n;r++){if(e[r]===t){return r}}return-1}function isMap(e){if(!a||!e||typeof e!=="object"){return false}try{a.call(e);try{l.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!s||!e||typeof e!=="object"){return false}try{s.call(e,s);try{d.call(e,d)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!g||!e||typeof e!=="object"){return false}try{g.call(e);return true}catch(e){}return false}function isSet(e){if(!l||!e||typeof e!=="object"){return false}try{l.call(e);try{a.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!d||!e||typeof e!=="object"){return false}try{d.call(e,d);try{s.call(e,s)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var n="... "+r+" more character"+(r>1?"s":"");return inspectString(w.call(e,0,t.maxStringLength),t)+n}var o=L[t.quoteStyle||"single"];o.lastIndex=0;var a=A.call(A.call(e,o,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(a,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,n){var o=n?indentedJoin(r,n):P.call(r,", ");return e+" ("+t+") {"+o+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=P.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:P.call(Array(t+1),r)}}function indentedJoin(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r=isArray(e);var n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++){n[o]=has(e,o)?t(e[o],e):""}}var a=typeof k==="function"?k(e):[];var i;if(F){i={};for(var f=0;f<a.length;f++){i["$"+a[f]]=a[f]}}for(var p in e){if(!has(e,p)){continue}if(r&&String(Number(p))===p&&p<e.length){continue}if(F&&i["$"+p]instanceof Symbol){continue}else if(x.call(/[^\w$]/,p)){n.push(t(p,e)+": "+t(e[p],e))}else{n.push(p+": "+t(e[p],e))}}if(typeof k==="function"){for(var l=0;l<a.length;l++){if(N.call(e,a[l])){n.push("["+t(a[l])+"]: "+t(e[a[l]],e))}}}return n}},62:function(e,t,r){e.exports=r(23).inspect},307:function(e){"use strict";var t=String.prototype.replace;var r=/%20/g;var n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},943:function(e,t,r){"use strict";var n=r(198);var o=r(904);var a=r(307);e.exports={formats:a,parse:o,stringify:n}},904:function(e,t,r){"use strict";var n=r(610);var o=Object.prototype.hasOwnProperty;var a=Array.isArray;var i={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var f="utf8=%26%2310003%3B";var p="utf8=%E2%9C%93";var l=function parseQueryStringValues(e,t){var r={__proto__:null};var l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===Infinity?undefined:t.parameterLimit;var u=l.split(t.delimiter,c);var s=-1;var y;var d=t.charset;if(t.charsetSentinel){for(y=0;y<u.length;++y){if(u[y].indexOf("utf8=")===0){if(u[y]===p){d="utf-8"}else if(u[y]===f){d="iso-8859-1"}s=y;y=u.length}}}for(y=0;y<u.length;++y){if(y===s){continue}var v=u[y];var g=v.indexOf("]=");var m=g===-1?v.indexOf("="):g+1;var h;var b;if(m===-1){h=t.decoder(v,i.decoder,d,"key");b=t.strictNullHandling?null:""}else{h=t.decoder(v.slice(0,m),i.decoder,d,"key");b=n.maybeMap(parseArrayValue(v.slice(m+1),t),(function(e){return t.decoder(e,i.decoder,d,"value")}))}if(b&&t.interpretNumericEntities&&d==="iso-8859-1"){b=interpretNumericEntities(String(b))}if(v.indexOf("[]=")>-1){b=a(b)?[b]:b}var S=o.call(r,h);if(S&&t.duplicates==="combine"){r[h]=n.combine(r[h],b)}else if(!S||t.duplicates==="last"){r[h]=b}}return r};var parseObject=function(e,t,r,n){var o=n?t:parseArrayValue(t,r);for(var a=e.length-1;a>=0;--a){var i;var f=e[a];if(f==="[]"&&r.parseArrays){i=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o)}else{i=r.plainObjects?{__proto__:null}:{};var p=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f;var l=r.decodeDotInKeys?p.replace(/%2E/g,"."):p;var c=parseInt(l,10);if(!r.parseArrays&&l===""){i={0:o}}else if(!isNaN(c)&&f!==l&&String(c)===l&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){i=[];i[c]=o}else if(l!=="__proto__"){i[l]=o}}o=i}return o};var c=function parseQueryStringKeys(e,t,r,n){if(!e){return}var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var f=/(\[[^[\]]*])/g;var p=r.depth>0&&i.exec(a);var l=p?a.slice(0,p.index):a;var c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)){if(!r.allowPrototypes){return}}c.push(l)}var u=0;while(r.depth>0&&(p=f.exec(a))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&o.call(Object.prototype,p[1].slice(1,-1))){if(!r.allowPrototypes){return}}c.push(p[1])}if(p){if(r.strictDepth===true){throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true")}c.push("["+a.slice(p.index)+"]")}return parseObject(c,t,r,n)};var u=function normalizeParseOptions(e){if(!e){return i}if(typeof e.allowEmptyArrays!=="undefined"&&typeof e.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof e.decodeDotInKeys!=="undefined"&&typeof e.decodeDotInKeys!=="boolean"){throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided")}if(e.decoder!==null&&typeof e.decoder!=="undefined"&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=typeof e.charset==="undefined"?i.charset:e.charset;var r=typeof e.duplicates==="undefined"?i.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last"){throw new TypeError("The duplicates option must be either combine, first, or last")}var o=typeof e.allowDots==="undefined"?e.decodeDotInKeys===true?true:i.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays==="boolean"?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decodeDotInKeys:typeof e.decodeDotInKeys==="boolean"?e.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictDepth:typeof e.strictDepth==="boolean"?!!e.strictDepth:i.strictDepth,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=u(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?{__proto__:null}:{}}var o=typeof e==="string"?l(e,r):e;var a=r.plainObjects?{__proto__:null}:{};var i=Object.keys(o);for(var f=0;f<i.length;++f){var p=i[f];var s=c(p,o[p],r,typeof e==="string");a=n.merge(a,s,r)}if(r.allowSparse===true){return a}return n.compact(a)}},198:function(e,t,r){"use strict";var n=r(706);var o=r(610);var a=r(307);var i=Object.prototype.hasOwnProperty;var f={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var p=Array.isArray;var l=Array.prototype.push;var pushToArray=function(e,t){l.apply(e,p(t)?t:[t])};var c=Date.prototype.toISOString;var u=a["default"];var s={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:o.encode,encodeValuesOnly:false,filter:void undefined,format:u,formatter:a.formatters[u],indices:false,serializeDate:function serializeDate(e){return c.call(e)},skipNulls:false,strictNullHandling:false};var y=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var d={};var v=function stringify(e,t,r,a,i,f,l,c,u,v,g,m,h,b,S,w,A,O){var j=e;var x=O;var E=0;var P=false;while((x=x.get(d))!==void undefined&&!P){var _=x.get(e);E+=1;if(typeof _!=="undefined"){if(_===E){throw new RangeError("Cyclic object value")}else{P=true}}if(typeof x.get(d)==="undefined"){E=0}}if(typeof v==="function"){j=v(t,j)}else if(j instanceof Date){j=h(j)}else if(r==="comma"&&p(j)){j=o.maybeMap(j,(function(e){if(e instanceof Date){return h(e)}return e}))}if(j===null){if(f){return u&&!w?u(t,s.encoder,A,"key",b):t}j=""}if(y(j)||o.isBuffer(j)){if(u){var I=w?t:u(t,s.encoder,A,"key",b);return[S(I)+"="+S(u(j,s.encoder,A,"value",b))]}return[S(t)+"="+S(String(j))]}var R=[];if(typeof j==="undefined"){return R}var k;if(r==="comma"&&p(j)){if(w&&u){j=o.maybeMap(j,u)}k=[{value:j.length>0?j.join(",")||null:void undefined}]}else if(p(v)){k=v}else{var D=Object.keys(j);k=g?D.sort(g):D}var F=c?String(t).replace(/\./g,"%2E"):String(t);var M=a&&p(j)&&j.length===1?F+"[]":F;if(i&&p(j)&&j.length===0){return M+"[]"}for(var N=0;N<k.length;++N){var B=k[N];var T=typeof B==="object"&&B&&typeof B.value!=="undefined"?B.value:j[B];if(l&&T===null){continue}var C=m&&c?String(B).replace(/\./g,"%2E"):String(B);var U=p(j)?typeof r==="function"?r(M,C):M:M+(m?"."+C:"["+C+"]");O.set(e,E);var W=n();W.set(d,O);pushToArray(R,stringify(T,U,r,a,i,f,l,c,r==="comma"&&w&&p(j)?null:u,v,g,m,h,b,S,w,A,W))}return R};var g=function normalizeStringifyOptions(e){if(!e){return s}if(typeof e.allowEmptyArrays!=="undefined"&&typeof e.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof e.encodeDotInKeys!=="undefined"&&typeof e.encodeDotInKeys!=="boolean"){throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided")}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||s.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=a["default"];if(typeof e.format!=="undefined"){if(!i.call(a.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var n=a.formatters[r];var o=s.filter;if(typeof e.filter==="function"||p(e.filter)){o=e.filter}var l;if(e.arrayFormat in f){l=e.arrayFormat}else if("indices"in e){l=e.indices?"indices":"repeat"}else{l=s.arrayFormat}if("commaRoundTrip"in e&&typeof e.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=typeof e.allowDots==="undefined"?e.encodeDotInKeys===true?true:s.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:s.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof e.allowEmptyArrays==="boolean"?!!e.allowEmptyArrays:s.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:s.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter==="undefined"?s.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:s.encode,encodeDotInKeys:typeof e.encodeDotInKeys==="boolean"?e.encodeDotInKeys:s.encodeDotInKeys,encoder:typeof e.encoder==="function"?e.encoder:s.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:s.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:s.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:s.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var r=e;var o=g(t);var a;var i;if(typeof o.filter==="function"){i=o.filter;r=i("",r)}else if(p(o.filter)){i=o.filter;a=i}var l=[];if(typeof r!=="object"||r===null){return""}var c=f[o.arrayFormat];var u=c==="comma"&&o.commaRoundTrip;if(!a){a=Object.keys(r)}if(o.sort){a.sort(o.sort)}var s=n();for(var y=0;y<a.length;++y){var d=a[y];var m=r[d];if(o.skipNulls&&m===null){continue}pushToArray(l,v(m,d,c,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,s))}var h=l.join(o.delimiter);var b=o.addQueryPrefix===true?"?":"";if(o.charsetSentinel){if(o.charset==="iso-8859-1"){b+="utf8=%26%2310003%3B&"}else{b+="utf8=%E2%9C%93&"}}return h.length>0?b+h:""}},610:function(e,t,r){"use strict";var n=r(307);var o=Object.prototype.hasOwnProperty;var a=Array.isArray;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var f=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(a(r)){var n=[];for(var o=0;o<r.length;++o){if(typeof r[o]!=="undefined"){n.push(r[o])}}t.obj[t.prop]=n}}};var p=function arrayToObject(e,t){var r=t&&t.plainObjects?{__proto__:null}:{};for(var n=0;n<e.length;++n){if(typeof e[n]!=="undefined"){r[n]=e[n]}}return r};var l=function merge(e,t,r){if(!t){return e}if(typeof t!=="object"&&typeof t!=="function"){if(a(e)){e.push(t)}else if(e&&typeof e==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,t)){e[t]=true}}else{return[e,t]}return e}if(!e||typeof e!=="object"){return[e].concat(t)}var n=e;if(a(e)&&!a(t)){n=p(e,r)}if(a(e)&&a(t)){t.forEach((function(t,n){if(o.call(e,n)){var a=e[n];if(a&&typeof a==="object"&&t&&typeof t==="object"){e[n]=merge(a,t,r)}else{e.push(t)}}else{e[n]=t}}));return e}return Object.keys(t).reduce((function(e,n){var a=t[n];if(o.call(e,n)){e[n]=merge(e[n],a,r)}else{e[n]=a}return e}),n)};var c=function assignSingleSource(e,t){return Object.keys(t).reduce((function(e,r){e[r]=t[r];return e}),e)};var decode=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1"){return n.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(n)}catch(e){return n}};var u=1024;var s=function encode(e,t,r,o,a){if(e.length===0){return e}var f=e;if(typeof e==="symbol"){f=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){f=String(e)}if(r==="iso-8859-1"){return escape(f).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var p="";for(var l=0;l<f.length;l+=u){var c=f.length>=u?f.slice(l,l+u):f;var s=[];for(var y=0;y<c.length;++y){var d=c.charCodeAt(y);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===n.RFC1738&&(d===40||d===41)){s[s.length]=c.charAt(y);continue}if(d<128){s[s.length]=i[d];continue}if(d<2048){s[s.length]=i[192|d>>6]+i[128|d&63];continue}if(d<55296||d>=57344){s[s.length]=i[224|d>>12]+i[128|d>>6&63]+i[128|d&63];continue}y+=1;d=65536+((d&1023)<<10|c.charCodeAt(y)&1023);s[s.length]=i[240|d>>18]+i[128|d>>12&63]+i[128|d>>6&63]+i[128|d&63]}p+=s.join("")}return p};var y=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var n=0;n<t.length;++n){var o=t[n];var a=o.obj[o.prop];var i=Object.keys(a);for(var p=0;p<i.length;++p){var l=i[p];var c=a[l];if(typeof c==="object"&&c!==null&&r.indexOf(c)===-1){t.push({obj:a,prop:l});r.push(c)}}}f(t);return e};var d=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var v=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var g=function combine(e,t){return[].concat(e,t)};var m=function maybeMap(e,t){if(a(e)){var r=[];for(var n=0;n<e.length;n+=1){r.push(t(e[n]))}return r}return t(e)};e.exports={arrayToObject:p,assign:c,combine:g,compact:y,decode:decode,encode:s,isBuffer:v,isRegExp:d,maybeMap:m,merge:l}},223:function(e,t,r){"use strict";var n=r(162);var o=r(458);var listGetNode=function(e,t,r){var n=e;var o;for(;(o=n.next)!=null;n=o){if(o.key===t){n.next=o.next;if(!r){o.next=e.next;e.next=o}return o}}};var listGet=function(e,t){if(!e){return void undefined}var r=listGetNode(e,t);return r&&r.value};var listSet=function(e,t,r){var n=listGetNode(e,t);if(n){n.value=r}else{e.next={key:t,next:e.next,value:r}}};var listHas=function(e,t){if(!e){return false}return!!listGetNode(e,t)};var listDelete=function(e,t){if(e){return listGetNode(e,t,true)}};e.exports=function getSideChannelList(){var e;var t={assert:function(e){if(!t.has(e)){throw new o("Side channel does not contain "+n(e))}},delete:function(t){var r=e&&e.next;var n=listDelete(e,t);if(n&&r&&r===n){e=void undefined}return!!n},get:function(t){return listGet(e,t)},has:function(t){return listHas(e,t)},set:function(t,r){if(!e){e={next:void undefined}}listSet(e,t,r)}};return t}},138:function(e,t,r){"use strict";var n=r(987);var o=r(296);var a=r(162);var i=r(458);var f=n("%Map%",true);var p=o("Map.prototype.get",true);var l=o("Map.prototype.set",true);var c=o("Map.prototype.has",true);var u=o("Map.prototype.delete",true);var s=o("Map.prototype.size",true);e.exports=!!f&&function getSideChannelMap(){var e;var t={assert:function(e){if(!t.has(e)){throw new i("Side channel does not contain "+a(e))}},delete:function(t){if(e){var r=u(e,t);if(s(e)===0){e=void undefined}return r}return false},get:function(t){if(e){return p(e,t)}},has:function(t){if(e){return c(e,t)}return false},set:function(t,r){if(!e){e=new f}l(e,t,r)}};return t}},431:function(e,t,r){"use strict";var n=r(987);var o=r(296);var a=r(162);var i=r(138);var f=r(458);var p=n("%WeakMap%",true);var l=o("WeakMap.prototype.get",true);var c=o("WeakMap.prototype.set",true);var u=o("WeakMap.prototype.has",true);var s=o("WeakMap.prototype.delete",true);e.exports=p?function getSideChannelWeakMap(){var e;var t;var r={assert:function(e){if(!r.has(e)){throw new f("Side channel does not contain "+a(e))}},delete:function(r){if(p&&r&&(typeof r==="object"||typeof r==="function")){if(e){return s(e,r)}}else if(i){if(t){return t["delete"](r)}}return false},get:function(r){if(p&&r&&(typeof r==="object"||typeof r==="function")){if(e){return l(e,r)}}return t&&t.get(r)},has:function(r){if(p&&r&&(typeof r==="object"||typeof r==="function")){if(e){return u(e,r)}}return!!t&&t.has(r)},set:function(r,n){if(p&&r&&(typeof r==="object"||typeof r==="function")){if(!e){e=new p}c(e,r,n)}else if(i){if(!t){t=i()}t.set(r,n)}}};return r}:i},706:function(e,t,r){"use strict";var n=r(458);var o=r(162);var a=r(223);var i=r(138);var f=r(431);var p=f||i||a;e.exports=function getSideChannel(){var e;var t={assert:function(e){if(!t.has(e)){throw new n("Side channel does not contain "+o(e))}},delete:function(t){return!!e&&e["delete"](t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){if(!e){e=p()}e.set(t,r)}};return t}},23:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var a=true;try{e[r](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(943);module.exports=r})();
1
+ (function(){var e={429:function(e,t,r){"use strict";var o=r(632);var n=r(831);var a=r(715);var i=r(348);e.exports=i||o.call(a,n)},831:function(e){"use strict";e.exports=Function.prototype.apply},715:function(e){"use strict";e.exports=Function.prototype.call},63:function(e,t,r){"use strict";var o=r(632);var n=r(458);var a=r(715);var i=r(429);e.exports=function callBindBasic(e){if(e.length<1||typeof e[0]!=="function"){throw new n("a function is required")}return i(o,a,e)}},348:function(e){"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply},296:function(e,t,r){"use strict";var o=r(402);var n=r(63);var a=n([o("%String.prototype.indexOf%")]);e.exports=function callBoundIntrinsic(e,t){var r=o(e,!!t);if(typeof r==="function"&&a(e,".prototype.")>-1){return n([r])}return r}},594:function(e,t,r){"use strict";var o=r(63);var n=r(671);var a;try{a=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS"){throw e}}var i=!!a&&n&&n(Object.prototype,"__proto__");var p=Object;var f=p.getPrototypeOf;e.exports=i&&typeof i.get==="function"?o([i.get]):typeof f==="function"?function getDunder(e){return f(e==null?e:p(e))}:false},674:function(e){"use strict";var t=Object.defineProperty||false;if(t){try{t({},"a",{value:1})}catch(e){t=false}}e.exports=t},224:function(e){"use strict";e.exports=EvalError},684:function(e){"use strict";e.exports=Error},433:function(e){"use strict";e.exports=RangeError},409:function(e){"use strict";e.exports=ReferenceError},681:function(e){"use strict";e.exports=SyntaxError},458:function(e){"use strict";e.exports=TypeError},866:function(e){"use strict";e.exports=URIError},485:function(e){"use strict";e.exports=Object},404:function(e){"use strict";var t="Function.prototype.bind called on incompatible ";var r=Object.prototype.toString;var o=Math.max;var n="[object Function]";var a=function concatty(e,t){var r=[];for(var o=0;o<e.length;o+=1){r[o]=e[o]}for(var n=0;n<t.length;n+=1){r[n+e.length]=t[n]}return r};var i=function slicy(e,t){var r=[];for(var o=t||0,n=0;o<e.length;o+=1,n+=1){r[n]=e[o]}return r};var joiny=function(e,t){var r="";for(var o=0;o<e.length;o+=1){r+=e[o];if(o+1<e.length){r+=t}}return r};e.exports=function bind(e){var p=this;if(typeof p!=="function"||r.apply(p)!==n){throw new TypeError(t+p)}var f=i(arguments,1);var c;var binder=function(){if(this instanceof c){var t=p.apply(this,a(f,arguments));if(Object(t)===t){return t}return this}return p.apply(e,a(f,arguments))};var l=o(0,p.length-f.length);var y=[];for(var u=0;u<l;u++){y[u]="$"+u}c=Function("binder","return function ("+joiny(y,",")+"){ return binder.apply(this,arguments); }")(binder);if(p.prototype){var s=function Empty(){};s.prototype=p.prototype;c.prototype=new s;s.prototype=null}return c}},632:function(e,t,r){"use strict";var o=r(404);e.exports=Function.prototype.bind||o},987:function(e,t,r){"use strict";var o;var n=r(485);var a=r(684);var i=r(224);var p=r(433);var f=r(409);var c=r(681);var l=r(458);var y=r(866);var u=r(328);var s=r(422);var d=r(378);var v=r(388);var g=r(526);var m=Function;var getEvalledConstructor=function(e){try{return m('"use strict"; return ('+e+").constructor;")()}catch(e){}};var h=r(671);var b=r(674);var throwTypeError=function(){throw new l};var A=h?function(){try{arguments.callee;return throwTypeError}catch(e){try{return h(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var S=r(718)();var w=r(594);var P=typeof Reflect==="function"&&Reflect.getPrototypeOf||n.getPrototypeOf||w;var O=r(831);var x=r(715);var E={};var j=typeof Uint8Array==="undefined"||!P?o:P(Uint8Array);var I={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?o:ArrayBuffer,"%ArrayIteratorPrototype%":S&&P?P([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics==="undefined"?o:Atomics,"%BigInt%":typeof BigInt==="undefined"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array==="undefined"?o:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?o:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array==="undefined"?o:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?o:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&P?P(P([][Symbol.iterator]())):o,"%JSON%":typeof JSON==="object"?JSON:o,"%Map%":typeof Map==="undefined"?o:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!S||!P?o:P((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?o:Promise,"%Proxy%":typeof Proxy==="undefined"?o:Proxy,"%RangeError%":p,"%ReferenceError%":f,"%Reflect%":typeof Reflect==="undefined"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?o:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!S||!P?o:P((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&P?P(""[Symbol.iterator]()):o,"%Symbol%":S?Symbol:o,"%SyntaxError%":c,"%ThrowTypeError%":A,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array==="undefined"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?o:Uint32Array,"%URIError%":y,"%WeakMap%":typeof WeakMap==="undefined"?o:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?o:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?o:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":O,"%Object.defineProperty%":b,"%Math.abs%":u,"%Math.floor%":s,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":g};if(P){try{null.error}catch(e){var _=P(P(e));I["%Error.prototype%"]=_}}var R=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var o=doEval("%AsyncGenerator%");if(o&&P){t=P(o.prototype)}}I[e]=t;return t};var F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var k=r(632);var M=r(618);var D=k.call(x,Array.prototype.concat);var N=k.call(O,Array.prototype.splice);var U=k.call(x,String.prototype.replace);var B=k.call(x,String.prototype.slice);var T=k.call(x,RegExp.prototype.exec);var C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var W=/\\(\\)?/g;var G=function stringToPath(e){var t=B(e,0,1);var r=B(e,-1);if(t==="%"&&r!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var o=[];U(e,C,(function(e,t,r,n){o[o.length]=r?U(n,W,"$1"):t||e}));return o};var L=function getBaseIntrinsic(e,t){var r=e;var o;if(M(F,r)){o=F[r];r="%"+o[0]+"%"}if(M(I,r)){var n=I[r];if(n===E){n=R(r)}if(typeof n==="undefined"&&!t){throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:o,name:r,value:n}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new l("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new l('"allowMissing" argument must be a boolean')}if(T(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=G(e);var n=r.length>0?r[0]:"";var a=L("%"+n+"%",t);var i=a.name;var p=a.value;var f=false;var y=a.alias;if(y){n=y[0];N(r,D([0,1],y))}for(var u=1,s=true;u<r.length;u+=1){var d=r[u];var v=B(d,0,1);var g=B(d,-1);if((v==='"'||v==="'"||v==="`"||(g==='"'||g==="'"||g==="`"))&&v!==g){throw new c("property names with quotes must have matching quotes")}if(d==="constructor"||!s){f=true}n+="."+d;i="%"+n+"%";if(M(I,i)){p=I[i]}else if(p!=null){if(!(d in p)){if(!t){throw new l("base intrinsic for "+e+" exists, but the property is not available.")}return void o}if(h&&u+1>=r.length){var m=h(p,d);s=!!m;if(s&&"get"in m&&!("originalValue"in m.get)){p=m.get}else{p=p[d]}}else{s=M(p,d);p=p[d]}if(s&&!f){I[i]=p}}}return p}},402:function(e,t,r){"use strict";var o;var n=r(485);var a=r(684);var i=r(224);var p=r(433);var f=r(409);var c=r(681);var l=r(458);var y=r(866);var u=r(328);var s=r(422);var d=r(378);var v=r(388);var g=r(526);var m=r(816);var h=r(947);var b=Function;var getEvalledConstructor=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}};var A=r(671);var S=r(674);var throwTypeError=function(){throw new l};var w=A?function(){try{arguments.callee;return throwTypeError}catch(e){try{return A(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var P=r(718)();var O=r(272);var x=r(932);var E=r(172);var j=r(831);var I=r(715);var _={};var R=typeof Uint8Array==="undefined"||!O?o:O(Uint8Array);var F={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":typeof Atomics==="undefined"?o:Atomics,"%BigInt%":typeof BigInt==="undefined"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array==="undefined"?o:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?o:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":_,"%Int8Array%":typeof Int8Array==="undefined"?o:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?o:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):o,"%JSON%":typeof JSON==="object"?JSON:o,"%Map%":typeof Map==="undefined"?o:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!P||!O?o:O((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?o:Promise,"%Proxy%":typeof Proxy==="undefined"?o:Proxy,"%RangeError%":p,"%ReferenceError%":f,"%Reflect%":typeof Reflect==="undefined"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?o:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!P||!O?o:O((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":c,"%ThrowTypeError%":w,"%TypedArray%":R,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array==="undefined"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?o:Uint32Array,"%URIError%":y,"%WeakMap%":typeof WeakMap==="undefined"?o:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?o:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?o:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":j,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":x,"%Math.abs%":u,"%Math.floor%":s,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":h,"%Reflect.getPrototypeOf%":E};if(O){try{null.error}catch(e){var k=O(O(e));F["%Error.prototype%"]=k}}var M=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var o=doEval("%AsyncGenerator%");if(o&&O){t=O(o.prototype)}}F[e]=t;return t};var D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var N=r(632);var U=r(618);var B=N.call(I,Array.prototype.concat);var T=N.call(j,Array.prototype.splice);var C=N.call(I,String.prototype.replace);var W=N.call(I,String.prototype.slice);var G=N.call(I,RegExp.prototype.exec);var L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var K=/\\(\\)?/g;var q=function stringToPath(e){var t=W(e,0,1);var r=W(e,-1);if(t==="%"&&r!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var o=[];C(e,L,(function(e,t,r,n){o[o.length]=r?C(n,K,"$1"):t||e}));return o};var V=function getBaseIntrinsic(e,t){var r=e;var o;if(U(D,r)){o=D[r];r="%"+o[0]+"%"}if(U(F,r)){var n=F[r];if(n===_){n=M(r)}if(typeof n==="undefined"&&!t){throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:o,name:r,value:n}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new l("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new l('"allowMissing" argument must be a boolean')}if(G(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=q(e);var n=r.length>0?r[0]:"";var a=V("%"+n+"%",t);var i=a.name;var p=a.value;var f=false;var y=a.alias;if(y){n=y[0];T(r,B([0,1],y))}for(var u=1,s=true;u<r.length;u+=1){var d=r[u];var v=W(d,0,1);var g=W(d,-1);if((v==='"'||v==="'"||v==="`"||(g==='"'||g==="'"||g==="`"))&&v!==g){throw new c("property names with quotes must have matching quotes")}if(d==="constructor"||!s){f=true}n+="."+d;i="%"+n+"%";if(U(F,i)){p=F[i]}else if(p!=null){if(!(d in p)){if(!t){throw new l("base intrinsic for "+e+" exists, but the property is not available.")}return void o}if(A&&u+1>=r.length){var m=A(p,d);s=!!m;if(s&&"get"in m&&!("originalValue"in m.get)){p=m.get}else{p=p[d]}}else{s=U(p,d);p=p[d]}if(s&&!f){F[i]=p}}}return p}},932:function(e,t,r){"use strict";var o=r(485);e.exports=o.getPrototypeOf||null},172:function(e){"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null},272:function(e,t,r){"use strict";var o=r(172);var n=r(932);var a=r(594);e.exports=o?function getProto(e){return o(e)}:n?function getProto(e){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new TypeError("getProto: not an object")}return n(e)}:a?function getProto(e){return a(e)}:null},401:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},671:function(e,t,r){"use strict";var o=r(401);if(o){try{o([],"length")}catch(e){o=null}}e.exports=o},718:function(e,t,r){"use strict";var o=typeof Symbol!=="undefined"&&Symbol;var n=r(44);e.exports=function hasNativeSymbols(){if(typeof o!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof o("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return n()}},44:function(e){"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var o=42;e[t]=o;for(var n in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==o||i.enumerable!==true){return false}}return true}},618:function(e,t,r){"use strict";var o=Function.prototype.call;var n=Object.prototype.hasOwnProperty;var a=r(632);e.exports=a.call(o,n)},328:function(e){"use strict";e.exports=Math.abs},422:function(e){"use strict";e.exports=Math.floor},21:function(e){"use strict";e.exports=Number.isNaN||function isNaN(e){return e!==e}},378:function(e){"use strict";e.exports=Math.max},388:function(e){"use strict";e.exports=Math.min},526:function(e){"use strict";e.exports=Math.pow},816:function(e){"use strict";e.exports=Math.round},947:function(e,t,r){"use strict";var o=r(21);e.exports=function sign(e){if(o(e)||e===0){return e}return e<0?-1:+1}},162:function(e,t,r){var o=typeof Map==="function"&&Map.prototype;var n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var a=o&&n&&typeof n.get==="function"?n.get:null;var i=o&&Map.prototype.forEach;var p=typeof Set==="function"&&Set.prototype;var f=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var c=p&&f&&typeof f.get==="function"?f.get:null;var l=p&&Set.prototype.forEach;var y=typeof WeakMap==="function"&&WeakMap.prototype;var u=y?WeakMap.prototype.has:null;var s=typeof WeakSet==="function"&&WeakSet.prototype;var d=s?WeakSet.prototype.has:null;var v=typeof WeakRef==="function"&&WeakRef.prototype;var g=v?WeakRef.prototype.deref:null;var m=Boolean.prototype.valueOf;var h=Object.prototype.toString;var b=Function.prototype.toString;var A=String.prototype.match;var S=String.prototype.slice;var w=String.prototype.replace;var P=String.prototype.toUpperCase;var O=String.prototype.toLowerCase;var x=RegExp.prototype.test;var E=Array.prototype.concat;var j=Array.prototype.join;var I=Array.prototype.slice;var _=Math.floor;var R=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var F=Object.getOwnPropertySymbols;var k=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var M=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var D=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M?"object":"symbol")?Symbol.toStringTag:null;var N=Object.prototype.propertyIsEnumerable;var U=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var o=e<0?-_(-e):_(e);if(o!==e){var n=String(o);var a=S.call(t,n.length+1);return w.call(n,r,"$&_")+"."+w.call(w.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,r,"$&_")}var B=r(62);var T=B.custom;var C=isSymbol(T)?T:null;var W={__proto__:null,double:'"',single:"'"};var G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};e.exports=function inspect_(e,t,r,o){var n=t||{};if(has(n,"quoteStyle")&&!has(W,n.quoteStyle)){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(n,"maxStringLength")&&(typeof n.maxStringLength==="number"?n.maxStringLength<0&&n.maxStringLength!==Infinity:n.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var p=has(n,"customInspect")?n.customInspect:true;if(typeof p!=="boolean"&&p!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(n,"indent")&&n.indent!==null&&n.indent!=="\t"&&!(parseInt(n.indent,10)===n.indent&&n.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(n,"numericSeparator")&&typeof n.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var f=n.numericSeparator;if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(typeof e==="boolean"){return e?"true":"false"}if(typeof e==="string"){return inspectString(e,n)}if(typeof e==="number"){if(e===0){return Infinity/e>0?"0":"-0"}var y=String(e);return f?addNumericSeparator(e,y):y}if(typeof e==="bigint"){var u=String(e)+"n";return f?addNumericSeparator(e,u):u}var s=typeof n.depth==="undefined"?5:n.depth;if(typeof r==="undefined"){r=0}if(r>=s&&s>0&&typeof e==="object"){return isArray(e)?"[Array]":"[Object]"}var d=getIndent(n,r);if(typeof o==="undefined"){o=[]}else if(indexOf(o,e)>=0){return"[Circular]"}function inspect(e,t,a){if(t){o=I.call(o);o.push(t)}if(a){var i={depth:n.depth};if(has(n,"quoteStyle")){i.quoteStyle=n.quoteStyle}return inspect_(e,i,r+1,o)}return inspect_(e,n,r+1,o)}if(typeof e==="function"&&!isRegExp(e)){var v=nameOf(e);var g=arrObjKeys(e,inspect);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+j.call(g,", ")+" }":"")}if(isSymbol(e)){var h=M?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return typeof e==="object"&&!M?markBoxed(h):h}if(isElement(e)){var b="<"+O.call(String(e.nodeName));var A=e.attributes||[];for(var P=0;P<A.length;P++){b+=" "+A[P].name+"="+wrapQuotes(quote(A[P].value),"double",n)}b+=">";if(e.childNodes&&e.childNodes.length){b+="..."}b+="</"+O.call(String(e.nodeName))+">";return b}if(isArray(e)){if(e.length===0){return"[]"}var x=arrObjKeys(e,inspect);if(d&&!singleLineValues(x)){return"["+indentedJoin(x,d)+"]"}return"[ "+j.call(x,", ")+" ]"}if(isError(e)){var _=arrObjKeys(e,inspect);if(!("cause"in Error.prototype)&&"cause"in e&&!N.call(e,"cause")){return"{ ["+String(e)+"] "+j.call(E.call("[cause]: "+inspect(e.cause),_),", ")+" }"}if(_.length===0){return"["+String(e)+"]"}return"{ ["+String(e)+"] "+j.call(_,", ")+" }"}if(typeof e==="object"&&p){if(C&&typeof e[C]==="function"&&B){return B(e,{depth:s-r})}else if(p!=="symbol"&&typeof e.inspect==="function"){return e.inspect()}}if(isMap(e)){var F=[];if(i){i.call(e,(function(t,r){F.push(inspect(r,e,true)+" => "+inspect(t,e))}))}return collectionOf("Map",a.call(e),F,d)}if(isSet(e)){var T=[];if(l){l.call(e,(function(t){T.push(inspect(t,e))}))}return collectionOf("Set",c.call(e),T,d)}if(isWeakMap(e)){return weakCollectionOf("WeakMap")}if(isWeakSet(e)){return weakCollectionOf("WeakSet")}if(isWeakRef(e)){return weakCollectionOf("WeakRef")}if(isNumber(e)){return markBoxed(inspect(Number(e)))}if(isBigInt(e)){return markBoxed(inspect(R.call(e)))}if(isBoolean(e)){return markBoxed(m.call(e))}if(isString(e)){return markBoxed(inspect(String(e)))}if(typeof window!=="undefined"&&e===window){return"{ [object Window] }"}if(typeof globalThis!=="undefined"&&e===globalThis||typeof global!=="undefined"&&e===global){return"{ [object globalThis] }"}if(!isDate(e)&&!isRegExp(e)){var G=arrObjKeys(e,inspect);var L=U?U(e)===Object.prototype:e instanceof Object||e.constructor===Object;var K=e instanceof Object?"":"null prototype";var q=!L&&D&&Object(e)===e&&D in e?S.call(toStr(e),8,-1):K?"Object":"";var V=L||typeof e.constructor!=="function"?"":e.constructor.name?e.constructor.name+" ":"";var $=V+(q||K?"["+j.call(E.call([],q||[],K||[]),": ")+"] ":"");if(G.length===0){return $+"{}"}if(d){return $+"{"+indentedJoin(G,d)+"}"}return $+"{ "+j.call(G,", ")+" }"}return String(e)};function wrapQuotes(e,t,r){var o=r.quoteStyle||t;var n=W[o];return n+e+n}function quote(e){return w.call(String(e),/"/g,"&quot;")}function isArray(e){return toStr(e)==="[object Array]"&&(!D||!(typeof e==="object"&&D in e))}function isDate(e){return toStr(e)==="[object Date]"&&(!D||!(typeof e==="object"&&D in e))}function isRegExp(e){return toStr(e)==="[object RegExp]"&&(!D||!(typeof e==="object"&&D in e))}function isError(e){return toStr(e)==="[object Error]"&&(!D||!(typeof e==="object"&&D in e))}function isString(e){return toStr(e)==="[object String]"&&(!D||!(typeof e==="object"&&D in e))}function isNumber(e){return toStr(e)==="[object Number]"&&(!D||!(typeof e==="object"&&D in e))}function isBoolean(e){return toStr(e)==="[object Boolean]"&&(!D||!(typeof e==="object"&&D in e))}function isSymbol(e){if(M){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!k){return false}try{k.call(e);return true}catch(e){}return false}function isBigInt(e){if(!e||typeof e!=="object"||!R){return false}try{R.call(e);return true}catch(e){}return false}var L=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return L.call(e,t)}function toStr(e){return h.call(e)}function nameOf(e){if(e.name){return e.name}var t=A.call(b.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function indexOf(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,o=e.length;r<o;r++){if(e[r]===t){return r}}return-1}function isMap(e){if(!a||!e||typeof e!=="object"){return false}try{a.call(e);try{c.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function isWeakMap(e){if(!u||!e||typeof e!=="object"){return false}try{u.call(e,u);try{d.call(e,d)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function isWeakRef(e){if(!g||!e||typeof e!=="object"){return false}try{g.call(e);return true}catch(e){}return false}function isSet(e){if(!c||!e||typeof e!=="object"){return false}try{c.call(e);try{a.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function isWeakSet(e){if(!d||!e||typeof e!=="object"){return false}try{d.call(e,d);try{u.call(e,u)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function isElement(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function inspectString(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var o="... "+r+" more character"+(r>1?"s":"");return inspectString(S.call(e,0,t.maxStringLength),t)+o}var n=G[t.quoteStyle||"single"];n.lastIndex=0;var a=w.call(w.call(e,n,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(a,"single",t)}function lowbyte(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+P.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,r,o){var n=o?indentedJoin(r,o):j.call(r,", ");return e+" ("+t+") {"+n+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++){if(indexOf(e[t],"\n")>=0){return false}}return true}function getIndent(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=j.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:j.call(Array(t+1),r)}}function indentedJoin(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function arrObjKeys(e,t){var r=isArray(e);var o=[];if(r){o.length=e.length;for(var n=0;n<e.length;n++){o[n]=has(e,n)?t(e[n],e):""}}var a=typeof F==="function"?F(e):[];var i;if(M){i={};for(var p=0;p<a.length;p++){i["$"+a[p]]=a[p]}}for(var f in e){if(!has(e,f)){continue}if(r&&String(Number(f))===f&&f<e.length){continue}if(M&&i["$"+f]instanceof Symbol){continue}else if(x.call(/[^\w$]/,f)){o.push(t(f,e)+": "+t(e[f],e))}else{o.push(f+": "+t(e[f],e))}}if(typeof F==="function"){for(var c=0;c<a.length;c++){if(N.call(e,a[c])){o.push("["+t(a[c])+"]: "+t(e[a[c]],e))}}}return o}},62:function(e,t,r){e.exports=r(23).inspect},307:function(e){"use strict";var t=String.prototype.replace;var r=/%20/g;var o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},943:function(e,t,r){"use strict";var o=r(198);var n=r(904);var a=r(307);e.exports={formats:a,parse:n,stringify:o}},904:function(e,t,r){"use strict";var o=r(610);var n=Object.prototype.hasOwnProperty;var a=Array.isArray;var i={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false};var interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var parseArrayValue=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var p="utf8=%26%2310003%3B";var f="utf8=%E2%9C%93";var c=function parseQueryStringValues(e,t){var r={__proto__:null};var c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===Infinity?undefined:t.parameterLimit;var y=c.split(t.delimiter,l);var u=-1;var s;var d=t.charset;if(t.charsetSentinel){for(s=0;s<y.length;++s){if(y[s].indexOf("utf8=")===0){if(y[s]===f){d="utf-8"}else if(y[s]===p){d="iso-8859-1"}u=s;s=y.length}}}for(s=0;s<y.length;++s){if(s===u){continue}var v=y[s];var g=v.indexOf("]=");var m=g===-1?v.indexOf("="):g+1;var h;var b;if(m===-1){h=t.decoder(v,i.decoder,d,"key");b=t.strictNullHandling?null:""}else{h=t.decoder(v.slice(0,m),i.decoder,d,"key");b=o.maybeMap(parseArrayValue(v.slice(m+1),t),(function(e){return t.decoder(e,i.decoder,d,"value")}))}if(b&&t.interpretNumericEntities&&d==="iso-8859-1"){b=interpretNumericEntities(String(b))}if(v.indexOf("[]=")>-1){b=a(b)?[b]:b}var A=n.call(r,h);if(A&&t.duplicates==="combine"){r[h]=o.combine(r[h],b)}else if(!A||t.duplicates==="last"){r[h]=b}}return r};var parseObject=function(e,t,r,o){var n=o?t:parseArrayValue(t,r);for(var a=e.length-1;a>=0;--a){var i;var p=e[a];if(p==="[]"&&r.parseArrays){i=r.allowEmptyArrays&&(n===""||r.strictNullHandling&&n===null)?[]:[].concat(n)}else{i=r.plainObjects?{__proto__:null}:{};var f=p.charAt(0)==="["&&p.charAt(p.length-1)==="]"?p.slice(1,-1):p;var c=r.decodeDotInKeys?f.replace(/%2E/g,"."):f;var l=parseInt(c,10);if(!r.parseArrays&&c===""){i={0:n}}else if(!isNaN(l)&&p!==c&&String(l)===c&&l>=0&&(r.parseArrays&&l<=r.arrayLimit)){i=[];i[l]=n}else if(c!=="__proto__"){i[c]=n}}n=i}return n};var l=function parseQueryStringKeys(e,t,r,o){if(!e){return}var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var p=/(\[[^[\]]*])/g;var f=r.depth>0&&i.exec(a);var c=f?a.slice(0,f.index):a;var l=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)){if(!r.allowPrototypes){return}}l.push(c)}var y=0;while(r.depth>0&&(f=p.exec(a))!==null&&y<r.depth){y+=1;if(!r.plainObjects&&n.call(Object.prototype,f[1].slice(1,-1))){if(!r.allowPrototypes){return}}l.push(f[1])}if(f){if(r.strictDepth===true){throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true")}l.push("["+a.slice(f.index)+"]")}return parseObject(l,t,r,o)};var y=function normalizeParseOptions(e){if(!e){return i}if(typeof e.allowEmptyArrays!=="undefined"&&typeof e.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof e.decodeDotInKeys!=="undefined"&&typeof e.decodeDotInKeys!=="boolean"){throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided")}if(e.decoder!==null&&typeof e.decoder!=="undefined"&&typeof e.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var t=typeof e.charset==="undefined"?i.charset:e.charset;var r=typeof e.duplicates==="undefined"?i.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last"){throw new TypeError("The duplicates option must be either combine, first, or last")}var n=typeof e.allowDots==="undefined"?e.decodeDotInKeys===true?true:i.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays==="boolean"?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==="boolean"?e.allowPrototypes:i.allowPrototypes,allowSparse:typeof e.allowSparse==="boolean"?e.allowSparse:i.allowSparse,arrayLimit:typeof e.arrayLimit==="number"?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:i.charsetSentinel,comma:typeof e.comma==="boolean"?e.comma:i.comma,decodeDotInKeys:typeof e.decodeDotInKeys==="boolean"?e.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof e.decoder==="function"?e.decoder:i.decoder,delimiter:typeof e.delimiter==="string"||o.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:typeof e.depth==="number"||e.depth===false?+e.depth:i.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===true,interpretNumericEntities:typeof e.interpretNumericEntities==="boolean"?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==="number"?e.parameterLimit:i.parameterLimit,parseArrays:e.parseArrays!==false,plainObjects:typeof e.plainObjects==="boolean"?e.plainObjects:i.plainObjects,strictDepth:typeof e.strictDepth==="boolean"?!!e.strictDepth:i.strictDepth,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=y(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?{__proto__:null}:{}}var n=typeof e==="string"?c(e,r):e;var a=r.plainObjects?{__proto__:null}:{};var i=Object.keys(n);for(var p=0;p<i.length;++p){var f=i[p];var u=l(f,n[f],r,typeof e==="string");a=o.merge(a,u,r)}if(r.allowSparse===true){return a}return o.compact(a)}},198:function(e,t,r){"use strict";var o=r(706);var n=r(610);var a=r(307);var i=Object.prototype.hasOwnProperty;var p={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var f=Array.isArray;var c=Array.prototype.push;var pushToArray=function(e,t){c.apply(e,f(t)?t:[t])};var l=Date.prototype.toISOString;var y=a["default"];var u={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:n.encode,encodeValuesOnly:false,filter:void undefined,format:y,formatter:a.formatters[y],indices:false,serializeDate:function serializeDate(e){return l.call(e)},skipNulls:false,strictNullHandling:false};var s=function isNonNullishPrimitive(e){return typeof e==="string"||typeof e==="number"||typeof e==="boolean"||typeof e==="symbol"||typeof e==="bigint"};var d={};var v=function stringify(e,t,r,a,i,p,c,l,y,v,g,m,h,b,A,S,w,P){var O=e;var x=P;var E=0;var j=false;while((x=x.get(d))!==void undefined&&!j){var I=x.get(e);E+=1;if(typeof I!=="undefined"){if(I===E){throw new RangeError("Cyclic object value")}else{j=true}}if(typeof x.get(d)==="undefined"){E=0}}if(typeof v==="function"){O=v(t,O)}else if(O instanceof Date){O=h(O)}else if(r==="comma"&&f(O)){O=n.maybeMap(O,(function(e){if(e instanceof Date){return h(e)}return e}))}if(O===null){if(p){return y&&!S?y(t,u.encoder,w,"key",b):t}O=""}if(s(O)||n.isBuffer(O)){if(y){var _=S?t:y(t,u.encoder,w,"key",b);return[A(_)+"="+A(y(O,u.encoder,w,"value",b))]}return[A(t)+"="+A(String(O))]}var R=[];if(typeof O==="undefined"){return R}var F;if(r==="comma"&&f(O)){if(S&&y){O=n.maybeMap(O,y)}F=[{value:O.length>0?O.join(",")||null:void undefined}]}else if(f(v)){F=v}else{var k=Object.keys(O);F=g?k.sort(g):k}var M=l?String(t).replace(/\./g,"%2E"):String(t);var D=a&&f(O)&&O.length===1?M+"[]":M;if(i&&f(O)&&O.length===0){return D+"[]"}for(var N=0;N<F.length;++N){var U=F[N];var B=typeof U==="object"&&U&&typeof U.value!=="undefined"?U.value:O[U];if(c&&B===null){continue}var T=m&&l?String(U).replace(/\./g,"%2E"):String(U);var C=f(O)?typeof r==="function"?r(D,T):D:D+(m?"."+T:"["+T+"]");P.set(e,E);var W=o();W.set(d,P);pushToArray(R,stringify(B,C,r,a,i,p,c,l,r==="comma"&&S&&f(O)?null:y,v,g,m,h,b,A,S,w,W))}return R};var g=function normalizeStringifyOptions(e){if(!e){return u}if(typeof e.allowEmptyArrays!=="undefined"&&typeof e.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof e.encodeDotInKeys!=="undefined"&&typeof e.encodeDotInKeys!=="boolean"){throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided")}if(e.encoder!==null&&typeof e.encoder!=="undefined"&&typeof e.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var t=e.charset||u.charset;if(typeof e.charset!=="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=a["default"];if(typeof e.format!=="undefined"){if(!i.call(a.formatters,e.format)){throw new TypeError("Unknown format option provided.")}r=e.format}var o=a.formatters[r];var n=u.filter;if(typeof e.filter==="function"||f(e.filter)){n=e.filter}var c;if(e.arrayFormat in p){c=e.arrayFormat}else if("indices"in e){c=e.indices?"indices":"repeat"}else{c=u.arrayFormat}if("commaRoundTrip"in e&&typeof e.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var l=typeof e.allowDots==="undefined"?e.encodeDotInKeys===true?true:u.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==="boolean"?e.addQueryPrefix:u.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays==="boolean"?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:c,charset:t,charsetSentinel:typeof e.charsetSentinel==="boolean"?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter==="undefined"?u.delimiter:e.delimiter,encode:typeof e.encode==="boolean"?e.encode:u.encode,encodeDotInKeys:typeof e.encodeDotInKeys==="boolean"?e.encodeDotInKeys:u.encodeDotInKeys,encoder:typeof e.encoder==="function"?e.encoder:u.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==="boolean"?e.encodeValuesOnly:u.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:typeof e.serializeDate==="function"?e.serializeDate:u.serializeDate,skipNulls:typeof e.skipNulls==="boolean"?e.skipNulls:u.skipNulls,sort:typeof e.sort==="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling==="boolean"?e.strictNullHandling:u.strictNullHandling}};e.exports=function(e,t){var r=e;var n=g(t);var a;var i;if(typeof n.filter==="function"){i=n.filter;r=i("",r)}else if(f(n.filter)){i=n.filter;a=i}var c=[];if(typeof r!=="object"||r===null){return""}var l=p[n.arrayFormat];var y=l==="comma"&&n.commaRoundTrip;if(!a){a=Object.keys(r)}if(n.sort){a.sort(n.sort)}var u=o();for(var s=0;s<a.length;++s){var d=a[s];var m=r[d];if(n.skipNulls&&m===null){continue}pushToArray(c,v(m,d,l,y,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=c.join(n.delimiter);var b=n.addQueryPrefix===true?"?":"";if(n.charsetSentinel){if(n.charset==="iso-8859-1"){b+="utf8=%26%2310003%3B&"}else{b+="utf8=%E2%9C%93&"}}return h.length>0?b+h:""}},610:function(e,t,r){"use strict";var o=r(307);var n=Object.prototype.hasOwnProperty;var a=Array.isArray;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var p=function compactQueue(e){while(e.length>1){var t=e.pop();var r=t.obj[t.prop];if(a(r)){var o=[];for(var n=0;n<r.length;++n){if(typeof r[n]!=="undefined"){o.push(r[n])}}t.obj[t.prop]=o}}};var f=function arrayToObject(e,t){var r=t&&t.plainObjects?{__proto__:null}:{};for(var o=0;o<e.length;++o){if(typeof e[o]!=="undefined"){r[o]=e[o]}}return r};var c=function merge(e,t,r){if(!t){return e}if(typeof t!=="object"&&typeof t!=="function"){if(a(e)){e.push(t)}else if(e&&typeof e==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,t)){e[t]=true}}else{return[e,t]}return e}if(!e||typeof e!=="object"){return[e].concat(t)}var o=e;if(a(e)&&!a(t)){o=f(e,r)}if(a(e)&&a(t)){t.forEach((function(t,o){if(n.call(e,o)){var a=e[o];if(a&&typeof a==="object"&&t&&typeof t==="object"){e[o]=merge(a,t,r)}else{e.push(t)}}else{e[o]=t}}));return e}return Object.keys(t).reduce((function(e,o){var a=t[o];if(n.call(e,o)){e[o]=merge(e[o],a,r)}else{e[o]=a}return e}),o)};var l=function assignSingleSource(e,t){return Object.keys(t).reduce((function(e,r){e[r]=t[r];return e}),e)};var decode=function(e,t,r){var o=e.replace(/\+/g," ");if(r==="iso-8859-1"){return o.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(o)}catch(e){return o}};var y=1024;var u=function encode(e,t,r,n,a){if(e.length===0){return e}var p=e;if(typeof e==="symbol"){p=Symbol.prototype.toString.call(e)}else if(typeof e!=="string"){p=String(e)}if(r==="iso-8859-1"){return escape(p).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var f="";for(var c=0;c<p.length;c+=y){var l=p.length>=y?p.slice(c,c+y):p;var u=[];for(var s=0;s<l.length;++s){var d=l.charCodeAt(s);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===o.RFC1738&&(d===40||d===41)){u[u.length]=l.charAt(s);continue}if(d<128){u[u.length]=i[d];continue}if(d<2048){u[u.length]=i[192|d>>6]+i[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=i[224|d>>12]+i[128|d>>6&63]+i[128|d&63];continue}s+=1;d=65536+((d&1023)<<10|l.charCodeAt(s)&1023);u[u.length]=i[240|d>>18]+i[128|d>>12&63]+i[128|d>>6&63]+i[128|d&63]}f+=u.join("")}return f};var s=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var o=0;o<t.length;++o){var n=t[o];var a=n.obj[n.prop];var i=Object.keys(a);for(var f=0;f<i.length;++f){var c=i[f];var l=a[c];if(typeof l==="object"&&l!==null&&r.indexOf(l)===-1){t.push({obj:a,prop:c});r.push(l)}}}p(t);return e};var d=function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"};var v=function isBuffer(e){if(!e||typeof e!=="object"){return false}return!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};var g=function combine(e,t){return[].concat(e,t)};var m=function maybeMap(e,t){if(a(e)){var r=[];for(var o=0;o<e.length;o+=1){r.push(t(e[o]))}return r}return t(e)};e.exports={arrayToObject:f,assign:l,combine:g,compact:s,decode:decode,encode:u,isBuffer:v,isRegExp:d,maybeMap:m,merge:c}},223:function(e,t,r){"use strict";var o=r(162);var n=r(458);var listGetNode=function(e,t,r){var o=e;var n;for(;(n=o.next)!=null;o=n){if(n.key===t){o.next=n.next;if(!r){n.next=e.next;e.next=n}return n}}};var listGet=function(e,t){if(!e){return void undefined}var r=listGetNode(e,t);return r&&r.value};var listSet=function(e,t,r){var o=listGetNode(e,t);if(o){o.value=r}else{e.next={key:t,next:e.next,value:r}}};var listHas=function(e,t){if(!e){return false}return!!listGetNode(e,t)};var listDelete=function(e,t){if(e){return listGetNode(e,t,true)}};e.exports=function getSideChannelList(){var e;var t={assert:function(e){if(!t.has(e)){throw new n("Side channel does not contain "+o(e))}},delete:function(t){var r=e&&e.next;var o=listDelete(e,t);if(o&&r&&r===o){e=void undefined}return!!o},get:function(t){return listGet(e,t)},has:function(t){return listHas(e,t)},set:function(t,r){if(!e){e={next:void undefined}}listSet(e,t,r)}};return t}},138:function(e,t,r){"use strict";var o=r(987);var n=r(296);var a=r(162);var i=r(458);var p=o("%Map%",true);var f=n("Map.prototype.get",true);var c=n("Map.prototype.set",true);var l=n("Map.prototype.has",true);var y=n("Map.prototype.delete",true);var u=n("Map.prototype.size",true);e.exports=!!p&&function getSideChannelMap(){var e;var t={assert:function(e){if(!t.has(e)){throw new i("Side channel does not contain "+a(e))}},delete:function(t){if(e){var r=y(e,t);if(u(e)===0){e=void undefined}return r}return false},get:function(t){if(e){return f(e,t)}},has:function(t){if(e){return l(e,t)}return false},set:function(t,r){if(!e){e=new p}c(e,t,r)}};return t}},431:function(e,t,r){"use strict";var o=r(987);var n=r(296);var a=r(162);var i=r(138);var p=r(458);var f=o("%WeakMap%",true);var c=n("WeakMap.prototype.get",true);var l=n("WeakMap.prototype.set",true);var y=n("WeakMap.prototype.has",true);var u=n("WeakMap.prototype.delete",true);e.exports=f?function getSideChannelWeakMap(){var e;var t;var r={assert:function(e){if(!r.has(e)){throw new p("Side channel does not contain "+a(e))}},delete:function(r){if(f&&r&&(typeof r==="object"||typeof r==="function")){if(e){return u(e,r)}}else if(i){if(t){return t["delete"](r)}}return false},get:function(r){if(f&&r&&(typeof r==="object"||typeof r==="function")){if(e){return c(e,r)}}return t&&t.get(r)},has:function(r){if(f&&r&&(typeof r==="object"||typeof r==="function")){if(e){return y(e,r)}}return!!t&&t.has(r)},set:function(r,o){if(f&&r&&(typeof r==="object"||typeof r==="function")){if(!e){e=new f}l(e,r,o)}else if(i){if(!t){t=i()}t.set(r,o)}}};return r}:i},706:function(e,t,r){"use strict";var o=r(458);var n=r(162);var a=r(223);var i=r(138);var p=r(431);var f=p||i||a;e.exports=function getSideChannel(){var e;var t={assert:function(e){if(!t.has(e)){throw new o("Side channel does not contain "+n(e))}},delete:function(t){return!!e&&e["delete"](t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){if(!e){e=f()}e.set(t,r)}};return t}},23:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var o=t[r];if(o!==undefined){return o.exports}var n=t[r]={exports:{}};var a=true;try{e[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(943);module.exports=r})();
@@ -1 +1 @@
1
- {"name":"qs","description":"A querystring parser that supports nesting and arrays, with a depth limit","homepage":"https://github.com/ljharb/qs","version":"6.13.1","repository":{"type":"git","url":"https://github.com/ljharb/qs.git"},"funding":{"url":"https://github.com/sponsors/ljharb"},"main":"lib/index.js","sideEffects":false,"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"keywords":["querystring","qs","query","url","parse","stringify"],"engines":{"node":">=0.6"},"dependencies":{"side-channel":"^1.0.6"},"devDependencies":{"@browserify/envify":"^6.0.0","@browserify/uglifyify":"^6.0.0","@ljharb/eslint-config":"^21.1.1","browserify":"^16.5.2","bundle-collapser":"^1.4.0","common-shakeify":"~1.0.0","eclint":"^2.8.1","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","glob":"=10.3.7","has-bigints":"^1.0.2","has-override-mistake":"^1.0.1","has-property-descriptors":"^1.0.2","has-proto":"^1.0.3","has-symbols":"^1.0.3","iconv-lite":"^0.5.1","in-publish":"^2.0.1","jackspeak":"=2.1.1","mkdirp":"^0.5.5","mock-property":"^1.1.0","module-deps":"^6.2.3","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","qs-iconv":"^1.0.4","safe-publish-latest":"^2.0.0","safer-buffer":"^2.1.2","tape":"^5.9.0","unassertify":"^3.0.1"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated && npm run dist","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run --silent readme && npm run --silent lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"npx npm@'>=10.2' audit --production","readme":"evalmd README.md","postlint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","lint":"eslint --ext=js,mjs .","dist":"mkdirp dist && browserify --standalone Qs -g unassertify -g @browserify/envify -g [@browserify/uglifyify --mangle.keep_fnames --compress.keep_fnames --format.indent_level=1 --compress.arrows=false --compress.passes=4 --compress.typeofs=false] -p common-shakeify -p bundle-collapser/plugin lib/index.js > dist/qs.js"},"license":"BSD-3-Clause","publishConfig":{"ignore":["!dist/*","bower.json","component.json",".github/workflows","logos","tea.yaml"]},"_lastModified":"2025-03-06T09:58:30.225Z"}
1
+ {"name":"qs","description":"A querystring parser that supports nesting and arrays, with a depth limit","homepage":"https://github.com/ljharb/qs","version":"6.13.1","repository":{"type":"git","url":"https://github.com/ljharb/qs.git"},"funding":{"url":"https://github.com/sponsors/ljharb"},"main":"lib/index.js","sideEffects":false,"contributors":[{"name":"Jordan Harband","email":"ljharb@gmail.com","url":"http://ljharb.codes"}],"keywords":["querystring","qs","query","url","parse","stringify"],"engines":{"node":">=0.6"},"dependencies":{"side-channel":"^1.0.6"},"devDependencies":{"@browserify/envify":"^6.0.0","@browserify/uglifyify":"^6.0.0","@ljharb/eslint-config":"^21.1.1","browserify":"^16.5.2","bundle-collapser":"^1.4.0","common-shakeify":"~1.0.0","eclint":"^2.8.1","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","glob":"=10.3.7","has-bigints":"^1.0.2","has-override-mistake":"^1.0.1","has-property-descriptors":"^1.0.2","has-proto":"^1.0.3","has-symbols":"^1.0.3","iconv-lite":"^0.5.1","in-publish":"^2.0.1","jackspeak":"=2.1.1","mkdirp":"^0.5.5","mock-property":"^1.1.0","module-deps":"^6.2.3","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","qs-iconv":"^1.0.4","safe-publish-latest":"^2.0.0","safer-buffer":"^2.1.2","tape":"^5.9.0","unassertify":"^3.0.1"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated && npm run dist","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","pretest":"npm run --silent readme && npm run --silent lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","posttest":"npx npm@'>=10.2' audit --production","readme":"evalmd README.md","postlint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)","lint":"eslint --ext=js,mjs .","dist":"mkdirp dist && browserify --standalone Qs -g unassertify -g @browserify/envify -g [@browserify/uglifyify --mangle.keep_fnames --compress.keep_fnames --format.indent_level=1 --compress.arrows=false --compress.passes=4 --compress.typeofs=false] -p common-shakeify -p bundle-collapser/plugin lib/index.js > dist/qs.js"},"license":"BSD-3-Clause","publishConfig":{"ignore":["!dist/*","bower.json","component.json",".github/workflows","logos","tea.yaml"]},"_lastModified":"2025-04-18T20:32:57.361Z"}
@@ -36,7 +36,7 @@ async function start(ctx, next) {
36
36
  ctx.body = "ok";
37
37
  await next();
38
38
  } else {
39
- ctx.throw(400, ctx.t("App already started", { ns: import_constants.NAMESPACE }));
39
+ ctx.throw(205, ctx.t("App already started", { ns: import_constants.NAMESPACE }));
40
40
  }
41
41
  }
42
42
  async function stop(ctx, next) {
@@ -21,6 +21,7 @@ __export(applications_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(applications_exports);
23
23
  var import_database = require("@tachybase/database");
24
+ var import_utils = require("@tachybase/utils");
24
25
  var applications_default = (0, import_database.defineCollection)({
25
26
  dumpRules: {
26
27
  group: "third-party"
@@ -62,7 +63,13 @@ var applications_default = (0, import_database.defineCollection)({
62
63
  },
63
64
  {
64
65
  type: "string",
65
- name: "icon"
66
+ name: "icon",
67
+ interface: "icon"
68
+ },
69
+ {
70
+ type: "string",
71
+ name: "color",
72
+ interface: "color"
66
73
  },
67
74
  {
68
75
  type: "string",
@@ -77,6 +84,14 @@ var applications_default = (0, import_database.defineCollection)({
77
84
  type: "boolean",
78
85
  name: "isTemplate",
79
86
  defaultValue: false
87
+ },
88
+ {
89
+ type: "string",
90
+ // APPKEY的后缀,为了防止被推断出来
91
+ name: "appKeySuffix",
92
+ defaultValue: () => {
93
+ return (0, import_utils.uid)(16);
94
+ }
80
95
  }
81
96
  ]
82
97
  });
@@ -54,13 +54,17 @@ function appSelectorMiddleware(app) {
54
54
  await next();
55
55
  return;
56
56
  }
57
- const appInstance = await repository.findOne({
58
- filter: {
59
- cname: subAppName
57
+ try {
58
+ const appInstance = await repository.findOne({
59
+ filter: {
60
+ cname: subAppName
61
+ }
62
+ });
63
+ if (appInstance) {
64
+ ctx.resolvedAppName = appInstance.name;
60
65
  }
61
- });
62
- if (appInstance) {
63
- ctx.resolvedAppName = appInstance.name;
66
+ } catch (error) {
67
+ app.logger.error("Error selecting app", error);
64
68
  }
65
69
  }
66
70
  await next();
@@ -36,9 +36,11 @@ var import_utils = require("@tachybase/utils");
36
36
  var import_app_start_env = __toESM(require("../app-start-env"));
37
37
  class ApplicationModel extends import_database.Model {
38
38
  registerToSupervisor(mainApp, options) {
39
+ var _a, _b;
39
40
  const appName = this.get("name");
40
41
  const preset = this.get("preset");
41
42
  const tmpl = this.get("tmpl");
43
+ const appKeySuffix = this.get("appKeySuffix");
42
44
  const appModelOptions = this.get("options") || {};
43
45
  const startEnvs = appModelOptions.startEnvs || {};
44
46
  let appOptions = options.appOptionsFactory(appName, mainApp, preset);
@@ -48,6 +50,19 @@ class ApplicationModel extends import_database.Model {
48
50
  name: appName,
49
51
  tmpl
50
52
  };
53
+ const suffix = appKeySuffix || appName;
54
+ const subSecret = (0, import_database.md5)(process.env.APP_KEY) + "_" + suffix;
55
+ if ((_b = (_a = subAppOptions.authManager) == null ? void 0 : _a.jwt) == null ? void 0 : _b.secret) {
56
+ subAppOptions.authManager.jwt.secret = subSecret;
57
+ } else {
58
+ subAppOptions.authManager = {
59
+ authKey: "X-Authenticator",
60
+ default: "basic",
61
+ jwt: {
62
+ secret: subSecret
63
+ }
64
+ };
65
+ }
51
66
  return new import_server.Application(subAppOptions);
52
67
  }
53
68
  }
@@ -222,8 +222,7 @@ class PluginMultiAppManager extends import_server.Plugin {
222
222
  import_server.AppSupervisor.getInstance().off("appStatusChanged", notifyStatusChange);
223
223
  });
224
224
  import_server.AppSupervisor.getInstance().on("appStatusChanged", notifyStatusChange);
225
- this.app.acl.allow("applications", "listPinned", "loggedIn");
226
- this.app.acl.allow("applications", "list", "loggedIn");
225
+ this.app.acl.allow("applications", ["list", "create", "update", "destroy", "start", "stop"], "loggedIn");
227
226
  this.app.acl.registerSnippet({
228
227
  name: `pm.${this.name}.applications`,
229
228
  actions: ["applications:*"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-multi-app",
3
3
  "displayName": "Multi-app manager",
4
- "version": "0.23.58",
4
+ "version": "1.0.18",
5
5
  "description": "Dynamically create multiple apps without separate deployments.",
6
6
  "keywords": [
7
7
  "System management"
@@ -9,11 +9,11 @@
9
9
  "license": "Apache-2.0",
10
10
  "main": "./dist/server/index.js",
11
11
  "dependencies": {
12
+ "antd": "5.22.5",
12
13
  "qs": "^6.13.1"
13
14
  },
14
15
  "devDependencies": {
15
16
  "@ant-design/icons": "^5.5.2",
16
- "antd": "5.22.5",
17
17
  "async-mutex": "^0.3.2",
18
18
  "lodash": "4.17.21",
19
19
  "mysql2": "^3.11.5",
@@ -21,15 +21,15 @@
21
21
  "react": "~18.3.1",
22
22
  "react-i18next": "^15.2.0",
23
23
  "react-router-dom": "6.28.1",
24
- "@tachybase/schema": "0.23.58"
24
+ "@tachybase/schema": "1.0.18"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tachybase/actions": "0.23.58",
28
- "@tachybase/client": "0.23.58",
29
- "@tachybase/test": "0.23.58",
30
- "@tachybase/database": "0.23.58",
31
- "@tachybase/utils": "0.23.58",
32
- "@tachybase/server": "0.23.58"
27
+ "@tachybase/actions": "1.0.18",
28
+ "@tachybase/client": "1.0.18",
29
+ "@tachybase/server": "1.0.18",
30
+ "@tachybase/test": "1.0.18",
31
+ "@tachybase/utils": "1.0.18",
32
+ "@tachybase/database": "1.0.18"
33
33
  },
34
34
  "description.zh-CN": "无需单独部署即可动态创建多个应用。",
35
35
  "displayName.zh-CN": "多应用管理器",
@@ -1 +0,0 @@
1
- export declare const Settings: () => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- export declare const useCreateDatabaseConnectionAction: () => {
2
- onClick(): Promise<void>;
3
- };
4
- export declare const useMultiAppUpdateAction: (actionCallback?: (key: string, values: any) => void) => {
5
- onClick(): Promise<void>;
6
- };
7
- export declare const useStartAllAction: () => {
8
- onClick(): Promise<void>;
9
- };
10
- export declare const useStopAllAction: () => {
11
- onClick(): Promise<void>;
12
- };
File without changes