PageSourceSearch

https://matters.group/assets/BlogPost-IEUFVeCv.js

js matters.group collected 2026-10-09 22:42:04 UTC 32,202 bytes, 12 lines download raw bytes

vendor: 6,605 bytes, lines 1-11
1import{c as It,r as v,j as o,X as Qt,m as en,n as tn,s as Ae,S as bt,o as nn,p as an,N as on,L as se,t as sn,B as rn,F as ln}from"./index-CISjGKDG.js";import{T as cn}from"./triangle-alert-Cbo_viQI.js";import{B as un}from"./badge-CYkC30cE.js";import{A as mn}from"./arrow-left-YZnKS9XH.js";import{C as fn}from"./calendar-DdpC5sp_.js";import{C as dn}from"./clock-BZuKkNfb.js";import{f as yt}from"./format-BEMO4FpZ.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const pn=It("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const hn=It("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:kt,setPrototypeOf:Nt,isFrozen:gn,getPrototypeOf:_n,getOwnPropertyDescriptor:Tn}=Object;let{freeze:N,seal:w,create:$e}=Object,{apply:Ve,construct:Ke}=typeof Reflect<"u"&&Reflect;N||(N=function(t){return t});w||(w=function(t){return t});Ve||(Ve=function(t,l){for(var i=arguments.length,u=new Array(i>2?i-2:0),m=2;m<i;m++)u[m-2]=arguments[m];return t.apply(l,u)});Ke||(Ke=function(t){for(var l=arguments.length,i=new Array(l>1?l-1:0),u=1;u<l;u++)i[u-1]=arguments[u];return new t(...i)});const xe=R(Array.prototype.forEach),En=R(Array.prototype.lastIndexOf),Rt=R(Array.prototype.pop),re=R(Array.prototype.push),An=R(Array.prototype.splice),be=R(String.prototype.toLowerCase),Be=R(String.prototype.toString),Ge=R(String.prototype.match),le=R(String.prototype.replace),xn=R(String.prototype.indexOf),Sn=R(String.prototype.trim),O=R(Object.prototype.hasOwnProperty),y=R(RegExp.prototype.test),ce=bn(TypeError);function R(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var l=arguments.length,i=new Array(l>1?l-1:0),u=1;u<l;u++)i[u-1]=arguments[u];return Ve(r,t,i)}}function bn(r){return function(){for(var t=arguments.length,l=new Array(t),i=0;i<t;i++)l[i]=arguments[i];return Ke(r,l)}}function c(r,t){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be;Nt&&Nt(r,null);let i=t.length;for(;i--;){let u=t[i];if(typeof u=="string"){const m=l(u);m!==u&&(gn(t)||(t[i]=m),u=m)}r[u]=!0}return r}function yn(r){for(let t=0;t<r.length;t++)O(r,t)||(r[t]=null);return r}function G(r){const t=$e(null);for(const[l,i]of kt(r))O(r,l)&&(Array.isArray(i)?t[l]=yn(i):i&&typeof i=="object"&&i.constructor===Object?t[l]=G(i):t[l]=i);return t}function ue(r,t){for(;r!==null;){const i=Tn(r,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}r=_n(r)}function l(){return null}return l}const Lt=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),We=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ye=N(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Nn=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xe=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Rn=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wt=N(["#text"]),Dt=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
11spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qe=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ot=N(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Se=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ln=w(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wn=w(/<%[\w\W]*|[\w\W]*%>/gm),Dn=w(/\$\{[\w\W]*/gm),On=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),vn=w(/^aria-[\-\w]+$/),Pt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cn=w(/^(?:\w+script|data):/i),Mn=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ut=w(/^html$/i),In=w(/^[a-z][.\w]*(-[.\w]+)+$/i);var vt=Object.freeze({__proto__:null,ARIA_ATTR:vn,ATTR_WHITESPACE:Mn,CUSTOM_ELEMENT:In,DATA_ATTR:On,DOCTYPE_NAME:Ut,ERB_EXPR:wn,IS_ALLOWED_URI:Pt,IS_SCRIPT_OR_DATA:Cn,MUSTACHE_EXPR:Ln,TMPLIT_EXPR:Dn});const me={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},kn=function(){return typeof window>"u"?null:window},Pn=function(t,l){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const u="data-tt-policy-suffix";l&&l.hasAttribute(u)&&(i=l.getAttribute(u));const m="dompurify"+(i?"#"+i:"");try{return t.createPolicy(m,{createHTML(x){return x},createScriptURL(x){return x}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kn();const t=s=>jt(s);if(t.version="3.3.0",t.removed=[],!r||!r.document||r.document.nodeType!==me.document||!r.Element)return t.isSupported=!1,t;let{document:l}=r;const i=l,u=i.currentScript,{DocumentFragment:m,HTMLTemplateElement:x,Node:U,Element:C,NodeFilter:M,NamedNodeMap:I=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:W,DOMParser:te,trustedTypes:j}=r,D=C.prototype,ye=ue(D,"cloneNode"),Ne=ue(D,"remove"),Re=ue(D,"nextSibling"),d=ue(D,"childNodes"),k=ue(D,"parentNode");if(typeof x=="function"){const s=l.createElement("template");s.content&&s.content.ownerDocument&&(l=s.content.ownerDocument)}let g,F="";const{implementation:ne,createNodeIterator:fe,createDocumentFragment:Le,getElementsByTagName:Ft}=l,{importNode:Ht}=i;let b=Ct();t.isSupported=typeof kt=="function"&&typeof k=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:we,ERB_EXPR:De,TMPLIT_EXPR:Oe,DATA_ATTR:zt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:Ze,CUSTOM_ELEMENT:Wt}=vt;let{IS_ALLOWED_URI:Qe}=vt,_=null;const et=c({},[...Lt,...We,...Ye,...Xe,...wt]);let E=null;const tt=c({},[...Dt,...qe,...Ot,...Se]);
vendor: 9,811 bytes, line 11
11let p=Object.seal($e(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,ve=null;const q=Object.seal($e(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let nt=!0,Ce=!0,at=!1,ot=!0,$=!1,de=!0,Y=!1,Me=!1,Ie=!1,V=!1,pe=!1,he=!1,it=!0,st=!1;const Yt="user-content-";let ke=!0,oe=!1,K={},J=null;const rt=c({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lt=null;const ct=c({},["audio","video","img","source","image","track"]);let Pe=null;const ut=c({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",_e="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml";let Z=H,Ue=!1,je=null;const Xt=c({},[ge,_e,H],Be);let Te=c({},["mi","mo","mn","ms","mtext"]),Ee=c({},["annotation-xml"]);const qt=c({},["title","style","font","a","script"]);let ie=null;const $t=["application/xhtml+xml","text/html"],Vt="text/html";let T=null,Q=null;const Kt=l.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},Fe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Q&&Q===e)){if((!e||typeof e!="object")&&(e={}),e=G(e),ie=$t.indexOf(e.PARSER_MEDIA_TYPE)===-1?Vt:e.PARSER_MEDIA_TYPE,T=ie==="application/xhtml+xml"?Be:be,_=O(e,"ALLOWED_TAGS")?c({},e.ALLOWED_TAGS,T):et,E=O(e,"ALLOWED_ATTR")?c({},e.ALLOWED_ATTR,T):tt,je=O(e,"ALLOWED_NAMESPACES")?c({},e.ALLOWED_NAMESPACES,Be):Xt,Pe=O(e,"ADD_URI_SAFE_ATTR")?c(G(ut),e.ADD_URI_SAFE_ATTR,T):ut,lt=O(e,"ADD_DATA_URI_TAGS")?c(G(ct),e.ADD_DATA_URI_TAGS,T):ct,J=O(e,"FORBID_CONTENTS")?c({},e.FORBID_CONTENTS,T):rt,ae=O(e,"FORBID_TAGS")?c({},e.FORBID_TAGS,T):G({}),ve=O(e,"FORBID_ATTR")?c({},e.FORBID_ATTR,T):G({}),K=O(e,"USE_PROFILES")?e.USE_PROFILES:!1,nt=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,at=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ot=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$=e.SAFE_FOR_TEMPLATES||!1,de=e.SAFE_FOR_XML!==!1,Y=e.WHOLE_DOCUMENT||!1,V=e.RETURN_DOM||!1,pe=e.RETURN_DOM_FRAGMENT||!1,he=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,it=e.SANITIZE_DOM!==!1,st=e.SANITIZE_NAMED_PROPS||!1,ke=e.KEEP_CONTENT!==!1,oe=e.IN_PLACE||!1,Qe=e.ALLOWED_URI_REGEXP||Pt,Z=e.NAMESPACE||H,Te=e.MATHML_TEXT_INTEGRATION_POINTS||Te,Ee=e.HTML_INTEGRATION_POINTS||Ee,p=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(p.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(p.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(p.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(Ce=!1),pe&&(V=!0),K&&(_=c({},wt),E=[],K.html===!0&&(c(_,Lt),c(E,Dt)),K.svg===!0&&(c(_,We),c(E,qe),c(E,Se)),K.svgFilters===!0&&(c(_,Ye),c(E,qe),c(E,Se)),K.mathMl===!0&&(c(_,Xe),c(E,Ot),c(E,Se))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?q.tagCheck=e.ADD_TAGS:(_===et&&(_=G(_)),c(_,e.ADD_TAGS,T))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?q.attributeCheck=e.ADD_ATTR:(E===tt&&(E=G(E)),c(E,e.ADD_ATTR,T))),e.ADD_URI_SAFE_ATTR&&c(Pe,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(J===rt&&(J=G(J)),c(J,e.FORBID_CONTENTS,T)),ke&&(_["#text"]=!0),Y&&c(_,["html","head","body"]),_.table&&(c(_,["tbody"]),delete ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,F=g.createHTML("")}else g===void 0&&(g=Pn(j,u)),g!==null&&typeof F=="string"&&(F=g.createHTML(""));N&&N(e),Q=e}},ft=c({},[...We,...Ye,...Nn]),dt=c({},[...Xe,...Rn]),Jt=function(e){let n=k(e);(!n||!n.tagName)&&(n={namespaceURI:Z,tagName:"template"});const a=be(e.tagName),f=be(n.tagName);return je[e.namespaceURI]?e.namespaceURI===_e?n.namespaceURI===H?a==="svg":n.namespaceURI===ge?a==="svg"&&(f==="annotation-xml"||Te[f]):!!ft[a]:e.namespaceURI===ge?n.namespaceURI===H?a==="math":n.namespaceURI===_e?a==="math"&&Ee[f]:!!dt[a]:e.namespaceURI===H?n.namespaceURI===_e&&!Ee[f]||n.namespaceURI===ge&&!Te[f]?!1:!dt[a]&&(qt[a]||!ft[a]):!!(ie==="application/xhtml+xml"&&je[e.namespaceURI]):!1},P=function(e){re(t.removed,{element:e});try{k(e).removeChild(e)}catch{Ne(e)}},X=function(e,n){try{re(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{re(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(V||pe)try{P(n)}catch{}else try{n.setAttribute(e,"")}catch{}},pt=function(e){let n=null,a=null;if(Ie)e="<remove></remove>"+e;else{const h=Ge(e,/^[\r\n\t ]+/);a=h&&h[0]}ie==="application/xhtml+xml"&&Z===H&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const f=g?g.createHTML(e):e;if(Z===H)try{n=new te().parseFromString(f,ie)}catch{}if(!n||!n.documentElement){n=ne.createDocument(Z,"template",null);try{n.documentElement.innerHTML=Ue?F:f}catch{}}const S=n.body||n.documentElement;return e&&a&&S.insertBefore(l.createTextNode(a),S.childNodes[0]||null),Z===H?Ft.call(n,Y?"html":"body")[0]:Y?n.documentElement:S},ht=function(e){return fe.call(e.ownerDocument||e,e,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT|M.SHOW_PROCESSING_INSTRUCTION|M.SHOW_CDATA_SECTION,null)},He=function(e){return e instanceof W&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof I)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},gt=function(e){return typeof U=="function"&&e instanceof U};function z(s,e,n){xe(s,a=>{a.call(t,e,n,Q)})}const _t=function(e){let n=null;if(z(b.beforeSanitizeElements,e,null),He(e))return P(e),!0;const a=T(e.nodeName);if(z(b.uponSanitizeElement,e,{tagName:a,allowedTags:_}),de&&e.hasChildNodes()&&!gt(e.firstElementChild)&&y(/<[/\w!]/g,e.innerHTML)&&y(/<[/\w!]/g,e.textContent)||e.nodeType===me.progressingInstruction||de&&e.nodeType===me.comment&&y(/<[/\w]/g,e.data))return P(e),!0;if(!(q.tagCheck instanceof Function&&q.tagCheck(a))&&(!_[a]||ae[a])){if(!ae[a]&&Et(a)&&(p.tagNameCheck instanceof RegExp&&y(p.tagNameCheck,a)||p.tagNameCheck instanceof Function&&p.tagNameCheck(a)))return!1;if(ke&&!J[a]){const f=k(e)||e.parentNode,S=d(e)||e.childNodes;if(S&&f){const h=S.length;for(let L=h-1;L>=0;--L){const B=ye(S[L],!0);B.__removalCount=(e.__removalCount||0)+1,f.insertBefore(B,Re(e))}}}return P(e),!0}return e instanceof C&&!Jt(e)||(a==="noscript"||a==="noembed"||a==="noframes")&&y(/<\/no(script|embed|frames)/i,e.innerHTML)?(P(e),!0):($&&e.nodeType===me.text&&(n=e.textContent,xe([we,De,Oe],f=>{n=le(n,f," ")}),e.textContent!==n&&(re(t.removed,{element:e.cloneNode()}),e.textContent=n)),z(b.afterSanitizeElements,e,null),!1)},Tt=function(e,n,a){if(it&&(n==="id"||n==="name")&&(a in l||a in Kt))return!1;if(!(Ce&&!ve[n]&&y(zt,n))){if(!(nt&&y(Bt,n))){if(!(q.attributeCheck instanceof Function&&q.attributeCheck(n,e))){if(!E[n]||ve[n]){if(!(Et(e)&&(p.tagNameCheck instanceof RegExp&&y(p.tagNameCheck,e)||p.tagNameCheck instanceof Function&&p.tagNameCheck(e))&&(p.attributeNameCheck instanceof RegExp&&y(p.attributeNameCheck,n)||p.attributeNameCheck instanceof Function&&p.attributeNameCheck(n,e))||n==="is"&&p.allowCustomizedBuiltInElements&&(p.tagNameCheck instanceof RegExp&&y(p.tagNameCheck,a)||p.tagNameCheck instanceof Function&&p.tagNameCheck(a))))return!1}else if(!Pe[n]){if(!y(Qe,le(a,Ze,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&xn(a,"data:")===0&&lt[e])){if(!(at&&!y(Gt,le(a,Ze,"")))){if(a)return!1}}}}}}}return!0},Et=function(e){return e!=="annotation-xml"&&Ge(e,Wt)},At=function(e){z(b.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||He(e))return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let f=n.length;for(;f--;){const S=n[f],{name:h,namespaceURI:L,value:B}=S,ee=T(h),ze=B;let A=h==="value"?ze:Sn(ze);if(a.attrName=ee,a.attrValue=A,a.keepAttr=!0,a.forceKeepAttr=void 0,z(b.uponSanitizeAttribute,e,a),A=a.attrValue,st&&(ee==="id"||ee==="name")&&(X(h,e),A=Yt+A),de&&y(/((--!?|])>)|<\/(style|title|textarea)/i,A)){X(h,e);continue}if(ee==="attributename"&&Ge(A,"href")){X(h,e);continue}if(a.forceKeepAttr)continue;if(!a.keepAttr){X(h,e);continue}if(!ot&&y(/\/>/i,A)){X(h,e);continue}$&&xe([we,De,Oe],St=>{A=le(A,St," ")});const xt=T(e.nodeName);if(!Tt(xt,ee,A)){X(h,e);continue}if(g&&typeof j=="object"&&typeof j.getAttributeType=="function"&&!L)switch(j.getAttributeType(xt,ee)){case"TrustedHTML":{A=g.createHTML(A);break}case"TrustedScriptURL":{A=g.createScriptURL(A);break}}if(A!==ze)try{L?e.setAttributeNS(L,h,A):e.setAttribute(h,A),He(e)?P(e):Rt(t.removed)}catch{X(h,e)}}z(b.afterSanitizeAttributes,e,null)},Zt=function s(e){let n=null;const a=ht(e);for(z(b.beforeSanitizeShadowDOM,e,null);n=a.nextNode();)z(b.uponSanitizeShadowNode,n,null),_t(n),At(n),n.content instanceof m&&s(n.content);z(b.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(s){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,a=null,f=null,S=null;if(Ue=!s,Ue&&(s="<!-->
11"),typeof s!="string"&&!gt(s))if(typeof s.toString=="function"){if(s=s.toString(),typeof s!="string")throw ce("dirty is not a string, aborting")}else throw ce("toString is not a function");if(!t.isSupported)return s;if(Me||Fe(e),t.removed=[],typeof s=="string"&&(oe=!1),oe){if(s.nodeName){const B=T(s.nodeName);if(!_[B]||ae[B])throw ce("root node is forbidden and cannot be sanitized in-place")}}else if(s instanceof U)n=pt("<!---->"),a=n.ownerDocument.importNode(s,!0),a.nodeType===me.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?n=a:n.appendChild(a);else{if(!V&&!$&&!Y&&s.indexOf("<")===-1)return g&&he?g.createHTML(s):s;if(n=pt(s),!n)return V?null:he?F:""}n&&Ie&&P(n.firstChild);const h=ht(oe?s:n);for(;f=h.nextNode();)_t(f),At(f),f.content instanceof m&&Zt(f.content);if(oe)return s;if(V){if(pe)for(S=Le.call(n.ownerDocument);n.firstChild;)S.appendChild(n.firstChild);else S=n;return(E.shadowroot||E.shadowrootmode)&&(S=Ht.call(i,S,!0)),S}let L=Y?n.outerHTML:n.innerHTML;return Y&&_["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y(Ut,n.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
12`+L),$&&xe([we,De,Oe],B=>{L=le(L,B," ")}),g&&he?g.createHTML(L):L},t.setConfig=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fe(s),Me=!0},t.clearConfig=function(){Q=null,Me=!1},t.isValidAttribute=function(s,e,n){Q||Fe({});const a=T(s),f=T(e);return Tt(a,f,n)},t.addHook=function(s,e){typeof e=="function"&&re(b[s],e)},t.removeHook=function(s,e){if(e!==void 0){const n=En(b[s],e);return n===-1?void 0:An(b[s],n,1)[0]}return Rt(b[s])},t.removeHooks=function(s){b[s]=[]},t.removeAllHooks=function(){b=Ct()},t}var Un=jt();const Mt=["@context","@type","headline","datePublished","author","publisher","mainEntityOfPage"];function Je(){var C,M;const r=window.location.href,t=`https://search.google.com/test/rich-results?url=${encodeURIComponent(r)}`,l=Array.from(document.querySelectorAll('script[type="application/ld+json"]'));let i=null;for(const I of l)try{const W=JSON.parse(I.textContent||"null"),j=(Array.isArray(W)?W:[W]).find(D=>D&&(D["@type"]==="Article"||D["@type"]==="BlogPosting"));if(j){i=j;break}}catch{}if(!i){const I={found:!1,valid:!1,missing:[...Mt],richResultsTestUrl:t,pageUrl:r};return console.warn("[JSON-LD] No Article schema found in document.head.",I),I}const u=Mt.filter(I=>i[I]==null),m=((C=i.author)==null?void 0:C.name)||(Array.isArray(i.author)?(M=i.author[0])==null?void 0:M.name:void 0),x={found:!0,valid:u.length===0,missing:u,authorName:m,raw:i,richResultsTestUrl:t,pageUrl:r},U=x.valid?"✅":"❌";return console.groupCollapsed(`[JSON-LD] Article schema ${U} ${m??""}`),console.log("page:",r),console.log("author:",m),console.log("missing fields:",u),console.log("schema:",i),console.log("Validate in Rich Results Test:",t),console.groupEnd(),x}typeof window<"u"&&(window.__validateBlogSchema=Je);const jn=({trigger:r})=>{const[t,l]=v.useState(null),[i,u]=v.useState(!1),m=typeof window<"u"&&new URLSearchParams(window.location.search).has("validate-schema");if(v.useEffect(()=>{if(!m)return;const C=window.setTimeout(()=>l(Je()),80);return()=>window.clearTimeout(C)},[m,r]),!m||!t||i)return null;const x=t.valid&&t.found,U=x?en:cn;return o.jsx("div",{role:"status","aria-live":"polite",className:`fixed bottom-4 right-4 z-50 max-w-sm rounded-lg border shadow-lg p-3 text-sm backdrop-blur-sm ${x?"bg-emerald-50 border-emerald-300 text-emerald-900":"bg-amber-50 border-amber-300 text-amber-900"}`,children:o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(U,{className:"h-5 w-5 mt-0.5 shrink-0"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"font-semibold",children:["JSON-LD Article schema: ",x?"Valid":"Issues found"]}),o.jsxs("div",{className:"mt-1 text-xs opacity-80",children:["Author:"," ",o.jsx("span",{className:"font-medium",children:t.authorName||"— missing —"})]}),!x&&t.missing.length>0&&o.jsxs("div",{className:"mt-1 text-xs",children:["Missing: ",t.missing.join(", ")]}
12),!t.found&&o.jsx("div",{className:"mt-1 text-xs",children:"No Article/BlogPosting JSON-LD detected in <head>."}),o.jsxs("a",{href:t.richResultsTestUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1 text-xs font-medium underline hover:no-underline",children:["Open in Rich Results Test",o.jsx(pn,{className:"h-3 w-3"})]})]}),o.jsx("button",{type:"button","aria-label":"Dismiss schema validation badge",onClick:()=>u(!0),className:"shrink-0 opacity-60 hover:opacity-100",children:o.jsx(Qt,{className:"h-4 w-4"})})]})})},Fn=r=>{const l=r.trim().split(/\s+/).filter(i=>i.length>0).length;return Math.max(1,Math.ceil(l/200))},qn=()=>{const{slug:r}=tn(),[t,l]=v.useState(null),[i,u]=v.useState(null),[m,x]=v.useState([]),[U,C]=v.useState(!0),[M,I]=v.useState(!1);v.useEffect(()=>{r&&W()},[r]),v.useEffect(()=>{if(!t||!new URLSearchParams(window.location.search).has("validate-schema"))return;const k=window.setTimeout(()=>Je(),50);return()=>window.clearTimeout(k)},[t]),v.useEffect(()=>{if(!r)return;const d=()=>{document.visibilityState==="visible"&&W()};return window.addEventListener("focus",d),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("focus",d),document.removeEventListener("visibilitychange",d)}},[r]);const W=async()=>{const{data:d,error:k}=await Ae.from("blog_posts").select("id, title, slug, content, excerpt, meta_title, meta_description, featured_image, featured_image_alt, featured_image_caption, published_date, created_at, status, author_id").eq("slug",r).eq("status","published").maybeSingle();if(k||!d){I(!0),C(!1);return}l(d);const{data:g}=await Ae.from("profiles").select("id, full_name").eq("id",d.author_id).maybeSingle();g&&u(g);const{data:F}=await Ae.from("blog_post_labels").select("label_id").eq("post_id",d.id);if(F&&F.length>0){const ne=F.map(Le=>Le.label_id),{data:fe}=await Ae.from("blog_labels").select("*").in("id",ne);fe&&x(fe)}C(!1)};if(U)return o.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-background",children:[o.jsx(bt,{title:"Loading…",description:"Loading blog post..."}),o.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Loading..."})]});if(M||!t)return o.jsx(nn,{to:"/blog",replace:!0});const te=(i==null?void 0:i.full_name)||"Eric Layland",j=an({title:t.title,excerpt:t.excerpt||"",date:t.published_date||t.created_at,dateModified:t.published_date||t.created_at,slug:t.slug,category:"Blog",authorName:te,image:t.featured_image||void 0}),D=t.published_date?yt(new Date(t.published_date),"MMMM d, yyyy"):yt(new Date(t.created_at),"MMMM d, yyyy"),ye=d=>{const k=Un.sanitize(d,{ALLOWED_TAGS:["p","br","strong","em","b","i","u","s","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img","hr"],ALLOWED_ATTR:["href","src","alt","target","rel","class"]});return o.jsx("div",{className:"blog-content",dangerouslySetInnerHTML:{__html:k}})},Ne=t.meta_title||t.title,Re=t.meta_description||t.excerpt||t.content.substring(0,160);return o.jsxs("div",{className:"min-h-screen flex flex-col",children:[o.jsx(bt,{title:Ne,description:Re,canonicalUrl:`/blog/${t.slug}`,type:"article",image:t.featured_image||void 0,imageAlt:t.featured_image_alt||void 0,structuredData:j,noCache:!0}),o.jsx(on,{}),o.jsx("main",{className:"flex-1",children:o.jsx("article",{className:"py-20 lg:py-32",children:o.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("nav",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-8",children:[o.jsxs(se,{to:"/",className:"hover:text-accent transition-colors flex items-center gap-1",children:[o.jsx(hn,{className:"h-4 w-4"}),"Home"]}),o.jsx("span",{children:"/"}),o.jsx(se,{to:"/blog",className:"hover:text-accent transition-colors",children:"Blog"}),o.jsx("span",{children:"/"}),o.jsx("span",{className:"text-foreground truncate max-w-[200px]",children:t.title})]}),o.jsxs(se,{to:"/blog",className:"inline-flex items-center text-muted-foreground hover:text-accent mb-8 transition-colors",children:[o.jsx(mn,{className:"mr-2 h-4 w-4"}),"Back to Blog"]}),o.jsxs("div",{className:"mb-8",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm text-muted-foreground mb-4",children:[o.jsx(fn,{className:"h-4 w-4"}),o.jsx("span",{children:D}),o.jsx("span",{className:"mx-2",children:"•"}),o.jsx("span",{children:te}),o.jsx("span",{className:"mx-2",children:"•"}),o.jsx(dn,{className:"h-4 w-4"}),o.jsxs("span",{children:[Fn(t.content)," min read"]})]}),o.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:t.title}),m.length>0&&o.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:m.map(d=>o.jsx(se,{to:`/blog?label=${d.id}`,children:o.jsx(un,{variant:"secondary",className:"cursor-pointer hover:opacity-80 transition-opacity",style:{backgroundColor:`${d.color}20`,borderColor:d.color,color:d.color},children:d.name})},d.id))}),t.featured_image&&o.jsxs("figure",{className:"mb-8",children:[o.jsx("div",{className:"aspect-video w-full overflow-hidden rounded-lg shadow-lg",children:o.jsx("img",{src:t.featured_image,alt:t.featured_image_alt||t.title,className:"w-full h-full object-cover"})}),t.featured_image_caption&&o.jsx("figcaption",{className:"mt-3 text-sm text-[hsl(0_0%_50%)] text-center",children:t.featured_image_caption})]})]}),o.jsxs("div",{className:"prose prose-lg max-w-none",children:[ye(t.content),o.jsxs("div",{className:"bg-muted rounded-lg p-8 mt-12",children:[o.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Ready to Get Started?"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:"Schedule a discovery call to discu
12ss your digital transformation goals."}),o.jsx(se,{to:"/contact",onClick:()=>sn("Schedule a Discovery Call","blog_post_footer"),children:o.jsx(rn,{variant:"hero",size:"lg",children:"Schedule a Discovery Call"})})]})]})]})})})}),o.jsx(ln,{}),o.jsx(jn,{trigger:t.id})]})};export{qn as default};

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.