PageSourceSearch

https://www.trybased.com/static/js/8079.2a4e53f0.chunk.js

js trybased.com collected 2026-10-02 01:47:36 UTC 20,178 bytes, 3 lines download raw bytes

1/*! For license information please see 8079.2a4e53f0.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkknowledge_base_saas=self.webpackChunkknowledge_base_saas||[]).push([[8079],{37(e,t,n){n.r(t),n.d(t,{default:()=>_});var r=n(89379),i=n(5544),s=n(65043),a=n(47874),l=n(52395),o=n(36210),d=n(92212),c=n(6540),u=n(96276),m=n(129),g=n(27320),f=n(65830),p=n(77039),h=n(90621),x=n(53123),y=n(25854),b=n(51922),v=n(93455),A=n(39596),k=n(2375),w=n(40848),N=n(77082),E=n(63272),j=n(60930),S=n(26236),C=n(32693),L=n(45278);const I=[g.A.configure({bulletList:!1,orderedList:!1,heading:{levels:[1,2,3,4]},history:!1,link:!1}),f.R.extend({addAttributes(){var e;return(0,r.A)((0,r.A)({},null===(e=this.parent)||void 0===e?void 0:e.call(this)),{},{indent:{default:0,parseHTML:e=>parseInt(e.getAttribute("data-indent")||"0",10),renderHTML:e=>e.indent?{"data-indent":e.indent,style:"margin-left: ".concat(2*e.indent,"em")}:{}}})}}).configure({keepMarks:!0}),p._.extend({addAttributes(){var e;return(0,r.A)((0,r.A)({},null===(e=this.parent)||void 0===e?void 0:e.call(this)),{},{indent:{default:0,parseHTML:e=>parseInt(e.getAttribute("data-indent")||"0",10),renderHTML:e=>e.indent?{"data-indent":e.indent,style:"margin-left: ".concat(2*e.indent,"em")}:{}}})}}).configure({keepMarks:!0}),w.Ay.configure({inline:!1,allowBase64:!0,HTMLAttributes:{class:"rounded-lg my-3 max-w-full h-auto"}}),h.Ay.configure({openOnClick:!0,autolink:!0,protocols:["mailto","http","https"],HTMLAttributes:{rel:"noopener noreferrer",target:"_blank"}}),x.A,y.A.configure({nested:!0}),b.A.configure({types:["heading","paragraph"]}),v.A,A.A,k.Ay,N.xJ,N.Q1,E.XI.configure({resizable:!0,HTMLAttributes:{class:"my-table"}}),E.Hj,E.A0,E.nA,j.NC,j.Z8,S.Gf,C.F,L.UV];const T=(0,n(77784).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var M=n(82054),U=n(75088),O=n(82378),F=n(70579);function R(e){if(!e)return"";try{return new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(t){return e}}function H(e){let t=e.editorJson,n=e.signatures,r=e.signatureMeta;const i=(0,s.useMemo)(()=>{if(!t)return[];const e=(0,O.HQ)(t).signatureBlocks;if(0===e.length)return[];return e.map(e=>{const t=null===n||void 0===n?void 0:n[e.id],i=null===r||void 0===r?void 0:r[e.id],s=null!=t&&""!==String(t).trim(),a=!s&&!!e.defaultSignature,l=s||a,o=s?(null===i||void 0===i?void 0:i.signerName)||"":a&&e.defaultSignerName||"",d=s?(null===i||void 0===i?void 0:i.signerEmail)||e.assigneeEmail||"":e.assigneeEmail||(a?e.defaultSignerEmail:"")||"";return{id:e.id,label:e.label||"Signature",email:d,signingOrderIndex:e.signingOrderIndex,signed:l,signedAt:s?null===i||void 0===i?void 0:i.signedAt:(a?e.defaultSignedAt:null)||null,signerName:o}}).sort((e,t)=>{if(e.signed!==t.signed)return e.signed?-1:1;const n=e.signingOrderIndex,r=t.signingOrderIndex;return null!=n&&null!=r?n-r:null!=n?-1:null!=r?1:0})},[t,n,r]),a=(0,s.useCallback)(e=>{const t=document.querySelector('[data-signature-block-id="'.concat(e,'"]'));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},[]),l=i.length>0&&i.every(e=>e.signed);return 0===i.length?null:(0,F.jsxs)("div",{className:"mb-4 flex flex-col gap-2",children:[l&&(0,F.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-emerald-50 border border-emerald-200 mb-1",children:[(0,F.jsx)(T,{className:"w-5 h-5 text-emerald-600 shrink-0"}),(0,F.jsx)("p",{className:"text-sm font-medium text-emerald-700",children:"All parties have signed"})]}),i.map(e=>(0,F.jsxs)("div",{className:"flex items-center gap-2.5".concat(e.signed?"":" cursor-pointer"),onClick:e.signed?void 0:()=>a(e.id),role:e.signed?void 0:"button",tabIndex:e.signed?void 0:0,onKeyDown:e.signed?void 0:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),a(e.id))},children:[(0,F.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center shrink-0 ".concat(e.signed?"bg-emerald-100 text-emerald-600":"bg-gray-100 text-gray-400"),children:e.signed?(0,F.jsx)(M.A,{className:"w-3.5 h-3.5"}):(0,F.jsx)(U.A,{className:"w-3.5 h-3.5"})}),(0,F.jsxs)("div",{className:"min-w-0",children:[(0,F.jsxs)("p",{className:"text-xs font-medium text-gray-700 truncate",children:[e.label,(e.signerName||e.email)&&(0,F.jsxs)("span",{className:"font-normal text-gray-400",children:[" \u2014 ",e.signerName||e.email]})]}),e.signed&&e.signedAt?(0,F.jsx)("p",{className:"text-[11px] text-emerald-600",children:R(e.signedAt)}):e.signed?null:(0,F.jsx)("p",{className:"text-[11px] text-gray-400 hover:text-gray-600",children:"Pending"})]})]},e.id))]})}var D=n(21949),z=n(92339);function _(){var e;const t=(0,a.g)(),n=t.documentId,g=t.submissionId,f=(0,a.ok)(),p=(0,i.A)(f,1)[0].get("receiptToken"),h=(0,s.use
2State)(!0),x=(0,i.A)(h,2),y=x[0],b=x[1],v=(0,s.useState)(null),A=(0,i.A)(v,2),k=A[0],w=A[1],N=(0,s.useState)(null),E=(0,i.A)(N,2),j=E[0],S=E[1],C=(0,s.useState)(!1),L=(0,i.A)(C,2),T=L[0],M=L[1],U=(0,s.useState)(null),O=(0,i.A)(U,2),R=O[0],_=O[1],Z=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!n||!g||!p)return w("Invalid receipt link."),void b(!1);let e=!1;return(async()=>{try{const t=(0,l.getFunctions)(),r=(0,l.httpsCallable)(t,"getSharedSignatureReceipt"),i=await r({documentId:n,submissionId:g,receiptToken:p});if(e)return;const s=i.data||{};S(s),s.certificateOfCompletion&&_(s.certificateOfCompletion)}catch(t){e||w((null===t||void 0===t?void 0:t.message)||"Failed to load signed document.")}finally{e||b(!1)}})(),()=>{e=!0}},[n,g,p]);const B=!(null===j||void 0===j||!j.paymentCompletedAt),P=!(null===j||void 0===j||!j.paymentEnabled),J=null!==(e=null===j||void 0===j?void 0:j.paymentAmountCents)&&void 0!==e?e:null,W=(null===j||void 0===j?void 0:j.payNowUrl)||null,$=(null===j||void 0===j?void 0:j.paidLinkIds)||null,X=(0,s.useCallback)(e=>{if(!W)return void z.Ay.error("Payment link is not available.");const t=(null===e||void 0===e?void 0:e.paymentLinkId)||null,n=t?"".concat(W).concat(W.includes("?")?"&":"?","paymentLinkId=").concat(encodeURIComponent(t)):W;window.location.href=n},[W]);if((0,s.useEffect)(()=>{if(!Z.current||!j)return;const e=()=>(0,D._b)(Z.current,{paymentComplete:B,paidLinkIds:$,paymentAmountCents:J,onPaymentClick:B||!P?null:X}),t=e(),n=new MutationObserver(e);return n.observe(Z.current,{childList:!0,subtree:!0}),()=>{t(),n.disconnect()}},[j,B,P,J,$,X]),y)return(0,F.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:(0,F.jsx)("p",{className:"text-gray-600",children:"Loading your signed document..."})});if(k)return(0,F.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 p-4",children:(0,F.jsxs)("div",{className:"max-w-md w-full bg-white rounded-lg shadow p-6 text-center",children:[(0,F.jsx)("h1",{className:"text-lg font-medium text-gray-900 mb-2",children:"Unable to load receipt"}),(0,F.jsx)("p",{className:"text-gray-600",children:k})]})});const G=j.documentSnapshot,V=j.signatures,q=j.fullName,K=j.signerEmail,Q=j.submittedFormAnswers,Y=void 0===Q?{}:Q,ee=j.signatureMeta||{},te=Object.fromEntries(Object.entries(ee).map(e=>{let t=(0,i.A)(e,2),n=t[0],s=t[1];return[n,(0,r.A)((0,r.A)({},s),{},{signerName:s.signerName||q||"",signerEmail:s.signerEmail||K||""})]})),ne=(null===G||void 0===G?void 0:G.title)||"Document",re=null!=(null===G||void 0===G?void 0:G.editorJson)?"string"===typeof G.editorJson?JSON.parse(G.editorJson):G.editorJson:null,ie=!(null===G||void 0===G||!G.paymentRevealAfterSignature),se=(0,D.bF)(j.paymentCompletedAt);return(0,F.jsxs)("div",{className:"min-h-screen bg-gray-50 py-6 px-4",children:[ie&&(0,F.jsx)("style",{children:"[data-payment-button] { display: none !important; }"}),(0,F.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,F.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-4",children:[(0,F.jsxs)("div",{className:"min-w-0",children:[(0,F.jsx)("h1",{className:"text-xl font-semibold text-gray-900 truncate",children:ne}),(0,F.jsx)("p",{className:"text-sm text-gray-400",children:"Signed copy"})]}),(0,F.jsxs)("div",{className:"shrink-0 flex flex-col items-end gap-2",children:[(0,F.jsx)("button",{type:"button",onClick:async()=>{if(G){M(!0);try{try{const e=await(0,u.L)({documentId:n,submissionId:g,receiptToken:p});return null!==e&&void 0!==e&&e.certificate&&_(e.certificate),void z.Ay.success("Sealed PDF downloaded.")}catch(e){}let t=G.editorHtml||"";!t.trim()&&re&&(t=function(e){if(!e)return"";const t="string"===typeof e?JSON.parse(e):e,n=document.createElement("div"),r=new m.KE({element:n,extensions:I,content:t,editable:!1}),i=r.getHTML();return r.destroy(),i}(re));const r=await(0,c.generatePdfFromDocument)({title:ne,fileName:G.fileName,editorHtml:t,textContent:G.textContent||"",signatures:V,signatureMeta:te||{},submittedFormAnswers:Y,paymentComplete:B,paidLinkIds:$,paymentAmountCents:J,paymentButtonUrl:B?null:W,paymentCompletedAt:j.paymentCompletedAt}),i=r.url,s=r.filename,a=document.createElement("a");a.href=i,a.download=s,a.click(),URL.revokeObjectURL(i),z.Ay.success("PDF downloaded (browser copy).")}catch(t){z.Ay.error((null===t||void 0===t?void 0:t.message)||"Failed to generate PDF.")}finally{M(!1)}}},disabled:T,className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 text-sm font-medium",children:T?"Generating...":"Download signed PDF"}),R&&(0,F.jsx)("button",{type:"button",onClick:()=>{try{(0,u.u)(R,ne)}catch(e){z.Ay.error((null===e||void 0===e?void 0:e.message)||"Certificate is not available yet.")}},className:"text-sm text-gray-600 hover:text-gray-900",children:"Download certificate"})]})]}),B&&P&&(0,F.jsxs)("div",{className:"mb-4 flex items-center gap-2 rounded-brand-md border border-hairline bg-state-success-soft px-4 py-3 text-state-success",children:[(0,F.jsx)(o.A,{className:"h-5 w-5 shrink-0",strokeWidth:2.5}),(0,F.jsxs)("p",{className:"text-sm font-medium",children:["Payment received",se?" on ".concat(se):""]})]}),(0,F.jsx)(H,{editorJson:re,signatures:V,signatureMeta:te}),(0,F.jsx)("div",{className:"bg-white rounded-lg shadow p-6",ref:Z,children:re?(0,F.jsx)("div",{className:"prose prose-slate prose-sm max-w-none",children:(0,F.jsx)(d.A,{json:re,signatures:V,signatureMeta:te,formRenderMode:"hiddenSubmitted",submittedFormAnswers:Y})}):(0,F.jsx)("p",{className:"text-gray-500",children:"Document content is not available."})})]})]})}},96276(e,t,n){n.d(t,{L:()=>i,u:()=>s});var r=n(52395);async function i(e){const t=(0,r.getFunctions)(),n=(0,r.httpsCallable)(t,"getSealedSignedDocument"),i=(await n(e)).data||{},s=i.downloadUrl;if(!s)throw new Error("Sealed PDF is not available yet.");const a=document.createElement("a");return a.href=s,a.download=i.filename||"signed.pdf",a.rel="noopener",a.click(),{certificate:i.certificate||null,recordSha256:i.recordSha256||"",pdfSha256:i.pdfSha256||"",filename:i.filename||"signed.pdf"}}
2function s(e,t){if(!e)throw new Error("Certificate is not available.");const n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r;const s=String(t||"certificate-of-completion").replace(/[\\/:*?"<>|]+/g,"-");i.download="".concat(s,"-certificate.json"),i.click(),URL.revokeObjectURL(r)}},82378(e,t,n){function r(e){var t,n;const i=[],s=[];if(!e)return{fields:i,signatureBlocks:s};if(Array.isArray(e.marks))for(const r of e.marks){var a;"fillableField"===r.type&&null!==(a=r.attrs)&&void 0!==a&&a.fieldId&&i.push({id:r.attrs.fieldId,type:r.attrs.fieldType||"text",label:r.attrs.label||""})}if("fillableFieldPlaceholder"===e.type&&null!==(t=e.attrs)&&void 0!==t&&t.fieldId&&i.push({id:e.attrs.fieldId,type:e.attrs.fieldType||"text",label:e.attrs.label||""}),"signatureBlock"===e.type&&null!==(n=e.attrs)&&void 0!==n&&n.blockId){var l;const t=e.attrs.assigneeType;let n="me";n="someone_else"===t||"me"===t?t:e.attrs.assigneeEmail&&String(e.attrs.assigneeEmail).trim()?"someone_else":"me",s.push({id:e.attrs.blockId,label:e.attrs.label||"Sign here",assigneeEmail:e.attrs.assigneeEmail||"",assigneeType:n,signingOrderIndex:null!==(l=e.attrs.signingOrderIndex)&&void 0!==l?l:null,signatureAlign:"left"===e.attrs.signatureAlign||"right"===e.attrs.signatureAlign?e.attrs.signatureAlign:"full",defaultSignature:e.attrs.defaultSignature||"",defaultSignerName:e.attrs.defaultSignerName||"",defaultSignerEmail:e.attrs.defaultSignerEmail||"",defaultSignedAt:e.attrs.defaultSignedAt||""})}if(Array.isArray(e.content))for(const o of e.content){const e=r(o);i.push(...e.fields),s.push(...e.signatureBlocks)}return{fields:i,signatureBlocks:s}}function i(e){const t=new Map,n=new Map;if(!e||!e.content)return{fields:[],signatureBlocks:[]};for(const i of e.content){const e=r(i),s=e.fields,a=e.signatureBlocks;for(const n of s)t.has(n.id)||t.set(n.id,n);for(const t of a)n.has(t.id)||n.set(t.id,t)}return{fields:Array.from(t.values()),signatureBlocks:Array.from(n.values())}}n.d(t,{HQ:()=>i})},17787(e,t,n){function r(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(t){return!1}}function i(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch(t){return e}}n.r(t),n.d(t,{DOMAIN_REGEX:()=>a,EMAIL_REGEX:()=>l,URL_REGEX:()=>s,convertUrlsToLinks:()=>d,dedupeRedundantHttpUrlsAfterMarkdownAnchors:()=>h,ensureLinksOpenInNewTab:()=>m,expandUrlDedupeKeys:()=>f,extractUrls:()=>u,getDomain:()=>i,isDomainName:()=>c,isValidUrl:()=>r,processHtmlForUrls:()=>g,stripRedundantBareUrlsAfterAnchors:()=>x,urlsOverlapForDedupe:()=>p});const s=/(https?:\/\/[^\s<>"']+?)(?=[.,!?;:]?\s|[.,!?;:]?$|[)\]}>])/g,a=/\b(?![0-9]+\.)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?\b(?![.,!?;:]*[a-zA-Z0-9])/g,l=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,o=new Set(["pdf","doc","docx","rtf","odt","pages","txt","tex","xls","xlsx","csv","ods","numbers","ppt","pptx","key","odp","epub","jpg","jpeg","png","gif","bmp","svg","webp","tif","tiff","heic","ico","psd","mp3","wav","flac","aac","ogg","m4a","opus","mp4","avi","mkv","webm","wmv","zip","rar","7z","tar","gz","bz2","dmg","iso","exe","msi","apk","ipa","deb","rpm","json","xml","yaml","yml","sql","log","env","lock"]);function d(e){if(!e||"string"!==typeof e)return e;let t=e.replace(s,e=>'<a href="'.concat(e,'" target="_blank" rel="noopener noreferrer" class="text-blue-600 hover:underline">').concat(e,"</a>"));new RegExp(a);const n=u(e),r=[];return n.forEach(e=>{let t=e.url,n=e.displayUrl,i=e.index,s=e.length;e.isFullUrl||r.push({index:i,length:s,url:t,displayUrl:n||t.replace(/^https?:\/\//,"")})}),r.sort((e,t)=>t.index-e.index),r.forEach(e=>{let n=e.index,r=e.length,i=e.url,s=e.displayUrl;const a=t.substring(0,n),l=(t.substring(n+r),a.lastIndexOf("<a")),o=a.lastIndexOf("</a>");if(-1===l||-1!==o&&o>l){const e=t.substring(0,n),a=(t.substring(n,n+r),t.substring(n+r));t=e+'<a href="'.concat(i,'" target="_blank" rel="noopener noreferrer" class="text-blue-600 hover:underline">').concat(s,"</a>")+a}}),t}function c(e){if(/^\d+\.$/.test(e.trim()))return!1;const t=e.lastIndexOf(".");if(t>=0){const n=e.slice(t+1).toLowerCase();if(o.has(n))return!1}return/[a-zA-Z]/.test(e)&&/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(e)&&!e.startsWith("http://")&&!e.startsWith("https://")}function u(e){if(!e||"string"!==typeof e)return[];const t=[];let n;const r=new RegExp(s);for(;null!==(n=r.exec(e));)t.push({url:n[0],index:n.index,length:n[0].length,isFullUrl:!0});const i=[],o=new RegExp(l);for(;null!==(n=o.exec(e));){const e=n[0];t.some(e=>n.index>=e.index&&n.index<e.index+e.length)||(i.push({start:n.index,end:n.index+e.length}),t.push({url:"mailto:".concat(e),displayUrl:e,index:n.index,length:e.length,isFullUrl:!1,isEmail:!0}))}const d=new RegExp(a);for(;null!==(n=d.exec(e));){const e=n[0],r=t.some(e=>n.index>=e.index&&n.index<e.index+e.length),s=i.some(e=>n.index>=e.start&&n.index<e.end);r||s||!c(e)||t.push({url:"https://".concat(e),displayUrl:e,index:n.index,length:e.length,isFullUrl:!1})}return t.sort((e,t)=>
2e.index-t.index),t}function m(e){if(!e||"string"!==typeof e)return e;if("undefined"===typeof document)return e;const t=document.createElement("div");t.innerHTML=e;return t.querySelectorAll("a").forEach(e=>{const t=e.getAttribute("href");t&&(t.startsWith("http://")||t.startsWith("https://"))&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"),e.className.includes("hover:underline")||(e.className="".concat(e.className," text-blue-600 hover:underline").trim()))}),t.innerHTML}function g(e){if(!e||"string"!==typeof e)return e;if("undefined"===typeof document)return e;let t=m(e);const n=document.createElement("div");n.innerHTML=t;const r=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null,!1),i=[];let s;for(;s=r.nextNode();){if(s.parentElement&&"A"===s.parentElement.tagName)continue;const e=s.textContent;let t=u(e);if(0===t.length&&(e.includes("https://")||e.includes("http://"))){const t=d(e);if(t!==e){const e=document.createElement("div");e.innerHTML=t;const n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.firstChild);s.parentNode.replaceChild(n,s)}continue}t.length>0&&i.push({node:s,urls:t,text:e})}return i.forEach(e=>{let t=e.node,n=e.urls,r=e.text;const i=document.createDocumentFragment();let s=0;n.forEach(e=>{let t=e.url,n=e.displayUrl,a=e.index,l=e.length;a>s&&i.appendChild(document.createTextNode(r.substring(s,a)));const o=document.createElement("a");o.href=t,o.target="_blank",o.rel="noopener noreferrer",o.className="text-blue-600 hover:underline",o.textContent=n||t,i.appendChild(o),s=a+l}),s<r.length&&i.appendChild(document.createTextNode(r.substring(s))),t.parentNode.replaceChild(i,t)}),n.innerHTML}function f(e){const t=new Set;if(!e||"string"!==typeof e)return t;t.add(e);try{var n;const r="undefined"!==typeof window&&null!==(n=window.location)&&void 0!==n&&n.href?window.location.href:"http://localhost/",i=new URL(e,r);i.hash="",t.add(i.href.replace(/\/$/,"")),t.add("".concat(i.pathname).concat(i.search));const s=i.pathname.replace(/\/$/,"")||"/";t.add("".concat(s).concat(i.search))}catch(r){}return t}function p(e,t){const n=f(e);for(const r of f(t))if(n.has(r))return!0;return!1}function h(e){if(!e||"string"!==typeof e)return e;let t=e.replace(/<\/a>(\s+)(https?:\/\/[^\s<>"]+?)(?=[.,!?;:]?\s|[.,!?;:]?$|[)}\]])/gi,(e,t,n,r,i)=>{const s=i.slice(0,r),a=s.lastIndexOf("<a ");if(-1===a)return e;const l=s.slice(a).match(/href="([^"]+)"/i);return l&&p(l[1],n)?"</a>":e});const n=new Set;let r;const i=/<a\b[^>]*href="([^"]+)"/gi;for(;null!==(r=i.exec(t));)f(r[1]).forEach(e=>n.add(e));const s=(e,t)=>e.split(/(<a\b[^>]*>[\s\S]*?<\/a>)/gi).map((e,n)=>n%2===1?e:t(e)).join("");return t=s(t,e=>e.replace(/(https?:\/\/[^\s<>"]+?)(?=[.,!?;:]?\s|[.,!?;:]?$|[)}\]])/g,(e,t)=>{for(const r of f(t))if(n.has(r))return"";return e})),s(t,e=>e.replace(/[ \t]{2,}/g," "))}function x(e){if(!e||"undefined"===typeof document)return e;const t=document.createElement("div");t.innerHTML=e;const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=[];let i;for(;i=n.nextNode();)i.parentElement&&"A"===i.parentElement.tagName||r.push(i);for(const s of r){let e=s.previousSibling;for(;e&&e.nodeType===Node.TEXT_NODE&&""===e.textContent.replace(/\s/g,"");)e=e.previousSibling;if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.tagName)continue;const t=e.getAttribute("href");if(!t)continue;const n=s.textContent,r=n.match(/^(\s*)(https?:\/\/[^\s<>"']+)/i);if(!r)continue;const i=r[1];if(!p(t,r[2]))continue;const a=n.slice(r[0].length).replace(/^[.,!?;:\s]+/,"");s.textContent=i.replace(/\s+$/,"")+a}return t.innerHTML}},36210(e,t,n){n.d(t,{A:()=>r});const r=(0,n(77784).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},82054(e,t,n){n.d(t,{A:()=>r});const r=(0,n(77784).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},75088(e,t,n){n.d(t,{A:()=>r});const r=(0,n(77784).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])}}]);
3//# sourceMappingURL=8079.2a4e53f0.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.