PageSourceSearch

https://www.vistaprint.fi/assets/ubik/web/@vp/fragment-homepage-fr…page-fragments-feature-tile-row-DMY9j-s4.js

js vistaprint.fi collected 2026-10-03 21:26:55 UTC 50,064 bytes, 47 lines download raw bytes

1System.register(["react/jsx-runtime","@vp/ubik-fragment-react","react","@vp/swan","@vp/ubik-context","./trackingContext-BrnkoIu2.js","@vp/campaign-callouts","./trackingConfig-sYxD1j1E.js","@vp/price-platform","./trackingUtils-2BuBiGlP.js","./trackingSchemas-0N-__QE1.js","@vp/mcs-react-tools","./ContentfulDebugWrapper-1MiXZP70.js","./main_npm-DBthRmQo.js","./constants-CyaWClOw.js","@vp/tracking"],(function(Ft){"use strict";var g,_e,pe,ze,Le,V,de,k,De,fe,Ue,Be,Me,Ne,Ze,He,Oe,Z,ge,qe,je,Fe,Ke,Qe,ke,We,Ye,H,O,Ve,Ge,Xe,Je,et,tt,nt,it,me,z,st,G,X,rt,lt,at,ot,ct,ut,ht,pt,dt,ft,gt,kt,mt,xt,bt,xe,be,wt,yt,Tt;return{setters:[function(a){g=a.jsx,_e=a.Fragment,pe=a.jsxs},function(a){ze=a.clientMount},function(a){Le=a.createContext,V=a.useState,de=a.useEffect,k=a.default,De=a.useContext},function(a){fe=a.ScreenClassProvider,Ue=a.StandardTile,Be=a.StandardTileOverlay,Me=a.Callout,Ne=a.StandardTileImage,Ze=a.BasicResponsiveImage,He=a.StandardTileContents,Oe=a.StandardTileName,Z=a.Link,ge=a.Span,qe=a.StandardTilePrice,je=a.StandardTileDescription,Fe=a.StandardTilePromoCode,Ke=a.StandardTilePromoCodeLabel,Qe=a.PromoCode,ke=a.StandardTileSeparatelyClickableContents,We=a.Typography,Ye=a.Button,H=a.Row,O=a.Column,Ve=a.SwanI18nProvider,Ge=a.AdaptiveCarousel,Xe=a.AdaptiveCarouselSlide,Je=a.BoundedContent,et=a.GridContainer,tt=a.Box,nt=a.FlexBox,it=a.H2,me=a.Hidden,z=a.SWAN_STYLE_KEY_MAP},function(a){st=a.UserContextProvider,G=a.useUserContext,X=a.useLogger,rt=a.useSwanStyleKeys,lt=a.useUserContextTracker,at=a.LoggerProvider},function(a){ot=a.u,ct=a.T}
1,function(a){ut=a.CampaignCallout,ht=a.CampaignProvider},function(a){pt=a.C,dt=a.P,ft=a.a,gt=a.g,kt=a.b,mt=a.c},function(a){xt=a.PriceDisplay,bt=a.SWAN_STYLE_KEYS},function(a){xe=a.c},function(a){be=a.F},function(a){wt=a.MCS_REACT_TOOLS_SWAN_STYLES},function(a){yt=a.i,Tt=a.C},null,null,null],execute:(function(){var a;(function(l){l.deDE="de-de",l.esES="es-es",l.fiFI="fi-fi",l.nlNL="nl-nl",l.itIT="it-it",l.svSE="sv-se",l.nbNO="nb-no",l.ptPT="pt-pt",l.daDK="da-dk",l.frCA="fr-ca",l.esUS="es-us",l.enCA="en-ca",l.nlBE="nl-be",l.enIE="en-ie",l.frBE="fr-be",l.frFR="fr-fr",l.frCH="fr-ch",l.deAT="de-at",l.deCH="de-ch",l.itCH="it-ch",l.enAU="en-au",l.enNZ="en-nz",l.enSG="en-sg",l.enIN="en-in"})(a||(a={}));var Kt="Rabatkode:",Qt={promotionalCode:Kt},Wt="Code:",Yt={promotionalCode:Wt},Vt="Code:",Gt={promotionalCode:Vt},Xt="C\xF3digo:",Jt={promotionalCode:Xt},en="C\xF3digo:",tn={promotionalCode:en},nn="Koodi:",sn={promotionalCode:nn},rn="Code:",ln={promotionalCode:rn},an="Code :",on={promotionalCode:an},cn="Codice:",un={promotionalCode:cn},hn="Kode:",pn={promotionalCode:hn},dn="Code:",fn={promotionalCode:dn},gn="C\xF3digo:",kn={promotionalCode:gn},mn="Kod:",xn={promotionalCode:mn};const q={[a.daDK]:Qt,[a.deDE]:Yt,[a.enIE]:Gt,[a.esES]:Jt,[a.esUS]:tn,[a.fiFI]:sn,[a.frCA]:ln,[a.frFR]:on,[a.itIT]:un,[a.nbNO]:pn,[a.nlNL]:fn,[a.ptPT]:kn,[a.svSE]:xn},M={[a.frBE]:[a.frFR,a.enIE],[a.frCA]:[a.frFR,a.enIE],[a.nlBE]:[a.nlNL,a.enIE],[a.deAT]:[a.deDE,a.enIE],[a.deCH]:[a.deDE,a.enIE],[a.itCH]:[a.itIT,a.enIE],[a.frCH]:[a.frFR,a.enIE],[a.enAU]:[a.enIE],[a.enCA]:[a.enIE],[a.esUS]:[a.enIE],[a.enIN]:[a.enIE],[a.enNZ]:[a.enAU,a.enIE],[a.enSG]:[a.enAU,a.enIE],default:[a.enIE]};class P{constructor(e=a.enIE){if(this.locale=a.esUS,e&&P.instances[e])return P.instances[e];const t=M[e]?.[0]||M.default?.[0]||a.enIE;this.locale=e in q?e:t,P.instances[e]=this}setLocale(e){return P.instances[e]?P.instances[e]:new P(e)}translate(e){const t=this.getTranslation(this.locale,e);return t!==null?t:this.getFallbackTranslation(e)||e}getTranslation(e,t){const n=q?.[e];return n&&typeof n=="object"&&t in n?n[t]:null}getAllTexts(){if(q[this.locale])return q[this.locale];const e=M[this.locale]||M.default;if(e)for(const t of e){const n=q[t];if(n!==null)return n}}getFallbackTranslation(e){const t=M[this.locale]||M.default;if(t)for(const n of t){const s=this.getTranslation(n,e);if(s!==null)return s}return null}}P.instances={};const we={},bn=(l=a.enIE)=>(l=l.toLowerCase(),we[l]||(we[l]=new P(l)),we[l]),Ct=Le(void 0),wn=({defaultLocale:l=a.enIE,children:e})=>{const[t,n]=V(l),s=bn(t),r=i=>{n(i)};return k.createElement(Ct.Provider,{value:{locale:t,translate:s.translate.bind(s),setLocale:r}},e)},yn=()=>{const l=De(Ct);if(!l)throw new Error("useI18n must be used within an I18nProvider");return l},Tn=l=>{const{tileProps:e}=l,{type:t,tileDetails:n,productsList:s,category:r,selectedDiscoveryPage:i}=e,c=[];let o=!0;return t==="product"?s?.selectedProduct?.mpvId||(c.push("MPV ID is required"),o=!1):t==="category"?r?.selectedCategory?.mpvId||(c.push("Category ID is required"),o=!1):t==="discovery"&&(i?.discoveryPageId||(c.push("Discovery Page ID is required"),o=!1)),(!n?.image?.cloudinaryImage||n?.image?.cloudinaryImage?.length===0)&&(c.push("Tile Image is required"),o=!1),(!n?.header?.value||typeof n?.header?.value!="string")&&(c.push("Tile Header is required"),o=!1),{messages:c,isValid:o}};function ye(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let L=ye();function vt(l){L=l}const St=/[&<>"']/,Cn=new RegExp(St.source,"g"),Et=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,vn=new RegExp(Et.source,"g"),Sn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$t=l=>Sn[l];function C(l,e){if(e){if(St.test(l))return l.replace(Cn,$t)}else if(Et.test(l))return l.replace(vn,$t);return l}const En=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function $n(l){return l.replace(En,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const In=/(^|[^\[])\^/g;function x(l,e){let t=typeof l=="string"?l:l.source;e=e||"";const n={replace:(s,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(In,"$1"),t=t.replace(s,i),n},getRegex:()=>new RegExp(t,e)};return n}function It(l){try{l=encodeURI(l).replace(/%25/g,"%")}catch{return null}return l}const j={exec:()=>null};function Rt(l,e){const t=l.replace(/\|/g,(r,i,c)=>{let o=!1,p=i;for(;--p>=0&&c[p]==="\\";)o=!o;return o?"|":" |"}),n=t.split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function J(l,e,t){const n=l.length;if(n===0)return"";let s=0;for(;s<n&&l.charAt(n-s-1)===e;)s++;return l.slice(0,n-s)}function Rn(l,e){if(l.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<l.length;n++)if(l[n]==="\\")n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return-1}function At(l,e,t,n){const s=e.href,r=e.title?C(e.title):null,i=l[1].replace(/\\([\[\]])/g,"$1");if(l[0].charAt(0)!=="!"){n.state.inLink=!0;const c={type:"link",raw:t,href:s,title:r,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,c}return{type:"image",raw:t,href:s,title:r,text:C(i)}}function An(l,e){const t=l.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
2`).map(s=>{const r=s.match(/^\s+/);if(r===null)return s;const[i]=r;return i.length>=n.length?s.slice(n.length):s}
vendor: 10,075 bytes, lines 2-15
2).join(`
3`)}class ee{options;rules;lexer;constructor(e){this.options=e||L}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 n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:J(n,`
4`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=An(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const s=J(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
5    $1`);n=J(n.replace(/^ *>[ \t]?/gm,""),`
6`);const s=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=s,{type:"blockquote",raw:t[0],tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`);let c="",o="",p=!1;for(;e;){let u=!1;if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=t[2].split(`
7`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),h=e.split(`
8`,1)[0],f=0;this.options.pedantic?(f=2,o=d.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,o=d.slice(f),f+=t[1].length);let w=!1;if(!d&&/^ *$/.test(h)&&(c+=h+`
9`,e=e.substring(h.length+1),u=!0),!u){const S=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const $=e.split(`
10`,1)[0];if(h=$,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),E.test(h)||b.test(h)||S.test(h)||I.test(e))break;if(h.search(/[^ ]/)>=f||!h.trim())o+=`
11`+h.slice(f);else{if(w||d.search(/[^ ]/)>=4||E.test(d)||b.test(d)||I.test(d))break;o+=`
12`+h}!w&&!h.trim()&&(w=!0),c+=$+`
13`,e=e.substring($.length+1),d=h.slice(f)}}r.loose||(p?r.loose=!0:/\n *\n *$/.test(c)&&(p=!0));let y=null,T;this.options.gfm&&(y=/^\[[ xX]\] /.exec(o),y&&(T=y[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:c,task:!!y,checked:T,loose:!1,text:o,tokens:[]}),r.raw+=c}r.items[r.items.length-1].raw=c.trimEnd(),r.items[r.items.length-1].text=o.trimEnd(),r.raw=r.raw.trimEnd();for(let u=0;u<r.items.length;u++)if(this.lexer.state.top=!1,r.items[u].tokens=this.lexer.blockTokens(r.items[u].text,[]),!r.loose){const d=r.items[u].tokens.filter(f=>f.type==="space"),h=d.length>0&&d.some(f=>/\n.*\n/.test(f.raw));r.loose=h}if(r.loose)for(let u=0;u<r.items.length;u++)r.items[u].loose=!0;return r}}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 n=t[1].toLowerCase().replace(/\s+/g," "),s=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:s,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const n=Rt(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
14`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const c of s)/^ *-+: *$/.test(c)?i.align.push("right"):/^ *:-+: *$/.test(c)?i.align.push("center"):/^ *:-+ *$/.test(c)?i.align.push("left"):i.align.push(null);for(const c of n)i.header.push({text:c,tokens:this.lexer.inline(c)});for(const c of r)i.rows.push(Rt(c,i.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return i}}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 n=t[1].charAt(t[1].length-1)===`
15`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}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:C(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 n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const i=J(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{const i=Rn(t[2],"()");if(i>-1){const o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);i&&(s=i[1],r=i[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),At(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const s=(n[2]||n[1]).replace(/\s+/g," "),r=t[s.toLowerCase()];if(!r){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return At(n,r,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const i=[...s[0]].length-1;let c,o,p=i,u=0;const d=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(s=d.exec(t))!=null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(o=[...c].length,s[3]||s[4]){p+=o;continue}else if((s[5]||s[6])&&i%3&&!((i+o)%3)){u+=o;continue}if(p-=o,p>0)continue;o=Math.min(o,o+p+u);const h=[...s[0]][0].length,f=e.slice(0,i+s.index+h+o);if(Math.min(i,o)%2){const y=f.slice(1,-1);return{type:"em",raw:f,text:y,tokens:this.lexer.inlineTokens(y)}}const w=f.slice(2,-2);return{type:"strong",raw:f,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const s=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return s&&r&&(n=n.substring(1,n.length-1)),n=C(n,!0),{type:"codespan",raw:t[0],text:n}}}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 n,s;return t[2]==="@"?(n=C(t[1]),s="mailto:"+n):(n=C(t[1]),s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=C(t[0]),s="mailto:"+n;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);n=C(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=C(t[0]),{type:"text",raw:t[0],text:n}}}}const Pn=/^(?: *(?:\n|$))+/,_n=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,zn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,F=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ln=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pt=/(?:[*+-]|\d{1,9}[.)])/,_t=x(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Pt).replace(/blockCode/g,/ {4}/).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(),Te=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Dn=/^[^\n]+/,Ce=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Un=x(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Ce).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Bn=x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pt).getRegex(),te="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",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Mn=x("^ {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|/?>
15)[\\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",ve).replace("tag",te).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zt=x(Te).replace("hr",F).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",te).getRegex(),Se={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zt).getRegex(),code:_n,def:Un,fences:zn,heading:Ln,hr:F,html:Mn,lheading:_t,list:Bn,newline:Pn,paragraph:zt,table:j,text:Dn},Lt=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",F).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",te).getRegex(),Nn={...Se,table:Lt,paragraph:x(Te).replace("hr",F).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Lt).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",te).getRegex()},Zn={...Se,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).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:j,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(Te).replace("hr",F).replace("heading",` *#{1,6} *[^
16]`).replace("lheading",_t).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ut=/^( {2,}|\\)\n(?!\s*$)/,On=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,K="\\p{P}\\p{S}",qn=x(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,K).getRegex(),jn=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Fn=x(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,K).getRegex(),Kn=x("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,K).getRegex(),Qn=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,K).getRegex(),Wn=x(/\\([punct])/,"gu").replace(/punct/g,K).getRegex(),Yn=x(/^<(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(),Vn=x(ve).replace("(?:-->|$)","-->").getRegex(),Gn=x("^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",Vn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ne=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Xn=x(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ne).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bt=x(/^!?\[(label)\]\[(ref)\]/).replace("label",ne).replace("ref",Ce).getRegex(),Mt=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ce).getRegex(),Jn=x("reflink|nolink(?!\\()","g").replace("reflink",Bt).replace("nolink",Mt).getRegex(),Ee={_backpedal:j,anyPunctuation:Wn,autolink:Yn,blockSkip:jn,br:Ut,code:Hn,del:j,emStrongLDelim:Fn,emStrongRDelimAst:Kn,emStrongRDelimUnd:Qn,escape:Dt,link:Xn,nolink:Mt,punctuation:qn,reflink:Bt,reflinkSearch:Jn,tag:Gn,text:On,url:j},ei={...Ee,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",ne).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne).getRegex()},$e={...Ee,escape:x(Dt).replace("])","~|])").getRegex(),url:x(/^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},ti={...$e,br:x(Ut).replace("{2,}","*").getRegex(),text:x($e.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ie={normal:Se,gfm:Nn,pedantic:Zn}
vendor: 12,118 bytes, lines 16-45
16,Q={normal:Ee,gfm:$e,breaks:ti,pedantic:ei};class R{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||L,this.options.tokenizer=this.options.tokenizer||new ee,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:Q.normal};this.options.pedantic?(t.block=ie.pedantic,t.inline=Q.pedantic):this.options.gfm&&(t.block=ie.gfm,this.options.breaks?t.inline=Q.breaks:t.inline=Q.gfm),this.tokenizer.rules=t}static get rules(){return{block:ie,inline:Q}}static lex(e,t){return new R(t).lex(e)}static lexInline(e,t){return new R(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
17`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(c,o,p)=>o+"    ".repeat(p.length));let n,s,r,i;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(c=>(n=c.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+=`
18`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),s=t[t.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
19`+n.raw,s.text+=`
20`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=s.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),s=t[t.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
21`+n.raw,s.text+=`
22`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.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(r=e,this.options.extensions&&this.options.extensions.startBlock){let c=1/0;const o=e.slice(1);let p;this.options.extensions.startBlock.forEach(u=>{p=u.call({lexer:this},o),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(r=e.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){s=t[t.length-1],i&&s.type==="paragraph"?(s.raw+=`
23`+n.raw,s.text+=`
24`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),s=t[t.length-1],s&&s.type==="text"?(s.raw+=`
25`+n.raw,s.text+=`
26`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(n);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,s,r,i=e,c,o,p;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)u.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,c.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(p=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),s=t[t.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,i,p)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=e.slice(1);let h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),o=!0,s=t[t.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):t.push(n);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 se{options;constructor(e){this.options=e||L}code(e,t,n){const s=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+`
27`,s?'<pre><code class="language-'+C(s)+'">'+(n?e:C(e,!0))+`</code></pre>
28`:"<pre><code>"+(n?e:C(e,!0))+`</code></pre>
29`}blockquote(e){return`<blockquote>
30${e}</blockquote>
31`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
32`}hr(){return`<hr>
33`}list(e,t,n){const s=t?"ol":"ul",r=t&&n!==1?' start="'+n+'"':"";return"<"+s+r+`>
34`+e+"</"+s+`>
35`}listitem(e,t,n){return`<li>${e}</li>
36`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
37`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
38<thead>
39`+e+`</thead>
40`+t+`</table>
41`}tablerow(e){return`<tr>
42${e}</tr>
43`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
44`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const s=It(e);if(s===null)return n;e=s;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){const s=It(e);if(s===null)return n;e=s;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return e}}class Ie{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class A{options;renderer;textRenderer;constructor(e){this.options=e||L,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie}static parse(e,t){return new A(t).parse(e)}static parseInline(e,t){return new A(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=r,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){n+=c||"";continue}}switch(r.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{const i=r;n+=this.renderer.heading(this.parseInline(i.tokens),i.depth,$n(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=r;n+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=r;let c="",o="";for(let u=0;u<i.header.length;u++)o+=this.renderer.tablecell(this.parseInline(i.header[u].tokens),{header:!0,align:i.align[u]});c+=this.renderer.tablerow(o);let p="";for(let u=0;u<i.rows.length;u++){const d=i.rows[u];o="";for(let h=0;h<d.length;h++)o+=this.renderer.tablecell(this.parseInline(d[h].tokens),{header:!1,align:i.align[h]});p+=this.renderer.tablerow(o)}n+=this.renderer.table(c,p);continue}case"blockquote":{const i=r,c=this.parse(i.tokens);n+=this.renderer.blockquote(c);continue}case"list":{const i=r,c=i.ordered,o=i.start,p=i.loose;let u="";for(let d=0;d<i.items.length;d++){const h=i.items[d],f=h.checked,w=h.task;let y="";if(h.task){const T=this.renderer.checkbox(!!f);p?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=T+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=T+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:T+" "}):y+=T+" "}y+=this.parse(h.tokens,p),u+=this.renderer.listitem(y,w,!!f)}n+=this.renderer.list(u,c,o);continue}case"html":{const i=r;n+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=r;n+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=r,c=i.tokens?this.parseInline(i.tokens):i.text;for(;s+1<e.length&&e[s+1].type==="text";)i=e[++s],c+=`
45`+(i.tokens?this.parseInline(i.tokens):i.text);n+=t?this.renderer.paragraph(c):c;continue}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=this.options.extensions.renderers[r.type].call({parser:this},r);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=i||"";continue}}switch(r.type){case"escape":{const i=r;n+=t.text(i.text);break}case"html":{const i=r;n+=t.html(i.text);break}case"link":{const i=r;n+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break}case"image":{const i=r;n+=t.image(i.href,i.title,i.text);break}case"strong":{const i=r;n+=t.strong(this.parseInline(i.tokens,t));break}case"em":{const i=r;n+=t.em(this.parseInline(i.tokens,t));break}case"codespan":{const i=r;n+=t.codespan(i.text);break}case"br":{n+=t.br();break}case"del":{const i=r;n+=t.del(this.parseInline(i.tokens,t));break}case"text":{const i=r;n+=t.text(i.text);break}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return n}}class re{options;constructor(e){this.options=e||L}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class ni{defaults=ye();options=this.setOptions;parse=this.#e(R.lex,A.parse);parseInline=this.#e(R.lexInline,A.parseInline);Parser=A;Renderer=se;TextRenderer=Ie;Lexer=R;Tokenizer=ee;Hooks=re;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const r=s;for(const i of r.header)n=n.concat(this.walkTokens(i.tokens,t));for(const i of r.rows)for(const c of i)n=n.concat(this.walkTokens(c.tokens,t));break}case"list":{const r=s;n=n.concat(this.walkTokens(r.items,t));break}default:{const r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>
45{const c=r[i].flat(1/0);n=n.concat(this.walkTokens(c,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const i=t.renderers[r.name];i?t.renderers[r.name]=function(...c){let o=r.renderer.apply(this,c);return o===!1&&(o=i.apply(this,c)),o}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),s.extensions=t),n.renderer){const r=this.defaults.renderer||new se(this.defaults);for(const i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const c=i,o=n.renderer[c],p=r[c];r[c]=(...u)=>{let d=o.apply(r,u);return d===!1&&(d=p.apply(r,u)),d||""}}s.renderer=r}if(n.tokenizer){const r=this.defaults.tokenizer||new ee(this.defaults);for(const i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const c=i,o=n.tokenizer[c],p=r[c];r[c]=(...u)=>{let d=o.apply(r,u);return d===!1&&(d=p.apply(r,u)),d}}s.tokenizer=r}if(n.hooks){const r=this.defaults.hooks||new re;for(const i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const c=i,o=n.hooks[c],p=r[c];re.passThroughHooks.has(i)?r[c]=u=>{if(this.defaults.async)return Promise.resolve(o.call(r,u)).then(h=>p.call(r,h));const d=o.call(r,u);return p.call(r,d)}:r[c]=(...u)=>{let d=o.apply(r,u);return d===!1&&(d=p.apply(r,u)),d}}s.hooks=r}if(n.walkTokens){const r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(c){let o=[];return o.push(i.call(this,c)),r&&(o=o.concat(r.call(this,c))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return R.lex(e,t??this.defaults)}parser(e,t){return A.parse(e,t??this.defaults)}#e(e,t){return(n,s)=>{const r={...s},i={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const c=this.#t(!!i.silent,!!i.async);if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(o=>e(o,i)).then(o=>i.hooks?i.hooks.processAllTokens(o):o).then(o=>i.walkTokens?Promise.all(this.walkTokens(o,i.walkTokens)).then(()=>o):o).then(o=>t(o,i)).then(o=>i.hooks?i.hooks.postprocess(o):o).catch(c);try{i.hooks&&(n=i.hooks.preprocess(n));let o=e(n,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let p=t(o,i);return i.hooks&&(p=i.hooks.postprocess(p)),p}catch(o){return c(o)}}}#t(e,t){return n=>{if(n.message+=`
46Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+C(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}}const D=new ni;function m(l,e){return D.parse(l,e)}m.options=m.setOptions=function(l){return D.setOptions(l),m.defaults=D.defaults,vt(m.defaults),m},m.getDefaults=ye,m.defaults=L,m.use=function(...l){return D.use(...l),m.defaults=D.defaults,vt(m.defaults),m},m.walkTokens=function(l,e){return D.walkTokens(l,e)},m.parseInline=D.parseInline,m.Parser=A,m.parser=A.parse,m.Renderer=se,m.TextRenderer=Ie,m.Lexer=R,m.lexer=R.lex,m.Tokenizer=ee,m.Hooks=re,m.parse=m,m.options,m.setOptions,m.use,m.walkTokens,m.parseInline,A.parse,R.lex;const le=l=>{if(!l)return!1;try{return new URL(l).hostname.includes("vistaprint")}catch{return!0}},ii=(l,e,t)=>l==="product"?e?.selectedProduct?.mpvId??"":l==="category"?t?.selectedCategory?.mpvId??"":"",si=({automaticTags:l,calloutDetails:e,allAvailableTags:t,shouldHideAutomaticTags:n,automaticTagsToBeHidden:s})=>{const r=e?.skin&&e?.variant&&e?.text?.value,i=n&&(!s||s.length===0),c=n&&s?.includes(t?.default?.id??"");if(!l&&r)return!0;const o=t?.default?.value&&t?.default?.skin&&t?.default?.variant;return!!(!i&&!c&&o&&l)},ri=({automaticTags:l,allAvailableTags:e,shouldHideAutomaticTags:t,automaticTagsToBeHidden:n})=>{const s=t&&(!n||n.length===0),r=t&&n?.includes(e?.belowTile?.id??""),i=e?.belowTile?.value&&e?.belowTile?.skin&&e?.belowTile?.variant;return!s&&!r&&i&&l},li=l=>{const e=[];return l?.forEach(({src:t,breakpoint:n})=>{e?.push(t+" "+n+"w")}),e?.join(", ")},ai=l=>{const{tileProps:e,customTileProps:t,extraProps:n={},id:s,clickHandler:r,hideDescription:i}=l,{tileDetails:c={},calloutDetails:o,secondaryLink:p,productsList:u,type:d,category:h,automaticTags:f,allAvailableTags:w,selections:y}=e,{image:T,header:S,description:I,promoCode:E,link:b,urlText:$,formattedHeader:ae}=c,{link:U,label:oe}=p||{},{secondaryLinkConfig:B,imageOverrideProps:ce,enableCampaignCallouts:W,enableCouponCallouts:Ae,shouldHideAutomaticTags:Y,automaticTagsToBeHidden:ue,showPrice:Zt=!1}=n,{locale:he,tenant:Ht}=G(),Pe=T?.cloudinaryImage&&T?.cloudinaryImage?.length>0?li(T.cloudinaryImage):"",N=ii(d,u,h),{translate:vi}=yn(),Ot=(v,_,Ii)=>{if(r){const{href:Ri,actionId:Ai,trackingId:Pi}=_;r(v,{destinationUrl:Ri,linkIdentifier:Ai??Pi,ctaPosition:Ii,tileHeader:S?.value??null,tileImage:Pe?.split(" ")[0]??null})}},Si=o?{...o,skin:o.skin??void 0,variant:o.variant??void 0}:void 0,qt=w?Object.fromEntries(Object.entries(w).map(([v,_])=>_?[v,{..._,skin:_.skin??void 0,variant:_.variant??void 0}]:[v,_])):void 0,Ei=si({automaticTags:f,calloutDetails:Si,allAvailableTags:qt,shouldHideAutomaticTags:Y,automaticTagsToBeHidden:ue}),$i=ri({automaticTags:f,allAvailableTags:qt,shouldHideAutomaticTags:Y,automaticTagsToBeHidden:ue}),jt={"data-testid":"standard-tile-cta",to:b?.href,covering:!0,skin:"unstyled",className:"full-tile-link",target:le(b?.href)?void 0:"_blank",rel:le(b?.href)?void 0:"noopener noreferrer",onClick:v=>Ot(v,b,1),style:{position:"static"}};return k.createElement(Ue,{...t,"data-testid":"standard-tile-wrapper",id:s},k.createElement(Be,null,Ei&&k.createElement(Me,{skin:o?.skin??w?.default?.skin??void 0,variant:o?.variant??w?.default?.variant},o?.text?.value??w?.default.value),W&&N&&k.createElement(ut,{product:N})),k.createElement(Ne,null,k.createElement(Ze,{aspectRatio:1,src:Pe?.split(" ")[0],srcSet:Pe,alt:T?.altTextOverride??"",...ce})),k.createElement(He,null,k.createElement(Oe,null,(()=>{const v={__html:m.parseInline(ae?.value??S?.value??b?.text??"",{async:!1})};return b?.href&&!$?.value?k.createElement(Z,{...jt},k.createElement(ge,{dangerouslySetInnerHTML:v})):k.createElement(ge,{dangerouslySetInnerHTML:v})})()),Zt&&N&&k.createElement(qe,{"data-testid":"standard-tile-price"},k.createElement(xt,{mpvId:N,selections:y||{},isTile:!0})),!i&&I?.value&&k.createElement(je,{dangerouslySetInnerHTML:{__html:m.parseInline(I?.value,{async:!1})}}),E?.value&&k.createElement(Fe,null,k.createElement(Ke,null,`${vi("promotionalCode")}`),k.createElement(Qe,null,E.value)),U?.href&&k.createElement(ke,null,k.createElement(Z,{"data-testid":"secondary-link",href:U?.href,...B,target:le(U?.href)?void 0:"_blank",rel:le(U?.href)?void 0:"noopener noreferrer",onClick:v=>Ot(v,U,2)},oe?.value??U?.text)),$i&&k.createElement(We,{textColor:"subtle",fontSkin:"body-standard"},w?.below_tile?.value),b?.href&&$?.value&&k.createElement(Ye,{render:({children:v,..._})=>k.createElement(Z,{...jt,..._},v)},$.value),Ae&&N&&k.createElement(ke,null,k.createElement(pt,{baseConfig:{tenant:Ht??"",locale:he??"",pageId:dt.Home,developmentMode:!0}},k.createElement(ft,{tenant:Ht,locale:he,mpvId:N,selections:y||{},isTile:!0})))))},oi=l=>{const[e,t]=V(!1);return de(()=>{const n=Tn(l);n?.isValid||(console.error("Tile validation error: "+n?.messages?.join(". ")),t(!0))},[]),e?null:k.createElement(st,{value:{userContext:{tenant:"vistaprint",locale:l.locale},trackedUserContext:[{tenant:"vistaprint",locale:l.locale}]}},k.createElement(fe,null,k.createElement(wn,{defaultLocale:l.locale},k.createElement(ai,{...l}))))},ci=(l,e,t)=>{const n=l.template?.tileDetails?.header?.value??"",s=l.template?.tileDetails?.link?.href??"";return{tileHeader:n,destinationUrl:s,position:t,pageZone:e,productKey:l.template?.productKey??"",mpvId:l.template?.productsList?.selectedProduct?.mpvId,sourcePagePath:typeof window<"u"?window.location.pathname:"/"}},Re=l=>{const{data:e,position:t,tileSkin:n,trackingPageZone:s,enableCampaignCallouts:r,showPrice:i,locale:c}=l,{template:o}=e,p=X();return o?g(oi,{tileProps:o,locale:c,clickHandler:d=>{const h=ci(e,s,t);if(!h)return;const f=xe(gt(h),p,be,e.template?.tileDetails?.link?.href);f&&f(d)},customTileProps:{skin:n},extraProps:{enableCampaignCallouts:r,showPrice:!!i,enableCouponCallouts:!!i,shouldHideAutomaticTags:!0,primaryLinkConfig:{skin:"unstyled"}},hideDescription:!o.tileDetails?.description?.key}):(p.warn("Home Page Tile component: Missing template",{data:e}),null)}
46,ui="adaptive-carousel-slide-navigation-internal.accessible-text-for-next-button",hi="adaptive-carousel-slide-navigation-internal.accessible-text-for-previous-button",pi="adaptive-carousel-slide-picker-internal.accessible-text-for-button",di=l=>{const{tiles:e,slidesToShow:t,tileSkin:n,loadType:s,enableCampaignCallouts:r,showPrice:i,trackingPageZone:c,id:o,sectionHeader:p,carouselA11yText:u,locale:d}=l,{a11yCarouselLabel:h,a11yCarouselRole:f,a11yCarouselSlide:w,a11yCarouselNext:y,a11yCarouselPrevious:T,a11yCarouselDotsTemplate:S}=u,I=h?`${h}: ${p}`:void 0,E={};return y&&(E[ui]=`${p}: ${y}`),T&&(E[hi]=`${p}: ${T}`),S&&(E[pi]=`${p}: ${S}`),g(H,{children:g(O,{span:12,children:g(Ve,{locale:d,translations:E,children:g(Ge,{id:o.replaceAll(" ",""),"aria-label":I,"aria-roledescription":f,slidesToShow:t,children:e.map((b,$)=>g(Xe,{"data-testid":"slick-item","aria-roledescription":w,children:g(Re,{loadType:s,data:b,position:$+1,trackingPageZone:c,enableCampaignCallouts:r,showPrice:i,tileSkin:n,locale:d,marginBottom:0})},`${b.contentful_id??"tile"}-${$}`))})})})})},fi=12,gi=l=>{const{tiles:e,visibleTiles:t,tileSkin:n,loadType:s,enableCampaignCallouts:r,showPrice:i,trackingPageZone:c,locale:o}=l,p=Math.round(fi/t);return g(H,{as:"ul",children:e.map((u,d)=>g(O,{as:"li",span:p,children:g(Re,{loadType:s,data:u,position:d+1,trackingPageZone:c,enableCampaignCallouts:r,showPrice:i,tileSkin:n,locale:o,marginBottom:0})},d))})},ki=(l,e)=>l+1>=e-1,mi=l=>{const{tiles:e,tileSkin:t,enableCampaignCallouts:n,showPrice:s,loadType:r,trackingPageZone:i,locale:c}=l,o=e.length%2===0?e:e.slice(0,e.length-1);return g(H,{as:"ul",children:o.map((p,u)=>g(O,{as:"li",span:6,spanXs:6,spanSm:6,children:g(Re,{loadType:r,data:p,position:u+1,trackingPageZone:i,enableCampaignCallouts:n,showPrice:s,tileSkin:t,locale:c,marginBottom:ki(u,o.length)?0:void 0})},u))})},xi="product",Nt=(l,e)=>!l||!e?.length?!1:e.every(t=>t?.template?.type===xi),bi=l=>({xs:2,sm:2,md:l,lg:l,xl:l}),wi=l=>({xs:2,sm:2,md:l,lg:l,xl:l}),yi=l=>{const{tileData:e,tileImageLoadingStrategy:t,tileTrackingZone:n,id:s,tileRow:r,enableCampaignCallouts:i,enablePrice:c,gridToggle:o,carouselA11yText:p,locale:u}=l,{sectionHeader:d,tileList:h,tileSkin:f,callToAction:w,tileLayout:y}=e,T=X();if(!h?.length)return g(_e,{});const S=G(),I=r?`${n}_${d}_Row${r}`:n,{sourcePagePath:E}=ot(),b=w?.[0]?.targetUrl?w[0]:void 0,$=!!b,ae=b?b.targetUrl.contentfulUrl:"",oe={ctaCopy:b?.text,sourcePagePath:E,ctaUrl:ae,sectionHeader:d,row:Number(r),section:n},B=y||6,ce=h.length>B,W=Nt(c,h);if(S.experiments&&S.experiments.homepage_cluster_tile_component==="test"&&["1","2","4"].includes(r))return null;const Ae=ce?bi(B):wi(B),Y=()=>g(di,{loadType:t,enableCampaignCallouts:i,showPrice:W,tiles:h,trackingPageZone:I,id:s,tileSkin:f,visibleTiles:B,slidesToShow:Ae,carouselA11yText:p,sectionHeader:d,locale:u}),ue=Y,he=ce?Y:()=>g(gi,{loadType:t,enableCampaignCallouts:i,showPrice:W,tiles:h,trackingPageZone:I,tileSkin:f,visibleTiles:B,locale:u});return g(Je,{mb:"between-sections",children:g(et,{children:pe(tt,{children:[d&&g(H,{children:g(O,{span:12,onClick:$?xe(mt(oe),T,be,ae):void 0,...kt(oe),children:pe(nt,{alignItems:"baseline",flexWrap:"wrap",mb:"6",children:[d.trim().length>0&&g(it,{margin:0,fontSkin:"title-section",mb:"0",children:d}),b&&g(Z,{ml:"5",href:b.targetUrl.contentfulUrl,skin:"cta",style:{whiteSpace:"nowrap"},children:b.text})]})})}),g(me,{md:!0,lg:!0,xl:!0,children:o?g(mi,{loadType:t,enableCampaignCallouts:i,showPrice:W,tiles:h,trackingPageZone:I,id:s,tileSkin:f,locale:u}):g(ue,{})}),g(me,{xs:!0,sm:!0,children:g(he,{})})]})})})},Ti=l=>{const[e,t]=V(!1);de(()=>{t(typeof window<"u"&&window.location.hash!=="")},[]);const n=Nt(l.enablePrice,l.tileRowData?.tiles),s=G();rt([z.core,z.grid,z.carousel,z.adaptiveCarousel,z.standardTile,z.utility,...yt(s)?wt:[],...n?bt:[]]);const r=X(),i=lt();r.setContext({...l,name:"feature-tile-row-fragment"}),r.info("Rendering Feature Tile Row Fragment"),Ci(l,i);const c=typeof window<"u"?window.location.search:"",o=l.tileRowData&&!!l.tileRowData.tiles?.length,p=l.tileRowData?.tiles;
46return g(at,{children:g(Tt,{contentfulMetadata:l.contentfulMetadata,availability:l.debugAvailability,search:c,explanation:l.explanation,children:g(ct,{canonicalUrl:"https://www.vistaprint.com/",children:g(ht,{tenant:l.tenant,locale:l.locale,children:g(fe,{children:o&&g(yi,{tileImageLoadingStrategy:l.eagerlyLoad||e?"eager":"lazy",tileData:{...l.tileRowData,tileList:p},tileRow:l.tileRow,tileTrackingZone:l.tileTrackingZone,id:l.tileRowId,enableCampaignCallouts:l.enableCampaignCallouts,enablePrice:l.enablePrice,gridToggle:l.gridToggle,carouselA11yText:l.carouselA11yText,locale:l.locale})})})})})})};function Ci(l,e){l.debugAvailability?.experimentKey&&l.debugAvailability.variationKey&&e({type:"experiment",name:l.debugAvailability.experimentKey,variation:l.debugAvailability.variationKey}),l.debugAvailability?.decision&&e({type:"treatment",name:l.debugAvailability.decision}),l.debugAvailability?.merchandisingCampaign&&e({type:"campaign",name:l.debugAvailability.merchandisingCampaign})}const zi=Ft("mount",async(l,e,t)=>ze(g(Ti,{...e}),l,t))})}}));
47//# sourceMappingURL=fragment-homepage-fragments-feature-tile-row-D9pQPASG.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.