/*! For license information please see spm.v1.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sailthru",[],t):"object"==typeof exports?exports.Sailthru=t():e.Sailthru=t()}(self,(()=>(()=>{var e={301:(e,t,r)=>{r(147),e.exports=self.fetch.bind(self)},565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{}class n extends r{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class o extends r{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class i extends r{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class s extends r{}class a extends r{constructor(e){super(`Invalid unit ${e}`)}}class u extends r{}class l extends r{constructor(){super("Zone is an abstract class")}}const c="numeric",d="short",h="long",f={year:c,month:c,day:c},m={year:c,month:d,day:c},T={year:c,month:d,day:c,weekday:d},S={year:c,month:h,day:c},y={year:c,month:h,day:c,weekday:h},b={hour:c,minute:c},p={hour:c,minute:c,second:c},v={hour:c,minute:c,second:c,timeZoneName:d},g={hour:c,minute:c,second:c,timeZoneName:h},P={hour:c,minute:c,hourCycle:"h23"},M={hour:c,minute:c,second:c,hourCycle:"h23"},w={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:d},A={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:h},G={year:c,month:c,day:c,hour:c,minute:c},O={year:c,month:c,day:c,hour:c,minute:c,second:c},I={year:c,month:d,day:c,hour:c,minute:c},E={year:c,month:d,day:c,hour:c,minute:c,second:c},C={year:c,month:d,day:c,weekday:d,hour:c,minute:c},D={year:c,month:h,day:c,hour:c,minute:c,timeZoneName:d},k={year:c,month:h,day:c,hour:c,minute:c,second:c,timeZoneName:d},B={year:c,month:h,day:c,weekday:h,hour:c,minute:c,timeZoneName:h},H={year:c,month:h,day:c,weekday:h,hour:c,minute:c,second:c,timeZoneName:h};class N{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let V=null;class x extends N{static get instance(){return null===V&&(V=new x),V}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return tt(e,t,r)}formatOffset(e,t){return it(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let L={};const F={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let R={};class _ extends N{static create(e){return R[e]||(R[e]=new _(e)),R[e]}static resetCache(){R={},L={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=_.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return tt(e,t,r,this.name)}formatOffset(e,t){return it(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,L[n]||(L[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),L[n]);var n;let[o,i,s,a,u,l,c]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e=0?h:1e3+h,(Ye({year:o,month:i,day:s,hour:24===u?0:u,minute:l,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let U={};let j={};function W(e,t={}){const r=JSON.stringify([e,t]);let n=j[r];return n||(n=new Intl.DateTimeFormat(e,t),j[r]=n),n}let X={};let K={};let z=null;let Z={};function q(e,t,r,n){const o=e.listingMode();return"error"===o?null:"en"===o?r(t):n(t)}class ${constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:o,...i}=r;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=X[r];return n||(n=new Intl.NumberFormat(e,t),X[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return je(this.floor?Math.floor(e):ze(e,3),this.padTo)}}class Y{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&_.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||n,this.dtf=W(t,o)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Q{constructor(e,t,r){this.opts={style:"long",...r},!t&&xe()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,o=JSON.stringify([e,n]);let i=K[o];return i||(i=new Intl.RelativeTimeFormat(e,t),K[o]=i),i}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${o[e][0]}`;case-1:return r?"yesterday":`last ${o[e][0]}`;case 0:return r?"today":`this ${o[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),u=1===a,l=o[e],c=n?u?l[1]:l[2]||l[1]:u?o[e][0]:e;return s?`${a} ${c} ago`:`in ${a} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const J={firstDay:1,minimalDays:4,weekend:[6,7]};class ee{static fromOpts(e){return ee.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,o=!1){const i=e||be.defaultLocale,s=i||(o?"en-US":z||(z=(new Intl.DateTimeFormat).resolvedOptions().locale,z)),a=t||be.defaultNumberingSystem,u=r||be.defaultOutputCalendar,l=_e(n)||be.defaultWeekSettings;return new ee(s,a,u,l,i)}static resetCache(){z=null,j={},X={},K={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return ee.create(e,t,r,n)}constructor(e,t,r,n,o){const[i,s,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=W(e).resolvedOptions(),n=e}catch(o){const i=e.substring(0,r);t=W(i).resolvedOptions(),n=i}const{numberingSystem:o,calendar:i}=t;return[n,o,i]}}(e);this.locale=i,this.numberingSystem=t||s||null,this.outputCalendar=r||a||null,this.weekSettings=n,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?ee.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,_e(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return q(this,e,ct,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=mn.utc(2009,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return q(this,e,mt,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=mn.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return q(this,void 0,(()=>Tt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mn.utc(2016,11,13,9),mn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return q(this,e,pt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[mn.utc(-40,1,1),mn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new $(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Y(e,this.intl,t)}relFormatter(e={}){return new Q(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=U[r];return n||(n=new Intl.ListFormat(e,t),U[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Le()?function(e){let t=Z[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Z[e]=t}return t}(this.locale):J}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let te=null;class re extends N{static get utcInstance(){return null===te&&(te=new re(0)),te}static instance(e){return 0===e?re.utcInstance:new re(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new re(rt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${it(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${it(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return it(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ne extends N{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function oe(e,t){if(He(e)||null===e)return t;if(e instanceof N)return e;if("string"==typeof e){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?x.instance:"utc"===r||"gmt"===r?re.utcInstance:re.parseSpecifier(r)||_.create(e)}return Ne(e)?re.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ne(e)}const ie={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},se={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ae=ie.hanidec.replace(/[\[|\]]/g,"").split("");let ue={};function le({numberingSystem:e},t=""){const r=e||"latn";return ue[r]||(ue[r]={}),ue[r][t]||(ue[r][t]=new RegExp(`${ie[r]}${t}`)),ue[r][t]}let ce,de=()=>Date.now(),he="system",fe=null,me=null,Te=null,Se=60,ye=null;class be{static get now(){return de}static set now(e){de=e}static set defaultZone(e){he=e}static get defaultZone(){return oe(he,x.instance)}static get defaultLocale(){return fe}static set defaultLocale(e){fe=e}static get defaultNumberingSystem(){return me}static set defaultNumberingSystem(e){me=e}static get defaultOutputCalendar(){return Te}static set defaultOutputCalendar(e){Te=e}static get defaultWeekSettings(){return ye}static set defaultWeekSettings(e){ye=_e(e)}static get twoDigitCutoffYear(){return Se}static set twoDigitCutoffYear(e){Se=e%100}static get throwOnInvalid(){return ce}static set throwOnInvalid(e){ce=e}static resetCaches(){ee.resetCache(),_.resetCache(),mn.resetCache(),ue={}}}class pe{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ve=[0,31,59,90,120,151,181,212,243,273,304,334],ge=[0,31,60,91,121,152,182,213,244,274,305,335];function Pe(e,t){return new pe("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Me(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function we(e,t,r){return r+(Ze(e)?ge:ve)[t-1]}function Ae(e,t){const r=Ze(e)?ge:ve,n=r.findIndex((e=>eJe(n,t,r)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:a,...st(e)}}function Ie(e,t=4,r=1){const{weekYear:n,weekNumber:o,weekday:i}=e,s=Ge(Me(n,1,t),r),a=qe(n);let u,l=7*o+i-s-7+t;l<1?(u=n-1,l+=qe(u)):l>a?(u=n+1,l-=qe(n)):u=n;const{month:c,day:d}=Ae(u,l);return{year:u,month:c,day:d,...st(e)}}function Ee(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:we(t,r,n),...st(e)}}function Ce(e){const{year:t,ordinal:r}=e,{month:n,day:o}=Ae(t,r);return{year:t,month:n,day:o,...st(e)}}function De(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new s("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function ke(e){const t=Ve(e.year),r=Ue(e.month,1,12),n=Ue(e.day,1,$e(e.year,e.month));return t?r?!n&&Pe("day",e.day):Pe("month",e.month):Pe("year",e.year)}function Be(e){const{hour:t,minute:r,second:n,millisecond:o}=e,i=Ue(t,0,23)||24===t&&0===r&&0===n&&0===o,s=Ue(r,0,59),a=Ue(n,0,59),u=Ue(o,0,999);return i?s?a?!u&&Pe("millisecond",o):Pe("second",n):Pe("minute",r):Pe("hour",t)}function He(e){return void 0===e}function Ne(e){return"number"==typeof e}function Ve(e){return"number"==typeof e&&e%1==0}function xe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Le(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Fe(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const o=[t(n),n];return e&&r(e[0],o[0])===e[0]?e:o}),null)[1]}function Re(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _e(e){if(null==e)return null;if("object"!=typeof e)throw new u("Week settings must be an object");if(!Ue(e.firstDay,1,7)||!Ue(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Ue(e,1,7))))throw new u("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ue(e,t,r){return Ve(e)&&e>=t&&e<=r}function je(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function We(e){return He(e)||null===e||""===e?void 0:parseInt(e,10)}function Xe(e){return He(e)||null===e||""===e?void 0:parseFloat(e)}function Ke(e){if(!He(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ze(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ze(e){return e%4==0&&(e%100!=0||e%400==0)}function qe(e){return Ze(e)?366:365}function $e(e,t){const r=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===r?Ze(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ye(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Qe(e,t,r){return-Ge(Me(e,1,t),r)+t-1}function Je(e,t=4,r=1){const n=Qe(e,t,r),o=Qe(e+1,t,r);return(qe(e)-n+o)/7}function et(e){return e>99?e:e>be.twoDigitCutoffYear?1900+e:2e3+e}function tt(e,t,r,n=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const s={timeZoneName:t,...i},a=new Intl.DateTimeFormat(r,s).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function rt(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function nt(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function ot(e,t){const r={};for(const n in e)if(Re(e,n)){const o=e[n];if(null==o)continue;r[t(n)]=nt(o)}return r}function it(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${je(r,2)}:${je(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${je(r,2)}${je(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function st(e){return function(e,t){return t.reduce(((t,r)=>(t[r]=e[r],t)),{})}(e,["hour","minute","second","millisecond"])}const at=["January","February","March","April","May","June","July","August","September","October","November","December"],ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lt=["J","F","M","A","M","J","J","A","S","O","N","D"];function ct(e){switch(e){case"narrow":return[...lt];case"short":return[...ut];case"long":return[...at];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const dt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ht=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ft=["M","T","W","T","F","S","S"];function mt(e){switch(e){case"narrow":return[...ft];case"short":return[...ht];case"long":return[...dt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Tt=["AM","PM"],St=["Before Christ","Anno Domini"],yt=["BC","AD"],bt=["B","A"];function pt(e){switch(e){case"narrow":return[...bt];case"short":return[...yt];case"long":return[...St];default:return null}}function vt(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const gt={D:f,DD:m,DDD:S,DDDD:y,t:b,tt:p,ttt:v,tttt:g,T:P,TT:M,TTT:w,TTTT:A,f:G,ff:I,fff:D,ffff:B,F:O,FF:E,FFF:k,FFFF:H};class Pt{static create(e,t={}){return new Pt(e,t)}static parseFormat(e){let t=null,r="",n=!1;const o=[];for(let i=0;i0&&o.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=s,t=s)}return r.length>0&&o.push({literal:n||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(e){return gt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return je(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,r)=>this.loc.extract(e,t,r),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",s=()=>r?function(e){return Tt[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,n)=>r?function(e,t){return ct(t)[e.month-1]}(e,t):o(n?{month:t}:{month:t,day:"numeric"},"month"),u=(t,n)=>r?function(e,t){return mt(t)[e.weekday-1]}(e,t):o(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const r=Pt.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},c=t=>r?function(e,t){return pt(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return vt(Pt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(e.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(e.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(e.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Pt.parseFormat(t),o=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return vt(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(e.shiftTo(...o.map(r).filter((e=>e)))))}}const Mt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function At(...e){return t=>e.reduce((([e,r,n],o)=>{const[i,s,a]=o(t,n);return[{...e,...i},s||r,a]}),[{},null,1]).slice(0,2)}function Gt(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function Ot(...e){return(t,r)=>{const n={};let o;for(o=0;ovoid 0!==e&&(t||e&&c)?-e:e;return[{years:h(Xe(r)),months:h(Xe(n)),weeks:h(Xe(o)),days:h(Xe(i)),hours:h(Xe(s)),minutes:h(Xe(a)),seconds:h(Xe(u),"-0"===u),milliseconds:h(Ke(l),d)}]}const jt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wt(e,t,r,n,o,i,s){const a={year:2===t.length?et(We(t)):We(t),month:ut.indexOf(r)+1,day:We(n),hour:We(o),minute:We(i)};return s&&(a.second=We(s)),e&&(a.weekday=e.length>3?dt.indexOf(e)+1:ht.indexOf(e)+1),a}const Xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kt(e){const[,t,r,n,o,i,s,a,u,l,c,d]=e,h=Wt(t,o,n,r,i,s,a);let f;return f=u?jt[u]:l?0:rt(c,d),[h,new re(f)]}const zt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $t(e){const[,t,r,n,o,i,s,a]=e;return[Wt(t,o,n,r,i,s,a),re.utcInstance]}function Yt(e){const[,t,r,n,o,i,s,a]=e;return[Wt(t,a,r,n,o,i,s),re.utcInstance]}const Qt=wt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Dt),Jt=wt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Dt),er=wt(/(\d{4})-?(\d{3})/,Dt),tr=wt(Ct),rr=At((function(e,t){return[{year:Vt(e,t),month:Vt(e,t+1,1),day:Vt(e,t+2,1)},null,t+3]}),xt,Lt,Ft),nr=At(kt,xt,Lt,Ft),or=At(Bt,xt,Lt,Ft),ir=At(xt,Lt,Ft);const sr=At(xt);const ar=wt(/(\d{4})-(\d\d)-(\d\d)/,Nt),ur=wt(Ht),lr=At(xt,Lt,Ft);const cr="Invalid Duration",dr={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},hr={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...dr},fr=365.2425,mr=30.436875,Tr={years:{quarters:4,months:12,weeks:52.1775,days:fr,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:mr,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...dr},Sr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yr=Sr.slice(0).reverse();function br(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new gr(n)}function pr(e,t){var r;let n=null!=(r=t.milliseconds)?r:0;for(const r of yr.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function vr(e,t){const r=pr(e,t)<0?-1:1;Sr.reduceRight(((n,o)=>{if(He(t[o]))return n;if(n){const i=t[n]*r,s=e[o][n],a=Math.floor(i/s);t[o]+=a*r,t[n]-=a*s*r}return o}),null),Sr.reduce(((r,n)=>{if(He(t[n]))return r;if(r){const o=t[r]%1;t[r]-=o,t[n]+=o*e[r][n]}return n}),null)}class gr{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?Tr:hr;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||ee.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return gr.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new gr({values:ot(e,gr.normalizeUnit),loc:ee.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ne(e))return gr.fromMillis(e);if(gr.isDuration(e))return e;if("object"==typeof e)return gr.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return Gt(e,[_t,Ut])}(e);return r?gr.fromObject(r,t):gr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return Gt(e,[Rt,sr])}(e);return r?gr.fromObject(r,t):gr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");const r=e instanceof pe?e:new pe(e,t);if(be.throwOnInvalid)throw new i(r);return new gr({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new a(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Pt.create(this.loc,r).formatDurationFromString(this,e):cr}toHuman(e={}){if(!this.isValid)return cr;const t=Sr.map((t=>{const r=this.values[t];return He(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ze(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return mn.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=gr.fromDurationLike(e),r={};for(const e of Sr)(Re(t.values,e)||Re(this.values,e))&&(r[e]=t.get(e)+this.get(e));return br(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=gr.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=nt(e(this.values[r],r));return br(this,{values:t},!0)}get(e){return this[gr.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return br(this,{values:{...this.values,...ot(e,gr.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return br(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return vr(this.matrix,e),br(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return br(this,{values:function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>gr.normalizeUnit(e)));const t={},r={},n=this.toObject();let o;for(const i of Sr)if(e.indexOf(i)>=0){o=i;let e=0;for(const t in r)e+=this.matrix[t][i]*r[t],r[t]=0;Ne(n[i])&&(e+=n[i]);const s=Math.trunc(e);t[i]=s,r[i]=(1e3*e-1e3*s)/1e3}else Ne(n[i])&&(r[i]=n[i]);for(const e in r)0!==r[e]&&(t[o]+=e===o?r[e]:r[e]/this.matrix[o][e]);return vr(this.matrix,t),br(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return br(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of Sr)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const Pr="Invalid Interval";class Mr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");const r=e instanceof pe?e:new pe(e,t);if(be.throwOnInvalid)throw new o(r);return new Mr({invalid:r})}static fromDateTimes(e,t){const r=Tn(e),n=Tn(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Mr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Tn).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,o=0;for(;n+this.e?this.e:e;r.push(Mr.fromDateTimes(n,i)),n=i,o+=1}return r}splitBy(e){const t=gr.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,o=1;const i=[];for(;ne*o)));r=+e>+this.e?this.e:e,i.push(Mr.fromDateTimes(n,r)),n=r,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r?null:Mr.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Mr.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],o=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),i=Array.prototype.concat(...o).sort(((e,t)=>e.time-t.time));for(const e of i)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(Mr.fromDateTimes(t,e.time)),t=null);return Mr.merge(n)}difference(...e){return Mr.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Pr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=f,t={}){return this.isValid?Pt.create(this.s.loc.clone(t),e).formatInterval(this):Pr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Pr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Pr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Pr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Pr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):gr.invalid(this.invalidReason)}mapEndpoints(e){return Mr.fromDateTimes(e(this.s),e(this.e))}}class wr{static hasDST(e=be.defaultZone){const t=mn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return _.isValidZone(e)}static normalizeZone(e){return oe(e,be.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||ee.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||ee.create(t,r,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||ee.create(t,r,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ee.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ee.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ee.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ee.create(t,null,"gregory").eras(e)}static features(){return{relative:xe(),localeWeek:Le()}}}function Ar(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gr.fromMillis(n).as("days"))}function Gr(e,t,r,n){let[o,i,s,a]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=Ar(e,t);return(r-r%7)/7}],["days",Ar]],o={},i=e;let s,a;for(const[u,l]of n)r.indexOf(u)>=0&&(s=u,o[u]=l(e,t),a=i.plus(o),a>t?(o[u]--,(e=i.plus(o))>t&&(a=e,o[u]--,e=i.plus(o))):e=a);return[e,o,a,s]}(e,t,r);const u=t-o,l=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(s0?gr.fromMillis(u,n).shiftTo(...l).plus(c):c}function Or(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=o&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const Ir=`[ ${String.fromCharCode(160)}]`,Er=new RegExp(Ir,"g");function Cr(e){return e.replace(/\./g,"\\.?").replace(Er,Ir)}function Dr(e){return e.replace(/\./g,"").replace(Er," ").toLowerCase()}function kr(e,t){return null===e?null:{regex:RegExp(e.map(Cr).join("|")),deser:([r])=>e.findIndex((e=>Dr(r)===Dr(e)))+t}}function Br(e,t){return{regex:e,deser:([,e,t])=>rt(e,t),groups:t}}function Hr(e){return{regex:e,deser:([e])=>e}}const Nr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Vr=null;function xr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=Rr(Pt.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}class Lr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=xr(Pt.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const r=le(t),n=le(t,"{2}"),o=le(t,"{3}"),i=le(t,"{4}"),s=le(t,"{6}"),a=le(t,"{1,2}"),u=le(t,"{1,3}"),l=le(t,"{1,6}"),c=le(t,"{1,9}"),d=le(t,"{2,4}"),h=le(t,"{4,6}"),f=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},m=(m=>{if(e.literal)return f(m);switch(m.val){case"G":return kr(t.eras("short"),0);case"GG":return kr(t.eras("long"),0);case"y":return Or(l);case"yy":case"kk":return Or(d,et);case"yyyy":case"kkkk":return Or(i);case"yyyyy":return Or(h);case"yyyyyy":return Or(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Or(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Or(n);case"MMM":return kr(t.months("short",!0),1);case"MMMM":return kr(t.months("long",!0),1);case"LLL":return kr(t.months("short",!1),1);case"LLLL":return kr(t.months("long",!1),1);case"o":case"S":return Or(u);case"ooo":case"SSS":return Or(o);case"u":return Hr(c);case"uu":return Hr(a);case"uuu":case"E":case"c":return Or(r);case"a":return kr(t.meridiems(),0);case"EEE":return kr(t.weekdays("short",!1),1);case"EEEE":return kr(t.weekdays("long",!1),1);case"ccc":return kr(t.weekdays("short",!0),1);case"cccc":return kr(t.weekdays("long",!0),1);case"Z":case"ZZ":return Br(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Br(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return Hr(/[a-z_+-/]{1,256}?/i);case" ":return Hr(/[^\S\n\r]/);default:return f(m)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=e,m}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=[`^${(r=this.units).map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,r];this.regex=RegExp(e,"i"),this.handlers=t}var r}explainFromTokens(e){if(this.isValid){const[t,r]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const o in r)if(Re(r,o)){const i=r[o],s=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(n.slice(t,t+s))),t+=s}return[n,e]}return[n,{}]}(e,this.regex,this.handlers),[n,o,i]=r?function(e){let t,r=null;return He(e.z)||(r=_.create(e.z)),He(e.Z)||(r||(r=new re(e.Z)),t=e.Z),He(e.q)||(e.M=3*(e.q-1)+1),He(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),He(e.u)||(e.S=Ke(e.u)),[Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{}),r,t]}(r):[null,null,void 0];if(Re(r,"a")&&Re(r,"H"))throw new s("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:n,zone:o,specificOffset:i}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Fr(e,t,r){return new Lr(e,r).explainFromTokens(t)}function Rr(e,t){if(!e)return null;const r=Pt.create(t,e).dtFormatter((Vr||(Vr=mn.fromMillis(1555555555555)),Vr)),n=r.formatToParts(),o=r.resolvedOptions();return n.map((t=>function(e,t,r){const{type:n,value:o}=e;if("literal"===n){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const i=t[n];let s=n;"hour"===n&&(s=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let a=Nr[s];if("object"==typeof a&&(a=a[i]),a)return{literal:!1,val:a}}(t,e,o)))}const _r="Invalid DateTime",Ur=864e13;function jr(e){return new pe("unsupported zone",`the zone "${e.name}" is not supported`)}function Wr(e){return null===e.weekData&&(e.weekData=Oe(e.c)),e.weekData}function Xr(e){return null===e.localWeekData&&(e.localWeekData=Oe(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Kr(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new mn({...r,...t,old:r})}function zr(e,t,r){let n=e-60*t*1e3;const o=r.offset(n);if(t===o)return[n,t];n-=60*(o-t)*1e3;const i=r.offset(n);return o===i?[n,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Zr(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function qr(e,t,r){return zr(Ye(e),t,r)}function $r(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:n,month:o,day:Math.min(e.c.day,$e(n,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=gr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Ye(i);let[u,l]=zr(a,r,e.zone);return 0!==s&&(u+=s,l=e.zone.offset(u)),{ts:u,o:l}}function Yr(e,t,r,n,o,i){const{setZone:s,zone:a}=r;if(e&&0!==Object.keys(e).length||t){const n=t||a,o=mn.fromObject(e,{...r,zone:n,specificOffset:i});return s?o:o.setZone(a)}return mn.invalid(new pe("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Qr(e,t,r=!0){return e.isValid?Pt.create(ee.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Jr(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=je(e.c.year,r?6:4),t?(n+="-",n+=je(e.c.month),n+="-",n+=je(e.c.day)):(n+=je(e.c.month),n+=je(e.c.day)),n}function en(e,t,r,n,o,i){let s=je(e.c.hour);return t?(s+=":",s+=je(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(s+=":")):s+=je(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(s+=je(e.c.second),0===e.c.millisecond&&n||(s+=".",s+=je(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?s+="Z":e.o<0?(s+="-",s+=je(Math.trunc(-e.o/60)),s+=":",s+=je(Math.trunc(-e.o%60))):(s+="+",s+=je(Math.trunc(e.o/60)),s+=":",s+=je(Math.trunc(e.o%60)))),i&&(s+="["+e.zone.ianaName+"]"),s}const tn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},on=["year","month","day","hour","minute","second","millisecond"],sn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],an=["year","ordinal","hour","minute","second","millisecond"];function un(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new a(e);return t}(e)}}function ln(e,t){const r=oe(t.zone,be.defaultZone);if(!r.isValid)return mn.invalid(jr(r));const n=ee.fromObject(t);let o,i;if(He(e.year))o=be.now();else{for(const t of on)He(e[t])&&(e[t]=tn[t]);const t=ke(e)||Be(e);if(t)return mn.invalid(t);const n=function(e){return fn[e]||(void 0===hn&&(hn=be.now()),fn[e]=e.offset(hn)),fn[e]}(r);[o,i]=qr(e,n,r)}return new mn({ts:o,zone:r,loc:n,o:i})}function cn(e,t,r){const n=!!He(r.round)||r.round,o=(e,o)=>{e=ze(e,n||r.calendary?0:2,!0);return t.loc.clone(r).relFormatter(r).format(e,o)},i=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return o(i(r.unit),r.unit);for(const e of r.units){const t=i(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,r.units[r.units.length-1])}function dn(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}let hn,fn={};class mn{constructor(e){const t=e.zone||be.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new pe("invalid input"):null)||(t.isValid?null:jr(t));this.ts=He(e.ts)?be.now():e.ts;let n=null,o=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,o]=[e.old.c,e.old.o];else{const i=Ne(e.o)&&!e.old?e.o:t.offset(this.ts);n=Zr(this.ts,i),r=Number.isNaN(n.year)?new pe("invalid input"):null,n=r?null:n,o=r?null:i}}this._zone=t,this.loc=e.loc||ee.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new mn({})}static local(){const[e,t]=dn(arguments),[r,n,o,i,s,a,u]=t;return ln({year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:u},e)}static utc(){const[e,t]=dn(arguments),[r,n,o,i,s,a,u]=t;return e.zone=re.utcInstance,ln({year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:u},e)}static fromJSDate(e,t={}){const r=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(r))return mn.invalid("invalid input");const o=oe(t.zone,be.defaultZone);return o.isValid?new mn({ts:r,zone:o,loc:ee.fromObject(t)}):mn.invalid(jr(o))}static fromMillis(e,t={}){if(Ne(e))return e<-Ur||e>Ur?mn.invalid("Timestamp out of range"):new mn({ts:e,zone:oe(t.zone,be.defaultZone),loc:ee.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ne(e))return new mn({ts:1e3*e,zone:oe(t.zone,be.defaultZone),loc:ee.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=oe(t.zone,be.defaultZone);if(!r.isValid)return mn.invalid(jr(r));const n=ee.fromObject(t),o=ot(e,un),{minDaysInFirstWeek:i,startOfWeek:a}=De(o,n),u=be.now(),l=He(t.specificOffset)?r.offset(u):t.specificOffset,c=!He(o.ordinal),d=!He(o.year),h=!He(o.month)||!He(o.day),f=d||h,m=o.weekYear||o.weekNumber;if((f||c)&&m)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new s("Can't mix ordinal dates with month/day");const T=m||o.weekday&&!f;let S,y,b=Zr(u,l);T?(S=sn,y=rn,b=Oe(b,i,a)):c?(S=an,y=nn,b=Ee(b)):(S=on,y=tn);let p=!1;for(const e of S){He(o[e])?o[e]=p?y[e]:b[e]:p=!0}const v=T?function(e,t=4,r=1){const n=Ve(e.weekYear),o=Ue(e.weekNumber,1,Je(e.weekYear,t,r)),i=Ue(e.weekday,1,7);return n?o?!i&&Pe("weekday",e.weekday):Pe("week",e.weekNumber):Pe("weekYear",e.weekYear)}(o,i,a):c?function(e){const t=Ve(e.year),r=Ue(e.ordinal,1,qe(e.year));return t?!r&&Pe("ordinal",e.ordinal):Pe("year",e.year)}(o):ke(o),g=v||Be(o);if(g)return mn.invalid(g);const P=T?Ie(o,i,a):c?Ce(o):o,[M,w]=qr(P,l,r),A=new mn({ts:M,zone:r,o:w,loc:n});return o.weekday&&f&&e.weekday!==A.weekday?mn.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${A.toISO()}`):A.isValid?A:mn.invalid(A.invalid)}static fromISO(e,t={}){const[r,n]=function(e){return Gt(e,[Qt,rr],[Jt,nr],[er,or],[tr,ir])}(e);return Yr(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return Gt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Xt,Kt])}(e);return Yr(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return Gt(e,[zt,$t],[Zt,$t],[qt,Yt])}(e);return Yr(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(He(e)||He(t))throw new u("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=r,i=ee.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,a,l,c]=function(e,t,r){const{result:n,zone:o,specificOffset:i,invalidReason:s}=Fr(e,t,r);return[n,o,i,s]}(i,e,t);return c?mn.invalid(c):Yr(s,a,r,`format ${t}`,e,l)}static fromString(e,t,r={}){return mn.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return Gt(e,[ar,rr],[ur,lr])}(e);return Yr(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");const r=e instanceof pe?e:new pe(e,t);if(be.throwOnInvalid)throw new n(r);return new mn({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Rr(e,ee.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return xr(Pt.parseFormat(e),ee.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){hn=void 0,fn={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Wr(this).weekYear:NaN}get weekNumber(){return this.isValid?Wr(this).weekNumber:NaN}get weekday(){return this.isValid?Wr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Xr(this).weekday:NaN}get localWeekNumber(){return this.isValid?Xr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Xr(this).weekYear:NaN}get ordinal(){return this.isValid?Ee(this.c).ordinal:NaN}get monthShort(){return this.isValid?wr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?wr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?wr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?wr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=Ye(this.c),n=this.zone.offset(r-e),o=this.zone.offset(r+e),i=this.zone.offset(r-n*t),s=this.zone.offset(r-o*t);if(i===s)return[this];const a=r-i*t,u=r-s*t,l=Zr(a,i),c=Zr(u,s);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[Kr(this,{ts:a}),Kr(this,{ts:u})]:[this]}get isInLeapYear(){return Ze(this.year)}get daysInMonth(){return $e(this.year,this.month)}get daysInYear(){return this.isValid?qe(this.year):NaN}get weeksInWeekYear(){return this.isValid?Je(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Je(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Pt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(re.instance(e),t)}toLocal(){return this.setZone(be.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=oe(e,be.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=qr(r,t,e)}return Kr(this,{ts:n,zone:e})}return mn.invalid(jr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return Kr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ot(e,un),{minDaysInFirstWeek:r,startOfWeek:n}=De(t,this.loc),o=!He(t.weekYear)||!He(t.weekNumber)||!He(t.weekday),i=!He(t.ordinal),a=!He(t.year),u=!He(t.month)||!He(t.day),l=a||u,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&i)throw new s("Can't mix ordinal dates with month/day");let d;o?d=Ie({...Oe(this.c,r,n),...t},r,n):He(t.ordinal)?(d={...this.toObject(),...t},He(t.day)&&(d.day=Math.min($e(d.year,d.month),d.day))):d=Ce({...Ee(this.c),...t});const[h,f]=qr(d,this.o,this.zone);return Kr(this,{ts:h,o:f})}plus(e){if(!this.isValid)return this;return Kr(this,$r(this,gr.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Kr(this,$r(this,gr.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},n=gr.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===n)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;tthis.valueOf(),s=Gr(i?this:e,i?e:this,o,n);var a;return i?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(mn.now(),e,t)}until(e){return this.isValid?Mr.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const n=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,r)<=n&&n<=o.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||mn.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(mn.isDateTime))throw new u("max requires all arguments be DateTimes");return Fe(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:o=null}=r;return Fr(ee.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return mn.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:n=null}=t,o=ee.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return new Lr(o,e)}static fromFormatParser(e,t,r={}){if(He(e)||He(t))throw new u("fromFormatParser requires an input string and a format parser");const{locale:n=null,numberingSystem:o=null}=r,i=ee.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});if(!i.equals(t.locale))throw new u(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${t.locale}`);const{result:s,zone:a,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?mn.invalid(c):Yr(s,a,r,`format ${t.format}`,e,l)}static get DATE_SHORT(){return f}static get DATE_MED(){return m}static get DATE_MED_WITH_WEEKDAY(){return T}static get DATE_FULL(){return S}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return p}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return g}static get TIME_24_SIMPLE(){return P}static get TIME_24_WITH_SECONDS(){return M}static get TIME_24_WITH_SHORT_OFFSET(){return w}static get TIME_24_WITH_LONG_OFFSET(){return A}static get DATETIME_SHORT(){return G}static get DATETIME_SHORT_WITH_SECONDS(){return O}static get DATETIME_MED(){return I}static get DATETIME_MED_WITH_SECONDS(){return E}static get DATETIME_MED_WITH_WEEKDAY(){return C}static get DATETIME_FULL(){return D}static get DATETIME_FULL_WITH_SECONDS(){return k}static get DATETIME_HUGE(){return B}static get DATETIME_HUGE_WITH_SECONDS(){return H}}function Tn(e){if(mn.isDateTime(e))return e;if(e&&e.valueOf&&Ne(e.valueOf()))return mn.fromJSDate(e);if(e&&"object"==typeof e)return mn.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=mn,t.Duration=gr,t.FixedOffsetZone=re,t.IANAZone=_,t.Info=wr,t.Interval=Mr,t.InvalidZone=ne,t.Settings=be,t.SystemZone=x,t.VERSION="3.5.0",t.Zone=N},437:(e,t,r)=>{!function(e,t){e((function(){"use strict";var e,r={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",Pixel:"; \\bPixel\\b",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 5X|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F|SM-G610F|SM-G981B|SM-G892A|SM-A530F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533|SOV34|601SO|F8332",Asus:"Asus.*Galaxy|PadFone.*Mobile",Xiaomi:"^(?!.*\\bx11\\b).*xiaomi.*$|POCOPHONE F1|MI 8|Redmi Note 9S|Redmi Note 5A Prime|N2G47H|M2001J2G|M2001J2I|M1805E10A|M2004J11G|M1902F1G|M2002J9G|M2004J19G|M2003J6A1G",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V|SM-P610|SM-T290|SM-T515|SM-T590|SM-T595|SM-T725|SM-T817P|SM-P585N0|SM-T395|SM-T295|SM-T865|SM-P610N|SM-P615|SM-T970|SM-T380|SM-T5950|SM-T905|SM-T231|SM-T500|SM-T860",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30|A3-A40",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X|TB-X704F|TB-X104F|TB3-X70F|TB-X705F|TB-8504F|TB3-X70L|TB3-710F|TB-X704L",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android [0-9.]+; [a-z-]+; \\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",SailfishOS:"Sailfish",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"\\bEdgiOS\\b|Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version((?!\\bEdgiOS\\b).)*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",SailfishBrowser:"SailfishBrowser/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",Sailfish:"Sailfish [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp|AspiegelBot",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},n=Object.prototype.hasOwnProperty;function o(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function i(e,t){var r,n,o=e.length;if(!o||!t)return!1;for(r=t.toLowerCase(),n=0;n=0&&(i=i.substring(0,l)+"([\\w._\\+]+)"+i.substring(l+5)),o[a]=new RegExp(i,"i");c.props[t]=o}s(c.oss),s(c.phones),s(c.tablets),s(c.uas),s(c.utils),c.oss0={WindowsPhoneOS:c.oss.WindowsPhoneOS,WindowsMobileOS:c.oss.WindowsMobileOS}}(),r.findMatch=function(e,t){for(var r in e)if(n.call(e,r)&&e[r].test(t))return r;return null},r.findMatches=function(e,t){var r=[];for(var o in e)n.call(e,o)&&e[o].test(t)&&r.push(o);return r},r.getVersionStr=function(e,t){var o,i,s,a,u=r.mobileDetectRules.props;if(n.call(u,e))for(s=(o=u[e]).length,i=0;i1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},r.isMobileFallback=function(e){return r.detectMobileBrowsers.fullPattern.test(e)||r.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},r.isTabletFallback=function(e){return r.detectMobileBrowsers.tabletPattern.test(e)},r.prepareDetectionCache=function(e,n,o){if(e.mobile===t){var i,s,u;if(s=r.findMatch(r.mobileDetectRules.tablets,n))return e.mobile=e.tablet=s,void(e.phone=null);if(i=r.findMatch(r.mobileDetectRules.phones,n))return e.mobile=e.phone=i,void(e.tablet=null);r.isMobileFallback(n)?(u=a.isPhoneSized(o))===t?(e.mobile=r.FALLBACK_MOBILE,e.tablet=e.phone=null):u?(e.mobile=e.phone=r.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=r.FALLBACK_TABLET,e.phone=null):r.isTabletFallback(n)?(e.mobile=e.tablet=r.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null}},r.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile"),"C")},r.detectOS=function(e){return r.findMatch(r.mobileDetectRules.oss0,e)||r.findMatch(r.mobileDetectRules.oss,e)},r.getDeviceSmallerSide=function(){return window.screen.width{"use strict";r.r(t),r.d(t,{DOMException:()=>g,Headers:()=>c,Request:()=>y,Response:()=>p,fetch:()=>P});var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function f(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(f);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=d(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function p(e,t){if(!(this instanceof p))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},T.call(y.prototype),T.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},p.error=function(){var e=new p(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];p.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new p(null,{status:t,headers:{location:e}})};var g=n.DOMException;try{new g}catch(e){(g=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),g.prototype.constructor=g}function P(e,t){return new Promise((function(r,i){var s=new y(e,t);if(s.signal&&s.signal.aborted)return i(new g("Aborted","AbortError"));var l=new XMLHttpRequest;function d(){l.abort()}if(l.onload=function(){var e,t,n={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===s.url.indexOf("file://")&&(l.status<200||l.status>599)?n.status=200:n.status=l.status,n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){r(new p(o,n))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){i(new g("Aborted","AbortError"))}),0)},l.open(s.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(o.blob?l.responseType="blob":o.arrayBuffer&&(l.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof c||n.Headers&&t.headers instanceof n.Headers)){var h=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){h.push(a(e)),l.setRequestHeader(e,u(t.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&l.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",d),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",d)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}P.polyfill=!0,n.fetch||(n.fetch=P,n.Headers=c,n.Request=y,n.Response=p)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.amdD=function(){throw new Error("define cannot be used indirect")},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{debug:()=>gr,getCookie:()=>Or,init:()=>Pr,integration:()=>Ar,overlay:()=>Gr,personalize:()=>Mr,track:()=>wr});r(301);var e="do-not-track",t="sailthru_sess_overlay_params",o="sailthru_session_overlay",i="sailthru_dismiss_overlay",s="STdebug",a="STpreview",u="STshowOverlay",l="STpageviewsOverride",c="STinlineStyleDelayMs";const d={getCookie:function(e){var t=document.cookie.split(";").filter((function(t){return 0===t.trim().indexOf("".concat(e,"="))}));return(t=t.length>0?t[0].split("".concat(e,"="))[1]:"")&&t.trim()||""}},h={create:function(e,t,r,n){var o,i=n?"domain=".concat(n,";"):"",s="";r&&((o=new Date).setTime(o.getTime()+60*r*1e3),s="expires=".concat(o.toGMTString(),";")),document.cookie="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),";").concat(s).concat(i,"path=/")},read:d.getCookie,delete:function(e,t){var r=t?"domain=".concat(t,"; "):"";document.cookie="".concat(e,"=; ").concat(r,"path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC")},updatePCCookie:function(e,t){if(!this.handleGDPR()){var r=this.read("sailthru_pc"),n="00000000-0000-0000-0000-000000000000",o=e.contentHash,i=t.list?t.list:"000000000000000000000000",s="".concat(o).concat(t.sectionId).concat(i).concat(n).concat(n).concat("0000");if(r){var a=r.substr(2).match(/.{168}/g);r=a.filter((function(e){return-1===e.indexOf(o)})).join("")}r=(r="".concat("00").concat(s).concat(r)).substr(0,1682),this.create("sailthru_pc",r,525600)}},updateSailthruContentCookie:function(e){if(!this.handleGDPR()){var t=this.read("sailthru_content");if(e){var r=e.length,n=16*r,o=t.indexOf(e);-1!==o&&(t=t.substring(0,o)+t.substring(o+r));var i=t+e;i=i.length>n?i.substring(r):i,this.delete("sailthru_content"),this.create("sailthru_content",i,525600)}}},updatePageviewsCookie:function(){var e=this.read("sailthru_overlays"),t=this.read("sailthru_pageviews");t=Number(t)+1,this.create("sailthru_pageviews",t,30),e.length>0&&this.create("sailthru_overlays",e,30)},setSailthruHid:function(e){var t=this.getCookieDomain(window.location.hostname);if(e){this.create("sailthru_hid",e,525600,t)}else this.delete("sailthru_hid",t)},setCookiesDoNotTrack:function(){this.create("sailthru_no_cookies","1",525600)},unsetCookiesDoNotTrack:function(){this.delete("sailthru_no_cookies"),this.read("sailthru_hid")===e&&this.setSailthruHid(null)},isAnonymousUser:function(){return!this.read("sailthru_hid")},isDoNotTrackUser:function(){var t=this.read("sailthru_hid"),r=this.read("sailthru_no_cookies");return t===e||"optout"===t||!!r},refreshNoCookies:function(){this.read("sailthru_no_cookies")&&this.setCookiesDoNotTrack()},handleGDPR:function(){return!!this.isDoNotTrackUser()&&(this.delete("sailthru_content"),this.delete("sailthru_pc"),this.delete("sailthru_bid"),this.delete("sailthru_sid"),this.delete("sailthru_cid"),this.delete("sailthru_rid"),this.delete("sailthru_recommendation_hidden"),this.delete("sailthru_hid",this.getCookieDomain(window.location.hostname)),this.setSailthruHid(e),!0)},getCookieDomain:function(e){var t=/(?:[\w-]+\.(?:com|co|gov|edu|org|net)\.[\w-]{1,2}|[\w-]+\.[\w-]{2,})$/.exec(e);return t?t[0]:null},getPageViewsCount:function(){var e=this.read("sailthru_pageviews")||0;return Number(e)}};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t0&&document.querySelectorAll('meta[name="sailthru.tags"]')[0].getAttribute("content"),i=document.querySelectorAll&&document.querySelectorAll('meta[name="keywords"]').length>0&&document.querySelectorAll('meta[name="keywords"]')[0].getAttribute("content"),s=o||i||"";return n.visitorId=h.read("sailthru_visitor"),n.messageId=h.read("sailthru_bid"),n.excludeContent=r.excludeContent,"true"===n.excludeContent?n.excludeContent=!0:"boolean"!=typeof n.excludeContent&&(n.excludeContent=!1),void 0===n.useStoredTags&&(n.useStoredTags=r.useStoredTags),"false"===n.useStoredTags?n.useStoredTags=!1:"boolean"!=typeof n.useStoredTags&&(n.useStoredTags=!0),n.tags=void 0!==n.tags?n.tags.toString():s,n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t'),t.firstChild.href}function n(r){var n=G({},r);if(delete n.apiUrl,n.onSuccess&&delete n.onSuccess,n.onError&&delete n.onError,n.elementId&&delete n.elementId,n.pageview&&delete n.pageview,void 0===r.userIdKey||""===r.userIdKey||"HID"===r.userIdKey.toUpperCase()){var o=h.read("sailthru_hid");void 0!==o&&""!==o&&(n.userIdKey="hid",n.userIdValue=o)}return n=JSON.stringify(n),M(r.apiUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Lib-Version":t.VERSION,Authorization:"Bearer ".concat(t.customerId)},body:n},2e3).then((function(e){return e.json()})).then((function(t){if(t&&(t.error||t.message))throw t;r&&(r.elementId&&(t.elementId=r.elementId),t.doNotTrack&&(h.setSailthruHid(e),h.handleGDPR()),r.pageview&&h.updateSailthruContentCookie(t.contentHash),r.onSuccess&&r.onSuccess(t),!r.visitorId&&t.visitorId&&h.create("sailthru_visitor",t.visitorId,525600))})).catch((function(e){var t;e&&e.responseText&&(t=JSON.parse(e.responseText),console.log("You have the following track error: ".concat(t.message))),r&&(r.elementId&&(e.elementId=r.elementId),r.pageview&&console.error(y(e)),r.onError&&r.onError(e))}))}return{click:function(e,o,i){var s=G(G({},i),{},{sectionId:e,url:r(o),apiUrl:"".concat(t.trackDomain,"/v1/track/event/click/")});return e&&o?n(s):(console.log("url, and sectionId are required for trackClick.",s),!1)},impression:function(e,o,i){Array.isArray(o)?o=o.map(r):"object"===w(o)&&Object.keys(o).length>0&&(i=o,o=void 0);var s=G(G({},i),{},{sectionId:e,apiUrl:"".concat(t.trackDomain,"/v1/track/event/impression/")});return e?(o&&o.length>0&&(s.urls=o),n(s)):(console.log("sectionId are required for trackImpression.",s),!1)},pageview:function(e,o){if(e){var i=r(e);return n(b(i,o,t))}return console.log("url is required for trackPageView.",e,o),!1},navigation:function(e,o){return e?n(G(G({},o),{},{url:r(e),index:Date.now(),type:"navigation",visitorId:h.read("sailthru_visitor"),apiUrl:"".concat(t.trackDomain,"/v1/track/heartbeat")})):(console.log("url is required for heartbeat navigation",e,o),!1)},heartbeat:function(e,o){return e?n(G(G({},o),{},{url:r(e),index:Date.now(),type:"heartbeat",visitorId:h.read("sailthru_visitor"),apiUrl:"".concat(t.trackDomain,"/v1/track/heartbeat")})):(console.log("url is required for heartbeat",e,o),!1)},gdprDoNotTrack:function(r){var n=h.read("sailthru_hid");n&&(h.setSailthruHid(e),h.handleGDPR(),fetch("".concat(t.trackDomain,"/v1/profile/").concat(n),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Lib-Version":t.VERSION,Authorization:"Bearer ".concat(t.customerId)},body:JSON.stringify({doNotTrack:!0})}).then((function(e){return e.json()})).then((function(e){if(e&&(e.error||e.message))throw e;r&&r.onSuccess&&r.onSuccess(e)})).catch((function(e){r&&r.onError&&r.onError(e)})))},cookiesDoNotTrack:function(e){!e||!1!==e.set?(h.setCookiesDoNotTrack(),h.handleGDPR()):h.unsetCookiesDoNotTrack()}}};function E(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rr?window.clearInterval(n):K.heartbeat(window.location.href,{onError:ne})}),t);return n}function ie(){re&&(re=!1,K.navigation(window.location.href,{onError:ne}));var e=(new Date).getTime();return Z=oe(e,Q,J),q=oe(e,ee,te),{lostVisibility:re,firstHeartbeatInterval:Z,secondHeartbeatInterval:q}}function se(){return document[$]?ne():ie()}function ae(){return void 0!==document.hidden?($="hidden",Y="visibilitychange"):void 0!==document.msHidden?($="msHidden",Y="msvisibilitychange"):void 0!==document.webkitHidden&&($="webkitHidden",Y="webkitvisibilitychange"),void 0===document.addEventListener||void 0===document.hidden?(console.log("Heartbeat requires a browser that supports the Page Visibility API"),!1):h.isAnonymousUser()?(z.urlFragmentParams[s]&&console.log("Heartbeat only works for known users"),!1):X.enableHeartbeat?(document.addEventListener(Y,se,!1),ie()):(z.urlFragmentParams[s]&&console.log("Heartbeat disabled"),!1)}const ue=function(e){return X=e,K=I(e),re=!1,z=W(),{appendHearbeatListener:ae}};function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t0,a=n&&n.items&&0===n.items.length,u=ce(ce(ce({},o(t)),n),{},{apiUrl:i});return u.id&&(s||a)?r(u):(console.error("Please make sure to include an id and key plus an items sku or items url option.",u),!1)},purchase:function(t,n){var i="".concat(e.trackDomain,"/v1/track/purchase"),s=n&&n.items&&n.items.filter((function(e){return void 0!==e.sku||void 0!==e.url})).length>0,a=n&&n.incomplete&&n.items&&0===n.items.length,u=h.read("sailthru_bid"),l=h.read("sailthru_pc"),c=ce(ce(ce({},t=o(t)),n),{},{apiUrl:i});return u&&(c.message_id=u),l&&(c.cookies={sailthru_pc:l}),c.id&&(s||a)?r(c):(console.error("Please make sure to include an id and key plus an items sku or items url option.",c),!1)},watchContent:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i="".concat(e.trackDomain,"/v1/track/content/watch"),s=o(t),a={apiUrl:i,profile_id:s.id,profile_id_type:s.key,watch:n},u=a.watch.query,l=void 0===u?{}:u;return Object.keys(l).length&&a.watch.interest_type?r(a):(console.error("Please make sure to include a query and interest type.",a),!1)},customEvent:function(t,n,i){var s="".concat(e.trackDomain,"/v1/track/event/custom"),a="string"==typeof t,u=ce(ce(ce({},n=o(n)),i),{},{apiUrl:s,event:t||void 0,vars:i.vars||void 0});return u.id&&a?r(u):(console.error("Please make sure to include a custom event name and id.",u),!1)}}};var me=r(437),Te=r.n(me);const Se={getVars:function(){for(var e={},t=document.getElementsByClassName("sailthru-var"),r=0;r36&&","===e.charAt(36))return e.split(",");for(var t=[],r=0;r<=e.length-36;r+=36)t.push(e.substring(r,r+36));return t},isUuid:function(e){return!!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)}};function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t0&&(r.user_id_key="hid",r.user_id_value=n),r}function we(e){var t=ve({},e);return delete t.apiUrl,t.onSuccess&&delete t.onSuccess,t.onError&&delete t.onError,t=JSON.stringify(t),fetch(e.apiUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Lib-Version":Pe.VERSION,Authorization:"Bearer ".concat(Pe.customerId)},body:t}).then((function(e){return e.json()})).then((function(t){if(t&&(t.error||t.message))throw t;e.onSuccess&&e.onSuccess(t)})).catch((function(t){var r;t&&t.responseText&&(r=JSON.parse(t.responseText),console.error("You have the following overlay track error: ".concat(r.message))),e.onError&&e.onError(t)}))}const Ae=function(e){return Pe=e,{view:function(e){return we(Me("view",e))},conversion:function(e,t){return we(ve(ve({},Me("conversion",e)),t))},click:function(e){return we(Me("click",e))}}};var Ge,Oe;function Ie(e){Ge=e,h.create(o,e)}function Ee(){var e=Oe.getUrlParam("SToverlay");if(""!==e){var r=ye.parseUuidsList(h.read(o))[0];if(!e||ye.isUuid(e)||r){if(e)return function(e){var t=h.read(i),r=ye.parseUuidsList(t);t&&-1!==r.indexOf(e)&&(t===e?h.delete(i):h.create(i,t.replace(e,"")))}(e),h.create(t,window.location.search),Ie(e),e;var n=ye.parseUuidsList(h.read(i));return r&&-1===n.indexOf(r)?(Ie(r),r):void 0}console.error("Invalid id: ".concat(e,". Please specify a valid uuid."))}else console.error("Empty overlay id. Please specify a valid uuid.")}function Ce(){return Ge}function De(e){"string"==typeof e&&ye.isUuid(e)?(h.delete(t),h.delete(o),function(e){var t=h.read(i);-1===ye.parseUuidsList(t).indexOf(e)&&(t?h.create(i,"".concat(e).concat(t)):h.create(i,e))}(e)):console.error("Invalid id: ".concat(e,". Please specify a valid uuid."))}const ke=function(){return Oe=W(),{triggerStickyOverlay:Ee,getStickyOverlayId:Ce,dismiss:De}};var Be,He,Ne=[];function Ve(){clearTimeout(Be),Ne.forEach((function(e){document.removeEventListener(e.event,e.handler)}))}function xe(e,t){Be=setTimeout((function(){He(e),Ve()}),t)}function Le(e,t,r){var n,o=t.timer.event_handler[e];"page_interaction"===e&&("reset"===o&&(n=function(){!function(e,t){clearTimeout(Be),xe(e,t)}(t,r)}),"cancel"===o&&(n=function(){Ve()}),n&&(["mousemove","mousedown","click","scroll","keydown"].forEach((function(e){Ne.push({event:e,handler:n}),document.addEventListener(e,n)})),xe(t,r)))}function Fe(e){if("page"===e.timer.scope){var t=e.timer.threshold_ms||0;if(e.timer.event_handler)for(var r=Object.keys(e.timer.event_handler),n=0;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r/gi,"")}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e,o="",i=-1!==n.indexOf("?"),s=-1!==n.indexOf("#"),a=!!t.email&&encodeURIComponent(t.email);return a&&(o+="em=".concat(a)),o=Object.entries(r).reduce((function(e,t){var r=Ke(t,2),n=r[0],o=r[1],i=e;return e&&(i+="&"),"".concat(i).concat(n,"=").concat(encodeURIComponent(o))}),o),i&&s?n=n.replace("#","&".concat(o,"#")):i&&!s?n="".concat(n,"&").concat(o):!i&&s?n=n.replace("#","?".concat(o,"#")):i||s||(n="".concat(n,"?").concat(o)),n}function Pt(e,t,r){if(e&&e.redirect&&e.redirect.active&&e.redirect.url){var n=gt(e.redirect.url,t,r);return e.redirect.new_tab||window.location.assign(n),Tt(),"Redirecting to ".concat(n)}return e&&e.message&&e.message.active&&e.message.text?(document.getElementsByClassName("sailthru-overlay")[0].style.display="none",document.getElementsByClassName("sailthru-overlay-post-click")[0].style.display="inherit",setTimeout((function(){Tt()}),ut),"Display Message: ".concat(e.message.text)):(Tt(),"No Post-click Action")}function Mt(e){return We(We({},Se.getVars()),{},{source:e.acquisition_source||"overlay"})}function wt(e){var t=e.destination_lists,r={},n=document.querySelector(lt),o=!!n,i=null,a=document.querySelector(ct),u=!!a,l=null,c=null,d=!1;if(o){if(!(i=vt(lt))||!St(i))return bt(lt),n.focus(),console.error("Invalid Email"),!1;r.email=i}if(u&&(d=""!==(l=vt(ct)),c=function(e){var t=e;"number"==typeof t&&(t=t.toString());var r=t.replace(/[^0-9]/g,"");return r.length<10?null:(10===r.length&&(r="1".concat(r)),"+".concat(r))}(l),d||!o)){if(!c)return bt(ct),a.focus(),console.error("Invalid Phone"),!1;r.sms=c}pt(ct),pt(lt);var h=o?"email":"sms",f=o?r.email:r.sms,m=""!==e.template,T={id:f,key:h},S={},y=document.querySelector(dt),b=document.querySelector(ht);d&&y&&(S.sms_marketing_status=y.checked?ft:mt),d&&b&&(S.sms_transactional_status=b.checked?ft:mt);var p=Mt(e),v=function(e,t,r){return function(n){Qe.urlFragmentParams[s]&&console.log("userSignUp SUCCESS",n),$e.conversion(e,t);var o=-1;if("function"==typeof qe.onSignupSuccess)try{if(0==(o=qe.onSignupSuccess(We(We({},t),{},{vars:We({},r),response:n}))))return Tt(),0}catch(e){console.log("onSignupSuccess encountered an error:",e),o=0}var i=Pt(e.post_click,t,r);return Qe.urlFragmentParams[s]&&console.log("onSignupSuccess returned ".concat(o," with post-click: ").concat(i)),o}}(e,r,p),g=function(e){return function(t){console.log("userSignUp ERROR",t);var r=-1;if("function"==typeof qe.onSignupError)try{r=qe.onSignupError(We(We({},e),{},{error:t.error||"There was an error with your request"}))}catch(e){console.log("onSignupError encountered an error:",e),r=0}return Tt(),console.log("onSignupError returned ".concat(r)),r}}(r);if(m&&r.email){var P={name:e.template,vars:{signup_lists:t}};return Ye.userSignUpConfirmedOptIn(T,We(We({keys:r},S),{},{vars:p,template:P,onSuccess:v,onError:g}))}var M={};return t&&t.forEach((function(e){M[e]=1})),Ye.userSignUp(T,We(We({keys:r},S),{},{lists:M,vars:p,onSuccess:v,onError:g}))}function At(){return"1"===Qe.urlFragmentParams[u]}function Gt(e,t,r){try{e.setItem(t,r)}catch(n){if("QuotaExceededError"===n.name){console.error("LocalStorage is full. Making space and retrying update"),r=r.substr(1+r.indexOf("|"));try{e.setItem(t,r)}catch(e){throw console.error("Failed updating local storage"),e}}}}function Ot(e,t){var r=e.getItem("sailthru-overlay-info")||"",n="".concat(t,"#").concat(it.utc().toISO(),"|");if(-1===r.indexOf(t))Gt(e,"sailthru-overlay-info","".concat(r).concat(n));else{var o=r.split("|").find((function(e){return e.startsWith(t)}));Gt(e,"sailthru-overlay-info",r.replace("".concat(t,"#").concat(o.split("#")[1],"|"),"".concat(n)))}}function It(e,t,r,n){var o=n||window.localStorage,i=h.read("sailthru_overlays"),s=function(e,t){var r=e.getItem("sailthru-overlay-info")||"";if(""===r||-1===r.indexOf(t))return null;var n=r.split("|").find((function(e){return e.startsWith(t)}));return it.fromISO(n.split("#")[1])}(o,r),a=it.utc();if(At())return!0;switch(e){case"every-pageview":return!0;case"once-visit":return-1===i.indexOf(r)&&function(){h.create("sailthru_overlays","".concat(r).concat(h.read("sailthru_overlays")),30)};case"once-ever":return o.getItem("sailthruOverlay")?-1===o.getItem("sailthruOverlay").indexOf(r)&&function(){try{o.setItem("sailthruOverlay","".concat(r).concat(o.getItem("sailthruOverlay")))}catch(e){o.setItem("sailthruOverlay","".concat(r).concat(o.getItem("sailthruOverlay").slice(0,-36)))}}:function(){o.setItem("sailthruOverlay",r)};case"once-month":if(null===s)return function(){Ot(o,r)};var u=s.plus({days:31}).setZone("utc"),l=s.plus({months:1}).endOf("month");return a>=it.min(l,u)&&function(){Ot(o,r)};case"once-week":return a.minus({days:a.weekday%7}).startOf("day")>s&&function(){Ot(o,r)};case"once-n-days":return(null==s||a>=s.plus({days:t}))&&function(){Ot(o,r)};case"every-n-pageviews":return h.getPageViewsCount()>=function(e,t){var r=0,n=e.getItem("sailthru-overlay-hit-count")||"";return n.indexOf(t)>=0&&(r=n.split("|").find((function(e){return e.startsWith(t)})).split("#")[1]),Number(r)}(o,r)+t&&function(){!function(e,t){var r=h.getPageViewsCount(),n=e.getItem("sailthru-overlay-hit-count")||"",o="".concat(t,"#").concat(r,"|");if(-1===n.indexOf(t))Gt(e,"sailthru-overlay-hit-count","".concat(n).concat(o));else{var i=n.split("|").find((function(e){return e.startsWith(t)}));Gt(e,"sailthru-overlay-hit-count",n.replace("".concat(t,"#").concat(i.split("#")[1],"|"),"".concat(o)))}}(o,r),Ot(o,r)};default:return!1}}function Et(){var e=new(Te())(window.navigator.userAgent);return e.mobile()||e.phone()||e.tablet()}function Ct(e){var t=document.querySelector("#sailthru-overlay-call-to-action"),r=document.querySelector(lt),n=document.querySelector(ct);t&&(t.addEventListener("click",(function(){wt(e)})),r&&r.addEventListener("input",(function(){var r=e.post_click;if(r&&r.redirect&&r.redirect.active&&r.redirect.new_tab&&St(this.value)){var n=Mt(e),o={email:vt(lt)};Je=gt(r.redirect.url,o,n),t.href=Je,t.target="_blank"}else t.removeAttribute("href"),t.removeAttribute("target")}))),r&&r.addEventListener("keydown",(function(e){pt(lt),(e.which||e.keyCode)===st&&document.querySelector("#sailthru-overlay-call-to-action").click()})),n&&n.addEventListener("keydown",(function(e){pt(ct),(e.which||e.keyCode)===st&&document.querySelector("#sailthru-overlay-call-to-action").click()}))}function Dt(e,t){if(!nt){nt=e;for(var r,n,o=document.getElementsByClassName("sailthru-overlay"),i=o.length-1;i>=0;i-=1)try{document.body.removeChild(o[i])}catch(e){}r=e.html,n=new window.DOMParser,document.body.appendChild(n.parseFromString(r,"text/html").body.firstChild),document.body&&document.body.classList&&document.body.classList.add("sailthru-overlay-no-scroll"),!1===e.allow_close?function(){var e=document.querySelector(".sailthru-overlay-post-click");if(e){var t=e.querySelectorAll(".sailthru-overlay-close");if(t)for(var r=0;r20||ot!=e||Bt(e,t)}};function Nt(e){if(e.exit_intent){var t=Ht(e);document.documentElement.addEventListener("mouseleave",t)}else e.timer?tt.renderTimeDelayedOverlay(e):Bt(e);return e}function Vt(e){var t={};return Object.keys(e).forEach((function(r){if("renderhref"!=r){var n=e[r];e.renderhref&&n&&(n.renderhref=e.renderhref),Nt(n),t[r]=n}})),t}function xt(){var e=[],t=Qe.getPreviewIdFromAnchor();t&&(console.log("previewing overlay ".concat(t)),e.push("preview=".concat(t)));var r,n,o=(r="".concat(l,"=1"),(n=-1!=window.location.hash.indexOf(r))&&console.log('Overriding pageviews count with anchor "'.concat(r,'".')),n?"10000":h.read("sailthru_pageviews"));o&&e.push("pageviews=".concat(o));var i=Et()?"1":"0";e.push("isMobile=".concat(i));var s=et.triggerStickyOverlay();s&&e.push("echo=".concat(s)),e=Qe.pushLandingPageParams(e);var a,u,c=Ue((u=h.read("sailthru_overlays"),ye.parseUuidsList(u)));try{for(c.s();!(a=c.n()).done;){var d=a.value;e.push("so=".concat(d))}}catch(e){c.e(e)}finally{c.f()}var f,m,T,S=Ue((T=(m||window.localStorage).getItem("sailthruOverlay"),ye.parseUuidsList(T)));try{for(S.s();!(f=S.n()).done;){var y=f.value;e.push("oo=".concat(y))}}catch(e){S.e(e)}finally{S.f()}if(qe.overlayKeyValue&&"object"==_e(qe.overlayKeyValue)){for(var b={},p=0,v=Object.keys(qe.overlayKeyValue);p=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=5)Zt(t);else{var n=r.section.sectionId,o=r.urls;Wt.impression(n,o,{sectionId:n,elementId:t,userIdKey:jt.userIdKey,userIdValue:jt.userIdValue,onSuccess:qt,onError:$t})}return r}}function Yt(){var e=jt.impressions;Object.keys(e).forEach((function(t){var r=e[t];if(function(e){var t=document.querySelector(e);if(!t)return!1;var r=t.getBoundingClientRect(),n=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;return!(r.right<0||r.bottom<0||r.left>n||r.top>o)}(t)&&"unseen"===r.status){var n=r.section.sectionId,o=r.urls;return r.status="seen",Wt.impression(n,o,{elementId:t,userIdKey:jt.userIdKey,userIdValue:jt.userIdValue,onSuccess:qt,onError:$t}),r}}))}function Qt(e){var t,r=e.selector,n=[],o=_t(document.querySelectorAll("".concat(r," a[href]")));try{for(o.s();!(t=o.n()).done;){var i=t.value;n.push(i.href)}}catch(e){o.e(e)}finally{o.f()}return jt.impressions[r]={section:e,urls:n,failures:0,status:"unseen"},window.addEventListener("scroll",Yt),Yt()}function Jt(e){var t=e.sectionId,r=e.selector,n=e.list,o=e.json,i=e.html,s=e.error,a=e.errorMessage;if(s)return{error:s};if(a)return{errorMessage:a};var u={sectionId:t,selector:r,list:n};return o?u.json=o:i&&(u.html=i),u}function er(e){var t=e.selector,r=e.html,n=document.querySelectorAll(t);if(n.length>0){var o,i=_t(n);try{for(i.s();!(o=i.n()).done;){var s=o.value,a=s.cloneNode(!1);a.innerHTML=r,s.parentNode.replaceChild(a,s)}}catch(e){i.e(e)}finally{i.f()}}else console.error("Unknown selector '".concat(t,"' for section ").concat(e.sectionId))}function tr(e,t){return"function"==typeof t?t(e):jt&&"function"==typeof jt.onError?jt.onError(e):console.error("Personalize call failed. ".concat(e))}function rr(t,r){var n=t.testId,o=t.customerId,i=t.sections,s=void 0===i?{}:i,a=t.overlays,u=void 0===a?{}:a,l=t.doNotTrack;if(void 0!==n&&(h.delete("sailthru_test_id"),h.create("sailthru_test_id",n,525600)),void 0!==t.pageview){var c=t.pageview.error||t.pageview.message,d=t.pageview.contentHash,f=t.pageview.visitorId;void 0!==c?console.error("Pageview error ".concat(c)):(h.updateSailthruContentCookie(d),f&&(h.delete("sailthru_visitor"),h.create("sailthru_visitor",f,525600)))}if(jt.customerId=o||jt.customerId,jt.sections=function(e){var t=jt.requestedSections;for(var r in e){var n=e[r],o=t[n.requestedSectionId],i=void 0!==o;n.sectionId=r,jt.isCustom&&(n.selector=o.selector||""),n.html&&!n.control&&er(n),n.selector&&(Qt(n),zt(n)),e[r]=Jt(n),n.error||n.errorMessage?i&&"function"==typeof o.onError&&o.onError(e[r]):i&&"function"==typeof o.onSuccess&&o.onSuccess(e[r])}return e}(s),Xt.setPreview()){var m=Object.keys(u)[0];void 0!==m?jt.overlay=Xt.renderOverlay(u[m]):console.warn("No overlay to preview. put a valid overlay id!")}else t.renderhref&&(u.renderhref=t.renderhref),jt.overlay=Xt.renderOverlays(u);l&&(h.setSailthruHid(e),h.handleGDPR()),"function"==typeof r&&r(jt.sections),"function"==typeof jt.onSuccess&&jt.onSuccess(jt.sections)}function nr(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.location.toString();if(t&&!e){var r=t.indexOf("#");r>=0&&(t=t.slice(0,r))}return t}window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,r=(this.document||this.ownerDocument).querySelectorAll(e),n=this;do{for(t=r.length;--t>=0&&r.item(t)!==n;);}while(t<0&&(n=n.parentElement));return n});const or=function(e){return Xt=Rt(jt=e),Wt=I(jt),Kt=W(),ke(),{fetchPersonalize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw Error("Missing referrerUrl from personalize call");var n=new Headers({Accept:"application/json","Content-Type":"application/json","X-Lib-Version":jt.VERSION,Authorization:"Bearer ".concat(jt.customerId),"X-Referring-URL":nr(jt.fragmentEnabled)});return M(e,{credentials:"same-origin",headers:n},3e4).then((function(e){return function(e,t){if(window.location!=t)throw Kt.urlFragmentParams[s]&&(console.log("window.location",window.location),console.log("referrerUrl",t)),Error("Response for different page.");if(!e)throw Error("No personalize response.");return e.json()}(e,t)})).then((function(e){return e&&(e.error||e.message)?tr(e,r.onError):(e.customerId&&""!=e.customerId&&jt&&jt.currhref&&(e.renderhref=jt.currhref),rr(e,r.onSuccess))})).catch((function(e){return tr(e,r.onError)}))},SPAHistoryHook:function(){var e,t;e=window.history,t=e.pushState,e.pushState=function(r,n,o){var i=t.apply(e,arguments);return Sailthru.init(jt),i}}}},ir=function(e){return fetch("".concat(e,"awepop.js"),{mode:"no-cors"}).then((function(){return!1})).catch((function(e){return"Failed to fetch"===e.message}))};function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ur(e,t,r){var n;return n=function(e,t){if("object"!=sr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==sr(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lr,cr,dr,hr;function fr(e){var t="".concat(lr.personalizeDomain,"/v1/personalize"),r=[];if(e)t+="?",r.push("sections=".concat(Object.keys(lr.requestedSections).join())),lr.userVars&&r.push("vars=".concat(encodeURIComponent(JSON.stringify(lr.userVars))));else{t+="/simple?",r=cr.getUrlParameters();var n=h.read("sailthru_visitor");n&&r.push("visitorId=".concat(n));var o=h.read("sailthru_bid");o&&r.push("messageId=".concat(o))}r=hr.pushUserIdKeyAndUserIdValue(lr,r);var i=h.read("sailthru_content");i&&r.push("content=".concat(i));var s=h.read("sailthru_test_id");return s&&r.push("testId=".concat(s)),lr.checkBlocked?ir(lr.assetsPath).then((function(e){return e&&r.push("blocked=true"),t+r.join("&")})):Promise.resolve(t+r.join("&"))}function mr(e){var t=e.sections,r={onSuccess:e.onSuccess,onError:e.onError,sections:t};if(!t||!t.length)throw Error("Please add sections before personalize");return e&&e.vars&&(lr.userVars={vars:e.vars}),t.forEach((function(e){lr.requestedSections[e.id]=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},g=v.userIdKey,P=void 0===g?"hid":g,M=v.checkBlocked,w=void 0!==M&&M,A=v.isCustom,G=void 0!==A&&A,O=v.autoTrackPageview,E=void 0===O||O,C=v.excludeContent,D=void 0!==C&&C,k=v.useStoredTags,B=void 0===k||k,H=v.customerId,N=v.fragmentEnabled,V=void 0!==N&&N,x=v.onSuccess,L=v.onError,F=v.onSignupSuccess,R=v.onSignupError,_=v.onBeforeOverlayRender,U=v.overlayKeyValue,j=v.hostWebsiteType;if((p=br(br({VERSION:"v1.0.1"},e),{},{isCustom:G,userIdKey:P,checkBlocked:w,customerId:H,fragmentEnabled:V,overlays:{},sections:{},requestedSections:{},impressions:{},cleanJSON:[],autoTrackPageview:E,excludeContent:D,useStoredTags:B,onSuccess:x,onError:L,onSignupSuccess:F,onSignupError:R,onBeforeOverlayRender:_,overlayKeyValue:U})).currhref=document.location.href,void 0===p.customerId)throw Error("Customer ID is required.");h.refreshNoCookies(),h.handleGDPR();var W=or(p);j&&"spa"===j.toLowerCase()&&W.SPAHistoryHook(),t=W.fetchPersonalize;var X=I(p);r=X.click,n=X.impression,o=X.pageview,T=X.gdprDoNotTrack,S=X.cookiesDoNotTrack;var K=ue(p);i=K.appendHearbeatListener;var z=fe(p);s=z.getCurrentUser,a=z.userSignUp,u=z.userSignUpConfirmedOptIn,l=z.addToCart,c=z.purchase,d=z.customEvent,y=z.watchContent;var Z=ke();b=Z.dismiss,f=Tr(p),m=Rt(p),h.updatePageviewsCookie();var q=window.localStorage;return 1===h.getPageViewsCount()&&q.removeItem("sailthru-overlay-hit-count"),m.hideOverlay(),G?(E&&o(window.location.href),m.buildOverlayUrl().then((function(e){return t(e,window.location)}))):f.buildPersonalizeUrl(!1).then((function(e){return t(e,window.location)})).then((function(){h.isDoNotTrackUser()||i()}))},personalize:function(e){return h.handleGDPR(),f.personalize(e)},track:function(e,t){var s=br({},t),a=s.sectionId,u=s.url,l=s.urls,c="Invalid event: ".concat(e,". Please specify a valid event.");switch(delete s.sectionId,delete s.url,delete s.urls,delete s.email,delete s.name,delete s.id,delete s.key,h.handleGDPR(),e){case"click":return r(a,u,s);case"impression":return n(a,l,s);case"pageview":return o(u,s).then((function(){h.isDoNotTrackUser()||i()}));case"gdprDoNotTrack":return T(e);case"cookiesDoNotTrack":return S(t);default:return console.error(c),c}},integration:function(e,t){var r=br({},t),n=r.email,o=r.name,i=r.id,f=r.key,m={id:i||n,key:void 0===f?"email":f},T="Invalid event: ".concat(e,". Please specify a valid event.");switch(delete r.sectionId,delete r.url,delete r.urls,delete r.email,delete r.name,delete r.id,delete r.key,h.handleGDPR(),e){case"getCurrentUser":return s(r);case"userSignUp":return a(m,r);case"userSignUpConfirmedOptIn":return u(m,r);case"addToCart":return l(m,r);case"purchase":return c(m,r);case"watchContent":return y(m,r);case"customEvent":return d(o,m,r);default:return console.error(T),T}},overlay:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="Invalid event: ".concat(e,". Please specify a valid event."),n=t.overlayId;switch(e){case"dismiss":return b(n);case"hide":return m.hideOverlay();default:return console.error(r),r}}}}({trackDomain:"https://api.sail-track.com",personalizeDomain:"https://api.sail-personalize.com",overlayTrackDomain:"https://overlay-track.sailthru.cloud",assetsPath:"https://ak.sail-horizon.com/spm/",enableHeartbeat:!0}),gr=vr.debug,Pr=vr.init,Mr=vr.personalize,wr=vr.track,Ar=vr.integration,Gr=vr.overlay,Or=d.getCookie})(),n})())); //# sourceMappingURL=spm.v1.min.js.map