@confidencesystemsinc/sdk 1.0.2 → 1.0.4

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 (36) hide show
  1. package/dist/sdk.cjs +1 -1
  2. package/dist/sdk.js +1 -1
  3. package/package.json +2 -3
  4. package/dist/index.css +0 -1
  5. package/src/App.css +0 -2
  6. package/src/components/badge.tsx +0 -116
  7. package/src/components/initiate-playbook-modal/InitiatePlaybookModal.tsx +0 -53
  8. package/src/components/playbook/confidence-playbook.tsx +0 -217
  9. package/src/components/playbook/playbook-header.tsx +0 -13
  10. package/src/components/playbook-button/ConfidencePlaybookButton.tsx +0 -74
  11. package/src/components/task/confidence-task.tsx +0 -198
  12. package/src/components/task/task-buttons.tsx +0 -32
  13. package/src/components/task/task-dropdown-badge.tsx +0 -121
  14. package/src/components/task/task-left-panel.tsx +0 -60
  15. package/src/components/task/task-status-badge.tsx +0 -23
  16. package/src/components/ui/button.tsx +0 -269
  17. package/src/components/ui/header.tsx +0 -12
  18. package/src/components/ui/input.tsx +0 -39
  19. package/src/components/ui/modal.tsx +0 -88
  20. package/src/constants/settings.constants.ts +0 -2
  21. package/src/hooks/task-events/useCompleteTask.ts +0 -26
  22. package/src/hooks/task-events/useStartTask.ts +0 -29
  23. package/src/hooks/usePlaybook.ts +0 -48
  24. package/src/hooks/usePlaybookActions.ts +0 -69
  25. package/src/hooks/useTaskButtons.ts +0 -46
  26. package/src/index.ts +0 -6
  27. package/src/services/complete-task.service.ts +0 -21
  28. package/src/services/initiate-playbook.service.ts +0 -24
  29. package/src/services/start-task.services.ts +0 -23
  30. package/src/stories/initiate-playbook-modal.stories.tsx +0 -31
  31. package/src/stories/modal.stories.tsx +0 -50
  32. package/src/stories/playbook-container.stories.tsx +0 -79
  33. package/src/types/playbook.types.ts +0 -22
  34. package/src/types/task.types.ts +0 -20
  35. package/src/utils/cn.ts +0 -6
  36. package/src/vite-env.d.ts +0 -1
package/dist/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";require('./index.css');var la=e=>{throw TypeError(e)};var lo=(e,t,n)=>t.has(e)||la("Cannot "+n);var m=(e,t,n)=>(lo(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(lo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(lo(e,t,"access private method"),n);var ur=(e,t,n,r)=>({set _(o){M(e,t,o,n)},get _(){return m(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),d=require("react"),Vi=require("react-dom");function Gi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=Gi(d),wu=Gi(Vi);var An=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qt=typeof window>"u"||"Deno"in globalThis;function ke(){}function xu(e,t){return typeof e=="function"?e(t):e}function Do(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ki(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cn(e,t){return typeof e=="function"?e(t):e}function De(e,t){return typeof e=="function"?e(t):e}function ca(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a){if(r){if(t.queryHash!==Ms(a,t.options))return!1}else if(!Kn(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||o&&o!==t.state.fetchStatus||s&&!s(t))}function ua(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Xt(t.options.mutationKey)!==Xt(s))return!1}else if(!Kn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ms(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xt)(e)}function Xt(e){return JSON.stringify(e,(t,n)=>zo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Kn(e[n],t[n])):!1}function jo(e,t){if(e===t)return e;const n=fa(e)&&fa(t);if(n||zo(e)&&zo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),a=s.length,i=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:s[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(i[u]=void 0,l++):(i[u]=jo(e[u],t[u]),i[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:i}return t}function kr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zo(e){if(!da(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!da(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function da(e){return Object.prototype.toString.call(e)==="[object Object]"}function Eu(e){return new Promise(t=>{setTimeout(t,e)})}function Ho(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return jo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return jo(e,t)}return t}function Su(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cu(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tr=Symbol();function Yi(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Tr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Tr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qi(e,t){return typeof e=="function"?e(...t):!!e}var Ht,gt,pn,Ni,ku=(Ni=class extends An{constructor(){super();H(this,Ht);H(this,gt);H(this,pn);M(this,pn,t=>{if(!Qt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){m(this,gt)||this.setEventListener(m(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=m(this,gt))==null||t.call(this),M(this,gt,void 0))}setEventListener(t){var n;M(this,pn,t),(n=m(this,gt))==null||n.call(this),M(this,gt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){m(this,Ht)!==t&&(M(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof m(this,Ht)=="boolean"?m(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,gt=new WeakMap,pn=new WeakMap,Ni),Ls=new ku,mn,bt,gn,_i,Tu=(_i=class extends An{constructor(){super();H(this,mn,!0);H(this,bt);H(this,gn);M(this,gn,t=>{if(!Qt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){m(this,bt)||this.setEventListener(m(this,gn))}onUnsubscribe(){var t;this.hasListeners()||((t=m(this,bt))==null||t.call(this),M(this,bt,void 0))}setEventListener(t){var n;M(this,gn,t),(n=m(this,bt))==null||n.call(this),M(this,bt,t(this.setOnline.bind(this)))}setOnline(t){m(this,mn)!==t&&(M(this,mn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return m(this,mn)}},mn=new WeakMap,bt=new WeakMap,gn=new WeakMap,_i),Or=new Tu;function Wo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Ou(e){return Math.min(1e3*2**e,3e4)}function Xi(e){return(e??"online")==="online"?Or.isOnline():!0}var Ji=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function co(e){return e instanceof Ji}function Zi(e){let t=!1,n=0,r=!1,o;const s=Wo(),a=g=>{var y;r||(p(new Ji(g)),(y=e.abort)==null||y.call(e))},i=()=>{t=!0},l=()=>{t=!1},c=()=>Ls.isFocused()&&(e.networkMode==="always"||Or.isOnline())&&e.canRun(),u=()=>Xi(e.networkMode)&&e.canRun(),f=g=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,g),o==null||o(),s.resolve(g))},p=g=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,g),o==null||o(),s.reject(g))},h=()=>new Promise(g=>{var y;o=x=>{(r||c())&&g(x)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(f).catch(x=>{var L;if(r)return;const S=e.retry??(Qt?0:3),w=e.retryDelay??Ou,C=typeof w=="function"?w(n,x):w,v=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,x);if(t||!v){p(x);return}n++,(L=e.onFail)==null||L.call(e,n,x),Eu(C).then(()=>c()?void 0:h()).then(()=>{t?p(x):b()})})};return{promise:s,cancel:a,continue:()=>(o==null||o(),s),cancelRetry:i,continueRetry:l,canStart:u,start:()=>(u()?b():h().then(b),s)}}var Pu=e=>setTimeout(e,0);function Au(){let e=[],t=0,n=i=>{i()},r=i=>{i()},o=Pu;const s=i=>{t?e.push(i):o(()=>{n(i)})},a=()=>{const i=e;e=[],i.length&&o(()=>{r(()=>{i.forEach(l=>{n(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||a()}return l},batchCalls:i=>(...l)=>{s(()=>{i(...l)})},schedule:s,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{o=i}}}var ye=Au(),Wt,Di,el=(Di=class{constructor(){H(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Do(this.gcTime)&&M(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qt?1/0:5*60*1e3))}clearGcTimeout(){m(this,Wt)&&(clearTimeout(m(this,Wt)),M(this,Wt,void 0))}},Wt=new WeakMap,Di),bn,yn,Ie,Ut,xe,Zn,Bt,Ne,Qe,ji,Ru=(ji=class extends el{constructor(t){super();H(this,Ne);H(this,bn);H(this,yn);H(this,Ie);H(this,Ut);H(this,xe);H(this,Zn);H(this,Bt);M(this,Bt,!1),M(this,Zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ut,t.client),M(this,Ie,m(this,Ut).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,bn,$u(this.options)),this.state=t.state??m(this,bn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=m(this,xe))==null?void 0:t.promise}setOptions(t){this.options={...m(this,Zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&m(this,Ie).remove(this)}setData(t,n){const r=Ho(this.state.data,t,this.options);return J(this,Ne,Qe).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,Ne,Qe).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=m(this,xe))==null?void 0:r.promise;return(o=m(this,xe))==null||o.cancel(t),n?n.then(ke).catch(ke):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(m(this,bn))}isActive(){return this.observers.some(t=>De(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ki(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=m(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=m(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),m(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(m(this,xe)&&(m(this,Bt)?m(this,xe).cancel({revert:!0}):m(this,xe).cancelRetry()),this.scheduleGc()),m(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,Ne,Qe).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(m(this,xe))return m(this,xe).continueRetry(),m(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(M(this,Bt,!0),r.signal)})},s=()=>{const f=Yi(this.options,n),p={client:m(this,Ut),queryKey:this.queryKey,meta:this.meta};return o(p),M(this,Bt,!1),this.options.persister?this.options.persister(f,p,this):f(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:m(this,Ut),state:this.state,fetchFn:s};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),M(this,yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&J(this,Ne,Qe).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const i=f=>{var p,h,b,g;co(f)&&f.silent||J(this,Ne,Qe).call(this,{type:"error",error:f}),co(f)||((h=(p=m(this,Ie).config).onError)==null||h.call(p,f,this),(g=(b=m(this,Ie).config).onSettled)==null||g.call(b,this.state.data,f,this)),this.scheduleGc()};return M(this,xe,Zi({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,b,g;if(f===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){i(y);return}(h=(p=m(this,Ie).config).onSuccess)==null||h.call(p,f,this),(g=(b=m(this,Ie).config).onSettled)==null||g.call(b,f,this.state.error,this),this.scheduleGc()},onError:i,onFail:(f,p)=>{J(this,Ne,Qe).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{J(this,Ne,Qe).call(this,{type:"pause"})},onContinue:()=>{J(this,Ne,Qe).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),m(this,xe).start()}},bn=new WeakMap,yn=new WeakMap,Ie=new WeakMap,Ut=new WeakMap,xe=new WeakMap,Zn=new WeakMap,Bt=new WeakMap,Ne=new WeakSet,Qe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...tl(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return co(o)&&o.revert&&m(this,yn)?{...m(this,yn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),m(this,Ie).notify({query:this,type:"updated",action:t})})},ji);function tl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xi(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $u(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ue,zi,Fu=(zi=class extends An{constructor(t={}){super();H(this,Ue);this.config=t,M(this,Ue,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ms(o,n);let a=this.get(s);return a||(a=new Ru({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){m(this,Ue).has(t.queryHash)||(m(this,Ue).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=m(this,Ue).get(t.queryHash);n&&(t.destroy(),n===t&&m(this,Ue).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return m(this,Ue).get(t)}getAll(){return[...m(this,Ue).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ca(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ca(t,r)):n}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ue=new WeakMap,zi),Be,Se,qt,qe,pt,Hi,Iu=(Hi=class extends el{constructor(t){super();H(this,qe);H(this,Be);H(this,Se);H(this,qt);this.mutationId=t.mutationId,M(this,Se,t.mutationCache),M(this,Be,[]),this.state=t.state||nl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){m(this,Be).includes(t)||(m(this,Be).push(t),this.clearGcTimeout(),m(this,Se).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Be,m(this,Be).filter(n=>n!==t)),this.scheduleGc(),m(this,Se).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){m(this,Be).length||(this.state.status==="pending"?this.scheduleGc():m(this,Se).remove(this))}continue(){var t;return((t=m(this,qt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,i,l,c,u,f,p,h,b,g,y,x,S,w,C,v,L,q,R;const n=()=>{J(this,qe,pt).call(this,{type:"continue"})};M(this,qt,Zi({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(U,G)=>{J(this,qe,pt).call(this,{type:"failed",failureCount:U,error:G})},onPause:()=>{J(this,qe,pt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>m(this,Se).canRun(this)}));const r=this.state.status==="pending",o=!m(this,qt).canStart();try{if(r)n();else{J(this,qe,pt).call(this,{type:"pending",variables:t,isPaused:o}),await((a=(s=m(this,Se).config).onMutate)==null?void 0:a.call(s,t,this));const G=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));G!==this.state.context&&J(this,qe,pt).call(this,{type:"pending",context:G,variables:t,isPaused:o})}const U=await m(this,qt).start();return await((u=(c=m(this,Se).config).onSuccess)==null?void 0:u.call(c,U,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,U,t,this.state.context)),await((b=(h=m(this,Se).config).onSettled)==null?void 0:b.call(h,U,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,U,null,t,this.state.context)),J(this,qe,pt).call(this,{type:"success",data:U}),U}catch(U){try{throw await((S=(x=m(this,Se).config).onError)==null?void 0:S.call(x,U,t,this.state.context,this)),await((C=(w=this.options).onError)==null?void 0:C.call(w,U,t,this.state.context)),await((L=(v=m(this,Se).config).onSettled)==null?void 0:L.call(v,void 0,U,this.state.variables,this.state.context,this)),await((R=(q=this.options).onSettled)==null?void 0:R.call(q,void 0,U,t,this.state.context)),U}finally{J(this,qe,pt).call(this,{type:"error",error:U})}}finally{m(this,Se).runNext(this)}}},Be=new WeakMap,Se=new WeakMap,qt=new WeakMap,qe=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ye.batch(()=>{m(this,Be).forEach(r=>{r.onMutationUpdate(t)}),m(this,Se).notify({mutation:this,type:"updated",action:t})})},Hi);function nl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xe,_e,er,Wi,Mu=(Wi=class extends An{constructor(t={}){super();H(this,Xe);H(this,_e);H(this,er);this.config=t,M(this,Xe,new Set),M(this,_e,new Map),M(this,er,0)}build(t,n,r){const o=new Iu({mutationCache:this,mutationId:++ur(this,er)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){m(this,Xe).add(t);const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n);r?r.push(t):m(this,_e).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(m(this,Xe).delete(t)){const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&m(this,_e).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fr(t);if(typeof n=="string"){const o=(r=m(this,_e).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{m(this,Xe).forEach(t=>{this.notify({type:"removed",mutation:t})}),m(this,Xe).clear(),m(this,_e).clear()})}getAll(){return Array.from(m(this,Xe))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ua(n,r))}findAll(t={}){return this.getAll().filter(n=>ua(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(ke))))}},Xe=new WeakMap,_e=new WeakMap,er=new WeakMap,Wi);function fr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ha(e){return{onFetch:(t,n)=>{var u,f,p,h,b;const r=t.options,o=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],a=((b=t.state.data)==null?void 0:b.pageParams)||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},x=Yi(t.options,t.fetchOptions),S=async(w,C,v)=>{if(g)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const L={client:t.client,queryKey:t.queryKey,pageParam:C,direction:v?"backward":"forward",meta:t.options.meta};y(L);const q=await x(L),{maxPages:R}=t.options,U=v?Cu:Su;return{pages:U(w.pages,q,R),pageParams:U(w.pageParams,C,R)}};if(o&&s.length){const w=o==="backward",C=w?Lu:pa,v={pages:s,pageParams:a},L=C(r,v);i=await S(v,L,w)}else{const w=e??s.length;do{const C=l===0?a[0]??r.initialPageParam:pa(r,i);if(l>0&&C==null)break;i=await S(i,C),l++}while(l<w)}return i};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lu(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,yt,vt,vn,wn,wt,xn,En,Ui,Nu=(Ui=class{constructor(e={}){H(this,pe);H(this,yt);H(this,vt);H(this,vn);H(this,wn);H(this,wt);H(this,xn);H(this,En);M(this,pe,e.queryCache||new Fu),M(this,yt,e.mutationCache||new Mu),M(this,vt,e.defaultOptions||{}),M(this,vn,new Map),M(this,wn,new Map),M(this,wt,0)}mount(){ur(this,wt)._++,m(this,wt)===1&&(M(this,xn,Ls.subscribe(async e=>{e&&(await this.resumePausedMutations(),m(this,pe).onFocus())})),M(this,En,Or.subscribe(async e=>{e&&(await this.resumePausedMutations(),m(this,pe).onOnline())})))}unmount(){var e,t;ur(this,wt)._--,m(this,wt)===0&&((e=m(this,xn))==null||e.call(this),M(this,xn,void 0),(t=m(this,En))==null||t.call(this),M(this,En,void 0))}isFetching(e){return m(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return m(this,yt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=m(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=m(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return m(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=m(this,pe).get(r.queryHash),s=o==null?void 0:o.state.data,a=xu(t,s);if(a!==void 0)return m(this,pe).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>m(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=m(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=m(this,pe);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=m(this,pe);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>m(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ke).catch(ke)}invalidateQueries(e,t={}){return ye.batch(()=>(m(this,pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ye.batch(()=>m(this,pe).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ke)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ke)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=m(this,pe).build(this,t);return n.isStaleByTime(cn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ke).catch(ke)}fetchInfiniteQuery(e){return e.behavior=ha(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ke).catch(ke)}ensureInfiniteQueryData(e){return e.behavior=ha(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Or.isOnline()?m(this,yt).resumePausedMutations():Promise.resolve()}getQueryCache(){return m(this,pe)}getMutationCache(){return m(this,yt)}getDefaultOptions(){return m(this,vt)}setDefaultOptions(e){M(this,vt,e)}setQueryDefaults(e,t){m(this,vn).set(Xt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...m(this,vn).values()],n={};return t.forEach(r=>{Kn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){m(this,wn).set(Xt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...m(this,wn).values()],n={};return t.forEach(r=>{Kn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...m(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ms(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Tr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...m(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){m(this,pe).clear(),m(this,yt).clear()}},pe=new WeakMap,yt=new WeakMap,vt=new WeakMap,vn=new WeakMap,wn=new WeakMap,wt=new WeakMap,xn=new WeakMap,En=new WeakMap,Ui),Oe,re,tr,Ce,Vt,Sn,xt,Et,nr,Cn,kn,Gt,Kt,St,Tn,ie,Nn,Uo,Bo,qo,Vo,Go,Ko,Yo,rl,Bi,_u=(Bi=class extends An{constructor(t,n){super();H(this,ie);H(this,Oe);H(this,re);H(this,tr);H(this,Ce);H(this,Vt);H(this,Sn);H(this,xt);H(this,Et);H(this,nr);H(this,Cn);H(this,kn);H(this,Gt);H(this,Kt);H(this,St);H(this,Tn,new Set);this.options=n,M(this,Oe,t),M(this,Et,null),M(this,xt,Wo()),this.options.experimental_prefetchInRender||m(this,xt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(m(this,re).addObserver(this),ma(m(this,re),this.options)?J(this,ie,Nn).call(this):this.updateResult(),J(this,ie,Vo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qo(m(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qo(m(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,ie,Go).call(this),J(this,ie,Ko).call(this),m(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=m(this,re);if(this.options=m(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof De(this.options.enabled,m(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,ie,Yo).call(this),m(this,re).setOptions(this.options),n._defaulted&&!kr(this.options,n)&&m(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:m(this,re),observer:this});const o=this.hasListeners();o&&ga(m(this,re),r,this.options,n)&&J(this,ie,Nn).call(this),this.updateResult(),o&&(m(this,re)!==r||De(this.options.enabled,m(this,re))!==De(n.enabled,m(this,re))||cn(this.options.staleTime,m(this,re))!==cn(n.staleTime,m(this,re)))&&J(this,ie,Uo).call(this);const s=J(this,ie,Bo).call(this);o&&(m(this,re)!==r||De(this.options.enabled,m(this,re))!==De(n.enabled,m(this,re))||s!==m(this,St))&&J(this,ie,qo).call(this,s)}getOptimisticResult(t){const n=m(this,Oe).getQueryCache().build(m(this,Oe),t),r=this.createResult(n,t);return ju(this,r)&&(M(this,Ce,r),M(this,Sn,this.options),M(this,Vt,m(this,re).state)),r}getCurrentResult(){return m(this,Ce)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){m(this,Tn).add(t)}getCurrentQuery(){return m(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=m(this,Oe).defaultQueryOptions(t),r=m(this,Oe).getQueryCache().build(m(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,ie,Nn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),m(this,Ce)))}createResult(t,n){var U;const r=m(this,re),o=this.options,s=m(this,Ce),a=m(this,Vt),i=m(this,Sn),c=t!==r?t.state:m(this,tr),{state:u}=t;let f={...u},p=!1,h;if(n._optimisticResults){const G=this.hasListeners(),le=!G&&ma(t,n),ue=G&&ga(t,r,n,o);(le||ue)&&(f={...f,...tl(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:y}=f;h=f.data;let x=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let G;s!=null&&s.isPlaceholderData&&n.placeholderData===(i==null?void 0:i.placeholderData)?(G=s.data,x=!0):G=typeof n.placeholderData=="function"?n.placeholderData((U=m(this,kn))==null?void 0:U.state.data,m(this,kn)):n.placeholderData,G!==void 0&&(y="success",h=Ho(s==null?void 0:s.data,G,n),p=!0)}if(n.select&&h!==void 0&&!x)if(s&&h===(a==null?void 0:a.data)&&n.select===m(this,nr))h=m(this,Cn);else try{M(this,nr,n.select),h=n.select(h),h=Ho(s==null?void 0:s.data,h,n),M(this,Cn,h),M(this,Et,null)}catch(G){M(this,Et,G)}m(this,Et)&&(b=m(this,Et),h=m(this,Cn),g=Date.now(),y="error");const S=f.fetchStatus==="fetching",w=y==="pending",C=y==="error",v=w&&S,L=h!==void 0,R={status:y,fetchStatus:f.fetchStatus,isPending:w,isSuccess:y==="success",isError:C,isInitialLoading:v,isLoading:v,data:h,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:C&&!L,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&L,isStale:Ns(t,n),refetch:this.refetch,promise:m(this,xt)};if(this.options.experimental_prefetchInRender){const G=oe=>{R.status==="error"?oe.reject(R.error):R.data!==void 0&&oe.resolve(R.data)},le=()=>{const oe=M(this,xt,R.promise=Wo());G(oe)},ue=m(this,xt);switch(ue.status){case"pending":t.queryHash===r.queryHash&&G(ue);break;case"fulfilled":(R.status==="error"||R.data!==ue.value)&&le();break;case"rejected":(R.status!=="error"||R.error!==ue.reason)&&le();break}}return R}updateResult(){const t=m(this,Ce),n=this.createResult(m(this,re),this.options);if(M(this,Vt,m(this,re).state),M(this,Sn,this.options),m(this,Vt).data!==void 0&&M(this,kn,m(this,re)),kr(n,t))return;M(this,Ce,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!m(this,Tn).size)return!0;const a=new Set(s??m(this,Tn));return this.options.throwOnError&&a.add("error"),Object.keys(m(this,Ce)).some(i=>{const l=i;return m(this,Ce)[l]!==t[l]&&a.has(l)})};J(this,ie,rl).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,ie,Vo).call(this)}},Oe=new WeakMap,re=new WeakMap,tr=new WeakMap,Ce=new WeakMap,Vt=new WeakMap,Sn=new WeakMap,xt=new WeakMap,Et=new WeakMap,nr=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,St=new WeakMap,Tn=new WeakMap,ie=new WeakSet,Nn=function(t){J(this,ie,Yo).call(this);let n=m(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ke)),n},Uo=function(){J(this,ie,Go).call(this);const t=cn(this.options.staleTime,m(this,re));if(Qt||m(this,Ce).isStale||!Do(t))return;const r=Ki(m(this,Ce).dataUpdatedAt,t)+1;M(this,Gt,setTimeout(()=>{m(this,Ce).isStale||this.updateResult()},r))},Bo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(m(this,re)):this.options.refetchInterval)??!1},qo=function(t){J(this,ie,Ko).call(this),M(this,St,t),!(Qt||De(this.options.enabled,m(this,re))===!1||!Do(m(this,St))||m(this,St)===0)&&M(this,Kt,setInterval(()=>{(this.options.refetchIntervalInBackground||Ls.isFocused())&&J(this,ie,Nn).call(this)},m(this,St)))},Vo=function(){J(this,ie,Uo).call(this),J(this,ie,qo).call(this,J(this,ie,Bo).call(this))},Go=function(){m(this,Gt)&&(clearTimeout(m(this,Gt)),M(this,Gt,void 0))},Ko=function(){m(this,Kt)&&(clearInterval(m(this,Kt)),M(this,Kt,void 0))},Yo=function(){const t=m(this,Oe).getQueryCache().build(m(this,Oe),this.options);if(t===m(this,re))return;const n=m(this,re);M(this,re,t),M(this,tr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},rl=function(t){ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(m(this,Ce))}),m(this,Oe).getQueryCache().notify({query:m(this,re),type:"observerResultsUpdated"})})},Bi);function Du(e,t){return De(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ma(e,t){return Du(e,t)||e.state.data!==void 0&&Qo(e,t,t.refetchOnMount)}function Qo(e,t,n){if(De(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ns(e,t)}return!1}function ga(e,t,n,r){return(e!==t||De(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ns(e,n)}function Ns(e,t){return De(t.enabled,e)!==!1&&e.isStaleByTime(cn(t.staleTime,e))}function ju(e,t){return!kr(e.getCurrentResult(),t)}var Ct,kt,Pe,Je,rt,xr,Xo,qi,zu=(qi=class extends An{constructor(n,r){super();H(this,rt);H(this,Ct);H(this,kt);H(this,Pe);H(this,Je);M(this,Ct,n),this.setOptions(r),this.bindMethods(),J(this,rt,xr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=m(this,Ct).defaultMutationOptions(n),kr(this.options,r)||m(this,Ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:m(this,Pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Xt(r.mutationKey)!==Xt(this.options.mutationKey)?this.reset():((o=m(this,Pe))==null?void 0:o.state.status)==="pending"&&m(this,Pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=m(this,Pe))==null||n.removeObserver(this)}onMutationUpdate(n){J(this,rt,xr).call(this),J(this,rt,Xo).call(this,n)}getCurrentResult(){return m(this,kt)}reset(){var n;(n=m(this,Pe))==null||n.removeObserver(this),M(this,Pe,void 0),J(this,rt,xr).call(this),J(this,rt,Xo).call(this)}mutate(n,r){var o;return M(this,Je,r),(o=m(this,Pe))==null||o.removeObserver(this),M(this,Pe,m(this,Ct).getMutationCache().build(m(this,Ct),this.options)),m(this,Pe).addObserver(this),m(this,Pe).execute(n)}},Ct=new WeakMap,kt=new WeakMap,Pe=new WeakMap,Je=new WeakMap,rt=new WeakSet,xr=function(){var r;const n=((r=m(this,Pe))==null?void 0:r.state)??nl();M(this,kt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Xo=function(n){ye.batch(()=>{var r,o,s,a,i,l,c,u;if(m(this,Je)&&this.hasListeners()){const f=m(this,kt).variables,p=m(this,kt).context;(n==null?void 0:n.type)==="success"?((o=(r=m(this,Je)).onSuccess)==null||o.call(r,n.data,f,p),(a=(s=m(this,Je)).onSettled)==null||a.call(s,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(i=m(this,Je)).onError)==null||l.call(i,n.error,f,p),(u=(c=m(this,Je)).onSettled)==null||u.call(c,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(m(this,kt))})})},qi),ol=F.createContext(void 0),_s=e=>{const t=F.useContext(ol);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hu=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),O.jsx(ol.Provider,{value:e,children:t})),sl=F.createContext(!1),Wu=()=>F.useContext(sl);sl.Provider;function Uu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bu=F.createContext(Uu()),qu=()=>F.useContext(Bu),Vu=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Gu=e=>{F.useEffect(()=>{e.clearReset()},[e])},Ku=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Qi(n,[e.error,r])),Yu=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Qu=(e,t)=>e.isLoading&&e.isFetching&&!t,Xu=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ba=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ju(e,t,n){var f,p,h,b,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=_s(),o=Wu(),s=qu(),a=r.defaultQueryOptions(e);(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=o?"isRestoring":"optimistic",Yu(a),Vu(a,s),Gu(s);const i=!r.getQueryCache().get(a.queryHash),[l]=F.useState(()=>new t(r,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(y=>{const x=u?l.subscribe(ye.batchCalls(y)):ke;return l.updateResult(),x},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),F.useEffect(()=>{l.setOptions(a)},[a,l]),Xu(a,c))throw ba(a,l,s);if(Ku({result:c,errorResetBoundary:s,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if((b=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||b.call(h,a,c),a.experimental_prefetchInRender&&!Qt&&Qu(c,o)){const y=i?ba(a,l,s):(g=r.getQueryCache().get(a.queryHash))==null?void 0:g.promise;y==null||y.catch(ke).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function Zu(e,t){return Ju(e,_u)}function al(e,t){const n=_s(),[r]=F.useState(()=>new zu(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);const o=F.useSyncExternalStore(F.useCallback(a=>r.subscribe(ye.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=F.useCallback((a,i)=>{r.mutate(a,i).catch(ke)},[r]);if(o.error&&Qi(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const ef="3QM9PlH0BuyKaVErlBWxVJU5v0vFlMJv",he={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},tf=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch("/public-api/playbook-task-complete",{method:"POST",headers:n,body:JSON.stringify(t)})).json()},nf=()=>{const e=al({mutationFn:async n=>tf(n)});return{completeTask:async n=>e.mutateAsync(n,{onSuccess:()=>{console.log("Task completed successfully")},onError:r=>{console.error("Error completing task:",r)}}),...e}},rf=async e=>{const t={taskInstanceId:e},n=new Headers;n.append("Content-Type","application/json");const o=await(await fetch("/public-api/playbook-task-start",{method:"POST",headers:n,body:JSON.stringify(t)})).json();return console.log({data:o}),o},of=()=>{const e=al({mutationFn:async n=>{const r=await rf(n);return console.log(r),r}});return{startTask:n=>e.mutateAsync(n,{onSuccess:()=>{console.log("Task started successfully")},onError:r=>{console.error("Error starting task:",r)}}),...e}},sf=(e,t)=>{const n=_s(),{completeTask:r}=nf(),{startTask:o}=of();return{completeTask:async(i,l)=>{const{status:c}=await r(i.toString());c&&n.setQueryData(["playbook",+e],u=>{if(!u)return u;const f=u.tasks.map(p=>p.sequenceOrder===l+1&&t.quickComplete?{...p,workflowStatus:he.IN_PROGRESS}:p.taskInstanceId===i?{...p,workflowStatus:c}:p);return{...u,tasks:f}})},startTask:async i=>{const{status:l}=await o(i.toString());l&&n.setQueryData(["playbook",+e],c=>{if(!c)return c;const u=c.tasks.map(f=>f.taskInstanceId===i?{...f,workflowStatus:l}:f);return{...c,tasks:u}})}}},af=e=>{var r;const t=Zu({queryFn:async()=>{const o=new Headers;o.append("Content-Type","application/json"),o.append("apiKey",ef);const s=await fetch("/public-api/playbook-details",{method:"POST",cache:"no-store",headers:o,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]}),n=sf(e,{quickComplete:(r=t.data)==null?void 0:r.quickComplete});return{playbook:t.data,isLoading:t.isLoading,error:t.error,actions:n}},Hn={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE"},lf={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},cf=e=>{const{taskStatus:t}=e;return{buttons:d.useMemo(()=>t===he.OPEN&&e.canStart?[Hn.START]:t===he.IN_PROGRESS?[Hn.PAUSE,Hn.COMPLETE]:t===he.COMPLETED?[]:[],[t])}},Ds="-",uf=e=>{const t=df(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Ds);return i[0]===""&&i.length!==1&&i.shift(),il(i,t)||ff(a)},getConflictingClassGroupIds:(a,i)=>{const l=n[a]||[];return i&&r[a]?[...l,...r[a]]:l}}},il=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?il(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ds);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ya=/^\[(.+)\]$/,ff=e=>{if(ya.test(e)){const t=ya.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},df=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Jo(n[o],r,o,t);return r},Jo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:va(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(hf(o)){Jo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Jo(a,va(t,s),n,r)})})},va=(e,t)=>{let n=e;return t.split(Ds).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hf=e=>e.isThemeGetter,pf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Zo="!",es=":",mf=es.length,gf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,c;for(let b=0;b<o.length;b++){let g=o[b];if(a===0&&i===0){if(g===es){s.push(o.slice(l,b)),l=b+mf;continue}if(g==="/"){c=b;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const u=s.length===0?o:o.substring(l),f=bf(u),p=f!==u,h=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+es,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},bf=e=>e.endsWith(Zo)?e.substring(0,e.length-1):e.startsWith(Zo)?e.substring(1):e,yf=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},vf=e=>({cache:pf(e.cacheSize),parseClassName:gf(e),sortModifiers:yf(e),...uf(e)}),wf=/\s+/,xf=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(wf);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let y=!!g,x=r(y?b.substring(0,g):b);if(!x){if(!y){l=u+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=u+(l.length>0?" "+l:l);continue}y=!1}const S=s(p).join(":"),w=h?S+Zo:S,C=w+x;if(a.includes(C))continue;a.push(C);const v=o(x,y);for(let L=0;L<v.length;++L){const q=v[L];a.push(w+q)}l=u+(l.length>0?" "+l:l)}return l};function Ef(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ll(t))&&(r&&(r+=" "),r+=n);return r}const ll=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ll(e[r]))&&(n&&(n+=" "),n+=t);return n};function Sf(e,...t){let n,r,o,s=a;function a(l){const c=t.reduce((u,f)=>f(u),e());return n=vf(c),r=n.cache.get,o=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const u=xf(l,n);return o(l,u),u}return function(){return s(Ef.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cf=/^\d+\/\d+$/,kf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Of=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Af=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>Cf.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),dt=e=>!!e&&Number.isInteger(Number(e)),uo=e=>e.endsWith("%")&&ee(e.slice(0,-1)),Ye=e=>kf.test(e),Rf=()=>!0,$f=e=>Tf.test(e)&&!Of.test(e),fl=()=>!1,Ff=e=>Pf.test(e),If=e=>Af.test(e),Mf=e=>!N(e)&&!_(e),Lf=e=>Rn(e,pl,fl),N=e=>cl.test(e),Lt=e=>Rn(e,ml,$f),fo=e=>Rn(e,zf,ee),wa=e=>Rn(e,dl,fl),Nf=e=>Rn(e,hl,If),dr=e=>Rn(e,gl,Ff),_=e=>ul.test(e),Mn=e=>$n(e,ml),_f=e=>$n(e,Hf),xa=e=>$n(e,dl),Df=e=>$n(e,pl),jf=e=>$n(e,hl),hr=e=>$n(e,gl,!0),Rn=(e,t,n)=>{const r=cl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$n=(e,t,n=!1)=>{const r=ul.exec(e);return r?r[1]?t(r[1]):n:!1},dl=e=>e==="position"||e==="percentage",hl=e=>e==="image"||e==="url",pl=e=>e==="length"||e==="size"||e==="bg-size",ml=e=>e==="length",zf=e=>e==="number",Hf=e=>e==="family-name",gl=e=>e==="shadow",Wf=()=>{const e=be("color"),t=be("font"),n=be("text"),r=be("font-weight"),o=be("tracking"),s=be("leading"),a=be("breakpoint"),i=be("container"),l=be("spacing"),c=be("radius"),u=be("shadow"),f=be("inset-shadow"),p=be("text-shadow"),h=be("drop-shadow"),b=be("blur"),g=be("perspective"),y=be("aspect"),x=be("ease"),S=be("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...C(),_,N],L=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],R=()=>[_,N,l],U=()=>[on,"full","auto",...R()],G=()=>[dt,"none","subgrid",_,N],le=()=>["auto",{span:["full",dt,_,N]},dt,_,N],ue=()=>[dt,"auto",_,N],oe=()=>["auto","min","max","fr",_,N],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...R()],ne=()=>[on,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],T=()=>[e,_,N],V=()=>[...C(),xa,wa,{position:[_,N]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",Df,Lf,{size:[_,N]}],W=()=>[uo,Mn,Lt],A=()=>["","none","full",c,_,N],D=()=>["",ee,Mn,Lt],Y=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[ee,uo,xa,wa],Q=()=>["","none",b,_,N],X=()=>["none",ee,_,N],Z=()=>["none",ee,_,N],ge=()=>[ee,_,N],$=()=>[on,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ye],breakpoint:[Ye],color:[Rf],container:[Ye],"drop-shadow":[Ye],ease:["in","out","in-out"],font:[Mf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ye],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ye],shadow:[Ye],spacing:["px",ee],text:[Ye],"text-shadow":[Ye],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",on,N,_,y]}],container:["container"],columns:[{columns:[ee,N,_,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[dt,"auto",_,N]}],basis:[{basis:[on,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,on,"auto","initial","none",N]}],grow:[{grow:["",ee,_,N]}],shrink:[{shrink:["",ee,_,N]}],order:[{order:[dt,"first","last","none",_,N]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[i,"screen",...ne()]}],"min-w":[{"min-w":[i,"screen","none",...ne()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...ne()]}],h:[{h:["screen",...ne()]}],"min-h":[{"min-h":["screen","none",...ne()]}],"max-h":[{"max-h":["screen",...ne()]}],"font-size":[{text:["base",n,Mn,Lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,fo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uo,N]}],"font-family":[{font:[_f,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_,N]}],"line-clamp":[{"line-clamp":[ee,"none",_,fo]}],leading:[{leading:[s,...R()]}],"list-image":[{"list-image":["none",_,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",_,Lt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ee,"auto",_,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dt,_,N],radial:["",_,N],conic:[dt,_,N]},jf,Nf]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,_,N]}],"outline-w":[{outline:["",ee,Mn,Lt]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,hr,dr]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",f,hr,dr]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ee,Lt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,hr,dr]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ee,_,N]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[_,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,N]}],filter:[{filter:["","none",_,N]}],blur:[{blur:Q()}],brightness:[{brightness:[ee,_,N]}],contrast:[{contrast:[ee,_,N]}],"drop-shadow":[{"drop-shadow":["","none",h,hr,dr]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ee,_,N]}],"hue-rotate":[{"hue-rotate":[ee,_,N]}],invert:[{invert:["",ee,_,N]}],saturate:[{saturate:[ee,_,N]}],sepia:[{sepia:["",ee,_,N]}],"backdrop-filter":[{"backdrop-filter":["","none",_,N]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[ee,_,N]}],"backdrop-contrast":[{"backdrop-contrast":[ee,_,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,_,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,_,N]}],"backdrop-invert":[{"backdrop-invert":["",ee,_,N]}],"backdrop-opacity":[{"backdrop-opacity":[ee,_,N]}],"backdrop-saturate":[{"backdrop-saturate":[ee,_,N]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,_,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",_,N]}],ease:[{ease:["linear","initial",x,_,N]}],delay:[{delay:[ee,_,N]}],animate:[{animate:["none",S,_,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,N]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[_,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,N]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,N]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ee,Mn,Lt,fo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},un=Sf(Wf);function bl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bl(e))&&(r&&(r+=" "),r+=t);return r}function On(...e){return un(Pr(e))}const Uf="whitespace-nowrap font-normal flex items-center justify-center",Bf="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",qf="disabled:opacity-15 disabled:pointer-events-none",yl=e=>e==="grayLight"||e==="warning",vl=(e,t)=>!t||t==="none"?"":e(),Vf=(e,t)=>vl(()=>{const n=e==="gray400"?"gray":e,r=yl(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),Gf=e=>vl(()=>{const t=yl(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),Kf=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",Yf=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",Qf=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,Xf=(e,t)=>({solid:Gf(e),link:Kf(e),linkHoverSolid:Yf(e,t),outline:Qf(e,t)}),Jf={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},Zf={none:"",default:"rounded",pill:"rounded-pill"},ed=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:s,type:a="button",rounded:i="default",style:l={},...c},u)=>{var S;const f=qf,p=/link/.test(o)?null:Vf(n,e),h=Bf,b=Jf[r],g=(S=Xf(n,e))==null?void 0:S[o],y=un(p,g),x=Zf[i];return O.jsx("button",{...c,style:{...l,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out"},type:a,ref:u,className:un(Uf,h,f,b,y,x,s,"cursor-pointer"),children:t})},Ar=d.forwardRef(ed),td=({buttons:e,onButtonClick:t})=>O.jsx("div",{className:"flex items-center justify-end",children:e.map(n=>O.jsx(Ar,{size:"smallCollapse",className:"ml-2",onClick:()=>{t(n)},children:lf[n]},n))}),nd={SEQUENTIAL:"Sequential"},rd={[he.IN_REVIEW]:"In Review"},od={[he.OPEN]:"bg-secondary-500",[he.IN_PROGRESS]:"bg-primary-600",[he.IN_REVIEW]:"bg-success-600",[he.COMPLETED]:"bg-success-600"},sd=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>O.jsx("div",{className:Pr("flex flex-col items-center justify-center",r?"bg-[#FFE600]":od[t],o&&"cursor-pointer"),onClick:s=>{s.stopPropagation(),o==null||o(s.shiftKey)},children:O.jsx("span",{className:Pr("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===nd.SEQUENTIAL?`STEP ${n}`:(rd[t]||t).toUpperCase()})}),ad={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},id={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},ld={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},cd={normal:"rounded",pill:"rounded-pill"},ud={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},wl=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:s,className:a,...i})=>{const l=d.useMemo(()=>ld[t]??"text-white",[t]),c=d.useMemo(()=>un(l,e==="outline"?id[t]:ad[t],cd[n],ud[r]),[l,e,t,r,n]);return O.jsx("div",{className:un("ui-badge flex items-center font-bold",c,a),style:i==null?void 0:i.style,"data-testid":"badge","data-category":e,"data-color":t,...i,children:O.jsx("p",{className:un("mx-1",o),children:s})})},fd={[he.OPEN]:"secondary",[he.IN_PROGRESS]:"primary",[he.IN_REVIEW]:"success",[he.COMPLETED]:"success"},dd=({status:e})=>O.jsx(wl,{category:"outline",color:fd[e],children:e});/*!
1
+ "use strict";var la=e=>{throw TypeError(e)};var lo=(e,t,n)=>t.has(e)||la("Cannot "+n);var m=(e,t,n)=>(lo(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(lo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(lo(e,t,"access private method"),n);var ur=(e,t,n,r)=>({set _(o){M(e,t,o,n)},get _(){return m(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),d=require("react"),Vi=require("react-dom");function Gi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=Gi(d),wu=Gi(Vi);var An=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qt=typeof window>"u"||"Deno"in globalThis;function ke(){}function xu(e,t){return typeof e=="function"?e(t):e}function Do(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ki(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cn(e,t){return typeof e=="function"?e(t):e}function De(e,t){return typeof e=="function"?e(t):e}function ca(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a){if(r){if(t.queryHash!==Ms(a,t.options))return!1}else if(!Kn(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||o&&o!==t.state.fetchStatus||s&&!s(t))}function ua(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Xt(t.options.mutationKey)!==Xt(s))return!1}else if(!Kn(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ms(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xt)(e)}function Xt(e){return JSON.stringify(e,(t,n)=>zo(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Kn(e[n],t[n])):!1}function jo(e,t){if(e===t)return e;const n=fa(e)&&fa(t);if(n||zo(e)&&zo(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),a=s.length,i=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:s[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(i[u]=void 0,l++):(i[u]=jo(e[u],t[u]),i[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:i}return t}function kr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zo(e){if(!da(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!da(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function da(e){return Object.prototype.toString.call(e)==="[object Object]"}function Eu(e){return new Promise(t=>{setTimeout(t,e)})}function Ho(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return jo(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return jo(e,t)}return t}function Su(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Cu(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tr=Symbol();function Yi(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Tr&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Tr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qi(e,t){return typeof e=="function"?e(...t):!!e}var Ht,gt,pn,Ni,ku=(Ni=class extends An{constructor(){super();H(this,Ht);H(this,gt);H(this,pn);M(this,pn,t=>{if(!Qt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){m(this,gt)||this.setEventListener(m(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=m(this,gt))==null||t.call(this),M(this,gt,void 0))}setEventListener(t){var n;M(this,pn,t),(n=m(this,gt))==null||n.call(this),M(this,gt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){m(this,Ht)!==t&&(M(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof m(this,Ht)=="boolean"?m(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,gt=new WeakMap,pn=new WeakMap,Ni),Ls=new ku,mn,bt,gn,_i,Tu=(_i=class extends An{constructor(){super();H(this,mn,!0);H(this,bt);H(this,gn);M(this,gn,t=>{if(!Qt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){m(this,bt)||this.setEventListener(m(this,gn))}onUnsubscribe(){var t;this.hasListeners()||((t=m(this,bt))==null||t.call(this),M(this,bt,void 0))}setEventListener(t){var n;M(this,gn,t),(n=m(this,bt))==null||n.call(this),M(this,bt,t(this.setOnline.bind(this)))}setOnline(t){m(this,mn)!==t&&(M(this,mn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return m(this,mn)}},mn=new WeakMap,bt=new WeakMap,gn=new WeakMap,_i),Or=new Tu;function Wo(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Ou(e){return Math.min(1e3*2**e,3e4)}function Xi(e){return(e??"online")==="online"?Or.isOnline():!0}var Ji=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function co(e){return e instanceof Ji}function Zi(e){let t=!1,n=0,r=!1,o;const s=Wo(),a=g=>{var y;r||(p(new Ji(g)),(y=e.abort)==null||y.call(e))},i=()=>{t=!0},l=()=>{t=!1},c=()=>Ls.isFocused()&&(e.networkMode==="always"||Or.isOnline())&&e.canRun(),u=()=>Xi(e.networkMode)&&e.canRun(),f=g=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,g),o==null||o(),s.resolve(g))},p=g=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,g),o==null||o(),s.reject(g))},h=()=>new Promise(g=>{var y;o=x=>{(r||c())&&g(x)},(y=e.onPause)==null||y.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const y=n===0?e.initialPromise:void 0;try{g=y??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(f).catch(x=>{var L;if(r)return;const S=e.retry??(Qt?0:3),w=e.retryDelay??Ou,C=typeof w=="function"?w(n,x):w,v=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,x);if(t||!v){p(x);return}n++,(L=e.onFail)==null||L.call(e,n,x),Eu(C).then(()=>c()?void 0:h()).then(()=>{t?p(x):b()})})};return{promise:s,cancel:a,continue:()=>(o==null||o(),s),cancelRetry:i,continueRetry:l,canStart:u,start:()=>(u()?b():h().then(b),s)}}var Pu=e=>setTimeout(e,0);function Au(){let e=[],t=0,n=i=>{i()},r=i=>{i()},o=Pu;const s=i=>{t?e.push(i):o(()=>{n(i)})},a=()=>{const i=e;e=[],i.length&&o(()=>{r(()=>{i.forEach(l=>{n(l)})})})};return{batch:i=>{let l;t++;try{l=i()}finally{t--,t||a()}return l},batchCalls:i=>(...l)=>{s(()=>{i(...l)})},schedule:s,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{o=i}}}var ye=Au(),Wt,Di,el=(Di=class{constructor(){H(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Do(this.gcTime)&&M(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qt?1/0:5*60*1e3))}clearGcTimeout(){m(this,Wt)&&(clearTimeout(m(this,Wt)),M(this,Wt,void 0))}},Wt=new WeakMap,Di),bn,yn,Ie,Ut,xe,Zn,Bt,Ne,Qe,ji,Ru=(ji=class extends el{constructor(t){super();H(this,Ne);H(this,bn);H(this,yn);H(this,Ie);H(this,Ut);H(this,xe);H(this,Zn);H(this,Bt);M(this,Bt,!1),M(this,Zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Ut,t.client),M(this,Ie,m(this,Ut).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,bn,$u(this.options)),this.state=t.state??m(this,bn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=m(this,xe))==null?void 0:t.promise}setOptions(t){this.options={...m(this,Zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&m(this,Ie).remove(this)}setData(t,n){const r=Ho(this.state.data,t,this.options);return J(this,Ne,Qe).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,Ne,Qe).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=m(this,xe))==null?void 0:r.promise;return(o=m(this,xe))==null||o.cancel(t),n?n.then(ke).catch(ke):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(m(this,bn))}isActive(){return this.observers.some(t=>De(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ki(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=m(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=m(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),m(this,Ie).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(m(this,xe)&&(m(this,Bt)?m(this,xe).cancel({revert:!0}):m(this,xe).cancelRetry()),this.scheduleGc()),m(this,Ie).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,Ne,Qe).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(m(this,xe))return m(this,xe).continueRetry(),m(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(M(this,Bt,!0),r.signal)})},s=()=>{const f=Yi(this.options,n),p={client:m(this,Ut),queryKey:this.queryKey,meta:this.meta};return o(p),M(this,Bt,!1),this.options.persister?this.options.persister(f,p,this):f(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:m(this,Ut),state:this.state,fetchFn:s};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),M(this,yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&J(this,Ne,Qe).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const i=f=>{var p,h,b,g;co(f)&&f.silent||J(this,Ne,Qe).call(this,{type:"error",error:f}),co(f)||((h=(p=m(this,Ie).config).onError)==null||h.call(p,f,this),(g=(b=m(this,Ie).config).onSettled)==null||g.call(b,this.state.data,f,this)),this.scheduleGc()};return M(this,xe,Zi({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,b,g;if(f===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){i(y);return}(h=(p=m(this,Ie).config).onSuccess)==null||h.call(p,f,this),(g=(b=m(this,Ie).config).onSettled)==null||g.call(b,f,this.state.error,this),this.scheduleGc()},onError:i,onFail:(f,p)=>{J(this,Ne,Qe).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{J(this,Ne,Qe).call(this,{type:"pause"})},onContinue:()=>{J(this,Ne,Qe).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),m(this,xe).start()}},bn=new WeakMap,yn=new WeakMap,Ie=new WeakMap,Ut=new WeakMap,xe=new WeakMap,Zn=new WeakMap,Bt=new WeakMap,Ne=new WeakSet,Qe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...tl(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return co(o)&&o.revert&&m(this,yn)?{...m(this,yn),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),m(this,Ie).notify({query:this,type:"updated",action:t})})},ji);function tl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xi(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $u(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ue,zi,Fu=(zi=class extends An{constructor(t={}){super();H(this,Ue);this.config=t,M(this,Ue,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ms(o,n);let a=this.get(s);return a||(a=new Ru({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){m(this,Ue).has(t.queryHash)||(m(this,Ue).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=m(this,Ue).get(t.queryHash);n&&(t.destroy(),n===t&&m(this,Ue).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return m(this,Ue).get(t)}getAll(){return[...m(this,Ue).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ca(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ca(t,r)):n}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ue=new WeakMap,zi),Be,Se,qt,qe,pt,Hi,Iu=(Hi=class extends el{constructor(t){super();H(this,qe);H(this,Be);H(this,Se);H(this,qt);this.mutationId=t.mutationId,M(this,Se,t.mutationCache),M(this,Be,[]),this.state=t.state||nl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){m(this,Be).includes(t)||(m(this,Be).push(t),this.clearGcTimeout(),m(this,Se).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Be,m(this,Be).filter(n=>n!==t)),this.scheduleGc(),m(this,Se).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){m(this,Be).length||(this.state.status==="pending"?this.scheduleGc():m(this,Se).remove(this))}continue(){var t;return((t=m(this,qt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,i,l,c,u,f,p,h,b,g,y,x,S,w,C,v,L,q,R;const n=()=>{J(this,qe,pt).call(this,{type:"continue"})};M(this,qt,Zi({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(U,G)=>{J(this,qe,pt).call(this,{type:"failed",failureCount:U,error:G})},onPause:()=>{J(this,qe,pt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>m(this,Se).canRun(this)}));const r=this.state.status==="pending",o=!m(this,qt).canStart();try{if(r)n();else{J(this,qe,pt).call(this,{type:"pending",variables:t,isPaused:o}),await((a=(s=m(this,Se).config).onMutate)==null?void 0:a.call(s,t,this));const G=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));G!==this.state.context&&J(this,qe,pt).call(this,{type:"pending",context:G,variables:t,isPaused:o})}const U=await m(this,qt).start();return await((u=(c=m(this,Se).config).onSuccess)==null?void 0:u.call(c,U,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,U,t,this.state.context)),await((b=(h=m(this,Se).config).onSettled)==null?void 0:b.call(h,U,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,U,null,t,this.state.context)),J(this,qe,pt).call(this,{type:"success",data:U}),U}catch(U){try{throw await((S=(x=m(this,Se).config).onError)==null?void 0:S.call(x,U,t,this.state.context,this)),await((C=(w=this.options).onError)==null?void 0:C.call(w,U,t,this.state.context)),await((L=(v=m(this,Se).config).onSettled)==null?void 0:L.call(v,void 0,U,this.state.variables,this.state.context,this)),await((R=(q=this.options).onSettled)==null?void 0:R.call(q,void 0,U,t,this.state.context)),U}finally{J(this,qe,pt).call(this,{type:"error",error:U})}}finally{m(this,Se).runNext(this)}}},Be=new WeakMap,Se=new WeakMap,qt=new WeakMap,qe=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ye.batch(()=>{m(this,Be).forEach(r=>{r.onMutationUpdate(t)}),m(this,Se).notify({mutation:this,type:"updated",action:t})})},Hi);function nl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xe,_e,er,Wi,Mu=(Wi=class extends An{constructor(t={}){super();H(this,Xe);H(this,_e);H(this,er);this.config=t,M(this,Xe,new Set),M(this,_e,new Map),M(this,er,0)}build(t,n,r){const o=new Iu({mutationCache:this,mutationId:++ur(this,er)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){m(this,Xe).add(t);const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n);r?r.push(t):m(this,_e).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(m(this,Xe).delete(t)){const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&m(this,_e).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fr(t);if(typeof n=="string"){const r=m(this,_e).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fr(t);if(typeof n=="string"){const o=(r=m(this,_e).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{m(this,Xe).forEach(t=>{this.notify({type:"removed",mutation:t})}),m(this,Xe).clear(),m(this,_e).clear()})}getAll(){return Array.from(m(this,Xe))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ua(n,r))}findAll(t={}){return this.getAll().filter(n=>ua(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(ke))))}},Xe=new WeakMap,_e=new WeakMap,er=new WeakMap,Wi);function fr(e){var t;return(t=e.options.scope)==null?void 0:t.id}function ha(e){return{onFetch:(t,n)=>{var u,f,p,h,b;const r=t.options,o=(p=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],a=((b=t.state.data)==null?void 0:b.pageParams)||[];let i={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},x=Yi(t.options,t.fetchOptions),S=async(w,C,v)=>{if(g)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const L={client:t.client,queryKey:t.queryKey,pageParam:C,direction:v?"backward":"forward",meta:t.options.meta};y(L);const q=await x(L),{maxPages:R}=t.options,U=v?Cu:Su;return{pages:U(w.pages,q,R),pageParams:U(w.pageParams,C,R)}};if(o&&s.length){const w=o==="backward",C=w?Lu:pa,v={pages:s,pageParams:a},L=C(r,v);i=await S(v,L,w)}else{const w=e??s.length;do{const C=l===0?a[0]??r.initialPageParam:pa(r,i);if(l>0&&C==null)break;i=await S(i,C),l++}while(l<w)}return i};t.options.persister?t.fetchFn=()=>{var g,y;return(y=(g=t.options).persister)==null?void 0:y.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lu(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var pe,yt,vt,vn,wn,wt,xn,En,Ui,Nu=(Ui=class{constructor(e={}){H(this,pe);H(this,yt);H(this,vt);H(this,vn);H(this,wn);H(this,wt);H(this,xn);H(this,En);M(this,pe,e.queryCache||new Fu),M(this,yt,e.mutationCache||new Mu),M(this,vt,e.defaultOptions||{}),M(this,vn,new Map),M(this,wn,new Map),M(this,wt,0)}mount(){ur(this,wt)._++,m(this,wt)===1&&(M(this,xn,Ls.subscribe(async e=>{e&&(await this.resumePausedMutations(),m(this,pe).onFocus())})),M(this,En,Or.subscribe(async e=>{e&&(await this.resumePausedMutations(),m(this,pe).onOnline())})))}unmount(){var e,t;ur(this,wt)._--,m(this,wt)===0&&((e=m(this,xn))==null||e.call(this),M(this,xn,void 0),(t=m(this,En))==null||t.call(this),M(this,En,void 0))}isFetching(e){return m(this,pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return m(this,yt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=m(this,pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=m(this,pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return m(this,pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=m(this,pe).get(r.queryHash),s=o==null?void 0:o.state.data,a=xu(t,s);if(a!==void 0)return m(this,pe).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>m(this,pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=m(this,pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=m(this,pe);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=m(this,pe);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>m(this,pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ke).catch(ke)}invalidateQueries(e,t={}){return ye.batch(()=>(m(this,pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ye.batch(()=>m(this,pe).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ke)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ke)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=m(this,pe).build(this,t);return n.isStaleByTime(cn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ke).catch(ke)}fetchInfiniteQuery(e){return e.behavior=ha(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ke).catch(ke)}ensureInfiniteQueryData(e){return e.behavior=ha(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Or.isOnline()?m(this,yt).resumePausedMutations():Promise.resolve()}getQueryCache(){return m(this,pe)}getMutationCache(){return m(this,yt)}getDefaultOptions(){return m(this,vt)}setDefaultOptions(e){M(this,vt,e)}setQueryDefaults(e,t){m(this,vn).set(Xt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...m(this,vn).values()],n={};return t.forEach(r=>{Kn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){m(this,wn).set(Xt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...m(this,wn).values()],n={};return t.forEach(r=>{Kn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...m(this,vt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ms(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Tr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...m(this,vt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){m(this,pe).clear(),m(this,yt).clear()}},pe=new WeakMap,yt=new WeakMap,vt=new WeakMap,vn=new WeakMap,wn=new WeakMap,wt=new WeakMap,xn=new WeakMap,En=new WeakMap,Ui),Oe,re,tr,Ce,Vt,Sn,xt,Et,nr,Cn,kn,Gt,Kt,St,Tn,ie,Nn,Uo,Bo,qo,Vo,Go,Ko,Yo,rl,Bi,_u=(Bi=class extends An{constructor(t,n){super();H(this,ie);H(this,Oe);H(this,re);H(this,tr);H(this,Ce);H(this,Vt);H(this,Sn);H(this,xt);H(this,Et);H(this,nr);H(this,Cn);H(this,kn);H(this,Gt);H(this,Kt);H(this,St);H(this,Tn,new Set);this.options=n,M(this,Oe,t),M(this,Et,null),M(this,xt,Wo()),this.options.experimental_prefetchInRender||m(this,xt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(m(this,re).addObserver(this),ma(m(this,re),this.options)?J(this,ie,Nn).call(this):this.updateResult(),J(this,ie,Vo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qo(m(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qo(m(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,ie,Go).call(this),J(this,ie,Ko).call(this),m(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=m(this,re);if(this.options=m(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof De(this.options.enabled,m(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,ie,Yo).call(this),m(this,re).setOptions(this.options),n._defaulted&&!kr(this.options,n)&&m(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:m(this,re),observer:this});const o=this.hasListeners();o&&ga(m(this,re),r,this.options,n)&&J(this,ie,Nn).call(this),this.updateResult(),o&&(m(this,re)!==r||De(this.options.enabled,m(this,re))!==De(n.enabled,m(this,re))||cn(this.options.staleTime,m(this,re))!==cn(n.staleTime,m(this,re)))&&J(this,ie,Uo).call(this);const s=J(this,ie,Bo).call(this);o&&(m(this,re)!==r||De(this.options.enabled,m(this,re))!==De(n.enabled,m(this,re))||s!==m(this,St))&&J(this,ie,qo).call(this,s)}getOptimisticResult(t){const n=m(this,Oe).getQueryCache().build(m(this,Oe),t),r=this.createResult(n,t);return ju(this,r)&&(M(this,Ce,r),M(this,Sn,this.options),M(this,Vt,m(this,re).state)),r}getCurrentResult(){return m(this,Ce)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){m(this,Tn).add(t)}getCurrentQuery(){return m(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=m(this,Oe).defaultQueryOptions(t),r=m(this,Oe).getQueryCache().build(m(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,ie,Nn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),m(this,Ce)))}createResult(t,n){var U;const r=m(this,re),o=this.options,s=m(this,Ce),a=m(this,Vt),i=m(this,Sn),c=t!==r?t.state:m(this,tr),{state:u}=t;let f={...u},p=!1,h;if(n._optimisticResults){const G=this.hasListeners(),le=!G&&ma(t,n),ue=G&&ga(t,r,n,o);(le||ue)&&(f={...f,...tl(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:y}=f;h=f.data;let x=!1;if(n.placeholderData!==void 0&&h===void 0&&y==="pending"){let G;s!=null&&s.isPlaceholderData&&n.placeholderData===(i==null?void 0:i.placeholderData)?(G=s.data,x=!0):G=typeof n.placeholderData=="function"?n.placeholderData((U=m(this,kn))==null?void 0:U.state.data,m(this,kn)):n.placeholderData,G!==void 0&&(y="success",h=Ho(s==null?void 0:s.data,G,n),p=!0)}if(n.select&&h!==void 0&&!x)if(s&&h===(a==null?void 0:a.data)&&n.select===m(this,nr))h=m(this,Cn);else try{M(this,nr,n.select),h=n.select(h),h=Ho(s==null?void 0:s.data,h,n),M(this,Cn,h),M(this,Et,null)}catch(G){M(this,Et,G)}m(this,Et)&&(b=m(this,Et),h=m(this,Cn),g=Date.now(),y="error");const S=f.fetchStatus==="fetching",w=y==="pending",C=y==="error",v=w&&S,L=h!==void 0,R={status:y,fetchStatus:f.fetchStatus,isPending:w,isSuccess:y==="success",isError:C,isInitialLoading:v,isLoading:v,data:h,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:C&&!L,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&L,isStale:Ns(t,n),refetch:this.refetch,promise:m(this,xt)};if(this.options.experimental_prefetchInRender){const G=oe=>{R.status==="error"?oe.reject(R.error):R.data!==void 0&&oe.resolve(R.data)},le=()=>{const oe=M(this,xt,R.promise=Wo());G(oe)},ue=m(this,xt);switch(ue.status){case"pending":t.queryHash===r.queryHash&&G(ue);break;case"fulfilled":(R.status==="error"||R.data!==ue.value)&&le();break;case"rejected":(R.status!=="error"||R.error!==ue.reason)&&le();break}}return R}updateResult(){const t=m(this,Ce),n=this.createResult(m(this,re),this.options);if(M(this,Vt,m(this,re).state),M(this,Sn,this.options),m(this,Vt).data!==void 0&&M(this,kn,m(this,re)),kr(n,t))return;M(this,Ce,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!m(this,Tn).size)return!0;const a=new Set(s??m(this,Tn));return this.options.throwOnError&&a.add("error"),Object.keys(m(this,Ce)).some(i=>{const l=i;return m(this,Ce)[l]!==t[l]&&a.has(l)})};J(this,ie,rl).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,ie,Vo).call(this)}},Oe=new WeakMap,re=new WeakMap,tr=new WeakMap,Ce=new WeakMap,Vt=new WeakMap,Sn=new WeakMap,xt=new WeakMap,Et=new WeakMap,nr=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,St=new WeakMap,Tn=new WeakMap,ie=new WeakSet,Nn=function(t){J(this,ie,Yo).call(this);let n=m(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ke)),n},Uo=function(){J(this,ie,Go).call(this);const t=cn(this.options.staleTime,m(this,re));if(Qt||m(this,Ce).isStale||!Do(t))return;const r=Ki(m(this,Ce).dataUpdatedAt,t)+1;M(this,Gt,setTimeout(()=>{m(this,Ce).isStale||this.updateResult()},r))},Bo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(m(this,re)):this.options.refetchInterval)??!1},qo=function(t){J(this,ie,Ko).call(this),M(this,St,t),!(Qt||De(this.options.enabled,m(this,re))===!1||!Do(m(this,St))||m(this,St)===0)&&M(this,Kt,setInterval(()=>{(this.options.refetchIntervalInBackground||Ls.isFocused())&&J(this,ie,Nn).call(this)},m(this,St)))},Vo=function(){J(this,ie,Uo).call(this),J(this,ie,qo).call(this,J(this,ie,Bo).call(this))},Go=function(){m(this,Gt)&&(clearTimeout(m(this,Gt)),M(this,Gt,void 0))},Ko=function(){m(this,Kt)&&(clearInterval(m(this,Kt)),M(this,Kt,void 0))},Yo=function(){const t=m(this,Oe).getQueryCache().build(m(this,Oe),this.options);if(t===m(this,re))return;const n=m(this,re);M(this,re,t),M(this,tr,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},rl=function(t){ye.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(m(this,Ce))}),m(this,Oe).getQueryCache().notify({query:m(this,re),type:"observerResultsUpdated"})})},Bi);function Du(e,t){return De(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ma(e,t){return Du(e,t)||e.state.data!==void 0&&Qo(e,t,t.refetchOnMount)}function Qo(e,t,n){if(De(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ns(e,t)}return!1}function ga(e,t,n,r){return(e!==t||De(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ns(e,n)}function Ns(e,t){return De(t.enabled,e)!==!1&&e.isStaleByTime(cn(t.staleTime,e))}function ju(e,t){return!kr(e.getCurrentResult(),t)}var Ct,kt,Pe,Je,rt,xr,Xo,qi,zu=(qi=class extends An{constructor(n,r){super();H(this,rt);H(this,Ct);H(this,kt);H(this,Pe);H(this,Je);M(this,Ct,n),this.setOptions(r),this.bindMethods(),J(this,rt,xr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=m(this,Ct).defaultMutationOptions(n),kr(this.options,r)||m(this,Ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:m(this,Pe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Xt(r.mutationKey)!==Xt(this.options.mutationKey)?this.reset():((o=m(this,Pe))==null?void 0:o.state.status)==="pending"&&m(this,Pe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=m(this,Pe))==null||n.removeObserver(this)}onMutationUpdate(n){J(this,rt,xr).call(this),J(this,rt,Xo).call(this,n)}getCurrentResult(){return m(this,kt)}reset(){var n;(n=m(this,Pe))==null||n.removeObserver(this),M(this,Pe,void 0),J(this,rt,xr).call(this),J(this,rt,Xo).call(this)}mutate(n,r){var o;return M(this,Je,r),(o=m(this,Pe))==null||o.removeObserver(this),M(this,Pe,m(this,Ct).getMutationCache().build(m(this,Ct),this.options)),m(this,Pe).addObserver(this),m(this,Pe).execute(n)}},Ct=new WeakMap,kt=new WeakMap,Pe=new WeakMap,Je=new WeakMap,rt=new WeakSet,xr=function(){var r;const n=((r=m(this,Pe))==null?void 0:r.state)??nl();M(this,kt,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Xo=function(n){ye.batch(()=>{var r,o,s,a,i,l,c,u;if(m(this,Je)&&this.hasListeners()){const f=m(this,kt).variables,p=m(this,kt).context;(n==null?void 0:n.type)==="success"?((o=(r=m(this,Je)).onSuccess)==null||o.call(r,n.data,f,p),(a=(s=m(this,Je)).onSettled)==null||a.call(s,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(i=m(this,Je)).onError)==null||l.call(i,n.error,f,p),(u=(c=m(this,Je)).onSettled)==null||u.call(c,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(m(this,kt))})})},qi),ol=F.createContext(void 0),_s=e=>{const t=F.useContext(ol);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hu=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),O.jsx(ol.Provider,{value:e,children:t})),sl=F.createContext(!1),Wu=()=>F.useContext(sl);sl.Provider;function Uu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Bu=F.createContext(Uu()),qu=()=>F.useContext(Bu),Vu=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Gu=e=>{F.useEffect(()=>{e.clearReset()},[e])},Ku=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Qi(n,[e.error,r])),Yu=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Qu=(e,t)=>e.isLoading&&e.isFetching&&!t,Xu=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ba=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ju(e,t,n){var f,p,h,b,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=_s(),o=Wu(),s=qu(),a=r.defaultQueryOptions(e);(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=o?"isRestoring":"optimistic",Yu(a),Vu(a,s),Gu(s);const i=!r.getQueryCache().get(a.queryHash),[l]=F.useState(()=>new t(r,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(y=>{const x=u?l.subscribe(ye.batchCalls(y)):ke;return l.updateResult(),x},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),F.useEffect(()=>{l.setOptions(a)},[a,l]),Xu(a,c))throw ba(a,l,s);if(Ku({result:c,errorResetBoundary:s,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if((b=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||b.call(h,a,c),a.experimental_prefetchInRender&&!Qt&&Qu(c,o)){const y=i?ba(a,l,s):(g=r.getQueryCache().get(a.queryHash))==null?void 0:g.promise;y==null||y.catch(ke).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function Zu(e,t){return Ju(e,_u)}function al(e,t){const n=_s(),[r]=F.useState(()=>new zu(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);const o=F.useSyncExternalStore(F.useCallback(a=>r.subscribe(ye.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=F.useCallback((a,i)=>{r.mutate(a,i).catch(ke)},[r]);if(o.error&&Qi(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const ef="3QM9PlH0BuyKaVErlBWxVJU5v0vFlMJv",he={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},tf=async e=>{const t={taskInstanceId:e},n=new Headers;return n.append("Content-Type","application/json"),await(await fetch("/public-api/playbook-task-complete",{method:"POST",headers:n,body:JSON.stringify(t)})).json()},nf=()=>{const e=al({mutationFn:async n=>tf(n)});return{completeTask:async n=>e.mutateAsync(n,{onSuccess:()=>{console.log("Task completed successfully")},onError:r=>{console.error("Error completing task:",r)}}),...e}},rf=async e=>{const t={taskInstanceId:e},n=new Headers;n.append("Content-Type","application/json");const o=await(await fetch("/public-api/playbook-task-start",{method:"POST",headers:n,body:JSON.stringify(t)})).json();return console.log({data:o}),o},of=()=>{const e=al({mutationFn:async n=>{const r=await rf(n);return console.log(r),r}});return{startTask:n=>e.mutateAsync(n,{onSuccess:()=>{console.log("Task started successfully")},onError:r=>{console.error("Error starting task:",r)}}),...e}},sf=(e,t)=>{const n=_s(),{completeTask:r}=nf(),{startTask:o}=of();return{completeTask:async(i,l)=>{const{status:c}=await r(i.toString());c&&n.setQueryData(["playbook",+e],u=>{if(!u)return u;const f=u.tasks.map(p=>p.sequenceOrder===l+1&&t.quickComplete?{...p,workflowStatus:he.IN_PROGRESS}:p.taskInstanceId===i?{...p,workflowStatus:c}:p);return{...u,tasks:f}})},startTask:async i=>{const{status:l}=await o(i.toString());l&&n.setQueryData(["playbook",+e],c=>{if(!c)return c;const u=c.tasks.map(f=>f.taskInstanceId===i?{...f,workflowStatus:l}:f);return{...c,tasks:u}})}}},af=e=>{var r;const t=Zu({queryFn:async()=>{const o=new Headers;o.append("Content-Type","application/json"),o.append("apiKey",ef);const s=await fetch("/public-api/playbook-details",{method:"POST",cache:"no-store",headers:o,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!s.ok)throw new Error("Network response was not ok");const a=await s.json();if(a.error)throw new Error(a.error);return a},queryKey:["playbook",+e]}),n=sf(e,{quickComplete:(r=t.data)==null?void 0:r.quickComplete});return{playbook:t.data,isLoading:t.isLoading,error:t.error,actions:n}},Hn={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE"},lf={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},cf=e=>{const{taskStatus:t}=e;return{buttons:d.useMemo(()=>t===he.OPEN&&e.canStart?[Hn.START]:t===he.IN_PROGRESS?[Hn.PAUSE,Hn.COMPLETE]:t===he.COMPLETED?[]:[],[t])}},Ds="-",uf=e=>{const t=df(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Ds);return i[0]===""&&i.length!==1&&i.shift(),il(i,t)||ff(a)},getConflictingClassGroupIds:(a,i)=>{const l=n[a]||[];return i&&r[a]?[...l,...r[a]]:l}}},il=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?il(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ds);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ya=/^\[(.+)\]$/,ff=e=>{if(ya.test(e)){const t=ya.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},df=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Jo(n[o],r,o,t);return r},Jo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:va(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(hf(o)){Jo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Jo(a,va(t,s),n,r)})})},va=(e,t)=>{let n=e;return t.split(Ds).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hf=e=>e.isThemeGetter,pf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Zo="!",es=":",mf=es.length,gf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,c;for(let b=0;b<o.length;b++){let g=o[b];if(a===0&&i===0){if(g===es){s.push(o.slice(l,b)),l=b+mf;continue}if(g==="/"){c=b;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const u=s.length===0?o:o.substring(l),f=bf(u),p=f!==u,h=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+es,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},bf=e=>e.endsWith(Zo)?e.substring(0,e.length-1):e.startsWith(Zo)?e.substring(1):e,yf=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},vf=e=>({cache:pf(e.cacheSize),parseClassName:gf(e),sortModifiers:yf(e),...uf(e)}),wf=/\s+/,xf=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(wf);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let y=!!g,x=r(y?b.substring(0,g):b);if(!x){if(!y){l=u+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=u+(l.length>0?" "+l:l);continue}y=!1}const S=s(p).join(":"),w=h?S+Zo:S,C=w+x;if(a.includes(C))continue;a.push(C);const v=o(x,y);for(let L=0;L<v.length;++L){const q=v[L];a.push(w+q)}l=u+(l.length>0?" "+l:l)}return l};function Ef(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ll(t))&&(r&&(r+=" "),r+=n);return r}const ll=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ll(e[r]))&&(n&&(n+=" "),n+=t);return n};function Sf(e,...t){let n,r,o,s=a;function a(l){const c=t.reduce((u,f)=>f(u),e());return n=vf(c),r=n.cache.get,o=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const u=xf(l,n);return o(l,u),u}return function(){return s(Ef.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cf=/^\d+\/\d+$/,kf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Of=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Af=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>Cf.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),dt=e=>!!e&&Number.isInteger(Number(e)),uo=e=>e.endsWith("%")&&ee(e.slice(0,-1)),Ye=e=>kf.test(e),Rf=()=>!0,$f=e=>Tf.test(e)&&!Of.test(e),fl=()=>!1,Ff=e=>Pf.test(e),If=e=>Af.test(e),Mf=e=>!N(e)&&!_(e),Lf=e=>Rn(e,pl,fl),N=e=>cl.test(e),Lt=e=>Rn(e,ml,$f),fo=e=>Rn(e,zf,ee),wa=e=>Rn(e,dl,fl),Nf=e=>Rn(e,hl,If),dr=e=>Rn(e,gl,Ff),_=e=>ul.test(e),Mn=e=>$n(e,ml),_f=e=>$n(e,Hf),xa=e=>$n(e,dl),Df=e=>$n(e,pl),jf=e=>$n(e,hl),hr=e=>$n(e,gl,!0),Rn=(e,t,n)=>{const r=cl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$n=(e,t,n=!1)=>{const r=ul.exec(e);return r?r[1]?t(r[1]):n:!1},dl=e=>e==="position"||e==="percentage",hl=e=>e==="image"||e==="url",pl=e=>e==="length"||e==="size"||e==="bg-size",ml=e=>e==="length",zf=e=>e==="number",Hf=e=>e==="family-name",gl=e=>e==="shadow",Wf=()=>{const e=be("color"),t=be("font"),n=be("text"),r=be("font-weight"),o=be("tracking"),s=be("leading"),a=be("breakpoint"),i=be("container"),l=be("spacing"),c=be("radius"),u=be("shadow"),f=be("inset-shadow"),p=be("text-shadow"),h=be("drop-shadow"),b=be("blur"),g=be("perspective"),y=be("aspect"),x=be("ease"),S=be("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...C(),_,N],L=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],R=()=>[_,N,l],U=()=>[on,"full","auto",...R()],G=()=>[dt,"none","subgrid",_,N],le=()=>["auto",{span:["full",dt,_,N]},dt,_,N],ue=()=>[dt,"auto",_,N],oe=()=>["auto","min","max","fr",_,N],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...R()],ne=()=>[on,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],T=()=>[e,_,N],V=()=>[...C(),xa,wa,{position:[_,N]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",Df,Lf,{size:[_,N]}],W=()=>[uo,Mn,Lt],A=()=>["","none","full",c,_,N],D=()=>["",ee,Mn,Lt],Y=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[ee,uo,xa,wa],Q=()=>["","none",b,_,N],X=()=>["none",ee,_,N],Z=()=>["none",ee,_,N],ge=()=>[ee,_,N],$=()=>[on,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ye],breakpoint:[Ye],color:[Rf],container:[Ye],"drop-shadow":[Ye],ease:["in","out","in-out"],font:[Mf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ye],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ye],shadow:[Ye],spacing:["px",ee],text:[Ye],"text-shadow":[Ye],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",on,N,_,y]}],container:["container"],columns:[{columns:[ee,N,_,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[dt,"auto",_,N]}],basis:[{basis:[on,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,on,"auto","initial","none",N]}],grow:[{grow:["",ee,_,N]}],shrink:[{shrink:["",ee,_,N]}],order:[{order:[dt,"first","last","none",_,N]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[i,"screen",...ne()]}],"min-w":[{"min-w":[i,"screen","none",...ne()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...ne()]}],h:[{h:["screen",...ne()]}],"min-h":[{"min-h":["screen","none",...ne()]}],"max-h":[{"max-h":["screen",...ne()]}],"font-size":[{text:["base",n,Mn,Lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,fo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uo,N]}],"font-family":[{font:[_f,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_,N]}],"line-clamp":[{"line-clamp":[ee,"none",_,fo]}],leading:[{leading:[s,...R()]}],"list-image":[{"list-image":["none",_,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",_,Lt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ee,"auto",_,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dt,_,N],radial:["",_,N],conic:[dt,_,N]},jf,Nf]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,_,N]}],"outline-w":[{outline:["",ee,Mn,Lt]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,hr,dr]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",f,hr,dr]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ee,Lt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,hr,dr]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ee,_,N]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[_,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,N]}],filter:[{filter:["","none",_,N]}],blur:[{blur:Q()}],brightness:[{brightness:[ee,_,N]}],contrast:[{contrast:[ee,_,N]}],"drop-shadow":[{"drop-shadow":["","none",h,hr,dr]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ee,_,N]}],"hue-rotate":[{"hue-rotate":[ee,_,N]}],invert:[{invert:["",ee,_,N]}],saturate:[{saturate:[ee,_,N]}],sepia:[{sepia:["",ee,_,N]}],"backdrop-filter":[{"backdrop-filter":["","none",_,N]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[ee,_,N]}],"backdrop-contrast":[{"backdrop-contrast":[ee,_,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,_,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,_,N]}],"backdrop-invert":[{"backdrop-invert":["",ee,_,N]}],"backdrop-opacity":[{"backdrop-opacity":[ee,_,N]}],"backdrop-saturate":[{"backdrop-saturate":[ee,_,N]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,_,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",_,N]}],ease:[{ease:["linear","initial",x,_,N]}],delay:[{delay:[ee,_,N]}],animate:[{animate:["none",S,_,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,N]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[_,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,N]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,N]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ee,Mn,Lt,fo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},un=Sf(Wf);function bl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bl(e))&&(r&&(r+=" "),r+=t);return r}function On(...e){return un(Pr(e))}const Uf="whitespace-nowrap font-normal flex items-center justify-center",Bf="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",qf="disabled:opacity-15 disabled:pointer-events-none",yl=e=>e==="grayLight"||e==="warning",vl=(e,t)=>!t||t==="none"?"":e(),Vf=(e,t)=>vl(()=>{const n=e==="gray400"?"gray":e,r=yl(n)?"active:text-black":"active:text-white";return e==="primary"?t?`bg-${n}-800 text-white`:`hover:bg-${n}-800 active:bg-${n}-800 hover:text-white ${r}`:n==="grayDark"?t?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${r}`:n==="grayLight"?t?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${r}`:e==="gray400"?t?`bg-${n}-500 text-white`:`hover:bg-${n}-500 active:bg-${n}-500 hover:text-white ${r}`:t?`bg-${n}-700 text-white`:`hover:bg-${n}-600 active:bg-${n}-700 hover:text-white ${r}`},e),Gf=e=>vl(()=>{const t=yl(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${t}`:e==="gray400"?`bg-gray-400 ${t}`:`bg-${e}-500 ${t}`},e),Kf=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",Yf=(e,t)=>e&&{dark:t?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:t?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:t?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:t?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:t?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:t?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:t?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:t?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:t?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:t?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:t?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:t?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":t?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:t?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:t?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:t?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",Qf=(e,t)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${t?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${t?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${t?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${t?"":"text-gray-400"}`:`border border-${e}-500 ${t?"":`text-${e}-500`}`,Xf=(e,t)=>({solid:Gf(e),link:Kf(e),linkHoverSolid:Yf(e,t),outline:Qf(e,t)}),Jf={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},Zf={none:"",default:"rounded",pill:"rounded-pill"},ed=({active:e=!1,children:t,color:n="primary",size:r="normal",category:o="solid",className:s,type:a="button",rounded:i="default",style:l={},...c},u)=>{var S;const f=qf,p=/link/.test(o)?null:Vf(n,e),h=Bf,b=Jf[r],g=(S=Xf(n,e))==null?void 0:S[o],y=un(p,g),x=Zf[i];return O.jsx("button",{...c,style:{...l,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out"},type:a,ref:u,className:un(Uf,h,f,b,y,x,s,"cursor-pointer"),children:t})},Ar=d.forwardRef(ed),td=({buttons:e,onButtonClick:t})=>O.jsx("div",{className:"flex items-center justify-end",children:e.map(n=>O.jsx(Ar,{size:"smallCollapse",className:"ml-2",onClick:()=>{t(n)},children:lf[n]},n))}),nd={SEQUENTIAL:"Sequential"},rd={[he.IN_REVIEW]:"In Review"},od={[he.OPEN]:"bg-secondary-500",[he.IN_PROGRESS]:"bg-primary-600",[he.IN_REVIEW]:"bg-success-600",[he.COMPLETED]:"bg-success-600"},sd=({playbookType:e,status:t,step:n,isSelected:r,onSelect:o})=>O.jsx("div",{className:Pr("flex flex-col items-center justify-center",r?"bg-[#FFE600]":od[t],o&&"cursor-pointer"),onClick:s=>{s.stopPropagation(),o==null||o(s.shiftKey)},children:O.jsx("span",{className:Pr("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",r?"text-black":"text-white"),children:e===nd.SEQUENTIAL?`STEP ${n}`:(rd[t]||t).toUpperCase()})}),ad={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},id={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},ld={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},cd={normal:"rounded",pill:"rounded-pill"},ud={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},wl=({category:e="solid",color:t="primary",roundness:n="normal",size:r="medium",textClassName:o="uppercase",children:s,className:a,...i})=>{const l=d.useMemo(()=>ld[t]??"text-white",[t]),c=d.useMemo(()=>un(l,e==="outline"?id[t]:ad[t],cd[n],ud[r]),[l,e,t,r,n]);return O.jsx("div",{className:un("ui-badge flex items-center font-bold",c,a),style:i==null?void 0:i.style,"data-testid":"badge","data-category":e,"data-color":t,...i,children:O.jsx("p",{className:un("mx-1",o),children:s})})},fd={[he.OPEN]:"secondary",[he.IN_PROGRESS]:"primary",[he.IN_REVIEW]:"success",[he.COMPLETED]:"success"},dd=({status:e})=>O.jsx(wl,{category:"outline",color:fd[e],children:e});/*!
2
2
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  * Copyright 2024 Fonticons, Inc.
package/dist/sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- import './index.css';var wi = (e) => {
1
+ var wi = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var wo = (e, t, n) => t.has(e) || wi("Cannot " + n);
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@confidencesystemsinc/sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/sdk.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "dist",
9
- "src"
8
+ "dist"
10
9
  ],
11
10
  "scripts": {
12
11
  "build": "tsc -b && vite build",
package/dist/index.css DELETED
@@ -1 +0,0 @@
1
- /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.z-50{z-index:50!important}.z-\[4\]{z-index:4!important}.container{width:100%!important}@media (min-width:40rem){.container{max-width:40rem!important}}@media (min-width:48rem){.container{max-width:48rem!important}}@media (min-width:64rem){.container{max-width:64rem!important}}@media (min-width:80rem){.container{max-width:80rem!important}}@media (min-width:96rem){.container{max-width:96rem!important}}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-auto{margin-inline:auto!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.ml-1{margin-left:calc(var(--spacing)*1)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.size-\[16px\]{width:16px!important;height:16px!important}.h-\[18px\]{height:18px!important}.h-\[22px\]{height:22px!important}.h-\[24px\]{height:24px!important}.h-\[30px\]{height:30px!important}.h-\[38px\]{height:38px!important}.h-\[40px\]{height:40px!important}.h-\[56px\]{height:56px!important}.min-h-screen{min-height:100vh!important}.w-\[27px\]{width:27px!important}.w-\[38px\]{width:38px!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-\[106px\]{min-width:106px!important}.min-w-\[140px\]{min-width:140px!important}.min-w-\[160px\]{min-width:160px!important}.min-w-\[172px\]{min-width:172px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\/20>:not(:last-child)){border-color:oklab(0% none none/.2) oklab(0% none none/.2) oklab(0% none none/.2) oklab(0% none none/.2)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-y{border-block-style:var(--tw-border-style)!important;border-block-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-\[\#94C8FF\]{border-color:#94c8ff!important}.border-\[\#A5DAB1\]{border-color:#a5dab1!important}.border-\[\#C1C5C8\]{border-color:#c1c5c8!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-600{border-color:#218838!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.bg-\[\#E6F2FF\]{background-color:#e6f2ff!important}.bg-\[\#EAF6EC\]{background-color:#eaf6ec!important}.bg-\[\#F0F1F2\]{background-color:#f0f1f2!important}.bg-\[\#FFE600\]{background-color:#ffe600!important}.bg-black\/30{background-color:oklab(0% none none/.3)!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\[2px\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-3{padding-block:calc(var(--spacing)*3)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.leading-\[18px\]{--tw-leading:18px!important;line-height:18px!important}.leading-\[22px\]{--tw-leading:22px!important;line-height:22px!important}.leading-\[24px\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\[\#1C232D\]{color:#1c232d!important}.text-black{color:#000!important}.text-danger-500{color:#dc3545!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-warning-500{color:#ffc107!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.line-through{text-decoration-line:line-through!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.\[writing-mode\:vertical-lr\]{writing-mode:vertical-lr!important}@media (hover:hover){.hover\:bg-danger-500:hover{background-color:#dc3545!important}.hover\:bg-dark:hover{background-color:#1c232d!important}.hover\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\:bg-gray-100:hover{background-color:#ebedef!important}.hover\:bg-gray-400:hover{background-color:#757e8c!important}.hover\:bg-gray-500:hover{background-color:#3a475b!important}.hover\:bg-gray-800:hover{background-color:#232b37!important}.hover\:bg-gray-900:hover{background-color:#1c232d!important}.hover\:bg-info-500:hover{background-color:#17a2b8!important}.hover\:bg-orange-500:hover{background-color:#ff7800!important}.hover\:bg-primary-800:hover{background-color:#0054af!important}.hover\:bg-purple-500:hover{background-color:#a855f7!important}.hover\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\:bg-steel-500:hover{background-color:#556987!important}.hover\:bg-success-500:hover{background-color:#28a745!important}.hover\:bg-warning-500:hover{background-color:#ffc107!important}.hover\:bg-yellow:hover{background-color:#ffe600!important}.hover\:text-black:hover{color:#000!important}.hover\:text-danger-800:hover{color:#aa1927!important}.hover\:text-dark:hover{color:#1c232d!important}.hover\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\:text-gray-400:hover{color:#757e8c!important}.hover\:text-gray-700:hover{color:#2c3544!important}.hover\:text-gray-800:hover{color:#232b37!important}.hover\:text-gray-900:hover{color:#1c232d!important}.hover\:text-info-800:hover{color:#026777!important}.hover\:text-orange-800:hover{color:#c75d00!important}.hover\:text-primary-800:hover{color:#0054af!important}.hover\:text-purple-800:hover{color:#6f33a7!important}.hover\:text-secondary-800:hover{color:#444a50!important}.hover\:text-steel-800:hover{color:#333f51!important}.hover\:text-success-800:hover{color:#106c25!important}.hover\:text-warning-800:hover{color:#b87708!important}.hover\:text-white:hover{color:#fff!important}.hover\:text-yellow:hover{color:#ffe600!important}}.focus\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\:outline-primary-500\/\[\.3\]:focus{outline-color:#007bff4d!important}.focus\:not-data-focus\:outline-none:focus:not([data-focus]){--tw-outline-style:none!important;outline-style:none!important}.active\:bg-gray-50:active{background-color:#f5f6f7!important}.active\:bg-gray-800:active{background-color:#232b37!important}.active\:text-black:active{color:#000!important}.active\:text-white:active{color:#fff!important}.disabled\:pointer-events-none:disabled{pointer-events:none!important}.disabled\:opacity-15:disabled{opacity:.15!important}.data-closed\:opacity-0[data-closed]{opacity:0!important}.data-focus\:outline-2[data-focus]{outline-style:var(--tw-outline-style)!important;outline-width:2px!important}.data-focus\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media (min-width:48rem){.md\:min-w-fit{min-width:fit-content!important}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
package/src/App.css DELETED
@@ -1,2 +0,0 @@
1
- @import "tailwindcss";
2
- @config "../tailwind.config.ts"