import{j as n,u as sn,v as ln,H as cn,w as un,x as mn}from"./ui-vendor-8uIfD_JC.js";import{r as dt,L as ht}from"./react-vendor-28t7dxFl.js";import{u as fn}from"./useQuery-XqhZ5yOb.js";import{a as pn}from"./analytics-vendor-Buw7Jr8C.js";import{H as gt,X as dn}from"./header-B8URyXEE.js";import{F as Tt}from"./footer-B4a-Tf9e.js";import{I as hn}from"./input-BsaA4GDQ.js";import{d as gn,c as Ge,b as fe,H as Tn,a as Ie,B as Et,G as En,S as An}from"./index-BagLllOy.js";import{E as At,a as _t,b as xt,c as St,d as yt}from"./empty-CqAWvc3s.js";import{E as _n,a as xn,b as Sn,c as yn,d as Nn}from"./error-state-Bxdob55X.js";import{C as bn}from"./chevron-down-BbzELEph.js";import{a as Rn}from"./api-Cp4ZovNS.js";import{g as Ln,o as On}from"./seo-BoELg83m.js";import{S as Nt}from"./search-C9cjY_J1.js";import"./convex-vendor-BbyM1w2O.js";/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],we=gn("circle-question-mark",Dn);/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Mt,setPrototypeOf:bt,isFrozen:Cn,getPrototypeOf:In,getOwnPropertyDescriptor:wn}=Object;let{freeze:N,seal:O,create:Fe}=Object,{apply:He,construct:ze}=typeof Reflect<"u"&&Reflect;N||(N=function(r){return r});O||(O=function(r){return r});He||(He=function(r,s){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return r.apply(s,u)});ze||(ze=function(r){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return new r(...l)});const pe=b(Array.prototype.forEach),Mn=b(Array.prototype.lastIndexOf),Rt=b(Array.prototype.pop),Z=b(Array.prototype.push),vn=b(Array.prototype.splice),he=b(String.prototype.toLowerCase),Me=b(String.prototype.toString),ve=b(String.prototype.match),J=b(String.prototype.replace),Pn=b(String.prototype.indexOf),jn=b(String.prototype.trim),D=b(Object.prototype.hasOwnProperty),y=b(RegExp.prototype.test),ee=kn(TypeError);function b(i){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return He(i,r,l)}}function kn(i){return function(){for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return ze(i,s)}}function c(i,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he;bt&&bt(i,null);let l=r.length;for(;l--;){let u=r[l];if(typeof u=="string"){const d=s(u);d!==u&&(Cn(r)||(r[l]=d),u=d)}i[u]=!0}return i}function Un(i){for(let r=0;r<i.length;r++)D(i,r)||(i[r]=null);return i}function v(i){const r=Fe(null);for(const[s,l]of Mt(i))D(i,s)&&(Array.isArray(l)?r[s]=Un(l):l&&typeof l=="object"&&l.constructor===Object?r[s]=v(l):r[s]=l);return r}function te(i,r){for(;i!==null;){const l=wn(i,r);if(l){if(l.get)return b(l.get);if(typeof l.value=="function")return b(l.value)}i=In(i)}function s(){return null}return s}const Lt=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Pe=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),je=N(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fn=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ke=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Hn=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ot=N(["#text"]),Dt=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ue=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ct=N(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),de=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zn=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Gn=O(/<%[\w\W]*|[\w\W]*%>/gm),Wn=O(/\$\{[\w\W]*/gm),Bn=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yn=O(/^aria-[\-\w]+$/),vt=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xn=O(/^(?:\w+script|data):/i),qn=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pt=O(/^html$/i),$n=O(/^[a-z][.\w]*(-[.\w]+)+$/i);var It=Object.freeze({__proto__:null,ARIA_ATTR:Yn,ATTR_WHITESPACE:qn,CUSTOM_ELEMENT:$n,DATA_ATTR:Bn,DOCTYPE_NAME:Pt,ERB_EXPR:Gn,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:Xn,MUSTACHE_EXPR:zn,TMPLIT_EXPR:Wn});const ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Vn=function(){return typeof window>"u"?null:window},Qn=function(r,s){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(l=s.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return r.createPolicy(d,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},wt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vn();const r=o=>jt(o);if(r.version="3.3.0",r.removed=[],!i||!i.document||i.document.nodeType!==ne.document||!i.Element)return r.isSupported=!1,r;let{document:s}=i;const l=s,u=l.currentScript,{DocumentFragment:d,HTMLTemplateElement:P,Node:X,Element:T,NodeFilter:L,NamedNodeMap:kt=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Ut,DOMParser:Ft,trustedTypes:re}=i,q=T.prototype,Ht=te(q,"cloneNode"),zt=te(q,"remove"),Gt=te(q,"nextSibling"),Wt=te(q,"childNodes"),ae=te(q,"parentNode");if(typeof P=="function"){const o=s.createElement("template");o.content&&o.content.ownerDocument&&(s=o.content.ownerDocument)}let x,$="";const{implementation:ge,createNodeIterator:Bt,createDocumentFragment:Yt,getElementsByTagName:Xt}=s,{importNode:qt}=l;let S=wt();r.isSupported=typeof Mt=="function"&&typeof ae=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Te,ERB_EXPR:Ee,TMPLIT_EXPR:Ae,DATA_ATTR:$t,ARIA_ATTR:Vt,IS_SCRIPT_OR_DATA:Qt,ATTR_WHITESPACE:We,CUSTOM_ELEMENT:Kt}=It;let{IS_ALLOWED_URI:Be}=It,h=null;const Ye=c({},[...Lt,...Pe,...je,...ke,...Ot]);let E=null;const Xe=c({},[...Dt,...Ue,...Ct,...de]);let f=Object.seal(Fe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,_e=null;const U=Object.seal(Fe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qe=!0,xe=!0,$e=!1,Ve=!0,F=!1,oe=!0,j=!1,Se=!1,ye=!1,H=!1,ie=!1,se=!1,Qe=!0,Ke=!1;const Zt="user-content-";let Ne=!0,Q=!1,z={},G=null;const Ze=c({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const et=c({},["audio","video","img","source","image","track"]);let be=null;const tt=c({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",ce="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let W=I,Re=!1,Le=null;const Jt=c({},[le,ce,I],Me);let ue=c({},["mi","mo","mn","ms","mtext"]),me=c({},["annotation-xml"]);const en=c({},["title","style","font","a","script"]);let K=null;const tn=["application/xhtml+xml","text/html"],nn="text/html";let g=null,B=null;const rn=s.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(B&&B===e)){if((!e||typeof e!="object")&&(e={}),e=v(e),K=tn.indexOf(e.PARSER_MEDIA_TYPE)===-1?nn:e.PARSER_MEDIA_TYPE,g=K==="application/xhtml+xml"?Me:he,h=D(e,"ALLOWED_TAGS")?c({},e.ALLOWED_TAGS,g):Ye,E=D(e,"ALLOWED_ATTR")?c({},e.ALLOWED_ATTR,g):Xe,Le=D(e,"ALLOWED_NAMESPACES")?c({},e.ALLOWED_NAMESPACES,Me):Jt,be=D(e,"ADD_URI_SAFE_ATTR")?c(v(tt),e.ADD_URI_SAFE_ATTR,g):tt,Je=D(e,"ADD_DATA_URI_TAGS")?c(v(et),e.ADD_DATA_URI_TAGS,g):et,G=D(e,"FORBID_CONTENTS")?c({},e.FORBID_CONTENTS,g):Ze,V=D(e,"FORBID_TAGS")?c({},e.FORBID_TAGS,g):v({}),_e=D(e,"FORBID_ATTR")?c({},e.FORBID_ATTR,g):v({}),z=D(e,"USE_PROFILES")?e.USE_PROFILES:!1,qe=e.ALLOW_ARIA_ATTR!==!1,xe=e.ALLOW_DATA_ATTR!==!1,$e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,j=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,se=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,Ke=e.SANITIZE_NAMED_PROPS||!1,Ne=e.KEEP_CONTENT!==!1,Q=e.IN_PLACE||!1,Be=e.ALLOWED_URI_REGEXP||vt,W=e.NAMESPACE||I,ue=e.MATHML_TEXT_INTEGRATION_POINTS||ue,me=e.HTML_INTEGRATION_POINTS||me,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(xe=!1),ie&&(H=!0),z&&(h=c({},Ot),E=[],z.html===!0&&(c(h,Lt),c(E,Dt)),z.svg===!0&&(c(h,Pe),c(E,Ue),c(E,de)),z.svgFilters===!0&&(c(h,je),c(E,Ue),c(E,de)),z.mathMl===!0&&(c(h,ke),c(E,Ct),c(E,de))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?U.tagCheck=e.ADD_TAGS:(h===Ye&&(h=v(h)),c(h,e.ADD_TAGS,g))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?U.attributeCheck=e.ADD_ATTR:(E===Xe&&(E=v(E)),c(E,e.ADD_ATTR,g))),e.ADD_URI_SAFE_ATTR&&c(be,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(G===Ze&&(G=v(G)),c(G,e.FORBID_CONTENTS,g)),Ne&&(h["#text"]=!0),j&&c(h,["html","head","body"]),h.table&&(c(h,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,$=x.createHTML("")}else x===void 0&&(x=Qn(re,u)),x!==null&&typeof $=="string"&&($=x.createHTML(""));N&&N(e),B=e}},rt=c({},[...Pe,...je,...Fn]),at=c({},[...ke,...Hn]),an=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:W,tagName:"template"});const a=he(e.tagName),m=he(t.tagName);return Le[e.namespaceURI]?e.namespaceURI===ce?t.namespaceURI===I?a==="svg":t.namespaceURI===le?a==="svg"&&(m==="annotation-xml"||ue[m]):!!rt[a]:e.namespaceURI===le?t.namespaceURI===I?a==="math":t.namespaceURI===ce?a==="math"&&me[m]:!!at[a]:e.namespaceURI===I?t.namespaceURI===ce&&!me[m]||t.namespaceURI===le&&!ue[m]?!1:!at[a]&&(en[a]||!rt[a]):!!(K==="application/xhtml+xml"&&Le[e.namespaceURI]):!1},C=function(e){Z(r.removed,{element:e});try{ae(e).removeChild(e)}catch{zt(e)}},k=function(e,t){try{Z(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(H||ie)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ot=function(e){let t=null,a=null;if(ye)e="<remove></remove>"+e;else{const p=ve(e,/^[\r\n\t ]+/);a=p&&p[0]}K==="application/xhtml+xml"&&W===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const m=x?x.createHTML(e):e;if(W===I)try{t=new Ft().parseFromString(m,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(W,"template",null);try{t.documentElement.innerHTML=Re?$:m}catch{}}const _=t.body||t.documentElement;return e&&a&&_.insertBefore(s.createTextNode(a),_.childNodes[0]||null),W===I?Xt.call(t,j?"html":"body")[0]:j?t.documentElement:_},it=function(e){return Bt.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof Ut&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof kt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},st=function(e){return typeof X=="function"&&e instanceof X};function w(o,e,t){pe(o,a=>{a.call(r,e,t,B)})}const lt=function(e){let t=null;if(w(S.beforeSanitizeElements,e,null),De(e))return C(e),!0;const a=g(e.nodeName);if(w(S.uponSanitizeElement,e,{tagName:a,allowedTags:h}),oe&&e.hasChildNodes()&&!st(e.firstElementChild)&&y(/<[/\w!]/g,e.innerHTML)&&y(/<[/\w!]/g,e.textContent)||e.nodeType===ne.progressingInstruction||oe&&e.nodeType===ne.comment&&y(/<[/\w]/g,e.data))return C(e),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(a))&&(!h[a]||V[a])){if(!V[a]&&ut(a)&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,a)||f.tagNameCheck instanceof Function&&f.tagNameCheck(a)))return!1;if(Ne&&!G[a]){const m=ae(e)||e.parentNode,_=Wt(e)||e.childNodes;if(_&&m){const p=_.length;for(let R=p-1;R>=0;--R){const M=Ht(_[R],!0);M.__removalCount=(e.__removalCount||0)+1,m.insertBefore(M,Gt(e))}}}return C(e),!0}return e instanceof T&&!an(e)||(a==="noscript"||a==="noembed"||a==="noframes")&&y(/<\/no(script|embed|frames)/i,e.innerHTML)?(C(e),!0):(F&&e.nodeType===ne.text&&(t=e.textContent,pe([Te,Ee,Ae],m=>{t=J(t,m," ")}),e.textContent!==t&&(Z(r.removed,{element:e.cloneNode()}),e.textContent=t)),w(S.afterSanitizeElements,e,null),!1)},ct=function(e,t,a){if(Qe&&(t==="id"||t==="name")&&(a in s||a in rn))return!1;if(!(xe&&!_e[t]&&y($t,t))){if(!(qe&&y(Vt,t))){if(!(U.attributeCheck instanceof Function&&U.attributeCheck(t,e))){if(!E[t]||_e[t]){if(!(ut(e)&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&y(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t,e))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&y(f.tagNameCheck,a)||f.tagNameCheck instanceof Function&&f.tagNameCheck(a))))return!1}else if(!be[t]){if(!y(Be,J(a,We,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Pn(a,"data:")===0&&Je[e])){if(!($e&&!y(Qt,J(a,We,"")))){if(a)return!1}}}}}}}return!0},ut=function(e){return e!=="annotation-xml"&&ve(e,Kt)},mt=function(e){w(S.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||De(e))return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let m=t.length;for(;m--;){const _=t[m],{name:p,namespaceURI:R,value:M}=_,Y=g(p),Ce=M;let A=p==="value"?Ce:jn(Ce);if(a.attrName=Y,a.attrValue=A,a.keepAttr=!0,a.forceKeepAttr=void 0,w(S.uponSanitizeAttribute,e,a),A=a.attrValue,Ke&&(Y==="id"||Y==="name")&&(k(p,e),A=Zt+A),oe&&y(/((--!?|])>)|<\/(style|title|textarea)/i,A)){k(p,e);continue}if(Y==="attributename"&&ve(A,"href")){k(p,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){k(p,e);continue}if(!Ve&&y(/\/>/i,A)){k(p,e);continue}F&&pe([Te,Ee,Ae],pt=>{A=J(A,pt," ")});const ft=g(e.nodeName);if(!ct(ft,Y,A)){k(p,e);continue}if(x&&typeof re=="object"&&typeof re.getAttributeType=="function"&&!R)switch(re.getAttributeType(ft,Y)){case"TrustedHTML":{A=x.createHTML(A);break}case"TrustedScriptURL":{A=x.createScriptURL(A);break}}if(A!==Ce)try{R?e.setAttributeNS(R,p,A):e.setAttribute(p,A),De(e)?C(e):Rt(r.removed)}catch{k(p,e)}}w(S.afterSanitizeAttributes,e,null)},on=function o(e){let t=null;const a=it(e);for(w(S.beforeSanitizeShadowDOM,e,null);t=a.nextNode();)w(S.uponSanitizeShadowNode,t,null),lt(t),mt(t),t.content instanceof d&&o(t.content);w(S.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,a=null,m=null,_=null;if(Re=!o,Re&&(o="<!-->"),typeof o!="string"&&!st(o))if(typeof o.toString=="function"){if(o=o.toString(),typeof o!="string")throw ee("dirty is not a string, aborting")}else throw ee("toString is not a function");if(!r.isSupported)return o;if(Se||Oe(e),r.removed=[],typeof o=="string"&&(Q=!1),Q){if(o.nodeName){const M=g(o.nodeName);if(!h[M]||V[M])throw ee("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof X)t=ot("<!---->"),a=t.ownerDocument.importNode(o,!0),a.nodeType===ne.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?t=a:t.appendChild(a);else{if(!H&&!F&&!j&&o.indexOf("<")===-1)return x&&se?x.createHTML(o):o;if(t=ot(o),!t)return H?null:se?$:""}t&&ye&&C(t.firstChild);const p=it(Q?o:t);for(;m=p.nextNode();)lt(m),mt(m),m.content instanceof d&&on(m.content);if(Q)return o;if(H){if(ie)for(_=Yt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(E.shadowroot||E.shadowrootmode)&&(_=qt.call(l,_,!0)),_}let R=j?t.outerHTML:t.innerHTML;return j&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y(Pt,t.ownerDocument.doctype.name)&&(R="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
`+R),F&&pe([Te,Ee,Ae],M=>{R=J(R,M," ")}),x&&se?x.createHTML(R):R},r.setConfig=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oe(o),Se=!0},r.clearConfig=function(){B=null,Se=!1},r.isValidAttribute=function(o,e,t){B||Oe({});const a=g(o),m=g(e);return ct(a,m,t)},r.addHook=function(o,e){typeof e=="function"&&Z(S[o],e)},r.removeHook=function(o,e){if(e!==void 0){const t=Mn(S[o],e);return t===-1?void 0:vn(S[o],t,1)[0]}return Rt(S[o])},r.removeHooks=function(o){S[o]=[]},r.removeAllHooks=function(){S=wt()},r}var Kn=jt();function Zn({...i}){return n.jsx(sn,{"data-slot":"accordion",...i})}function Jn({className:i,...r}){return n.jsx(ln,{"data-slot":"accordion-item",className:Ge("border-b last:border-b-0",i),...r})}function er({className:i,children:r,...s}){return n.jsx(cn,{className:"flex",children:n.jsxs(un,{"data-slot":"accordion-trigger",className:Ge("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",i),...s,children:[r,n.jsx(bn,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function tr({className:i,children:r,...s}){return n.jsx(mn,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...s,children:n.jsx("div",{className:Ge("pt-0 pb-4",i),children:r})})}function Tr(){const[i,r]=dt.useState(""),{data:s=[],isLoading:l,error:u}=fn({queryKey:["faqs"],queryFn:Rn.getFaqs,staleTime:An.STATIC,gcTime:En.STATIC}),d=dt.useMemo(()=>{if(!i.trim())return s;const T=i.toLowerCase();return s.filter(L=>L.question.toLowerCase().includes(T)||L.answer.toLowerCase().includes(T))},[s,i]),P=Ln([{name:"ГлавнаÑ",url:fe.siteUrl},{name:"FAQ"}]),X={"@context":"https://schema.org","@type":"FAQPage",mainEntity:s.map(T=>({"@type":"Question",name:T.question,acceptedAnswer:{"@type":"Answer",text:T.answer.replace(/<[^>]*>/g,"")}}))};return u?n.jsxs("div",{className:"min-h-screen flex flex-col",children:[n.jsx(gt,{}),n.jsx("main",{className:"flex-1 flex items-center justify-center p-6",children:n.jsx(_n,{children:n.jsxs(xn,{children:[n.jsx(Sn,{variant:"icon",children:n.jsx(we,{})}),n.jsx(yn,{children:"Ошибка загрузки FAQ"}),n.jsx(Nn,{children:"Ðе удалоÑÑŒ загрузить чаÑто задаваемые вопроÑÑ‹. Попробуйте обновить Ñтраницу."})]})})}),n.jsx(Tt,{})]}):n.jsxs(n.Fragment,{children:[n.jsxs(pn,{children:[n.jsx("title",{children:"FAQ - ЧаÑто задаваемые вопроÑÑ‹ | Goh.Place"}),n.jsx("meta",{name:"description",content:"Ответы на чаÑто задаваемые вопроÑÑ‹ о Goh.Place - поиÑке кальÑнных и магазинов табачных изделий. Ðайдите ответы на Ñвои вопроÑÑ‹."}),n.jsx("link",{rel:"canonical",href:`${fe.siteUrl}/faq`}),n.jsx("meta",{property:"og:title",content:"FAQ - ЧаÑто задаваемые вопроÑÑ‹ | Goh.Place"}),n.jsx("meta",{property:"og:description",content:"Ответы на чаÑто задаваемые вопроÑÑ‹ о Goh.Place"}),n.jsx("meta",{property:"og:type",content:"website"}),n.jsx("meta",{property:"og:url",content:`${fe.siteUrl}/faq`}),n.jsx("meta",{property:"og:image",content:`${fe.siteUrl}/images/logo-favicon.png`}),n.jsx("meta",{property:"og:site_name",content:"Goh.Place"}),n.jsx("script",{type:"application/ld+json",children:JSON.stringify(On)}),n.jsx("script",{type:"application/ld+json",children:JSON.stringify(P)}),s.length>0&&n.jsx("script",{type:"application/ld+json",children:JSON.stringify(X)})]}),n.jsxs("div",{className:"min-h-screen flex flex-col",children:[n.jsx(gt,{}),n.jsx("main",{id:"main-content",className:"flex-1",children:n.jsxs("div",{className:"container mx-auto px-4 py-8 space-y-8",children:[n.jsxs("nav",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[n.jsx(ht,{to:"/",className:"hover:text-foreground transition-colors",children:n.jsx(Tn,{className:"size-4"})}),n.jsx("span",{children:"/"}),n.jsx("span",{className:"text-foreground",children:"FAQ"})]}),n.jsxs("div",{className:"space-y-4 max-w-3xl mx-auto",children:[n.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"ЧаÑто задаваемые вопроÑÑ‹"}),n.jsx("p",{className:"text-lg text-muted-foreground",children:"Ответы на популÑрные вопроÑÑ‹ о Goh.Place и наших ÑервиÑах"})]}),n.jsxs("div",{className:"max-w-2xl mx-auto",children:[n.jsxs("div",{className:"relative",children:[n.jsx(Nt,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-5 text-muted-foreground"}),n.jsx(hn,{type:"search",placeholder:"ПоиÑк по вопроÑам...",value:i,onChange:T=>r(T.target.value),className:"pl-10 pr-10"}),i&&n.jsx("button",{onClick:()=>r(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"ОчиÑтить поиÑк",children:n.jsx(dn,{className:"size-5"})})]}),i&&n.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Ðайдено результатов: ",d.length]})]}),l&&n.jsx("div",{className:"max-w-3xl space-y-4",children:Array.from({length:5}).map((T,L)=>n.jsxs("div",{className:"border rounded-lg p-4 space-y-3",children:[n.jsx(Ie,{className:"h-6 w-3/4"}),n.jsx(Ie,{className:"h-4 w-full"}),n.jsx(Ie,{className:"h-4 w-5/6"})]},L))}),!l&&s.length===0&&n.jsx("div",{className:"py-20",children:n.jsx(At,{children:n.jsxs(_t,{children:[n.jsx(xt,{variant:"icon",children:n.jsx(we,{})}),n.jsx(St,{children:"Пока нет вопроÑов"}),n.jsx(yt,{children:"FAQ Ñкоро поÑвÑÑ‚ÑÑ. Следите за обновлениÑми!"})]})})}),!l&&s.length>0&&d.length===0&&n.jsx("div",{className:"py-20",children:n.jsxs(At,{children:[n.jsxs(_t,{children:[n.jsx(xt,{variant:"icon",children:n.jsx(Nt,{})}),n.jsx(St,{children:"Ðичего не найдено"}),n.jsx(yt,{children:"Попробуйте изменить поиÑковый запроÑ"})]}),n.jsx(Et,{variant:"secondary",onClick:()=>r(""),children:"ОчиÑтить поиÑк"})]})}),!l&&d.length>0&&n.jsx("div",{className:"max-w-3xl mx-auto",children:n.jsx(Zn,{type:"multiple",className:"space-y-4",children:d.map(T=>{const L=Kn.sanitize(T.answer,{ALLOWED_TAGS:["p","br","strong","em","u","a","ul","ol","li"],ALLOWED_ATTR:["href","target","rel"]});return n.jsxs(Jn,{value:T.id,id:`question-${T.id}`,className:"border rounded-lg bg-card hover:border-primary/50 transition-colors",children:[n.jsx(er,{className:"px-6 py-4 text-left hover:no-underline group",children:n.jsxs("div",{className:"flex items-start gap-4 flex-1 pr-4",children:[n.jsx("div",{className:"flex-shrink-0 mt-1",children:n.jsx("div",{className:"size-8 rounded-full bg-primary/10 flex items-center justify-center group-hover:bg-primary/20 transition-colors",children:n.jsx(we,{className:"size-4 text-primary"})})}),n.jsx("h2",{className:"text-lg font-semibold flex-1 text-balance",children:T.question})]})}),n.jsx(tr,{className:"px-6 pb-6",children:n.jsx("div",{className:"pl-12",children:n.jsx("div",{className:`prose prose-sm dark:prose-invert max-w-none
prose-p:text-muted-foreground prose-p:leading-relaxed
prose-a:text-primary prose-a:no-underline hover:prose-a:underline
prose-strong:text-foreground prose-strong:font-semibold
prose-ul:my-2 prose-ol:my-2
prose-li:text-muted-foreground`,dangerouslySetInnerHTML:{__html:L}})})})]},T.id)})})}),!l&&s.length>0&&n.jsxs("div",{className:"max-w-3xl mx-auto mt-12 p-6 bg-muted/50 rounded-lg border",children:[n.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Ðе нашли ответ на Ñвой вопроÑ?"}),n.jsx("p",{className:"text-muted-foreground mb-4",children:"СвÑжитеÑÑŒ Ñ Ð½Ð°Ð¼Ð¸, и мы обÑзательно поможем вам решить ваш вопроÑ."}),n.jsx("div",{className:"flex flex-wrap gap-3",children:n.jsx(ht,{to:"/feedback",children:n.jsx(Et,{children:"Задать вопроÑ"})})})]})]})}),n.jsx(Tt,{})]})]})}export{Tr as default};