From e3f99e071dee64f9d9da5ea2cfa3ee671d120723 Mon Sep 17 00:00:00 2001 From: malt9830 Date: Thu, 4 Jan 2024 09:07:49 +0100 Subject: [PATCH] Updates --- assets/{index-d2335e41.js => index-a2ed3e14.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-d2335e41.js => index-a2ed3e14.js} (99%) diff --git a/assets/index-d2335e41.js b/assets/index-a2ed3e14.js similarity index 99% rename from assets/index-d2335e41.js rename to assets/index-a2ed3e14.js index 11a057e..9bdf60f 100644 --- a/assets/index-d2335e41.js +++ b/assets/index-a2ed3e14.js @@ -24,4 +24,4 @@ __p += '`),be&&(P+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+P+`return __p -}`;var he=Jc(function(){return Te(d,G+"return "+P).apply(i,_)});if(he.source=P,rl(he))throw he;return he}function j1(e){return Se(e).toLowerCase()}function ev(e){return Se(e).toUpperCase()}function tv(e,n,s){if(e=Se(e),e&&(s||n===i))return rf(e);if(!e||!(n=Tt(n)))return e;var u=qt(e),c=qt(n),d=sf(u,c),_=of(u,c)+1;return Ln(u,d,_).join("")}function nv(e,n,s){if(e=Se(e),e&&(s||n===i))return e.slice(0,uf(e)+1);if(!e||!(n=Tt(n)))return e;var u=qt(e),c=of(u,qt(n))+1;return Ln(u,0,c).join("")}function rv(e,n,s){if(e=Se(e),e&&(s||n===i))return e.replace(no,"");if(!e||!(n=Tt(n)))return e;var u=qt(e),c=sf(u,qt(n));return Ln(u,c).join("")}function iv(e,n){var s=pe,u=$e;if(He(n)){var c="separator"in n?n.separator:c;s="length"in n?ce(n.length):s,u="omission"in n?Tt(n.omission):u}e=Se(e);var d=e.length;if(mr(e)){var _=qt(e);d=_.length}if(s>=d)return e;var y=s-vr(u);if(y<1)return u;var C=_?Ln(_,0,y).join(""):e.slice(0,y);if(c===i)return C+u;if(_&&(y+=C.length-y),il(c)){if(e.slice(y).search(c)){var M,O=C;for(c.global||(c=wo(c.source,Se(Iu.exec(c))+"g")),c.lastIndex=0;M=c.exec(O);)var P=M.index;C=C.slice(0,P===i?y:P)}}else if(e.indexOf(Tt(c),y)!=y){var $=C.lastIndexOf(c);$>-1&&(C=C.slice(0,$))}return C+u}function sv(e){return e=Se(e),e&&_d.test(e)?e.replace(bu,Fp):e}var ov=Ir(function(e,n,s){return e+(s?" ":"")+n.toUpperCase()}),ll=Xf("toUpperCase");function Zc(e,n,s){return e=Se(e),n=s?i:n,n===i?Mp(e)?Dp(e):wp(e):e.match(n)||[]}var Jc=ge(function(e,n){try{return At(e,i,n)}catch(s){return rl(s)?s:new le(s)}}),lv=dn(function(e,n){return Pt(n,function(s){s=tn(s),an(e,s,tl(e[s],e))}),e});function uv(e){var n=e==null?0:e.length,s=j();return e=n?We(e,function(u){if(typeof u[1]!="function")throw new Ft(a);return[s(u[0]),u[1]]}):[],ge(function(u){for(var c=-1;++cwe)return[];var s=Xe,u=rt(e,Xe);n=j(n),e-=Xe;for(var c=mo(u,n);++s0||n<0)?new ye(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),n!==i&&(n=ce(n),s=n<0?s.dropRight(-n):s.take(n-e)),s)},ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ye.prototype.toArray=function(){return this.take(Xe)},jt(ye.prototype,function(e,n){var s=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),c=h[u?"take"+(n=="last"?"Right":""):n],d=u||/^find/.test(n);c&&(h.prototype[n]=function(){var _=this.__wrapped__,y=u?[1]:arguments,C=_ instanceof ye,M=y[0],O=C||fe(_),P=function(ve){var be=c.apply(h,Tn([ve],y));return u&&$?be[0]:be};O&&s&&typeof M=="function"&&M.length!=1&&(C=O=!1);var $=this.__chain__,G=!!this.__actions__.length,te=d&&!$,he=C&&!G;if(!d&&O){_=he?_:new ye(this);var ne=e.apply(_,y);return ne.__actions__.push({func:os,args:[P],thisArg:i}),new Bt(ne,$)}return te&&he?e.apply(this,y):(ne=this.thru(P),te?u?ne.value()[0]:ne.value():ne)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Li[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var c=arguments;if(u&&!this.__chain__){var d=this.value();return n.apply(fe(d)?d:[],c)}return this[s](function(_){return n.apply(fe(_)?_:[],c)})}}),jt(ye.prototype,function(e,n){var s=h[n];if(s){var u=s.name+"";Oe.call(br,u)||(br[u]=[]),br[u].push({name:n,func:s})}}),br[ji(i,se).name]=[{name:"wrapper",func:i}],ye.prototype.clone=sg,ye.prototype.reverse=og,ye.prototype.value=lg,h.prototype.at=N_,h.prototype.chain=D_,h.prototype.commit=W_,h.prototype.next=U_,h.prototype.plant=H_,h.prototype.reverse=k_,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=K_,h.prototype.first=h.prototype.head,zr&&(h.prototype[zr]=$_),h},yr=Wp();qn?((qn.exports=yr)._=yr,uo._=yr):je._=yr}).call(oi)})(Ds,Ds.exports);var Na=Ds.exports;const Xx=[{title:"Angel of Christmas",cover:"angel-of-christmas",description:"After she finally gets the chance to pen her very first article, an aspiring newspaper writer digs into her family history to find the perfect Christmas story.",year:2015},{title:"A Perfect Christmas",cover:"a-perfect-christmas",description:"A newlywed couple prepare to host their first family Christmas together, but things don't go according to plan.",year:2016},{title:"A Wish for Christmas",cover:"a-wish-for-christmas",description:"Sara Thomas is the type of woman who prefers to sit on the sidelines at work, but when her big idea for a Christmas initiative is stolen, she makes a wish to Santa that she'll finally have the courage to stand up for herself.",year:2016},{title:"Every Christmas Has a Story",cover:"every-christmas-has-a-story",description:"While on air, a TV personality accidentally admits she hates Christmas. When she goes to a small town to film a special to repair her image, the Christmas spirit begins to change her life.",year:2016},{title:"Christmas Cookies",cover:"christmas-cookies",description:"A corporate agent is sent to a small town to buy a cookie company and shut down its factory. When she starts falling in love with the factory's owner, the town's Christmas spirit over takes her.",year:2016},{title:"A December Bride",cover:"a-december-bride",description:"A holiday wedding brings no joy to the bride's cousin, who was literally left by the groom right at the altar. But she might find her true love there when she gains a fake fiancé.",year:2016},{title:"Broadcasting Christmas",cover:"broadcasting-christmas",description:"Two news broadcasters who previously were in love fight for a position as a morning talk show host that they both want, ultimately finding what made them like each other so much in the first place.",year:2016},{title:"Christmas in Homestead",cover:"christmas-in-homestead",description:"Life is turned upside down for a small town mayor when a famous actress arrives to shoot her new Christmas movie.",year:2016},{title:"Finding Santa",cover:"finding-santa",description:"Grace is thrilled to be taking over the town's Christmas parade, but when the man playing St. Nick breaks his arm, she needs to find a replacement, even if the replacement is unwilling.",year:2017},{title:"A Gift to Remember",cover:"a-gift-to-remember",description:"A handsome stranger develops amnesia after a bibliophile crashes into him on her bicycle.",year:2017},{title:"The Mistletoe Inn",cover:"the-mistletoe-inn",description:"An aspiring novelist signs up for a week-long writing workshop at the Mistletoe Inn.",year:2017},{title:"The Christmas Cottage",cover:"the-christmas-cottage",description:"While helping to organize her best friend's Christmas wedding, a successful designer reconnects with an old flame.",year:2017},{title:"Sharing Christmas",cover:"sharing-christmas",description:"Stephanie Nichols takes over the Christmas Shop, but a property developer has bought the building and is terminating the retail leases. She finds help and love from Michael Kilpatrick, who works for the developer.",year:2017},{title:"Christmas Encore",cover:"christmas-encore",description:"A struggling actress auditions for the lead role in a theater production of 'A Christmas Carol'.",year:2017},{title:"Christmas on Honeysuckle Lane",cover:"christmas-on-honeysuckle-lane",description:"Emma returns home to celebrate Christmas for the last time with her siblings in the house they grew up in. After their parents' recent passing, the siblings reluctantly agree to sell the family home on Honeysuckle Lane.",year:2018},{title:"Once Upon a Christmas Miracle",cover:"once-upon-a-christmas-miracle",description:"This holiday romance is based on the incredible story about organ donor Chris Dempsey and recipient Heather Krueger, who were brought into one another's lives by a transplant surgery that led to a miraculous romance.",year:2018},{title:"Angel Falls: A Novel Holiday",cover:"angel-falls-a-novel-holiday",description:"A book editor must work with a former rival to help a potential writer find her way. He reminds all of them about the Christmas spirit and the value of community.",year:2019},{title:"Christmas Under the Stars",cover:"christmas-under-the-stars",description:"A Christmas-tree lot helps two people rediscover their holiday spirit.",year:2019},{title:"Christmas on My Mind",cover:"christmas-on-my-mind",description:"When Lucy wakes up with a wedding dress in hand, she believes that she is late to her wedding with her ex-boyfriend Zach. However, she has no recollection of the past 2 years, including the fact that she is engaged to another man.",year:2019},{title:"Merry & Bright",cover:"merry-and-bright",description:"Cate's mom is setting up dates for her CEO daughter. When she meets Gabe a week before Christmas, she assumes, he's a date, but he's a corporate recovery consultant for her candy cane company. He's also single.",year:2019},{title:"Holiday Hearts",cover:"holiday-hearts",description:"While planning an annual Christmas party, Peyton is forced together with Ben to care for a friend's daughter. While finding their Christmas spirit, will there be some romance along the way.",year:2019},{title:"A Blue Ridge Mountain Christmas",cover:"a-blue-ridge-mountain-christmas",description:"Hotel manager Willow returns to her stunning Virginia hometown to help her sister plan a Christmas wedding at the inn her family once owned. She must work with current owner and single dad David, who wants to let go of the past.",year:2019},{title:"Nostalgic Christmas",cover:"nostalgic-christmas",description:"Anne seems to have it all as a driven toy buyer in New York City, but her father's retirement signaling the closing of the town's beloved toy store brings the city girl back to her small-town roots.",year:2019},{title:"Time for You to Come Home for Christmas",cover:"time-for-you-to-come-home-for-christmas",description:"A recent widow travels with her son to her Virginia hometown for Christmas. On the way they meet a man who is heading to the same destination. As they continue to spend time together, the pair grows closer.",year:2019},{title:"Christmas in Rome",cover:"christmas-in-rome",description:"Angela, an American tour guide in Rome, agrees to teach a culture-shocked businessman named Oliver about the heart of Rome at Christmas.",year:2019},{title:"Christmas She Wrote",cover:"christmas-she-wrote",description:"Kaleigh is fired as popular column writer by the new editor at The Globe in NYC. She heads to her sister near Tahoe, CA, and helps in her bakery the weeks before Xmas. The single editor shows up - to right a wrong.",year:2020}],Vx={class:"text-white min-h-[100dvh] grid place-content-center p-4 pt-20"},Qx={class:"flex flex-col gap-4"},jx=cr({__name:"MemoryGame",setup(t){const r=Ht(!0),i=Ht(10),o=Ht(Xx),l=Ht([]),f=Ht(null),a=Ht(null),p=Ht([]),g=Ht(0),v=Ht(0),b=Ht(!1);function I(D){!f.value||a.value?(f.value=D,a.value=null):f.value.id!==D.id&&(a.value=D,g.value++,f.value.title===D.title?(p.value.push(D.title),f.value=null,a.value=null,p.value.length===i.value&&(b.value=!0,r.value=!0,(!v.value||g.value{l.value=Na.shuffle(Na.shuffle(o.value).slice(0,i.value).flatMap(K=>[K,K])).map((K,N)=>({...K,id:N})),r.value=!1},D)}return As(v,()=>localStorage.setItem("christmatch/record",String(v.value))),uu(()=>{localStorage.getItem("christmatch/record")&&(v.value=parseInt(localStorage.getItem("christmatch/record"))),E()}),(D,K)=>{const N=Jx,k=$x;return dt(),wn(st,null,[Me("main",Vx,[Me("section",Qx,[Me("div",{class:Ai([{"pointer-events-none":xt(r)},"grid grid-cols-5 gap-2 sm:gap-4"])},[(dt(!0),wn(st,null,uw(xt(l),(se,oe)=>(dt(),kr(N,{key:oe,movie:se,firstMovie:xt(f),secondMovie:xt(a),guessedMovies:xt(p),selectMovie:I},null,8,["movie","firstMovie","secondMovie","guessedMovies"]))),128))],2)])]),Be(k,{onCloseModal:K[0]||(K[0]=se=>b.value=!1),showVictoryModal:xt(b),guesses:xt(g),record:xt(v)},null,8,["showVictoryModal","guesses","record"])],64)}}}),eb=Me("h2",{class:"font-title text-5xl mb-2"},"Instructions",-1),tb=Me("section",{class:"text-lg sm:text-xl text-center space-y-2"},[Me("p",null,"20 cards are laid out in the grid, those being 10 pairs of Hallmark christmas movie covers."),Me("p",null,"Start by clicking a card to flip it over and reveal the movie, then click a new card to reveal it and see if they match."),Me("p",null,"As you progress the cards, you will reveal more and more movies until you will be able to match them."),Me("p",null,"But will you be able to distinguish these unique christmas movie covers and match them all?")],-1),nb=cr({__name:"InstructionsModal",props:{showInstructionsModal:{type:Boolean}},emits:["closeModal"],setup(t){return(r,i)=>{const o=Vh;return dt(),kr(o,{onCloseModal:i[0]||(i[0]=l=>r.$emit("closeModal")),showModal:r.showInstructionsModal},{default:vi(()=>[eb,tb]),_:1},8,["showModal"])}}}),pi=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vs=(t,r,i,o="")=>{const l=t.split(":");if(t.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;o=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const p=l.pop(),g=l.pop(),v={provider:l.length>0?l[0]:o,prefix:g,name:p};return r&&!Ss(v)?null:v}const f=l[0],a=f.split("-");if(a.length>1){const p={provider:o,prefix:a.shift(),name:a.join("-")};return r&&!Ss(p)?null:p}if(i&&o===""){const p={provider:o,prefix:"",name:f};return r&&!Ss(p,i)?null:p}return null},Ss=(t,r)=>t?!!((t.provider===""||t.provider.match(pi))&&(r&&t.prefix===""||t.prefix.match(pi))&&t.name.match(pi)):!1,Qh=Object.freeze({left:0,top:0,width:16,height:16}),Ws=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qs=Object.freeze({...Qh,...Ws}),kl=Object.freeze({...Qs,body:"",hidden:!1});function rb(t,r){const i={};!t.hFlip!=!r.hFlip&&(i.hFlip=!0),!t.vFlip!=!r.vFlip&&(i.vFlip=!0);const o=((t.rotate||0)+(r.rotate||0))%4;return o&&(i.rotate=o),i}function Da(t,r){const i=rb(t,r);for(const o in kl)o in Ws?o in t&&!(o in i)&&(i[o]=Ws[o]):o in r?i[o]=r[o]:o in t&&(i[o]=t[o]);return i}function ib(t,r){const i=t.icons,o=t.aliases||Object.create(null),l=Object.create(null);function f(a){if(i[a])return l[a]=[];if(!(a in l)){l[a]=null;const p=o[a]&&o[a].parent,g=p&&f(p);g&&(l[a]=[p].concat(g))}return l[a]}return(r||Object.keys(i).concat(Object.keys(o))).forEach(f),l}function sb(t,r,i){const o=t.icons,l=t.aliases||Object.create(null);let f={};function a(p){f=Da(o[p]||l[p],f)}return a(r),i.forEach(a),Da(t,f)}function jh(t,r){const i=[];if(typeof t!="object"||typeof t.icons!="object")return i;t.not_found instanceof Array&&t.not_found.forEach(l=>{r(l,null),i.push(l)});const o=ib(t);for(const l in o){const f=o[l];f&&(r(l,sb(t,l,f)),i.push(l))}return i}const ob={provider:"",aliases:{},not_found:{},...Qh};function Cl(t,r){for(const i in r)if(i in t&&typeof t[i]!=typeof r[i])return!1;return!0}function ed(t){if(typeof t!="object"||t===null)return null;const r=t;if(typeof r.prefix!="string"||!t.icons||typeof t.icons!="object"||!Cl(t,ob))return null;const i=r.icons;for(const l in i){const f=i[l];if(!l.match(pi)||typeof f.body!="string"||!Cl(f,kl))return null}const o=r.aliases||Object.create(null);for(const l in o){const f=o[l],a=f.parent;if(!l.match(pi)||typeof a!="string"||!i[a]&&!o[a]||!Cl(f,kl))return null}return r}const Wa=Object.create(null);function lb(t,r){return{provider:t,prefix:r,icons:Object.create(null),missing:new Set}}function fr(t,r){const i=Wa[t]||(Wa[t]=Object.create(null));return i[r]||(i[r]=lb(t,r))}function _u(t,r){return ed(r)?jh(r,(i,o)=>{o?t.icons[i]=o:t.missing.add(i)}):[]}function ub(t,r,i){try{if(typeof i.body=="string")return t.icons[r]={...i},!0}catch{}return!1}let bi=!1;function td(t){return typeof t=="boolean"&&(bi=t),bi}function fb(t){const r=typeof t=="string"?Vs(t,!0,bi):t;if(r){const i=fr(r.provider,r.prefix),o=r.name;return i.icons[o]||(i.missing.has(o)?null:void 0)}}function cb(t,r){const i=Vs(t,!0,bi);if(!i)return!1;const o=fr(i.provider,i.prefix);return ub(o,i.name,r)}function ab(t,r){if(typeof t!="object")return!1;if(typeof r!="string"&&(r=t.provider||""),bi&&!r&&!t.prefix){let l=!1;return ed(t)&&(t.prefix="",jh(t,(f,a)=>{a&&cb(f,a)&&(l=!0)})),l}const i=t.prefix;if(!Ss({provider:r,prefix:i,name:"a"}))return!1;const o=fr(r,i);return!!_u(o,t)}const nd=Object.freeze({width:null,height:null}),rd=Object.freeze({...nd,...Ws}),hb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,db=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ua(t,r,i){if(r===1)return t;if(i=i||100,typeof t=="number")return Math.ceil(t*r*i)/i;if(typeof t!="string")return t;const o=t.split(hb);if(o===null||!o.length)return t;const l=[];let f=o.shift(),a=db.test(f);for(;;){if(a){const p=parseFloat(f);isNaN(p)?l.push(f):l.push(Math.ceil(p*r*i)/i)}else l.push(f);if(f=o.shift(),f===void 0)return l.join("");a=!a}}const pb=t=>t==="unset"||t==="undefined"||t==="none";function gb(t,r){const i={...Qs,...t},o={...rd,...r},l={left:i.left,top:i.top,width:i.width,height:i.height};let f=i.body;[i,o].forEach(K=>{const N=[],k=K.hFlip,se=K.vFlip;let oe=K.rotate;k?se?oe+=2:(N.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),N.push("scale(-1 1)"),l.top=l.left=0):se&&(N.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),N.push("scale(1 -1)"),l.top=l.left=0);let ee;switch(oe<0&&(oe-=Math.floor(oe/4)*4),oe=oe%4,oe){case 1:ee=l.height/2+l.top,N.unshift("rotate(90 "+ee.toString()+" "+ee.toString()+")");break;case 2:N.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:ee=l.width/2+l.left,N.unshift("rotate(-90 "+ee.toString()+" "+ee.toString()+")");break}oe%2===1&&(l.left!==l.top&&(ee=l.left,l.left=l.top,l.top=ee),l.width!==l.height&&(ee=l.width,l.width=l.height,l.height=ee)),N.length&&(f=''+f+"")});const a=o.width,p=o.height,g=l.width,v=l.height;let b,I;a===null?(I=p===null?"1em":p==="auto"?v:p,b=Ua(I,g/v)):(b=a==="auto"?g:a,I=p===null?Ua(b,v/g):p==="auto"?v:p);const E={},D=(K,N)=>{pb(N)||(E[K]=N.toString())};return D("width",b),D("height",I),E.viewBox=l.left.toString()+" "+l.top.toString()+" "+g.toString()+" "+v.toString(),{attributes:E,body:f}}const _b=/\sid="(\S+)"/g,mb="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let vb=0;function yb(t,r=mb){const i=[];let o;for(;o=_b.exec(t);)i.push(o[1]);if(!i.length)return t;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(f=>{const a=typeof r=="function"?r(f):r+(vb++).toString(),p=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+p+')([")]|\\.[a-z])',"g"),"$1"+a+l+"$3")}),t=t.replace(new RegExp(l,"g"),""),t}const Kl=Object.create(null);function wb(t,r){Kl[t]=r}function ql(t){return Kl[t]||Kl[""]}function mu(t){let r;if(typeof t.resources=="string")r=[t.resources];else if(r=t.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const vu=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],Ms=[];for(;li.length>0;)li.length===1||Math.random()>.5?Ms.push(li.shift()):Ms.push(li.pop());vu[""]=mu({resources:["https://api.iconify.design"].concat(Ms)});function xb(t,r){const i=mu(r);return i===null?!1:(vu[t]=i,!0)}function yu(t){return vu[t]}const bb=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let $a=bb();function Cb(t,r){const i=yu(t);if(!i)return 0;let o;if(!i.maxURL)o=0;else{let l=0;i.resources.forEach(a=>{l=Math.max(l,a.length)});const f=r+".json?icons=";o=i.maxURL-l-i.path.length-f.length}return o}function Ab(t){return t===404}const Ib=(t,r,i)=>{const o=[],l=Cb(t,r),f="icons";let a={type:f,provider:t,prefix:r,icons:[]},p=0;return i.forEach((g,v)=>{p+=g.length+1,p>=l&&v>0&&(o.push(a),a={type:f,provider:t,prefix:r,icons:[]},p=g.length),a.icons.push(g)}),o.push(a),o};function Tb(t){if(typeof t=="string"){const r=yu(t);if(r)return r.path}return"/"}const Eb=(t,r,i)=>{if(!$a){i("abort",424);return}let o=Tb(r.provider);switch(r.type){case"icons":{const f=r.prefix,p=r.icons.join(","),g=new URLSearchParams({icons:p});o+=f+".json?"+g.toString();break}case"custom":{const f=r.uri;o+=f.slice(0,1)==="/"?f.slice(1):f;break}default:i("abort",400);return}let l=503;$a(t+o).then(f=>{const a=f.status;if(a!==200){setTimeout(()=>{i(Ab(a)?"abort":"next",a)});return}return l=501,f.json()}).then(f=>{if(typeof f!="object"||f===null){setTimeout(()=>{f===404?i("abort",f):i("next",l)});return}setTimeout(()=>{i("success",f)})}).catch(()=>{i("next",l)})},Sb={prepare:Ib,send:Eb};function Mb(t){const r={loaded:[],missing:[],pending:[]},i=Object.create(null);t.sort((l,f)=>l.provider!==f.provider?l.provider.localeCompare(f.provider):l.prefix!==f.prefix?l.prefix.localeCompare(f.prefix):l.name.localeCompare(f.name));let o={provider:"",prefix:"",name:""};return t.forEach(l=>{if(o.name===l.name&&o.prefix===l.prefix&&o.provider===l.provider)return;o=l;const f=l.provider,a=l.prefix,p=l.name,g=i[f]||(i[f]=Object.create(null)),v=g[a]||(g[a]=fr(f,a));let b;p in v.icons?b=r.loaded:a===""||v.missing.has(p)?b=r.missing:b=r.pending;const I={provider:f,prefix:a,name:p};b.push(I)}),r}function id(t,r){t.forEach(i=>{const o=i.loaderCallbacks;o&&(i.loaderCallbacks=o.filter(l=>l.id!==r))})}function Ob(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const r=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!r.length)return;let i=!1;const o=t.provider,l=t.prefix;r.forEach(f=>{const a=f.icons,p=a.pending.length;a.pending=a.pending.filter(g=>{if(g.prefix!==l)return!0;const v=g.name;if(t.icons[v])a.loaded.push({provider:o,prefix:l,name:v});else if(t.missing.has(v))a.missing.push({provider:o,prefix:l,name:v});else return i=!0,!0;return!1}),a.pending.length!==p&&(i||id([t],f.id),f.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),f.abort))})}))}let Rb=0;function Lb(t,r,i){const o=Rb++,l=id.bind(null,i,o);if(!r.pending.length)return l;const f={id:o,icons:r,callback:t,abort:l};return i.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(f)}),l}function Pb(t,r=!0,i=!1){const o=[];return t.forEach(l=>{const f=typeof l=="string"?Vs(l,r,i):l;f&&o.push(f)}),o}var Fb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bb(t,r,i,o){const l=t.resources.length,f=t.random?Math.floor(Math.random()*l):t.index;let a;if(t.random){let Q=t.resources.slice(0);for(a=[];Q.length>1;){const ue=Math.floor(Math.random()*Q.length);a.push(Q[ue]),Q=Q.slice(0,ue).concat(Q.slice(ue+1))}a=a.concat(Q)}else a=t.resources.slice(f).concat(t.resources.slice(0,f));const p=Date.now();let g="pending",v=0,b,I=null,E=[],D=[];typeof o=="function"&&D.push(o);function K(){I&&(clearTimeout(I),I=null)}function N(){g==="pending"&&(g="aborted"),K(),E.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),E=[]}function k(Q,ue){ue&&(D=[]),typeof Q=="function"&&D.push(Q)}function se(){return{startTime:p,payload:r,status:g,queriesSent:v,queriesPending:E.length,subscribe:k,abort:N}}function oe(){g="failed",D.forEach(Q=>{Q(void 0,b)})}function ee(){E.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),E=[]}function J(Q,ue,Y){const me=ue!=="success";switch(E=E.filter(pe=>pe!==Q),g){case"pending":break;case"failed":if(me||!t.dataAfterTimeout)return;break;default:return}if(ue==="abort"){b=Y,oe();return}if(me){b=Y,E.length||(a.length?ae():oe());return}if(K(),ee(),!t.random){const pe=t.resources.indexOf(Q.resource);pe!==-1&&pe!==t.index&&(t.index=pe)}g="completed",D.forEach(pe=>{pe(Y)})}function ae(){if(g!=="pending")return;K();const Q=a.shift();if(Q===void 0){if(E.length){I=setTimeout(()=>{K(),g==="pending"&&(ee(),oe())},t.timeout);return}oe();return}const ue={status:"pending",resource:Q,callback:(Y,me)=>{J(ue,Y,me)}};E.push(ue),v++,I=setTimeout(ae,t.rotate),i(Q,r,ue.callback)}return setTimeout(ae),se}function sd(t){const r={...Fb,...t};let i=[];function o(){i=i.filter(p=>p().status==="pending")}function l(p,g,v){const b=Bb(r,p,g,(I,E)=>{o(),v&&v(I,E)});return i.push(b),b}function f(p){return i.find(g=>p(g))||null}return{query:l,find:f,setIndex:p=>{r.index=p},getIndex:()=>r.index,cleanup:o}}function Ha(){}const Al=Object.create(null);function Nb(t){if(!Al[t]){const r=yu(t);if(!r)return;const i=sd(r),o={config:r,redundancy:i};Al[t]=o}return Al[t]}function Db(t,r,i){let o,l;if(typeof t=="string"){const f=ql(t);if(!f)return i(void 0,424),Ha;l=f.send;const a=Nb(t);a&&(o=a.redundancy)}else{const f=mu(t);if(f){o=sd(f);const a=t.resources?t.resources[0]:"",p=ql(a);p&&(l=p.send)}}return!o||!l?(i(void 0,424),Ha):o.query(r,l,i)().abort}const ka="iconify2",Ci="iconify",od=Ci+"-count",Ka=Ci+"-version",ld=36e5,Wb=168;function zl(t,r){try{return t.getItem(r)}catch{}}function wu(t,r,i){try{return t.setItem(r,i),!0}catch{}}function qa(t,r){try{t.removeItem(r)}catch{}}function Gl(t,r){return wu(t,od,r.toString())}function Yl(t){return parseInt(zl(t,od))||0}const js={local:!0,session:!0},ud={local:new Set,session:new Set};let xu=!1;function Ub(t){xu=t}let bs=typeof window>"u"?{}:window;function fd(t){const r=t+"Storage";try{if(bs&&bs[r]&&typeof bs[r].length=="number")return bs[r]}catch{}js[t]=!1}function cd(t,r){const i=fd(t);if(!i)return;const o=zl(i,Ka);if(o!==ka){if(o){const p=Yl(i);for(let g=0;g{const g=Ci+p.toString(),v=zl(i,g);if(typeof v=="string"){try{const b=JSON.parse(v);if(typeof b=="object"&&typeof b.cached=="number"&&b.cached>l&&typeof b.provider=="string"&&typeof b.data=="object"&&typeof b.data.prefix=="string"&&r(b,p))return!0}catch{}qa(i,g)}};let a=Yl(i);for(let p=a-1;p>=0;p--)f(p)||(p===a-1?(a--,Gl(i,a)):ud[t].add(p))}function ad(){if(!xu){Ub(!0);for(const t in js)cd(t,r=>{const i=r.data,o=r.provider,l=i.prefix,f=fr(o,l);if(!_u(f,i).length)return!1;const a=i.lastModified||-1;return f.lastModifiedCached=f.lastModifiedCached?Math.min(f.lastModifiedCached,a):a,!0})}}function $b(t,r){const i=t.lastModifiedCached;if(i&&i>=r)return i===r;if(t.lastModifiedCached=r,i)for(const o in js)cd(o,l=>{const f=l.data;return l.provider!==t.provider||f.prefix!==t.prefix||f.lastModified===r});return!0}function Hb(t,r){xu||ad();function i(o){let l;if(!js[o]||!(l=fd(o)))return;const f=ud[o];let a;if(f.size)f.delete(a=Array.from(f).shift());else if(a=Yl(l),!Gl(l,a+1))return;const p={cached:Math.floor(Date.now()/ld),provider:t.provider,data:r};return wu(l,Ci+a.toString(),JSON.stringify(p))}r.lastModified&&!$b(t,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),i("local")||i("session"))}function za(){}function kb(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Ob(t)}))}function Kb(t,r){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(r).sort():t.iconsToLoad=r,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:i,prefix:o}=t,l=t.iconsToLoad;delete t.iconsToLoad;let f;if(!l||!(f=ql(i)))return;f.prepare(i,o,l).forEach(p=>{Db(i,p,g=>{if(typeof g!="object")p.icons.forEach(v=>{t.missing.add(v)});else try{const v=_u(t,g);if(!v.length)return;const b=t.pendingIcons;b&&v.forEach(I=>{b.delete(I)}),Hb(t,g)}catch(v){console.error(v)}kb(t)})})}))}const qb=(t,r)=>{const i=Pb(t,!0,td()),o=Mb(i);if(!o.pending.length){let g=!0;return r&&setTimeout(()=>{g&&r(o.loaded,o.missing,o.pending,za)}),()=>{g=!1}}const l=Object.create(null),f=[];let a,p;return o.pending.forEach(g=>{const{provider:v,prefix:b}=g;if(b===p&&v===a)return;a=v,p=b,f.push(fr(v,b));const I=l[v]||(l[v]=Object.create(null));I[b]||(I[b]=[])}),o.pending.forEach(g=>{const{provider:v,prefix:b,name:I}=g,E=fr(v,b),D=E.pendingIcons||(E.pendingIcons=new Set);D.has(I)||(D.add(I),l[v][b].push(I))}),f.forEach(g=>{const{provider:v,prefix:b}=g;l[v][b].length&&Kb(g,l[v][b])}),r?Lb(r,o,f):za};function zb(t,r){const i={...t};for(const o in r){const l=r[o],f=typeof l;o in nd?(l===null||l&&(f==="string"||f==="number"))&&(i[o]=l):f===typeof i[o]&&(i[o]=o==="rotate"?l%4:l)}return i}const Gb=/[\s,]+/;function Yb(t,r){r.split(Gb).forEach(i=>{switch(i.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Zb(t,r=0){const i=t.replace(/^-?[0-9.]*/,"");function o(l){for(;l<0;)l+=4;return l%4}if(i===""){const l=parseInt(t);return isNaN(l)?0:o(l)}else if(i!==t){let l=0;switch(i){case"%":l=25;break;case"deg":l=90}if(l){let f=parseFloat(t.slice(0,t.length-i.length));return isNaN(f)?0:(f=f/l,f%1===0?o(f):0)}}return r}function Jb(t,r){let i=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in r)i+=" "+o+'="'+r[o]+'"';return'"+t+""}function Xb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Vb(t){return"data:image/svg+xml,"+Xb(t)}function Qb(t){return'url("'+Vb(t)+'")'}const Ga={...rd,inline:!1},jb={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},eC={display:"inline-block"},Zl={backgroundColor:"currentColor"},hd={backgroundColor:"transparent"},Ya={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Za={webkitMask:Zl,mask:Zl,background:hd};for(const t in Za){const r=Za[t];for(const i in Ya)r[t+i]=Ya[i]}const Os={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";Os[t+"-flip"]=r,Os[t.slice(0,1)+"-flip"]=r,Os[t+"Flip"]=r});function Ja(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Xa=(t,r)=>{const i=zb(Ga,r),o={...jb},l=r.mode||"svg",f={},a=r.style,p=typeof a=="object"&&!(a instanceof Array)?a:{};for(let N in r){const k=r[N];if(k!==void 0)switch(N){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":i[N]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&Yb(i,k);break;case"color":f.color=k;break;case"rotate":typeof k=="string"?i[N]=Zb(k):typeof k=="number"&&(i[N]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete o["aria-hidden"];break;default:{const se=Os[N];se?(k===!0||k==="true"||k===1)&&(i[se]=!0):Ga[N]===void 0&&(o[N]=k)}}}const g=gb(t,i),v=g.attributes;if(i.inline&&(f.verticalAlign="-0.125em"),l==="svg"){o.style={...f,...p},Object.assign(o,v);let N=0,k=r.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),o.innerHTML=yb(g.body,k?()=>k+"ID"+N++:"iconifyVue"),$l("svg",o)}const{body:b,width:I,height:E}=t,D=l==="mask"||(l==="bg"?!1:b.indexOf("currentColor")!==-1),K=Jb(b,{...v,width:I+"",height:E+""});return o.style={...f,"--svg":Qb(K),width:Ja(v.width),height:Ja(v.height),...eC,...D?Zl:hd,...p},$l("span",o)};td(!0);wb("",Sb);if(typeof document<"u"&&typeof window<"u"){ad();const t=window;if(t.IconifyPreload!==void 0){const r=t.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!ab(o))&&console.error(i)}catch{console.error(i)}})}if(t.IconifyProviders!==void 0){const r=t.IconifyProviders;if(typeof r=="object"&&r!==null)for(let i in r){const o="IconifyProviders["+i+"] is invalid.";try{const l=r[i];if(typeof l!="object"||!l||l.resources===void 0)continue;xb(i,l)||console.error(o)}catch{console.error(o)}}}}const tC={...Qs,body:""},Il=cr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,r){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=Vs(t,!1,!0))===null)return this.abortLoading(),null;const o=fb(i);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:t,abort:qb([i],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,r&&r(t));const l=["iconify"];return i.prefix!==""&&l.push("iconify--"+i.prefix),i.provider!==""&&l.push("iconify--"+i.provider),{data:o,classes:l}}},render(){this.counter;const t=this.$attrs,r=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!r)return Xa(tC,t);let i=t;return r.classes&&(i={...t,class:(typeof t.class=="string"?t.class+" ":"")+r.classes.join(" ")}),Xa({...Qs,...r.data},i)}}),nC={class:"fixed w-full bg-black bg-opacity-30 backdrop-blur-sm text-white py-2 px-4"},rC={class:"max-w-3xl mx-auto flex flex-row justify-between"},iC=Me("p",{class:"font-title text-2xl md:text-3xl pt-2"},"Hallmark Christmatch",-1),sC={class:"flex flex-row gap-1 sm:gap-2 items-center"},oC={href:"https://github.com/malthesers/hallmark-christmatch","aria-label":"github repository link",target:"_blank",rel:"noopener noreferrer",class:"duration-200 hover:opacity-50"},lC={href:"https://ko-fi.com/malthesers","aria-label":"kofi link",target:"_blank",rel:"noopener noreferrer",class:"duration-200 hover:opacity-50"},uC=cr({__name:"SantasLittleHeader",setup(t){const r=Ht(!1);return(i,o)=>{const l=nb;return dt(),wn(st,null,[Me("header",nC,[Me("div",rC,[iC,Me("nav",sC,[Me("button",{onClick:o[0]||(o[0]=f=>r.value=!0),"aria-label":"open instructions button",class:"duration-200 hover:opacity-50"},[Be(xt(Il),{icon:"mdi:help-circle",class:"w-8 h-8 sm:w-9 sm:h-9"})]),Me("a",oC,[Be(xt(Il),{icon:"mdi:github",class:"w-8 h-8 sm:w-9 sm:h-9"})]),Me("a",lC,[Be(xt(Il),{icon:"simple-icons:kofi",class:"w-8 h-8 sm:w-[38px] sm:h-[38px] ml-1"})])])])]),Be(l,{onCloseModal:o[1]||(o[1]=f=>r.value=!1),showInstructionsModal:xt(r)},null,8,["showInstructionsModal"])],64)}}}),fC={};function cC(t,r){const i=uC,o=jx;return dt(),wn(st,null,[Be(i),Be(o)],64)}const aC=Xs(fC,[["render",cC]]);Ax(aC).mount("#app"); +}`;var he=Jc(function(){return Te(d,G+"return "+P).apply(i,_)});if(he.source=P,rl(he))throw he;return he}function j1(e){return Se(e).toLowerCase()}function ev(e){return Se(e).toUpperCase()}function tv(e,n,s){if(e=Se(e),e&&(s||n===i))return rf(e);if(!e||!(n=Tt(n)))return e;var u=qt(e),c=qt(n),d=sf(u,c),_=of(u,c)+1;return Ln(u,d,_).join("")}function nv(e,n,s){if(e=Se(e),e&&(s||n===i))return e.slice(0,uf(e)+1);if(!e||!(n=Tt(n)))return e;var u=qt(e),c=of(u,qt(n))+1;return Ln(u,0,c).join("")}function rv(e,n,s){if(e=Se(e),e&&(s||n===i))return e.replace(no,"");if(!e||!(n=Tt(n)))return e;var u=qt(e),c=sf(u,qt(n));return Ln(u,c).join("")}function iv(e,n){var s=pe,u=$e;if(He(n)){var c="separator"in n?n.separator:c;s="length"in n?ce(n.length):s,u="omission"in n?Tt(n.omission):u}e=Se(e);var d=e.length;if(mr(e)){var _=qt(e);d=_.length}if(s>=d)return e;var y=s-vr(u);if(y<1)return u;var C=_?Ln(_,0,y).join(""):e.slice(0,y);if(c===i)return C+u;if(_&&(y+=C.length-y),il(c)){if(e.slice(y).search(c)){var M,O=C;for(c.global||(c=wo(c.source,Se(Iu.exec(c))+"g")),c.lastIndex=0;M=c.exec(O);)var P=M.index;C=C.slice(0,P===i?y:P)}}else if(e.indexOf(Tt(c),y)!=y){var $=C.lastIndexOf(c);$>-1&&(C=C.slice(0,$))}return C+u}function sv(e){return e=Se(e),e&&_d.test(e)?e.replace(bu,Fp):e}var ov=Ir(function(e,n,s){return e+(s?" ":"")+n.toUpperCase()}),ll=Xf("toUpperCase");function Zc(e,n,s){return e=Se(e),n=s?i:n,n===i?Mp(e)?Dp(e):wp(e):e.match(n)||[]}var Jc=ge(function(e,n){try{return At(e,i,n)}catch(s){return rl(s)?s:new le(s)}}),lv=dn(function(e,n){return Pt(n,function(s){s=tn(s),an(e,s,tl(e[s],e))}),e});function uv(e){var n=e==null?0:e.length,s=j();return e=n?We(e,function(u){if(typeof u[1]!="function")throw new Ft(a);return[s(u[0]),u[1]]}):[],ge(function(u){for(var c=-1;++cwe)return[];var s=Xe,u=rt(e,Xe);n=j(n),e-=Xe;for(var c=mo(u,n);++s0||n<0)?new ye(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),n!==i&&(n=ce(n),s=n<0?s.dropRight(-n):s.take(n-e)),s)},ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ye.prototype.toArray=function(){return this.take(Xe)},jt(ye.prototype,function(e,n){var s=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),c=h[u?"take"+(n=="last"?"Right":""):n],d=u||/^find/.test(n);c&&(h.prototype[n]=function(){var _=this.__wrapped__,y=u?[1]:arguments,C=_ instanceof ye,M=y[0],O=C||fe(_),P=function(ve){var be=c.apply(h,Tn([ve],y));return u&&$?be[0]:be};O&&s&&typeof M=="function"&&M.length!=1&&(C=O=!1);var $=this.__chain__,G=!!this.__actions__.length,te=d&&!$,he=C&&!G;if(!d&&O){_=he?_:new ye(this);var ne=e.apply(_,y);return ne.__actions__.push({func:os,args:[P],thisArg:i}),new Bt(ne,$)}return te&&he?e.apply(this,y):(ne=this.thru(P),te?u?ne.value()[0]:ne.value():ne)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Li[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var c=arguments;if(u&&!this.__chain__){var d=this.value();return n.apply(fe(d)?d:[],c)}return this[s](function(_){return n.apply(fe(_)?_:[],c)})}}),jt(ye.prototype,function(e,n){var s=h[n];if(s){var u=s.name+"";Oe.call(br,u)||(br[u]=[]),br[u].push({name:n,func:s})}}),br[ji(i,se).name]=[{name:"wrapper",func:i}],ye.prototype.clone=sg,ye.prototype.reverse=og,ye.prototype.value=lg,h.prototype.at=N_,h.prototype.chain=D_,h.prototype.commit=W_,h.prototype.next=U_,h.prototype.plant=H_,h.prototype.reverse=k_,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=K_,h.prototype.first=h.prototype.head,zr&&(h.prototype[zr]=$_),h},yr=Wp();qn?((qn.exports=yr)._=yr,uo._=yr):je._=yr}).call(oi)})(Ds,Ds.exports);var Na=Ds.exports;const Xx=[{title:"Angel of Christmas",cover:"angel-of-christmas",description:"After she finally gets the chance to pen her very first article, an aspiring newspaper writer digs into her family history to find the perfect Christmas story.",year:2015},{title:"A Perfect Christmas",cover:"a-perfect-christmas",description:"A newlywed couple prepare to host their first family Christmas together, but things don't go according to plan.",year:2016},{title:"A Wish for Christmas",cover:"a-wish-for-christmas",description:"Sara Thomas is the type of woman who prefers to sit on the sidelines at work, but when her big idea for a Christmas initiative is stolen, she makes a wish to Santa that she'll finally have the courage to stand up for herself.",year:2016},{title:"Every Christmas Has a Story",cover:"every-christmas-has-a-story",description:"While on air, a TV personality accidentally admits she hates Christmas. When she goes to a small town to film a special to repair her image, the Christmas spirit begins to change her life.",year:2016},{title:"Christmas Cookies",cover:"christmas-cookies",description:"A corporate agent is sent to a small town to buy a cookie company and shut down its factory. When she starts falling in love with the factory's owner, the town's Christmas spirit over takes her.",year:2016},{title:"A December Bride",cover:"a-december-bride",description:"A holiday wedding brings no joy to the bride's cousin, who was literally left by the groom right at the altar. But she might find her true love there when she gains a fake fiancé.",year:2016},{title:"Broadcasting Christmas",cover:"broadcasting-christmas",description:"Two news broadcasters who previously were in love fight for a position as a morning talk show host that they both want, ultimately finding what made them like each other so much in the first place.",year:2016},{title:"Christmas in Homestead",cover:"christmas-in-homestead",description:"Life is turned upside down for a small town mayor when a famous actress arrives to shoot her new Christmas movie.",year:2016},{title:"Finding Santa",cover:"finding-santa",description:"Grace is thrilled to be taking over the town's Christmas parade, but when the man playing St. Nick breaks his arm, she needs to find a replacement, even if the replacement is unwilling.",year:2017},{title:"A Gift to Remember",cover:"a-gift-to-remember",description:"A handsome stranger develops amnesia after a bibliophile crashes into him on her bicycle.",year:2017},{title:"The Mistletoe Inn",cover:"the-mistletoe-inn",description:"An aspiring novelist signs up for a week-long writing workshop at the Mistletoe Inn.",year:2017},{title:"The Christmas Cottage",cover:"the-christmas-cottage",description:"While helping to organize her best friend's Christmas wedding, a successful designer reconnects with an old flame.",year:2017},{title:"Sharing Christmas",cover:"sharing-christmas",description:"Stephanie Nichols takes over the Christmas Shop, but a property developer has bought the building and is terminating the retail leases. She finds help and love from Michael Kilpatrick, who works for the developer.",year:2017},{title:"Christmas Encore",cover:"christmas-encore",description:"A struggling actress auditions for the lead role in a theater production of 'A Christmas Carol'.",year:2017},{title:"Christmas on Honeysuckle Lane",cover:"christmas-on-honeysuckle-lane",description:"Emma returns home to celebrate Christmas for the last time with her siblings in the house they grew up in. After their parents' recent passing, the siblings reluctantly agree to sell the family home on Honeysuckle Lane.",year:2018},{title:"Once Upon a Christmas Miracle",cover:"once-upon-a-christmas-miracle",description:"This holiday romance is based on the incredible story about organ donor Chris Dempsey and recipient Heather Krueger, who were brought into one another's lives by a transplant surgery that led to a miraculous romance.",year:2018},{title:"Angel Falls: A Novel Holiday",cover:"angel-falls-a-novel-holiday",description:"A book editor must work with a former rival to help a potential writer find her way. He reminds all of them about the Christmas spirit and the value of community.",year:2019},{title:"Christmas Under the Stars",cover:"christmas-under-the-stars",description:"A Christmas-tree lot helps two people rediscover their holiday spirit.",year:2019},{title:"Christmas on My Mind",cover:"christmas-on-my-mind",description:"When Lucy wakes up with a wedding dress in hand, she believes that she is late to her wedding with her ex-boyfriend Zach. However, she has no recollection of the past 2 years, including the fact that she is engaged to another man.",year:2019},{title:"Merry & Bright",cover:"merry-and-bright",description:"Cate's mom is setting up dates for her CEO daughter. When she meets Gabe a week before Christmas, she assumes, he's a date, but he's a corporate recovery consultant for her candy cane company. He's also single.",year:2019},{title:"Holiday Hearts",cover:"holiday-hearts",description:"While planning an annual Christmas party, Peyton is forced together with Ben to care for a friend's daughter. While finding their Christmas spirit, will there be some romance along the way.",year:2019},{title:"A Blue Ridge Mountain Christmas",cover:"a-blue-ridge-mountain-christmas",description:"Hotel manager Willow returns to her stunning Virginia hometown to help her sister plan a Christmas wedding at the inn her family once owned. She must work with current owner and single dad David, who wants to let go of the past.",year:2019},{title:"Nostalgic Christmas",cover:"nostalgic-christmas",description:"Anne seems to have it all as a driven toy buyer in New York City, but her father's retirement signaling the closing of the town's beloved toy store brings the city girl back to her small-town roots.",year:2019},{title:"Time for You to Come Home for Christmas",cover:"time-for-you-to-come-home-for-christmas",description:"A recent widow travels with her son to her Virginia hometown for Christmas. On the way they meet a man who is heading to the same destination. As they continue to spend time together, the pair grows closer.",year:2019},{title:"Christmas in Rome",cover:"christmas-in-rome",description:"Angela, an American tour guide in Rome, agrees to teach a culture-shocked businessman named Oliver about the heart of Rome at Christmas.",year:2019},{title:"Christmas She Wrote",cover:"christmas-she-wrote",description:"Kaleigh is fired as popular column writer by the new editor at The Globe in NYC. She heads to her sister near Tahoe, CA, and helps in her bakery the weeks before Xmas. The single editor shows up - to right a wrong.",year:2020}],Vx={class:"text-white min-h-[100dvh] grid place-content-center p-4 pt-20"},Qx={class:"flex flex-col gap-4"},jx=cr({__name:"MemoryGame",setup(t){const r=Ht(!0),i=Ht(10),o=Ht(Xx),l=Ht([]),f=Ht(null),a=Ht(null),p=Ht([]),g=Ht(0),v=Ht(0),b=Ht(!1);function I(D){!f.value||a.value?(f.value=D,a.value=null):f.value.id!==D.id&&(a.value=D,g.value++,f.value.title===D.title?(p.value.push(D.title),f.value=null,a.value=null,p.value.length===i.value&&(b.value=!0,r.value=!0,(!v.value||g.value{l.value=Na.shuffle(Na.shuffle(o.value).slice(0,i.value).flatMap(K=>[K,K])).map((K,N)=>({...K,id:N})),r.value=!1},D)}return As(v,()=>localStorage.setItem("christmatch/record",String(v.value))),uu(()=>{localStorage.getItem("christmatch/record")&&(v.value=parseInt(localStorage.getItem("christmatch/record"))),E()}),(D,K)=>{const N=Jx,k=$x;return dt(),wn(st,null,[Me("main",Vx,[Me("section",Qx,[Me("div",{class:Ai([{"pointer-events-none":xt(r)},"grid grid-cols-5 gap-2 sm:gap-4"])},[(dt(!0),wn(st,null,uw(xt(l),(se,oe)=>(dt(),kr(N,{key:oe,movie:se,firstMovie:xt(f),secondMovie:xt(a),guessedMovies:xt(p),selectMovie:I},null,8,["movie","firstMovie","secondMovie","guessedMovies"]))),128))],2)])]),Be(k,{onCloseModal:K[0]||(K[0]=se=>b.value=!1),showVictoryModal:xt(b),guesses:xt(g),record:xt(v)},null,8,["showVictoryModal","guesses","record"])],64)}}}),eb=Me("h2",{class:"font-title text-5xl mb-2"},"Instructions",-1),tb=Me("section",{class:"text-lg sm:text-xl text-center space-y-2"},[Me("p",null,"20 cards are laid out in the grid, those being 10 pairs of Hallmark Christmas movie covers."),Me("p",null,"Start by clicking a card to flip it over and reveal the movie, then click a new card to reveal it and see if they match."),Me("p",null,"As you progress the cards, you will reveal more and more movies until you will be able to match them."),Me("p",null,"But will you be able to distinguish these unique Christmas movie covers and match them all?")],-1),nb=cr({__name:"InstructionsModal",props:{showInstructionsModal:{type:Boolean}},emits:["closeModal"],setup(t){return(r,i)=>{const o=Vh;return dt(),kr(o,{onCloseModal:i[0]||(i[0]=l=>r.$emit("closeModal")),showModal:r.showInstructionsModal},{default:vi(()=>[eb,tb]),_:1},8,["showModal"])}}}),pi=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vs=(t,r,i,o="")=>{const l=t.split(":");if(t.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;o=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const p=l.pop(),g=l.pop(),v={provider:l.length>0?l[0]:o,prefix:g,name:p};return r&&!Ss(v)?null:v}const f=l[0],a=f.split("-");if(a.length>1){const p={provider:o,prefix:a.shift(),name:a.join("-")};return r&&!Ss(p)?null:p}if(i&&o===""){const p={provider:o,prefix:"",name:f};return r&&!Ss(p,i)?null:p}return null},Ss=(t,r)=>t?!!((t.provider===""||t.provider.match(pi))&&(r&&t.prefix===""||t.prefix.match(pi))&&t.name.match(pi)):!1,Qh=Object.freeze({left:0,top:0,width:16,height:16}),Ws=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qs=Object.freeze({...Qh,...Ws}),kl=Object.freeze({...Qs,body:"",hidden:!1});function rb(t,r){const i={};!t.hFlip!=!r.hFlip&&(i.hFlip=!0),!t.vFlip!=!r.vFlip&&(i.vFlip=!0);const o=((t.rotate||0)+(r.rotate||0))%4;return o&&(i.rotate=o),i}function Da(t,r){const i=rb(t,r);for(const o in kl)o in Ws?o in t&&!(o in i)&&(i[o]=Ws[o]):o in r?i[o]=r[o]:o in t&&(i[o]=t[o]);return i}function ib(t,r){const i=t.icons,o=t.aliases||Object.create(null),l=Object.create(null);function f(a){if(i[a])return l[a]=[];if(!(a in l)){l[a]=null;const p=o[a]&&o[a].parent,g=p&&f(p);g&&(l[a]=[p].concat(g))}return l[a]}return(r||Object.keys(i).concat(Object.keys(o))).forEach(f),l}function sb(t,r,i){const o=t.icons,l=t.aliases||Object.create(null);let f={};function a(p){f=Da(o[p]||l[p],f)}return a(r),i.forEach(a),Da(t,f)}function jh(t,r){const i=[];if(typeof t!="object"||typeof t.icons!="object")return i;t.not_found instanceof Array&&t.not_found.forEach(l=>{r(l,null),i.push(l)});const o=ib(t);for(const l in o){const f=o[l];f&&(r(l,sb(t,l,f)),i.push(l))}return i}const ob={provider:"",aliases:{},not_found:{},...Qh};function Cl(t,r){for(const i in r)if(i in t&&typeof t[i]!=typeof r[i])return!1;return!0}function ed(t){if(typeof t!="object"||t===null)return null;const r=t;if(typeof r.prefix!="string"||!t.icons||typeof t.icons!="object"||!Cl(t,ob))return null;const i=r.icons;for(const l in i){const f=i[l];if(!l.match(pi)||typeof f.body!="string"||!Cl(f,kl))return null}const o=r.aliases||Object.create(null);for(const l in o){const f=o[l],a=f.parent;if(!l.match(pi)||typeof a!="string"||!i[a]&&!o[a]||!Cl(f,kl))return null}return r}const Wa=Object.create(null);function lb(t,r){return{provider:t,prefix:r,icons:Object.create(null),missing:new Set}}function fr(t,r){const i=Wa[t]||(Wa[t]=Object.create(null));return i[r]||(i[r]=lb(t,r))}function _u(t,r){return ed(r)?jh(r,(i,o)=>{o?t.icons[i]=o:t.missing.add(i)}):[]}function ub(t,r,i){try{if(typeof i.body=="string")return t.icons[r]={...i},!0}catch{}return!1}let bi=!1;function td(t){return typeof t=="boolean"&&(bi=t),bi}function fb(t){const r=typeof t=="string"?Vs(t,!0,bi):t;if(r){const i=fr(r.provider,r.prefix),o=r.name;return i.icons[o]||(i.missing.has(o)?null:void 0)}}function cb(t,r){const i=Vs(t,!0,bi);if(!i)return!1;const o=fr(i.provider,i.prefix);return ub(o,i.name,r)}function ab(t,r){if(typeof t!="object")return!1;if(typeof r!="string"&&(r=t.provider||""),bi&&!r&&!t.prefix){let l=!1;return ed(t)&&(t.prefix="",jh(t,(f,a)=>{a&&cb(f,a)&&(l=!0)})),l}const i=t.prefix;if(!Ss({provider:r,prefix:i,name:"a"}))return!1;const o=fr(r,i);return!!_u(o,t)}const nd=Object.freeze({width:null,height:null}),rd=Object.freeze({...nd,...Ws}),hb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,db=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ua(t,r,i){if(r===1)return t;if(i=i||100,typeof t=="number")return Math.ceil(t*r*i)/i;if(typeof t!="string")return t;const o=t.split(hb);if(o===null||!o.length)return t;const l=[];let f=o.shift(),a=db.test(f);for(;;){if(a){const p=parseFloat(f);isNaN(p)?l.push(f):l.push(Math.ceil(p*r*i)/i)}else l.push(f);if(f=o.shift(),f===void 0)return l.join("");a=!a}}const pb=t=>t==="unset"||t==="undefined"||t==="none";function gb(t,r){const i={...Qs,...t},o={...rd,...r},l={left:i.left,top:i.top,width:i.width,height:i.height};let f=i.body;[i,o].forEach(K=>{const N=[],k=K.hFlip,se=K.vFlip;let oe=K.rotate;k?se?oe+=2:(N.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),N.push("scale(-1 1)"),l.top=l.left=0):se&&(N.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),N.push("scale(1 -1)"),l.top=l.left=0);let ee;switch(oe<0&&(oe-=Math.floor(oe/4)*4),oe=oe%4,oe){case 1:ee=l.height/2+l.top,N.unshift("rotate(90 "+ee.toString()+" "+ee.toString()+")");break;case 2:N.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:ee=l.width/2+l.left,N.unshift("rotate(-90 "+ee.toString()+" "+ee.toString()+")");break}oe%2===1&&(l.left!==l.top&&(ee=l.left,l.left=l.top,l.top=ee),l.width!==l.height&&(ee=l.width,l.width=l.height,l.height=ee)),N.length&&(f=''+f+"")});const a=o.width,p=o.height,g=l.width,v=l.height;let b,I;a===null?(I=p===null?"1em":p==="auto"?v:p,b=Ua(I,g/v)):(b=a==="auto"?g:a,I=p===null?Ua(b,v/g):p==="auto"?v:p);const E={},D=(K,N)=>{pb(N)||(E[K]=N.toString())};return D("width",b),D("height",I),E.viewBox=l.left.toString()+" "+l.top.toString()+" "+g.toString()+" "+v.toString(),{attributes:E,body:f}}const _b=/\sid="(\S+)"/g,mb="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let vb=0;function yb(t,r=mb){const i=[];let o;for(;o=_b.exec(t);)i.push(o[1]);if(!i.length)return t;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(f=>{const a=typeof r=="function"?r(f):r+(vb++).toString(),p=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+p+')([")]|\\.[a-z])',"g"),"$1"+a+l+"$3")}),t=t.replace(new RegExp(l,"g"),""),t}const Kl=Object.create(null);function wb(t,r){Kl[t]=r}function ql(t){return Kl[t]||Kl[""]}function mu(t){let r;if(typeof t.resources=="string")r=[t.resources];else if(r=t.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const vu=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],Ms=[];for(;li.length>0;)li.length===1||Math.random()>.5?Ms.push(li.shift()):Ms.push(li.pop());vu[""]=mu({resources:["https://api.iconify.design"].concat(Ms)});function xb(t,r){const i=mu(r);return i===null?!1:(vu[t]=i,!0)}function yu(t){return vu[t]}const bb=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let $a=bb();function Cb(t,r){const i=yu(t);if(!i)return 0;let o;if(!i.maxURL)o=0;else{let l=0;i.resources.forEach(a=>{l=Math.max(l,a.length)});const f=r+".json?icons=";o=i.maxURL-l-i.path.length-f.length}return o}function Ab(t){return t===404}const Ib=(t,r,i)=>{const o=[],l=Cb(t,r),f="icons";let a={type:f,provider:t,prefix:r,icons:[]},p=0;return i.forEach((g,v)=>{p+=g.length+1,p>=l&&v>0&&(o.push(a),a={type:f,provider:t,prefix:r,icons:[]},p=g.length),a.icons.push(g)}),o.push(a),o};function Tb(t){if(typeof t=="string"){const r=yu(t);if(r)return r.path}return"/"}const Eb=(t,r,i)=>{if(!$a){i("abort",424);return}let o=Tb(r.provider);switch(r.type){case"icons":{const f=r.prefix,p=r.icons.join(","),g=new URLSearchParams({icons:p});o+=f+".json?"+g.toString();break}case"custom":{const f=r.uri;o+=f.slice(0,1)==="/"?f.slice(1):f;break}default:i("abort",400);return}let l=503;$a(t+o).then(f=>{const a=f.status;if(a!==200){setTimeout(()=>{i(Ab(a)?"abort":"next",a)});return}return l=501,f.json()}).then(f=>{if(typeof f!="object"||f===null){setTimeout(()=>{f===404?i("abort",f):i("next",l)});return}setTimeout(()=>{i("success",f)})}).catch(()=>{i("next",l)})},Sb={prepare:Ib,send:Eb};function Mb(t){const r={loaded:[],missing:[],pending:[]},i=Object.create(null);t.sort((l,f)=>l.provider!==f.provider?l.provider.localeCompare(f.provider):l.prefix!==f.prefix?l.prefix.localeCompare(f.prefix):l.name.localeCompare(f.name));let o={provider:"",prefix:"",name:""};return t.forEach(l=>{if(o.name===l.name&&o.prefix===l.prefix&&o.provider===l.provider)return;o=l;const f=l.provider,a=l.prefix,p=l.name,g=i[f]||(i[f]=Object.create(null)),v=g[a]||(g[a]=fr(f,a));let b;p in v.icons?b=r.loaded:a===""||v.missing.has(p)?b=r.missing:b=r.pending;const I={provider:f,prefix:a,name:p};b.push(I)}),r}function id(t,r){t.forEach(i=>{const o=i.loaderCallbacks;o&&(i.loaderCallbacks=o.filter(l=>l.id!==r))})}function Ob(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const r=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!r.length)return;let i=!1;const o=t.provider,l=t.prefix;r.forEach(f=>{const a=f.icons,p=a.pending.length;a.pending=a.pending.filter(g=>{if(g.prefix!==l)return!0;const v=g.name;if(t.icons[v])a.loaded.push({provider:o,prefix:l,name:v});else if(t.missing.has(v))a.missing.push({provider:o,prefix:l,name:v});else return i=!0,!0;return!1}),a.pending.length!==p&&(i||id([t],f.id),f.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),f.abort))})}))}let Rb=0;function Lb(t,r,i){const o=Rb++,l=id.bind(null,i,o);if(!r.pending.length)return l;const f={id:o,icons:r,callback:t,abort:l};return i.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(f)}),l}function Pb(t,r=!0,i=!1){const o=[];return t.forEach(l=>{const f=typeof l=="string"?Vs(l,r,i):l;f&&o.push(f)}),o}var Fb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bb(t,r,i,o){const l=t.resources.length,f=t.random?Math.floor(Math.random()*l):t.index;let a;if(t.random){let Q=t.resources.slice(0);for(a=[];Q.length>1;){const ue=Math.floor(Math.random()*Q.length);a.push(Q[ue]),Q=Q.slice(0,ue).concat(Q.slice(ue+1))}a=a.concat(Q)}else a=t.resources.slice(f).concat(t.resources.slice(0,f));const p=Date.now();let g="pending",v=0,b,I=null,E=[],D=[];typeof o=="function"&&D.push(o);function K(){I&&(clearTimeout(I),I=null)}function N(){g==="pending"&&(g="aborted"),K(),E.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),E=[]}function k(Q,ue){ue&&(D=[]),typeof Q=="function"&&D.push(Q)}function se(){return{startTime:p,payload:r,status:g,queriesSent:v,queriesPending:E.length,subscribe:k,abort:N}}function oe(){g="failed",D.forEach(Q=>{Q(void 0,b)})}function ee(){E.forEach(Q=>{Q.status==="pending"&&(Q.status="aborted")}),E=[]}function J(Q,ue,Y){const me=ue!=="success";switch(E=E.filter(pe=>pe!==Q),g){case"pending":break;case"failed":if(me||!t.dataAfterTimeout)return;break;default:return}if(ue==="abort"){b=Y,oe();return}if(me){b=Y,E.length||(a.length?ae():oe());return}if(K(),ee(),!t.random){const pe=t.resources.indexOf(Q.resource);pe!==-1&&pe!==t.index&&(t.index=pe)}g="completed",D.forEach(pe=>{pe(Y)})}function ae(){if(g!=="pending")return;K();const Q=a.shift();if(Q===void 0){if(E.length){I=setTimeout(()=>{K(),g==="pending"&&(ee(),oe())},t.timeout);return}oe();return}const ue={status:"pending",resource:Q,callback:(Y,me)=>{J(ue,Y,me)}};E.push(ue),v++,I=setTimeout(ae,t.rotate),i(Q,r,ue.callback)}return setTimeout(ae),se}function sd(t){const r={...Fb,...t};let i=[];function o(){i=i.filter(p=>p().status==="pending")}function l(p,g,v){const b=Bb(r,p,g,(I,E)=>{o(),v&&v(I,E)});return i.push(b),b}function f(p){return i.find(g=>p(g))||null}return{query:l,find:f,setIndex:p=>{r.index=p},getIndex:()=>r.index,cleanup:o}}function Ha(){}const Al=Object.create(null);function Nb(t){if(!Al[t]){const r=yu(t);if(!r)return;const i=sd(r),o={config:r,redundancy:i};Al[t]=o}return Al[t]}function Db(t,r,i){let o,l;if(typeof t=="string"){const f=ql(t);if(!f)return i(void 0,424),Ha;l=f.send;const a=Nb(t);a&&(o=a.redundancy)}else{const f=mu(t);if(f){o=sd(f);const a=t.resources?t.resources[0]:"",p=ql(a);p&&(l=p.send)}}return!o||!l?(i(void 0,424),Ha):o.query(r,l,i)().abort}const ka="iconify2",Ci="iconify",od=Ci+"-count",Ka=Ci+"-version",ld=36e5,Wb=168;function zl(t,r){try{return t.getItem(r)}catch{}}function wu(t,r,i){try{return t.setItem(r,i),!0}catch{}}function qa(t,r){try{t.removeItem(r)}catch{}}function Gl(t,r){return wu(t,od,r.toString())}function Yl(t){return parseInt(zl(t,od))||0}const js={local:!0,session:!0},ud={local:new Set,session:new Set};let xu=!1;function Ub(t){xu=t}let bs=typeof window>"u"?{}:window;function fd(t){const r=t+"Storage";try{if(bs&&bs[r]&&typeof bs[r].length=="number")return bs[r]}catch{}js[t]=!1}function cd(t,r){const i=fd(t);if(!i)return;const o=zl(i,Ka);if(o!==ka){if(o){const p=Yl(i);for(let g=0;g{const g=Ci+p.toString(),v=zl(i,g);if(typeof v=="string"){try{const b=JSON.parse(v);if(typeof b=="object"&&typeof b.cached=="number"&&b.cached>l&&typeof b.provider=="string"&&typeof b.data=="object"&&typeof b.data.prefix=="string"&&r(b,p))return!0}catch{}qa(i,g)}};let a=Yl(i);for(let p=a-1;p>=0;p--)f(p)||(p===a-1?(a--,Gl(i,a)):ud[t].add(p))}function ad(){if(!xu){Ub(!0);for(const t in js)cd(t,r=>{const i=r.data,o=r.provider,l=i.prefix,f=fr(o,l);if(!_u(f,i).length)return!1;const a=i.lastModified||-1;return f.lastModifiedCached=f.lastModifiedCached?Math.min(f.lastModifiedCached,a):a,!0})}}function $b(t,r){const i=t.lastModifiedCached;if(i&&i>=r)return i===r;if(t.lastModifiedCached=r,i)for(const o in js)cd(o,l=>{const f=l.data;return l.provider!==t.provider||f.prefix!==t.prefix||f.lastModified===r});return!0}function Hb(t,r){xu||ad();function i(o){let l;if(!js[o]||!(l=fd(o)))return;const f=ud[o];let a;if(f.size)f.delete(a=Array.from(f).shift());else if(a=Yl(l),!Gl(l,a+1))return;const p={cached:Math.floor(Date.now()/ld),provider:t.provider,data:r};return wu(l,Ci+a.toString(),JSON.stringify(p))}r.lastModified&&!$b(t,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),i("local")||i("session"))}function za(){}function kb(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Ob(t)}))}function Kb(t,r){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(r).sort():t.iconsToLoad=r,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:i,prefix:o}=t,l=t.iconsToLoad;delete t.iconsToLoad;let f;if(!l||!(f=ql(i)))return;f.prepare(i,o,l).forEach(p=>{Db(i,p,g=>{if(typeof g!="object")p.icons.forEach(v=>{t.missing.add(v)});else try{const v=_u(t,g);if(!v.length)return;const b=t.pendingIcons;b&&v.forEach(I=>{b.delete(I)}),Hb(t,g)}catch(v){console.error(v)}kb(t)})})}))}const qb=(t,r)=>{const i=Pb(t,!0,td()),o=Mb(i);if(!o.pending.length){let g=!0;return r&&setTimeout(()=>{g&&r(o.loaded,o.missing,o.pending,za)}),()=>{g=!1}}const l=Object.create(null),f=[];let a,p;return o.pending.forEach(g=>{const{provider:v,prefix:b}=g;if(b===p&&v===a)return;a=v,p=b,f.push(fr(v,b));const I=l[v]||(l[v]=Object.create(null));I[b]||(I[b]=[])}),o.pending.forEach(g=>{const{provider:v,prefix:b,name:I}=g,E=fr(v,b),D=E.pendingIcons||(E.pendingIcons=new Set);D.has(I)||(D.add(I),l[v][b].push(I))}),f.forEach(g=>{const{provider:v,prefix:b}=g;l[v][b].length&&Kb(g,l[v][b])}),r?Lb(r,o,f):za};function zb(t,r){const i={...t};for(const o in r){const l=r[o],f=typeof l;o in nd?(l===null||l&&(f==="string"||f==="number"))&&(i[o]=l):f===typeof i[o]&&(i[o]=o==="rotate"?l%4:l)}return i}const Gb=/[\s,]+/;function Yb(t,r){r.split(Gb).forEach(i=>{switch(i.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Zb(t,r=0){const i=t.replace(/^-?[0-9.]*/,"");function o(l){for(;l<0;)l+=4;return l%4}if(i===""){const l=parseInt(t);return isNaN(l)?0:o(l)}else if(i!==t){let l=0;switch(i){case"%":l=25;break;case"deg":l=90}if(l){let f=parseFloat(t.slice(0,t.length-i.length));return isNaN(f)?0:(f=f/l,f%1===0?o(f):0)}}return r}function Jb(t,r){let i=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in r)i+=" "+o+'="'+r[o]+'"';return'"+t+""}function Xb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Vb(t){return"data:image/svg+xml,"+Xb(t)}function Qb(t){return'url("'+Vb(t)+'")'}const Ga={...rd,inline:!1},jb={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},eC={display:"inline-block"},Zl={backgroundColor:"currentColor"},hd={backgroundColor:"transparent"},Ya={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Za={webkitMask:Zl,mask:Zl,background:hd};for(const t in Za){const r=Za[t];for(const i in Ya)r[t+i]=Ya[i]}const Os={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";Os[t+"-flip"]=r,Os[t.slice(0,1)+"-flip"]=r,Os[t+"Flip"]=r});function Ja(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Xa=(t,r)=>{const i=zb(Ga,r),o={...jb},l=r.mode||"svg",f={},a=r.style,p=typeof a=="object"&&!(a instanceof Array)?a:{};for(let N in r){const k=r[N];if(k!==void 0)switch(N){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":i[N]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&Yb(i,k);break;case"color":f.color=k;break;case"rotate":typeof k=="string"?i[N]=Zb(k):typeof k=="number"&&(i[N]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete o["aria-hidden"];break;default:{const se=Os[N];se?(k===!0||k==="true"||k===1)&&(i[se]=!0):Ga[N]===void 0&&(o[N]=k)}}}const g=gb(t,i),v=g.attributes;if(i.inline&&(f.verticalAlign="-0.125em"),l==="svg"){o.style={...f,...p},Object.assign(o,v);let N=0,k=r.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),o.innerHTML=yb(g.body,k?()=>k+"ID"+N++:"iconifyVue"),$l("svg",o)}const{body:b,width:I,height:E}=t,D=l==="mask"||(l==="bg"?!1:b.indexOf("currentColor")!==-1),K=Jb(b,{...v,width:I+"",height:E+""});return o.style={...f,"--svg":Qb(K),width:Ja(v.width),height:Ja(v.height),...eC,...D?Zl:hd,...p},$l("span",o)};td(!0);wb("",Sb);if(typeof document<"u"&&typeof window<"u"){ad();const t=window;if(t.IconifyPreload!==void 0){const r=t.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!ab(o))&&console.error(i)}catch{console.error(i)}})}if(t.IconifyProviders!==void 0){const r=t.IconifyProviders;if(typeof r=="object"&&r!==null)for(let i in r){const o="IconifyProviders["+i+"] is invalid.";try{const l=r[i];if(typeof l!="object"||!l||l.resources===void 0)continue;xb(i,l)||console.error(o)}catch{console.error(o)}}}}const tC={...Qs,body:""},Il=cr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,r){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=Vs(t,!1,!0))===null)return this.abortLoading(),null;const o=fb(i);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:t,abort:qb([i],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,r&&r(t));const l=["iconify"];return i.prefix!==""&&l.push("iconify--"+i.prefix),i.provider!==""&&l.push("iconify--"+i.provider),{data:o,classes:l}}},render(){this.counter;const t=this.$attrs,r=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!r)return Xa(tC,t);let i=t;return r.classes&&(i={...t,class:(typeof t.class=="string"?t.class+" ":"")+r.classes.join(" ")}),Xa({...Qs,...r.data},i)}}),nC={class:"fixed w-full bg-black bg-opacity-30 backdrop-blur-sm text-white py-2 px-4"},rC={class:"max-w-3xl mx-auto flex flex-row justify-between"},iC=Me("p",{class:"font-title text-2xl md:text-3xl pt-2"},"Hallmark Christmatch",-1),sC={class:"flex flex-row gap-1 sm:gap-2 items-center"},oC={href:"https://github.com/malthesers/hallmark-christmatch","aria-label":"github repository link",target:"_blank",rel:"noopener noreferrer",class:"duration-200 hover:opacity-50"},lC={href:"https://ko-fi.com/malthesers","aria-label":"kofi link",target:"_blank",rel:"noopener noreferrer",class:"duration-200 hover:opacity-50"},uC=cr({__name:"SantasLittleHeader",setup(t){const r=Ht(!1);return(i,o)=>{const l=nb;return dt(),wn(st,null,[Me("header",nC,[Me("div",rC,[iC,Me("nav",sC,[Me("button",{onClick:o[0]||(o[0]=f=>r.value=!0),"aria-label":"open instructions button",class:"duration-200 hover:opacity-50"},[Be(xt(Il),{icon:"mdi:help-circle",class:"w-8 h-8 sm:w-9 sm:h-9"})]),Me("a",oC,[Be(xt(Il),{icon:"mdi:github",class:"w-8 h-8 sm:w-9 sm:h-9"})]),Me("a",lC,[Be(xt(Il),{icon:"simple-icons:kofi",class:"w-8 h-8 sm:w-[38px] sm:h-[38px] ml-1"})])])])]),Be(l,{onCloseModal:o[1]||(o[1]=f=>r.value=!1),showInstructionsModal:xt(r)},null,8,["showInstructionsModal"])],64)}}}),fC={};function cC(t,r){const i=uC,o=jx;return dt(),wn(st,null,[Be(i),Be(o)],64)}const aC=Xs(fC,[["render",cC]]);Ax(aC).mount("#app"); diff --git a/index.html b/index.html index e56e9fc..7d220d9 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ - +