hackagent-webui 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. hackagent_webui/__init__.py +55 -0
  2. hackagent_webui/static/404.html +1 -0
  3. hackagent_webui/static/VERSION +1 -0
  4. hackagent_webui/static/_next/static/chunks/144-7c65ac1a3b9b2a8a.js +1 -0
  5. hackagent_webui/static/_next/static/chunks/151-6f51e268c96b3129.js +1 -0
  6. hackagent_webui/static/_next/static/chunks/187-849543277a4f9394.js +1 -0
  7. hackagent_webui/static/_next/static/chunks/1a258343-3a341c585963097c.js +1 -0
  8. hackagent_webui/static/_next/static/chunks/200-82851f7d6d761059.js +1 -0
  9. hackagent_webui/static/_next/static/chunks/292-fca7393c81ef214a.js +1 -0
  10. hackagent_webui/static/_next/static/chunks/326-a9081b3f86c9dd18.js +1 -0
  11. hackagent_webui/static/_next/static/chunks/377-e53ad1c182dbc31b.js +1 -0
  12. hackagent_webui/static/_next/static/chunks/391-c0e09f348021cffc.js +1 -0
  13. hackagent_webui/static/_next/static/chunks/411-da316013bbf4d70a.js +1 -0
  14. hackagent_webui/static/_next/static/chunks/493-bafbeb5ae66518b5.js +1 -0
  15. hackagent_webui/static/_next/static/chunks/4bd1b696-409494caf8c83275.js +1 -0
  16. hackagent_webui/static/_next/static/chunks/511-dd81e821519476da.js +1 -0
  17. hackagent_webui/static/_next/static/chunks/532-11a48022caced11c.js +1 -0
  18. hackagent_webui/static/_next/static/chunks/539-4b1c7db488293715.js +1 -0
  19. hackagent_webui/static/_next/static/chunks/594-97628408277cbac5.js +1 -0
  20. hackagent_webui/static/_next/static/chunks/619-7c7bed420eb7c654.js +1 -0
  21. hackagent_webui/static/_next/static/chunks/641-043f989d6143544b.js +1 -0
  22. hackagent_webui/static/_next/static/chunks/680-25d8e1ea98a28dad.js +1 -0
  23. hackagent_webui/static/_next/static/chunks/772-39e3838894a53779.js +1 -0
  24. hackagent_webui/static/_next/static/chunks/8-42d532ba984375d8.js +1 -0
  25. hackagent_webui/static/_next/static/chunks/816-19f20afc3075826e.js +1 -0
  26. hackagent_webui/static/_next/static/chunks/855-a78b13b4bd1c76cb.js +1 -0
  27. hackagent_webui/static/_next/static/chunks/9-22df388e4049bb14.js +1 -0
  28. hackagent_webui/static/_next/static/chunks/905-ff5fbcc54083c7ee.js +1 -0
  29. hackagent_webui/static/_next/static/chunks/921-18103c2d5cd6c671.js +1 -0
  30. hackagent_webui/static/_next/static/chunks/924-bbaf675cfa822d94.js +1 -0
  31. hackagent_webui/static/_next/static/chunks/959-f7b708ac280ce10a.js +1 -0
  32. hackagent_webui/static/_next/static/chunks/abf9ae41-a2ad9357d01c2a31.js +1 -0
  33. hackagent_webui/static/_next/static/chunks/app/_not-found/page-72f9264520fc0b6a.js +1 -0
  34. hackagent_webui/static/_next/static/chunks/app/agents/page-63d562af288bd470.js +1 -0
  35. hackagent_webui/static/_next/static/chunks/app/api-keys/page-efb5b8e15af445f7.js +1 -0
  36. hackagent_webui/static/_next/static/chunks/app/attacks/builder/page-4401ce40343e7239.js +1 -0
  37. hackagent_webui/static/_next/static/chunks/app/attacks/page-e34de8a5ee4cf257.js +1 -0
  38. hackagent_webui/static/_next/static/chunks/app/layout-4f66546247356e83.js +1 -0
  39. hackagent_webui/static/_next/static/chunks/app/not-found-60bbe1f5c6cf66f2.js +1 -0
  40. hackagent_webui/static/_next/static/chunks/app/page-65cb30228b8a1502.js +1 -0
  41. hackagent_webui/static/_next/static/chunks/app/profile/page-002f78d4c4a0a548.js +1 -0
  42. hackagent_webui/static/_next/static/chunks/app/reports/page-1507b6373935769e.js +1 -0
  43. hackagent_webui/static/_next/static/chunks/app/stats/page-3d8df1bcc06245db.js +1 -0
  44. hackagent_webui/static/_next/static/chunks/framework-e2c84bf8dbc6c531.js +1 -0
  45. hackagent_webui/static/_next/static/chunks/main-app-641b4390ed531d52.js +1 -0
  46. hackagent_webui/static/_next/static/chunks/main-c0161e7c327c4241.js +1 -0
  47. hackagent_webui/static/_next/static/chunks/pages/_app-fcbe3e68b26044e2.js +1 -0
  48. hackagent_webui/static/_next/static/chunks/pages/_error-394ce64747f32b60.js +1 -0
  49. hackagent_webui/static/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  50. hackagent_webui/static/_next/static/chunks/webpack-a101479ef1443c74.js +1 -0
  51. hackagent_webui/static/_next/static/css/008a05b0ad6b854a.css +31 -0
  52. hackagent_webui/static/_next/static/css/c66d365ae0bced97.css +1 -0
  53. hackagent_webui/static/_next/static/esjZ6Ucner1eQeNRDDLzS/_buildManifest.js +1 -0
  54. hackagent_webui/static/_next/static/esjZ6Ucner1eQeNRDDLzS/_ssgManifest.js +1 -0
  55. hackagent_webui/static/agents.html +1 -0
  56. hackagent_webui/static/agents.txt +23 -0
  57. hackagent_webui/static/android-chrome-192x192.png +0 -0
  58. hackagent_webui/static/android-chrome-512x512.png +0 -0
  59. hackagent_webui/static/api-keys.html +1 -0
  60. hackagent_webui/static/api-keys.txt +23 -0
  61. hackagent_webui/static/apple-touch-icon.png +0 -0
  62. hackagent_webui/static/attacks/builder.html +1 -0
  63. hackagent_webui/static/attacks/builder.txt +24 -0
  64. hackagent_webui/static/attacks.html +1 -0
  65. hackagent_webui/static/attacks.txt +23 -0
  66. hackagent_webui/static/favicon-16x16.png +0 -0
  67. hackagent_webui/static/favicon-32x32.png +0 -0
  68. hackagent_webui/static/favicon.ico +0 -0
  69. hackagent_webui/static/index.html +1 -0
  70. hackagent_webui/static/index.txt +23 -0
  71. hackagent_webui/static/profile.html +1 -0
  72. hackagent_webui/static/profile.txt +23 -0
  73. hackagent_webui/static/raccoon.png +0 -0
  74. hackagent_webui/static/reports.html +1 -0
  75. hackagent_webui/static/reports.txt +23 -0
  76. hackagent_webui/static/silent-check-sso.html +11 -0
  77. hackagent_webui/static/stats.html +1 -0
  78. hackagent_webui/static/stats.txt +23 -0
  79. hackagent_webui-0.2.0.dist-info/METADATA +59 -0
  80. hackagent_webui-0.2.0.dist-info/RECORD +81 -0
  81. hackagent_webui-0.2.0.dist-info/WHEEL +4 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9],{15870:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},24595:(e,t,r)=>{r.d(t,{UC:()=>ro,q7:()=>ra,ZL:()=>rn,bL:()=>rt,wv:()=>rl,l9:()=>rr});var n,o,a=r(12115),l=r(92556),i=r(94446),u=r(3468),s=r(23558),c=r(47650),d=r(95155);function f(e){let t=function(e){let t=a.forwardRef((e,t)=>{var r,n,o;let l,u,{children:s,...c}=e,d=a.isValidElement(s)?(u=(l=null==(n=Object.getOwnPropertyDescriptor((r=s).props,"ref"))?void 0:n.get)&&"isReactWarning"in l&&l.isReactWarning)?r.ref:(u=(l=null==(o=Object.getOwnPropertyDescriptor(r,"ref"))?void 0:o.get)&&"isReactWarning"in l&&l.isReactWarning)?r.props.ref:r.props.ref||r.ref:void 0,f=(0,i.s)(d,t);if(a.isValidElement(s)){let e=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=a(...t);return o(...t),n}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(c,s.props);return s.type!==a.Fragment&&(e.ref=f),a.cloneElement(s,e)}return a.Children.count(s)>1?a.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=a.forwardRef((e,r)=>{let{children:n,...o}=e,l=a.Children.toArray(n),i=l.find(v);if(i){let e=i.props.children,n=l.map(t=>t!==i?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...o,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...o,ref:r,children:n})});return r.displayName="".concat(e,".Slot"),r}var p=Symbol("radix.slottable");function v(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=f(`Primitive.${t}`),n=a.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function m(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}var y=r(97239),w=r(97999),g=r(69023);function x(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[o,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=a.useRef(null),l=a.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:l,collectionRef:n,children:r})};s.displayName=t;let c=e+"CollectionSlot",p=f(c),v=a.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=l(c,r),a=(0,i.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:a,children:n})});v.displayName=c;let h=e+"CollectionItemSlot",m="data-radix-collection-item",y=f(h),w=a.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,u=a.useRef(null),s=(0,i.s)(t,u),c=l(h,r);return a.useEffect(()=>(c.itemMap.set(u,{ref:u,...o}),()=>void c.itemMap.delete(u))),(0,d.jsx)(y,{...{[m]:""},ref:s,children:n})});return w.displayName=h,[{Provider:s,Slot:v,ItemSlot:w},function(t){let r=l(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var b=new WeakMap;function E(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=C(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function C(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return b.get(this)&&(this.has(e)?(0,y._)(this,n)[(0,y._)(this,n).indexOf(e)]=e:(0,y._)(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let o,a=this.has(t),l=(0,y._)(this,n).length,i=C(e),u=i>=0?i:l+i,s=u<0||u>=l?-1:u;if(s===this.size||a&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!a;i<0&&u++;let d=[...(0,y._)(this,n)],f=!1;for(let e=u;e<c;e++)if(u===e){let n=d[e];d[e]===t&&(n=d[e+1]),a&&this.delete(t),o=this.get(n),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],n=o;o=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=(0,y._)(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let o=(0,y._)(this,n).indexOf(e);return -1===o?this:this.insert(o,t,r)}after(e){let t=(0,y._)(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let o=(0,y._)(this,n).indexOf(e);return -1===o?this:this.insert(o+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,g._)(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,y._)(this,n).splice((0,y._)(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=E((0,y._)(this,n),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=E((0,y._)(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,y._)(this,n).indexOf(e)}keyAt(e){return E((0,y._)(this,n),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=0,l=null!=o?o:this.at(0);for(let e of this)l=0===a&&1===t.length?e:Reflect.apply(n,this,[l,e,a,this]),a++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);a=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[a,r,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),(0,w._)(this,n,{writable:!0,value:void 0}),(0,g._)(this,n,[...super.keys()]),b.set(this,!0)}};var R=r(66218),M=r(70222),j=r(59584),k="dismissableLayer.update",D=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=a.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:p,onDismiss:v,...m}=e,y=a.useContext(D),[w,g]=a.useState(null),x=null!=(n=null==w?void 0:w.ownerDocument)?n:null==(r=globalThis)?void 0:r.document,[,b]=a.useState({}),E=(0,i.s)(t,e=>g(e)),C=Array.from(y.layers),[R]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),P=C.indexOf(R),_=w?C.indexOf(w):-1,N=y.layersWithOutsidePointerEventsDisabled.size>0,L=_>=P,T=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,M.c)(e),o=a.useRef(!1),l=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){A("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",l.current),l.current=t,r.addEventListener("click",l.current,{once:!0})):t()}else r.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",l.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));L&&!r&&(null==c||c(e),null==p||p(e),e.defaultPrevented||null==v||v())},x),O=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,M.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&A("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(null==f||f(e),null==p||p(e),e.defaultPrevented||null==v||v())},x);return(0,j.U)(e=>{_===y.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},x),a.useEffect(()=>{if(w)return u&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),S(),()=>{u&&1===y.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=o)}},[w,x,u,y]),a.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),S())},[w,y]),a.useEffect(()=>{let e=()=>b({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),(0,d.jsx)(h.div,{...m,ref:E,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,T.onPointerDownCapture)})});function S(){let e=new CustomEvent(k);document.dispatchEvent(e)}function A(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?m(a,l):a.dispatchEvent(l)}P.displayName="DismissableLayer",a.forwardRef((e,t)=>{let r=a.useContext(D),n=a.useRef(null),o=(0,i.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(h.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var _=r(19526),N="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},O=a.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[s,c]=a.useState(null),f=(0,M.c)(o),p=(0,M.c)(l),v=a.useRef(null),m=(0,i.s)(t,e=>c(e)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let e=function(e){if(y.paused||!s)return;let t=e.target;s.contains(t)?v.current=t:K(v.current,{select:!0})},t=function(e){if(y.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||K(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&K(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,s,y.paused]),a.useEffect(()=>{if(s){z.add(y);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(N,T);s.addEventListener(N,f),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(K(n,{select:t}),document.activeElement!==r)return}(I(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&K(s))}return()=>{s.removeEventListener(N,f),setTimeout(()=>{let t=new CustomEvent(L,T);s.addEventListener(L,p),s.dispatchEvent(t),t.defaultPrevented||K(null!=e?e:document.body,{select:!0}),s.removeEventListener(L,p),z.remove(y)},0)}}},[s,f,p,y]);let w=a.useCallback(e=>{if(!r&&!n||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,a]=function(e){let t=I(e);return[F(t,e),F(t.reverse(),e)]}(t);n&&a?e.shiftKey||o!==a?e.shiftKey&&o===n&&(e.preventDefault(),r&&K(a,{select:!0})):(e.preventDefault(),r&&K(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,y.paused]);return(0,d.jsx)(h.div,{tabIndex:-1,...u,ref:m,onKeyDown:w})});function I(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function F(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function K(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}O.displayName="FocusScope";var z=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=B(e,t)).unshift(t)},remove(t){var r;null==(r=(e=B(e,t))[0])||r.resume()}}}();function B(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var W=r(68946),U=r(88334),H=r(58146),X=a.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,d.jsx)(h.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});X.displayName="Arrow";var G=r(4129),V=r(84288),Y="Popper",[Z,q]=(0,u.A)(Y),[$,J]=Z(Y),Q=e=>{let{__scopePopper:t,children:r}=e,[n,o]=a.useState(null);return(0,d.jsx)($,{scope:t,anchor:n,onAnchorChange:o,children:r})};Q.displayName=Y;var ee="PopperAnchor",et=a.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,l=J(ee,r),u=a.useRef(null),s=(0,i.s)(t,u);return a.useEffect(()=>{l.onAnchorChange((null==n?void 0:n.current)||u.current)}),n?null:(0,d.jsx)(h.div,{...o,ref:s})});et.displayName=ee;var er="PopperContent",[en,eo]=Z(er),ea=a.forwardRef((e,t)=>{var r,n,o,l,u,s,c,f;let{__scopePopper:p,side:v="bottom",sideOffset:m=0,align:y="center",alignOffset:w=0,arrowPadding:g=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:E=0,sticky:C="partial",hideWhenDetached:R=!1,updatePositionStrategy:j="optimized",onPlaced:k,...D}=e,P=J(er,p),[S,A]=a.useState(null),_=(0,i.s)(t,e=>A(e)),[N,L]=a.useState(null),T=(0,V.X)(N),O=null!=(c=null==T?void 0:T.width)?c:0,I=null!=(f=null==T?void 0:T.height)?f:0,F="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},K=Array.isArray(b)?b:[b],z=K.length>0,B={padding:F,boundary:K.filter(es),altBoundary:z},{refs:W,floatingStyles:X,placement:Y,isPositioned:Z,middlewareData:q}=(0,U.we)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,H.ll)(...t,{animationFrame:"always"===j})},elements:{reference:P.anchor},middleware:[(0,U.cY)({mainAxis:m+I,alignmentAxis:w}),x&&(0,U.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,U.ER)():void 0,...B}),x&&(0,U.UU)({...B}),(0,U.Ej)({...B,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:a,height:l}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(n,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(a,"px")),i.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),N&&(0,U.UE)({element:N,padding:g}),ec({arrowWidth:O,arrowHeight:I}),R&&(0,U.jD)({strategy:"referenceHidden",...B})]}),[$,Q]=ed(Y),ee=(0,M.c)(k);(0,G.N)(()=>{Z&&(null==ee||ee())},[Z,ee]);let et=null==(r=q.arrow)?void 0:r.x,eo=null==(n=q.arrow)?void 0:n.y,ea=(null==(o=q.arrow)?void 0:o.centerOffset)!==0,[el,ei]=a.useState();return(0,G.N)(()=>{S&&ei(window.getComputedStyle(S).zIndex)},[S]),(0,d.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null==(l=q.transformOrigin)?void 0:l.x,null==(u=q.transformOrigin)?void 0:u.y].join(" "),...(null==(s=q.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(en,{scope:p,placedSide:$,onArrowChange:L,arrowX:et,arrowY:eo,shouldHideArrow:ea,children:(0,d.jsx)(h.div,{"data-side":$,"data-align":Q,...D,ref:_,style:{...D.style,animation:Z?void 0:"none"}})})})});ea.displayName=er;var el="PopperArrow",ei={top:"bottom",right:"left",bottom:"top",left:"right"},eu=a.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eo(el,r),a=ei[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(X,{...n,ref:t,style:{...n.style,display:"block"}})})});function es(e){return null!==e}eu.displayName=el;var ec=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,l;let{placement:i,rects:u,middlewareData:s}=t,c=(null==(r=s.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=ed(i),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!=(a=null==(n=s.arrow)?void 0:n.x)?a:0)+d/2,y=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+f/2,w="",g="";return"bottom"===p?(w=c?h:"".concat(m,"px"),g="".concat(-f,"px")):"top"===p?(w=c?h:"".concat(m,"px"),g="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),g=c?h:"".concat(y,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),g=c?h:"".concat(y,"px")),{data:{x:w,y:g}}}});function ed(e){let[t,r="center"]=e.split("-");return[t,r]}var ef=a.forwardRef((e,t)=>{var r,n;let{container:o,...l}=e,[i,u]=a.useState(!1);(0,G.N)(()=>u(!0),[]);let s=o||i&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return s?c.createPortal((0,d.jsx)(h.div,{...l,ref:t}),s):null});ef.displayName="Portal";var ep=r(76842),ev="rovingFocusGroup.onEntryFocus",eh={bubbles:!1,cancelable:!0},em="RovingFocusGroup",[ey,ew,eg]=x(em),[ex,eb]=(0,u.A)(em,[eg]),[eE,eC]=ex(em),eR=a.forwardRef((e,t)=>(0,d.jsx)(ey.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(ey.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(eM,{...e,ref:t})})}));eR.displayName=em;var eM=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:v,preventScrollOnEntryFocus:m=!1,...y}=e,w=a.useRef(null),g=(0,i.s)(t,w),x=(0,R.jH)(u),[b,E]=(0,s.i)({prop:c,defaultProp:null!=f?f:null,onChange:p,caller:em}),[C,j]=a.useState(!1),k=(0,M.c)(v),D=ew(r),P=a.useRef(!1),[S,A]=a.useState(0);return a.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(ev,k),()=>e.removeEventListener(ev,k)},[k]),(0,d.jsx)(eE,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:b,onItemFocus:a.useCallback(e=>E(e),[E]),onItemShiftTab:a.useCallback(()=>j(!0),[]),onFocusableItemAdd:a.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>A(e=>e-1),[]),children:(0,d.jsx)(h.div,{tabIndex:C||0===S?-1:0,"data-orientation":n,...y,ref:g,style:{outline:"none",...e.style},onMouseDown:(0,l.m)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,l.m)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(ev,eh);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);eP([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}P.current=!1}),onBlur:(0,l.m)(e.onBlur,()=>j(!1))})})}),ej="RovingFocusGroupItem",ek=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:u,...s}=e,c=(0,W.B)(),f=i||c,p=eC(ej,r),v=p.currentTabStopId===f,m=ew(r),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:g}=p;return a.useEffect(()=>{if(n)return y(),()=>w()},[n,y,w]),(0,d.jsx)(ey.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:(0,d.jsx)(h.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,l.m)(e.onMouseDown,e=>{n?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,l.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,l.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eD[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>eP(r))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=g}):u})})});ek.displayName=ej;var eD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eP(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var eS=r(97745),eA=r(71450),e_=r(60216),eN=r(78357),eL=(0,r(43711).f)(),eT=function(){},eO=a.forwardRef(function(e,t){var r=a.useRef(null),n=a.useState({onScrollCapture:eT,onWheelCapture:eT,onTouchMoveCapture:eT}),o=n[0],l=n[1],i=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,y=e.allowPinchZoom,w=e.as,g=e.gapMode,x=(0,eA.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,eN.S)([r,t]),E=(0,eA.Cl)((0,eA.Cl)({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(p,{sideCar:eL,removeScrollBar:c,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:l,allowPinchZoom:!!y,lockRef:r,gapMode:g}),i?a.cloneElement(a.Children.only(u),(0,eA.Cl)((0,eA.Cl)({},E),{ref:b})):a.createElement(void 0===w?"div":w,(0,eA.Cl)({},E,{className:s,ref:b}),u))});eO.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eO.classNames={fullWidth:e_.pN,zeroRight:e_.Mi};var eI=r(39615),eF=r(46810),eK=r(65841),ez=!1;if("undefined"!=typeof window)try{var eB=Object.defineProperty({},"passive",{get:function(){return ez=!0,!0}});window.addEventListener("test",eB,eB),window.removeEventListener("test",eB,eB)}catch(e){ez=!1}var eW=!!ez&&{passive:!1},eU=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eH=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eX(e,n)){var o=eG(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eX=function(e,t){return"v"===e?eU(t,"overflowY"):eU(t,"overflowX")},eG=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eV=function(e,t,r,n,o){var a,l=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=l*n,u=r.target,s=t.contains(u),c=!1,d=i>0,f=0,p=0;do{var v=eG(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&eX(e,u)&&(f+=m,p+=h),u=u.parentNode.host||u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&i>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-i>p)&&(c=!0),c},eY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eZ=function(e){return[e.deltaX,e.deltaY]},eq=function(e){return e&&"current"in e?e.current:e},e$=0,eJ=[];let eQ=(0,eI.m)(eL,function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(e$++)[0],l=a.useState(eK.T0)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,eA.fX)([e.lockRef.current],(e.shards||[]).map(eq),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eY(e),l=r.current,u="deltaX"in e?e.deltaX:l[0]-a[0],s="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eH(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eH(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(u||s)&&(n.current=o),!o)return!0;var p=n.current||o;return eV(p,t,e,"h"===p?u:s,!0)},[]),s=a.useCallback(function(e){if(eJ.length&&eJ[eJ.length-1]===l){var r="deltaY"in e?eZ(e):eY(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(i.current.shards||[]).map(eq).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=a.useCallback(function(e){r.current=eY(e),n.current=void 0},[]),f=a.useCallback(function(t){c(t.type,eZ(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){c(t.type,eY(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return eJ.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,eW),document.addEventListener("touchmove",s,eW),document.addEventListener("touchstart",d,eW),function(){eJ=eJ.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,eW),document.removeEventListener("touchmove",s,eW),document.removeEventListener("touchstart",d,eW)}},[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?a.createElement(eF.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var e0=a.forwardRef(function(e,t){return a.createElement(eO,(0,eA.Cl)({},e,{ref:t,sideCar:eQ}))});e0.classNames=eO.classNames;var e1=["Enter"," "],e2=["ArrowUp","PageDown","End"],e5=["ArrowDown","PageUp","Home",...e2],e7={ltr:[...e1,"ArrowRight"],rtl:[...e1,"ArrowLeft"]},e3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},e4="Menu",[e8,e9,e6]=x(e4),[te,tt]=(0,u.A)(e4,[e6,q,eb]),tr=q(),tn=eb(),[to,ta]=te(e4),[tl,ti]=te(e4),tu=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:l,modal:i=!0}=e,u=tr(t),[s,c]=a.useState(null),f=a.useRef(!1),p=(0,M.c)(l),v=(0,R.jH)(o);return a.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,d.jsx)(Q,{...u,children:(0,d.jsx)(to,{scope:t,open:r,onOpenChange:p,content:s,onContentChange:c,children:(0,d.jsx)(tl,{scope:t,onClose:a.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:i,children:n})})})};tu.displayName=e4;var ts=a.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tr(r);return(0,d.jsx)(et,{...o,...n,ref:t})});ts.displayName="MenuAnchor";var tc="MenuPortal",[td,tf]=te(tc,{forceMount:void 0}),tp=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=ta(tc,t);return(0,d.jsx)(td,{scope:t,forceMount:r,children:(0,d.jsx)(ep.C,{present:r||a.open,children:(0,d.jsx)(ef,{asChild:!0,container:o,children:n})})})};tp.displayName=tc;var tv="MenuContent",[th,tm]=te(tv),ty=a.forwardRef((e,t)=>{let r=tf(tv,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=ta(tv,e.__scopeMenu),l=ti(tv,e.__scopeMenu);return(0,d.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(ep.C,{present:n||a.open,children:(0,d.jsx)(e8.Slot,{scope:e.__scopeMenu,children:l.modal?(0,d.jsx)(tw,{...o,ref:t}):(0,d.jsx)(tg,{...o,ref:t})})})})}),tw=a.forwardRef((e,t)=>{let r=ta(tv,e.__scopeMenu),n=a.useRef(null),o=(0,i.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return(0,eS.Eq)(e)},[]),(0,d.jsx)(tb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,l.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tg=a.forwardRef((e,t)=>{let r=ta(tv,e.__scopeMenu);return(0,d.jsx)(tb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),tx=f("MenuContent.ScrollLock"),tb=a.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:m,onDismiss:y,disableOutsideScroll:w,...g}=e,x=ta(tv,r),b=ti(tv,r),E=tr(r),C=tn(r),R=e9(r),[M,j]=a.useState(null),k=a.useRef(null),D=(0,i.s)(t,k,x.onContentChange),S=a.useRef(0),A=a.useRef(""),N=a.useRef(0),L=a.useRef(null),T=a.useRef("right"),I=a.useRef(0),F=w?e0:a.Fragment;a.useEffect(()=>()=>window.clearTimeout(S.current),[]),(0,_.Oh)();let K=a.useCallback(e=>{var t,r;return T.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],u=l.x,s=l.y,c=i.x,d=i.y;s>n!=d>n&&r<(c-u)*(n-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(r=L.current)?void 0:r.area)},[]);return(0,d.jsx)(th,{scope:r,searchRef:A,onItemEnter:a.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:a.useCallback(e=>{var t;K(e)||(null==(t=k.current)||t.focus(),j(null))},[K]),onTriggerLeave:a.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:N,onPointerGraceIntentChange:a.useCallback(e=>{L.current=e},[]),children:(0,d.jsx)(F,{...w?{as:tx,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(O,{asChild:!0,trapped:o,onMountAutoFocus:(0,l.m)(u,e=>{var t;e.preventDefault(),null==(t=k.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,d.jsx)(P,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:m,onDismiss:y,children:(0,d.jsx)(eR,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:j,onEntryFocus:(0,l.m)(f,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(ea,{role:"menu","aria-orientation":"vertical","data-state":tV(x.open),"data-radix-menu-content":"",dir:b.dir,...E,...g,ref:D,style:{outline:"none",...g.style},onKeyDown:(0,l.m)(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=A.current+e,o=R().filter(e=>!e.disabled),a=document.activeElement,l=null==(t=o.find(e=>e.ref.current===a))?void 0:t.textValue,i=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,l=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let i=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),n,l),u=null==(r=o.find(e=>e.textValue===i))?void 0:r.ref.current;!function e(t){A.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=k.current;if(e.target!==o||!e5.includes(e.key))return;e.preventDefault();let a=R().filter(e=>!e.disabled).map(e=>e.ref.current);e2.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,l.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),A.current="")}),onPointerMove:(0,l.m)(e.onPointerMove,tq(e=>{let t=e.target,r=I.current!==e.clientX;e.currentTarget.contains(t)&&r&&(T.current=e.clientX>I.current?"right":"left",I.current=e.clientX)}))})})})})})})});ty.displayName=tv;var tE=a.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(h.div,{role:"group",...n,ref:t})});tE.displayName="MenuGroup";var tC=a.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(h.div,{...n,ref:t})});tC.displayName="MenuLabel";var tR="MenuItem",tM="menu.itemSelect",tj=a.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,u=a.useRef(null),s=ti(tR,e.__scopeMenu),c=tm(tR,e.__scopeMenu),f=(0,i.s)(t,u),p=a.useRef(!1);return(0,d.jsx)(tk,{...o,ref:f,disabled:r,onClick:(0,l.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(tM,{bubbles:!0,cancelable:!0});e.addEventListener(tM,e=>null==n?void 0:n(e),{once:!0}),m(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),p.current=!0},onPointerUp:(0,l.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;r||t&&" "===e.key||e1.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tj.displayName=tR;var tk=a.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...u}=e,s=tm(tR,r),c=tn(r),f=a.useRef(null),p=(0,i.s)(t,f),[v,m]=a.useState(!1),[y,w]=a.useState("");return a.useEffect(()=>{let e=f.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,d.jsx)(e8.ItemSlot,{scope:r,disabled:n,textValue:null!=o?o:y,children:(0,d.jsx)(ek,{asChild:!0,...c,focusable:!n,children:(0,d.jsx)(h.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:p,onPointerMove:(0,l.m)(e.onPointerMove,tq(e=>{n?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,l.m)(e.onPointerLeave,tq(e=>s.onItemLeave(e))),onFocus:(0,l.m)(e.onFocus,()=>m(!0)),onBlur:(0,l.m)(e.onBlur,()=>m(!1))})})})}),tD=a.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,d.jsx)(tO,{scope:e.__scopeMenu,checked:r,children:(0,d.jsx)(tj,{role:"menuitemcheckbox","aria-checked":tY(r)?"mixed":r,...o,ref:t,"data-state":tZ(r),onSelect:(0,l.m)(o.onSelect,()=>null==n?void 0:n(!!tY(r)||!r),{checkForDefaultPrevented:!1})})})});tD.displayName="MenuCheckboxItem";var tP="MenuRadioGroup",[tS,tA]=te(tP,{value:void 0,onValueChange:()=>{}}),t_=a.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,M.c)(n);return(0,d.jsx)(tS,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,d.jsx)(tE,{...o,ref:t})})});t_.displayName=tP;var tN="MenuRadioItem",tL=a.forwardRef((e,t)=>{let{value:r,...n}=e,o=tA(tN,e.__scopeMenu),a=r===o.value;return(0,d.jsx)(tO,{scope:e.__scopeMenu,checked:a,children:(0,d.jsx)(tj,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":tZ(a),onSelect:(0,l.m)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});tL.displayName=tN;var tT="MenuItemIndicator",[tO,tI]=te(tT,{checked:!1}),tF=a.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=tI(tT,r);return(0,d.jsx)(ep.C,{present:n||tY(a.checked)||!0===a.checked,children:(0,d.jsx)(h.span,{...o,ref:t,"data-state":tZ(a.checked)})})});tF.displayName=tT;var tK=a.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(h.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});tK.displayName="MenuSeparator";var tz=a.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tr(r);return(0,d.jsx)(eu,{...o,...n,ref:t})});tz.displayName="MenuArrow";var[tB,tW]=te("MenuSub"),tU="MenuSubTrigger",tH=a.forwardRef((e,t)=>{let r=ta(tU,e.__scopeMenu),n=ti(tU,e.__scopeMenu),o=tW(tU,e.__scopeMenu),u=tm(tU,e.__scopeMenu),s=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},v=a.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return a.useEffect(()=>v,[v]),a.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,d.jsx)(ts,{asChild:!0,...p,children:(0,d.jsx)(tk,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":tV(r.open),...e,ref:(0,i.t)(t,o.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,l.m)(e.onPointerMove,tq(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),v()},100)))})),onPointerLeave:(0,l.m)(e.onPointerLeave,tq(e=>{var t,n;v();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,a="right"===t,l=o[a?"left":"right"],i=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,l.m)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&e7[n.dir].includes(t.key)){var a;r.onOpenChange(!0),null==(a=r.content)||a.focus(),t.preventDefault()}})})})});tH.displayName=tU;var tX="MenuSubContent",tG=a.forwardRef((e,t)=>{let r=tf(tv,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,u=ta(tv,e.__scopeMenu),s=ti(tv,e.__scopeMenu),c=tW(tX,e.__scopeMenu),f=a.useRef(null),p=(0,i.s)(t,f);return(0,d.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(ep.C,{present:n||u.open,children:(0,d.jsx)(e8.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(tb,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,l.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,l.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=e3[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function tV(e){return e?"open":"closed"}function tY(e){return"indeterminate"===e}function tZ(e){return tY(e)?"indeterminate":e?"checked":"unchecked"}function tq(e){return t=>"mouse"===t.pointerType?e(t):void 0}tG.displayName=tX;var t$="DropdownMenu",[tJ,tQ]=(0,u.A)(t$,[tt]),t0=tt(),[t1,t2]=tJ(t$),t5=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,c=t0(t),f=a.useRef(null),[p,v]=(0,s.i)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:t$});return(0,d.jsx)(t1,{scope:t,triggerId:(0,W.B)(),triggerRef:f,contentId:(0,W.B)(),open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),modal:u,children:(0,d.jsx)(tu,{...c,open:p,onOpenChange:v,dir:n,modal:u,children:r})})};t5.displayName=t$;var t7="DropdownMenuTrigger",t3=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=t2(t7,r),u=t0(r);return(0,d.jsx)(ts,{asChild:!0,...u,children:(0,d.jsx)(h.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,i.t)(t,a.triggerRef),onPointerDown:(0,l.m)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});t3.displayName=t7;var t4=e=>{let{__scopeDropdownMenu:t,...r}=e,n=t0(t);return(0,d.jsx)(tp,{...n,...r})};t4.displayName="DropdownMenuPortal";var t8="DropdownMenuContent",t9=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t2(t8,r),i=t0(r),u=a.useRef(!1);return(0,d.jsx)(ty,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:(0,l.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=o.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,l.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t9.displayName=t8,a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tE,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tC,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var t6=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tj,{...o,...n,ref:t})});t6.displayName="DropdownMenuItem",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tD,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(t_,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tL,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tF,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var re=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tK,{...o,...n,ref:t})});re.displayName="DropdownMenuSeparator",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tz,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tH,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tG,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var rt=t5,rr=t3,rn=t4,ro=t9,ra=t6,rl=re},57268:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(12115),o=r(88142),a=r(95155),l="horizontal",i=["horizontal","vertical"],u=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:u=l,...s}=e,c=(r=u,i.includes(r))?u:l;return(0,a.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...s,ref:t})});u.displayName="Separator";var s=u},89715:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[905],{18332:(e,t,a)=>{a.d(t,{Fc:()=>o,TN:()=>d,XL:()=>i});var r=a(95155);a(12115);var l=a(83101),s=a(64269);let n=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:a,...l}=e;return(0,r.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,s.cn)(n({variant:a}),t),...l})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-title",className:(0,s.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...a})}function d(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-description",className:(0,s.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...a})}},18514:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},20243:(e,t,a)=>{a.d(t,{E:()=>s});var r=a(95155),l=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"skeleton",className:(0,l.cn)("bg-accent animate-pulse rounded-md",t),...a})}},22470:(e,t,a)=>{a.d(t,{M:()=>l});var r=a(95155);a(12115);let l=e=>{let{title:t,description:a,action:l,children:s,maxWidth:n="full"}=e;return(0,r.jsxs)("div",{className:"w-full ".concat({full:"max-w-full","8xl":"max-w-[90rem]","7xl":"max-w-7xl","6xl":"max-w-6xl","5xl":"max-w-5xl","4xl":"max-w-4xl","3xl":"max-w-3xl","2xl":"max-w-2xl"}[n]||"max-w-full"," mx-auto py-6 space-y-6"),children:[t&&(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 px-6 pb-5 border-b",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:t}),a&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:a})]}),l&&(0,r.jsx)("div",{className:"flex-shrink-0 pt-0.5",children:l})]}),s]})}},34105:(e,t,a)=>{a.d(t,{c:()=>r});let r=(0,a(12115).createContext)(void 0)},35646:(e,t,a)=>{a.d(t,{UC:()=>Z,VY:()=>J,ZD:()=>F,ZL:()=>M,bL:()=>_,hE:()=>H,hJ:()=>O,l9:()=>R,rc:()=>V});var r=a(12115),l=a(3468),s=a(94446),n=a(88292),o=a(92556),i=a(32467),d=a(95155),c="AlertDialog",[u,x]=(0,l.A)(c,[n.Hs]),f=(0,n.Hs)(),m=e=>{let{__scopeAlertDialog:t,...a}=e,r=f(t);return(0,d.jsx)(n.bL,{...r,...a,modal:!0})};m.displayName=c;var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,l=f(a);return(0,d.jsx)(n.l9,{...l,...r,ref:t})});g.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:t,...a}=e,r=f(t);return(0,d.jsx)(n.ZL,{...r,...a})};p.displayName="AlertDialogPortal";var v=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,l=f(a);return(0,d.jsx)(n.hJ,{...l,...r,ref:t})});v.displayName="AlertDialogOverlay";var h="AlertDialogContent",[b,j]=u(h),y=(0,i.Dc)("AlertDialogContent"),w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:l,...i}=e,c=f(a),u=r.useRef(null),x=(0,s.s)(t,u),m=r.useRef(null);return(0,d.jsx)(n.G$,{contentName:h,titleName:N,docsSlug:"alert-dialog",children:(0,d.jsx)(b,{scope:a,cancelRef:m,children:(0,d.jsxs)(n.UC,{role:"alertdialog",...c,...i,ref:x,onOpenAutoFocus:(0,o.m)(i.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=m.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,d.jsx)(y,{children:l}),(0,d.jsx)(E,{contentRef:u})]})})})});w.displayName=h;var N="AlertDialogTitle",k=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,l=f(a);return(0,d.jsx)(n.hE,{...l,...r,ref:t})});k.displayName=N;var A="AlertDialogDescription",D=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,l=f(a);return(0,d.jsx)(n.VY,{...l,...r,ref:t})});D.displayName=A;var C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,l=f(a);return(0,d.jsx)(n.bm,{...l,...r,ref:t})});C.displayName="AlertDialogAction";var L="AlertDialogCancel",z=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,{cancelRef:l}=j(L,a),o=f(a),i=(0,s.s)(t,l);return(0,d.jsx)(n.bm,{...o,...r,ref:i})});z.displayName=L;var E=e=>{let{contentRef:t}=e,a="`".concat(h,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(h,"` by passing a `").concat(A,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(h,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},_=m,R=g,M=p,O=v,Z=w,V=C,F=z,H=k,J=D},35835:(e,t,a)=>{a.d(t,{T:()=>s});var r=a(95155);a(12115);var l=a(98053);let s=e=>{let{open:t,onOpenChange:a,title:s,description:n,onConfirm:o,confirmText:i="Confirm",cancelText:d="Cancel",variant:c="default"}=e;return(0,r.jsx)(l.Lt,{open:t,onOpenChange:a,children:(0,r.jsxs)(l.EO,{children:[(0,r.jsxs)(l.wd,{children:[(0,r.jsx)(l.r7,{children:s}),(0,r.jsx)(l.$v,{children:n})]}),(0,r.jsxs)(l.ck,{children:[(0,r.jsx)(l.Zr,{children:d}),(0,r.jsx)(l.Rx,{onClick:()=>{o(),a(!1)},className:"destructive"===c?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"",children:i})]})]})})}},46826:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},51834:(e,t,a)=>{a.d(t,{Cf:()=>u,Es:()=>f,HM:()=>d,L3:()=>m,c7:()=>x,lG:()=>o,rr:()=>g});var r=a(95155);a(12115);var l=a(88292),s=a(65229),n=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"dialog",...t})}function i(e){let{...t}=e;return(0,r.jsx)(l.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{...t}=e;return(0,r.jsx)(l.bm,{"data-slot":"dialog-close",...t})}function c(e){let{className:t,...a}=e;return(0,r.jsx)(l.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function u(e){let{className:t,children:a,...o}=e;return(0,r.jsxs)(i,{"data-slot":"dialog-portal",children:[(0,r.jsx)(c,{}),(0,r.jsxs)(l.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o,children:[a,(0,r.jsxs)(l.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,r.jsx)(s.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function f(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function m(e){let{className:t,...a}=e;return(0,r.jsx)(l.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",t),...a})}function g(e){let{className:t,...a}=e;return(0,r.jsx)(l.VY,{"data-slot":"dialog-description",className:(0,n.cn)("text-muted-foreground text-sm",t),...a})}},56419:(e,t,a)=>{a.d(t,{p:()=>l});var r=a(95155);a(12115);let l=e=>{let{icon:t,title:a,description:l,action:s}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center text-center py-12 px-4",children:[(0,r.jsx)("div",{className:"rounded-full bg-muted p-3 mb-4",children:(0,r.jsx)(t,{className:"h-10 w-10 text-muted-foreground"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:a}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm mb-6",children:l}),s&&(0,r.jsx)("div",{children:s})]})}},65142:(e,t,a)=>{a.d(t,{p:()=>s});var r=a(95155);a(12115);var l=a(64269);function s(e){let{className:t,type:a,...s}=e;return(0,r.jsx)("input",{type:a,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...s})}},71360:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},76444:(e,t,a)=>{a.d(t,{J:()=>n});var r=a(95155);a(12115);var l=a(85408),s=a(64269);function n(e){let{className:t,...a}=e;return(0,r.jsx)(l.b,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}},80230:(e,t,a)=>{a.d(t,{h:()=>n});var r=a(12115),l=a(34105);let s=async()=>"";function n(){let e=(0,r.useContext)(l.c);return e||{provider:"disabled",user:void 0,isAuthenticated:!1,isLoading:!0,login:void 0,logout:void 0,getAccessTokenSilently:s}}},87270:(e,t,a)=>{a.d(t,{A0:()=>n,BF:()=>o,Hj:()=>i,XI:()=>s,nA:()=>c,nd:()=>d,r6:()=>u});var r=a(95155);a(12115);var l=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,r.jsx)("table",{"data-slot":"table",className:(0,l.cn)("w-full caption-bottom text-sm",t),...a})})}function n(e){let{className:t,...a}=e;return(0,r.jsx)("thead",{"data-slot":"table-header",className:(0,l.cn)("[&_tr]:border-b",t),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("tbody",{"data-slot":"table-body",className:(0,l.cn)("[&_tr:last-child]:border-0",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("tr",{"data-slot":"table-row",className:(0,l.cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...a})}function d(e){let{className:t,...a}=e;return(0,r.jsx)("th",{"data-slot":"table-head",className:(0,l.cn)("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("td",{"data-slot":"table-cell",className:(0,l.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function u(e){let{className:t,...a}=e;return(0,r.jsx)("caption",{"data-slot":"table-caption",className:(0,l.cn)("text-muted-foreground mt-4 text-sm",t),...a})}},98053:(e,t,a)=>{a.d(t,{$v:()=>g,EO:()=>u,Lt:()=>o,Rx:()=>p,Zr:()=>v,ck:()=>f,r7:()=>m,tv:()=>i,wd:()=>x});var r=a(95155);a(12115);var l=a(35646),s=a(64269),n=a(3998);function o(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"alert-dialog",...t})}function i(e){let{...t}=e;return(0,r.jsx)(l.l9,{"data-slot":"alert-dialog-trigger",...t})}function d(e){let{...t}=e;return(0,r.jsx)(l.ZL,{"data-slot":"alert-dialog-portal",...t})}function c(e){let{className:t,...a}=e;return(0,r.jsx)(l.hJ,{"data-slot":"alert-dialog-overlay",className:(0,s.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function u(e){let{className:t,...a}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(l.UC,{"data-slot":"alert-dialog-content",className:(0,s.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a})]})}function x(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,s.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function f(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,s.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function m(e){let{className:t,...a}=e;return(0,r.jsx)(l.hE,{"data-slot":"alert-dialog-title",className:(0,s.cn)("text-lg font-semibold",t),...a})}function g(e){let{className:t,...a}=e;return(0,r.jsx)(l.VY,{"data-slot":"alert-dialog-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...a})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(l.rc,{className:(0,s.cn)((0,n.r)(),t),...a})}function v(e){let{className:t,...a}=e;return(0,r.jsx)(l.ZD,{className:(0,s.cn)((0,n.r)({variant:"outline"}),t),...a})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[921],{2037:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{apiKey:t,...n}=e,r={...n,key:t},{html:i}=(0,o.GoogleMapsEmbed)(r);return(0,a.jsx)(l.default,{height:r.height||null,width:r.width||null,html:i,dataNtpc:"GoogleMapsEmbed"})};let a=n(95155),o=n(13067),l=r(n(57445))},4853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13067:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var r=n(68197);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var a=n(55546);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return a.GoogleMapsEmbed}});var o=n(93438);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},15781:(e,t)=>{function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function r(e,t,n,r){let a=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&a.searchParams.set(e,n[e])}),a.toString()}function a(e,t,n,a,o){var l;if(!t)return`<${e}></${e}>`;let i=(null==(l=t.src)?void 0:l.url)?Object.assign(Object.assign({},t),{src:r(t.src.url,t.src.params,a,o)}):t,u=Object.keys(Object.assign(Object.assign({},i),n)).reduce((e,t)=>{let r=null==n?void 0:n[t],a=i[t],o=null!=r?r:a,l=!0===o?t:`${t}="${o}"`;return o?e+` ${l}`:e},"");return`<${e}${u}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=r,t.createHtml=a,t.formatData=function(e,t){var o,l,i,u,s;let c=n(t,null==(o=e.scripts)?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null==(i=null==(l=e.html)?void 0:l.attributes.src)?void 0:i.params),f=n(t,[null==(s=null==(u=e.html)?void 0:u.attributes.src)?void 0:s.slugParam]),p=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?a(e.html.element,e.html.attributes,p,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:r(e.url,e.params,c)})):null})}},20063:(e,t,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},23817:e=>{e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},26802:e=>{e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},29001:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeAttributeString:function(){return i},htmlEscapeJsonString:function(){return l}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g,a={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},o=/[&"'<>]/g;function l(e){return e.replace(r,e=>n[e])}function i(e){return e.replace(o,e=>a[e])}},37577:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:n,stylesheets:r}=(0,l.YouTubeEmbed)(e);return(0,a.jsx)(i.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,a.jsx)(o.default,{src:e.url,strategy:u[e.strategy],stylesheets:r},e.url))})};let a=n(95155),o=r(n(68321)),l=n(13067),i=r(n(57445)),u={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},41402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return h},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return b}});let r=n(30943),a=n(88604),o=n(95155),l=r._(n(47650)),i=a._(n(12115)),u=n(82073),s=n(94681),c=n(4853),d=n(29001),f=new Map,p=new Set,g=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:u="afterInteractive",onError:c,stylesheets:d}=e,g=n||t;if(g&&p.has(g))return;if(f.has(t)){p.add(g),f.get(t).then(r,c);return}let m=()=>{a&&a(),p.add(g)},b=document.createElement("script"),y=new Promise((e,t)=>{b.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),b.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(b.innerHTML=o.__html||"",m()):i?(b.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(b.src=t,f.set(t,y)),(0,s.setAttributesFromProps)(b,e),"worker"===u&&b.setAttribute("type","text/partytown"),b.setAttribute("data-nscript",u),d&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(b)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))}):g(e)}function b(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function y(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:a=null,strategy:s="afterInteractive",onError:f,stylesheets:m,...b}=e,{updateScripts:y,scripts:h,getIsSsr:_,appDir:v,nonce:w}=(0,i.useContext)(u.HeadManagerContext);w=b.nonce||w;let O=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||n;O.current||(a&&e&&p.has(e)&&a(),O.current=!0)},[a,t,n]);let j=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{if(!j.current){if("afterInteractive"===s)g(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))}));j.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(y?(h[s]=(h[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:f,...b,nonce:w}]),y(h)):_&&_()?p.add(t||n):_&&!_()&&g({...e,nonce:w})),v){if(m&&m.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!n)return b.dangerouslySetInnerHTML&&(b.children=b.dangerouslySetInnerHTML.__html,delete b.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...b,id:t}]))+")"}});else return l.default.preload(n,b.integrity?{as:"script",integrity:b.integrity,nonce:w,crossOrigin:b.crossOrigin}:{as:"script",nonce:w,crossOrigin:b.crossOrigin}),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([n,{...b,id:t}]))+")"}});"afterInteractive"===s&&n&&l.default.preload(n,b.integrity?{as:"script",integrity:b.integrity,nonce:w,crossOrigin:b.crossOrigin}:{as:"script",nonce:w,crossOrigin:b.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let h=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55546:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=a(n(26802)),l=n(15781);t.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,l.formatData)(o.default,t)}},57445:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:o=null,children:l,dataNtpc:i=""}=e;return(0,a.useEffect)(()=>{i&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(i)}})},[i]),(0,r.jsxs)(r.Fragment,{children:[l,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":i,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(95155),a=n(12115)},68197:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=a(n(23817)),l=n(15781);t.GoogleAnalytics=e=>{var t=r(e,[]);return(0,l.formatData)(o.default,t)}},68321:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a.a});var r=n(41402),a=n.n(r),o={};for(let e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o)},68332:(e,t,n)=>{let r;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:i="dataLayer",nonce:u}=e;return void 0===r&&(r=i),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(i,"'] = window['").concat(i,"'] || [];\n function gtag(){window['").concat(i,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:u}),(0,a.jsx)(l.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:u})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===r)return void console.warn("@next/third-parties: GA has not been initialized");window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))};let a=n(95155),o=n(12115),l=function(e){return e&&e.__esModule?e:{default:e}}(n(68321))},76784:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var a=n(2037);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(a).default}});var o=n(37577);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return r(o).default}});var l=n(98202);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return l.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return l.sendGTMEvent}});var i=n(68332);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return i.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return i.sendGAEvent}})},88246:e=>{e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')},93438:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=a(n(88246)),l=n(15781);t.YouTubeEmbed=e=>{var t=r(e,[]);return(0,l.formatData)(o.default,t)}},98202:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:i="dataLayer",auth:u,preview:s,dataLayer:c,nonce:d}=e;l=i;let f="dataLayer"!==i?"&l=".concat(i):"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n })(window,'").concat(i,"');")},nonce:d}),(0,r.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(f).concat(u?"&gtm_auth=".concat(u):"").concat(s?"&gtm_preview=".concat(s,"&gtm_cookies_win=x"):""),nonce:d})]})};let r=n(95155),a=n(12115),o=function(e){return e&&e.__esModule?e:{default:e}}(n(68321)),l="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||l;window[n]=window[n]||[],window[n].push(e)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[924],{3998:(e,t,a)=>{a.d(t,{$:()=>u,r:()=>s});var n=a(95155);a(12115);var i=a(32467),r=a(83101),o=a(64269);let s=(0,r.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function u(e){let{className:t,variant:a,size:r,asChild:u=!1,...c}=e,l=u?i.DX:"button";return(0,n.jsx)(l,{"data-slot":"button",className:(0,o.cn)(s({variant:a,size:r,className:t})),...c})}},7831:(e,t,a)=>{a.d(t,{DR:()=>u,Iu:()=>f,KC:()=>p,ME:()=>l,gb:()=>g,in:()=>c,ki:()=>o,nu:()=>y,ui:()=>d,userApi:()=>w,vm:()=>h});var n=a(17983);let i=(0,a(41444).h)("apiClient"),r=null;function o(e){r=e,i.debug(e?"Access token set":"Access token cleared")}let s=async()=>(r||i.debug("No access token available."),r),u=new n.Vk6({basePath:"/api/proxy",middleware:[{pre:async e=>{i.debug("Running pre-request middleware...");let t=await s();t?(i.debug("Token found, adding Authorization header."),e.init.headers={...e.init.headers,Authorization:"Bearer ".concat(t)}):i.warn("No token found, Authorization header not added.")},post:async e=>{let t=e.response.headers.get("content-type");if(!e.response.ok&&t&&!t.includes("application/json")){let a=await e.response.text();throw i.error({status:e.response.status,contentType:t,preview:a.substring(0,200)},"API returned non-JSON response"),Error("API error ".concat(e.response.status,": Server returned ").concat(t," instead of JSON. Check API endpoint and CORS configuration."))}}}]}),c=new n.cwn(u),l=new n.uzR(u),d=new n.cdi(u),h=new n.Lev(u),g=new n.At2(u),w=new n.ipj(u),f=new n.UYx(u),p=new n.OgW(u),y=new n.XoK(u)},17983:(e,t,a)=>{a.d(t,{cwn:()=>S,OgW:()=>x,Lev:()=>I,Vk6:()=>i,XoK:()=>B,on2:()=>T,At2:()=>D,UYx:()=>J,cdi:()=>W,uzR:()=>L,S5d:()=>z,Esj:()=>v,ipj:()=>j});let n="http://localhost".replace(/\/+$/,"");class i{set config(e){this.configuration=e}get basePath(){return null!=this.configuration.basePath?this.configuration.basePath:n}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||function e(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).map(n=>(function t(a,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=i+(i.length?"[".concat(a,"]"):a);if(n instanceof Array){let e=n.map(e=>encodeURIComponent(String(e))).join("&".concat(encodeURIComponent(r),"="));return"".concat(encodeURIComponent(r),"=").concat(e)}return n instanceof Set?t(a,Array.from(n),i):n instanceof Date?"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n.toISOString())):n instanceof Object?e(n,r):"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(n)))})(n,t[n],a)).filter(e=>e.length>0).join("&")}}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){let e=this.configuration.apiKey;if(e)return"function"==typeof e?e:()=>e}get accessToken(){let e=this.configuration.accessToken;if(e)return"function"==typeof e?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}constructor(e={}){this.configuration=e}}let r=new i;class o{withMiddleware(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let n=t.map(e=>({pre:e}));return this.withMiddleware(...n)}withPostMiddleware(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let n=t.map(e=>({post:e}));return this.withMiddleware(...n)}isJsonMime(e){return!!e&&o.jsonRegex.test(e)}async request(e,t){let{url:a,init:n}=await this.createFetchParams(e,t),i=await this.fetchApi(a,n);if(i&&i.status>=200&&i.status<300)return i;throw new s(i,"Response returned an error code")}async createFetchParams(e,t){var a,n;let i,r=this.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(r+="?"+this.configuration.queryParamsStringify(e.query));let o=Object.assign({},this.configuration.headers,e.headers);Object.keys(o).forEach(e=>void 0===o[e]?delete o[e]:{});let s={method:e.method,headers:o,body:e.body,credentials:this.configuration.credentials},u={...s,...await ("function"==typeof t?t:async()=>t)({init:s,context:e})};return a=u.body,i="undefined"!=typeof FormData&&a instanceof FormData||u.body instanceof URLSearchParams||(n=u.body,"undefined"!=typeof Blob&&n instanceof Blob)?u.body:this.isJsonMime(o["Content-Type"])?JSON.stringify(u.body):u.body,{url:r,init:{...u,body:i}}}clone(){let e=new this.constructor(this.configuration);return e.middleware=this.middleware.slice(),e}constructor(e=r){this.configuration=e,this.fetchApi=async(e,t)=>{let a,n={url:e,init:t};for(let e of this.middleware)e.pre&&(n=await e.pre({fetch:this.fetchApi,...n})||n);try{a=await (this.configuration.fetchApi||fetch)(n.url,n.init)}catch(e){for(let t of this.middleware)t.onError&&(a=await t.onError({fetch:this.fetchApi,url:n.url,init:n.init,error:e,response:a?a.clone():void 0})||a);if(void 0===a)if(e instanceof Error)throw new u(e,"The request failed and the interceptors did not return an alternative response");else throw e}for(let e of this.middleware)e.post&&(a=await e.post({fetch:this.fetchApi,url:n.url,init:n.init,response:a.clone()})||a);return a},this.middleware=e.middleware}}o.jsonRegex=RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");class s extends Error{constructor(e,t){super(t),this.response=e,this.name="ResponseError"}}class u extends Error{constructor(e,t){super(t),this.cause=e,this.name="FetchError"}}class c extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}class l{async value(){return this.transformer(await this.raw.json())}constructor(e,t=e=>e){this.raw=e,this.transformer=t}}class d{async value(){}constructor(e){this.raw=e}}function h(e){var t;return null==(t=e)?t:{id:t.id,timestamp:new Date(t.timestamp),apiKeyPrefix:t.api_key_prefix,userUsername:t.user_username,organizationName:t.organization_name,modelIdUsed:t.model_id_used,apiEndpoint:t.api_endpoint,inputTokens:t.input_tokens,outputTokens:t.output_tokens,creditsDeducted:t.credits_deducted,requestPayloadPreview:t.request_payload_preview,responsePayloadPreview:t.response_payload_preview}}function g(e,t){return null==e?e:{id:e.id,name:e.name}}function w(e,t){return null==e?e:{user:e.user,username:e.username,organization:e.organization}}function f(e){var t;return null==(t=e)?t:{id:t.id,name:t.name,endpoint:t.endpoint,agentType:null==t.agent_type?void 0:t.agent_type,description:null==t.description?void 0:t.description,metadata:null==t.metadata?void 0:t.metadata,organization:t.organization,organizationDetail:g(t.organization_detail,!1),owner:t.owner,ownerDetail:w(t.owner_detail,!1),createdAt:new Date(t.created_at),updatedAt:new Date(t.updated_at)}}function p(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{name:e.name,endpoint:e.endpoint,agent_type:e.agentType,description:e.description,metadata:e.metadata}}function y(e){var t;return null==(t=e)?t:{id:t.id,type:t.type,agent:t.agent,agentName:t.agent_name,owner:t.owner,ownerUsername:t.owner_username,organization:t.organization,organizationName:t.organization_name,_configuration:t.configuration,createdAt:new Date(t.created_at),updatedAt:new Date(t.updated_at)}}function k(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{type:e.type,agent:e.agent,configuration:e._configuration}}let T={NotEvaluated:"NOT_EVALUATED",SuccessfulJailbreak:"SUCCESSFUL_JAILBREAK",FailedJailbreak:"FAILED_JAILBREAK",ErrorAgentResponse:"ERROR_AGENT_RESPONSE",ErrorTestFramework:"ERROR_TEST_FRAMEWORK",PassedCriteria:"PASSED_CRITERIA",FailedCriteria:"FAILED_CRITERIA"};function R(e){var t;return null==(t=e)?t:{id:t.id,name:t.name,createdAt:new Date(t.created_at),updatedAt:new Date(t.updated_at),credits:t.credits,creditsLastUpdated:new Date(t.credits_last_updated)}}function m(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{name:e.name}}let v={ToolCall:"TOOL_CALL",ToolResponse:"TOOL_RESPONSE",AgentThought:"AGENT_THOUGHT",AgentResponseChunk:"AGENT_RESPONSE_CHUNK",Other:"OTHER",McpStep:"MCP_STEP",A2AComm:"A2A_COMM"};function A(e){var t,a=e;if(null==a)return a;return{id:a.id,result:a.result,sequence:a.sequence,stepType:null==a.step_type?void 0:(t=a.step_type,t),timestamp:new Date(a.timestamp),content:null==a.content?void 0:a.content}}function q(e){var t,a=e;if(null==a)return a;return{id:a.id,run:a.run,runId:a.run_id,requestPayload:null==a.request_payload?void 0:a.request_payload,responseStatusCode:null==a.response_status_code?void 0:a.response_status_code,responseHeaders:null==a.response_headers?void 0:a.response_headers,responseBody:null==a.response_body?void 0:a.response_body,latencyMs:null==a.latency_ms?void 0:a.latency_ms,detectedToolCalls:null==a.detected_tool_calls?void 0:a.detected_tool_calls,evaluationStatus:null==a.evaluation_status?void 0:(t=a.evaluation_status,t),evaluationNotes:null==a.evaluation_notes?void 0:a.evaluation_notes,evaluationMetrics:null==a.evaluation_metrics?void 0:a.evaluation_metrics,agentSpecificData:null==a.agent_specific_data?void 0:a.agent_specific_data,timestamp:new Date(a.timestamp),traces:a.traces.map(A)}}let z={Pending:"PENDING",Running:"RUNNING",Completed:"COMPLETED",Failed:"FAILED",Cancelled:"CANCELLED"};function _(e){var t,a=e;if(null==a)return a;return{id:a.id,agent:a.agent,agentName:a.agent_name,attack:a.attack,attackType:a.attack_type,owner:a.owner,ownerUsername:a.owner_username,organization:a.organization,organizationName:a.organization_name,runConfig:a.run_config,timestamp:new Date(a.timestamp),status:(t=a.status,t),runNotes:a.run_notes,isClientExecuted:a.is_client_executed,totalResults:a.total_results,successfulJailbreaks:a.successful_jailbreaks,failedJailbreaks:a.failed_jailbreaks,errors:a.errors,notEvaluated:a.not_evaluated}}function C(e){var t;return null==(t=e)?t:{id:t.id,name:t.name,prefix:t.prefix,created:new Date(t.created),revoked:t.revoked,expiryDate:null==t.expiry_date?null:new Date(t.expiry_date),user:t.user,userDetail:w(t.user_detail,!1),organization:t.organization,organizationDetail:g(t.organization_detail,!1)}}function P(e){var t;return null==(t=e)?t:{id:t.id,user:t.user,username:t.username,email:null==t.email?void 0:t.email,firstName:null==t.first_name?void 0:t.first_name,lastName:null==t.last_name?void 0:t.last_name,organization:t.organization,organizationName:t.organization_name,keycloakUserId:t.keycloak_user_id,auth0UserId:t.auth0_user_id,analyticsConsent:null==t.analytics_consent?void 0:t.analytics_consent}}function U(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{run:e.run,request_payload:e.requestPayload,response_status_code:e.responseStatusCode,response_headers:e.responseHeaders,response_body:e.responseBody,latency_ms:e.latencyMs,detected_tool_calls:e.detectedToolCalls,evaluation_status:e.evaluationStatus,evaluation_notes:e.evaluationNotes,evaluation_metrics:e.evaluationMetrics,agent_specific_data:e.agentSpecificData}}function E(e){var t,a=e;if(null==a)return a;return{id:a.id,agent:a.agent,agentName:a.agent_name,attack:null==a.attack?void 0:a.attack,owner:a.owner,ownerUsername:a.owner_username,organization:a.organization,organizationName:a.organization_name,runConfig:null==a.run_config?void 0:a.run_config,timestamp:new Date(a.timestamp),status:null==a.status?void 0:(t=a.status,t),runNotes:null==a.run_notes?void 0:a.run_notes,isClientExecuted:a.is_client_executed,results:a.results.map(q)}}function b(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{agent:e.agent,attack:e.attack,run_config:e.runConfig,status:e.status,run_notes:e.runNotes}}function K(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{email:e.email,first_name:e.firstName,last_name:e.lastName,analytics_consent:e.analyticsConsent}}class S extends o{async agentCreateRaw(e,t){if(null==e.agentRequest)throw new c("agentRequest",'Required parameter "agentRequest" was null or undefined when calling agentCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/agent",method:"POST",headers:a,query:{},body:p(e.agentRequest,!1)},t),e=>f(e))}async agentCreate(e,t){let a=await this.agentCreateRaw(e,t);return await a.value()}async agentDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling agentDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/agent/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async agentDestroy(e,t){await this.agentDestroyRaw(e,t)}async agentListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/agent",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(f)}})}async agentList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.agentListRaw(e,t);return await a.value()}async agentPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling agentPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/agent/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{name:e.name,endpoint:e.endpoint,agent_type:e.agentType,description:e.description,metadata:e.metadata}}(e.patchedAgentRequest,!1)},t),e=>f(e))}async agentPartialUpdate(e,t){let a=await this.agentPartialUpdateRaw(e,t);return await a.value()}async agentRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling agentRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/agent/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>f(e))}async agentRetrieve(e,t){let a=await this.agentRetrieveRaw(e,t);return await a.value()}async agentUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling agentUpdate().');if(null==e.agentRequest)throw new c("agentRequest",'Required parameter "agentRequest" was null or undefined when calling agentUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/agent/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:p(e.agentRequest,!1)},t),e=>f(e))}async agentUpdate(e,t){let a=await this.agentUpdateRaw(e,t);return await a.value()}}class x extends o{async apilogsListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/apilogs",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(h)}})}async apilogsList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.apilogsListRaw(e,t);return await a.value()}async apilogsRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling apilogsRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/apilogs/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>h(e))}async apilogsRetrieve(e,t){let a=await this.apilogsRetrieveRaw(e,t);return await a.value()}async apilogsSummaryRetrieveRaw(e,t){if(null==e.endDate)throw new c("endDate",'Required parameter "endDate" was null or undefined when calling apilogsSummaryRetrieve().');if(null==e.startDate)throw new c("startDate",'Required parameter "startDate" was null or undefined when calling apilogsSummaryRetrieve().');let a={};null!=e.byKey&&(a.by_key=e.byKey),null!=e.endDate&&(a.end_date=e.endDate.toISOString().substring(0,10)),null!=e.startDate&&(a.start_date=e.startDate.toISOString().substring(0,10)),null!=e.tz&&(a.tz=e.tz);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/apilogs/summary",method:"GET",headers:n,query:a},t),e=>h(e))}async apilogsSummaryRetrieve(e,t){let a=await this.apilogsSummaryRetrieveRaw(e,t);return await a.value()}}class I extends o{async attackCreateRaw(e,t){if(null==e.attackRequest)throw new c("attackRequest",'Required parameter "attackRequest" was null or undefined when calling attackCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/attack",method:"POST",headers:a,query:{},body:k(e.attackRequest,!1)},t),e=>y(e))}async attackCreate(e,t){let a=await this.attackCreateRaw(e,t);return await a.value()}async attackDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling attackDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/attack/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async attackDestroy(e,t){await this.attackDestroyRaw(e,t)}async attackListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/attack",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(y)}})}async attackList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.attackListRaw(e,t);return await a.value()}async attackPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling attackPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/attack/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{type:e.type,agent:e.agent,configuration:e._configuration}}(e.patchedAttackRequest,!1)},t),e=>y(e))}async attackPartialUpdate(e,t){let a=await this.attackPartialUpdateRaw(e,t);return await a.value()}async attackRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling attackRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/attack/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>y(e))}async attackRetrieve(e,t){let a=await this.attackRetrieveRaw(e,t);return await a.value()}async attackUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling attackUpdate().');if(null==e.attackRequest)throw new c("attackRequest",'Required parameter "attackRequest" was null or undefined when calling attackUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/attack/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:k(e.attackRequest,!1)},t),e=>y(e))}async attackUpdate(e,t){let a=await this.attackUpdateRaw(e,t);return await a.value()}}class B extends o{async creditsRequestCreateRaw(e,t){let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/credits/request",method:"POST",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{amount:e.amount,reason:e.reason}}(e.creditRequestRequest,!1)},t),e=>{var t;return null==(t=e)?t:{status:t.status}})}async creditsRequestCreate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.creditsRequestCreateRaw(e,t);return await a.value()}}class D extends o{async keyContextRetrieveRaw(e){let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,a=await e("KeycloakJWTAccessToken",[]);a&&(t.Authorization="Bearer ".concat(a))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,a=await e("APIKeyAuth",[]);a&&(t.Authorization="Bearer ".concat(a))}return new l(await this.request({path:"/key/context",method:"GET",headers:t,query:{}},e),e=>{var t;return null==(t=e)?t:{userId:null==t.user_id?void 0:t.user_id,username:null==t.username?void 0:t.username,organizationId:null==t.organization_id?void 0:t.organization_id,organizationName:null==t.organization_name?void 0:t.organization_name}})}async keyContextRetrieve(e){let t=await this.keyContextRetrieveRaw(e);return await t.value()}async keyCreateRaw(e,t){if(null==e.userAPIKeyRequest)throw new c("userAPIKeyRequest",'Required parameter "userAPIKeyRequest" was null or undefined when calling keyCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/key",method:"POST",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{name:e.name,key:e.key}}(e.userAPIKeyRequest,!1)},t),e=>C(e))}async keyCreate(e,t){let a=await this.keyCreateRaw(e,t);return await a.value()}async keyDestroyRaw(e,t){if(null==e.prefix)throw new c("prefix",'Required parameter "prefix" was null or undefined when calling keyDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/key/{prefix}".replace("{prefix}",encodeURIComponent(String(e.prefix))),method:"DELETE",headers:a,query:{}},t))}async keyDestroy(e,t){await this.keyDestroyRaw(e,t)}async keyListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/key",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(C)}})}async keyList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.keyListRaw(e,t);return await a.value()}async keyRetrieveRaw(e,t){if(null==e.prefix)throw new c("prefix",'Required parameter "prefix" was null or undefined when calling keyRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/key/{prefix}".replace("{prefix}",encodeURIComponent(String(e.prefix))),method:"GET",headers:a,query:{}},t),e=>C(e))}async keyRetrieve(e,t){let a=await this.keyRetrieveRaw(e,t);return await a.value()}}class J extends o{async organizationCreateRaw(e,t){if(null==e.organizationRequest)throw new c("organizationRequest",'Required parameter "organizationRequest" was null or undefined when calling organizationCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/organization",method:"POST",headers:a,query:{},body:m(e.organizationRequest,!1)},t),e=>R(e))}async organizationCreate(e,t){let a=await this.organizationCreateRaw(e,t);return await a.value()}async organizationDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling organizationDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/organization/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async organizationDestroy(e,t){await this.organizationDestroyRaw(e,t)}async organizationListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/organization",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(R)}})}async organizationList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.organizationListRaw(e,t);return await a.value()}async organizationMeRetrieveRaw(e){let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,a=await e("KeycloakJWTAccessToken",[]);a&&(t.Authorization="Bearer ".concat(a))}return new l(await this.request({path:"/organization/me",method:"GET",headers:t,query:{}},e),e=>R(e))}async organizationMeRetrieve(e){let t=await this.organizationMeRetrieveRaw(e);return await t.value()}async organizationPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling organizationPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/organization/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{name:e.name}}(e.patchedOrganizationRequest,!1)},t),e=>R(e))}async organizationPartialUpdate(e,t){let a=await this.organizationPartialUpdateRaw(e,t);return await a.value()}async organizationRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling organizationRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/organization/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>R(e))}async organizationRetrieve(e,t){let a=await this.organizationRetrieveRaw(e,t);return await a.value()}async organizationUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling organizationUpdate().');if(null==e.organizationRequest)throw new c("organizationRequest",'Required parameter "organizationRequest" was null or undefined when calling organizationUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/organization/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:m(e.organizationRequest,!1)},t),e=>R(e))}async organizationUpdate(e,t){let a=await this.organizationUpdateRaw(e,t);return await a.value()}}class W extends o{async resultCreateRaw(e,t){if(null==e.resultRequest)throw new c("resultRequest",'Required parameter "resultRequest" was null or undefined when calling resultCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result",method:"POST",headers:a,query:{},body:U(e.resultRequest,!1)},t),e=>q(e))}async resultCreate(e,t){let a=await this.resultCreateRaw(e,t);return await a.value()}async resultDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling resultDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/result/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async resultDestroy(e,t){await this.resultDestroyRaw(e,t)}async resultListRaw(e,t){let a={};null!=e.evaluationStatus&&(a.evaluation_status=e.evaluationStatus),null!=e.page&&(a.page=e.page),null!=e.pageSize&&(a.page_size=e.pageSize),null!=e.run&&(a.run=e.run),null!=e.runOrganization&&(a.run__organization=e.runOrganization);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(q)}})}async resultList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.resultListRaw(e,t);return await a.value()}async resultPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling resultPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{run:e.run,request_payload:e.requestPayload,response_status_code:e.responseStatusCode,response_headers:e.responseHeaders,response_body:e.responseBody,latency_ms:e.latencyMs,detected_tool_calls:e.detectedToolCalls,evaluation_status:e.evaluationStatus,evaluation_notes:e.evaluationNotes,evaluation_metrics:e.evaluationMetrics,agent_specific_data:e.agentSpecificData}}(e.patchedResultRequest,!1)},t),e=>q(e))}async resultPartialUpdate(e,t){let a=await this.resultPartialUpdateRaw(e,t);return await a.value()}async resultRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling resultRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>q(e))}async resultRetrieve(e,t){let a=await this.resultRetrieveRaw(e,t);return await a.value()}async resultTraceCreateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling resultTraceCreate().');if(null==e.traceRequest)throw new c("traceRequest",'Required parameter "traceRequest" was null or undefined when calling resultTraceCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result/{id}/trace".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{sequence:e.sequence,step_type:e.stepType,content:e.content}}(e.traceRequest,!1)},t),e=>A(e))}async resultTraceCreate(e,t){let a=await this.resultTraceCreateRaw(e,t);return await a.value()}async resultUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling resultUpdate().');if(null==e.resultRequest)throw new c("resultRequest",'Required parameter "resultRequest" was null or undefined when calling resultUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/result/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:U(e.resultRequest,!1)},t),e=>q(e))}async resultUpdate(e,t){let a=await this.resultUpdateRaw(e,t);return await a.value()}}class L extends o{async runCreateRaw(e,t){if(null==e.runRequest)throw new c("runRequest",'Required parameter "runRequest" was null or undefined when calling runCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run",method:"POST",headers:a,query:{},body:b(e.runRequest,!1)},t),e=>E(e))}async runCreate(e,t){let a=await this.runCreateRaw(e,t);return await a.value()}async runDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling runDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/run/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async runDestroy(e,t){await this.runDestroyRaw(e,t)}async runListRaw(e,t){let a={};null!=e.agent&&(a.agent=e.agent),null!=e.attack&&(a.attack=e.attack),null!=e.isClientExecuted&&(a.is_client_executed=e.isClientExecuted),null!=e.organization&&(a.organization=e.organization),null!=e.page&&(a.page=e.page),null!=e.pageSize&&(a.page_size=e.pageSize),null!=e.status&&(a.status=e.status);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(_)}})}async runList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.runListRaw(e,t);return await a.value()}async runPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling runPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{agent:e.agent,attack:e.attack,run_config:e.runConfig,status:e.status,run_notes:e.runNotes}}(e.patchedRunRequest,!1)},t),e=>E(e))}async runPartialUpdate(e,t){let a=await this.runPartialUpdateRaw(e,t);return await a.value()}async runResultCreateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling runResultCreate().');if(null==e.runRequest)throw new c("runRequest",'Required parameter "runRequest" was null or undefined when calling runResultCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run/{id}/result".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:a,query:{},body:b(e.runRequest,!1)},t),e=>q(e))}async runResultCreate(e,t){let a=await this.runResultCreateRaw(e,t);return await a.value()}async runRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling runRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>E(e))}async runRetrieve(e,t){let a=await this.runRetrieveRaw(e,t);return await a.value()}async runRunTestsCreateRaw(e,t){if(null==e.runRequest)throw new c("runRequest",'Required parameter "runRequest" was null or undefined when calling runRunTestsCreate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run/run_tests",method:"POST",headers:a,query:{},body:b(e.runRequest,!1)},t),e=>E(e))}async runRunTestsCreate(e,t){let a=await this.runRunTestsCreateRaw(e,t);return await a.value()}async runUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling runUpdate().');if(null==e.runRequest)throw new c("runRequest",'Required parameter "runRequest" was null or undefined when calling runUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("APIKeyAuth",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/run/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:b(e.runRequest,!1)},t),e=>E(e))}async runUpdate(e,t){let a=await this.runUpdateRaw(e,t);return await a.value()}}class j extends o{async userCreateRaw(e,t){let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user",method:"POST",headers:a,query:{},body:K(e.userProfileRequest,!1)},t),e=>P(e))}async userCreate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.userCreateRaw(e,t);return await a.value()}async userDestroyRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling userDestroy().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new d(await this.request({path:"/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:a,query:{}},t))}async userDestroy(e,t){await this.userDestroyRaw(e,t)}async userListRaw(e,t){let a={};null!=e.page&&(a.page=e.page);let n={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(n.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user",method:"GET",headers:n,query:a},t),e=>{var t;return null==(t=e)?t:{count:t.count,next:null==t.next?void 0:t.next,previous:null==t.previous?void 0:t.previous,results:t.results.map(P)}})}async userList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.userListRaw(e,t);return await a.value()}async userMeRetrieveRaw(e){let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,a=await e("KeycloakJWTAccessToken",[]);a&&(t.Authorization="Bearer ".concat(a))}return new l(await this.request({path:"/user/me",method:"GET",headers:t,query:{}},e),e=>P(e))}async userMeRetrieve(e){let t=await this.userMeRetrieveRaw(e);return await t.value()}async userMeUpdateRaw(e,t){let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user/me",method:"PUT",headers:a,query:{},body:K(e.userProfileRequest,!1)},t),e=>P(e))}async userMeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=await this.userMeUpdateRaw(e,t);return await a.value()}async userPartialUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling userPartialUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PATCH",headers:a,query:{},body:function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],null==e)?e:{email:e.email,first_name:e.firstName,last_name:e.lastName,analytics_consent:e.analyticsConsent}}(e.patchedUserProfileRequest,!1)},t),e=>P(e))}async userPartialUpdate(e,t){let a=await this.userPartialUpdateRaw(e,t);return await a.value()}async userRetrieveRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling userRetrieve().');let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:a,query:{}},t),e=>P(e))}async userRetrieve(e,t){let a=await this.userRetrieveRaw(e,t);return await a.value()}async userUpdateRaw(e,t){if(null==e.id)throw new c("id",'Required parameter "id" was null or undefined when calling userUpdate().');let a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,t=await e("KeycloakJWTAccessToken",[]);t&&(a.Authorization="Bearer ".concat(t))}return new l(await this.request({path:"/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:a,query:{},body:K(e.userProfileRequest,!1)},t),e=>P(e))}async userUpdate(e,t){let a=await this.userUpdateRaw(e,t);return await a.value()}}},41444:(e,t,a)=>{a.d(t,{h:()=>r});var n=a(65727);let i=a.n(n)()({level:"info",browser:{asObject:!1,write:{debug:e=>!1,info:e=>console.info(e),warn:e=>console.warn(e),error:e=>console.error(e)}},redact:{paths:["token","password","authorization","apiKey","api_key","wallet.address","user.wallet.address","privateKey","private_key"],censor:"[REDACTED]"}}),r=e=>i.child({module:e})},64269:(e,t,a)=>{a.d(t,{cn:()=>r});var n=a(2821),i=a(75889);function r(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,i.QP)((0,n.$)(t))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{1262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(12115),o=n.useLayoutEffect,i=n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5313:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(40246);class o extends Error{}function i(e,t){let r;if("string"!=typeof e)throw new o("Invalid token specified: must be a string");t||(t={});let n=+(!0!==t.header),i=e.split(".")[n];if("string"!=typeof i)throw new o(`Invalid token specified: missing part #${n+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(i)}catch(e){throw new o(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new o(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}if(o.prototype.name="InvalidTokenError","undefined"==typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function s(e){if(!(this instanceof s))throw Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var t,r,o=this,a=[],c={enable:!0,callbackList:[],interval:5},u=document.getElementsByTagName("script"),l=0;l<u.length;l++)(-1!==u[l].src.indexOf("keycloak.js")||-1!==u[l].src.indexOf("keycloak.min.js"))&&-1!==u[l].src.indexOf("version=")&&(o.iframeVersion=u[l].src.substring(u[l].src.indexOf("version=")+8).split("&")[0]);var d=!0,f=I(console.info),h=I(console.warn);function p(e,t){for(var r=function(e){var t=null,r=window.crypto||window.msCrypto;if(r&&r.getRandomValues&&window.Uint8Array)return t=new Uint8Array(e),r.getRandomValues(t),t;t=Array(e);for(var n=0;n<t.length;n++)t[n]=Math.floor(256*Math.random());return t}(e),n=Array(e),o=0;o<e;o++)n[o]=t.charCodeAt(r[o]%t.length);return String.fromCharCode.apply(null,n)}function m(){return void 0===o.authServerUrl?void 0:"/"==o.authServerUrl.charAt(o.authServerUrl.length-1)?o.authServerUrl+"realms/"+encodeURIComponent(o.realm):o.authServerUrl+"/realms/"+encodeURIComponent(o.realm)}function g(e,t){var r=e.code,n=e.error,i=e.prompt,s=new Date().getTime();if(e.kc_action_status&&o.onActionUpdate&&o.onActionUpdate(e.kc_action_status),n){if("none"!=i){var a={error:n,error_description:e.error_description};o.onAuthError&&o.onAuthError(a),t&&t.setError(a)}else t&&t.setSuccess();return}if("standard"!=o.flow&&(e.access_token||e.id_token)&&h(e.access_token,null,e.id_token,!0),"implicit"!=o.flow&&r){var c="code="+r+"&grant_type=authorization_code",u=o.endpoints.token(),l=new XMLHttpRequest;l.open("POST",u,!0),l.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c+="&client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(c+="&code_verifier="+e.pkceCodeVerifier),l.withCredentials=!0,l.onreadystatechange=function(){if(4==l.readyState)if(200==l.status){var e=JSON.parse(l.responseText);h(e.access_token,e.refresh_token,e.id_token,"standard"===o.flow),_()}else o.onAuthError&&o.onAuthError(),t&&t.setError()},l.send(c)}function h(r,n,i,a){y(r,n,i,s=(s+new Date().getTime())/2),d&&o.idTokenParsed&&o.idTokenParsed.nonce!=e.storedNonce?(f("[KEYCLOAK] Invalid nonce, clearing token"),o.clearToken(),t&&t.setError()):a&&(o.onAuthSuccess&&o.onAuthSuccess(),t&&t.setSuccess())}}function v(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function y(e,t,r,n){if(o.tokenTimeoutHandle&&(clearTimeout(o.tokenTimeoutHandle),o.tokenTimeoutHandle=null),t?(o.refreshToken=t,o.refreshTokenParsed=i(t)):(delete o.refreshToken,delete o.refreshTokenParsed),r?(o.idToken=r,o.idTokenParsed=i(r)):(delete o.idToken,delete o.idTokenParsed),e){if(o.token=e,o.tokenParsed=i(e),o.sessionId=o.tokenParsed.sid,o.authenticated=!0,o.subject=o.tokenParsed.sub,o.realmAccess=o.tokenParsed.realm_access,o.resourceAccess=o.tokenParsed.resource_access,n&&(o.timeSkew=Math.floor(n/1e3)-o.tokenParsed.iat),null!=o.timeSkew&&(f("[KEYCLOAK] Estimated time difference between browser and server is "+o.timeSkew+" seconds"),o.onTokenExpired)){var s=(o.tokenParsed.exp-new Date().getTime()/1e3+o.timeSkew)*1e3;f("[KEYCLOAK] Token expires in "+Math.round(s/1e3)+" s"),s<=0?o.onTokenExpired():o.tokenTimeoutHandle=setTimeout(o.onTokenExpired,s)}}else delete o.token,delete o.tokenParsed,delete o.subject,delete o.realmAccess,delete o.resourceAccess,o.authenticated=!1}function b(){var e="0123456789abcdef",t=p(36,e).split("");return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}function w(e){var t=function(e){switch(o.flow){case"standard":t=["code","state","session_state","kc_action_status","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"]}t.push("error"),t.push("error_description"),t.push("error_uri");var t,r,n,i=e.indexOf("?"),s=e.indexOf("#");if("query"===o.responseMode&&-1!==i?(r=e.substring(0,i),""!==(n=k(e.substring(i+1,-1!==s?s:e.length),t)).paramsString&&(r+="?"+n.paramsString),-1!==s&&(r+=e.substring(s))):"fragment"===o.responseMode&&-1!==s&&(r=e.substring(0,s),""!==(n=k(e.substring(s+1),t)).paramsString&&(r+="#"+n.paramsString)),n&&n.oauthParams){if("standard"===o.flow||"hybrid"===o.flow){if((n.oauthParams.code||n.oauthParams.error)&&n.oauthParams.state)return n.oauthParams.newUrl=r,n.oauthParams}else if("implicit"===o.flow&&(n.oauthParams.access_token||n.oauthParams.error)&&n.oauthParams.state)return n.oauthParams.newUrl=r,n.oauthParams}}(e);if(t){var n=r.get(t.state);return n&&(t.valid=!0,t.redirectUri=n.redirectUri,t.storedNonce=n.nonce,t.prompt=n.prompt,t.pkceCodeVerifier=n.pkceCodeVerifier),t}}function k(e,t){for(var r=e.split("&"),n={paramsString:"",oauthParams:{}},o=0;o<r.length;o++){var i=r[o].indexOf("="),s=r[o].slice(0,i);-1!==t.indexOf(s)?n.oauthParams[s]=r[o].slice(i+1):(""!==n.paramsString&&(n.paramsString+="&"),n.paramsString+=r[o])}return n}function x(){var e={setSuccess:function(t){e.resolve(t)},setError:function(t){e.reject(t)}};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}function S(){var e=x();if(!c.enable||c.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");c.iframe=t,t.onload=function(){var t=o.endpoints.authorize();"/"===t.charAt(0)?c.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):c.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess()};var r=o.endpoints.checkSessionIframe();return t.setAttribute("src",r),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t),window.addEventListener("message",function(e){if(e.origin===c.iframeOrigin&&c.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&o.clearToken();for(var t=c.callbackList.splice(0,c.callbackList.length),r=t.length-1;r>=0;--r){var n=t[r];"error"==e.data?n.setError():n.setSuccess("unchanged"==e.data)}}},!1),e.promise}function _(){c.enable&&o.token&&setTimeout(function(){A().then(function(e){e&&_()})},1e3*c.interval)}function A(){var e=x();if(c.iframe&&c.iframeOrigin){var t=o.clientId+" "+(o.sessionId?o.sessionId:"");c.callbackList.push(e);var r=c.iframeOrigin;1==c.callbackList.length&&c.iframe.contentWindow.postMessage(t,r)}else e.setSuccess();return e.promise}function E(){var e,t,r,n=x();if(c.enable||o.silentCheckSsoRedirectUri){var i=document.createElement("iframe");i.setAttribute("src",o.endpoints.thirdPartyCookiesIframe()),i.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),i.setAttribute("title","keycloak-3p-check-iframe"),i.style.display="none",document.body.appendChild(i);var s=function(e){i.contentWindow===e.source&&("supported"===e.data||"unsupported"===e.data)&&("unsupported"===e.data&&(h("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),c.enable=!1,o.silentCheckSsoFallback&&(o.silentCheckSsoRedirectUri=!1)),document.body.removeChild(i),window.removeEventListener("message",s),n.setSuccess())};window.addEventListener("message",s,!1)}else n.setSuccess();return e=n.promise,t=o.messageReceiveTimeout,r=null,Promise.race([e,new Promise(function(e,n){r=setTimeout(function(){n({error:"Timeout when waiting for 3rd party check iframe message."})},t)})]).finally(function(){clearTimeout(r)})}function C(e){if(!e||"default"==e)return{login:function(e){return window.location.assign(o.createLoginUrl(e)),x().promise},logout:async function(e){if("GET"===(e?.logoutMethod??o.logoutMethod))return void window.location.replace(o.createLogoutUrl(e));let r=o.createLogoutUrl(e),n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:o.idToken,client_id:o.clientId,post_logout_redirect_uri:t.redirectUri(e,!1)})});if(n.redirected){window.location.href=n.url;return}if(n.ok)return void window.location.reload();throw Error("Logout failed, request returned an error code.")},register:function(e){return window.location.assign(o.createRegisterUrl(e)),x().promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0!==e)window.location.href=e;else throw"Not supported by the OIDC server";return x().promise},redirectUri:function(e,t){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:location.href}};if("cordova"==e){c.enable=!1;var r=function(e,t,r){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,r):window.open(e,t,r)},n=function(e){var t=e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce(function(t,r){return t[r]=e.cordovaOptions[r],t},{}):{};return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),Object.keys(t).reduce(function(e,r){return e.push(r+"="+t[r]),e},[]).join(",")},i=function(){return o.redirectUri||"http://localhost"};return{login:function(e){var t=x(),s=n(e),a=r(o.createLoginUrl(e),"_blank",s),c=!1,u=!1,l=function(){u=!0,a.close()};return a.addEventListener("loadstart",function(e){0==e.url.indexOf(i())&&(g(w(e.url),t),l(),c=!0)}),a.addEventListener("loaderror",function(e){c||(0==e.url.indexOf(i())?(g(w(e.url),t),l(),c=!0):(t.setError(),l()))}),a.addEventListener("exit",function(e){u||t.setError({reason:"closed_by_user"})}),t.promise},logout:function(e){var t,n=x(),s=r(o.createLogoutUrl(e),"_blank","location=no,hidden=yes,clearcache=yes");return s.addEventListener("loadstart",function(e){0==e.url.indexOf(i())&&s.close()}),s.addEventListener("loaderror",function(e){0==e.url.indexOf(i())||(t=!0),s.close()}),s.addEventListener("exit",function(e){t?n.setError():(o.clearToken(),n.setSuccess())}),n.promise},register:function(e){var t=x(),s=r(o.createRegisterUrl(),"_blank",n(e));return s.addEventListener("loadstart",function(e){0==e.url.indexOf(i())&&(s.close(),g(w(e.url),t))}),t.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0!==e){var t=r(e,"_blank","location=no");t.addEventListener("loadstart",function(e){0==e.url.indexOf(i())&&t.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(e){return i()}}}if("cordova-native"==e)return c.enable=!1,{login:function(e){var t=x(),r=o.createLoginUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),g(w(e.url),t)}),window.cordova.plugins.browsertab.openUrl(r),t.promise},logout:function(e){var t=x(),r=o.createLogoutUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o.clearToken(),t.setSuccess()}),window.cordova.plugins.browsertab.openUrl(r),t.promise},register:function(e){var t=x(),r=o.createRegisterUrl(e);return universalLinks.subscribe("keycloak",function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),g(w(e.url),t)}),window.cordova.plugins.browsertab.openUrl(r),t.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0!==e)window.cordova.plugins.browsertab.openUrl(e);else throw"Not supported by the OIDC server"},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}o.init=function(n){if(o.didInitialize)throw Error("A 'Keycloak' instance can only be initialized once.");if(o.didInitialize=!0,o.authenticated=!1,r=function(){try{return new O}catch(e){}return new U}(),t=n&&["default","cordova","cordova-native"].indexOf(n.adapter)>-1?C(n.adapter):n&&"object"==typeof n.adapter?n.adapter:window.Cordova||window.cordova?C("cordova"):C(),n){if(void 0!==n.useNonce&&(d=n.useNonce),void 0!==n.checkLoginIframe&&(c.enable=n.checkLoginIframe),n.checkLoginIframeInterval&&(c.interval=n.checkLoginIframeInterval),"login-required"===n.onLoad&&(o.loginRequired=!0),n.responseMode)if("query"===n.responseMode||"fragment"===n.responseMode)o.responseMode=n.responseMode;else throw"Invalid value for responseMode";if(n.flow){switch(n.flow){case"standard":o.responseType="code";break;case"implicit":o.responseType="id_token token";break;case"hybrid":o.responseType="code id_token token";break;default:throw"Invalid value for flow"}o.flow=n.flow}if(null!=n.timeSkew&&(o.timeSkew=n.timeSkew),n.redirectUri&&(o.redirectUri=n.redirectUri),n.silentCheckSsoRedirectUri&&(o.silentCheckSsoRedirectUri=n.silentCheckSsoRedirectUri),"boolean"==typeof n.silentCheckSsoFallback?o.silentCheckSsoFallback=n.silentCheckSsoFallback:o.silentCheckSsoFallback=!0,void 0!==n.pkceMethod){if("S256"!==n.pkceMethod&&!1!==n.pkceMethod)throw TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${n.pkceMethod}.`);o.pkceMethod=n.pkceMethod}else o.pkceMethod="S256";"boolean"==typeof n.enableLogging?o.enableLogging=n.enableLogging:o.enableLogging=!1,"POST"===n.logoutMethod?o.logoutMethod="POST":o.logoutMethod="GET","string"==typeof n.scope&&(o.scope=n.scope),"string"==typeof n.acrValues&&(o.acrValues=n.acrValues),"number"==typeof n.messageReceiveTimeout&&n.messageReceiveTimeout>0?o.messageReceiveTimeout=n.messageReceiveTimeout:o.messageReceiveTimeout=1e4}o.responseMode||(o.responseMode="fragment"),o.responseType||(o.responseType="code",o.flow="standard");var i=x(),s=x();s.promise.then(function(){o.onReady&&o.onReady(o.authenticated),i.setSuccess(o.authenticated)}).catch(function(e){i.setError(e)});var a=function(t){var r=x();function n(e){e?o.endpoints={authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:o.endpoints={authorize:function(){return m()+"/protocol/openid-connect/auth"},token:function(){return m()+"/protocol/openid-connect/token"},logout:function(){return m()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var e=m()+"/protocol/openid-connect/login-status-iframe.html";return o.iframeVersion&&(e=e+"?version="+o.iframeVersion),e},thirdPartyCookiesIframe:function(){var e=m()+"/protocol/openid-connect/3p-cookies/step1.html";return o.iframeVersion&&(e=e+"?version="+o.iframeVersion),e},register:function(){return m()+"/protocol/openid-connect/registrations"},userinfo:function(){return m()+"/protocol/openid-connect/userinfo"}}}if(e?"string"==typeof e&&(a=e):a="keycloak.json",a){var i=new XMLHttpRequest;i.open("GET",a,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status||v(i)){var e=JSON.parse(i.responseText);o.authServerUrl=e["auth-server-url"],o.realm=e.realm,o.clientId=e.resource,n(null),r.setSuccess()}else r.setError()},i.send()}else{if(!e.clientId)throw"clientId missing";o.clientId=e.clientId;var s=e.oidcProvider;if(s)if("string"==typeof s){var a,c="/"==s.charAt(s.length-1)?s+".well-known/openid-configuration":s+"/.well-known/openid-configuration",i=new XMLHttpRequest;i.open("GET",c,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||v(i)?(n(JSON.parse(i.responseText)),r.setSuccess()):r.setError())},i.send()}else n(s),r.setSuccess();else{if(!e.url){for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++)if(u[l].src.match(/.*keycloak\.js/)){e.url=u[l].src.substr(0,u[l].src.indexOf("/js/keycloak.js"));break}}if(!e.realm)throw"realm missing";o.authServerUrl=e.url,o.realm=e.realm,n(null),r.setSuccess()}}return r.promise}();function u(){var e=function(e){e||(r.prompt="none"),n&&n.locale&&(r.locale=n.locale),o.login(r).then(function(){s.setSuccess()}).catch(function(e){s.setError(e)})},t=function(){var e=document.createElement("iframe"),t=o.createLoginUrl({prompt:"none",redirectUri:o.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var r=function(t){t.origin===window.location.origin&&e.contentWindow===t.source&&(g(w(t.data),s),document.body.removeChild(e),window.removeEventListener("message",r))};window.addEventListener("message",r)},r={};switch(n.onLoad){case"check-sso":c.enable?S().then(function(){A().then(function(r){r?s.setSuccess():o.silentCheckSsoRedirectUri?t():e(!1)}).catch(function(e){s.setError(e)})}):o.silentCheckSsoRedirectUri?t():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function l(){var e=w(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return S().then(function(){g(e,s)}).catch(function(e){s.setError(e)});n?n.token&&n.refreshToken?(y(n.token,n.refreshToken,n.idToken),c.enable?S().then(function(){A().then(function(e){e?(o.onAuthSuccess&&o.onAuthSuccess(),s.setSuccess(),_()):s.setSuccess()}).catch(function(e){s.setError(e)})}):o.updateToken(-1).then(function(){o.onAuthSuccess&&o.onAuthSuccess(),s.setSuccess()}).catch(function(e){o.onAuthError&&o.onAuthError(),n.onLoad?u():s.setError(e)})):n.onLoad?u():s.setSuccess():s.setSuccess()}return a.then(function(){var e,t;(e=x(),t=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",t),e.setSuccess())},document.addEventListener("readystatechange",t),t(),e.promise).then(E).then(l).catch(function(e){i.setError(e)})}),a.catch(function(e){i.setError(e)}),i.promise},o.login=function(e){return t.login(e)},o.createLoginUrl=function(e){var i,s=b(),a=b(),c=t.redirectUri(e),u={state:s,nonce:a,redirectUri:encodeURIComponent(c)};e&&e.prompt&&(u.prompt=e.prompt),i=e&&"register"==e.action?o.endpoints.register():o.endpoints.authorize();var l=e&&e.scope||o.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var f=i+"?client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+encodeURIComponent(c)+"&state="+encodeURIComponent(s)+"&response_mode="+encodeURIComponent(o.responseMode)+"&response_type="+encodeURIComponent(o.responseType)+"&scope="+encodeURIComponent(l);if(d&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr&&(f+="&claims="+encodeURIComponent(JSON.stringify({id_token:{acr:e.acr}}))),(e&&e.acrValues||o.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||o.acrValues)),o.pkceMethod){var h=p(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");u.pkceCodeVerifier=h,f+="&code_challenge="+function(e,t){if("S256"!==e)throw TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return btoa(String.fromCodePoint(...new Uint8Array(n.arrayBuffer(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(o.pkceMethod,h)+"&code_challenge_method="+o.pkceMethod}return r.add(u),f},o.logout=function(e){return t.logout(e)},o.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??o.logoutMethod))return o.endpoints.logout();var r=o.endpoints.logout()+"?client_id="+encodeURIComponent(o.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(t.redirectUri(e,!1));return o.idToken&&(r+="&id_token_hint="+encodeURIComponent(o.idToken)),r},o.register=function(e){return t.register(e)},o.createRegisterUrl=function(e){return e||(e={}),e.action="register",o.createLoginUrl(e)},o.createAccountUrl=function(e){var r=m(),n=void 0;return void 0!==r&&(n=r+"/account?referrer="+encodeURIComponent(o.clientId)+"&referrer_uri="+encodeURIComponent(t.redirectUri(e))),n},o.accountManagement=function(){return t.accountManagement()},o.hasRealmRole=function(e){var t=o.realmAccess;return!!t&&t.roles.indexOf(e)>=0},o.hasResourceRole=function(e,t){if(!o.resourceAccess)return!1;var r=o.resourceAccess[t||o.clientId];return!!r&&r.roles.indexOf(e)>=0},o.loadUserProfile=function(){var e=m()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+o.token);var r=x();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(o.profile=JSON.parse(t.responseText),r.setSuccess(o.profile)):r.setError())},t.send(),r.promise},o.loadUserInfo=function(){var e=o.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+o.token);var r=x();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(o.userInfo=JSON.parse(t.responseText),r.setSuccess(o.userInfo)):r.setError())},t.send(),r.promise},o.isTokenExpired=function(e){if(!o.tokenParsed||!o.refreshToken&&"implicit"!=o.flow)throw"Not authenticated";if(null==o.timeSkew)return f("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=o.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+o.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";t-=e}return t<0},o.updateToken=function(e){var t=x();if(!o.refreshToken)return t.setError(),t.promise;e=e||5;var r=function(){var r=!1;if(-1==e?(r=!0,f("[KEYCLOAK] Refreshing token: forced refresh")):(!o.tokenParsed||o.isTokenExpired(e))&&(r=!0,f("[KEYCLOAK] Refreshing token: token expired")),r){var n="grant_type=refresh_token&refresh_token="+o.refreshToken,i=o.endpoints.token();if(a.push(t),1==a.length){var s=new XMLHttpRequest;s.open("POST",i,!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.withCredentials=!0,n+="&client_id="+encodeURIComponent(o.clientId);var c=new Date().getTime();s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status){f("[KEYCLOAK] Token refreshed"),c=(c+new Date().getTime())/2;var e=JSON.parse(s.responseText);y(e.access_token,e.refresh_token,e.id_token,c),o.onAuthRefreshSuccess&&o.onAuthRefreshSuccess();for(var t=a.pop();null!=t;t=a.pop())t.setSuccess(!0)}else{h("[KEYCLOAK] Failed to refresh token"),400==s.status&&o.clearToken(),o.onAuthRefreshError&&o.onAuthRefreshError();for(var t=a.pop();null!=t;t=a.pop())t.setError(!0)}},s.send(n)}}else t.setSuccess(!1)};return c.enable?A().then(function(){r()}).catch(function(e){t.setError(e)}):r(),t.promise},o.clearToken=function(){o.token&&(y(null,null,null),o.onAuthLogout&&o.onAuthLogout(),o.loginRequired&&o.login())};var O=function(){if(!(this instanceof O))return new O;function e(){for(var e=new Date().getTime(),t=0;t<localStorage.length;t++){var r=localStorage.key(t);if(r&&0==r.indexOf("kc-callback-")){var n=localStorage.getItem(r);if(n)try{var o=JSON.parse(n).expires;(!o||o<e)&&localStorage.removeItem(r)}catch(e){localStorage.removeItem(r)}}}}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(t){if(t){var r="kc-callback-"+t,n=localStorage.getItem(r);return n&&(localStorage.removeItem(r),n=JSON.parse(n)),e(),n}},this.add=function(t){e();var r="kc-callback-"+t.state;t.expires=new Date().getTime()+36e5,localStorage.setItem(r,JSON.stringify(t))}},U=function(){if(!(this instanceof U))return new U;this.get=function(n){if(n){var o=t("kc-callback-"+n);if(r("kc-callback-"+n,"",e(-100)),o)return JSON.parse(o)}},this.add=function(t){r("kc-callback-"+t.state,JSON.stringify(t),e(60))},this.removeItem=function(t){r(t,"",e(-100))};var e=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},t=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""},r=function(e,t,r){var n=e+"="+t+"; expires="+r.toUTCString()+"; ";document.cookie=n}};function I(e){return function(){o.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}},5370:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},14105:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:s}=e,a=n?40*n:t,c=o?40*o:r,u=a&&c?"viewBox='0 0 "+a+" "+c+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},14806:(e,t,r)=>{"use strict";e.exports=r(30125)},15239:(e,t,r)=>{"use strict";r.d(t,{default:()=>o.a});var n=r(54652),o=r.n(n)},20821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},26550:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]])},30125:(e,t,r)=>{"use strict";var n=r(12115),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];return a(function(){o.value=r,o.getSnapshot=t,u(o)&&l({inst:o})},[e,r,t]),s(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},33455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let n=r(30943)._(r(12115)),o=r(20821),i=n.default.createContext(o.imageConfigDefault)},40246:(e,t,r)=>{var n,o=r(95704);!function(){"use strict";var t="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA256_NO_WINDOW&&(i=!1);var a=!i&&"object"==typeof self,c=!s.JS_SHA256_NO_NODE_JS&&"object"==typeof o&&o.versions&&o.versions.node&&"renderer"!=o.type;c?s=r.g:a&&(s=self);var u=!s.JS_SHA256_NO_COMMON_JS&&e.exports,l=r.amdO,d=!s.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),h=[-0x80000000,8388608,32768,128],p=[24,16,8,0],m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],g=["hex","array","digest","arrayBuffer"],v=[];(s.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),d&&(s.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var y=function(e,t){return function(r){return new S(t,!0).update(r)[e]()}},b=function(e){var t=y("hex",e);c&&(t=w(t,e)),t.create=function(){return new S(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r<g.length;++r){var n=g[r];t[n]=y(n,e)}return t},w=function(e,n){var o,i=r(24394),a=r(91903).Buffer,c=n?"sha224":"sha256";return o=a.from&&!s.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)},function(r){if("string"==typeof r)return i.createHash(c).update(r,"utf8").digest("hex");if(null==r)throw Error(t);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===a?i.createHash(c).update(o(r)).digest("hex"):e(r)}},k=function(e,t){return function(r,n){return new _(r,t,!0).update(n)[e]()}},x=function(e){var t=k("hex",e);t.create=function(t){return new _(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0;r<g.length;++r){var n=g[r];t[n]=k(n,e)}return t};function S(e,t){t?(v[0]=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0,this.blocks=v):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function _(e,r,n){var o,i=typeof e;if("string"===i){var s,a=[],c=e.length,u=0;for(o=0;o<c;++o)(s=e.charCodeAt(o))<128?a[u++]=s:(s<2048?a[u++]=192|s>>>6:(s<55296||s>=57344?a[u++]=224|s>>>12:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),a[u++]=240|s>>>18,a[u++]=128|s>>>12&63),a[u++]=128|s>>>6&63),a[u++]=128|63&s);e=a}else if("object"===i){if(null===e)throw Error(t);else if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new S(r,!0).update(e).array());var l=[],f=[];for(o=0;o<64;++o){var h=e[o]||0;l[o]=92^h,f[o]=54^h}S.call(this,r,n),this.update(f),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}S.prototype.update=function(e){if(!this.finalized){var r,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}for(var o,i,s=0,a=e.length,c=this.blocks;s<a;){if(this.hashed&&(this.hashed=!1,c[0]=this.block,this.block=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),r)for(i=this.start;s<a&&i<64;++s)c[i>>>2]|=e[s]<<p[3&i++];else for(i=this.start;s<a&&i<64;++s)(o=e.charCodeAt(s))<128?c[i>>>2]|=o<<p[3&i++]:(o<2048?c[i>>>2]|=(192|o>>>6)<<p[3&i++]:(o<55296||o>=57344?c[i>>>2]|=(224|o>>>12)<<p[3&i++]:(o=65536+((1023&o)<<10|1023&e.charCodeAt(++s)),c[i>>>2]|=(240|o>>>18)<<p[3&i++],c[i>>>2]|=(128|o>>>12&63)<<p[3&i++]),c[i>>>2]|=(128|o>>>6&63)<<p[3&i++]),c[i>>>2]|=(128|63&o)<<p[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=c[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},S.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=h[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},S.prototype.hash=function(){var e,t,r,n,o,i,s,a,c,u,l=this.h0,d=this.h1,f=this.h2,h=this.h3,p=this.h4,g=this.h5,v=this.h6,y=this.h7,b=this.blocks;for(e=16;e<64;++e)t=((o=b[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,r=((o=b[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,b[e]=b[e-16]+t+b[e-7]+r|0;for(e=0,u=d&f;e<64;e+=4)this.first?(this.is224?(s=300032,y=(o=b[0]-0x543c9a5b)-0x8f1a6c7|0,h=o+0x170e9b5|0):(s=0x2a01a605,y=(o=b[0]-0xc881298)-0x5ab00ac6|0,h=o+0x8909ae5|0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),n=(s=l&d)^l&f^u,o=y+r+(p&g^~p&v)+m[e]+b[e],i=t+n,y=h+o|0,h=o+i|0),t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),n=(a=h&l)^h&d^s,o=v+r+(y&p^~y&g)+m[e+1]+b[e+1],i=t+n,v=f+o|0,t=((f=o+i|0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),n=(c=f&h)^f&l^a,o=g+r+(v&y^~v&p)+m[e+2]+b[e+2],i=t+n,g=d+o|0,t=((d=o+i|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(u=d&f)^d&h^c,o=p+r+(g&v^~g&y)+m[e+3]+b[e+3],i=t+n,p=l+o|0,l=o+i|0,this.chromeBugWorkAround=!0;this.h0=this.h0+l|0,this.h1=this.h1+d|0,this.h2=this.h2+f|0,this.h3=this.h3+h|0,this.h4=this.h4+p|0,this.h5=this.h5+g|0,this.h6=this.h6+v|0,this.h7=this.h7+y|0},S.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,s=this.h6,a=this.h7,c=f[e>>>28&15]+f[e>>>24&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>4&15]+f[15&e]+f[t>>>28&15]+f[t>>>24&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>4&15]+f[15&t]+f[r>>>28&15]+f[r>>>24&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>4&15]+f[15&r]+f[n>>>28&15]+f[n>>>24&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>4&15]+f[15&n]+f[o>>>28&15]+f[o>>>24&15]+f[o>>>20&15]+f[o>>>16&15]+f[o>>>12&15]+f[o>>>8&15]+f[o>>>4&15]+f[15&o]+f[i>>>28&15]+f[i>>>24&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>4&15]+f[15&i]+f[s>>>28&15]+f[s>>>24&15]+f[s>>>20&15]+f[s>>>16&15]+f[s>>>12&15]+f[s>>>8&15]+f[s>>>4&15]+f[15&s];return this.is224||(c+=f[a>>>28&15]+f[a>>>24&15]+f[a>>>20&15]+f[a>>>16&15]+f[a>>>12&15]+f[a>>>8&15]+f[a>>>4&15]+f[15&a]),c},S.prototype.toString=S.prototype.hex,S.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,i=this.h5,s=this.h6,a=this.h7,c=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,o>>>24&255,o>>>16&255,o>>>8&255,255&o,i>>>24&255,i>>>16&255,i>>>8&255,255&i,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||c.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),c},S.prototype.array=S.prototype.digest,S.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},_.prototype=new S,_.prototype.finalize=function(){if(S.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();S.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),S.prototype.finalize.call(this)}};var A=b();A.sha256=A,A.sha224=b(!0),A.sha256.hmac=x(),A.sha224.hmac=x(!0),u?e.exports=A:(s.sha256=A.sha256,s.sha224=A.sha224,l&&(void 0===(n=(function(){return A}).call(A,r,A,e))||(e.exports=n)))}()},46591:(e,t,r)=>{"use strict";r.d(t,{H4:()=>_,_V:()=>S,bL:()=>x});var n=r(12115),o=r(3468),i=r(70222),s=r(4129),a=r(88142),c=r(14806);function u(){return()=>{}}var l=r(95155),d="Avatar",[f,h]=(0,o.A)(d),[p,m]=f(d),g=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...o}=e,[i,s]=n.useState("idle");return(0,l.jsx)(p,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:s,children:(0,l.jsx)(a.sG.span,{...o,ref:t})})});g.displayName=d;var v="AvatarImage",y=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:o,onLoadingStatusChange:d=()=>{},...f}=e,h=m(v,r),p=function(e,t){let{referrerPolicy:r,crossOrigin:o}=t,i=(0,c.useSyncExternalStore)(u,()=>!0,()=>!1),a=n.useRef(null),l=i?(a.current||(a.current=new window.Image),a.current):null,[d,f]=n.useState(()=>k(l,e));return(0,s.N)(()=>{f(k(l,e))},[l,e]),(0,s.N)(()=>{let e=e=>()=>{f(e)};if(!l)return;let t=e("loaded"),n=e("error");return l.addEventListener("load",t),l.addEventListener("error",n),r&&(l.referrerPolicy=r),"string"==typeof o&&(l.crossOrigin=o),()=>{l.removeEventListener("load",t),l.removeEventListener("error",n)}},[l,o,r]),d}(o,f),g=(0,i.c)(e=>{d(e),h.onImageLoadingStatusChange(e)});return(0,s.N)(()=>{"idle"!==p&&g(p)},[p,g]),"loaded"===p?(0,l.jsx)(a.sG.img,{...f,ref:t,src:o}):null});y.displayName=v;var b="AvatarFallback",w=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:o,...i}=e,s=m(b,r),[c,u]=n.useState(void 0===o);return n.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==s.imageLoadingStatus?(0,l.jsx)(a.sG.span,{...i,ref:t}):null});function k(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}w.displayName=b;var x=g,S=y,_=w},47937:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},54652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return c},getImageProps:function(){return a}});let n=r(30943),o=r(75040),i=r(81356),s=n._(r(71124));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=i.Image},60861:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},65993:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},71124:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:o,quality:i}=e,s=i||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+o+"&q="+s+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},74841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(30943),o=r(88604),i=r(95155),s=o._(r(12115)),a=n._(r(1262)),c=r(90737),u=r(82073),l=r(60861);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(94781);let h=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,s=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){s=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(o.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?i=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!s)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}return i}}()).reverse().map((e,t)=>{let r=e.key||t;return s.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,s.useContext)(c.AmpStateContext),n=(0,s.useContext)(u.HeadManagerContext);return(0,i.jsx)(a.default,{reduceComponentsToState:p,headManager:n,inAmpMode:(0,l.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return c}}),r(94781);let n=r(14105),o=r(20821),i=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t){var r,c;let u,l,d,{src:f,sizes:h,unoptimized:p=!1,priority:m=!1,loading:g,className:v,quality:y,width:b,height:w,fill:k=!1,style:x,overrideSrc:S,onLoad:_,onLoadingComplete:A,placeholder:E="empty",blurDataURL:C,fetchPriority:O,decoding:U="async",layout:I,objectFit:R,objectPosition:T,lazyBoundary:P,lazyRoot:M,...j}=e,{imgConf:L,showAltText:z,blurComplete:N,defaultLoader:D}=t,H=L||o.imageConfigDefault;if("allSizes"in H)u=H;else{let e=[...H.deviceSizes,...H.imageSizes].sort((e,t)=>e-t),t=H.deviceSizes.sort((e,t)=>e-t),n=null==(r=H.qualities)?void 0:r.sort((e,t)=>e-t);u={...H,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let V=j.loader||D;delete j.loader,delete j.srcSet;let B="__next_img_default"in V;if(B){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=V;V=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(k=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!h&&(h=t)}let q="",F=a(b),J=a(w),K=!1;if((c=f)&&"object"==typeof c&&(s(c)||void 0!==c.src)){let e=s(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(l=e.blurWidth,d=e.blurHeight,C=C||e.blurDataURL,q=e.src,K=/\.avif(?:\?|$)/i.test(q),!k)if(F||J){if(F&&!J){let t=F/e.width;J=Math.round(e.height*t)}else if(!F&&J){let t=J/e.height;F=Math.round(e.width*t)}}else F=e.width,J=e.height}K&&"blur"===E&&!C&&(E="empty");let G=!m&&("lazy"===g||void 0===g);(!(f="string"==typeof f?f:q)||f.startsWith("data:")||f.startsWith("blob:"))&&(p=!0,G=!1),u.unoptimized&&(p=!0),B&&!u.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(p=!0);let W=a(y),Y=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:T}:{},z?{}:{color:"transparent"},x),X=N||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:F,heightInt:J,blurWidth:l,blurHeight:d,blurDataURL:C||"",objectFit:Y.objectFit})+'")':'url("'+E+'")',$=i.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,Q=X?{backgroundSize:$,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:s,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,s),l=c.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:c.map((e,n)=>a({config:t,src:r,quality:i,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:i,width:c[l]})}}({config:u,src:f,unoptimized:p,width:F,quality:W,sizes:h,loader:V});return{props:{...j,loading:G?"lazy":g,fetchPriority:O,width:F,height:J,decoding:U,className:v,style:{...Y,...Q},sizes:Z.sizes,srcSet:Z.srcSet,src:S||Z.src},meta:{unoptimized:p,priority:m,placeholder:E,fill:k}}}},77931:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},79862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(30943)._(r(12115)).default.createContext(null)},80534:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},81356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(30943),o=r(88604),i=r(95155),s=o._(r(12115)),a=n._(r(47650)),c=n._(r(74841)),u=r(75040),l=r(20821),d=r(33455);r(94781);let f=r(79862),h=n._(r(71124)),p=r(83011),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,o,i,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:a,width:c,decoding:u,className:l,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:y,fill:b,onLoadRef:w,onLoadingCompleteRef:k,setBlurComplete:x,setShowAltText:S,sizesInput:_,onLoad:A,onError:E,...C}=e,O=(0,s.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&g(e,h,w,k,x,y,_))},[r,h,w,k,x,E,y,_]),U=(0,p.useMergedRef)(t,O);return(0,i.jsx)("img",{...C,...v(f),loading:m,width:c,height:a,decoding:u,"data-nimg":b?"fill":"1",className:l,style:d,sizes:o,srcSet:n,src:r,ref:U,onLoad:e=>{g(e.currentTarget,h,w,k,x,y,_)},onError:e=>{S(!0),"empty"!==h&&x(!0),E&&E(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,i.jsx)(c.default,{children:(0,i.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(f.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),o=(0,s.useMemo)(()=>{var e;let t=m||n||l.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),o=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:o,qualities:i}},[n]),{onLoad:a,onLoadingComplete:c}=e,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let g=(0,s.useRef)(c);(0,s.useEffect)(()=>{g.current=c},[c]);let[v,w]=(0,s.useState)(!1),[k,x]=(0,s.useState)(!1),{props:S,meta:_}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:v,showAltText:k});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{...S,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:x,sizesInput:e.sizes,ref:t}),_.priority?(0,i.jsx)(b,{isAppRouter:!r,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84926:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("log-out",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},90737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(30943)._(r(12115)).default.createContext({})}}]);