vendor: 4,172 bytes, line 1
1(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const d of l)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function i(l){const d={};return l.integrity&&(d.integrity=l.integrity),l.referrerPolicy&&(d.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?d.credentials="include":l.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function n(l){if(l.ep)return;l.ep=!0;const d=i(l);fetch(l.href,d)}})();function fN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fh={exports:{}},io={};var P0;function pN(){if(P0)return io;P0=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(n,l,d){var u=null;if(d!==void 0&&(u=""+d),l.key!==void 0&&(u=""+l.key),"key"in l){d={};for(var m in l)m!=="key"&&(d[m]=l[m])}else d=l;return l=d.ref,{$$typeof:t,type:n,key:u,ref:l!==void 0?l:null,props:d}}return io.Fragment=s,io.jsx=i,io.jsxs=i,io}var B0;function gN(){return B0||(B0=1,Fh.exports=pN()),Fh.exports}var e=gN(),$h={exports:{}},be={};var q0;function bN(){if(q0)return be;q0=1;var t=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function N(D){return D===null||typeof D!="object"?null:(D=j&&D[j]||D["@@iterator"],typeof D=="function"?D:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function T(D,G,se){this.props=D,this.context=G,this.refs=C,this.updater=se||k}T.prototype.isReactComponent={},T.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,G,"setState")},T.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function w(){}w.prototype=T.prototype;function _(D,G,se){this.props=D,this.context=G,this.refs=C,this.updater=se||k}var E=_.prototype=new w;E.constructor=_,S(E,T.prototype),E.isPureReactComponent=!0;var O=Array.isArray;function $(){}var z={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function K(D,G,se){var oe=se.ref;return{$$typeof:t,type:D,key:G,ref:oe!==void 0?oe:null,props:se}}function we(D,G){return K(D.type,G,D.props)}function Y(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function fe(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(se){return G[se]})}var J=/\/+/g;function Me(D,G){return typeof D=="object"&&D!==null&&D.key!=null?fe(""+D.key):G.toString(36)}function Bt(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then($,$):(D.status="pending",D.then(function(G){D.status==="pending"&&(D.status="fulfilled",D.value=G)},function(G){D.status==="pending"&&(D.status="rejected",D.reason=G)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function H(D,G,se,oe,ve){var Ae=typeof D;(Ae==="undefined"||Ae==="boolean")&&(D=null);var Fe=!1;if(D===null)Fe=!0;else switch(Ae){case"bigint":case"string":case"number":Fe=!0;break;case"object":switch(D.$$typeof){case t:case s:Fe=!0;break;case g:return Fe=D._init,H(Fe(D._payload),G,se,oe,ve)}}if(Fe)return ve=ve(D),Fe=oe===""?"."+Me(D,0):oe,O(ve)?(se="",Fe!=null&&(se=Fe.replace(J,"$&/")+"/"),H(ve,G,se,"",function(hn){return hn})):ve!=null&&(Y(ve)&&(ve=we(ve,se+(ve.key==null||D&&D.key===ve.key?"":(""+ve.key).replace(J,"$&/")+"/")+Fe)),G.push(ve)),1;Fe=0;var qt=oe===""?".":oe+":";
vendor: 15,056 bytes, line 1
1if(O(D))for(var lt=0;lt<D.length;lt++)oe=D[lt],Ae=qt+Me(oe,lt),Fe+=H(oe,G,se,Ae,ve);else if(lt=N(D),typeof lt=="function")for(D=lt.call(D),lt=0;!(oe=D.next()).done;)oe=oe.value,Ae=qt+Me(oe,lt++),Fe+=H(oe,G,se,Ae,ve);else if(Ae==="object"){if(typeof D.then=="function")return H(Bt(D),G,se,oe,ve);throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Fe}function te(D,G,se){if(D==null)return D;var oe=[],ve=0;return H(D,oe,"","",function(Ae){return G.call(se,Ae,ve++)}),oe}function xe(D){if(D._status===-1){var G=D._result;G=G(),G.then(function(se){(D._status===0||D._status===-1)&&(D._status=1,D._result=se)},function(se){(D._status===0||D._status===-1)&&(D._status=2,D._result=se)}),D._status===-1&&(D._status=0,D._result=G)}if(D._status===1)return D._result.default;throw D._result}var Ue=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Z={map:te,forEach:function(D,G,se){te(D,function(){G.apply(this,arguments)},se)},count:function(D){var G=0;return te(D,function(){G++}),G},toArray:function(D){return te(D,function(G){return G})||[]},only:function(D){if(!Y(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return be.Activity=v,be.Children=Z,be.Component=T,be.Fragment=i,be.Profiler=l,be.PureComponent=_,be.StrictMode=n,be.Suspense=x,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,be.__COMPILER_RUNTIME={__proto__:null,c:function(D){return z.H.useMemoCache(D)}},be.cache=function(D){return function(){return D.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(D,G,se){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var oe=S({},D.props),ve=D.key;if(G!=null)for(Ae in G.key!==void 0&&(ve=""+G.key),G)!Q.call(G,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&G.ref===void 0||(oe[Ae]=G[Ae]);var Ae=arguments.length-2;if(Ae===1)oe.children=se;else if(1<Ae){for(var Fe=Array(Ae),qt=0;qt<Ae;qt++)Fe[qt]=arguments[qt+2];oe.children=Fe}return K(D.type,ve,oe)},be.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:d,_context:D},D},be.createElement=function(D,G,se){var oe,ve={},Ae=null;if(G!=null)for(oe in G.key!==void 0&&(Ae=""+G.key),G)Q.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ve[oe]=G[oe]);var Fe=arguments.length-2;if(Fe===1)ve.children=se;else if(1<Fe){for(var qt=Array(Fe),lt=0;lt<Fe;lt++)qt[lt]=arguments[lt+2];ve.children=qt}if(D&&D.defaultProps)for(oe in Fe=D.defaultProps,Fe)ve[oe]===void 0&&(ve[oe]=Fe[oe]);return K(D,Ae,ve)},be.createRef=function(){return{current:null}},be.forwardRef=function(D){return{$$typeof:m,render:D}},be.isValidElement=Y,be.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:xe}},be.memo=function(D,G){return{$$typeof:p,type:D,compare:G===void 0?null:G}},be.startTransition=function(D){var G=z.T,se={};z.T=se;try{var oe=D(),ve=z.S;ve!==null&&ve(se,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then($,Ue)}catch(Ae){Ue(Ae)}finally{G!==null&&se.types!==null&&(G.types=se.types),z.T=G}},be.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},be.use=function(D){return z.H.use(D)},be.useActionState=function(D,G,se){return z.H.useActionState(D,G,se)},be.useCallback=function(D,G){return z.H.useCallback(D,G)},be.useContext=function(D){return z.H.useContext(D)},be.useDebugValue=function(){},be.useDeferredValue=function(D,G){return z.H.useDeferredValue(D,G)},be.useEffect=function(D,G){return z.H.useEffect(D,G)},be.useEffectEvent=function(D){return z.H.useEffectEvent(D)},be.useId=function(){return z.H.useId()},be.useImperativeHandle=function(D,G,se){return z.H.useImperativeHandle(D,G,se)},be.useInsertionEffect=function(D,G){return z.H.useInsertionEffect(D,G)},be.useLayoutEffect=function(D,G){return z.H.useLayoutEffect(D,G)},be.useMemo=function(D,G){return z.H.useMemo(D,G)},be.useOptimistic=function(D,G){return z.H.useOptimistic(D,G)},be.useReducer=function(D,G,se){return z.H.useReducer(D,G,se)},be.useRef=function(D){return z.H.useRef(D)},be.useState=function(D){return z.H.useState(D)},be.useSyncExternalStore=function(D,G,se){return z.H.useSyncExternalStore(D,G,se)},be.useTransition=function(){return z.H.useTransition()},be.version="19.2.3",be}var U0;function ex(){return U0||(U0=1,$h.exports=bN()),$h.exports}var b=ex();const Kr=fN(b);var Ih={exports:{}},no={},Hh={exports:{}},Vh={};var F0;function vN(){return F0||(F0=1,(function(t){function s(H,te){var xe=H.length;H.push(te);e:for(;0<xe;){var Ue=xe-1>>>1,Z=H[Ue];if(0<l(Z,te))H[Ue]=te,H[xe]=Z,xe=Ue;else break e}}function i(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var te=H[0],xe=H.pop();if(xe!==te){H[0]=xe;e:for(var Ue=0,Z=H.length,D=Z>>>1;Ue<D;){var G=2*(Ue+1)-1,se=H[G],oe=G+1,ve=H[oe];if(0>l(se,xe))oe<Z&&0>l(ve,se)?(H[Ue]=ve,H[oe]=xe,Ue=oe):(H[Ue]=se,H[G]=xe,Ue=G);else if(oe<Z&&0>l(ve,xe))H[Ue]=ve,H[oe]=xe,Ue=oe;else break e}}return te}function l(H,te){var xe=H.sortIndex-te.sortIndex;return xe!==0?xe:H.id-te.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();t.unstable_now=function(){return u.now()-m}}var x=[],p=[],g=1,v=null,j=3,N=!1,k=!1,S=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var te=i(p);te!==null;){if(te.callback===null)n(p);else if(te.startTime<=H)n(p),te.sortIndex=te.expirationTime,s(x,te);else break;te=i(p)}}function O(H){if(S=!1,E(H),!k)if(i(x)!==null)k=!0,$||($=!0,fe());else{var te=i(p);te!==null&&Bt(O,te.startTime-H)}}var $=!1,z=-1,Q=5,K=-1;function we(){return C?!0:!(t.unstable_now()-K<Q)}function Y(){if(C=!1,$){var H=t.unstable_now();K=H;var te=!0;try{e:{k=!1,S&&(S=!1,w(z),z=-1),N=!0;var xe=j;try{t:{for(E(H),v=i(x);v!==null&&!(v.expirationTime>H&&we());){var Ue=v.callback;if(typeof Ue=="function"){v.callback=null,j=v.priorityLevel;var Z=Ue(v.expirationTime<=H);if(H=t.unstable_now(),typeof Z=="function"){v.callback=Z,E(H),te=!0;break t}v===i(x)&&n(x),E(H)}else n(x);v=i(x)}if(v!==null)te=!0;else{var D=i(p);D!==null&&Bt(O,D.startTime-H),te=!1}}break e}finally{v=null,j=xe,N=!1}te=void 0}}finally{te?fe():$=!1}}}var fe;if(typeof _=="function")fe=function(){_(Y)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,Me=J.port2;J.port1.onmessage=Y,fe=function(){Me.postMessage(null)}}else fe=function(){T(Y,0)};function Bt(H,te){z=T(function(){H(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_next=function(H){switch(j){case 1:case 2:case 3:var te=3;break;default:te=j}var xe=j;j=te;try{return H()}finally{j=xe}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var xe=j;j=H;try{return te()}finally{j=xe}},t.unstable_scheduleCallback=function(H,te,xe){var Ue=t.unstable_now();switch(typeof xe=="object"&&xe!==null?(xe=xe.delay,xe=typeof xe=="number"&&0<xe?Ue+xe:Ue):xe=Ue,H){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=xe+Z,H={id:g++,callback:te,priorityLevel:H,startTime:xe,expirationTime:Z,sortIndex:-1},xe>Ue?(H.sortIndex=xe,s(p,H),i(x)===null&&H===i(p)&&(S?(w(z),z=-1):S=!0,Bt(O,xe-Ue))):(H.sortIndex=Z,s(x,H),k||N||(k=!0,$||($=!0,fe()))),H},t.unstable_shouldYield=we,t.unstable_wrapCallback=function(H){var te=j;return function(){var xe=j;j=te;try{return H.apply(this,arguments)}finally{j=xe}}}})(Vh)),Vh}var $0;function yN(){return $0||($0=1,Hh.exports=vN()),Hh.exports}var Gh={exports:{}},Dt={};var I0;function jN(){if(I0)return Dt;I0=1;var t=ex();function s(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+x+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var n={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function d(x,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:x,containerInfo:p,implementation:g}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Dt.createPortal=function(x,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return d(x,p,null,g)},Dt.flushSync=function(x){var p=u.T,g=n.p;try{if(u.T=null,n.p=2,x)return x()}finally{u.T=p,n.p=g,n.d.f()}},Dt.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,n.d.C(x,p))},Dt.prefetchDNS=function(x){typeof x=="string"&&n.d.D(x)},Dt.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?n.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:j,fetchPriority:N}):g==="script"&&n.d.X(x,{crossOrigin:v,integrity:j,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);n.d.M(x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&n.d.M(x)},Dt.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);n.d.L(x,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dt.preloadModule=function(x,p){if(typeof x=="string")if(p){var g=m(p.as,p.crossOrigin);n.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else n.d.m(x)},Dt.requestFormReset=function(x){n.d.r(x)},Dt.unstable_batchedUpdates=function(x,p){return x(p)},Dt.useFormState=function(x,p,g){return u.H.useFormState(x,p,g)},Dt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Dt.version="19.2.3",Dt}var H0;function NN(){if(H0)return Gh.exports;H0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(s){console.error(s)}}return t(),Gh.exports=jN(),Gh.exports}var V0;function wN(){if(V0)return no;V0=1;var t=yN(),s=ex(),i=NN();function n(a){var r="https://react.dev/errors/"+a;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+a+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function d(a){var r=a,o=a;if(a.alternate)for(;r.return;)r=r.return;else{a=r;do r=a,(r.flags&4098)!==0&&(o=r.return),a=r.return;while(a)}return r.tag===3?o:null}function u(a){if(a.tag===13){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function m(a){if(a.tag===31){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function x(a){if(d(a)!==a)throw Error(n(188))}function p(a){var r=a.alternate;if(!r){if(r=d(a),r===null)throw Error(n(188));return r!==a?null:a}for(var o=a,c=r;;){var h=o.return;if(h===null)break;var f=h.alternate;if(f===null){if(c=h.return,c!==null){o=c;continue}break}if(h.child===f.child){for(f=h.child;f;){if(f===o)return x(h),a;if(f===c)return x(h),r;f=f.sibling}throw Error(n(188))}if(o.return!==c.return)o=h,c=f;else{for(var y=!1,A=h.child;A;){if(A===o){y=!0,o=h,c=f;break}if(A===c){y=!0,c=h,o=f;break}A=A.sibling}if(!y){for(A=f.child;A;){if(A===o){y=!0,o=f,c=h;break}if(A===c){y=!0,c=f,o=h;break}A=A.sibling}if(!y)throw Error(n(189))}}if(o.alternate!==c)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?a:r}function g(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(r=g(a),r!==null)return r;a=a.sibling}return null}var v=Object.assign,j=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),_=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),we=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function fe(a){return a===null||typeof a!="object"?null:(a=Y&&a[Y]||a["@@iterator"],typeof a=="function"?a:null)}var J=Symbol.for("react.client.reference");function Me(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===J?null:a.displayName||a.name||null;
vendor: 11,004 bytes, lines 1-8
1if(typeof a=="string")return a;switch(a){case S:return"Fragment";case T:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case $:return"SuspenseList";case K:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case k:return"Portal";case _:return a.displayName||"Context";case w:return(a._context.displayName||"Context")+".Consumer";case E:var r=a.render;return a=a.displayName,a||(a=r.displayName||r.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case z:return r=a.displayName||null,r!==null?r:Me(a.type)||"Memo";case Q:r=a._payload,a=a._init;try{return Me(a(r))}catch{}}return null}var Bt=Array.isArray,H=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Ue=[],Z=-1;function D(a){return{current:a}}function G(a){0>Z||(a.current=Ue[Z],Ue[Z]=null,Z--)}function se(a,r){Z++,Ue[Z]=a.current,a.current=r}var oe=D(null),ve=D(null),Ae=D(null),Fe=D(null);function qt(a,r){switch(se(Ae,r),se(ve,a),se(oe,null),r.nodeType){case 9:case 11:a=(a=r.documentElement)&&(a=a.namespaceURI)?n0(a):0;break;default:if(a=r.tagName,r=r.namespaceURI)r=n0(r),a=o0(r,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(oe),se(oe,a)}function lt(){G(oe),G(ve),G(Ae)}function hn(a){a.memoizedState!==null&&se(Fe,a);var r=oe.current,o=o0(r,a.type);r!==o&&(se(ve,a),se(oe,o))}function Yo(a){ve.current===a&&(G(oe),G(ve)),Fe.current===a&&(G(Fe),to._currentValue=xe)}var wd,Dx;function vr(a){if(wd===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);wd=r&&r[1]||"",Dx=-1<o.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+wd+a+Dx}var _d=!1;function Sd(a,r){if(!a||_d)return"";_d=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(r){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(F){var U=F}Reflect.construct(a,[],W)}else{try{W.call()}catch(F){U=F}a.call(W.prototype)}}else{try{throw Error()}catch(F){U=F}(W=a())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(F){if(F&&U&&typeof F.stack=="string")return[F.stack,U.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=c.DetermineComponentFrameRoot(),y=f[0],A=f[1];if(y&&A){var R=y.split(` 4`),q=A.split(` 5`);for(h=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;if(c===R.length||h===q.length)for(c=R.length-1,h=q.length-1;1<=c&&0<=h&&R[c]!==q[h];)h--;for(;1<=c&&0<=h;c--,h--)if(R[c]!==q[h]){if(c!==1||h!==1)do if(c--,h--,0>h||R[c]!==q[h]){var I=` 6`+R[c].replace(" at new "," at ");return a.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",a.displayName)),I}while(1<=c&&0<=h);break}}}finally{_d=!1,Error.prepareStackTrace=o}return(o=a?a.displayName||a.name:"")?vr(o):""}function Gy(a,r){switch(a.tag){case 26:case 27:case 5:return vr(a.type);case 16:return vr("Lazy");case 13:return a.child!==r&&r!==null?vr("Suspense Fallback"):vr("Suspense");case 19:return vr("SuspenseList");case 0:case 15:return Sd(a.type,!1);case 11:return Sd(a.type.render,!1);case 1:return Sd(a.type,!0);case 31:return vr("Activity");default:return""}}function Mx(a){try{var r="",o=null;do r+=Gy(a,o),o=a,a=a.return;while(a);return r}catch(c){return` 7Error generating stack: `+c.message+` 8`+c.stack}}var kd=Object.prototype.hasOwnProperty,Cd=t.unstable_scheduleCallback,Ed=t.unstable_cancelCallback,Wy=t.unstable_shouldYield,Ky=t.unstable_requestPaint,Xt=t.unstable_now,Jy=t.unstable_getCurrentPriorityLevel,Px=t.unstable_ImmediatePriority,Bx=t.unstable_UserBlockingPriority,Qo=t.unstable_NormalPriority,Yy=t.unstable_LowPriority,qx=t.unstable_IdlePriority,Qy=t.log,Xy=t.unstable_setDisableYieldValue,mn=null,Zt=null;function Ms(a){if(typeof Qy=="function"&&Xy(a),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(mn,a)}catch{}}var ea=Math.clz32?Math.clz32:t1,Zy=Math.log,e1=Math.LN2;function t1(a){return a>>>=0,a===0?32:31-(Zy(a)/e1|0)|0}var Xo=256,Zo=262144,el=4194304;function yr(a){var r=a&42;if(r!==0)return r;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tl(a,r,o){var c=a.pendingLanes;if(c===0)return 0;var h=0,f=a.suspendedLanes,y=a.pingedLanes;a=a.warmLanes;var A=c&134217727;return A!==0?(c=A&~f,c!==0?h=yr(c):(y&=A,y!==0?h=yr(y):o||(o=A&~a,o!==0&&(h=yr(o))))):(A=c&~f,A!==0?h=yr(A):y!==0?h=yr(y):o||(o=c&~a,o!==0&&(h=yr(o)))),h===0?0:r!==0&&r!==h&&(r&f)===0&&(f=h&-h,o=r&-r,f>=o||f===32&&(o&4194048)!==0)?r:h}function xn(a,r){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&r)===0}function a1(a,r){switch(a){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ux(){var a=el;return el<<=1,(el&62914560)===0&&(el=4194304),a}function Ad(a){for(var r=[],o=0;31>o;o++)r.push(a);return r}function fn(a,r){a.pendingLanes|=r,r!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function s1(a,r,o,c,h,f){var y=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var A=a.entanglements,R=a.expirationTimes,q=a.hiddenUpdates;for(o=y&~o;0<o;){var I=31-ea(o),W=1<<I;A[I]=0,R[I]=-1;var U=q[I];if(U!==null)for(q[I]=null,I=0;I<U.length;I++){var F=U[I];F!==null&&(F.lane&=-536870913)}o&=~W}c!==0&&Fx(a,c,0),f!==0&&h===0&&a.tag!==0&&(a.suspendedLanes|=f&~(y&~r))}function Fx(a,r,o){a.pendingLanes|=r,a.suspendedLanes&=~r;var c=31-ea(r);a.entangledLanes|=r,a.entanglements[c]=a.entanglements[c]|1073741824|o&261930}function $x(a,r){var o=a.entangledLanes|=r;for(a=a.entanglements;o;){var c=31-ea(o),h=1<<c;h&r|a[c]&r&&(a[c]|=r),o&=~h}}function Ix(a,r){var o=r&-r;return o=(o&42)!==0?1:Td(o),(o&(a.suspendedLanes|r))!==0?0:o}function Td(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Ld(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Hx(){var a=te.p;return a!==0?a:(a=window.event,a===void 0?32:T0(a.type))}function Vx(a,r){var o=te.p;try{return te.p=a,r()}finally{te.p=o}}var Ps=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Ps,Ft="__reactProps$"+Ps,si="__reactContainer$"+Ps,Od="__reactEvents$"+Ps,r1="__reactListeners$"+Ps,i1="__reactHandles$"+Ps,Gx="__reactResources$"+Ps,pn="__reactMarker$"+Ps;function Rd(a){delete a[Ct],delete a[Ft],delete a[Od],delete a[r1],delete a[i1]}function ri(a){var r=a[Ct];if(r)return r;for(var o=a.parentNode;o;){if(r=o[si]||o[Ct]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(a=x0(a);a!==null;){if(o=a[Ct])return o;a=x0(a)}return r}a=o,o=a.parentNode}return null}function ii(a){if(a=a[Ct]||a[si]){var r=a.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return a}return null}function gn(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a.stateNode;throw Error(n(33))}function ni(a){var r=a[Gx];return r||(r=a[Gx]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function _t(a){a[pn]=!0}var Wx=new Set,Kx={};function jr(a,r){oi(a,r),oi(a+"Capture",r)}function oi(a,r){for(Kx[a]=r,a=0;a<r.length;a++)Wx.add(r[a])}var n1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Jx={},Yx={};function o1(a){return kd.call(Yx,a)?!0:kd.call(Jx,a)?!1:n1.test(a)?Yx[a]=!0:(Jx[a]=!0,!1)}function al(a,r,o){if(o1(r))if(o===null)a.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":a.removeAttribute(r);return;case"boolean":var c=r.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(r);return}}a.setAttribute(r,""+o)}}function sl(a,r,o){if(o===null)a.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(r);return}a.setAttribute(r,""+o)}}function ns(a,r,o,c){if(c===null)a.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttributeNS(r,o,""+c)}}function ma(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Qx(a){var r=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function l1(a,r,o){var c=Object.getOwnPropertyDescriptor(a.constructor.prototype,r);if(!a.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,f=c.set;return Object.defineProperty(a,r,{configurable:!0,get:function(){return h.call(this)},set:function(y){o=""+y,f.call(this,y)}}),Object.defineProperty(a,r,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){a._valueTracker=null,delete a[r]}}}}function zd(a){if(!a._valueTracker){var r=Qx(a)?"checked":"value";a._valueTracker=l1(a,r,""+a[r])}}function Xx(a){if(!a)return!1;var r=a._valueTracker;if(!r)return!0;var o=r.getValue(),c="";return a&&(c=Qx(a)?a.checked?"true":"false":a.value),a=c,a!==o?(r.setValue(a),!0):!1}function rl(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}
vendor: 4,523 bytes, line 8
8catch{return a.body}}var c1=/[\n"\\]/g;function xa(a){return a.replace(c1,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Dd(a,r,o,c,h,f,y,A){a.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?a.type=y:a.removeAttribute("type"),r!=null?y==="number"?(r===0&&a.value===""||a.value!=r)&&(a.value=""+ma(r)):a.value!==""+ma(r)&&(a.value=""+ma(r)):y!=="submit"&&y!=="reset"||a.removeAttribute("value"),r!=null?Md(a,y,ma(r)):o!=null?Md(a,y,ma(o)):c!=null&&a.removeAttribute("value"),h==null&&f!=null&&(a.defaultChecked=!!f),h!=null&&(a.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?a.name=""+ma(A):a.removeAttribute("name")}function Zx(a,r,o,c,h,f,y,A){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(a.type=f),r!=null||o!=null){if(!(f!=="submit"&&f!=="reset"||r!=null)){zd(a);return}o=o!=null?""+ma(o):"",r=r!=null?""+ma(r):o,A||r===a.value||(a.value=r),a.defaultValue=r}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=A?a.checked:!!c,a.defaultChecked=!!c,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(a.name=y),zd(a)}function Md(a,r,o){r==="number"&&rl(a.ownerDocument)===a||a.defaultValue===""+o||(a.defaultValue=""+o)}function li(a,r,o,c){if(a=a.options,r){r={};for(var h=0;h<o.length;h++)r["$"+o[h]]=!0;for(o=0;o<a.length;o++)h=r.hasOwnProperty("$"+a[o].value),a[o].selected!==h&&(a[o].selected=h),h&&c&&(a[o].defaultSelected=!0)}else{for(o=""+ma(o),r=null,h=0;h<a.length;h++){if(a[h].value===o){a[h].selected=!0,c&&(a[h].defaultSelected=!0);return}r!==null||a[h].disabled||(r=a[h])}r!==null&&(r.selected=!0)}}function ef(a,r,o){if(r!=null&&(r=""+ma(r),r!==a.value&&(a.value=r),o==null)){a.defaultValue!==r&&(a.defaultValue=r);return}a.defaultValue=o!=null?""+ma(o):""}function tf(a,r,o,c){if(r==null){if(c!=null){if(o!=null)throw Error(n(92));if(Bt(c)){if(1<c.length)throw Error(n(93));c=c[0]}o=c}o==null&&(o=""),r=o}o=ma(r),a.defaultValue=o,c=a.textContent,c===o&&c!==""&&c!==null&&(a.value=c),zd(a)}function ci(a,r){if(r){var o=a.firstChild;if(o&&o===a.lastChild&&o.nodeType===3){o.nodeValue=r;return}}a.textContent=r}var d1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function af(a,r,o){var c=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?a.setProperty(r,""):r==="float"?a.cssFloat="":a[r]="":c?a.setProperty(r,o):typeof o!="number"||o===0||d1.has(r)?r==="float"?a.cssFloat=o:a[r]=(""+o).trim():a[r]=o+"px"}function sf(a,r,o){if(r!=null&&typeof r!="object")throw Error(n(62));if(a=a.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||r!=null&&r.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var h in r)c=r[h],r.hasOwnProperty(h)&&o[h]!==c&&af(a,h,c)}else for(var f in r)r.hasOwnProperty(f)&&af(a,f,r[f])}function Pd(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var u1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),h1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function il(a){return h1.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function os(){}var Bd=null;function qd(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var di=null,ui=null;function rf(a){var r=ii(a);if(r&&(a=r.stateNode)){var o=a[Ft]||null;e:switch(a=r.stateNode,r.type){case"input":if(Dd(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=a;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+xa(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var c=o[r];if(c!==a&&c.form===a.form){var h=c[Ft]||null;if(!h)throw Error(n(90));Dd(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<o.length;r++)c=o[r],c.form===a.form&&Xx(c)}break e;case"textarea":ef(a,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&li(a,!!o.multiple,r,!1)}}}var Ud=!1;function nf(a,r,o){if(Ud)return a(r,o);Ud=!0;try{var c=a(r);return c}finally{if(Ud=!1,(di!==null||ui!==null)&&(Gl(),di&&(r=di,a=ui,ui=di=null,rf(r),a)))for(r=0;r<a.length;r++)rf(a[r])}}function bn(a,r){var o=a.stateNode;if(o===null)return null;var c=o[Ft]||null;if(c===null)return null;o=c[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(o&&typeof o!="function")throw Error(n(231,r,typeof o));return o}var ls=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fd=!1;if(ls)try{var vn={};Object.defineProperty(vn,"passive",{get:function(){Fd=!0}}),window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{Fd=!1}var Bs=null,$d=null,nl=null;function of(){if(nl)return nl;var a,r=$d,o=r.length,c,h="value"in Bs?Bs.value:Bs.textContent,f=h.length;for(a=0;a<o&&r[a]===h[a];a++);var y=o-a;for(c=1;c<=y&&r[o-c]===h[f-c];c++);return nl=h.slice(a,1<c?1-c:void 0)}function ol(a){var r=a.keyCode;
vendor: 2,821 bytes, line 8
8return"charCode"in a?(a=a.charCode,a===0&&r===13&&(a=13)):a=r,a===10&&(a=13),32<=a||a===13?a:0}function ll(){return!0}function lf(){return!1}function $t(a){function r(o,c,h,f,y){this._reactName=o,this._targetInst=h,this.type=c,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var A in a)a.hasOwnProperty(A)&&(o=a[A],this[A]=o?o(f):f[A]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ll:lf,this.isPropagationStopped=lf,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ll)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ll)},persist:function(){},isPersistent:ll}),r}var Nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cl=$t(Nr),yn=v({},Nr,{view:0,detail:0}),m1=$t(yn),Id,Hd,jn,dl=v({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==jn&&(jn&&a.type==="mousemove"?(Id=a.screenX-jn.screenX,Hd=a.screenY-jn.screenY):Hd=Id=0,jn=a),Id)},movementY:function(a){return"movementY"in a?a.movementY:Hd}}),cf=$t(dl),x1=v({},dl,{dataTransfer:0}),f1=$t(x1),p1=v({},yn,{relatedTarget:0}),Vd=$t(p1),g1=v({},Nr,{animationName:0,elapsedTime:0,pseudoElement:0}),b1=$t(g1),v1=v({},Nr,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),y1=$t(v1),j1=v({},Nr,{data:0}),df=$t(j1),N1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S1(a){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(a):(a=_1[a])?!!r[a]:!1}function Gd(){return S1}var k1=v({},yn,{key:function(a){if(a.key){var r=N1[a.key]||a.key;if(r!=="Unidentified")return r}
vendor: 4,492 bytes, line 8
8return a.type==="keypress"?(a=ol(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?w1[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gd,charCode:function(a){return a.type==="keypress"?ol(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?ol(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),C1=$t(k1),E1=v({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=$t(E1),A1=v({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gd}),T1=$t(A1),L1=v({},Nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),O1=$t(L1),R1=v({},dl,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=$t(R1),D1=v({},Nr,{newState:0,oldState:0}),M1=$t(D1),P1=[9,13,27,32],Wd=ls&&"CompositionEvent"in window,Nn=null;ls&&"documentMode"in document&&(Nn=document.documentMode);var B1=ls&&"TextEvent"in window&&!Nn,hf=ls&&(!Wd||Nn&&8<Nn&&11>=Nn),mf=" ",xf=!1;function ff(a,r){switch(a){case"keyup":return P1.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var hi=!1;function q1(a,r){switch(a){case"compositionend":return pf(r);case"keypress":return r.which!==32?null:(xf=!0,mf);case"textInput":return a=r.data,a===mf&&xf?null:a;default:return null}}function U1(a,r){if(hi)return a==="compositionend"||!Wd&&ff(a,r)?(a=of(),nl=$d=Bs=null,hi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return hf&&r.locale!=="ko"?null:r.data;default:return null}}var F1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gf(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r==="input"?!!F1[a.type]:r==="textarea"}function bf(a,r,o,c){di?ui?ui.push(c):ui=[c]:di=c,r=Zl(r,"onChange"),0<r.length&&(o=new cl("onChange","change",null,o,c),a.push({event:o,listeners:r}))}var wn=null,_n=null;function $1(a){e0(a,0)}function ul(a){var r=gn(a);if(Xx(r))return a}function vf(a,r){if(a==="change")return r}var yf=!1;if(ls){var Kd;if(ls){var Jd="oninput"in document;if(!Jd){var jf=document.createElement("div");jf.setAttribute("oninput","return;"),Jd=typeof jf.oninput=="function"}Kd=Jd}else Kd=!1;yf=Kd&&(!document.documentMode||9<document.documentMode)}function Nf(){wn&&(wn.detachEvent("onpropertychange",wf),_n=wn=null)}function wf(a){if(a.propertyName==="value"&&ul(_n)){var r=[];bf(r,_n,a,qd(a)),nf($1,r)}}function I1(a,r,o){a==="focusin"?(Nf(),wn=r,_n=o,wn.attachEvent("onpropertychange",wf)):a==="focusout"&&Nf()}function H1(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ul(_n)}function V1(a,r){if(a==="click")return ul(r)}function G1(a,r){if(a==="input"||a==="change")return ul(r)}function W1(a,r){return a===r&&(a!==0||1/a===1/r)||a!==a&&r!==r}var ta=typeof Object.is=="function"?Object.is:W1;function Sn(a,r){if(ta(a,r))return!0;if(typeof a!="object"||a===null||typeof r!="object"||r===null)return!1;var o=Object.keys(a),c=Object.keys(r);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var h=o[c];if(!kd.call(r,h)||!ta(a[h],r[h]))return!1}return!0}function _f(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Sf(a,r){var o=_f(a);a=0;for(var c;o;){if(o.nodeType===3){if(c=a+o.textContent.length,a<=r&&c>=r)return{node:o,offset:r-a};a=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=_f(o)}}function kf(a,r){return a&&r?a===r?!0:a&&a.nodeType===3?!1:r&&r.nodeType===3?kf(a,r.parentNode):"contains"in a?a.contains(r):a.compareDocumentPosition?!!(a.compareDocumentPosition(r)&16):!1:!1}function Cf(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var r=rl(a.document);r instanceof a.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}
vendor: 19,697 bytes, line 8
8if(o)a=r.contentWindow;else break;r=rl(a.document)}return r}function Yd(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r&&(r==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||r==="textarea"||a.contentEditable==="true")}var K1=ls&&"documentMode"in document&&11>=document.documentMode,mi=null,Qd=null,kn=null,Xd=!1;function Ef(a,r,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Xd||mi==null||mi!==rl(c)||(c=mi,"selectionStart"in c&&Yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),kn&&Sn(kn,c)||(kn=c,c=Zl(Qd,"onSelect"),0<c.length&&(r=new cl("onSelect","select",null,r,o),a.push({event:r,listeners:c}),r.target=mi)))}function wr(a,r){var o={};return o[a.toLowerCase()]=r.toLowerCase(),o["Webkit"+a]="webkit"+r,o["Moz"+a]="moz"+r,o}var xi={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},Zd={},Af={};ls&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function _r(a){if(Zd[a])return Zd[a];if(!xi[a])return a;var r=xi[a],o;for(o in r)if(r.hasOwnProperty(o)&&o in Af)return Zd[a]=r[o];return a}var Tf=_r("animationend"),Lf=_r("animationiteration"),Of=_r("animationstart"),J1=_r("transitionrun"),Y1=_r("transitionstart"),Q1=_r("transitioncancel"),Rf=_r("transitionend"),zf=new Map,eu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");eu.push("scrollEnd");function Ta(a,r){zf.set(a,r),jr(r,[a])}var hl=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},fa=[],fi=0,tu=0;function ml(){for(var a=fi,r=tu=fi=0;r<a;){var o=fa[r];fa[r++]=null;var c=fa[r];fa[r++]=null;var h=fa[r];fa[r++]=null;var f=fa[r];if(fa[r++]=null,c!==null&&h!==null){var y=c.pending;y===null?h.next=h:(h.next=y.next,y.next=h),c.pending=h}f!==0&&Df(o,h,f)}}function xl(a,r,o,c){fa[fi++]=a,fa[fi++]=r,fa[fi++]=o,fa[fi++]=c,tu|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function au(a,r,o,c){return xl(a,r,o,c),fl(a)}function Sr(a,r){return xl(a,null,null,r),fl(a)}function Df(a,r,o){a.lanes|=o;var c=a.alternate;c!==null&&(c.lanes|=o);for(var h=!1,f=a.return;f!==null;)f.childLanes|=o,c=f.alternate,c!==null&&(c.childLanes|=o),f.tag===22&&(a=f.stateNode,a===null||a._visibility&1||(h=!0)),a=f,f=f.return;return a.tag===3?(f=a.stateNode,h&&r!==null&&(h=31-ea(o),a=f.hiddenUpdates,c=a[h],c===null?a[h]=[r]:c.push(r),r.lane=o|536870912),f):null}function fl(a){if(50<Kn)throw Kn=0,uh=null,Error(n(185));for(var r=a.return;r!==null;)a=r,r=a.return;return a.tag===3?a.stateNode:null}var pi={};function X1(a,r,o,c){this.tag=a,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(a,r,o,c){return new X1(a,r,o,c)}function su(a){return a=a.prototype,!(!a||!a.isReactComponent)}function cs(a,r){var o=a.alternate;return o===null?(o=aa(a.tag,r,a.key,a.mode),o.elementType=a.elementType,o.type=a.type,o.stateNode=a.stateNode,o.alternate=a,a.alternate=o):(o.pendingProps=r,o.type=a.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=a.flags&65011712,o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,r=a.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=a.sibling,o.index=a.index,o.ref=a.ref,o.refCleanup=a.refCleanup,o}function Mf(a,r){a.flags&=65011714;var o=a.alternate;return o===null?(a.childLanes=0,a.lanes=r,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,r=o.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a}function pl(a,r,o,c,h,f){var y=0;if(c=a,typeof a=="function")su(a)&&(y=1);else if(typeof a=="string")y=sN(a,o,oe.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case K:return a=aa(31,o,r,h),a.elementType=K,a.lanes=f,a;case S:return kr(o.children,h,f,r);case C:y=8,h|=24;break;case T:return a=aa(12,o,r,h|2),a.elementType=T,a.lanes=f,a;case O:return a=aa(13,o,r,h),a.elementType=O,a.lanes=f,a;case $:return a=aa(19,o,r,h),a.elementType=$,a.lanes=f,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case _:y=10;break e;case w:y=9;break e;case E:y=11;break e;case z:y=14;break e;case Q:y=16,c=null;break e}y=29,o=Error(n(130,a===null?"null":typeof a,"")),c=null}return r=aa(y,o,r,h),r.elementType=a,r.type=c,r.lanes=f,r}function kr(a,r,o,c){return a=aa(7,a,c,r),a.lanes=o,a}function ru(a,r,o){return a=aa(6,a,null,r),a.lanes=o,a}function Pf(a){var r=aa(18,null,null,0);return r.stateNode=a,r}function iu(a,r,o){return r=aa(4,a.children!==null?a.children:[],a.key,r),r.lanes=o,r.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},r}var Bf=new WeakMap;function pa(a,r){if(typeof a=="object"&&a!==null){var o=Bf.get(a);return o!==void 0?o:(r={value:a,source:r,stack:Mx(r)},Bf.set(a,r),r)}return{value:a,source:r,stack:Mx(r)}}var gi=[],bi=0,gl=null,Cn=0,ga=[],ba=0,qs=null,Ha=1,Va="";function ds(a,r){gi[bi++]=Cn,gi[bi++]=gl,gl=a,Cn=r}function qf(a,r,o){ga[ba++]=Ha,ga[ba++]=Va,ga[ba++]=qs,qs=a;var c=Ha;a=Va;var h=32-ea(c)-1;c&=~(1<<h),o+=1;var f=32-ea(r)+h;if(30<f){var y=h-h%5;f=(c&(1<<y)-1).toString(32),c>>=y,h-=y,Ha=1<<32-ea(r)+h|o<<h|c,Va=f+a}else Ha=1<<f|o<<h|c,Va=a}function nu(a){a.return!==null&&(ds(a,1),qf(a,1,0))}function ou(a){for(;a===gl;)gl=gi[--bi],gi[bi]=null,Cn=gi[--bi],gi[bi]=null;for(;a===qs;)qs=ga[--ba],ga[ba]=null,Va=ga[--ba],ga[ba]=null,Ha=ga[--ba],ga[ba]=null}function Uf(a,r){ga[ba++]=Ha,ga[ba++]=Va,ga[ba++]=qs,Ha=r.id,Va=r.overflow,qs=a}var Et=null,Qe=null,ze=!1,Us=null,va=!1,lu=Error(n(519));function Fs(a){var r=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw En(pa(r,a)),lu}function Ff(a){var r=a.stateNode,o=a.type,c=a.memoizedProps;switch(r[Ct]=a,r[Ft]=c,o){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(o=0;o<Yn.length;o++)Le(Yn[o],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),Zx(r,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),tf(r,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||c.suppressHydrationWarning===!0||r0(r.textContent,o)?(c.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),c.onScroll!=null&&Le("scroll",r),c.onScrollEnd!=null&&Le("scrollend",r),c.onClick!=null&&(r.onclick=os),r=!0):r=!1,r||Fs(a,!0)}function $f(a){for(Et=a.return;Et;)switch(Et.tag){case 5:case 31:case 13:va=!1;return;case 27:case 3:va=!0;return;default:Et=Et.return}}function vi(a){if(a!==Et)return!1;if(!ze)return $f(a),ze=!0,!1;var r=a.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=a.type,o=!(o!=="form"&&o!=="button")||kh(a.type,a.memoizedProps)),o=!o),o&&Qe&&Fs(a),$f(a),r===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));Qe=m0(a)}else if(r===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));Qe=m0(a)}else r===27?(r=Qe,tr(a.type)?(a=Lh,Lh=null,Qe=a):Qe=r):Qe=Et?ja(a.stateNode.nextSibling):null;return!0}function Cr(){Qe=Et=null,ze=!1}function cu(){var a=Us;return a!==null&&(Gt===null?Gt=a:Gt.push.apply(Gt,a),Us=null),a}function En(a){Us===null?Us=[a]:Us.push(a)}var du=D(null),Er=null,us=null;function $s(a,r,o){se(du,r._currentValue),r._currentValue=o}function hs(a){a._currentValue=du.current,G(du)}function uu(a,r,o){for(;a!==null;){var c=a.alternate;if((a.childLanes&r)!==r?(a.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),a===o)break;a=a.return}}function hu(a,r,o,c){var h=a.child;for(h!==null&&(h.return=a);h!==null;){var f=h.dependencies;if(f!==null){var y=h.child;f=f.firstContext;e:for(;f!==null;){var A=f;f=h;for(var R=0;R<r.length;R++)if(A.context===r[R]){f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),uu(f.return,o,a),c||(y=null);break e}f=A.next}}else if(h.tag===18){if(y=h.return,y===null)throw Error(n(341));y.lanes|=o,f=y.alternate,f!==null&&(f.lanes|=o),uu(y,o,a),y=null}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===a){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}}function yi(a,r,o,c){a=null;for(var h=r,f=!1;h!==null;){if(!f){if((h.flags&524288)!==0)f=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var y=h.alternate;if(y===null)throw Error(n(387));if(y=y.memoizedProps,y!==null){var A=h.type;ta(h.pendingProps.value,y.value)||(a!==null?a.push(A):a=[A])}}else if(h===Fe.current){if(y=h.alternate,y===null)throw Error(n(387));y.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(a!==null?a.push(to):a=[to])}h=h.return}a!==null&&hu(r,a,o,c),r.flags|=262144}function bl(a){for(a=a.firstContext;a!==null;){if(!ta(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ar(a){Er=a,us=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function At(a){return If(Er,a)}function vl(a,r){return Er===null&&Ar(a),If(a,r)}function If(a,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},us===null){if(a===null)throw Error(n(308));us=r,a.dependencies={lanes:0,firstContext:r},a.flags|=524288}else us=us.next=r;return o}var Z1=typeof AbortController<"u"?AbortController:function(){var a=[],r=this.signal={aborted:!1,addEventListener:function(o,c){a.push(c)}};this.abort=function(){r.aborted=!0,a.forEach(function(o){return o()})}},ej=t.unstable_scheduleCallback,tj=t.unstable_NormalPriority,ft={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new Z1,data:new Map,refCount:0}}function An(a){a.refCount--,a.refCount===0&&ej(tj,function(){a.controller.abort()})}var Tn=null,xu=0,ji=0,Ni=null;function aj(a,r){if(Tn===null){var o=Tn=[];xu=0,ji=gh(),Ni={status:"pending",value:void 0,then:function(c){o.push(c)}}}return xu++,r.then(Hf,Hf),r}function Hf(){if(--xu===0&&Tn!==null){Ni!==null&&(Ni.status="fulfilled");var a=Tn;Tn=null,ji=0,Ni=null;for(var r=0;r<a.length;r++)(0,a[r])()}}function sj(a,r){var o=[],c={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return a.then(function(){c.status="fulfilled",c.value=r;for(var h=0;h<o.length;h++)(0,o[h])(r)},function(h){for(c.status="rejected",c.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),c}var Vf=H.S;H.S=function(a,r){Eg=Xt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&aj(a,r),Vf!==null&&Vf(a,r)};var Tr=D(null);function fu(){var a=Tr.current;return a!==null?a:Je.pooledCache}function yl(a,r){r===null?se(Tr,Tr.current):se(Tr,r.pool)}function Gf(){var a=fu();return a===null?null:{parent:ft._currentValue,pool:a}}var wi=Error(n(460)),pu=Error(n(474)),jl=Error(n(542)),Nl={then:function(){}};function Wf(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Kf(a,r,o){switch(o=a[o],o===void 0?a.push(r):o!==r&&(r.then(os,os),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,Yf(a),a;default:if(typeof r.status=="string")r.then(os,os);else{if(a=Je,a!==null&&100<a.shellSuspendCounter)throw Error(n(482));a=r,a.status="pending",a.then(function(c){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=c}},function(c){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,Yf(a),a}throw Or=r,wi}}function Lr(a){try{var r=a._init;return r(a._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Or=o,wi):o}}var Or=null;function Jf(){if(Or===null)throw Error(n(459));var a=Or;return Or=null,a}function Yf(a){if(a===wi||a===jl)throw Error(n(483))}var _i=null,Ln=0;function wl(a){var r=Ln;return Ln+=1,_i===null&&(_i=[]),Kf(_i,a,r)}function On(a,r){r=r.props.ref,a.ref=r!==void 0?r:null}function _l(a,r){throw r.$$typeof===j?Error(n(525)):(a=Object.prototype.toString.call(r),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":a)))}function Qf(a){function r(P,M){if(a){var B=P.deletions;B===null?(P.deletions=[M],P.flags|=16):B.push(M)}}function o(P,M){if(!a)return null;for(;M!==null;)r(P,M),M=M.sibling;return null}function c(P){for(var M=new Map;P!==null;)P.key!==null?M.set(P.key,P):M.set(P.index,P),P=P.sibling;return M}function h(P,M){return P=cs(P,M),P.index=0,P.sibling=null,P}function f(P,M,B){return P.index=B,a?(B=P.alternate,B!==null?(B=B.index,B<M?(P.flags|=67108866,M):B):(P.flags|=67108866,M)):(P.flags|=1048576,M)}function y(P){return a&&P.alternate===null&&(P.flags|=67108866),P}function A(P,M,B,V){return M===null||M.tag!==6?(M=ru(B,P.mode,V),M.return=P,M):(M=h(M,B),M.return=P,M)}function R(P,M,B,V){var de=B.type;return de===S?I(P,M,B.props.children,V,B.key):M!==null&&(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===Q&&Lr(de)===M.type)?(M=h(M,B.props),On(M,B),M.return=P,M):(M=pl(B.type,B.key,B.props,null,P.mode,V),On(M,B),M.return=P,M)}function q(P,M,B,V){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=iu(B,P.mode,V),M.return=P,M):(M=h(M,B.children||[]),M.return=P,M)}function I(P,M,B,V,de){return M===null||M.tag!==7?(M=kr(B,P.mode,V,de),M.return=P,M):(M=h(M,B),M.return=P,M)}function W(P,M,B){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=ru(""+M,P.mode,B),M.return=P,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return B=pl(M.type,M.key,M.props,null,P.mode,B),On(B,M),B.return=P,B;case k:return M=iu(M,P.mode,B),M.return=P,M;case Q:return M=Lr(M),W(P,M,B)}if(Bt(M)||fe(M))return M=kr(M,P.mode,B,null),M.return=P,M;if(typeof M.then=="function")return W(P,wl(M),B);if(M.$$typeof===_)return W(P,vl(P,M),B);_l(P,M)}return null}function U(P,M,B,V){var de=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return de!==null?null:A(P,M,""+B,V);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case N:return B.key===de?R(P,M,B,V):null;case k:return B.key===de?q(P,M,B,V):null;case Q:return B=Lr(B),U(P,M,B,V)}if(Bt(B)||fe(B))return de!==null?null:I(P,M,B,V,null);if(typeof B.then=="function")return U(P,M,wl(B),V);if(B.$$typeof===_)return U(P,M,vl(P,B),V);_l(P,B)}return null}function F(P,M,B,V,de){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return P=P.get(B)||null,A(M,P,""+V,de);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return P=P.get(V.key===null?B:V.key)||null,R(M,P,V,de);case k:return P=P.get(V.key===null?B:V.key)||null,q(M,P,V,de);case Q:return V=Lr(V),F(P,M,B,V,de)}if(Bt(V)||fe(V))return P=P.get(B)||null,I(M,P,V,de,null);if(typeof V.then=="function")return F(P,M,B,wl(V),de);if(V.$$typeof===_)return F(P,M,B,vl(M,V),de);_l(M,V)}return null}function ne(P,M,B,V){for(var de=null,Pe=null,ce=M,_e=M=0,Re=null;ce!==null&&_e<B.length;_e++){ce.index>_e?(Re=ce,ce=null):Re=ce.sibling;var Be=U(P,ce,B[_e],V);if(Be===null){ce===null&&(ce=Re);break}a&&ce&&Be.alternate===null&&r(P,ce),M=f(Be,M,_e),Pe===null?de=Be:Pe.sibling=Be,Pe=Be,ce=Re}if(_e===B.length)return o(P,ce),ze&&ds(P,_e),de;if(ce===null){for(;_e<B.length;_e++)ce=W(P,B[_e],V),ce!==null&&(M=f(ce,M,_e),Pe===null?de=ce:Pe.sibling=ce,Pe=ce);return ze&&ds(P,_e),de}for(ce=c(ce);_e<B.length;_e++)Re=F(ce,P,_e,B[_e],V),Re!==null&&(a&&Re.alternate!==null&&ce.delete(Re.key===null?_e:Re.key),M=f(Re,M,_e),Pe===null?de=Re:Pe.sibling=Re,Pe=Re);return a&&ce.forEach(function(nr){return r(P,nr)}),ze&&ds(P,_e),de}function me(P,M,B,V){if(B==null)throw Error(n(151));for(var de=null,Pe=null,ce=M,_e=M=0,Re=null,Be=B.next();ce!==null&&!Be.done;_e++,Be=B.next()){ce.index>_e?(Re=ce,ce=null):Re=ce.sibling;var nr=U(P,ce,Be.value,V);if(nr===null){ce===null&&(ce=Re);break}a&&ce&&nr.alternate===null&&r(P,ce),M=f(nr,M,_e),Pe===null?de=nr:Pe.sibling=nr,Pe=nr,ce=Re}if(Be.done)return o(P,ce),ze&&ds(P,_e),de;if(ce===null){for(;!Be.done;_e++,Be=B.next())Be=W(P,Be.value,V),Be!==null&&(M=f(Be,M,_e),Pe===null?de=Be:Pe.sibling=Be,Pe=Be);return ze&&ds(P,_e),de}for(ce=c(ce);!Be.done;_e++,Be=B.next())Be=F(ce,P,_e,Be.value,V),Be!==null&&(a&&Be.alternate!==null&&ce.delete(Be.key===null?_e:Be.key),M=f(Be,M,_e),Pe===null?de=Be:Pe.sibling=Be,Pe=Be);return a&&ce.forEach(function(xN){return r(P,xN)}),ze&&ds(P,_e),de}function Ge(P,M,B,V){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case N:e:{for(var de=B.key;M!==null;){if(M.key===de){if(de=B.type,de===S){if(M.tag===7){o(P,M.sibling),V=h(M,B.props.children),V.return=P,P=V;break e}}else if(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===Q&&Lr(de)===M.type){o(P,M.sibling),V=h(M,B.props),On(V,B),V.return=P,P=V;break e}o(P,M);break}else r(P,M);M=M.sibling}B.type===S?(V=kr(B.props.children,P.mode,V,B.key),V.return=P,P=V):(V=pl(B.type,B.key,B.props,null,P.mode,V),On(V,B),V.return=P,P=V)}return y(P);case k:e:{for(de=B.key;M!==null;){if(M.key===de)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){o(P,M.sibling),V=h(M,B.children||[]),V.return=P,P=V;break e}else{o(P,M);break}else r(P,M);M=M.sibling}V=iu(B,P.mode,V),V.return=P,P=V}return y(P);case Q:return B=Lr(B),Ge(P,M,B,V)}if(Bt(B))return ne(P,M,B,V);if(fe(B)){if(de=fe(B),typeof de!="function")throw Error(n(150));return B=de.call(B),me(P,M,B,V)}if(typeof B.then=="function")return Ge(P,M,wl(B),V);if(B.$$typeof===_)return Ge(P,M,vl(P,B),V);_l(P,B)}
vendor: 2,579 bytes, line 8
8return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,M!==null&&M.tag===6?(o(P,M.sibling),V=h(M,B),V.return=P,P=V):(o(P,M),V=ru(B,P.mode,V),V.return=P,P=V),y(P)):o(P,M)}return function(P,M,B,V){try{Ln=0;var de=Ge(P,M,B,V);return _i=null,de}catch(ce){if(ce===wi||ce===jl)throw ce;var Pe=aa(29,ce,null,P.mode);return Pe.lanes=V,Pe.return=P,Pe}}}var Rr=Qf(!0),Xf=Qf(!1),Is=!1;function gu(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(a,r){a=a.updateQueue,r.updateQueue===a&&(r.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Hs(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Vs(a,r,o){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(qe&2)!==0){var h=c.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),c.pending=r,r=fl(a),Df(a,null,o),r}return xl(a,c,r,o),fl(a)}function Rn(a,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var c=r.lanes;c&=a.pendingLanes,o|=c,r.lanes=o,$x(a,o)}}function vu(a,r){var o=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var y={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};f===null?h=f=y:f=f.next=y,o=o.next}while(o!==null);f===null?h=f=r:f=f.next=r}else h=f=r;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:f,shared:c.shared,callbacks:c.callbacks},a.updateQueue=o;return}a=o.lastBaseUpdate,a===null?o.firstBaseUpdate=r:a.next=r,o.lastBaseUpdate=r}var yu=!1;function zn(){if(yu){var a=Ni;if(a!==null)throw a}}function Dn(a,r,o,c){yu=!1;var h=a.updateQueue;Is=!1;var f=h.firstBaseUpdate,y=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var R=A,q=R.next;R.next=null,y===null?f=q:y.next=q,y=R;var I=a.alternate;I!==null&&(I=I.updateQueue,A=I.lastBaseUpdate,A!==y&&(A===null?I.firstBaseUpdate=q:A.next=q,I.lastBaseUpdate=R))}if(f!==null){var W=h.baseState;y=0,I=q=R=null,A=f;do{var U=A.lane&-536870913,F=U!==A.lane;if(F?(Oe&U)===U:(c&U)===U){U!==0&&U===ji&&(yu=!0),I!==null&&(I=I.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var ne=a,me=A;U=r;var Ge=o;switch(me.tag){case 1:if(ne=me.payload,typeof ne=="function"){W=ne.call(Ge,W,U);break e}W=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=me.payload,U=typeof ne=="function"?ne.call(Ge,W,U):ne,U==null)break e;W=v({},W,U);break e;case 2:Is=!0}
vendor: 4,407 bytes, line 8
8}U=A.callback,U!==null&&(a.flags|=64,F&&(a.flags|=8192),F=h.callbacks,F===null?h.callbacks=[U]:F.push(U))}else F={lane:U,tag:A.tag,payload:A.payload,callback:A.callback,next:null},I===null?(q=I=F,R=W):I=I.next=F,y|=U;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;F=A,A=F.next,F.next=null,h.lastBaseUpdate=F,h.shared.pending=null}}while(!0);I===null&&(R=W),h.baseState=R,h.firstBaseUpdate=q,h.lastBaseUpdate=I,f===null&&(h.shared.lanes=0),Ys|=y,a.lanes=y,a.memoizedState=W}}function Zf(a,r){if(typeof a!="function")throw Error(n(191,a));a.call(r)}function ep(a,r){var o=a.callbacks;if(o!==null)for(a.callbacks=null,a=0;a<o.length;a++)Zf(o[a],r)}var Si=D(null),Sl=D(0);function tp(a,r){a=js,se(Sl,a),se(Si,r),js=a|r.baseLanes}function ju(){se(Sl,js),se(Si,Si.current)}function Nu(){js=Sl.current,G(Si),G(Sl)}var sa=D(null),ya=null;function Gs(a){var r=a.alternate;se(ct,ct.current&1),se(sa,a),ya===null&&(r===null||Si.current!==null||r.memoizedState!==null)&&(ya=a)}function wu(a){se(ct,ct.current),se(sa,a),ya===null&&(ya=a)}function ap(a){a.tag===22?(se(ct,ct.current),se(sa,a),ya===null&&(ya=a)):Ws()}function Ws(){se(ct,ct.current),se(sa,sa.current)}function ra(a){G(sa),ya===a&&(ya=null),G(ct)}var ct=D(0);function kl(a){for(var r=a;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Ah(o)||Th(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ms=0,ye=null,He=null,pt=null,Cl=!1,ki=!1,zr=!1,El=0,Mn=0,Ci=null,rj=0;function rt(){throw Error(n(321))}function _u(a,r){if(r===null)return!1;for(var o=0;o<r.length&&o<a.length;o++)if(!ta(a[o],r[o]))return!1;return!0}function Su(a,r,o,c,h,f){return ms=f,ye=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,H.H=a===null||a.memoizedState===null?qp:Uu,zr=!1,f=o(c,h),zr=!1,ki&&(f=rp(r,o,c,h)),sp(a),f}function sp(a){H.H=qn;var r=He!==null&&He.next!==null;if(ms=0,pt=He=ye=null,Cl=!1,Mn=0,Ci=null,r)throw Error(n(300));a===null||gt||(a=a.dependencies,a!==null&&bl(a)&&(gt=!0))}function rp(a,r,o,c){ye=a;var h=0;do{if(ki&&(Ci=null),Mn=0,ki=!1,25<=h)throw Error(n(301));if(h+=1,pt=He=null,a.updateQueue!=null){var f=a.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}H.H=Up,f=r(o,c)}while(ki);return f}function ij(){var a=H.H,r=a.useState()[0];return r=typeof r.then=="function"?Pn(r):r,a=a.useState()[0],(He!==null?He.memoizedState:null)!==a&&(ye.flags|=1024),r}function ku(){var a=El!==0;return El=0,a}function Cu(a,r,o){r.updateQueue=a.updateQueue,r.flags&=-2053,a.lanes&=~o}function Eu(a){if(Cl){for(a=a.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}Cl=!1}ms=0,pt=He=ye=null,ki=!1,Mn=El=0,Ci=null}function Ut(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?ye.memoizedState=pt=a:pt=pt.next=a,pt}function dt(){if(He===null){var a=ye.alternate;a=a!==null?a.memoizedState:null}else a=He.next;var r=pt===null?ye.memoizedState:pt.next;if(r!==null)pt=r,He=a;else{if(a===null)throw ye.alternate===null?Error(n(467)):Error(n(310));He=a,a={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},pt===null?ye.memoizedState=pt=a:pt=pt.next=a}return pt}function Al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pn(a){var r=Mn;return Mn+=1,Ci===null&&(Ci=[]),a=Kf(Ci,a,r),r=ye,(pt===null?r.memoizedState:pt.next)===null&&(r=r.alternate,H.H=r===null||r.memoizedState===null?qp:Uu),a}function Tl(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Pn(a);if(a.$$typeof===_)return At(a)}throw Error(n(438,String(a)))}function Au(a){var r=null,o=ye.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var c=ye.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(r={data:c.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Al(),ye.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(a),c=0;c<a;
vendor: 4,314 bytes, line 8
8c++)o[c]=we;return r.index++,o}function xs(a,r){return typeof r=="function"?r(a):r}function Ll(a){var r=dt();return Tu(r,He,a)}function Tu(a,r,o){var c=a.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=o;var h=a.baseQueue,f=c.pending;if(f!==null){if(h!==null){var y=h.next;h.next=f.next,f.next=y}r.baseQueue=h=f,c.pending=null}if(f=a.baseState,h===null)a.memoizedState=f;else{r=h.next;var A=y=null,R=null,q=r,I=!1;do{var W=q.lane&-536870913;if(W!==q.lane?(Oe&W)===W:(ms&W)===W){var U=q.revertLane;if(U===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),W===ji&&(I=!0);else if((ms&U)===U){q=q.next,U===ji&&(I=!0);continue}else W={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(A=R=W,y=f):R=R.next=W,ye.lanes|=U,Ys|=U;W=q.action,zr&&o(f,W),f=q.hasEagerState?q.eagerState:o(f,W)}else U={lane:W,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(A=R=U,y=f):R=R.next=U,ye.lanes|=W,Ys|=W;q=q.next}while(q!==null&&q!==r);if(R===null?y=f:R.next=A,!ta(f,a.memoizedState)&&(gt=!0,I&&(o=Ni,o!==null)))throw o;a.memoizedState=f,a.baseState=y,a.baseQueue=R,c.lastRenderedState=f}return h===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function Lu(a){var r=dt(),o=r.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=a;var c=o.dispatch,h=o.pending,f=r.memoizedState;if(h!==null){o.pending=null;var y=h=h.next;do f=a(f,y.action),y=y.next;while(y!==h);ta(f,r.memoizedState)||(gt=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),o.lastRenderedState=f}return[f,c]}function ip(a,r,o){var c=ye,h=dt(),f=ze;if(f){if(o===void 0)throw Error(n(407));o=o()}else o=r();var y=!ta((He||h).memoizedState,o);if(y&&(h.memoizedState=o,gt=!0),h=h.queue,zu(lp.bind(null,c,h,a),[a]),h.getSnapshot!==r||y||pt!==null&&pt.memoizedState.tag&1){if(c.flags|=2048,Ei(9,{destroy:void 0},op.bind(null,c,h,o,r),null),Je===null)throw Error(n(349));f||(ms&127)!==0||np(c,r,o)}return o}function np(a,r,o){a.flags|=16384,a={getSnapshot:r,value:o},r=ye.updateQueue,r===null?(r=Al(),ye.updateQueue=r,r.stores=[a]):(o=r.stores,o===null?r.stores=[a]:o.push(a))}function op(a,r,o,c){r.value=o,r.getSnapshot=c,cp(r)&&dp(a)}function lp(a,r,o){return o(function(){cp(r)&&dp(a)})}function cp(a){var r=a.getSnapshot;a=a.value;try{var o=r();return!ta(a,o)}catch{return!0}}function dp(a){var r=Sr(a,2);r!==null&&Wt(r,a,2)}function Ou(a){var r=Ut();if(typeof a=="function"){var o=a;if(a=o(),zr){Ms(!0);try{o()}finally{Ms(!1)}}}return r.memoizedState=r.baseState=a,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:a},r}function up(a,r,o,c){return a.baseState=o,Tu(a,He,typeof c=="function"?c:xs)}function nj(a,r,o,c,h){if(zl(a))throw Error(n(485));if(a=r.action,a!==null){var f={payload:h,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};H.T!==null?o(!0):f.isTransition=!1,c(f),o=r.pending,o===null?(f.next=r.pending=f,hp(r,f)):(f.next=o.next,r.pending=o.next=f)}}function hp(a,r){var o=r.action,c=r.payload,h=a.state;if(r.isTransition){var f=H.T,y={};H.T=y;try{var A=o(h,c),R=H.S;R!==null&&R(y,A),mp(a,r,A)}catch(q){Ru(a,r,q)}finally{f!==null&&y.types!==null&&(f.types=y.types),H.T=f}}else try{f=o(h,c),mp(a,r,f)}catch(q){Ru(a,r,q)}}function mp(a,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){xp(a,r,c)},function(c){return Ru(a,r,c)}):xp(a,r,o)}function xp(a,r,o){r.status="fulfilled",r.value=o,fp(r),a.state=o,r=a.pending,r!==null&&(o=r.next,o===r?a.pending=null:(o=o.next,r.next=o,hp(a,o)))}function Ru(a,r,o){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do r.status="rejected",r.reason=o,fp(r),r=r.next;while(r!==c)}a.action=null}function fp(a){a=a.listeners;for(var r=0;r<a.length;r++)(0,a[r])()}function pp(a,r){return r}function gp(a,r){if(ze){var o=Je.formState;if(o!==null){e:{var c=ye;if(ze){if(Qe){t:{for(var h=Qe,f=va;h.nodeType!==8;){if(!f){h=null;break t}if(h=ja(h.nextSibling),h===null){h=null;break t}}f=h.data,h=f==="F!"||f==="F"?h:null}if(h){Qe=ja(h.nextSibling),c=h.data==="F!";break e}}Fs(c)}c=!1}c&&(r=o[0])}}
vendor: 5,042 bytes, line 8
8return o=Ut(),o.memoizedState=o.baseState=r,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pp,lastRenderedState:r},o.queue=c,o=Mp.bind(null,ye,c),c.dispatch=o,c=Ou(!1),f=qu.bind(null,ye,!1,c.queue),c=Ut(),h={state:r,dispatch:null,action:a,pending:null},c.queue=h,o=nj.bind(null,ye,h,f,o),h.dispatch=o,c.memoizedState=a,[r,o,!1]}function bp(a){var r=dt();return vp(r,He,a)}function vp(a,r,o){if(r=Tu(a,r,pp)[0],a=Ll(xs)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var c=Pn(r)}catch(y){throw y===wi?jl:y}else c=r;r=dt();var h=r.queue,f=h.dispatch;return o!==r.memoizedState&&(ye.flags|=2048,Ei(9,{destroy:void 0},oj.bind(null,h,o),null)),[c,f,a]}function oj(a,r){a.action=r}function yp(a){var r=dt(),o=He;if(o!==null)return vp(r,o,a);dt(),r=r.memoizedState,o=dt();var c=o.queue.dispatch;return o.memoizedState=a,[r,c,!1]}function Ei(a,r,o,c){return a={tag:a,create:o,deps:c,inst:r,next:null},r=ye.updateQueue,r===null&&(r=Al(),ye.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=a.next=a:(c=o.next,o.next=a,a.next=c,r.lastEffect=a),a}function jp(){return dt().memoizedState}function Ol(a,r,o,c){var h=Ut();ye.flags|=a,h.memoizedState=Ei(1|r,{destroy:void 0},o,c===void 0?null:c)}function Rl(a,r,o,c){var h=dt();c=c===void 0?null:c;var f=h.memoizedState.inst;He!==null&&c!==null&&_u(c,He.memoizedState.deps)?h.memoizedState=Ei(r,f,o,c):(ye.flags|=a,h.memoizedState=Ei(1|r,f,o,c))}function Np(a,r){Ol(8390656,8,a,r)}function zu(a,r){Rl(2048,8,a,r)}function lj(a){ye.flags|=4;var r=ye.updateQueue;if(r===null)r=Al(),ye.updateQueue=r,r.events=[a];else{var o=r.events;o===null?r.events=[a]:o.push(a)}}function wp(a){var r=dt().memoizedState;return lj({ref:r,nextImpl:a}),function(){if((qe&2)!==0)throw Error(n(440));return r.impl.apply(void 0,arguments)}}function _p(a,r){return Rl(4,2,a,r)}function Sp(a,r){return Rl(4,4,a,r)}function kp(a,r){if(typeof r=="function"){a=a();var o=r(a);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return a=a(),r.current=a,function(){r.current=null}}function Cp(a,r,o){o=o!=null?o.concat([a]):null,Rl(4,4,kp.bind(null,r,a),o)}function Du(){}function Ep(a,r){var o=dt();r=r===void 0?null:r;var c=o.memoizedState;return r!==null&&_u(r,c[1])?c[0]:(o.memoizedState=[a,r],a)}function Ap(a,r){var o=dt();r=r===void 0?null:r;var c=o.memoizedState;if(r!==null&&_u(r,c[1]))return c[0];if(c=a(),zr){Ms(!0);try{a()}finally{Ms(!1)}}return o.memoizedState=[c,r],c}function Mu(a,r,o){return o===void 0||(ms&1073741824)!==0&&(Oe&261930)===0?a.memoizedState=r:(a.memoizedState=o,a=Tg(),ye.lanes|=a,Ys|=a,o)}function Tp(a,r,o,c){return ta(o,r)?o:Si.current!==null?(a=Mu(a,o,c),ta(a,r)||(gt=!0),a):(ms&42)===0||(ms&1073741824)!==0&&(Oe&261930)===0?(gt=!0,a.memoizedState=o):(a=Tg(),ye.lanes|=a,Ys|=a,r)}function Lp(a,r,o,c,h){var f=te.p;te.p=f!==0&&8>f?f:8;var y=H.T,A={};H.T=A,qu(a,!1,r,o);try{var R=h(),q=H.S;if(q!==null&&q(A,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var I=sj(R,c);Bn(a,r,I,oa(a))}else Bn(a,r,c,oa(a))}catch(W){Bn(a,r,{then:function(){},status:"rejected",reason:W},oa())}finally{te.p=f,y!==null&&A.types!==null&&(y.types=A.types),H.T=y}}function cj(){}function Pu(a,r,o,c){if(a.tag!==5)throw Error(n(476));var h=Op(a).queue;Lp(a,h,r,xe,o===null?cj:function(){return Rp(a),o(c)})}function Op(a){var r=a.memoizedState;if(r!==null)return r;r={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:xe},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:o},next:null},a.memoizedState=r,a=a.alternate,a!==null&&(a.memoizedState=r),r}function Rp(a){var r=Op(a);r.next===null&&(r=a.alternate.memoizedState),Bn(a,r.next.queue,{},oa())}function Bu(){return At(to)}function zp(){return dt().memoizedState}function Dp(){return dt().memoizedState}function dj(a){for(var r=a.return;r!==null;){switch(r.tag){case 24:case 3:var o=oa();a=Hs(o);var c=Vs(r,a,o);c!==null&&(Wt(c,r,o),Rn(c,r,o)),r={cache:mu()},a.payload=r;return}r=r.return}}function uj(a,r,o){var c=oa();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},zl(a)?Pp(r,o):(o=au(a,r,o,c),o!==null&&(Wt(o,a,c),Bp(o,r,c)))}function Mp(a,r,o){var c=oa();Bn(a,r,o,c)}function Bn(a,r,o,c){var h={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(zl(a))Pp(r,h);else{var f=a.alternate;if(a.lanes===0&&(f===null||f.lanes===0)&&(f=r.lastRenderedReducer,f!==null))try{var y=r.lastRenderedState,A=f(y,o);if(h.hasEagerState=!0,h.eagerState=A,ta(A,y))return xl(a,r,h,0),Je===null&&ml(),!1}catch{}if(o=au(a,r,h,c),o!==null)return Wt(o,a,c),Bp(o,r,c),!0}return!1}function qu(a,r,o,c){if(c={lane:2,revertLane:gh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},zl(a)){if(r)throw Error(n(479))}else r=au(a,o,c,2),r!==null&&Wt(r,a,2)}function zl(a){var r=a.alternate;return a===ye||r!==null&&r===ye}function Pp(a,r){ki=Cl=!0;var o=a.pending;
vendor: 7,118 bytes, line 8
8o===null?r.next=r:(r.next=o.next,o.next=r),a.pending=r}function Bp(a,r,o){if((o&4194048)!==0){var c=r.lanes;c&=a.pendingLanes,o|=c,r.lanes=o,$x(a,o)}}var qn={readContext:At,use:Tl,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};qn.useEffectEvent=rt;var qp={readContext:At,use:Tl,useCallback:function(a,r){return Ut().memoizedState=[a,r===void 0?null:r],a},useContext:At,useEffect:Np,useImperativeHandle:function(a,r,o){o=o!=null?o.concat([a]):null,Ol(4194308,4,kp.bind(null,r,a),o)},useLayoutEffect:function(a,r){return Ol(4194308,4,a,r)},useInsertionEffect:function(a,r){Ol(4,2,a,r)},useMemo:function(a,r){var o=Ut();r=r===void 0?null:r;var c=a();if(zr){Ms(!0);try{a()}finally{Ms(!1)}}return o.memoizedState=[c,r],c},useReducer:function(a,r,o){var c=Ut();if(o!==void 0){var h=o(r);if(zr){Ms(!0);try{o(r)}finally{Ms(!1)}}}else h=r;return c.memoizedState=c.baseState=h,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:h},c.queue=a,a=a.dispatch=uj.bind(null,ye,a),[c.memoizedState,a]},useRef:function(a){var r=Ut();return a={current:a},r.memoizedState=a},useState:function(a){a=Ou(a);var r=a.queue,o=Mp.bind(null,ye,r);return r.dispatch=o,[a.memoizedState,o]},useDebugValue:Du,useDeferredValue:function(a,r){var o=Ut();return Mu(o,a,r)},useTransition:function(){var a=Ou(!1);return a=Lp.bind(null,ye,a.queue,!0,!1),Ut().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,r,o){var c=ye,h=Ut();if(ze){if(o===void 0)throw Error(n(407));o=o()}else{if(o=r(),Je===null)throw Error(n(349));(Oe&127)!==0||np(c,r,o)}h.memoizedState=o;var f={value:o,getSnapshot:r};return h.queue=f,Np(lp.bind(null,c,f,a),[a]),c.flags|=2048,Ei(9,{destroy:void 0},op.bind(null,c,f,o,r),null),o},useId:function(){var a=Ut(),r=Je.identifierPrefix;if(ze){var o=Va,c=Ha;o=(c&~(1<<32-ea(c)-1)).toString(32)+o,r="_"+r+"R_"+o,o=El++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=rj++,r="_"+r+"r_"+o.toString(32)+"_";return a.memoizedState=r},useHostTransitionStatus:Bu,useFormState:gp,useActionState:gp,useOptimistic:function(a){var r=Ut();r.memoizedState=r.baseState=a;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=qu.bind(null,ye,!0,o),o.dispatch=r,[a,r]},useMemoCache:Au,useCacheRefresh:function(){return Ut().memoizedState=dj.bind(null,ye)},useEffectEvent:function(a){var r=Ut(),o={impl:a};return r.memoizedState=o,function(){if((qe&2)!==0)throw Error(n(440));return o.impl.apply(void 0,arguments)}}},Uu={readContext:At,use:Tl,useCallback:Ep,useContext:At,useEffect:zu,useImperativeHandle:Cp,useInsertionEffect:_p,useLayoutEffect:Sp,useMemo:Ap,useReducer:Ll,useRef:jp,useState:function(){return Ll(xs)},useDebugValue:Du,useDeferredValue:function(a,r){var o=dt();return Tp(o,He.memoizedState,a,r)},useTransition:function(){var a=Ll(xs)[0],r=dt().memoizedState;return[typeof a=="boolean"?a:Pn(a),r]},useSyncExternalStore:ip,useId:zp,useHostTransitionStatus:Bu,useFormState:bp,useActionState:bp,useOptimistic:function(a,r){var o=dt();return up(o,He,a,r)},useMemoCache:Au,useCacheRefresh:Dp};Uu.useEffectEvent=wp;var Up={readContext:At,use:Tl,useCallback:Ep,useContext:At,useEffect:zu,useImperativeHandle:Cp,useInsertionEffect:_p,useLayoutEffect:Sp,useMemo:Ap,useReducer:Lu,useRef:jp,useState:function(){return Lu(xs)},useDebugValue:Du,useDeferredValue:function(a,r){var o=dt();return He===null?Mu(o,a,r):Tp(o,He.memoizedState,a,r)},useTransition:function(){var a=Lu(xs)[0],r=dt().memoizedState;return[typeof a=="boolean"?a:Pn(a),r]},useSyncExternalStore:ip,useId:zp,useHostTransitionStatus:Bu,useFormState:yp,useActionState:yp,useOptimistic:function(a,r){var o=dt();return He!==null?up(o,He,a,r):(o.baseState=a,[a,o.queue.dispatch])},useMemoCache:Au,useCacheRefresh:Dp};Up.useEffectEvent=wp;function Fu(a,r,o,c){r=a.memoizedState,o=o(c,r),o=o==null?r:v({},r,o),a.memoizedState=o,a.lanes===0&&(a.updateQueue.baseState=o)}var $u={enqueueSetState:function(a,r,o){a=a._reactInternals;var c=oa(),h=Hs(c);h.payload=r,o!=null&&(h.callback=o),r=Vs(a,h,c),r!==null&&(Wt(r,a,c),Rn(r,a,c))},enqueueReplaceState:function(a,r,o){a=a._reactInternals;var c=oa(),h=Hs(c);h.tag=1,h.payload=r,o!=null&&(h.callback=o),r=Vs(a,h,c),r!==null&&(Wt(r,a,c),Rn(r,a,c))},enqueueForceUpdate:function(a,r){a=a._reactInternals;var o=oa(),c=Hs(o);c.tag=2,r!=null&&(c.callback=r),r=Vs(a,c,o),r!==null&&(Wt(r,a,o),Rn(r,a,o))}};function Fp(a,r,o,c,h,f,y){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,f,y):r.prototype&&r.prototype.isPureReactComponent?!Sn(o,c)||!Sn(h,f):!0}function $p(a,r,o,c){a=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,c),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,c),r.state!==a&&$u.enqueueReplaceState(r,r.state,null)}function Dr(a,r){var o=r;if("ref"in r){o={};for(var c in r)c!=="ref"&&(o[c]=r[c])}if(a=a.defaultProps){o===r&&(o=v({},o));for(var h in a)o[h]===void 0&&(o[h]=a[h])}return o}function Ip(a){hl(a)}function Hp(a){console.error(a)}function Vp(a){hl(a)}function Dl(a,r){try{var o=a.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(c){setTimeout(function(){throw c})}}function Gp(a,r,o){try{var c=a.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Iu(a,r,o){return o=Hs(o),o.tag=3,o.payload={element:null},o.callback=function(){Dl(a,r)},o}function Wp(a){return a=Hs(a),a.tag=3,a}function Kp(a,r,o,c){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var f=c.value;a.payload=function(){return h(f)},a.callback=function(){Gp(r,o,c)}}var y=o.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(a.callback=function(){Gp(r,o,c),typeof h!="function"&&(Qs===null?Qs=new Set([this]):Qs.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})})}function hj(a,r,o,c,h){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(r=o.alternate,r!==null&&yi(r,o,h,!0),o=sa.current,o!==null){switch(o.tag){case 31:case 13:return ya===null?Wl():o.alternate===null&&it===0&&(it=3),o.flags&=-257,o.flags|=65536,o.lanes=h,c===Nl?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([c]):r.add(c),xh(a,c,h)),!1;case 22:return o.flags|=65536,c===Nl?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([c]):o.add(c)),xh(a,c,h)),!1}throw Error(n(435,o.tag))}return xh(a,c,h),Wl(),!1}if(ze)return r=sa.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,c!==lu&&(a=Error(n(422),{cause:c}),En(pa(a,o)))):(c!==lu&&(r=Error(n(423),{cause:c}),En(pa(r,o))),a=a.current.alternate,a.flags|=65536,h&=-h,a.lanes|=h,c=p
vendor: 11,487 bytes, line 8
8a(c,o),h=Iu(a.stateNode,c,h),vu(a,h),it!==4&&(it=2)),!1;var f=Error(n(520),{cause:c});if(f=pa(f,o),Wn===null?Wn=[f]:Wn.push(f),it!==4&&(it=2),r===null)return!0;c=pa(c,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,a=h&-h,o.lanes|=a,a=Iu(o.stateNode,c,a),vu(o,a),!1;case 1:if(r=o.type,f=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qs===null||!Qs.has(f))))return o.flags|=65536,h&=-h,o.lanes|=h,h=Wp(h),Kp(h,a,o,c),vu(o,h),!1}o=o.return}while(o!==null);return!1}var Hu=Error(n(461)),gt=!1;function Tt(a,r,o,c){r.child=a===null?Xf(r,null,o,c):Rr(r,a.child,o,c)}function Jp(a,r,o,c,h){o=o.render;var f=r.ref;if("ref"in c){var y={};for(var A in c)A!=="ref"&&(y[A]=c[A])}else y=c;return Ar(r),c=Su(a,r,o,y,f,h),A=ku(),a!==null&&!gt?(Cu(a,r,h),fs(a,r,h)):(ze&&A&&nu(r),r.flags|=1,Tt(a,r,c,h),r.child)}function Yp(a,r,o,c,h){if(a===null){var f=o.type;return typeof f=="function"&&!su(f)&&f.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=f,Qp(a,r,f,c,h)):(a=pl(o.type,null,c,r,r.mode,h),a.ref=r.ref,a.return=r,r.child=a)}if(f=a.child,!Xu(a,h)){var y=f.memoizedProps;if(o=o.compare,o=o!==null?o:Sn,o(y,c)&&a.ref===r.ref)return fs(a,r,h)}return r.flags|=1,a=cs(f,c),a.ref=r.ref,a.return=r,r.child=a}function Qp(a,r,o,c,h){if(a!==null){var f=a.memoizedProps;if(Sn(f,c)&&a.ref===r.ref)if(gt=!1,r.pendingProps=c=f,Xu(a,h))(a.flags&131072)!==0&&(gt=!0);else return r.lanes=a.lanes,fs(a,r,h)}return Vu(a,r,o,c,h)}function Xp(a,r,o,c){var h=c.children,f=a!==null?a.memoizedState:null;if(a===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((r.flags&128)!==0){if(f=f!==null?f.baseLanes|o:o,a!==null){for(c=r.child=a.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~f}else c=0,r.child=null;return Zp(a,r,f,o,c)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},a!==null&&yl(r,f!==null?f.cachePool:null),f!==null?tp(r,f):ju(),ap(r);else return c=r.lanes=536870912,Zp(a,r,f!==null?f.baseLanes|o:o,o,c)}else f!==null?(yl(r,f.cachePool),tp(r,f),Ws(),r.memoizedState=null):(a!==null&&yl(r,null),ju(),Ws());return Tt(a,r,h,o),r.child}function Un(a,r){return a!==null&&a.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Zp(a,r,o,c,h){var f=fu();return f=f===null?null:{parent:ft._currentValue,pool:f},r.memoizedState={baseLanes:o,cachePool:f},a!==null&&yl(r,null),ju(),ap(r),a!==null&&yi(a,r,c,!0),r.childLanes=h,null}function Ml(a,r){return r=Bl({mode:r.mode,children:r.children},a.mode),r.ref=a.ref,a.child=r,r.return=a,r}function eg(a,r,o){return Rr(r,a.child,null,o),a=Ml(r,r.pendingProps),a.flags|=2,ra(r),r.memoizedState=null,a}function mj(a,r,o){var c=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,a===null){if(ze){if(c.mode==="hidden")return a=Ml(r,c),r.lanes=536870912,Un(null,a);if(wu(r),(a=Qe)?(a=h0(a,va),a=a!==null&&a.data==="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:qs!==null?{id:Ha,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},o=Pf(a),o.return=r,r.child=o,Et=r,Qe=null)):a=null,a===null)throw Fs(r);return r.lanes=536870912,null}return Ml(r,c)}var f=a.memoizedState;if(f!==null){var y=f.dehydrated;if(wu(r),h)if(r.flags&256)r.flags&=-257,r=eg(a,r,o);else if(r.memoizedState!==null)r.child=a.child,r.flags|=128,r=null;else throw Error(n(558));else if(gt||yi(a,r,o,!1),h=(o&a.childLanes)!==0,gt||h){if(c=Je,c!==null&&(y=Ix(c,o),y!==0&&y!==f.retryLane))throw f.retryLane=y,Sr(a,y),Wt(c,a,y),Hu;Wl(),r=eg(a,r,o)}else a=f.treeContext,Qe=ja(y.nextSibling),Et=r,ze=!0,Us=null,va=!1,a!==null&&Uf(r,a),r=Ml(r,c),r.flags|=4096;return r}return a=cs(a.child,{mode:c.mode,children:c.children}),a.ref=r.ref,r.child=a,a.return=r,a}function Pl(a,r){var o=r.ref;if(o===null)a!==null&&a.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(n(284));(a===null||a.ref!==o)&&(r.flags|=4194816)}}function Vu(a,r,o,c,h){return Ar(r),o=Su(a,r,o,c,void 0,h),c=ku(),a!==null&&!gt?(Cu(a,r,h),fs(a,r,h)):(ze&&c&&nu(r),r.flags|=1,Tt(a,r,o,h),r.child)}function tg(a,r,o,c,h,f){return Ar(r),r.updateQueue=null,o=rp(r,c,o,h),sp(a),c=ku(),a!==null&&!gt?(Cu(a,r,f),fs(a,r,f)):(ze&&c&&nu(r),r.flags|=1,Tt(a,r,o,f),r.child)}function ag(a,r,o,c,h){if(Ar(r),r.stateNode===null){var f=pi,y=o.contextType;typeof y=="object"&&y!==null&&(f=At(y)),f=new o(c,f),r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=$u,r.stateNode=f,f._reactInternals=r,f=r.stateNode,f.props=c,f.state=r.memoizedState,f.refs={},gu(r),y=o.contextType,f.context=typeof y=="object"&&y!==null?At(y):pi,f.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Fu(r,o,y,c),f.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&$u.enqueueReplaceState(f,f.state,null),Dn(r,c,f,h),zn(),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308),c=!0}else if(a===null){f=r.stateNode;var A=r.memoizedProps,R=Dr(o,A);f.props=R;var q=f.context,I=o.contextType;y=pi,typeof I=="object"&&I!==null&&(y=At(I));var W=o.getDerivedStateFromProps;I=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function",A=r.pendingProps!==A,I||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(A||q!==y)&&$p(r,f,c,y),Is=!1;var U=r.memoizedState;f.state=U,Dn(r,c,f,h),zn(),q=r.memoizedState,A||U!==q||Is?(typeof W=="function"&&(Fu(r,o,W,c),q=r.memoizedState),(R=Is||Fp(r,o,R,c,U,q,y))?(I||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(r.flags|=4194308)):(typeof f.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=c,r.memoizedState=q),f.props=c,f.state=q,f.context=y,c=R):(typeof f.componentDidMount=="function"&&(r.flags|=4194308),c=!1)}else{f=r.stateNode,bu(a,r),y=r.memoizedProps,I=Dr(o,y),f.props=I,W=r.pendingProps,U=f.context,q=o.contextType,R=pi,typeof q=="object"&&q!==null&&(R=At(q)),A=o.getDerivedStateFromProps,(q=typeof A=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==W||U!==R)&&$p(r,f,c,R),Is=!1,U=r.memoizedState,f.state=U,Dn(r,c,f,h),zn();var F=r.memoizedState;y!==W||U!==F||Is||a!==null&&a.dependencies!==null&&bl(a.dependencies)?(typeof A=="function"&&(Fu(r,o,A,c),F=r.memoizedState),(I=Is||Fp(r,o,I,c,U,F,R)||a!==null&&a.dependencies!==null&&bl(a.dependencies))?(q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(c,F,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(c,F,R)),typeof f.componentDidUpdate=="function"&&(r.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===a.memoizedProps&&U===a.memoizedState||(r.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===a.memoizedProps&&U===a.memoizedState||(r.flags|=1024),r.memoizedProps=c,r.memoizedState=F),f.props=c,f.state=F,f.context=R,c=I):(typeof f.componentDidUpdate!="function"||y===a.memoizedProps&&U===a.memoizedState||(r.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===a.memoizedProps&&U===a.memoizedState||(r.flags|=1024),c=!1)}return f=c,Pl(a,r),c=(r.flags&128)!==0,f||c?(f=r.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:f.render(),r.flags|=1,a!==null&&c?(r.child=Rr(r,a.child,null,h),r.child=Rr(r,null,o,h)):Tt(a,r,o,h),r.memoizedState=f.state,a=r.child):a=fs(a,r,h),a}function sg(a,r,o,c){return Cr(),r.flags|=256,Tt(a,r,o,c),r.child}var Gu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wu(a){return{baseLanes:a,cachePool:Gf()}}function Ku(a,r,o){return a=a!==null?a.childLanes&~o:0,r&&(a|=na),a}function rg(a,r,o){var c=r.pendingProps,h=!1,f=(r.flags&128)!==0,y;if((y=f)||(y=a!==null&&a.memoizedState===null?!1:(ct.current&2)!==0),y&&(h=!0,r.flags&=-129),y=(r.flags&32)!==0,r.flags&=-33,a===null){if(ze){if(h?Gs(r):Ws(),(a=Qe)?(a=h0(a,va),a=a!==null&&a.data!=="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:qs!==null?{id:Ha,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},o=Pf(a),o.return=r,r.child=o,Et=r,Qe=null)):a=null,a===null)throw Fs(r);return Th(a)?r.lanes=32:r.lanes=536870912,null}var A=c.children;return c=c.fallback,h?(Ws(),h=r.mode,A=Bl({mode:"hidden",children:A},h),c=kr(c,h,o,null),A.return=r,c.return=r,A.sibling=c,r.child=A,c=r.child,c.memoizedState=Wu(o),c.childLanes=Ku(a,y,o),r.memoizedState=Gu,Un(null,c)):(Gs(r),Ju(r,A))}var R=a.memoizedState;if(R!==null&&(A=R.dehydrated,A!==null)){if(f)r.flags&256?(Gs(r),r.flags&=-257,r=Yu(a,r,o)):r.memoizedState!==null?(Ws(),r.child=a.child,r.flags|=128,r=null):(Ws(),A=c.fallback,h=r.mode,c=Bl({mode:"visible",children:c.children},h),A=kr(A,h,o,null),A.flags|=2,c.return=r,A.return=r,c.sibling=A,r.child=c,Rr(r,a.child,null,o),c=r.child,c.memoizedState=Wu(o),c.childLanes=Ku(a,y,o),r.memoizedState=Gu,r=Un(null,c));else if(Gs(r),Th(A)){if(y=A.nextSibling&&A.nextSibling.dataset,y)var q=y.dgst;y=q,c=Error(n(419)),c.stack="",c.digest=y,En({value:c,source:null,stack:null}),r=Yu(a,r,o)}else if(gt||yi(a,r,o,!1),y=(o&a.childLanes)!==0,gt||y){if(y=Je,y!==null&&(c=Ix(y,o),c!==0&&c!==R.retryLane))throw R.retryLane=c,Sr(a,c),Wt(y,a,c),Hu;Ah(A)||Wl(),r=Yu(a,r,o)}else Ah(A)?(r.flags|=192,r.child=a.child,r=null):(a=R.treeContext,Qe=ja(A.nextSibling),Et=r,ze=!0,Us=null,va=!1,a!==null&&Uf(r,a),r=Ju(r,c.children),r.flags|=4096);return r}return h?(Ws(),A=c.fallback,h=r.mode,R=a.child,q=R.sibling,c=cs(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,q!==null?A=cs(q,A):(A=kr(A,h,o,null),A.flags|=2),A.return=r,c.return=r,c.sibling=A,r.child=c,Un(null,c),c=r.child,A=a.child.memoizedState,A===null?A=Wu(o):(h=A.cachePool,h!==null?(R=ft._currentValue,h=h.parent!==R?{parent:R,pool:R}:h):h=Gf(),A={baseLanes:A.baseLanes|o,cachePool:h}),c.memoizedState=A,c.childLanes=Ku(a,y,o),r.memoizedState=Gu,Un(a.child,c)):(Gs(r),o=a.child,a=o.sibling,o=cs(o,{mode:"visible",children:c.children}),o.return=r,o.sibling=null,a!==null&&(y=r.deletions,y===null?(r.deletions=[a],r.flags|=16):y.push(a)),r.child=o,r.memoizedState=null,o)}function Ju(a,r){return r=Bl({mode:"visible",children:r},a.mode),r.return=a,a.child=r}function Bl(a,r){return a=aa(22,a,null,r),a.lanes=0,a}function Yu(a,r,o){return Rr(r,a.child,null,o),a=Ju(r,r.pendingProps.children),a.flags|=2,r.memoizedState=null,a}function ig(a,r,o){a.lanes|=r;var c=a.alternate;c!==null&&(c.lanes|=r),uu(a.return,r,o)}function Qu(a,r,o,c,h,f){var y=a.memoizedState;y===null?a.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h,treeForkCount:f}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=o,y.tailMode=h,y.treeForkCount=f)}
vendor: 4,581 bytes, line 8
8function ng(a,r,o){var c=r.pendingProps,h=c.revealOrder,f=c.tail;c=c.children;var y=ct.current,A=(y&2)!==0;if(A?(y=y&1|2,r.flags|=128):y&=1,se(ct,y),Tt(a,r,c,o),c=ze?Cn:0,!A&&a!==null&&(a.flags&128)!==0)e:for(a=r.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ig(a,o,r);else if(a.tag===19)ig(a,o,r);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(h){case"forwards":for(o=r.child,h=null;o!==null;)a=o.alternate,a!==null&&kl(a)===null&&(h=o),o=o.sibling;o=h,o===null?(h=r.child,r.child=null):(h=o.sibling,o.sibling=null),Qu(r,!1,h,o,f,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,h=r.child,r.child=null;h!==null;){if(a=h.alternate,a!==null&&kl(a)===null){r.child=h;break}a=h.sibling,h.sibling=o,o=h,h=a}Qu(r,!0,o,null,f,c);break;case"together":Qu(r,!1,null,null,void 0,c);break;default:r.memoizedState=null}return r.child}function fs(a,r,o){if(a!==null&&(r.dependencies=a.dependencies),Ys|=r.lanes,(o&r.childLanes)===0)if(a!==null){if(yi(a,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(a!==null&&r.child!==a.child)throw Error(n(153));if(r.child!==null){for(a=r.child,o=cs(a,a.pendingProps),r.child=o,o.return=r;a.sibling!==null;)a=a.sibling,o=o.sibling=cs(a,a.pendingProps),o.return=r;o.sibling=null}return r.child}function Xu(a,r){return(a.lanes&r)!==0?!0:(a=a.dependencies,!!(a!==null&&bl(a)))}function xj(a,r,o){switch(r.tag){case 3:qt(r,r.stateNode.containerInfo),$s(r,ft,a.memoizedState.cache),Cr();break;case 27:case 5:hn(r);break;case 4:qt(r,r.stateNode.containerInfo);break;case 10:$s(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,wu(r),null;break;case 13:var c=r.memoizedState;if(c!==null)return c.dehydrated!==null?(Gs(r),r.flags|=128,null):(o&r.child.childLanes)!==0?rg(a,r,o):(Gs(r),a=fs(a,r,o),a!==null?a.sibling:null);Gs(r);break;case 19:var h=(a.flags&128)!==0;if(c=(o&r.childLanes)!==0,c||(yi(a,r,o,!1),c=(o&r.childLanes)!==0),h){if(c)return ng(a,r,o);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),se(ct,ct.current),c)break;return null;case 22:return r.lanes=0,Xp(a,r,o,r.pendingProps);case 24:$s(r,ft,a.memoizedState.cache)}return fs(a,r,o)}function og(a,r,o){if(a!==null)if(a.memoizedProps!==r.pendingProps)gt=!0;else{if(!Xu(a,o)&&(r.flags&128)===0)return gt=!1,xj(a,r,o);gt=(a.flags&131072)!==0}else gt=!1,ze&&(r.flags&1048576)!==0&&qf(r,Cn,r.index);switch(r.lanes=0,r.tag){case 16:e:{var c=r.pendingProps;if(a=Lr(r.elementType),r.type=a,typeof a=="function")su(a)?(c=Dr(a,c),r.tag=1,r=ag(null,r,a,c,o)):(r.tag=0,r=Vu(null,r,a,c,o));else{if(a!=null){var h=a.$$typeof;if(h===E){r.tag=11,r=Jp(null,r,a,c,o);break e}else if(h===z){r.tag=14,r=Yp(null,r,a,c,o);break e}}throw r=Me(a)||a,Error(n(306,r,""))}}return r;case 0:return Vu(a,r,r.type,r.pendingProps,o);case 1:return c=r.type,h=Dr(c,r.pendingProps),ag(a,r,c,h,o);case 3:e:{if(qt(r,r.stateNode.containerInfo),a===null)throw Error(n(387));c=r.pendingProps;var f=r.memoizedState;h=f.element,bu(a,r),Dn(r,c,null,o);var y=r.memoizedState;if(c=y.cache,$s(r,ft,c),c!==f.cache&&hu(r,[ft],o,!0),zn(),c=y.element,f.isDehydrated)if(f={element:c,isDehydrated:!1,cache:y.cache},r.updateQueue.baseState=f,r.memoizedState=f,r.flags&256){r=sg(a,r,c,o);break e}else if(c!==h){h=pa(Error(n(424)),r),En(h),r=sg(a,r,c,o);break e}else for(a=r.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,Qe=ja(a.firstChild),Et=r,ze=!0,Us=null,va=!0,o=Xf(r,null,c,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Cr(),c===h){r=fs(a,r,o);break e}Tt(a,r,c,o)}r=r.child}return r;case 26:return Pl(a,r),a===null?(o=b0(r.type,null,r.pendingProps,null))?r.memoizedState=o:ze||(o=r.type,a=r.pendingProps,c=ec(Ae.current).createElement(o),c[Ct]=r,c[Ft]=a,Lt(c,o,a),_t(c),r.stateNode=c):r.memoizedState=b0(r.type,a.memoizedProps,r.pendingProps,a.memoizedState),null;case 27:return hn(r),a===null&&ze&&(c=r.stateNode=f0(r.type,r.pendingProps,Ae.current),Et=r,va=!0,h=Qe,tr(r.type)?(Lh=h,Qe=ja(c.firstChild)):Qe=h),Tt(a,r,r.pendingProps.children,o),Pl(a,r),a===null&&(r.flags|=4194304),r.child;case 5:return a===null&&ze&&((h=c=Qe)&&(c=Hj(c,r.type,r.pendingProps,va),c!==null?(r.stateNode=c,Et=r,Qe=ja(c.firstChild),va=!1,h=!0):h=!1),h||Fs(r)),hn(r),h=r.type,f=r.pendingProps,y=a!==null?a.memoizedProps:null,c=f.children,kh(h,f)?c=null:y!==null&&kh(h,y)&&(r.flags|=32),r.memoizedState!==null&&(h=Su(a,r,ij,null,
vendor: 4,206 bytes, line 8
8null,o),to._currentValue=h),Pl(a,r),Tt(a,r,c,o),r.child;case 6:return a===null&&ze&&((a=o=Qe)&&(o=Vj(o,r.pendingProps,va),o!==null?(r.stateNode=o,Et=r,Qe=null,a=!0):a=!1),a||Fs(r)),null;case 13:return rg(a,r,o);case 4:return qt(r,r.stateNode.containerInfo),c=r.pendingProps,a===null?r.child=Rr(r,null,c,o):Tt(a,r,c,o),r.child;case 11:return Jp(a,r,r.type,r.pendingProps,o);case 7:return Tt(a,r,r.pendingProps,o),r.child;case 8:return Tt(a,r,r.pendingProps.children,o),r.child;case 12:return Tt(a,r,r.pendingProps.children,o),r.child;case 10:return c=r.pendingProps,$s(r,r.type,c.value),Tt(a,r,c.children,o),r.child;case 9:return h=r.type._context,c=r.pendingProps.children,Ar(r),h=At(h),c=c(h),r.flags|=1,Tt(a,r,c,o),r.child;case 14:return Yp(a,r,r.type,r.pendingProps,o);case 15:return Qp(a,r,r.type,r.pendingProps,o);case 19:return ng(a,r,o);case 31:return mj(a,r,o);case 22:return Xp(a,r,o,r.pendingProps);case 24:return Ar(r),c=At(ft),a===null?(h=fu(),h===null&&(h=Je,f=mu(),h.pooledCache=f,f.refCount++,f!==null&&(h.pooledCacheLanes|=o),h=f),r.memoizedState={parent:c,cache:h},gu(r),$s(r,ft,h)):((a.lanes&o)!==0&&(bu(a,r),Dn(r,null,null,o),zn()),h=a.memoizedState,f=r.memoizedState,h.parent!==c?(h={parent:c,cache:c},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),$s(r,ft,c)):(c=f.cache,$s(r,ft,c),c!==h.cache&&hu(r,[ft],o,!0))),Tt(a,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(n(156,r.tag))}function ps(a){a.flags|=4}function Zu(a,r,o,c,h){if((r=(a.mode&32)!==0)&&(r=!1),r){if(a.flags|=16777216,(h&335544128)===h)if(a.stateNode.complete)a.flags|=8192;else if(zg())a.flags|=8192;else throw Or=Nl,pu}else a.flags&=-16777217}function lg(a,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!w0(r))if(zg())a.flags|=8192;else throw Or=Nl,pu}function ql(a,r){r!==null&&(a.flags|=4),a.flags&16384&&(r=a.tag!==22?Ux():536870912,a.lanes|=r,Oi|=r)}function Fn(a,r){if(!ze)switch(a.tailMode){case"hidden":r=a.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?a.tail=null:o.sibling=null;break;case"collapsed":o=a.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?r||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function Xe(a){var r=a.alternate!==null&&a.alternate.child===a.child,o=0,c=0;if(r)for(var h=a.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=a,h=h.sibling;else for(h=a.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=a,h=h.sibling;return a.subtreeFlags|=c,a.childLanes=o,r}function fj(a,r,o){var c=r.pendingProps;switch(ou(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(r),null;case 1:return Xe(r),null;case 3:return o=r.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),hs(ft),lt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(a===null||a.child===null)&&(vi(r)?ps(r):a===null||a.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,cu())),Xe(r),null;case 26:var h=r.type,f=r.memoizedState;return a===null?(ps(r),f!==null?(Xe(r),lg(r,f)):(Xe(r),Zu(r,h,null,c,o))):f?f!==a.memoizedState?(ps(r),Xe(r),lg(r,f)):(Xe(r),r.flags&=-16777217):(a=a.memoizedProps,a!==c&&ps(r),Xe(r),Zu(r,h,a,c,o)),null;case 27:if(Yo(r),o=Ae.current,h=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==c&&ps(r);else{if(!c){if(r.stateNode===null)throw Error(n(166));return Xe(r),null}a=oe.current,vi(r)?Ff(r):(a=f0(h,c,o),r.stateNode=a,ps(r))}return Xe(r),null;case 5:if(Yo(r),h=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==c&&ps(r);else{if(!c){if(r.stateNode===null)throw Error(n(166));return Xe(r),null}if(f=oe.current,vi(r))Ff(r);else{var y=ec(Ae.current);switch(f){case 1:f=y.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:f=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":f=y.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":f=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":f=y.createElement("div"),f.innerHTML="<script><\/script>
8",f=f.removeChild(f.firstChild);break;case"select":f=typeof c.is=="string"?y.createElement("select",{is:c.is}):y.createElement("select"),c.multiple?f.multiple=!0:c.size&&(f.size=c.size);break;default:f=typeof c.is=="string"?y.createElement(h,{is:c.is}):y.createElement(h)}}f[Ct]=r,f[Ft]=c;e:for(y=r.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===r)break e;for(;y.sibling===null;){if(y.return===null||y.return===r)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}r.stateNode=f;e:switch(Lt(f,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ps(r)}}return Xe(r),Zu(r,r.type,a===null?null:a.memoizedProps,r.pendingProps,o),null;case 6:if(a&&r.stateNode!=null)a.memoizedProps!==c&&ps(r);else{if(typeof c!="string"&&r.stateNode===null)throw Error(n(166));if(a=Ae.current,vi(r)){if(a=r.stateNode,o=r.memoizedProps,c=null,h=Et,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}a[Ct]=r,a=!!(a.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||r0(a.nodeValue,o)),a||Fs(r,!0)}else a=ec(a).createTextNode(c),a[Ct]=r,r.stateNode=a}return Xe(r),null;case 31:if(o=r.memoizedState,a===null||a.memoizedState!==null){if(c=vi(r),o!==null){if(a===null){if(!c)throw Error(n(318));if(a=r.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(557));a[Ct]=r}else Cr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Xe(r),a=!1}else o=cu(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=o),a=!0;if(!a)return r.flags&256?(ra(r),r):(ra(r),null);if((r.flags&128)!==0)throw Error(n(558))}return Xe(r),null;case 13:if(c=r.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(h=vi(r),c!==null&&c.dehydrated!==null){if(a===null){if(!h)throw Error(n(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));h[Ct]=r}else Cr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Xe(r),h=!1}else h=cu(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(ra(r),r):(ra(r),null)}return ra(r),(r.flags&128)!==0?(r.lanes=o,r):(o=c!==null,a=a!==null&&a.memoizedState!==null,o&&(c=r.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),f=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(f=c.memoizedState.cachePool.pool),f!==h&&(c.flags|=2048)),o!==a&&o&&(r.child.flags|=8192),ql(r,r.updateQueue),Xe(r),null);case 4:return lt(),a===null&&jh(r.stateNode.containerInfo),Xe(r),null;case 10:return hs(r.type),Xe(r),null;case 19:if(G(ct),c=r.memoizedState,c===null)return Xe(r),null;if(h=(r.flags&128)!==0,f=c.rendering,f===null)if(h)Fn(c,!1);else{if(it!==0||a!==null&&(a.flags&128)!==0)for(a=r.child;a!==null;){if(f=kl(a),f!==null){for(r.flags|=128,Fn(c,!1),a=f.updateQueue,r.updateQueue=a,ql(r,a),r.subtreeFlags=0,a=o,o=r.child;o!==null;)Mf(o,a),o=o.sibling;return se(ct,ct.current&1|2),ze&&ds(r,c.treeForkCount),r.child}a=a.sibling}c.tail!==null&&Xt()>Hl&&(r.flags|=128,h=!0,Fn(c,!1),r.lanes=4194304)}else{if(!h)if(a=kl(f),a!==null){if(r.flags|=128,h=!0,a=a.updateQueue,r.updateQueue=a,ql(r,a),Fn(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!ze)return Xe(r),null}else 2*Xt()-c.renderingStartTime>Hl&&o!==536870912&&(r.flags|=128,h=!0,Fn(c,!1),r.lanes=4194304);c.isBackwards?(f.sibling=r.child,r.child=f):(a=c.last,a!==null?a.sibling=f:r.child=f,c.last=f)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=Xt(),a.sibling=null,o=ct.current,se(ct,h?o&1|2:o&1),ze&&ds(r,c.treeForkCount),a):(Xe(r),null);case 22:case 23:return ra(r),Nu(),c=r.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(r.flags|=8192):c&&(r.flags|=8192),c?(o&536870912)!==0&&(r.flags&128)===0&&(Xe(r),r.subtreeFlags&6&&(r.flags|=8192)):Xe(r),o=r.updateQueue,o!==null&&ql(r,o.retryQueue),o=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048),a!==null&&G(Tr),null;case 24:return o=null,a!==null&&(o=a.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),hs(ft),Xe(r),null;case 25:return null;case 30:return null}throw Error(n(156,r.tag))}function pj(a,r){switch(ou(r),r.tag){case 1:return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 3:return hs(ft),lt(),a=r.flags,(a&65536)!==0&&(a&128)===0?(r.flags=a&-65537|128,r):null;case 26:case 27:case 5:return Yo(r),null;case 31:if(r.memoizedState!==null){if(ra(r),r.alternate===null)throw Error(n(340));Cr()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 13:if(ra(r),a=r.memoizedState,a!==null&&a.dehydrated!==null){if(r.alternate===null)throw Error(n(340));Cr()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 19:return G(ct),null;case 4:return lt(),null;case 10:return hs(r.type),null;case 22:case 23:return ra(r),Nu(),a!==null&&G(Tr),a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 24:return hs(ft),null;case 25:return null;default:return null}}function cg(a,r){switch(ou(r),r.tag){case 3:hs(ft),lt();break;case 26:case 27:case 5:Yo(r);break;case 4:lt();break;case 31:r.memoizedState!==null&&ra(r);break;case 13:ra(r);break;case 19:G(ct);break;case 10:hs(r.type);break;case 22:case 23:ra(r),Nu(),a!==null&&G(Tr);break;case 24:hs(ft)}}function $n(a,r){try{var o=r.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var h=c.next;o=h;do{if((o.tag&a)===a){c=void 0;var f=o.create,y=o.inst;c=f(),y.destroy=c}o=o.next}while(o!==h)}}catch(A){Ie(r,r.return,A)}}function Ks(a,r,o){try{var c=r.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var f=h.next;c=f;do{if((c.tag&a)===a){var y=c.inst,A=y.destroy;if(A!==void 0){y.destroy=void 0,h=r;var R=o,q=A;try{q()}catch(I){Ie(h,R,I)}}}c=c.next}while(c!==f)}}catch(I){Ie(r,r.return,I)}}function dg(a){var r=a.updateQueue;if(r!==null){var o=a.stateNode;try{ep(r,o)}catch(c){Ie(a,a.return,c)}}}function ug(a,r,o){o.props=Dr(a.type,a.memoizedProps),o.state=a.memoizedState;
vendor: 20,997 bytes, line 8
8try{o.componentWillUnmount()}catch(c){Ie(a,r,c)}}function In(a,r){try{var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof o=="function"?a.refCleanup=o(c):o.current=c}}catch(h){Ie(a,r,h)}}function Ga(a,r){var o=a.ref,c=a.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(h){Ie(a,r,h)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Ie(a,r,h)}else o.current=null}function hg(a){var r=a.type,o=a.memoizedProps,c=a.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(h){Ie(a,a.return,h)}}function eh(a,r,o){try{var c=a.stateNode;Bj(c,a.type,o,r),c[Ft]=r}catch(h){Ie(a,a.return,h)}}function mg(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&tr(a.type)||a.tag===4}function th(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||mg(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&tr(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function ah(a,r,o){var c=a.tag;if(c===5||c===6)a=a.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(a,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(a),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=os));else if(c!==4&&(c===27&&tr(a.type)&&(o=a.stateNode,r=null),a=a.child,a!==null))for(ah(a,r,o),a=a.sibling;a!==null;)ah(a,r,o),a=a.sibling}function Ul(a,r,o){var c=a.tag;if(c===5||c===6)a=a.stateNode,r?o.insertBefore(a,r):o.appendChild(a);else if(c!==4&&(c===27&&tr(a.type)&&(o=a.stateNode),a=a.child,a!==null))for(Ul(a,r,o),a=a.sibling;a!==null;)Ul(a,r,o),a=a.sibling}function xg(a){var r=a.stateNode,o=a.memoizedProps;try{for(var c=a.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Lt(r,c,o),r[Ct]=a,r[Ft]=o}catch(f){Ie(a,a.return,f)}}var gs=!1,bt=!1,sh=!1,fg=typeof WeakSet=="function"?WeakSet:Set,St=null;function gj(a,r){if(a=a.containerInfo,_h=oc,a=Cf(a),Yd(a)){if("selectionStart"in a)var o={start:a.selectionStart,end:a.selectionEnd};else e:{o=(o=a.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var h=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var y=0,A=-1,R=-1,q=0,I=0,W=a,U=null;t:for(;;){for(var F;W!==o||h!==0&&W.nodeType!==3||(A=y+h),W!==f||c!==0&&W.nodeType!==3||(R=y+c),W.nodeType===3&&(y+=W.nodeValue.length),(F=W.firstChild)!==null;)U=W,W=F;for(;;){if(W===a)break t;if(U===o&&++q===h&&(A=y),U===f&&++I===c&&(R=y),(F=W.nextSibling)!==null)break;W=U,U=W.parentNode}W=F}o=A===-1||R===-1?null:{start:A,end:R}}else o=null}o=o||{start:0,end:0}}else o=null;for(Sh={focusedElem:a,selectionRange:o},oc=!1,St=r;St!==null;)if(r=St,a=r.child,(r.subtreeFlags&1028)!==0&&a!==null)a.return=r,St=a;else for(;St!==null;){switch(r=St,f=r.alternate,a=r.flags,r.tag){case 0:if((a&4)!==0&&(a=r.updateQueue,a=a!==null?a.events:null,a!==null))for(o=0;o<a.length;o++)h=a[o],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&f!==null){a=void 0,o=r,h=f.memoizedProps,f=f.memoizedState,c=o.stateNode;try{var ne=Dr(o.type,h);a=c.getSnapshotBeforeUpdate(ne,f),c.__reactInternalSnapshotBeforeUpdate=a}catch(me){Ie(o,o.return,me)}}break;case 3:if((a&1024)!==0){if(a=r.stateNode.containerInfo,o=a.nodeType,o===9)Eh(a);else if(o===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Eh(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(n(163))}if(a=r.sibling,a!==null){a.return=r.return,St=a;break}St=r.return}}function pg(a,r,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:vs(a,o),c&4&&$n(5,o);break;case 1:if(vs(a,o),c&4)if(a=o.stateNode,r===null)try{a.componentDidMount()}catch(y){Ie(o,o.return,y)}else{var h=Dr(o.type,r.memoizedProps);r=r.memoizedState;try{a.componentDidUpdate(h,r,a.__reactInternalSnapshotBeforeUpdate)}catch(y){Ie(o,o.return,y)}}c&64&&dg(o),c&512&&In(o,o.return);break;case 3:if(vs(a,o),c&64&&(a=o.updateQueue,a!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{ep(a,r)}catch(y){Ie(o,o.return,y)}}break;case 27:r===null&&c&4&&xg(o);case 26:case 5:vs(a,o),r===null&&c&4&&hg(o),c&512&&In(o,o.return);break;case 12:vs(a,o);break;case 31:vs(a,o),c&4&&vg(a,o);break;case 13:vs(a,o),c&4&&yg(a,o),c&64&&(a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(o=kj.bind(null,o),Gj(a,o))));break;case 22:if(c=o.memoizedState!==null||gs,!c){r=r!==null&&r.memoizedState!==null||bt,h=gs;var f=bt;gs=c,(bt=r)&&!f?ys(a,o,(o.subtreeFlags&8772)!==0):vs(a,o),gs=h,bt=f}break;case 30:break;default:vs(a,o)}}function gg(a){var r=a.alternate;r!==null&&(a.alternate=null,gg(r)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(r=a.stateNode,r!==null&&Rd(r)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var et=null,It=!1;function bs(a,r,o){for(o=o.child;o!==null;)bg(a,r,o),o=o.sibling}function bg(a,r,o){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(mn,o)}catch{}switch(o.tag){case 26:bt||Ga(o,r),bs(a,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:bt||Ga(o,r);var c=et,h=It;tr(o.type)&&(et=o.stateNode,It=!1),bs(a,r,o),Xn(o.stateNode),et=c,It=h;break;case 5:bt||Ga(o,r);case 6:if(c=et,h=It,et=null,bs(a,r,o),et=c,It=h,et!==null)if(It)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(o.stateNode)}catch(f){Ie(o,r,f)}else try{et.removeChild(o.stateNode)}catch(f){Ie(o,r,f)}break;case 18:et!==null&&(It?(a=et,d0(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.stateNode),Ui(a)):d0(et,o.stateNode));break;case 4:c=et,h=It,et=o.stateNode.containerInfo,It=!0,bs(a,r,o),et=c,It=h;break;case 0:case 11:case 14:case 15:Ks(2,o,r),bt||Ks(4,o,r),bs(a,r,o);break;case 1:bt||(Ga(o,r),c=o.stateNode,typeof c.componentWillUnmount=="function"&&ug(o,r,c)),bs(a,r,o);break;case 21:bs(a,r,o);break;case 22:bt=(c=bt)||o.memoizedState!==null,bs(a,r,o),bt=c;break;default:bs(a,r,o)}}function vg(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Ui(a)}catch(o){Ie(r,r.return,o)}}}function yg(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Ui(a)}catch(o){Ie(r,r.return,o)}}function bj(a){switch(a.tag){case 31:case 13:case 19:var r=a.stateNode;return r===null&&(r=a.stateNode=new fg),r;case 22:return a=a.stateNode,r=a._retryCache,r===null&&(r=a._retryCache=new fg),r;default:throw Error(n(435,a.tag))}}function Fl(a,r){var o=bj(a);r.forEach(function(c){if(!o.has(c)){o.add(c);var h=Cj.bind(null,a,c);c.then(h,h)}})}function Ht(a,r){var o=r.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c],f=a,y=r,A=y;e:for(;A!==null;){switch(A.tag){case 27:if(tr(A.type)){et=A.stateNode,It=!1;break e}break;case 5:et=A.stateNode,It=!1;break e;case 3:case 4:et=A.stateNode.containerInfo,It=!0;break e}A=A.return}if(et===null)throw Error(n(160));bg(f,y,h),et=null,It=!1,f=h.alternate,f!==null&&(f.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)jg(r,a),r=r.sibling}var La=null;function jg(a,r){var o=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Ht(r,a),Vt(a),c&4&&(Ks(3,a,a.return),$n(3,a),Ks(5,a,a.return));break;case 1:Ht(r,a),Vt(a),c&512&&(bt||o===null||Ga(o,o.return)),c&64&&gs&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(o=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var h=La;if(Ht(r,a),Vt(a),c&512&&(bt||o===null||Ga(o,o.return)),c&4){var f=o!==null?o.memoizedState:null;if(c=a.memoizedState,o===null)if(c===null)if(a.stateNode===null){e:{c=a.type,o=a.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":f=h.getElementsByTagName("title")[0],(!f||f[pn]||f[Ct]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=h.createElement(c),h.head.insertBefore(f,h.querySelector("head > title"))),Lt(f,c,o),f[Ct]=a,_t(f),c=f;break e;case"link":var y=j0("link","href",h).get(c+(o.href||""));if(y){for(var A=0;A<y.length;A++)if(f=y[A],f.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&f.getAttribute("rel")===(o.rel==null?null:o.rel)&&f.getAttribute("title")===(o.title==null?null:o.title)&&f.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){y.splice(A,1);break t}}f=h.createElement(c),Lt(f,c,o),h.head.appendChild(f);break;case"meta":if(y=j0("meta","content",h).get(c+(o.content||""))){for(A=0;A<y.length;A++)if(f=y[A],f.getAttribute("content")===(o.content==null?null:""+o.content)&&f.getAttribute("name")===(o.name==null?null:o.name)&&f.getAttribute("property")===(o.property==null?null:o.property)&&f.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&f.getAttribute("charset")===(o.charSet==null?null:o.charSet)){y.splice(A,1);break t}}f=h.createElement(c),Lt(f,c,o),h.head.appendChild(f);break;default:throw Error(n(468,c))}f[Ct]=a,_t(f),c=f}a.stateNode=c}else N0(h,a.type,a.stateNode);else a.stateNode=y0(h,c,a.memoizedProps);else f!==c?(f===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):f.count--,c===null?N0(h,a.type,a.stateNode):y0(h,c,a.memoizedProps)):c===null&&a.stateNode!==null&&eh(a,a.memoizedProps,o.memoizedProps)}break;case 27:Ht(r,a),Vt(a),c&512&&(bt||o===null||Ga(o,o.return)),o!==null&&c&4&&eh(a,a.memoizedProps,o.memoizedProps);break;case 5:if(Ht(r,a),Vt(a),c&512&&(bt||o===null||Ga(o,o.return)),a.flags&32){h=a.stateNode;try{ci(h,"")}catch(ne){Ie(a,a.return,ne)}}c&4&&a.stateNode!=null&&(h=a.memoizedProps,eh(a,h,o!==null?o.memoizedProps:h)),c&1024&&(sh=!0);break;case 6:if(Ht(r,a),Vt(a),c&4){if(a.stateNode===null)throw Error(n(162));c=a.memoizedProps,o=a.stateNode;try{o.nodeValue=c}catch(ne){Ie(a,a.return,ne)}}break;case 3:if(sc=null,h=La,La=tc(r.containerInfo),Ht(r,a),La=h,Vt(a),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Ui(r.containerInfo)}catch(ne){Ie(a,a.return,ne)}sh&&(sh=!1,Ng(a));break;case 4:c=La,La=tc(a.stateNode.containerInfo),Ht(r,a),Vt(a),La=c;break;case 12:Ht(r,a),Vt(a);break;case 31:Ht(r,a),Vt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,Fl(a,c)));break;case 13:Ht(r,a),Vt(a),a.child.flags&8192&&a.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Il=Xt()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,Fl(a,c)));break;case 22:h=a.memoizedState!==null;var R=o!==null&&o.memoizedState!==null,q=gs,I=bt;if(gs=q||h,bt=I||R,Ht(r,a),bt=I,gs=q,Vt(a),c&8192)e:for(r=a.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(o===null||R||gs||bt||Mr(a)),o=null,r=a;;){if(r.tag===5||r.tag===26){if(o===null){R=o=r;try{if(f=R.stateNode,h)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{A=R.stateNode;var W=R.memoizedProps.style,U=W!=null&&W.hasOwnProperty("display")?W.display:null;A.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ne){Ie(R,R.return,ne)}}}else if(r.tag===6){if(o===null){R=r;try{R.stateNode.nodeValue=h?"":R.memoizedProps}catch(ne){Ie(R,R.return,ne)}}}else if(r.tag===18){if(o===null){R=r;try{var F=R.stateNode;h?u0(F,!0):u0(R.stateNode,!1)}catch(ne){Ie(R,R.return,ne)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===a)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}c&4&&(c=a.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Fl(a,o))));break;case 19:Ht(r,a),Vt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,Fl(a,c)));break;case 30:break;case 21:break;default:Ht(r,a),Vt(a)}}function Vt(a){var r=a.flags;if(r&2){try{for(var o,c=a.return;c!==null;){if(mg(c)){o=c;break}c=c.return}if(o==null)throw Error(n(160));switch(o.tag){case 27:var h=o.stateNode,f=th(a);Ul(a,f,h);break;case 5:var y=o.stateNode;o.flags&32&&(ci(y,""),o.flags&=-33);var A=th(a);Ul(a,A,y);break;case 3:case 4:var R=o.stateNode.containerInfo,q=th(a);ah(a,q,R);break;default:throw Error(n(161))}}catch(I){Ie(a,a.return,I)}a.flags&=-3}r&4096&&(a.flags&=-4097)}function Ng(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var r=a;Ng(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),a=a.sibling}}function vs(a,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)pg(a,r.alternate,r),r=r.sibling}function Mr(a){for(a=a.child;a!==null;){var r=a;switch(r.tag){case 0:case 11:case 14:case 15:Ks(4,r,r.return),Mr(r);break;case 1:Ga(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&ug(r,r.return,o),Mr(r);break;case 27:Xn(r.stateNode);case 26:case 5:Ga(r,r.return),Mr(r);break;case 22:r.memoizedState===null&&Mr(r);break;case 30:Mr(r);break;default:Mr(r)}a=a.sibling}}function ys(a,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var c=r.alternate,h=a,f=r,y=f.flags;switch(f.tag){case 0:case 11:case 15:ys(h,f,o),$n(4,f);break;case 1:if(ys(h,f,o),c=f,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(q){Ie(c,c.return,q)}if(c=f,h=c.updateQueue,h!==null){var A=c.stateNode;try{var R=h.shared.hiddenCallbacks;if(R!==null)for(h.shared.hiddenCallbacks=null,h=0;h<R.length;h++)Zf(R[h],A)}catch(q){Ie(c,c.return,q)}}o&&y&64&&dg(f),In(f,f.return);break;case 27:xg(f);case 26:case 5:ys(h,f,o),o&&c===null&&y&4&&hg(f),In(f,f.return);break;case 12:ys(h,f,o);break;case 31:ys(h,f,o),o&&y&4&&vg(h,f);break;case 13:ys(h,f,o),o&&y&4&&yg(h,f);break;case 22:f.memoizedState===null&&ys(h,f,o),In(f,f.return);break;case 30:break;default:ys(h,f,o)}r=r.sibling}}function rh(a,r){var o=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==o&&(a!=null&&a.refCount++,o!=null&&An(o))}function ih(a,r){a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&An(a))}function Oa(a,r,o,c){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)wg(a,r,o,c),r=r.sibling}function wg(a,r,o,c){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Oa(a,r,o,c),h&2048&&$n(9,r);break;case 1:Oa(a,r,o,c);break;case 3:Oa(a,r,o,c),h&2048&&(a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&An(a)));break;case 12:if(h&2048){Oa(a,r,o,c),a=r.stateNode;try{var f=r.memoizedProps,y=f.id,A=f.onPostCommit;typeof A=="function"&&A(y,r.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(R){Ie(r,r.return,R)}}else Oa(a,r,o,c);break;case 31:Oa(a,r,o,c);break;case 13:Oa(a,r,o,c);break;case 23:break;case 22:f=r.stateNode,y=r.alternate,r.memoizedState!==null?f._visibility&2?Oa(a,r,o,c):Hn(a,r):f._visibility&2?Oa(a,r,o,c):(f._visibility|=2,Ai(a,r,o,c,(r.subtreeFlags&10256)!==0||!1)),h&2048&&rh(y,r);break;case 24:Oa(a,r,o,c),h&2048&&ih(r.alternate,r);break;default:Oa(a,r,o,c)}}function Ai(a,r,o,c,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var f=a,y=r,A=o,R=c,q=y.flags;switch(y.tag){case 0:case 11:case 15:Ai(f,y,A,R,h),$n(8,y);break;case 23:break;case 22:var I=y.stateNode;y.memoizedState!==null?I._visibility&2?Ai(f,y,A,R,h):Hn(f,y):(I._visibility|=2,Ai(f,y,A,R,h)),h&&q&2048&&rh(y.alternate,y);break;case 24:Ai(f,y,A,R,h),h&&q&2048&&ih(y.alternate,y);break;default:Ai(f,y,A,R,h)}r=r.sibling}}function Hn(a,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=a,c=r,h=c.flags;switch(c.tag){case 22:Hn(o,c),h&2048&&rh(c.alternate,c);break;case 24:Hn(o,c),h&2048&&ih(c.alternate,c);break;default:Hn(o,c)}r=r.sibling}}var Vn=8192;function Ti(a,r,o){if(a.subtreeFlags&Vn)for(a=a.child;a!==null;)_g(a,r,o),a=a.sibling}function _g(a,r,o){switch(a.tag){case 26:Ti(a,r,o),a.flags&Vn&&a.memoizedState!==null&&rN(o,La,a.memoizedState,a.memoizedProps);break;case 5:Ti(a,r,o);break;case 3:case 4:var c=La;La=tc(a.stateNode.containerInfo),Ti(a,r,o),La=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=Vn,Vn=16777216,Ti(a,r,o),Vn=c):Ti(a,r,o));break;default:Ti(a,r,o)}}function Sg(a){var r=a.alternate;if(r!==null&&(a=r.child,a!==null)){r.child=null;do r=a.sibling,a.sibling=null,a=r;while(a!==null)}}function Gn(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var c=r[o];St=c,Cg(c,a)}Sg(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)kg(a),a=a.sibling}function kg(a){switch(a.tag){case 0:case 11:case 15:Gn(a),a.flags&2048&&Ks(9,a,a.return);break;case 3:Gn(a);break;case 12:Gn(a);break;case 22:var r=a.stateNode;a.memoizedState!==null&&r._visibility&2&&(a.return===null||a.return.tag!==13)?(r._visibility&=-3,$l(a)):Gn(a);break;default:Gn(a)}}function $l(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var c=r[o];St=c,Cg(c,a)}Sg(a)}for(a=a.child;a!==null;){switch(r=a,r.tag){case 0:case 11:case 15:Ks(8,r,r.return),$l(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,$l(r));break;default:$l(r)}a=a.sibling}}function Cg(a,r){for(;St!==null;){var o=St;switch(o.tag){case 0:case 11:case 15:Ks(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:An(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,St=c;else e:for(o=a;St!==null;){c=St;var h=c.sibling,f=c.return;if(gg(c),c===o){St=null;break e}if(h!==null){h.return=f,St=h;break e}St=f}}}var vj={getCacheForType:function(a){var r=At(ft),o=r.data.get(a);return o===void 0&&(o=a(),r.data.set(a,o)),o},cacheSignal:function(){return At(ft).controller.signal}},yj=typeof WeakMap=="function"?WeakMap:Map,qe=0,Je=null,Te=null,Oe=0,$e=0,ia=null,Js=!1,Li=!1,nh=!1,js=0,it=0,Ys=0,Pr=0,oh=0,na=0,Oi=0,Wn=null,Gt=null,lh=!1,Il=0,Eg=0,Hl=1/0,Vl=null,Qs=null,wt=0,Xs=null,Ri=null,Ns=0,ch=0,dh=null,Ag=null,Kn=0,uh=null;function oa(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:H.T!==null?gh():Hx()}function Tg(){if(na===0)if((Oe&536870912)===0||ze){var a=Zo;Zo<<=1,(Zo&3932160)===0&&(Zo=262144),na=a}else na=536870912;return a=sa.current,a!==null&&(a.flags|=32),na}function Wt(a,r,o){(a===Je&&($e===2||$e===9)||a.cancelPendingCommit!==null)&&(zi(a,0),Zs(a,Oe,na,!1)),fn(a,o),((qe&2)===0||a!==Je)&&(a===Je&&((qe&2)===0&&(Pr|=o),it===4&&Zs(a,Oe,na,!1)),Wa(a))}function Lg(a,r,o){if((qe&6)!==0)throw Error(n(327));var c=!o&&(r&127)===0&&(r&a.expiredLanes)===0||xn(a,r),h=c?wj(a,r):mh(a,r,!0),f=c;do{if(h===0){Li&&!c&&Zs(a,r,0,!1);break}else{if(o=a.current.alternate,f&&!jj(o)){h=mh(a,r,!1),f=!1;continue}if(h===2){if(f=r,a.errorRecoveryDisabledLanes&f)var y=0;else y=a.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){r=y;e:{var A=a;h=Wn;var R=A.current.memoizedState.isDehydrated;if(R&&(zi(A,y).flags|=256),y=mh(A,y,!1),y!==2){if(nh&&!R){A.errorRecoveryDisabledLanes|=f,Pr|=f,h=4;break e}f=Gt,Gt=h,f!==null&&(Gt===null?Gt=f:Gt.push.apply(Gt,f))}h=y}if(f=!1,h!==2)continue}}if(h===1){zi(a,0),Zs(a,r,0,!0);break}e:{switch(c=a,f=h,f){case 0:case 1:throw Error(n(345));case 4:if((r&4194048)!==r)break;case 6:Zs(c,r,na,!Js);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(n(329))}if((r&62914560)===r&&(h=Il+300-Xt(),10<h)){if(Zs(c,r,na,!Js),tl(c,0,!0)!==0)break e;Ns=r,c.timeoutHandle=l0(Og.bind(null,c,o,Gt,Vl,lh,r,na,Pr,Oi,Js,f,"Throttled",-0,0),h);break e}Og(c,o,Gt,Vl,lh,r,na,Pr,Oi,Js,f,null,-0,0)}}break}while(!0);Wa(a)}function Og(a,r,o,c,h,f,y,A,R,q,I,W,U,F){if(a.timeoutHandle=-1,W=r.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:os},_g(r,f,W);var ne=(f&62914560)===f?Il-Xt():(f&4194048)===f?Eg-Xt():0;if(ne=iN(W,ne),ne!==null){Ns=f,a.cancelPendingCommit=ne(Ug.bind(null,a,r,f,o,c,h,y,A,R,I,W,null,U,F)),Zs(a,f,y,!q);return}}Ug(a,r,f,o,c,h,y,A,R)}function jj(a){for(var r=a;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var h=o[c],f=h.getSnapshot;h=h.value;try{if(!ta(f(),h))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Zs(a,r,o,c){r&=~oh,r&=~Pr,a.suspendedLanes|=r,a.pingedLanes&=~r,c&&(a.warmLanes|=r),c=a.expirationTimes;for(var h=r;
vendor: 19,035 bytes, line 8
80<h;){var f=31-ea(h),y=1<<f;c[f]=-1,h&=~y}o!==0&&Fx(a,o,r)}function Gl(){return(qe&6)===0?(Jn(0),!1):!0}function hh(){if(Te!==null){if($e===0)var a=Te.return;else a=Te,us=Er=null,Eu(a),_i=null,Ln=0,a=Te;for(;a!==null;)cg(a.alternate,a),a=a.return;Te=null}}function zi(a,r){var o=a.timeoutHandle;o!==-1&&(a.timeoutHandle=-1,Fj(o)),o=a.cancelPendingCommit,o!==null&&(a.cancelPendingCommit=null,o()),Ns=0,hh(),Je=a,Te=o=cs(a.current,null),Oe=r,$e=0,ia=null,Js=!1,Li=xn(a,r),nh=!1,Oi=na=oh=Pr=Ys=it=0,Gt=Wn=null,lh=!1,(r&8)!==0&&(r|=r&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=r;0<c;){var h=31-ea(c),f=1<<h;r|=a[h],c&=~f}return js=r,ml(),o}function Rg(a,r){ye=null,H.H=qn,r===wi||r===jl?(r=Jf(),$e=3):r===pu?(r=Jf(),$e=4):$e=r===Hu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,ia=r,Te===null&&(it=1,Dl(a,pa(r,a.current)))}function zg(){var a=sa.current;return a===null?!0:(Oe&4194048)===Oe?ya===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?a===ya:!1}function Dg(){var a=H.H;return H.H=qn,a===null?qn:a}function Mg(){var a=H.A;return H.A=vj,a}function Wl(){it=4,Js||(Oe&4194048)!==Oe&&sa.current!==null||(Li=!0),(Ys&134217727)===0&&(Pr&134217727)===0||Je===null||Zs(Je,Oe,na,!1)}function mh(a,r,o){var c=qe;qe|=2;var h=Dg(),f=Mg();(Je!==a||Oe!==r)&&(Vl=null,zi(a,r)),r=!1;var y=it;e:do try{if($e!==0&&Te!==null){var A=Te,R=ia;switch($e){case 8:hh(),y=6;break e;case 3:case 2:case 9:case 6:sa.current===null&&(r=!0);var q=$e;if($e=0,ia=null,Di(a,A,R,q),o&&Li){y=0;break e}break;default:q=$e,$e=0,ia=null,Di(a,A,R,q)}}Nj(),y=it;break}catch(I){Rg(a,I)}while(!0);return r&&a.shellSuspendCounter++,us=Er=null,qe=c,H.H=h,H.A=f,Te===null&&(Je=null,Oe=0,ml()),y}function Nj(){for(;Te!==null;)Pg(Te)}function wj(a,r){var o=qe;qe|=2;var c=Dg(),h=Mg();Je!==a||Oe!==r?(Vl=null,Hl=Xt()+500,zi(a,r)):Li=xn(a,r);e:do try{if($e!==0&&Te!==null){r=Te;var f=ia;t:switch($e){case 1:$e=0,ia=null,Di(a,r,f,1);break;case 2:case 9:if(Wf(f)){$e=0,ia=null,Bg(r);break}r=function(){$e!==2&&$e!==9||Je!==a||($e=7),Wa(a)},f.then(r,r);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Wf(f)?($e=0,ia=null,Bg(r)):($e=0,ia=null,Di(a,r,f,7));break;case 5:var y=null;switch(Te.tag){case 26:y=Te.memoizedState;case 5:case 27:var A=Te;if(y?w0(y):A.stateNode.complete){$e=0,ia=null;var R=A.sibling;if(R!==null)Te=R;else{var q=A.return;q!==null?(Te=q,Kl(q)):Te=null}break t}}$e=0,ia=null,Di(a,r,f,5);break;case 6:$e=0,ia=null,Di(a,r,f,6);break;case 8:hh(),it=6;break e;default:throw Error(n(462))}}_j();break}catch(I){Rg(a,I)}while(!0);return us=Er=null,H.H=c,H.A=h,qe=o,Te!==null?0:(Je=null,Oe=0,ml(),it)}function _j(){for(;Te!==null&&!Wy();)Pg(Te)}function Pg(a){var r=og(a.alternate,a,js);a.memoizedProps=a.pendingProps,r===null?Kl(a):Te=r}function Bg(a){var r=a,o=r.alternate;switch(r.tag){case 15:case 0:r=tg(o,r,r.pendingProps,r.type,void 0,Oe);break;case 11:r=tg(o,r,r.pendingProps,r.type.render,r.ref,Oe);break;case 5:Eu(r);default:cg(o,r),r=Te=Mf(r,js),r=og(o,r,js)}a.memoizedProps=a.pendingProps,r===null?Kl(a):Te=r}function Di(a,r,o,c){us=Er=null,Eu(r),_i=null,Ln=0;var h=r.return;try{if(hj(a,h,r,o,Oe)){it=1,Dl(a,pa(o,a.current)),Te=null;return}}catch(f){if(h!==null)throw Te=h,f;it=1,Dl(a,pa(o,a.current)),Te=null;return}r.flags&32768?(ze||c===1?a=!0:Li||(Oe&536870912)!==0?a=!1:(Js=a=!0,(c===2||c===9||c===3||c===6)&&(c=sa.current,c!==null&&c.tag===13&&(c.flags|=16384))),qg(r,a)):Kl(r)}function Kl(a){var r=a;do{if((r.flags&32768)!==0){qg(r,Js);return}a=r.return;var o=fj(r.alternate,r,js);if(o!==null){Te=o;return}if(r=r.sibling,r!==null){Te=r;return}Te=r=a}while(r!==null);it===0&&(it=5)}function qg(a,r){do{var o=pj(a.alternate,a);if(o!==null){o.flags&=32767,Te=o;return}if(o=a.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(a=a.sibling,a!==null)){Te=a;return}Te=a=o}while(a!==null);it=6,Te=null}function Ug(a,r,o,c,h,f,y,A,R){a.cancelPendingCommit=null;do Jl();while(wt!==0);if((qe&6)!==0)throw Error(n(327));if(r!==null){if(r===a.current)throw Error(n(177));if(f=r.lanes|r.childLanes,f|=tu,s1(a,o,f,y,A,R),a===Je&&(Te=Je=null,Oe=0),Ri=r,Xs=a,Ns=o,ch=f,dh=h,Ag=c,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,Ej(Qo,function(){return Vg(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||c){c=H.T,H.T=null,h=te.p,te.p=2,y=qe,qe|=4;try{gj(a,r,o)}finally{qe=y,te.p=h,H.T=c}}wt=1,Fg(),$g(),Ig()}}function Fg(){if(wt===1){wt=0;var a=Xs,r=Ri,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=H.T,H.T=null;var c=te.p;te.p=2;var h=qe;qe|=4;try{jg(r,a);var f=Sh,y=Cf(a.containerInfo),A=f.focusedElem,R=f.selectionRange;if(y!==A&&A&&A.ownerDocument&&kf(A.ownerDocument.documentElement,A)){if(R!==null&&Yd(A)){var q=R.start,I=R.end;if(I===void 0&&(I=q),"selectionStart"in A)A.selectionStart=q,A.selectionEnd=Math.min(I,A.value.length);else{var W=A.ownerDocument||document,U=W&&W.defaultView||window;if(U.getSelection){var F=U.getSelection(),ne=A.textContent.length,me=Math.min(R.start,ne),Ge=R.end===void 0?me:Math.min(R.end,ne);!F.extend&&me>Ge&&(y=Ge,Ge=me,me=y);var P=Sf(A,me),M=Sf(A,Ge);if(P&&M&&(F.rangeCount!==1||F.anchorNode!==P.node||F.anchorOffset!==P.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var B=W.createRange();B.setStart(P.node,P.offset),F.removeAllRanges(),me>Ge?(F.addRange(B),F.extend(M.node,M.offset)):(B.setEnd(M.node,M.offset),F.addRange(B))}}}}for(W=[],F=A;F=F.parentNode;)F.nodeType===1&&W.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<W.length;A++){var V=W[A];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}oc=!!_h,Sh=_h=null}finally{qe=h,te.p=c,H.T=o}}a.current=r,wt=2}}function $g(){if(wt===2){wt=0;var a=Xs,r=Ri,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=H.T,H.T=null;var c=te.p;te.p=2;var h=qe;qe|=4;try{pg(a,r.alternate,r)}finally{qe=h,te.p=c,H.T=o}}wt=3}}function Ig(){if(wt===4||wt===3){wt=0,Ky();var a=Xs,r=Ri,o=Ns,c=Ag;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?wt=5:(wt=0,Ri=Xs=null,Hg(a,a.pendingLanes));var h=a.pendingLanes;if(h===0&&(Qs=null),Ld(o),r=r.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(mn,r,void 0,(r.current.flags&128)===128)}catch{}if(c!==null){r=H.T,h=te.p,te.p=2,H.T=null;try{for(var f=a.onRecoverableError,y=0;y<c.length;y++){var A=c[y];f(A.value,{componentStack:A.stack})}}finally{H.T=r,te.p=h}}(Ns&3)!==0&&Jl(),Wa(a),h=a.pendingLanes,(o&261930)!==0&&(h&42)!==0?a===uh?Kn++:(Kn=0,uh=a):Kn=0,Jn(0)}}function Hg(a,r){(a.pooledCacheLanes&=r)===0&&(r=a.pooledCache,r!=null&&(a.pooledCache=null,An(r)))}function Jl(){return Fg(),$g(),Ig(),Vg()}function Vg(){if(wt!==5)return!1;var a=Xs,r=ch;ch=0;var o=Ld(Ns),c=H.T,h=te.p;try{te.p=32>o?32:o,H.T=null,o=dh,dh=null;var f=Xs,y=Ns;if(wt=0,Ri=Xs=null,Ns=0,(qe&6)!==0)throw Error(n(331));var A=qe;if(qe|=4,kg(f.current),wg(f,f.current,y,o),qe=A,Jn(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(mn,f)}catch{}return!0}finally{te.p=h,H.T=c,Hg(a,r)}}function Gg(a,r,o){r=pa(o,r),r=Iu(a.stateNode,r,2),a=Vs(a,r,2),a!==null&&(fn(a,2),Wa(a))}function Ie(a,r,o){if(a.tag===3)Gg(a,a,o);else for(;r!==null;){if(r.tag===3){Gg(r,a,o);break}else if(r.tag===1){var c=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qs===null||!Qs.has(c))){a=pa(o,a),o=Wp(2),c=Vs(r,o,2),c!==null&&(Kp(o,c,r,a),fn(c,2),Wa(c));break}}r=r.return}}function xh(a,r,o){var c=a.pingCache;if(c===null){c=a.pingCache=new yj;var h=new Set;c.set(r,h)}else h=c.get(r),h===void 0&&(h=new Set,c.set(r,h));h.has(o)||(nh=!0,h.add(o),a=Sj.bind(null,a,r,o),r.then(a,a))}function Sj(a,r,o){var c=a.pingCache;c!==null&&c.delete(r),a.pingedLanes|=a.suspendedLanes&o,a.warmLanes&=~o,Je===a&&(Oe&o)===o&&(it===4||it===3&&(Oe&62914560)===Oe&&300>Xt()-Il?(qe&2)===0&&zi(a,0):oh|=o,Oi===Oe&&(Oi=0)),Wa(a)}function Wg(a,r){r===0&&(r=Ux()),a=Sr(a,r),a!==null&&(fn(a,r),Wa(a))}function kj(a){var r=a.memoizedState,o=0;r!==null&&(o=r.retryLane),Wg(a,o)}function Cj(a,r){var o=0;switch(a.tag){case 31:case 13:var c=a.stateNode,h=a.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(n(314))}c!==null&&c.delete(r),Wg(a,o)}function Ej(a,r){return Cd(a,r)}var Yl=null,Mi=null,fh=!1,Ql=!1,ph=!1,er=0;function Wa(a){a!==Mi&&a.next===null&&(Mi===null?Yl=Mi=a:Mi=Mi.next=a),Ql=!0,fh||(fh=!0,Tj())}function Jn(a,r){if(!ph&&Ql){ph=!0;do for(var o=!1,c=Yl;c!==null;){if(a!==0){var h=c.pendingLanes;if(h===0)var f=0;else{var y=c.suspendedLanes,A=c.pingedLanes;f=(1<<31-ea(42|a)+1)-1,f&=h&~(y&~A),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(o=!0,Qg(c,f))}else f=Oe,f=tl(c,c===Je?f:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(f&3)===0||xn(c,f)||(o=!0,Qg(c,f));c=c.next}while(o);ph=!1}}function Aj(){Kg()}function Kg(){Ql=fh=!1;var a=0;er!==0&&Uj()&&(a=er);for(var r=Xt(),o=null,c=Yl;c!==null;){var h=c.next,f=Jg(c,r);f===0?(c.next=null,o===null?Yl=h:o.next=h,h===null&&(Mi=o)):(o=c,(a!==0||(f&3)!==0)&&(Ql=!0)),c=h}wt!==0&&wt!==5||Jn(a),er!==0&&(er=0)}function Jg(a,r){for(var o=a.suspendedLanes,c=a.pingedLanes,h=a.expirationTimes,f=a.pendingLanes&-62914561;0<f;){var y=31-ea(f),A=1<<y,R=h[y];R===-1?((A&o)===0||(A&c)!==0)&&(h[y]=a1(A,r)):R<=r&&(a.expiredLanes|=A),f&=~A}if(r=Je,o=Oe,o=tl(a,a===r?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,o===0||a===r&&($e===2||$e===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&Ed(c),a.callbackNode=null,a.callbackPriority=0;if((o&3)===0||xn(a,o)){if(r=o&-o,r===a.callbackPriority)return r;switch(c!==null&&Ed(c),Ld(o)){case 2:case 8:o=Bx;break;case 32:o=Qo;break;case 268435456:o=qx;break;default:o=Qo}return c=Yg.bind(null,a),o=Cd(o,c),a.callbackPriority=r,a.callbackNode=o,r}return c!==null&&c!==null&&Ed(c),a.callbackPriority=2,a.callbackNode=null,2}function Yg(a,r){if(wt!==0&&wt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var o=a.callbackNode;if(Jl()&&a.callbackNode!==o)return null;var c=Oe;return c=tl(a,a===Je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(Lg(a,c,r),Jg(a,Xt()),a.callbackNode!=null&&a.callbackNode===o?Yg.bind(null,a):null)}function Qg(a,r){if(Jl())return null;Lg(a,r,!0)}function Tj(){$j(function(){(qe&6)!==0?Cd(Px,Aj):Kg()})}function gh(){if(er===0){var a=ji;a===0&&(a=Xo,Xo<<=1,(Xo&261888)===0&&(Xo=256)),er=a}return er}function Xg(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:il(""+a)}function Zg(a,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,a.id&&o.setAttribute("form",a.id),r.parentNode.insertBefore(o,r),a=new FormData(a),o.parentNode.removeChild(o),a}function Lj(a,r,o,c,h){if(r==="submit"&&o&&o.stateNode===h){var f=Xg((h[Ft]||null).action),y=c.submitter;y&&(r=(r=y[Ft]||null)?Xg(r.formAction):y.getAttribute("formAction"),r!==null&&(f=r,y=null));var A=new cl("action","action",null,c,h);a.push({event:A,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(er!==0){var R=y?Zg(h,y):new FormData(h);Pu(o,{pending:!0,data:R,method:h.method,action:f},null,R)}}else typeof f=="function"&&(A.preventDefault(),R=y?Zg(h,y):new FormData(h),Pu(o,{pending:!0,data:R,method:h.method,action:f},f,R))},currentTarget:h}]})}}for(var bh=0;bh<eu.length;bh++){var vh=eu[bh],Oj=vh.toLowerCase(),Rj=vh[0].toUpperCase()+vh.slice(1);Ta(Oj,"on"+Rj)}Ta(Tf,"onAnimationEnd"),Ta(Lf,"onAnimationIteration"),Ta(Of,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(J1,"onTransitionRun"),Ta(Y1,"onTransitionStart"),Ta(Q1,"onTransitionCancel"),Ta(Rf,"onTransitionEnd"),oi("onMouseEnter",["mouseout","mouseover"]),oi("onMouseLeave",["mouseout","mouseover"]),oi("onPointerEnter",["pointerout","pointerover"]),oi("onPointerLeave",["pointerout","pointerover"]),jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jr("onBeforeInput",["compositionend","keypress","textInput","paste"]),jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yn));function e0(a,r){r=(r&4)!==0;for(var o=0;o<a.length;o++){var c=a[o],h=c.event;c=c.listeners;e:{var f=void 0;if(r)for(var y=c.length-1;0<=y;y--){var A=c[y],R=A.instance,q=A.currentTarget;if(A=A.listener,R!==f&&h.isPropagationStopped())break e;f=A,h.currentTarget=q;try{f(h)}catch(I){hl(I)}h.currentTarget=null,f=R}else for(y=0;y<c.length;y++){if(A=c[y],R=A.instance,q=A.currentTarget,A=A.listener,R!==f&&h.isPropagationStopped())break e;f=A,h.currentTarget=q;try{f(h)}catch(I){hl(I)}h.currentTarget=null,f=R}}}}function Le(a,r){var o=r[Od];o===void 0&&(o=r[Od]=new Set);var c=a+"__bubble";o.has(c)||(t0(r,a,2,!1),o.add(c))}function yh(a,r,o){var c=0;r&&(c|=4),t0(o,a,c,r)}var Xl="_reactListening"+Math.random().toString(36).slice(2);function jh(a){if(!a[Xl]){a[Xl]=!0,Wx.forEach(function(o){o!=="selectionchange"&&(zj.has(o)||yh(o,!1,a),yh(o,!0,a))});var r=a.nodeType===9?a:a.ownerDocument;r===null||r[Xl]||(r[Xl]=!0,yh("selectionchange",!1,r))}}function t0(a,r,o,c){switch(T0(r)){case 2:var h=lN;break;case 8:h=cN;break;default:h=Mh}o=h.bind(null,r,o,a),h=void 0,!Fd||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),c?h!==void 0?a.addEventListener(r,o,{capture:!0,passive:h}):a.addEventListener(r,o,!0):h!==void 0?a.addEventListener(r,o,{passive:h}):a.addEventListener(r,o,!1)}function Nh(a,r,o,c,h){var f=c;if((r&1)===0&&(r&2)===0&&c!==null)e:for(;;){if(c===null)return;var y=c.tag;if(y===3||y===4){var A=c.stateNode.containerInfo;if(A===h)break;if(y===4)for(y=c.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===h)return;y=y.return}for(;A!==null;){if(y=ri(A),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){c=f=y;continue e}A=A.parentNode}}c=c.return}nf(function(){var q=f,I=qd(o),W=[];e:{var U=zf.get(a);if(U!==void 0){var F=cl,ne=a;switch(a){case"keypress":if(ol(o)===0)break e;case"keydown":case"keyup":F=C1;break;case"focusin":ne="focus",F=Vd;break;case"focusout":ne="blur",F=Vd;break;case"beforeblur":case"afterblur":F=Vd;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=f1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=T1;break;case Tf:case Lf:case Of:F=b1;break;case Rf:F=O1;break;case"scroll":case"scrollend":F=m1;break;case"wheel":F=z1;break;case"copy":case"cut":case"paste":F=y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=uf;break;case"toggle":case"beforetoggle":F=M1}var me=(r&4)!==0,Ge=!me&&(a==="scroll"||a==="scrollend"),P=me?U!==null?U+"Capture":null:U;me=[];for(var M=q,B;M!==null;){var V=M;if(B=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||B===null||P===null||(V=bn(M,P),V!=null&&me.push(Qn(M,V,B))),Ge)break;M=M.return}0<me.length&&(U=new F(U,ne,null,o,I),W.push({event:U,listeners:me}))}}if((r&7)===0){e:{if(U=a==="mouseover"||a==="pointerover",F=a==="mouseout"||a==="pointerout",U&&o!==Bd&&(ne=o.relatedTarget||o.fromElement)&&(ri(ne)||ne[si]))break e;if((F||U)&&(U=I.window===I?I:(U=I.ownerDocument)?U.defaultView||U.parentWindow:window,F?(ne=o.relatedTarget||o.toElement,F=q,ne=ne?ri(ne):null,ne!==null&&(Ge=d(ne),me=ne.tag,ne!==Ge||me!==5&&me!==27&&me!==6)&&(ne=null)):(F=null,ne=q),F!==ne)){if(me=cf,V="onMouseLeave",P="onMouseEnter",M="mouse",(a==="pointerout"||a==="pointerover")&&(me=uf,V="onPointerLeave",P="onPointerEnter",M="pointer"),Ge=F==null?U:gn(F),B=ne==null?U:gn(ne),U=new me(V,M+"leave",F,o,I),U.target=Ge,U.relatedTarget=B,V=null,ri(I)===q&&(me=new me(P,M+"enter",ne,o,I),me.target=B,me.relatedTarget=Ge,V=me),Ge=V,F&&ne)t:{for(me=Dj,P=F,M=ne,B=0,V=P;V;V=me(V))B++;V=0;for(var de=M;de;de=me(de))V++;for(;0<B-V;)P=me(P),B--;for(;0<V-B;)M=me(M),V--;for(;B--;){if(P===M||M!==null&&P===M.alternate){me=P;break t}P=me(P),M=me(M)}me=null}else me=null;F!==null&&a0(W,U,F,me,!1),ne!==null&&Ge!==null&&a0(W,Ge,ne,me,!0)}}e:{if(U=q?gn(q):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var Pe=vf;else if(gf(U))if(yf)Pe=G1;else{Pe=H1;var ce=I1}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?q&&Pd(q.elementType)&&(Pe=vf):Pe=V1;if(Pe&&(Pe=Pe(a,q))){bf(W,Pe,o,I);break e}ce&&ce(a,U,q),a==="focusout"&&q&&U.type==="number"&&q.memoizedProps.value!=null&&Md(U,"number",U.value)}switch(ce=q?gn(q):window,a){case"focusin":(gf(ce)||ce.contentEditable==="true")&&(mi=ce,Qd=q,kn=null);break;case"focusout":kn=Qd=mi=null;break;case"mousedown":Xd=!0;break;case"contextmenu":case"mouseup":case"dragend":Xd=!1,Ef(W,o,I);break;case"selectionchange":if(K1)break;case"keydown":case"keyup":Ef(W,o,I)}var _e;if(Wd)e:{switch(a){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else hi?ff(a,o)&&(Re="onCompositionEnd"):a==="keydown"&&o.keyCode===229&&(Re="onCompositionStart");Re&&(hf&&o.locale!=="ko"&&(hi||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&hi&&(_e=of()):(Bs=I,$d="value"in Bs?Bs.value:Bs.textContent,hi=!0)),ce=Zl(q,Re),0<ce.length&&(Re=new df(Re,a,null,o,I),W.push({event:Re,listeners:ce}),_e?Re.data=_e:(_e=pf(o),_e!==null&&(Re.data=_e)))),(_e=B1?q1(a,o):U1(a,o))&&(Re=Zl(q,"onBeforeInput"),0<Re.length&&(ce=new df("onBeforeInput","beforeinput",null,o,I),W.push({event:ce,listeners:Re}),ce.data=_e)),Lj(W,a,q,o,I)}e0(W,r)})}function Qn(a,r,o){return{instance:a,listener:r,currentTarget:o}}function Zl(a,r){for(var o=r+"Capture",c=[];a!==null;){var h=a,f=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||f===null||(h=bn(a,o),h!=null&&c.unshift(Qn(a,h,f)),h=bn(a,r),h!=null&&c.push(Qn(a,h,f))),a.tag===3)return c;a=a.return}return[]}function Dj(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function a0(a,r,o,c,h){for(var f=r._reactName,y=[];o!==null&&o!==c;){var A=o,R=A.alternate,q=A.stateNode;if(A=A.tag,R!==null&&R===c)break;A!==5&&A!==26&&A!==27||q===null||(R=q,h?(q=bn(o,f),q!=null&&y.unshift(Qn(o,q,R))):h||(q
vendor: 4,621 bytes, lines 8-9
8=bn(o,f),q!=null&&y.push(Qn(o,q,R)))),o=o.return}y.length!==0&&a.push({event:r,listeners:y})}var Mj=/\r\n?/g,Pj=/\u0000|\uFFFD/g;function s0(a){return(typeof a=="string"?a:""+a).replace(Mj,` 9`).replace(Pj,"")}function r0(a,r){return r=s0(r),s0(a)===r}function Ve(a,r,o,c,h,f){switch(o){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||ci(a,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&ci(a,""+c);break;case"className":sl(a,"class",c);break;case"tabIndex":sl(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":sl(a,o,c);break;case"style":sf(a,c,f);break;case"data":if(r!=="object"){sl(a,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||o!=="href")){a.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(o);break}c=il(""+c),a.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(o==="formAction"?(r!=="input"&&Ve(a,r,"name",h.name,h,null),Ve(a,r,"formEncType",h.formEncType,h,null),Ve(a,r,"formMethod",h.formMethod,h,null),Ve(a,r,"formTarget",h.formTarget,h,null)):(Ve(a,r,"encType",h.encType,h,null),Ve(a,r,"method",h.method,h,null),Ve(a,r,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(o);break}c=il(""+c),a.setAttribute(o,c);break;case"onClick":c!=null&&(a.onclick=os);break;case"onScroll":c!=null&&Le("scroll",a);break;case"onScrollEnd":c!=null&&Le("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(o=c.__html,o!=null){if(h.children!=null)throw Error(n(60));a.innerHTML=o}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}o=il(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,""+c):a.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,""):a.removeAttribute(o);break;case"capture":case"download":c===!0?a.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(o,c):a.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(o,c):a.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(o):a.setAttribute(o,c);break;case"popover":Le("beforetoggle",a),Le("toggle",a),al(a,"popover",c);break;case"xlinkActuate":ns(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ns(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ns(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ns(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ns(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ns(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ns(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ns(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ns(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":al(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=u1.get(o)||o,al(a,o,
vendor: 8,321 bytes, line 9
9c))}}function wh(a,r,o,c,h,f){switch(o){case"style":sf(a,c,f);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(o=c.__html,o!=null){if(h.children!=null)throw Error(n(60));a.innerHTML=o}}break;case"children":typeof c=="string"?ci(a,c):(typeof c=="number"||typeof c=="bigint")&&ci(a,""+c);break;case"onScroll":c!=null&&Le("scroll",a);break;case"onScrollEnd":c!=null&&Le("scrollend",a);break;case"onClick":c!=null&&(a.onclick=os);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kx.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),r=o.slice(2,h?o.length-7:void 0),f=a[Ft]||null,f=f!=null?f[o]:null,typeof f=="function"&&a.removeEventListener(r,f,h),typeof c=="function")){typeof f!="function"&&f!==null&&(o in a?a[o]=null:a.hasAttribute(o)&&a.removeAttribute(o)),a.addEventListener(r,c,h);break e}o in a?a[o]=c:c===!0?a.setAttribute(o,""):al(a,o,c)}}}function Lt(a,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",a),Le("load",a);var c=!1,h=!1,f;for(f in o)if(o.hasOwnProperty(f)){var y=o[f];if(y!=null)switch(f){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Ve(a,r,f,y,o,null)}}h&&Ve(a,r,"srcSet",o.srcSet,o,null),c&&Ve(a,r,"src",o.src,o,null);return;case"input":Le("invalid",a);var A=f=y=h=null,R=null,q=null;for(c in o)if(o.hasOwnProperty(c)){var I=o[c];if(I!=null)switch(c){case"name":h=I;break;case"type":y=I;break;case"checked":R=I;break;case"defaultChecked":q=I;break;case"value":f=I;break;case"defaultValue":A=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(n(137,r));break;default:Ve(a,r,c,I,o,null)}}Zx(a,f,A,R,q,y,h,!1);return;case"select":Le("invalid",a),c=y=f=null;for(h in o)if(o.hasOwnProperty(h)&&(A=o[h],A!=null))switch(h){case"value":f=A;break;case"defaultValue":y=A;break;case"multiple":c=A;default:Ve(a,r,h,A,o,null)}r=f,o=y,a.multiple=!!c,r!=null?li(a,!!c,r,!1):o!=null&&li(a,!!c,o,!0);return;case"textarea":Le("invalid",a),f=h=c=null;for(y in o)if(o.hasOwnProperty(y)&&(A=o[y],A!=null))switch(y){case"value":c=A;break;case"defaultValue":h=A;break;case"children":f=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(n(91));break;default:Ve(a,r,y,A,o,null)}tf(a,c,h,f);return;case"option":for(R in o)o.hasOwnProperty(R)&&(c=o[R],c!=null)&&(R==="selected"?a.selected=c&&typeof c!="function"&&typeof c!="symbol":Ve(a,r,R,c,o,null));return;case"dialog":Le("beforetoggle",a),Le("toggle",a),Le("cancel",a),Le("close",a);break;case"iframe":case"object":Le("load",a);break;case"video":case"audio":for(c=0;c<Yn.length;c++)Le(Yn[c],a);break;case"image":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"embed":case"source":case"link":Le("error",a),Le("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in o)if(o.hasOwnProperty(q)&&(c=o[q],c!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Ve(a,r,q,c,o,null)}return;default:if(Pd(r)){for(I in o)o.hasOwnProperty(I)&&(c=o[I],c!==void 0&&wh(a,r,I,c,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(c=o[A],c!=null&&Ve(a,r,A,c,o,null))}function Bj(a,r,o,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,f=null,y=null,A=null,R=null,q=null,I=null;for(F in o){var W=o[F];if(o.hasOwnProperty(F)&&W!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":R=W;default:c.hasOwnProperty(F)||Ve(a,r,F,null,c,W)}}for(var U in c){var F=c[U];if(W=o[U],c.hasOwnProperty(U)&&(F!=null||W!=null))switch(U){case"type":f=F;break;case"name":h=F;break;case"checked":q=F;break;case"defaultChecked":I=F;break;case"value":y=F;break;case"defaultValue":A=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(n(137,r));break;default:F!==W&&Ve(a,r,U,F,c,W)}}Dd(a,y,A,R,q,I,f,h);return;case"select":F=y=A=U=null;for(f in o)if(R=o[f],o.hasOwnProperty(f)&&R!=null)switch(f){case"value":break;case"multiple":F=R;default:c.hasOwnProperty(f)||Ve(a,r,f,null,c,R)}for(h in c)if(f=c[h],R=o[h],c.hasOwnProperty(h)&&(f!=null||R!=null))switch(h){case"value":U=f;break;case"defaultValue":A=f;break;case"multiple":y=f;default:f!==R&&Ve(a,r,h,f,c,R)}r=A,o=y,c=F,U!=null?li(a,!!o,U,!1):!!c!=!!o&&(r!=null?li(a,!!o,r,!0):li(a,!!o,o?[]:"",!1));return;case"textarea":F=U=null;for(A in o)if(h=o[A],o.hasOwnProperty(A)&&h!=null&&!c.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ve(a,r,A,null,c,h)}for(y in c)if(h=c[y],f=o[y],c.hasOwnProperty(y)&&(h!=null||f!=null))switch(y){case"value":U=h;break;case"defaultValue":F=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(n(91));break;default:h!==f&&Ve(a,r,y,h,c,f)}ef(a,U,F);return;case"option":for(var ne in o)U=o[ne],o.hasOwnProperty(ne)&&U!=null&&!c.hasOwnProperty(ne)&&(ne==="selected"?a.selected=!1:Ve(a,r,ne,null,c,U));for(R in c)U=c[R],F=o[R],c.hasOwnProperty(R)&&U!==F&&(U!=null||F!=null)&&(R==="selected"?a.selected=U&&typeof U!="function"&&typeof U!="symbol":Ve(a,r,R,U,c,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in o)U=o[me],o.hasOwnProperty(me)&&U!=null&&!c.hasOwnProperty(me)&&Ve(a,r,me,null,c,U);for(q in c)if(U=c[q],F=o[q],c.hasOwnProperty(q)&&U!==F&&(U!=null||F!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(n(137,r));break;default:Ve(a,r,q,U,c,F)}return;default:if(Pd(r)){for(var Ge in o)U=o[Ge],o.hasOwnProperty(Ge)&&U!==void 0&&!c.hasOwnProperty(Ge)&&wh(a,r,Ge,void 0,c,U);for(I in c)U=c[I],F=o[I],!c.hasOwnProperty(I)||U===F||U===void 0&&F===void 0||wh(a,r,I,U,c,F);return}}for(var P in o)U=o[P],o.hasOwnProperty(P)&&U!=null&&!c.hasOwnProperty(P)&&Ve(a,r,P,null,c,U);for(W in c)U=c[W],F=o[W],!c.hasOwnProperty(W)||U===F||U==null&&F==null||Ve(a,r,W,U,c,F)}function i0(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qj(){if(typeof performance.getEntriesByType=="function"){for(var a=0,r=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var h=o[c],f=h.transferSize,y=h.initiatorType,A=h.duration;if(f&&A&&i0(y)){for(y=0,A=h.responseEnd,c+=1;c<o.length;c++){var R=o[c],q=R.startTime;if(q>A)break;var I=R.transferSize,W=R.initiatorType;I&&i0(W)&&(R=R.responseEnd,y+=I*(R<A?1:(A-q)/(R-q)))}if(--c,r+=8*(f+y)/(h.duration/1e3),a++,10<a)break}}if(0<a)return r/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var _h=null,Sh=null;function ec(a){return a.nodeType===9?a:a.ownerDocument}function n0(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function o0(a,r){if(a===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&r==="foreignObject"?0:a}function kh(a,r){return a==="textarea"||a==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ch=null;function Uj(){var a=window.event;return a&&a.type==="popstate"?a===Ch?!1:(Ch=a,!0):(Ch=null,!1)}var l0=typeof setTimeout=="function"?setTimeout:void 0,Fj=typeof clearTimeout=="function"?clearTimeout:void 0,c0=typeof Promise=="function"?Promise:void 0,$j=typeof queueMicrotask=="function"?queueMicrotask:typeof c0<"u"?function(a){return c0.resolve(null).then(a).catch(Ij)}:l0;function Ij(a){setTimeout(function(){throw a})}function tr(a){return a==="head"}function d0(a,r){var o=r,c=0;do{var h=o.nextSibling;if(a.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"||o==="/&"){if(c===0){a.removeChild(h),Ui(r);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Xn(a.ownerDocument.documentElement);else if(o==="head"){o=a.ownerDocument.head,Xn(o);for(var f=o.firstChild;f;
vendor: 8,495 bytes, line 9
9){var y=f.nextSibling,A=f.nodeName;f[pn]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&f.rel.toLowerCase()==="stylesheet"||o.removeChild(f),f=y}}else o==="body"&&Xn(a.ownerDocument.body);o=h}while(o);Ui(r)}function u0(a,r){var o=a;a=0;do{var c=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0)break;a--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||a++;o=c}while(o)}function Eh(a){var r=a.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Eh(o),Rd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}a.removeChild(o)}}function Hj(a,r,o,c){for(;a.nodeType===1;){var h=o;if(a.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[pn])switch(r){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(f=a.getAttribute("rel"),f==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(f!==h.rel||a.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||a.getAttribute("title")!==(h.title==null?null:h.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(f=a.getAttribute("src"),(f!==(h.src==null?null:h.src)||a.getAttribute("type")!==(h.type==null?null:h.type)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&f&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(r==="input"&&a.type==="hidden"){var f=h.name==null?null:""+h.name;if(h.type==="hidden"&&a.getAttribute("name")===f)return a}else return a;if(a=ja(a.nextSibling),a===null)break}return null}function Vj(a,r,o){if(r==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=ja(a.nextSibling),a===null))return null;return a}function h0(a,r){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!r||(a=ja(a.nextSibling),a===null))return null;return a}function Ah(a){return a.data==="$?"||a.data==="$~"}function Th(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function Gj(a,r){var o=a.ownerDocument;if(a.data==="$~")a._reactRetry=r;else if(a.data!=="$?"||o.readyState!=="loading")r();else{var c=function(){r(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function ja(a){for(;a!=null;a=a.nextSibling){var r=a.nodeType;if(r===1||r===3)break;if(r===8){if(r=a.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return a}var Lh=null;function m0(a){a=a.nextSibling;for(var r=0;a;){if(a.nodeType===8){var o=a.data;if(o==="/$"||o==="/&"){if(r===0)return ja(a.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}a=a.nextSibling}return null}function x0(a){a=a.previousSibling;for(var r=0;a;){if(a.nodeType===8){var o=a.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return a;r--}else o!=="/$"&&o!=="/&"||r++}a=a.previousSibling}return null}function f0(a,r,o){switch(r=ec(o),a){case"html":if(a=r.documentElement,!a)throw Error(n(452));return a;case"head":if(a=r.head,!a)throw Error(n(453));return a;case"body":if(a=r.body,!a)throw Error(n(454));return a;default:throw Error(n(451))}}function Xn(a){for(var r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Rd(a)}var Na=new Map,p0=new Set;function tc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ws=te.d;te.d={f:Wj,r:Kj,D:Jj,C:Yj,L:Qj,m:Xj,X:eN,S:Zj,M:tN};function Wj(){var a=ws.f(),r=Gl();return a||r}function Kj(a){var r=ii(a);r!==null&&r.tag===5&&r.type==="form"?Rp(r):ws.r(a)}var Pi=typeof document>"u"?null:document;function g0(a,r,o){var c=Pi;if(c&&typeof r=="string"&&r){var h=xa(r);h='link[rel="'+a+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),p0.has(h)||(p0.add(h),a={rel:a,crossOrigin:o,href:r},c.querySelector(h)===null&&(r=c.createElement("link"),Lt(r,"link",a),_t(r),c.head.appendChild(r)))}}function Jj(a){ws.D(a),g0("dns-prefetch",a,null)}function Yj(a,r){ws.C(a,r),g0("preconnect",a,r)}function Qj(a,r,o){ws.L(a,r,o);var c=Pi;if(c&&a&&r){var h='link[rel="preload"][as="'+xa(r)+'"]';r==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+xa(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+xa(o.imageSizes)+'"]')):h+='[href="'+xa(a)+'"]';var f=h;switch(r){case"style":f=Bi(a);break;case"script":f=qi(a)}Na.has(f)||(a=v({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:a,as:r},o),Na.set(f,a),c.querySelector(h)!==null||r==="style"&&c.querySelector(Zn(f))||r==="script"&&c.querySelector(eo(f))||(r=c.createElement("link"),Lt(r,"link",a),_t(r),c.head.appendChild(r)))}}function Xj(a,r){ws.m(a,r);var o=Pi;if(o&&a){var c=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+xa(c)+'"][href="'+xa(a)+'"]',f=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=qi(a)}if(!Na.has(f)&&(a=v({rel:"modulepreload",href:a},r),Na.set(f,a),o.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(eo(f)))return}c=o.createElement("link"),Lt(c,"link",a),_t(c),o.head.appendChild(c)}}}function Zj(a,r,o){ws.S(a,r,o);var c=Pi;if(c&&a){var h=ni(c).hoistableStyles,f=Bi(a);r=r||"default";var y=h.get(f);if(!y){var A={loading:0,preload:null};if(y=c.querySelector(Zn(f)))A.loading=5;else{a=v({rel:"stylesheet",href:a,"data-precedence":r},o),(o=Na.get(f))&&Oh(a,o);var R=y=c.createElement("link");_t(R),Lt(R,"link",a),R._p=new Promise(function(q,I){R.onload=q,R.onerror=I}),R.addEventListener("load",function(){A.loading|=1}),R.addEventListener("error",function(){A.loading|=2}),A.loading|=4,ac(y,r,c)}y={type:"stylesheet",instance:y,count:1,state:A},h.set(f,y)}}}function eN(a,r){ws.X(a,r);var o=Pi;if(o&&a){var c=ni(o).hoistableScripts,h=qi(a),f=c.get(h);f||(f=o.querySelector(eo(h)),f||(a=v({src:a,async:!0},r),(r=Na.get(h))&&Rh(a,r),f=o.createElement("script"),_t(f),Lt(f,"link",a),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(h,f))}}function tN(a,r){ws.M(a,r);var o=Pi;if(o&&a){var c=ni(o).hoistableScripts,h=qi(a),f=c.get(h);f||(f=o.querySelector(eo(h)),f||(a=v({src:a,async:!0,type:"module"},r),(r=Na.get(h))&&Rh(a,r),f=o.createElement("script"),_t(f),Lt(f,"link",a),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(h,f))}}function b0(a,r,o,c){var h=(h=Ae.current)?tc(h):null;if(!h)throw Error(n(446));switch(a){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Bi(o.href),o=ni(h).hoistableStyles,c=o.get(r),c||(c={type:"style",instance:null,count:0,state:null},o.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){a=Bi(o.href);var f=ni(h).hoistableStyles,y=f.get(a);if(y||(h=h.ownerDocument||h,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(a,y),(f=h.querySelector(Zn(a)))&&!f._p&&(y.instance=f,y.state.loading=5),Na.has(a)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Na.set(a,o),f||aN(h,a,o,y.state))),r&&c===null)throw Error(n(528,""));return y}if(r&&c!==null)throw Error(n(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=qi(o),o=ni(h).hoistableScripts,c=o.get(r),c||(c={type:"script",instance:null,count:0,state:null},o.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,a))}}function Bi(a){return'href="'+xa(a)+'"'}function Zn(a){return'link[rel="stylesheet"]['+a+"]"}function v0(a){return v({},a,{"data-precedence":a.precedence,precedence:null})}function aN(a,r,o,c){a.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=a.createElement("link"),
vendor: 8,374 bytes, line 9
9c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),Lt(r,"link",o),_t(r),a.head.appendChild(r))}function qi(a){return'[src="'+xa(a)+'"]'}function eo(a){return"script[async]"+a}function y0(a,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var c=a.querySelector('style[data-href~="'+xa(o.href)+'"]');if(c)return r.instance=c,_t(c),c;var h=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),_t(c),Lt(c,"style",h),ac(c,o.precedence,a),r.instance=c;case"stylesheet":h=Bi(o.href);var f=a.querySelector(Zn(h));if(f)return r.state.loading|=4,r.instance=f,_t(f),f;c=v0(o),(h=Na.get(h))&&Oh(c,h),f=(a.ownerDocument||a).createElement("link"),_t(f);var y=f;return y._p=new Promise(function(A,R){y.onload=A,y.onerror=R}),Lt(f,"link",c),r.state.loading|=4,ac(f,o.precedence,a),r.instance=f;case"script":return f=qi(o.src),(h=a.querySelector(eo(f)))?(r.instance=h,_t(h),h):(c=o,(h=Na.get(f))&&(c=v({},o),Rh(c,h)),a=a.ownerDocument||a,h=a.createElement("script"),_t(h),Lt(h,"link",c),a.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(n(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,ac(c,o.precedence,a));return r.instance}function ac(a,r,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,f=h,y=0;y<c.length;y++){var A=c[y];if(A.dataset.precedence===r)f=A;else if(f!==h)break}f?f.parentNode.insertBefore(a,f.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(a,r.firstChild))}function Oh(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.title==null&&(a.title=r.title)}function Rh(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.integrity==null&&(a.integrity=r.integrity)}var sc=null;function j0(a,r,o){if(sc===null){var c=new Map,h=sc=new Map;h.set(o,c)}else h=sc,c=h.get(o),c||(c=new Map,h.set(o,c));if(c.has(a))return c;for(c.set(a,null),o=o.getElementsByTagName(a),h=0;h<o.length;h++){var f=o[h];if(!(f[pn]||f[Ct]||a==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(r)||"";y=a+y;var A=c.get(y);A?A.push(f):c.set(y,[f])}}return c}function N0(a,r,o){a=a.ownerDocument||a,a.head.insertBefore(o,r==="title"?a.querySelector("head > title"):null)}function sN(a,r,o){if(o===1||r.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(a=r.disabled,typeof r.precedence=="string"&&a==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function w0(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function rN(a,r,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var h=Bi(c.href),f=r.querySelector(Zn(h));if(f){r=f._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(a.count++,a=rc.bind(a),r.then(a,a)),o.state.loading|=4,o.instance=f,_t(f);return}f=r.ownerDocument||r,c=v0(c),(h=Na.get(h))&&Oh(c,h),f=f.createElement("link"),_t(f);var y=f;y._p=new Promise(function(A,R){y.onload=A,y.onerror=R}),Lt(f,"link",c),o.instance=f}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(a.count++,o=rc.bind(a),r.addEventListener("load",o),r.addEventListener("error",o))}}var zh=0;function iN(a,r){return a.stylesheets&&a.count===0&&nc(a,a.stylesheets),0<a.count||0<a.imgCount?function(o){var c=setTimeout(function(){if(a.stylesheets&&nc(a,a.stylesheets),a.unsuspend){var f=a.unsuspend;a.unsuspend=null,f()}},6e4+r);0<a.imgBytes&&zh===0&&(zh=62500*qj());var h=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&nc(a,a.stylesheets),a.unsuspend)){var f=a.unsuspend;a.unsuspend=null,f()}},(a.imgBytes>zh?50:800)+r);return a.unsuspend=o,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var ic=null;function nc(a,r){a.stylesheets=null,a.unsuspend!==null&&(a.count++,ic=new Map,r.forEach(nN,a),ic=null,rc.call(a))}function nN(a,r){if(!(r.state.loading&4)){var o=ic.get(a);if(o)var c=o.get(null);else{o=new Map,ic.set(a,o);for(var h=a.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<h.length;f++){var y=h[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(o.set(y.dataset.precedence,y),c=y)}c&&o.set(null,c)}h=r.instance,y=h.getAttribute("data-precedence"),f=o.get(y)||c,f===c&&o.set(null,h),o.set(y,h),this.count++,c=rc.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),f?f.parentNode.insertBefore(h,f.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(h,a.firstChild)),r.state.loading|=4}}var to={$$typeof:_,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function oN(a,r,o,c,h,f,y,A,R){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ad(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ad(0),this.hiddenUpdates=Ad(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function _0(a,r,o,c,h,f,y,A,R,q,I,W){return a=new oN(a,r,o,y,R,q,I,W,A),r=1,f===!0&&(r|=24),f=aa(3,null,null,r),a.current=f,f.stateNode=a,r=mu(),r.refCount++,a.pooledCache=r,r.refCount++,f.memoizedState={element:c,isDehydrated:o,cache:r},gu(f),a}function S0(a){return a?(a=pi,a):pi}function k0(a,r,o,c,h,f){h=S0(h),c.context===null?c.context=h:c.pendingContext=h,c=Hs(r),c.payload={element:o},f=f===void 0?null:f,f!==null&&(c.callback=f),o=Vs(a,c,r),o!==null&&(Wt(o,a,r),Rn(o,a,r))}function C0(a,r){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var o=a.retryLane;a.retryLane=o!==0&&o<r?o:r}}function Dh(a,r){C0(a,r),(a=a.alternate)&&C0(a,r)}function E0(a){if(a.tag===13||a.tag===31){var r=Sr(a,67108864);r!==null&&Wt(r,a,67108864),Dh(a,67108864)}}function A0(a){if(a.tag===13||a.tag===31){var r=oa();r=Td(r);var o=Sr(a,r);o!==null&&Wt(o,a,r),Dh(a,r)}}var oc=!0;function lN(a,r,o,c){var h=H.T;H.T=null;var f=te.p;try{te.p=2,Mh(a,r,o,c)}finally{te.p=f,H.T=h}}function cN(a,r,o,c){var h=H.T;H.T=null;var f=te.p;try{te.p=8,Mh(a,r,o,c)}finally{te.p=f,H.T=h}}function Mh(a,r,o,c){if(oc){var h=Ph(c);if(h===null)Nh(a,r,c,lc,o),L0(a,c);else if(uN(h,a,r,o,c))c.stopPropagation();else if(L0(a,c),r&4&&-1<dN.indexOf(a)){for(;h!==null;){var f=ii(h);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=yr(f.pendingLanes);if(y!==0){var A=f;for(A.pendingLanes|=2,A.entangledLanes|=2;y;){var R=1<<31-ea(y);A.entanglements[1]|=R,y&=~R}Wa(f),(qe&6)===0&&(Hl=Xt()+500,Jn(0))}}break;case 31:case 13:A=Sr(f,2),A!==null&&Wt(A,f,2),Gl(),Dh(f,2)}if(f=Ph(c),f===null&&Nh(a,r,c,lc,o),f===h)break;h=f}h!==null&&c.stopPropagation()}else Nh(a,r,c,null,o)}}function Ph(a){return a=qd(a),Bh(a)}var lc=null;function Bh(a){if(lc=null,a=ri(a),a!==null){var r=d(a);if(r===null)a=null;else{var o=r.tag;if(o===13){if(a=u(r),a!==null)return a;a=null}else if(o===31){if(a=m(r),a!==null)return a;a=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return lc=a,null}function T0(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,141 bytes, line 9
9:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jy()){case Px:return 2;case Bx:return 8;case Qo:case Yy:return 32;case qx:return 268435456;default:return 32}default:return 32}}var qh=!1,ar=null,sr=null,rr=null,ao=new Map,so=new Map,ir=[],dN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function L0(a,r){switch(a){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":sr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":ao.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(r.pointerId)}}function ro(a,r,o,c,h,f){return a===null||a.nativeEvent!==f?(a={blockedOn:r,domEventName:o,eventSystemFlags:c,nativeEvent:f,targetContainers:[h]},r!==null&&(r=ii(r),r!==null&&E0(r)),a):(a.eventSystemFlags|=c,r=a.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),a)}function uN(a,r,o,c,h){switch(r){case"focusin":return ar=ro(ar,a,r,o,c,h),!0;case"dragenter":return sr=ro(sr,a,r,o,c,h),!0;case"mouseover":return rr=ro(rr,a,r,o,c,h),!0;case"pointerover":var f=h.pointerId;return ao.set(f,ro(ao.get(f)||null,a,r,o,c,h)),!0;case"gotpointercapture":return f=h.pointerId,so.set(f,ro(so.get(f)||null,a,r,o,c,h)),!0}return!1}function O0(a){var r=ri(a.target);if(r!==null){var o=d(r);if(o!==null){if(r=o.tag,r===13){if(r=u(o),r!==null){a.blockedOn=r,Vx(a.priority,function(){A0(o)});return}}else if(r===31){if(r=m(o),r!==null){a.blockedOn=r,Vx(a.priority,function(){A0(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){a.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}a.blockedOn=null}function cc(a){if(a.blockedOn!==null)return!1;for(var r=a.targetContainers;0<r.length;){var o=Ph(a.nativeEvent);if(o===null){o=a.nativeEvent;var c=new o.constructor(o.type,o);Bd=c,o.target.dispatchEvent(c),Bd=null}else return r=ii(o),r!==null&&E0(r),a.blockedOn=o,!1;r.shift()}return!0}function R0(a,r,o){cc(a)&&o.delete(r)}function hN(){qh=!1,ar!==null&&cc(ar)&&(ar=null),sr!==null&&cc(sr)&&(sr=null),rr!==null&&cc(rr)&&(rr=null),ao.forEach(R0),so.forEach(R0)}function dc(a,r){a.blockedOn===r&&(a.blockedOn=null,qh||(qh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hN)))}var uc=null;function z0(a){uc!==a&&(uc=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){uc===a&&(uc=null);for(var r=0;r<a.length;r+=3){var o=a[r],c=a[r+1],h=a[r+2];if(typeof c!="function"){if(Bh(c||o)===null)continue;break}var f=ii(o);f!==null&&(a.splice(r,3),r-=3,Pu(f,{pending:!0,data:h,method:o.method,action:c},c,h))}}))}function Ui(a){function r(R){return dc(R,a)}ar!==null&&dc(ar,a),sr!==null&&dc(sr,a),rr!==null&&dc(rr,a),ao.forEach(r),so.forEach(r);for(var o=0;o<ir.length;o++){var c=ir[o];c.blockedOn===a&&(c.blockedOn=null)}for(;0<ir.length&&(o=ir[0],o.blockedOn===null);)O0(o),o.blockedOn===null&&ir.shift();if(o=(a.ownerDocument||a).$$reactFormReplay,o!=null)for(c=0;c<o.length;
9c+=3){var h=o[c],f=o[c+1],y=h[Ft]||null;if(typeof f=="function")y||z0(o);else if(y){var A=null;if(f&&f.hasAttribute("formAction")){if(h=f,y=f[Ft]||null)A=y.formAction;else if(Bh(h)!==null)continue}else A=y.action;typeof A=="function"?o[c+1]=A:(o.splice(c,3),c-=3),z0(o)}}}function D0(){function a(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return h=y})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function Uh(a){this._internalRoot=a}hc.prototype.render=Uh.prototype.render=function(a){var r=this._internalRoot;if(r===null)throw Error(n(409));var o=r.current,c=oa();k0(o,c,a,r,null,null)},hc.prototype.unmount=Uh.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var r=a.containerInfo;k0(a.current,2,null,a,null,null),Gl(),r[si]=null}};function hc(a){this._internalRoot=a}hc.prototype.unstable_scheduleHydration=function(a){if(a){var r=Hx();a={blockedOn:null,target:a,priority:r};for(var o=0;o<ir.length&&r!==0&&r<ir[o].priority;o++);ir.splice(o,0,a),o===0&&O0(a)}};var M0=s.version;if(M0!=="19.2.3")throw Error(n(527,M0,"19.2.3"));te.findDOMNode=function(a){var r=a._reactInternals;if(r===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=p(r),a=a!==null?g(a):null,a=a===null?null:a.stateNode,a};var mN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mc.isDisabled&&mc.supportsFiber)try{mn=mc.inject(mN),Zt=mc}catch{}}return no.createRoot=function(a,r){if(!l(a))throw Error(n(299));var o=!1,c="",h=Ip,f=Hp,y=Vp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(f=r.onCaughtError),r.onRecoverableError!==void 0&&(y=r.onRecoverableError)),r=_0(a,1,!1,null,null,o,c,null,h,f,y,D0),a[si]=r.current,jh(a),new Uh(r)},no.hydrateRoot=function(a,r,o){if(!l(a))throw Error(n(299));var c=!1,h="",f=Ip,y=Hp,A=Vp,R=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(f=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.formState!==void 0&&(R=o.formState)),r=_0(a,1,!0,r,o??null,c,h,R,f,y,A,D0),r.context=S0(null),o=r.current,c=oa(),c=Td(c),h=Hs(c),h.callback=null,Vs(o,h,c),o=c,r.current.lanes=o,fn(r,o),Wa(r),a[si]=r.current,jh(a),new hc(r)},no.version="19.2.3",no}var G0;function _N(){if(G0)return Ih.exports;G0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(s){console.error(s)}}return t(),Ih.exports=wN(),Ih.exports}var SN=_N();var W0="popstate";function kN(t={}){function s(n,l){let{pathname:d,search:u,hash:m}=n.location;return Tm("",{pathname:d,search:u,hash:m},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function i(n,l){return typeof l=="string"?l:No(l)}return EN(s,i,null,t)}function at(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}function Ea(t,s){if(!t){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function CN(){return Math.random().toString(36).substring(2,10)}function K0(t,s){return{usr:t.state,key:t.key,idx:s}}function Tm(t,s,i=null,n){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof s=="string"?rn(s):s,state:i,key:s&&s.key||n||CN()}}function No({pathname:t="/",search:s="",hash:i=""}){return s&&s!=="?"&&(t+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function rn(t){let s={};if(t){let i=t.indexOf("#");i>=0&&(s.hash=t.substring(i),t=t.substring(0,i));let n=t.indexOf("?");n>=0&&(s.search=t.substring(n),t=t.substring(0,n)),t&&(s.pathname=t)}return s}function EN(t,s,i,n={}){let{window:l=document.defaultView,v5Compat:d=!1}=n,u=l.history,m="POP",x=null,p=g();
9p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function v(){m="POP";let C=g(),T=C==null?null:C-p;p=C,x&&x({action:m,location:S.location,delta:T})}function j(C,T){m="PUSH";let w=Tm(S.location,C,T);p=g()+1;let _=K0(w,p),E=S.createHref(w);try{u.pushState(_,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;l.location.assign(E)}d&&x&&x({action:m,location:S.location,delta:1})}function N(C,T){m="REPLACE";let w=Tm(S.location,C,T);p=g();let _=K0(w,p),E=S.createHref(w);u.replaceState(_,"",E),d&&x&&x({action:m,location:S.location,delta:0})}function k(C){return AN(C)}let S={get action(){return m},get location(){return t(l,u)},listen(C){if(x)throw new Error("A history only accepts one active listener");return l.addEventListener(W0,v),x=C,()=>{l.removeEventListener(W0,v),x=null}},createHref(C){return s(l,C)},createURL:k,encodeLocation(C){let T=k(C);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:j,replace:N,go(C){return u.go(C)}};return S}function AN(t,s=!1){let i="http://localhost";
9typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),at(i,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:No(t);return n=n.replace(/ $/,"%20"),!s&&n.startsWith("//")&&(n=i+n),new URL(n,i)}function Dv(t,s,i="/"){return TN(t,s,i,!1)}function TN(t,s,i,n){let l=typeof s=="string"?rn(s):s,d=Os(l.pathname||"/",i);if(d==null)return null;let u=Mv(t);LN(u);let m=null;for(let x=0;m==null&&x<u.length;++x){let p=$N(d);m=UN(u[x],p,n)}return m}function Mv(t,s=[],i=[],n="",l=!1){let d=(u,m,x=l,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(n)&&x)return;at(g.relativePath.startsWith(n),`Absolute route path "${g.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(n.length)}let v=Ls([n,g.relativePath]),j=i.concat(g);u.children&&u.children.length>0&&(at(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Mv(u.children,s,j,v,x)),!(u.path==null&&!u.index)&&s.push({path:v,score:BN(v,u.index),routesMeta:j})};return t.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let x of Pv(u.path))d(u,m,!0,x)}),s}function Pv(t){let s=t.split("/");if(s.length===0)return[];let[i,...n]=s,l=i.endsWith("?"),d=i.replace(/\?$/,"");if(n.length===0)return l?[d,""]:[d];let u=Pv(n.join("/")),m=[];return m.push(...u.map(x=>x===""?d:[d,x].join("/"))),l&&m.push(...u),m.map(x=>t.startsWith("/")&&x===""?"/":x)}function LN(t){t.sort((s,i)=>s.score!==i.score?i.score-s.score:qN(s.routesMeta.map(n=>n.childrenIndex),i.routesMeta.map(n=>n.childrenIndex)))}var ON=/^:[\w-]+$/,RN=3,zN=2,DN=1,MN=10,PN=-2,J0=t=>t==="*";function BN(t,s){let i=t.split("/"),n=i.length;return i.some(J0)&&(n+=PN),s&&(n+=zN),i.filter(l=>!J0(l)).reduce((l,d)=>l+(ON.test(d)?RN:d===""?DN:MN),n)}function qN(t,s){return t.length===s.length&&t.slice(0,-1).every((n,l)=>n===s[l])?t[t.length-1]-s[s.length-1]:0}function UN(t,s,i=!1){let{routesMeta:n}=t,l={},d="/",u=[];for(let m=0;m<n.length;++m){let x=n[m],p=m===n.length-1,g=d==="/"?s:s.slice(d.length)||"/",v=Uc({path:x.relativePath,caseSensitive:x.caseSensitive,end:p},g),j=x.route;if(!v&&p&&i&&!n[n.length-1].route.index&&(v=Uc({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},g)),!v)return null;
9Object.assign(l,v.params),u.push({params:l,pathname:Ls([d,v.pathname]),pathnameBase:GN(Ls([d,v.pathnameBase])),route:j}),v.pathnameBase!=="/"&&(d=Ls([d,v.pathnameBase]))}return u}function Uc(t,s){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,n]=FN(t.path,t.caseSensitive,t.end),l=s.match(i);if(!l)return null;let d=l[0],u=d.replace(/(.)\/+$/,"$1"),m=l.slice(1);return{params:n.reduce((p,{paramName:g,isOptional:v},j)=>{if(g==="*"){let k=m[j]||"";u=d.slice(0,d.length-k.length).replace(/(.)\/+$/,"$1")}const N=m[j];return v&&!N?p[g]=void 0:p[g]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:t}}function FN(t,s=!1,i=!0){Ea(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,x)=>(n.push({paramName:m,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(n.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,s?void 0:"i"),n]}function $N(t){try{return t.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Ea(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),t}}function Os(t,s){if(s==="/")return t;if(!t.toLowerCase().startsWith(s.toLowerCase()))return null;let i=s.endsWith("/")?s.length-1:s.length,n=t.charAt(i);return n&&n!=="/"?null:t.slice(i)||"/"}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IN=t=>Bv.test(t);function HN(t,s="/"){let{pathname:i,search:n="",hash:l=""}=typeof t=="string"?rn(t):t,d;if(i)if(IN(i))d=i;else{if(i.includes("//")){let u=i;i=i.replace(/\/\/+/g,"/"),Ea(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${i}`)}i.startsWith("/")?d=Y0(i.substring(1),"/"):d=Y0(i,s)}else d=s;return{pathname:d,search:WN(n),hash:KN(l)}}function Y0(t,s){let i=s.replace(/\/+$/,"").split("/");return t.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function Wh(t,s,i,n){return`Cannot include a '${t}' character in a manually specified \`to.${s}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function VN(t){return t.filter((s,i)=>i===0||s.route.path&&s.route.path.length>0)}function qv(t){let s=VN(t);return s.map((i,n)=>n===s.length-1?i.pathname:i.pathnameBase)}function Uv(t,s,i,n=!1){let l;typeof t=="string"?l=rn(t):(l={...t},at(!l.pathname||!l.pathname.includes("?"),Wh("?","pathname","search",l)),at(!l.pathname||!l.pathname.includes("#"),Wh("#","pathname","hash",l)),at(!l.search||!l.search.includes("#"),Wh("#","search","hash",l)));let d=t===""||l.pathname==="",u=d?"/":l.pathname,m;if(u==null)m=i;else{let v=s.length-1;if(!n&&u.startsWith("..")){let j=u.split("/");for(;j[0]==="..";)j.shift(),v-=1;l.pathname=j.join("/")}m=v>=0?s[v]:"/"}let x=HN(l,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&i.endsWith("/");return!x.pathname.endsWith("/")&&(p||g)&&(x.pathname+="/"),x}var Ls=t=>t.join("/").replace(/\/\/+/g,"/"),GN=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),WN=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,KN=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,JN=class{constructor(t,s,i,n=!1){this.status=t,this.statusText=s||"",this.internal=n,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function YN(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function QN(t){return t.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Fv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $v(t,s){let i=t;
9if(typeof i!="string"||!Bv.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let n=i,l=!1;if(Fv)try{let d=new URL(window.location.href),u=i.startsWith("//")?new URL(d.protocol+i):new URL(i),m=Os(u.pathname,s);u.origin===d.origin&&m!=null?i=m+u.search+u.hash:l=!0}catch{Ea(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:l,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Iv=["POST","PUT","PATCH","DELETE"];new Set(Iv);var XN=["GET",...Iv];new Set(XN);var nn=b.createContext(null);nn.displayName="DataRouter";var ld=b.createContext(null);ld.displayName="DataRouterState";var ZN=b.createContext(!1),Hv=b.createContext({isTransitioning:!1});Hv.displayName="ViewTransition";var ew=b.createContext(new Map);ew.displayName="Fetchers";var tw=b.createContext(null);tw.displayName="Await";var Aa=b.createContext(null);Aa.displayName="Navigation";var Bo=b.createContext(null);Bo.displayName="Location";var as=b.createContext({outlet:null,matches:[],isDataRoute:!1});as.displayName="Route";var tx=b.createContext(null);tx.displayName="RouteError";var Vv="REACT_ROUTER_ERROR",aw="REDIRECT",sw="ROUTE_ERROR_RESPONSE";function rw(t){if(t.startsWith(`${Vv}:${aw}:{`))try{let s=JSON.parse(t.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function iw(t){if(t.startsWith(`${Vv}:${sw}:{`))try{let s=JSON.parse(t.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new JN(s.status,s.statusText,s.data)}catch{}}function nw(t,{relative:s}={}){at(qo(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:n}=b.useContext(Aa),{hash:l,pathname:d,search:u}=Fo(t,{relative:s}),m=d;return i!=="/"&&(m=d==="/"?i:Ls([i,d])),n.createHref({pathname:m,search:u,hash:l})}function qo(){return b.useContext(Bo)!=null}function Yt(){return at(qo(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Bo).location}var Gv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wv(t){b.useContext(Aa).static||b.useLayoutEffect(t)}function Zr(){let{isDataRoute:t}=b.useContext(as);return t?vw():ow()}function ow(){at(qo(),"useNavigate() may be used only in the context of a <Router> component.");let t=b.useContext(nn),{basename:s,navigator:i}=b.useContext(Aa),{matches:n}=b.useContext(as),{pathname:l}=Yt(),d=JSON.stringify(qv(n)),u=b.useRef(!1);return Wv(()=>{u.current=!0}),b.useCallback((x,p={})=>
9{if(Ea(u.current,Gv),!u.current)return;if(typeof x=="number"){i.go(x);return}let g=Uv(x,JSON.parse(d),l,p.relative==="path");t==null&&s!=="/"&&(g.pathname=g.pathname==="/"?s:Ls([s,g.pathname])),(p.replace?i.replace:i.push)(g,p.state,p)},[s,i,d,l,t])}b.createContext(null);function Uo(){let{matches:t}=b.useContext(as),s=t[t.length-1];return s?s.params:{}}function Fo(t,{relative:s}={}){let{matches:i}=b.useContext(as),{pathname:n}=Yt(),l=JSON.stringify(qv(i));return b.useMemo(()=>Uv(t,JSON.parse(l),n,s==="path"),[t,l,n,s])}function lw(t,s){return Kv(t,s)}function Kv(t,s,i,n,l){at(qo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=b.useContext(Aa),{matches:u}=b.useContext(as),m=u[u.length-1],x=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let w=v&&v.path||"";Yv(p,!v||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 10 11Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let j=Yt(),N;if(s){let w=typeof s=="string"?rn(s):s;at(g==="/"||w.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${w.pathname}" was given in the \`location\` prop.`),N=w}else N=j;let k=N.pathname||"/",S=k;if(g!=="/"){let w=g.replace(/^\//,"").split("/");S="/"+k.replace(/^\//,"").split("/").slice(w.length).join("/")}let C=Dv(t,{pathname:S});Ea(v||C!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Ea(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=mw(C&&C.map(w=>Object.assign({},w,{params:Object.assign({},x,w.params),pathname:Ls([g,d.encodeLocation?d.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?g:Ls([g,d.encodeLocation?d.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),u,i,n,l);return s&&T?b.createElement(Bo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},T):T}function cw(){let t=bw(),s=YN(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:n},d={padding:"2px 4px",backgroundColor:n},u=null;return console.error("Error handled by React Router default ErrorBoundary:",t),u=b.createElement(b.Fragment,null,b.createElement("p",null,"ð¿ Hey developer ð"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:d},"ErrorBoundary")," or"," ",b.createElement("code",{style:d},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},s),i?b.createElement("pre",{style:l},i):null,u)}var dw=b.createElement(cw,null),Jv=class extends b.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,s){return s.location!==t.location||s.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:s.error,location:s.location,revalidation:t.revalidation||s.revalidation}}componentDidCatch(t,s){this.props.onError?this.props.onError(t,s):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const i=iw(t.digest);i&&(t=i)}let s=t!==void 0?b.createElement(as.Provider,{value:this.props.routeContext},b.createElement(tx.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?b.createElement(uw,{error:t},s):s}};Jv.contextType=ZN;var Kh=new WeakMap;function uw({children:t,error:s}){let{basename:i}=b.useContext(Aa);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let n=rw(s.digest);if(n){let l=Kh.get(s);if(l)throw l;let d=$v(n.location,i);if(Fv&&!Kh.get(s))if(d.isExternal||n.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:n.replace}));throw Kh.set(s,u),u}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return t}function hw({routeContext:t,match:s,children:i}){let n=b.useContext(nn);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),b.createElement(as.Provider,{value:t},i)}function mw(t,s=[],i=null,n=null,l=null){if(t==null){if(!i)return null;if(i.errors)t=i.matches;else if(s.length===0&&!i.initialized&&i.matches.length>0)t=i.matches;else return null}let d=t,u=i?.errors;if(u!=null){let g=d.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);at(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let m=!1,x=-1;if(i)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(x=g),v.route.id){let{loaderData:j,errors:N}
11=i,k=v.route.loader&&!j.hasOwnProperty(v.route.id)&&(!N||N[v.route.id]===void 0);if(v.route.lazy||k){m=!0,x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}let p=i&&n?(g,v)=>{n(g,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:QN(i.matches),errorInfo:v})}:void 0;return d.reduceRight((g,v,j)=>{let N,k=!1,S=null,C=null;i&&(N=u&&v.route.id?u[v.route.id]:void 0,S=v.route.errorElement||dw,m&&(x<0&&j===0?(Yv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,C=null):x===j&&(k=!0,C=v.route.hydrateFallbackElement||null)));let T=s.concat(d.slice(0,j+1)),w=()=>{let _;return N?_=S:k?_=C:v.route.Component?_=b.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=g,b.createElement(hw,{match:v,routeContext:{outlet:g,matches:T,isDataRoute:i!=null},children:_})};return i&&(v.route.ErrorBoundary||v.route.errorElement||j===0)?b.createElement(Jv,{location:i.location,revalidation:i.revalidation,component:S,error:N,children:w(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:p}):w()},null)}function ax(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xw(t){let s=b.useContext(nn);return at(s,ax(t)),s}function fw(t){let s=b.useContext(ld);return at(s,ax(t)),s}function pw(t){let s=b.useContext(as);return at(s,ax(t)),s}function sx(t){let s=pw(t),i=s.matches[s.matches.length-1];return at(i.route.id,`${t} can only be used on routes that contain a unique "id"`),i.route.id}function gw(){return sx("useRouteId")}function bw(){let t=b.useContext(tx),s=fw("useRouteError"),i=sx("useRouteError");return t!==void 0?t:s.errors?.[i]}function vw(){let{router:t}=xw("useNavigate"),s=sx("useNavigate"),i=b.useRef(!1);return Wv(()=>{i.current=!0}),b.useCallback(async(l,d={})=>{Ea(i.current,Gv),i.current&&(typeof l=="number"?await t.navigate(l):await t.navigate(l,{fromRouteId:s,...d}))},[t,s])}var Q0={};function Yv(t,s,i){!s&&!Q0[t]&&(Q0[t]=!0,Ea(!1,i))}b.memo(yw);function yw({routes:t,future:s,state:i,onError:n}){return Kv(t,void 0,i,n,s)}function re(t){at(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function jw({basename:t="/",children:s=null,location:i,navigationType:n="POP",navigator:l,static:d=!1,unstable_useTransitions:u}){at(!qo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=t.replace(/^\/*/,"/"),x=b.useMemo(()=>({basename:m,navigator:l,static:d,unstable_useTransitions:u,future:{}}),[m,l,d,u]);typeof i=="string"&&(i=rn(i));let{pathname:p="/",search:g="",hash:v="",state:j=null,key:N="default"}=i,k=b.useMemo(()=>{let S=Os(p,m);return S==null?null:{location:{pathname:S,search:g,hash:v,state:j,key:N},navigationType:n}},[m,p,g,v,j,N,n]);return Ea(k!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:b.createElement(Aa.Provider,{value:x},b.createElement(Bo.Provider,{children:s,value:k}))}function Nw({children:t,location:s}){return lw(Lm(t),s)}function Lm(t,s=[]){let i=[];return b.Children.forEach(t,(n,l)=>{if(!b.isValidElement(n))return;let d=[...s,l];if(n.type===b.Fragment){i.push.apply(i,Lm(n.props.children,d));return}at(n.type===re,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!n.props.index||!n.props.children,"An index route cannot have child routes.");let u={id:n.props.id||d.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,
11shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=Lm(n.props.children,d)),i.push(u)}),i}var Rc="get",zc="application/x-www-form-urlencoded";function cd(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function ww(t){return cd(t)&&t.tagName.toLowerCase()==="button"}function _w(t){return cd(t)&&t.tagName.toLowerCase()==="form"}function Sw(t){return cd(t)&&t.tagName.toLowerCase()==="input"}function kw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Cw(t,s){return t.button===0&&(!s||s==="_self")&&!kw(t)}function Om(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((s,i)=>{let n=t[i];return s.concat(Array.isArray(n)?n.map(l=>[i,l]):[[i,n]])},[]))}function Ew(t,s){let i=Om(t);return s&&s.forEach((n,l)=>{i.has(l)||s.getAll(l).forEach(d=>{i.append(l,d)})}),i}var xc=null;function Aw(){if(xc===null)try{new FormData(document.createElement("form"),0),xc=!1}catch{xc=!0}return xc}var Tw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jh(t){return t!=null&&!Tw.has(t)?(Ea(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zc}"`),null):t}function Lw(t,s){let i,n,l,d,u;if(_w(t)){let m=t.getAttribute("action");n=m?Os(m,s):null,i=t.getAttribute("method")||Rc,l=Jh(t.getAttribute("enctype"))||zc,d=new FormData(t)}else if(ww(t)||Sw(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=t.getAttribute("formaction")||m.getAttribute("action");if(n=x?Os(x,s):null,i=t.getAttribute("formmethod")||m.getAttribute("method")||Rc,l=Jh(t.getAttribute("formenctype"))||Jh(m.getAttribute("enctype"))||zc,d=new FormData(m,t),!Aw()){let{name:p,type:g,value:v}=t;if(g==="image"){let j=p?`${p}.`:"";d.append(`${j}x`,"0"),d.append(`${j}y`,"0")}else p&&d.append(p,v)}}else{if(cd(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Rc,n=null,l=zc,u=t}return d&&l==="text/plain"&&(u=d,d=void 0),{action:n,method:i.toLowerCase(),encType:l,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rx(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}function Ow(t,s,i,n){let l=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${n}`:l.pathname=`${l.pathname}.${n}`:l.pathname==="/"?l.pathname=`_root.${n}`:s&&Os(l.pathname,s)==="/"?l.pathname=`${s.replace(/\/$/,"")}/_root.${n}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${n}`,l}async function Rw(t,s){if(t.id in s)return s[t.id];try{let i=await import(t.module);return s[t.id]=i,i}catch(i){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function zw(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Dw(t,s,i){let n=await Promise.all(t.map(async l=>{let d=s.routes[l.route.id];if(d){let u=await Rw(d,i);return u.links?u.links():[]}return[]}));return qw(n.flat(1).filter(zw).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function X0(t,s,i,n,l,d){let u=(x,p)=>i[p]?x.route.id!==i[p].route.id:!0,m=(x,p)=>i[p].pathname!==x.pathname||i[p].route.path?.endsWith("*")&&i[p].params["*"]!==x.params["*"];return d==="assets"?s.filter((x,p)=>u(x,p)||m(x,p)):d==="data"?s.filter((x,p)=>{let g=n.routes[x.route.id];if(!g||!g.hasLoader)return!1;if(u(x,p)||m(x,p))return!0;if(x.route.shouldRevalidate){let v=x.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Mw(t,s,{includeHydrateFallback:i}={}){return Pw(t.map(n=>{let l=s.routes[n.route.id];if(!l)return[];let d=[l.module];return l.clientActionModule&&(d=d.concat(l.clientActionModule)),l.clientLoaderModule&&(d=d.concat(l.clientLoaderModule)),i&&l.hydrateFallbackModule&&(d=d.concat(l.hydrateFallbackModule)),l.imports&&(d=d.concat(l.imports)),d}).flat(1))}function Pw(t){return[...new Set(t)]}function Bw(t){let s={},i=Object.keys(t).sort();for(let n of i)s[n]=t[n];return s}function qw(t,s){let i=new Set;return new Set(s),t.reduce((n,l)=>{let d=JSON.stringify(Bw(l));return i.has(d)||(i.add(d),n.push({key:d,link:l})),n},[])}function Qv(){let t=b.useContext(nn);return rx(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Uw(){let t=b.useContext(ld);return rx(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var ix=b.createContext(void 0);ix.displayName="FrameworkContext";function Xv(){let t=b.useContext(ix);return rx(t,"You must render this element inside a <HydratedRouter> element"),t}function Fw(t,s){let i=b.useContext(ix),[n,l]=b.useState(!1),[d,u]=b.useState(!1),{onFocus:m,onBlur:x,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=s,j=b.useRef(null);b.useEffect(()=>{if(t==="render"&&u(!0),t==="viewport"){let S=T=>{T.forEach(w=>{u(w.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return j.current&&C.observe(j.current),()=>{C.disconnect()}}},[t]),b.useEffect(()=>{if(n){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[n]);let N=()=>
11{l(!0)},k=()=>{l(!1),u(!1)};return i?t!=="intent"?[d,j,{}]:[d,j,{onFocus:oo(m,N),onBlur:oo(x,k),onMouseEnter:oo(p,N),onMouseLeave:oo(g,k),onTouchStart:oo(v,N)}]:[!1,j,{}]}function oo(t,s){return i=>{t&&t(i),i.defaultPrevented||s(i)}}function $w({page:t,...s}){let{router:i}=Qv(),n=b.useMemo(()=>Dv(i.routes,t,i.basename),[i.routes,t,i.basename]);return n?b.createElement(Hw,{page:t,matches:n,...s}):null}function Iw(t){let{manifest:s,routeModules:i}=Xv(),[n,l]=b.useState([]);return b.useEffect(()=>{let d=!1;return Dw(t,s,i).then(u=>{d||l(u)}),()=>{d=!0}},[t,s,i]),n}function Hw({page:t,matches:s,...i}){let n=Yt(),{future:l,manifest:d,routeModules:u}=Xv(),{basename:m}=Qv(),{loaderData:x,matches:p}=Uw(),g=b.useMemo(()=>X0(t,s,p,d,n,"data"),[t,s,p,d,n]),v=b.useMemo(()=>X0(t,s,p,d,n,"assets"),[t,s,p,d,n]),j=b.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let S=new Set,C=!1;if(s.forEach(w=>{let _=d.routes[w.route.id];!_||!_.hasLoader||(!g.some(E=>E.route.id===w.route.id)&&w.route.id in x&&u[w.route.id]?.shouldRevalidate||_.hasClientLoader?C=!0:S.add(w.route.id))}),S.size===0)return[];let T=Ow(t,m,l.unstable_trailingSlashAwareDataRequests,"data");return C&&S.size>0&&T.searchParams.set("_routes",s.filter(w=>S.has(w.route.id)).map(w=>w.route.id).join(",")),[T.pathname+T.search]},[m,l.unstable_trailingSlashAwareDataRequests,x,n,d,g,s,t,u]),N=b.useMemo(()=>Mw(v,d),[v,d]),k=Iw(v);return b.createElement(b.Fragment,null,j.map(S=>b.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),N.map(S=>b.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),k.map(({key:S,link:C})=>b.createElement("link",{key:S,nonce:i.nonce,...C})))}function Vw(...t){return s=>{t.forEach(i=>{typeof i=="function"?i(s):i!=null&&(i.current=s)})}}var Gw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gw&&(window.__reactRouterVersion="7.12.0")}catch{}function Ww({basename:t,children:s,unstable_useTransitions:i,window:n}){let l=b.useRef();l.current==null&&(l.current=kN({window:n,v5Compat:!0}));let d=l.current,[u,m]=b.useState({action:d.action,location:d.location}),x=b.useCallback(p=>{i===!1?m(p):b.startTransition(()=>m(p))},[i]);return b.useLayoutEffect(()=>d.listen(x),[d,x]),b.createElement(jw,{basename:t,children:s,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:i})}var Zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ie=b.forwardRef(function({onClick:s,discover:i="render",prefetch:n="none",relative:l,reloadDocument:d,replace:u,state:m,target:x,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:j,...N},k){let{basename:S,unstable_useTransitions:C}=b.useContext(Aa),T=typeof p=="string"&&Zv.test(p),w=$v(p,S);p=w.to;let _=nw(p,{relative:l}),[E,O,$]=Fw(n,N),z=Qw(p,{replace:u,state:m,target:x,preventScrollReset:g,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:j,unstable_useTransitions:C});function Q(we){s&&s(we),we.defaultPrevented||z(we)}let K=b.createElement("a",{...N,...$,href:w.absoluteURL||_,onClick:w.isExternal||d?s:Q,ref:Vw(k,O),target:x,"data-discover":!T&&i==="render"?"true":void 0});return E&&!T?b.createElement(b.Fragment,null,K,b.createElement($w,{page:_})):K});ie.displayName="Link";var Kw=b.forwardRef(function({"aria-current":s="page",caseSensitive:i=!1,className:n="",end:l=!1,style:d,to:u,viewTransition:m,children:x,...p},g){let v=Fo(u,{relative:p.relative}),j=Yt(),N=b.useContext(ld),{navigator:k,basename:S}=b.useContext(Aa),C=N!=null&&a4(v)&&m===!0,T=k.encodeLocation?k.encodeLocation(v).pathname:v.pathname,w=j.pathname,_=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,T=T.toLowerCase()),_&&S&&(_=Os(_,S)||_);const E=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let O=w===T||!l&&w.startsWith(T)&&w.charAt(E)==="/",$=_!=null&&(_===T||!l&&_.startsWith(T)&&_.charAt(T.length)==="/"),z={isActive:O,isPending:$,isTransitioning:C},Q=O?s:void 0,K;typeof n=="function"?K=n(z):K=[n,O?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let we=typeof d=="function"?d(z):d;return b.createElement(ie,{...p,"aria-current":Q,className:K,ref:g,style:we,to:u,viewTransition:m},typeof x=="function"?x(z):x)});Kw.displayName="NavLink";var Jw=b.forwardRef(({discover:t="render",fetcherKey:s,navigate:i,reloadDocument:n,replace:l,state:d,method:u=Rc,action:m,onSubmit:x,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:j,...N},k)=>{let{unstable_useTransitions:S}=b.useContext(Aa),C=e4(),T=t4(m,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Zv.test(m),E=O=>
11{if(x&&x(O),O.defaultPrevented)return;O.preventDefault();let $=O.nativeEvent.submitter,z=$?.getAttribute("formmethod")||u,Q=()=>C($||O.currentTarget,{fetcherKey:s,method:z,navigate:i,replace:l,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:j});S&&i!==!1?b.startTransition(()=>Q()):Q()};return b.createElement("form",{ref:k,method:w,action:T,onSubmit:n?x:E,...N,"data-discover":!_&&t==="render"?"true":void 0})});Jw.displayName="Form";function Yw(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e2(t){let s=b.useContext(nn);return at(s,Yw(t)),s}function Qw(t,{target:s,replace:i,state:n,preventScrollReset:l,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:x}={}){let p=Zr(),g=Yt(),v=Fo(t,{relative:d});return b.useCallback(j=>{if(Cw(j,s)){j.preventDefault();let N=i!==void 0?i:No(g)===No(v),k=()=>p(t,{replace:N,state:n,preventScrollReset:l,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m});x?b.startTransition(()=>k()):k()}},[g,p,v,i,n,s,t,l,d,u,m,x])}function fr(t){Ea(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=b.useRef(Om(t)),i=b.useRef(!1),n=Yt(),l=b.useMemo(()=>Ew(n.search,i.current?null:s.current),[n.search]),d=Zr(),u=b.useCallback((m,x)=>{const p=Om(typeof m=="function"?m(new URLSearchParams(l)):m);i.current=!0,d("?"+p,x)},[d,l]);return[l,u]}var Xw=0,Zw=()=>`__${String(++Xw)}__`;function e4(){let{router:t}=e2("useSubmit"),{basename:s}=b.useContext(Aa),i=gw(),n=t.fetch,l=t.navigate;return b.useCallback(async(d,u={})=>{let{action:m,method:x,encType:p,formData:g,body:v}=Lw(d,s);if(u.navigate===!1){let j=u.fetcherKey||Zw();await n(j,i,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||x,formEncType:u.encType||p,flushSync:u.flushSync})}else await l(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||x,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:i,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,l,s,i])}function t4(t,{relative:s}={}){let{basename:i}=b.useContext(Aa),n=b.useContext(as);at(n,"useFormAction must be used inside a RouteContext");let[l]=n.matches.slice(-1),d={...Fo(t||".",{relative:s})},u=Yt();if(t==null){d.search=u.search;let m=new URLSearchParams(d.search),x=m.getAll("index");if(x.some(g=>g==="")){m.delete("index"),x.filter(v=>v).forEach(v=>m.append("index",v));let g=m.toString();d.search=g?`?${g}`:""}}return(!t||t===".")&&l.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(d.pathname=d.pathname==="/"?i:Ls([i,d.pathname])),No(d)}function a4(t,{relative:s}={}){let i=b.useContext(Hv);at(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=e2("useViewTransitionState"),l=Fo(t,{relative:s});if(!i.isTransitioning)return!1;let d=Os(i.currentLocation.pathname,n)||i.currentLocation.pathname,u=Os(i.nextLocation.pathname,n)||i.nextLocation.pathname;return Uc(l.pathname,u)!=null||Uc(l.pathname,d)!=null}var t2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Z0=Kr.createContext&&Kr.createContext(t2),s4=["attr","size","title"];function r4(t,s){if(t==null)return{};var i=i4(t,s),n,l;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(l=0;l<d.length;l++)n=d[l],!(s.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function i4(t,s){if(t==null)return{};var i={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(s.indexOf(n)>=0)continue;i[n]=t[n]}return i}function Fc(){return Fc=Object.assign?Object.assign.bind():function(t){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Fc.apply(this,arguments)}function eb(t,s){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);
vendor: 8,556 bytes, line 11
11s&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,n)}return i}function $c(t){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?eb(Object(i),!0).forEach(function(n){n4(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):eb(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function n4(t,s,i){return s=o4(s),s in t?Object.defineProperty(t,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[s]=i,t}function o4(t){var s=l4(t,"string");return typeof s=="symbol"?s:s+""}function l4(t,s){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,s);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(t)}function a2(t){return t&&t.map((s,i)=>Kr.createElement(s.tag,$c({key:i},s.attr),a2(s.child)))}function L(t){return s=>Kr.createElement(c4,Fc({attr:$c({},t.attr)},s),a2(t.child))}function c4(t){var s=i=>{var{attr:n,size:l,title:d}=t,u=r4(t,s4),m=l||i.size||"1em",x;return i.className&&(x=i.className),t.className&&(x=(x?x+" ":"")+t.className),Kr.createElement("svg",Fc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,n,u,{className:x,style:$c($c({color:t.color||i.color},i.style),t.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),d&&Kr.createElement("title",null,d),t.children)};return Z0!==void 0?Kr.createElement(Z0.Consumer,null,i=>s(i)):s(t2)}function s2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(t)}function d4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"},child:[]},{tag:"polygon",attr:{points:"12 15 17 21 7 21 12 15"},child:[]}]})(t)}function We(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(t)}function u4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(t)}function r2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.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"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(t)}function h4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"10",x2:"6",y2:"10"},child:[]},{tag:"line",attr:{x1:"21",y1:"6",x2:"3",y2:"6"},child:[]},{tag:"line",attr:{x1:"21",y1:"14",x2:"3",y2:"14"},child:[]},{tag:"line",attr:{x1:"18",y1:"18",x2:"6",y2:"18"},child:[]}]})(t)}function m4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"21",y1:"10",x2:"3",y2:"10"},child:[]},{tag:"line",attr:{x1:"21",y1:"6",x2:"3",y2:"6"},child:[]},{tag:"line",attr:{x1:"21",y1:"14",x2:"3",y2:"14"},child:[]},{tag:"line",attr:{x1:"21",y1:"18",x2:"3",y2:"18"},child:[]}]})(t)}function x4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"17",y1:"10",x2:"3",y2:"10"},child:[]},{tag:"line",attr:{x1:"21",y1:"6",x2:"3",y2:"6"},child:[]},{tag:"line",attr:{x1:"21",y1:"14",x2:"3",y2:"14"},child:[]},{tag:"line",attr:{x1:"17",y1:"18",x2:"3",y2:"18"},child:[]}]})(t)}function f4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"21",y1:"10",x2:"7",y2:"10"},child:[]},{tag:"line",attr:{x1:"21",y1:"6",x2:"3",y2:"6"},child:[]},{tag:"line",attr:{x1:"21",y1:"14",x2:"3",y2:"14"},child:[]},{tag:"line",attr:{x1:"21",y1:"18",x2:"7",y2:"18"},child:[]}]})(t)}function p4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"5",r:"3"},child:[]},{tag:"line",attr:{x1:"12",y1:"22",x2:"12",y2:"8"},child:[]},{tag:"path",attr:{d:"M5 12H2a10 10 0 0 0 20 0h-3"},child:[]}]})(t)}function g4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"14.31",y1:"8",x2:"20.05",y2:"17.94"},child:[]},{tag:"line",attr:{x1:"9.69",y1:"8",x2:"21.17",y2:"8"},child:[]},{tag:"line",attr:{x1:"7.38",y1:"12",x2:"13.12",y2:"2.06"},child:[]},{tag:"line",attr:{x1:"9.69",y1:"16",x2:"3.95",y2:"6.06"},child:[]},{tag:"line",attr:{x1:"14.31",y1:"16",x2:"2.83",y2:"16"},child:[]},{tag:"line",attr:{x1:"16.62",y1:"12",x2:"10.88",y2:"21.94"},child:[]}]})(t)}function i2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"21 8 21 21 3 21 3 8"},child:[]},{tag:"rect",attr:{x:"1",y:"3",width:"22",height:"5"},child:[]},{tag:"line",attr:{x1:"10",y1:"12",x2:"14",y2:"12"},child:[]}]})(t)}function b4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"8 12 12 16 16 12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"16"},child:[]}]})(t)}function v4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"17",y1:"7",x2:"7",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 17 7 17 7 7"},child:[]}]})(t)}function y4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(t)}function j4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"polyline",attr:{points:"19 12 12 19 5 12"},child:[]}]})(t)}function N4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 8 8 12 12 16"},child:[]},{tag:"line",attr:{x1:"16",y1:"12",x2:"8",y2:"12"},child:[]}]})(t)}function wo(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(t)}function w4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 16 16 12 12 8"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function $o(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"}
11,child:[]}]})(t)}function _4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"16 12 12 8 8 12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"8"},child:[]}]})(t)}function S4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"17",y1:"17",x2:"7",y2:"7"},child:[]},{tag:"polyline",attr:{points:"7 17 7 7 17 7"},child:[]}]})(t)}function k4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"},child:[]},{tag:"polyline",attr:{points:"7 7 17 7 17 17"},child:[]}]})(t)}function C4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"5"},child:[]},{tag:"polyline",attr:{points:"5 12 12 5 19 12"},child:[]}]})(t)}function E4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"path",attr:{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"},child:[]}]})(t)}function Ua(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"8",r:"7"},child:[]},{tag:"polyline",attr:{points:"8.21 13.89 7 23 12 20 17 23 15.79 13.88"},child:[]}]})(t)}function on(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"14"},child:[]}]})(t)}function A4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"10"},child:[]},{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"16"},child:[]}]})(t)}function T4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"},child:[]},{tag:"line",attr:{x1:"23",y1:"13",x2:"23",y2:"11"},child:[]},{tag:"polyline",attr:{points:"11 6 7 12 13 12 9 18"},child:[]}]})(t)}function L4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"6",width:"18",height:"12",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"23",y1:"13",x2:"23",y2:"11"},child:[]}]})(t)}function n2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13.73 21a2 2 0 0 1-3.46 0"},child:[]},{tag:"path",attr:{d:"M18.63 13A17.89 17.89 0 0 1 18 8"},child:[]},{tag:"path",attr:{d:"M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"},child:[]},{tag:"path",attr:{d:"M18 8a6 6 0 0 0-9.33-5"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function O4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"},child:[]},{tag:"path",attr:{d:"M13.73 21a2 2 0 0 1-3.46 0"},child:[]}]})(t)}function R4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"},child:[]}]})(t)}function z4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"},child:[]},{tag:"path",attr:{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"},child:[]}]})(t)}function ei(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"},child:[]},{tag:"path",attr:{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"},child:[]}]})(t)}function Yr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"},child:[]},{tag:"path",attr:{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"},child:[]}]})(t)}function o2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"},child:[]}]})(t)}function D4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(t)}function pr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"},child:[]}]})(t)}function Ee(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(t)}function M4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"},child:[]}]})(t)}function P4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"13",r:"4"},child:[]}]})(t)}function B4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"},child:[]},{tag:"line",attr:{x1:"2",y1:"20",x2:"2.01",y2:"20"},child:[]}]})(t)}function De(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(t)}function q4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 11 12 14 22 4"},child:[]},{tag:"path",attr:{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"},child:[]}]})(t)}function l2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(t)}function Io(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(t)}function ln(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"},child:[]}]})(t)}function ss(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}function c2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"},child:[]}]})(t)}function U4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"7 13 12 18 17 13"},child:[]},{tag:"polyline",attr:{points:"7 6 12 11 17 6"},child:[]}]})(t)}
11function F4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"11 17 6 12 11 7"},child:[]},{tag:"polyline",attr:{points:"18 17 13 12 18 7"},child:[]}]})(t)}function $4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"13 17 18 12 13 7"},child:[]},{tag:"polyline",attr:{points:"6 17 11 12 6 7"},child:[]}]})(t)}function I4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 11 12 6 7 11"},child:[]},{tag:"polyline",attr:{points:"17 18 12 13 7 18"},child:[]}]})(t)}function H4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"line",attr:{x1:"21.17",y1:"8",x2:"12",y2:"8"},child:[]},{tag:"line",attr:{x1:"3.95",y1:"6.06",x2:"8.54",y2:"14"},child:[]},{tag:"line",attr:{x1:"10.88",y1:"21.94",x2:"15.46",y2:"14"},child:[]}]})(t)}function nx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(t)}function ox(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},child:[]},{tag:"rect",attr:{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},child:[]}]})(t)}function mt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(t)}function V4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"19",x2:"8",y2:"21"},child:[]},{tag:"line",attr:{x1:"8",y1:"13",x2:"8",y2:"15"},child:[]},{tag:"line",attr:{x1:"16",y1:"19",x2:"16",y2:"21"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"16",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"17"},child:[]},{tag:"path",attr:{d:"M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"},child:[]}]})(t)}function G4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"},child:[]},{tag:"polyline",attr:{points:"13 11 9 17 15 17 11 23"},child:[]}]})(t)}function W4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function K4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16",y1:"13",x2:"16",y2:"21"},child:[]},{tag:"line",attr:{x1:"8",y1:"13",x2:"8",y2:"21"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"},child:[]}]})(t)}function J4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"},child:[]},{tag:"line",attr:{x1:"8",y1:"16",x2:"8.01",y2:"16"},child:[]},{tag:"line",attr:{x1:"8",y1:"20",x2:"8.01",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12.01",y2:"18"},child:[]},{tag:"line",attr:{x1:"12",y1:"22",x2:"12.01",y2:"22"},child:[]},{tag:"line",attr:{x1:"16",y1:"16",x2:"16.01",y2:"16"},child:[]},{tag:"line",attr:{x1:"16",y1:"20",x2:"16.01",y2:"20"},child:[]}]})(t)}function Y4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"},child:[]}]})(t)}function d2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 18 22 12 16 6"},child:[]},{tag:"polyline",attr:{points:"8 6 2 12 8 18"},child:[]}]})(t)}function Q4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"},child:[]},{tag:"line",attr:{x1:"12",y1:"22",x2:"12",y2:"15.5"},child:[]},{tag:"polyline",attr:{points:"22 8.5 12 15.5 2 8.5"},child:[]},{tag:"polyline",attr:{points:"2 15.5 12 8.5 22 15.5"},child:[]},{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"8.5"},child:[]}]})(t)}function X4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"7.5 4.21 12 6.81 16.5 4.21"},child:[]},{tag:"polyline",attr:{points:"7.5 19.79 7.5 14.6 3 12"},child:[]},{tag:"polyline",attr:{points:"21 12 16.5 14.6 16.5 19.79"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(t)}function Z4(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 8h1a4 4 0 0 1 0 8h-1"},child:[]},{tag:"path",attr:{d:"M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"}
11,child:[]},{tag:"line",attr:{x1:"6",y1:"1",x2:"6",y2:"4"},child:[]},{tag:"line",attr:{x1:"10",y1:"1",x2:"10",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",y1:"1",x2:"14",y2:"4"},child:[]}]})(t)}function e_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"},child:[]}]})(t)}function u2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"},child:[]}]})(t)}function h2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polygon",attr:{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"},child:[]}]})(t)}function m2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(t)}function t_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 10 4 15 9 20"},child:[]},{tag:"path",attr:{d:"M20 4v7a4 4 0 0 1-4 4H4"},child:[]}]})(t)}function a_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 10 20 15 15 20"},child:[]},{tag:"path",attr:{d:"M4 4v7a4 4 0 0 0 4 4h12"},child:[]}]})(t)}function s_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"14 15 9 20 4 15"},child:[]},{tag:"path",attr:{d:"M20 4h-7a4 4 0 0 0-4 4v12"},child:[]}]})(t)}function r_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"14 9 9 4 4 9"},child:[]},{tag:"path",attr:{d:"M20 20h-7a4 4 0 0 1-4-4V4"},child:[]}]})(t)}function i_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"10 15 15 20 20 15"},child:[]},{tag:"path",attr:{d:"M4 4h7a4 4 0 0 1 4 4v12"},child:[]}]})(t)}function n_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"10 9 15 4 20 9"},child:[]},{tag:"path",attr:{d:"M4 20h7a4 4 0 0 0 4-4V4"},child:[]}]})(t)}function o_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 14 4 9 9 4"},child:[]},{tag:"path",attr:{d:"M20 20v-7a4 4 0 0 0-4-4H4"},child:[]}]})(t)}function l_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 14 20 9 15 4"},child:[]},{tag:"path",attr:{d:"M4 20v-7a4 4 0 0 1 4-4h12"},child:[]}]})(t)}function c_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"4",y:"4",width:"16",height:"16",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"9",y:"9",width:"6",height:"6"},child:[]},{tag:"line",attr:{x1:"9",y1:"1",x2:"9",y2:"4"},child:[]},{tag:"line",attr:{x1:"15",y1:"1",x2:"15",y2:"4"},child:[]},{tag:"line",attr:{x1:"9",y1:"20",x2:"9",y2:"23"},child:[]},{tag:"line",attr:{x1:"15",y1:"20",x2:"15",y2:"23"},child:[]},{tag:"line",attr:{x1:"20",y1:"9",x2:"23",y2:"9"},child:[]},{tag:"line",attr:{x1:"20",y1:"14",x2:"23",y2:"14"},child:[]},{tag:"line",attr:{x1:"1",y1:"9",x2:"4",y2:"9"},child:[]},{tag:"line",attr:{x1:"1",y1:"14",x2:"4",y2:"14"},child:[]}]})(t)}function x2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"1",y1:"10",x2:"23",y2:"10"},child:[]}]})(t)}function d_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6.13 1L6 16a2 2 0 0 0 2 2h15"},child:[]},{tag:"path",attr:{d:"M1 6.13L16 6a2 2 0 0 1 2 2v15"},child:[]}]})(t)}function u_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"22",y1:"12",x2:"18",y2:"12"},child:[]},{tag:"line",attr:{x1:"6",y1:"12",x2:"2",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"6",x2:"12",y2:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"22",x2:"12",y2:"18"},child:[]}]})(t)}function dd(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"},child:[]},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"},child:[]},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"},child:[]}]})(t)}function h_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"},child:[]},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"},child:[]}]})(t)}function m_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(t)}function x_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"16"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"8"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(t)}function f_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"16"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"8"},child:[]}]})(t)}function p_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"6",r:"2"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"circle",attr:{cx:"12",cy:"18",r:"2"},child:[]}]})(t)}function ut(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"},child:[]}]})(t)}function g_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"8 17 12 21 16 17"},child:[]},{tag:"line",attr:{x1:"12",y1:"12",x2:"12",y2:"21"},child:[]},{tag:"path",attr:{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"},child:[]}]})(t)}function tt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(t)}function b_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"},child:[]}]})(t)}function v_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"},child:[]}]})(t)}function y_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(t)}function j_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 20h9"},child:[]},{tag:"path",attr:{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},child:[]}]})(t)}function N_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(t)}function Ke(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(t)}function w_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function ka(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(t)}function lx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"},child:[]}]})(t)}function __(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"13 19 22 12 13 5 13 19"},child:[]},{tag:"polygon",attr:{points:"2 19 11 12 2 5 2 19"},child:[]}]})(t)}function S_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"},child:[]},{tag:"line",attr:{x1:"16",y1:"8",x2:"2",y2:"22"},child:[]},{tag:"line",attr:{x1:"17.5",y1:"15",x2:"9",y2:"15"},child:[]}]})(t)}function k_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"},child:[]},{tag:"path",attr:{d:"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"},child:[]},{tag:"path",attr:{d:"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"},child:[]},{tag:"path",attr:{d:"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"},child:[]},{tag:"path",attr:{d:"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"},child:[]}]})(t)}function C_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"9",y1:"15",x2:"15",y2:"15"},child:[]}]})(t)}function E_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"9",y1:"15",x2:"15",y2:"15"},child:[]}]})(t)}function he(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(t)}function cx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},child:[]},{tag:"polyline",attr:{points:"13 2 13 9 20 9"},child:[]}]})(t)}function A_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18"},child:[]},{tag:"line",attr:{x1:"7",y1:"2",x2:"7",y2:"22"},child:[]},{tag:"line",attr:{x1:"17",y1:"2",x2:"17",y2:"22"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"2",y1:"7",x2:"7",y2:"7"},child:[]},{tag:"line",attr:{x1:"2",y1:"17",x2:"7",y2:"17"},child:[]},{tag:"line",attr:{x1:"17",y1:"17",x2:"22",y2:"17"},child:[]},{tag:"line",attr:{x1:"17",y1:"7",x2:"22",y2:"7"},child:[]}]})(t)}function Ho(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},child:[]}]})(t)}function dx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"},child:[]},{tag:"line",attr:{x1:"4",y1:"22",x2:"4",y2:"15"},child:[]}]})(t)}function T_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"},child:[]},{tag:"line",attr:{x1:"9",y1:"14",x2:"15",y2:"14"},child:[]}]})(t)}function L_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"},child:[]},{tag:"line",attr:{x1:"12",y1:"11",x2:"12",y2:"17"},child:[]},{tag:"line",attr:{x1:"9",y1:"14",x2:"15",y2:"14"},child:[]}]})(t)}function Ic(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeL
11inejoin:"round"},child:[{tag:"path",attr:{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"},child:[]}]})(t)}function O_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"},child:[]}]})(t)}function R_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M16 16s-1.5-2-4-2-4 2-4 2"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"9.01",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"15.01",y2:"9"},child:[]}]})(t)}function z_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 12 20 22 4 22 4 12"},child:[]},{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"5"},child:[]},{tag:"line",attr:{x1:"12",y1:"22",x2:"12",y2:"7"},child:[]},{tag:"path",attr:{d:"M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"},child:[]},{tag:"path",attr:{d:"M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"},child:[]}]})(t)}function D_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"6",y1:"3",x2:"6",y2:"15"},child:[]},{tag:"circle",attr:{cx:"18",cy:"6",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"3"},child:[]},{tag:"path",attr:{d:"M18 9a9 9 0 0 1-9 9"},child:[]}]})(t)}function M_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"line",attr:{x1:"1.05",y1:"12",x2:"7",y2:"12"},child:[]},{tag:"line",attr:{x1:"17.01",y1:"12",x2:"22.96",y2:"12"},child:[]}]})(t)}function P_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"18",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"6",r:"3"},child:[]},{tag:"path",attr:{d:"M6 21V9a9 9 0 0 0 9 9"},child:[]}]})(t)}function B_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"18",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"6",r:"3"},child:[]},{tag:"path",attr:{d:"M13 6h3a2 2 0 0 1 2 2v7"},child:[]},{tag:"line",attr:{x1:"6",y1:"9",x2:"6",y2:"21"},child:[]}]})(t)}function q_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"},child:[]}]})(t)}function U_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"},child:[]}]})(t)}function ux(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"path",attr:{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"},child:[]}]})(t)}function hx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"14",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"3",y:"14",width:"7",height:"7"},child:[]}]})(t)}function F_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"12",x2:"2",y2:"12"},child:[]},{tag:"path",attr:{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"},child:[]},{tag:"line",attr:{x1:"6",y1:"16",x2:"6.01",y2:"16"},child:[]},{tag:"line",attr:{x1:"10",y1:"16",x2:"10.01",y2:"16"},child:[]}]})(t)}function $_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",y1:"9",x2:"20",y2:"9"},child:[]},{tag:"line",attr:{x1:"4",y1:"15",x2:"20",y2:"15"},child:[]},{tag:"line",attr:{x1:"10",y1:"3",x2:"8",y2:"21"},child:[]},{tag:"line",attr:{x1:"16",y1:"3",x2:"14",y2:"21"},child:[]}]})(t)}function I_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 18v-6a9 9 0 0 1 18 0v6"},child:[]},{tag:"path",attr:{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"},child:[]}]})(t)}function f2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"},child:[]}]})(t)}function Dc(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(t)}function H_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]}]})(t)}function ti(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},child:[]},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"}
11,child:[]}]})(t)}function Ur(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"},child:[]},{tag:"polyline",attr:{points:"21 15 16 10 5 21"},child:[]}]})(t)}function Qr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 16 12 14 15 10 15 8 12 2 12"},child:[]},{tag:"path",attr:{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"},child:[]}]})(t)}function ht(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(t)}function p2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"},child:[]},{tag:"path",attr:{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"},child:[]},{tag:"line",attr:{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"},child:[]}]})(t)}function V_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"4",x2:"10",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",y1:"20",x2:"5",y2:"20"},child:[]},{tag:"line",attr:{x1:"15",y1:"4",x2:"9",y2:"20"},child:[]}]})(t)}function Hc(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"},child:[]}]})(t)}function g2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 2 7 12 12 22 7 12 2"},child:[]},{tag:"polyline",attr:{points:"2 17 12 22 22 17"},child:[]},{tag:"polyline",attr:{points:"2 12 12 17 22 12"},child:[]}]})(t)}function G_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"3",y1:"9",x2:"21",y2:"9"},child:[]},{tag:"line",attr:{x1:"9",y1:"21",x2:"9",y2:"9"},child:[]}]})(t)}function W_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"9.17",y2:"9.17"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"14.83",x2:"19.07",y2:"19.07"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"9.17",x2:"19.07",y2:"4.93"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"9.17",x2:"18.36",y2:"5.64"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"19.07",x2:"9.17",y2:"14.83"},child:[]}]})(t)}function K_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function ud(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"},child:[]},{tag:"path",attr:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"},child:[]}]})(t)}function J_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"},child:[]},{tag:"rect",attr:{x:"2",y:"9",width:"4",height:"12"},child:[]},{tag:"circle",attr:{cx:"4",cy:"4",r:"2"},child:[]}]})(t)}function b2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"},child:[]}]})(t)}function Y_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"6"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12",y2:"22"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"6",y2:"12"},child:[]},{tag:"line",attr:{x1:"18",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"},child:[]}]})(t)}function Za(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"},child:[]}]})(t)}function Rm(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"},child:[]},{tag:"polyline",attr:{points:"10 17 15 12 10 7"},child:[]},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"},child:[]}]})(t)}function v2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(t)}function Ze(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"},child:[]},{tag:"polyline",attr:{points:"22,6 12,13 2,6"},child:[]}]})(t)}function xt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"10",r:"3"},child:[]}]})(t)}function _o(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"18"},child:[]},{tag:"line",attr:{x1:"16",y1:"6",x2:"16",y2:"22"},child:[]}]})(t)}function Q_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"polyline",attr:{points:"9 21 3 21 3 15"},child:[]},{tag:"line",attr:{x1:"21",y1:"3",x2:"14",y2:"10"},child:[]},{tag:"line",attr:{x1:"3",y1:"21",x2:"10",y2:"14"},child:[]}]})(t)}function y2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}
11,child:[]}]})(t)}function X_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"8",y1:"15",x2:"16",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"9.01",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"15.01",y2:"9"},child:[]}]})(t)}function Vc(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(t)}function So(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},child:[]}]})(t)}function Pa(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(t)}function Z_(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},child:[]},{tag:"path",attr:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(t)}function eS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(t)}function tS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 14 10 14 10 20"},child:[]},{tag:"polyline",attr:{points:"20 10 14 10 14 4"},child:[]},{tag:"line",attr:{x1:"14",y1:"10",x2:"21",y2:"3"},child:[]},{tag:"line",attr:{x1:"3",y1:"21",x2:"10",y2:"14"},child:[]}]})(t)}function aS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},child:[]}]})(t)}function sS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function rS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function j2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function mx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"8",y1:"21",x2:"16",y2:"21"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12",y2:"21"},child:[]}]})(t)}function iS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"}
11,child:[]}]})(t)}function nS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"},child:[]},{tag:"circle",attr:{cx:"19",cy:"12",r:"1"},child:[]},{tag:"circle",attr:{cx:"5",cy:"12",r:"1"},child:[]}]})(t)}function oS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"},child:[]},{tag:"circle",attr:{cx:"12",cy:"5",r:"1"},child:[]},{tag:"circle",attr:{cx:"12",cy:"19",r:"1"},child:[]}]})(t)}function lS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"},child:[]},{tag:"path",attr:{d:"M13 13l6 6"},child:[]}]})(t)}function cS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"5 9 2 12 5 15"},child:[]},{tag:"polyline",attr:{points:"9 5 12 2 15 5"},child:[]},{tag:"polyline",attr:{points:"15 19 12 22 9 19"},child:[]},{tag:"polyline",attr:{points:"19 9 22 12 19 15"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"22"},child:[]}]})(t)}function en(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 18V5l12-2v13"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"3"},child:[]},{tag:"circle",attr:{cx:"18",cy:"16",r:"3"},child:[]}]})(t)}function dS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 19 21 12 17 5 21 12 2"},child:[]}]})(t)}function ko(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"3 11 22 2 13 21 11 13 3 11"},child:[]}]})(t)}function uS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},child:[]}]})(t)}function hS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"},child:[]},{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(t)}function xx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"},child:[]}]})(t)}function mS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"10",y1:"15",x2:"10",y2:"9"},child:[]},{tag:"line",attr:{x1:"14",y1:"15",x2:"14",y2:"9"},child:[]}]})(t)}function N2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"6",y:"4",width:"4",height:"16"},child:[]},{tag:"rect",attr:{x:"14",y:"4",width:"4",height:"16"},child:[]}]})(t)}function xS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 19l7-7 3 3-7 7-3-3z"},child:[]},{tag:"path",attr:{d:"M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"},child:[]},{tag:"path",attr:{d:"M2 2l7.586 7.586"},child:[]},{tag:"circle",attr:{cx:"11",cy:"11",r:"2"},child:[]}]})(t)}function fS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"5",x2:"5",y2:"19"},child:[]},{tag:"circle",attr:{cx:"6.5",cy:"6.5",r:"2.5"},child:[]},{tag:"circle",attr:{cx:"17.5",cy:"17.5",r:"2.5"},child:[]}]})(t)}function pS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}
11,child:[]}]})(t)}function gS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"19 1 23 5 19 9"},child:[]},{tag:"line",attr:{x1:"15",y1:"5",x2:"23",y2:"5"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(t)}function bS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 2 16 8 22 8"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"16",y2:"8"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(t)}function vS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"23",y1:"1",x2:"17",y2:"7"},child:[]},{tag:"line",attr:{x1:"17",y1:"1",x2:"23",y2:"7"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(t)}function yS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"1",y2:"23"},child:[]}]})(t)}function jS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 7 23 1 17 1"},child:[]},{tag:"line",attr:{x1:"16",y1:"8",x2:"23",y2:"1"},child:[]},{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(t)}function zt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(t)}function w2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21.21 15.89A10 10 0 1 1 8 2.83"},child:[]},{tag:"path",attr:{d:"M22 12A10 10 0 0 0 12 2v10z"},child:[]}]})(t)}function NS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polygon",attr:{points:"10 8 16 12 10 16 10 8"},child:[]}]})(t)}function Gc(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 3 19 12 5 21 5 3"},child:[]}]})(t)}function wS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"16"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function _S(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"16"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(t)}function cn(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(t)}function SS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"},child:[]},{tag:"polyline",attr:{points:"8 10 12 14 16 10"},child:[]}]})(t)}function kS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18.36 6.64a9 9 0 1 1-12.73 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"12"},child:[]}]})(t)}function CS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 6 2 18 2 18 9"},child:[]},{tag:"path",attr:{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"},child:[]},{tag:"rect",attr:{x:"6",y:"14",width:"12",height:"8"},child:[]}]})(t)}function ES(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"2"},child:[]},{tag:"path",attr:{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"},child:[]}]})(t)}function AS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"1 4 1 10 7 10"},child:[]},{tag:"polyline",attr:{points:"23 20 23 14 17 14"},child:[]},{tag:"path",attr:{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"},child:[]}]})(t)}function TS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(t)}function LS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(t)}function OS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 19 2 12 11 5 11 19"},child:[]},{tag:"polygon",attr:{points:"22 19 13 12 22 5 22 19"},child:[]}]})(t)}function RS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"1 4 1 10 7 10"},child:[]},{tag:"path",attr:{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"},child:[]}]})(t)}function zS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"path",attr:{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"},child:[]}]})(t)}function po(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 11a9 9 0 0 1 9 9"},child:[]},{tag:"path",attr:{d:"M4 4a16 16 0 0 1 16 16"},child:[]},{tag:"circle",attr:{cx:"5",cy:"19",r:"1"},child:[]}]})(t)}function _2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"},child:[]},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"},child:[]},{tag:"polyline",attr:{points:"7 3 7 8 15 8"},child:[]}]})(t)}function DS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"3"},child:[]},{tag:"line",attr:{x1:"20",y1:"4",x2:"8.12",y2:"15.88"},child:[]},{tag:"line",attr:{x1:"14.47",y1:"14.48",x2:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"8.12",y1:"8.12",x2:"12",y2:"12"},child:[]}]})(t)}function yt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(t)}function hr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(t)}function MS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"6.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"6",y1:"18",x2:"6.01",y2:"18"},child:[]}]})(t)}function S2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2
110 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(t)}function PS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"5",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"12",r:"3"},child:[]},{tag:"circle",attr:{cx:"18",cy:"19",r:"3"},child:[]},{tag:"line",attr:{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"},child:[]},{tag:"line",attr:{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"},child:[]}]})(t)}function BS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"},child:[]},{tag:"polyline",attr:{points:"16 6 12 2 8 6"},child:[]},{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"15"},child:[]}]})(t)}function qS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"},child:[]},{tag:"path",attr:{d:"M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function Rs(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},child:[]}]})(t)}function US(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"path",attr:{d:"M16 10a4 4 0 0 1-8 0"},child:[]}]})(t)}function k2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"9",cy:"21",r:"1"},child:[]},{tag:"circle",attr:{cx:"20",cy:"21",r:"1"},child:[]},{tag:"path",attr:{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"},child:[]}]})(t)}function FS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 3 21 3 21 8"},child:[]},{tag:"line",attr:{x1:"4",y1:"20",x2:"21",y2:"3"},child:[]},{tag:"polyline",attr:{points:"21 16 21 21 16 21"},child:[]},{tag:"line",attr:{x1:"15",y1:"15",x2:"21",y2:"21"},child:[]},{tag:"line",attr:{x1:"4",y1:"4",x2:"9",y2:"9"},child:[]}]})(t)}function $S(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"9",y1:"3",x2:"9",y2:"21"},child:[]}]})(t)}function IS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"19 20 9 12 19 4 19 20"},child:[]},{tag:"line",attr:{x1:"5",y1:"19",x2:"5",y2:"5"},child:[]}]})(t)}function HS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(t)}function VS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"},child:[]},{tag:"path",attr:{d:"M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"},child:[]},{tag:"path",attr:{d:"M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"},child:[]},{tag:"path",attr:{d:"M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"},child:[]},{tag:"path",attr:{d:"M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"},child:[]},{tag:"path",attr:{d:"M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"},child:[]}]})(t)}function GS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(t)}function WS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",y1:"21",x2:"4",y2:"14"},child:[]},{tag:"line",attr:{x1:"4",y1:"10",x2:"4",y2:"3"},child:[]},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"3"},child:[]},{tag:"line",attr:{x1:"20",y1:"21",x2:"20",y2:"16"},child:[]},{tag:"line",attr:{x1:"20",y1:"12",x2:"20",y2:"3"},child:[]},{tag:"line",attr:{x1:"1",y1:"14",x2:"7",y2:"14"},child:[]},{tag:"line",attr:{x1:"9",y1:"8",x2:"15",y2:"8"},child:[]},{tag:"line",attr:{x1:"17",y1:"16",x2:"23",y2:"16"},child:[]}]})(t)}function KS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12.01",y2:"18"},child:[]}]})(t)}function JS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"9.01",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"15.01",y2:"9"},child:[]}]})(t)}function YS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"4",y:"2",width:"16",height:"20",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"14",r:"4"},child:[]},{tag:"line",attr:{x1:"12",y1:"6",x2:"12.01",y2:"6"},child:[]}]})(t)}function QS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]}]})(t)}function Hr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"},child:[]}]})(t)}function XS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"rect",attr:{x:"9",y:"9",width:"6",height:"6"},child:[]}]})(t)}function ZS(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"5"},child:[]},{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"3"},child:[]},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"},child:[]},{tag:"line",attr:{x1:"1",y1:"12",x2:"3",y2:"12"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"23",y2:"12"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"}
11,child:[]}]})(t)}function ek(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 18a5 5 0 0 0-10 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"9"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"10.22",x2:"5.64",y2:"11.64"},child:[]},{tag:"line",attr:{x1:"1",y1:"18",x2:"3",y2:"18"},child:[]},{tag:"line",attr:{x1:"21",y1:"18",x2:"23",y2:"18"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"11.64",x2:"19.78",y2:"10.22"},child:[]},{tag:"line",attr:{x1:"23",y1:"22",x2:"1",y2:"22"},child:[]},{tag:"polyline",attr:{points:"8 6 12 2 16 6"},child:[]}]})(t)}function tk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 18a5 5 0 0 0-10 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"2"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"10.22",x2:"5.64",y2:"11.64"},child:[]},{tag:"line",attr:{x1:"1",y1:"18",x2:"3",y2:"18"},child:[]},{tag:"line",attr:{x1:"21",y1:"18",x2:"23",y2:"18"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"11.64",x2:"19.78",y2:"10.22"},child:[]},{tag:"line",attr:{x1:"23",y1:"22",x2:"1",y2:"22"},child:[]},{tag:"polyline",attr:{points:"16 5 12 9 8 5"},child:[]}]})(t)}function ak(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"},child:[]}]})(t)}function sk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"4",y:"2",width:"16",height:"20",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12.01",y2:"18"},child:[]}]})(t)}function C2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"},child:[]},{tag:"line",attr:{x1:"7",y1:"7",x2:"7.01",y2:"7"},child:[]}]})(t)}function E2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"6"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"2"},child:[]}]})(t)}function rk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 17 10 11 4 5"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"20",y2:"19"},child:[]}]})(t)}function ik(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"},child:[]}]})(t)}function nk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"},child:[]}]})(t)}function ok(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},child:[]}]})(t)}function lk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"5",width:"22",height:"14",rx:"7",ry:"7"},child:[]},{tag:"circle",attr:{cx:"8",cy:"12",r:"3"},child:[]}]})(t)}function ck(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"5",width:"22",height:"14",rx:"7",ry:"7"},child:[]},{tag:"circle",attr:{cx:"16",cy:"12",r:"3"},child:[]}]})(t)}function fx(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(t)}function dk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(t)}function uk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]}]})(t)}function hk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"7",y:"7",width:"3",height:"9"},child:[]},{tag:"rect",attr:{x:"14",y:"7",width:"3",height:"5"},child:[]}]})(t)}function Wc(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 18 13.5 8.5 8.5 13.5 1 6"},child:[]},{tag:"polyline",attr:{points:"17 18 23 18 23 12"},child:[]}]})(t)}function mr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 6 13.5 15.5 8.5 10.5 1 18"},child:[]},{tag:"polyline",attr:{points:"17 6 23 6 23 12"},child:[]}]})(t)}function mk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.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"},child:[]}]})(t)}function A2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"3",width:"15",height:"13"},child:[]},{tag:"polygon",attr:{points:"16 8 20 8 23 11 23 16 16 16 16 8"},child:[]},{tag:"circle",attr:{cx:"5.5",cy:"18.5",r:"2.5"},child:[]},{tag:"circle",attr:{cx:"18.5",cy:"18.5",r:"2.5"},child:[]}]})(t)}function xk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"15",rx:"2",ry:"2"},child:[]},{tag:"polyline",attr:{points:"17 2 12 7 7 2"},child:[]}]})(t)}function fk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"},child:[]}]})(t)}function T2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"},child:[]}]})(t)}function L2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",y1:"20",x2:"15",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",y1:"4",x2:"12",y2:"20"},child:[]}]})(t)}function pk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"},child:[]}]})(t)}function gk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"},child:[]},{tag:"line",attr:{x1:"4",y1:"21",x2:"20",y2:"21"},child:[]}]})(t)}function zm(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 9.9-1"},child:[]}]})(t)}function bk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]},{tag:"line",attr:{x1:"12",y1:"12",x2:"12",y2:"21"},child:[]},{tag:"path",attr:{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"},child:[]},{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]}]})(t)}function O2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"17 8 12 3 7 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"},child:[]}]})(t)}function R2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"polyline",attr:{points:"17 11 19 13 23 9"},child:[]}]})(t)}function vk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"},child:[]}]})(t)}function Dm(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"},child:[]},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"},child:[]}]})(t)}function yk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"18",y1:"8",x2:"23",y2:"13"},child:[]},{tag:"line",attr:{x1:"23",y1:"8",x2:"18",y2:"13"},child:[]}]})(t)}function Nt(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(t)}function ot(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(t)}function jk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function cr(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"23 7 16 12 23 17 23 7"},child:[]},{tag:"rect",attr:{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"},child:[]}]})(t)}function Nk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"5.5",cy:"11.5",r:"4.5"},child:[]},{tag:"circle",attr:{cx:"18.5",cy:"11.5",r:"4.5"},child:[]},{tag:"line",attr:{x1:"5.5",y1:"16",x2:"18.5",y2:"16"},child:[]}]})(t)}function wk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(t)}function _k(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(t)}function Sk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"line",attr:{x1:"23",y1:"9",x2:"17",y2:"15"},child:[]},{tag:"line",attr:{x1:"17",y1:"9",x2:"23",y2:"15"},child:[]}]})(t)}function kk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]}]})(t)}function Ck(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(t)}function Ek(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]},{tag:"path",attr:{d:"M16.72 11.06A10.94 10.94 0 0 1 19 12.55"},child:[]},{tag:"path",attr:{d:"M5 12.55a10.94 10.94 0 0 1 5.17-2.39"},child:[]},{tag:"path",attr:{d:"M10.71 5.05A16 16 0 0 1 22.58 9"},child:[]},{tag:"path",attr:{d:"M1.42 9a15.91 15.91 0 0 1 4.7-2.88"},child:[]},{tag:"path",attr:{d:"M8.53 16.11a6 6 0 0 1 6.95 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12.01",y2:"20"},child:[]}]})(t)}function Ak(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12.55a11 11 0 0 1 14.08 0"},child:[]},{tag:"path",attr:{d:"M1.42 9a16 16 0 0 1 21.16 0"},child:[]},{tag:"path",attr:{d:"M8.53 16.11a6 6 0 0 1 6.95 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12.01",y2:"20"},child:[]}]})(t)}function Tk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"},child:[]}]})(t)}function z2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{
11x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(t)}function Lk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(t)}function Ok(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]}]})(t)}function Fa(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(t)}function D2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},child:[]},{tag:"polygon",attr:{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},child:[]}]})(t)}function Rk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"12.41 6.75 13 2 10.57 4.92"},child:[]},{tag:"polyline",attr:{points:"18.57 12.91 21 10 15.66 10"},child:[]},{tag:"polyline",attr:{points:"8 8 3 14 12 14 11 22 16 16"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(t)}function zk(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"},child:[]}]})(t)}function M2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]},{tag:"line",attr:{x1:"11",y1:"8",x2:"11",y2:"14"},child:[]},{tag:"line",attr:{x1:"8",y1:"11",x2:"14",y2:"11"},child:[]}]})(t)}function P2(t){return L({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]},{tag:"line",attr:{x1:"8",y1:"11",x2:"14",y2:"11"},child:[]}]})(t)}const px=Object.freeze(Object.defineProperty({__proto__:null,FiActivity:s2,FiAirplay:d4,FiAlertCircle:We,FiAlertOctagon:u4,FiAlertTriangle:r2,FiAlignCenter:h4,FiAlignJustify:m4,FiAlignLeft:x4,FiAlignRight:f4,FiAnchor:p4,FiAperture:g4,FiArchive:i2,FiArrowDown:j4,FiArrowDownCircle:b4,FiArrowDownLeft:v4,FiArrowDownRight:y4,FiArrowLeft:wo,FiArrowLeftCircle:N4,FiArrowRight:$o,FiArrowRightCircle:w4,FiArrowUp:C4,FiArrowUpCircle:_4,FiArrowUpLeft:S4,FiArrowUpRight:k4,FiAtSign:E4,FiAward:Ua,FiBarChart:A4,FiBarChart2:on,FiBattery:L4,FiBatteryCharging:T4,FiBell:O4,FiBellOff:n2,FiBluetooth:R4,FiBold:z4,FiBook:Yr,FiBookOpen:ei,FiBookmark:o2,FiBox:D4,FiBriefcase:pr,FiCalendar:Ee,FiCamera:P4,FiCameraOff:M4,FiCast:B4,FiCheck:l2,FiCheckCircle:De,FiCheckSquare:q4,FiChevronDown:Io,FiChevronLeft:ln,FiChevronRight:ss,FiChevronUp:c2,FiChevronsDown:U4,FiChevronsLeft:F4,FiChevronsRight:$4,FiChevronsUp:I4,FiChrome:H4,FiCircle:nx,FiClipboard:ox,FiClock:mt,FiCloud:Y4,FiCloudDrizzle:V4,FiCloudLightning:G4,FiCloudOff:W4,FiCloudRain:K4,FiCloudSnow:J4,FiCode:d2,FiCodepen:Q4,FiCodesandbox:X4,FiCoffee:Z4,FiColumns:e_,FiCommand:u2,FiCompass:h2,FiCopy:m2,FiCornerDownLeft:t_,FiCornerDownRight:a_,FiCornerLeftDown:s_,FiCornerLeftUp:r_,FiCornerRightDown:i_,FiCornerRightUp:n_,FiCornerUpLeft:o_,FiCornerUpRight:l_,FiCpu:c_,FiCreditCard:x2,FiCrop:d_,FiCrosshair:u_,FiDatabase:dd,FiDelete:h_,FiDisc:m_,FiDivide:p_,FiDivideCircle:x_,FiDivideSquare:f_,FiDollarSign:ut,FiDownload:tt,FiDownloadCloud:g_,FiDribbble:b_,FiDroplet:v_,FiEdit:N_,FiEdit2:y_,FiEdit3:j_,FiExternalLink:Ke,FiEye:ka,FiEyeOff:w_,FiFacebook:lx,FiFastForward:__,FiFeather:S_,FiFigma:k_,FiFile:cx,FiFileMinus:C_,FiFilePlus:E_,FiFileText:he,FiFilm:A_,FiFilter:Ho,FiFlag:dx,FiFolder:Ic,FiFolderMinus:T_,FiFolderPlus:L_,FiFramer:O_,FiFrown:R_,FiGift:z_,FiGitBranch:D_,FiGitCommit:M_,FiGitMerge:P_,FiGitPullRequest:B_,FiGithub:q_,FiGitlab:U_,FiGlobe:ux,FiGrid:hx,FiHardDrive:F_,FiHash:$_,FiHeadphones:I_,FiHeart:f2,FiHelpCircle:Dc,FiHexagon:H_,FiHome:ti,FiImage:Ur,FiInbox:Qr,FiInfo:ht,FiInstagram:p2,FiItalic:V_,FiKey:Hc,FiLayers:g2,FiLayout:G_,FiLifeBuoy:W_,FiLink:ud,FiLink2:K_,FiLinkedin:J_,FiList:b2,FiLoader:Y_,FiLock:Za,FiLogIn:Rm,FiLogOut:v2,FiMail:Ze,FiMap:_o,FiMapPin:xt,FiMaximize:y2,FiMaximize2:Q_,FiMeh:X_,FiMenu:Vc,FiMessageCircle:So,FiMessageSquare:Pa,FiMic:eS,FiMicOff:Z_,FiMinimize:aS,FiMinimize2:tS,FiMinus:j2,FiMinusCircle:sS,FiMinusSquare:rS,FiMonitor:mx,FiMoon:iS,FiMoreHorizontal:nS,FiMoreVertical:oS,FiMousePointer:lS,FiMove:cS,FiMusic:en,FiNavigation:ko,FiNavigation2:dS,FiOctagon:uS,FiPackage:hS,FiPaperclip:xx,FiPause:N2,FiPauseCircle:mS,FiPenTool:xS,FiPercent:fS,FiPhone:zt,FiPhoneCall:pS,FiPhoneForwarded:gS,FiPhoneIncoming:bS,FiPhoneMissed:vS,FiPhoneOff:yS,FiPhoneOutgoing:jS,FiPieChart:w2,FiPlay:Gc,FiPlayCircle:NS,FiPlus:cn,FiPlusCircle:wS,FiPlusSquare:_S,FiPocket:SS,FiPower:kS,FiPrinter:CS,FiRadio:ES,FiRefreshCcw:AS,FiRefreshCw:TS,FiRepeat:LS,FiRewind:OS,FiRotateCcw:RS,FiRotateCw:zS,FiRss:po,FiSave:_2,FiScissors:DS,FiSearch:yt,FiSend:hr,FiServer:MS,FiSettings:S2,FiShare:BS,FiShare2:PS,FiShield:Rs,FiShieldOff:qS,FiShoppingBag:US,FiShoppingCart:k2,FiShuffle:FS,FiSidebar:$S,FiSkipBack:IS,FiSkipForward:HS,FiSlack:VS,FiSlash:GS,FiSliders:WS,FiSmartphone:KS,FiSmile:JS,FiSpeaker:YS,FiSquare:QS,FiStar:Hr,FiStopCircle:XS,FiSun:ZS,FiSunrise:ek,FiSunset:tk,FiTable:ak,FiTablet:sk,FiTag:C2,FiTarget:E2,FiTerminal:rk,FiThermometer:ik,FiThumbsDown:nk,FiThumbsUp:ok,FiToggleLeft:lk,FiToggleRight:ck,FiTool:fx,FiTrash:uk,FiTrash2:dk,FiTrello:hk,FiTrendingDown:Wc,FiTrendingUp:mr,FiTriangle:mk,FiTruck:A2,FiTv:xk,FiTwitch:fk,FiTwitter:T2,FiType:L2,FiUmbrella:pk,FiUnderline:gk,FiUnlock:zm,FiUpload:O2,FiUploadCloud:bk,FiUser:Nt,FiUserCheck:R2,FiUserMinus:vk,FiUserPlus:Dm,FiUserX:yk,FiUsers:ot,FiVideo:cr,FiVideoOff:jk,FiVoicemail:Nk,FiVolume:kk,FiVolume1:wk,FiVolume2:_k,FiVolumeX:Sk,FiWatch:Ck,FiWifi:Ak,FiWifiOff:Ek,FiWind:Tk,FiX:Fa,FiXCircle:z2,FiXOctagon:Lk,FiXSquare:Ok,FiYoutube:D2,FiZap:zk,Fi
11ZapOff:Rk,FiZoomIn:M2,FiZoomOut:P2},Symbol.toStringTag,{value:"Module"}));function Dk(t){return L({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"},child:[]}]})(t)}function Mk(t){return L({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}function Pk(t){return L({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"},child:[]}]})(t)}const Bk=Symbol.for("@supabase/supabase-js.traceContextExtractor");function qk(){return globalThis[Bk]}function hd(t,s){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&s.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)s.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function Uk(t,s,i,n){function l(d){return d instanceof i?d:new i(function(u){u(d)})}return new(i||(i=Promise))(function(d,u){function m(g){try{p(n.next(g))}catch(v){u(v)}}function x(g){try{p(n.throw(g))}catch(v){u(v)}}function p(g){g.done?d(g.value):l(g.value).then(m,x)}p((n=n.apply(t,s||[])).next())})}const Fk=t=>t?(...s)=>t(...s):(...s)=>fetch(...s);class gx extends Error{constructor(s,i="FunctionsError",n){super(s),this.name=i,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class $k extends gx{constructor(s){super("Failed to send a request to the Edge Function","FunctionsFetchError",s)}}class tb extends gx{constructor(s){super("Relay Error invoking the Edge Function","FunctionsRelayError",s)}}class ab extends gx{constructor(s){super("Edge Function returned a non-2xx status code","FunctionsHttpError",s)}}var Mm;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Mm||(Mm={}));class Ik{constructor(s,{headers:i={},customFetch:n,region:l=Mm.Any}={}){this.url=s,this.headers=i,this.region=l,this.fetch=Fk(n)}setAuth(s){this.headers.Authorization=`Bearer ${s}`}invoke(s){return Uk(this,arguments,void 0,function*(i,n={}){var l,d;let u,m,x;try{const{headers:p,method:g,body:v,signal:j,timeout:N}=n;let k={},{region:S}=n;S||(S=this.region);const C=new URL(`${this.url}/${i}`);S&&S!=="any"&&(k["x-region"]=S,C.searchParams.set("forceFunctionRegion",S));let T;const w=!!p&&Object.keys(p).some(Q=>Q.toLowerCase()==="content-type");v&&!w?typeof Blob<"u"&&v instanceof Blob||v instanceof ArrayBuffer?(k["Content-Type"]="application/octet-stream",T=v):typeof v=="string"?(k["Content-Type"]="text/plain",T=v):typeof FormData<"u"&&v instanceof FormData?T=v:(k["Content-Type"]="application/json",T=JSON.stringify(v)):v&&typeof v!="string"&&!(typeof Blob<"u"&&v instanceof Blob)&&!(v instanceof ArrayBuffer)&&!(typeof FormData<"u"&&v instanceof FormData)?T=JSON.stringify(v):T=v;let _=j;N&&(m=new AbortController,u=setTimeout(()=>m.abort(),N),j?(_=m.signal,x=()=>m.abort(),j.addEventListener("abort",x)):_=m.signal);const E=yield this.fetch(C.toString(),{method:g||"POST",headers:Object.assign(Object.assign(Object.assign({},k),this.headers),p),body:T,signal:_}).catch(Q=>{throw new $k(Q)}),O=E.headers.get("x-relay-error");
11if(O&&O==="true")throw new tb(E);if(!E.ok)throw new ab(E);let $=((l=E.headers.get("Content-Type"))!==null&&l!==void 0?l:"text/plain").split(";")[0].trim().toLowerCase(),z;return $==="application/json"?z=yield E.json():$==="application/octet-stream"||$==="application/pdf"?z=yield E.blob():$==="text/event-stream"?z=E:$==="multipart/form-data"?z=yield E.formData():z=yield E.text(),{data:z,error:null,response:E}}catch(p){return{data:null,error:p,response:p instanceof ab||p instanceof tb?p.context:void 0}}finally{u&&clearTimeout(u),x&&((d=n.signal)===null||d===void 0||d.removeEventListener("abort",x))}})}}const B2=3,sb=t=>Math.min(1e3*2**t,3e4),Hk=[520,503],q2=["GET","HEAD","OPTIONS"];var Yh=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Co(t){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Co(t)}function Vk(t,s){if(Co(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,s);if(Co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(t)}function Gk(t){var s=Vk(t,"string");return Co(s)=="symbol"?s:s+""}function Wk(t,s,i){return(s=Gk(s))in t?Object.defineProperty(t,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[s]=i,t}function rb(t,s){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);s&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,n)}return i}function Xi(t){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?rb(Object(i),!0).forEach(function(n){Wk(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):rb(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function ib(t,s){return new Promise(i=>{if(s?.aborted){i();return}const n=setTimeout(()=>{s?.removeEventListener("abort",l),i()},t);function l(){clearTimeout(n),i()}s?.addEventListener("abort",l)})}function Kk(t,s,i,n){return!(!n||i>=B2||!q2.includes(t)||!Hk.includes(s))}var Jk=class{constructor(t){var s,i,n,l,d;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(s=t.shouldThrowOnError)!==null&&s!==void 0?s:!1,this.signal=t.signal,this.isMaybeSingle=(i=t.isMaybeSingle)!==null&&i!==void 0?i:!1,this.shouldStripNulls=(n=t.shouldStripNulls)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(l=t.urlLengthLimit)!==null&&l!==void 0?l:8e3,this.retryEnabled=(d=t.retry)!==null&&d!==void 0?d:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,s){return this.headers=new Headers(this.headers),this.headers.set(t,s),this}retry(t){return this.retryEnabled=t,this}then(t,s){var i=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const n=this.fetch;let d=(async()=>{let u=0;for(;;){const p={};i.headers.forEach((v,j)=>{p[j]=v}),u>0&&(p["X-Retry-Count"]=String(u));let g;
11try{g=await n(i.url.toString(),{method:i.method,headers:p,body:JSON.stringify(i.body,(v,j)=>typeof j=="bigint"?j.toString():j),signal:i.signal})}catch(v){if(v?.name==="AbortError"||v?.code==="ABORT_ERR"||!q2.includes(i.method))throw v;if(i.retryEnabled&&u<B2){const j=sb(u);u++,await ib(j,i.signal);continue}throw v}if(Kk(i.method,g.status,u,i.retryEnabled)){var m,x;const v=(m=(x=g.headers)===null||x===void 0?void 0:x.get("Retry-After"))!==null&&m!==void 0?m:null,j=v!==null?Math.max(0,parseInt(v,10)||0)*1e3:sb(u);await g.text(),u++,await ib(j,i.signal);continue}return await i.processResponse(g)}})();return this.shouldThrowOnError||(d=d.catch(u=>{var m;let x="",p="",g="";const v=u?.cause;if(v){var j,N,k,S;const w=(j=v?.message)!==null&&j!==void 0?j:"",_=(N=v?.code)!==null&&N!==void 0?N:"";x=`${(k=u?.name)!==null&&k!==void 0?k:"FetchError"}: ${u?.message}`,x+=` 12 13Caused by: ${(S=v?.name)!==null&&S!==void 0?S:"Error"}: ${w}`,_&&(x+=` (${_})`),v?.stack&&(x+=` 14${v.stack}`)}else{var C;x=(C=u?.stack)!==null&&C!==void 0?C:""}const T=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(g="",p="Request was aborted (timeout or manual cancellation)",T>this.urlLengthLimit&&(p+=`. Note: Your request URL is ${T} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(v?.name==="HeadersOverflowError"||v?.code==="UND_ERR_HEADERS_OVERFLOW")&&(g="",p="HTTP headers exceeded server limits (typically 16KB)",T>this.urlLengthLimit&&(p+=`. Your request URL is ${T} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(m=u?.name)!==null&&m!==void 0?m:"FetchError"}: ${u?.message}`,details:x,hint:p,code:g},data:null,count:null,status:0,statusText:""}})),d.then(t,s)}async processResponse(t){var s=this;let i=null,n=null,l=null,d=t.status,u=t.statusText;if(t.ok){var m,x;if(s.method!=="HEAD"){var p;const N=await t.text();if(N!=="")if(s.headers.get("Accept")==="text/csv")n=N;else if(s.headers.get("Accept")&&(!((p=s.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text")))n=N;else try{n=JSON.parse(N)}catch{if(i={message:N},n=null,s.shouldThrowOnError)throw new Yh({message:N,details:"",hint:"",code:""})}}const v=(m=s.headers.get("Prefer"))===null||m===void 0?void 0:m.match(/count=(exact|planned|estimated)/),j=(x=t.headers.get("content-range"))===null||x===void 0?void 0:x.split("/");if(v&&j&&j.length>1&&(l=parseInt(j[1])),s.isMaybeSingle&&Array.isArray(n))if(n.length>1){if(i={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,l=null,d=406,u="Not Acceptable",s.shouldThrowOnError){var g;throw new Yh(Xi(Xi({},i),{},{hint:(g=i.hint)!==null&&g!==void 0?g:""}))}}else n.length===1?n=n[0]:n=null}else{const v=await t.text();try{i=JSON.parse(v),Array.isArray(i)&&t.status===404&&(n=[],i=null,d=200,u="OK")}catch{t.status===404&&v===""?(d=204,u="No Content"):i={message:v}}if(i&&s.shouldThrowOnError)throw new Yh(i)}return{success:i===null,error:i,data:n,count:l,status:d,statusText:u}}returns(){return this}overrideTypes(){return this}},Yk=class extends Jk{throwOnError(){return super.throwOnError()}select(t){let s=!1;const i=(t??"*").split("").map(n=>/\s/.test(n)&&!s?"":(n==='"'&&(s=!s),n)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:s=!0,nullsFirst:i,foreignTable:n,referencedTable:l=n}={}){const d=l?`${l}.order`:"order",u=this.url.searchParams.get(d);return this.url.searchParams.set(d,`${u?`${u},`:""}${t}.${s?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:s,referencedTable:i=s}={}){const n=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,s,{foreignTable:i,referencedTable:n=i}={}){const l=typeof n>"u"?"offset":`${n}.offset`,d=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(l,`${t}`),this.url.searchParams.set(d,`${s-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
14explain({analyze:t=!1,verbose:s=!1,settings:i=!1,buffers:n=!1,wal:l=!1,format:d="text"}={}){var u;const m=[t?"analyze":null,s?"verbose":null,i?"settings":null,n?"buffers":null,l?"wal":null].filter(Boolean).join("|"),x=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${d}; for="${x}"; options=${m};`),d==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const nb=new RegExp("[,()]");var Ki=class extends Yk{throwOnError(){return super.throwOnError()}eq(t,s){return this.url.searchParams.append(t,`eq.${s}`),this}neq(t,s){return this.url.searchParams.append(t,`neq.${s}`),this}gt(t,s){return this.url.searchParams.append(t,`gt.${s}`),this}gte(t,s){return this.url.searchParams.append(t,`gte.${s}`),this}lt(t,s){return this.url.searchParams.append(t,`lt.${s}`),this}lte(t,s){return this.url.searchParams.append(t,`lte.${s}`),this}like(t,s){return this.url.searchParams.append(t,`like.${s}`),this}likeAllOf(t,s){return this.url.searchParams.append(t,`like(all).{${s.join(",")}}`),this}likeAnyOf(t,s){return this.url.searchParams.append(t,`like(any).{${s.join(",")}}`),this}ilike(t,s){return this.url.searchParams.append(t,`ilike.${s}`),this}ilikeAllOf(t,s){return this.url.searchParams.append(t,`ilike(all).{${s.join(",")}}`),this}ilikeAnyOf(t,s){return this.url.searchParams.append(t,`ilike(any).{${s.join(",")}}`),this}regexMatch(t,s){return this.url.searchParams.append(t,`match.${s}`),this}regexIMatch(t,s){return this.url.searchParams.append(t,`imatch.${s}`),this}is(t,s){return this.url.searchParams.append(t,`is.${s}`),this}isDistinct(t,s){return this.url.searchParams.append(t,`isdistinct.${s}`),this}in(t,s){const i=Array.from(new Set(s)).map(n=>typeof n=="string"&&nb.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`in.(${i})`),this}notIn(t,s){const i=Array.from(new Set(s)).map(n=>typeof n=="string"&&nb.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`not.in.(${i})`),this}contains(t,s){return typeof s=="string"?this.url.searchParams.append(t,`cs.${s}`):Array.isArray(s)?this.url.searchParams.append(t,`cs.{${s.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(s)}`),this}containedBy(t,s){return typeof s=="string"?this.url.searchParams.append(t,`cd.${s}`):Array.isArray(s)?this.url.searchParams.append(t,`cd.{${s.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(s)}`),this}rangeGt(t,s){return this.url.searchParams.append(t,`sr.${s}`),this}rangeGte(t,s){return this.url.searchParams.append(t,`nxl.${s}`),this}rangeLt(t,s){return this.url.searchParams.append(t,`sl.${s}`),this}rangeLte(t,s){return this.url.searchParams.append(t,`nxr.${s}`),this}rangeAdjacent(t,s){return this.url.searchParams.append(t,`adj.${s}`),this}overlaps(t,s){return typeof s=="string"?this.url.searchParams.append(t,`ov.${s}`):this.url.searchParams.append(t,`ov.{${s.join(",")}}`),this}textSearch(t,s,{config:i,type:n}={}){let l="";n==="plain"?l="pl":n==="phrase"?l="ph":n==="websearch"&&(l="w");const d=i===void 0?"":`(${i})`;return this.url.searchParams.append(t,`${l}fts${d}.${s}`),this}match(t){return Object.entries(t).filter(([s,i])=>i!==void 0).forEach(([s,i])=>{this.url.searchParams.append(s,`eq.${i}`)}),this}not(t,s,i){return this.url.searchParams.append(t,`not.${s}.${i}`),this}or(t,{foreignTable:s,referencedTable:i=s}={}){const n=i?`${i}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,s,i){return this.url.searchParams.append(t,`${s}.${i}`),this}},Qk=class{constructor(t,{headers:s={},schema:i,fetch:n,urlLengthLimit:l=8e3,retry:d}){this.url=t,this.headers=new Headers(s),this.schema=i,this.fetch=n,this.urlLengthLimit=l,this.retry=d}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,s){const{head:i=!1,count:n}=s??{},l=i?"HEAD":"GET";let d=!1;const u=(t??"*").split("").map(p=>
14/\s/.test(p)&&!d?"":(p==='"'&&(d=!d),p)).join(""),{url:m,headers:x}=this.cloneRequestState();return m.searchParams.set("select",u),n&&x.append("Prefer",`count=${n}`),new Ki({method:l,url:m,headers:x,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:s,defaultToNull:i=!0}={}){var n;const l="POST",{url:d,headers:u}=this.cloneRequestState();if(s&&u.append("Prefer",`count=${s}`),i||u.append("Prefer","missing=default"),Array.isArray(t)){const m=t.reduce((x,p)=>x.concat(Object.keys(p)),[]);if(m.length>0){const x=[...new Set(m)].map(p=>`"${p}"`);d.searchParams.set("columns",x.join(","))}}return new Ki({method:l,url:d,headers:u,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:s,ignoreDuplicates:i=!1,count:n,defaultToNull:l=!0}={}){var d;const u="POST",{url:m,headers:x}=this.cloneRequestState();if(x.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),s!==void 0&&m.searchParams.set("on_conflict",s),n&&x.append("Prefer",`count=${n}`),l||x.append("Prefer","missing=default"),Array.isArray(t)){const p=t.reduce((g,v)=>g.concat(Object.keys(v)),[]);if(p.length>0){const g=[...new Set(p)].map(v=>`"${v}"`);m.searchParams.set("columns",g.join(","))}}return new Ki({method:u,url:m,headers:x,schema:this.schema,body:t,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:s}={}){var i;const n="PATCH",{url:l,headers:d}=this.cloneRequestState();return s&&d.append("Prefer",`count=${s}`),new Ki({method:n,url:l,headers:d,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var s;const i="DELETE",{url:n,headers:l}=this.cloneRequestState();return t&&l.append("Prefer",`count=${t}`),new Ki({method:i,url:n,headers:l,schema:this.schema,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},Xk=class U2{constructor(s,{headers:i={},schema:n,fetch:l,timeout:d,urlLengthLimit:u=8e3,retry:m}={}){this.url=s,this.headers=new Headers(i),this.schemaName=n,this.urlLengthLimit=u;const x=l??globalThis.fetch;d!==void 0&&d>0?this.fetch=(p,g)=>{const v=new AbortController,j=setTimeout(()=>v.abort(),d),N=g?.signal;if(N){if(N.aborted)return clearTimeout(j),x(p,g);const k=()=>{clearTimeout(j),v.abort()};return N.addEventListener("abort",k,{once:!0}),x(p,Xi(Xi({},g),{},{signal:v.signal})).finally(()=>{clearTimeout(j),N.removeEventListener("abort",k)})}return x(p,Xi(Xi({},g),{},{signal:v.signal})).finally(()=>clearTimeout(j))}:this.fetch=x,this.retry=m}from(s){if(!s||typeof s!="string"||s.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Qk(new URL(`${this.url}/${s}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(s){return new U2(this.url,{headers:this.headers,schema:s,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(s,i={},{head:n=!1,get:l=!1,count:d}={}){var u;let m;const x=new URL(`${this.url}/rpc/${s}`);let p;const g=N=>N!==null&&typeof N=="object"&&(!Array.isArray(N)||N.some(g)),v=n&&Object.values(i).some(g);v?(m="POST",p=i):n||l?(m=n?"HEAD":"GET",Object.entries(i).filter(([N,k])=>k!==void 0).map(([N,k])=>[N,Array.isArray(k)?`{${k.join(",")}}`:`${k}`]).forEach(([N,k])=>{x.searchParams.append(N,k)})):(m="POST",p=i);const j=new Headers(this.headers);return v?j.set("Prefer",d?`count=${d},return=minimal`:"return=minimal"):d&&j.set("Prefer",`count=${d}`),new Ki({method:m,url:x,headers:j,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class Zk{constructor(){}static detectEnvironment(){var s;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const i=globalThis;if(typeof globalThis<"u"&&typeof i.WebSocket<"u")return{type:"native",wsConstructor:i.WebSocket};const n=typeof global<"u"?global:void 0;if(n&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};if(typeof globalThis<"u"&&typeof i.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&i.EdgeRuntime||typeof navigator<"u"&&(!((s=navigator.userAgent)===null||s===void 0)&&s.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const l=globalThis.process;if(l){const d=l.versions;if(d&&d.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const s=this.detectEnvironment();if(s.wsConstructor)return s.wsConstructor;let i=s.error||"WebSocket not supported in this environment.";throw s.workaround&&(i+=` 15 16Suggested solution: ${s.workaround}`),new Error(i)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const e3="2.112.0",t3=`realtime-js/${e3}`,a3="1.0.0",F2="2.0.0",s3=F2,r3=1e4,i3=100,dr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},$2={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Pm={connecting:"connecting",closing:"closing",closed:"closed"};class n3{constructor(s){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=s??[]}encode(s,i){if(s.event===this.BROADCAST_EVENT&&!(s.payload instanceof ArrayBuffer)&&typeof s.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(s));let n=[s.join_ref,s.ref,s.topic,s.event,s.payload];return i(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(s){var i;return this._isArrayBuffer((i=s.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(s):this._encodeJsonUserBroadcastPush(s)}_encodeBinaryUserBroadcastPush(s){var i,n;const l=(n=(i=s.payload)===null||i===void 0?void 0:i.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(s,this.BINARY_ENCODING,l)}_encodeJsonUserBroadcastPush(s){var i,n;const l=(n=(i=s.payload)===null||i===void 0?void 0:i.payload)!==null&&n!==void 0?n:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer;return this._encodeUserBroadcastPush(s,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(s,i,n){var l,d;const u=new TextEncoder,m=u.encode(s.topic),x=u.encode((l=s.ref)!==null&&l!==void 0?l:""),p=u.encode((d=s.join_ref)!==null&&d!==void 0?d:""),g=u.encode(s.payload.event),v=this.allowedMetadataKeys?this._pick(s.payload,this.allowedMetadataKeys):{},j=u.encode(Object.keys(v).length===0?"":JSON.stringify(v));if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(x.length>255)throw new Error(`ref length ${x.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`topic length ${m.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`userEvent length ${g.length} exceeds maximum of 255`);if(j.length>255)throw new Error(`metadata length ${j.length} exceeds maximum of 255`);const N=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+x.length+m.length+g.length+j.length,k=new ArrayBuffer(this.HEADER_LENGTH+N),S=new DataView(k),C=new Uint8Array(k);let T=0;S.setUint8(T++,this.KINDS.userBroadcastPush),S.setUint8(T++,p.length),S.setUint8(T++,x.length),S.setUint8(T++,m.length),S.setUint8(T++,g.length),S.setUint8(T++,j.length),S.setUint8(T++,i),C.set(p,T),T+=p.length,C.set(
16x,T),T+=x.length,C.set(m,T),T+=m.length,C.set(g,T),T+=g.length,C.set(j,T),T+=j.length;var w=new Uint8Array(k.byteLength+n.byteLength);return w.set(new Uint8Array(k),0),w.set(new Uint8Array(n),k.byteLength),w.buffer}decode(s,i){if(this._isArrayBuffer(s)){let n=this._binaryDecode(s);return i(n)}if(typeof s=="string"){const n=JSON.parse(s),[l,d,u,m,x]=n;return i({join_ref:l,ref:d,topic:u,event:m,payload:x})}return i({})}_binaryDecode(s){const i=new DataView(s),n=i.getUint8(0),l=new TextDecoder;if(n===this.KINDS.userBroadcast)return this._decodeUserBroadcast(s,i,l)}_decodeUserBroadcast(s,i,n){const l=i.getUint8(1),d=i.getUint8(2),u=i.getUint8(3),m=i.getUint8(4);let x=this.HEADER_LENGTH+4;const p=n.decode(s.slice(x,x+l));x=x+l;const g=n.decode(s.slice(x,x+d));x=x+d;const v=n.decode(s.slice(x,x+u));x=x+u;const j=s.slice(x,s.byteLength),N=m===this.JSON_ENCODING?JSON.parse(n.decode(j)):j,k={type:this.BROADCAST_EVENT,event:g,payload:N};return u>0&&(k.meta=JSON.parse(v)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:k}}_isArrayBuffer(s){var i;return s instanceof ArrayBuffer||((i=s?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(s,i){return!s||typeof s!="object"?{}:Object.fromEntries(Object.entries(s).filter(([n])=>i.includes(n)))}}var Ye;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Ye||(Ye={}));const ob=(t,s,i={})=>{var n;const l=(n=i.skipTypes)!==null&&n!==void 0?n:[];return s?Object.keys(s).reduce((d,u)=>(d[u]=o3(u,t,s,l),d),{}):{}},o3=(t,s,i,n)=>{const l=s.find(m=>m.name===t),d=l?.type,u=i[t];return d&&!n.includes(d)?I2(d,u):Bm(u)},I2=(t,s)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return u3(s,i)}switch(t){case Ye.bool:return l3(s);case Ye.float4:case Ye.float8:case Ye.int2:case Ye.int4:case Ye.int8:case Ye.numeric:case Ye.oid:return c3(s);case Ye.json:case Ye.jsonb:return d3(s);case Ye.timestamp:return h3(s);case Ye.abstime:case Ye.date:case Ye.daterange:case Ye.int4range:case Ye.int8range:case Ye.money:case Ye.reltime:case Ye.text:case Ye.time:case Ye.timestamptz:case Ye.timetz:case Ye.tsrange:case Ye.tstzrange:return Bm(s);default:return Bm(s)}},Bm=t=>t,l3=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},c3=t=>{if(typeof t=="string"){const s=parseFloat(t);if(!Number.isNaN(s))return s}return t},d3=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},u3=(t,s)=>{if(typeof t!="string")return t;const i=t.length-1,n=t[i];if(t[0]==="{"&&n==="}"){let d;const u=t.slice(1,i);try{d=JSON.parse("["+u+"]")}catch{d=u?u.split(","):[]}return d.map(m=>I2(s,m))}return t},h3=t=>typeof t=="string"?t.replace(" ","T"):t,H2=t=>{const s=new URL(t);return s.protocol=s.protocol.replace(/^ws/i,"http"),s.pathname=s.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),s.pathname===""||s.pathname==="/"?s.pathname="/api/broadcast":s.pathname=s.pathname+"/api/broadcast",s.href};var tn=t=>typeof t=="function"?t:function(){return t},m3=typeof self<"u"?self:null,Ji=typeof window<"u"?window:null,Ya=m3||Ji||globalThis,x3="2.0.0",f3=1e4,p3=1e3,g3=100,Qa={connecting:0,open:1,closing:2,closed:3},Kt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Cs={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},qm={longpoll:"longpoll",websocket:"websocket"},b3={complete:4},Um="base64url.bearer.phx.",fc=class{constructor(t,s,i,n){this.channel=t,this.event=s,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,j
vendor: 21,396 bytes, lines 16-17
16oin_ref:this.channel.joinRef()}))}receive(t,s){return this.hasReceived(t)&&s(this.receivedResp.response),this.recHooks.push({status:t,callback:s}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:s,_ref:i}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(s))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,s){this.channel.trigger(this.refEvent,{status:t,response:s})}},V2=class{constructor(t,s){this.callback=t,this.timerCalc=s,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},v3=class{constructor(t,s,i){this.state=Kt.closed,this.topic=t,this.params=tn(s||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new fc(this,Cs.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new V2(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Kt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=Kt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Kt.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=Kt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new fc(this,Cs.leave,tn({}),this.timeout).send(),this.state=Kt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Cs.reply,(n,l)=>{this.trigger(this.replyEventName(l),n)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Kt.closed,this.bindings=[]}onClose(t){this.on(Cs.close,t)}onError(t){return this.on(Cs.error,s=>t(s))}on(t,s){let i=this.bindingRef++;return this.bindings.push({event:t,ref:i,callback:s}),i}off(t,s){this.bindings=this.bindings.filter(i=>!(i.event===t&&(typeof s>"u"||s===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,s,i=this.timeout){if(s=s||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new fc(this,t,function(){return s},i);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Kt.leaving;let s=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Cs.close,"leave")},i=new fc(this,Cs.leave,tn({}),t);return i.receive("ok",()=>s()).receive("timeout",()=>s()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(t,s,i){return s}filterBindings(t,s,i){return!0}isMember(t,s,i,n){return this.topic!==t?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:s,payload:i,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Kt.joining,this.joinPush.resend(t))}trigger(t,s,i,n){let l=this.onMessage(t,s,i,n);if(s&&!l)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let d=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,s,i));for(let u=0;u<d.length;u++)d[u].callback(l,i,n||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Kt.closed}isErrored(){return this.state===Kt.errored}isJoined(){return this.state===Kt.joined}isJoining(){return this.state===Kt.joining}isLeaving(){return this.state===Kt.leaving}},Kc=class{static request(t,s,i,n,l,d,u){if(Ya.XDomainRequest){let m=new Ya.XDomainRequest;return this.xdomainRequest(m,t,s,n,l,d,u)}else if(Ya.XMLHttpRequest){let m=new Ya.XMLHttpRequest;return this.xhrRequest(m,t,s,i,n,l,d,u)}else{if(Ya.fetch&&Ya.AbortController)return this.fetchRequest(t,s,i,n,l,d,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,s,i,n,l,d,u){let m={method:t,headers:i,body:n},x=null;return l&&(x=new AbortController,setTimeout(()=>x.abort(),l),m.signal=x.signal),Ya.fetch(s,m).then(p=>p.text()).then(p=>this.parseJSON(p)).then(p=>u&&u(p)).catch(p=>{p.name==="AbortError"&&d?d():u&&u(null)}),x}static xdomainRequest(t,s,i,n,l,d,u){return t.timeout=l,t.open(s,i),t.onload=()=>{let m=this.parseJSON(t.responseText);u&&u(m)},d&&(t.ontimeout=d),t.onprogress=()=>{},t.send(n),t}static xhrRequest(t,s,i,n,l,d,u,m){t.open(s,i,!0),t.timeout=d;for(let[x,p]of Object.entries(n))t.setRequestHeader(x,p);return t.onerror=()=>m&&m(null),t.onreadystatechange=()=>{if(t.readyState===b3.complete&&m){let x=this.parseJSON(t.responseText);m(x)}},u&&(t.ontimeout=u),t.send(l),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,s){let i=[];for(var n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let l=s?`${s}[${n}]`:n,d=t[n];typeof d=="object"?i.push(this.serialize(d,l)):i.push(encodeURIComponent(l)+"="+encodeURIComponent(d))}return i.join("&")}static appendParams(t,s){if(Object.keys(s).length===0)return t;let i=t.match(/\?/)?"&":"?";return`${t}${i}${this.serialize(s)}`}},y3=t=>{let s="",i=new Uint8Array(t),n=i.byteLength;for(let l=0;l<n;l++)s+=String.fromCharCode(i[l]);return btoa(s)},Fi=class{constructor(t,s){s&&s.length===2&&s[1].startsWith(Um)&&(this.authToken=atob(s[1].slice(Um.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=Qa.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+qm.websocket),"$1/"+qm.longpoll)}endpointURL(){return Kc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,s,i){this.close(t,s,i),this.readyState=Qa.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Qa.open||this.readyState===Qa.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),s=>{if(s){var{status:i,token:n,messages:l}=s;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else i=0;switch(i){case 200:l.forEach(d=>{setTimeout(()=>this.onmessage({data:d}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Qa.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(t){typeof t!="string"&&(t=y3(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t,s=0){this.awaitingBatchAck=!0;const i=s+g3,n=t.slice(s,i);this.ajax("POST",{"Content-Type":"application/x-ndjson"},n.join(` 17`),()=>this.onerror("timeout"),l=>{!l||l.status!==200?(this.awaitingBatchAck=!1,this.onerror(l&&l.status),this.closeAndRetry(1011,"internal server error",!1)):i<t.length?this.batchSend(t,i):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(t,s,i){for(let l of this.reqs)l.abort();this.readyState=Qa.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:s,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(t,s,i,n,l){let d,u=()=>{this.reqs.delete(d),n()};d=Kc.request(t,this.endpointURL(),s,i,this.timeout,u,m=>{this.reqs.delete(d),this.isActive()&&l(m)}),this.reqs.add(d)}},j3=class ho{constructor(s,i={}){let n=i.events||{state:"presence_state",diff:"presence_diff"};this.state=Object.create(null),this.pendingDiffs=[],this.channel=s,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,l=>{let{onJoin:d,onLeave:u,onSync:m}=this.caller;this.joinRef=this.channel.joinRef(),this.state=ho.syncState(this.state,l,d,u),this.pendingDiffs.forEach(x=>{this.state=ho.syncDiff(this.state,x,d,u)}),this.pendingDiffs=[],m()}),this.channel.on(n.diff,l=>{let{onJoin:d,onLeave:u,onSync:m}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=ho.syncDiff(this.state,l,d,u),m())})}onJoin(s){this.caller.onJoin=s}onLeave(s){this.caller.onLeave=s}onSync(s){this.caller.onSync=s}list(s){return ho.list(this.state,s)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(s,i,n,l){let d=this.toNullProtoObj(this.clone(s));i=this.toNullProtoObj(i);let u=Object.create(null),m=Object.create(null);return this.map(d,(x,p)=>{i[x]||(m[x]=p)}),this.map(i,(x,p)=>{let g=d[x];if(g){let v=p.metas.map(S=>S.phx_ref),j=g.metas.map(S=>S.phx_ref),N=p.metas.filter(S=>j.indexOf(S.phx_ref)<0),k=g.metas.filter(S=>v.indexOf(S.phx_ref)<0);N.length>0&&(u[x]=p,u[x].metas=N),k.length>0&&(m[x]=this.clone(g),m[x].metas=k)}else u[x]=p}),this.syncDiff(d,{joins:u,leaves:m},n,l)}static syncDiff(s,i,n,l){s=this.toNullProtoObj(s);let{joins:d,leaves:u}=this.clone(i);return n||(n=function(){}),l||(l=function(){}),this.map(d,(m,x)=>{let p=s[m];if(s[m]=this.clone(x),p){let g=s[m].metas.map(j=>j.phx_ref),v=p.metas.filter(j=>g.indexOf(j.phx_ref)<0);s[m].metas.unshift(...v)}n(m,p,x)}),this.map(u,(m,x)=>{let p=s[m];if(!p)return;let g=x.metas.map(v=>v.phx_ref);p.metas=p.metas.filter(v=>g.indexOf(v.phx_ref)<0),l(m,p,x),p.metas.length===0&&delete s[m]}),s}static list(s,i){return i||(i=function(n,l){return l}),this.map(s,(n,l)=>i(n,l))}static map(s,i){return Object.getOwnPropertyNames(s).map(n=>i(n,s[n]))}static toNullProtoObj(s){if(Object.getPrototypeOf(s)===null)return s;let i=Object.create(null);return Object.getOwnPropertyNames(s).forEach(n=>{i[n]=s[n]}),i}static clone(s){return JSON.parse(JSON.stringify(s))}},pc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,s){if(t.payload.constructor===ArrayBuffer)return s(this.binaryEncode(t));{let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return s(JSON.stringify(i))}},decode(t,s){if(t.constructor===ArrayBuffer)return s(this.binaryDecode(t));{let[i,n,l,d,u]=JSON.parse(t);return s({join_ref:i,ref:n,topic:l,event:d,payload:u})}},binaryEncode(t){let{join_ref:s,ref:i,event:n,topic:l,payload:d}=t,u=new TextEncoder,m=u.encode(s),x=u.encode(i),p=u.encode(l),g=u.encode(n);this.assertFieldSize(m.byteLength,"join_ref"),this.assertFieldSize(x.byteLength,"ref"),this.assertFieldSize(p.byteLength,"topic"),this.assertFieldSize(g.byteLength,"event");let v=this.META_LENGTH+m.byteLength+x.byteLength+p.byteLength+g.byteLength,j=new ArrayBuffer(this.HEADER_LENGTH+v),N=new Uint8Array(j),k=new DataView(j),S=0;k.setUint8(S++,this.KINDS.push),k.setUint8(S++,m.byteLength),k.setUint8(S++,x.byteLength),k.setUint8(S++,p.byteLength),k.setUint8(S++,g.byteLength),N.set(m,S),S+=m.byteLength,N.set(x,S),S+=x.byteLength,N.set(p,S),S+=p.byteLength,N.set(g,S),S+=g.byteLength;var C=new Uint8Array(j.byteLength+d.byteLength);return C.set(N,0),C.set(new Uint8Array(d),j.byteLength),C.buffer},assertFieldSize(t,s){if(t>255)throw new Error(`unable to convert ${s} to binary: must be less than or equal to 255 bytes, but is ${t} bytes`)},binaryDecode(t){let s=new DataView(t),i=s.getUint8(0),n=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(t,s,n);case this.KINDS.reply:return this.decodeReply(t,s,n);case this.KINDS.broadcast:return this.decodeBroadcast(t,s,n)}},decodePush(t,s,i){let n=s.getUint8(1),l=s.getUint8(2),d=s.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,m=i.decode(t.slice(u,u+n));u=u+n;let x=i.decode(t.slice(u,u+l));u=u+l;let p=i.decode(t.slice(u,u+d));u=u+d;let g=t.slice(u,t.byteLength);return{join_ref:m,ref:null,topic:x,event:p,payload:g}},decodeReply(t,s,i){let n=s.getUint8(1),l=s.getUint8(2),d=s.getUint8(3),u=s.getUint8(4),m=this.HEADER_LENGTH+this.META_LENGTH,x=i.decode(t.slice(m,m+n));m=m+n;let p=i.decode(t.slice(m,m+l));m=m+l;let g=i.decode(t.slice(m,m+d));m=m+d;let v=i.decode(t.slice(m,m+u));m=m+u;let j=t.slice(m,t.byteLength),N={status:v,response:j};return{join_ref:x,ref:p,topic:g,event:Cs.reply,payload:N}},decodeBroadcast(t,s,i){let n=s.getUint8(1),l=s.getUint8(2),d=this.HEADER_LENGTH+2,u=i.decode(t.slice(d,d+n));d=d+n;let m=i.decode(t.slice(d,d+l));d=d+l;let x=t.slice(d,t.byteLength);return{join_ref:null,ref:null,topic:u,event:m,payload:x}}},N3=class{constructor(t,s={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=s.timeout||f3,this.transport=s.transport||Ya.WebSocket||Fi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=s.longPollFallbackMs,this.fallbackTimer=null;let i=null;try{i=Ya&&Ya.sessionStorage}catch{}this.sessionStore=s.sessionStorage||i,this.establishedConnections=0,this.defaultEncoder=pc.encode.bind(pc),this.defaultDecoder=pc.decode.bind(pc),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=s.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Fi?(this.encode=s.encode||this.defaultEncoder,this.decode=s.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Ji&&Ji.addEventListener&&(Ji.addEventListener("pagehide",l=>{this.conn&&(this.disconnect(),n=this.connectClock)}),Ji.addEventListener("pageshow",l=>{n===this.connectClock&&(n=null,this.connect())}),Ji.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=s.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=s.autoSendHeartbeat??!0,this.heartbeatCallback=s.heartbeatCallback??(()=>{}),this.rejoinAfterMs=l=>s.rejoinAfterMs?s.rejoinAfterMs(l):[1e3,2e3,5e3][l-1]||1e4,this.reconnectAfterMs=l=>s.reconnectAfterMs?s.reconnectAfterMs(l):[10,50,100,150,200,250,500,1e3,2e3][l-1]||5e3,this.logger=s.logger||null,!this.logger&&s.debug&&(this.logger=(l,d,u)=>{console.log(`${l}: ${d}`,u)}),this.longpollerTimeout=s.longpollerTimeout||2e4,this.params=tn(s.params||{}),this.endPoint=`${t}/${qm.websocket}`,this.vsn=s.vsn||x3,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new V2(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{s.beforeReconnect&&await s.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=s.authToken&&tn(s.authToken)}getLongPollTransport(){return Fi}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Kc.appendParams(Kc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,s,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},s,i)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=tn(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Fi?this.connectWithFallback(Fi,this.longPollFallbackMs):this.transportConnect())}log(t,s,i){this.logger&&this.logger(t,s,i)}hasLogger(){return this.logger!==null}onOpen(t){let s=this.makeRef();return this.stateChangeCallbacks.open.push([s,t]),s}onClose(t){let s=this.makeRef();return this.stateChangeCallbacks.close.push([s,t]),s}onError(t){let s=this.makeRef();return this.stateChangeCallbacks.error.push([s,t]),s}onMessage(t){let s=this.makeRef();return this.stateChangeCallbacks.message.push([s,t]),s}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let s=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:s});let n=this.onMessage(l=>{l.ref===s&&(this.off([n]),t(Date.now()-i))});return!0}transportName(t){return t===Fi?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${Um}${btoa(this.authToken()).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=s=>this.onConnError(s),this.conn.onmessage=s=>this.onConnMessage(s),this.conn.onclose=s=>this.onConnClose(s)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,s){this.sessionStore&&this.sessionStore.setItem(t,s)}connectWithFallback(t,s=2500){clearTimeout(this.fallbackTimer);let i=!1,n=!0,l,d,u=this.transportName(t),m=x=>{this.log("transport",`falling back to ${u}...`,x),this.off([l,d]),n=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return m("memorized");this.fallbackTimer=setTimeout(m,s),d=this.onError(x=>{this.log("transport","error",x),n&&!i&&(clearTimeout(this.fallbackTimer),m(x))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!n){let x=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${x}`,"true"),this.log("transport",`established ${x} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(m,s),this.ping(x=>{this.log("transport","connected to primary after",x),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),p3,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,s,i){if(!this.conn)return t&&t();const n=this.conn;this.waitForBufferDone(n,()=>{s?n.close(s,i||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){}
vendor: 4,995 bytes, line 17
17,this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,s,i=1){if(i===5||!t.bufferedAmount){s();return}setTimeout(()=>{this.waitForBufferDone(t,s,i+1)},150*i)}waitForSocketClosed(t,s,i=1){if(i===5||t.readyState===Qa.closed){s();return}setTimeout(()=>{this.waitForSocketClosed(t,s,i+1)},150*i)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let s=this.transport,i=this.establishedConnections;this.triggerStateCallbacks("error",t,s,i),(s===this.transport||i>0)&&this.triggerChanError(t)}triggerChanError(t){this.channels.forEach(s=>{s.isErrored()||s.isLeaving()||s.isClosed()||s.trigger(Cs.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Qa.connecting:return"connecting";case Qa.open:return"open";case Qa.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(s=>s!==t)}off(t){for(let s in this.stateChangeCallbacks)this.stateChangeCallbacks[s]=this.stateChangeCallbacks[s].filter(([i])=>t.indexOf(i)===-1)}channel(t,s={}){let i=new v3(t,s,this);return this.channels.push(i),i}push(t){if(this.hasLogger()){let{topic:s,event:i,payload:n,ref:l,join_ref:d}=t;this.log("push",`${s} ${i} (${d}, ${l})`,n)}this.isConnected()?this.encode(t,s=>this.conn.send(s)):this.sendBuffer.push(()=>this.encode(t,s=>this.conn.send(s)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,s=>{let{topic:i,event:n,payload:l,ref:d,join_ref:u}=s;if(d&&d===this.pendingHeartbeatRef){const m=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(l.status==="ok"?"ok":"error",m)}catch(x){this.log("error","error in heartbeat callback",x)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${l.status||""} ${i} ${n} ${d&&"("+d+")"||""}`.trim(),l);for(let m=0;m<this.channels.length;m++){const x=this.channels[m];x.isMember(i,n,l,u)&&x.trigger(n,l,d,u)}this.triggerStateCallbacks("message",s)})}triggerStateCallbacks(t,...s){try{this.stateChangeCallbacks[t].forEach(([i,n])=>{try{n(...s)}catch(l){this.log("error",`error in ${t} callback`,l)}})}catch(i){this.log("error",`error triggering ${t} callbacks`,i)}}leaveOpenTopic(t){let s=this.channels.find(i=>i.topic===t&&(i.isJoined()||i.isJoining()));s&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),s.leave())}};class go{constructor(s,i){const n=_3(i);this.presence=new j3(s.getChannel(),n),this.presence.onJoin((l,d,u)=>{const m=go.onJoinPayload(l,d,u);s.getChannel().trigger("presence",m)}),this.presence.onLeave((l,d,u)=>{const m=go.onLeavePayload(l,d,u);s.getChannel().trigger("presence",m)}),this.presence.onSync(()=>{s.getChannel().trigger("presence",{event:"sync"})})}get state(){return go.transformState(this.presence.state)}static transformState(s){return s=w3(s),Object.getOwnPropertyNames(s).reduce((i,n)=>{const l=s[n];return i[n]=Mc(l),i},{})}static onJoinPayload(s,i,n){const l=lb(i),d=Mc(n);return{event:"join",key:s,currentPresences:l,newPresences:d}}static onLeavePayload(s,i,n){const l=lb(i),d=Mc(n);return{event:"leave",key:s,currentPresences:l,leftPresences:d}}}function Mc(t){return t.metas.map(s=>{const i=Object.getOwnPropertyDescriptors(s),n=Object.defineProperties({},i);return n.presence_ref=n.phx_ref,delete n.phx_ref,delete n.phx_ref_prev,n})}function w3(t){return JSON.parse(JSON.stringify(t))}function _3(t){return t?.events&&{events:t.events}}function lb(t){return t?.metas?Mc(t):[]}var cb;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(cb||(cb={}));class S3{get state(){return this.presenceAdapter.state}constructor(s,i){this.channel=s,this.presenceAdapter=new go(this.channel.channelAdapter,i)}}function k3(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const s=t;
17if(typeof s.code=="number"){const i=typeof s.reason=="string"&&s.reason?` (${s.reason})`:"";return new Error(`socket closed: ${s.code}${i}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class C3{constructor(s,i,n){const l=E3(n);this.channel=s.getSocket().channel(i,l),this.socket=s}get state(){return this.channel.state}set state(s){this.channel.state=s}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(s,i){return this.channel.on(s,i)}off(s,i){this.channel.off(s,i)}subscribe(s){return this.channel.join(s)}unsubscribe(s){return this.channel.leave(s)}teardown(){this.channel.teardown()}onClose(s){this.channel.onClose(s)}onError(s){return this.channel.onError(s)}push(s,i,n){let l;try{l=this.channel.push(s,i,n)}catch{throw new Error(`tried to push '${s}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>i3){const d=this.channel.pushBuffer.shift();d.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${d.event}`,d.payload())}return l}updateJoinPayload(s){const i=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},i),s)}canPush(){return this.socket.isConnected()&&this.state===dr.joined}isJoined(){return this.state===dr.joined}isJoining(){return this.state===dr.joining}isClosed(){return this.state===dr.closed}isLeaving(){return this.state===dr.leaving}updateFilterBindings(s){this.channel.filterBindings=s}updatePayloadTransform(s){this.channel.onMessage=s}getChannel(){return this.channel}}function E3(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}const A3=/[,()"\\]/,T3=t=>A3.test(t)||t!==t.trim(),L3=t=>`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,db=t=>{const s=t===null?"null":String(t);return T3(s)?L3(s):s},O3=t=>t===null?"null":String(t),R3=(t,s)=>{if(t==="in"){const i=Array.isArray(s)?s:[s];if(i.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(i)).map(l=>db(l)).join(",")})`}return t==="is"?`is.${O3(s)}`:`${t}.${db(s)}`};class z3{constructor(){this.filters=[]}add(s,i,n,l=!1){const d=l?"not.":"";return this.filters.push(`${s}=${d}${R3(i,n)}`),this}eq(s,i){return this.add(s,"eq",i)}neq(s,i){return this.add(s,"neq",i)}gt(s,i){return this.add(s,"gt",i)}gte(s,i){return this.add(s,"gte",i)}lt(s,i){return this.add(s,"lt",i)}lte(s,i){return this.add(s,"lte",i)}in(s,i){return this.add(s,"in",i)}like(s,i){return this.add(s,"like",i)}ilike(s,i){return this.add(s,"ilike",i)}match(s,i){return this.add(s,"match",i)}imatch(s,i){return this.add(s,"imatch",i)}is(s,i){return this.add(s,"is",i)}isDistinct(s,i){return this.add(s,"isdistinct",i)}not(s,i,n){return this.add(s,i,n,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var ub;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(ub||(ub={}));var Zi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Zi||(Zi={}));var Es;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Es||(Es={}));class bo{get state(){return this.channelAdapter.state}set state(s){this.channelAdapter.state=s}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(s,i={config:{}},n){var l,d;if(this.topic=s,this.params=i,this.socket=n,this.bindings={},this.subTopic=s.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.channelAdapter=new C3(this.socket.socketAdapter,s,this.params),this.presence=new S3(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=H2(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((d=(l=this.params.config)===null||l===void 0?void 0:l.broadcast)===null||d===void 0)&&d.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(s,i=this.timeout){var n,l,d;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:m,private:x}}=this.params,p=(l=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(N=>N.filter))!==null&&l!==void 0?l:[],g=!!this.bindings[Zi.PRESENCE]&&this.bindings[Zi.PRESENCE].length>0||((d=this.params.config.presence)===null||d===void 0?void 0:d.enabled)===!0,v={},j={broadcast:u,presence:Object.assign(Object.assign({},m),{enabled:g}),postgres_changes:p,private:x};this.socket.accessTokenValue&&(v.access_token=this.socket.accessTokenValue),this._onError(N=>{s?.(Es.CHANNEL_ERROR,k3(N))}),this._onClose(()=>s?.(Es.CLOSED)),this.updateJoinPayload(Object.assign({config:j},v)),this._updateFilterMessage(),this.channelAdapter.subscribe(i).receive("ok",async({postgres_changes:N})=>{if(this.socket._isManualToken()||this.socket.setAuth(),N===void 0){s?.(Es.SUBSCRIBED);return}this._updatePostgresBindings(N,s)}).receive("error",N=>{this.state=dr.errored;const k=Object.values(N).join(", ")||"error";s?.(Es.CHANNEL_ERROR,new Error(k,{cause:N}))}).receive("timeout",()=>{s?.(Es.TIMED_OUT)})}return this}_updatePostgresBindings(s,i){var n;const l=this.bindings.postgres_changes,d=(n=l?.length)!==null&&n!==void 0?n:0,u=[];for(let m=0;m<d;m++){const x=l[m],{filter:{event:p,schema:g,table:v,filter:j}}=x,N=s&&s[m];if(N&&N.event===p&&bo.isFilterValueEqual(N.schema,g)&&bo.isFilterValueEqual(N.table,v)&&bo.isFilterValueEqual(N.filter,j))u.pu
17sh(Object.assign(Object.assign({},x),{id:N.id}));else{this.unsubscribe(),this.state=dr.errored,i?.(Es.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=dr.errored&&i&&i(Es.SUBSCRIBED)}presenceState(){return this.presence.state}async track(s,i={}){return await this.send({type:"presence",event:"track",payload:s},i)}async untrack(s={}){return await this.send({type:"presence",event:"untrack"},s)}on(s,i,n){const l=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),d=s===Zi.PRESENCE||s===Zi.POSTGRES_CHANGES;if(l&&d)throw this.socket.log("channel",`cannot add \`${s}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${s}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(s,i,n)}async httpSend(s,i,n={}){var l;if(i==null)return Promise.reject(new Error("Payload is required for httpSend()"));const d=i instanceof ArrayBuffer||ArrayBuffer.isView(i),u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":d?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const m=new URL(this.broadcastEndpointURL);m.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(s)}`,this.private&&m.searchParams.set("private","true");const x={method:"POST",headers:u,body:d?i:JSON.stringify(i)},p=await this._fetchWithTimeout(m.toString(),x,(l=n.timeout)!==null&&l!==void 0?l:this.timeout);if(p.status===202)return{success:!0};if(p.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let g=p.statusText;try{const v=await p.json();g=v.error||v.message||g}catch{}return Promise.reject(new Error(g))}async send(s,i={}){var n,l;if(!this.channelAdapter.canPush()&&s.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
17in the future. Please use httpSend() explicitly for REST delivery.");const{event:d,payload:u}=s,m={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(m.Authorization=`Bearer ${this.socket.accessTokenValue}`);const x={method:"POST",headers:m,body:JSON.stringify({messages:[{topic:this.subTopic,event:d,payload:u,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,x,(n=i.timeout)!==null&&n!==void 0?n:this.timeout);return await((l=p.body)===null||l===void 0?void 0:l.cancel()),p.ok?"ok":"error"}catch(p){return p instanceof Error&&p.name==="AbortError"?"timed out":"error"}}else return new Promise(d=>{var u,m,x;const p=this.channelAdapter.push(s.type,s,i.timeout||this.timeout);s.type==="broadcast"&&!(!((x=(m=(u=this.params)===null||u===void 0?void 0:u.config)===null||m===void 0?void 0:m.broadcast)===null||x===void 0)&&x.ack)&&d("ok"),p.receive("ok",()=>d("ok")),p.receive("error",()=>d("error")),p.receive("timeout",()=>d("timed out"))})}updateJoinPayload(s){this.channelAdapter.updateJoinPayload(s)}async unsubscribe(s=this.timeout){return new Promise(i=>{this.channelAdapter.unsubscribe(s).receive("ok",()=>i("ok")).receive("timeout",()=>i("timed out")).receive("error",()=>i("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(s,i,n){const l=new AbortController,d=setTimeout(()=>l.abort(),n),u=await this.socket.fetch(s,Object.assign(Object.assign({},i),{signal:l.signal}));return clearTimeout(d),u}_on(s,i,n){const l=s.toLocaleLowerCase(),d=i?.filter;(d instanceof z3||typeof d=="object"&&d!==null&&typeof d.build=="function")&&(i=Object.assign(Object.assign({},i),{filter:d.build()}));const u=this.channelAdapter.on(s,n),m={type:l,filter:i,callback:n,ref:u};return this.bindings[l]?this.bindings[l].push(m):this.bindings[l]=[m],this._updateFilterMessage(),this}_onClose(s){this.channelAdapter.onClose(s)}_onError(s){this.channelAdapter.onError(s)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((s,i,n)=>{var l,d,u,m,x,p,g;const v=s.event.toLocaleLowerCase();if(this._notThisChannelEvent(v,n))return!1;const j=(l=this.bindings[v])===null||l===void 0?void 0:l.find(N=>N.ref===s.ref);if(!j)return!0;if(["broadcast","presence","postgres_changes"].includes(v))if("id"in j){const N=j.id,k=(d=j.filter)===null||d===void 0?void 0:d.event;return N&&((u=i.ids)===null||u===void 0?void 0:u.includes(N))&&(k==="*"||k?.toLocaleLowerCase()===((m=i.data)===null||m===void 0?void 0:m.type.toLocaleLowerCase()))}else{const N=(p=(x=j?.filter)===null||x===void 0?void 0:x.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return N==="*"||N===((g=i?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return j.type.toLocaleLowerCase()===v})}_notThisChannelEvent(s,i){const{close:n,error:l,leave:d,join:u}=$2;return i&&[n,l,d,u].includes(s)&&i!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((s,i,n)=>{if(typeof i=="object"&&"ids"in i){const l=i.data,{schema:d,table:u,commit_timestamp:m,type:x,errors:p}=l;return Object.assign(Object.assign({},{schema:d,table:u,commit_timestamp:m,eventType:x,new:{},old:{},errors:p}),this._getPayloadRecords(l))}return i})}copyBindings(s){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const i in s.bindings)for(const n of s.bindings[i])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(s,i){return(s??void 0)===(i??void 0)}_getPayloadRecords(s){const i={new:{},old:{}};return(s.type==="INSERT"||s.type==="UPDATE")&&(i.new=ob(s.columns,s.record)),(s.type==="UPDATE"||s.type==="DELETE")&&(i.old=ob(s.columns,s.old_record)),i}}class D3{constructor(s,i){this.socket=new N3(s,i)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(s){this.socket.heartbeatCallback=s}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(s,i,n,l=1e4){return new Promise(d=>{setTimeout(()=>d("timeout"),l),this.socket.disconnect(()=>{s(),d("ok")},i,n)})}push(s){this.socket.push(s)}log(s,i,n){this.socket.log(s,i,n)}makeRef(){return this.socket.makeRef()}onOpen(s){this.socket.onOpen(s)}onClose(s){this.socket.onClose(s)}onError(s){this.socket.onError(s)}onMessage(s){this.socket.onMessage(s)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Pm.connecting}isDisconnecting(){return this.socket.connectionState()==Pm.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const hb={HEARTBEAT_INTERVAL:25e3},M3=[1e3,2e3,5e3,1e4],P3=1e4;function B3(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(s){return t.has(s)?t.get(s):null},key(s){var i;return(i=Array.from(t.keys())[s])!==null&&i!==void 0?i:null},removeItem(s){t.delete(s)},setItem(s,i){t.set(s,String(i))}}}function q3(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return B3()}const U3=` 18 addEventListener("message", (e) => { 19 if (e.data.event === "start") { 20 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 21 } 22 });`;class F3{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(s,i){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
22,this.ref=0,this.serializer=new n3,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=d=>d?(...u)=>d(...u):(...u)=>fetch(...u),!(!((n=i?.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey;const l=this._initializeOptions(i);this.socketAdapter=new D3(s,l),this.httpEndpoint=H2(s),this.fetch=this._resolveFetch(i?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(s){const i=s.message;throw new Error(`WebSocket not available: ${i}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(s,i){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},s,i)}getChannels(){return this.channels}async removeChannel(s){const i=await s.unsubscribe();return i==="ok"&&s.teardown(),i}async removeAllChannels(){const s=this.channels.map(async n=>{const l=await n.unsubscribe();return n.teardown(),l}),i=await Promise.all(s);return await this.disconnect(),i}log(s,i,n){this.socketAdapter.log(s,i,n)}connectionState(){return this.socketAdapter.connectionState()||Pm.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(s,i={config:{}}){const n=`realtime:${s}`,l=this.getChannels().find(d=>d.topic===n);if(l)return l;{const d=new bo(`realtime:${s}`,i,this);return this._cancelPendingDisconnect(),this.channels.push(d),d}}push(s){this.socketAdapter.push(s)}async setAuth(s=null){this._authPromise=this._performAuth(s);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(s){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(s)}_makeRef(){return this.socketAdapter.makeRef()}_remove(s){this.channels=this.channels.filter(i=>i.topic!==s.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
22this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(s=null){let i,n=!1;if(s)i=s,n=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(l){this.log("error","Error fetching access token from callback",l),i=this.accessTokenValue}else i=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(l=>{const d={access_token:i,version:t3};i&&l.updateJoinPayload(d),l.joinedOnce&&l.channelAdapter.isJoined()&&l.channelAdapter.push($2.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(s="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${s}`,i)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(i=>{this.log("error","error waiting for auth on connect",i)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(s=>{s.ref&&s.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(s){return(i,n)=>{i!=="disconnected"&&(i=="sent"&&this._setAuthSafely(),s&&s(i,n))}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const s=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(s),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(s){let i;if(s)i=s;else{const n=new Blob([U3],{type:"application/javascript"});i=URL.createObjectURL(n)}return i}_initializeOptions(s){var i,n,l,d,u,m,x,p,g,v,j,N;this.worker=(i=s?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(n=s?.accessToken)!==null&&n!==void 0?n:null;const k={};k.timeout=(l=s?.timeout)!==null&&l!==void 0?l:r3,k.heartbeatIntervalMs=(d=s?.heartbeatIntervalMs)!==null&&d!==void 0?d:hb.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=s?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((m=s?.heartbeatIntervalMs)!==null&&m!==void 0?m:hb.HEARTBEAT_INTERVAL),k.transport=(x=s?.transport)!==null&&x!==void 0?x:Zk.getWebSocketConstructor(),k.params=s?.params,k.logger=s?.logger,k.heartbeatCallback=this._wrapHeartbeatCallback(s?.heartbeatCallback),k.sessionStorage=(p=s?.sessionStorage)!==null&&p!==void 0?p:q3(),k.reconnectAfterMs=(g=s?.reconnectAfterMs)!==null&&g!==void 0?g:(w=>M3[w-1]||P3);let S,C;const T=(v=s?.vsn)!==null&&v!==void 0?v:s3;switch(T){case a3:S=(w,_)=>_(JSON.stringify(w)),C=(w,_)=>_(JSON.parse(w));break;case F2:S=this.serializer.encode.bind(this.serializer),C=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${k.vsn}`)}if(k.vsn=T,k.encode=(j=s?.encode)!==null&&j!==void 0?j:S,k.decode=(N=s?.decode)!==null&&N!==void 0?N:C,k.beforeReconnect=this._reconnectAuth.bind(this),(s?.logLevel||s?.log_level)&&(this.logLevel=s.logLevel||s.log_level,k.params=Object.assign(Object.assign({},k.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=s?.workerUrl,k.autoSendHeartbeat=!this.worker}return k}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
22var Eo=class extends Error{constructor(t,s){super(t),this.name="IcebergError",this.status=s.status,this.icebergType=s.icebergType,this.icebergCode=s.icebergCode,this.details=s.details,this.isCommitStateUnknown=s.icebergType==="CommitStateUnknownException"||[500,502,504].includes(s.status)&&s.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function $3(t,s,i){const n=new URL(s,t);if(i)for(const[l,d]of Object.entries(i))d!==void 0&&n.searchParams.set(l,d);return n.toString()}async function I3(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function H3(t){const s=t.fetchImpl??globalThis.fetch;return{async request({method:i,path:n,query:l,body:d,headers:u}){const m=$3(t.baseUrl,n,l),x=await I3(t.auth),p=await s(m,{method:i,headers:{...d?{"Content-Type":"application/json"}:{},...x,...u},body:d?JSON.stringify(d):void 0}),g=await p.text(),v=(p.headers.get("content-type")||"").includes("application/json"),j=v&&g?JSON.parse(g):g;if(!p.ok){const N=v?j:void 0,k=N?.error;throw new Eo(k?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:k?.type,icebergCode:k?.code,details:N})}return{status:p.status,headers:p.headers,data:j}}}}function gc(t){return t.join("�")}var V3=class{constructor(t,s=""){this.client=t,this.prefix=s}async listNamespaces(t){const s=t?{parent:gc(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:s})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,s){const i={namespace:t.namespace,properties:s?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${gc(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${gc(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${gc(t.namespace)}`}),!0}catch(s){if(s instanceof Eo&&s.status===404)return!1;throw s}}async createNamespaceIfNotExists(t,s){try{return await this.createNamespace(t,s)}catch(i){if(i instanceof Eo&&i.status===409)return;throw i}}};function $i(t){return t.join("�")}var G3=class{constructor(t,s="",i){this.client=t,this.prefix=s,this.accessDelegation=i}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables`})).data.identifiers}async createTable(t,s){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables`,body:s,headers:i})).data.metadata}async updateTable(t,s){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables/${t.name}`,body:s});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(t,s){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(s?.purge??!1)}})}async loadTable(t){const s={};return this.accessDelegation&&(s["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables/${t.name}`,headers:s})).data.metadata}async tableExists(t){const s={};this.accessDelegation&&(s["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${$i(t.namespace)}/tables/${t.name}`,headers:s}),!0}catch(i){if(i instanceof Eo&&i.status===404)return!1;throw i}}async createTableIfNotExists(t,s){try{return await this.createTable(t,s)}catch(i){if(i instanceof Eo&&i.status===409)return await this.loadTable({namespace:t.namespace,name:s.name});throw i}}},W3=class{constructor(t){let s="v1";t.catalogName&&(s+=`/${t.catalogName}`);const i=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=H3({baseUrl:i,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new V3(this.client,s),this.tableOps=new G3(this.client,s,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,s){return this.namespaceOps.createNamespace(t,s)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
22async createTable(t,s){return this.tableOps.createTable(t,s)}async updateTable(t,s){return this.tableOps.updateTable(t,s)}async dropTable(t,s){await this.tableOps.dropTable(t,s)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,s){return this.namespaceOps.createNamespaceIfNotExists(t,s)}async createTableIfNotExists(t,s){return this.tableOps.createTableIfNotExists(t,s)}};function Ao(t){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ao(t)}function K3(t,s){if(Ao(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,s);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(t)}function J3(t){var s=K3(t,"string");return Ao(s)=="symbol"?s:s+""}function Y3(t,s,i){return(s=J3(s))in t?Object.defineProperty(t,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[s]=i,t}function mb(t,s){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);s&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,n)}return i}function ue(t){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?mb(Object(i),!0).forEach(function(n){Y3(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):mb(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}var md=class extends Error{constructor(t,s="storage",i,n){super(t),this.__isStorageError=!0,this.namespace=s,this.name=s==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function xd(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var Fm=class extends md{constructor(t,s,i,n="storage",l){super(t,n,s,i),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=s,this.statusCode=i,this.code=l}toJSON(){return ue(ue({},super.toJSON()),{},{code:this.code})}},G2=class extends md{constructor(t,s,i="storage"){super(t,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=s}};function Jc(t,s,i){const n=ue({},t),l=s.toLowerCase();for(const d of Object.keys(n))d.toLowerCase()===l&&delete n[d];return n[l]=i,n}function Q3(t){const s={};for(const[i,n]of Object.entries(t))s[i.toLowerCase()]=n;return s}const X3=t=>t?(...s)=>t(...s):(...s)=>fetch(...s),Z3=t=>{if(typeof t!="object"||t===null)return!1;const s=Object.getPrototypeOf(t);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},$m=t=>{if(Array.isArray(t))return t.map(i=>$m(i));if(typeof t=="function"||t!==Object(t))return t;const s={};return Object.entries(t).forEach(([i,n])=>{const l=i.replace(/([-_][a-z])/gi,d=>d.toUpperCase().replace(/[-_]/g,""));s[l]=$m(n)}),s},e6=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),W2=t=>t.split("/").map(encodeURIComponent).join("/"),xb=t=>{if(typeof t=="object"&&t!==null){const s=t;if(typeof s.msg=="string")return s.msg;if(typeof s.message=="string")return s.message;if(typeof s.error_description=="string")return s.error_description;if(typeof s.error=="string")return s.error;if(typeof s.error=="object"&&s.error!==null){const i=s.error;if(typeof i.message=="string")return i.message}}return JSON.stringify(t)},t6=async(t,s,i,n)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const l=t;let d=parseInt(String(l.status),10);Number.isFinite(d)||(d=500),l.json().then(u=>{const m=u?.statusCode||u?.code||d+"";s(new Fm(xb(u),d,m,n,u?.code))}).catch(()=>{const u=d+"";s(new Fm(l.statusText||`HTTP ${d} error`,d,u,n))})}else s(new G2(xb(t),t,n))},a6=(t,s,i,n)=>{const l={method:t,headers:s?.headers||{}};if(t==="GET"||t==="HEAD"||!n)return ue(ue({},l),i);if(Z3(n)){var d;const u=s?.headers||{};let m;
22for(const[x,p]of Object.entries(u))x.toLowerCase()==="content-type"&&(m=p);l.headers=Jc(u,"Content-Type",(d=m)!==null&&d!==void 0?d:"application/json"),l.body=JSON.stringify(n)}else l.body=n;return s?.duplex&&(l.duplex=s.duplex),ue(ue({},l),i)};async function lo(t,s,i,n,l,d,u){return new Promise((m,x)=>{t(i,a6(s,n,l,d)).then(p=>{if(!p.ok)throw p;if(n?.noResolveJson)return p;if(u==="vectors"){const g=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!g||!g.includes("application/json"))return{}}return p.json()}).then(p=>m(p)).catch(p=>t6(p,x,n,u))})}function K2(t="storage"){return{get:async(s,i,n,l)=>lo(s,"GET",i,n,l,void 0,t),post:async(s,i,n,l,d)=>lo(s,"POST",i,l,d,n,t),put:async(s,i,n,l,d)=>lo(s,"PUT",i,l,d,n,t),head:async(s,i,n,l)=>lo(s,"HEAD",i,ue(ue({},n),{},{noResolveJson:!0}),l,void 0,t),remove:async(s,i,n,l,d)=>lo(s,"DELETE",i,l,d,n,t)}}const s6=K2("storage"),{get:To,post:Da,put:Im,head:r6,remove:Lo}=s6,la=K2("vectors");var dn=class{constructor(t,s={},i,n="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=Q3(s),this.fetch=X3(i),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,s){return this.headers=Jc(this.headers,t,s),this}async handleOperation(t){var s=this;try{return{data:await t(),error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(xd(i))return{data:null,error:i};throw i}}};let J2;J2=Symbol.toStringTag;var i6=class{constructor(t,s){this.downloadFn=t,this.shouldThrowOnError=s,this[J2]="StreamDownloadBuilder",this.promise=null}then(t,s){return this.getPromise().then(t,s)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(xd(s))return{data:null,error:s};throw s}}};let Y2;Y2=Symbol.toStringTag;var n6=class{constructor(t,s){this.downloadFn=t,this.shouldThrowOnError=s,this[Y2]="BlobDownloadBuilder",this.promise=null}asStream(){return new i6(this.downloadFn,this.shouldThrowOnError)}then(t,s){return this.getPromise().then(t,s)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(xd(s))return{data:null,error:s};throw s}}};const Qh={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},fb={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var o6=class extends dn{constructor(t,s={},i,n){super(t,s,n,"storage"),this.bucketId=i}async uploadOrUpdate(t,s,i,n){var l=this;return l.handleOperation(async()=>{let d;const u=ue(ue({},fb),n);let m=ue(ue({},l.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const x=u.metadata;if(typeof Blob<"u"&&i instanceof Blob?(d=new FormData,d.append("cacheControl",u.cacheControl),x&&d.append("metadata",l.encodeMetadata(x)),d.append("",i)):typeof FormData<"u"&&i instanceof FormData?(d=i,d.has("cacheControl")||d.append("cacheControl",u.cacheControl),x&&!d.has("metadata")&&d.append("metadata",l.encodeMetadata(x))):(d=i,m["cache-control"]=`max-age=${u.cacheControl}`,m["content-type"]=u.contentType,x&&(m["x-metadata"]=l.toBase64(l.encodeMetadata(x))),(typeof ReadableStream<"u"&&d instanceof ReadableStream||d&&typeof d=="object"&&"pipe"in d&&typeof d.pipe=="function")&&!u.duplex&&(u.duplex="half")),n?.headers)for(const[j,N]of Object.entries(n.headers))m=Jc(m,j,N);const p=l._removeEmptyFolders(s),g=l._getFinalPath(p),v=await(t=="PUT"?Im:Da)(l.fetch,`${l.url}/object/${g}`,d,ue({headers:m},u?.duplex?{duplex:u.duplex}:{}));return{path:p,id:v.Id,fullPath:v.Key}})}async upload(t,s,i){return this.uploadOrUpdate("POST",t,s,i)}async uploadToSignedUrl(t,s,i,n){var l=this;const d=l._removeEmptyFolders(t),u=l._getFinalPath(d),m=new URL(l.url+`/object/upload/sign/${u}`);return m.searchParams.set("token",s),l.handleOperation(async()=>{let x;const p=ue(ue({},fb),n);let g=ue(ue({},l.headers),{"x-upsert":String(p.upsert)});const v=p.metadata;if(typeof Blob<"u"&&i instanceof Blob?(x=new FormData,x.append("cacheControl",p.cacheControl),v&&x.append("metadata",l.encodeMetadata(v)),x.append("",i)):typeof FormData<"u"&&i instanceof FormData?(x=i,x.has("cacheControl")||x.append("cacheControl",p.cacheControl),v&&!x.has("metadata")&&x.append("metadata",l.encodeMetadata(v))):(x=i,g["cache-control"]=`max-age=${p.cacheControl}`,g["content-type"]=p.contentType,v&&(g["x-metadata"]=l.toBase64(l.encodeMetadata(v))),(typeof ReadableStream<"u"&&x instanceof ReadableStream||x&&typeof x=="object"&&"pipe"in x&&typeof x.pipe=="function")&&!p.duplex&&(p.duplex="half")),n?.headers)for(const[j,N]of Object.entries(n.headers))g=Jc(g,j,N);return{path:d,fullPath:(await Im(l.fetch,m.toString(),x,ue({headers:g},p?.duplex?{duplex:p.duplex}:{}))).Key}})}async createSignedUploadUrl(t,s){var i=this;return i.handleOperation(async()=>{let n=i._getFinalPath(t);const l=ue({},i.headers);s?.upsert&&(l["x-upsert"]="true");const d=await Da(i.fetch,`${i.url}/object/upload/sign/${n}`,{},{headers:l}),u=new URL(i.url+d.url),m=u.searchParams.get("token");if(!m)throw new md("No token returned by API");return{signedUrl:u.toString(),path:t,token:m}})}async update(t,s,i){return this.uploadOrUpdate("PUT",t,s,i)}async move(t,s,i){var n=this;return n.handleOperation(async()=>await Da(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:t,destinationKey:s,destinationBucket:i?.destinationBucket},{headers:n.headers}))}async copy(t,s,i){var n=this;return n.handleOperation(async()=>({path:(await Da(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:t,destinationKey:s,destinationBucket:i?.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(t,s,i){var n=this;return n.handleOperation(async()=>{let l=n._getFinalPath(t);const d=typeof i?.transform=="object"&&i.transform!==null&&Object.keys(i.transform).length>0;let u=await Da(n.fetch,`${n.url}/object/sign/${l}
22`,ue({expiresIn:s},d?{transform:i.transform}:{}),{headers:n.headers});const m=new URLSearchParams;i?.download&&m.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&m.set("cacheNonce",String(i.cacheNonce));const x=m.toString();return{signedUrl:encodeURI(`${n.url}${u.signedURL}${x?`&${x}`:""}`)}})}async createSignedUrls(t,s,i){var n=this;return n.handleOperation(async()=>{const l=await Da(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:s,paths:t},{headers:n.headers}),d=new URLSearchParams;i?.download&&d.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&d.set("cacheNonce",String(i.cacheNonce));const u=d.toString();return l.map(m=>ue(ue({},m),{},{signedUrl:m.signedURL?encodeURI(`${n.url}${m.signedURL}${u?`&${u}`:""}`):null}))})}download(t,s,i){const n=typeof s?.transform=="object"&&s.transform!==null&&Object.keys(s.transform).length>0?"render/image/authenticated":"object",l=new URLSearchParams;s?.transform&&this.applyTransformOptsToQuery(l,s.transform),s?.cacheNonce!=null&&l.set("cacheNonce",String(s.cacheNonce));const d=l.toString(),u=this._getFinalPath(t),m=()=>To(this.fetch,`${this.url}/${n}/${u}${d?`?${d}`:""}`,{headers:this.headers,noResolveJson:!0},i);return new n6(m,this.shouldThrowOnError)}async info(t){var s=this;const i=s._getFinalPath(t);return s.handleOperation(async()=>$m(await To(s.fetch,`${s.url}/object/info/${i}`,{headers:s.headers})))}async exists(t){var s=this;const i=s._getFinalPath(t);try{return await r6(s.fetch,`${s.url}/object/${i}`,{headers:s.headers}),{data:!0,error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(xd(l)){var n;const d=l instanceof Fm?l.status:l instanceof G2?(n=l.originalError)===null||n===void 0?void 0:n.status:void 0;if(d!==void 0&&[400,404].includes(d))return{data:!1,error:l}}throw l}}getPublicUrl(t,s){const i=this._getFinalPath(t),n=new URLSearchParams;s?.download&&n.set("download",s.download===!0?"":s.download),s?.transform&&this.applyTransformOptsToQuery(n,s.transform),s?.cacheNonce!=null&&n.set("cacheNonce",String(s.cacheNonce));const l=n.toString(),d=typeof s?.transform=="object"&&s.transform!==null&&Object.keys(s.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${d}/public/${i}`)+(l?`?${l}`:"")}}}async remove(t){var s=this;return s.handleOperation(async()=>await Lo(s.fetch,`${s.url}/object/${s.bucketId}`,{prefixes:t},{headers:s.headers}))}async purgeCache(t,s,i){var n=this;return n.handleOperation(async()=>{const l=W2(n._getFinalPath(t)),d=new URLSearchParams;s?.transformations&&d.set("transformations","true");const u=d.toString();return await Lo(n.fetch,`${n.url}/cdn/${l}${u?`?${u}`:""}`,{},{headers:n.headers},i)})}async list(t,s,i){var n=this;return n.handleOperation(async()=>{const l=s?.sortBy?ue(ue({},Qh.sortBy),s.sortBy):Qh.sortBy,d=ue(ue(ue({},Qh),s),{},{sortBy:l,prefix:t||""});return await Da(n.fetch,`${n.url}/object/list/${n.bucketId}`,d,{headers:n.headers},i)})}async listV2(t,s){var i=this;return i.handleOperation(async()=>{const n=ue({},t);return await Da(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,n,{headers:i.headers},s)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,s){return s.width&&t.set("width",s.width.toString()),s.height&&t.set("height",s.height.toString()),s.resize&&t.set("resize",s.resize),s.format&&t.set("format",s.format),s.quality&&t.set("quality",s.quality.toString()),t}};const l6="2.112.0",Vo={"X-Client-Info":`storage-js/${l6}`};var c6=class extends dn{constructor(t,s={},i,n){const l=new URL(t);n?.useNewHostname&&/supabase\.(co|in|red)$/.test(l.hostname)&&!l.hostname.includes("storage.supabase.")&&(l.hostname=l.hostname.replace("supabase.","storage.supabase."));const d=l.href.replace(/\/$/,""),u=ue(ue({},Vo),s);super(d,u,i,"storage")}async listBuckets(t){var s=this;return s.handleOperation(async()=>{const i=s.listBucketOptionsToQueryString(t);return await To(s.fetch,`${s.url}/bucket${i}`,{headers:s.headers})})}async getBucket(t){var s=this;return s.handleOperation(async()=>await To(s.fetch,`${s.url}/bucket/${t}`,{headers:s.headers}))}async createBucket(t,s={public:!1}){var i=this;return i.handleOperation(async()=>await Da(i.fetch,`${i.url}/bucket`,{id:t,name:t,type:s.type,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:i.headers}))}async updateBucket(t,s){var i=this;return i.handleOperation(async()=>await Im(i.fetch,`${i.url}/bucket/${t}`,{id:t,name:t,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(t){var s=this;return s.handleOperation(async()=>await Da(s.fetch,`${s.url}/bucket/${t}/empty`,{},{headers:s.headers}))}async deleteBucket(t){var s=this;return s.handleOperation(async()=>await Lo(s.fetch,`${s.url}/bucket/${t}`,{},{headers:s.headers}))}async purgeBucketCache(t,s,i){var n=this;return n.handleOperation(async()=>{const l=new URLSearchParams;s?.transformations&&l.set("transformations","true");const d=l.toString();return await Lo(n.fetch,`${n.url}/cdn/${W2(t)}${d?`?${d}`:""}`,{},{headers:n.headers},i)})}listBucketOptionsToQueryString(t){const s={};return t&&("limit"in t&&(s.limit=String(t.limit)),"offset"in t&&(s.offset=String(t.offset)),t.search&&(s.search=t.search),t.sortColumn&&(s.sortColumn=t.sortColumn),t.sortOrder&&(s.sortOrder=t.sortOrder)),Object.keys(s).length>0?"?"+new URLSearchParams(s).toString():""}},d6=class extends dn{constructor(t,s={},i){const n=t.replace(/\/$/,""),l=ue(ue({},Vo),s);super(n,l,i,"storage")}async createBucket(t){var s=this;return s.handleOperation(async()=>await Da(s.fetch,`${s.url}/bucket`,{name:t},{headers:s.headers}))}async listBuckets(t){var s=this;return s.handleOperation(async()=>{const i=new URLSearchParams;t?.limit!==void 0&&i.set("limit",t.limit.toString()),t?.offset!==void 0&&i.set("offset",t.offset.toString()),t?.sortColumn&&i.set("sortColumn",t.sortColumn),t?.sortOrder&&i.set("sortOrder",t.sortOrder),t?.search&&i.set("search",t.search);const n=i.toString(),l=n?`${s.url}/bucket?${n}`:`${s.url}/bucket`;return await To(s.fetch,l,{headers:s.headers})})}async deleteBucket(t){var s=this;return s.handleOperation(async()=>await Lo(s.fetch,`${s.url}/bucket/${t}`,{},{headers:s.headers}))}from(t){var s=this;if(!e6(t))throw new md("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const i=new W3({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>s.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(i,{get(l,d){const u=l[d];return typeof u!="function"?u:async(...m)=>{try{return{data:await u.apply(l,m),error:null}}
22catch(x){if(n)throw x;return{data:null,error:x}}}}})}},u6=class extends dn{constructor(t,s={},i){const n=t.replace(/\/$/,""),l=ue(ue({},Vo),{},{"Content-Type":"application/json"},s);super(n,l,i,"vectors")}async createIndex(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/CreateIndex`,t,{headers:s.headers})||{})}async getIndex(t,s){var i=this;return i.handleOperation(async()=>await la.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:t,indexName:s},{headers:i.headers}))}async listIndexes(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/ListIndexes`,t,{headers:s.headers}))}async deleteIndex(t,s){var i=this;return i.handleOperation(async()=>await la.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:t,indexName:s},{headers:i.headers})||{})}},h6=class extends dn{constructor(t,s={},i){const n=t.replace(/\/$/,""),l=ue(ue({},Vo),{},{"Content-Type":"application/json"},s);super(n,l,i,"vectors")}async putVectors(t){var s=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/PutVectors`,t,{headers:s.headers})||{})}async getVectors(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/GetVectors`,t,{headers:s.headers}))}async listVectors(t){var s=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/ListVectors`,t,{headers:s.headers}))}async queryVectors(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/QueryVectors`,t,{headers:s.headers}))}async deleteVectors(t){var s=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/DeleteVectors`,t,{headers:s.headers})||{})}},m6=class extends dn{constructor(t,s={},i){const n=t.replace(/\/$/,""),l=ue(ue({},Vo),{},{"Content-Type":"application/json"},s);super(n,l,i,"vectors")}async createBucket(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:s.headers})||{})}async getBucket(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/GetVectorBucket`,{vectorBucketName:t},{headers:s.headers}))}async listBuckets(t={}){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/ListVectorBuckets`,t,{headers:s.headers}))}async deleteBucket(t){var s=this;return s.handleOperation(async()=>await la.post(s.fetch,`${s.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:s.headers})||{})}},x6=class extends m6{constructor(t,s={}){super(t,s.headers||{},s.fetch)}from(t){return new f6(this.url,this.headers,t,this.fetch)}async createBucket(t){var s=()=>super.createBucket,i=this;return s().call(i,t)}async getBucket(t){var s=()=>super.getBucket,i=this;return s().call(i,t)}async listBuckets(t={}){var s=()=>super.listBuckets,i=this;return s().call(i,t)}async deleteBucket(t){var s=()=>super.deleteBucket,i=this;return s().call(i,t)}},f6=class extends u6{constructor(t,s,i,n){super(t,s,n),this.vectorBucketName=i}async createIndex(t){var s=()=>super.createIndex,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(t={}){var s=()=>super.listIndexes,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(t){var s=()=>super.getIndex,i=this;return s().call(i,i.vectorBucketName,t)}async deleteIndex(t){var s=()=>super.deleteIndex,i=this;return s().call(i,i.vectorBucketName,t)}index(t){return new p6(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},p6=class extends h6{constructor(t,s,i,n,l){super(t,s,l),this.vectorBucketName=i,this.indexName=n}async putVectors(t){var s=()=>super.putVectors,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(t){var s=()=>super.getVectors,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(t={}){var s=()=>super.listVectors,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(t){var s=()=>super.queryVectors,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(t){var s=()=>super.deleteVectors,i=this;return s().call(i,ue(ue({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},g6=class extends c6{constructor(t,s={},i,n){super(t,s,i,n)}from(t){return new o6(this.url,this.headers,t,this.fetch)}get vectors(){return new x6(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new d6(this.url+"/iceberg",this.headers,this.fetch)}};const Q2="2.112.0",As=30*1e3,mo=3,Xh=mo*As,b6=2*As,v6="http://localhost:9999",y6="supabase.auth.token",j6={"X-Client-Info":`gotrue-js/${Q2}`},Hm="X-Supabase-Api-Version",X2={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},N6=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Vr="sb_flow_id",w6=5,_6=600*1e3;
22class Oo extends Error{constructor(s,i,n){super(s),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function ae(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class S6 extends Oo{constructor(s,i,n){super(s,i,n),this.name="AuthApiError",this.status=i,this.code=n}}function pb(t){return ae(t)&&t.name==="AuthApiError"}class Ma extends Oo{constructor(s,i){super(s),this.name="AuthUnknownError",this.originalError=i}}class rs extends Oo{constructor(s,i,n,l){super(s,n,l),this.name=i,this.status=n}}class kt extends rs{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function bc(t){return ae(t)&&t.name==="AuthSessionMissingError"}class Ii extends rs{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class vc extends rs{constructor(s){super(s,"AuthInvalidCredentialsError",400,void 0)}}class yc extends rs{constructor(s,i=null){super(s,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function k6(t){return ae(t)&&t.name==="AuthImplicitGrantRedirectError"}class gb extends rs{constructor(s,i=null){super(s,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class C6 extends rs{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Vm extends rs{constructor(s,i){super(s,"AuthRetryableFetchError",i,void 0)}}function jc(t){return ae(t)&&t.name==="AuthRetryableFetchError"}class bb extends rs{constructor(s="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(s,"AuthRefreshDiscardedError",409,void 0)}}function E6(t){return ae(t)&&t.name==="AuthRefreshDiscardedError"}class vb extends rs{constructor(s,i,n){super(s,"AuthWeakPasswordError",i,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Yc extends rs{constructor(s){super(s,"AuthInvalidJwtError",400,"invalid_jwt")}}const Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),yb=` 23\r=`.split(""),A6=(()=>{const t=new Array(128);for(let s=0;s<t.length;s+=1)t[s]=-1;for(let s=0;s<yb.length;s+=1)t[yb[s].charCodeAt(0)]=-2;for(let s=0;s<Qc.length;s+=1)t[Qc[s].charCodeAt(0)]=s;return t})();function jb(t,s,i){if(t!==null)for(s.queue=s.queue<<8|t,s.queuedBits+=8;s.queuedBits>=6;){const n=s.queue>>s.queuedBits-6&63;i(Qc[n]),s.queuedBits-=6}else if(s.queuedBits>0)for(s.queue=s.queue<<6-s.queuedBits,s.queuedBits=6;s.queuedBits>=6;){const n=s.queue>>s.queuedBits-6&63;i(Qc[n]),s.queuedBits-=6}}function Z2(t,s,i){const n=A6[t];if(n>-1)for(s.queue=s.queue<<6|n,s.queuedBits+=6;s.queuedBits>=8;)i(s.queue>>s.queuedBits-8&255),s.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Nb(t){const s=[],i=u=>{s.push(String.fromCodePoint(u))},n={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},d=u=>{O6(u,n,i)};for(let u=0;u<t.length;u+=1)Z2(t.charCodeAt(u),l,d);return s.join("")}function T6(t,s){if(t<=127){s(t);return}else if(t<=2047){s(192|t>>6),s(128|t&63);return}else if(t<=65535){s(224|t>>12),s(128|t>>6&63),s(128|t&63);return}else if(t<=1114111){s(240|t>>18),s(128|t>>12&63),s(128|t>>6&63),s(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function L6(t,s){for(let i=0;i<t.length;i+=1){let n=t.charCodeAt(i);if(n>55295&&n<=56319){const l=(n-55296)*1024&65535;n=(t.charCodeAt(i+1)-56320&65535|l)+65536,i+=1}T6(n,s)}}
23function O6(t,s,i){if(s.utf8seq===0){if(t<=127){i(t);return}for(let n=1;n<6;n+=1)if((t>>7-n&1)===0){s.utf8seq=n;break}if(s.utf8seq===2)s.codepoint=t&31;else if(s.utf8seq===3)s.codepoint=t&15;else if(s.utf8seq===4)s.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");s.utf8seq-=1}else if(s.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");s.codepoint=s.codepoint<<6|t&63,s.utf8seq-=1,s.utf8seq===0&&i(s.codepoint)}}function an(t){const s=[],i={queue:0,queuedBits:0},n=l=>{s.push(l)};for(let l=0;l<t.length;l+=1)Z2(t.charCodeAt(l),i,n);return new Uint8Array(s)}function R6(t){const s=[];return L6(t,i=>s.push(i)),new Uint8Array(s)}function Gr(t){const s=[],i={queue:0,queuedBits:0},n=l=>{s.push(l)};return t.forEach(l=>jb(l,i,n)),jb(null,i,n),s.join("")}function z6(t){return Math.round(Date.now()/1e3)+t}function D6(){return Symbol("auth-callback")}const Ot=()=>typeof window<"u"&&typeof document<"u",Br={tested:!1,writable:!1},ey=()=>{if(!Ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Br.tested)return Br.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Br.tested=!0,Br.writable=!0}catch{Br.tested=!0,Br.writable=!1}return Br.writable};function wb(t){const s={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((l,d)=>{s[d]=l})}catch{}return i.searchParams.forEach((n,l)=>{s[l]=n}),s}const ty=t=>t?(...s)=>t(...s):(...s)=>fetch(...s),M6=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ts=async(t,s,i)=>{await t.setItem(s,JSON.stringify(i))},Mt=async(t,s)=>{const i=await t.getItem(s);if(!i)return null;try{return JSON.parse(i)}catch{return null}},Jt=async(t,s)=>{await t.removeItem(s)};class fd{constructor(){this.promise=new fd.promiseConstructor((s,i)=>{this.resolve=s,this.reject=i})}}fd.promiseConstructor=Promise;function Nc(t){const s=t.split(".");if(s.length!==3)throw new Yc("Invalid JWT structure");for(let n=0;n<s.length;n++)if(!N6.test(s[n]))throw new Yc("JWT not in base64url format");return{header:JSON.parse(Nb(s[0])),payload:JSON.parse(Nb(s[1])),signature:an(s[2]),raw:{header:s[0],payload:s[1]}}}async function P6(t){return await new Promise(s=>{setTimeout(()=>s(null),t)})}function B6(t,s){return new Promise((n,l)=>{(async()=>{for(let d=0;d<1/0;d++)try{const u=await t(d);if(!s(d,null,u)){n(u);return}}catch(u){if(!s(d,u)){l(u);return}}})()})}function ay(t){return("0"+t.toString(16)).substr(-2)}function q6(){const s=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=i.length;let l="";for(let d=0;d<56;d++)l+=i.charAt(Math.floor(Math.random()*n));return l}return crypto.getRandomValues(s),Array.from(s,ay).join("")}async function U6(t){const i=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",i),l=new Uint8Array(n);return Array.from(l).map(d=>String.fromCharCode(d)).join("")}async function F6(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await U6(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const $6=/^[a-zA-Z0-9_-]{8,64}$/;function Pc(t){return typeof t=="string"&&$6.test(t)?t:null}function I6(){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){const s=new Uint8Array(16);return crypto.getRandomValues(s),Array.from(s,ay).join("")}let t="";for(let s=0;s<32;s++)t+=Math.floor(Math.random()*16).toString(16);return t}const sn=(t,s)=>`${t}-flow-${s}-code-verifier`,Ro=t=>`${t}-flows-code-verifier`;async function bx(t,s){const i=await Mt(t,Ro(s));return Array.isArray(i)?i.filter(n=>Pc(n)!==null):[]}async function H6(t,s,i,n,l){await Ts(t,sn(s,i),n);const d=(await bx(t,s)).filter(u=>u!==i);for(d.push(i);d.length>w6;){const u=d.shift();await Jt(t,sn(s,u)),l?.(u)}await Ts(t,Ro(s),d),await Ts(t,`${s}-code-verifier`,n)}async function V6(t,s,i){if(i){const l=await Mt(t,sn(s,i));return{verifier:typeof l=="string"?l:null,flowId:i}}const n=await Mt(t,`${s}-code-verifier`);return{verifier:typeof n=="string"?n:null,flowId:null}}async function Ra(t,s,i){const n=`${s}-code-verifier`;if(!i){await Jt(t,n);return}const l=sn(s,i),d=await Mt(t,l);await Jt(t,l);const u=await bx(t,s),m=u.filter(x=>x!==i);m.length!==u.length&&(m.length>0?await Ts(t,Ro(s),m):await Jt(t,Ro(s))),d!=null&&d===await Mt(t,n)&&await Jt(t,n)}async function G6(t,s){const i=await bx(t,s);for(const n of i)await Jt(t,sn(s,n));await Jt(t,Ro(s)),await Jt(t,`${s}-code-verifier`)}function W6(t,s){const i=t.indexOf("#");let n=i===-1?t:t.slice(0,i);const l=i===-1?"":t.slice(i),d=n.indexOf("?");if(d!==-1){const m=n.slice(0,d),x=n.slice(d+1).split("&").filter(p=>p!==""&&p!==Vr&&!p.startsWith(`${Vr}=`));n=x.length>0?`${m}?${x.join("&")}`:m}const u=n.includes("?")?"&":"?";return`${n}${u}${Vr}=${encodeURIComponent(s)}${l}`}async function K6(t,s,i=!1,n){const l=q6();let d=l;i&&(d+="/recovery");const u=I6();await H6(t,s,u,d,n);const m=await F6(l);return[m,l===m?"plain":"s256",u]}const J6=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Y6(t){const s=t.headers.get(Hm);if(!s||!s.match(J6))return null;try{return new Date(`${s}T00:00:00.0Z`)}catch{return null}}function Q6(t){if(!t)throw new Error("Missing exp claim");const s=Math.floor(Date.now()/1e3);if(t<=s)throw new Error("JWT has expired")}function X6(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const Z6=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function _s(t){if(!Z6.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function za(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Zh(){const t={};return new Proxy(t,{get:(s,i)=>{if(i==="__isUserNotAvailableProxy")return!0;
23if(typeof i=="symbol"){const n=i.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(s,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(s,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function eC(t,s){return new Proxy(t,{get:(i,n,l)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const d=n.toString();if(d==="Symbol(Symbol.toPrimitive)"||d==="Symbol(Symbol.toStringTag)"||d==="Symbol(util.inspect.custom)"||d==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,n,l)}return!s.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),s.value=!0),Reflect.get(i,n,l)}})}function _b(t){return JSON.parse(JSON.stringify(t))}const Fr=t=>{if(typeof t=="object"&&t!==null){const s=t;if(typeof s.msg=="string")return s.msg;if(typeof s.message=="string")return s.message;if(typeof s.error_description=="string")return s.error_description;if(typeof s.error=="string")return s.error}return JSON.stringify(t)},tC=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Sb(t){var s;if(!M6(t))throw new Vm(Fr(t),0);if(tC.includes(t.status))throw new Vm(Fr(t),t.status);let i;try{i=await t.json()}catch(d){throw new Ma(Fr(d),d)}let n;const l=Y6(t);if(l&&l.getTime()>=X2["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?n=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(n=i.error_code),n){if(n==="weak_password")throw new vb(Fr(i),t.status,((s=i.weak_password)===null||s===void 0?void 0:s.reasons)||[]);if(n==="session_not_found")throw new kt}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((d,u)=>d&&typeof u=="string",!0))throw new vb(Fr(i),t.status,i.weak_password.reasons);throw new S6(Fr(i),t.status||500,n)}const aC=(t,s,i,n)=>{const l={method:t,headers:s?.headers||{}};return t==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},s?.headers),l.body=JSON.stringify(n),Object.assign(Object.assign({},l),i))};async function le(t,s,i,n){var l;const d=Object.assign({},n?.headers);d[Hm]||(d[Hm]=X2["2024-01-01"].name),n?.jwt&&(d.Authorization=`Bearer ${n.jwt}`);const u=(l=n?.query)!==null&&l!==void 0?l:{};n?.redirectTo&&(u.redirect_to=n.redirectTo);const m=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",x=await sC(t,s,i+m,{headers:d,noResolveJson:n?.noResolveJson},{},n?.body);return n?.xform?n?.xform(x):{data:Object.assign({},x),error:null}}async function sC(t,s,i,n,l,d){const u=aC(s,n,l,d);let m;try{m=await t(i,Object.assign({},u))}catch(x){throw new Vm(Fr(x),0)}if(m.ok||await Sb(m),n?.noResolveJson)return m;try{return await m.json()}catch(x){await Sb(x)}}function Sa(t){var s;let i=null;nC(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=z6(t.expires_in)));const n=(s=t.user)!==null&&s!==void 0?s:typeof t?.id=="string"?t:null;return{data:{session:i,user:n},error:null}}function kb(t){const s=Sa(t);return!s.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,n)=>i&&typeof n=="string",!0)&&(s.data.weak_password=t.weak_password),s}function ur(t){var s;return{data:{user:(s=t.user)!==null&&s!==void 0?s:t},error:null}}function rC(t){return{data:t,error:null}}function iC(t){const{action_link:s,email_otp:i,hashed_token:n,redirect_to:l,verification_type:d}=t,u=hd(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),m={action_link:s,email_otp:i,hashed_token:n,redirect_to:l,verification_type:d},x=Object.assign({},u);return{data:{properties:m,user:x},error:null}}function Cb(t){return t}function nC(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const em=["global","local","others"];class oC{constructor({url:s="",headers:i={},fetch:n,experimental:l}){this.url=s,this.headers=i,this.fetch=ty(n),this.experimental=l??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(s,i=em[0]){if(em.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${em.join(", ")}`);try{return await le(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:s,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ae(n))return{data:null,error:n};throw n}}async inviteUserByEmail(s,i={}){try{return await le(this.fetch,"POST",`${this.url}/invite`,{body:{email:s,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:ur})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async generateLink(s){try{const{options:i}=s,n=hd(s,["options"]),l=Object.assign(Object.assign({},n),i);return"newEmail"in n&&(l.new_email=n?.newEmail,delete l.newEmail),await le(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:iC,redirectTo:i?.redirectTo})}catch(i){if(ae(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(s){try{return await le(this.fetch,"POST",`${this.url}/admin/users`,{body:s,headers:this.headers,xform:ur})}catch(i){if(ae(i))return{data:{user:null},error:i};throw i}}async listUsers(s){var i,n,l,d,u,m,x;try{const p={nextPage:null,lastPage:0,total:0},g=await le(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(i=s?.page)===null||i===void 0?void 0:i.toString())!==null&&n!==void 0?n:"",per_page:(d=(l=s?.perPage)===null||l===void 0?void 0:l.toString())!==null&&d!==void 0?d:""},xform:Cb});if(g.error)throw g.error;const v=await g.json(),j=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,N=(x=(m
23=g.headers.get("link"))===null||m===void 0?void 0:m.split(","))!==null&&x!==void 0?x:[];return N.length>0&&(N.forEach(k=>{const S=parseInt(k.split(";")[0].split("=")[1].substring(0,1)),C=JSON.parse(k.split(";")[1].split("=")[1]);p[`${C}Page`]=S}),p.total=parseInt(j)),{data:Object.assign(Object.assign({},v),p),error:null}}catch(p){if(ae(p))return{data:{users:[]},error:p};throw p}}async getUserById(s){_s(s);try{return await le(this.fetch,"GET",`${this.url}/admin/users/${s}`,{headers:this.headers,xform:ur})}catch(i){if(ae(i))return{data:{user:null},error:i};throw i}}async updateUserById(s,i){_s(s);try{return await le(this.fetch,"PUT",`${this.url}/admin/users/${s}`,{body:i,headers:this.headers,xform:ur})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async deleteUser(s,i=!1){_s(s);try{return await le(this.fetch,"DELETE",`${this.url}/admin/users/${s}`,{headers:this.headers,body:{should_soft_delete:i},xform:ur})}catch(n){if(ae(n))return{data:{user:null},error:n};throw n}}async _listFactors(s){_s(s.userId);try{const{data:i,error:n}=await le(this.fetch,"GET",`${this.url}/admin/users/${s.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:i,error:n}}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _deleteFactor(s){_s(s.userId),_s(s.id);try{return{data:await le(this.fetch,"DELETE",`${this.url}/admin/users/${s.userId}/factors/${s.id}`,{headers:this.headers}),error:null}}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _listOAuthClients(s){var i,n,l,d,u,m,x;try{const p={nextPage:null,lastPage:0,total:0},g=await le(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(i=s?.page)===null||i===void 0?void 0:i.toString())!==null&&n!==void 0?n:"",per_page:(d=(l=s?.perPage)===null||l===void 0?void 0:l.toString())!==null&&d!==void 0?d:""},xform:Cb});if(g.error)throw g.error;const v=await g.json(),j=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,N=(x=(m=g.headers.get("link"))===null||m===void 0?void 0:m.split(","))!==null&&x!==void 0?x:[];return N.length>0&&(N.forEach(k=>{const S=parseInt(k.split(";")[0].split("=")[1].substring(0,1)),C=JSON.parse(k.split(";")[1].split("=")[1]);p[`${C}Page`]=S}),p.total=parseInt(j)),{data:Object.assign(Object.assign({},v),p),error:null}}catch(p){if(ae(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(s){try{return await le(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:s,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _getOAuthClient(s){try{return await le(this.fetch,"GET",`${this.url}/admin/oauth/clients/${s}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _updateOAuthClient(s,i){try{return await le(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${s}`,{body:i,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(s){try{return await le(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${s}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(s){try{return await le(this.fetch,"POST",`${this.url}/admin/oauth/clients/${s}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _listCustomProviders(s){try{const i={};return s?.type&&(i.type=s.type),await le(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:n=>{var l;return{data:{providers:(l=n?.providers)!==null&&l!==void 0?l:[]},error:null}}})}catch(i){if(ae(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(s){try{return await le(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:s,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _getCustomProvider(s){try{return await le(this.fetch,"GET",`${this.url}/admin/custom-providers/${s}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _updateCustomProvider(s,i){try{return await le(this.fetch,"PUT",`${this.url}/admin/custom-providers/${s}`,{body:i,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ae(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(s){try{return await le(this.fetch,"DELET
23E",`${this.url}/admin/custom-providers/${s}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _adminListPasskeys(s){za(this.experimental),_s(s.userId);try{return await le(this.fetch,"GET",`${this.url}/admin/users/${s.userId}/passkeys`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(ae(i))return{data:null,error:i};throw i}}async _adminDeletePasskey(s){za(this.experimental),_s(s.userId),_s(s.passkeyId);try{return await le(this.fetch,"DELETE",`${this.url}/admin/users/${s.userId}/passkeys/${s.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(ae(i))return{data:null,error:i};throw i}}}function Eb(t={}){return{getItem:s=>t[s]||null,setItem:(s,i)=>{t[s]=i},removeItem:s=>{delete t[s]}}}globalThis&&ey()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class lC extends Error{constructor(s){super(s),this.isAcquireTimeout=!0}}function cC(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function sy(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function dC(t){return parseInt(t,16)}function uC(t){const s=new TextEncoder().encode(t);return"0x"+Array.from(s,n=>n.toString(16).padStart(2,"0")).join("")}function hC(t){var s;const{chainId:i,domain:n,expirationTime:l,issuedAt:d=new Date,nonce:u,notBefore:m,requestId:x,resources:p,scheme:g,uri:v,version:j}=t;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!v)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(j!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${j}`);if(!((s=t.statement)===null||s===void 0)&&s.includes(` 24`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const N=sy(t.address),k=g?`${g}://${n}`:n,S=t.statement?`${t.statement} 25`:"",C=`${k} wants you to sign in with your Ethereum account: 26${N} 27 28${S}`;let T=`URI: ${v} 29Version: ${j} 30Chain ID: ${i}${u?` 31Nonce: ${u}`:""} 32Issued At: ${d.toISOString()}`;if(l&&(T+=` 33Expiration Time: ${l.toISOString()}`),m&&(T+=` 34Not Before: ${m.toISOString()}`),x&&(T+=` 35Request ID: ${x}`),p){let w=` 36Resources:`;for(const _ of p){if(!_||typeof _!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${_}`);w+=` 37- ${_}`}T+=w}return`${C} 38${T}`}class vt extends Error{constructor({message:s,code:i,cause:n,name:l}){var d;super(s,{cause:n}),this.__isWebAuthnError=!0,this.name=(d=l??(n instanceof Error?n.name:void 0))!==null&&d!==void 0?d:"Unknown Error",this.code=i}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Xc extends vt{constructor(s,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:s}),this.name="WebAuthnUnknownError",this.originalError=i}}function mC({error:t,options:s}){var i,n,l;const{publicKey:d}=s;if(!d)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(s.signal instanceof AbortSignal)return new vt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((i=d.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new vt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(s.mediation==="conditional"&&((n=d.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new vt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((l=d.authenticatorSelection)===null||l===void 0?void 0:l.userVerification)==="required")return new vt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new vt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new vt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return d.pubKeyCredParams.filter(m=>m.type==="public-key").length===0?new vt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new vt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const u=window.location.hostname;if(ry(u)){if(d.rp.id!==u)return new vt({message:`The RP ID "${d.rp.id}
38" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new vt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(d.user.id.byteLength<1||d.user.id.byteLength>64)return new vt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new vt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new vt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function xC({error:t,options:s}){const{publicKey:i}=s;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(s.signal instanceof AbortSignal)return new vt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new vt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(ry(n)){if(i.rpId!==n)return new vt({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new vt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new vt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new vt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class fC{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const s=new AbortController;return this.controller=s,s.signal}cancelCeremony(){if(this.controller){const s=new Error("Manually cancelling existing WebAuthn API call");s.name="AbortError",this.controller.abort(s),this.controller=void 0}}}const Gm=new fC;function Ab(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:s,user:i,excludeCredentials:n}=t,l=hd(t,["challenge","user","excludeCredentials"]),d=an(s).buffer,u=Object.assign(Object.assign({},i),{id:an(i.id).buffer}),m=Object.assign(Object.assign({},l),{challenge:d,user:u});if(n&&n.length>0){m.excludeCredentials=new Array(n.length);for(let x=0;x<n.length;x++){const p=n[x];m.excludeCredentials[x]=Object.assign(Object.assign({},p),{id:an(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return m}function Tb(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:s,allowCredentials:i}=t,n=hd(t,["challenge","allowCredentials"]),l=an(s).buffer,d=Object.assign(Object.assign({},n),{challenge:l});if(i&&i.length>0){d.allowCredentials=new Array(i.length);for(let u=0;u<i.length;u++){const m=i[u];d.allowCredentials[u]=Object.assign(Object.assign({},m),{id:an(m.id).buffer,type:m.type||"public-key",transports:m.transports})}}return d}function Lb(t){var s;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t;return{id:t.id,rawId:t.id,response:{attestationObject:Gr(new Uint8Array(t.response.attestationObject)),clientDataJSON:Gr(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(s=i.authenticatorAttachment)!==null&&s!==void 0?s:void 0}}function Ob(t){var s;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t,n=t.getClientExtensionResults(),l=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Gr(new Uint8Array(l.authenticatorData)),clientDataJSON:Gr(new Uint8Array(l.clientDataJSON)),signature:Gr(new Uint8Array(l.signature)),userHandle:l.userHandle?Gr(new Uint8Array(l.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(s=i.authenticatorAttachment)!==null&&s!==void 0?s:void 0}}function ry(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Zc(){var t,s;return!!(Ot()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((s=navigator?.credentials)===null||s===void 0?void 0:s.get)=="function")}async function iy(t){try{const s=await navigator.credentials.create(t);return s?s instanceof PublicKeyCredential?{data:s,error:null}:{data:null,error:new Xc("Browser returned unexpected credential type",s)}:{data:null,error:new Xc("Empty credential response",s)}}catch(s){return{data:null,error:mC({error:s,options:t})}}}async function ny(t){try{const s=await navigator.credentials.get(t);return s?s instanceof PublicKeyCredential?{data:s,error:null}:{data:null,error:new Xc("Browser returned unexpected credential type",s)}:{data:null,error:new Xc("Empty credential response",s)}}catch(s){return{data:null,error:xC({error:s,options:t})}}}const pC={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},gC={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function ed(...t){const s=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),i=l=>l instanceof ArrayBuffer||ArrayBuffer.isView(l),n={};for(const l of t)if(l)for(const d in l){const u=l[d];if(u!==void 0)if(Array.isArray(u))n[d]=u;else if(i(u))n[d]=u;else if(s(u)){const m=n[d];s(m)?n[d]=ed(m,u):n[d]=ed(u)}else n[d]=u}return n}function bC(t,s){return ed(pC,t,s||{})}function vC(t,s){return ed(gC,t,s||{})}class yC{constructor(s){this.client=s,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(s){return this.client.mfa.enroll(Object.assign(Object.assign({},s),{factorType:"webauthn"}))}async _challenge({factorId:s,webauthn:i,friendlyName:n,signal:l},d){var u;try{const{data:m,error:x}=await this.client.mfa.challenge({factorId:s,webauthn:i});if(!m)return{data:null,error:x};const p=l??Gm.createNewAbortSignal();if(m.webauthn.type==="create"){const{user:g}=m.webauthn.credential_options.publicKey;if(!g.name){const v=n;if(v)g.name=`${g.id}:${v}`;else{const N=(await this.client.getUser()).data.user,k=((u=N?.user_metadata)===null||u===void 0?void 0:u.name)||N?.email||N?.id||"User";g.name=`${g.id}:${k}`}}g.displayName||(g.displayName=g.name)}switch(m.webauthn.type){case"create":{const g=bC(m.webauthn.credential_options.publicKey,d?.create),{data:v,error:j}=await iy({publicKey:g,signal:p});return v?{data:{factorId:s,challengeId:m.id,webauthn:{type:m.webauthn.type,credential_response:v}},error:null}:{data:null,error:j}}case"request":{const g=vC(m.webauthn.credential_options.publicKey,d?.request),{data:v,error:j}=await ny(Object.assign(Object.assign({},m.webauthn.credential_options),{publicKey:g,signal:p}));return v?{data:{factorId:s,challengeId:m.id,webauthn:{type:m.webauthn.type,credential_response:v}},error:null}:{data:null,error:j}}}}catch(m){return ae(m)?{data:null,error:m}:{data:null,error:new Ma("Unexpected error in challenge",m)}}}async _verify({challengeId:s,factorId:i,webauthn:n}){return this.client.mfa.verify({factorId:i,challengeId:s,webauthn:n})}async _authenticate({factorId:s,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},d){if(!i)return{data:null,error:new Oo("rpId is required for WebAuthn authentication")};
38try{if(!Zc())return{data:null,error:new Ma("Browser does not support WebAuthn",null)};const{data:u,error:m}=await this.challenge({factorId:s,webauthn:{rpId:i,rpOrigins:n},signal:l},{request:d});if(!u)return{data:null,error:m};const{webauthn:x}=u;return this._verify({factorId:s,challengeId:u.challengeId,webauthn:{type:x.type,rpId:i,rpOrigins:n,credential_response:x.credential_response}})}catch(u){return ae(u)?{data:null,error:u}:{data:null,error:new Ma("Unexpected error in authenticate",u)}}}async _register({friendlyName:s,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},d){if(!i)return{data:null,error:new Oo("rpId is required for WebAuthn registration")};try{if(!Zc())return{data:null,error:new Ma("Browser does not support WebAuthn",null)};const{data:u,error:m}=await this._enroll({friendlyName:s});if(!u)return await this.client.mfa.listFactors().then(g=>{var v;return(v=g.data)===null||v===void 0?void 0:v.all.find(j=>j.factor_type==="webauthn"&&j.friendly_name===s&&j.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:m};const{data:x,error:p}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:i,rpOrigins:n},signal:l},{create:d});return x?this._verify({factorId:u.id,challengeId:x.challengeId,webauthn:{rpId:i,rpOrigins:n,type:x.webauthn.type,credential_response:x.webauthn.credential_response}}):{data:null,error:p}}catch(u){return ae(u)?{data:null,error:u}:{data:null,error:new Ma("Unexpected error in register",u)}}}}cC();const jC={url:v6,storageKey:y6,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:j6,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Hi={};class zo{get jwks(){var s,i;return(i=(s=Hi[this.storageKey])===null||s===void 0?void 0:s.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(s){Hi[this.storageKey]=Object.assign(Object.assign({},Hi[this.storageKey]),{jwks:s})}get jwks_cached_at(){var s,i;return(i=(s=Hi[this.storageKey])===null||s===void 0?void 0:s.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(s){Hi[this.storageKey]=Object.assign(Object.assign({},Hi[this.storageKey]),{cachedAt:s})}constructor(s){var i,n,l;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const d=Object.assign(Object.assign({},jC),s);if(this.storageKey=d.storageKey,this.instanceID=(i=zo.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,zo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!d.debug,typeof d.debug=="function"&&(this.logger=d.debug),this.instanceID>0&&Ot()){const u=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(u),this.logDebugMessages&&console.trace(u)}if(this.persistSession=d.persistSession,this.autoRefreshToken=d.autoRefreshToken,this.experimental=(n=d.experimental)!==null&&n!==void 0?n:{},this.admin=new oC({url:d.url,headers:d.headers,fetch:d.fetch,experimental:this.experimental}),this.url=d.url,this.headers=d.headers,this.fetch=ty(d.fetch),this.detectSessionInUrl=d.detectSessionInUrl,this.flowType=d.flowType,this.hasCustomAuthorizationHeader=d.hasCustomAuthorizationHeader,this.throwOnError=d.throwOnError,this.lockAcquireTimeout=d.lockAcquireTimeout,d.lock!=null&&(this.lock=d.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new yC(this)}
38,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(d.storage?this.storage=d.storage:ey()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Eb(this.memoryStorage)),d.userStorage&&(this.userStorage=d.userStorage)):(this.memoryStorage={},this.storage=Eb(this.memoryStorage)),Ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(u){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",u)}(l=this.broadcastChannel)===null||l===void 0||l.addEventListener("message",async u=>{this._debug("received broadcast notification from other tab or client",u),(u.data.event==="TOKEN_REFRESHED"||u.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(u.data.event,u.data.session,!1)}catch(m){this._debug("#broadcastChannel","error",m)}})}d.skipAutoInitialize||this.initialize().catch(u=>{this._debug("#initialize()","error",u)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(s){if(this.throwOnError&&s&&s.error)throw s.error;return s}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Q2}) ${new Date().toISOString()}`}_debug(...s){return this.logDebugMessages&&this.logger(this._logPrefix(),...s),this}async initialize(){var s;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const i=await this.initializePromise,n=(s=this._pendingInitNotifications)!==null&&s!==void 0?s:[];this._pendingInitNotifications=null;for(const l of n)await this._notifyAllSubscribers(l.event,l.session,l.broadcast);return i}async _initialize(){var s;try{let i={},n="none";if(Ot()&&(i=wb(window.location.href),this._isImplicitGrantCallback(i)?n="implicit":await this._isPKCECallback(i)&&(n="pkce")),Ot()&&this.detectSessionInUrl&&n!=="none"){const{data:l,error:d}=await this._getSessionFromURL(i,n);if(d){if(this._debug("#_initialize()","error detecting session from URL",d),k6(d)){const x=(s=d.details)===null||s===void 0?void 0:s.code;if(x==="identity_already_exists"||x==="identity_not_found"||x==="single_identity_not_deletable")return{error:d}}return{error:d}}const{session:u,redirectType:m}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",m),await this._saveSession(u),setTimeout(async()=>{m==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return ae(i)?this._returnResult({error:i}):this._returnResult({error:new Ma("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(s){var i,n,l;
38try{const d=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(i=s?.options)===null||i===void 0?void 0:i.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(l=s?.options)===null||l===void 0?void 0:l.captchaToken}},xform:Sa}),{data:u,error:m}=d;if(m||!u)return this._returnResult({data:{user:null,session:null},error:m});const x=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",x)),this._returnResult({data:{user:p,session:x},error:null})}catch(d){if(ae(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async signUp(s){var i,n,l;let d=null;try{let u;if("email"in s){const{email:v,password:j,options:N}=s;let k=null,S=null;this.flowType==="pkce"&&([k,S,d]=await this._getCodeChallengeAndMethod()),u=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(N?.emailRedirectTo,d),body:{email:v,password:j,data:(i=N?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:N?.captchaToken},code_challenge:k,code_challenge_method:S},xform:Sa})}else if("phone"in s){const{phone:v,password:j,options:N}=s;u=await le(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:v,password:j,data:(n=N?.data)!==null&&n!==void 0?n:{},channel:(l=N?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:N?.captchaToken}},xform:Sa})}else throw new vc("You must provide either an email or phone number and a password");const{data:m,error:x}=u;if(x||!m)return await Ra(this.storage,this.storageKey,d),this._returnResult({data:{user:null,session:null},error:x});const p=m.session,g=m.user;return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(u){if(await Ra(this.storage,this.storageKey,d),ae(u))return this._returnResult({data:{user:null,session:null},error:u});throw u}}async signInWithPassword(s){try{let i;if("email"in s){const{email:d,password:u,options:m}=s;i=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:d,password:u,gotrue_meta_security:{captcha_token:m?.captchaToken}},xform:kb})}else if("phone"in s){const{phone:d,password:u,options:m}=s;i=await le(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:d,password:u,gotrue_meta_security:{captcha_token:m?.captchaToken}},xform:kb})}else throw new vc("You must provide either an email or phone number and a password");const{data:n,error:l}=i;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!n||!n.session||!n.user){const d=new Ii;return this._returnResult({data:{user:null,session:null},error:d})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:l})}catch(i){if(ae(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(s){var i,n,l,d;return await this._handleProviderSignIn(s.provider,{redirectTo:(i=s.options)===null||i===void 0?void 0:i.redirectTo,scopes:(n=s.options)===null||n===void 0?void 0:n.scopes,queryParams:(l=s.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(d=s.options)===null||d===void 0?void 0:d.skipBrowserRedirect})}async exchangeCodeForSession(s,i){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(s,i)):this._exchangeCodeForSession(s,i)}async signInWithWeb3(s){const{chain:i}=s;switch(i){case"ethereum":return await this.signInWithEthereum(s);case"solana":return await this.signInWithSolana(s);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(s){var i,n,l,d,u,m,x,p,g,v,j;let N,k;if("message"in s)N=s.message,k=s.signature;else{const{chain:S,wallet:C,statement:T,options:w}=s;let _;if(Ot())if(typeof C=="object")_=C;else{const K=window;if("ethereum"in K&&typeof K.ethereum=="object"&&"request"in K.ethereum&&typeof K.ethereum.request=="function")_=K.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof C!="object"||!w?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=C}const E=new URL((i=w?.url)!==null&&i!==void 0?i:window.location.href),O=await _.request({method:"eth_requestAccounts"}).then(K=>K).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!O||O.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const $=sy(O[0]);let z=(n=w?.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!z){const K=await _.request({method:"eth_chainId"});z=dC(K)}const Q={domain:E.host,address:$,statement:T,uri:E.href,version:"1",chainId:z,nonce:(l=w?.signInWithEthereum)===null||l===void 0?void 0:l.nonce,issuedAt:(u=(d=w?.signInWithEthereum)===null||d===void 0?void 0:d.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(m=w?.signInWithEthereum)===null||m===void 0?void 0:m.expirationTime,notBefore:(x=w?.signInWithEthereum)===null||x===void 0?void 0:x.notBefore,requestId:(p=w?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(g=w?.signInWithEthereum)===null||g===void 0?void 0:g.resources};N=hC(Q),k=await _.request({method:"personal_sign",params:[uC(N),$]})}try{const{data:S,error:C}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:N,signature:k},!((v=s.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(j=s.options)===null||j===void 0?void 0:j.captchaToken}}:null),xform:Sa});if(C)throw C;if(!S||!S.session||!S.user){const T=new Ii;return this._returnResult({data:{user:null,session:null},error:T})}return S.session&&(await this._saveSession(S.session),await this._notifyAllSubscribers("SIGNED_IN",S.session)),this._returnResult({data:Object.assign({},S),error:C})}catch(S){if(ae(S))return this._returnResult({data:{user:null,session:null},error:S});throw S}}async signInWithSolana(s){var i,n,l,d,u,m,x,p,g,v,j,N;let k,S;if("message"in s)k=s.message,S=s.signature;else{const{chain:C,wallet:T,statement:w,options:_}=s;let E;if(Ot())if(typeof T=="object")E=T;else{const $=window;if("solana"in $&&typeof $.solana=="object"&&("signIn"in $.solana&&typeof $.solana.signIn=="function"||"signMessage"in $.solana&&typeof $.solana.signMessage=="function"))E=$.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof T!="object"||!_?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");E=T}
38const O=new URL((i=_?.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in E&&E.signIn){const $=await E.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},_?.signInWithSolana),{version:"1",domain:O.host,uri:O.href}),w?{statement:w}:null));let z;if(Array.isArray($)&&$[0]&&typeof $[0]=="object")z=$[0];else if($&&typeof $=="object"&&"signedMessage"in $&&"signature"in $)z=$;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in z&&"signature"in z&&(typeof z.signedMessage=="string"||z.signedMessage instanceof Uint8Array)&&z.signature instanceof Uint8Array)k=typeof z.signedMessage=="string"?z.signedMessage:new TextDecoder().decode(z.signedMessage),S=z.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in E)||typeof E.signMessage!="function"||!("publicKey"in E)||typeof E!="object"||!E.publicKey||!("toBase58"in E.publicKey)||typeof E.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");k=[`${O.host} wants you to sign in with your Solana account:`,E.publicKey.toBase58(),...w?["",w,""]:[""],"Version: 1",`URI: ${O.href}`,`Issued At: ${(l=(n=_?.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((d=_?.signInWithSolana)===null||d===void 0)&&d.notBefore?[`Not Before: ${_.signInWithSolana.notBefore}`]:[],...!((u=_?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${_.signInWithSolana.expirationTime}`]:[],...!((m=_?.signInWithSolana)===null||m===void 0)&&m.chainId?[`Chain ID: ${_.signInWithSolana.chainId}`]:[],...!((x=_?.signInWithSolana)===null||x===void 0)&&x.nonce?[`Nonce: ${_.signInWithSolana.nonce}`]:[],...!((p=_?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${_.signInWithSolana.requestId}`]:[],...!((v=(g=_?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||v===void 0)&&v.length?["Resources",..._.signInWithSolana.resources.map(z=>`- ${z}`)]:[]].join(` 39`);const $=await E.signMessage(new TextEncoder().encode(k),"utf8");if(!$||!($ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");S=$}}try{const{data:C,error:T}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:k,signature:Gr(S)},!((j=s.options)===null||j===void 0)&&j.captchaToken?{gotrue_meta_security:{captcha_token:(N=s.options)===null||N===void 0?void 0:N.captchaToken}}:null),xform:Sa});if(T)throw T;if(!C||!C.session||!C.user){const w=new Ii;return this._returnResult({data:{user:null,session:null},error:w})}return C.session&&(await this._saveSession(C.session),await this._notifyAllSubscribers("SIGNED_IN",C.session)),this._returnResult({data:Object.assign({},C),error:T})}catch(C){if(ae(C))return this._returnResult({data:{user:null,session:null},error:C});throw C}}async _exchangeCodeForSession(s,i){const n=i?.flowId!=null,l=n?Pc(i?.flowId):Ot()?Pc(wb(window.location.href)[Vr]):null;n&&!l&&this._debug("#_exchangeCodeForSession()","provided flowId is not a valid flow id",i?.flowId);const{verifier:d,flowId:u}=n&&!l?{verifier:null,flowId:null}:await V6(this.storage,this.storageKey,l),[m,x]=(d??"").split("/");try{if(!m&&this.flowType==="pkce")throw new C6;const{data:p,error:g}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:s,code_verifier:m},xform:Sa});if(await Ra(this.storage,this.storageKey,u),g)throw g;if(!p||!p.session||!p.user){const v=new Ii;return this._returnResult({data:{user:null,session:null,redirectType:null},error:v})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers(x==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p.session)),this._returnResult({data:Object.assign(Object.assign({},p),{redirectType:x??null}),error:g})}catch(p){if(await Ra(this.storage,this.storageKey,u),ae(p))return this._returnResult({data:{user:null,session:null,redirectType:null},error:p});throw p}}async signInWithIdToken(s){try{const{options:i,provider:n,token:l,access_token:d,nonce:u}=s,m=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:l,access_token:d,nonce:u,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:Sa}),{data:x,error:p}=m;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!x||!x.session||!x.user){const g=new Ii;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:x,error:p})}catch(i){if(ae(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(s){var i,n,l,d,u;let m=null;try{if("email"in s){const{email:x,options:p}=s;let g=null,v=null;this.flowType==="pkce"&&([g,v,m]=await this._getCodeChallengeAndMethod());const{error:j}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:x,data:(i=p?.data)!==null&&i!==void 0?i:{},create_user:(n=p?.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:g,code_challenge_method:v},redirectTo:this._maybeAppendFlowIdToRedirect(p?.emailRedirectTo,m)});return this._returnResult({data:{user:null,session:null},error:j})}if("phone"in s){const{phone:x,options:p}=s,{data:g,error:v}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:x,data:(l=p?.data)!==null&&l!==void 0?l:{},create_user:(d=p?.shouldCreateUser)!==null&&d!==void 0?d:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:g?.message_id},error:v})}throw new vc("You must provide either an email or phone number.")}
39catch(x){if(await Ra(this.storage,this.storageKey,m),ae(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async verifyOtp(s){var i,n;try{let l,d;"options"in s&&(l=(i=s.options)===null||i===void 0?void 0:i.redirectTo,d=(n=s.options)===null||n===void 0?void 0:n.captchaToken);const{data:u,error:m}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},s),{gotrue_meta_security:{captcha_token:d}}),redirectTo:l,xform:Sa});if(m)throw m;if(!u)throw new Error("An error occurred on token verification.");const x=u.session,p=u.user;return x?.access_token&&(await this._saveSession(x),await this._notifyAllSubscribers(s.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",x)),this._returnResult({data:{user:p,session:x},error:null})}catch(l){if(ae(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithSSO(s){var i,n,l,d;let u=null;try{let m=null,x=null;this.flowType==="pkce"&&([m,x,u]=await this._getCodeChallengeAndMethod());const p=await le(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in s?{provider_id:s.providerId}:null),"domain"in s?{domain:s.domain}:null),{redirect_to:this._maybeAppendFlowIdToRedirect((i=s.options)===null||i===void 0?void 0:i.redirectTo,u)}),!((n=s?.options)===null||n===void 0)&&n.captchaToken?{gotrue_meta_security:{captcha_token:s.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:m,code_challenge_method:x}),headers:this.headers,xform:rC});return!((l=p.data)===null||l===void 0)&&l.url&&Ot()&&!(!((d=s.options)===null||d===void 0)&&d.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(m){if(await Ra(this.storage,this.storageKey,u),ae(m))return this._returnResult({data:null,error:m});throw m}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async s=>{const{data:{session:i},error:n}=s;if(n)throw n;if(!i)throw new kt;const{error:l}=await le(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:l})})}catch(s){if(ae(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async resend(s){let i=null;try{const n=`${this.url}/resend`;if("email"in s){const{email:l,type:d,options:u}=s;let m=null,x=null;this.flowType==="pkce"&&([m,x,i]=await this._getCodeChallengeAndMethod());const{error:p}=await le(this.fetch,"POST",n,{headers:this.headers,body:{email:l,type:d,gotrue_meta_security:{captcha_token:u?.captchaToken},code_challenge:m,code_challenge_method:x},redirectTo:this._maybeAppendFlowIdToRedirect(u?.emailRedirectTo,i)});return p&&await Ra(this.storage,this.storageKey,i),this._returnResult({data:{user:null,session:null},error:p})}else if("phone"in s){const{phone:l,type:d,options:u}=s,{data:m,error:x}=await le(this.fetch,"POST",n,{headers:this.headers,body:{phone:l,type:d,gotrue_meta_security:{captcha_token:u?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:m?.message_id},error:x})}throw new vc("You must provide either an email or phone number and a type")}catch(n){if(await Ra(this.storage,this.storageKey,i),ae(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async s=>s)):await this._useSession(async s=>s)}async _acquireLock(s,i){this._debug("#_acquireLock","begin",s);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await n,await i()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,s,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=i();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(s){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await s(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let s=null;const i=await Mt(this.storage,this.storageKey);
39if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?s=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!s)return{data:{session:null},error:null};const n=s.expires_at?s.expires_at*1e3-Date.now()<Xh:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",s.expires_at),!n){if(this.userStorage){const u=await Mt(this.userStorage,this.storageKey+"-user");u?.user?s.user=u.user:s.user=Zh()}if(this.storage.isServer&&s.user&&!s.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};s.user=eC(s.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:s},error:null}}const{data:l,error:d}=await this._callRefreshToken(s.refresh_token);if(d){if(!!(s.expires_at&&s.expires_at*1e3>Date.now())){const m=await Mt(this.storage,this.storageKey);if(m&&m.refresh_token===s.refresh_token)return this._returnResult({data:{session:s},error:null})}return this._returnResult({data:{session:null},error:d})}return this._returnResult({data:{session:l},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(s){if(s)return await this._getUser(s);await this.initializePromise;let i;return this.lock!=null?i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):i=await this._getUser(),i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(s){try{return s?await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:s,xform:ur}):await this._useSession(async i=>{var n,l,d;const{data:u,error:m}=i;if(m)throw m;return!(!((n=u.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new kt}:await le(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(d=(l=u.session)===null||l===void 0?void 0:l.access_token)!==null&&d!==void 0?d:void 0,xform:ur})})}catch(i){if(ae(i))return bc(i)&&await this._removeSession(),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(s,i={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(s,i)):await this._updateUser(s,i)}async _updateUser(s,i={}){let n=null;try{return await this._useSession(async l=>{const{data:d,error:u}=l;if(u)throw u;if(!d.session)throw new kt;const m=d.session;let x=null,p=null;this.flowType==="pkce"&&s.email!=null&&([x,p,n]=await this._getCodeChallengeAndMethod());const{data:g,error:v}=await le(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(i?.emailRedirectTo,n),body:Object.assign(Object.assign({},s),{code_challenge:x,code_challenge_method:p}),jwt:m.access_token,xform:ur});if(v)throw v;return m.user=g.user,await this._saveSession(m),await this._notifyAllSubscribers("USER_UPDATED",m),this._returnResult({data:{user:m.user},error:null})})}catch(l){if(await Ra(this.storage,this.storageKey,n),ae(l))return this._returnResult({data:{user:null},error:l});throw l}}async setSession(s){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(s)):await this._setSession(s)}async _setSession(s){try{if(!s.access_token||!s.refresh_token)throw new kt;const i=Date.now()/1e3;let n=i,l=!0,d=null;const{payload:u}=Nc(s.access_token);if(u.exp&&(n=u.exp,l=n<=i),l){const{data:m,error:x}=await this._callRefreshToken(s.refresh_token);if(x)return this._returnResult({data:{user:null,session:null},error:x});if(!m)return{data:{user:null,session:null},error:null};d=m}else{const{data:m,error:x}=await this._getUser(s.access_token);if(x)return this._returnResult({data:{user:null,session:null},error:x});d={access_token:s.access_token,refresh_token:s.refresh_token,user:m.user,token_type:"bearer",expires_in:n-i,expires_at:n},await this._saveSession(d),await this._notifyAllSubscribers("SIGNED_IN",d)}return this._returnResult({data:{user:d.user,session:d},error:null})}catch(i){if(ae(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(s){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(s)):await this._refreshSession(s)}async _refreshSession(s){try{return await this._useSession(async i=>{var n;if(!s){const{data:u,error:m}=i;if(m)throw m;s=(n=u.session)!==null&&n!==void 0?n:void 0}if(!s?.refresh_token)throw new kt;const{data:l,error:d}=await this._callRefreshToken(s.refresh_token);return d?this._returnResult({data:{user:null,session:null},error:d}):l?this._returnResult({data:{user:l.user,session:l},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(i){if(ae(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(s,i){var n;try{if(!Ot())throw new yc("No browser detected.");
39if(s.error||s.error_description||s.error_code)throw new yc(s.error_description||"Error in URL with unspecified error_description",{error:s.error||"unspecified_error",code:s.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new gb("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new yc("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!s.code)throw new gb("No code detected.");const{data:_,error:E}=await this._exchangeCodeForSession(s.code,{flowId:s[Vr]});if(E)throw E;const O=new URL(window.location.href);return O.searchParams.delete("code"),O.searchParams.delete(Vr),window.history.replaceState(window.history.state,"",O.toString()),{data:{session:_.session,redirectType:(n=_.redirectType)!==null&&n!==void 0?n:null},error:null}}const{provider_token:l,provider_refresh_token:d,access_token:u,refresh_token:m,expires_in:x,expires_at:p,token_type:g}=s;if(!u||!x||!m||!g)throw new yc("No session defined in URL");const v=Math.round(Date.now()/1e3),j=parseInt(x);let N=v+j;p&&(N=parseInt(p));const k=N-v;k*1e3<=As&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${k}s, should have been closer to ${j}s`);const S=N-j;v-S>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",S,N,v):v-S<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",S,N,v);const{data:C,error:T}=await this._getUser(u);if(T)throw T;const w={provider_token:l,provider_refresh_token:d,access_token:u,expires_in:j,expires_at:N,refresh_token:m,token_type:g,user:C.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:w,redirectType:s.type},error:null})}catch(l){if(ae(l))return this._returnResult({data:{session:null,redirectType:null},error:l});throw l}}_isImplicitGrantCallback(s){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),s):!!(s.access_token||s.error||s.error_description||s.error_code)}async _isPKCECallback(s){if(!s.code)return!1;const i=Pc(s[Vr]);return i&&await Mt(this.storage,sn(this.storageKey,i))?!0:!!await Mt(this.storage,`${this.storageKey}-code-verifier`)}async signOut(s={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(s)):await this._signOut(s)}async _signOut({scope:s}={scope:"global"}){return await this._useSession(async i=>{var n;const l=async()=>{await this._removeSession()},{data:d,error:u}=i;if(u&&!bc(u))return this._returnResult({error:u});const m=(n=d.session)===null||n===void 0?void 0:n.access_token;if(m){const{error:x}=await this.admin.signOut(m,s);if(x&&!(pb(x)&&(x.status===404||x.status===401||x.status===403)||bc(x)))return s!=="others"&&await l(),this._returnResult({error:x})}return s!=="others"&&await l(),this._returnResult({error:null})})}onAuthStateChange(s){const i=D6(),n={id:i,callback:s,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,n),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)}):await this._emitInitialSession(i)))(),{data:{subscription:n}}}async _emitInitialSession(s){return await this._useSession(async i=>{var n,l;try{const{data:{session:d},error:u}=i;if(u)throw u;await((n=this.stateChangeEmitters.get(s))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",d)),this._debug("INITIAL_SESSION","callback id",s,"session",d)}catch(d){await((l=this.stateChangeEmitters.get(s))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",s,"error",d),bc(d)||jc(d)||pb(d)&&(d.code==="refresh_token_not_found"||d.code==="refresh_token_already_used"||d.code==="session_expired")?console.warn(d):console.error(d)}})}async resetPasswordForEmail(s,i={}){let n=null,l=null,d=null;this.flowType==="pkce"&&([n,l,d]=await this._getCodeChallengeAndMethod(!0));try{return await le(this.fetch,"POST",`${this.url}
39/recover`,{body:{email:s,code_challenge:n,code_challenge_method:l,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(i.redirectTo,d)})}catch(u){if(await Ra(this.storage,this.storageKey,d),ae(u))return this._returnResult({data:null,error:u});throw u}}async getUserIdentities(){var s;try{const{data:i,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(s=i.user.identities)!==null&&s!==void 0?s:[]},error:null})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(s){return"token"in s?this.linkIdentityIdToken(s):this.linkIdentityOAuth(s)}async linkIdentityOAuth(s){var i;let n=null;try{const{data:l,error:d}=await this._useSession(async u=>{var m,x,p,g,v;const{data:j,error:N}=u;if(N)throw N;const{url:k,flowId:S}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,s.provider,{redirectTo:(m=s.options)===null||m===void 0?void 0:m.redirectTo,scopes:(x=s.options)===null||x===void 0?void 0:x.scopes,queryParams:(p=s.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return n=S,await le(this.fetch,"GET",k,{headers:this.headers,jwt:(v=(g=j.session)===null||g===void 0?void 0:g.access_token)!==null&&v!==void 0?v:void 0})});if(d)throw d;return Ot()&&!(!((i=s.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(l?.url),this._returnResult({data:{provider:s.provider,url:l?.url,flowId:n},error:null})}catch(l){if(ae(l))return this._returnResult({data:{provider:s.provider,url:null,flowId:n},error:l});throw l}}async linkIdentityIdToken(s){return await this._useSession(async i=>{var n;try{const{error:l,data:{session:d}}=i;if(l)throw l;const{options:u,provider:m,token:x,access_token:p,nonce:g}=s,v=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=d?.access_token)!==null&&n!==void 0?n:void 0,body:{provider:m,id_token:x,access_token:p,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:Sa}),{data:j,error:N}=v;return N?this._returnResult({data:{user:null,session:null},error:N}):!j||!j.session||!j.user?this._returnResult({data:{user:null,session:null},error:new Ii}):(j.session&&(await this._saveSession(j.session),await this._notifyAllSubscribers("USER_UPDATED",j.session)),this._returnResult({data:j,error:N}))}catch(l){if(await Ra(this.storage,this.storageKey,null),ae(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}})}async unlinkIdentity(s){try{return await this._useSession(async i=>{var n,l;const{data:d,error:u}=i;if(u)throw u;return await le(this.fetch,"DELETE",`${this.url}/user/identities/${s.identity_id}`,{headers:this.headers,jwt:(l=(n=d.session)===null||n===void 0?void 0:n.access_token)!==null&&l!==void 0?l:void 0})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(s){const i="#_refreshAccessToken()";this._debug(i,"begin");try{const n=Date.now();return await B6(async l=>(l>0&&await P6(200*Math.pow(2,l-1)),this._debug(i,"refreshing attempt",l),await le(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:s},headers:this.headers,xform:Sa})),(l,d)=>{const u=200*Math.pow(2,l);return d&&jc(d)&&Date.now()+u-n<As})}catch(n){if(this._debug(i,"error",n),ae(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(i,"end")}}_isValidSession(s){return typeof s=="object"&&s!==null&&"access_token"in s&&"refresh_token"in s&&"expires_at"in s}async _handleProviderSignIn(s,i){const{url:n,flowId:l}=await this._getUrlForProvider(`${this.url}/authorize`,s,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",s,"options",i,"url",n),Ot()&&!i.skipBrowserRedirect&&window.location.assign(n),{data:{provider:s,url:n,flowId:l},error:null}}async _recoverAndRefresh(){var s,i;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const l=await Mt(this.storage,this.storageKey);if(l&&this.userStorage){let u=await Mt(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:l.user},await Ts(this.userStorage,this.storageKey+"-user",u)),l.user=(s=u?.user)!==null&&s!==void 0?s:Zh()}else if(l&&!l.user&&!l.user){const u=await Mt(this.storage,this.storageKey+"-user");u&&u?.user?(l.user=u.user,await Jt(this.storage,this.storageKey+"-user"),await Ts(this.storage,this.storageKey,l)):l.user=Zh()}if(this._debug(n,"session from storage",l),!this._isValidSession(l)){this._debug(n,"session is not val
39id"),l!==null&&await this._removeSession();return}const d=((i=l.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<Xh;if(this._debug(n,`session has${d?"":" not"} expired with margin of ${Xh}s`),d){if(this.autoRefreshToken&&l.refresh_token){const{error:u}=await this._callRefreshToken(l.refresh_token);u&&(E6(u)?this._debug(n,"refresh discarded by commit guard",u):this._debug(n,"refresh failed",u))}}else if(l.user&&l.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:m}=await this._getUser(l.access_token);!m&&u?.user?(l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(n,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",l)}catch(l){this._debug(n,"error",l),jc(l)?console.warn(l):console.error(l);return}finally{this._debug(n,"end")}}async _callRefreshToken(s){var i,n;if(!s)throw new kt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===s&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const l="#_callRefreshToken()";this._debug(l,"begin");try{this.refreshingDeferred=new fd;const d=await Mt(this.storage,this.storageKey),{data:u,error:m}=await this._refreshAccessToken(s);if(m)throw m;if(!u.session)throw new kt;const x=await Mt(this.storage,this.storageKey);if(d!==null&&(x===null||x.refresh_token!==d.refresh_token)){this._debug(l,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:x?"replaced":"cleared"});const j={data:null,error:new bb};return this.refreshingDeferred.resolve(j),j}const g=this._sessionRemovalEpoch;if(await this._saveSession(u.session),this._sessionRemovalEpoch!==g){this._debug(l,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await Jt(this.storage,this.storageKey),this.userStorage&&await Jt(this.userStorage,this.storageKey+"-user");const j={data:null,error:new bb};return this.refreshingDeferred.resolve(j),j}await this._notifyAllSubscribers("TOKEN_REFRESHED",u.session);const v={data:u.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(v),v}catch(d){if(this._debug(l,"error",d),ae(d)){const u={data:null,error:d};if(!jc(d)){const m=await Mt(this.storage,this.storageKey);!!(m?.expires_at&&m.expires_at*1e3>Date.now())?this._debug(l,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:s,result:u,expiresAt:Date.now()+b6},(i=this.refreshingDeferred)===null||i===void 0||i.resolve(u),u}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(d),d}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(s,i,n=!0){if(this._pendingInitNotifications!==null&&n){this._pendingInitNotifications.push({event:s,session:i,broadcast:n});return}const l=`#_notifyAllSubscribers(${s})`;this._debug(l,"begin",i,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:s,session:i});const d=[],u=Array.from(this.stateChangeEmitters.values()).map(async m=>{try{await m.callback(s,i)}catch(x){d.push(x)}});if(await Promise.all(u),d.length>0){for(let m=0;m<d.length;m+=1)console.error(d[m]);throw d[0]}}finally{this._debug(l,"end")}}async _saveSession(s){this._debug("#_saveSession()",s),this.suppressGetSessionWarning=!0;const i=Object.assign({},s),n=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&i.user&&await Ts(this.userStorage,this.storageKey+"-user",{user:i.user});const l=Object.assign({},i);delete l.user;const d=_b(l);await Ts(this.storage,this.storageKey,d)}else{const l=_b(i);await Ts(this.storage,this.storageKey,l)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Jt(this.storage,this.storageKey),await G6(this.storage,this.storageKey),await Jt(this.storage,this.storageKey+"-user"),this.userStorage&&await Jt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const s=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{s&&Ot()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",s)}
39catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const s=setInterval(()=>this._autoRefreshTokenTick(),As);this.autoRefreshTicker=s,s&&typeof s=="object"&&typeof s.unref=="function"?s.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(s);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const s=this.autoRefreshTicker;this.autoRefreshTicker=null,s&&clearInterval(s);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var s;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(s=this.broadcastChannel)===null||s===void 0||s.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const s=Date.now();try{return await this._useSession(async i=>{const{data:{session:n}}=i;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((n.expires_at*1e3-s)/As);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${As}ms, refresh threshold is ${mo} ticks`),l<=mo&&await this._callRefreshToken(n.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(s){if(s instanceof lC)this._debug("auto refresh token tick lock not available");else throw s}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const s=Date.now();try{await this._useSession(async i=>{const{data:{session:n}}=i;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((n.expires_at*1e3-s)/As);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${As}ms, refresh threshold is ${mo} ticks`),l<=mo&&await this._callRefreshToken(n.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Ot()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(s){this._debug("#visibilityChangedCallback","error",s)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(s){console.error("_handleVisibilityChange",s)}}async _onVisibilityChanged(s){const i=`#_onVisibilityChanged(${s})`;if(this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!s)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(i,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(s,i,n){let l=n?.redirectTo,d=null,u=null,m=null;this.flowType==="pkce"&&([d,u,m]=await this._getCodeChallengeAndMethod(),l=this._maybeAppendFlowIdToRedirect(l,m));const x=[`provider=${encodeURIComponent(i)}`];if(l&&x.push(`redirect_to=${encodeURIComponent(l)}`),n?.scopes&&x.push(`scopes=${encodeURIComponent(n.scopes)}`),d!=null&&u!=null){const p=new URLSearchParams({code_challenge:`${encodeURIComponent(d)}`,code_challenge_method:`${encodeURIComponent(u)}`});x.push(p.toString())}if(n?.queryParams){const p=new URLSearchParams(n.queryParams);x.push(p.toString())}return n?.skipBrowserRedirect&&x.push(`skip_http_redirect=${n.skipBrowserRedirect}`),{url:`${s}?${x.join("&")}`,flowId:m}}_maybeAppendFlowIdToRedirect(s,i){return!s||!i||!this.experimental.appendPkceFlowIdToRedirects?s??void 0:W6(s,i)}async _getCodeChallengeAndMethod(s=!1){return K6(this.storage,this.storageKey,s,i=>this._debug("#_getCodeChallengeAndMethod()","evicted oldest pending PKCE verifier slot",i))}async _unenroll(s){try{return await this._useSession(async i=>{var n;const{data:l,error:d}=i;return d?this._returnResult({data:null,error:d}
39):await le(this.fetch,"DELETE",`${this.url}/factors/${s.factorId}`,{headers:this.headers,jwt:(n=l?.session)===null||n===void 0?void 0:n.access_token})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(s){try{return await this._useSession(async i=>{var n,l;const{data:d,error:u}=i;if(u)return this._returnResult({data:null,error:u});const m=Object.assign({friendly_name:s.friendlyName,factor_type:s.factorType},s.factorType==="phone"?{phone:s.phone}:s.factorType==="totp"?{issuer:s.issuer}:{}),{data:x,error:p}=await le(this.fetch,"POST",`${this.url}/factors`,{body:m,headers:this.headers,jwt:(n=d?.session)===null||n===void 0?void 0:n.access_token});return p?this._returnResult({data:null,error:p}):(s.factorType==="totp"&&x.type==="totp"&&(!((l=x?.totp)===null||l===void 0)&&l.qr_code)&&(x.totp.qr_code=`data:image/svg+xml;utf-8,${x.totp.qr_code}`),this._returnResult({data:x,error:null}))})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _verify(s){const i=async()=>{try{return await this._useSession(async n=>{var l;const{data:d,error:u}=n;if(u)return this._returnResult({data:null,error:u});const m=Object.assign({challenge_id:s.challengeId},"webauthn"in s?{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_response:s.webauthn.type==="create"?Lb(s.webauthn.credential_response):Ob(s.webauthn.credential_response)})}:{code:s.code}),{data:x,error:p}=await le(this.fetch,"POST",`${this.url}/factors/${s.factorId}/verify`,{body:m,headers:this.headers,jwt:(l=d?.session)===null||l===void 0?void 0:l.access_token});return p?this._returnResult({data:null,error:p}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+x.expires_in},x)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",x),this._returnResult({data:x,error:p}))})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,i):i()}async _challenge(s){const i=async()=>{try{return await this._useSession(async n=>{var l;const{data:d,error:u}=n;if(u)return this._returnResult({data:null,error:u});const m=await le(this.fetch,"POST",`${this.url}/factors/${s.factorId}/challenge`,{body:s,headers:this.headers,jwt:(l=d?.session)===null||l===void 0?void 0:l.access_token});if(m.error)return m;const{data:x}=m;if(x.type!=="webauthn")return{data:x,error:null};switch(x.webauthn.type){case"create":return{data:Object.assign(Object.assign({},x),{webauthn:Object.assign(Object.assign({},x.webauthn),{credential_options:Object.assign(Object.assign({},x.webauthn.credential_options),{publicKey:Ab(x.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},x),{webauthn:Object.assign(Object.assign({},x.webauthn),{credential_options:Object.assign(Object.assign({},x.webauthn.credential_options),{publicKey:Tb(x.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,i):i()}async _challengeAndVerify(s){const{data:i,error:n}=await this._challenge({factorId:s.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:s.factorId,challengeId:i.id,code:s.code})}async _listFactors(){var s;const{data:{user:i},error:n}=await this.getUser();if(n)return{data:null,error:n};const l={all:[],phone:[],totp:[],webauthn:[]};for(const d of(s=i?.factors)!==null&&s!==void 0?s:[])l.all.push(d),d.status==="verified"&&l[d.factor_type].push(d);return{data:l,error:null}}async _getAuthenticatorAssuranceLevel(s){var i,n,l,d;if(s)try{const{payload:N}=Nc(s);let k=null;N.aal&&(k=N.aal);let S=k;const{data:{user:C},error:T}=await this.getUser(s);if(T)return this._returnResult({data:null,error:T});((n=(i=C?.factors)===null||i===void 0?void 0:i.filter(E=>E.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(S="aal2");const _=N.amr||[];return{data:{currentLevel:k,nextLevel:S,currentAuthenticationMethods:_},error:null}}catch(N){if(ae(N))return this._returnResult({data:null,error:N});throw N}const{data:{session:u},error:m}
39=await this.getSession();if(m)return this._returnResult({data:null,error:m});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:x}=Nc(u.access_token);let p=null;x.aal&&(p=x.aal);let g=p;((d=(l=u.user.factors)===null||l===void 0?void 0:l.filter(N=>N.status==="verified"))!==null&&d!==void 0?d:[]).length>0&&(g="aal2");const j=x.amr||[];return{data:{currentLevel:p,nextLevel:g,currentAuthenticationMethods:j},error:null}}async _getAuthorizationDetails(s){try{return await this._useSession(async i=>{const{data:{session:n},error:l}=i;return l?this._returnResult({data:null,error:l}):n?await le(this.fetch,"GET",`${this.url}/oauth/authorizations/${s}`,{headers:this.headers,jwt:n.access_token,xform:d=>({data:d,error:null})}):this._returnResult({data:null,error:new kt})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(s,i){try{return await this._useSession(async n=>{const{data:{session:l},error:d}=n;if(d)return this._returnResult({data:null,error:d});if(!l)return this._returnResult({data:null,error:new kt});const u=await le(this.fetch,"POST",`${this.url}/oauth/authorizations/${s}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"approve"},xform:m=>({data:m,error:null})});return u.data&&u.data.redirect_url&&Ot()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(s,i){try{return await this._useSession(async n=>{const{data:{session:l},error:d}=n;if(d)return this._returnResult({data:null,error:d});if(!l)return this._returnResult({data:null,error:new kt});const u=await le(this.fetch,"POST",`${this.url}/oauth/authorizations/${s}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"deny"},xform:m=>({data:m,error:null})});return u.data&&u.data.redirect_url&&Ot()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async s=>{const{data:{session:i},error:n}=s;return n?this._returnResult({data:null,error:n}):i?await le(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new kt})})}catch(s){if(ae(s))return this._returnResult({data:null,error:s});throw s}}async _revokeOAuthGrant(s){try{return await this._useSession(async i=>{const{data:{session:n},error:l}=i;return l?this._returnResult({data:null,error:l}):n?(await le(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:s.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new kt})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(s,i={keys:[]}){let n=i.keys.find(m=>m.kid===s);if(n)return n;const l=Date.now();if(n=this.jwks.keys.find(m=>m.kid===s),n&&this.jwks_cached_at+_6>l)return n;const{data:d,error:u}=await le(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!d.keys||d.keys.length===0||(this.jwks=d,this.jwks_cached_at=l,n=d.keys.find(m=>m.kid===s),!n)?null:n}async getClaims(s,i={}){try{let n=s;if(!n){const{data:N,error:k}
39=await this.getSession();if(k||!N.session)return this._returnResult({data:null,error:k});n=N.session.access_token}const{header:l,payload:d,signature:u,raw:{header:m,payload:x}}=Nc(n);if(!i?.allowExpired)try{Q6(d.exp)}catch(N){throw new Yc(N instanceof Error?N.message:"JWT validation failed")}const p=!l.alg||l.alg.startsWith("HS")||!l.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(l.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!p){const{error:N}=await this.getUser(n);if(N)throw N;return{data:{claims:d,header:l,signature:u},error:null}}const g=X6(l.alg),v=await crypto.subtle.importKey("jwk",p,g,!0,["verify"]);if(!await crypto.subtle.verify(g,v,u,R6(`${m}.${x}`)))throw new Yc("Invalid JWT signature");return{data:{claims:d,header:l,signature:u},error:null}}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async signInWithPasskey(s){var i,n,l;za(this.experimental);try{if(!Zc())return this._returnResult({data:null,error:new Ma("Browser does not support WebAuthn",null)});const{data:d,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(i=s?.options)===null||i===void 0?void 0:i.captchaToken}});if(u||!d)return this._returnResult({data:null,error:u});const m=Tb(d.options),x=(l=(n=s?.options)===null||n===void 0?void 0:n.signal)!==null&&l!==void 0?l:Gm.createNewAbortSignal(),{data:p,error:g}=await ny({publicKey:m,signal:x});if(g||!p)return this._returnResult({data:null,error:g??new Ma("WebAuthn ceremony failed",null)});const v=Ob(p);return this._verifyPasskeyAuthentication({challengeId:d.challenge_id,credential:v})}catch(d){if(ae(d))return this._returnResult({data:null,error:d});throw d}}async registerPasskey(s){var i,n;za(this.experimental);try{if(!Zc())return this._returnResult({data:null,error:new Ma("Browser does not support WebAuthn",null)});const{data:l,error:d}=await this._startPasskeyRegistration();if(d||!l)return this._returnResult({data:null,error:d});const u=Ab(l.options),m=(n=(i=s?.options)===null||i===void 0?void 0:i.signal)!==null&&n!==void 0?n:Gm.createNewAbortSignal(),{data:x,error:p}=await iy({publicKey:u,signal:m});if(p||!x)return this._returnResult({data:null,error:p??new Ma("WebAuthn ceremony failed",null)});const g=Lb(x);return this._verifyPasskeyRegistration({challengeId:l.challenge_id,credential:g})}catch(l){if(ae(l))return this._returnResult({data:null,error:l});throw l}}async _startPasskeyRegistration(){za(this.experimental);try{return await this._useSession(async s=>{const{data:{session:i},error:n}=s;if(n)return this._returnResult({data:null,error:n});if(!i)return this._returnResult({data:null,error:new kt});const{data:l,error:d}=await le(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:i.access_token,body:{}});return d?this._returnResult({data:null,error:d}):this._returnResult({data:l,error:null})})}catch(s){if(ae(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyRegistration(s){za(this.experimental);try{return await this._useSession(async i=>{const{data:{session:n},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!n)return this._returnResult({data:null,error:new kt});const{data:d,error:u}=await le(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:n.access_token,body:{challenge_id:s.challengeId,credential:s.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:d,error:null})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyAuthentication(s){var i;za(this.experimental);try{const{data:n,error:l}=await le(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(i=s?.options)===null||i===void 0?void 0:i.captchaToken}}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:n,error:null})}catch(n){if(ae(n))return this._returnResult({data:null,error:n});throw n}}async _verifyPasskeyAuthentication(s){za(this.experimental);try{const{data:i,error:n}=await le(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:s.challengeId,credential:s.credential},xform:Sa});return n?this._returnResult({data:null,error:n}):(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:i,error:null}))}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _listPasskeys(){za(this.experimental);try{return await this._useSession(async s=>{const{data:{session:i},error:n}=s;if(n)return this._returnResult({data:null,error:n});if(!i)return this._returnResult({data:null,error:new kt});const{data:l,error:d}=await le(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:i.access_token,xform:u=>({data:u,error:null})});return d?this._returnResult({data:null,error:d}):this._returnResult({data:l,error:null})})}catch(s){if(ae(s))return this._returnResult({data:null,error:s});throw s}}async _updatePasskey(s){za(this.experimental);try{return await this._useSession(async i=>{const{data:{session:n},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!n)return this._returnResult({data:null,error:new kt});const{data:d,error:u}=await le(this.fetch,"PATCH",`${this.url}/passkeys/${s.passkeyId}`,{headers:this.headers,jwt:n.access_token,body:{friendly_name:s.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:d,error:null})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}async _deletePasskey(s){za(this.experimental);try{return await this._useSession(async i=>{const{data:{session:n},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!n)return this._returnResult({data:null,error:new kt});const{error:d}
39=await le(this.fetch,"DELETE",`${this.url}/passkeys/${s.passkeyId}`,{headers:this.headers,jwt:n.access_token,noResolveJson:!0});return d?this._returnResult({data:null,error:d}):this._returnResult({data:null,error:null})})}catch(i){if(ae(i))return this._returnResult({data:null,error:i});throw i}}}zo.nextInstanceID={};const NC=zo,wC="2.112.0";let xo="",td;if(typeof Deno<"u"){var tm;xo="deno",td=(tm=Deno.version)===null||tm===void 0?void 0:tm.deno}else if(typeof document<"u")xo="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")xo="react-native";else{var am;xo="node";const t=globalThis.process;td=t==null||(am=t.version)===null||am===void 0?void 0:am.replace(/^v/,"")}const oy=[`runtime=${xo}`];td&&oy.push(`runtime-version=${td}`);const _C={"X-Client-Info":`supabase-js/${wC}; ${oy.join("; ")}`},SC={headers:_C},kC={schema:"public"},CC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},EC={},AC={enabled:!1,respectSamplingDecision:!0};function TC(t){if(!t||typeof t!="string")return null;const s=t.split("-");if(s.length!==4)return null;const[i,n,l,d]=s;if(i.length!==2||n.length!==32||l.length!==16||d.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(i)||!u.test(n)||!u.test(l)||!u.test(d)||n==="00000000000000000000000000000000"||l==="0000000000000000"?null:{version:i,traceId:n,parentId:l,traceFlags:d,isSampled:(parseInt(d,16)&1)===1}}function LC(t,s){if(!t||!s||s.length===0)return!1;let i;if(t instanceof URL)i=t;else try{i=new URL(t)}catch{return!1}for(const n of s)try{if(typeof n=="string"){if(OC(i.hostname,n))return!0}else if(n instanceof RegExp){if(n.test(i.hostname))return!0}else if(typeof n=="function"&&n(i))return!0}catch{continue}return!1}function OC(t,s){if(s===t)return!0;if(s.startsWith("*.")){const i=s.slice(2);if(t.endsWith(i)&&(t===i||t.endsWith("."+i)))return!0}return!1}function RC(t){const s=[];try{const i=new URL(t);s.push(i.hostname)}catch{}return s.push("*.supabase.co","*.supabase.in"),s.push("localhost","127.0.0.1","[::1]"),s}function Do(t){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Do(t)}function zC(t,s){if(Do(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,s);if(Do(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(t)}function DC(t){var s=zC(t,"string");return Do(s)=="symbol"?s:s+""}function MC(t,s,i){return(s=DC(s))in t?Object.defineProperty(t,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[s]=i,t}function Rb(t,s){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);s&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,n)}return i}function nt(t){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?Rb(Object(i),!0).forEach(function(n){MC(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Rb(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}const PC=t=>t?(...s)=>t(...s):(...s)=>fetch(...s),BC=()=>Headers,ly=t=>t.startsWith("sb_publishable_")||t.startsWith("sb_secret_"),qC="sb_temp_",zb=new Set,UC=t=>{var s,i;if(!t.startsWith("sb_")||ly(t)||t.startsWith(qC))return;const n=(s=(i=t.match(/^sb_[a-zA-Z0-9]+_/))===null||i===void 0?void 0:i[0])!==null&&s!==void 0?s:"unknown";zb.has(n)||(zb.add(n),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type."))},Db=(t,s,i,n,l,d)=>{const u=PC(n),m=BC(),x=l?.enabled===!0,p=l?.respectSamplingDecision!==!1,g=x?RC(s):null,v=!(d?.omitApiKeyAsBearer&&ly(t));return async(j,N)=>{const k=await i();let S=new m(N?.headers);if(S.has("apikey")||S.set("apikey",t),!S.has("Authorization")){const C=k??(v?t:null);C&&S.set("Authorization",`Bearer ${C}`)}if(g){const C=FC(j,g,p);C&&(C.traceparent&&!S.has("traceparent")&&S.set("traceparent",C.traceparent),C.tracestate&&!S.has("tracestate")&&S.set("tracestate",C.tracestate),C.baggage&&!S.has("baggage")&&S.set("baggage",C.baggage))}return u(j,nt(nt({},N),{},{headers:S}))}};let Mb=!1;function FC(t,s,i){const n=qk();
39if(!n)return Mb||(Mb=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!LC(typeof t=="string"||t instanceof URL?t:t.url,s))return null;const l=n();if(!l||!l.traceparent)return null;if(i){const d=TC(l.traceparent);if(d&&!d.isSampled)return null}return l}function Pb(t){return typeof t=="boolean"?{enabled:t}:t}function $C(t){return t.endsWith("/")?t:t+"/"}function IC(t,s){var i,n,l,d,u,m;const{db:x,auth:p,realtime:g,global:v}=t,{db:j,auth:N,realtime:k,global:S}=s,C=Pb(t.tracePropagation),T=Pb(s.tracePropagation),w={db:nt(nt({},j),x),auth:nt(nt({},N),p),realtime:nt(nt({},k),g),storage:{},global:nt(nt(nt({},S),v),{},{headers:nt(nt({},(i=S?.headers)!==null&&i!==void 0?i:{}),(n=v?.headers)!==null&&n!==void 0?n:{})}),tracePropagation:{enabled:(l=(d=C?.enabled)!==null&&d!==void 0?d:T?.enabled)!==null&&l!==void 0?l:!1,respectSamplingDecision:(u=(m=C?.respectSamplingDecision)!==null&&m!==void 0?m:T?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return t.accessToken?w.accessToken=t.accessToken:delete w.accessToken,w}function HC(t){const s=t?.trim();if(!s)throw new Error("supabaseUrl is required.");if(!s.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL($C(s))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var VC=class extends NC{constructor(t){super(t)}},GC=class{constructor(t,s,i){var n,l;this.supabaseUrl=t,this.supabaseKey=s;const d=HC(t);if(!s)throw new Error("supabaseKey is required.");UC(s),this.realtimeUrl=new URL("realtime/v1",d),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",d),this.storageUrl=new URL("storage/v1",d),this.functionsUrl=new URL("functions/v1",d);const u=`sb-${d.hostname.split(".")[0]}-auth-token`,m={db:kC,realtime:EC,auth:nt(nt({},CC),{},{storageKey:u}),global:SC,tracePropagation:AC},x=IC(i??{},m);if(this.settings=x,this.storageKey=(n=x.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(l=x.global.headers)!==null&&l!==void 0?l:{},x.accessToken)this.accessToken=x.accessToken,this.auth=new Proxy({},{get:(g,v)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(v)} is not possible`)}});else{var p;this.auth=this._initSupabaseAuthClient((p=x.auth)!==null&&p!==void 0?p:{},this.headers,x.global.fetch)}this.fetch=Db(s,t,this._getSessionToken.bind(this),x.global.fetch,x.tracePropagation),this.functionsFetch=Db(s,t,this._getSessionToken.bind(this),x.global.fetch,x.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(nt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},x.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new Xk(new URL("rest/v1",d).href,{headers:this.headers,schema:x.db.schema,fetch:this.fetch,timeout:x.db.timeout,urlLengthLimit:x.db.urlLengthLimit,retry:x.db.retry}),this.storage=new g6(this.storageUrl.href,this.headers,this.fetch,i?.storage),x.accessToken||this._listenForAuthEvents()}get functions(){return new Ik(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,s={},i={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,s,i)}channel(t,s={config:{}}){return this.realtime.channel(t,s)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var t=this,s,i;if(t.accessToken)return await t.accessToken();const{data:n}=await t.auth.getSession();return(s=(i=n.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:null}async _getAccessToken(){var t=this,s;return(s=await t._getSessionToken())!==null&&s!==void 0?s:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:s,detectSessionInUrl:i,storage:n,userStorage:l,storageKey:d,flowType:u,lock:m,debug:x,throwOnError:p,experimental:g,lockAcquireTimeout:v,skipAutoInitialize:j},N,k){const S={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new VC({url:this.authUrl.href,headers:nt(nt({},S),N),storageKey:d,autoRefreshToken:t,persistSession:s,detectSessionInUrl:i,storage:n,userStorage:l,flowType:u,lock:m,debug:x,throwOnError:p,experimental:g,fetch:k,lockAcquireTimeout:v,skipAutoInitialize:j,hasCustomAuthorizationHeader:Object.keys(this.headers).some(C=>C.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new F3(this.realtimeUrl.href,nt(nt({},t),{},{params:nt(nt({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,s)=>{this._handleTokenChanged(t,"CLIENT",s?.access_token)})}_handleTokenChanged(t,s,i){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN"||t==="INITIAL_SESSION")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),s=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const WC=(t,s,i)=>new GC(t,s,i);function KC(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;const t=globalThis.process;if(!t)return!1;
39const s=t.version;if(s==null)return!1;const i=s.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=20:!1}KC()&&console.warn("â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");const JC="https://ntzfqhwpmimurcrvzrvw.supabase.co",YC="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im50emZxaHdwbWltdXJjcnZ6cnZ3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODc2ODE1MTMsImV4cCI6MjEwMzI1NzUxM30.yIPIbk6L4_cdYMTpYxNGtU0wQjY8RElVZ3uOy3h7Iuw",X=WC(JC,YC,{auth:{persistSession:!0,autoRefreshToken:!0,storageKey:"ponti-camara-portal"}}),QC={facebook:"Facebook",instagram:"Instagram",youtube:"YouTube",x:"X",tiktok:"TikTok"},cy=b.createContext(void 0);function XC(t){const s=document.documentElement;t.primaria&&s.style.setProperty("--cor-primaria",t.primaria),t.secundaria&&s.style.setProperty("--cor-secundaria",t.secundaria),t.destaque&&s.style.setProperty("--cor-destaque",t.destaque),t.texto_sobre_primaria&&s.style.setProperty("--cor-texto-primaria",t.texto_sobre_primaria)}function ZC(t){for(const s of["link[rel~='icon']","link[rel='apple-touch-icon']"]){const i=document.querySelector(s);i&&(i.href=t)}}function eE(t){const s=`${t.nome} | Portal da Transparência`;document.title=s;const i=(n,l,d,u)=>{let m=document.querySelector(n);m||(m=document.createElement("meta"),m.setAttribute(l,d),document.head.appendChild(m)),m.setAttribute("content",u)};i('meta[property="og:title"]',"property","og:title",t.nome),i('meta[name="twitter:title"]',"name","twitter:title",t.nome),i('meta[property="og:site_name"]',"property","og:site_name",t.nome),t.brasao_url&&(i('meta[property="og:image"]',"property","og:image",t.brasao_url),i('meta[name="twitter:image"]',"name","twitter:image",t.brasao_url))}function tE({children:t}){const[s,i]=b.useState(null),[n,l]=b.useState(!0);b.useEffect(()=>{let v=!0;async function j(){const{data:N,error:k}=await X.from("instituicao").select("*").eq("id",1).maybeSingle();if(v){if(k){console.error("Erro ao carregar identidade institucional:",k.message),l(!1);return}if(N){const S=N;i(S),XC(S.cores??{}),eE(S),S.favicon_url&&ZC(S.favicon_url)}l(!1)}}return j(),()=>{v=!1}},[]);const d=s?.endereco??{},u=[d.logradouro,d.numero].filter(Boolean).join(", "),m=[d.complemento,d.bairro].filter(Boolean).join(" - "),x=s?`${s.municipio} - ${s.uf}`:"",p=[u,m,x,d.cep?`CEP: ${d.cep}`:""].filter(Boolean),g=Object.entries(s?.redes_sociais??{}).filter(([,v])=>typeof v=="string"&&v.trim()!=="").map(([v,j])=>({rede:v,rotulo:QC[v]??v,url:j}));return e.jsx(cy.Provider,{value:{instituicao:s,carregando:n,enderecoLinhas:p,enderecoCompleto:p.join(" - "),nomeCasa:s?.nome??"Prefeitura Municipal",municipioUf:x,redes:g},children:t})}function st(){const t=b.useContext(cy);if(!t)throw new Error("useInstituicao exige InstituicaoProvider acima na árvore.");return t}function dy({tamanho:t=48,claro:s=!1,comLink:i=!0}){const{instituicao:n,municipioUf:l,carregando:d}=st(),u=e.jsxs(e.Fragment,{children:[n?.brasao_url?e.jsx("img",{src:n.brasao_url,alt:`Brasão de ${n.municipio}`,className:"object-contain flex-shrink-0",style:{width:t,height:t}}):e.jsx("span",{className:"rounded bg-gray-200 animate-pulse flex-shrink-0",style:{width:t,height:t}}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:`block font-bold leading-tight ${s?"text-white":"text-gray-900"}`,style:{fontSize:t>40?"1.125rem":"1rem"},children:d?" ":n?.nome_curto??"Prefeitura Municipal"}),e.jsx("span",{className:`block text-sm ${s?"text-gray-300":"text-gray-600"}`,children:d?" ":l})]})]});return i?e.jsx(ie,{to:"/",className:"flex items-center gap-3",children:u}):e.jsx("span",{className:"flex items-center gap-3",children:u})}const aE={facebook:lx,instagram:p2,youtube:D2,x:T2,tiktok:en};function uy({tamanho:t=18,className:s="w-9 h-9 bg-white/10 hover:bg-white/20 rounded-lg flex items-center justify-center transition-colors"}){const{redes:i}=st();return i.length?e.jsx(e.Fragment,{children:i.map(n=>{const l=aE[n.rede]??lx;return e.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:s,"aria-label":n.rotulo,title:n.rotulo,children:e.jsx(l,{size:t})},n.rede)})}):null}
39class ee extends Error{codigo;constructor(s,i){super(s),this.name="ErroServico",this.codigo=i}}function Yi(t){return t.code==="42501"||t.code==="PGRST301"?new ee("Conteúdo não disponÃvel para consulta pública.",t.code):t.code==="23505"?new ee("Registro duplicado.",t.code):new ee(t.message||"Não foi possÃvel carregar os dados. Tente novamente.",t.code)}const Ir=X;function Ne(t,s={}){const i=s.select??"*",n=s.ordem??[{coluna:"criado_em",ascendente:!1}],l=s.softDelete??!0,d=t;function u(m,x){l&&(m=m.is("deletado_em",null));for(const[p,g]of Object.entries(x.onde??{}))m=g===null?m.is(p,null):m.eq(p,g);for(const[p,g]of Object.entries(x.em??{}))g?.length&&(m=m.in(p,g));for(const[p,g]of Object.entries(x.contem??{}))g&&(m=m.ilike(p,`%${g}%`));for(const[p,g]of Object.entries(x.arrayContem??{}))g?.length&&(m=m.contains(p,g));for(const[p,g]of Object.entries(x.intervalo??{}))g.de!==void 0&&g.de!==null&&(m=m.gte(p,g.de)),g.ate!==void 0&&g.ate!==null&&(m=m.lte(p,g.ate));x.busca?.trim()&&(m=m.textSearch("search_vector",x.busca.trim(),{type:"websearch",config:"public.portugues_sem_acento"}));for(const p of x.ordem??n)m=m.order(p.coluna,{ascending:p.ascendente??!0,nullsFirst:p.nullsFirst});return m}return{relacao:t,async listar(m={}){let x=Ir.from(d).select(i);x=u(x,m),m.limite&&(x=x.limit(m.limite));const{data:p,error:g}=await x;if(g)throw Yi(g);return p??[]},async paginar(m={}){const x=m.limite??20,p=m.pagina??1,g=(p-1)*x;let v=Ir.from(d).select(i,{count:"exact"});v=u(v,m).range(g,g+x-1);const{data:j,error:N,count:k}=await v;if(N)throw Yi(N);const S=k??0;return{itens:j??[],total:S,pagina:p,totalPaginas:Math.max(1,Math.ceil(S/x))}},async obter(m){const{data:x,error:p}=await Ir.from(d).select(i).eq("id",m).maybeSingle();if(p)throw Yi(p);return x??null},async contar(m={}){let x=Ir.from(d).select("id",{count:"exact",head:!0});x=u(x,{...m,ordem:[]});const{error:p,count:g}=await x;if(p)throw Yi(p);return g??0},async criar(m){const{data:x,error:p}=await Ir.from(d).insert(m).select(i).single();if(p)throw Yi(p);return x}}}async function pd(t,s={}){const{data:i,error:n}=await Ir.rpc(t,s);if(n)throw Yi(n);return i}async function Ba(t,s={},i){const{data:n,error:l}=await Ir.functions.invoke("verificar-humano",{body:{acao:t,parametros:s,token:i??null}});if(l){const u=await(async()=>{try{return(await l.context?.json())?.erro}catch{return}})();throw new ee(u??l.message??"Não foi possÃvel registrar agora.")}const d=n;if(d?.erro)throw new ee(d.erro);return d?.dados}const sE={parametros_incompletos:"Preencha todos os campos obrigatórios.",senha_curta:"A senha precisa ter pelo menos 8 caracteres.",ja_cadastrado:'Já existe uma conta com este e-mail. Use "Esqueci minha senha" para entrar.',email_de_servidor:"Este e-mail já é usado por um servidor da Câmara no sistema interno. Use outro endereço para a Ãrea do Cidadão.",email_invalido:"Informe um e-mail válido.",cpf_invalido:"O CPF informado não é válido.",credenciais_invalidas:"E-mail ou senha incorretos.",conta_de_servidor:"Esta conta é de servidor da Câmara. O acesso interno é feito pelo sistema administrativo.",conta_inexistente:"Não encontramos esta conta.",email_nao_confirmado:"Confirme o seu e-mail antes de entrar. Reenviamos o link, se precisar.",link_invalido:"Este link não vale mais. Peça um novo.",nao_foi_possivel_cadastrar:"Não foi possÃvel concluir o cadastro agora. Tente novamente.",nao_foi_possivel_trocar:"Não foi possÃvel trocar a senha agora. Tente novamente.","verificacao de seguranca nao concluida":"Conclua a verificação de segurança antes de enviar.","verificacao de seguranca recusada":"A verificação de segurança não passou. Recarregue a página e tente de novo."};function Bb(t){return t?sE[t]??t:"Não foi possÃvel concluir agora. Tente novamente."}async function qr(t){const{data:s,error:i}=await X.functions.invoke("cidadao",{body:t});if(i){let l,d={};try{const m=await i.context?.json();l=m?.erro,d=m??{}}catch{}const u=new ee(Bb(l),l);throw Object.assign(u,{dados:d}),u}const n=s??{};if(n.erro)throw new ee(Bb(n.erro),n.erro);return n}const ca={async cadastrar(t,s){return qr({acao:"cadastrar",...t,captcha:s??null})},async reenviarConfirmacao(t){return qr({acao:"reenviar",email:t})},async confirmar(t){return qr({acao:"confirmar",token:t})},async entrar(t,s){const i=await qr({acao:"entrar",email:t,senha:s});if(!i.access_token||!i.refresh_token||!i.cidadao)throw new ee("Não foi possÃvel abrir a sessão. Tente novamente.");const{error:n}=await X.auth.setSession({access_token:i.access_token,refresh_token:i.refresh_token});if(n)throw new ee(n.message);return i.cidadao},async sair(){const{error:t}=await X.auth.signOut();t&&await X.auth.signOut({scope:"local"})},async recuperarSenha(t){return qr({acao:"recuperar",email:t})},async conferirLinkDeSenha(t){return qr({acao:"conferir",token:t})},async redefinirSenha(t,s){return qr({acao:"redefinir",token:t,senha:s})},async minhaConta(){const{data:t}=await X.auth.getSession(),s=t.session?.user?.id;if(!s)return null;const{data:i,error:n}=await X.from("cidadaos").select("id, nome, email, documento, telefone").eq("id",s).maybeSingle();return n||!i?null:i},async minhasManifestacoes(){const{data:t,error:s}=await X.rpc("minhas_manifestacoes");if(s)throw new ee(s.message,s.code);return t??[]},async manifestacao(t,s){const{data:i,error:n}=await X.rpc("minha_manifestacao",{p_canal:t,p_id:s});if(n)throw new ee(n.message,n.code);return i??null},async atualizarCadastro(t){const{error:s}=await X.rpc("cidadao_atualizar",{p_nome:t.nome??null,p_telefone:t.telefone??null,p_documento:t.documento??null});if(s)throw new ee(s.message,s.code)}},hy=b.createContext(void 0);function rE({children:t}){const[s,i]=b.useState(null),[n,l]=b.useState(!0),d=b.useCallback(async()=>{try{i(await ca.minhaConta())}catch{i(null)}finally{l(!1)}},[]);b.useEffect(()=>{d();const{data:p}=X.auth.onAuthStateChange(g=>{g==="SIGNED_OUT"?i(null):d()});return()=>p.subscription.unsubscribe()},[d]);const u=b.useCallback(async(p,g)=>{i(await ca.entrar(p,g))},[]),m=b.useCallback(async()=>{await ca.sair(),i(null)},[]),x=b.useMemo(()=>({conta:s,carregando:n,entrar:u,sair:m,recarregar:d}),[s,n,u,m,d]);return e.jsx(hy.Provider,{value:x,children:t})}function gd(){const t=b.useContext(hy);if(!t)throw new Error("useCidadao precisa estar dentro de <CidadaoProvider>");return t}const iE="/admin".replace(/\/+$/,""),vx=`${iE}/login`,qb="https://webmail.funilandia.mg.gov.br".trim(),Ub=qb?qb.replace(/\/+$/,""):null,Fb="a11y-font-scale",$b="a11y-alto-contraste",nE=.85,oE=1.5,Ib=.1;function lE(){const{redes:t}=st(),{conta:s}=gd(),[i,n]=b.useState(()=>{if(typeof window>"u")return 1;const T=localStorage.getItem(Fb);return T?Number(T):1}),[l,d]=b.useState(()=>typeof window>"u"?!1:localStorage.getItem($b)==="1");b.useEffect(()=>{document.documentElement.style.fontSize=`${i*100}%`,localStorage.setItem(Fb,String(i))},[i]),b.useEffect(()=>{document.body.classList.toggle("alto-contraste",l),localStorage.setItem($b,l?"1":"0")},[l]),b.useEffect(()=>{const T=_=>{let E=document.getElementById(_);E||(_==="conteudo"?E=document.querySelector("main"):_==="menu"?E=document.querySelector("header nav")??document.querySelector("header"):_==="rodape"&&(E=document.querySelector("footer"))),E&&(E.scrollIntoView({behavior:"smooth",block:"start"}),E.setAttribute("tabindex","-1"),E.focus({preventScroll:!0}))},w=_=>{if(_.altKey)switch(_.key){case"1":_.preventDefault(),T("conteudo");break;case"2":_.preventDefault(),T("menu");break;case"4":_.preventDefault(),T("rodape");break}};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[]);const u=()=>n(T=>Math.min(Number((T+Ib).toFixed(2)),oE)),m=()=>n(T=>Math.max(Number((T-Ib).toFixed(2)),nE)),x=Zr(),[p,g]=b.useState(""),[v,j]=b.useState(!1),N=b.useRef(null);b.useEffect(()=>{if(!v)return;const T=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=T}},[v]);const k=T=>{T.preventDefault();const w=p.trim();N.current?.blur(),x(w?`/servicos/busca?q=${encodeURIComponent(w)}`:"/servicos/busca")},S="flex h-8 w-8 items-center justify-center rounded bg-institutional-darker text-white transition-colors hover:bg-[#023B34] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",C="flex items-center gap-1.5 rounded bg-institutional-darker px-2.5 py-1 text-xs font-semibold transition-colors hover:bg-[#023B34] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white";return e.jsxs("div",{className:"text-white",children:[v&&e.jsx("div",{className:"fixed inset-0 z-30 bg-black/60","aria-hidden":"true"}),e.jsx("div",{className:"border-b border-white/15",children:e.jsxs("nav",{"aria-label":"Acessos",className:"container mx-auto flex flex-wrap justify-end gap-x-2 gap-y-1 px-3 py-1 md:px-6",children:[e.jsxs(ie,{to:s?"/area-restrita":"/area-restrita/entrar",className:C,children:[e.jsx(Nt,{size:12,"aria-hidden":"true"}),s?s.nome.trim().split(/\s+/)[0]:"Acesso Cidadão"]}),e.jsxs("a",{href:vx,target:"_blank",rel:"noopener noreferrer",className:C,children:[e.jsx(Za,{size:12,"aria-hidden":"true"}),"Acesso Servidor",e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]}),Ub&&e.jsxs("a",{href:Ub,target:"_blank",rel:"noopener noreferrer",className:C,children:[e.jsx(Ze,{size:12,"aria-hidden":"true"}),"Webmail",e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]})]})}),e.jsx("div",{className:"container mx-auto px-3 md:px-6",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-3 py-3 md:justify-between",children:[e.jsxs("ul",{className:"flex items-center gap-1.5","aria-label":"Recursos de acessibilidade",children:[e.jsx("li",{children:e.jsx("button",{type:"button",onClick:u,className:S,"aria-label":"Aumentar tamanho da fonte",title:"Aumentar fonte",children:e.jsx(cn,{size:16,"aria-hidden":"true"})})}),e.jsx("li",{children:e.jsx("button",{type:"button",onClick:m,className:S,"aria-label":"Diminuir tamanho da fonte",title:"Diminuir fonte",children:e.jsx(j2,{size:16,"aria-hidden":"true"})})}),e.jsx("li",{children:e.jsx("button",{type:"button",onClick:()=>d(T=>!T),className:l?`${S} !bg-yellow-400 !text-black`:S,"aria-pressed":l,"aria-label":"Alternar alto contraste",title:"Alto contraste",children:e.jsx(Dk,{size:15,"aria-hidden":"true"})})}),e.jsx("li",{children:e.jsx(ie,{to:"/servicos/mapa-site",className:S,"aria-label":"Mapa do site",title:"Mapa do site",children:e.jsx(Mk,{size:15,"aria-hidden":"true"})})}),e.jsx("li",{children:e.jsx(ie,{to:"/juridico/acessibilidade",className:S,"aria-label":"Recursos de acessibilidade do portal",title:"Acessibilidade",children:e.jsx(Pk,{size:17,"aria-hidden":"true"})})})]}),e.jsxs("form",{role:"search",onSubmit:k,className:"relative z-40 order-first flex w-full md:order-none md:w-auto md:flex-1 md:max-w-sm",children:[e.jsx("label",{htmlFor:"busca-topo",className:"sr-only",children:"Buscar no portal"}),e.jsx("input",{ref:N,id:"busca-topo",type:"search",value:p,onChange:T=>g(T.target.value),onFocus:()=>j(!0),onBlur:()=>j(!1),onKeyDown:T=>{T.key==="Escape"&&N.current?.blur()},placeholder:"Buscar...",className:`h-10 w-full rounded-l bg-white px-3 text-sm text-gray-900 placeholder:text-gray-500\r 40 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white`}),e.jsx("button",{type:"submit",className:`flex h-10 w-11 items-center justify-center rounded-r bg-institutional text-white\r 41 transition-colors hover:bg-institutional-dark\r 42 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white`,"aria-label":"Buscar",children:e.jsx(yt,{size:17,"aria-hidden":"true"})})]}),t.length>0?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(uy,{tamanho:20,className:`flex h-10 w-10 items-center justify-center rounded bg-white text-institutional-dark\r 43 transition-colors hover:bg-primary-100`}),e.jsx("span",{className:"text-sm text-white/90",children:"Siga-nos"})]}):e.jsx("span",{className:"hidden md:block md:w-[168px]","aria-hidden":"true"})]})})]})}function Hb(){return typeof window<"u"&&window.matchMedia("(hover: hover)").matches}const cE=160;function my(t){const[s,i]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),d=b.useRef(null),u=()=>{d.current!==null&&(window.clearTimeout(d.current),d.current=null)};return b.useEffect(()=>u,[]),b.useEffect(()=>{if(!s)return;const x=p=>{n.current&&!n.current.contains(p.target)&&i(!1)};return document.addEventListener("mousedown",x),document.addEventListener("touchstart",x),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("touchstart",x)}},[s]),{aberto:s,setAberto:i,raiz:n,botao:l,eventos:{onMouseEnter:()=>{Hb()&&(u(),i(!0))},onMouseLeave:()=>{Hb()&&(t?.naoFecharSe?.()||(u(),d.current=window.setTimeout(()=>i(!1),cE)))},onKeyDown:x=>{x.key==="Escape"&&s&&(x.stopPropagation(),i(!1),l.current?.focus())},onBlur:x=>{n.current&&!n.current.contains(x.relatedTarget)&&i(!1)}}}}function dE(t,s,i){const[n,l]=b.useState(0),d=b.useCallback(()=>{const u=s.current,m=u?.closest("[data-linha-menu]");if(!u||!m)return;const x=u.getBoundingClientRect(),p=m.getBoundingClientRect(),g=x.left+x.width/2-p.left;l(Math.max(0,Math.min(g-i/2,p.width-i)))},[s,i]);return b.useEffect(()=>{if(t)return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[t,d]),n}function xy({titulo:t,Icone:s,aberto:i,controla:n,botaoRef:l,onClick:d}){return e.jsxs("button",{ref:l,type:"button","aria-expanded":i,"aria-controls":n,onClick:d,className:`group flex h-full flex-col items-center justify-center gap-1.5 rounded-md px-2 py-1.5\r 44 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2\r 45 focus-visible:outline-institutional-darker xl:px-3`,children:[e.jsx("span",{"aria-hidden":"true",className:`flex h-8 w-8 items-center justify-center rounded transition-colors 46 ${i?"bg-institutional text-white":"bg-primary-100 text-institutional-dark group-hover:bg-institutional group-hover:text-white"}`,children:s?e.jsx(s,{size:16}):e.jsx(Io,{size:16})}),e.jsx("span",{className:"whitespace-nowrap text-[0.7rem] font-bold uppercase tracking-wide text-institutional-darker xl:text-xs",children:t})]})}function Wm({item:t,aoNavegar:s}){const i="block min-h-[45px] border-b border-white/15 px-4 py-3 text-sm text-white transition-all hover:bg-institutional hover:pl-5 focus-visible:bg-institutional focus-visible:pl-5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-white motion-reduce:transition-none";return t.external?e.jsxs("a",{href:t.path,target:"_blank",rel:"noopener noreferrer",className:i,onClick:s,children:[t.label,e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]}):e.jsx(ie,{to:t.path,className:i,onClick:s,children:t.label})}function fy({id:t,aberto:s,className:i,style:n,children:l}){return e.jsx("div",{className:`pointer-events-none absolute top-full z-10 overflow-hidden ${i}`,style:n,children:e.jsx("div",{id:t,className:`rounded-b-lg bg-institutional-darker shadow-2xl transition [transition-duration:400ms] ease-out 47 motion-reduce:transition-none 48 ${s?"pointer-events-auto visible translate-y-0":"invisible -translate-y-full"}`,children:l})})}const Vb=280;function py({title:t,columns:s,icone:i}){const{aberto:n,setAberto:l,raiz:d,botao:u,eventos:m}=my(),x=dE(n,d,Vb),p=b.useId();return e.jsxs("li",{ref:d,className:"flex",...m,children:[e.jsx(xy,{titulo:t,Icone:i,aberto:n,controla:p,botaoRef:u,onClick:()=>l(g=>!g)}),e.jsx(fy,{id:p,aberto:n,className:"",style:{left:x,width:Vb},children:e.jsx("ul",{className:"max-h-[50vh] overflow-y-auto",children:s.map(g=>e.jsxs(b.Fragment,{children:[s.length>1&&e.jsx("li",{role:"presentation",className:"px-4 pb-1 pt-3 text-[0.68rem] font-bold uppercase tracking-wider text-primary-300",children:g.title}),g.items.map(v=>e.jsx("li",{children:e.jsx(Wm,{item:v,aoNavegar:()=>l(!1)})},`${g.title}-${v.path}`))]},g.title))})})]})}function Gb(t){return t.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase()}function uE(t,s){const i=Gb(s.trim());return t.map(n=>
48({...n,itens:n.columns.flatMap(l=>l.items).filter(l=>!i||Gb(l.label).includes(i))})).filter(n=>n.itens.length>0)}function gy({menus:t,aoNavegar:s,filtroRef:i,modo:n}){const[l,d]=b.useState(""),u=b.useId(),m=b.useMemo(()=>uE(t,l),[t,l]);return e.jsxs("div",{className:"p-4 md:p-5",children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center",children:[e.jsxs("label",{htmlFor:u,className:"flex items-center gap-2 text-sm font-bold text-white",children:[e.jsx(yt,{"aria-hidden":"true"}),"Filtro"]}),e.jsx("input",{ref:i,id:u,type:"search",value:l,onChange:x=>d(x.target.value),placeholder:"Digite o que procura",className:`w-full rounded-md border-0 bg-white px-3 py-2 text-sm text-gray-900 placeholder:text-gray-500\r 49 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2\r 50 focus-visible:outline-white sm:max-w-sm`})]}),m.length===0?e.jsxs("p",{className:"py-6 text-center text-sm text-white",role:"status",children:["Nenhum item encontrado para â",l,"â."]}):n==="painel"?e.jsx("div",{className:"max-h-[60vh] overflow-y-auto",children:e.jsx("div",{className:"columns-1 gap-6 sm:columns-2 lg:columns-3 xl:columns-4",children:m.map(({title:x,icone:p,itens:g})=>e.jsxs("section",{className:"mb-5 break-inside-avoid","aria-label":x,children:[e.jsxs("h3",{className:"mb-1 flex items-center gap-2 border-b border-white/25 pb-2 text-sm font-bold uppercase tracking-wide text-primary-300",children:[p&&e.jsx(p,{"aria-hidden":"true"}),x]}),e.jsx("ul",{children:g.map(v=>e.jsx("li",{children:e.jsx(Wm,{item:v,aoNavegar:s})},`${x}-${v.path}`))})]},x))})}):e.jsx("div",{className:"space-y-2",children:m.map(({title:x,icone:p,itens:g})=>e.jsxs("details",{open:l.trim()!=="",className:"rounded-md bg-white/5",children:[e.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-4 py-3 text-sm font-bold uppercase tracking-wide text-white",children:[p&&e.jsx(p,{"aria-hidden":"true"}),e.jsx("span",{className:"flex-1",children:x}),e.jsx(Io,{"aria-hidden":"true"})]}),e.jsx("ul",{children:g.map(v=>e.jsx("li",{children:e.jsx(Wm,{item:v,aoNavegar:s})},`${x}-${v.path}`))})]},x))})]})}function hE({menus:t,titulo:s="Serviços",icone:i}){const n=b.useRef(null),{aberto:l,setAberto:d,raiz:u,botao:m,eventos:x}=my({naoFecharSe:()=>document.activeElement===n.current}),p=b.useId();return e.jsxs("li",{ref:u,className:"flex",...x,children:[e.jsx(xy,{titulo:s,Icone:i,aberto:l,controla:p,botaoRef:m,onClick:()=>d(g=>!g)}),e.jsx(fy,{id:p,aberto:l,className:"left-0 right-0",children:e.jsx(gy,{menus:t,aoNavegar:()=>d(!1),filtroRef:n,modo:"painel"})})]})}const mE="modulepreload",xE=function(t){return"/"+t},Wb={},fE=function(s,i,n){let l=Promise.resolve();if(i&&i.length>0){let p=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};var u=p;document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),x=m?.nonce||m?.getAttribute("nonce");l=p(i.map(g=>{if(g=xE(g),g in Wb)return;Wb[g]=!0;const v=g.endsWith(".css"),j=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${j}`))return;const N=document.createElement("link");if(N.rel=v?"stylesheet":mE,v||(N.as="script"),N.crossOrigin="",N.href=g,x&&N.setAttribute("nonce",x),document.head.appendChild(N),v)return new Promise((k,S)=>{N.addEventListener("load",k),N.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(m){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=m,window.dispatchEvent(x),!x.defaultPrevented)throw m}return l.then(m=>{for(const x of m||[])x.status==="rejected"&&d(x.reason);return s().catch(d)})},Pt={async banners(t){const{data:s,error:i}=await X.from("banners").select("*").eq("tipo","banner").eq("posicao",t).order("ordem");if(i)throw new ee(i.message,i.code);return s??[]},async popups(){const{data:t,error:s}=await X.from("banners").select("*").eq("tipo","popup").order("ordem");if(s)throw new ee(s.message,s.code);return t??[]},async menus(t){const{data:s,error:i}=await X.from("menus_rapidos").select("*").eq("local",t).order("ordem");if(i)throw new ee(i.message,i.code);return s??[]},async menuEmArvore(t){const s=await this.menus(t),i=s.filter(l=>!l.pai_id),n=new Set(i.map(l=>l.id));return i.map(l=>
50({item:l,filhos:s.filter(d=>d.pai_id===l.id&&n.has(d.pai_id))}))},async formulariosDoLocal(t){const{data:s,error:i}=await X.from("formularios_site").select("*").eq("local",t).order("criado_em");if(i)throw new ee(i.message,i.code);return s??[]},async formulario(t){const{data:s,error:i}=await X.from("formularios_site").select("*").ilike("slug",t).maybeSingle();if(i)throw new ee(i.message,i.code);return s??null},campos(t){return Array.isArray(t.campos)?t.campos:[]},async responderFormulario(t,s,i,n){return Ba("registrar_resposta_formulario",{p_slug:t,p_respostas:s,p_nome:i.nome??null,p_email:i.email??null},n)},async enqueteAtual(){const t=new Date().toISOString().slice(0,10),{data:s,error:i}=await X.from("enquetes_site").select("*").or(`fim_em.is.null,fim_em.gte.${t}`).order("criado_em",{ascending:!1}).limit(1).maybeSingle();if(i)throw new ee(i.message,i.code);if(!s)return null;const{data:n,error:l}=await X.from("enquetes_site_opcoes").select("*").eq("enquete_id",s.id).order("ordem");if(l)throw new ee(l.message,l.code);return{enquete:s,opcoes:n??[]}},async inscreverNewsletter(t,s){const{assinaturaService:i}=await fE(async()=>{const{assinaturaService:n}=await Promise.resolve().then(()=>MT);return{assinaturaService:n}},[]);return i.inscrever({email:t,newsletter:!0},s)},async votar(t,s,i){return Ba("votar_enquete_site",{p_enquete_id:t,p_opcao_id:s},i)}},pE="";function $a(){const[t,s]=b.useState(""),[i,n]=b.useState(0),l=b.useCallback(()=>{n(u=>u+1),s("")},[]),d=b.useCallback(()=>null,[i]);return{token:t,Campo:d,renovar:l,faltando:!!pE&&!t}}function sm({posicao:t}){const[s,i]=b.useState([]);return b.useEffect(()=>{let n=!0;return Pt.banners(t).then(l=>{n&&i(l)}).catch(()=>{}),()=>{n=!1}},[t]),s.length===0?null:e.jsx("section",{className:"py-10 md:py-12",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsx("div",{className:"max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-6",children:s.map(n=>e.jsx(gE,{banner:n},n.id))})})})}function gE({banner:t}){const s=e.jsxs("div",{className:"group h-full overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm hover:shadow-lg hover:border-institutional/40 transition-all",children:[t.imagem_url&&e.jsx("img",{src:t.imagem_url,alt:t.titulo,className:"w-full aspect-[24/7] object-cover",loading:"lazy"}),e.jsxs("div",{className:"p-5 md:p-6 text-center",children:[!t.imagem_url&&e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:t.titulo}),t.subtitulo&&e.jsx("p",{className:"text-sm md:text-[15px] leading-relaxed text-gray-600",children:t.subtitulo}),t.link_url&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold text-institutional mt-3 group-hover:gap-2.5 transition-all",children:[t.link_texto||"Saiba mais"," ",e.jsx($o,{size:15})]})]})]});return t.link_url?e.jsx("a",{href:t.link_url,target:"_blank",rel:"noopener noreferrer",children:s}):s}function bE(){const[t,s]=b.useState(null),[i,n]=b.useState(!1);if(b.useEffect(()=>{let d=!0;return Pt.popups().then(u=>{if(!d)return;const m=u.find(x=>vE(x));m&&(s(m),setTimeout(()=>d&&n(!0),1200))}).catch(()=>{}),()=>{d=!1}},[]),!t||!i)return null;function l(){t&&yE(t),n(!1)}return e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/50 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"popup-titulo",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-lg w-full overflow-hidden relative",children:[e.jsx("button",{type:"button",onClick:l,"aria-label":"Fechar aviso",className:"absolute top-3 right-3 w-9 h-9 rounded-full bg-white/90 hover:bg-white flex items-center justify-center text-gray-700 shadow",children:e.jsx(Fa,{size:18})}),t.imagem_url&&e.jsx("img",{src:t.imagem_url,alt:t.titulo,className:"w-full aspect-[24/7] object-cover"}),e.jsxs("div",{className:"p-6",children:[!t.imagem_url&&e.jsx("h2",{id:"popup-titulo",className:"text-xl font-bold text-gray-900",children:t.titulo}),t.subtitulo&&e.jsx("p",{className:"text-[15px] font-semibold text-gray-800",children:t.subtitulo}),t.corpo&&e.jsx("p",{className:"text-sm text-gray-700 mt-3 whitespace-pre-wrap",children:t.corpo}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[t.link_url&&e.jsx("a",{href:t.link_url,target:"_blank",rel:"noopener noreferrer",onClick:l,className:"px-5 py-2.5 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:t.link_texto||"Saiba mais"}),e.jsx("button",{type:"button",onClick:l,className:"px-5 py-2.5 border border-gray-300 rounded-lg font-semibold text-gray-700 hover:bg-gray-50",children:"Fechar"})]})]})]})})}const ad="ponti-popup-visto";function vE(t){if(t.frequencia==="sempre")return!0;try{return t.frequencia==="sessao"?sessionStorage.getItem(`${ad}:${t.id}`)===null:localStorage.getItem(`${ad}:${t.id}`)!==new Date().toISOString().slice(0,10)}catch{return!0}}function yE(t){try{t.frequencia==="sessao"?sessionStorage.setItem(`${ad}:${t.id}`,"1"):t.frequencia==="dia"&&localStorage.setItem(`${ad}:${t.id}`,new Date().toISOString().slice(0,10))}catch{}}function Km({m:t,children:s}){return e.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:s})}function jE(){const[t,s]=b.useState([]);if(b.useEffect(()=>{let n=!0;return Pt.menuEmArvore("topo").then(l=>{n&&s(l)}).catch(()=>{}),()=>{n=!1}},[]),t.length===0)return null;const i=n=>n&&px[n]||ud;return e.jsx(e.Fragment,{children:t.map(({item:n,filhos:l})=>l.length>0?e.jsx(py,{title:n.titulo,icone:i(n.icone),columns:[{title:n.descricao||n.titulo,items:l.map(d=>({label:d.titulo,path:d.url,external:d.externo}))}]},n.id):e.jsx("li",{className:"flex",children:e.jsx(Km,{m:n,children:(()=>{const d=i(n.icone);return e.jsxs("span",{className:"group flex h-full flex-col items-center justify-center gap-1.5 px-2 py-1.5 xl:px-3",children:[e.jsx("span",{"aria-hidden":"true",className:`flex h-8 w-8 items-center justify-center rounded bg-primary-100 text-institutional-dark 51 transition-colors group-hover:bg-institutional group-hover:text-white`,children:e.jsx(d,{size:16})}),e.jsx("span",{className:"whitespace-nowrap text-[0.7rem] font-bold uppercase tracking-wide text-institutional-darker xl:text-xs",children:n.titulo})]})})()})},n.id))})}function by({compacto:t=!1}={}){const s=$a(),[i,n]=b.useState(""),[l,d]=b.useState(!1),[u,m]=b.useState(!1),[x,p]=b.useState(null);async function g(v){v.preventDefault(),d(!0),p(null);try{await Pt.inscreverNewsletter(i.trim(),s.token),m(!0)}catch(j){p(j instanceof Error?j.message:"Não foi possÃvel inscrever agora."),s.renovar()}finally{d(!1)}}return u?e.jsxs("p",{className:"text-sm text-gray-300",children:["Enviamos um link de confirmação para ",e.jsx("strong",{className:"text-white",children:i}),". Enquanto você não confirmar, nada é enviado."]}):e.jsxs("form",{onSubmit:g,className:"space-y-2",children:[e.jsx("label",{htmlFor:"news-email",className:t?"sr-only":"block font-semibold text-white",children:"Receber as notÃcias por e-mail"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsx("input",{id:"news-email",type:"email",required:!0,value:i,onChange:v=>n(v.target.value),placeholder:"[email protected]",className:"flex-1 px-3 py-2 rounded-lg text-gray-900 text-sm"}),e.jsx("button",{type:"submit",disabled:l||s.faltando,className:"px-4 py-2 bg-white/15 hover:bg-white/25 border border-white/20 rounded-lg text-sm font-semibold disabled:opacity-50",children:l?"Enviando...":"Inscrever"})]}),e.jsx(s.Campo,{}),x&&e.jsx("p",{className:"text-xs text-amber-200",children:x}),e.jsx("p",{className:"text-xs text-gray-300",children:"Todo e-mail traz um link para sair da lista. Não é preciso conta nem senha."})]})}function NE({comNewsletter:t=!0}={}){const[s,i]=b.useState([]),[n,l]=b.useState([]);return b.useEffect(()=>{let d=!0;return Promise.all([Pt.menuEmArvore("rodape").catch(()=>[]),Pt.formulariosDoLocal("rodape").catch(()=>[])]).then(([u,m])=>{d&&(i(u),l(m))}),()=>{d=!1}},[]),!t&&s.length===0&&n.length===0?null:e.jsxs("div",{className:"border-t border-white/15 mt-8 pt-6 grid grid-cols-1 md:grid-cols-4 gap-6 text-sm",children:[t&&e.jsx("div",{className:"md:col-span-2",children:e.jsx(by,{})}),s.map(({item:d,filhos:u})=>e.jsxs("div",{children:[e.jsx(Km,{m:d,children:e.jsx("span",{className:"font-semibold text-white hover:text-blue-300",children:d.titulo})}),u.length>0&&e.jsx("ul",{className:"mt-2 space-y-1",children:u.map(m=>e.jsx("li",{children:e.jsx(Km,{m,children:e.jsx("span",{className:"text-gray-300 hover:text-white transition-colors",children:m.titulo})})},m.id))})]},d.id)),n.map(d=>e.jsxs("div",{children:[e.jsx(ie,{to:`/formulario/${d.slug}`,className:"font-semibold text-white hover:text-blue-300",children:d.titulo}),d.descricao&&e.jsx("p",{className:"text-gray-300 mt-1",children:d.descricao})]},d.id))]})}function vy({local:t}){const[s,i]=b.useState([]);return b.useEffect(()=>{let n=!0;return Pt.formulariosDoLocal(t).then(l=>{n&&i(l)}).catch(()=>{}),()=>{n=!1}},[t]),s.length===0?null:e.jsx("section",{className:"container mx-auto px-4 md:px-6 my-8",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:s.map(n=>e.jsxs(ie,{to:`/formulario/${n.slug}`,className:"group block bg-white border border-gray-200 rounded-xl p-6 hover:border-institutional/40 hover:shadow-lg transition-all",children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-900 flex items-center gap-2",children:[e.jsx(he,{className:"text-institutional",size:18})," ",n.titulo]}),n.descricao&&e.jsx("p",{className:"text-sm text-gray-600 mt-1.5 leading-relaxed",children:n.descricao}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-institutional mt-3",children:["Preencher ",e.jsx($o,{size:14})]})]},n.id))})})}function wE(){const t=$a(),[s,i]=b.useState(null),[n,l]=b.useState(null),[d,u]=b.useState(!1),[m,x]=b.useState(!1),[p,g]=b.useState(null);if(b.useEffect(()=>{let T=!0;return Pt.enqueteAtual().then(w=>
51{T&&i(w)}).catch(()=>{}),()=>{T=!1}},[]),!s)return null;const{enquete:v,opcoes:j}=s,N=!!(v.fim_em&&v.fim_em<new Date().toISOString().slice(0,10)),k=v.mostrar_resultado==="sempre"||v.mostrar_resultado==="apos_voto"&&m||v.mostrar_resultado==="apos_encerrar"&&N;async function S(){if(n){u(!0),g(null);try{const T=await Pt.votar(v.id,n,t.token);T?.ok===!1&&T.motivo==="ja_votou"&&g("Você já votou nesta enquete."),x(!0),i(await Pt.enqueteAtual())}catch(T){g(T instanceof Error?T.message:"Não foi possÃvel votar agora."),t.renovar()}finally{u(!1)}}}const C=j.reduce((T,w)=>T+(w.votos??0),0);return e.jsx("section",{className:"container mx-auto px-4 md:px-6 my-10",children:e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg shadow-sm p-6 max-w-2xl",children:[e.jsxs("h2",{className:"text-lg font-bold text-gray-900 flex items-center gap-2",children:[e.jsx(on,{className:"text-institutional",size:20}),v.pergunta]}),v.descricao&&e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:v.descricao}),p&&e.jsx("p",{className:"text-sm text-amber-800 bg-amber-50 border border-amber-200 rounded p-3 mt-4",children:p}),e.jsx("div",{className:"mt-5 space-y-3",children:j.map(T=>{const w=C>0?Math.round((T.votos??0)/C*100):0;return k?e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[e.jsx("span",{className:"text-gray-800",children:T.texto}),e.jsxs("span",{className:"text-gray-600 font-semibold",children:[w,"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-100 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-institutional",style:{width:`${w}%`}})})]},T.id):e.jsxs("label",{className:"flex items-center gap-3 text-sm cursor-pointer",children:[e.jsx("input",{type:"radio",name:"enquete",value:T.id,checked:n===T.id,onChange:()=>l(T.id),disabled:N}),e.jsx("span",{className:"text-gray-800",children:T.texto})]},T.id)})}),!m&&!N&&e.jsxs(e.Fragment,{children:[e.jsx(t.Campo,{}),e.jsx("button",{type:"button",onClick:S,disabled:!n||d||t.faltando,className:"mt-4 px-5 py-2.5 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark disabled:opacity-50",children:d?"Enviando...":"Votar"})]}),m&&!p&&e.jsxs("p",{className:"mt-4 text-sm text-green-800 flex items-center gap-2",children:[e.jsx(De,{size:16})," Obrigado por participar."]}),k&&e.jsxs("p",{className:"mt-4 text-xs text-gray-500",children:[C," voto(s). Enquete de sondagem â o resultado não substitui consulta pública nem votação em plenário."]})]})})}const Mo="https://ilai.memory.com.br/#/entidades/login/9A7F6P/1/legislacoes";function or(t){return`https://webcidadao.com.br/web-cidadao-web/login?codAux=9A7F6P&pagina=${t}`}const Bc=[{title:"O MunicÃpio",icone:xt,columns:[{title:"Conheça Funilândia",items:[{label:"História do MunicÃpio",path:"/institucional/historia"},{label:"SÃmbolos Municipais",path:"/institucional/simbolos"},{label:"Localização",path:"/institucional/localizacao"},{label:"Galeria de Imagens",path:"/institucional/galeria"}]},{title:"Poder Legislativo e links",items:[{label:"Câmara Municipal",path:"/institucional/camara-municipal"},{label:"Links Ãteis",path:"/institucional/links-uteis"}]}]},{title:"A Prefeitura",icone:ko,columns:[{title:"A Prefeitura",items:[{label:"Organograma",path:"/institucional/organograma"},{label:"NotÃcias",path:"/noticias"},{label:"Agenda",path:"/legislativo/agenda"},{label:"Audiências Públicas",path:"/legislativo/audiencias"}]},{title:"Onde nos encontrar",items:[{label:"Contato",path:"/institucional/contato"},{label:"Telefones Ãteis",path:"/institucional/telefones-uteis"},{label:"Acesso e Atendimento",path:"/institucional/acesso"}]}]},{title:"Serviços ao Cidadão",icone:Nt,columns:[{title:"Tributos e certidões",items:[{label:"2ª Via de IPTU",path:or("EMISSAO_2_VIA_IPTU"),external:!0},{label:"Certidão de Débitos",path:or("CERTIDAO_DEBITO"),external:!0},{label:"Certidão de Quitação de ITBI",path:or("CONSULTAR_CERTIDAO_QUITACAO_ITBI"),external:!0},{label:"ISSQN / TLLF Anual",path:or("EMISSAO_2_VIA_ISSQN"),external:!0},{label:"DÃvida Ativa",path:or("PESQUISAR_PROCESSOS_DIVIDA_ATIVA"),external:!0},{label:"Emissão de Tributos Diversos",path:or("EMISSAO_GUIAS_DIVERSAS"),external:!0}]},{title:"Empresa e servidor",items:[{label:"Contracheque do Servidor",path:or("EMISSAO_2_VIA_CONTRACHEQUE"),external:!0},{label:"Nota Fiscal Eletrônica",path:"https://funilandiamg.gestaoiss.com.br/inicio",external:!0},{label:"ISSQN Retido",path:"http://sistemaweb.memory.com.br:81/issqn/login/untlogin.php?municipio=9A7F6P",external:!0}]},{title:"Solicitações e protocolo",items:[{label:"Carta de Serviços",path:"/trans
51parencia/carta-servicos"},{label:"Solicitar um Serviço",path:"/participacao/solicitar"},{label:"Consultar minha Solicitação",path:"/participacao/minhas-solicitacoes"},{label:"Protocolo Digital",path:"/atendimento/protocolo"}]},{title:"Consultas e validações",items:[{label:"Autenticidade de Documentos",path:or("VALIDAR_AUTENTICIDADE"),external:!0},{label:"Verificar Documento deste Portal",path:"/verificar"},{label:"Buscar no Portal",path:"/servicos/busca"},{label:"Mapa do Site",path:"/servicos/mapa-site"}]},{title:"Ãrea do cidadão",items:[{label:"Entrar / Cadastrar",path:"/area-restrita"},{label:"Webmail institucional",path:"https://webmail.funilandia.mg.gov.br/",external:!0}]}]},{title:"Licitações",icone:he,columns:[{title:"Compras e contratos",items:[{label:"Licitações e Editais",path:"/transparencia/licitacoes"},{label:"Contratação Direta",path:"/transparencia/contratacao-direta"},{label:"Contratos",path:"/transparencia/contratos"},{label:"Convênios",path:"/transparencia/convenios"},{label:"Obras",path:"/transparencia/obras"}]}]},{title:"Transparência",icone:yt,columns:[{title:"Receitas e Despesas",items:[{label:"Receitas e Despesas",path:"/transparencia/balancetes"},{label:"Leis Orçamentárias (PPA, LDO, LOA)",path:"/transparencia/leis-orcamentarias"},{label:"Planejamento e Prestação de Contas",path:"/transparencia/planejamento-prestacao-contas"},{label:"Precatórios",path:"/transparencia/precatorios"},{label:"Diárias",path:"/transparencia/diarias"},{label:"Controle Interno",path:"/transparencia/controle-interno"}]},{title:"Pessoal",items:[{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"},{label:"Relação de Servidores",path:"/transparencia/servidores"},{label:"Padrão Remuneratório",path:"/transparencia/recursos-humanos/padrao-remuneratorio"},{label:"Estagiários",path:"/transparencia/recursos-humanos/estagiarios"},{label:"Terceirizados",path:"/transparencia/recursos-humanos/terceirizados"},{label:"Concursos e Processos Seletivos",path:"/transparencia/recursos-humanos/concursos"},{label:"Atos de Pessoal",path:"/transparencia/atos-pessoal"}]},{title:"Acesso e Dados",items:[{label:"Portal da Transparência",path:"/transparencia"},{label:"Ãndice de Transparência",path:"/transparencia/indice"},{label:"Dados Abertos",path:"/transparencia/dados-abertos"},{label:"Relatórios SIC / LAI",path:"/transparencia/sic-relatorios"},{label:"LGPD",path:"/transparencia/lgpd"},{label:"Radar da Transparência",path:"https://radardatransparencia.atricon.org.br",external:!0}]},{title:"Atos Oficiais",items:[{label:"Diário Oficial Eletrônico",path:"/legislativo/diario-oficial"},{label:"Legislação Municipal",path:Mo,external:!0},{label:"Códigos Municipais",path:"/legislativo/codigos"}]}]},{title:"Atendimento",icone:So,columns:[{title:"Fale com a Prefeitura",items:[{label:"Ouvidoria",path:"/atendimento/ouvidoria"},{label:"e-SIC â Acesso à Informação",path:"/atendimento/esic"},{label:"Fale Conosco",path:"/atendimento/fale-conosco"},{label:"Sugestões",path:"/atendimento/sugestoes"}]},{title:"Participação",items:[{label:"Consultas Públicas",path:"/legislativo/consultas"},{label:"Pesquisa de Satisfação",path:"/atendimento/pesquisa-satisfacao"}]},{title:"Ajuda",items:[{label:"Perguntas Frequentes",path:"/atendimento/faq"},{label:"Acessibilidade",path:"/juridico/acessibilidade"},{label:"PolÃtica de Privacidade",path:"/juridico/politica-privacidade"},{label:"Termos de Uso",path:"/juridico/termos-uso"}]}]}];function pe({sobreBanner:t=!1}={}){const[s,i]=b.useState(!1);return e.jsxs("header",{id:"menu",className:`topo-institucional relative z-40 ${t?"topo-sobre-banner":""}`,children:[e.jsx("a",{href:"#conteudo",className:"pular-conteudo",children:"Pular para o conteúdo"}),e.jsx(lE,{}),e.jsx("div",{className:"container mx-auto px-3 md:px-6",children:e.jsx("div",{className:"faixa-menu",children:e.jsxs("div",{"data-linha-menu":!0,className:"relative flex items-stretch justify-between gap-3 px-5 py-2 lg:px-16",children:[e.jsx("div",{className:"flex items-center py-1",children:e.jsx(dy,{tamanho:56})}),e.jsx("nav",{"aria-label":"Menu principal",className:"hidden lg:block",children:e.jsxs("ul",{className:"flex h-full items-stretch gap-0.5 xl:gap-2",children:[Bc.map(n=>e.jsx(py,{title:n.title,icone:n.icone,columns:n.columns},n.title)),e.jsx(jE,{}),e.jsx(hE,{menus:Bc,titulo:"Serviços",icone:Vc})]})}),e.jsxs("button",{type:"button",className:`flex flex-col items-center justify-center gap-1 rounded-md px-2 lg:hidden\r 52 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2\r 53 focus-visible:outline-institutional-darker`,"aria-expanded":s,"aria-controls":"menu-celular",onClick:()=>i(n=>!n),children:[e.jsx("span",{"aria-hidden":"true",className:"flex h-8 w-8 items-center justify-center rounded bg-primary-100 text-institutional-dark",children:s?e.jsx(Fa,{size:18}):e.jsx(Vc,{size:18})}),e.jsx("span",{className:"text-[0.7rem] font-bold uppercase tracking-wide text-institutional-darker",children:s?"Fechar":"Serviços"})]})]})})}),s&&e.jsx("div",{id:"menu-celular",className:"container mx-auto px-3 pb-3 lg:hidden",children:e.jsx("nav",{"aria-label":"Menu principal",className:"rounded-b-lg bg-institutional-darker shadow-2xl",children:e.jsx(gy,{menus:Bc,aoNavegar:()=>i(!1),modo:"celular"})})})]})}function ge(){const{instituicao:t,enderecoLinhas:s,nomeCasa:i,redes:n}=st(),l=t?.contato??{},d=new Date().getFullYear(),u=[{rotulo:"Geral",email:l.email},{rotulo:"Ouvidoria",email:l.email_ouvidoria},{rotulo:"e-SIC",email:l.email_esic},{rotulo:"Imprensa",email:l.email_imprensa}].filter((p,g,v)=>p.email&&v.findIndex(j=>j.email===p.email)===g),m="border-l-2 border-primary-300 pl-4",x="transition-colors hover:text-white hover:underline";return e.jsxs("footer",{id:"rodape",className:"rodape-institucional mt-16",children:[e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsxs("div",{className:`relative -top-10 -mb-10 mx-auto grid max-w-5xl items-center gap-5 rounded-lg bg-[#023B34] px-6 py-5 54 shadow-2xl ring-1 ring-white/10 md:grid-cols-[1fr_1.4fr_auto]`,children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xl font-extrabold italic text-primary-300",children:"Newsletter"}),e.jsx("p",{className:"text-sm italic text-white",children:"Cadastre seu e-mail e receba nossas novida
54des!"})]}),e.jsx(by,{compacto:!0}),n.length>0&&e.jsxs("div",{className:"flex flex-col items-start gap-2 md:items-end",children:[e.jsx("p",{className:"text-xs italic text-white/90",children:"Acompanhe a gente!"}),e.jsx("div",{className:"flex gap-2",children:e.jsx(uy,{tamanho:20,className:`flex h-10 w-10 items-center justify-center rounded bg-white text-institutional-dark 55 transition-colors hover:bg-primary-100`})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-8 pb-10 pt-6 sm:grid-cols-2 lg:grid-cols-[1.3fr_1fr_1fr_0.8fr]",children:[e.jsxs("div",{children:[e.jsx(dy,{tamanho:64,claro:!0,comLink:!1}),t?.cnpj&&e.jsxs("p",{className:"mt-3 text-sm text-primary-300",children:["CNPJ: ",t.cnpj]}),e.jsxs("p",{className:"mt-2 text-sm text-primary-100",children:[i," â Gente que gosta de gente."]})]}),e.jsxs("div",{className:m,children:[e.jsxs("h2",{className:"mb-2 flex items-center gap-2 text-lg font-semibold",children:[e.jsx(xt,{"aria-hidden":"true"})," Localização"]}),s.length>0&&e.jsx("address",{className:"text-sm not-italic leading-relaxed text-primary-100",children:s.map(p=>e.jsx("div",{children:p},p))}),e.jsx(ie,{to:"/institucional/localizacao",className:`mt-2 inline-block text-sm text-primary-300 ${x}`,children:"Como chegar"})]}),e.jsxs("div",{className:m,children:[e.jsxs("h2",{className:"mb-2 flex items-center gap-2 text-lg font-semibold",children:[e.jsx(zt,{"aria-hidden":"true"})," Fale Conosco"]}),e.jsxs("ul",{className:"space-y-1 text-sm text-primary-100",children:[l.telefone&&e.jsx("li",{children:e.jsx("a",{href:`tel:${l.telefone.replace(/\D/g,"")}`,className:x,children:l.telefone})}),u.map(p=>e.jsx("li",{className:"break-all",children:e.jsxs("a",{href:`mailto:${p.email}`,className:`inline-flex items-center gap-1.5 ${x}`,children:[e.jsx(Ze,{size:13,"aria-hidden":"true"}),p.email]})},p.email))]})]}),e.jsxs("div",{className:m,children:[e.jsxs("h2",{className:"mb-2 flex items-center gap-2 text-lg font-semibold",children:[e.jsx(mt,{"aria-hidden":"true"})," Funcionamento"]}),e.jsx("p",{className:"text-sm text-primary-100",children:t?.horario_atendimento||"Dias úteis"})]})]}),e.jsx(NE,{comNewsletter:!1})]}),e.jsx("div",{className:"border-t border-white/15",children:e.jsx("nav",{"aria-label":"Links do rodapé",className:"container mx-auto px-4 py-4 md:px-6",children:e.jsxs("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm text-primary-100",children:[e.jsx("li",{children:e.jsxs(ie,{to:"/transparencia/dados-abertos",className:`inline-flex items-center gap-1.5 ${x}`,children:[e.jsx(dd,{size:14,"aria-hidden":"true"})," Dados Abertos"]})}),e.jsx("li",{children:e.jsxs(ie,{to:"/servicos/mapa-site",className:`inline-flex items-center gap-1.5 ${x}`,children:[e.jsx(_o,{size:14,"aria-hidden":"true"})," Mapa do site"]})}),e.jsx("li",{children:e.jsxs(ie,{to:"/rss",className:`inline-flex items-center gap-1.5 ${x}`,children:[e.jsx(po,{size:14,"aria-hidden":"true"})," RSS"]})}),e.jsx("li",{children:e.jsx(ie,{to:"/juridico/politica-privacidade",className:x,children:"PolÃtica de Privacidade"})}),e.jsx("li",{children:e.jsx(ie,{to:"/juridico/termos-uso",className:x,children:"Termos de Uso"})}),e.jsx("li",{children:e.jsx(ie,{to:"/juridico/acessibilidade",className:x,children:"Acessibilidade"})}),e.jsx("li",{children:e.jsxs("a",{href:vx,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-1.5 ${x}`,children:[e.jsx(Za,{size:14,"aria-hidden":"true"})," Portal do Servidor",e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]})})]})})}),e.jsx("div",{className:"bg-[#023B34]",children:e.jsxs("p",{className:"container mx-auto px-4 py-4 text-center text-sm text-primary-100 md:px-6",children:["© ",d," ",i," â Todos os direitos reservados"]})})]})}const rm=Ne("noticias",{ordem:[{coluna:"data_publicacao",ascendente:!1}]});function im(t,s=[]){return{id:t.id,titulo:t.titulo,conteudo:t.conteudo,resumo:t.resumo,categoria:t.categoria??null,dataPublicacao:new Date(t.data_publicacao??t.criado_em),capa:t.imagem_url??null,arquivos:s.sort((i,n)=>(i.ordem??0)-(n.ordem??0)).map(i=>
55({id:i.id,nome:i.nome,url:i.arquivo_url,tipo:i.tipo==="video"?"video":i.tipo==="documento"?"documento":"imagem",ordem:i.ordem??0})),ativo:t.status==="publicada",destaque:t.destaque??!1,visualizacoes:t.visualizacoes??0,criadoPor:t.autor??"",dataCriacao:new Date(t.criado_em),dataAtualizacao:new Date(t.atualizado_em)}}async function nm(t){const s=new Map;if(!t.length)return s;const{data:i,error:n}=await X.from("noticias_arquivos").select("*").in("noticia_id",t).order("ordem");if(n)throw new ee(n.message,n.code);for(const l of i??[]){const d=s.get(l.noticia_id)??[];d.push(l),s.set(l.noticia_id,d)}return s}const _E="https://ntzfqhwpmimurcrvzrvw.supabase.co/storage/v1/object/public/institucional/capa-padrao.png";function yx(t){return t.capa?t.capa:t.arquivos.find(s=>s.tipo==="imagem")?.url??_E}const vo={async getAtivas(t){const s=await rm.listar({onde:{status:"publicada"},limite:t}),i=await nm(s.map(n=>n.id));return s.map(n=>im(n,i.get(n.id)))},async getDestaques(t=4){const s=await rm.listar({onde:{status:"publicada",destaque:!0},limite:t}),i=await nm(s.map(n=>n.id));return s.map(n=>im(n,i.get(n.id)))},async getById(t){const s=await rm.obter(t);if(!s||s.status!=="publicada")return null;const i=await nm([t]);return im(s,i.get(t))},async galeriaDa(t){const{data:s,error:i}=await X.from("galeria_albuns").select("id, titulo, descricao").eq("noticia_id",t).eq("publicado",!0).is("deletado_em",null).order("criado_em").limit(1).maybeSingle();if(i)throw new ee(i.message,i.code);
55if(!s)return null;const{data:n,error:l}=await X.from("galeria_fotos").select("id, titulo, legenda, arquivo_url").eq("album_id",s.id).eq("publicada",!0).is("deletado_em",null).order("ordem");if(l)throw new ee(l.message,l.code);return{titulo:s.titulo,descricao:s.descricao,fotos:(n??[]).map(d=>({id:d.id,url:d.arquivo_url,legenda:d.legenda??d.titulo??null}))}},async incrementarVisualizacoes(t){const{error:s}=await X.rpc("registrar_leitura_noticia",{p_noticia_id:t});s&&console.warn("Não foi possÃvel contabilizar a leitura:",s.message)}},SE=3e3,om="h-[260px] sm:h-[360px] lg:h-[460px]",Kb="min-h-[48px] sm:min-h-[64px] md:min-h-[72px]";function kE({noticias:t}){const[s,i]=b.useState([]),[n,l]=b.useState(!0),[d,u]=b.useState(0),[m,x]=b.useState(!0),[p,g]=b.useState(!1),[v,j]=b.useState(!1),N=b.useRef(null),[k,S]=b.useState({}),[C,T]=b.useState(3);b.useEffect(()=>{const Y=window.matchMedia("(prefers-reduced-motion: reduce)"),fe=()=>j(Y.matches);return fe(),Y.addEventListener("change",fe),()=>Y.removeEventListener("change",fe)},[]),b.useEffect(()=>{let Y=!0;return Pt.banners("home_destaque").then(fe=>{Y&&i(fe.map(J=>({id:J.id,titulo:J.titulo,subtitulo:J.subtitulo??J.corpo??null,imagem:J.imagem_url??null,href:J.link_url??null,externo:J.nova_aba})))}).catch(()=>{Y&&i([])}).finally(()=>{Y&&l(!1)}),()=>{Y=!1}},[]);const w=b.useMemo(()=>s.length>0?s:t.slice(0,3).map(Y=>({id:Y.id,titulo:Y.titulo,subtitulo:Y.resumo??null,imagem:yx(Y),href:`/noticia/${Y.id}`,externo:!1})),[s,t]),_=w.length,E=m&&!p&&!v&&_>1,O=b.useCallback(Y=>u((Y%_+_)%_),[_]);if(b.useEffect(()=>{d>=_&&u(0)},[d,_]),b.useEffect(()=>{if(!E)return;const Y=window.setInterval(()=>u(fe=>(fe+1)%_),SE);return()=>window.clearInterval(Y)},[E,_]),b.useEffect(()=>{for(const Y of w){const fe=Y.imagem;if(!fe||k[fe]!==void 0)continue;const J=new Image;J.onload=()=>{J.naturalHeight>0&&S(Me=>({...Me,[fe]:J.naturalWidth/J.naturalHeight}))},J.src=fe}},[w,k]),b.useEffect(()=>{const Y=N.current;if(!Y)return;const fe=()=>{Y.clientHeight>0&&T(Y.clientWidth/Y.clientHeight)};fe();const J=new ResizeObserver(fe);return J.observe(Y),()=>J.disconnect()},[n,_]),n)return e.jsxs("div",{"aria-hidden":"true",className:"w-full bg-institutional-darker",children:[e.jsx("div",{className:om}),e.jsx("div",{className:Kb})]});if(_===0)return null;const $=w[d],z=e.jsx(e.Fragment,{children:$.imagem?(()=>{const Y=$.imagem,fe=k[Y],J=fe!==void 0&&fe>=C*.92;return e.jsxs(e.Fragment,{children:[!J&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:Y,alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full scale-110 object-cover blur-2xl"}),e.jsx("div",{className:"absolute inset-0 bg-black/25","aria-hidden":"true"})]}),e.jsx("img",{src:Y,alt:"","data-enquadramento":fe===void 0?"medindo":J?"preenche":"centralizada",className:`absolute inset-0 h-full w-full ${J?"object-cover":"object-contain"}`})]})})():e.jsx("div",{className:"absolute inset-0 bg-institutional-dark","aria-hidden":"true"})}),Q=e.jsxs("div",{className:`flex flex-col items-center justify-center bg-institutional-darker px-4 py-2 56 text-center text-white md:px-6 ${Kb}`,children:[e.jsx("h2",{className:"line-clamp-1 text-base font-bold leading-snug md:text-2xl",children:$.titulo}),$.subtitulo&&$.subtitulo.trim()!==$.titulo.trim()?e.jsx("p",{className:"line-clamp-1 text-sm leading-snug text-white/90 max-sm:hidden",children:$.subtitulo}):null]}),K=e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:N,className:`relative w-full overflow-hidden ${om}`,children:z}),Q]}),we="block w-full focus-visible:outline focus-visible:outline-4 focus-visible:-outline-offset-4 focus-visible:outline-white";return e.jsxs("section",{role:"group","aria-roledescription":"carrossel","aria-label":"Assuntos em destaque",className:"relative w-full overflow-hidden bg-institutional-darker",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onFocusCapture:()=>g(!0),onBlurCapture:()=>g(!1),children:[e.jsx("div",{className:"w-full","aria-live":E?"off":"polite","aria-atomic":"true",children:e.jsx("div",{role:"group","aria-roledescription":"slide","aria-label":`${d+1} de ${_}`,className:"w-full",children:$.href===null?e.jsx("div",{className:we,children:K}):$.externo?e.jsx("a",{href:$.href,target:"_blank",rel:"noopener noreferrer",className:we,"aria-label":`${$.titulo} (abre em nova aba)`,children:K}):e.jsx(ie,{to:$.href,className:we,"aria-label":$.titulo,children:K})})}),_>1?e.jsxs("div",{className:`pointer-events-none absolute inset-x-0 top-0 ${om}`,children:[e.jsx("div",{className:"pointer-events-auto absolute left-2 top-1/2 -translate-y-1/2 md:left-4",children:e.jsx(lm,{rotulo:"Destaque anterior",aoClicar:()=>O(d-1),children:e.jsx(ln,{size:20,"aria-hidden":"true"})})}),e.jsx("div",{className:"pointer-events-auto absolute right-2 top-1/2 -translate-y-1/2 md:right-4",children:e.jsx(lm,{rotulo:"Próximo destaque",aoClicar:()=>O(d+1),children:e.jsx(ss,{size:20,"aria-hidden":"true"})})}),e.jsx("div",{className:"pointer-events-auto absolute left-1/2 top-10 -translate-x-1/2",children:e.jsx(lm,{rotulo:E?"Pausar a troca automática":"Retomar a troca automática",aoClicar:()=>x(Y=>
56!Y),children:E?e.jsx(N2,{size:15,"aria-hidden":"true"}):e.jsx(Gc,{size:15,"aria-hidden":"true"})})}),e.jsx("ul",{className:"pointer-events-auto absolute bottom-3 left-1/2 flex -translate-x-1/2 items-center gap-2",role:"tablist","aria-label":"Escolher destaque",children:w.map((Y,fe)=>e.jsx("li",{role:"presentation",children:e.jsx("button",{type:"button",role:"tab","aria-selected":fe===d,"aria-label":`Destaque ${fe+1} de ${_}`,onClick:()=>O(fe),className:"h-3 w-3 rounded-full ring-2 ring-institutional-darker transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white "+(fe===d?"bg-white":"bg-white/50")})},Y.id))})]}):null]})}function lm({rotulo:t,aoClicar:s,children:i}){return e.jsx("button",{type:"button",onClick:s,"aria-label":t,title:t,className:`flex h-10 w-10 items-center justify-center rounded-full bg-institutional-darker/90 57 text-white shadow-lg transition-colors hover:bg-institutional-dark 58 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 59 focus-visible:outline-white`,children:i})}const CE="9A7F6P",EE="https://webcidadao.com.br/web-cidadao-web/login";function lr(t){return`${EE}?codAux=${CE}&pagina=${t}`}const yy=[{id:"iptu",titulo:"2ª Via de IPTU",descricao:"Emita a segunda via do carnê do seu imóvel.",url:lr("EMISSAO_2_VIA_IPTU"),icone:"FiHome"},{id:"certidao-debitos",titulo:"Certidão de Débitos",descricao:"Consulte e emita sua certidão negativa ou positiva.",url:lr("CERTIDAO_DEBITO"),icone:"FiFileText"},{id:"itbi",titulo:"Certidão de Quitação de ITBI",descricao:"Comprove a quitação do imposto de transmissão do imóvel.",url:lr("CONSULTAR_CERTIDAO_QUITACAO_ITBI"),icone:"FiCheckSquare"},{id:"issqn",titulo:"ISSQN / TLLF Anual",descricao:"Emita a guia anual do imposto sobre serviços e da taxa de licença.",url:lr("EMISSAO_2_VIA_ISSQN"),icone:"FiBriefcase"}
59,{id:"divida-ativa",titulo:"DÃvida Ativa",descricao:"Consulte processos de dÃvida ativa em seu nome.",url:lr("PESQUISAR_PROCESSOS_DIVIDA_ATIVA"),icone:"FiAlertCircle"},{id:"contracheque",titulo:"Contracheque",descricao:"Servidor municipal: acesse e imprima seu demonstrativo de pagamento.",url:lr("EMISSAO_2_VIA_CONTRACHEQUE"),icone:"FiDollarSign"},{id:"tributos-diversos",titulo:"Emissão de Tributos Diversos",descricao:"Gere guias de taxas e tributos municipais avulsos.",url:lr("EMISSAO_GUIAS_DIVERSAS"),icone:"FiCreditCard"},{id:"autenticidade",titulo:"Autenticidade de Documentos",descricao:"Confira se um documento emitido pela Prefeitura é válido.",url:lr("VALIDAR_AUTENTICIDADE"),icone:"FiShield"}],Jb=(t,s=nx)=>t&&px[t]||s;function jx({id:t,titulo:s,Icone:i,verTodos:n,rotuloVerTodos:l}){return e.jsxs("div",{className:"mb-8 flex items-center justify-center gap-3",children:[e.jsxs("h2",{id:t,className:"flex items-center gap-2.5 text-xl font-extrabold uppercase tracking-wide text-gray-800 md:text-2xl",children:[e.jsx(i,{"aria-hidden":"true",className:"text-institutional-darker"}),s]}),n&&e.jsx(ie,{to:n,"aria-label":l??`Ver todos: ${s}`,title:l??`Ver todos: ${s}`,className:`flex h-9 w-9 items-center justify-center rounded-full bg-institutional text-white shadow\r 60 transition-colors hover:bg-institutional-dark focus-visible:outline focus-visible:outline-2\r 61 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker`,children:e.jsx(cn,{size:18,"aria-hidden":"true"})})]})}const AE=[{rotulo:"Cidadão",para:"/servicos/publico/cidadao",Icone:Nt},{rotulo:"Empresa",para:"/servicos/publico/empresa",Icone:pr},{rotulo:"Servidor",para:"/servicos/publico/servidor",Icone:ot},{rotulo:"Ver todos",para:"/servicos/publico/todos",Icone:Vc},{rotulo:"Participação Cidadã",para:"/participacao/solicitar",Icone:Pa},{rotulo:"Acompanhe Solicitações",para:"/participacao/minhas-solicitacoes",Icone:yt}];function TE(){return e.jsx("section",{"aria-label":"Serviços por público",className:"bg-white py-10 md:py-12",children:e.jsx("ul",{className:"container mx-auto grid grid-cols-1 gap-3 px-4 sm:grid-cols-2 md:px-6 lg:grid-cols-3",children:AE.map(({rotulo:t,para:s,Icone:i})=>e.jsx("li",{children:e.jsxs(ie,{to:s,className:`flex h-20 items-center justify-center gap-4 roun
61ded-md bg-institutional px-5 text-white shadow-md\r 62 transition-colors hover:bg-institutional-dark focus-visible:outline focus-visible:outline-2\r 63 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker md:h-24`,children:[e.jsx(i,{size:30,"aria-hidden":"true",className:"flex-shrink-0 text-primary-300"}),e.jsx("span",{className:"text-xl font-extrabold uppercase tracking-wide md:text-2xl",children:t})]})},s))})})}const LE=["JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ"];function OE(t){return(new DOMParser().parseFromString(t,"text/html").body.textContent??"").replace(/\s+/g," ").trim()}function RE({n:t}){const s=String(t.dataPublicacao.getDate()).padStart(2,"0"),i=LE[t.dataPublicacao.getMonth()],n=OE(t.resumo&&t.resumo.trim()!==t.titulo.trim()?t.resumo:t.conteudo);return e.jsxs("article",{className:"group flex h-full flex-col overflow-hidden rounded-md border border-gray-200 bg-gray-50 shadow-sm transition-shadow hover:shadow-lg",children:[e.jsxs(ie,{to:`/noticia/${t.id}`,className:"relative block aspect-[16/9] overflow-hidden bg-gray-200",tabIndex:-1,"aria-hidden":"true",children:[e.jsx("img",{src:yx(t),alt:"",loading:"lazy",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none",onError:l=>{l.currentTarget.src="/images/capa.jpg"}}),e.jsxs("span",{className:"absolute left-3 top-3 flex flex-col items-center overflow-hidden rounded bg-institutional text-white shadow",children:[e.jsx("span",{className:"px-2.5 pt-1 text-xl leading-none",children:s}),e.jsx("span",{className:"w-full bg-institutional-darker px-2.5 py-1 text-center text-[0.65rem] font-semibold",children:i})]})]}),e.jsxs("div",{className:"flex flex-1 flex-col p-4",children:[e.jsx("h3",{className:"text-base font-semibold leading-snug text-gray-900 md:text-lg",children:e.jsx(ie,{to:`/noticia/${t.id}`,className:`hover:text-institutional-darker hover:underline focus-visible:outline focus-visible:outline-2\r 64 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker`,children:t.titulo})}),n&&e.jsx("p",{className:"mt-2 line-clamp-3 text-sm text-gray-700",children:n}),e.jsxs("p",{className:"mt-3 flex items-center gap-1.5 text-sm text-gray-700",children:[e.jsx(ka,{"aria-hidden":"true"})," ",t.visualizacoes," ",t.visualizacoes===1?"visualização":"visualizações"]}),e.jsxs("div",{className:"mt-auto flex items-center gap-3 pt-4",children:[t.categoria&&e.jsx("span",{className:"max-w-[45%] truncate rounded bg-institutional-darker px-2 py-0.5 text-[0.7rem] font-bold uppercase text-white",children:t.categoria}),e.jsx("span",{className:"h-px flex-1 bg-gray-300","aria-hidden":"true"}),e.jsxs(ie,{to:`/noticia/${t.id}`,className:"flex items-center gap-1.5 text-sm font-semibold uppercase text-institutional-darker hover:underline","aria-label":`Ver mais: ${t.titulo}`,children:["Ver mais",e.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full border-2 border-institutional text-institutional","aria-hidden":"true",children:e.jsx(cn,{size:14})})]})]})]})]})}function zE({noticias:t}){return t.length===0?null:e.jsx("section",{"aria-labelledby":"titulo-noticias",className:"bg-gray-100 py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(jx,{id:"titulo-noticias",titulo:"NotÃcias",Icone:ux,verTodos:"/noticias",rotuloVerTodos:"Ver todas as notÃcias"}),e.jsx("ul",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3",children:t.map(s=>e.jsx("li",{children:e.jsx(RE,{n:s})},s.id))})]})})}const DE=[{id:"transparencia",titulo:"Portal da Transparência",url:"/transparencia",externo:!1,Icone:yt},{id:"licitacoes",titulo:"Licitações",url:"/transparencia/licitacoes",externo:!1,Icone:ox},{id:"legislacao",titulo:"Legislação",url:Mo,externo:!0,Icone:ei},{id:"diario",titulo:"Diário Oficial",url:"/legislativo/diario-oficial",externo:!1,Icone:he}];function ME({a:t}){const s="group flex h-full flex-col items-center gap-2 rounded-md p-3 text-center focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker",i=e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",className:`flex h-20 w-20 items-center justify-center rounded bg-white text-institutional shadow-sm\r 65 transition-all group-hover:-translate-y-1 group-hover:shadow-md motion-reduce:transition-none`,children:e.jsx(t.Icone,{size:38})}),e.jsx("span",{className:"text-sm font-bold italic leading-tight text-institutional-dark md:text-base",children:t.titulo}),e.jsx("span",{className:"text-[0.7rem] font-semibold uppercase tracking-wide text-gray-700",children:"Clique para acessar"}),e.jsx("span",{className:"mt-auto flex h-6 w-6 items-center justify-center rounded-full border-2 border-institutional text-institutional","aria-hidden":"true",children:e.jsx(cn,{size:14})})]});return t.externo?e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:s,children:[i,e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]}):e.jsx(ie,{to:t.url,className:s,children:i})}function PE(){const[t,s]=b.useState([]);b.useEffect(()=>{let n=!0;return Pt.menuEmArvore("home").then(l=>{n&&s(l.map(d=>d.item))}).catch(()=>{}),()=>{n=!1}},[]);const i=[...yy.map(n=>({id:n.id,titulo:n.titulo,url:n.url,externo:!0,Icone:Jb(n.icone)})),...DE,...t.map(n=>({id:n.id,titulo:n.titulo,url:n.url,externo:!0,Icone:Jb(n.icone,ud)}))];return e.jsx("section",{"aria-labelledby":"titulo-acesso-rapido",className:"bg-primary-50 py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx("h2",{id:"titulo-acesso-rapido",className:"mb-8 text-center text-xl font-semibold text-institutional-darker md:text-2xl",children:"Acesso Rápido"}),e.jsx("ul",{className:"grid grid-cols-2 gap-x-3 gap-y-6 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-7",children:i.map(n=>e.jsx("li",{children:e.jsx(ME,{a:n})},n.id))})]})})}function jy({rotulo:t,children:s}){const i=b.useRef(null),n=d=>{const u=i.current;u&&u.scrollBy({left:d*u.clientWidth*.85,behavior:"smooth"})},l="absolute top-1/2 z-10 hidden h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-institutional text-white shadow-lg transition-colors hover:bg-institutional-dark md:flex focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker";return e.jsxs("div",{className:"relative",children:[e.jsx("button",{type:"button",className:`${l} -left-2`,onClick:()=>n(-1),"aria-label":`${t}: anteriores`,children:e.jsx(ln,{size:22,"aria-hidden":"true"})}),e.jsx("ul",{ref:i,className:`flex snap-x snap-mandatory gap-4 overflow-x-auto scroll-smooth pb-3 motion-reduce:scroll-auto\r 66 [scrollbar-width:thin]`,children:s}),e.jsx("button",{type:"button",className:`${l} -right-2`,onClick:()=>n(1),"aria-label":`${t}: próximos`,children:e.jsx(ss,{size:22,"aria-hidden":"true"})})]})}function BE(){const{instituicao:t}=st(),[s,i]=b.useState([]);return b.useEffect(()=>{let n=!0;return X.from("organograma_nos").select("id, nome, responsavel, tipo").in("tipo",["gabinete","secretaria"]).eq("ativo",!0).is("deletado_em",null).order("ordem").then(({data:l})=>{n&&i(l??[])}),()=>{n=!1}},[]),s.length===0?null:e.jsx("section",{"aria-labelledby":"titulo-secretarias",className:"bg-white py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(jx,{id:"titulo-secretarias",titulo:"Secretarias",Icone:ot,verTodos:"/institucional/organograma",rotuloVerTodos:"Ver o organograma completo"}),e.jsx(jy,{rotulo:"Secretarias",children:s.map(n=>e.jsx("li",{className:"w-[280px] flex-shrink-0 snap-start md:w-[300px]",children:e.jsxs(ie,{to:"/institucional/organograma",className:`group flex h-full min-h-[130px] overflow-hidden rounded-md border border-gray-200 bg-white shadow-sm\r 67 transition-shadow hover:shadow-md focus-visible:outline focus-visible:outline-2\r 68 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker`,children:[e.jsx("span",{className:"flex w-24 flex-shrink-0 items-center justify-center bg-institutional p-2","aria-hidden":"true",children:t?.brasao_url?e.jsx("img",{src:t.brasao_url,alt:"",className:"max-h-20 w-auto opacity-90"}):e.jsx(Rs,{size:40,className:"text-white"})}),e.jsxs("span",{className:"flex flex-1 flex-col p-3",children:[e.jsx("span",{className:"text-sm font-semibold leading-snug text-gray-900",children:n.nome}),n.responsavel&&e.jsx("span",{className:"mt-1 text-sm italic text-gray-700",children:n.responsavel}),e.jsxs("span",{className:"mt-auto flex items-center gap-2 pt-2","aria-hidden":"true",children:[e.jsx("span",{className:"h-px flex-1 bg-gray-300"}),e.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-full border-2 border-institutional text-institutional",children:e.jsx(cn,{size:14})})]})]})]})},n.id))})]})})}function qE(){const[t,s]=b.useState([]);return b.useEffect(()=>{let i=!0;return X.from("galeria_albuns").select("id, slug, titulo, capa_url").eq("categoria","cartoes_postais").eq("publicado",!0).is("deletado_em",null).order("data_evento",{ascending:!1}).limit(12).then(({data:n})=>{i&&s((n??[]).filter(l=>l.capa_url))}),()=>{i=!1}},[]),t.length===0?null:e.jsx("section",{"aria-labelledby":"titulo-turismo",className:"bg-gray-100 py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(jx,{id:"titulo-turismo",titulo:"Turismo",Icone:xt,verTodos:"/institucional/galeria",rotuloVerTodos:"Ver a galer
68ia completa"}),e.jsx(jy,{rotulo:"Turismo",children:t.map(i=>e.jsx("li",{className:"w-[260px] flex-shrink-0 snap-start md:w-[280px]",children:e.jsxs(ie,{to:"/institucional/galeria",className:`group block overflow-hidden rounded-md bg-white shadow-sm transition-shadow hover:shadow-lg\r 69 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker`,children:[e.jsx("span",{className:"block aspect-[4/5] overflow-hidden bg-gray-200",children:e.jsx("img",{src:i.capa_url??"",alt:"",loading:"lazy",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105 motion-reduce:transition-none"})}),e.jsx("span",{className:"block px-3 py-4 text-center font-semibold text-gray-900",children:i.titulo})]})},i.id))})]})})}function UE(){const{nomeCasa:t}=st(),[s,i]=b.useState([]);return b.useEffect(()=>{let n=!0;return vo.getAtivas(6).then(l=>{n&&i(l)}).catch(l=>console.error("Erro ao carregar notÃcias:",l)),()=>{n=!1}},[]),e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{sobreBanner:!0}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsxs("h1",{className:"sr-only",children:[t," â Gente que gosta de gente"]}),e.jsx(kE,{noticias:s}),e.jsx(TE,{}),e.jsx(sm,{posicao:"home_topo"}),e.jsx(zE,{noticias:s}),e.jsx(PE,{}),e.jsx(sm,{posicao:"home_meio"}),e.jsx(BE,{}),e.jsx(qE,{}),e.jsx(vy,{local:"home"}),e.jsx(wE,{}),e.jsx(sm,{posicao:"home_rodape"}),e.jsx(bE,{})]}),e.jsx(ge,{})]})}function Ny(){const{pathname:t}=Yt();return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsx("main",{id:"conteudo",tabIndex:-1,className:"flex-1 pb-16",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-2xl text-center py-12",children:[e.jsx(h2,{size:64,className:"mx-auto text-institutional/40 mb-6","aria-hidden":"true"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-3",children:"Esta página não foi encontrada"}),e.jsx("p",{className:"text-gray-600 mb-2",children:"O endereço abaixo não corresponde a nenhuma página do site da Prefeitura. Ele pode ter mudado de lugar, ou ter sido digitado com algum engano."}),e.jsx("p",{className:"inline-block bg-gray-100 border border-gray-200 rounded-lg px-4 py-2 font-mono text-sm text-gray-700 break-all my-4",children:t}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-3 mt-8",children:[e.jsxs(ie,{to:"/",className:"inline-flex items-center gap-2 px-6 py-3 bg-institutional text-white rounded-lg font-bold hover:bg-institutional-dark transition-colors",children:[e.jsx(ti,{size:18})," Ir para a página inicial"]}),e.jsxs(ie,{to:"/servicos/busca",className:"inline-flex items-center gap-2 px-6 py-3 bg-white border-2 border-institutional text-institutional rounded-lg font-bold hover:bg-gray-50 transition-colors",children:[e.jsx(yt,{size:18})," Buscar no site"]}),e.jsxs(ie,{to:"/servicos/mapa-site",className:"inline-flex items-center gap-2 px-6 py-3 bg-white border border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 transition-colors",children:[e.jsx(_o,{size:18})," Mapa do site"]})]}),e.jsxs("p",{className:"text-sm text-gray-500 mt-10",children:["Se você chegou aqui por um link de dentro do próprio site, avise a Prefeitura pelo"," ",e.jsx(ie,{to:"/atendimento/fale-conosco",className:"text-institutional underline font-semibold",children:"Fale Conosco"})," ","â é assim que o endereço quebrado é corrigido."]})]})}),e.jsx(ge,{})]})}const FE={parecer:"Parecer de comissão",documento_oficial:"Documento oficial",ata:"Ata",lei:"Lei municipal",proposicao:"Proposição",etapa_execucao:"Etapa de processo"};function Yb(){const{codigo:t}=Uo(),[s]=fr(),i=s.get("h"),[n,l]=b.useState(null),[d,u]=b.useState(!0),[m,x]=b.useState(t??"");b.useEffect(()=>{if(!t){u(!1);return}(async()=>{const{data:g}=await X.rpc("verificar_documento",{p_codigo:t,p_hash:i??void 0});l(g??{encontrado:!1}),u(!1)})()},[t,i]);const p=g=>{g.preventDefault(),m.trim()&&(window.location.href=`/verificar/${m.trim().toUpperCase()}`)};return e.jsxs("div",{style:{maxWidth:780,margin:"0 auto",padding:"2.5rem 1.25rem 4rem"},children:[e.jsx("h1",{style:{fontSize:"1.75rem",fontWeight:800,color:"#1E293B",margin:"0 0 0.4rem"},children:"Verificação de documento"}),e.jsx("p",{style:{color:"#64748B",margin:"0 0 2rem"},children:"Informe o código impresso no documento para conferir as assinaturas."}),e.jsxs("form",{onSubmit:p,style:{display:"flex",gap:"0.6rem",marginBottom:"2rem",flexWrap:"wrap"},children:[e.jsx("input",{value:m,onChange:g=>x(g.target.value.toUpperCase()),placeholder:"Código do documento",style:{flex:1,minWidth:220,padding:"0.75rem 1rem",border:"2px s
69olid #E2E8F0",borderRadius:9,fontSize:"1.05rem",letterSpacing:"0.12em",fontFamily:"ui-monospace, monospace"}}),e.jsx("button",{type:"submit",style:{padding:"0.75rem 1.6rem",background:"#1e40af",color:"#FFF",border:"none",borderRadius:9,fontWeight:700,fontSize:"0.95rem",cursor:"pointer"},children:"Verificar"})]}),d&&t&&e.jsx("p",{style:{color:"#64748B"},children:"Consultandoâ¦"}),!d&&t&&n&&!n.encontrado&&e.jsx(wc,{cor:"#B91C1C",fundo:"#FEF2F2",borda:"#FECACA",titulo:"Documento não encontrado",texto:"Nenhum documento com este código. Confira se digitou corretamente â o código não usa as letras A, E, I, O, U nem os números 0 e 1."}),!d&&n?.encontrado&&e.jsxs(e.Fragment,{children:[n.integridade===!0&&e.jsx(wc,{cor:"#065F46",fundo:"#ECFDF5",borda:"#A7F3D0",titulo:"Documento Ãntegro",texto:"O conteúdo confere com o que foi assinado: nada foi alterado depois da assinatura."}),n.integridade===!1&&e.jsx(wc,{cor:"#B91C1C",fundo:"#FEF2F2",borda:"#FECACA",titulo:"O conteúdo NÃO confere",texto:"O arquivo que você tem é diferente do que foi assinado. Procure o órgão emissor antes de considerá-lo válido."}),n.integridade==null&&e.jsx(wc,{cor:"#92400E",fundo:"#FFFBEB",borda:"#FDE68A",titulo:"Assinaturas conferidas; conteúdo não verificado",texto:"Este endereço não trouxe a impressão digital do arquivo, então não foi possÃvel comparar o conteúdo. Use o QR do próprio documento para a conferência completa."}),e.jsxs("div",{style:{background:"#FFF",border:"1px solid #E2E8F0",borderRadius:12,padding:"1.5rem",marginTop:"1.5rem"},children:[e.jsx("div",{style:{fontSize:"0.75rem",fontWeight:700,color:"#64748B",textTransform:"uppercase",letterSpacing:"0.5px"},children:FE[n.tipo??""]??n.tipo}),e.jsx("h2",{style:{fontSize:"1.25rem",fontWeight:800,color:"#1E293B",margin:"0.35rem 0 0.75rem"},children:n.titulo}),e.jsxs("div",{style:{fontSize:"0.9rem",color:"#64748B"},children:[n.orgao,n.emitido_em&&` · emitido em ${new Date(n.emitido_em).toLocaleDateString("pt-BR")}`]}),e.jsxs("div",{style:{fontSize:"0.85rem",color:"#94A3B8",marginTop:"0.4rem",fontFamily:"ui-monospace, monospace"},children:["código ",n.codigo]})]}),e.jsx("h3",{style:{fontSize:"1rem",fontWeight:800,color:"#1E293B",margin:"2rem 0 0.85rem"},children:(n.assinaturas??[]).length===1?"Assinatura":`Assinaturas (${(n.assinaturas??[]).length})`}),(n.assinaturas??[]).length===0?e.jsx("p",{style:{color:"#64748B"},children:"Este documento ainda não tem assinatura aplicada."}):(n.assinaturas??[]).map((g,v)=>e.jsxs("div",{style:{background:"#FFF",border:"1px solid #E2E8F0",borderRadius:12,padding:"1.25rem 1.5rem",marginBottom:"0.85rem"},children:[e.jsx("div",{style:{fontWeight:700,color:"#1E293B",fontSize:"1.02rem"},children:g.nome}),g.cargo&&e.jsx("div",{style:{color:"#64748B",fontSize:"0.9rem"},children:g.cargo}),e.jsxs("dl",{style:{display:"grid",gridTemplateColumns:"auto 1fr",gap:"0.35rem 1rem",margin:"0.9rem 0 0",fontSize:"0.875rem"},children:[g.cpf&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{style:co,children:"CPF"}),e.jsx("dd",{style:uo,children:g.cpf})]}),e.jsx("dt",{style:co,children:"Assinado em"}),e.jsx("dd",{style:uo,children:g.assinado_em?new Date(g.assinado_em).toLocaleString("pt-BR"):"â"}),e.jsx("dt",{style:co,children:"Tipo"}),e.jsx("dd",{style:uo,children:g.tipo==="qualificada"?"Qualificada (ICP-Brasil)":g.tipo==="avancada"?"Avançada":"Simples"}),g.certificado_emissor&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{style:co,children:"Emissor"}),e.jsx("dd",{style:uo,children:g.certificado_emissor})]}),g.certificado_serial&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{style:co,children:"Série"}),e.jsx("dd",{style:{...uo,fontFamily:"ui-monospace, monospace"},children:g.certificado_serial})]})]})]},v)),e.jsx("p",{style:{fontSize:"0.8125rem",color:"#94A3B8",marginTop:"2rem",lineHeight:1.6},children:"Assinatura eletrônica qualificada nos termos da Lei nº 14.063/2020, art. 4º, III, e da Medida Provisória nº 2.200-2/2001."})]})]})}function wc({cor:t,fundo:s,borda:i,titulo:n,texto:l}){return e.jsxs("div",{style:{background:s,border:`1px solid ${i}`,borderRadius:12,padding:"1.15rem 1.4rem"},children:[e.jsx("div",{style:{fontWeight:800,color:t,marginBottom:"0.25rem"},children:n}
69),e.jsx("p",{style:{color:t,opacity:.85,margin:0,fontSize:"0.9rem",lineHeight:1.55},children:l})]})}const co={color:"#94A3B8",fontWeight:600,whiteSpace:"nowrap"},uo={color:"#334155",margin:0};function Ce({items:t}){return e.jsx("nav",{className:"py-3 px-6 bg-gray-50 border-b border-gray-200","aria-label":"Breadcrumb",children:e.jsx("div",{className:"container mx-auto",children:e.jsxs("ol",{className:"flex items-center gap-2 text-sm flex-wrap",children:[e.jsx("li",{children:e.jsxs(ie,{to:"/",className:"flex items-center gap-1 text-institutional hover:text-institutional-dark transition-colors",children:[e.jsx(ti,{size:14}),e.jsx("span",{children:"InÃcio"})]})}),t.map((s,i)=>{const n=i===t.length-1;return e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(ss,{size:12,className:"text-gray-400"}),s.path&&!n?e.jsx(ie,{to:s.path,className:"text-institutional hover:text-institutional-dark transition-colors",children:s.label}):e.jsx("span",{className:"text-gray-700 font-medium","aria-current":n?"page":void 0,children:s.label})]},i)})]})})})}function $E(t){return(new DOMParser().parseFromString(t,"text/html").body.textContent??"").replace(/\s+/g," ").trim()}function IE(){const[t,s]=b.useState([]),[i,n]=b.useState(!0);b.useEffect(()=>{l()},[]);const l=async()=>{try{n(!0);const u=await vo.getAtivas();s(u)}catch(u){console.error("Erro ao carregar notÃcias:",u)}finally{n(!1)}},d=u=>u?new Date(u).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"}):"-";return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1 pb-16",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"NotÃcias"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(he,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"NotÃcias"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"O que a Prefeitura publica e comunica ao municÃpio"})]})]})]})}),e.jsxs("div",{className:"container mx-auto px-6 py-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-3",children:"NotÃcias"}),e.jsx("p",{className:"text-lg text-gray-600 max-w-3xl",children:"Acompanhe todas as notÃcias e novidades da Prefeitura Municipal de Funilândia"})]}),i?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando notÃcias..."})]}):t.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(u=>e.jsxs(ie,{to:`/noticia/${u.id}`,className:"group bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-200 overflow-hidden flex flex-col",children:[e.jsx("div",{className:"overflow-hidden",children:e.jsx("img",{src:yx(u),alt:"",loading:"lazy",className:"w-full object-cover group-hover:scale-105 transition-transform duration-300",style:{aspectRatio:"4/3"}})}),e.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ee,{size:14}),e.jsx("span",{children:d(u.dataPublicacao)})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ka,{size:14}),e.jsx("span",{children:u.visualizacoes||0})]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3 group-hover:text-institutional transition-colors line-clamp-2",children:u.titulo}),e.jsx("p",{className:"text-gray-600 line-clamp-3 mb-4 flex-1",children:$E(u.conteudo)}),e.jsxs("div",{className:"flex items-center gap-2 text-institutional font-semibold",children:[e.jsx("span",{children:"Ler mais"}),e.jsx($o,{className:"group-hover:translate-x-1 transition-transform"})]})]})]},u.id))}):e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:e.jsx("p",{className:"text-gray-600 text-lg",children:"Nenhuma notÃcia publicada no momento."})})]})]}),e.jsx(ge,{})]})}const Qb="ponti-visita-aba";function wy(){try{let t=sessionStorage.getItem(Qb);return t||(t=crypto.randomUUID(),sessionStorage.setItem(Qb,t)),t}catch{return"sem-armazenamento"}}function HE(t){const s=X;return{url:`${s.supabaseUrl}/rest/v1/rpc/${t}`,chave:s.supabaseKey}}function VE(){const t=Yt(),s=b.useRef(null),i=b.useRef(Date.now()),n=b.useRef(typeof document<"u"&&document.referrer&&!document.referrer.startsWith(window.location.origin)?document.referrer:null);b.useEffect(()=>{const l=s.current,d=Math.round((Date.now()-i.current)/1e3);l&&d>0&&Xb(l,d),s.current=null,i.current=Date.now();const u=t.pathname,m=window.setTimeout(()=>{X.rpc("registrar_visita",{p_caminho:u,p_titulo:document.title||void 0,p_sessao:wy(),p_referencia:n.current??void 0,p_tipo:"pagina"}).then(({data:x})=>
69{typeof x=="string"&&(s.current=x),n.current=null}).then(void 0,()=>{})},400);return()=>window.clearTimeout(m)},[t.pathname]),b.useEffect(()=>{const l=()=>{const d=s.current;if(!d)return;const u=Math.round((Date.now()-i.current)/1e3);u>0&&Xb(d,u,!0)};return window.addEventListener("pagehide",l),()=>window.removeEventListener("pagehide",l)},[])}async function Xb(t,s,i=!1){try{const{url:n,chave:l}=HE("registrar_permanencia");await fetch(n,{method:"POST",headers:{apikey:l,Authorization:`Bearer ${l}`,"Content-Type":"application/json"},body:JSON.stringify({p_visita:t,p_segundos:s}),keepalive:i})}catch{}}function Jm(t,s){try{X.rpc("registrar_visita",{p_caminho:t,p_titulo:s??void 0,p_sessao:wy(),p_referencia:void 0,p_tipo:"download"}).then(void 0,()=>{})}catch{}}function GE(){const{id:t}=Uo(),[s,i]=b.useState(null),[n,l]=b.useState(!0),[d,u]=b.useState(0),[m,x]=b.useState(null),[p,g]=b.useState(null);b.useEffect(()=>{t&&v(t)},[t]);const v=async w=>{try{l(!0);const _=await vo.getById(w);i(_),x(await vo.galeriaDa(w).catch(()=>null)),_&&await vo.incrementarVisualizacoes(w)}catch(_){console.error("Erro ao carregar notÃcia:",_)}finally{l(!1)}},j=w=>w?new Date(w).toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"}):"-";if(n)return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(pe,{}),e.jsx("main",{id:"conteudo",tabIndex:-1,className:"flex-1 pt-8 pb-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando notÃcia..."})]})}),e.jsx(ge,{})]});if(!s)return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(pe,{}),e.jsx("main",{className:"flex-1 pt-8 pb-16",children:e.jsxs("div",{className:"container mx-auto px-6 text-center py-12",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"NotÃcia não encontrada"}),e.jsx("p",{className:"text-gray-600",children:"A notÃcia que você está procurando não existe ou foi removida."})]})}),e.jsx(ge,{})]});const N=[...s.arquivos].sort((w,_)=>w.ordem-_.ordem),k=N.filter(w=>w.tipo!=="documento"),S=N.filter(w=>w.tipo==="documento"),C=()=>{u(w=>(w+1)%k.length)},T=()=>{u(w=>(w-1+k.length)%k.length)};return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{className:"flex-1 pt-8 pb-16",children:[e.jsx(Ce,{items:[{label:"NotÃcias",path:"/noticias"},{label:s.titulo}]}),e.jsxs("div",{className:"container mx-auto px-6 py-8",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:s.titulo}),e.jsxs("div",{className:"flex items-center gap-6 text-sm text-gray-600",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ee,{size:16}),e.jsx("span",{children:j(s.dataPublicacao)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ka,{size:16}),e.jsxs("span",{children:[s.visualizacoes||0," visualizações"]})]})]})]}),k.length>0&&e.jsx("div",{className:"mb-8 bg-white rounded-lg shadow-md border border-gray-200 p-4 md:p-6",children:e.jsxs("div",{className:"relative max-w-4xl mx-auto",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-lg bg-black",children:[k[d].tipo==="imagem"?e.jsx("img",{src:k[d].url,alt:k[d].nome,className:"w-full object-contain",style:{aspectRatio:"4/3",maxHeight:"600px"}}):e.jsx("video",{src:k[d].url,controls:!0,className:"w-full object-contain",style:{aspectRatio:"16/9",maxHeight:"600px"},children:"Seu navegador não suporta a reprodução de vÃdeo."}),k.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:T,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black bg-opacity-50 hover:bg-opacity-75 text-white rounded-full p-2 md:p-3 transition-all","aria-label":"Anterior",children:e.jsx(ln,{size:24})}),e.jsx("button",{onClick:C,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black bg-opacity-50 hover:bg-opacity-75 text-white rounded-full p-2 md:p-3 transition-all","aria-label":"Próximo",children:e.jsx(ss,{size:24})})]}),k.length>1&&e.jsx("div",{className:"absolute bottom-4 left-0 right-0 flex justify-center gap-2",children:k.map((w,_)=>e.jsx("button",{onClick:()=>u(_),className:`w-2 h-2 rounded-full transition-all ${_===d?"bg-white w-8":"bg-white bg-opacity-50 hover:bg-opacity-75"}`,"aria-label":`Ir para slide ${_+1}`},_))})]}),k.length>1&&e.jsx("div",{className:"mt-4 grid grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-2",children:k.map((w,_)=>e.jsx("button",{onClick:()=>u(_),className:`relative overflow-hidden rounded-lg border-2 transition-all ${_===d?"border-institutional shadow-md":"border-gray-200 hover:border-gray-400"}`,children:w.tipo==="imagem"?e.jsx("img",{src:w.url,alt:w.nome,className:"w-full object-cover",style:{aspectRatio:"4/3"}}):e.jsx("div",{className:"w-full bg-gray-800 flex items-center justify-center",style:{aspectRatio:"4/3"}
69,children:e.jsx("svg",{className:"w-6 h-6 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"})})})},w.id))})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:s.conteudo},style:{wordWrap:"break-word"}}),e.jsx("style",{children:` 70 .prose { 71 color: #374151; 72 font-size: 16px; 73 line-height: 1.75; 74 } 75 .prose p { 76 margin-bottom: 1.25em; 77 } 78 .prose a { 79 color: #2563eb; 80 text-decoration: underline; 81 font-weight: 500; 82 } 83 .prose a:hover { 84 color: #1d4ed8; 85 } 86 .prose strong { 87 font-weight: 600; 88 color: #111827; 89 } 90 .prose em { 91 font-style: italic; 92 } 93 .prose h1, .prose h2, .prose h3 { 94 color: #111827; 95 font-weight: 700; 96 margin-top: 1.5em; 97 margin-bottom: 0.75em; 98 line-height: 1.25; 99 } 100 .prose h1 { 101 font-size: 2em; 102 } 103 .prose h2 { 104 font-size: 1.5em; 105 } 106 .prose h3 { 107 font-size: 1.25em; 108 } 109 .prose ul, .prose ol { 110 margin-top: 1em; 111 margin-bottom: 1em; 112 padding-left: 1.625em; 113 } 114 .prose li { 115 margin-top: 0.5em; 116 margin-bottom: 0.5em; 117 } 118 `})]}),S.length>0&&e.jsxs("section",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:S.length===1?"Documento":"Documentos"}),e.jsx("ul",{className:"space-y-2 list-none p-0 m-0",children:S.map(w=>e.jsx("li",{children:e.jsxs("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>Jm(w.url,w.nome),className:"flex items-center gap-3 p-3 bg-gray-50 rounded-lg border border-gray-200 hover:bg-gray-100 transition-colors",children:[e.jsx(he,{className:"text-institutional flex-shrink-0","aria-hidden":"true"}),e.jsx("span",{className:"flex-1 text-sm font-semibold text-gray-900",children:w.nome}),e.jsx(tt,{size:16,className:"text-gray-400","aria-hidden":"true"})]})},w.id))})]}),m&&m.fotos.length>0&&e.jsxs("section",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-1",children:m.titulo}),e.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:[m.fotos.length," ",m.fotos.length===1?"foto":"fotos"]}),e.jsx("ul",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 list-none p-0 m-0",children:m.fotos.map(w=>e.jsx("li",{children:e.jsx("button",{type:"button",onClick:()=>g(w.url),className:"block w-full overflow-hidden rounded-lg border border-gray-200 focus:outline-none focus:ring-2 focus:ring-institutional",children:e.jsx("img",{src:w.url,alt:w.legenda??m.titulo,loading:"lazy",className:"w-full h-32 object-cover transition-transform duration-300 hover:scale-105"})})},w.id))})]}),p&&e.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Foto ampliada",onClick:()=>g(null),onKeyDown:w=>w.key==="Escape"&&g(null),tabIndex:-1,className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",children:[e.jsx("button",{type:"button",onClick:()=>g(null),"aria-label":"Fechar",className:"absolute top-4 right-4 text-white text-3xl leading-none px-3 py-1",children:"Ã"}),e.jsx("img",{src:p,alt:"",className:"max-h-full max-w-full rounded-lg"})]})]})]}),e.jsx(ge,{})]})}function _c({icon:t,value:s,label:i,trend:n,trendType:l}){return e.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-md hover:shadow-lg hover:-translate-y-1 transition-all duration-300 border border-gray-200",children:[e.jsx("div",{className:"w-14 h-14 roun
118ded-lg bg-institutional flex items-center justify-center mb-4 text-white text-2xl",children:t}),e.jsx("div",{className:"text-3xl font-bold text-gray-900 mb-1",children:s}),e.jsx("div",{className:"text-sm text-gray-600 mb-2",children:i}),n&&e.jsxs("div",{className:`text-sm font-semibold flex items-center gap-1 ${l==="up"?"text-institutional":"text-gray-600"}`,children:[l==="up"?e.jsx(mr,{size:14}):e.jsx(Wc,{size:14}),n]})]})}function Zb({title:t,data:s,type:i="bar",subtitle:n}){const l=Math.max(...s.map(u=>u.value)),d=["#313b64","#3d4978","#5a6c7d","#7f8c9a","#ced4da"];if(i==="bar")return e.jsxs("div",{className:"bg-white rounded-xl shadow-md p-6 border border-gray-200",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:t}),n&&e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n})]}),e.jsx("div",{className:"space-y-4",children:s.map((u,m)=>{const x=u.value/l*100,p=u.color||d[m%d.length];return e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-1",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:u.label}),e.jsx("span",{className:"text-sm font-bold text-gray-900",children:u.value.toLocaleString("pt-BR")})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-3 overflow-hidden",children:e.jsx("div",{className:"h-3 rounded-full transition-all duration-500 ease-out",style:{width:`${x}%`,backgroundColor:p}})})]},m)})})]});if(i==="pie"){const u=s.reduce((m,x)=>m+x.value,0);return e.jsxs("div",{className:"bg-white rounded-xl shadow-md p-6 border border-gray-200",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:t}),n&&e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n})]}),e.jsx("div",{className:"space-y-3",children:s.map((m,x)=>{const p=m.value/u*100,g=m.color||d[x%d.length];return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-4 h-4 rounded-sm flex-shrink-0",style:{backgroundColor:g}}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex justify-between items-baseline gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700 truncate",children:m.label}),e.jsxs("span",{className:"text-xs text-gray-500 flex-shrink-0",children:[p.toFixed(1),"%"]})]}),e.jsx("span",{className:"text-xs font-bold text-gray-900",children:m.value.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})})]})]},x)})}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-baseline",children:[e.jsx("span",{className:"text-sm font-bold text-gray-700",children:"Total"}),e.jsx("span",{className:"text-lg font-bold text-institutional",children:u.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})})]})})]})}return null}const qa={pregao_eletronico:"Pregão Eletrônico",pregao_presencial:"Pregão Presencial",concorrencia:"Concorrência",concurso:"Concurso",leilao:"Leilão",dialogo_competitivo:"Diálogo Competitivo",dispensa:"Dispensa de Licitação",inexigibilidade:"Inexigibilidade",credenciamento:"Credenciamento",adesao_ata:"Adesão a Ata de Registro de Preços",chamamento_publico:"Chamamento Público",tomada_precos:"Tomada de Preços",convite:"Convite"},sd={planejada:"Planejada",publicada:"Publicada",em_andamento:"Em andamento",suspensa:"Suspensa",homologada:"Homologada",adjudicada:"Adjudicada",fracassada:"Fracassada",deserta:"Deserta",revogada:"Revogada",anulada:"Anulada"},Ym={minuta:"Minuta",vigente:"Vigente",encerrado:"Encerrado",rescindido:"Rescindido",suspenso:"Suspenso",aditado:"Aditado"},cm={transferencia_recebida:"Transferência Recebida",transferencia_realizada:"Transferência Realizada",acordo_sem_repasse:"Acordo sem Repasse"},WE={municipal:"Municipal",estadual:"Estadual",federal:"Federal",privado:"Iniciativa Privada",ong:"Organização da Sociedade Civil",consorcio:"Consórcio Público"},ev={saude:"Saúde",educacao:"Educação",assistencia_social:"Assistência Social",esporte:"Esporte",cultura:"Cultura",infraestrutura:"Infraestrutura",meio_ambiente:"Meio Ambiente",tecnologia:"Tecnologia",capacitacao:"Capacitação",outros:"Outros"},dm={pendente:"Pendente",em_pagamento:"Em pagamento",pago:"Pago",cancelado:"Cancelado",suspenso:"Suspenso"},KE={pendente:"bg-amber-100 text-amber-700",em_pagamento:"bg-blue-100 text-blue-700",pago:"bg-green-100 text-green-700",cancelado:"bg-red-100 text-red-700",suspenso:"bg-orange-100 text-orange-700"},JE={mensal:"Mensal",bimestral:"Bimestral",trimestral:"Trimestral",semestral:"Semestral",anual:"Anual"},_y={minuta:"bg-gray-100 text-gray-700",vigente:"bg-green-100 text-green-700",encerrado:"bg-blue-100 text-blue-700",rescindido:"bg-red-100 text-red-700",suspenso:"bg-amber-100 text-amber-700",aditado:"bg-purple-100 text-purple-700"},Nx={planejada:"bg-gray-100 text-gray-700",publicada:"bg-blue-100 text-blue-700",em_andamento:"bg-amber-100 text-amber-700",suspensa:"bg-orange-100 text-orange-700",homologada:"bg-green-100 text-green-700",adjudicada:"bg-green-100 text-green-700",fracassada:"bg-red-100 text-red-700",deserta:"bg-red-100 text-red-700",revogada:"bg-red-100 text-red-700",anulada:"bg-red-100 text-red-700"};function je(t){if(!t)return"â";const[s,i,n]=t.slice(0,10).split("-");return n&&i&&s?`${n}/${i}/${s}`:"â"}
118function Se(t){return(t??0).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}const Qm=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],YE=Ne("licitacoes",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"data_publicacao",ascendente:!1,nullsFirst:!1}]}),Wr={...YE,async etapas(t){const{data:s,error:i}=await X.from("licitacoes_processos").select("*, documentos:licitacoes_documentos(*)").eq("licitacao_id",t).order("ordem").order("data_etapa");if(i)throw new ee(i.message,i.code);return(s??[]).map(n=>({...n,documentos:[...n.documentos??[]].sort((l,d)=>l.ordem-d.ordem)}))},async lotes(t){const{data:s,error:i}=await X.from("licitacoes_lotes").select("*, itens:licitacoes_itens(*)").eq("licitacao_id",t).order("numero");if(i)throw new ee(i.message,i.code);return(s??[]).map(n=>({...n,itens:[...n.itens??[]].sort((l,d)=>l.numero-d.numero)}))},async contratos(t){const{data:s,error:i}=await X.from("contratos").select("id, numero, ano, objeto, contratado, valor, status").eq("licitacao_id",t).is("deletado_em",null);if(i)throw new ee(i.message,i.code);return s??[]},async anosDisponiveis(){return is("licitacoes","ano")}},$r={...Ne("contratos",{select:`*, 119 licitacao:licitacoes(id, numero, ano, modalidade), 120 contratacao_direta:contratacoes_diretas(id, numero, ano, modalidade)`,ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]}),modalidade(t){return t.licitacao?.modalidade??t.contratacao_direta?.modalidade??null},origem(t){return t.licitacao?`${qa[t.licitacao.modalidade]} ${t.licitacao.numero}/${t.licitacao.ano}`:t.contratacao_direta?`${qa[t.contratacao_direta.modalidade]} ${t.contratacao_direta.numero}/${t.contratacao_direta.ano}`:null},async anosDisponiveis(){return is("contratos","ano")}},tv={...Ne("contratacoes_diretas",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"data_contratacao",ascendente:!1,nullsFirst:!1}]}),async anosDisponiveis(){return is("contratacoes_diretas","ano")}},Xm={...Ne("convenios",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]}),async anosDisponiveis(){return is("convenios","ano")}},av={...Ne("precatorios",{ordem:[{coluna:"ano_referencia",ascendente:!1},{coluna:"ordem_cronologica",ascendente:!0,nullsFirst:!1}]}),async anosDisponiveis(){return is("precatorios","ano_referencia")}},rd={...Ne("balancetes",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"mes",ascendente:!1}]}),async doAno(t){const{data:s,error:i}=await X.from("balancetes").select("*").eq("ano",t).is("deletado_em",null).order("mes");if(i)throw new ee(i.message,i.code);const n=s??[];return{meses:n,receita:n.reduce((l,d)=>l+Number(d.receita??0),0),despesa:n.reduce((l,d)=>l+Number(d.despesa??0),0),saldo:n.reduce((l,d)=>l+Number(d.saldo??0),0)}},async anosDisponiveis(){return is("balancetes","ano")}},sv={...Ne("leis_orcamentarias",{select:"*, lei:leis_municipais(id, tipo, numero, ano, ementa)",ordem:[{coluna:"ano",ascendente:!1},{coluna:"tipo",ascendente:!0}]}),async anosDisponiveis(){return is("leis_orcamentarias","ano")}};({...Ne("fiscalizacoes",{select:`*, 121 relator:parlamentares(id, nome_parlamentar, foto_url), 122 comissao:comissoes(id, nome, sigla)`,ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]})});({...Ne("datasets",{ordem:[{coluna:"titulo",ascendente:!0}]})});const QE=Ne("relatorios_lai",{softDelete:!1,ordem:[{coluna:"ano",ascendente:!1}]}),XE=Ne("documentos_classificados",{ordem:[{coluna:"data_classificacao",ascendente:!1}]});async function is(t,s){const i=await X.from(t).select(s).is("deletado_em",null);if(i.error)throw new ee(i.error.message,i.error.code);return[...new Set((i.data??[]).map(l=>l[s]).filter(l=>typeof l=="number"))].sort((l,d)=>d-l)}const ZE={autorizada:"Autorizada",realizada:"Realizada",prestada:"Contas prestadas",aprovada:"Aprovada"},eA={contratada:"Contratada",em_execucao:"Em execução",paralisada:"Paralisada",concluida:"ConcluÃda"},tA={contratada:"bg-blue-100 text-blue-700",em_execucao:"bg-amber-100 text-amber-700",paralisada:"bg-orange-100 text-orange-700",concluida:"bg-green-100 text-green-700"},rv={...Ne("diarias",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"data_saida",ascendente:!1}]}),async anosDisponiveis(){return is("diarias","ano")}},iv={...Ne("obras",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]}),valorAtual(t){return Number(t.valor_contratado??0)+Number(t.valor_aditado??0)},async anosDisponiveis(){return is("obras","ano")}},aA={concurso_publico:"Concurso público",processo_seletivo:"Processo seletivo",teste_seletivo:"Teste seletivo",estagio:"Estágio"},sA={previsto:"Previsto",edital_publicado:"Edital publicado",inscricoes_abertas:"Inscrições abertas",em_andamento:"Em andamento",homologado:"Homologado",encerrado:"Encerrado",cancelado:"Cancelado",suspenso:"Suspenso"},rA={previsto:"bg-gray-100 text-gray-700",edital_publicado:"bg-blue-100 text-blue-700",inscricoes_abertas:"bg-green-100 text-green-700",em_andamento:"bg-amber-100 text-amber-700",homologado:"bg-indigo-100 text-indigo-700",encerrado:"bg-gray-100 text-gray-600",cancelado:"bg-red-100 text-red-700",suspenso:"bg-red-100 text-red-700"},iA={relatorio_bimestral:"Relatório bimestral",relatorio_quadrimestral:"Relatório quadrimestral (RGF)",relatorio_anual:"Relatório anual",parecer:"Parecer",auditoria:"Auditoria interna",recomendacao:"Recomendação",outro:"Outro"},nv={...Ne("concursos",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]}
122),validoAte(t){if(!t.data_homologacao||!t.validade_meses)return null;const s=t.validade_meses*(t.prorrogado?2:1),[i,n,l]=t.data_homologacao.slice(0,10).split("-").map(Number),d=n-1+s,u=i+Math.floor(d/12),m=d%12+1,x=new Date(Date.UTC(u,m,0)).getUTCDate(),p=Math.min(l,x);return`${u}-${String(m).padStart(2,"0")}-${String(p).padStart(2,"0")}`}},nA={...Ne("relatorios_controle_interno",{ordem:[{coluna:"ano",ascendente:!1}]}),async anosDisponiveis(){return is("relatorios_controle_interno","ano")}};async function oA(t=new Date().getFullYear()){const[s,i,n,l,d]=await Promise.all([Wr.contar({onde:{ano:t}}),$r.contar({onde:{status:"vigente"}}),Xm.contar({onde:{ano:t}}),X.from("servidores").select("id",{count:"exact",head:!0}).eq("situacao","ativo").is("deletado_em",null),rd.doAno(t)]);return{ano:t,licitacoesNoAno:s,contratosVigentes:i,conveniosNoAno:n,servidoresAtivos:l.count??0,receita:d.receita,despesa:d.despesa}}const um=`${X.supabaseUrl}/functions/v1/dados-abertos`,Qi={base:um,async catalogo(){const t=await fetch(um);if(!t.ok)throw new ee("Não foi possÃvel carregar o catálogo de dados abertos.");return t.json()},link(t,s,i){const n=new URLSearchParams({conjunto:t,formato:s});return i&&n.set("ano",String(i)),`${um}?${n}`}};function lA(){const{nomeCasa:t}=st(),[s,i]=b.useState(null),[n,l]=b.useState([]),[d,u]=b.useState([]),[m,x]=b.useState(!0),p=new Date().getFullYear();b.useEffect(()=>{let j=!0;return(async()=>{try{const[N,k,S,C]=await Promise.all([oA(p),rd.doAno(p),Qi.catalogo().then(w=>w.conjuntos).catch(()=>[]),Wr.listar({onde:{ano:p}})]);if(!j)return;i({ano:p,despesa:N.despesa,receita:N.receita,licitacoesNoAno:N.licitacoesNoAno,servidoresAtivos:N.servidoresAtivos,datasets:S.length}),l(k.meses);const T=new Map;for(const w of C){const _=String(w.modalidade??"outras");T.set(_,(T.get(_)??0)+1)}u([...T.entries()].map(([w,_])=>({label:w.replace(/_/g," "),value:_})).sort((w,_)=>_.value-w.value))}catch{}finally{j&&x(!1)}})(),()=>{j=!1}},[p]);const g=n.filter(j=>j.despesa!==null).map(j=>({label:Qm[j.mes-1]??String(j.mes),value:Number(j.despesa)})),v=(j,N)=>m?"â¦":j===void 0||j===0?"â":N(j);return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"pb-12 md:pb-16",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(on,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Portal da Transparência"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"Receitas, despesas, contratos e pessoal, abertos à consulta"})]})]})]})}),e.jsxs("div",{className:"container mx-auto px-4 md:px-6 py-6 md:py-8",children:[e.jsxs("div",{className:"mb-6 md:mb-8",children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-gray-900 mb-2 md:mb-3",children:"Portal da Transparência"}),e.jsxs("p",{className:"text-sm md:text-base lg:text-lg text-gray-600 max-w-3xl",children:["Acompanhe as informações sobre gastos públicos, licitações, servidores e dados abertos da ",t,". Transparência é um direito garantido pela Lei de Acesso à Informação (LAI)."]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-6 md:mb-8",children:[e.jsx(_c,{icon:e.jsx(ut,{}),value:v(s?.despesa,Se),label:`Despesa em ${p}`}),e.jsx(_c,{icon:e.jsx(he,{}),value:v(s?.licitacoesNoAno,String),label:`Licitações em ${p}`}),e.jsx(_c,{icon:e.jsx(ot,{}),value:v(s?.servidoresAtivos,String),label:"Servidores ativos"}),e.jsx(_c,{icon:e.jsx(tt,{}),value:v(s?.datasets,String),label:"Datasets publicados"})]}),(g.length>0||d.length>0)&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 md:gap-6 mb-6 md:mb-8",children:[g.length>0&&e.jsx(Zb,{title:"Despesa mês a mês",subtitle:`Balancetes publicados de ${p}`,data:g,type:"bar"}),d.length>0&&e.jsx(Zb,{title:"Licitações por modalidade",subtitle:`Processos abertos em ${p}`,data:d,type:"bar"})]}),!m&&g.length===0&&d.length===0&&e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 mb-6 md:mb-8 text-sm text-gray-600",children:["Ainda não há balancetes nem licitações publicados para ",p,". Os exercÃcios anteriores estão em"," ",e.jsx(ie,{to:"/trans
122parencia/balancetes",className:"text-institutional hover:underline",children:"Balancetes"})," ","e"," ",e.jsx(ie,{to:"/transparencia/licitacoes",className:"text-institutional hover:underline",children:"Licitações"}),"."]}),e.jsxs("div",{className:"mb-6 md:mb-8",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-gray-900 mb-4 md:mb-6",children:"Acesso Rápido"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 md:gap-4",children:[e.jsx(ie,{to:"/transparencia/licitacoes",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(he,{size:20,className:"md:hidden"}),e.jsx(he,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors",children:"Licitações e Contratos"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Processos licitatórios, editais, contratos e aquisições"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Ver detalhes â"})]})]})}),e.jsx(ie,{to:"/transparencia/servidores",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(ot,{size:20,className:"md:hidden"}),e.jsx(ot,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors",children:"Servidores e Folha"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Relação de servidores, folha de pagamento e atos de pessoal"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Ver detalhes â"})]})]})}),e.jsx(ie,{to:"/transparencia/dados-abertos",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(tt,{size:20,className:"md:hidden"}),e.jsx(tt,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors",children:"Dados Abertos"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Baixe as bases da Prefeitura em JSON e XML, por ano"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Ver detalhes â"})]})]})}),e.jsx(ie,{to:"/atendimento/esic",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(We,{size:20,className:"md:hidden"}),e.jsx(We,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors",children:"e-SIC"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Sistema Eletrônico de Informações ao Cidadão"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Ver detalhes â"})]})]})}
122),e.jsx(ie,{to:"/transparencia/lgpd",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(he,{size:20,className:"md:hidden"}),e.jsx(he,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors",children:"LGPD"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Lei Geral de Proteção de Dados Pessoais"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Ver detalhes â"})]})]})}),e.jsx("a",{href:"https://www.contaspublicas.pr.gov.br/Radar",target:"_blank",rel:"noopener noreferrer",className:"bg-white p-4 md:p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 group",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(mr,{size:20,className:"md:hidden"}),e.jsx(mr,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-1 group-hover:text-institutional transition-colors flex items-center gap-2",children:["Radar TCE-PR",e.jsx(Ke,{size:14,className:"text-gray-400 md:hidden"}),e.jsx(Ke,{size:16,className:"text-gray-400 hidden md:block"})]}),e.jsx("p",{className:"text-xs md:text-sm text-gray-600 mb-2 md:mb-3",children:"Portal do Tribunal de Contas do Estado do Paraná"}),e.jsx("span",{className:"text-xs md:text-sm font-semibold text-institutional",children:"Acessar portal â"})]})]})})]})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 md:p-6",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsxs("div",{className:"w-10 h-10 md:w-12 md:h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:[e.jsx(We,{size:20,className:"md:hidden"}),e.jsx(We,{size:24,className:"hidden md:block"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-base md:text-lg font-bold text-gray-900 mb-2",children:"Lei de Acesso à Informação (LAI)"}),e.jsx("p",{className:"text-xs md:text-sm text-gray-700 mb-3",children:"A Lei nº 12.527/2011 garante o acesso a informações públicas. Todo cidadão tem o direito de solicitar informações aos órgãos públicos, que devem responder em até 20 dias (prorrogáveis por mais 10)."}),e.jsxs(ie,{to:"/atendimento/esic",className:"inline-flex items-center gap-2 text-xs md:text-sm font-semibold text-institutional hover:text-institutional-dark transition-colors",children:["Fazer uma solicitação via e-SIC",e.jsx(Ke,{size:12,className:"md:hidden"}),e.jsx(Ke,{size:14,className:"hidden md:block"})]})]})]})})]})]}),e.jsx(ge,{})]})}function da({titulo:t,descricao:s,icone:i,rota:n,trilhaIntermediaria:l=[],children:d}){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},...l,{label:t,path:n}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:i}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:t}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:s})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6",children:d})})]}),e.jsx(ge,{})]})}function gr({titulo:t,children:s}){return e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Qr,{size:24,className:"text-institutional mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:t}),e.jsx("div",{className:"text-sm text-gray-700 space-y-2",children:s})]})]})})}function br({busca:t,aoBuscar:s,placeholderBusca:i="Digite para buscar...",rotuloBusca:n="Buscar",filtros:l=[],aoLimpar:d,temFiltroAt
122ivo:u}){return e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-8",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"md:col-span-3",children:[e.jsxs("label",{htmlFor:"busca-transparencia",className:"block text-sm font-semibold text-gray-700 mb-2",children:[e.jsx(yt,{size:16,className:"inline mr-2"}),n]}),e.jsx("input",{id:"busca-transparencia",type:"text",placeholder:i,value:t,onChange:m=>s(m.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),l.map(m=>e.jsxs("div",{children:[e.jsxs("label",{htmlFor:`filtro-${m.id}`,className:"block text-sm font-semibold text-gray-700 mb-2",children:[e.jsx(Ho,{size:16,className:"inline mr-2"}),m.rotulo]}),e.jsx("select",{id:`filtro-${m.id}`,value:m.valor,onChange:x=>m.aoMudar(x.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:m.opcoes.map(x=>e.jsx("option",{value:x.valor,children:x.rotulo},x.valor))})]},m.id)),u&&e.jsx("div",{className:"flex items-end",children:e.jsx("button",{onClick:d,className:"w-full px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors",children:"Limpar filtros"})})]})})}function jt({rotulo:t,valor:s,icone:i,compacto:n=!1}){return e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:t}),e.jsx("p",{className:`${n?"text-2xl":"text-3xl"} font-bold text-gray-900`,children:s})]}),e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:i})]})})}function Go({children:t}){return e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:t})}function ua({mensagem:t="Carregando..."}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-12 text-center border border-gray-200",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:t})]})}function ha({mensagem:t,aoTentarNovamente:s}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-12 text-center border border-red-200",children:[e.jsx(r2,{size:40,className:"text-red-500 mx-auto mb-4"}),e.jsx("p",{className:"text-red-700 font-semibold",children:t}),e.jsx("button",{onClick:s,className:"mt-4 px-6 py-2 bg-institutional text-white rounded-lg hover:bg-institutional-dark transition-colors",children:"Tentar novamente"})]})}function zs({mensagem:t="Nenhum registro encontrado com os filtros selecionados.",aoLimpar:s}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-12 text-center border border-gray-200",children:[e.jsx(Qr,{size:40,className:"text-gray-300 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600 text-lg",children:t}),s&&e.jsx("button",{onClick:s,className:"mt-4 px-6 py-2 bg-institutional text-white rounded-lg hover:bg-institutional-dark transition-colors",children:"Limpar filtros"})]})}function es({texto:t,cor:s}){return e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${s}`,children:t})}function wx({titulo:t,subtitulo:s,badge:i}){return e.jsx("div",{className:"bg-gradient-to-r from-institutional to-institutional-dark text-white p-6",children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-1",children:t}),s&&e.jsx("p",{className:"text-blue-100",children:s})]}),i]})})}function Rt({rotulo:t,valor:s,icone:i,destaque:n=!1}){return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 mb-1",children:[i,e.jsx("span",{className:"text-xs font-semibold",children:t})]}),e.jsx("p",{className:`text-gray-900 ${n?"font-bold text-lg":"font-semibold"}`,children:s})]})}function cA(t){return/\/\s*\d{2,4}\s*$/.test(t)}function bd(t,s,i="â"){const n=t==null?"":String(t).trim();return n?s==null||s===""||cA(n)?n:`${n}/${s}`:i}function dA({id:t,numero:s,ano:i,modalidade:n,objeto:l,dataAbertura:d,valor:u,rotuloValor:m="Valor Estimado",status:x}){return e.jsxs(ie,{to:`/transparencia/licitacao/${t}`,className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-all duration-300 border border-gray-200 p-6 block group",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4 gap-3",children:[e.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(he,{size:20})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 group-hover:text-institutional transition-colors",children:bd(s,i)}),e.jsx("p",{className:"text-sm text-gray-600",children:qa[n]})]})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold flex-shrink-0 ${Nx[x]}`,children:sd[x]})]}),e.jsx("p",{className:"text-sm text-gray-700 mb-4 line-clamp-2",children:l}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ee,{size:16,className:"text-gray-400 flex-shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-500",children:"Abertura"}),e.jsx("p",{className:"text-sm font-semibold text-gray-900",children:je(d)})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ut,{size:16,className:"text-gray-400 flex-shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-500",children:m}),e.jsx("p",{className:"text-sm font-semibold text-gray-900",children:Se(u)})]})]})]})]})}const uA=["planejada","publicada","em_andamento","suspensa"],hA=["homologada","adjudicada","fracassada","deserta","revogada","anulada"];function mA(){const[t,s]=b.useState("em_andamento"),[i,n]=b.useState("lista"),[l,d]=b.useState([]),[u,m]=b.useState(!1),[x,p]=b.useState(null),[g,v]=b.useState(!1),[j,N]=b.useState(""),[k,S]=b.useState("todos"),[C,T]=b.useState("todos"),[w,_]=b.useState("todos"),E=b.useCallback(async()=>
122{if(!g){m(!0),p(null);try{d(await Wr.listar()),v(!0)}catch(J){p(J instanceof Error?J.message:"Não foi possÃvel carregar as licitações.")}finally{m(!1)}}},[g]);b.useEffect(()=>{E()},[E]);const O=b.useMemo(()=>l.filter(J=>(t==="em_andamento"?uA:hA).includes(J.status)),[l,t]),$=b.useMemo(()=>[...new Set(O.map(J=>J.ano))].sort((J,Me)=>Me-J),[O]),z=b.useMemo(()=>[...new Set(O.map(J=>J.modalidade))],[O]),Q=b.useMemo(()=>[...new Set(O.map(J=>J.status))],[O]),K=b.useMemo(()=>{const J=j.trim().toLowerCase();return O.filter(Me=>C!=="todos"&&String(Me.ano)!==C||k!=="todos"&&Me.modalidade!==k||w!=="todos"&&Me.status!==w?!1:J?[Me.numero,Me.objeto,Me.vencedor,Me.processo_administrativo].some(Bt=>(Bt??"").toLowerCase().includes(J)):!0)},[O,j,C,k,w]),we=()=>{N(""),T("todos"),S("todos"),_("todos")},Y=j!==""||C!=="todos"||k!=="todos"||w!=="todos",fe=J=>{s(J),we()};return e.jsx(da,{titulo:"Licitações e Contratos",descricao:"Acompanhe todos os processos licitatórios, editais, contratos e aquisições",icone:e.jsx(he,{size:32}),rota:"/transparencia/licitacoes",children:e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-6",children:[e.jsx("div",{className:"inline-flex border-b border-gray-200",children:[{a:"em_andamento",rotulo:"Em andamento"},{a:"concluidos",rotulo:"ConcluÃdos"}].map(J=>e.jsx("button",{onClick:()=>fe(J.a),"aria-pressed":t===J.a,className:`px-4 py-2 text-sm font-semibold border-b-2 -mb-px transition-colors ${t===J.a?"border-institutional text-institutional":"border-transparent text-gray-500 hover:text-institutional"}`,children:J.rotulo},J.a))}),e.jsx("div",{className:"inline-flex bg-white rounded-lg border border-gray-200 p-1",children:[{l:"lista",icone:e.jsx(b2,{size:16}),rotulo:"Lista"},{l:"cards",icone:e.jsx(hx,{size:16}),rotulo:"Cartões"}].map(J=>e.jsx("button",{onClick:()=>n(J.l),"aria-label":`Ver em ${J.rotulo.toLowerCase()}`,"aria-pressed":i===J.l,className:`p-2 rounded transition-colors ${i===J.l?"bg-institutional text-white":"text-gray-500 hover:text-institutional"}`,children:J.icone},J.l))})]}),e.jsx(br,{busca:j,aoBuscar:N,rotuloBusca:"Buscar por número, objeto, vencedor ou processo",placeholderBusca:"Ex: 001/2026 ou material de expediente",filtros:[{id:"modalidade",rotulo:"Modalidade",valor:k,aoMudar:S,opcoes:[{valor:"todos",rotulo:"Todas as modalidades"},...z.map(J=>({valor:J,rotulo:qa[J]}))]},{id:"ano",rotulo:"ExercÃcio",valor:C,aoMudar:T,opcoes:[{valor:"todos",rotulo:"Todos os exercÃcios"},...$.map(J=>({valor:String(J),rotulo:String(J)}))]},{id:"status",rotulo:"Situação",valor:w,aoMudar:_,opcoes:[{valor:"todos",rotulo:"Todas as situações"},...Q.map(J=>({valor:J,rotulo:sd[J]}))]}],aoLimpar:we,temFiltroAtivo:Y}),u?e.jsx(ua,{mensagem:"Carregando licitações..."}):x?e.jsx(ha,{mensagem:x,aoTentarNovamente:()=>{v(!1),E()}}):K.length===0?e.jsx(zs,{mensagem:t==="em_andamento"?"Nenhum certame em andamento no momento.":"Nenhum certame concluÃdo encontrado.",aoLimpar:Y?we:void 0}):i==="cards"?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:K.map(J=>e.jsx(dA,{id:J.id,numero:J.numero,ano:J.ano,modalidade:J.modalidade,objeto:J.objeto,dataAbertura:J.data_abertura,valor:t==="concluidos"?J.valor_homologado??J.valor_estimado:J.valor_estimado,rotuloValor:t==="concluidos"?"Valor Homologado":"Valor Estimado",status:J.status},J.id))}):e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Certame"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Objeto"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Abertura"}),e.jsx("th",{className:"text-right p-4 font-semibold text-gray-700",children:t==="concluidos"?"Homologado":"Estimado"}),t==="concluidos"&&e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Vencedor"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Situação"}),e.jsx("th",{className:"p-4"})]})}),e.jsx("tbody",{children:K.map(J=>e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0 hover:bg-gray-50",children:[e.jsxs("td",{className:"p-4",children:[e.jsxs("div",{className:"font-semibold text-gray-900",children:[J.numero,"/",J.ano]}),e.jsx("div",{className:"text-xs text-gray-500",children:qa[J.modalidade]})]}),e.jsx("td",{className:"p-4 text-gray-700 max-w-md",children:e.jsx("span",{className:"line-clamp-2",children:J.objeto})}),e.jsx("td",{className:"p-4 text-gray-600 whitespace-nowrap",children:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ee,{size:12,className:"text-gray-400"}),je(J.data_abertura)]})}),e.jsx("td",{className:"p-4 text-right font-mono text-gray-900 whitespace-nowrap",children:e.jsxs("span",{className:"flex items-center justify-end gap-1",children:[e.jsx(ut,{size:12,className:"text-gray-400"}),Se(t==="concluidos"?J.valor_homologado??J.valor_estimado:J.valor_estimado)]})}),t==="concluidos"&&e.jsx("td",{className:"p-4 text-gray-700",children:J.vencedor??"â"}),e.jsx("td",{className:"p-4",children:e.jsx(es,{texto:sd[J.status],cor:Nx[J.status]})}),e.jsx("td",{className:"p-4 text-right",children:e.jsxs(ie,{to:`/transparencia/licitacao/${J.id}`,className:"inline-flex items-center gap-1 text-institutional hover:text-institutional-dark font-semibold text-sm",children:["Detalhes ",e.jsx(ss,{size:14})]})})]},J.id))})]})})})]})})}const ov=["Preparatória","Divulgação do Edital","Propostas e Lances","Julgamento","Habilitação","Recursal","Homologação","Contratação"],Sc="Encerrada sem contratação";function xA(t,s,i=[]){const l=(s===Sc||t.some(m=>m.etapa===Sc)?[...ov,Sc]:ov).filter(m=>!i.includes(m)||t.some(x=>x.etapa===m)),d=s?l.indexOf(s):-1,u=l.map((m,x)=>{const p=t.find(v=>v.etapa===m);let g;return m===s?g="atual":s===Sc?g=p?"concluida":"pendente":d>=0?g=x<d?"concluida":"pendente":g=p?"concluida":"pendente",{nome:m,etapa:p,situacao:g}});for(const m of t)l.includes(m.etapa)||u.push({nome:m.etapa,etapa:m,situacao:m.etapa===s?"atual":"concluida"});return u}const hm="/transparencia/licitacoes";function lv({children:t}){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
122),e.jsx("main",{id:"conteudo",tabIndex:-1,className:"flex-1 flex items-center justify-center px-6",children:e.jsx("div",{className:"text-center max-w-lg",children:t})}),e.jsx(ge,{})]})}function fA(){const{id:t}=Uo(),[s,i]=b.useState(null),[n,l]=b.useState([]),[d,u]=b.useState([]),[m,x]=b.useState([]),[p,g]=b.useState(!0),[v,j]=b.useState(!1),N=b.useCallback(async()=>{if(!t){j(!0),g(!1);return}g(!0);try{const T=await Wr.obter(t);if(!T){j(!0);return}i(T);const[w,_,E]=await Promise.all([Wr.etapas(t),Wr.contratos(t),Wr.lotes(t)]);l(w),u(E),x(_)}catch{j(!0)}finally{g(!1)}},[t]);if(b.useEffect(()=>{N()},[N]),p)return e.jsxs(lv,{children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500",children:"Carregando licitação..."})]});if(v||!s)return e.jsxs(lv,{children:[e.jsx(We,{size:56,className:"text-red-400 mx-auto mb-4"}),e.jsx("h2",{className:"text-2xl font-bold text-red-900 mb-2",children:"Licitação não encontrada"}),e.jsx("p",{className:"text-gray-500 mb-6",children:"O certame que você procura não existe ou não está disponÃvel para consulta."}),e.jsxs(ie,{to:hm,className:"inline-flex items-center gap-2 px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(wo,{size:16})," Voltar à s licitações"]})]});const k=s.modalidade,S=s.status,C=`${qa[k]} nº ${s.numero}/${s.ano}`;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-10",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Licitações",path:hm},{label:`${s.numero}/${s.ano}`,path:""}]}),e.jsxs("div",{className:"mt-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-14 h-14 bg-white/10 backdrop-blur rounded-xl flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(he,{size:26})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold leading-snug",children:C}),e.jsx("p",{className:"text-blue-100 mt-2 line-clamp-2",children:s.objeto})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs(ie,{to:hm,className:"inline-flex items-center gap-2 text-institutional hover:text-institutional-dark font-semibold mb-8 transition-colors",children:[e.jsx(wo,{size:16})," Voltar à s licitações"]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Objeto"}),e.jsx("p",{className:"text-gray-700 whitespace-pre-wrap",children:s.objeto})]}),s.observacoes&&e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ht,{size:20,className:"text-institutional mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Observações"}),e.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-wrap",children:s.observacoes})]})]})}),d.some(T=>T.itens.length>0)&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-5",children:d.length>1||d.some(T=>T.descricao)?"Lotes e itens":"Itens"}),e.jsx("div",{className:"space-y-6",children:d.filter(T=>T.itens.length>0).map(T=>{const w=d.length>1||!!T.descricao;return e.jsxs("div",{children:[w&&e.jsxs("h3",{className:"font-semibold text-gray-900 mb-2",children:["Lote ",T.numero,T.descricao?` â ${T.descricao}`:""]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full min-w-[640px] text-sm",children:[e.jsx("caption",{className:"sr-only",children:w?`Itens do lote ${T.numero}`:"Itens da licitação"}),e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-50 text-left text-xs uppercase text-gray-700",children:[e.jsx("th",{scope:"col",className:"p-2 w-12",children:"Item"}),e.jsx("th",{scope:"col",className:"p-2",children:"Descritivo"}),e.jsx("th",{scope:"col",className:"p-2 w-20",children:"Unid."}),e.jsx("th",{scope:"col",className:"p-2 w-24 text-right",children:"Qtd."}),e.jsx("th",{scope:"col",className:"p-2 w-32 text-right",children:"Valor unitário"}),e.jsx("th",{scope:"col",className:"p-2 w-32 text-right",children:"Valor global"})]})}),e.jsx("tbody",{children:T.itens.map(_=>e.jsxs("tr",{className:"border-b border-gray-100 align-top",children:[e.jsx("td",{className:"p-2 text-gray-700",children:_.numero}),e.jsx("td",{className:"p-2 text-gray-900 whitespace-pre-wrap",children:_.descricao}),e.jsx("td",{className:"p-2 text-gray-700",children:_.unidade}),e.jsx("td",{className:"p-2 text-right text-gray-700",children:Number(_.quantidade).toLocaleStr
122ing("pt-BR",{maximumFractionDigits:4})}),e.jsx("td",{className:"p-2 text-right text-gray-700",children:Se(Number(_.valor_unitario))}),e.jsx("td",{className:"p-2 text-right font-semibold text-gray-900",children:Se(Number(_.valor_total))})]},_.id))}),e.jsx("tfoot",{children:e.jsxs("tr",{children:[e.jsx("td",{colSpan:5,className:"p-2 text-right font-semibold text-gray-700",children:w?`Total do lote ${T.numero}`:"Total"}),e.jsx("td",{className:"p-2 text-right font-bold text-institutional-dark",children:Se(Number(T.valor_total))})]})})]})})]},T.id)})}),e.jsxs("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-2 rounded-lg bg-institutional-dark px-4 py-3 text-white",children:[e.jsx("span",{className:"font-semibold",children:"Valor estimado total"}),e.jsx("strong",{className:"text-lg",children:Se(d.reduce((T,w)=>T+Number(w.valor_total),0))})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Andamento do Processo"}),s.etapa_atual&&e.jsxs("p",{className:"text-sm text-gray-700 mb-5",children:["Etapa atual: ",e.jsx("strong",{className:"text-institutional-dark",children:s.etapa_atual})]}),e.jsx("ol",{className:"relative border-l-2 border-gray-200 ml-3 space-y-6",children:xA(n,s.etapa_atual,s.etapas_excluidas).map(({nome:T,etapa:w,situacao:_})=>e.jsxs("li",{className:"ml-6",children:[e.jsx("span",{"aria-hidden":"true",className:`absolute -left-[9px] w-4 h-4 rounded-full border-2 ${_==="atual"?"bg-institutional-darker border-white ring-2 ring-institutional":_==="concluida"?"bg-institutional border-white":"bg-white border-gray-400"}`}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-1",children:[e.jsx("h3",{className:`font-semibold ${_==="pendente"?"text-gray-600":"text-gray-900"}`,children:T}),e.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full ${_==="atual"?"bg-institutional text-white":_==="concluida"?"bg-institutional/10 text-institutional-dark":"bg-gray-100 text-gray-700"}`,children:_==="atual"?"Etapa atual":_==="concluida"?"ConcluÃda":"Não executada"}),e.jsx("span",{className:"text-xs text-gray-600",children:w?je(w.data_etapa):"Sem data"})]}),w?.descricao&&e.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-wrap",children:w.descricao}),w&&w.documentos.length>0&&e.jsx("ul",{className:"mt-2 space-y-1",children:w.documentos.map(E=>e.jsx("li",{children:e.jsxs("a",{href:E.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm text-institutional hover:underline",children:[e.jsx(tt,{size:13,"aria-hidden":"true"})," ",E.titulo,e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]})},E.id))})]},T))})]}),m.length>0&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-5",children:["Contratos Decorrentes (",m.length,")"]}),e.jsx("div",{className:"space-y-3",children:m.map(T=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-4 rounded-lg border border-gray-200",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"font-semibold text-gray-900",children:["Contrato nº ",T.numero,"/",T.ano]}),e.jsx("p",{className:"text-sm text-gray-600 line-clamp-1",children:T.objeto}),e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1 mt-1",children:[e.jsx(Nt,{size:11})," ",T.contratado]})]}),e.jsx("span",{className:"font-mono font-semibold text-gray-900",children:Se(T.valor)})]},T.id))}),e.jsxs(ie,{to:"/transparencia/contratos",className:"inline-flex items-center gap-1 text-sm text-institutional hover:underline mt-4",children:["Ver todos os contratos ",e.jsx(Ke,{size:13})]})]}),s.link_pncp&&e.jsxs("a",{href:s.link_pncp,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 p-4 rounded-lg bg-white shadow-md border border-gray-200 hover:border-institutional/40 transition-all group",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ke,{size:20,className:"text-institutional","aria-hidden":"true"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-semibold text-gray-800 group-hover:text-institutional transition-colors",children:"Consultar no PNCP"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Portal Nacional de Contratações Públicas (abre em nova aba)"})]})]})]}),e.jsxs("aside",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Informações Gerais"}),e.jsxs("dl",{className:"space-y-4 text-sm",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-gray-500 mb-1",children:"Situação"}),e.jsx("dd",{children:e.jsx(es,{texto:sd[S],cor:Nx[S]})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-gray-500 mb-1",children:"Modalidade"}),e.jsx("dd",{className:"text-gray-900 font-semibold",children:qa[k]})]}),s.processo_administrativo&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-gray-500 mb-1",children:"Processo administrativo"}),e.jsx("dd",{className:"text-gray-900",children:s.processo_administrativo})]}),e.jsxs("div",{children:[e.jsxs("dt",{className:"text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(Ee,{size:12})," Publicação"]}),e.jsx("dd",{className:"text-gray-900",children:je(s.data_publicacao)})]}),e.jsxs("div",{children:[e.jsxs("dt",{className:"text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(Ee,{size:12})," Abertura"]}),e.jsx("dd",{className:"text-gray-900",children:je(s.data_abertura)})]}),s.valor_estimado!==null&&e.jsxs("div",{children:[e.jsxs("dt",{className:"text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(ut,{size:12})," Valor estimado"]}),e.jsx("dd",{className:"text-gray-900 font-semibold font-mono",children:Se(s.valor_estimado)})]}),s.responsavel&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-gray-500 mb-1",children:"Responsável"}),e.jsx("dd",{className:"text-gray-900",children:s.responsavel})]})]})]}),s.vencedor&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-900 mb-3 flex items-center gap-2",children:[e.jsx(De,{size:18,className:"text-green-600"}),"Empresa Vencedora"]}),e.jsx("p",{className:"text-gray-900 font-semibold",children:s.vencedor}),s.vencedor_documento&&e.jsxs("p",{className:"text-sm text-gray-600 mt-1",children:["CNPJ/CPF: ",s.vencedor_documento]}),s.valor_homologado!==null&&e.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100",children:[e.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Valor homologado"}),e.jsx("p",{className:"text-lg font-bold font-mono text-gray-900",children:Se(s.valor_homologado)}),s.data_homologacao&&e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["em ",je(s.data_homologacao)]})]})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Precisa de ajuda?"}),e.jsx("p",{className:"text-sm text-gray-700 mb-4",children:"Dúvidas sobre este certame podem ser encaminhadas pelos canais de atendimento da Prefeitura."}),e.jsxs(ie,{to:"/atendimento/esic",className:"inline-flex items-center gap-2 text-sm text-institutional font-semibold hover:underline",children:["Solicitar informação pelo e-SIC ",e.jsx(Ke,{size:13})]})]})]})]})]})})]}),e.jsx(ge,{})]})}const id={efetivo:"Efetivo",comissionado:"Cargo em Comissão",contratado_temporario:"Contratação Temporária",estagiario:"Estagiário",terceirizado:"Terceirizado",eletivo:"Agente PolÃtico",cedido:"Cedido",aposentado:"Aposentado"},pA={ativo:"Ativo",licenca:"Em licença",afastado:"Afastado",cedido:"Cedido",exonerado:"Exonerado",aposentado:"Aposentado",falecido:"Falecido",demitido:"Demitido"},gA={ativo:"bg-green-100 text-green-700",licenca:"bg-amber-100 text-amber-700",afastado:"bg-amber-100 text-amber-700",cedido:"bg-blue-100 text-blue-700",exonerado:"bg-gray-100 text-gray-700",aposentado:"bg-gray-100 text-gray-700",falecido:"bg-gray-100 text-gray-700",demitido:"bg-red-100 text-red-700"},Sy=`*, 123 cargo:cargos_organograma(id, nome, vinculo), 124 lotacao:organograma_nos(id, nome, sigla), 125 simbolo:padrao_remuneratorio_simbolos(id, simbolo, valor)`,mm=Ne("servidores_publico",{select:Sy,ordem:[{coluna:"nome",ascendente:!0}]}),_x={...mm,async quadroEfetivo(){const{data:t,error:s}=await X.from("servidores_publico").select(Sy).not("vinculo","in",'("estagiario","terceirizado")').is("deletado_em",null).order("nome");if(s)throw new ee(s.message,s.code);return t??[]},async porVinculo(t){return mm.listar({onde:{vinculo:t}})},async estagiarios(){return mm.listar({onde:{vinculo:"estagiario"}})},async estatisticas(){const{data:t,error:s}=await X.from("servidores").select("vinculo, situacao, remuneracao_bruta").is("deletado_em",null);if(s)throw new ee(s.message,s.code);const i=t??[],n={},l={};for(const d of i)n[d.vinculo]=(n[d.vinculo]??0)+1,l[d.situacao]=(l[d.situacao]??
1250)+1;return{total:i.length,ativos:i.filter(d=>d.situacao==="ativo").length,porVinculo:n,porSituacao:l}}},bA="*, contrato:contratos(id, numero, ano, objeto), lotacao:organograma_nos(id, nome)",cv=Ne("terceirizados_publico",{select:bA,ordem:[{coluna:"nome",ascendente:!0}]}),vA={...cv,async ativos(){return cv.listar({onde:{ativo:!0}})}};Ne("cargos_organograma",{select:"*, simbolo:padrao_remuneratorio_simbolos(id, simbolo, valor), lei:leis_municipais(id, numero, ano)",ordem:[{coluna:"nome",ascendente:!0}]});const yA=Ne("padrao_remuneratorio_simbolos",{ordem:[{coluna:"ordem",ascendente:!0},{coluna:"simbolo",ascendente:!0}]}),jA={...Ne("padrao_remuneratorio_cargos",{select:"*, simbolo:padrao_remuneratorio_simbolos(id, simbolo, valor)",ordem:[{coluna:"ordem",ascendente:!0},{coluna:"cargo_nome",ascendente:!0}]}),async ativos(){return Ne("padrao_remuneratorio_cargos",{select:"*, simbolo:padrao_remuneratorio_simbolos(id, simbolo, valor)",ordem:[{coluna:"ordem",ascendente:!0},{coluna:"cargo_nome",ascendente:!0}]}).listar({onde:{ativo:!0}})}},xm=Ne("organograma_nos",{ordem:[{coluna:"ordem",ascendente:!0},{coluna:"nome",ascendente:!0}]}),NA={...xm,async desenho(){return(await xm.listar({onde:{ativo:!0}})).map(s=>({id:s.id,parentId:s.parent_id,ordem:s.ordem,titulo:s.nome,sigla:s.sigla??void 0,subtitulo:s.descricao??void 0,icone:s.icone,cor:s.cor,variante:s.variante,orientacaoFilhos:s.orientacao_filhos,rotuloProprio:s.rotulo_proprio??void 0,rotuloNivelFilhos:s.rotulo_nivel_filhos??void 0,cargoTexto:s.cargo_texto??void 0,pessoaTipo:s.pessoa_tipo??void 0,pessoasIds:s.pessoas_ids??[]}))},async arvore(){const t=await xm.listar({onde:{ativo:!0}}),s=new Map;for(const n of t)s.set(n.id,{...n,filhos:[]});const i=[];for(const n of s.values()){const l=n.parent_id?s.get(n.parent_id):void 0;l?l.filhos.push(n):i.push(n)}return i}},wA={...Ne("atos_pessoal",{select:"*, servidor:servidores(id, nome, matricula)",ordem:[{coluna:"ano",ascendente:!1},{coluna:"data_ato",ascendente:!1,nullsFirst:!1}]}),async publicados(){return Ne("atos_pessoal",{select:"*, servidor:servidores(id, nome, matricula)",ordem:[{coluna:"ano",ascendente:!1},{coluna:"data_ato",ascendente:!1,nullsFirst:!1}]}).listar({onde:{publicado:!0}})},async anosDisponiveis(){const{data:t,error:s}=await X.from("atos_pessoal").select("ano").eq("publicado",!0).is("deletado_em",null);if(s)throw new ee(s.message,s.code);return[...new Set((t??[]).map(i=>i.ano))].sort((i,n)=>n-i)}};({...Ne("folha_pagamento",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"mes",ascendente:!1},{coluna:"nome",ascendente:!0}]})});Ne("gabinetes",{select:"*, parlamentar:parlamentares(id, nome_parlamentar, foto_url)",ordem:[{coluna:"nome",ascendente:!0}]});Ne("assessores_publico",{select:"*, gabinete:gabinetes(id, nome)",ordem:[{coluna:"nome",ascendente:!0}]});const _A={efetivo:"bg-green-100 text-green-800",comissionado:"bg-blue-100 text-blue-800",contratado_temporario:"bg-yellow-100 text-yellow-800",estagiario:"bg-purple-100 text-purple-800",terceirizado:"bg-orange-100 text-orange-800",eletivo:"bg-indigo-100 text-indigo-800",cedido:"bg-cyan-100 text-cyan-800",aposentado:"bg-gray-100 text-gray-800"};function SA({servidores:t,aoClicar:s}){return e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t.map(i=>{const n=i.vinculo;return e.jsxs("button",{type:"button",onClick:()=>s?.(i),className:"text-left bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-200 overflow-hidden group cursor-pointer",children:[e.jsxs("div",{className:"relative bg-gradient-to-br from-institutional to-institutional-dark p-8 pb-16",children:[e.jsx("div",{className:"flex justify-center",children:i.foto_url?e.jsx("img",{src:i.foto_url,alt:i.nome??"Servidor",loading:"lazy",className:"w-40 h-40 rounded-full object-cover border-4 border-white shadow-lg group-hover:scale-105 transition-transform duration-300"}):e.jsx("div",{className:"w-40 h-40 rounded-full bg-white border-4 border-white shadow-lg flex items-center justify-center group-hover:scale-105 transition-transform duration-300",children:e.jsx(Nt,{className:"text-institutional",size:64})})}),e.jsx("div",{className:"absolute bottom-4 left-0 right-0 flex justify-center",children:e.jsx("span",{className:`px-4 py-1.5 rounded-full text-xs font-semibold shadow-md ${_A[n]??"bg-gray-100 text-gray-800"}`,children:id[n]??n})})]}),e.jsxs("div",{className:"p-6 space-y-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:i.nome}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-600",children:[e.jsx(Ua,{size:14,className:"text-institutional"}),e.jsx("span",{className:"font-medium",children:i.cargo_nome??i.funcao??"â"})]})]}),e.jsxs("div",{className:"space-y-3 pt-4 border-t border-gray-100",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(pr,{size:16,className:"text-gray-400 flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-500 mb-0.5",children:"Lotação"}),e.jsx("p",{className:"text-sm text-gray-700 font-medium",children:i.lotacao?.nome??"â"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ee,{size:16,className:"text-gray-400 flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-500 mb-0.5",children:"Admissão"}),e.jsx("p",{className:"text-sm text-gray-700 font-medium",children:je(i.data_admissao)})]})]})]})]})]},i.id)})})}function Sx({data:t}){return t?e.jsxs("p",{className:"text-sm text-gray-700 mb-6",children:[e.jsx(De,{size:14,className:"inline mr-1 text-green-600"}),e.jsxs("strong",{children:["Página verificada em ",je(t),"."]}
125)]}):null}function ky({titulo:t,descricao:s,dataVerificacao:i}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border-2 border-dashed border-gray-300 p-10 text-center",children:[e.jsx(Qr,{size:42,className:"mx-auto text-gray-300 mb-4"}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:t}),e.jsxs("p",{className:"text-sm text-gray-600 max-w-md mx-auto",children:[s,i&&e.jsxs("span",{className:"block mt-2 font-semibold text-gray-700",children:["Esta página foi verificada em ",je(i),"."]})]})]})}function Cy({colunas:t,children:s}){return e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:e.jsx("tr",{children:t.map(i=>e.jsx("th",{className:"text-left p-3 font-semibold text-gray-700",children:i},i))})}),e.jsx("tbody",{children:s})]})})})}const Wo={async obter(t){const{data:s,error:i}=await X.from("configuracoes").select("valor").eq("chave",t).maybeSingle();if(i)throw new ee(i.message,i.code);return s?.valor??null},async todas(){const{data:t,error:s}=await X.from("configuracoes").select("chave, valor");if(s)throw new ee(s.message,s.code);return Object.fromEntries((t??[]).map(i=>[i.chave,i.valor]))}};function vd(t){const[s,i]=b.useState(null);return b.useEffect(()=>{let n=!0;return Wo.obter("rh_verificacao").then(l=>{n&&i(l?.[t]??null)}).catch(()=>{n&&i(null)}),()=>{n=!1}},[t]),s}function kA(t){const s=["MatrÃcula","Nome","Cargo","VÃnculo","Lotação","Admissão","Carga Horária","Remuneração Bruta"],i=m=>`"${String(m??"").replace(/"/g,'""')}"`,n=t.map(m=>[m.matricula,m.nome,m.cargo_nome??m.funcao,id[m.vinculo],m.lotacao?.nome,je(m.data_admissao),m.carga_horaria,m.remuneracao_bruta].map(i).join(";")),l="\uFEFF"+[s.map(i).join(";"),...n].join(`\r 126`),d=URL.createObjectURL(new Blob([l],{type:"text/csv;charset=utf-8;"})),u=document.createElement("a");u.href=d,u.download=`servidores-${new Date().toISOString().slice(0,10)}.csv`,u.click(),URL.revokeObjectURL(d)}function CA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),u=vd("servidores"),[m,x]=b.useState(""),[p,g]=b.useState("todos"),[v,j]=b.useState("todos"),[N,k]=b.useState(null),S=b.useCallback(async()=>{n(!0),d(null);try{s(await _x.quadroEfetivo())}catch(z){d(z instanceof Error?z.message:"Não foi possÃvel carregar a relação de servidores.")}finally{n(!1)}},[]);b.useEffect(()=>{S()},[S]),b.useEffect(()=>{if(!N)return;const z=Q=>Q.key==="Escape"&&k(null);return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[N]);const C=b.useMemo(()=>[...new Set(t.map(z=>z.lotacao?.nome).filter(Boolean))].sort(),[t]),T=b.useMemo(()=>[...new Set(t.map(z=>z.vinculo))],[t]),w=b.useMemo(()=>{const z=m.trim().toLowerCase();return t.filter(Q=>Q.situacao!=="ativo"||p!=="todos"&&Q.vinculo!==p||v!=="todos"&&Q.lotacao?.nome!==v?!1:z?[Q.nome,Q.cargo_nome,Q.funcao,Q.matricula].some(K=>(K??"").toLowerCase().includes(z)):!0)},[t,m,p,v]),_=()=>{x(""),g("todos"),j("todos")},E=m!==""||p!=="todos"||v!=="todos",O=w.filter(z=>z.vinculo==="efetivo").length,$=w.filter(z=>z.vinculo==="comissionado").length;return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"pb-16",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Servidores"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(ot,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Relação de Servidores"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"Cargos, vÃnculos e remunerações do quadro da Prefeitura"})]})]})]})}),e.jsxs("div",{className:"container mx-auto px-6 py-8",children:[e.jsx(Sx,{data:u}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Total de Servidores"}),e.jsx("p",{className:"text-3xl font-bold text-institutional",children:w.length})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Efetivos"}),e.jsx("p",{className:"text-3xl font-bold text-green-600",children:O})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Comissionados"}),e.jsx("p",{className:"text-3xl font-bold text-blue-600",children:$})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 mb-8 border border-gray-200",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsxs("label",{htmlFor:"busca-servidor",className:"block text-sm font-medium text-gray-700 mb-2",children:[e.jsx(yt,{className:"inline mr-2",size:16}),"Buscar por nome, cargo ou matrÃcula"]}),e.jsx("input",{id:"busca-servidor",type:"text",placeholder:"Ex: Maria Silva",value:m,onChange:z=>x(z.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"filtro-vinculo",className:"block text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Ho,{className:"inline mr-2",size:16}),"VÃnculo"]}),e.jsxs("select",{id:"filtro-vinculo",value:p,onChange:z=>g(z.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:[e.jsx("option",{value:"todos",children:"Todos"}),T.map(z=>e.jsx("option",{value:z,children:id[z]},z))]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"filtro-setor",className:"block text-sm font-medium text-gray-700 mb-2",children:"Setor"}
126),e.jsxs("select",{id:"filtro-setor",value:v,onChange:z=>j(z.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:[e.jsx("option",{value:"todos",children:"Todos"}),C.map(z=>e.jsx("option",{value:z,children:z},z))]})]})]}),e.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-200 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("p",{className:"text-sm text-gray-600",children:["Mostrando ",e.jsx("span",{className:"font-bold text-gray-900",children:w.length})," de"," ",e.jsx("span",{className:"font-bold text-gray-900",children:t.length})," servidores"]}),e.jsxs("button",{onClick:()=>kA(w),disabled:w.length===0,className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg hover:bg-institutional-dark transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:[e.jsx(tt,{size:16}),e.jsx("span",{children:"Exportar CSV"})]})]})]}),i?e.jsx(ua,{mensagem:"Carregando servidores..."}):l?e.jsx(ha,{mensagem:l,aoTentarNovamente:()=>{S()}}):w.length>0?e.jsx(SA,{servidores:w,aoClicar:k}):e.jsx(zs,{mensagem:"Nenhum servidor encontrado com os filtros selecionados.",aoLimpar:E?_:void 0})]})]}),e.jsx(ge,{}),N&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4 overflow-y-auto",onClick:()=>k(null),role:"presentation",children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl max-w-4xl w-full my-8",onClick:z=>z.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":`Perfil de ${N.nome}`,children:[e.jsxs("div",{className:"relative bg-gradient-to-br from-institutional to-institutional-dark p-8 rounded-t-2xl",children:[e.jsx("button",{onClick:()=>k(null),className:"absolute top-4 right-4 p-2 bg-white/10 hover:bg-white/20 rounded-lg transition-colors","aria-label":"Fechar",children:e.jsx(Fa,{size:24,className:"text-white"})}),e.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[N.foto_url?e.jsx("img",{src:N.foto_url,alt:N.nome??"Servidor",className:"w-32 h-32 rounded-full object-cover border-4 border-white shadow-lg flex-shrink-0"}):e.jsx("div",{className:"w-32 h-32 rounded-full bg-white flex items-center justify-center flex-shrink-0",children:e.jsx(Nt,{className:"text-institutional",size:56})}),e.jsxs("div",{className:"text-center md:text-left text-white",children:[e.jsx("h2",{className:"text-2xl font-bold mb-1",children:N.nome}),e.jsx("p",{className:"text-blue-100 mb-3",children:N.cargo_nome??N.funcao??"â"}),e.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-2",children:[e.jsx(es,{texto:id[N.vinculo],cor:"bg-white/20 text-white"}),e.jsx(es,{texto:pA[N.situacao],cor:gA[N.situacao]})]})]})]})]}),e.jsxs("div",{className:"p-8",children:[e.jsxs("dl",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[N.matricula&&e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(Ua,{size:13})," MatrÃcula"]}),e.jsx("dd",{className:"text-gray-900",children:N.matricula})]}),e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(pr,{size:13})," Lotação"]}),e.jsx("dd",{className:"text-gray-900",children:N.lotacao?.nome??"â"})]}),e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(Ee,{size:13})," Admissão"]}),e.jsx("dd",{className:"text-gray-900",children:je(N.data_admissao)})]}),N.carga_horaria&&e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(mt,{size:13})," Carga horária"]}),e.jsxs("dd",{className:"text-gray-900",children:[N.carga_horaria,"h semanais"]})]}),N.remuneracao_bruta!==null&&e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(ut,{size:13})," Remuneração bruta"]}),e.jsx("dd",{className:"text-gray-900 font-semibold",children:Se(N.remuneracao_bruta)})]}),N.escolaridade&&e.jsxs("div",{children:[e.jsxs("dt",{className:"text-xs font-semibold text-gray-500 mb-1 flex items-center gap-1",children:[e.jsx(Yr,{size:13})," Escolaridade"]}),e.jsx("dd",{className:"text-gray-900",children:N.escolaridade})]})]}),N.cursos&&N.cursos.length>0&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-100",children:[e.jsxs("h3",{className:"text-sm font-semibold text-gray-700 mb-3 flex items-center gap-2",children:[e.jsx(Yr,{size:15,className:"text-institutional"})," Cursos e capacitações"]}),e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm text-gray-700",children:N.cursos.map((z,Q)=>e.jsx("li",{children:z},`curso-${Q}`))})]}),N.observacoes&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-100",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Observações"}),e.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-wrap",children:N.observacoes})]})]})]})})]})}function EA(){const[t,s]=b.useState([]),[i,n]=b.useState(""),[l,d]=b.useState(!0),[u,m]=b.useState(!1),[x,p]=b.useState(null),[g,v]=b.useState(null),[j,N]=b.useState({});b.useEffect(()=>{Qi.catalogo().then(S=>{s(S.conjuntos),n(S.licenca),p(S.conjuntos[0]?.categoria??null)}
126).catch(()=>m(!0)).finally(()=>d(!1))},[]);const k=Array.from(new Set(t.map(S=>S.categoria)));return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Dados Abertos",path:"/transparencia/dados-abertos"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(dd,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Dados Abertos"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"As bases de dados da Prefeitura, em formato aberto, para qualquer pessoa usar"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Programa de Dados Abertos"}),e.jsxs("div",{className:"space-y-4 text-gray-700 leading-relaxed",children:[e.jsx("p",{children:"O Programa de Dados Abertos tem a finalidade de disponibilizar bases de dados e de informações não sigilosas, de forma eletrônica e em formato aberto, em conformidade com os princÃpios da administração pública e com observância de recomendações aceitas internacionalmente, como as emitidas pela Open Knowledge Foundation e pelo Consórcio W3C Internacional."}),e.jsx("p",{children:"Entende-se o conceito de dados abertos como dados que qualquer cidadão possa utilizar, reutilizar e distribuir livremente, ressalvando-se, no máximo, a exigência de atribuição e compartilhamento."}),i&&e.jsxs("p",{className:"text-sm",children:["Os conjuntos são publicados sob licença ",e.jsx("strong",{children:i}),"."]})]}),e.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-900 mb-2",children:"Principais referências"}),e.jsx("ul",{className:"space-y-1 text-sm list-none p-0 m-0",children:[["Open Data Handbook","https://opendatahandbook.org/"],["Open Data Handbook (português)","https://opendatahandbook.org/pt_BR/"],["Open Knowledge Foundation","https://okfn.org/"],["W3C â Publishing Open Government Data","https://www.w3.org/TR/gov-data"],["W3C Brasil","https://www.w3c.br/"]].map(([S,C])=>e.jsx("li",{children:e.jsxs("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline inline-flex items-center gap-1",children:[S,e.jsx(Ke,{size:12,"aria-hidden":"true"})]})},C))})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ht,{className:"text-institutional flex-shrink-0 mt-1","aria-hidden":"true"}),e.jsxs("p",{className:"text-sm text-gray-700",children:["Veja também o"," ",e.jsx("a",{href:"https://dados.gov.br/",target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline font-semibold",children:"Portal Brasileiro de Dados Abertos"}),", ferramenta do governo federal para encontrar e usar dados e informações públicas."]})]})})]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Dados disponibilizados em formato aberto"}),e.jsxs("p",{className:"text-gray-600 mb-6",children:["Escolha o conjunto, o ano, e baixe em JSON ou XML. Cada conjunto também responde por chamada HTTPS, documentada em ",e.jsx("strong",{children:"Ver detalhes"}),"."]}),l&&e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 text-center text-gray-500",children:"Carregando o catálogoâ¦"}),u&&e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6 text-red-800",children:"Não foi possÃvel carregar o catálogo agora. Tente novamente em instantes."}),!l&&!u&&k.map(S=>e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 mb-4 overflow-hidden",children:[e.jsx("h3",{className:"m-0",children:e.jsxs("button",{type:"button",onClick:()=>p(x===S?null:S),"aria-expanded":x===S,className:"w-full flex items-center gap-3 px-6 py-4 text-left font-bold text-gray-900 hover:bg-gray-50",children:[x===S?e.jsx(Io,{"aria-hidden":"true"}):e.jsx(ss,{"aria-hidden":"true"}),S.toUpperCase()]})}),x===S&&e.jsx("div",{className:"border-t border-gray-200 divide-y divide-gray-200",children:t.filter(C=>C.categoria===S).map(C=>{const T=j[C.conjunto]??null;return e.jsxs("div",{className:"p-6",children:[e.jsx("h4",{className:"font-bold text-gray-900",children:C.titulo}),e.jsx("p",{className:"text-sm text-gray-600 mt-1 mb-4",children:C.descricao}),e.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[C.anos.length>0&&e.jsxs("div",{children:[e.jsx("label",{htmlFor:`ano-${C.conjunto}`,className:"block text-xs font-semibold text-gray-700 mb-1",children:"Ano"}),e.jsxs("select",{id:`ano-${C.conjunto}`,value:T??"",onChange:w=>N({...j,[C.conjunto]:w.target.value?Number(w.target.value):null}),className:"px-3 py-2 border border-gray-300 rounded-lg text-sm",children:[e.jsx("option",{value:"",children:"Todos os anos"}),C.anos.map(w=>e.jsx("option",{value:w,children:w}
126,w))]})]}),e.jsxs("a",{href:Qi.link(C.conjunto,"json",T),onClick:()=>Jm(`/dados-abertos/${C.conjunto}.json`,`${C.titulo} (JSON)`),className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg text-sm font-semibold hover:bg-institutional-dark",children:[e.jsx(tt,{size:16,"aria-hidden":"true"}),"Baixar JSON"]}),e.jsxs("a",{href:Qi.link(C.conjunto,"xml",T),onClick:()=>Jm(`/dados-abertos/${C.conjunto}.xml`,`${C.titulo} (XML)`),className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg text-sm font-semibold hover:bg-institutional-dark",children:[e.jsx(tt,{size:16,"aria-hidden":"true"}),"Baixar XML"]}),e.jsxs("button",{type:"button",onClick:()=>v(g===C.conjunto?null:C.conjunto),"aria-expanded":g===C.conjunto,className:"inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm font-semibold text-gray-700 hover:bg-gray-50",children:[e.jsx(d2,{size:16,"aria-hidden":"true"}),"Ver detalhes"]})]}),g===C.conjunto&&e.jsx("pre",{className:"mt-4 p-4 bg-gray-900 text-gray-100 rounded-lg text-xs overflow-x-auto",children:`HTTPS GET 127 128GET ${Qi.base}?conjunto=${C.conjunto}&ano=<aaaa>&formato=<json|xml> 129 130 conjunto ${C.conjunto} 131 ano ${C.anos.length?C.anos.join(", "):"(este conjunto não filtra por ano)"} 132 formato json ou xml 133 134Sem parâmetro nenhum, o mesmo endereço devolve o catálogo: 135 136GET ${Qi.base} 137 138Exemplo: 139 140 curl "${C.exemplo}"`})]},C.conjunto)})})]},S))]})})]}),e.jsx(ge,{})]})}const AA=[{titulo:"Servidores",descricao:"Lista de servidores efetivos, c
140omissionados e temporários da Prefeitura",path:"/transparencia/servidores",Icon:ot,cor:"blue"},{titulo:"Padrão Remuneratório",descricao:"Tabela de subsÃdios dos vereadores e vencimentos por cargo, conforme legislação vigente",path:"/transparencia/recursos-humanos/padrao-remuneratorio",Icon:ut,cor:"green"},{titulo:"Estagiários",descricao:"Relação dos estagiários, com data de contratação e término do contrato",path:"/transparencia/recursos-humanos/estagiarios",Icon:ei,cor:"purple"},{titulo:"Terceirizados",descricao:"Relação dos prestadores de serviço terceirizados, com função e empresa empregadora",path:"/transparencia/recursos-humanos/terceirizados",Icon:pr,cor:"amber"},{titulo:"Concursos Públicos",descricao:"Editais, resultados, gabaritos e demais documentos dos concursos públicos da Câmara",path:"/transparencia/recursos-humanos/concursos",Icon:Ua,cor:"rose"}],TA={blue:{bg:"bg-blue-50",border:"border-blue-200",text:"text-blue-700",icon:"text-blue-600"},green:{bg:"bg-green-50",border:"border-green-200",text:"text-green-700",icon:"text-green-600"},purple:{bg:"bg-purple-50",border:"border-purple-200",text:"text-purple-700",icon:"text-purple-600"},amber:{bg:"bg-amber-50",border:"border-amber-200",text:"text-amber-700",icon:"text-amber-600"},rose:{bg:"bg-rose-50",border:"border-rose-200",text:"text-rose-700",icon:"text-rose-600"}};function LA(){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(ot,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Recursos Humanos"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Informações sobre servidores, remuneração e prestadores de serviço da Prefeitura"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:AA.map(({titulo:t,descricao:s,path:i,Icon:n,cor:l})=>{const d=TA[l];return e.jsxs(ie,{to:i,className:`block bg-white rounded-lg shadow-sm border ${d.border} p-6 hover:shadow-md transition-shadow group`,children:[e.jsx("div",{className:`w-12 h-12 ${d.bg} rounded-lg flex items-center justify-center mb-4`,children:e.jsx(n,{size:24,className:d.icon})}),e.jsx("h2",{className:`text-lg font-bold ${d.text} mb-2`,children:t}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:s}),e.jsxs("div",{className:`flex items-center gap-2 text-sm font-semibold ${d.text} group-hover:gap-3 transition-all`,children:["Acessar ",e.jsx($o,{size:14})]})]},i)})})})})]}),e.jsx(ge,{})]})}const kc=[0,3,6,9,12,15,18,21,24,27,30,33],OA=t=>t.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2}),Ey=t=>t.niveis??[],Cc=t=>t.valores??[];function RA(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(null),[u,m]=b.useState(!0),[x,p]=b.useState(null),g=vd("padrao_remuneratorio"),v=b.useCallback(async()=>{m(!0),p(null);try{const[_,E,O]=await Promise.all([jA.ativos(),yA.listar(),Wo.obter("subsidios")]);s(_),n(E),d(O)}catch(_){p(_ instanceof Error?_.message:"Não foi possÃvel carregar o padrão remuneratório.")}finally{m(!1)}},[]);b.useEffect(()=>{v()},[v]);const{efetivos:j,assessoria:N,comissionados:k,outros:S}=b.useMemo(()=>{const _={efetivo:[],assessoria:[],comissionado:[],outro:[]};for(const E of t)(_[E.categoria??"outro"]??=[]).push(E);return{efetivos:_.efetivo,assessoria:_.assessoria,comissionados:_.comissionado,outros:_.outro}},[t]),C=b.useMemo(()=>l?[{cargo:"Presidente",valor:l.presidente??0},{cargo:"Vice-Presidente",valor:l.vicePresidente??0},{cargo:"1º Secretário",valor:l.primeiroSecretario??0},{cargo:"2º Secretário",valor:l.segundoSecretario??0},{cargo:"Vereador (demais)",valor:l.vereador??0}]:[],[l]),T=C.some(_=>_.valor>0),w=!T&&t.length===0&&i.length===0;return e.jsx(da,{titulo:"Padrão Remuneratório",descricao:"Tabela de subsÃdios, cargos e vencimentos da Prefeitura",icone:e.jsx(ut,{size:32}
140),rota:"/transparencia/recursos-humanos/padrao-remuneratorio",trilhaIntermediaria:[{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"}],children:u?e.jsx(ua,{}):x?e.jsx(ha,{mensagem:x,aoTentarNovamente:()=>{v()}}):w?e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border-2 border-dashed border-gray-300 p-10 text-center",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Tabela ainda não publicada"}),g&&e.jsxs("p",{className:"text-sm font-semibold text-gray-700",children:["Esta página foi verificada em ",je(g),"."]})]}):e.jsxs("div",{className:"space-y-10",children:[T&&e.jsx(dv,{titulo:"SUBSÃDIOS â VEREADORES E MESA DIRETORA",descricao:l?.referenciaLegal?`Referência: ${l.referenciaLegal}`:void 0,vigencia:l?.vigenciaInicio?je(l.vigenciaInicio):void 0,children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300",children:[e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Cargo"}),e.jsx("th",{className:"text-right p-3 font-bold text-slate-800 uppercase text-xs tracking-wide w-64",children:"SubsÃdio Mensal"})]})}),e.jsx("tbody",{children:C.map(_=>e.jsxs("tr",{className:"border-b border-slate-200",children:[e.jsx("td",{className:"p-3 text-slate-900",children:_.cargo}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900",children:Se(_.valor)})]},_.cargo))})]})}),j.length>0&&e.jsx(fm,{titulo:"TABELA DE REMUNERAÃÃO â FUNCIONÃRIOS EFETIVOS",cargos:j}),k.length>0&&e.jsx(fm,{titulo:"CARGOS EM COMISSÃO",cargos:k}
140),N.length>0&&e.jsx(dv,{titulo:"REMUNERAÃÃO E CARGOS DE ASSESSORIA",subtitulo:"TABELA 01 â Cargos de Assessoria",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"bg-slate-100 border-b-2 border-slate-300",children:["Vagas","Código","Carga Horária","Denominação do Cargo","Escolaridade","Padrão (SÃmbolo)"].map(_=>e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:_},_))})}),e.jsx("tbody",{children:N.flatMap(_=>{const E=Ey(_);return E.map((O,$)=>e.jsxs("tr",{className:"border-b border-slate-200",children:[$===0&&e.jsxs(e.Fragment,{children:[e.jsx("td",{rowSpan:E.length,className:"p-3 align-top text-slate-900 font-medium border-r border-slate-200",children:_.vagas??"â"}),e.jsx("td",{rowSpan:E.length,className:"p-3 align-top text-slate-900 font-mono font-bold border-r border-slate-200",children:_.codigo||"â"}),e.jsx("td",{rowSpan:E.length,className:"p-3 align-top text-slate-900 border-r border-slate-200",children:_.carga_horaria?`${_.carga_horaria} horas`:"â"})]}),e.jsx("td",{className:"p-3 text-slate-800",children:O.denominacao??"â"}),e.jsx("td",{className:"p-3 text-slate-700",children:O.requisitos??"â"}),e.jsx("td",{className:"p-3 font-mono font-bold text-slate-900",children:O.simbolo??"â"})]},`${_.id}-${$}`))})})]})}),S.length>0&&e.jsx(fm,{titulo:"OUTROS CARGOS",cargos:S}),i.length>0&&e.jsx(DA,{simbolos:i}),g&&e.jsxs("p",{className:"text-sm text-gray-600 text-center",children:["Página verificada em ",e.jsx("strong",{children:je(g)}),"."]})]})})}function dv({titulo:t,subtitulo:s,descricao:i,vigencia:n,children:l}){return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-3",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:t}),s&&e.jsx("h3",{className:"text-sm font-semibold text-slate-700 mt-1",children:s}),(i||n)&&e.jsxs("p",{className:"text-xs text-slate-600 mt-2",children:[i,i&&n&&e.jsx("span",{className:"mx-2",children:"·"}),n&&e.jsxs("span",{children:["Vigência desde ",n]})]})]}),e.jsx("div",{className:"bg-white border border-slate-300 rounded-md overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:l})})]})}function fm({titulo:t,cargos:s}){return e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide mb-4",children:t}),e.jsx("div",{className:"space-y-6",children:s.map(i=>e.jsx(zA,{cargo:i},i.id))}),e.jsxs("p",{className:"text-xs text-slate-600 mt-4 italic",children:["Os vencimentos correspondentes aos sÃmbolos estão descritos na"," ",e.jsx("strong",{children:"Tabela 2"})," ao final da página."]})]})}function zA({cargo:t}){const s=Ey(t);return s.length===0?null:e.jsxs("div",{className:"bg-white border border-slate-300 rounded-md overflow-hidden",children:[e.jsxs("div",{className:"bg-slate-100 border-b border-slate-300 px-4 py-2.5",children:[e.jsx("h3",{className:"text-base font-bold text-slate-900",children:t.denominacao_base??t.cargo_nome}),t.referencia_legal&&e.jsx("p",{className:"text-xs text-slate-600 mt-1",children:t.referencia_legal})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"bg-slate-50 border-b border-slate-300",children:["Denominação","Requisitos","SÃmbolo"].map(i=>e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:i},i))})}),e.jsx("tbody",{children:s.map((i,n)=>e.jsxs("tr",{className:"border-b border-slate-200 last:border-b-0",children:[e.jsx("td",{className:"p-3 text-slate-800",children:i.denominacao??"â"}),e.jsx("td",{className:"p-3 text-slate-700",children:i.requisitos??"â"}),e.jsx("td",{className:"p-3 font-mono font-bold text-slate-900",children:i.simbolo??"â"})]},`${t.id}-n-${n}`))})]})}),t.observacoes&&e.jsx("div",{className:"bg-slate-50 border-t border-slate-200 px-4 py-2 text-xs text-slate-600",children:t.observacoes})]})}function DA({simbolos:t}){const s=t.filter(n=>Cc(n).length===kc.length),i=t.filter(n=>Cc(n).length!==kc.length);return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Tabela 2 â Vencimentos por SÃmbolo"}),s.length>0&&e.jsxs("div",{className:"border border-slate-400 rounded-md overflow-hidden",children:[e.jsx("div",{className:"bg-slate-200 border-b border-slate-400 px-3 py-2 text-center font-bold text-slate-900 text-sm tracking-wide",children:"TABELA 2"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-xs border-collapse",children:[e.jsxs("thead",{children:[e.jsxs("tr",{className:"border-b border-slate-300 bg-white",children:[e.jsx("th",{className:"border-r border-slate-300 p-2","aria-label":"SÃmbolo"}),kc.map(n=>e.jsx("th",{className:"border-r border-slate-300 last:border-r-0 p-1.5 text-right font-semibold text-slate-700 tabular-nums",children:n},`ano-${n}`))]}),e.jsxs("tr",{className:"border-b border-slate-400 bg-slate-50",children:[e.jsx("th",{className:"border-r border-slate-300 p-1.5 text-center font-bold text-slate-800 uppercase",children:"NÃvel"}),kc.map((n,l)=>e.jsx("th",{className:"border-r border-slate-300 last:border-r-0 p-1.5 text-center font-bold text-slate-800",children:l+1},`nivel-${l}`))]})]}),e.jsx("tbody",{children:s.map(n=>e.jsxs("tr",{className:"border-b border-slate-200 last:border-b-0",children:[e.jsx("td",{className:"border-r border-slate-300 p-1.5 text-center font-bold text-slate-900 bg-slate-50 font-mono",children:n.simbolo}),Cc(n).map((l,d)=>e.jsx("td",{className:"border-r border-slate-200 last:border-r-0 p-1.5 text-right font-mono text-slate-800 tabular-nums",children:OA(l)},`${n.id}-${d}`))]},n.id))})]})})]}),i.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-slate-800 uppercase tracking-wide mb-2",children:"Cargos com vencimento único"}),e.jsx("div",{className:"border border-slate-300 rounded-md overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300",children:[e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide w-40",children:"SÃmbolo"}),e.jsx("th",{className:"text-right p-3 font-bold text-slate-800 uppercase text-xs tracking-wide w-64",children:"Vencimentos (R$)"}),e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Observações"})]})}),e.jsx("tbody",{children:i.map(n=>e.jsxs("tr",{className:"border-b border-slate-200 last:border-b-0",children:[e.jsx("td",{className:"p-3 font-mono font-bold text-slate-900",children:n.simbolo}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900",children:Se(Cc(n)[0]??n.valor)}),e.jsx("td",{className:"p-3 text-slate-700 text-sm",children:n.observacoes||"â"})]},n.id))})]})})]})]})}function MA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),u=vd("estagiarios"),m=b.useCallback(async()=>{n(!0),d(null);try{s(await _x.estagiarios())}catch(x){d(x instanceof Error?x.message:"Não foi possÃvel carregar a relação.")}finally{n(!1)}},[]);return b.useEffect(()=>{m()},[m]),e.jsxs(da,{titulo:"Estagiários",descricao:"Relação dos estagiários com data de contratação e término do contrato",icone:e.jsx(ei,{size:32}
140),rota:"/transparencia/recursos-humanos/estagiarios",trilhaIntermediaria:[{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"}],children:[e.jsx(Sx,{data:u}),i?e.jsx(ua,{}):l?e.jsx(ha,{mensagem:l,aoTentarNovamente:()=>{m()}}):t.length===0?e.jsx(ky,{titulo:"Nenhum estagiário cadastrado no momento",descricao:"Não há estagiários atualmente vinculados à Prefeitura.",dataVerificacao:u}):e.jsx(Cy,{colunas:["Nome","Setor / Lotação","Instituição de Ensino","Carga Horária","Data de Contratação","Término Previsto"],children:t.map(x=>e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0",children:[e.jsx("td",{className:"p-3 font-medium text-gray-900",children:x.nome}),e.jsx("td",{className:"p-3 text-gray-700",children:x.lotacao?.nome??"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:x.instituicao_ensino??"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:x.carga_horaria?`${x.carga_horaria}h`:"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:je(x.data_admissao)}),e.jsx("td",{className:"p-3 text-gray-700",children:je(x.data_prevista_termino??x.data_desligamento)})]},x.id))})]})}function PA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),u=vd("terceirizados"),m=b.useCallback(async()=>{n(!0),d(null);try{s(await vA.ativos())}catch(x){d(x instanceof Error?x.message:"Não foi possÃvel carregar a relação.")}finally{n(!1)}},[]);return b.useEffect(()=>{m()},[m]),e.jsxs(da,{titulo:"Terceirizados",descricao:"Relação dos prestadores de serviço terceirizados, com função e empresa empregadora",icone:e.jsx(pr,{size:32}),rota:"/transparencia/recursos-humanos/terceirizados",trilhaIntermediaria:[{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"}],children:[e.jsx(Sx,{data:u}),i?e.jsx(ua,{}):l?e.jsx(ha,{mensagem:l,aoTentarNovamente:()=>{m()}}):t.length===0?e.jsx(ky,{titulo:"Nenhum terceirizado cadastrado no momento",descricao:"Não há prestadores de serviço terceirizados atualmente vinculados à Prefeitura.",dataVerificacao:u}):e.jsx(Cy,{colunas:["Nome Completo","Função / Atividade","Empresa Empregadora","CNPJ","Local de Trabalho","InÃcio","Término"],children:t.map(x=>e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0",children:[e.jsx("td",{className:"p-3 font-medium text-gray-900",children:x.nome}),e.jsx("td",{className:"p-3 text-gray-700",children:x.funcao??"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:x.empresa}),e.jsx("td",{className:"p-3 text-gray-600 text-xs",children:x.empresa_cnpj??"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:x.local_trabalho??x.lotacao?.nome??"â"}),e.jsx("td",{className:"p-3 text-gray-700",children:je(x.data_inicio)}),e.jsx("td",{className:"p-3 text-gray-700",children:je(x.data_fim)})]},x.id))})]})}const uv={nomeacao:"bg-green-100 text-green-700 border-green-200",exoneracao:"bg-red-100 text-red-700 border-red-200",aposentadoria:"bg-purple-100 text-purple-700 border-purple-200",ferias:"bg-blue-100 text-blue-700 border-blue-200",licenca:"bg-yellow-100 text-yellow-700 border-yellow-200",progressao:"bg-teal-100 text-teal-700 border-teal-200"};function Ay(t){const s=t.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z]/g,""),i=Object.keys(uv).find(n=>s.includes(n));return i?uv[i]:"bg-gray-100 text-gray-700 border-gray-200"}function BA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),[u,m]=b.useState(""),[x,p]=b.useState("todos"),[g,v]=b.useState("todos"),[j,N]=b.useState(null),k=b.useCallback(async()=>{n(!0),d(null);try{s(await wA.publicados())}catch{d("Não foi possÃvel carregar os atos de pessoal.")}finally{n(!1)}},[]);b.useEffect(()=>{k()},[k]);const S=b.useMemo(()=>Array.from(new Set(t.map(E=>E.tipo).filter(Boolean))).sort(),[t]),C=b.useMemo(()=>Array.from(new Set(t.map(E=>E.ano))).sort((E,O)=>O-E),[t]),T=b.useMemo(()=>{const E=u.trim().toLowerCase();return t.filter(O=>{const $=x==="todos"||O.tipo===x,z=g==="todos"||String(O.ano)===g,Q=!E||(O.numero??"").toLowerCase().includes(E)||O.ementa.toLowerCase().includes(E)||(O.servidor_nome??O.servidor?.nome??"").toLowerCase().includes(E);return $&&z&&Q})},[t,u,x,g]),w=u!==""||x!=="todos"||g!=="todos";function _(){m(""),p("todos"),v("todos")}return e.jsxs(da,{titulo:"Atos de Pessoal",descricao:"Nomeações, exonerações e demais atos administrativos",icone:e.jsx(he,{size:32}
140),rota:"/transparencia/atos-pessoal",children:[e.jsxs(gr,{titulo:"Sobre os Atos de Pessoal",children:[e.jsx("p",{children:"Reúne os atos administrativos de gestão de pessoas da Prefeitura: nomeações, exonerações, aposentadorias, concessões de férias, licenças e progressões funcionais."}),e.jsx("p",{children:"A publicação atende ao princÃpio da publicidade (CF, art. 37) e à Lei de Acesso à Informação. Só aparecem aqui os atos já publicados."})]}),e.jsx(br,{busca:u,aoBuscar:m,rotuloBusca:"Buscar por número, servidor ou ementa",placeholderBusca:"Ex: Portaria 12, nomeação, nome do servidor...",filtros:[{id:"tipo",rotulo:"Tipo de ato",valor:x,aoMudar:p,opcoes:[{valor:"todos",rotulo:"Todos os tipos"},...S.map(E=>({valor:E,rotulo:E}))]},{id:"ano",rotulo:"ExercÃcio",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todos"},...C.map(E=>({valor:String(E),rotulo:String(E)}))]}],aoLimpar:_,temFiltroAtivo:w}),!i&&!l&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8",children:[e.jsx(jt,{icone:e.jsx(he,{size:24}),rotulo:"Atos exibidos",valor:String(T.length)}),e.jsx(jt,{icone:e.jsx(Ee,{size:24}),rotulo:"ExercÃcios",valor:String(C.length)}),e.jsx(jt,{icone:e.jsx(Nt,{size:24}),rotulo:"Tipos de ato",valor:String(S.length)})]}),i?e.jsx(ua,{mensagem:"Carregando atos de pessoal..."}):l?e.jsx(ha,{mensagem:l,aoTentarNovamente:()=>{k()}}):T.length===0?e.jsx(zs,{mensagem:t.length===0?"Nenhum ato de pessoal publicado.":"Nenhum ato encontrado com os filtros selecionados."}):e.jsx("div",{className:"space-y-4",children:T.map(E=>e.jsx("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-bold border ${Ay(E.tipo)}`,children:E.tipo}),E.numero&&e.jsxs("span",{className:"text-sm font-bold text-gray-900",children:[E.numero,"/",E.ano]}),e.jsxs("span",{className:"flex items-center gap-1 text-xs text-gray-500",children:[e.jsx(Ee,{size:12}),je(E.data_publicacao??E.data_ato)]})]}),e.jsx("p",{className:"text-gray-800 mb-2",children:E.ementa}),(E.servidor_nome??E.servidor?.nome)&&e.jsxs("p",{className:"text-sm text-gray-600 flex items-center gap-1",children:[e.jsx(Nt,{size:14,className:"text-institutional"}),E.servidor_nome??E.servidor?.nome,E.servidor?.matricula&&e.jsxs("span",{className:"text-gray-400",children:["· matrÃcula ",E.servidor.matricula]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("button",{type:"button",onClick:()=>N(E),className:"px-4 py-2 text-sm bg-white border border-institutional text-institutional rounded-lg font-semibold hover:bg-institutional/5 transition-colors",children:"Ver detalhes"}),E.arquivo_url&&e.jsxs("a",{href:E.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 text-sm bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors flex items-center justify-center gap-2",children:[e.jsx(tt,{size:14}),"Baixar"]})]})]})},E.id))}),j&&e.jsx(qA,{ato:j,aoFechar:()=>N(null)})]})}function qA({ato:t,aoFechar:s}){return b.useEffect(()=>{const i=n=>{n.key==="Escape"&&s()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[s]),e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":`Ato ${t.numero??""}`,onClick:s,children:e.jsxs("div",{className:"bg-white rounded-lg max-w-2xl w-full max-h-[85vh] overflow-y-auto",onClick:i=>i.stopPropagation(),children:[e.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-gray-200",children:[e.jsxs("div",{children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-bold border ${Ay(t.tipo)}`,children:t.tipo}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mt-2",children:t.numero?`${t.numero}/${t.ano}`:`Ato de ${t.ano}`})]}),e.jsx("button",{type:"button",onClick:s,"aria-label":"Fechar",className:"p-2 hover:bg-gray-100 rounded-lg",children:e.jsx(Fa,{size:20})})]}),e.jsxs("div",{className:"p-6 space-y-4 text-sm",children:[e.jsx(Vi,{rotulo:"Ementa",valor:t.ementa}),e.jsx(Vi,{rotulo:"Servidor",valor:t.servidor_nome??t.servidor?.nome??null}),e.jsx(Vi,{rotulo:"Data do ato",valor:je(t.data_ato)}),e.jsx(Vi,{rotulo:"Data de publicação",valor:je(t.data_publicacao)}),e.jsx(Vi,{rotulo:"Fundamentação",valor:t.fundamentacao}),e.jsx(Vi,{rotulo:"Observações",valor:t.observacoes}),t.arquivo_url&&e.jsxs("a",{href:t.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(tt,{size:16}),"Baixar documento"]})]})]})})}function Vi({rotulo:t,valor:s}){return!s||s==="â"?null:e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-gray-500 uppercase tracking-wide",children:t}),e.jsx("dd",{className:"text-gray-900 mt-0.5 whitespace-pre-line",children:s})]})}function UA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),[u,m]=b.useState(""),[x,p]=b.useState("todos"),[g,v]=b.useState("todos"),j=b.useCallback(async()=>{n(!0),d(null);try{s(await $r.listar())}catch(E){d(E instanceof Error?E.message:"Não foi possÃvel carregar os contratos.")}finally{n(!1)}},[]);b.useEffect(()=>{j()},[j]);const N=b.useMemo(()=>{const E=new Set;for(const O of t){const $=$r.modalidade(O);$&&E.add($)}return[...E]},[t]),k=b.useMemo(()=>[...new Set(t.map(E=>E.status))],[t]),S=b.useMemo(()=>{const E=u.trim().toLowerCase();return t.filter(O=>g!=="todos"&&O.status!==g||x!=="todos"&&$r.modalidade(O)!==x?!1:E?O.numero.toLowerCase().includes(E)||O.objeto.toLowerCase().includes(E)||O.contratado.toLowerCase().includes(E):!0)},[t,u,x,g]),C=()=>{m(""),p("todos"),v("todos")},T=u!==""||x!=="todos"||g!=="todos",w=S.reduce((E,O)=>E+Number(O.valor??0)+Number(O.valor_aditado??0),0),_=S.filter(E=>E.status==="vigente").length;
140return e.jsxs(da,{titulo:"Contratos",descricao:"Consulte todos os contratos firmados pela Prefeitura",icone:e.jsx(he,{size:32}),rota:"/transparencia/contratos",children:[e.jsxs(gr,{titulo:"Sobre os Contratos",children:[e.jsx("p",{children:"Todos os contratos firmados pela Prefeitura são registrados e disponibilizados para consulta pública, em conformidade com a Lei de Acesso à Informação."}),e.jsxs("p",{children:[e.jsx("strong",{children:"Transparência:"})," aqui você encontra contratos de prestação de serviços, fornecimento, obras e locações, com informações sobre valores, prazos e empresas contratadas."]})]}),e.jsx(br,{busca:u,aoBuscar:m,rotuloBusca:"Buscar por número, objeto ou empresa",placeholderBusca:"Ex: 001/2026 ou material de limpeza",filtros:[{id:"modalidade",rotulo:"Modalidade",valor:x,aoMudar:p,opcoes:[{valor:"todos",rotulo:"Todas as modalidades"},...N.map(E=>({valor:E,rotulo:qa[E]}))]},{id:"status",rotulo:"Situação",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todas as situações"},...k.map(E=>({valor:E,rotulo:Ym[E]}))]}],aoLimpar:C,temFiltroAtivo:T}),e.jsxs(Go,{children:[e.jsx(jt,{rotulo:"Total de Contratos",valor:S.length,icone:e.jsx(he,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Contratos Vigentes",valor:_,icone:e.jsx(mt,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Valor Total",valor:Se(w),icone:e.jsx(ut,{size:24,className:"text-institutional"}),compacto:!0})]}),e.jsx("div",{className:"space-y-6",children:i?e.jsx(ua,{mensagem:"Carregando contratos..."}):l?e.jsx(ha,{mensagem:l,aoTentarNovamente:()=>{j()}}):S.length===0?e.jsx(zs,{mensagem:"Nenhum contrato encontrado com os filtros selecionados.",aoLimpar:T?C:void 0}):S.map(E=>e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow",children:[e.jsx(wx,{titulo:`Contrato nº ${E.numero}/${E.ano}`,subtitulo:$r.origem(E)??"Contratação",badge:e.jsx(es,{texto:Ym[E.status],cor:_y[E.status]})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Objeto"}),e.jsx("p",{className:"text-gray-900",children:E.objeto})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6 pb-6 border-b border-gray-200",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 mb-2",children:[e.jsx(Nt,{size:16}),e.jsx("span",{className:"text-sm font-semibold",children:"Contratado"})]}),e.jsx("p",{className:"text-gray-900 font-semibold",children:E.contratado}),E.contratado_documento&&e.jsxs("p",{className:"text-sm text-gray-600",children:["CNPJ/CPF: ",E.contratado_documento]})]}),$r.origem(E)&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-600 mb-2",children:[e.jsx(he,{size:16}),e.jsx("span",{className:"text-sm font-semibold",children:"Origem"})]}),e.jsx("p",{className:"text-gray-900",children:$r.origem(E)})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mb-6",children:[e.jsx(Rt,{rotulo:"InÃcio da Vigência",valor:je(E.data_inicio),icone:e.jsx(Ee,{size:14})}),e.jsx(Rt,{rotulo:"Término da Vigência",valor:je(E.data_fim),icone:e.jsx(Ee,{size:14})}),e.jsx(Rt,{rotulo:E.valor_aditado?"Valor (com aditivos)":"Valor do Contrato",valor:Se(Number(E.valor??0)+Number(E.valor_aditado??0)),icone:e.jsx(ut,{size:14}),destaque:!0}),E.fiscal_contrato&&e.jsx(Rt,{rotulo:"Fiscal do Contrato",valor:E.fiscal_contrato,icone:e.jsx(R2,{size:14})})]}),E.observacoes&&e.jsxs("div",{className:"mb-6 pb-6 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Observações"}),e.jsx("p",{className:"text-gray-700 text-sm whitespace-pre-wrap",children:E.observacoes})]}),E.arquivo_url&&e.jsx("div",{className:"pt-6 border-t border-gray-200",children:e.jsxs("a",{href:E.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(tt,{size:16}),"Baixar Contrato (PDF)"]})})]})]},E.id))})]})}const Ty=[{sigla:"PPA",nome:"Plano Plurianual",cor:"bg-purple-100 text-purple-700",explicacao:"Define diretrizes, objetivos e metas para quatro anos."},{sigla:"LDO",nome:"Lei de Diretrizes Orçamentárias",cor:"bg-blue-100 text-blue-700",explicacao:"Orienta a elaboração do orçamento do ano seguinte."},{sigla:"LOA",nome:"Lei Orçamentária Anual",cor:"bg-green-100 text-green-700",explicacao:"Estima a receita e fixa a despesa do exercÃcio."}],FA=t=>Ty.find(s=>s.sigla.toLowerCase()===t.toLowerCase())?.cor??"bg-gray-100 text-gray-700";function $A(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(""),[g,v]=b.useState("todos"),[j,N]=b.useState("todos"),k=b.useCallback(async()=>{d(!0),m(null);try{const[_,E]=await Promise.all([sv.listar(),sv.anosDisponiveis()]);s(_),n(E)}catch(_){m(_ instanceof Error?_.message:"Não foi possÃvel carregar as leis orçamentárias.")}finally{d(!1)}},[]);b.useEffect(()=>{k()},[k]);const S=b.useMemo(()=>[...new Set(t.map(_=>_.tipo))],[t]),C=b.useMemo(()=>{const _=x.trim().toLowerCase();return t.filter(E=>g!=="todos"&&String(E.ano)!==g||j!=="todos"&&E.tipo!==j?!1:_?[E.titulo,E.descricao,E.numero,E.tipo].some(O=>(O??"").toString().toLowerCase().includes(_)):!0)},[t,x,g,j]),T=()=>{p(""),v("todos"),N("todos")},w=x!==""||g!=="todos"||j!=="todos";return e.jsxs(da,{titulo:"Leis Orçamentárias",descricao:"PPA, LDO e LOA do MunicÃpio",icone:e.jsx(ut,{size:32}
140),rota:"/transparencia/leis-orcamentarias",children:[e.jsxs(gr,{titulo:"O Ciclo Orçamentário",children:[e.jsx("p",{children:"O planejamento público se organiza em três instrumentos encadeados, previstos no art. 165 da Constituição Federal:"}),e.jsx("ul",{className:"list-disc pl-5 space-y-1",children:Ty.map(_=>e.jsxs("li",{children:[e.jsx("strong",{children:_.sigla})," â ",_.nome,": ",_.explicacao]},_.sigla))})]}),e.jsx(br,{busca:x,aoBuscar:p,rotuloBusca:"Buscar por tÃtulo, número ou descrição",placeholderBusca:"Ex: LOA 2026",filtros:[{id:"tipo",rotulo:"Instrumento",valor:j,aoMudar:N,opcoes:[{valor:"todos",rotulo:"Todos os instrumentos"},...S.map(_=>({valor:_,rotulo:_}))]},{id:"ano",rotulo:"ExercÃcio",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todos os exercÃcios"},...i.map(_=>({valor:String(_),rotulo:String(_)}))]}],aoLimpar:T,temFiltroAtivo:w}),l?e.jsx(ua,{mensagem:"Carregando leis orçamentárias..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>{k()}}):C.length===0?e.jsx(zs,{mensagem:"Nenhuma lei orçamentária encontrada com os filtros selecionados.",aoLimpar:w?T:void 0}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:C.map(_=>{const E=_.anexos??[];return e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow flex flex-col",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-4",children:[e.jsxs("div",{children:[e.jsx(es,{texto:_.tipo,cor:FA(_.tipo)}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mt-3",children:_.titulo||`${_.tipo} ${_.ano}`}),_.numero&&e.jsxs("p",{className:"text-sm text-gray-600 mt-1",children:["Lei nº ",_.numero]})]}),e.jsx("span",{className:"text-2xl font-bold text-gray-300",children:_.ano})]}),_.descricao&&e.jsx("p",{className:"text-sm text-gray-700 mb-4 flex-1",children:_.descricao}),_.lei&&e.jsxs("p",{className:"text-xs text-gray-500 mb-4 flex items-start gap-1",children:[e.jsx(ei,{size:12,className:"mt-0.5 flex-shrink-0"}),e.jsx("span",{children:_.lei.ementa})]}),_.data_publicacao&&e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1 mb-4",children:[e.jsx(Ee,{size:12}),"Publicada em ",je(_.data_publicacao)]}),e.jsxs("div",{className:"flex flex-wrap gap-2 pt-4 border-t border-gray-100 mt-auto",children:[_.arquivo_url&&e.jsxs("a",{href:_.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors text-sm",children:[e.jsx(tt,{size:14}),"Baixar"]}),E.map((O,$)=>O.url?e.jsxs("a",{href:O.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors text-sm",children:[e.jsx(xx,{size:14}),O.nome||`Anexo ${$+1}`]},`${_.id}-anexo-${$}`):null)]})]},_.id)})})]})}function hv(t,s){const i=Number(s??0);return i?`${(Number(t??0)/i*100).toFixed(1)}%`:"â"}function IA(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(""),[g,v]=b.useState(null),[j,N]=b.useState({receita:0,despesa:0,saldo:0}),k=b.useCallback(async()=>{try{const w=await rd.anosDisponiveis();n(w),v(w[0]??new Date().getFullYear())}catch(w){m(w instanceof Error?w.message:"Não foi possÃvel carregar os exercÃcios."),d(!1)}},[]),S=b.useCallback(async w=>{d(!0),m(null);try{const _=await rd.doAno(w);s(_.meses),N({receita:_.receita,despesa:_.despesa,saldo:_.saldo})}catch(_){m(_ instanceof Error?_.message:"Não foi possÃvel carregar os balancetes.")}finally{d(!1)}},[]);b.useEffect(()=>{k()},[k]),b.useEffect(()=>{g!==null&&S(g)},[g,S]);const C=x.trim().toLowerCase(),T=t.filter(w=>C?(Qm[(w.mes??1)-1]?.toLowerCase()??"").includes(C)||(w.titulo??"").toLowerCase().includes(C):!0);return e.jsxs(da,{titulo:"Balancetes",descricao:"Demonstrativos contábeis mensais da Prefeitura",icone:e.jsx(he,{size:32}),rota:"/transparencia/balancetes",children:[e.jsxs(gr,{titulo:"Sobre os Balancetes",children:[e.jsx("p",{children:"O balancete demonstra a execução orçamentária e financeira do perÃodo, conforme a Lei de Responsabilidade Fiscal (LC 101/2000) e a Lei 4.320/1964."}),e.jsxs("p",{children:[e.jsx("strong",{children:"Como ler:"}
140)," a receita é comparada entre o ",e.jsx("em",{children:"previsto"})," e o"," ",e.jsx("em",{children:"arrecadado"}),". A despesa percorre quatro estágios â ",e.jsx("em",{children:"fixada"})," no orçamento,"," ",e.jsx("em",{children:"empenhada"})," quando reservada, ",e.jsx("em",{children:"liquidada"})," quando o serviço é atestado e"," ",e.jsx("em",{children:"paga"})," quando o recurso sai do caixa."]})]}),e.jsx(br,{busca:x,aoBuscar:p,rotuloBusca:"Buscar por mês",placeholderBusca:"Ex: janeiro",filtros:[{id:"ano",rotulo:"ExercÃcio",valor:String(g??""),aoMudar:w=>v(Number(w)),opcoes:i.length?i.map(w=>({valor:String(w),rotulo:String(w)})):[{valor:String(new Date().getFullYear()),rotulo:String(new Date().getFullYear())}]}],aoLimpar:()=>p(""),temFiltroAtivo:x!==""}),e.jsxs(Go,{children:[e.jsx(jt,{rotulo:`Receita Arrecadada em ${g??""}`,valor:Se(j.receita),icone:e.jsx(mr,{size:24,className:"text-institutional"}),compacto:!0}),e.jsx(jt,{rotulo:`Despesa Executada em ${g??""}`,valor:Se(j.despesa),icone:e.jsx(Wc,{size:24,className:"text-institutional"}),compacto:!0}),e.jsx(jt,{rotulo:"Saldo do ExercÃcio",valor:Se(j.saldo),icone:e.jsx(ut,{size:24,className:"text-institutional"}),compacto:!0})]}),l?e.jsx(ua,{mensagem:"Carregando balancetes..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>g!==null&&void S(g)}):T.length===0?e.jsx(zs,{mensagem:`Nenhum balancete publicado para ${g??"o exercÃcio selecionado"}.`}):e.jsx("div",{className:"space-y-6",children:T.map(w=>e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 px-6 py-4 border-b border-gray-200 bg-gray-50",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:w.titulo||`${Qm[(w.mes??1)-1]} de ${w.ano}`}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Balancete ",JE[w.tipo],w.data_publicacao&&` · publicado em ${je(w.data_publicacao)}`]})]}),w.arquivo_url&&e.jsxs("a",{href:w.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors text-sm",children:[e.jsx(tt,{size:16}),"Baixar demonstrativo"]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 divide-y lg:divide-y-0 lg:divide-x divide-gray-200",children:[e.jsxs("div",{className:"p-6",children:[e.jsxs("h4",{className:"text-sm font-bold text-gray-700 uppercase tracking-wide mb-4 flex items-center gap-2",children:[e.jsx(mr,{size:16,className:"text-green-600"})," Receita"]}),e.jsxs("dl",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Prevista"}),e.jsx("dd",{className:"font-mono text-gray-900",children:Se(w.receita_prevista)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Arrecadada"}),e.jsx("dd",{className:"font-mono font-semibold text-gray-900",children:Se(w.receita_arrecadada??w.receita)})]}),e.jsxs("div",{className:"flex justify-between border-t border-gray-100 pt-2",children:[e.jsx("dt",{className:"text-gray-600",children:"Execução"}),e.jsx("dd",{className:"font-mono font-bold text-green-700",children:hv(w.receita_arrecadada??w.receita,w.receita_prevista)})]}),w.receita_acumulada!==null&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Acumulada no exercÃcio"}),e.jsx("dd",{className:"font-mono text-gray-900",children:Se(w.receita_acumulada)})]})]})]}),e.jsxs("div",{className:"p-6",children:[e.jsxs("h4",{className:"text-sm font-bold text-gray-700 uppercase tracking-wide mb-4 flex items-center gap-2",children:[e.jsx(Wc,{size:16,className:"text-red-600"})," Despesa"]}),e.jsxs("dl",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Fixada"}),e.jsx("dd",{className:"font-mono text-gray-900",children:Se(w.despesa_fixada)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Empenhada"}),e.jsx("dd",{className:"font-mono text-gray-900",children:Se(w.despesa_empenhada)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Liquidada"}),e.jsx("dd",{className:"font-mono text-gray-900",children:Se(w.despesa_liquidada)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-600",children:"Paga"}),e.jsx("dd",{className:"font-mono font-semibold text-gray-900",children:Se(w.despesa_paga??w.despesa)})]}),e.jsxs("div",{className:"flex justify-between border-t border-gray-100 pt-2",children:[e.jsx("dt",{className:"text-gray-600",children:"Execução"}),e.jsx("dd",{className:"font-mono font-bold text-red-700",children:hv(w.despesa_paga??w.despesa,w.despesa_fixada)})]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 px-6 py-4 bg-gray-50 border-t border-gray-200",children:[e.jsxs("span",{className:"text-sm text-gray-600",children:["Saldo de caixa:"," ",e.jsx("strong",{className:"font-mono text-gray-900",children:Se(w.saldo_caixa??w.saldo)})]}),w.observacoes&&e.jsx("span",{className:"text-xs text-gray-500",children:w.observacoes})]})]},w.id))})]})}const pm=Ne("arquivos_pastas",{ordem:[{coluna:"eh_pasta",ascendente:!1},{coluna:"ordem",ascendente:!0},{coluna:"nome",ascendente:!0}]}),gm={...pm,async listarNivel(t,s=null){const i=await pm.listar({onde:{modulo:t,parent_id:s,publicado:!0}}),n=i.filter(d=>d.eh_pasta).map(d=>d.id),l=new Map;if(n.length){const{data:d,error:u}=await X.from("arquivos_pastas").select("parent_id").in("parent_id",n).eq("publicado",!0).is("deletado_em",null);if(u)throw new ee(u.message,u.code);for(const m of d??[]){const x=m.parent_id;l.set(x,(l.get(x)??0)+1)}}return i.map(d=>({...d,totalFilhos:l.get(d.id)??0}))},async caminho(t){const s=[];let i=t,n=20;for(;i&&n-- >0;){const l=await X.from("arquivos_pastas").select("id, nome, parent_id").eq("id",i).maybeSingle();if(l.error)throw new ee(l.error.message,l.error.code);const d=l.data;if(!d)break;s.unshift({id:d.id,nome:d.nome}),i=d.parent_id}return s},async buscar(t,s){return s.trim()?(await pm.listar({onde:{modulo:t,publicado:!0},contem:{nome:s.trim()},limite:100})).map(n=>({...n,totalFilhos:0})):[]},async anosDisponiveis(t){const{data:s,error:i}=await X.from("arquivos_pastas").select("ano").eq("modulo",t).eq("publicado",!0).is("deletado_em",null).not("ano","is",null);if(i)throw new ee(i.message,i.code);return[...new Set((s??[]).map(n=>
140n.ano))].sort((n,l)=>l-n)}};function HA(t){return t?t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(0)} KB`:`${(t/1024/1024).toFixed(1)} MB`:"â"}function VA({modulo:t,rotuloRaiz:s="Raiz",rotuloInformacoes:i="Informações",conteudoAcima:n,tituloArquivos:l}){const[d,u]=b.useState(null),[m,x]=b.useState([]),[p,g]=b.useState([]),[v,j]=b.useState(!0),[N,k]=b.useState(null),[S,C]=b.useState(""),[T,w]=b.useState([]),[_,E]=b.useState(!1),O=b.useCallback(async()=>{j(!0),k(null);try{const[Y,fe]=await Promise.all([gm.listarNivel(t,d),d?gm.caminho(d):Promise.resolve([])]);g(Y),x(fe)}catch(Y){k(Y instanceof Error?Y.message:"Não foi possÃvel carregar os documentos."),g([])}finally{j(!1)}},[t,d]);b.useEffect(()=>{O()},[O]);const $=async()=>{if(!S.trim()){E(!1);return}j(!0);try{w(await gm.buscar(t,S)),E(!0)}catch{w([])}finally{j(!1)}},z=()=>{C(""),E(!1),w([])},Q=_?T:p,K=Y=>{Y.eh_pasta?(u(Y.id),z()):Y.arquivo_url&&window.open(Y.arquivo_url,"_blank","noopener,noreferrer")},we=()=>{_?z():m.length>1?u(m[m.length-2].id):u(null)};return e.jsxs(e.Fragment,{children:[n,n&&l&&e.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-4",children:l}),e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-4 mb-6 flex items-center gap-3",children:[e.jsx(yt,{size:20,className:"text-gray-400 flex-shrink-0"}),e.jsx("input",{type:"text",placeholder:"Buscar arquivos e pastas...",value:S,onChange:Y=>{C(Y.target.value),Y.target.value||E(!1)},onKeyDown:Y=>Y.key==="Enter"&&$(),className:"flex-1 border-none outline-none text-gray-800 text-base bg-transparent placeholder-gray-400","aria-label":"Buscar arquivos"}),S&&e.jsx("button",{onClick:z,className:"text-gray-400 hover:text-gray-600","aria-label":"Limpar busca",children:e.jsx(Fa,{size:18})})]}),e.jsxs("div",{className:"flex items-center gap-1 text-sm mb-4 flex-wrap",children:[e.jsx("button",{onClick:()=>{u(null),z()},className:`px-2 py-1 rounded font-semibold transition-colors ${!d&&!_?"text-institutional bg-institutional/10":"text-gray-500 hover:text-institutional"}`,children:s}),m.map(Y=>e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-gray-300",children:"/"}),e.jsx("button",{onClick:()=>u(Y.id),className:"px-2 py-1 rounded font-semibold text-gray-500 hover:text-institutional transition-colors",children:Y.nome})]},Y.id)),_&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-gray-300",children:"/"}),e.jsxs("span",{className:"text-institutional font-semibold italic",children:['Busca: "',S,'"']})]})]}),(d||_)&&e.jsxs("button",{onClick:we,className:"inline-flex items-center gap-2 text-institutional hover:text-institutional-dark font-semibold mb-4 transition-colors text-sm",children:[e.jsx(wo,{size:16})," Voltar"]}),v?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-16 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500",children:"Carregando..."})]}):N?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-red-200 p-16 text-center",children:[e.jsx("p",{className:"text-red-600 font-semibold",children:N}),e.jsx("button",{onClick:()=>{O()},className:"mt-4 text-institutional font-semibold hover:underline",children:"Tentar novamente"})]}):Q.length===0?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-16 text-center",children:[e.jsx(Ic,{size:48,className:"text-gray-200 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500 text-lg font-semibold",children:_?"Nenhum resultado encontrado":"Pasta vazia"})]}):e.jsx("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm table-fixed",children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:40}}),e.jsx("col",{style:{width:"30%"}}),e.jsx("col",{style:{width:"70%"}}),e.jsx("col",{style:{width:50}})]}),e.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left p-3 font-semibold text-gray-700"}),e.jsx("th",{className:"text-left p-3 font-semibold text-gray-700",children:"Nome"}),e.jsx("th",{className:"text-left p-3 font-semibold text-gray-700",children:i}),e.jsx("th",{className:"p-3"})]})}),e.jsx("tbody",{children:Q.map(Y=>e.jsxs("tr",{onClick:()=>K(Y),className:"border-b border-gray-100 hover:bg-gray-50 cursor-pointer last:border-b-0",children:[e.jsx("td",{className:"p-3 text-gray-500",children:Y.eh_pasta?e.jsx(Ic,{size:18}):e.jsx(cx,{size:18})}),e.jsxs("td",{className:"p-3 font-medium text-gray-900 break-words",children:[Y.nome,Y.eh_pasta&&e.jsxs("span",{className:"ml-2 text-xs text-gray-400 font-normal",children:["(",Y.totalFilhos," ",Y.totalFilhos===1?"item":"itens",")"]})]}),e.jsx("td",{className:"p-3 text-gray-600 text-xs break-words",children:Y.eh_pasta?e.jsx("span",{className:"text-gray-300",children:"â"}):Y.descricao?e.jsx("span",{className:"whitespace-pre-wrap",children:Y.descricao}):e.jsx("span",{className:"text-gray-400",children:HA(Y.tamanho_bytes)})}),e.jsx("td",{className:"p-3 text-right",children:!Y.eh_pasta&&e.jsx(tt,{size:16,className:"text-gray-400 inline"})})]},Y.id))})]})})})]})}function Ko({titulo:t,descricao:s,icone:i,rota:n,trilhaIntermediaria:l=[],tituloArquivos:d="Documentos relacionados",...u}){return e.jsx(da,{titulo:t,descricao:s,icone:i,rota:n,trilhaIntermediaria:l,children:e.jsx(VA,{...u,tituloArquivos:d})})}function GA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0);return b.useEffect(()=>{(async()=>{try{s(await nA.listar())}catch{s([])}finally{n(!1)}})()},[]),i?e.jsx("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8 text-slate-500 text-sm",children:"Carregando os relatórios..."}):t.length?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden mb-8",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Relatórios"}),e.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Relatórios e pareceres do controle interno, por exercÃcio."})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300 text-left",children:[e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"ExercÃcio"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Tipo"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"TÃtulo"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"PerÃodo"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Publicado"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Arquivo"})]})}),e.jsx("tbody",{children:t.map(l=>e.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50 align-top",children:[e.jsx("td",{className:"p-3 font-semibold text-slate-900",children:l.ano}),e.jsx("td",{className:"p-3 text-slate-700",children:l.tipo&&iA[l.tipo]||l.tipo||"â"}),e.jsxs("td",{className:"p-3",children:[e.jsx("div",{className:"font-semibold text-slate-900",children:l.titulo}),l.descricao&&e.jsx("div",{className:"text-xs text-slate-500",children:l.descricao}),l.responsavel_nome&&e.jsxs("div",{className:"text-xs text-slate-500",children:["Responsável: ",l.responsavel_nome]})]}),e.jsx("td",{className:"p-3 text-slate-700",children:l.periodo??"â"}),e.jsx("td",{className:"p-3 text-slate-700 whitespace-nowrap",children:je(l.data_publicacao)}),e.jsx("td",{className:"p-3",children:l.arquivo_url?e.jsx("a",{href:l.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-blue-700 hover:underline",children:"Abrir â"}):"â"})]},l.id))})]})})]}):e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide mb-1",children:"Relatórios"}),e.jsx("p",{className:"text-sm text-slate-600",children:"Nenhum relatório publicado até o momento."})]})}function WA(){return e.jsx(Ko,{modulo:"controle_interno",titulo:"Controle Interno",descricao:"Relatórios e pareceres do controle interno da Prefeitura",icone:e.jsx(he,{size:32}
140),rota:"/transparencia/controle-interno",conteudoAcima:e.jsx(GA,{})})}function KA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0);return b.useEffect(()=>{(async()=>{try{s(await iv.listar())}catch{s([])}finally{n(!1)}})()},[]),i?e.jsx("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8 text-slate-500 text-sm",children:"Carregando as obras..."}):t.length?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden mb-8",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Obras"}),e.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Objeto, empresa, valor, prazo e quanto já foi executado."})]}),e.jsx("div",{className:"divide-y divide-slate-100",children:t.map(l=>{const d=Number(l.percentual_executado??0);return e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap mb-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"text-xs font-bold text-slate-500 uppercase tracking-wide",children:["Obra ",bd(l.numero,l.ano)]}),e.jsx("h3",{className:"text-lg font-bold text-slate-900",children:l.objeto}),l.endereco&&e.jsx("p",{className:"text-sm text-slate-600",children:l.endereco})]}),e.jsx("span",{className:`inline-block px-3 py-1 rounded-full text-xs font-semibold whitespace-nowrap ${tA[l.situacao]??"bg-slate-100 text-slate-700"}`,children:eA[l.situacao]??l.situacao})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-baseline justify-between mb-1",children:[e.jsx("span",{className:"text-xs font-semibold text-slate-600 uppercase tracking-wide",children:"Execução medida"}),e.jsxs("span",{className:"text-sm font-extrabold text-slate-900",children:[d,"%"]})]}),e.jsx("div",{className:"h-2.5 bg-slate-200 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-blue-600",style:{width:`${d}%`}})})]}),e.jsxs("dl",{className:"grid grid-cols-2 md:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Empresa"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:l.empresa??"â"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Valor"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:Se(iv.valorAtual(l))})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Pago"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:Se(Number(l.valor_pago??0))})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Prazo"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:l.data_conclusao?`ConcluÃda em ${je(l.data_conclusao)}`:`Previsão: ${je(l.data_previsao_termino)}`})]})]})]},l.id)})})]}):e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide mb-1",children:"Obras"}),e.jsx("p",{className:"text-sm text-slate-600",children:"Nenhuma obra em execução ou concluÃda publicada."})]})}function JA(){return e.jsx(Ko,{modulo:"obras",titulo:"Obras",descricao:"Obras da Prefeitura: objeto, empresa, valor, prazo e andamento",icone:e.jsx(fx,{size:32}),rota:"/transparencia/obras",conteudoAcima:e.jsx(KA,{})})}function YA(){const[t,s]=b.useState([]),[i,n]=b.useState(!0);return b.useEffect(()=>{(async()=>{try{s(await nv.listar())}catch{s([])}finally{n(!1)}})()},[]),i?e.jsx("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8 text-slate-500 text-sm",children:"Carregando os certames..."}):t.length?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden mb-8",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Certames"}),e.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Situação, prazo de inscrição, vagas e validade de ca
140da concurso."})]}),e.jsx("div",{className:"divide-y divide-slate-100",children:t.map(l=>{const d=nv.validoAte(l);return e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap mb-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"text-xs font-bold text-slate-500 uppercase tracking-wide",children:[aA[l.tipo]??l.tipo," ",bd(l.numero,l.ano)]}),e.jsx("h3",{className:"text-lg font-bold text-slate-900",children:l.objeto}),l.descricao&&e.jsx("p",{className:"text-sm text-slate-600",children:l.descricao})]}),e.jsx("span",{className:`inline-block px-3 py-1 rounded-full text-xs font-semibold whitespace-nowrap ${rA[l.situacao]??"bg-slate-100 text-slate-700"}`,children:sA[l.situacao]??l.situacao})]}),e.jsxs("dl",{className:"grid grid-cols-2 md:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Banca"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:l.banca??"â"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Vagas"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:l.vagas??"â"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Inscrições"}),e.jsx("dd",{className:"text-slate-800 font-medium",children:l.inscricoes_de||l.inscricoes_ate?`${je(l.inscricoes_de)} a ${je(l.inscricoes_ate)}`:"â"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-slate-500 font-semibold uppercase",children:"Válido até"}),e.jsxs("dd",{className:"text-slate-800 font-medium",children:[d?je(d):"â",l.prorrogado&&e.jsx("span",{className:"block text-xs text-slate-500",children:"prorrogado"})]})]})]}),(l.link_externo||l.arquivo_url)&&e.jsx("a",{href:l.link_externo||l.arquivo_url||"#",target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-4 text-sm font-semibold text-blue-700 hover:underline",children:"Abrir o edital â"})]},l.id)})})]}):e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide mb-1",children:"Certames"}),e.jsx("p",{className:"text-sm text-slate-600",children:"Nenhum concurso ou processo seletivo publicado."})]})}function QA(){return e.jsx(Ko,{modulo:"concursos",titulo:"Concursos Públicos",descricao:"Concursos e processos seletivos: situação, inscrições, vagas e validade",icone:e.jsx(Ua,{size:32}),rota:"/transparencia/recursos-humanos/concursos",trilhaIntermediaria:[{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"}],conteudoAcima:e.jsx(YA,{})})}function XA(){const[t,s]=b.useState([]),[i,n]=b.useState("todos"),[l,d]=b.useState([]),[u,m]=b.useState(!0);b.useEffect(()=>{(async()=>{try{const[g,v]=await Promise.all([rv.listar(),rv.anosDisponiveis()]);s(g),d(v)}catch{s([])}finally{m(!1)}})()},[]);const x=i==="todos"?t:t.filter(g=>g.ano===i),p=x.reduce((g,v)=>g+Number(v.valor_total??0),0);return u?e.jsx("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8 text-slate-500 text-sm",children:"Carregando as concessões..."}):t.length?e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden mb-8",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Concessões de Diária"}),e.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Beneficiário, destino, motivo, perÃodo e valor de cada diária concedida."})]}),l.length>1&&e.jsxs("select",{className:"border border-slate-300 rounded-lg px-3 py-2 text-sm text-slate-700",value:i,onChange:g=>n(g.target.value==="todos"?"todos":Number(g.target.value)),children:[e.jsx("option",{value:"todos",children:"Todos os anos"}),l.map(g=>e.jsx("option",{value:g,children:g},g))]})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300 text-left",children:[e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Nº"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Beneficiário"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Destino"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Motivo"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"PerÃodo"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide text-right",children:"Qtd."}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide text-right",children:"Valor"}),e.jsx("th",{className:"p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",children:"Situação"})]})}),e.jsx("tbody",{children:x.map(g=>e.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50 align-top",children:[e.jsx("td",{className:"p-3 font-semibold text-slate-900 whitespace-nowrap",children:bd(g.numero,g.ano)}),e.jsxs("td",{className:"p-3",children:[e.jsx("div",{className:"font-semibold text-slate-900",children:g.beneficiario_nome}),g.cargo&&e.jsx("div",{className:"text-xs text-slate-500",children:g.cargo})]}),e.jsxs("td",{className:"p-3 text-slate-700",children:[g.destino,g.uf?` â ${g.uf}`:""]}),e.jsx("td",{className:"p-3 text-slate-700 max-w-xs",children:g.motivo}),e.jsxs("td",{className:"p-3 text-slate-700 whitespace-nowrap",children:[je(g.data_saida)," a ",je(g.data_retorno)]}),e.jsx("td",{className:"p-3 text-slate-700 text-right",children:Number(g.quantidade)}),e.jsx("td",{className:"p-3 text-slate-900 font-semibold text-right whitespace-nowrap",children:Se(Number(g.valor_total??0))}),e.jsx("td",{className:"p-3",children:e.jsx("span",{className:"inline-block px-2 py-1 rounded-full text-xs font-semibold bg-slate-100 text-slate-700 whitespace-nowrap",children:ZE[g.situacao]??g.situacao})})]},g.id))}),e.jsx("tfoot",{children:e.jsxs("tr",{className:"bg-slate-50 border-t-2 border-slate-300",children:[e.jsxs("td",{className:"p-3 font-bold text-slate-700 text-right",colSpan:6,children:[x.length," concessão(ões)"]}
140),e.jsx("td",{className:"p-3 font-extrabold text-slate-900 text-right whitespace-nowrap",children:Se(p)}),e.jsx("td",{})]})})]})})]}):e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 p-6 mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide mb-1",children:"Concessões de Diária"}),e.jsx("p",{className:"text-sm text-slate-600",children:"Nenhuma concessão publicada até o momento."})]})}const Ec=t=>(t??0).toLocaleString("pt-BR",{style:"currency",currency:"BRL"});function ZA({referencia:t}){const s=[{campo:"presidente",label:"Prefeito",dados:t.presidente},{campo:"servidores",label:"Servidores",dados:t.servidores}];return e.jsxs("div",{className:"bg-white rounded-xl shadow-md border border-gray-200 overflow-hidden mb-8",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:"Tabela de Referência para Concessão de Diárias"}),e.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Valores aplicad
140os conforme cargo e destino da viagem."})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsxs("thead",{children:[e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300",children:[e.jsx("th",{className:"text-left p-3 font-bold text-slate-800 uppercase text-xs tracking-wide",rowSpan:2,children:"Cargo"}),e.jsx("th",{colSpan:2,className:"text-center p-3 font-bold text-slate-800 uppercase text-xs tracking-wide border-l border-slate-300",children:"Dentro do Estado"}),e.jsx("th",{className:"text-center p-3 font-bold text-slate-800 uppercase text-xs tracking-wide border-l border-slate-300",rowSpan:2,children:"Fora do Estado"}),e.jsx("th",{className:"text-center p-3 font-bold text-slate-800 uppercase text-xs tracking-wide border-l border-slate-300",rowSpan:2,children:"BrasÃlia-DF"})]}),e.jsxs("tr",{className:"bg-slate-100 border-b-2 border-slate-300",children:[e.jsx("th",{className:"text-center p-2 font-semibold text-slate-700 text-xs border-l border-slate-300",children:"Sem pernoite"}),e.jsx("th",{className:"text-center p-2 font-semibold text-slate-700 text-xs border-l border-slate-300",children:"Com pernoite"})]})]}),e.jsx("tbody",{children:s.map(i=>e.jsxs("tr",{className:"border-b border-slate-200",children:[e.jsx("td",{className:"p-3 font-medium text-slate-900",children:i.label}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900 border-l border-slate-200",children:Ec(i.dados?.dentroSemPernoite)}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900 border-l border-slate-200",children:Ec(i.dados?.dentroComPernoite)}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900 border-l border-slate-200",children:Ec(i.dados?.foraEstado)}),e.jsx("td",{className:"p-3 text-right font-mono text-slate-900 border-l border-slate-200",children:Ec(i.dados?.brasiliaDF)})]},i.campo))})]})}),(t.referenciaLegal||t.linkLegislacao||t.observacoes)&&e.jsxs("div",{className:"bg-slate-50 border-t border-slate-200 p-4 text-sm text-slate-700",children:[t.referenciaLegal&&e.jsxs("div",{className:"mb-1",children:[e.jsx("strong",{children:"Legislação:"})," ",t.referenciaLegal,t.linkLegislacao&&e.jsxs(e.Fragment,{children:[" â ",e.jsxs("a",{href:t.linkLegislacao,target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline inline-flex items-center gap-1",children:["ver legislação ",e.jsx(Ke,{size:12})]})]})]}),t.observacoes&&e.jsx("div",{className:"text-xs text-slate-600 mt-2",children:t.observacoes})]})]})}function e5(){const[t,s]=b.useState(null);b.useEffect(()=>{Wo.obter("diarias_referencia").then(s).catch(()=>s(null))},[]);const i=!!t&&((t.presidente?.dentroSemPernoite??0)>0||(t.vereadores?.dentroSemPernoite??0)>0||(t.servidores?.dentroSemPernoite??0)>0);return e.jsx(Ko,{modulo:"diarias",titulo:"Diárias",descricao:"Diárias concedidas, tabela de referência e documentos relacionados",icone:e.jsx(x2,{size:32}),rota:"/transparencia/diarias",conteudoAcima:e.jsxs(e.Fragment,{children:[e.jsx(XA,{}),i&&t&&e.jsx(ZA,{referencia:t})]})})}const t5={publico:"Público",reservado:"Reservado",secreto:"Secreto",ultrassecreto:"Ultrassecreto"},a5={publico:"bg-green-100 text-green-800 border-green-200",reservado:"bg-amber-100 text-amber-800 border-amber-200",secreto:"bg-orange-100 text-orange-800 border-orange-200",ultrassecreto:"bg-red-100 text-red-800 border-red-200"},s5={acesso_informacao:"Acesso à informação",dados_pessoais:"Dados pessoais",outro:"Outro"};function r5(){const t=new Date,s=t.getFullYear()-1,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${s}-${i}-${n}`}function i5(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(null),g=b.useCallback(async()=>{d(!0),m(null);try{const[C,T]=await Promise.all([QE.listar(),XE.listar()]);s(C),n(T),C.length&&p(Math.max(...C.map(w=>w.ano)))}catch{m("Não foi possÃvel carregar os relatórios do SIC.")}finally{d(!1)}},[]);b.useEffect(()=>{g()},[g]);const v=b.useMemo(()=>t.map(C=>C.ano).sort((C,T)=>T-C),[t]),j=b.useMemo(()=>t.find(C=>C.ano===x)??null,[t,x]),N=b.useMemo(()=>i.filter(C=>!C.desclassificado&&C.classificacao!=="publico"),[i]),k=b.useMemo(()=>{const C=r5();return i.filter(T=>T.desclassificado&&(T.data_desclassificacao??"")>=C)},[i]),S=j?.por_tipo??{};return e.jsxs(da,{titulo:"Relatórios do SIC",descricao:"Pedidos de acesso à informação e documentos classificados",icone:e.jsx(he,{size:32}
140),rota:"/transparencia/sic-relatorios",children:[e.jsxs(gr,{titulo:"O que a Lei exige aqui",children:[e.jsxs("p",{children:["A ",e.jsx("strong",{children:"Lei 12.527/2011 (LAI)"})," obriga cada órgão a publicar anualmente o quantitativo de pedidos de acesso recebidos, atendidos e indeferidos (art. 30, III), além do rol de documentos classificados em sigilo e daqueles desclassificados nos últimos 12 meses (art. 30, I e II)."]}),e.jsxs("p",{children:["Os dados pessoais de quem solicita â nome, CPF, e-mail â ",e.jsx("strong",{children:"não são divulgados"}),", conforme o art. 31 da LAI e a LGPD (Lei 13.709/2018)."]})]}),l?e.jsx(ua,{mensagem:"Carregando relatórios..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>{g()}}):e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Relatório anual de pedidos"}),e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Conforme art. 30, III da Lei 12.527/2011."})]}),v.length>0&&e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx("span",{className:"text-gray-600",children:"ExercÃcio:"}),e.jsx("select",{value:x??"",onChange:C=>p(Number(C.target.value)),className:"px-3 py-2 border border-gray-300 rounded-lg bg-white focus:ring-2 focus:ring-institutional",children:v.map(C=>e.jsx("option",{value:C,children:C},C))})]})]}),j?e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[e.jsx(Gi,{rotulo:"Recebidos",valor:j.total_pedidos,destaque:!0}),e.jsx(Gi,{rotulo:"Atendidos",valor:j.atendidos}),e.jsx(Gi,{rotulo:"Parcialmente atendidos",valor:j.parcialmente_atendidos}),e.jsx(Gi,{rotulo:"Indeferidos",valor:j.indeferidos}),e.jsx(Gi,{rotulo:"Em andamento",valor:j.em_andamento}),e.jsx(Gi,{rotulo:"Recursos",valor:j.recursos})]}),j.tempo_medio_resposta!==null&&e.jsxs("p",{className:"text-sm text-gray-700",children:["Tempo médio de resposta:"," ",e.jsxs("strong",{children:[j.tempo_medio_resposta," dias"]})," â o prazo legal é de 20 dias, prorrogáveis por mais 10."]}),Object.keys(S).length>0&&e.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[e.jsx("h3",{className:"text-xs font-bold text-gray-600 uppercase mb-2",children:"Perfil dos pedidos por tipo"}),e.jsx("ul",{className:"text-sm space-y-1",children:Object.entries(S).map(([C,T])=>e.jsxs("li",{className:"flex justify-between text-gray-700",children:[e.jsx("span",{children:s5[C]??C}),e.jsx("span",{className:"font-mono font-semibold",children:T})]},C))})]}),j.observacoes&&e.jsx("p",{className:"text-sm text-gray-700 whitespace-pre-line",children:j.observacoes}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-gray-600",children:[j.publicado_em&&e.jsxs("span",{children:["Publicado em ",je(j.publicado_em)]}),j.arquivo_url&&e.jsxs("a",{href:j.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-institutional hover:underline font-semibold",children:[e.jsx(tt,{size:14}),"Baixar relatório completo"]})]})]}):e.jsxs("div",{className:"p-12 text-center text-sm text-gray-600",children:[e.jsx(ht,{size:28,className:"mx-auto text-gray-300 mb-3"}),e.jsx("p",{children:"Nenhum relatório anual foi publicado até o momento."})]})]}),e.jsx(mv,{titulo:"Documentos classificados em sigilo",subtitulo:"Rol exigido pelo art. 30, I da Lei 12.527/2011.",icone:e.jsx(Za,{size:20}),documentos:N,vazio:"Nenhum documento classificado em sigilo."}),e.jsx(mv,{titulo:"Desclassificados nos últimos 12 meses",subtitulo:"Rol exigido pelo art. 30, II da Lei 12.527/2011.",icone:e.jsx(zm,{size:20}),documentos:k,vazio:"Nenhum documento desclassificado nos últimos 12 meses.",mostrarDesclassificacao:!0}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsx(jt,{icone:e.jsx(Za,{size:24,className:"text-institutional"}),rotulo:"Documentos sob sigilo",valor:N.length}),e.jsx(jt,{icone:e.jsx(zm,{size:24,className:"text-institutional"}),rotulo:"Desclassificados em 12 meses",valor:k.length})]})]})]})}function Gi({rotulo:t,valor:s,destaque:i=!1}){return e.jsxs("div",{className:`border rounded-lg p-4 ${i?"border-institutional bg-institutional/5":"border-gray-200 bg-gray-50"}`,children:[e.jsx("div",{className:"text-xs font-bold text-gray-600 uppercase mb-1",children:t}),e.jsx("div",{className:"text-3xl font-bold text-gray-900",children:s})]})}function mv({titulo:t,subtitulo:s,icone:i,documentos:n,vazio:l,mostrarDesclassificacao:d=!1}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 flex items-center gap-2",children:[e.jsx("span",{className:"text-institutional",children:i}),t]}),e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:s})]}),n.length===0?e.jsxs("div",{className:"p-12 text-center text-sm text-gray-600",children:[e.jsx(ht,{size:28,className:"mx-auto text-gray-300 mb-3"}),e.jsx("p",{children:l})]}):e.jsx("ul",{className:"divide-y divide-gray-200",children:n.map(u=>e.jsxs("li",{className:"p-6",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-1",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-bold border ${a5[u.classificacao]??"bg-gray-100 text-gray-700"}`,children:t5[u.classificacao]??u.classificacao}),u.categoria&&e.jsx("span",{className:"text-xs text-gray-500",children:u.categoria})]}),e.jsx("h3",{className:"font-semibold text-gray-900",children:u.titulo}),u.assunto&&e.jsx("p",{className:"text-sm text-gray-700 mt-1",children:u.assunto}),u.fundamento_legal&&e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Fundamento: ",u.fundamento_legal]})]}),e.jsxs("dl",{className:"text-xs text-gray-600 space-y-1 text-right flex-shrink-0",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"inline text-gray-500",children:"Classificado em: "}),e.jsx("dd",{className:"inline font-semibold",children:je(u.data_classificacao)})]}),u.prazo_anos!==null&&e.jsxs("div",{children:[e.jsx("dt",{className:"inline text-gray-500",children:"Prazo: "}),e.jsxs("dd",{className:"inline font-semibold",children:[u.prazo_anos," anos"]})]}),d&&u.data_desclassificacao&&e.jsxs("div",{children:[e.jsx("dt",{className:"inline text-gray-500",children:"Desclassificado em: "}),e.jsx("dd",{className:"inline font-semibold",children:je(u.data_desclassificacao)})]})]})]}
140),d&&u.motivo_desclassificacao&&e.jsx("p",{className:"text-sm text-gray-700 mt-2 italic",children:u.motivo_desclassificacao})]},u.id))})]})}function n5(){const{instituicao:t,nomeCasa:s}=st(),[i,n]=b.useState(null);b.useEffect(()=>{let u=!0;return Wo.obter("lgpd_encarregado").then(m=>{u&&n(m)}).catch(()=>{}),()=>{u=!1}},[]);const l=i?.email??t?.contato?.email??null,d=i?.telefone??t?.contato?.telefone??null;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"LGPD",path:"/transparencia/lgpd"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Rs,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Lei Geral de Proteção de Dados - LGPD"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Proteção de dados pessoais e privacidade na Prefeitura"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Rs,{size:24,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Sobre a LGPD"}),e.jsxs("div",{className:"text-sm text-gray-700 space-y-2",children:[e.jsx("p",{children:"A Lei n. 13.709, de 14 de agosto de 2018, denominada Lei Geral de Proteção de Dados Pessoais (LGPD), dispõe sobre o tratamento de dados pessoais por pessoa natural ou por pessoa jurÃdica de direito público ou privado, com o objetivo de proteger os direitos fundamentais de liberdade e de privacidade e o livre desenvolvimento da personalidade da pessoa natural."}),e.jsxs("p",{children:["A ",s," está comprometida com a proteção de dados pessoais e a privacidade dos cidadãos, em conformidade com a legislação vigente."]})]})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Nt,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Encarregado de Proteção de Dados (DPO)"})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:[e.jsx("p",{className:"text-gray-700 mb-4",children:"O Encarregado de Proteção de Dados (Data Protection Officer - DPO) é o profissional responsável por atuar como canal de comunicação entre a Câmara Municipal, os titulares dos dados e a Autoridade Nacional de Proteção de Dados (ANPD)."}),e.jsxs("div",{className:"bg-white rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Encarregado LGPD"}),i?.nome?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-1",children:i.nome}),e.jsx("p",{className:"text-sm text-gray-600",children:i.cargo??"Encarregado(a) de Proteção de Dados Pessoais"}),i.ato_designacao&&e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Designação: ",i.ato_designacao]})]}):e.jsx("p",{className:"text-sm text-gray-700",children:"A designação do Encarregado está em processo. Enquanto isso, os pedidos relativos a dados pessoais devem ser encaminhados ao contato institucional abaixo e serão tratados pela Ouvidoria."}),e.jsxs("div",{className:"space-y-3 mt-4 pt-4 border-t border-gray-200",children:[l&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ze,{size:20,className:"text-institutional"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"E-mail"}),e.jsx("a",{href:`mailto:${l}`,className:"text-institutional hover:underline font-semibold break-all",children:l})]})]}),d&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(zt,{size:20,className:"text-institutional"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Telefone"}),e.jsx("a",{href:`tel:${d.replace(/\D/g,"")}`,className:"text-institutional hover:underline font-semibold",children:d})]})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Za,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Seus Direitos"})]}),e.jsx("p",{className:"text-gray-700 mb-6",children:"Como titular de dados pessoais, você possui os
140seguintes direitos garantidos pela LGPD:"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"1. Confirmação e Acesso"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Confirmar a existência de tratamento e acessar seus dados pessoais."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"2. Correção"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Corrigir dados incompletos, inexatos ou desatualizados."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"3. Anonimização e Bloqueio"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Solicitar anonimização, bloqueio ou eliminação de dados desnecessários."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"4. Portabilidade"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Solicitar a portabilidade dos dados a outro fornecedor de serviço."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"5. Eliminação"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Solicitar a eliminação dos dados tratados com seu consentimento."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"6. Informação"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Ser informado sobre entidades públicas e privadas com as quais houve compartilhamento de dados."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"7. Revogação do Consentimento"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Revogar o consentimento a qualquer momento."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"8. Oposição"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Opor-se ao tratamento realizado com base em outras hipóteses legais."})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(he,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Como Exercer Seus Direitos"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional text-white rounded-full flex items-center justify-center font-bold text-sm flex-shrink-0 mt-1",children:"1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Entre em Contato"}),e.jsxs("p",{className:"text-sm text-gray-700",children:["Envie sua solicitação para o e-mail do Encarregado de Proteção de Dados",l?": ":". ",l&&e.jsx("a",{href:`mailto:${l}`,className:"text-institutional hover:underline font-semibold break-all",children:l})," ","Você também pode registrar o pedido pela"," ",e.jsx("a",{href:"/atendimento/ouvidoria",className:"text-institutional hover:underline font-semibold",children:"Ouvidoria"}),", que emite protocolo e prazo."]})]})]})}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional text-white rounded-full flex items-center justify-center font-bold text-sm flex-shrink-0 mt-1",children:"2"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Identifique-se"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Informe seus dados de identificação (nome completo, CPF) e descreva claramente qual direito deseja exercer."})]})]})}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional text-white rounded-full flex items-center justify-center font-bold text-sm flex-shrink-0 mt-1",children:"3"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Aguarde o Retorno"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Sua solicitação será analisada e você receberá uma resposta no prazo estabelecido pela legislação."})]})]})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"PrincÃpios da Proteção de Dados"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Finalidade"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Tratamento para propósitos legÃtimos, especÃficos e informados ao titular."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Adequação"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Compatibilidade do tratamento com as finalidades informadas."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Necessidade"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Limitação ao mÃnimo necessário para a realização das finalidades."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Transparência"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Garantia de informações claras e acessÃveis sobre o tratamento."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Segurança"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Medidas técnicas e administrativas para proteção dos dados."})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border-l-4 border-institutional",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Não Discriminação"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Impossibilidade de tratamento para fins discriminatórios."})]})]})]}),e.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{size:24,className:"text-amber-600 mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-amber-900 mb
140-2",children:"Importante"}),e.jsxs("div",{className:"text-sm text-amber-800 space-y-2",children:[e.jsxs("p",{children:["A ",s," não solicitará dados pessoais sensÃveis por e-mail, telefone ou aplicativos de mensagens. Desconfie de mensagens suspeitas."]}),e.jsxs("p",{children:["Para mais informações sobre a legislação, consulte o texto completo da"," ",e.jsx("a",{href:"http://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709.htm",target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-amber-900 hover:underline",children:"Lei nº 13.709/2018"}),"."]})]})]})]})})]})})]}),e.jsx(ge,{})]})}const o5={transferencia_recebida:"bg-green-100 text-green-700",transferencia_realizada:"bg-blue-100 text-blue-700",acordo_sem_repasse:"bg-gray-100 text-gray-700"};function l5(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(""),[g,v]=b.useState("todos"),[j,N]=b.useState("todos"),[k,S]=b.useState("todos"),C=b.useCallback(async()=>{d(!0),m(null);try{const[z,Q]=await Promise.all([Xm.listar(),Xm.anosDisponiveis()]);s(z),n(Q)}catch(z){m(z instanceof Error?z.message:"Não foi possÃvel carregar os convênios.")}finally{d(!1)}},[]);b.useEffect(()=>{C()},[C]);const T=b.useMemo(()=>[...new Set(t.map(z=>z.area))],[t]),w=b.useMemo(()=>{const z=x.trim().toLowerCase();return t.filter(Q=>g!=="todos"&&String(Q.ano)!==g||j!=="todos"&&Q.categoria!==j||k!=="todos"&&Q.area!==k?!1:z?[Q.numero,Q.titulo,Q.objeto,Q.parceiro,Q.concedente,Q.convenente].some(K=>(K??"").toLowerCase().includes(z)):!0)},[t,x,g,j,k]),_=()=>{p(""),v("todos"),N("todos"),S("todos")},E=x!==""||g!=="todos"||j!=="todos"||k!=="todos",O=w.filter(z=>z.categoria==="transferencia_recebida").reduce((z,Q)=>z+Number(Q.valor_recebido??Q.valor_repasse??0),0),$=w.filter(z=>z.categoria==="transferencia_realizada").reduce((z,Q)=>z+Number(Q.valor_concedido??Q.valor_repasse??0),0);return e.jsxs(da,{titulo:"Convênios",descricao:"Convênios, transferências e acordos firmados pela Prefeitura",icone:e.jsx(he,{size:32}),rota:"/transparencia/convenios",children:[e.jsxs(gr,{titulo:"Sobre os Convênios",children:[e.jsx("p",{children:"Convênios são acordos firmados com outros órgãos ou entidades para execução de objetivos de interesse comum, com ou sem repasse de recursos e com contrapartida definida."}),e.jsxs("p",{children:[e.jsx("strong",{children:"Transparência:"})," a divulgação é exigida pela Lei de Acesso à Informação e pela Lei de Responsabilidade Fiscal. Convênios são classificados conforme a Prefeitura receba ou repasse os recursos."]})]}),e.jsx(br,{busca:x,aoBuscar:p,rotuloBusca:"Buscar por número, tÃtulo, objeto ou parceiro",placeholderBusca:"Ex: 002/2026 ou aquisição de equipamentos",filtros:[{id:"categoria",rotulo:"Categoria",valor:j,aoMudar:N,opcoes:[{valor:"todos",rotulo:"Todas as categorias"},...Object.keys(cm).map(z=>({valor:z,rotulo:cm[z]}))]},{id:"ano",rotulo:"ExercÃcio",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todos os exercÃcios"},...i.map(z=>({valor:String(z),rotulo:String(z)}))]},{id:"area",rotulo:"Ãrea",valor:k,aoMudar:S,opcoes:[{valor:"todos",rotulo:"Todas as áreas"},...T.map(z=>({valor:z,rotulo:ev[z]}))]}],aoLimpar:_,temFiltroAtivo:E}),e.jsxs(Go,{children:[e.jsx(jt,{rotulo:"Total de Convênios",valor:w.length,icone:e.jsx(he,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Recursos Recebidos",valor:Se(O),icone:e.jsx(ut,{size:24,className:"text-institutional"}),compacto:!0}),e.jsx(jt,{rotulo:"Recursos Repassados",valor:Se($),icone:e.jsx(ot,{size:24,className:"text-institutional"}),compacto:!0})]}),e.jsx("div",{className:"space-y-6",children:l?e.jsx(ua,{mensagem:"Carregando convênios..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>{C()}}):w.length===0?e.jsx(zs,{mensagem:"Nenhum convênio encontrado com os filtros selecionados.",aoLimpar:E?_:void 0}):w.map(z=>{const Q=z.categoria,K=z.esfera;return e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow",children:[e.jsx(wx,{titulo:z.titulo||`Convênio nº ${z.numero}/${z.ano}
140`,subtitulo:z.titulo?`Nº ${z.numero}/${z.ano}`:null,badge:e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(es,{texto:cm[Q],cor:o5[Q]}),e.jsx(es,{texto:Ym[z.status],cor:_y[z.status]})]})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Objeto"}),e.jsx("p",{className:"text-gray-900",children:z.objeto})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-6 pb-6 border-b border-gray-200",children:[e.jsx(Rt,{rotulo:"Parceiro",valor:z.parceiro||z.concedente||z.convenente||"â",icone:e.jsx(ot,{size:14})}),e.jsx(Rt,{rotulo:"Esfera",valor:K?WE[K]:"â"}),e.jsx(Rt,{rotulo:"Ãrea",valor:ev[z.area]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-6",children:[e.jsx(Rt,{rotulo:"Assinatura",valor:je(z.data_assinatura),icone:e.jsx(Ee,{size:14})}),e.jsx(Rt,{rotulo:"InÃcio",valor:je(z.data_inicio),icone:e.jsx(Ee,{size:14})}),e.jsx(Rt,{rotulo:"Término",valor:je(z.data_fim),icone:e.jsx(Ee,{size:14})}),e.jsx(Rt,{rotulo:Q==="transferencia_realizada"?"Repassado":"Recebido",valor:Se(Q==="transferencia_realizada"?z.valor_concedido??z.valor_repasse:z.valor_recebido??z.valor_repasse),icone:e.jsx(ut,{size:14})}),e.jsx(Rt,{rotulo:"Contrapartida",valor:Se(z.contrapartida),icone:e.jsx(ut,{size:14})})]}),z.obrigacoes_ajustadas&&e.jsxs("div",{className:"mb-6 pb-6 border-b border-gray-200",children:[e.jsxs("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:[e.jsx(De,{size:14,className:"inline mr-1"}),"Obrigações Ajustadas"]}),e.jsx("p",{className:"text-gray-700 text-sm whitespace-pre-wrap",children:z.obrigacoes_ajustadas})]}),z.observacoes&&e.jsxs("div",{className:"mb-6 pb-6 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Observações"}),e.jsx("p",{className:"text-gray-700 text-sm whitespace-pre-wrap",children:z.observacoes})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 pt-6 border-t border-gray-200",children:[e.jsx(Rt,{rotulo:"Valor Total",valor:Se(z.valor_total),icone:e.jsx(ut,{size:14}),destaque:!0}),e.jsxs("div",{className:"flex items-center gap-4",children:[z.responsavel_nome&&e.jsxs("span",{className:"text-sm text-gray-600",children:["Responsável: ",e.jsx("strong",{children:z.responsavel_nome})]}),z.arquivo_url&&e.jsxs("a",{href:z.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(tt,{size:16}),"Baixar Instrumento"]})]})]})]})]},z.id)})})]})}function c5(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(""),[g,v]=b.useState("todos"),[j,N]=b.useState("todos"),k=b.useCallback(async()=>{d(!0),m(null);try{const[E,O]=await Promise.all([av.listar(),av.anosDisponiveis()]);s(E),n(O)}catch(E){m(E instanceof Error?E.message:"Não foi possÃvel carregar os precatórios.")}finally{d(!1)}},[]);b.useEffect(()=>{k()},[k]);const S=b.useMemo(()=>{const E=x.trim().toLowerCase();return t.filter(O=>g!=="todos"&&String(O.ano_referencia)!==g||j!=="todos"&&O.situacao!==j?!1:E?[O.numero,O.beneficiario,O.processo_judicial,O.tribunal].some($=>($??"").toLowerCase().includes(E)):!0)},[t,x,g,j]),C=()=>{p(""),v("todos"),N("todos")},T=x!==""||g!=="todos"||j!=="todos",w=S.filter(E=>E.situacao!=="pago"&&E.situacao!=="cancelado").reduce((E,O)=>E+Number(O.valor_atualizado??O.valor??0),0),_=S.reduce((E,O)=>E+Number(O.valor_pago??0),0);return e.jsxs(da,{titulo:"Precatórios",descricao:"Informações sobre precatórios e requisições judiciais",icone:e.jsx(ut,{size:32}),rota:"/transparencia/precatorios",children:[e.jsxs(gr,{titulo:"Sobre os Precatórios",children:[e.jsx("p",{children:"Precatórios são requisições de pagamento expedidas pelo Poder Judiciário contra a Fazenda Pública, após decisão judicial definitiva."}),e.jsxs("p",{children:[e.jsx("strong",{children:"Ordem cronológica:"})," o pagamento segue rigorosamente a ordem de apresentação, conforme o art.
140100 da Constituição Federal. Créditos de natureza alimentar têm preferência."]})]}),e.jsx(br,{busca:x,aoBuscar:p,rotuloBusca:"Buscar por número, credor, processo ou tribunal",placeholderBusca:"Ex: PRC-2024-001 ou nome do credor",filtros:[{id:"ano",rotulo:"ExercÃcio de referência",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todos os exercÃcios"},...i.map(E=>({valor:String(E),rotulo:String(E)}))]},{id:"situacao",rotulo:"Situação",valor:j,aoMudar:N,opcoes:[{valor:"todos",rotulo:"Todas as situações"},...Object.keys(dm).map(E=>({valor:E,rotulo:dm[E]}))]}],aoLimpar:C,temFiltroAtivo:T}),e.jsxs(Go,{children:[e.jsx(jt,{rotulo:"Total de Precatórios",valor:S.length,icone:e.jsx(he,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Valor a Pagar (atualizado)",valor:Se(w),icone:e.jsx(ut,{size:24,className:"text-institutional"}),compacto:!0}),e.jsx(jt,{rotulo:"Total Já Pago",valor:Se(_),icone:e.jsx(De,{size:24,className:"text-institutional"}),compacto:!0})]}),l?e.jsx(ua,{mensagem:"Carregando precatórios..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>{k()}}):S.length===0?e.jsx(zs,{mensagem:"Nenhum precatório encontrado com os filtros selecionados.",aoLimpar:T?C:void 0}):e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Ordem"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Precatório"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Credor"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Natureza"}),e.jsx("th",{className:"text-right p-4 font-semibold text-gray-700",children:"Valor Original"}),e.jsx("th",{className:"text-right p-4 font-semibold text-gray-700",children:"Valor Atualizado"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Expedição"}),e.jsx("th",{className:"text-left p-4 font-semibold text-gray-700",children:"Situação"})]})}),e.jsx("tbody",{children:S.map(E=>e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0 hover:bg-gray-50",children:[e.jsx("td",{className:"p-4 text-gray-500 font-mono",children:E.ordem_cronologica??"â"}),e.jsxs("td",{className:"p-4",children:[e.jsx("div",{className:"font-semibold text-gray-900",children:E.numero}),E.processo_judicial&&e.jsxs("div",{className:"text-xs text-gray-500 flex items-center gap-1 mt-1",children:[e.jsx(he,{size:12}),E.processo_judicial]}),E.tribunal&&e.jsx("div",{className:"text-xs text-gray-500",children:E.tribunal})]}),e.jsx("td",{className:"p-4",children:e.jsxs("span",{className:"text-gray-900 flex items-center gap-1",children:[e.jsx(Nt,{size:12,className:"text-gray-400"}),E.beneficiario??"â"]})}),e.jsx("td",{className:"p-4 text-gray-600 capitalize",children:E.natureza??"â"}),e.jsx("td",{className:"p-4 text-right font-mono text-gray-600",children:Se(E.valor_original??E.valor)}),e.jsx("td",{className:"p-4 text-right font-mono font-semibold text-gray-900",children:Se(E.valor_atualizado??E.valor)}),e.jsx("td",{className:"p-4 text-gray-600",children:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ee,{size:12,className:"text-gray-400"}),je(E.data_expedicao)]})}),e.jsx("td",{className:"p-4",children:e.jsx(es,{texto:dm[E.situacao],cor:KE[E.situacao]})})]},E.id))})]})})})]})}function d5(){const{instituicao:t,enderecoLinhas:s,nomeCasa:i}=st(),n=[{titulo:"Acesso à Informação (e-SIC)",descricao:"Solicitação de informações públicas conforme Lei de Acesso à Informação (LAI)",comoAcessar:"Portal da Transparência ou presencialmente",prazo:"Até 20 dias corridos (prorrogável uma vez por mais 10, com justificativa)",requisitos:["Nome completo","E-mail ou endereço para resposta"],documentos:"Não é necessário apresentar documentos",icone:ht},{titulo:"Ouvidoria",descricao:"Canal para reclamações, denúncias, elogios e sugestões sobre serviços públicos",comoAcessar:"Formulário online, e-mail ou presencialmente",prazo:"Até 30 dias corridos (prorrogável uma vez por igual perÃodo, com justificativa)",requisitos:["Nome completo","E-mail ou telefone para contato"],documentos:"Documentos complementares são opcionais",icone:ot},{titulo:"Protocolo de Documentos",descricao:"Protocolo de requerimentos, petições e documentos diversos",comoAcessar:"Presencialmente na Secretaria Geral",prazo:"Protocolo imediato com recibo",requisitos:["Documento de identificação","Documento a ser protocolado"],documentos:"RG ou CPF do solicitante",icone:he},{titulo:"Cópia de Documentos Públicos",descricao:"Solicitação de cópias de atas, leis, decretos e outros documentos",comoAcessar:"Presencialmente ou por e-mail",prazo:"Até 5 dias úteis",requisitos:["Identificação do documento solicitado"],documentos:"Não é necessário apresentar documentos",icone:tt},{titulo:"Sugira uma Lei",descricao:"Apresentação de sugestões de projetos de lei de interesse público",comoAcessar:"Formulário online ou presencialmente",prazo:"Análise em até 30 dias",requisitos:["Nome completo","Descrição detalhada da sugestão"],documentos:"Documentos de apoio são opcionais",icone:he},{titulo:"Agendamento de Visita",descricao:"Agendamento de visitas guiadas à s instalações da Prefeitura",comoAcessar:"Telefone ou e-mail",prazo:"Confirmação em até 3 dias úteis",requisitos:["Nome do responsável","Quantidade de visitantes","Data desejada"],documentos:"Não é necessário apresentar documentos",icone:xt},{titulo:"Consulta de Processos Administrativos",descricao:"Consulta à tramitação de projetos de lei e outras proposições",comoAcessar:"Portal online ou presencialmente",prazo:"Consulta imediata",requisitos:["Número do processo ou assunto"],documentos:"Não é necessário apresentar documentos",icone:he},{titulo:"Acompanhamento de Audiências Públicas",descricao:"Assistir à s sessões plenárias presencialmente ou pela internet",comoAcessar:"Presencialmente à s terças-feiras à s 19h ou transmissão ao vivo",prazo:"Acesso imediato",requisitos:["Não há requisitos"],documentos:"Não é necessário apresentar documentos",icone:ot}];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
140),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Carta de Serviços",path:"/transparencia/carta-servicos"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Carta de Serviços ao Usuário"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Conheça os serviços prestados pela Prefeitura"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ht,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"O que é a Carta de Serviços?"}),e.jsxs("p",{className:"text-gray-700 mb-4",children:["A Carta de Serviços ao Usuário informa aos cidadãos sobre quais os serviços prestados pela ",i,", como acessá-los e quais são os compromissos de qualidade no atendimento."]}),e.jsx("p",{className:"text-gray-700",children:"Este documento é uma ferramenta de educação para a cidadania e de promoção da transparência, facilitando o acesso do cidadão aos serviços públicos legislativos."})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Informações para Contato"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.length>0&&e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(xt,{className:"text-institutional",size:24}),e.jsx("h3",{className:"font-bold text-gray-900",children:"Endereço"})]}),e.jsx("p",{className:"text-gray-700",children:s.map(l=>e.jsx("span",{className:"block",children:l},l))})]}),t?.horario_atendimento&&e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(mt,{className:"text-institutional",size:24}),e.jsx("h3",{className:"font-bold text-gray-900",children:"Horário de Atendimento"})]}),e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:t.horario_atendimento})]}),t?.contato?.telefone&&e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(zt,{className:"text-institutional",size:24}),e.jsx("h3",{className:"font-bold text-gray-900",children:"Telefone"})]}),e.jsx("p",{className:"text-gray-700",children:e.jsx("a",{href:`tel:${t.contato.telefone.replace(/\D/g,"")}`,className:"hover:text-institutional",children:t.contato.telefone})})]}),t?.contato?.email&&e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ze,{className:"text-institutional",size:24}),e.jsx("h3",{className:"font-bold text-gray-900",children:"E-mail"})]}),e.jsx("p",{className:"text-gray-700 break-all",children:e.jsx("a",{href:`mailto:${t.contato.email}`,className:"hover:text-institutional",children:t.contato.email})})]})]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Serviços DisponÃveis"}),e.jsx("div",{className:"space-y-6",children:n.map((l,d)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(l.icone,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:l.titulo}),e.jsx("p",{className:"text-gray-700 mb-4",children:l.descricao})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-sm text-gray-900 mb-2",children:"Como Acessar"}),e.jsx("p",{className:"text-sm text-gray-700",children:l.comoAcessar})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-sm text-gray-900 mb-2",children:"Prazo de Atendimento"}),e.jsx("p",{className:"text-sm text-gray-700",children:l.prazo})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-sm text-gray-900 mb-2",children:"Requisitos"}),e.jsx("ul",{className:"space-y-1",children:l.requisitos.map((u,m)=>e.jsxs("li",{className:"text-sm text-gray-700 flex items-start gap-2",children:[e.jsx("span",{className:"w-1 h-1 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:u})]},m))})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("h4",{className:"font-bold text-sm text-gray-900 mb-2",children:"Documentos"}),e.jsx("p",{className:"text-sm text-gray-700",children:l.documentos})]})]})]},d))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Nossos Compromissos"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Atendimento de Quali
140dade"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Atendimento respeitoso e cortês"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Informações claras e precisas"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Acessibilidade para todos os cidadãos"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Cumprimento dos prazos estabelecidos"})]})]})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Transparência"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Publicação de todas as informações públicas"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Acesso facilitado a dados e documentos"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Prestação de contas à sociedade"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:"Atualização constante de informações"})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Links Ãteis"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/atendimento/esic",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(ht,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"e-SIC"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Acesso à Informação"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]}),e.jsxs("a",{href:"/atendimento/ouvidoria",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(ot,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"Ouvidoria"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Fale com a Ouvidoria"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]}),e.jsxs("a",{href:"/institucional/contato",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(Ze,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"Contato"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Todas as formas de contato"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]})]})]})]})})]}),e.jsx(ge,{})]})}function u5(){const t=[{categoria:"Informações Institucionais",peso:"15%",itens:["Estrutura organizacional","Competências e regimentos","Endereços e telefones de contato","Horários de atendimento","
140Legislação aplicável"],status:"Completo"},{categoria:"Despesas e Receitas",peso:"20%",itens:["Execução orçamentária","Folha de pagamento","Licitações e contratos","Convênios e transferências","Balancetes mensais"],status:"Completo"},{categoria:"Gestão de Pessoas",peso:"15%",itens:["Quadro de servidores","Atos de pessoal","Concursos públicos","Plano de cargos e salários","Informações sobre terceirizados"],status:"Completo"},{categoria:"Atividade Legislativa",peso:"25%",itens:["Proposições legislativas","Atas de sessões plenárias","Pautas e ordem do dia","Votações nominais","Comissões permanentes e temporárias"],status:"Completo"},{categoria:"Acesso à Informação",peso:"15%",itens:["Serviço de Informação ao Cidadão (e-SIC)","Relatórios de pedidos de informação","Carta de serviços","Ouvidoria ativa","Dados abertos"],status:"Completo"},{categoria:"Controle e Fiscalização",peso:"10%",itens:["Relatórios de controle interno","Prestação de contas ao TCE","Pareceres e recomendações","Ações de corregedoria","Fiscalização do Executivo"],status:"Completo"}],s=[{ano:2024,pontuacao:98.5,posicaoEstadual:"Informação não disponÃvel",posicaoNacional:"Informação não disponÃvel",classificacao:"Excelente"},{ano:2023,pontuacao:96.8,posicaoEstadual:"Informação não disponÃvel",posicaoNacional:"Informação não disponÃvel",classificacao:"Excelente"},{ano:2022,pontuacao:95.2,posicaoEstadual:"Informação não disponÃvel",posicaoNacional:"Informação não disponÃvel",classificacao:"Excelente"}],i=[{titulo:"Portal da Transparência Atualizado",descricao:"Informações atualizadas diariamente com dados sobre despesas, receitas, contratos e licitações.",icone:mr},{titulo:"Dados Abertos",descricao:"Disponibilização de dados em formato aberto (CSV, JSON, XML) para facilitar o controle social.",icone:he},{titulo:"Sessões ao Vivo",descricao:"Transmissão ao vivo de todas as sessões plenárias pela internet com gravação disponÃvel.",icone:De},{titulo:"e-SIC Ativo",descricao:"Serviço eletrônico de Informação ao Cidadão respondendo pedidos dentro do prazo legal.",icone:ht}];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Transparência",path:"/transparencia"},{label:"Ãndice de Transparência",path:"/transparencia/indice"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Ua,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Ãndice de Transparência"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Avaliação e classificação de transparência legislativa"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ht,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"O que é o Ãndice de Transparência?"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"O Ãndice de Transparência do Poder Legislativo é uma ferramenta criada para classificar e avaliar as Casas Legislativas brasileiras quanto ao cumprimento das leis de transparência e acesso à informação."}),e.jsx("p",{className:"text-gray-700",children:"A avaliação considera critérios como disponibilização de dados financeiros, publicação de informações institucionais, facilidade de acesso à informação, dados abertos e participação cidadã."})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Pontuação Atual - 2024"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(on,{className:"text-institutional",size:28}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Pontuação Geral"}),e.jsx("p",{className:"text-3xl font-bold text-institutional",children:"98.5"})]})]}),e.jsx("p",{className:"text-sm text-gray-700",children:"de 100 pontos possÃveis"})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(Ua,{className:"text-institutional",size:28}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Classificação"}),e.jsx("p",{className:"text-2xl font-bold text-institutional",children:"Excelente"})]})]}),e.jsx("p",{className:"text-sm text-gray-700",children:"Acima de 90 pontos"})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(mr,{className:"text-institutional",size:28}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Tendência"}),e.jsx("p",{className:"text-2xl font-bold text-institutional",children:"â +1.7"})]})]}),e.jsx("p",{className:"text-sm text-gray-700",children:"em relação a 2023"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Critérios de Avaliação"}),e.jsx("div",{className:"space-y-4",children:t.map((n,l)=>e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:n.categoria}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Peso na avaliação: ",e.jsx("strong",{children:n.peso})]})]}),e.jsxs("div",{className:"flex items-center gap-2 bg-institutional/10 px-4 py-2 rounded-lg",children:[e.jsx(De,{className:"text-institutional",size:18}),e.jsx("span",{className:"text-sm font-bold text-institutional",children:n.status})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:n.itens.map((d,u)=>e.jsxs("div",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-institutional rounded-full mt-1.5 flex-shrink-0"}),e.jsx("span",{children:d})]},u))})]},l))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Histórico de Avaliações"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-200",children:[e.jsx("th",{className:"text-left py-3 px-4 font-bold text-gray-900",children:"Ano"}),e.jsx("th",{className:"text-left py-3 px-4 font-bold text-gray-900",children:"Pontuação"}),e.jsx("th",{className:"text-left py-3 px-4 font-bold text-gray-900",children:"Posição Estadual"}),e.jsx("th",{className:"text-left py-3 px-4 font-bold text-gray-900",children:"Posição N
140acional"}),e.jsx("th",{className:"text-left py-3 px-4 font-bold text-gray-900",children:"Classificação"})]})}),e.jsx("tbody",{children:s.map((n,l)=>e.jsxs("tr",{className:"border-b border-gray-100",children:[e.jsx("td",{className:"py-3 px-4 font-bold text-institutional",children:n.ano}),e.jsxs("td",{className:"py-3 px-4 text-gray-700",children:[e.jsx("span",{className:"font-bold",children:n.pontuacao})," / 100"]}),e.jsx("td",{className:"py-3 px-4 text-gray-700",children:n.posicaoEstadual}),e.jsx("td",{className:"py-3 px-4 text-gray-700",children:n.posicaoNacional}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"bg-institutional/10 text-institutional px-3 py-1 rounded-full text-sm font-bold",children:n.classificacao})})]},l))})]})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Boas Práticas de Transparência"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:i.map((n,l)=>e.jsx("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(n.icone,{size:20,className:"text-institutional"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:n.titulo}),e.jsx("p",{className:"text-sm text-gray-700",children:n.descricao})]})]})},l))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Escala de Classificação"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("div",{className:"w-24 text-center",children:e.jsx("span",{className:"font-bold text-institutional",children:"90 - 100"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-bold text-gray-900",children:"Excelente"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Transparência plena com todas as informações disponÃveis"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[e.jsx("div",{className:"w-24 text-center",children:e.jsx("span",{className:"font-bold text-gray-700",children:"70 - 89"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-bold text-gray-900",children:"Bom"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Boa transparência com pequenos ajustes necessários"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[e.jsx("div",{className:"w-24 text-center",children:e.jsx("span",{className:"font-bold text-gray-700",children:"50 - 69"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-bold text-gray-900",children:"Regular"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Transparência razoável com melhorias importantes necessárias"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[e.jsx("div",{className:"w-24 text-center",children:e.jsx("span",{className:"font-bold text-gray-700",children:"0 - 49"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-bold text-gray-900",children:"Insuficiente"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Transparência inadequada, necessita ações urgentes"})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Acesse Nossas Ferramentas de Transparência"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/transparencia",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(he,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"Portal da Transparência"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Todas as informações"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]}),e.jsxs("a",{href:"/transparencia/dados-abertos",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(he,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"Dados Abertos"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Dados estruturados"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]}),e.jsxs("a",{href:"/atendimento/esic",className:"flex items-center gap-3 bg-institutional/5 border border-institutional/20 rounded-lg p-4 hover:shadow-md transition-shadow group",children:[e.jsx(ht,{className:"text-institutional",size:24}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm group-hover:text-institutional transition-colors",children:"e-SIC"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Acesso à Informação"})]}),e.jsx(Ke,{className:"text-institutional",size:16})]})]})]})]})})]}),e.jsx(ge,{})]})}const h5=["dispensa","inexigibilidade","credenciamento"];function m5(){const[t,s]=b.useState([]),[i,n]=b.useState([]),[l,d]=b.useState(!0),[u,m]=b.useState(null),[x,p]=b.useState(""),[g,v]=b.useState("todos"),[j,N]=b.useState("todos"),k=b.useCallback(async()=>{d(!0),m(null);try{const[O,$]=await Promise.all([tv.listar(),tv.anosDisponiveis()]);s(O),n($)}catch(O){m(O instanceof Error?O.message:"Não foi possÃvel carregar as contratações.")}finally{d(!1)}},[]);b.useEffect(()=>{k()},[k]);const S=b.useMemo(()=>[...new Set(t.map(O=>O.modalidade))],[t]),C=b.useMemo(()=>{const O=x.trim().toLowerCase();return t.filter($=>g!=="todos"&&String($.ano)!==g||j!=="todos"&&$.modalidade!==j?!1:O?[$.numero,$.objeto,$.contratado,$.fundamento_legal].some(z=>(z??"").toLowerCase().includes(O)):!0)},[t,x,g,j]),T=()=>{p(""),v("todos"),N("todos")},w=x!==""||g!=="todos"||j!=="todos",_=C.reduce((O,$)=>O+Number($.valor??0),0),E=C.filter(O=>O.modalidade==="dispensa").length;
140return e.jsxs(da,{titulo:"Contratação Direta",descricao:"Dispensas de Licitação e Inexigibilidades",icone:e.jsx(he,{size:32}),rota:"/transparencia/contratacao-direta",children:[e.jsxs(gr,{titulo:"Sobre a Contratação Direta",children:[e.jsxs("p",{children:["A contratação direta ocorre sem processo licitatório, nas hipóteses previstas na Lei 14.133/2021: ",e.jsx("strong",{children:"dispensa"})," (art. 75), quando o valor ou a situação autoriza, e"," ",e.jsx("strong",{children:"inexigibilidade"})," (art. 74), quando a competição é inviável."]}),e.jsx("p",{children:"Em ambos os casos a contratação deve ser motivada, formalizada e publicada â a exceção à licitação não dispensa a transparência."})]}),e.jsx(br,{busca:x,aoBuscar:p,rotuloBusca:"Buscar por número, objeto, contratado ou fundamento",placeholderBusca:"Ex: 005/2026 ou manutenção predial",filtros:[{id:"modalidade",rotulo:"Modalidade",valor:j,aoMudar:N,opcoes:[{valor:"todos",rotulo:"Todas as modalidades"},...(S.length?S:h5).map(O=>({valor:O,rotulo:qa[O]}))]},{id:"ano",rotulo:"ExercÃcio",valor:g,aoMudar:v,opcoes:[{valor:"todos",rotulo:"Todos os exercÃcios"},...i.map(O=>({valor:String(O),rotulo:String(O)}))]}],aoLimpar:T,temFiltroAtivo:w}),e.jsxs(Go,{children:[e.jsx(jt,{rotulo:"Total de Contratações",valor:C.length,icone:e.jsx(he,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Dispensas de Licitação",valor:E,icone:e.jsx(Ee,{size:24,className:"text-institutional"})}),e.jsx(jt,{rotulo:"Valor Total",valor:Se(_),icone:e.jsx(ut,{size:24,className:"text-institutional"}),compacto:!0})]}),e.jsx("div",{className:"space-y-6",children:l?e.jsx(ua,{mensagem:"Carregando contratações..."}):u?e.jsx(ha,{mensagem:u,aoTentarNovamente:()=>{k()}}):C.length===0?e.jsx(zs,{mensagem:"Nenhuma contratação encontrada com os filtros selecionados.",aoLimpar:w?T:void 0}):C.map(O=>e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow",children:[e.jsx(wx,{titulo:`${qa[O.modalidade]} nº ${O.numero}/${O.ano}`,subtitulo:O.processo_administrativo?`Processo ${O.processo_administrativo}`:null,badge:e.jsx(es,{texto:qa[O.modalidade],cor:O.modalidade==="dispensa"?"bg-blue-100 text-blue-700":"bg-purple-100 text-purple-700"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Objeto"}),e.jsx("p",{className:"text-gray-900",children:O.objeto})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 pb-6 border-b border-gray-200",children:[e.jsx(Rt,{rotulo:"Contratado",valor:O.contratado,icone:e.jsx(Nt,{size:14})}),O.contratado_documento&&e.jsx(Rt,{rotulo:"CNPJ/CPF",valor:O.contratado_documento}),e.jsx(Rt,{rotulo:"Data da Contratação",valor:je(O.data_contratacao),icone:e.jsx(Ee,{size:14})})]}),O.fundamento_legal&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Fundamento Legal"}),e.jsx("p",{className:"text-gray-700 text-sm",children:O.fundamento_legal})]}),O.justificativa&&e.jsxs("div",{className:"mb-6 pb-6 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-600 mb-2",children:"Justificativa"}),e.jsx("p",{className:"text-gray-700 text-sm whitespace-pre-wrap",children:O.justificativa})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 pt-4",children:[e.jsx(Rt,{rotulo:"Valor",valor:Se(O.valor),icone:e.jsx(ut,{size:14}),destaque:!0}),O.arquivo_url&&e.jsxs("a",{href:O.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(tt,{size:16}),"Baixar documento"]})]})]})]},O.id))})]})}function x5(){return e.jsx(Ko,{modulo:"planejamento_prestacao_contas",titulo:"Planejamento e Prestação de Contas",descricao:"Documentos de planejamento e prestação de contas da Prefeitura",icone:e.jsx(he,{size:32}
140),rota:"/transparencia/planejamento-prestacao-contas"})}function yd({titulo:t,descricao:s,icone:i,rota:n,children:l}){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atendimento"},{label:t,path:n}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:i}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:t}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:s})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6",children:l})})]}),e.jsx(ge,{})]})}function ke({rotulo:t,valor:s,aoMudar:i,tipo:n="text",obrigatorio:l,ajuda:d,placeholder:u,maxLength:m,aoSair:x,icone:p,erro:g,className:v=""}){const j=b.useId(),N=`${j}-erro`;return e.jsxs("div",{className:v,children:[e.jsxs("label",{htmlFor:j,className:"block text-sm font-semibold text-gray-700 mb-2",children:[t," ",l&&e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsxs("div",{className:"relative",children:[p&&e.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",children:p}),e.jsx("input",{id:j,type:n,value:s,onChange:k=>i(k.target.value),onBlur:x,required:l,placeholder:u,maxLength:m,"aria-invalid":g?!0:void 0,"aria-describedby":g?N:void 0,className:`w-full ${p?"pl-10":"pl-4"} pr-4 py-3 border rounded-lg focus:ring-2 focus:border-transparent ${g?"border-red-400 bg-red-50 focus:ring-red-400":"border-gray-300 focus:ring-institutional"}`})]}),g?e.jsx("p",{id:N,role:"alert",className:"text-xs text-red-700 font-semibold mt-1",children:g}):d&&e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:d})]})}function ai({rotulo:t,valor:s,aoMudar:i,obrigatorio:n,ajuda:l,placeholder:d,linhas:u=6,className:m=""}){const x=b.useId();return e.jsxs("div",{className:m,children:[e.jsxs("label",{htmlFor:x,className:"block text-sm font-semibold text-gray-700 mb-2",children:[t," ",n&&e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("textarea",{id:x,value:s,onChange:p=>i(p.target.value),required:n,rows:u,placeholder:d,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent resize-none"}),l&&e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:l})]})}function Xr({rotulo:t,valor:s,aoMudar:i,opcoes:n,obrigatorio:l,ajuda:d,vazio:u,className:m=""}){const x=b.useId();return e.jsxs("div",{className:m,children:[e.jsxs("label",{htmlFor:x,className:"block text-sm font-semibold text-gray-700 mb-2",children:[t," ",l&&e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsxs("select",{id:x,value:s,onChange:p=>i(p.target.value),required:l,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:[u&&e.jsx("option",{value:"",children:u}),n.map(p=>e.jsx("option",{value:p.valor,children:p.rotulo},p.valor))]}),d&&e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:d})]})}function Ly({rotulo:t,descricao:s,marcado:i,aoMudar:n,destaque:l=!1}){return e.jsxs("label",{className:`flex items-start gap-3 cursor-pointer rounded-lg p-4 border ${l?"bg-gray-50 border-gray-200":"border-transparent"}`,children:[e.jsx("input",{type:"checkbox",checked:i,onChange:d=>n(d.target.checked),className:"mt-1 w-4 h-4 text-institutional focus:ring-institutional border-gray-300 rounded"}),e.jsxs("span",{children:[e.jsx("span",{className:"text-sm font-semibold text-gray-900",children:t}),s&&e.jsx("span",{className:"block text-xs text-gray-600 mt-1",children:s})]})]})}function Qt({mensagem:t}){return t?e.jsxs("div",{role:"alert",className:"bg-red-50 border border-red-200 rounded-lg p-4 mb-6 flex items-start gap-3",children:[e.jsx(We,{size:20,className:"text-red-600 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-red-700",children:t})]}):null}function Ia({enviando:t,rotulo:s,rotuloEnviando:i="Enviando...",desabilitado:n=!1,icone:l}){return e.jsx("button",{type:"submit",disabled:t||n,className:"w-full px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors text-lg flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white"}),i]}):e.jsxs(e.Fragment,{children:[l,s]})})}function un({titulo:t,protocolo:s,prazoDias:i,children:n,aoNovoRegistro:l}){return e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-8 text-center",children:[e.jsx(De,{size:48,className:"text-green-600 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-green-900 mb-3",children:t}),s&&e.jsxs("div",{className:"bg-white border border-green-300 rounded-lg p-4 my-4 inline-block min-w-[16rem]",children:[e.jsx("p",{className:"text-xs text-gray-600 uppercase tracking-wide",children:"Protocolo"}),e.jsx("p",{className:"text-2xl font-bold text-gray-900 tracking-wider",children:s})]}),e.jsxs("div",{className:"text-sm text-green-800 space-y-2",children:[s&&e.jsxs("p",{children:[e.jsx("strong",{children:"Anote este número."})," à com ele que você acompanha o andamento em"," ",e.jsx("a",{href:"/participacao/minhas-solicitacoes",className:"underline font-semibold",children:"Acompanhar Protocolo"}),"."]}),i!==void 0&&e.jsxs("p",{children:["Prazo de resposta: ",e.jsxs("strong",{children:[i," dias"]}),", contados de hoje."]}),n]}),l&&e.jsx("button",{type:"button",onClick:l,className:"mt-6 px-6 py-2 bg-white border border-green-600 text-green-700 rounded-lg font-semibold hover:bg-green-50 transition-colors",children:"Fazer novo registro"})]})}function Oy({titulo:t="Contato Direto",emailPreferido:s}){const{instituicao:i,enderecoLinhas:n}=st(),l=i?.contato??{},d=(s==="ouvidoria"?l.email_ouvidoria:void 0)??(s==="esic"?l.email_esic:void 0)??l.email,u=[];return d&&u.push({icone:e.jsx(Ze,{size:18,className:"text-institutional"}),rotulo:"E-mail",conteudo:e.jsx("a",{href:`mailto:${d}`,className:"text-sm font-semibold text-institutional hover:underline break-all",children:d})}),l.telefone&&u.push({icone:e.jsx(zt,{size:18,className:"text-institutional"}),rotulo:"Telefone",conteudo:e.jsx("a",{href:`tel:${l.telefone.replace(/\D/g,"")}`,className:"text-sm font-semibold text-gray-900 hover:underline",children:l.telefone})}),n.length&&u.push({icone:e.jsx(xt,{size:18,className:"text-institutional"}),rotulo:"Endereço",conteudo:e.jsx("p",{className:"text-sm font-semibold text-gray-900",children:n.map(m=>e.jsx("span",{className:"block",children:m},m))})}),i?.horario_atendimento&&u.push({icone:e.jsx(mt,{size:18,className:"text-institutional"}),rotulo:"Horário de Atendimento",conteudo:e.jsx("p",{className:"text-sm font-semibold text-gray-900 whitespace-pre-line",children:i.horario_atendimento})}),u.length?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:t}),e.jsx("div",{className:"space-y-4",children:u.map(m=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:m.icone}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-600",children:m.rotulo}),m.conteudo]})]},m.rotulo))})]}):null}const nd={elogio:"Elogio",sugestao:"Sugestão",reclamacao:"Reclamação",denuncia:"Denúncia",solicitacao_informacao:"Solicitação de Informação",simplifique:"Simplifique"},Po={denuncia:30,reclamacao:30,solicitacao_informacao:30,simplifique:30,elogio:30,sugestao:30};async function f5(){const t={...Po};try{const{data:s}=await X.from("configuracoes").select("valor").eq("chave","prazos_legais").maybeSingle(),i=s?.valor??{},n=(d,u)=>{const m=i[d],x=typeof m=="number"?m:Number(m);return Number.isInteger(x)&&x>0?Math.min(x,u):null},l=n("ouvidoria_geral_dias",30);for(const d of Object.keys(t))t[d]=n(`ouvidoria_${d}_dias`,30)??l??Po[d]}catch{}return t}const xv={elogio:"Demonstração de satisfação sobre serviço ou atendimento.",sugestao:"Proposta de melhoria dos serviços da Casa.",reclamacao:"Manifestação de insatisfação sobre serviço prestado.",denuncia:"Comunicação de prática irregular ou ilegal.",solicitacao_informacao:"Pedido de informação ou de providência.",simplifique:"Pedido de simplificação de um serviço ou exigência burocrática."},p5={recebida:"Recebida",em_analise:"Em análise",encaminhada:"Encaminhada",respondida:"Respondida",prorrogada:"Prorrogada",arquivada:"Arquivada",indeferida:"Indeferida",recurso:"Em recurso"},g5={aberta:"Aberta",em_andamento:"Em andamento",encaminhada:"Encaminhada",respondida:"Respondida",concluida:"ConcluÃda",cancelada:"Cancelada",indeferida:"Indeferida"};function kx(t){switch(t){case"respondida":case"concluida":return"bg-green-100 text-green-800 border-green-200";case"recebida":case"aberta":return"bg-amber-100 text-amber-800 border-amber-200";case"em_analise":case"em_andamento":case"encaminhada":return"bg-blue-100 text-blue-800 border-blue-200";case"prorrogada":case"recurso":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-700 border-gray-200"}}function Xa(t){if(!t)return"â";const[s,i,n]=t.slice(0,10).split("-");return n&&i&&s?`${n}/${i}/${s}`:"â"}function Ry(){const t=new Date,s=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${t.getFullYear()}-${s}-${i}`}function Cx(t){const s=t?.[0];if(!s?.protocolo)throw new ee("O registro foi criado, mas o protocolo não retornou. Procure a Ouvidoria.");return s}const yo=5,b5=5*1024*1024,v5=["image/jpeg","image/png","image/webp","application/pdf"];function zy(t){return v5.includes(t.type)?t.size>b5?`"${t.name}": o limite é de 5 MB por arquivo.`:null:`"${t.name}": envie imagem (JPG, PNG, WEBP) ou PDF.`}function y5(t){return t.replace(/[^a-zA-Z0-9.-]/g,"_").slice(-60)}
140async function jd(t,s){if(!s.length)return[];if(s.length>yo)throw new ee(`Envie no máximo ${yo} arquivos.`);const i=[];for(const n of s){const l=zy(n);if(l)throw new ee(l);const d=crypto.randomUUID().slice(0,8),u=`${t}/${d}_${y5(n.name)}`,{error:m}=await X.storage.from("atendimento").upload(u,n,{contentType:n.type,upsert:!1});if(m)throw new ee(`Não foi possÃvel enviar "${n.name}". Tente novamente ou registre sem o anexo.`);i.push({nome:n.name,caminho:u,tipo:n.type,tamanho:n.size})}return i}async function j5(t){try{const s=X.rpc,{data:i,error:n}=await s("campos_do_canal",{p_canal:t});return n||!Array.isArray(i)?[]:i.map(l=>({...l,opcoes:Array.isArray(l.opcoes)?l.opcoes:[]}))}catch{return[]}}const Dy={async registrar(t){return Cx(await Ba("registrar_ouvidoria",{p_tipo:t.tipo,p_assunto:t.assunto,p_mensagem:t.mensagem,p_nome:t.nome??null,p_email:t.email??null,p_telefone:t.telefone??null,p_documento:t.documento??null,p_anonimo:t.anonimo??!1,p_anexos:t.anexos??null},t.captchaToken))}},N5={async registrar(t){return Cx(await Ba("registrar_esic",{p_nome:t.nome,p_assunto:t.assunto,p_pedido:t.pedido,p_email:t.email??null,p_telefone:t.telefone??null,p_documento:t.documento??null,p_forma_resposta:t.formaResposta??"email",p_anexos:t.anexos??null},t.captchaToken))}},bm={async registrar(t){return Cx(await Ba("registrar_solicitacao",{p_nome:t.nome,p_assunto:t.assunto,p_descricao:t.descricao,p_email:t.email??null,p_telefone:t.telefone??null,p_documento:t.documento??null,p_categoria:t.categoria??null,p_bairro:t.bairro??t.endereco?.bairro??null,p_parlamentar_id:t.parlamentarId??null,p_endereco:t.endereco??null,p_anexos:t.anexos??null,p_tipo:t.tipo??null},t.captchaToken))},categorias:["Saúde","Educação","Obras e Infraestrutura","Assistência Social","Meio Ambiente","Transporte","Cultura","Esporte","Turismo","Segurança","Outras"],async minhas(){const{data:t,error:s}=await X.from("solicitacoes_cidadas").select("*, parlamentar:parlamentares(id, nome_parlamentar, foto_url)").is("deletado_em",null).order("criado_em",{ascending:!1});if(s)throw new ee(s.message,s.code);return t??[]}},w5={async registrar(t){return Ba("registrar_fale_conosco",{p_nome:t.nome,p_email:t.email,p_assunto:t.assunto,p_mensagem:t.mensagem,p_telefone:t.telefone??null},t.captchaToken)}},fv=[{codigo:"requerimento_cidadao",nome:"Requerimento",dica:"Pedido de pessoa fÃsica ou jurÃdica à Câmara."},{codigo:"oficio_recebido",nome:"OfÃcio",dica:"Correspondência oficial de órgão, entidade ou empresa."},{codigo:"documento_externo",nome:"Outro documento",dica:"Convite, comunicado ou documento que não se encaixa acima."}],_5={async registrar(t){return Ba("protocolo_registrar_publico",{p_tipo:t.tipo,p_assunto:t.assunto,p_descricao:t.descricao??null,p_nome:t.nome,p_documento:t.documento??null,p_email:t.email??null,p_telefone:t.telefone??null,p_anexos:t.anexos??null},t.captchaToken)}};async function S5(t,s){return t.trim()?(await pd("consultar_protocolo",{p_protocolo:t.trim(),p_validacao:s?.trim()||void 0}))?.[0]??null:null}function Ex(t){return p5[t]??g5[t]??t}const k5={...Ne("faq",{ordem:[{coluna:"ordem",ascendente:!0},{coluna:"pergunta",ascendente:!0}]}),async publicadas(){return Ne("faq",{ordem:[{coluna:"ordem",ascendente:!0},{coluna:"pergunta",ascendente:!0}]}).listar({onde:{publicado:!0}})}};function Nd({arquivos:t,aoMudar:s,rotulo:i="Anexos (opcional)",ajuda:n="Fotos ou documentos que ajudem a entender a manifestação."}){const l=b.useId(),[d,u]=b.useState(null),m=b.useMemo(()=>{const p={};for(const g of t)g.type.startsWith("image/")&&(p[`${g.name}-${g.size}`]=URL.createObjectURL(g));return p},[t]);b.useEffect(()=>()=>{for(const p of Object.values(m))URL.revokeObjectURL(p)},[m]);function x(p){if(!p?.length)return;u(null);const g=Array.from(p);if(t.length+g.length>yo){u(`Máximo de ${yo} arquivos.`);return}for(const v of g){const j=zy(v);if(j){u(j);return}}s([...t,...g])}return e.jsxs("div",{children:[e.jsx("span",{className:"block text-sm font-semibold text-gray-700 mb-2",children:i}),e.jsxs("label",{htmlFor:l,className:"flex flex-col items-center justify-center border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-institutional transition-colors cursor-pointer",children:[e.jsx(xx,{size:32,className:"text-gray-400 mb-2"}),e.jsx("span",{className:"text-sm text-gray-700 font-semibold",children:"Clique para anexar"}),e.jsxs("span",{className:"text-xs text-gray-600 mt-1",children:["Até ",yo," arquivos ⢠JPG, PNG, WEBP ou PDF ⢠5 MB cada"]})]}),e.jsx("input",{id:l,type:"file",multiple:!0,accept:"image/jpeg,image/png,image/webp,application/pdf",onChange:p=>{x(p.target.files),p.target.value=""},className:"hidden"}),e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:n}),d&&e.jsx("p",{className:"text-xs text-red-700 mt-2",children:d}),t.length>
1400&&e.jsx("ul",{className:"grid grid-cols-2 md:grid-cols-5 gap-3 mt-4",children:t.map((p,g)=>{const v=`${p.name}-${p.size}`,j=m[v];return e.jsxs("li",{className:"relative border border-gray-200 rounded-lg p-2",children:[j?e.jsx("img",{src:j,alt:p.name,className:"w-full h-24 object-cover rounded"}):e.jsx("div",{className:"w-full h-24 flex items-center justify-center bg-gray-50 rounded",children:e.jsx(cx,{size:28,className:"text-gray-400"})}),e.jsx("p",{className:"text-xs text-gray-600 mt-1 truncate",title:p.name,children:p.name}),e.jsx("button",{type:"button","aria-label":`Remover ${p.name}`,onClick:()=>s(t.filter((N,k)=>k!==g)),className:"absolute -top-2 -right-2 w-6 h-6 bg-red-600 text-white rounded-full flex items-center justify-center hover:bg-red-700",children:e.jsx(Fa,{size:14})})]},v)})})]})}function My({aceito:t,aoMudar:s,finalidade:i,id:n="lgpd"}){return e.jsx("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4",children:e.jsxs("label",{htmlFor:n,className:"flex items-start gap-3 cursor-pointer",children:[e.jsx("input",{id:n,type:"checkbox",checked:t,onChange:l=>s(l.target.checked),className:"mt-1 h-4 w-4 flex-shrink-0 accent-institutional",required:!0}),e.jsxs("span",{className:"text-sm text-gray-700 leading-relaxed",children:["Autorizo a Prefeitura Municipal a tratar os dados pessoais que informei"," ",e.jsx("strong",{children:i}),", nos termos da Lei nº 13.709/2018 (LGPD). Posso solicitar acesso, correção ou exclusão a qualquer momento pelos canais indicados na"," ",e.jsx(ie,{to:"/transparencia/lgpd",target:"_blank",rel:"noopener noreferrer",className:"text-institutional underline font-medium",onClick:l=>l.stopPropagation(),children:"polÃtica de privacidade"}),"."]})]})})}function Py({canal:t,valores:s,aoMudar:i}){const[n,l]=b.useState([]);if(b.useEffect(()=>{j5(t).then(l)},[t]),n.length===0)return null;const d=(u,m)=>i({...s,[u]:m});return e.jsxs("div",{className:"pt-6 border-t border-gray-200 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Informações adicionais"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.map(u=>{const m=u.tipo==="area"?"md:col-span-2":"";return e.jsx("div",{className:m,children:u.tipo==="area"?e.jsx(ai,{rotulo:u.rotulo,obrigatorio:u.obrigatorio,valor:s[u.chave]??"",aoMudar:x=>d(u.chave,x),ajuda:u.ajuda??void 0}):u.tipo==="selecao"?e.jsx(Xr,{rotulo:u.rotulo,obrigatorio:u.obrigatorio,valor:s[u.chave]??"",aoMudar:x=>d(u.chave,x),opcoes:u.opcoes.map(x=>({valor:x,rotulo:x})),ajuda:u.ajuda??void 0}):e.jsx(ke,{rotulo:u.rotulo,obrigatorio:u.obrigatorio,tipo:u.tipo==="email"?"email":u.tipo==="telefone"?"tel":u.tipo==="data"?"date":"text",valor:s[u.chave]??"",aoMudar:x=>d(u.chave,x),ajuda:u.ajuda??void 0})},u.chave)})})]})}const Ds=t=>String(t??"").replace(/\D/g,"");function pv(t){const s=Ds(t);if(s.length!==11||/^(\d)\1{10}$/.test(s))return!1;const i=n=>{let l=0;for(let u=0;u<n;u++)l+=Number(s[u])*(n+1-u);const d=11-l%11;return d>=10?0:d};return Number(s[9])===i(9)&&Number(s[10])===i(10)}function gv(t){const s=Ds(t);if(s.length!==14||/^(\d)\1{13}$/.test(s))return!1;const i=d=>{let u=0;d.forEach((x,p)=>{u+=Number(s[p])*x});const m=u%11;return m<2?0:11-m},n=i([5,4,3,2,9,8,7,6,5,4,3,2]),l=i([6,5,4,3,2,9,8,7,6,5,4,3,2]);return Number(s[12])===n&&Number(s[13])===l}function Jo(t){const s=Ds(t);return s.length===11?s.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"):s.length===14?s.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5"):String(t??"")}function ts(t,s="qualquer"){const i=Ds(t);return i===""?null:s==="cpf"?i.length!==11?"O CPF tem 11 dÃgitos.":pv(i)?null:"CPF inválido â confira os números.":s==="cnpj"?i.length!==14?"O CNPJ tem 14 dÃgitos.":gv(i)?null:"CNPJ inválido â confira os números.":i.length!==11&&i.length!==14?"Informe um CPF (11 dÃgitos) ou um CNPJ (14 dÃgitos).":i.length===11?pv(i)?null:"CPF inválido â confira os números.":gv(i)?null:"CNPJ inválido â confira os números."}const bv=[{valor:"informacao",rotulo:"Pedido de Informação"},{valor:"esclarecimento",rotulo:"Esclarecimento"},{valor:"documentos",rotulo:"Solicitação de Documentos"},{valor:"outros",rotulo:"Outros"}],vv=[{valor:"email",rotulo:"Por e-mail"},{valor:"correios",rotulo:"Pelos Correios"},{valor:"balcao",rotulo:"Retirar na Prefeitura"}],yv={tipo:"informacao",nome:"",email:"",documento:"",telefone:"",assunto:"",pedido:"",formaResposta:"email",consentimento:!1};function C5(){const t=$a(),[s,i]=b.useState(yv),[n,l]=b.useState([]),[d,u]=b.useState(!1),[m,x]=b.useState(null),[p,g]=b.useState(null),[v,j]=b.useState({}),[N,k]=b.useState(null);function S(w,_){i(E=>({...E,[w]:_}))}function C(){const w=ts(s.documento,"cpf");k(w),!w&&Ds(s.documento)&&S("documento",Jo(s.documento))}async function T(w){if(w.preventDefault(),!s.consentimento){x("à preciso autorizar o tratamento dos seus dados para enviar o pedido.");return}const _=ts(s.documento,"cpf");if(_){k(_);return}u(!0),x(null);try{const E=await jd("esic",n),O=await N5.registrar({nome:s.nome,assunto:s.assunto||bv.find($=>$.valor===s.tipo)?.rotulo||"Pedido LAI",pedido:s.pedido,email:s.email||void 0,telefone:s.telefone||void 0,documento:s.documento||void 0,formaResposta:s.formaResposta,anexos:E,camposExtras:v,captchaToken:t.token});g(O),window.scrollTo({top:0,behavior:"smooth"})}catch(E){x(E instanceof ee?E.message:"Não foi possÃvel registrar o pedido. Tente novamente.")}finally{u(!1),t.renovar()}}return p?e.jsxs(un,{titulo:"Pedido registrado",protocolo:p.protocolo,prazoDias:20,aoNovoRegistro:()=>{i(yv),j({}),l([]),g(null)},children:[e.jsxs("p",{children:["A resposta será enviada por"," ",e.jsx("strong",{children:vv.find(w=>w.valor===s.formaResposta)?.rotulo.toLowerCase()}),"."]}),e.jsx("p",{children:"O prazo pode ser prorrogado por mais 10 dias, mediante justificativa (LAI art. 11, §2º). Negado o pedido, cabe recurso em 10 dias."})]}):e.jsxs("form",{onSubmit:T,className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 space-y-6",children:[e.jsx(Qt,{mensagem:m}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{size:20,className:"text-blue-600 flex-shrink-0 mt-0.5"}),e.jsxs("p",{className:"text-sm text-gray-700",children:[e.jsx("strong",{children:"Lei de Acesso à Informação:"})," todo cidadão pode pedir informação pública sem justificar o motivo. A Prefeitura tem 20 dias para responder, prorrogáveis por mais 10. A identificação é exigida pela própria Lei (art. 10) â é o que permite responder e recorrer."]})]})}),e.jsx(Xr,{rotulo:"Tipo de Solicitação",obrigatorio:!0,valor:s.tipo,aoMudar:w=>S("tipo",w),opcoes:bv}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 pb-6 border-b border-gray-200",children:[e.jsx(ke,{rotulo:"Nome Completo",obrigatorio:!0,valor:s.nome,aoMudar:w=>S("nome",w),placeholder:"Ex: João Silva Santos"}),e.jsx(ke,{rotulo:"E-mail",tipo:"email",obrigatorio:!0,valor:s.email,aoMudar:w=>S("email",w),placeholder:"[email protected]"}),e.jsx(ke,{rotulo:"CPF",valor:s.documento,aoMudar:w=>{S("documento",w),k(null)},aoSair:C,erro:N,placeholder:"000.000.000-00",maxLength:14}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",valor:s.telefone,aoMudar:w=>S("telefone",w),placeholder:"(00) 00000-0000"})]}),e.jsx(ke,{rotulo:"Assunto da Solicitação",obrigatorio:!0,valor:s.assunto,aoMudar:w=>S("assunto",w),placeholder:"Ex: Dados de licitações de 2025"}),e.jsx(ai,{rotulo:"Descrição Detalhada",obrigatorio:!0,valor:s.pedido,aoMudar:w=>S("pedido",w),placeholder:"Descreva com detalhes a informação que você está solicitando...",ajuda:"Seja especÃfico: pedido genérico demais pode ser devolvido para esclarecimento, e o prazo recomeça."}),e.jsx(Xr,{rotulo:"Como prefere receber a resposta",valor:s.formaResposta,aoMudar:w=>S("formaResposta",w),opcoes:vv}),e.jsx(Nd,{arquivos:n,aoMudar:l,rotulo:"Documentos de apoio (opcional)",ajuda:"Anexe documentos que ajudem a identificar a informação pedida."}),e.jsx(Py,{canal:"esic",valores:v,aoMudar:j}),e.jsxs("div",{className:"pt-6 border-t border-gray-200 space-y-4",children:[e.jsx(My,{id:"lgpd-esic",aceito:s.consentimento,aoMudar:w=>S("consentimento",w),finalidade:"para processar e responder este pedido de acesso à informação"}),e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:d,rotulo:"Enviar Solicitação",icone:e.jsx(hr,{size:18})}),e.jsx("p",{className:"text-xs text-gray-500 text-center mt-3",children:"* Campos obrigatórios"})]})]})}const vm=[{rotulo:"Nome completo",linhas:1},{rotulo:"CPF ou CNPJ",linhas:1},{rotulo:"E-mail",linhas:1},{rotulo:"Telefone",linhas:1},{rotulo:"Endereço para correspondência",linhas:1}],Ax={pedido:{titulo:"Pedido de Acesso à Informação",fundamento:"Lei nº 12.527/2011 (Le
140i de Acesso à Informação), art. 10. O pedido NÃO precisa ser motivado: é vedado exigir que o cidadão diga por que quer a informação. Prazo de resposta: 20 dias, prorrogáveis por mais 10 mediante justificativa.",orientacao:"Descreva a informação desejada com o máximo de detalhe possÃvel â perÃodo, número do documento, nome do contrato. Pedido genérico atrasa a resposta, porque a Casa precisa voltar a perguntar o que você quis dizer.",campos:[...vm,{rotulo:"Informação solicitada",linhas:8},{rotulo:"Forma preferida de resposta (e-mail, correio, retirada no balcão)",linhas:1}],arquivo:"pedido-de-acesso-a-informacao"},recurso:{titulo:"Recurso â Lei de Acesso à Informação",fundamento:"Lei nº 12.527/2011, arts. 15 e 21. Cabe recurso no prazo de 10 dias contados da ciência da resposta, ou do fim do prazo sem resposta. O recurso é dirigido à autoridade hierarquicamente superior à que proferiu a decisão.",orientacao:"Informe o número do protocolo do pedido original â sem ele o recurso não se liga a nada. Diga o que na resposta não atendeu: se a informação não veio, se veio incompleta, ou se o indeferimento não foi fundamentado.",campos:[...vm,{rotulo:"Número do protocolo do pedido original",linhas:1},{rotulo:"Data em que recebeu a resposta (ou em que o prazo venceu)",linhas:1},{rotulo:"Razões do recurso",linhas:8}],arquivo:"recurso-lai"},reclamacao:{titulo:"Manifestação de Ouvidoria",fundamento:"Lei nº 13.460/2017 (Código de Defesa do Usuário de Serviços Públicos), arts. 10 a 16. A manifestação pode ser elogio, sugestão, reclamação, denúncia, solicitação de informação ou pedido de simplificação. Prazo de resposta: 30 dias, prorrogáveis por mais 30 mediante justificativa.",orientacao:"A denúncia pode ser ANÃNIMA: neste caso, deixe os dados de identificação em branco â mas saiba que sem contato a Casa não terá como lhe dar retorno. Nos demais tipos, a identificação é o que permite responder.",campos:[{rotulo:"Tipo (elogio · sugestão · reclamação · denúncia · informação · simplifique)",linhas:1},...vm,{rotulo:"Bairro",linhas:1},{rotulo:"Assunto",linhas:1},{rotulo:"Manifestação",linhas:10}],arquivo:"manifestacao-de-ouvidoria"}},Ss=t=>String(t??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),E5=t=>Array.from({length:t},()=>'<div style="border-bottom:1px solid #333;height:22px;margin-bottom:6px"></div>').join("");function A5(t,s){const i=Ax[t],n=[s.municipio,s.uf].filter(Boolean).join("/"),l=[s.endereco,s.telefone?`Telefone: ${s.telefone}`:null,s.email?`E-mail: ${s.email}`:null,s.cnpj?`CNPJ: ${s.cnpj}`:null].filter(d=>!!d).map(Ss).join(" · ");return`<!doctype html><html><head><meta charset="utf-8"><title>${Ss(i.titulo)}</title></head><body style="font-family:'Times New Roman',serif;font-size:12pt;line-height:1.5;margin:2.5cm"><div style="text-align:center;font-weight:bold;font-size:13pt">${Ss(s.nome)}</div>`+(n?`<div style="text-align:center;font-size:10pt">${Ss(n)}</div>`:"")+`<hr style="margin:14px 0"><div style="text-align:center;font-weight:bold;font-size:14pt;margin-bottom:14px">${Ss(i.titulo)}</div><div style="background:#f4f4f4;border-left:3px solid #666;padding:10px 12px;font-size:10.5pt;margin-bottom:16px">${Ss(i.orientacao)}</div>`+i.campos.map(d=>`<div style="margin-bottom:12px"><div style="font-weight:bold;font-size:10.5pt">${Ss(d.rotulo)}</div>`+E5(d.linhas)+"</div>").join("")+`<div style="text-align:right;margin:22px 0 26px">${Ss(n)}, ______ de ____________________ de __________.</div><div style="text-align:center;margin-bottom:26px">_______________________________________________<br><span style="font-size:10pt">Assinatura</span></div><hr><div style="font-size:9pt;color:#333"><b>Fundamento legal:</b> ${Ss(i.fundamento)}</div>`+(l?`<div style="font-size:9pt;color:#333;margin-top:8px">${l}</div>`:"")+'<div style="font-size:9pt;color:#333;margin-top:8px">Este mesmo pedido pode ser feito pela internet, sem imprimir nada, no portal desta Casa.</div></body></html>'}const T5=t=>`${Ax[t].arquivo}.doc`,L5=t=>Ax[t].titulo;function O5(t,s){const i=new Blob(["\uFEFF"+A5(t,s)],{type:"application/msword"}),n=URL.createObjectURL(i),l=document.createElement("a");l.href=n,l.download=T5(t),l.click(),URL.revokeObjectURL(n)}function By({tipos:t,titulo:s="Formulários para imprimir"}){const{instituicao:i,enderecoCompleto:n,nomeCasa:l}=st(),d=u=>O5(u,{nome:l,municipio:i?.municipio,uf:i?.uf,cnpj:i?.cnpj,endereco:n,telefone:i?.contato?.telefone,email:i?.contato?.email});return e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(he,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:s}),e.jsx("p",{className:"text-sm text-gray-600",children:"Pelo formulário desta página o pedido chega na hora e você recebe o protocolo imediatamente. Se preferir entregar no balcão ou enviar pelos Correios, baixe o formulário abaixo, preencha e assine."})]})]}),e.jsx("ul",{className:"space-y-2",children:t.map(u=>e.jsx("li",{children:e.jsxs("button",{type:"button",onClick:()=>d(u),className:`w-full flex items-center justify-between gap-3 px-4 py-3 rounded-lg 141 border border-gray-200 text-left text-sm text-gray-800 142 hover:border-institutional hover:bg-gray-50 143 focus:outline-none focus:ring-2 focus:ring-institutional`,children:[e.jsx("span",{children:L5(u)}),e.jsx(tt,{size:18,className:"text-institutional flex-shrink-0","aria-hidden":!0})]})},u))}),e.jsx("p",{className:"mt-3 text-xs text-gray-500",children:"Arquivos em formato Word (.doc). Abrem no Word, no LibreOffice e no Google Docs, e podem ser preenchidos na tela antes de imprimir."})]})}const R5="https://ntzfqhwpmimurcrvzrvw.supabase.co/storage/v1/object/public/leis/externas/decreto-470-2023-executivo-lai.pdf";function z5(){const{instituicao:t,enderecoCompleto:s}=st(),i=t?.contato?.email_esic??t?.contato?.email??null;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
143),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atendimento"},{label:"e-SIC",path:"/atendimento/esic"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"e-SIC - Sistema Eletrônico de Informação ao Cidadão"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Solicite informações públicas de forma simples, rápida e transparente"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center text-institutional flex-shrink-0",children:e.jsx(Pa,{size:24})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-3",children:"Tipos de Solicitações Aceitas"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Denúncias"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Dúvidas"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Elogios"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Pedidos de Informação"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Reclamações"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center",children:"Solicitações"}),e.jsx("div",{className:"bg-white px-4 py-2 rounded-lg text-sm font-semibold text-gray-700 text-center md:col-span-2",children:"Sugestões"})]})]})]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Canais de Atendimento"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(he,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"e-SIC Eletrônico"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Sistema de ouvidoria online para quem necessita de informações não encontradas no Portal da Transparência"})]})]}),e.jsx("p",{className:"text-sm text-gray-700 mb-4",children:"Utilize o formulário abaixo para enviar sua solicitação de forma rápida e segura. Você receberá um protocolo para acompanhamento."})]}),e.jsx(By,{tipos:["pedido","recurso"]}
143),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(xt,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Atendimento Presencial"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Compareça pessoalmente na Ouvidoria da Prefeitura"})]})]}),e.jsxs("div",{className:"space-y-3 text-sm text-gray-700",children:[s&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(xt,{size:16,className:"text-institutional mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s})]}),t?.horario_atendimento&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(mt,{size:16,className:"text-institutional mt-0.5 flex-shrink-0"}),e.jsx("span",{children:t.horario_atendimento})]}),t?.contato?.telefone&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(zt,{size:16,className:"text-institutional mt-0.5 flex-shrink-0"}),e.jsx("a",{href:`tel:${t.contato.telefone.replace(/\D/g,"")}`,className:"hover:text-institutional",children:t.contato.telefone})]}),i&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Ze,{size:16,className:"text-institutional mt-0.5 flex-shrink-0"}),e.jsx("a",{href:`mailto:${i}`,className:"hover:text-institutional break-all",children:i})]})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-green-600 rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(mt,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Prazo de Resposta"}),e.jsxs("p",{className:"text-sm text-gray-600 mb-3",children:[e.jsx("strong",{className:"text-green-700",children:"20 dias corridos"})," para resposta, prorrogáveis uma única vez por mais 10 mediante justificativa (Lei 12.527/2011, art. 11)."]}),e.jsx("p",{className:"text-xs text-gray-500",children:"Se a informação estiver disponÃvel, o acesso é imediato."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(We,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Direito de Recurso"}),e.jsxs("p",{className:"text-sm text-gray-600 mb-3",children:["Em caso de negativa, você tem ",e.jsx("strong",{className:"text-institutional",children:"10 dias úteis"})," para apresentar recurso à autoridade superior."]}),e.jsx("p",{className:"text-xs text-gray-500",children:"A autoridade deve avaliar em 5 dias úteis."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(De,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Serviço Gratuito"}),e.jsxs("p",{className:"text-sm text-gray-600 mb-3",children:["A busca e fornecimento de informações são ",e.jsx("strong",{children:"totalmente gratuitos"}),"."]}),e.jsx("p",{className:"text-xs text-gray-500",children:"Podem ser cobrados apenas custos de reprodução de documentos (cópias, impressões)."})]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Enviar Solicitação Online (e-SIC)"}),e.jsx(C5,{})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200 mb-8",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Procedimentos e Prazos Detalhados"}),e.jsxs("div",{className:"space-y-4 text-sm text-gray-700",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional rounded-full flex items-center justify-center text-white font-bold flex-shrink-0",children:"1"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-1",children:"Recebimento da Solicitação"}),e.jsx("p",{children:"Se a informação estiver prontamente disponÃvel, o acesso é concedido imediatamente."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional rounded-full flex items-center justify-center text-white font-bold flex-shrink-0",children:"2"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-1",children:"Análise e Resposta (até 20 dias corridos)"}),e.jsx("p",{children:"Caso a informação não esteja disponÃvel imediatamente, o órgão poderá:"}),e.jsxs("ul",{className:"list-disc ml-5 mt-2 space-y-1",children:[e.jsx("li",{children:"Enviar a informação solicitada"}),e.jsx("li",{children:"Comunicar data, local e modo para consulta"}),e.jsx("li",{children:"Informar que a informação não está disponÃvel"}),e.jsx("li",{children:"Indicar o órgão responsável pela informação"}),e.jsx("li",{children:"Justificar a negativa de acesso"})]})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional rounded-full flex items-center justify-center text-white font-bold flex-shrink-0",children:"3"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-1",children:"Prorrogação (até 10 dias adicionais)"}),e.jsx("p",{children:"à possÃvel prorrogar por mais 10 dias mediante justificativa, comunicada antes do término do primeiro perÃodo."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-institutional rounded-full flex items-center justify-center text-white font-bold flex-shrink-0",children:"4"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-gray-900 mb-1",children:"Reprodução de Documentos"}),e.jsx("p",{children:"Quando solicitada cópia fÃsica, o prazo é de 10 dias após comprovação de pagamento ou apresentação de declaração de hipossuficiência econômica."})]})]})]})]}),e.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-yellow-600 rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(We,{size:24})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-3",children:"Informações que Não Podem Ser Fornecidas"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-yellow-600 font-bold flex-shrink-0",children:"â¢"}),e.jsx("span",{children:"Dados pessoais de servidores (protegidos pela LGPD)"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-yellow-600 font-bold flex-shrink-0",children:"â¢"}),e.jsx("span",{children:"Conteúdo de envelopes de licitações ainda lacrados"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-yellow-600 font-bold flex-shrink-0",children:"â¢"}),e.jsx("span",{children:"Documentos classificados como sigilosos por lei especÃfica"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-yellow-600 font-bold flex-shrink-0",children:"â¢"}),e.jsx("span",{children:"Pedidos genéricos, desproporcionais ou que exijam trabalho adicional excessivo"})]})]}),e.jsxs("p",{className:"mt-4 text-sm font-semibold text-gray-900",children:["â¹ï¸ O rol de documentos classificados em sigilo e dos desclassificados nos últimos 12 meses é publicado em"," ",e.jsx("a",{href:"/transparencia/sic-relatorios",className:"text-institutional hover:underline",children:"Relatórios do SIC"}),", conforme o art. 30 da Lei 12.527/2011."]})]})]})}),e.jsx("div",{className:"bg-gray-100 border border-gray-300 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-700 rounded-lg flex items-center justify-center text-white flex-shrink-0",children:e.jsx(ht,{size:24})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-3",children:"Informações Importantes"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold flex-shrink-0",children:"â¢"}),e.jsxs("span",{children:[e.jsx("strong",{children:"Não é necessário justificar"})," sua solicitação. A LAI garante o direito à informação sem necessidade de explicar o motivo."]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold flex-shrink-0",children:"â¢"}),e.jsxs("span",{children:["Pedidos devem conter: ",e.jsx("strong",{children:"nome do requerente, identificação (CPF/RG), especificação clara da informação e endereço/e-mail para resposta"}),"."]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold flex-shrink-0",children:"â¢"}),e.jsxs("span",{children:["A ",e.jsx("strong",{children:"Ouvidoria Municipal"})," coordena o Serviço de Informação ao Cidadão (SIC) no âmbito da Prefeitura."]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold flex-shrink-0",children:"â¢"}),e.jsxs("span",{children:["Para ",e.jsx("strong",{children:"denúncias, reclamações ou elogios"})," que não sejam pedidos de informação, utilize também este canal - a Ouvidoria é responsável por todos os tipos de manifestação."]})]})]})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Base Legal"}),e.jsxs("div",{className:"space-y-3 text-sm text-gray-700",children:[e.jsxs("div",{children:[e.jsx("strong",{className:"text-institutional",children:"Lei Federal nº 12.527/2011"})," â Lei de Acesso à Informação (LAI)",e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Em vigor desde 16 de maio de 2012, permite que qualquer pessoa obtenha informações públicas dos órgãos públicos."})]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-institutional",children:"Decreto Federal nº 7.724/2012"})," â Regulamenta a LAI no âmbito federal e serve de referência para os procedimentos do SIC",e.
143jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Define prazos, forma de resposta e o rito de recurso."})]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-institutional",children:"Decreto Municipal nº 470/2023"})," â Regulamenta os artigos 146 e 147 da Lei Orgânica do MunicÃpio",e.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Editado pelo ",e.jsx("strong",{children:"Poder Executivo Municipal"}),", disciplina a disponibilização de informação pelos entes e órgãos públicos do MunicÃpio."]}),e.jsxs("a",{href:R5,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-2 text-xs font-semibold text-institutional hover:underline",children:[e.jsx(tt,{size:13,"aria-hidden":"true"}),"Abrir o Decreto nº 470/2023 (PDF)"]})]})]})]})]})})]}),e.jsx(ge,{})]})}const jv={tipo:"requerimento_cidadao",nome:"",documento:"",email:"",telefone:"",assunto:"",descricao:""};function D5(){const t=$a(),[s,i]=b.useState(jv),[n,l]=b.useState([]),[d,u]=b.useState(!1),[m,x]=b.useState(null),[p,g]=b.useState(null),[v,j]=b.useState(null);function N(T,w){i(_=>({..._,[T]:w}))}function k(){const T=ts(s.documento);j(T),!T&&Ds(s.documento)&&N("documento",Jo(s.documento))}async function S(T){T.preventDefault();const w=ts(s.documento);if(w){j(w);return}u(!0),x(null);try{const _=await jd("protocolo",n),E=await _5.registrar({tipo:s.tipo,assunto:s.assunto,descricao:s.descricao||void 0,nome:s.nome,documento:s.documento||void 0,email:s.email||void 0,telefone:s.telefone||void 0,anexos:_,captchaToken:t.token});g(E),window.scrollTo({top:0,behavior:"smooth"})}catch(_){x(_ instanceof ee?_.message:"Não foi possÃvel protocolar agora. Tente novamente.")}finally{u(!1),t.renovar()}}if(p)return e.jsxs(un,{titulo:"Documento protocolado",protocolo:p.protocolo,aoNovoRegistro:()=>{i(jv),l([]),g(null)},children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Anote este número."})," à com ele que você acompanha o andamento em"," ",e.jsx("a",{href:"/participacao/minhas-solicitacoes",className:"underline font-semibold",children:"Acompanhar protocolo"}),"."]}),p.anexos>0&&e.jsx("p",{children:p.anexos===1?"Um arquivo foi juntado ao protocolo.":`${p.anexos} arquivos foram juntados ao protocolo.`}),p.prazo&&e.jsxs("p",{children:["Prazo de resposta:"," ",e.jsx("strong",{children:p.prazo.split("-").reverse().join("/")}),"."]})]});const C=fv.find(T=>T.codigo===s.tipo);return e.jsxs("form",{onSubmit:S,className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 space-y-6",children:[e.jsx(Qt,{mensagem:m}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{size:20,className:"text-blue-600 flex-shrink-0 mt-0.5"}),e.jsxs("p",{className:"text-sm text-gray-700",children:[e.jsx("strong",{children:"Este é o protocolo geral da Prefeitura."})," Use-o para entregar ofÃcios, requerimentos e documentos. Para pedido de informação pública use o"," ",e.jsx("a",{href:"/atendimento/esic",className:"underline font-semibold",children:"e-SIC"}),"; para reclamação, denúncia ou elogio, a"," ",e.jsx("a",{href:"/atendimento/ouvidoria",className:"underline font-semibold",children:"Ouvidoria"})," â esses canais têm prazos próprios de lei."]})]})}),e.jsx(Xr,{rotulo:"Tipo de documento",obrigatorio:!0,valor:s.tipo,aoMudar:T=>N("tipo",T),opcoes:fv.map(T=>({valor:T.codigo,rotulo:T.nome})),ajuda:C?.dica}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 pb-6 border-b border-gray-200",children:[e.jsx(ke,{rotulo:"Nome ou razão social",obrigatorio:!0,valor:s.nome,aoMudar:T=>N("nome",T),placeholder:"Quem está entregando o documento"}),e.jsx(ke,{rotulo:"CPF ou CNPJ",valor:s.documento,aoMudar:T=>{N("documento",T),j(null)},aoSair:k,erro:v,placeholder:"000.000.000-00",maxLength:18,ajuda:"Com o documento, seu cadastro é reaproveitado nos próximos protocolos."}),e.jsx(ke,{rotulo:"E-mail",tipo:"email",valor:s.email,aoMudar:T=>N("email",T),placeholder:"[email protected]"}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",valor:s.telefone,aoMudar:T=>N("telefone",T),placeholder:"(00) 00000-0000"})]}),e.jsx(ke,{rotulo:"Assunto",obrigatorio:!0,valor:s.assunto,aoMudar:T=>N("assunto",T),placeholder:"Ex: OfÃcio 12/2026 da Associação de Moradores do Centro",ajuda:"à o que aparece na lista da Casa. Um assunto claro faz o documento chegar mais rápido a quem decide."}),e.jsx(ai,{rotulo:"Descrição",valor:s.descricao,aoMudar:T=>N("descricao",T),placeholder:"Explique brevemente o teor do documento e o que se espera da Prefeitura.",linhas:5}),e.jsx(Nd,{arquivos:n,aoMudar:l,rotulo:"Documento (PDF ou imagem)",ajuda:"Anexe o documento que está sendo protocolado. Sem anexo, o protocolo registra apenas o que você escreveu acima."}),e.jsxs("div",{className:"pt-6 border-t border-gray-200",children:[e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:d,rotulo:"Protocolar documento",icone:e.jsx(hr,{size:18})}),e.jsx("p",{className:"text-xs text-gray-500 text-center mt-3",children:"* Campos obrigatórios"})]})]})}function M5(){const{instituicao:t,enderecoCompleto:s}=st();return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
143),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atendimento"},{label:"Protocolo digital",path:"/atendimento/protocolo"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Qr,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Protocolo Digital"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Entregue ofÃcios, requerimentos e documentos à Prefeitura sem sair de casa"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(Qr,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Mesma fila do balcão"}),e.jsx("p",{className:"text-sm text-gray-600",children:"O documento recebe número da mesma série do protocolo presencial e entra na mesma tramitação. Não existe fila separada para quem envia pela internet."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(mt,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Prazo desde o registro"}),e.jsx("p",{className:"text-sm text-gray-600",children:"O prazo de resposta começa a correr no ato, conforme o tipo de documento, e aparece no comprovante. Dia não útil não conta como vencimento."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional rounded-lg flex items-center justify-center text-white mb-4",children:e.jsx(yt,{size:24})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Acompanhe pelo número"}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Guarde o protocolo: com ele você consulta a situação em"," ",e.jsx("a",{href:"/participacao/minhas-solicitacoes",className:"text-institutional underline font-semibold",children:"Acompanhar protocolo"}),", sem cadastro e sem senha."]})]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Protocolar documento"}),e.jsx(D5,{}),(s||t?.contato?.telefone)&&e.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 border border-gray-200 mt-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center text-institutional flex-shrink-0",children:e.jsx(xt,{size:24})}),e.jsxs("div",{className:"text-sm text-gray-700",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:"Prefere entregar pessoalmente?"}),s&&e.jsx("p",{children:s}),t?.contato?.telefone&&e.jsx("p",{children:t.contato.telefone})]})]})})]})})]}),e.jsx(ge,{})]})}const Nv=Object.keys(nd),wv={tipo:"",nome:"",documento:"",email:"",telefone:"",assunto:"",mensagem:"",anonimo:!1,consentimento:!1};function P5(){const t=$a(),{nomeCasa:s,instituicao:i,enderecoCompleto:n}=st(),[l,d]=b.useState(wv),[u,m]=b.useState({}),[x,p]=b.useState([]),[g,v]=b.useState(!1),[j,N]=b.useState(null),[k,S]=b.useState(null),[C,T]=b.useState(Po),[w,_]=b.useState(null);b.useEffect(()=>{let K=!0;return f5().then(we=>{K&&T(we)}),()=>{K=!1}},[]);function E(K,we){d(Y=>({...Y,[K]:we}))}function O(){const K=ts(l.documento,"cpf");_(K),!K&&Ds(l.documento)&&E("documento",Jo(l.documento))}async function $(K){if(K.preventDefault(),!l.tipo){N("Selecione o tipo de manifestação.");return}if(!l.anonimo){const we=ts(l.documento,"cpf");if(we){_(we);return}}if(!l.anonimo&&!l.consentimento){N("à preciso autorizar o tratamento dos seus dados para enviar a manifestação.");return}v(!0),N(null);try{const we=await jd("ouvidoria",x),Y=await Dy.registrar({tipo:l.tipo,assunto:l.assunto,mensagem:l.mensagem,nome:l.nome||void 0,email:l.email||void 0,telefone:l.telefone||void 0,documento:l.documento||void 0,anonimo:l.anonimo,camposExtras:u,anexos:we,captchaToken:t.token});S(Y),window.scrollTo({top:0,behavior:"smooth"})}catch(we){N(we instanceof ee?we.message:"Não foi possÃvel registrar a manifestação. Tente novamente.")}finally{v(!1),t.renovar()}}function z(){d(wv),m({}),p([]),S(null)}const Q=l.tipo?C[l.tipo]:void 0;return e.jsxs(yd,{titulo:"Ouvidoria",descricao:"Canal de comunicação direta com o cidadão",icone:e.jsx(So,{size:32}),rota:"/atendimento/ouvidoria",children:[e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(So,{size:24,className:"text-institutional mt-1 flex-shrink-0"}),e.jsxs("div",{className:"text-sm text-gray-700 space-y-2",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Sobre a Ouvidoria"}),e.jsxs("p",{children:["à o canal oficial entre o cidadão e a ",s,". Aqui você registra elogios, reclamações, denúncias, sugestões, pedidos de informação e pedidos de simplificação."]}),e.jsxs("p",{children:["Toda manifestação recebe ",e.jsx("strong",{children:"número de protocolo"})," e prazo de resposta fixado pela ",e.jsx("strong",{children:"Lei 13.460/2017"}),". O prazo passa a correr do registro."]}),e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-200",children:[e.jsx("h3",{className:"text-base font-bold text-gray-900 mb-3",children:"Atendimento presencial"}),e.jsxs("ul",{className:"space-y-2 text-sm not-prose",children:[n&&e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(xt,{size:16,className:"text-institutional mt-0.5 shrink-0","aria-hidden":"true"}),e.jsx("span",{children:n})]}),i?.horario_atendimento&&e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(mt,{size:16,className:"text-institutional mt-0.5 shrink-0","aria-hidden":"true"}),e.jsx("span",{children:i.horario_atendimento})]}),i?.contato?.telefone&&e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(zt,{size:16,className:"text-institutional mt-0.5 shrink-0","aria-hidden":"true"}
143),e.jsx("a",{href:`tel:${i.contato.telefone.replace(/\D/g,"")}`,className:"hover:underline",children:i.contato.telefone})]}),(i?.contato?.email_ouvidoria||i?.contato?.email)&&e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(Ze,{size:16,className:"text-institutional mt-0.5 shrink-0","aria-hidden":"true"}),e.jsx("a",{href:`mailto:${i.contato.email_ouvidoria||i.contato.email}`,className:"hover:underline break-all",children:i.contato.email_ouvidoria||i.contato.email})]})]})]})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsx("div",{className:"lg:col-span-2",children:e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:k?e.jsx(un,{titulo:"Manifestação registrada",protocolo:k.protocolo,prazoDias:Q,aoNovoRegistro:z,children:l.anonimo&&e.jsx("p",{children:"Como a manifestação é anônima, a resposta não será enviada por e-mail â acompanhe pelo protocolo."})}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Registrar Manifestação"}),e.jsx(Qt,{mensagem:j}),e.jsxs("form",{onSubmit:$,className:"space-y-6",children:[e.jsx(Xr,{rotulo:"Tipo de Manifestação",obrigatorio:!0,vazio:"Selecione o tipo",valor:l.tipo,aoMudar:K=>E("tipo",K),opcoes:Nv.map(K=>({valor:K,rotulo:nd[K]})),ajuda:l.tipo?`${xv[l.tipo]} Prazo de resposta: ${Q} dias.`:void 0}),e.jsx(Ly,{destaque:!0,rotulo:"Desejo permanecer anônimo",descricao:"A manifestação é aceita, mas sem e-mail a Ouvidoria não tem como responder â o acompanhamento fica só pelo protocolo.",marcado:l.anonimo,aoMudar:K=>E("anonimo",K)}),!l.anonimo&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Seus Dados"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(ke,{rotulo:"Nome Completo",obrigatorio:!0,valor:l.nome,aoMudar:K=>E("nome",K)}),e.jsx(ke,{rotulo:"CPF",valor:l.documento,aoMudar:K=>{E("documento",K),_(null)},aoSair:O,erro:w,placeholder:"000.000.000-00",maxLength:14,ajuda:"Opcional. Ajuda a localizar seus registros no atendimento."}),e.jsx(ke,{rotulo:"E-mail",tipo:"email",obrigatorio:!0,valor:l.email,aoMudar:K=>E("email",K),ajuda:"à por aqui que a resposta chega."}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",valor:l.telefone,aoMudar:K=>E("telefone",K),placeholder:"(00) 00000-0000"})]})]}),e.jsxs("div",{className:"pt-6 border-t border-gray-200 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Sua Manifestação"}),e.jsx(ke,{rotulo:"Assunto",obrigatorio:!0,valor:l.assunto,aoMudar:K=>E("assunto",K),placeholder:"TÃtulo resumido da manifestação"}),e.jsx(ai,{rotulo:"Mensagem",obrigatorio:!0,valor:l.mensagem,aoMudar:K=>E("mensagem",K),placeholder:"Descreva sua manifestação de forma detalhada..."}),e.jsx(Nd,{arquivos:x,aoMudar:p,ajuda:"Fotos e documentos ajudam a apurar â principalmente em denúncias."})]}),e.jsx(Py,{canal:"ouvidoria",valores:u,aoMudar:m}),e.jsxs("div",{className:"pt-6 border-t border-gray-200 space-y-4",children:[!l.anonimo&&e.jsx(My,{id:"lgpd-ouvidoria",aceito:l.consentimento,aoMudar:K=>E("consentimento",K),finalidade:"para registrar, apurar e responder esta manifestação"}),e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:g,rotulo:"Enviar Manifestação",icone:e.jsx(hr,{size:20})}),e.jsx("p",{className:"text-xs text-gray-500 text-center mt-3",children:"* Campos obrigatórios"})]})]})]})})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Tipos de Manifestação"}),e.jsx("ul",{className:"space-y-3 text-sm text-gray-700",children:Nv.map(K=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional mt-1",children:"â¢"}),e.jsxs("div",{children:[e.jsxs("strong",{children:[nd[K],":"]})," ",xv[K],e.jsxs("span",{className:"block text-xs text-gray-500 mt-0.5",children:["Prazo: ",C[K]," dias"]})]})]},K))})]}),e.jsx(By,{tipos:["reclamacao"]}),e.jsx(Oy,{emailPreferido:"ouvidoria"}),e.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(We,{size:20,className:"text-amber-600 mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-amber-900 mb
143-2",children:"Atenção"}),e.jsxs("p",{className:"text-sm text-amber-800",children:["Para pedir ",e.jsx("strong",{children:"acesso a informação pública"})," (documentos, dados, contratos), use o"," ",e.jsx("a",{href:"/atendimento/esic",className:"underline font-semibold",children:"e-SIC"}),": o rito é o da Lei 12.527/2011, com direito a recurso."]})]})]})})]})]}),e.jsxs("div",{className:"mt-8 bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Tramitação da Manifestação"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[{n:1,titulo:"Registro",texto:"Manifestação recebida e protocolada no sistema"},{n:2,titulo:"Análise",texto:"Ouvidoria analisa e encaminha ao setor competente"},{n:3,titulo:"Resposta",texto:"Setor responsável elabora a resposta"},{n:4,titulo:"Retorno",texto:"Cidadão recebe o retorno dentro do prazo legal"}].map(K=>e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-institutional text-white rounded-full flex items-center justify-center font-bold text-2xl mx-auto mb-3",children:K.n}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:K.titulo}),e.jsx("p",{className:"text-sm text-gray-600",children:K.texto})]},K.n))})]})]})}const _v={nome:"",email:"",telefone:"",assunto:"",mensagem:""};function B5(){const t=$a(),{instituicao:s,nomeCasa:i}=st(),[n,l]=b.useState(_v),[d,u]=b.useState(!1),[m,x]=b.useState(null),[p,g]=b.useState(!1);function v(S,C){l(T=>({...T,[S]:C}))}async function j(S){S.preventDefault(),u(!0),x(null);try{await w5.registrar({nome:n.nome,email:n.email,assunto:n.assunto,mensagem:n.mensagem,telefone:n.telefone||void 0,captchaToken:t.token}),g(!0),window.scrollTo({top:0,behavior:"smooth"})}catch(C){x(C instanceof ee?C.message:"Não foi possÃvel enviar a mensagem. Tente novamente.")}finally{u(!1),t.renovar()}}const N=s?.contato??{},k=[{rotulo:"Ouvidoria",email:N.email_ouvidoria},{rotulo:"e-SIC",email:N.email_esic},{rotulo:"Imprensa",email:N.email_imprensa}].filter(S=>S.email&&S.email!==N.email);return e.jsx(yd,{titulo:"Fale Conosco",descricao:`Entre em contato com a ${i}`,icone:e.jsx(Pa,{size:32}),rota:"/atendimento/fale-conosco",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[e.jsx(Oy,{titulo:"Onde nos encontrar"}),k.length>0&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h2",{className:"font-bold text-gray-900 text-lg mb-4",children:"Outros e-mails"}),e.jsx("div",{className:"space-y-4",children:k.map(S=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ze,{size:18,className:"text-institutional"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-600",children:S.rotulo}),e.jsx("a",{href:`mailto:${S.email}`,className:"text-sm font-semibold text-institutional hover:underline break-all",children:S.email})]})]},S.rotulo))})]}),N.whatsapp&&e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(zt,{size:18,className:"text-institutional"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-600",children:"WhatsApp"}),e.jsx("a",{href:`https://wa.me/${N.whatsapp.replace(/\D/g,"")}`,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-semibold text-institutional hover:underline",children:N.whatsapp})]})]})})]}),e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:p?e.jsxs(un,{titulo:"Mensagem enviada",aoNovoRegistro:()=>{l(_v),g(!1)},children:[e.jsxs("p",{children:["Agradecemos o contato. A resposta vai para ",e.jsx("strong",{children:n.email}),"."]}
143),e.jsxs("p",{children:["O Fale Conosco não emite protocolo nem tem prazo legal. Se o seu assunto exige resposta formal, registre pela"," ",e.jsx("a",{href:"/atendimento/ouvidoria",className:"underline font-semibold",children:"Ouvidoria"})," ","ou pelo"," ",e.jsx("a",{href:"/atendimento/esic",className:"underline font-semibold",children:"e-SIC"}),"."]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(hr,{size:24,className:"text-institutional"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Envie sua Mensagem"}),e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Preencha o formulário e entraremos em contato"})]})]}),e.jsx(Qt,{mensagem:m}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsx(ke,{rotulo:"Nome Completo",obrigatorio:!0,valor:n.nome,aoMudar:S=>v("nome",S),placeholder:"Seu nome completo",icone:e.jsx(Nt,{size:18})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(ke,{rotulo:"E-mail",tipo:"email",obrigatorio:!0,valor:n.email,aoMudar:S=>v("email",S),placeholder:"[email protected]",icone:e.jsx(Ze,{size:18})}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",valor:n.telefone,aoMudar:S=>v("telefone",S),placeholder:"(00) 00000-0000",icone:e.jsx(zt,{size:18})})]}),e.jsx(ke,{rotulo:"Assunto",obrigatorio:!0,valor:n.assunto,aoMudar:S=>v("assunto",S),placeholder:"Assunto da sua mensagem"}),e.jsx(ai,{rotulo:"Mensagem",obrigatorio:!0,valor:n.mensagem,aoMudar:S=>v("mensagem",S),placeholder:"Digite sua mensagem..."}),e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:d,rotulo:"Enviar Mensagem",icone:e.jsx(hr,{size:20})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"* Campos obrigatórios"})]})]})}),e.jsxs("div",{className:"mt-6 bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Qual canal usar?"}),e.jsxs("div",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("p",{children:[e.jsx("span",{className:"font-medium",children:"Fale Conosco:"})," contato geral. Sem protocolo e sem prazo legal."]}),e.jsxs("p",{children:[e.jsx("span",{className:"font-medium",children:"e-SIC:"})," pedido de acesso a informação pública (Lei 12.527/2011). Protocolo, prazo de 20 dias e direito a recurso â"," ",e.jsx("a",{href:"/atendimento/esic",className:"text-institutional hover:underline font-semibold",children:"acessar"}),"."]}),e.jsxs("p",{children:[e.jsx("span",{className:"font-medium",children:"Ouvidoria:"})," elogio, reclamação, sugestão, denúncia ou simplificação (Lei 13.460/2017). Protocolo e prazo â"," ",e.jsx("a",{href:"/atendimento/ouvidoria",className:"text-institutional hover:underline font-semibold",children:"acessar"}),"."]})]})]})]})]})})}function q5(t){return t.split(/\*\*(.+?)\*\*/g).map((s,i)=>i%2===1?e.jsx("strong",{className:"font-semibold text-gray-900",children:s},i):s)}function U5(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null),[u,m]=b.useState(null),[x,p]=b.useState("Todas"),[g,v]=b.useState("");b.useEffect(()=>{let C=!0;return k5.publicadas().then(T=>{C&&s(T)}).catch(()=>{C&&d("Não foi possÃvel carregar as perguntas frequentes.")}).finally(()=>{C&&n(!1)}),()=>{C=!1}},[]);const j=b.useMemo(()=>["Todas",...Array.from(new Set(t.map(C=>C.categoria).filter(C=>!!C)))],[t]),N=b.useMemo(()=>{const C=g.trim().toLowerCase();return t.filter(T=>{const w=x==="Todas"||T.categoria===x,_=!C||T.pergunta.toLowerCase().includes(C)||T.resposta.toLowerCase().includes(C);return w&&_})},[t,x,g]),k=g!==""||x!=="Todas";function S(){v(""),p("Todas")}return e.jsxs(yd,{titulo:"Perguntas Frequentes",descricao:"Encontre respostas para as dúvidas mais comuns",icone:e.jsx(Dc,{size:32}),rota:"/atendimento/faq",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"faq-busca",className:"block text-sm font-bold text-gray-900 mb-2",children:"Buscar pergunta"}),e.jsxs("div",{className:"relative",children:[e.jsx(yt,{size:18,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),e.jsx("input",{id:"faq-busca",type:"text",value:g,onChange:C=>v(C.target.value),placeholder:"Digite palavras-chave...",className:"w-full pl-10 pr-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"faq-categoria",className:"block text-sm font-bold text-gray-900 mb-2",children:"Filtrar por c
143ategoria"}),e.jsx("select",{id:"faq-categoria",value:x,onChange:C=>p(C.target.value),className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:j.map(C=>e.jsx("option",{value:C,children:C},C))})]})]}),e.jsxs("div",{className:"mt-4 flex items-center justify-between text-sm",children:[e.jsxs("span",{className:"text-gray-600",children:[N.length," ",N.length===1?"pergunta":"perguntas"]}),k&&e.jsx("button",{type:"button",onClick:S,className:"text-institutional hover:underline font-semibold",children:"Limpar filtros"})]})]}),i?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando perguntas frequentes..."})]}):l?e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-8 text-center",children:e.jsx("p",{className:"text-red-700",children:l})}):N.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(Dc,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Nenhuma pergunta encontrada"}),e.jsx("p",{className:"text-gray-600 mb-6",children:k?"Tente ajustar os filtros ou usar outras palavras-chave.":"Ainda não há perguntas publicadas."}),k&&e.jsx("button",{type:"button",onClick:S,className:"bg-institutional hover:bg-institutional-dark text-white font-bold py-3 px-6 rounded-lg transition-colors",children:"Limpar Filtros"})]}):e.jsx("div",{className:"space-y-4",children:N.map(C=>{const T=u===C.id;return e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[e.jsxs("button",{type:"button","aria-expanded":T,onClick:()=>m(T?null:C.id),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[e.jsxs("span",{className:"flex items-start gap-4 text-left flex-1",children:[e.jsx("span",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Dc,{size:20,className:"text-institutional"})}),e.jsxs("span",{className:"flex-1",children:[C.categoria&&e.jsx("span",{className:"inline-block px-3 py-1 bg-institutional/10 text-institutional text-xs font-bold rounded-full mb-2",children:C.categoria}),e.jsx("span",{className:"block text-lg font-bold text-gray-900",children:C.pergunta})]})]}),e.jsx("span",{className:"ml-4 flex-shrink-0",children:T?e.jsx(c2,{size:24,className:"text-institutional"}):e.jsx(Io,{size:24,className:"text-gray-400"})})]}),T&&e.jsx("div",{className:"px-6 pb-6",children:e.jsx("div",{className:"ml-14 pl-4 border-l-4 border-institutional/20",children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:q5(C.resposta)})})})]},C.id)})}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Não encontrou o que procurava?"}),e.jsx("p",{className:"text-sm text-gray-700 mb-4",children:"Fale com a Prefeitura pelos canais de atendimento â todos com registro e prazo de resposta."}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx("a",{href:"/atendimento/fale-conosco",className:"bg-institutional hover:bg-institutional-dark text-white font-bold py-2 px-4 rounded-lg transition-colors text-sm",children:"Fale Conosco"}),e.jsx("a",{href:"/atendimento/esic",className:"bg-white hover:bg-gray-50 text-institutional border border-institutional font-bold py-2 px-4 rounded-lg transition-colors text-sm",children:"e-SIC"}),e.jsx("a",{href:"/atendimento/ouvidoria",className:"bg-white hover:bg-gray-50 text-institutional border border-institutional font-bold py-2 px-4 rounded-lg transition-colors text-sm",children:"Ouvidoria"})]})]})]})}const F5=["Melhoria de Serviços","Infraestrutura","Educação","Saúde","Meio Ambiente","Segurança","Cultura e Esporte","Desenvolvimento Econômico","Acessibilidade","Tecnologia e Inovação","Outros"],Sv={nome:"",email:"",telefone:"",categoria:"",assunto:"",descricao:""};function $5(){const t=$a(),[s,i]=b.useState(Sv),[n,l]=b.useState(!1),[d,u]=b.useState(null),[m,x]=b.useState(null);function p(v,j){i(N=>({...N,[v]:j}))}async function g(v){v.preventDefault(),l(!0),u(null);try{const j=await Dy.registrar({tipo:"sugestao",assunto:s.assunto,mensagem:s.categoria?`[${s.categoria}] 144 145${s.descricao}`:s.descricao,nome:s.nome,email:s.email,telefone:s.telefone||void 0,captchaToken:t.token});x(j),window.scrollTo({top:0,behavior:"smooth"})}catch(j){u(j instanceof ee?j.message:"Não foi possÃvel registrar a sugestão. Tente novamente.")}finally{l(!1),t.renovar()}}return e.jsx(yd,{titulo:"Envie sua Sugestão",descricao:"Contribua com ideias para melhorar nossa cidade",icone:e.jsx(Pa,{size:32}),rota:"/atendimento/sugestoes",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Pa,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Por que enviar sugestões?"})]}),e.jsx("p",{className:"text-sm text-gray-700 mb-4",children:"Suas
145sugestões ajudam a Prefeitura a identificar oportunidades de melhoria nos serviços públicos e na qualidade de vida da população."}),e.jsxs("p",{className:"text-sm text-gray-700",children:["Toda sugestão é registrada na Ouvidoria com protocolo e prazo de resposta de"," ",Po.sugestao," dias. Ela pode virar projeto de lei, indicação ou outra ação concreta."]})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Como funciona?"}),e.jsx("div",{className:"space-y-3",children:["Preencha o formulário com sua sugestão","Você recebe o número de protocolo na hora","A Ouvidoria encaminha à secretaria competente","A resposta chega no e-mail informado, dentro do prazo"].map((v,j)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"w-6 h-6 bg-institutional/10 rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-xs font-bold text-institutional",children:j+1})}),e.jsx("p",{className:"text-sm text-gray-700",children:v})]},v))})]}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 text-sm text-gray-700",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Quer propor uma lei?"}),e.jsxs("p",{children:["Sugestão de norma tem caminho próprio, com tramitação legislativa. Use"," ",e.jsx("a",{href:"/legislativo/sugira-lei",className:"text-institutional font-semibold underline",children:"Sugira uma Lei"}),"."]})]})]}),e.jsx("div",{className:"lg:col-span-2",children:e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:m?e.jsx(un,{titulo:"Sugestão registrada",protocolo:m.protocolo,prazoDias:Po.sugestao,aoNovoRegistro:()=>{i(Sv),x(null)},children:e.jsxs("p",{children:["A resposta vai para ",e.jsx("strong",{children:s.email}),"."]})}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Formulário de Sugestão"}),e.jsx(Qt,{mensagem:d}),e.jsxs("form",{onSubmit:g,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(ke,{rotulo:"Nome Completo",obrigatorio:!0,valor:s.nome,aoMudar:v=>p("nome",v),placeholder:"Seu nome completo",icone:e.jsx(Nt,{size:18})}),e.jsx(ke,{rotulo:"E-mail",tipo:"email",obrigatorio:!0,valor:s.email,aoMudar:v=>p("email",v),placeholder:"[email protected]",icone:e.jsx(Ze,{size:18}),ajuda:"à por aqui que a resposta chega."}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",valor:s.telefone,aoMudar:v=>p("telefone",v),placeholder:"(00) 00000-0000"}),e.jsx(Xr,{rotulo:"Ãrea",obrigatorio:!0,vazio:"Selecione a área",valor:s.categoria,aoMudar:v=>p("categoria",v),opcoes:F5.map(v=>({valor:v,rotulo:v}))})]}),e.jsx(ke,{rotulo:"Assunto",obrigatorio:!0,valor:s.assunto,aoMudar:v=>p("assunto",v),placeholder:"Resumo da sua sugestão"}),e.jsx(ai,{rotulo:"Descrição da Sugestão",obrigatorio:!0,valor:s.descricao,aoMudar:v=>p("descricao",v),placeholder:"Descreva sua sugestão: o que propõe, onde, e que problema ela resolve..."}),e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:n,rotulo:"Enviar Sugestão",icone:e.jsx(hr,{size:20})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"* Campos obrigatórios"})]})]})})})]})})}function Ka(t,s,i,n){if(typeof document>"u")return;let l=document.querySelector(t);l||(l=document.createElement("meta"),l.setAttribute(s,i),document.head.appendChild(l)),l.setAttribute("content",n)}function qy({title:t,description:s,image:i,url:n,type:l="website"}){const{instituicao:d,nomeCasa:u}=st(),m=d?.brasao_url??void 0;b.useEffect(()=>{if(typeof document>"u")return;document.title=t?`${t} | ${u}`:`${u} | Portal da Transparência`;const x=`Portal oficial da ${u}. Transparência, participação cidadã e acompanhamento do Poder Legislativo Municipal.`,p=s||x,g=i||m,v=n||(typeof window<"u"?window.location.href:""),j=t?`${t} | ${u}`:u;Ka('meta[name="description"]',"name","description",p),Ka('meta[property="og:title"]',"property","og:title",j),Ka('meta[property="og:description"]',"property","og:description",p),Ka('meta[property="og:url"]',"property","og:url",v),Ka('meta[property="og:type"]',"property","og:type",l),Ka('meta[name="twitter:title"]',"name","twitter:title",j),Ka('meta[name="twitter:description"]',"name","twitter:description",p),Ka('meta[name="twitter:url"]',"name","twitter:url",v),g&&(Ka('meta[property="og:image"]',"property","og:image",g),Ka('meta[name="twitter:image"]',"name","twitter:image",g));let N=document.querySelector('link[rel="canonical"]');N||(N=document.createElement("link"),N.setAttribute("rel","canonical"),document.head.appendChild(N)),N.setAttribute("href",v)},[t,s,i,n,l,u,m])}
145const I5=["escala","multipla_escolha","sim_nao","texto_livre"];function H5(t){return Array.isArray(t)?t.filter(s=>!!s&&typeof s=="object").map((s,i)=>({id:typeof s.id=="string"&&s.id?s.id:`p${i+1}`,texto:typeof s.texto=="string"?s.texto:"",tipo:I5.includes(s.tipo)?s.tipo:"texto_livre",obrigatoria:s.obrigatoria===!0,opcoes:Array.isArray(s.opcoes)?s.opcoes.map(String):void 0})).filter(s=>s.texto.trim()!==""):[]}function V5(){return new Date().toISOString().slice(0,10)}const kv={async ativa(){const t=V5(),{data:s,error:i}=await X.from("pesquisas_satisfacao").select("*").eq("ativa",!0).is("deletado_em",null).or(`data_inicio.is.null,data_inicio.lte.${t}`).or(`data_fim.is.null,data_fim.gte.${t}`).order("data_inicio",{ascending:!1,nullsFirst:!1}).limit(1).maybeSingle();if(i)throw new ee(i.message,i.code);return s??null},async responder(t,s){const{error:i}=await X.from("pesquisas_respostas").insert({pesquisa_id:t,nota:s.nota??null,comentario:s.comentario?.trim()||null,respostas:s.respostas});if(i)throw new ee(i.message,i.code)}};function G5(t,s){const i=t.filter(n=>n.tipo==="escala").map(n=>Number(s[n.id])).filter(n=>Number.isFinite(n)&&n>0);if(i.length!==0)return Number((i.reduce((n,l)=>n+l,0)/i.length).toFixed(2))}const W5=[1,2,3,4,5];function K5(){const[t,s]=b.useState(null),[i,n]=b.useState([]),[l,d]=b.useState({}),[u,m]=b.useState(""),[x,p]=b.useState(!0),[g,v]=b.useState(!1),[j,N]=b.useState(!1),[k,S]=b.useState([]);qy({title:"Pesquisa de Satisfação",description:"Avalie o atendimento da Casa e ajude a melhorar os serviços."});const C=b.useCallback(async()=>{p(!0);try{const _=await kv.ativa();s(_),n(_?H5(_.perguntas):[])}catch{s(null)}finally{p(!1)}},[]);b.useEffect(()=>{C()},[C]);const T=(_,E)=>{S(O=>O.filter($=>$!==_)),d(O=>({...O,[_]:E}))},w=async _=>{if(_.preventDefault(),!t)return;const E=i.filter(O=>O.obrigatoria).filter(O=>{const $=l[O.id];return $===void 0||$===""||$===0}).map(O=>O.id);if(E.length>0){S(E);return}v(!0);try{await kv.responder(t.id,{respostas:l,comentario:u,nota:G5(i,l)}),N(!0)}catch(O){S([]),alert(O instanceof ee?O.message:"Não foi possÃvel enviar sua resposta. Tente novamente.")}finally{v(!1)}};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atendimento"},{label:"Pesquisa de Satisfação",path:"/atendimento/pesquisa-satisfacao"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(on,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Pesquisa de Satisfação"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Sua avaliação orienta a melhoria dos serviços da Casa"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:x?e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center text-gray-500",children:"Carregandoâ¦"}):j?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(De,{size:48,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Resposta registrada"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Obrigado por avaliar o atendimento. Sua resposta é anônima e entra no consolidado que orienta as melhorias."})]}):!t||i.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(We,{size:40,className:"text-gray-300 mx-auto mb-3"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Nenhuma pesquisa em andamento"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Não há avaliação aberta no momento. Quando a Casa publicar uma nova pesquisa, ela aparece aqui."})]}):e.jsxs("form",{onSubmit:w,className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:t.titulo}),t.descricao&&e.jsx("p",{className:"text-gray-600 mt-2",children:t.descricao}),e.jsx("p",{className:"text-sm text-gray-500 mt-4 pb-6 border-b border-gray-100",children:"A resposta é anônima: não pedimos nome, e-mail nem documento."}),e.jsxs("div",{className:"space-y-8 mt-8",children:[i.map((_,E)=>e.jsxs("fieldset",{className:k.includes(_.id)?"pl-3 border-l-4 border-red-400":"",children:[e.jsxs("legend",{className:"font-semibold text-gray-900 mb-3",children:[E+1,". ",_.texto,_.obrigatoria&&e.jsx("span",{className:"text-red-600",children:" *"})]}),_.tipo==="escala"&&e.jsx("div",{className:"flex flex-wrap gap-2",children:W5.map(O=>e.jsxs("button",{type:"button",onClick:()=>T(_.id,O),"aria-label":`${O} de 5`,"aria-pressed":l[_.id]===O,className:`flex items-center gap-1 px-4 py-2 rounded-lg border text-sm font-semibold transition ${Number(l[_.id])>=O?"bg-amber-50 border-amber-300 text-amber-700":"bg-white border-gray-300 text-gray-500 hover:border-amber-300"}`,children:[e.jsx(Hr,{size:16,fill:Number(l[_.id])>=O?"currentColor":"none"}),O]},O))}),_.tipo==="sim_nao"&&e.jsx("div",{className:"flex gap-2",children:["Sim","Não"].map(O=>e.jsx("button",{type:"button",onClick:()=>T(_.id,O),"aria-pressed":l[_.id]===O,className:`px-5 py-2 rounded-lg border text-sm font-semibold transition ${l[_.id]===O?"bg-blue-50 border-blue-300 text-blue-700":"bg-white border-gray-300 text-gray-600 hover:border-blue-300"}`,children:O},O))}),_.tipo==="multipla_escolha"&&e.jsx("div",{className:"space-y-2",children:(_.opcoes??[]).map(O=>e.jsxs("label",{className:"flex items-center gap-3 p-3 border border-gray-200 rounded-lg cursor-pointer hover:border-blue-300",children:[e.jsx("input",{type:"radio",name:_.id,checked:l[_.id]===O,onChange:()=>T(_.id,O)}),e.jsx("span",{className:"text-gray-800",children:O})]},O))}),_.tipo==="texto_livre"&&e.jsx("textarea",{value:String(l[_.id]??""),onChange:O=>T(_.id,O.target.value),rows:4,className:"w-full px-3 py-2 border border-gray-300 rounded-lg",placeholder:"Sua resposta"}),k.includes(_.id)&&e.jsx("p",{className:"text-sm text-red-600 mt-2",children:"Esta pergunta é obrigatória."})]},_.id)),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"comentario",className:"block font-semibold text-gray-900 mb-2",children:"Quer acrescentar alguma coisa?"}),e.jsx("textarea",{id:"comentario",value:u,onChange:_=>m(_.target.value),rows:4,className:"w-full px-3 py-2 border border-gray-300 rounded-lg",placeholder:"Opcional"})]})]}),k.length>0&&e.jsx("p",{className:"mt-6 text-sm text-red-700 bg-red-50 border border-red-200 rounded-lg p-3",children:"Responda as perguntas obrigatórias antes de enviar."}),e.jsxs("button",{type:"submit",disabled:g,className:"mt-8 w-full flex items-center justify-center gap-2 px-6 py-3 bg-institutional text-white rounded-lg font-semibold disabled:bg-gray-300",children:[e.jsx(hr,{size:18}),g?"Enviandoâ¦":"Enviar avaliação"]})]})})})]}),e.jsx(ge,{})]})}function ym(){return b.useEffect(()=>{window.location.replace(Mo)},[]),e.jsxs("main",{id:"conteudo",className:"mx-auto max-w-xl px-6 py-16 text-center",children:[e.jsx("p",{className:"text-gray-700",role:"status",children:"Abrindo a legislação municipal no Portal da Transparênciaâ¦"}),e.jsx("p",{className:"mt-4",children:e.jsx("a",{href:Mo,className:"font-semibold text-institutional underline",children:"Se não abrir, clique aqui"})})]})}async function Cv(t={}){const s=await pd("diarios_buscar",{p_termo:t.termo?.trim()||null,p_de:t.de||null,p_ate:t.ate||null,p_ordem:t.ordem??"recentes",p_limite:t.porPagina??20,p_pagina:t.pagina??1});return{edicoes:s??[],total:s?.[0]?.total??0}}async function J5(){return await pd("diarios_datas",{})??[]}const Ev=20;function Ac(t){if(!t)return"";const[s,i,n]=t.slice(0,10).split("-");return n&&i&&s?`${n}/${i}/${s}`:""}function Y5(){const t=new Date,s=i=>String(i).padStart(2,"0");return`${t.getFullYear()}-${s(t.getMonth()+1)}-${s(t.getDate())}`}function Q5({texto:t}){const s=t.split(/<b>|<\/b>/);return e.jsx("p",{className:"text-sm text-gray-700 mt-2 leading-relaxed",children:s.map((i,n)=>n%2===1?e.jsx("mark",{className:"bg-yellow-200 text-gray-900 font-semibold px-0.5 rounded",children:i},n):e.jsx("span",{children:i},n))})}function X5(){const[t,s]=fr(),i=t.get("q")??"",n=t.get("de")??"",l=t.get("ate")??"",d=t.get("ordem")==="antigas"?"antigas":"recentes",u=Math.max(1,Number(t.get("p")??1)||1),[m,x]=b.useState(i),[p,g]=b.useState(n),[v,j]=b.useState(l),[N,k]=b.useState([]),[S,C]=b.useState(0),[T,
145w]=b.useState(!0),[_,E]=b.useState(null),[O,$]=b.useState(null),[z,Q]=b.useState([]),[K,we]=b.useState(null),Y=!!(i||n||l),fe=Math.max(1,Math.ceil(S/Ev)),J=b.useCallback(Z=>{const G={...Object.fromEntries(t.entries()),...Z},se=Object.fromEntries(Object.entries(G).filter(([,oe])=>oe));s(se)},[t,s]);b.useEffect(()=>{Wo.obter("links_externos").then(Z=>we(Z?.diario_oficial??null)).catch(()=>{}),Cv({porPagina:1}).then(Z=>$(Z.edicoes[0]??null)).catch(()=>{}),J5().then(Q).catch(()=>{})},[]),b.useEffect(()=>{x(i),g(n),j(l);let Z=!0;return w(!0),E(null),Cv({termo:i,de:n,ate:l,ordem:d,pagina:u,porPagina:Ev}).then(D=>{Z&&(k(D.edicoes),C(D.total))}).catch(()=>{Z&&(E("Não foi possÃvel carregar as edições. Tente novamente."),k([]),C(0))}).finally(()=>{Z&&w(!1)}),()=>{Z=!1}},[i,n,l,d,u]);const Me=b.useMemo(()=>{if(!z.length||!n&&!l||S>0)return null;const Z=z.find(G=>n?G.data_publicacao<n:!1),D=[...z].reverse().find(G=>l?G.data_publicacao>l:!1);return Z||D?{anterior:Z,seguinte:D}:null},[z,n,l,S]),Bt=b.useMemo(()=>Array.from(new Set(z.map(Z=>Number(Z.data_publicacao.slice(0,4))))).sort((Z,D)=>D-Z),[z]);function H(Z){Z.preventDefault(),J({q:m.trim(),de:p,ate:v,p:""})}function te(){s({})}function xe(Z){J({de:`${Z}-01-01`,ate:`${Z}-12-31`,p:""})}function Ue(){const Z=Y5();J({de:`${Z.slice(0,7)}-01`,ate:Z,p:""})}return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atos Oficiais"},{label:"Diário Oficial",path:"/legislativo/diario-oficial"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Yr,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Diário Oficial"}),e.jsx("p",{className:"text-white/90 text-lg mt-2",children:"Publicações oficiais do municÃpio de Funilândia, desde 2018"})]})]})]})}),e.jsx("section",{className:"py-10 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[O&&e.jsxs("div",{className:"bg-institutional text-white rounded-lg shadow-md p-6 mb-8 flex flex-wrap items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm uppercase tracking-wide text-white/80 font-semibold",children:"Ãltima edição"}),e.jsxs("p",{className:"text-2xl font-bold mt-1",children:["Edição ",O.edicao]}),e.jsxs("p",{className:"text-white/90 text-sm mt-1",children:[Ac(O.data_publicacao),O.paginas?` · ${O.paginas} ${O.paginas===1?"página":"páginas"}`:""]})]}),O.arquivo_url&&e.jsxs("a",{href:O.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-3 bg-white text-institutional-dark rounded-lg font-bold hover:bg-gray-100 transition-colors",children:[e.jsx(tt,{size:18,"aria-hidden":"true"}),"Baixar PDF",e.jsxs("span",{className:"sr-only",children:[" da edição ",O.edicao," (abre em nova aba)"]})]})]}),e.jsxs("form",{onSubmit:H,className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(yt,{size:20,className:"text-institutional","aria-hidden":"true"}),e.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"Consultar edições"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{htmlFor:"dof-q",className:"block text-sm font-semibold text-gray-900 mb-1",children:"Palavra-chave"}),e.jsx("input",{id:"dof-q",type:"search",value:m,onChange:Z=>x(Z.target.value),placeholder:"Ex: nomeação, licitação, nome de servidor, número de decreto",className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}),e.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Procura no número da edição, no resumo e ",e.jsx("strong",{children:"dentro do PDF"}),"."]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"dof-de",className:"block text-sm font-semibold text-gray-900 mb-1",children:"De"}),e.jsx("input",{id:"dof-de",type:"date",value:p,onChange:Z=>g(Z.target.value),className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"dof-ate",className:"block text-sm font-semibold text-gray-900 mb-1",children:"Até"}
145),e.jsx("input",{id:"dof-ate",type:"date",value:v,onChange:Z=>j(Z.target.value),className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mt-4",children:[e.jsx("button",{type:"submit",className:"px-6 py-2.5 bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors",children:"Buscar"}),e.jsx("button",{type:"button",onClick:Ue,className:"text-sm text-institutional hover:underline font-semibold",children:"Este mês"}),Bt.slice(0,3).map(Z=>e.jsx("button",{type:"button",onClick:()=>xe(Z),className:"text-sm text-institutional hover:underline font-semibold",children:Z},Z)),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700 ml-auto",children:["Ordenar:",e.jsxs("select",{value:d,onChange:Z=>J({ordem:Z.target.value,p:""}),className:"px-3 py-1.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional","aria-label":"Ordenar edições",children:[e.jsx("option",{value:"recentes",children:"Mais recentes"}),e.jsx("option",{value:"antigas",children:"Mais antigas"})]})]}),Y&&e.jsxs("button",{type:"button",onClick:te,className:"flex items-center gap-1 text-sm text-gray-700 hover:text-institutional font-semibold",children:[e.jsx(Fa,{size:14,"aria-hidden":"true"}),"Limpar filtros"]})]})]}),e.jsx("p",{className:"text-sm text-gray-700 mb-4","aria-live":"polite",children:T?"Carregando ediçõesâ¦":`${S} ${S===1?"edição encontrada":"edições encontradas"}${Y?" para os filtros aplicados":""}`}),_&&e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6 mb-6",role:"alert",children:e.jsx("p",{className:"text-red-700",children:_})}),T?e.jsx("div",{className:"flex justify-center items-center py-20",children:e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional"})}):N.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(Yr,{size:48,className:"text-gray-300 mx-auto mb-4","aria-hidden":"true"}),e.jsx("p",{className:"text-gray-700 text-lg font-semibold",children:"Nenhuma edição encontrada"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Tente outra palavra, ou amplie o perÃodo."}),Me&&e.jsxs("p",{className:"text-sm text-gray-700 mt-4",children:[Me.anterior&&e.jsxs("button",{type:"button",className:"text-institutional hover:underline font-semibold",onClick:()=>J({de:Me.anterior.data_publicacao,ate:Me.anterior.data_publicacao,p:""}),children:["Edição anterior: ",Ac(Me.anterior.data_publicacao)]}),Me.anterior&&Me.seguinte&&e.jsx("span",{className:"text-gray-400",children:" · "}),Me.seguinte&&e.jsxs("button",{type:"button",className:"text-institutional hover:underline font-semibold",onClick:()=>J({de:Me.seguinte.data_publicacao,ate:Me.seguinte.data_publicacao,p:""}),children:["Próxima edição: ",Ac(Me.seguinte.data_publicacao)]})]})]}):e.jsx("ul",{className:"space-y-4 mb-8",children:N.map(Z=>e.jsx("li",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-between items-start",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(he,{size:24,className:"text-institutional","aria-hidden":"true"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-xl font-bold text-gray-900",children:["Edição ",Z.edicao]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm text-gray-600 mt-1",children:[e.jsx(Ee,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:Ac(Z.data_publicacao)}),e.jsx("span",{className:"text-gray-400",children:"|"}),e.jsxs("span",{children:["Nº ",Z.numero]}),Z.paginas?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-gray-400",children:"|"}),e.jsxs("span",{children:[Z.paginas," ",Z.paginas===1?"página":"páginas"]})]}):null]})]})]}),Z.sumario&&e.jsx("p",{className:"text-sm text-gray-700 mt-3",children:Z.sumario}),Z.trecho&&e.jsx(Q5,{texto:Z.trecho})]}),Z.arquivo_url&&e.jsxs("a",{href:Z.arquivo_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors text-sm whitespace-nowrap",children:[e.jsx(tt,{size:16,"aria-hidden":"true"}),"Baixar PDF",e.jsxs("span",{className:"sr-only",children:[" da edição ",Z.edicao," (abre em nova aba)"]})]})]})},Z.id))}),!T&&fe>1&&e.jsxs("nav",{className:"flex items-center justify-center gap-3 mb-10","aria-label":"Paginação das edições",children:[e.jsxs("button",{type:"button",onClick:()=>J({p:String(u-1)}),disabled:u<=1,className:"inline-flex items-center gap-1 px-4 py-2 border border-gray-300 rounded-lg text-sm font-semibold text-gray-700 disabled:opacity-40 hover:border-institutional",children:[e.jsx(ln,{size:16,"aria-hidden":"true"})," Anterior"]}),e.jsxs("span",{className:"text-sm text-gray-700",children:["Página ",u," de ",fe]}),e.jsxs("button",{type:"button",onClick:()=>J({p:String(u+1)}),disabled:u>=fe,className:"inline-flex items-center gap-1 px-4 py-2 border border-gray-300 rounded-lg text-sm font-semibold text-gray-700 disabled:opacity-40 hover:border-institutional",children:["Próxima ",e.jsx(ss,{size:16,"aria-hidden":"true"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-6",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Sobre o Diário Oficial"}),e.jsxs("div",{className:"text-sm text-gray-700 space-y-2",children:[e.jsx("p",{children:"O Diário Oficial é o veÃculo de publicação dos atos, decretos, leis, portarias e demais documentos do municÃpio de Funilândia. à por ele que os atos administrativos ganham publicidade e eficácia jurÃdica."}),e.jsx("p",{children:"A publicação no Diário é requisito de validade de leis, decretos, editais e outros atos normativos municipais, e o arquivo em PDF é o documento oficial."})]})]}),K&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:"Portal externo do Diário"}),e.jsx("p",{className:"text-sm text-gray-700 mb-4",children:"As edições também podem ser consultadas no portal do Diário Oficial dos MunicÃpios."}),e.jsxs("a",{href:K,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark transition-colors",children:[e.jsx(Ke,{size:18,"aria-hidden":"true"}),"Acessar portal externo",e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]})]})]})})]}),e.jsx(ge,{})]})}function Z5(){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
145),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atos Oficiais"},{label:"Códigos Municipais",path:"/legislativo/codigos"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Yr,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Códigos Municipais"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Legislação estruturante do municÃpio de Funilândia"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Yr,{size:24,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Sobre os Códigos Municipais"}),e.jsxs("div",{className:"text-sm text-gray-700 space-y-2",children:[e.jsx("p",{children:"Os Códigos Municipais são leis estruturantes que organizam e regulamentam diversos aspectos da vida no municÃpio, desde o planejamento urbano até as questões tributárias e sanitárias."}),e.jsxs("p",{children:[e.jsx("strong",{children:"Importância:"})," Essas legislações estabelecem as regras fundamentais para o desenvolvimento ordenado do municÃpio e a prestação de serviços à população."]})]})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(he,{size:20,className:"text-institutional"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Plano Diretor"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Define as diretrizes para o desenvolvimento urbano e rural do municÃpio, estabelecendo normas para uso e ocupação do solo, zoneamento e infraestrutura."})]})}),e.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[e.jsx("h4",{className:"text-xs font-semibold text-gray-700 mb-2",children:"Principais temas:"}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Zoneamento"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Uso do Solo"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Meio Ambiente"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Infraestrutura"})]}),e.jsxs("a",{href:"/legislativo/leis",className:"inline-flex items-center gap-2 text-sm font-semibold text-institutional hover:text-institutional-dark",children:[e.jsx(Ke,{size:16}),"Consultar Legislação"]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center",children:e.jsx(he,{size:20,className:"text-green-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Código de Obras"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Estabelece as normas técnicas para construção, reforma e demolição de edificações no municÃpio, garantindo segurança e qualidade."})]})}),e.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[e.jsx("h4",{className:"text-xs font-semibold text-gray-700 mb-2",children:"Principais temas:"}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded",children:"Licenciamento"}),e.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded",children:"Edificações"}),e.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded",children:"Segurança"}),e.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded",children:"Fiscalização"})]}),e.jsxs("a",{href:"/legislativo/leis",className:"inline-flex items-center gap-2 text-sm font-semibold text-institutional hover:text-institutional-dark",children:[e.jsx(Ke,{size:16}),"Consultar Legislação"]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(he,{size:20,className:"text-institutional"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Código Tributário"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Regulamenta o sistema tributário municipal, definindo impostos, taxas e contribuições, além de procedimentos de fiscalização e arrecadação."})]})}),e.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[e.jsx("h4",{className:"text-xs font-semibold text-gray-700 mb-2",children:"Principais temas:"}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"IPTU"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"ISS"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Taxas"}),e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-2 py-1 rounded",children:"Fiscalização"})]}),e.jsxs("a",{href:"/legislativo/leis",className:"inline-flex items-center gap-2 text-sm font-semibold text-institutional hover:text-institutional-dark",children:[e.jsx(Ke,{size:16}),"Consultar Legislação"]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-10 h-10 bg-amber-100 rounded-lg flex items-center justify-center",children:e.jsx(he,{size:20,className:"text-amber-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Código Sanitário"})]}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Estabelece normas de saúde pública, saneamento básico, vigilância sanitária e controle de doenças no municÃpio."})]})}),e.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[e.jsx("h4",{className:"text-xs font-semibold text-gray-700 mb-2",children:"Principais temas:"}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded",children:"Vigilância"}),e.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded",children:"Saneamento"}),e.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded",children:"Saúde Pública"}),e.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded",children:"Controle"})]}),e.jsxs("a",{href:"/legislativo/leis",className:"inline-flex items-center gap-2 text-sm font-semibold text-institutional hover:text-institutional-dark",children:[e.jsx(Ke,{size:16}),"Consultar Legislação"]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Como Consultar os Códigos"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"1"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Acesse as Leis Municipais"}),e.jsx("p",{className:"text-sm text-gray-600",children:'Clique em "Consultar Legislação" para acessar o portal de Leis Municipais.'})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"2"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Busque o Código"}),e.jsx("p",{className:"text-sm text-gray-600",children:'Use a busca por palavra-chave (ex: "Plano Diretor", "Código de Obras") para encontrar a legislação.'})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"3"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Consulte o Texto"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Leia o texto completo da lei ou baixe o arquivo PDF para consulta offline."})]})]})]})]})})]}),e.jsx(ge,{})]})}const eT={agendada:"Agendada",em_andamento:"Em andamento",suspensa:"Suspensa",encerrada:"Encerrada",cancelada:"Cancelada",nao_realizada:"Não realizada"},tT=`*, 146 tipo:tipos_proposicao(id, sigla, nome, prefixo), 147 autores:proposicoes_autores( 148 id, principal, ordem, autor_externo, 149 parlamentar:parlamentares_publico(id, nome_parlamentar, foto_url) 150 )`;Ne("proposicoes",{select:tT,ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]});const jm=Ne("sessoes",{ordem:[{coluna:"data_hora",ascendente:!1}]}),aT={frequencia:"Folha de frequência assinada",ata:"Ata da sessão",pauta:"Pauta da sessão",roteiro:"Roteiro da sessão",anexo:"Anexo"},sT={...jm,async emAndamento(){const{data:t,error:s}=await X.from("sessoes").select("*").eq("status","em_andamento").is("deletado_em",null).maybeSingle();if(s)throw new ee(s.message,s.code);return t},async proximas(t=5){return jm.listar({em:{status:["agendada"]},ordem:[{coluna:"data_hora",ascendente:!0}],limite:t})},async realizadas(t=20){return jm.listar({em:{status:["encerrada"]},limite:t})},async pautas(t){const{data:s,error:i}=await X.from("pautas").select(`*, 151 itens:pautas_itens( 152 *, proposicao:proposicoes(id, numero, ano, ementa, status, 153 tipo:tipos_proposicao(id, sigla, nome)) 154 )`).eq("sessao_id",t).eq("publicada",!0).order("fase");if(i)throw new ee(i.message,i.code);return s??[]},async votacoes(t){const{data:s,error:i}=await X.from("votacoes").select(`*, 155 proposicao:proposicoes(id, numero, ano, ementa, 156 tipo:tipos_proposicao(id, sigla, nome)), 157 votos:votos(*, parlamentar:parlamentares_publico(id, nome_parlamentar, foto_url))`).eq("sessao_id",t).order("aberta_em");if(i)throw new ee(i.message,i.code);return s??[]},async votacoesEncerradas(t=50){const{data:s,error:i}=await X.from("votacoes").select(`*, 158 proposicao:proposicoes(id, numero, ano, ementa, 159 tipo:tipos_proposicao(id, sigla, nome)), 160 sessao:sessoes(id, numero, ano, tipo, data_hora), 161 votos:votos(*, parlamentar:parlamentares_publico(id, nome_parlamentar, foto_url))`).not("encerrada_em","is",null).order("encerrada_em",{ascending:!1}).limit(t);if(i)throw new ee(i.message,i.code);return s??[]},async votacoesDaMateria(t){const{data:s,error:i}=await X.from("votacoes").select(`*, 162 sessao:sessoes(id, numero, ano, tipo, data_hora), 163 votos:votos(*, parlamentar:parlamentares_publico(id, nome_parlamentar, foto_url))`).eq("proposicao_id",t).not("encerrada_em","is",null).order("encerrada_em",{ascending:!1});if(i)throw new ee(i.message,i.code);return s??[]},async reunioesComPautaPublicada(t=40){const{data:s,error:i}=await X.from("comissoes_reunioes").select(`id, numero, ano, data_hora, local, status, pauta_publicada, 164 comissao:comissoes(id, sigla, nome), 165 itens:reuniao_itens(id, ordem, titulo_livre, apreciado, conclusao, 166 proposicao:proposicoes(id, numero, ano, ementa, 167 tipo:tipos_proposicao(sigla, nome, prefixo)))`).eq("pauta_publicada",!0).order("data_hora",{ascending:!1}).limit(t);if(i)throw new ee(i.message,i.code);return s??[]},async presencas(t){const{data:s,error:i}=await X.from("sessoes_presencas").select("*, parlamentar:parlamentares_publico(id, nome_parlamentar, foto_url)").eq("sessao_id",t);if(i)throw new ee(i.message,i.code);return s??[]},async totais(){const t=async d=>{const{count:u,error:m}=await d(X.from("sessoes").select("id",{count:"exact",head:!0}).is("deletado_em",null));if(m)throw new ee(m.message,m.code);return u??0},[s,i,n,l]=await Promise.all([t(d=>d),t(d=>d.eq("status","agendada")),t(d=>d.eq("status","encerrada")),X.from("atas").select("sessao_id").eq("publicada",!0).is("deletado_em",null)]);if(l.error)throw new ee(l.error.message,l.error.code);return{total:s,agendadas:i,encerradas:n,comAta:new Set((l.data??[]).map(d=>d.sessao_id)).size}},async comAtaPublicada(t){if(t.length===0)return new Set;const{data:s,error:i}=await X.from("atas").select("sessao_id").in("sessao_id",t).eq("publicada",!0).is("deletado_em",null);if(i)throw new ee(i.message,i.code);return new Set((s??[]).map(n=>n.sessao_id))},async documentos(t){const[s,i]=await Promise.all([X.from("atas").select("id, titulo, numero, ano, arquivo_url").eq("sessao_id",t).eq("publicada",!0).not("arquivo_url","is",null).is("deletado_em",null).order("criado_em",{ascending:!1}),X.from("sessoes_documentos").select("id, tipo, nome, arquivo_url, tamanho_bytes, ordem").eq("sessao_id",t).eq("publicado",!0).not("arquivo_url","is",null).is("deletado_em",null).order("ordem")]);if(s.error)throw new ee(s.error.message,s.error.code);
167if(i.error)throw new ee(i.error.message,i.error.code);return[...(s.data??[]).map(n=>({id:n.id,nome:n.titulo??`Ata da sessão nº ${n.numero}/${n.ano}`,url:n.arquivo_url,tamanho:null})),...(i.data??[]).map(n=>({id:n.id,nome:n.nome??aT[n.tipo]??"Documento da sessão",url:n.arquivo_url,tamanho:n.tamanho_bytes}))]},async anosDisponiveis(){const{data:t,error:s}=await X.from("sessoes").select("ano").is("deletado_em",null).order("ano",{ascending:!1});if(s)throw new ee(s.message,s.code);return[...new Set((t??[]).map(i=>i.ano))]}};({...Ne("atas",{ordem:[{coluna:"criado_em",ascendente:!1}]})});Ne("leis_municipais",{ordem:[{coluna:"ano",ascendente:!1},{coluna:"numero",ascendente:!1}]});Ne("codigos_municipais",{ordem:[{coluna:"ordem",ascendente:!0}]});Ne("comissoes",{ordem:[{coluna:"nome",ascendente:!0}]});({...Ne("materias_legislativas",{select:"*, tipo:tipos_materia(id, nome, sigla)",ordem:[{coluna:"ano",ascendente:!1},{coluna:"criado_em",ascendente:!1}]})});const Nm=Ne("agenda_eventos",{ordem:[{coluna:"data_inicio",ascendente:!0}]}),rT={...Nm,async publicados(t,s){return Nm.listar({onde:{publicado:!0},intervalo:t||s?{data_inicio:{de:t,ate:s}}:void 0})},async proximos(t=5){const s=new Date().toISOString().slice(0,10);return Nm.listar({onde:{publicado:!0},intervalo:{data_inicio:{de:s}},limite:t})}},iT=Ne("audiencias_publicas",{select:"*, comissao:comissoes(id, nome, sigla)",ordem:[{coluna:"data_hora",ascendente:!1}]}),nT=Ne("consultas_publicas",{ordem:[{coluna:"data_inicio",ascendente:!1}]}),Uy={...nT,async abertas(){const t=new Date().toISOString().slice(0,10),{data:s,error:i}=await X.from("consultas_publicas").select("*").lte("data_inicio",t).gte("data_fim",t).is("deletado_em",null).order("data_fim");if(i)throw new ee(i.message,i.code);return s??[]},async participar(t,s){return Ba("registrar_participacao_consulta",{p_consulta_id:t.consulta_id,p_manifestacao:t.manifestacao,p_nome:t.nome??null,p_email:t.email??null,p_documento:t.documento??null,p_posicionamento:t.posicionamento??null},s)}};Ne("diarios_oficiais",{ordem:[{coluna:"data_publicacao",ascendente:!1}]});function oT(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState("todas"),[u,m]=b.useState("2024");b.useEffect(()=>{async function v(){try{const N=(await iT.listar({onde:{publicada:!0}})).map(k=>{const S=k.data_hora?new Date(k.data_hora):null;return{id:k.id,titulo:k.tema,descricao:k.descricao??"",data:S,hora:S?S.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):"",local:k.local??"",status:k.status,ataUrl:k.ata_url??void 0,videoUrl:k.video_url??void 0,tema:k.tema,comissao:k.comissao?.nome??void 0}});s(N)}catch(j){console.error("Erro ao carregar audiências:",j)}finally{n(!1)}}v()},[]);const x=b.useMemo(()=>{const v=new Set;return t.forEach(j=>{const N=j.data;N&&v.add(String(N.getFullYear()))}),Array.from(v).sort((j,N)=>Number(N)-Number(j))},[t]),p=b.useMemo(()=>t.filter(v=>{const j=l==="todas"||v.status===l;if(u==="todos")return j;const N=v.data,k=!!N&&String(N.getFullYear())===u;return j&&k}),[t,l,u]),g=v=>{const j={encerrada:{icon:De,color:"text-green-600",bg:"bg-green-50",border:"border-green-200"},agendada:{icon:We,color:"text-blue-600",bg:"bg-blue-50",border:"border-blue-200"}};return j[v]||j.agendada};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atos Oficiais"},{label:"Audiências Públicas",path:"/legislativo/audiencias"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(ot,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Audiências Públicas"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Participe e acompanhe as audiências públicas do MunicÃpio"})]})]})]})}),i?e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando audiências..."})]})})}):e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6 mb-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ot,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:"O que são Audiências Públicas?"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"As audiências públicas são instrumentos de participação popular que permitem aos cidadãos debater e opinar sobre temas de interesse da comunidade. A Prefeitura as realiza para discutir o orçamento (PPA, LDO e LOA), o Plano Diretor, os planos setoriais e outros assuntos de interesse do MunicÃpio."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(De,{className:"text-institutional flex-shrink-0",size:16}),e.jsx("span",{className:"text-gray-700",children:"Participação democrática"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(De,{className:"text-institutional flex-shrink-0",size:16}),e.jsx("span",{className:"text-gray-700",children:"Transparência nas decisões"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(De,{className:"text-institutional flex-shrink-0",size:16}),e.jsx("span",{className:"text-gray-700",children:"Debate de propostas"})]})]})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ho,{size:20,className:"text-institutional"}),e.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"Filtros"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Status"}
167),e.jsxs("select",{value:l,onChange:v=>d(v.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-institutional",children:[e.jsx("option",{value:"todas",children:"Todas"}),e.jsx("option",{value:"agendada",children:"Agendadas"}),e.jsx("option",{value:"encerrada",children:"Realizadas"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Ano"}),e.jsxs("select",{value:u,onChange:v=>m(v.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-institutional",children:[e.jsx("option",{value:"todos",children:"Todos"}),x.map(v=>e.jsx("option",{value:v,children:v},v))]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:"Total"}),e.jsx(ot,{className:"text-institutional",size:20})]}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:t.length}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Audiências"})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:"Realizadas"}),e.jsx(De,{className:"text-green-600",size:20})]}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:t.filter(v=>v.status==="encerrada").length}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"ConcluÃdas"})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:"Agendadas"}),e.jsx(Ee,{className:"text-blue-600",size:20})]}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:t.filter(v=>v.status==="agendada").length}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Próximas"})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:"Participantes"}),e.jsx(ot,{className:"text-institutional",size:20})]}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:t.filter(v=>v.status==="encerrada").length}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Total em 2024"})]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:["Audiências (",p.length,")"]}),p.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(ot,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500",children:"Nenhuma audiência encontrada com os filtros selecionados."})]}):e.jsx("div",{className:"space-y-6",children:p.map(v=>{const j=g(v.status);return e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("div",{className:"flex items-start justify-between gap-4 mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:v.titulo}),e.jsxs("div",{className:`flex items-center gap-1 px-3 py-1 ${j.bg} ${j.border} border rounded-full`,children:[e.jsx(j.icon,{size:14,className:j.color}),e.jsx("span",{className:`text-xs font-semibold ${j.color}`,children:eT[v.status]})]})]}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:v.descricao})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(Ee,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:v.data?v.data.toLocaleDateString("pt-BR"):"â"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(mt,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:v.hora})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(xt,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:v.local})]})]}),e.jsx("div",{className:"pt-4 border-t border-gray-200",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-xs bg-institutional/10 text-institutional px-3 py-1 rounded-full font-semibold",children:v.tema}),v.ataUrl&&e.jsxs("a",{href:v.ataUrl,className:"inline-flex items-center gap-1 text-sm text-institutional hover:text-institutional-dark font-semibold",children:[e.jsx(tt,{size:14}),"Ata"]}),v.videoUrl&&e.jsxs("a",{href:v.videoUrl,className:"inline-flex items-center gap-1 text-sm text-institutional hover:text-institutional-dark font-semibold",children:[e.jsx(cr,{size:14}),"VÃdeo"]})]})})]},v.id)})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Como Participar"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(Ee,{size:24,className:"text-institutional"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"1. Acompanhe a Agenda"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Fique atento ao calendário de audiências públicas. As convocações são publicadas com antecedência no site e nas redes sociais da Prefeitura."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(xt,{size:24,className:"text-institutional"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"2. Compareça ao Local"}),e.jsx("p",{className:"text-sm text-gray-700",children:"As audiências ocorrem no local indicado na convocação de cada uma. Chegue com antecedência e traga documentos de identificação."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-4",children:e.jsx(ot,{size:24,className:"text-institutional"})}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"3. Participe e Opine"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Durante a audiência, você poderá fazer perguntas, apresentar sugestões e contribuir para o debate de forma ordeira e respeitosa."})]})]})]})]})})]}),e.jsx(ge,{})]})}function lT(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(new Date);b.useEffect(()=>
167{async function k(){try{const[S,C]=await Promise.all([rT.publicados(),sT.proximas(50)]),T=S.map(E=>{const O=E.data_inicio?new Date(E.data_inicio):null;return{id:E.id,data:O,hora:E.dia_inteiro||!O?"":O.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}),tipo:E.tipo??"evento",titulo:E.titulo,local:E.local??"",descricao:E.descricao??"",status:"agendado"}}),w=new Set(S.map(E=>E.sessao_id).filter(Boolean)),_=C.filter(E=>!w.has(E.id)).map(E=>{const O=E.data_hora?new Date(E.data_hora):null;return{id:E.id,data:O,hora:O?O.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):"",tipo:"sessao",titulo:`Sessão ${E.tipo} nº ${E.numero}/${E.ano}`,local:E.local??"Plenário",descricao:E.observacoes??"",status:"agendado",transmissaoUrl:E.transmissao_url??void 0}});s([...T,..._])}catch(S){console.error("Erro ao carregar agenda:",S)}finally{n(!1)}}k()},[]);const u=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],m=()=>["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],x=()=>{const k=l.getFullYear(),S=l.getMonth(),C=new Date(k,S,1).getDay(),T=new Date(k,S+1,0).getDate(),w=[];for(let _=0;_<C;_++)w.push(null);for(let _=1;_<=T;_++)w.push(_);return w},p=k=>{if(!k)return[];const S=l.getFullYear(),C=String(l.getMonth()+1).padStart(2,"0"),T=String(k).padStart(2,"0"),w=`${S}-${C}-${T}`;return t.filter(_=>{if(!_.data)return!1;const E=_.data;return`${E.getFullYear()}-${String(E.getMonth()+1).padStart(2,"0")}-${String(E.getDate()).padStart(2,"0")}`===w})},g=()=>{d(new Date(l.getFullYear(),l.getMonth()-1))},v=()=>{d(new Date(l.getFullYear(),l.getMonth()+1))},j=t.filter(k=>k.status==="agendado").sort((k,S)=>(k.data?.getTime()??0)-(S.data?.getTime()??0)),N=k=>{const S={"Sessão Ordinária":{cor:"text-institutional",bg:"bg-institutional/10",border:"border-institutional/20"},"Audiência Pública":{cor:"text-institutional",bg:"bg-institutional/10",border:"border-institutional/20"},"Reunião de Comissão":{cor:"text-institutional",bg:"bg-institutional/10",border:"border-institutional/20"},"Sessão Extraordinária":{cor:"text-institutional",bg:"bg-institutional/10",border:"border-institutional/20"}};return S[k]||S["Sessão Ordinária"]};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atos Oficiais"},{label:"Agenda Legislativa",path:"/legislativo/agenda"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Ee,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Agenda"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Acompanhe as audiências, reuniões e eventos da Prefeitura"})]})]})]})}),i?e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando agenda..."})]})})}):e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"mb-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(We,{className:"text-institutional",size:24}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Próximos Eventos"})]}),j.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(Ee,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500",children:"Nenhum evento agendado no momento."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:j.slice(0,4).map(k=>{const S=N(k.tipo);return e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("div",{className:"flex items-start justify-between gap-4 mb-4",children:e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center gap-2 mb-2",children:e.jsx("span",{className:`text-xs font-semibold px-3 py-1 rounded-full ${S.bg} ${S.cor} border ${S.border}`,children:k.tipo})}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:k.titulo}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:k.descricao})]})}),e.jsxs("div",{className:"space-y-2 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(Ee,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:k.data?k.data.toLocaleDateString("pt-BR"):"â"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(mt,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:k.hora})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[e.jsx(xt,{size:16,className:"text-institutional flex-shrink-0"}),e.jsx("span",{children:k.local})]})]}),e.jsx("div",{className:"pt-4 border-t border-gray-200",children:e.jsx("div",{className:"flex items-center gap-3",children:k.transmissaoUrl&&e.jsxs("a",{href:k.transmissaoUrl,className:"inline-flex items-center gap-1 text-sm text-institutional hover:text-institutional-dark font-semibold",children:[e.jsx(cr,{size:14}),"Transmissão"]})})})]},k.id)})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("h2",{className:"text-2xl font-bold text-gray-900",children:[u[l.getMonth()]," ",l.getFullYear()]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:g,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Mês anterior",children:e.jsx(ln,{size:20,className:"text-gray-600"})}),e.jsx("button",{onClick:v,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Próximo mês",children:e.jsx(ss,{size:20,className:"text-gray-600"})})]})]}),e.jsxs("div",{className:"grid grid-cols-7 gap-2",children:[m().map(k=>e.jsx("div",{className:"text-center font-bold text-sm text-gray-600 py-2",children:k},k)),x().map((k,S)=>{const C=k?p(k):[],T=C.length>0;return e.jsx("div",{className:`min-h-[80px] border rounded-lg p-2 ${k?"bg-white hover:bg-gray-50 cursor-pointer":"bg-gray-50 border-gray-100"} ${T?"border-institutional":"border-gray-200"}`,children:k&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`text-sm font-semibold mb-1 ${T?"text-institutional":"text-gray-600"}`,children:k}
167),C.map(w=>e.jsxs("div",{className:"text-xs bg-institutional/10 text-institutional px-1.5 py-0.5 rounded mb-1 truncate",title:w.titulo,children:[w.hora," - ",w.tipo]},w.id))]})},S)})]}),e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-200",children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-3",children:"Legenda"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 bg-institutional/10 border border-institutional rounded"}),e.jsx("span",{className:"text-xs text-gray-600",children:"Sessão Ordinária"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 bg-institutional/10 border border-institutional rounded"}),e.jsx("span",{className:"text-xs text-gray-600",children:"Audiência Pública"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 bg-institutional/10 border border-institutional rounded"}),e.jsx("span",{className:"text-xs text-gray-600",children:"Reunião de Comissão"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-4 h-4 bg-institutional/10 border border-institutional rounded"}),e.jsx("span",{className:"text-xs text-gray-600",children:"Sessão Extraordinária"})]})]})]})]}),e.jsx("div",{className:"mt-8 bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{className:"text-institutional flex-shrink-0 mt-0.5",size:20}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Sobre a Agenda"}),e.jsx("p",{className:"text-sm text-gray-700 mb-2",children:"A agenda legislativa é atualizada regularmente com as datas de sessões ordinárias e extraordinárias, audiências públicas e reuniões de comissões."}),e.jsx("p",{className:"text-sm text-gray-700",children:"As convocações de audiência pública são publicadas com antecedência, na forma da legislação aplicável a cada uma."})]})]})})]})})]}),e.jsx(ge,{})]})}const cT=[{valor:"favoravel",rotulo:"Favorável"},{valor:"contrario",rotulo:"Contrário"},{valor:"parcial",rotulo:"Favorável com ressalvas"}];function dT({consultaId:t,titulo:s,permiteAnonimo:i,aoParticipar:n}){const{token:l,Campo:d,renovar:u,faltando:m}=$a(),[x,p]=b.useState(!1),[g,v]=b.useState(!1),[j,N]=b.useState(!1),[k,S]=b.useState(null),[C,T]=b.useState({nome:"",email:"",documento:"",posicionamento:"",manifestacao:""}),w=(O,$)=>T(z=>({...z,[O]:$}));async function _(O){if(O.preventDefault(),S(null),!C.manifestacao.trim()){S("Escreva a sua contribuição.");return}if(m){S("Confirme que você não é um robô antes de enviar.");return}v(!0);try{await Uy.participar({consulta_id:t,manifestacao:C.manifestacao.trim(),nome:C.nome.trim()||void 0,email:C.email.trim()||void 0,documento:C.documento.trim()||void 0,posicionamento:C.posicionamento||void 0},l),N(!0),n()}catch($){S($ instanceof Error?$.message:"Não foi possÃvel registrar a sua contribuição."),u()}finally{v(!1)}}function E(){p(!1),N(!1),S(null),T({nome:"",email:"",documento:"",posicionamento:"",manifestacao:""}),u()}return x?e.jsx("div",{className:"w-full border-2 border-institutional rounded-lg p-6 bg-white",children:j?e.jsxs("div",{className:"text-center py-4",children:[e.jsx(De,{size:44,className:"text-green-600 mx-auto mb-3"}),e.jsx("h4",{className:"text-lg font-bold text-green-900 mb-1",children:"Contribuição registrada"}),e.jsx("p",{className:"text-sm text-gray-700 max-w-md mx-auto",children:"A sua contribuição entrou nesta consulta e será considerada na análise. Contribuições não são publicadas no site: contêm dados pessoais e são lidas pela equipe da Prefeitura."}),e.jsx("button",{onClick:E,className:"mt-5 px-5 py-2 border border-gray-300 rounded-lg text-sm font-semibold text-gray-700 hover:bg-gray-50",children:"Fechar"})]}):e.jsxs("form",{onSubmit:_,className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-gray-900",children:"Participar da consulta"}),e.jsx("p",{className:"text-sm text-gray-600 mt-0.5",children:s})]}),e.jsx("button",{type:"button",onClick:E,"aria-label":"Fechar formulário",className:"text-gray-400 hover:text-gray-700",children:e.jsx(Fa,{size:20})})]}),k&&e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3 text-sm text-red-800",children:k}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"consulta-nome",className:"block text-sm font-semibold text-gray-700 mb-1",children:["Nome ",!i&&e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"consulta-nome",value:C.nome,onChange:O=>w("nome",O.target.value),required:!i,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"consulta-email",className:"block text-sm font-semibold text-gray-700 mb-1",children:["E-mail ",!i&&e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"consulta-email",type:"email",value:C.email,onChange:O=>w("email",O.target.value),required:!i,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),i&&e.jsx("p",{className:"text-xs text-gray-500",children:"Esta consulta aceita contribuição sem identificação. Deixando nome e e-mail em branco, a sua contribuição entra sem vÃnculo com você â e, por isso, não há como responder pessoalmente."}),e.jsxs("div",{children:[e.jsxs("span",{className:"block text-sm font-semibold text-gray-700 mb-1",children:["Seu posicionamento ",e.jsx("span",{className:"font-normal text-gray-500",children:"(opcional)"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:cT.map(O=>e.jsx("button",{type:"button",onClick:()=>w("posicionamento",C.posicionamento===O.valor?"":O.valor),"aria-pressed":C.posicionamento===O.valor,className:`px-4 py-2 rounded-lg border-2 text-sm font-semibold transition-colors ${C.posicionamento===O.valor?"border-institutional bg-institutional/10 text-institutional":"border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:O.rotulo},O.valor))})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"consulta-manifestacao",className:"block text-sm font-semibold text-gray-700 mb-1",children:["Sua contribuição ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("textarea",{id:"consulta-manifestacao",rows:5,required:!0,value:C.manifestacao,onChange:O=>w("manifestacao",O.target.value),placeholder:"Escreva o que você propõe, o que discorda e por quê.",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsx(d,{}),e.jsxs("div",{className:"flex gap-3 pt-2",children:[e.jsx("button",{type:"submit",disabled:g,className:"flex-1 px-6 py-3 bg-institutional text-white rounded-lg font-bold hover:bg-institutional-dark transition-colors disabled:opacity-50",children:g?"Enviandoâ¦":"Enviar contribuição"}),e.jsx("button",{type:"button",onClick:E,className:"px-6 py-3 border border-gray-300 rounded-lg font-semibold text-gray-700 hover:bg-gray-50",children:"Cancelar"})]})]})}):e.jsxs("button",{onClick:()=>p(!0),className:"flex-1 flex items-center justify-center gap-2 px-6 py-3 bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors",children:[e.jsx(Pa,{size:18}),"Participar da Consulta"]})}function uT(t,s,i){const n=new Date().toISOString().slice(0,10);return t?s&&n<s||i&&n>i?"Em Análise":"Aberta":"Encerrada"}function Av(t){if(!t)return"";const[s,i,n]=t.slice(0,10).split("-");return n&&i&&s?`${n}/${i}/${s}`:""}function hT(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState("Todas"),u=b.useCallback(async()=>{try{const g=(await Uy.listar()).map(v=>({id:v.id,titulo:v.titulo,descricao:v.descricao??"",dataInicio:v.data_inicio,dataFim:v.data_fim,status:uT(v.aberta,v.data_inicio,v.data_fim),totalParticipacoes:v.total_participacoes??0,permiteAnonimo:v.permite_anonimo??!1}));s(g)}catch(p){console.error("Erro ao carregar consultas públicas:",p)}finally{n(!1)}},[]);b.useEffect(()=>{u()},[u]);const m=l==="Todas"?t:t.filter(p=>p.status===l),x=p=>{switch(p){case"Aberta":return"bg-green-100 text-green-800 border-green-200";case"Encerrada":return"bg-gray-100 text-gray-800 border-gray-200";case"Em Análise":return"bg-blue-100 text-blue-800 border-blue-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
167),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Atos Oficiais"},{label:"Consultas Públicas",path:"/legislativo/consultas"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Pa,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Consultas Públicas"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Participe e contribua com sua opinião sobre projetos importantes para o municÃpio"})]})]})]})}),e.jsx("section",{className:"py-8 bg-blue-50 border-b border-blue-200",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(We,{className:"text-institutional flex-shrink-0 mt-1",size:24}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-bold text-gray-900 mb-2",children:"O que são Consultas Públicas?"}),e.jsx("p",{className:"text-gray-700",children:"As consultas públicas são instrumentos de participação popular que permitem à sociedade contribuir com sugestões, opiniões e crÃticas sobre projetos de lei, polÃticas públicas e outras matérias de interesse coletivo antes de sua aprovação final pela Câmara Municipal."})]})]})})}),e.jsx("section",{className:"py-6 bg-white border-b border-gray-200",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("label",{className:"font-semibold text-gray-700",children:"Filtrar por status:"}),e.jsxs("select",{value:l,onChange:p=>d(p.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-institutional",children:[e.jsx("option",{value:"Todas",children:"Todas"}),e.jsx("option",{value:"Aberta",children:"Abertas"}),e.jsx("option",{value:"Encerrada",children:"Encerradas"})]})]})})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[i?e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-12 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando consultas públicas..."})]}):m.length===0?e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-12 text-center",children:[e.jsx(Pa,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Nenhuma consulta pública encontrada com o filtro selecionado."})]}):e.jsx("div",{className:"grid grid-cols-1 gap-6",children:m.map(p=>e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow",children:e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"flex-1",children:e.jsx("div",{className:"flex items-center gap-3 mb-2",children:e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:p.titulo})})}),e.jsx("span",{className:`px-4 py-2 rounded-lg font-bold text-sm border ${x(p.status)}`,children:p.status})]}),e.jsx("p",{className:"text-gray-700 mb-6",children:p.descricao}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Ee,{className:"text-institutional",size:18}),e.jsx("span",{className:"font-bold text-gray-900",children:"PerÃodo"})]}),e.jsxs("p",{className:"text-sm text-gray-700",children:[Av(p.dataInicio)," até ",Av(p.dataFim)]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Pa,{className:"text-institutional",size:18}),e.jsx("span",{className:"font-bold text-gray-900",children:"Participações"})]}),e.jsx("p",{className:"text-2xl font-bold text-institutional",children:p.totalParticipacoes})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(mt,{className:"text-institutional",size:18}),e.jsx("span",{className:"font-bold text-gray-900",children:"Prazo"})]}),e.jsx("p",{className:"text-sm text-gray-700",children:p.status==="Aberta"&&p.dataFim?(()=>{const[g,v,j]=p.dataFim.slice(0,10).split("-").map(Number),N=Date.UTC(g,v-1,j),k=new Date,S=Date.UTC(k.getFullYear(),k.getMonth(),k.getDate());return`${Math.ceil((N-S)/864e5)} dias restantes`})():"Encerrado"})]})]}),e.jsx("div",{className:"flex gap-4",children:p.status==="Aberta"?e.jsx(dT,{consultaId:p.id,titulo:p.titulo,permiteAnonimo:
167p.permiteAnonimo,aoParticipar:u}):e.jsxs("div",{className:"flex-1 flex items-center justify-center gap-2 px-6 py-3 bg-gray-100 text-gray-700 font-semibold rounded-lg",children:[e.jsx(De,{size:18}),p.totalParticipacoes===0?"Encerrada sem contribuições":`Encerrada com ${p.totalParticipacoes} ${p.totalParticipacoes===1?"contribuição":"contribuições"}`]})})]})},p.id))}),e.jsxs("div",{className:"mt-8 bg-institutional/5 border border-institutional/20 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Como Participar?"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-3",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"1"})}),e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Escolha uma Consulta Aberta"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Navegue pelas consultas públicas abertas e escolha aquela que deseja participar"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-3",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"2"})}),e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Leia os Documentos"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Acesse e leia atentamente os documentos disponibilizados sobre o tema"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center mb-3",children:e.jsx("span",{className:"text-2xl font-bold text-institutional",children:"3"})}),e.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Envie sua Contribuição"}),e.jsx("p",{className:"text-sm text-gray-700",children:"Preencha o formulário com suas sugestões, crÃticas ou elogios"})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Outras Formas de Participação"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/legislativo/sugira-lei",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Sugira uma Lei"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Envie sua sugestão de projeto de lei (iniciativa popular)"})]}),e.jsxs("a",{href:"/legislativo/audiencias",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Audiências Públicas"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Participe das audiências públicas presenciais"})]}),e.jsxs("a",{href:"/atendimento/ouvidoria",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Ouvidoria"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Envie elogios, reclamações ou sugestões"})]})]})]})]})})]}),e.jsx(ge,{})]})}const mT=["denuncia","reclamacao","sugestao","elogio"],xT={nome:"",documento:"",email:"",telefone:"",cep:"",logradouro:"",numero:"",complemento:"",bairro:"",categoria:"Saúde",tipo:"denuncia",assunto:"",descricao:"",referencia:"",termos:!1};function fT(){const t=$a(),[s]=fr(),i=s.get("categoria")??s.get("secretaria"),[n,l]=b.useState(xT),[d,u]=b.useState([]),[m,x]=b.useState(!1),[p,g]=b.useState(null),[v,j]=b.useState(null),[N,k]=b.useState(null);b.useEffect(()=>{if(!i)return;const _=bm.categorias.find(E=>E.toLowerCase()===i.toLowerCase());_&&l(E=>({...E,categoria:_}))},[i]);function S(_,E){l(O=>({...O,[_]:E}))}async function C(){const _=n.cep.replace(/\D/g,"");if(_.length===8)try{const O=await(await fetch(`https://viacep.com.br/ws/${_}/json/`)).json();if(O?.erro)return;l($=>({...$,logradouro:O.logradouro||$.logradouro,bairro:O.bairro||$.bairro}))}catch{}}function T(){const _=ts(n.documento,"cpf");k(_),!_&&Ds(n.documento)&&S("documento",Jo(n.documento))}async function w(_){_.preventDefault();const E=ts(n.documento,"cpf");if(E){k(E);return}x(!0),g(null);try{const O=await jd("solicitacoes",d),$=await bm.registrar({nome:n.nome,assunto:n.assunto,descricao:n.descricao,email:n.email||void 0,telefone:n.telefone||void 0,documento:n.documento||void 0,categoria:n.categoria,tipo:n.tipo,endereco:{cep:n.cep||void 0,logradouro:n.logradouro||void 0,numero:n.numero||void 0,complemento:n.complemento||void 0,bairro:n.bairro||void 0,referencia:n.referencia||void 0},anexos:O,captchaToken:t.token});j($),window.scrollTo({top:0,behavior:"smooth"})}catch(O){g(O instanceof ee?O.message:"Não foi possÃvel registrar a solicitação. Tente novamente.")}finally{x(!1),t.renovar()}}return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
167),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Participação Cidadã",path:"/"},{label:"Enviar Solicitação",path:"/participacao/solicitar"}]}),e.jsxs("div",{className:"mt-6 md:mt-8 flex items-center gap-3 md:gap-4",children:[e.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold",children:"Enviar Solicitação"}),e.jsx("p",{className:"text-blue-100 text-sm md:text-base lg:text-lg mt-1 md:mt-2",children:"Relate problemas e sugira melhorias para os serviços públicos"})]})]})]})}),e.jsx("section",{className:"py-8 md:py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsx("div",{className:"max-w-4xl mx-auto",children:v?e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 md:p-10",children:[e.jsx(un,{titulo:"Solicitação registrada",protocolo:v.protocolo,children:e.jsxs("p",{children:["Sua solicitação foi encaminhada para análise dos vereadores e da área de"," ",e.jsx("strong",{children:n.categoria}),"."]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[e.jsx("a",{href:"/participacao/minhas-solicitacoes",className:"block w-full px-6 py-3 text-center bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors",children:"Acompanhar pelo protocolo"}),e.jsx("a",{href:"/",className:"block w-full px-6 py-3 text-center bg-gray-100 hover:bg-gray-200 text-gray-700 font-bold rounded-lg transition-colors",children:"Voltar ao InÃcio"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 md:p-6 mb-6 md:mb-8",children:e.jsxs("div",{className:"flex items-start gap-3 md:gap-4",children:[e.jsx(We,{className:"text-institutional flex-shrink-0 mt-1",size:20}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm md:text-base font-bold text-gray-900 mb-2",children:"Como Funciona?"}),e.jsxs("ol",{className:"text-xs md:text-sm text-gray-700 space-y-1 list-decimal list-inside",children:[e.jsx("li",{children:"Você preenche o formulário e recebe um número de protocolo"}),e.jsx("li",{children:"Os vereadores recebem e analisam sua demanda"}),e.jsx("li",{children:"A solicitação é encaminhada à área responsável"}),e.jsx("li",{children:"Você acompanha o andamento pelo protocolo"})]})]})]})}),e.jsxs("form",{onSubmit:w,className:"bg-white rounded-lg border border-gray-200 p-4 md:p-8",children:[e.jsx(Qt,{mensagem:p}),e.jsx(Wi,{numero:1,titulo:"Tipo de Solicitação",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(Xr,{rotulo:"Ãrea Responsável",obrigatorio:!0,valor:n.categoria,aoMudar:_=>S("categoria",_),opcoes:bm.categorias.map(_=>({valor:_,rotulo:_}))}),e.jsxs("div",{children:[e.jsxs("span",{className:"block text-sm font-semibold text-gray-700 mb-2",children:["Natureza ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2 md:gap-3",children:mT.map(_=>e.jsxs("label",{className:`flex items-center justify-center px-3 md:px-4 py-2 md:py-3 border-2 rounded-lg cursor-pointer transition-all ${n.tipo===_?"border-institutional bg-institutional/5":"border-gray-200 hover:border-gray-300"}`,children:[e.jsx("input",{type:"radio",name:"tipo",value:_,checked:n.tipo===_,onChange:()=>S("tipo",_),className:"sr-only"}),e.jsx("span",{className:"font-semibold text-xs md:text-sm",children:nd[_]})]},_))})]})]})}),e.jsx(Wi,{numero:2,titulo:"Seus Dados",separar:!0,children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 md:gap-4",children:[e.jsx(ke,{className:"md:col-span-2",rotulo:"Nome Completo",obrigatorio:!0,valor:n.nome,aoMudar:_=>S("nome",_),placeholder:"Seu nome completo",icone:e.jsx(Nt,{size:18})}),e.jsx(ke,{rotulo:"CPF",valor:n.documento,aoMudar:_=>{S("documento",_),k(null)},aoSair:T,erro:N,placeholder:"000.000.000-00",maxLength:14}),e.jsx(ke,{rotulo:"Telefone",tipo:"tel",obrigatorio:!0,valor:n.telefone,aoMudar:_=>S("telefone",_),placeholder:"(00) 00000-0000",icone:e.jsx(zt,{size:18})}),e.jsx(ke,{className:"md:col-span-2",rotulo:"E-mail",tipo:"email",obrigatorio:!0,valor:n.email,aoMudar:_=>S("email",_),placeholder:"[email protected]",icone:e.jsx(Ze,{size:18})})]})}),e.jsx(Wi,{numero:3,titulo:"Endereço da Ocorrência",separar:!0,children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 md:gap-4",children:[e.jsx(ke,{rotulo:"CEP",valor:n.cep,aoMudar:_=>S("cep",_),aoSair:C,placeholder:"00000-000",maxLength:9,ajuda:"Preenche o endereço automaticamente."}),e.jsx(ke,{className:"md:col-span-2",rotulo:"Logradouro",valor:n.logradouro,aoMudar:_=>S("logradouro",_),placeholder:"Rua, Avenida..."}),e.jsx(ke,{rotulo:"Número",valor:n.numero,aoMudar:_=>S("numero",_),placeholder:"123"}),e.jsx(ke,{rotulo:"Complemento",valor:n.complemento,aoMudar:_=>S("complemento",_),placeholder:"Apto, Bloco..."}),e.jsx(ke,{rotulo:"Bairro",obrigatorio:!0,valor:n.bairro,aoMudar:_=>S("bairro",_),placeholder:"Nome do bairro"}),e.jsx(ke,{className:"md:col-span-3",rotulo:"Ponto de Referência",valor:n.referencia,aoMudar:_=>S("referencia",_),placeholder:"Ex: em frente à Escola Municipal, próximo à praça",icone:e.jsx(xt,{size:18}),ajuda:"Ajuda a equipe a localizar o ponto exato."})]})}),e.jsx(Wi,{numero:4,titulo:"Detalhes da Solicitação",separar:!0,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(ke,{rotulo:"TÃtulo",obrigatorio:!0,valor:n.assunto,aoMudar:_=>S("assunto",_),placeholder:"Resumo do problema ou sugestão"}),e.jsx(ai,{rotulo:"Descrição Detalhada",obrigatorio:!0,valor:n.descricao,aoMudar:_=>S("descricao",_),placeholder:"Descreva com o máximo de detalhes: o que acontece, desde quando, como afeta você e a comunidade...",ajuda:"Quanto mais detalhes, mais rápido o encaminhamento."})]})}),e.jsx(Wi,{numero:5,titulo:"Fotos e Documentos",separar:!0,children:e.jsx(Nd,{arquivos:d,aoMudar:u,rotulo:"Anexos (opcional)",ajuda:"Uma foto costuma resolver mais rápido do que qualquer descrição."})}),e.jsx(Wi,{numero:6,titulo:"Confirmação",children:e.jsx(Ly,{destaque:!0,marcado:n.termos,aoMudar:_=>S("termos",_),rotulo:"Declaro que as informações são verdadeiras",de
167scricao:"Estou ciente de que a solicitação será analisada pelos vereadores e encaminhada à área responsável, e autorizo o uso das informações e imagens para acompanhamento e divulgação das ações."})}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-3 md:gap-4 mt-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:m,desabilitado:!n.termos,rotulo:"Enviar Solicitação",icone:e.jsx(O2,{size:20})})]}),e.jsx("a",{href:"/",className:"px-6 md:px-8 py-3 text-sm md:text-base text-center bg-gray-100 hover:bg-gray-200 text-gray-700 font-bold rounded-lg transition-colors",children:"Cancelar"})]})]})]})})})})]}),e.jsx(ge,{})]})}function Wi({numero:t,titulo:s,separar:i=!1,children:n}){return e.jsxs("div",{className:`mb-6 md:mb-8 ${i?"pb-6 md:pb-8 border-b border-gray-200":""}`,children:[e.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-gray-900 mb-4 md:mb-6 flex items-center gap-2 md:gap-3",children:[e.jsx("span",{className:"w-7 h-7 md:w-8 md:h-8 bg-institutional text-white rounded-full flex items-center justify-center text-xs md:text-sm font-bold",children:t}),s]}),n]})}function pT(){const[t,s]=b.useState(""),[i,n]=b.useState(""),[l,d]=b.useState(!1),[u,m]=b.useState(null),[x,p]=b.useState(null),[g,v]=b.useState(!1);async function j(N){if(N.preventDefault(),!t.trim()){m("Informe o número do protocolo.");return}d(!0),m(null),p(null);try{const k=await S5(t,i);p(k),v(!0)}catch(k){m(k instanceof ee?k.message:"Não foi possÃvel consultar. Tente novamente.")}finally{d(!1)}}return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Participação Cidadã",path:"/"},{label:"Acompanhar Protocolo",path:"/participacao/minhas-solicitacoes"}]}),e.jsxs("div",{className:"mt-6 md:mt-8 flex items-center gap-3 md:gap-4",children:[e.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold",children:"Acompanhar Protocolo"}),e.jsx("p",{className:"text-blue-100 text-sm md:text-base lg:text-lg mt-1 md:mt-2",children:"Consulte a situação da sua manifestação, pedido ou solicitação"})]})]})]})}),e.jsx("section",{className:"py-8 md:py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8 mb-6",children:[e.jsxs("h2",{className:"text-xl md:text-2xl font-bold text-gray-900 mb-2 flex items-center gap-3",children:[e.jsx(yt,{className:"text-institutional",size:22}),"Consultar por protocolo"]}),e.jsxs("p",{className:"text-sm text-gray-600 mb-6",children:["Use o número recebido no registro. Vale para Ouvidoria, e-SIC, Solicitações e documentos protocolados. ",e.jsx("strong",{children:"Não precisa digitar os zeros da frente:"})," ","230/2026 encontra o mesmo que 000230/2026. Se você se identificou ao registrar, informe também o CPF/CNPJ ou o e-mail que usou â é o que impede que outra pessoa acompanhe a sua manifestação."]}),e.jsx(Qt,{mensagem:u}),e.jsxs("form",{onSubmit:j,className:"flex flex-col sm:flex-row gap-3",children:[e.jsx("input",{type:"text",value:t,onChange:N=>s(N.target.value),"aria-label":"Número do protocolo",placeholder:"Ex: 230/2026 ou OUV 45/2026",className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent uppercase"}),e.jsx("input",{type:"text",value:i,onChange:N=>n(N.target.value),"aria-label":"CPF, CNPJ ou e-mail informado no registro",placeholder:"CPF/CNPJ ou e-mail (se você se identificou)",className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}),e.jsx("button",{type:"submit",disabled:l,className:"px-6 py-3 bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-50",children:l?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white"}),"Consultando..."]}):e.jsxs(e.Fragment,{children:[e.jsx(yt,{size:18}),"Consultar"]})})]})]}),x&&e.jsx(gT,{situacao:x}),g&&!x&&!u&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 text-center",children:[e.jsx(We,{size:40,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Nenhum registro com este protocolo"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Confira o número â ele foi exibid
167o na tela de confirmação do registro. Se você se identificou ao registrar, confira também o CPF/CNPJ ou o e-mail: sem ele, a consulta não devolve nada, mesmo com o protocolo certo."})]}),e.jsx("div",{className:"mt-6 bg-blue-50 border border-blue-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Rs,{size:20,className:"text-institutional flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"text-sm text-gray-700 space-y-2",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:"Por que pedimos o protocolo â e, à s vezes, mais um dado"}),e.jsxs("p",{children:["Manifestação contém dado pessoal e, muitas vezes, denúncia. A consulta devolve apenas ",e.jsx("strong",{children:"situação, datas e prazo"})," â nunca o conteúdo, o autor ou os dados de quem registrou. à o que impede que qualquer pessoa leia a manifestação de outra."]}),e.jsxs("p",{children:["O número do protocolo é sequencial. Se ele sozinho abrisse qualquer registro, bastaria tentar os números em ordem para saber o que cada pessoa manifestou â por isso, quem se ",e.jsx("strong",{children:"identificou"})," ao registrar confirma o CPF/CNPJ ou o e-mail. A manifestação ",e.jsx("strong",{children:"anônima"})," se consulta só pelo protocolo: é a única chave que existe, e foi o preço escolhido pelo anonimato."]}),e.jsx("p",{children:"Para receber o inteiro teor da resposta, use o e-mail informado no registro ou procure a Ouvidoria com documento de identificação."})]})]})}),e.jsxs("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[e.jsx("a",{href:"/participacao/solicitar",className:"px-4 py-3 text-center text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700 transition-colors",children:"Nova solicitação"}),e.jsx("a",{href:"/atendimento/ouvidoria",className:"px-4 py-3 text-center text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700 transition-colors",children:"Ouvidoria"}),e.jsx("a",{href:"/atendimento/esic",className:"px-4 py-3 text-center text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700 transition-colors",children:"e-SIC"})]})]})})})]}),e.jsx(ge,{})]})}function gT({situacao:t}){const s=!!t.respondida_em,i=!s&&t.prazo!==null&&t.prazo<Ry();return e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide",children:t.canal}),e.jsx("p",{className:"text-xl font-bold text-gray-900 tracking-wide",children:t.protocolo})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold border ${kx(t.status)}`,children:Ex(t.status)})]}),e.jsxs("div",{className:"p-6 space-y-4",children:[t.assunto&&e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide mb-1",children:"Assunto"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:t.assunto})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsx(wm,{icone:e.jsx(Ee,{size:18}),rotulo:"Registrado em",valor:Xa(t.registrado_em)}),e.jsx(wm,{icone:e.jsx(mt,{size:18}),rotulo:"Prazo de resposta",valor:Xa(t.prazo),alerta:i}),e.jsx(wm,{icone:e.jsx(De,{size:18}),rotulo:"Respondido em",valor:s?Xa(t.respondida_em):"Aguardando"})]}),i&&e.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4 text-sm text-amber-800",children:[e.jsx("strong",{children:"Prazo excedido."})," Procure a Ouvidoria informando este protocolo. Em pedidos de acesso à informação, o indeferimento ou a falta de resposta admite recurso (Lei 12.527/2011, art. 15)."]})]})]})}function wm({icone:t,rotulo:s,valor:i,alerta:n=!1}){return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:`w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0 ${n?"bg-amber-100 text-amber-700":"bg-institutional/10 text-institutional"}`,children:t}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500",children:s}),e.jsx("p",{className:`font-semibold ${n?"text-amber-700":"text-gray-900"}`,children:i})]})]})}function xr({titulo:t,descricao:s,icone:i,rota:n,largura:l="estreita",children:d}){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
167),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Ãrea do Cidadão",path:"/area-restrita"},{label:t,path:n}]}),e.jsxs("div",{className:"mt-6 md:mt-8 flex items-center gap-3 md:gap-4",children:[e.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:i}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold",children:t}),e.jsx("p",{className:"text-white/90 text-sm md:text-base lg:text-lg mt-1 md:mt-2",children:s})]})]})]})}),e.jsx("section",{className:"py-8 md:py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsx("div",{className:l==="estreita"?"max-w-xl mx-auto":"max-w-4xl mx-auto",children:d})})})]}),e.jsx(ge,{})]})}function Ca({children:t,className:s=""}){return e.jsx("div",{className:`bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8 ${s}`,children:t})}function Tx({children:t}){return e.jsx("div",{role:"status",className:"bg-green-50 border border-green-200 rounded-lg p-4 mb-6 text-sm text-green-800",children:t})}function bT(){const t=Zr(),{entrar:s}=gd(),[i,n]=b.useState(""),[l,d]=b.useState(""),[u,m]=b.useState(!1),[x,p]=b.useState(null),[g,v]=b.useState(!1),[j,N]=b.useState(!1);async function k(C){C.preventDefault(),m(!0),p(null),v(!1);try{await s(i.trim(),l),t("/area-restrita")}catch(T){(T instanceof ee?T.codigo:void 0)==="email_nao_confirmado"&&v(!0),p(T instanceof ee?T.message:"Não foi possÃvel entrar. Tente novamente.")}finally{m(!1)}}async function S(){try{await ca.reenviarConfirmacao(i.trim())}finally{N(!0)}}return e.jsxs(xr,{titulo:"Ãrea do Cidadão",descricao:"Acompanhe em um só lugar tudo o que você registrou na Prefeitura",icone:e.jsx(Rm,{size:28}),rota:"/area-restrita/entrar",children:[e.jsxs(Ca,{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Entrar"}),e.jsx(Qt,{mensagem:x}),g&&!j&&e.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4 mb-6 text-sm text-amber-900",children:[e.jsx("p",{className:"mb-3",children:"Sua senha está certa â falta confirmar o e-mail. O link foi enviado quando você se cadastrou e vale por 24 horas."}),e.jsx("button",{type:"button",onClick:S,className:"font-semibold underline hover:no-underline",children:"Enviar o link de confirmação de novo"})]}),j&&e.jsx(Tx,{children:"Se existir uma conta com esse e-mail aguardando confirmação, o link acabou de ser enviado. Confira também a caixa de spam."}),e.jsxs("form",{onSubmit:k,className:"space-y-5",children:[e.jsx(ke,{rotulo:"E-mail",tipo:"email",valor:i,aoMudar:n,obrigatorio:!0,icone:e.jsx(Ze,{size:16}),placeholder:"[email protected]"}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"senha-cidadao",className:"block text-sm font-semibold text-gray-700 mb-2",children:["Senha ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",children:e.jsx(Za,{size:16})}),e.jsx("input",{id:"senha-cidadao",type:"password",value:l,onChange:C=>d(C.target.value),required:!0,autoComplete:"current-password",className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),e.jsx(Ia,{enviando:u,rotulo:"Entrar",rotuloEnviando:"Entrando...",icone:e.jsx(Rm,{size:18})})]}),e.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-200 space-y-2 text-sm",children:[e.jsx("p",{children:e.jsx(ie,{to:"/area-restrita/recuperar",className:"text-institutional font-semibold hover:underline",children:"Esqueci minha senha"})}),e.jsxs("p",{className:"text-gray-600",children:["Ainda não tem conta?"," ",e.jsx(ie,{to:"/area-restrita/cadastrar",className:"text-institutional font-semibold hover:underline",children:"Criar cadastro"})]})]})]}),e.jsxs("div",{className:"mt-6 bg-primary-50 border border-primary-200 rounded-lg p-5 text-sm text-gray-700 space-y-2",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:"Você não precisa de conta para acompanhar"}),e.jsxs("p",{children:["A consulta pelo número do protocolo continua funcionando, e continua servindo a quem registrou manifestação ",e.jsx("strong",{children:"anônima"})," â essa, aliás, nunca aparece em conta nenhuma, porque o anonimato foi uma escolha da pessoa e a área restrita não a desfaz."]}),e.jsx("p",{children:e.jsx(ie,{to:"/participacao/minhas-solicitacoes",className:"text-institutional font-semibold hover:underline",children:"Consultar por protocolo"})})]})]})}const Tc=8;function vT(){const t=$a(),[s,i]=b.useState(""),[n,l]=b.useState(""),[d,u]=b.useState(""),[m,x]=b.useState(""),[p,g]=b.useState(""),[v,j]=b.useState(""),[N,k]=b.useState(!1),[S,C]=b.useState(null),[T,w]=b.useState(!1),[_,E]=b.useState(null);function O(){const z=ts(p,"cpf");E(z),!z&&Ds(p)&&g(Jo(p))}async function $(z){z.preventDefault(),C(null);const Q=ts(p,"cpf");if(Q){E(Q);return}if(d.length<Tc){C(`A senha precisa ter pelo menos ${Tc} caracteres.`);return}if(d!==m){C("As duas senhas não são iguais.");return}k(!0);try{await ca.cadastrar({nome:s.trim(),email:n.trim(),senha:d,documento:p.trim()||void 0,telefone:v.trim()||void 0},t.token),w(!0)}catch(K){C(K instanceof ee?K.message:"Não foi possÃvel concluir o cadastro agora."),t.renovar()}finally{k(!1)}}return T?e.jsx(xr,{titulo:"Confirme o seu e-mail",descricao:"Falta um passo para a sua conta ficar pronta",icone:e.jsx(De,{size:28}),rota:"/area-restrita/cadastrar",children:e.jsx(Ca,{children:e.jsxs("div",{className:"text-center",children:[e.jsx(De,{size:48,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Cadastro criado"}),e.jsxs("p",{className:"text-gray-700 mb-4",children:["Enviamos um link de confirmação para ",e.jsx("strong",{children:n.trim()}),". Ele vale por 24 horas."]}),e.jsx("p",{className:"text-sm text-gray-600 mb-6",children:"A confirmação é o que prova que este endereço é seu â e é por ele que as manifestações que você já registrou são reunidas na sua área. Enquanto o e-mail não for confirmado, a conta não mostra nenhuma."}),e.jsx(ie,{to:"/area-restrita/entrar",className:"inline-block px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Ir para a entrada"})]})})}):e.jsxs(xr,{titulo:"Criar cadastro",descricao:"Uma conta para acompanhar tudo o que você registrou na Prefeitura",icone:e.jsx(Dm,{size:28}),rota:"/area-restrita/cadastrar",children:[e.jsxs(Ca,{children:[e.jsx(Qt,{mensagem:S}),e.jsxs("form",{onSubmit:$,className:"space-y-5",children:[e.jsx(ke,{rotulo:"Nome completo",valor:s,aoMudar:i,obrigatorio:!0,icone:e.jsx(Nt,{size:16}),maxLength:120}),e.jsx(ke,{rotulo:"E-mail",tipo:"email",valor:n,aoMudar:l,obrigatorio:!0,icone:e.jsx(Ze,{size:16}),ajuda:"à para cá que vai o link de confirmação â e é este endereço que reúne as suas manifestações."}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"senha-nova",className:"block text-sm font-semibold text-gray-700 mb-2",children:["Senha ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"senha-nova",type:"password",value:d,onChange:z=>u(z.target.value),required:!0,autoComplete:"new-password",minLength:Tc,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}),e.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Pelo menos ",Tc," caracteres."]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"senha-confirma",className:"block text-sm font-semibold text-gray-700 mb-2",children:["Repita a senha ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"senha-confirma",type:"password",value:m,onChange:z=>x(z.target.value),required:!0,autoComplete:"new-password",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsx(ke,{rotulo:"CPF (opcional)",valor:p,aoMudar:z=>{g(z),E(null)},aoSair:O,erro:_,maxLength:14,placeholder:"000.000.000-00",ajuda:"Só para identificar você no cadastro da Prefeitura. Não é ele que reúne as manifestações."}),e.jsx(ke,{rotulo:"Telefone (opcional)",tipo:"tel",valor:v,aoMudar:j,maxLength:20,icone:e.jsx(zt,{size:16})})]}),e.jsx(t.Campo,{}),e.jsx(Ia,{enviando:N,rotulo:"Criar cadastro",rotuloEnviando:"Criando...",desabilitado:t.faltando,icone:e.jsx(Dm,{size:18})})]}),e.jsxs("p",{className:"mt-6 pt-6 border-t border-gray-200 text-sm text-gray-600",children:["Já tem conta?"," ",e.jsx(ie,{to:"/area-restrita/entrar",className:"text-institutional font-semibold hover:underline",children:"Entrar"})]})]}),e.jsxs("div",{className:"mt-6 bg-primary-50 border border-primary-200 rounded-lg p-5 text-sm text-gray-700 space-y-2",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:"O que a conta mostra â e o que não mostra"}),e.jsxs("p",{children:["Depois de confirmar o e-mail, a área reúne as manifestações que você registrou"," ",e.jsx("strong",{children:"com este mesmo endereço"}),": Ouvidoria, e-SIC e solicitações, com a situação, os prazos e as respostas da Prefeitura."]}),e.jsxs("p",{children:["Manifestação ",e.jsx("strong",{children:"anônima"})," não aparece, nem aqui nem em conta nenhuma. Ela continua sendo consultada só pelo número do protocolo, que é a única chave que existe â e foi o preço escolhido pelo anonimato."]})]})]})}function yT(){const[t]=fr(),s=t.get("token")??"",[i,n]=b.useState("conferindo"),[l,d]=b.useState(0),[u,m]=b.useState(""),[x,p]=b.useState(!1);return b.useEffect(()=>{let g=!0;return(async()=>
167{if(!s){g&&n("invalido");return}try{const v=await ca.confirmar(s);if(!g)return;d(v.vinculadas??0),n("ok")}catch{g&&n("invalido")}})(),()=>{g=!1}},[s]),e.jsx(xr,{titulo:"Confirmação de e-mail",descricao:"O último passo do cadastro",icone:e.jsx(Ze,{size:28}),rota:"/area-restrita/confirmar",children:e.jsxs(Ca,{children:[i==="conferindo"&&e.jsxs("div",{className:"text-center py-6",children:[e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional mb-4"}),e.jsx("p",{className:"text-gray-700",children:"Conferindo o link..."})]}),i==="ok"&&e.jsxs("div",{className:"text-center",children:[e.jsx(De,{size:48,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"E-mail confirmado"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Sua conta está pronta."}),e.jsx("p",{className:"text-sm text-gray-600 mb-6",children:l>0?`Encontramos ${l} manifestação(ões) registrada(s) com este e-mail e reunimos tudo na sua área.`:"Ainda não há manifestações registradas com este e-mail. As próximas aparecerão aqui automaticamente."}),e.jsx(ie,{to:"/area-restrita/entrar",className:"inline-block px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Entrar na minha área"})]}),i==="invalido"&&e.jsxs("div",{className:"text-center",children:[e.jsx(We,{size:48,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Este link não vale mais"}),e.jsx("p",{className:"text-sm text-gray-600 mb-6",children:"Ou ele já foi usado, ou passou das 24 horas. Informe o seu e-mail que enviamos outro."}),x?e.jsx("p",{className:"text-sm text-green-800 bg-green-50 border border-green-200 rounded-lg p-4",children:"Se existir uma conta com esse e-mail aguardando confirmação, o link acabou de ser enviado."}):e.jsxs("form",{className:"flex flex-col sm:flex-row gap-3",onSubmit:async g=>{g.preventDefault();try{await ca.reenviarConfirmacao(u.trim())}finally{p(!0)}},children:[e.jsx("input",{type:"email",required:!0,value:u,onChange:g=>m(g.target.value),"aria-label":"Seu e-mail",placeholder:"[email protected]",className:"flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}),e.jsx("button",{type:"submit",className:"px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Enviar novo link"})]})]})]})})}function jT(){const[t,s]=b.useState(""),[i,n]=b.useState(!1),[l,d]=b.useState(null),[u,m]=b.useState(!1);async function x(p){p.preventDefault(),n(!0),d(null);try{await ca.recuperarSenha(t.trim()),m(!0)}catch(g){d(g instanceof ee?g.message:"Não foi possÃvel pedir agora.")}finally{n(!1)}}return e.jsx(xr,{titulo:"Esqueci minha senha",descricao:"Enviamos um link para você escolher outra",icone:e.jsx(Hc,{size:28}),rota:"/area-restrita/recuperar",children:e.jsx(Ca,{children:u?e.jsxs(e.Fragment,{children:[e.jsx(Tx,{children:"Se existir uma conta com esse e-mail, o link acabou de ser enviado. Ele vale por uma hora e só pode ser usado uma vez. Confira também a caixa de spam."}),e.jsx(ie,{to:"/area-restrita/entrar",className:"text-institutional font-semibold hover:underline text-sm",children:"Voltar para a entrada"})]}):e.jsxs(e.Fragment,{children:[e.jsx(Qt,{mensagem:l}),e.jsxs("form",{onSubmit:x,className:"space-y-5",children:[e.jsx(ke,{rotulo:"E-mail do cadastro",tipo:"email",valor:t,aoMudar:s,obrigatorio:!0,icone:e.jsx(Ze,{size:16}),placeholder:"[email protected]"}),e.jsx(Ia,{enviando:i,rotulo:"Enviar link",rotuloEnviando:"Enviando...",icone:e.jsx(Hc,{size:18})})]}),e.jsxs("p",{className:"mt-6 pt-6 border-t border-gray-200 text-sm text-gray-600",children:["Lembrou?"," ",e.jsx(ie,{to:"/area-restrita/entrar",className:"text-institutional font-semibold hover:underline",children:"Entrar"})]})]})})})}const Lc=8;function NT(){const[t]=fr(),s=Zr(),i=t.get("token")??"",[n,l]=b.useState("conferindo"),[d,u]=b.useState(null),[m,x]=b.useState(""),[p,g]=b.useState(""),[v,j]=b.useState(!1),[N,k]=b.useState(null);b.useEffect(()=>{let C=!0;return(async()=>
167{if(!i){C&&l("invalido");return}try{const T=await ca.conferirLinkDeSenha(i);if(!C)return;u(T.nome??null),l(T.valido?"valido":"invalido")}catch{C&&l("invalido")}})(),()=>{C=!1}},[i]);async function S(C){if(C.preventDefault(),k(null),m.length<Lc){k(`A senha precisa ter pelo menos ${Lc} caracteres.`);return}if(m!==p){k("As duas senhas não são iguais.");return}j(!0);try{await ca.redefinirSenha(i,m),l("pronto"),setTimeout(()=>s("/area-restrita/entrar"),2500)}catch(T){k(T instanceof ee?T.message:"Não foi possÃvel trocar a senha agora.")}finally{j(!1)}}return e.jsx(xr,{titulo:"Escolher nova senha",descricao:"Digite a senha que passará a valer na sua conta",icone:e.jsx(Za,{size:28}),rota:"/area-restrita/nova-senha",children:e.jsxs(Ca,{children:[n==="conferindo"&&e.jsxs("div",{className:"text-center py-6",children:[e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional mb-4"}),e.jsx("p",{className:"text-gray-700",children:"Conferindo o link..."})]}),n==="invalido"&&e.jsxs("div",{className:"text-center",children:[e.jsx(We,{size:48,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Este link não vale mais"}),e.jsx("p",{className:"text-sm text-gray-600 mb-6",children:"Ou ele já foi usado, ou passou de uma hora. Peça outro na tela de recuperação."}),e.jsx(ie,{to:"/area-restrita/recuperar",className:"inline-block px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Pedir novo link"})]}),n==="pronto"&&e.jsxs("div",{className:"text-center",children:[e.jsx(De,{size:48,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-3",children:"Senha trocada"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Levando você para a tela de entrada..."})]}),n==="valido"&&e.jsxs(e.Fragment,{children:[d&&e.jsxs("p",{className:"text-sm text-gray-600 mb-6",children:["Conta de ",e.jsx("strong",{children:d}),"."]}),e.jsx(Qt,{mensagem:N}),e.jsxs("form",{onSubmit:S,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"s1",className:"block text-sm font-semibold text-gray-700 mb-2",children:["Nova senha ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"s1",type:"password",value:m,onChange:C=>x(C.target.value),required:!0,minLength:Lc,autoComplete:"new-password",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}),e.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Pelo menos ",Lc," caracteres."]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"s2",className:"block text-sm font-semibold text-gray-700 mb-2",children:["Repita a nova senha ",e.jsx("span",{className:"text-red-600",children:"*"})]}),e.jsx("input",{id:"s2",type:"password",value:p,onChange:C=>g(C.target.value),required:!0,autoComplete:"new-password",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsx(Ia,{enviando:v,rotulo:"Trocar senha",rotuloEnviando:"Trocando...",icone:e.jsx(Za,{size:18})})]})]})]})})}function wT(){const{conta:t,carregando:s,sair:i}=gd(),n=Zr(),[l,d]=b.useState([]),[u,m]=b.useState(!0),[x,p]=b.useState(null),[g,v]=b.useState(null),[j,N]=b.useState("manifestacoes"),k=b.useCallback(async()=>{m(!0),p(null);try{d(await ca.minhasManifestacoes())}catch(C){p(C instanceof ee?C.message:"Não foi possÃvel carregar agora.")}finally{m(!1)}},[]);b.useEffect(()=>{if(!s){if(!t){n("/area-restrita/entrar",{replace:!0});return}k()}},[t,s,k,n]);async function S(C){p(null);try{v(await ca.manifestacao(C.canal,C.id))}catch(T){p(T instanceof ee?T.message:"Não foi possÃvel abrir agora.")}}return s||!t?e.jsx(xr,{titulo:"Ãrea do Cidadão",descricao:"Carregando...",icone:e.jsx(Nt,{size:28}),rota:"/area-restrita",children:e.jsx(Ca,{children:e.jsx("div",{className:"text-center py-6",children:e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional"})})})}):e.jsxs(xr,{titulo:`Olá, ${t.nome.trim().split(/\s+/)[0]}`,descricao:"Tudo o que você registrou na Prefeitura, reunido",icone:e.jsx(Nt,{size:28}),rota:"/area-restrita",largura:"larga",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"button",onClick:()=>{N("manifestacoes"),v(null)},className:`px-4 py-2 rounded-lg text-sm font-semibold border ${j==="manifestacoes"?"bg-institutional text-white border-institutional":"bg-white text-gray-700 border-gray-200 hover:border-institutional"}`,children:"Minhas manifestações"}),e.jsx("button",{type:"button",onClick:()=>N("cadastro"),className:`px-4 py-2 rounded-lg text-sm font-semibold border ${j==="cadastro"?"bg-institutional text-white border-institutional":"bg-white text-gray-700 border-gray-200 hover:border-institutional"}`,children:"Meu cadastro"})]}),e.jsxs("button",{type:"button",onClick:async()=>{await i(),n("/")},className:"flex items-center gap-2 px-4 py-2 text-sm font-semibold text-gray-700 bg-white border border-gray-200 rounded-lg hover:border-red-300 hover:text-red-700",children:[e.jsx(v2,{size:16})," Sair"]})]}),e.jsx(Qt,{mensagem:x}),j==="cadastro"&&e.jsx(kT,{}),j==="manifestacoes"&&g&&e.jsx(ST,{manifestacao:g,aoVoltar:()=>v(null)}),j==="manifestacoes"&&!g&&e.jsxs(e.Fragment,{children:[u&&e.jsx(Ca,{children:e.jsx("div",{className:"text-center py-6",children:e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional"})})}),!u&&l.length===0&&e.jsx(Ca,{children:e.jsxs("div",{className:"text-center py-4",children:[e.jsx(Qr,{size:40,className:"text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Nada registrado com este e-mail ainda"}),e.jsxs("p",{className:"text-sm text-gray-600 mb-6 max-w-lg mx-auto",children:["A área reúne o que foi registrado com ",e.jsx("strong",{children:t.email}),". Se você usou outro endereço, aquelas manifestações continuam sendo consultadas pelo número do protocolo. Manifestação anônima nunca aparece aqui."]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[e.jsx(ie,{to:"/atendimento/ouvidoria",className:"px-4 py-2 text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700",children:"Ouvidoria"}),e.jsx(ie,{to:"/atendimento/esic",className:"px-4 py-2 text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700",children:"e-SIC"}),e.jsx(ie,{to:"/participacao/solicitar",className:"px-4 py-2 text-sm bg-white border border-gray-200 hover:border-institutional rounded-lg font-semibold text-gray-700",children:"Nova solicitação"})]})]})}),!u&&l.length>0&&e.jsx("div",{className:"space-y-3",children:l.map(C=>e.jsx(_T,{item:C,aoAbrir:()=>S(C)},`${C.canal}-${C.id}`))})]})]})}function Fy(t){return!t.respondida_em&&t.prazo!==null&&t.prazo<Ry()}function _T({item:t,aoAbrir:s}){const i=Fy(t);return e.jsx("button",{type:"button",onClick:s,className:"w-full text-left bg-white rounded-lg shadow-sm border border-gray-200 hover:border-institutional transition-colors p-5",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide",children:t.canal}),e.jsx("p",{className:"font-bold text-gray-900 tracking-wide",children:t.protocolo??"â"}),e.jsx("p",{className:"text-sm text-gray-700 mt-1 truncate",children:t.assunto}),e.jsxs("div",{className:"flex flex-wrap gap-4 mt-3 text-xs text-gray-600",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ee,{size:13})," ",Xa(t.registrado_em)]}),e.jsxs("span",{className:`flex items-center gap-1 ${i?"text-amber-700 font-semibold":""}`,children:[e.jsx(mt,{size:13})," Prazo: ",Xa(t.prorrogado_ate??t.prazo),t.prorrogado&&" (prorrogado)"]}),t.respondida_em&&e.jsxs("span",{className:"flex items-center gap-1 text-green-700",children:[e.jsx(De,{size:13})," Respondida em ",Xa(t.respondida_em)]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold border ${kx(t.status)}`,children:Ex(t.status)}),e.jsx(ss,{className:"text-gray-400"})]})]})})}function ST({manifestacao:t,aoVoltar:s}){const i=Fy(t);return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("button",{type:"button",onClick:s,className:"flex items-center gap-2 text-sm font-semibold text-institutional hover:underline",children:[e.jsx(wo,{size:16})," Voltar para a lista"]}),e.jsxs(Ca,{children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-4 border-b border-gray-200",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide",children:t.canal}),e.jsx("p",{className:"text-xl font-bold text-gray-900 tracking-wide",children:t.protocolo??"â"})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold border ${kx(t.status)}`,children:Ex(t.status)})]}),e.jsxs("div",{className:"pt-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide mb-1",children:"Assu
167nto"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:t.assunto})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500 uppercase tracking-wide mb-1",children:"O que você escreveu"}),e.jsx("p",{className:"text-gray-700 whitespace-pre-wrap",children:t.teor})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2",children:[e.jsx(_m,{icone:e.jsx(Ee,{size:18}),rotulo:"Registrado em",valor:Xa(t.registrado_em)}),e.jsx(_m,{icone:e.jsx(mt,{size:18}),rotulo:t.prorrogado?"Prazo prorrogado":"Prazo de resposta",valor:Xa(t.prorrogado_ate??t.prazo),alerta:i}),e.jsx(_m,{icone:e.jsx(De,{size:18}),rotulo:"Respondido em",valor:t.respondida_em?Xa(t.respondida_em):"Aguardando"})]}),i&&e.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4 text-sm text-amber-800",children:[e.jsx("strong",{children:"Prazo excedido."})," Procure a Ouvidoria informando este protocolo. Em pedidos de acesso à informação, o indeferimento ou a falta de resposta admite recurso (Lei 12.527/2011, art. 15)."]})]})]}),e.jsxs(Ca,{children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-900 mb-4 flex items-center gap-2",children:[e.jsx(he,{size:18,className:"text-institutional"}),"Respostas da Prefeitura"]}),t.respostas.length===0?e.jsx("p",{className:"text-sm text-gray-600",children:"Ainda não há resposta. Quando houver, ela aparece aqui e também é enviada para o seu e-mail."}):e.jsx("div",{className:"space-y-4",children:t.respostas.map((n,l)=>e.jsxs("div",{className:"border-l-4 border-institutional pl-4 py-1",children:[e.jsxs("p",{className:"text-xs text-gray-500 mb-1",children:[Xa(n.em),n.instancia&&n.instancia>1&&` â ${n.instancia}ª instância`,n.recurso&&" (resposta a recurso)"]}),e.jsx("p",{className:"text-gray-800 whitespace-pre-wrap",children:n.texto}),n.deferido===!1&&e.jsxs("p",{className:"text-sm text-red-700 mt-2",children:[e.jsx("strong",{children:"Pedido indeferido."}),n.fundamento?` Fundamento: ${n.fundamento}`:""]}),n.deferido===!0&&e.jsx("p",{className:"text-sm text-green-700 mt-2",children:e.jsx("strong",{children:"Pedido deferido."})})]},l))})]})]})}function _m({icone:t,rotulo:s,valor:i,alerta:n=!1}){return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:`w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0 ${n?"bg-amber-100 text-amber-700":"bg-institutional/10 text-institutional"}`,children:t}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-500",children:s}),e.jsx("p",{className:`font-semibold ${n?"text-amber-700":"text-gray-900"}`,children:i})]})]})}function kT(){const{conta:t,recarregar:s}=gd(),[i,n]=b.useState(t?.nome??""),[l,d]=b.useState(t?.telefone??""),[u,m]=b.useState(t?.documento??""),[x,p]=b.useState(!1),[g,v]=b.useState(null),[j,N]=b.useState(!1);async function k(S){S.preventDefault(),p(!0),v(null),N(!1);try{await ca.atualizarCadastro({nome:i,telefone:l,documento:u}),await s(),N(!0)}catch(C){v(C instanceof ee?C.message:"Não foi possÃvel salvar agora.")}finally{p(!1)}}return e.jsxs(Ca,{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-6",children:"Meu cadastro"}),j&&e.jsx(Tx,{children:"Cadastro atualizado."}),e.jsx(Qt,{mensagem:g}),e.jsxs("form",{onSubmit:k,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"c-nome",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Nome completo"}),e.jsx("input",{id:"c-nome",value:i,onChange:S=>n(S.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"c-doc",className:"block text-sm font-semibold text-gray-700 mb-2",children:"CPF"}),e.jsx("input",{id:"c-doc",value:u,onChange:S=>m(S.target.value),maxLength:14,placeholder:"000.000.000-00",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"c-tel",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Telefone"}
167),e.jsx("input",{id:"c-tel",value:l,onChange:S=>d(S.target.value),maxLength:20,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"E-mail"}),e.jsx("input",{value:t?.email??"",readOnly:!0,disabled:!0,className:"w-full px-4 py-3 border border-gray-200 rounded-lg bg-gray-50 text-gray-600"}),e.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"O e-mail não se altera por aqui: é ele que reúne as suas manifestações. Para trocar, procure a Ouvidoria."})]}),e.jsxs("button",{type:"submit",disabled:x,className:"px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark disabled:opacity-50 flex items-center gap-2",children:[e.jsx(_2,{size:18}),x?"Salvando...":"Salvar"]})]})]})}const CT=[],ET={leis_municipais:{tipo:"Lei",categoria:"Legislação",url:t=>`/legislativo/lei/${t}`},noticias:{tipo:"NotÃcia",categoria:"Comunicação",url:t=>`/noticia/${t}`},diarios_oficiais:{tipo:"Diário Oficial",categoria:"Atos Oficiais",url:()=>"/legislativo/diario-oficial"},concursos:{tipo:"Concurso",categoria:"Recursos Humanos",url:()=>"/transparencia/recursos-humanos/concursos"},arquivos:{tipo:"Documento",categoria:"Transparência",url:()=>"/transparencia"},secretarias:{tipo:"Secretaria",categoria:"A Prefeitura",url:()=>"/institucional/organograma"},telefones:{tipo:"Telefone",categoria:"Atendimento",url:()=>"/institucional/telefones-uteis"},licitacoes:{tipo:"Licitação",categoria:"Transparência",url:t=>`/transparencia/licitacao/${t}`},contratos:{tipo:"Contrato",categoria:"Transparência",url:()=>"/transparencia/contratos"},servidores:{tipo:"Servidor",categoria:"Transparência",url:()=>"/transparencia/servidores"},faq:{tipo:"Perguntas Frequentes",categoria:"Atendimento",url:()=>"/atendimento/faq"}};function qc(t){return t.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"")}function AT(){const t=new Set,s=[];for(const i of Bc)for(const n of i.columns)for(const l of n.items)t.has(l.path)||(t.add(l.path),s.push({url:l.path,titulo:l.label,categoria:i.title,conteudo:`${n.title} · ${i.title}`,palavrasChave:[n.title,i.title]}));return[...s,...CT]}function TT(t){const s=qc(t);if(s.length<=4)return s;const i=s.replace(/(coes|cao|soes|sao|oes|aes|ais|eis|ao|is|es|s)$/u,"");return i.length>=4?i:s}function LT(t){const s=qc(t).split(/[^a-z0-9]+/).filter(n=>n.length>=2&&!["de","da","do","das","dos","e","a","o"].includes(n)).map(TT);if(!s.length)return[];const i=(n,l)=>` ${n.replace(/[^a-z0-9]+/g," ")}`.includes(` ${l}`);return AT().map(n=>{const l=qc(n.titulo),d=qc(`${n.palavrasChave.join(" ")} ${n.conteudo}`),u=s.every(g=>i(l,g));if(!s.every(g=>i(l,g)||i(d,g)))return null;const x=u?1:.3,p=/^https?:\/\//.test(n.url);return{id:n.url,origem:"pagina",tipo:p?"Serviço online":"Página",categoria:n.categoria,titulo:n.titulo,descricao:n.conteudo,data:null,url:n.url,relevancia:x}}).filter(n=>n!==null)}async function OT(t,s=40){const i=t.trim();return i.length<2?[]:[...(await pd("busca_global",{p_termo:i,p_limite:s})??[]).map(d=>{const u=ET[d.tabela];return u?{id:d.id,origem:d.tabela,tipo:u.tipo,categoria:u.categoria,titulo:d.titulo??"Sem tÃtulo",descricao:d.descricao??"",data:d.data_referencia,url:d.endereco??u.url(d.id),relevancia:d.relevancia}:null}).filter(d=>d!==null),...LT(i)].sort((d,u)=>u.relevancia-d.relevancia)}const wa="Todos";function RT(){const[t,s]=fr(),i=t.get("q")??"",[n,l]=b.useState(i),[d,u]=b.useState([]),[m,x]=b.useState(!1),[p,g]=b.useState(null),[v,j]=b.useState(!1),[N,k]=b.useState(wa),[S,C]=b.useState(wa),[T,w]=b.useState("relevancia"),_=b.useCallback(async K=>{if(K.trim().length<2){u([]),j(!1);return}x(!0),g(null);try{u(await OT(K)),j(!0)}catch{g("Não foi possÃvel concluir a busca. Tente novamente."),u([])}finally{x(!1)}},[]);b.useEffect(()=>{l(i),k(wa),C(wa),_(i)},[i,_]);function E(K){K.preventDefault(),s(n.trim()?{q:n.trim()}:{})}const O=b.useMemo(()=>[wa,...Array.from(new Set(d.map(K=>K.tipo))).sort()],[d]),$=b.useMemo(()=>[wa,...Array.from(new Set(d.map(K=>K.categoria))).sort()],[d]),z=b.useMemo(()=>{const K=d.filter(we=>(N===wa||we.tipo===N)&&(S===wa||we.categoria===S));return T==="data"?[...K].sort((we,Y)=>(Y.data??"").localeCompare(we.data??"")):K},[d,N,S,T]),Q=N!==wa||S!==wa;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
167),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Serviços",path:"/servicos/mapa-site"},{label:"Busca",path:"/servicos/busca"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(yt,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Busca no Portal"}),e.jsx("p",{className:"text-white/90 text-lg mt-2",children:"Páginas, licitações, Diário Oficial, concursos, notÃcias e mais"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("form",{onSubmit:E,className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-6",children:[e.jsx("label",{htmlFor:"busca-portal",className:"block text-sm font-bold text-gray-900 mb-2",children:"O que você procura?"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(yt,{size:18,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),e.jsx("input",{id:"busca-portal",type:"search",value:n,onChange:K=>l(K.target.value),placeholder:"Ex: coleta de lixo, contrato de manutenção, IPTU...",className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsx("button",{type:"submit",disabled:m,className:"px-6 py-3 bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors disabled:opacity-50",children:m?"Buscando...":"Buscar"})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"A busca ignora acento e plural. Aspas procuram a expressão exata."})]}),p&&e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6 mb-6",role:"alert",children:e.jsx("p",{className:"text-red-700",children:p})}),v&&d.length>0&&e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsxs("span",{className:"flex items-center gap-2 text-sm font-bold text-gray-900",children:[e.jsx(Ho,{size:16,className:"text-institutional"}),"Refinar"]}),e.jsx(Sm,{rotulo:"Tipo",valor:N,opcoes:O,aoMudar:k}),e.jsx(Sm,{rotulo:"Categoria",valor:S,opcoes:$,aoMudar:C}),e.jsx(Sm,{rotulo:"Ordenar por",valor:T==="relevancia"?"Relevância":"Data",opcoes:["Relevância","Data"],aoMudar:K=>w(K==="Data"?"data":"relevancia")}),Q&&e.jsxs("button",{type:"button",onClick:()=>{k(wa),C(wa)},className:"flex items-center gap-1 text-sm text-institutional hover:underline font-semibold",children:[e.jsx(Fa,{size:14}),"Limpar filtros"]})]})}),m?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Buscando..."})]}):v?e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"mb-4 text-sm text-gray-600",children:[e.jsx("span",{className:"font-bold text-institutional",children:z.length})," ",z.length===1?"resultado":"resultados"," para"," ",e.jsxs("span",{className:"font-bold",children:['"',i,'"']})]}),z.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(yt,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Nada encontrado"}),e.jsx("p",{className:"text-gray-600",children:"Tente outras palavras, ou use termos mais gerais."})]}):e.jsx("div",{className:"space-y-4",children:z.map(K=>e.jsx(zT,{resultado:K},`${K.origem}-${K.id}`))})]}):e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(yt,{size:64,className:"text-gray-300 mx-auto mb-6"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"O que você está procurando?"}),e.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"A busca consulta as páginas do site, os serviços online, licitações, o Diário Oficial, concursos, documentos, notÃcias, secretarias e telefones úteis."})]})]})})]}),e.jsx(ge,{})]})}function Sm({rotulo:t,valor:s,opcoes:i,aoMudar:n}){return i.length<=2&&t!=="Ordenar por"?null:e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsxs("span",{className:"text-gray-600",children:[t,":"]}),e.jsx("select",{value:s,onChange:l=>n(l.target.value),className:"px-3 py-1.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional",children:i.map(l=>e.jsx("option",{value:l,children:l},l))})]})}function zT({resultado:t}){const s=t.origem==="pagina";return e.jsxs("article",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:border-institutional transition-colors",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("span",{className:"px-3 py-1 bg-institutional/10 text-institutional text-xs font-bold rounded-full",children:t.tipo}),e.jsx("span",{className:"text-xs text-gray-500",children:t.categoria}),t.data&&e.jsxs("span",{className:"flex items-center gap-1 text-xs text-gray-500",children:[e.jsx(Ee,{size:12}),je(t.data)]})]}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:e.jsx(Tv,{url:t.url,className:"hover:text-institutional transition-colors",children:t.titulo})}),t.descricao&&e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed mb-3",children:t.descricao}),e.jsxs(Tv,{url:t.url,className:"inline-flex items-center gap-1 text-sm text-institutional hover:underline font-semibold",children:[$y(t.url)?t.origem==="pagina"?"Abrir serviço":"Abrir arquivo":s?"Abrir página":"Ver detalhes",e.jsx(Ke,{size:14,"aria-hidden":"true"})]})]})}function $y(t){return/^https?:\/\//.test(t)}function Tv({url:t,className:s,children:i}){return $y(t)?e.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:s,children:[i,e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]}):e.jsx(ie,{to:t,className:s,children:i})}function DT(){const{slug:t=""}=Uo(),s=$a(),[i,n]=b.useState(null),[l,d]=b.useState(!0),[u,m]=b.useState({}),[x,p]=b.useState(""),[g,v]=b.useState(""),[j,N]=b.useState(!1),[k,S]=b.useState(null),[C,T]=b.useState(null);b.useEffect(()=>{let E=!0;return Pt.formulario(t).then(O=>{if(E&&(n(O),O)){const $={};for(const z of Pt.campos(O))z.padrao&&($[z.nome]=z.padrao);Object.keys($).length&&m($)}
167}).catch(()=>{E&&n(null)}).finally(()=>{E&&d(!1)}),()=>{E=!1}},[t]);const w=i?Pt.campos(i):[];async function _(E){E.preventDefault(),S(null);const O=w.find($=>$.obrigatorio&&!(u[$.nome]??"").trim());if(O){S(`Preencha o campo "${O.rotulo}".`);return}N(!0);try{const $=await Pt.responderFormulario(t,u,{nome:x,email:g},s.token);T($?.mensagem??"Recebemos a sua mensagem. Obrigado.")}catch($){S($ instanceof ee?$.message:"Não foi possÃvel enviar agora."),s.renovar()}finally{N(!1)}}return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Serviços",path:"/servicos/busca"},{label:i?.titulo??"Formulário",path:`/formulario/${t}`}]}),e.jsxs("div",{className:"mt-6 md:mt-8 flex items-center gap-3 md:gap-4",children:[e.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl lg:text-4xl font-bold",children:i?.titulo??"Formulário"}),i?.descricao&&e.jsx("p",{className:"text-blue-100 text-sm md:text-base mt-1 md:mt-2",children:i.descricao})]})]})]})}),e.jsx("section",{className:"py-8 md:py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsxs("div",{className:"max-w-2xl mx-auto bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8",children:[l&&e.jsx("p",{className:"text-gray-600",children:"Carregando..."}),!l&&!i&&e.jsxs("div",{className:"text-center py-6",children:[e.jsx(We,{size:40,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:"Este formulário não está disponÃvel"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Ou o endereço está errado, ou a Prefeitura o retirou do ar."})]}),!l&&i&&C&&e.jsxs("div",{className:"text-center py-6",children:[e.jsx(De,{size:44,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:"Enviado"}),e.jsx("p",{className:"text-gray-700",children:C})]}),!l&&i&&!C&&e.jsxs("form",{onSubmit:_,className:"space-y-5",children:[e.jsx(Qt,{mensagem:k}),w.length===0&&e.jsx("p",{className:"text-sm text-gray-600",children:"Este formulário ainda não tem campos."}),w.map(E=>e.jsxs("div",{children:[e.jsxs("label",{htmlFor:`campo-${E.nome}`,className:"block text-sm font-semibold text-gray-700 mb-2",children:[E.rotulo," ",E.obrigatorio&&e.jsx("span",{className:"text-red-600",children:"*"})]}),E.tipo==="area"?e.jsx("textarea",{id:`campo-${E.nome}`,rows:4,required:E.obrigatorio,value:u[E.nome]??"",onChange:O=>m({...u,[E.nome]:O.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"}):E.tipo==="selecao"?e.jsxs("select",{id:`campo-${E.nome}`,required:E.obrigatorio,value:u[E.nome]??"",onChange:O=>m({...u,[E.nome]:O.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent",children:[e.jsx("option",{value:"",children:"Selecione"}),(E.opcoes??[]).filter(Boolean).map(O=>e.jsx("option",{value:O,children:O},O))]}):e.jsx("input",{id:`campo-${E.nome}`,type:E.tipo==="email"?"email":E.tipo==="telefone"?"tel":E.tipo==="data"?"date":"text",required:E.obrigatorio,value:u[E.nome]??"",onChange:O=>m({...u,[E.nome]:O.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]},E.nome)),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 pt-2 border-t border-gray-100",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"f-nome",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Seu nome"}),e.jsx("input",{id:"f-nome",value:x,onChange:E=>p(E.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"f-email",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Seu e-mail"}),e.jsx("input",{id:"f-email",type:"email",value:g,onChange:E=>v(E.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-institutional focus:border-transparent"})]})]}),e.jsx(s.Campo,{}),e.jsx(Ia,{enviando:j,rotulo:"Enviar",desabilitado:s.faltando||w.length===0})]})]})})})]}),e.jsx(ge,{})]})}const Lx={async inscrever(t,s){return Ba("assinante_inscrever",{p_email:t.email,p_nome:t.nome??null,p_proposicao:t.proposicaoId??null,p_newsletter:t.newsletter??!0},s)},async confirmar(t,s){return Ba("assinante_confirmar",{p_token:t},s)}
167,async cancelar(t,s=!1,i){return Ba("assinante_cancelar",{p_chave:t,p_so_proposicoes:s},i)}};async function Iy(t){try{await X.rpc("registrar_acesso_portal",{p_rota:t})}catch{}}const MT=Object.freeze(Object.defineProperty({__proto__:null,assinaturaService:Lx,registrarAcesso:Iy},Symbol.toStringTag,{value:"Module"}));function Hy({titulo:t,icone:s,children:i}){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6 flex items-center gap-3 md:gap-4",children:[e.jsx("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:s}),e.jsx("h1",{className:"text-2xl md:text-3xl font-bold",children:t})]})}),e.jsx("section",{className:"py-8 md:py-12 bg-gray-50",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsx("div",{className:"max-w-xl mx-auto bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8 text-center",children:i})})})]}),e.jsx(ge,{})]})}function PT(){const[t]=fr(),s=t.get("token")??"",[i,n]=b.useState("conferindo");return b.useEffect(()=>{let l=!0;return(async()=>{if(!s){l&&n("invalido");return}try{const d=await Lx.confirmar(s);l&&n(d?.ok?"ok":"invalido")}catch{l&&n("invalido")}})(),()=>{l=!1}},[s]),e.jsxs(Hy,{titulo:"Inscrição",icone:e.jsx(Ze,{size:28}),children:[i==="conferindo"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional mb-4"}),e.jsx("p",{className:"text-gray-700",children:"Confirmando..."})]}),i==="ok"&&e.jsxs(e.Fragment,{children:[e.jsx(De,{size:44,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Inscrição confirmada"}),e.jsx("p",{className:"text-gray-700 mb-6",children:"A partir de agora você recebe os avisos que pediu. Todo e-mail traz um link para sair da lista â não precisa entrar em lugar nenhum para cancelar."}),e.jsx(ie,{to:"/",className:"inline-block px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Ir para o portal"})]}),i==="invalido"&&e.jsxs(e.Fragment,{children:[e.jsx(We,{size:44,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Este link não vale mais"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Ou ele já foi usado, ou passou das 48 horas. Faça a inscrição de novo no rodapé do portal e um link novo será enviado."})]})]})}function BT(){const[t]=fr(),s=t.get("chave")??"",[i,n]=b.useState(s?"perguntando":"invalido");async function l(d){n("saindo");try{const u=await Lx.cancelar(s,d);n(u?.ok?"ok":"invalido")}catch{n("invalido")}}return e.jsxs(Hy,{titulo:"Deixar de receber",icone:e.jsx(n2,{size:28}),children:[i==="perguntando"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-gray-700 mb-6",children:"Você pode sair de tudo, ou apenas parar de acompanhar as matérias e continuar recebendo as notÃcias."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx("button",{type:"button",onClick:()=>l(!1),className:"px-6 py-3 bg-institutional text-white rounded-lg font-semibold hover:bg-institutional-dark",children:"Sair de tudo"}),e.jsx("button",{type:"button",onClick:()=>l(!0),className:"px-6 py-3 border border-gray-300 rounded-lg font-semibold text-gray-700 hover:bg-gray-50",children:"Só parar de acompanhar matérias"})]})]}),i==="saindo"&&e.jsx("span",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-institutional"}),i==="ok"&&e.jsxs(e.Fragment,{children:[e.jsx(De,{size:44,className:"text-green-600 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Pronto"}),e.jsx("p",{className:"text-gray-700",children:"Não enviaremos mais. Se quiser voltar um dia, a inscrição está no rodapé do portal."})]}),i==="invalido"&&e.jsxs(e.Fragment,{children:[e.jsx(We,{size:44,className:"text-amber-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Link inválido"}),e.jsx("p",{className:"text-sm text-gray-600",children:'Use o link "deix
167ar de receber" que vem no rodapé de qualquer e-mail que a Prefeitura lhe enviou.'})]})]})}function qT(){const{nomeCasa:t}=st(),s=[{titulo:"A Prefeitura",icone:ti,links:[{label:"Organograma",path:"/institucional/organograma"},{label:"História do MunicÃpio",path:"/institucional/historia"},{label:"SÃmbolos Municipais",path:"/institucional/simbolos"},{label:"NotÃcias",path:"/noticias"},{label:"Câmara Municipal",path:"/institucional/camara-municipal"},{label:"Contato",path:"/institucional/contato"},{label:"Telefones Ãteis",path:"/institucional/telefones-uteis"},{label:"Links Ãteis",path:"/institucional/links-uteis"},{label:"Localização",path:"/institucional/localizacao"},{label:"Acesso e Atendimento",path:"/institucional/acesso"},{label:"Agenda",path:"/legislativo/agenda"},{label:"Audiências Públicas",path:"/legislativo/audiencias"},{label:"Galeria de Imagens",path:"/institucional/galeria"}]},{titulo:"Serviços",icone:hx,links:[{label:"Carta de Serviços",path:"/transparencia/carta-servicos"},{label:"Solicitar um Serviço",path:"/participacao/solicitar"},{label:"Consultar minha Solicitação",path:"/participacao/minhas-solicitacoes"},{label:"Protocolo Digital",path:"/atendimento/protocolo"},{label:"Verificar Autenticidade de Documento",path:"/verificar"},{label:"Buscar no Portal",path:"/servicos/busca"},{label:"Ãrea do Cidadão",path:"/area-restrita"}]},{titulo:"Transparência",icone:ka,links:[{label:"Portal da Transparência",path:"/transparencia"},{label:"Ãndice de Transparência",path:"/transparencia/indice"},{label:"Dados Abertos",path:"/transparencia/dados-abertos"},{label:"Licitações e Editais",path:"/transparencia/licitacoes"},{label:"Contratação Direta",path:"/transparencia/contratacao-direta"},{label:"Contratos",path:"/transparencia/contratos"},{label:"Convênios",path:"/transparencia/convenios"},{label:"Obras",path:"/transparencia/obras"},{label:"Recursos Humanos",path:"/transparencia/recursos-humanos"},{label:"Relação de Servidores",path:"/transparencia/servidores"},{label:"Padrão Remuneratório",path:"/transparencia/recursos-humanos/padrao-remuneratorio"},{label:"Estagiários",path:"/transparencia/recursos-humanos/estagiarios"},{label:"Terceirizados",path:"/transparencia/recursos-humanos/terceirizados"},{label:"Concursos e Processos Seletivos",path:"/transparencia/recursos-humanos/concursos"},{label:"Atos de Pessoal",path:"/transparencia/atos-pessoal"},{label:"Diárias",path:"/transparencia/diarias"},{label:"Leis Orçamentárias",path:"/transparencia/leis-orcamentarias"},{label:"Balancetes",path:"/transparencia/balancetes"},{label:"Precatórios",path:"/transparencia/precatorios"},{label:"Planejamento e Prestação de Contas",path:"/transparencia/planejamento-prestacao-contas"},{label:"Controle Interno",path:"/transparencia/controle-interno"},{label:"LGPD",path:"/transparencia/lgpd"},{label:"Relatórios SIC / LAI",path:"/transparencia/sic-relatorios"}]},{titulo:"Atos Oficiais",icone:_o,links:[{label:"Diário Oficial Eletrônico",path:"/legislativo/diario-oficial"},{label:"Códigos Municipais",path:"/legislativo/codigos"}]},{titulo:"Atendimento",icone:Pa,links:[{label:"Ouvidoria",path:"/atendimento/ouvidoria"},{label:"e-SIC â Acesso à Informação",path:"/atendimento/esic"},{label:"Fale Conosco",path:"/atendimento/fale-conosco"},{label:"Sugestões",path:"/atendimento/sugestoes"},{label:"Consultas Públicas",path:"/legislativo/consultas"},{label:"Pesquisa de Satisfação",path:"/atendimento/pesquisa-satisfacao"},{label:"Perguntas Frequentes",path:"/atendimento/faq"},{label:"Acessibilidade",path:"/juridico/acessibilidade"},{label:"PolÃtica de Privacidade",path:"/juridico/politica-privacidade"},{label:"Termos de Uso",path:"/juridico/termos-uso"}]}],i=[{label:"Legislação Municipal",url:Mo},{label:"Radar da Transparência",url:"https://radardatransparencia.atricon.org.br"},{label:"Câmara Municipal de Funilândia",url:"https://camarafunilandia.mg.gov.br"},{label:"Webmail institucional",url:"https://webmail.funilandia.mg.gov.br/"}],n=s.reduce((l,d)=>l+d.links.length,0);return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Serviços"}
167,{label:"Mapa do Site"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(_o,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Mapa do Site"}),e.jsxs("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:["Todas as ",n," páginas do portal da ",t,", organizadas por assunto."]})]})]})]})}),e.jsx("div",{className:"bg-gray-50 py-8 md:py-12",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6",children:e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",children:[s.map(l=>{const d=l.icone,u=`secao-${l.titulo.replace(/\s+/g,"-").toLowerCase()}`;return e.jsxs("section",{"aria-labelledby":u,className:"rounded-lg border border-gray-200 bg-white p-5",children:[e.jsxs("h2",{id:u,className:"mb-3 flex items-center gap-2 text-lg font-bold text-institutional",children:[e.jsx(d,{size:18,"aria-hidden":"true"}),l.titulo]}),e.jsx("ul",{className:"space-y-1.5",children:l.links.map(m=>e.jsx("li",{children:e.jsx(ie,{to:m.path,className:`inline-flex min-h-[32px] items-center text-sm text-gray-700 168 hover:text-institutional hover:underline 169 focus-visible:outline focus-visible:outline-2 170 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:m.label})},m.path))})]},l.titulo)}),e.jsxs("section",{"aria-labelledby":"secao-externos",className:"rounded-lg border border-gray-200 bg-white p-5",children:[e.jsxs("h2",{id:"secao-externos",className:"mb-3 flex items-center gap-2 text-lg font-bold text-institutional",children:[e.jsx(Ke,{size:18,"aria-hidden":"true"}),"Sites externos"]}),e.jsx("ul",{className:"space-y-1.5",children:i.map(l=>e.jsx("li",{children:e.jsxs("a",{href:l.url,target:"_blank",rel:"noopener noreferrer","aria-label":`${l.label} (abre em nova aba)`,className:`inline-flex min-h-[32px] items-center gap-1.5 text-sm text-gray-700 171 hover:text-institutional hover:underline 172 focus-visible:outline focus-visible:outline-2 173 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:[l.label,e.jsx(Ke,{size:12,"aria-hidden":"true"})]})},l.url))})]})]})})})]}),e.jsx(ge,{})]})}function ks(t){const s=yy.find(i=>i.id===t);if(!s)throw new Error(`Autosserviço "${t}" não existe em data/autosservicos.ts`);return{titulo:s.titulo,descricao:s.descricao,url:s.url,externo:!0,icone:s.icone}}const _a=(t,s,i,n)=>({titulo:t,descricao:s,url:i,externo:!1,icone:n}),Oc=(t,s,i,n)=>({titulo:t,descricao:s,url:i,externo:!0,icone:n}),Zm=[{chave:"cidadao",titulo:"Cidadão",chamada:"o Cidadão",resumo:"Tributos, certidões, solicitações e atendimento para quem mora em Funilândia.",icone:"FiUser",servicos:[ks("iptu"),ks("certidao-debitos"),ks("itbi"),ks("divida-ativa"),ks("autenticidade"),_a("Solicitar um Serviço","Peça um serviço à Prefeitura pela internet.","/participacao/solicitar","FiEdit"),_a("Consultar minha Solicitação","Acompanhe pelo número do protocolo.","/participacao/minhas-solicitacoes","FiSearch"),_a("Protocolo Digital","Protocole documentos sem ir à Prefeitura.","/atendimento/protocolo","FiInbox"),_a("Carta de Serviços","Todos os serviços, prazos e como pedir.","/transparencia/carta-servicos","FiBookOpen"),_a("Ouvidoria","Reclamações, denúncias, sugestões e elogios.","/atendimento/ouvidoria","FiMessageSquare"),_a("e-SIC","Pedido de acesso à informação (Lei 12.527/2011).","/atendimento/esic","FiInfo"),_a("Ãrea do Cidadão","Entre ou crie sua conta no portal.","/area-restrita","FiUserCheck")]},{chave:"empresa",titulo:"Empresa",chamada:"Empresas",resumo:"ISS, nota fiscal, tributos e compras públicas.",icone:"FiBriefcase",servicos:[ks("issqn"),ks("tributos-diversos"),ks("certidao-debitos"),Oc("Nota Fiscal Eletrônica","Emissão e consulta de NFS-e.","https://funilandiamg.gestaoiss.com.br/inicio","FiFileText"),Oc("ISSQN Retido","Declaração e guia do ISSQN retido na fonte.","http://sistemaweb.memory.com.br:81/issqn/login/untlogin.php?municipio=9A7F6P","FiFileText"),_a("Licitações e Editais","Editais abertos, resultados e documentos.","/transparencia/licitacoes","FiClipboard"),_a("Contratos","Contratos firmados pela Prefeitura.","/transparencia/contratos","FiFile")]},{chave:"servidor",titulo:"Servidor",chamada:"o Servidor",resumo:"Contracheque, e-mail institucional e informações de pessoal.",icone:"FiUsers",servicos:[ks("contracheque"),Oc("Portal do Servidor","Acesso ao sistema administrativo.",vx,"FiLock"),Oc("Webmail institucional","E-mail @funilandia.mg.gov.br.","https://webmail.funilandia.mg.gov.br/","FiMail"),_a("Concursos e Processos Seletivos","Editais, inscrições e resultados.","/transparencia/recursos-humanos/concursos","FiAward"),_a("Atos de Pessoal","Nomeações, exonerações e demais atos.","/transparencia/atos-pessoal","FiFileText"),_a("Padrão Remuneratório","Cargos, sÃmbolos e vencimentos.","/transparencia/recursos-humanos/padrao-remuneratorio","FiDollarSign")]}];function UT(t){return Zm.find(s=>
173s.chave===t)}const Ox=t=>px[t]??nx;function FT({s:t}){const s=Ox(t.icone),i="group flex h-full items-start gap-4 rounded-lg border border-gray-200 bg-white p-4 shadow-sm transition-all hover:border-institutional hover:shadow-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-institutional-darker",n=e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",className:`flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-lg bg-primary-100 text-institutional-dark\r 174 transition-colors group-hover:bg-institutional group-hover:text-white`,children:e.jsx(s,{size:20})}),e.jsxs("span",{children:[e.jsx("span",{className:"block font-semibold text-gray-900",children:t.titulo}),e.jsx("span",{className:"mt-0.5 block text-sm text-gray-600",children:t.descricao})]})]});return t.externo?e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:i,children:[n,e.jsx("span",{className:"sr-only",children:" (abre em nova aba)"})]}):e.jsx(ie,{to:t.url,className:i,children:n})}function Lv({guia:t,comTitulo:s}){const i=Ox(t.icone);return e.jsxs("section",{"aria-labelledby":`publico-${t.chave}`,className:"mb-10",children:[s?e.jsxs("h2",{id:`publico-${t.chave}`,className:"mb-4 flex items-center gap-2 text-xl font-bold text-institutional-darker",children:[e.jsx(i,{"aria-hidden":"true"})," ",t.titulo]}):e.jsx("h2",{id:`publico-${t.chave}`,className:"sr-only",children:t.titulo}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t.servicos.map(n=>e.jsx("li",{children:e.jsx(FT,{s:n})},`${t.chave}-${n.url}`))})]})}function $T(){const{publico:t=""}=Uo(),s=t==="todos",i=UT(t);if(!s&&!i)return e.jsx(Ny,{});const n=s?"Todos os serviços":`Serviços para ${i.chamada}`,l=s?"Os serviços do portal organizados por público.":i.resumo,d=Ox(s?"FiGrid":i.icone);return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"Serviços"},{label:n}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-2xl bg-white/10 backdrop-blur",children:e.jsx(d,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold md:text-4xl",children:n}),e.jsx("p",{className:"mt-2 text-base text-white/90 md:text-lg",children:l})]})]})]})}),e.jsx("div",{className:"bg-gray-50 py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[s?Zm.map(u=>e.jsx(Lv,{guia:u,comTitulo:!0},u.chave)):e.jsx(Lv,{guia:i,comTitulo:!1}),!s&&e.jsxs("nav",{"aria-label":"Outros públicos",className:"flex flex-wrap gap-3",children:[Zm.filter(u=>u.chave!==t).map(u=>e.jsxs(ie,{to:`/servicos/publico/${u.chave}`,className:"rounded-md bg-institutional px-4 py-2 text-sm font-semibold text-white hover:bg-institutional-dark",children:["Serviços para ",u.chamada]},u.chave)),e.jsx(ie,{to:"/servicos/publico/todos",className:"rounded-md border border-institutional px-4 py-2 text-sm font-semibold text-institutional-darker hover:bg-primary-50",children:"Ver todos"})]})]})})]}),e.jsx(ge,{})]})}function IT(){const[t,s]=b.useState(null),i=window.location.origin,n="https://ntzfqhwpmimurcrvzrvw.supabase.co",l=m=>`${n}/functions/v1/rss?tipo=${m}&portal=${encodeURIComponent(i)}`,d=[{title:"NotÃcias",description:"Acompanhe todas as notÃcias da Prefeitura",url:l("noticias")},{title:"Licitações e Editais",description:"Fique atualizado sobre as proposições em tramitação",url:l("proposicoes")},{title:"Agenda e Audiências",description:"Acompanhe as sessões plenárias realizadas",url:l("sessoes")},{title:"Leis Municipais",description:"Receba atualizações sobre novas leis municipais",url:l("leis")}],u=m=>{navigator.clipboard.writeText(m),s(m),setTimeout(()=>s(null),2e3)};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
174),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Serviços"},{label:"Feeds RSS",path:"/rss"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(po,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Feeds RSS"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Receba atualizações automáticas da Prefeitura"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"O que é RSS?"}),e.jsx("p",{className:"text-gray-700 mb-4 leading-relaxed",children:"RSS (Really Simple Syndication) é uma tecnologia que permite receber atualizações automáticas de conteúdo de sites que você acompanha, sem precisar visitar cada um deles individualmente."}),e.jsxs("p",{className:"text-gray-700 mb-4 leading-relaxed",children:["Para usar RSS, você precisa de um ",e.jsx("strong",{children:"leitor de RSS"})," (também chamado de agregador de notÃcias). Alguns exemplos populares:"]}),e.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Feedly"})," - leitor web e aplicativo móvel"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Inoreader"})," - leitor web com muitos recursos"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"NewsBlur"})," - leitor web de código aberto"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Mozilla Thunderbird"})," - cliente de email com suporte a RSS"]})]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Feeds DisponÃveis"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:d.map(m=>e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 hover:shadow-lg transition-shadow",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(po,{className:"text-orange-600",size:24})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:m.title}),e.jsx("p",{className:"text-gray-600 mb-4 text-sm",children:m.description}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-3 mb-4 border border-gray-200",children:e.jsx("code",{className:"text-xs text-gray-700 break-all font-mono",children:m.url})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>u(m.url),className:"flex items-center gap-2 px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors text-sm font-medium",children:t===m.url?e.jsxs(e.Fragment,{children:[e.jsx(l2,{size:16}),"Copiado!"]}):e.jsxs(e.Fragment,{children:[e.jsx(m2,{size:16}),"Copiar URL"]})}),e.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 bg-institutional text-white rounded-lg hover:bg-institutional-dark transition-colors text-sm font-medium",children:[e.jsx(po,{size:16}),"Assinar"]})]})]})]})},m.url))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Como Assinar um Feed"}),e.jsxs("ol",{className:"list-decimal list-inside text-gray-700 space-y-3 ml-4",children:[e.jsx("li",{className:"leading-relaxed",children:"Escolha o feed que deseja acompanhar na lista acima"}),e.jsx("li",{className:"leading-relaxed",children:'Clique no botão "Copiar URL" para copiar o endereço do feed'}),e.jsx("li",{className:"leading-relaxed",children:"Abra seu leitor de RSS favorito"}),e.jsx("li",{className:"leading-relaxed",children:"Adicione um novo feed e cole a URL copiada"}),e.jsx("li",{className:"leading-relaxed",children:"Pronto! Você receberá automaticamente as atualizações"})]}),e.jsx("div",{className:"mt-6 bg-blue-50 rounded-lg p-4 border-l-4 border-institutional",children:e.jsxs("p",{className:"text-sm text-gray-700 leading-relaxed",children:[e.jsx("strong",{children:"Dica:"})," Você pode assinar múltiplos feeds para acompanhar diferentes tipos de conteúdo da Prefeitura."]})})]})]})})]}),e.jsx(ge,{})]})}function HT(){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
174),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"JurÃdico"},{label:"PolÃtica de Privacidade",path:"/juridico/politica-privacidade"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Rs,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"PolÃtica de Privacidade"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Como coletamos, usamos e protegemos seus dados pessoais"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3 mb-6",children:[e.jsx(Rs,{size:24,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Compromisso com a Privacidade"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"A Prefeitura Municipal de Funilândia está comprometida com a proteção da privacidade e dos dados pessoais dos cidadãos que utilizam o Portal da Prefeitura. Esta PolÃtica de Privacidade descreve como coletamos, usamos, armazenamos e protegemos suas informações pessoais, em conformidade com a Lei Geral de Proteção de Dados Pessoais (LGPD - Lei nº 13.709/2018)."}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Ãltima atualização:"})," Janeiro de 2025"]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(dd,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"1. Dados Coletados"})]}),e.jsxs("div",{className:"space-y-4 text-gray-700",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"1.1. Dados Fornecidos por Você"}),e.jsx("p",{className:"mb-2",children:"Coletamos informações que você nos fornece diretamente ao:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4",children:[e.jsx("li",{children:"Preencher formulários de contato (Fale Conosco, Ouvidoria, e-SIC)"}),e.jsx("li",{children:"Enviar sugestões de leis ou participar de consultas públicas"}),e.jsx("li",{children:"Fazer solicitações de informação ou denúncias"}),e.jsx("li",{children:"Cadastrar-se em serviços ou newsletters"})]}),e.jsx("p",{className:"mt-2 text-sm",children:"Esses dados podem incluir: nome, CPF, e-mail, telefone, endereço e outras informações necessárias para o atendimento de sua solicitação."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"1.2. EstatÃsticas de acesso"}),e.jsxs("p",{className:"mb-2",children:["A Prefeitura mede o uso do portal para saber o que o municÃpio procura e onde precisa melhorar. A medição é feita ",e.jsx("strong",{children:"pela própria Prefeitura"}),", em servidor próprio: ",e.jsx("strong",{children:"nenhum dado de navegação é enviado ao Google ou a qualquer outra empresa de análise"}),"."]}),e.jsx("p",{className:"mb-2",children:"A cada página aberta ficam registrados:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4",children:[e.jsx("li",{children:"o endereço da página e o tempo de permanência nela;"}),e.jsx("li",{children:"a data e a hora do acesso;"}),e.jsx("li",{children:"o site de onde você veio, quando houver â apenas o domÃnio;"}),e.jsx("li",{children:"tipo de aparelho, navegador, sistema operacional e idioma;"}),e.jsx("li",{children:"o paÃs, obtido da conexão."})]}),e.jsxs("div",{className:"mt-3 p-4 bg-green-50 border border-green-200 rounded-lg",children:[e.jsx("p",{className:"font-semibold text-gray-900 mb-1",children:"Seu endereço IP não é armazenado."}),e.jsxs("p",{children:["Ele é lido no momento do acesso e imediatamente convertido, junto com a data do dia, em um código irreversÃvel. Esse código serve apenas para contar quantas pessoas diferentes visitaram o portal ",e.jsx("em",{children:"naquele dia"}),": como a data entra no cálculo, ",e.jsx("strong",{children:"o mesmo visitante recebe outro código no dia seguinte"}),", e não há como acompanhar alguém ao longo do tempo nem descobrir de quem era o acesso."]})]}),e.jsxs("p",{className:"mt-3",children:["Endereços com informação após o sinal de interrogação não são gravados â só o caminho da página. Os registros detalhados são ",e.jsx("strong",{children:"apagados após 90 dias"}),", restando apenas totais por dia e por página, que não se referem a pessoa alguma."]}),e.jsxs("p",{className:"mt-2",children:[e.jsx("strong",{children:"Base legal:"})," execução de polÃticas públicas e cumprimento de obrigação legal de transparência (Lei 13.709/2018, art. 7º, II e III), com dados tratados de forma que não permite identificar o titular."]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"1.3. Cookies"}),e.jsx("p",{children:"O portal não usa cookies de publicidade nem de terceiros. O que ele guarda no seu navegador é o necessário para funcionar: as preferências de acessibilidade que você escolher (tamanho da fonte, alto contraste), a sessão da Ãrea do Cidadão quando você entra, e um identificador temporário da aba, que existe apenas enquanto ela estiver aberta e serve para não contar a mesma visita várias vezes. Você pode apagar tudo isso pelas configurações do navegador."})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(ka,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"2. Como Usamos Seus Dados"})]}),e.jsxs("div",{className:"space-y-4 text-gray-700",children:[e.jsx("p",{children:"Utilizamos seus dados pessoais para:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Atender suas
174solicitações:"})," processar pedidos de informação, denúncias, sugestões e reclamações"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Comunicação:"})," responder suas mensagens e fornecer informações solicitadas"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Transparência:"})," publicar dados de transparência pública conforme exigido por lei"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Melhorias:"})," analisar o uso do portal para aprimorar nossos serviços"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Cumprimento legal:"})," atender obrigações legais e regulatórias"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Segurança:"})," proteger contra fraudes, abusos e atividades ilegais"]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Za,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"3. Compartilhamento de Dados"})]}),e.jsxs("div",{className:"space-y-4 text-gray-700",children:[e.jsx("p",{children:"Seus dados pessoais podem ser compartilhados:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Com órgãos públicos:"})," quando necessário para cumprimento de obrigações legais ou requisições judiciais"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Publicação legal:"})," dados publicados em documentos oficiais (atas, pautas, leis) conforme legislação de transparência"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Prestadores de serviço:"})," empresas que nos auxiliam na operação do portal (hospedagem, suporte técnico), sempre com garantias contratuais de proteção"]})]}),e.jsx("p",{className:"font-semibold mt-4",children:"A Prefeitura NÃO vende, aluga ou comercializa seus dados pessoais com terceiros para fins comerciais."})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"4. Segurança dos Dados"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Implementamos medidas técnicas e organizacionais adequadas para proteger seus dados pessoais contra acessos não autorizados, perda, destruição ou alteração, incluindo:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Criptografia de dados em trânsito (HTTPS/SSL)"}),e.jsx("li",{children:"Controles de acesso restrito"}),e.jsx("li",{children:"Monitoramento de segurança"}),e.jsx("li",{children:"Backups regulares"}),e.jsx("li",{children:"Treinamento da equipe em proteção de dados"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"5. Retenção de Dados"}),e.jsx("p",{className:"text-gray-700",children:"Mantemos seus dados pessoais apenas pelo tempo necessário para cumprir as finalidades descritas nesta polÃtica, salvo quando a legislação exigir perÃodos de retenção especÃficos. Documentos públicos são mantidos conforme as normas de arquivologia e legislação aplicável."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"6. Seus Direitos"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Conforme a LGPD, você tem direito a:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Confirmar a existência de tratamento de seus dados"}),e.jsx("li",{children:"Acessar seus dados pessoais"}),e.jsx("li",{children:"Corrigir dados incompletos, inexatos ou desatualizados"}),e.jsx("li",{children:"Solicitar anonimização, bloqueio ou eliminação de dados desnecessários"}),e.jsx("li",{children:"Solicitar portabilidade dos dados"}),e.jsx("li",{children:"Revogar consentimento"}),e.jsx("li",{children:"Ser informado sobre compartilhamento de dados"})]}),e.jsxs("p",{className:"text-gray-700 mt-4",children:["Para exercer seus direitos, entre em contato com nosso Encarregado de Proteção de Dados através do e-mail:"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-institutional hover:underline font-semibold",children:"[email protected]"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"7. Menores de Idade"}),e.jsx("p",{className:"text-gray-700",children:"Nosso portal não é direcionado a menores de 18 anos. Não coletamos intencionalmente dados pessoais de crianças e adolescentes sem o consentimento dos pais ou responsáveis legais. Se tomarmos conhecimento de coleta inadvertida, os dados serão excluÃdos."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"8. Alterações nesta PolÃtica"}),e.jsx("p",{className:"text-gray-700",children:"Podemos atualizar esta PolÃtica de Privacidade periodicamente para refletir mudanças em nossas práticas ou na legislação. Alterações significativas serão comunicadas através do portal. Recomendamos que você revise esta polÃtica regularmente."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Ze,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"9. Contato"})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Em caso de dúv
174idas sobre esta PolÃtica de Privacidade ou sobre o tratamento de seus dados pessoais:"}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("p",{className:"text-sm text-gray-700",children:e.jsx("strong",{children:"Encarregado de Proteção de Dados (DPO)"})}),e.jsxs("p",{className:"text-sm text-gray-700 mt-2",children:["E-mail:"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-institutional hover:underline font-semibold",children:"[email protected]"})]}),e.jsxs("p",{className:"text-sm text-gray-700 mt-2",children:["Prefeitura Municipal de Funilândia",e.jsx("br",{}),"Rua Tristão Vieira de Azeredo, 90",e.jsx("br",{}),"CEP: 35736-000 â Funilândia, MG"]})]})]})]}),e.jsx("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{size:20,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Mais Informações sobre LGPD"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"Para mais informações sobre como a Prefeitura protege seus dados, acesse nossa página dedicada à LGPD."}),e.jsx("a",{href:"/transparencia/lgpd",className:"inline-block bg-institutional hover:bg-institutional-dark text-white font-bold py-2 px-4 rounded-lg transition-colors text-sm",children:"Acessar Página LGPD"})]})]})})]})})]}),e.jsx(ge,{})]})}function VT(){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"JurÃdico"},{label:"Termos de Uso",path:"/juridico/termos-uso"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(he,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Termos de Uso"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Condições de uso do Portal da Prefeitura Municipal de Funilândia"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3 mb-6",children:[e.jsx(he,{size:24,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Bem-vindo ao Portal da Prefeitura"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Estes Termos de Uso estabelecem as condições gerais para utilização do Portal da Prefeitura Municipal de Funilândia. Ao acessar e utilizar este portal, você concorda em cumprir estes termos. Se não concordar com algum item, pedimos que não utilize o portal."}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("strong",{children:"Ãltima atualização:"})," Janeiro de 2025"]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"1. Aceitação dos Termos"}),e.jsx("p",{className:"text-gray-700 mb-4",children:'Ao acessar e usar o Portal da Prefeitura Municipal de Funilândia ("Portal"), você aceita e concorda em ficar vinculado a estes Termos de Uso, bem como à nossa PolÃtica de Privacidade. Estes termos se aplicam a todos os usuários do portal, incluindo visitantes, cidadãos, servidores públicos e qualquer pessoa que acesse nossos serviços online.'})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"2. Finalidade do Portal"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"O Portal da Prefeitura Municipal de Funilândia tem como objetivos:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Promover a transparência pública e o acesso à informação"}),e.jsx("li",{children:"Disponibilizar informações sobre as atividades legislativas"}),e.jsx("li",{children:"Facilitar a comunicação entre a Prefeitura e os cidadãos"}),e.jsx("li",{children:"Oferecer serviços eletrônicos aos munÃcipes"}),e.jsx("li",{children:"Divulgar documentos oficiais, leis, atas, pautas e demais publicações"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center",children:e.jsx(De,{size:20,className:"text-green-600"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"3. Uso Permitido"})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Você está autorizado a:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Acessar informações públicas disponibilizadas no portal"}),e.jsx("li",{children:"Fazer download de documentos oficiais para consulta pessoal"}),e.jsx("li",{children:"Utilizar os serviços de atendimento (e-SIC, Ouvidoria, Fale Conosco)"}),e.jsx("li",{children:"Participar de consultas públicas e enviar sugestões de leis"}),e.jsx("li",{children:"Compartilhar links do portal em redes sociais e outros meios"}),e.jsx("li",{children:"Citar informações do portal em trabalhos acadêmicos, desde que com devida atribuição"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-red-100 rounded-lg flex items-center justify-center",children:e.jsx(z2,{size:20,className:"text-red-600"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"4. Uso Proibido"})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"à expressamente proibido:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Usar o portal para fins ilÃcitos, fraudulentos ou não autorizados"}),e.jsx("li",{children:"Tentar obter acesso não autorizado a sistemas, redes ou dados do portal"}),e.jsx("li",{children:"Enviar ou transmitir vÃrus, malware ou códigos maliciosos"}),e.jsx("li",{children:"Realizar ataques de negação de serviço (DDoS) ou sobrecarregar o sistema"}),e.jsx("li",{children:"Fazer scraping automatizado de dados sem autorização prévia e por escrito"}),e.jsx("li",{children:"Publicar conteúdo difamatório, ofensivo, obsceno ou discriminatório"}),e.jsx("li",{children:"Violar direitos de propriedade intelectual da Prefeitura ou de terceiros"}),e.jsx("li",{children:"Usar dados pessoais de terceiros obtidos no portal para fins não autorizados"}),e.jsx("li",{children:"Interferir no funcionamento adequado do portal"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"5. Conteúdo do Portal"}),e.jsxs("div",{className:"space-y-4 text-gray-700",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"5.
1741. Propriedade Intelectual"}),e.jsx("p",{children:"Todo o conteúdo do portal (textos, imagens, logotipos, Ãcones, vÃdeos, áudios, design, código-fonte) é de propriedade da Prefeitura Municipal de Prefeitura ou está devidamente licenciado, exceto quando indicado de forma diferente."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"5.2. Documentos Oficiais"}),e.jsx("p",{children:"Os documentos oficiais (leis, atas, pautas, relatórios) são de domÃnio público e podem ser reproduzidos livremente para fins de informação, estudo, pesquisa ou crÃtica, desde que citada a fonte."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"5.3. Precisão das Informações"}),e.jsx("p",{children:"Embora nos esforcemos para manter as informações atualizadas e precisas, não garantimos a exatidão, completude ou atualidade de todo o conteúdo. Em caso de dúvidas, entre em contato conosco."})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"6. Responsabilidades do Usuário"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Ao usar o portal, você se compromete a:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Fornecer informações verdadeiras, precisas e completas quando solicitado"}),e.jsx("li",{children:"Manter a confidencialidade de suas credenciais de acesso (se aplicável)"}),e.jsx("li",{children:"Notificar imediatamente sobre qualquer uso não autorizado de sua conta"}),e.jsx("li",{children:"Respeitar os direitos de outros usuários e da Prefeitura Municipal"}),e.jsx("li",{children:"Utilizar o portal de forma ética e responsável"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"7. Links Externos"}),e.jsx("p",{className:"text-gray-700",children:"O portal pode conter links para sites de terceiros (portais de transparência, LexML, redes sociais, etc.). A Prefeitura não se responsabiliza pelo conteúdo, polÃticas de privacidade ou práticas desses sites externos. O acesso a eles é por sua conta e risco."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"8. Disponibilidade do Serviço"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Embora nos esforcemos para manter o portal disponÃvel 24 horas por dia, 7 dias por semana, podem ocorrer interrupções temporárias para:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 ml-4 text-gray-700",children:[e.jsx("li",{children:"Manutenção programada"}),e.jsx("li",{children:"Atualizações do sistema"}),e.jsx("li",{children:"Problemas técnicos imprevistos"}),e.jsx("li",{children:"Questões de segurança"})]}),e.jsx("p",{className:"text-gray-700 mt-4",children:"Não nos responsabilizamos por quaisquer danos decorrentes da indisponibilidade temporária do portal."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"9. Limitação de Responsabilidade"}),e.jsx("p",{className:"text-gray-700",children:'A Prefeitura Municipal de Funilândia não se responsabiliza por danos diretos, indiretos, incidentais, consequenciais ou punitivos decorrentes do uso ou da impossibilidade de uso do portal, exceto nos casos previstos em lei. O portal é fornecido "como está", sem garantias de qualquer tipo.'})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Rs,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"10. Privacidade de Dados"})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"A coleta, uso e proteção de seus dados pessoais são regidos pela nossa PolÃtica de Privacidade, em conformidade com a LGPD. Recomendamos a leitura atenta deste documento."}),e.jsx("a",{href:"/juridico/politica-privacidade",className:"inline-block text-institutional hover:underline font-semibold",children:"Ler PolÃtica de Privacidade â"})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"11. Modificações nos Termos"}),e.jsx("p",{className:"text-gray-700",children:"A Prefeitura reserva-se o direito de modificar estes Termos de Uso a qualquer momento. Alterações significativas serão comunicadas através do portal. O uso continuado do portal após as alterações constitui aceitação dos novos termos."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"12. Lei Aplicável e Jurisdição"}),e.jsx("p",{className:"text-gray-700",children:"Estes Termos de Uso são regidos pelas leis da República Federativa do Brasil. Quaisquer disputas decorrentes destes termos serão submetidas ao Foro da Comarca de Funilândia, Estado do Paraná, com renúncia expressa a qualquer outro, por mais privilegiado que seja."})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"13. Contato"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Para dúvidas, sugestões ou reclamações sobre estes Termos de Uso:"}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("p",{className:"text-sm text-gray-700",children:e.jsx("strong",{children:"Prefeitura Municipal de Funilândia"})}),e.jsxs("p",{className:"text-sm text-gray-700 mt-2",children:["Rua Tristão Vieira de Azeredo, 90",e.jsx("br",{}),"CEP: 35736-000 â Funilândia, MG"]}),e.jsxs("p",{className:"text-sm text-gray-700 mt-2",children:["Telefone:"," ",e.jsx("a",{href:"tel:+554231328144",className:"text-institutional hover:underline",children:"(42) 3132-8144"})]}),e.jsxs("p",{className:"text-sm text-gray-700 mt-2",children:["E-mail:"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-institutional hover:underline",children:"[email protected]"})]})]})]})]}),e.jsx("div",{className:"mt-8 bg-amber-50 border border-amber-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(We,{size:20,className:"text-amber-600 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-amber-900 mb
174-2",children:"Importante"}),e.jsx("p",{className:"text-sm text-amber-800",children:"Ao continuar usando o Portal da Prefeitura Municipal de Funilândia, você reconhece que leu, compreendeu e concorda em ficar vinculado a estes Termos de Uso e à nossa PolÃtica de Privacidade."})]})]})})]})})]}),e.jsx(ge,{})]})}function GT(){return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"JurÃdico"},{label:"Acessibilidade",path:"/juridico/acessibilidade"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(ka,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Acessibilidade"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Compromisso com a inclusão digital e acesso universal"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3 mb-6",children:[e.jsx(ka,{size:24,className:"text-institutional mt-1"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Nosso Compromisso com a Acessibilidade"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"A Prefeitura Municipal de Funilândia está comprometida em garantir que o Portal da Prefeitura seja acessÃvel a todas as pessoas, independentemente de suas capacidades ou tecnologias utilizadas. Trabalhamos continuamente para melhorar a acessibilidade e usabilidade do nosso portal, seguindo as diretrizes de acessibilidade para conteúdo web (WCAG 2.1)."}),e.jsx("p",{className:"text-gray-700",children:"Acreditamos que a informação pública deve ser acessÃvel a todos, e nos esforçamos para remover barreiras e promover a inclusão digital."})]})]})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Recursos de Acessibilidade DisponÃveis"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ka,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"VLibras - Tradução em Libras"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"Widget oficial do Governo Federal que traduz automaticamente o conteúdo do portal para LÃngua Brasileira de Sinais (Libras), beneficiando pessoas surdas ou com deficiência auditiva."}),e.jsxs("div",{className:"flex items-center gap-2 text-green-700 text-sm",children:[e.jsx(De,{size:16}),e.jsx("span",{className:"font-semibold",children:"DisponÃvel no canto inferior direito"})]})]})]})}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(L2,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Controle de Tamanho de Fonte"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"Ajuste o tamanho do texto conforme sua preferência utilizando os botões A+ (aumentar) e A- (diminuir) disponÃveis no topo do site."}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-gray-300 rounded",children:[e.jsx(P2,{size:16}),e.jsx("span",{className:"text-sm font-semibold",children:"A-"})]}),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-gray-300 rounded",children:[e.jsx(y2,{size:16}),e.jsx("span",{className:"text-sm font-semibold",children:"A"})]}),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-gray-300 rounded",children:[e.jsx(M2,{size:16}),e.jsx("span",{className:"text-sm font-semibold",children:"A+"})]})]})]})]})}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(mx,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Modo Alto Contraste"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"Ative o modo de alto contraste para melhorar a legibilidade do conteúdo, especialmente útil para pessoas com baixa visão ou sensibilidade a cores."}),e.jsxs("div",{className:"flex items-center gap-2 text-green-700 text-sm",children:[e.jsx(De,{size:16}),e.jsx("span",{className:"font-semibold",children:"Atalho de teclado: Alt + Shift + C"})]})]})]})}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6 border border-gray-200",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(u2,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Navegação por Teclado"}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:"Nosso portal pode ser totalmente navegado usando apenas o teclado, beneficiando pessoas com dificuldades motoras."}),e.jsxs("div",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("kbd",{className:"px-2 py-1 bg-white border border-gray-300 rounded text-xs font-mono",children:"Tab"}),e.jsx("span",{children:"Navegar entre elementos interativos"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("kbd",{className:"px-2 py-1 bg-white border border-gray-300 rounded text-xs font-mono",children:"Enter"}),e.jsx("span",{children:"Ativar links e botões"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("kbd",{className:"px-2 py-1 bg-white border border-gray-300 rounded text-xs font-mono",children:"Esc"}),e.jsx("span",{children:"Fechar modais e menus"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("kbd",{className:"px-2 py-1 bg-white border border-gray-300 rounded text-xs font-mono",children:"Setas"}),e.jsx("span",{children:"Navegar em menus e listas"})]})]})]})]})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Padrões e Diretrizes Seguidos"}),e.jsxs("div",{className:"space-y-4 text-gray-700",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(De,{size:20,className:"text-green-600 mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"WCAG 2.1 (NÃvel AA)"}),e.jsx("p",{className:"text-sm",children:"Diretrizes de Acessibilidade para Conteúdo Web, estabelecidas pelo W3C, garantindo que o portal seja perceptÃvel, operável, compreensÃvel e robusto."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(De,{size:20,className:"text-green-600 mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"e-MAG (Modelo de Acessibilidade em Governo Eletrônico)"}),e.jsx("p",{className:"text-sm",children:"Padrão brasileiro para acessibilidade digital em sites governamentais, desenvolvido pelo Governo Federal."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(De,{size:20,className:"text-green-600 mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"Lei Brasileira de Inclusão (LBI - Lei nº 13.146/2015)"}),e.jsx("p",{className:"text-sm",children:"Cumprimento das determinações da Lei Brasileira de Inclusão da Pessoa com Deficiência, assegurando acessibilidade em todos os aspectos."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(De,{size:20,className:"text-green-600 mt-1 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"Semântica HTML5 e ARIA"}),e.jsx("p",{className:"text-sm",children:"Uso de marcação semântica e atributos ARIA (Accessible Rich Internet Applications) para melhorar a compatibilidade
174com tecnologias assistivas."})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Compatibilidade com Tecnologias Assistivas"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Nosso portal foi testado e é compatÃvel com as seguintes tecnologias assistivas:"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Leitores de Tela"}),e.jsxs("ul",{className:"text-sm text-gray-700 space-y-1",children:[e.jsx("li",{children:"⢠NVDA (Windows)"}),e.jsx("li",{children:"⢠JAWS (Windows)"}),e.jsx("li",{children:"⢠VoiceOver (macOS/iOS)"}),e.jsx("li",{children:"⢠TalkBack (Android)"})]})]}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Navegadores"}),e.jsxs("ul",{className:"text-sm text-gray-700 space-y-1",children:[e.jsx("li",{children:"⢠Google Chrome"}),e.jsx("li",{children:"⢠Mozilla Firefox"}),e.jsx("li",{children:"⢠Microsoft Edge"}),e.jsx("li",{children:"⢠Safari"})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Melhorias ContÃnuas"}),e.jsx("p",{className:"text-gray-700",children:"Estamos constantemente trabalhando para melhorar a acessibilidade do nosso portal. Realizamos auditorias periódicas, testes com usuários reais e implementamos melhorias com base em feedback e nas melhores práticas da área."})]}),e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-8",children:e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Ze,{size:20,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"Encontrou um Problema de Acessibilidade?"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Se você encontrar qualquer barreira de acessibilidade em nosso portal ou tiver sugestões de melhoria, por favor, entre em contato conosco. Sua contribuição é fundamental para tornarmos o portal mais acessÃvel."}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsxs("p",{className:"text-sm text-gray-700 mb-2",children:[e.jsx("strong",{children:"E-mail:"})," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-institutional hover:underline",children:"[email protected]"})]}),e.jsxs("p",{className:"text-sm text-gray-700 mb-2",children:[e.jsx("strong",{children:"Telefone:"})," ",e.jsx("a",{href:"tel:+554231328144",className:"text-institutional hover:underline",children:"(42) 3132-8144"})]}),e.jsxs("p",{className:"text-sm text-gray-700",children:[e.jsx("strong",{children:"Ouvidoria:"})," ",e.jsx("a",{href:"/atendimento/ouvidoria",className:"text-institutional hover:underline font-semibold",children:"Acesse a Ouvidoria"})]})]})]})]})}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Links Ãteis sobre Acessibilidade"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[e.jsx("a",{href:"https://www.w3c.br/traducoes/wcag/wcag21-pt-BR/",target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline flex items-center gap-2",children:"â WCAG 2.1 em Português"}),e.jsx("a",{href:"https://www.gov.br/governodigital/pt-br/acessibilidade-e-usuario/acessibilidade-digital",target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline flex items-center gap-2",children:"â e-MAG (Governo Digital)"}),e.jsx("a",{href:"https://www.vlibras.gov.br/",target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline flex items-center gap-2",children:"â VLibras (Gov.br)"}),e.jsx("a",{href:"http://www.planalto.gov.br/ccivil_03/_ato2015-2018/2015/lei/l13146.htm",target:"_blank",rel:"noopener noreferrer",className:"text-institutional hover:underline flex items-center gap-2",children:"â Lei Brasileira de Inclusão"})]})]})]})})]}),e.jsx(ge,{})]})}const WT=[{nome:"Gabinete",ramal:"1"},{nome:"Processos Legislativos",ramal:"2"},{nome:"Contabilidade",ramal:"3"},{nome:"Finanças e Licitação",ramal:"4"},{nome:"Controle Interno",ramal:"5"},{nome:"Atendente",ramal:"6"}];function KT(){const{instituicao:t,enderecoCompleto:s}=st(),i=t?.endereco,n=i?`${i.logradouro}, nº ${i.numero}`:"",l=i?.bairro??"",d=t?.municipio??"",u=t?.uf??"",m=i?.cep??"",x=t?.horario_atendimento||"7h à s 16h",p=t?.contato?.telefone??"",g="+55"+p.replace(/\D/g,""),v=t?.contato?.email??"",j=t?.contato?.email??"",N=encodeURIComponent(s),k=`https://maps.google.com/maps?q=${N}&output=embed`;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
174),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Institucional"},{label:"Contato",path:"/institucional/contato"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Ze,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Contato"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Entre em contato com a Prefeitura Municipal de Funilândia"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(xt,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"font-bold text-gray-900 text-lg mb-2",children:"Endereço"}),e.jsxs("p",{className:"text-gray-700",children:[n,e.jsx("br",{}),l,e.jsx("br",{}),d," - ",u,e.jsx("br",{}),"CEP: ",m]})]})]})}),e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(zt,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"font-bold text-gray-900 text-lg mb-2",children:"Telefone"}),e.jsx("a",{href:`tel:${g}`,className:"text-institutional hover:underline text-lg font-semibold block mb-3",children:p}),e.jsx("p",{className:"text-sm text-gray-600 mb-3",children:"Após digitar o número, escolha o ramal:"}),e.jsx("ul",{className:"space-y-1.5",children:WT.map(S=>e.jsxs("li",{className:"text-sm text-gray-700 flex items-center gap-2",children:[e.jsx("span",{className:"w-7 h-7 bg-institutional/10 text-institutional font-bold text-xs rounded-full flex items-center justify-center flex-shrink-0",children:S.ramal}),S.nome]},S.ramal))})]})]})}),e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(mt,{size:24,className:"text-institutional"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"font-bold text-gray-900 text-lg mb-3",children:"Horário de Atendimento"}),e.jsxs("div",{className:"space-y-2 text-gray-700",children:[e.jsx("p",{className:"font-semibold",children:"Segunda a Sexta-feira"}),e.jsx("p",{children:x})]}),e.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-200",children:[e.jsx("p",{className:"font-semibold text-gray-900 mb-1",children:"Audiências Públicas"}),e.jsx("p",{className:"text-sm text-gray-700",children:"As sessões são públicas. Consulte a agenda no portal para conferir datas e horários."})]})]})]})})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(Ze,{size:20,className:"text-institutional"})}),e.jsx("h2",{className:"font-bold text-gray-900 text-lg",children:"E-mails"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"Prefeitura Municipal (Geral)"}),e.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"E-mail institucional para assuntos gerais"}),e.jsx("a",{href:`mailto:${v}`,className:"text-sm text-institutional hover:underline break-all",children:v})]}),e.jsxs("div",{className:"bg-pink-50 rounded-lg p-4 border border-pink-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"Procuradoria da Mulher"}),e.jsx("p",{className:"text-xs text-gray-600 mb-2",children:"Defesa dos direitos da mulher e combate à violência de gênero"}),e.jsx("a",{href:`mailto:${j}`,className:"text-sm text-pink-700 hover:underline break-all font-semibold",children:j})]}),e.jsxs("div",{className:"bg-blue-50 rounded-lg p-4 border border-blue-200",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:"Ouvidoria e e-SIC"}),e.jsx("p",{className:"text-xs text-gray-700 mb-3",children:"Para reclamações, denúncias, sugestões ou solicitações de acesso à informação, utilize os canais oficiais com formulário online."}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("a",{href:"/atendimento/ouvidoria",className:"text-xs bg-institutional text-white px-3 py-1.5 rounded-md font-semibold hover:bg-institutional-dark transition-colors",children:"Acessar Ouvidoria"}),e.jsx("a",{href:"/atendimento/esic",className:"text-xs bg-white border border-institutional text-institutional px-3 py-1.5 rounded-md font-semibold hover:bg-institutional/5 transition-colors",children:"Acessar e-SIC"})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",id:"mapa",children:[e.jsx("h2",{className:"font-bold text-gray-900 text-lg mb-4",children:"Localização"}),e.jsx("div",{className:"aspect-video bg-gray-200 rounded-lg overflow-hidden",children:e.jsx("iframe",{src:k,width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Localização da Prefeitura Municipal de Funilândia"})}),e.jsxs("p",{className:"text-sm text-gray-600 mt-3",children:[n," - ",d,", ",u]}),e.jsx("a",{href:`https://www.google.com/maps/search/?api=1&query=${N}`,target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-2 text-sm text-institutional hover:underline font-semibold",children:"Abrir no Google Maps â"})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Outras Formas de Contato"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/atendimento/fale-conosco",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Fale Conosco"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Envie sua mensagem através do formulário online"})]}),e.jsxs("a",{href:"/atendimento/ouvidoria",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Ouvidoria"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Elogios, reclamações, sugestões e denúncias"})]}),e.jsxs("a",{href:"/atendimento/esic",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"e-SIC"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Solicitações de acesso à informação pública"})]})]})]})]})}),e.jsx(vy,{local:"contato"})]}),e.jsx(ge,{})]})}const JT=[{ano:"1670â1690",titulo:"O povoado do Funil",descricao:"O núcleo que deu origem à cidade surgiu com o nome de Funil, no perÃodo em que a busca de ouro na região era mais intensa. O nome vem da própria geografia: o encontro dos córregos Cabaceiras e Gurita desenha, no terreno, a forma de um funil.",icone:xt,tipo:"historia"},{ano:"Século XIX",titulo:"De Funil a Alegria",descricao:"O povoado passou a ser chamado de Alegria, por causa da Fazenda Alegre, que existia na região. O nome não pegou entre os moradores.",icone:ti,tipo:"historia"},{ano:"1948",titulo:"A criação do distrito",descricao:'Pela Lei nº 336, de 27 de dezembro de 1948, o antigo povoado do Funil foi elevado a distrito, com o nome de Funilândia, e anexado ao municÃpio de Jequitibá. A mudança do nome atendeu à população, insatisfeita com "Alegria".',icone:Ee,tipo:"lei"},{ano:"1962",titulo:"Emancipação polÃtica",descricao:"A Lei estadual nº 2.764, de 30 de dezembro de 1962, que estabeleceu a Divisão Administrativa do Estado de Minas Gerais, criou o municÃpio de Funilândia, desmembrado de Jequitibá. à a data que a bandeira e o brasão registram, e o aniversário da cidade.",icone:Ua,tipo:"lei"},{ano:"1963",titulo:"A instalação do municÃpio",descricao:"O municÃpio foi instalado em 1º de março de 1963, quando passou a existir de fato, com administração própria.",icone:dx,tipo:"lei"},{ano:"2017",titulo:"O distrito de Núcleo João Pinheiro",descricao:"A Lei municipal nº 947, de 28 de julho de 2017, criou o distrito de Núcleo João Pinheiro, que hoje ocupa cerca de um terço do território municipal.",icone:Ee,tipo:"lei"}],YT=[{rotulo:"População",valor:"4.686",nota:"Censo IBGE 2022"},{rotulo:"Ãrea territorial",valor:"199,8 km²",nota:"IBGE"},{rotulo:"Código IBGE",valor:"3127206",nota:""},{rotulo:"Distrito",valor:"1",nota:"Núcleo João Pinheiro"}],QT=[["Coroa mural de quatro torres","Identifica a condição de municÃpio."],["Flechas cruzadas","A ocupação antiga do território e os caminhos dos bandeirantes que cortaram a região no ciclo do ouro."],["Cruz latina","A devoção a Nossa Senhora do Rosário, padroe
174ira do municÃpio."],["Arvoredo","A vegetação nativa e o cerrado mineiro."],["Campo em ponta","A forma de funil, do encontro dos córregos que deu nome ao lugar."],["Espigas de milho","A lavoura, base da economia local."],["30-12-1962","A data da lei que criou o municÃpio."]];function XT(){const{instituicao:t,nomeCasa:s}=st(),i=t?.municipio??"Funilândia",n=t?.gentilico??"funilandense";return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1 pb-12 md:pb-16",children:[e.jsx("section",{className:"hero-institucional py-12 md:py-16 mb-10",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"A Prefeitura"},{label:"História"}]}),e.jsxs("div",{className:"flex items-center gap-4 mb-4 mt-8",children:[e.jsx("div",{className:"w-14 h-14 bg-white/15 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx(ei,{size:28})}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl md:text-4xl font-bold",children:["História de ",i]}),e.jsx("p",{className:"text-white/85 text-base md:text-lg mt-1",children:"Do povoado do Funil ao municÃpio mineiro"})]})]}),e.jsx("p",{className:"text-white/90 max-w-3xl leading-relaxed",children:"O nome nasceu do terreno. Onde os córregos Cabaceiras e Gurita se encontram, a paisagem afunila â e foi assim que os primeiros moradores batizaram o lugar, no tempo em que a busca de ouro movia o interior de Minas. Três séculos depois, o mesmo desenho está no brasão da cidade."})]})}),e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("section",{className:"mb-12",children:e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:YT.map(l=>e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-5 shadow-sm",children:[e.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:l.rotulo}),e.jsx("div",{className:"text-2xl font-bold text-gray-900 mt-1",children:l.valor}),l.nota&&e.jsx("div",{className:"text-xs text-gray-500 mt-1",children:l.nota})]},l.rotulo))})}),e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Linha do tempo"}),e.jsx("ol",{className:"relative border-l-2 border-institutional/25 ml-3 space-y-8",children:JT.map(l=>{const d=l.icone;return e.jsxs("li",{className:"ml-8",children:[e.jsx("span",{className:"absolute -left-[1.30rem] w-10 h-10 bg-institutional text-white rounded-full flex items-center justify-center shadow","aria-hidden":"true",children:e.jsx(d,{size:18})}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap mb-2",children:[e.jsx("span",{className:"text-sm font-bold text-institutional",children:l.ano}),l.tipo==="lei"&&e.jsx("span",{className:"text-[0.68rem] font-bold uppercase tracking-wide text-emerald-800 bg-emerald-50 border border-emerald-200 rounded px-1.5 py-0.5",children:"Ato oficial"})]}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:l.titulo}),e.jsx("p",{className:"text-gray-700 leading-relaxed",children:l.descricao})]})]},l.titulo)})})]}),e.jsx("section",{className:"mb-12",children:e.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-11 h-11 bg-amber-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(ht,{size:20,className:"text-amber-800","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:"A tradição de Borba Gato"}),e.jsx("p",{className:"text-gray-700 leading-relaxed mb-3",children:"Conta-se na região que, por volta de 1670, um bandeirante de barbas longas e brancas â a quem a população chamava Borba Gato â desceu o rio das Velhas e fez parada à s margens de uma lagoa, onde teria erguido uma capela e um cemitério, dando inÃcio ao povoamento. Anos depois teria chegado Pulquéria Maria Marques, com cinco filhos."}),e.jsxs("p",{className:"text-sm text-amber-900",children:[e.jsx("strong",{children:"Registro de tradição oral."})," A Prefeitura publica esta passagem como memória corrente do municÃpio, e não como fato documentado: não há, até aqui, fonte primária que a comprove. Se você tem documento, fotografia ou registro
174sobre isso, escreva à "," ",e.jsx("a",{href:"/atendimento/fale-conosco",className:"underline font-semibold",children:"Prefeitura"})," ","â a história do municÃpio se escreve com quem a viveu."]})]})]})})}),e.jsx("section",{className:"mb-12",children:e.jsxs("figure",{className:"bg-white rounded-lg border border-gray-200 overflow-hidden shadow-sm",children:[e.jsx("img",{src:"/images/capa.jpg",alt:`Igreja matriz de ${i} vista da praça: fachada amarela com duas torres encimadas por cruzes, o monograma de Cristo no frontão e o largo arborizado à frente`,className:"w-full object-cover max-h-[26rem]",loading:"lazy"}),e.jsxs("figcaption",{className:"px-6 py-4 text-sm text-gray-600 leading-relaxed",children:["A igreja matriz e a praça, no centro de ",i,". A padroeira do municÃpio é ",e.jsx("strong",{className:"text-gray-800",children:"Nossa Senhora do Rosário"}),", cuja devoção o brasão da cidade registra na cruz latina."]})]})}),e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Os sÃmbolos do municÃpio"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Bandeira"}),e.jsx("img",{src:"/images/bandeira-funilandia.jpg",alt:`Bandeira de ${i}: faixas horizontais verdes, brancas e vermelhas, com o brasão do municÃpio ao centro`,className:"w-full max-w-md rounded border border-gray-200",loading:"lazy"}),e.jsx("p",{className:"text-sm text-gray-600 mt-4 leading-relaxed",children:"As faixas trazem o brasão ao centro, com a data da lei de criação do municÃpio e o nome da cidade."})]}),e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Brasão"}),e.jsx("img",{src:"/images/brasao-funilandia.jpg",alt:`Brasão de ${i}: escudo com coroa mural de quatro torres, flechas cruzadas, cruz latina, arvoredo e espigas de milho, sobre listel com a data 30-12-1962`,className:"w-full max-w-xs mx-auto",loading:"lazy"}),e.jsx("dl",{className:"mt-5 space-y-2.5",children:QT.map(([l,d])=>e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-semibold text-gray-900",children:l}),e.jsx("dd",{className:"text-sm text-gray-600 leading-relaxed",children:d})]},l))})]})]})]}),e.jsx("section",{className:"mb-12",children:e.jsxs("div",{className:"bg-institutional text-white rounded-lg shadow-md p-8",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-3",children:[i," hoje"]}),e.jsxs("p",{className:"text-white/85 leading-relaxed mb-4",children:["Na microrregião de Sete Lagoas, a 80 quilômetros de Belo Horizonte,"," ",i," faz divisa com Jequitibá, Sete Lagoas, Prudente de Morais, Matozinhos e Baldim. Quem nasce aqui é ",n,". A padroeira é Nossa Senhora do Rosário."]}),e.jsxs("p",{className:"text-white/85 leading-relaxed",children:["A ",s," atende o cidadão pelo Gabinete e pelas secretarias municipais, com os serviços, os canais de atendimento e os dados de transparência publicados neste portal."]})]})}),e.jsxs("section",{className:"mb-4",children:[e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-3",children:"Fontes"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-2 leading-relaxed",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"text-gray-700",children:"Lei estadual nº 2.764, de 30 de dezembro de 1962"})," ","â Divisão Administrativa do Estado de Minas Gerais, Anexo nº 1, item 273. Texto publicado pela Assembleia Legislativa de Minas Gerais."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-gray-700",children:"IBGE"})," â histórico e formação administrativa do municÃpio; população (Censo 2022), área territorial e divisão distrital."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-gray-700",children:"Lei nº 336, de 27 de dezembro de 1948"})," ","â criação do distrito de Funilândia."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-gray-700",children:"Lei municipal nº 947, de 28 de julho de 2017"})," ","â criação do distrito de Núcleo João Pinheiro."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-gray-700",children:"Bandeira e brasão"})," â imagens de domÃnio público, de autoria da Prefeitura Municipal de ",i,"."]})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-4 leading-relaxed",children:["Encontrou erro ou tem documento que complete esta página? Escreva pelo"," ",e.jsx("a",{href:"/atendimento/fale-conosco",className:"text-institutional underline font-semibold",children:"Fale Conosco"})," ","ou pelo"," ",e.jsx("a",{href:"/atendimento/esic",className:"text-institutional underline font-semibold",children:"e-SIC"}),"."]})]})]})]}),e.jsx(ge,{})]})}const ZT={users:ot,user:Nt,briefcase:pr,shield:Rs,bookmark:o2,fileText:he,home:ti,bookOpen:ei,activity:s2,tool:fx,settings:S2,search:yt,info:ht,messageCircle:So,shoppingCart:k2,barChart:on,award:Ua,archive:i2,clipboard:ox,dollar:ut,folder:Ic,globe:ux,heart:f2,key:Hc,layers:g2,mail:Ze,monitor:mx,phone:zt,pieChart:w2,star:Hr,target:E2,truck:A2},e8=t=>ZT[t]??pr,Ov={azul:{forte:{bg:"#1e40af",texto:"#ffffff",borda:"#1e3a8a"},pastel:{bg:"#dbeafe",texto:"#1e40af",borda:"#bfdbfe"}},azulMarinho:{forte:{bg:"#1e293b",texto:"#ffffff",borda:"#0f172a"},pastel:{bg:"#e2e8f0",texto:"#1e293b",borda:"#cbd5e1"}},verde:{forte:{bg:"#15803d",texto:"#ffffff",borda:"#14532d"},pastel:{bg:"#dcfce7",texto:"#15803d",borda:"#bbf7d0"}},teal:{forte:{bg:"#0f766e",texto:"#ffffff",borda:"#115e59"},pastel:{bg:"#ccfbf1",texto:"#0f766e",borda:"#99f6e4"}},roxo:{forte:{bg:"#6b21a8",texto:"#ffffff",borda:"#581c87"},pastel:{bg:"#f3e8ff",texto:"#6b21a8",borda:"#e9d5ff"}},rosa:{forte:{bg:"#be185d",texto:"#ffffff",borda:"#9d174d"},pastel:{bg:"#fce7f3",texto:"#be185d",borda:"#fbcfe8"}},vermelho:{forte:{bg:"#b91c1c",texto:"#ffffff",borda:"#991b1b"},pastel:{bg:"#fee2e2",texto:"#b91c1c",borda:"#fecaca"}},laranja:{forte:{bg:"#c2410c",texto:"#ffffff",borda:"#9a3412"},pastel:{bg:"#ffedd5",texto:"#c2410c",borda:"#fed7aa"}},amarelo:{forte:{bg:"#b45309",texto:"#ffffff",borda:"#92400e"},pastel:{bg:"#fef3c7",texto:"#b45309",borda:"#fde68a"}},marrom:{forte:{bg:"#78350f",texto:"#ffffff",borda:"#451a03"},pastel:{bg:"#f5e6d3",texto:"#78350f",borda:"#e7d2b3"}}},t8=(t,s)=>(Ov[t]??Ov.azul)[s],a8=24,od=16,jo=24,km=33,Jr="#94a3b8";function s8({nos:t,resolverNomes:s}){const i=b.useMemo(()=>{const m=new Map;for(const x of t){const p=x.parentId;m.has(p)||m.set(p,[]),m.get(p).push(x)}return m.forEach(x=>x.sort((p,g)=>p.ordem-g.ordem)),m},[t]),n=b.useMemo(()=>t.find(m=>m.parentId===null),[t]),l=b.useRef(null),[d,u]=b.useState([]);return b.useLayoutEffect(()=>{const m=l.current;if(!m)return;const x=()=>{const g=m.offsetWidth,v=m.getBoundingClientRect(),j=g>0?v.width/g:1,N=v.top,k=v.left,S=m.querySelectorAll("[data-rotulo-marker]"),C=[];
174S.forEach((T,w)=>{const _=T.getAttribute("data-rotulo-marker")||"";if(!_)return;const E=T.getBoundingClientRect(),O=j>0?(E.top-N)/j:0;C.push({key:`${_}-${w}-${Math.round((E.left-k)/Math.max(j,.001))}`,texto:_,topY:O})}),u(C)};x();const p=new ResizeObserver(x);return p.observe(m),()=>p.disconnect()},[t]),n?e.jsxs("div",{ref:l,style:{position:"relative",display:"inline-block",paddingLeft:280,paddingRight:32,paddingTop:32,paddingBottom:32},children:[d.map(m=>e.jsx("div",{style:{position:"absolute",top:m.topY+6,left:32,width:224,textAlign:"right",paddingRight:16,whiteSpace:"nowrap",fontSize:13,fontWeight:700,color:"#475569",letterSpacing:.5,textTransform:"uppercase",pointerEvents:"none"},children:m.texto},m.key)),e.jsx(Rx,{no:n,indice:i,resolverNomes:s})]}):e.jsx("div",{style:{padding:24,color:"#64748b",fontStyle:"italic"},children:"Organograma ainda não foi configurado."})}function r8({no:t,pessoas:s}){const i=t8(t.cor,t.variante),n=e8(t.icone),l=!!t.cargoTexto||s.length>0;return e.jsxs("div",{style:{width:264,backgroundColor:i.bg,color:i.texto,borderColor:i.borda,borderWidth:1,borderStyle:"solid",borderRadius:10,padding:"12px 14px",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",display:"flex",alignItems:"center",gap:12},children:[e.jsx("div",{style:{flexShrink:0,width:43,height:43,borderRadius:10,backgroundColor:"rgba(255,255,255,0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(n,{size:24,color:i.texto})}),e.jsxs("div",{style:{minWidth:0,flex:1},children:[e.jsx("div",{style:{fontWeight:700,fontSize:14,lineHeight:1.2,textTransform:"uppercase",letterSpacing:.3,wordBreak:"break-word"},children:t.titulo}),t.subtitulo&&e.jsx("div",{style:{fontSize:13,lineHeight:1.25,marginTop:4,opacity:.85,wordBreak:"break-word"},children:t.subtitulo}),l&&e.jsxs("div",{style:{marginTop:6,paddingTop:6,borderTop:"1px solid rgba(255,255,255,0.18)",fontSize:12,lineHeight:1.3,opacity:.95},children:[t.cargoTexto&&e.jsx("div",{style:{fontStyle:"italic",wordBreak:"break-word"},children:t.cargoTexto}),s.map((d,u)=>d.link?e.jsx(ie,{to:d.link,style:{display:"block",fontWeight:600,wordBreak:"break-word",color:i.texto,textDecoration:"underline",textDecorationColor:"rgba(255,255,255,0.5)",textUnderlineOffset:2},children:d.nome},u):e.jsx("div",{style:{fontWeight:600,wordBreak:"break-word"},children:d.nome},u))]})]})]})}function Rx({no:t,indice:s,resolverNomes:i}){const n=s.get(t.id)??[],l=i?i(t):[],d=n.length>0,u=t.orientacaoFilhos,m=e.jsxs("div",{style:{position:"relative"},children:[t.rotuloProprio&&e.jsx(zx,{texto:t.rotuloProprio}),e.jsx(r8,{no:t,pessoas:l})]});return u==="vertical"&&d?e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[m,e.jsx("div",{style:{width:2,height:od,backgroundColor:Jr}}),e.jsx(n8,{filhos:n,indice:s,rotulo:t.rotuloNivelFilhos,resolverNomes:i})]}):e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[m,d&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{width:2,height:od,backgroundColor:Jr}}),e.jsx(i8,{filhos:n,indice:s,rotulo:t.rotuloNivelFilhos,resolverNomes:i})]})]})}function i8({filhos:t,indice:s,rotulo:i,resolverNomes:n}){const l=t.length>1;return e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",position:"relative"},children:[i&&e.jsx(zx,{texto:i}),l&&e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:2,backgroundColor:Jr}}),e.jsx("div",{style:{display:"flex",gap:a8,paddingTop:l?jo:0},children:t.map(d=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[l&&e.jsx("div",{style:{width:2,height:jo,backgroundColor:Jr,marginTop:-jo}}),e.jsx(Rx,{no:d,indice:s,resolverNomes:n})]},d.id))})]})}function n8({filhos:t,indice:s,rotulo:i,resolverNomes:n}){return e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",position:"relative"},children:[i&&e.jsx(zx,{texto:i}),e.jsx("div",{style:{display:"flex",flexDirection:"column"},children:t.map((l,d)=>{const u=d===t.length-1;return e.jsxs("div",{style:{position:"relative",paddingLeft:jo,marginBottom:u?0:od},children:[e.jsx("div",{style:{position:"absolute",top:0,height:km,left:0,width:2,backgroundColor:Jr}}),!u&&e.jsx("div",{style:{position:"absolute",top:km,bottom:-od,left:0,width:2,backgroundColor:Jr}}),e.jsx("div",{style:{position:"absolute",top:km-1,left:0,width:jo,height:2,backgroundColor:Jr}}),e.jsx(Rx,{no:l,indice:s,resolverNomes:n})]},l.id)})})]})}function zx({texto:t}){return e.jsx("span",{"data-rotulo-marker":t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,width:0,height:0,overflow:"hidden",pointerEvents:"none"}})}function o8({children:t}){const s=b.useRef(null),i=b.useRef(null),[n,l]=b.useState(1),[d,u]=b.useState({w:0,h:0});return b.useLayoutEffect(()=>{const m=s.current,x=i.current;if(!m||!x)return;const p=()=>{const v=m.clientWidth,j=x.scrollWidth,N=x.scrollHeight;if(j===0||v===0)return;const k=j>v?v/j:1;l(k),u({w:j,h:N})};p();const g=new ResizeObserver(p);
174return g.observe(m),g.observe(x),()=>g.disconnect()},[]),e.jsx("div",{ref:s,style:{width:"100%",overflow:"hidden",display:"flex",justifyContent:"center"},children:e.jsx("div",{style:{width:d.w*n||"auto",height:d.h*n||"auto",position:"relative",flexShrink:0},children:e.jsx("div",{ref:i,style:{transformOrigin:"top left",transform:`scale(${n})`,position:"absolute",top:0,left:0,display:"inline-block"},children:t})})})}const Cm="id, nome_parlamentar, nome_completo, sexo, email, telefone, site, redes_sociais, profissao, escolaridade, biografia, locais_atuacao, numero_gabinete, foto_url, ativo",Rv=["presidente","vice_presidente","primeiro_secretario","segundo_secretario","terceiro_secretario","quarto_secretario"];function Em(t){return{...t,redes_sociais:t?.redes_sociais??{}}}function Ja(t){return t.code==="42501"||t.code==="PGRST301"?new ee("Conteúdo não disponÃvel para consulta pública.",t.code):new ee(t.message||"Não foi possÃvel carregar os dados.",t.code)}function l8(t){const s=(t??[]).filter(n=>!n.data_desfiliacao);return(s.length?s:t??[]).sort((n,l)=>String(l.data_filiacao??"").localeCompare(String(n.data_filiacao??"")))[0]}const c8={async legislaturaAtual(){const{data:t,error:s}=await X.from("legislaturas").select("*").eq("status","ativa").is("deletado_em",null).order("numero",{ascending:!1}).limit(1).maybeSingle();if(s)throw Ja(s);return t??null},async legislaturas(){const{data:t,error:s}=await X.from("legislaturas").select("*").is("deletado_em",null).order("numero",{ascending:!1});if(s)throw Ja(s);return t??[]},async totalPorLegislatura(){const{data:t,error:s}=await X.from("mandatos").select("legislatura_id").is("deletado_em",null);if(s)throw Ja(s);const i={};for(const n of t??[]){const l=n.legislatura_id;i[l]=(i[l]??0)+1}return i},async vereadores(t){const s=t?{id:t}:await this.legislaturaAtual();if(!s)return[];const{data:i,error:n}=await X.from("mandatos").select(`situacao, titular, votos_recebidos, 175 parlamentar:parlamentares(${Cm}, 176 filiacoes:filiacoes_partidarias(data_filiacao, data_desfiliacao, 177 partido:partidos(sigla, nome)))`).eq("legislatura_id",s.id).is("deletado_em",null);if(n)throw Ja(n);const l=await this.cargosDaMesa(s.id);return(i??[]).filter(d=>d.parlamentar).map(d=>{const u=l8(d.parlamentar.filiacoes);return{...Em(d.parlamentar),partido:u?.partido?.sigla??null,partido_nome:u?.partido?.nome??null,cargo_mesa:l[d.parlamentar.id]??null,situacao:d.situacao,titular:!!d.titular,votos_recebidos:d.votos_recebidos??null}}).sort(d8)},async cargosDaMesa(t){const{data:s,error:i}=await X.from("mesas_diretoras").select("id, atual, data_inicio, mesas_diretoras_membros(cargo, parlamentar_id)").eq("legislatura_id",t).is("deletado_em",null).order("atual",{ascending:!1}).order("data_inicio",{ascending:!1}).limit(1);if(i)throw Ja(i);const n=(s??[])[0],l={};for(const d of n?.mesas_diretoras_membros??[])l[d.parlamentar_id]=d.cargo;return l},async mesaDiretora(t){return(await this.vereadores(t)).filter(i=>i.cargo_mesa!==null)},async porIds(t){if(t.length===0)return[];const{data:s,error:i}=await X.from("parlamentares").select(Cm).in("id",t).is("deletado_em",null);if(i)throw Ja(i);return(s??[]).map(Em)},async obter(t){const{data:s,error:i}=await X.from("parlamentares").select(Cm).eq("id",t).is("deletado_em",null).maybeSingle();if(i)throw Ja(i);return s?Em(s):null},async mandatosDe(t){const{data:s,error:i}=await X.from("mandatos").select("situacao, titular, votos_recebidos, coligacao, legislatura:legislaturas(numero, data_inicio, data_fim, status)").eq("parlamentar_id",t).is("deletado_em",null);if(i)throw Ja(i);return(s??[]).filter(n=>n.legislatura).sort((n,l)=>(l.legislatura?.numero??0)-(n.legislatura?.numero??0))},async filiacoesDe(t){const{data:s,error:i}=await X.from("filiacoes_partidarias").select("data_filiacao, data_desfiliacao, partido:partidos(sigla, nome)").eq("parlamentar_id",t).is("deletado_em",null).order("data_filiacao",{ascending:!1,nullsFirst:!1});if(i)throw Ja(i);return s??[]},async gabineteDe(t){const{data:s,error:i}=await X.from("gabinetes").select("nome, numero, localizacao, telefone, email").eq("parlamentar_id",t).eq("ativo",!0).is("deletado_em",null).maybeSingle();if(i)throw Ja(i);return s??null}};function d8(t,s){const i=l=>l.cargo_mesa?Rv.indexOf(l.cargo_mesa):Rv.length,n=i(t)-i(s);return n!==0?n:t.nome_parlamentar.localeCompare(s.nome_parlamentar,"pt-BR")}function u8(){const{instituicao:t}=st(),[s,i]=b.useState([]),[n,l]=b.useState(new Map),[d,u]=b.useState(!0),[m,x]=b.useState(!1);qy({title:"Organograma",description:"Estrutura organizacional da Casa, com setores e responsáveis."});const p=b.useCallback(async()=>{u(!0),x(!1);try{const j=await NA.desenho();i(j);const N={servidor:[],vereador:[]};for(const S of j)!S.pessoaTipo||!S.pessoasIds?.length||N[S.pessoaTipo].push(...S.pessoasIds);const k=new Map;if(N.servidor.length){const S=await _x.listar({em:{id:[...new Set(N.servidor)]}}).catch(()=>[]);for(const C of S)C.id&&C.nome&&k.set(C.id,C.nome)}if(N.vereador.length){const S=await c8.porIds([...new Set(N.vereador)]).catch(()=>[]);for(const C of S)k.set(C.id,C.nome_parlamentar)}l(k)}catch{x(!0)}finally{u(!1)}},[]);b.useEffect(()=>{p()},[p]);const g=b.useCallback(j=>(j.pessoasIds??[]).map(N=>{const k=n.get(N);return k?j.pessoaTipo==="vereador"?{nome:k,link:`/parlamentares/vereadores/${N}`}:{nome:k}:null}).filter(N=>N!==null),[n]),v=b.useMemo(()=>h8(s),[s]);return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
177),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Institucional"},{label:"Organograma",path:"/institucional/organograma"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(ot,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Organograma"}),e.jsxs("p",{className:"text-blue-100 text-lg mt-2",children:["Estrutura organizacional ",t?`da ${t.nome}`:"da Casa"]})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8",children:d?e.jsx("p",{className:"text-center text-gray-500 py-12",children:"Carregandoâ¦"}):m?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("p",{className:"text-gray-700",children:"Não foi possÃvel carregar o organograma."}),e.jsx("button",{onClick:()=>{p()},className:"mt-3 px-4 py-2 border border-gray-300 rounded-md text-sm hover:bg-gray-50",children:"Tentar novamente"})]}):s.length===0?e.jsx("p",{className:"text-center text-gray-500 py-12",children:"O organograma ainda não foi publicado."}):e.jsx(o8,{children:e.jsx(s8,{nos:s,resolverNomes:g})})}),v.length>0&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 md:p-8 mt-6",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-1",children:"Estrutura em lista"}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Mesma informação do desenho, em formato de leitura e impressão."}),e.jsx("ul",{className:"space-y-1",children:v.map(({no:j,nivel:N})=>e.jsxs("li",{style:{paddingLeft:N*20},className:"text-sm text-gray-800 border-l-2 border-gray-100 pl-3 py-1",children:[e.jsx("span",{className:"font-semibold",children:j.titulo}),j.sigla?e.jsxs("span",{className:"text-gray-500",children:[" (",j.sigla,")"]}):null,j.subtitulo?e.jsxs("span",{className:"text-gray-600",children:[" â ",j.subtitulo]}):null,g(j).length>0&&e.jsxs("span",{className:"text-gray-600",children:[" ","· ",g(j).map(k=>k.nome).join(", ")]})]},j.id))})]})]})})]}),e.jsx(ge,{})]})}function h8(t){const s=new Map;for(const l of t){const d=l.parentId;s.has(d)||s.set(d,[]),s.get(d).push(l)}s.forEach(l=>l.sort((d,u)=>d.ordem-u.ordem));const i=[],n=(l,d)=>{for(const u of s.get(l)??[])i.push({no:u,nivel:d}),n(u.id,d+1)};return n(null,0),i}function m8(){const[t,s]=b.useState(null),[i,n]=b.useState(!0);b.useEffect(()=>{(async()=>{const{data:d}=await X.from("instituicao").select("brasao_url, brasao_descricao, bandeira_url, bandeira_descricao, hino_letra, hino_autor, hino_audio_url, municipio").limit(1).maybeSingle();d&&s(d),n(!1)})()},[]);const l=!i&&t&&!t.brasao_url&&!t.bandeira_url&&!t.hino_letra&&!t.hino_audio_url;return e.jsxs("div",{className:"min-h-screen flex flex-col bg-gray-50",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"A Prefeitura"},{label:"SÃmbolos Municipais"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Ua,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"SÃmbolos Municipais"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:`Brasão, bandeira e hino ${t?.municipio?`de ${t.municipio}`:"do MunicÃpio"}`})]})]})]})}),e.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-10",children:[i&&e.jsx("p",{className:"text-center text-gray-500",children:"Carregandoâ¦"}),l&&e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 text-center",children:[e.jsx(ht,{className:"mx-auto text-gray-400 mb-3",size:32}),e.jsx("p",{className:"text-gray-600",children:"Os sÃmbolos municipais ainda não foram publicados pela Prefeitura."})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[t?.brasao_url&&e.jsxs("section",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("h2",{className:"font-bold text-gray-900 mb-4 flex items-center gap-2",children:[e.jsx(Ua,{className:"text-institutional"})," Brasão"]}),e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("img",{src:t.brasao_url,alt:`Brasão de ${t.municipio}`,className:"max-h-56 object-contain"})}),t.brasao_descricao&&e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed whitespace-pre-line",children:t.brasao_descricao})]}),t?.bandeira_url&&e.jsxs("section",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("h2",{className:"font-bold text-gray-900 mb-4 flex items-center gap-2",children:[e.jsx(dx,{className:"text-institutional"})," Bandeira"]}),e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("img",{src:t.bandeira_url,alt:`Bandeira de ${t.municipio}`,className:"max-h-56 object-contain border border-gray-200"})}),t.bandeira_descricao&&e.jsx("p",{className:"text-sm text-gray-700 leading-relaxed whitespace-pre-line",children:t.bandeira_descricao})]})]}),(t?.hino_letra||t?.hino_audio_url)&&e.jsxs("section",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mt-6",children:[e.jsxs("h2",{className:"font-bold text-gray-900 mb-1 flex items-center gap-2",children:[e.jsx(en,{className:"text-institutional"})," Hino"]}),t.hino_autor&&e.jsx("p",{className:"text-sm text-gray-500 mb-4",children:t.hino_autor}),t.hino_audio_url&&e.jsx("div",{className:"mb-6",children:e.jsx("audio",{controls:!0,src:t.hino_audio_url,className:"w-full","aria-label":`Ãudio do hino de ${t.municipio}`})}),t.hino_letra&&e.jsx("div",{className:"bg-gray-50 rounded-lg border border-gray-200 p-6",children:e.jsx("p",{className:"text-gray-800 leading-loose whitespace-pre-line text-center",children:t.hino_letra})})]})]})]}),e.jsx(ge,{})]})}const Vy={async telefones(){const{data:t,error:s}=await X.from("telefones_uteis").select("id, nome, setor, telefone, ramal, email, horario, observacao").order("ordem",{ascending:!0}).order("nome",{ascending:!0});if(s)throw new ee("Não foi possÃvel carregar os telefones.",s.code);return t??[]},async links(){const{data:t,error:s}=await X.from("links_uteis").select("id, titulo, url, descricao, categoria").order("categoria",{ascending:!0,nullsFirst:!1}).order("ordem",{ascending:!0}).order("titulo",{ascending:!0});if(s)throw new ee("Não foi possÃvel carregar os links.",s.code);return t??[]}};function x8(t){const s=new Map;
177for(const i of t){const n=i.categoria?.trim()||"Outros",l=s.get(n);l?l.push(i):s.set(n,[i])}return[...s.entries()]}function f8(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null);b.useEffect(()=>{(async()=>{try{s(await Vy.telefones())}catch{d("Não foi possÃvel carregar os telefones agora.")}finally{n(!1)}})()},[]);const u=new Map;for(const x of t){const p=x.setor?.trim()||"Geral",g=u.get(p);g?g.push(x):u.set(p,[x])}const m=x=>x.replace(/[^\d+]/g,"");return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"A Prefeitura"},{label:"Telefones Ãteis"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(zt,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Telefones Ãteis"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"Contatos de atendimento da Prefeitura Municipal de Funilândia."})]})]})]})}),e.jsx("div",{className:"bg-gray-50 py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[i&&e.jsx("p",{className:"py-12 text-center text-gray-600",children:"Carregando telefonesâ¦"}),l&&e.jsxs("div",{role:"alert",className:"flex items-start gap-3 rounded-lg border border-amber-200 bg-amber-50 p-4 text-amber-900",children:[e.jsx(ht,{className:"mt-0.5 flex-shrink-0","aria-hidden":"true"}),e.jsx("p",{className:"text-sm",children:l})]}),!i&&!l&&t.length===0&&e.jsx("p",{className:"py-12 text-center text-gray-600",children:"Nenhum telefone cadastrado ainda."}),!i&&!l&&t.length>0&&e.jsx("div",{className:"space-y-6",children:[...u.entries()].map(([x,p])=>e.jsxs("section",{"aria-labelledby":`setor-${x.replace(/\s+/g,"-")}`,children:[e.jsx("h2",{id:`setor-${x.replace(/\s+/g,"-")}`,className:"mb-3 text-lg font-bold text-institutional",children:x}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:p.map(g=>e.jsxs("li",{className:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm",children:[e.jsx("p",{className:"mb-2 text-sm font-semibold leading-snug text-gray-900",children:g.nome}),e.jsxs("a",{href:`tel:${m(g.telefone)}`,"aria-label":`Ligar para ${g.nome}, telefone ${g.telefone}`,className:`inline-flex min-h-[44px] items-center gap-2 text-base font-bold 178 text-institutional hover:underline 179 focus-visible:outline focus-visible:outline-2 180 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:[e.jsx(zt,{size:16,"aria-hidden":"true"}),g.telefone,g.ramal&&e.jsxs("span",{className:"text-sm font-normal text-gray-600",children:["ramal ",g.ramal]})]}),g.email&&e.jsxs("a",{href:`mailto:${g.email}`,className:"mt-1 flex items-center gap-2 break-all text-xs text-gray-600 hover:text-institutional",children:[e.jsx(Ze,{size:13,"aria-hidden":"true"}),g.email]}),g.horario&&e.jsxs("p",{className:"mt-2 flex items-start gap-2 text-xs text-gray-600",children:[e.jsx(mt,{size:13,className:"mt-0.5 flex-shrink-0","aria-hidden":"true"}),g.horario]}),g.observacao&&e.jsx("p",{className:"mt-1 text-xs text-gray-500",children:g.observacao})]},g.id))})]},x))})]})})]}),e.jsx(ge,{})]})}function p8(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState(null);b.useEffect(()=>{(async()=>{try{s(await Vy.links())}catch{d("Não foi possÃvel carregar os links agora.")}finally{n(!1)}})()},[]);const u=x8(t);return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"A Prefeitura"},{label:"Links Ãteis"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(ud,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Links Ãteis"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"Ãrgãos, serviços e sistemas de consulta frequente. Todos abrem em nova aba."})]})]})]})}),e.jsx("div",{className:"bg-gray-50 py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[i&&e.jsx("p",{className:"py-12 text-center text-gray-600",children:"Carregando linksâ¦"}),l&&e.jsxs("div",{role:"alert",className:"flex items-start gap-3 rounded-lg border border-amber-200 bg-amber-50 p-4 text-amber-900",children:[e.jsx(ht,{className:"mt-0.5 flex-shrink-0","aria-hidden":"true"}),e.jsx("p",{className:"text-sm",children:l})]}),!i&&!l&&t.length===0&&e.jsx("p",{className:"py-12 text-center text-gray-600",children:"Nenhum link cadastrado ainda."}),!i&&!l&&t.length>0&&e.jsx("div",{className:"space-y-6",children:u.map(([m,x])=>e.jsxs("section",{"aria-labelledby":`cat-${m.replace(/\s+/g,"-")}`,children:[e.jsx("h2",{id:`cat-${m.replace(/\s+/g,"-")}`,className:"mb-3 text-lg font-bold text-institutional",children:m}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:x.map(p=>e.jsx("li",{children:e.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer","aria-label":`${p.titulo}${p.descricao?` â ${p.descricao}`:""} (abre em nova aba)`,className:`group flex min-h-[44px] flex-col rounded-lg border border-gray-200 181 bg-white p-4 shadow-sm transition-all duration-200 182 hover:-translate-y-0.5 hover:border-institutional hover:shadow-md 183 focus-visible:outline focus-visible:outline-2 184 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:[e.jsxs("span",{className:"mb-1 flex items-start justify-between gap-2",children:[e.jsx("span",{className:"text-sm font-bold leading-snug text-gray-900",children:p.titulo}),e.jsx(Ke,{size:14,className:"mt-0.5 flex-shrink-0 text-gray-500 transition-colors group-hover:text-institutional","aria-hidden":"true"})]}),p.descricao&&e.jsx("span",{className:"text-xs leading-snug text-gray-600",children:p.descricao})]})},p.id))})]},m))})]})})]}),e.jsx(ge,{})]})}const fo="https://camarafunilandia.mg.gov.br",g8=[{id:"vereadores",titulo:"Vereadores",descricao:"Os nove vereadores da legislatura 2025/2028 e seus contatos.",url:`${fo}/legislatura-2025-2028/`},{id:"mesa-diretora",titulo:"Mesa Diretora",descricao:"Presidência, vice-presidência e secretaria da Mesa Diretora.",url:`${fo}/mesa-diretora-2021/`},{id:"comissoes",titulo:"Comissões",descricao:"Comissões permanentes e sua composição.",url:`${fo}/comissoes-permanentes-2/`},{id:"materias-legislativas",titulo:"Matérias Legislativas",descricao:"Projetos de lei, requerimentos, moções, atas e pautas.",url:`${fo}/projeto_lei_ordinaria/`}
184],b8="https://ilai.memory.com.br/#/entidades/login/9A7F6Q/2",v8=fo;function y8(){return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx(Ce,{items:[{label:"A Prefeitura"},{label:"Câmara Municipal"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(ti,{size:32,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Câmara Municipal de Funilândia"}),e.jsx("p",{className:"text-blue-100 text-base md:text-lg mt-2",children:"O Poder Legislativo do municÃpio tem portal próprio. Os links abaixo levam ao site da Câmara, onde ficam os vereadores, a Mesa Diretora, as comissões e as matérias legislativas."})]})]})]})}),e.jsx("div",{className:"bg-gray-50 py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsxs("div",{className:"mb-6 flex items-start gap-3 rounded-lg border border-primary-200 bg-primary-50 p-4",role:"note",children:[e.jsx(ht,{className:"mt-0.5 flex-shrink-0 text-institutional","aria-hidden":"true"}),e.jsxs("p",{className:"text-sm text-gray-700",children:["Este é o portal da ",e.jsx("strong",{children:"Prefeitura"})," â o Poder Executivo. A Câmara Municipal é um Poder independente, com site e Portal da Transparência próprios. Os endereços abaixo abrem em nova aba."]})]}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:gap-4",children:g8.map(t=>e.jsx("li",{children:e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer","aria-label":`${t.titulo} â ${t.descricao} (abre em nova aba, no site da Câmara Municipal)`,className:`group flex min-h-[44px] flex-col rounded-lg border border-gray-200 185 bg-white p-4 shadow-sm transition-all duration-200 186 hover:-translate-y-0.5 hover:border-institutional hover:shadow-md 187 focus-visible:outline focus-visible:outline-2 188 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:[e.jsxs("span",{className:"mb-1 flex items-start justify-between gap-2",children:[e.jsx("span",{className:"text-sm font-bold leading-snug text-gray-900",children:t.titulo}),e.jsx(Ke,{size:14,className:"mt-0.5 flex-shrink-0 text-gray-500 transition-colors group-hover:text-institutional","aria-hidden":"true"})]}),e.jsx("span",{className:"text-xs leading-snug text-gray-600",children:t.descricao})]})},t.id))}),e.jsxs("section",{className:"mt-6 rounded-lg border border-gray-200 bg-white p-4",children:[e.jsx("h2",{className:"mb-3 text-base font-bold text-gray-900",children:"Outros endereços da Câmara"}),e.jsxs("ul",{className:"space-y-2 text-sm",children:[e.jsx("li",{children:e.jsxs("a",{href:v8,target:"_blank",rel:"noopener noreferrer","aria-label":"Site da Câmara Municipal de Funilândia (abre em nova aba)",className:`inline-flex min-h-[44px] items-center gap-2 text-institutional hover:underline 189 focus-visible:outline focus-visible:outline-2 190 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:["Site da Câmara Municipal",e.jsx(Ke,{size:14,"aria-hidden":"true"})]})}),e.jsx("li",{children:e.jsxs("a",{href:b8,target:"_blank",rel:"noopener noreferrer","aria-label":"Portal da Transparência da Câmara Municipal (abre em nova aba)",className:`inline-flex min-h-[44px] items-center gap-2 text-institutional hover:underline 191 focus-visible:outline focus-visible:outline-2 192 focus-visible:outline-offset-2 focus-visible:outline-institutional`,children:["Portal da Transparência da Câmara",e.jsx(Ke,{size:14,"aria-hidden":"true"})]})})]}),e.jsxs("p",{className:"mt-3 text-xs text-gray-500",children:["A transparência da Prefeitura fica"," ",e.jsx("a",{href:"/transparencia",className:"text-institutional hover:underline",children:"neste portal"}),". São prestações de contas distintas, de Poderes distintos."]})]})]})})]}),e.jsx(ge,{})]})}function j8(){const{instituicao:t}=st(),s={endereco:[t?.endereco?.logradouro,t?.endereco?.numero].filter(
192Boolean).join(", ")||"Rua Tristão Vieira de Azeredo, 90",bairro:t?.endereco?.bairro||"Centro",cidade:t?.municipio||"Funilândia",estado:t?.uf||"MG",cep:t?.endereco?.cep||"35736-000",telefone:t?.contato?.telefone||"(31) 3157-7545",email:t?.contato?.email||"[email protected]",horarioAtendimento:t?.horario_atendimento||"7h à s 16h",sessoesPlenarias:"Consulte a agenda de audiências públicas no portal"},i=[],n=`Segunda a sexta, ${s.horarioAtendimento}`,l=[{titulo:"Protocolo de Documentos",descricao:"Recebimento de requerimentos, ofÃcios, petições e outros documentos dirigidos à Prefeitura.",horario:n},{titulo:"Consulta de Processos",descricao:"Acompanhamento da tramitação de matérias legislativas, requerimentos e proposições.",horario:n},{titulo:"Acesso a Documentos Públicos",descricao:"Solicitação de cópias de leis, atas, relatórios e outros documentos oficiais.",horario:n},{titulo:"Atendimento ao Cidadão",descricao:"Informações gerais, orientações sobre serviços da Prefeitura e esclarecimento de dúvidas.",horario:n}],d=[{titulo:"Acessibilidade",descricao:"A Prefeitura está comprometida com a acessibilidade. Caso necessite de alguma adaptação ou suporte especial para visitar nossa sede, entre em contato antecipadamente.",icone:ht},{titulo:"Documentação",descricao:"Para protocolar documentos, apresente documento de identificação oficial com foto (RG, CNH ou outro documento válido).",icone:We},{titulo:"Audiências Públicas",descricao:"As sessões plenárias são públicas e abertas à participação de todos os cidadãos. Consulte a agenda no portal para conferir o calendário e os horários atualizados.",icone:Ee}];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Institucional"},{label:"Acesso e Atendimento",path:"/institucional/acesso"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(xt,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Acesso e Atendimento"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Informações sobre como acessar nossos serviços"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(xt,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Localização"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-2",children:"Endereço"}),e.jsx("p",{className:"text-gray-700",children:s.endereco}),e.jsxs("p",{className:"text-gray-700",children:[s.bairro," - ",s.cidade,"/",s.estado]}),e.jsxs("p",{className:"text-gray-700",children:["CEP ",s.cep]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-2",children:"E-mail Institucional"}),e.jsx("a",{href:`mailto:${s.email}`,className:"text-institutional hover:text-institutional-dark font-semibold",children:s.email})]}),e.jsx("div",{className:"pt-4 border-t border-gray-200",children:e.jsxs("a",{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(`${s.endereco}, ${s.cidade} - ${s.estado}`)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-institutional hover:text-institutional-dark font-semibold",children:[e.jsx(ko,{size:18}),"Ver no Google Maps"]})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(mt,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Horários"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-2",children:"Atendimento ao Público"}),e.jsx("p",{className:"text-gray-700",children:s.horarioAtendimento})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-2",children:"Sessões Plenárias"}),e.jsx("p",{className:"text-gray-700",children:s.sessoesPlenarias}),e.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Aberto ao público. Confira a agenda no site."})]}),e.jsx("div",{className:"pt-4 border-t border-gray-200",children:e.jsxs("a",{href:"/legislativo/agenda",className:"inline-flex items-center gap-2 text-institutional hover:text-institutional-dark font-semibold",children:[e.jsx(Ee,{size:18}),"Ver agenda completa"]})})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8 mb-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(zt,{size:24,className:"text-institutional"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Telefone e Ramais"})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-6 mb-6",children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-2",children:"Telefone Geral"}),e.jsx("a",{href:`tel:${s.telefone.replace(/\D/g,"")}`,className:"text-2xl font-bold text-institutional hover:text-institutional-dark block mb-2",children:s.telefone}),e.jsx("p",{className:"text-sm text-gray-600",children:"Ligue no telefone geral e digite o número do ramal para falar com o departamento desejado."})]}),e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-3 uppercase",children:"Ramais por Departamento"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:i.map((u,m)=>e.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4 flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-lg font-bold text-institutional",children:u.ramal})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-bold text-gray-900 text-sm",children:u.nome}),e.jsx("p",{className:"text-xs text-gray-600",children:u.descricao})]})]},m))})]}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Serviços Dis
192ponÃveis"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:l.map((u,m)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:u.titulo}),e.jsx("p",{className:"text-sm text-gray-700 mb-3",children:u.descricao}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-institutional",children:[e.jsx(mt,{size:14}),e.jsx("span",{children:u.horario})]})]},m))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Orientações Importantes"}),e.jsx("div",{className:"space-y-6",children:d.map((u,m)=>e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 bg-institutional/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(u.icone,{size:20,className:"text-institutional"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:u.titulo}),e.jsx("p",{className:"text-sm text-gray-700",children:u.descricao})]})]},m))})]}),e.jsxs("div",{className:"mt-12 bg-institutional/5 border border-institutional/20 rounded-lg p-8",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Canais de Atendimento Digital"}),e.jsx("p",{className:"text-gray-700 mb-4",children:"Além do atendimento presencial, você pode acessar nossos serviços digitais:"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/atendimento/esic",className:"flex items-center gap-3 bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[e.jsx(ht,{className:"text-institutional",size:24}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm",children:"e-SIC"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Acesso à Informação"})]})]}),e.jsxs("a",{href:"/atendimento/ouvidoria",className:"flex items-center gap-3 bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[e.jsx(zt,{className:"text-institutional",size:24}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm",children:"Ouvidoria"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Manifestações"})]})]}),e.jsxs("a",{href:"/atendimento/fale-conosco",className:"flex items-center gap-3 bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[e.jsx(Ze,{className:"text-institutional",size:24}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-sm",children:"Fale Conosco"}),e.jsx("p",{className:"text-xs text-gray-600",children:"Contato Direto"})]})]})]})]})]})})]}),e.jsx(ge,{})]})}const N8="*, album:galeria_albuns(id, categoria, data_evento, titulo)",Am={async publicados(){const{data:t,error:s}=await X.from("galeria_fotos").select(N8).eq("publicada",!0).is("deletado_em",null).order("criado_em",{ascending:!1});if(s)throw new ee(s.message,s.code);return(t??[]).map(i=>({id:i.id,titulo:i.titulo??"",descricao:i.legenda??"",tipo:i.tipo==="video"?"video":"foto",categoria:i.album?.categoria??"outros",url:i.arquivo_url,urlThumbnail:i.thumb_url??void 0,videoUrl:i.video_url??void 0,dataEvento:i.album?.data_evento??i.criado_em,tags:i.tags??[],ativo:i.publicada??!1,destaque:i.destaque??!1,visualizacoes:i.visualizacoes??0}))},async albumPorSlug(t){const{data:s,error:i}=await X.from("galeria_albuns").select(`id, slug, titulo, descricao, data_evento, 193 fotos:galeria_fotos(id, titulo, legenda, arquivo_url, thumb_url, largura, altura, ordem, publicada, deletado_em)`).eq("slug",t).eq("publicado",!0).is("deletado_em",null).maybeSingle();if(i)throw new ee(i.message,i.code);
193if(!s)return null;const n=s;return{id:n.id,titulo:n.titulo,descricao:n.descricao??null,dataEvento:n.data_evento??null,fotos:(n.fotos??[]).filter(l=>l.publicada&&!l.deletado_em).sort((l,d)=>(l.ordem??0)-(d.ordem??0)).map(l=>({id:l.id,url:l.arquivo_url,urlThumbnail:l.thumb_url??void 0,legenda:l.legenda??null,largura:l.largura??null,altura:l.altura??null}))}},async registrarVisualizacao(t){const{error:s}=await X.rpc("registrar_visualizacao_galeria",{p_foto_id:t});s&&console.warn("Não foi possÃvel contabilizar a exibição:",s.message)}};function w8(){const[t,s]=b.useState([]),[i,n]=b.useState(!0),[l,d]=b.useState("todos"),[u,m]=b.useState("todas"),[x,p]=b.useState(null);b.useEffect(()=>{g()},[]);const g=async()=>{try{s(await Am.publicados())}catch(w){console.error("Erro ao carregar galeria:",w)}finally{n(!1)}},v=b.useMemo(()=>Array.from(new Set(t.map(_=>_.categoria))),[t]),j=b.useMemo(()=>{let w=t;return l!=="todos"&&(w=w.filter(_=>_.tipo===l)),u!=="todas"&&(w=w.filter(_=>_.categoria===u)),w},[t,l,u]),N=b.useMemo(()=>j.filter(w=>w.destaque),[j]),k=w=>w?new Date(w).toLocaleDateString("pt-BR",{day:"2-digit",month:"short",year:"numeric"}):"",S=w=>({eventos:"Eventos",obras:"Obras e Infraestrutura",atividades:"Atividades",institucional:"Institucional",cartoes_postais:"Cartões Postais",audios:"Ãudios",outros:"Outros"})[w]||w,C=w=>w==="foto"?"Foto":w==="audio"?"Ãudio":"VÃdeo",T=w=>{if(w.includes("youtube.com/watch?v=")){const _=w.split("v=")[1]?.split("&")[0];return _?`https://www.youtube.com/embed/${_}`:null}if(w.includes("youtu.be/")){const _=w.split("youtu.be/")[1]?.split("?")[0];return _?`https://www.youtube.com/embed/${_}`:null}if(w.includes("vimeo.com/")){const _=w.split("vimeo.com/")[1]?.split("?")[0];return _?`https://player.vimeo.com/video/${_}`:null}return null};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}),x&&e.jsx("div",{className:"fixed inset-0 bg-black/90 z-[9999] flex items-center justify-center p-4",onClick:()=>p(null),children:e.jsxs("div",{className:"bg-white rounded-lg max-w-6xl w-full max-h-[90vh] overflow-auto",onClick:w=>w.stopPropagation(),children:[e.jsx("div",{className:"bg-gradient-to-r from-institutional to-institutional-dark p-6 text-white",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("span",{className:"px-3 py-1 bg-white/20 backdrop-blur rounded-full text-sm font-bold",children:C(x.tipo)}),e.jsx("span",{className:"px-3 py-1 bg-white/20 backdrop-blur rounded-full text-sm font-bold",children:S(x.categoria)}),x.destaque&&e.jsxs("span",{className:"flex items-center gap-1 px-3 py-1 bg-yellow-400 rounded-full text-yellow-900 text-sm font-bold",children:[e.jsx(Hr,{size:14}),"Destaque"]})]}),e.jsx("h2",{className:"text-2xl font-bold",children:x.titulo})]}),e.jsx("button",{onClick:()=>p(null),className:"text-white hover:bg-white/20 p-2 rounded-lg transition-colors",children:"â"})]})}),e.jsxs("div",{className:"p-6",children:[x.tipo==="foto"?e.jsx("img",{src:x.url,alt:x.titulo,className:"w-full rounded-lg mb-6"}):x.tipo==="audio"&&x.videoUrl?e.jsx("div",{className:"mb-6 rounded-lg border border-gray-200 bg-gray-50 p-4",children:e.jsxs("audio",{controls:!0,preload:"none",src:x.videoUrl,className:"w-full","aria-label":`Reproduzir áudio: ${x.titulo}`,children:["Seu navegador não reproduz áudio."," ",e.jsx("a",{href:x.videoUrl,download:!0,className:"underline",children:"Baixar o arquivo"}),"."]})}):x.videoUrl&&T(x.videoUrl)?e.jsx("div",{className:"relative pb-[56.25%] h-0 mb-6 rounded-lg overflow-hidden",children:e.jsx("iframe",{src:T(x.videoUrl)||"",className:"absolute top-0 left-0 w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):x.tipo==="video"&&x.videoUrl?e.jsx("div",{className:"mb-6 overflow-hidden rounded-lg bg-black",children:e.jsxs("video",{controls:!0,preload:"metadata",playsInline:!0,src:x.videoUrl,poster:x.urlThumbn
193ail,className:"mx-auto max-h-[70vh] w-full","aria-label":`VÃdeo: ${x.titulo}`,children:["Seu navegador não reproduz vÃdeo."," ",e.jsx("a",{href:x.videoUrl,download:!0,className:"underline",children:"Baixar o arquivo"}),"."]})}):null,e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Descrição"}),e.jsx("p",{className:"text-gray-700 whitespace-pre-wrap",children:x.descricao})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{className:"flex items-center gap-3 p-4 bg-blue-50 rounded-lg",children:[e.jsx(Ee,{size:24,className:"text-institutional"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-600",children:"Data do Evento"}),e.jsx("p",{className:"text-gray-900 font-bold",children:k(x.dataEvento)})]})]}),e.jsxs("div",{className:"flex items-center gap-3 p-4 bg-green-50 rounded-lg",children:[e.jsx(ka,{size:24,className:"text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-600",children:"Visualizações"}),e.jsx("p",{className:"text-gray-900 font-bold",children:x.visualizacoes||0})]})]})]}),x.tags.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-900 mb-3 flex items-center gap-2",children:[e.jsx(C2,{size:20}),"Tags"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:x.tags.map((w,_)=>e.jsx("span",{className:"px-3 py-1 bg-institutional/10 text-institutional rounded-full text-sm font-semibold",children:w},_))})]})]})]})}),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Institucional"},{label:"Galeria",path:"/institucional/galeria"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(Ur,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Galeria"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Fotos e vÃdeos das atividades da Prefeitura"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 mb-8",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-3",children:"Tipo de MÃdia"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs("button",{onClick:()=>d("todos"),className:`px-4 py-2 rounded-lg font-semibold transition-colors flex items-center gap-2 ${l==="todos"?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:[e.jsx(Ur,{size:16}),"Todos"]}),e.jsxs("button",{onClick:()=>d("foto"),className:`px-4 py-2 rounded-lg font-semibold transition-colors flex items-center gap-2 ${l==="foto"?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:[e.jsx(Ur,{size:16}),"Fotos"]}),e.jsxs("button",{onClick:()=>d("video"),className:`px-4 py-2 rounded-lg font-semibold transition-colors flex items-center gap-2 ${l==="video"?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:[e.jsx(cr,{size:16}),"VÃdeos"]}),e.jsxs("button",{onClick:()=>d("audio"),"aria-pressed":l==="audio",className:`px-4 py-2 rounded-lg font-semibold transition-colors flex items-center gap-2 ${l==="audio"?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:[e.jsx(en,{size:16}),"Ãudios"]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-gray-700 mb-3",children:"Categoria"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{onClick:()=>m("todas"),className:`px-4 py-2 rounded-lg font-semibold transition-colors ${u==="todas"?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:"Todas"}),v.map(w=>e.jsx("button",{onClick:()=>m(w),className:`px-4 py-2 rounded-lg font-semibold transition-colors ${u===w?"bg-institutional text-white":"bg-institutional/10 text-institutional hover:bg-institutional/20"}`,children:S(w)},w))]})]})]}),e.jsxs("p",{className:"text-sm text-gray-600 mt-4",children:[j.length," ",j.length===1?"item encontrado":"itens encontrados"]})]}),i?e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-institutional mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Carregando galeria..."})]}):e.jsxs(e.Fragment,{children:[N.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsxs("h2",{className:"text-2xl font-bold text-gray-900 mb-4 flex items-center gap-2",children:[e.jsx(Hr,{className:"text-yellow-500"}),"Destaques"]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:N.map(w=>e.jsxs("div",{className:"bg-white rounded-lg shadow-md border-2 border-yellow-400 overflow-hidden hover:shadow-xl transition-shadow group cursor-pointer",onClick:()=>{p(w),Am.registrarVisualizacao(w.id)},children:[e.jsxs("div",{className:"relative h-56 bg-institutional/10 overflow-hidden",children:[w.tipo==="foto"?e.jsx("img",{src:w.url,alt:w.titulo,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300"}
193):e.jsxs(e.Fragment,{children:[w.urlThumbnail?e.jsx("img",{src:w.urlThumbnail,alt:w.titulo,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full bg-gradient-to-br from-institutional/20 to-institutional/5 flex items-center justify-center",children:e.jsx(cr,{size:64,className:"text-institutional/30"})}),e.jsx("div",{className:"absolute inset-0 bg-black/30 flex items-center justify-center",children:e.jsx("div",{className:"w-16 h-16 bg-white rounded-full flex items-center justify-center",children:e.jsx(Gc,{size:32,className:"text-institutional ml-1"})})})]}),e.jsxs("div",{className:"absolute top-3 left-3 bg-yellow-400 text-yellow-900 px-3 py-1 rounded-lg text-sm font-bold flex items-center gap-1",children:[e.jsx(Hr,{size:14}),"Destaque"]}),e.jsxs("div",{className:"absolute top-3 right-3 bg-institutional/90 backdrop-blur text-white px-3 py-1 rounded-lg text-sm font-bold flex items-center gap-1",children:[w.tipo==="foto"?e.jsx(Ur,{size:14}):w.tipo==="audio"?e.jsx(en,{size:14}):e.jsx(cr,{size:14}),C(w.tipo)]})]}),e.jsxs("div",{className:"p-5",children:[e.jsx("span",{className:"bg-institutional/10 text-institutional text-xs font-bold px-3 py-1 rounded-full",children:S(w.categoria)}),e.jsx("h3",{className:"text-lg font-bold text-gray-900 mt-3 mb-2 group-hover:text-institutional transition-colors line-clamp-2",children:w.titulo}),e.jsx("p",{className:"text-sm text-gray-700 mb-4 line-clamp-2",children:w.descricao}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ee,{size:14}),e.jsx("span",{children:k(w.dataEvento)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ka,{size:14}),e.jsx("span",{children:w.visualizacoes||0})]})]})]})]},w.id))})]}),j.length>0?e.jsxs("div",{children:[N.length>0&&e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Todas as MÃdias"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:j.map(w=>e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden hover:shadow-xl transition-shadow group cursor-pointer",onClick:()=>{p(w),Am.registrarVisualizacao(w.id)},children:[e.jsxs("div",{className:"relative h-48 bg-institutional/10 overflow-hidden",children:[w.tipo==="foto"?e.jsx("img",{src:w.url,alt:w.titulo,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300"}):e.jsxs(e.Fragment,{children:[w.urlThumbnail?e.jsx("img",{src:w.urlThumbnail,alt:w.titulo,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full bg-gradient-to-br from-institutional/20 to-institutional/5 flex items-center justify-center",children:e.jsx(cr,{size:48,className:"text-institutional/30"})}),e.jsx("div",{className:"absolute inset-0 bg-black/30 flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 bg-white rounded-full flex items-center justify-center",children:e.jsx(Gc,{size:24,className:"text-institutional ml-1"})})})]}),e.jsxs("div",{className:"absolute top-2 right-2 bg-institutional/90 backdrop-blur text-white px-2 py-1 rounded-lg text-xs font-bold flex items-center gap-1",children:[w.tipo==="foto"?e.jsx(Ur,{size:12}):w.tipo==="audio"?e.jsx(en,{size:12}):e.jsx(cr,{size:12}),C(w.tipo)]}),w.destaque&&e.jsx("div",{className:"absolute top-2 left-2 bg-yellow-400 text-yellow-900 p-1.5 rounded-lg",children:e.jsx(Hr,{size:14})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("span",{className:"bg-institutional/10 text-institutional text-xs font-bold px-2 py-1 rounded-full",children:S(w.categoria)}),e.jsx("h3",{className:"text-base font-bold text-gray-900 mt-2 mb-1 group-hover:text-institutional transition-colors line-clamp-2",children:w.titulo}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mt-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ee,{size:12}),e.jsx("span",{children:k(w.dataEvento)})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ka,{size:12}),e.jsx("span",{children:w.visualizacoes||0})]})]})]})]},w.id))})]}):e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-12 text-center",children:[e.jsx(Ur,{size:48,className:"text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Nenhum item encontrado"}),e.jsx("p",{className:"text-gray-600",children:"Não há itens para os filtros selecionados. Ajuste os filtros para ver mais conteúdo."})]})]})]})})]}),e.jsx(ge,{})]})}function _8(){const{instituicao:t,enderecoCompleto:s}=st(),i=t?.endereco,n=i?`${i.logradouro}, nº ${i.numero}`:"",l=i?.bairro??"",d=t?.municipio??"",u=t?.uf??"",m=i?.cep??"",x=t?.horario_atendimento||"7h à s 16h",g=encodeURIComponent(s),v=`https://maps.google.com/maps?q=${g}&output=embed`,j=`https://www.google.com/maps/dir/?api=1&destination=${g}`,N=`https://www.waze.com/ul?q=${g}&navigate=yes`;return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(pe,{}
193),e.jsxs("main",{id:"conteudo",tabIndex:-1,className:"flex-1",children:[e.jsx("div",{className:"hero-institucional py-12",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(Ce,{items:[{label:"Institucional"},{label:"Localização",path:"/institucional/localizacao"}]}),e.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur rounded-2xl flex items-center justify-center",children:e.jsx(xt,{size:32})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold",children:"Localização"}),e.jsx("p",{className:"text-blue-100 text-lg mt-2",children:"Como chegar à Prefeitura Municipal de Funilândia"})]})]})]})}),e.jsx("section",{className:"py-12 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsx("div",{className:"lg:col-span-2",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6 h-full",children:[e.jsxs("h2",{className:"font-bold text-gray-900 text-xl mb-6 flex items-center gap-2",children:[e.jsx(xt,{className:"text-institutional",size:24}),"Localização no Mapa"]}),e.jsx("div",{className:"aspect-video bg-gray-200 rounded-lg overflow-hidden",children:e.jsx("iframe",{src:v,width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Localização da Prefeitura Municipal de Funilândia"})}),e.jsxs("div",{className:"mt-6 bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Endereço Completo"}),e.jsxs("div",{className:"space-y-1 text-gray-700",children:[e.jsx("p",{className:"font-semibold",children:"Prefeitura Municipal de Funilândia"}),e.jsx("p",{children:n}),e.jsx("p",{children:l}),e.jsxs("p",{children:["CEP: ",m]}),e.jsxs("p",{children:[d," - ",u," - Brasil"]})]})]}),e.jsxs("div",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-6 py-3 bg-institutional hover:bg-institutional-dark text-white font-bold rounded-lg transition-colors",children:[e.jsx(ko,{size:18}),"Como Chegar (Google Maps)"]}),e.jsxs("a",{href:N,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 px-6 py-3 bg-white hover:bg-gray-50 text-institutional border-2 border-institutional font-bold rounded-lg transition-colors",children:[e.jsx(ko,{size:18}),"Abrir no Waze"]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(mt,{size:24,className:"text-institutional"})}),e.jsx("h3",{className:"font-bold text-gray-900 text-lg",children:"Horário de Atendimento"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:[e.jsx("p",{className:"font-semibold text-gray-900 mb-2",children:"Segunda a Sexta-feira"}),e.jsx("p",{className:"text-sm text-gray-700",children:x})]}),e.jsxs("div",{className:"bg-institutional/5 border border-institutional/20 rounded-lg p-4",children:[e.jsx("p",{className:"font-semibold text-gray-900 mb-2",children:"Audiências Públicas"}),e.jsx("p",{className:"text-sm text-gray-700",children:"As sessões são públicas e abertas à comunidade. Consulte a agenda no portal para conferir as datas e horários atualizados."})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-institutional/10 rounded-lg flex items-center justify-center",children:e.jsx(ht,{size:24,className:"text-institutional"})}),e.jsx("h3",{className:"font-bold text-gray-900 text-lg",children:"Acessibilidade"})]}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â"}),e.jsx("span",{children:"Rampa de acesso para cadeirantes"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â"}),e.jsx("span",{children:"Banheiro adaptado"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â"}),e.jsx("span",{children:"Estacionamento disponÃvel"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â"}),e.jsx("span",{children:"Atendimento preferencial"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"Pontos de Referência"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â¢"}),e.jsx("span",{children:"Centro, em Funilândia - MG"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â¢"}),e.jsx("span",{children:"Av. Hipólito Aires de Arruda"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-institutional font-bold mt-1",children:"â¢"}),e.jsx("span",{children:"Acesso pela região central da cidade"})]})]})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-4",children:"Outras Informações"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("a",{href:"/institucional/contato",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Contatos"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Telefones, ramais e e-mails da Prefeitura"})]}),e.jsxs("a",{href:"/institucional/acesso",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Acesso e Atendimento"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Informações sobre visitação ao prédio"})]}),e.jsxs("a",{href:"/atendimento/fale-conosco",className:"bg-white hover:bg-gray-50 rounded-lg p-4 border border-gray-200 transition-colors",children:[e.jsx("h4",{className:"font-bold text-institutional mb-1",children:"Fale Conosco"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Envie sua mensagem online"})]})]})]})]})})]}),e.jsx(ge,{})]})}function S8(t){try{const i=atob(t).match(/.{1,4}/g);return i?i.map((n,l)=>{const d=parseInt(atob(n),16);if(Number.isNaN(d))throw new Error("código inválido");return String.fromCharCode(d-(33+2*Math.ceil(l/2)))}).join(""):null}catch{return null}}const k8={leis:"/legislativo/leis",buscaAvancadaLeis:"/legislativo/leis",buscaFiltroLeis:"/legislativo/leis",projetostramitacao:"/legislativo/proposicoes",t
193iposprojetostramitados:"/legislativo/proposicoes",projetot:"/legislativo/proposicoes",imprimirRelatorioVotacao:"/legislativo/votacoes",pautasNew:"/legislativo/sessoes",pautasAno:"/legislativo/sessoes",atasTipoSessao:"/legislativo/atas",vereador:"/parlamentares/vereadores",legislaturas:"/parlamentares/legislaturas",comissoes:"/legislativo/comissoes",moduloComissoes:"/legislativo/comissoes",buscaNoticias:"/noticias",sicCadastrarUsuario:"/atendimento/esic",sicConsultarSolicitante:"/atendimento/esic",AcessoInformacao:"/atendimento/esic",FormasSolicitacao:"/atendimento/esic",editais:"/transparencia/recursos-humanos/concursos",moduloFormularios:"/atendimento/pesquisa-satisfacao",galeriafoto:"/institucional/galeria",galeriavideo:"/institucional/galeria"},C8={sessaoCompleta:{128:"/legislativo/sessao/45e1a4e2-7a63-4151-a320-935d94cbf0fd"},textoVereador:{36:"/noticia/1dcec8df-d464-4b4c-a060-4d1c411c2723"}},E8={3:"resolucao",4:"decreto_legislativo"},A8={20:"fa8d3e01-0666-4c80-892b-1b8e5738c700"},T8={"/arquivos_cliente/decreto_no_470.2023_regulamenta_informacoes_2.pdf":"https://ntzfqhwpmimurcrvzrvw.supabase.co/storage/v1/object/public/leis/externas/decreto-470-2023-executivo-lai.pdf"},L8=[[/^\/esic\/?$/i,"/atendimento/esic"],[/^\/ouvidoria\/?$/i,"/atendimento/ouvidoria"],[/^\/transparencia\/?$/i,"/transparencia"]];function O8(t,s){const i=new URLSearchParams(s),n=i.get("pag");if(n){const d=S8(n);if(d){const u=i.get("id"),m=u?C8[d]?.[u]:void 0;if(m)return m;if(d==="leis"){const p=E8[i.get("idtipolei")??""];if(p)return`/legislativo/leis?tipo=${p}`}if(d==="vereador"){const p=A8[i.get("idver")??""];if(p)return`/parlamentares/vereadores/${p}`}const x=k8[d];if(x)return x}if(/^\/(index2\.php|indexAjax\.php|esic\/?|)$/i.test(t))return"/servicos/busca"}for(const[d,u]of L8)if(d.test(t))return u;const l=T8[t.toLowerCase()];return l||(/^\/arquivos_cliente\//i.test(t)?"/servicos/busca":null)}function R8(){const{pathname:t,search:s}=Yt(),i=Zr();return b.useEffect(()=>{const n=O8(t,s);if(!(!n||n===t)){if(/^https?:\/\//i.test(n)){window.location.replace(n);return}i(n,{replace:!0})}},[t,s,i]),null}function z8(){const{pathname:t}=Yt();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),null}function D8(){const{pathname:t}=Yt(),s=b.useRef(null);return VE(),b.useEffect(()=>{s.current!==t&&(s.current=t,Iy(t))},[t]),null}function M8(){return b.useEffect(()=>{if(document.querySelector("div[vw]"))return;const t=document.createElement("div");t.setAttribute("vw",""),t.className="enabled";const s=document.createElement("div");s.setAttribute("vw-access-button",""),s.className="active",t.appendChild(s);const i=document.createElement("div");i.setAttribute("vw-plugin-wrapper","");const n=document.createElement("div");if(n.className="vw-plugin-top-wrapper",i.appendChild(n),t.appendChild(i),document.body.appendChild(t),document.querySelector('script[src*="vlibras-plugin.js"]')){if(window.VLibras)try{new window.VLibras.Widget("https://vlibras.gov.br/app")}catch{}return}const d=document.createElement("script");d.src="https://vlibras.gov.br/app/vlibras-plugin.js",d.async=!0,d.onload=()=>{if(window.VLibras)try{new window.VLibras.Widget("https://vlibras.gov.br/app")}catch(u){console.warn("VLibras não pôde ser inicializado:",u)}},document.body.appendChild(d)},[]),null}const zv="lgpd-cookies";function P8(){const[t,s]=b.useState(!1);b.useEffect(()=>{try{localStorage.getItem(zv)||s(!0)}catch{}},[]);function i(){try{localStorage.setItem(zv,new Date().toISOString())}catch{}s(!1)}return t?e.jsx("div",{role:"region","aria-label":"Aviso sobre uso de dados",className:"fixed bottom-0 inset-x-0 z-40 bg-white border-t border-gray-300 shadow-lg print:hidden",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-start sm:items-center gap-3",children:[e.jsxs("p",{className:"text-sm text-gray-700 leading-relaxed flex-1",children:["Este portal guarda no seu navegador apenas as preferências que você escolhe â contraste e tamanho da fonte â e contabiliza acessos de forma agregada, sem identificar quem você é. Não há cookies de publicidade nem rastreio de terceiros. Saiba mais na"," ",e.jsx(ie,{to:"/trans
193parencia/lgpd",className:"text-institutional underline font-medium",children:"polÃtica de privacidade"}),"."]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx("button",{type:"button",onClick:i,className:"bg-institutional text-white px-5 py-2 rounded-lg text-sm font-semibold hover:opacity-90 transition",children:"Entendi"}),e.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar aviso",className:"p-2 text-gray-500 hover:text-gray-800",children:e.jsx(Fa,{size:18})})]})]})}):null}const B8=[["/legislativo/lei/","Lei Municipal"],["/legislativo/leis","Leis Municipais"],["/legislativo/legislacao","Legislação"],["/legislativo/diario-oficial","Diário Oficial"],["/legislativo/codigos","Códigos Municipais"],["/legislativo/audiencias","Audiências Públicas"],["/legislativo/consultas","Consultas Públicas"],["/legislativo/agenda","Agenda"],["/transparencia/recursos-humanos/padrao-remuneratorio","Padrão Remuneratório"],["/transparencia/recursos-humanos","Recursos Humanos"],["/transparencia/licitacao/","Licitação"],["/transparencia/licitacoes","Licitações"],["/transparencia/servidores","Servidores"],["/transparencia/dados-abertos","Dados Abertos"],["/transparencia/atos-pessoal","Atos de Pessoal"],["/transparencia/contratos","Contratos"],["/transparencia/obras","Obras"],["/transparencia/diarias","Diárias"],["/transparencia/sic-relatorios","Relatórios do SIC"],["/transparencia/leis-orcamentarias","Leis Orçamentárias"],["/transparencia/balancetes","Balancetes"],["/transparencia/controle-interno","Controle Interno"],["/transparencia/lgpd","Proteção de Dados"],["/transparencia/convenios","Convênios"],["/transparencia/precatorios","Precatórios"],["/transparencia/carta-servicos","Carta de Serviços"],["/transparencia/indice","Ãndice de Transparência"],["/transparencia/contratacao-direta","Contratação Direta"],["/transparencia/planejamento-prestacao-contas","Planejamento e Prestação de Contas"],["/transparencia","Portal da Transparência"],["/atendimento/esic","e-SIC"],["/atendimento/protocolo","Protocolo Digital"],["/atendimento/ouvidoria","Ouvidoria"],["/atendimento/fale-conosco","Fale Conosco"],["/atendimento/faq","Perguntas Frequentes"],["/atendimento/sugestoes","Sugestões"],["/atendimento/pesquisa-satisfacao","Pesquisa de Satisfação"],["/institucional/contato","Contato"],["/institucional/historia","História"],["/institucional/organograma","Organograma"],["/institucional/simbolos","SÃmbolos Municipais"],["/institucional/acesso","Acessibilidade"],["/institucional/galeria","Galeria"],["/institucional/localizacao","Localização"],["/participacao/minhas-solicitacoes","Minhas Solicitações"],["/participacao/solicitar","Solicitar"],["/area-restrita/cadastrar","Criar conta"],["/area-restrita/entrar","Entrar"],["/area-restrita/confirmar","Confirmar e-mail"],["/area-restrita/recuperar","Recuperar senha"],["/area-restrita/nova-senha","Nova senha"],["/area-restrita","Ãrea do Cidadão"],["/servicos/publico/cidadao","Serviços para o Cidadão"],["/servicos/publico/empresa","Serviços para Empresas"],["/servicos/publico/servidor","Serviços para o Servidor"],["/servicos/publico","Todos os serviços"],["/servicos/busca","Busca"],["/assinatura/confirmar","Confirmação de inscrição"],["/formulario/","Formulário"],["/verificar","Verificar documento"],["/noticia/","NotÃcia"],["/noticias","NotÃcias"]];function q8(t){const s=B8.find(([i])=>t.startsWith(i));return s?s[1]:null}function U8(){const{pathname:t}=Yt(),{nomeCasa:s}=st(),i=t==="/"?null:q8(t);return b.useEffect(()=>{document.title=i?`${i} | ${s}`:`${s} | Portal da Transparência`},[i,s]),e.jsx("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",border:0},children:i??"Página inicial"})}function F8(){return e.jsx(tE,{children:e.jsx(rE,{children:e.jsxs(Ww,{children:[e.jsx(z8,{}),e.jsx(R8,{}),e.jsx(D8,{}),e.jsx(U8,{}),e.jsx(M8,{}),e.jsx(P8,{}),e.jsxs(Nw,{children:[e.jsx(re,{path:"/",element:e.jsx(UE,{})}),e.jsx(re,{path:"/verificar",element:e.jsx(Yb,{})}),e.jsx(re,{path:"/verificar/:codigo",element:e.jsx(Yb,{})}),e.jsx(re,{path:"/noticias",element:e.jsx(IE,{})}),e.jsx(re,{path:"/noticia/:id",element:e.jsx(GE,{})}
193),e.jsx(re,{path:"/transparencia",element:e.jsx(lA,{})}),e.jsx(re,{path:"/transparencia/licitacoes",element:e.jsx(mA,{})}),e.jsx(re,{path:"/transparencia/licitacao/:id",element:e.jsx(fA,{})}),e.jsx(re,{path:"/transparencia/servidores",element:e.jsx(CA,{})}),e.jsx(re,{path:"/transparencia/dados-abertos",element:e.jsx(EA,{})}),e.jsx(re,{path:"/transparencia/recursos-humanos",element:e.jsx(LA,{})}),e.jsx(re,{path:"/transparencia/recursos-humanos/padrao-remuneratorio",element:e.jsx(RA,{})}),e.jsx(re,{path:"/transparencia/recursos-humanos/estagiarios",element:e.jsx(MA,{})}),e.jsx(re,{path:"/transparencia/recursos-humanos/terceirizados",element:e.jsx(PA,{})}),e.jsx(re,{path:"/transparencia/recursos-humanos/concursos",element:e.jsx(QA,{})}),e.jsx(re,{path:"/transparencia/atos-pessoal",element:e.jsx(BA,{})}),e.jsx(re,{path:"/transparencia/contratos",element:e.jsx(UA,{})}),e.jsx(re,{path:"/transparencia/obras",element:e.jsx(JA,{})}),e.jsx(re,{path:"/transparencia/diarias",element:e.jsx(e5,{})}),e.jsx(re,{path:"/transparencia/sic-relatorios",element:e.jsx(i5,{})}),e.jsx(re,{path:"/transparencia/leis-orcamentarias",element:e.jsx($A,{})}),e.jsx(re,{path:"/transparencia/balancetes",element:e.jsx(IA,{})}),e.jsx(re,{path:"/transparencia/controle-interno",element:e.jsx(WA,{})}),e.jsx(re,{path:"/transparencia/lgpd",element:e.jsx(n5,{})}),e.jsx(re,{path:"/transparencia/convenios",element:e.jsx(l5,{})}),e.jsx(re,{path:"/transparencia/precatorios",element:e.jsx(c5,{})}),e.jsx(re,{path:"/transparencia/carta-servicos",element:e.jsx(d5,{})}),e.jsx(re,{path:"/transparencia/indice",element:e.jsx(u5,{})}),e.jsx(re,{path:"/transparencia/contratacao-direta",element:e.jsx(m5,{})}),e.jsx(re,{path:"/transparencia/planejamento-prestacao-contas",element:e.jsx(x5,{})}),e.jsx(re,{path:"/atendimento/esic",element:e.jsx(z5,{})}),e.jsx(re,{path:"/atendimento/protocolo",element:e.jsx(M5,{})}),e.jsx(re,{path:"/atendimento/ouvidoria",element:e.jsx(P5,{})}),e.jsx(re,{path:"/atendimento/fale-conosco",element:e.jsx(B5,{})}),e.jsx(re,{path:"/atendimento/faq",element:e.jsx(U5,{})}),e.jsx(re,{path:"/atendimento/sugestoes",element:e.jsx($5,{})}),e.jsx(re,{path:"/atendimento/pesquisa-satisfacao",element:e.jsx(K5,{})}),e.jsx(re,{path:"/legislativo/leis",element:e.jsx(ym,{})}),e.jsx(re,{path:"/legislativo/lei/:id",element:e.jsx(ym,{})}),e.jsx(re,{path:"/legislativo/legislacao",element:e.jsx(ym,{})}),e.jsx(re,{path:"/legislativo/diario-oficial",element:e.jsx(X5,{})}),e.jsx(re,{path:"/legislativo/codigos",element:e.jsx(Z5,{})}),e.jsx(re,{path:"/legislativo/audiencias",element:e.jsx(oT,{})}),e.jsx(re,{path:"/legislativo/consultas",element:e.jsx(hT,{})}),e.jsx(re,{path:"/legislativo/agenda",element:e.jsx(lT,{})}),e.jsx(re,{path:"/participacao/solicitar",element:e.jsx(fT,{})}),e.jsx(re,{path:"/participacao/minhas-solicitacoes",element:e.jsx(pT,{})}),e.jsx(re,{path:"/area-restrita",element:e.jsx(wT,{})}),e.jsx(re,{path:"/area-restrita/entrar",element:e.jsx(bT,{})}),e.jsx(re,{path:"/area-restrita/cadastrar",element:e.jsx(vT,{})}),e.jsx(re,{path:"/area-restrita/confirmar",element:e.jsx(yT,{})}),e.jsx(re,{path:"/area-restrita/recuperar",element:e.jsx(jT,{})}),e.jsx(re,{path:"/area-restrita/nova-senha",element:e.jsx(NT,{})}),e.jsx(re,{path:"/servicos/publico/:publico",element:e.jsx($T,{})}),e.jsx(re,{path:"/servicos/busca",element:e.jsx(RT,{})}),e.jsx(re,{path:"/formulario/:slug",element:e.jsx(DT,{})}),e.jsx(re,{path:"/assinatura/confirmar",element:e.jsx(PT,{})}),e.jsx(re,{path:"/assinatura/cancelar",element:e.jsx(BT,{})}),e.jsx(re,{path:"/servicos/mapa-site",element:e.jsx(qT,{})}),e.jsx(re,{path:"/rss",element:e.jsx(IT,{})}),e.jsx(re,{path:"/juridico/politica-privacidade",element:e.jsx(HT,{})}),e.jsx(re,{path:"/juridico/termos-uso",element:e.jsx(VT,{})}),e.jsx(re,{path:"/juridico/acessibilidade",element:e.jsx(GT,{})}),e.jsx(re,{path:"/institucional/contato",element:e.jsx(KT,{})}),e.jsx(re,{path:"/institucional/historia",element:e.jsx(XT,{})}),e.jsx(re,{path:"/institucional/organograma",element:e.jsx(u8,{})}),e.jsx(re,{path:"/institucional/simbolos",element:e.jsx(m8,{})}),e.jsx(re,{path:"/institucional/telefones-uteis",element:e.jsx(f8,{})}),e.jsx(re,{path:"/institucional/links-uteis",element:e.jsx(p8,{})}),e.jsx(re,{path:"/institucional/camara-municipal",element:e.jsx(y8,{})}),e.jsx(re,{path:"/institucional/acesso",element:e.jsx(j8,{})}),e.jsx(re,{path:"/institucional/galeria",element:e.jsx(w8,{})}),e.jsx(re,{path:"/institucional/localizacao",element:e.jsx(_8,{})}),e.jsx(re,{path:"*",element:e.jsx(Ny,{})})]})]})})})}SN.createRoot(document.getElementById("root")).render(e.jsx(b.StrictMode,{children:e.jsx(F8,{})}));
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.