PageSourceSearch

https://denverjudo.com/min/?b=js&v=1eca0cda5093&f=library/intl-mes…/countdown.js,academy/templates/modern.js

js denverjudo.com collected 2026-10-08 13:23:52 UTC 72,510 bytes, 88 lines download raw bytes

vendor: 4,736 bytes, line 1
1(()=>{var W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},W(e,t)};function w(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");W(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c.apply(this,arguments)};function ae(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function V(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function j(e,t){var n=t&&t.cache?t.cache:Ue,r=t&&t.serializer?t.serializer:Ge,i=t&&t.strategy?t.strategy:Ce;return i(e,{cache:n,serializer:r})}function Oe(e){return e==null||typeof e=="number"||typeof e=="boolean"}function se(e,t,n,r){var i=Oe(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function he(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function Z(e,t,n,r,i){return n.bind(t,e,r,i)}function Ce(e,t){var n=e.length===1?se:he;return Z(e,this,n,t.cache.create(),t.serializer)}function Re(e,t){return Z(e,this,he,t.cache.create(),t.serializer)}function Me(e,t){return Z(e,this,se,t.cache.create(),t.serializer)}var Ge=function(){return JSON.stringify(arguments)},De=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ue={create:function(){return new De}},X={variadic:Re,monadic:Me};var l;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(l||(l={}));var b;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(b||(b={}));var T;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(T||(T={}));function z(e){return e.type===b.literal}function Y(e){return e.type===b.argument}function N(e){return e.type===b.number}function I(e){return e.type===b.date}function L(e){return e.type===b.time}function O(e){return e.type===b.select}function C(e){return e.type===b.plural}function ue(e){return e.type===b.pound}function R(e){return e.type===b.tag}function k(e){return!!(e&&typeof e=="object"&&e.type===T.number)}function M(e){return!!(e&&typeof e=="object"&&e.type===T.dateTime)}var J=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
vendor: 9,599 bytes, line 1
1var Fe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function fe(e){var t={};return e.replace(Fe,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function xe(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(le).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var h=a[0],x=a.slice(1),u=0,s=x;u<s.length;u++){var m=s[u];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:h,options:x})}return n}function Ve(e){return e.replace(/^(.*?)-/,"")}var ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,be=/^(@+)?(\+|#+)?[rs]?$/g,je=/(\*)(0+)|(#+)(0+)|(0+)/g,Ee=/^(0+)$/;function pe(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(be,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function ye(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Xe(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ee.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function me(e){var t={},n=ye(e);return n||t}function ve(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ve(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=c(c(c({},t),{notation:"scientific"}),i.options.reduce(function(x,u){return c(c({},x),me(u))},{}));continue;case"engineering":t=c(c(c({},t),{notation:"engineering"}),i.options.reduce(function(x,u){return c(c({},x),me(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(je,function(x,u,s,m,f,E){if(u)t.minimumIntegerDigits=s.length;else{if(m&&f)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ee.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ce.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ce,function(x,u,s,m,f,E){return s==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:f&&E?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+E.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=c(c({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=c(c({},t),pe(o)));continue}if(be.test(i.stem)){t=c(c({},t),pe(i.stem));continue}var a=ye(i.stem);a&&(t=c(c({},t),a));var h=Xe(i.stem);h&&(t=c(c({},t),h))}return t}var G={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
vendor: 21,166 bytes, line 1
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ge(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),h=o<2?1:3+(o>>1),x="a",u=ke(t);for((u=="H"||u=="k")&&(h=0);h-- >0;)n+=x;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function ke(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=G[r||""]||G[n||""]||G["".concat(n,"-001")]||G["001"];return i[0]}var Q,We=new RegExp("^".concat(J.source,"*")),Ze=new RegExp("".concat(J.source,"*$"));function p(e,t){return{start:e,end:t}}var ze=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ye=!!String.fromCodePoint,Je=!!Object.fromEntries,Qe=!!String.prototype.codePointAt,qe=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Ke=!!Number.isSafeInteger,et=Ke?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$=!0;try{de=Se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),$=((Q=de.exec("a"))===null||Q===void 0?void 0:Q[0])==="a"}catch{$=!1}var de,_e=ze?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},K=Ye?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},He=Je?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],h=o[1];n[a]=h}return n},Te=Qe?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},tt=qe?function(t){return t.trimStart()}:function(t){return t.replace(We,"")},rt=$e?function(t){return t.trimEnd()}:function(t){return t.replace(Ze,"")};function Se(e,t){return new RegExp(e,t)}var ee;$?(q=Se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ee=function(t,n){var r;q.lastIndex=n;var i=q.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}):ee=function(t,n){for(var r=[];;){var i=Te(t,n);if(i===void 0||Ae(i)||ot(i))break;r.push(i),n+=i>=65536?2:1}return K.apply(void 0,r)};var q,Be=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var h=this.clonePosition();this.bump(),i.push({type:b.pound,location:p(h,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(l.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&te(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(i,"/>"),location:p(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(l.INVALID_TAG,p(h,this.clonePosition()));var x=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(l.UNMATCHED_CLOSING_TAG,p(x,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:a,location:p(r,this.clonePosition())},err:null}:this.error(l.INVALID_TAG,p(h,this.clonePosition())))}else return this.error(l.UNCLOSED_TAG,p(r,this.clonePosition()))}else return this.error(l.INVALID_TAG,p(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&it(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var h=this.tryParseLeftAngleBracket();if(h){i+=h;continue}break}var x=p(r,this.clonePosition());return{val:{type:b.literal,value:i,location:x},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return K.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),K(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(l.EMPTY_ARGUMENT,p(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(l.MALFORMED_ARGUMENT,p(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:i,location:p(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(l.MALFORMED_ARGUMENT,p(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=ee(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=p(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),h=this.parseIdentifierIfPossible().value,x=this.clonePosition();switch(h){case"":return this.error(l.EXPECT_ARGUMENT_TYPE,p(a,x));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var s=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var f=rt(m.val);if(f.length===0)return this.error(l.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));var E=p(s,this.clonePosition());u={style:f,styleLocation:E}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var g=p(i,this.clonePosition());if(u&&_e(u?.style,"::",0)){var _=tt(u.style.slice(2));if(h==="number"){var m=this.parseNumberSkeletonFromString(_,u.styleLocation);return m.err?m:{val:{type:b.number,value:r,location:g,style:m.val},err:null}}else{if(_.length===0)return this.error(l.EXPECT_DATE_TIME_SKELETON,g);var A=_;this.locale&&(A=ge(_,this.locale));var f={type:T.dateTime,pattern:A,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?fe(A):{}},B=h==="date"?b.date:b.time;return{val:{type:B,value:r,location:g,style:f},err:null}}}return{val:{type:h==="number"?b.number:h==="date"?b.date:b.time,value:r,location:g,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(l.EXPECT_SELECT_ARGUMENT_OPTIONS,p(d,c({},d)));this.bumpSpace();var P=this.parseIdentifierIfPossible(),H=0;if(h!=="select"&&P.value==="offset"){if(!this.bumpIf(":"))return this.error(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,l.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),P=this.parseIdentifierIfPossible(),H=m.val}var F=this.tryParsePluralOrSelectOptions(t,h,n,P);if(F.err)return F;var v=this.tryParseArgumentClose(i);if(v.err)return v;var oe=p(i,this.clonePosition());return h==="select"?{val:{type:b.select,value:r,options:He(F.val),location:oe},err:null}:{val:{type:b.plural,value:r,options:He(F.val),offset:H,pluralType:h==="plural"?"cardinal":"ordinal",location:oe},err:null}}default:return this.error(l.INVALID_ARGUMENT_TYPE,p(a,x))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,p(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(l.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=xe(t)}catch{return this.error(l.INVALID_NUMBER_SKELETON,n)}return{val:{type:T.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ve(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,h=[],x=new Set,u=i.value,s=i.location;;){if(u.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_SELECTOR,l.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;s=p(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(x.has(u))return this.error(n==="select"?l.DUPLICATE_SELECT_ARGUMENT_SELECTOR:l.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,s);u==="other"&&(a=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?l.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:l.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var g=this.tryParseArgumentClose(E);if(g.err)return g;h.push([u,{value:v.val,location:p(E,this.clonePosition())}]),x.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,s=o.location}return h.length===0?this.error(n==="select"?l.EXPECT_SELECT_ARGUMENT_SELECTOR:l.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(l.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)o=!0,a=a*10+(h-48),this.bump();else break}var x=p(i,this.clonePosition());return o?(a*=r,et(a)?{val:a,err:null}:this.error(n,x)):this.error(t,x)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Te(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(_e(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function nt(e){return te(e)||e===47}function it(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ae(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ot(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function re(e){e.forEach(function(t){if(delete t.location,O(t)||C(t))for(var n in t.options)delete t.options[n].location,re(t.options[n].value);else N(t)&&k(t.style)||(I(t)||L(t))&&M(t.style)?delete t.style.location:R(t)&&re(t.children)})}function Pe(e,t){t===void 0&&(t={}),t=c({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Be(e,t).parse();if(n.err){var r=SyntaxError(l[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||re(n.val),n.val}var S;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(S||(S={}));var D=function(e){w(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var ne=function(e){w(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),S.INVALID_VALUE,o)||this}return t}(D);var we=function(e){w(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),S.INVALID_VALUE,i)||this}return t}(D);var Ne=function(e){w(t,e);
vendor: 4,827 bytes, lines 1-3
1function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),S.MISSING_VALUE,r)||this}return t}(D);var y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(y||(y={}));function at(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==y.literal||n.type!==y.literal?t.push(n):r.value+=n.value,t},[])}function st(e){return typeof e=="function"}function U(e,t,n,r,i,o,a){if(e.length===1&&z(e[0]))return[{type:y.literal,value:e[0].value}];for(var h=[],x=0,u=e;x<u.length;x++){var s=u[x];if(z(s)){h.push({type:y.literal,value:s.value});continue}if(ue(s)){typeof o=="number"&&h.push({type:y.literal,value:n.getNumberFormat(t).format(o)});continue}var m=s.value;if(!(i&&m in i))throw new Ne(m,a);var f=i[m];if(Y(s)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),h.push({type:typeof f=="string"?y.literal:y.object,value:f});continue}if(I(s)){var E=typeof s.style=="string"?r.date[s.style]:M(s.style)?s.style.parsedOptions:void 0;h.push({type:y.literal,value:n.getDateTimeFormat(t,E).format(f)});continue}if(L(s)){var E=typeof s.style=="string"?r.time[s.style]:M(s.style)?s.style.parsedOptions:r.time.medium;h.push({type:y.literal,value:n.getDateTimeFormat(t,E).format(f)});continue}if(N(s)){var E=typeof s.style=="string"?r.number[s.style]:k(s.style)?s.style.parsedOptions:void 0;E&&E.scale&&(f=f*(E.scale||1)),h.push({type:y.literal,value:n.getNumberFormat(t,E).format(f)});continue}if(R(s)){var v=s.children,g=s.value,_=i[g];if(!st(_))throw new we(g,"function",a);var A=U(v,t,n,r,i,o),B=_(A.map(function(H){return H.value}));Array.isArray(B)||(B=[B]),h.push.apply(h,B.map(function(H){return{type:typeof H=="string"?y.literal:y.object,value:H}}))}if(O(s)){var d=s.options[f]||s.options.other;if(!d)throw new ne(s.value,f,Object.keys(s.options),a);h.push.apply(h,U(d.value,t,n,r,i));continue}if(C(s)){var d=s.options["=".concat(f)];if(!d){if(!Intl.PluralRules)throw new D(`Intl.PluralRules is not available in this environment.
2Try polyfilling it using "@formatjs/intl-pluralrules"
3`,S.MISSING_INTL_API,a);var P=n.getPluralRules(t,{type:s.pluralType}).select(f-(s.offset||0));d=s.options[P]||s.options.other}if(!d)throw new ne(s.value,f,Object.keys(s.options),a);h.push.apply(h,U(d.value,t,n,r,i,f-(s.offset||0)));continue}}return at(h)}function ht(e,t){return t?c(c(c({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=c(c({},e[r]),t[r]||{}),n},{})):e}function ut(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=ht(e[r],t[r]),n},c({},e)):e}function ie(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ft(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:j(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,V([void 0],n,!1)))},{cache:ie(e.number),strategy:X.variadic}),getDateTimeFormat:j(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,V([void 0],n,!1)))},{cache:ie(e.dateTime),strategy:X.variadic}),getPluralRules:j(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,V([void 0],n,!1)))},{cache:ie(e.pluralRules),strategy:X.variadic})}}var Ie=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var s=o.formatToParts(u);if(s.length===1)return s[0].value;var m=s.reduce(function(f,E){return!f.length||E.type!==y.literal||typeof f[f.length-1]!="string"?f.push(E.value):f[f.length-1]+=E.value,f},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(u){return U(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{},h=a.formatters,x=ae(a,["formatters"]);this.ast=e.__parse(t,c(c({},x),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ut(e.formats,r),this.formatters=i&&i.formatters||ft(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
3,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Pe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Le=Ie;window.IntlMessageFormat=Le;})();
4;function t_attr(el,key,fallback){const element=el instanceof jQuery?el[0]:el;return element?.getAttribute('data-'+key)??fallback;}
5(()=>{const config=window.gymdesk.i18n;config.translations={};const messageCache=new Map();const followPath=(o,p)=>{for(let s of p.split('.')){o=o?.[s];}
6return typeof o==='string'?o:null;};const getMessage=function(slug){if(!messageCache.has(slug)){const translation=followPath(config.translations,slug);if(translation===null){console.warn(`Missing translation for '${slug}'`);return null;}else{messageCache.set(slug,new IntlMessageFormat(translation,config.locale.replace('_','-')),);}}
7return messageCache.get(slug);};window.t=function(slug,data={}){const message=getMessage(slug);if(message===null){return null;}
8return(config.markTranslations?'t:':'')+message.format(data);};config.translationsReady=(async()=>{try{const response=await fetch(config.url);config.translations=await response.json();return true;}catch(e){console.error('Failed to load translations:',e);throw e;}})();})();;;(function($){var mor=window.mor={init:function(){this.share();this.initToggles();this.initContentTabs();if($('#register-popup').length==1){this.initNonUserForm();}
9this.initMobileNav();this.initChat();this.initLanguageSelector();},initNonUserForm:function(){var self=this;var tabs=$('#register-popup .tabs li');tabs.click(function(){if(!$(this).is('.on')){var pos=tabs.index(this);tabs.filter('.on').removeClass('on');$(this).addClass('on');$('#register-popup .tab').hide().eq(pos).show().find("input[type='text']:first")[0].focus();}});$('#register-popup form .pw,#register-popup form .image_reg').remove();$('#register-popup .register').submit(function(e){$('#register-popup .error').remove();e.preventDefault();var data=$(this).serialize();$.post('register/ajax',data,function(response){if(response==1){$('#register-popup .tab').hide().eq(2).show();}else{response=eval('('+response+')');for(var el in response.errors){var error=response.errors[el];self.error($("#register-popup .register input[name='"+el+"']"),error,'error');}}});});$('.must-be-logged').click(function(e){if($('#register-popup').length==0){return true;}
10e.stopPropagation();e.preventDefault();mor.media.overlay($('#register-popup'));});},error:function(el,text,cls){cls=cls||'error-message';var pos=$(el).position();var width=$(el).width();if(typeof(text)=='object'){for(var i in text){text=text[i];break;}}
11var z=this.zIndex(el);var tip=$('<span class="'+cls+'">'+text+'</span>').appendTo('body').css({zIndex:z+1}).fadeIn();if($(el).is('button')){if(typeof($.position)!='undefined'){tip.position({my:"center bottom-5",at:"center top",of:el,collision:"none none"});}else{var offset=$(el).offset();tip.css({top:offset.top-$(el).height()-15,left:offset.left});}}else{if(typeof($.position)!='undefined'){tip.position({my:"center bottom",at:"center top-2",of:el,collision:"none none"});}else{var offset=$(el).offset();var top=(offset.top-$(el).height()-15);top=top<0?0:top;tip.css({top:top,left:offset.left});}}
12var p=$(el);while(p.length&&!p.is('body')){if(p.css('position')==='fixed'){var tipOffset=tip.offset();tip.css({position:'fixed',top:tipOffset.top-$(window).scrollTop(),left:tipOffset.left-$(window).scrollLeft()});break;}
13p=p.parent();}
14$(tip).click(function(){tip.fadeOut(function(){$(this).remove()});});$(el).one('click',function(){tip.fadeOut(function(){$(this).remove()});$(this).parent().removeClass('error');}).one('change',function(){tip.fadeOut(function(){$(this).remove()});$(this).parent().removeClass('error');});$(el).data('error',tip);return tip;},zIndex:function(el){el=$(el);if(0===el.length){return 0;}
15var zIndex=0;if(el.length===0){return zIndex;}
16while(!el.is('body')){var z=parseInt(el.css('zIndex'),10);if(!isNaN(z)&&z>zIndex){zIndex=z;}
17el=el.parent();}
18return zIndex;},showErrors:function(errors,context){for(var i in errors){var error=errors[i];var el=$(context).find("[name='"+i+"']");if(el.length==0||el.is('[type="hidden"]')){el=$(context).find('button');}
19if(!el.is(':visible')){el=el.prev();}
20if(el.length>1){el=$(el).eq(0);}
21this.error(el,error);}},getUrl:function(button){if(!$(button).is('a')){return false;}
22var url=$(button).attr('count-url');if(typeof(url)!='undefined'){return url;}else if($(button).attr('href').split('?').length>1){var parts=$(button).attr('href').split('?')[1].split('&'),keyval;for(var i in parts){keyval=parts[i].split('=');if(keyval[0]=='u'||keyval[0]=='url'){var url=keyval[1];return url;}}}
23return window.location.href;},putCount:function(button){var page=this.getUrl(button);var $button=$(button);if($button.is('.facebook')){var url="https://graph.facebook.com/?id="+page+"&callback=?";$.getJSON(url,function(response){var likes=0;if(response.likes){likes+=response.likes;}
24if(response.shares){likes+=response.shares;}
25$button.attr('attr-count',likes);if(likes>0){$button.find('span').html(likes);}});}else if($button.is('.twitter')){var url='https://cdn.api.twitter.com/1/urls/count.json?url='+page+'&callback=?';$.getJSON(url,function(response){$button.attr('attr-count',response.count?response.count:0);if(response.count){$button.find('span').html(response.count);}});}else if($button.is('.hn')){var url="http://api.thriftdb.com/api.hnsearch.com/items/_search?filter[fields][url][]="+page+'&callback=?';$.getJSON(url,function(response){if(response.results&&response.results[0]){var score=response.results[0]['item']['points'];var id=response.results[0]['item']['id'];if(score>0){$button.find('span').html(score);var url='http://news.ycombinator.com/item?id='+id;$button.attr('href',url);}}});}else if($button.is('.gplus')){var url="index/gplus?url="+page;$.getJSON(url,function(response){if(response.count!=0){$button.find('span').html(response.count);}});}else if($button.is('.linkedin')){var url='https://www.linkedin.com/countserv/count/share?url='+page+'&callback=?';$.getJSON(url,function(response){$button.attr('attr-count',response.count?response.count:0);if(response.count>0){$button.find('span').html(response.count);}});}},share:function(){var self=this;$('.socialb').each(function(){var button=this;self.putCount(button);});$('.socialb.twitter,.socialb.facebook').click(function(e){e.preventDefault();var newwindow=window.open($(this).attr('href'),'sharing','height=480,width=600');if(window.focus){newwindow.focus();}});$('.social-buttons .share-link a').click(function(e){e.stopPropagation();e.preventDefault();$(this).parent().addClass('active');var link=$(this).parent().find('input');link[0].focus();link[0].select();});
25$('.social-buttons .share-link input').blur(function(){$(this).parent().removeClass('active');});},initMobileNav:function(){$("#header .show-menu").click(function(){$("#header").toggleClass('mobile-show');});$("#header .close-menu").click(function(){$("#header").removeClass('mobile-show');$(".show-menu").removeClass('close');});$('#header .more-links em').click(function(){var links=$(this).parent();if(links.is('.open')){$('#header').removeClass('has-open');links.removeClass('open');}else{$('.more-links.open').removeClass('open');links.addClass('open');$('#header').addClass('has-open');}});},initToggles:function(context){context=context||$(document);$(context).find('.toggle').click(function(e){if($(this).is('.no-init')){return;}
26if($(e.target).is('input')||$(this).parents('label').length==0){$(this).toggleClass('on').toggleClass('off');var radios=$(this).find('input[type="radio"]');if($(this).is('.on')){var checked=radios.eq(1);}else{var checked=radios.eq(0);}
27checked.prop("checked",true).trigger('change');}});},initContentTabs:function(){$(".container-tabs li a").click(function(){var tab=$(this).attr('href');$(this).parent().parent().find('.selected').removeClass('selected');$(this).parent().addClass('selected');$(".container-tab.active").removeClass('active');$(tab+".container-tab").addClass('active');return false;});},reviewPopup:function(){var popup=$("#please-review");if(popup.length==1){popup.find('.close').click(function(){var width=360;popup.animate({"right":"-"+width+"px"},function(){$(this).hide();});var id=$('#please-review').attr('attr-id');$.get("user/review/close");});window.setTimeout(function(){popup.animate({"right":0});},3000);}},abActivate:function(test){$.get('ab/activate',{test:test});},form:{validate:function(form,rules,callback){var self=this;$(form).data('rules',rules);var next=function(){if(self.hasBlockingPaymentMethodError(form)){return false;}
28if(typeof(callback)=='function'){callback();}else{$(form)[0].submit();}}
29$(form).find("input,select").focus(function(){$(this).parent().find('.error-message').remove();}).blur(function(){self.isValid(this);});$(form).submit(function(e){e.stopPropagation();e.preventDefault();var button=$(this).find("button[type='submit']:visible");var html=button.data('html');if(typeof(html)=='undefined'||html!=''&&button.prop('disabled')!=false){button.data('html',button.html());button.prop('disabled',true).html(`${t_attr(button, 'saving', t('common.actions.processing'))} <span class="spinner"></span>`);}
30$(this).find("input,select").each(function(){if($(this).parent().is('.valid')||$(this).is(':hidden')){return;}else if(!$(this).parent().is('.error')&&$(this).data('loading')!==true){self.isValid(this);}});if($(form).is('.loading')){var interval=window.setInterval(function(){if(!$(form).is('.loading')){window.clearInterval(interval);next();}},50);}else{next();}});},isValid:function(el){var name=$(el).attr('attr-name');name=name||$(el).attr('name');if(typeof(name)=='undefined'||name==''){name=$(el).attr('class');if(typeof(name)=='undefined'){return true;}
31var parts=name.split(' ');if(parts.length>1){for(var i in parts){if(parts[i]=='text'||parts[i]=='number'){delete(parts[i]);}}}
32name=parts.join('');}
33var rules=$(el).parents('form').data('rules');if(typeof(rules)=='undefined'||typeof(rules[name])=='undefined'){return true;}
34var validation=rules[name];if(typeof(validation)=='function'){validation.call(this,el);}else	if(validation){for(var validator in validation){var msg=validation[validator];var valid=this.validators[validator].call(this,$(el).val(),el,msg);}
35if(typeof(valid)!='undefined'){return this.result(valid,el,msg);}}},result:function(valid,el,msg){$(el).parent().find('.spinner').remove();if(valid){$(el).parent().removeClass('error').addClass('valid');}else if(msg){this.showError(msg,el);return false;}else{$(el).parent().removeClass('valid').find('label').append('<span class="spinner dark-spin"></span>');return false;}},showError:function(msg,el){$(el).parent().removeClass('valid').addClass('error').find('.spinner').remove();mor.error(el,msg);},scrollToError:function(){var error=$(".error-message");if(error.length==0){return;}
36var to=error.eq(0).offset().top-90;var scrolled=$('html').prop('scrollTop');if(to-scrolled>500||to-scrolled<0){$('html,body').animate({scrollTop:to},600);}}
36,validators:{Email:function(value,el,msg){var self=this;var url=$(el).attr('attr-target');var form=$(el).parents('form').addClass('loading');$(el).parent().append('<span class="spinner"></span>');$(el).data('loading',true);$.get(url,{email:value},function(response){$(el).data('loading',false);if(response==2){self.result(false,el,'Please enter valid Email address');}else if(response==1){self.result(false,el,msg);}else{self.result(true,el);}
37form.removeClass('loading');});},Card:function(value,el,msg){if(typeof(Stripe)!='undefined'){return Stripe.card.validateCardNumber(value);}else{if($.payment.validateCardNumber(value)){var form=$(el).parents('form');if(form.length==1){var input=form.find("input[name='card_brand']");if(input.length==0){input=$('<input type="hidden" name="card_brand" />').appendTo(form);}
38input.val($.payment.cardType(value));}
39return true;}
40return false;}},Expiry:function(value,el,msg){if(typeof(Stripe)!='undefined'){return Stripe.card.validateExpiry($(".card-expiry").val());}else{return $.payment.validateCardExpiry($(".card-expiry").payment('cardExpiryVal'));}},StringLength:function(value,el,msg){var max=$(el).attr('maxlength');if(max&&value.length>parseInt(max,10)){return false;}
41return true;},NotEmpty:function(value,el,msg){return value!='';}},hasBlockingPaymentMethodError:function(form){var self=this;var errorEls=$(form).find('.error');var selectedMethodLi=$(form).find('.methods li.selected').length?$(form).find('.methods li.selected').first():$(form).find('input[name="method_id"]:checked').closest('.methods li');var hasBlockingError=false;var errorInSelectedMethod=false;errorEls.each(function(){var el=$(this);var inMethods=el.closest('.methods').length>0;if(!inMethods){hasBlockingError=true;}
42if(selectedMethodLi.length&&el.closest('.methods li').length&&el.closest('.methods li')[0]===selectedMethodLi[0]){hasBlockingError=true;errorInSelectedMethod=true;}});if(hasBlockingError){if(errorInSelectedMethod&&selectedMethodLi.length){self.result(false,selectedMethodLi,t('memberPortal.error.checkout.paymentMethodHasErrors'));}
43self.resetButton(form);self.scrollToError();return true;}
44return false;},resetButton:function(form){var button=$(form).find("button[type='submit']");button.attr('disabled',false).data('disabled',false);if(button.data('html')!=''){button.html(button.data('html'));}}},debug:function(text){if($('#debug').length==0){$('<div id="debug"></div>').appendTo('body');}
45var debug=$('#debug');debug.append(text+'<br />');},fp:function(fp){var params={fp:fp};var visitId=false;if(storageAvailable('localStorage')){var visitId=localStorage.getItem('visit_id');if(visitId){params['visit_id']=visitId;}}
46$.post('visits/fp',params,function(serverVisitId){if(storageAvailable('localStorage')){localStorage.setItem('visit_id',serverVisitId);}});},initChat:function(){if($('.helpscout-placeholder').length==1){var loaded=false;var load=function(){if(loaded){return;}
47loaded=true;loadHelpScout();var el=this;window.setTimeout(function(){$(el).remove();},1000);};$('.helpscout-placeholder').hover(function(){load();});window.setTimeout(function(){load();},5000);}},initLanguageSelector:function(){$('.language-selector button').click(function(e){e.stopPropagation();var languageMenu=$(this).parent().find('.drop-menu');var boundingRect=$(this)[0].getBoundingClientRect();if((window.innerHeight-boundingRect.bottom)<130){languageMenu.css('margin-top','-135px');}else{languageMenu.css('margin-top','5px');}
48languageMenu.toggle();});$('#footer').click(function(){$('.language-selector .drop-menu').hide();});$('.language-selector .drop-menu a').click(function(){Cookies.set('website_language',$(this).attr('data-lang'));});}};})(jQuery);jQuery(document).ready(function(){mor.init();});function storageAvailable(type){var storage;try{storage=window[type];var x='__storage_test__';storage.setItem(x,x);storage.removeItem(x);return true;}
49catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED')&&(storage&&storage.length!==0);}}
50var Client={viewportWidth:function(){return self.innerWidth||(document.documentElement.clientWidth||document.body.clientWidth);}
50,viewportHeight:function(){return self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight);},viewportSize:function(){return{width:this.viewportWidth(),height:this.viewportHeight()};}};window.log=function(name,msg){var debug=$('.debugger');if(debug.length==0){debug=$('<div class="debugger"></div>').appendTo($('body'));}
51var el=debug.find('#'+name);if(el.length==0){el=$('<span id="'+name+'"></span>').appendTo(debug);}
52el.html(name+': '+msg);};function round(value,precision,mode){var m,f,isHalf,sgn;precision|=0;m=Math.pow(10,precision);value*=m;sgn=(value>0)|-(value<0);isHalf=value%1===0.5*sgn;f=Math.floor(value);if(isHalf){switch(mode){case'PHP_ROUND_HALF_DOWN':value=f+(sgn<0);break;case'PHP_ROUND_HALF_EVEN':value=f+(f%2*sgn);break;case'PHP_ROUND_HALF_ODD':value=f+!(f%2);break;default:value=f+(sgn>0);}}
53return(isHalf?value:Math.round(value))/m;}
54(function(doc){var write=doc.write;doc.write=function(q){if(/docwriteregexwhitelist/.test(q))write.apply(doc,arguments);};})(document);;;(function($){mor.media=mor.media||{};$.extend(mor.media,{events:function(container){var self=this;$('<div class="popup_overlay"><div id="media_container"></div><a class="next" title="Next">&nbsp;</a>'
55+'<a class="prev" title="Previous">&nbsp;</a><a class="close"></a></div>').appendTo('body');$('.popup_overlay a.close').click(function(){self.close($(this).parents('.popup_overlay'));});},showimage:function(src,paginate){var self=this;var largeImage=document.createElement('img');$('#media_container').html('<img src="images/loading.gif" />');var popup=$('#media_container').parents('.popup_overlay');this.overlay(popup);if(paginate==true){popup.addClass('paginate');}else{popup.removeClass('paginate');}
56$(largeImage).bind('load',function(){$('#media_container').html(largeImage);var w=$(window);if($(largeImage).attr('width')>w.width()-100||$(largeImage).attr('height')>w.height()-100){if($(largeImage).attr('width')/$(largeImage).attr('height')>w.width()/w.height()){$('#media_container img').width(w.width()-145);}else{$('#media_container img').height(w.height()-140);}}
57var popup=$('#media_container').parents('.popup_overlay');self.overlay(popup);});largeImage.src=src;},overlay:function(element){this.center(element);if($('#overlay').length==0){var overlay=$('<div id="overlay"></div>').appendTo('body');var self=this;overlay.click(function(e){e.stopPropagation();self.close(element);});}},reposition:function(element){if(!$(element).is(':visible')){return;}
58$(element).css(this.centerStyles(element));},center:function(element){$(element).css('display','block');$(element).css(this.centerStyles(element)).fadeIn(300);},centerStyles:function(element){var width=$(element).outerWidth();var height=$(element).outerHeight();if((height>=$(window).height()||width>=$(window).width())&&$(window).width()<600&&!$(element).is('.zoom-box')){var styles={'position':'fixed','margin-left':'auto','margin-top':'auto','margin-right':'auto','margin-bottom':'auto','left':0,'top':0,'right':0,'border-radius':0,'bottom':0,'overflowY':'auto','overflowX':'hidden'};}else{$(element).css('position','fixed');width=$(element).outerWidth();var wH=$(window).height();var wW=$(window).width();var top=wH>height?(height/2)*-1:0;var left=wW>width?(width/2)*-1:0;var styles={'position':'fixed','marginLeft':left,'marginTop':top,'top':top==0?'0':'50%','left':left==0?'0':'50%'};if(top==0){styles['overflowY']='auto';styles['maxHeight']='100%';styles['overflowX']='hidden';}
59if(top==0){styles['top']=0;}
60if(left==0){styles['left']=0;}}
61return styles;},altCenter:function(element){var display=$(element).css('display');$(element).show();var width=$(element).outerWidth();var height=$(element).outerHeight();if((height>=$(window).height()||width>=$(window).width())&&$(window).width()<600&&!$(element).is('.zoom-box')){var styles={'position':'fixed','margin-left':0,'margin-top':0,'left':0,'top':0,'right':0,'bottom':0,'overflow':'auto'};}else{var wH=$(window).height();var wW=$(window).width();var top=(wH-height)/2;top=top<0?0:top;var left=(wW-width)/2;left=left<0?0:left;var styles={'position':'fixed','left':left,'top':top,'bottom':top==0?0:'auto','right':left};}
62$(element).css(styles).fadeIn(300);},close:function(popup){var self=this;$(popup).fadeOut(200,function(){$('#overlay').remove();$('.error-message').remove();var video=$(popup).find('.video-wrapper iframe');if(video.length>0){video.each(function(){if($(this).attr('src').indexOf('youtube.com')!=-1){var id=Math.random().toString(36).substring(7);$(this).parent().attr('id',id);callPlayer(id,'pauseVideo');}});}});if(popup.data('onclose')){var cb=popup.data('onclose');cb.call();}
63$(window).trigger('media.close',popup);},compress:function(image,width){var dataURLToBlob=function(dataURL){var BASE64_MARKER=';base64,';if(dataURL.indexOf(BASE64_MARKER)==-1){var parts=dataURL.split(',');var contentType=parts[0].split(':')[1];var raw=parts[1];return new Blob([raw],{type:contentType});}
64var parts=dataURL.split(BASE64_MARKER);var contentType=parts[0].split(':')[1];var raw=window.atob(parts[1]);var rawLength=raw.length;var uInt8Array=new Uint8Array(rawLength);for(var i=0;i<rawLength;++i){uInt8Array[i]=raw.charCodeAt(i);}
65return new Blob([uInt8Array],{type:contentType});}
66var elem=document.createElement('canvas');
66var ratio=width/image.width;elem.width=width;var height=image.height*ratio;elem.height=height;var ctx=elem.getContext('2d');ctx.drawImage(image,0,0,width,height);var dataUrl=elem.toDataURL('image/jpeg',1);var resizedImage=dataURLToBlob(dataUrl);image.src=dataUrl;return resizedImage;},});function callPlayer(frame_id,func,args){if(window.jQuery&&frame_id instanceof jQuery)frame_id=frame_id.get(0).id;var iframe=document.getElementById(frame_id);if(iframe&&iframe.tagName.toUpperCase()!='IFRAME'){iframe=iframe.getElementsByTagName('iframe')[0];}
67if(!callPlayer.queue)callPlayer.queue={};var queue=callPlayer.queue[frame_id],domReady=document.readyState=='complete';if(domReady&&!iframe){if(queue)clearInterval(queue.poller);}else if(func==='listening'){if(iframe&&iframe.contentWindow){func='{"event":"listening","id":'+JSON.stringify(''+frame_id)+'}';iframe.contentWindow.postMessage(func,'*');}}else if((!queue||!queue.ready)&&(!domReady||iframe&&!iframe.contentWindow||typeof func==='function')){if(!queue)queue=callPlayer.queue[frame_id]=[];queue.push([func,args]);if(!('poller'in queue)){queue.poller=setInterval(function(){callPlayer(frame_id,'listening');},250);messageEvent(1,function runOnceReady(e){if(!iframe){iframe=document.getElementById(frame_id);if(!iframe)return;if(iframe.tagName.toUpperCase()!='IFRAME'){iframe=iframe.getElementsByTagName('iframe')[0];if(!iframe)return;}}
68if(e.source===iframe.contentWindow){clearInterval(queue.poller);queue.ready=true;messageEvent(0,runOnceReady);while(tmp=queue.shift()){callPlayer(frame_id,tmp[0],tmp[1]);}}},false);}}else if(iframe&&iframe.contentWindow){if(func.call)return func();iframe.contentWindow.postMessage(JSON.stringify({"event":"command","func":func,"args":args||[],"id":frame_id}),"*");}
69function messageEvent(add,listener){var w3=add?window.addEventListener:window.removeEventListener;w3?w3('message',listener,!1):(add?window.attachEvent:window.detachEvent)('onmessage',listener);}};if(typeof($.datepicker)!='undefined'){const checkOffset=$.datepicker._checkOffset;$.extend($.datepicker,{_checkOffset:function(inst,offset,isFixed){if(!isFixed){return checkOffset.apply(this,arguments);}
70var isRTL=this._get(inst,"isRTL");var obj=inst.input[0];while(obj&&(obj.type==="hidden"||obj.nodeType!==1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"];}
71var rect=obj.getBoundingClientRect();var viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop()),dpHeight=inst.dpDiv.outerHeight();var viewWidth=$(window).width();var dpWidth=inst.dpDiv.outerWidth();var css={top:viewHeight<rect.top+rect.height+dpHeight?rect.top-dpHeight:rect.top+rect.height};var left=rect.left;if(left+dpWidth>viewWidth){css['right']=0;css['left']='auto';}else{css['left']=rect.left;}
72return css;}});}})(jQuery);;;(function(){var main={init:function(){$('[role="banner"] .show-menu').click(function(e){e.stopPropagation();$(this).toggleClass('close');$('body').toggleClass('nav-menu-open');$('.nav').toggleClass('open');});$('[role="banner"] .close-menu').click(function(e){e.stopPropagation();$(this).removeClass('close');$('body').removeClass('nav-menu-open');$('.nav').removeClass('open');});$('[role="banner"] .nav').click(function(e){e.stopPropagation();});$('[role="banner"] .nav .more-links em').click(function(){$(this).parent('.more-links').toggleClass('open');$(this).parent('.more-links').find('ul').toggle();});$(window).click(function(){$('.nav').removeClass('open');});if($('.content').length>0){this.initContent();}
73var self=this;$('#cart-overlay').click(function(){self.hideCart();});$('#cart-popup').click(function(e){e.stopPropagation();});$('[role="banner"] .cart').click(function(){self.showCart();});$('#cart-popup .close').click(function(){self.hideCart();});self.cartEvents();},initContent:function(){$('iframe.video').each(function(){$(this).wrap('<div class="videoWrapper"></div>');$(this).attr('height','').attr('width','');});},cartEvents:function(){var self=this;$('#cart-popup .remove-item').click(function(){var row=$(this).parents('tr:first');$.post('shop/removeitem',{id:row.attr('attr-id')},function(response){$('#cart-popup .items').html(response);self.cartEvents();self.updateCartCounter();});row.fadeOut(300,function(){$(this).remove();});});}
73,updateCartCounter:function(){var items=$('#cart-popup .items');if(items.find('.placeholder').length==1){$('[role="banner"] .cart').hide();}else{var count=items.find('.remove-item').length;$('[role="banner"] .cart').show().find('small').html(count);}},hideCart:function(){$('#cart-overlay').fadeOut(300);$('#cart-popup').hide('slide',{direction:'right'},300);},showCart:function(){$('#cart-overlay').fadeIn(300);$('#cart-popup').show('slide',{direction:'right'},300);this.updateCartCounter();},avatar:function(photo,name){var parts=name.split(' ');var initials=parts[0].substring(0,1)+(parts.length>1?parts[1].substring(0,1):'');var html='<span class="avatar color'+this.getColor(name)+'">';if(photo!=''&&photo!==null){html+='<img alt="'+initials+'" src="'+photo+'" />';}else{html+=initials;}
74html+='</span>';return html;},getColor:function(str){var characters={'a':1,'b':2,'c':3,'d':4,'e':5,'f':6,'g':7,'h':8,'i':1,'j':2,'k':3,'l':4,'m':5,'n':6,'o':7,'p':8,'q':1,'r':2,'s':3,'t':4,'u':5,'v':6,'w':7,'x':8,'y':1,'z':2};var first=str.substring(0,1).toLowerCase();return characters[first];},};window.academy=main;mor.main=main;$(document).ready(function(){main.init();});})();;;(function(){var util=typeof(mor)!='undefined'?mor:MARwidgets;var external=typeof(mor)=='undefined';if(typeof($)=='undefined'){var $=jQuery;}
75if(typeof jQuery.ui=='undefined'){var url="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js";$.getScript(url);}
76var forms=window.MARforms={started:false,init:function(){if(this.started){return;}
77if($('.maonrails-lead-form').length>0){this.formSubmit($('.maonrails-lead-form'));this.initPopup($('body'));$('.maonrails-popup .close').click(function(){util.media.close($('.maonrails-popup'));});this.started=true;$('.maonrails-lead-form-button').each(function(){if($(this).is('.left,.right')){var width=$(this).outerWidth();var height=$(window).height();var top=(height-width)/2;top=top<0?0:top;$(this).css({top:top});}});if($.datepicker){$('.maonrails-lead-form .dob .date').datepicker({firstDay:$("#first_day_week").val(),dateFormat:$('#date-format').val(),changeYear:true,yearRange:'-90:+10',defaultDate:'-25y',});}
78if($('.recaptcha').length>0){$('#body').css('minHeight',480);};}},formSubmit:function(context){$(context).find('form').submit(function(e){e.preventDefault();if($(this).data('js-submit-disabled')===true){return;}
79$(this).data('js-submit-disabled',true);var button=$(this).find('button');button.data('html',button.html());button.html('Sending <span class="spinner"></span>');var form=this;var options={url:$(this).attr('action'),data:$(this).serialize(),crossDomain:true,success:function(response){$(form).data('js-submit-disabled',false);button.html(button.data('html'));if(response.success){$(form).hide().next('.form-sent').show();if($(form).parent().is('.maonrails-popup')){util.media.center($(form).parent());}else if(external){var height=$('body').height();window.parent.postMessage(["setHeight",height],"*");}
80var id=$(form).find('input[name="form_id"]').val();if(typeof(maPostConv)!='undefined'&&typeof(maPostConv[id])=='function'){maPostConv[id]();}
81var redirect=$(form).find("input[name='post_submit_redirect_url']");if(redirect.length>0&&redirect.val()!=''){setTimeout(function(){window.top.location.href=redirect.val();},5000);}}else{util.showErrors(response['errors'],$(form));}},error:function(){$(form).data('js-submit-disabled',false);},dataType:'jsonp'};$.ajax(options);});},initPopup:function(context){$(context).find('.maonrails-lead-form-button').click(function(){var formId=$(this).attr('attr-id');util.media.overlay($(".maonrails-lead-form[attr-id='"+formId+"']"));});$(context).find('.close').click(function(){var form=$(this).parents('.maonrails-lead-form');util.media.close(form);form.fadeOut(300);});}};$(document).ready(function(){forms.init();});})();;function initCountdown(holder,time=null){if(null===time){time=holder.data('time')*60;}
82var days=Math.floor(time/(3600*24));var hours=Math.floor(time%(3600*24)/3600);var minutes=Math.floor(time%3600/60);var seconds=Math.floor(time%60);holder.find('.countdown-items .countdown-item .amount.days').text(days.toString().padStart(2,'0'));holder.find('.countdown-items .countdown-item .amount.hours').text(hours.toString().padStart(2,'0'));holder.find('.countdown-items .countdown-item .amount.minutes').text(minutes.toString().padStart(2,'0'));holder.find('.countdown-items .countdown-item .amount.seconds').text(seconds.toString().padStart(2,'0'));if(0==time){return;}
83time--;setTimeout(function(){initCountdown(holder,time);},1000);};;var positionFooter=function(){var footer=$('footer');if(footer.is(':visible')){var footerHeight=footer.outerHeight();$('#body').css('padding-bottom',footerHeight+'px');}else{$('#body').css('padding-bottom','0');}};$(document).ready(function(){positionFooter();$(window).on('load',function(){positionFooter();});$('img').on('load',function(){positionFooter();});if($('.countdown-holder').length){$('.countdown-holder').each(function(){initCountdown($(this));});}
84$(window).on("resize",function(){positionFooter();});$('.faq-question').click(function(){$(this).parent('.faq-item').toggleClass('active');});const slidesContainer=$('.reviews-holder');const review=$('.review-item');const totalReviews=review.length;var reviewsPerSlide=1;var totalPages=1;var pageStep=0;var currentPage=1;function measureCarousel(){reviewsPerSlide=Math.max(1,Math.floor(slidesContainer.innerWidth()/review.outerWidth()));totalPages=Math.ceil(totalReviews/reviewsPerSlide);const gap=parseFloat(slidesContainer.css('column-gap'))||0;pageStep=reviewsPerSlide*(review.outerWidth()+gap);}
85function drawControls(){const shown=currentPage*reviewsPerSlide;$('.reviews-controls').toggle(totalReviews>reviewsPerSlide);$('.reviews-controls .pagination .current').text(shown>totalReviews?totalReviews:shown);$('.reviews-controls .pagination .total').text(totalReviews);const pages=$('.reviews-controls .controls .pages').empty();for(var i=0;i<totalPages;i++){pages.append('<button class="page"></button>');}
86$('.reviews-carousel .controls .page:nth-child('+(currentPage)+')').addClass('active');}
87measureCarousel();drawControls();var lastWidth=$(window).width();$(window).on('resize',function(){const width=$(window).width();if(width===lastWidth){return;}
88lastWidth=width;measureCarousel();slidesContainer.stop(true).scrollLeft(0);currentPage=1;drawControls();});$('.reviews-controls .prev').click(function(){if(currentPage>1){currentPage--;drawControls();slidesContainer.animate({scrollLeft:(currentPage-1)*pageStep},800);}});$('.reviews-controls .next').click(function(){if(currentPage<totalPages){currentPage++;drawControls();slidesContainer.animate({scrollLeft:(currentPage-1)*pageStep},800);}});});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.