@apipass/design-system 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/embedded-styles.js +1 -1
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.js +235 -221
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/style.css +1 -1
- package/dist/types/ui/primitives/Divider/Divider.d.ts +6 -0
- package/dist/types/ui/primitives/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},X6=B0(q0)(x1),X0={config:U0},K0=function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return function(s){return o.reduceRight(function(a,c){return c(a)},s)}};function j1(t,r){return Object.keys(r).forEach(function(o){r[o]instanceof Object&&t[o]&&Object.assign(r[o],j1(t[o],r[o]))}),U6(U6({},t),r)}var Q0={type:"cancelation",msg:"operation is manually canceled"};function o6(t){var r=!1,o=new Promise(function(n,s){t.then(function(a){return r?s(Q0):n(a)}),t.catch(s)});return o.cancel=function(){return r=!0},o}var Y0=["monaco"],J0=A0.create({config:F0,isInitialized:!1,resolve:null,reject:null,monaco:null}),k1=b0(J0,2),N3=k1[0],q3=k1[1];function e9(t){var r=X0.config(t),o=r.monaco,n=m0(r,Y0);q3(function(s){return{config:j1(s.config,n),monaco:o}})}function t9(){var t=N3(function(r){var o=r.monaco,n=r.isInitialized,s=r.resolve;return{monaco:o,isInitialized:n,resolve:s}});if(!t.isInitialized){if(q3({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),o6(n6);if(window.monaco&&window.monaco.editor)return g1(window.monaco),t.resolve(window.monaco),o6(n6);K0(r9,n9)(s9)}return o6(n6)}function r9(t){return document.body.appendChild(t)}function o9(t){var r=document.createElement("script");return t&&(r.src=t),r}function n9(t){var r=N3(function(n){var s=n.config,a=n.reject;return{config:s,reject:a}}),o=o9("".concat(r.config.paths.vs,"/loader.js"));return o.onload=function(){return t()},o.onerror=r.reject,o}function s9(){var t=N3(function(o){var n=o.config,s=o.resolve,a=o.reject;return{config:n,resolve:s,reject:a}}),r=window.require;r.config(t.config),r(["vs/editor/editor.main"],function(o){var n=o.m||o;g1(n),t.resolve(n)},function(o){t.reject(o)})}function g1(t){N3().monaco||q3({monaco:t})}function i9(){return N3(function(t){var r=t.monaco;return r})}var n6=new Promise(function(t,r){return q3({resolve:t,reject:r})}),v1={config:e9,init:t9,__getMonacoInstance:i9},a9={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},s6=a9,c9={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},l9=c9;function d9({children:t}){return d.createElement("div",{style:l9.container},t)}var u9=d9,h9=u9;function p9({width:t,height:r,isEditorReady:o,loading:n,_ref:s,className:a,wrapperProps:c}){return d.createElement("section",{style:{...s6.wrapper,width:t,height:r},...c},!o&&d.createElement(h9,null,n),d.createElement("div",{ref:s,style:{...s6.fullWidth,...!o&&s6.hide},className:a}))}var f9=p9,L1=d.memo(f9);function C9(t){d.useEffect(t,[])}var m1=C9;function x9(t,r,o=!0){let n=d.useRef(!0);d.useEffect(n.current||!o?()=>{n.current=!1}:t,r)}var U=x9;function H3(){}function v3(t,r,o,n){return j9(t,n)||k9(t,r,o,n)}function j9(t,r){return t.editor.getModel(M1(t,r))}function k9(t,r,o,n){return t.editor.createModel(r,o,n?M1(t,n):void 0)}function M1(t,r){return t.Uri.parse(r)}function g9({original:t,modified:r,language:o,originalLanguage:n,modifiedLanguage:s,originalModelPath:a,modifiedModelPath:c,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:p="light",loading:j="Loading...",options:C={},height:m="100%",width:M="100%",className:b,wrapperProps:x={},beforeMount:v=H3,onMount:_=H3}){let[k,g]=d.useState(!1),[I,w]=d.useState(!0),P=d.useRef(null),L=d.useRef(null),V=d.useRef(null),W=d.useRef(_),H=d.useRef(v),D=d.useRef(!1);m1(()=>{let y=v1.init();return y.then($=>(L.current=$)&&w(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>P.current?K():y.cancel()}),U(()=>{if(P.current&&L.current){let y=P.current.getOriginalEditor(),$=v3(L.current,t||"",n||o||"text",a||"");$!==y.getModel()&&y.setModel($)}},[a],k),U(()=>{if(P.current&&L.current){let y=P.current.getModifiedEditor(),$=v3(L.current,r||"",s||o||"text",c||"");$!==y.getModel()&&y.setModel($)}},[c],k),U(()=>{let y=P.current.getModifiedEditor();y.getOption(L.current.editor.EditorOption.readOnly)?y.setValue(r||""):r!==y.getValue()&&(y.executeEdits("",[{range:y.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),y.pushUndoStop())},[r],k),U(()=>{var y,$;($=(y=P.current)==null?void 0:y.getModel())==null||$.original.setValue(t||"")},[t],k),U(()=>{let{original:y,modified:$}=P.current.getModel();L.current.editor.setModelLanguage(y,n||o||"text"),L.current.editor.setModelLanguage($,s||o||"text")},[o,n,s],k),U(()=>{var y;(y=L.current)==null||y.editor.setTheme(p)},[p],k),U(()=>{var y;(y=P.current)==null||y.updateOptions(C)},[C],k);let z=d.useCallback(()=>{var B;if(!L.current)return;H.current(L.current);let y=v3(L.current,t||"",n||o||"text",a||""),$=v3(L.current,r||"",s||o||"text",c||"");(B=P.current)==null||B.setModel({original:y,modified:$})},[o,r,s,t,n,a,c]),R=d.useCallback(()=>{var y;!D.current&&V.current&&(P.current=L.current.editor.createDiffEditor(V.current,{automaticLayout:!0,...C}),z(),(y=L.current)==null||y.editor.setTheme(p),g(!0),D.current=!0)},[C,p,z]);d.useEffect(()=>{k&&W.current(P.current,L.current)},[k]),d.useEffect(()=>{!I&&!k&&R()},[I,k,R]);function K(){var $,B,A,t3;let y=($=P.current)==null?void 0:$.getModel();l||((B=y==null?void 0:y.original)==null||B.dispose()),u||((A=y==null?void 0:y.modified)==null||A.dispose()),(t3=P.current)==null||t3.dispose()}return d.createElement(L1,{width:M,height:m,isEditorReady:k,loading:j,_ref:V,className:b,wrapperProps:x})}var v9=g9;d.memo(v9);function L9(t){let r=d.useRef();return d.useEffect(()=>{r.current=t},[t]),r.current}var m9=L9,D3=new Map;function M9({defaultValue:t,defaultLanguage:r,defaultPath:o,value:n,language:s,path:a,theme:c="light",line:l,loading:u="Loading...",options:p={},overrideServices:j={},saveViewState:C=!0,keepCurrentModel:m=!1,width:M="100%",height:b="100%",className:x,wrapperProps:v={},beforeMount:_=H3,onMount:k=H3,onChange:g,onValidate:I=H3}){let[w,P]=d.useState(!1),[L,V]=d.useState(!0),W=d.useRef(null),H=d.useRef(null),D=d.useRef(null),z=d.useRef(k),R=d.useRef(_),K=d.useRef(),y=d.useRef(n),$=m9(a),B=d.useRef(!1),A=d.useRef(!1);m1(()=>{let N=v1.init();return N.then(Z=>(W.current=Z)&&V(!1)).catch(Z=>(Z==null?void 0:Z.type)!=="cancelation"&&console.error("Monaco initialization: error:",Z)),()=>H.current?b3():N.cancel()}),U(()=>{var Z,T,S,O;let N=v3(W.current,t||n||"",r||s||"",a||o||"");N!==((Z=H.current)==null?void 0:Z.getModel())&&(C&&D3.set($,(T=H.current)==null?void 0:T.saveViewState()),(S=H.current)==null||S.setModel(N),C&&((O=H.current)==null||O.restoreViewState(D3.get(a))))},[a],w),U(()=>{var N;(N=H.current)==null||N.updateOptions(p)},[p],w),U(()=>{!H.current||n===void 0||(H.current.getOption(W.current.editor.EditorOption.readOnly)?H.current.setValue(n):n!==H.current.getValue()&&(A.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),H.current.pushUndoStop(),A.current=!1))},[n],w),U(()=>{var Z,T;let N=(Z=H.current)==null?void 0:Z.getModel();N&&s&&((T=W.current)==null||T.editor.setModelLanguage(N,s))},[s],w),U(()=>{var N;l!==void 0&&((N=H.current)==null||N.revealLine(l))},[l],w),U(()=>{var N;(N=W.current)==null||N.editor.setTheme(c)},[c],w);let t3=d.useCallback(()=>{var N;if(!(!D.current||!W.current)&&!B.current){R.current(W.current);let Z=a||o,T=v3(W.current,n||t||"",r||s||"",Z||"");H.current=(N=W.current)==null?void 0:N.editor.create(D.current,{model:T,automaticLayout:!0,...p},j),C&&H.current.restoreViewState(D3.get(Z)),W.current.editor.setTheme(c),l!==void 0&&H.current.revealLine(l),P(!0),B.current=!0}},[t,r,o,n,s,a,p,j,C,c,l]);d.useEffect(()=>{w&&z.current(H.current,W.current)},[w]),d.useEffect(()=>{!L&&!w&&t3()},[L,w,t3]),y.current=n,d.useEffect(()=>{var N,Z;w&&g&&((N=K.current)==null||N.dispose(),K.current=(Z=H.current)==null?void 0:Z.onDidChangeModelContent(T=>{A.current||g(H.current.getValue(),T)}))},[w,g]),d.useEffect(()=>{if(w){let N=W.current.editor.onDidChangeMarkers(Z=>{var S;let T=(S=H.current.getModel())==null?void 0:S.uri;if(T&&Z.find(O=>O.path===T.path)){let O=W.current.editor.getModelMarkers({resource:T});I==null||I(O)}});return()=>{N==null||N.dispose()}}return()=>{}},[w,I]);function b3(){var N,Z;(N=K.current)==null||N.dispose(),m?C&&D3.set(a,H.current.saveViewState()):(Z=H.current.getModel())==null||Z.dispose(),H.current.dispose()}return d.createElement(L1,{width:M,height:b,isEditorReady:w,loading:u,_ref:D,className:x,wrapperProps:v})}var b9=M9,_9=d.memo(b9),y9=_9;function _6({value:t,defaultValue:r,onChange:o,language:n="javascript",theme:s="vs",height:a="300px",isDisabled:c=!1,isReadOnly:l=!1,options:u,className:p,editorRef:j}){const[C,m]=d.useState(!1),M=d.useRef(null);function b(v,_){j&&(j.current=v),v.onDidFocusEditorWidget(()=>m(!0)),v.onDidBlurEditorWidget(()=>m(!1))}const x=h("code-editor-wrapper",p,{"code-editor-focused":C,"code-editor-disabled":c});return e.jsx("div",{ref:M,className:x,"data-disabled":c||void 0,style:{height:a},children:e.jsx(y9,{height:"100%",value:t,defaultValue:r,language:n,theme:s,onChange:o,onMount:b,loading:e.jsx("div",{className:"code-editor-loading"}),options:{readOnly:l||c,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbersMinChars:3,...u}})})}function I9({className:t,label:r,description:o,errorMessage:n,...s}){const a=d.useId(),c=h(t,"field");return e.jsxs("div",{className:c,children:[r&&e.jsx(G,{htmlFor:a,children:r}),e.jsx(_6,{...s}),o&&e.jsx(X,{children:o}),n&&typeof n=="string"&&e.jsx(e3,{children:n})]})}const w9="Clique no editor e pressione F1 para visualizar os atalhos do teclado";function H9({title:t,shortcutHint:r=w9,onBeautify:o,className:n,isDisabled:s=!1,isReadOnly:a=!1,...c}){const l=d.useRef(null),u=!s&&!a;function p(){var j,C;if(o){o();return}(C=(j=l.current)==null?void 0:j.getAction("editor.action.formatDocument"))==null||C.run()}return e.jsxs("div",{className:h("code-editor-panel",n),children:[u&&e.jsxs("div",{className:"code-editor-panel-header",children:[e.jsxs("div",{className:"code-editor-panel-title-group",children:[e.jsx("span",{className:"code-editor-panel-title",children:t}),r&&e.jsxs("span",{className:"code-editor-panel-hint",children:["(",r,")"]})]}),e.jsx(Q,{size:"small",variant:"primary",onPress:p,children:"Beautify"})]}),e.jsx(_6,{...c,isDisabled:s,isReadOnly:a,editorRef:l})]})}function T9(t){return"href"in t}const s3=d.forwardRef(function(r,o){const{style:n,...s}=r;return T9(r)?e.jsx(f.Link,{...s,className:r.className,ref:o,children:r.children}):e.jsx(f.Button,{...s,className:r.className,ref:o,children:r.children})});function b1({initials:t,src:r,alt:o}){return e.jsxs(e.Fragment,{children:[t&&e.jsxs("svg",{viewBox:"0 0 100 100","aria-hidden":o?void 0:"true",children:[o&&e.jsx("title",{children:o}),e.jsx("text",{x:"50%",y:"50%",alignmentBaseline:"middle",dominantBaseline:"middle",textAnchor:"middle",dy:".125em",children:t})]}),r&&e.jsx("img",{src:r,alt:o})]})}function V9({className:t,src:r=null,square:o=!1,initials:n,alt:s="",size:a="medium",...c}){const l=h(t,"avatar",`avatar-size-${a}`,`avatar-shape-${o?"square":"circle"}`,r?"avatar-image":"avatar-initials");return e.jsx("span",{className:l,...c,children:b1({initials:n,src:r,alt:s})})}const P9=d.forwardRef(function({className:r,src:o=null,square:n=!1,initials:s,alt:a="",size:c="medium",...l},u){const p=h(r,"avatar","avatar-button",`avatar-size-${c}`,`avatar-shape-${n?"square":"circle"}`,o?"avatar-image":"avatar-initials");return e.jsx(s3,{...l,className:p,ref:u,children:b1({initials:s,src:o,alt:a})})}),$9=({className:t,children:r,title:o,description:n,...s})=>{const a=h(t,"avatar-block");return e.jsxs("div",{className:a,...s,children:[r,e.jsx(K1,{slot:"label",children:o}),n&&e.jsx($3,{slot:"description",children:n})]})},N9=({className:t,children:r,max:o=3,spacing:n="200",...s})=>{const a=h(t,"avatar-group",`avatar-group-spacing-${n}`),c=d.Children.toArray(r),l=c.length,u=Math.max(0,l-o),p=c.splice(0,l-u);return e.jsxs("div",{className:a,...s,children:[p,u>0&&e.jsxs("span",{className:"avatar-group-overflow",children:["+",u]})]})},Q=d.forwardRef(function({className:r,size:o="medium",variant:n="primary",...s},a){const c=h(r,"button",`button-size-${o}`,`button-variant-${n}`),{style:l,...u}=s;return _1(s)?e.jsx(f.Link,{...u,className:c,ref:a,children:s.children}):e.jsx(f.Button,{...u,className:c,ref:a,children:s.children})}),y6=d.forwardRef(function({className:r,size:o="medium",variant:n="danger-primary",...s},a){const c=h(r,"button",`button-size-${o}`,`button-variant-${n}`),{style:l,...u}=s;return _1(s)?e.jsx(f.Link,{...u,className:c,ref:a,children:s.children}):e.jsx(f.Button,{...u,className:c,ref:a,children:s.children})});function _1(t){return"href"in t}const W9=({align:t="start",className:r,...o})=>{const n=h(r,"button-group",`button-group-align-${t}`);return e.jsx("div",{className:n,...o})};function E9({className:t,label:r,description:o,errorMessage:n,children:s,...a}){const c=h(t,"checkbox-group");return e.jsxs(f.CheckboxGroup,{...a,className:c,children:[r&&e.jsx(G,{children:r}),o&&e.jsx(X,{children:o}),n&&e.jsx(e3,{children:n}),s]})}function S9({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"checkbox-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Checkbox,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(X3,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function X3({className:t,...r}){const o=h(t,"checkbox");return e.jsxs("div",{className:o,...r,children:[e.jsx(u1,{"aria-hidden":"true",className:"icon-indeterminate",size:"16"}),e.jsx(G3,{"aria-hidden":"true",className:"icon-selected",size:"16"})]})}function K3({className:t,type:r="card",...o}){const n=h(t,"dialog",`dialog-type-${r}`);return e.jsx(f.Dialog,{className:n,...o})}const I6=({onPress:t})=>e.jsx(o3,{className:"dialog-close","aria-label":"Dismiss dialog",onPress:t,variant:"subtle",size:"small",children:e.jsx(p3,{})});function y1({...t}){return e.jsx(f.DialogTrigger,{...t})}function Z9({label:t,icon:r,variant:o,children:n,...s}){return e.jsxs(y1,{children:[r?e.jsx(o3,{variant:o,"aria-label":t,children:r}):e.jsx(Q,{variant:o,children:t}),e.jsx(Q3,{isDismissable:!0,children:e.jsx(K3,{...s,children:n})})]})}function w6({className:t,...r}){const o=h(t,"dialog-title");return e.jsx(S3,{...r,slot:"title",className:o})}function D9({className:t,...r}){const o=h(t,"dialog-description");return e.jsx($3,{...r,className:o})}function H6({bleed:t,className:r,...o}){const n=h(r,"dialog-body",t&&"dialog-body-bleed");return e.jsx("div",{...o,className:n})}function Q3({children:t,className:r,isDismissable:o,...n}){const s=h(r,"dialog-backdrop");return e.jsx(f.ModalOverlay,{className:s,...n,children:e.jsx(f.Modal,{className:"dialog-container",children:t})})}function O9({...t}){const r=h("fieldset");return e.jsx("fieldset",{...t,className:r})}function R9({...t}){const r=h("legend");return e.jsx("legend",{...t,className:r})}function A9({...t}){const r=h("field-group");return e.jsx("div",{...t,className:r})}function F9({className:t,singleLine:r,...o}){const n=h(t,"form",r&&"form-single-line");return e.jsx(f.Form,{className:n,...o})}function B9(t){const r=s=>Array.isArray(s),o=new FormData(t),n={};return o.forEach((s,a)=>{if(!Reflect.has(n,a)){n[a]=s;return}const c=n[a];r(c)?c.push(s):n[a]=[c,s]}),n}function T6({className:t,...r}){const o=h(t,"field");return e.jsx("div",{className:o,...r})}function G({className:t,...r}){const o=h(t,"label");return e.jsx(f.Label,{className:o,slot:"label",...r})}function X({className:t,...r}){const o=h(t,"description");return e.jsx(f.Text,{className:o,slot:"description",...r})}function e3({className:t,...r}){const o=h(t,"error-message");return e.jsx(f.FieldError,{...r,className:o})}function I1({className:t,children:r,...o}){const n=h(t,"keyboard"),s=typeof r=="string"?r.split("").map(a=>e.jsx("kbd",{children:a},a)):r;return e.jsx(f.Keyboard,{...o,className:n,children:s})}function i({size:t="16",children:r,className:o}){return e.jsx("svg",{className:h(o,"icon",`icon-size-${t}`),width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r})}function w1({aspectRatio:t="natural",className:r,size:o="natural",variant:n="rounded",...s}){const[a,c]=d.useState(!1),l=h(r,"image",`image-aspect-ratio-${t}`,`image-size-${o}`,`image-variant-${n}`,!a&&"image-loading");return e.jsxs(e.Fragment,{children:[!a&&e.jsx("span",{className:h("image-placeholder",l)}),s.src&&e.jsx("img",{className:l,...s,onLoad:()=>c(!0)})]})}function z9({className:t,...r}){const o=h(t,"picture");return e.jsx("picture",{className:o,...r})}function U9({...t}){return e.jsx("source",{...t})}function H1({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(V6,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const V6=d.forwardRef(function({className:r,...o},n){const s=h(r,"input");return e.jsx(f.Input,{className:s,ref:n,...o})}),T1=d.forwardRef(function(r,o){const n=h("link",r.className);return e.jsx("a",{...r,ref:o,className:n})});function P6({children:t,className:r,...o}){const n=h(r,"list-box");return e.jsx(f.ListBox,{className:n,...o,children:t})}function $6({className:t,...r}){const o=h(t,"list-box-item");return e.jsx(f.ListBoxItem,{className:o,...r})}function G9({className:t,...r}){const o=h(t,"logo");return e.jsx(s3,{className:o,...r,"aria-label":"Company logo",children:e.jsxs("svg",{width:"172",height:"247",viewBox:"0 0 172 247",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M164 46.5C164 67.763 146.763 85 125.5 85L86 85L86 8.0001L125.5 8.0001C146.763 8.0001 164 25.2371 164 46.5V46.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 46.5C8 67.763 25.237 85 46.5 85L86 85L86 8.0001L46.5 8.0001C25.237 8.0001 8 25.2371 8 46.5V46.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 123.501C8 144.764 25.237 162.001 46.5 162.001H86L86 85.0011L46.5 85.0011C25.237 85.0011 8 102.238 8 123.501V123.501Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 200.5C8 221.763 25.4854 239 46.7484 239V239C68.2875 239 86 221.539 86 200L86 162H46.5C25.237 162 8 179.237 8 200.5V200.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M86 123.501C86 144.764 103.237 162.001 124.5 162.001H125.5C146.763 162.001 164 144.764 164 123.501V123.501C164 102.238 146.763 85.0011 125.5 85.0011H124.5C103.237 85.0011 86 102.238 86 123.501V123.501Z",stroke:"var(--logo-color)",strokeWidth:"15.081"})]})})}function N6({className:t,...r}){return e.jsx(f.Menu,{className:h(t,"menu"),...r})}function W6({...t}){return e.jsx(f.MenuTrigger,{...t})}function q9({label:t,children:r,icon:o,placement:n,variant:s,...a}){return e.jsxs(W6,{children:[o?e.jsx(o3,{variant:s,"aria-label":t,children:o}):e.jsx(Q,{variant:s,children:t}),e.jsx(E6,{placement:n,children:e.jsx(N6,{...a,children:r})})]})}function E6({...t}){return e.jsx(f.Popover,{...t})}function X9({className:t,...r}){const o=h(t,"menu-item"),n=r.textValue||(typeof r.children=="string"?r.children:void 0);return e.jsx(f.MenuItem,{...r,className:o,textValue:n,children:({hasSubmenu:s})=>e.jsxs(e.Fragment,{children:[r.children,s&&e.jsx(x3,{})]})})}function K9({className:t,...r}){const o=h(t,"menu-header");return e.jsx("div",{...r,className:o})}function Q9({className:t,...r}){const o=h(t,"menu-section");return e.jsx("div",{...r,className:o})}function Y9({className:t,...r}){const o=h(t,"menu-heading");return e.jsx(S3,{...r,className:o})}function J9({className:t,...r}){const o=h(t,"menu-separator");return e.jsx(f.Separator,{...r,className:o})}function es({className:t,...r}){const o=h(t,"menu-label");return e.jsx(G,{...r,className:o})}function ts({className:t,...r}){const o=h(t,"menu-description");return e.jsx(X,{...r,className:o})}function rs({children:t,className:r,...o}){const n=h(r,"menu-shortcut");return e.jsx(I1,{...o,className:n,children:t})}function os({className:t,direction:r="row",...o}){const n=h(t,"navigation",`navigation-direction-${r}`);return e.jsx("nav",{className:n,...o})}function ns({className:t,isSelected:r,...o}){const n=h(t,"navigation-pill");return e.jsx(s3,{"data-selected":r||void 0,className:n,...o})}function ss({children:t,className:r,isSelected:o,icon:n,direction:s="column",size:a="medium",...c}){const l=h(r,"navigation-button",`navigation-button-direction-${s}`,`navigation-button-size-${a}`);return e.jsxs(s3,{"data-selected":o||void 0,className:l,...c,children:[n,t]})}function is({children:t,className:r,isDismissible:o,icon:n,variant:s="message",...a}){const c=h(r,"notification",`notification-variant-${s}`);return e.jsxs("div",{className:c,...a,children:[n&&e.jsx("span",{className:"notification-icon",children:n}),e.jsx("div",{className:"notification-content",children:t}),o&&(s==="alert"?e.jsx(C1,{size:"small",variant:"danger-subtle","aria-label":"Dismiss notification",children:e.jsx(p3,{})}):e.jsx(o3,{size:"small",variant:"subtle","aria-label":"Dismiss notification",children:e.jsx(p3,{})}))]})}function as({message:t,style:r}){return t?e.jsx(b6,{level:"error",message:t,style:{marginBottom:"1rem",...r}}):null}function cs({message:t,style:r}){return t?e.jsx(b6,{level:"success",message:t,style:{marginBottom:"1rem",...r}}):null}const k3={tablet:600,desktop:1024};function g3(t){const[r,o]=d.useMemo(()=>{const n=globalThis.matchMedia(t);function s(c){return n.addEventListener("change",c),()=>n.removeEventListener("change",c)}return[s,()=>n.matches]},[t]);return d.useSyncExternalStore(r,o)}const S6=()=>{const t=g3(`(max-width: ${k3.tablet-1}px)`),r=g3(`(min-width: ${k3.tablet}px) and (max-width: ${k3.desktop-1}px)`),o=g3(`(min-width: ${k3.desktop}px)`),n=g3(`(min-width: ${k3.tablet}px)`),s=g3(`(max-width: ${k3.desktop-1}px)`);return d.useMemo(()=>({isMobile:t,isTablet:r,isDesktop:o,isTabletUp:n,isTabletDown:s}),[t,r,o,n,s])};function ls({"aria-label":t="Page navigation",className:r,...o}){const n=h(r,"pagination");return e.jsx("nav",{"aria-label":t,...o,className:n})}function ds({href:t=null,onPress:r,isDisabled:o=!1,children:n="Previous"}){return e.jsxs(s3,{...t!==null?{href:t}:{},onPress:r,isDisabled:o||t===null&&!r,className:h("pagination-btn","pagination-nav"),"aria-label":"Previous page",children:[e.jsx(g6,{size:"16"}),n]})}function us({href:t=null,onPress:r,isDisabled:o=!1,children:n="Next"}){return e.jsxs(s3,{...t!==null?{href:t}:{},onPress:r,isDisabled:o||t===null&&!r,className:h("pagination-btn","pagination-nav"),"aria-label":"Next page",children:[n,e.jsx(v6,{size:"16"})]})}function hs({children:t}){const{isTabletUp:r}=S6();return r&&e.jsx("span",{className:"pagination-list",children:t})}function ps({href:t,onPress:r,children:o,current:n=!1}){return e.jsx(s3,{...t?{href:t}:{},onPress:r,"aria-label":`Page ${o}`,"aria-current":n?"page":void 0,className:h("pagination-btn",n&&"pagination-btn-active"),children:o})}function fs(){return e.jsx("div",{"aria-hidden":"true",className:"pagination-gap",children:"…"})}function Cs({className:t,label:r,description:o,errorMessage:n,children:s,...a}){const c=h(t,"radio-group");return e.jsxs(f.RadioGroup,{...a,className:c,children:[r&&e.jsx(G,{children:r}),o&&e.jsx(X,{children:o}),n&&e.jsx(e3,{children:n}),s]})}function xs({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"radio-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Radio,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(V1,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function V1({className:t,...r}){const o=h(t,"radio");return e.jsx("div",{className:o,...r,children:e.jsx("span",{"aria-hidden":"true",className:"radio-check"})})}const P1=d.forwardRef(function({className:r,results:o,onSearch:n,...s},a){const[c,l]=d.useState(""),u=d.useRef(null),p=C=>{l(C),n&&n(C)},j=h(r,"search-input-container");return e.jsxs(f.ComboBox,{className:j,children:[e.jsx(G,{hidden:!0,children:s["aria-label"]||"Search"}),e.jsx(V6,{type:"search",className:"search-input",value:c,onInput:C=>p(C.currentTarget.value),ref:C=>{u.current=C,typeof a=="function"?a(C):a&&(a.current=C)},...s}),e.jsx("span",{className:"search-icon",children:c?e.jsx(o3,{"aria-label":"Clear search",onPress:()=>p(""),size:"small",variant:"subtle",children:e.jsx(p3,{})}):e.jsx(o3,{"aria-label":"Clear search",onPress:()=>{var C;return(C=u==null?void 0:u.current)==null?void 0:C.focus()},size:"small",variant:"subtle",children:e.jsx(h1,{})})}),e.jsx(f.Popover,{children:e.jsx(P6,{children:o==null?void 0:o.map(C=>e.jsx($6,{onAction:()=>p(C),children:C},C))})})]})});function js({className:t,label:r,description:o,errorMessage:n,children:s,items:a,...c}){const l=h(t,"select-container");return e.jsx($1,{className:l,...c,children:e.jsxs(T6,{children:[r&&e.jsx(G,{children:r}),e.jsxs(f.Button,{className:"select",children:[e.jsx(f.SelectValue,{className:"select-value"}),e.jsx(x3,{"aria-hidden":"true"})]}),e.jsx(f.Popover,{children:e.jsx(P6,{items:a,children:s})}),o&&e.jsx(X,{children:o}),e.jsx(e3,{children:n})]})})}function $1({...t}){return e.jsx(f.Select,{...t})}function ks({children:t,className:r,...o}){const n=h(r,"select-item"),s=typeof t=="string"?t:"";return e.jsx($6,{textValue:s,className:n,...o,children:e.jsxs(e.Fragment,{children:[e.jsx(G3,{className:"select-item-check"}),t]})})}function gs({name:t,label:r,description:o,showOutput:n,thumbLabels:s,...a}){return e.jsx(N1,{...a,children:e.jsxs(T6,{children:[r&&e.jsx(G,{children:r}),n&&e.jsx(W1,{children:({state:c})=>c.values.map((l,u)=>c.getThumbValueLabel(u)).join(" - ")}),e.jsx(S1,{children:({state:c})=>c.values.map((l,u)=>e.jsx(E1,{name:c.values.length>1?`${t}-${(s==null?void 0:s[u])||u}`:t,index:u,"aria-label":s==null?void 0:s[u]},u))}),o&&e.jsx(X,{children:o})]})})}function N1({className:t,...r}){const o=h(t,"slider-field");return e.jsx(f.Slider,{className:o,...r})}function W1({className:t,...r}){const o=h(t,"slider-output");return e.jsx(f.SliderOutput,{className:o,...r})}function E1({className:t,...r}){const o=h(t,"slider-thumb");return e.jsx(f.SliderThumb,{className:o,...r})}function S1({className:t,...r}){const o=h(t,"slider");return e.jsx(f.SliderTrack,{className:o,...r})}function vs({label:t,children:r,variant:o="primary",size:n="medium",icon:s,isDisabled:a,onPress:c,onAction:l,menuLabel:u="Mais ações",placement:p="bottom end"}){return e.jsxs("div",{className:h("split-button",`split-button-variant-${o}`),children:[e.jsxs(Q,{className:"split-button-action",variant:o,size:n,isDisabled:a,onPress:c,children:[s,t]}),e.jsxs(W6,{children:[e.jsx(Q,{className:"split-button-trigger",variant:o,size:n,isDisabled:a,"aria-label":u,children:e.jsx(x3,{})}),e.jsx(E6,{placement:p,children:e.jsx(N6,{onAction:l,children:r})})]})]})}function Ls({className:t,...r}){const o=h(t,"switch-group");return e.jsx("div",{...r,className:o})}function ms({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"switch-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Switch,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(Z1,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function Z1({className:t,...r}){const o=h(t,"switch");return e.jsx("div",{className:o,...r,children:e.jsx("span",{"aria-hidden":"true",className:"switch-icon"})})}function Ms({className:t,...r}){const o=h(t,"tab");return e.jsx(f.Tab,{className:o,...r})}function bs({className:t,...r}){const o=h(t,"tab-list");return e.jsx(f.TabList,{className:o,...r})}function _s({className:t,...r}){const o=h(t,"tab-panel");return e.jsx(f.TabPanel,{className:o,...r})}function ys({className:t,...r}){const o=h(t,"tabs");return e.jsx(f.Tabs,{className:o,...r})}function D1({bleed:t=!1,dense:r=!1,grid:o=!1,striped:n=!1,className:s,...a}){const c=h(s,"table-container",t&&"table-container-bleed"),l=h("table",t&&"table-bleed",r&&"table-dense",o&&"table-grid",n&&"table-striped");return e.jsx("div",{className:c,children:e.jsx(f.Table,{className:l,...a})})}function L3({align:t="start",className:r,...o}){const n=h(r,"table-column",`table-align-${t}`);return e.jsx(f.Column,{className:n,...o,children:({allowsSorting:s,sortDirection:a})=>e.jsx("div",{className:h("table-column-inner"),children:e.jsxs(e.Fragment,{children:[o.children,s&&e.jsx("span",{"aria-hidden":"true",className:"sort-indicator",children:a==="ascending"?e.jsx(a1,{}):e.jsx(x3,{})})]})})})}function O1({className:t,...r}){return e.jsx(f.TableBody,{...r})}function R1({className:t,columns:r,children:o,...n}){const{selectionBehavior:s,selectionMode:a,allowsDragging:c}=f.useTableOptions(),l=h(t,"table-head");return e.jsxs(f.TableHeader,{className:l,...n,children:[c&&e.jsx(L3,{}),s==="toggle"&&e.jsx(L3,{children:a==="multiple"&&e.jsx(X3,{slot:"selection"})}),e.jsx(f.Collection,{items:r,children:o})]})}function c6({id:t,columns:r,children:o,className:n,...s}){const{selectionBehavior:a,allowsDragging:c}=f.useTableOptions(),l=h(n,"table-row");return e.jsxs(f.Row,{id:t,...s,className:l,children:[c&&e.jsx(h3,{children:e.jsx(f.Button,{slot:"drag",children:"≡"})}),a==="toggle"&&e.jsx(h3,{children:e.jsx(X3,{slot:"selection"})}),e.jsx(f.Collection,{items:r,children:o})]})}function h3({align:t="start",className:r,...o}){const n=h(r,"table-cell",`table-align-${t}`);return e.jsx(f.Cell,{className:n,...o})}function Is({children:t,scheme:r="brand",variant:o="primary",onRemove:n,...s}){const a=h("tag",`tag-scheme-${r}`,`tag-variant-${o}`);return e.jsxs("span",{...s,className:a,children:[t," ",n&&e.jsx(f.Button,{className:"tag-remove-button",onPress:n,children:e.jsx(p3,{size:"16"})})]})}const ws=d.forwardRef(function({className:r,scheme:o="brand",variant:n="primary",...s},a){const c=h(r,"tag","tag-button",`tag-scheme-${o}`,`tag-variant-${n}`);return e.jsx(s3,{...s,className:c,ref:a})});function Hs({children:t,className:r,iconStart:o,textValue:n,...s}){const a=h(r,"tag","tag-toggle");return n=n||(typeof t=="string"?t:(t||"").toString()),e.jsx(f.Tag,{className:a,textValue:n,...s,children:e.jsxs(e.Fragment,{children:[o,t]})})}function Ts({className:t,...r}){const o=h(t,"tag-toggle-group");return e.jsx(f.TagGroup,{className:o,...r})}function Vs({className:t,...r}){const o=h(t,"tag-toggle-list");return e.jsx(f.TagList,{className:o,...r})}var W3=t=>typeof t=="number"&&!isNaN(t),f3=t=>typeof t=="string",n3=t=>typeof t=="function",Ps=t=>f3(t)||W3(t),l6=t=>f3(t)||n3(t)?t:null,$s=(t,r)=>t===!1||W3(t)&&t>0?t:r,d6=t=>d.isValidElement(t)||f3(t)||n3(t)||W3(t);function Ns(t,r,o=300){let{scrollHeight:n,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=n+"px",s.transition=`all ${o}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(r,o)})})}function Ws({enter:t,exit:r,appendPosition:o=!1,collapse:n=!0,collapseDuration:s=300}){return function({children:a,position:c,preventExitTransition:l,done:u,nodeRef:p,isIn:j,playToast:C}){let m=o?`${t}--${c}`:t,M=o?`${r}--${c}`:r,b=d.useRef(0);return d.useLayoutEffect(()=>{let x=p.current,v=m.split(" "),_=k=>{k.target===p.current&&(C(),x.removeEventListener("animationend",_),x.removeEventListener("animationcancel",_),b.current===0&&k.type!=="animationcancel"&&x.classList.remove(...v))};x.classList.add(...v),x.addEventListener("animationend",_),x.addEventListener("animationcancel",_)},[]),d.useEffect(()=>{let x=p.current,v=()=>{x.removeEventListener("animationend",v),n?Ns(x,u,s):u()};j||(l?v():(b.current=1,x.className+=` ${M}`,x.addEventListener("animationend",v)))},[j]),d.createElement(d.Fragment,null,a)}}function K6(t,r){return{content:A1(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:r}}function A1(t,r,o=!1){return d.isValidElement(t)&&!f3(t.type)?d.cloneElement(t,{closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:o}):n3(t)?t({closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:o}):t}function Es({closeToast:t,theme:r,ariaLabel:o="close"}){return d.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:n=>{n.stopPropagation(),t(!0)},"aria-label":o},d.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},d.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Ss({delay:t,isRunning:r,closeToast:o,type:n="default",hide:s,className:a,controlledProgress:c,progress:l,rtl:u,isIn:p,theme:j}){let C=s||c&&l===0,m={animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};c&&(m.transform=`scaleX(${l})`);let M=h("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${j}`,`Toastify__progress-bar--${n}`,{"Toastify__progress-bar--rtl":u}),b=n3(a)?a({rtl:u,type:n,defaultClassName:M}):h(M,a),x={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{p&&o()}};return d.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},d.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${j} Toastify__progress-bar--${n}`}),d.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer","aria-valuenow":c?Math.round(l*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:b,style:m,...x}))}var Zs=1,F1=()=>`${Zs++}`;function Ds(t,r,o){let n=1,s=0,a=[],c=[],l=r,u=new Map,p=new Set,j=k=>(p.add(k),()=>p.delete(k)),C=()=>{c=Array.from(u.values()),p.forEach(k=>k())},m=({containerId:k,toastId:g,updateId:I})=>{let w=k?k!==t:t!==1,P=u.has(g)&&I==null;return w||P},M=(k,g)=>{u.forEach(I=>{var w;(g==null||g===I.props.toastId)&&((w=I.toggle)==null||w.call(I,k))})},b=k=>{var g,I;k.isActive&&((I=(g=k.props)==null?void 0:g.onClose)==null||I.call(g,k.removalReason),k.isActive=!1,o(K6(k,"removed")))},x=k=>{if(k==null)u.forEach(b);else{let g=u.get(k);g&&b(g)}C()},v=()=>{s-=a.length,a=[]},_=k=>{var g,I;let{toastId:w,updateId:P}=k.props,L=P==null;k.staleId&&u.delete(k.staleId),k.isActive=!0,u.set(w,k),C(),o(K6(k,L?"added":"updated")),L&&((I=(g=k.props).onOpen)==null||I.call(g))};return{id:t,props:l,observe:j,toggle:M,removeToast:x,toasts:u,clearQueue:v,buildToast:(k,g)=>{if(m(g))return;let{toastId:I,updateId:w,data:P,staleId:L,delay:V}=g,W=w==null;W&&s++;let H={...l,style:l.toastStyle,key:n++,...Object.fromEntries(Object.entries(g).filter(([z,R])=>R!=null)),toastId:I,updateId:w,data:P,isIn:!1,className:l6(g.className||l.toastClassName),progressClassName:l6(g.progressClassName||l.progressClassName),autoClose:g.isLoading?!1:$s(g.autoClose,l.autoClose),closeToast(z){let R=u.get(I);R&&(R.removalReason=z,x(I))},deleteToast(){if(u.get(I)!=null){if(u.delete(I),s--,s<0&&(s=0),a.length>0){_(a.shift());return}C()}}};H.closeButton=l.closeButton,g.closeButton===!1||d6(g.closeButton)?H.closeButton=g.closeButton:g.closeButton===!0&&(H.closeButton=d6(l.closeButton)?l.closeButton:!0);let D={content:k,props:H,staleId:L};l.limit&&l.limit>0&&s>l.limit&&W?a.push(D):W3(V)?setTimeout(()=>{_(D)},V):_(D)},setProps(k){l=k},setToggle:(k,g)=>{let I=u.get(k);I&&(I.toggle=g)},isToastActive:k=>{var g;return(g=u.get(k))==null?void 0:g.isActive},getSnapshot:()=>c}}var F=new Map,P3=[],u6=new Set,Os=t=>u6.forEach(r=>r(t)),B1=()=>F.size>0;function Rs(){P3.forEach(t=>U1(t.content,t.options)),P3=[]}var As=(t,{containerId:r})=>{var o;return(o=F.get(r||1))==null?void 0:o.toasts.get(t)};function z1(t,r){var o;if(r)return!!((o=F.get(r))!=null&&o.isToastActive(t));let n=!1;return F.forEach(s=>{s.isToastActive(t)&&(n=!0)}),n}function Fs(t){if(!B1()){P3=P3.filter(r=>t!=null&&r.options.toastId!==t);return}if(t==null||Ps(t))F.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let r=F.get(t.containerId);r?r.removeToast(t.id):F.forEach(o=>{o.removeToast(t.id)})}}var Bs=(t={})=>{F.forEach(r=>{r.props.limit&&(!t.containerId||r.id===t.containerId)&&r.clearQueue()})};function U1(t,r){d6(t)&&(B1()||P3.push({content:t,options:r}),F.forEach(o=>{o.buildToast(t,r)}))}function zs(t){var r;(r=F.get(t.containerId||1))==null||r.setToggle(t.id,t.fn)}function G1(t,r){F.forEach(o=>{(r==null||!(r!=null&&r.containerId)||(r==null?void 0:r.containerId)===o.id)&&o.toggle(t,r==null?void 0:r.id)})}function Us(t){let r=t.containerId||1;return{subscribe(o){let n=Ds(r,t,Os);F.set(r,n);let s=n.observe(o);return Rs(),()=>{s(),F.delete(r)}},setProps(o){var n;(n=F.get(r))==null||n.setProps(o)},getSnapshot(){var o;return(o=F.get(r))==null?void 0:o.getSnapshot()}}}function Gs(t){return u6.add(t),()=>{u6.delete(t)}}function qs(t){return t&&(f3(t.toastId)||W3(t.toastId))?t.toastId:F1()}function E3(t,r){return U1(t,r),r.toastId}function Y3(t,r){return{...r,type:r&&r.type||t,toastId:qs(r)}}function J3(t){return(r,o)=>E3(r,Y3(t,o))}function E(t,r){return E3(t,Y3("default",r))}E.loading=(t,r)=>E3(t,Y3("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...r}));function Xs(t,{pending:r,error:o,success:n},s){let a;r&&(a=f3(r)?E.loading(r,s):E.loading(r.render,{...s,...r}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(p,j,C)=>{if(j==null){E.dismiss(a);return}let m={type:p,...c,...s,data:C},M=f3(j)?{render:j}:j;return a?E.update(a,{...m,...M}):E(M.render,{...m,...M}),C},u=n3(t)?t():t;return u.then(p=>l("success",n,p)).catch(p=>l("error",o,p)),u}E.promise=Xs;E.success=J3("success");E.info=J3("info");E.error=J3("error");E.warning=J3("warning");E.warn=E.warning;E.dark=(t,r)=>E3(t,Y3("default",{theme:"dark",...r}));function Ks(t){Fs(t)}E.dismiss=Ks;E.clearWaitingQueue=Bs;E.isActive=z1;E.update=(t,r={})=>{let o=As(t,r);if(o){let{props:n,content:s}=o,a={delay:100,...n,...r,toastId:r.toastId||t,updateId:F1()};a.toastId!==t&&(a.staleId=t);let c=a.render||s;delete a.render,E3(c,a)}};E.done=t=>{E.update(t,{progress:1})};E.onChange=Gs;E.play=t=>G1(!0,t);E.pause=t=>G1(!1,t);function Qs(t){var r;let{subscribe:o,getSnapshot:n,setProps:s}=d.useRef(Us(t)).current;s(t);let a=(r=d.useSyncExternalStore(o,n,n))==null?void 0:r.slice();function c(l){if(!a)return[];let u=new Map;return t.newestOnTop&&a.reverse(),a.forEach(p=>{let{position:j}=p.props;u.has(j)||u.set(j,[]),u.get(j).push(p)}),Array.from(u,p=>l(p[0],p[1]))}return{getToastToRender:c,isToastActive:z1,count:a==null?void 0:a.length}}function Ys(t){let[r,o]=d.useState(!1),[n,s]=d.useState(!1),a=d.useRef(null),c=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:p,onClick:j,closeOnClick:C}=t;zs({id:t.toastId,containerId:t.containerId,fn:o}),d.useEffect(()=>{if(t.pauseOnFocusLoss)return m(),()=>{M()}},[t.pauseOnFocusLoss]);function m(){document.hasFocus()||_(),window.addEventListener("focus",v),window.addEventListener("blur",_)}function M(){window.removeEventListener("focus",v),window.removeEventListener("blur",_)}function b(L){if(t.draggable===!0||t.draggable===L.pointerType){k();let V=a.current;c.canCloseOnClick=!0,c.canDrag=!0,V.style.transition="none",t.draggableDirection==="x"?(c.start=L.clientX,c.removalDistance=V.offsetWidth*(t.draggablePercent/100)):(c.start=L.clientY,c.removalDistance=V.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function x(L){let{top:V,bottom:W,left:H,right:D}=a.current.getBoundingClientRect();L.pointerType==="mouse"&&t.pauseOnHover&&L.clientX>=H&&L.clientX<=D&&L.clientY>=V&&L.clientY<=W?_():v()}function v(){o(!0)}function _(){o(!1)}function k(){c.didMove=!1,document.addEventListener("pointermove",I),document.addEventListener("pointerup",w)}function g(){document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",w)}function I(L){let V=a.current;if(c.canDrag&&V){c.didMove=!0,r&&_(),t.draggableDirection==="x"?c.delta=L.clientX-c.start:c.delta=L.clientY-c.start,c.start!==L.clientX&&(c.canCloseOnClick=!1);let W=t.draggableDirection==="x"?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;V.style.transform=`translate3d(${W},0)`,V.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function w(){g();let L=a.current;if(c.canDrag&&c.didMove&&L){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){s(!0),t.closeToast(!0),t.collapseAll();return}L.style.transition="transform 0.2s, opacity 0.2s",L.style.removeProperty("transform"),L.style.removeProperty("opacity")}}let P={onPointerDown:b,onPointerUp:x};return l&&u&&(P.onMouseEnter=_,t.stacked||(P.onMouseLeave=v)),C&&(P.onClick=L=>{j&&j(L),c.canCloseOnClick&&p(!0)}),{playToast:v,pauseToast:_,isRunning:r,preventExitTransition:n,toastRef:a,eventHandlers:P}}var q1=typeof window<"u"?d.useLayoutEffect:d.useEffect,e6=({theme:t,type:r,isLoading:o,...n})=>d.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n});function Js(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function e2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function t2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function r2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function o2(){return d.createElement("div",{className:"Toastify__spinner"})}var h6={info:e2,warning:Js,success:t2,error:r2,spinner:o2},n2=t=>t in h6;function s2({theme:t,type:r,isLoading:o,icon:n}){let s=null,a={theme:t,type:r};return n===!1||(n3(n)?s=n({...a,isLoading:o}):d.isValidElement(n)?s=d.cloneElement(n,a):o?s=h6.spinner():n2(r)&&(s=h6[r](a))),s}var i2=t=>{let{isRunning:r,preventExitTransition:o,toastRef:n,eventHandlers:s,playToast:a}=Ys(t),{closeButton:c,children:l,autoClose:u,onClick:p,type:j,hideProgressBar:C,closeToast:m,transition:M,position:b,className:x,style:v,progressClassName:_,updateId:k,role:g,progress:I,rtl:w,toastId:P,deleteToast:L,isIn:V,isLoading:W,closeOnClick:H,theme:D,ariaLabel:z}=t,R=h("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${j}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":H}),K=n3(x)?x({rtl:w,position:b,type:j,defaultClassName:R}):h(R,x),y=s2(t),$=!!I||!u,B={closeToast:m,type:j,theme:D},A=null;return c===!1||(n3(c)?A=c(B):d.isValidElement(c)?A=d.cloneElement(c,B):A=Es(B)),d.createElement(M,{isIn:V,done:L,position:b,preventExitTransition:o,nodeRef:n,playToast:a},d.createElement("div",{id:P,tabIndex:0,onClick:p,"data-in":V,className:K,...s,style:v,ref:n,...V&&{role:g,"aria-label":z}},y!=null&&d.createElement("div",{className:h("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!W})},y),A1(l,t,!r),A,!t.customProgressBar&&d.createElement(Ss,{...k&&!$?{key:`p-${k}`}:{},rtl:w,theme:D,delay:u,isRunning:r,isIn:V,closeToast:m,hide:C,type:j,className:_,controlledProgress:$,progress:I||0})))},a2=(t,r=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:r}),c2=Ws(a2("bounce",!0)),l2={position:"top-right",transition:c2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function d2(t){let r={...l2,...t},o=t.stacked,[n,s]=d.useState(!0),a=d.useRef(null),{getToastToRender:c,isToastActive:l,count:u}=Qs(r),{className:p,style:j,rtl:C,containerId:m,hotKeys:M}=r;function b(v){let _=h("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":C});return n3(p)?p({position:v,rtl:C,defaultClassName:_}):h(_,l6(p))}function x(){o&&(s(!0),E.play())}return q1(()=>{var v;if(o){let _=a.current.querySelectorAll('[data-in="true"]'),k=12,g=(v=r.position)==null?void 0:v.includes("top"),I=0,w=0;Array.from(_).reverse().forEach((P,L)=>{let V=P;V.classList.add("Toastify__toast--stacked"),L>0&&(V.dataset.collapsed=`${n}`),V.dataset.pos||(V.dataset.pos=g?"top":"bot");let W=I*(n?.2:1)+(n?0:k*L),H=Math.max(.5,1-(n?w:0));V.style.setProperty("--y",`${g?W:W*-1}px`),V.style.setProperty("--g",`${k}`),V.style.setProperty("--s",`${H}`),I+=V.offsetHeight,w+=.025})}},[n,u,o]),d.useEffect(()=>{function v(_){var k;let g=a.current;M(_)&&((k=g==null?void 0:g.querySelector('[tabIndex="0"]'))==null||k.focus(),s(!1),E.pause()),_.key==="Escape"&&(document.activeElement===g||g!=null&&g.contains(document.activeElement))&&(s(!0),E.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[M]),d.createElement("section",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{o&&(s(!1),E.pause())},onMouseLeave:x,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":r["aria-label"]},c((v,_)=>{let k=_.length?{...j}:{...j,pointerEvents:"none"};return d.createElement("div",{tabIndex:-1,className:b(v),"data-stacked":o,style:k,key:`c-${v}`},_.map(({content:g,props:I})=>d.createElement(i2,{...I,stacked:o,collapseAll:x,isIn:l(I.toastId,I.containerId),key:`t-${I.key}`},g)))}))}var u2=`:root {
|
|
11
|
+
`},X6=B0(q0)(x1),X0={config:U0},K0=function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return function(s){return o.reduceRight(function(a,c){return c(a)},s)}};function j1(t,r){return Object.keys(r).forEach(function(o){r[o]instanceof Object&&t[o]&&Object.assign(r[o],j1(t[o],r[o]))}),U6(U6({},t),r)}var Q0={type:"cancelation",msg:"operation is manually canceled"};function o6(t){var r=!1,o=new Promise(function(n,s){t.then(function(a){return r?s(Q0):n(a)}),t.catch(s)});return o.cancel=function(){return r=!0},o}var Y0=["monaco"],J0=A0.create({config:F0,isInitialized:!1,resolve:null,reject:null,monaco:null}),k1=b0(J0,2),N3=k1[0],q3=k1[1];function e9(t){var r=X0.config(t),o=r.monaco,n=m0(r,Y0);q3(function(s){return{config:j1(s.config,n),monaco:o}})}function t9(){var t=N3(function(r){var o=r.monaco,n=r.isInitialized,s=r.resolve;return{monaco:o,isInitialized:n,resolve:s}});if(!t.isInitialized){if(q3({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),o6(n6);if(window.monaco&&window.monaco.editor)return g1(window.monaco),t.resolve(window.monaco),o6(n6);K0(r9,n9)(s9)}return o6(n6)}function r9(t){return document.body.appendChild(t)}function o9(t){var r=document.createElement("script");return t&&(r.src=t),r}function n9(t){var r=N3(function(n){var s=n.config,a=n.reject;return{config:s,reject:a}}),o=o9("".concat(r.config.paths.vs,"/loader.js"));return o.onload=function(){return t()},o.onerror=r.reject,o}function s9(){var t=N3(function(o){var n=o.config,s=o.resolve,a=o.reject;return{config:n,resolve:s,reject:a}}),r=window.require;r.config(t.config),r(["vs/editor/editor.main"],function(o){var n=o.m||o;g1(n),t.resolve(n)},function(o){t.reject(o)})}function g1(t){N3().monaco||q3({monaco:t})}function i9(){return N3(function(t){var r=t.monaco;return r})}var n6=new Promise(function(t,r){return q3({resolve:t,reject:r})}),v1={config:e9,init:t9,__getMonacoInstance:i9},a9={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},s6=a9,c9={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},l9=c9;function d9({children:t}){return d.createElement("div",{style:l9.container},t)}var u9=d9,h9=u9;function p9({width:t,height:r,isEditorReady:o,loading:n,_ref:s,className:a,wrapperProps:c}){return d.createElement("section",{style:{...s6.wrapper,width:t,height:r},...c},!o&&d.createElement(h9,null,n),d.createElement("div",{ref:s,style:{...s6.fullWidth,...!o&&s6.hide},className:a}))}var f9=p9,L1=d.memo(f9);function C9(t){d.useEffect(t,[])}var m1=C9;function x9(t,r,o=!0){let n=d.useRef(!0);d.useEffect(n.current||!o?()=>{n.current=!1}:t,r)}var U=x9;function H3(){}function v3(t,r,o,n){return j9(t,n)||k9(t,r,o,n)}function j9(t,r){return t.editor.getModel(M1(t,r))}function k9(t,r,o,n){return t.editor.createModel(r,o,n?M1(t,n):void 0)}function M1(t,r){return t.Uri.parse(r)}function g9({original:t,modified:r,language:o,originalLanguage:n,modifiedLanguage:s,originalModelPath:a,modifiedModelPath:c,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:p="light",loading:j="Loading...",options:C={},height:m="100%",width:M="100%",className:b,wrapperProps:x={},beforeMount:v=H3,onMount:_=H3}){let[k,g]=d.useState(!1),[I,w]=d.useState(!0),P=d.useRef(null),L=d.useRef(null),V=d.useRef(null),W=d.useRef(_),H=d.useRef(v),D=d.useRef(!1);m1(()=>{let y=v1.init();return y.then($=>(L.current=$)&&w(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>P.current?K():y.cancel()}),U(()=>{if(P.current&&L.current){let y=P.current.getOriginalEditor(),$=v3(L.current,t||"",n||o||"text",a||"");$!==y.getModel()&&y.setModel($)}},[a],k),U(()=>{if(P.current&&L.current){let y=P.current.getModifiedEditor(),$=v3(L.current,r||"",s||o||"text",c||"");$!==y.getModel()&&y.setModel($)}},[c],k),U(()=>{let y=P.current.getModifiedEditor();y.getOption(L.current.editor.EditorOption.readOnly)?y.setValue(r||""):r!==y.getValue()&&(y.executeEdits("",[{range:y.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),y.pushUndoStop())},[r],k),U(()=>{var y,$;($=(y=P.current)==null?void 0:y.getModel())==null||$.original.setValue(t||"")},[t],k),U(()=>{let{original:y,modified:$}=P.current.getModel();L.current.editor.setModelLanguage(y,n||o||"text"),L.current.editor.setModelLanguage($,s||o||"text")},[o,n,s],k),U(()=>{var y;(y=L.current)==null||y.editor.setTheme(p)},[p],k),U(()=>{var y;(y=P.current)==null||y.updateOptions(C)},[C],k);let z=d.useCallback(()=>{var B;if(!L.current)return;H.current(L.current);let y=v3(L.current,t||"",n||o||"text",a||""),$=v3(L.current,r||"",s||o||"text",c||"");(B=P.current)==null||B.setModel({original:y,modified:$})},[o,r,s,t,n,a,c]),R=d.useCallback(()=>{var y;!D.current&&V.current&&(P.current=L.current.editor.createDiffEditor(V.current,{automaticLayout:!0,...C}),z(),(y=L.current)==null||y.editor.setTheme(p),g(!0),D.current=!0)},[C,p,z]);d.useEffect(()=>{k&&W.current(P.current,L.current)},[k]),d.useEffect(()=>{!I&&!k&&R()},[I,k,R]);function K(){var $,B,A,t3;let y=($=P.current)==null?void 0:$.getModel();l||((B=y==null?void 0:y.original)==null||B.dispose()),u||((A=y==null?void 0:y.modified)==null||A.dispose()),(t3=P.current)==null||t3.dispose()}return d.createElement(L1,{width:M,height:m,isEditorReady:k,loading:j,_ref:V,className:b,wrapperProps:x})}var v9=g9;d.memo(v9);function L9(t){let r=d.useRef();return d.useEffect(()=>{r.current=t},[t]),r.current}var m9=L9,D3=new Map;function M9({defaultValue:t,defaultLanguage:r,defaultPath:o,value:n,language:s,path:a,theme:c="light",line:l,loading:u="Loading...",options:p={},overrideServices:j={},saveViewState:C=!0,keepCurrentModel:m=!1,width:M="100%",height:b="100%",className:x,wrapperProps:v={},beforeMount:_=H3,onMount:k=H3,onChange:g,onValidate:I=H3}){let[w,P]=d.useState(!1),[L,V]=d.useState(!0),W=d.useRef(null),H=d.useRef(null),D=d.useRef(null),z=d.useRef(k),R=d.useRef(_),K=d.useRef(),y=d.useRef(n),$=m9(a),B=d.useRef(!1),A=d.useRef(!1);m1(()=>{let N=v1.init();return N.then(Z=>(W.current=Z)&&V(!1)).catch(Z=>(Z==null?void 0:Z.type)!=="cancelation"&&console.error("Monaco initialization: error:",Z)),()=>H.current?b3():N.cancel()}),U(()=>{var Z,T,S,O;let N=v3(W.current,t||n||"",r||s||"",a||o||"");N!==((Z=H.current)==null?void 0:Z.getModel())&&(C&&D3.set($,(T=H.current)==null?void 0:T.saveViewState()),(S=H.current)==null||S.setModel(N),C&&((O=H.current)==null||O.restoreViewState(D3.get(a))))},[a],w),U(()=>{var N;(N=H.current)==null||N.updateOptions(p)},[p],w),U(()=>{!H.current||n===void 0||(H.current.getOption(W.current.editor.EditorOption.readOnly)?H.current.setValue(n):n!==H.current.getValue()&&(A.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),H.current.pushUndoStop(),A.current=!1))},[n],w),U(()=>{var Z,T;let N=(Z=H.current)==null?void 0:Z.getModel();N&&s&&((T=W.current)==null||T.editor.setModelLanguage(N,s))},[s],w),U(()=>{var N;l!==void 0&&((N=H.current)==null||N.revealLine(l))},[l],w),U(()=>{var N;(N=W.current)==null||N.editor.setTheme(c)},[c],w);let t3=d.useCallback(()=>{var N;if(!(!D.current||!W.current)&&!B.current){R.current(W.current);let Z=a||o,T=v3(W.current,n||t||"",r||s||"",Z||"");H.current=(N=W.current)==null?void 0:N.editor.create(D.current,{model:T,automaticLayout:!0,...p},j),C&&H.current.restoreViewState(D3.get(Z)),W.current.editor.setTheme(c),l!==void 0&&H.current.revealLine(l),P(!0),B.current=!0}},[t,r,o,n,s,a,p,j,C,c,l]);d.useEffect(()=>{w&&z.current(H.current,W.current)},[w]),d.useEffect(()=>{!L&&!w&&t3()},[L,w,t3]),y.current=n,d.useEffect(()=>{var N,Z;w&&g&&((N=K.current)==null||N.dispose(),K.current=(Z=H.current)==null?void 0:Z.onDidChangeModelContent(T=>{A.current||g(H.current.getValue(),T)}))},[w,g]),d.useEffect(()=>{if(w){let N=W.current.editor.onDidChangeMarkers(Z=>{var S;let T=(S=H.current.getModel())==null?void 0:S.uri;if(T&&Z.find(O=>O.path===T.path)){let O=W.current.editor.getModelMarkers({resource:T});I==null||I(O)}});return()=>{N==null||N.dispose()}}return()=>{}},[w,I]);function b3(){var N,Z;(N=K.current)==null||N.dispose(),m?C&&D3.set(a,H.current.saveViewState()):(Z=H.current.getModel())==null||Z.dispose(),H.current.dispose()}return d.createElement(L1,{width:M,height:b,isEditorReady:w,loading:u,_ref:D,className:x,wrapperProps:v})}var b9=M9,_9=d.memo(b9),y9=_9;function _6({value:t,defaultValue:r,onChange:o,language:n="javascript",theme:s="vs",height:a="300px",isDisabled:c=!1,isReadOnly:l=!1,options:u,className:p,editorRef:j}){const[C,m]=d.useState(!1),M=d.useRef(null);function b(v,_){j&&(j.current=v),v.onDidFocusEditorWidget(()=>m(!0)),v.onDidBlurEditorWidget(()=>m(!1))}const x=h("code-editor-wrapper",p,{"code-editor-focused":C,"code-editor-disabled":c});return e.jsx("div",{ref:M,className:x,"data-disabled":c||void 0,style:{height:a},children:e.jsx(y9,{height:"100%",value:t,defaultValue:r,language:n,theme:s,onChange:o,onMount:b,loading:e.jsx("div",{className:"code-editor-loading"}),options:{readOnly:l||c,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbersMinChars:3,...u}})})}function I9({className:t,label:r,description:o,errorMessage:n,...s}){const a=d.useId(),c=h(t,"field");return e.jsxs("div",{className:c,children:[r&&e.jsx(G,{htmlFor:a,children:r}),e.jsx(_6,{...s}),o&&e.jsx(X,{children:o}),n&&typeof n=="string"&&e.jsx(e3,{children:n})]})}const w9="Clique no editor e pressione F1 para visualizar os atalhos do teclado";function H9({title:t,shortcutHint:r=w9,onBeautify:o,className:n,isDisabled:s=!1,isReadOnly:a=!1,...c}){const l=d.useRef(null),u=!s&&!a;function p(){var j,C;if(o){o();return}(C=(j=l.current)==null?void 0:j.getAction("editor.action.formatDocument"))==null||C.run()}return e.jsxs("div",{className:h("code-editor-panel",n),children:[u&&e.jsxs("div",{className:"code-editor-panel-header",children:[e.jsxs("div",{className:"code-editor-panel-title-group",children:[e.jsx("span",{className:"code-editor-panel-title",children:t}),r&&e.jsxs("span",{className:"code-editor-panel-hint",children:["(",r,")"]})]}),e.jsx(Q,{size:"small",variant:"primary",onPress:p,children:"Beautify"})]}),e.jsx(_6,{...c,isDisabled:s,isReadOnly:a,editorRef:l})]})}function T9(t){return"href"in t}const s3=d.forwardRef(function(r,o){return T9(r)?e.jsx(f.Link,{...r,className:r.className,ref:o,children:r.children}):e.jsx(f.Button,{...r,className:r.className,ref:o,children:r.children})});function b1({initials:t,src:r,alt:o}){return e.jsxs(e.Fragment,{children:[t&&e.jsxs("svg",{viewBox:"0 0 100 100","aria-hidden":o?void 0:"true",children:[o&&e.jsx("title",{children:o}),e.jsx("text",{x:"50%",y:"50%",alignmentBaseline:"middle",dominantBaseline:"middle",textAnchor:"middle",dy:".125em",children:t})]}),r&&e.jsx("img",{src:r,alt:o})]})}function V9({className:t,src:r=null,square:o=!1,initials:n,alt:s="",size:a="medium",...c}){const l=h(t,"avatar",`avatar-size-${a}`,`avatar-shape-${o?"square":"circle"}`,r?"avatar-image":"avatar-initials");return e.jsx("span",{className:l,...c,children:b1({initials:n,src:r,alt:s})})}const P9=d.forwardRef(function({className:r,src:o=null,square:n=!1,initials:s,alt:a="",size:c="medium",...l},u){const p=h(r,"avatar","avatar-button",`avatar-size-${c}`,`avatar-shape-${n?"square":"circle"}`,o?"avatar-image":"avatar-initials");return e.jsx(s3,{...l,className:p,ref:u,children:b1({initials:s,src:o,alt:a})})}),$9=({className:t,children:r,title:o,description:n,...s})=>{const a=h(t,"avatar-block");return e.jsxs("div",{className:a,...s,children:[r,e.jsx(K1,{slot:"label",children:o}),n&&e.jsx($3,{slot:"description",children:n})]})},N9=({className:t,children:r,max:o=3,spacing:n="200",...s})=>{const a=h(t,"avatar-group",`avatar-group-spacing-${n}`),c=d.Children.toArray(r),l=c.length,u=Math.max(0,l-o),p=c.splice(0,l-u);return e.jsxs("div",{className:a,...s,children:[p,u>0&&e.jsxs("span",{className:"avatar-group-overflow",children:["+",u]})]})},Q=d.forwardRef(function({className:r,size:o="medium",variant:n="primary",...s},a){const c=h(r,"button",`button-size-${o}`,`button-variant-${n}`),{style:l,...u}=s;return _1(s)?e.jsx(f.Link,{...u,className:c,ref:a,children:s.children}):e.jsx(f.Button,{...u,className:c,ref:a,children:s.children})}),y6=d.forwardRef(function({className:r,size:o="medium",variant:n="danger-primary",...s},a){const c=h(r,"button",`button-size-${o}`,`button-variant-${n}`),{style:l,...u}=s;return _1(s)?e.jsx(f.Link,{...u,className:c,ref:a,children:s.children}):e.jsx(f.Button,{...u,className:c,ref:a,children:s.children})});function _1(t){return"href"in t}const W9=({align:t="start",className:r,...o})=>{const n=h(r,"button-group",`button-group-align-${t}`);return e.jsx("div",{className:n,...o})};function E9({className:t,label:r,description:o,errorMessage:n,children:s,...a}){const c=h(t,"checkbox-group");return e.jsxs(f.CheckboxGroup,{...a,className:c,children:[r&&e.jsx(G,{children:r}),o&&e.jsx(X,{children:o}),n&&e.jsx(e3,{children:n}),s]})}function S9({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"checkbox-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Checkbox,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(X3,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function X3({className:t,...r}){const o=h(t,"checkbox");return e.jsxs("div",{className:o,...r,children:[e.jsx(u1,{"aria-hidden":"true",className:"icon-indeterminate",size:"16"}),e.jsx(G3,{"aria-hidden":"true",className:"icon-selected",size:"16"})]})}function K3({className:t,type:r="card",...o}){const n=h(t,"dialog",`dialog-type-${r}`);return e.jsx(f.Dialog,{className:n,...o})}const I6=({onPress:t})=>e.jsx(o3,{className:"dialog-close","aria-label":"Dismiss dialog",onPress:t,variant:"subtle",size:"small",children:e.jsx(p3,{})});function y1({...t}){return e.jsx(f.DialogTrigger,{...t})}function Z9({label:t,icon:r,variant:o,children:n,...s}){return e.jsxs(y1,{children:[r?e.jsx(o3,{variant:o,"aria-label":t,children:r}):e.jsx(Q,{variant:o,children:t}),e.jsx(Q3,{isDismissable:!0,children:e.jsx(K3,{...s,children:n})})]})}function w6({className:t,...r}){const o=h(t,"dialog-title");return e.jsx(S3,{...r,slot:"title",className:o})}function D9({className:t,...r}){const o=h(t,"dialog-description");return e.jsx($3,{...r,className:o})}function H6({bleed:t,className:r,...o}){const n=h(r,"dialog-body",t&&"dialog-body-bleed");return e.jsx("div",{...o,className:n})}function Q3({children:t,className:r,isDismissable:o,...n}){const s=h(r,"dialog-backdrop");return e.jsx(f.ModalOverlay,{className:s,...n,children:e.jsx(f.Modal,{className:"dialog-container",children:t})})}function O9({orientation:t="horizontal",className:r,...o}){return e.jsx("hr",{"aria-orientation":t,className:h("divider",`divider-${t}`,r),...o})}function R9({...t}){const r=h("fieldset");return e.jsx("fieldset",{...t,className:r})}function A9({...t}){const r=h("legend");return e.jsx("legend",{...t,className:r})}function F9({...t}){const r=h("field-group");return e.jsx("div",{...t,className:r})}function B9({className:t,singleLine:r,...o}){const n=h(t,"form",r&&"form-single-line");return e.jsx(f.Form,{className:n,...o})}function z9(t){const r=s=>Array.isArray(s),o=new FormData(t),n={};return o.forEach((s,a)=>{if(!Reflect.has(n,a)){n[a]=s;return}const c=n[a];r(c)?c.push(s):n[a]=[c,s]}),n}function T6({className:t,...r}){const o=h(t,"field");return e.jsx("div",{className:o,...r})}function G({className:t,...r}){const o=h(t,"label");return e.jsx(f.Label,{className:o,slot:"label",...r})}function X({className:t,...r}){const o=h(t,"description");return e.jsx(f.Text,{className:o,slot:"description",...r})}function e3({className:t,...r}){const o=h(t,"error-message");return e.jsx(f.FieldError,{...r,className:o})}function I1({className:t,children:r,...o}){const n=h(t,"keyboard"),s=typeof r=="string"?r.split("").map(a=>e.jsx("kbd",{children:a},a)):r;return e.jsx(f.Keyboard,{...o,className:n,children:s})}function i({size:t="16",children:r,className:o}){return e.jsx("svg",{className:h(o,"icon",`icon-size-${t}`),width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r})}function w1({aspectRatio:t="natural",className:r,size:o="natural",variant:n="rounded",...s}){const[a,c]=d.useState(!1),l=h(r,"image",`image-aspect-ratio-${t}`,`image-size-${o}`,`image-variant-${n}`,!a&&"image-loading");return e.jsxs(e.Fragment,{children:[!a&&e.jsx("span",{className:h("image-placeholder",l)}),s.src&&e.jsx("img",{className:l,...s,onLoad:()=>c(!0)})]})}function U9({className:t,...r}){const o=h(t,"picture");return e.jsx("picture",{className:o,...r})}function G9({...t}){return e.jsx("source",{...t})}function H1({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(V6,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const V6=d.forwardRef(function({className:r,...o},n){const s=h(r,"input");return e.jsx(f.Input,{className:s,ref:n,...o})}),T1=d.forwardRef(function(r,o){const n=h("link",r.className);return e.jsx("a",{...r,ref:o,className:n})});function P6({children:t,className:r,...o}){const n=h(r,"list-box");return e.jsx(f.ListBox,{className:n,...o,children:t})}function $6({className:t,...r}){const o=h(t,"list-box-item");return e.jsx(f.ListBoxItem,{className:o,...r})}function q9({className:t,...r}){const o=h(t,"logo");return e.jsx(s3,{className:o,...r,"aria-label":"Company logo",children:e.jsxs("svg",{width:"172",height:"247",viewBox:"0 0 172 247",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M164 46.5C164 67.763 146.763 85 125.5 85L86 85L86 8.0001L125.5 8.0001C146.763 8.0001 164 25.2371 164 46.5V46.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 46.5C8 67.763 25.237 85 46.5 85L86 85L86 8.0001L46.5 8.0001C25.237 8.0001 8 25.2371 8 46.5V46.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 123.501C8 144.764 25.237 162.001 46.5 162.001H86L86 85.0011L46.5 85.0011C25.237 85.0011 8 102.238 8 123.501V123.501Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M8 200.5C8 221.763 25.4854 239 46.7484 239V239C68.2875 239 86 221.539 86 200L86 162H46.5C25.237 162 8 179.237 8 200.5V200.5Z",stroke:"var(--logo-color)",strokeWidth:"15.081"}),e.jsx("path",{d:"M86 123.501C86 144.764 103.237 162.001 124.5 162.001H125.5C146.763 162.001 164 144.764 164 123.501V123.501C164 102.238 146.763 85.0011 125.5 85.0011H124.5C103.237 85.0011 86 102.238 86 123.501V123.501Z",stroke:"var(--logo-color)",strokeWidth:"15.081"})]})})}function N6({className:t,...r}){return e.jsx(f.Menu,{className:h(t,"menu"),...r})}function W6({...t}){return e.jsx(f.MenuTrigger,{...t})}function X9({label:t,children:r,icon:o,placement:n,variant:s,...a}){return e.jsxs(W6,{children:[o?e.jsx(o3,{variant:s,"aria-label":t,children:o}):e.jsx(Q,{variant:s,children:t}),e.jsx(E6,{placement:n,children:e.jsx(N6,{...a,children:r})})]})}function E6({...t}){return e.jsx(f.Popover,{...t})}function K9({className:t,...r}){const o=h(t,"menu-item"),n=r.textValue||(typeof r.children=="string"?r.children:void 0);return e.jsx(f.MenuItem,{...r,className:o,textValue:n,children:({hasSubmenu:s})=>e.jsxs(e.Fragment,{children:[r.children,s&&e.jsx(x3,{})]})})}function Q9({className:t,...r}){const o=h(t,"menu-header");return e.jsx("div",{...r,className:o})}function Y9({className:t,...r}){const o=h(t,"menu-section");return e.jsx("div",{...r,className:o})}function J9({className:t,...r}){const o=h(t,"menu-heading");return e.jsx(S3,{...r,className:o})}function es({className:t,...r}){const o=h(t,"menu-separator");return e.jsx(f.Separator,{...r,className:o})}function ts({className:t,...r}){const o=h(t,"menu-label");return e.jsx(G,{...r,className:o})}function rs({className:t,...r}){const o=h(t,"menu-description");return e.jsx(X,{...r,className:o})}function os({children:t,className:r,...o}){const n=h(r,"menu-shortcut");return e.jsx(I1,{...o,className:n,children:t})}function ns({className:t,direction:r="row",...o}){const n=h(t,"navigation",`navigation-direction-${r}`);return e.jsx("nav",{className:n,...o})}function ss({className:t,isSelected:r,...o}){const n=h(t,"navigation-pill");return e.jsx(s3,{"data-selected":r||void 0,className:n,...o})}function is({children:t,className:r,isSelected:o,icon:n,direction:s="column",size:a="medium",...c}){const l=h(r,"navigation-button",`navigation-button-direction-${s}`,`navigation-button-size-${a}`);return e.jsxs(s3,{"data-selected":o||void 0,className:l,...c,children:[n,t]})}function as({children:t,className:r,isDismissible:o,icon:n,variant:s="message",...a}){const c=h(r,"notification",`notification-variant-${s}`);return e.jsxs("div",{className:c,...a,children:[n&&e.jsx("span",{className:"notification-icon",children:n}),e.jsx("div",{className:"notification-content",children:t}),o&&(s==="alert"?e.jsx(C1,{size:"small",variant:"danger-subtle","aria-label":"Dismiss notification",children:e.jsx(p3,{})}):e.jsx(o3,{size:"small",variant:"subtle","aria-label":"Dismiss notification",children:e.jsx(p3,{})}))]})}function cs({message:t,style:r}){return t?e.jsx(b6,{level:"error",message:t,style:{marginBottom:"1rem",...r}}):null}function ls({message:t,style:r}){return t?e.jsx(b6,{level:"success",message:t,style:{marginBottom:"1rem",...r}}):null}const k3={tablet:600,desktop:1024};function g3(t){const[r,o]=d.useMemo(()=>{const n=globalThis.matchMedia(t);function s(c){return n.addEventListener("change",c),()=>n.removeEventListener("change",c)}return[s,()=>n.matches]},[t]);return d.useSyncExternalStore(r,o)}const S6=()=>{const t=g3(`(max-width: ${k3.tablet-1}px)`),r=g3(`(min-width: ${k3.tablet}px) and (max-width: ${k3.desktop-1}px)`),o=g3(`(min-width: ${k3.desktop}px)`),n=g3(`(min-width: ${k3.tablet}px)`),s=g3(`(max-width: ${k3.desktop-1}px)`);return d.useMemo(()=>({isMobile:t,isTablet:r,isDesktop:o,isTabletUp:n,isTabletDown:s}),[t,r,o,n,s])};function ds({"aria-label":t="Page navigation",className:r,...o}){const n=h(r,"pagination");return e.jsx("nav",{"aria-label":t,...o,className:n})}function us({href:t=null,onPress:r,isDisabled:o=!1,children:n="Previous"}){return e.jsxs(s3,{...t!==null?{href:t}:{},onPress:r,isDisabled:o||t===null&&!r,className:h("pagination-btn","pagination-nav"),"aria-label":"Previous page",children:[e.jsx(g6,{size:"16"}),n]})}function hs({href:t=null,onPress:r,isDisabled:o=!1,children:n="Next"}){return e.jsxs(s3,{...t!==null?{href:t}:{},onPress:r,isDisabled:o||t===null&&!r,className:h("pagination-btn","pagination-nav"),"aria-label":"Next page",children:[n,e.jsx(v6,{size:"16"})]})}function ps({children:t}){const{isTabletUp:r}=S6();return r&&e.jsx("span",{className:"pagination-list",children:t})}function fs({href:t,onPress:r,children:o,current:n=!1}){return e.jsx(s3,{...t?{href:t}:{},onPress:r,"aria-label":`Page ${o}`,"aria-current":n?"page":void 0,className:h("pagination-btn",n&&"pagination-btn-active"),children:o})}function Cs(){return e.jsx("div",{"aria-hidden":"true",className:"pagination-gap",children:"…"})}function xs({className:t,label:r,description:o,errorMessage:n,children:s,...a}){const c=h(t,"radio-group");return e.jsxs(f.RadioGroup,{...a,className:c,children:[r&&e.jsx(G,{children:r}),o&&e.jsx(X,{children:o}),n&&e.jsx(e3,{children:n}),s]})}function js({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"radio-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Radio,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(V1,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function V1({className:t,...r}){const o=h(t,"radio");return e.jsx("div",{className:o,...r,children:e.jsx("span",{"aria-hidden":"true",className:"radio-check"})})}const P1=d.forwardRef(function({className:r,results:o,onSearch:n,...s},a){const[c,l]=d.useState(""),u=d.useRef(null),p=C=>{l(C),n&&n(C)},j=h(r,"search-input-container");return e.jsxs(f.ComboBox,{className:j,children:[e.jsx(G,{hidden:!0,children:s["aria-label"]||"Search"}),e.jsx(V6,{type:"search",className:"search-input",value:c,onInput:C=>p(C.currentTarget.value),ref:C=>{u.current=C,typeof a=="function"?a(C):a&&(a.current=C)},...s}),e.jsx("span",{className:"search-icon",children:c?e.jsx(o3,{"aria-label":"Clear search",onPress:()=>p(""),size:"small",variant:"subtle",children:e.jsx(p3,{})}):e.jsx(o3,{"aria-label":"Clear search",onPress:()=>{var C;return(C=u==null?void 0:u.current)==null?void 0:C.focus()},size:"small",variant:"subtle",children:e.jsx(h1,{})})}),e.jsx(f.Popover,{children:e.jsx(P6,{children:o==null?void 0:o.map(C=>e.jsx($6,{onAction:()=>p(C),children:C},C))})})]})});function ks({className:t,label:r,description:o,errorMessage:n,children:s,items:a,...c}){const l=h(t,"select-container");return e.jsx($1,{className:l,...c,children:e.jsxs(T6,{children:[r&&e.jsx(G,{children:r}),e.jsxs(f.Button,{className:"select",children:[e.jsx(f.SelectValue,{className:"select-value"}),e.jsx(x3,{"aria-hidden":"true"})]}),e.jsx(f.Popover,{children:e.jsx(P6,{items:a,children:s})}),o&&e.jsx(X,{children:o}),e.jsx(e3,{children:n})]})})}function $1({...t}){return e.jsx(f.Select,{...t})}function gs({children:t,className:r,...o}){const n=h(r,"select-item"),s=typeof t=="string"?t:"";return e.jsx($6,{textValue:s,className:n,...o,children:e.jsxs(e.Fragment,{children:[e.jsx(G3,{className:"select-item-check"}),t]})})}function vs({name:t,label:r,description:o,showOutput:n,thumbLabels:s,...a}){return e.jsx(N1,{...a,children:e.jsxs(T6,{children:[r&&e.jsx(G,{children:r}),n&&e.jsx(W1,{children:({state:c})=>c.values.map((l,u)=>c.getThumbValueLabel(u)).join(" - ")}),e.jsx(S1,{children:({state:c})=>c.values.map((l,u)=>e.jsx(E1,{name:c.values.length>1?`${t}-${(s==null?void 0:s[u])||u}`:t,index:u,"aria-label":s==null?void 0:s[u]},u))}),o&&e.jsx(X,{children:o})]})})}function N1({className:t,...r}){const o=h(t,"slider-field");return e.jsx(f.Slider,{className:o,...r})}function W1({className:t,...r}){const o=h(t,"slider-output");return e.jsx(f.SliderOutput,{className:o,...r})}function E1({className:t,...r}){const o=h(t,"slider-thumb");return e.jsx(f.SliderThumb,{className:o,...r})}function S1({className:t,...r}){const o=h(t,"slider");return e.jsx(f.SliderTrack,{className:o,...r})}function Ls({label:t,children:r,variant:o="primary",size:n="medium",icon:s,isDisabled:a,onPress:c,onAction:l,menuLabel:u="Mais ações",placement:p="bottom end"}){return e.jsxs("div",{className:h("split-button",`split-button-variant-${o}`),children:[e.jsxs(Q,{className:"split-button-action",variant:o,size:n,isDisabled:a,onPress:c,children:[s,t]}),e.jsxs(W6,{children:[e.jsx(Q,{className:"split-button-trigger",variant:o,size:n,isDisabled:a,"aria-label":u,children:e.jsx(x3,{})}),e.jsx(E6,{placement:p,children:e.jsx(N6,{onAction:l,children:r})})]})]})}function ms({className:t,...r}){const o=h(t,"switch-group");return e.jsx("div",{...r,className:o})}function Ms({children:t,className:r,label:o,description:n,errorMessage:s,...a}){const c=h(r,"switch-field"),l=o||(typeof t=="string"?t:void 0);return e.jsx(f.Switch,{className:c,...a,children:e.jsxs(e.Fragment,{children:[e.jsx(G,{children:l}),e.jsx(Z1,{}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s}),l!==t&&t]})})}function Z1({className:t,...r}){const o=h(t,"switch");return e.jsx("div",{className:o,...r,children:e.jsx("span",{"aria-hidden":"true",className:"switch-icon"})})}function bs({className:t,...r}){const o=h(t,"tab");return e.jsx(f.Tab,{className:o,...r})}function _s({className:t,...r}){const o=h(t,"tab-list");return e.jsx(f.TabList,{className:o,...r})}function ys({className:t,...r}){const o=h(t,"tab-panel");return e.jsx(f.TabPanel,{className:o,...r})}function Is({className:t,...r}){const o=h(t,"tabs");return e.jsx(f.Tabs,{className:o,...r})}function D1({bleed:t=!1,dense:r=!1,grid:o=!1,striped:n=!1,className:s,...a}){const c=h(s,"table-container",t&&"table-container-bleed"),l=h("table",t&&"table-bleed",r&&"table-dense",o&&"table-grid",n&&"table-striped");return e.jsx("div",{className:c,children:e.jsx(f.Table,{className:l,...a})})}function L3({align:t="start",className:r,...o}){const n=h(r,"table-column",`table-align-${t}`);return e.jsx(f.Column,{className:n,...o,children:({allowsSorting:s,sortDirection:a})=>e.jsx("div",{className:h("table-column-inner"),children:e.jsxs(e.Fragment,{children:[o.children,s&&e.jsx("span",{"aria-hidden":"true",className:"sort-indicator",children:a==="ascending"?e.jsx(a1,{}):e.jsx(x3,{})})]})})})}function O1({className:t,...r}){return e.jsx(f.TableBody,{...r})}function R1({className:t,columns:r,children:o,...n}){const{selectionBehavior:s,selectionMode:a,allowsDragging:c}=f.useTableOptions(),l=h(t,"table-head");return e.jsxs(f.TableHeader,{className:l,...n,children:[c&&e.jsx(L3,{}),s==="toggle"&&e.jsx(L3,{children:a==="multiple"&&e.jsx(X3,{slot:"selection"})}),e.jsx(f.Collection,{items:r,children:o})]})}function c6({id:t,columns:r,children:o,className:n,...s}){const{selectionBehavior:a,allowsDragging:c}=f.useTableOptions(),l=h(n,"table-row");return e.jsxs(f.Row,{id:t,...s,className:l,children:[c&&e.jsx(h3,{children:e.jsx(f.Button,{slot:"drag",children:"≡"})}),a==="toggle"&&e.jsx(h3,{children:e.jsx(X3,{slot:"selection"})}),e.jsx(f.Collection,{items:r,children:o})]})}function h3({align:t="start",className:r,...o}){const n=h(r,"table-cell",`table-align-${t}`);return e.jsx(f.Cell,{className:n,...o})}function ws({children:t,scheme:r="brand",variant:o="primary",onRemove:n,...s}){const a=h("tag",`tag-scheme-${r}`,`tag-variant-${o}`);return e.jsxs("span",{...s,className:a,children:[t," ",n&&e.jsx(f.Button,{className:"tag-remove-button",onPress:n,children:e.jsx(p3,{size:"16"})})]})}const Hs=d.forwardRef(function({className:r,scheme:o="brand",variant:n="primary",...s},a){const c=h(r,"tag","tag-button",`tag-scheme-${o}`,`tag-variant-${n}`);return e.jsx(s3,{...s,className:c,ref:a})});function Ts({children:t,className:r,iconStart:o,textValue:n,...s}){const a=h(r,"tag","tag-toggle");return n=n||(typeof t=="string"?t:(t||"").toString()),e.jsx(f.Tag,{className:a,textValue:n,...s,children:e.jsxs(e.Fragment,{children:[o,t]})})}function Vs({className:t,...r}){const o=h(t,"tag-toggle-group");return e.jsx(f.TagGroup,{className:o,...r})}function Ps({className:t,...r}){const o=h(t,"tag-toggle-list");return e.jsx(f.TagList,{className:o,...r})}var W3=t=>typeof t=="number"&&!isNaN(t),f3=t=>typeof t=="string",n3=t=>typeof t=="function",$s=t=>f3(t)||W3(t),l6=t=>f3(t)||n3(t)?t:null,Ns=(t,r)=>t===!1||W3(t)&&t>0?t:r,d6=t=>d.isValidElement(t)||f3(t)||n3(t)||W3(t);function Ws(t,r,o=300){let{scrollHeight:n,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=n+"px",s.transition=`all ${o}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(r,o)})})}function Es({enter:t,exit:r,appendPosition:o=!1,collapse:n=!0,collapseDuration:s=300}){return function({children:a,position:c,preventExitTransition:l,done:u,nodeRef:p,isIn:j,playToast:C}){let m=o?`${t}--${c}`:t,M=o?`${r}--${c}`:r,b=d.useRef(0);return d.useLayoutEffect(()=>{let x=p.current,v=m.split(" "),_=k=>{k.target===p.current&&(C(),x.removeEventListener("animationend",_),x.removeEventListener("animationcancel",_),b.current===0&&k.type!=="animationcancel"&&x.classList.remove(...v))};x.classList.add(...v),x.addEventListener("animationend",_),x.addEventListener("animationcancel",_)},[]),d.useEffect(()=>{let x=p.current,v=()=>{x.removeEventListener("animationend",v),n?Ws(x,u,s):u()};j||(l?v():(b.current=1,x.className+=` ${M}`,x.addEventListener("animationend",v)))},[j]),d.createElement(d.Fragment,null,a)}}function K6(t,r){return{content:A1(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:r}}function A1(t,r,o=!1){return d.isValidElement(t)&&!f3(t.type)?d.cloneElement(t,{closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:o}):n3(t)?t({closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:o}):t}function Ss({closeToast:t,theme:r,ariaLabel:o="close"}){return d.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:n=>{n.stopPropagation(),t(!0)},"aria-label":o},d.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},d.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Zs({delay:t,isRunning:r,closeToast:o,type:n="default",hide:s,className:a,controlledProgress:c,progress:l,rtl:u,isIn:p,theme:j}){let C=s||c&&l===0,m={animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};c&&(m.transform=`scaleX(${l})`);let M=h("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${j}`,`Toastify__progress-bar--${n}`,{"Toastify__progress-bar--rtl":u}),b=n3(a)?a({rtl:u,type:n,defaultClassName:M}):h(M,a),x={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{p&&o()}};return d.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},d.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${j} Toastify__progress-bar--${n}`}),d.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer","aria-valuenow":c?Math.round(l*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:b,style:m,...x}))}var Ds=1,F1=()=>`${Ds++}`;function Os(t,r,o){let n=1,s=0,a=[],c=[],l=r,u=new Map,p=new Set,j=k=>(p.add(k),()=>p.delete(k)),C=()=>{c=Array.from(u.values()),p.forEach(k=>k())},m=({containerId:k,toastId:g,updateId:I})=>{let w=k?k!==t:t!==1,P=u.has(g)&&I==null;return w||P},M=(k,g)=>{u.forEach(I=>{var w;(g==null||g===I.props.toastId)&&((w=I.toggle)==null||w.call(I,k))})},b=k=>{var g,I;k.isActive&&((I=(g=k.props)==null?void 0:g.onClose)==null||I.call(g,k.removalReason),k.isActive=!1,o(K6(k,"removed")))},x=k=>{if(k==null)u.forEach(b);else{let g=u.get(k);g&&b(g)}C()},v=()=>{s-=a.length,a=[]},_=k=>{var g,I;let{toastId:w,updateId:P}=k.props,L=P==null;k.staleId&&u.delete(k.staleId),k.isActive=!0,u.set(w,k),C(),o(K6(k,L?"added":"updated")),L&&((I=(g=k.props).onOpen)==null||I.call(g))};return{id:t,props:l,observe:j,toggle:M,removeToast:x,toasts:u,clearQueue:v,buildToast:(k,g)=>{if(m(g))return;let{toastId:I,updateId:w,data:P,staleId:L,delay:V}=g,W=w==null;W&&s++;let H={...l,style:l.toastStyle,key:n++,...Object.fromEntries(Object.entries(g).filter(([z,R])=>R!=null)),toastId:I,updateId:w,data:P,isIn:!1,className:l6(g.className||l.toastClassName),progressClassName:l6(g.progressClassName||l.progressClassName),autoClose:g.isLoading?!1:Ns(g.autoClose,l.autoClose),closeToast(z){let R=u.get(I);R&&(R.removalReason=z,x(I))},deleteToast(){if(u.get(I)!=null){if(u.delete(I),s--,s<0&&(s=0),a.length>0){_(a.shift());return}C()}}};H.closeButton=l.closeButton,g.closeButton===!1||d6(g.closeButton)?H.closeButton=g.closeButton:g.closeButton===!0&&(H.closeButton=d6(l.closeButton)?l.closeButton:!0);let D={content:k,props:H,staleId:L};l.limit&&l.limit>0&&s>l.limit&&W?a.push(D):W3(V)?setTimeout(()=>{_(D)},V):_(D)},setProps(k){l=k},setToggle:(k,g)=>{let I=u.get(k);I&&(I.toggle=g)},isToastActive:k=>{var g;return(g=u.get(k))==null?void 0:g.isActive},getSnapshot:()=>c}}var F=new Map,P3=[],u6=new Set,Rs=t=>u6.forEach(r=>r(t)),B1=()=>F.size>0;function As(){P3.forEach(t=>U1(t.content,t.options)),P3=[]}var Fs=(t,{containerId:r})=>{var o;return(o=F.get(r||1))==null?void 0:o.toasts.get(t)};function z1(t,r){var o;if(r)return!!((o=F.get(r))!=null&&o.isToastActive(t));let n=!1;return F.forEach(s=>{s.isToastActive(t)&&(n=!0)}),n}function Bs(t){if(!B1()){P3=P3.filter(r=>t!=null&&r.options.toastId!==t);return}if(t==null||$s(t))F.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let r=F.get(t.containerId);r?r.removeToast(t.id):F.forEach(o=>{o.removeToast(t.id)})}}var zs=(t={})=>{F.forEach(r=>{r.props.limit&&(!t.containerId||r.id===t.containerId)&&r.clearQueue()})};function U1(t,r){d6(t)&&(B1()||P3.push({content:t,options:r}),F.forEach(o=>{o.buildToast(t,r)}))}function Us(t){var r;(r=F.get(t.containerId||1))==null||r.setToggle(t.id,t.fn)}function G1(t,r){F.forEach(o=>{(r==null||!(r!=null&&r.containerId)||(r==null?void 0:r.containerId)===o.id)&&o.toggle(t,r==null?void 0:r.id)})}function Gs(t){let r=t.containerId||1;return{subscribe(o){let n=Os(r,t,Rs);F.set(r,n);let s=n.observe(o);return As(),()=>{s(),F.delete(r)}},setProps(o){var n;(n=F.get(r))==null||n.setProps(o)},getSnapshot(){var o;return(o=F.get(r))==null?void 0:o.getSnapshot()}}}function qs(t){return u6.add(t),()=>{u6.delete(t)}}function Xs(t){return t&&(f3(t.toastId)||W3(t.toastId))?t.toastId:F1()}function E3(t,r){return U1(t,r),r.toastId}function Y3(t,r){return{...r,type:r&&r.type||t,toastId:Xs(r)}}function J3(t){return(r,o)=>E3(r,Y3(t,o))}function E(t,r){return E3(t,Y3("default",r))}E.loading=(t,r)=>E3(t,Y3("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...r}));function Ks(t,{pending:r,error:o,success:n},s){let a;r&&(a=f3(r)?E.loading(r,s):E.loading(r.render,{...s,...r}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(p,j,C)=>{if(j==null){E.dismiss(a);return}let m={type:p,...c,...s,data:C},M=f3(j)?{render:j}:j;return a?E.update(a,{...m,...M}):E(M.render,{...m,...M}),C},u=n3(t)?t():t;return u.then(p=>l("success",n,p)).catch(p=>l("error",o,p)),u}E.promise=Ks;E.success=J3("success");E.info=J3("info");E.error=J3("error");E.warning=J3("warning");E.warn=E.warning;E.dark=(t,r)=>E3(t,Y3("default",{theme:"dark",...r}));function Qs(t){Bs(t)}E.dismiss=Qs;E.clearWaitingQueue=zs;E.isActive=z1;E.update=(t,r={})=>{let o=Fs(t,r);if(o){let{props:n,content:s}=o,a={delay:100,...n,...r,toastId:r.toastId||t,updateId:F1()};a.toastId!==t&&(a.staleId=t);let c=a.render||s;delete a.render,E3(c,a)}};E.done=t=>{E.update(t,{progress:1})};E.onChange=qs;E.play=t=>G1(!0,t);E.pause=t=>G1(!1,t);function Ys(t){var r;let{subscribe:o,getSnapshot:n,setProps:s}=d.useRef(Gs(t)).current;s(t);let a=(r=d.useSyncExternalStore(o,n,n))==null?void 0:r.slice();function c(l){if(!a)return[];let u=new Map;return t.newestOnTop&&a.reverse(),a.forEach(p=>{let{position:j}=p.props;u.has(j)||u.set(j,[]),u.get(j).push(p)}),Array.from(u,p=>l(p[0],p[1]))}return{getToastToRender:c,isToastActive:z1,count:a==null?void 0:a.length}}function Js(t){let[r,o]=d.useState(!1),[n,s]=d.useState(!1),a=d.useRef(null),c=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:p,onClick:j,closeOnClick:C}=t;Us({id:t.toastId,containerId:t.containerId,fn:o}),d.useEffect(()=>{if(t.pauseOnFocusLoss)return m(),()=>{M()}},[t.pauseOnFocusLoss]);function m(){document.hasFocus()||_(),window.addEventListener("focus",v),window.addEventListener("blur",_)}function M(){window.removeEventListener("focus",v),window.removeEventListener("blur",_)}function b(L){if(t.draggable===!0||t.draggable===L.pointerType){k();let V=a.current;c.canCloseOnClick=!0,c.canDrag=!0,V.style.transition="none",t.draggableDirection==="x"?(c.start=L.clientX,c.removalDistance=V.offsetWidth*(t.draggablePercent/100)):(c.start=L.clientY,c.removalDistance=V.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function x(L){let{top:V,bottom:W,left:H,right:D}=a.current.getBoundingClientRect();L.pointerType==="mouse"&&t.pauseOnHover&&L.clientX>=H&&L.clientX<=D&&L.clientY>=V&&L.clientY<=W?_():v()}function v(){o(!0)}function _(){o(!1)}function k(){c.didMove=!1,document.addEventListener("pointermove",I),document.addEventListener("pointerup",w)}function g(){document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",w)}function I(L){let V=a.current;if(c.canDrag&&V){c.didMove=!0,r&&_(),t.draggableDirection==="x"?c.delta=L.clientX-c.start:c.delta=L.clientY-c.start,c.start!==L.clientX&&(c.canCloseOnClick=!1);let W=t.draggableDirection==="x"?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;V.style.transform=`translate3d(${W},0)`,V.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function w(){g();let L=a.current;if(c.canDrag&&c.didMove&&L){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){s(!0),t.closeToast(!0),t.collapseAll();return}L.style.transition="transform 0.2s, opacity 0.2s",L.style.removeProperty("transform"),L.style.removeProperty("opacity")}}let P={onPointerDown:b,onPointerUp:x};return l&&u&&(P.onMouseEnter=_,t.stacked||(P.onMouseLeave=v)),C&&(P.onClick=L=>{j&&j(L),c.canCloseOnClick&&p(!0)}),{playToast:v,pauseToast:_,isRunning:r,preventExitTransition:n,toastRef:a,eventHandlers:P}}var q1=typeof window<"u"?d.useLayoutEffect:d.useEffect,e6=({theme:t,type:r,isLoading:o,...n})=>d.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n});function e2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function t2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function r2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function o2(t){return d.createElement(e6,{...t},d.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function n2(){return d.createElement("div",{className:"Toastify__spinner"})}var h6={info:t2,warning:e2,success:r2,error:o2,spinner:n2},s2=t=>t in h6;function i2({theme:t,type:r,isLoading:o,icon:n}){let s=null,a={theme:t,type:r};return n===!1||(n3(n)?s=n({...a,isLoading:o}):d.isValidElement(n)?s=d.cloneElement(n,a):o?s=h6.spinner():s2(r)&&(s=h6[r](a))),s}var a2=t=>{let{isRunning:r,preventExitTransition:o,toastRef:n,eventHandlers:s,playToast:a}=Js(t),{closeButton:c,children:l,autoClose:u,onClick:p,type:j,hideProgressBar:C,closeToast:m,transition:M,position:b,className:x,style:v,progressClassName:_,updateId:k,role:g,progress:I,rtl:w,toastId:P,deleteToast:L,isIn:V,isLoading:W,closeOnClick:H,theme:D,ariaLabel:z}=t,R=h("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${j}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":H}),K=n3(x)?x({rtl:w,position:b,type:j,defaultClassName:R}):h(R,x),y=i2(t),$=!!I||!u,B={closeToast:m,type:j,theme:D},A=null;return c===!1||(n3(c)?A=c(B):d.isValidElement(c)?A=d.cloneElement(c,B):A=Ss(B)),d.createElement(M,{isIn:V,done:L,position:b,preventExitTransition:o,nodeRef:n,playToast:a},d.createElement("div",{id:P,tabIndex:0,onClick:p,"data-in":V,className:K,...s,style:v,ref:n,...V&&{role:g,"aria-label":z}},y!=null&&d.createElement("div",{className:h("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!W})},y),A1(l,t,!r),A,!t.customProgressBar&&d.createElement(Zs,{...k&&!$?{key:`p-${k}`}:{},rtl:w,theme:D,delay:u,isRunning:r,isIn:V,closeToast:m,hide:C,type:j,className:_,controlledProgress:$,progress:I||0})))},c2=(t,r=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:r}),l2=Es(c2("bounce",!0)),d2={position:"top-right",transition:l2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function u2(t){let r={...d2,...t},o=t.stacked,[n,s]=d.useState(!0),a=d.useRef(null),{getToastToRender:c,isToastActive:l,count:u}=Ys(r),{className:p,style:j,rtl:C,containerId:m,hotKeys:M}=r;function b(v){let _=h("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":C});return n3(p)?p({position:v,rtl:C,defaultClassName:_}):h(_,l6(p))}function x(){o&&(s(!0),E.play())}return q1(()=>{var v;if(o){let _=a.current.querySelectorAll('[data-in="true"]'),k=12,g=(v=r.position)==null?void 0:v.includes("top"),I=0,w=0;Array.from(_).reverse().forEach((P,L)=>{let V=P;V.classList.add("Toastify__toast--stacked"),L>0&&(V.dataset.collapsed=`${n}`),V.dataset.pos||(V.dataset.pos=g?"top":"bot");let W=I*(n?.2:1)+(n?0:k*L),H=Math.max(.5,1-(n?w:0));V.style.setProperty("--y",`${g?W:W*-1}px`),V.style.setProperty("--g",`${k}`),V.style.setProperty("--s",`${H}`),I+=V.offsetHeight,w+=.025})}},[n,u,o]),d.useEffect(()=>{function v(_){var k;let g=a.current;M(_)&&((k=g==null?void 0:g.querySelector('[tabIndex="0"]'))==null||k.focus(),s(!1),E.pause()),_.key==="Escape"&&(document.activeElement===g||g!=null&&g.contains(document.activeElement))&&(s(!0),E.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[M]),d.createElement("section",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{o&&(s(!1),E.pause())},onMouseLeave:x,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":r["aria-label"]},c((v,_)=>{let k=_.length?{...j}:{...j,pointerEvents:"none"};return d.createElement("div",{tabIndex:-1,className:b(v),"data-stacked":o,style:k,key:`c-${v}`},_.map(({content:g,props:I})=>d.createElement(a2,{...I,stacked:o,collapseAll:x,isIn:l(I.toastId,I.containerId),key:`t-${I.key}`},g)))}))}var h2=`:root {
|
|
12
12
|
--toastify-color-light: #fff;
|
|
13
13
|
--toastify-color-dark: #121212;
|
|
14
14
|
--toastify-color-info: #3498db;
|
|
@@ -814,5 +814,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
814
814
|
transform: rotate(360deg);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
`,Q6=new Map,h2=(t,r)=>{q1(()=>{if(typeof document>"u")return;let o=document,n=Q6.get(o);if(n){r&&n.setAttribute("nonce",r);return}let s=o.createElement("style");s.textContent=t,r&&s.setAttribute("nonce",r),o.head.appendChild(s),Q6.set(o,s)},[r])};function p2(t){return h2(u2,t.nonce),d.createElement(d2,{...t})}function f2({type:t}){switch(t){case"success":return e.jsx(L6,{size:"20"});case"error":return e.jsx(f1,{size:"20"});case"warning":return e.jsx(k6,{size:"20"});case"info":return e.jsx(M6,{size:"20"});default:return null}}function C2({className:t,position:r="top-right",autoClose:o=5e3,theme:n="colored",icon:s=f2,...a}){return e.jsx(p2,{className:h("apipass-toast-container",typeof t=="string"?t:void 0),position:r,autoClose:o,theme:n,icon:s,...a})}function x2(t){return t.hasChildItems??!!(t.children&&t.children.length>0)}function j2({className:t,items:r,renderItem:o,isNodeLoading:n,onItemAction:s,...a}){function c(l){return e.jsxs(f.TreeItem,{id:l.id,textValue:l.label,hasChildItems:x2(l),className:"tree-item",onAction:s?()=>s(l):void 0,children:[e.jsx(Y6,{children:o(l)}),l.children&&l.children.length>0&&e.jsx(f.Collection,{items:l.children,children:c}),((n==null?void 0:n(l.id))??!1)&&e.jsx(f.TreeItem,{id:`${l.id}::loading`,textValue:"Loading",isDisabled:!0,className:"tree-item",children:e.jsx(Y6,{children:e.jsx(l1,{size:"16",className:"tree-item-loading-icon"})})})]})}return e.jsx(f.Tree,{items:r,className:h(t,"tree"),...a,children:c})}function Y6({children:t}){return e.jsx(f.TreeItemContent,{children:({hasChildItems:r,level:o})=>e.jsxs("div",{className:"tree-item-row",style:{"--tree-item-depth":o-1},children:[r?e.jsx(f.Button,{slot:"chevron",className:"tree-item-chevron",children:e.jsx(m6,{size:"16"})}):e.jsx("span",{className:"tree-item-chevron-spacer","aria-hidden":"true"}),t]})})}function J({className:t,alignPrimary:r="start",alignSecondary:o="start",container:n=!1,direction:s="row",gap:a,type:c="auto",wrap:l=!1,...u}){const p=h(t,"flex",n&&"flex-container",`flex-align-primary-${r}`,`flex-align-secondary-${o}`,`flex-direction-${s}`,`flex-type-${c}`,a&&`flex-gap-${a}`,l&&"flex-wrap");return e.jsx("div",{className:p,...u,style:{...u.style,"--flex-align-primary":r,"--flex-align-secondary":o,"--flex-direction":s}})}function k2({className:t,children:r,size:o}){const n=h(t,"flex-item",o&&`flex-item-size-${o}`);return e.jsx("div",{className:n,children:r})}function g2({children:t,className:r,elementType:o="section",padding:n="600",paddingBottom:s,paddingTop:a,...c}){const{variant:l="subtle",...u}=c,p=h(r,"section",`section-variant-${c.variant}`,`section-padding-top-${a||n}`,`section-padding-bottom-${s||n}`),j=c.variant==="image"?e.jsx(w1,{alt:"Background image",role:"presentation",src:c.src,size:"fill",aspectRatio:"fill",className:"section-image"}):null;switch(o){case"section":return e.jsxs("section",{className:p,...u,children:[j," ",t]});case"header":return e.jsxs("header",{className:p,...u,children:[j," ",t]});case"footer":return e.jsxs("footer",{className:p,...u,children:[j," ",t]})}}function v2({className:t,columns:r="none",rows:o="none",gap:n,columnGap:s,rowGap:a,flow:c,container:l=!1,justifyItems:u="stretch",alignItems:p="stretch",style:j={},...C}){const m=h(t,"grid",l&&"grid-container",`grid-justify-items-${u}`,`grid-align-items-${p}`,n&&`grid-gap-${n}`,s&&`grid-column-gap-${s}`,a&&`grid-row-gap-${a}`,c&&`grid-flow-${c.replace(" ","-")}`),M={...j,display:"grid",gridTemplateColumns:r,gridTemplateRows:o,gap:n?`var(--sds-size-space-${n})`:void 0,columnGap:s?`var(--sds-size-space-${s})`:void 0,rowGap:a?`var(--sds-size-space-${a})`:void 0,justifyItems:u,alignItems:p};return e.jsx("div",{className:m,style:M,...C})}function L2({className:t,column:r,row:o,area:n,style:s={},...a}){const c=h(t,"grid-item"),l={...s};return r&&(l.gridColumn=r),o&&(l.gridRow=o),n&&(l.gridArea=n),e.jsx("div",{className:c,style:l,...a})}function $3({className:t,elementType:r="p",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-base",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,elementType:r,className:c,...a})}function X1({className:t,elementType:r="small",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-small",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function m2({className:t,elementType:r="small",lineClamp:o,lineHeight:n="body",style:s,...a}){const c=h(t,!!o&&"text-truncate","text-body-small-strong",`text-line-height-${n}`),l=o?{"--text-truncate-line-clamp":o,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function K1({className:t,elementType:r="strong",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-body-strong"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function M2({className:t,elementType:r,...o}){const n=h(t,"text-body-emphasis");return e.jsx(f.Text,{className:n,elementType:r,...o})}function b2({className:t,...r}){const o=h(t,"text-body-link");return e.jsx(T1,{className:o,...r})}function _2({className:t,...r}){const o=h(t,"text-body-code");return e.jsx(f.Text,{className:o,...r})}function y2({className:t,...r}){const o=h(t,"text-input");return e.jsx(f.Text,{className:o,...r})}function Q1({className:t,elementType:r="h1",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-hero"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Z6({className:t,elementType:r="h2",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-page"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Y1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subtitle"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function S3({className:t,elementType:r="h3",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-heading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function J1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subheading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function I2({className:t,currency:r,size:o="large",price:n,label:s,...a}){const c=h(t,"text-price",`text-price-size-${o}`),l=e.jsxs(e.Fragment,{children:[e.jsx("sup",{className:"text-price-currency",children:r}),n]});return e.jsxs(f.Text,{elementType:"p",className:c,...a,children:[o==="small"?e.jsx(S3,{elementType:"span",children:l}):e.jsx(Z6,{elementType:"span",children:l}),s&&e.jsx(X1,{children:s})]})}function w2({className:t,...r}){const o=h(t,"text-list-item");return e.jsx("li",{className:o,...r})}function ee({children:t,className:r,density:o="default",title:n,...s}){const a=h(r,"text-list",`text-list-density-${o}`);return e.jsxs("ul",{className:a,...s,children:[n&&e.jsx("li",{className:"text-list-title",children:n}),t]})}function H2({className:t,...r}){const o=h(t,"text-link-list");return e.jsx(ee,{className:o,...r})}function T2({align:t="start",className:r,heading:o,subheading:n,...s}){const a=h(r,"text-content-heading",`text-align-${t}`);return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[e.jsx(S3,{children:o}),n&&e.jsx(J1,{children:n})]})}function V2({align:t="start",className:r,title:o,subtitle:n,...s}){const a=h(r,"text-content-title"),{isMobile:c}=S6();return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[c?e.jsx(Z6,{className:`text-align-${t}`,children:o}):e.jsx(Q1,{className:`text-align-${t}`,children:o}),n&&e.jsx(Y1,{className:`text-align-${t}`,children:n})]})}function P2({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(te,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const te=d.forwardRef(function({isResizable:r=!0,...o},n){const s=h("text-area",r&&"text-area-resizable");return e.jsx(f.TextArea,{ref:n,className:s,...o})}),t6=typeof document<"u"?d.useLayoutEffect:()=>{};var i6;const $2=(i6=d.useInsertionEffect)!==null&&i6!==void 0?i6:t6;function N2(t){const r=d.useRef(null);return $2(()=>{r.current=t},[t]),d.useCallback((...o)=>{const n=r.current;return n==null?void 0:n(...o)},[])}const F3={prefix:String(Math.round(Math.random()*1e10)),current:0},re=d.createContext(F3),W2=d.createContext(!1);let E2=!!(typeof window<"u"&&window.document&&window.document.createElement),a6=new WeakMap;function S2(t=!1){let r=d.useContext(re),o=d.useRef(null);if(o.current===null&&!t){var n,s;let a=(s=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(n=s.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let c=a6.get(a);c==null?a6.set(a,{id:r.current,state:a.memoizedState}):a.memoizedState!==c.state&&(r.current=c.id,a6.delete(a))}o.current=++r.current}return o.current}function Z2(t){let r=d.useContext(re);r===F3&&!E2&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=S2(!!t),n=r===F3&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${n}-${o}`}function D2(t){let r=d.useId(),[o]=d.useState(B2()),n=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${F3.prefix}`;return t||`${n}-${r}`}const O2=typeof d.useId=="function"?D2:Z2;function R2(){return!1}function A2(){return!0}function F2(t){return()=>{}}function B2(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(F2,R2,A2):d.useContext(W2)}let z2=!!(typeof window<"u"&&window.document&&window.document.createElement),m3=new Map,w3;typeof FinalizationRegistry<"u"&&(w3=new FinalizationRegistry(t=>{m3.delete(t)}));function U2(t){let[r,o]=d.useState(t),n=d.useRef(null),s=O2(r),a=d.useRef(null);if(w3&&w3.register(a,s),z2){const c=m3.get(s);c&&!c.includes(n)?c.push(n):m3.set(s,[n])}return t6(()=>{let c=s;return()=>{w3&&w3.unregister(a),m3.delete(c)}},[s]),d.useEffect(()=>{let c=n.current;return c&&o(c),()=>{c&&(n.current=null)}}),s}function G2(t,r){if(t===r)return t;let o=m3.get(t);if(o)return o.forEach(s=>s.current=r),r;let n=m3.get(r);return n?(n.forEach(s=>s.current=t),t):r}function q2(...t){return(...r)=>{for(let o of t)typeof o=="function"&&o(...r)}}const j3=t=>{var r;return(r=t==null?void 0:t.ownerDocument)!==null&&r!==void 0?r:document},p6=t=>t&&"window"in t&&t.window===t?t:j3(t).defaultView||window;function X2(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function K2(t){return X2(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Q2=!1;function D6(){return Q2}function Y2(t,r){if(!D6())return r&&t?t.contains(r):!1;if(!t||!r)return!1;let o=r;for(;o!==null;){if(o===t)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:K2(o)?o=o.host:o=o.parentNode}return!1}const B3=(t=document)=>{var r;if(!D6())return t.activeElement;let o=t.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function J2(t){return D6()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}function f6(...t){let r={...t[0]};for(let o=1;o<t.length;o++){let n=t[o];for(let s in n){let a=r[s],c=n[s];typeof a=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?r[s]=q2(a,c):(s==="className"||s==="UNSAFE_className")&&typeof a=="string"&&typeof c=="string"?r[s]=h(a,c):s==="id"&&a&&c?r.id=G2(a,c):r[s]=c!==void 0?c:a}}return r}function J6(t){if(e4())t.focus({preventScroll:!0});else{let r=t4(t);t.focus(),r4(r)}}let O3=null;function e4(){if(O3==null){O3=!1;try{document.createElement("div").focus({get preventScroll(){return O3=!0,!0}})}catch{}}return O3}function t4(t){let r=t.parentNode,o=[],n=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==n;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return n instanceof HTMLElement&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),o}function r4(t){for(let{element:r,scrollTop:o,scrollLeft:n}of t)r.scrollTop=o,r.scrollLeft=n}function r6(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let o=(r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands;return Array.isArray(o)&&o.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function O6(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function i3(t){if(process.env.NODE_ENV==="test")return t;let r=null;return()=>(r==null&&(r=t()),r)}const R6=i3(function(){return O6(/^Mac/i)}),o4=i3(function(){return O6(/^iPhone/i)}),n4=i3(function(){return O6(/^iPad/i)||R6()&&navigator.maxTouchPoints>1}),s4=i3(function(){return o4()||n4()});i3(function(){return R6()||s4()});i3(function(){return r6(/AppleWebKit/i)&&!i4()});const i4=i3(function(){return r6(/Chrome/i)}),a4=i3(function(){return r6(/Android/i)});i3(function(){return r6(/Firefox/i)});let a3=new Map,C6=new Set;function e1(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let r=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);s||(s=new Set,a3.set(n.target,s),n.target.addEventListener("transitioncancel",o,{once:!0})),s.add(n.propertyName)},o=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);if(s&&(s.delete(n.propertyName),s.size===0&&(n.target.removeEventListener("transitioncancel",o),a3.delete(n.target)),a3.size===0)){for(let a of C6)a();C6.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",o)}typeof document<"u"&&(document.readyState!=="loading"?e1():document.addEventListener("DOMContentLoaded",e1));function c4(){for(const[t]of a3)"isConnected"in t&&!t.isConnected&&a3.delete(t)}function l4(t){requestAnimationFrame(()=>{c4(),a3.size===0?t():C6.add(t)})}function d4(){let t=d.useRef(new Map),r=d.useCallback((s,a,c,l)=>{let u=l!=null&&l.once?(...p)=>{t.current.delete(c),c(...p)}:c;t.current.set(c,{type:a,eventTarget:s,fn:u,options:l}),s.addEventListener(a,u,l)},[]),o=d.useCallback((s,a,c,l)=>{var u;let p=((u=t.current.get(c))===null||u===void 0?void 0:u.fn)||c;s.removeEventListener(a,p,l),t.current.delete(c)},[]),n=d.useCallback(()=>{t.current.forEach((s,a)=>{o(s.eventTarget,s.type,a,s.options)})},[o]);return d.useEffect(()=>n,[n]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:n}}function u4(t,r){t6(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref&&(t.ref.current=null)}})}function h4(t){return t.pointerType===""&&t.isTrusted?!0:a4()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function p4(t,r,o){let[n,s]=d.useState(t||r),a=d.useRef(t!==void 0),c=t!==void 0;d.useEffect(()=>{let p=a.current;p!==c&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),a.current=c},[c]);let l=c?t:n,u=d.useCallback((p,...j)=>{let C=(m,...M)=>{o&&(Object.is(l,m)||o(m,...M)),c||(l=m)};typeof p=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((M,...b)=>{let x=p(c?l:M,...b);return C(x,...j),c?M:x})):(c||s(p),C(p,...j))},[c,l,o]);return[l,u]}function f4(t){let r=t;return r.nativeEvent=t,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function C4(t){let r=d.useRef({isFocused:!1,observer:null});t6(()=>{const n=r.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let o=N2(n=>{t==null||t(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){r.current.isFocused=!0;let s=n.target,a=c=>{if(r.current.isFocused=!1,s.disabled){let l=f4(c);o(l)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&s.disabled){var c;(c=r.current.observer)===null||c===void 0||c.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let x4=!1,M3=null,j4=new Set,T3=new Map,C3=!1,x6=!1;function A6(t,r){for(let o of j4)o(t,r)}function k4(t){return!(t.metaKey||!R6()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function z3(t){C3=!0,k4(t)&&(M3="keyboard",A6("keyboard",t))}function q(t){M3="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(C3=!0,A6("pointer",t))}function oe(t){h4(t)&&(C3=!0,M3="virtual")}function ne(t){t.target===window||t.target===document||x4||!t.isTrusted||(!C3&&!x6&&(M3="virtual",A6("virtual",t)),C3=!1,x6=!1)}function se(){C3=!1,x6=!0}function t1(t){if(typeof window>"u"||typeof document>"u"||T3.get(p6(t)))return;const r=p6(t),o=j3(t);let n=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){C3=!0,n.apply(this,arguments)},o.addEventListener("keydown",z3,!0),o.addEventListener("keyup",z3,!0),o.addEventListener("click",oe,!0),r.addEventListener("focus",ne,!0),r.addEventListener("blur",se,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",q,!0),o.addEventListener("pointermove",q,!0),o.addEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",q,!0),o.addEventListener("mousemove",q,!0),o.addEventListener("mouseup",q,!0)),r.addEventListener("beforeunload",()=>{ie(t)},{once:!0}),T3.set(r,{focus:n})}const ie=(t,r)=>{const o=p6(t),n=j3(t);r&&n.removeEventListener("DOMContentLoaded",r),T3.has(o)&&(o.HTMLElement.prototype.focus=T3.get(o).focus,n.removeEventListener("keydown",z3,!0),n.removeEventListener("keyup",z3,!0),n.removeEventListener("click",oe,!0),o.removeEventListener("focus",ne,!0),o.removeEventListener("blur",se,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",q,!0),n.removeEventListener("pointermove",q,!0),n.removeEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",q,!0),n.removeEventListener("mousemove",q,!0),n.removeEventListener("mouseup",q,!0)),T3.delete(o))};function g4(t){const r=j3(t);let o;return r.readyState!=="loading"?t1(t):(o=()=>{t1(t)},r.addEventListener("DOMContentLoaded",o)),()=>ie(t,o)}typeof document<"u"&&g4();function v4(){return M3!=="pointer"}function ae(){return M3}function L4(t){const r=j3(t),o=B3(r);if(ae()==="virtual"){let n=o;l4(()=>{B3(r)===n&&t.isConnected&&J6(t)})}else J6(t)}function m4(t){let{isDisabled:r,onFocus:o,onBlur:n,onFocusChange:s}=t;const a=d.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),s&&s(!1),!0},[n,s]),c=C4(a),l=d.useCallback(u=>{const p=j3(u.target),j=p?B3(p):B3();u.target===u.currentTarget&&j===J2(u.nativeEvent)&&(o&&o(u),s&&s(!0),c(u))},[s,o,c]);return{focusProps:{onFocus:!r&&(o||s||n)?l:void 0,onBlur:!r&&(n||s)?a:void 0}}}function r1(t){if(!t)return;let r=!0;return o=>{let n={...o,preventDefault(){o.preventDefault()},isDefaultPrevented(){return o.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1},isPropagationStopped(){return r}};t(n),r&&o.stopPropagation()}}function M4(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:r1(t.onKeyDown),onKeyUp:r1(t.onKeyUp)}}}let b4=d.createContext(null);function _4(t){let r=d.useContext(b4)||{};u4(r,t);let{ref:o,...n}=r;return n}function y4(t,r){let{focusProps:o}=m4(t),{keyboardProps:n}=M4(t),s=f6(o,n),a=_4(r),c=t.isDisabled?{}:a,l=d.useRef(t.autoFocus);d.useEffect(()=>{l.current&&r.current&&L4(r.current),l.current=!1},[r]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:f6({...s,tabIndex:u},c)}}let U3=!1,R3=0;function j6(){U3=!0,setTimeout(()=>{U3=!1},50)}function o1(t){t.pointerType==="touch"&&j6()}function I4(){if(!(typeof document>"u"))return R3===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",j6)),R3++,()=>{R3--,!(R3>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",j6))}}function w4(t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:s}=t,[a,c]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(I4,[]);let{addGlobalListener:u,removeAllGlobalListeners:p}=d4(),{hoverProps:j,triggerHoverEnd:C}=d.useMemo(()=>{let m=(x,v)=>{if(l.pointerType=v,s||v==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let _=x.currentTarget;l.target=_,u(j3(x.target),"pointerover",k=>{l.isHovered&&l.target&&!Y2(l.target,k.target)&&M(k,k.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:_,pointerType:v}),o&&o(!0),c(!0)},M=(x,v)=>{let _=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!_)&&(l.isHovered=!1,p(),n&&n({type:"hoverend",target:_,pointerType:v}),o&&o(!1),c(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=x=>{U3&&x.pointerType==="mouse"||m(x,x.pointerType)},b.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!U3&&m(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,"mouse")}),{hoverProps:b,triggerHoverEnd:M}},[r,o,n,s,l,u,p]);return d.useEffect(()=>{s&&C({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:j,isHovered:a}}function H4(t,r,o){let{isDisabled:n,trigger:s}=t,a=U2(),c=d.useRef(!1),l=d.useRef(!1),u=()=>{(c.current||l.current)&&r.open(l.current)},p=_=>{!c.current&&!l.current&&r.close(_)};d.useEffect(()=>{let _=k=>{o&&o.current&&k.key==="Escape"&&(k.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[o,r]);let j=()=>{s!=="focus"&&(ae()==="pointer"?c.current=!0:c.current=!1,u())},C=()=>{s!=="focus"&&(l.current=!1,c.current=!1,p())},m=()=>{l.current=!1,c.current=!1,p(!0)},M=()=>{v4()&&(l.current=!0,u())},b=()=>{l.current=!1,c.current=!1,p(!0)},{hoverProps:x}=w4({isDisabled:n,onHoverStart:j,onHoverEnd:C}),{focusableProps:v}=y4({isDisabled:n,onFocus:M,onBlur:b},o);return{triggerProps:{"aria-describedby":r.isOpen?a:void 0,...f6(v,x,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function T4(t){let[r,o]=p4(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=d.useCallback(()=>{o(!0)},[o]),s=d.useCallback(()=>{o(!1)},[o]),a=d.useCallback(()=>{o(!r)},[o,r]);return{isOpen:r,setOpen:o,open:n,close:s,toggle:a}}const V4=1500,n1=500;let d3={},P4=0,y3=!1,r3=null,u3=null;function $4(t={}){let{delay:r=V4,closeDelay:o=n1}=t,{isOpen:n,open:s,close:a}=T4(t),c=d.useMemo(()=>`${++P4}`,[]),l=d.useRef(null),u=d.useRef(a),p=()=>{d3[c]=m},j=()=>{for(let b in d3)b!==c&&(d3[b](!0),delete d3[b])},C=()=>{l.current&&clearTimeout(l.current),l.current=null,j(),p(),y3=!0,s(),r3&&(clearTimeout(r3),r3=null),u3&&(clearTimeout(u3),u3=null)},m=b=>{b||o<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||(l.current=setTimeout(()=>{l.current=null,u.current()},o)),r3&&(clearTimeout(r3),r3=null),y3&&(u3&&clearTimeout(u3),u3=setTimeout(()=>{delete d3[c],u3=null,y3=!1},Math.max(n1,o)))},M=()=>{j(),p(),!n&&!r3&&!y3?r3=setTimeout(()=>{r3=null,y3=!0,C()},r):n||C()};return d.useEffect(()=>{u.current=a},[a]),d.useEffect(()=>()=>{l.current&&clearTimeout(l.current),d3[c]&&delete d3[c]},[c]),{isOpen:n,open:b=>{!b&&r>0&&!l.current?M():C()},close:m}}function N4({children:t,content:r,className:o,offset:n,delay:s,closeDelay:a,placement:c}){const l=$4({delay:s,closeDelay:a}),u=d.useRef(null),{triggerProps:p,tooltipProps:j}=H4({},l,u),C=h(o,"tooltip");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:u,className:"tooltip-trigger-wrapper",...p,children:t}),e.jsx(f.TooltipTriggerStateContext.Provider,{value:l,children:e.jsxs(f.Tooltip,{...j,triggerRef:u,className:C,offset:n,placement:c,children:[e.jsx(F6,{}),e.jsx("div",{className:"dialog dialog-type-card",children:r})]})})]})}function ce({children:t,content:r,className:o,offset:n=16,trigger:s="hover",delay:a=500,closeDelay:c=100,placement:l,...u}){const p=h(o,"tooltip");return s==="click"?e.jsxs(f.DialogTrigger,{children:[t,e.jsxs(f.Popover,{...u,className:p,offset:n,placement:l,children:[e.jsx(F6,{}),e.jsx(f.Dialog,{className:"dialog dialog-type-card","aria-label":"Tooltip",children:r})]})]}):e.jsx(N4,{content:r,className:o,offset:n,delay:a,closeDelay:c,placement:l,...u,children:t})}function F6({className:t,...r}){const o=h(t,"tooltip-overlay-arrow");return e.jsxs(f.OverlayArrow,{...r,className:o,children:[e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})}),e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})})]})}function le({isAllowed:t,noAccessLabel:r,children:o}){const n=typeof o=="function"?o(t):o;return t?n:e.jsx(ce,{content:r,trigger:"hover",placement:"top",offset:4,children:e.jsx("span",{style:{display:"inline-flex"},children:n})})}function W4({isFavorited:t,onToggle:r,"aria-label":o,size:n="16"}){return e.jsx("button",{type:"button","aria-label":o,"aria-pressed":t,onClick:r,className:`favorite-button${t?" favorite-button--active":""}`,children:t?e.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z"})}):e.jsx(p1,{size:n})})}function E4({title:t,headerIcon:r,children:o,bodyPadding:n="24px",className:s,style:a}){return e.jsxs("div",{className:h("info-card",s),style:a,children:[e.jsxs("div",{className:"info-card-header",children:[e.jsx("span",{className:"info-card-header-title",children:t}),r&&e.jsx("span",{className:"info-card-header-icon",children:r})]}),e.jsx("div",{className:"info-card-body",style:{padding:n},children:o})]})}function S4({isOpen:t,title:r,message:o,confirmValue:n,confirmValueLabel:s,confirmLabel:a="Confirm",cancelLabel:c="Cancel",isDanger:l=!1,isLoading:u=!1,onConfirm:p,onClose:j}){const[C,m]=d.useState(""),M=n?C===n:!0;function b(){m(""),j()}function x(){M&&(m(""),p())}return t?e.jsx(Q3,{isOpen:t,onOpenChange:v=>!v&&b(),children:e.jsxs(K3,{children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:b})]}),e.jsxs(H6,{children:[o&&e.jsx("p",{className:"confirm-dialog-message",dangerouslySetInnerHTML:{__html:o}}),n&&e.jsx(H1,{label:s,value:C,onChange:m,isRequired:!0})]}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"confirm-dialog-footer",children:[e.jsx(Q,{variant:"neutral",onPress:b,isDisabled:u,children:c}),l?e.jsx(y6,{variant:"danger-primary",onPress:x,isDisabled:!M||u,children:u?"...":a}):e.jsx(Q,{variant:"primary",onPress:x,isDisabled:!M||u,children:u?"...":a})]})]})}):null}function Z4(t,r){if(r<=6)return Array.from({length:r},(s,a)=>a+1);const o=[1,2,3],n=[r-1,r];return t<=4?[...o,"...",...n]:t>=r-3?[1,2,"...",r-2,r-1,r]:[1,"...",t-1,t,t+1,"...",r]}function D4({currentPage:t,totalPages:r,onPageChange:o,previousLabel:n,nextLabel:s}){const a=Z4(t,r);return e.jsxs("div",{className:"data-table-pagination",children:[e.jsxs("button",{onClick:()=>o(Math.max(1,t-1)),disabled:t===1,className:"data-table-page-btn data-table-page-nav","aria-label":n,children:[e.jsx(g6,{size:"16"}),n]}),e.jsx("div",{className:"data-table-page-numbers",children:a.map((c,l)=>c==="..."?e.jsx("span",{className:"data-table-page-ellipsis",children:"..."},`ellipsis-${l}`):e.jsx("button",{onClick:()=>o(c),className:`data-table-page-btn${c===t?" data-table-page-btn-active":""}`,children:c},c))}),e.jsxs("button",{onClick:()=>o(Math.min(r,t+1)),disabled:t===r,className:"data-table-page-btn data-table-page-nav","aria-label":s,children:[s,e.jsx(v6,{size:"16"})]})]})}function O4({action:t,item:r}){const o=t.isAllowed!==!1,n=e.jsx("button",{className:"data-table-row-action-btn","aria-label":t.label,disabled:!o,onClick:o?()=>t.onPress(r):void 0,children:t.icon});return o?n:e.jsx(le,{isAllowed:!1,noAccessLabel:t.noAccessLabel??"",children:n})}function de({columns:t,data:r,actions:o,rowActions:n,rowActionsLabel:s="",searchPlaceholder:a="Search...",searchKeys:c=[],isLoading:l=!1,loadingMessage:u="Loading...",emptyMessage:p="No records found",previousLabel:j="Previous",nextLabel:C="Next",pageSize:m=10,nestedColumns:M,getNestedData:b,nestedLoadingMessage:x="Loading...",nestedEmptyMessage:v="No records found",nestedSearchKeys:_,nestedSearchPlaceholder:k,nestedActions:g,nestedPageSize:I}){const[w,P]=d.useState(""),[L,V]=d.useState(1),[W,H]=d.useState(new Set),[D,z]=d.useState(new Map),R=!!b&&!!M,K=!!n;function y(T){const S=T.id;H(O=>{const l3=new Set(O);if(l3.has(S))l3.delete(S);else if(l3.add(S),!D.has(S)){const Y=b(T);Y instanceof Promise?(z(_3=>new Map(_3).set(S,{status:"loading",data:[]})),Y.then(_3=>{z(ue=>new Map(ue).set(S,{status:"loaded",data:_3}))})):z(_3=>new Map(_3).set(S,{status:"loaded",data:Y}))}return l3})}const $=c.length>0,B=$||!!o,A=d.useMemo(()=>{if(!w.trim()||!$)return r;const T=w.toLowerCase();return r.filter(S=>c.some(O=>String(S[O]??"").toLowerCase().includes(T)))},[r,w,c,$]),t3=Math.max(1,Math.ceil(A.length/m)),b3=Math.min(L,t3),N=A.slice((b3-1)*m,b3*m);function Z(T,S){return S.render?S.render(T):String(T[S.key]??"")}return e.jsxs(J,{direction:"column",gap:"300",className:"data-table",children:[B&&e.jsxs("div",{className:"data-table-toolbar",children:[$&&e.jsx(P1,{placeholder:a,onSearch:T=>{P(T),V(1)},className:"data-table-search"}),o&&e.jsx("div",{className:"data-table-actions",children:o})]}),l?e.jsx("div",{role:"status","aria-live":"polite","aria-label":u,className:"data-table-status",children:u}):A.length===0?e.jsx("div",{role:"status",className:"data-table-status data-table-empty",children:p}):e.jsxs(D1,{grid:!0,children:[e.jsxs(R1,{children:[R&&e.jsx(L3,{className:"data-table-expand-col"}),t.map((T,S)=>e.jsx(L3,{align:T.align,isRowHeader:S===0,children:T.label},String(T.key))),K&&e.jsx(L3,{align:"right",className:"data-table-row-actions-col",children:s})]}),e.jsx(O1,{children:N.flatMap(T=>{const S=W.has(T.id),O=D.get(T.id),l3=[e.jsxs(c6,{id:T.id,children:[R&&e.jsx(h3,{className:"data-table-expand-cell",children:e.jsx("button",{className:"data-table-expand-btn","aria-label":S?"Collapse row":"Expand row","aria-expanded":S,onClick:()=>y(T),children:S?e.jsx(x3,{size:"16"}):e.jsx(m6,{size:"16"})})}),t.map(Y=>e.jsx(h3,{align:Y.align,children:Z(T,Y)},String(Y.key))),K&&e.jsx(h3,{align:"right",className:"data-table-row-actions-cell",children:e.jsx("div",{className:"data-table-row-actions",children:(typeof n=="function"?n(T):n).map(Y=>e.jsx(O4,{action:Y,item:T},Y.key))})})]},T.id)];return S&&l3.push(e.jsx(c6,{id:`${T.id}-nested`,className:"data-table-nested-row",children:e.jsx(h3,{colSpan:t.length+1+(K?1:0),className:"data-table-nested-cell",children:e.jsx(de,{columns:M,data:(O==null?void 0:O.data)??[],isLoading:!O||O.status==="loading",loadingMessage:x,emptyMessage:v,searchKeys:_,searchPlaceholder:k,actions:g==null?void 0:g(T),pageSize:I??m})})},`${T.id}-nested`)),l3})})]}),t3>1&&e.jsx(D4,{currentPage:b3,totalPages:t3,onPageChange:V,previousLabel:j,nextLabel:C})]})}function R4({isOpen:t,title:r,submitLabel:o="Save",cancelLabel:n="Cancel",isLoading:s=!1,isSubmitDisabled:a=!1,size:c="medium",onSubmit:l,onClose:u,children:p}){return t?e.jsx(Q3,{isOpen:t,onOpenChange:j=>!j&&u(),children:e.jsxs(K3,{className:h("form-modal",`form-modal--${c}`),children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:u})]}),e.jsx(H6,{children:e.jsx(J,{direction:"column",gap:"300",children:p})}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"form-modal-footer",children:[e.jsx(Q,{variant:"neutral",onPress:u,isDisabled:s,children:n}),e.jsx(Q,{variant:"primary",onPress:l,isDisabled:a||s,children:s?"...":o})]})]})}):null}function A4({title:t,subtitle:r}){return e.jsxs(J,{direction:"column",gap:"200",className:"page-header",children:[e.jsx($3,{elementType:"h1",className:"page-header-title",children:t}),r&&e.jsx($3,{className:"page-header-subtitle",children:r})]})}function F4(t){if(!(!t||typeof window>"u"))try{const r=window.localStorage.getItem(t);if(r==="1")return!0;if(r==="0")return!1}catch{}}function B4(t,r){if(!(!t||typeof window>"u"))try{window.localStorage.setItem(t,r?"1":"0")}catch{}}function z4({items:t,currentRoute:r,onNavigate:o,title:n,collapsed:s,defaultCollapsed:a=!1,onCollapsedChange:c,storageKey:l}){const u=s!==void 0,[p,j]=d.useState(()=>F4(l)??a),C=u?s:p;function m(){const x=!C;u||(j(x),B4(l,x)),c==null||c(x)}const M=r.replace(/^\//,"");function b(x){return M===x||M.startsWith(x+"/")}return e.jsxs("aside",{className:"sidebar","data-collapsed":C||void 0,children:[e.jsxs("button",{type:"button",onClick:m,"aria-label":C?"Expand sidebar":"Collapse sidebar","aria-expanded":!C,className:"sidebar-toggle",children:[e.jsx(d1,{size:"24"}),!C&&n&&e.jsx("span",{className:"sidebar-title",children:n})]}),e.jsx("div",{className:"sidebar-divider",role:"separator"}),t.map(x=>{const v=b(x.key);return e.jsxs("button",{type:"button",onClick:()=>o(x.key),title:x.label,"aria-label":x.label,"aria-current":v?"page":void 0,"data-active":v||void 0,className:"sidebar-item",children:[x.icon,!C&&e.jsx("span",{className:"sidebar-item-label",children:x.label})]},x.key)})]})}exports.Accordion=f0;exports.AccordionItem=C0;exports.Alert=b6;exports.AnchorOrButton=s3;exports.Avatar=V9;exports.AvatarBlock=$9;exports.AvatarButton=P9;exports.AvatarGroup=N9;exports.Button=Q;exports.ButtonDanger=y6;exports.ButtonGroup=W9;exports.Card=E4;exports.Checkbox=X3;exports.CheckboxField=S9;exports.CheckboxGroup=E9;exports.CodeBlock=j0;exports.CodeEditor=_6;exports.CodeEditorField=I9;exports.CodeEditorPanel=H9;exports.ConfirmDialog=S4;exports.DataTable=de;exports.Description=X;exports.DestructiveIconButton=C1;exports.Dialog=K3;exports.DialogBody=H6;exports.DialogButton=Z9;exports.DialogClose=I6;exports.DialogDescription=D9;exports.DialogModal=Q3;exports.DialogTitle=w6;exports.DialogTrigger=y1;exports.ErrorNotification=as;exports.FavoriteButton=W4;exports.Field=T6;exports.FieldError=e3;exports.FieldGroup=A9;exports.Fieldset=O9;exports.Flex=J;exports.FlexItem=k2;exports.Form=F9;exports.FormModal=R4;exports.Grid=v2;exports.GridItem=L2;exports.Icon=i;exports.IconActivity=he;exports.IconAirplay=pe;exports.IconAlertCircle=i1;exports.IconAlertOctagon=fe;exports.IconAlertTriangle=k6;exports.IconAlignCenter=Ce;exports.IconAlignJustify=xe;exports.IconAlignLeft=je;exports.IconAlignRight=ke;exports.IconAnchor=ge;exports.IconAperture=ve;exports.IconArchive=Le;exports.IconArrowDown=me;exports.IconArrowDownCircle=Me;exports.IconArrowDownLeft=be;exports.IconArrowDownRight=_e;exports.IconArrowLeft=g6;exports.IconArrowLeftCircle=ye;exports.IconArrowRight=v6;exports.IconArrowRightCircle=Ie;exports.IconArrowUp=we;exports.IconArrowUpCircle=He;exports.IconArrowUpLeft=Te;exports.IconArrowUpRight=Ve;exports.IconAtSign=Pe;exports.IconAward=$e;exports.IconBarChart=Ne;exports.IconBarChart2=We;exports.IconBattery=Ee;exports.IconBatteryCharging=Se;exports.IconBell=Ze;exports.IconBellOff=De;exports.IconBluetooth=Oe;exports.IconBold=Re;exports.IconBook=Ae;exports.IconBookOpen=Fe;exports.IconBookmark=Be;exports.IconBox=ze;exports.IconBriefcase=Ue;exports.IconButton=o3;exports.IconCalendar=Ge;exports.IconCamera=qe;exports.IconCameraOff=Xe;exports.IconCast=Ke;exports.IconCheck=G3;exports.IconCheckCircle=L6;exports.IconCheckSquare=Qe;exports.IconChevronDown=x3;exports.IconChevronLeft=Ye;exports.IconChevronRight=m6;exports.IconChevronUp=a1;exports.IconChevronsDown=Je;exports.IconChevronsLeft=et;exports.IconChevronsRight=tt;exports.IconChevronsUp=rt;exports.IconChrome=ot;exports.IconCircle=nt;exports.IconClipboard=st;exports.IconClock=it;exports.IconCloud=at;exports.IconCloudDrizzle=ct;exports.IconCloudLightning=lt;exports.IconCloudOff=dt;exports.IconCloudRain=ut;exports.IconCloudSnow=ht;exports.IconCode=pt;exports.IconCodepen=ft;exports.IconCodesandbox=Ct;exports.IconCoffee=xt;exports.IconColumns=jt;exports.IconCommand=kt;exports.IconCompass=gt;exports.IconCopy=c1;exports.IconCornerDownLeft=vt;exports.IconCornerDownRight=Lt;exports.IconCornerLeftDown=mt;exports.IconCornerLeftUp=Mt;exports.IconCornerRightDown=bt;exports.IconCornerRightUp=_t;exports.IconCornerUpLeft=yt;exports.IconCornerUpRight=It;exports.IconCpu=wt;exports.IconCreditCard=Ht;exports.IconCrop=Tt;exports.IconCrosshair=Vt;exports.IconDatabase=Pt;exports.IconDelete=$t;exports.IconDisc=Nt;exports.IconDivide=Wt;exports.IconDivideCircle=Et;exports.IconDivideSquare=St;exports.IconDollarSign=Zt;exports.IconDownload=Dt;exports.IconDownloadCloud=Ot;exports.IconDribbble=Rt;exports.IconDroplet=At;exports.IconEdit=Ft;exports.IconEdit2=Bt;exports.IconEdit3=zt;exports.IconExternalLink=Ut;exports.IconEye=Gt;exports.IconEyeOff=qt;exports.IconFacebook=Xt;exports.IconFastForward=Kt;exports.IconFeather=Qt;exports.IconFigma=Yt;exports.IconFile=Jt;exports.IconFileMinus=er;exports.IconFilePlus=tr;exports.IconFileText=rr;exports.IconFilm=or;exports.IconFilter=nr;exports.IconFlag=sr;exports.IconFolder=ir;exports.IconFolderMinus=ar;exports.IconFolderPlus=cr;exports.IconFramer=lr;exports.IconFrown=dr;exports.IconGift=ur;exports.IconGitBranch=hr;exports.IconGitCommit=pr;exports.IconGitMerge=fr;exports.IconGitPullRequest=Cr;exports.IconGithub=xr;exports.IconGitlab=jr;exports.IconGlobe=kr;exports.IconGrid=gr;exports.IconHardDrive=vr;exports.IconHash=Lr;exports.IconHeadphones=mr;exports.IconHeart=Mr;exports.IconHelpCircle=br;exports.IconHexagon=_r;exports.IconHome=yr;exports.IconImage=Ir;exports.IconInbox=wr;exports.IconInfo=M6;exports.IconInstagram=Hr;exports.IconItalic=Tr;exports.IconKey=Vr;exports.IconLayers=Pr;exports.IconLayout=$r;exports.IconLifeBuoy=Nr;exports.IconLink=Wr;exports.IconLink2=Er;exports.IconLinkedin=Sr;exports.IconList=Zr;exports.IconLoader=l1;exports.IconLock=Dr;exports.IconLogIn=Or;exports.IconLogOut=Rr;exports.IconMail=Ar;exports.IconMap=Fr;exports.IconMapPin=Br;exports.IconMaximize=zr;exports.IconMaximize2=Ur;exports.IconMeh=Gr;exports.IconMenu=d1;exports.IconMessageCircle=qr;exports.IconMessageSquare=Xr;exports.IconMic=Kr;exports.IconMicOff=Qr;exports.IconMinimize=Yr;exports.IconMinimize2=Jr;exports.IconMinus=u1;exports.IconMinusCircle=eo;exports.IconMinusSquare=to;exports.IconMonitor=ro;exports.IconMoon=oo;exports.IconMoreHorizontal=no;exports.IconMoreVertical=so;exports.IconMousePointer=io;exports.IconMove=ao;exports.IconMusic=co;exports.IconNavigation=lo;exports.IconNavigation2=uo;exports.IconOctagon=ho;exports.IconPackage=po;exports.IconPaperclip=fo;exports.IconPause=Co;exports.IconPauseCircle=xo;exports.IconPenTool=jo;exports.IconPercent=ko;exports.IconPhone=go;exports.IconPhoneCall=vo;exports.IconPhoneForwarded=Lo;exports.IconPhoneIncoming=mo;exports.IconPhoneMissed=Mo;exports.IconPhoneOff=bo;exports.IconPhoneOutgoing=_o;exports.IconPieChart=yo;exports.IconPlay=Io;exports.IconPlayCircle=wo;exports.IconPlus=Ho;exports.IconPlusCircle=To;exports.IconPlusSquare=Vo;exports.IconPocket=Po;exports.IconPower=$o;exports.IconPrinter=No;exports.IconRadio=Wo;exports.IconRefreshCcw=Eo;exports.IconRefreshCw=So;exports.IconRepeat=Zo;exports.IconRewind=Do;exports.IconRotateCcw=Oo;exports.IconRotateCw=Ro;exports.IconRss=Ao;exports.IconSave=Fo;exports.IconScissors=Bo;exports.IconSearch=h1;exports.IconSend=zo;exports.IconServer=Uo;exports.IconSettings=Go;exports.IconShare=qo;exports.IconShare2=Xo;exports.IconShield=Ko;exports.IconShieldOff=Qo;exports.IconShoppingBag=Yo;exports.IconShoppingCart=Jo;exports.IconShuffle=en;exports.IconSidebar=tn;exports.IconSkipBack=rn;exports.IconSkipForward=on;exports.IconSlack=nn;exports.IconSlash=sn;exports.IconSliders=an;exports.IconSmartphone=cn;exports.IconSmile=ln;exports.IconSpeaker=dn;exports.IconSquare=un;exports.IconStar=p1;exports.IconStopCircle=hn;exports.IconSun=pn;exports.IconSunrise=fn;exports.IconSunset=Cn;exports.IconTable=xn;exports.IconTablet=jn;exports.IconTag=kn;exports.IconTarget=gn;exports.IconTerminal=vn;exports.IconThermometer=Ln;exports.IconThumbsDown=mn;exports.IconThumbsUp=Mn;exports.IconToggleLeft=bn;exports.IconToggleRight=_n;exports.IconTool=yn;exports.IconTrash=In;exports.IconTrash2=wn;exports.IconTrashOutline=Hn;exports.IconTrello=Tn;exports.IconTrendingDown=Vn;exports.IconTrendingUp=Pn;exports.IconTriangle=$n;exports.IconTruck=Nn;exports.IconTv=Wn;exports.IconTwitch=En;exports.IconTwitter=Sn;exports.IconType=Zn;exports.IconUmbrella=Dn;exports.IconUnderline=On;exports.IconUnlock=Rn;exports.IconUpload=An;exports.IconUploadCloud=Fn;exports.IconUser=Bn;exports.IconUserCheck=zn;exports.IconUserMinus=Un;exports.IconUserPlus=Gn;exports.IconUserX=qn;exports.IconUsers=Xn;exports.IconVideo=Kn;exports.IconVideoOff=Qn;exports.IconVoicemail=Yn;exports.IconVolume=Jn;exports.IconVolume1=e0;exports.IconVolume2=t0;exports.IconVolumeX=r0;exports.IconWatch=o0;exports.IconWifi=n0;exports.IconWifiOff=s0;exports.IconWind=i0;exports.IconX=p3;exports.IconXCircle=f1;exports.IconXOctagon=a0;exports.IconXSquare=c0;exports.IconYoutube=l0;exports.IconZap=d0;exports.IconZapOff=u0;exports.IconZoomIn=h0;exports.IconZoomOut=p0;exports.Image=w1;exports.Input=V6;exports.InputField=H1;exports.Keyboard=I1;exports.Label=G;exports.Legend=R9;exports.Link=T1;exports.ListBox=P6;exports.ListBoxItem=$6;exports.Logo=G9;exports.Menu=N6;exports.MenuButton=q9;exports.MenuDescription=ts;exports.MenuHeader=K9;exports.MenuHeading=Y9;exports.MenuItem=X9;exports.MenuLabel=es;exports.MenuPopover=E6;exports.MenuSection=Q9;exports.MenuSeparator=J9;exports.MenuShortcut=rs;exports.MenuTrigger=W6;exports.Navigation=os;exports.NavigationButton=ss;exports.NavigationPill=ns;exports.Notification=is;exports.PageHeader=A4;exports.Pagination=ls;exports.PaginationGap=fs;exports.PaginationList=hs;exports.PaginationNext=us;exports.PaginationPage=ps;exports.PaginationPrevious=ds;exports.PermissionGate=le;exports.Picture=z9;exports.PictureSource=U9;exports.Radio=V1;exports.RadioField=xs;exports.RadioGroup=Cs;exports.Search=P1;exports.Section=g2;exports.Select=$1;exports.SelectField=js;exports.SelectItem=ks;exports.Sidebar=z4;exports.Slider=N1;exports.SliderField=gs;exports.SliderOutput=W1;exports.SliderThumb=E1;exports.SliderTrack=S1;exports.SplitButton=vs;exports.SuccessNotification=cs;exports.Switch=Z1;exports.SwitchField=ms;exports.SwitchGroup=Ls;exports.Tab=Ms;exports.TabList=bs;exports.TabPanel=_s;exports.Table=D1;exports.TableBody=O1;exports.TableCell=h3;exports.TableColumn=L3;exports.TableHead=R1;exports.TableRow=c6;exports.Tabs=ys;exports.Tag=Is;exports.TagButton=ws;exports.TagToggle=Hs;exports.TagToggleGroup=Ts;exports.TagToggleList=Vs;exports.Text=$3;exports.TextCode=_2;exports.TextContentHeading=T2;exports.TextContentTitle=V2;exports.TextEmphasis=M2;exports.TextHeading=S3;exports.TextInput=y2;exports.TextLink=b2;exports.TextLinkList=H2;exports.TextList=ee;exports.TextListItem=w2;exports.TextPrice=I2;exports.TextSmall=X1;exports.TextSmallStrong=m2;exports.TextStrong=K1;exports.TextSubheading=J1;exports.TextSubtitle=Y1;exports.TextTitleHero=Q1;exports.TextTitlePage=Z6;exports.Textarea=te;exports.TextareaField=P2;exports.ToastContainer=C2;exports.Tooltip=ce;exports.TooltipOverlayArrow=F6;exports.Tree=j2;exports.formEventTargetToFormData=B9;exports.toast=E;exports.useCustomMediaQuery=g3;exports.useMediaQuery=S6;
|
|
817
|
+
`,Q6=new Map,p2=(t,r)=>{q1(()=>{if(typeof document>"u")return;let o=document,n=Q6.get(o);if(n){r&&n.setAttribute("nonce",r);return}let s=o.createElement("style");s.textContent=t,r&&s.setAttribute("nonce",r),o.head.appendChild(s),Q6.set(o,s)},[r])};function f2(t){return p2(h2,t.nonce),d.createElement(u2,{...t})}function C2({type:t}){switch(t){case"success":return e.jsx(L6,{size:"20"});case"error":return e.jsx(f1,{size:"20"});case"warning":return e.jsx(k6,{size:"20"});case"info":return e.jsx(M6,{size:"20"});default:return null}}function x2({className:t,position:r="top-right",autoClose:o=5e3,theme:n="colored",icon:s=C2,...a}){return e.jsx(f2,{className:h("apipass-toast-container",typeof t=="string"?t:void 0),position:r,autoClose:o,theme:n,icon:s,...a})}function j2(t){return t.hasChildItems??!!(t.children&&t.children.length>0)}function k2({className:t,items:r,renderItem:o,isNodeLoading:n,onItemAction:s,...a}){function c(l){return e.jsxs(f.TreeItem,{id:l.id,textValue:l.label,hasChildItems:j2(l),className:"tree-item",onAction:s?()=>s(l):void 0,children:[e.jsx(Y6,{children:o(l)}),l.children&&l.children.length>0&&e.jsx(f.Collection,{items:l.children,children:c}),((n==null?void 0:n(l.id))??!1)&&e.jsx(f.TreeItem,{id:`${l.id}::loading`,textValue:"Loading",isDisabled:!0,className:"tree-item",children:e.jsx(Y6,{children:e.jsx(l1,{size:"16",className:"tree-item-loading-icon"})})})]})}return e.jsx(f.Tree,{items:r,className:h(t,"tree"),...a,children:c})}function Y6({children:t}){return e.jsx(f.TreeItemContent,{children:({hasChildItems:r,level:o})=>e.jsxs("div",{className:"tree-item-row",style:{"--tree-item-depth":o-1},children:[r?e.jsx(f.Button,{slot:"chevron",className:"tree-item-chevron",children:e.jsx(m6,{size:"16"})}):e.jsx("span",{className:"tree-item-chevron-spacer","aria-hidden":"true"}),t]})})}function J({className:t,alignPrimary:r="start",alignSecondary:o="start",container:n=!1,direction:s="row",gap:a,type:c="auto",wrap:l=!1,...u}){const p=h(t,"flex",n&&"flex-container",`flex-align-primary-${r}`,`flex-align-secondary-${o}`,`flex-direction-${s}`,`flex-type-${c}`,a&&`flex-gap-${a}`,l&&"flex-wrap");return e.jsx("div",{className:p,...u,style:{...u.style,"--flex-align-primary":r,"--flex-align-secondary":o,"--flex-direction":s}})}function g2({className:t,children:r,size:o}){const n=h(t,"flex-item",o&&`flex-item-size-${o}`);return e.jsx("div",{className:n,children:r})}function v2({children:t,className:r,elementType:o="section",padding:n="600",paddingBottom:s,paddingTop:a,...c}){const{variant:l="subtle",...u}=c,p=h(r,"section",`section-variant-${c.variant}`,`section-padding-top-${a||n}`,`section-padding-bottom-${s||n}`),j=c.variant==="image"?e.jsx(w1,{alt:"Background image",role:"presentation",src:c.src,size:"fill",aspectRatio:"fill",className:"section-image"}):null;switch(o){case"section":return e.jsxs("section",{className:p,...u,children:[j," ",t]});case"header":return e.jsxs("header",{className:p,...u,children:[j," ",t]});case"footer":return e.jsxs("footer",{className:p,...u,children:[j," ",t]})}}function L2({className:t,columns:r="none",rows:o="none",gap:n,columnGap:s,rowGap:a,flow:c,container:l=!1,justifyItems:u="stretch",alignItems:p="stretch",style:j={},...C}){const m=h(t,"grid",l&&"grid-container",`grid-justify-items-${u}`,`grid-align-items-${p}`,n&&`grid-gap-${n}`,s&&`grid-column-gap-${s}`,a&&`grid-row-gap-${a}`,c&&`grid-flow-${c.replace(" ","-")}`),M={...j,display:"grid",gridTemplateColumns:r,gridTemplateRows:o,gap:n?`var(--sds-size-space-${n})`:void 0,columnGap:s?`var(--sds-size-space-${s})`:void 0,rowGap:a?`var(--sds-size-space-${a})`:void 0,justifyItems:u,alignItems:p};return e.jsx("div",{className:m,style:M,...C})}function m2({className:t,column:r,row:o,area:n,style:s={},...a}){const c=h(t,"grid-item"),l={...s};return r&&(l.gridColumn=r),o&&(l.gridRow=o),n&&(l.gridArea=n),e.jsx("div",{className:c,style:l,...a})}function $3({className:t,elementType:r="p",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-base",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,elementType:r,className:c,...a})}function X1({className:t,elementType:r="small",lineHeight:o="body",lineClamp:n,style:s,...a}){const c=h(t,!!n&&"text-truncate","text-body-small",`text-line-height-${o}`),l=n?{"--text-truncate-line-clamp":n,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function M2({className:t,elementType:r="small",lineClamp:o,lineHeight:n="body",style:s,...a}){const c=h(t,!!o&&"text-truncate","text-body-small-strong",`text-line-height-${n}`),l=o?{"--text-truncate-line-clamp":o,...s}:s;return e.jsx(f.Text,{style:l,className:c,elementType:r,...a})}function K1({className:t,elementType:r="strong",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-body-strong"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function b2({className:t,elementType:r,...o}){const n=h(t,"text-body-emphasis");return e.jsx(f.Text,{className:n,elementType:r,...o})}function _2({className:t,...r}){const o=h(t,"text-body-link");return e.jsx(T1,{className:o,...r})}function y2({className:t,...r}){const o=h(t,"text-body-code");return e.jsx(f.Text,{className:o,...r})}function I2({className:t,...r}){const o=h(t,"text-input");return e.jsx(f.Text,{className:o,...r})}function Q1({className:t,elementType:r="h1",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-hero"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Z6({className:t,elementType:r="h2",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-title-page"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function Y1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subtitle"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function S3({className:t,elementType:r="h3",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-heading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function J1({className:t,elementType:r="p",lineClamp:o,style:n,...s}){const a=h(t,!!o&&"text-truncate","text-subheading"),c=o?{"--text-truncate-line-clamp":o,...n}:n;return e.jsx(f.Text,{style:c,className:a,elementType:r,...s})}function w2({className:t,currency:r,size:o="large",price:n,label:s,...a}){const c=h(t,"text-price",`text-price-size-${o}`),l=e.jsxs(e.Fragment,{children:[e.jsx("sup",{className:"text-price-currency",children:r}),n]});return e.jsxs(f.Text,{elementType:"p",className:c,...a,children:[o==="small"?e.jsx(S3,{elementType:"span",children:l}):e.jsx(Z6,{elementType:"span",children:l}),s&&e.jsx(X1,{children:s})]})}function H2({className:t,...r}){const o=h(t,"text-list-item");return e.jsx("li",{className:o,...r})}function ee({children:t,className:r,density:o="default",title:n,...s}){const a=h(r,"text-list",`text-list-density-${o}`);return e.jsxs("ul",{className:a,...s,children:[n&&e.jsx("li",{className:"text-list-title",children:n}),t]})}function T2({className:t,...r}){const o=h(t,"text-link-list");return e.jsx(ee,{className:o,...r})}function V2({align:t="start",className:r,heading:o,subheading:n,...s}){const a=h(r,"text-content-heading",`text-align-${t}`);return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[e.jsx(S3,{children:o}),n&&e.jsx(J1,{children:n})]})}function P2({align:t="start",className:r,title:o,subtitle:n,...s}){const a=h(r,"text-content-title"),{isMobile:c}=S6();return e.jsxs(J,{direction:"column",gap:"200",className:a,...s,children:[c?e.jsx(Z6,{className:`text-align-${t}`,children:o}):e.jsx(Q1,{className:`text-align-${t}`,children:o}),n&&e.jsx(Y1,{className:`text-align-${t}`,children:n})]})}function $2({className:t,placeholder:r,label:o,description:n,errorMessage:s,...a}){const c=h(t,"field");return e.jsxs(f.TextField,{className:c,...a,children:[o&&e.jsx(G,{children:o}),e.jsx(te,{placeholder:r}),n&&e.jsx(X,{children:n}),e.jsx(e3,{children:s})]})}const te=d.forwardRef(function({isResizable:r=!0,...o},n){const s=h("text-area",r&&"text-area-resizable");return e.jsx(f.TextArea,{ref:n,className:s,...o})}),t6=typeof document<"u"?d.useLayoutEffect:()=>{};var i6;const N2=(i6=d.useInsertionEffect)!==null&&i6!==void 0?i6:t6;function W2(t){const r=d.useRef(null);return N2(()=>{r.current=t},[t]),d.useCallback((...o)=>{const n=r.current;return n==null?void 0:n(...o)},[])}const F3={prefix:String(Math.round(Math.random()*1e10)),current:0},re=d.createContext(F3),E2=d.createContext(!1);let S2=!!(typeof window<"u"&&window.document&&window.document.createElement),a6=new WeakMap;function Z2(t=!1){let r=d.useContext(re),o=d.useRef(null);if(o.current===null&&!t){var n,s;let a=(s=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(n=s.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let c=a6.get(a);c==null?a6.set(a,{id:r.current,state:a.memoizedState}):a.memoizedState!==c.state&&(r.current=c.id,a6.delete(a))}o.current=++r.current}return o.current}function D2(t){let r=d.useContext(re);r===F3&&!S2&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=Z2(!!t),n=r===F3&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return t||`${n}-${o}`}function O2(t){let r=d.useId(),[o]=d.useState(z2()),n=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${F3.prefix}`;return t||`${n}-${r}`}const R2=typeof d.useId=="function"?O2:D2;function A2(){return!1}function F2(){return!0}function B2(t){return()=>{}}function z2(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(B2,A2,F2):d.useContext(E2)}let U2=!!(typeof window<"u"&&window.document&&window.document.createElement),m3=new Map,w3;typeof FinalizationRegistry<"u"&&(w3=new FinalizationRegistry(t=>{m3.delete(t)}));function G2(t){let[r,o]=d.useState(t),n=d.useRef(null),s=R2(r),a=d.useRef(null);if(w3&&w3.register(a,s),U2){const c=m3.get(s);c&&!c.includes(n)?c.push(n):m3.set(s,[n])}return t6(()=>{let c=s;return()=>{w3&&w3.unregister(a),m3.delete(c)}},[s]),d.useEffect(()=>{let c=n.current;return c&&o(c),()=>{c&&(n.current=null)}}),s}function q2(t,r){if(t===r)return t;let o=m3.get(t);if(o)return o.forEach(s=>s.current=r),r;let n=m3.get(r);return n?(n.forEach(s=>s.current=t),t):r}function X2(...t){return(...r)=>{for(let o of t)typeof o=="function"&&o(...r)}}const j3=t=>{var r;return(r=t==null?void 0:t.ownerDocument)!==null&&r!==void 0?r:document},p6=t=>t&&"window"in t&&t.window===t?t:j3(t).defaultView||window;function K2(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Q2(t){return K2(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Y2=!1;function D6(){return Y2}function J2(t,r){if(!D6())return r&&t?t.contains(r):!1;if(!t||!r)return!1;let o=r;for(;o!==null;){if(o===t)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:Q2(o)?o=o.host:o=o.parentNode}return!1}const B3=(t=document)=>{var r;if(!D6())return t.activeElement;let o=t.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function e4(t){return D6()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}function f6(...t){let r={...t[0]};for(let o=1;o<t.length;o++){let n=t[o];for(let s in n){let a=r[s],c=n[s];typeof a=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?r[s]=X2(a,c):(s==="className"||s==="UNSAFE_className")&&typeof a=="string"&&typeof c=="string"?r[s]=h(a,c):s==="id"&&a&&c?r.id=q2(a,c):r[s]=c!==void 0?c:a}}return r}function J6(t){if(t4())t.focus({preventScroll:!0});else{let r=r4(t);t.focus(),o4(r)}}let O3=null;function t4(){if(O3==null){O3=!1;try{document.createElement("div").focus({get preventScroll(){return O3=!0,!0}})}catch{}}return O3}function r4(t){let r=t.parentNode,o=[],n=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==n;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return n instanceof HTMLElement&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),o}function o4(t){for(let{element:r,scrollTop:o,scrollLeft:n}of t)r.scrollTop=o,r.scrollLeft=n}function r6(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let o=(r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands;return Array.isArray(o)&&o.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function O6(t){var r;return typeof window<"u"&&window.navigator!=null?t.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function i3(t){if(process.env.NODE_ENV==="test")return t;let r=null;return()=>(r==null&&(r=t()),r)}const R6=i3(function(){return O6(/^Mac/i)}),n4=i3(function(){return O6(/^iPhone/i)}),s4=i3(function(){return O6(/^iPad/i)||R6()&&navigator.maxTouchPoints>1}),i4=i3(function(){return n4()||s4()});i3(function(){return R6()||i4()});i3(function(){return r6(/AppleWebKit/i)&&!a4()});const a4=i3(function(){return r6(/Chrome/i)}),c4=i3(function(){return r6(/Android/i)});i3(function(){return r6(/Firefox/i)});let a3=new Map,C6=new Set;function e1(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let r=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);s||(s=new Set,a3.set(n.target,s),n.target.addEventListener("transitioncancel",o,{once:!0})),s.add(n.propertyName)},o=n=>{if(!t(n)||!n.target)return;let s=a3.get(n.target);if(s&&(s.delete(n.propertyName),s.size===0&&(n.target.removeEventListener("transitioncancel",o),a3.delete(n.target)),a3.size===0)){for(let a of C6)a();C6.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",o)}typeof document<"u"&&(document.readyState!=="loading"?e1():document.addEventListener("DOMContentLoaded",e1));function l4(){for(const[t]of a3)"isConnected"in t&&!t.isConnected&&a3.delete(t)}function d4(t){requestAnimationFrame(()=>{l4(),a3.size===0?t():C6.add(t)})}function u4(){let t=d.useRef(new Map),r=d.useCallback((s,a,c,l)=>{let u=l!=null&&l.once?(...p)=>{t.current.delete(c),c(...p)}:c;t.current.set(c,{type:a,eventTarget:s,fn:u,options:l}),s.addEventListener(a,u,l)},[]),o=d.useCallback((s,a,c,l)=>{var u;let p=((u=t.current.get(c))===null||u===void 0?void 0:u.fn)||c;s.removeEventListener(a,p,l),t.current.delete(c)},[]),n=d.useCallback(()=>{t.current.forEach((s,a)=>{o(s.eventTarget,s.type,a,s.options)})},[o]);return d.useEffect(()=>n,[n]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:n}}function h4(t,r){t6(()=>{if(t&&t.ref&&r)return t.ref.current=r.current,()=>{t.ref&&(t.ref.current=null)}})}function p4(t){return t.pointerType===""&&t.isTrusted?!0:c4()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function f4(t,r,o){let[n,s]=d.useState(t||r),a=d.useRef(t!==void 0),c=t!==void 0;d.useEffect(()=>{let p=a.current;p!==c&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),a.current=c},[c]);let l=c?t:n,u=d.useCallback((p,...j)=>{let C=(m,...M)=>{o&&(Object.is(l,m)||o(m,...M)),c||(l=m)};typeof p=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((M,...b)=>{let x=p(c?l:M,...b);return C(x,...j),c?M:x})):(c||s(p),C(p,...j))},[c,l,o]);return[l,u]}function C4(t){let r=t;return r.nativeEvent=t,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function x4(t){let r=d.useRef({isFocused:!1,observer:null});t6(()=>{const n=r.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let o=W2(n=>{t==null||t(n)});return d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){r.current.isFocused=!0;let s=n.target,a=c=>{if(r.current.isFocused=!1,s.disabled){let l=C4(c);o(l)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};s.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&s.disabled){var c;(c=r.current.observer)===null||c===void 0||c.disconnect();let l=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let j4=!1,M3=null,k4=new Set,T3=new Map,C3=!1,x6=!1;function A6(t,r){for(let o of k4)o(t,r)}function g4(t){return!(t.metaKey||!R6()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function z3(t){C3=!0,g4(t)&&(M3="keyboard",A6("keyboard",t))}function q(t){M3="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(C3=!0,A6("pointer",t))}function oe(t){p4(t)&&(C3=!0,M3="virtual")}function ne(t){t.target===window||t.target===document||j4||!t.isTrusted||(!C3&&!x6&&(M3="virtual",A6("virtual",t)),C3=!1,x6=!1)}function se(){C3=!1,x6=!0}function t1(t){if(typeof window>"u"||typeof document>"u"||T3.get(p6(t)))return;const r=p6(t),o=j3(t);let n=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){C3=!0,n.apply(this,arguments)},o.addEventListener("keydown",z3,!0),o.addEventListener("keyup",z3,!0),o.addEventListener("click",oe,!0),r.addEventListener("focus",ne,!0),r.addEventListener("blur",se,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",q,!0),o.addEventListener("pointermove",q,!0),o.addEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",q,!0),o.addEventListener("mousemove",q,!0),o.addEventListener("mouseup",q,!0)),r.addEventListener("beforeunload",()=>{ie(t)},{once:!0}),T3.set(r,{focus:n})}const ie=(t,r)=>{const o=p6(t),n=j3(t);r&&n.removeEventListener("DOMContentLoaded",r),T3.has(o)&&(o.HTMLElement.prototype.focus=T3.get(o).focus,n.removeEventListener("keydown",z3,!0),n.removeEventListener("keyup",z3,!0),n.removeEventListener("click",oe,!0),o.removeEventListener("focus",ne,!0),o.removeEventListener("blur",se,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",q,!0),n.removeEventListener("pointermove",q,!0),n.removeEventListener("pointerup",q,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",q,!0),n.removeEventListener("mousemove",q,!0),n.removeEventListener("mouseup",q,!0)),T3.delete(o))};function v4(t){const r=j3(t);let o;return r.readyState!=="loading"?t1(t):(o=()=>{t1(t)},r.addEventListener("DOMContentLoaded",o)),()=>ie(t,o)}typeof document<"u"&&v4();function L4(){return M3!=="pointer"}function ae(){return M3}function m4(t){const r=j3(t),o=B3(r);if(ae()==="virtual"){let n=o;d4(()=>{B3(r)===n&&t.isConnected&&J6(t)})}else J6(t)}function M4(t){let{isDisabled:r,onFocus:o,onBlur:n,onFocusChange:s}=t;const a=d.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),s&&s(!1),!0},[n,s]),c=x4(a),l=d.useCallback(u=>{const p=j3(u.target),j=p?B3(p):B3();u.target===u.currentTarget&&j===e4(u.nativeEvent)&&(o&&o(u),s&&s(!0),c(u))},[s,o,c]);return{focusProps:{onFocus:!r&&(o||s||n)?l:void 0,onBlur:!r&&(n||s)?a:void 0}}}function r1(t){if(!t)return;let r=!0;return o=>{let n={...o,preventDefault(){o.preventDefault()},isDefaultPrevented(){return o.isDefaultPrevented()},stopPropagation(){r&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):r=!0},continuePropagation(){r=!1},isPropagationStopped(){return r}};t(n),r&&o.stopPropagation()}}function b4(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:r1(t.onKeyDown),onKeyUp:r1(t.onKeyUp)}}}let _4=d.createContext(null);function y4(t){let r=d.useContext(_4)||{};h4(r,t);let{ref:o,...n}=r;return n}function I4(t,r){let{focusProps:o}=M4(t),{keyboardProps:n}=b4(t),s=f6(o,n),a=y4(r),c=t.isDisabled?{}:a,l=d.useRef(t.autoFocus);d.useEffect(()=>{l.current&&r.current&&m4(r.current),l.current=!1},[r]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:f6({...s,tabIndex:u},c)}}let U3=!1,R3=0;function j6(){U3=!0,setTimeout(()=>{U3=!1},50)}function o1(t){t.pointerType==="touch"&&j6()}function w4(){if(!(typeof document>"u"))return R3===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",j6)),R3++,()=>{R3--,!(R3>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",o1):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",j6))}}function H4(t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:s}=t,[a,c]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(w4,[]);let{addGlobalListener:u,removeAllGlobalListeners:p}=u4(),{hoverProps:j,triggerHoverEnd:C}=d.useMemo(()=>{let m=(x,v)=>{if(l.pointerType=v,s||v==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let _=x.currentTarget;l.target=_,u(j3(x.target),"pointerover",k=>{l.isHovered&&l.target&&!J2(l.target,k.target)&&M(k,k.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:_,pointerType:v}),o&&o(!0),c(!0)},M=(x,v)=>{let _=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!_)&&(l.isHovered=!1,p(),n&&n({type:"hoverend",target:_,pointerType:v}),o&&o(!1),c(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=x=>{U3&&x.pointerType==="mouse"||m(x,x.pointerType)},b.onPointerLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!U3&&m(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=x=>{!s&&x.currentTarget.contains(x.target)&&M(x,"mouse")}),{hoverProps:b,triggerHoverEnd:M}},[r,o,n,s,l,u,p]);return d.useEffect(()=>{s&&C({currentTarget:l.target},l.pointerType)},[s]),{hoverProps:j,isHovered:a}}function T4(t,r,o){let{isDisabled:n,trigger:s}=t,a=G2(),c=d.useRef(!1),l=d.useRef(!1),u=()=>{(c.current||l.current)&&r.open(l.current)},p=_=>{!c.current&&!l.current&&r.close(_)};d.useEffect(()=>{let _=k=>{o&&o.current&&k.key==="Escape"&&(k.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[o,r]);let j=()=>{s!=="focus"&&(ae()==="pointer"?c.current=!0:c.current=!1,u())},C=()=>{s!=="focus"&&(l.current=!1,c.current=!1,p())},m=()=>{l.current=!1,c.current=!1,p(!0)},M=()=>{L4()&&(l.current=!0,u())},b=()=>{l.current=!1,c.current=!1,p(!0)},{hoverProps:x}=H4({isDisabled:n,onHoverStart:j,onHoverEnd:C}),{focusableProps:v}=I4({isDisabled:n,onFocus:M,onBlur:b},o);return{triggerProps:{"aria-describedby":r.isOpen?a:void 0,...f6(v,x,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function V4(t){let[r,o]=f4(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=d.useCallback(()=>{o(!0)},[o]),s=d.useCallback(()=>{o(!1)},[o]),a=d.useCallback(()=>{o(!r)},[o,r]);return{isOpen:r,setOpen:o,open:n,close:s,toggle:a}}const P4=1500,n1=500;let d3={},$4=0,y3=!1,r3=null,u3=null;function N4(t={}){let{delay:r=P4,closeDelay:o=n1}=t,{isOpen:n,open:s,close:a}=V4(t),c=d.useMemo(()=>`${++$4}`,[]),l=d.useRef(null),u=d.useRef(a),p=()=>{d3[c]=m},j=()=>{for(let b in d3)b!==c&&(d3[b](!0),delete d3[b])},C=()=>{l.current&&clearTimeout(l.current),l.current=null,j(),p(),y3=!0,s(),r3&&(clearTimeout(r3),r3=null),u3&&(clearTimeout(u3),u3=null)},m=b=>{b||o<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||(l.current=setTimeout(()=>{l.current=null,u.current()},o)),r3&&(clearTimeout(r3),r3=null),y3&&(u3&&clearTimeout(u3),u3=setTimeout(()=>{delete d3[c],u3=null,y3=!1},Math.max(n1,o)))},M=()=>{j(),p(),!n&&!r3&&!y3?r3=setTimeout(()=>{r3=null,y3=!0,C()},r):n||C()};return d.useEffect(()=>{u.current=a},[a]),d.useEffect(()=>()=>{l.current&&clearTimeout(l.current),d3[c]&&delete d3[c]},[c]),{isOpen:n,open:b=>{!b&&r>0&&!l.current?M():C()},close:m}}function W4({children:t,content:r,className:o,offset:n,delay:s,closeDelay:a,placement:c}){const l=N4({delay:s,closeDelay:a}),u=d.useRef(null),{triggerProps:p,tooltipProps:j}=T4({},l,u),C=h(o,"tooltip");return e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:u,className:"tooltip-trigger-wrapper",...p,children:t}),e.jsx(f.TooltipTriggerStateContext.Provider,{value:l,children:e.jsxs(f.Tooltip,{...j,triggerRef:u,className:C,offset:n,placement:c,children:[e.jsx(F6,{}),e.jsx("div",{className:"dialog dialog-type-card",children:r})]})})]})}function ce({children:t,content:r,className:o,offset:n=16,trigger:s="hover",delay:a=500,closeDelay:c=100,placement:l,...u}){const p=h(o,"tooltip");return s==="click"?e.jsxs(f.DialogTrigger,{children:[t,e.jsxs(f.Popover,{...u,className:p,offset:n,placement:l,children:[e.jsx(F6,{}),e.jsx(f.Dialog,{className:"dialog dialog-type-card","aria-label":"Tooltip",children:r})]})]}):e.jsx(W4,{content:r,className:o,offset:n,delay:a,closeDelay:c,placement:l,...u,children:t})}function F6({className:t,...r}){const o=h(t,"tooltip-overlay-arrow");return e.jsxs(f.OverlayArrow,{...r,className:o,children:[e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})}),e.jsx("svg",{viewBox:"0 0 10 5",children:e.jsx("path",{d:"M0 0 L5 5 L10 0"})})]})}function le({isAllowed:t,noAccessLabel:r,children:o}){const n=typeof o=="function"?o(t):o;return t?n:e.jsx(ce,{content:r,trigger:"hover",placement:"top",offset:4,children:e.jsx("span",{style:{display:"inline-flex"},children:n})})}function E4({isFavorited:t,onToggle:r,"aria-label":o,size:n="16"}){return e.jsx("button",{type:"button","aria-label":o,"aria-pressed":t,onClick:r,className:`favorite-button${t?" favorite-button--active":""}`,children:t?e.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z"})}):e.jsx(p1,{size:n})})}function S4({title:t,headerIcon:r,children:o,bodyPadding:n="24px",className:s,style:a}){return e.jsxs("div",{className:h("info-card",s),style:a,children:[e.jsxs("div",{className:"info-card-header",children:[e.jsx("span",{className:"info-card-header-title",children:t}),r&&e.jsx("span",{className:"info-card-header-icon",children:r})]}),e.jsx("div",{className:"info-card-body",style:{padding:n},children:o})]})}function Z4({isOpen:t,title:r,message:o,confirmValue:n,confirmValueLabel:s,confirmLabel:a="Confirm",cancelLabel:c="Cancel",isDanger:l=!1,isLoading:u=!1,onConfirm:p,onClose:j}){const[C,m]=d.useState(""),M=n?C===n:!0;function b(){m(""),j()}function x(){M&&(m(""),p())}return t?e.jsx(Q3,{isOpen:t,onOpenChange:v=>!v&&b(),children:e.jsxs(K3,{children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:b})]}),e.jsxs(H6,{children:[o&&e.jsx("p",{className:"confirm-dialog-message",dangerouslySetInnerHTML:{__html:o}}),n&&e.jsx(H1,{label:s,value:C,onChange:m,isRequired:!0})]}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"confirm-dialog-footer",children:[e.jsx(Q,{variant:"neutral",onPress:b,isDisabled:u,children:c}),l?e.jsx(y6,{variant:"danger-primary",onPress:x,isDisabled:!M||u,children:u?"...":a}):e.jsx(Q,{variant:"primary",onPress:x,isDisabled:!M||u,children:u?"...":a})]})]})}):null}function D4(t,r){if(r<=6)return Array.from({length:r},(s,a)=>a+1);const o=[1,2,3],n=[r-1,r];return t<=4?[...o,"...",...n]:t>=r-3?[1,2,"...",r-2,r-1,r]:[1,"...",t-1,t,t+1,"...",r]}function O4({currentPage:t,totalPages:r,onPageChange:o,previousLabel:n,nextLabel:s}){const a=D4(t,r);return e.jsxs("div",{className:"data-table-pagination",children:[e.jsxs("button",{onClick:()=>o(Math.max(1,t-1)),disabled:t===1,className:"data-table-page-btn data-table-page-nav","aria-label":n,children:[e.jsx(g6,{size:"16"}),n]}),e.jsx("div",{className:"data-table-page-numbers",children:a.map((c,l)=>c==="..."?e.jsx("span",{className:"data-table-page-ellipsis",children:"..."},`ellipsis-${l}`):e.jsx("button",{onClick:()=>o(c),className:`data-table-page-btn${c===t?" data-table-page-btn-active":""}`,children:c},c))}),e.jsxs("button",{onClick:()=>o(Math.min(r,t+1)),disabled:t===r,className:"data-table-page-btn data-table-page-nav","aria-label":s,children:[s,e.jsx(v6,{size:"16"})]})]})}function R4({action:t,item:r}){const o=t.isAllowed!==!1,n=e.jsx("button",{className:"data-table-row-action-btn","aria-label":t.label,disabled:!o,onClick:o?()=>t.onPress(r):void 0,children:t.icon});return o?n:e.jsx(le,{isAllowed:!1,noAccessLabel:t.noAccessLabel??"",children:n})}function de({columns:t,data:r,actions:o,rowActions:n,rowActionsLabel:s="",searchPlaceholder:a="Search...",searchKeys:c=[],isLoading:l=!1,loadingMessage:u="Loading...",emptyMessage:p="No records found",previousLabel:j="Previous",nextLabel:C="Next",pageSize:m=10,nestedColumns:M,getNestedData:b,nestedLoadingMessage:x="Loading...",nestedEmptyMessage:v="No records found",nestedSearchKeys:_,nestedSearchPlaceholder:k,nestedActions:g,nestedPageSize:I}){const[w,P]=d.useState(""),[L,V]=d.useState(1),[W,H]=d.useState(new Set),[D,z]=d.useState(new Map),R=!!b&&!!M,K=!!n;function y(T){const S=T.id;H(O=>{const l3=new Set(O);if(l3.has(S))l3.delete(S);else if(l3.add(S),!D.has(S)){const Y=b(T);Y instanceof Promise?(z(_3=>new Map(_3).set(S,{status:"loading",data:[]})),Y.then(_3=>{z(ue=>new Map(ue).set(S,{status:"loaded",data:_3}))})):z(_3=>new Map(_3).set(S,{status:"loaded",data:Y}))}return l3})}const $=c.length>0,B=$||!!o,A=d.useMemo(()=>{if(!w.trim()||!$)return r;const T=w.toLowerCase();return r.filter(S=>c.some(O=>String(S[O]??"").toLowerCase().includes(T)))},[r,w,c,$]),t3=Math.max(1,Math.ceil(A.length/m)),b3=Math.min(L,t3),N=A.slice((b3-1)*m,b3*m);function Z(T,S){return S.render?S.render(T):String(T[S.key]??"")}return e.jsxs(J,{direction:"column",gap:"300",className:"data-table",children:[B&&e.jsxs("div",{className:"data-table-toolbar",children:[$&&e.jsx(P1,{placeholder:a,onSearch:T=>{P(T),V(1)},className:"data-table-search"}),o&&e.jsx("div",{className:"data-table-actions",children:o})]}),l?e.jsx("div",{role:"status","aria-live":"polite","aria-label":u,className:"data-table-status",children:u}):A.length===0?e.jsx("div",{role:"status",className:"data-table-status data-table-empty",children:p}):e.jsxs(D1,{grid:!0,children:[e.jsxs(R1,{children:[R&&e.jsx(L3,{className:"data-table-expand-col"}),t.map((T,S)=>e.jsx(L3,{align:T.align,isRowHeader:S===0,children:T.label},String(T.key))),K&&e.jsx(L3,{align:"right",className:"data-table-row-actions-col",children:s})]}),e.jsx(O1,{children:N.flatMap(T=>{const S=W.has(T.id),O=D.get(T.id),l3=[e.jsxs(c6,{id:T.id,children:[R&&e.jsx(h3,{className:"data-table-expand-cell",children:e.jsx("button",{className:"data-table-expand-btn","aria-label":S?"Collapse row":"Expand row","aria-expanded":S,onClick:()=>y(T),children:S?e.jsx(x3,{size:"16"}):e.jsx(m6,{size:"16"})})}),t.map(Y=>e.jsx(h3,{align:Y.align,children:Z(T,Y)},String(Y.key))),K&&e.jsx(h3,{align:"right",className:"data-table-row-actions-cell",children:e.jsx("div",{className:"data-table-row-actions",children:(typeof n=="function"?n(T):n).map(Y=>e.jsx(R4,{action:Y,item:T},Y.key))})})]},T.id)];return S&&l3.push(e.jsx(c6,{id:`${T.id}-nested`,className:"data-table-nested-row",children:e.jsx(h3,{colSpan:t.length+1+(K?1:0),className:"data-table-nested-cell",children:e.jsx(de,{columns:M,data:(O==null?void 0:O.data)??[],isLoading:!O||O.status==="loading",loadingMessage:x,emptyMessage:v,searchKeys:_,searchPlaceholder:k,actions:g==null?void 0:g(T),pageSize:I??m})})},`${T.id}-nested`)),l3})})]}),t3>1&&e.jsx(O4,{currentPage:b3,totalPages:t3,onPageChange:V,previousLabel:j,nextLabel:C})]})}function A4({isOpen:t,title:r,submitLabel:o="Save",cancelLabel:n="Cancel",isLoading:s=!1,isSubmitDisabled:a=!1,size:c="medium",onSubmit:l,onClose:u,children:p}){return t?e.jsx(Q3,{isOpen:t,onOpenChange:j=>!j&&u(),children:e.jsxs(K3,{className:h("form-modal",`form-modal--${c}`),children:[e.jsxs(J,{direction:"row",alignPrimary:"space-between",alignSecondary:"center",children:[e.jsx(w6,{children:r}),e.jsx(I6,{onPress:u})]}),e.jsx(H6,{children:e.jsx(J,{direction:"column",gap:"300",children:p})}),e.jsxs(J,{direction:"row",gap:"200",alignPrimary:"end",className:"form-modal-footer",children:[e.jsx(Q,{variant:"neutral",onPress:u,isDisabled:s,children:n}),e.jsx(Q,{variant:"primary",onPress:l,isDisabled:a||s,children:s?"...":o})]})]})}):null}function F4({title:t,subtitle:r}){return e.jsxs(J,{direction:"column",gap:"200",className:"page-header",children:[e.jsx($3,{elementType:"h1",className:"page-header-title",children:t}),r&&e.jsx($3,{className:"page-header-subtitle",children:r})]})}function B4(t){if(!(!t||typeof window>"u"))try{const r=window.localStorage.getItem(t);if(r==="1")return!0;if(r==="0")return!1}catch{}}function z4(t,r){if(!(!t||typeof window>"u"))try{window.localStorage.setItem(t,r?"1":"0")}catch{}}function U4({items:t,currentRoute:r,onNavigate:o,title:n,collapsed:s,defaultCollapsed:a=!1,onCollapsedChange:c,storageKey:l}){const u=s!==void 0,[p,j]=d.useState(()=>B4(l)??a),C=u?s:p;function m(){const x=!C;u||(j(x),z4(l,x)),c==null||c(x)}const M=r.replace(/^\//,"");function b(x){return M===x||M.startsWith(x+"/")}return e.jsxs("aside",{className:"sidebar","data-collapsed":C||void 0,children:[e.jsxs("button",{type:"button",onClick:m,"aria-label":C?"Expand sidebar":"Collapse sidebar","aria-expanded":!C,className:"sidebar-toggle",children:[e.jsx(d1,{size:"24"}),!C&&n&&e.jsx("span",{className:"sidebar-title",children:n})]}),e.jsx("div",{className:"sidebar-divider",role:"separator"}),t.map(x=>{const v=b(x.key);return e.jsxs("button",{type:"button",onClick:()=>o(x.key),title:x.label,"aria-label":x.label,"aria-current":v?"page":void 0,"data-active":v||void 0,className:"sidebar-item",children:[x.icon,!C&&e.jsx("span",{className:"sidebar-item-label",children:x.label})]},x.key)})]})}exports.Accordion=f0;exports.AccordionItem=C0;exports.Alert=b6;exports.AnchorOrButton=s3;exports.Avatar=V9;exports.AvatarBlock=$9;exports.AvatarButton=P9;exports.AvatarGroup=N9;exports.Button=Q;exports.ButtonDanger=y6;exports.ButtonGroup=W9;exports.Card=S4;exports.Checkbox=X3;exports.CheckboxField=S9;exports.CheckboxGroup=E9;exports.CodeBlock=j0;exports.CodeEditor=_6;exports.CodeEditorField=I9;exports.CodeEditorPanel=H9;exports.ConfirmDialog=Z4;exports.DataTable=de;exports.Description=X;exports.DestructiveIconButton=C1;exports.Dialog=K3;exports.DialogBody=H6;exports.DialogButton=Z9;exports.DialogClose=I6;exports.DialogDescription=D9;exports.DialogModal=Q3;exports.DialogTitle=w6;exports.DialogTrigger=y1;exports.Divider=O9;exports.ErrorNotification=cs;exports.FavoriteButton=E4;exports.Field=T6;exports.FieldError=e3;exports.FieldGroup=F9;exports.Fieldset=R9;exports.Flex=J;exports.FlexItem=g2;exports.Form=B9;exports.FormModal=A4;exports.Grid=L2;exports.GridItem=m2;exports.Icon=i;exports.IconActivity=he;exports.IconAirplay=pe;exports.IconAlertCircle=i1;exports.IconAlertOctagon=fe;exports.IconAlertTriangle=k6;exports.IconAlignCenter=Ce;exports.IconAlignJustify=xe;exports.IconAlignLeft=je;exports.IconAlignRight=ke;exports.IconAnchor=ge;exports.IconAperture=ve;exports.IconArchive=Le;exports.IconArrowDown=me;exports.IconArrowDownCircle=Me;exports.IconArrowDownLeft=be;exports.IconArrowDownRight=_e;exports.IconArrowLeft=g6;exports.IconArrowLeftCircle=ye;exports.IconArrowRight=v6;exports.IconArrowRightCircle=Ie;exports.IconArrowUp=we;exports.IconArrowUpCircle=He;exports.IconArrowUpLeft=Te;exports.IconArrowUpRight=Ve;exports.IconAtSign=Pe;exports.IconAward=$e;exports.IconBarChart=Ne;exports.IconBarChart2=We;exports.IconBattery=Ee;exports.IconBatteryCharging=Se;exports.IconBell=Ze;exports.IconBellOff=De;exports.IconBluetooth=Oe;exports.IconBold=Re;exports.IconBook=Ae;exports.IconBookOpen=Fe;exports.IconBookmark=Be;exports.IconBox=ze;exports.IconBriefcase=Ue;exports.IconButton=o3;exports.IconCalendar=Ge;exports.IconCamera=qe;exports.IconCameraOff=Xe;exports.IconCast=Ke;exports.IconCheck=G3;exports.IconCheckCircle=L6;exports.IconCheckSquare=Qe;exports.IconChevronDown=x3;exports.IconChevronLeft=Ye;exports.IconChevronRight=m6;exports.IconChevronUp=a1;exports.IconChevronsDown=Je;exports.IconChevronsLeft=et;exports.IconChevronsRight=tt;exports.IconChevronsUp=rt;exports.IconChrome=ot;exports.IconCircle=nt;exports.IconClipboard=st;exports.IconClock=it;exports.IconCloud=at;exports.IconCloudDrizzle=ct;exports.IconCloudLightning=lt;exports.IconCloudOff=dt;exports.IconCloudRain=ut;exports.IconCloudSnow=ht;exports.IconCode=pt;exports.IconCodepen=ft;exports.IconCodesandbox=Ct;exports.IconCoffee=xt;exports.IconColumns=jt;exports.IconCommand=kt;exports.IconCompass=gt;exports.IconCopy=c1;exports.IconCornerDownLeft=vt;exports.IconCornerDownRight=Lt;exports.IconCornerLeftDown=mt;exports.IconCornerLeftUp=Mt;exports.IconCornerRightDown=bt;exports.IconCornerRightUp=_t;exports.IconCornerUpLeft=yt;exports.IconCornerUpRight=It;exports.IconCpu=wt;exports.IconCreditCard=Ht;exports.IconCrop=Tt;exports.IconCrosshair=Vt;exports.IconDatabase=Pt;exports.IconDelete=$t;exports.IconDisc=Nt;exports.IconDivide=Wt;exports.IconDivideCircle=Et;exports.IconDivideSquare=St;exports.IconDollarSign=Zt;exports.IconDownload=Dt;exports.IconDownloadCloud=Ot;exports.IconDribbble=Rt;exports.IconDroplet=At;exports.IconEdit=Ft;exports.IconEdit2=Bt;exports.IconEdit3=zt;exports.IconExternalLink=Ut;exports.IconEye=Gt;exports.IconEyeOff=qt;exports.IconFacebook=Xt;exports.IconFastForward=Kt;exports.IconFeather=Qt;exports.IconFigma=Yt;exports.IconFile=Jt;exports.IconFileMinus=er;exports.IconFilePlus=tr;exports.IconFileText=rr;exports.IconFilm=or;exports.IconFilter=nr;exports.IconFlag=sr;exports.IconFolder=ir;exports.IconFolderMinus=ar;exports.IconFolderPlus=cr;exports.IconFramer=lr;exports.IconFrown=dr;exports.IconGift=ur;exports.IconGitBranch=hr;exports.IconGitCommit=pr;exports.IconGitMerge=fr;exports.IconGitPullRequest=Cr;exports.IconGithub=xr;exports.IconGitlab=jr;exports.IconGlobe=kr;exports.IconGrid=gr;exports.IconHardDrive=vr;exports.IconHash=Lr;exports.IconHeadphones=mr;exports.IconHeart=Mr;exports.IconHelpCircle=br;exports.IconHexagon=_r;exports.IconHome=yr;exports.IconImage=Ir;exports.IconInbox=wr;exports.IconInfo=M6;exports.IconInstagram=Hr;exports.IconItalic=Tr;exports.IconKey=Vr;exports.IconLayers=Pr;exports.IconLayout=$r;exports.IconLifeBuoy=Nr;exports.IconLink=Wr;exports.IconLink2=Er;exports.IconLinkedin=Sr;exports.IconList=Zr;exports.IconLoader=l1;exports.IconLock=Dr;exports.IconLogIn=Or;exports.IconLogOut=Rr;exports.IconMail=Ar;exports.IconMap=Fr;exports.IconMapPin=Br;exports.IconMaximize=zr;exports.IconMaximize2=Ur;exports.IconMeh=Gr;exports.IconMenu=d1;exports.IconMessageCircle=qr;exports.IconMessageSquare=Xr;exports.IconMic=Kr;exports.IconMicOff=Qr;exports.IconMinimize=Yr;exports.IconMinimize2=Jr;exports.IconMinus=u1;exports.IconMinusCircle=eo;exports.IconMinusSquare=to;exports.IconMonitor=ro;exports.IconMoon=oo;exports.IconMoreHorizontal=no;exports.IconMoreVertical=so;exports.IconMousePointer=io;exports.IconMove=ao;exports.IconMusic=co;exports.IconNavigation=lo;exports.IconNavigation2=uo;exports.IconOctagon=ho;exports.IconPackage=po;exports.IconPaperclip=fo;exports.IconPause=Co;exports.IconPauseCircle=xo;exports.IconPenTool=jo;exports.IconPercent=ko;exports.IconPhone=go;exports.IconPhoneCall=vo;exports.IconPhoneForwarded=Lo;exports.IconPhoneIncoming=mo;exports.IconPhoneMissed=Mo;exports.IconPhoneOff=bo;exports.IconPhoneOutgoing=_o;exports.IconPieChart=yo;exports.IconPlay=Io;exports.IconPlayCircle=wo;exports.IconPlus=Ho;exports.IconPlusCircle=To;exports.IconPlusSquare=Vo;exports.IconPocket=Po;exports.IconPower=$o;exports.IconPrinter=No;exports.IconRadio=Wo;exports.IconRefreshCcw=Eo;exports.IconRefreshCw=So;exports.IconRepeat=Zo;exports.IconRewind=Do;exports.IconRotateCcw=Oo;exports.IconRotateCw=Ro;exports.IconRss=Ao;exports.IconSave=Fo;exports.IconScissors=Bo;exports.IconSearch=h1;exports.IconSend=zo;exports.IconServer=Uo;exports.IconSettings=Go;exports.IconShare=qo;exports.IconShare2=Xo;exports.IconShield=Ko;exports.IconShieldOff=Qo;exports.IconShoppingBag=Yo;exports.IconShoppingCart=Jo;exports.IconShuffle=en;exports.IconSidebar=tn;exports.IconSkipBack=rn;exports.IconSkipForward=on;exports.IconSlack=nn;exports.IconSlash=sn;exports.IconSliders=an;exports.IconSmartphone=cn;exports.IconSmile=ln;exports.IconSpeaker=dn;exports.IconSquare=un;exports.IconStar=p1;exports.IconStopCircle=hn;exports.IconSun=pn;exports.IconSunrise=fn;exports.IconSunset=Cn;exports.IconTable=xn;exports.IconTablet=jn;exports.IconTag=kn;exports.IconTarget=gn;exports.IconTerminal=vn;exports.IconThermometer=Ln;exports.IconThumbsDown=mn;exports.IconThumbsUp=Mn;exports.IconToggleLeft=bn;exports.IconToggleRight=_n;exports.IconTool=yn;exports.IconTrash=In;exports.IconTrash2=wn;exports.IconTrashOutline=Hn;exports.IconTrello=Tn;exports.IconTrendingDown=Vn;exports.IconTrendingUp=Pn;exports.IconTriangle=$n;exports.IconTruck=Nn;exports.IconTv=Wn;exports.IconTwitch=En;exports.IconTwitter=Sn;exports.IconType=Zn;exports.IconUmbrella=Dn;exports.IconUnderline=On;exports.IconUnlock=Rn;exports.IconUpload=An;exports.IconUploadCloud=Fn;exports.IconUser=Bn;exports.IconUserCheck=zn;exports.IconUserMinus=Un;exports.IconUserPlus=Gn;exports.IconUserX=qn;exports.IconUsers=Xn;exports.IconVideo=Kn;exports.IconVideoOff=Qn;exports.IconVoicemail=Yn;exports.IconVolume=Jn;exports.IconVolume1=e0;exports.IconVolume2=t0;exports.IconVolumeX=r0;exports.IconWatch=o0;exports.IconWifi=n0;exports.IconWifiOff=s0;exports.IconWind=i0;exports.IconX=p3;exports.IconXCircle=f1;exports.IconXOctagon=a0;exports.IconXSquare=c0;exports.IconYoutube=l0;exports.IconZap=d0;exports.IconZapOff=u0;exports.IconZoomIn=h0;exports.IconZoomOut=p0;exports.Image=w1;exports.Input=V6;exports.InputField=H1;exports.Keyboard=I1;exports.Label=G;exports.Legend=A9;exports.Link=T1;exports.ListBox=P6;exports.ListBoxItem=$6;exports.Logo=q9;exports.Menu=N6;exports.MenuButton=X9;exports.MenuDescription=rs;exports.MenuHeader=Q9;exports.MenuHeading=J9;exports.MenuItem=K9;exports.MenuLabel=ts;exports.MenuPopover=E6;exports.MenuSection=Y9;exports.MenuSeparator=es;exports.MenuShortcut=os;exports.MenuTrigger=W6;exports.Navigation=ns;exports.NavigationButton=is;exports.NavigationPill=ss;exports.Notification=as;exports.PageHeader=F4;exports.Pagination=ds;exports.PaginationGap=Cs;exports.PaginationList=ps;exports.PaginationNext=hs;exports.PaginationPage=fs;exports.PaginationPrevious=us;exports.PermissionGate=le;exports.Picture=U9;exports.PictureSource=G9;exports.Radio=V1;exports.RadioField=js;exports.RadioGroup=xs;exports.Search=P1;exports.Section=v2;exports.Select=$1;exports.SelectField=ks;exports.SelectItem=gs;exports.Sidebar=U4;exports.Slider=N1;exports.SliderField=vs;exports.SliderOutput=W1;exports.SliderThumb=E1;exports.SliderTrack=S1;exports.SplitButton=Ls;exports.SuccessNotification=ls;exports.Switch=Z1;exports.SwitchField=Ms;exports.SwitchGroup=ms;exports.Tab=bs;exports.TabList=_s;exports.TabPanel=ys;exports.Table=D1;exports.TableBody=O1;exports.TableCell=h3;exports.TableColumn=L3;exports.TableHead=R1;exports.TableRow=c6;exports.Tabs=Is;exports.Tag=ws;exports.TagButton=Hs;exports.TagToggle=Ts;exports.TagToggleGroup=Vs;exports.TagToggleList=Ps;exports.Text=$3;exports.TextCode=y2;exports.TextContentHeading=V2;exports.TextContentTitle=P2;exports.TextEmphasis=b2;exports.TextHeading=S3;exports.TextInput=I2;exports.TextLink=_2;exports.TextLinkList=T2;exports.TextList=ee;exports.TextListItem=H2;exports.TextPrice=w2;exports.TextSmall=X1;exports.TextSmallStrong=M2;exports.TextStrong=K1;exports.TextSubheading=J1;exports.TextSubtitle=Y1;exports.TextTitleHero=Q1;exports.TextTitlePage=Z6;exports.Textarea=te;exports.TextareaField=$2;exports.ToastContainer=x2;exports.Tooltip=ce;exports.TooltipOverlayArrow=F6;exports.Tree=k2;exports.formEventTargetToFormData=z9;exports.toast=E;exports.useCustomMediaQuery=g3;exports.useMediaQuery=S6;
|
|
818
818
|
//# sourceMappingURL=index.cjs.map
|