@webreact/webreact-components
Advanced tools
Comparing version 0.4.35 to 0.4.36
@@ -6,3 +6,3 @@ 'use strict'; | ||
const index = require('./index-d1efcaa6.js'); | ||
const utils = require('./utils-cda6e692.js'); | ||
const utils = require('./utils-cdffa98f.js'); | ||
@@ -9,0 +9,0 @@ class Point { |
import { Component, Element, h, Prop } from '@stencil/core'; | ||
import { Plane } from '../../geometry/Plane'; | ||
import { Point } from '../../geometry/Point'; | ||
import throttle from '../../utils/utils'; | ||
import { throttle } from '../../utils/utils'; | ||
export class WrCaseHighlight { | ||
@@ -6,0 +6,0 @@ constructor() { |
import { Component, Element, h, Listen } from '@stencil/core'; | ||
import anime from 'animejs'; | ||
import { isDivisible } from './utils'; | ||
export class WrHighlightGrid { | ||
onHover(event) { | ||
let left, top; | ||
if (event.target.offsetLeft >= this.host.offsetLeft) { | ||
left = event.target.offsetLeft - this.host.offsetLeft; | ||
const offsetLeft = event.target.offsetLeft; | ||
const elementWidth = event.target.clientWidth; | ||
if (isDivisible(offsetLeft, elementWidth)) { | ||
left = event.target.offsetLeft; | ||
} | ||
else { | ||
left = event.target.offsetLeft; | ||
left = event.target.offsetLeft - this.host.offsetLeft; | ||
} | ||
@@ -12,0 +15,0 @@ if (event.target.offsetTop >= this.host.offsetTop) { |
@@ -41,2 +41,21 @@ /** | ||
}; | ||
export default throttle; | ||
/** | ||
* Enter a number, round it to the nearest 10 [1 -> 0, 5 -> 10] | ||
* | ||
* @param {number} n | ||
*/ | ||
export const round10 = (n) => { | ||
return roundToBase(n, 10); | ||
}; | ||
/** | ||
* Round a number to the nearest base | ||
* @param {number} n | ||
* @param {number} base | ||
*/ | ||
export const roundToBase = (n, base) => { | ||
const r = n % base; | ||
if (r) { | ||
return n + (base - r); | ||
} | ||
return n; | ||
}; |
@@ -1,1 +0,1 @@ | ||
import{r as registerInstance,h,c as createEvent,g as getElement,H as Host}from"./index-e41e20bc.js";import{u as ucFirst}from"./utils-7b24fa9c.js";import{a as anime}from"./anime.es-d8ec8d88.js";function toInteger(e){if(e===null||e===true||e===false){return NaN}var t=Number(e);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}function requiredArgs(e,t){if(t.length<e){throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);if(e instanceof Date||typeof e==="object"&&t==="[object Date]"){return new Date(e.getTime())}else if(typeof e==="number"||t==="[object Number]"){return new Date(e)}else{if((typeof e==="string"||t==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule");console.warn((new Error).stack)}return new Date(NaN)}}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime();var a=toInteger(t);return new Date(r+a)}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));t.setUTCFullYear(e.getFullYear());return e.getTime()-t.getTime()}function isDate(e){requiredArgs(1,arguments);return e instanceof Date||typeof e==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){requiredArgs(1,arguments);if(!isDate(e)&&typeof e!=="number"){return false}var t=toDate(e);return!isNaN(Number(t))}var formatDistanceLocale$1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var formatDistance$1=function(e,t,r){var a;var n=formatDistanceLocale$1[e];if(typeof n==="string"){a=n}else if(t===1){a=n.one}else{a=n.other.replace("{{count}}",t.toString())}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"in "+a}else{return a+" ago"}}return a};function buildFormatLongFn(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.width?String(t.width):e.defaultWidth;var a=e.formats[r]||e.formats[e.defaultWidth];return a}}var dateFormats$1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var timeFormats$1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var dateTimeFormats$1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};var formatRelativeLocale$1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var formatRelative$1=function(e,t,r,a){return formatRelativeLocale$1[e]};function buildLocalizeFn(e){return function(t,r){var a=r||{};var n=a.context?String(a.context):"standalone";var i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth;var s=a.width?String(a.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var u=e.defaultWidth;var d=a.width?String(a.width):e.defaultWidth;i=e.values[d]||e.values[u]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var eraValues$1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var quarterValues$1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var monthValues$1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var dayValues$1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var ordinalNumber$1=function(e,t){var r=Number(e);var a=r%100;if(a>20||a<10){switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}}return r+"th"};var localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return function(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=r.width;var n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth];var i=t.match(n);if(!i){return null}var o=i[0];var s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];var u=Array.isArray(s)?findIndex(s,(function(e){return e.test(o)})):findKey(s,(function(e){return e.test(o)}));var d;d=e.valueCallback?e.valueCallback(u):u;d=r.valueCallback?r.valueCallback(d):d;var l=t.slice(o.length);return{value:d,rest:l}}}function findKey(e,t){for(var r in e){if(e.hasOwnProperty(r)&&t(e[r])){return r}}return undefined}function findIndex(e,t){for(var r=0;r<e.length;r++){if(t(e[r])){return r}}return undefined}function buildMatchPatternFn(e){return function(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=t.match(e.matchPattern);if(!a)return null;var n=a[0];var i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var matchOrdinalNumberPattern$1=/^(\d+)(th|st|nd|rd)?/i;var parseOrdinalNumberPattern$1=/\d+/i;var matchEraPatterns$1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var parseEraPatterns$1={any:[/^b/i,/^(a|c)/i]};var matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns$1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var parseMonthPatterns$1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var matchDayPatterns$1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var parseDayPatterns$1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var matchDayPeriodPatterns$1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})};var locale$1={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function subMilliseconds(e,t){requiredArgs(2,arguments);var r=toInteger(t);return addMilliseconds(e,-r)}function addLeadingZeros(e,t){var r=e<0?"-":"";var a=Math.abs(e).toString();while(a.length<t){a="0"+a}return r+a}var formatters$1={y:function(e,t){var r=e.getUTCFullYear();var a=r>0?r:1-r;return addLeadingZeros(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):addLeadingZeros(r+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;var a=e.getUTCMilliseconds();var n=Math.floor(a*Math.pow(10,r-3));return addLeadingZeros(n,t.length)}};var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e);var r=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var a=t.getTime();var n=r-a;return Math.floor(n/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=1;var r=toDate(e);var a=r.getUTCDay();var n=(a<t?7:0)+a-t;r.setUTCDate(r.getUTCDate()-n);r.setUTCHours(0,0,0,0);return r}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e);var r=t.getUTCFullYear();var a=new Date(0);a.setUTCFullYear(r+1,0,4);a.setUTCHours(0,0,0,0);var n=startOfUTCISOWeek(a);var i=new Date(0);i.setUTCFullYear(r,0,4);i.setUTCHours(0,0,0,0);var o=startOfUTCISOWeek(i);if(t.getTime()>=n.getTime()){return r+1}else if(t.getTime()>=o.getTime()){return r}else{return r-1}}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e);var r=new Date(0);r.setUTCFullYear(t,0,4);r.setUTCHours(0,0,0,0);var a=startOfUTCISOWeek(r);return a}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e);var r=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var r=t||{};var a=r.locale;var n=a&&a.options&&a.options.weekStartsOn;var i=n==null?0:toInteger(n);var o=r.weekStartsOn==null?i:toInteger(r.weekStartsOn);if(!(o>=0&&o<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var s=toDate(e);var u=s.getUTCDay();var d=(u<o?7:0)+u-o;s.setUTCDate(s.getUTCDate()-d);s.setUTCHours(0,0,0,0);return s}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r=toDate(e,t);var a=r.getUTCFullYear();var n=t||{};var i=n.locale;var o=i&&i.options&&i.options.firstWeekContainsDate;var s=o==null?1:toInteger(o);var u=n.firstWeekContainsDate==null?s:toInteger(n.firstWeekContainsDate);if(!(u>=1&&u<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var d=new Date(0);d.setUTCFullYear(a+1,0,u);d.setUTCHours(0,0,0,0);var l=startOfUTCWeek(d,t);var c=new Date(0);c.setUTCFullYear(a,0,u);c.setUTCHours(0,0,0,0);var m=startOfUTCWeek(c,t);if(r.getTime()>=l.getTime()){return a+1}else if(r.getTime()>=m.getTime()){return a}else{return a-1}}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=t||{};var a=r.locale;var n=a&&a.options&&a.options.firstWeekContainsDate;var i=n==null?1:toInteger(n);var o=r.firstWeekContainsDate==null?i:toInteger(r.firstWeekContainsDate);var s=getUTCWeekYear(e,t);var u=new Date(0);u.setUTCFullYear(s,0,o);u.setUTCHours(0,0,0,0);var d=startOfUTCWeek(u,t);return d}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e);var a=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(a/MILLISECONDS_IN_WEEK)+1}var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var formatters={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear();var n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return formatters$1.y(e,t)},Y:function(e,t,r,a){var n=getUTCWeekYear(e,a);var i=n>0?n:1-n;if(t==="YY"){var o=i%100;return addLeadingZeros(o,2)}if(t==="Yo"){return r.ordinalNumber(i,{unit:"year"})}return addLeadingZeros(i,t.length)},R:function(e,t){var r=getUTCISOWeekYear(e);return addLeadingZeros(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return addLeadingZeros(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return addLeadingZeros(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return addLeadingZeros(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$1.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return addLeadingZeros(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var n=getUTCWeek(e,a);if(t==="wo"){return r.ordinalNumber(n,{unit:"week"})}return addLeadingZeros(n,t.length)},I:function(e,t,r){var a=getUTCISOWeek(e);if(t==="Io"){return r.ordinalNumber(a,{unit:"week"})}return addLeadingZeros(a,t.length)},d:function(e,t,r){if(t==="do"){return r.ordinalNumber(e.getUTCDate(),{unit:"date"})}return formatters$1.d(e,t)},D:function(e,t,r){var a=getUTCDayOfYear(e);if(t==="Do"){return r.ordinalNumber(a,{unit:"dayOfYear"})}return addLeadingZeros(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var n=e.getUTCDay();var i=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return addLeadingZeros(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var n=e.getUTCDay();var i=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return addLeadingZeros(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay();var n=a===0?7:a;switch(t){case"i":return String(n);case"ii":return addLeadingZeros(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours();var n=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours();var n;if(a===12){n=dayPeriodEnum.noon}else if(a===0){n=dayPeriodEnum.midnight}else{n=a/12>=1?"pm":"am"}switch(t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours();var n;if(a>=17){n=dayPeriodEnum.evening}else if(a>=12){n=dayPeriodEnum.afternoon}else if(a>=4){n=dayPeriodEnum.morning}else{n=dayPeriodEnum.night}switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;if(a===0)a=12;return r.ordinalNumber(a,{unit:"hour"})}return formatters$1.h(e,t)},H:function(e,t,r){if(t==="Ho"){return r.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return formatters$1.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;if(t==="Ko"){return r.ordinalNumber(a,{unit:"hour"})}return addLeadingZeros(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();if(a===0)a=24;if(t==="ko"){return r.ordinalNumber(a,{unit:"hour"})}return addLeadingZeros(a,t.length)},m:function(e,t,r){if(t==="mo"){return r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return formatters$1.m(e,t)},s:function(e,t,r){if(t==="so"){return r.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return formatters$1.s(e,t)},S:function(e,t){return formatters$1.S(e,t)},X:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();if(i===0){return"Z"}switch(t){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);case"XXXXX":case"XXX":default:return formatTimezone(i,":")}},x:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);case"xxxxx":case"xxx":default:return formatTimezone(i,":")}},O:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");case"OOOO":default:return"GMT"+formatTimezone(i,":")}},z:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(i,":");case"zzzz":default:return"GMT"+formatTimezone(i,":")}},t:function(e,t,r,a){var n=a._originalDate||e;var i=Math.floor(n.getTime()/1e3);return addLeadingZeros(i,t.length)},T:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTime();return addLeadingZeros(i,t.length)}};function formatTimezoneShort(e,t){var r=e>0?"-":"+";var a=Math.abs(e);var n=Math.floor(a/60);var i=a%60;if(i===0){return r+String(n)}var o=t||"";return r+String(n)+o+addLeadingZeros(i,2)}function formatTimezoneWithOptionalMinutes(e,t){if(e%60===0){var r=e>0?"-":"+";return r+addLeadingZeros(Math.abs(e)/60,2)}return formatTimezone(e,t)}function formatTimezone(e,t){var r=t||"";var a=e>0?"-":"+";var n=Math.abs(e);var i=addLeadingZeros(Math.floor(n/60),2);var o=addLeadingZeros(n%60,2);return a+i+r+o}function dateLongFormatter(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function timeLongFormatter(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function dateTimeLongFormatter(e,t){var r=e.match(/(P+)(p+)?/);var a=r[1];var n=r[2];if(!n){return dateLongFormatter(e,t)}var i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",dateLongFormatter(a,t)).replace("{{time}}",timeLongFormatter(n,t))}var longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter};var protectedDayOfYearTokens=["D","DD"];var protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return protectedDayOfYearTokens.indexOf(e)!==-1}function isProtectedWeekYearToken(e){return protectedWeekYearTokens.indexOf(e)!==-1}function throwProtectedError(e,t,r){if(e==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var escapedStringRegExp=/^'([^]*?)'?$/;var doubleQuoteRegExp=/''/g;var unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(e,t,r){requiredArgs(2,arguments);var a=String(t);var n=r||{};var i=n.locale||locale$1;var o=i.options&&i.options.firstWeekContainsDate;var s=o==null?1:toInteger(o);var u=n.firstWeekContainsDate==null?s:toInteger(n.firstWeekContainsDate);if(!(u>=1&&u<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var d=i.options&&i.options.weekStartsOn;var l=d==null?0:toInteger(d);var c=n.weekStartsOn==null?l:toInteger(n.weekStartsOn);if(!(c>=0&&c<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!i.localize){throw new RangeError("locale must contain localize property")}if(!i.formatLong){throw new RangeError("locale must contain formatLong property")}var m=toDate(e);if(!isValid(m)){throw new RangeError("Invalid time value")}var h=getTimezoneOffsetInMilliseconds(m);var f=subMilliseconds(m,h);var g={firstWeekContainsDate:u,weekStartsOn:c,locale:i,_originalDate:m};var v=a.match(longFormattingTokensRegExp).map((function(e){var t=e[0];if(t==="p"||t==="P"){var r=longFormatters[t];return r(e,i.formatLong,g)}return e})).join("").match(formattingTokensRegExp).map((function(r){if(r==="''"){return"'"}var a=r[0];if(a==="'"){return cleanEscapedString(r)}var o=formatters[a];if(o){if(!n.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(r)){throwProtectedError(r,t,e)}if(!n.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(r)){throwProtectedError(r,t,e)}return o(f,r,i.localize,g)}if(a.match(unescapedLatinCharacterRegExp)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return r})).join("");return v}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}var formatDistanceLocale={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}};function formatDistance(e,t,r){r=r||{};var a;if(typeof formatDistanceLocale[e]==="string"){a=formatDistanceLocale[e]}else if(t===1){a=formatDistanceLocale[e].one}else{a=formatDistanceLocale[e].other.replace("{{count}}",t)}if(r.addSuffix){if(r.comparison>0){return"over "+a}else{return a+" geleden"}}return a}var dateFormats={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"};function formatRelative(e,t,r,a){return formatRelativeLocale[e]}var eraValues={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]};var monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]};var dayValues={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]};var dayPeriodValues={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}};function ordinalNumber(e){var t=Number(e);return t+"e"}var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)e?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/};var parseEraPatterns={any:[/^v/,/^n/]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i};var parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]};var matchDayPatterns={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i};var parseDayPatterns={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]};var matchDayPeriodPatterns={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i};var parseDayPeriodPatterns={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}};var match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var locale={code:"nl",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match,options:{weekStartsOn:1,firstWeekContainsDate:4}};var wrBlockMetaCss=":host{display:block}.meta-data__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media (min-width: 1024px){.meta-data__wrapper{-ms-flex-direction:row;flex-direction:row}}.meta-data__wrapper>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}@media (min-width: 1024px){.meta-data__wrapper>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.meta-data__wrapper{width:100%;color:#ffffff;color:var(--post-text-color, #ffffff)}.meta-data__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.meta-data__item>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.meta-data__item{max-width:25ch}.meta-data__label{font-size:0.75rem;line-height:1.5rem;font-weight:700;text-transform:uppercase}.meta-data__item{font-size:1.0625rem;line-height:1.75rem;font-weight:400;text-transform:none}a.meta-data__item{text-decoration:none;color:#ffffff;color:var(--post-text-color, #ffffff)}";var WrBlockMeta=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){this.innerData=JSON.parse(this.items)};e.prototype.watchDidChangeHandler=function(e){this.innerData=JSON.parse(e)};e.prototype.render=function(){return h("div",{class:"meta-data__wrapper"},this.renderData())};e.prototype.renderData=function(){var e=this;return this.innerData.map((function(t){return h("div",{class:"meta-data__item"},e.renderItemTitle(t),e.renderItemValue(t))}))};e.prototype.renderItemTitle=function(e){return h("label",{class:"meta-data__label"},e.label)};e.prototype.renderItemValue=function(e){var t;try{t=new URL(e.value)}catch(e){t=false}if(t){return h("a",{href:t.href,class:"meta-data__item"},t.host.replace("www.","").replace("/",""))}if(Date.parse(e.value)&&e.value.includes("T00")){return this.renderItemWrappingElement(ucFirst(format(Date.parse(e.value),"LLLL RRRR",{locale:locale})))}return this.renderItemWrappingElement(e.value)};e.prototype.renderItemWrappingElement=function(e){return h("span",{class:"meta-data__item"},e)};Object.defineProperty(e,"watchers",{get:function(){return{items:["watchDidChangeHandler"]}},enumerable:false,configurable:true});return e}();WrBlockMeta.style=wrBlockMetaCss;var wrHighlightCss=".highlight{position:relative;z-index:1;padding-left:3.5rem;padding-right:3.5rem;padding-top:2.5rem;padding-bottom:2.5rem;-webkit-box-shadow:0 0 1px rgba(255, 255, 255, 0.2);box-shadow:0 0 1px rgba(255, 255, 255, 0.2)}.highlight__title{margin-top:0px;margin-bottom:0px;font-size:1.75rem;line-height:2.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.highlight__subtitle{margin-top:0px;margin-bottom:0px;margin-top:0.5rem;font-size:1.0625rem;line-height:1.75rem;font-weight:400;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.highlight a{display:inline-block;margin-top:2rem}";var WrHighlight=function(){function e(e){registerInstance(this,e);this.hover=createEvent(this,"hover",7)}e.prototype.render=function(){var e=this;return h("article",{class:"highlight",onMouseOver:function(){return e.hover.emit()}},h("h4",{class:"highlight__title"},this.itemTitle),h("h5",{class:"highlight__subtitle"},this.subTitle),h("slot",{name:"link"}))};return e}();WrHighlight.style=wrHighlightCss;var wrHighlightGridCss=".highlight-grid{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 768px){.highlight-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 1024px){.highlight-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}.highlight-grid{position:relative;grid-gap:1px;gap:1px}.background{background-color:rgba(255, 255, 255, 0.05);position:absolute;width:var(--column);height:var(--row);top:0;top:var(--position-y, 0);left:0;left:var(--position-x, 0)}";var WrHighlightGrid=function(){function e(e){registerInstance(this,e)}e.prototype.onHover=function(e){var t,r;if(e.target.offsetLeft>=this.host.offsetLeft){t=e.target.offsetLeft-this.host.offsetLeft}else{t=e.target.offsetLeft}if(e.target.offsetTop>=this.host.offsetTop){r=e.target.offsetTop-this.host.offsetTop}else{r=e.target.offsetTop}this.calculateBackgroundSize(e.target);anime({easing:"easeOutCubic",targets:this.background,left:t,top:r,duration:300})};e.prototype.componentDidLoad=function(){var e=this;this.calculateBackgroundSize();this.resizeObserver=new ResizeObserver((function(){return e.calculateBackgroundSize()}));this.resizeObserver.observe(this.wrapper)};e.prototype.render=function(){var e=this;return h("section",{class:"highlight-grid",ref:function(t){return e.wrapper=t}},h("slot",null),h("div",{class:"background",ref:function(t){return e.background=t}}))};e.prototype.calculateBackgroundSize=function(e){if(!e){e=this.host.querySelector("wr-highlight")}this.wrapper.style.setProperty("--row",e.clientHeight+"px");this.wrapper.style.setProperty("--column",e.clientWidth+"px")};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();WrHighlightGrid.style=wrHighlightGridCss;var wrLogoIconCss=":host{display:block}wr-logo-icon{position:absolute;opacity:0.4}";var WrLogoIcon=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("svg",{width:"505",height:"509",viewBox:"0 0 505 509",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"505",height:"509"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0.317017H504.753V509H0V0.317017Z",fill:"#ffffff40"})),h("g",{mask:"url(#mask0)"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M162.97 148.04L268.347 305.155C274.842 314.846 272.245 328.015 262.561 334.514L71.5886 462.62C63.4149 468.109 55.8007 465.107 52.9042 463.567C50.0114 462.02 43.2786 457.368 43.2786 447.52V182.962C43.2786 170.974 52.619 166.783 55.4789 165.788C58.2875 164.819 67.84 162.376 75.2238 171.065L186.419 338.544L222.471 314.608L110.687 146.241L109.612 144.76C93.1255 123.976 66.2894 116.179 41.2343 124.923C16.1865 133.649 0 156.433 0 182.962V447.52C0 470.267 12.4672 491.047 32.5413 501.751C41.6293 506.601 51.5621 509 61.4729 509C73.4391 509 85.3687 505.493 95.7001 498.559L286.669 370.456C316.171 350.664 324.074 310.556 304.285 281.05L198.912 123.932C187.341 106.685 190.277 83.9742 204.741 70.0331L180.425 33.7799C146.224 61.2633 138.083 110.949 162.97 148.04Z",fill:"#FFFFFE"}),h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M490.228 281.698L326.86 38.1173C301.644 0.532794 251.655 -10.5593 213.046 11.8005L237.319 47.9769C255.988 38.8414 279.028 44.4843 290.918 62.2215L454.29 305.806C460.576 315.182 462.836 326.443 460.653 337.517C458.466 348.59 452.103 358.154 442.605 364.521L392.133 398.883L358.732 421.251C337.952 435.162 302.895 433.312 290.505 417.571C290.135 417.111 289.788 416.628 289.459 416.127L253.403 440.067C254.405 441.577 255.473 443.043 256.548 444.404C286.149 481.963 346.85 481.304 382.814 457.208L466.834 400.383C485.814 387.656 498.691 368.302 503.113 345.884C507.53 323.466 502.952 300.671 490.228 281.698Z",fill:"#FFFFFE40"}))))};return e}();WrLogoIcon.style=wrLogoIconCss;var wrScrollAnimationCss=":host{display:block}";var WrScrollAnimation=function(){function e(e){registerInstance(this,e);this.once=false;this.noTranslate=false;this.noFade=false;this.direction="up";this.duration=300}e.prototype.componentWillLoad=function(){var e=this;this.tl=anime({easing:"linear",targets:this.host,duration:this.duration,translateY:this.getTranslateYValue(),translateX:this.getTranslateXValue(),opacity:this.getOpacityChange(),autoplay:false});var t=new IntersectionObserver((function(r){var a=r[0];if(!a.isIntersecting){return}e.tl.play();if(e.once){t.unobserve(e.host)}}));t.observe(this.host)};e.prototype.render=function(){return h(Host,null,h("slot",null))};e.prototype.getTranslateYValue=function(){if(!["up","down"].includes(this.direction)||this.noTranslate){return["0rem","0rem"]}if(this.direction==="up"){return["2rem","0rem"]}return["-2rem","0rem"]};e.prototype.getTranslateXValue=function(){if(!["left","right"].includes(this.direction)||this.noTranslate){return["0rem","0rem"]}if(this.direction==="right"){return["2rem","0rem"]}return["-2rem","0rem"]};e.prototype.getOpacityChange=function(){if(this.noFade){return[1,1]}return[0,1]};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();WrScrollAnimation.style=wrScrollAnimationCss;export{WrBlockMeta as wr_block_meta,WrHighlight as wr_highlight,WrHighlightGrid as wr_highlight_grid,WrLogoIcon as wr_logo_icon,WrScrollAnimation as wr_scroll_animation}; | ||
import{r as registerInstance,h,c as createEvent,g as getElement,H as Host}from"./index-e41e20bc.js";import{u as ucFirst,r as round10}from"./utils-5a02edf0.js";import{a as anime}from"./anime.es-d8ec8d88.js";function toInteger(e){if(e===null||e===true||e===false){return NaN}var t=Number(e);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}function requiredArgs(e,t){if(t.length<e){throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);if(e instanceof Date||typeof e==="object"&&t==="[object Date]"){return new Date(e.getTime())}else if(typeof e==="number"||t==="[object Number]"){return new Date(e)}else{if((typeof e==="string"||t==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule");console.warn((new Error).stack)}return new Date(NaN)}}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime();var a=toInteger(t);return new Date(r+a)}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));t.setUTCFullYear(e.getFullYear());return e.getTime()-t.getTime()}function isDate(e){requiredArgs(1,arguments);return e instanceof Date||typeof e==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){requiredArgs(1,arguments);if(!isDate(e)&&typeof e!=="number"){return false}var t=toDate(e);return!isNaN(Number(t))}var formatDistanceLocale$1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var formatDistance$1=function(e,t,r){var a;var n=formatDistanceLocale$1[e];if(typeof n==="string"){a=n}else if(t===1){a=n.one}else{a=n.other.replace("{{count}}",t.toString())}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"in "+a}else{return a+" ago"}}return a};function buildFormatLongFn(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=t.width?String(t.width):e.defaultWidth;var a=e.formats[r]||e.formats[e.defaultWidth];return a}}var dateFormats$1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var timeFormats$1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var dateTimeFormats$1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};var formatRelativeLocale$1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var formatRelative$1=function(e,t,r,a){return formatRelativeLocale$1[e]};function buildLocalizeFn(e){return function(t,r){var a=r||{};var n=a.context?String(a.context):"standalone";var i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth;var s=a.width?String(a.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var u=e.defaultWidth;var d=a.width?String(a.width):e.defaultWidth;i=e.values[d]||e.values[u]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var eraValues$1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var quarterValues$1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var monthValues$1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var dayValues$1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var ordinalNumber$1=function(e,t){var r=Number(e);var a=r%100;if(a>20||a<10){switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}}return r+"th"};var localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return function(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=r.width;var n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth];var i=t.match(n);if(!i){return null}var o=i[0];var s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];var u=Array.isArray(s)?findIndex(s,(function(e){return e.test(o)})):findKey(s,(function(e){return e.test(o)}));var d;d=e.valueCallback?e.valueCallback(u):u;d=r.valueCallback?r.valueCallback(d):d;var l=t.slice(o.length);return{value:d,rest:l}}}function findKey(e,t){for(var r in e){if(e.hasOwnProperty(r)&&t(e[r])){return r}}return undefined}function findIndex(e,t){for(var r=0;r<e.length;r++){if(t(e[r])){return r}}return undefined}function buildMatchPatternFn(e){return function(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=t.match(e.matchPattern);if(!a)return null;var n=a[0];var i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(n.length);return{value:o,rest:s}}}var matchOrdinalNumberPattern$1=/^(\d+)(th|st|nd|rd)?/i;var parseOrdinalNumberPattern$1=/\d+/i;var matchEraPatterns$1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var parseEraPatterns$1={any:[/^b/i,/^(a|c)/i]};var matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns$1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var parseMonthPatterns$1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var matchDayPatterns$1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var parseDayPatterns$1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var matchDayPeriodPatterns$1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})};var locale$1={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function subMilliseconds(e,t){requiredArgs(2,arguments);var r=toInteger(t);return addMilliseconds(e,-r)}function addLeadingZeros(e,t){var r=e<0?"-":"";var a=Math.abs(e).toString();while(a.length<t){a="0"+a}return r+a}var formatters$1={y:function(e,t){var r=e.getUTCFullYear();var a=r>0?r:1-r;return addLeadingZeros(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):addLeadingZeros(r+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;var a=e.getUTCMilliseconds();var n=Math.floor(a*Math.pow(10,r-3));return addLeadingZeros(n,t.length)}};var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e);var r=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var a=t.getTime();var n=r-a;return Math.floor(n/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=1;var r=toDate(e);var a=r.getUTCDay();var n=(a<t?7:0)+a-t;r.setUTCDate(r.getUTCDate()-n);r.setUTCHours(0,0,0,0);return r}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e);var r=t.getUTCFullYear();var a=new Date(0);a.setUTCFullYear(r+1,0,4);a.setUTCHours(0,0,0,0);var n=startOfUTCISOWeek(a);var i=new Date(0);i.setUTCFullYear(r,0,4);i.setUTCHours(0,0,0,0);var o=startOfUTCISOWeek(i);if(t.getTime()>=n.getTime()){return r+1}else if(t.getTime()>=o.getTime()){return r}else{return r-1}}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e);var r=new Date(0);r.setUTCFullYear(t,0,4);r.setUTCHours(0,0,0,0);var a=startOfUTCISOWeek(r);return a}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e);var r=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var r=t||{};var a=r.locale;var n=a&&a.options&&a.options.weekStartsOn;var i=n==null?0:toInteger(n);var o=r.weekStartsOn==null?i:toInteger(r.weekStartsOn);if(!(o>=0&&o<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var s=toDate(e);var u=s.getUTCDay();var d=(u<o?7:0)+u-o;s.setUTCDate(s.getUTCDate()-d);s.setUTCHours(0,0,0,0);return s}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r=toDate(e,t);var a=r.getUTCFullYear();var n=t||{};var i=n.locale;var o=i&&i.options&&i.options.firstWeekContainsDate;var s=o==null?1:toInteger(o);var u=n.firstWeekContainsDate==null?s:toInteger(n.firstWeekContainsDate);if(!(u>=1&&u<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var d=new Date(0);d.setUTCFullYear(a+1,0,u);d.setUTCHours(0,0,0,0);var l=startOfUTCWeek(d,t);var c=new Date(0);c.setUTCFullYear(a,0,u);c.setUTCHours(0,0,0,0);var m=startOfUTCWeek(c,t);if(r.getTime()>=l.getTime()){return a+1}else if(r.getTime()>=m.getTime()){return a}else{return a-1}}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=t||{};var a=r.locale;var n=a&&a.options&&a.options.firstWeekContainsDate;var i=n==null?1:toInteger(n);var o=r.firstWeekContainsDate==null?i:toInteger(r.firstWeekContainsDate);var s=getUTCWeekYear(e,t);var u=new Date(0);u.setUTCFullYear(s,0,o);u.setUTCHours(0,0,0,0);var d=startOfUTCWeek(u,t);return d}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e);var a=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(a/MILLISECONDS_IN_WEEK)+1}var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var formatters={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear();var n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return formatters$1.y(e,t)},Y:function(e,t,r,a){var n=getUTCWeekYear(e,a);var i=n>0?n:1-n;if(t==="YY"){var o=i%100;return addLeadingZeros(o,2)}if(t==="Yo"){return r.ordinalNumber(i,{unit:"year"})}return addLeadingZeros(i,t.length)},R:function(e,t){var r=getUTCISOWeekYear(e);return addLeadingZeros(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return addLeadingZeros(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return addLeadingZeros(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return addLeadingZeros(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$1.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return addLeadingZeros(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var n=getUTCWeek(e,a);if(t==="wo"){return r.ordinalNumber(n,{unit:"week"})}return addLeadingZeros(n,t.length)},I:function(e,t,r){var a=getUTCISOWeek(e);if(t==="Io"){return r.ordinalNumber(a,{unit:"week"})}return addLeadingZeros(a,t.length)},d:function(e,t,r){if(t==="do"){return r.ordinalNumber(e.getUTCDate(),{unit:"date"})}return formatters$1.d(e,t)},D:function(e,t,r){var a=getUTCDayOfYear(e);if(t==="Do"){return r.ordinalNumber(a,{unit:"dayOfYear"})}return addLeadingZeros(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var n=e.getUTCDay();var i=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return addLeadingZeros(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var n=e.getUTCDay();var i=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return addLeadingZeros(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay();var n=a===0?7:a;switch(t){case"i":return String(n);case"ii":return addLeadingZeros(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours();var n=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours();var n;if(a===12){n=dayPeriodEnum.noon}else if(a===0){n=dayPeriodEnum.midnight}else{n=a/12>=1?"pm":"am"}switch(t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours();var n;if(a>=17){n=dayPeriodEnum.evening}else if(a>=12){n=dayPeriodEnum.afternoon}else if(a>=4){n=dayPeriodEnum.morning}else{n=dayPeriodEnum.night}switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;if(a===0)a=12;return r.ordinalNumber(a,{unit:"hour"})}return formatters$1.h(e,t)},H:function(e,t,r){if(t==="Ho"){return r.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return formatters$1.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;if(t==="Ko"){return r.ordinalNumber(a,{unit:"hour"})}return addLeadingZeros(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();if(a===0)a=24;if(t==="ko"){return r.ordinalNumber(a,{unit:"hour"})}return addLeadingZeros(a,t.length)},m:function(e,t,r){if(t==="mo"){return r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return formatters$1.m(e,t)},s:function(e,t,r){if(t==="so"){return r.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return formatters$1.s(e,t)},S:function(e,t){return formatters$1.S(e,t)},X:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();if(i===0){return"Z"}switch(t){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);case"XXXXX":case"XXX":default:return formatTimezone(i,":")}},x:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);case"xxxxx":case"xxx":default:return formatTimezone(i,":")}},O:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");case"OOOO":default:return"GMT"+formatTimezone(i,":")}},z:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(i,":");case"zzzz":default:return"GMT"+formatTimezone(i,":")}},t:function(e,t,r,a){var n=a._originalDate||e;var i=Math.floor(n.getTime()/1e3);return addLeadingZeros(i,t.length)},T:function(e,t,r,a){var n=a._originalDate||e;var i=n.getTime();return addLeadingZeros(i,t.length)}};function formatTimezoneShort(e,t){var r=e>0?"-":"+";var a=Math.abs(e);var n=Math.floor(a/60);var i=a%60;if(i===0){return r+String(n)}var o=t||"";return r+String(n)+o+addLeadingZeros(i,2)}function formatTimezoneWithOptionalMinutes(e,t){if(e%60===0){var r=e>0?"-":"+";return r+addLeadingZeros(Math.abs(e)/60,2)}return formatTimezone(e,t)}function formatTimezone(e,t){var r=t||"";var a=e>0?"-":"+";var n=Math.abs(e);var i=addLeadingZeros(Math.floor(n/60),2);var o=addLeadingZeros(n%60,2);return a+i+r+o}function dateLongFormatter(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function timeLongFormatter(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function dateTimeLongFormatter(e,t){var r=e.match(/(P+)(p+)?/);var a=r[1];var n=r[2];if(!n){return dateLongFormatter(e,t)}var i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",dateLongFormatter(a,t)).replace("{{time}}",timeLongFormatter(n,t))}var longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter};var protectedDayOfYearTokens=["D","DD"];var protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return protectedDayOfYearTokens.indexOf(e)!==-1}function isProtectedWeekYearToken(e){return protectedWeekYearTokens.indexOf(e)!==-1}function throwProtectedError(e,t,r){if(e==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}else if(e==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var escapedStringRegExp=/^'([^]*?)'?$/;var doubleQuoteRegExp=/''/g;var unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(e,t,r){requiredArgs(2,arguments);var a=String(t);var n=r||{};var i=n.locale||locale$1;var o=i.options&&i.options.firstWeekContainsDate;var s=o==null?1:toInteger(o);var u=n.firstWeekContainsDate==null?s:toInteger(n.firstWeekContainsDate);if(!(u>=1&&u<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var d=i.options&&i.options.weekStartsOn;var l=d==null?0:toInteger(d);var c=n.weekStartsOn==null?l:toInteger(n.weekStartsOn);if(!(c>=0&&c<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!i.localize){throw new RangeError("locale must contain localize property")}if(!i.formatLong){throw new RangeError("locale must contain formatLong property")}var m=toDate(e);if(!isValid(m)){throw new RangeError("Invalid time value")}var h=getTimezoneOffsetInMilliseconds(m);var f=subMilliseconds(m,h);var g={firstWeekContainsDate:u,weekStartsOn:c,locale:i,_originalDate:m};var v=a.match(longFormattingTokensRegExp).map((function(e){var t=e[0];if(t==="p"||t==="P"){var r=longFormatters[t];return r(e,i.formatLong,g)}return e})).join("").match(formattingTokensRegExp).map((function(r){if(r==="''"){return"'"}var a=r[0];if(a==="'"){return cleanEscapedString(r)}var o=formatters[a];if(o){if(!n.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(r)){throwProtectedError(r,t,e)}if(!n.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(r)){throwProtectedError(r,t,e)}return o(f,r,i.localize,g)}if(a.match(unescapedLatinCharacterRegExp)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return r})).join("");return v}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}var formatDistanceLocale={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}};function formatDistance(e,t,r){r=r||{};var a;if(typeof formatDistanceLocale[e]==="string"){a=formatDistanceLocale[e]}else if(t===1){a=formatDistanceLocale[e].one}else{a=formatDistanceLocale[e].other.replace("{{count}}",t)}if(r.addSuffix){if(r.comparison>0){return"over "+a}else{return a+" geleden"}}return a}var dateFormats={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"};function formatRelative(e,t,r,a){return formatRelativeLocale[e]}var eraValues={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]};var monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]};var dayValues={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]};var dayPeriodValues={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}};function ordinalNumber(e){var t=Number(e);return t+"e"}var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)e?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/};var parseEraPatterns={any:[/^v/,/^n/]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i};var parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]};var matchDayPatterns={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i};var parseDayPatterns={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]};var matchDayPeriodPatterns={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i};var parseDayPeriodPatterns={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}};var match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var locale={code:"nl",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match,options:{weekStartsOn:1,firstWeekContainsDate:4}};var wrBlockMetaCss=":host{display:block}.meta-data__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media (min-width: 1024px){.meta-data__wrapper{-ms-flex-direction:row;flex-direction:row}}.meta-data__wrapper>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}@media (min-width: 1024px){.meta-data__wrapper>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.meta-data__wrapper{width:100%;color:#ffffff;color:var(--post-text-color, #ffffff)}.meta-data__item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.meta-data__item>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.meta-data__item{max-width:25ch}.meta-data__label{font-size:0.75rem;line-height:1.5rem;font-weight:700;text-transform:uppercase}.meta-data__item{font-size:1.0625rem;line-height:1.75rem;font-weight:400;text-transform:none}a.meta-data__item{text-decoration:none;color:#ffffff;color:var(--post-text-color, #ffffff)}";var WrBlockMeta=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){this.innerData=JSON.parse(this.items)};e.prototype.watchDidChangeHandler=function(e){this.innerData=JSON.parse(e)};e.prototype.render=function(){return h("div",{class:"meta-data__wrapper"},this.renderData())};e.prototype.renderData=function(){var e=this;return this.innerData.map((function(t){return h("div",{class:"meta-data__item"},e.renderItemTitle(t),e.renderItemValue(t))}))};e.prototype.renderItemTitle=function(e){return h("label",{class:"meta-data__label"},e.label)};e.prototype.renderItemValue=function(e){var t;try{t=new URL(e.value)}catch(e){t=false}if(t){return h("a",{href:t.href,class:"meta-data__item"},t.host.replace("www.","").replace("/",""))}if(Date.parse(e.value)&&e.value.includes("T00")){return this.renderItemWrappingElement(ucFirst(format(Date.parse(e.value),"LLLL RRRR",{locale:locale})))}return this.renderItemWrappingElement(e.value)};e.prototype.renderItemWrappingElement=function(e){return h("span",{class:"meta-data__item"},e)};Object.defineProperty(e,"watchers",{get:function(){return{items:["watchDidChangeHandler"]}},enumerable:false,configurable:true});return e}();WrBlockMeta.style=wrBlockMetaCss;var wrHighlightCss=".highlight{position:relative;z-index:1;padding-left:3.5rem;padding-right:3.5rem;padding-top:2.5rem;padding-bottom:2.5rem;-webkit-box-shadow:0 0 1px rgba(255, 255, 255, 0.2);box-shadow:0 0 1px rgba(255, 255, 255, 0.2)}.highlight__title{margin-top:0px;margin-bottom:0px;font-size:1.75rem;line-height:2.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.highlight__subtitle{margin-top:0px;margin-bottom:0px;margin-top:0.5rem;font-size:1.0625rem;line-height:1.75rem;font-weight:400;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.highlight a{display:inline-block;margin-top:2rem}";var WrHighlight=function(){function e(e){registerInstance(this,e);this.hover=createEvent(this,"hover",7)}e.prototype.render=function(){var e=this;return h("article",{class:"highlight",onMouseOver:function(){return e.hover.emit()}},h("h4",{class:"highlight__title"},this.itemTitle),h("h5",{class:"highlight__subtitle"},this.subTitle),h("slot",{name:"link"}))};return e}();WrHighlight.style=wrHighlightCss;var isDivisible=function(e,t){e=round10(e);t=round10(t);return e%t===0};var wrHighlightGridCss=".highlight-grid{grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 768px){.highlight-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 1024px){.highlight-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}}.highlight-grid{display:grid;gap:1px;-ms-flex-align:stretch;align-items:stretch;position:relative}.background{background-color:rgba(255, 255, 255, 0.05);position:absolute;width:var(--column);height:var(--row)}";var WrHighlightGrid=function(){function e(e){registerInstance(this,e)}e.prototype.onHover=function(e){var t,r;var a=e.target.offsetLeft;var n=e.target.clientWidth;if(isDivisible(a,n)){t=e.target.offsetLeft}else{t=e.target.offsetLeft-this.host.offsetLeft}if(e.target.offsetTop>=this.host.offsetTop){r=e.target.offsetTop-this.host.offsetTop}else{r=e.target.offsetTop}this.calculateBackgroundSize(e.target);anime({easing:"easeOutCubic",targets:this.background,left:t,top:r,duration:300})};e.prototype.componentDidLoad=function(){var e=this;this.calculateBackgroundSize();this.resizeObserver=new ResizeObserver((function(){return e.calculateBackgroundSize()}));this.resizeObserver.observe(this.wrapper)};e.prototype.render=function(){var e=this;return h("section",{class:"highlight-grid",ref:function(t){return e.wrapper=t}},h("slot",null),h("div",{class:"background",ref:function(t){return e.background=t}}))};e.prototype.calculateBackgroundSize=function(e){if(!e){e=this.host.querySelector("wr-highlight")}this.wrapper.style.setProperty("--row",e.clientHeight+"px");this.wrapper.style.setProperty("--column",e.clientWidth+"px")};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();WrHighlightGrid.style=wrHighlightGridCss;var wrLogoIconCss=":host{display:block}wr-logo-icon{position:absolute;opacity:0.4}";var WrLogoIcon=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("svg",{width:"505",height:"509",viewBox:"0 0 505 509",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"505",height:"509"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0.317017H504.753V509H0V0.317017Z",fill:"#ffffff40"})),h("g",{mask:"url(#mask0)"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M162.97 148.04L268.347 305.155C274.842 314.846 272.245 328.015 262.561 334.514L71.5886 462.62C63.4149 468.109 55.8007 465.107 52.9042 463.567C50.0114 462.02 43.2786 457.368 43.2786 447.52V182.962C43.2786 170.974 52.619 166.783 55.4789 165.788C58.2875 164.819 67.84 162.376 75.2238 171.065L186.419 338.544L222.471 314.608L110.687 146.241L109.612 144.76C93.1255 123.976 66.2894 116.179 41.2343 124.923C16.1865 133.649 0 156.433 0 182.962V447.52C0 470.267 12.4672 491.047 32.5413 501.751C41.6293 506.601 51.5621 509 61.4729 509C73.4391 509 85.3687 505.493 95.7001 498.559L286.669 370.456C316.171 350.664 324.074 310.556 304.285 281.05L198.912 123.932C187.341 106.685 190.277 83.9742 204.741 70.0331L180.425 33.7799C146.224 61.2633 138.083 110.949 162.97 148.04Z",fill:"#FFFFFE"}),h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M490.228 281.698L326.86 38.1173C301.644 0.532794 251.655 -10.5593 213.046 11.8005L237.319 47.9769C255.988 38.8414 279.028 44.4843 290.918 62.2215L454.29 305.806C460.576 315.182 462.836 326.443 460.653 337.517C458.466 348.59 452.103 358.154 442.605 364.521L392.133 398.883L358.732 421.251C337.952 435.162 302.895 433.312 290.505 417.571C290.135 417.111 289.788 416.628 289.459 416.127L253.403 440.067C254.405 441.577 255.473 443.043 256.548 444.404C286.149 481.963 346.85 481.304 382.814 457.208L466.834 400.383C485.814 387.656 498.691 368.302 503.113 345.884C507.53 323.466 502.952 300.671 490.228 281.698Z",fill:"#FFFFFE40"}))))};return e}();WrLogoIcon.style=wrLogoIconCss;var wrScrollAnimationCss=":host{display:block}";var WrScrollAnimation=function(){function e(e){registerInstance(this,e);this.once=false;this.noTranslate=false;this.noFade=false;this.direction="up";this.duration=300}e.prototype.componentWillLoad=function(){var e=this;this.tl=anime({easing:"linear",targets:this.host,duration:this.duration,translateY:this.getTranslateYValue(),translateX:this.getTranslateXValue(),opacity:this.getOpacityChange(),autoplay:false});var t=new IntersectionObserver((function(r){var a=r[0];if(!a.isIntersecting){return}e.tl.play();if(e.once){t.unobserve(e.host)}}));t.observe(this.host)};e.prototype.render=function(){return h(Host,null,h("slot",null))};e.prototype.getTranslateYValue=function(){if(!["up","down"].includes(this.direction)||this.noTranslate){return["0rem","0rem"]}if(this.direction==="up"){return["2rem","0rem"]}return["-2rem","0rem"]};e.prototype.getTranslateXValue=function(){if(!["left","right"].includes(this.direction)||this.noTranslate){return["0rem","0rem"]}if(this.direction==="right"){return["2rem","0rem"]}return["-2rem","0rem"]};e.prototype.getOpacityChange=function(){if(this.noFade){return[1,1]}return[0,1]};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();WrScrollAnimation.style=wrScrollAnimationCss;export{WrBlockMeta as wr_block_meta,WrHighlight as wr_highlight,WrHighlightGrid as wr_highlight_grid,WrLogoIcon as wr_logo_icon,WrScrollAnimation as wr_scroll_animation}; |
@@ -1,1 +0,1 @@ | ||
import{r as registerInstance,h,g as getElement}from"./index-e41e20bc.js";import{t as throttle}from"./utils-7b24fa9c.js";var Point=function(){function t(t,i){this.x=t;this.y=i}return t}();var Vector=function(){function t(t,i){this.x=t;this.y=i}Object.defineProperty(t.prototype,"normalized",{get:function(){return new Point(this.x/Math.abs(this.x),this.y/Math.abs(this.y))},enumerable:false,configurable:true});t.prototype.interval=function(t){return new Point(this.x/t.x,this.y/t.y)};return t}();var Plane=function(){function t(t,i){this.width=t;this.height=i;this.width=t;this.height=i;this.center=new Point(t/2,i/2);this.area=this.width*this.height}t.prototype.getPointVectorFromCenter=function(t){return new Vector(t.x-this.center.x,this.center.y-t.y)};t.prototype._isPointInside=function(t){return t.x<this.width&&t.x>0&&t.y>0&&t.y<this.height};Object.defineProperty(t.prototype,"outerEdge",{get:function(){return new Point(this.width,this.height)},enumerable:false,configurable:true});return t}();var wrCaseHighlightCss=".perspective-wrapper{-webkit-perspective:1200px;perspective:1200px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.case-card{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);border-radius:.25rem;position:relative;width:100%;display:-ms-flexbox;display:flex;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(245, 149, 6, var(--tw-bg-opacity));height:15rem;--rotate-x:0;--rotate-y:0;will-change:transform}.case-card__background{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);display:block;position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-radius:.25rem;--tw-scale-x:1.25;--tw-scale-y:1.25;-webkit-transform:var(--tw-transform);transform:var(--tw-transform);transform:var(--tw-transform);-o-object-fit:cover;object-fit:cover;height:100%;width:100%;background-position:var(--preferred-x) var(--preferred-y)}.case-card__footer{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);margin-top:auto;padding-left:1rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;position:relative;z-index:1;pointer-events:none}.case-card__link{position:absolute;top:0px;right:0px;bottom:0px;left:0px;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(53, 53, 53, 0.0001)), color-stop(99.29%, rgba(0, 0, 0, 0.8)));background-image:linear-gradient(180deg, rgba(53, 53, 53, 0.0001) 0%, rgba(0, 0, 0, 0.8) 99.29%)}.case-card h3{--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity));margin-top:0px;margin-bottom:0px}.case-card__button{-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;height:3rem;width:3rem;padding:0px;--tw-bg-opacity:1;background-color:rgba(26, 26, 26, var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity));border-top-left-radius:.25rem;border-bottom-right-radius:.25rem;border-width:0px;margin-left:auto}.case-card:hover{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);--tw-shadow:0 12px 25px rgb(0, 0, 0, 0.05);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 2rem) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));transform:translate3d(0, 0, 2rem) rotateX(var(--rotate-y)) rotateY(var(--rotate-x))}.case-card:hover .case-card__button{-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);--tw-bg-opacity:1;background-color:rgba(245, 149, 6, var(--tw-bg-opacity))}.case-card:hover .case-card__background{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:linear;transition-timing-function:linear}.case-card:hover h3{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);-webkit-transform:translate3d(calc(var(--translate-x) * -1.25), calc(var(--translate-y) * -1.25), 2rem);transform:translate3d(calc(var(--translate-x) * -1.25), calc(var(--translate-y) * -1.25), 2rem);-webkit-transform-origin:left bottom;transform-origin:left bottom}";var WrCaseHighlight=function(){function t(t){registerInstance(this,t);this.backgroundX="50%";this.backgroundY="50%"}t.prototype.componentDidLoad=function(){this.card.addEventListener("mousemove",throttle(this.handleMouseOver.bind(this),16));this.card.addEventListener("mouseout",this.handleMouseLeave.bind(this))};t.prototype.handleMouseLeave=function(){var t=this.card;t.style.setProperty("--rotate-x","0deg");t.style.setProperty("--rotate-y","0deg")};t.prototype.handleMouseOver=function(t){var i=this.card;var r=new Plane(i.clientWidth,i.clientHeight);var n=new Point(t.offsetX,t.offsetY);var e=r.getPointVectorFromCenter(n);i.style.setProperty("--rotate-x",e.interval(r.outerEdge).x*12+"deg");i.style.setProperty("--translate-x",e.interval(r.outerEdge).x*12+"%");i.style.setProperty("--rotate-y",e.interval(r.outerEdge).y*25+"deg");i.style.setProperty("--translate-y",e.interval(r.outerEdge).y*25+"%")};t.prototype.render=function(){var t=this;return h("div",{class:"perspective-wrapper"},h("article",{class:"case-card",ref:function(i){return t.card=i}},this.renderImage(),h("a",{class:"case-card__link",href:this.href}),h("footer",{class:"case-card__footer"},h("h3",{class:"is-h6"},this.caseTitle),h("button",{class:"case-card__button"},this.renderPlayArrow()))))};t.prototype.renderImage=function(){return h("img",{class:"case-card__background",loading:"lazy",src:this.background,alt:""})};t.prototype.renderPlayArrow=function(){return h("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"play-arrow"},h("path",{d:"M0 1.49946C0.00724877 1.22427 0.0894759 0.955945 0.238208 0.722137C0.38694 0.48833 0.596797 0.297496 0.846152 0.169301C1.08606 0.0475163 1.35458 -0.0103541 1.62467 0.00151974C1.89476 0.0133936 2.15687 0.0945922 2.38461 0.236936L9.30768 4.74594C9.52148 4.88349 9.69677 5.07099 9.81766 5.29145C9.93855 5.51191 10.0012 5.75836 9.99998 6.00846C9.99911 6.25338 9.93697 6.49439 9.819 6.7105C9.70102 6.92661 9.53077 7.11128 9.32306 7.24843L2.32307 11.7574C2.0971 11.9047 1.83392 11.9882 1.5625 11.9988C1.29107 12.0095 1.02191 11.9467 0.784614 11.8176C0.548105 11.6877 0.350957 11.499 0.213162 11.2707C0.0753673 11.0424 0.00182731 10.7825 0 10.5175L0 1.49946Z",fill:"currentColor"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();WrCaseHighlight.style=wrCaseHighlightCss;export{WrCaseHighlight as wr_case_highlight}; | ||
import{r as registerInstance,h,g as getElement}from"./index-e41e20bc.js";import{t as throttle}from"./utils-5a02edf0.js";var Point=function(){function t(t,i){this.x=t;this.y=i}return t}();var Vector=function(){function t(t,i){this.x=t;this.y=i}Object.defineProperty(t.prototype,"normalized",{get:function(){return new Point(this.x/Math.abs(this.x),this.y/Math.abs(this.y))},enumerable:false,configurable:true});t.prototype.interval=function(t){return new Point(this.x/t.x,this.y/t.y)};return t}();var Plane=function(){function t(t,i){this.width=t;this.height=i;this.width=t;this.height=i;this.center=new Point(t/2,i/2);this.area=this.width*this.height}t.prototype.getPointVectorFromCenter=function(t){return new Vector(t.x-this.center.x,this.center.y-t.y)};t.prototype._isPointInside=function(t){return t.x<this.width&&t.x>0&&t.y>0&&t.y<this.height};Object.defineProperty(t.prototype,"outerEdge",{get:function(){return new Point(this.width,this.height)},enumerable:false,configurable:true});return t}();var wrCaseHighlightCss=".perspective-wrapper{-webkit-perspective:1200px;perspective:1200px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.case-card{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);border-radius:.25rem;position:relative;width:100%;display:-ms-flexbox;display:flex;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(245, 149, 6, var(--tw-bg-opacity));height:15rem;--rotate-x:0;--rotate-y:0;will-change:transform}.case-card__background{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);display:block;position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-radius:.25rem;--tw-scale-x:1.25;--tw-scale-y:1.25;-webkit-transform:var(--tw-transform);transform:var(--tw-transform);transform:var(--tw-transform);-o-object-fit:cover;object-fit:cover;height:100%;width:100%;background-position:var(--preferred-x) var(--preferred-y)}.case-card__footer{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);margin-top:auto;padding-left:1rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;position:relative;z-index:1;pointer-events:none}.case-card__link{position:absolute;top:0px;right:0px;bottom:0px;left:0px;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(53, 53, 53, 0.0001)), color-stop(99.29%, rgba(0, 0, 0, 0.8)));background-image:linear-gradient(180deg, rgba(53, 53, 53, 0.0001) 0%, rgba(0, 0, 0, 0.8) 99.29%)}.case-card h3{--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity));margin-top:0px;margin-bottom:0px}.case-card__button{-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:auto;height:3rem;width:3rem;padding:0px;--tw-bg-opacity:1;background-color:rgba(26, 26, 26, var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity));border-top-left-radius:.25rem;border-bottom-right-radius:.25rem;border-width:0px;margin-left:auto}.case-card:hover{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);--tw-shadow:0 12px 25px rgb(0, 0, 0, 0.05);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 2rem) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));transform:translate3d(0, 0, 2rem) rotateX(var(--rotate-y)) rotateY(var(--rotate-x))}.case-card:hover .case-card__button{-webkit-transition-property:background-color, border-color, color, fill, stroke;transition-property:background-color, border-color, color, fill, stroke;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);--tw-bg-opacity:1;background-color:rgba(245, 149, 6, var(--tw-bg-opacity))}.case-card:hover .case-card__background{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:linear;transition-timing-function:linear}.case-card:hover h3{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:225ms;transition-duration:225ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-timing-function:cubic-bezier(0.4, 0, 1, 1);-webkit-transform:translate3d(calc(var(--translate-x) * -1.25), calc(var(--translate-y) * -1.25), 2rem);transform:translate3d(calc(var(--translate-x) * -1.25), calc(var(--translate-y) * -1.25), 2rem);-webkit-transform-origin:left bottom;transform-origin:left bottom}";var WrCaseHighlight=function(){function t(t){registerInstance(this,t);this.backgroundX="50%";this.backgroundY="50%"}t.prototype.componentDidLoad=function(){this.card.addEventListener("mousemove",throttle(this.handleMouseOver.bind(this),16));this.card.addEventListener("mouseout",this.handleMouseLeave.bind(this))};t.prototype.handleMouseLeave=function(){var t=this.card;t.style.setProperty("--rotate-x","0deg");t.style.setProperty("--rotate-y","0deg")};t.prototype.handleMouseOver=function(t){var i=this.card;var r=new Plane(i.clientWidth,i.clientHeight);var n=new Point(t.offsetX,t.offsetY);var e=r.getPointVectorFromCenter(n);i.style.setProperty("--rotate-x",e.interval(r.outerEdge).x*12+"deg");i.style.setProperty("--translate-x",e.interval(r.outerEdge).x*12+"%");i.style.setProperty("--rotate-y",e.interval(r.outerEdge).y*25+"deg");i.style.setProperty("--translate-y",e.interval(r.outerEdge).y*25+"%")};t.prototype.render=function(){var t=this;return h("div",{class:"perspective-wrapper"},h("article",{class:"case-card",ref:function(i){return t.card=i}},this.renderImage(),h("a",{class:"case-card__link",href:this.href}),h("footer",{class:"case-card__footer"},h("h3",{class:"is-h6"},this.caseTitle),h("button",{class:"case-card__button"},this.renderPlayArrow()))))};t.prototype.renderImage=function(){return h("img",{class:"case-card__background",loading:"lazy",src:this.background,alt:""})};t.prototype.renderPlayArrow=function(){return h("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"play-arrow"},h("path",{d:"M0 1.49946C0.00724877 1.22427 0.0894759 0.955945 0.238208 0.722137C0.38694 0.48833 0.596797 0.297496 0.846152 0.169301C1.08606 0.0475163 1.35458 -0.0103541 1.62467 0.00151974C1.89476 0.0133936 2.15687 0.0945922 2.38461 0.236936L9.30768 4.74594C9.52148 4.88349 9.69677 5.07099 9.81766 5.29145C9.93855 5.51191 10.0012 5.75836 9.99998 6.00846C9.99911 6.25338 9.93697 6.49439 9.819 6.7105C9.70102 6.92661 9.53077 7.11128 9.32306 7.24843L2.32307 11.7574C2.0971 11.9047 1.83392 11.9882 1.5625 11.9988C1.29107 12.0095 1.02191 11.9467 0.784614 11.8176C0.548105 11.6877 0.350957 11.499 0.213162 11.2707C0.0753673 11.0424 0.00182731 10.7825 0 10.5175L0 1.49946Z",fill:"currentColor"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();WrCaseHighlight.style=wrCaseHighlightCss;export{WrCaseHighlight as wr_case_highlight}; |
import { r as registerInstance, h, g as getElement } from './index-e41e20bc.js'; | ||
import { t as throttle } from './utils-7b24fa9c.js'; | ||
import { t as throttle } from './utils-5a02edf0.js'; | ||
@@ -4,0 +4,0 @@ class Point { |
@@ -16,2 +16,13 @@ /** | ||
export declare const throttle: (fn: any, wait: any) => () => void; | ||
export default throttle; | ||
/** | ||
* Enter a number, round it to the nearest 10 [1 -> 0, 5 -> 10] | ||
* | ||
* @param {number} n | ||
*/ | ||
export declare const round10: (n: number) => number; | ||
/** | ||
* Round a number to the nearest base | ||
* @param {number} n | ||
* @param {number} base | ||
*/ | ||
export declare const roundToBase: (n: number, base: number) => number; |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-6e092c3e.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(e){t=e.p;r=e.b}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r([["p-bb557033.system",[[1,"wr-block-meta",{items:[1],innerData:[32]}],[1,"wr-highlight",{itemTitle:[1,"item-title"],subTitle:[1,"sub-title"]}],[1,"wr-highlight-grid",null,[[0,"hover","onHover"]]],[0,"wr-logo-icon"],[1,"wr-scroll-animation",{once:[4],noTranslate:[4,"no-translate"],noFade:[4,"no-fade"],direction:[1],duration:[2]}]]],["p-1c90b39f.system",[[1,"wr-accordion",{accordionTitle:[1,"accordion-title"],background:[1025],open:[32],closeMe:[64],openMe:[64],calculateSizes:[64]}]]],["p-8fcb6475.system",[[1,"wr-accordion-group",{isCollapse:[4,"is-collapse"],closeChildren:[64]},[[0,"accordionOpened","accordionOpened"]]]]],["p-c35c1b26.system",[[1,"wr-big-quote",{isDark:[4,"is-dark"],quoteColor:[1,"quote-color"],authorName:[1,"author-name"],authorFunction:[1,"author-function"],authorImage:[1,"author-image"]}]]],["p-c600e39a.system",[[1,"wr-case",{caseTitle:[1,"case-title"],caseSubtitle:[1,"case-subtitle"],backgroundColor:[1,"background-color"],backgroundOpacity:[2,"background-opacity"],backgroundImage:[1,"background-image"],topLayer:[1025,"top-layer"],bottomLayer:[1025,"bottom-layer"],href:[1]}]]],["p-9e007e28.system",[[1,"wr-case-highlight",{background:[1],backgroundX:[1,"background-x"],backgroundY:[1,"background-y"],caseTitle:[1,"case-title"],href:[1]}]]],["p-761a1d39.system",[[1,"wr-footer"]]],["p-9a31c56f.system",[[1,"wr-logo"]]],["p-4474e930.system",[[1,"wr-menu-item",{size:[1],badge:[2],href:[1],isLarge:[64]}]]],["p-01754466.system",[[1,"wr-navigation",{isOpen:[32]},[[0,"open","openNavigationListener"],[0,"close","closeNavigationListener"]]]]]],e)}))}}})); | ||
System.register(["./p-6e092c3e.system.js"],(function(e,o){"use strict";var t,r;return{setters:[function(e){t=e.p;r=e.b}],execute:function(){var e=function(){var e=o.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){return r([["p-2e7a09b7.system",[[1,"wr-block-meta",{items:[1],innerData:[32]}],[1,"wr-highlight",{itemTitle:[1,"item-title"],subTitle:[1,"sub-title"]}],[1,"wr-highlight-grid",null,[[0,"hover","onHover"]]],[0,"wr-logo-icon"],[1,"wr-scroll-animation",{once:[4],noTranslate:[4,"no-translate"],noFade:[4,"no-fade"],direction:[1],duration:[2]}]]],["p-1c90b39f.system",[[1,"wr-accordion",{accordionTitle:[1,"accordion-title"],background:[1025],open:[32],closeMe:[64],openMe:[64],calculateSizes:[64]}]]],["p-8fcb6475.system",[[1,"wr-accordion-group",{isCollapse:[4,"is-collapse"],closeChildren:[64]},[[0,"accordionOpened","accordionOpened"]]]]],["p-c35c1b26.system",[[1,"wr-big-quote",{isDark:[4,"is-dark"],quoteColor:[1,"quote-color"],authorName:[1,"author-name"],authorFunction:[1,"author-function"],authorImage:[1,"author-image"]}]]],["p-c600e39a.system",[[1,"wr-case",{caseTitle:[1,"case-title"],caseSubtitle:[1,"case-subtitle"],backgroundColor:[1,"background-color"],backgroundOpacity:[2,"background-opacity"],backgroundImage:[1,"background-image"],topLayer:[1025,"top-layer"],bottomLayer:[1025,"bottom-layer"],href:[1]}]]],["p-1e262542.system",[[1,"wr-case-highlight",{background:[1],backgroundX:[1,"background-x"],backgroundY:[1,"background-y"],caseTitle:[1,"case-title"],href:[1]}]]],["p-761a1d39.system",[[1,"wr-footer"]]],["p-9a31c56f.system",[[1,"wr-logo"]]],["p-4474e930.system",[[1,"wr-menu-item",{size:[1],badge:[2],href:[1],isLarge:[64]}]]],["p-01754466.system",[[1,"wr-navigation",{isOpen:[32]},[[0,"open","openNavigationListener"],[0,"close","closeNavigationListener"]]]]]],e)}))}}})); |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as e}from"./p-abaf52ff.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),o(a)})().then((o=>e([["p-8c517af5",[[1,"wr-block-meta",{items:[1],innerData:[32]}],[1,"wr-highlight",{itemTitle:[1,"item-title"],subTitle:[1,"sub-title"]}],[1,"wr-highlight-grid",null,[[0,"hover","onHover"]]],[0,"wr-logo-icon"],[1,"wr-scroll-animation",{once:[4],noTranslate:[4,"no-translate"],noFade:[4,"no-fade"],direction:[1],duration:[2]}]]],["p-33e36473",[[1,"wr-accordion",{accordionTitle:[1,"accordion-title"],background:[1025],open:[32],closeMe:[64],openMe:[64],calculateSizes:[64]}]]],["p-50aee4b6",[[1,"wr-accordion-group",{isCollapse:[4,"is-collapse"],closeChildren:[64]},[[0,"accordionOpened","accordionOpened"]]]]],["p-8fb1a509",[[1,"wr-big-quote",{isDark:[4,"is-dark"],quoteColor:[1,"quote-color"],authorName:[1,"author-name"],authorFunction:[1,"author-function"],authorImage:[1,"author-image"]}]]],["p-4c47c760",[[1,"wr-case",{caseTitle:[1,"case-title"],caseSubtitle:[1,"case-subtitle"],backgroundColor:[1,"background-color"],backgroundOpacity:[2,"background-opacity"],backgroundImage:[1,"background-image"],topLayer:[1025,"top-layer"],bottomLayer:[1025,"bottom-layer"],href:[1]}]]],["p-2c19f455",[[1,"wr-case-highlight",{background:[1],backgroundX:[1,"background-x"],backgroundY:[1,"background-y"],caseTitle:[1,"case-title"],href:[1]}]]],["p-1e544dab",[[1,"wr-footer"]]],["p-b488d30a",[[1,"wr-logo"]]],["p-d44158b0",[[1,"wr-menu-item",{size:[1],badge:[2],href:[1],isLarge:[64]}]]],["p-f1291929",[[1,"wr-navigation",{isOpen:[32]},[[0,"open","openNavigationListener"],[0,"close","closeNavigationListener"]]]]]],o))); | ||
import{p as o,b as e}from"./p-abaf52ff.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),o(a)})().then((o=>e([["p-c4c46600",[[1,"wr-block-meta",{items:[1],innerData:[32]}],[1,"wr-highlight",{itemTitle:[1,"item-title"],subTitle:[1,"sub-title"]}],[1,"wr-highlight-grid",null,[[0,"hover","onHover"]]],[0,"wr-logo-icon"],[1,"wr-scroll-animation",{once:[4],noTranslate:[4,"no-translate"],noFade:[4,"no-fade"],direction:[1],duration:[2]}]]],["p-33e36473",[[1,"wr-accordion",{accordionTitle:[1,"accordion-title"],background:[1025],open:[32],closeMe:[64],openMe:[64],calculateSizes:[64]}]]],["p-50aee4b6",[[1,"wr-accordion-group",{isCollapse:[4,"is-collapse"],closeChildren:[64]},[[0,"accordionOpened","accordionOpened"]]]]],["p-8fb1a509",[[1,"wr-big-quote",{isDark:[4,"is-dark"],quoteColor:[1,"quote-color"],authorName:[1,"author-name"],authorFunction:[1,"author-function"],authorImage:[1,"author-image"]}]]],["p-4c47c760",[[1,"wr-case",{caseTitle:[1,"case-title"],caseSubtitle:[1,"case-subtitle"],backgroundColor:[1,"background-color"],backgroundOpacity:[2,"background-opacity"],backgroundImage:[1,"background-image"],topLayer:[1025,"top-layer"],bottomLayer:[1025,"bottom-layer"],href:[1]}]]],["p-17f973c0",[[1,"wr-case-highlight",{background:[1],backgroundX:[1,"background-x"],backgroundY:[1,"background-y"],caseTitle:[1,"case-title"],href:[1]}]]],["p-1e544dab",[[1,"wr-footer"]]],["p-b488d30a",[[1,"wr-logo"]]],["p-d44158b0",[[1,"wr-menu-item",{size:[1],badge:[2],href:[1],isLarge:[64]}]]],["p-f1291929",[[1,"wr-navigation",{isOpen:[32]},[[0,"open","openNavigationListener"],[0,"close","closeNavigationListener"]]]]]],o))); |
{ | ||
"name": "@webreact/webreact-components", | ||
"version": "0.4.35", | ||
"version": "0.4.36", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1644548
157
24500