1var Xf=Object.defineProperty;var eh=(e,t,r)=>t in e?Xf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ce=(e,t,r)=>(eh(e,typeof t!="symbol"?t+"":t,r),r);import{s as Wc,j as o,q as us,_ as Di,C as Qc,P as th,R as rh,T as nh,a as Cn,V as Kc,b as Gc,A as Jc,c as Zc,d as sh,e as Yc,D as Xc,f as ah}from"./ui-916dc9d9.js";import{r as p,a as eu,g as Fo,R as Oe,$ as oh,d as ih}from"./vendor-aea060b0.js";import{P as be,c as tu}from"./pdf-viewer-9b371a90.js";import{m as tr}from"./motion-b076d11a.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();class Kn{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Vn=typeof window>"u"||"Deno"in window;function _t(){}function lh(e,t){return typeof e=="function"?e(t):e}function to(e){return typeof e=="number"&&e>=0&&e!==1/0}function ru(e,t){return Math.max(e+(t||0)-Date.now(),0)}function In(e,t,r){return Gn(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Xw(e,t,r){return Gn(e)?typeof t=="function"?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function vr(e,t,r){return Gn(e)?[{...t,queryKey:e},r]:[e||{},t]}function Vi(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:i,stale:l}=e;if(Gn(i)){if(n){if(t.queryHash!==$o(i,t.options))return!1}else if(!Cs(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof s<"u"&&s!==t.state.fetchStatus||a&&!a(t))}function zi(e,t){const{exact:r,fetching:n,predicate:s,mutationKey:a}=e;if(Gn(a)){if(!t.options.mutationKey)return!1;if(r){if(Dr(t.options.mutationKey)!==Dr(a))return!1}else if(!Cs(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||s&&!s(t))}function $o(e,t){return((t==null?void 0:t.queryKeyHashFn)||Dr)(e)}function Dr(e){return JSON.stringify(e,(t,r)=>no(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Cs(e,t){return nu(e,t)}function nu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!nu(e[r],t[r])):!1}function su(e,t){if(e===t)return e;const r=Ui(e)&&Ui(t);if(r||no(e)&&no(t)){const n=r?e.length:Object.keys(e).length,s=r?t:Object.keys(t),a=s.length,i=r?[]:{};let l=0;for(let u=0;u<a;u++){const c=r?u:s[u];i[c]=su(e[c],t[c]),i[c]===e[c]&&l++}return n===a&&l===n?e:i}return t}function ro(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Ui(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function no(e){if(!Bi(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Bi(r)||!r.hasOwnProperty("isPrototypeOf"))}function Bi(e){return Object.prototype.toString.call(e)==="[object Object]"}function Gn(e){return Array.isArray(e)}function au(e){return new Promise(t=>{setTimeout(t,e)})}function qi(e){au(0).then(e)}function ch(){if(typeof AbortController=="function")return new AbortController}function so(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?su(e,t):t}class uh extends Kn{constructor(){super(),this.setup=t=>{if(!Vn&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}
1onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const js=new uh,Hi=["online","offline"];class dh extends Kn{constructor(){super(),this.setup=t=>{if(!Vn&&window.addEventListener){const r=()=>t();return Hi.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Hi.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Ss=new dh;function fh(e){return Math.min(1e3*2**e,3e4)}function Qs(e){return(e??"online")==="online"?Ss.isOnline():!0}class ou{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ds(e){return e instanceof ou}function iu(e){let t=!1,r=0,n=!1,s,a,i;const l=new Promise((h,y)=>{a=h,i=y}),u=h=>{n||(g(new ou(h)),e.abort==null||e.abort())},c=()=>{t=!0},d=()=>{t=!1},f=()=>!js.isFocused()||e.networkMode!=="always"&&!Ss.isOnline(),m=h=>{n||(n=!0,e.onSuccess==null||e.onSuccess(h),s==null||s(),a(h))},g=h=>{n||(n=!0,e.onError==null||e.onError(h),s==null||s(),i(h))},x=()=>new Promise(h=>{s=y=>{const w=n||!f();return w&&h(y),w},e.onPause==null||e.onPause()}).then(()=>{s=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let h;try{h=e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(m).catch(y=>{var w,j;if(n)return;const S=(w=e.retry)!=null?w:3,A=(j=e.retryDelay)!=null?j:fh,k=typeof A=="function"?A(r,y):A,N=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,y);if(t||!N){g(y);return}r++,e.onFail==null||e.onFail(r,y),au(k).then(()=>{if(f())return x()}).then(()=>{t?g(y):v()})})};return Qs(e.networkMode)?v():x().then(v),{promise:l,cancel:u,continue:()=>(s==null?void 0:s())?l:Promise.resolve(),cancelRetry:c,continueRetry:d}}const Do=console;function hh(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const s=d=>{let f;t++;try{f=d()}finally{t--,t||l()}return f},a=d=>{t?e.push(d):qi(()=>{r(d)})},i=d=>(...f)=>{a(()=>{d(...f)})},l=()=>{const d=e;e=[],d.length&&qi(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:s,batchCalls:i,schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const st=hh();class lu{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),to(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Vn?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ph extends lu{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Do,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||mh(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=so(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(_t).catch(_t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ru(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>
1r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(x=>x.options.queryFn);g&&this.setOptions(g.options)}const i=ch(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};u(l);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=d.fetchOptions)==null?void 0:s.meta)){var f;this.dispatch({type:"fetch",meta:(f=d.fetchOptions)==null?void 0:f.meta})}const m=g=>{if(ds(g)&&g.silent||this.dispatch({type:"error",error:g}),!ds(g)){var x,v,h,y;(x=(v=this.cache.config).onError)==null||x.call(v,g,this),(h=(y=this.cache.config).onSettled)==null||h.call(y,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=iu({fn:d.fetchFn,abort:i==null?void 0:i.abort.bind(i),onSuccess:g=>{var x,v,h,y;if(typeof g>"u"){m(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(x=(v=this.cache.config).onSuccess)==null||x.call(v,g,this),(h=(y=this.cache.config).onSettled)==null||h.call(y,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:m,onFail:(g,x)=>{this.dispatch({type:"failed",failureCount:g,error:x})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var s,a;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:Qs(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return ds(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function mh(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class gh extends Kn{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var s;const a=r.queryKey,i=(s=r.queryHash)!=null?s:$o(a,r);let l=this.get(i);return l||(l=new ph({cache:this,logger:t.getLogger(),queryKey:a,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){st.batch(()=>
1{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=vr(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(s=>Vi(n,s))}findAll(t,r){const[n]=vr(t,r);return Object.keys(n).length>0?this.queries.filter(s=>Vi(n,s)):this.queries}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){st.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class xh extends lu{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Do,this.observers=[],this.state=t.state||vh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var N;return this.retryer=iu({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(R,O)=>{this.dispatch({type:"failed",failureCount:R,error:O})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(N=this.options.retry)!=null?N:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,s,a,i,l,u,c,d;if(!r){var f,m,g,x;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(m=this.mutationCache.config).onMutate)==null?void 0:f.call(m,this.state.variables,this));const R=await((g=(x=this.options).onMutate)==null?void 0:g.call(x,this.state.variables));R!==this.state.context&&this.dispatch({type:"loading",context:R,variables:this.state.variables})}const N=await t();return await((n=(s=this.mutationCache.config).onSuccess)==null?void 0:n.call(s,N,this.state.variables,this.state.context,this)),await((a=(i=this.options).onSuccess)==null?void 0:a.call(i,N,this.state.variables,this.state.context)),await((l=(u=this.mutationCache.config).onSettled)==null?void 0:l.call(u,N,null,this.state.variables,this.state.context,this)),await((c=(d=this.options).onSettled)==null?void 0:c.call(d,N,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:N}),N}catch(N){try{var v,h,y,w,j,S,A,k;throw await((v=(h=this.mutationCache.config).onError)==null?void 0:v.call(h,N,this.state.variables,this.state.context,this)),await((y=(w=this.options).onError)==null?void 0:y.call(w,N,this.state.variables,this.state.context)),await((j=(S=this.mutationCache.config).onSettled)==null?void 0:j.call(S,void 0,N,this.state.variables,this.state.context,this)),await((A=(k=this.options).onSettled)==null?void 0:A.call(k,void 0,N,this.state.variables,this.state.context)),N}finally{this.dispatch({type:"error",error:N})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Qs(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>
1{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function vh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class yh extends Kn{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const s=new xh({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){st.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>zi(t,r))}findAll(t){return this.mutations.filter(r=>zi(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return st.batch(()=>r.reduce((n,s)=>n.then(()=>s.continue().catch(_t)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function bh(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,s,a,i;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,u=(n=e.fetchOptions)==null||(s=n.meta)==null?void 0:s.fetchMore,c=u==null?void 0:u.pageParam,d=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",m=((a=e.state.data)==null?void 0:a.pages)||[],g=((i=e.state.data)==null?void 0:i.pageParams)||[];let x=g,v=!1;const h=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var N;if((N=e.signal)!=null&&N.aborted)v=!0;else{var R;(R=e.signal)==null||R.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(k,N,R,O)=>(x=O?[N,...x]:[...x,N],O?[R,...k]:[...k,R]),j=(k,N,R,O)=>{if(v)return Promise.reject("Cancelled");if(typeof R>"u"&&!N&&k.length)return Promise.resolve(k);const I={queryKey:e.queryKey,pageParam:R,meta:e.options.meta};h(I);const z=y(I);return Promise.resolve(z).then(_=>w(k,R,_,O))};let S;if(!m.length)S=j([]);else if(d){const k=typeof c<"u",N=k?c:Wi(e.options,m);S=j(m,k,N)}else if(f){const k=typeof c<"u",N=k?c:wh(e.options,m);S=j(m,k,N,!0)}else{x=[];const k=typeof e.options.getNextPageParam>"u";S=(l&&m[0]?l(m[0],0,m):!0)?j([],k,g[0]):Promise.resolve(w([],g[0],m[0]));for(let R=1;R<m.length;R++)S=S.then(O=>{if(l&&m[R]?l(m[R],R,m):!0){const z=k?g[R]:Wi(e.options,O);return j(O,k,z)}return Promise.resolve(w(O,g[R],m[R]))})}return S.then(k=>({pages:k,pageParams:x}))}}}}function Wi(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function wh(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Ch{constructor(t={}){this.queryCache=t.queryCache||new gh,this.mutationCache=t.mutationCache||new yh,this.logger=t.logger||Do,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=js.subscribe(()=>{js.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Ss.subscribe(()=>{Ss.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=vr(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const s=In(t,r,n),a=this.getQueryData(s.queryKey);return a?Promise.resolve(a):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const s=n.data;return[r,s]})}setQueryData(t,r,n){const s=this.queryCache.find(t),a=s==null?void 0:s.state.data,i=lh(r,a);if(typeof i>"u")return;const l=In(t),u=this.defaultQueryOptions(l);return this.queryCache.build(this,u).setData(i,{...n,manual:!0})}
1setQueriesData(t,r,n){return st.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=vr(t,r),s=this.queryCache;st.batch(()=>{s.findAll(n).forEach(a=>{s.remove(a)})})}resetQueries(t,r,n){const[s,a]=vr(t,r,n),i=this.queryCache,l={type:"active",...s};return st.batch(()=>(i.findAll(s).forEach(u=>{u.reset()}),this.refetchQueries(l,a)))}cancelQueries(t,r,n){const[s,a={}]=vr(t,r,n);typeof a.revert>"u"&&(a.revert=!0);const i=st.batch(()=>this.queryCache.findAll(s).map(l=>l.cancel(a)));return Promise.all(i).then(_t).catch(_t)}invalidateQueries(t,r,n){const[s,a]=vr(t,r,n);return st.batch(()=>{var i,l;if(this.queryCache.findAll(s).forEach(c=>{c.invalidate()}),s.refetchType==="none")return Promise.resolve();const u={...s,type:(i=(l=s.refetchType)!=null?l:s.type)!=null?i:"active"};return this.refetchQueries(u,a)})}refetchQueries(t,r,n){const[s,a]=vr(t,r,n),i=st.batch(()=>this.queryCache.findAll(s).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,{...a,cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:s.refetchPage}})}));let l=Promise.all(i).then(_t);return a!=null&&a.throwOnError||(l=l.catch(_t)),l}fetchQuery(t,r,n){const s=In(t,r,n),a=this.defaultQueryOptions(s);typeof a.retry>"u"&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(_t).catch(_t)}fetchInfiniteQuery(t,r,n){const s=In(t,r,n);return s.behavior=bh(),this.fetchQuery(s)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(_t).catch(_t)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(s=>Dr(t)===Dr(s.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Cs(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(s=>Dr(t)===Dr(s.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Cs(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=$o(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class jh extends Kn{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Qi(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ao(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ao(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),ro(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&Ki(this.currentQuery,s,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==s||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==s||this.options.enabled!==n.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return Eh(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(_t)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Vn||this.currentResult.isStale||!to(this.options.staleTime))return;const r=ru(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Vn||this.options.enabled===!1||!to(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>
1{(this.options.refetchIntervalInBackground||js.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,s=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,u=t!==n,c=u?t.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:m,error:g,errorUpdatedAt:x,fetchStatus:v,status:h}=f,y=!1,w=!1,j;if(r._optimisticResults){const R=this.hasListeners(),O=!R&&Qi(t,r),I=R&&Ki(t,n,r,s);(O||I)&&(v=Qs(t.options.networkMode)?"fetching":"paused",m||(h="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&d!=null&&d.isSuccess&&h!=="error")j=d.data,m=d.dataUpdatedAt,h=d.status,y=!0;else if(r.select&&typeof f.data<"u")if(a&&f.data===(i==null?void 0:i.data)&&r.select===this.selectFn)j=this.selectResult;else try{this.selectFn=r.select,j=r.select(f.data),j=so(a==null?void 0:a.data,j,r),this.selectResult=j,this.selectError=null}catch(R){this.selectError=R}else j=f.data;if(typeof r.placeholderData<"u"&&typeof j>"u"&&h==="loading"){let R;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))R=a.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),this.selectError=null}catch(O){this.selectError=O}typeof R<"u"&&(h="success",j=so(a==null?void 0:a.data,R,r),w=!0)}this.selectError&&(g=this.selectError,j=this.selectResult,x=Date.now(),h="error");const S=v==="fetching",A=h==="loading",k=h==="error";return{status:h,fetchStatus:v,isLoading:A,isSuccess:h==="success",isError:k,isInitialLoading:A&&S,data:j,dataUpdatedAt:m,error:g,errorUpdatedAt:x,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&&!A,isLoadingError:k&&f.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:k&&f.dataUpdatedAt!==0,isStale:Vo(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ro(n,r))return;this.currentResult=n;const s={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const u=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(c=>{const d=c;return this.currentResult[d]!==r[d]&&u.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!ds(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){st.batch(()=>{if(t.onSuccess){var r,n,s,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(s=(a=this.options).onSettled)==null||s.call(a,this.currentResult.data,null)}else if(t.onError){var i,l,u,c;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(u=(c=this.options).onSettled)==null||u.call(c,void 0,this.currentResult.error)}
1t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Sh(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qi(e,t){return Sh(e,t)||e.state.dataUpdatedAt>0&&ao(e,t,t.refetchOnMount)}function ao(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Vo(e,t)}return!1}function Ki(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Vo(e,r)}function Vo(e,t){return e.isStaleByTime(t.staleTime)}function Eh(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!ro(e.getCurrentResult(),t)}const Ah=Wc.useSyncExternalStore,Gi=p.createContext(void 0),cu=p.createContext(!1);function uu(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Gi),window.ReactQueryClientContext):Gi)}const Ks=({context:e}={})=>{const t=p.useContext(uu(e,p.useContext(cu)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Th=({client:e,children:t,context:r,contextSharing:n=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=uu(r,n);return p.createElement(cu.Provider,{value:!r&&n},p.createElement(s.Provider,{value:e},t))},du=p.createContext(!1),Ph=()=>p.useContext(du);du.Provider;function Nh(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const kh=p.createContext(Nh()),Oh=()=>p.useContext(kh);function Ih(e,t){return typeof e=="function"?e(...t):!!e}const Rh=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},_h=e=>{p.useEffect(()=>{e.clearReset()},[e])},Mh=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&Ih(r,[e.error,n]),Lh=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},Fh=(e,t)=>e.isLoading&&e.isFetching&&!t,$h=(e,t,r)=>(e==null?void 0:e.suspense)&&Fh(t,r),Dh=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function Vh(e,t){const r=Ks({context:e.context}),n=Ph(),s=Oh(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=st.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=st.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=st.batchCalls(a.onSettled)),Lh(a),Rh(a,s),_h(s);const[i]=p.useState(()=>new t(r,a)),l=i.getOptimisticResult(a);if(Ah(p.useCallback(u=>{const c=n?()=>{}:i.subscribe(st.batchCalls(u));return i.updateResult(),c},[i,n]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),p.useEffect(()=>{i.setOptions(a,{listeners:!1})},[a,i]),$h(a,l,n))throw Dh(a,i,s);if(Mh({result:l,errorResetBoundary:s,useErrorBoundary:a.useErrorBoundary,query:i.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:i.trackResult(l)}function fn(e,t,r){const n=In(e,t,r);return Vh(n,jh)}var oo={},Ji=eu;oo.createRoot=Ji.createRoot,oo.hydrateRoot=Ji.hydrateRoot;var zh=typeof Element<"u",Uh=typeof Map=="function",Bh=typeof Set=="function",qh=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!fs(e[n],t[n]))return!1;return!0}var a;if(Uh&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!fs(n.value[1],t.get(n.value[0])))return!1;return!0}if(Bh&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(qh&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(zh&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!fs(e[s[n]],t[
1s[n]]))return!1;return!0}return e!==e&&t!==t}var Hh=function(t,r){try{return fs(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Wh=Fo(Hh);var Qh=function(e,t,r,n,s,a,i,l){if(!e){var u;if(t===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,s,a,i,l],d=0;u=new Error(t.replace(/%s/g,function(){return c[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},Kh=Qh;const Zi=Fo(Kh);var Gh=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),c=0;c<i.length;c++){var d=i[c];if(!u(d))return!1;var f=t[d],m=r[d];if(a=n?n.call(s,f,m,d):void 0,a===!1||a===void 0&&f!==m)return!1}return!0};const Jh=Fo(Gh);function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(this,arguments)}function zo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,io(e,t)}function io(e,t){return io=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},io(e,t)}function Yi(e,t){if(e==null)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(s[r]=e[r]);return s}var xe={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Zh={rel:["amphtml","canonical","alternate"]},Yh={type:["application/ld+json"]},Xh={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Xi=Object.keys(xe).map(function(e){return xe[e]}),Es={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ep=Object.keys(Es).reduce(function(e,t){return e[Es[t]]=t,e},{}),ln=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},tp=function(e){var t=ln(e,xe.TITLE),r=ln(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,function(){return t});var n=ln(e,"defaultTitle");return t||n||void 0},rp=function(e){return ln(e,"onChangeClientState")||function(){}},Na=function(e,t){return t.filter(function(r){return r[e]!==void 0}).map(function(r){return r[e]}).reduce(function(r,n){return Je({},r,n)},{})},np=function(e,t){return t.filter(function(r){return r[xe.BASE]!==void 0}).map(function(r){return r[xe.BASE]}).reverse().reduce(function(r,n){if(!r.length)for(var s=Object.keys(n),a=0;a<s.length;a+=1){var i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&n[i])return r.concat(n)}return r},[])},jn=function(e,t,r){var n={};return r.filter(function(s){return!!Array.isArray(s[e])||(s[e]!==void 0&&console&&typeof console.warn=="function"&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof s[e]+'"'),!1)}).map(function(s){return s[e]}).reverse().reduce(function(s,a){var i={};a.filter(function(f){for(var m,g=Object.keys(f),x=0;x<g.length;x+=1){var v=g[x],h=v.toLowerCase();t.indexOf(h)===-1||m==="rel"&&f[m].toLowerCase()==="canonical"||h==="rel"&&f[h].toLowerCase()==="stylesheet"||(m=h),t.indexOf(v)===-1||v!=="innerHTML"&&v!=="cssText"&&v!=="itemprop"||(m=v)}if(!m||!f[m])return!1;var y=f[m].toLowerCase();return n[m]||(n[m]={}),i[m]||(i[m]={}),!n[m][y]&&(i[m][y]=!0,!0)}).reverse().forEach(function(f){return s.push(f)});for(var l=Object.keys(i),u=0;u<l.length;u+=1){var c=l[u],d=Je({},n[c],i[c]);n[c]=d}return s},[]).reverse()},sp=function(e,t){if(Array.isArray(e)&&e.length){for(var r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},fu=function(e){return Array.isArray(e)?e.join(""):e},ka=function(e,t){return Array.isArray(e)?e.reduce(function(r,n){return function(s,a){for(var i=Object.keys(s),l=0;l<i.length;
1l+=1)if(a[i[l]]&&a[i[l]].includes(s[i[l]]))return!0;return!1}(n,t)?r.priority.push(n):r.default.push(n),r},{priority:[],default:[]}):{default:e}},el=function(e,t){var r;return Je({},e,((r={})[t]=void 0,r))},ap=[xe.NOSCRIPT,xe.SCRIPT,xe.STYLE],Oa=function(e,t){return t===void 0&&(t=!0),t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},tl=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r]!==void 0?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},rl=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(r,n){return r[Es[n]||n]=e[n],r},t)},hs=function(e,t){return t.map(function(r,n){var s,a=((s={key:n})["data-rh"]=!0,s);return Object.keys(r).forEach(function(i){var l=Es[i]||i;l==="innerHTML"||l==="cssText"?a.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:a[l]=r[i]}),Oe.createElement(e,a)})},Rt=function(e,t,r){switch(e){case xe.TITLE:return{toComponent:function(){return s=t.titleAttributes,(a={key:n=t.title})["data-rh"]=!0,i=rl(s,a),[Oe.createElement(xe.TITLE,i,n)];var n,s,a,i},toString:function(){return function(n,s,a,i){var l=tl(a),u=fu(s);return l?"<"+n+' data-rh="true" '+l+">"+Oa(u,i)+"</"+n+">":"<"+n+' data-rh="true">'+Oa(u,i)+"</"+n+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return rl(t)},toString:function(){return tl(t)}};default:return{toComponent:function(){return hs(e,t)},toString:function(){return function(n,s,a){return s.reduce(function(i,l){var u=Object.keys(l).filter(function(f){return!(f==="innerHTML"||f==="cssText")}).reduce(function(f,m){var g=l[m]===void 0?m:m+'="'+Oa(l[m],a)+'"';return f?f+" "+g:g},""),c=l.innerHTML||l.cssText||"",d=ap.indexOf(n)===-1;return i+"<"+n+' data-rh="true" '+u+(d?"/>":">"+c+"</"+n+">")},"")}(e,t,r)}}}},lo=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,s=e.htmlAttributes,a=e.noscriptTags,i=e.styleTags,l=e.title,u=l===void 0?"":l,c=e.titleAttributes,d=e.linkTags,f=e.metaTags,m=e.scriptTags,g={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var x=function(v){var h=v.linkTags,y=v.scriptTags,w=v.encode,j=ka(v.metaTags,Xh),S=ka(h,Zh),A=ka(y,Yh);return{priorityMethods:{toComponent:function(){return[].concat(hs(xe.META,j.priority),hs(xe.LINK,S.priority),hs(xe.SCRIPT,A.priority))},toString:function(){return Rt(xe.META,j.priority,w)+" "+Rt(xe.LINK,S.priority,w)+" "+Rt(xe.SCRIPT,A.priority,w)}},metaTags:j.default,linkTags:S.default,scriptTags:A.default}}(e);g=x.priorityMethods,d=x.linkTags,f=x.metaTags,m=x.scriptTags}return{priority:g,base:Rt(xe.BASE,t,n),bodyAttributes:Rt("bodyAttributes",r,n),htmlAttributes:Rt("htmlAttributes",s,n),link:Rt(xe.LINK,d,n),meta:Rt(xe.META,f,n),noscript:Rt(xe.NOSCRIPT,a,n),script:Rt(xe.SCRIPT,m,n),style:Rt(xe.STYLE,i,n),title:Rt(xe.TITLE,{title:u,titleAttributes:c},n)}},ns=[],co=function(e,t){var r=this;t===void 0&&(t=typeof document<"u"),this.instances=[],this.value={setHelmet:function(n){r.context.helmet=n},helmetInstances:{get:function(){return r.canUseDOM?ns:r.instances},add:function(n){(r.canUseDOM?ns:r.instances).push(n)},remove:function(n){var s=(r.canUseDOM?ns:r.instances).indexOf(n);(r.canUseDOM?ns:r.instances).splice(s,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=lo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},hu=Oe.createContext({}),op=be.shape({setHelmet:be.func,helmetInstances:be.shape({get:be.func,add:be.func,remove:be.func})}),ip=typeof document<"u",an=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new co(n.props.context,t.canUseDOM),n}return zo(t,e),t.prototype.render=function(){return Oe.createElement(hu.Provider,{value:this.helmetData.value},this.props.children)},t}(p.Component);an.canUseDOM=ip,an.propTypes={context:be.shape({helmet:be.shape()}),children:be.node.isRequired},an.defaultProps={context:{}},an.displayName="HelmetProvider";var Xr=function(e,t){var r,n=document.head||document.querySelector(xe.HEAD),s=n.querySelectorAll(e+"[data-rh]"),a=[].slice.call(s),i=[];return t&&t.length&&t.forEach(function(l){var u=document.createElement(e);for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(c==="innerHTML"?u.innerHTML=l.innerHTML:c==="cssText"?u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText)):u.setAttribute(c,l[c]===void 0?"":l[c]));u.setAttribute("data-rh","true"),a.some(function(d,f){return r=f,u.isEqualNode(d)})?a.splice(r,1):i.push(u)}),a.forEach(function(l){return l.parentNode.removeChild(l)}
1),i.forEach(function(l){return n.appendChild(l)}),{oldTags:a,newTags:i}},Ia=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),s=n?n.split(","):[],a=[].concat(s),i=Object.keys(t),l=0;l<i.length;l+=1){var u=i[l],c=t[u]||"";r.getAttribute(u)!==c&&r.setAttribute(u,c),s.indexOf(u)===-1&&s.push(u);var d=a.indexOf(u);d!==-1&&a.splice(d,1)}for(var f=a.length-1;f>=0;f-=1)r.removeAttribute(a[f]);s.length===a.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==i.join(",")&&r.setAttribute("data-rh",i.join(","))}},nl=function(e,t){var r=e.baseTag,n=e.htmlAttributes,s=e.linkTags,a=e.metaTags,i=e.noscriptTags,l=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,d=e.title,f=e.titleAttributes;Ia(xe.BODY,e.bodyAttributes),Ia(xe.HTML,n),function(v,h){v!==void 0&&document.title!==v&&(document.title=fu(v)),Ia(xe.TITLE,h)}(d,f);var m={baseTag:Xr(xe.BASE,r),linkTags:Xr(xe.LINK,s),metaTags:Xr(xe.META,a),noscriptTags:Xr(xe.NOSCRIPT,i),scriptTags:Xr(xe.SCRIPT,u),styleTags:Xr(xe.STYLE,c)},g={},x={};Object.keys(m).forEach(function(v){var h=m[v],y=h.newTags,w=h.oldTags;y.length&&(g[v]=y),w.length&&(x[v]=m[v].oldTags)}),t&&t(),l(e,g,x)},Sn=null,As=function(e){function t(){for(var n,s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return(n=e.call.apply(e,[this].concat(a))||this).rendered=!1,n}zo(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(n){return!Jh(n,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var n,s,a=this.props.context,i=a.setHelmet,l=null,u=(n=a.helmetInstances.get().map(function(c){var d=Je({},c.props);return delete d.context,d}),{baseTag:np(["href"],n),bodyAttributes:Na("bodyAttributes",n),defer:ln(n,"defer"),encode:ln(n,"encodeSpecialCharacters"),htmlAttributes:Na("htmlAttributes",n),linkTags:jn(xe.LINK,["rel","href"],n),metaTags:jn(xe.META,["name","charset","http-equiv","property","itemprop"],n),noscriptTags:jn(xe.NOSCRIPT,["innerHTML"],n),onChangeClientState:rp(n),scriptTags:jn(xe.SCRIPT,["src","innerHTML"],n),styleTags:jn(xe.STYLE,["cssText"],n),title:tp(n),titleAttributes:Na("titleAttributes",n),prioritizeSeoTags:sp(n,"prioritizeSeoTags")});an.canUseDOM?(s=u,Sn&&cancelAnimationFrame(Sn),s.defer?Sn=requestAnimationFrame(function(){nl(s,function(){Sn=null})}):(nl(s),Sn=null)):lo&&(l=lo(u)),i(l)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(p.Component);As.propTypes={context:op.isRequired},As.displayName="HelmetDispatcher";var lp=["children"],cp=["children"],_n=function(e){function t(){return e.apply(this,arguments)||this}zo(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(n){return!Wh(el(this.props,"helmetData"),el(n,"helmetData"))},r.mapNestedChildrenToProps=function(n,s){if(!s)return null;switch(n.type){case xe.SCRIPT:case xe.NOSCRIPT:return{innerHTML:s};case xe.STYLE:return{cssText:s};default:throw new Error("<"+n.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(n){var s,a=n.child,i=n.arrayTypeChildren;return Je({},i,((s={})[a.type]=[].concat(i[a.type]||[],[Je({},n.newChildProps,this.mapNestedChildrenToProps(a,n.nestedChildren))]),s))},r.mapObjectTypeChildren=function(n){var s,a,i=n.child,l=n.newProps,u=n.newChildProps,c=n.nestedChildren;switch(i.type){case xe.TITLE:return Je({},l,((s={})[i.type]=c,s.titleAttributes=Je({},u),s));case xe.BODY:return Je({},l,{bodyAttributes:Je({},u)});case xe.HTML:return Je({},l,{htmlAttributes:Je({},u)});default:return Je({},l,((a={})[i.type]=Je({},u),a))}},r.mapArrayTypeChildrenToProps=function(n,s){var a=Je({},s);return Object.keys(n).forEach(function(i){var l;a=Je({},a,((l={})[i]=n[i],l))}),a}
1,r.warnOnInvalidChildren=function(n,s){return Zi(Xi.some(function(a){return n.type===a}),typeof n.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Xi.join(", ")+" are allowed. Helmet does not support rendering <"+n.type+"> elements. Refer to our API for more information."),Zi(!s||typeof s=="string"||Array.isArray(s)&&!s.some(function(a){return typeof a!="string"}),"Helmet expects a string as a child of <"+n.type+">. Did you forget to wrap your children in braces? ( <"+n.type+">{``}</"+n.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(n,s){var a=this,i={};return Oe.Children.forEach(n,function(l){if(l&&l.props){var u=l.props,c=u.children,d=Yi(u,lp),f=Object.keys(d).reduce(function(g,x){return g[ep[x]||x]=d[x],g},{}),m=l.type;switch(typeof m=="symbol"?m=m.toString():a.warnOnInvalidChildren(l,c),m){case xe.FRAGMENT:s=a.mapChildrenToProps(c,s);break;case xe.LINK:case xe.META:case xe.NOSCRIPT:case xe.SCRIPT:case xe.STYLE:i=a.flattenArrayTypeChildren({child:l,arrayTypeChildren:i,newChildProps:f,nestedChildren:c});break;default:s=a.mapObjectTypeChildren({child:l,newProps:s,newChildProps:f,nestedChildren:c})}}}),this.mapArrayTypeChildrenToProps(i,s)},r.render=function(){var n=this.props,s=n.children,a=Yi(n,cp),i=Je({},a),l=a.helmetData;return s&&(i=this.mapChildrenToProps(s,i)),!l||l instanceof co||(l=new co(l.context,l.instances)),l?Oe.createElement(As,Je({},i,{context:l.value,helmetData:void 0})):Oe.createElement(hu.Consumer,null,function(u){return Oe.createElement(As,Je({},i,{context:u}))})},t}(p.Component);_n.propTypes={base:be.object,bodyAttributes:be.object,children:be.oneOfType([be.arrayOf(be.node),be.node]),defaultTitle:be.string,defer:be.bool,encodeSpecialCharacters:be.bool,htmlAttributes:be.object,link:be.arrayOf(be.object),meta:be.arrayOf(be.object),noscript:be.arrayOf(be.object),onChangeClientState:be.func,script:be.arrayOf(be.object),style:be.arrayOf(be.object),title:be.string,titleAttributes:be.object,titleTemplate:be.string,prioritizeSeoTags:be.bool,helmetData:be.object},_n.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},_n.displayName="Helmet";var pu={exports:{}},mu={};/** 2 * @license React 3 * use-sync-external-store-shim/with-selector.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Gs=p,up=Wc;function dp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fp=typeof Object.is=="function"?Object.is:dp,hp=up.useSyncExternalStore,pp=Gs.useRef,mp=Gs.useEffect,gp=Gs.useMemo,xp=Gs.useDebugValue;mu.useSyncExternalStoreWithSelector=function(e,t,r,n,s){var a=pp(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=gp(function(){function u(g){if(!c){if(c=!0,d=g,g=n(g),s!==void 0&&i.hasValue){var x=i.value;if(s(x,g))return f=x}return f=g}if(x=f,fp(d,g))return x;var v=n(g);return s!==void 0&&s(x,v)?(d=g,x):(d=g,f=v)}var c=!1,d,f,m=r===void 0?null:r;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,r,n,s]);var l=hp(e,a[0],a[1]);return mp(function(){i.hasValue=!0,i.value=l},[l]),xp(l),l};pu.exports=mu;var vp=pu.exports;function yp(e){e()}let gu=yp;const bp=e=>gu=e,wp=()=>gu,sl=Symbol.for("react-redux-context"),al=typeof globalThis<"u"?globalThis:{};function Cp(){var e;if(!p.createContext)return{};const t=(e=al[sl])!=null?e:al[sl]=new Map;let r=t.get(p.createContext);return r||(r=p.createContext(null),t.set(p.createContext,r)),r}const Nr=Cp();function Uo(e=Nr){return function(){return p.useContext(e)}}const xu=Uo(),jp=()=>{throw new Error("uSES not initialized!")};let vu=jp;const Sp=e=>{vu=e},Ep=(e,t)=>e===t;function Ap(e=Nr){const t=e===Nr?xu:Uo(e);return function(n,s={}){const{equalityFn:a=Ep,stabilityCheck:i=void 0,noopCheck:l=void 0}=typeof s=="function"?{equalityFn:s}:s,{store:u,subscription:c,getServerState:d,stabilityCheck:f,noopCheck:m}=t();p.useRef(!0);const g=p.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,i]),x=vu(c.addNestedSub,u.getState,d||u.getState,g,a);return p.useDebugValue(x),x}}const Tp=Ap();var yu={exports:{}},_e={};/** @license React v16.13.1 10 * react-is.production.min.js 11 * 12 * Copyright (c) Facebook, Inc. and its affiliates. 13 * 14 * This source code is licensed under the MIT license found in the 15 * LICENSE file in the root directory of this source tree. 16 */var dt=typeof Symbol=="function"&&Symbol.for,Bo=dt?Symbol.for("react.element"):60103,qo=dt?Symbol.for("react.portal"):60106,Js=dt?Symbol.for("react.fragment"):60107,Zs=dt?Symbol.for("react.strict_mode"):60108,Ys=dt?Symbol.for("react.profiler"):60114,Xs=dt?Symbol.for("react.provider"):60109,ea=dt?Symbol.for("react.context"):60110,Ho=dt?Symbol.for("react.async_mode"):60111,ta=dt?Symbol.for("react.concurrent_mode"):60111,ra=dt?Symbol.for("react.forward_ref"):60112,na=dt?Symbol.for("react.suspense"):60113,Pp=dt?Symbol.for("react.suspense_list"):60120,sa=dt?Symbol.for("react.memo"):60115,aa=dt?Symbol.for("react.lazy"):60116,Np=dt?Symbol.for("react.block"):60121,kp=dt?Symbol.for("react.fundamental"):60117,Op=dt?Symbol.for("react.responder"):60118,Ip=dt?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bo:switch(e=e.type,e){case Ho:case ta:case Js:case Ys:case Zs:case na:return e;default:switch(e=e&&e.$$typeof,e){case ea:case ra:case aa:case sa:case Xs:return e;default:return t}}case qo:return t}}}function bu(e){return kt(e)===ta}_e.AsyncMode=Ho;_e.ConcurrentMode=ta;_e.ContextConsumer=ea;_e.ContextProvider=Xs;_e.Element=Bo;_e.ForwardRef=ra;_e.Fragment=Js;_e.Lazy=aa;_e.Memo=sa;_e.Portal=qo;_e.Profiler=Ys;_e.StrictMode=Zs;_e.Suspense=na;_e.isAsyncMode=function(e){return bu(e)||kt(e)===Ho};_e.isConcurrentMode=bu;_e.isContextConsumer=function(e){return kt(e)===ea};_e.isContextProvider=function(e){return kt(e)===Xs};_e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bo};_e.isForwardRef=function(e){return kt(e)===ra};_e.isFragment=function(e){return kt(e)===Js};_e.isLazy=function(e){return kt(e)===aa};_e.isMemo=function(e){return kt(e)===sa};_e.isPortal=function(e){return kt(e)===qo};_e.isProfiler=function(e){return kt(e)===Ys};_e.isStrictMode=function(e){return kt(e)===Zs};_e.isSuspense=function(e){return kt(e)===na};_e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Js||e===ta||e===Ys||e===Zs||e===na||e===Pp||typeof e=="object"&&e!==null&&(e.$$typeof===aa||e.$$typeof===sa||e.$$typeof===Xs||e.$$typeof===ea||e.$$typeof===ra||e.$$typeof===kp||e.$$typeof===Op||e.$$typeof===Ip||e.$$typeof===Np)};_e.typeOf=kt;yu.exports=_e;var Rp=yu.exports,wu=Rp,_p={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cu={};Cu[wu.ForwardRef]=_p;Cu[wu.Memo]=Mp;var Le={};/** 17 * @license React 18 * react-is.production.min.js 19 * 20 * Copyright (c) Facebook, Inc. and its affiliates. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE file in the root directory of this source tree. 24 */var Wo=Symbol.for("react.element"),Qo=Symbol.for("react.portal"),oa=Symbol.for("react.fragment"),ia=Symbol.for("react.strict_mode"),la=Symbol.for("react.profiler"),ca=Symbol.for("react.provider"),ua=Symbol.for("react.context"),Lp=Symbol.for("react.server_context"),da=Symbol.for("react.forward_ref"),fa=Symbol.for("react.suspense"),ha=Symbol.for("react.suspense_list"),pa=Symbol.for("react.memo"),ma=Symbol.for("react.lazy"),Fp=Symbol.for("react.offscreen"),ju;ju=Symbol.for("react.module.reference");function Lt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wo:switch(e=e.type,e){case oa:case la:case ia:case fa:case ha:return e;default:switch(e=e&&e.$$typeof,e){case Lp:case ua:case da:case ma:case pa:case ca:return e;default:return t}}case Qo:return t}}}Le.ContextConsumer=ua;Le.ContextProvider=ca;Le.Element=Wo;Le.ForwardRef=da;Le.Fragment=oa;Le.Lazy=ma;Le.Memo=pa;Le.Portal=Qo;Le.Profiler=la;Le.StrictMode=ia;Le.Suspense=fa;Le.SuspenseList=ha;Le.isAsyncMode=function(){return!1};Le.isConcurrentMode=function(){return!1};Le.isContextConsumer=function(e){return Lt(e)===ua};Le.isContextProvider=function(e){return Lt(e)===ca};Le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wo};Le.isForwardRef=function(e){return Lt(e)===da};Le.isFragment=function(e){return Lt(e)===oa};Le.isLazy=function(e){return Lt(e)===ma};Le.isMemo=function(e){return Lt(e)===pa};Le.isPortal=function(e){return Lt(e)===Qo};Le.isProfiler=function(e){return Lt(e)===la};Le.isStrictMode=function(e){return Lt(e)===ia};Le.isSuspense=function(e){return Lt(e)===fa};Le.isSuspenseList=function(e){return Lt(e)===ha};Le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oa||e===la||e===ia||e===fa||e===ha||e===Fp||typeof e=="object"&&e!==null&&(e.$$typeof===ma||e.$$typeof===pa||e.$$typeof===ca||e.$$typeof===ua||e.$$typeof===da||e.$$typeof===ju||e.getModuleId!==void 0)};Le.typeOf=Lt;function $p(){const e=wp();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],s=t;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!s||t===null||(s=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const ol={notify(){},get:()=>[]};function Dp(e,t){let r,n=ol,s=0,a=!1;function i(v){d();const h=n.subscribe(v);let y=!1;return()=>{y||(y=!0,h(),f())}}function l(){n.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return a}function d(){s++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=$p())}function f(){s--,r&&s===0&&(r(),r=void 0,n.clear(),n=ol)}function m(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const x={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>n};return x}const Vp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zp=Vp?p.useLayoutEffect:p.useEffect;function Up({store:e,context:t,children:r,serverState:n,stabilityCheck:s="once",noopCheck:a="once"}){const i=p.useMemo(()=>{const c=Dp(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:s,noopCheck:a}},[e,n,s,a]),l=p.useMemo(()=>e.getState(),[e]);zp(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,l]);const u=t||Nr;return p.createElement(u.Provider,{value:i},r)}function Su(e=Nr){const t=e===Nr?xu:Uo(e);return function(){const{store:n}=t();return n}}const Bp=Su();function qp(e=Nr){const t=e===Nr?Bp:Su(e);return function(){return t().dispatch}}const it=qp();Sp(vp.useSyncExternalStoreWithSelector);bp(eu.unstable_batchedUpdates);/** 25 * @remix-run/router v1.23.1 26 * 27 * Copyright (c) Remix Software Inc. 28 * 29 * This source code is licensed under the MIT license found in the 30 * LICENSE.md file in the root directory of this source tree. 31 * 32 * @license MIT 33 */function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 9,052 bytes, line 33
33for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zn.apply(this,arguments)}var jr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jr||(jr={}));const il="popstate";function Hp(e){e===void 0&&(e={});function t(n,s){let{pathname:a,search:i,hash:l}=n.location;return uo("",{pathname:a,search:i,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:Ts(s)}return Qp(t,r,null,e)}function Xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ko(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wp(){return Math.random().toString(36).substr(2,8)}function ll(e,t){return{usr:e.state,key:e.key,idx:t}}function uo(e,t,r,n){return r===void 0&&(r=null),zn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mn(t):t,{state:r,key:t&&t.key||n||Wp()})}function Ts(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function mn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Qp(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:a=!1}=n,i=s.history,l=jr.Pop,u=null,c=d();c==null&&(c=0,i.replaceState(zn({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=jr.Pop;let h=d(),y=h==null?null:h-c;c=h,u&&u({action:l,location:v.location,delta:y})}function m(h,y){l=jr.Push;let w=uo(v.location,h,y);r&&r(w,h),c=d()+1;let j=ll(w,c),S=v.createHref(w);try{i.pushState(j,"",S)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(S)}a&&u&&u({action:l,location:v.location,delta:1})}function g(h,y){l=jr.Replace;let w=uo(v.location,h,y);r&&r(w,h),c=d();let j=ll(w,c),S=v.createHref(w);i.replaceState(j,"",S),a&&u&&u({action:l,location:v.location,delta:0})}function x(h){let y=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof h=="string"?h:Ts(h);return w=w.replace(/ $/,"%20"),Xe(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let v={get action(){return l},get location(){return e(s,i)},listen(h){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(il,f),u=h,()=>{s.removeEventListener(il,f),u=null}},createHref(h){return t(s,h)},createURL:x,encodeLocation(h){let y=x(h);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:g,go(h){return i.go(h)}};return v}var cl;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cl||(cl={}));function Kp(e,t,r){return r===void 0&&(r="/"),Gp(e,t,r,!1)}function Gp(e,t,r,n){let s=typeof t=="string"?mn(t):t,a=Go(s.pathname||"/",r);if(a==null)return null;let i=Eu(e);Jp(i);let l=null;for(let u=0;l==null&&u<i.length;++u){let c=im(a);l=am(i[u],c,n)}return l}function Eu(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(a,i,l)=>{let u={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&(Xe(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Sr([n,u.relativePath]),d=r.concat(u);a.children&&a.children.length>0&&(Xe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Eu(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:nm(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))s(a,i);else for(let u of Au(a.path))s(a,i,u)}),t}function Au(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return s?[a,""]:[a];let i=Au(n.join("/")),l=[];return l.push(...i.map(u=>u===""?a:[a,u].join("/"))),s&&l.push(...i),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Jp(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sm(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Zp=/^:[\w-]+$/,Yp=3,Xp=2,em=1,tm=10,rm=-2,ul=e=>e==="*";function nm(e,t){let r=e.split("/"),n=r.length;return r.some(ul)&&(n+=rm),t&&(n+=Xp),r.filter(s=>!ul(s)).reduce((s,a)=>s+(Zp.test(a)?Yp:a===""?em:tm),n)}function sm(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function am(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,s={},a="/",i=[];for(let l=0;l<n.length;++l){let u=n[l],c=l===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=dl({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),m=u.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=dl({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(s,f.params),i.push({params:s,pathname:Sr([a,f.pathname]),pathnameBase:fm(Sr([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=Sr([a,f.pathnameBase]))}return i}function dl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=om(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],i=a.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:n.reduce((c,d,f)=>{let{paramName:m,isOptional:g}=d;if(m==="*"){let v=l[f]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[f];return g&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function om(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ko(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,u)=>(n.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function im(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ko(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Go(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cm=e=>lm.test(e);function um(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?mn(e):e,a;if(r)if(cm(r))a=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),Ko(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?a=fl(r.substring(1),"/"):a=fl(r,t)}else a=t;return{pathname:a,search:hm(n),hash:pm(s)}}function fl(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Ra(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function dm(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Jo(e,t){let r=dm(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Zo(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=mn(e):(s=zn({},e),Xe(!s.pathname||!s.pathname.includes("?"),Ra("?","pathname","search",s)),Xe(!s.pathname||!s.pathname.includes("#"),Ra("#","pathname","hash",s)),Xe(!s.search||!s.search.includes("#"),Ra("#","search","hash",s)));let a=e===""||s.pathname==="",i=a?"/":s.pathname,l;if(i==null)l=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;s.pathname=m.join("/")}l=f>=0?t[f]:"/"}let u=um(s,l),c=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Sr=e=>e.join("/").replace(/\/\/+/g,"/"),fm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tu=["post","put","patch","delete"];new Set(Tu);const gm=["get",...Tu];new Set(gm);
vendor: 4,232 bytes, lines 33-42
33/** 34 * React Router v6.30.2 35 * 36 * Copyright (c) Remix Software Inc. 37 * 38 * This source code is licensed under the MIT license found in the 39 * LICENSE.md file in the root directory of this source tree. 40 * 41 * @license MIT 42 */function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Un.apply(this,arguments)}const Yo=p.createContext(null),xm=p.createContext(null),Or=p.createContext(null),ga=p.createContext(null),nr=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Pu=p.createContext(null);function vm(e,t){let{relative:r}=t===void 0?{}:t;gn()||Xe(!1);let{basename:n,navigator:s}=p.useContext(Or),{hash:a,pathname:i,search:l}=ku(e,{relative:r}),u=i;return n!=="/"&&(u=i==="/"?n:Sr([n,i])),s.createHref({pathname:u,search:l,hash:a})}function gn(){return p.useContext(ga)!=null}function Ir(){return gn()||Xe(!1),p.useContext(ga).location}function Nu(e){p.useContext(Or).static||p.useLayoutEffect(e)}function vt(){let{isDataRoute:e}=p.useContext(nr);return e?_m():ym()}function ym(){gn()||Xe(!1);let e=p.useContext(Yo),{basename:t,future:r,navigator:n}=p.useContext(Or),{matches:s}=p.useContext(nr),{pathname:a}=Ir(),i=JSON.stringify(Jo(s,r.v7_relativeSplatPath)),l=p.useRef(!1);return Nu(()=>{l.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=Zo(c,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Sr([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,a,e])}const bm=p.createContext(null);function wm(e){let t=p.useContext(nr).outlet;return t&&p.createElement(bm.Provider,{value:e},t)}function Cm(){let{matches:e}=p.useContext(nr),t=e[e.length-1];return t?t.params:{}}function ku(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(Or),{matches:s}=p.useContext(nr),{pathname:a}=Ir(),i=JSON.stringify(Jo(s,n.v7_relativeSplatPath));return p.useMemo(()=>Zo(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function jm(e,t){return Sm(e,t)}function Sm(e,t,r,n){gn()||Xe(!1);let{navigator:s}=p.useContext(Or),{matches:a}=p.useContext(nr),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let c=Ir(),d;if(t){var f;let h=typeof t=="string"?mn(t):t;u==="/"||(f=h.pathname)!=null&&f.startsWith(u)||Xe(!1),d=h}else d=c;let m=d.pathname||"/",g=m;if(u!=="/"){let h=u.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(h.length).join("/")}let x=Kp(e,{pathname:g}),v=Nm(x&&x.map(h=>Object.assign({},h,{params:Object.assign({},l,h.params),pathname:Sr([u,s.encodeLocation?s.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?u:Sr([u,s.encodeLocation?s.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,r,n);return t&&v?p.createElement(ga.Provider,{value:{location:Un({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:jr.Pop}},v):v}function Em(){let e=Rm(),t=mm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:s},r):null,a)}const Am=p.createElement(Em,null);class Tm extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?p.createElement(nr.Provider,{value:this.props.routeContext},p.createElement(Pu.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}
vendor: 4,302 bytes, line 42
42function Pm(e){let{routeContext:t,match:r,children:n}=e,s=p.useContext(Yo);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(nr.Provider,{value:t},n)}function Nm(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(s=r)==null?void 0:s.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Xe(!1),i=i.slice(0,Math.min(i.length,d+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:m,errors:g}=r,x=f.route.loader&&m[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||x){u=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let g,x=!1,v=null,h=null;r&&(g=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||Am,u&&(c<0&&m===0?(Mm("route-fallback",!1),x=!0,h=null):c===m&&(x=!0,h=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),w=()=>{let j;return g?j=v:x?j=h:f.route.Component?j=p.createElement(f.route.Component,null):f.route.element?j=f.route.element:j=d,p.createElement(Pm,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:j})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?p.createElement(Tm,{location:r.location,revalidation:r.revalidation,component:v,error:g,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var Ou=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ou||{}),Ps=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ps||{});function km(e){let t=p.useContext(Yo);return t||Xe(!1),t}function Om(e){let t=p.useContext(xm);return t||Xe(!1),t}function Im(e){let t=p.useContext(nr);return t||Xe(!1),t}function Iu(e){let t=Im(),r=t.matches[t.matches.length-1];return r.route.id||Xe(!1),r.route.id}function Rm(){var e;let t=p.useContext(Pu),r=Om(Ps.UseRouteError),n=Iu(Ps.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function _m(){let{router:e}=km(Ou.UseNavigateStable),t=Iu(Ps.UseNavigateStable),r=p.useRef(!1);return Nu(()=>{r.current=!0}),p.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Un({fromRouteId:t},a)))},[e,t])}const hl={};function Mm(e,t,r){!t&&!hl[e]&&(hl[e]=!0)}function Lm(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function pl(e){let{to:t,replace:r,state:n,relative:s}=e;gn()||Xe(!1);let{future:a,static:i}=p.useContext(Or),{matches:l}=p.useContext(nr),{pathname:u}=Ir(),c=vt(),d=Zo(t,Jo(l,a.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:s}),[c,f,s,r,n]),null}function Fm(e){return wm(e.context)}function ke(e){Xe(!1)}function $m(e){let{basename:t="/",children:r=null,location:n,navigationType:s=jr.Pop,navigator:a,static:i=!1,future:l}=e;gn()&&Xe(!1);let u=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:u,navigator:a,static:i,future:Un({v7_relativeSplatPath:!1},l)}),[u,l,a,i]);typeof n=="string"&&(n=mn(n));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:x="default"}=n,v=p.useMemo(()=>{let h=Go(d,u);return h==null?null:{location:{pathname:h,search:f,hash:m,state:g,key:x},navigationType:s}},[u,d,f,m,g,x,s]);return v==null?null:p.createElement(Or.Provider,{value:c},p.createElement(ga.Provider,{children:r,value:v}))}function Xo(e){let{children:t,location:r}=e;return jm(fo(t),r)}new Promise(()=>{});function fo(e,t){t===void 0&&(t=[]);let r=[];
42return p.Children.forEach(e,(n,s)=>{if(!p.isValidElement(n))return;let a=[...t,s];if(n.type===p.Fragment){r.push.apply(r,fo(n.props.children,a));return}n.type!==ke&&Xe(!1),!n.props.index||!n.props.children||Xe(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=fo(n.props.children,a)),r.push(i)}),r}/** 43 * React Router DOM v6.30.2 44 * 45 * Copyright (c) Remix Software Inc. 46 * 47 * This source code is licensed under the MIT license found in the 48 * LICENSE.md file in the root directory of this source tree. 49 * 50 * @license MIT 51 */function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ho.apply(this,arguments)}function Dm(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,a;for(a=0;a<n.length;a++)s=n[a],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function Vm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zm(e,t){return e.button===0&&(!t||t==="_self")&&!Vm(e)}function po(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function Um(e,t){let r=po(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(a=>{r.append(s,a)})}),r}const Bm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],qm="6";try{window.__reactRouterVersion=qm}catch{}const Hm="startTransition",ml=oh[Hm];function Wm(e){let{basename:t,children:r,future:n,window:s}=e,a=p.useRef();a.current==null&&(a.current=Hp({window:s,v5Compat:!0}));let i=a.current,[l,u]=p.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},d=p.useCallback(f=>{c&&ml?ml(()=>u(f)):u(f)},[u,c]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.useEffect(()=>Lm(n),[n]),p.createElement($m,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}const Qm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ei=p.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:a,replace:i,state:l,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,m=Dm(t,Bm),{basename:g}=p.useContext(Or),x,v=!1;if(typeof c=="string"&&Km.test(c)&&(x=c,Qm))try{let j=new URL(window.location.href),S=c.startsWith("//")?new URL(j.protocol+c):new URL(c),A=Go(S.pathname,g);S.origin===j.origin&&A!=null?c=A+S.search+S.hash:v=!0}catch{}let h=vm(c,{relative:s}),y=Gm(c,{replace:i,state:l,target:u,preventScrollReset:d,relative:s,viewTransition:f});function w(j){n&&n(j),j.defaultPrevented||y(j)}return p.createElement("a",ho({},m,{href:x||h,onClick:v||a?n:w,ref:r,target:u}))});var gl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gl||(gl={}));var xl;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xl||(xl={}));function Gm(e,t){let{target:r,replace:n,state:s,preventScrollReset:a,relative:i,viewTransition:l}=t===void 0?{}:t,u=vt(),c=Ir(),d=ku(e,{relative:i});return p.useCallback(f=>{if(zm(f,r)){f.preventDefault();let m=n!==void 0?n:Ts(c)===Ts(d);u(e,{replace:m,state:s,preventScrollReset:a,relative:i,viewTransition:l})}},[c,u,d,n,s,r,e,a,i,l])}function eC(e){let t=p.useRef(po(e)),r=p.useRef(!1),n=Ir(),s=p.useMemo(()=>Um(n.search,r.current?null:t.current),[n.search]),a=vt(),i=p.useCallback((l,u)=>{const c=po(typeof l=="function"?l(s):l);r.current=!0,a("?"+c,u)},[a,s]);return[s,i]}const Jm="modulepreload",Zm=function(e){return"/"+e},vl={},Ke=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=Zm(a),a in vl)return;vl[a]=!0;const i=a.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const f=s[d];if(f.href===a&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":Jm,i||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),i)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};let Ym={data:""},Xm=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Ym},eg=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,tg=/\/\*[^]*?\*\/| +/g,yl=/\n+/g,br=(e,t)=>{let r="",n="",s="";for(let a in e){let i=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+i+";":n+=a[1]=="f"?br(i,a):a+"{"+br(i,a[1]=="k"?"":t)+"}":typeof i=="object"?n+=br(i,t?t.replace(/([^,])+/g,l=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):a):i!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=br.p?br.p(a,i):a+":"+i+";")}return r+(t&&s?t+"{"+s+"}":s)+n},ar={},Ru=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Ru(e[r]);return t}return e},rg=(e,t,r,n,s)=>{let a=Ru(e),i=ar[a]||(ar[a]=(u=>{let c=0,d=11;for(;c<u.length;)d=101*d+u.charCodeAt(c++)>>>0;return"go"+d})(a));if(!ar[i]){let u=a!==e?e:(c=>{let d,f,m=[{}];for(;d=eg.exec(c.replace(tg,""));)d[4]?m.shift():d[3]?(f=d[3].replace(yl," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][d[1]]=d[2].replace(yl," ").trim();return m[0]})(e);ar[i]=br(s?{["@keyframes "+i]:u}:u,r?"":"."+i)}let l=r&&ar.g?ar.g:null;return r&&(ar.g=ar[i]),((u,c,d,f)=>{f?c.data=c.data.replace(f,u):c.data.indexOf(u)===-1&&(c.data=d?u+c.data:c.data+u)})(ar[i],t,n,l),i},ng=(e,t,r)=>e.reduce((n,s,a)=>{let i=t[a];if(i&&i.call){let l=i(r),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=u?"."+u:l&&typeof l=="object"?l.props?"":br(l,""):l===!1?"":l}return n+s+(i??"")},"");function xa(e){let t=this||{},r=e.call?e(t.p):e;
51return rg(r.unshift?r.raw?ng(r,[].slice.call(arguments,1),t.p):r.reduce((n,s)=>Object.assign(n,s&&s.call?s(t.p):s),{}):r,Xm(t.target),t.g,t.o,t.k)}let _u,mo,go;xa.bind({g:1});let hr=xa.bind({k:1});function sg(e,t,r,n){br.p=t,_u=e,mo=r,go=n}function Rr(e,t){let r=this||{};return function(){let n=arguments;function s(a,i){let l=Object.assign({},a),u=l.className||s.className;r.p=Object.assign({theme:mo&&mo()},l),r.o=/ *go\d+/.test(u),l.className=xa.apply(r,n)+(u?" "+u:""),t&&(l.ref=i);let c=e;return e[0]&&(c=l.as||e,delete l.as),go&&c[0]&&go(l),_u(c,l)}return t?t(s):s}}var ag=e=>typeof e=="function",Ns=(e,t)=>ag(e)?e(t):e,og=(()=>{let e=0;return()=>(++e).toString()})(),Mu=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ig=20,ti="default",Lu=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return Lu(e,{type:e.toasts.find(i=>i.id===n.id)?1:0,toast:n});case 3:let{toastId:s}=t;return{...e,toasts:e.toasts.map(i=>i.id===s||s===void 0?{...i,dismissed:!0,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},ps=[],Fu={toasts:[],pausedAt:void 0,settings:{toastLimit:ig}},Xt={},$u=(e,t=ti)=>{Xt[t]=Lu(Xt[t]||Fu,e),ps.forEach(([r,n])=>{r===t&&n(Xt[t])})},Du=e=>Object.keys(Xt).forEach(t=>$u(e,t)),lg=e=>Object.keys(Xt).find(t=>Xt[t].toasts.some(r=>r.id===e)),va=(e=ti)=>t=>{$u(t,e)},cg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ug=(e={},t=ti)=>{let[r,n]=p.useState(Xt[t]||Fu),s=p.useRef(Xt[t]);p.useEffect(()=>(s.current!==Xt[t]&&n(Xt[t]),ps.push([t,n]),()=>{let i=ps.findIndex(([l])=>l===t);i>-1&&ps.splice(i,1)}),[t]);let a=r.toasts.map(i=>{var l,u,c;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((l=e[i.type])==null?void 0:l.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((u=e[i.type])==null?void 0:u.duration)||(e==null?void 0:e.duration)||cg[i.type],style:{...e.style,...(c=e[i.type])==null?void 0:c.style,...i.style}}});return{...r,toasts:a}},dg=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||og()}),Jn=e=>(t,r)=>{let n=dg(t,e,r);return va(n.toasterId||lg(n.id))({type:2,toast:n}),n.id},lt=(e,t)=>Jn("blank")(e,t);lt.error=Jn("error");lt.success=Jn("success");lt.loading=Jn("loading");lt.custom=Jn("custom");lt.dismiss=(e,t)=>{let r={type:3,toastId:e};t?va(t)(r):Du(r)};lt.dismissAll=e=>lt.dismiss(void 0,e);lt.remove=(e,t)=>{let r={type:4,toastId:e};t?va(t)(r):Du(r)};lt.removeAll=e=>lt.remove(void 0,e);lt.promise=(e,t,r)=>{let n=lt.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(s=>{let a=t.success?Ns(t.success,s):void 0;return a?lt.success(a,{id:n,...r,...r==null?void 0:r.success}):lt.dismiss(n),s}).catch(s=>{let a=t.error?Ns(t.error,s):void 0;a?lt.error(a,{id:n,...r,...r==null?void 0:r.error}):lt.dismiss(n)}),e};var fg=1e3,hg=(e,t="default")=>{let{toasts:r,pausedAt:n}=ug(e,t),s=p.useRef(new Map).current,a=p.useCallback((f,m=fg)=>{if(s.has(f))return;let g=setTimeout(()=>{s.delete(f),i({type:4,toastId:f})},m);s.set(f,g)},[]);p.useEffect(()=>{if(n)return;let f=Date.now(),m=r.map(g=>{if(g.duration===1/0)return;let x=(g.duration||0)+g.pauseDuration-(f-g.createdAt);if(x<0){g.visible&<.dismiss(g.id);return}return setTimeout(()=>lt.dismiss(g.id,t),x)});return()=>{m.forEach(g=>g&&clearTimeout(g))}},[r,n,t]);let i=p.useCallback(va(t),[t]),l=p.useCallback(()=>{i({type:5,time:Date.now()})},[i]),u=p.useCallback((f,m)=>{i({type:1,toast:{id:f,height:m}}
51)},[i]),c=p.useCallback(()=>{n&&i({type:6,time:Date.now()})},[n,i]),d=p.useCallback((f,m)=>{let{reverseOrder:g=!1,gutter:x=8,defaultPosition:v}=m||{},h=r.filter(j=>(j.position||v)===(f.position||v)&&j.height),y=h.findIndex(j=>j.id===f.id),w=h.filter((j,S)=>S<y&&j.visible).length;return h.filter(j=>j.visible).slice(...g?[w+1]:[0,w]).reduce((j,S)=>j+(S.height||0)+x,0)},[r]);return p.useEffect(()=>{r.forEach(f=>{if(f.dismissed)a(f.id,f.removeDelay);else{let m=s.get(f.id);m&&(clearTimeout(m),s.delete(f.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:u,startPause:l,endPause:c,calculateOffset:d}}},pg=hr` 52from { 53 transform: scale(0) rotate(45deg); 54 opacity: 0; 55} 56to { 57 transform: scale(1) rotate(45deg); 58 opacity: 1; 59}`,mg=hr` 60from { 61 transform: scale(0); 62 opacity: 0; 63} 64to { 65 transform: scale(1); 66 opacity: 1; 67}`,gg=hr` 68from { 69 transform: scale(0) rotate(90deg); 70 opacity: 0; 71} 72to { 73 transform: scale(1) rotate(90deg); 74 opacity: 1; 75}`,xg=Rr("div")` 76 width: 20px; 77 opacity: 0; 78 height: 20px; 79 border-radius: 10px; 80 background: ${e=>e.primary||"#ff4b4b"}; 81 position: relative; 82 transform: rotate(45deg); 83 84 animation: ${pg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 85 forwards; 86 animation-delay: 100ms; 87 88 &:after, 89 &:before { 90 content: ''; 91 animation: ${mg} 0.15s ease-out forwards; 92 animation-delay: 150ms; 93 position: absolute; 94 border-radius: 3px; 95 opacity: 0; 96 background: ${e=>e.secondary||"#fff"}; 97 bottom: 9px; 98 left: 4px; 99 height: 2px; 100 width: 12px; 101 } 102 103 &:before { 104 animation: ${gg} 0.15s ease-out forwards; 105 animation-delay: 180ms; 106 transform: rotate(90deg); 107 } 108`,vg=hr` 109 from { 110 transform: rotate(0deg); 111 } 112 to { 113 transform: rotate(360deg); 114 } 115`,yg=Rr("div")` 116 width: 12px; 117 height: 12px; 118 box-sizing: border-box; 119 border: 2px solid; 120 border-radius: 100%; 121 border-color: ${e=>e.secondary||"#e0e0e0"}; 122 border-right-color: ${e=>e.primary||"#616161"}; 123 animation: ${vg} 1s linear infinite; 124`,bg=hr` 125from { 126 transform: scale(0) rotate(45deg); 127 opacity: 0; 128} 129to { 130 transform: scale(1) rotate(45deg); 131 opacity: 1; 132}`,wg=hr` 1330% { 134 height: 0; 135 width: 0; 136 opacity: 0; 137} 13840% { 139 height: 0; 140 width: 6px; 141 opacity: 1; 142} 143100% { 144 opacity: 1; 145 height: 10px; 146}`,Cg=Rr("div")` 147 width: 20px; 148 opacity: 0; 149 height: 20px; 150 border-radius: 10px; 151 background: ${e=>e.primary||"#61d345"}; 152 position: relative; 153 transform: rotate(45deg); 154 155 animation: ${bg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 156 forwards; 157 animation-delay: 100ms; 158 &:after { 159 content: ''; 160 box-sizing: border-box; 161 animation: ${wg} 0.2s ease-out forwards; 162 opacity: 0; 163 animation-delay: 200ms; 164 position: absolute; 165 border-right: 2px solid; 166 border-bottom: 2px solid; 167 border-color: ${e=>e.secondary||"#fff"}; 168 bottom: 6px; 169 left: 6px; 170 height: 10px; 171 width: 6px; 172 } 173`,jg=Rr("div")` 174 position: absolute; 175`,Sg=Rr("div")` 176 position: relative; 177 display: flex; 178 justify-content: center; 179 align-items: center; 180 min-width: 20px; 181 min-height: 20px; 182`,Eg=hr` 183from { 184 transform: scale(0.6); 185 opacity: 0.4; 186} 187to { 188 transform: scale(1); 189 opacity: 1; 190}`,Ag=Rr("div")` 191 position: relative; 192 transform: scale(0.6); 193 opacity: 0.4; 194 min-width: 20px; 195 animation: ${Eg} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 196 forwards; 197`,Tg=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?p.createElement(Ag,null,t):t:r==="blank"?null:p.createElement(Sg,null,p.createElement(yg,{...n}),r!=="loading"&&p.createElement(jg,null,r==="error"?p.createElement(xg,{...n}):p.createElement(Cg,{...n})))},Pg=e=>` 1980% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 199100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 200`,Ng=e=>` 2010% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 202100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} 203`,kg="0%{opacity:0;} 100%{opacity:1;}",Og="0%{opacity:1;} 100%{opacity:0;}",Ig=Rr("div")` 204 display: flex; 205 align-items: center; 206 background: #fff; 207 color: #363636; 208 line-height: 1.3; 209 will-change: transform; 210 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 211 max-width: 350px; 212 pointer-events: auto; 213 padding: 8px 10px; 214 border-radius: 8px; 215`,Rg=Rr("div")` 216 display: flex; 217 justify-content: center; 218 margin: 4px 10px; 219 color: inherit; 220 flex: 1 1 auto; 221 white-space: pre-line; 222`,_g=(e,t)=>{let r=e.includes("top")?1:-1,[n,s]=Mu()?[kg,Og]:[Pg(r),Ng(r)];return{animation:t?`${hr(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${hr(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Mg=p.memo(({toast:e,position:t,style:r,children:n})=>
222{let s=e.height?_g(e.position||t||"top-center",e.visible):{opacity:0},a=p.createElement(Tg,{toast:e}),i=p.createElement(Rg,{...e.ariaProps},Ns(e.message,e));return p.createElement(Ig,{className:e.className,style:{...s,...r,...e.style}},typeof n=="function"?n({icon:a,message:i}):p.createElement(p.Fragment,null,a,i))});sg(p.createElement);var Lg=({id:e,className:t,style:r,onHeightUpdate:n,children:s})=>{let a=p.useCallback(i=>{if(i){let l=()=>{let u=i.getBoundingClientRect().height;n(e,u)};l(),new MutationObserver(l).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return p.createElement("div",{ref:a,className:t,style:r},s)},Fg=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Mu()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...s}},$g=xa` 223 z-index: 9999; 224 > * { 225 pointer-events: auto; 226 } 227`,ss=16,Dg=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:s,toasterId:a,containerStyle:i,containerClassName:l})=>{let{toasts:u,handlers:c}=hg(r,a);return p.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:ss,left:ss,right:ss,bottom:ss,pointerEvents:"none",...i},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map(d=>{let f=d.position||t,m=c.calculateOffset(d,{reverseOrder:e,gutter:n,defaultPosition:t}),g=Fg(f,m);return p.createElement(Lg,{id:d.id,key:d.id,onHeightUpdate:c.updateHeight,className:d.visible?$g:"",style:g},d.type==="custom"?Ns(d.message,d):s?s(d):p.createElement(Mg,{toast:d,position:f}))}))},on=lt;function Vg(){const e=Ks();return p.useEffect(()=>{const t=()=>{e.invalidateQueries(["openInvoices"]),e.invalidateQueries(["allInvoices"])},r=n=>{var a,i;const s=n.detail;if(s!=null&&s.type)switch(s.type){case"success":on.success("Pagamento realizado com sucesso!",{duration:4e3}),t();break;case"error":{const l=((a=s==null?void 0:s.data)==null?void 0:a.message)??((i=s==null?void 0:s.data)==null?void 0:i.reason);on.error(typeof l=="string"&&l.length>0?l:"Não foi possÃvel concluir o pagamento. Tente novamente.",{duration:5e3});break}case"close":default:t();break}};return window.addEventListener("bemobi_smart_checkout_result",r),()=>window.removeEventListener("bemobi_smart_checkout_result",r)},[e]),null}function zg(){return{VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_ENV==="staging"}function Ug(){return zg()?o.jsxs("div",{className:"homolog-banner",role:"status","aria-label":"Ambiente de homologação, dados fictÃcios",children:[o.jsxs("svg",{className:"homolog-banner__icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[o.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"}),o.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),o.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),o.jsx("span",{className:"homolog-banner__text",children:"AMBIENTE DE HOMOLOGAÃÃO"})]}):null}function zt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function kr(e){return!!e&&!!e[Be]}function pr(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var s=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===Zg}(e)||Array.isArray(e)||!!e[Al]||!!(!((t=e.constructor)===null||t===void 0)&&t[Al])||ri(e)||ni(e))}function qr(e,t,r){r===void 0&&(r=!1),xn(e)===0?(r?Object.keys:un)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,s){return t(s,n,e)})}function xn(e){var t=e[Be];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ri(e)?2:ni(e)?3:0}function cn(e,t){return xn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bg(e,t){return xn(e)===2?e.get(t):e[t]}function Vu(e,t,r){var n=xn(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function zu(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ri(e){return Gg&&e instanceof Map}function ni(e){return Jg&&e instanceof Set}function $r(e){return e.o||e.t}function si(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Bu(e);delete t[Be];for(var r=un(t),n=0;n<r.length;n++){var s=r[n],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function ai(e,t){return t===void 0&&(t=!1),oi(e)||kr(e)||!pr(e)||(xn(e)>1&&(e.set=e.add=e.clear=e.delete=qg),Object.freeze(e),t&&qr(e,function(r,n){return ai(n,!0)},!0)),e}function qg(){zt(2)}function oi(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function er(e){var t=bo[e];return t||zt(18,e),t}function Hg(e,t){bo[e]||(bo[e]=t)}function xo(){return Bn}function _a(e,t){t&&(er("Patches"),e.u=[],e.s=[],e.v=t)}function ks(e){vo(e),e.p.forEach(Wg),e.p=null}function vo(e){e===Bn&&(Bn=e.l)}function bl(e){return Bn={p:[],l:Bn,h:e,m:!0,_:0}}function Wg(e){var t=e[Be];t.i===0||t.i===1?t.j():t.g=!0}function Ma(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||er("ES5").S(t,e,n),n?(r[Be].P&&(ks(t),zt(4)),pr(e)&&(e=Os(t,e),t.l||Is(t,e)),t.u&&er("Patches").M(r[Be].t,e,t.u,t.s)):e=Os(t,r,[]),ks(t),t.u&&t.v(t.u,t.s),e!==Uu?e:void 0}function Os(e,t,r){if(oi(t))return t;var n=t[Be];if(!n)return qr(t,function(l,u){return wl(e,n,t,l,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Is(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var s=n.i===4||n.i===5?n.o=si(n.k):n.o,a=s,i=!1;n.i===3&&(a=new Set(s),s.clear(),i=!0),qr(a,function(l,u){return wl(e,n,s,l,u,r,i)}),Is(e,s,!1),r&&e.u&&er("Patches").N(n,r,e.u,e.s)}return n.o}function wl(e,t,r,n,s,a,i){if(kr(s)){var l=Os(e,s,a&&t&&t.i!==3&&!cn(t.R,n)?a.concat(n):void 0);
227if(Vu(r,n,l),!kr(l))return;e.m=!1}else i&&r.add(s);if(pr(s)&&!oi(s)){if(!e.h.D&&e._<1)return;Os(e,s),t&&t.A.l||Is(e,s)}}function Is(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ai(t,r)}function La(e,t){var r=e[Be];return(r?$r(r):e)[t]}function Cl(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function wr(e){e.P||(e.P=!0,e.l&&wr(e.l))}function Fa(e){e.o||(e.o=si(e.t))}function yo(e,t,r){var n=ri(t)?er("MapSet").F(t,r):ni(t)?er("MapSet").T(t,r):e.O?function(s,a){var i=Array.isArray(s),l={i:i?1:0,A:a?a.A:xo(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},u=l,c=qn;i&&(u=[l],c=Rn);var d=Proxy.revocable(u,c),f=d.revoke,m=d.proxy;return l.k=m,l.j=f,m}(t,r):er("ES5").J(t,r);return(r?r.A:xo()).p.push(n),n}function Qg(e){return kr(e)||zt(22,e),function t(r){if(!pr(r))return r;var n,s=r[Be],a=xn(r);if(s){if(!s.P&&(s.i<4||!er("ES5").K(s)))return s.t;s.I=!0,n=jl(r,a),s.I=!1}else n=jl(r,a);return qr(n,function(i,l){s&&Bg(s.t,i)===l||Vu(n,i,t(l))}),a===3?new Set(n):n}(e)}function jl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return si(e)}function Kg(){function e(a,i){var l=s[a];return l?l.enumerable=i:s[a]=l={configurable:!0,enumerable:i,get:function(){var u=this[Be];return qn.get(u,a)},set:function(u){var c=this[Be];qn.set(c,a,u)}},l}function t(a){for(var i=a.length-1;i>=0;i--){var l=a[i][Be];if(!l.P)switch(l.i){case 5:n(l)&&wr(l);break;case 4:r(l)&&wr(l)}}}function r(a){for(var i=a.t,l=a.k,u=un(l),c=u.length-1;c>=0;c--){var d=u[c];if(d!==Be){var f=i[d];if(f===void 0&&!cn(i,d))return!0;var m=l[d],g=m&&m[Be];if(g?g.t!==f:!zu(m,f))return!0}}var x=!!i[Be];return u.length!==un(i).length+(x?0:1)}function n(a){var i=a.k;if(i.length!==a.t.length)return!0;var l=Object.getOwnPropertyDescriptor(i,i.length-1);if(l&&!l.get)return!0;for(var u=0;u<i.length;u++)if(!i.hasOwnProperty(u))return!0;return!1}var s={};Hg("ES5",{J:function(a,i){var l=Array.isArray(a),u=function(d,f){if(d){for(var m=Array(f.length),g=0;g<f.length;g++)Object.defineProperty(m,""+g,e(g,!0));return m}var x=Bu(f);delete x[Be];for(var v=un(x),h=0;h<v.length;h++){var y=v[h];x[y]=e(y,d||!!x[y].enumerable)}return Object.create(Object.getPrototypeOf(f),x)}(l,a),c={i:l?5:4,A:i?i.A:xo(),P:!1,I:!1,R:{},l:i,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Be,{value:c,writable:!0}),u},S:function(a,i,l){l?kr(i)&&i[Be].A===a&&t(a.p):(a.u&&function u(c){if(c&&typeof c=="object"){var d=c[Be];if(d){var f=d.t,m=d.k,g=d.R,x=d.i;if(x===4)qr(m,function(j){j!==Be&&(f[j]!==void 0||cn(f,j)?g[j]||u(m[j]):(g[j]=!0,wr(d)))}),qr(f,function(j){m[j]!==void 0||cn(m,j)||(g[j]=!1,wr(d))});else if(x===5){if(n(d)&&(wr(d),g.length=!0),m.length<f.length)for(var v=m.length;v<f.length;v++)g[v]=!1;else for(var h=f.length;h<m.length;h++)g[h]=!0;for(var y=Math.min(m.length,f.length),w=0;w<y;w++)m.hasOwnProperty(w)||(g[w]=!0),g[w]===void 0&&u(m[w])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Sl,Bn,ii=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Gg=typeof Map<"u",Jg=typeof Set<"u",El=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Uu=ii?Symbol.for("immer-nothing"):((Sl={})["immer-nothing"]=!0,Sl),Al=ii?Symbol.for("immer-draftable"):"__$immer_draftable",Be=ii?Symbol.for("immer-state"):"__$immer_state",Zg=""+Object.prototype.constructor,un=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bu=Object.getOwnPropertyDescriptors||function(e){var t={};return un(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},bo={},qn={get:function(e,t){if(t===Be)return e;var r=$r(e);if(!cn(r,t))return function(s,a,i){var l,u=Cl(a,i);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,r,t);var n=r[t];return e.I||!pr(n)?n:n===La(e.t,t)?(Fa(e),e.o[t]=yo(e.A.h,n,e)):n},has:function(e,t){return t in $r(e)},ownKeys:function(e){return Reflect.ownKeys($r(e))},set:function(e,t,r){var n=Cl($r(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var s=La($r(e),t),a=s==null?void 0:s[Be];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;
227if(zu(r,s)&&(r!==void 0||cn(e.t,t)))return!0;Fa(e),wr(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return La(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Fa(e),wr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=$r(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){zt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zt(12)}},Rn={};qr(qn,function(e,t){Rn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Rn.deleteProperty=function(e,t){return Rn.set.call(this,e,t,void 0)},Rn.set=function(e,t,r){return qn.set.call(this,e[0],t,r,e[0])};var Yg=function(){function e(r){var n=this;this.O=El,this.D=!0,this.produce=function(s,a,i){if(typeof s=="function"&&typeof a!="function"){var l=a;a=s;var u=n;return function(v){var h=this;v===void 0&&(v=l);for(var y=arguments.length,w=Array(y>1?y-1:0),j=1;j<y;j++)w[j-1]=arguments[j];return u.produce(v,function(S){var A;return(A=a).call.apply(A,[h,S].concat(w))})}}var c;if(typeof a!="function"&&zt(6),i!==void 0&&typeof i!="function"&&zt(7),pr(s)){var d=bl(n),f=yo(n,s,void 0),m=!0;try{c=a(f),m=!1}finally{m?ks(d):vo(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(v){return _a(d,i),Ma(v,d)},function(v){throw ks(d),v}):(_a(d,i),Ma(c,d))}if(!s||typeof s!="object"){if((c=a(s))===void 0&&(c=s),c===Uu&&(c=void 0),n.D&&ai(c,!0),i){var g=[],x=[];er("Patches").M(s,c,g,x),i(g,x)}return c}zt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];return n.produceWithPatches(c,function(g){return s.apply(void 0,[g].concat(f))})};var i,l,u=n.produce(s,a,function(c,d){i=c,l=d});return typeof Promise<"u"&&u instanceof Promise?u.then(function(c){return[c,i,l]}):[u,i,l]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){pr(r)||zt(8),kr(r)&&(r=Qg(r));var n=bl(this),s=yo(this,r,void 0);return s[Be].C=!0,vo(n),s},t.finishDraft=function(r,n){var s=r&&r[Be],a=s.A;return _a(a,n),Ma(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!El&&zt(20),this.O=r},t.applyPatches=function(r,n){var s;for(s=n.length-1;s>=0;s--){var a=n[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(n=n.slice(s+1));var i=er("Patches").$;return kr(r)?i(r,n):this.produce(r,function(l){return i(l,n)})},e}(),Tt=new Yg,qu=Tt.produce;Tt.produceWithPatches.bind(Tt);Tt.setAutoFreeze.bind(Tt);Tt.setUseProxies.bind(Tt);Tt.applyPatches.bind(Tt);Tt.createDraft.bind(Tt);Tt.finishDraft.bind(Tt);function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function Xg(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e1(e){var t=Xg(e,"string");return Hn(t)=="symbol"?t:t+""}function t1(e,t,r){return(t=e1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tl(Object(r),!0).forEach(function(n){t1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tl(Object(r)).forEac
227h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rs={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function r1(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Hu(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(gt(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(gt(1));return r(Hu)(e,t)}if(typeof e!="function")throw new Error(gt(2));var s=e,a=t,i=[],l=i,u=!1;function c(){l===i&&(l=i.slice())}function d(){if(u)throw new Error(gt(3));return a}function f(v){if(typeof v!="function")throw new Error(gt(4));if(u)throw new Error(gt(5));var h=!0;return c(),l.push(v),function(){if(h){if(u)throw new Error(gt(6));h=!1,c();var w=l.indexOf(v);l.splice(w,1),i=null}}}function m(v){if(!r1(v))throw new Error(gt(7));if(typeof v.type>"u")throw new Error(gt(8));if(u)throw new Error(gt(9));try{u=!0,a=s(a,v)}finally{u=!1}for(var h=i=l,y=0;y<h.length;y++){var w=h[y];w()}return v}function g(v){if(typeof v!="function")throw new Error(gt(10));s=v,m({type:Rs.REPLACE})}function x(){var v,h=f;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(gt(11));function j(){w.next&&w.next(d())}j();var S=h(j);return{unsubscribe:S}}},v[Nl]=function(){return this},v}return m({type:Rs.INIT}),n={dispatch:m,subscribe:f,getState:d,replaceReducer:g},n[Nl]=x,n}function n1(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Rs.INIT});if(typeof n>"u")throw new Error(gt(12));if(typeof r(void 0,{type:Rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gt(13))})}function s1(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var s=t[n];typeof e[s]=="function"&&(r[s]=e[s])}var a=Object.keys(r),i;try{n1(r)}catch(l){i=l}return function(u,c){if(u===void 0&&(u={}),i)throw i;for(var d=!1,f={},m=0;m<a.length;m++){var g=a[m],x=r[g],v=u[g],h=x(v,c);if(typeof h>"u")throw c&&c.type,new Error(gt(14));f[g]=h,d=d||h!==v}return d=d||a.length!==Object.keys(u).length,d?f:u}}function _s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,s){return function(){return n(s.apply(void 0,arguments))}})}function a1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var s=n.apply(void 0,arguments),a=function(){throw new Error(gt(15))},i={getState:s.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(i)});return a=_s.apply(void 0,l)(s.dispatch),Pl(Pl({},s),{},{dispatch:a})}}}function Wu(e){var t=function(n){var s=n.dispatch,a=n.getState;return function(i){return function(l){return typeof l=="function"?l(s,a,e):i(l)}}};return t}var Qu=Wu();Qu.withExtraArgument=Wu;const kl=Qu;var Ku=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(n[a]=s[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),o1=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(d){return u([c,d])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(a=c[0]&2?s.return:c[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,c[1])).done)return a;switch(s=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(d){c=[6,d],s=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hn=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e},i1=Object.defineProperty,l1=Object.defineProperties,c1=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,u1=Object.prototype.hasOwnProperty,d1=Object.prototype.propertyIsEnumerable,Il=function(e,t,r){return t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Er=function(e,t){for(var r in t||(t={}))u1.call(t,r)&&Il(e,r,t[r]);if(Ol)for(var n=0,s=Ol(t);n<s.length;n++){var r=s[n];d1.call(t,r)&&Il(e,r,t[r])}return e},Da=function(e,t){return l1(e,c1(t))},f1=function(e,t,r){return new Promise(function(n,s){var a=function(u){try{l(r.next(u))}catch(c){s(c)}},i=function(u){try{l(r.throw(u))}catch(c){s(c)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(a,i)};l((r=r.apply(e,t)).next())})},h1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_s:_s.apply(null,arguments)};function p1(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Ar(e,t){function r(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];
227if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Er(Er({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var m1=function(e){Ku(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=e.apply(this,r)||this;return Object.setPrototypeOf(s,t.prototype),s}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,hn([void 0],r[0].concat(this)))):new(t.bind.apply(t,hn([void 0],r.concat(this))))},t}(Array),g1=function(e){Ku(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var s=e.apply(this,r)||this;return Object.setPrototypeOf(s,t.prototype),s}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,hn([void 0],r[0].concat(this)))):new(t.bind.apply(t,hn([void 0],r.concat(this))))},t}(Array);function wo(e){return pr(e)?qu(e,function(){}):e}function x1(e){return typeof e=="boolean"}function v1(){return function(t){return y1(t)}}function y1(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var n=new m1;return r&&(x1(r)?n.push(kl):n.push(kl.withExtraArgument(r.extraArgument))),n}var b1=!0;function w1(e){var t=v1(),r=e||{},n=r.reducer,s=n===void 0?void 0:n,a=r.middleware,i=a===void 0?t():a,l=r.devTools,u=l===void 0?!0:l,c=r.preloadedState,d=c===void 0?void 0:c,f=r.enhancers,m=f===void 0?void 0:f,g;if(typeof s=="function")g=s;else if(p1(s))g=s1(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=i;typeof x=="function"&&(x=x(t));var v=a1.apply(void 0,x),h=_s;u&&(h=h1(Er({trace:!b1},typeof u=="object"&&u)));var y=new g1(v),w=y;Array.isArray(m)?w=hn([v],m):typeof m=="function"&&(w=m(y));var j=h.apply(void 0,w);return Hu(g,d,j)}function Gu(e){var t={},r=[],n,s={addCase:function(a,i){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[l]=i,s},addMatcher:function(a,i){return r.push({matcher:a,reducer:i}),s},addDefaultCase:function(a){return n=a,s}};return e(s),[t,r,n]}function C1(e){return typeof e=="function"}function j1(e,t,r,n){r===void 0&&(r=[]);var s=typeof t=="function"?Gu(t):[t,r,n],a=s[0],i=s[1],l=s[2],u;if(C1(e))u=function(){return wo(e())};else{var c=wo(e);u=function(){return c}}function d(f,m){f===void 0&&(f=u());var g=hn([a[m.type]],i.filter(function(x){var v=x.matcher;return v(m)}).map(function(x){var v=x.reducer;return v}));return g.filter(function(x){return!!x}).length===0&&(g=[l]),g.reduce(function(x,v){if(v)if(kr(x)){var h=x,y=v(h,m);return y===void 0?x:y}else{if(pr(x))return qu(x,function(w){return v(w,m)});var y=v(x,m);if(y===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}return x},f)}return d.getInitialState=u,d}function S1(e,t){return e+"/"+t}function Kr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:wo(e.initialState),n=e.reducers||{},s=Object.keys(n),a={},i={},l={};s.forEach(function(d){var f=n[d],m=S1(t,d),g,x;"reducer"in f?(g=f.reducer,x=f.prepare):g=f,a[d]=g,i[m]=g,l[d]=x?Ar(m,x):Ar(m)});function u(){var d=typeof e.extraReducers=="function"?Gu(e.extraReducers):[e.extraReducers],f=d[0],m=f===void 0?{}:f,g=d[1],x=g===void 0?[]:g,v=d[2],h=v===void 0?void 0:v,y=Er(Er({},m),i);return j1(r,function(w){for(var j in y)w.addCase(j,y[j]);for(var S=0,A=x;S<A.length;S++){var k=A[S];w.addMatcher(k.matcher,k.reducer)}h&&w.addDefaultCase(h)})}var c;return{name:t,reducer:function(d,f){return c||(c=u()),c(d,f)},actions:l,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var E1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",A1=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=E1[Math.random()*64|0];return t},T1=["name","message","stack","code"],Va=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Rl=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),P1=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=T1;r<n.length;r++){var s=n[r];typeof e[s]=="string"&&(t[s]=e[s])}return t}return{message:String(e)}},Kt=function(){function e(t,r,n){var s=Ar(t+"/fulfilled",function(c,d,f,m){return{payload:c,meta:Da(Er({},m||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),a=Ar(t+"/pending",function(c,d,f){return{payload:void 0,meta:Da(Er({},f||{}),{arg:d,requestId:c,requestStatus:"pending"})}}),i=Ar(t+"/rejected",function(c,d,f,m,g){return{payload:m,error:(n&&n.serializeError||P1)(c||"Rejected"),meta:Da(Er({},g||{}),{arg:f,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),l=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function u(c){return function(d,f,m){var g=n!=null&&n.idGenerator?n.idGenerator(c):A1(),x=new l,v;function h(w){v=w,x.abort()}var y=function(){return f1(this,null,function(){var w,j,S,A,k,N,R;return o1(this,function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),A=(w=n==null?void 0:n.condition)==null?void 0:w.call(n,c,{getState:f,extra:m}),k1(A)?[4,A]:[3,2];case 1:A=O.sent(),O.label=2;case 2:if(A===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return k=new Promise(function(I,z){return x.signal.addEventListener("abort",function(){return z({name:"AbortError",message:v||"Aborted"})})}),d(a(g,c,(j=n==null?void 0:n.getPendingMeta)==null?void 0:j.call(n,{requestId:g,arg:c},{getState:f,extra:m}))),[4,Promise.race([k,Promise.resolve(r(c,{dispatch:d,getState:f,extra:m,requestId:g,signal:x.signal,abort:h,rejectWithValue:function(I,z){return new Va(I,z)},fulfillWithValue:function(I,z){return new Rl(I,z)}})).then(function(I){if(I instanceof Va)throw I;return I instanceof Rl?s(I.payload,g,c,I.meta):s(I,g,c)})])];case 3:return S=O.sent(),[3,5];case 4:return N=O.sent(),S=N instanceof Va?i(null,g,c,N.payload,N.meta):i(N,g,c),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&i.match(S)&&S.meta.condition,R||d(S),[2,S]}})})}();return Object.assign(y,{abort:h,requestId:g,arg:c,unwrap:function(){return y.then(N1)}})}}return Object.assign(u,{pending:a,rejected:i,fulfilled:s,typePrefix:t})}return e.withTypes=function(){return e},e}();function N1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function k1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var li="listenerMiddleware";Ar(li+"/add");Ar(li+"/removeAll");Ar(li+"/remove");var _l;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);Kg();function vn(){return{domain:window.location.host.split(":")[0]}}const O1=["localhost","127.0.0.1"],I1=/^(10\.|127\.|192\.168\.|172\.(1[6-9]|2\d|3[01])\.)\d/,R1=/(\.pages\.dev|\.vercel\.app)$/;function _1(){return({VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_DEV_DOMAINS??"").split(",").map(t=>
227t.trim()).filter(Boolean)}function M1(e){var r;if(O1.includes(e)||I1.test(e)||R1.test(e))return!0;const t=(r={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_HOST_DOMAIN)==null?void 0:r.split(":")[0];return t&&e===t?!0:_1().includes(e)}function Zn(e,t){return M1(e)?t:e}function Co(e){this.message=e}Co.prototype=new Error,Co.prototype.name="InvalidCharacterError";var Ml=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Co("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,s=0,a=0,i="";n=t.charAt(a++);~n&&(r=s%4?64*r+n:n,s++%4)?i+=String.fromCharCode(255&r>>(-2*s&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return i};function L1(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(Ml(r).replace(/(.)/g,function(n,s){var a=s.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}(t)}catch{return Ml(t)}}function Ms(e){this.message=e}function Ls(e,t){if(typeof e!="string")throw new Ms("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(L1(e.split(".")[r]))}catch(n){throw new Ms("Invalid token specified: "+n.message)}}Ms.prototype=new Error,Ms.prototype.name="InvalidTokenError";function Ju(e,t){return function(){return e.apply(t,arguments)}}const{toString:F1}=Object.prototype,{getPrototypeOf:ci}=Object,{iterator:ya,toStringTag:Zu}=Symbol,ba=(e=>t=>{const r=F1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gt=e=>(e=e.toLowerCase(),t=>ba(t)===e),wa=e=>t=>typeof t===e,{isArray:yn}=Array,pn=wa("undefined");function Yn(e){return e!==null&&!pn(e)&&e.constructor!==null&&!pn(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yu=Gt("ArrayBuffer");function $1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yu(e.buffer),t}const D1=wa("string"),jt=wa("function"),Xu=wa("number"),Xn=e=>e!==null&&typeof e=="object",V1=e=>e===!0||e===!1,ms=e=>{if(ba(e)!=="object")return!1;const t=ci(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Zu in e)&&!(ya in e)},z1=e=>{if(!Xn(e)||Yn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},U1=Gt("Date"),B1=Gt("File"),q1=Gt("Blob"),H1=Gt("FileList"),W1=e=>Xn(e)&&jt(e.pipe),Q1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jt(e.append)&&((t=ba(e))==="formdata"||t==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},K1=Gt("URLSearchParams"),[G1,J1,Z1,Y1]=["ReadableStream","Request","Response","Headers"].map(Gt),X1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function es(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),yn(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Yn(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function ed(e,t){if(Yn(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const Vr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),td=e=>!pn(e)&&e!==Vr;function jo(){const{caseless:e,skipUndefined:t}=td(this)&&this||{},r={},n=(s,a)=>{const i=e&&ed(r,a)||a;ms(r[i])&&ms(s)?r[i]=jo(r[i],s):ms(s)?r[i]=jo({},s):yn(s)?r[i]=s.slice():(!t||!pn(s))&&(r[i]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&es(arguments[s],n);return r}const e0=(e,t,r,{allOwnKeys:n}={})=>(es(t,(s,a)=>{r&&jt(s)?e[a]=Ju(s,r):e[a]=s},{allOwnKeys:n}),e),t0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r0=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},n0=(e,t,r,n)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&ci(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},s0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},a0=e=>{if(!e)return null;if(yn(e))return e;let t=e.length;if(!Xu(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},o0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ci(Uint8Array)),i0=(e,t)=>{const n=(e&&e[ya]).call(e);let s;for(;(s=n.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},l0=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},c0=Gt("HTMLFormElement"),u0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Ll=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),d0=Gt("RegExp"),rd=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};es(r,(s,a)=>{let i;(i=t(s,a,e))!==!1&&(n[a]=i||s)}),Object.defineProperties(e,n)},f0=e=>{rd(e,(t,r)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];
227if(jt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},h0=(e,t)=>{const r={},n=s=>{s.forEach(a=>{r[a]=!0})};return yn(e)?n(e):n(String(e).split(t)),r},p0=()=>{},m0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function g0(e){return!!(e&&jt(e.append)&&e[Zu]==="FormData"&&e[ya])}const x0=e=>{const t=new Array(10),r=(n,s)=>{if(Xn(n)){if(t.indexOf(n)>=0)return;if(Yn(n))return n;if(!("toJSON"in n)){t[s]=n;const a=yn(n)?[]:{};return es(n,(i,l)=>{const u=r(i,s+1);!pn(u)&&(a[l]=u)}),t[s]=void 0,a}}return n};return r(e,0)},v0=Gt("AsyncFunction"),y0=e=>e&&(Xn(e)||jt(e))&&jt(e.then)&&jt(e.catch),nd=((e,t)=>e?setImmediate:t?((r,n)=>(Vr.addEventListener("message",({source:s,data:a})=>{s===Vr&&a===r&&n.length&&n.shift()()},!1),s=>{n.push(s),Vr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",jt(Vr.postMessage)),b0=typeof queueMicrotask<"u"?queueMicrotask.bind(Vr):typeof process<"u"&&process.nextTick||nd,w0=e=>e!=null&&jt(e[ya]),M={isArray:yn,isArrayBuffer:Yu,isBuffer:Yn,isFormData:Q1,isArrayBufferView:$1,isString:D1,isNumber:Xu,isBoolean:V1,isObject:Xn,isPlainObject:ms,isEmptyObject:z1,isReadableStream:G1,isRequest:J1,isResponse:Z1,isHeaders:Y1,isUndefined:pn,isDate:U1,isFile:B1,isBlob:q1,isRegExp:d0,isFunction:jt,isStream:W1,isURLSearchParams:K1,isTypedArray:o0,isFileList:H1,forEach:es,merge:jo,extend:e0,trim:X1,stripBOM:t0,inherits:r0,toFlatObject:n0,kindOf:ba,kindOfTest:Gt,endsWith:s0,toArray:a0,forEachEntry:i0,matchAll:l0,isHTMLForm:c0,hasOwnProperty:Ll,hasOwnProp:Ll,reduceDescriptors:rd,freezeMethods:f0,toObjectSet:h0,toCamelCase:u0,noop:p0,toFiniteNumber:m0,findKey:ed,global:Vr,isContextDefined:td,isSpecCompliantForm:g0,toJSONObject:x0,isAsyncFn:v0,isThenable:y0,setImmediate:nd,asap:b0,isIterable:w0};function we(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}M.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const sd=we.prototype,ad={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ad[e]={value:e}});Object.defineProperties(we,ad);Object.defineProperty(sd,"isAxiosError",{value:!0});we.from=(e,t,r,n,s,a)=>{const i=Object.create(sd);M.toFlatObject(e,i,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return we.call(i,l,u,r,n,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};const C0=null;function So(e){return M.isPlainObject(e)||M.isArray(e)}function od(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function Fl(e,t,r){return e?e.concat(t).map(function(s,a){return s=od(s),!r&&a?"["+s+"]":s}).join(r?".":""):t}function j0(e){return M.isArray(e)&&!e.some(So)}const S0=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Ca(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,h){return!M.isUndefined(h[v])});const n=r.metaTokens,s=r.visitor||d,a=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(s))throw new TypeError("visitor must be a function");
vendor: 11,119 bytes, lines 227-229
227function c(x){if(x===null)return"";if(M.isDate(x))return x.toISOString();if(M.isBoolean(x))return x.toString();if(!u&&M.isBlob(x))throw new we("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(x)||M.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,v,h){let y=x;if(x&&!h&&typeof x=="object"){if(M.endsWith(v,"{}"))v=n?v:v.slice(0,-2),x=JSON.stringify(x);else if(M.isArray(x)&&j0(x)||(M.isFileList(x)||M.endsWith(v,"[]"))&&(y=M.toArray(x)))return v=od(v),y.forEach(function(j,S){!(M.isUndefined(j)||j===null)&&t.append(i===!0?Fl([v],S,a):i===null?v:v+"[]",c(j))}),!1}return So(x)?!0:(t.append(Fl(h,v,a),c(x)),!1)}const f=[],m=Object.assign(S0,{defaultVisitor:d,convertValue:c,isVisitable:So});function g(x,v){if(!M.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(x),M.forEach(x,function(y,w){(!(M.isUndefined(y)||y===null)&&s.call(t,y,M.isString(w)?w.trim():w,v,m))===!0&&g(y,v?v.concat(w):[w])}),f.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return g(e),t}function $l(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ui(e,t){this._pairs=[],e&&Ca(e,this,t)}const id=ui.prototype;id.append=function(t,r){this._pairs.push([t,r])};id.toString=function(t){const r=t?function(n){return t.call(this,n,$l)}:$l;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function E0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ld(e,t,r){if(!t)return e;const n=r&&r.encode||E0;M.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(t,r):a=M.isURLSearchParams(t)?t.toString():new ui(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class A0{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Dl=A0,cd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},T0=typeof URLSearchParams<"u"?URLSearchParams:ui,P0=typeof FormData<"u"?FormData:null,N0=typeof Blob<"u"?Blob:null,k0={isBrowser:!0,classes:{URLSearchParams:T0,FormData:P0,Blob:N0},protocols:["http","https","file","blob","url","data"]},di=typeof window<"u"&&typeof document<"u",Eo=typeof navigator=="object"&&navigator||void 0,O0=di&&(!Eo||["ReactNative","NativeScript","NS"].indexOf(Eo.product)<0),I0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),R0=di&&window.location.href||"http://localhost",_0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:di,hasStandardBrowserEnv:O0,hasStandardBrowserWebWorkerEnv:I0,navigator:Eo,origin:R0},Symbol.toStringTag,{value:"Module"})),xt={..._0,...k0};function M0(e,t){return Ca(e,new xt.classes.URLSearchParams,{visitor:function(r,n,s,a){return xt.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function L0(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function F0(e){const t={},r=Object.keys(e);let n;const s=r.length;let a;for(n=0;n<s;n++)a=r[n],t[a]=e[a];return t}function ud(e){function t(r,n,s,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=a>=r.length;return i=!i&&M.isArray(s)?s.length:i,u?(M.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!l):((!s[i]||!M.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],a)&&M.isArray(s[i])&&(s[i]=F0(s[i])),!l)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,s)=>{t(L0(n),s,r,0)}),r}return null}function $0(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fi={transitional:cd,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return s?JSON.stringify(ud(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return M0(t,this.formSerializer).toString();if((l=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ca(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),$0(t)):t}],transformResponse:[function(t){const r=this.transitional||fi.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?we.from(l,we.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{fi.headers[e]={}});const hi=fi,D0=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V0=e=>{const t={};let r,n,s;return e&&e.split(` 228`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&D0[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Vl=Symbol("internals");function En(e){return e&&String(e).trim().toLowerCase()}function gs(e){return e===!1||e==null?e:M.isArray(e)?e.map(gs):String(e)}function z0(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const U0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function za(e,t,r,n,s){if(M.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function B0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function q0(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,a,i){return this[n].call(this,t,s,a,i)},configurable:!0})})}let ja=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function a(l,u,c){const d=En(u);if(!d)throw new Error("header name must be a non-empty string");const f=M.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=gs(l))}const i=(l,u)=>M.forEach(l,(c,d)=>a(c,d,u));if(M.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(M.isString(t)&&(t=t.trim())&&!U0(t))i(V0(t),r);else if(M.isObject(t)&&M.isIterable(t)){let l={},u,c;for(const d of t){if(!M.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(u=l[c])?M.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}i(l,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=En(t),t){const n=M.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return z0(s);if(M.isFunction(r))return r.call(this,s,n);if(M.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=En(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||za(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function a(i){if(i=En(i),i){const l=M.findKey(n,i);l&&(!r||za(n,n[l],l,r))&&(delete n[l],s=!0)}}return M.isArray(t)?t.forEach(a):a(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const a=r[n];(!t||za(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const r=this,n={};return M.forEach(this,(s,a)=>{const i=M.findKey(n,a);if(i){r[i]=gs(s),delete r[a];return}const l=t?B0(a):String(a).trim();l!==a&&delete r[a],r[l]=gs(s),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 229`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Vl]=this[Vl]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=En(i);n[l]||(q0(s,i),n[l]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};ja.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(ja.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(ja);const Ht=ja;function Ua(e,t){const r=this||hi,n=t||r,s=Ht.from(n.headers);let a=n.data;return M.forEach(e,function(l){a=l.call(r,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function dd(e){return!!(e&&e.__CANCEL__)}function bn(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}M.inherits(bn,we,{__CANCEL__:!0});function fd(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function H0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function W0(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=n[a];i||(i=c),r[s]=u,n[s]=c;let f=a,m=0;for(;f!==s;)m+=r[f++],f=f%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-i<t)return;const g=d&&c-d;return g?Math.round(m*1e3/g):void 0}}function Q0(e,t){let r=0,n=1e3/t,s,a;const i=(c,d=Date.now())=>{r=d,s=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-r;f>=n?i(c,d):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},n-f)))},()=>s&&i(s)]}const Fs=(e,t,r=3)=>{let n=0;const s=W0(50,250);return Q0(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,u=i-n,c=s(u),d=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},zl=(e,t)=>
vendor: 14,919 bytes, lines 229-232
229{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ul=e=>(...t)=>M.asap(()=>e(...t)),K0=xt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,xt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(xt.origin),xt.navigator&&/(msie|trident)/i.test(xt.navigator.userAgent)):()=>!0,G0=xt.hasStandardBrowserEnv?{write(e,t,r,n,s,a,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&l.push(`path=${n}`),M.isString(s)&&l.push(`domain=${s}`),a===!0&&l.push("secure"),M.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function J0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Z0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hd(e,t,r){let n=!J0(t);return e&&(n||r==!1)?Z0(e,t):t}const Bl=e=>e instanceof Ht?{...e}:e;function Hr(e,t){t=t||{};const r={};function n(c,d,f,m){return M.isPlainObject(c)&&M.isPlainObject(d)?M.merge.call({caseless:m},c,d):M.isPlainObject(d)?M.merge({},d):M.isArray(d)?d.slice():d}function s(c,d,f,m){if(M.isUndefined(d)){if(!M.isUndefined(c))return n(void 0,c,f,m)}else return n(c,d,f,m)}function a(c,d){if(!M.isUndefined(d))return n(void 0,d)}function i(c,d){if(M.isUndefined(d)){if(!M.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function l(c,d,f){if(f in t)return n(c,d);if(f in e)return n(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d,f)=>s(Bl(c),Bl(d),f,!0)};return M.forEach(Object.keys({...e,...t}),function(d){const f=u[d]||s,m=f(e[d],t[d],d);M.isUndefined(m)&&f!==l||(r[d]=m)}),r}const pd=e=>{const t=Hr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=Ht.from(i),t.url=ld(hd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),M.isFormData(r)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&i.set(d,f)})}}if(xt.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&K0(t.url))){const u=s&&a&&G0.read(a);u&&i.set(s,u)}return t},Y0=typeof XMLHttpRequest<"u",X0=Y0&&function(e){return new Promise(function(r,n){const s=pd(e);let a=s.data;const i=Ht.from(s.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=s,d,f,m,g,x;function v(){g&&g(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function y(){if(!h)return;const j=Ht.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:j,config:e,request:h};fd(function(N){r(N),v()},function(N){n(N),v()},A),h=null}"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(y)},h.onabort=function(){h&&(n(new we("Request aborted",we.ECONNABORTED,e,h)),h=null)},h.onerror=function(S){const A=S&&S.message?S.message:"Network Error",k=new we(A,we.ERR_NETWORK,e,h);k.event=S||null,n(k),h=null},h.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||cd;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),n(new we(S,A.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h)),h=null},a===void 0&&i.setContentType(null),"setRequestHeader"in h&&M.forEach(i.toJSON(),function(S,A){h.setRequestHeader(A,S)}),M.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),l&&l!=="json"&&(h.responseType=s.responseType),c&&([m,x]=Fs(c,!0),h.addEventListener("progress",m)),u&&h.upload&&([f,g]=Fs(u),h.upload.addEventListener("progress",f),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(d=j=>{h&&(n(!j||j.type?new bn(null,e,h):j),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const w=H0(s.url);if(w&&xt.protocols.indexOf(w)===-1){n(new we("Unsupported protocol "+w+":",we.ERR_BAD_REQUEST,e));return}h.send(a||null)})},ex=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const a=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;n.abort(d instanceof we?d:new bn(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,a(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:u}=n;return u.unsubscribe=()=>M.asap(l),u}},tx=ex,rx=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},nx=async function*(e,t){for await(const r of sx(e))yield*rx(r,t)},sx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},ql=(e,t,r,n)=>{const s=nx(e,t);let a=0,i,l=u=>{i||(i=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let f=d.byteLength;if(r){let m=a+=f;r(m)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},Hl=64*1024,{isFunction:as}=M,ax=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:Wl,TextEncoder:Ql}=M.global,Kl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ox=e=>{e=M.merge.call({skipUndefined:!0},ax,e);const{fetch:t,Request:r,Response:n}=e,s=t?as(t):typeof fetch=="function",a=as(r),i=as(n);if(!s)return!1;const l=s&&as(Wl),u=s&&(typeof Ql=="function"?(x=>v=>x.encode(v))(new Ql):async x=>new Uint8Array(await new r(x).arrayBuffer())),c=a&&l&&Kl(()=>{let x=!1;const v=new r(xt.origin,{body:new Wl,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!v}),d=i&&l&&Kl(()=>M.isReadableStream(new n("").body)),f={stream:d&&(x=>x.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!f[x]&&(f[x]=(v,h)=>{let y=v&&v[x];if(y)return y.call(v);throw new we(`Response type '${x}' is not supported`,we.ERR_NOT_SUPPORT,h)})});const m=async x=>{if(x==null)return 0;if(M.isBlob(x))return x.size;if(M.isSpecCompliantForm(x))return(await new r(xt.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(M.isArrayBufferView(x)||M.isArrayBuffer(x))return x.byteLength;if(M.isURLSearchParams(x)&&(x=x+""),M.isString(x))return(await u(x)).byteLength},g=async(x,v)=>{const h=M.toFiniteNumber(x.getContentLength());return h??m(v)};return async x=>{let{url:v,method:h,data:y,signal:w,cancelToken:j,timeout:S,onDownloadProgress:A,onUploadProgress:k,responseType:N,headers:R,withCredentials:O="same-origin",fetchOptions:I}=pd(x),z=t||fetch;N=N?(N+"").toLowerCase():"text";let T=tx([w,j&&j.toAbortSignal()],S),_=null;const V=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let ee;try{if(k&&c&&h!=="get"&&h!=="head"&&(ee=await g(R,y))!==0){let se=new r(v,{method:"POST",body:y,duplex:"half"}),B;if(M.isFormData(y)&&(B=se.headers.get("content-type"))&&R.setContentType(B),se.body){const[le,ve]=zl(ee,Fs(Ul(k)));y=ql(se.body,Hl,le,ve)}}M.isString(O)||(O=O?"include":"omit");const H=a&&"credentials"in r.prototype,q={...I,signal:T,method:h.toUpperCase(),headers:R.normalize().toJSON(),body:y,duplex:"half",credentials:H?O:void 0};_=a&&new r(v,q);let Y=await(a?z(_,I):z(v,q));const Z=d&&(N==="stream"||N==="response");if(d&&(A||Z&&V)){const se={};["status","statusText","headers"].forEach(Ee=>{se[Ee]=Y[Ee]});const B=M.toFiniteNumber(Y.headers.get("content-length")),[le,ve]=A&&zl(B,Fs(Ul(A),!0))||[];Y=new n(ql(Y.body,Hl,le,()=>{ve&&ve(),V&&V()}),se)}N=N||"text";let ie=await f[M.findKey(f,N)||"text"](Y,x);return!Z&&V&&V(),await new Promise((se,B)=>{fd(se,B,{data:ie,headers:Ht.from(Y.headers),status:Y.status,statusText:Y.statusText,config:x,request:_})})}catch(H){throw V&&V(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,x,_),{cause:H.cause||H}):we.from(H,H&&H.code,x,_)}}},ix=new Map,md=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,a=[n,s,r];let i=a.length,l=i,u,c,d=ix;for(;l--;)u=a[l],c=d.get(u),c===void 0&&d.set(u,c=l?new Map:ox(t)),d=c;return c};md();const pi={http:C0,xhr:X0,fetch:{get:md}};M.forEach(pi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gl=e=>`- ${e}`,lx=e=>M.isFunction(e)||e===null||e===!1;function cx(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,s;const a={};for(let i=0;i<r;i++){n=e[i];let l;if(s=n,!lx(n)&&(s=pi[(l=String(n)).toLowerCase()],s===void 0))throw new we(`Unknown adapter '${l}'`);if(s&&(M.isFunction(s)||(s=s.get(t))))break;a[l||"#"+i]=s}if(!s){const i=Object.entries(a).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=r?i.length>1?`since : 230`+i.map(Gl).join(` 231`):" "+Gl(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s}const gd={getAdapter:cx,adapters:pi};function Ba(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bn(null,e)}function Jl(e){return Ba(e),e.headers=Ht.from(e.headers),e.data=Ua.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gd.getAdapter(e.adapter||hi.adapter,e)(e).then(function(n){return Ba(e),n.data=Ua.call(e,e.transformResponse,n),n.headers=Ht.from(n.headers),n},function(n){return dd(n)||(Ba(e),n&&n.response&&(n.response.data=Ua.call(e,e.transformResponse,n.response),n.response.headers=Ht.from(n.response.headers))),Promise.reject(n)})}const xd="1.13.2",Sa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Zl={};Sa.transitional=function(t,r,n){function s(a,i){return"[Axios v"+xd+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new we(s(i," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!Zl[i]&&(Zl[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};Sa.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ux(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const a=n[s],i=t[a];if(i){const l=e[a],u=l===void 0||i(l,a,e);if(u!==!0)throw new we("option "+a+" must be "+u,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+a,we.ERR_BAD_OPTION)}}const xs={assertOptions:ux,validators:Sa},Zt=xs.validators;let $s=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dl,response:new Dl}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` 232`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Hr(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:a}=r;n!==void 0&&xs.assertOptions(n,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},!1),s!=null&&(M.isFunction(s)?r.paramsSerializer={serialize:s}:xs.assertOptions(s,{encode:Zt.function,serialize:Zt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),xs.assertOptions(r,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],x=>{delete a[x]}),r.headers=Ht.concat(i,a);const l=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(u=u&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,m;if(!u){const x=[Jl.bind(this),void 0];for(x.unshift(...l),x.push(...c),m=x.length,d=Promise.resolve(r);f<m;)d=d.then(x[f++],x[f++]);return d}m=l.length;let g=r;for(;f<m;){const x=l[f++],v=l[f++];try{g=x(g)}catch(h){v.call(this,h);break}}try{d=Jl.call(this,g)}catch(x){return Promise.reject(x)}for(f=0,m=c.length;f<m;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Hr(this.defaults,t);const r=hd(t.baseURL,t.url,t.allowAbsoluteUrls);return ld(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){$s.prototype[t]=function(r,n){return this.request(Hr(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Hr(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}$s.prototype[t]=r(),$s.prototype[t+"Form"]=r(!0)});const vs=$s;let dx=class vd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(s=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](s);n._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(s);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new bn(a,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
232subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new vd(function(s){t=s}),cancel:t}}};const fx=dx;function hx(e){return function(r){return e.apply(null,r)}}function px(e){return M.isObject(e)&&e.isAxiosError===!0}const Ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ao).forEach(([e,t])=>{Ao[t]=e});const mx=Ao;function yd(e){const t=new vs(e),r=Ju(vs.prototype.request,t);return M.extend(r,vs.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return yd(Hr(e,s))},r}const ot=yd(hi);ot.Axios=vs;ot.CanceledError=bn;ot.CancelToken=fx;ot.isCancel=dd;ot.VERSION=xd;ot.toFormData=Ca;ot.AxiosError=we;ot.Cancel=ot.CanceledError;ot.all=function(t){return Promise.all(t)};ot.spread=hx;ot.isAxiosError=px;ot.mergeConfig=Hr;ot.AxiosHeaders=Ht;ot.formToJSON=e=>ud(M.isHTMLForm(e)?new FormData(e):e);ot.getAdapter=gd.getAdapter;ot.HttpStatusCode=mx;ot.default=ot;const fr=ot,{Axios:nC,AxiosError:sC,CanceledError:aC,isCancel:oC,CancelToken:iC,VERSION:lC,all:cC,Cancel:uC,isAxiosError:dC,spread:fC,toFormData:hC,AxiosHeaders:bd,HttpStatusCode:pC,formToJSON:mC,getAdapter:gC,mergeConfig:xC}=fr;let qa=!1,To=[];const Yl=(e,t)=>{To.forEach(({resolve:r,reject:n})=>e?n(e):r(t)),To=[]},wd=e=>(e.interceptors.request.use(t=>{const r=Re.getInstance().getJwtToken();return r&&(t.headers.Authorization=`Bearer ${r}`),t},t=>Promise.reject(t)),e.interceptors.response.use(t=>t,async t=>{var l,u;const r=t.config;if(((l=t.response)==null?void 0:l.status)!==401||r!=null&&r._retry||(u=r==null?void 0:r.url)!=null&&u.includes("auth/refresh"))return Promise.reject(t);const n=Re.getInstance().getRefreshJwtToken();if(!n)return Re.getInstance().logout(),Promise.reject(t);if(qa)return new Promise((c,d)=>{To.push({resolve:c,reject:d})}).then(c=>(r.headers.Authorization=`Bearer ${c}`,fr(r)));r._retry=!0,qa=!0;const s=window.location.host.split(":")[0],a={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"",i=r.baseURL??"";return new Promise((c,d)=>{fr.post(`${i}auth/refresh`,{domain:s==="127.0.0.1"||s==="localhost"?a:s},{headers:{Authorization:`Bearer ${n}`}}).then(f=>{const{token:m,refreshToken:g}=f.data;Re.getInstance().login(m,g),localStorage.setItem("7azFrontToken",m),localStorage.setItem("7azFrontRefreshToken",g),r.headers.Authorization=`Bearer ${m}`,Yl(null,m),c(fr(r))}).catch(f=>{Yl(f,null),Re.getInstance().logout(),d(f)}).finally(()=>{qa=!1})})}),e),gx=(e,t={})=>{const r=fr.create({...e.defaults,headers:new bd({...e.defaults.headers,...t.headers})});return t.responseType&&(r.defaults.responseType=t.responseType),wd(r)},rr=wd(fr.create({baseURL:"/api/",headers:{"Content-Type":"application/json"}}));rr.withToken=e=>{const t=fr.create({...rr.defaults});return t.defaults.headers.common.Authorization=`Bearer ${e}`,t};rr.asBlob=()=>gx(rr,{responseType:"blob",headers:new bd({"Cache-Control":"no-cache",Pragma:"no-cache"})});const de=()=>rr,xx=()=>rr,vx=()=>rr,mi=()=>rr.asBlob(),Cd=()=>rr,Fe=e=>rr.withToken(e),vC=()=>fr.create({baseURL:"/ip"}),Ds=(e,t=null)=>t?[]:e,gi=e=>de().get(`contracts/${e||"active"}`),yC=(e,t)=>Fe(e).get(`/embed/contrato/${t}`),bC=e=>Fe(e).get("/contracts"),wC=e=>de().get(`documents/${e}`),CC=e=>de().get(`documents/${e}/validate`),jC=(e,t)=>de().put(`documents/${e}/sign`,t),SC=(e,t)=>de().put(`documents/${e}/accept`,t),EC=(e,t,r)=>de().post(`documents/${e}/send-code`,{signatureMethod:t,mailSelected:r}),yx=async()=>{try{const e=await de().get("documents");return Ds(e)}catch{return[]}},AC=e=>de().get(`contracts/${e}/authentication-accountings`),TC=(e,t)=>mi().get(`contracts/${e}/documents/${t}/pdf`),jd=async()=>{const e=await de().get("contracts");return Ds(e)},PC=async e=>{try{const t=await Fe(e).get("contracts");return Ds(t)}catch(t){return Ds(null,t)}}
232,NC=e=>de().post(`contracts/${e}/unlock`,{}),Xl=async e=>await de().post(`documents/${e}/activate`,{}),kC=async()=>de().get("tickets"),OC=(e,t)=>de().post("tickets",{description:e,erpContractId:`${t}`}),IC=(e,t,r,n,s)=>s&&(t==="3"||t===3)?de().post(`contracts/${e}/change-smart-checkout-payment-method`,{newCollectionType:3,cardData:r,recaptchaToken:n}):t==="3"||t===3?de().post(`contracts/${e}/change-payment-method`,{newCollectionType:3,cardData:r,recaptchaToken:n}):t==="4"||t===4?de().post(`contracts/${e}/change-payment-method`,{newCollectionType:4,debitAccountData:r,recaptchaToken:n}):t==="9"||t===9?de().post(`contracts/${e}/automatic-pix-authorizations`,{newCollectionType:9,recaptchaToken:n}):de().post(`contracts/${e}/change-payment-method`,{newCollectionType:Number(t),cardData:{},recaptchaToken:n}),RC=(e,t,r,n,s,a)=>a&&(t==="3"||t===3)?Fe(s).post(`embed/contrato/${e}/bsc/alterar-forma-pagamento`,{newCollectionType:3,cardData:r,recaptchaToken:n}):t==="3"||t===3?Fe(s).post(`embed/contrato/${e}/alterar-forma-pagamento`,{newCollectionType:3,cardData:r,recaptchaToken:n}):t==="4"||t===4?Fe(s).post(`embed/contrato/${e}/alterar-forma-pagamento`,{newCollectionType:4,debitAccountData:r,recaptchaToken:n}):t==="9"||t===9?Fe(s).post(`embed/contrato/${e}/automatic-pix-authorizations`,{newCollectionType:9,recaptchaToken:n}):Fe(s).post(`embed/contrato/${e}/alterar-forma-pagamento`,{newCollectionType:Number(t),cardData:{},recaptchaToken:n}),_C=(e,t)=>Fe(e).get(`/embed/venda/${t}`),MC=(e,t,r,n,s)=>t==="9"||t===9?Fe(s).post(`embed/venda/${e}/automatic-pix-authorizations`,{newCollectionType:9,recaptchaToken:n}):t==="3"||t===3?Fe(s).post(`embed/venda/${e}/alterar-forma-pagamento`,{newCollectionType:3,cardData:r,recaptchaToken:n}):t==="4"||t===4?Fe(s).post(`embed/venda/${e}/alterar-forma-pagamento`,{newCollectionType:4,debitAccountData:r,recaptchaToken:n}):Fe(s).post(`embed/venda/${e}/alterar-forma-pagamento`,{newCollectionType:Number(t),cardData:{},recaptchaToken:n}),LC=(e,t,r,n,s=!1)=>Fe(n).post(`contracts/${e}/${s?"change-smart-checkout-payment-method":"change-payment-method"}`,{newCollectionType:3,cardData:t,recaptchaToken:r}),FC=(e,t,r)=>Fe(r).post(`contracts/${e}/automatic-pix-authorizations`,{newCollectionType:9,recaptchaToken:t}),$C=(e,t,r,n)=>Fe(n).post(`embed/venda/${e}/alterar-forma-pagamento`,{newCollectionType:3,cardData:t,recaptchaToken:r}),DC=(e,t,r)=>Fe(r).post(`embed/venda/${e}/automatic-pix-authorizations`,{newCollectionType:9,recaptchaToken:t}),VC=async(e,t)=>{try{return(await de().get(`contracts/${e}/phone-calls?competence=${t}`)).data}catch{return[]}},zC=async(e,t)=>(await de().get(`contracts/${e}/export-phone-calls`,{params:{competence:t},responseType:"arraybuffer"})).data,UC=async e=>{try{return(await de().get(`contracts/${e}/phone-plan`)).data}catch{return[]}},BC=async()=>{try{return(await de().get("filters/telephony-recharge-values")).data}catch{return[]}},qC=async e=>{try{const t=JSON.parse(e);return(await de().post(`contracts/${t.erpContractId}/phone-plan/${t.planId}`,{description:t==null?void 0:t.label,rechargeValue:t==null?void 0:t.value})).data}catch{return[]}},HC=async()=>{try{return(await de().get("contracts/prepaid")).data}catch{return[]}},WC=async(e,t,r)=>{try{return(await de().post("contracts/prepaid/negotiate",{erpContractId:e,fromDate:t,toDate:r})).data}catch{return[]}},bx={activeContract:{},contracts:[],loading:!0,rejected:!1,reloadContracts:!1,switchingContract:!1},Ha=Kt("contracts/fetchContracts",async()=>await jd()),wx=Kt("contracts/fetchContract",async e=>await gi(e)),Sd=Kt("contracts/updateActiveContract",async e=>(await gi(e)).data),Ed=Kr({name:"contracts",initialState:bx,reducers:{setActiveContractAction:(e,t)=>{e.activeContract=t.payload},setContractsAction:(e,t)=>{t.payload===""?e.contracts=[]:e.contracts=t.payload},clearContractsAction:e=>{e.activeContract={},e.contracts=[],e.reloadContracts=!1},setReloadSignContractsAction:(e,t)=>{e.reloadContracts=t.payload},setSwitchingContractAction:(e,t)=>{e.switchingContract=t.payload},setLoadingFalseAction:(e,t)=>{e.loading=t.payload}},extraReducers:e=>{e.addCase(Ha.fulfilled,(t,r)=>{t.contracts=r.payload.data,t.loading=!1,t.rejected=!1,t.reloadContracts=!1}),e.addCase(Ha.rejected,t=>{t.contracts=[],t.loading=!1,t.rejected=!0,t.reloadContracts=!1}),e.addCase(Ha.pending,t=>{t.loading=!0,t.rejected=!1}),e.addCase(wx.fulfilled,(t,r)=>{t.activeContract.contract=r.payload.data,t.loading=!1,t.rejected=!1}),e.addCase(Sd.fulfilled,(t,r)=>{t.activeContract=r.payload})}}),{setActiveContractAction:Cx,setContractsAction:ec,clearContractsAction:tc,setReloadSignContractsAction:Br,setSwitchingContractAction:Ad,setLoadingFalseAction:rc}=Ed.actions,jx=Ed.reducer;function nc(e){return new URLSearchParams(window.location.search).get(e)}const sc=nc("access_token")??nc("tokenPlatform")??null;async function Sx(e){const t=de().post("auth/secure-access-link",null,{params:{accessToken:e}}),{token:r,refreshToken:n}=(await t).data;Re.getInstance().login(r,n),localStorage.setItem("7azFrontAccessType","completeAccess"),Pt((await t).data),window.location.href="/"}const{domain:Ex}=vn(),Ax={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"",St=Zn(Ex,Ax),Td=e=>de().post("auth",{documentId:e,domain:St}),Tx=(e,t,r)=>de().post("auth",{txId:e,password:t,domain:St,recaptchaToken:r}),Px=(e,t)=>de().post("auth",{txId:e,domain:St,recaptchaToken:t}),Nx=(e,t)=>de().post("auth",{txId:e,validationCode:t,domain:St}),kx=async e=>de().post("auth/two-factors",{txId:e,domain:St}),Po=async e=>de().post("auth/authentication-broker",{txId:e,domain:St}),Pd=async(e,t)=>de().post("auth/authentication-broker-method",{txId:e,notificationType:t,domain:St}),Mn=async(e,t,r,n,s,a)=>de().post("auth/authentication-send-two-factors-code",{txId:e,notificationType:t,selectedMail:r,selectedPhone:n,forceResend:s,isCompleteAccess:a,domain:St}),Nd=async(e,t,r,n)=>de().post("auth/validate-code",{txId:e,validationCode:t,method:r,notificationType:n,domain:St}),Ox=(e,t)=>{const{domain:r}=vn(),n={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"";return de().post("auth",{txId:e,password:t,domain:Zn(r,n)})},kd=e=>de().post("auth/reset-password",{txId:e,domain:St}),Od=(e,t,r,n)=>de().post("auth/reset-password-email-sms",{txId:e,notificationType:t,domain:St,selectedMail:r,ip:n}),Id=(e,t)=>de().post("auth/reset-password-validate-code",{txId:e,validationCode:t,domain:St}),Rd=(e,t,r,n,s,a,i,l)=>{const u={txId:e,validationCode:t,password:r,domain:St};return n&&(u.ip=n),s&&(u.xsrfToken=s),a&&(u.session=a),i&&(u.csrfToken=i),l&&(u.erpCustomerId=l),de().post("auth/reset-password-change-password",u)},QC=(e,t,r)=>xx().post("embed/autenticar",{txId:e,domain:St,...t&&{primaryColor:t},...r&&{secondaryColor:r}});var Hc;const yr=class yr{constructor(){ce(this,"token",null);ce(this,"refreshToken",null);ce(this,"decodedToken",null);ce(this,"tokenHasExpired",!1);ce(this,"error401",!1);ce(this,"companyId",null);ce(this,"txId",null);ce(this,"name",null);ce(this,"localDomain",vn());ce(this,"tokenExp",null);ce(this,"domain",((Hc=this.localDomain)==null?void 0:Hc.domain)??"");ce(this,"startService",()=>{var t;if(!((t=window.location.pathname)!=null&&t.startsWith("/validar-documento"))){if(this.token===null&&(this.token=localStorage.getItem("7azFrontToken")),this.refreshToken===null&&(this.refreshToken=localStorage.getItem("7azFrontRefreshToken")),this.token===null||this.refreshToken===null)return!1;this.decodedToken===null&&(this.decodedToken=Ls(this.token),this.txId=this.decodedToken.txId,this.companyId=this.decodedToken.companyId,this.name=this.decodedToken.name,localStorage.setItem("7azFrontToken",this.token),this.error401=!1)}});ce(this,"login",(t,r)=>{this.token=t,this.refreshToken=r,this.tokenHasExpired=!1,t!==null&&(this.decodedToken=Ls(t),this.txId=this.decodedToken.txId,this.companyId=this.decodedToken.companyId,this.tokenExp=this.decodedToken.exp,localStorage.setItem("7azFrontToken",t),this.error401=!1),r!==null&&localStorage.setItem("7azFrontRefreshToken",r)});ce(this,"logout",()=>{this.token=null,this.refreshToken=null,this.decodedToken=null,this.tokenHasExpired=!1,this.error401=!1,this.companyId=null,this.txId=null,localStorage.getItem("7azFrontToken")&&localStorage.removeItem("7azFrontToken"),localStorage.getItem("7azFrontRefreshToken")&&localStorage.removeItem("7azFrontRefreshToken"),localStorage.getItem("7azFrontAccessType")&&localStorage.removeItem("7azFrontAccessType")});ce(this,"setError401",t=>{this.error401=t});ce(this,"getJwtToken",()=>((this.token===null||this.tokenExp<Date.now()/1e3)&&(this.token=localStorage.getItem("7azFrontToken")),this.token));ce(this,"getRefreshJwtToken",()=>(this.refreshToken===null&&(this.refreshToken=localStorage.getItem("7azFrontRefreshToken")),this.refreshToken));ce(this,"getClaim",t=>{var r;if(!((r=window.location.pathname)!=null&&r.startsWith("/validar-documento"))&&this.decodedToken!==null)return this.decodedToken[t]});ce(this,"getRefreshToken",()=>{const t=it(),r={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"";return Cd().post("auth/refresh",{domain:this.domain==="127.0.0.1"||this.domain==="localhost"?r:this.domain}).then(s=>(localStorage.setItem("7azFrontToken",s.data.token),localStorage.setItem("7azFrontRefreshToken",s.data.refreshToken),Pt(s.data),t(Br(!0)),this.login(s.data.token,s.data.refreshToken),s)).catch(()=>{window.location.href="/login"})});ce(this,"switchSession",t=>de().get(`auth/switch-session/${t}`).then(n=>(localStorage.setItem("7azFrontToken",n.data.token),localStorage.setItem("7azFrontRefreshToken",n.data.refreshToken),Pt(n.data),this.login(n.data.token,n.data.refreshToken),n)).catch(()=>{window.location.href="/login"}));ce(this,"isMultiTenant",()=>{var t;return(t=this.decodedToken)==null?void 0:t.isMultiTenant});ce(this,"hasPermission",t=>{var r,n;return(n=(r=this.decodedToken)==null?void 0:r.role)==null?void 0:n.includes(t)});ce(this,"hasCompleteLogin",()=>!0);ce(this,"hasSimplifiedLogin",()=>!0);ce(this,"hasToken",()=>this.token!==null);ce(this,"getCompanyId",()=>this.companyId)}static getInstance(){return yr.myInstance===null&&(yr.myInstance=new yr,yr.myInstance.startService()),yr.myInstance}getPermissions(){return{payInvoices:this.hasPermission("PayInvoices"),viewContract:this.hasPermission("ViewContract"),unlockContract:this.hasPermission("UnlockContract"),speedRestrictionContract:this.hasPermission("SpeedRestrictionContract"),openTicket:this.hasPermission("OpenTicket"),viewTickets:this.hasPermission("ViewTickets"),changePaymentDay:this.hasPermission("ChangePaymentDay"),changePaymentMethod:this.hasPermission("ChangePaymentMethod"),changePaymentMethodAllContracts:this.hasPermission("ChangePaymentMethodAllContracts"),viewAllInvoices:this.hasPermission("ViewAllInvoices"),showSupport:this.hasPermission("ShowSupport"),viewTicketInteractions:this.hasPermission("ViewTicketInteractions"),showConnection:this.hasPermission("ShowConnection"),showContracts:this.hasPermission("ShowContracts"),showInvoices:this.hasPermission("ShowInvoices"),viewContractDocuments:this.hasPermission("ViewContractDocuments"),viewInvoiceReference:this.hasPermission("ViewInvoiceReference"),viewFiscalDocuments:this.hasPermission("ViewFiscalDocuments"),viewInternetConnectionSpeed:this.hasPermission("ViewInternetConnectionSpeed"),viewAuthenticationAccounting:this.hasPermission("ViewAuthenticationAccounting"),showPfFiscalDocuments:this.hasPermission("ShowPfFiscalDocuments"),showPjFiscalDocuments:this.hasPermission("ShowPjFiscalDocuments"),canNegotiate:this.hasPermission("CanNegotiate"),negotiateByContract:this.hasPermission("NegotiateByContract"),canRegisterPendingBillet:this.hasPermission("CanRegisterPendingBillet"),viewTelecomInfo:this.hasPermission("ViewTelecomInfo"),signDocuments:this.hasPermission("SignDocuments"),viewPdfInvoices:this.hasPermission("ViewPdfInvoices"),hideConnectionAlert:this.hasPermission("HideConnectionAlert"),viewUsefulLinks:this.hasPermission("ViewUsefulLinks"),hideContractNumber:this.hasPermission("HideContractNumber"),viewPlanTelecomInfo:this.hasPermission("ViewPlanTelecomInfo"),viewDownloadFDInInvoices:this.hasPermission("ViewDownloadFDInInvoices"),restrictAddress:this.hasPermission("RestrictAddress"),anonymizeContractData:this.hasPermission("AnonymizeContractData"),viewConnectionGraphic:this.hasPermission("ViewAuthenticationAccountingChart"),viewAllContractsInvoice:this.hasPermission("ViewAllContractsInvoices"),viewPlanChange:this.hasPermission("ViewPlanChange"),viewPlanAddService:this.hasPermission("ViewPlanAddService"),viewCanceledContracts:this.hasPermission("ViewCanceledContracts"),viewInvoiceFinalValue:this.hasPermission("ViewInvoiceFinalValue"),view2xInstallments:this.hasPermission("View2xInstallments")}}};ce(yr,"myInstance",null);let Re=yr;sc&&Sx(sc);const Wa=localStorage.getItem("7azFrontToken")?localStorage.getItem("7azFrontToken"):null,Ix=localStorage.getItem("7azFrontRefreshToken")?localStorage.getItem("7azFrontRefreshToken"):null,Rx=localStorage.getItem("7azFrontAccessType")?localStorage.getItem("7azFrontAccessType"):null,No=Re.getInstance(),_x={loading:!1,loggedIn:!!Wa,token:Wa,refreshToken:Ix,claims:Wa?No.getClaim("name"):null,permissions:{},appsPermissions:{},loginExpired:!1,completeAccess:Rx=="completeAccess",isPF:null,documentLogin:!1,isSimplifiedOnly:!1,isSimplifiedOnlyRestricted:!1},_d=Kt("auth/getPermissions",async()=>Re.getInstance().getPermissions()),Md=Kr({name:"auth",initialState:_x,reducers:{loginAction(e,t){e.loggedIn=!0,e.token=t.payload.token,e.refreshToken=t.payload.refreshToken,e.claims=No.getClaim("name")},logoutAction(e){e.loggedIn=!1,e.token="",e.refreshToken="",e.claims=null},portalLoginAction(e,t){e.loggedIn=!0,e.token=t.payload.token,e.refreshToken=t.payload.refreshToken,e.claims=No.getClaim("name")},portalLogoutAction(e){e.loggedIn=!1,e.token="",e.refreshToken="",e.claims=null,e.completeAccess=!1,e.isPF=null,e.permissions={},e.documentLogin=!1},setCompleteAccessAction(e,t){e.completeAccess=t.payload},setIsPfAction(e,t){e.isPF=t.payload},setDocumentLoginAction(e,t){e.documentLogin=t.payload},setAppsPermissionsAction(e,t){e.appsPermissions=t.payload},setSimplifiedOnlyAction(e,t){e.isSimplifiedOnly=t.payload},setSimplifiedOnlyRestrictedAction(e,t){e.isSimplifiedOnlyRestricted=t.payload}},extraReducers:e=>{e.addCase(_d.fulfilled,(t,r)=>{t.permissions=r.payload})}}),{loginAction:Mx,logoutAction:ko,portalLoginAction:Pt,portalLogoutAction:KC,setCompleteAccessAction:Vs,setIsPfAction:Oo,setDocumentLoginAction:Ld,setAppsPermissionsAction:GC,setSimplifiedOnlyAction:JC,setSimplifiedOnlyRestrictedAction:ZC}=Md.actions,Lx=Md.reducer;async function ac(){const e=localStorage.getItem("7azFrontToken"),t=localStorage.getItem("7azFrontRefreshToken");if(!e)return{};if(!(Ls(e).exp<Date.now()/1e3))return{Authorization:"Bearer "+e};if(!t)return window.location.href="/login",{};const s=window.location.href;if(!(s.includes("embed")||s.includes("portal-negociacoes")||s.includes("pagamentos-de-faturas"))){const u=Ls(t);if(u!=null&&u.exp?u.exp<Date.now()/1e3:!0)return window.location.href="/login",{}}const i=window.location.host.split(":")[0],l={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"";try{const u=await Cd().post("auth/refresh",{domain:i==="127.0.0.1"||i==="localhost"?l:i}),{token:c,refreshToken:d}=u.data;return localStorage.setItem("7azFrontToken",c),localStorage.setItem("7azFrontRefreshToken",d),Pt(u.data),Re.getInstance().login(c,d),{Authorization:"Bearer "+c}}catch{return window.location.href="/login",{}}}class lr{}
232ce(lr,"logout",()=>{localStorage.removeItem("7azFrontToken"),localStorage.removeItem("7azFrontRefreshToken"),localStorage.removeItem("7azFrontAccessType")}),ce(lr,"handleResponse",t=>t.text().then(r=>{const n=r&&JSON.parse(r);if(!t.ok){const s=n&&n.Message||n&&n.message||t.statusText;return Promise.reject([s,t==null?void 0:t.status,(t==null?void 0:t.message)??(n==null?void 0:n.message)])}return n})),ce(lr,"getRequestOptions",async()=>({method:"GET",headers:await ac()})),ce(lr,"getRequestNoHeaderOptions",()=>({method:"GET"})),ce(lr,"postRequestOptions",async()=>({method:"POST",headers:await ac()}));const Fx={getParameters:Fd,getParametersWithEnvLegado:$x};async function $x(){const t=new URLSearchParams(window.location.search).get("noCache"),r=await lr.getRequestOptions(),n=await fetch(`api/themes/${{}.VITE_APP_COMPANY_ID}/${{}.VITE_APP_THEME_ID}${t?`?noCache=${t}`:""}`,r);return lr.handleResponse(n)}async function Fd(){const{domain:e}=vn(),t={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"",r=Zn(e,t),n=await fetch(`https://cdn.7az.com.br/themes/${r}.json`,lr.getRequestNoHeaderOptions());return lr.handleResponse(n)}async function YC(){const{domain:e}=vn(),t={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"",r=Zn(e,t);return await de().get(`themes/${r}/banners`).then(n=>n.data)}async function XC(){return await de().get("useful-links")}const Dx={parameters:{},alerts:{},alertInitialModal:!0},Vx=Kt("company/loadCompanyParamsAction",async()=>await Fx.getParameters()),$d=Kr({name:"company",initialState:Dx,reducers:{setAlertAsViewedAction:(e,t)=>{e.alerts||(e.alerts={}),e.alerts[t.payload]=!0},clearCompanyStateAction:e=>{e.parameters={},e.alerts={},e.alertInitialModal=!0},disableInitialModal:e=>{e.alertInitialModal=!1}},extraReducers:e=>{e.addCase(Vx.fulfilled,(t,r)=>{t.parameters=r.payload})}}),{setAlertAsViewedAction:e9,clearCompanyStateAction:oc,disableInitialModal:t9}=$d.actions,zx=$d.reducer,Ux={path:null,params:{}},Dd=Kr({name:"deeplink",initialState:Ux,reducers:{clearDeepLinkStateAction:e=>{e.params={},e.path=null},updateDeepLink:(e,t)=>{e.path=t.payload.path,e.params=t.payload.params}}}),{clearDeepLinkStateAction:zs,updateDeepLink:Vd}=Dd.actions,Bx=Dd.reducer,{domain:qx}=vn(),Hx={VITE_APP_CDN_URL:"https://cdn.7az.com.br/",VITE_APP_RECAPTCHA_SITE_KEY:"6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",VITE_PLATFORM:"cloudflare",VITE_APP_ENDPOINT:"https://portal-api-proxy.7az.com.br/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_LOCAL_DOMAIN??"",Wx=Zn(qx,Hx),Nt=(e,t=null)=>t?[]:e;function Qx(e,t){return vx().post("invoices/send-access-link",{txId:e,domain:Wx,channel:t}).then(r=>Nt(r)).catch(r=>Nt(null,r))}const Kx=()=>de().get("invoices").then(e=>Nt(e)).catch(e=>{throw e}),r9=e=>Fe(e).get("invoices").then(t=>Nt(t)).catch(t=>Nt(null,t)),Ea=e=>e?`?contractId=${encodeURIComponent(e)}`:"",n9=e=>de().get(`invoices/available-for-negotiation${Ea(e)}`).then(t=>Nt(t)).catch(t=>Nt(null,t)),s9=(e,t)=>Fe(e).get(`invoices/available-for-negotiation${Ea(t)}`).then(r=>Nt(r)).catch(r=>Nt(null,r)),a9=(e,t,r)=>de().post("invoices/negotiate",{collectionTypeId:parseInt(e),...t?{erpContractId:t}:{},origin:r}),o9=(e,t,r,n)=>Fe(t).post("invoices/negotiate",{collectionTypeId:parseInt(e),erpContractId:r,origin:n}),zd=()=>de().get("invoices/all"),Gx=e=>de().get(`invoices/${e}`),i9=async(e,t)=>t?Fe(t).get(`invoices/${e}/payment-data`):de().get(`invoices/${e}/payment-data`),l9=e=>de().put(`invoices/${e}/register-pending-billet`),c9=(e,t,r,n,s,a,i,l,u,c,d,f)=>(f?Fe(f):de()).post(`invoices/${e}/credit-card`,{cardNumber:t,expirationDate:r,cvv:n,setRecurrence:s,isCredit:a,installments:i,cardToken:l,recaptchaToken:u,isBemobi:c,cardId:d}),u9=e=>de().post(`cards/${e}/favorite`),Jx=e=>{const t=localStorage.getItem("7azAppMode"),r=t==="true"||t==="1";return de().get(`invoices/${e}/checkout-session${r?"?appMode=true":""}`)},d9=(e,t)=>t?Fe(t).get(`invoices/${e}/checkout-session`):Jx(e),f9=e=>de().delete(`cards/${e}`),Zx=(e,t)=>{const r={};return t&&(r.contractId=t),mi().get(`fiscal-documents/${e}`,{params:r})},Yx=async(e,t)=>{const r={competence:e};return t&&(r.contractId=t),(await de().get("fiscal-documents",{params:r})).data},h9=e=>mi().get(`invoices/${e}/pdf`),p9=async e=>{try{const t=await de().get(`/invoices/payment-methods${Ea(e)}`);return Nt(t)}catch(t){return Nt(null,t)}},m9=async(e,t)=>{try{const r=await Fe(e).get(`/invoices/payment-methods${Ea(t)}`);return Nt(r)}catch(r){return Nt(null,r)}},g9=async e=>(await de().post("invoices/checkout-session/batch",{erpInvoiceIds:e})).data,x9=(e,t,r)=>(r?Fe(r):de()).post(`invoices/${e}/create-failed-pay-attempt-bsc`,t),Xx={fiscalDocuments:[],loading:!1,rejected:!1},ev=Kt("documents/fetchAllFiscalDocuments",async e=>await Yx(e)),tv=Kt("documents/fetchFiscalDocument",async e=>await Zx(e)),Ud=Kr({name:"fiscalDocuments",initialState:Xx,reducers:{setFiscalDocumentsAction(e,t){e.fiscalDocuments=t.payload},clearFiscalDocumentsAction(e){e.fiscalDocuments=[]}},extraReducers:e=>{e.addCase(tv.fulfilled,(t,r)=>{t.loading=!1,t.rejected=!1}),e.addCase(ev.fulfilled,(t,r)=>{t.fiscalDocuments=r.payload,t.loading=!1,t.rejected=!1})}}),{setFiscalDocumentsAction:v9,clearFiscalDocumentsAction:ic}=Ud.actions,rv=Ud.reducer;async function nv(){return await de().get("invoices").then(e=>e.data)}async function sv(e){return await de().get(`invoices/${e}/payment-data`).then(t=>t.data)}async function y9(e,t){return t?Fe(t).get(`invoices/${e}/payment-data`).then(({data:r})=>r):await de().get(`invoices/${e}/payment-data`).then(r=>r.data)}async function b9(e){return await de().get(`invoices/${e}/pix-status`).then(t=>t.data)}async function w9(e,t){return t?Fe(t).get(`invoices/${e}/pix-status`).then(({data:r})=>r):await de().get(`invoices/${e}/pix-status`).then(r=>r.data)}const av={invoices:[],nextInvoice:null,loading:!1,rejected:!1},Qa=Kt("invoices/fetchInvoicesAction",async()=>await nv()),ov=Kt("invoices/fetchInvoiceAction",async e=>await sv(e)),Bd=Kr({name:"invoices",initialState:av,reducers:{resetInvoicesPixAction(e){e.invoices=[],e.nextInvoice=null,e.loading=!1,e.rejected=!1}},extraReducers:e=>{e.addCase(Qa.fulfilled,(t,r)=>{t.invoices=r.payload,t.loading=!1,t.rejected=!1}),e.addCase(Qa.rejected,(t,r)=>{t.invoices=[],t.loading=!1,t.rejected=!0}),e.addCase(Qa.pending,(t,r)=>{t.loading=!0}),e.addCase(ov.fulfilled,(t,r)=>{t.nextInvoice=r.payload})}}),{resetInvoicesPixAction:lc}=Bd.actions,iv=Bd.reducer,lv={allInvoices:[],nextInvoice:null,loading:!1,rejected:!1};Kt("invoices/portal/fetchAllInvoicesAction",async()=>await zd());const cv=Kt("invoices/portal/fetchInvoiceAction",async e=>await Gx(e)),qd=Kr({name:"invoicesPortal",initialState:lv,reducers:{resetInvoicesPortalAction(e){e.allInvoices=[],e.nextInvoice=null,e.loading=!1,e.rejected=!1,e.invoiceDetailsRefetch=!1}},extraReducers:e=>{e.addCase(cv.fulfilled,(t,r)=>{t.nextInvoice=r.payload})}}),{resetInvoicesPortalAction:cc}=qd.actions,uv=qd.reducer,dv=w1({reducer:{auth:Lx,contracts:jx,fiscalDocuments:rv,invoicesPix:iv,invoicesPortal:uv,company:zx,deepLink:Bx}}),Ye=Tp;function fv(){const e=vt(),t=it(),r=Ye(a=>a.deepLink),n=Ye(a=>a.auth);function s(){if(r.path&&(n!=null&&n.loggedIn)){const a=r.path,i=r.params;t(Vd({path:a,params:i})),e(a,{state:i})}}return p.useEffect(()=>{s()},[r,t,e,n==null?void 0:n.loggedIn]),null}function hv({company:e,appType:t}){var r,n;return o.jsxs(_n,{children:[o.jsx("title",{children:`${(t==null?void 0:t.charAt(0).toUpperCase())+(t==null?void 0:t.slice(1))} ${(e==null?void 0:e.Name)!==void 0?e==null?void 0:e.Name:""}`}),(e==null?void 0:e.Css)&&o.jsx("style",{children:e==null?void 0:e.Css}),((r=e==null?void 0:e.Favicon)==null?void 0:r.Content)&&o.jsx("link",{rel:"icon",href:(n=e==null?void 0:e.Favicon)==null?void 0:n.Content})]})}function He(){const{data:e}=fn(["companyParams"],async()=>await Fd(),{refetchOnWindowFocus:!1,retry:10,retryDelay:1e4,staleTime:36e5});return e??null}function pv(){var t;const e=He();return o.jsx("div",{className:"bg-secondary fixed top-0 left-0 w-full h-full flex justify-center items-center z-50 ",children:o.jsx("img",{className:"max-w-[75%] mx-auto ",src:((t=e==null?void 0:e.Logo)==null?void 0:t.Content)||"",alt:(e==null?void 0:e.Name)||""})})}function mv(){return o.jsxs("div",{className:"flex justify-center items-center flex-col gap-4 h-full",children:[o.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-gray-600"}),o.jsx("div",{className:"text-center",children:"Carregando dados da aplicação"})]})}
232function gv(){const e=He();return p.useEffect(()=>{const t=`<!-- Google Tag Manager (noscript) -->
vendor: 68 bytes, lines 232-233
232 233<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
233GTM-5CXF69PM
vendor: 83 bytes, lines 233-234
233" 234height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
235<!-- End Google Tag Manager (noscript) -->`,r=`<!-- Google Tag Manager --> 236<script>
vendor: 327 bytes, lines 236-240
236(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 237new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 238j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 239'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 240})(window,document,'script','dataLayer','
240GTM-5CXF69PM
vendor: 3 bytes, line 240
240');
240<\/script> 241<!-- End Google Tag Manager -->`,n=document.createElement("div");n.innerHTML=r;const s=document.createElement("div");s.innerHTML=t,Array.from(n.childNodes).forEach(function(a){if(a.nodeName==="SCRIPT")if(a instanceof HTMLScriptElement&&a.src){const i=document.createElement("script");i.src=a.src,document.head.appendChild(i)}else{const i=document.createElement("script");i.innerHTML=a.textContent??"",document.head.appendChild(i)}else document.head.appendChild(a.cloneNode(!0))}),Array.from(s.childNodes).forEach(function(a){if(a.nodeName==="SCRIPT")if(a!=null&&a.src){const i=document.createElement("script");i.src=a.src,document.body.appendChild(i)}else{const i=document.createElement("script");i.innerHTML=a.textContent??"",document.body.appendChild(i)}else document.body.appendChild(a.cloneNode(!0))})},[]),p.useEffect(()=>{e&&(window.clientName=e==null?void 0:e.Name)},[e]),p.useEffect(()=>{window.appMode=localStorage.getItem("7azAppMode")==="true"},[]),o.jsx(o.Fragment,{})}function xv(){const e=He();return p.useEffect(()=>{var a,i,l,u;const t=((i=(a=e==null?void 0:e.Extras)==null?void 0:a.Scripts)==null?void 0:i.BodyScripts)??"",r=((u=(l=e==null?void 0:e.Extras)==null?void 0:l.Scripts)==null?void 0:u.HeadScripts)??"",n=document.createElement("div");n.innerHTML=r;const s=document.createElement("div");s.innerHTML=t,Array.from(n.childNodes).forEach(function(c){if(c.nodeName==="SCRIPT")if(c instanceof HTMLScriptElement&&c.src){const d=document.createElement("script");d.src=c.src,document.head.appendChild(d)}else{const d=document.createElement("script");d.innerHTML=c.textContent??"",document.head.appendChild(d)}else document.head.appendChild(c.cloneNode(!0))}),Array.from(s.childNodes).forEach(function(c){if(c.nodeName==="SCRIPT")if(c!=null&&c.src){const d=document.createElement("script");d.src=c.src,document.body.appendChild(d)}else{const d=document.createElement("script");d.innerHTML=c.textContent??"",document.body.appendChild(d)}else document.body.appendChild(c.cloneNode(!0))})},[e]),o.jsx(o.Fragment,{})}function Hd(e){const t=(e==null?void 0:e.Type)==2,r=(e==null?void 0:e.Type)==3,[n,s]=p.useState("");return p.useEffect(()=>{t?s("pix"):r&&s("portal")},[e,t,r]),{isPixApp:t,isPortalApp:r,appType:n}}const vv=3.5,yv=5,uc=e=>{e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&"));const t=e>>16,r=e>>8&255,n=e&255,[s,a,i]=[t,r,n].map(l=>{const u=l/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)});return .2126*s+.7152*a+.0722*i},xi=(e,t)=>{const r=uc(e),n=uc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},dc=e=>e&&xi(e,"#fff")>=vv?"#fff":"#000",bv=e=>xi("#000",e)>=yv?"#000":"#fff";function wv(){const[e,t]=p.useState(null),[r,n]=p.useState(null),[s,a]=p.useState(null),[i,l]=p.useState(null),[u,c]=p.useState(""),[d,f]=p.useState(""),[m,g]=p.useState(""),x=getComputedStyle(document.documentElement),v=it();function h(A){document.documentElement.style.setProperty("--contrast-color",A)}function y(A){document.documentElement.style.setProperty("--contrast-primary-color",A)}function w(A){document.documentElement.style.setProperty("--contrast-first-invoice-card-color",A)}function j(A){if(A){const k=parseInt(A.slice(1,3),16).toString(),N=parseInt(A.slice(3,5),16).toString(),R=parseInt(A.slice(5,7),16).toString();document.documentElement.style.setProperty("--primary-pure-color",`${k} ${N} ${R}`)}}function S(A){if(A){const k=parseInt(A.slice(1,3),16).toString(),N=parseInt(A.slice(3,5),16).toString(),R=parseInt(A.slice(5,7),16).toString();document.documentElement.style.setProperty("--secondary-pure-color",`${k} ${N} ${R}`)}}return p.useEffect(()=>{setTimeout(()=>{t(x.getPropertyValue("--primary-color").trim()),n(x.getPropertyValue("--secondary-color").trim()),l(x.getPropertyValue("--invoice-card-background-color").trim())},75)},[x,e]),p.useEffect(()=>{e&&r&&(a(xi(e,r)),c(bv(r)),f(dc(e)),g(dc(i)),h(u),y(d),w(m),S(r),j(e),S(r))},[e,r,i,s,u,d,m,v]),{contrastRatio:s,contrastColor:u,contrastPrimaryColor:d,primaryColor:e,contrastColorFirstInvoiceCard:m}}function Cv(){return o.jsx("div",{className:"flex flex-col w-full h-screen",children:o.jsxs("div",{className:"flex flex-col items-center justify-center",children:["Carregando ",o.jsx("img",{src:"/images/pix/spinner-input.svg",className:"animate-spin w-4 lg:w-8 h-4 lg:h-8"})]})})}var jv=Object.create,Wd=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,Ev=Object.getOwnPropertyNames,Av=Object.getPrototypeOf,Tv=Object.prototype.hasOwnProperty,Pv=(e,t)=>
241()=>(t||e((t={exports:{}}).exports,t),t.exports),Nv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ev(t))!Tv.call(e,s)&&s!==r&&Wd(e,s,{get:()=>t[s],enumerable:!(n=Sv(t,s))||n.enumerable});return e},kv=(e,t,r)=>(r=e!=null?jv(Av(e)):{},Nv(t||!e||!e.__esModule?Wd(r,"default",{value:e,enumerable:!0}):r,e)),Ov=Pv((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))})(e,function(r){var n=function(g){return function(x){var v=g(x);return x.add(v),v}},s=function(g){return function(x,v){return g.set(x,v),v}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,i=536870912,l=i*2,u=function(g,x){return function(v){var h=x.get(v),y=h===void 0?v.size:h<l?h+1:0;if(!v.has(y))return g(v,y);if(v.size<i){for(;v.has(y);)y=Math.floor(Math.random()*l);return g(v,y)}if(v.size>a)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(y);)y=Math.floor(Math.random()*a);return g(v,y)}},c=new WeakMap,d=s(c),f=u(d,c),m=n(f);r.addUniqueNumber=m,r.generateUniqueNumber=f})});kv(Ov());var cr=(typeof window>"u"?"undefined":typeof window)=="object",qt={setTimeout:cr?setTimeout.bind(window):setTimeout,clearTimeout:cr?clearTimeout.bind(window):clearTimeout,setInterval:cr?setInterval.bind(window):setInterval,clearInterval:cr?clearInterval.bind(window):clearInterval};function Iv(e){qt.setTimeout=e.setTimeout,qt.clearTimeout=e.clearTimeout,qt.setInterval=e.setInterval,qt.clearInterval=e.clearInterval}var en={},Rv=class{constructor(e){ce(this,"name");ce(this,"closed",!1);ce(this,"mc",new MessageChannel);this.name=e,en[e]=en[e]||[],en[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||e.newValue===null)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),qt.setTimeout(()=>{window.localStorage.removeItem(r)},500),en[this.name].forEach(n=>{n!==this&&n.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=en[this.name].indexOf(this);en[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_v=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:Rv;function Mv(e=0){return new Promise(t=>qt.setTimeout(t,e))}function Qd(){return Math.random().toString(36).substring(2)}var Lv=class{constructor(e,t){ce(this,"options");ce(this,"channel");ce(this,"token",Qd());ce(this,"isLeader",!1);ce(this,"isDead",!1);ce(this,"isApplying",!1);ce(this,"reApply",!1);ce(this,"intervals",[]);ce(this,"listeners",[]);ce(this,"deferred");this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=r=>{let{token:n,action:s}=r.data;n!==this.token&&(s===0&&n>this.token&&(e=!0),s===1&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await Mv(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>
241{if(e)return;e=!0;try{qt.clearInterval(t)}catch{}let a=this.intervals.indexOf(t);a>=0&&this.intervals.splice(a,1),this.channel.removeEventListener("message",s),r()};t=qt.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let s=a=>{let{action:i}=a.data;i===2&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",s)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=t=>{let{action:r}=t.data;r===0&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>qt.clearInterval(e))}catch{}}}},Fv=class{constructor(e){ce(this,"channel");ce(this,"options");ce(this,"elector");ce(this,"token",Qd());ce(this,"registry",new Map);ce(this,"allIdle",!1);ce(this,"isLastActive",!1);let{channelName:t}=e;if(this.options=e,this.channel=new _v(t),this.registry.set(this.token,1),e.leaderElection){let r={fallbackInterval:2e3,responseTime:100};this.elector=new Lv(this.channel,r),this.elector.waitForLeadership()}this.channel.addEventListener("message",r=>{let{action:n,token:s,data:a}=r.data;switch(n){case 3:this.registry.set(s,2);break;case 4:this.registry.delete(s);break;case 5:this.idle(s);break;case 6:this.active(s);break;case 7:this.prompt(s);break;case 8:this.start(s);break;case 9:this.reset(s);break;case 10:this.activate(s);break;case 11:this.pause(s);break;case 12:this.resume(s);break;case 13:this.options.onMessage(a);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('â Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(r=>r===0);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(r=>r===2);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(r=>r===1);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},$v=cr?document:null,Dv=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function Vv(e,t){let r;function n(...s){r&&clearTimeout(r),r=setTimeout(()=>{e(...s),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}function Ka(e,t){let r=0;return function(...n){let s=new Date().getTime();if(!(s-r<t))return r=s,e(...n)}}var rt=()=>Date.now(),tn=2147483647;function zv({timeout:e=1e3*60*20,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=$v,events:s=Dv,timers:a=void 0,immediateEvents:i=[],onPresenceChange:l=()=>{},onPrompt:u=()=>{},onIdle:c=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:m=()=>{},debounce:g=0,throttle:x=0,eventsThrottle:v=200,startOnMount:h=!0,startManually:y=!1,stopOnIdle:w=!1,crossTab:j=!1,name:S="idle-timer",syncTimers:A=0,leaderElection:k=!1,disabled:N=!1}={}){let R=p.useRef(rt()),O=p.useRef(rt()),I=p.useRef(null),z=p.useRef(null),T=p.useRef(0),_=p.useRef(0),V=p.useRef(0),ee=p.useRef(0),H=p.useRef(!1),q=p.useRef(!1),Y=p.useRef(!1),Z=p.useRef(!0),ie=p.useRef(!1),se=p.useRef(null),B=p.useRef(null),le=p.useRef(e),ve=p.useRef(0);p.useEffect(()=>{if(t&&console.warn("â ï¸ IdleTimer -- The `promptTimeout` property has been deprecated
241in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw new Error("â Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=tn)throw new Error(`â The value for the timeout property must fit in a 32 bit signed integer, ${tn}.`);if(t>=tn)throw new Error(`â The value for the promptTimeout property must fit in a 32 bit signed integer, ${tn}.`);if(r>=tn)throw new Error(`â The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${tn}.`);if(r>=e)throw new Error(`â The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(le.current=e-r,ve.current=r):(le.current=e,ve.current=t),!Z.current){if(y||N)return;H.current&&(Q.current(null,ct),B.current&&B.current.active()),me()}},[e,t,r,y,N]);let Ee=p.useRef(w);p.useEffect(()=>{Ee.current=w},[w]);let Ae=p.useRef(i),Ce=p.useRef(n),Ne=p.useRef([...new Set([...s,...i]).values()]),ge=p.useRef(N);p.useEffect(()=>{ge.current=N,!Z.current&&(N?We():y||me())},[N]);let $=p.useRef(l);p.useEffect(()=>{$.current=l},[l]);let W=p.useRef(u);p.useEffect(()=>{W.current=u},[u]);let fe=p.useRef(c);p.useEffect(()=>{fe.current=c},[c]);let Q=p.useRef(d);p.useEffect(()=>{Q.current=d},[d]);let U=p.useRef(f);p.useEffect(()=>{U.current=f},[f]);let X=p.useRef(m);p.useEffect(()=>{X.current=m},[m]);let ae=p.useMemo(()=>{let oe=(pt,Fr)=>U.current(pt,Fr);return g>0?Vv(oe,g):x>0?Ka(oe,x):oe},[x,g]),J=p.useRef();p.useEffect(()=>{j&&A&&(J.current=Ka(()=>{B.current.active()},A))},[j,A]);let te=()=>{se.current!==null&&(qt.clearTimeout(se.current),se.current=null)},D=(oe,pt=!0)=>{te(),se.current=qt.setTimeout(P,oe||le.current),pt&&(z.current=rt())},b=oe=>{!q.current&&!H.current&&(W.current(oe,ct),$.current({type:"active",prompted:!0},ct)),ee.current=0,V.current=rt(),q.current=!0,D(ve.current,!1)},C=()=>{te(),H.current||(fe.current(null,ct),$.current({type:"idle"},ct)),H.current=!0,I.current=rt(),Ee.current?ne():q.current&&(V.current=0,q.current=!1)},E=oe=>{te(),(H.current||q.current)&&(Q.current(oe,ct),$.current({type:"active",prompted:!1},ct)),q.current=!1,V.current=0,H.current=!1,T.current+=rt()-I.current,_.current+=rt()-I.current,G(),D()},P=oe=>{if(!H.current){ae.cancel&&ae.cancel();let pt=rt()-z.current;if(!(le.current+ve.current<pt)&&ve.current>0&&!q.current){B.current?B.current.prompt():b(oe);return}B.current?B.current.idle():C();return}B.current?B.current.active():E(oe)},F=oe=>{if(!h&&!z.current&&(z.current=rt(),Q.current(null,ct)),ae(oe,ct),q.current)return;if(te(),!H.current&&Ae.current.includes(oe.type)){P(oe);return}let pt=rt()-z.current;if(H.current&&!w||!H.current&&pt>=le.current){P(oe);return}Y.current=!1,ee.current=0,V.current=0,D(),j&&A&&J.current()},L=p.useRef(F);p.useEffect(()=>{let oe=ie.current;oe&&ne(),v>0?L.current=Ka(F,v):L.current=F,oe&&G()},[v,x,g,U,j,A]);let G=()=>{cr&&Ce.current&&(ie.current||(Ne.current.forEach(oe=>{Ce.current.addEventListener(oe,L.current,{capture:!0,passive:!0})}),ie.current=!0))},ne=(oe=!1)=>{cr&&Ce.current&&(ie.current||oe)&&(Ne.current.forEach(pt=>{Ce.current.removeEventListener(pt,L.current,{capture:!0})}),ie.current=!1)},me=p.useCallback(oe=>ge.current?!1:(te(),G(),H.current=!1,q.current=!1,Y.current=!1,ee.current=0,V.current=0,B.current&&!oe&&B.current.start(),D(),!0),[se,H,ge,le,B]),$e=p.useCallback(oe=>ge.current?!1:(te(),G(),O.current=rt(),T.current+=rt()-I.current,_.current+=rt()-I.current,T.current=0,H.current=!1,q.current=!1,Y.current=!1,ee.current=0,V.current=0,B.current&&!oe&&B.current.reset(),y||D(),!0),[se,H,le,y,ge,B]),ft=p.useCallback(oe=>ge.current?!1:(te(),G(),(H.current||q.current)&&E(),H.current=!1,q.current=!1,Y.current=!1,ee.current=0,V.current=0,O.current=rt(),B.current&&!oe&&B.current.activate(),D(),!0),[se,H,q,ge,le,B]),We=p.useCallback((oe=!1)=>ge.current||Y.current?!1:(ee.current=K(),Y.current=!0,ne(),te(),B.current&&!oe&&B.current.pause(),!0),[se,ge,B]),Qe=p.useCallback((oe=!1)=>ge.current||!Y.current?!1:(Y.current=!1,q.current||G(),H.current||D(ee.current),V.current&&(V.current=rt()),B.current&&!oe&&B.current.resume(),!0),[se,le,ge,ee,B]),ze=p.useCallback((oe,pt)=>(B.current?(pt&&X.current(oe,ct),B.current.message(oe)):pt&&X.current(oe,ct),!0),[m]),et=p.useCallback(()=>H.current,[H]),ht=p.useCallback(()=>q.current,[q]),yt=p.useCallback(()=>B.current?B.current.isLeader:null,[B]),wt=p.useCallback(()=>B.current?B.current.isLastActive:null,[B]),re=p.useCallback(()=>B.current?B.current.token:null,[B]),K=p.useCallback(()=>
241{if(Y.current)return ee.current;let oe=ee.current?ee.current:ve.current+le.current,pt=z.current?rt()-z.current:0,Fr=Math.floor(oe-pt);return Fr<0?0:Math.abs(Fr)},[le,ve,q,ee,z]),pe=p.useCallback(()=>Math.round(rt()-O.current),[O]),Ge=p.useCallback(()=>Math.round(rt()-R.current),[R]),It=p.useCallback(()=>I.current?new Date(I.current):null,[I]),Jt=p.useCallback(()=>z.current?new Date(z.current):null,[z]),_r=p.useCallback(()=>H.current?Math.round(rt()-I.current+T.current):Math.round(T.current),[I,T]),Mr=p.useCallback(()=>H.current?Math.round(rt()-I.current+_.current):Math.round(_.current),[I,_]),Lr=p.useCallback(()=>{let oe=Math.round(pe()-_r());return oe>=0?oe:0},[I,T]),Yr=p.useCallback(()=>{let oe=Math.round(Ge()-Mr());return oe>=0?oe:0},[I,T]);p.useEffect(()=>{if(g>0&&x>0)throw new Error("â onAction can either be throttled or debounced, not both.");a&&Iv(a);let oe=()=>{B.current&&B.current.close(),ae.cancel&&ae.cancel(),te(),ne(!0)};return cr&&window.addEventListener("beforeunload",oe),()=>{cr&&window.removeEventListener("beforeunload",oe),B.current&&B.current.close(),ae.cancel&&ae.cancel(),te(),ne(!0)}},[]),p.useEffect(()=>{B.current&&B.current.close(),j?B.current=new Fv({channelName:S,leaderElection:k,onPrompt:()=>{b()},onIdle:()=>{C()},onActive:()=>{E()},onMessage:oe=>{X.current(oe,ct)},start:me,reset:$e,activate:ft,pause:We,resume:Qe}):B.current=null},[j,S,k,W,fe,Q,X,me,$e,We,Qe]),p.useEffect(()=>{Z.current||(te(),ne(!0)),!(y||N)&&(h?me():G())},[y,h,N,Z]),p.useEffect(()=>{if(!Z.current){let oe=[...new Set([...s,...i]).values()];if(ne(),Ne.current=oe,Ce.current=n,Ae.current=i,y||N)return;h?me():G()}},[n,JSON.stringify(s),JSON.stringify(i),Z,N,y,h]),p.useEffect(()=>{Z.current&&(Z.current=!1)},[Z]);let ct={message:ze,start:me,reset:$e,activate:ft,pause:We,resume:Qe,isIdle:et,isPrompted:ht,isLeader:yt,isLastActiveTab:wt,getTabId:re,getRemainingTime:K,getElapsedTime:pe,getTotalElapsedTime:Ge,getLastIdleTime:It,getLastActiveTime:Jt,getIdleTime:_r,getTotalIdleTime:Mr,getActiveTime:Lr,getTotalActiveTime:Yr,setOnPresenceChange:oe=>{l=oe,$.current=oe},setOnPrompt:oe=>{u=oe,W.current=oe},setOnIdle:oe=>{c=oe,fe.current=oe},setOnActive:oe=>{d=oe,Q.current=oe},setOnAction:oe=>{f=oe,U.current=oe},setOnMessage:oe=>{m=oe,X.current=oe}};return ct}var Uv=p.createContext(null);Uv.Consumer;function Bv(){const e=it(),t=Re.getInstance(),r=vt(),n=Ks(),s=()=>{n.clear(),e(ko),t.logout(),r("/login")},a=()=>{i()},{reset:i}=zv({timeout:1e3*10,onIdle:s,onAction:a,debounce:500})}function Wr(e){window.ReactNativeWebView?ReactNativeWebView.postMessage(JSON.stringify(e)):window.AppEvent&&AppEvent.postMessage(JSON.stringify(e))}function qv(e){window.parent&&window.parent.postMessage(JSON.stringify(e),"*")}var Kd={exports:{}};(function(e,t){(function(n,s){e.exports=s(p)})(ih,r=>(()=>{var n={
vendor: 1,797 bytes, line 241
241"./node_modules/css-mediaquery/index.js":(l,u)=>{u.match=x,u.parse=v;var c=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,d=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,f=/^(?:(min|max)-)?(.+)/,m=/(em|rem|px|cm|mm|in|pt|pc)?$/,g=/(dpi|dpcm|dppx)?$/;function x(j,S){return v(j).some(function(A){var k=A.inverse,N=A.type==="all"||S.type===A.type;if(N&&k||!(N||k))return!1;var R=A.expressions.every(function(O){var I=O.feature,z=O.modifier,T=O.value,_=S[I];if(!_)return!1;switch(I){case"orientation":case"scan":return _.toLowerCase()===T.toLowerCase();case"width":case"height":case"device-width":case"device-height":T=w(T),_=w(_);break;case"resolution":T=y(T),_=y(_);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":T=h(T),_=h(_);break;case"grid":case"color":case"color-index":case"monochrome":T=parseInt(T,10)||1,_=parseInt(_,10)||0;break}switch(z){case"min":return _>=T;case"max":return _<=T;default:return _===T}});return R&&!k||!R&&k})}function v(j){return j.split(",").map(function(S){S=S.trim();var A=S.match(c),k=A[1],N=A[2],R=A[3]||"",O={};return O.inverse=!!k&&k.toLowerCase()==="not",O.type=N?N.toLowerCase():"all",R=R.match(/\([^\)]+\)/g)||[],O.expressions=R.map(function(I){var z=I.match(d),T=z[1].toLowerCase().match(f);return{modifier:T[1],feature:T[2],value:z[2]}}),O})}function h(j){var S=Number(j),A;return S||(A=j.match(/^(\d+)\s*\/\s*(\d+)$/),S=A[1]/A[2]),S}function y(j){var S=parseFloat(j),A=String(j).match(g)[1];switch(A){case"dpcm":return S/2.54;case"dppx":return S*96;default:return S}}function w(j){var S=parseFloat(j),A=String(j).match(m)[1];switch(A){case"em":return S*16;case"rem":return S*16;case"cm":return S*96/2.54;case"mm":return S*96/2.54/10;case"in":return S*96;case"pt":return S*72;case"pc":return S*72/12;default:return S}}},
vendor: 267 bytes, line 241
241"./node_modules/hyphenate-style-name/index.js":(l,u,c)=>{c.r(u),c.d(u,{default:()=>v});var d=/[A-Z]/g,f=/^ms-/,m={};function g(h){return"-"+h.toLowerCase()}function x(h){if(m.hasOwnProperty(h))return m[h];var y=h.replace(d,g);return m[h]=f.test(y)?"-"+y:y}const v=x},
vendor: 575 bytes, line 241
241"./node_modules/matchmediaquery/index.js":(l,u,c)=>{var d=c("./node_modules/css-mediaquery/index.js").match,f=typeof window<"u"?window.matchMedia:null;function m(x,v,h){var y=this;if(f&&!h){var w=f.call(window,x);this.matches=w.matches,this.media=w.media,w.addListener(A)}else this.matches=d(x,v),this.media=x;this.addListener=j,this.removeListener=S,this.dispose=k;function j(N){w&&w.addListener(N)}function S(N){w&&w.removeListener(N)}function A(N){y.matches=N.matches,y.media=N.media}function k(){w&&w.removeListener(A)}}function g(x,v,h){return new m(x,v,h)}l.exports=g},
vendor: 1,011 bytes, lines 241-245
241"./node_modules/object-assign/index.js":l=>{/* 242object-assign 243(c) Sindre Sorhus 244@license MIT 245*/var u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function f(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}function m(){try{if(!Object.assign)return!1;var g=new String("abc");if(g[5]="de",Object.getOwnPropertyNames(g)[0]==="5")return!1;for(var x={},v=0;v<10;v++)x["_"+String.fromCharCode(v)]=v;var h=Object.getOwnPropertyNames(x).map(function(w){return x[w]});if(h.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(w){y[w]=w}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}l.exports=m()?Object.assign:function(g,x){for(var v,h=f(g),y,w=1;w<arguments.length;w++){v=Object(arguments[w]);for(var j in v)c.call(v,j)&&(h[j]=v[j]);if(u){y=u(v);for(var S=0;S<y.length;S++)d.call(v,y[S])&&(h[y[S]]=v[y[S]])}}return h}},
vendor: 1,219 bytes, line 245
245"./node_modules/prop-types/checkPropTypes.js":(l,u,c)=>{var d=function(){};{var f=c("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),m={},g=c("./node_modules/prop-types/lib/has.js");d=function(v){var h="Warning: "+v;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function x(v,h,y,w,j){for(var S in v)if(g(v,S)){var A;try{if(typeof v[S]!="function"){var k=Error((w||"React class")+": "+y+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw k.name="Invariant Violation",k}A=v[S](h,S,w,y,null,f)}catch(R){A=R}if(A&&!(A instanceof Error)&&d((w||"React class")+": type specification of "+y+" `"+S+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof A+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),A instanceof Error&&!(A.message in m)){m[A.message]=!0;var N=j?j():"";d("Failed "+y+" type: "+A.message+(N??""))}}}x.resetWarningCache=function(){m={}},l.exports=x},
vendor: 7,367 bytes, lines 245-246
245"./node_modules/prop-types/factoryWithTypeCheckers.js":(l,u,c)=>{var d=c("./node_modules/react-is/index.js"),f=c("./node_modules/object-assign/index.js"),m=c("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),g=c("./node_modules/prop-types/lib/has.js"),x=c("./node_modules/prop-types/checkPropTypes.js"),v=function(){};v=function(y){var w="Warning: "+y;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}};function h(){return null}l.exports=function(y,w){var j=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function A($){var W=$&&(j&&$[j]||$[S]);if(typeof W=="function")return W}var k="<<anonymous>>",N={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:T(),arrayOf:_,element:V(),elementType:ee(),instanceOf:H,node:ie(),objectOf:Y,oneOf:q,oneOfType:Z,shape:B,exact:le};function R($,W){return $===W?$!==0||1/$===1/W:$!==$&&W!==W}function O($,W){this.message=$,this.data=W&&typeof W=="object"?W:{},this.stack=""}O.prototype=Error.prototype;function I($){var W={},fe=0;function Q(X,ae,J,te,D,b,C){if(te=te||k,b=b||J,C!==m){if(w){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(typeof console<"u"){var P=te+":"+J;!W[P]&&fe<3&&(v("You are manually calling a React.PropTypes validation function for the `"+b+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[P]=!0,fe++)}}return ae[J]==null?X?ae[J]===null?new O("The "+D+" `"+b+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new O("The "+D+" `"+b+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:$(ae,J,te,D,b)}var U=Q.bind(null,!1);return U.isRequired=Q.bind(null,!0),U}function z($){function W(fe,Q,U,X,ae,J){var te=fe[Q],D=Ae(te);if(D!==$){var b=Ce(te);return new O("Invalid "+X+" `"+ae+"` of type "+("`"+b+"` supplied to `"+U+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return I(W)}function T(){return I(h)}function _($){function W(fe,Q,U,X,ae){if(typeof $!="function")return new O("Property `"+ae+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var J=fe[Q];if(!Array.isArray(J)){var te=Ae(J);return new O("Invalid "+X+" `"+ae+"` of type "+("`"+te+"` supplied to `"+U+"`, expected an array."))}for(var D=0;D<J.length;D++){var b=$(J,D,U,X,ae+"["+D+"]",m);if(b instanceof Error)return b}return null}return I(W)}function V(){function $(W,fe,Q,U,X){var ae=W[fe];if(!y(ae)){var J=Ae(ae);return new O("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return I($)}function ee(){function $(W,fe,Q,U,X){var ae=W[fe];if(!d.isValidElementType(ae)){var J=Ae(ae);return new O("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return I($)}function H($){function W(fe,Q,U,X,ae){if(!(fe[Q]instanceof $)){var J=$.name||k,te=ge(fe[Q]);return new O("Invalid "+X+" `"+ae+"` of type "+("`"+te+"` supplied to `"+U+"`, expected ")+("instance of `"+J+"`."))}return null}return I(W)}function q($){if(!Array.isArray($))return arguments.length>1?v("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):v("Invalid argument supplied to oneOf, expected an array."),h;function W(fe,Q,U,X,ae){for(var J=fe[Q],te=0;te<$.length;te++)if(R(J,$[te]))return null;var D=JSON.stringify($,function(C,E){var P=Ce(E);return P==="symbol"?String(E):E});return new O("Invalid "+X+" `"+ae+"` of value `"+String(J)+"` "+("supplied to `"+U+"`, expected one of "+D+"."))}return I(W)}function Y($){function W(fe,Q,U,X,ae){if(typeof $!="function")return new O("Property `"+ae+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var J=fe[Q],te=Ae(J);if(te!=="object")return new O("Invalid "+X+" `"+ae+"` of type "+("`"+te+"` supplied to `"+U+"`, expected an object."));for(var D in J)if(g(J,D)){var b=$(J,D,U,X,ae+"."+D,m);if(b instanceof Error)return b}return null}return I(W)}function Z($){if(!Array.isArray($))return v("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var W=0;W<$.length;W++){var fe=$[W];if(typeof fe!="function")return v("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ne(fe)+" at index "+W+"."),h}function Q(U,X,ae,J,te){for(var D=[],b=0;b<$.length;b++){var C=$[b],E=C(U,X,ae,J,te,m);if(E==null)return null;E.data&&g(E.data,"expectedType")&&D.push(E.data.expectedType)}var P=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new O("Invalid "+J+" `"+te+"` supplied to "+("`"+ae+"`"+P+"."))}return I(Q)}function ie(){function $(W,fe,Q,U,X){return ve(W[fe])?null:new O("Invalid "+U+" `"+X+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return I($)}function se($,W,fe,Q,U){return new O(($||"React class")+": "+W+" type `"+fe+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function B($){function W(fe,Q,U,X,ae){var J=fe[Q],te=Ae(J);if(te!=="object")return new O("Invalid "+X+" `"+ae+"` of type `"+te+"` "+("supplied to `"+U+"`, expected `object`."));for(var D in $){var b=$[D];if(typeof b!="function")return se(U,X,ae,D,Ce(b));var C=b(J,D,U,X,ae+"."+D,m);if(C)return C}return null}return I(W)}function le($){function W(fe,Q,U,X,ae){var J=fe[Q],te=Ae(J);if(te!=="object")return new O("Invalid "+X+" `"+ae+"` of type `"+te+"` "+("supplied to `"+U+"`, expected `object`."));var D=f({},fe[Q],$);for(var b in D){var C=$[b];if(g($,b)&&typeof C!="function")return se(U,X,ae,b,Ce(C));if(!C)return new O("Invalid "+X+" `"+ae+"` key `"+b+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(fe[Q],null," ")+` 246Valid keys: `+JSON.stringify(Object.keys($),null," "));var E=C(J,b,U,X,ae+"."+b,m);if(E)return E}return null}return I(W)}function ve($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(ve);if($===null||y($))return!0;var W=A($);if(W){var fe=W.call($),Q;if(W!==$.entries){for(;!(Q=fe.next()).done;)if(!ve(Q.value))return!1}else for(;!(Q=fe.next()).done;){var U=Q.value;if(U&&!ve(U[1]))return!1}}else return!1;return!0;default:return!1}}function Ee($,W){return $==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function Ae($){var W=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":Ee(W,$)?"symbol":W}function Ce($){if(typeof $>"u"||$===null)return""+$;var W=Ae($);if(W==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return W}function Ne($){var W=Ce($);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ge($){return!$.constructor||!$.constructor.name?k:$.constructor.name}return N.checkPropTypes=x,N.resetWarningCache=x.resetWarningCache,N.PropTypes=N,N}},
vendor: 182 bytes, line 246
246"./node_modules/prop-types/index.js":(l,u,c)=>{{var d=c("./node_modules/react-is/index.js"),f=!0;l.exports=c("./node_modules/prop-types/factoryWithTypeCheckers.js")(d.isElement,f)}},
vendor: 126 bytes, line 246
246"./node_modules/prop-types/lib/ReactPropTypesSecret.js":l=>{var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";l.exports=u},
vendor: 106 bytes, line 246
246"./node_modules/prop-types/lib/has.js":l=>{l.exports=Function.call.bind(Object.prototype.hasOwnProperty)},
vendor: 2,773 bytes, lines 246-253
246"./node_modules/react-is/cjs/react-is.development.js":(l,u)=>{/** @license React v16.13.1 247 * react-is.development.js 248 * 249 * Copyright (c) Facebook, Inc. and its affiliates. 250 * 251 * This source code is licensed under the MIT license found in the 252 * LICENSE file in the root directory of this source tree. 253 */(function(){var c=typeof Symbol=="function"&&Symbol.for,d=c?Symbol.for("react.element"):60103,f=c?Symbol.for("react.portal"):60106,m=c?Symbol.for("react.fragment"):60107,g=c?Symbol.for("react.strict_mode"):60108,x=c?Symbol.for("react.profiler"):60114,v=c?Symbol.for("react.provider"):60109,h=c?Symbol.for("react.context"):60110,y=c?Symbol.for("react.async_mode"):60111,w=c?Symbol.for("react.concurrent_mode"):60111,j=c?Symbol.for("react.forward_ref"):60112,S=c?Symbol.for("react.suspense"):60113,A=c?Symbol.for("react.suspense_list"):60120,k=c?Symbol.for("react.memo"):60115,N=c?Symbol.for("react.lazy"):60116,R=c?Symbol.for("react.block"):60121,O=c?Symbol.for("react.fundamental"):60117,I=c?Symbol.for("react.responder"):60118,z=c?Symbol.for("react.scope"):60119;function T(C){return typeof C=="string"||typeof C=="function"||C===m||C===w||C===x||C===g||C===S||C===A||typeof C=="object"&&C!==null&&(C.$$typeof===N||C.$$typeof===k||C.$$typeof===v||C.$$typeof===h||C.$$typeof===j||C.$$typeof===O||C.$$typeof===I||C.$$typeof===z||C.$$typeof===R)}function _(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case d:var P=C.type;switch(P){case y:case w:case m:case x:case g:case S:return P;default:var F=P&&P.$$typeof;switch(F){case h:case j:case N:case k:case v:return F;default:return E}}case f:return E}}}var V=y,ee=w,H=h,q=v,Y=d,Z=j,ie=m,se=N,B=k,le=f,ve=x,Ee=g,Ae=S,Ce=!1;function Ne(C){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ge(C)||_(C)===y}function ge(C){return _(C)===w}function $(C){return _(C)===h}function W(C){return _(C)===v}function fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===d}function Q(C){return _(C)===j}function U(C){return _(C)===m}function X(C){return _(C)===N}function ae(C){return _(C)===k}function J(C){return _(C)===f}function te(C){return _(C)===x}function D(C){return _(C)===g}function b(C){return _(C)===S}u.AsyncMode=V,u.ConcurrentMode=ee,u.ContextConsumer=H,u.ContextProvider=q,u.Element=Y,u.ForwardRef=Z,u.Fragment=ie,u.Lazy=se,u.Memo=B,u.Portal=le,u.Profiler=ve,u.StrictMode=Ee,u.Suspense=Ae,u.isAsyncMode=Ne,u.isConcurrentMode=ge,u.isContextConsumer=$,u.isContextProvider=W,u.isElement=fe,u.isForwardRef=Q,u.isFragment=U,u.isLazy=X,u.isMemo=ae,u.isPortal=J,u.isProfiler=te,u.isStrictMode=D,u.isSuspense=b,u.isValidElementType=T,u.typeOf=_})()},
vendor: 113 bytes, line 253
253"./node_modules/react-is/index.js":(l,u,c)=>{l.exports=c("./node_modules/react-is/cjs/react-is.development.js")},
vendor: 510 bytes, line 253
253"./node_modules/shallow-equal/dist/index.esm.js":(l,u,c)=>{c.r(u),c.d(u,{shallowEqualArrays:()=>f,shallowEqualObjects:()=>d});function d(m,g){if(m===g)return!0;if(!m||!g)return!1;var x=Object.keys(m),v=Object.keys(g),h=x.length;if(v.length!==h)return!1;for(var y=0;y<h;y++){var w=x[y];if(m[w]!==g[w]||!Object.prototype.hasOwnProperty.call(g,w))return!1}return!0}function f(m,g){if(m===g)return!0;if(!m||!g)return!1;var x=m.length;if(g.length!==x)return!1;for(var v=0;v<x;v++)if(m[v]!==g[v])return!1;return!0}},
253"./src/Component.ts":function(l,u,c){var d=this&&this.__rest||function(x,v){var h={};for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&v.indexOf(y)<0&&(h[y]=x[y]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,y=Object.getOwnPropertySymbols(x);w<y.length;w++)v.indexOf(y[w])<0&&Object.prototype.propertyIsEnumerable.call(x,y[w])&&(h[y[w]]=x[y[w]]);return h},f=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(u,"__esModule",{value:!0});var m=f(c("./src/useMediaQuery.ts")),g=function(x){var v=x.children,h=x.device,y=x.onChange,w=d(x,["children","device","onChange"]),j=(0,m.default)(w,h,y);return typeof v=="function"?v(j):j?v:null};u.default=g},
253"./src/Context.ts":(l,u,c)=>{Object.defineProperty(u,"__esModule",{value:!0});var d=c("react"),f=(0,d.createContext)(void 0);u.default=f},
253"./src/index.ts":function(l,u,c){var d=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(u,"__esModule",{value:!0}),u.Context=u.toQuery=u.useMediaQuery=u.default=void 0;var f=d(c("./src/useMediaQuery.ts"));u.useMediaQuery=f.default;var m=d(c("./src/Component.ts"));u.default=m.default;var g=d(c("./src/toQuery.ts"));u.toQuery=g.default;var x=d(c("./src/Context.ts"));u.Context=x.default},
253"./src/mediaQuery.ts":function(l,u,c){var d=this&&this.__assign||function(){return d=Object.assign||function(S){for(var A,k=1,N=arguments.length;k<N;k++){A=arguments[k];for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(S[R]=A[R])}return S},d.apply(this,arguments)},f=this&&this.__rest||function(S,A){var k={};for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&A.indexOf(N)<0&&(k[N]=S[N]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,N=Object.getOwnPropertySymbols(S);R<N.length;R++)A.indexOf(N[R])<0&&Object.prototype.propertyIsEnumerable.call(S,N[R])&&(k[N[R]]=S[N[R]]);return k},m=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(u,"__esModule",{value:!0});var g=m(c("./node_modules/prop-types/index.js")),x=g.default.oneOfType([g.default.string,g.default.number]),v={all:g.default.bool,grid:g.default.bool,aural:g.default.bool,braille:g.default.bool,handheld:g.default.bool,print:g.default.bool,projection:g.default.bool,screen:g.default.bool,tty:g.default.bool,tv:g.default.bool,embossed:g.default.bool},h={orientation:g.default.oneOf(["portrait","landscape"]),scan:g.default.oneOf(["progressive","interlace"]),aspectRatio:g.default.string,deviceAspectRatio:g.default.string,height:x,deviceHeight:x,width:x,deviceWidth:x,color:g.default.bool,colorIndex:g.default.bool,monochrome:g.default.bool,resolution:x,type:Object.keys(v)};h.type;var y=f(h,["type"]),w=d({minAspectRatio:g.default.string,maxAspectRatio:g.default.string,minDeviceAspectRatio:g.default.string,maxDeviceAspectRatio:g.default.string,minHeight:x,maxHeight:x,minDeviceHeight:x,maxDeviceHeight:x,minWidth:x,maxWidth:x,minDeviceWidth:x,maxDeviceWidth:x,minColor:g.default.number,maxColor:g.default.number,minColorIndex:g.default.number,maxColorIndex:g.default.number,minMonochrome:g.default.number,maxMonochrome:g.default.number,minResolution:x,maxResolution:x},y),j=d(d({},v),w);u.default={all:j,types:v,matchers:h,features:w}},
253"./src/toQuery.ts":function(l,u,c){var d=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(u,"__esModule",{value:!0});var f=d(c("./node_modules/hyphenate-style-name/index.js")),m=d(c("./src/mediaQuery.ts")),g=function(y){return"not ".concat(y)},x=function(y,w){var j=(0,f.default)(y);return typeof w=="number"&&(w="".concat(w,"px")),w===!0?j:w===!1?g(j):"(".concat(j,": ").concat(w,")")},v=function(y){return y.join(" and ")},h=function(y){var w=[];return Object.keys(m.default.all).forEach(function(j){var S=y[j];S!=null&&w.push(x(j,S))}),v(w)};u.default=h},
253"./src/useMediaQuery.ts":function(l,u,c){var d=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(u,"__esModule",{value:!0});var f=c("react"),m=d(c("./node_modules/matchmediaquery/index.js")),g=d(c("./node_modules/hyphenate-style-name/index.js")),x=c("./node_modules/shallow-equal/dist/index.esm.js"),v=d(c("./src/toQuery.ts")),h=d(c("./src/Context.ts")),y=function(O){return O.query||(0,v.default)(O)},w=function(O){if(O){var I=Object.keys(O);return I.reduce(function(z,T){return z[(0,g.default)(T)]=O[T],z},{})}},j=function(){var O=(0,f.useRef)(!1);return(0,f.useEffect)(function(){O.current=!0},[]),O.current},S=function(O){var I=(0,f.useContext)(h.default),z=function(){return w(O)||w(I)},T=(0,f.useState)(z),_=T[0],V=T[1];return(0,f.useEffect)(function(){var ee=z();(0,x.shallowEqualObjects)(_,ee)||V(ee)},[O,I]),_},A=function(O){var I=function(){return y(O)},z=(0,f.useState)(I),T=z[0],_=z[1];return(0,f.useEffect)(function(){var V=I();T!==V&&_(V)},[O]),T},k=function(O,I){var z=function(){return(0,m.default)(O,I||{},!!I)},T=(0,f.useState)(z),_=T[0],V=T[1],ee=j();return(0,f.useEffect)(function(){if(ee){var H=z();return V(H),function(){H&&H.dispose()}}},[O,I]),_},N=function(O){var I=(0,f.useState)(O.matches),z=I[0],T=I[1];return(0,f.useEffect)(function(){var _=function(V){T(V.matches)};return O.addListener(_),T(O.matches),function(){O.removeListener(_)}},[O]),z},R=function(O,I,z){var T=S(I),_=A(O);if(!_)throw new Error("Invalid or missing MediaQuery!");var V=k(_,T),ee=N(V),H=j();return(0,f.useEffect)(function(){H&&z&&z(ee)},[ee]),(0,f.useEffect)(function(){return function(){V&&V.dispose()}},[]),ee};u.default=R}
253,react:l=>{l.exports=r}},s={};function a(l){var u=s[l];if(u!==void 0)return u.exports;var c=s[l]={exports:{}};return n[l].call(c.exports,c,c.exports,a),c.exports}a.d=(l,u)=>{for(var c in u)a.o(u,c)&&!a.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:u[c]})},a.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),a.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var i=a("./src/index.ts");return i})())})(Kd);var An=Kd.exports;function Ft(){const e=An.useMediaQuery({query:"(min-width: 1366px)"}),t=An.useMediaQuery({query:"(min-width: 1024px)"}),r=An.useMediaQuery({query:"(min-width: 769px)"}),n=An.useMediaQuery({query:"(max-width: 768px)"}),s=An.useMediaQuery({query:"(min-width: 2000px)"});return{isExtraLargeScreen:e,isLargeScreen:t,isMediumScreen:r,isMobile:n,isBigScreen:s}}var Hv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Wv=Object.defineProperty,Qv=Object.defineProperties,Kv=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Jd=Object.prototype.propertyIsEnumerable,fc=(e,t,r)=>t in e?Wv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hc=(e,t)=>{for(var r in t||(t={}))Gd.call(t,r)&&fc(e,r,t[r]);if(Us)for(var r of Us(t))Jd.call(t,r)&&fc(e,r,t[r]);return e},Gv=(e,t)=>Qv(e,Kv(t)),Jv=(e,t)=>
253{var r={};for(var n in e)Gd.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Us)for(var n of Us(e))t.indexOf(n)<0&&Jd.call(e,n)&&(r[n]=e[n]);return r},Et=(e,t,r)=>{const n=p.forwardRef((s,a)=>{var i=s,{color:l="currentColor",size:u=24,stroke:c=2,children:d}=i,f=Jv(i,["color","size","stroke","children"]);return p.createElement("svg",hc(Gv(hc({ref:a},Hv),{width:u,height:u,stroke:l,strokeWidth:c,className:`tabler-icon tabler-icon-${e}`}),f),[...r.map(([m,g])=>p.createElement(m,g)),...d||[]])});return n.propTypes={color:be.string,size:be.oneOfType([be.string,be.number]),stroke:be.oneOfType([be.string,be.number])},n.displayName=`${t}`,n},Zd=Et("arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]]),Zv=Et("dots-circle-horizontal","IconDotsCircleHorizontal",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M8 12l0 .01",key:"svg-1"}],["path",{d:"M12 12l0 .01",key:"svg-2"}],["path",{d:"M16 12l0 .01",key:"svg-3"}]]),Yv=Et("file-certificate","IconFileCertificate",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M5 8v-3a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5",key:"svg-1"}],["path",{d:"M6 14m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-2"}],["path",{d:"M4.5 17l-1.5 5l3 -1.5l3 1.5l-1.5 -5",key:"svg-3"}]]),Yd=Et("file-dollar","IconFileDollar",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M14 11h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5",key:"svg-2"}],["path",{d:"M12 17v1m0 -8v1",key:"svg-3"}]]),Xv=Et("file-invoice","IconFileInvoice",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M9 7l1 0",key:"svg-2"}],["path",{d:"M9 13l6 0",key:"svg-3"}],["path",{d:"M13 17l2 0",key:"svg-4"}]]),Xd=Et("headphones","IconHeadphones",[["path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-1a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 13m0 2a2 2 0 0 1 2 -2h1a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-1a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M4 15v-3a8 8 0 0 1 16 0v3",key:"svg-2"}]]),vi=Et("home","IconHome",[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]]),pc=Et("logout-2","IconLogout2",[["path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2",key:"svg-0"}],["path",{d:"M15 12h-12l3 -3",key:"svg-1"}],["path",{d:"M6 15l-3 -3",key:"svg-2"}]]),ey=Et("phone-call","IconPhoneCall",[["path",{d:"M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M15 7a2 2 0 0 1 2 2",key:"svg-1"}],["path",{d:"M15 3a6 6 0 0 1 6 6",key:"svg-2"}]]),ty=Et("router","IconRouter",[["path",{d:"M3 13m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M17 17l0 .01",key:"svg-1"}],["path",{d:"M13 17l0 .01",key:"svg-2"}],["path",{d:"M15 13l0 -2",key:"svg-3"}],["path",{d:"M11.75 8.75a4 4 0 0 1 6.5 0",key:"svg-4"}],["path",{d:"M8.5 6.5a8 8 0 0 1 13 0",key:"svg-5"}]]),Bs=Et("user-circle","IconUserCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]]),ry=Et("users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]),ny=Et("wallet","IconWallet",[["path",{d:"M17 8v-3a1 1 0 0 0 -1 -1h-10a2 2 0 0 0 0 4h12a1 1 0 0 1 1 1v3m0 4v3a1 1 0 0 1 -1 1h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}
253],["path",{d:"M20 12v4h-4a2 2 0 0 1 0 -4h4",key:"svg-1"}]]),ef=Et("x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function sy(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=tf(t))&&(n&&(n+=" "),n+=r);return n}function tf(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=tf(e[n]))&&(r&&(r+=" "),r+=t);return r}var yi="-";function ay(e){var t=iy(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,s=n===void 0?{}:n;function a(l){var u=l.split(yi);return u[0]===""&&u.length!==1&&u.shift(),rf(u,t)||oy(l)}function i(l,u){var c=r[l]||[];return u&&s[l]?[].concat(c,s[l]):c}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function rf(e,t){var i;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),s=n?rf(e.slice(1),n):void 0;if(s)return s;if(t.validators.length!==0){var a=e.join(yi);return(i=t.validators.find(function(l){var u=l.validator;return u(a)}))==null?void 0:i.classGroupId}}var mc=/^\[(.+)\]$/;function oy(e){if(mc.test(e)){var t=mc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function iy(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},s=cy(Object.entries(e.classGroups),r);return s.forEach(function(a){var i=a[0],l=a[1];Io(l,n,i,t)}),n}function Io(e,t,r,n){e.forEach(function(s){if(typeof s=="string"){var a=s===""?t:gc(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(ly(s)){Io(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(function(i){var l=i[0],u=i[1];Io(u,gc(t,l),r,n)})})}function gc(e,t){var r=e;return t.split(yi).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function ly(e){return e.isThemeGetter}function cy(e,t){return t?e.map(function(r){var n=r[0],s=r[1],a=s.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],c=l[1];return[t+u,c]})):i});return[n,a]}):e}function uy(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function s(a,i){r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(i){var l=r.get(i);if(l!==void 0)return l;if((l=n.get(i))!==void 0)return s(i,l),l},set:function(i,l){r.has(i)?r.set(i,l):s(i,l)}}}var nf="!";function dy(e){var t=e.separator||":",r=t.length===1,n=t[0],s=t.length;return function(i){for(var l=[],u=0,c=0,d,f=0;f<i.length;f++){var m=i[f];if(u===0){if(m===n&&(r||i.slice(f,f+s)===t)){l.push(i.slice(c,f)),c=f+s;continue}if(m==="/"){d=f;continue}}m==="["?u++:m==="]"&&u--}var g=l.length===0?i:i.substring(c),x=g.startsWith(nf),v=x?g.substring(1):g,h=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:h}}}function fy(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var s=n[0]==="[";s?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function hy(e){return{cache:uy(e.cacheSize),splitModifiers:dy(e),...ay(e)}}var py=/\s+/;function my(e,t){var r=t.splitModifiers,n=t.getClassGroupId,s=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(py).map(function(i){var l=r(i),u=l.modifiers,c=l.hasImportantModifier,d=l.baseClassName,f=l.maybePostfixModifierPosition,m=n(f?d.substring(0,f):d),g=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:i};if(m=n(d),!m)return{isTailwindClass:!1,originalClassName:i};g=!1}var x=fy(u).join(":"),v=c?x+nf:x;return{isTailwindClass:!0,modifierId:v,classGroupId:m,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,c=i.hasPostfixModifier,d=l+u;return a.has(d)?!1:(a.add(d),s(u,c).forEach(function(f){return a.add(l+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function gy(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,s,a,i=l;function l(c){var d=t[0],f=t.slice(1),m=f.reduce(function(g,x){return x(g)},d());return n=hy(m),s=n.cache.get,a=n.cache.set,i=u,u(c)}function u(c){var d=s(c);if(d)return d;var f=my(c,n);return a(c,f),f}return function(){return i(sy.apply(null,arguments))}}function De(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var sf=/^\[(?:([a-z-]+):)?(.+)\]$/i,xy=/^\d+\/\d+$/,vy=new Set(["px","full","screen"]),yy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,by=/\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$/,wy=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Dt(e){return zr(e)||vy.has(e)||xy.test(e)||Ro(e)}function Ro(e){return Gr(e,"length",Ty)}function Cy(e){return Gr(e,"size",af)}function jy(e){return Gr(e,"position",af)}function Sy(e){return Gr(e,"url",Py)}function os(e){return Gr(e,"number",zr)}function zr(e){return!Number.isNaN(Number(e))}function Ey(e){return e.endsWith("%")&&zr(e.slice(0,-1))}function Tn(e){return xc(e)||Gr(e,"number",xc)}function Te(e){return sf.test(e)}function Pn(){return!0}function mr(e){return yy.test(e)}function Ay(e){return Gr(e,"",Ny)}function Gr(e,t,r){var n=sf.exec(e);
253return n?n[1]?n[1]===t:r(n[2]):!1}function Ty(e){return by.test(e)}function af(){return!1}function Py(e){return e.startsWith("url(")}function xc(e){return Number.isInteger(Number(e))}function Ny(e){return wy.test(e)}function ky(){var e=De("colors"),t=De("spacing"),r=De("blur"),n=De("brightness"),s=De("borderColor"),a=De("borderRadius"),i=De("borderSpacing"),l=De("borderWidth"),u=De("contrast"),c=De("grayscale"),d=De("hueRotate"),f=De("invert"),m=De("gap"),g=De("gradientColorStops"),x=De("gradientColorStopPositions"),v=De("inset"),h=De("margin"),y=De("opacity"),w=De("padding"),j=De("saturate"),S=De("scale"),A=De("sepia"),k=De("skew"),N=De("space"),R=De("translate"),O=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},z=function(){return["auto",Te,t]},T=function(){return[Te,t]},_=function(){return["",Dt]},V=function(){return["auto",zr,Te]},ee=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},H=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Y=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",Te]},ie=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},se=function(){return[zr,os]},B=function(){return[zr,Te]};return{cacheSize:500,theme:{colors:[Pn],spacing:[Dt],blur:["none","",mr,Te],brightness:se(),borderColor:[e],borderRadius:["none","","full",mr,Te],borderSpacing:T(),borderWidth:_(),contrast:se(),grayscale:Z(),hueRotate:B(),invert:Z(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Ey,Ro],inset:z(),margin:z(),opacity:se(),padding:T(),saturate:se(),scale:se(),sepia:Z(),skew:B(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[mr]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ee(),[Te])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tn]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Tn]}],"grid-cols":[{"grid-cols":[Pn]}],"col-start-end":[{col:["auto",{span:["full",Tn]},Te]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Pn]}],"row-start-end":[{row:["auto",{span:[Tn]},Te]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal"].concat(Y())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Y(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Y(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Te,t]}
vendor: 3,821 bytes, line 253
253],"min-w":[{"min-w":["min","max","fit",Te,Dt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[mr]},mr,Te]}],h:[{h:[Te,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Te,Dt]}],"max-h":[{"max-h":[Te,t,"min","max","fit"]}],"font-size":[{text:["base",mr,Ro]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",os]}],"font-family":[{font:[Pn]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",zr,os]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Te,Dt]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(H(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt]}],"underline-offset":[{"underline-offset":["auto",Te,Dt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ee(),[jy])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cy]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sy]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(H(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
253],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:[""].concat(H())}],"outline-offset":[{"outline-offset":[Te,Dt]}],"outline-w":[{outline:[Dt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Dt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mr,Ay]}],"shadow-color":[{shadow:[Pn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",mr,Te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Tn,Te]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Dt,os]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Oy=gy(ky),Iy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ry=Iy,of=Symbol("isTwElement?"),_y=(e,t)=>e.reduce((r,n,s)=>r.concat(n||[],t[s]||[]),[]),My=(e,t="")=>{let r=e.join(" ").trim().replace(/\n/g," ").replace(/\s{2,}/g," ").split(" ").filter(s=>s!==","),n=t?t.split(" "):[];return Oy(...r.concat(n).filter(s=>s!==" "))},Ly=([e])=>e.charAt(0)!=="$",Ga=e=>e[of]===!0,lf=e=>(t,...r)=>{let n=(s=[])=>{let a=Oe.forwardRef((i,l)=>{let{$as:u=e,style:c={},...d}=i,f=Ga(e)?e:u,m=s?s.reduce((x,v)=>Object.assign(x,typeof v=="function"?v(i):v),{}):{},g=Ga(f)?d:Object.fromEntries(Object.entries(d).filter(Ly));return Oe.createElement(f,{...g,style:{...m,...c},ref:l,className:My(_y(t,r.map(x=>x({...d,$as:u}))),d.className),...Ga(e)?{$as:u}:{}})});return a[of]=!0,typeof e!="string"?a.displayName=e.displayName||e.name||"tw.Component":a.displayName="tw."+e,a.withStyle=i=>n(s.concat(i)),a};return n()},Fy=Ry.reduce((e,t)=>
253({...e,[t]:lf(t)}),{}),$y=Object.assign(lf,Fy),Me=$y;function bi(e){const t=e.isPortal??!1,r=it(),n=Re.getInstance(),s=vt(),{isLargeScreen:a}=Ft(),i=Ks(),l=localStorage.getItem("7azAppMode")??!1,u=Me.button` 254 transition text-red-500 p-2 pr-3 text-base leading-6 font-medium flex flex-row items-center justify-center rounded w-auto text-center" 255 ${()=>e.isPortal?"text-gray-600":"text-contrast hover:bg-white/[0.08]"} 256 `;return o.jsxs(o.Fragment,{children:[a&&o.jsxs(tr.button,{className:`transition p-2 pr-3 text-base leading-6 font-medium flex flex-row items-center justify-center rounded text-center hover:bg-neutral-200 invert-text-primary 257 ${e.isPortal?"text-neutral-900":"text-contrast"} 258 `,onClick:()=>{t&&r(cc()),!t&&r(lc()),i.clear(),l&&Wr({type:"forgot_login",data:{}}),r(tc()),r(ic()),r(oc()),r(zs()),r(ko()),n.logout(),s("/login")},children:[o.jsx(pc,{stroke:1.25,className:`w-6 h-6 mr-2 invert-stroke-primary 259 ${e.isPortal?"stroke-neutral-900":"stroke-contrast"} 260 `}),"Sair"]}),!a&&o.jsx(u,{onClick:()=>{t&&r(cc()),!t&&r(lc()),i.clear(),l&&Wr({type:"forgot_login",data:{}}),r(tc()),r(ic()),r(oc()),r(zs()),r(ko()),n.logout(),s("/login")},children:o.jsx(pc,{className:`w-6 h-6 ${t?"stroke-gray-600":"stroke-primary-contrast"}`,stroke:1.25})})]})}var cf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vc=Oe.createContext&&Oe.createContext(cf),Tr=globalThis&&globalThis.__assign||function(){return Tr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Tr.apply(this,arguments)},Dy=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};function uf(e){return e&&e.map(function(t,r){return Oe.createElement(t.tag,Tr({key:r},t.attr),uf(t.child))})}function Ot(e){return function(t){return Oe.createElement(Vy,Tr({attr:Tr({},e.attr)},t),uf(e.child))}}function Vy(e){var t=function(r){var n=e.attr,s=e.size,a=e.title,i=Dy(e,["attr","size","title"]),l=s||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),Oe.createElement("svg",Tr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:Tr(Tr({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&Oe.createElement("title",null,a),e.children)};return vc!==void 0?Oe.createElement(vc.Consumer,null,function(r){return t(r)}):t(cf)}function zy(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"}}]})(e)}function C9(){return o.jsx("div",{className:"flex h-[200px] w-full items-center justify-center rounded p-6",children:o.jsx(zy,{size:32,className:"text-primary animate-spin"})})}function is({firstItem:e=!1}){return o.jsx("div",{className:`skeleton-bg h-16 rounded-lg w-full ${e?"mt-0":"mt-3"}`,children:o.jsx("div",{className:"mt-4 flex w-full justify-between leading-[19px]"})})}function j9(){return o.jsxs("div",{className:"flex h-full min-h-[530px] w-full flex-col items-start rounded bg-white p-6",children:[o.jsx(is,{firstItem:!0}),o.jsx("div",{className:"skeleton-bg mt-3 h-[1px] w-full"}),o.jsx(is,{}),o.jsx(is,{}),o.jsx("div",{className:"skeleton-bg skeleton-bg mt-4 h-[1px] w-full animate-pulse"}),o.jsx(is,{})]})}function df(){return o.jsx("div",{className:"skeleton-bg h-[46px] w-[160px] animate-pulse rounded-lg"})}function Uy(){return Ft(),o.jsx("div",{className:"flex aspect-[272/236] min-h-[240px] cursor-pointer flex-row justify-between rounded-xl border-gray-200 bg-white p-4 lg:aspect-[432/216] lg:h-full lg:min-h-[216px] w-full lg:max-w-[380px] lg:basis-auto items-center h-[50px]",children:o.jsxs("div",{className:"flex w-full max-w-full rounded-lg flex-col items-start justify-start lg:max-w-[200px]",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"skeleton-bg h-[22px] w-[75px] animate-pulse rounded-lg"}),o.jsx("div",{className:"skeleton-bg h-[24px] w-[40px] animate-pulse rounded-lg"})]}),o.jsx("div",{className:"skeleton-bg mt-2 h-[40px] w-[124px] animate-pulse rounded-lg"}),o.jsx("div",{className:"skeleton-bg mt-2 h-[30px] w-[200px] animate-pulse rounded-lg"}),o.jsx("div",{className:"skeleton-bg mt-2 h-[40px] w-full lg:w-[350px] animate-pulse rounded-lg"})]})})}function By(){return o.jsx("div",{className:"duration-250 lg:hover:shadow-card as
260pect-[225/176] h-[216px] w-full cursor-pointer rounded-2xl border-gray-200 bg-white p-4 transition ease-out hover:ease-in lg:aspect-[240/176] lg:max-w-[360px] ",children:o.jsxs("div",{className:"flex w-full flex-col items-start justify-start rounded-lg lg:max-w-[330px]",children:[o.jsx("div",{className:"skeleton-bg mt-4 h-[56px] w-full lg:w-[330px] animate-pulse rounded-lg"}),o.jsx("div",{className:"skeleton-bg mt-4 h-[56px] w-full lg:w-[330px] animate-pulse rounded-lg"})]})})}function S9(){return o.jsxs("div",{className:" flex gap-4 flex-wrap",children:[o.jsx(Uy,{}),o.jsx(By,{})]})}function ff(){return o.jsxs("div",{className:"font-inter flex h-full flex-col items-center justify-center bg-white p-4 lg:h-screen lg:p-6",children:[o.jsx("div",{className:"skeleton-bg h-[120px] w-[160px] animate-pulse rounded-lg"}),o.jsxs("div",{className:"skeleton-bg shadow-login mt-8 flex w-full max-w-md flex-col items-start justify-start rounded-lg px-8 py-16",children:[o.jsx("div",{className:"skeleton-bg flex h-20 w-full flex-col items-center justify-center"}),o.jsx("div",{className:"skeleton-bg mt-4 h-[60px] w-full"})]})]})}function E9(){return o.jsxs("div",{className:"font-inter flex h-full flex-col items-center justify-center bg-white p-4 lg:h-screen lg:p-6",children:[o.jsx("div",{className:"skeleton-bg h-[120px] w-[160px] animate-pulse rounded-lg"}),o.jsxs("div",{className:"skeleton-bg shadow-login mt-8 flex w-full max-w-md flex-col items-start justify-start rounded-lg px-8 py-16",children:[o.jsx("div",{className:"skeleton-bg flex h-20 w-full flex-col items-center justify-center"}),o.jsx("div",{className:"skeleton-bg mt-4 h-[60px] w-full"})]})]})}function yc(){var n;const e=He(),[t,r]=p.useState(!0);return p.useEffect(()=>{e!=null&&e.Logo&&r(!1)},[e]),o.jsx("header",{className:"bg-secondary z-20",children:o.jsxs("div",{className:"container max-w-[1152px] mx-auto flex flex-row items-center justify-between min-h-[72px] py-3 px-6",children:[t&&o.jsx(df,{}),o.jsx("img",{className:"max-w-[160px] lg:max-w-[193px] max-h-[45px]",src:(n=e==null?void 0:e.Logo)==null?void 0:n.Content,alt:(e==null?void 0:e.Name)||"",tabIndex:1}),o.jsx(bi,{})]})})}function wi({open:e=!1,setOpen:t,children:r,aditionalClasses:n}){return o.jsx(o.Fragment,{children:o.jsx(us,{appear:!0,show:e,as:p.Fragment,children:o.jsx(Di,{as:"div",className:"fixed inset-0 !z-50",onClose:()=>t(!1),children:o.jsxs("div",{className:"h-full flex items-center justify-center px-4 text-center",children:[o.jsx(us.Child,{as:p.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:o.jsx(Di.Overlay,{className:"fixed inset-0 bg-black bg-opacity-[60%]"})}),o.jsx(us.Child,{as:p.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:o.jsxs("div",{className:`inline-block w-full overflow-hidden text-left align-middle transition-all transform shadow rounded-lg bg-white !overflow-y-auto !z-50 ${n}`,children:[o.jsx("div",{className:"absolute top-6 right-6 z-20",children:o.jsxs("button",{type:"button",className:"text-defaultTextDark",onClick:()=>t(!1),children:[o.jsx("span",{className:"sr-only",children:"Fechar"}),o.jsx(ef,{width:24,color:"#262626"})]})}),r]})})]})})})})}function bc({message:e,question:t,open:r,setOpen:n,action:s}){return o.jsx(wi,{open:r,setOpen:n,aditionalClasses:"max-w-[400px] px-6 lg:px-8 py-4 lg:py-8",children:o.jsxs("div",{className:"flex flex-col items-center justify-center mt-4 ",children:[o.jsx("p",{className:"text-sm text-center mb-2 text-defaultText mt-3",children:e}),o.jsx("hr",{className:"border-gray-200 w-80 mb-3"}),o.jsx("h3",{className:"text-[18px] leading-6 text-center text-defaultTextDark max-w-[80%] font-bold",children:t}),o.jsxs("div",{className:" flex gap-3 w-80 ",children:[o.jsx("button",{className:" flex items-center btn-base-submit h-10 text-xs lg:text-sm text-defaultTextDark border border-primary hover:bg-primaryTransparent ",title:"Não",onClick:()=>n(a=>!a),children:"Não"}),o.jsx("button",{className:" flex items-center btn-base-submit h-10 text-xs lg:text-sm text-defaultTextDark border border-primary hover:bg-primaryTransparent",title:"Sim",onClick:s,children:"Sim"})]})]})})}function Jr(){const e=Re.getInstance(),[t,r]=p.useState(e.getPermissions()||{}),n=it();return p.useEffect(()=>{r(e.getPermissions())},[e]),Object.keys(t).length===0&&n(_d()),{permissions:t}}function Qr(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{opacity:"0.12",d:"M16.19 2H7.81C4.17 2 2 4.17 2 7.81V16.18C2 19.83 4.17 22 7.81 22H16.18C19.82 22 21.99 19.83 21.99 16.19V7.81C22 4.17 19.83 2 16.19 2Z",...e}),o.jsx("path",{d:"M13.0594 12.0001L15.3594 9.70011C15.6494 9.41011 15.6494 8.93011 15.3594 8.64011C15.0694 8.35011 14.5894 8.35011 14.2994 8.64011L11.9994 10.9401L9.69937 8.64011C9.40937 8.35011 8.92937 8.35011 8.63938 8.64011C8.34938 8.93011 8.34938 9.41011 8.63938 9.70011L10.9394 12.0001L8.63938 14.3001C8.34938 14.5901 8.34938 15.0701 8.63938 15.3601C8.78938 15.5101 8.97937 15.5801 9.16937 15.5801C9.35937 15.5801 9.54937 15.5101 9.69937 15.3601L11.9994 13.0601L14.2994 15.3601C14.4494 15.5101 14.6394 15.5801 14.8294 15.5801C15.0194 15.5801 15.2094 15.5101 15.3594 15.3601C15.6494 15.0701 15.6494 14.5901 15.3594 14.3001L13.0594 12.0001Z"})]})}function Ci(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}}]})(e)}function qy(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.
2606-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"}}]})(e)}function Wn(e){return Ot({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function Hy(e){return Ot({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"}}]})(e)}function qs(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"}}]})(e)}function hf(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"}}]})(e)}function Wy(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7 1.3 3 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"}}]})(e)}function Qy(e,t,r,n="default"){var a;const s={duration:3e3,position:"bottom-center",toasterId:n};switch(r&&(t=(a=JSON.parse(t))==null?void 0:a.message),e){case"success":return on.custom(i=>o.jsx("div",{className:"toast toast-success text-success w-full max-w-[419px] bg-supportSuccess rounded shadow-lg px-2 py-1 z-50 text-base leading-6",children:o.jsxs("div",{className:"flex flex-row items-center justify-between",children:[o.jsx("div",{className:"flex flex-row items-center justify-start",children:o.jsx("div",{className:"toast-message",children:t})}),o.jsx("button",{className:"ml-1",onClick:()=>on.remove(i.id),title:t,children:o.jsx(Qr,{className:"w-6 h-6 fill-success"})})]})}),s);case"error":return on.custom(i=>o.jsx("div",{className:"toast toast-error w-full max-w-[419px] bg-supportError roun
260ded px-2 py-1 z-50 text-errordefault shadow-lg text-base leading-6",children:o.jsxs("div",{className:"flex flex-row items-center justify-between",children:[o.jsx("div",{className:"flex flex-row items-center justify-start",children:o.jsx("div",{className:"toast-message",children:t})}),o.jsx("button",{className:"ml-1",onClick:()=>on.remove(i.id),title:t,children:o.jsx(Qr,{className:"w-6 h-6 fill-errordefault"})})]})}),s);default:return o.jsxs("div",{className:"toast toast-info",children:[o.jsx("div",{className:"toast-icon",children:o.jsx(Hy,{})}),o.jsx("div",{className:"toast-message",children:t})]})}}function Zr(){return{ToastNotificationHandle:(t,r,n,s)=>(Qy(t,r,n,s??"default"),null)}}const ji="-",Ky=e=>{const t=Jy(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ji);return l[0]===""&&l.length!==1&&l.shift(),pf(l,t)||Gy(i)},getConflictingClassGroupIds:(i,l)=>{const u=r[i]||[];return l&&n[i]?[...u,...n[i]]:u}}},pf=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?pf(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(ji);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},wc=/^\[(.+)\]$/,Gy=e=>{if(wc.test(e)){const t=wc.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Jy=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Yy(Object.entries(e.classGroups),r).forEach(([a,i])=>{_o(i,n,a,t)}),n},_o=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:Cc(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(Zy(s)){_o(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,i])=>{_o(i,Cc(t,a),r,n)})})},Cc=(e,t)=>{let r=e;
vendor: 4,755 bytes, line 260
260return t.split(ji).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Zy=e=>e.isThemeGetter,Yy=(e,t)=>t?e.map(([r,n])=>{const s=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[r,s]}):e,Xy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return s(a,i),i},set(a,i){r.has(a)?r.set(a,i):s(a,i)}}},mf="!",eb=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],a=t.length,i=l=>{const u=[];let c=0,d=0,f;for(let h=0;h<l.length;h++){let y=l[h];if(c===0){if(y===s&&(n||l.slice(h,h+a)===t)){u.push(l.slice(d,h)),d=h+a;continue}if(y==="/"){f=h;continue}}y==="["?c++:y==="]"&&c--}const m=u.length===0?l:l.substring(d),g=m.startsWith(mf),x=g?m.substring(1):m,v=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}};return r?l=>r({className:l,parseClassName:i}):i},tb=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},rb=e=>({cache:Xy(e.cacheSize),parseClassName:eb(e),...Ky(e)}),nb=/\s+/,sb=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(nb);let l="";for(let u=i.length-1;u>=0;u-=1){const c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}=r(c);let x=!!g,v=n(x?m.substring(0,g):m);if(!v){if(!x){l=c+(l.length>0?" "+l:l);continue}if(v=n(m),!v){l=c+(l.length>0?" "+l:l);continue}x=!1}const h=tb(d).join(":"),y=f?h+mf:h,w=y+v;if(a.includes(w))continue;a.push(w);const j=s(v,x);for(let S=0;S<j.length;++S){const A=j[S];a.push(y+A)}l=c+(l.length>0?" "+l:l)}return l};function ab(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=gf(t))&&(n&&(n+=" "),n+=r);return n}const gf=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=gf(e[n]))&&(r&&(r+=" "),r+=t);return r};function ob(e,...t){let r,n,s,a=i;function i(u){const c=t.reduce((d,f)=>f(d),e());return r=rb(c),n=r.cache.get,s=r.cache.set,a=l,l(u)}function l(u){const c=n(u);if(c)return c;const d=sb(u,r);return s(u,d),d}return function(){return a(ab.apply(null,arguments))}}const Ve=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},xf=/^\[(?:([a-z-]+):)?(.+)\]$/i,ib=/^\d+\/\d+$/,lb=new Set(["px","full","screen"]),cb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ub=/\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$/,db=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,or=e=>dn(e)||lb.has(e)||ib.test(e),gr=e=>wn(e,"length",wb),dn=e=>!!e&&!Number.isNaN(Number(e)),Ja=e=>wn(e,"number",dn),Nn=e=>!!e&&Number.isInteger(Number(e)),pb=e=>e.endsWith("%")&&dn(e.slice(0,-1)),Se=e=>xf.test(e),xr=e=>cb.test(e),mb=new Set(["length","size","percentage"]),gb=e=>wn(e,mb,vf),xb=e=>wn(e,"position",vf),vb=new Set(["image","url"]),yb=e=>wn(e,vb,jb),bb=e=>wn(e,"",Cb),kn=()=>!0,wn=(e,t,r)=>{const n=xf.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},wb=e=>ub.test(e)&&!db.test(e),vf=()=>!1,Cb=e=>fb.test(e),jb=e=>hb.test(e),Sb=()=>{const e=Ve("colors"),t=Ve("spacing"),r=Ve("blur"),n=Ve("brightness"),s=Ve("borderColor"),a=Ve("borderRadius"),i=Ve("borderSpacing"),l=Ve("borderWidth"),u=Ve("contrast"),c=Ve("grayscale"),d=Ve("hueRotate"),f=Ve("invert"),m=Ve("gap"),g=Ve("gradientColorStops"),x=Ve("gradientColorStopPositions"),v=Ve("inset"),h=Ve("margin"),y=Ve("opacity"),w=Ve("padding"),j=Ve("saturate"),S=Ve("scale"),A=Ve("sepia"),k=Ve("skew"),N=Ve("space"),R=Ve("translate"),O=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Se,t],T=()=>[Se,t],_=()=>["",or,gr],V=()=>["auto",dn,Se],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Se],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[dn,Se];return{cacheSize:500,separator:":",theme:{colors:[kn],spacing:[or,gr],blur:["none","",xr,Se],brightness:se(),borderColor:[e],borderRadius:["n
260one","","full",xr,Se],borderSpacing:T(),borderWidth:_(),contrast:se(),grayscale:Z(),hueRotate:se(),invert:Z(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[pb,gr],inset:z(),margin:z(),opacity:se(),padding:T(),saturate:se(),scale:se(),sepia:Z(),skew:se(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Se]}],container:["container"],columns:[{columns:[xr]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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"],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:[...ee(),Se]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Nn,Se]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Se]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Nn,Se]}],"grid-cols":[{"grid-cols":[kn]}],"col-start-end":[{col:["auto",{span:["full",Nn,Se]},Se]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[kn]}],"row-start-end":[{row:["auto",{span:[Nn,Se]},Se]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Se]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Se,t]}],"min-w":[{"min-w":[Se,t,"min","max","fit"]}],"max-w":[{"max-w":[Se,t,"none","full","min","max","fit","prose",{screen:[xr]},xr]}],h:[{h:[Se,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Se,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Se,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ja]}],"font-family":[{font:[kn]}],"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:["tighter","tight","normal","wide","wider","widest",Se]}],"line-clamp":[{"line-clamp":["none",dn,Ja]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",or,Se]}],"list-image":[{"list-image":["none",Se]}],"list-style-type":[{list:["none","disc","decimal",Se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",or,gr]}],"underline-offset":[{"underline-offset":["auto",or,Se]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),xb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
260],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,469 bytes, line 260
260],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[or,Se]}],"outline-w":[{outline:[or,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[or,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xr,bb]}],"shadow-color":[{shadow:[kn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",xr,Se]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Se]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",Se]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",Se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Nn,Se]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Se]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Se]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",Se]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[or,gr,Ja]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
260none"]}]},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-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-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"],"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"]}}},Eb=ob(Sb);function Wt(...e){return Eb(tu(e))}const A9=(e,t,r)=>{const n=new Blob([e],{type:r}),s=window.URL.createObjectURL(n),a=document.createElement("a");a.href=s,a.download=t,a.click(),window.URL.revokeObjectURL(s)},Ab=th,Tb=rh,Pb=nh,yf=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(Qc,{ref:n,sideOffset:t,className:Wt("z-50 overflow-hidden rounded-md bg-black px-3 py-1.5 text-xs text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));yf.displayName=Qc.displayName;function Nb({children:e,title:t}){return o.jsx(Ab,{children:o.jsxs(Tb,{children:[o.jsx(Pb,{asChild:!0,children:e}),o.jsx(yf,{children:o.jsx("p",{children:t})})]})})}function kb(){const[e,t]=p.useState(!1),[r,n]=p.useState(!1),[s,a]=p.useState(!1),i=He(),{permissions:l}=Jr(),u=Ye(x=>x.contracts.activeContract),{ToastNotificationHandle:c}=Zr();function d(){n(!0),t(!1)}const f=Me.button`bg-supportWarning cursor-pointer text-neutral-600 text-[11px] lg:text-sm font-semibold leading-[130%] rounded-xl border border-primary px-3 py-[6px] h-fit uppercase 261 ${()=>s?"bg-supportWarning text-gray-900":"cursor-not-allowed bg-gray-200 text-neutral-600 border-neutral-600"} 262 `;function m(){var v;const x=g==null?void 0:g.filter(h=>h.erpContractId===(u==null?void 0:u.id))[0];x?Xl(x==null?void 0:x.id).then(y=>{var w,j,S;(w=y==null?void 0:y.data)!=null&&w.success?(c("success",(j=y==null?void 0:y.data)==null?void 0:j.message),n(!1)):c("error",(S=y==null?void 0:y.data)==null?void 0:S.message)}):Xl((v=g[0])==null?void 0:v.id).then(y=>{var w,j,S;(w=y==null?void 0:y.data)!=null&&w.success?(c("success",(j=y==null?void 0:y.data)==null?void 0:j.message),n(!1)):c("error",(S=y==null?void 0:y.data)==null?void 0:S.message)}),n(!1)}const{data:g}=fn(["getDocuments"],async()=>l!=null&&l.viewContractDocuments?(await yx()).data:[],{refetchOnWindowFocus:!1,refetchOnMount:!1,onError:x=>{console.log(x)}});return p.useEffect(()=>{(g==null?void 0:g.filter(x=>x.status===1).length)>0?a(!1):a(!0)},[g]),o.jsxs(o.Fragment,{children:[(i==null?void 0:i.ErpType)===4&&(l==null?void 0:l.signDocuments)&&!!(u!=null&&u.id)&&(u==null?void 0:u.status)==5&&o.jsx(Nb,{title:s?"":"Aguardando assinatura do contrato",children:o.jsx("span",{children:o.jsx(f,{disabled:!s,onClick:()=>s&&t(!0),children:"Ativar meu Plano"})})}),e&&o.jsx(bc,{message:"Para ativar o contrato, é necessário confirmar se a internet já foi instalada.",question:"Sua internet já foi instalada?",open:e,setOpen:t,action:d}),r&&o.jsx(bc,{message:"Que ótimo! Sua internet já foi instalada e estamos prontos para ativar seu contrato.",question:"Voce confirma a ativação do contrato?",open:r,setOpen:n,action:()=>{m()}})]})}const mt=class mt{};
262ce(mt,"isValidCpf",t=>{let r;if(typeof t!="string"||(t=t.replace(/[\s.-]*/gim,""),!t||t.length!==11||t==="00000000000"||t==="11111111111"||t==="22222222222"||t==="33333333333"||t==="44444444444"||t==="55555555555"||t==="66666666666"||t==="77777777777"||t==="88888888888"||t==="99999999999"))return!1;let n=0,s;for(r=1;r<=9;r++)n=n+parseInt(t.substring(r-1,r))*(11-r);if(s=n*10%11,(s===10||s===11)&&(s=0),s!==parseInt(t.substring(9,10)))return!1;for(n=0,r=1;r<=10;r++)n=n+parseInt(t.substring(r-1,r))*(12-r);return s=n*10%11,(s===10||s===11)&&(s=0),s===parseInt(t.substring(10,11))}),ce(mt,"normalizeTxId",t=>(t??"").toString().replace(/[^0-9A-Za-z]/g,"").toUpperCase()),ce(mt,"isValidCnpj",t=>{const r=mt.normalizeTxId(t);if(!r||r.length!==14||/^(.)\1{13}$/.test(r)||!/^[0-9]{2}$/.test(r.substring(12)))return!1;const n=a=>a.charCodeAt(0)-48,s=a=>{const i=a===12?[5,4,3,2,9,8,7,6,5,4,3,2]:[6,5,4,3,2,9,8,7,6,5,4,3,2];let l=0;for(let c=0;c<a;c++)l+=n(r.charAt(c))*i[c];const u=l%11;return u<2?0:11-u};return n(r.charAt(12))===s(12)&&n(r.charAt(13))===s(13)}),ce(mt,"isValidCpfOrCnpj",t=>{const r=mt.normalizeTxId(t);return r.length===11?mt.isValidCpf(r):r.length===14?mt.isValidCnpj(r):!1}),ce(mt,"isAlphanumericCnpj",t=>{const r=mt.normalizeTxId(t);return r.length===14&&/[A-Z]/.test(r)}),ce(mt,"formatTxId",t=>{const r=mt.normalizeTxId(t);return r.length===11?r.replace(/^(.{3})(.{3})(.{3})(.{2})$/,"$1.$2.$3-$4"):r.length===14?r.replace(/^(.{2})(.{3})(.{3})(.{4})(.{2})$/,"$1.$2.$3/$4-$5"):t}),ce(mt,"maskTxId",t=>{const r=mt.normalizeTxId(t).slice(0,14);if(r.length<=11){let s=r.slice(0,3);return r.length>3&&(s+="."+r.slice(3,6)),r.length>6&&(s+="."+r.slice(6,9)),r.length>9&&(s+="-"+r.slice(9,11)),s}let n=r.slice(0,2)+"."+r.slice(2,5);return r.length>5&&(n+="."+r.slice(5,8)),r.length>8&&(n+="/"+r.slice(8,12)),r.length>12&&(n+="-"+r.slice(12,14)),n});let qe=mt;function Si(){const e=Re.getInstance(),t=e.getClaim("name"),r=e.getClaim("txId"),n=Ye(u=>u.auth.loginExpired),s=Ye(u=>u.auth.completeAccess),a=Ye(u=>u.auth.isPF),i=e.isMultiTenant(),l=it();return p.useEffect(()=>{localStorage.getItem("7azFrontAccessType")==="completeAccess"&&!s&&l(Vs(!0)),localStorage.getItem("7azFrontAccessType")==="simplifiedAccess"&&s&&l(Vs(!1))},[s,l]),p.useEffect(()=>{if(r){const u=qe.normalizeTxId(r).length;u===11&&l(Oo(!0)),u===14&&l(Oo(!1))}},[r,l]),{claimsTxId:r,claimsName:t,loginExpired:n,completeAccess:s,isPF:a,isMultiTenant:i}}function jc(){const{claimsName:e}=Si();return o.jsx("div",{className:"container max-w-[1152px] flex items-center",children:o.jsxs("div",{className:"flex flex-row justify-between lg:justify-items-start items-center w-full gap-4",children:[o.jsxs("div",{className:"flex px-3 lg:p-0 lg:gap-2 flex-col",children:[o.jsx("h1",{className:"text-gray-500 text-[12px] lg:text-[18px] leading-[100%] lg:leading-[120%] font-medium max-w-[210px] lg:max-w-none ",children:"Seja bem-vindo(a),"}),o.jsx("span",{className:"text-[14px] lg:text-[20px] text-gray-900 font-semibold line-clamp-1 lg:line-clamp-none",children:e})]}),o.jsx("div",{className:"flex ",children:o.jsx(kb,{})})]})})}function ls(e){const t=He(),r=!!(t!=null&&t.Timeout&&(t==null?void 0:t.Timeout)>0),{isLargeScreen:n}=Ft();return o.jsxs("div",{className:"bg-[#f3f4f6]",children:[n&&o.jsxs(o.Fragment,{children:[r&&{TimeoutControl:Bv},o.jsx(yc,{}),o.jsx("div",{className:"w-full overflow-hidden",children:o.jsxs("div",{className:"container max-w-[1152px] mx-auto px-4 py-4 lg:py-7 flex justify-center items-center flex-col gap-6",children:[o.jsx(jc,{}),e.children]})})]}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(yc,{}),o.jsx("div",{className:"w-full overflow-hidden",children:o.jsxs("div",{className:"container max-w-[1152px] mx-auto px-4 pt-4 pb-8 lg:py-7 flex justify-center items-center flex-col gap-4",children:[o.jsx(jc,{}),e.children]})})]})]})}function Ob(e){return o.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{opacity:"0.3",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM2.49454 8C2.49454 11.0406 4.95942 13.5055 8 13.5055C11.0406 13.5055 13.5055 11.0406 13.5055 8C13.5055 4.95942 11.0406 2.49454 8 2.49454C4.95942 2.49454 2.49454 4.95942 2.49454 8Z"}),o.jsx("path",{d:"M14.7527 8C15.4416 8 16.0099 7.43826 15.903 6.75777C15.805 6.1347 15.6335 5.52394 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.4761 0.36648 9.8653 0.194973 9.24223 0.0970342C8.56174 -0.00992957 8 0.558421 8 1.24727C8 1.93611 8.56539 2.48049 9.23663 2.63522C9.53322 2.70358 9.82433 2.79659 10.1068 2.91361C10.7748 3.19029 11.3817 3.59582 11.893 4.10705C12.4042 4.61828 12.8097 5.2252 13.0864 5.89315C13.2034 6.17567 13.2964 6.46678 13.3648 6.76337C13.5195 7.43461 14.0639 8 14.7527 8Z"})]})}function Ib(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function Rb(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function T9(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function _b(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}
262]})(e)}function Ei({type:e,message:t,iconSize:r=24}){switch(e){case"success":return o.jsxs(tr.div,{className:"flex flex-row items-center justify-center text-secondary uppercase",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[o.jsx(Ib,{size:r,className:"mr-1"}),o.jsx("span",{className:"text-sm leading-[17px]",children:t})]});case"error":return o.jsxs("div",{className:"flex flex-row items-center justify-center gap-2 uppercase",children:[o.jsx(Rb,{className:"w-5 h-5 text-red-500"}),o.jsx("span",{className:"text-sm text-red-500",children:t})]});case"loading":return o.jsxs(tr.div,{className:"flex items-center justify-center text-primaryContrast uppercase invert-text-secondary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[t,o.jsx(Ob,{className:"fill-primaryContrast animate-spin w-4 h-4 ml-2 invert-fill-secondary"})]});default:return null}}function Mb({open:e,setOpen:t,aditionalClasses:r}){return o.jsx(wi,{open:e,setOpen:t,aditionalClasses:r,children:o.jsxs("div",{className:"flex flex-col items-center justify-center p-6 lg:p-8",children:[o.jsx("div",{className:"px-3 py-[18px]",children:o.jsx("img",{src:"/images/pix/person-modal.svg",alt:"Ainda não é cliente",className:"w-full max-w-[204px]"})}),o.jsxs("div",{className:"text-defaultTextDark text-base lg:text-xl leading-[25px] lg:leading-8 text-center mt-[14px] font-medium",children:[o.jsx("p",{children:"Prezado Cliente,"}),o.jsx("p",{className:"mt-2",children:"Este acesso é exclusivo para assinantes pessoa fÃsica."}),o.jsxs("p",{className:"mt-2",children:["Para realizar pagamentos e consultar segunda via de faturas acesse o ",o.jsx("strong",{children:"Portal do Assinante."})]})]})]})})}function Lb({open:e,setOpen:t,aditionalClasses:r}){const n=He()||{},s="max-w-[400px] w-full";return o.jsx(wi,{open:e,setOpen:t,aditionalClasses:s+r,children:o.jsxs("div",{className:"flex flex-col items-center justify-center p-6 lg:p-8",children:[o.jsx("div",{className:"px-3 py-[18px]",children:o.jsx("img",{src:"/images/pix/person-modal.svg",alt:"Ainda não é cliente",className:"w-full max-w-[204px]"})}),o.jsxs("div",{className:"text-defaultTextDark text-base lg:text-xl leading-[25px] lg:leading-8 text-center mt-[14px] font-medium",children:["Acreditamos que você ainda não seja cliente ",n==null?void 0:n.Name,"."]}),o.jsx(tr.button,{className:"border border-primary flex items-center justify-center text-defaultTextDark text-sm uppercase font-semibold px-4 py-3 rounded mt-8 w-full hover:bg-primaryTransparent transition fill-bg-primary invert-text-secondary",onClick:()=>{window.open(n==null?void 0:n.Url,"_blank")},children:"Quero ser cliente"})]})})}function ts(e,t){const r=e.current.selectionStart??0,n=e.current.selectionEnd??0,s=e.current.value.length;return e.current.value=qe.maskTxId(e.current.value),t(qe.isValidCpfOrCnpj(e.current.value)),e.current.selectionStart=r+(e.current.value.length-s),e.current.selectionEnd=n+(e.current.value.length-s),e.current.value}function Fb(e){return qe.maskTxId(e)}function $b(e){return qe.normalizeTxId(e)}function bf(e){return e>=48&&e<=57||e>=96&&e<=105||e>=65&&e<=90||e===17||e===91}function Qn(e,t,r,n){var s,a,i;if(bf(t.keyCode)&&qe.isValidCnpj(e.current.value)){r&&n&&setTimeout(()=>{r(n)()},100);let l=(i=(a=(s=e.current)==null?void 0:s.parentElement)==null?void 0:a.nextElementSibling)==null?void 0:i.firstElementChild;if((l==null||l.tagName.toLowerCase()!=="input")&&(l=l==null?void 0:l.firstElementChild,l==null||l.tagName.toLowerCase()!=="input"))return;e.current.focus()}}function P9(e,t){var r,n,s;if(bf(t.keyCode)&&qe.isValidCnpj(e.current.value)){let a=(s=(n=(r=e.current)==null?void 0:r.parentElement)==null?void 0:n.nextElementSibling)==null?void 0:s.firstElementChild;if((a==null||a.tagName.toLowerCase()!=="input")&&(a=a==null?void 0:a.firstElementChild,a==null||a.tagName.toLowerCase()!=="input"))return;e.current.focus()}}var rs=e=>e.type==="checkbox",Ur=e=>e instanceof Date,Ct=e=>e==null;const wf=e=>typeof e=="object";var at=e=>!Ct(e)&&!Array.isArray(e)&&wf(e)&&!Ur(e),Db=e=>at(e)&&e.target?rs(e.target)?e.target.checked:e.target.value:e,Vb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zb=(e,t)=>e.has(Vb(t)),Ub=e=>{const t=e.constructor&&e.constructor.prototype;return at(t)&&t.hasOwnProperty("isPrototypeOf")},Ai=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ut(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ai&&(e instanceof Blob||n))&&(r||at(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Ub(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=ut(e[s]));else return e;return t}var Aa=e=>/^\w*$/.test(e),Ze=e=>e===void 0,Ti=e=>Array.isArray(e)?e.filter(Boolean):[],Pi=e=>Ti(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,r)=>{if(!t||!at(e))return r;const n=(Aa(t)?[t]:Pi(t)).reduce((s,a)=>Ct(s)?s:s[a],e);return Ze(n)||n===e?Ze(e[t])?r:e[t]:n},Yt=e=>typeof e=="boolean",Ue=(e,t,r)=>{let n=-1;const s=Aa(t)?[t]:Pi(t),a=s.length,i=a-1;for(;++n<a;){const l=s[n];let u=r;if(n!==i){const c=e[l];
262u=at(c)||Array.isArray(c)?c:isNaN(+s[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const Sc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ut={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ir={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Bb=Oe.createContext(null);Bb.displayName="HookFormContext";var qb=(e,t,r,n=!0)=>{const s={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(s,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Ut.all&&(t._proxyFormState[i]=!n||Ut.all),r&&(r[i]=!0),e[i]}});return s};const Hb=typeof window<"u"?Oe.useLayoutEffect:Oe.useEffect;var At=e=>typeof e=="string",Wb=(e,t,r,n,s)=>At(e)?(n&&t.watch.add(e),he(r,e,s)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),he(r,a))):(n&&(t.watchAll=!0),r),Mo=e=>Ct(e)||!wf(e);function Cr(e,t,r=new WeakSet){if(Mo(e)||Mo(t))return Object.is(e,t);if(Ur(e)&&Ur(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!s.includes(a))return!1;if(a!=="ref"){const l=t[a];if(Ur(i)&&Ur(l)||at(i)&&at(l)||Array.isArray(i)&&Array.isArray(l)?!Cr(i,l,r):!Object.is(i,l))return!1}}return!0}var Qb=(e,t,r,n,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:s||!0}}:{},Ln=e=>Array.isArray(e)?e:[e],Ec=()=>{let e=[];return{get observers(){return e},next:s=>{for(const a of e)a.next&&a.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(a=>a!==s)}}),unsubscribe:()=>{e=[]}}};function Cf(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const s=e[n],a=t[n];if(s&&at(s)&&a){const i=Cf(s,a);at(i)&&(r[n]=i)}else e[n]&&(r[n]=a)}return r}var bt=e=>at(e)&&!Object.keys(e).length,Ni=e=>e.type==="file",Bt=e=>typeof e=="function",Hs=e=>{if(!Ai)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},jf=e=>e.type==="select-multiple",ki=e=>e.type==="radio",Kb=e=>ki(e)||rs(e),Za=e=>Hs(e)&&e.isConnected;function Gb(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Ze(e)?n++:e[t[n++]];return e}function Jb(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ze(e[t]))return!1;return!0}function nt(e,t){const r=Array.isArray(t)?t:Aa(t)?[t]:Pi(t),n=r.length===1?e:Gb(e,r),s=r.length-1,a=r[s];return n&&delete n[a],s!==0&&(at(n)&&bt(n)||Array.isArray(n)&&Jb(n))&&nt(e,r.slice(0,-1)),e}var Zb=e=>{for(const t in e)if(Bt(e[t]))return!0;return!1};function Sf(e){return Array.isArray(e)||at(e)&&!Zb(e)}function Lo(e,t={}){for(const r in e){const n=e[r];Sf(n)?(t[r]=Array.isArray(n)?[]:{},Lo(n,t[r])):Ze(n)||(t[r]=!0)}return t}function nn(e,t,r){r||(r=Lo(t));for(const n in e){const s=e[n];if(Sf(s))Ze(t)||Mo(r[n])?r[n]=Lo(s,Array.isArray(s)?[]:{}):nn(s,Ct(t)?{}:t[n],r[n]);else{const a=t[n];r[n]=!Cr(s,a)}}return r}const Ac={value:!1,isValid:!1},Tc={value:!0,isValid:!0};var Ef=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ze(e[0].attributes.value)?Ze(e[0].value)||e[0].value===""?Tc:{value:e[0].value,isValid:!0}:Tc:Ac}return Ac},Af=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ze(e)?e:t?e===""?NaN:e&&+e:r&&At(e)?new Date(e):n?n(e):e;const Pc={isValid:!1,value:null};var Tf=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Pc):Pc;function Nc(e){const t=e.ref;return Ni(t)?t.files:ki(t)?Tf(e.refs).value:jf(t)?[...t.selectedOptions].map(({value:r})=>r):rs(t)?Ef(e.refs).value:Af(Ze(t.value)?e.ref.value:t.value,e)}var Yb=(e,t,r,n)=>{const s={};for(const a of e){const i=he(t,a);i&&Ue(s,a,i._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:n}},Ws=e=>e instanceof RegExp,On=e=>Ze(e)?e:Ws(e)?e.source:at(e)?Ws(e.value)?e.value.source:e.value:e,kc=e=>({isOnSubmit:!e||e===Ut.onSubmit,isOnBlur:e===Ut.onBlur,isOnChange:e===Ut.onChange,isOnAll:e===Ut.all,isOnTouch:e===Ut.onTouched});const Oc="AsyncFunction";var Xb=e=>!!e&&!!e.validate&&!!(Bt(e.validate)&&e.validate.constructor.name===Oc||at(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Oc)),e2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ic=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Fn=(e,t,r,n)=>{for(const s of r||Object.keys(e)){const a=he(e,s);if(a){const{_f:i,...l}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],s)&&!n)return!0;
vendor: 4,107 bytes, line 262
262if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(Fn(l,t))break}else if(at(l)&&Fn(l,t))break}}};function Rc(e,t,r){const n=he(e,r);if(n||Aa(r))return{error:n,name:r};const s=r.split(".");for(;s.length;){const a=s.join("."),i=he(t,a),l=he(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};s.pop()}return{name:r}}var t2=(e,t,r,n)=>{r(e);const{name:s,...a}=e;return bt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Ut.all))},r2=(e,t,r)=>!e||!t||e===t||Ln(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),n2=(e,t,r,n,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?n.isOnBlur:s.isOnBlur)?!e:(r?n.isOnChange:s.isOnChange)?e:!0,s2=(e,t)=>!Ti(he(e,t)).length&&nt(e,t),a2=(e,t,r)=>{const n=Ln(he(e,r));return Ue(n,"root",t[r]),Ue(e,r,n),e};function _c(e,t,r="validate"){if(At(e)||Array.isArray(e)&&e.every(At)||Yt(e)&&!e)return{type:r,message:At(e)?e:"",ref:t}}var rn=e=>at(e)&&!Ws(e)?e:{value:e,message:""},Mc=async(e,t,r,n,s,a)=>{const{ref:i,refs:l,required:u,maxLength:c,minLength:d,min:f,max:m,pattern:g,validate:x,name:v,valueAsNumber:h,mount:y}=e._f,w=he(r,v);if(!y||t.has(v))return{};const j=l?l[0]:i,S=T=>{s&&j.reportValidity&&(j.setCustomValidity(Yt(T)?"":T||""),j.reportValidity())},A={},k=ki(i),N=rs(i),R=k||N,O=(h||Ni(i))&&Ze(i.value)&&Ze(w)||Hs(i)&&i.value===""||w===""||Array.isArray(w)&&!w.length,I=Qb.bind(null,v,n,A),z=(T,_,V,ee=ir.maxLength,H=ir.minLength)=>{const q=T?_:V;A[v]={type:T?ee:H,message:q,ref:i,...I(T?ee:H,q)}};if(a?!Array.isArray(w)||!w.length:u&&(!R&&(O||Ct(w))||Yt(w)&&!w||N&&!Ef(l).isValid||k&&!Tf(l).isValid)){const{value:T,message:_}=At(u)?{value:!!u,message:u}:rn(u);if(T&&(A[v]={type:ir.required,message:_,ref:j,...I(ir.required,_)},!n))return S(_),A}if(!O&&(!Ct(f)||!Ct(m))){let T,_;const V=rn(m),ee=rn(f);if(!Ct(w)&&!isNaN(w)){const H=i.valueAsNumber||w&&+w;Ct(V.value)||(T=H>V.value),Ct(ee.value)||(_=H<ee.value)}else{const H=i.valueAsDate||new Date(w),q=ie=>new Date(new Date().toDateString()+" "+ie),Y=i.type=="time",Z=i.type=="week";At(V.value)&&w&&(T=Y?q(w)>q(V.value):Z?w>V.value:H>new Date(V.value)),At(ee.value)&&w&&(_=Y?q(w)<q(ee.value):Z?w<ee.value:H<new Date(ee.value))}if((T||_)&&(z(!!T,V.message,ee.message,ir.max,ir.min),!n))return S(A[v].message),A}if((c||d)&&!O&&(At(w)||a&&Array.isArray(w))){const T=rn(c),_=rn(d),V=!Ct(T.value)&&w.length>+T.value,ee=!Ct(_.value)&&w.length<+_.value;if((V||ee)&&(z(V,T.message,_.message),!n))return S(A[v].message),A}if(g&&!O&&At(w)){const{value:T,message:_}=rn(g);if(Ws(T)&&!w.match(T)&&(A[v]={type:ir.pattern,message:_,ref:i,...I(ir.pattern,_)},!n))return S(_),A}if(x){if(Bt(x)){const T=await x(w,r),_=_c(T,j);if(_&&(A[v]={..._,...I(ir.validate,_.message)},!n))return S(_.message),A}else if(at(x)){let T={};for(const _ in x){if(!bt(T)&&!n)break;const V=_c(await x[_](w,r),j,_);V&&(T={...V,...I(_,V.message)},S(V.message),n&&(A[v]=T))}if(!bt(T)&&(A[v]={ref:j,...T},!n))return A}}return S(!0),A};const o2={mode:Ut.onSubmit,reValidateMode:Ut.onChange,shouldFocusError:!0};function i2(e={}){let t={...o2,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Bt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},s=at(t.defaultValues)||at(t.values)?ut(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:ut(s),i={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...d};const m={array:Ec(),state:Ec()},g=t.criteriaMode===Ut.all,x=b=>C=>{clearTimeout(c),c=setTimeout(b,C)},v=async b=>{if(!t.disabled&&(d.isValid||f.isValid||b)){const C=t.resolver?bt((await N()).errors):await O(n,!0);C!==r.isValid&&m.state.next({isValid:C})}},h=(b,C)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((b||Array.from(l.mount)).forEac
vendor: 9,561 bytes, line 262
262h(E=>{E&&(C?Ue(r.validatingFields,E,C):nt(r.validatingFields,E))}),m.state.next({validatingFields:r.validatingFields,isValidating:!bt(r.validatingFields)}))},y=(b,C=[],E,P,F=!0,L=!0)=>{if(P&&E&&!t.disabled){if(i.action=!0,L&&Array.isArray(he(n,b))){const G=E(he(n,b),P.argA,P.argB);F&&Ue(n,b,G)}if(L&&Array.isArray(he(r.errors,b))){const G=E(he(r.errors,b),P.argA,P.argB);F&&Ue(r.errors,b,G),s2(r.errors,b)}if((d.touchedFields||f.touchedFields)&&L&&Array.isArray(he(r.touchedFields,b))){const G=E(he(r.touchedFields,b),P.argA,P.argB);F&&Ue(r.touchedFields,b,G)}(d.dirtyFields||f.dirtyFields)&&(r.dirtyFields=nn(s,a)),m.state.next({name:b,isDirty:z(b,C),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ue(a,b,C)},w=(b,C)=>{Ue(r.errors,b,C),m.state.next({errors:r.errors})},j=b=>{r.errors=b,m.state.next({errors:r.errors,isValid:!1})},S=(b,C,E,P)=>{const F=he(n,b);if(F){const L=he(a,b,Ze(E)?he(s,b):E);Ze(L)||P&&P.defaultChecked||C?Ue(a,b,C?L:Nc(F._f)):V(b,L),i.mount&&!i.action&&v()}},A=(b,C,E,P,F)=>{let L=!1,G=!1;const ne={name:b};if(!t.disabled){if(!E||P){(d.isDirty||f.isDirty)&&(G=r.isDirty,r.isDirty=ne.isDirty=z(),L=G!==ne.isDirty);const me=Cr(he(s,b),C);G=!!he(r.dirtyFields,b),me?nt(r.dirtyFields,b):Ue(r.dirtyFields,b,!0),ne.dirtyFields=r.dirtyFields,L=L||(d.dirtyFields||f.dirtyFields)&&G!==!me}if(E){const me=he(r.touchedFields,b);me||(Ue(r.touchedFields,b,E),ne.touchedFields=r.touchedFields,L=L||(d.touchedFields||f.touchedFields)&&me!==E)}L&&F&&m.state.next(ne)}return L?ne:{}},k=(b,C,E,P)=>{const F=he(r.errors,b),L=(d.isValid||f.isValid)&&Yt(C)&&r.isValid!==C;if(t.delayError&&E?(u=x(()=>w(b,E)),u(t.delayError)):(clearTimeout(c),u=null,E?Ue(r.errors,b,E):nt(r.errors,b)),(E?!Cr(F,E):F)||!bt(P)||L){const G={...P,...L&&Yt(C)?{isValid:C}:{},errors:r.errors,name:b};r={...r,...G},m.state.next(G)}},N=async b=>{h(b,!0);const C=await t.resolver(a,t.context,Yb(b||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return h(b),C},R=async b=>{const{errors:C}=await N(b);if(b)for(const E of b){const P=he(C,E);P?Ue(r.errors,E,P):nt(r.errors,E)}else r.errors=C;return C},O=async(b,C,E={valid:!0})=>{for(const P in b){const F=b[P];if(F){const{_f:L,...G}=F;if(L){const ne=l.array.has(L.name),me=F._f&&Xb(F._f);me&&d.validatingFields&&h([L.name],!0);const $e=await Mc(F,l.disabled,a,g,t.shouldUseNativeValidation&&!C,ne);if(me&&d.validatingFields&&h([L.name]),$e[L.name]&&(E.valid=!1,C))break;!C&&(he($e,L.name)?ne?a2(r.errors,$e,L.name):Ue(r.errors,L.name,$e[L.name]):nt(r.errors,L.name))}!bt(G)&&await O(G,C,E)}}return E.valid},I=()=>{for(const b of l.unMount){const C=he(n,b);C&&(C._f.refs?C._f.refs.every(E=>!Za(E)):!Za(C._f.ref))&&Ce(b)}l.unMount=new Set},z=(b,C)=>!t.disabled&&(b&&C&&Ue(a,b,C),!Cr(ie(),s)),T=(b,C,E)=>Wb(b,l,{...i.mount?a:Ze(C)?s:At(b)?{[b]:C}:C},E,C),_=b=>Ti(he(i.mount?a:s,b,t.shouldUnregister?he(s,b,[]):[])),V=(b,C,E={})=>{const P=he(n,b);let F=C;if(P){const L=P._f;L&&(!L.disabled&&Ue(a,b,Af(C,L)),F=Hs(L.ref)&&Ct(C)?"":C,jf(L.ref)?[...L.ref.options].forEach(G=>G.selected=F.includes(G.value)):L.refs?rs(L.ref)?L.refs.forEach(G=>{(!G.defaultChecked||!G.disabled)&&(Array.isArray(F)?G.checked=!!F.find(ne=>ne===G.value):G.checked=F===G.value||!!F)}):L.refs.forEach(G=>G.checked=G.value===F):Ni(L.ref)?L.ref.value="":(L.ref.value=F,L.ref.type||m.state.next({name:b,values:ut(a)})))}(E.shouldDirty||E.shouldTouch)&&A(b,F,E.shouldTouch,E.shouldDirty,!0),E.shouldValidate&&Z(b)},ee=(b,C,E)=>{for(const P in C){if(!C.hasOwnProperty(P))return;const F=C[P],L=b+"."+P,G=he(n,L);(l.array.has(b)||at(F)||G&&!G._f)&&!Ur(F)?ee(L,F,E):V(L,F,E)}},H=(b,C,E={})=>{const P=he(n,b),F=l.array.has(b),L=ut(C);Ue(a,b,L),F?(m.array.next({name:b,values:ut(a)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&E.shouldDirty&&m.state.next({name:b,dirtyFields:nn(s,a),isDirty:z(b,L)})):P&&!P._f&&!Ct(L)?ee(b,L,E):V(b,L,E),Ic(b,l)&&m.state.next({...r,name:b}),m.state.next({name:i.mount?b:void 0,values:ut(a)})},q=async b=>{i.mount=!0;const C=b.target;let E=C.name,P=!0;const F=he(n,E),L=me=>{P=Number.isNaN(me)||Ur(me)&&isNaN(me.getTime())||Cr(me,he(a,E,me))},G=kc(t.mode),ne=kc(t.reValidateMode);if(F){let me,$e;const ft=C.type?Nc(F._f):Db(b),We=b.type===Sc.BLUR||b.type===Sc.FOCUS_OUT,Qe=!e2(F._f)&&!t.resolver&&!he(r.errors,E)&&!F._f.deps||n2(We,he(r.touchedFields,E),r.isSubmitted,ne,G),ze=Ic(E,l,We);Ue(a,E,ft),We?(!C||!C.readOnly)&&(F._f.onBlur&&F._f.onBlur(b),u&&u(0)):F._f.onChange&&F._f.onChange(b);const et=A(E,ft,We),ht=!bt(et)||ze;if(!We&&m.state.next({name:E,type:b.type,values:ut(a)}),Qe)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?We&&v():We||v()),ht&&m.state.next({name:E,...ze?{}:et});if(!We&&ze&&m.state.next({...r}),t.resolver){const{errors:yt}=await N([E]);if(L(ft),P){const wt=Rc(r.errors,n,E),re=Rc(yt,n,wt.name||E);me=re.error,E=re.name,$e=bt(yt)}}else h([E],!0),me=(await Mc(F,l.disabled,a,g,t.shouldUseNativeValidation))[E],h([E]),L(ft),P&&(me?$e=!1:(d.isValid||f.isValid)&&($e=await O(n,!0)));P&&(F._f.deps&&(!Array.isArray(F._f.deps)||F._f.deps.length>0)&&Z(F._f.deps),k(E,$e,me,et))}},Y=(b,C)=>{if(he(r.errors,C)&&b.focus)return b.focus(),1},Z=async(b,C={})=>{let E,P;const F=Ln(b);if(t.resolver){const L=await R(Ze(b)?b:F);E=bt(L),P=b?!F.some(G=>he(L,G)):E}else b?(P=(await Promise.all(F.map(async L=>{const G=he(n,L);return await O(G&&G._f?{[L]:G}:G)}))).every(Boolean),!(!P&&!r.isValid)&&v()):P=E=await O(n);return m.state.next({...!At(b)||(d.isValid||f.isValid)&&E!==r.isValid?{}:{name:b},...t.resolver||!b?{isValid:E}:{},errors:r.errors}),C.shouldFocus&&!P&&Fn(n,Y,b?F:l.mount),P},ie=(b,C)=>{let E={...i.mount?a:s};return C&&(E=Cf(C.dirtyFields?r.dirtyFields:r.touchedFields,E)),Ze(b)?E:At(b)?he(E,b):b.map(P=>he(E,P))},se=(b,C)=>({invalid:!!he((C||r).errors,b),isDirty:!!he((C||r).dirtyFields,b),error:he((C||r).errors,b),isValidating:!!he(r.validatingFields,b),isTouched:!!he((C||r).touchedFields,b)}),B=b=>{b&&Ln(b).forEach(C=>nt(r.errors,C)),m.state.next({errors:b?r.errors:{}})},le=(b,C,E)=>{const P=(he(n,b,{_f:{}})._f||{}).ref,F=he(r.errors,b)||{},{ref:L,message:G,type:ne,...me}=F;Ue(r.errors,b,{...me,...C,ref:P}),m.state.next({name:b,errors:r.errors,isValid:!1}),E&&E.shouldFocus&&P&&P.focus&&P.focus()},ve=(b,C)=>Bt(b)?m.state.subscribe({next:E=>"values"in E&&b(T(void 0,C),E)}):T(b,C,!0),Ee=b=>m.state.subscribe({next:C=>{r2(b.name,C.name,b.exact)&&t2(C,b.formState||d,J,b.reRenderRoot)&&b.callback({values:{...a},...r,...C,defaultValues:s})}}).unsubscribe,Ae=b=>(i.mount=!0,f={...f,...b.formState},Ee({...b,formState:f})),Ce=(b,C={})=>{for(const E of b?Ln(b):l.mount)l.mount.delete(E),l.array.delete(E),C.keepValue||(nt(n,E),nt(a,E)),!C.keepError&&nt(r.errors,E),!C.keepDirty&&nt(r.dirtyFields,E),!C.keepTouched&&nt(r.touchedFields,E),!C.keepIsValidating&&nt(r.validatingFields,E),!t.shouldUnregister&&!C.keepDefaultValue&&nt(s,E);m.state.next({values:ut(a)}),m.state.next({...r,...C.keepDirty?{isDirty:z()}:{}}),!C.keepIsValid&&v()},Ne=({disabled:b,name:C})=>{(Yt(b)&&i.mount||b||l.disabled.has(C))&&(b?l.disabled.add(C):l.disabled.delete(C))},ge=(b,C={})=>{let E=he(n,b);const P=Yt(C.disabled)||Yt(t.disabled);return Ue(n,b,{...E||{},_f:{...E&&E._f?E._f:{ref:{name:b}},name:b,mount:!0,...C}}),l.mount.add(b),E?Ne({disabled:Yt(C.disabled)?C.disabled:t.disabled,name:b}):S(b,!0,C.value),{...P?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:On(C.min),max:On(C.max),minLength:On(C.minLength),maxLength:On(C.maxLength),pattern:On(C.pattern)}:{},name:b,onChange:q,onBlur:q,ref:F=>{if(F){ge(b,C),E=he(n,b);const L=Ze(F.value)&&F.querySelectorAll&&F.querySelectorAll("input,select,textarea")[0]||F,G=Kb(L),ne=E._f.refs||[];if(G?ne.find(me=>me===L):L===E._f.ref)return;Ue(n,b,{_f:{...E._f,...G?{refs:[...ne.filter(Za),L,...Array.isArray(he(s,b))?[{}]:[]],ref:{type:L.type,name:b}}:{ref:L}}}),S(b,!1,void 0,L)}else E=he(n,b,{}),E._f&&(E._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(zb(l.array,b)&&i.action)&&l.unMount.add(b)}}},$=()=>t.shouldFocusError&&Fn(n,Y,l.mount),W=b=>{Yt(b)&&(m.state.next({disabled:b}),Fn(n,(C,E)=>{const P=he(n,E);P&&(C.disabled=P._f.disabled||b,Array.isArray(P._f.refs)&&P._f.refs.forEach(F=>{F.disabled=P._f.disabled||b}))},0,!1))},fe=(b,C)=>async E=>{let P;E&&(E.preventDefault&&E.preventDefault(),E.persist&&E.persist());let F=ut(a);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:L,values:G}=await N();r.errors=L,F=ut(G)}else await O(n);if(l.disabled.size)for(const L of l.disabled)nt(F,L);if(nt(r.errors,"root"),bt(r.errors)){m.state.next({errors:{}});try{await b(F,E)}catch(L){P=L}}else C&&await C({...r.errors},E),$(),setTimeout($);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bt(r.errors)&&!P,submitCount:r.submitCount+1,errors:r.errors}),P)throw P},Q=(b,C={})=>{he(n,b)&&(Ze(C.defaultValue)?H(b,ut(he(s,b))):(H(b,C.defaultValue),Ue(s,b,ut(C.defaultValue))),C.keepTouched||nt(r.touchedFields,b),C.keepDirty||(nt(r.dirtyFields,b),r.isDirty=C.defaultValue?z(b,ut(he(s,b))):z()),C.keepError||(nt(r.errors,b),d.isValid&&v()),m.state.next({...r}))},U=(b,C={})=>{const E=b?ut(b):s,P=ut(E),F=bt(b),L=F?s:P;if(C.keepDefaultValues||(s=E),!C.keepValues){if(C.keepDirtyValues){const G=new Set([...l.mount,...Object.keys(nn(s,a))]);for(const ne of Array.from(G))he(r.dirtyFields,ne)?Ue(L,ne,he(a,ne)):H(ne,he(L,ne))}else{if(Ai&&Ze(b))for(const G of l.mount){const ne=he(n,G);if(ne&&ne._f){const me=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Hs(me)){const $e=me.closest("form");if($e){$e.reset();break}}}}if(C.keepFieldsRef)for(const G of l.mount)H(G,he(L,G));else n={}}
262a=t.shouldUnregister?C.keepDefaultValues?ut(s):{}:ut(L),m.array.next({values:{...L}}),m.state.next({values:{...L}})}l={mount:C.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!C.keepIsValid||!!C.keepDirtyValues||!t.shouldUnregister&&!bt(L),i.watch=!!t.shouldUnregister,m.state.next({submitCount:C.keepSubmitCount?r.submitCount:0,isDirty:F?!1:C.keepDirty?r.isDirty:!!(C.keepDefaultValues&&!Cr(b,s)),isSubmitted:C.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:F?{}:C.keepDirtyValues?C.keepDefaultValues&&a?nn(s,a):r.dirtyFields:C.keepDefaultValues&&b?nn(s,b):C.keepDirty?r.dirtyFields:{},touchedFields:C.keepTouched?r.touchedFields:{},errors:C.keepErrors?r.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},X=(b,C)=>U(Bt(b)?b(a):b,C),ae=(b,C={})=>{const E=he(n,b),P=E&&E._f;if(P){const F=P.refs?P.refs[0]:P.ref;F.focus&&(F.focus(),C.shouldSelect&&Bt(F.select)&&F.select())}},J=b=>{r={...r,...b}},D={control:{register:ge,unregister:Ce,getFieldState:se,handleSubmit:fe,setError:le,_subscribe:Ee,_runSchema:N,_focusError:$,_getWatch:T,_getDirty:z,_setValid:v,_setFieldArray:y,_setDisabledField:Ne,_setErrors:j,_getFieldArray:_,_reset:U,_resetDefaultValues:()=>Bt(t.defaultValues)&&t.defaultValues().then(b=>{X(b,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:I,_disableForm:W,_subjects:m,_proxyFormState:d,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(b){i=b},get _defaultValues(){return s},get _names(){return l},set _names(b){l=b},get _formState(){return r},get _options(){return t},set _options(b){t={...t,...b}}},subscribe:Ae,trigger:Z,register:ge,handleSubmit:fe,watch:ve,setValue:H,getValues:ie,reset:X,resetField:Q,clearErrors:B,unregister:Ce,setError:le,setFocus:ae,getFieldState:se};return{...D,formControl:D}}function Pf(e={}){const t=Oe.useRef(void 0),r=Oe.useRef(void 0),[n,s]=Oe.useState({isDirty:!1,isValidating:!1,isLoading:Bt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Bt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Bt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...l}=i2(e);t.current={...l,formState:n}}const a=t.current.control;return a._options=e,Hb(()=>{const i=a._subscribe({formState:a._proxyFormState,callback:()=>s({...a._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),a._formState.isReady=!0,i},[a]),Oe.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),Oe.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),Oe.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),Oe.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),Oe.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),Oe.useEffect(()=>{var i;e.values&&!Cr(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((i=a._options.resetOptions)===null||i===void 0)&&i.keepIsValid||a._setValid(),r.current=e.values,s(l=>({...l}))):a._resetDefaultValues()},[a,e.values]),Oe.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=qb(n,a),t.current}const l2=e=>fr.create({baseURL:"https://api.analytics.7az.com.br",headers:{Authorization:`Bearer ${e??Re.getInstance().getJwtToken()}`}}),Oi=(e,t,r)=>{l2(t).post("collect/portal",{event:e,domain:window.location.host,data:r}).then().catch(n=>console.error(n))};function c2(e){const t=new URLSearchParams(window.location.search)??null,r=(t==null?void 0:t.get("txId"))??null,
262n=it(),[s,a]=p.useState(""),[i,l]=p.useState(!1),[u,c]=p.useState(!1),d=p.useRef(),[f,m]=p.useState(!1),[g,x]=p.useState(!1),[v,h]=p.useState(!1),y=Re.getInstance(),[w,j]=p.useState(""),S=p.useRef(),A=e.companyName==="Osirnet",k=vt(),{handleSubmit:N,formState:{errors:R}}=Pf(),{isLargeScreen:O}=Ft(),{ToastNotificationHandle:I}=Zr();function z(){return!!(!f&&i)}const T=p.useCallback(()=>{if(!i||f)return;const Y=Z=>{y.login(Z.token,Z.refreshToken);const ie=new URLSearchParams(window.location.search);ie.get("documentId")?k(`/documents/${ie.get("documentId")}`):k("/")};m(!0),d.current.value.length>=11&&d.current.value.length>0&&(A&&S.current.value.length>0||!A&&w!==null)?Ox(d.current.value,A?S.current.value:null).then(Z=>{var ie;Y(Z==null?void 0:Z.data),n(Mx(Z==null?void 0:Z.data)),Oi("portal-pix-login",(ie=Z==null?void 0:Z.data)==null?void 0:ie.token)}).catch(Z=>{var ie,se,B,le;((se=(ie=Z==null?void 0:Z.response)==null?void 0:ie.data)==null?void 0:se.message)==="Informe a senha para continuar"?h(!0):((le=(B=Z==null?void 0:Z.response)==null?void 0:B.data)==null?void 0:le.message)==="Não foi possÃvel autenticar com os dados informados. Credenciais inválidas"&&x(!0)}).finally(()=>{m(!1)}):m(!1)},[i,f,A,w,y,k,n]),_=()=>{var Y;c(!0),l(qe.isValidCpfOrCnpj(((Y=d==null?void 0:d.current)==null?void 0:Y.value)??"")),z()&&N(T)()},V=Y=>{c(!1),Y.keyCode===13&&!f&&N(T)()};function ee(){d.current.value="",l(!1),a("")}function H(){ts(d,l)}p.useEffect(()=>{r&&(d.current.value=r,c(!0),_(),setTimeout(()=>{N(T)()},1e3))},[r,N,T]),p.useEffect(()=>{d.current.focus()},[d]);const q=Me.label` 263 ${()=>s!=""?"label-float-active":""} 264 absolute bg-white text-sm leading-[14px] text-gray-600 265 duration-300 transform -translate-y-4 scale-100 top-8 left-3 z-10 origin-[0] 266 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 267 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 268 peer-focus:top-1 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-4 269 `;return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsxs("h1",{className:"text-neutral-900 text-base lg:text-2xl leading-6 lg:leading-8 w-full font-bold text-left",children:["Pague sua fatura ",(e==null?void 0:e.companyName)||""," com Pix"]})}),o.jsx("div",{className:"w-full mt-6",children:o.jsxs("form",{onSubmit:()=>!f&&i&&N(T),children:[o.jsx("label",{htmlFor:"cpfCnpj",className:"text-defaultText text-sm font-medium block text-left",children:O?"Para começar digite seu CNPJ ou CPF:":"Digite seu CPF ou CNPJ:"}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"cpfcnpj",type:"tel",className:"input-txid peer"+(u&&(R.cpfcnpj||!i&&s!="")?" border !border-red-700":""),value:s,ref:d,onChange:Y=>{H(),a(Y.target.value)},onBlur:_,onKeyDown:V,onKeyUp:Y=>{Qn(d,Y,N,T)}}),o.jsx(q,{htmlFor:"cpfcnpj",children:"CNPJ/CPF"}),s!=""&&o.jsx(Qr,{className:"absolute right-3 top-3 cursor-pointer fill-defaultTextDark w-6 aspect-auto",onClick:ee})]}),A&&o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"text-defaultText text-sm font-medium block mt-4 text-left",children:"Senha"}),o.jsx("input",{id:"password",type:"password",className:"input-txid mt-1 peer",value:w,ref:S,onChange:Y=>j(Y.target.value),onBlur:_,onKeyUp:Y=>{Qn(S,Y,N,T)}})]}),o.jsxs("button",{type:"button",className:`btn-base-submit ${i?" bg-primary text-contrastPrimary":"bg-gray-200 text-neutral-600 cursor-not-allowed"}`,children:[!f&&o.jsx("div",{className:"uppercase",children:"Fazer login"}),f&&o.jsx(Ei,{type:"loading",message:"Carregando"})]}),!!u&&(!!R.cpfcnpj||!i&&s!="")&&I("error","CPF/CNPJ inválido"),g&&o.jsx(Lb,{open:g,setOpen:x,aditionalClasses:"max-w-[272px] lg:max-w-[403px]"}),v&&o.jsx(Mb,{open:v,setOpen:h,aditionalClasses:"max-w-[272px] lg:max-w-[403px]"})]})})]})}const u2=Me.div` 270 h-auto min-h-screen flex flex-col items-center justify-center bg-secondary font-inter p-4 lg:p-6 login-bg 271`,Nf=({src:e,alt:t})=>o.jsx("img",{src:e,alt:t,width:"auto",height:90,className:"max-w-[175px] lg:max-w-[260px] "});Me.div` 272 z-10 flex flex-col justify-start items-start w-full max-w-[272px] lg:max-w-[380px] bg-white p-6 lg:p-8 rounded-bl rounded-br shadow-lg rounded-tl rounded-tr 273`;Me.div` 274 z-10 flex flex-col justify-start items-start w-full bg-transparent p-6 lg:p-8 rounded-bl rounded-br 275`;const kf=Me.div` 276 flex w-full items-center justify-center z-10 277`,N9=Me.div` 278 flex w-full items-center justify-center z-10 max-w-[130px] 279`,d2=Me.div` 280 z-10 flex flex-col justify-start items-start w-full max-w-[272px] lg:max-w-[380px] bg-white p-6 lg:p-8 rounded-lg mt-8 shadow-lg 281`,f2=Me.div` 282 w-full max-w-[60%] lg:w-[500px] h-full max-h-[60%] lg:h-[500px] 283 left-[-10%] lg:left-[-225px] top-[-20%] lg:top-[-225px] 284 blur-[250px] lg:blur-[250px] 285 z-0 absolute bg-originalPrimary animate-[pulse_3s_ease-in-out_infinite] 286 `;function h2(){var n,s;const e=He(),[t,r]=p.useState(!1);return p.useEffect(()=>{e&&r(!0)},[e]),o.jsx(o.Fragment,{children:e&&((n=e==null?void 0:e.Logo)!=null&&n.Content)?o.jsxs(u2,{id:"bgLoginPix",children:[o.jsx(f2,{}),o.jsx(kf,{children:t&&o.jsx(Nf,{src:((s=e==null?void 0:e.Logo)==null?void 0:s.Content)||"",alt:(e==null?void 0:e.Name)||""})}),o.jsx(d2,{children:o.jsx(c2,{companyName:e==null?void 0:e.Name})})]}):o.jsx(ff,{})})}function p2(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"
286currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 011.06 0l3.75 3.75a.75.75 0 01-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 01-1.06-1.06l3.75-3.75zm-3.75 9.75a.75.75 0 011.06 0L12 17.69l3.22-3.22a.75.75 0 111.06 1.06l-3.75 3.75a.75.75 0 01-1.06 0l-3.75-3.75a.75.75 0 010-1.06z",clipRule:"evenodd"}}]})(e)}function m2({banks:e,selectedBank:t,setSelectedBank:r}){const[n,s]=p.useState(""),a=n===""?e:e.filter(i=>i.name.toLowerCase().includes(n.toLowerCase()));return o.jsxs("div",{className:"mt-2",children:[o.jsxs(Cn,{value:t,onChange:r,as:"div",className:"relative z-40",children:[o.jsx(Cn.Input,{as:"input",className:"w-full bg-white border border-gray-300 rounded-lg py-3 px-4 text-base text-dark2x placeholder-dark2x focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",placeholder:"Pesquise pelo nome da instituição",onChange:i=>s(i.target.value),displayValue:t?t.name:""}),o.jsx(Cn.Button,{className:"absolute inset-y-0 right-0 flex items-center pr-2",children:o.jsx(p2,{className:"h-5 w-5 text-gray-400"})}),o.jsx("div",{className:"relative mt-1",children:o.jsx("div",{className:"relative w-full cursor-default overflow-hidden rounded-lg bg-white text-left shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-teal-300 sm:text-sm",children:o.jsx(us,{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:()=>s(""),children:o.jsx(Cn.Options,{className:"max-h-60 w-full overflow-auto Z-40 rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:a.map(i=>o.jsx(Cn.Option,{value:i,className:({active:l})=>`${l?"text-white bg-primary":"text-gray-900"} 287 cursor-default select-none relative py-2 pl-3 pr-9`,children:({selected:l,active:u})=>o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("img",{src:i==null?void 0:i.logo,alt:i.name,className:"w-8 h-8 rounded-full mr-2"}),o.jsx("span",{className:`${l?"font-medium":"font-normal"} block truncate`,children:i.name})]}),l?o.jsx("span",{className:`${u?"text-white":"text-primary"} absolute inset-y-0 right-0 flex items-center pr-4`,children:o.jsx(_b,{className:"h-5 w-5"})}):null]})},i.id))})})})})]}),o.jsx("div",{className:" inset-y-0 right-0 flex items-center pr-2",children:o.jsxs("span",{className:"text-gray-400 mt-4",children:["Instituição Selecionada:",o.jsxs("div",{className:"flex items-center mt-2",children:[o.jsx("img",{src:t.logo,alt:t.name,className:"w-8 h-8 rounded-full mr-2"}),t?t.name:""]})]})})]})}function g2(){const e=[{id:0,name:"Bradesco",urlRedir:"https://www.bradesco.com.br/",logo:"/images/open-banking/banks/bradesco.png"},{id:1,name:"Banco do Brasil",urlRedir:"https://www.bb.com.br/pbb/pagina-inicial",logo:"/images/open-banking/banks/bb.png"}],[t,r]=p.useState(e[0]||null);function n(){t&&window.open(t.urlRedir,"_blank")}return o.jsx(o.Fragment,{children:o.jsx("div",{className:"h-full lg:h-screen bg-primary flex flex-col items-center justify-center bg-gradient-to-b from-primary to-secondary font-inter p-4 lg:p-6",children:o.jsxs("div",{className:"flex flex-col items-center justify-center w-full max-w-md bg-white px-8 py-16 rounded-lg mt-8 shadow-login",children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx("h1",{className:"text-primary text-3xl lg:text-[32px] leading-7 lg:leading-[38.73px] w-full font-bold text-center",children:"Pix Open Banking"})}),o.jsx("div",{className:"w-full mt-4",children:o.jsxs("div",{className:"relative",children:[o.jsx("p",{className:"text-sm text-dark2x",children:"Selecione a instituição financeira que deseja utilizar para realizar o pagamento"}),o.jsx(m2,{banks:e,selectedBank:t,setSelectedBank:r})]})}),o.jsxs("div",{className:"w-full mt-6",children:[o.jsx("button",{className:"w-full bg-primary text-white text-base font-bold py-3 rounded-lg",onClick:n,children:"Continuar"}),o.jsx("button",{className:"w-full bg-white text-primary text-base font-bold py-3 rounded-lg mt-4",onClick:()=>window.location.replace("/share/invoice/12345678"),children:"Voltar"})]})]})})})}function Of({auth:e,redirectPath:t="/login",children:r}){const{loginExpired:n}=Si(),s=Re.getInstance();return p.useEffect(()=>{setInterval(()=>{s&&s.getRefreshToken()},1e3*280)},[]),s.hasToken()?!(e!=null&&e.loggedIn)||n?o.jsx(pl,{to:`${t}`,replace:!0}):r||o.jsx(Fm,{}):o.jsx(pl,{to:"/login",replace:!0})}const x2=p.lazy(()=>Ke(()=>import("./CreditCardRegistration-66c964d6.js"),["assets/CreditCardRegistration-66c964d6.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/motion-b076d11a.js","assets/IconWifi-560bdb87.js","assets/AutomaticPixQrCode-04795775.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/index-72cc605b.js","assets/IconCheck-78a7cf1f.js","assets/IconCirclePlus-440222cd.js","assets/AppsService-aed909ed.js","assets/pdf-viewer-9b371a90.js"])),v2=p.lazy(()=>Ke(()=>import("./NegotiationPortal-0cf3b18a.js"),["assets/NegotiationPortal-0cf3b18a.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/index-15b45105.js","assets/NegotiationError-38673e90.js","assets/IconCircleX-bed3c750.js","assets/NegotiateDebtsItems-c01f43f1.js","assets/motion-b076d11a.js","assets/IconCircleCheck-f8f43b13.js","assets/useInvoiceContractsFromToken-f1f72a36.js","assets/IconCheck-78a7cf1f.js","assets/AppsService-aed909ed.js","assets/PaymentOptions-29f9e1fe.js","assets/useInvoicePixStatus-c13bff6b.js","assets/useBemobiContainer-ca4e6273.js","assets/success-c2a1737a.js","assets/scroll-area-295de0fa.js","assets/HelmetTitle-6d149794.js","assets/lottie-9975b1e9.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconClock-d308dcf9.js","assets/pdf-viewer-9b371a90.js"])),Ya=p.lazy(()=>Ke(()=>import("./InvoicesPix-0c23f1fa.js"),["assets/InvoicesPix-0c23f1fa.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/HelmetTitle-6d149794.js","assets/NextInvoicesSlider-dd3ded23.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/ErrorRequestGeneric-f308c427.js","assets/ContractStatus-08b71122.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/pdf-viewer-9b371a90.js"])),y2=p.lazy(()=>Ke(()=>import("./ShareInvoicePix-77ed6cb6.js"),["assets/ShareInvoicePix-77ed6cb6.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/index-72cc605b.js","assets/pdf-viewer-9b371a90.js","assets/motion-b076d11a.js"]));function b2(){const e=Ye(r=>r.auth),t=Ir();return p.useEffect(()=>{Wr({type:"windowTitle",data:{title:window.document.title?window.document.title:"Portal Bemobi"}})},[t]),o.jsx(p.Suspense,{fallback:o.jsx(ls,{children:o.jsx(Cv,{})}),children:o.jsxs(Xo,{children:[o.jsxs(ke,{element:o.jsx(Of,{auth:e}),children:[o.jsx(ke,{path:"/",element:o.jsx(ls,{children:o.jsx(Ya,{})})}),o.jsx(ke,{path:"/pix-dashboard",element:o.jsx(ls,{children:o.jsx(Ya,{})})})]}),o.jsx(ke,{path:"/share/invoice/:id",element:o.jsx(y2,{})}),o.jsx(ke,{path:"/open-banking/invoice/:id",element:o.jsx(g2,{})}),o.jsx(ke,{path:"/credit-card-registration",element:o.jsx(x2,{})}),o.jsx(ke,{path:"/portal-negociacoes",element:o.jsx(v2,{})}),o.jsx(ke,{path:"/login",element:o.jsx(h2,{})}),o.jsx(ke,{path:"*",element:o.jsx(ls,{children:o.jsx(Ya,{})})})]})})}function If(){const e=it(),t=Ye(h=>h.contracts.loading),r=Ye(h=>h.contracts.rejected),[n,s]=p.useState(Ye(h=>h.contracts.activeContract)??null),a=Ye(h=>h.contracts.contracts),[i,l]=p.useState(!1),[u,c]=p.useState(!1),{permissions:d}=Jr(),f=p.useMemo(()=>d!=null&&d.viewCanceledContracts?a||[]:(a==null?void 0:a.filter(h=>h.status!==3))||[],[d==null?void 0:d.viewCanceledContracts,a]),{data:m,isLoading:g,refetch:x}=fn(["getContracts"],async()=>{const h=await jd();return e(ec(h.data)),e(Br(!0)),h.data},{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:!!(d!=null&&d.viewContract)}),{data:v}=fn(["getContract",n==null?void 0:n.id],async({queryKey:h})=>{const y=await gi(h[1]);return y.data||e(rc(!1)),y.data},{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:!!(d!=null&&d.viewContract)});return p.useEffect(()=>{if(m&&Object.keys(n).length===0&&n.constructor===Object){e(ec(m)),e(Br(!0));const h=d!=null&&d.viewCanceledContracts?m[0]:m.find(y=>y.status!==3)||m[0];h&&s(h)}},[n,m,e,d==null?void 0:d.viewCanceledContracts]),p.useEffect(()=>{l(Object.keys(n).length!==0&&n.constructor===Object)},[n]),p.useEffect(()=>{v&&(e(Cx(v)),e(Br(!0)),e(rc(!1)),s(v))},[v,e]),{returnContracts:f,loading:t,contractsError:r,activeContract:n,setActiveContract:s,unlockedContract:u,setUnlockedContract:c,isLoading:g,hasActiveContract:i,activeContractData:v,refetchContracts:x}}function w2(e,t){function r({key:n}
287){n===e&&t()}p.useEffect(()=>(window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}),[t,e])}function C2(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M15 22.75H9C3.57 22.75 1.25 20.43 1.25 15V9C1.25 3.57 3.57 1.25 9 1.25H11C11.41 1.25 11.75 1.59 11.75 2C11.75 2.41 11.41 2.75 11 2.75H9C4.39 2.75 2.75 4.39 2.75 9V15C2.75 19.61 4.39 21.25 9 21.25H15C19.61 21.25 21.25 19.61 21.25 15V13C21.25 12.59 21.59 12.25 22 12.25C22.41 12.25 22.75 12.59 22.75 13V15C22.75 20.43 20.43 22.75 15 22.75Z"}),o.jsx("path",{d:"M8.49935 17.6901C7.88935 17.6901 7.32935 17.4701 6.91935 17.0701C6.42935 16.5801 6.21935 15.8701 6.32935 15.1201L6.75935 12.1101C6.83935 11.5301 7.21935 10.7801 7.62935 10.3701L15.5093 2.49006C17.4993 0.500059 19.5193 0.500059 21.5093 2.49006C22.5993 3.58006 23.0893 4.69006 22.9893 5.80006C22.8993 6.70006 22.4193 7.58006 21.5093 8.48006L13.6293 16.3601C13.2193 16.7701 12.4693 17.1501 11.8893 17.2301L8.87935 17.6601C8.74935 17.6901 8.61935 17.6901 8.49935 17.6901ZM16.5693 3.55006L8.68935 11.4301C8.49935 11.6201 8.27935 12.0601 8.23935 12.3201L7.80935 15.3301C7.76935 15.6201 7.82935 15.8601 7.97935 16.0101C8.12935 16.1601 8.36935 16.2201 8.65935 16.1801L11.6693 15.7501C11.9293 15.7101 12.3793 15.4901 12.5593 15.3001L20.4393 7.42006C21.0893 6.77006 21.4293 6.19006 21.4793 5.65006C21.5393 5.00006 21.1993 4.31006 20.4393 3.54006C18.8393 1.94006 17.7393 2.39006 16.5693 3.5
2875006Z"}),o.jsx("path",{d:"M19.8496 9.82978C19.7796 9.82978 19.7096 9.81978 19.6496 9.79978C17.0196 9.05978 14.9296 6.96978 14.1896 4.33978C14.0796 3.93978 14.3096 3.52978 14.7096 3.40978C15.1096 3.29978 15.5196 3.52978 15.6296 3.92978C16.2296 6.05978 17.9196 7.74978 20.0496 8.34978C20.4496 8.45978 20.6796 8.87978 20.5696 9.27978C20.4796 9.61978 20.1796 9.82978 19.8496 9.82978Z"})]})}function j2(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M19.42 11.75H16C15.59 11.75 15.25 11.41 15.25 11V4.01C15.25 3.27 15.54 2.58 16.06 2.06C16.58 1.54 17.27 1.25 18.01 1.25H18.02C19.27 1.26 20.45 1.75 21.35 2.64C22.25 3.55 22.74 4.75 22.74 6V8.42C22.75 10.41 21.41 11.75 19.42 11.75ZM16.75 10.25H19.42C20.58 10.25 21.25 9.58 21.25 8.42V6C21.25 5.14 20.91 4.32 20.3 3.7C19.69 3.1 18.87 2.76 18.02 2.75C18.02 2.75 18.02 2.75 18.01 2.75C17.68 2.75 17.36 2.88 17.12 3.12C16.88 3.36 16.75 3.67 16.75 4.01V10.25Z"}),o.jsx("path",{d:"M9 23.33C8.53 23.33 8.09 23.15 7.76 22.81L6.1 21.14C6.01 21.05 5.87 21.04 5.77 21.12L4.05 22.4C3.52 22.8 2.82 22.87 2.22 22.57C1.62 22.27 1.25 21.67 1.25 21V6C1.25 2.98 2.98 1.25 6 1.25H18C18.41 1.25 18.75 1.59 18.75 2C18.75 2.41 18.41 2.75 18 2.75C17.31 2.75 16.75 3.31 16.75 4V21C16.75 21.67 16.38 22.27 15.78 22.57C15.18 22.87 14.48 22.81 13.95 22.41L12.24 21.13C12.14 21.05 12 21.07 11.92 21.15L10.24 22.83C9.91 23.15 9.47 23.33 9 23.33ZM5.91 19.57C6.37 19.57 6.82 19.74 7.16 20.09L8.82 21.76C8.88 21.82 8.96 21.83 9 21.83C9.04 21.83 9.12 21.82 9.18 21.76L10.86 20.08C11.48 19.46 12.46 19.4 13.15 19.93L14.85 21.2C14.96 21.28 15.06 21.25 15.11 21.22C15.16 21.19 15.25 21.13 15.25 21V4C15.25 3.55 15.36 3.12 15.55 2.75H6C3.78 2.75 2.75 3.78 2.75 6V21C2.75 21.14 2.84 21.2 2.89 21.23C2.95 21.26 3.05 21.28 3.15 21.2L4.86 19.92C5.17 19.69 5.54 19.57 5.91 19.57Z"}),o.jsx("path",{d:"M12 13.7598H9C8.59 13.7598 8.25 13.4198 8.25 13.0098C8.25 12.5998 8.59 12.2598 9 12.2598H12C12.41 12.2598 12.75 12.5998 12.75 13.0098C12.75 13.4198 12.41 13.7598 12 13.7598Z"}),o.jsx("path",{d:"M12 9.75977H9C8.59 9.75977 8.25 9.41977 8.25 9.00977C8.25 8.59977 8.59 8.25977 9 8.25977H12C12.41 8.25977 12.75 8.59977 12.75 9.00977C12.75 9.41977 12.41 9.75977 12 9.75977Z"}),o.jsx("path",{d:"M5.9707 10.0098C5.4207 10.0098 4.9707 9.55977 4.9707 9.00977C4.9707 8.45977 5.4207 8.00977 5.9707 8.00977C6.5207 8.00977 6.9707 8.45977 6.9707 9.00977C6.9707 9.55977 6.5207 10.0098 5.9707 10.0098Z"}),o.jsx("path",{d:"M5.9707 14.0098C5.4207 14.0098 4.9707 13.5598 4.9707 13.0098C4.9707 12.4598 5.4207 12.0098 5.9707 12.0098C6.5207 12.0098 6.9707 12.4598 6.9707 13.0098C6.9707 13.5598 6.5207 14.0098 5.9707 14.0098Z"})]})}function Rf(){const e=()=>{const r=window.location.href;return r.includes("embed")||r.includes("portal-negociacoes")||r.includes("pagamentos-de-faturas")};return{isEmbedPortal:e,isEmbedNoStyle:()=>{const{isLargeScreen:r}=Ft();return!!(!r&&e())}}}function S2(){const{isEmbedPortal:e}=Rf();function t(){e()&&qv({type:"event",data:{action:"close"}})}return{onClose:t}}function E2({openedDrawer:e,title:t,closeDrawer:r,icon:n,children:s,aditionalClasses:a,drawerContainerClasses:i,titleInfo:l}){const u=it(),{onClose:c}=S2(),{isEmbedNoStyle:d}=Rf(),f=He(),m=(f==null?void 0:f.Name)==="Alares";function g({icon:x}){const v="fill-contrast max-w-[24px] aspect-auto mr-2 text-bold";switch(x){case"IconSaxEdit":return o.jsx(C2,{className:v});case"IconSaxReceiptItem":return o.jsx(j2,{className:v});default:return null}}return o.jsxs(o.Fragment,{children:[o.jsxs(tr.div,{className:Wt(e?"drawer open transition !z-40":"drawer",a),initial:{opacity:0,x:480},animate:{opacity:1,x:0},exit:{opacity:0,x:480},transition:{duration:.2,ease:"easeIn"},children:[!m&&!d()&&o.jsxs("div",{className:"drawerHeader py-4 px-4 lg:py-4 lg:px-4 ",children:[o.jsxs("span",{className:"flex w-full invert-text-white text-lg",children:[n&&o.jsx(g,{icon:n}),o.jsxs("div",{className:"flex flex-col",children:[l&&l!==""&&o.jsx("span",{className:"text-xs font-normal leading-normal ",children:l}),t]})]}),o.jsx(ef,{stroke:1.25,className:"cursor-pointer fill-contrast w-8 aspect-auto invert-fill-primary font-medium",onClick:()=>{r(),c(),u(zs())}})]}),o.jsx("div",{className:Wt("bg-white flex flex-col p-4 lg:p-4 pb-8 overflow-y-auto h-full",i),children:s})]}),o.jsx(tr.div,{className:e?"drawer-overlay fixed w-full h-screen top-0 left-0 transition !z-30 bg-black/50":"hidden",initial:{opacity:0}
287,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeIn"},onClick:()=>{r(),c(),u(zs())}})]})}class sn{static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}}ce(sn,"minify",(t,r)=>{const n=t.length;return t.substring(0,n<r?n:r)+"..."+t.substring(n-r<0?n-1:n-r)}),ce(sn,"limitString",(t,r)=>{const n=t.length;return t.substring(0,n<r?n:r)+"..."}),ce(sn,"toCapitalize",t=>t.charAt(0).toUpperCase()+t.slice(1)),ce(sn,"restrictText",(t,r)=>t.length>r?t.slice(0,r)+"*******":t.toString()),ce(sn,"formatPhoneNumber",t=>{if(!t)return"";const r=t.replace(/\D/g,"");return r.length===11?`(${r.slice(0,2)}) ${r.slice(2,7)}-${r.slice(7,11)}`:r.length===10?`(${r.slice(0,2)}) ${r.slice(2,6)}-${r.slice(6,10)}`:r.length===8?`${r.slice(0,4)}-${r.slice(4,9)}`:t});function A2(){const[e,t]=p.useState(!1);return p.useEffect(()=>{const r=Re.getInstance().getCompanyId();t(r==="5a18fc9a-e421-41cd-bbdd-db992fde2a40")},[t]),{isAdylCompany:e}}function T2(){const e=it(),{permissions:t}=Jr(),r=Ye(m=>m.contracts.reloadContracts),{data:n,isLoading:s,isFetching:a,error:i,refetch:l}=fn(["openInvoices"],async()=>{const m=await Kx();return(m==null?void 0:m.data)||[]},{refetchOnWindowFocus:!1,refetchOnMount:!1,refetchInterval:r?3e3:!1,enabled:!!r,retry:1,onSettled:()=>{e(Br(!1)),e(Ad(!1))}}),{data:u,isLoading:c,error:d,refetch:f}=fn(["allInvoices"],async()=>{const m=await zd();return(m==null?void 0:m.data)||[]},{refetchOnWindowFocus:!1,refetchOnMount:!1,refetchInterval:r?3e3:!1,enabled:!!r&&!!(t!=null&&t.viewAllInvoices),onSettled:()=>e(Br(!1))});return{allInvoices:u,openInvoices:n,isLoading:s,isFetching:a,isLoadingAll:c,error:i,errorAll:d,refetchAllInvoices:f,refetchOpenInvoices:l}}function P2({open:e=!1,closeDrawer:t}){const{returnContracts:r,loading:n}=If(),s=it(),{permissions:a}=Jr(),i=Re.getInstance(),l=()=>{t()},{isAdylCompany:u}=A2(),{refetchAllInvoices:c,refetchOpenInvoices:d}=T2(),f=Me.div` 288 transition flex flex-col justify-start items-start gap-1 w-full rounded border border-gray-200 p-4 mb-4 cursor-pointer hover:bg-primaryTransparent hover:border-primary group 289 `;function m(g,x){s(Ad(!0)),i.getCompanyId()!=x&&x!=null&&x!=""&&i.switchSession(x),setTimeout(()=>{l()},750),setTimeout(()=>{s(Sd(g)),s(Br(!0)),c(),d()},1300)}return o.jsx(o.Fragment,{children:o.jsx(E2,{title:"Selecione o contrato",openedDrawer:e,closeDrawer:l,children:!n&&r&&r.length>0&&r.map((g,x)=>{var v;return o.jsxs(f,{onClick:()=>m(g.id,g.companyId),children:[o.jsxs("div",{className:"flex items items-start flex-col gap-1",children:[!(a!=null&&a.hideContractNumber)&&o.jsxs("div",{className:"text-xs font-semibold uppercase text-defaultTextDark",children:["Contrato ",g.id]}),g.beneficiaryName&&o.jsx("div",{className:"text-xs font-semibold uppercase text-defaultTextDark",children:g.beneficiaryName||" "}),((v=g.customer)==null?void 0:v.phoneNumber)&&o.jsxs("div",{className:"text-xs font-semibold uppercase text-defaultTextDark",children:["- ",sn.formatPhoneNumber(g.customer.phoneNumber)]}),(g==null?void 0:g.planName)&&u&&o.jsxs("div",{className:"text-xs uppercase",children:[" - ",g==null?void 0:g.planName]})]}),o.jsx("div",{className:"text-xs font-normal uppercase text-defaultText line-clamp-1",children:`${g==null?void 0:g.address} - ${g==null?void 0:g.city}`})]},x)})})})}function N2(e){return Object.keys(e).length===0&&e.constructor===Object}function k2(){const e=Ye(h=>h.contracts.activeContract),{returnContracts:t,isLoading:r}=If(),[n,s]=p.useState(!1),{isLargeScreen:a}=Ft(),i=He(),{isPortalApp:l}=Hd(i),{permissions:u}=Jr(),[c,d]=p.useState(!1),[f,m]=p.useState(!1),g=t==null?void 0:t.find(h=>h.id===(e==null?void 0:e.id)),x=(g==null?void 0:g.beneficiaryName)||"";p.useEffect(()=>{u!=null&&u.viewContract?d(!1):d(!0)},[u==null?void 0:u.viewContract]);const v=()=>{s(!0)};return w2("Escape",()=>{n&&s(!1)}),p.useEffect(()=>{N2(e)?m(!1):m(!0)},[e]),o.jsxs("div",{className:`w-full bg-white lg:border lg:border-b border-neutral-200 lg:mt-0 rounded-xl lg:rou
289nded-none ${l?" mt-0":" mt-4"}`,children:[o.jsx("div",{className:"container p-4 lg:py-4 lg:px-8 w-full max-w-screen-xxl",children:o.jsxs("div",{className:"flex items-center justify-between ",children:[o.jsxs("div",{className:"flex flex-row items-center lg:items-center justify-between lg:justify-start w-full",children:[(t==null?void 0:t.length)>0&&!r&&o.jsxs("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-start mr-2 lg:mr-0",children:[!(u!=null&&u.hideContractNumber)&&o.jsxs(o.Fragment,{children:[!c&&f&&o.jsxs("div",{className:"text-xs lg:text-sm font-bold lg:leading-6 uppercase text-neutral-900",children:["Contrato ",e==null?void 0:e.id]}),(g==null?void 0:g.beneficiaryName)&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-[3px] h-[3px] bg-primary rounded-full mx-1 hidden lg:block"}),o.jsx("div",{className:"text-xs md:text-sm font-bold lg:leading-6 uppercase text-neutral-900",children:x})]}),(c||!f)&&o.jsx("div",{className:"skeleton-bg w-16 h-6 rounded"}),o.jsx("div",{className:"w-[3px] h-[3px] bg-primary rounded-full mx-1 hidden lg:block"})]}),f&&(e!=null&&e.address)?o.jsx("div",{className:"text-xs lg:text-sm font-medium leading-5 lg:leading-6 uppercase text-neutral-600 lg:mr-4 line-clamp-1",children:`${e==null?void 0:e.address} - ${e==null?void 0:e.city}`}):o.jsx("div",{className:"skeleton-bg w-32 h-6 rounded lg:mr-4"})]}),(t==null?void 0:t.length)===0&&!r&&(u==null?void 0:u.viewContract)&&o.jsx("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-start mr-2 lg:mr-0",children:o.jsx("div",{className:"text-xs lg:text-sm font-bold lg:leading-6 uppercase text-neutral-900",children:"Sem contrato ativo"})}),!r&&!(u!=null&&u.viewContract)&&o.jsx("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-start mr-2 lg:mr-0",children:o.jsx("div",{className:"text-xs lg:text-sm font-bold lg:leading-6 uppercase text-neutral-900",children:""})}),r&&a&&o.jsx("div",{className:"skeleton-bg w-[167px] h-9 rounded",onClick:()=>v()}),r&&!a&&o.jsx("div",{className:"skeleton-bg w-[85px] h-9 rounded",onClick:()=>v()}),!c&&t&&t.length>1&&!r&&o.jsx("button",{tabIndex:2,className:"btn-base-submit !py-[6px] !lg:py-2 !w-auto !text-[12px] text-defaultTextDark hover:text-primaryContrast !mt-0 border border-primary hover:bg-primary uppercase",onClick:()=>v(),children:a?"Mudar Contrato":"Mudar"})]}),l&&a&&o.jsx(bi,{isPortal:l})]})}),n&&o.jsx(P2,{open:n,closeDrawer:s})]})}function O2(){var n;const e=He(),[t,r]=p.useState(!0);return p.useEffect(()=>{e!=null&&e.Logo&&r(!1)},[e]),o.jsx("header",{className:"bg-secondary z-20",children:o.jsxs("div",{className:"container max-w-[1152px] mx-auto flex flex-row items-center justify-between py-3 px-6",children:[t&&o.jsx(df,{}),o.jsx(ei,{to:"/",children:o.jsx("img",{className:"w-full max-w-[160px] lg:max-w-[193px] max-h-[49px] h-auto object-contain object-left",src:(n=e==null?void 0:e.Logo)==null?void 0:n.Content,alt:e==null?void 0:e.Name})}),o.jsx(bi,{})]})})}function Mt({title:e,to:t,icon:r,isMobile:n=!1}){const s=r,a=window.location.pathname;return o.jsx(ei,{to:t,children:o.jsxs("div",{className:` 290 group p-3 transition flex flex-row items-center rounded-lg mb-0 lg:mb-4 cursor-pointer 291 ${a===t?"menu-ativo-color text-menu-color-active":"bg-transparent menu-colorhover text-menu-color"} 292 ${n?"gap-0":"gap-2"} 293 `,children:[o.jsx(s,{size:22,stroke:1.25}),o.jsx("span",{className:"text-sm leading-[17px] font-medium",children:e})]})})}function I2(){const{permissions:e}=Jr(),t=Ye(i=>i.contracts.activeContract),r=!!(t!=null&&t.id)&&!(t!=null&&t.isAwaitingSignature),n=!(t!=null&&t.isAwaitingSignature)&&(e==null?void 0:e.showInvoices),s=(e==null?void 0:e.showSupport)&&r,a=!n&&!s?"mx-auto flex flex-row justify-center items-center gap-6":"flex flex-row justify-between";return o.jsxs("div",{className:a,children:[o.jsx(Mt,{title:"",to:"/",icon:vi,isMobile:!0}),n&&o.jsx(Mt,{title:"",to:"/invoices",icon:Yd,isMobile:!0}),s&&o.jsx(Mt,{title:"",to:"/support",icon:Xd,isMobile:!0}),o.jsx(Mt,{title:"",to:"/settings",icon:Zv,isMobile:!0})]})}function R2(){return o.jsx(o.Fragment,{children:o.jsx(tr.nav,{className:"fixed bottom-0 left-0 bg-secondary w-full p-4 z-20",children:o.jsx(I2,{})})})}function Lc(){var t;const e=He();return o.jsx(ei,{to:"/",children:o.jsx("img",{className:"max-w-[75%] mx-auto",src:((t=e==null?void 0:e.Logo)==null?void 0:t.Content)||"",alt:(e==null?void 0:e.Name)||""})})}function Fc(){const e=Ye(i=>i.contracts.activeContract),{permissions:t}=Jr(),{isPF:r}=Si(),n=Ye(i=>i.auth.isSimplifiedOnlyRestricted),s=!!(e!=null&&e.id)&&!(e!=null&&e.isAwaitingSignature),a=()=>{var i;return((i=e==null?void 0:e.availablePaymentMethods)==null?void 0:i.length)>0?`/forma-pagamento/contrato/${e==null?void 0:e.id}`:"/forma-pagamento"};return o.jsxs("div",{className:"mt-8",children:[o.jsx(Mt,{title:"InÃcio",to:"/",icon:vi}),!n&&o.jsxs(o.Fragment,{children:[s&&(t==null?void 0:t.showInvoices)&&o.jsx(Mt,{title:"Faturas",to:"/invoices",icon:Yd}),(s&&(t==null?void 0:t.changePaymentMethod)||!!(e!=null&&e.id)&&t.changePaymentMethodAllContracts)&&o.jsx(Mt,{title:"Pagamento automático",to:a(),icon:ny}),!!(e!=null&&e.id)&&(r&&(t==null?void 0:t.showPfFiscalDocuments)||!r&&(t==null?void 0:t.showPjFiscalDocuments))&&o.jsx(Mt,{title:"Notas Fiscais",to:"/fiscal-documents",icon:Xv}),(t==null?void 0:t.viewContractDocuments)&&!!(e!=null&&e.id)&&o.jsx(Mt,{title:"Documentos",to:"/documents",icon:Yv}),(t==null?void 0:t.showSupport)&&s&&o.jsx(Mt,{title:"Suporte",to:"/support",icon:Xd}),(t==null?void 0:t.viewTelecomInfo)&&s&&o.jsx(Mt,{title:"Telefonia",to:"/phone-calls",icon:ey}),(t==null?void 0:t.showConnection)&&s&&o.jsx(Mt,{title:"Conexão",to:"/connection",icon:ty})]})]})}function _2(){const{isBigScreen:e}=Ft();return o.jsxs(o.Fragment,{children:[!e&&o.jsx(tr.nav,{animate:{width:"271px"},transition:{duration:.5},className:" flex flex-col justify-between bg-secondary w-full max-w-[271px] px-8 py-16 z-10 flex-none",children:o.jsxs("div",{children:[o.jsx(Lc,{}),o.jsx(Fc,{})]})}),e&&o.jsxs(tr.nav,{animate:{width:"500px"},transition:{duration:.5},className:"bg-secondary w-full max-w-[500px] px-8 py-16 z-10 flex-none",children:[o.jsx(Lc,{}),o.jsx(Fc,{})]})]})}const Vt=e=>{const{isLargeScreen:t}=Ft();Ye(n=>n.auth.isSimplifiedOnly);const r=Ye(n=>n.auth.isSimplifiedOnlyRestricted);return o.jsxs("div",{className:"flex w-full min-h-full pb-[88px] lg:pb-0",children:[t&&o.jsx(_2,{}),o.jsxs("div",{className:"w-full flex flex-col overflow-x-hidden",children:[!t&&o.jsx(O2,{}),t&&o.jsx(k2,{}),e.children]}),{}.VITE_APP_COMPANY_ID==="eccc641c-9ac4-4a16-9d4b-42319c25f016"&&o.jsx(o.Fragment,{children:o.jsx(_n,{children:o.jsx("script",{src:"/webby-szchat.js",type:"text/javascript"})})}),!t&&!r&&o.jsx(R2,{})]})},M2=p.createContext({});function L2({children:e}){const[t,r]=p.useState(!1);return o.jsx(M2.Provider,{value:{showSupportTicketMoldal:t,setShowSupportTicketModal:r},children:e})}const F2=p.createContext({});function $2({children:e}){const[t,r]=p.useState(!1);return p.useEffect(()=>{r(Math.random()>=.5)},[]),o.jsx(F2.Provider,{value:{showAutomaticBillingCardOption:t},children:e})}const Qt=p.createContext({});function D2({children:e}){const[t,r]=p.useState(!1),[n,s]=p.useState(!1),[a,i]=p.useState(!1),[l,u]=p.useState(""),[c,d]=p.useState(""),[f,m]=p.useState(!1),[g,x]=p.useState(""),[v,h]=p.useState(0),[y,w]=p.useState(!1),[j,S]=p.useState([]),[A,k]=p.useState(!1),N=p.useMemo(()=>({simplifiedAuthHasValidation:t,setSimplifiedAuthHasValidation:r,authValidated:n,setAuthValidated:s,showAuthValidation:a,setShowAuthValidation:i,validationCode:l,setValidationCode:u,simplifiedAuthByContact:f,setSimplifiedAuthByContact:m,userValidationCode:c,setUserValidationCode:d,currentTxId:g,setCurrentTxId:x,authValidationType:v,setAuthValidationType:h,showBrokerValidation:y,setShowBrokerValidation:w,brokerAuthMethods:j,setBrokerAuthMethods:S,showSimplifiedBrokerValidation:A,setShowSimplifiedBrokerValidation:k}),[n,a,f,t,c,l,g,v,y,j,A]);return o.jsx(Qt.Provider,{value:N,children:e})}function _f({options:e,value:t,setter:r,title:n,selectedValue:s,selectedLabel:a,aditionalClasses:i,returnNumber:l}){function u(c){c.target.value==="default"&&r(null),r(l?Number(c.target.value):c.target.value==="default"?null:c.target.value)}return o.jsxs("select",{className:`select-input ${i||""}`,value:t,onChange:u,children:[o.jsx("option",{value:"default",children:n}),e&&e.map(c=>{if(s!==c.key||s!==(c==null?void 0:c.id))return o.jsx("option",{value:(c==null?void 0:c.key)??(c==null?void 0:c.id),children:c.value??(c==null?void 0:c.maskedNumber)},c.key??(c==null?void 0:c.id))})]})}function V2(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M9.57 5.92993L3.5 11.9999L9.57 18.0699",stroke:"#292D32",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M20.5 12H3.67004",stroke:"#292D32",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Mf({action:e}){const t=vt();return o.jsx(o.Fragment,{children:o.jsxs("button",{className:"flex flex-row items-center justify-center gap-1 py-3 px-3 rounded-md bg-neutral-100 hover:bg-neutral-200 hover:text-contrast mb-6",onClick:()=>e()||t("/"),children:[o.jsx(V2,{className:"w-4 h-4 stroke-neutral-900 mr-1 "}),o.jsx("span",{className:"text-sm leading-6 font-medium text-neutral-900",children:"Voltar ao inÃcio"})]})})}function Ie({id:e,action:t,loading:r,data:n,label:s,loadingLabel:a,disabled:i,aditionalClasses:l,type:u="button"}){return o.jsxs("button",{className:`btn-base-submit bg-primary text-base leading-[160%] text-primaryContrast hover:brightness-95 mt-0 w-full 294 ${i?"!bg-primaryTransparent50 text-neutral-600 cursor-not-allowed":""} 295 ${l??""}`,onClick:c=>{c.stopPropagation(),t()},disabled:i,type:u,id:e??"",children:[r&&o.jsx(Ei,{type:"loading",message:a??"Processando..."}),!r&&o.jsx(o.Fragment,{children:s})]})}function Ii(e){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M12 2C6.49 2 2 6.49 2
29512C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z",fill:"#16a34a"})})}function ur(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M21.25 9.14999C18.94 5.51999 15.56 3.42999 12 3.42999C10.22 3.42999 8.49 3.94999 6.91 4.91999C5.33 5.89999 3.91 7.32999 2.75 9.14999C1.75 10.72 1.75 13.27 2.75 14.84C5.06 18.48 8.44 20.56 12 20.56C13.78 20.56 15.51 20.04 17.09 19.07C18.67 18.09 20.09 16.66 21.25 14.84C22.25 13.28 22.25 10.72 21.25 9.14999ZM12 16.04C9.76 16.04 7.96 14.23 7.96 12C7.96 9.76999 9.76 7.95999 12 7.95999C14.24 7.95999 16.04 9.76999 16.04 12C16.04 14.23 14.24 16.04 12 16.04Z"}),o.jsx("path",{d:"M11.998 9.14001C11.2408 9.14001 10.5146 9.44081 9.97922 9.97622C9.4438 10.5116 9.14301 11.2378 9.14301 11.995C9.14301 12.7522 9.4438 13.4784 9.97922 14.0138C10.5146 14.5492 11.2408 14.85 11.998 14.85C13.568 14.85 14.858 13.57 14.858 12C14.858 10.43 13.568 9.14001 11.998 9.14001Z"})]})}function dr(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{opacity:"0.4",d:"M21.2496 9.15004C20.7596 8.37004 20.1996 7.67004 19.6196 7.04004L15.8496 10.81C15.9696 11.18 16.0396 11.58 16.0396 12C16.0396 14.24 14.2296 16.04 11.9996 16.04C11.5796 16.04 11.1796 15.97 10.8096 15.85L7.34961 19.31C8.80961 20.13 10.3896 20.56 11.9996 20.56C13.7796 20.56 15.5096 20.04 17.0896 19.07C18.6696 18.09 20.0896 16.66 21.2496 14.84C22.2496 13.28 22.2496 10.72 21.2496 9.15004Z"}),o.jsx("path",{d:"M14.0206 9.97989L9.98062 14.0199C9.47062 13.4999 9.14062 12.7799 9.14062 11.9999C9.14062 10.4299 10.4206 9.13989 12.0006 9.13989C12.7806 9.13989 13.5006 9.46989 14.0206 9.97989Z"}),o.jsx("path",{opacity:"0.4",d:"M18.25 5.74993L14.86 9.13993C14.13 8.39993 13.12 7.95993 12 7.95993C9.76 7.95993 7.96 9.76993 7.96 11.9999C7.9
2956 13.1199 8.41 14.1299 9.14 14.8599L5.76 18.2499H5.75C4.64 17.3499 3.62 16.1999 2.75 14.8399C1.75 13.2699 1.75 10.7199 2.75 9.14993C3.91 7.32993 5.33 5.89993 6.91 4.91993C8.49 3.95993 10.22 3.42993 12 3.42993C14.23 3.42993 16.39 4.24993 18.25 5.74993Z"}),o.jsx("path",{d:"M14.8601 12.0001C14.8601 13.5701 13.5801 14.8601 12.0001 14.8601C11.9401 14.8601 11.8901 14.8601 11.8301 14.8401L14.8401 11.8301C14.8601 11.8901 14.8601 11.9401 14.8601 12.0001Z"}),o.jsx("path",{d:"M21.7709 2.22988C21.4709 1.92988 20.9809 1.92988 20.6809 2.22988L2.23086 20.6899C1.93086 20.9899 1.93086 21.4799 2.23086 21.7799C2.38086 21.9199 2.57086 21.9999 2.77086 21.9999C2.97086 21.9999 3.16086 21.9199 3.31086 21.7699L21.7709 3.30988C22.0809 3.00988 22.0809 2.52988 21.7709 2.22988Z"})]})}function Ta({validationCode:e,setValidationCode:t,isCodeFilled:r,setIsCodeFilled:n,onKeyEnterFunc:s}){const[a,i]=p.useState([]);function l(m,g){if(m===void 0)return;const x=g.replace(/\D/g,"")[0],v=[...a];v[m]=x,i(v)}const u=(m,g)=>{const{key:x}=m;if(x==="Enter"){r&&s(),m.preventDefault();return}if(x==="ArrowLeft"){g>0&&c(g-1),m.preventDefault();return}if(x==="ArrowRight"){g<5&&c(g+1),m.preventDefault();return}if(x==="Backspace"){!a[g]&&g>0&&c(g-1);return}if(!(x==="Delete"||x==="Tab")&&!(m.ctrlKey||m.metaKey)){if(/^\d$/.test(x)){a[g]&&(l(g,x),g<5&&c(g+1),m.preventDefault());return}m.preventDefault()}};function c(m){const g=document.getElementsByClassName("input-validation-code")[m];g&&(g.focus(),g.select())}p.useEffect(()=>{a.filter(m=>m!==void 0).length===6?(n(!0),t(a.join(""))):n(!1)},[a]);const d="flex-1 min-w-0 max-w-[3.5rem] aspect-square bg-white border-2 border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 transition input-validation-code text-center text-lg font-semibold rounded-lg shadow-sm hover:border-gray-400",f=m=>{const x=m.clipboardData.getData("text").replace(/\D/g,"").split(""),v=[...a];for(let h=0;h<6;h++)v[h]=x[h];i(v),m.preventDefault()};return o.jsxs("div",{className:"flex w-full gap-3 mt-4",children:[o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[0]??"",onKeyDown:m=>u(m,0),onChange:m=>{l(0,m.target.value),m.target.value.replace(/\D/g,"")&&c(1)},onPaste:f}),o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[1]??"",onKeyDown:m=>u(m,1),onChange:m=>{l(1,m.target.value),m.target.value.replace(/\D/g,"")&&c(2)},onPaste:f}),o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[2]??"",onKeyDown:m=>u(m,2),onChange:m=>{l(2,m.target.value),m.target.value.replace(/\D/g,"")&&c(3)},onPaste:f}),o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[3]??"",onKeyDown:m=>u(m,3),onChange:m=>{l(3,m.target.value),m.target.value.replace(/\D/g,"")&&c(4)},onPaste:f}),o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[4]??"",onKeyDown:m=>u(m,4),onChange:m=>{l(4,m.target.value),m.target.value.replace(/\D/g,"")&&c(5)},onPaste:f}),o.jsx("input",{type:"text",inputMode:"numeric",maxLength:1,className:d,value:a[5]??"",onKeyDown:m=>u(m,5),onChange:m=>{l(5,m.target.value)},onPaste:f})]})}function z2({isFirstAccess:e,setIsFirstAccess:t}){var ht,yt,wt;const[r,n]=p.useState(""),[s,a]=p.useState(!1),[i,l]=p.useState(!1),u=p.useRef(),[c,d]=p.useState(!1),[f,m]=p.useState(!0),g=((ht=u==null?void 0:u.current)==null?void 0:ht.value.length)>=11&&((yt=u==null?void 0:u.current)==null?void 0:yt.value.length)>0,[x,v]=p.useState(null),[h,y]=p.useState({}),[w,j]=p.useState(1),[S,A]=p.useState(1),[k,N]=p.useState(""),[R,O]=p.useState(""),[I,z]=p.useState(""),T=Re.getInstance(),_=vt(),V=He(),[ee,H]=p.useState(!1),[q,Y]=p.useState(!1),[Z,ie]=p.useState(!1),[se,B]=p.useState(""),[le,ve]=p.useState(!1),[Ee,Ae]=p.useState(""),[Ce,Ne]=p.useState(""),[ge,$]=p.useState(""),[W,fe]=p.useState(""),Q=it(),[U,X]=p.useState(0),ae=p.useRef(!1),J=p.useRef(0),te=1e3,D=45,b=re=>{T.login(re.token,re.refreshToken);const K=new URLSearchParams(window.location.search);K.get("documentId")?_(`/documents/${K.get("documentId")}`):_("/")},C=re=>{A(parseInt(re.target.value))},E=()=>
295{if(ae.current)return;const re=Date.now();re-J.current<te||U>0||(ae.current=!0,J.current=re,d(!0),Od(r,S,se,"").then(()=>{j(5),X(D)}).catch(K=>{var pe,Ge;j(3),v(((Ge=(pe=K==null?void 0:K.response)==null?void 0:pe.data)==null?void 0:Ge.message)??"Erro ao realizar login. Tente novamente.")}).finally(()=>{d(!1),ae.current=!1}))},P=()=>{s&&g&&(d(!0),kd(r).then(re=>{const K=re.data;if(!K.customerFound){m(!0),j(4),d(!1);return}y(K),Ae(K.xsrfToken||""),Ne(K.session||""),$(K.csrfToken||""),fe(K.erpCustomerId||""),j(2),ve(K.isEmailAvailable||K.isSmsAvailable||K.isWhatsAppAvailable),d(!1)}).catch(re=>{var K,pe;j(3),v(((pe=(K=re==null?void 0:re.response)==null?void 0:K.data)==null?void 0:pe.message)??"Erro ao realizar login. Tente novamente."),d(!1)}))},F=()=>{d(!0),Id(r,k).then(re=>{if(re.data.valid){j(6),d(!1);return}j(7),d(!1)}).catch(re=>{var K,pe;j(3),v(((pe=(K=re==null?void 0:re.response)==null?void 0:K.data)==null?void 0:pe.message)??"Erro ao realizar login. Tente novamente."),d(!1)})},L=async()=>{d(!0),Rd(r,k,R,"",Ee,Ce,ge,W).then(re=>{j(8),d(!1),Q(Pt(re.data)),b(re.data)}).catch(re=>{var K,pe;j(3),v(((pe=(K=re==null?void 0:re.response)==null?void 0:K.data)==null?void 0:pe.message)??"Erro ao realizar login. Tente novamente."),d(!1)})},G=p.useMemo(()=>(R==null?void 0:R.length)>=6&&R===I,[I,R]),ne=()=>{t(!1),j(1),v(null),y({}),N(""),O(""),z(""),A(1),H(!1),Y(!1),ie(!1)},me=()=>{var re;l(!0),a(qe.isValidCpfOrCnpj(((re=u==null?void 0:u.current)==null?void 0:re.value)??""))},$e=()=>{l(!1)};function ft(){u.current.value="",a(!1),n("")}function We(){ts(u,a)}const Qe=Me.h1` 296 text-defaultTextDark text-xl lg:text-2xl leading-6 lg:leading-8 w-full font-bold text-left mb-2 297 `,ze=Me.label` 298 ${re=>re.inputvalue!=""?"label-float-active":""} 299 absolute bg-white text-sm leading-[14px] text-gray-600 300 duration-300 transform -translate-y-4 scale-100 top-8 left-3 z-10 origin-[0] 301 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 302 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 303 peer-focus:top-1 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-4 304 ${()=>s&&" !bg-transparent"} 305 `,et=Me.label` 306 ${re=>re.inputvalue!=""?"label-float-passwd-active":""} 307 absolute bg-white text-sm leading-[14px] text-gray-600 308 duration-300 transform -translate-y-0 scale-100 top-10 left-3 z-10 origin-[0] 309 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 310 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 311 peer-focus:top-3 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-0 312 `;return Me.button` 313 btn-base-submit 314 ${re=>!re.activatebutton&&"bg-gray-200 text-neutral-600"} 315 ${re=>re.activatebutton&&" bg-primary text-primaryContrast hover:brightness-95"} 316 `,p.useEffect(()=>{var re;u&&((re=u==null?void 0:u.current)==null||re.focus())},[u]),p.useEffect(()=>{var re;!se&&((re=h==null?void 0:h.mailList)==null?void 0:re.length)>0?B(h==null?void 0:h.mailList[0]):!se&&(h!=null&&h.email)&&B(h.email)},[se,h.email,h==null?void 0:h.mailList]),p.useEffect(()=>{if(U<=0)return;const re=setInterval(()=>{X(K=>K>0?K-1:0)},1e3);return()=>clearInterval(re)},[U]),o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-row items-center justify-center",children:o.jsx(Mf,{action:ne})}),w===1&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Primeiro acesso"})}),o.jsx("label",{htmlFor:"cpfCnpj",className:"text-neutral-600 text-sm lg:text-base block text-left ",children:"Para começar, digite seu CPF ou CNPJ:"}),o.jsxs("div",{className:"relative mt-8 w-full",children:[o.jsx("input",{id:"cpfcnpj",type:"tel",className:"input-txid peer !mt-0"+(i&&!s&&r!=""?" border !border-red-700":s?" !bg-gray-100 !border-gray-100":""),value:r,ref:u,onChange:re=>{We(),n(re.target.value)},onBlur:me,onKeyUp:re=>{Qn(u,re)},onKeyDown:$e}),o.jsx(ze,{htmlFor:"cpfcnpj",inputvalue:r,children:"CNPJ ou CPF"}),r!=""&&!s&&o.jsx(Qr,{className:"absolute right-6 top-3 cursor-pointer fill-defaultTextDark w-6 aspect-auto",onClick:ft}),r!=""&&s&&o.jsx("span",{className:"absolute right-6 top-3 cursor-pointer font-bold text-neutral-900 leading-6 w-auto",onClick:ft,children:"Trocar"})]}),o.jsx(Ie,{action:P,label:"Continuar",loadingLabel:"Carregando",aditionalClasses:"mt-6",loading:c,disabled:!s||!g})]}),w===2&&V.ErpType===2&&o.jsx(o.Fragment,{children:le&&(h!=null&&h.email)?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Primeiro acesso"})}),o.jsxs("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:["Em alguns minutos, você receberá sua senha no e-mail: ",h==null?void 0:h.email]}),o.jsx(Ie,{action:ne,label:"Voltar ao login",loadingLabel:"Carregando"})]}):o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:(h==null?void 0:h.email)==null?"E-mail não cadastrado para receber o código de validação.":"Nenhum serviço disponÃvel para enviar o código de validação."})}),w===2&&V.ErpType===13&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Primeiro acesso"})}),o.jsxs("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:["Digite a nova senha da sua conta.",o.jsx("br",{}),"Código enviado para o e-mail: ",o.jsx("span",{className:"font-bold",children:h==null?void 0:h.email}),"."]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"validationCode",type:"text",className:"input-txid peer",value:k,onChange:re=>{N(re.target.value)},title:"Digite o código de validação enviado para seu E-mail"}),o.jsxs(et,{htmlFor:"validationCode",inputvalue:k,children:["Código enviado para o ",o.jsx("b",{children:"e-mail"})]})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswd",type:q?"text":"password",className:"input-txid peer",value:R,onChange:re=>{O(re.target.value)},title:"Digite sua senha"}),o.jsx(et,{htmlFor:"newPasswd",inputvalue:R,children:"Digite sua senha"}),R!==""&&o.jsx(o.Fragment,{children:q?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)})})]}),R!==""&&!/^(?=(.*[a-z]))(?=(.*[A-Z]))(?=(.*\d))(?=(.*[@$!%*?&]))(?!.*(?:012|123|234|345|456|567|678|789|890|abc|bcd|cde|def|ghi|hij|ijk|jkl|klm|lmn|mno|pqr|rst|stu|uvw|xyz|ABC|BCD|CDE|DEF|GHI|HIJ|IJK|JKL|KLM|LMN|MNO))[A-Za-z\d@$!%*?&]{8,}$/.test(R)&&o.jsxs("ul",{className:"text-red-500 text-xs lg:text-sm mt-3",children:[o.jsx("li",{children:"⢠A senha deve possuir no mÃnimo 8 caracteres."}),o.jsx("li",{children:"⢠A senha deve possuir letras maiúsculas (EX: AJP)."}),o.jsx("li",{children:"⢠A senha deve possuir letras minúsculas (EX: ajp)."}),o.jsx("li",{children:"⢠A senha deve possuir caracteres especiais (EX: !@#$%&)."}),o.jsx("li",{children:"⢠A senha deve possuir números (EX: 0,5,9)."}),o.jsx("li",{children:"⢠A senha não deve conter sequências alfanuméricas (EX: 123, abc, ABC)."})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswdConfirm",type:Z?"text":"password",className:"input-txid peer",value:I,onChange:re=>{z(re.target.value)},title:"Confirme sua senha",onKeyDown:re=>{re.key==="Enter"&&L()}}),o.jsx(et,{htmlFor:"newPasswdConfirm",inputvalue:I,children:"Confirme sua senha"}),I!==""&&o.jsx(o.Fragment,{children:Z?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)})})]}),I!==""&&I!==R&&o.jsx("p",{className:"text-red-500 text-xs mt-2",children:"As senhas não coincidem."}),o.jsx(Ie,{label:"Cadastrar senha",action:L,loading:c,aditionalClasses:"mt-6",disabled:!G||!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,}$/.test(R)||R!==I})]}),w===2&&V.ErpType!==2&&V.ErpType!==13&&o.jsx(o.Fragment,{children:le&&(h!=null&&h.email||h!=null&&h.phone)?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Primeiro acesso"})}),o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Escolha a melhor opção para enviarmos o token de validação:"}),o.jsxs("div",{className:"flex flex-col mt-6",children:[(h==null?void 0:h.isEmailAvailable)&&o.jsxs("div",{className:"flex flex-row item-center",children:[o.jsx("input",{type:"radio",value:1,name:"resetMethod",checked:S===1,onChange:C,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"E-mail:"}),h!=null&&h.mailList&&((wt=h==null?void 0:h.mailList)==null?void 0:wt.length)>1?o.jsx("span",{className:"text-neutral-900 font-bold",children:o.jsx(_f,{title:"Selecione o e-mail",options:(h==null?void 0:h.mailList)&&(h==null?void 0:h.mailList.map(re=>({value:re,key:re}))),value:se,setter:B})}):o.jsx("span",{className:"text-neutral-900 font-bold",children:h==null?void 0:h.email})]})]}),(h==null?void 0:h.isSmsAvailable)&&o.jsxs("div",{className:"flex flex-row mt-3 items-center",children:[o.jsx("input",{type:"radio",value:2,name:"resetMethod",checked:S===2,onChange:C,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"SMS:"}),h==null?void 0:h.phone]})]}),(h==null?void 0:h.isWhatsAppAvailable)&&o.jsxs("div",{className:"flex flex-row mt-3 items-center",children:[o.jsx("input",{type:"radio",value:3,name:"resetMethod",checked:S===3,onChange:C,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"WhatsApp:"}),h==null?void 0:h.phone]})]})]}),o.jsx(Ie,{action:E,label:U>0?`Aguarde ${U}s`:"Receber código",loadingLabel:"Enviando...",loading:c,disabled:c||U>0})]}):o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:(h==null?void 0:h.email)==null&&(h==null?void 0:h.phone)==null?"Telefone e/ou e-mail não cadastrados para receber o código de validação.":"Nenhum serviço disponÃvel para enviar o código de validação."})}),w===3&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Desculpe, tivemos um problema."})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:x}),o.jsx(Ie,{action:()=>{j(1),v(null)},label:"Tentar novamente",aditionalClasses:"!mt-2"})]}),w===4&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:"flex flex-col items-center justify-center",children:[o.jsxs("div",{className:"text-defaultTextDark text-base lg:text-xl leading-[25px] lg:leading-8 text-center mt-[14px] font-medium",children:["Acreditamos que você ainda não seja cliente ",(V==null?void 0:V.Name)||"","."]}),o.jsx(Ie,{action:()=>{window.open(V==null?void 0:V.Url,"_blank")},label:"Quero ser cliente"})]})}),w===5&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Código de validação"})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:"Insira o código recebido para continuar"}),o.jsx(Ta,{validationCode:k,setValidationCode:N,isCodeFilled:ee,setIsCodeFilled:H,onKeyEnterFunc:F}),o.jsx("div",{className:"mt-2 w-full",children:o.jsx(Ie,{action:F,label:"Validar código",aditionalClasses:"mt-6",loading:c,loadingLabel:"Validando token",disabled:!ee})})]}),w===6&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Cadastre sua senha"})}),o.jsxs("p",{className:"text-sm text-defaultText mt-3",children:["Digite a nova senha da sua conta.",o.jsx("br",{}),"A senha deve ter, no mÃnimo, 6 caracteres"]}),o.jsxs("div",{className:"relative w-full mt-2",children:[o.jsx("input",{id:"newPasswd",type:q?"text":"password",className:"input-txid peer",value:R,onChange:re=>{O(re.target.value)},title:"Digite sua senha"}),o.jsx(et,{htmlFor:"newPasswd",inputvalue:R,children:"Digite sua senha"}),R!=""&&o.jsx(o.Fragment,{children:q?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-9 lg:top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-9 lg:top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)})})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswdConfirm",type:Z?"text":"password",className:"input-txid peer",value:I,onChange:re=>{z(re.target.value)},title:"Confirme sua senha",onKeyDown:re=>{re.key==="Enter"&&L()}}),o.jsx(et,{htmlFor:"newPasswdConfirm",inputvalue:I,children:"Confirme sua senha"}),I!=""&&o.jsx(o.Fragment,{children:Z?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)})})]}),o.jsx(Ie,{action:L,label:"Cadastrar senha",disabled:!G,loading:c,loadingLabel:"Carregando"})]}),w===7&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(Qe,{children:"Código inválido"})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:"O código digitado está incorreto"}),o.jsx(Ie,{action:()=>{j(1),v(null)},label:"Tentar novamente"})]}),w===8&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col justify-center items-center w-full",children:[o.jsx(Ii,{className:"fill-success w-12 h-12"}),o.jsx(Qe,{className:"text-center",children:"Primeiro acesso realido com sucesso!"})]}),o.jsx(Ie,{action:ne,label:"Entrar"})]})]})}
316function U2({setIsFirstAccess:e}){return o.jsx("button",{onClick:()=>e(!0),className:"bg-transparent !text-primaryContrast hover:brightness-95",children:o.jsx("span",{className:"text-base max-sm:text-sm text-neutral-600 font-medium cursor-pointer hover:pb-1 hover:border-b hover:border-primary",children:"Primeiro acesso"})})}function Lf(e){return o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M22 12C22 17.52 17.52 22 12 22C6.48 22 3.11 16.44 3.11 16.44M3.11 16.44H7.63M3.11 16.44V21.44M2 12C2 6.48 6.44 2 12 2C18.67 2 22 7.56 22 7.56M22 7.56V2.56M22 7.56H17.56",stroke:"#292D32",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function k9(){const e=document.querySelector('script[src*="recaptcha/enterprise.js"]');if(e)return e;const t=document.createElement("script");return t.src="https://www.google.com/recaptcha/enterprise.js?render=6LdanFkiAAAAANEZsfW411repRxmV0GxtrRjmgDd",t.async=!0,document.body.appendChild(t),t}function Ff(e){return document.querySelector('script[src*="recaptcha/enterprise.js"]')?Promise.resolve():new Promise((r,n)=>{const s=document.createElement("script");s.src=`https://www.google.com/recaptcha/enterprise.js?render=${e}`,s.async=!0,s.onload=()=>r(),s.onerror=a=>n(new Error(a.toString())),document.body.appendChild(s)})}function $f(e){return document.querySelector('script[src*="recaptcha/api.js"]')?Promise.resolve():new Promise((r,n)=>{const s=document.createElement("script");s.src=`https://www.google.com/recaptcha/api.js?render=${e}`,s.async=!0,s.onload=()=>r(),s.onerror=a=>n(new Error(a.toString())),document.body.appendChild(s)})}function B2(e,t){return new Promise((r,n)=>{if(typeof window>"u"||!window.grecaptcha){n(new Error("reCAPTCHA v3 not loaded"));return}window.grecaptcha.ready(()=>{window.grecaptcha.execute(e,{action:t}).then(s=>{r(s)}).catch(s=>{n(s)})})})}function q2(e,t){return new Promise((r,n)=>{var s;if(typeof window>"u"||!((s=window.grecaptcha)!=null&&s.enterprise)){n(new Error("reCAPTCHA Enterprise not loaded"));return}window.grecaptcha.enterprise.ready(()=>{window.grecaptcha.enterprise.execute(e,{action:t}).then(a=>{r(a)}).catch(a=>{n(a)})})})}async function Df(e,t,r="login"){return["localhost","127.0.0.1"].includes(window.location.hostname)?null:t==="ENTERPRISE"?(await Ff(e),q2(e,r)):(await $f(e),B2(e,r))}function H2({setResettingPassword:e,setIsFirstAccess:t,setLoginErrorType:r,setLoginHasErrors:n}){var J,te,D,b,C,E;const s=it(),[a,i]=p.useState(""),[l,u]=p.useState(""),[c,d]=p.useState(!1),[f,m]=p.useState(!1),[g,x]=p.useState(!1),[v,h]=p.useState(!0),y=p.useRef(),w=p.useRef(),[j,S]=p.useState(!1),[A,k]=p.useState(!1),N=Re.getInstance(),R=vt(),{ToastNotificationHandle:O}=Zr(),I=!!(!j&&c&&l.trim()!="");j&&c&&l.trim()!="";const{isLargeScreen:z}=Ft();p.useState(!1);const T=new URLSearchParams(window.location.search)??null,_=(T==null?void 0:T.get("documentId"))??"";p.useState(Ye(P=>P.auth.documentLogin)??!1);const V=localStorage.getItem("7azAppMode")??!1,ee=He(),{setCurrentTxId:H,setShowBrokerValidation:q,setBrokerAuthMethods:Y}=p.useContext(Qt),Z=(te=(J=ee==null?void 0:ee.Extras)==null?void 0:J.Customizations)==null?void 0:te.SimplifiedOnlyWithValidationV3,ie=(b=(D=ee==null?void 0:ee.Extras)==null?void 0:D.Customizations)==null?void 0:b.RecaptchaVersion,se=!!Z&&!!ie,B=(E=(C=ee==null?void 0:ee.Extras)==null?void 0:C.Customizations)==null?void 0:E.CompleteOnlyWithBrokerValidation,le=P=>{N.login(P.token,P.refreshToken),_?(S(!1),s(Pt(P)),localStorage.setItem("7azFrontAccessType","completeAccess"),R(`/documents/${_}`)):window.location.pathname=="/"?window.location.reload():R(`/${window.location.search?window.location.search:""}`)},ve=async()=>{try{if(m(!0),S(!0),y.current.value.length>=11&&y.current.value.length>0&&w.current.value.trim().length>0){s(Oo(qe.normalizeTxId(y.current.value).length===11));let P=null;if(se)try{P=await Df(Z,ie,"login")}catch{S(!1),O("error","Erro ao validar reCAPTCHA. Tente novamente.");return}if(V&&Wr({type:"save_login",data:{txId:y.current.value,passwd:w.current.value}}),B&&$(y.current.value,w.current.value)){Po(y.current.value).then(F=>{var G,ne;H(y.current.value);const L=((G=F.data)==null?void 0:G.brokers)||((ne=F.data)==null?void 0:ne.authMethods);if(L&&Array.isArray(L)&&Y(L),L&&L.length>0){q(!0),S(!1);return}else S(!1),O("error","Nenhum método de verificação disponÃvel."),n&&n(!0)}).catch(F=>{var L,G;S(!1),O("error",((G=(L=F==null?void 0:F.response)==null?void 0:L.data)==null?void 0:G.message)??"Verifique o CPF/CNPJ informado."),n&&n(!0)});return}Tx(y.current.value,w.current.value,P).then(F=>{var L;localStorage.setItem("7azFrontAccessType","completeAccess"),s(Pt(F==null?void 0:F.data)),Oi("portal-complete-login",(L=F==null?void 0:F.data)==null?void 0:L.token),le(F==null?void 0:F.data),S(!1)}).catch(F=>{var ne,me;S(!1);const L=((me=(ne=F==null?void 0:F.response)==null?void 0:ne.data)==null?void 0:me.message)??"Erro ao realizar login. Tente novamente.",G=L.toLowerCase();G.includes("senha vazada")?r&&r("LEAKED_PASSWORD"):G.includes("usuário e senha não podem ser iguais")?r&&r("EQUAL_USER_PASS"):O("error",L)})}else S(!1)}catch{}},Ee=()=>{var P;m(!0),d(qe.isValidCpfOrCnpj(((P=y==null?void 0:y.current)==null?void 0:P.value)??""))},Ae=()=>{x(!0)},Ce=()=>{m(!1)},Ne=P=>{x(!1),P.keyCode===13&&ve()},ge=P=>{var F,L,G;if(!((P.keyCode<48||P.keyCode>57)&&(P.keyCode<96||P.keyCode>105)&&(P.keyCode<65||P.keyCode>90)&&P.keyCode!==17&&P.keyCode!==91)&&qe.isValidCnpj(y.current.value)){let ne=(G=(L=(F=y.current)==null?void 0:F.parentElement)==null?void 0:L.nextElementSibling)==null?void 0:G.firstElementChild;if((ne==null||ne.tagName.toLowerCase()!=="input")&&(ne=ne==null?void 0:ne.firstElementChild,ne==null||ne.tagName.toLowerCase()!=="input"))return}};function $(P,F){var L,G;return((L=$b(P))==null?void 0:L.includes(F))||((G=Fb(P))==null?void 0:G.includes(F))}function W(){y.current.value="",w.current.value="",d(!1),h(!0),i(""),u(""),y.current.focus()}function fe(){ts(y,d)}const Q=P=>{const F=qe.normalizeTxId(y.current.value);P.clipboardData.setData("text/plain",F),P.preventDefault()};p.useEffect(()=>{d(qe.isValidCpfOrCnpj(y.current.value)),x(!0),m(!0)},[]);const U=Me.h1` 317 text-neutral-900 text-xl lg:text-2xl leading-6 lg:leading-8 w-full font-bold text-left 318 `,X=Me.label` 319 ${P=>P.inputvalue!=""?"label-float-active":""} 320 absolute bg-white text-sm leading-[14px] text-gray-600 321 duration-300 transform -translate-y-4 scale-100 top-8 left-3 z-10 origin-[0] 322 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 323 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 324 peer-focus:top-1 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-4 325 ${()=>c&&" !bg-transparent"} 326 `,ae=Me(X)` 327 !bg-white 328 `;return p.useEffect(()=>{_!==""&&(s(Ld(!0)),Td(_).then(P=>{le(P.data)}).catch(()=>{O("error","Erro ao realizar login. Tente novamente.")}))},[_]),o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(U,{children:"Acesse sua conta"})}),o.jsxs("div",{className:"w-full mt-2",children:[o.jsx("label",{htmlFor:"cpfCnpj",className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Digite seu CPF/CNPJ"}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"cpfcnpj",type:"tel",className:"input-txid peer !mt-5"+(f&&!c&&a!=""?" border !border-red-700":c?" !bg-gray-100 !border-gray-100":""),value:a,ref:y,onChange:P=>{fe(),i(P.target.value)},onBlur:Ee,onKeyUp:ge,onKeyDown:Ce,onCopy:Q}),o.jsx(X,{htmlFor:"cpfcnpj",inputvalue:a,children:"CNPJ ou CPF"}),a!=""&&!c&&o.jsx(Qr,{className:"absolute right-6 top-3 cursor-pointer fill-defaultTextDark w-6 aspect-auto",onClick:W}),a!=""&&c&&o.jsxs("span",{className:"absolute right-6 top-3 cursor-pointer font-bold text-neutral-900 leading-6 w-auto",onClick:W,children:[z&&"Trocar",!z&&o.jsx(Lf,{className:"w-5 h-5 stroke-neutral-900 mr-[2px] mt-[2px]"})]})]}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"passwd",type:A?"text":"password",className:"input-txid peer"+(v?"":" border !border-red-700"),value:l,ref:w,onChange:P=>{u(P.target.value)},onBlur:Ae,onKeyDown:Ne}),o.jsx(ae,{htmlFor:"passwd",inputvalue:l,children:"Digite sua senha"}),l!=""&&o.jsx(o.Fragment,{children:A?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-3 fill-gray-600 cursor-pointer",onClick:()=>k(!A)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-3 fill-gray-600 cursor-pointer",onClick:()=>k(!A)})})]}),o.jsx("div",{className:"mt-6",children:o.jsx(Ie,{id:"loginButton",action:ve,label:j?"Carregando":"Fazer login",disabled:!I||!v||!c,loading:j})}),o.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[e!=null&&o.jsx("button",{className:"text-sm text-neutral-600 font-medium cursor-pointer",onClick:()=>e(!0),children:o.jsx("span",{className:"hover:pb-1 hover:border-b hover:border-primary text-base max-sm:text-sm",children:"Esqueci a senha"})}),o.jsx("span",{className:"text-base max-sm:text-sm",children:"|"}),o.jsx(U2,{setIsFirstAccess:t})]}),!!f&&!!g&&!c&&a!=""&&O("error","CPF/CNPJ inválido")]})]})}const Pa=3,$n=60,Pr={whatsapp:{label:"WhatsApp",icon:o.jsx(Ci,{className:"text-green-500"}),contactLabel:"WhatsApp completo",contactPlaceholder:"(00) 00000-0000",inputType:"tel",notificationType:3},email:{label:"E-mail",icon:o.jsx(qy,{className:"text-blue-500"}),contactLabel:"Digite o e-mail completo",contactPlaceholder:"[email protected]",inputType:"email",notificationType:1},sms:{label:"SMS",icon:o.jsx(Wy,{className:"text-orange-500"}),contactLabel:"Celular completo",contactPlaceholder:"(00) 00000-0000",inputType:"tel",notificationType:2}},$c=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dc=tu,W2=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Dc(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=t,i=Object.keys(s).map(c=>{const d=r==null?void 0:r[c],f=a==null?void 0:a[c];if(d===null)return null;const m=$c(d)||$c(f);return s[c][m]}),l=r&&Object.entries(r).reduce((c,d)=>{let[f,m]=d;return m===void 0||(c[f]=m),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:m,...g}=d;return Object.entries(g).every(x=>{let[v,h]=x;return Array.isArray(h)?h.includes({...a,...l}[v]):{...a,...l}[v]===h})?[...c,f,m]:c},[]);return Dc(e,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Q2=ah,Vf=p.forwardRef(({className:e,...t},r)=>o.jsx(Kc,{ref:r,className:Wt("fixed bottom-0 left-1/2 transform -translate-x-1/2 z-[100] flex max-h-screen w-full flex-col-reverse p-2 sm:flex-col lg:max-w-[700px] md:max-w-[500px]",e),...t}));Vf.displayName=Kc.displayName;const K2=W2("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"default border-transparent bg-primary text-foreground shadow",success:"success border-transparent bg-supportSuccess text-foreground fonte-medium shadow",problem:"error border-transparent bg-supportError text-foreground fonte-medium shadow",attention:"attention border-transparent bg-supportWarning text-foreground fonte-medium shadow",info:"info border-transparent bg-supportInfo text-foreground fonte-medium shadow"}},defaultVariants:{variant:"default"}}),zf=p.forwardRef(({className:e,variant:t,...r},n)=>o.jsx(Gc,{ref:n,className:Wt(K2({variant:t}),e),...r}));zf.displayName=Gc.displayName;const Uf=p.forwardRef(({className:e,...t},r)=>o.jsx(Jc,{ref:r,className:Wt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-xs font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Uf.displayName=Jc.displayName;const Bf=p.forwardRef(({className:e,...t},r)=>o.jsx(Zc,{ref:r,className:Wt("absolute right-1 top-1 rounded-lg p-1 text-foreground
328/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:o.jsx(sh,{className:"h-4 w-4"})}));Bf.displayName=Zc.displayName;const qf=p.forwardRef(({className:e,...t},r)=>o.jsx(Yc,{ref:r,className:Wt("text-sm font-semibold [&+div]:text-xs",e),...t}));qf.displayName=Yc.displayName;const Hf=p.forwardRef(({className:e,...t},r)=>o.jsx(Xc,{ref:r,className:Wt("text-sm opacity-90",e),...t}));Hf.displayName=Xc.displayName;const G2=1,J2=1e6;let Xa=0;function Z2(){return Xa=(Xa+1)%Number.MAX_SAFE_INTEGER,Xa.toString()}const eo=new Map,Vc=e=>{if(eo.has(e))return;const t=setTimeout(()=>{eo.delete(e),Dn({type:"REMOVE_TOAST",toastId:e})},J2);eo.set(e,t)},Y2=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,G2)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Vc(r):e.toasts.forEach(n=>{Vc(n.id)}),{...e,toasts:e.toasts.map(n=>
328n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},ys=[];let bs={toasts:[]};function Dn(e){bs=Y2(bs,e),ys.forEach(t=>{t(bs)})}function X2({...e}){const t=Z2(),r=s=>Dn({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Dn({type:"DISMISS_TOAST",toastId:t});return Dn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function Wf(){const[e,t]=p.useState(bs);return p.useEffect(()=>(ys.push(t),()=>{const r=ys.indexOf(t);r>-1&&ys.splice(r,1)}),[e]),{...e,toast:X2,dismiss:r=>Dn({type:"DISMISS_TOAST",toastId:r})}}function ew(){const{toast:e}=Wf();return{toastWithButton:p.useCallback(({variant:r,title:n,actionText:s,action:a,description:i})=>{e({variant:r,title:n,description:i,action:o.jsx(Uf,{className:"border border-transparent rounded-md text-sm p-2 bg-warning text-gray-900 font-medium",altText:"Upgrade de plano",onClick:a,children:s})})},[e])}}function tw(e){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",...e,children:[o.jsx("path",{d:"M14.6832 8.95999C14.513 8.95999 14.3498 8.89239 14.2294 8.77205C14.1091 8.65171 14.0415 8.4885 14.0415 8.31832C14.0415 8.00999 13.7332 7.36832 13.2165 6.80999C12.7082 6.26832 12.1498 5.95166 11.6832 5.95166C11.513 5.95166 11.3498 5.88405 11.2294 5.76372C11.1091 5.64338 11.0415 5.48017 11.0415 5.30999C11.0415 4.95999 11.3332 4.66832 11.6832 4.66832C12.5165 4.66832 13.3915 5.11832 14.1582 5.92666C14.8748 6.68499 15.3332 7.62666 15.3332 8.30999C15.3332 8.66832 15.0415 8.95999 14.6832 8.95999ZM17.6915 8.95832C17.5213 8.95832 17.3581 8.89072 17.2378 8.77038C17.1174 8.65005 17.0498 8.48684 17.0498 8.31666C17.0498 5.35832 14.6415 2.95832 11.6915 2.95832C11.5213 2.95832 11.3581 2.89072 11.2378 2.77038C11.1174 2.65005 11.0498 2.48684 11.0498 2.31666C11.0498 1.96666 11.3332 1.66666 11.6832 1.66666C15.3498 1.66666 18.3332 4.64999 18.3332 8.31666C18.3332 8.66666 18.0415 8.95832 17.6915 8.95832Z"}),o.jsx("path",{d:"M9.82484 11.8417L7.09984 14.5667C6.79984 14.3 6.50817 14.025 6.22484 13.7417C5.38214 12.8933 4.60492 11.9824 3.89984 11.0167C3.2165 10.0667 2.6665 9.11666 2.2665 8.17499C1.8665 7.22499 1.6665 6.31666 1.6665 5.44999C1.6665 4.88332 1.7665 4.34166 1.9665 3.84166C2.1665 3.33332 2.48317 2.86666 2.92484 2.44999C3.45817 1.92499 4.0415 1.66666 4.65817 1.66666C4.8915 1.66666 5.12484 1.71666 5.33317 1.81666C5.54984 1.91666 5.7415 2.06666 5.8915 2.28332L7.82484 5.00832C7.97484 5.21666 8.08317 5.40832 8.15817 5.59166C8.23317 5.76666 8.27484 5.94166 8.27484 6.09999C8.27484 6.29999 8.2165 6.49999 8.09984 6.69166C7.9915 6.88332 7.83317 7.08332 7.63317 7.28332L6.99984 7.94166C6.90817 8.03332 6.8665 8.14166 6.8665 8.27499C6.8665 8.34166 6.87484 8.39999 6.8915 8.46666C6.9165 8.53332 6.9415 8.58332 6.95817 8.63332C7.10817 8.90832 7.3665 9.26666 7.73317 9.69999C8.10817 10.1333 8.50817 10.575 8.9415 11.0167C9.2415 11.3083 9.53317 11.5917 9.82484 11.8417Z"}),o.jsx("path",{d:"M18.3083 15.275C18.3072 15.5895 18.2361 15.8998 18.1 16.1833C17.9583 16.4833 17.775 16.7667 17.5333 17.0333C17.125 17.4833 16.675 17.8083 16.1667 18.0167C16.1583 18.0167 16.15 18.025 16.1417 18.025C15.65 18.225 15.1167 18.3333 14.5417 18.3333C13.6917 18.3333 12.7833 18.1333 11.825 17.725C10.8667 17.3167 9.90833 16.7667 8.95833 16.075C8.63333 15.8333 8.30833 15.5917 8 15.3333L10.725 12.6083C10.9583 12.7833 11.1667 12.9167 11.3417 13.0083C11.3833 13.025 11.4333 13.05 11.4917 13.075C11.5583 13.1 11.625 13.1083 11.7 13.1083C11.8417 13.1083 11.95 13.0583 12.0417 12.9667L12.675 12.3417C12.8833 12.1333 13.0833 11.975 13.275 11.875C13.4667 11.7583 13.6583 11.7 13.8667 11.7C14.025 11.7 14.1917 11.7333 14.375 11.8083C14.5583 11.8833 14.75 11.9917 14.9583 12.1333L17.7167 14.0917C17.9333 14.2417 18.0833 14.4167 18.175 14.625C18.2583 14.8333 18.3083 15.0417 18.3083 15.275Z"})]})}function rw(e){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{opacity:"0.4",d:"M21.0802 8.58003V15.42C21.0802 16.54 20.4802 17.58 19.5102 18.15L13.5702 21.58C12.6002 22.14 11.4002 22.14 10.4202 21.58L4.48016 18.15C3.51016 17.59 2.91016 16.55 2.91016 15.42V8.58003C2.91016 7.46003 3.51016 6.41999 4.48016 5.84999L10.4202 2.42C11.3902 1.86 12.5902 1.86 13.5702 2.42L19.5102 5.84999C20.4802 6.41999 21.0802 7.45003 21.0802 8.58003Z"}),o.jsx("path",{d:"M12 13.75C11.59 13.75 11.25 13.41 11.25 13V7.75C11.25 7.34 11.59 7 12 7C12.41 7 12.75 7.34 12.75 7.75V13C12.75 13.41 12.41 13.75 12 13.75Z"}),o.jsx("path",{d:"M12 17.2499C11.87 17.2499 11.74 17.2198 11.62 17.1698C11.49 17.1198 11.39 17.0499 11.29 16.9599C11.2 16.8599 11.13 16.7499 11.
32807 16.6299C11.02 16.5099 11 16.3799 11 16.2499C11 15.9899 11.1 15.7298 11.29 15.5398C11.39 15.4498 11.49 15.3799 11.62 15.3299C11.99 15.1699 12.43 15.2598 12.71 15.5398C12.8 15.6398 12.87 15.7399 12.92 15.8699C12.97 15.9899 13 16.1199 13 16.2499C13 16.3799 12.97 16.5099 12.92 16.6299C12.87 16.7499 12.8 16.8599 12.71 16.9599C12.52 17.1499 12.27 17.2499 12 17.2499Z"})]})}function nw({...e}){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[o.jsx("path",{d:"M2.00014 22.7502C1.80014 22.7502 1.61011 22.6702 1.47011 22.5302C1.28011 22.3402 1.20016 22.0602 1.27016 21.8002L2.53017 17.0902C1.69017 15.5302 1.25014 13.7702 1.25014 11.9902C1.25014 6.06023 6.07014 1.24023 12.0001 1.24023C17.9301 1.24023 22.7501 6.06023 22.7501 11.9902C22.7501 17.9202 17.9301 22.7402 12.0001 22.7402C10.1901 22.7402 8.42017 22.2902 6.84017 21.4302L2.20015 22.7202C2.13015 22.7402 2.07014 22.7502 2.00014 22.7502ZM6.94014 19.8802C7.07014 19.8802 7.20015 19.9203 7.32015 19.9803C8.73015 20.8103 10.3501 21.2502 12.0001 21.2502C17.1001 21.2502 21.2501 17.1002 21.2501 12.0002C21.2501 6.90024 17.1001 2.75024 12.0001 2.75024C6.90014 2.75024 2.75014 6.90024 2.75014 12.0002C2.75014 13.6302 3.18013 15.2202 3.99013 16.6202C4.09013 16.7902 4.12015 17.0002 4.07015 17.1902L3.07015 20.9302L6.75014 19.9102C6.81014 19.8902 6.88014 19.8802 6.94014 19.8802Z"}),o.jsx("path",{d:"M14.7402 17.7598C14.1202 17.7598 13.4802 17.6198 12.8102 17.3298C12.1802 17.0598 11.5502 16.6998 10.9402 16.2498C10.3402 15.8098 9.75027 15.3098 9.21027 14.7698C8.67027 14.2198 8.17022 13.6398 7.73022 13.0398C7.28022 12.4098 6.92022 11.7898 6.66022 11.1798C6.38022 10.5198 6.24023 9.8698 6.24023 9.2498C6.24023 8.8098 6.32021 8.3898 6.47021 7.9998C6.63021 7.5898 6.89022 7.21979 7.23022 6.89979C7.87022 6.26979 8.79026 6.03981 9.52026 6.38981C9.77026 6.49981 9.98026 6.67981 10.1403 6.91981L11.3002 8.54979C11.4202 8.70979 11.5103 8.87979 11.5803 9.04979C11.6603 9.24979 11.7103 9.44981 11.7103 9.63981C11.7103 9.89981 11.6402 10.1598 11.5002 10.3898C11.4102 10.5398 11.2802 10.7198 11.1102 10.8898L10.9802 11.0298C11.0402 11.1098 11.1102 11.2098 11.2202 11.3298C11.4302 11.5698 11.6602 11.8298 11.9102 12.0798C12.1602 12.3198 12.4102 12.5598 12.6602 12.7698C12.7802 12.8698 12.8803 12.9498 12.9603 12.9998L13.1002 12.8598C13.2802 12.6798 13.4603 12.5398 13.6403 12.4498C13.9703 12.2398 14.4802 12.1898 14.9302 12.3798C15.0902 12.4398 15.2502 12.5298 15.4202 12.6498L17.0903 13.8298C17.3203 13.9898 17.5002 14.2098 17.6202 14.4598C17.7202 14.7098 17.7603 14.9298 17.7603 15.1598C17.7603 15.4598 17.6902 15.7498 17.5602 16.0298C17.4302 16.2898 17.2802 16.5198 17.1002 16.7298C16.7802 17.0798 16.4103 17.3398 16.0103 17.5098C15.6103 17.6798 15.1802 17.7598 14.7402 17.7598ZM8.79022 7.73979C8.73022 7.73979 8.53027 7.73979 8.28027 7.98979C8.09027 8.16979 7.96024 8.35981 7.87024 8.56981C7.78024 8.77981 7.74023 9.01981 7.74023 9.25981C7.74023 9.67981 7.84022 10.1298 8.04022 10.6098C8.25022 11.1098 8.56025 11.6398 8.94025 12.1698C9.33025 12.6998 9.77025 13.2298 10.2603 13.7198C10.7503 14.1998 11.2702 14.6498 11.8102 15.0498C12.3302 15.4298 12.8603 15.7298 13.3903 15.9598C14.1503 16.2898 14.8502 16.3698 15.4202 16.1298C15.6202 16.0498 15.8002 15.9098 15.9802 15.7298C16.0702 15.6298 16.1403 15.5298 16.2003 15.3998C16.2303 15.3298 16.2502 15.2498 16.2502 15.1798C16.2502 15.1598 16.2502 15.1298 16.2202 15.0698L14.5502 13.9098C14.4802 13.8598 14.4102 13.8198 14.3502 13.7998C14.3102 13.8198 14.2503 13.8498 14.1403 13.9598L13.7603 14.3398C13.4703 14.6298 13.0103 14.7098 12.6403 14.5798L12.4603 14.4998C12.2303 14.3798 11.9702 14.1998 11.6802 13.9498C11.4002 13.7098 11.1303 13.4598 10.8403 13.1798C10.5603 12.8898 10.3103 12.6198 10.0703 12.3398C9.81025 12.0298 9.63025 11.7798 9.51025 11.5698L9.40027 11.3098C9.37027 11.2098 9.36023 11.0998 9.36023 10.9998C9.36023 10.7198 9.46027 10.4698 9.65027 10.2698L10.0303 9.8798C10.1403 9.7698 10.1803 9.70981 10.2003 9.66981C10.1703 9.59981 10.1303 9.5398 10.0803 9.4698L8.91022 7.81981L8.79022 7.73979Z"})]})}const cs={whatsCountry:"55",whatsNumber:"31993742000",whatsMessage:"NEGOCIARSMS",phone:"10385"};function sw(){var u;const e=He(),t=localStorage.getItem("7azAppMode")??!1,r=((u=e==null?void 0:e.Extras)==null?void 0:u.Services)??{},n=r.QuickAccessCountryWhats||cs.whatsCountry,s=r.QuickAccessWhats||cs.whatsNumber,a=r.QuickAccessWhatsMessage||cs.whatsMessage,i=r.QuickAccessPhone||cs.phone,l=()=>{if(t){Wr({type:"link_whatsapp",data:{country:n,number:s,message:a}});return}
328window.open(`https://api.whatsapp.com/send?phone=${n}${s}&text=${a}`,"_blank")};return o.jsxs("div",{className:"mt-3 flex w-full flex-col gap-3",children:[o.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-supportError px-3 py-2.5",children:[o.jsx(rw,{className:"mt-[1px] h-4 w-4 shrink-0 fill-errordefault"}),o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"text-xs font-bold leading-4 text-errordefault",children:"Sua negociação não está disponÃvel neste portal."}),o.jsx("p",{className:"mt-0.5 text-xs leading-4 text-errordefault/80",children:"Procure nossos canais de atendimento para continuar."})]})]}),o.jsxs("div",{className:"flex flex-col divide-y divide-gray-200 rounded-lg bg-gray-100",children:[o.jsxs("button",{type:"button",onClick:l,className:"flex items-center justify-center gap-2 px-4 py-3 transition-colors hover:bg-gray-200",children:[o.jsx(nw,{className:"h-5 w-5 fill-secondary"}),o.jsxs("span",{className:"text-sm text-neutral-700",children:["WhatsApp: ",o.jsx("span",{className:"font-semibold text-secondary",children:"Clique aqui"})]})]}),o.jsxs("a",{href:`tel:${i}`,className:"flex items-center justify-center gap-2 px-4 py-3 transition-colors hover:bg-gray-200",children:[o.jsx(tw,{className:"h-5 w-5 fill-secondary"}),o.jsxs("span",{className:"text-sm text-neutral-700",children:["Telefone: ",o.jsx("span",{className:"font-semibold text-secondary",children:i})]})]})]})]})}function aw({setLoginHasErrors:e,brokerValidation:t=!1,simplifiedWithBrokerValidation:r=!1}){var pt,Fr,Ri,_i;const n=it(),[s,a]=p.useState(""),[i,l]=p.useState(!1),[u,c]=p.useState(!1),d=p.useRef(),f=p.useRef(),[m,g]=p.useState(!1),x=Re.getInstance(),v=vt(),{ToastNotificationHandle:h}=Zr(),{toastWithButton:y}=ew(),{isLargeScreen:w}=Ft(),[j,S]=p.useState(),A=new URLSearchParams(window.location.search)??null,k=(A==null?void 0:A.get("documentId"))??"",N=(A==null?void 0:A.get("txId"))??"",[R,O]=p.useState(Ye(je=>je.auth.documentLogin)??!1),[I,z]=p.useState(!1),T=localStorage.getItem("7azAppMode")??!1,_=He(),[V,ee]=p.useState(!1),[H,q]=p.useState(!1),[Y,Z]=p.useState(""),[ie,se]=p.useState(!1),[B,le]=p.useState(null),[ve,Ee]=p.useState(["Email"]),[Ae,Ce]=p.useState([1,2]),[Ne,ge]=p.useState(!1),[$,W]=p.useState(!1),[fe,Q]=p.useState(!1),U=He(),X=(_==null?void 0:_.Name)==="VERO",ae=(Fr=(pt=U==null?void 0:U.Extras)==null?void 0:pt.Customizations)==null?void 0:Fr.SimplifiedOnlyWithValidationV3,J=(_i=(Ri=U==null?void 0:U.Extras)==null?void 0:Ri.Customizations)==null?void 0:_i.RecaptchaVersion,te=!!ae&&!!J,{authValidated:D,setShowAuthValidation:b,simplifiedAuthByContact:C,setSimplifiedAuthByContact:E,setValidationCode:P,currentTxId:F,setCurrentTxId:L,setAuthValidated:G,setAuthValidationType:ne,setShowBrokerValidation:me,setBrokerAuthMethods:$e,setShowSimplifiedBrokerValidation:ft}=p.useContext(Qt),We=je=>{window.location.href=je},Qe=je=>{x.login(je.token,je.refreshToken),k?(g(!1),n(Pt(je)),localStorage.setItem("7azFrontAccessType","documentAccess"),setTimeout(()=>{v(`/documents/${k}`)},1e3)):v("/")},ze=je=>Ne?qe.isValidCpf(je):$?qe.isValidCnpj(je):qe.isValidCpfOrCnpj(je),et=()=>Ne?"CPF":$?"CNPJ":(_==null?void 0:_.Name)==="Mhnet"||(_==null?void 0:_.Name)==="ALT Telecom"?"CPF":"CPF ou CNPJ",ht=()=>t?"Acesse sua conta":"Fatura fácil",yt=()=>m||B?"Carregando":t?"Acessar Portal":V?"Receber link de acesso":"Fazer login",wt=()=>`Para começar, digite seu ${et()}:`,{handleSubmit:re,formState:{errors:K}}=Pf(),pe=async()=>{if(i)if(g(!0),d.current.value.length>=11&&d.current.value.length>0){if(r){Po(d.current.value).then(ue=>{var Pe,tt,$t;if(((Pe=ue.data)==null?void 0:Pe.available)===!1){g(!1),X?Q(!0):h("error",ue.data.message??"Verifique o CPF/CNPJ informado."),e(!0);return}L(d.current.value);const ye=((tt=ue.data)==null?void 0:tt.brokers)||(($t=ue.data)==null?void 0:$t.authMethods);ye&&Array.isArray(ye)&&$e(ye),ye&&ye.length>0?(ft(!0),g(!1)):(g(!1),X?Q(!0):h("error","Nenhum método de verificação disponÃvel."),e(!0))}).catch(ue=>{var ye,Pe;g(!1),h("error",((Pe=(ye=ue==null?void 0:ue.response)==null?void 0:ye.data)==null?void 0:Pe.message)??"Verifique o CPF/CNPJ informado."),e(!0)});return}if(t){Po(d.current.value).then(ue=>{var Pe,tt;L(d.current.value);const ye=((Pe=ue.data)==null?void 0:Pe.brokers)||((tt=ue.data)==null?void 0:tt.authMethods);if(ye&&Array.isArray(ye)&&$e(ye),ye&&ye.length>0){me(!0),g(!1);return}else g(!1),X?Q(!0):h("error","Nenhum método de verificação disponÃvel."),e(!0)}).catch(ue=>{var ye,Pe;g(!1),h("error",((Pe=(ye=ue==null?void 0:ue.response)==null?void 0:ye.data)==null?void 0:Pe.message)??"Verifique o CPF/CNPJ informado."),e(!0)});return}if(C){kx(d.current.value).then(ue=>{var ye,Pe,tt,$t,sr,Mi,Li,Fi,$i;if(L(d.current.value),typeof((ye=ue.data)==null?void 0:ye.type)=="number"&&ne((Pe=ue.data)==null?void 0:Pe.type),((tt=ue.data)==null?void 0:tt.type)===0&&(!(($t=ue.data)!=null&&$t.verificationToken)||((sr=ue.data)==null?void 0:sr.verificationToken)==="")){g(!1),h("error","Não foi possÃvel validar seus dados. Entre em contato com o suporte."),e(!0);return}if((((Mi=ue.data)==null?void 0:Mi.type)===1||((Li=ue.data)==null?void 0:Li.type)===2||((Fi=ue.data)==null?void 0:Fi.type)===4)&&!D){P(($i=ue.data)==null?void 0:$i.val
328idationCode),b(!0);return}else P(""),b(!1),G(!0),E(!1)}).catch(ue=>{var ye,Pe;g(!1),h("error",((Pe=(ye=ue==null?void 0:ue.response)==null?void 0:ye.data)==null?void 0:Pe.message)??"Erro ao validar dados. Tente novamente."),e(!0)});return}if(V){if(ve.length===1){Jt(ve[0]);return}g(!1),se(!0);return}T&&Wr({type:"save_login",data:{txId:d.current.value}});let je=null;if(te)try{je=await Df(ae,J,"login")}catch(ue){console.error("[reCAPTCHA] erro ao executar:",(ue==null?void 0:ue.message)??ue),g(!1),h("error","Erro ao validar reCAPTCHA. Tente novamente.");return}Px(d.current.value,je).then(ue=>{var Pe;if(qe.normalizeTxId(d.current.value).length===14&&Ne){g(!1),(_==null?void 0:_.Name)==="ALT Telecom"?y({variant:"problem",title:"Acesso exclusivo para Pessoa FÃsica, clique na aba 'Portal do Assinante' e informe os dados de acesso.",actionText:"Portal do Assinante",action:()=>We("https://app.alt.com.br/")}):h("error","Acesso exclusivo para Pessoa FÃsica, clique na aba 'Portal do Assinante' e informe os dados de acesso."),e(!0);return}localStorage.setItem("7azFrontAccessType","simplifiedAccess"),n(Pt(ue==null?void 0:ue.data)),Oi("portal-simplified-login",(Pe=ue==null?void 0:ue.data)==null?void 0:Pe.token),Qe(ue==null?void 0:ue.data),g(!1)}).catch(ue=>{var ye,Pe,tt;g(!1),S((ye=ue==null?void 0:ue.response)==null?void 0:ye.status),h("error",((tt=(Pe=ue==null?void 0:ue.response)==null?void 0:Pe.data)==null?void 0:tt.message)??"Erro ao realizar login. Tente novamente."),e(!0)})}else g(!1)},It=[{key:"email",channel:"Email"},{key:"sms",channel:"Sms"},{key:"whatsapp",channel:"WhatsApp"}].filter(({channel:je})=>ve.includes(je)),Jt=je=>{le(je);const ue=je==="Email"?"e-mail":je;Qx(s,je).then(ye=>{var Pe,tt,$t;if(((Pe=ye==null?void 0:ye.data)==null?void 0:Pe.success)===!0){const sr=((tt=ye==null?void 0:ye.data)==null?void 0:tt.message)||`Link de acesso único enviado para o ${ue} cadastrado.`;Z(sr),q(!0)}else{const sr=(($t=ye==null?void 0:ye.data)==null?void 0:$t.message)||"Erro ao enviar link. Tente novamente.";h("error",sr),e(!0)}}).catch(ye=>{var tt;const Pe=((tt=ye==null?void 0:ye.response)==null?void 0:tt.data)||"Erro ao enviar link. Tente novamente.";Z(Pe),e(!0)}).finally(()=>{le(null)})},_r=()=>{var je;c(!0),l(ze(((je=d==null?void 0:d.current)==null?void 0:je.value)||""))},Mr=()=>{c(!1)};function Lr(){d.current.value="",f.current.value="",l(!1),a(""),Q(!1)}function Yr(){var je;ts(d,l),l(ze(((je=d==null?void 0:d.current)==null?void 0:je.value)||""))}const ct=Me.h1` 329 text-defaultTextDark text-xl lg:text-2xl leading-6 lg:leading-8 w-full font-bold text-left 330 `,oe=Me.label` 331 ${je=>je.inputvalue!=""?"label-float-active":""} 332 absolute bg-white text-sm leading-[14px] text-gray-600 333 duration-300 transform -translate-y-4 scale-100 top-8 left-3 z-10 origin-[0] 334 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 335 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 336 peer-focus:top-1 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-4 337 ${()=>i&&" !bg-transparent"} 338 `;return Me.button` 339 btn-base-submit 340 ${()=>!i&&"bg-neutral-200 text-neutral-600 cursor-not-allowed"} 341 ${()=>i&&" bg-primary text-primaryContrast"} 342 `,p.useEffect(()=>{d.current.focus()},[d]),p.useEffect(()=>{k!==""&&!R&&(n(Ld(!0)),Td(k).then(je=>{Qe(je.data)}).catch(()=>{h("error","Erro ao realizar login. Tente novamente.")}))},[k,R]),p.useEffect(()=>{N!==""&&!R&&(d.current.value=N,a(N),l(ze(N)),ze(N)&&z(!0))},[N,R,Ne,$]),p.useEffect(()=>{var ye,Pe,tt,$t,sr;ee(((Pe=(ye=_==null?void 0:_.Extras)==null?void 0:ye.Customizations)==null?void 0:Pe.SimplifiedOnlyByEmail)??!1);const je=($t=(tt=_==null?void 0:_.Extras)==null?void 0:tt.Customizations)==null?void 0:$t.SimplifiedChannels;Ee(je&&je.length>0?je:["Email"]);const ue=((sr=_==null?void 0:_.Extras)==null?void 0:sr.TxidTypes)||[1,2];Ce(ue),ge(ue.length===1&&ue.includes(1)),W(ue.length===1&&ue.includes(2))},[_]),p.useEffect(()=>{(I||D)&&(d.current.value===""&&F&&(a(F),l(!0),d.current.value=F,re(pe)()),re(pe)())},[I,D]),o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ct,{children:ht()})}),o.jsxs("div",{className:"w-full mt-2",children:[H&&o.jsxs("div",{className:"flex h-full flex-col items-center justify-center my-6",children:[o.jsx(Ii,{className:"fill-sucesso700 mb-3 h-6 w-6 lg:h-12 lg:w-12"}),o.jsx("div",{className:"mb-0 text-center text-[14px] font-medium leading-[120%] text-neutral-900 lg:mb-2 lg:text-[18px] px-3 pt-3",children:Y})]}),!H&&ie&&o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-gray-700 p-2",children:"Escolha como deseja receber o link de acesso:"}),It.map(({key:je,channel:ue})=>{const ye=Pr[je],Pe=B===ue;return o.jsxs("button",{onClick:()=>Jt(ue),className:"w-full flex items-center p-4 border rounded-lg hover:bg-gray-100 transition-colors disabled:opacity-50 cursor-pointer text-lg relative",disabled:B!==null,children:[Pe&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white bg-opacity-80 rounded-lg",children:o.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-600"})}),o.jsx("span",{className:`mr-3 text-lg ${Pe?"opacity-50":""}`,children:ye.icon}),o.jsx("span",{className:`text-left font-medium text-sm ${Pe?"opacity-50":""}`,children:ye.label})]},ue)})]}),!H&&!ie&&o.jsxs("form",{onSubmit:re(pe),children:[o.jsx("label",{htmlFor:"cpfCnpj",className:"text-neutral-600 text-sm lg:text-base block",children:wt()}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"cpfcnpj",type:"tel",className:"input-txid peer !mt-8"+(u&&!i&&s!=""?" border !border-red-700":i?" !bg-gray-100 !border-gray-100":""),value:s,ref:d,onChange:je=>{Yr(),a(je.target.value),fe&&Q(!1)},onBlur:_r,onKeyUp:je=>{Qn(d,je,re,pe)},onKeyDown:Mr}),o.jsx(oe,{htmlFor:"cpfcnpj",inputvalue:s,children:et()}),s!=""&&!i&&o.jsx(Qr,{className:"absolute right-6 top-3 cursor-pointer fill-defaultTextDark w-6 aspect-auto",onClick:Lr}),s!=""&&i&&o.jsxs("span",{className:"absolute right-6 top-3 cursor-pointer font-bold text-neutral-900 leading-6 w-auto",onClick:Lr,children:[w&&"Trocar",!w&&o.jsx(Lf,{className:"w-5 h-5 stroke-neutral-900 mr-[2px] mt-[2px]"})]})]}),fe&&o.jsx(sw,{}),o.jsx("div",{className:"mt-6",children:o.jsx(Ie,{id:"loginButton",action:!B&&!m&&i&&s!=""&&!K.cpfcnpj&&re(pe),label:yt(),disabled:!i||!!B,loading:m||!!B})}),!!u&&!!K.cpfcnpj&&!i&&s!=""&&j===500&&h("error",`${et()} inválido`)]})]})]})}function ow({currentTab:e,setCurrentTab:t}){var g,x;const{isLargeScreen:r}=Ft(),n=He(),s=((x=(g=n==null?void 0:n.Extras)==null?void 0:g.Customizations)==null?void 0:x.PreferenceLoginSimplifiedTab)??!1,a=s?"Fatura Fácil":"Portal do Assinante",i=s?"Fatura":"Portal",l=s?"Portal":"Fatura",u=s?"Portal do Assinante":"Fatura Fácil",c="bg-white border-primary border-t-[4px] leading-6 !rounded-tl !rou
342nded-tr font-bold",d="bg-gray-200 leading-[19px] lg:leading-[15px]",f=Me(tr.div)` 343 flex flex-row items-center justify-center w-full h-auto rounded-tl rounded-tr px-3 lg:px-4 py-3 lg:py-4 text-neutral-900 cursor-pointer hover:bg-gray-50 344 ${v=>e===v.tabNumber?c:d} 345 ${v=>e===0&&v.tabNumber===1?"rounded-tl-none":"rounded-tr-none"} 346 `,m=v=>{v===a?(window.history.replaceState({},document.title,window.location.pathname),t(0)):t(1)};return o.jsx("div",{className:"flex flex-col items-center justify-center w-full max-w-[380px] lg:max-w-[380px] h-full mt-8 z-10",children:o.jsxs("div",{className:"flex flex-row items-end justify-center w-full",children:[o.jsxs(f,{onClick:()=>m(a),tabNumber:0,tabIndex:1,id:"loginTab1",children:[r&&a,!r&&i]}),o.jsxs(f,{onClick:()=>m(u),tabNumber:1,tabIndex:2,id:"loginTab2",children:[r&&u,!r&&l]})]})})}function iw({isResettingPassword:e,setResettingPassword:t}){var yt,wt,re;const[r,n]=p.useState(""),[s,a]=p.useState(!1),[i,l]=p.useState(!1),u=p.useRef(),[c,d]=p.useState(!1),[f,m]=p.useState(!0),g=((yt=u==null?void 0:u.current)==null?void 0:yt.value.length)>=11&&((wt=u==null?void 0:u.current)==null?void 0:wt.value.length)>0,[x,v]=p.useState(null),[h,y]=p.useState({}),[w,j]=p.useState(1),[S,A]=p.useState(1),[k,N]=p.useState(""),[R,O]=p.useState(""),[I,z]=p.useState(""),T=Re.getInstance(),_=vt(),V=He(),[ee,H]=p.useState(!1),[q,Y]=p.useState(!1),[Z,ie]=p.useState(!1),[se,B]=p.useState(""),[le,ve]=p.useState(!1),[Ee,Ae]=p.useState(""),[Ce,Ne]=p.useState(""),[ge,$]=p.useState(""),[W,fe]=p.useState(""),Q=it(),[U,X]=p.useState(0),ae=p.useRef(!1),J=p.useRef(0),te=1e3,D=45,b=async()=>{try{return(await(await fetch("https://api.ipify.org?format=json")).json()).ip}catch{return"invalid ip"}},C=K=>{T.login(K.token,K.refreshToken);const pe=new URLSearchParams(window.location.search);pe.get("documentId")?_(`/documents/${pe.get("documentId")}`):_("/")},E=K=>{A(parseInt(K.target.value))}
346,P=async()=>{if(ae.current)return;const K=Date.now();if(K-J.current<te||U>0)return;ae.current=!0,J.current=K,d(!0);const pe=await b();Od(r,S,se,pe).then(()=>{j(5),X(D)}).catch(Ge=>{var It,Jt;j(3),v(((Jt=(It=Ge==null?void 0:Ge.response)==null?void 0:It.data)==null?void 0:Jt.message)??"Erro ao realizar login. Tente novamente.")}).finally(()=>{d(!1),ae.current=!1})},F=()=>{s&&g&&(d(!0),kd(r).then(K=>{const pe=K.data;if(!pe.customerFound){m(!0),j(4),d(!1);return}y(pe),Ae(pe.xsrfToken||""),Ne(pe.session||""),$(pe.csrfToken||""),fe(pe.erpCustomerId||""),j(2),ve(pe.isEmailAvailable||pe.isSmsAvailable||pe.isWhatsAppAvailable),d(!1)}).catch(K=>{var pe,Ge;j(3),v(((Ge=(pe=K==null?void 0:K.response)==null?void 0:pe.data)==null?void 0:Ge.message)??"Erro ao realizar login. Tente novamente."),d(!1)}))},L=()=>{d(!0),Id(r,k).then(K=>{if(K.data.valid){j(6),d(!1);return}j(7),d(!1)}).catch(K=>{var pe,Ge;j(3),v(((Ge=(pe=K==null?void 0:K.response)==null?void 0:pe.data)==null?void 0:Ge.message)??"Erro ao realizar login. Tente novamente."),d(!1)})},G=async()=>{d(!0);const K=await b();Rd(r,k,R,K,Ee,Ce,ge,W).then(pe=>{j(8),d(!1),Q(Pt(pe.data)),C(pe.data)}).catch(pe=>{var Ge,It;j(3),v(((It=(Ge=pe==null?void 0:pe.response)==null?void 0:Ge.data)==null?void 0:It.message)??"Erro ao realizar login. Tente novamente."),d(!1)})},ne=p.useMemo(()=>(R==null?void 0:R.length)>=6&&R===I,[I,R]),me=()=>{t(!1),j(1),v(null),y({}),N(""),O(""),z(""),A(1),H(!1),Y(!1),ie(!1)},$e=()=>{var K;l(!0),a(qe.isValidCpfOrCnpj(((K=u==null?void 0:u.current)==null?void 0:K.value)??""))},ft=()=>{l(!1)};function We(){u.current.value="",a(!1),n("")}function Qe(){ts(u,a)}const ze=Me.h1` 347 text-neutral-900 text-xl lg:text-2xl leading-6 lg:leading-8 w-full font-bold text-left mb-2 348 `,et=Me.label` 349 ${K=>K.inputvalue!=""?"label-float-active":""} 350 absolute bg-white text-sm leading-[14px] text-gray-600 351 duration-300 transform -translate-y-4 scale-100 top-8 left-3 z-10 origin-[0] 352 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 353 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 354 peer-focus:top-1 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-4 355 ${()=>s&&" !bg-transparent"} 356 `,ht=Me.label` 357 ${K=>K.inputvalue!=""?"label-float-passwd-active":""} 358 absolute bg-white text-sm leading-[14px] text-gray-600 359 duration-300 transform -translate-y-0 scale-100 top-10 left-3 z-10 origin-[0] 360 peer-focus:px-2 peer-focus:text-defaultTextDark peer-placeholder-shown:scale-100 361 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 362 peer-focus:top-3 peer-focus:scale-75 peer-focus:text-base peer-focus:-translate-y-0 363 `;return p.useEffect(()=>{var K;u&&((K=u==null?void 0:u.current)==null||K.focus())},[u]),p.useEffect(()=>{var K;!se&&((K=h==null?void 0:h.mailList)==null?void 0:K.length)>0?B(h==null?void 0:h.mailList[0]):!se&&(h!=null&&h.email)&&B(h.email)},[se,h.email,h==null?void 0:h.mailList]),p.useEffect(()=>{if(U<=0)return;const K=setInterval(()=>{X(pe=>pe>0?pe-1:0)},1e3);return()=>clearInterval(K)},[U]),o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-full flex flex-row ",children:o.jsx(Mf,{action:me})}),w===1&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-start w-full",children:o.jsx("span",{className:"text-xl lg:text-2xl flex justify-start font-bold mb-2",children:"Redefinição de senha"})}),o.jsx("label",{htmlFor:"cpfCnpj",className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Para começar, digite seu CPF ou CNPJ:"}),o.jsxs("div",{className:"relative mt-8 w-full",children:[o.jsx("input",{id:"cpfcnpj",type:"tel",className:"input-txid peer !mt-0"+(i&&!s&&r!=""?" border !border-red-700":s?" !bg-gray-100 !border-gray-100":""),value:r,ref:u,onChange:K=>{Qe(),n(K.target.value)},onBlur:$e,onKeyUp:K=>{Qn(u,K)},onKeyDown:ft}),o.jsx(et,{htmlFor:"cpfcnpj",inputvalue:r,children:"CNPJ ou CPF"}),r!=""&&!s&&o.jsx(Qr,{className:"absolute right-6 top-3 cursor-pointer fill-defaultTextDark w-6 aspect-auto",onClick:We}),r!=""&&s&&o.jsx("span",{className:"absolute right-6 top-3 cursor-pointer font-bold text-neutral-900 leading-6 w-auto cur",onClick:We,children:"Trocar"})]}),o.jsx(Ie,{label:"Continuar",action:F,loading:c,aditionalClasses:"mt-6 w-full"})]}),w===2&&V.ErpType===2&&o.jsx(o.Fragment,{children:le?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Vamos enviar uma senha para seu email"})}),o.jsxs("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:["Em alguns minutos, você receberá sua senha no e-mail: ",h==null?void 0:h.email]}),o.jsx(Ie,{label:"Voltar ao login",loadingLabel:"Carregando",action:me,loading:c,aditionalClasses:"mt-6"})]}):o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Nenhum serviço disponÃvel para enviar o código de validação."})}),w===2&&V.ErpType===13&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Sua nova senha"})}),o.jsxs("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:["Digite a nova senha da sua conta.",o.jsx("br",{}),"Código enviado para o e-mail: ",o.jsx("span",{className:"font-bold",children:h==null?void 0:h.email}),"."]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"validationCode",type:"text",className:"input-txid peer",value:k,onChange:K=>{N(K.target.value)},title:"Digite o código de validação enviado para seu E-mail"}),o.jsxs(ht,{htmlFor:"validationCode",inputvalue:k,children:["Código enviado para o ",o.jsx("b",{children:"e-mail"})]})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswd",type:q?"text":"password",className:"input-txid peer",value:R,onChange:K=>{O(K.target.value)},title:"Digite sua senha"}),o.jsx(ht,{htmlFor:"newPasswd",inputvalue:R,children:"Digite sua senha"}),R!==""&&o.jsx(o.Fragment,{children:q?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)})})]}),R!==""&&!/^(?=(.*[a-z]))(?=(.*[A-Z]))(?=(.*\d))(?=(.*[@$!%*?&]))(?!.*(?:012|123|234|345|456|567|678|789|890|abc|bcd|cde|def|ghi|hij|ijk|jkl|klm|lmn|mno|pqr|rst|stu|uvw|xyz|ABC|BCD|CDE|DEF|GHI|HIJ|IJK|JKL|KLM|LMN|MNO))[A-Za-z\d@$!%*?&]{8,}$/.test(R)&&o.jsxs("ul",{className:"text-red-500 text-xs lg:text-sm mt-3",children:[o.jsx("li",{children:"⢠A senha deve possuir no mÃnimo 8 caracteres."}),o.jsx("li",{children:"⢠A senha deve possuir letras maiúsculas (EX: AJP)."}),o.jsx("li",{children:"⢠A senha deve possuir letras minúsculas (EX: ajp)."}),o.jsx("li",{children:"⢠A senha deve possuir caracteres especiais (EX: !@#$%&)."}),o.jsx("li",{children:"⢠A senha deve possuir números (EX: 0,5,9)."}),o.jsx("li",{children:"⢠A senha não deve conter sequências alfanuméricas (EX: 123, abc, ABC)."})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswdConfirm",type:Z?"text":"password",className:"input-txid peer",value:I,onChange:K=>{z(K.target.value)},title:"Confirme sua senha",onKeyDown:K=>{K.key==="Enter"&&G()}}),o.jsx(ht,{htmlFor:"newPasswdConfirm",inputvalue:I,children:"Confirme sua senha"}),I!==""&&o.jsx(o.Fragment,{children:Z?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)})})]}),I!==""&&I!==R&&o.jsx("p",{className:"text-red-500 text-xs mt-2",children:"As senhas não coincidem."}),o.jsx(Ie,{label:"Cadastrar senha",action:G,loading:c,aditionalClasses:"mt-6",disabled:!ne||!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,}$/.test(R)||R!==I})]}),w===2&&V.ErpType!==2&&V.ErpType!==13&&o.jsx(o.Fragment,{children:le?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Vamos enviar um código para redefinir sua senha"})}),o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Escolha a melhor opção para enviarmos o token de validação:"}),o.jsxs("div",{className:"flex flex-col mt-6 w-full",children:[(h==null?void 0:h.isEmailAvailable)&&o.jsxs("div",{className:"flex flex-row item-center",children:[o.jsx("input",{type:"radio",value:1,name:"resetMethod",checked:S===1,onChange:E,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark w-full",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"E-mail:"}),h!=null&&h.mailList&&((re=h==null?void 0:h.mailList)==null?void 0:re.length)>1?o.jsx("span",{className:"text-neutral-900 font-bold",children:o.jsx(_f,{title:"Selecione o e-mail",options:(h==null?void 0:h.mailList)&&(h==null?void 0:h.mailList.map(K=>({value:K,key:K}))),value:se,setter:B})}):o.jsx("span",{className:"text-neutral-900 font-bold",children:h==null?void 0:h.email})]})]}),(h==null?void 0:h.isSmsAvailable)&&o.jsxs("div",{className:"flex flex-row mt-3 items-center",children:[o.jsx("input",{type:"radio",value:2,name:"resetMethod",checked:S===2,onChange:E,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"SMS:"}),h==null?void 0:h.phone]})]}),(h==null?void 0:h.isWhatsAppAvailable)&&o.jsxs("div",{className:"flex flex-row mt-3 items-center",children:[o.jsx("input",{type:"radio",value:3,name:"resetMethod",checked:S===3,onChange:E,className:"mr-2"}),o.jsxs("div",{className:"flex flex-col text-sm leading-6 text-defaultTextDark",children:[o.jsx("label",{className:"text-xs leading-4 font-bold text-defaultText",children:"WhatsApp:"}),h==null?void 0:h.phone]})]})]}),o.jsx(Ie,{label:U>0?`Aguarde ${U}s`:"Receber código",loadingLabel:"Enviando...",action:P,loading:c,disabled:c||U>0,aditionalClasses:"mt-6"})]}):o.jsx("label",{className:"text-neutral-600 text-sm lg:text-base block text-left",children:"Nenhum serviço disponÃvel para enviar o código de validação."})}),w===3&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Desculpe, tivemos um problema."})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:x}),o.jsx(Ie,{label:"Tentar novamente",action:()=>{j(1),v(null)},aditionalClasses:"mt-6"})]}),w===4&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:"flex flex-col items-center justify-center",children:[o.jsx("div",{className:"px-3 py-[18px]",children:o.jsx("img",{src:"/images/pix/person-modal.svg",alt:"Ainda não é
363cliente",className:"w-full max-w-[140px]"})}),o.jsxs("div",{className:"text-defaultTextDark text-base lg:text-xl leading-[25px] lg:leading-8 text-center mt-[14px] font-medium",children:["Acreditamos que você ainda não seja cliente ",(V==null?void 0:V.Name)||"","."]}),(V==null?void 0:V.Url)&&o.jsx(Ie,{action:()=>{window.open(V==null?void 0:V.Url,"_blank")},label:"Quero ser cliente",aditionalClasses:"mt-6"})]})}),w===5&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Código de validação"})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:"Insira o código recebido para continuar"}),o.jsx(Ta,{validationCode:k,setValidationCode:N,isCodeFilled:ee,setIsCodeFilled:H,onKeyEnterFunc:L}),o.jsx("div",{className:"mt-2 w-full",children:o.jsx(Ie,{action:L,label:"Validar token",aditionalClasses:"mt-6",disabled:!ee})})]}),w===6&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Sua nova senha"})}),o.jsxs("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:["Digite a nova senha da sua conta.",o.jsx("br",{}),"A senha deve ter, no mÃnimo, 6 caracteres"]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswd",type:q?"text":"password",className:"input-txid peer",value:R,onChange:K=>{O(K.target.value)},title:"Digite sua senha"}),o.jsx(ht,{htmlFor:"newPasswd",inputvalue:R,children:"Digite sua senha"}),R!=""&&o.jsx(o.Fragment,{children:q?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>Y(!q)})})]}),o.jsxs("div",{className:"relative w-full",children:[o.jsx("input",{id:"newPasswdConfirm",type:Z?"text":"password",className:"input-txid peer",value:I,onChange:K=>{z(K.target.value)},title:"Confirme sua senha",onKeyDown:K=>{K.key==="Enter"&&G()}}),o.jsx(ht,{htmlFor:"newPasswdConfirm",inputvalue:I,children:"Confirme sua senha"}),I!=""&&o.jsx(o.Fragment,{children:Z?o.jsx(dr,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)}):o.jsx(ur,{className:"absolute w-6 h-6 right-6 top-7 fill-gray-600 cursor-pointer",onClick:()=>ie(!Z)})})]}),o.jsx(Ie,{action:G,label:"Cadastrar senha",loadingLabel:"Carregando",aditionalClasses:"mt-6",disabled:!ne})]}),w===7&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center w-full",children:o.jsx(ze,{children:"Código inválido"})}),o.jsx("p",{className:"text-xs lg:text-sm text-defaultText mt-3",children:"O código digitado está incorreto"}),o.jsx(Ie,{label:"Tentar novamente",action:()=>{j(1),v(null)},aditionalClasses:"mt-6"})]}),w===8&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col justify-center items-center w-full",children:[o.jsx(Ii,{className:"fill-success w-12 h-12"}),o.jsx(ze,{className:"text-center",children:"Senha alterada com sucesso!"})]}),o.jsx(Ie,{action:me,label:"Entrar",aditionalClasses:"mt-6"})]})]})}function lw({info:e}){return o.jsx("div",{className:"text-2xl text-defaultTextDark font-bold leading-8 text-center w-full mt-4",children:e})}const Qf=p.forwardRef(({className:e,type:t,...r},n)=>o.jsx("input",{type:t,className:Wt("flex h-9 w-full rounded-lg border border-primary bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...r}));Qf.displayName="Input";function cw(){const[e,t]=p.useState(""),[r,n]=p.useState(!1),{setAuthValidated:s,setShowAuthValidation:a,currentTxId:i}=p.useContext(Qt),l=Re.getInstance(),u=vt(),c=it(),d=He(),{ToastNotificationHandle:f}=Zr(),m=x=>{l.login(x.token,x.refreshToken),u("/")},g=p.useCallback(x=>{var y;n(!0);const v=((y=d==null?void 0:d.Extras)==null?void 0:y.TxidTypes)??[1,2],h=v.length===1&&v.includes(1);Nx(i,x).then(w=>
363{if(qe.normalizeTxId(i).length===14&&h){f("error","Acesso exclusivo para Pessoa FÃsica, clique na aba 'Portal do Assinante' e informe os dados de acesso."),s(!1);return}localStorage.setItem("7azFrontAccessType","simplifiedAccess"),c(Pt(w.data)),m(w.data),a(!1),s(!0)}).catch(w=>{var j,S;f("error",((S=(j=w==null?void 0:w.response)==null?void 0:j.data)==null?void 0:S.message)??"Erro ao realizar login. Tente novamente."),s(!1)}).finally(()=>{n(!1)})},[d]);return{completeInfoAuth:e,setCompleteInfoAuth:t,handleAuthValidation:g,isLoadingAuthValidation:r}}function uw({action:e,loading:t,data:r,label:n,aditionalClasses:s,icon:a}){return o.jsxs("button",{className:Wt("btn-base-submit bg-neutral-100 text-base leading-[160%] text-primaryContrast hover:brightness-95 !mt-0",s),onClick:i=>{i.stopPropagation(),e()},disabled:t,type:"button",children:[t&&o.jsx(Ei,{type:"loading",message:"Processando..."}),!t&&o.jsxs("div",{className:" flex gap-2 items-center",children:[a," ",n]})]})}function dw(){const{validationCode:e,authValidationType:t}=p.useContext(Qt),{handleAuthValidation:r,isLoadingAuthValidation:n}=cw(),{setShowAuthValidation:s}=p.useContext(Qt),[a,i]=p.useState(""),l=Me.div` 364w-full h-[1px] bg-gray-200 mt-4 365`,u=()=>{s(!1)},c=Me.h1` 366 text-[22px] font-bold leading-8 text-left text-defaultTextDark 367`,d=Me.div` 368 text-[16px] font-normal leading-6 text-left text-defaultText 369`;function f(){return t===2?" o número da sua carteira de beneficiário":t===4?" o número do contrato completo":e.includes("@")?"seu e-mail completo":"seu número de celular completo"}function m(){return t===2?"o número da carteira":t===4?"o número do contrato completo":e.includes("@")?"o e-mail completo":"o número completo"}function g(){return t===2?"Beneficiário":"Acesso"}return o.jsxs(o.Fragment,{children:[o.jsxs(c,{children:["Confirmação de ",g()]}),o.jsxs(d,{children:["Para confirmar sua identidade, por favor, digite ",f(),":"]}),o.jsx(lw,{info:e}),o.jsx(Qf,{placeholder:`Insira ${m()}`,value:a,onChange:x=>i(x.target.value),className:"!mt-5 !border-[#E5E7EB] border-[1px] !rounded-lg !h-[48px] !px-4"}),o.jsx(Ie,{disabled:!a,action:()=>r(a),aditionalClasses:"!font-bold !mt-5",label:n?"Confirmando...":"Confirmar"}),o.jsx(l,{}),o.jsx(uw,{aditionalClasses:"!mt-4 !items-center !text-sm !bg-[#DDE3EB] !text-text-primary",icon:o.jsx(vi,{stroke:1.5,size:22}),label:"Voltar para o login",action:u})]})}const Kf=e=>e.includes("@")&&e.trim().length>0,Gf=e=>e.replace(/\D/g,"").length>=10,ws=e=>{const t=e.replace(/\D/g,"");return t.length<=11?t.length<=2?`(${t}`:t.length<=7?`(${t.slice(0,2)}) ${t.slice(2)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7,11)}`:e},Jf=e=>{const t=encodeURIComponent("Olá! Preciso de ajuda para cadastrar meus dados de autenticação no sistema.");return`https://wa.me/55${e.replace(/\D/g,"")}?text=${t}`},Zf=e=>{var t,r,n,s;return((t=e==null?void 0:e.response)==null?void 0:t.status)===500&&((s=(n=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:n.message)==null?void 0:s.includes("Código de validação inválido"))},Yf=e=>{if(!e||!e.includes("@"))return e;const[t,r]=e.split("@");return t.length<=3?`${t[0]}***@${r}`:`${`${t.slice(0,2)}***${t.slice(-2)}`}@${r}`},fw=()=>{const e=vt(),t=it(),r=Re.getInstance(),{ToastNotificationHandle:n}=Zr(),{currentTxId:s,brokerAuthMethods:a,setShowBrokerValidation:i,setCurrentTxId:l,setBrokerAuthMethods:u}=p.useContext(Qt),[c,d]=p.useState("method"),[f,m]=p.useState(""),[g,x]=p.useState(""),[v,h]=p.useState(""),[y,w]=p.useState(!1),[j,S]=p.useState(!1),[A,k]=p.useState(""),[N,R]=p.useState(!1),[O,I]=p.useState(0),[z,T]=p.useState(0),[_,V]=p.useState(!1),[ee,H]=p.useState(!1),[q,Y]=p.useState(null),[Z,ie]=p.useState(!1);p.useEffect(()=>{a&&a.length===1&&Ae(a[0])},[a]),p.useEffect(()=>{let Q;return z>0&&(Q=setInterval(()=>{T(U=>U-1)},1e3)),()=>clearInterval(Q)},[z]);const se=Q=>{r.login(Q.token,Q.refreshToken),e("/")},B=()=>Pr[f],le=()=>{i(!1),l(""),u([])},ve=Q=>Q||"",Ee=Q=>{if(Q==null||typeof Q!="string")return!1;const U=Q.trim();return!(U===""||U==="null"||U==="undefined"||U.toLowerCase()==="não informado"||U.toLowerCase()==="não cadastrado")},Ae=async Q=>{var X,ae;m(Q),S(!0),k(Q);const U=Pr[Q];try{const J=await Pd(s,U.notificationType);if(J.data.success&&J.data.data){const D=(Array.isArray(J.data.data)?J.data.data:[J.data.data]).filter(b=>Ee(b));D.length>0?(Y({available:!0,data:D,message:J.data.message}),x(""),ie(!1)):(Y({available:!1,message:`Nenhum ${U.label.toLowerCase()} cadastrado`}),x(""),ie(!0)),d("contact")}else Y({available:!1,message:J.data.message||`Nenhum ${U.label.toLowerCase()} cadastrado`}),x(""),ie(!0),d("contact")}catch(J){n("error",((ae=(X=J==null?void 0:J.response)==null?void 0:X.data)==null?void 0:ae.message)||`Erro ao verificar ${U.label}.`),Y(null)}finally{S(!1),k("")}},Ce=async()=>{var X,ae;const Q=B();if(!Q){n("error","Método de verificação inválido.");return}const U=ve(g);if(!U.trim()){n("error",`Por favor, informe o ${Q.contactLabel.toLowerCase()}.`);return}if(f==="email"&&!Kf(U)){n("error","Por favor, informe um e-mail válido.");return}if((f==="whatsapp"||f==="sms")&&!Gf(U)){n("error","Por favor, informe um telefone válido.");return}w(!0);try{const J=f==="email"?U:void 0,te=f==="whatsapp"||f==="sms"?U:void 0,D=await Mn(s,Q.notificationType,J,te,void 0,!0);D.data.success?(d("code"),T($n),n("success",`Código enviado via ${Q.label}!`)):n("error",D.data.message||"Erro ao solicitar código.")}catch(J){n("error",((ae=(X=J==null?void 0:J.response)==null?void 0:X.data)==null?void 0:ae.message)||"Erro ao solicitar código. Verifique os dados informados.")}finally{w(!1)}},Ne=async()=>{var Q,U;if(v.length!==6){n("error","Digite o código de 6 dÃgitos.");return}if(_){n("error","Você excedeu o número máximo de tentativas.");return}w(!0);try{const X=await Nd(s,v,f);X.data.token&&X.data.refreshToken?(t(Pt(X.data)),t(Vs(!0)),le(),se(X.data)):ge()}catch(X){Zf(X)?ge():n("error",((U=(Q=X==null?void 0:X.response)==null?void 0:Q.data)==null?void 0:U.message)||"Erro na validação. Tente novamente.")}finally{w(!1)}},ge=()=>{const Q=O+1;I(Q),h(""),H(!1),Q>=Pa&&V(!0)};return{step:c,selectedMethod:f,contactInfo:g,validationCode:v,loading:y,methodLoading:j,loadingMethod:A,resendLoading:N,attempts:O,countdown:z,isBlocked:_,isCodeFilled:ee,authData:q,isNewContact:Z,getCurrentMethodConfig:B,handleMethodSelect:Ae,handleContactSubmit:Ce,handleCodeSubmit:Ne,handleResendCode:async()=>{var Q,U;if(!(z>0||_)){R(!0);try{const X=B(),ae=ve(g),J=f==="email"?ae:void 0,te=f==="whatsapp"||f==="sms"?ae:void 0,D=await Mn(s,X.notificationType,J,te,void 0,!0);D.data.success?(T($n),n("success","Código reenviado!")):n("error",D.data.message||"Erro ao reenviar código.")}catch(X){n("error",((U=(Q=X==null?void 0:X.response)==null?void 0:Q.data)==null?void 0:U.message)||"Erro ao reenviar código.")}finally{R(!1)}}},handleBack:()=>
369{if(c==="contact"){if(a.length===1){le();return}d("method"),m(""),x(""),Y(null),ie(!1)}else c==="code"?(d("contact"),h(""),H(!1),I(0),V(!1),T(0)):le()},setContactInfo:Q=>{x(ve(Q))},setValidationCode:h,setIsCodeFilled:H,setIsNewContact:ie}},hw=()=>{var ie,se,B,le,ve,Ee,Ae,Ce,Ne;const{brokerAuthMethods:e,currentTxId:t}=p.useContext(Qt),r=He(),n=qe.normalizeTxId(t??""),s=n.length===11,a=n.length===14,i=(r==null?void 0:r.Name)==="Unimed Anápolis",l=(r==null?void 0:r.Name)==="Unimed Vale Sao Francisco",c=(()=>{var $,W;if(l){if(s)return{url:"https://unidesk.appunimedvsf.com.br/unimedmaisvoce",label:"Falar com Suporte",isWhatsapp:!1,isTextOnly:!1};if(a)return{url:null,label:"0800 024 7900",isWhatsapp:!1,isTextOnly:!0}}const ge=(W=($=r==null?void 0:r.Extras)==null?void 0:$.Services)==null?void 0:W.QuickAccessWhats;return ge&&ge!==""?{url:Jf(ge),label:"Falar com Suporte",isWhatsapp:!0,isTextOnly:!1}:null})(),d=c!==null,{step:f,selectedMethod:m,contactInfo:g,validationCode:x,loading:v,methodLoading:h,resendLoading:y,attempts:w,countdown:j,isBlocked:S,isCodeFilled:A,authData:k,isNewContact:N,loadingMethod:R,getCurrentMethodConfig:O,handleMethodSelect:I,handleContactSubmit:z,handleCodeSubmit:T,handleResendCode:_,handleBack:V,setContactInfo:ee,setValidationCode:H,setIsCodeFilled:q,setIsNewContact:Y}=fw(),Z=()=>{c!=null&&c.url&&window.open(c.url,"_blank")};return e.length===1&&h&&f==="method"?o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"flex items-center mb-6",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(Bs,{className:"text-blue-600 mr-3 text-lg"}),o.jsx("div",{children:o.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Acesse sua conta"})})]})}),o.jsxs("div",{className:"text-center py-8",children:[o.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),o.jsx("p",{className:"text-gray-600",children:"Preparando autenticação..."})]})]}):o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center mb-2",children:[(f!=="method"||e.length===1)&&!S&&o.jsx("button",{onClick:V,className:"mr-1 p-2 hover:bg-gray-100 rounded-full transition-colors",disabled:v||h,children:o.jsx(Zd,{className:"text-gray-600",stroke:2})}),o.jsx("div",{className:"flex items-center",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Bs,{className:"text-blue-600 text-lg"}),o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Acesse sua conta"}),o.jsx("p",{className:"text-sm text-gray-600"})]})]})})]}),f==="method"&&e.length>1&&o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-gray-700 p-2",children:"Escolha a forma de autenticação:"}),e.map(ge=>{const $=Pr[ge];if(!$)return null;const W=h&&R===ge;return o.jsxs("button",{onClick:()=>I(ge),className:"w-full flex items-center p-4 border rounded-lg hover:bg-gray-100 transition-colors disabled:opacity-50 cursor-pointer text-lg relative",disabled:h,children:[W&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white bg-opacity-80 rounded-lg",children:o.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-600"})}),o.jsx("span",{className:`mr-3 text-lg ${W?"opacity-50":""}`,children:$.icon}),o.jsx("span",{className:`text-left font-medium text-sm ${W?"opacity-50":""}`,children:$.label})]},ge)})]}),f==="contact"&&o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[o.jsx("span",{className:"text-lg",children:(ie=O())==null?void 0:ie.icon}),o.jsx("h3",{className:"font-semibold text-gray-900",children:(se=O())==null?void 0:se.label})]}),(k==null?void 0:k.available)&&!N&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:Array.isArray(k.data)&&k.data.length>1?`Escolha o ${(B=O())==null?void 0:B.label.toLowerCase()} para receber o código:`:`Complete o ${(le=O())==null?void 0:le.label.toLowerCase()} para receber o código:`}),o.jsxs("div",{children:[o.jsxs("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1",children:[(ve=O())==null?void 0:ve.label," cadastrado(s)"]}),o.jsx("div",{className:"space-y-2",children:Array.isArray(k.data)&&k.data.length>0?k.data.map((ge,$)=>o.jsx("div",{className:"p-3 bg-primaryTransparent50 border border-gray-100 rounded-lg text-sm font-semibold text-gray-700",children:ge},$)):k.data?o.jsx("div",{className:"p-3 bg-primaryTransparent50 border border-gray-100 rounded-lg text-sm font-semibold text-gray-700",children:k.data}):null}),d&&!(c!=null&&c.isTextOnly)?o.jsx("button",{onClick:Z,className:"text-xs text-primary hover:underline mt-1.5 block",children:"Se precisar atualizar seu cadastro, clique aqui."}):d&&(c!=null&&c.isTextOnly)?o.jsxs("p",{className:"text-xs text-gray-500 mt-1.5",children:["Se precisar atualizar seu cadastro, entre em contato pelo ",o.jsx("strong",{children:c==null?void 0:c.label})]}):null]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-semibold text-gray-700 uppercase tracking-wide mb-1",children:(Ee=O())==null?void 0:Ee.contactLabel}),o.jsx("input",{type:((Ae=O())==null?void 0:Ae.inputType)||"text",value:g,onChange:ge=>{let $=ge.target.value;const W=O();(W==null?void 0:W.inputType)==="tel"&&($=ws($)),ee($)},placeholder:((Ce=O())==null?void 0:Ce.contactPlaceholder)||"",className:"w-full p-3 border rounded-lg focus:ring-2 focus:ring-primary focus:border-primary text-sm",disabled:v,autoFocus:!0}),o.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-gray-500 mt-1.5",children:[o.jsx(hf,{className:"flex-shrink-0"}),"Usado apenas para acessar o portal de pagamentos."]})]}),o.jsx(Ie,{action:z,label:"Receber código",disabled:v||!g.trim(),loading:v})]}),(!(k!=null&&k.available)||N)&&o.jsxs("div",{className:"mb-2 p-4 bg-supportWarning border-warning rounded-lg",children:[o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(Wn,{className:"text-warning text-lg flex-shrink-0 mt-0.5"}),o.jsx("div",{className:"flex-1",children:o.jsxs("p",{className:"text-sm text-orange-800 font-medium text-left leading-relaxed",children:["Você ainda não tem um ",(Ne=O())==null?void 0:Ne.label.toLowerCase()," vinculado a este portal. Para cadastrar e receber o código de acesso, entre em contato com nossa equipe de suporte."]})})]}),o.jsxs("div",{className:"mt-3",children:[d&&!(c!=null&&c.isTextOnly)&&o.jsxs("button",{onClick:Z,className:`w-full flex items-center justify-center p-3 ${c!=null&&c.isWhatsapp?"bg-success hover:bg-green-600":"bg-primary hover:bg-blue-600"} text-white rounded-lg transition-colors font-medium`,children:[(c==null?void 0:c.isWhatsapp)&&o.jsx(Ci,{className:"mr-2 text-lg"}),c==null?void 0:c.label]}),d&&(c==null?void 0:c.isTextOnly)&&o.jsx("div",{className:"p-3 bg-gray-50 rounded-lg",children:o.jsxs("div",{className:"flex items-center justify-center",children:[o.jsx(qs,{className:"text-gray-500 mr-2"}),o.jsxs("p",{className:"text-sm text-gray-700 text-center",children:["Entre em contato pelo ",o.jsx("strong",{children:c==null?void 0:c.label})]})]})}),!d&&o.jsx("div",{className:"p-3 bg-gray-50 rounded-lg -mx-2",children:o.jsxs("div",{className:"flex items-center justify-center gap-3",children:[o.jsx(qs,{className:"text-neutral-600 flex-shrink-0 text-2x -ml-1"}),o.jsx("p",{className:"lg:text-sm text-xs text-gray-700 text-start",children:i?o.jsxs(o.Fragment,{children:["Entre em contato com a nossa equipe através do ",o.jsx("strong",{children:"0800 943 3330"})," ou"," ",o.jsx("strong",{children:"62 3333-3330"})," para atualizar seus dados"]}):"Entre em contato com o suporte para atualizar seus dados"})]})})]})]})]}),f==="code"&&o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"text-center mb-4 ",children:[o.jsxs("p",{className:"text-gray-700 text-sm",children:["Código enviado para: ",Yf(g)]}),w>0&&!S&&o.jsxs("p",{className:"text-orange-600 text-sm mt-1",children:["Tentativas restantes: ",Pa-w]})]}),S&&o.jsx("div",{className:"mb-4 p-4 bg-red-50 border border-red-200 rounded-lg",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(Wn,{className:"text-red-500 mr-3 text-xl flex-shrink-0"}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-red-800 font-semibold",children:"Tentativas Excedidas"}),o.jsx("p",{className:"text-red-700 text-sm mt-1",children:"Você utilizou todas as tentativas disponÃveis. Tente novamente mais tarde."})]})]})}),!S&&o.jsx("div",{className:"flex justify-center ",children:o.jsx(Ta,{validationCode:x,setValidationCode:H,isCodeFilled:A,setIsCodeFilled:q,onKeyEnterFunc:T})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(Ie,{action:T,label:v?"Validando...":"Validar Código",disabled:v||!A||S,loading:v&&!S}),o.jsx("button",{onClick:_,className:"w-full py-2 text-gray-700 hover:text-blue-800 disabled:text-gray-400 transition-colors",disabled:y||j>0||S,children:S?"Tentativas Excedidas":y?"Reenviando...":j>0?`Reenviar em ${j}s`:"Reenviar código"})]})]})]})};function zc({title:e,message:t,actions:r,onClose:n}){return o.jsx("div",{id:"security-alert-modal","aria-modal":"true",role:"dialog",className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-60",children:o.jsxs("div",{role:"document",className:"w-11/12 max-w-md rounded-lg bg-white p-6 text-center shadow-lg animate-fadeIn",children:[o.jsx("h2",{className:"mb-4 text-lg font-bold text-neutral-900",children:e}),o.jsx("p",{className:"mb-4 text-sm text-neutral-600",children:t}),o.jsxs("div",{className:"flex flex-col gap-1",children:[" ",r.map((s,a)=>o.jsx(Ie,{action:s.onClick,label:s.label,aditionalClasses:"w-full !m-0"},a)),o.jsx(Ie,{action:n,label:"Fechar",aditionalClasses:"w-full !m-0"})]})]})})}const pw=()=>{const e=vt(),t=it(),r=Re.getInstance(),{ToastNotificationHandle:n}=Zr(),{currentTxId:s,brokerAuthMethods:a,setShowSimplifiedBrokerValidation:i,setCurrentTxId:l,setBrokerAuthMethods:u}=p.useContext(Qt),[c,d]=p.useState("method"),[f,m]=p.useState(""),[g,x]=p.useState(""),[v,h]=p.useState(""),[y,w]=p.useState(!1),[j,S]=p.useState(!1),[A,k]=p.useState(""),[N,R]=p.useState(!1),[O,I]=p.useState(0),[z,T]=p.useState(0),[_,V]=p.useState(!1),[ee,H]=p.useState(!1),[q,Y]=p.useState(null),[Z,ie]=p.useState(!1),[se,B]=p.useState(!1),le=p.useRef(!1);p.useEffect(()=>{a.length!==1||!s||le.current||(le.current=!0,W(a[0]))},[s]),p.useEffect(()=>{let D;return z>0&&(D=setInterval(()=>{T(b=>b-1)},1e3)),()=>clearInterval(D)},[z]);const ve=D=>{r.login(D.token,D.refreshToken),e("/")},Ee=()=>Pr[f],Ae=()=>{i(!1),l(""),u([]),le.current=!1},Ce=D=>D||"",Ne=D=>{const b=Array.isArray(q==null?void 0:q.data)?q.data:q!=null&&q.data?[q.data]:[];if(b.length===0)return!0;const C=D.replace(/\D/g,"");return b.some(E=>{const P=E.replace(/\D/g,"");return P.length<5?!1:C.startsWith(P.slice(0,2))&&C.endsWith(P.slice(-3))})},ge=D=>{if(D==null||typeof D!="string")return!1;const b=D.trim();return!(b===""||b==="null"||b==="undefined"||b.toLowerCase()==="não informado"||b.toLowerCase()==="não cadastrado")},$=async D=>{var b,C;try{const E=await Mn(s,D.notificationType,void 0,void 0);return E.data.success?(d("code"),E.data.codeReused?n("info","Código já enviado anteriormente. Utilize o código recebido."):(T($n),n("success",`Código enviado via ${D.label}!`)),!0):(n("error",E.data.message||"Erro ao enviar código."),!1)}catch(E){return n("error",((C=(b=E==null?void 0:E.response)==null?void 0:b.data)==null?void 0:C.message)||"Erro ao enviar código. Tente novamente."),!1}},W=async D=>{var C,E;m(D),S(!0),k(D);const b=Pr[D];try{const P=await Pd(s,b.notificationType);if(P.data.needsContactRegistration&&!P.data.success)Y({available:!1,message:P.data.message,isPhoneLocked:!1}),x(""),ie(!0),B(!1),d("contact");else if(P.data.success&&P.data.data){const L=(Array.isArray(P.data.data)?P.data.data:[P.data.data]).filter(ne=>ge(ne)),G=P.data.isPhoneLocked??!1;L.length>0?(Y({available:!0,data:L,message:P.data.message,isPhoneLocked:G}),G?(x(L[0]||""),await $(b)||Ae()):(x(""),ie(!1),B(!1),d("contact"))):(Y({available:!1,message:`Nenhum ${b.label.toLowerCase()} cadastrado`,isPhoneLocked:!1}),x(""),ie(!0),B(!1),d("contact"))}else n("error",P.data.message||`Erro ao verificar ${b.label}.`),Y(null)}catch(P){n("error",((E=(C=P==null?void 0:P.response)==null?void 0:C.data)==null?void 0:E.message)||`Erro ao verificar ${b.label}.`),Y(null)}finally{S(!1),k("")}},fe=async()=>{const D=Ee();if(!D)return;if(w(!0),await $(D)){const C=Array.isArray(q==null?void 0:q.data)?q.data[0]:(q==null?void 0:q.data)||"";x(C)}w(!1)},Q=async()=>{var C,E;const D=Ee();if(!D){n("error","Método de verificação inválido.");return}const b=Ce(g);if(!b.trim()){n("error",`Por favor, informe o ${D.contactLabel.toLowerCase()}.`);return}if(f==="email"&&!Kf(b)){n("error","Por favor, informe um e-mail válido.");return}if((f==="whatsapp"||f==="sms")&&!Gf(b)){n("error","Por favor, informe um telefone válido.");return}if((f==="whatsapp"||f==="sms")&&!Z&&!se&&!Ne(b)){n("error","Esse telefone não é um dos cadastrados. Confira o número.");return}w(!0);try{const P=f==="email"?b:void 0,F=f==="whatsapp"||f==="sms"?b:void 0,L=await Mn(s,D.notificationType,P,F);L.data.success?(d("code"),L.data.codeReused?n("info","Código já enviado anteriormente. Utilize o código recebido."):(T($n),n("success",`Código enviado via ${D.label}!`))):n("error",L.data.message||"Erro ao solicitar código.")}catch(P){n("error",((E=(C=P==null?void 0:P.response)==null?void 0:C.data)==null?void 0:E.message)||"Erro ao solicitar código. Verifique os dados informados.")}finally{w(!1)}},U=async()=>{var D,b,C;if(v.length!==6){n("error","Digite o código de 6 dÃgitos.");return}if(_){n("error","Você excedeu o número máximo de tentativas.");return}w(!0);try{const E=(D=Pr[f])==null?void 0:D.notificationType,P=await Nd(s,v,f,E);P.data.token&&P.data.refreshToken?(t(Pt(P.data)),t(Vs(!0)),Ae(),ve(P.data)):X()}catch(E){Zf(E)?X():n("error",((C=(b=E==null?void 0:E.response)==null?void 0:b.data)==null?void 0:C.message)||"Erro na validação. Tente novamente.")}finally{w(!1)}},X=()=>{const D=O+1;I(D),h(""),H(!1),D>=Pa&&V(!0)};return{step:c,selectedMethod:f,contactInfo:g,validationCode:v,loading:y,methodLoading:j,loadingMethod:A,resendLoading:N,attempts:O,countdown:z,isBlocked:_,isCodeFilled:ee,authData:q,isNewContact:Z,isChangingContact:se,getCurrentMethodConfig:Ee,handleMethodSelect:W,handleConfirmExisting:fe,handleContactSubmit:Q,handleCodeSubmit:U,handleResendCode:async()=>{var D,b,C;if(!(z>0||_)){R(!0);try{const E=Ee(),P=Ce(g),F=q!=null&&q.isPhoneLocked?void 0:P||void 0,L=f==="email"?F:void 0,G=f==="whatsapp"||f==="sms"?F:void 0,ne=await Mn(s,E.notificationType,L,G,!0);if(ne.data.success)T($n),n("success","Código reenviado!");else{const me=(D=ne.data.message)==null?void 0:D.match(/Aguarde (\d+) segundo/);me&&T(parseInt(me[1],10)),n("error",ne.data.message||"Erro ao reenviar código.")}}catch(E){n("error",((C=(b=E==null?void 0:E.response)==null?void 0:b.data)==null?void 0:C.message)||"Erro ao reenviar código.")}finally{R(!1)}}},handleBack:()=>
369{if(c==="contact"){if(se){B(!1),x("");return}if(a.length===1){Ae();return}d("method"),m(""),x(""),Y(null),ie(!1),B(!1)}else if(c==="code"){if(q!=null&&q.isPhoneLocked){if(a.length===1){Ae();return}d("method"),m(""),x(""),Y(null)}else d("contact");h(""),H(!1),I(0),V(!1),T(0)}else Ae()},setContactInfo:D=>{x(Ce(D))},setValidationCode:h,setIsCodeFilled:H,setIsNewContact:ie,setIsChangingContact:B}},mw=()=>{var B,le,ve,Ee,Ae,Ce,Ne,ge,$,W,fe,Q,U,X,ae;const{brokerAuthMethods:e,currentTxId:t}=p.useContext(Qt),r=He(),n=qe.normalizeTxId(t??""),s=n.length===11,a=n.length===14,i=(r==null?void 0:r.Name)==="Unimed Anápolis",l=(r==null?void 0:r.Name)==="Unimed Vale Sao Francisco",c=(()=>{var te,D;if(l){if(s)return{url:"https://unidesk.appunimedvsf.com.br/unimedmaisvoce",label:"Falar com Suporte",isWhatsapp:!1,isTextOnly:!1};if(a)return{url:null,label:"0800 024 7900",isWhatsapp:!1,isTextOnly:!0}}const J=(D=(te=r==null?void 0:r.Extras)==null?void 0:te.Services)==null?void 0:D.QuickAccessWhats;return J&&J!==""?{url:Jf(J),label:"Falar com Suporte",isWhatsapp:!0,isTextOnly:!1}:null})(),d=c!==null,{step:f,selectedMethod:m,contactInfo:g,validationCode:x,loading:v,methodLoading:h,resendLoading:y,attempts:w,countdown:j,isBlocked:S,isCodeFilled:A,authData:k,isNewContact:N,isChangingContact:R,loadingMethod:O,getCurrentMethodConfig:I,handleMethodSelect:z,handleContactSubmit:T,handleCodeSubmit:_,handleResendCode:V,handleBack:ee,setContactInfo:H,setValidationCode:q,setIsCodeFilled:Y,setIsChangingContact:Z}=pw(),ie=((B=I())==null?void 0:B.inputType)==="email"?"e-mail":"número",se=ie==="e-mail"?"E-mail":"Número";return f==="noMethods"?o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center mb-6",children:[o.jsx(ry,{className:"text-blue-600 mr-3 text-lg"}),o.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Acesse sua conta"})]}),o.jsxs("div",{className:"text-center py-8",children:[o.jsx("p",{className:"text-gray-700 font-medium mb-2",children:"Nenhuma forma de autenticação disponÃvel."}),o.jsx("p",{className:"text-sm text-gray-500",children:"Entre em contato com o suporte para regularizar o acesso."})]})]}):e.length===1&&h&&f==="method"?o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"flex items-center mb-6",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(Bs,{className:"text-blue-600 mr-3 text-lg"}),o.jsx("div",{children:o.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Acesse sua conta"})})]})}),o.jsxs("div",{className:"text-center py-8",children:[o.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),o.jsx("p",{className:"text-gray-600",children:"Preparando autenticação..."})]})]}):o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center mb-2",children:[(f!=="method"||e.length===1)&&!S&&o.jsx("button",{onClick:ee,className:"mr-1 p-2 hover:bg-gray-100 rounded-full transition-colors",disabled:v||h,children:o.jsx(Zd,{className:"text-gray-600",stroke:2})}),o.jsx("div",{className:"flex items-center",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Bs,{className:"text-blue-600 text-lg"}),o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Acesse sua conta"}),o.jsx("p",{className:"text-sm text-gray-600"})]})]})})]}),f==="method"&&e.length>1&&o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-sm text-gray-700 p-2",children:"Enviaremos um código para confirmar sua identidade. Por onde prefere receber?"}),e.map(J=>{const te=Pr[J];if(!te)return null;const D=h&&O===J;return o.jsxs("button",{onClick:()=>z(J),className:"w-full flex items-center p-4 border rounded-lg hover:bg-gray-100 transition-colors disabled:opacity-50 cursor-pointer text-lg relative",disabled:h,children:[D&&o.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white bg-opacity-80 rounded-lg",children:o.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-600"})}),o.jsx("span",{className:`mr-3 text-lg ${D?"opacity-50":""}`,children:te.icon}),o.jsx("span",{className:`text-left font-medium text-sm ${D?"opacity-50":""}`,children:te.label})]},J)})]}),f==="contact"&&(k==null?void 0:k.available)&&!(k!=null&&k.isPhoneLocked)&&!N&&o.jsx("div",{className:"space-y-4",children:o.jsxs("div",{className:"text-center mb-4",children:[o.jsxs("div",{className:"flex items-center p-4",children:[(le=I())==null?void 0:le.icon,o.jsx("span",{className:"ml-3.5 font-semibold",children:(ve=I())==null?void 0:ve.label})]}),R?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"mb-3 p-3 bg-blue-50 rounded-lg",children:o.jsxs("p",{className:"text-sm text-gray-600 font-medium mb-2",children:["Informe o novo ",ie,":"]})}),o.jsx("div",{className:"mb-3",children:o.jsx("input",{type:((Ne=I())==null?void 0:Ne.inputType)||"text",value:g,onChange:J=>{let te=J.target.value;const D=I();(D==null?void 0:D.inputType)==="tel"&&(te=ws(te)),H(te)},placeholder:((ge=I())==null?void 0:ge.contactPlaceholder)||"",className:"w-full p-3 border rounded-lg focus:ring-2 text-center text-sm",disabled:v,autoFocus:!0})}),o.jsx(Ie,{action:T,label:"Receber código",disabled:v||!g.trim(),loading:v})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-3 p-3 bg-blue-50 rounded-lg",children:[o.jsxs("p",{className:"text-sm text-gray-600 font-medium mb-4",children:["Confirme o ",ie," para receber o código via ",(Ee=I())==null?void 0:Ee.label,":"]}
369),o.jsxs("div",{className:"mb-4 p-3 bg-white border border-blue-200 rounded-lg",children:[o.jsxs("p",{className:"text-sm text-gray-600 font-semibold mb-3",children:[se," cadastrado:"]}),o.jsx("div",{className:"space-y-2",children:Array.isArray(k.data)&&k.data.length>0?k.data.map((J,te)=>o.jsx("div",{className:"text-base font-semibold text-gray-600 bg-primaryTransparent50 border border-gray-100 p-3 rounded-md",children:J},te)):k.data?o.jsx("div",{className:"text-base font-semibold text-gray-600 bg-primaryTransparent50 border border-blue-200 p-3 rounded-md",children:k.data}):null})]}),d&&!(c!=null&&c.isTextOnly)?o.jsx("button",{onClick:()=>window.open((c==null?void 0:c.url)??"","_blank"),className:"text-xs text-blue-600 hover:text-blue-800",children:"Se precisar atualizar seu cadastro, clique aqui."}):d&&(c!=null&&c.isTextOnly)?o.jsxs("p",{className:"text-xs text-gray-600",children:["Se precisar atualizar seu cadastro, entre em contato pelo ",o.jsx("strong",{children:c==null?void 0:c.label})]}):null,o.jsxs("button",{onClick:()=>Z(!0),className:"text-xs text-blue-600 hover:text-blue-800 underline mt-1",children:["Não é esse? Informar outro ",ie]})]}),o.jsxs("p",{className:"text-sm text-gray-600 font-medium mb-2",children:["Digite o ",ie," completo",Array.isArray(k.data)&&k.data.length>1?" que você escolheu:":":"]}),o.jsx("div",{className:"mb-3",children:o.jsx("input",{type:((Ae=I())==null?void 0:Ae.inputType)||"text",value:g,onChange:J=>{let te=J.target.value;const D=I();(D==null?void 0:D.inputType)==="tel"&&(te=ws(te)),H(te)},placeholder:((Ce=I())==null?void 0:Ce.contactPlaceholder)||"",className:"w-full p-3 border rounded-lg focus:ring-2 text-center text-sm",disabled:v,autoFocus:!0})}),o.jsx(Ie,{action:T,label:"Confirmar e receber código",disabled:v||!g.trim(),loading:v})]})]})}),f==="contact"&&(!(k!=null&&k.available)||N)&&o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[o.jsx("span",{className:"text-lg",children:($=I())==null?void 0:$.icon}),o.jsxs("h3",{className:"font-semibold text-gray-900",children:["Cadastre um ",(W=I())==null?void 0:W.label.toLowerCase()," para acessar"]})]}),o.jsxs("p",{className:"text-sm text-gray-700 leading-relaxed",children:["Você ainda não tem um ",(fe=I())==null?void 0:fe.label.toLowerCase()," vinculado a este portal. Informe abaixo o ",(Q=I())==null?void 0:Q.label.toLowerCase()," que deseja usar para receber o código de acesso."]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs font-semibold text-gray-700 uppercase tracking-wide mb-1",children:["Seu ",(U=I())==null?void 0:U.label]}),o.jsx("input",{type:((X=I())==null?void 0:X.inputType)||"text",value:g,onChange:J=>{let te=J.target.value;const D=I();(D==null?void 0:D.inputType)==="tel"&&(te=ws(te)),H(te)},placeholder:((ae=I())==null?void 0:ae.contactPlaceholder)||"",className:"w-full p-3 border rounded-lg focus:ring-2 focus:ring-primary focus:border-primary text-sm",disabled:v,autoFocus:!0}),o.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-gray-500 mt-1.5",children:[o.jsx(hf,{className:"flex-shrink-0"}),"Usado apenas para acessar o portal de pagamentos."]})]}),o.jsx(Ie,{action:T,label:"Cadastrar e receber código",disabled:v||!g.trim(),loading:v}),d&&!(c!=null&&c.isTextOnly)&&o.jsxs("div",{className:"border-t pt-3",children:[o.jsx("p",{className:"text-xs text-gray-400 text-center mb-2",children:"Precisa de ajuda?"}),o.jsxs("button",{onClick:()=>window.open((c==null?void 0:c.url)??"","_blank"),className:`w-full flex items-center justify-center gap-2 py-2.5 px-4 rounded-lg border text-sm font-medium transition-colors ${c!=null&&c.isWhatsapp?"border-green-200 text-green-700 hover:bg-green-50":"border-gray-200 text-gray-600 hover:bg-gray-50"}`,children:[(c==null?void 0:c.isWhatsapp)&&o.jsx(Ci,{className:"text-green-500"}),c==null?void 0:c.label]})]}),d&&(c==null?void 0:c.isTextOnly)&&o.jsxs("div",{className:"border-t pt-3 flex items-center justify-center gap-2 text-sm text-gray-500",children:[o.jsx(qs,{className:"flex-shrink-0 text-gray-400"}),o.jsxs("span",{children:["Suporte: ",o.jsx("strong",{className:"text-gray-700",children:c==null?void 0:c.label})]})]}),!d&&i&&o.jsxs("div",{className:"border-t pt-3 flex items-center justify-center gap-2 text-sm text-gray-500",children:[o.jsx(qs,{className:"flex-shrink-0 text-gray-400"}),o.jsxs("span",{children:["Suporte: ",o.jsx("strong",{className:"text-gray-700",children:"0800 943 3330"})," ou"," ",o.jsx("strong",{className:"text-gray-700",children:"62 3333-3330"})]})]})]}),f==="code"&&o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"text-center mb-4 ",children:[o.jsxs("p",{className:"text-gray-700 text-sm",children:["Código enviado para: ",Yf(g)]}),w>0&&!S&&o.jsxs("p",{className:"text-orange-600 text-sm mt-1",children:["Tentativas restantes: ",Pa-w]})]}),S&&o.jsx("div",{className:"mb-4 p-4 bg-red-50 border border-red-200 rounded-lg",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx(Wn,{className:"text-red-500 mr-3 text-xl flex-shrink-0"}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-red-800 font-semibold",children:"Tentativas Excedidas"}),o.jsx("p",{className:"text-red-700 text-sm mt-1",children:"Você utilizou todas as tentativas disponÃveis. Tente novamente mais tarde."})]})]})}),!S&&o.jsx("div",{className:"flex justify-center ",children:o.jsx(Ta,{validationCode:x,setValidationCode:q,isCodeFilled:A,setIsCodeFilled:Y,onKeyEnterFunc:_})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(Ie,{action:_,label:S?"Tentativas Excedidas":v?"Validando...":"Validar Código",disabled:v||!A||S,loading:v&&!S}),o.jsx("button",{onClick:V,className:"w-full py-2 text-gray-700 hover:text-blue-800 disabled:text-gray-400 transition-colors",disabled:y||j>0||S,children:S?"Tentativas Excedidas":y?"Reenviando...":j>0?`Reenviar em ${j}s`:"Reenviar código"})]})]})]})};function gw(){var fe,Q,U,X,ae,J,te,D,b,C,E,P,F,L,G;
369const e=He(),{isLargeScreen:t}=Ft(),[r,n]=p.useState(!1),[s,a]=p.useState(!1),[i,l]=p.useState(0),u=(Q=(fe=e==null?void 0:e.Extras)==null?void 0:fe.Customizations)==null?void 0:Q.SimplifiedOnlyWithValidationV3,c=(X=(U=e==null?void 0:e.Extras)==null?void 0:U.Customizations)==null?void 0:X.RecaptchaVersion,d=!!u&&!!c,f=((J=(ae=e==null?void 0:e.Extras)==null?void 0:ae.Customizations)==null?void 0:J.PreferenceLoginSimplifiedTab)??!1,m=((D=(te=e==null?void 0:e.Extras)==null?void 0:te.Customizations)==null?void 0:D.BrokerValidation)??!1,g=((C=(b=e==null?void 0:e.Extras)==null?void 0:b.Customizations)==null?void 0:C.SimplifiedWithBrokerValidation)??!1,x=((P=(E=e==null?void 0:e.Extras)==null?void 0:E.Customizations)==null?void 0:P.CompleteAccessAndBrokerValidationSimplified)??!1,[v,h]=p.useState(!1),[y,w]=p.useState(!1),[j,S]=p.useState(!1),[A,k]=p.useState(!1),[N,R]=p.useState(!1),[O,I]=p.useState(!1),z=A?!0:f?i===1:i===0,T=f?i===0:i===1,{simplifiedAuthHasValidation:_,showAuthValidation:V,simplifiedAuthByContact:ee,setSimplifiedAuthByContact:H,showBrokerValidation:q,showSimplifiedBrokerValidation:Y}=p.useContext(Qt),Z=(!r&&!s&&z&&!y&&!j&&!ee&&!N&&!m&&!g)??!1,ie=(!r&&!s&&(T||y||j||ee||N||m||g)&&!A)??!1,se=p.useMemo(()=>new URLSearchParams(window.location.search),[]),[B,le]=p.useState(!1),[ve,Ee]=p.useState(null),[Ae,Ce]=p.useState(!1),Ne=[0,1],ge=()=>{var ne;return!(!((ne=e==null?void 0:e.Background)!=null&&ne.Content)||(e==null?void 0:e.Name)==="Redfox"&&!t)};p.useEffect(()=>{var ft,We,Qe,ze,et,ht,yt,wt,re,K,pe,Ge,It,Jt,_r,Mr,Lr,Yr,ct,oe;if(!e)return;h(!0);const ne=((We=(ft=e==null?void 0:e.Extras)==null?void 0:ft.Customizations)==null?void 0:We.SimplifiedOnlyByEmail)??!1,me=((ze=(Qe=e==null?void 0:e.Extras)==null?void 0:Qe.Customizations)==null?void 0:ze.BrokerValidation)??!1,$e=((ht=(et=e==null?void 0:e.Extras)==null?void 0:et.Customizations)==null?void 0:ht.SimplifiedWithBrokerValidation)??!1;w(((wt=(yt=e==null?void 0:e.Extras)==null?void 0:yt.Customizations)==null?void 0:wt.SimplifiedOnly)??!1),S(((K=(re=e==null?void 0:e.Extras)==null?void 0:re.Customizations)==null?void 0:K.SimplifiedOnlyRestricted)??!1),I(((Ge=(pe=e==null?void 0:e.Extras)==null?void 0:pe.Customizations)==null?void 0:Ge.IsValidateBotLogin)??!1),k(((Jt=(It=e==null?void 0:e.Extras)==null?void 0:It.Customizations)==null?void 0:Jt.CompleteOnly)??!1),R(ne),H(((Mr=(_r=e==null?void 0:e.Extras)==null?void 0:_r.Customizations)==null?void 0:Mr.SimplifiedAuthByContact)??!1),me||$e?l(0):ne?(l(1),w(!0)):(l((Yr=(Lr=e==null?void 0:e.Extras)==null?void 0:Lr.Customizations)!=null&&Yr.SimplifiedOnly?1:0),(oe=(ct=e==null?void 0:e.Extras)==null?void 0:ct.Customizations)!=null&&oe.CompleteOnly&&l(0))},[e]),p.useEffect(()=>{if(!se)return;const ne=se.get("txId"),me=se.get("tab");me&&Ne.includes(parseInt(me))&&l(parseInt(me)),ne&&!Ae&&l(f?0:1)},[Ne,se]),p.useEffect(()=>{(localStorage.getItem("7azAppMode")??!1)&&(le(!0),l(f?1:0))},[]),p.useEffect(()=>{const ne=["localhost","127.0.0.1"].includes(window.location.hostname);d&&!ne&&(c==="ENTERPRISE"?Ff(u):$f(u))},[d,u,c]);const $=()=>y||A||j||r||s||V||B||ee||N||m||g||q||Y,W=()=>!r&&!y&&!j&&!A&&!s&&!V&&!B&&!ee&&!N&&!m&&!g&&!q&&!Y;return o.jsx(o.Fragment,{children:e&&((F=e==null?void 0:e.Logo)!=null&&F.Content)?o.jsxs("div",{style:ge()?{backgroundImage:`url(${(L=e==null?void 0:e.Background)==null?void 0:L.Content})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{},id:"bgLoginPortal",className:"h-auto min-h-screen flex flex-col items-center bg-secondary font-inter login-bg"+(B?" justify-start lg:justify-center pt-[5em] lg:pt-0":" p-4 lg:p-6 justify-center"),children:[o.jsx(kf,{children:v&&o.jsx(Nf,{src:((G=e==null?void 0:e.Logo)==null?void 0:G.Content)||"",alt:(e==null?void 0:e.Name)||""})}),$()&&o.jsx("div",{className:"mt-6 lg:mt-8"}),W()&&o.jsx(ow,{currentTab:i,setCurrentTab:l}),o.jsxs("div",{className:`z-10 flex flex-col justify-start items-start w-full max-w-[380px] bg-white py-6 px-4 lg:py-8 lg:px-6 rounded-bl-lg rounded-br-lg shadow-lg 370 ${$()&&" rounded-lg"} 371 ${B?" max-w-[90%]":""}`,children:[Z&&!V&&!q&&o.jsx(H2,{setLoginHasErrors:Ce,setResettingPassword:n,setIsFirstAccess:a,setLoginErrorType:Ee}),ie&&!V&&!q&&!Y&&o.jsx(aw,{setLoginHasErrors:Ce,simplifiedAuthHasValidation:_,brokerValidation:m||x,simplifiedWithBrokerValidation:g}),r&&o.jsx(iw,{isResettingPassword:r,setResettingPassword:n}),s&&!y&&!j&&o.jsx(z2,{isFirstAccess:s,setIsFirstAccess:a}),V&&ee&&o.jsx(dw,{}),q&&o.jsx(hw,{}),Y&&(g||!z)&&o.jsx(mw,{})]}),ve==="LEAKED_PASSWORD"&&o.jsx(zc,{title:o.jsxs("div",{className:"flex items-center justify-center",children:[o.jsx(Wn,{className:"text-yellow-500 mr-2"}),o.jsx("span",{children:"Aviso de Segurança â Senha Comprometida"})]}),message:"A senha informada consta em listas públicas de senhas vazadas. Recomendamos que você altere sua senha usando o recurso Redefinir Senha ou entre em contato pelos nossos canais de atendimento.",actions:[{label:"Redefinir Senha",onClick:()=>{n(!0),Ee(null)}}],onClose:()=>Ee(null)}),ve==="EQUAL_USER_PASS"&&o.jsx(zc,{title:o.jsxs("div",{className:"flex items-center justify-center",children:[o.jsx(Wn,{className:"text-yellow-500 mr-2"}),o.jsx("span",{children:"Aviso de Segurança â Senha Muito Fraca"})]}),message:"A senha informada é idêntica ao seu nome de usuário, o que representa um risco grave à segurança da sua conta. Por questões de segurança, essa prática não é recomendada e pode facilitar acessos indevidos. Recomendamos que você altere sua senha usando o recurso Redefinir Senha ou entre em contato pelos nossos canais de atendimento.",actions:[{label:"Redefinir Senha",onClick:()=>{n(!0),Ee(null)}}],onClose:()=>Ee(null)})]}):o.jsx(ff,{})})}const xw=p.lazy(()=>Ke(()=>import("./HomePortal-e67a8899.js"),["assets/HomePortal-e67a8899.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/swiper-442b9b58.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/PaymentOptions-29f9e1fe.js","assets/ContractStatus-08b71122.js","assets/SkeletonsPortal-4886f27c.js","assets/NextInvoicesSlider-dd3ded23.js","assets/ErrorRequestGeneric-f308c427.js","assets/useBemobiDrawer-d99e0758.js","assets/success-c2a1737a.js","assets/lottie-9975b1e9.js","assets/FloatAlertSignContract-1271883a.js","assets/IconClock-d308dcf9.js","assets/negotiation-origin-08876a83.js","assets/NegotiationError-38673e90.js","assets/NegotiateDebtsItems-c01f43f1.js","assets/useInvoiceContractsFromToken-f1f72a36.js","assets/IconReceipt2-cd7c429f.js","assets/pdf-viewer-9b371a90.js","assets/HomePortal-501d8e68.css"])),Uc=p.lazy(()=>Ke(()=>import("./InvoicesPortal-13b3668f.js"),["assets/InvoicesPortal-13b3668f.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/NavigateButtonFiscalDoc-27263635.js","assets/QuickAccess-3c3dd55b.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/useBemobiDrawer-d99e0758.js","assets/success-c2a1737a.js","assets/lottie-9975b1e9.js","assets/IconReceipt2-cd7c429f.js","assets/PortalContent-685029ff.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),vw=p.lazy(()=>Ke(()=>import("./PaymentMethodPage-ea9ab8e5.js"),["assets/PaymentMethodPage-ea9ab8e5.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/EmbedPortalProvider-7afc0bbf.js","assets/index-72cc605b.js","assets/IconCheck-78a7cf1f.js","assets/CreditCardPaymentError-6a904eab.js","assets/luxon-cc86f6dc.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.js","assets/IconCircleX-bed3c750.js","assets/HelmetTitle-6d149794.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/IconCircleCheckFilled-fb8c2178.js","assets/PortalContent-685029ff.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),yw=p.lazy(()=>Ke(()=>import("./FiscalDocuments-765e422e.js"),["assets/FiscalDocuments-765e422e.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/EmptyPageGeneric-231f5a18.js","assets/SkeletonsPortal-4886f27c.js","assets/IconSaxArrowRightOutline-7369b4da.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/motion-b076d11a.js","assets/PortalContent-685029ff.js","assets/QuickAccess-3c3dd55b.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/IconCirclePlus-440222cd.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),bw=p.lazy(()=>Ke(()=>import("./Documents-2d939e30.js"),["assets/Documents-2d939e30.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/EmptyPageGeneric-231f5a18.js","assets/ErrorRequestGeneric-f308c427.js","assets/SkeletonsPortal-4886f27c.js","assets/IconSaxArrowRightOutline-7369b4da.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/motion-b076d11a.js","assets/PortalContent-685029ff.js","assets/QuickAccess-3c3dd55b.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/IconCirclePlus-440222cd.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),ww=p.lazy(()=>Ke(()=>import("./DocumentSignature-91e71ff1.js"),["assets/DocumentSignature-91e71ff1.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/pdf-viewer-9b371a90.js","assets/IconCircleCheck-f8f43b13.js","assets/motion-b076d11a.js"])),Bc=p.lazy(()=>Ke(()=>import("./DocumentValidation-cf71935e.js"),["assets/DocumentValidation-cf71935e.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/pdf-viewer-9b371a90.js","assets/motion-b076d11a.js"])),Cw=p.lazy(()=>Ke(()=>import("./Support-0b8daab1.js"),["assets/Support-0b8daab1.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/EmptyPageGeneric-231f5a18.js","assets/ErrorRequestGeneric-f308c427.js","assets/SkeletonsPortal-4886f27c.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/PortalContent-685029ff.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),jw=p.lazy(()=>Ke(()=>import("./SettingsMobile-ed70ec6b.js"),["assets/SettingsMobile-ed70ec6b.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/IconWifi-560bdb87.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/NavigateButtonFiscalDoc-27263635.js","assets/pdf-viewer-9b371a90.js"])),Sw=p.lazy(()=>Ke(()=>import("./PhoneCalls-639de7d9.js"),["assets/PhoneCalls-639de7d9.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/EmptyPageGeneric-231f5a18.js","assets/ErrorRequestGeneric-f308c427.js","assets/SkeletonsPortal-4886f27c.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/PortalContent-685029ff.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/pdf-viewer-9b371a90.js"])),Ew=p.lazy(()=>Ke(()=>import("./Connection-c4b51c0c.js"),["assets/Connection-c4b51c0c.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/charts-dd3361e5.js","assets/pdf-viewer-9b371a90.js","assets/PortalContent-685029ff.js","assets/QuickAccess-3c3dd55b.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/IconCircleCheck-f8f43b13.j
371s","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/IconCircleX-bed3c750.js","assets/swiper-442b9b58.js","assets/scroll-area-295de0fa.js","assets/motion-b076d11a.js","assets/IconCirclePlus-440222cd.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js"]).then(e=>({default:e.ConnectionPage}))),Aw=p.lazy(()=>Ke(()=>import("./PrivacyPolice-c99f1976.js"),["assets/PrivacyPolice-c99f1976.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/pdf-viewer-9b371a90.js","assets/motion-b076d11a.js"])),Tw=p.lazy(()=>Ke(()=>import("./404-694e2815.js"),["assets/404-694e2815.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/PortalWrapperContent-060be1ae.js","assets/FloatAlertSignContract-1271883a.js","assets/HelmetTitle-6d149794.js","assets/pdf-viewer-9b371a90.js","assets/motion-b076d11a.js"])),Pw=p.lazy(()=>Ke(()=>import("./CreditCardRegistration-66c964d6.js"),["assets/CreditCardRegistration-66c964d6.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/motion-b076d11a.js","assets/IconWifi-560bdb87.js","assets/AutomaticPixQrCode-04795775.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/index-72cc605b.js","assets/IconCheck-78a7cf1f.js","assets/IconCirclePlus-440222cd.js","assets/AppsService-aed909ed.js","assets/pdf-viewer-9b371a90.js"])),Nw=p.lazy(()=>Ke(()=>import("./NegotiationPortal-0cf3b18a.js"),["assets/NegotiationPortal-0cf3b18a.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/index-15b45105.js","assets/NegotiationError-38673e90.js","assets/IconCircleX-bed3c750.js","assets/NegotiateDebtsItems-c01f43f1.js","assets/motion-b076d11a.js","assets/IconCircleCheck-f8f43b13.js","assets/useInvoiceContractsFromToken-f1f72a36.js","assets/IconCheck-78a7cf1f.js","assets/AppsService-aed909ed.js","assets/PaymentOptions-29f9e1fe.js","assets/useInvoicePixStatus-c13bff6b.js","assets/useBemobiContainer-ca4e6273.js","assets/success-c2a1737a.js","assets/scroll-area-295de0fa.js","assets/HelmetTitle-6d149794.js","assets/lottie-9975b1e9.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconClock-d308dcf9.js","assets/pdf-viewer-9b371a90.js"])),kw=p.lazy(()=>Ke(()=>import("./DefaulterPortal-8b8ae200.js"),["assets/DefaulterPortal-8b8ae200.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/index-15b45105.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/NegotiateDebtsItems-c01f43f1.js","assets/motion-b076d11a.js","assets/IconCircleCheck-f8f43b13.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/useInvoicePixStatus-c13bff6b.js","assets/PaymentOptions-29f9e1fe.js","assets/ContractStatus-08b71122.js","assets/pdf-viewer-9b371a90.js"]).then(e=>({default:e.DefaulterPortal}))),Ow=p.lazy(()=>Ke(()=>import("./EmbedPortal-226a32c3.js"),["assets/EmbedPortal-226a32c3.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/PayInvoiceDrawerPortal-e6991f07.js","assets/useInvoicePixStatus-c13bff6b.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/IconCircleCheck-f8f43b13.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/IconBrandWhatsapp-38cdc0da.js","assets/HelmetTitle-6d149794.js","assets/index-15b45105.js","assets/ErrorRequestGeneric-f308c427.js","assets/ContractStatus-08b71122.js","assets/useBemobiDrawer-d99e0758.js","assets/success-c2a1737a.js","assets/lottie-9975b1e9.js","assets/AutomaticPixQrCode-04795775.js","assets/IconCheck-78a7cf1f.js","assets/PaymentMethodConfig-7ce80ffd.js","assets/IconCircleX-bed3c750.js","assets/negotiation-origin-08876a83.js","assets/NegotiationError-38673e90.js","assets/NegotiateDebtsItems-c01f43f1.js","assets/motion-b076d11a.js","assets/useInvoiceContractsFromToken-f1f72a36.js","assets/pdf-viewer-9b371a90.js"])),Iw=p.lazy(()=>Ke(()=>import("./PaymentInvoicePortal-fd5a5944.js"),["assets/PaymentInvoicePortal-fd5a5944.js","assets/ui-916dc9d9.js","assets/vendor-aea060b0.js","assets/CreditCardPaymentError-6a904eab.js","assets/index-9cd944d6.js","assets/PaymentMethodPage-5cbe0f96.css","assets/index-72cc605b.js","assets/luxon-cc86f6dc.js","assets/useInvoiceContractsFromToken-f1f72a36.js","assets/IconCheck-78a7cf1f.js","assets/index-15b45105.js","assets/ErrorRequestGeneric-f308c427.js","assets/scroll-area-295de0fa.js","assets/IconReceipt2-cd7c429f.js","assets/success-c2a1737a.js","assets/IconCircleCheckFilled-fb8c2178.js","assets/IconCircleCheck-f8f43b13.js","assets/useBemobiContainer-ca4e6273.js","assets/HelmetTitle-6d149794.js","assets/lottie-9975b1e9.js","assets/InvoiceInRecurrenceInfo-d99f2dcd.js","assets/EmbedPortalProvider-7afc0bbf.js","assets/pdf-viewer-9b371a90.js","assets/motion-b076d11a.js"]).then(e=>({default:e.PaymentInvoicesPortal})));function Rw(){const e=Ye(a=>a.auth),t=Ir(),[,r]=p.useTransition(),[n,s]=p.useState(t);return p.useEffect(()=>{r(()=>s(t))},[t.key]),p.useEffect(()=>{Wr({type:"windowTitle",data:{title:window.document.title?window.document.title:"Portal Bemobi"}})},[t]),o.jsx($2,{children:o.jsx(L2,{children:o.jsx(p.Suspense,{fallback:null,children:o.jsxs(Xo,{location:n,children:[o.jsxs(ke,{element:o.jsx(Of,{auth:e}),children:[o.jsx(ke,{path:"/",element:o.jsx(Vt,{children:o.jsx(xw,{})})}),o.jsx(ke,{path:"/invoices",element:o.jsx(Vt,{children:o.jsx(Uc,{})})}),o.jsx(ke,{path:"/invoice/:invoiceId",element:o.jsx(Vt,{children:o.jsx(Uc,{})})}),o.jsx(ke,{path:"/forma-pagamento/*",element:o.jsx(Vt,{children:o.jsx(vw,{})})}),o.jsx(ke,{path:"/fiscal-documents",element:o.jsx(Vt,{children:o.jsx(yw,{})})}),o.jsx(ke,{path:"/documents",element:o.jsx(Vt,{children:o.jsx(bw,{})})}),o.jsx(ke,{path:"/documents/:documentId",element:o.jsx(Vt,{children:o.jsx(ww,{})})}),o.jsx(ke,{path:"/support",element:o.jsx(Vt,{children:o.jsx(Cw,{})})}),o.jsx(ke,{path:"/settings",element:o.jsx(Vt,{children:o.jsx(jw,{})})}),o.jsx(ke,{path:"/phone-calls",element:o.jsx(Vt,{children:o.jsx(Sw,{})})}),o.jsx(ke,{path:"/connection",element:o.jsx(Vt,{children:o.jsx(Ew,{})})})]}),o.jsx(ke,{path:"/validar-documento/:documentId",element:o.jsx(Bc,{})}),o.jsx(ke,{path:"/validar-documento",element:o.jsx(Bc,{})}),o.jsx(ke,{path:"/login",element:o.jsx(D2,{children:o.jsx(gw,{})})}),o.jsx(ke,{path:"/politica-de-privacidade",element:o.jsx(Aw,{})}),o.jsx(ke,{path:"/credit-card-registration",element:o.jsx(Pw,{})}),o.jsx(ke,{path:"/portal-negociacoes",element:o.jsx(Nw,{})}),o.jsx(ke,{path:"/resolva",element:o.jsx(kw,{})}),o.jsx(ke,{path:"/pagamentos-de-faturas",element:o.jsx(Iw,{})}),o.jsx(ke,{path:"/embed/*",element:o.jsx(Ow,{})}),o.jsx(ke,{path:"*",element:o.jsx(Tw,{})})]})})})})}const _w="7c4814a4-8eb5-4d2e-bdf8-3f306448e397",Mw="11f18fab-da20-4bfe-851c-51bd333291bb",Lw="96ec7caf-8433-406a-bf15-85afa135e614",Fw="903705a7-c12f-42fa-a7d0-0aef5c5dd324",$w=["2771b828-d93d-4fe6-9306-b7903774290e","cd1b8940-9d43-4b9f-940d-f5a0af4aaf59","463c59a5-8019-4eb0-97e4-b6668e58a49b","070153d0-5115-4aa9-a234-90f76549d6d2","50d50b55-1648-4773-9c58-24f8c4a057db","90fc11cc-f555-478c-bfa2-b9cf1aae1bf2"],Dw=Object.freeze(Object.defineProperty({__proto__:null,ALARES_COMPANY_ID:_w,PONTO
371SAT_COMPANY_ID:Fw,TEN_INTERNET_COMPANY_ID:Lw,VERO_COMPANY_IDS:$w,ZAAZ_COMPANY_ID:Mw},Symbol.toStringTag,{value:"Module"})),Vw=()=>Dw,zw=Vw;function Uw(){const{toasts:e}=Wf(),t=Re.getInstance().getCompanyId(),{ALARES_COMPANY_ID:r}=zw();return o.jsxs(Q2,{children:[e.map(function({id:n,title:s,description:a,action:i,...l}){return o.jsxs(zf,{...l,children:[o.jsxs("div",{className:"grid gap-1",children:[s&&o.jsx(qf,{children:s}),a&&o.jsx(Hf,{children:a})]}),i,o.jsx(Bf,{})]},n)}),o.jsx(Vf,{className:t===r?"top-0 bottom-[unset]":""})]})}function Bw(){const{token:e}=Cm();return p.useEffect(()=>{window.location.replace(`/api/r/${e}`)},[e]),null}Ke(()=>Promise.resolve({}),["assets/App-09a6a979.css"]);function qw(){const e=He(),{appType:t,isPixApp:r,isPortalApp:n}=Hd(e),s=new URLSearchParams(window.location.search)??null,a=(s==null?void 0:s.get("txId"))??null,i=(s==null?void 0:s.get("invoiceId"))??null,l=(s==null?void 0:s.get("documentId"))??null,u=(s==null?void 0:s.get("appMode"))??null,c=(s==null?void 0:s.get("tab"))??null,d=vt(),[f,m]=p.useState(!0);wv();const g=it();function x(){return s.has("txId")||s.has("invoiceId")||s.has("documentId")||s.has("appMode")}return p.useEffect(()=>{a&&(i&&g(Vd({path:"/invoice/"+i,params:{invoiceId:i}})),d("/login/?txId="+a))},[a,g,i,d]),p.useEffect(()=>{l&&d("/login/?documentId="+l)},[l,d]),p.useEffect(()=>{u=="1"&&localStorage.setItem("7azAppMode","true")},[u,d]),p.useEffect(()=>{e&&e.IsDefaulter&&d("/resolva")},[e,d]),p.useEffect(()=>{if(c){const v=c,h=new URLSearchParams(window.location.search);x()?d("/login/?"+h+"&tab="+v):d("/login/?tab="+v)}},[c]),p.useEffect(()=>{(window.location.hostname.includes("pix.mhnet")||window.location.hostname.includes("mhnet.pix"))&&(window.location.href="https://portal.mhnet.com.br/login/"+(window.location.search!==""?window.location.search:"?tab=1"))},[]),p.useEffect(()=>{Re.getInstance().startService();const h=setTimeout(()=>{m(!1)},1600);return()=>{clearTimeout(h)}},[]),o.jsxs("div",{className:"App figtree-font",children:[o.jsx(Ug,{}),!e&&o.jsx(mv,{}),o.jsx(hv,{company:e,appType:t}),f&&u==="1"?o.jsx(pv,{}):o.jsxs(o.Fragment,{children:[o.jsx(Xo,{children:o.jsx(ke,{path:"/r/:token",element:o.jsx(Bw,{})})}),r&&o.jsx(b2,{}),n&&o.jsx(Rw,{})]}),o.jsx(Dg,{}),o.jsx(Uw,{}),o.jsx(Vg,{}),o.jsx(xv,{}),o.jsx(fv,{}),o.jsx(gv,{})]})}const Hw=new Ch({defaultOptions:{queries:{staleTime:60*1e3}}}),Ww=()=>{oo.createRoot(document.getElementById("root")).render(o.jsx(Up,{store:dv,children:o.jsx(an,{children:o.jsx(Wm,{children:o.jsx(Th,{client:Hw,children:o.jsx(Oe.StrictMode,{children:o.jsx(qw,{})})})})})}))},Qw=async()=>{Ww()},qc=window.location.pathname.match(/^\/r\/([^/]+)$/);qc?window.location.replace(`/api/r/${qc[1]}`):Qw();export{t9 as $,WC as A,Ei as B,Nf as C,Wt as D,If as E,Me as F,T2 as G,Jr as H,Ii as I,Re as J,HC as K,u2 as L,T9 as M,wi as N,F2 as O,Ie as P,E2 as Q,Oi as R,ff as S,Qy as T,XC as U,Si as V,JC as W,ZC as X,uw as Y,Tp as Z,Hn as _,fn as a,zy as a$,ef as a0,n9 as a1,p9 as a2,k2 as a3,jc as a4,Nb as a5,Hd as a6,S9 as a7,sn as a8,g9 as a9,CC as aA,kf as aB,d2 as aC,M2 as aD,kC as aE,Xv as aF,VC as aG,A2 as aH,Ks as aI,zC as aJ,A9 as aK,AC as aL,W2 as aM,de as aN,UC as aO,qC as aP,BC as aQ,NC as aR,OC as aS,vC as aT,ny as aU,e9 as aV,Qf as aW,Fb as aX,$b as aY,vi as aZ,j9 as a_,gi as aa,Wf as ab,IC as ac,f9 as ad,qe as ae,P9 as af,ts as ag,w2 as ah,Xo as ai,ke as aj,Wr as ak,h9 as al,Zx as am,Yx as an,TC as ao,yx as ap,Ta as aq,rw as ar,_f as as,Br as at,jC as au,EC as av,SC as aw,Ot as ax,wC as ay,Qr as az,Fe as b,w9 as b0,b9 as b1,y9 as b2,Ir as b3,Rf as b4,eC as b5,C9 as b6,x9 as b7,qv as b8,yC as b9,st as bA,Xw as bB,Ah as bC,Ih as bD,vn as bE,c9 as bF,u9 as bG,_w as bH,Pt as ba,bC as bb,r9 as bc,s9 as bd,m9 as be,pl as bf,o9 as bg,a9 as bh,zs as bi,S2 as bj,Jx as bk,Cx as bl,Eb as bm,zw as bn,MC as bo,RC as bp,l9 as bq,Ke as br,PC as bs,sC as bt,d9 as bu,QC as bv,_n as bw,Kn as bx,ro as by,vh as bz,Et as c,LC as d,Zr as e,Ye as f,_C as g,DC as h,FC as i,He as j,f2 as k,k9 as l,N9 as m,Zd as n,Ls as o,$C as p,i9 as q,E9 as r,GC as s,Ft as t,it as u,nv as v,vt as w,Cm as x,YC as y,sv as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.