vendor: 4,361 bytes, lines 1-8
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CVaFdu0x.js","./Ca-PWo6e.js","./eFdCCj3t.js","./Bfd5Thr0.js","./C_YC4gad.js","./mapbox-gl.CvTM5QQz.css","./entry.CmiWYls6.css","./CnIzEZxX.js","./DaxMOIa6.js","./CDf80O8W.js","./n7VRO2w0.js","./DaMDcely.js","./DYFwginy.js","./B2lZMuGL.js","./CiA4kC4s.js","./DDKZblOx.js","./BvzO3fEK.js","./D0v4YBCn.js","./Dt71Bsnr.js","./BARU-S6K.js","./Briie_Du.js","./B-A_pheB.js"])))=>i.map(i=>d[i]); 2import{B as te,o as p,c as f,i as l,d as F,b as E,bq as oe,t as x,e as c,a as I,ai as Ce,j as S,D as C,F as T,y as q,n as R,z as Z,$ as B,Z as qe,a1 as Fe,m as $,l as fe,R as Be,q as M,br as Ve,v as De,w as Ne,a3 as ge,k as P,bs as ct,bt as dt,M as Ie,aj as ut,L as O,p as pt,a0 as Oe,aP as Me,O as ht,as as ft,aR as Ze,b7 as gt,bi as mt,bu as vt,bv as xt,bw as ze,bx as bt,h as _t,u as He,X as kt,aW as wt,A as $t,aY as Re,f as yt,_ as Ct}from"./eFdCCj3t.js";import{u as It}from"./B2lZMuGL.js";import{u as zt}from"./DDKZblOx.js";import{_ as Rt}from"./BvzO3fEK.js";import{_ as St}from"./Ca-PWo6e.js";import{_ as Et}from"./CnIzEZxX.js";import{u as Tt}from"./CiA4kC4s.js";import{_ as At}from"./D0v4YBCn.js";import{I as Lt}from"./Dt71Bsnr.js";import{u as jt}from"./BARU-S6K.js";import{u as Pt}from"./Briie_Du.js";import{V as qt,v as Ft}from"./B-A_pheB.js";function me(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let X=me();function Qe(r){X=r}const Ue=/[&<>"']/,Bt=new RegExp(Ue.source,"g"),Ke=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Vt=new RegExp(Ke.source,"g"),Dt={"&":"&","<":"<",">":">",'"':""","'":"'"},Se=r=>Dt[r];function j(r,e){if(e){if(Ue.test(r))return r.replace(Bt,Se)}else if(Ke.test(r))return r.replace(Vt,Se);return r}const Nt=/(^|[^\[])\^/g;function y(r,e){let t=typeof r=="string"?r:r.source;e=e||"";const s={replace:(n,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Nt,"$1"),t=t.replace(n,o),s},getRegex:()=>new RegExp(t,e)};return s}function Ee(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const ee={exec:()=>null};function Te(r,e){const t=r.replace(/\|/g,(i,o,a)=>{let d=!1,h=o;for(;--h>=0&&a[h]==="\\";)d=!d;return d?"|":" |"}),s=t.split(/ \|/);let n=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function Y(r,e,t){const s=r.length;if(s===0)return"";let n=0;for(;n<s&&r.charAt(s-n-1)===e;)n++;return r.slice(0,s-n)}function Ot(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])t++;else if(r[s]===e[1]&&(t--,t<0))return s;return-1}function Ae(r,e,t,s){const n=e.href,i=e.title?j(e.title):null,o=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:t,href:n,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:t,href:n,title:i,text:j(o)}}function Mt(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const s=t[1];return e.split(` 3`).map(n=>{const i=n.match(/^\s+/);if(i===null)return n;const[o]=i;return o.length>=s.length?n.slice(s.length):n}).join(` 4`)}class le{options;rules;lexer;constructor(e){this.options=e||X}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Y(s,` 5`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],n=Mt(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const n=Y(s,"#");(this.options.pedantic||!n||/ $/.test(n))&&(s=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Y(t[0],` 6`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=Y(t[0],` 7`).split(` 8`),n="",i="";const o=[];for(;s.length>0;){let a=!1;const d=[];let h;for(h=0;h<s.length;h++)if(/^ {0,3}>
vendor: 5,482 bytes, lines 8-26
8/.test(s[h]))d.push(s[h]),a=!0;else if(!a)d.push(s[h]);else break;s=s.slice(h);const u=d.join(` 9`),g=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` 10 $1`).replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n} 11${u}`:u,i=i?`${i} 12${g}`:g;const v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,o,!0),this.lexer.state.top=v,s.length===0)break;const m=o[o.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){const b=m,k=b.raw+` 13`+s.join(` 14`),_=this.blockquote(k);o[o.length-1]=_,n=n.substring(0,n.length-b.raw.length)+_.raw,i=i.substring(0,i.length-b.text.length)+_.text;break}else if(m?.type==="list"){const b=m,k=b.raw+` 15`+s.join(` 16`),_=this.list(k);o[o.length-1]=_,n=n.substring(0,n.length-m.raw.length)+_.raw,i=i.substring(0,i.length-b.raw.length)+_.raw,s=k.substring(o[o.length-1].raw.length).split(` 17`);continue}}return{type:"blockquote",raw:n,tokens:o,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const n=s.length>1,i={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");const o=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;e;){let d=!1,h="",u="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let g=t[2].split(` 18`,1)[0].replace(/^\t+/,A=>" ".repeat(3*A.length)),v=e.split(` 19`,1)[0],m=!g.trim(),b=0;if(this.options.pedantic?(b=2,u=g.trimStart()):m?b=t[1].length+1:(b=t[2].search(/[^ ]/),b=b>4?1:b,u=g.slice(b),b+=t[1].length),m&&/^[ \t]*$/.test(v)&&(h+=v+` 20`,e=e.substring(v.length+1),d=!0),!d){const A=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),U=new RegExp(`^ {0,${Math.min(3,b-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),N=new RegExp(`^ {0,${Math.min(3,b-1)}}(?:\`\`\`|~~~)`),z=new RegExp(`^ {0,${Math.min(3,b-1)}}#`),H=new RegExp(`^ {0,${Math.min(3,b-1)}}<(?:[a-z].*>|!--)`,"i");for(;e;){const W=e.split(` 21`,1)[0];let Q;if(v=W,this.options.pedantic?(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),Q=v):Q=v.replace(/\t/g," "),N.test(v)||z.test(v)||H.test(v)||A.test(v)||U.test(v))break;if(Q.search(/[^ ]/)>=b||!v.trim())u+=` 22`+Q.slice(b);else{if(m||g.replace(/\t/g," ").search(/[^ ]/)>=4||N.test(g)||z.test(g)||U.test(g))break;u+=` 23`+v}!m&&!v.trim()&&(m=!0),h+=W+` 24`,e=e.substring(W.length+1),g=Q.slice(b)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(h)&&(a=!0));let k=null,_;this.options.gfm&&(k=/^\[[ xX]\] /.exec(u),k&&(_=k[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:h,task:!!k,checked:_,loose:!1,text:u,tokens:[]}),i.raw+=h}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let d=0;d<i.items.length;d++)if(this.lexer.state.top=!1,i.items[d].tokens=this.lexer.blockTokens(i.items[d].text,[]),!i.loose){const h=i.items[d].tokens.filter(g=>g.type==="space"),u=h.length>0&&h.some(g=>/\n.*\n/.test(g.raw));i.loose=u}if(i.loose)for(let d=0;d<i.items.length;d++)i.items[d].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const s=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=Te(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` 25`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===n.length){for(const a of n)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<s.length;a++)o.header.push({text:s[a],tokens:this.lexer.inline(s[a]),header:!0,align:o.align[a]});for(const a of i)o.rows.push(Te(a,o.header.length).map((d,h)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:o.align[h]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===` 26`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:j(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();
vendor: 4,614 bytes, line 26
26if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const o=Y(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=Ot(t[2],"()");if(o>-1){const d=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,d).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(s)?n=n.slice(1):n=n.slice(1,-1)),Ae(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const n=(s[2]||s[1]).replace(/\s+/g," "),i=t[n.toLowerCase()];if(!i){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return Ae(s,i,s[0],this.lexer)}}emStrong(e,t,s=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...n[0]].length-1;let a,d,h=o,u=0;const g=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,t=t.slice(-1*e.length+o);(n=g.exec(t))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(d=[...a].length,n[3]||n[4]){h+=d;continue}else if((n[5]||n[6])&&o%3&&!((o+d)%3)){u+=d;continue}if(h-=d,h>0)continue;d=Math.min(d,d+h+u);const v=[...n[0]][0].length,m=e.slice(0,o+n.index+v+d);if(Math.min(o,d)%2){const k=m.slice(1,-1);return{type:"em",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}const b=m.slice(2,-2);return{type:"strong",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const n=/[^ ]/.test(s),i=/^ /.test(s)&&/ $/.test(s);return n&&i&&(s=s.substring(1,s.length-1)),s=j(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,n;return t[2]==="@"?(s=j(t[1]),n="mailto:"+s):(s=j(t[1]),n=s),{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,n;if(t[2]==="@")s=j(t[0]),n="mailto:"+s;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);s=j(t[0]),t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=j(t[0]),{type:"text",raw:t[0],text:s}}}}const Zt=/^(?:[ \t]*(?:\n|$))+/,Ht=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,se=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ut=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ge=/(?:[*+-]|\d{1,9}[.)])/,Xe=y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ge).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ve=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Kt=/^[^\n]+/,xe=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Gt=y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xt=y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ge).getRegex(),de="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",be=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wt=y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
26)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",be).replace("tag",de).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),We=y(ve).replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex(),Yt=y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",We).getRegex(),_e={blockquote:Yt,code:Ht,def:Gt,fences:Qt,heading:Ut,hr:se,html:Wt,lheading:Xe,list:Xt,newline:Zt,paragraph:We,table:ee,text:Kt},Le=y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex(),Jt={..._e,table:Le,paragraph:y(ve).replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Le).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",de).getRegex()},es={..._e,html:y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",be).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(ve).replace("hr",se).replace("heading",` *#{1,6} *[^ 27]`).replace("lheading",Xe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ye=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ts=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Je=/^( {2,}|\\)\n(?!\s*$)/,ss=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ne="\\p{P}\\p{S}",ns=y(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,ne).getRegex(),is=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,rs=y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,ne).getRegex(),os=y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,ne).getRegex(),ls=y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,ne).getRegex(),as=y(/\\([punct])/,"gu").replace(/punct/g,ne).getRegex(),cs=y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ds=y(be).replace("(?:-->|$)","-->").getRegex(),us=y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ds).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ae=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ps=y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ae).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),et=y(/^!?\[(label)\]\[(ref)\]/).replace("label",ae).replace("ref",xe).getRegex(),tt=y(/^!?\[(ref)\](?:\[\])?/).replace("ref",xe).getRegex(),hs=y("reflink|nolink(?!\\()","g").replace("reflink",et).replace("nolink",tt).getRegex(),ke={_backpedal:ee,anyPunctuation:as,autolink:cs,blockSkip:is,br:Je,code:ts,del:ee,emStrongLDelim:rs,emStrongRDelimAst:os,emStrongRDelimUnd:ls,escape:Ye,link:ps,nolink:tt,punctuation:ns,reflink:et,reflinkSearch:hs,tag:us,text:ss,url:ee},fs={...ke,link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",ae).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae).getRegex()},he={...ke,escape:y(Ye).replace("])","~|])").getRegex(),url:y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},gs={...he,br:y(Je).replace("{2,}","*").getRegex(),text:y(he.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ie={normal:_e,gfm:Jt,pedantic:es},J={normal:ke,gfm:he,breaks:gs,pedantic:fs};class V{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||X,this.options.tokenizer=this.options.tokenizer||new le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ie.normal,inline:J.normal};this.options.pedantic?(t.block=ie.pedantic,t.inline=J.pedantic):this.options.gfm&&(t.block=ie.gfm,this.options.breaks?t.inline=J.breaks:t.inline=J.gfm),this.tokenizer.rules=t}static get rules(){return{block:ie,inline:J}}static lex(e,t){return new V(t).lex(e)}static lexInline(e,t){return new V(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` 28`),this.blockTokens(e,this.tokens);for(let t=0;
vendor: 8,847 bytes, lines 28-55
28t<this.inlineQueue.length;t++){const s=this.inlineQueue[t];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],s=!1){this.options.pedantic&&(e=e.replace(/\t/g," ").replace(/^ +$/gm,""));let n,i,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=` 29`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` 30`+n.raw,i.text+=` 31`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` 32`+n.raw,i.text+=` 33`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const d=e.slice(1);let h;this.options.extensions.startBlock.forEach(u=>{h=u.call({lexer:this},d),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){i=t[t.length-1],s&&i?.type==="paragraph"?(i.raw+=` 34`+n.raw,i.text+=` 35`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),s=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` 36`+n.raw,i.text+=` 37`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let s,n,i,o=e,a,d,h;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(d||(h=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(s=u.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,o,h)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const g=e.slice(1);let v;this.options.extensions.startInline.forEach(m=>{v=m.call({lexer:this},g),typeof v=="number"&&v>=0&&(u=Math.min(u,v))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(s=this.tokenizer.inlineText(i)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(h=s.raw.slice(-1)),d=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class ce{options;parser;constructor(e){this.options=e||X}space(e){return""}code({text:e,lang:t,escaped:s}){const n=(t||"").match(/^\S*/)?.[0],i=e.replace(/\n$/,"")+` 38`;return n?'<pre><code class="language-'+j(n)+'">'+(s?i:j(i,!0))+`</code></pre> 39`:"<pre><code>"+(s?i:j(i,!0))+`</code></pre> 40`}blockquote({tokens:e}){return`<blockquote> 41${this.parser.parse(e)}</blockquote> 42`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 43`}hr(e){return`<hr> 44`}list(e){const t=e.ordered,s=e.start;let n="";for(let a=0;a<e.items.length;a++){const d=e.items[a];n+=this.listitem(d)}const i=t?"ol":"ul",o=t&&s!==1?' start="'+s+'"':"";return"<"+i+o+`> 45`+n+"</"+i+`> 46`}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 47`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 48`}table(e){let t="",s="";for(let i=0;i<e.header.length;i++)s+=this.tablecell(e.header[i]);t+=this.tablerow({text:s});let n="";for(let i=0;i<e.rows.length;i++){const o=e.rows[i];s="";for(let a=0;a<o.length;a++)s+=this.tablecell(o[a]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table> 49<thead> 50`+t+`</thead> 51`+n+`</table> 52`}tablerow({text:e}){return`<tr> 53${e}</tr> 54`}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}> 55`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){const n=this.parser.parseInline(s),i=Ee(e);if(i===null)return n;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:s}){const n=Ee(e);if(n===null)return s;e=n;let i=`<img src="${e}" alt="${s}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class we{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class D{options;renderer;textRenderer;constructor(e){this.options=e||X,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new we}static parse(e,t){return new D(t).parse(e)}static parseInline(e,t){return new D(t).parseInline(e)}parse(e,t=!0){let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const a=i,d=this.options.extensions.renderers[a.type].call({parser:this},a);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){s+=d||"";continue}}const o=i;switch(o.type){case"space":{s+=this.renderer.space(o);continue}case"hr":{s+=this.renderer.hr(o);continue}case"heading":{s+=this.renderer.heading(o);continue}case"code":{s+=this.renderer.code(o);continue}case"table":{s+=this.renderer.table(o);continue}
vendor: 5,316 bytes, lines 55-56
55case"blockquote":{s+=this.renderer.blockquote(o);continue}case"list":{s+=this.renderer.list(o);continue}case"html":{s+=this.renderer.html(o);continue}case"paragraph":{s+=this.renderer.paragraph(o);continue}case"text":{let a=o,d=this.renderer.text(a);for(;n+1<e.length&&e[n+1].type==="text";)a=e[++n],d+=` 56`+this.renderer.text(a);t?s+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d}]}):s+=d;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}parseInline(e,t){t=t||this.renderer;let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=a||"";continue}}const o=i;switch(o.type){case"escape":{s+=t.text(o);break}case"html":{s+=t.html(o);break}case"link":{s+=t.link(o);break}case"image":{s+=t.image(o);break}case"strong":{s+=t.strong(o);break}case"em":{s+=t.em(o);break}case"codespan":{s+=t.codespan(o);break}case"br":{s+=t.br(o);break}case"del":{s+=t.del(o);break}case"text":{s+=t.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}}class re{options;block;constructor(e){this.options=e||X}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?V.lex:V.lexInline}provideParser(){return this.block?D.parse:D.parseInline}}class ms{defaults=me();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=D;Renderer=ce;TextRenderer=we;Lexer=V;Tokenizer=le;Hooks=re;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(const n of e)switch(s=s.concat(t.call(this,n)),n.type){case"table":{const i=n;for(const o of i.header)s=s.concat(this.walkTokens(o.tokens,t));for(const o of i.rows)for(const a of o)s=s.concat(this.walkTokens(a.tokens,t));break}case"list":{const i=n;s=s.concat(this.walkTokens(i.items,t));break}default:{const i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{const a=i[o].flat(1/0);s=s.concat(this.walkTokens(a,t))}):i.tokens&&(s=s.concat(this.walkTokens(i.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=t.renderers[i.name];o?t.renderers[i.name]=function(...a){let d=i.renderer.apply(this,a);return d===!1&&(d=o.apply(this,a)),d}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),s.renderer){const i=this.defaults.renderer||new ce(this.defaults);for(const o in s.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,d=s.renderer[a],h=i[a];i[a]=(...u)=>{let g=d.apply(i,u);return g===!1&&(g=h.apply(i,u)),g||""}}n.renderer=i}if(s.tokenizer){const i=this.defaults.tokenizer||new le(this.defaults);for(const o in s.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,d=s.tokenizer[a],h=i[a];i[a]=(...u)=>{let g=d.apply(i,u);return g===!1&&(g=h.apply(i,u)),g}}n.tokenizer=i}if(s.hooks){const i=this.defaults.hooks||new re;for(const o in s.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,d=s.hooks[a],h=i[a];re.passThroughHooks.has(o)?i[a]=u=>{if(this.defaults.async)return Promise.resolve(d.call(i,u)).then(v=>h.call(i,v));const g=d.call(i,u);return h.call(i,g)}:i[a]=(...u)=>{let g=d.apply(i,u);return g===!1&&(g=h.apply(i,u)),g}}n.hooks=i}if(s.walkTokens){const i=this.defaults.walkTokens,o=s.walkTokens;n.walkTokens=function(a){let d=[];return d.push(o.call(this,a)),i&&(d=d.concat(i.call(this,a))),d}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return V.lex(e,t??this.defaults)}parser(e,t){return D.parse(e,t??this.defaults)}parseMarkdown(e){return(s,n)=>{const i={...n},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));
56if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const d=o.hooks?o.hooks.provideLexer():e?V.lex:V.lexInline,h=o.hooks?o.hooks.provideParser():e?D.parse:D.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>h(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let u=d(s,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let g=h(u,o);return o.hooks&&(g=o.hooks.postprocess(g)),g}catch(u){return a(u)}}}onError(e,t){return s=>{if(s.message+=` 57Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+j(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}}const G=new ms;function w(r,e){return G.parse(r,e)}w.options=w.setOptions=function(r){return G.setOptions(r),w.defaults=G.defaults,Qe(w.defaults),w};w.getDefaults=me;w.defaults=X;w.use=function(...r){return G.use(...r),w.defaults=G.defaults,Qe(w.defaults),w};w.walkTokens=function(r,e){return G.walkTokens(r,e)};w.parseInline=G.parseInline;w.Parser=D;w.parser=D.parse;w.Renderer=ce;w.TextRenderer=we;w.Lexer=V;w.lexer=V.lex;w.Tokenizer=le;w.Hooks=re;w.parse=w;w.options;w.setOptions;w.use;w.walkTokens;w.parseInline;D.parse;V.lex;const vs={},xs={width:"50",height:"51",viewBox:"0 0 50 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bs(r,e){return p(),f("svg",xs,[...e[0]||(e[0]=[l("g",{"clip-path":"url(#clip0_3780_79586)"},[l("path",{d:"M21.927 28.7571C21.834 28.7571 21.741 28.7571 21.6479 28.7571C14.6619 28.7571 7.67544 28.7571 0.689417 28.7571C0.342723 28.7571 0.336147 28.7581 0.284002 28.4155C0.113943 27.2953 -0.058934 26.1728 0.0185788 25.0352C0.0636772 24.3746 0.159981 23.7177 0.236084 23.0331H21.9308C21.9387 23.0124 21.9467 22.9922 21.9547 22.9715C16.3935 18.7502 10.8323 14.5288 5.26643 10.3037C6.44416 8.78457 7.76141 7.43227 9.25294 6.21811C13.4955 10.4616 17.7338 14.7003 22.0238 18.9912V0.811244C23.9367 0.422656 25.8266 0.379428 27.7395 0.78681V18.8775C32.0131 14.6035 36.2885 10.3272 40.5639 6.0513C42.1193 7.30117 43.4502 8.6469 44.6448 10.174C39.0315 14.4452 33.4271 18.7098 27.8227 22.9744C27.8302 22.9946 27.8382 23.0148 27.8457 23.035H28.1388C35.2268 23.035 42.3147 23.035 49.4022 23.035C49.7729 23.035 49.7757 23.035 49.8161 23.3958C49.8828 23.9935 49.9923 24.5912 49.9984 25.1898C50.0054 25.9214 49.9364 26.6549 49.8772 27.3856C49.8405 27.8352 49.7597 28.2812 49.6963 28.7491H27.8555C27.8466 28.7679 27.8377 28.7867 27.8288 28.8051C33.3082 32.9475 38.7877 37.0895 44.292 41.2507C43.0894 42.7435 41.7308 44.0596 40.2158 45.2395C36.0771 41.1003 31.9431 36.9654 27.7574 32.7788V50.2122C25.8379 50.6172 23.948 50.5805 22.0299 50.191V32.8314C17.9114 36.949 13.8196 41.0397 9.7401 45.1187C9.09979 44.8556 6.28819 42.1059 5.6291 41.1116C11.0672 37.0115 16.5063 32.9104 21.9458 28.8088C21.9397 28.7914 21.9331 28.7736 21.927 28.7562V28.7571Z",fill:"white"})],-1),l("defs",null,[l("clipPath",{id:"clip0_3780_79586"},[l("rect",{width:"50",height:"50",fill:"white",transform:"translate(0 0.5)"})])],-1)])])}const _s=te(vs,[["render",bs]]),ks={class:"h-full"},ws={class:"h1-support p-content pb-0",id:"text-header-datos-historicos"},$s={class:"relative flex h-full flex-col justify-center pb-content"},ys={key:0,class:"absolute bottom-0 left-0 top-0 z-50 w-20 rounded-xl bg-gradient-to-l from-white/0 to-white/100"},Cs={key:0,class:"absolute bottom-0 right-0 top-0 z-50 w-20 rounded-xl bg-gradient-to-r from-white/0 to-white/100"},Is={class:"timeline timeline-horizontal timeline-snap-icon overflow-x-auto px-5"},zs=["id"],Rs={class:"font-sans text-[28px] font-bold leading-[120%]"},Ss={class:"font-sans text-[16px] font-normal"},Es=F({__name:"DashboardProteccion",props:{info:{}},setup(r){const{t:e}=E(),t=Z(null),s=Z(null),n=oe(t),i=oe(s);return(o,a)=>(p(),f("div",ks,[l("div",ws,x(c(e)("proteccion_dashboard_title")),1),l("div",$s,[I(Ce,{name:"fade"},{default:S(()=>[c(n)?C("",!0):(p(),f("div",ys))]),_:1}),I(Ce,{name:"fade"},{default:S(()=>[c(i)?C("",!0):(p(),f("div",Cs))]),_:1}
57),l("ul",Is,[(p(!0),f(T,null,q(r.info.datos,(d,h)=>(p(),f("li",{id:`dato-historico-${h+1}`,ref_for:!0,ref:u=>{h===0&&(t.value=u),h===r.info.datos?.length-1&&(s.value=u)}},[a[0]||(a[0]=l("div",{class:"timeline-middle"},[l("div",{class:"-ml-2 h-4 w-4 rounded-full bg-black"})],-1)),l("div",{class:R(["w-[400px]",h%2===0?["timeline-start"]:["timeline-end"]])},[l("div",Rs,x(c(e)(d.title)),1),l("div",Ss,x(c(e)(d.description)),1)],2),a[1]||(a[1]=l("hr",null,null,-1))],8,zs))),256))])])]))}}),Ts=te(Es,[["__scopeId","data-v-1f2a7d05"]]),As={class:"flex h-full flex-col gap-10 p-content"},Ls={class:"h1-support"},js={class:"flex max-h-[450px] flex-col gap-4 overflow-y-auto"},Ps={class:"flex w-full gap-4"},qs={class:"flex flex-col justify-center rounded-[12px] bg-[#F4F4F4]"},Fs={class:"m-4 flex h-[35px] w-[35px] justify-center rounded-full bg-recreacion p-2 tablet:m-6 tablet:h-[78px] tablet:w-[78px] tablet:p-4"},Bs=["src","alt"],Vs={class:"flex w-full items-center rounded-[12px] bg-[#F4F4F4] p-5 font-sans text-[16px] leading-none tablet:p-content tablet:text-[24px]"},Ds=F({__name:"DashboardRecreacion",props:{info:{}},setup(r){const{t:e}=E();return(t,s)=>(p(),f("div",As,[l("div",Ls,x(c(e)("recreacion_dashboard_title")),1),l("div",js,[(p(!0),f(T,null,q(r.info.actividades,n=>(p(),f("div",Ps,[l("div",qs,[l("div",Fs,[n.icon?(p(),f("img",{key:0,src:n.icon,class:"h-full w-full object-contain",alt:`Icono de ${n.name}`},null,8,Bs)):C("",!0)])]),l("div",Vs,x(c(e)(n.title)),1)]))),256))])]))}}),Ns=B("/images/fauna_icon.png"),Os=B("/images/flora_icon.png"),st=B("/images/most_seen_icon.svg"),Ms={class:"flex h-full flex-col"},Zs={class:"flex w-full items-center justify-between p-content pb-5"},Hs={class:"h1-support",id:"text-header-especies"},Qs={class:"font-national2Condensed text-[34px] font-medium leading-[95%] tablet:text-[64px]",id:"text-total-especies"},Us={class:"flex h-full flex-col rounded-t-card bg-[#FFEAEB]"},Ks={class:"flex shrink-0 flex-col p-content pb-0 pt-5"},Gs={class:"flex w-full justify-between gap-6"},Xs={id:"card-fauna",class:"flex flex-1 flex-wrap items-center justify-center gap-2 rounded-[12px] bg-white p-2 font-national2Condensed text-[18px] font-medium leading-[95%] tablet:h-[40px] tablet:w-[248px] tablet:px-4 tablet:text-[24px]"},Ws={class:"grow"},Ys={id:"card-flora",class:"flex flex-1 flex-wrap items-center justify-center gap-2 rounded-[12px] bg-white p-2 font-national2Condensed text-[18px] font-medium leading-[95%] tablet:h-[40px] tablet:w-[248px] tablet:px-4 tablet:text-[24px]"},Js={class:"grow"},en={class:"mt-content flex h-full flex-col gap-2"},tn={class:"flex gap-4"},sn={class:"grid h-full max-h-[200px] grid-cols-1 gap-4 overflow-auto tablet:grid-cols-2"},nn=["id"],rn={key:0,src:st,class:"absolute right-2 top-2 h-4 w-4"},on={class:"h-[24px] w-[24px] shrink-0"},ln=["src"],an={class:"flex flex-col"},cn={class:"text-[16px] leading-[95%] tracking-[1%]"},dn={class:"text-[16px] font-normal italic leading-[95%] tracking-[1%]"},un={class:"flex grow flex-col justify-end gap-2 p-content font-national2Condensed text-[16px] italic leading-[95%] tracking-[4%]"},pn={key:0,class:"flex gap-2"},hn={class:"flex gap-3"},fn=F({__name:"DashboardEspecies",props:{info:{}},setup(r){const{t:e}=E(),t=Z("criticas");return(s,n)=>(p(),f("div",Ms,[l("div",Zs,[l("div",Hs,x(c(e)("especies_dashboard_title","ESPECIES")),1
57),l("div",Qs,x(r.info.fauna+r.info.flora)+"* ",1)]),l("div",Us,[l("div",Ks,[l("div",Gs,[l("div",Xs,[n[2]||(n[2]=l("img",{src:Ns,id:"img-fauna",class:"h-[24px] w-[24px] object-contain"},null,-1)),l("div",Ws,x(c(e)("especies_dashboard_fauna","Fauna")),1),l("div",null,x(r.info.fauna)+"*",1)]),l("div",Ys,[n[3]||(n[3]=l("img",{src:Os,id:"img-flora",class:"h-[24px] w-[24px] object-contain"},null,-1)),l("div",Js,x(c(e)("especies_dashboard_flora","Flora")),1),l("div",null,x(r.info.flora)+"*",1)])]),l("div",en,[l("div",tn,[l("div",{id:"btn-especies-criticas",class:R(["btn rounded-[32px] font-sans text-[20px] font-medium leading-[100%] -tracking-[2%] tablet:h-[45px] tablet:w-[112px] max-tablet:flex-1",c(t)==="criticas"?"btn-accent":["btn-outline","text-black"]]),onClick:n[0]||(n[0]=i=>t.value="criticas")},x(c(e)("especies_dashboard_criticas","CrÃticas")),3),l("div",{id:"btn-especies-interes",class:R(["btn rounded-[32px] font-sans text-[20px] font-medium leading-[100%] -tracking-[2%] tablet:h-[45px] tablet:w-[112px] max-tablet:flex-1",c(t)==="interes"?"btn-accent":["btn-outline","text-black"]]),onClick:n[1]||(n[1]=i=>t.value="interes")},x(c(e)("especies_dashboard_interes","Interés")),3)]),n[4]||(n[4]=l("div",{class:"divider divider-secondary m-0"},null,-1)),l("div",sn,[(p(!0),f(T,null,q(c(t)==="criticas"?r.info.criticas:r.info.interes,(i,o)=>(p(),f("div",{id:`card-especie-${c(t)}-${o+1}`,class:R(["relative flex h-auto min-h-[50px] flex-1 items-center gap-4 roun
57ded-[12px] border bg-white px-4 py-8 font-national2Condensed text-[24px] font-medium leading-[95%]",i.mostSeen?i.type==="fauna"?"border-fauna":"border-flora":"border-transparent"])},[i.mostSeen?(p(),f("img",rn)):C("",!0),l("div",on,[i.icon?(p(),f("img",{key:0,src:i.icon,class:"h-[24px] w-[24px] object-contain"},null,8,ln)):(p(),f("div",{key:1,class:R(["h-[24px] w-[24px] rounded-full",i.type==="fauna"?"bg-fauna":"bg-flora"])},null,2))]),l("div",an,[l("div",cn,x(c(e)(i.name)),1),l("div",dn,x(i.scientific),1)])],10,nn))),256))])])]),l("div",un,[(c(t)==="criticas"?r.info.criticas.some(i=>i.mostSeen):r.info.interes.some(i=>i.mostSeen))?(p(),f("div",pn,[n[5]||(n[5]=l("img",{src:st,class:"",alt:"Icono de especie más avistada"},null,-1)),l("div",null,x(c(e)("especies_dashboard_most_seen","Más avistada en la región.")),1)])):C("",!0),l("div",hn,[n[6]||(n[6]=l("div",null,"*",-1)),l("div",null,x(c(e)("especies_dashboard_footnote","Cantidad de organismos que hay en el área y que se han observado.")),1)])])])]))}}),je=B("/images/viveros_leafes_icon.png"),gn={class:"flex h-full flex-col gap-10 bg-viveros p-content"},mn={class:"flex flex-col gap-4"},vn={id:"card-cantidad-arboles",class:"flex min-h-[100px] w-full flex-col items-center gap-6 rounded-[12px] bg-white p-5 shadow-lg tablet:flex-row"},xn={class:"flex shrink-0 flex-wrap items-center justify-between gap-6 max-tablet:w-full"},bn={id:"text-cantidad-arboles",class:"font-national2Condensed text-[53.82px] font-medium"},_n={id:"text-descripcion-cantidad",class:"font-sans text-[16px] leading-[100%]"},kn={class:"flex flex-col gap-4"},wn={id:"text-header-especies",class:"h1-support"},$n={class:"carousel w-full space-x-4"},yn=["id","href"],Cn={class:"flex h-2/3 w-full flex-col justify-end bg-viveros-dark"},In=["src","id","alt"],zn={class:"flex w-full grow flex-col bg-white p-3"},Rn=["id"],Sn=["id"],En={class:"flex h-full flex-col justify-end"},Tn={class:"ml-4"},An={class:"flex aspect-square h-[40px] -rotate-45 items-center justify-center rounded-full bg-white text-black","aria-label":"Ver listado de árboles"},Ln=F({__name:"DashboardViveros",props:{info:{}},setup(r){const{t:e}=E("arboles"),{data:t}=zt(void 0,{filterBy:["siembra"]}),s=t,n=$(()=>s.value?[...s.value].sort((i,o)=>{const a=e.value(`tree_name_${i.id}`).toLowerCase(),d=e.value(`tree_name_${o.id}`).toLowerCase();return a.localeCompare(d)}):null);return(i,o)=>{const a=Fe;return p(),f("div",gn,[l("div",mn,[l("div",vn,[l("div",xn,[o[1]||(o[1]=l("div",{class:"flex shrink-0 gap-1"},[l("img",{src:je,id:"img-viveros-hojas-1",class:"h-[48px] w-[48px] object-contain",alt:"Icono de hojas de viveros"}),l("img",{src:je,id:"img-viveros-hojas-2",class:"h-[48px] w-[48px] object-contain tablet:hidden",alt:"Icono de hojas de viveros"})],-1)),l("div",bn,x(r.info.cantidad.toLocaleString()),1)]),l("div",_n,x(c(e)("viveros_dashboard_tree_count","Cantidad aproximada de árboles germinando anualmente en este vivero.")),1)])]),l("div",kn,[l("div",wn,x(c(e)("viveros_dashboard_species_germinating","ESPECIES EN GERMINACIÃN")),1),l("div",$n,[(p(!0),f(T,null,q(c(n),d=>(p(),f("a",{id:`card-especie-${d.slug}`,href:`/reforestacion/arboles?arbol=${d.slug}`,class:"carousel-item flex h-[204px] w-[136px] flex-col overflow-hidden rounded-[12px]"},[l("div",Cn,[l("img",{src:d.scale_image_url,id:`img-especie-${d.slug}`,class:"-mb-2 object-contain",alt:`Imagen de ${d.name}`},null,8,In)]),l("div",zn,[l("div",{id:`text-nombre-${d.slug}`,class:"font-sans text-[16px] font-bold leading-[120%]"},x(c(e)(`tree_name_${d.id}`,d.name??"")),9,Rn),l("div",{id:`text-nombre-cientifico-${d.slug}`,class:"text-[12px] font-normal italic leading-[100%]"},x(d.scientific_name),9,Sn)])],8,yn))),256))])]),l("div",En,[l("div",{id:"btn-ver-listado",class:"flex cursor-pointer items-center justify-between rounded-[36px] bg-viveros-dark p-2 font-national2Condensed text-[30px] font-medium leading-[90%] text-white",onClick:o[0]||(o[0]=d=>("navigateTo"in i?i.navigateTo:c(qe))("/reforestacion/arboles"))},[l("div",Tn,x(c(e)("viveros_dashboard_view_list","Ver listado")),1),l("div",An,[I(a,{class:"aspect-square w-full"})])])])])}}}),jn={class:"flex h-full flex-col gap-10 p-content"},Pn={class:"flex flex-col gap-4"},qn={class:"h1-support"},Fn={class:"font-sans text-[16px] font-normal"},Bn={class:"flex max-h-[350px] flex-col gap-4 overflow-y-auto"},Vn={class:"flex w-full gap-4"},Dn={class:"flex flex-col justify-center rounded-[12px] bg-[#F4F4F4]"},Nn={class:"m-4 h-[35px] w-[35px] rounded-full bg-ecosistemas tablet:m-6 tablet:h-[78px] tablet:w-[78px]"},On=["src","alt"],Mn={class:"flex w-full items-center rounded-[12px] bg-[#F4F4F4] p-5 font-sans text-[16px] leading-none tablet:text-[24px]"},Zn=F({__name:"DashboardEcosistemas",props:{info:{}},setup(r){const{t:e}=E();return(t,s)=>(p(),f("div",jn,[l("div",Pn,[l("div",qn,x(c(e)("ecosistemas_dashboard_title","ECOSISTEMAS")),1),l("div",Fn,x(c(e)("ecosistemas_dashboard_description","
57Los ecosistemas son sistemas que incluyen organismos vivos y factores abióticos como el suelo, el clima y el agua, interconectados de manera que cada componente depende de los otros para sobrevivir y funcionar.")),1)]),l("div",Bn,[(p(!0),f(T,null,q(r.info.tipos,n=>(p(),f("div",Vn,[l("div",Dn,[l("div",Nn,[n.icon?(p(),f("img",{key:0,src:n.icon,class:"h-full w-full object-contain",alt:`Icono de ${n.name}`},null,8,On)):C("",!0)])]),l("div",Mn,x(c(e)(n.title)),1)]))),256))])]))}}),Hn={class:"background flex h-[550px] flex-col p-content tablet:h-[520px]"},Qn={class:"flex flex-col items-start gap-4 text-white"},Un={id:"text-header-veredas",class:"h1-support"},Kn={id:"text-descripcion-veredas",class:"font-sans text-[16px] font-normal"},Gn={class:"laptop:mt-22 mt-20 grid max-h-[250px] grid-cols-1 gap-4 overflow-y-auto p-2 pt-4 tablet:mt-16 tablet:grid-cols-2"},Xn=["id"],Wn={class:"h-[24px] w-[24px]"},Yn={key:0,class:"m-0 flex h-full w-full p-0"},Jn=["id"],ei={key:1,class:"h-full w-full rounded-full"},ti=["id"],si={class:"flex flex-col"},ni=["id"],ii=["id"],ri=F({__name:"DashboardVeredas",props:{info:{}},setup(r){const{t:e}=E();return(t,s)=>{const n=fe;return p(),f("div",Hn,[l("div",Qn,[l("div",Un,x(c(e)("veredas.title","VEREDAS")),1),l("div",Kn,x(c(e)("veredas.description","Disfruta de la naturaleza, respira aire más puro, haz ejercicio u observa aves, te invitamos a disfrutar de nuestro sistema de veredas.")),1),I(n,{id:"btn-ver-veredas",to:"/veredas",class:"btn btn-outline w-48 rounded-badge font-sans text-[20px]"},{default:S(()=>[Be(x(c(e)("veredas.viewButton","VER VEREDAS")),1)]),_:1})]),l("div",Gn,[(p(!0),f(T,null,q(r.info.locations,(i,o)=>(p(),f("div",{id:`card-vereda-${o+1}`,class:"shadow-card relative flex h-[50px] flex-1 items-center gap-4 roun
57ded-[12px] bg-[#E4E8E3] pl-4 font-national2Condensed text-[24px] font-medium leading-[95%]"},[l("div",Wn,[i.group?(p(),f("div",Yn,[(p(!0),f(T,null,q(i.group,(a,d)=>(p(),f("div",{id:`icon-vereda-grupo-${o+1}-${d+1}`,class:R(["-ml-1 flex flex-col items-center",d%2!==0&&"-mt-2"])},[s[0]||(s[0]=l("div",{class:"z-30 h-[7.45px] w-[7.45px] rounded-full bg-white"},null,-1)),s[1]||(s[1]=l("div",{class:"z-20 -mt-[4px] h-[16.55px] w-[1.66px] rounded-full bg-[#F1F1F1]"},null,-1)),l("div",{class:"z-0 -mt-[6px] h-[9.93px] w-[9.93px] rounded-full",style:M({"background-color":a.color||"#808080"})},null,4)],10,Jn))),256))])):(p(),f("div",ei,[l("div",{id:`icon-vereda-${o+1}`,class:"flex flex-col items-center"},[s[2]||(s[2]=l("div",{class:"z-30 h-[7.45px] w-[7.45px] rounded-full bg-white"},null,-1)),s[3]||(s[3]=l("div",{class:"z-20 -mt-[4px] h-[16.55px] w-[1.66px] rounded-full bg-[#F1F1F1]"},null,-1)),l("div",{class:"z-0 -mt-[6px] h-[9.93px] w-[9.93px] rounded-full",style:M({"background-color":i.color||"#808080"})},null,4)],8,ti)]))]),l("div",si,[l("div",{id:`text-nombre-vereda-${o+1}`,class:"text-[16px] leading-[95%] tracking-[1%]"},x(c(e)(i.name)),9,ni),l("div",{id:`text-municipio-vereda-${o+1}`,class:"text-[16px] font-normal leading-[95%] tracking-[1%]"},x(c(e)(i.municipio)),9,ii)])],8,Xn))),256))])])}}}),oi=te(ri,[["__scopeId","data-v-96223d68"]]),li=B("/images/recreacion_icon.png"),ai=B("/images/viveros_icon.png"),ci=B("/images/viverossmall_icon.png"),di=B("/images/ecosistemas_icon.png"),ui=B("/images/veredas_icon.png"),pi=B("/images/veredassmall_icon.png"),hi={class:"grid grid-cols-1 items-start gap-5 p-content laptop:grid-cols-2 laptop:items-stretch"},fi={class:"relative z-10 order-2 flex flex-wrap content-start justify-center gap-2 self-start max-laptop:carousel laptop:order-1 laptop:gap-5 max-laptop:ml-2 max-laptop:p-2"},gi=["id"],mi={class:"flex h-full w-full min-w-0 flex-col justify-center overflow-x-clip px-0.5 text-center font-national2Condensed text-[42px] font-bold tabular-nums leading-[100%] -tracking-[1%] laptop:text-[58px] desktop:text-[76px]"},vi=["id"],xi=["id"],bi={class:"card-icon"},_i=["id"],ki=["id"],wi=["id"],$i={class:"card-icon"},yi=["src","id"],Ci=["id"],Ii=["id"],zi={class:"card-icon"},Ri=["id"],Si=["id"],Ei=["id"],Ti=["id"],Ai={class:"card-icon"},Li=["id"],ji=["id"],Pi=["id"],qi={class:"card-icon"},Fi=["id"],Bi=["id"],Vi=["id"],Di={class:"order-1 min-h-0 overflow-hidden rounded-card bg-white text-black laptop:order-2 laptop:h-full"},Ni=F({__name:"ReserveDashboard",props:{reserve:{}},setup(r){const{t:e}=E(),t=Ve(),s=$(()=>(r.reserve.slug||"").replace(/_/g,"-")),n=$(()=>ct[s.value]??{}),i=Z("proteccion");De(()=>setTimeout(()=>{o(i.value)},0)),Ne(i,(u,g)=>{g&&a(g),o(u)},{immediate:!0});function o(u){window.document.getElementById(u)?.classList.add("scale-105","!border-white"),window.document.getElementById(u+"-pill")?.classList.add("!border-white")}function a(u){window.document.getElementById(u)?.classList.remove("scale-105","!border-white"),window.document.getElementById(u+"-pill")?.classList.remove("!border-white")}const d=$(()=>Object.keys(n.value)),h=$(()=>{const u=d.value.length;if(t.smaller("desktop").value)return Array(u).fill("small-card");switch(u){case 3:return["xlarge-card","xlarge-card","xlarge-card"];case 4:return["large-card","small-card","small-card","large-card"];case 5:return["large-card","small-card","small-card","large-card","xlarge-card"];case 6:return["large-card","small-card","small-card","large-card","small-card","large-card"];default:return Array(u).fill("small-card")}});return(u,g)=>{const v=ge,m=Ts,b=Ds,k=fn,_=Ln,A=Zn,U=oi;return p(),f("div",hi,[l("div",fi,[I(v,null,{default:S(()=>[(p(!0),f(T,null,q(c(d),(N,z)=>(p(),f(T,null,[N==="proteccion"?(p(),f("div",{key:0,class:R(["small-card group bg-[#D5C2E6] text-[#61368E] max-laptop:carousel-item",c(h)[z]]),id:`card-proteccion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[0]||(g[0]=H=>i.value="proteccion")},[l("div",mi,x(c(e)(c(n).proteccion.year)),1),l("div",{id:`pill-proteccion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_protectionYear","Año de protección")),9,vi)],10,gi)):C("",!0),N==="recreacion"?(p(),f("div",{key:1,class:R(["group bg-[#A0CBEE] max-la
57ptop:carousel-item",c(h)[z]]),id:`card-recreacion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[1]||(g[1]=H=>i.value="recreacion")},[l("div",bi,[l("img",{src:li,id:`img-recreacion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de recreación",class:""},null,8,_i)]),l("div",{id:`pill-recreacion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_recreation","Recreación")),9,ki)],10,xi)):C("",!0),N==="especies"?(p(),f("div",{key:2,class:R(["group bg-[#FABDC1] max-laptop:carousel-item",c(h)[z]]),id:`card-especies-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[2]||(g[2]=H=>i.value="especies")},[l("div",$i,[l("img",{src:c(n).especies.icon,id:`img-especies-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de especies"},null,8,yi)]),l("div",{id:`pill-especies-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_species","Especies")),9,Ci)],10,wi)):C("",!0),N==="viveros"?(p(),f("div",{key:3,class:R(["group bg-[#8CE5C2] max-laptop:carousel-item",c(h)[z]]),id:`card-viveros-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[3]||(g[3]=H=>i.value="viveros")},[l("div",zi,[c(t).greater("desktop").value?(p(),f("img",{key:0,src:ai,id:`img-viveros-desktop-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de viveros",class:""},null,8,Ri)):(p(),f("img",{key:1,src:ci,id:`img-viveros-mobile-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de viveros",class:""},null,8,Si))]),l("div",{id:`pill-viveros-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_nurseries","Viveros")),9,Ei)],10,Ii)):C("",!0),N==="ecosistemas"?(p(),f("div",{key:4,class:R(["group bg-[#C4DB62] max-laptop:carousel-item",c(h)[z]]),id:`card-ecosistemas-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[4]||(g[4]=H=>i.value="ecosistemas")},[l("div",Ai,[l("img",{src:di,id:`img-ecosistemas-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de ecosistemas",class:"!w-[180px]"},null,8,Li)]),l("div",{id:`pill-ecosistemas-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_ecosystems","Ecosistemas")),9,ji)],10,Ti)):C("",!0),N==="veredas"?(p(),f("div",{key:5,class:R(["group bg-[#174518] max-laptop:carousel-item",c(h)[z]]),id:`card-veredas-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,onClick:g[5]||(g[5]=H=>i.value="veredas")},[l("div",qi,[c(t).greater("desktop").value?(p(),f("img",{key:0,src:ui,id:`img-veredas-desktop-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de veredas",class:"!w-[180px]"},null,8,Fi)):(p(),f("img",{key:1,src:pi,id:`img-veredas-mobile-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,alt:"Icono de veredas",class:"!w-[180px]"},null,8,Bi))]),l("div",{id:`pill-veredas-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"info-pill group-hover:border-white"},x(c(e)("dashboard_trails","Veredas")),9,Vi)],10,Pi)):C("",!0)],64))),256))]),_:1})]),l("div",Di,[c(i)==="proteccion"&&c(n).proteccion?(p(),P(m,{key:0,info:c(n).proteccion},null,8,["info"])):C("",!0),c(i)==="recreacion"&&c(n).recreacion?(p(),P(b,{key:1,info:c(n).recreacion},null,8,["info"])):C("",!0),c(i)==="especies"&&c(n).especies?(p(),P(k,{key:2,info:c(n).especies},null,8,["info"])):C("",!0),c(i)==="viveros"&&c(n).viveros?(p(),P(_,{key:3,info:c(n).viveros},null,8,["info"])):C("",!0),c(i)==="ecosistemas"&&c(n).ecosistemas?(p(),P(A,{key:4,info:c(n).ecosistemas},null,8,["info"])):C("",!0),c(i)==="veredas"&&c(n).veredas?(p(),P(U,{key:5,info:c(n).veredas},null,8,["info"])):C("",!0)])])}}}),Oi=te(Ni,[["__scopeId","data-v-bd7eee6b"]]),Mi=B("/images/mapa33_thumbnail.png"),Zi=B("/images/amigos.png"),Hi=B("/images/fondo_solidario.png"),Qi={class:"relative"},Ui=["id"],Ki=["id"],Gi={key:0,class:"absolute -bottom-6 left-0 right-0 flex justify-center gap-2"},Xi=["onClick","aria-label"],Wi=F({__name:"Carousel",props:{items:{},itemId:{},idPrefix:{}},setup(r){const e=r,t=Z(0),s=Z(null),n=Z(`carousel-${Math.random().toString(36).substring(2,9)}`),i=dt(),o=$(()=>!!i.postItems),a=$(()=>e.items?.length+(o.value?1:0)||0);function d(v){const m=v[e.itemId||"id"];return`${e.idPrefix||n.value}-item-${m}`}const h=$(()=>`${e.idPrefix||n.value}-item-postItems`);function u(){s.value&&s.value.disconnect();const v=document.querySelector(`#${n.value}`);if(s.value=new IntersectionObserver(m=>{const b=m.filter(k=>k.isIntersecting);if(b.length>0){const k=b.map(_=>{const A=_.target.id;return A===h.value?e.items?.length:e.items?.findIndex(U=>d(U)===A)}).filter(_=>_!==void 0&&_!==-1);if(k.length>0){const _=Math.min(...k);t.value=_}}},{root:v,threshold:[.5],rootMargin:"0px"}
57),e.items&&(t.value=0,e.items.forEach(m=>{const b=document.getElementById(d(m));b&&s.value?.observe(b)}),o.value)){const m=document.getElementById(h.value);m&&s.value?.observe(m)}}function g(v){if(v<e.items.length){const m=document.getElementById(d(e.items[v]));m&&(m.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),t.value=v)}else if(o.value&&v===e.items.length){const m=document.getElementById(h.value);m&&(m.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),t.value=v)}}return Ne(()=>e.items,v=>{v&&v.length>0&&Ie(()=>{u()})},{immediate:!0}),De(()=>{e.items&&e.items.length>0&&Ie(()=>{u()})}),ut(()=>{s.value&&s.value.disconnect()}),(v,m)=>{const b=ge;return p(),P(b,null,{default:S(()=>[l("div",Qi,[l("div",{id:n.value,class:"carousel w-full gap-4"},[r.items&&r.items.length>0?(p(!0),f(T,{key:0},q(r.items,(k,_)=>O(v.$slots,"default",{key:k[r.itemId||"id"],item:k,id:d(k),index:_,class:"carousel-item"})),128)):O(v.$slots,"noEvents",{key:1},()=>[m[0]||(m[0]=l("div",{class:"flex min-h-[200px] w-full items-center justify-center"},[l("span",{class:"text-white opacity-70"},"No hay elementos disponibles")],-1))]),l("div",{id:h.value,class:"carousel-item"},[O(v.$slots,"postItems")],8,Ki)],8,Ui),a.value>0?(p(),f("div",Gi,[(p(!0),f(T,null,q(a.value,k=>(p(),f("button",{key:k-1,onClick:_=>g(k-1),class:R(["h-2 w-2 rounded-full transition-all duration-300",[t.value===k-1?" bg-white":"bg-white/50 hover:bg-white/75"]]),"aria-label":`Ir al item ${k}`},null,10,Xi))),128))])):C("",!0)])]),_:3})}}}),Yi={class:"flex w-full flex-col",id:"acciones"},Ji={class:""},er={class:"relative max-laptop:carousel-item laptop:-mx-6 laptop:w-[210px] desktop:-mx-11 desktop:w-[300px]"},tr={class:"hidden laptop:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 116",fill:"none"},sr=["id","onClick"],nr={class:"flex flex-col gap-10 p-10 desktop:container desktop:mx-auto"},ir={class:"grid grid-cols-1 gap-5 laptop:grid-cols-2"},rr={class:"text-2xl"},or={class:"flex justify-end"},lr={class:"flex aspect-square h-8 -rotate-45 items-center justify-center rounded-full text-white"},ar={class:""},cr={key:0},dr={key:1,class:"grid grid-cols-1 gap-5 laptop:grid-cols-2"},ur={key:2,class:"relative"},pr={key:1,class:"relative"},hr={key:0},fr={key:2,class:"flex min-h-[250px] w-full flex-col items-center justify-center"},gr={key:0,class:"loading loading-ring loading-lg"},mr={key:1,class:"carousel flex w-full gap-4"},vr=F({__name:"CallsToAction",props:{reserveId:{},slug:{}},setup(r){const e=pt(),t=Oe(),{t:s}=E(),n=Me(),i=r,o=Ve(),a=$(()=>o.greater("laptop").value),d=Z(0),h=[{title:$(()=>s.value("nav_recreate","recrear")),description:$(()=>s.value("recrear_action_description","¡Acompáñanos a crear memorias al aire libre!")),link:"/recrear",color:"#2283c9",category:"recrear"},{title:$(()=>s.value("nav_learn","aprender")),description:$(()=>s.value("aprender_action_description","Intercambiemos conocimiento para juntos promover una cultura ecológica en nuestro archipiélago.")),link:"/aprender",color:"#61368E",category:"aprender"},{title:$(()=>s.value("nav_plant","sembrar")),description:$(()=>s.value("sembrar_action_description","Reforestemos las islas de Puerto Rico para mitigar los efectos de la crisis climática.")),link:"/sembrar",color:"#F05320",category:"sembrar"},{title:$(()=>s.value("nav_conserve","conservar")),description:$(()=>s.value("conservar_action_description","Sé parte del esfuerzo colectivo para proteger las islas de Puerto Rico.")),link:"/conservar",color:"#5E98A4",category:"conservar"},{title:$(()=>s.value("nav_collaborate","colaborar")),description:$(()=>s.value("colaborar_action_description","Cuidemos juntos la biodiversidad, la historia y los ecosistemas que nos sostienen.")),link:"/colaborar",color:"#FF707F",category:"colaborar"},{title:$(()=>s.value("nav_donate","donar")),description:$(()=>s.value("donar_action_description","Contribuye al legado de la conservación del archipiélago para futuras generaciones.")),link:"/donar",color:"#48A987",category:"donar"}],u=$(()=>h[d.value]),g=$(()=>[h[d.value].title.value]),v=$(()=>({actionCategory:u.value.category,property:i.slug})),{data:m,status:b}=Tt(i.reserveId,g,v,()=>t.value.getLanguage()),k=Z(null),_=Z(null),A=oe(k),U=oe(_);return(N,z)=>{const H=Fe,W=fe,Q=Rt,rt=Ze,$e=gt,ot=St,ue=Et,lt=ge;return p(),P(lt,null,{default:S(()=>[l("div",Yi,[l("div",{class:"carousel sticky top-0 z-40 snap-start scroll-px-4 gap-3 bg-transparent p-5 laptop:relative laptop:z-30 laptop:flex laptop:flex-nowrap laptop:justify-center laptop:gap-0 laptop:py-2 desktop:py-0",style:M({backgroundColor:a.value?"transparent":u.value.color})},[(p(),f(T,null,q(h,(L,K)=>l("div",Ji,[l("div",er,[(p(),f("svg",tr,[l("path",{style:M({fill:K===c(d)?u.value.color:"transparent"}),d:"M208 0C232 0 252.125 20.6061 252.125 45.3333C252.125 70.0606 272 94 296.5 94V116H0V94C24 94 44.125 70.0606 44.125 45.3333C44.125 20.6061 64 0 88 0H208Z"},null,4)])),l("button",{class:R(["btn-badge btn no-animation relative gap-0 border-2 border-white px-0 hover:border-white laptop:absolute laptop:left-[18.5%] laptop:top-[8%]",{"hover:!bg-gray-500/70":K!==c(d)}]),id:`tab-accion-${L.title}`,style:M({backgroundColor:K===c(d)?"white":"transparent",color:K===c(d)?"black":"white"}),onClick:pe=>d.value=K},x(L.title.value.toUpperCase()),15,sr)])])),64))],4),l("div",{class:"-mt-1 w-full laptop:-mt-[23px] laptop:min-h-[600px]",style:M({backgroundColor:u.value.color})},[l("div",nr,[l("div",ir,[l("p",rr,x(u.value.description),1),l("div",or,[(p(),f(T,null,q(h,L=>ht(I(W,{key:L.title.value,id:`VERMAS-${L.title.value.toUpperCase()}`,to:c(e)(`/acciones${L.link}`),class:"btn-badge btn btn-accent uppercase"},{default:S(()=>[Be(x(c(s)("ver_mas","Ver más"))+" ",1),l("span",lr,[I(H,{class:"aspect-square w-full"})])]),_:1},8,["id","to"]),[[ft,u.value.title.value===L.title.value]])),64))])]),l("div",ar,[u.value.category==="conservar"?(p(),f("div",cr,[I(Q,{title:c(s)("mapa_conservacion","Mapa de conservación de las islas de Puerto Rico"),description:c(s)("mapa_conservacion_description","Para asegurar el bienestar de los habitantes del ar
57chipiélago necesitamos conservar 33% para el 2033. Sólo falta un 16% para llegar a la meta de conservación."),id:"action-card-mapa-conservacion",link:"/acciones/conservar"},{default:S(()=>[...z[0]||(z[0]=[l("img",{src:Mi,class:"aspect-square w-full object-cover tablet:aspect-[307/113]",alt:"Miniatura del mapa de las 33 áreas naturales protegidas"},null,-1)])]),_:1},8,["title","description"])])):u.value.category==="donar"?(p(),f("div",dr,[I(Q,{title:c(s)("amigos","Amigos"),description:c(s)("amigos_description","Los Amigos son algunos de nuestros más dedicados aliados comprometidos en apoyar la resiliencia climática y la preservación histórica en Puerto Rico."),id:"action-card-amigos",link:"https://desarrollo.paralanaturaleza.org/es/amigos-espanol/",external:""},{default:S(()=>[...z[1]||(z[1]=[l("div",{class:"relative aspect-square h-full"},[l("img",{src:Zi,class:"absolute aspect-square w-full object-cover",alt:"Ilustración de amigos colaborando"}),l("div",{class:"absolute bottom-0 h-1/2 w-full bg-gradient-to-b from-black/0 to-black"})],-1)])]),_:1},8,["title","description"]),I(Q,{title:c(s)("fondo_solidario","Fondo Solidario"),description:c(s)("fondo_solidario_description","Para la Naturaleza custodia una amplia, diversa y rica variedad de recursos que representan la historia, cultura e identidad puertorriqueña y reconoce la conectividad entre la historia, la ecologÃa, la tierra y su gente."),id:"action-card-fondo-solidario",link:"https://desarrollo.paralanaturaleza.org/es/inicio/",external:""},{default:S(()=>[...z[2]||(z[2]=[l("div",{class:"relative aspect-square h-full"},[l("img",{src:Hi,class:"absolute aspect-square w-full object-cover",alt:"Ilustración del fondo solidario"}),l("div",{class:"absolute bottom-0 h-1/2 w-full bg-gradient-to-b from-black/0 to-black"})],-1)])]),_:1},8,["title","description"])])):(p(),f("div",ur,[c(n)?c(b)==="success"&&Array.isArray(c(m))&&c(m).length>0?(p(),f("div",pr,[I($e,{direction:"left",show:!c(A)},null,8,["show"]),I($e,{direction:"right",show:!c(U)},null,8,["show"]),I(Wi,{items:Array.isArray(c(m))?c(m):[],"item-id":"id","id-prefix":"cta-events"},{default:S(({item:L,id:K,index:pe})=>[I(ot,{id:K,image:L.image,title:L.name,subtitle:L.subtitle,description:L.description,link:`/eventos/${L.id}`,callToAction:c(s)("ver_evento","Ver evento"),class:"carousel-item",ref:ye=>{const at=Array.isArray(c(m))?c(m):[];pe===0&&(k.value=ye),pe===at.length-1&&(_.value=ye)}},null,8,["id","image","title","subtitle","description","link","callToAction"])]),postItems:S(()=>[Array.isArray(c(m))&&c(m).length<4?(p(),f("div",hr,[I(ue,{size:Array.isArray(c(m))&&c(m).length===3||!a.value?"small":"medium"},null,8,["size"])])):C("",!0)]),noEvents:S(()=>[I(ue,{class:"carousel-item",size:"medium"})]),_:1},8,["items"])])):(p(),f("div",fr,[c(b)==="pending"?(p(),f("span",gr)):(p(),f("div",mr,[I(ue,{class:"carousel-item",size:"medium"})]))])):(p(),P(rt,{key:0,title:c(s)("offline_lite_requires_connection","Esta sección requiere conexión."),description:c(s)("offline_lite_online_only_detail","Conéctate para cargar datos actualizados.")},null,8,["title","description"]))]))])])],4)])]),_:1})}}}),xr=te(vr,[["__scopeId","data-v-bcbf929f"]]),br={key:0,class:"flex flex-col gap-10"},_r={class:"flex flex-col gap-5"},kr={class:""},wr={class:"h2-support w-[90%]"},$r=["onClick"],yr=["src"],Cr=F({__name:"ConectaConEntorno",props:{reserve:{}},setup(r){const{t:e}=E(),t=r.reserve.gallery,s=$(()=>t?.images.map(n=>({url:n,link:`/centros/${r.reserve.slug}`}))||[]);return(n,i)=>{const o=mt;return c(t)?(p(),f("div",br,[l("div",_r,[l("h3",kr,x(c(e)(`reserve_gallery_title_${r.reserve.id}`)),1),l("span",wr,x(c(e)(`reserve_gallery_description_${r.reserve.id}`)),1)]),I(o,{items:c(s),showIndicators:""},{default:S(({item:a})=>[l("div",{class:"relative w-full overflow-hidden rounded-card",onClick:d=>c(qe)(a.link)},[l("img",{src:a.url,class:"aspect-square w-full object-cover tablet:aspect-video"},null,8,yr)],8,$r)]),_:1},8,["items"])])):C("",!0)}}}),Ir="https://www.fs.usda.gov/r08/elyunque",zr="https://ttqmrzjplqgaaedosasm.supabase.co/storage/v1/object/public/reservas/epc-main-web-md.jpg",Rr="/arte/exhibiciones/ce
57ntro-percepcion-emision-senales";function Sr(r){return/^https?:\/\//i.test(r)}function Er(r,e){if(Sr(r))return{kind:"external",href:r};const t=e(r);return typeof t=="string"&&t.length>0?{kind:"internal",to:t}:{kind:"internal",to:r}}function nt(r){return r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}function Pe(r){return nt(r??"").replace(/,?\s*(puerto rico|\bpr)\s*$/i,"").split(/[-ââ,/]+/).map(t=>t.trim()).filter(Boolean)}function Tr(r,e){if(r.is_archived)return!1;const t=new Set(Pe(e.city));if(t.size===0)return!1;const s=new Set(Pe(r.city)),n=nt(r.slug.replace(/-/g," "));n&&s.add(n);for(const i of s)if(i&&t.has(i))return!0;return!1}function Ar(r,e){return r.is_archived?!1:r.reserva_id===e.id}function it(r){return[...r].sort((e,t)=>{if(e.featured&&!t.featured)return-1;if(!e.featured&&t.featured)return 1;const s=e.display_order??Number.MAX_SAFE_INTEGER,n=t.display_order??Number.MAX_SAFE_INTEGER;return s!==n?s-n:e.slug.localeCompare(t.slug,"es")})}function Lr(r){const e=it(r);for(const t of e){const s=vt(t.system_name);if(s)return s}for(const t of e){const s=xt(t.slug);if(s)return s}return null}function jr(r){return ze(r.card_image)||ze(r.headerImage)||bt(r.slug)}const Pr={to:Rr,image:"/images/visita/faro.jpg",i18nKey:"cards.expoFaro.title",i18nNs:"visita",fallback:"Conoce de Expo Faro",subtitleKey:"cards.expoFaro.subtitle",subtitleNs:"visita",subtitleFallback:"Reserva natural Cabezas de San Juan"},qr={to:Ir,image:zr,i18nKey:"reserve_related_forest_service",fallback:"Servicio Forestal (El Yunque)",subtitleKey:"reserve_type_5",subtitleFallback:"Bosque Nacional El Yunque"};function Fr(r){if(r.length===0)return[];const t=[...r].sort((n,i)=>n.slug.localeCompare(i.slug,"es"))[0];if(!t)return[];const s=r.length>1;return[{to:Ft(t.slug),image:t.headerImage||qt,i18nKey:s?"places_hub_nav_viveros":"tripleta_menu_result_nursery",fallback:s?"Viveros":"Vivero",subtitleKey:"viveros.hero.subtitle",subtitleNs:"reforestacion",subtitleFallback:"Espacios para cuidar y asegurar la vida de los árboles en sus primeras etapas de crecimiento."}]}function Br(r){const e=Lr(r);if(!e)return null;const t=it(r)[0];return{to:e,image:t?jr(t):void 0,i18nKey:"places_hub_nav_veredas",fallback:"Veredas",subtitleKey:"intro.title",subtitleNs:"veredas",subtitleFallback:"Acércate a la naturaleza y a tu bienestar"}}function Vr(r){const e=(r.viveros??[]).filter(i=>Tr(i,r.reserve)),t=(r.veredas??[]).filter(i=>Ar(i,r.reserve)),s=[];r.reserve.slug==="cabezas-san-juan"&&s.push(Pr),s.push(...Fr(e));const n=Br(t);return n&&s.push(n),r.reserve.slug==="estacion-palo-colorado"&&s.push(qr),s}const Dr=["aria-label"],Nr={key:0,class:"h-[154px] w-full flex-shrink-0 overflow-hidden rounded-[20px] bg-[#1c404d]"},Or=["src","alt"],Mr={class:"flex flex-1 items-end gap-4 px-4 py-3"},Zr={class:"flex min-w-0 flex-1 flex-col gap-2"},Hr={class:"font-[National2Condensed] text-[24px] font-medium leading-[0.9] text-white"},Qr={key:0,class:"font-[National2Narrow] text-[14px] font-normal leading-none tracking-[0.14px] text-white"},Ur="relative z-10 flex min-h-[223px] flex-col gap-0 overflow-hidden rounded-[24px] bg-[#224e5c] p-1 shadow-[0px_4px_6px_0px_rgba(0,0,0,0.05),0px_10px_15px_-3px_rgba(0,0,0,0.1)] transition-opacity hover:opacity-95",Kr=F({__name:"ReserveRelatedLinks",props:{reserve:{}},setup(r){const e=r,{t}=E(),{t:s}=E("visita"),{t:n}=E("reforestacion"),{t:i}=E("veredas"),o=_t(),a=Pt(),d=jt(),h=$(()=>{if(a.pending.value||d.pending.value)return[];const m=Array.isArray(a.data.value)?a.data.value:[],b=Array.isArray(d.data.value)?d.data.value:[];return Vr({reserve:e.reserve,viveros:m,veredas:b}).map(k=>{const _=Er(k.to,A=>o(A));return{...k,href:_.kind==="external"?_.href:_.to,external:_.kind==="external"}})});function u(m,b,k){const _=m??"common";switch(_){case"visita":return s.value(b,k);case"reforestacion":return n.value(b,k);case"veredas":return i.value(b,k);case"common":return t.value(b,k);default:return _}}function g(m){return u(m.i18nNs,m.i18nKey,m.fallback)}function v(m){return m.subtitleKey?u(m.subtitleNs,m.subtitleKey,m.subtitleFallback??""):""}return(m,b)=>{const k=fe;return h.value.length?(p(),f("nav",{key:0,class:"relative z-10 mt-8 grid grid-cols-1 gap-6 tablet:grid-cols-2 laptop:grid-cols-3","aria-label":c(t)("places_hub_nav_aria","Tipos de lugares")},[(p(!0),f(T,null,q(h.value,_=>(p(),P(k,{key:_.to,to:_.href,external:_.external,target:_.external?"_blank":void 0,rel:_.external?"noopener noreferrer":void 0,class:R(Ur)},{default:S(()=>[_.image?(p(),f("div",Nr,[l("img",{src:_.image,alt:g(_),class:"h-full w-full object-cover"},null,8,Or)])):C("",!0),l("div",Mr,[l("div",Zr,[l("h3",Hr,x(g(_)),1),v(_)?(p(),f("p",Qr,x(v(_)),1)):C("",!0)]),I(Lt,{class:"h-4 w-4 flex-shrink-0 text-white"})])]),_:2},1032,["to","external","target","rel"]))),128))],8,Dr)):C("",!0)}}}),Gr={key:0,class:"flex flex-col overflow-clip text-white"},Xr={class:"relative h-[716px] w-full"},Wr=["src","id"],Yr={class:"absolute inset-0 bottom-16 top-20 flex flex-col justify-between p-content desktop:container desktop:mx-auto"},Jr={class:"flex"},eo=["id"],to={class:"flex flex-col"},so=["id"],no=["id"],io=["id"],ro=["id"],oo={class:"flex h-full flex-col pb-16 desktop:container desktop:mx-auto"},lo=["id"],ao=["id"],co=["innerHTML"],uo={key:0,class:"mt-5 flex items-center gap-5 rounded-lg border-2 p-5"},po={class:"h2-support flex items-center text-[14px] tablet:text-[20px]"},ho=["id"],fo={class:"desktop:container desktop:mx-auto"},go=["id"],mo=["id"],vo=["id"],xo={class:"p-content"},bo={class:"flex flex-col gap-2 desktop:container desktop:mx-auto"},_o={class:""},ko={class:"h2-support"},wo=["id"],$o={class:"flex flex-col gap-2 desktop:container desktop:mx-auto"},yo={class:""},Co={class:"h2-support"},Io={key:1,class:"flex h-screen w-full items-center justify-center"},zo=F({__name:"ReserveLayout",props:{reserve:{}},setup(r){const e=Oe(),{t}=E(),s=r,n=$(()=>wt[s.reserve.slug||""]);return He({title:()=>s.reserve?.name?`${s.reserve.name}
57 - Para la Naturaleza`:"Para la Naturaleza",description:()=>s.reserve?.description||"",ogTitle:()=>s.reserve?.name?`${s.reserve.name} - Para la Naturaleza`:"Para la Naturaleza",ogImage:()=>s.reserve?.headerImage??"/images/centros-visitantes-card.png"}),(i,o)=>{const a=_s,d=Oi,h=xr,u=Cr,g=At,v=kt;return r.reserve?(p(),f("div",Gr,[l("div",Xr,[l("img",{src:r.reserve.headerImage,id:`img-hero-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"h-full w-full object-cover"},null,8,Wr),l("div",Yr,[l("div",Jr,[l("div",{class:"rounded-md bg-white p-3 font-national2Condensed text-[24px] font-medium leading-none text-black",id:`badge-region-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,style:M({color:r.reserve.primaryColor})},x(c(t)(`reserve_region_${r.reserve.id}`).toUpperCase()),13,eo)]),l("div",to,[l("span",{id:`text-tipo-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"font-national2Condensed text-[32px] font-medium"},x(c(t)(`reserve_type_${r.reserve.id}`)),9,so),l("span",{id:`text-nombre-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"font-national2Condensed text-[96px] font-medium leading-[90%] tracking-[-2px]"},x(c(t)(`reserve_name_${r.reserve.id}`)),9,no),l("span",{id:`text-ciudad-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"font-sans text-[28px] font-normal"},x(c(t)(`reserve_location_${r.reserve.id}`)),9,io)])])]),O(i.$slots,"before-description"),l("div",{class:R(["z-10 min-h-[28rem] w-full rounded-t-section p-content",i.$slots["before-description"]?"":"-mt-16"]),id:`section-descripcion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,style:M({backgroundColor:r.reserve.primaryColor})},[l("div",oo,[l("h2",{id:`text-header-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,class:"italic"},x(c(t)(`reserve_header_${r.reserve.id}`)),9,lo),o[0]||(o[0]=l("div",{class:"divider divider-secondary"},null,-1)),l("div",{class:"h-full columns-1 gap-[48px] whitespace-pre-line tablet:columns-2",id:`text-descripcion-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`},[l("div",{class:"h2-support",innerHTML:c(w)(c(t)(`reserve_description_${r.reserve.id}`))},null,8,co),r.reserve.legacySlug?.includes("hacienda")?(p(),f("div",uo,[I(a,{class:"aspect-square h-full shrink-0"}),l("p",po,x(c(t)("centros_hacienda_disclaimer","Históricamente, las haciendas han sido lugares de explotación tanto de personas esclavizadas como de los ecosistemas en los que se establecen. Aspiramos a la conservación de estas áreas naturales y la preservación de lugares históricos mientras remiramos la historia para visibilizar múltiples perspectivas y repensar las narrativas que nos acercan a estos espacios.")),1)])):C("",!0)],8,ao),O(i.$slots,"description-extra"),r.reserve.slug&&r.reserve.id?(p(),P(Kr,{key:0,reserve:r.reserve},null,8,["reserve"])):C("",!0)])],14,ro),O(i.$slots,"before-dashboard"),l("div",{class:"relative z-20 -mt-16 w-full overflow-visible rounded-card bg-black pb-8 laptop:rounded-t-section laptop:pb-12",id:`section-dashboard-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`},[l("div",fo,[I(d,{reserve:r.reserve},null,8,["reserve"])])],8,ho),O(i.$slots,"after-dashboard"),l("div",{class:"z-50 min-h-[28rem] w-full bg-black laptop:z-20",id:`section-acciones-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`},[I(h,{reserveId:r.reserve.id,slug:r.reserve.legacySlug||""},null,8,["reserveId","slug"])],8,go),O(i.$slots,"before-conecta"),l("div",{class:"z-20 min-h-[28rem] w-full bg-black p-content",id:`section-conecta-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,style:M({backgroundColor:r.reserve.primaryColor})},[I(u,{reserve:r.reserve,class:"desktop:container desktop:mx-auto"},null,8,["reserve"])],12,mo),O(i.$slots,"before-tienda"),l("div",{class:"z-20 w-full pb-10",id:`section-tienda-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`,style:M({backgroundColor:r.reserve.primaryColor})},[l("div",xo,[l("div",bo,[l("h3",_o,x(c(t)("centros_store_title","Tienda Para la Naturaleza")),1),l("span",ko,x(c(t)("centros_store_description","Utiliza artÃculos que promueven una cultúra ecológica.")),1),I(g,{items:c(n).map(m=>({...m,title:c(e).getLanguage()==="es-PR"?m.title.es:m.title.en})),class:"mt-5"},null,8,["items"])])])],12,vo),l("div",{class:"z-20 w-full bg-black p-content",id:`section-otros-centros-${r.reserve.legacySlug||r.reserve.slug||r.reserve.id}`},[l("div",$o,[l("h3",yo,x(c(t)("centros_explore_more_title","Continúa explorando los centros de visitantes")),1),l("span",Co,x(c(t)("centros_explore_more_description","Explora otras áreas naturales y lugares históricos a través de las islas de Puerto Rico.")),1),I(v,{layout:"cards",class:""})])],8,wo),O(i.$slots,"final")])):(p(),f("div",Io,[...o[1]||(o[1]=[l("p",{class:"text-xl"},"Cargando información de la reserva...",-1)])]))}}}),Ro={key:0,class:"min-h-[50vh] bg-[#0A1E1D] p-content pt-28"},So={class:""},Eo={key:1},To=F({__name:"[slug]",setup(r){const{t:e}=E(),t=Me(),s=It("slug"),{data:n,error:i,status:o}=$t(s);He({title:()=>`${e.value(`reserve_name_${n.value?.id}`)} - Para la Naturaleza`,description:()=>e.value(`reserve_description_${n.value?.id}`),ogTitle:()=>`${e.value(`reserve_name_${n.value?.id}`)} - Para la Naturaleza`,ogImage:()=>n.value?.headerImage??"/images/centros-visitantes-card.png"});const a={"estacion-palo-colorado":yt(()=>Ct(()=>import("./CVaFdu0x.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url))},d=$(()=>a[s.value]||zo);
57return(h,u)=>{const g=Ze;return!c(t)&&!c(n)?(p(),f("div",Ro,[l("div",So,[I(g,{title:c(e)("offline_lite_requires_connection","Esta sección requiere conexión."),description:c(e)("offline_lite_online_only_detail","Conéctate para cargar datos actualizados.")},null,8,["title","description"])])])):c(n)?(p(),f("div",Eo,[a[c(s)]?(p(),P(Re(c(d)),{key:1})):(p(),P(Re(c(d)),{key:0,reserve:c(n)},null,8,["reserve"]))])):C("",!0)}}}),Zo=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"}));export{Wi as _,zo as a,Zo as b};
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.