ados-rcm 1.1.599 → 1.1.600
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -94
- package/dist/AModule/AComponents/AListView/AListView.d.ts +18 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +3 -3
- package/package.json +86 -86
package/README.md
CHANGED
@@ -1,94 +1,94 @@
|
|
1
|
-
# ReactComponentModule
|
2
|
-
|
3
|
-
React Component for ADOS
|
4
|
-
|
5
|
-
## Getting started
|
6
|
-
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
8
|
-
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
10
|
-
|
11
|
-
## Add your files
|
12
|
-
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
15
|
-
|
16
|
-
```
|
17
|
-
cd root
|
18
|
-
git remote add origin http://192.168.1.37/ados/rcm.git
|
19
|
-
git fetch
|
20
|
-
git add .
|
21
|
-
git commit -m 'comment'
|
22
|
-
git push
|
23
|
-
```
|
24
|
-
|
25
|
-
## Integrate with your tools
|
26
|
-
|
27
|
-
- [ ] [Set up project integrations](http://192.168.1.37/ados/arcm/-/settings/integrations)
|
28
|
-
|
29
|
-
## Collaborate with your team
|
30
|
-
|
31
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
32
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
33
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
34
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
35
|
-
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
36
|
-
|
37
|
-
## Test and Deploy
|
38
|
-
|
39
|
-
Use the built-in continuous integration in GitLab.
|
40
|
-
|
41
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
42
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
43
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
44
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
45
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
46
|
-
|
47
|
-
***
|
48
|
-
|
49
|
-
# Editing this README
|
50
|
-
|
51
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
52
|
-
|
53
|
-
## Suggestions for a good README
|
54
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
55
|
-
|
56
|
-
## Name
|
57
|
-
Choose a self-explaining name for your project.
|
58
|
-
|
59
|
-
## Description
|
60
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
61
|
-
|
62
|
-
## Badges
|
63
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
64
|
-
|
65
|
-
## Visuals
|
66
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
67
|
-
|
68
|
-
## Installation
|
69
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
70
|
-
|
71
|
-
## Usage
|
72
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
73
|
-
|
74
|
-
## Support
|
75
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
76
|
-
|
77
|
-
## Roadmap
|
78
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
79
|
-
|
80
|
-
## Contributing
|
81
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
82
|
-
|
83
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
84
|
-
|
85
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
86
|
-
|
87
|
-
## Authors and acknowledgment
|
88
|
-
Show your appreciation to those who have contributed to the project.
|
89
|
-
|
90
|
-
## License
|
91
|
-
For open source projects, say how it is licensed.
|
92
|
-
|
93
|
-
## Project status
|
94
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
1
|
+
# ReactComponentModule
|
2
|
+
|
3
|
+
React Component for ADOS
|
4
|
+
|
5
|
+
## Getting started
|
6
|
+
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
8
|
+
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
10
|
+
|
11
|
+
## Add your files
|
12
|
+
|
13
|
+
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
14
|
+
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
15
|
+
|
16
|
+
```
|
17
|
+
cd root
|
18
|
+
git remote add origin http://192.168.1.37/ados/rcm.git
|
19
|
+
git fetch
|
20
|
+
git add .
|
21
|
+
git commit -m 'comment'
|
22
|
+
git push
|
23
|
+
```
|
24
|
+
|
25
|
+
## Integrate with your tools
|
26
|
+
|
27
|
+
- [ ] [Set up project integrations](http://192.168.1.37/ados/arcm/-/settings/integrations)
|
28
|
+
|
29
|
+
## Collaborate with your team
|
30
|
+
|
31
|
+
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
32
|
+
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
33
|
+
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
34
|
+
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
35
|
+
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
36
|
+
|
37
|
+
## Test and Deploy
|
38
|
+
|
39
|
+
Use the built-in continuous integration in GitLab.
|
40
|
+
|
41
|
+
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
42
|
+
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
43
|
+
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
44
|
+
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
45
|
+
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
46
|
+
|
47
|
+
***
|
48
|
+
|
49
|
+
# Editing this README
|
50
|
+
|
51
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
52
|
+
|
53
|
+
## Suggestions for a good README
|
54
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
55
|
+
|
56
|
+
## Name
|
57
|
+
Choose a self-explaining name for your project.
|
58
|
+
|
59
|
+
## Description
|
60
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
61
|
+
|
62
|
+
## Badges
|
63
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
64
|
+
|
65
|
+
## Visuals
|
66
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
67
|
+
|
68
|
+
## Installation
|
69
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
70
|
+
|
71
|
+
## Usage
|
72
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
73
|
+
|
74
|
+
## Support
|
75
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
76
|
+
|
77
|
+
## Roadmap
|
78
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
79
|
+
|
80
|
+
## Contributing
|
81
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
82
|
+
|
83
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
84
|
+
|
85
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
86
|
+
|
87
|
+
## Authors and acknowledgment
|
88
|
+
Show your appreciation to those who have contributed to the project.
|
89
|
+
|
90
|
+
## License
|
91
|
+
For open source projects, say how it is licensed.
|
92
|
+
|
93
|
+
## Project status
|
94
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
@@ -56,12 +56,30 @@ export interface IAListViewDef<T extends IObject> {
|
|
56
56
|
* Description : content of AListView
|
57
57
|
*/
|
58
58
|
content?: TCanCallback<IAListViewContentProps<T>, React.ReactNode>;
|
59
|
+
/**
|
60
|
+
* height? : number | string
|
61
|
+
*
|
62
|
+
* Description : height of AListView
|
63
|
+
*/
|
64
|
+
height?: number | string;
|
59
65
|
/**
|
60
66
|
* label? : TCanCallback<IAListViewLabelProps<T>, React.ReactNode>
|
61
67
|
*
|
62
68
|
* Description : label of AListView
|
63
69
|
*/
|
64
70
|
label?: TCanCallback<IAListViewLabelProps<T>, React.ReactNode>;
|
71
|
+
/**
|
72
|
+
* maxHeight? : number | string
|
73
|
+
*
|
74
|
+
* Description : maxHeight of AListView
|
75
|
+
*/
|
76
|
+
maxHeight?: number | string;
|
77
|
+
/**
|
78
|
+
* minHeight? : number | string
|
79
|
+
*
|
80
|
+
* Description : minHeight of AListView
|
81
|
+
*/
|
82
|
+
minHeight?: number | string;
|
65
83
|
}
|
66
84
|
export type TAListViewDefs<T extends IObject> = {
|
67
85
|
[key in Exclude<keyof T, symbol>]?: IAListViewDef<T>;
|
package/dist/index.cjs.js
CHANGED
@@ -162,7 +162,7 @@ Error generating stack: `+y.message+`
|
|
162
162
|
|
163
163
|
${B["Invalid file(s)"]}: ${Ot}${Ct?`
|
164
164
|
|
165
|
-
`+Ct:""}`)}Xe.length>0&&j([...H||[],...Xe])}},[j,te,n,t,B,H,h]),Ie=S.useCallback(()=>{var Ye;return(Ye=se.current)==null?void 0:Ye.click()},[]),Te=S.useCallback(Ye=>{const Xe=Ye.target.files;Xe!=null&&Xe.length&&(Be(Xe),me())},[Be,me]),Pe=S.useCallback(Ye=>{if(a==null||a(Ye),!j||!H)return;const Xe=Fu.getFileKey(Ye),dt=H.filter(pt=>Fu.getFileKey(pt)!==Xe);j(dt),me()},[a,j,H,me]),Ve=S.useCallback(()=>{j&&(j([]),me())},[j,me]),Oe=S.useCallback(Ye=>{if(!o)return Promise.resolve();const Xe=Fu.getFileKey(Ye);return ie.current[Xe]==="Loading"?Promise.resolve():(ue(Xe,"Loading"),new Promise(dt=>{o(Ye,pt=>{ue(Xe,pt),dt()})}))},[o,ue]),Le=S.useCallback(async()=>{if(H!=null&&H.length){if(U){const Ye={...ie.current};H.forEach(Xe=>{Ye[Fu.getFileKey(Xe)]="Loading"}),ie.current=Ye,U(Ye)}if(w){w(H,Ye=>{if(U){const Xe={...ie.current,...Ye};ie.current=Xe,U(Xe)}});return}for(const Ye of H){if(!o)continue;const Xe=Fu.getFileKey(Ye);await new Promise(dt=>{o(Ye,pt=>{if(U){const je={...ie.current};je[Xe]=pt,ie.current=je,U(je)}dt()})})}}},[H,o,w,U]),Ne=S.useCallback(()=>{!(H!=null&&H.length)||!i||i(H)},[H,i]),Ce=S.useMemo(()=>{const Ye=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Ye(Xe),!G&&!m&&Q(!0)},onDragOver:Xe=>{Ye(Xe),!G&&!m&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var pt;Ye(Xe);const dt=(pt=oe.current)==null?void 0:pt.contains(Xe.relatedTarget);(!Xe.relatedTarget||!dt)&&Q(!1)},onDrop:Xe=>{var dt;Ye(Xe),Q(!1),!G&&!m&&((dt=Xe.dataTransfer.files)!=null&&dt.length)&&Be(Xe.dataTransfer.files)}}},[G,m,Be]),qe=S.useMemo(()=>{const Ye=Ke.clsx(En.ButtonRenderer,"NoSelect");return{upload:Xe=>C.jsx(ho,{className:Ye,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Pe(Xe)}),loading:()=>C.jsx(ho,{className:Ye,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Xe=>C.jsx(H6,{baseClass:Ye,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Xe,resources:B,onDownload:Oe}),download:Xe=>C.jsx(ho,{className:Ye,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Oe(Xe)}),view:()=>null}},[B,Pe,Oe]),nt=S.useCallback((Ye,Xe)=>{const dt=ke(Ye),pt=Fe(Ye),je=()=>c==="Upload"?qe.upload(Ye):c==="View"?qe.view():dt?qe.loading():pt?qe.error(Ye):qe.download(Ye);return C.jsx(_v,{ButtonRenderer:je,className:Ke.clsx(En.FileChip,pt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(kn,{className:En.FileNameContainer,children:[C.jsx(tl,{children:Ye.name,className:Ke.clsx(pt&&En.ErrorColor)}),C.jsx("span",{children:qu(Ye.size),className:En.FileSize})]})})},Xe)},[ke,Fe,c,qe]),st=S.useCallback(()=>C.jsx("div",{className:Ke.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,ye&&En.Disabled,V&&!(H!=null&&H.length)&&En.FileBoxFullSize),...Ce,ref:oe,children:V?C.jsxs(kn,{className:Ke.clsx("NoSelect"),style:{gap:4,display:H!=null&&H.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:B["Drop file to select"]})]}):C.jsxs(Go,{className:Ke.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||ye,type:"Raw",onClick:Ie,children:[B["Insert File"],h&&` ${(H==null?void 0:H.length)||0} / ${h}`]})}),[G,ye,V,H==null?void 0:H.length,Ce,B,m,Ie,h]),wt=S.useMemo(()=>{const Ye=c==="Upload",Xe=c==="View",dt=Ye?B["Delete All"]:B["Download All"],pt=Ye?Ve:Le,je=(H==null?void 0:H.some(et=>ke(et)))||!1;return C.jsxs(kn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(tl,{className:Ke.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ke.clsx(G&&En.ErrorColor),children:qu(xe)})," / ",qu(u),")"]}),!Xe&&C.jsx("span",{children:dt,className:Ke.clsx(En.LabelButton,"Label1",(re||je)&&En.Disabled,Ye&&En.Delete),onClick:!re&&!je?pt:void 0}),i&&C.jsx("span",{children:B["Download List"]||"Download List",className:Ke.clsx(En.LabelButton,"Label1",!(H!=null&&H.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:H!=null&&H.length?Ne:void 0})]})},[c,B,Ve,Le,H,I.label,G,xe,u,re,i,Ne,ke]);return c!=="Upload"&&!(H!=null&&H.length)?null:C.jsxs(Wc,{wrapId:A,wrapProps:k,labelProps:O,...I,label:wt,children:[C.jsx("input",{ref:se,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Te}),C.jsxs(Yr,{...F,className:Ke.clsx(En.AFileUploader,v),children:[C.jsxs(kn,{className:En.ChipsContainer,children:[c==="Upload"&&st(),H==null?void 0:H.map(nt)]}),c==="Upload"&&C.jsx(Yr,{className:Ke.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ce,abaseRef:oe,onClick:Ye=>Ye.preventDefault(),children:!(H!=null&&H.length)&&C.jsxs(kn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:B["Drop file to select"]})]})})]})]})},$6="_AFloatMenu_xco8u_1",q6="_Content_xco8u_10",T0={AFloatMenu:$6,Content:q6},mC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:u=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:U6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{Aw(P,O,u,o),v(P)},[u,o]),[T,_]=S.useState(!1),[A,k]=S.useState(!1),O=S.useRef(null),I=S.useCallback(P=>{k(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),F=S.useCallback(()=>{_(!1),k(!0),i==null||i()},[i]),B=S.useCallback(()=>k(!1),[]),H=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=O.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),F())},[F,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",H),0),()=>document.removeEventListener("mousedown",H)},[T,H]);const j=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),S.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return O.current&&P.observe(O.current),()=>P.disconnect()},[O,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:F})},[n,I,F]);const he=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!A?null:Ls.createPortal(C.jsx("div",{ref:O,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:B,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:ae,tooltipDirection:ie=Io.E,...se}=V;return ae?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),S.createElement(Yr,{...se,key:U,className:Ke.clsx(T0.Content,"Label2","IsClickable",se.className),tooltipDirection:ie,onClick:oe=>{var xe;he==null||he(P),(xe=se.onClick)==null||xe.call(se,oe)}},Q))})}),document.body)},U6=r=>r.defKey;function W6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const vC={parseInt:W6},V6=`${Number.MAX_SAFE_INTEGER}`.length-1,G6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:u,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):V6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const k=vC.parseInt(A);k!==void 0&&(n!==void 0&&k<n?g(`${n}`):o!==void 0&&k>o?g(`${o}`):g(`${k}`))}catch(k){console.error("ANumInput : ",k)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(A=>{var k;(k=w.current)==null||k.blur(),a==null||a(A)},[a]),_=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ke.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},Y6="_AListView_k7t2d_1",Z6="_Row_k7t2d_10",K6="_Label_k7t2d_20",X6="_Content_k7t2d_30",up={AListView:Y6,Row:Z6,Label:K6,Content:X6},J6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:u,middleBorder:h,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:v,contentClassName:w,labelStyle:T,contentStyle:_,...A}=r,k=a||c,O=k?"":p||"var(--AListView_border-thin)",I=k?"":m||"var(--AListView_border-thick)",F=a?"":h||"var(--AListView_border-thick)",B=S.useMemo(()=>({content:eI,label:Q6,...t}),[t]),H=S.useMemo(()=>{const j={};return ar.keys(e).forEach(G=>{const he=e[G],P={...B,...he};j[G]=P}),j},[B,e]);return C.jsx(Yr,{...A,className:Ke.clsx(up.AListView,A.className),style:{...g,borderTop:O},children:ar.map(H,([j],G)=>{const he={...B,...H[j]},P=Er.getContent(he.label,{defKey:j,item:n,def:he}),U=Er.getContent(he.content,{defKey:j,item:n||{[j]:""},def:he}),V=Er.getContent(he.bold||"label",{defKey:j,item:n,def:he});return C.jsxs("div",{className:up.Row,style:{height:o,minHeight:o,maxHeight:o,borderBottom:O,marginTop:G===0?0:typeof u=="number"?`${u}px`:u},children:[C.jsx("div",{className:Ke.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",v),style:{width:i,minWidth:i,maxWidth:i,borderLeft:I,paddingLeft:k?0:10,...T},children:C.jsx(tl,{children:P})}),C.jsx("div",{className:Ke.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:I,..._},children:C.jsx(tl,{style:{width:"100%",padding:k?0:10},children:U})})]},j)})})},Q6=r=>r.defKey,eI=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},tI="_ALoadingBorder_kwc1g_1",rI="_ProgressBar_kwc1g_9",nI="_IsLoading_kwc1g_15",oI="_Cover_kwc1g_19",Zf={ALoadingBorder:tI,ProgressBar:rI,IsLoading:nI,Cover:oI},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ke.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ke.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},iI="_Container_ez8dc_1",sI="_Option_ez8dc_7",aI="_RadioButton_ez8dc_14",lI="_InnerCircle_ez8dc_24",cI="_isChecked_ez8dc_29",Yd={Container:iI,Option:sI,RadioButton:aI,InnerCircle:lI,isChecked:cI},uI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=yC}=r,[c,u]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:u==null?void 0:u(h);return C.jsxs(kn,{className:Ke.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(dI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},yC=({option:r})=>r,dI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Yr,{className:Ke.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Yr,{className:Ke.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),fI="_AMultiSelect_19uuu_1",hI="_Arrow_19uuu_15",pI="_Primary_19uuu_24",gI="_UnAvailable_19uuu_35",mI="_IsOpen_19uuu_35",vI="_Secondary_19uuu_42",yI="_Placeholder_19uuu_58",bI="_ValuesContainer_19uuu_63",xI="_Values_19uuu_63",wI="_Options_19uuu_82",CI="_Option_19uuu_82",SI="_Selected_19uuu_124",_I="_CheckBox_19uuu_131",Mi={AMultiSelect:fI,Arrow:hI,Primary:pI,UnAvailable:gI,IsOpen:mI,Secondary:vI,Placeholder:yI,ValuesContainer:bI,Values:xI,Options:wI,Option:CI,Selected:SI,CheckBox:_I},AI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=TI,OptionRenderer:c=kI,minShowRows:u=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,[]),[k,O]=S.useState(void 0),I=S.useRef(e),F=S.useRef(null),[B,H]=S.useState(!1),[j,G]=S.useState(!1),he=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>H(!0),0),setTimeout(()=>fm(T,w,e,u,h),0))},[w,g.isDisabled,g.isLoading,e,u,h]),U=S.useCallback(()=>{H(!1),G(!0),i==null||i()},[i]),V=S.useCallback(te=>{var ue;B?U():P(),setTimeout(()=>fm(T,w,e,u,h),0),(ue=g.onClick)==null||ue.call(g,te)},[w,g,e,B,U,P,u,h]),Q=S.useCallback(()=>{fm(T,w,e,u,h)},[w,e,u,h]);S.useEffect(()=>{if(!B||!w.current)return;const te=w.current;let ue=te.parentElement;for(;ue;)ue.addEventListener("scroll",Q),ue=ue.parentElement;return()=>{let ge=te.parentElement;for(;ge;)ge.removeEventListener("scroll",Q),ge=ge.parentElement}},[w,B,Q]),S.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const ae=S.useCallback(te=>{te[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!B)return;const te=new IntersectionObserver(ae,{threshold:0});return w.current&&te.observe(w.current),()=>te.disconnect()},[w,B,ae]);const ie=S.useCallback(te=>{const ue=te.target,ge=w.current,ke=T.current;!ge||!ue||!ke||!ge.contains(ue)&&!ke.contains(ue)&&U()},[w,U]),se=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",ie),0),()=>document.removeEventListener("mousedown",ie)},[B,ie]);const oe=S.useCallback((te,ue)=>{te.stopPropagation(),te.preventDefault();let ge=[..._];ge.includes(ue)?ge=ge.filter(ke=>ke!==ue):ge.push(ue),A==null||A(ge)},[_,A]),xe=S.useCallback(()=>{if(!m||!w.current)return;const te=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ue=>c({option:ue}),type:n,isMulti:!0});O(te)},[m,w,e,_,o,c,n]);return S.useEffect(()=>m?((e!==I.current||k===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{xe(),F.current=null,I.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,xe,k]),S.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ke.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,se&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:k?`${k}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ke.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),C.jsx("div",{...p,className:Ke.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ke.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:k?`${k}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:he,children:e.map((te,ue)=>{var ke;const ge=_.includes(te);return C.jsxs("div",{className:Ke.clsx(Mi.Option,ge&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(ke=w.current)==null?void 0:ke.getBoundingClientRect().height},onClick:Fe=>oe(Fe,te),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+ge,void 0]}),C.jsx(c,{option:te})]},ue)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=EI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function EI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const TI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},kI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},RI="_Container_10ion_1",II="_Steps_10ion_9",MI="_Step_10ion_9",LI="_OutCircle_10ion_26",DI="_IsOver_10ion_37",OI="_InCircle_10ion_41",NI="_Line_10ion_54",PI="_Left_10ion_66",BI="_Right_10ion_69",FI="_ContentContainer_10ion_73",jI="_Content_10ion_73",fi={Container:RI,Steps:II,Step:MI,OutCircle:LI,IsOver:DI,InCircle:OI,Line:NI,Left:PI,Right:BI,ContentContainer:FI,Content:jI},HI=r=>{const{useSelect:e,steps:t,StepRenderer:n=k0,ContentRenderer:o=k0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),u=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&u(t[0])},[h,t,u]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ke.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>u(p),children:C.jsx("div",{className:Ke.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},k0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},zI="_ATab_1nkf2_1",$I="_Addon_1nkf2_9",qI="_Option_1nkf2_14",UI="_Underline_1nkf2_26",WI="_IsSelected_1nkf2_26",VI="_IndicatorTrack_1nkf2_37",GI="_Indicator_1nkf2_37",YI="_Primary_1nkf2_54",ZI="_Secondary_1nkf2_57",KI="_IsDisabled_1nkf2_63",XI="_Tertiary_1nkf2_77",JI="_Quaternary_1nkf2_101",Va={ATab:zI,Addon:$I,Option:qI,Underline:UI,IsSelected:WI,IndicatorTrack:VI,Indicator:GI,Primary:YI,Secondary:ZI,IsDisabled:KI,Tertiary:XI,Quaternary:JI},QI=["Primary","Secondary","Tertiary","Quaternary"],bC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:u=e8,RightAddon:h,LeftAddon:p,color:m,selectedColor:g,underline:v,indicatorProps:w,indicatorTrackProps:T,height:_=40}=r;if(e.length===0)throw new Error("options should have at least one element");const A=S.useMemo(()=>e.findIndex(ye=>!(n!=null&&n(ye))),[e,n]),k=o==="Tertiary",O=o==="Secondary",I=k?_*.1:0,F=O?8:0,B=S.useMemo(()=>I+F,[I,F]),H=S.useMemo(()=>(F-I)/e.length,[e.length,I,F]),[j,G]=wn(t,e[A]),he=S.useRef([]),P=S.useCallback(ye=>G==null?void 0:G(ye),[G]),U=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),V=S.useMemo(()=>e.indexOf(j),[e,j]),Q=S.useMemo(()=>`calc(${100/e.length}% + ${H}px)`,[e.length,H]),ae=S.useMemo(()=>U||`calc(${Q} - ${B}px)`,[Q,B,U]),[ie,se]=S.useState(0),[oe,xe]=S.useState(0),[te,ue]=S.useState(ae),ge=S.useRef(null),ke=S.useRef(null),Fe=_w(ke,ge),re=S.useMemo(()=>{let ye;switch(U){case void 0:ye=`calc(${Q} * ${V})`;break;case"fit-content":ye=`calc(${ie}px)`;break;default:ye=`calc((${U} + ${B}px) * ${V})`;break}return ye},[U,Q,V,ie,B]),me=S.useMemo(()=>{switch(U){case void 0:return;case"fit-content":return`calc(${oe}px)`;default:return`calc((${U} + ${B}px - ${H}px) * ${e.length})`}},[U,H,B,e,oe]);return S.useEffect(()=>{var Be,Ie;if(e.includes(j)||G==null||G(e[A]),U!=="fit-content"){ue(ae);return}let ye=0;he.current.forEach((Te,Pe)=>{Pe<V&&Te.current&&(ye+=Te.current.offsetWidth+B)}),se(ye),ue(`calc(${((Ie=(Be=he.current[V])==null?void 0:Be.current)==null?void 0:Ie.offsetWidth)||0}px)`),xe(he.current.reduce((Te,Pe)=>{var Ve;return Te+((((Ve=Pe.current)==null?void 0:Ve.offsetWidth)||0)+B-H)},0))},[U,he,e,j,G,A,H,B,V,ae]),C.jsxs("div",{ref:ge,...i,className:Ke.clsx(Va.ATab,"Headline2",Va[o],i==null?void 0:i.className),style:{minHeight:_,height:_,maxHeight:_},children:[p&&C.jsx("div",{ref:ke,className:Va.Addon,children:p}),C.jsx("div",{...w,className:Ke.clsx(Va.Indicator,w==null?void 0:w.className),style:{minWidth:te,left:re,marginLeft:I,transform:`translate(${Fe??0}px, ${k?"-50%":"0"})`,height:k?_-I*2:void 0,...w==null?void 0:w.style}}),C.jsx("div",{...T,className:Ke.clsx(Va.IndicatorTrack,T==null?void 0:T.className),style:{width:me,marginLeft:k?Fe:0,height:_,...T==null?void 0:T.style}}),e.map((ye,Be)=>{const Ie=n==null?void 0:n(ye);return he.current[Be]||(he.current[Be]=S.createRef()),C.jsx(Yr,{abaseRef:he.current[Be],...a,isDisabled:Ie,className:Ke.clsx(Va.Option,Ie&&Va.IsDiabled,ye===j&&Va.IsSelected,"IsClickable",v&&Va.Underline,a==null?void 0:a.className),style:{minWidth:ae,maxWidth:ae,marginLeft:I,marginRight:F,"--color":ye===j&&g||m,height:_,...a==null?void 0:a.style},onClick:Te=>{!Ie&&P(ye),a&&a.onClick&&a.onClick(Te)},children:C.jsx(u,{option:ye})},Be)}),C.jsx(Hn,{w:I}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Xu,{}),C.jsx("div",{className:Va.Addon,children:h})]})]})},e8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function xC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const wC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return u.toString().toLowerCase().includes(o.toLowerCase());const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return o.toString().toLowerCase()===u.toString().toLowerCase();const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=er.toDate(u.toString());return p&&er.eq(p,o)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=er.toDate(h.toString());return p&&er.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=er.toDate(u.toString());return p&&er.be(o.sDate,p,o.eDate)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=er.toDate(h.toString());return p&&er.be(o.sDate,p,o.eDate)}return!1}},t8=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var u;return(u=a.predicate??wC[a.type])==null?void 0:u(c,e,i,a)}))}),n},r8=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const u=Er.getContent(o.content,{defKey:n,def:o,item:a}),h=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof u=="string"&&typeof h=="string"?u<h?-1:u>h?1:0:typeof u=="number"&&typeof h=="number"?u-h:typeof u=="string"&&typeof h=="number"?-1:typeof u=="number"&&typeof h=="string"||u===void 0&&h!==void 0?1:u!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const u=i(a,c);return t.isAsc?u:-u})},n8=(r,e,t)=>r.slice((e-1)*t,e*t),CC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},o8=(r,e,t,n)=>{const o=CC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,u=o.slice(a-1,c);return{pages:o,rangedPages:u}},i8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Er.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Er.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const k=g[T];typeof k=="string"?v.push(k):typeof k=="number"?v.push(k.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,u="\uFEFF"+n.join(`
|
165
|
+
`+Ct:""}`)}Xe.length>0&&j([...H||[],...Xe])}},[j,te,n,t,B,H,h]),Ie=S.useCallback(()=>{var Ye;return(Ye=se.current)==null?void 0:Ye.click()},[]),Te=S.useCallback(Ye=>{const Xe=Ye.target.files;Xe!=null&&Xe.length&&(Be(Xe),me())},[Be,me]),Pe=S.useCallback(Ye=>{if(a==null||a(Ye),!j||!H)return;const Xe=Fu.getFileKey(Ye),dt=H.filter(pt=>Fu.getFileKey(pt)!==Xe);j(dt),me()},[a,j,H,me]),Ve=S.useCallback(()=>{j&&(j([]),me())},[j,me]),Oe=S.useCallback(Ye=>{if(!o)return Promise.resolve();const Xe=Fu.getFileKey(Ye);return ie.current[Xe]==="Loading"?Promise.resolve():(ue(Xe,"Loading"),new Promise(dt=>{o(Ye,pt=>{ue(Xe,pt),dt()})}))},[o,ue]),Le=S.useCallback(async()=>{if(H!=null&&H.length){if(U){const Ye={...ie.current};H.forEach(Xe=>{Ye[Fu.getFileKey(Xe)]="Loading"}),ie.current=Ye,U(Ye)}if(w){w(H,Ye=>{if(U){const Xe={...ie.current,...Ye};ie.current=Xe,U(Xe)}});return}for(const Ye of H){if(!o)continue;const Xe=Fu.getFileKey(Ye);await new Promise(dt=>{o(Ye,pt=>{if(U){const je={...ie.current};je[Xe]=pt,ie.current=je,U(je)}dt()})})}}},[H,o,w,U]),Ne=S.useCallback(()=>{!(H!=null&&H.length)||!i||i(H)},[H,i]),Ce=S.useMemo(()=>{const Ye=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Ye(Xe),!G&&!m&&Q(!0)},onDragOver:Xe=>{Ye(Xe),!G&&!m&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var pt;Ye(Xe);const dt=(pt=oe.current)==null?void 0:pt.contains(Xe.relatedTarget);(!Xe.relatedTarget||!dt)&&Q(!1)},onDrop:Xe=>{var dt;Ye(Xe),Q(!1),!G&&!m&&((dt=Xe.dataTransfer.files)!=null&&dt.length)&&Be(Xe.dataTransfer.files)}}},[G,m,Be]),qe=S.useMemo(()=>{const Ye=Ke.clsx(En.ButtonRenderer,"NoSelect");return{upload:Xe=>C.jsx(ho,{className:Ye,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Pe(Xe)}),loading:()=>C.jsx(ho,{className:Ye,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Xe=>C.jsx(H6,{baseClass:Ye,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Xe,resources:B,onDownload:Oe}),download:Xe=>C.jsx(ho,{className:Ye,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Oe(Xe)}),view:()=>null}},[B,Pe,Oe]),nt=S.useCallback((Ye,Xe)=>{const dt=ke(Ye),pt=Fe(Ye),je=()=>c==="Upload"?qe.upload(Ye):c==="View"?qe.view():dt?qe.loading():pt?qe.error(Ye):qe.download(Ye);return C.jsx(_v,{ButtonRenderer:je,className:Ke.clsx(En.FileChip,pt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(kn,{className:En.FileNameContainer,children:[C.jsx(tl,{children:Ye.name,className:Ke.clsx(pt&&En.ErrorColor)}),C.jsx("span",{children:qu(Ye.size),className:En.FileSize})]})})},Xe)},[ke,Fe,c,qe]),st=S.useCallback(()=>C.jsx("div",{className:Ke.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,ye&&En.Disabled,V&&!(H!=null&&H.length)&&En.FileBoxFullSize),...Ce,ref:oe,children:V?C.jsxs(kn,{className:Ke.clsx("NoSelect"),style:{gap:4,display:H!=null&&H.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:B["Drop file to select"]})]}):C.jsxs(Go,{className:Ke.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||ye,type:"Raw",onClick:Ie,children:[B["Insert File"],h&&` ${(H==null?void 0:H.length)||0} / ${h}`]})}),[G,ye,V,H==null?void 0:H.length,Ce,B,m,Ie,h]),wt=S.useMemo(()=>{const Ye=c==="Upload",Xe=c==="View",dt=Ye?B["Delete All"]:B["Download All"],pt=Ye?Ve:Le,je=(H==null?void 0:H.some(et=>ke(et)))||!1;return C.jsxs(kn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(tl,{className:Ke.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ke.clsx(G&&En.ErrorColor),children:qu(xe)})," / ",qu(u),")"]}),!Xe&&C.jsx("span",{children:dt,className:Ke.clsx(En.LabelButton,"Label1",(re||je)&&En.Disabled,Ye&&En.Delete),onClick:!re&&!je?pt:void 0}),i&&C.jsx("span",{children:B["Download List"]||"Download List",className:Ke.clsx(En.LabelButton,"Label1",!(H!=null&&H.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:H!=null&&H.length?Ne:void 0})]})},[c,B,Ve,Le,H,I.label,G,xe,u,re,i,Ne,ke]);return c!=="Upload"&&!(H!=null&&H.length)?null:C.jsxs(Wc,{wrapId:A,wrapProps:k,labelProps:O,...I,label:wt,children:[C.jsx("input",{ref:se,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Te}),C.jsxs(Yr,{...F,className:Ke.clsx(En.AFileUploader,v),children:[C.jsxs(kn,{className:En.ChipsContainer,children:[c==="Upload"&&st(),H==null?void 0:H.map(nt)]}),c==="Upload"&&C.jsx(Yr,{className:Ke.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ce,abaseRef:oe,onClick:Ye=>Ye.preventDefault(),children:!(H!=null&&H.length)&&C.jsxs(kn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:B["Drop file to select"]})]})})]})]})},$6="_AFloatMenu_xco8u_1",q6="_Content_xco8u_10",T0={AFloatMenu:$6,Content:q6},mC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:u=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:U6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{Aw(P,O,u,o),v(P)},[u,o]),[T,_]=S.useState(!1),[A,k]=S.useState(!1),O=S.useRef(null),I=S.useCallback(P=>{k(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),F=S.useCallback(()=>{_(!1),k(!0),i==null||i()},[i]),B=S.useCallback(()=>k(!1),[]),H=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=O.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),F())},[F,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",H),0),()=>document.removeEventListener("mousedown",H)},[T,H]);const j=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),S.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return O.current&&P.observe(O.current),()=>P.disconnect()},[O,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:F})},[n,I,F]);const he=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!A?null:Ls.createPortal(C.jsx("div",{ref:O,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:B,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:ae,tooltipDirection:ie=Io.E,...se}=V;return ae?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),S.createElement(Yr,{...se,key:U,className:Ke.clsx(T0.Content,"Label2","IsClickable",se.className),tooltipDirection:ie,onClick:oe=>{var xe;he==null||he(P),(xe=se.onClick)==null||xe.call(se,oe)}},Q))})}),document.body)},U6=r=>r.defKey;function W6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const vC={parseInt:W6},V6=`${Number.MAX_SAFE_INTEGER}`.length-1,G6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:u,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):V6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const k=vC.parseInt(A);k!==void 0&&(n!==void 0&&k<n?g(`${n}`):o!==void 0&&k>o?g(`${o}`):g(`${k}`))}catch(k){console.error("ANumInput : ",k)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(A=>{var k;(k=w.current)==null||k.blur(),a==null||a(A)},[a]),_=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ke.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},Y6="_AListView_k7t2d_1",Z6="_Row_k7t2d_10",K6="_Label_k7t2d_20",X6="_Content_k7t2d_30",up={AListView:Y6,Row:Z6,Label:K6,Content:X6},J6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:u,middleBorder:h,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:v,contentClassName:w,labelStyle:T,contentStyle:_,...A}=r,k=a||c,O=k?"":p||"var(--AListView_border-thin)",I=k?"":m||"var(--AListView_border-thick)",F=a?"":h||"var(--AListView_border-thick)",B=S.useMemo(()=>({content:eI,label:Q6,...t}),[t]),H=S.useMemo(()=>{const j={};return ar.keys(e).forEach(G=>{const he=e[G],P={...B,...he};j[G]=P}),j},[B,e]);return C.jsx(Yr,{...A,className:Ke.clsx(up.AListView,A.className),style:{...g,borderTop:O},children:ar.map(H,([j],G)=>{const he={...B,...H[j]},P=Er.getContent(he.label,{defKey:j,item:n,def:he}),U=Er.getContent(he.content,{defKey:j,item:n||{[j]:""},def:he}),V=Er.getContent(he.bold||"label",{defKey:j,item:n,def:he});return C.jsxs("div",{className:up.Row,style:{height:he.height??o,minHeight:he.minHeight??o,maxHeight:he.maxHeight??o,borderBottom:O,marginTop:G===0?0:typeof u=="number"?`${u}px`:u},children:[C.jsx("div",{className:Ke.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",v),style:{width:i,minWidth:i,maxWidth:i,borderLeft:I,paddingLeft:k?0:10,...T},children:C.jsx(tl,{children:P})}),C.jsx("div",{className:Ke.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:I,..._},children:C.jsx(tl,{style:{width:"100%",padding:k?0:10},children:U})})]},j)})})},Q6=r=>r.defKey,eI=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},tI="_ALoadingBorder_kwc1g_1",rI="_ProgressBar_kwc1g_9",nI="_IsLoading_kwc1g_15",oI="_Cover_kwc1g_19",Zf={ALoadingBorder:tI,ProgressBar:rI,IsLoading:nI,Cover:oI},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ke.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ke.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},iI="_Container_ez8dc_1",sI="_Option_ez8dc_7",aI="_RadioButton_ez8dc_14",lI="_InnerCircle_ez8dc_24",cI="_isChecked_ez8dc_29",Yd={Container:iI,Option:sI,RadioButton:aI,InnerCircle:lI,isChecked:cI},uI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=yC}=r,[c,u]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:u==null?void 0:u(h);return C.jsxs(kn,{className:Ke.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(dI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},yC=({option:r})=>r,dI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Yr,{className:Ke.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Yr,{className:Ke.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),fI="_AMultiSelect_19uuu_1",hI="_Arrow_19uuu_15",pI="_Primary_19uuu_24",gI="_UnAvailable_19uuu_35",mI="_IsOpen_19uuu_35",vI="_Secondary_19uuu_42",yI="_Placeholder_19uuu_58",bI="_ValuesContainer_19uuu_63",xI="_Values_19uuu_63",wI="_Options_19uuu_82",CI="_Option_19uuu_82",SI="_Selected_19uuu_124",_I="_CheckBox_19uuu_131",Mi={AMultiSelect:fI,Arrow:hI,Primary:pI,UnAvailable:gI,IsOpen:mI,Secondary:vI,Placeholder:yI,ValuesContainer:bI,Values:xI,Options:wI,Option:CI,Selected:SI,CheckBox:_I},AI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=TI,OptionRenderer:c=kI,minShowRows:u=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,[]),[k,O]=S.useState(void 0),I=S.useRef(e),F=S.useRef(null),[B,H]=S.useState(!1),[j,G]=S.useState(!1),he=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>H(!0),0),setTimeout(()=>fm(T,w,e,u,h),0))},[w,g.isDisabled,g.isLoading,e,u,h]),U=S.useCallback(()=>{H(!1),G(!0),i==null||i()},[i]),V=S.useCallback(te=>{var ue;B?U():P(),setTimeout(()=>fm(T,w,e,u,h),0),(ue=g.onClick)==null||ue.call(g,te)},[w,g,e,B,U,P,u,h]),Q=S.useCallback(()=>{fm(T,w,e,u,h)},[w,e,u,h]);S.useEffect(()=>{if(!B||!w.current)return;const te=w.current;let ue=te.parentElement;for(;ue;)ue.addEventListener("scroll",Q),ue=ue.parentElement;return()=>{let ge=te.parentElement;for(;ge;)ge.removeEventListener("scroll",Q),ge=ge.parentElement}},[w,B,Q]),S.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const ae=S.useCallback(te=>{te[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!B)return;const te=new IntersectionObserver(ae,{threshold:0});return w.current&&te.observe(w.current),()=>te.disconnect()},[w,B,ae]);const ie=S.useCallback(te=>{const ue=te.target,ge=w.current,ke=T.current;!ge||!ue||!ke||!ge.contains(ue)&&!ke.contains(ue)&&U()},[w,U]),se=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",ie),0),()=>document.removeEventListener("mousedown",ie)},[B,ie]);const oe=S.useCallback((te,ue)=>{te.stopPropagation(),te.preventDefault();let ge=[..._];ge.includes(ue)?ge=ge.filter(ke=>ke!==ue):ge.push(ue),A==null||A(ge)},[_,A]),xe=S.useCallback(()=>{if(!m||!w.current)return;const te=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ue=>c({option:ue}),type:n,isMulti:!0});O(te)},[m,w,e,_,o,c,n]);return S.useEffect(()=>m?((e!==I.current||k===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{xe(),F.current=null,I.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,xe,k]),S.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ke.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,se&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:k?`${k}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ke.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),C.jsx("div",{...p,className:Ke.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ke.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:k?`${k}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:he,children:e.map((te,ue)=>{var ke;const ge=_.includes(te);return C.jsxs("div",{className:Ke.clsx(Mi.Option,ge&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(ke=w.current)==null?void 0:ke.getBoundingClientRect().height},onClick:Fe=>oe(Fe,te),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+ge,void 0]}),C.jsx(c,{option:te})]},ue)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=EI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function EI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const TI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},kI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},RI="_Container_10ion_1",II="_Steps_10ion_9",MI="_Step_10ion_9",LI="_OutCircle_10ion_26",DI="_IsOver_10ion_37",OI="_InCircle_10ion_41",NI="_Line_10ion_54",PI="_Left_10ion_66",BI="_Right_10ion_69",FI="_ContentContainer_10ion_73",jI="_Content_10ion_73",fi={Container:RI,Steps:II,Step:MI,OutCircle:LI,IsOver:DI,InCircle:OI,Line:NI,Left:PI,Right:BI,ContentContainer:FI,Content:jI},HI=r=>{const{useSelect:e,steps:t,StepRenderer:n=k0,ContentRenderer:o=k0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),u=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&u(t[0])},[h,t,u]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ke.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>u(p),children:C.jsx("div",{className:Ke.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},k0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},zI="_ATab_1nkf2_1",$I="_Addon_1nkf2_9",qI="_Option_1nkf2_14",UI="_Underline_1nkf2_26",WI="_IsSelected_1nkf2_26",VI="_IndicatorTrack_1nkf2_37",GI="_Indicator_1nkf2_37",YI="_Primary_1nkf2_54",ZI="_Secondary_1nkf2_57",KI="_IsDisabled_1nkf2_63",XI="_Tertiary_1nkf2_77",JI="_Quaternary_1nkf2_101",Va={ATab:zI,Addon:$I,Option:qI,Underline:UI,IsSelected:WI,IndicatorTrack:VI,Indicator:GI,Primary:YI,Secondary:ZI,IsDisabled:KI,Tertiary:XI,Quaternary:JI},QI=["Primary","Secondary","Tertiary","Quaternary"],bC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:u=e8,RightAddon:h,LeftAddon:p,color:m,selectedColor:g,underline:v,indicatorProps:w,indicatorTrackProps:T,height:_=40}=r;if(e.length===0)throw new Error("options should have at least one element");const A=S.useMemo(()=>e.findIndex(ye=>!(n!=null&&n(ye))),[e,n]),k=o==="Tertiary",O=o==="Secondary",I=k?_*.1:0,F=O?8:0,B=S.useMemo(()=>I+F,[I,F]),H=S.useMemo(()=>(F-I)/e.length,[e.length,I,F]),[j,G]=wn(t,e[A]),he=S.useRef([]),P=S.useCallback(ye=>G==null?void 0:G(ye),[G]),U=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),V=S.useMemo(()=>e.indexOf(j),[e,j]),Q=S.useMemo(()=>`calc(${100/e.length}% + ${H}px)`,[e.length,H]),ae=S.useMemo(()=>U||`calc(${Q} - ${B}px)`,[Q,B,U]),[ie,se]=S.useState(0),[oe,xe]=S.useState(0),[te,ue]=S.useState(ae),ge=S.useRef(null),ke=S.useRef(null),Fe=_w(ke,ge),re=S.useMemo(()=>{let ye;switch(U){case void 0:ye=`calc(${Q} * ${V})`;break;case"fit-content":ye=`calc(${ie}px)`;break;default:ye=`calc((${U} + ${B}px) * ${V})`;break}return ye},[U,Q,V,ie,B]),me=S.useMemo(()=>{switch(U){case void 0:return;case"fit-content":return`calc(${oe}px)`;default:return`calc((${U} + ${B}px - ${H}px) * ${e.length})`}},[U,H,B,e,oe]);return S.useEffect(()=>{var Be,Ie;if(e.includes(j)||G==null||G(e[A]),U!=="fit-content"){ue(ae);return}let ye=0;he.current.forEach((Te,Pe)=>{Pe<V&&Te.current&&(ye+=Te.current.offsetWidth+B)}),se(ye),ue(`calc(${((Ie=(Be=he.current[V])==null?void 0:Be.current)==null?void 0:Ie.offsetWidth)||0}px)`),xe(he.current.reduce((Te,Pe)=>{var Ve;return Te+((((Ve=Pe.current)==null?void 0:Ve.offsetWidth)||0)+B-H)},0))},[U,he,e,j,G,A,H,B,V,ae]),C.jsxs("div",{ref:ge,...i,className:Ke.clsx(Va.ATab,"Headline2",Va[o],i==null?void 0:i.className),style:{minHeight:_,height:_,maxHeight:_},children:[p&&C.jsx("div",{ref:ke,className:Va.Addon,children:p}),C.jsx("div",{...w,className:Ke.clsx(Va.Indicator,w==null?void 0:w.className),style:{minWidth:te,left:re,marginLeft:I,transform:`translate(${Fe??0}px, ${k?"-50%":"0"})`,height:k?_-I*2:void 0,...w==null?void 0:w.style}}),C.jsx("div",{...T,className:Ke.clsx(Va.IndicatorTrack,T==null?void 0:T.className),style:{width:me,marginLeft:k?Fe:0,height:_,...T==null?void 0:T.style}}),e.map((ye,Be)=>{const Ie=n==null?void 0:n(ye);return he.current[Be]||(he.current[Be]=S.createRef()),C.jsx(Yr,{abaseRef:he.current[Be],...a,isDisabled:Ie,className:Ke.clsx(Va.Option,Ie&&Va.IsDiabled,ye===j&&Va.IsSelected,"IsClickable",v&&Va.Underline,a==null?void 0:a.className),style:{minWidth:ae,maxWidth:ae,marginLeft:I,marginRight:F,"--color":ye===j&&g||m,height:_,...a==null?void 0:a.style},onClick:Te=>{!Ie&&P(ye),a&&a.onClick&&a.onClick(Te)},children:C.jsx(u,{option:ye})},Be)}),C.jsx(Hn,{w:I}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Xu,{}),C.jsx("div",{className:Va.Addon,children:h})]})]})},e8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function xC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const wC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return u.toString().toLowerCase().includes(o.toLowerCase());const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return o.toString().toLowerCase()===u.toString().toLowerCase();const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=er.toDate(u.toString());return p&&er.eq(p,o)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=er.toDate(h.toString());return p&&er.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=er.toDate(u.toString());return p&&er.be(o.sDate,p,o.eDate)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=er.toDate(h.toString());return p&&er.be(o.sDate,p,o.eDate)}return!1}},t8=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var u;return(u=a.predicate??wC[a.type])==null?void 0:u(c,e,i,a)}))}),n},r8=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const u=Er.getContent(o.content,{defKey:n,def:o,item:a}),h=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof u=="string"&&typeof h=="string"?u<h?-1:u>h?1:0:typeof u=="number"&&typeof h=="number"?u-h:typeof u=="string"&&typeof h=="number"?-1:typeof u=="number"&&typeof h=="string"||u===void 0&&h!==void 0?1:u!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const u=i(a,c);return t.isAsc?u:-u})},n8=(r,e,t)=>r.slice((e-1)*t,e*t),CC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},o8=(r,e,t,n)=>{const o=CC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,u=o.slice(a-1,c);return{pages:o,rangedPages:u}},i8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Er.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Er.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const k=g[T];typeof k=="string"?v.push(k):typeof k=="number"?v.push(k.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,u="\uFEFF"+n.join(`
|
166
166
|
`),h=new Blob([u],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(h),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},s8=r=>{const e=ar.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},a8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},l8=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Bl={applyFilteration:t8,applySortation:r8,applyPagination:n8,getPages:CC,getRangedPages:o8,downloadCsv:i8,getSingleFilterValue:s8,getMultiFilterValues:a8,getSelectFilterValue:l8},c8="_ATable_12zow_1",u8={ATable:c8};function SC(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const d8="_BodyHeader_ys4y0_1",f8="_TRow_ys4y0_7",h8="_OverflowSpace_ys4y0_11",p8="_BodyBody_ys4y0_16",g8="_IsSelected_ys4y0_35",m8="_IsSelectable_ys4y0_39",v8="_IsRowMarked_ys4y0_47",y8="_TH_ys4y0_52",b8="_TD_ys4y0_57",x8="_IsMarked_ys4y0_57",w8="_Resizer_ys4y0_76",C8="_IsMoving_ys4y0_88",S8="_IsResizable_ys4y0_91",_8="_ResizerCenter_ys4y0_94",A8="_ResizerOut_ys4y0_100",E8="_ResizerIn_ys4y0_104",T8="_IsClicked_ys4y0_139",k8="_NoItems_ys4y0_146",R8="_Content_ys4y0_152",Dn={BodyHeader:d8,TRow:f8,OverflowSpace:h8,BodyBody:p8,IsSelected:g8,IsSelectable:m8,IsRowMarked:v8,TH:y8,TD:b8,IsMarked:x8,Resizer:w8,IsMoving:C8,IsResizable:S8,ResizerCenter:_8,ResizerOut:A8,ResizerIn:E8,IsClicked:T8,NoItems:k8,Content:R8},Bc=25,hm=50,I8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:u,useSortation:h,pagination:p,pagedItems:m,noMarking:g,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=D8,isRowRendered:A,rowHeight:k,resources:O}=r,[I,F]=S.useMemo(()=>o??[],[o]),B=S.useCallback(Ce=>{i||!F||!I||c!=null&&c(Ce)||(a?I.some(qe=>t(qe,Ce))?F(I.filter(qe=>!t(qe,Ce))):F([...I,Ce]):F([Ce]))},[I,c,F,t,i,a]);S.useEffect(()=>{a||!I||!F||I.length>1&&F([I[I.length-1]])},[I,F,a]),S.useEffect(()=>{if(!I||!F)return;I.filter(qe=>c==null?void 0:c(qe)).length>0&&F(I.filter(qe=>!(c!=null&&c(qe))))},[I,F,c]);const[H,j]=h,G=S.useCallback((Ce,qe)=>{j&&((H==null?void 0:H.defKey)===Ce?H.isAsc===!0?j({defKey:Ce,isAsc:!1,sortF:qe}):H.isAsc===!1?j(void 0):j({defKey:Ce,isAsc:!0,sortF:qe}):j({defKey:Ce,isAsc:!0,sortF:qe}))},[H,j]),[he,P]=S.useState({elem:null,row:null}),U=S.useRef(null),V=S.useRef(null),Q=S.useCallback(()=>P({elem:U.current,row:V.current}),[]);S.useEffect(()=>Q(),[m.length,Q]),SC(window,"resize",Q);const[ae,ie]=S.useState(k);S.useEffect(()=>{const{row:Ce}=he;Ce!=null&&ie(Ce.clientHeight)},[he,ae]);const se=S.useMemo(()=>{const{elem:Ce}=he;return Ce?Math.floor(Ce.clientHeight/ae):0},[he,ae]),oe=S.useMemo(()=>T||(m.length<=se?se:m.length),[se,T,m]),xe=S.useMemo(()=>{if(T!==void 0)return T*ae},[T,ae]),te=S.useMemo(()=>xe,[xe]),ue=S.useMemo(()=>{const{elem:Ce}=he;return Ce?Ce.getBoundingClientRect().height/ae<m.length:!1},[he,ae,m.length]),[ge,ke]=S.useState(),Fe=S.useMemo(()=>{const{elem:Ce}=he;return!ge||!Ce?"100%":Ce.clientHeight+(A?0:50)},[ge,A,he]),re=S.useRef(null),[me,ye]=S.useState({}),Be=S.useRef({x:0,y:0}),Ie=S.useRef({}),Te=S.useMemo(()=>ar.keys(me),[me]),Pe=S.useCallback((Ce,qe)=>{const nt=re.current;if(!nt)return;const st=[];nt.childNodes.forEach(dt=>{dt.classList.contains(Dn.TH)&&st.push(dt)});const wt={};ar.keys(e).forEach((dt,pt)=>{const je=st[pt];if(!je)return;const et=je.getBoundingClientRect().width;wt[dt]=et}),Ie.current=wt,ke(qe),Be.current={x:Ce.clientX,y:Ce.clientY};const Ye=dt=>{if(!re.current)return;const je=dt.clientX-Be.current.x,et=L8(e,qe,Ie.current,je);ye(et)};document.addEventListener("mousemove",Ye);const Xe=()=>{ke(void 0),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Xe)};document.addEventListener("mouseup",Xe)},[e]),Ve=S.useCallback(()=>{ke(void 0),ye({})},[]),Oe=S.useMemo(()=>{if(Te.length===0){const nt={},st=ar.keys(e);for(let wt=0;wt<st.length;wt++){const Ye=st[wt],Xe=e[Ye],dt=Er.getContent(Xe.colSpan,{defKey:Ye,def:Xe}),pt=Xe.width??80,je=Xe.minWidth??Bc,et=Xe.maxWidth,Ct={width:pt,minWidth:je,maxWidth:et,flexGrow:dt??1};if(nt[Ye]=Ct,dt!==void 0){for(let Ot=1;Ot<Math.min(dt,st.length-wt);Ot++){const Et=e[st[wt+Ot]],Dt=Et.width??80,Vt=Et.minWidth??Bc,or=Et.maxWidth;Ct.width+=Dt,Ct.minWidth+=Vt,Ct.maxWidth!==void 0&&(or!==void 0?Ct.maxWidth+=or:Ct.maxWidth=void 0)}wt+=dt-1}}return nt}const Ce={},qe=ar.keys(e);for(let nt=0;nt<qe.length;nt++){let st=qe[nt];const wt=e[st];let Ye=me[st];const Xe=Er.getContent(wt.colSpan,{defKey:st,def:wt}),dt=wt.minWidth??Bc,pt=wt.maxWidth,je={width:Ye,minWidth:dt,maxWidth:pt,flexGrow:Xe??1};if(Ce[st]=je,Xe!==void 0){for(let et=1;et<Math.min(Xe,qe.length-nt);et++){const Ct=e[qe[nt+et]],Ot=me[qe[nt+et]],Et=Ct.minWidth??Bc,Dt=Ct.maxWidth;je.width+=Ot,je.minWidth+=Et,je.maxWidth!==void 0&&(Dt!==void 0?je.maxWidth+=Dt:je.maxWidth=void 0)}nt+=Xe-1}}return Ce},[e,Te,me]),Le=S.useRef(null),Ne=S.useMemo(()=>Bl.getSingleFilterValue(u),[u]);return S.useEffect(()=>{U.current&&U.current.scrollTo({top:0})},[p.page]),S.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),C.jsxs(C.Fragment,{children:[C.jsx(Iv,{isLoading:w}),C.jsx("div",{ref:Le,className:Ke.clsx(Dn.BodyHeader,ge!==void 0&&Dn.IsClicked),style:{display:v||A?"none":"flex"},children:C.jsx("div",{ref:re,className:Dn.TRow,style:{minHeight:hm,maxHeight:hm},children:ar.map(e,([Ce],qe)=>{const nt=e[Ce],st=Er.getContent(nt.hContent,{defKey:Ce,def:nt}),wt=nt.name,Ye=qe===ar.keys(e).length-1,Xe=nt.width??80,dt=nt.minWidth??Bc,pt=nt.maxWidth,je={width:Xe,minWidth:dt,maxWidth:pt,justifyContent:Er.getContent(nt.hAlign,{defKey:Ce,def:nt})??"flex-start",...Er.getContent(nt.hStyle,{defKey:Ce,def:nt})};Te.includes(Ce)&&(je.width=me[Ce]);const et=nt.isSortable,Ct=(H==null?void 0:H.defKey)===Ce,Ot=H==null?void 0:H.isAsc;return C.jsxs(S.Fragment,{children:[C.jsxs("div",{className:Ke.clsx(Dn.TH,"Label1",et?"IsClickable":"NoSelect"),style:je,onClick:()=>et&&G(Ce,nt.sortF),children:[C.jsx(tl,{children:st??wt,className:Dn.Content}),et&&C.jsx(en,{icon:Ct?Ot?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ye&&C.jsxs("div",{className:Ke.sclsx(Dn,"Resizer","IsResizable","NoSelect",ge!==void 0&&"IsMoving"),onDoubleClick:Ve,onMouseDown:Et=>Pe(Et,Ce),children:[C.jsx("div",{className:Dn.ResizerOut}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerCenter,style:{height:Fe}}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerOut})]}),Ye&&C.jsx(Hn,{className:Dn.OverflowSpace,h:hm,style:{color:je.color,backgroundColor:je.backgroundColor,transition:je.transition},w:"var(--Scrollbar-width)"})]},Ce)})})}),C.jsxs("div",{ref:U,className:Ke.clsx(Dn.BodyBody,ge!==void 0&&Dn.IsClicked),style:{overflowY:ue?"scroll":"hidden",minHeight:xe,maxHeight:te},children:[m.map((Ce,qe)=>{const nt=Er.getContent(n,{item:Ce}),st=F&&!i,wt=I==null?void 0:I.some(pt=>t(pt,Ce)),Ye=I&&(c==null?void 0:c(Ce)),Xe=typeof Ye=="string"?Ye:void 0,dt={...Ce};return A&&ar.keys(e).forEach(pt=>{const je=e[pt],et=Er.getContent(je.content,{defKey:pt,def:je,item:Ce});let Ct=!1;if(Ne&&!g){const Ot=Er.getContent(je.asText,{defKey:pt,def:je,item:Ce});Ot!==void 0?Ct=Ot.toString().toLowerCase().includes(Ne.toLowerCase()):["string","number"].includes(typeof et)&&et!==void 0&&et!==null&&(Ct=et.toString().toLowerCase().includes(Ne.toLowerCase()))}dt[pt]=C.jsx("span",{className:Ke.clsx(Ct&&Dn.IsRowMarked),children:dt[pt]})}),C.jsx(Yr,{isDisabled:Ye,tooltip:Xe,...nt,abaseRef:wt?V:void 0,className:Ke.clsx(nt==null?void 0:nt.className,st&&Dn.IsSelectable,wt&&Dn.IsSelected),onClick:pt=>{var je;B(Ce),(je=nt==null?void 0:nt.onClick)==null||je.call(nt,pt)},children:C.jsx(_,{defs:e,isBodyBodyOverflowed:ue,item:Ce,markedItem:dt,noMarking:g,rowHeight:k,singleFilterValue:Ne,spanWidths:Oe})},qe)}),C.jsx(M8,{isRowRendered:A,itemsLength:m.length,resources:O,rowHeight:ae,showRows:oe})]})]})},M8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,u)=>C.jsx("div",{className:Ke.clsx(Dn.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&u===Math.floor(e/2)&&C.jsx(kn,{className:Dn.NoItems,children:n["No Items"]})},u))};function L8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,u=i;if(n<0){for(;n<0&&!(c<0||u>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],v=p.minWidth??Bc,w=g.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let k=-n;k=Math.min(k,A),T-k<=v&&c--,w!==void 0&&_+k>=w&&u++,o[h]=T-k,o[m]=_+k,n+=k}return o}else if(n>0){for(;n>0&&!(c<0||u>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],v=g.minWidth??Bc,w=p.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let k=n;k=Math.min(k,A),T-k<=v&&u++,w!==void 0&&_+k>=w&&c--,o[m]=T-k,o[h]=_+k,n-=k}return o}return o}const D8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return C.jsx("div",{className:Ke.clsx(Dn.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([u],h)=>{const p=o[u];if(p===void 0)return null;const m=h===ar.keys(e).length-1,g=e[u],v=Er.getContent(g.content,{defKey:u,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Er.getContent(g.align,{defKey:u,def:g,item:t})??"flex-start",...Er.getContent(g.style,{defKey:u,def:g,item:t})};let T=!1;if(i&&!n){const _=Er.getContent(g.asText,{defKey:u,def:g,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return C.jsxs(S.Fragment,{children:[C.jsx("div",{className:Ke.clsx(Dn.TD,"Label1",T&&Dn.IsMarked),style:w,children:C.jsx(tl,{children:v,className:Dn.Content})}),!a&&m&&C.jsx(Hn,{className:Dn.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},u)})})},O8="_ATableFooter_w090q_1",N8="_Button_w090q_10",P8="_IsSelected_w090q_26",B8="_IsDisabled_w090q_31",oa={ATableFooter:O8,Button:N8,IsSelected:P8,IsDisabled:B8},F8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=S.useMemo(()=>e[e.length-1],[e]);return C.jsxs(kn,{className:oa.ATableFooter,children:[C.jsx(en,{className:Ke.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>C.jsx("div",{className:Ke.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},j8="_Filter_1b9j0_1",H8="_SelectFilter_1b9j0_11",z8="_MainFilter_1b9j0_15",$8="_IsOpen_1b9j0_26",q8="_SubFilters_1b9j0_30",U8="_Input_1b9j0_44",W8="_Main_1b9j0_15",V8="_Sub_1b9j0_30",G8="_Actions_1b9j0_62",Y8="_Icon_1b9j0_67",Z8="_LeftIcon_1b9j0_74",K8="_CircleAlertOutline_1b9j0_79",X8="_Rotate_1b9j0_87",Or={Filter:j8,SelectFilter:H8,MainFilter:z8,IsOpen:$8,SubFilters:q8,Input:U8,Main:W8,Sub:V8,Actions:G8,Icon:Y8,LeftIcon:Z8,CircleAlertOutline:K8,Rotate:X8},J8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:u,placeholder:h}=r,[p,m]=S.useState([]),[g,v]=S.useMemo(()=>t,[t]),w=S.useMemo(()=>c==="Select",[c]),T=S.useMemo(()=>ar.keys(g).map(re=>String(re)),[g]),[_,A]=S.useState(w&&T.length>0?T[0]:null),k=S.useCallback((re,me,ye)=>{if(!v)return;const Be={...g};re.value=me,v(Be),m(Ie=>Ie.map((Te,Pe)=>Pe===(ye?ye+1:0)?"":Te))},[g,v]),O=S.useMemo(()=>{let re=[],me=ar.keys(g);w&&_&&(me=me.filter(ye=>ye===_));for(const ye of me)re.push({key:ye,def:e[ye],filter:g[ye]});return re},[g,e,w,_]),I=S.useMemo(()=>O.length>0?O[0]:null,[O]),F=S.useMemo(()=>p.length>0?p[0]:"",[p]),B=S.useMemo(()=>O.length>1?O.slice(1):[],[O]),H=S.useMemo(()=>p.length>1?p.slice(1):[],[p]),j=S.useMemo(()=>B.length>0,[B]),[G,he]=S.useState(!1),[P,U]=S.useState(!1),V=S.useRef(null),Q=S.useCallback(()=>he(!1),[]),ae=S.useRef(null),ie=S.useCallback(()=>{U(!1),he(!0),ae.current&&(document.removeEventListener("mousedown",ae.current),ae.current=null)},[]),se=S.useCallback(()=>{const re=me=>{const ye=document.getElementById("root"),Be=me.target,Ie=V.current;!ye||!Ie||!Be||!Ie.contains(Be)&&ye.contains(Be)&&ie()};return ae.current=re,re},[ie]),oe=S.useCallback(()=>{he(!0),U(!0),setTimeout(()=>{const re=se();document.addEventListener("mousedown",re)},0)},[se]),xe=S.useMemo(()=>P?ie:oe,[P,oe,ie]),te=S.useCallback(()=>{const re=O.map((me,ye)=>me.filter.type==="String"&&me.filter.validation?me.filter.validation(me.filter.value||""):me.filter.type==="Date"&&me.filter.validation||me.filter.type==="DateRange"&&me.filter.validation?me.filter.validation(me.filter.value):p[ye]);return m(re),re.every(me=>!me)},[p,O]),ue=S.useCallback(re=>{re.key==="Enter"?(te()&&o.apply(),re.stopPropagation()):re.key==="Escape"&&(U(!1),re.currentTarget.focus(),re.currentTarget.blur(),re.stopPropagation())},[te,U,o]),ge=S.useMemo(()=>({open:oe,close:ie,toggle:xe,validate:te}),[oe,ie,xe,te]),ke=S.useCallback(()=>{o.clear()},[o]),Fe=S.useCallback(re=>{if(!v||!re)return;A(re);const me={...g};ar.keys(me).forEach(ye=>{if(ye!==re&&me[ye])switch(me[ye].type){case"String":me[ye].value="";break;case"Select":me[ye].value=null;break;case"Date":me[ye].value=void 0;break;case"DateRange":me[ye].value=void 0;break}}),m([]),v(me),o.clear(),setTimeout(()=>{var Be;const ye=(Be=V.current)==null?void 0:Be.querySelector("input");ye&&ye.focus()},0)},[g,v,m,o]);return I?C.jsxs(C.Fragment,{children:[w&&C.jsx(Gc,{isAutoWidth:!0,className:Ke.clsx(Or.SelectFilter),options:T,type:"Secondary",useSelect:[_,Fe],OptionRenderer:({option:re})=>{const me=e[re];let ye;if(me!=null&&me.hContent){const Be={defKey:re,def:me};ye=typeof me.hContent=="function"?me.hContent(Be):me.hContent}else{const Be=g[re],Ie=(me==null?void 0:me.name)||(Be==null?void 0:Be.placeholder)||String(re);ye=C.jsx("span",{children:Ie})}return ye}}),C.jsxs("div",{ref:V,className:Ke.clsx(Or.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ue,onClick:re=>{re.preventDefault(),re.stopPropagation()},children:[C.jsx(Q8,{errorMessage:F,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:ge,resources:u,onChange:k}),!w&&C.jsx(e9,{errorMessages:H,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:u,subFilterSets:B,validate:te,onChange:k,onClearClick:ke,onTransitionEnd:Q})]})]}):null},Q8=r=>{var g,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:u,resources:h,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),k=e.filter.icon,O=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,u&&Or.IsOpen),children:[C.jsx(Ya,{icon:k??"Type",isOpen:u,tooltip:O}),C.jsx(Vc,{autoFocus:e.filter.autoFocus,className:Ke.clsx(Or.Input,Or.Main),dataList:e.filter.dataList,LeftAddon:t&&C.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:p?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:C.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),k=e.filter.icon,O=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,u&&Or.IsOpen),children:[C.jsx(Ya,{icon:k??"Menu",isOpen:u,tooltip:O}),C.jsx(Gc,{className:Ke.clsx(Or.Input,Or.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:F})=>F===null?A||e.filter.placeholder:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:h}),C.jsx(I,{option:F}),C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:u,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),k=e.filter.icon,O=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,u&&Or.IsOpen),children:[C.jsx(Ya,{icon:k??"CalendarDay",isOpen:u,tooltip:O}),C.jsx(kv,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Hn,{w:u?0:6}),C.jsx(Ya,{icon:k??"CalendarDay",isOpen:!u,tooltip:O}),C.jsx(Hn,{w:u?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:A}=e.filter,k=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),O=e.filter.icon,I=e.filter.iconTooltip??k;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,u&&Or.IsOpen),children:[C.jsx(Ya,{icon:O??"CalendarDay",isOpen:u,tooltip:I}),C.jsx(Ev,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:k,type:"Raw",useDateRange:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Hn,{w:u?0:6}),C.jsx(Ya,{icon:O??"CalendarDay",isOpen:!u,tooltip:I}),C.jsx(Hn,{w:u?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:h})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return C.jsx(ho,{className:Or.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Or.Rotate),onClick:i=>{i.currentTarget.classList.add(Or.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},fp=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:u}=r,h=S.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=S.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=S.useCallback(g=>{g.stopPropagation(),t.validate()&&u.apply()},[t,u]);return C.jsxs(S.Fragment,{children:[i&&C.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&C.jsx(ho,{className:Or.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&C.jsx(ho,{className:Or.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&C.jsx(ho,{className:Or.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},e9=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:u,placeholder:h,filterF:p,validate:m}=r;return!o&&!i?null:C.jsxs("div",{className:Or.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,v)=>{var w,T,_,A;if(g.filter.type==="String"){const k=[g.filter.value??"",H=>t(g.filter,H,v)],O=u[v],I=h??g.filter.placeholder??((w=g.def)==null?void 0:w.name),F=g.filter.icon,B=g.filter.iconTooltip??I;return C.jsxs(kn,{style:{marginBottom:6},children:[C.jsx(Ya,{icon:F??"Type",tooltip:B}),C.jsx(Vc,{autoFocus:g.filter.autoFocus,className:Ke.clsx(Or.Input,Or.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:O?"Error":"Secondary",useValue:k,wrapProps:{style:{width:"100%"}},RightAddon:O&&C.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:O,type:"Raw"})}),C.jsx(Hn,{h:8})]},v)}else if(g.filter.type==="Select"){const k=[g.filter.value??null,B=>t(g.filter,B)],O=h??g.filter.placeholder??((T=g.def)==null?void 0:T.name),I=g.filter.icon,F=g.filter.iconTooltip??O;return C.jsxs(kn,{style:{marginBottom:6},children:[C.jsx(Ya,{icon:I??"Menu",tooltip:F}),C.jsx(Gc,{arrowProps:{style:{marginRight:4}},className:Ke.clsx(Or.Input,Or.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:O,type:"Secondary",useSelect:k}),C.jsx(Hn,{h:8})]},v)}else if(g.filter.type==="Date"){const k=[g.filter.value,B=>t(g.filter,B)],O=h??g.filter.placeholder??((_=g.def)==null?void 0:_.name),I=g.filter.icon,F=g.filter.iconTooltip??O;return C.jsxs(kn,{style:{marginBottom:6},children:[C.jsx(Ya,{icon:I??"CalendarDay",tooltip:F}),C.jsx(kv,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:C.jsx(Hn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:O,type:"Raw",useDate:k}),C.jsx(Hn,{h:8})]},v)}else if(g.filter.type==="DateRange"){const k=[g.filter.value,H=>t(g.filter,H)],{noDefaultChoices:O}=g.filter,I=h??g.filter.placeholder??((A=g.def)==null?void 0:A.name),F=g.filter.icon,B=g.filter.iconTooltip??I;return C.jsxs(kn,{style:{marginBottom:6},children:[C.jsx(Ya,{icon:F??"CalendarDay",tooltip:B}),C.jsx(Ev,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:C.jsx(Hn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:O,placeholder:I,type:"Raw",useDateRange:k})]},v)}else return null}),C.jsxs(kn,{className:Or.Actions,children:[C.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),C.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return C.jsx(ho,{className:Or.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},t9="_ATableHeader_1hzfz_1",r9="_LeftHeaderContent_1hzfz_11",n9="_RightHeaderContent_1hzfz_19",o9="_TopRightAddon_1hzfz_27",i9="_HItem_1hzfz_32",Pu={ATableHeader:t9,LeftHeaderContent:r9,RightHeaderContent:n9,TopRightAddon:o9,HItem:i9},s9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:u,noCount:h,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=S.useMemo(()=>o||[],[o]),k=S.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[O]=i,[I,F]=v,[B,H]=S.useState(!1),j=S.useMemo(()=>{const se=ar.values(O).filter(te=>te.type==="DateRange"),oe=ar.keys(O).filter(te=>se.includes(O[te])),xe=ar.keys(e).filter(te=>e[te].isSortable);return oe.length>0?(oe.length>1&&H(!0),xe.map(ue=>oe.includes(ue)?[ue+"_Asc",ue+"_Desc"]:ue).flat()):xe},[e,O]),G=S.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),he=S.useCallback((se,oe)=>{F&&(I==null?void 0:I.defKey)===se&&(I.isAsc===!0?F({defKey:se,isAsc:!1,sortF:oe}):F({defKey:se,isAsc:!0,sortF:oe}))},[I,F]),P=S.useRef(),[U,V]=S.useState(),[Q,ae]=S.useState(I?I.defKey:j[0]),ie=S.useMemo(()=>{if(!U)return{};const se=e[U];return{SortUp:{onClick:()=>{F==null||F({defKey:U,isAsc:!0,sortF:se.sortF}),ae(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:U,isAsc:!1,sortF:se.sortF}),ae(U)},content:()=>w["Sort down"]}}},[F,U,e,w]);return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:Ke.clsx(Pu.ATableHeader),children:[C.jsxs("div",{className:Ke.clsx(Pu.LeftHeaderContent,"NoSelect"),children:[C.jsxs(kn,{style:{marginBottom:G?8:0},children:[m&&C.jsx("div",{className:Ke.clsx(Pu.HItem),children:m}),t&&C.jsx("div",{className:Ke.clsx(Pu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&C.jsxs("div",{className:Ke.clsx(Pu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[k,A&&A.length>0&&C.jsxs(C.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&C.jsx(bC,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:se=>{var te;const oe=se.currentTarget.textContent;if(oe===w[oe])return;se.currentTarget.querySelector("svg")===null&&((te=P.current)==null||te.open(se.currentTarget))}},OptionRenderer:se=>{const oe=/_Asc|_Desc/.test(se.option),xe=(I==null?void 0:I.defKey)===se.option,te=Q===se.option,ue=I==null?void 0:I.isAsc,ge=()=>{if(oe){V(void 0),ae(se.option);const[re,me]=se.option.split("_"),ye=me==="Asc";F==null||F({defKey:re,isAsc:ye,sortF:e[re].sortF})}else te?he(se.option,e[se.option].sortF):V(se.option)},Fe=oe?(re=>{const[me,ye]=re.split("_");return(B?me+" ":"")+w[ye]})(se.option):w["Sort by x"](se.option);return C.jsxs(kn,{className:Ke.clsx(!(oe&&te)&&"IsClickable"),style:{height:"100%"},onClick:ge,children:[Fe,te&&!oe&&C.jsx(en,{icon:xe?ue?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},se.option)}})]}),C.jsx(Xu,{}),C.jsxs("div",{className:Ke.clsx(Pu.RightHeaderContent,"NoSelect"),children:[!u&&C.jsx(J8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),g&&C.jsx(kn,{children:g,className:Ke.clsx(Pu.TopRightAddon)})]})]}),C.jsx(mC,{actionRef:P,defs:ie,position:bf.S,width:100,onClose:()=>V(void 0)})]})},a9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:u,checkDisabled:h,isLoading:p,isDisabled:m,title:g,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:k,filterType:O="Default",placeholder:I,rowHeight:F=40,usePagination:B,useSortation:H,showRows:j,noHeader:G,noDefHeader:he,noFooter:P,noFilter:U,noCount:V,noMarking:Q,noStateChangeOnMount:ae,TopLeftAddon:ie,TopRightAddon:se,actionRef:oe,RowRenderer:xe,resources:te}=r,ue=S.useMemo(()=>({...wr.ATable,...te}),[te]),ge=S.useCallback((ne,_e)=>t!==void 0?Array.isArray(t)?t.every(Qe=>Za.isEqual(ne[Qe],_e[Qe])):Za.isEqual(ne[t],_e[t]):Za.isEqual(ne,_e),[t]),ke=S.useMemo(()=>({content:l9,...n}),[n]),Fe=S.useMemo(()=>{const ne={};return ar.keys(e).forEach(_e=>{const Qe=e[_e],Rt={...ke,...Qe};ne[_e]=Rt}),ne},[ke,e]),[re,me]=wn(Za.cloneDeep(A),{"":{type:"String",placeholder:ue["Search(Placeholder)"],value:""}}),[ye,Be]=wn(Za.cloneDeep(k),void 0),[Ie,Te]=S.useState(!1),[Pe,Ve]=S.useMemo(()=>Ie&&ye?[ye,Be]:[re,me],[re,Ie,me,Be,ye]),[Oe,Le]=S.useState(Pe),Ne=S.useMemo(()=>v?Bl.applyFilteration(v,Fe,Oe):[],[v,Fe,Oe]),Ce=S.useMemo(()=>{for(const ne in Oe){const _e=Oe[ne];if(_e.value!==void 0&&_e.value!==null&&_e.value!=="")return!0}return!1},[Oe]),[qe,nt]=wn(H,void 0),st=S.useMemo(()=>Bl.applySortation(Ne,Fe,qe),[Ne,Fe,qe]),wt=S.useMemo(()=>{if(T!==void 0)return Bl.applySortation(T,Fe,qe)},[T,Fe,qe]),[Ye,Xe]=wn(B,{page:1,pageSize:50,pageRange:10}),dt=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Ye}),[Ye]),{pagedItems:pt,totalCount:je,pagination:et}=S.useMemo(()=>{const ne={...dt};if(wt!==void 0){let _e=_??wt.length;const Qe=Bl.getPages(_e,ne.pageSize);return ne.page>Qe.length?ne.page=Qe.length:ne.page<1&&(ne.page=1),{pagedItems:wt,totalCount:_e,pagination:ne}}else if(v!==void 0){const _e=_??st.length,Qe=Bl.getPages(_e,ne.pageSize);return ne.page>Qe.length?ne.page=Qe.length:ne.page<1&&(ne.page=1),{pagedItems:Bl.applyPagination(st,ne.page,ne.pageSize),totalCount:_e,pagination:ne}}else return{pagedItems:[],totalCount:_??0,pagination:dt}},[v,wt,_,dt,st]),{pages:Ct,rangedPages:Ot}=S.useMemo(()=>Bl.getRangedPages(et.page,je,et.pageSize,et.pageRange),[je,et.pageSize,et.page,et.pageRange]),[Et,Dt]=S.useMemo(()=>u??[],[u]),Vt=S.useMemo(()=>pt.filter(ne=>Et==null?void 0:Et.some(_e=>ge(_e,ne))),[pt,Et,ge]),or=S.useMemo(()=>pt.filter(ne=>!(h!=null&&h(ne))),[pt,h]),gr=S.useMemo(()=>or.length>0&&or.every(ne=>Vt.some(_e=>ge(_e,ne))),[Vt,or,ge]),tr=S.useMemo(()=>gr?!1:or.some(ne=>Vt.some(_e=>ge(_e,ne))),[Vt,or,gr,ge]),ur=S.useCallback(()=>{!Et||!Dt||m||Dt(gr||tr?Et.filter(ne=>!or.some(_e=>ge(_e,ne))):[...Et,...or])},[Et,Dt,gr,tr,or,m,ge]),Ee=S.useCallback(ne=>{!Et||!Dt||m||(Et.some(_e=>ge(_e,ne))?Dt(Et.filter(_e=>!ge(_e,ne))):Dt([...Et,ne]))},[Et,Dt,m,ge]);S.useEffect(()=>{if(!Dt||!Et||!h)return;Et.filter(_e=>h(_e)).length>0&&Dt(Et.filter(_e=>!h(_e)))},[h,Et,Dt]);const le=S.useMemo(()=>({hContent:Et&&C.jsx(af,{isIndeterminate:tr,useCheck:[gr,ur]}),content:ne=>{const{item:_e}=ne,Qe=h==null?void 0:h(_e),Rt=typeof Qe=="string"?Qe:void 0,Ft=Et==null?void 0:Et.some(Xt=>ge(Xt,_e));return C.jsx(af,{isDisabled:Qe,style:{zIndex:1},tooltip:Rt,useCheck:[Ft,()=>Ee(_e)],onClick:Xt=>Xt.stopPropagation()})},minWidth:32,maxWidth:32}),[Et,gr,tr,ge,ur,h,Ee]),ct=S.useMemo(()=>u?{checkDef:le,...Fe}:Fe,[Fe,le,u]),[gt,Pt]=S.useState(!1),Nt=S.useMemo(()=>p??gt,[p,gt]),kt=S.useCallback(async ne=>{w&&(Pt(!0),await w(ne),Pt(!1)),Xe==null||Xe(ne.pagination),nt==null||nt(ne.sortation),Le(ne.filteration)},[w,Xe,nt]);S.useEffect(()=>{if(!oe)return;const ne=Qe=>{const Rt={entireItems:v,filteration:Pe,pagination:et,sortation:qe},Ft=Qe?Qe(Rt):Rt;kt(Ft)},_e=Qe=>{const Rt={...et,page:1},Ft=Qe?Qe(Pe):Pe;kt({entireItems:v,filteration:Ft,pagination:Rt,sortation:qe}),Ve==null||Ve(Ft)};oe.current={fireOnStateChange:ne,applyFilteration:_e}},[oe,kt,v,Ve,Pe,et,qe]);const Ht=S.useCallback(ne=>{ne.page===et.page&&ne.pageSize===et.pageSize||(ne.page<1?ne.page=1:ne.page>Ct[Ct.length-1]&&(ne.page=Ct[Ct.length-1]),kt({entireItems:v,filteration:Oe,pagination:ne,sortation:qe}))},[et,Ct,kt,v,Oe,qe]),Ze=S.useCallback(ne=>{Ve&&Ve(ne)},[Ve]),at=S.useCallback(ne=>{kt({entireItems:v,filteration:Oe,pagination:et,sortation:ne})},[kt,v,Oe,et]),ut=S.useCallback(ne=>{Ht({...et,page:ne})},[Ht,et]),bt=S.useCallback(()=>{ut(et.page-1)},[ut,et.page]),Lt=S.useCallback(()=>{ut(et.page+1)},[ut,et.page]),ot=S.useCallback(()=>{ut(1)},[ut]),St=S.useCallback(()=>{ut(Ct[Ct.length-1])},[ut,Ct]),Bt=S.useMemo(()=>({move:ut,movePrev:bt,moveNext:Lt,moveFirst:ot,moveLast:St}),[ut,bt,Lt,ot,St]),Kt=S.useCallback(()=>{const ne={...et,page:1};kt({entireItems:v,filteration:Pe,pagination:ne,sortation:qe})},[Pe,et,kt,v,qe]),zt=S.useCallback(()=>{Te(!Ie)},[Ie]),xr=S.useCallback(()=>{Ie&&ye?Be==null||Be(R0(ye)):Ve==null||Ve(R0(re))},[Ie,ye,Be,re,Ve]),Hr=S.useMemo(()=>({apply:Kt,toggle:zt,clear:xr}),[Kt,zt,xr]);xC(()=>{ae||kt({entireItems:v,filteration:Pe,pagination:et,sortation:qe})});const fr=S.useMemo(()=>ar.map(Fe,([_e])=>Fe[_e].minWidth??Bc).reduce((_e,Qe)=>_e+Qe,0),[Fe]),pe=S.useMemo(()=>xe!==void 0,[xe]);return C.jsxs(Yr,{className:u8.ATable,isDisabled:m,style:{minWidth:fr},children:[!G&&C.jsx(s9,{defs:Fe,filterF:Hr,filterType:O,hasToggleFilteration:ye!==void 0,isFiltered:Ce,isRowRendered:pe,noCount:V,noFilter:U,placeholder:I,resources:ue,title:g,TopLeftAddon:ie,TopRightAddon:se,totalCount:je,useCheck:u&&Et?[Et,Dt]:void 0,useFilteration:[Pe,Ze],useSortation:[qe,at]}),C.jsx(I8,{appliedFilteration:Oe,defs:ct,isEqual:ge,isLoading:Nt,isRowRendered:pe,isSelectMulti:a,isTableDisabled:m,noDefHeader:he,noMarking:Q,pagedItems:pt,pagination:et,resources:ue,rowHeight:F,RowRenderer:xe,rProps:o,selectDisabled:c,showRows:j,useSelect:i,useSortation:[qe,at]}),!P&&C.jsx(F8,{pageF:Bt,pages:Ct,pagination:et,rangedPages:Ot})]})},l9=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function R0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const c9="_AText_1asz6_1",u9={AText:c9},_C=r=>{const{text:e,styled:t,style:n}=r,o=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?C.jsx("b",{children:e}):C.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1?C.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1&&C.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return C.jsx("div",{className:Ke.clsx("Body1Reading",u9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
|
167
167
|
`);return e.map((t,n)=>C.jsxs(S.Fragment,{children:[t,n!==e.length-1&&C.jsx("br",{})]},n))}const d9="_Base_cpm4t_7",f9="_ATextArea_cpm4t_11",h9="_Primary_cpm4t_34",p9="_UnAvailable_cpm4t_39",g9="_Secondary_cpm4t_47",m9="_ReadOnly_cpm4t_59",pp={Base:d9,ATextArea:f9,Primary:h9,UnAvailable:p9,Secondary:g9,ReadOnly:m9,Error:"_Error_cpm4t_66"},v9=["Primary","Secondary","ReadOnly","Error"],y9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:u,maxLength:h,tabIndex:p,autoFocus:m,textAreaProps:g,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},k]=Ku(v),O=S.useMemo(()=>b9(t)?"Error":n,[t,n]),I=S.useMemo(()=>O==="ReadOnly"?!0:c,[O,c]),F=S.useMemo(()=>k.isDisabled||k.isLoading,[k.isDisabled,k.isLoading]),[B,H]=wn(i,""),j=S.useCallback(P=>{H&&H(P)},[H]),G=S.useCallback(P=>{var U;F||(j(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[F,j,g]),he=S.useCallback(P=>{var U;if(!F){if((U=g==null?void 0:g.onKeyDown)==null||U.call(g,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[F,e,g]);return C.jsx(Wc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:C.jsx(Yr,{...k,className:Ke.clsx(pp.Base,k.className),children:C.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ke.clsx(pp.ATextArea,pp[O],F&&pp.UnAvailable,g==null?void 0:g.className),maxLength:h,placeholder:u,readOnly:I,rows:a,tabIndex:k.isDisabled||k.isLoading?-1:p,value:B,onChange:G,onKeyDown:he})})})};function b9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:AC,setPrototypeOf:I0,isFrozen:x9,getPrototypeOf:w9,getOwnPropertyDescriptor:C9}=Object;let{freeze:mi,seal:Os,create:EC}=Object,{apply:N1,construct:P1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});N1||(N1=function(e,t,n){return e.apply(t,n)});P1||(P1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),S9=vi(Array.prototype.lastIndexOf),M0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),_9=vi(Array.prototype.splice),zp=vi(String.prototype.toLowerCase),pm=vi(String.prototype.toString),L0=vi(String.prototype.match),Xf=vi(String.prototype.replace),A9=vi(String.prototype.indexOf),E9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),hi=vi(RegExp.prototype.test),Jf=T9(TypeError);function vi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return N1(r,e,n)}}function T9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zp;I0&&I0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(x9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function k9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Pl(r){const e=EC(null);for(const[t,n]of AC(r))aa(r,t)&&(Array.isArray(n)?e[t]=k9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Pl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=C9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=w9(r)}function t(){return null}return t}const D0=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gm=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mm=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R9=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vm=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=mi(["#text"]),N0=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P0=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),M9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),L9=Os(/<%[\w\W]*|[\w\W]*%>/gm),D9=Os(/\$\{[\w\W]*/gm),O9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),N9=Os(/^aria-[\-\w]+$/),TC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P9=Os(/^(?:\w+script|data):/i),B9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kC=Os(/^html$/i),F9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var B0=Object.freeze({__proto__:null,ARIA_ATTR:N9,ATTR_WHITESPACE:B9,CUSTOM_ELEMENT:F9,DATA_ATTR:O9,DOCTYPE_NAME:kC,ERB_EXPR:L9,IS_ALLOWED_URI:TC,IS_SCRIPT_OR_DATA:P9,MUSTACHE_EXPR:M9,TMPLIT_EXPR:D9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},j9=function(){return typeof window>"u"?null:window},H9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},F0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function RC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j9();const e=It=>RC(It);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==eh.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:u,NodeFilter:h,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:v}=r,w=u.prototype,T=Qf(w,"cloneNode"),_=Qf(w,"remove"),A=Qf(w,"nextSibling"),k=Qf(w,"childNodes"),O=Qf(w,"parentNode");if(typeof a=="function"){const It=t.createElement("template");It.content&&It.content.ownerDocument&&(t=It.content.ownerDocument)}let I,F="";const{implementation:B,createNodeIterator:H,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:he}=n;let P=F0();e.isSupported=typeof AC=="function"&&typeof O=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:ae,ARIA_ATTR:ie,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:xe}=B0;let{IS_ALLOWED_URI:te}=B0,ue=null;const ge=Wr({},[...D0,...gm,...mm,...vm,...O0]);let ke=null;const Fe=Wr({},[...N0,...ym,...P0,...mp]);let re=Object.seal(EC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,ye=null,Be=!0,Ie=!0,Te=!1,Pe=!0,Ve=!1,Oe=!0,Le=!1,Ne=!1,Ce=!1,qe=!1,nt=!1,st=!1,wt=!0,Ye=!1;const Xe="user-content-";let dt=!0,pt=!1,je={},et=null;const Ct=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ot=null;const Et=Wr({},["audio","video","img","source","image","track"]);let Dt=null;const Vt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),or="http://www.w3.org/1998/Math/MathML",gr="http://www.w3.org/2000/svg",tr="http://www.w3.org/1999/xhtml";let ur=tr,Ee=!1,le=null;const ct=Wr({},[or,gr,tr],pm);let gt=Wr({},["mi","mo","mn","ms","mtext"]),Pt=Wr({},["annotation-xml"]);const Nt=Wr({},["title","style","font","a","script"]);let kt=null;const Ht=["application/xhtml+xml","text/html"],Ze="text/html";let at=null,ut=null;const bt=t.createElement("form"),Lt=function(be){return be instanceof RegExp||be instanceof Function},ot=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ut&&ut===be)){if((!be||typeof be!="object")&&(be={}),be=Pl(be),kt=Ht.indexOf(be.PARSER_MEDIA_TYPE)===-1?Ze:be.PARSER_MEDIA_TYPE,at=kt==="application/xhtml+xml"?pm:zp,ue=aa(be,"ALLOWED_TAGS")?Wr({},be.ALLOWED_TAGS,at):ge,ke=aa(be,"ALLOWED_ATTR")?Wr({},be.ALLOWED_ATTR,at):Fe,le=aa(be,"ALLOWED_NAMESPACES")?Wr({},be.ALLOWED_NAMESPACES,pm):ct,Dt=aa(be,"ADD_URI_SAFE_ATTR")?Wr(Pl(Vt),be.ADD_URI_SAFE_ATTR,at):Vt,Ot=aa(be,"ADD_DATA_URI_TAGS")?Wr(Pl(Et),be.ADD_DATA_URI_TAGS,at):Et,et=aa(be,"FORBID_CONTENTS")?Wr({},be.FORBID_CONTENTS,at):Ct,me=aa(be,"FORBID_TAGS")?Wr({},be.FORBID_TAGS,at):Pl({}),ye=aa(be,"FORBID_ATTR")?Wr({},be.FORBID_ATTR,at):Pl({}),je=aa(be,"USE_PROFILES")?be.USE_PROFILES:!1,Be=be.ALLOW_ARIA_ATTR!==!1,Ie=be.ALLOW_DATA_ATTR!==!1,Te=be.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=be.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=be.SAFE_FOR_TEMPLATES||!1,Oe=be.SAFE_FOR_XML!==!1,Le=be.WHOLE_DOCUMENT||!1,qe=be.RETURN_DOM||!1,nt=be.RETURN_DOM_FRAGMENT||!1,st=be.RETURN_TRUSTED_TYPE||!1,Ce=be.FORCE_BODY||!1,wt=be.SANITIZE_DOM!==!1,Ye=be.SANITIZE_NAMED_PROPS||!1,dt=be.KEEP_CONTENT!==!1,pt=be.IN_PLACE||!1,te=be.ALLOWED_URI_REGEXP||TC,ur=be.NAMESPACE||tr,gt=be.MATHML_TEXT_INTEGRATION_POINTS||gt,Pt=be.HTML_INTEGRATION_POINTS||Pt,re=be.CUSTOM_ELEMENT_HANDLING||{},be.CUSTOM_ELEMENT_HANDLING&&Lt(be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),be.CUSTOM_ELEMENT_HANDLING&&Lt(be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),be.CUSTOM_ELEMENT_HANDLING&&typeof be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(Ie=!1),nt&&(qe=!0),je&&(ue=Wr({},O0),ke=[],je.html===!0&&(Wr(ue,D0),Wr(ke,N0)),je.svg===!0&&(Wr(ue,gm),Wr(ke,ym),Wr(ke,mp)),je.svgFilters===!0&&(Wr(ue,mm),Wr(ke,ym),Wr(ke,mp)),je.mathMl===!0&&(Wr(ue,vm),Wr(ke,P0),Wr(ke,mp))),be.ADD_TAGS&&(ue===ge&&(ue=Pl(ue)),Wr(ue,be.ADD_TAGS,at)),be.ADD_ATTR&&(ke===Fe&&(ke=Pl(ke)),Wr(ke,be.ADD_ATTR,at)),be.ADD_URI_SAFE_ATTR&&Wr(Dt,be.ADD_URI_SAFE_ATTR,at),be.FORBID_CONTENTS&&(et===Ct&&(et=Pl(et)),Wr(et,be.FORBID_CONTENTS,at)),dt&&(ue["#text"]=!0),Le&&Wr(ue,["html","head","body"]),ue.table&&(Wr(ue,["tbody"]),delete me.tbody),be.TRUSTED_TYPES_POLICY){if(typeof be.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof be.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=be.TRUSTED_TYPES_POLICY,F=I.createHTML("")}else I===void 0&&(I=H9(v,o)),I!==null&&typeof F=="string"&&(F=I.createHTML(""));mi&&mi(be),ut=be}},St=Wr({},[...gm,...mm,...R9]),Bt=Wr({},[...vm,...I9]),Kt=function(be){let it=O(be);(!it||!it.tagName)&&(it={namespaceURI:ur,tagName:"template"});const yt=zp(be.tagName),yr=zp(it.tagName);return le[be.namespaceURI]?be.namespaceURI===gr?it.namespaceURI===tr?yt==="svg":it.namespaceURI===or?yt==="svg"&&(yr==="annotation-xml"||gt[yr]):!!St[yt]:be.namespaceURI===or?it.namespaceURI===tr?yt==="math":it.namespaceURI===gr?yt==="math"&&Pt[yr]:!!Bt[yt]:be.namespaceURI===tr?it.namespaceURI===gr&&!Pt[yr]||it.namespaceURI===or&&!gt[yr]?!1:!Bt[yt]&&(Nt[yt]||!St[yt]):!!(kt==="application/xhtml+xml"&&le[be.namespaceURI]):!1},zt=function(be){Kf(e.removed,{element:be});try{O(be).removeChild(be)}catch{_(be)}},xr=function(be,it){try{Kf(e.removed,{attribute:it.getAttributeNode(be),from:it})}catch{Kf(e.removed,{attribute:null,from:it})}if(it.removeAttribute(be),be==="is")if(qe||nt)try{zt(it)}catch{}else try{it.setAttribute(be,"")}catch{}},Hr=function(be){let it=null,yt=null;if(Ce)be="<remove></remove>"+be;else{const lr=L0(be,/^[\r\n\t ]+/);yt=lr&&lr[0]}kt==="application/xhtml+xml"&&ur===tr&&(be='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+be+"</body></html>");const yr=I?I.createHTML(be):be;if(ur===tr)try{it=new g().parseFromString(yr,kt)}catch{}if(!it||!it.documentElement){it=B.createDocument(ur,"template",null);try{it.documentElement.innerHTML=Ee?F:yr}catch{}}const Br=it.body||it.documentElement;return be&&yt&&Br.insertBefore(t.createTextNode(yt),Br.childNodes[0]||null),ur===tr?G.call(it,Le?"html":"body")[0]:Le?it.documentElement:Br},fr=function(be){return H.call(be.ownerDocument||be,be,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},pe=function(be){return be instanceof m&&(typeof be.nodeName!="string"||typeof be.textContent!="string"||typeof be.removeChild!="function"||!(be.attributes instanceof p)||typeof be.removeAttribute!="function"||typeof be.setAttribute!="function"||typeof be.namespaceURI!="string"||typeof be.insertBefore!="function"||typeof be.hasChildNodes!="function")},ne=function(be){return typeof c=="function"&&be instanceof c};function _e(It,be,it){gp(It,yt=>{yt.call(e,be,it,ut)})}const Qe=function(be){let it=null;if(_e(P.beforeSanitizeElements,be,null),pe(be))return zt(be),!0;const yt=at(be.nodeName);if(_e(P.uponSanitizeElement,be,{tagName:yt,allowedTags:ue}),Oe&&be.hasChildNodes()&&!ne(be.firstElementChild)&&hi(/<[/\w!]/g,be.innerHTML)&&hi(/<[/\w!]/g,be.textContent)||be.nodeType===eh.progressingInstruction||Oe&&be.nodeType===eh.comment&&hi(/<[/\w]/g,be.data))return zt(be),!0;if(!ue[yt]||me[yt]){if(!me[yt]&&Ft(yt)&&(re.tagNameCheck instanceof RegExp&&hi(re.tagNameCheck,yt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(yt)))return!1;if(dt&&!et[yt]){const yr=O(be)||be.parentNode,Br=k(be)||be.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const tn=T(Br[br],!0);tn.__removalCount=(be.__removalCount||0)+1,yr.insertBefore(tn,A(be))}}}return zt(be),!0}return be instanceof u&&!Kt(be)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&hi(/<\/no(script|embed|frames)/i,be.innerHTML)?(zt(be),!0):(Ve&&be.nodeType===eh.text&&(it=be.textContent,gp([U,V,Q],yr=>{it=Xf(it,yr," ")}),be.textContent!==it&&(Kf(e.removed,{element:be.cloneNode()}),be.textContent=it)),_e(P.afterSanitizeElements,be,null),!1)},Rt=function(be,it,yt){if(wt&&(it==="id"||it==="name")&&(yt in t||yt in bt))return!1;if(!(Ie&&!ye[it]&&hi(ae,it))){if(!(Be&&hi(ie,it))){if(!ke[it]||ye[it]){if(!(Ft(be)&&(re.tagNameCheck instanceof RegExp&&hi(re.tagNameCheck,be)||re.tagNameCheck instanceof Function&&re.tagNameCheck(be))&&(re.attributeNameCheck instanceof RegExp&&hi(re.attributeNameCheck,it)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(it))||it==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&hi(re.tagNameCheck,yt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(yt))))return!1}else if(!Dt[it]){if(!hi(te,Xf(yt,oe,""))){if(!((it==="src"||it==="xlink:href"||it==="href")&&be!=="script"&&A9(yt,"data:")===0&&Ot[be])){if(!(Te&&!hi(se,Xf(yt,oe,"")))){if(yt)return!1}}}}}}return!0},Ft=function(be){return be!=="annotation-xml"&&L0(be,xe)},Xt=function(be){_e(P.beforeSanitizeAttributes,be,null);const{attributes:it}=be;if(!it||pe(be))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let yr=it.length;for(;yr--;){const Br=it[yr],{name:lr,namespaceURI:br,value:tn}=Br,sn=at(lr),Nn=tn;let zr=lr==="value"?Nn:E9(Nn);if(yt.attrName=sn,yt.attrValue=zr,yt.keepAttr=!0,yt.forceKeepAttr=void 0,_e(P.uponSanitizeAttribute,be,yt),zr=yt.attrValue,Ye&&(sn==="id"||sn==="name")&&(xr(lr,be),zr=Xe+zr),Oe&&hi(/((--!?|])>)|<\/(style|title)/i,zr)){xr(lr,be);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){xr(lr,be);continue}if(!Pe&&hi(/\/>/i,zr)){xr(lr,be);continue}Ve&&gp([U,V,Q],Rn=>{zr=Xf(zr,Rn," ")});const rn=at(be.nodeName);if(!Rt(rn,sn,zr)){xr(lr,be);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(rn,sn)){case"TrustedHTML":{zr=I.createHTML(zr);break}case"TrustedScriptURL":{zr=I.createScriptURL(zr);break}}if(zr!==Nn)try{br?be.setAttributeNS(br,lr,zr):be.setAttribute(lr,zr),pe(be)?zt(be):M0(e.removed)}catch{xr(lr,be)}}_e(P.afterSanitizeAttributes,be,null)},$t=function It(be){let it=null;const yt=fr(be);for(_e(P.beforeSanitizeShadowDOM,be,null);it=yt.nextNode();)_e(P.uponSanitizeShadowNode,it,null),Qe(it),Xt(it),it.content instanceof i&&It(it.content);_e(P.afterSanitizeShadowDOM,be,null)};return e.sanitize=function(It){let be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=null,yt=null,yr=null,Br=null;if(Ee=!It,Ee&&(It="<!-->"),typeof It!="string"&&!ne(It))if(typeof It.toString=="function"){if(It=It.toString(),typeof It!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return It;if(Ne||ot(be),e.removed=[],typeof It=="string"&&(pt=!1),pt){if(It.nodeName){const tn=at(It.nodeName);if(!ue[tn]||me[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(It instanceof c)it=Hr("<!---->"),yt=it.ownerDocument.importNode(It,!0),yt.nodeType===eh.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?it=yt:it.appendChild(yt);else{if(!qe&&!Ve&&!Le&&It.indexOf("<")===-1)return I&&st?I.createHTML(It):It;if(it=Hr(It),!it)return qe?null:st?F:""}it&&Ce&&zt(it.firstChild);const lr=fr(pt?It:it);for(;yr=lr.nextNode();)Qe(yr),Xt(yr),yr.content instanceof i&&$t(yr.content);if(pt)return It;if(qe){if(nt)for(Br=j.call(it.ownerDocument);it.firstChild;)Br.appendChild(it.firstChild);else Br=it;return(ke.shadowroot||ke.shadowrootmode)&&(Br=he.call(n,Br,!0)),Br}let br=Le?it.outerHTML:it.innerHTML;return Le&&ue["!doctype"]&&it.ownerDocument&&it.ownerDocument.doctype&&it.ownerDocument.doctype.name&&hi(kC,it.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+it.ownerDocument.doctype.name+`>
|
168
168
|
`+br),Ve&&gp([U,V,Q],tn=>{br=Xf(br,tn," ")}),I&&st?I.createHTML(br):br},e.setConfig=function(){let It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(It),Ne=!0},e.clearConfig=function(){ut=null,Ne=!1},e.isValidAttribute=function(It,be,it){ut||ot({});const yt=at(It),yr=at(be);return Rt(yt,yr,it)},e.addHook=function(It,be){typeof be=="function"&&Kf(P[It],be)},e.removeHook=function(It,be){if(be!==void 0){const it=S9(P[It],be);return it===-1?void 0:_9(P[It],it,1)[0]}return M0(P[It])},e.removeHooks=function(It){P[It]=[]},e.removeAllHooks=function(){P=F0()},e}var z9=RC(),vp={exports:{}},bm,j0;function $9(){if(j0)return bm;j0=1;var r=-1,e=1,t=0;function n(P,U,V,Q,ae){if(P===U)return P?[[t,P]]:[];if(V!=null){var ie=G(P,U,V);if(ie)return ie}var se=c(P,U),oe=P.substring(0,se);P=P.substring(se),U=U.substring(se),se=h(P,U);var xe=P.substring(P.length-se);P=P.substring(0,P.length-se),U=U.substring(0,U.length-se);var te=o(P,U);return oe&&te.unshift([t,oe]),xe&&te.push([t,xe]),k(te,ae),Q&&m(te),te}function o(P,U){var V;if(!P)return[[e,U]];if(!U)return[[r,P]];var Q=P.length>U.length?P:U,ae=P.length>U.length?U:P,ie=Q.indexOf(ae);if(ie!==-1)return V=[[e,Q.substring(0,ie)],[t,ae],[e,Q.substring(ie+ae.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(ae.length===1)return[[r,P],[e,U]];var se=p(P,U);if(se){var oe=se[0],xe=se[1],te=se[2],ue=se[3],ge=se[4],ke=n(oe,te),Fe=n(xe,ue);return ke.concat([[t,ge]],Fe)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,ae=Math.ceil((V+Q)/2),ie=ae,se=2*ae,oe=new Array(se),xe=new Array(se),te=0;te<se;te++)oe[te]=-1,xe[te]=-1;oe[ie+1]=0,xe[ie+1]=0;for(var ue=V-Q,ge=ue%2!==0,ke=0,Fe=0,re=0,me=0,ye=0;ye<ae;ye++){for(var Be=-ye+ke;Be<=ye-Fe;Be+=2){var Ie=ie+Be,Te;Be===-ye||Be!==ye&&oe[Ie-1]<oe[Ie+1]?Te=oe[Ie+1]:Te=oe[Ie-1]+1;for(var Pe=Te-Be;Te<V&&Pe<Q&&P.charAt(Te)===U.charAt(Pe);)Te++,Pe++;if(oe[Ie]=Te,Te>V)Fe+=2;else if(Pe>Q)ke+=2;else if(ge){var Ve=ie+ue-Be;if(Ve>=0&&Ve<se&&xe[Ve]!==-1){var Oe=V-xe[Ve];if(Te>=Oe)return a(P,U,Te,Pe)}}}for(var Le=-ye+re;Le<=ye-me;Le+=2){var Ve=ie+Le,Oe;Le===-ye||Le!==ye&&xe[Ve-1]<xe[Ve+1]?Oe=xe[Ve+1]:Oe=xe[Ve-1]+1;for(var Ne=Oe-Le;Oe<V&&Ne<Q&&P.charAt(V-Oe-1)===U.charAt(Q-Ne-1);)Oe++,Ne++;if(xe[Ve]=Oe,Oe>V)me+=2;else if(Ne>Q)re+=2;else if(!ge){var Ie=ie+ue-Le;if(Ie>=0&&Ie<se&&oe[Ie]!==-1){var Te=oe[Ie],Pe=ie+Te-Ie;if(Oe=V-Oe,Te>=Oe)return a(P,U,Te,Pe)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var ae=P.substring(0,V),ie=U.substring(0,Q),se=P.substring(V),oe=U.substring(Q),xe=n(ae,ie),te=n(se,oe);return xe.concat(te)}function c(P,U){if(!P||!U||P.charAt(0)!==U.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,U.length),ae=Q,ie=0;V<ae;)P.substring(ie,ae)==U.substring(ie,ae)?(V=ae,ie=V):Q=ae,ae=Math.floor((Q-V)/2+V);return O(P.charCodeAt(ae-1))&&ae--,ae}function u(P,U){var V=P.length,Q=U.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(U=U.substring(0,V));var ae=Math.min(V,Q);if(P==U)return ae;for(var ie=0,se=1;;){var oe=P.substring(ae-se),xe=U.indexOf(oe);if(xe==-1)return ie;se+=xe,(xe==0||P.substring(ae-se)==U.substring(0,se))&&(ie=se,se++)}}function h(P,U){if(!P||!U||P.slice(-1)!==U.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,U.length),ae=Q,ie=0;V<ae;)P.substring(P.length-ae,P.length-ie)==U.substring(U.length-ae,U.length-ie)?(V=ae,ie=V):Q=ae,ae=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-ae))&&ae--,ae}function p(P,U){var V=P.length>U.length?P:U,Q=P.length>U.length?U:P;if(V.length<4||Q.length*2<V.length)return null;function ae(Fe,re,me){for(var ye=Fe.substring(me,me+Math.floor(Fe.length/4)),Be=-1,Ie="",Te,Pe,Ve,Oe;(Be=re.indexOf(ye,Be+1))!==-1;){var Le=c(Fe.substring(me),re.substring(Be)),Ne=h(Fe.substring(0,me),re.substring(0,Be));Ie.length<Ne+Le&&(Ie=re.substring(Be-Ne,Be)+re.substring(Be,Be+Le),Te=Fe.substring(0,me-Ne),Pe=Fe.substring(me+Le),Ve=re.substring(0,Be-Ne),Oe=re.substring(Be+Le))}return Ie.length*2>=Fe.length?[Te,Pe,Ve,Oe,Ie]:null}var ie=ae(V,Q,Math.ceil(V.length/4)),se=ae(V,Q,Math.ceil(V.length/2)),oe;if(!ie&&!se)return null;se?ie?oe=ie[4].length>se[4].length?ie:se:oe=se:oe=ie;var xe,te,ue,ge;P.length>U.length?(xe=oe[0],te=oe[1],ue=oe[2],ge=oe[3]):(ue=oe[0],ge=oe[1],xe=oe[2],te=oe[3]);var ke=oe[4];return[xe,te,ue,ge,ke]}function m(P){for(var U=!1,V=[],Q=0,ae=null,ie=0,se=0,oe=0,xe=0,te=0;ie<P.length;)P[ie][0]==t?(V[Q++]=ie,se=xe,oe=te,xe=0,te=0,ae=P[ie][1]):(P[ie][0]==e?xe+=P[ie][1].length:te+=P[ie][1].length,ae&&ae.length<=Math.max(se,oe)&&ae.length<=Math.max(xe,te)&&(P.splice(V[Q-1],0,[r,ae]),P[V[Q-1]+1][0]=e,Q--,Q--,ie=Q>0?V[Q-1]:-1,se=0,oe=0,xe=0,te=0,ae=null,U=!0)),ie++;for(U&&k(P),A(P),ie=1;ie<P.length;){if(P[ie-1][0]==r&&P[ie][0]==e){var ue=P[ie-1][1],ge=P[ie][1],ke=u(ue,ge),Fe=u(ge,ue);ke>=Fe?(ke>=ue.length/2||ke>=ge.length/2)&&(P.splice(ie,0,[t,ge.substring(0,ke)]),P[ie-1][1]=ue.substring(0,ue.length-ke),P[ie+1][1]=ge.substring(ke),ie++):(Fe>=ue.length/2||Fe>=ge.length/2)&&(P.splice(ie,0,[t,ue.substring(0,Fe)]),P[ie-1][0]=e,P[ie-1][1]=ge.substring(0,ge.length-Fe),P[ie+1][0]=r,P[ie+1][1]=ue.substring(Fe),ie++),ie++}ie++}}var g=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function U(Fe,re){if(!Fe||!re)return 6;var me=Fe.charAt(Fe.length-1),ye=re.charAt(0),Be=me.match(g),Ie=ye.match(g),Te=Be&&me.match(v),Pe=Ie&&ye.match(v),Ve=Te&&me.match(w),Oe=Pe&&ye.match(w),Le=Ve&&Fe.match(T),Ne=Oe&&re.match(_);return Le||Ne?5:Ve||Oe?4:Be&&!Te&&Pe?3:Te||Pe?2:Be||Ie?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],ae=P[V][1],ie=P[V+1][1],se=h(Q,ae);if(se){var oe=ae.substring(ae.length-se);Q=Q.substring(0,Q.length-se),ae=oe+ae.substring(0,ae.length-se),ie=oe+ie}for(var xe=Q,te=ae,ue=ie,ge=U(Q,ae)+U(ae,ie);ae.charAt(0)===ie.charAt(0);){Q+=ae.charAt(0),ae=ae.substring(1)+ie.charAt(0),ie=ie.substring(1);var ke=U(Q,ae)+U(ae,ie);ke>=ge&&(ge=ke,xe=Q,te=ae,ue=ie)}P[V-1][1]!=xe&&(xe?P[V-1][1]=xe:(P.splice(V-1,1),V--),P[V][1]=te,ue?P[V+1][1]=ue:(P.splice(V+1,1),V--))}V++}}function k(P,U){P.push([t,""]);for(var V=0,Q=0,ae=0,ie="",se="",oe;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:ae++,se+=P[V][1],V++;break;case r:Q++,ie+=P[V][1],V++;break;case t:var xe=V-ae-Q-1;if(U){if(xe>=0&&B(P[xe][1])){var te=P[xe][1].slice(-1);if(P[xe][1]=P[xe][1].slice(0,-1),ie=te+ie,se=te+se,!P[xe][1]){P.splice(xe,1),V--;var ue=xe-1;P[ue]&&P[ue][0]===e&&(ae++,se=P[ue][1]+se,ue--),P[ue]&&P[ue][0]===r&&(Q++,ie=P[ue][1]+ie,ue--),xe=ue}}if(F(P[V][1])){var te=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),ie+=te,se+=te}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(ie.length>0||se.length>0){ie.length>0&&se.length>0&&(oe=c(se,ie),oe!==0&&(xe>=0?P[xe][1]+=se.substring(0,oe):(P.splice(0,0,[t,se.substring(0,oe)]),V++),se=se.substring(oe),ie=ie.substring(oe)),oe=h(se,ie),oe!==0&&(P[V][1]=se.substring(se.length-oe)+P[V][1],se=se.substring(0,se.length-oe),ie=ie.substring(0,ie.length-oe)));var ge=ae+Q;ie.length===0&&se.length===0?(P.splice(V-ge,ge),V=V-ge):ie.length===0?(P.splice(V-ge,ge,[e,se]),V=V-ge+1):se.length===0?(P.splice(V-ge,ge,[r,ie]),V=V-ge+1):(P.splice(V-ge,ge,[r,ie],[e,se]),V=V-ge+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,ae=0,Q=0,ie="",se="";break}}P[P.length-1][1]===""&&P.pop();var ke=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),ke=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),ke=!0)),V++;ke&&k(P,U)}function O(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function F(P){return I(P.charCodeAt(0))}function B(P){return O(P.charCodeAt(P.length-1))}function H(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function j(P,U,V,Q){return B(P)||F(Q)?null:H([[t,P],[r,U],[e,V],[t,Q]])}function G(P,U,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,ae=typeof V=="number"?null:V.newRange,ie=P.length,se=U.length;if(Q.length===0&&(ae===null||ae.length===0)){var oe=Q.index,xe=P.slice(0,oe),te=P.slice(oe),ue=ae?ae.index:null;e:{var ge=oe+se-ie;if(ue!==null&&ue!==ge||ge<0||ge>se)break e;var ke=U.slice(0,ge),Fe=U.slice(ge);if(Fe!==te)break e;var re=Math.min(oe,ge),me=xe.slice(0,re),ye=ke.slice(0,re);if(me!==ye)break e;var Be=xe.slice(re),Ie=ke.slice(re);return j(me,Be,Ie,te)}e:{if(ue!==null&&ue!==oe)break e;var Te=oe,ke=U.slice(0,Te),Fe=U.slice(Te);if(ke!==xe)break e;var Pe=Math.min(ie-Te,se-Te),Ve=te.slice(te.length-Pe),Oe=Fe.slice(Fe.length-Pe);if(Ve!==Oe)break e;var Be=te.slice(0,te.length-Pe),Ie=Fe.slice(0,Fe.length-Pe);return j(xe,Be,Ie,Ve)}}if(Q.length>0&&ae&&ae.length===0)e:{var me=P.slice(0,Q.index),Ve=P.slice(Q.index+Q.length),re=me.length,Pe=Ve.length;if(se<re+Pe)break e;var ye=U.slice(0,re),Oe=U.slice(se-Pe);if(me!==ye||Ve!==Oe)break e;var Be=P.slice(re,ie-Pe),Ie=U.slice(re,se-Pe);return j(me,Be,Ie,Ve)}return null}function he(P,U,V,Q){return n(P,U,V,Q,!0)}return he.INSERT=e,he.DELETE=r,he.EQUAL=t,bm=he,bm}var dh={exports:{}};dh.exports;var H0;function IC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",k="[object String]",O="[object Symbol]",I="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",H="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",he="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",ae="[object Uint32Array]",ie=/[\\^$.*+?()[\]{}|]/g,se=/\w*$/,oe=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,te={};te[i]=te[a]=te[F]=te[B]=te[c]=te[u]=te[H]=te[j]=te[G]=te[he]=te[P]=te[g]=te[v]=te[w]=te[_]=te[A]=te[k]=te[O]=te[U]=te[V]=te[Q]=te[ae]=!0,te[h]=te[p]=te[I]=!1;var ue=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ge=typeof self=="object"&&self&&self.Object===Object&&self,ke=ue||ge||Function("return this")(),Fe=e&&!e.nodeType&&e,re=Fe&&!0&&r&&!r.nodeType&&r,me=re&&re.exports===Fe;function ye(D,J){return D.set(J[0],J[1]),D}function Be(D,J){return D.add(J),D}function Ie(D,J){for(var Se=-1,rt=D?D.length:0;++Se<rt&&J(D[Se],Se,D)!==!1;);return D}function Te(D,J){for(var Se=-1,rt=J.length,ir=D.length;++Se<rt;)D[ir+Se]=J[Se];return D}function Pe(D,J,Se,rt){for(var ir=-1,Jt=D?D.length:0;++ir<Jt;)Se=J(Se,D[ir],ir,D);return Se}function Ve(D,J){for(var Se=-1,rt=Array(D);++Se<D;)rt[Se]=J(Se);return rt}function Oe(D,J){return D==null?void 0:D[J]}function Le(D){var J=!1;if(D!=null&&typeof D.toString!="function")try{J=!!(D+"")}catch{}return J}function Ne(D){var J=-1,Se=Array(D.size);return D.forEach(function(rt,ir){Se[++J]=[ir,rt]}),Se}function Ce(D,J){return function(Se){return D(J(Se))}}function qe(D){var J=-1,Se=Array(D.size);return D.forEach(function(rt){Se[++J]=rt}),Se}var nt=Array.prototype,st=Function.prototype,wt=Object.prototype,Ye=ke["__core-js_shared__"],Xe=function(){var D=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""}(),dt=st.toString,pt=wt.hasOwnProperty,je=wt.toString,et=RegExp("^"+dt.call(pt).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ct=me?ke.Buffer:void 0,Ot=ke.Symbol,Et=ke.Uint8Array,Dt=Ce(Object.getPrototypeOf,Object),Vt=Object.create,or=wt.propertyIsEnumerable,gr=nt.splice,tr=Object.getOwnPropertySymbols,ur=Ct?Ct.isBuffer:void 0,Ee=Ce(Object.keys,Object),le=qt(ke,"DataView"),ct=qt(ke,"Map"),gt=qt(ke,"Promise"),Pt=qt(ke,"Set"),Nt=qt(ke,"WeakMap"),kt=qt(Object,"create"),Ht=dn(le),Ze=dn(ct),at=dn(gt),ut=dn(Pt),bt=dn(Nt),Lt=Ot?Ot.prototype:void 0,ot=Lt?Lt.valueOf:void 0;function St(D){var J=-1,Se=D?D.length:0;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function Bt(){this.__data__=kt?kt(null):{}}function Kt(D){return this.has(D)&&delete this.__data__[D]}function zt(D){var J=this.__data__;if(kt){var Se=J[D];return Se===n?void 0:Se}return pt.call(J,D)?J[D]:void 0}function xr(D){var J=this.__data__;return kt?J[D]!==void 0:pt.call(J,D)}function Hr(D,J){var Se=this.__data__;return Se[D]=kt&&J===void 0?n:J,this}St.prototype.clear=Bt,St.prototype.delete=Kt,St.prototype.get=zt,St.prototype.has=xr,St.prototype.set=Hr;function fr(D){var J=-1,Se=D?D.length:0;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function pe(){this.__data__=[]}function ne(D){var J=this.__data__,Se=zr(J,D);if(Se<0)return!1;var rt=J.length-1;return Se==rt?J.pop():gr.call(J,Se,1),!0}function _e(D){var J=this.__data__,Se=zr(J,D);return Se<0?void 0:J[Se][1]}function Qe(D){return zr(this.__data__,D)>-1}function Rt(D,J){var Se=this.__data__,rt=zr(Se,D);return rt<0?Se.push([D,J]):Se[rt][1]=J,this}fr.prototype.clear=pe,fr.prototype.delete=ne,fr.prototype.get=_e,fr.prototype.has=Qe,fr.prototype.set=Rt;function Ft(D){var J=-1,Se=D?D.length:0;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function Xt(){this.__data__={hash:new St,map:new(ct||fr),string:new St}}function $t(D){return At(this,D).delete(D)}function It(D){return At(this,D).get(D)}function be(D){return At(this,D).has(D)}function it(D,J){return At(this,D).set(D,J),this}Ft.prototype.clear=Xt,Ft.prototype.delete=$t,Ft.prototype.get=It,Ft.prototype.has=be,Ft.prototype.set=it;function yt(D){this.__data__=new fr(D)}function yr(){this.__data__=new fr}function Br(D){return this.__data__.delete(D)}function lr(D){return this.__data__.get(D)}function br(D){return this.__data__.has(D)}function tn(D,J){var Se=this.__data__;if(Se instanceof fr){var rt=Se.__data__;if(!ct||rt.length<t-1)return rt.push([D,J]),this;Se=this.__data__=new Ft(rt)}return Se.set(D,J),this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=tn;function sn(D,J){var Se=Pi(D)||so(D)?Ve(D.length,String):[],rt=Se.length,ir=!!rt;for(var Jt in D)pt.call(D,Jt)&&!(ir&&(Jt=="length"||Mn(Jt,rt)))&&Se.push(Jt);return Se}function Nn(D,J,Se){var rt=D[J];(!(pt.call(D,J)&&Xn(rt,Se))||Se===void 0&&!(J in D))&&(D[J]=Se)}function zr(D,J){for(var Se=D.length;Se--;)if(Xn(D[Se][0],J))return Se;return-1}function rn(D,J){return D&&We(J,jr(J),D)}function Rn(D,J,Se,rt,ir,Jt,_r){var Ir;if(rt&&(Ir=Jt?rt(D,ir,Jt,_r):rt(D)),Ir!==void 0)return Ir;if(!lo(D))return D;var Cr=Pi(D);if(Cr){if(Ir=Rr(D),!J)return ce(D,Ir)}else{var Lr=Gt(D),fn=Lr==p||Lr==m;if($n(D))return Bn(D,J);if(Lr==w||Lr==i||fn&&!Jt){if(Le(D))return Jt?D:{};if(Ir=an(fn?{}:D),!J)return ze(D,rn(Ir,D))}else{if(!te[Lr])return Jt?D:{};Ir=In(D,Lr,Rn,J)}}_r||(_r=new yt);var qn=_r.get(D);if(qn)return qn;if(_r.set(D,Ir),!Cr)var nn=Se?tt(D):jr(D);return Ie(nn||D,function(Vr,hn){nn&&(hn=Vr,Vr=D[hn]),Nn(Ir,hn,Rn(Vr,J,Se,rt,hn,D,_r))}),Ir}function Pn(D){return lo(D)?Vt(D):{}}function _o(D,J,Se){var rt=J(D);return Pi(D)?rt:Te(rt,Se(D))}function Do(D){return je.call(D)}function Oo(D){if(!lo(D)||Kn(D))return!1;var J=Bi(D)||Le(D)?et:oe;return J.test(dn(D))}function zn(D){if(!No(D))return Ee(D);var J=[];for(var Se in Object(D))pt.call(D,Se)&&Se!="constructor"&&J.push(Se);return J}function Bn(D,J){if(J)return D.slice();var Se=new D.constructor(D.length);return D.copy(Se),Se}function Cn(D){var J=new D.constructor(D.byteLength);return new Et(J).set(new Et(D)),J}function io(D,J){var Se=J?Cn(D.buffer):D.buffer;return new D.constructor(Se,D.byteOffset,D.byteLength)}function vn(D,J,Se){var rt=J?Se(Ne(D),!0):Ne(D);return Pe(rt,ye,new D.constructor)}function An(D){var J=new D.constructor(D.source,se.exec(D));return J.lastIndex=D.lastIndex,J}function R(D,J,Se){var rt=J?Se(qe(D),!0):qe(D);return Pe(rt,Be,new D.constructor)}function $(D){return ot?Object(ot.call(D)):{}}function X(D,J){var Se=J?Cn(D.buffer):D.buffer;return new D.constructor(Se,D.byteOffset,D.length)}function ce(D,J){var Se=-1,rt=D.length;for(J||(J=Array(rt));++Se<rt;)J[Se]=D[Se];return J}function We(D,J,Se,rt){Se||(Se={});for(var ir=-1,Jt=J.length;++ir<Jt;){var _r=J[ir],Ir=void 0;Nn(Se,_r,Ir===void 0?D[_r]:Ir)}return Se}function ze(D,J){return We(D,Yt(D),J)}function tt(D){return _o(D,jr,Yt)}function At(D,J){var Se=D.__data__;return po(J)?Se[typeof J=="string"?"string":"hash"]:Se.map}function qt(D,J){var Se=Oe(D,J);return Oo(Se)?Se:void 0}var Yt=tr?Ce(tr,Object):Mr,Gt=Do;(le&&Gt(new le(new ArrayBuffer(1)))!=B||ct&&Gt(new ct)!=g||gt&&Gt(gt.resolve())!=T||Pt&&Gt(new Pt)!=A||Nt&&Gt(new Nt)!=I)&&(Gt=function(D){var J=je.call(D),Se=J==w?D.constructor:void 0,rt=Se?dn(Se):void 0;if(rt)switch(rt){case Ht:return B;case Ze:return g;case at:return T;case ut:return A;case bt:return I}return J});function Rr(D){var J=D.length,Se=D.constructor(J);return J&&typeof D[0]=="string"&&pt.call(D,"index")&&(Se.index=D.index,Se.input=D.input),Se}function an(D){return typeof D.constructor=="function"&&!No(D)?Pn(Dt(D)):{}}function In(D,J,Se,rt){var ir=D.constructor;switch(J){case F:return Cn(D);case c:case u:return new ir(+D);case B:return io(D,rt);case H:case j:case G:case he:case P:case U:case V:case Q:case ae:return X(D,rt);case g:return vn(D,rt,Se);case v:case k:return new ir(D);case _:return An(D);case A:return R(D,rt,Se);case O:return $(D)}}function Mn(D,J){return J=J??o,!!J&&(typeof D=="number"||xe.test(D))&&D>-1&&D%1==0&&D<J}function po(D){var J=typeof D;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?D!=="__proto__":D===null}function Kn(D){return!!Xe&&Xe in D}function No(D){var J=D&&D.constructor,Se=typeof J=="function"&&J.prototype||wt;return D===Se}function dn(D){if(D!=null){try{return dt.call(D)}catch{}try{return D+""}catch{}}return""}function Ao(D){return Rn(D,!0,!0)}function Xn(D,J){return D===J||D!==D&&J!==J}function so(D){return bi(D)&&pt.call(D,"callee")&&(!or.call(D,"callee")||je.call(D)==i)}var Pi=Array.isArray;function yi(D){return D!=null&&ao(D.length)&&!Bi(D)}function bi(D){return ti(D)&&yi(D)}var $n=ur||Fr;function Bi(D){var J=lo(D)?je.call(D):"";return J==p||J==m}function ao(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=o}function lo(D){var J=typeof D;return!!D&&(J=="object"||J=="function")}function ti(D){return!!D&&typeof D=="object"}function jr(D){return yi(D)?sn(D):zn(D)}function Mr(){return[]}function Fr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var z0;function MC(){return z0||(z0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",k="[object Object]",O="[object Promise]",I="[object Proxy]",F="[object RegExp]",B="[object Set]",H="[object String]",j="[object Symbol]",G="[object Undefined]",he="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",ae="[object Int8Array]",ie="[object Int16Array]",se="[object Int32Array]",oe="[object Uint8Array]",xe="[object Uint8ClampedArray]",te="[object Uint16Array]",ue="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,re={};re[V]=re[Q]=re[ae]=re[ie]=re[se]=re[oe]=re[xe]=re[te]=re[ue]=!0,re[c]=re[u]=re[P]=re[p]=re[U]=re[m]=re[g]=re[v]=re[T]=re[_]=re[k]=re[F]=re[B]=re[H]=re[he]=!1;var me=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ye=typeof self=="object"&&self&&self.Object===Object&&self,Be=me||ye||Function("return this")(),Ie=e&&!e.nodeType&&e,Te=Ie&&!0&&r&&!r.nodeType&&r,Pe=Te&&Te.exports===Ie,Ve=Pe&&me.process,Oe=function(){try{return Ve&&Ve.binding&&Ve.binding("util")}catch{}}(),Le=Oe&&Oe.isTypedArray;function Ne(D,J){for(var Se=-1,rt=D==null?0:D.length,ir=0,Jt=[];++Se<rt;){var _r=D[Se];J(_r,Se,D)&&(Jt[ir++]=_r)}return Jt}function Ce(D,J){for(var Se=-1,rt=J.length,ir=D.length;++Se<rt;)D[ir+Se]=J[Se];return D}function qe(D,J){for(var Se=-1,rt=D==null?0:D.length;++Se<rt;)if(J(D[Se],Se,D))return!0;return!1}function nt(D,J){for(var Se=-1,rt=Array(D);++Se<D;)rt[Se]=J(Se);return rt}function st(D){return function(J){return D(J)}}function wt(D,J){return D.has(J)}function Ye(D,J){return D==null?void 0:D[J]}function Xe(D){var J=-1,Se=Array(D.size);return D.forEach(function(rt,ir){Se[++J]=[ir,rt]}),Se}function dt(D,J){return function(Se){return D(J(Se))}}function pt(D){var J=-1,Se=Array(D.size);return D.forEach(function(rt){Se[++J]=rt}),Se}var je=Array.prototype,et=Function.prototype,Ct=Object.prototype,Ot=Be["__core-js_shared__"],Et=et.toString,Dt=Ct.hasOwnProperty,Vt=function(){var D=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""}(),or=Ct.toString,gr=RegExp("^"+Et.call(Dt).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tr=Pe?Be.Buffer:void 0,ur=Be.Symbol,Ee=Be.Uint8Array,le=Ct.propertyIsEnumerable,ct=je.splice,gt=ur?ur.toStringTag:void 0,Pt=Object.getOwnPropertySymbols,Nt=tr?tr.isBuffer:void 0,kt=dt(Object.keys,Object),Ht=Yt(Be,"DataView"),Ze=Yt(Be,"Map"),at=Yt(Be,"Promise"),ut=Yt(Be,"Set"),bt=Yt(Be,"WeakMap"),Lt=Yt(Object,"create"),ot=dn(Ht),St=dn(Ze),Bt=dn(at),Kt=dn(ut),zt=dn(bt),xr=ur?ur.prototype:void 0,Hr=xr?xr.valueOf:void 0;function fr(D){var J=-1,Se=D==null?0:D.length;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function pe(){this.__data__=Lt?Lt(null):{},this.size=0}function ne(D){var J=this.has(D)&&delete this.__data__[D];return this.size-=J?1:0,J}function _e(D){var J=this.__data__;if(Lt){var Se=J[D];return Se===n?void 0:Se}return Dt.call(J,D)?J[D]:void 0}function Qe(D){var J=this.__data__;return Lt?J[D]!==void 0:Dt.call(J,D)}function Rt(D,J){var Se=this.__data__;return this.size+=this.has(D)?0:1,Se[D]=Lt&&J===void 0?n:J,this}fr.prototype.clear=pe,fr.prototype.delete=ne,fr.prototype.get=_e,fr.prototype.has=Qe,fr.prototype.set=Rt;function Ft(D){var J=-1,Se=D==null?0:D.length;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function Xt(){this.__data__=[],this.size=0}function $t(D){var J=this.__data__,Se=Bn(J,D);if(Se<0)return!1;var rt=J.length-1;return Se==rt?J.pop():ct.call(J,Se,1),--this.size,!0}function It(D){var J=this.__data__,Se=Bn(J,D);return Se<0?void 0:J[Se][1]}function be(D){return Bn(this.__data__,D)>-1}function it(D,J){var Se=this.__data__,rt=Bn(Se,D);return rt<0?(++this.size,Se.push([D,J])):Se[rt][1]=J,this}Ft.prototype.clear=Xt,Ft.prototype.delete=$t,Ft.prototype.get=It,Ft.prototype.has=be,Ft.prototype.set=it;function yt(D){var J=-1,Se=D==null?0:D.length;for(this.clear();++J<Se;){var rt=D[J];this.set(rt[0],rt[1])}}function yr(){this.size=0,this.__data__={hash:new fr,map:new(Ze||Ft),string:new fr}}function Br(D){var J=qt(this,D).delete(D);return this.size-=J?1:0,J}function lr(D){return qt(this,D).get(D)}function br(D){return qt(this,D).has(D)}function tn(D,J){var Se=qt(this,D),rt=Se.size;return Se.set(D,J),this.size+=Se.size==rt?0:1,this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=tn;function sn(D){var J=-1,Se=D==null?0:D.length;for(this.__data__=new yt;++J<Se;)this.add(D[J])}function Nn(D){return this.__data__.set(D,n),this}function zr(D){return this.__data__.has(D)}sn.prototype.add=sn.prototype.push=Nn,sn.prototype.has=zr;function rn(D){var J=this.__data__=new Ft(D);this.size=J.size}function Rn(){this.__data__=new Ft,this.size=0}function Pn(D){var J=this.__data__,Se=J.delete(D);return this.size=J.size,Se}function _o(D){return this.__data__.get(D)}function Do(D){return this.__data__.has(D)}function Oo(D,J){var Se=this.__data__;if(Se instanceof Ft){var rt=Se.__data__;if(!Ze||rt.length<t-1)return rt.push([D,J]),this.size=++Se.size,this;Se=this.__data__=new yt(rt)}return Se.set(D,J),this.size=Se.size,this}rn.prototype.clear=Rn,rn.prototype.delete=Pn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function zn(D,J){var Se=so(D),rt=!Se&&Xn(D),ir=!Se&&!rt&&yi(D),Jt=!Se&&!rt&&!ir&&ti(D),_r=Se||rt||ir||Jt,Ir=_r?nt(D.length,String):[],Cr=Ir.length;for(var Lr in D)Dt.call(D,Lr)&&!(_r&&(Lr=="length"||ir&&(Lr=="offset"||Lr=="parent")||Jt&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||In(Lr,Cr)))&&Ir.push(Lr);return Ir}function Bn(D,J){for(var Se=D.length;Se--;)if(Ao(D[Se][0],J))return Se;return-1}function Cn(D,J,Se){var rt=J(D);return so(D)?rt:Ce(rt,Se(D))}function io(D){return D==null?D===void 0?G:A:gt&> in Object(D)?Gt(D):No(D)}function vn(D){return lo(D)&&io(D)==c}function An(D,J,Se,rt,ir){return D===J?!0:D==null||J==null||!lo(D)&&!lo(J)?D!==D&&J!==J:R(D,J,Se,rt,An,ir)}function R(D,J,Se,rt,ir,Jt){var _r=so(D),Ir=so(J),Cr=_r?u:an(D),Lr=Ir?u:an(J);Cr=Cr==c?k:Cr,Lr=Lr==c?k:Lr;var fn=Cr==k,qn=Lr==k,nn=Cr==Lr;if(nn&&yi(D)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Jt||(Jt=new rn),_r||ti(D)?We(D,J,Se,rt,ir,Jt):ze(D,J,Cr,Se,rt,ir,Jt);if(!(Se&o)){var Vr=fn&&Dt.call(D,"__wrapped__"),hn=qn&&Dt.call(J,"__wrapped__");if(Vr||hn){var go=Vr?D.value():D,Eo=hn?J.value():J;return Jt||(Jt=new rn),ir(go,Eo,Se,rt,Jt)}}return nn?(Jt||(Jt=new rn),tt(D,J,Se,rt,ir,Jt)):!1}function $(D){if(!ao(D)||po(D))return!1;var J=$n(D)?gr:ke;return J.test(dn(D))}function X(D){return lo(D)&&Bi(D.length)&&!!re[io(D)]}function ce(D){if(!Kn(D))return kt(D);var J=[];for(var Se in Object(D))Dt.call(D,Se)&&Se!="constructor"&&J.push(Se);return J}function We(D,J,Se,rt,ir,Jt){var _r=Se&o,Ir=D.length,Cr=J.length;if(Ir!=Cr&&!(_r&&Cr>Ir))return!1;var Lr=Jt.get(D);if(Lr&&Jt.get(J))return Lr==J;var fn=-1,qn=!0,nn=Se&i?new sn:void 0;for(Jt.set(D,J),Jt.set(J,D);++fn<Ir;){var Vr=D[fn],hn=J[fn];if(rt)var go=_r?rt(hn,Vr,fn,J,D,Jt):rt(Vr,hn,fn,D,J,Jt);if(go!==void 0){if(go)continue;qn=!1;break}if(nn){if(!qe(J,function(Eo,Jn){if(!wt(nn,Jn)&&(Vr===Eo||ir(Vr,Eo,Se,rt,Jt)))return nn.push(Jn)})){qn=!1;break}}else if(!(Vr===hn||ir(Vr,hn,Se,rt,Jt))){qn=!1;break}}return Jt.delete(D),Jt.delete(J),qn}function ze(D,J,Se,rt,ir,Jt,_r){switch(Se){case U:if(D.byteLength!=J.byteLength||D.byteOffset!=J.byteOffset)return!1;D=D.buffer,J=J.buffer;case P:return!(D.byteLength!=J.byteLength||!Jt(new Ee(D),new Ee(J)));case p:case m:case _:return Ao(+D,+J);case g:return D.name==J.name&&D.message==J.message;case F:case H:return D==J+"";case T:var Ir=Xe;case B:var Cr=rt&o;if(Ir||(Ir=pt),D.size!=J.size&&!Cr)return!1;var Lr=_r.get(D);if(Lr)return Lr==J;rt|=i,_r.set(D,J);var fn=We(Ir(D),Ir(J),rt,ir,Jt,_r);return _r.delete(D),fn;case j:if(Hr)return Hr.call(D)==Hr.call(J)}return!1}function tt(D,J,Se,rt,ir,Jt){var _r=Se&o,Ir=At(D),Cr=Ir.length,Lr=At(J),fn=Lr.length;if(Cr!=fn&&!_r)return!1;for(var qn=Cr;qn--;){var nn=Ir[qn];if(!(_r?nn in J:Dt.call(J,nn)))return!1}var Vr=Jt.get(D);if(Vr&&Jt.get(J))return Vr==J;var hn=!0;Jt.set(D,J),Jt.set(J,D);for(var go=_r;++qn<Cr;){nn=Ir[qn];var Eo=D[nn],Jn=J[nn];if(rt)var Fi=_r?rt(Jn,Eo,nn,J,D,Jt):rt(Eo,Jn,nn,D,J,Jt);if(!(Fi===void 0?Eo===Jn||ir(Eo,Jn,Se,rt,Jt):Fi)){hn=!1;break}go||(go=nn=="constructor")}if(hn&&!go){var ri=D.constructor,yn=J.constructor;ri!=yn&&"constructor"in D&&"constructor"in J&&!(typeof ri=="function"&&ri instanceof ri&&typeof yn=="function"&&yn instanceof yn)&&(hn=!1)}return Jt.delete(D),Jt.delete(J),hn}function At(D){return Cn(D,jr,Rr)}function qt(D,J){var Se=D.__data__;return Mn(J)?Se[typeof J=="string"?"string":"hash"]:Se.map}function Yt(D,J){var Se=Ye(D,J);return $(Se)?Se:void 0}function Gt(D){var J=Dt.call(D,gt),Se=D[gt];try{D[gt]=void 0;var rt=!0}catch{}var ir=or.call(D);return rt&&(J?D[gt]=Se:delete D[gt]),ir}var Rr=Pt?function(D){return D==null?[]:(D=Object(D),Ne(Pt(D),function(J){return le.call(D,J)}))}:Mr,an=io;(Ht&&an(new Ht(new ArrayBuffer(1)))!=U||Ze&&an(new Ze)!=T||at&&an(at.resolve())!=O||ut&&an(new ut)!=B||bt&&an(new bt)!=he)&&(an=function(D){var J=io(D),Se=J==k?D.constructor:void 0,rt=Se?dn(Se):"";if(rt)switch(rt){case ot:return U;case St:return T;case Bt:return O;case Kt:return B;case zt:return he}return J});function In(D,J){return J=J??a,!!J&&(typeof D=="number"||Fe.test(D))&&D>-1&&D%1==0&&D<J}function Mn(D){var J=typeof D;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?D!=="__proto__":D===null}function po(D){return!!Vt&&Vt in D}function Kn(D){var J=D&&D.constructor,Se=typeof J=="function"&&J.prototype||Ct;return D===Se}function No(D){return or.call(D)}function dn(D){if(D!=null){try{return Et.call(D)}catch{}try{return D+""}catch{}}return""}function Ao(D,J){return D===J||D!==D&&J!==J}var Xn=vn(function(){return arguments}())?vn:function(D){return lo(D)&&Dt.call(D,"callee")&&!le.call(D,"callee")},so=Array.isArray;function Pi(D){return D!=null&&Bi(D.length)&&!$n(D)}var yi=Nt||Fr;function bi(D,J){return An(D,J)}function $n(D){if(!ao(D))return!1;var J=io(D);return J==v||J==w||J==h||J==I}function Bi(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=a}function ao(D){var J=typeof D;return D!=null&&(J=="object"||J=="function")}function lo(D){return D!=null&&typeof D=="object"}var ti=Le?st(Le):X;function jr(D){return Pi(D)?zn(D):ce(D)}function Mr(){return[]}function Fr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},$0;function q9(){if($0)return yp;$0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=IC(),e=MC();var t;return function(n){function o(u={},h={},p=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let m=r(h);p||(m=Object.keys(m).reduce((g,v)=>(m[v]!=null&&(g[v]=m[v]),g),{}));for(const g in u)u[g]!==void 0&&h[g]===void 0&&(m[g]=u[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const p=Object.keys(u).concat(Object.keys(h)).reduce((m,g)=>(e(u[g],h[g])||(m[g]=h[g]===void 0?null:h[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(u={},h={}){u=u||{};const p=Object.keys(h).reduce((m,g)=>(h[g]!==u[g]&&u[g]!==void 0&&(m[g]=h[g]),m),{});return Object.keys(u).reduce((m,g)=>(u[g]!==h[g]&&h[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(u,h,p=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!p)return h;const m=Object.keys(h).reduce((g,v)=>(u[v]===void 0&&(g[v]=h[v]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},q0;function LC(){if(q0)return bp;q0=1,Object.defineProperty(bp,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),bp.default=r,bp}var xp={},U0;function U9(){if(U0)return xp;U0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=LC();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return xp.default=e,xp}var W0;function W9(){return W0||(W0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=$9(),n=IC(),o=MC(),i=q9();e.AttributeMap=i.default;const a=LC();e.Op=a.default;const c=U9();e.OpIterator=c.default;const u="\0",h=(m,g)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(g)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(g)[0]}`);return[v,m[v],g[v]]};class p{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,v){this.handlers[g]=v}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const v=this.handlers[g];if(!v)throw new Error(`no handlers for embed type "${g}"`);return v}insert(g,v){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,v){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(g){let v=this.ops.length,w=this.ops[v-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(g),this;if(o(g.attributes,w.attributes)){if(typeof g.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this}}return v===this.ops.length?this.ops.push(g):this.ops.splice(v,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const v=[],w=[];return this.forEach(T=>{(g(T)?v:w).push(T)}),[v,w]}reduce(g,v){return this.ops.reduce(g,v)}changeLength(){return this.reduce((g,v)=>v.insert?g+a.default.length(v):v.delete?g-v.delete:g,0)}length(){return this.reduce((g,v)=>g+a.default.length(v),0)}slice(g=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<g?A=T.next(g-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new p(w)}compose(g){const v=new c.default(this.ops),w=new c.default(g.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let k=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=k;)k-=v.peekLength(),T.push(v.next());_.retain-k>0&&w.next(_.retain-k)}const A=new p(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const k=Math.min(v.peekLength(),w.peekLength()),O=v.next(k),I=w.next(k);if(I.retain){const F={};if(typeof O.retain=="number")F.retain=typeof I.retain=="number"?k:I.retain;else if(typeof I.retain=="number")O.retain==null?F.insert=O.insert:F.retain=O.retain;else{const H=O.retain==null?"insert":"retain",[j,G,he]=h(O[H],I.retain),P=p.getHandler(j);F[H]={[j]:P.compose(G,he,H==="retain")}}const B=i.default.compose(O.attributes,I.attributes,typeof O.retain=="number");if(B&&(F.attributes=B),A.push(F),!w.hasNext()&&o(A.ops[A.ops.length-1],F)){const H=new p(v.rest());return A.concat(H).chop()}}else typeof I.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&A.push(I)}return A.chop()}concat(g){const v=new p(this.ops.slice());return g.ops.length>0&&(v.push(g.ops[0]),v.ops=v.ops.concat(g.ops.slice(1))),v}diff(g,v){if(this.ops===g.ops)return new p;const w=[this,g].map(O=>O.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:u;const F=O===g?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new p,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),k=new c.default(g.ops);return _.forEach(O=>{let I=O[1].length;for(;I>0;){let F=0;switch(O[0]){case t.INSERT:F=Math.min(k.peekLength(),I),T.push(k.next(F));break;case t.DELETE:F=Math.min(I,A.peekLength()),A.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(A.peekLength(),k.peekLength(),I);const B=A.next(F),H=k.next(F);o(B.insert,H.insert)?T.retain(F,i.default.diff(B.attributes,H.attributes)):T.push(H).delete(F);break}I-=F}}),T.chop()}eachLine(g,v=`
|
package/dist/index.es.js
CHANGED
@@ -19929,9 +19929,9 @@ const _R = {
|
|
19929
19929
|
{
|
19930
19930
|
className: yp.Row,
|
19931
19931
|
style: {
|
19932
|
-
height: o,
|
19933
|
-
minHeight: o,
|
19934
|
-
maxHeight: o,
|
19932
|
+
height: fe.height ?? o,
|
19933
|
+
minHeight: fe.minHeight ?? o,
|
19934
|
+
maxHeight: fe.maxHeight ?? o,
|
19935
19935
|
borderBottom: M,
|
19936
19936
|
marginTop: V === 0 ? 0 : typeof u == "number" ? `${u}px` : u
|
19937
19937
|
},
|
package/package.json
CHANGED
@@ -1,86 +1,86 @@
|
|
1
|
-
{
|
2
|
-
"name": "ados-rcm",
|
3
|
-
"version": "1.1.
|
4
|
-
"private": false,
|
5
|
-
"license": "MIT",
|
6
|
-
"type": "module",
|
7
|
-
"author": {
|
8
|
-
"name": "jaekan"
|
9
|
-
},
|
10
|
-
"keywords": [
|
11
|
-
"ados",
|
12
|
-
"component"
|
13
|
-
],
|
14
|
-
"types": "./dist/index.d.ts",
|
15
|
-
"main": "./dist/index.cjs.js",
|
16
|
-
"module": "./dist/index.es.js",
|
17
|
-
"exports": {
|
18
|
-
".": {
|
19
|
-
"types": "./dist/index.d.ts",
|
20
|
-
"import": "./dist/index.es.js",
|
21
|
-
"require": "./dist/index.cjs.js"
|
22
|
-
}
|
23
|
-
},
|
24
|
-
"files": [
|
25
|
-
"dist"
|
26
|
-
],
|
27
|
-
"scripts": {
|
28
|
-
"dev": "vite --port 3030",
|
29
|
-
"lint": "eslint \"./src/**/*.{ts,tsx}\" --report-unused-disable-directives --max-warnings 0",
|
30
|
-
"lint:code": "eslint \"./src/**/*.{ts,tsx}\" --fix",
|
31
|
-
"lint:style": "stylelint --fix \"**/*.scss\"",
|
32
|
-
"lint:fix": "npm run lint:code && npm run lint:style",
|
33
|
-
"check": "tsc && npm run lint",
|
34
|
-
"build": "vite build",
|
35
|
-
"deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
36
|
-
"format": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,json,scss,css}\"",
|
37
|
-
"sonar": "sonar-scanner"
|
38
|
-
},
|
39
|
-
"peerDependencies": {
|
40
|
-
"react": "^18.2.0",
|
41
|
-
"react-dom": "^18.2.0"
|
42
|
-
},
|
43
|
-
"devDependencies": {
|
44
|
-
"@types/lodash": "^4.17.14",
|
45
|
-
"@types/qs": "^6.9.18",
|
46
|
-
"@types/quill": "^2.0.14",
|
47
|
-
"@types/react": "^18.2.67",
|
48
|
-
"@types/react-dom": "^18.2.22",
|
49
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
50
|
-
"@typescript-eslint/parser": "^7.3.1",
|
51
|
-
"@vitejs/plugin-react-swc": "^3.8.0",
|
52
|
-
"esbuild": "^0.25.0",
|
53
|
-
"eslint": "^8.57.0",
|
54
|
-
"eslint-plugin-import": "^2.31.0",
|
55
|
-
"eslint-plugin-react": "^7.34.1",
|
56
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
57
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
58
|
-
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
59
|
-
"fast-deep-equal": "^3.1.3",
|
60
|
-
"sass": "^1.83.4",
|
61
|
-
"stylelint": "^16.18.0",
|
62
|
-
"stylelint-config-recess-order": "^6.0.0",
|
63
|
-
"stylelint-config-standard": "^36.0.1",
|
64
|
-
"stylelint-config-standard-scss": "^14.0.0",
|
65
|
-
"stylelint-order": "^6.0.4",
|
66
|
-
"stylelint-scss": "^6.10.0",
|
67
|
-
"typescript": "^5.4.3",
|
68
|
-
"vite": "^6.2.0",
|
69
|
-
"vite-plugin-css-injected-by-js": "^3.5.0",
|
70
|
-
"vite-plugin-dts": "^4.5.0",
|
71
|
-
"vite-plugin-svgr": "^4.3.0",
|
72
|
-
"vite-tsconfig-paths": "^4.3.2"
|
73
|
-
},
|
74
|
-
"dependencies": {
|
75
|
-
"@dnd-kit/core": "^6.3.1",
|
76
|
-
"@dnd-kit/modifiers": "^9.0.0",
|
77
|
-
"@dnd-kit/sortable": "^10.0.0",
|
78
|
-
"@dnd-kit/utilities": "^3.2.2",
|
79
|
-
"dompurify": "^3.2.6",
|
80
|
-
"parchment": "^3.0.0",
|
81
|
-
"qs": "^6.14.0",
|
82
|
-
"quill-magic-url": "^4.2.0",
|
83
|
-
"quill-table-up": "^2.2.0",
|
84
|
-
"react-quill-new": "^3.4.6"
|
85
|
-
}
|
86
|
-
}
|
1
|
+
{
|
2
|
+
"name": "ados-rcm",
|
3
|
+
"version": "1.1.600",
|
4
|
+
"private": false,
|
5
|
+
"license": "MIT",
|
6
|
+
"type": "module",
|
7
|
+
"author": {
|
8
|
+
"name": "jaekan"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"ados",
|
12
|
+
"component"
|
13
|
+
],
|
14
|
+
"types": "./dist/index.d.ts",
|
15
|
+
"main": "./dist/index.cjs.js",
|
16
|
+
"module": "./dist/index.es.js",
|
17
|
+
"exports": {
|
18
|
+
".": {
|
19
|
+
"types": "./dist/index.d.ts",
|
20
|
+
"import": "./dist/index.es.js",
|
21
|
+
"require": "./dist/index.cjs.js"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"files": [
|
25
|
+
"dist"
|
26
|
+
],
|
27
|
+
"scripts": {
|
28
|
+
"dev": "vite --port 3030",
|
29
|
+
"lint": "eslint \"./src/**/*.{ts,tsx}\" --report-unused-disable-directives --max-warnings 0",
|
30
|
+
"lint:code": "eslint \"./src/**/*.{ts,tsx}\" --fix",
|
31
|
+
"lint:style": "stylelint --fix \"**/*.scss\"",
|
32
|
+
"lint:fix": "npm run lint:code && npm run lint:style",
|
33
|
+
"check": "tsc && npm run lint",
|
34
|
+
"build": "vite build",
|
35
|
+
"deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
36
|
+
"format": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,json,scss,css}\"",
|
37
|
+
"sonar": "sonar-scanner"
|
38
|
+
},
|
39
|
+
"peerDependencies": {
|
40
|
+
"react": "^18.2.0",
|
41
|
+
"react-dom": "^18.2.0"
|
42
|
+
},
|
43
|
+
"devDependencies": {
|
44
|
+
"@types/lodash": "^4.17.14",
|
45
|
+
"@types/qs": "^6.9.18",
|
46
|
+
"@types/quill": "^2.0.14",
|
47
|
+
"@types/react": "^18.2.67",
|
48
|
+
"@types/react-dom": "^18.2.22",
|
49
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
50
|
+
"@typescript-eslint/parser": "^7.3.1",
|
51
|
+
"@vitejs/plugin-react-swc": "^3.8.0",
|
52
|
+
"esbuild": "^0.25.0",
|
53
|
+
"eslint": "^8.57.0",
|
54
|
+
"eslint-plugin-import": "^2.31.0",
|
55
|
+
"eslint-plugin-react": "^7.34.1",
|
56
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
57
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
58
|
+
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
59
|
+
"fast-deep-equal": "^3.1.3",
|
60
|
+
"sass": "^1.83.4",
|
61
|
+
"stylelint": "^16.18.0",
|
62
|
+
"stylelint-config-recess-order": "^6.0.0",
|
63
|
+
"stylelint-config-standard": "^36.0.1",
|
64
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
65
|
+
"stylelint-order": "^6.0.4",
|
66
|
+
"stylelint-scss": "^6.10.0",
|
67
|
+
"typescript": "^5.4.3",
|
68
|
+
"vite": "^6.2.0",
|
69
|
+
"vite-plugin-css-injected-by-js": "^3.5.0",
|
70
|
+
"vite-plugin-dts": "^4.5.0",
|
71
|
+
"vite-plugin-svgr": "^4.3.0",
|
72
|
+
"vite-tsconfig-paths": "^4.3.2"
|
73
|
+
},
|
74
|
+
"dependencies": {
|
75
|
+
"@dnd-kit/core": "^6.3.1",
|
76
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
77
|
+
"@dnd-kit/sortable": "^10.0.0",
|
78
|
+
"@dnd-kit/utilities": "^3.2.2",
|
79
|
+
"dompurify": "^3.2.6",
|
80
|
+
"parchment": "^3.0.0",
|
81
|
+
"qs": "^6.14.0",
|
82
|
+
"quill-magic-url": "^4.2.0",
|
83
|
+
"quill-table-up": "^2.2.0",
|
84
|
+
"react-quill-new": "^3.4.6"
|
85
|
+
}
|
86
|
+
}
|