PageSourceSearch

https://xn--d1aa5a.xn--80asehdb/_nuxt/BG0NY30w.js

js xn--d1aa5a.xn--80asehdb collected 2026-10-02 00:04:34 UTC 15,162 bytes, 44 lines download raw bytes

1import{F as e}from"./CbVig_5S.js";import{t}from"./CKNeP6FP.js";function n(e){if(typeof window>`u`)return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#039;`);let t=document.createElement(`div`);return t.textContent=e,t.innerHTML}function r(e){if(!e||typeof e!=`string`)return``;let t=[],n=/(<[^>]+>)|(https?:\/\/[^\s<]+)|([^<]+)/g,r;for(;(r=n.exec(e))!==null;)r[1]?t.push(r[1]):r[2]?t.push(r[2]):r[3]&&t.push(i(r[3]));return t.join(``)}function i(e){return e.replace(/\*\*\*(.*?)\*\*\*/g,`<strong><em>$1</em></strong>`).replace(/\*\*(.*?)\*\*/g,`<strong>$1</strong>`).replace(/\*(.*?)\*/g,`<em>$1</em>`).replace(/___(.*?)___/g,`<strong><em>$1</em></strong>`).replace(/__(.*?)__/g,`<strong>$1</strong>`).replace(/(^|\s)_([^\s_][^_\n]*?)_(\s|$)/g,`$1<em>$2</em>$3`).replace(/~~(.*?)~~/g,`<del>$1</del>`)}function a(e){let t=/\{([^}]+)\}/g,n=t.exec(e),r=null,i=null,a=null;if(n){let e=n[1].split(/\s+/);for(let t of e)if(t.startsWith(`bg=`))r=s(t.substring(3));else if(t.startsWith(`text=`))i=s(t.substring(5));else if(t.startsWith(`align=`)){let e=t.substring(6);e===`center`&&(a=`center`),e===`right`&&(a=`right`),e===`left`&&(a=`left`)}}return{text:e.replace(t,``).trim(),bgColor:r,textColor:i,align:a}}function o(e){let t={},n=e.split(/\s+/);for(let e of n)if(e.includes(`=`)){let[n,r]=e.split(`=`);t[n]=r}else e&&(t[e]=!0);return{noBorder:!!t.noborder,noHeader:!!t.noheader,alignCenter:t.align===`center`,fullWidth:!!t.fullwidth,raw:t}}function s(e){return e=e.replace(`#`,``).trim(),e.length===6?`#${e}`:e.length===3?`#${e.split(``).map(e=>e+e).join(``)}`:null}function c(e){let t=e.split(`
2`),n=[],i=0;for(;i<t.length;){if(!t[i].startsWith(`>`)){n.push(t[i]),i++;continue}let e=[];for(;i<t.length&&(t[i].startsWith(`>`)||t[i].trim()===``);)e.push(t[i]),i++;let a=[],o=null;for(let t of e){if(t.trim()===``){a.push(``);continue}t.startsWith(`>>`)?o=t.replace(/^>>\s?/,``).trim():t.startsWith(`>`)&&a.push(t.replace(/^>\s?/,``))}for(;a.length&&a[0].trim()===``;)a.shift();for(;a.length&&a[a.length-1].trim()===``;)a.pop();if(a.length>0){a[0]=`“ ${a[0]}`;let e=a.length-1;a[e]=`${a[e]} ”`}let s=`
3<blockquote class="my-4 p-2 shadow rounded-2xl border-l-2 bg-blue-50 dark:bg-blue-900/20 border-blue-400">
4  <div class="text-gray-700 dark:text-gray-300 leading-relaxed">
5    ${a.map(e=>`<p class="italic pb-2">${r(e).replace(/\n/g,`<br>`)}</p>`).join(``)}
6    ${o?`<p class="text-right font-semibold">${r(o)}</p>`:``}
7  </div>
8</blockquote>
9    `.trim();n.push(s)}return n.join(`
10`)}function l(e){let t=e.match(/^(\s*)(\d+)\.\s+(.*)/);if(t)return{type:`ol`,indent:t[1].length,content:t[3]};let n=e.match(/^(\s*)([-*+])\s+(.*)/);return n?{type:`ul`,indent:n[1].length,content:n[3]}:null}function u(e){let t=e.split(`
11`),n=[],r=0;for(;r<t.length;){if(!l(t[r])){n.push(t[r]),r++;continue}let e=[];for(;r<t.length;){let n=l(t[r]);if(!n)break;e.push(n),r++}n.push(f(d(e)))}return n.join(`
12`)}function d(e){let t=[],n=[{indent:-1,children:t}];for(let t of e){for(;n.length>1&&t.indent<=n[n.length-1].indent;)n.pop();let e={type:t.type,indent:t.indent,content:t.content,children:[]};n[n.length-1].children.push(e),n.push(e)}return t}function f(e){if(!e.length)return``;let t=e[0].type,n=`<${t} class="${t===`ul`?`list-disc pl-6 my-2`:`list-decimal pl-6 my-2`}">`;for(let t of e)n+=`<li class="mb-1">${r(t.content)}`,t.children.length>0&&(n+=f(t.children)),n+=`</li>`;return n+=`</${t}>`,n}function p(e){return!e||typeof e!=`string`?[]:e.trim().replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim()).filter(Boolean)}function m(e){return e?e.split(`|`).map(e=>(e=(e||``).trim(),e?e.startsWith(`:`)&&e.endsWith(`:`)?`center`:e.endsWith(`:`)?`right`:`left`:null)).filter(Boolean):[]}function h(e){if(!e||typeof e!=`string`)return``;let t=g(e);return t=_(t),t}function g(e){return e.replace(/^:::\s*table(.*?)\n([\s\S]*?)\n:::/gm,(e,t,n)=>{try{let e=o((t||``).trim()),r=(n||``).split(`
13`).filter(e=>e.trim().startsWith(`|`));if(r.length===0)return``;let i=r.map(p),a=[],s=[];e.noHeader?s=i:(a=i[0]||[],s=i.slice(1));let c=[];if(!e.noHeader&&s.length>0&&r[1]){let e=r[1];e.includes(`-`)&&e.includes(`|`)&&(c=m(e),s=s.slice(1))}return v({headers:a,rows:s,alignments:c,params:e})}catch(t){return console.error(`Table container error:`,t),e}})}function _(e){return e.replace(/^\|(.+)\|\s*\n\|([-:\|\s]+)\|\s*\n((?:\|.+\|\s*\n?)+)/gm,(e,t,n,r)=>{try{let e=p(t),i=m(n);return v({headers:e,rows:(r||``).trim().split(`
14`).map(p),alignments:i,params:{noBorder:!1,noHeader:!1,fullWidth:!1,alignCenter:!1}})}catch(t){return console.error(`Basic table error:`,t),e}})}function v({headers:e,rows:t,alignments:i,params:o}){let{noBorder:s,noHeader:c,alignCenter:l,fullWidth:u}=o,d=Math.max(e.length,t[0]?.length||0,1),f=[`my-4 overflow-x-auto overflow-y-hidden`,l?`mx-auto`:``,u?`w-full`:`w-fit`,`max-w-full`,s?``:`rounded-xl border border-gray-200 dark:border-gray-700 shadow-sm`].filter(
14Boolean).join(` `),p=(e,t,o,c=0)=>{let l=a(e||``),u={left:`text-left`,center:`text-center`,right:`text-right`}[l.align||i[t]||`left`],d=``;l.bgColor||(d=o?`bg-slate-100/50 dark:bg-slate-800`:c%2==1?`bg-slate-50 dark:bg-slate-800/50`:`bg-white dark:bg-gray-900`);let f=o&&!l.textColor?`font-semibold text-slate-700 dark:text-slate-200`:``,p=s?``:`border-r border-b border-gray-200 dark:border-gray-700 last:border-r-0`,m=[];l.bgColor&&m.push(`background-color:${l.bgColor}`),l.textColor&&m.push(`color:${l.textColor}`);let h=m.length?` style="${m.join(`;`)}"`:``,g=o?`th`:`td`,_=r(n(l.text));return`<${g} class="px-2 py-2 ${u} ${d} ${f} ${p}"${h}>${_}</${g}>`},m=`<div class="${f}"><table class="w-full border-collapse text-sm">`;return!c&&e.length&&(m+=`<thead><tr>${e.map((e,t)=>p(e,t,!0)).join(``)}</tr></thead>`),m+=`<tbody>${t.map((e,t)=>{let n=[...e];for(;n.length<d;)n.push(``);return`<tr>${n.map((e,n)=>p(e,n,!1,t)).join(``)}</tr>`}).join(``)}</tbody></table></div>`,m+`
15
16`}function y(e){return!e||typeof e!=`string`?``:e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(e,t,n)=>{let r=n.trim(),i=t.trim();return r.startsWith(`rule:`)?S(i,r.replace(`rule:`,``)):/^https?:\/\//i.test(r)?x(i,r):b(i,r)})}function b(e,t){return`<a href="${C(t)}" class="text-blue-600 hover:underline">${e}</a>`}function x(e,t){return`<a href="${C(t.trim())}" class="text-blue-600 hover:underline" target="_blank" rel="nofollow noopener noreferrer">${e}</a>`}function S(e,t){return`<button type="button" class="text-purple-700 font-semibold cursor-pointer bg-transparent border-0 p-0 inline" data-bottom-sheet="rule" data-rule-id="${C(t)}">${e}</button>`}function C(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#039;`)}function w(e){return!e||typeof e!=`string`?``:e.replace(/!\[([^\]]*)\]\(([^)\s?]+)(?:\?([^)\s]+))?\)\s*(?:\{([^}]*)\})?/g,(e,t,n,r,i)=>{let a=E(r||``),o=T(i||``),s={...a};for(let[e,t]of Object.entries(o))t!==null&&(s[e]=t);let c=O(n.trim());return k(t.trim(),c,s)+`
17
18`})}function T(e){let t=D();if(!e)return t;let n=e.trim().split(/\s+/);for(let e of n){if(!e.includes(`=`))continue;let[n,r]=e.split(`=`),i=parseFloat(r);switch(n){case`h`:case`height`:t.height=isNaN(i)?r:i;break;case`w`:case`width`:t.width=isNaN(i)?r:i;break;case`align`:t.align=r;break;case`r`:case`radius`:t.radius=isNaN(i)?r:i;break;case`inline`:t.inline=r!==`false`}}return t}function E(e){let t=D();if(!e)return t;let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`);
18if(!n||r===void 0)continue;let i=parseFloat(r);switch(n){case`h`:case`height`:t.height=isNaN(i)?r:i;break;case`w`:case`width`:t.width=isNaN(i)?r:i;break;case`align`:t.align=r;break;case`r`:case`radius`:t.radius=isNaN(i)?r:i;break;case`inline`:t.inline=r!==`false`}}return t}function D(){return{height:null,width:null,align:null,radius:null,inline:!0}}function O(e){return e.startsWith(`assets/`)?`/`+e.slice(7):!e.startsWith(`/`)&&!e.startsWith(`http`)?`/`+e:e}function k(e,t,n){let{height:r,width:i,align:a,radius:o,inline:s}=n,c=[],l=[];r&&c.push(`height:${r}px`),i&&c.push(`width:${i}px`),o&&c.push(`border-radius:${o}px`),a===`center`?l.push(`mx-auto`,`justify-self-center`):a===`right`?l.push(`ml-auto`,`justify-self-end`):a===`left`?l.push(`mr-auto`,`justify-self-start`):s?l.push(`inline-block`,`align-middle`):l.push(`block my-4`);let u=c.length?` style="${c.join(`;`)}"`:``,d=l.length?` class="${l.join(` `)}"`:``;return`<img src="${A(t)}" alt="${A(e)}"${d}${u} loading="lazy" draggable="false"/>`}function A(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#039;`)}function j(e){return e?e.replace(/:::images\s*\n([\s\S]*?)\n:::/g,(e,t)=>`
19<div class="images-block flex justify-center gap-3 mb-3">
20${(w(t).match(/<img\b[^>]*>/g)||[]).join(`
21`)}
22</div>`):``}function M(e){if(!e||!e.startsWith(`#`))return`#9e9e9e`;let t=e.substring(1);return t.length===6?`#${t}`:t.length===3?`#${t[0]+t[0]}${t[1]+t[1]}${t[2]+t[2]}`:`#9e9e9e`}var N={warning:{bg:`#fff3e0`,border:`#ff9800`,icon:`<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24"><g fill="none"><path stroke="#ff9800" stroke-linecap="round" stroke-width="2" d="M12 7v6"/><circle cx="12" cy="16" r="1" fill="#ff9800"/><path stroke="#ff9800" stroke-linecap="round" stroke-width="2" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5"/></g></svg>`},success:{bg:`#e8f5e9`,border:`#4caf50`,icon:`<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24"><g fill="none" stroke="#4caf50" stroke-linecap="round" stroke-width="2"><path stroke-linejoin="round" d="m8.5 12.5l2 2l5-5"/><path d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5"/></g></svg>`},info:{bg:`#f5f5f5`,border:`#9e9e9e`,icon:`<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24"><g fill="none"><path stroke="#9e9e9e" stroke-linecap="round" stroke-width="2" d="M12 17v-6"/><circle cx="1" cy="1" r="1" fill="#9e9e9e" transform="matrix(1 0 0 -1 11 9)"/><path stroke="#9e9e9e" stroke-linecap="round" stroke-width="2" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5"/></g></svg>`}};function P(e){let t=Object.keys(N).join(`|`),n=e.split(`
23`),r=[],i=0;for(;i<n.length;){let e=n[i],a=e.match(RegExp(`^:::\\s*(${t})\\s*$`));if(!a){r.push(e),i++;continue}let o=a[1];i++;let s=[],c=1;for(;i<n.length&&c>0;){let e=n[i];if(/^:::\s*$/.test(e)){if(c--,c===0){i++;break}s.push(e)}else/^:::\s*\w/.test(e)&&c++,s.push(e);i++}let l=N[o];r.push(I({bg:l.bg,border:l.border,icon:l.icon,content:s.join(`
24`).trim()}))}return r.join(`
25`)}function F(e){let t=e.split(`
26`),n=[],r=0;for(;r<t.length;){let e=t[r],i=e.match(/^:::\s*color\s+(.*)$/);if(!i){n.push(e),r++;continue}let a=i[1];r++;let o=[],s=1;for(;r<t.length&&s>0;){let e=t[r];if(/^:::\s*$/.test(e)){if(s--,s===0){r++;break}o.push(e)}else/^:::\s*\w/.test(e)&&s++,o.push(e);r++}let c=o.join(`
27`).trim();c=F(c),c=P(c);let l={},u=a.matchAll(/(\w+)=([^\s]+)/g);for(let[,e,t]of u)l[e]=t;n.push(I({bg:M(l.bg),border:M(l.border),icon:null,content:c}))}return n.join(`
28`)}function I({bg:e,border:t,icon:n,content:r}){let i=n?`
29  <div class="color-block-icon" style="position: absolute; top: 12px; left: 0; width: 20px; height: 20px; background: ${e};  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: ${t};">
30    ${n}
31  </div>`:``;return`
32<div class="color-block" style="position: relative; margin: 16px 0; padding: 0;">
33  <div class="color-block-inner shadow" style="background: ${e}; border-left: 2px solid ${t}; border-radius: 12px; padding: ${n?`12px 12px 12px 16px`:`12px 16px`}; margin-left: ${n?`8px`:`0px`};">
34    <div class="color-block-content" style="color: #333; line-height: 1.5;">
35      ${r}
36    </div>
37  </div>${i}
38</div>
39  `.trim()}function L(e){return e=F(e),e=P(e),e}function R(){return{parse:e=>{if(!e)return``;let t=e;return t=L(t),t=c(t),t=u(t),t=h(t),t=j(t),t=w(t),t=z(t),t=y(t),t=r(t),t=B(t),t=V(t),t=H(t),t}}}function z(e){for(let[t,n]of Object.entries({"######":`text-sm font-semibold mt-3 mb-1 text-gray-500 dark:text-gray-400`,"#####":`text-base font-semibold mt-3 mb-1`,"####":`text-lg font-semibold mt-4 mb-2`,"###":`text-xl font-semibold mt-5 mb-2`,"##":`text-3xl! font-semibold mt-6 mb-3 pb-2 text-center dark:border-gray-700`,"#":`text-3xl! font-bold mt-8 mb-4 pb-2 border-b-2 border-gray-200 dark:border-gray-700`})){let r=`h${t.length}`,i=RegExp(`^${t} (.*)$`,`gm`);e=e.replace(i,`<${r} class="${n}">$1</${r}>`)}return e}function B(e){return e.replace(/^---+$/gm,`<hr class="my-6 border-t border-gray-300 dark:border-gray-600">`).replace(/^\*\*\*+$/gm,`<hr class="my-6 border-t border-gray-300 dark:border-gray-600">`).replace(/^___+$/gm,`<hr class="my-6 border-t border-gray-300 dark:border-gray-600">`)}function V(e){let t={center:`text-center`,right:`text-right`,justify:`text-justify`,left:`text-left`};return e=e.replace(/^:::\s*(center|right|justify|left)\s*\n([\s\S]*?)\n:::\s*$/gm,(e,n,r)=>`<p class="${t[n]}">${r.trim()}</p>`),e=e.replace(/:::\s*(center|right|justify|left)\s*\n([\s\S]*?)\n:::/g,(e,n,r)=>`<p class="${t[n]}">${r.trim()}</p>`),e}function H(e){let t=e.split(`
40`),n=[],r=[],i=0,a=[],o=null,s=e=>{let t=e.trim();return!(!/^<(div|blockquote|table|ul|ol|pre|figure|section|article|aside|header|footer|nav|main|address|fieldset|details|summary)\b/i.test(t)||/<\/[^>]+>/.test(t)||/\/>$/.test(t))},c=e=>/^<\/(div|blockquote|table|ul|ol|pre|figure|section|article|aside|header|footer|nav|main|address|fieldset|details|summary)>/i.test(e.trim()),l=()=>{if(r.length===0)return;let e=r.join(`<br>
41`).trim();r=[],e&&n.push(`<p class="my-4 leading-relaxed">${e}</p>`)},u=()=>{if(a.length===0)return;let e=a.join(`
42`);if(a=[],o===`color-block`){let t=e.match(/<div class="color-block-content"[^>]*>([\s\S]*?)<\/div>/);if(t){let r=t[1],i=H(r),a=e.replace(r,i);n.push(a),o=null;return}}n.push(e),o=null};for(let e=0;e<t.length;e++){let d=t[e],f=t[e+1];if(i>0){a.push(d),c(d)?(i--,i===0&&u()):s(d)&&i++;continue}if(d.trim()===``){l(),f&&f.trim()===``&&(n.push(`<p class="my-4 leading-relaxed">&nbsp;</p>`),e++);continue}if(s(d)){l(),a.push(d),i=1,o=d.includes(`color-block`)?`color-block`:`other`;continue}let p=d.trim();if(/^<(h[1-6]|p|hr|li|tr|td|th|thead|tbody|tfoot|caption|br|img|input|meta|link|area|base|col|embed|param|source|track|wbr)\b/i.test(p)||/^<\/(h[1-6]|p|li|tr|td|th|thead|tbody|tfoot|caption)\b/i.test(p)){let e=p.match(/^<(img|br|hr|input|meta|link|area|base|col|embed|param|source|track|wbr)[^>]*>(.+)$/i);if(e){l(),n.push(e[0].slice(0,-e[2].length)),r.push(e[2]);continue}l(),n.push(d);continue}r.push(d)}return l(),u(),n.join(`
43
44`)}function U(){let n=t(),r=e=>{let t=e.target.closest(`[data-bottom-sheet]`);if(!t)return;e.preventDefault(),e.stopPropagation();let r=t.dataset.bottomSheet,i=t.dataset.ruleId;r===`rule`&&i&&n.open(i)};return{handleLinkClick:r,setupGlobalDelegation:()=>{typeof document<`u`&&(document.addEventListener(`click`,r,!0),e(()=>{document.removeEventListener(`click`,r,!0)}))}}}export{U as n,R as t};

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.