1import{r as d}from"../sentry/YYG_py3S.js";import"../router/DS5YZTZu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"4.7.4"};var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fdb19480-f9ff-4704-8a68-242f75ba8fa3",e._sentryDebugIdIdentifier="sentry-dbid-fdb19480-f9ff-4704-8a68-242f75ba8fa3")}catch{}})();const x=e=>{setTimeout(e,0)},z=new Set,ie=(e,s,o)=>{const t=[];for(const r of e.querySelectorAll("script")){const n=r.getAttribute("type");if(!n||n==="application/ecmascript"||n==="application/javascript"||n==="text/javascript"){const i=r.textContent;i&&t.push(i),r.remove()}}if(t.length>0&&(s==="always"||s==="once"&&!z.has(o))){for(const r of t)new Function(r)(window);z.add(o)}},ce="http://www.w3.org/2000/svg",ae=(e,s)=>{const o=e.querySelector("#"+CSS.escape(s));if((o==null?void 0:o.tagName.toLowerCase())!=="symbol")return null;const t=document.createElementNS(ce,"svg");for(const r of o.attributes)r.name!=="id"&&t.setAttribute(r.name,r.value);for(const r of o.childNodes)t.appendChild(r.cloneNode(!0));return t},le=e=>e.cloneNode(!0),Y=()=>window.location.protocol==="file:",ue=e=>/\.svg$/i.test(new URL(e,document.baseURI).pathname),re=(e,s,o)=>{const t=new XMLHttpRequest;let r=!1;t.onreadystatechange=()=>{if(!r)try{if(t.readyState===2&&!ue(e)){const n=t.getResponseHeader("Content-Type"),i=(n??"").split(";")[0].trim().toLowerCase();if(!i)throw new Error("Content type not found");if(!(i==="image/svg+xml"||i==="text/plain"))throw new Error(`Invalid content type: ${i}`)}if(t.readyState===4){if(t.status===404||t.responseXML===null)throw new Error(Y()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(t.status===200||Y()&&t.status===0)r=!0,o(null,t);else throw new Error("There was a problem injecting the SVG: "+t.status+" "+t.statusText)}}catch(n){if(r=!0,t.abort(),n instanceof Error)o(n,t);else throw n}};try{t.open("GET",e),t.withCredentials=s,t.overrideMimeType("image/svg+xml"),t.send()}catch(n){if(r=!0,n instanceof Error)x(()=>{o(n,t)});else throw n}},G=new Map,M=(e,s,o)=>{for(const t of e)x(()=>{t(s,o?le(o):void 0)})},fe=(e,s,o)=>{const t=G.get(e);if((t==null?void 0:t.state)==="loaded"){M([o],null,t.svg);return}if(t){t.waiters.push(o);return}const r=[o];G.set(e,{state:"loading",waiters:r}),re(e,s,(n,i)=>{var l;const c=(l=i.responseXML)===null||l===void 0?void 0:l.documentElement;n?(G.delete(e),M(r,n)):c instanceof SVGSVGElement?(G.set(e,{state:"loaded",svg:c}),M(r,null,c)):(G.delete(e),M(r,new Error(`Unable to parse SVG from response: ${e}`)))})},de=(e,s,o)=>{re(e,s,(t,r)=>{var n;t?o(t):((n=r.responseXML)===null||n===void 0?void 0:n.documentElement)instanceof SVGSVGElement?o(null,r.responseXML.documentElement):o(new Error(`Unable to parse SVG from response: ${e}`))})},me="data:image/svg+xml",pe="charset=",we=["utf-8","utf8"],ge=e=>new TextDecoder().decode(Uint8Array.from(e,s=>s.charCodeAt(0))),he=e=>{if(!e.startsWith(me))return null;const s=e.slice(18),o=s.indexOf(",");if(o===-1)return new Error("Unsupported data URL format");const[t,...r]=s.slice(0,o).split(";");if(t!=="")return new Error("Unsupported data URL format");let n=!1;for(const h of r){const p=h.toLowerCase();if(p==="base64")n=!0;else if(p.startsWith(pe)){if(!we.includes(p.slice(8)))return new Error("Unsupported data URL format")}else return new Error("Unsupported data URL format")}const i=s.slice(o+1);let l;if(n)try{l=ge(atob(i))}catch{return new Error("Invalid base64 in data URL")}else try{l=decodeURIComponent(i)}catch{return new Error("Invalid encoding in data URL")}const c=new DOMParser().parseFromString(l,"image/svg+xml"),m=c.querySelector("parsererror");return m?new Error("Data URL SVG parse error: "+m.textContent.trim()):c.documentElement instanceof SVGSVGElement?c.documentElement:new Error("Data URL did not contain a valid SVG element")};let ye=0;const be=()=>++ye,J="http://www.w3.org/1999/xlink",ne={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},Ee=new Set([].concat(...Object.values(ne))),O=(e,s)=>e.replace(/url\((['"]?)\s*#([^\s'"\)]+)\s*\1\)/g,(o,t,r)=>{const n=s.get(r);return n?`url(#${n})`:o}),K=(e,s)=>{if(!e.startsWith("#"))return e;const o=s.get(e.slice(1));return o?"#"+o:e},ve=e=>{const s=[],o=new Map;for(const t of Object.keys(ne))for(const r of e.querySelectorAll(`${t}[id]`)){const n=`${r.id}-${be()}`;o.set(r.id,n),s.push({element:r,newId:n})}for(const t of Ee)for(const r of e.querySelectorAll(`[${t}]`)){const n=r.getAttribute(t);if(n){const i=O(n,o);i!==n&&r.setAttribute(t,i)}}for(const t of e.querySelectorAll("*")){const r=t.getAttribute("href");if(r){const i=K(r,o);i!==r&&t.setAttribute("href",i)}const n=t.getAttributeNS(J,"href");if(n){const i=K(n,o);i!==n&&t.setAttributeNS(J,"href",i)}}for(const t of e.querySelectorAll("[style]")){const r=t.getAttribute("style");if(r){const n=O(r,o);n!==r&&t.setAttribute("style",n)}}for(const t of e.querySelectorAll("style")){const r=t.textContent;if(r){const n=O(r,o);n!==r&&(t.textContent=n)}}for(const{element:t,newId:r}of s)t.id=r},S=new Set,Se="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xlink",Q=(e,s,o,t,r,n,i)=>{var l;const c=(l=e.getAttribute("data-src"))!==null&&l!==void 0?l:e.getAttribute("src");if(!c){x(()=>{i(new Error("Invalid data-src or src attribute"))});return}if(S.has(e)){x(()=>{i(new Error(`Injection already in progress: ${c}`))});return}S.add(e),e.setAttribute("src","");const m=c.indexOf("#"),h=m!==-1?c.slice(0,m):c,p=m!==-1?c.slice(m+1):null,y=he(h);if(y instanceof Error){S.delete(e),x(()=>{i(y)});return}const g=(_,b)=>{var L,C;if(!b){S.delete(e),i(_);return}let a=b;if(p){const f=ae(b,p);if(!f){S.delete(e),i(new Error(`Symbol "${p}" not found in ${h}`));return}a=f}const $=e.getAttribute("id");$&&a.setAttribute("id",$);const k=e.getAttribute("title");k&&a.setAttribute("title",k);const A=e.getAttribute("width");A&&a.setAttribute("width",A);const q=e.getAttribute("height");q&&a.setAttribute("height",q);const H=Array.from(new Set([...((L=a.getAttribute("class"))!==null&&L!==void 0?L:"").split(" "),"injected-svg",...((C=e.getAttribute("class"))!==null&&C!==void 0?C:"").split(" ")])).join(" ").trim();a.setAttribute("class",H);const N=e.getAttribute("style");N&&a.setAttribute("style",N),a.setAttribute("data-src",c);for(const f of e.attributes)/^data-\w[\w-]*$/.test(f.name)&&f.value&&a.setAttribute(f.name,f.value);o&&ve(a),a.removeAttribute("xmlns:a"),ie(a,s,c);for(const f of a.querySelectorAll("style"))f.textContent+="";a.setAttribute("xmlns",Se),a.setAttribute("xmlns:xlink",xe);try{n(a)}catch(f){throw S.delete(e),i(f instanceof Error?f:new Error(String(f))),f}if(!e.parentNode){S.delete(e),i(new Error("Parent node is null"));return}e.parentNode.replaceChild(a,e),S.delete(e),i(null,a)};if(y){x(()=>{g(null,y)});return}(t?fe:de)(h,r,g)},Ae=(e,{afterAll:s=()=>{}
1,afterEach:o=()=>{},beforeEach:t=()=>{},cacheRequests:r=!0,evalScripts:n="never",httpRequestWithCredentials:i=!1,renumerateIRIElements:l=!0}={})=>{if(e&&"nodeType"in e)Q(e,n,l,r,i,t,(c,m)=>{try{o(c,m)}finally{s(1)}});else if(e){const c=Array.from(e);if(c.length===0){x(()=>{s(0)});return}let m=0;for(const h of c)Q(h,n,l,r,i,t,(p,y)=>{try{o(p,y)}finally{c.length===++m&&s(m)}})}else x(()=>{s(0)})},Ie=e=>((e==null?void 0:e.ownerDocument)||document).defaultView||window,R="http://www.w3.org/2000/svg",Z="http://www.w3.org/1999/xlink",ee=`react-svg-${Math.random().toString(36).slice(2,6)}`;let te=0;const Ce=d.forwardRef(({afterInjection:e=()=>{},beforeInjection:s=()=>{},desc:o="",evalScripts:t="never",fallback:r,httpRequestWithCredentials:n=!1,loading:i,loadingDelay:l=0,onError:c=()=>{},renumerateIRIElements:m=!0,src:h,title:p="",useRequestCache:y=!0,wrapper:g="div",..._},b)=>{const[L,C]=d.useState(!1),[a,$]=d.useState(!0),[k,A]=d.useState(l<=0),[q,H]=d.useState(0),N=d.useRef(!1),f=d.useRef(null),D=d.useRef({afterInjection:e,beforeInjection:s,onError:c});d.useEffect(()=>{D.current={afterInjection:e,beforeInjection:s,onError:c}});const W=d.useRef(l);d.useEffect(()=>{W.current=l});const oe=d.useCallback(E=>{f.current=E,typeof b=="function"?b(E):b&&(b.current=E)},[b]);d.useEffect(()=>{const E=f.current;if(!(E instanceof Ie(E).Node))return;let P=!0,w=null;const B=()=>{w!=null&&w.parentNode&&(w.parentNode.removeChild(w),w=null)};C(!1),$(!0),A(W.current<=0),N.current?H(u=>u+1):N.current=!0;let T;g==="svg"?(w=document.createElementNS(R,g),w.setAttribute("xmlns",R),w.setAttribute("xmlns:xlink",Z),T=document.createElementNS(R,g)):(w=document.createElement(g),T=document.createElement(g)),w.appendChild(T),T.dataset.src=h,E.appendChild(w);const X=u=>{B(),P&&(C(!0),$(!1)),D.current.onError(u)};return Ae(T,{afterEach:(u,U)=>{if(u){X(u);return}if(P){$(!1);try{D.current.afterInjection(U)}catch(V){X(V)}}},beforeEach:u=>{u.setAttribute("role","img");const U=[],V=[];if(p){const I=u.querySelector(":scope > title");I&&u.removeChild(I);const j=`${ee}-title-${++te}`,v=document.createElementNS(R,"title");v.id=j,v.textContent=p,u.prepend(v),U.push(j)}if(o){const I=u.querySelector(":scope > desc");I&&u.removeChild(I);const j=`${ee}-desc-${++te}`,v=document.createElementNS(R,"desc");v.id=j,v.textContent=o;const F=u.querySelector(":scope > title");F?F.after(v):u.prepend(v),V.push(j)}U.length>0&&u.setAttribute("aria-labelledby",U.join(" ")),V.length>0&&u.setAttribute("aria-describedby",V.join(" "));try{D.current.beforeInjection(u)}catch(I){X(I)}},cacheRequests:y,evalScripts:t,httpRequestWithCredentials:n,renumerateIRIElements:m}),()=>{P=!1,B()}},[o,t,n,m,h,p,y,g]),d.useEffect(()=>{if(!a)return;if(l<=0){A(!0);return}A(!1);const E=setTimeout(()=>{A(!0)},l);return()=>{clearTimeout(E)}},[q,a,l]);const se=g;return d.createElement(se,{..._,ref:oe,...g==="svg"?{xmlns:R,xmlnsXlink:Z}:{}},a&&k&&i&&d.createElement(i,null),L&&r&&d.createElement(r,null))});Ce.displayName="ReactSVG";export{Ce as R}; 2//# sourceMappingURL=Cyn7zWx7.js.map
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.