@budibase/string-templates 3.23.48 → 3.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +1 -1
- package/dist/bundle.mjs +1 -1
- package/package.json +2 -2
package/dist/bundle.cjs
CHANGED
|
@@ -35,4 +35,4 @@ const toRegexRange=(e,t,r)=>{if(!1===isNumber$1(e))throw new TypeError("toRegexR
|
|
|
35
35
|
*
|
|
36
36
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
37
37
|
* Licensed under the MIT License.
|
|
38
|
-
*/const isObject$3=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),transform=e=>t=>!0===e?Number(t):String(t),isValidValue=e=>"number"==typeof e||"string"==typeof e&&""!==e,isNumber=e=>Number.isInteger(+e),zeros=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},stringify$1=(e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify,pad=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},toMaxLen=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},toSequence=(e,t,r)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let n,o=t.capture?"":"?:",a="",i="";return e.positives.length&&(a=e.positives.map(e=>toMaxLen(String(e),r)).join("|")),e.negatives.length&&(i=`-(${o}${e.negatives.map(e=>toMaxLen(String(e),r)).join("|")})`),n=a&&i?`${a}|${i}`:a||i,t.wrap?`(${o}${n})`:n},toRange=(e,t,r,n)=>{if(r)return toRegexRange_1(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return toRegexRange_1(e,t,r)},rangeError=(...e)=>new RangeError("Invalid range arguments: "+util.inspect(...e)),invalidRange=(e,t,r)=>{if(!0===r.strictRanges)throw rangeError([e,t]);return[]},invalidStep=(e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]},fillNumbers=(e,t,r=1,n={})=>{let o=Number(e),a=Number(t);if(!Number.isInteger(o)||!Number.isInteger(a)){if(!0===n.strictRanges)throw rangeError([e,t]);return[]}0===o&&(o=0),0===a&&(a=0);let i=o>a,s=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=zeros(s)||zeros(u)||zeros(c),p=l?Math.max(s.length,u.length,c.length):0,f=!1===l&&!1===stringify$1(e,t,n),h=n.transform||transform(f);if(n.toRegex&&1===r)return toRange(toMaxLen(e,p),toMaxLen(t,p),!0,n);let d={negatives:[],positives:[]},g=e=>d[e<0?"negatives":"positives"].push(Math.abs(e)),m=[],y=0;for(;i?o>=a:o<=a;)!0===n.toRegex&&r>1?g(o):m.push(pad(h(o,y),p,f)),o=i?o-r:o+r,y++;return!0===n.toRegex?r>1?toSequence(d,n,p):toRegex(m,null,{wrap:!1,...n}):m},fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1)return invalidRange(e,t,n);let o=n.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),s=a>i,u=Math.min(a,i),c=Math.max(a,i);if(n.toRegex&&1===r)return toRange(u,c,!1,n);let l=[],p=0;for(;s?a>=i:a<=i;)l.push(o(a,p)),a=s?a-r:a+r,p++;return!0===n.toRegex?toRegex(l,null,{wrap:!1,options:n}):l},fill=(e,t,r,n={})=>{if(null==t&&isValidValue(e))return[e];if(!isValidValue(e)||!isValidValue(t))return invalidRange(e,t,n);if("function"==typeof r)return fill(e,t,1,{transform:r});if(isObject$3(r))return fill(e,t,0,r);let o={...n};return!0===o.capture&&(o.wrap=!0),r=r||o.step||1,isNumber(r)?isNumber(e)&&isNumber(t)?fillNumbers(e,t,r,o):fillLetters(e,t,Math.max(Math.abs(r),1),o):null==r||isObject$3(r)?fill(e,t,1,r):invalidStep(r,o)};var fillRange=fill;const compile=(e,t={})=>{const r=(e,n={})=>{const o=utils$1.isInvalidBrace(n),a=!0===e.invalid&&!0===t.escapeInvalid,i=!0===o||!0===a,s=!0===t.escapeInvalid?"\\":"";let u="";if(!0===e.isOpen)return s+e.value;if(!0===e.isClose)return console.log("node.isClose",s,e.value),s+e.value;if("open"===e.type)return i?s+e.value:"(";if("close"===e.type)return i?s+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":i?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const r=utils$1.reduce(e.nodes),n=fillRange(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==n.length)return r.length>1&&n.length>1?`(${n})`:n}if(e.nodes)for(const t of e.nodes)u+=r(t,e);return u};return r(e)};var compile_1=compile;const append=(e="",t="",r=!1)=>{const n=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?utils$1.flatten(t).map(e=>`{${e}}`):t;for(const o of e)if(Array.isArray(o))for(const e of o)n.push(append(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),n.push(Array.isArray(e)?append(o,e,r):o+e);return utils$1.flatten(n)},expand=(e,t={})=>{const r=void 0===t.rangeLimit?1e3:t.rangeLimit,n=(e,o={})=>{e.queue=[];let a=o,i=o.queue;for(;"brace"!==a.type&&"root"!==a.type&&a.parent;)a=a.parent,i=a.queue;if(e.invalid||e.dollar)return void i.push(append(i.pop(),stringify$2(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void i.push(append(i.pop(),["{}"]));if(e.nodes&&e.ranges>0){const n=utils$1.reduce(e.nodes);if(utils$1.exceedsLimit(...n,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let o=fillRange(...n,t);return 0===o.length&&(o=stringify$2(e,t)),i.push(append(i.pop(),o)),void(e.nodes=[])}const s=utils$1.encloseBrace(e);let u=e.queue,c=e;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,u=c.queue;for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];"comma"!==r.type||"brace"!==e.type?"close"!==r.type?r.value&&"open"!==r.type?u.push(append(u.pop(),r.value)):r.nodes&&n(r,e):i.push(append(i.pop(),u,s)):(1===t&&u.push(""),u.push(""))}return u};return utils$1.flatten(n(e))};var expand_1=expand,constants$1={MAX_LENGTH:1e4,CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_COMMA:",",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_NO_BREAK_SPACE:" ",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SINGLE_QUOTE:"'",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};const{MAX_LENGTH:MAX_LENGTH$1,CHAR_BACKSLASH:CHAR_BACKSLASH,CHAR_BACKTICK:CHAR_BACKTICK,CHAR_COMMA:CHAR_COMMA$1,CHAR_DOT:CHAR_DOT$1,CHAR_LEFT_PARENTHESES:CHAR_LEFT_PARENTHESES$1,CHAR_RIGHT_PARENTHESES:CHAR_RIGHT_PARENTHESES$1,CHAR_LEFT_CURLY_BRACE:CHAR_LEFT_CURLY_BRACE$1,CHAR_RIGHT_CURLY_BRACE:CHAR_RIGHT_CURLY_BRACE$1,CHAR_LEFT_SQUARE_BRACKET:CHAR_LEFT_SQUARE_BRACKET$1,CHAR_RIGHT_SQUARE_BRACKET:CHAR_RIGHT_SQUARE_BRACKET$1,CHAR_DOUBLE_QUOTE:CHAR_DOUBLE_QUOTE,CHAR_SINGLE_QUOTE:CHAR_SINGLE_QUOTE,CHAR_NO_BREAK_SPACE:CHAR_NO_BREAK_SPACE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:CHAR_ZERO_WIDTH_NOBREAK_SPACE}=constants$1,parse$3=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const r=t||{},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH$1,r.maxLength):MAX_LENGTH$1;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);const o={type:"root",input:e,nodes:[]},a=[o];let i=o,s=o,u=0;const c=e.length;let l,p=0,f=0;const h=()=>e[p++],d=e=>{if("text"===e.type&&"dot"===s.type&&(s.type="text"),!s||"text"!==s.type||"text"!==e.type)return i.nodes.push(e),e.parent=i,e.prev=s,s=e,e;s.value+=e.value};for(d({type:"bos"});p<c;)if(i=a[a.length-1],l=h(),l!==CHAR_ZERO_WIDTH_NOBREAK_SPACE&&l!==CHAR_NO_BREAK_SPACE)if(l!==CHAR_BACKSLASH)if(l!==CHAR_RIGHT_SQUARE_BRACKET$1){if(l===CHAR_LEFT_SQUARE_BRACKET$1){let e;for(u++;p<c&&(e=h());)if(l+=e,e!==CHAR_LEFT_SQUARE_BRACKET$1)if(e!==CHAR_BACKSLASH){if(e===CHAR_RIGHT_SQUARE_BRACKET$1&&(u--,0===u))break}else l+=h();else u++;d({type:"text",value:l});continue}if(l!==CHAR_LEFT_PARENTHESES$1)if(l!==CHAR_RIGHT_PARENTHESES$1){if(l===CHAR_DOUBLE_QUOTE||l===CHAR_SINGLE_QUOTE||l===CHAR_BACKTICK){const e=l;let r;for(!0!==t.keepQuotes&&(l="");p<c&&(r=h());)if(r!==CHAR_BACKSLASH){if(r===e){!0===t.keepQuotes&&(l+=r);break}l+=r}else l+=r+h();d({type:"text",value:l});continue}if(l===CHAR_LEFT_CURLY_BRACE$1){f++;const e=s.value&&"$"===s.value.slice(-1)||!0===i.dollar;i=d({type:"brace",open:!0,close:!1,dollar:e,depth:f,commas:0,ranges:0,nodes:[]}),a.push(i),d({type:"open",value:l});continue}if(l===CHAR_RIGHT_CURLY_BRACE$1){if("brace"!==i.type){d({type:"text",value:l});continue}const e="close";i=a.pop(),i.close=!0,d({type:e,value:l}),f--,i=a[a.length-1];continue}if(l===CHAR_COMMA$1&&f>0){if(i.ranges>0){i.ranges=0;const e=i.nodes.shift();i.nodes=[e,{type:"text",value:stringify$2(i)}]}d({type:"comma",value:l}),i.commas++}else{if(l===CHAR_DOT$1&&f>0&&0===i.commas){const e=i.nodes;if(0===f||0===e.length){d({type:"text",value:l});continue}if("dot"===s.type){if(i.range=[],s.value+=l,s.type="range",3!==i.nodes.length&&5!==i.nodes.length){i.invalid=!0,i.ranges=0,s.type="text";continue}i.ranges++,i.args=[];continue}if("range"===s.type){e.pop();const t=e[e.length-1];t.value+=s.value+l,s=t,i.ranges--;continue}d({type:"dot",value:l});continue}d({type:"text",value:l})}}else{if("paren"!==i.type){d({type:"text",value:l});continue}i=a.pop(),d({type:"text",value:l}),i=a[a.length-1]}else i=d({type:"paren",nodes:[]}),a.push(i),d({type:"text",value:l})}else d({type:"text",value:"\\"+l});else d({type:"text",value:(t.keepEscaping?l:"")+h()});do{if(i=a.pop(),"root"!==i.type){i.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});const e=a[a.length-1],t=e.nodes.indexOf(i);e.nodes.splice(t,1,...i.nodes)}}while(a.length>0);return d({type:"eos"}),o};var parse_1$2=parse$3;const braces=(e,t={})=>{let r=[];if(Array.isArray(e))for(const n of e){const e=braces.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(braces.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};braces.parse=(e,t={})=>parse_1$2(e,t),braces.stringify=(e,t={})=>stringify$2("string"==typeof e?braces.parse(e,t):e,t),braces.compile=(e,t={})=>("string"==typeof e&&(e=braces.parse(e,t)),compile_1(e,t)),braces.expand=(e,t={})=>{"string"==typeof e&&(e=braces.parse(e,t));let r=expand_1(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},braces.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?braces.compile(e,t):braces.expand(e,t);var braces_1=braces,browser=createCommonjsModule(function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,l=-1;function p(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=i(p);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||i(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}});const WIN_SLASH="\\\\/",WIN_NO_SLASH=`[^${WIN_SLASH}]`,DOT_LITERAL="\\.",PLUS_LITERAL="\\+",QMARK_LITERAL="\\?",SLASH_LITERAL="\\/",ONE_CHAR="(?=.)",QMARK="[^/]",END_ANCHOR=`(?:${SLASH_LITERAL}|$)`,START_ANCHOR=`(?:^|${SLASH_LITERAL})`,DOTS_SLASH=`${DOT_LITERAL}{1,2}${END_ANCHOR}`,NO_DOT=`(?!${DOT_LITERAL})`,NO_DOTS=`(?!${START_ANCHOR}${DOTS_SLASH})`,NO_DOT_SLASH=`(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,NO_DOTS_SLASH=`(?!${DOTS_SLASH})`,QMARK_NO_DOT=`[^.${SLASH_LITERAL}]`,STAR=`${QMARK}*?`,POSIX_CHARS={DOT_LITERAL:DOT_LITERAL,PLUS_LITERAL:PLUS_LITERAL,QMARK_LITERAL:QMARK_LITERAL,SLASH_LITERAL:SLASH_LITERAL,ONE_CHAR:ONE_CHAR,QMARK:QMARK,END_ANCHOR:END_ANCHOR,DOTS_SLASH:DOTS_SLASH,NO_DOT:NO_DOT,NO_DOTS:NO_DOTS,NO_DOT_SLASH:NO_DOT_SLASH,NO_DOTS_SLASH:NO_DOTS_SLASH,QMARK_NO_DOT:QMARK_NO_DOT,STAR:STAR,START_ANCHOR:START_ANCHOR},WINDOWS_CHARS={...POSIX_CHARS,SLASH_LITERAL:`[${WIN_SLASH}]`,QMARK:WIN_NO_SLASH,STAR:`${WIN_NO_SLASH}*?`,DOTS_SLASH:`${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,NO_DOT:`(?!${DOT_LITERAL})`,NO_DOTS:`(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,NO_DOT_SLASH:`(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,NO_DOTS_SLASH:`(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,QMARK_NO_DOT:`[^.${WIN_SLASH}]`,START_ANCHOR:`(?:^|[${WIN_SLASH}])`,END_ANCHOR:`(?:[${WIN_SLASH}]|$)`},POSIX_REGEX_SOURCE$1={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var constants={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:POSIX_REGEX_SOURCE$1,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:path.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?WINDOWS_CHARS:POSIX_CHARS},utils=createCommonjsModule(function(e,t){const r="win32"===browser.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:i}=constants;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(i,"\\$1"),t.toPosixSlashes=e=>e.replace(n,"/"),t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=browser.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===r||"\\"===path.sep,t.escapeLast=(e,r,n)=>{const o=e.lastIndexOf(r,n);return-1===o?e:"\\"===e[o-1]?t.escapeLast(e,r,o-1):`${e.slice(0,o)}\\${e.slice(o)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}});const{CHAR_ASTERISK:CHAR_ASTERISK,CHAR_AT:CHAR_AT,CHAR_BACKWARD_SLASH:CHAR_BACKWARD_SLASH,CHAR_COMMA:CHAR_COMMA,CHAR_DOT:CHAR_DOT,CHAR_EXCLAMATION_MARK:CHAR_EXCLAMATION_MARK,CHAR_FORWARD_SLASH:CHAR_FORWARD_SLASH,CHAR_LEFT_CURLY_BRACE:CHAR_LEFT_CURLY_BRACE,CHAR_LEFT_PARENTHESES:CHAR_LEFT_PARENTHESES,CHAR_LEFT_SQUARE_BRACKET:CHAR_LEFT_SQUARE_BRACKET,CHAR_PLUS:CHAR_PLUS,CHAR_QUESTION_MARK:CHAR_QUESTION_MARK,CHAR_RIGHT_CURLY_BRACE:CHAR_RIGHT_CURLY_BRACE,CHAR_RIGHT_PARENTHESES:CHAR_RIGHT_PARENTHESES,CHAR_RIGHT_SQUARE_BRACKET:CHAR_RIGHT_SQUARE_BRACKET}=constants,isPathSeparator=e=>e===CHAR_FORWARD_SLASH||e===CHAR_BACKWARD_SLASH,depth=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)},scan=(e,t)=>{const r=t||{},n=e.length-1,o=!0===r.parts||!0===r.scanToEnd,a=[],i=[],s=[];let u,c,l=e,p=-1,f=0,h=0,d=!1,g=!1,m=!1,y=!1,_=!1,b=!1,v=!1,A=!1,S=!1,$=!1,C=0,E={value:"",depth:0,isGlob:!1};const R=()=>p>=n,w=()=>l.charCodeAt(p+1),x=()=>(u=c,l.charCodeAt(++p));for(;p<n;){let e;if(c=x(),c!==CHAR_BACKWARD_SLASH){if(!0===b||c===CHAR_LEFT_CURLY_BRACE){for(C++;!0!==R()&&(c=x());)if(c!==CHAR_BACKWARD_SLASH)if(c!==CHAR_LEFT_CURLY_BRACE){if(!0!==b&&c===CHAR_DOT&&(c=x())===CHAR_DOT){if(d=E.isBrace=!0,m=E.isGlob=!0,$=!0,!0===o)continue;break}if(!0!==b&&c===CHAR_COMMA){if(d=E.isBrace=!0,m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_RIGHT_CURLY_BRACE&&(C--,0===C)){b=!1,d=E.isBrace=!0,$=!0;break}}else C++;else v=E.backslashes=!0,x();if(!0===o)continue;break}if(c!==CHAR_FORWARD_SLASH){if(!0!==r.noext){if(!0===(c===CHAR_PLUS||c===CHAR_AT||c===CHAR_ASTERISK||c===CHAR_QUESTION_MARK||c===CHAR_EXCLAMATION_MARK)&&w()===CHAR_LEFT_PARENTHESES){if(m=E.isGlob=!0,y=E.isExtglob=!0,$=!0,c===CHAR_EXCLAMATION_MARK&&p===f&&(S=!0),!0===o){for(;!0!==R()&&(c=x());)if(c!==CHAR_BACKWARD_SLASH){if(c===CHAR_RIGHT_PARENTHESES){m=E.isGlob=!0,$=!0;break}}else v=E.backslashes=!0,c=x();continue}break}}if(c===CHAR_ASTERISK){if(u===CHAR_ASTERISK&&(_=E.isGlobstar=!0),m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_QUESTION_MARK){if(m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_LEFT_SQUARE_BRACKET){for(;!0!==R()&&(e=x());)if(e!==CHAR_BACKWARD_SLASH){if(e===CHAR_RIGHT_SQUARE_BRACKET){g=E.isBracket=!0,m=E.isGlob=!0,$=!0;break}}else v=E.backslashes=!0,x();if(!0===o)continue;break}if(!0===r.nonegate||c!==CHAR_EXCLAMATION_MARK||p!==f){if(!0!==r.noparen&&c===CHAR_LEFT_PARENTHESES){if(m=E.isGlob=!0,!0===o){for(;!0!==R()&&(c=x());)if(c!==CHAR_LEFT_PARENTHESES){if(c===CHAR_RIGHT_PARENTHESES){$=!0;break}}else v=E.backslashes=!0,c=x();continue}break}if(!0===m){if($=!0,!0===o)continue;break}}else A=E.negated=!0,f++}else{if(a.push(p),i.push(E),E={value:"",depth:0,isGlob:!1},!0===$)continue;if(u===CHAR_DOT&&p===f+1){f+=2;continue}h=p+1}}else v=E.backslashes=!0,c=x(),c===CHAR_LEFT_CURLY_BRACE&&(b=!0)}!0===r.noext&&(y=!1,m=!1);let O=l,T="",k="";f>0&&(T=l.slice(0,f),l=l.slice(f),h-=f),O&&!0===m&&h>0?(O=l.slice(0,h),k=l.slice(h)):!0===m?(O="",k=l):O=l,O&&""!==O&&"/"!==O&&O!==l&&isPathSeparator(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),!0===r.unescape&&(k&&(k=utils.removeBackslashes(k)),O&&!0===v&&(O=utils.removeBackslashes(O)));const P={prefix:T,input:e,start:f,base:O,glob:k,isBrace:d,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:_,negated:A,negatedExtglob:S};if(!0===r.tokens&&(P.maxDepth=0,isPathSeparator(c)||i.push(E),P.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<a.length;n++){const o=t?t+1:f,u=a[n],c=e.slice(o,u);r.tokens&&(0===n&&0!==f?(i[n].isPrefix=!0,i[n].value=T):i[n].value=c,depth(i[n]),P.maxDepth+=i[n].depth),0===n&&""===c||s.push(c),t=u}if(t&&t+1<e.length){const n=e.slice(t+1);s.push(n),r.tokens&&(i[i.length-1].value=n,depth(i[i.length-1]),P.maxDepth+=i[i.length-1].depth)}P.slashes=a,P.parts=s}return P};var scan_1=scan;const{MAX_LENGTH:MAX_LENGTH,POSIX_REGEX_SOURCE:POSIX_REGEX_SOURCE,REGEX_NON_SPECIAL_CHARS:REGEX_NON_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_BACKREF:REGEX_SPECIAL_CHARS_BACKREF,REPLACEMENTS:REPLACEMENTS}=constants,expandRange=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>utils.escapeRegex(e)).join("..")}return r},syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,parse$2=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=REPLACEMENTS[e]||e;const r={...t},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH,r.maxLength):MAX_LENGTH;let o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);const a={type:"bos",value:"",output:r.prepend||""},i=[a],s=r.capture?"":"?:",u=utils.isWindows(t),c=constants.globChars(u),l=constants.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:b,QMARK_NO_DOT:v,STAR:A,START_ANCHOR:S}=c,$=e=>`(${s}(?:(?!${S}${e.dot?g:p}).)*?)`,C=r.dot?"":m,E=r.dot?b:v;let R=!0===r.bash?$(r):A;r.capture&&(R=`(${R})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const w={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=utils.removePrefix(e,w),o=e.length;const x=[],O=[],T=[];let k,P=a;const L=()=>w.index===o-1,I=w.peek=(t=1)=>e[w.index+t],M=w.advance=()=>e[++w.index]||"",j=()=>e.slice(w.index+1),B=(e="",t=0)=>{w.consumed+=e,w.index+=t},N=e=>{w.output+=null!=e.output?e.output:e.value,B(e.value)},H=()=>{let e=1;for(;"!"===I()&&("("!==I(2)||"?"===I(3));)M(),w.start++,e++;return e%2!=0&&(w.negated=!0,w.start++,!0)},U=e=>{w[e]++,T.push(e)},D=e=>{w[e]--,T.pop()},F=e=>{if("globstar"===P.type){const t=w.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||x.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(w.output=w.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=R,w.output+=P.output)}if(x.length&&"paren"!==e.type&&(x[x.length-1].inner+=e.value),(e.value||e.output)&&N(e),P&&"text"===P.type&&"text"===e.type)return P.value+=e.value,void(P.output=(P.output||"")+e.value);e.prev=P,i.push(e),P=e},q=(e,t)=>{const n={...l[t],conditions:1,inner:""};n.prev=P,n.parens=w.parens,n.output=w.output;const o=(r.capture?"(":"")+n.open;U("parens"),F({type:e,value:t,output:w.output?"":d}),F({type:"paren",extglob:!0,value:M(),output:o}),x.push(n)},W=e=>{let n,o=e.close+(r.capture?")":"");if("negate"===e.type){let a=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=$(r)),(a!==R||L()||/^\)+$/.test(j()))&&(o=e.close=`)$))${a}`),e.inner.includes("*")&&(n=j())&&/^\.[^\\/.]+$/.test(n)){const r=parse$2(n,{...t,fastpaths:!1}).output;o=e.close=`)${r})${a})`}"bos"===e.prev.type&&(w.negatedExtglob=!0)}F({type:"paren",extglob:!0,value:k,output:o}),D("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,o=e.replace(REGEX_SPECIAL_CHARS_BACKREF,(e,t,r,o,a,i)=>"\\"===o?(n=!0,e):"?"===o?t?t+o+(a?b.repeat(a.length):""):0===i?E+(a?b.repeat(a.length):""):b.repeat(r.length):"."===o?p.repeat(r.length):"*"===o?t?t+o+(a?R:""):R:t?e:`\\${e}`);return!0===n&&(o=!0===r.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),o===e&&!0===r.contains?(w.output=e,w):(w.output=utils.wrapOutput(o,w,t),w)}for(;!L();){if(k=M(),"\0"===k)continue;if("\\"===k){const e=I();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){k+="\\",F({type:"text",value:k});continue}const t=/^\\+/.exec(j());let n=0;if(t&&t[0].length>2&&(n=t[0].length,w.index+=n,n%2!=0&&(k+="\\")),!0===r.unescape?k=M():k+=M(),0===w.brackets){F({type:"text",value:k});continue}}if(w.brackets>0&&("]"!==k||"["===P.value||"[^"===P.value)){if(!1!==r.posix&&":"===k){const e=P.value.slice(1);if(e.includes("[")&&(P.posix=!0,e.includes(":"))){const e=P.value.lastIndexOf("["),t=P.value.slice(0,e),r=P.value.slice(e+2),n=POSIX_REGEX_SOURCE[r];if(n){P.value=t+n,w.backtrack=!0,M(),a.output||1!==i.indexOf(P)||(a.output=d);continue}}}("["===k&&":"!==I()||"-"===k&&"]"===I())&&(k=`\\${k}`),"]"!==k||"["!==P.value&&"[^"!==P.value||(k=`\\${k}`),!0===r.posix&&"!"===k&&"["===P.value&&(k="^"),P.value+=k,N({value:k});continue}if(1===w.quotes&&'"'!==k){k=utils.escapeRegex(k),P.value+=k,N({value:k});continue}if('"'===k){w.quotes=1===w.quotes?0:1,!0===r.keepQuotes&&F({type:"text",value:k});continue}if("("===k){U("parens"),F({type:"paren",value:k});continue}if(")"===k){if(0===w.parens&&!0===r.strictBrackets)throw new SyntaxError(syntaxError("opening","("));const e=x[x.length-1];if(e&&w.parens===e.parens+1){W(x.pop());continue}F({type:"paren",value:k,output:w.parens?")":"\\)"}),D("parens");continue}if("["===k){if(!0!==r.nobracket&&j().includes("]"))U("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","]"));k=`\\${k}`}F({type:"bracket",value:k});continue}if("]"===k){if(!0===r.nobracket||P&&"bracket"===P.type&&1===P.value.length){F({type:"text",value:k,output:`\\${k}`});continue}if(0===w.brackets){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("opening","["));F({type:"text",value:k,output:`\\${k}`});continue}D("brackets");const e=P.value.slice(1);if(!0===P.posix||"^"!==e[0]||e.includes("/")||(k=`/${k}`),P.value+=k,N({value:k}),!1===r.literalBrackets||utils.hasRegexChars(e))continue;const t=utils.escapeRegex(P.value);if(w.output=w.output.slice(0,-P.value.length),!0===r.literalBrackets){w.output+=t,P.value=t;continue}P.value=`(${s}${t}|${P.value})`,w.output+=P.value;continue}if("{"===k&&!0!==r.nobrace){U("braces");const e={type:"brace",value:k,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};O.push(e),F(e);continue}if("}"===k){const e=O[O.length-1];if(!0===r.nobrace||!e){F({type:"text",value:k,output:k});continue}let t=")";if(!0===e.dots){const e=i.slice(),n=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=expandRange(n,r),w.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=w.output.slice(0,e.outputIndex),n=w.tokens.slice(e.tokensIndex);e.value=e.output="\\{",k=t="\\}",w.output=r;for(const e of n)w.output+=e.output||e.value}F({type:"brace",value:k,output:t}),D("braces"),O.pop();continue}if("|"===k){x.length>0&&x[x.length-1].conditions++,F({type:"text",value:k});continue}if(","===k){let e=k;const t=O[O.length-1];t&&"braces"===T[T.length-1]&&(t.comma=!0,e="|"),F({type:"comma",value:k,output:e});continue}if("/"===k){if("dot"===P.type&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",i.pop(),P=a;continue}F({type:"slash",value:k,output:h});continue}if("."===k){if(w.braces>0&&"dot"===P.type){"."===P.value&&(P.output=p);const e=O[O.length-1];P.type="dots",P.output+=k,P.value+=k,e.dots=!0;continue}if(w.braces+w.parens===0&&"bos"!==P.type&&"slash"!==P.type){F({type:"text",value:k,output:p});continue}F({type:"dot",value:k,output:p});continue}if("?"===k){if(!(P&&"("===P.value)&&!0!==r.noextglob&&"("===I()&&"?"!==I(2)){q("qmark",k);continue}if(P&&"paren"===P.type){const e=I();let t=k;if("<"===e&&!utils.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===P.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(j()))&&(t=`\\${k}`),F({type:"text",value:k,output:t});continue}if(!0!==r.dot&&("slash"===P.type||"bos"===P.type)){F({type:"qmark",value:k,output:v});continue}F({type:"qmark",value:k,output:b});continue}if("!"===k){if(!0!==r.noextglob&&"("===I()&&("?"!==I(2)||!/[!=<:]/.test(I(3)))){q("negate",k);continue}if(!0!==r.nonegate&&0===w.index){H();continue}}if("+"===k){if(!0!==r.noextglob&&"("===I()&&"?"!==I(2)){q("plus",k);continue}if(P&&"("===P.value||!1===r.regex){F({type:"plus",value:k,output:f});continue}if(P&&("bracket"===P.type||"paren"===P.type||"brace"===P.type)||w.parens>0){F({type:"plus",value:k});continue}F({type:"plus",value:f});continue}if("@"===k){if(!0!==r.noextglob&&"("===I()&&"?"!==I(2)){F({type:"at",extglob:!0,value:k,output:""});continue}F({type:"text",value:k});continue}if("*"!==k){"$"!==k&&"^"!==k||(k=`\\${k}`);const e=REGEX_NON_SPECIAL_CHARS.exec(j());e&&(k+=e[0],w.index+=e[0].length),F({type:"text",value:k});continue}if(P&&("globstar"===P.type||!0===P.star)){P.type="star",P.star=!0,P.value+=k,P.output=R,w.backtrack=!0,w.globstar=!0,B(k);continue}let t=j();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",k);continue}if("star"===P.type){if(!0===r.noglobstar){B(k);continue}const n=P.prev,o=n.prev,a="slash"===n.type||"bos"===n.type,i=o&&("star"===o.type||"globstar"===o.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){F({type:"star",value:k,output:""});continue}const s=w.braces>0&&("comma"===n.type||"brace"===n.type),u=x.length&&("pipe"===n.type||"paren"===n.type);if(!a&&"paren"!==n.type&&!s&&!u){F({type:"star",value:k,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[w.index+4];if(r&&"/"!==r)break;t=t.slice(3),B("/**",3)}if("bos"===n.type&&L()){P.type="globstar",P.value+=k,P.output=$(r),w.output=P.output,w.globstar=!0,B(k);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!i&&L()){w.output=w.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=$(r)+(r.strictSlashes?")":"|$)"),P.value+=k,w.globstar=!0,w.output+=n.output+P.output,B(k);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";w.output=w.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=`${$(r)}${h}|${h}${e})`,P.value+=k,w.output+=n.output+P.output,w.globstar=!0,B(k+M()),F({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){P.type="globstar",P.value+=k,P.output=`(?:^|${h}|${$(r)}${h})`,w.output=P.output,w.globstar=!0,B(k+M()),F({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-P.output.length),P.type="globstar",P.output=$(r),P.value+=k,w.output+=P.output,w.globstar=!0,B(k);continue}const n={type:"star",value:k,output:R};!0!==r.bash?!P||"bracket"!==P.type&&"paren"!==P.type||!0!==r.regex?(w.index!==w.start&&"slash"!==P.type&&"dot"!==P.type||("dot"===P.type?(w.output+=y,P.output+=y):!0===r.dot?(w.output+=_,P.output+=_):(w.output+=C,P.output+=C),"*"!==I()&&(w.output+=d,P.output+=d)),F(n)):(n.output=k,F(n)):(n.output=".*?","bos"!==P.type&&"slash"!==P.type||(n.output=C+n.output),F(n))}for(;w.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","]"));w.output=utils.escapeLast(w.output,"["),D("brackets")}for(;w.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing",")"));w.output=utils.escapeLast(w.output,"("),D("parens")}for(;w.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","}"));w.output=utils.escapeLast(w.output,"{"),D("braces")}if(!0===r.strictSlashes||"star"!==P.type&&"bracket"!==P.type||F({type:"maybe_slash",value:"",output:`${h}?`}),!0===w.backtrack){w.output="";for(const e of w.tokens)w.output+=null!=e.output?e.output:e.value,e.suffix&&(w.output+=e.suffix)}return w};parse$2.fastpaths=(e,t)=>{const r={...t},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH,r.maxLength):MAX_LENGTH,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=REPLACEMENTS[e]||e;const a=utils.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:d}=constants.globChars(a),g=r.dot?p:l,m=r.dot?f:l,y=r.capture?"":"?:";let _=!0===r.bash?".*?":h;r.capture&&(_=`(${_})`);const b=e=>!0===e.noglobstar?_:`(${y}(?:(?!${d}${e.dot?c:i}).)*?)`,v=e=>{switch(e){case"*":return`${g}${u}${_}`;case".*":return`${i}${u}${_}`;case"*.*":return`${g}${_}${i}${u}${_}`;case"*/*":return`${g}${_}${s}${u}${m}${_}`;case"**":return g+b(r);case"**/*":return`(?:${g}${b(r)}${s})?${m}${u}${_}`;case"**/*.*":return`(?:${g}${b(r)}${s})?${m}${_}${i}${u}${_}`;case"**/.*":return`(?:${g}${b(r)}${s})?${i}${u}${_}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=v(t[1]);if(!r)return;return r+i+t[2]}}},A=utils.removePrefix(e,{negated:!1,prefix:""});let S=v(A);return S&&!0!==r.strictSlashes&&(S+=`${s}?`),S};var parse_1$1=parse$2;const isObject$2=e=>e&&"object"==typeof e&&!Array.isArray(e),picomatch$1=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map(e=>picomatch$1(e,t,r)),o=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return o}const n=isObject$2(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=utils.isWindows(t),i=n?picomatch$1.compileRe(e,t):picomatch$1.makeRe(e,t,!1,!0),s=i.state;delete i.state;let u=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=picomatch$1(o.ignore,e,r)}const c=(r,n=!1)=>{const{isMatch:c,match:l,output:p}=picomatch$1.test(r,i,t,{glob:e,posix:a}),f={glob:e,state:s,regex:i,posix:a,input:r,output:p,match:l,isMatch:c};return"function"==typeof o.onResult&&o.onResult(f),!1===c?(f.isMatch=!1,!!n&&f):u(r)?("function"==typeof o.onIgnore&&o.onIgnore(f),f.isMatch=!1,!!n&&f):("function"==typeof o.onMatch&&o.onMatch(f),!n||f)};return r&&(c.state=s),c};picomatch$1.test=(e,t,r,{glob:n,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},i=a.format||(o?utils.toPosixSlashes:null);let s=e===n,u=s&&i?i(e):e;return!1===s&&(u=i?i(e):e,s=u===n),!1!==s&&!0!==a.capture||(s=!0===a.matchBase||!0===a.basename?picomatch$1.matchBase(e,t,r,o):t.exec(u)),{isMatch:Boolean(s),match:s,output:u}},picomatch$1.matchBase=(e,t,r,n=utils.isWindows(r))=>(t instanceof RegExp?t:picomatch$1.makeRe(t,r)).test(path.basename(e)),picomatch$1.isMatch=(e,t,r)=>picomatch$1(t,r)(e),picomatch$1.parse=(e,t)=>Array.isArray(e)?e.map(e=>picomatch$1.parse(e,t)):parse_1$1(e,{...t,fastpaths:!1}),picomatch$1.scan=(e,t)=>scan_1(e,t),picomatch$1.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const o=t||{},a=o.contains?"":"^",i=o.contains?"":"$";let s=`${a}(?:${e.output})${i}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const u=picomatch$1.toRegex(s,t);return!0===n&&(u.state=e),u},picomatch$1.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=parse_1$1.fastpaths(e,t)),o.output||(o=parse_1$1(e,t)),picomatch$1.compileRe(o,t,r,n)},picomatch$1.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},picomatch$1.constants=constants;var picomatch_1=picomatch$1,picomatch=picomatch_1;const isEmptyString=e=>""===e||"./"===e,hasBraces=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},micromatch=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,a=new Set,i=0,s=e=>{a.add(e.output),r&&r.onResult&&r.onResult(e)};for(let a=0;a<t.length;a++){let u=picomatch(String(t[a]),{...r,onResult:s},!0),c=u.state.negated||u.state.negatedExtglob;c&&i++;for(let t of e){let e=u(t,!0);(c?!e.isMatch:e.isMatch)&&(c?n.add(e.output):(n.delete(e.output),o.add(e.output)))}}let u=(i===t.length?[...a]:[...o]).filter(e=>!n.has(e));if(r&&0===u.length){if(!0===r.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return u};micromatch.match=micromatch,micromatch.matcher=(e,t)=>picomatch(e,t),micromatch.isMatch=(e,t,r)=>picomatch(t,r)(e),micromatch.any=micromatch.isMatch,micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],a=new Set(micromatch(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),o.push(e.output)}}));for(let e of o)a.has(e)||n.add(e);return[...n]},micromatch.contains=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${util.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>micromatch.contains(e,t,r));if("string"==typeof t){if(isEmptyString(e)||isEmptyString(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return micromatch.isMatch(e,t,{...r,contains:!0})},micromatch.matchKeys=(e,t,r)=>{if(!utils.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=micromatch(Object.keys(e),t,r),o={};for(let t of n)o[t]=e[t];return o},micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=picomatch(String(e),r);if(n.some(e=>t(e)))return!0}return!1},micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=picomatch(String(e),r);if(!n.every(e=>t(e)))return!1}return!0},micromatch.all=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${util.inspect(e)}"`);return[].concat(t).every(t=>picomatch(t,r)(e))},micromatch.capture=(e,t,r)=>{let n=utils.isWindows(r),o=picomatch.makeRe(String(e),{...r,capture:!0}).exec(n?utils.toPosixSlashes(t):t);if(o)return o.slice(1).map(e=>void 0===e?"":e)},micromatch.makeRe=(...e)=>picomatch.makeRe(...e),micromatch.scan=(...e)=>picomatch.scan(...e),micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let e of braces_1(String(n),t))r.push(picomatch.parse(e,t));return r},micromatch.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!hasBraces(e)?[e]:braces_1(e,t)},micromatch.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:!0})},micromatch.hasBraces=hasBraces;var micromatch_1=micromatch,match=createCommonjsModule(function(e){var t=e.exports;t.match=function(e,t,r,n){var o=handlebarsUtils.options(this,r,n);return"string"==typeof t&&(t=t.split(/, */)),micromatch_1(e,t,o)},t.isMatch=function(e,t,r,n){var o=handlebarsUtils.options(this,r,n);return micromatch_1.isMatch(e,t,o)},t.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),t.match.apply(this,arguments)}}),math$1=createCommonjsModule(function(e){var t=e.exports;t.abs=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.abs(e)},t.add=function(e,t){return isNaN(e)||isNaN(t)?"string"==typeof e&&"string"==typeof t?e+t:"":Number(e)+Number(t)},t.avg=function(){const e=[].concat.apply([],arguments);return e.pop(),t.sum(e)/e.length},t.ceil=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.ceil(e)},t.divide=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)/Number(t)},t.floor=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.floor(e)},t.minus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.modulo=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)%Number(t)},t.multiply=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)*Number(t)},t.plus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)+Number(t)},t.random=function(e,t){if(isNaN(e))throw new TypeError("expected minimum to be a number");if(isNaN(t))throw new TypeError("expected maximum to be a number");return utils$2.random(e,t)},t.remainder=function(e,t){return e%t},t.round=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.round(e)},t.subtract=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.sum=function(){for(var e=[].concat.apply([],arguments),t=e.length,r=0;t--;)isNaN(e[t])||(r+=Number(e[t]));return r}}),misc=createCommonjsModule(function(e){var t=e.exports;t.frame=function(e,t){"object"==typeof e&&e.hash&&(e=(t=e).data);var r=createFrame(e);return"object"!=typeof t&&(t={}),r.extend(t.hash),t.fn(this,{data:r})},t.option=function(e,t,r){return getValue$1(handlebarsUtils.options(this,t,r),e)},t.noop=function(e){return e.fn(this)},t.typeOf=function(e){return typeof e},t.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}}),number$1=createCommonjsModule(function(e){var t=e.exports;t.bytes=function(e,t,r){if(null==e)return"0 B";if(isNaN(e)&&!(e=e.length))return"0 B";isNaN(t)&&(t=2);var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];t=Math.pow(10,t),e=Number(e);for(var o=n.length-1;o-- >=0;){var a=Math.pow(10,3*o);if(a<=e+1){e=Math.round(e*t/a)/t,e+=" "+n[o];break}}return e},t.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},t.phoneNumber=function(e){return"("+(e=e.toString()).substr(0,3)+") "+e.substr(3,3)+"-"+e.substr(6,4)},t.toAbbr=function(e,t){isNaN(e)&&(e=0),handlebarsUtils.isUndefined(t)&&(t=2),e=Number(e),t=Math.pow(10,t);for(var r=["k","m","b","t","q"],n=r.length-1;n>=0;){var o=Math.pow(10,3*(n+1));if(o<=e+1){e=Math.round(e*t/o)/t,e+=r[n];break}n--}return e},t.toExponential=function(e,t){return isNaN(e)&&(e=0),handlebarsUtils.isUndefined(t)&&(t=0),Number(e).toExponential(t)},t.toFixed=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),Number(e).toFixed(t)},t.toFloat=function(e){return parseFloat(e)},t.toInt=function(e){return parseInt(e,10)},t.toPrecision=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=1),Number(e).toPrecision(t)}}),toString$1={}.toString,isarray=Array.isArray||function(e){return"[object Array]"==toString$1.call(e)},isobject=function(e){return null!=e&&"object"==typeof e&&!1===isarray(e)},relative_1=relative;function relative(e,t,r){if("string"!=typeof e)throw new TypeError("relative expects a string.");if(""==e&&!t)return e;var n=arguments.length;1===n&&(t=e,e=browser.cwd(),r=null),2===n&&"boolean"==typeof t&&(t=e,e=browser.cwd(),r=!0),2===n&&"object"==typeof t&&(r=t,t=e,e=browser.cwd());var o=t,a=endsWith(e,"/"),i=endsWith(t,"/");e=unixify(e),t=unixify(t),a&&(e+="/"),isFile(e,r)&&(e=path.dirname(e));var s=path.relative(e,t);if(""===s)return".";var u=trimEnd(o,"/");return i&&(s===u||endsWith(s,u))&&(s+="/"),s}function unixify(e){return e.replace(/[\\\/]+/g,"/")}function trimEnd(e,t){return e.slice(0,e.length-t.length)}function endsWith(e,t){return e.slice(-t.length)[0]===t}function tryStats(e){try{return fs.statSync(e)}catch(e){}return null}function isDir(e,t){if(endsWith(e,"/"))return!0;if(null===t&&(t=tryStats(e)),isobject(t)&&"function"==typeof t.isDirectory)return t.isDirectory();var r=e.split("/"),n=r[r.length-1];return!n||-1===n.indexOf(".")}function isFile(e,t){return!0===t&&(t=tryStats(e)),!isDir(e,t)}relative.toBase=function(e,t){e=unixify(e);var r=(t=unixify(t)).slice(e.length);return"/"===r.charAt(0)&&(r=r.slice(1)),r};var path_1=createCommonjsModule(function(e){var t=e.exports;t.absolute=function(e,t){t=t||{data:{}};var r=handlebarsUtils.options(this,t),n=Object.assign({},t.data.root,r).cwd||browser.cwd();return path.resolve(n,e)},t.dirname=function(e,t){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.dirname(e)},t.relative=function(e,t){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("first path","string",e));if("string"!=typeof t)throw new TypeError(handlebarsUtils.expectedType("second path","string",t));return relative_1(e,t)},t.basename=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.basename(e)},t.stem=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.basename(e,path.extname(e))},t.extname=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.extname(e)},t.resolve=function(e){var t=[].slice.call(arguments),r=handlebarsUtils.options(this,t.pop()),n=path.resolve(r.cwd||browser.cwd());return t.unshift(n),path.resolve.apply(path,t)},t.segments=function(e,t,r){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return e.split(/[\\\/]+/).slice(t,r).join("/")}}),regex$2=createCommonjsModule(function(e){var t=e.exports;t.toRegex=function(e,t,r){var n=handlebarsUtils.options({},t,r);return new RegExp(e,n.flags)},t.test=function(e,t){if("string"!=typeof e)return!1;if("regexp"!==kindOf$1(t))throw new TypeError("expected a regular expression");return t.test(e)}});const lorem="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Crase tempor malesuada magna a vehicula. Nam sollicitudin vel turpis id fermentum. Ut sit amet nisl ac nulla vulputate ultrices vitae vitae urna. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum. Nulla at nulla justo, eget luctus tortor. Nulla facilisi. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Proin vel ante a orci tempus eleifend ut et magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus luctus urna sed urna ultricies ac tempor dui sagittis. In condimentum facilisis porta. Sed nec diam eu diam mattis viverra. Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus fermentum nibh in augue. Praesent a lacus at urna congue rutrum. Nulla enim eros, porttitor eu, tempus id, varius non, nibh. Vestibulum imperdiet nibh vel magna lacinia ultrices. Sed id ligula quis est convallis tempor. \n\n Aliquam erat volutpat. Integer aliquam ultrices nunc. Ut lectus dui, tincidunt ac, scelerisque ac, ultrices vitae, risus. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur vehicula nisi a magna. Sed nec libero. Phasellus nonummy magna. Sed et libero nec ligula blandit fringilla. Ut pretium tempus gravida. Proin lacinia justo vel ipsum varius eget auctor est iaculis. \n\n Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce luctus vestibulum augue ut aliquet. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Nam dui erat, auctor a, dignissim quis. Aenean dignissim pellentesque felis. Sed gravida ante at nunc dictum placerat. Donec placerat nisl magna, et faucibus arcu condimentum sed. Curabitur et eros ac orci vehicula vestibulum sit amet at nunc. Maecenas non diam cursus, tincidunt nisi vitae, hendrerit enim. Donec vulputate felis id felis dapibus fermentum. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. \n\n Pellentesque sit amet mauris eget lectus commodo viverra. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. Cras ultricies ligula sed magna dictum porta. Curabitur aliquet quam id dui posuere blandit. Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Sed porttitor lectus nibh. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. \n\n Cras ultricies ligula sed magna dictum porta. Donec rutrum congue leo eget malesuada. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada. Vivamus suscipit tortor eget felis porttitor volutpat. Nulla porttitor accumsan tincidunt. \n\n Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. \n\n Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. \n\n Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.";var lorem_1=lorem,string$1=createCommonjsModule(function(e,t){var r=e.exports;r.append=function(e,t){return"string"==typeof e&&"string"==typeof t?e+t:e},r.camelcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return e.toUpperCase()})},r.capitalize=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},r.capitalizeAll=function(e){return"string"!=typeof e?"":handlebarsUtils.isString(e)?e.replace(/\w\S*/g,function(e){return r.capitalize(e)}):void 0},r.center=function(e,t){if("string"!=typeof e)return"";for(var r="",n=0;n<t;)r+=" ",n++;return r+e+r},r.chop=function(e){return"string"!=typeof e?"":utils$2.chop(e)},r.dashcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"-"+e})},r.dotcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"."+e})},r.downcase=function(){return r.lowercase.apply(this,arguments)},r.ellipsis=function(e,t){if(handlebarsUtils.isString(e))return e.length<=t?e:r.truncate(e,t)+"…"},r.hyphenate=function(e){return"string"!=typeof e?"":e.split(" ").join("-")},r.isString=function(e){return"string"==typeof e},r.lowercase=function(e){return handlebarsUtils.isObject(e)&&e.fn?e.fn(this).toLowerCase():"string"!=typeof e?"":e.toLowerCase()},r.occurrences=function(e,t){if("string"!=typeof e)return"";for(var r=t.length,n=0,o=0;(n=e.indexOf(t,n))>-1;)o++,n+=r;return o},r.pascalcase=function(e){return"string"!=typeof e?"":(e=utils$2.changecase(e,function(e){return e.toUpperCase()})).charAt(0).toUpperCase()+e.slice(1)},r.pathcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"/"+e})},r.plusify=function(e,t){return"string"!=typeof e?"":(handlebarsUtils.isString(t)||(t=" "),e.split(t).join("+"))},r.prepend=function(e,t){return"string"==typeof e&&"string"==typeof t?t+e:e},r.raw=function(e){var t=e.fn();if(!1!==handlebarsUtils.options(this,e).escape)for(var r=0;-1!==(r=t.indexOf("{{",r));)"\\"!==t[r-1]&&(t=t.slice(0,r)+"\\"+t.slice(r)),r+=3;return t},r.remove=function(e,t){return"string"!=typeof e?"":handlebarsUtils.isString(t)?e.split(t).join(""):e},r.removeFirst=function(e,t){return"string"!=typeof e?"":handlebarsUtils.isString(t)?e.replace(t,""):e},r.replace=function(e,t,r){return"string"!=typeof e?"":handlebarsUtils.isString(t)?(handlebarsUtils.isString(r)||(r=""),e.split(t).join(r)):e},r.replaceFirst=function(e,t,r){return"string"!=typeof e?"":handlebarsUtils.isString(t)?(handlebarsUtils.isString(r)||(r=""),e.replace(t,r)):e},r.reverse=array$1.reverse,r.sentence=function(e){return"string"!=typeof e?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},r.snakecase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"_"+e})},r.split=function(e,t){return"string"!=typeof e?"":(handlebarsUtils.isString(t)||(t=","),e.split(t))},r.startsWith=function(e,t,r){return r=[].slice.call(arguments).pop(),handlebarsUtils.isString(t)&&0===t.indexOf(e)?r.fn(this):"function"==typeof r.inverse?r.inverse(this):""},r.titleize=function(e){if("string"!=typeof e)return"";for(var r=e.replace(/[- _]+/g," ").split(" "),n=r.length,o=[],a=0;n--;){var i=r[a++];o.push(t.capitalize(i))}return o.join(" ")},r.trim=function(e){return"string"==typeof e?e.trim():""},r.trimLeft=function(e){if(handlebarsUtils.isString(e))return e.replace(/^\s+/,"")},r.trimRight=function(e){if(handlebarsUtils.isString(e))return e.replace(/\s+$/,"")},r.truncate=function(e,t,r){if(handlebarsUtils.isString(e))return"string"!=typeof r&&(r=""),e.length>t?e.slice(0,t-r.length)+r:e},r.truncateWords=function(e,t,r){if(handlebarsUtils.isString(e)&&!isNaN(t)){"string"!=typeof r&&(r="…");var n=Number(t),o=e.split(/[ \t]/);return n>=o.length?e:(o=o.slice(0,n)).join(" ").trim()+r}},r.upcase=function(){return r.uppercase.apply(this,arguments)},r.uppercase=function(e){return handlebarsUtils.isObject(e)&&e.fn?e.fn(this).toUpperCase():"string"!=typeof e?"":e.toUpperCase()},r.lorem=function(e){return(isNaN(e)||e<1||!e)&&(e=11),lorem_1.substring(0,e)}}),maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(e){throw new RangeError(errors[e])}function map$1(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function mapDomain(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+map$1((e=e.replace(regexSeparators,".")).split("."),t).join(".")}function ucs2decode(e){for(var t,r,n=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function digitToBasic(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function adapt(e,t,r){var n=0;for(e=r?floor(e/damp):e>>1,e+=floor(e/t);e>baseMinusTMin*tMax>>1;n+=base)e=floor(e/baseMinusTMin);return floor(n+(baseMinusTMin+1)*e/(e+skew))}function encode(e){var t,r,n,o,a,i,s,u,c,l,p,f,h,d,g,m=[];for(f=(e=ucs2decode(e)).length,t=initialN,r=0,a=initialBias,i=0;i<f;++i)(p=e[i])<128&&m.push(stringFromCharCode(p));for(n=o=m.length,o&&m.push(delimiter);n<f;){for(s=maxInt,i=0;i<f;++i)(p=e[i])>=t&&p<s&&(s=p);for(s-t>floor((maxInt-r)/(h=n+1))&&error("overflow"),r+=(s-t)*h,t=s,i=0;i<f;++i)if((p=e[i])<t&&++r>maxInt&&error("overflow"),p==t){for(u=r,c=base;!(u<(l=c<=a?tMin:c>=a+tMax?tMax:c-a));c+=base)g=u-l,d=base-l,m.push(stringFromCharCode(digitToBasic(l+g%d,0))),u=floor(g/d);m.push(stringFromCharCode(digitToBasic(u,0))),a=adapt(r,h,n==o),r=0,++n}++r,++t}return m.join("")}function toASCII(e){return mapDomain(e,function(e){return regexNonASCII.test(e)?"xn--"+encode(e):e})}function hasOwnProperty$f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var isArray$1=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function stringifyPrimitive(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function stringify(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?map(objectKeys(e),function(n){var o=encodeURIComponent(stringifyPrimitive(n))+r;return isArray$1(e[n])?map(e[n],function(e){return o+encodeURIComponent(stringifyPrimitive(e))}).join(t):o+encodeURIComponent(stringifyPrimitive(e[n]))}).join(t):n?encodeURIComponent(stringifyPrimitive(n))+r+encodeURIComponent(stringifyPrimitive(e)):""}function map(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var objectKeys=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};function parse$1(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;n&&"number"==typeof n.maxKeys&&(i=n.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var u=0;u<s;++u){var c,l,p,f,h=e[u].replace(a,"%20"),d=h.indexOf(r);d>=0?(c=h.substr(0,d),l=h.substr(d+1)):(c=h,l=""),p=decodeURIComponent(c),f=decodeURIComponent(l),hasOwnProperty$f(o,p)?isArray$1(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}var querystring={encode:stringify,stringify:stringify,decode:parse$1,parse:parse$1};const URL=global$1.URL,URLSearchParams=global$1.URLSearchParams;var url$1={parse:urlParse,resolve:urlResolve,resolveObject:urlResolveObject,fileURLToPath:urlFileURLToPath,format:urlFormat,Url:Url,URL:URL,URLSearchParams:URLSearchParams};function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(e,t,r){if(e&&isObject$5(e)&&e instanceof Url)return e;var n=new Url;return n.parse(e,t,r),n}function parse(e,t,r,n){if(!isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",i=t.split(a);i[0]=i[0].replace(/\\/g,"/");var s=t=i.join(a);if(s=s.trim(),!n&&1===t.split("#").length){var u=simplePathPattern.exec(s);if(u)return e.path=s,e.href=s,e.pathname=u[1],u[2]?(e.search=u[2],e.query=r?parse$1(e.search.substr(1)):e.search.substr(1)):r&&(e.search="",e.query={}),e}var c,l,p,f,h=protocolPattern.exec(s);if(h){var d=(h=h[0]).toLowerCase();e.protocol=d,s=s.substr(h.length)}if(n||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&hostlessProtocol[h]||(s=s.substr(2),e.slashes=!0)}if(!hostlessProtocol[h]&&(g||h&&!slashedProtocol[h])){var m,y,_=-1;for(c=0;c<hostEndingChars.length;c++)-1!==(l=s.indexOf(hostEndingChars[c]))&&(-1===_||l<_)&&(_=l);for(-1!==(y=-1===_?s.lastIndexOf("@"):s.lastIndexOf("@",_))&&(m=s.slice(0,y),s=s.slice(y+1),e.auth=decodeURIComponent(m)),_=-1,c=0;c<nonHostChars.length;c++)-1!==(l=s.indexOf(nonHostChars[c]))&&(-1===_||l<_)&&(_=l);-1===_&&(_=s.length),e.host=s.slice(0,_),s=s.slice(_),parseHost(e),e.hostname=e.hostname||"";var b="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!b){var v=e.hostname.split(/\./);for(c=0,p=v.length;c<p;c++){var A=v[c];if(A&&!A.match(hostnamePartPattern)){for(var S="",$=0,C=A.length;$<C;$++)A.charCodeAt($)>127?S+="x":S+=A[$];if(!S.match(hostnamePartPattern)){var E=v.slice(0,c),R=v.slice(c+1),w=A.match(hostnamePartStart);w&&(E.push(w[1]),R.unshift(w[2])),R.length&&(s="/"+R.join(".")+s),e.hostname=E.join(".");break}}}}e.hostname.length>hostnameMaxLen?e.hostname="":e.hostname=e.hostname.toLowerCase(),b||(e.hostname=toASCII(e.hostname)),f=e.port?":"+e.port:"";var x=e.hostname||"";e.host=x+f,e.href+=e.host,b&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!unsafeProtocol[d])for(c=0,p=autoEscape.length;c<p;c++){var O=autoEscape[c];if(-1!==s.indexOf(O)){var T=encodeURIComponent(O);T===O&&(T=escape(O)),s=s.split(O).join(T)}}var k=s.indexOf("#");-1!==k&&(e.hash=s.substr(k),s=s.slice(0,k));var P=s.indexOf("?");if(-1!==P?(e.search=s.substr(P),e.query=s.substr(P+1),r&&(e.query=parse$1(e.query)),s=s.slice(0,P)):r&&(e.search="",e.query={}),s&&(e.pathname=s),slashedProtocol[d]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){f=e.pathname||"";var L=e.search||"";e.path=f+L}return e.href=format(e),e}function urlFileURLToPath(e){if("string"==typeof e)e=(new Url).parse(e);else if(!(e instanceof Url))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+String(e));if("file:"!==e.protocol)throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(e)}function getPathFromURLPosix(e){const t=e.pathname;for(let e=0;e<t.length;e++)if("%"===t[e]){const r=32|t.codePointAt(e+2);if("2"===t[e+1]&&102===r)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(t)}function urlFormat(e){return isString(e)&&(e=parse({},e)),format(e)}function format(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=e.protocol||"",n=e.pathname||"",o=e.hash||"",a=!1,i="";e.host?a=t+e.host:e.hostname&&(a=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(a+=":"+e.port)),e.query&&isObject$5(e.query)&&Object.keys(e.query).length&&(i=stringify(e.query));var s=e.search||i&&"?"+i||"";return r&&":"!==r.substr(-1)&&(r+=":"),e.slashes||(!r||slashedProtocol[r])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),r+a+n+(s=s.replace("#","%23"))+o}function urlResolve(e,t){return urlParse(e,!1,!0).resolve(t)}function urlResolveObject(e,t){return e?urlParse(e,!1,!0).resolveObject(t):t}function parseHost(e){var t=e.host,r=portPattern.exec(t);r&&(":"!==(r=r[0])&&(e.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t)}Url.prototype.parse=function(e,t,r){return parse(this,e,t,r)},Url.prototype.format=function(){return format(this)},Url.prototype.resolve=function(e){return this.resolveObject(urlParse(e,!1,!0)).format()},Url.prototype.resolveObject=function(e){if(isString(e)){var t=new Url;t.parse(e,!1,!0),e=t}for(var r,n=new Url,o=Object.keys(this),a=0;a<o.length;a++){var i=o[a];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(n[c]=e[c])}return slashedProtocol[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!slashedProtocol[e.protocol]){for(var l=Object.keys(e),p=0;p<l.length;p++){var f=l[p];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||hostlessProtocol[e.protocol])n.pathname=e.pathname;else{for(r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",d=n.search||"";n.path=h+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g,m=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||m||n.host&&e.pathname,b=_,v=n.pathname&&n.pathname.split("/")||[],A=n.protocol&&!slashedProtocol[n.protocol];if(r=e.pathname&&e.pathname.split("/")||[],A&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),_=_&&(""===r[0]||""===v[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=r;else if(r.length)v||(v=[]),v.pop(),v=v.concat(r),n.search=e.search,n.query=e.query;else if(!isNullOrUndefined(e.search))return A&&(n.hostname=n.host=v.shift(),(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),n.search=e.search,n.query=e.query,isNull(n.pathname)&&isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=v.slice(-1)[0],$=(n.host||e.host||v.length>1)&&("."===S||".."===S)||""===S,C=0,E=v.length;E>=0;E--)"."===(S=v[E])?v.splice(E,1):".."===S?(v.splice(E,1),C++):C&&(v.splice(E,1),C--);if(!_&&!b)for(;C--;C)v.unshift("..");!_||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),$&&"/"!==v.join("/").substr(-1)&&v.push("");var R=""===v[0]||v[0]&&"/"===v[0].charAt(0);return A&&(n.hostname=n.host=R?"":v.length?v.shift():"",(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),(_=_||n.host&&v.length)&&!R&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),isNull(n.pathname)&&isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Url.prototype.parseHost=function(){return parseHost(this)};var url_1=createCommonjsModule(function(e){var t=e.exports;t.encodeURI=function(e){if(handlebarsUtils.isString(e))return encodeURIComponent(e)},t.escape=function(e){if(handlebarsUtils.isString(e))return querystring.escape(e)},t.decodeURI=function(e){if(handlebarsUtils.isString(e))return decodeURIComponent(e)},t.urlResolve=function(e,t){return url$1.resolve(e,t)},t.urlParse=function(e){return url$1.parse(e)},t.stripQuerystring=function(e){if(handlebarsUtils.isString(e))return e.split("?")[0]},t.stripProtocol=function(e){if(handlebarsUtils.isString(e)){var t=url$1.parse(e);return t.protocol="",t.format()}}}),_default=rng;let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var rng_1=Object.defineProperty({default:_default},"__esModule",{value:!0}),regex$1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}),validate_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=regex$1)&&r.__esModule?r:{default:r};var o=function(e){return"string"==typeof e&&n.default.test(e)};t.default=o}),stringify_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var i=function(e,t=0){const r=a(e,t);if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r};t.default=i}),v1_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=rng_1)&&r.__esModule?r:{default:r};let o,a,i=0,s=0;var u=function(e,t,r){let u=t&&r||0;const c=t||new Array(16);let l=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:a;if(null==l||null==p){const t=e.random||(e.rng||n.default)();null==l&&(l=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:s+1;const d=f-i+(h-s)/1e4;if(d<0&&void 0===e.clockseq&&(p=p+1&16383),(d<0||f>i)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=f,s=h,a=p,f+=122192928e5;const g=(1e4*(268435455&f)+h)%4294967296;c[u++]=g>>>24&255,c[u++]=g>>>16&255,c[u++]=g>>>8&255,c[u++]=255&g;const m=f/4294967296*1e4&268435455;c[u++]=m>>>8&255,c[u++]=255&m,c[u++]=m>>>24&15|16,c[u++]=m>>>16&255,c[u++]=p>>>8|128,c[u++]=255&p;for(let e=0;e<6;++e)c[u+e]=l[e];return t||(0,stringify_1.unsafeStringify)(c)};t.default=u}),parse_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};var o=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=o}),v35_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function i(e,o,a,i){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=(0,n.default)(o)),16!==(null===(s=o)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+e.length);if(u.set(o),u.set(e,o.length),u=r(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,a){i=i||0;for(let e=0;e<16;++e)a[i+e]=u[e];return a}return(0,stringify_1.unsafeStringify)(u)}try{i.name=e}catch(e){}return i.DNS=o,i.URL=a,i};var r,n=(r=parse_1)&&r.__esModule?r:{default:r};const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a}),md5_1=createCommonjsModule(function(e,t){function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,a,i){return n((s=n(n(t,e),n(o,i)))<<(u=a)|s>>>32-u,r);var s,u}function a(e,t,r,n,a,i,s){return o(t&r|~t&n,e,t,a,i,s)}function i(e,t,r,n,a,i,s){return o(t&n|r&~n,e,t,a,i,s)}function s(e,t,r,n,a,i,s){return o(t^r^n,e,t,a,i,s)}function u(e,t,r,n,a,i,s){return o(r^(t|~n),e,t,a,i,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,p=271733878;for(let t=0;t<e.length;t+=16){const r=o,f=c,h=l,d=p;o=a(o,c,l,p,e[t],7,-680876936),p=a(p,o,c,l,e[t+1],12,-389564586),l=a(l,p,o,c,e[t+2],17,606105819),c=a(c,l,p,o,e[t+3],22,-1044525330),o=a(o,c,l,p,e[t+4],7,-176418897),p=a(p,o,c,l,e[t+5],12,1200080426),l=a(l,p,o,c,e[t+6],17,-1473231341),c=a(c,l,p,o,e[t+7],22,-45705983),o=a(o,c,l,p,e[t+8],7,1770035416),p=a(p,o,c,l,e[t+9],12,-1958414417),l=a(l,p,o,c,e[t+10],17,-42063),c=a(c,l,p,o,e[t+11],22,-1990404162),o=a(o,c,l,p,e[t+12],7,1804603682),p=a(p,o,c,l,e[t+13],12,-40341101),l=a(l,p,o,c,e[t+14],17,-1502002290),c=a(c,l,p,o,e[t+15],22,1236535329),o=i(o,c,l,p,e[t+1],5,-165796510),p=i(p,o,c,l,e[t+6],9,-1069501632),l=i(l,p,o,c,e[t+11],14,643717713),c=i(c,l,p,o,e[t],20,-373897302),o=i(o,c,l,p,e[t+5],5,-701558691),p=i(p,o,c,l,e[t+10],9,38016083),l=i(l,p,o,c,e[t+15],14,-660478335),c=i(c,l,p,o,e[t+4],20,-405537848),o=i(o,c,l,p,e[t+9],5,568446438),p=i(p,o,c,l,e[t+14],9,-1019803690),l=i(l,p,o,c,e[t+3],14,-187363961),c=i(c,l,p,o,e[t+8],20,1163531501),o=i(o,c,l,p,e[t+13],5,-1444681467),p=i(p,o,c,l,e[t+2],9,-51403784),l=i(l,p,o,c,e[t+7],14,1735328473),c=i(c,l,p,o,e[t+12],20,-1926607734),o=s(o,c,l,p,e[t+5],4,-378558),p=s(p,o,c,l,e[t+8],11,-2022574463),l=s(l,p,o,c,e[t+11],16,1839030562),c=s(c,l,p,o,e[t+14],23,-35309556),o=s(o,c,l,p,e[t+1],4,-1530992060),p=s(p,o,c,l,e[t+4],11,1272893353),l=s(l,p,o,c,e[t+7],16,-155497632),c=s(c,l,p,o,e[t+10],23,-1094730640),o=s(o,c,l,p,e[t+13],4,681279174),p=s(p,o,c,l,e[t],11,-358537222),l=s(l,p,o,c,e[t+3],16,-722521979),c=s(c,l,p,o,e[t+6],23,76029189),o=s(o,c,l,p,e[t+9],4,-640364487),p=s(p,o,c,l,e[t+12],11,-421815835),l=s(l,p,o,c,e[t+15],16,530742520),c=s(c,l,p,o,e[t+2],23,-995338651),o=u(o,c,l,p,e[t],6,-198630844),p=u(p,o,c,l,e[t+7],10,1126891415),l=u(l,p,o,c,e[t+14],15,-1416354905),c=u(c,l,p,o,e[t+5],21,-57434055),o=u(o,c,l,p,e[t+12],6,1700485571),p=u(p,o,c,l,e[t+3],10,-1894986606),l=u(l,p,o,c,e[t+10],15,-1051523),c=u(c,l,p,o,e[t+1],21,-2054922799),o=u(o,c,l,p,e[t+8],6,1873313359),p=u(p,o,c,l,e[t+15],10,-30611744),l=u(l,p,o,c,e[t+6],15,-1560198380),c=u(c,l,p,o,e[t+13],21,1309151649),o=u(o,c,l,p,e[t+4],6,-145523070),p=u(p,o,c,l,e[t+11],10,-1120210379),l=u(l,p,o,c,e[t+2],15,718787259),c=u(c,l,p,o,e[t+9],21,-343485551),o=n(o,r),c=n(c,f),l=n(l,h),p=n(p,d)}return[o,c,l,p]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};t.default=c}),v3_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(v35_1),n=o(md5_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,n.default);t.default=a}),native=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r}),v4_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(native),n=o(rng_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,o){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||n.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=a[e];return t}return(0,stringify_1.unsafeStringify)(a)};t.default=a}),sha1_1=createCommonjsModule(function(e,t){function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i);for(let t=0;t<i;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];s[t]=r}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const a=new Uint32Array(80);for(let t=0;t<16;++t)a[t]=s[e][t];for(let e=16;e<80;++e)a[e]=n(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let i=o[0],u=o[1],c=o[2],l=o[3],p=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=n(i,5)+r(o,u,c,l)+p+t[o]+a[e]>>>0;p=l,l=c,c=n(u,30)>>>0,u=i,i=s}o[0]=o[0]+i>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+p>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o}),v5_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(v35_1),n=o(sha1_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,n.default);t.default=a}),nil=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"}),version_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};var o=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o}),commonjsBrowser=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return s.default}});var r=p(v1_1),n=p(v3_1),o=p(v4_1),a=p(v5_1),i=p(nil),s=p(version_1),u=p(validate_1),c=p(stringify_1),l=p(parse_1);function p(e){return e&&e.__esModule?e:{default:e}}}),uuid_1=createCommonjsModule(function(e){e.exports.uuid=function(){return commonjsBrowser.v4()}}),lib={array:array$1,code:code,collection:collection,comparison:comparison$1,html:html_1,i18n:i18n,inflection:inflection,match:match,math:math$1,misc:misc,number:number$1,object:object$1,path:path_1,regex:regex$2,string:string$1,url:url_1,uuid:uuid_1},handlebarsHelpers=createCommonjsModule(function(e){e.exports=function(t,r){"string"==typeof t?t=[t]:Array.isArray(t)||(r=t,t=null);var n=(r=r||{}).handlebars||r.hbs||handlebars;if(e.exports.handlebars=n,t)t.forEach(function(e){n.registerHelper(lib[e])});else for(const e in lib){const t=lib[e];n.registerHelper(t)}return n.helpers};for(const t in lib){const r=lib[t];e.exports[t]=function(t){var n=(t=t||{}).handlebars||t.hbs||handlebars;return e.exports.handlebars=n,n.registerHelper(r),r}}e.exports.utils=utils$2}),dayjs_min=createCommonjsModule(function(e,t){e.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",a="minute",i="hour",s="day",u="week",c="month",l="quarter",p="year",f="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,c),a=r-o<0,i=t.clone().add(n+(a?-1:1),c);return+(-(n+(r-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:p,w:u,d:s,D:f,h:i,m:a,s:o,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=m;var A="$isDayjsObject",S=function(e){return e instanceof R||!(!e||!e[A])},$=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();v[a]&&(o=a),r&&(v[a]=r,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;v[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(S(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new R(r)},E=_;E.l=$,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return C(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<C(e)},y.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,n=!!E.u(t)||t,l=E.p(e),h=function(e,t){var o=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(s)},d=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,m=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case p:return n?h(1,0):h(31,11);case c:return n?h(1,m):h(0,m+1);case u:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return h(n?y-v:y+(6-v),m);case s:case f:return d(_+"Hours",0);case i:return d(_+"Minutes",1);case a:return d(_+"Seconds",2);case o:return d(_+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var r,u=E.p(e),l="set"+(this.$u?"UTC":""),h=(r={},r[s]=l+"Date",r[f]=l+"Date",r[c]=l+"Month",r[p]=l+"FullYear",r[i]=l+"Hours",r[a]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],d=u===s?this.$D+(t-this.$W):t;if(u===c||u===p){var g=this.clone().set(f,1);g.$d[h](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[E.p(e)]()},y.add=function(n,l){var f,h=this;n=Number(n);var d=E.p(l),g=function(e){var t=C(h);return E.w(t.date(t.date()+Math.round(e*n)),h)};if(d===c)return this.set(c,this.$M+n);if(d===p)return this.set(p,this.$y+n);if(d===s)return g(1);if(d===u)return g(7);var m=(f={},f[a]=t,f[i]=r,f[o]=e,f)[d]||1,y=this.$d.getTime()+n*m;return E.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),a=this.$H,i=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=r.meridiem,p=function(e,r,o,a){return e&&(e[r]||e(t,n))||o[r].slice(0,a)},f=function(e){return E.s(a%12||12,e,"0")},d=l||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,u,2);case"ddd":return p(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return E.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(a,i,!0);case"A":return d(a,i,!1);case"m":return String(i);case"mm":return E.s(i,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,h){var d,g=this,m=E.p(f),y=C(n),_=(y.utcOffset()-this.utcOffset())*t,b=this-y,v=function(){return E.m(g,y)};switch(m){case p:d=v()/12;break;case c:d=v();break;case l:d=v()/3;break;case u:d=(b-_)/6048e5;break;case s:d=(b-_)/864e5;break;case i:d=b/r;break;case a:d=b/t;break;case o:d=b/e;break;default:d=b}return h?d:E.a(d)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return v[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=$(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),w=R.prototype;return C.prototype=w,[["$ms",n],["$s",o],["$m",a],["$H",i],["$W",s],["$M",c],["$y",p],["$D",f]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,R,C),e.$i=!0),C},C.locale=$,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=v[b],C.Ls=v,C.p={},C}()}),duration$1=createCommonjsModule(function(e,t){var r,n,o,a,i,s,u,c,l,p,f,h,d,g,m,y,_,b,v,A;e.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c=31536e6,months:l=2628e6,days:s=864e5,hours:i=36e5,minutes:a=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},h=function(e){return e instanceof v},d=function(e,t,r){return new v(e,r,t.$l)},g=function(e){return n.p(e)+"s"},m=function(e){return e<0},y=function(e){return m(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},b=function(e,t){return e?m(e)?{negative:!0,format:""+_(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function e(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*f[g(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){n.$d[g(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(p);if(o){var a=o.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var t=e.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,r){return t+(e.$d[r]||0)*f[r]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=y(e/c),e%=c,this.$d.months=y(e/l),e%=l,this.$d.days=y(e/s),e%=s,this.$d.hours=y(e/i),e%=i,this.$d.minutes=y(e/a),e%=a,this.$d.seconds=y(e/o),e%=o,this.$d.milliseconds=e},t.toISOString=function(){var e=b(this.$d.years,"Y"),t=b(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=b(r,"D"),o=b(this.$d.hours,"H"),a=b(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var s=b(i,"S"),u=e.negative||t.negative||n.negative||o.negative||a.negative||s.negative,c=o.format||a.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+n.format+c+o.format+a.format+s.format;return"P"===l||"-P"===l?"P0D":l},t.toJSON=function(){return this.toISOString()},t.format=function(e){var t=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return t.replace(u,function(e,t){return t||String(r[e])})},t.as=function(e){return this.$ms/f[g(e)]},t.get=function(e){var t=this.$ms,r=g(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?y(t/f[r]):this.$d[r],t||0},t.add=function(e,t,r){var n;return n=t?e*f[g(t)]:h(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},t.subtract=function(e,t){return this.add(e,t,!0)},t.locale=function(e){var t=this.clone();return t.$l=e,t},t.clone=function(){return d(this.$ms,this)},t.humanize=function(e){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},e}(),A=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},function(e,t,o){r=o,n=o().$utils(),o.duration=function(e,t){var r=o.locale();return d(e,{$l:r},t)},o.isDuration=h;var a=t.prototype.add,i=t.prototype.subtract;t.prototype.add=function(e,t){return h(e)?A(this,e,1):a.bind(this)(e,t)},t.prototype.subtract=function(e,t){return h(e)?A(this,e,-1):i.bind(this)(e,t)}})}),advancedFormat=createCommonjsModule(function(e,t){e.exports=function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return n.bind(this)(a)}}}),isoWeek=createCommonjsModule(function(e,t){var r;e.exports=(r="day",function(e,t,n){var o=function(e){return e.add(4-e.isoWeekday(),r)},a=t.prototype;a.isoWeekYear=function(){return o(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,a,i,s=o(this),u=(t=this.isoWeekYear(),i=4-(a=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(i+=7),a.add(i,r));return s.diff(u,"week")+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var i=a.startOf;a.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(e,t)}})}),weekYear=createCommonjsModule(function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),r=this.year();return 1===t&&11===e?r+1:0===e&&t>=52?r-1:r}}}),weekOfYear=createCommonjsModule(function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,o){var a=t.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(n).add(1,n).date(t),i=o(this).endOf(r);if(a.isBefore(i))return 1}var s=o(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),u=this.diff(s,r,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}),relativeTime=createCommonjsModule(function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,t,r,o){return n.fromToBase(e,t,r,o)}r.en.relativeTime=o,n.fromToBase=function(t,n,a,i,s){for(var u,c,l,p=a.$locale().relativeTime||o,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,d=0;d<h;d+=1){var g=f[d];g.d&&(u=i?r(t).diff(a,g.d,!0):a.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,m<=g.r||!g.r){m<=1&&d>0&&(g=f[d-1]);var y=p[g.l];s&&(m=s(""+m)),c="string"==typeof y?y.replace("%d",m):y(m,n,g.l,l);break}}if(n)return c;var _=l?p.future:p.past;return"function"==typeof _?_(c):_.replace("%s",c)},n.to=function(e,t){return a(e,t,this,!0)},n.from=function(e,t){return a(e,t,this)};var i=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(i(this),e)},n.fromNow=function(e){return this.from(i(this),e)}}}),utc=createCommonjsModule(function(e,t){var r,n,o;e.exports=(r="minute",n=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g,function(e,t,a){var i=t.prototype;a.utc=function(e){return new t({date:e,utc:!0,args:arguments})},i.utc=function(e){var t=a(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),r):t},i.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=i.utcOffset;i.utcOffset=function(e,t){var a=this.$utils().u;if(a(e))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var r=(""+t[0]).match(o)||["-",0,0],a=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===a?i:-i}(e),null===e))return this;var i=Math.abs(e)<=16?60*e:e;if(0===i)return this.utc(t);var s=this.clone();if(t)return s.$offset=i,s.$u=!1,s;var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+u,r)).$offset=i,s.$x.$localOffset=u,s};var l=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var p=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),o=a(e).local();return f.call(n,o,t,r)}})}),timezone=createCommonjsModule(function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,o){var a,i=function(e,t,r){void 0===r&&(r={});var o=new Date(e),a=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",o=e+"|"+r,a=n[o];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[o]=a),a}(t,r);return a.formatToParts(o)},s=function(e,t){for(var n=i(e,t),a=[],s=0;s<n.length;s+=1){var u=n[s],c=u.type,l=u.value,p=r[c];p>=0&&(a[p]=parseInt(l,10))}var f=a[3],h=24===f?0:f,d=a[0]+"-"+a[1]+"-"+a[2]+" "+h+":"+a[4]+":"+a[5]+":000",g=+e;return(o.utc(d).valueOf()-(g-=g%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=a);var r,n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),u=Math.round((i-new Date(s))/1e3/60),c=15*-Math.round(i.getTimezoneOffset()/15)-u;if(Number(c)){if(r=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var l=r.utcOffset();r=r.add(n-l,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),r=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,r){var n=r&&t,i=r||t||a,u=s(+o(),i);if("string"!=typeof e)return o(e).tz(i);var c=function(e,t,r){var n=e-60*t*1e3,o=s(n,r);if(t===o)return[n,t];var a=s(n-=60*(o-t)*1e3,r);return o===a?[n,o]:[e-60*Math.min(o,a)*1e3,Math.max(o,a)]}(o.utc(e,n).valueOf(),u,i),l=c[0],p=c[1],f=o(l).utcOffset(p);return f.$x.$timezone=i,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){a=e}})});function isOptions(e){return"object"==typeof e&&"object"==typeof e.hash}function isApp(e){return"object"==typeof e&&"object"==typeof e.options&&"object"==typeof e.app}function getContext(e,t,r){if(isOptions(e))return getContext({},t,e);if(isOptions(t))return getContext(e,r,t);const n=isApp(e)?e.context:{};isOptions(r=r||{})||(t=Object.assign({},t,r)),isOptions(r)&&!0===r.hash.root&&(t=Object.assign({},r.data.root,t));let o=Object.assign({},n,t,r.hash);return isApp(e)||(o=Object.assign({},e,o)),isApp(e)&&e.view&&e.view.data&&(o=Object.assign({},o,e.view.data)),o}function initialConfig(e,t,r){return isOptions(t)&&(r=t,t=DEFAULT_FORMAT),isOptions(e)&&(r=e,t=null,e=null),{str:e,pattern:t,options:r}}function setLocale(e,t,r){const n=initialConfig(e,t,r),o=getContext(this,{lang:"en",date:new Date(n.str)},{});dayjs_min.locale(o.lang||o.language)}dayjs_min.extend(duration$1),dayjs_min.extend(advancedFormat),dayjs_min.extend(isoWeek),dayjs_min.extend(weekYear),dayjs_min.extend(weekOfYear),dayjs_min.extend(relativeTime),dayjs_min.extend(utc),dayjs_min.extend(timezone);const DEFAULT_FORMAT="MMMM DD, YYYY",date$1=(e,t,r)=>{const n=initialConfig(e,t,r);if(null==n.str&&null==n.pattern)return dayjs_min.locale("en"),dayjs_min().format(DEFAULT_FORMAT);setLocale(n.str,n.pattern,n.options);let o=dayjs_min(new Date(n.str));return o="string"==typeof n.options?"utc"===n.options.toLowerCase()?o.utc():o.tz(n.options):o.tz(dayjs_min.tz.guess()),""===n.pattern?o.toISOString():o.format(n.pattern)},duration=(e,t,r)=>{const n=initialConfig(e,t);setLocale(n.str,n.pattern);const o=dayjs_min.duration(n.str,n.pattern);return r&&!isOptions(r)?o.format(r):o.humanize()},difference=(e,t,r)=>dayjs_min(new Date(e)).diff(dayjs_min(new Date(t)),r),durationFromNow=e=>{const t=difference(e,(new Date).toISOString(),"ms");return duration(t,"ms")},HelperFunctionBuiltin=["#if","#unless","#each","#with","lookup","log","blockHelperMissing","each","helperMissing","if","unless","log","lookup","with"],EXTERNAL_FUNCTION_COLLECTIONS=["math","array","number","url","string","comparison","object","regex","uuid"],HelperFunctionNames={OBJECT:"object",ALL:"all",LITERAL:"literal",JS:"js",DECODE_ID:"decodeId"},LITERAL_MARKER="%LITERAL%",ADDED_HELPERS={date:date$1,duration:duration,difference:difference,durationFromNow:durationFromNow};function registerAll$1(e){for(let[t,r]of Object.entries(ADDED_HELPERS))e.registerHelper(t,r);let t=[];for(let r of EXTERNAL_FUNCTION_COLLECTIONS){let n=handlebarsHelpers[r]();for(let e of Object.entries(n)){const r=e[0];-1===HelperFunctionBuiltin.indexOf(r)&&-1===t.indexOf(r)&&t.push(r)}handlebarsHelpers[r]({handlebars:e})}externalHelperNames=t.concat(Object.keys(ADDED_HELPERS))}let externalHelperNames=[];function isJest(){return"jest"===browser.env.NODE_ENV||null!=browser.env.JEST_WORKER_ID&&"null"!==browser.env.JEST_WORKER_ID}function isTest(){return isJest()}const isTestingBackendJS=()=>browser&&browser.env.BACKEND_JS,setTestingBackendJS=()=>{browser.env.BACKEND_JS="1"},ALPHA_NUMERIC_REGEX=/^[A-Za-z0-9]+$/g,FIND_HBS_REGEX=/{{([^{].*?)}}/g,FIND_ANY_HBS_REGEX=/{?{{([^{].*?)}}}?/g,FIND_TRIPLE_HBS_REGEX=/{{{([^{].*?)}}}/g,isBackendService=()=>!(!isTest()||!isTestingBackendJS())||!isTest()&&"undefined"==typeof window,isJSAllowed=()=>browser&&!browser.env.NO_JS,findDoubleHbsInstances=e=>{let t=e;const r=new RegExp(FIND_HBS_REGEX),n=new RegExp(FIND_TRIPLE_HBS_REGEX),o=t.match(n);o&&o.forEach(e=>{t=t.replace(e,"")});const a=t.match(r);return a||[]},isAlphaNumeric=e=>e.match(ALPHA_NUMERIC_REGEX),swapStrings=(e,t,r,n)=>e.slice(0,t)+n+e.slice(t+r),btoa=e=>Buffer.from(e,"utf-8").toString("base64"),atob=e=>Buffer.from(e,"base64").toString("utf-8"),prefixStrings=(e,t,r)=>{const n=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),o=new RegExp(`\\b(${n.join("|")})\\b`,"g");return e.replace(o,`${r}$1`)};function frontendWrapJS(e){return`\n result = {\n result: null,\n error: null,\n };\n\n try {\n result.result = ${e};\n } catch (e) {\n result.error = e;\n }\n\n result;\n `}const externalCollections={math:math$1,array:array$1,number:number$1,url:url_1,string:string$1,comparison:comparison$1,object:object$1,regex:regex$2,uuid:uuid_1},helpersToRemoveForJs=["sortBy"],addedHelpers={date:date$1,duration:duration};let helpers;function getJsHelperList(){if(helpers)return helpers;helpers={};for(let e of Object.values(externalCollections))for(let[t,r]of Object.entries(e))helpers[t]=(...e)=>r(...e,{});helpers=Object.assign(Object.assign({},helpers),addedHelpers);for(const e of helpersToRemoveForJs)delete helpers[e];return Object.freeze(helpers),helpers}const iifeWrapper=e=>`(function(){\n${e}\n})();`;class JsTimeoutError extends Error{constructor(){super(JsTimeoutError.message),this.code=JsTimeoutError.code}}JsTimeoutError.message="Timed out while executing JS",JsTimeoutError.code="JS_TIMEOUT_ERROR";class UserScriptError extends Error{constructor(e){super(`error while running user-supplied JavaScript: ${e.toString()}`),this.userScriptError=e,this.code=UserScriptError.code}}UserScriptError.code="USER_SCRIPT_ERROR";var _mapping=createCommonjsModule(function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var a=r[o];e.call(n,a)?n[a].push(o):n[a]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}),placeholder={},push=Array.prototype.push;function baseArity(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function baseAry(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function cloneArray(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function createCloner(e){return function(t){return e({},t)}}function flatSpread(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[t],i=o.slice(0,t);return a&&push.apply(i,a),t!=n&&push.apply(i,o.slice(t+1)),e.apply(this,i)}}function wrapImmutable(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=t.apply(void 0,n);return e.apply(void 0,n),o}}}function baseConvert(e,t,r,n){var o="function"==typeof t,a=t===Object(t);if(a&&(n=r,r=t,t=void 0),null==r)throw new TypeError;n||(n={});var i=!("cap"in n)||n.cap,s=!("curry"in n)||n.curry,u=!("fixed"in n)||n.fixed,c=!("immutable"in n)||n.immutable,l=!("rearg"in n)||n.rearg,p=o?r:placeholder,f="curry"in n&&n.curry,h="fixed"in n&&n.fixed,d="rearg"in n&&n.rearg,g=o?r.runInContext():void 0,m=o?r:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},y=m.ary,_=m.assign,b=m.clone,v=m.curry,A=m.forEach,S=m.isArray,$=m.isError,C=m.isFunction,E=m.isWeakMap,R=m.keys,w=m.rearg,x=m.toInteger,O=m.toPath,T=R(_mapping.aryMethod),k={castArray:function(e){return function(){var t=arguments[0];return S(t)?e(cloneArray(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return i&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:baseAry(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!C(r))return e(r,Object(t));var n=[];return A(R(t),function(e){C(t[e])&&n.push([e,r.prototype[e]])}),e(r,Object(t)),A(n,function(e){var t=e[1];C(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]}),r}},nthArg:function(e){return function(t){var r=t<0?1:x(t)+1;return v(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return v(e(t,r),n)}},runInContext:function(t){return function(r){return baseConvert(e,t(r),n)}}};function P(e,t){if(i){var r=_mapping.iterateeRearg[e];if(r)return function(e,t){return B(e,function(e){var r=t.length;return baseArity(w(baseAry(e,r),t),r)})}(t,r);var n=!o&&_mapping.iterateeAry[e];if(n)return function(e,t){return B(e,function(e){return"function"==typeof e?baseAry(e,t):e})}(t,n)}return t}function L(e,t,r){if(u&&(h||!_mapping.skipFixed[e])){var n=_mapping.methodSpread[e],o=n&&n.start;return void 0===o?y(t,r):flatSpread(t,o)}return t}function I(e,t,r){return l&&r>1&&(d||!_mapping.skipRearg[e])?w(t,_mapping.methodRearg[e]||_mapping.aryRearg[r]):t}function M(e,t){for(var r=-1,n=(t=O(t)).length,o=n-1,a=b(Object(e)),i=a;null!=i&&++r<n;){var s=t[r],u=i[s];null==u||C(u)||$(u)||E(u)||(i[s]=b(r==o?u:Object(u))),i=i[s]}return a}function j(e,t){var r=_mapping.aliasToReal[e]||e,a=_mapping.remap[r]||r,i=n;return function(e){var n=o?g:m,s=o?g[a]:t,u=_(_({},i),e);return baseConvert(n,r,s,u)}}function B(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var o=l?0:r-1;return n[o]=t(n[o]),e.apply(void 0,n)}}function N(e,t,r){var n,o=_mapping.aliasToReal[e]||e,a=t,i=k[o];return i?a=i(t):c&&(_mapping.mutate.array[o]?a=wrapImmutable(t,cloneArray):_mapping.mutate.object[o]?a=wrapImmutable(t,createCloner(t)):_mapping.mutate.set[o]&&(a=wrapImmutable(t,M))),A(T,function(e){return A(_mapping.aryMethod[e],function(t){if(o==t){var r=_mapping.methodSpread[o],i=r&&r.afterRearg;return n=i?L(o,I(o,a,e),e):I(o,L(o,a,e),e),n=function(e,t,r){return f||s&&r>1?v(t,r):t}(0,n=P(o,n),e),!1}}),!n}),n||(n=a),n==t&&(n=f?v(n,1):function(){return t.apply(this,arguments)}),n.convert=j(o,t),n.placeholder=t.placeholder=r,n}if(!a)return N(t,r,p);var H=r,U=[];return A(T,function(e){A(_mapping.aryMethod[e],function(e){var t=H[_mapping.remap[e]||e];t&&U.push([e,N(e,t,H)])})}),A(R(H),function(e){var t=H[e];if("function"==typeof t){for(var r=U.length;r--;)if(U[r][0]==e)return;t.convert=j(e,t),U.push([e,t])}}),A(U,function(e){H[e[0]]=e[1]}),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,A(R(H),function(e){A(_mapping.realToAlias[e]||[],function(t){H[t]=H[e]})}),H}var _baseConvert=baseConvert;function identity(e){return e}var identity_1=identity,freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto$h=Object.prototype,hasOwnProperty$e=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$e.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var o=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),o}var _getRawTag=getRawTag,objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(e){return nativeObjectToString.call(e)}var _objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}var _baseGetTag=baseGetTag;function isObject$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e))return!1;var t=_baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var isFunction_1=isFunction,coreJsData=_root["__core-js_shared__"],_coreJsData=coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(e){if(null!=e){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject_1(e)||_isMasked(e))&&(isFunction_1(e)?reIsNative:reIsHostCtor).test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,t){return null==e?void 0:e[t]}var _getValue=getValue;function getNative(e,t){var r=_getValue(e,t);return _baseIsNative(r)?r:void 0}var _getNative=getNative,WeakMap=_getNative(_root,"WeakMap"),_WeakMap=WeakMap,metaMap=_WeakMap&&new _WeakMap,_metaMap=metaMap,baseSetData=_metaMap?function(e,t){return _metaMap.set(e,t),e}:identity_1,_baseSetData=baseSetData,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject_1(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_baseCreate=baseCreate;function createCtor(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_baseCreate(e.prototype),n=e.apply(r,t);return isObject_1(n)?n:r}}var _createCtor=createCtor,WRAP_BIND_FLAG$5=1;function createBind(e,t,r){var n=t&WRAP_BIND_FLAG$5,o=_createCtor(e);return function t(){return(this&&this!==_root&&this instanceof t?o:e).apply(n?r:this,arguments)}}var _createBind=createBind;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _apply=apply,nativeMax$3=Math.max;function composeArgs(e,t,r,n){for(var o=-1,a=e.length,i=r.length,s=-1,u=t.length,c=nativeMax$3(a-i,0),l=Array(u+c),p=!n;++s<u;)l[s]=t[s];for(;++o<i;)(p||o<a)&&(l[r[o]]=e[o]);for(;c--;)l[s++]=e[o++];return l}var _composeArgs=composeArgs,nativeMax$2=Math.max;function composeArgsRight(e,t,r,n){for(var o=-1,a=e.length,i=-1,s=r.length,u=-1,c=t.length,l=nativeMax$2(a-s,0),p=Array(l+c),f=!n;++o<l;)p[o]=e[o];for(var h=o;++u<c;)p[h+u]=t[u];for(;++i<s;)(f||o<a)&&(p[h+r[i]]=e[o++]);return p}var _composeArgsRight=composeArgsRight;function countHolders(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var _countHolders=countHolders;function baseLodash(){}var _baseLodash=baseLodash,MAX_ARRAY_LENGTH=4294967295;function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH,this.__views__=[]}LazyWrapper.prototype=_baseCreate(_baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper;var _LazyWrapper=LazyWrapper;function noop(){}var noop_1=noop,getData=_metaMap?function(e){return _metaMap.get(e)}:noop_1,_getData=getData,realNames={},_realNames=realNames,objectProto$e=Object.prototype,hasOwnProperty$c=objectProto$e.hasOwnProperty;function getFuncName(e){for(var t=e.name+"",r=_realNames[t],n=hasOwnProperty$c.call(_realNames,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}var _getFuncName=getFuncName;function LodashWrapper(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}LodashWrapper.prototype=_baseCreate(_baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper;var _LodashWrapper=LodashWrapper,isArray=Array.isArray,isArray_1=isArray;function isObjectLike(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike;function copyArray(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _copyArray=copyArray;function wrapperClone(e){if(e instanceof _LazyWrapper)return e.clone();var t=new _LodashWrapper(e.__wrapped__,e.__chain__);return t.__actions__=_copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _wrapperClone=wrapperClone,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty;function lodash(e){if(isObjectLike_1(e)&&!isArray_1(e)&&!(e instanceof _LazyWrapper)){if(e instanceof _LodashWrapper)return e;if(hasOwnProperty$b.call(e,"__wrapped__"))return _wrapperClone(e)}return new _LodashWrapper(e)}lodash.prototype=_baseLodash.prototype,lodash.prototype.constructor=lodash;var wrapperLodash=lodash;function isLaziable(e){var t=_getFuncName(e),r=wrapperLodash[t];if("function"!=typeof r||!(t in _LazyWrapper.prototype))return!1;if(e===r)return!0;var n=_getData(r);return!!n&&e===n[0]}var _isLaziable=isLaziable,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(e){var t=0,r=0;return function(){var n=nativeNow(),o=HOT_SPAN-(n-r);if(r=n,o>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut,setData=_shortOut(_baseSetData),_setData=setData,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;function getWrapDetails(e){var t=e.match(reWrapDetails);return t?t[1].split(reSplitDetails):[]}var _getWrapDetails=getWrapDetails,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(reWrapComment,"{\n/* [wrapped with "+t+"] */\n")}var _insertWrapDetails=insertWrapDetails;function constant(e){return function(){return e}}var constant_1=constant,defineProperty=function(){try{var e=_getNative(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_defineProperty=defineProperty,baseSetToString=_defineProperty?function(e,t){return _defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant_1(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString,setToString=_shortOut(_baseSetToString),_setToString=setToString;function arrayEach(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var _arrayEach=arrayEach;function baseFindIndex(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var _baseFindIndex=baseFindIndex;function baseIsNaN(e){return e!=e}var _baseIsNaN=baseIsNaN;function strictIndexOf(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var _strictIndexOf=strictIndexOf;function baseIndexOf(e,t,r){return t==t?_strictIndexOf(e,t,r):_baseFindIndex(e,_baseIsNaN,r)}var _baseIndexOf=baseIndexOf;function arrayIncludes(e,t){return!!(null==e?0:e.length)&&_baseIndexOf(e,t,0)>-1}var _arrayIncludes=arrayIncludes,WRAP_BIND_FLAG$4=1,WRAP_BIND_KEY_FLAG$3=2,WRAP_CURRY_FLAG$5=8,WRAP_CURRY_RIGHT_FLAG$2=16,WRAP_PARTIAL_FLAG$2=32,WRAP_PARTIAL_RIGHT_FLAG$2=64,WRAP_ARY_FLAG$3=128,WRAP_REARG_FLAG$2=256,WRAP_FLIP_FLAG$1=512,wrapFlags=[["ary",WRAP_ARY_FLAG$3],["bind",WRAP_BIND_FLAG$4],["bindKey",WRAP_BIND_KEY_FLAG$3],["curry",WRAP_CURRY_FLAG$5],["curryRight",WRAP_CURRY_RIGHT_FLAG$2],["flip",WRAP_FLIP_FLAG$1],["partial",WRAP_PARTIAL_FLAG$2],["partialRight",WRAP_PARTIAL_RIGHT_FLAG$2],["rearg",WRAP_REARG_FLAG$2]];function updateWrapDetails(e,t){return _arrayEach(wrapFlags,function(r){var n="_."+r[0];t&r[1]&&!_arrayIncludes(e,n)&&e.push(n)}),e.sort()}var _updateWrapDetails=updateWrapDetails;function setWrapToString(e,t,r){var n=t+"";return _setToString(e,_insertWrapDetails(n,_updateWrapDetails(_getWrapDetails(n),r)))}var _setWrapToString=setWrapToString,WRAP_CURRY_BOUND_FLAG$1=4,WRAP_CURRY_FLAG$4=8,WRAP_PARTIAL_FLAG$1=32,WRAP_PARTIAL_RIGHT_FLAG$1=64;function createRecurry(e,t,r,n,o,a,i,s,u,c){var l=t&WRAP_CURRY_FLAG$4;t|=l?WRAP_PARTIAL_FLAG$1:WRAP_PARTIAL_RIGHT_FLAG$1,(t&=~(l?WRAP_PARTIAL_RIGHT_FLAG$1:WRAP_PARTIAL_FLAG$1))&WRAP_CURRY_BOUND_FLAG$1||(t&=-4);var p=[e,t,o,l?a:void 0,l?i:void 0,l?void 0:a,l?void 0:i,s,u,c],f=r.apply(void 0,p);return _isLaziable(e)&&_setData(f,p),f.placeholder=n,_setWrapToString(f,e,t)}var _createRecurry=createRecurry;function getHolder(e){return e.placeholder}var _getHolder=getHolder,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex,nativeMin$1=Math.min;function reorder(e,t){for(var r=e.length,n=nativeMin$1(t.length,r),o=_copyArray(e);n--;){var a=t[n];e[n]=_isIndex(a,r)?o[a]:void 0}return e}var _reorder=reorder,PLACEHOLDER$1="__lodash_placeholder__";function replaceHolders(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r];i!==t&&i!==PLACEHOLDER$1||(e[r]=PLACEHOLDER$1,a[o++]=r)}return a}var _replaceHolders=replaceHolders,WRAP_BIND_FLAG$3=1,WRAP_BIND_KEY_FLAG$2=2,WRAP_CURRY_FLAG$3=8,WRAP_CURRY_RIGHT_FLAG$1=16,WRAP_ARY_FLAG$2=128,WRAP_FLIP_FLAG=512;function createHybrid(e,t,r,n,o,a,i,s,u,c){var l=t&WRAP_ARY_FLAG$2,p=t&WRAP_BIND_FLAG$3,f=t&WRAP_BIND_KEY_FLAG$2,h=t&(WRAP_CURRY_FLAG$3|WRAP_CURRY_RIGHT_FLAG$1),d=t&WRAP_FLIP_FLAG,g=f?void 0:_createCtor(e);return function m(){for(var y=arguments.length,_=Array(y),b=y;b--;)_[b]=arguments[b];if(h)var v=_getHolder(m),A=_countHolders(_,v);if(n&&(_=_composeArgs(_,n,o,h)),a&&(_=_composeArgsRight(_,a,i,h)),y-=A,h&&y<c){var S=_replaceHolders(_,v);return _createRecurry(e,t,createHybrid,m.placeholder,r,_,S,s,u,c-y)}var $=p?r:this,C=f?$[e]:e;return y=_.length,s?_=_reorder(_,s):d&&y>1&&_.reverse(),l&&u<y&&(_.length=u),this&&this!==_root&&this instanceof m&&(C=g||_createCtor(C)),C.apply($,_)}}var _createHybrid=createHybrid;function createCurry(e,t,r){var n=_createCtor(e);return function o(){for(var a=arguments.length,i=Array(a),s=a,u=_getHolder(o);s--;)i[s]=arguments[s];var c=a<3&&i[0]!==u&&i[a-1]!==u?[]:_replaceHolders(i,u);return(a-=c.length)<r?_createRecurry(e,t,_createHybrid,o.placeholder,void 0,i,c,void 0,void 0,r-a):_apply(this&&this!==_root&&this instanceof o?n:e,this,i)}}var _createCurry=createCurry,WRAP_BIND_FLAG$2=1;function createPartial(e,t,r,n){var o=t&WRAP_BIND_FLAG$2,a=_createCtor(e);return function t(){for(var i=-1,s=arguments.length,u=-1,c=n.length,l=Array(c+s),p=this&&this!==_root&&this instanceof t?a:e;++u<c;)l[u]=n[u];for(;s--;)l[u++]=arguments[++i];return _apply(p,o?r:this,l)}}var _createPartial=createPartial,PLACEHOLDER="__lodash_placeholder__",WRAP_BIND_FLAG$1=1,WRAP_BIND_KEY_FLAG$1=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG$2=8,WRAP_ARY_FLAG$1=128,WRAP_REARG_FLAG$1=256,nativeMin=Math.min;function mergeData(e,t){var r=e[1],n=t[1],o=r|n,a=o<(WRAP_BIND_FLAG$1|WRAP_BIND_KEY_FLAG$1|WRAP_ARY_FLAG$1),i=n==WRAP_ARY_FLAG$1&&r==WRAP_CURRY_FLAG$2||n==WRAP_ARY_FLAG$1&&r==WRAP_REARG_FLAG$1&&e[7].length<=t[8]||n==(WRAP_ARY_FLAG$1|WRAP_REARG_FLAG$1)&&t[7].length<=t[8]&&r==WRAP_CURRY_FLAG$2;if(!a&&!i)return e;n&WRAP_BIND_FLAG$1&&(e[2]=t[2],o|=r&WRAP_BIND_FLAG$1?0:WRAP_CURRY_BOUND_FLAG);var s=t[3];if(s){var u=e[3];e[3]=u?_composeArgs(u,s,t[4]):s,e[4]=u?_replaceHolders(e[3],PLACEHOLDER):t[4]}return(s=t[5])&&(u=e[5],e[5]=u?_composeArgsRight(u,s,t[6]):s,e[6]=u?_replaceHolders(e[5],PLACEHOLDER):t[6]),(s=t[7])&&(e[7]=s),n&WRAP_ARY_FLAG$1&&(e[8]=null==e[8]?t[8]:nativeMin(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var _mergeData=mergeData,reWhitespace=/\s/;function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim(e){return e?e.slice(0,_trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim,symbolTag$3="[object Symbol]";function isSymbol(e){return"symbol"==typeof e||isObjectLike_1(e)&&_baseGetTag(e)==symbolTag$3}var isSymbol_1=isSymbol,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if("number"==typeof e)return e;if(isSymbol_1(e))return NAN;if(isObject_1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject_1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){return e?(e=toNumber_1(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite;function toInteger(e){var t=toFinite_1(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger,FUNC_ERROR_TEXT$1="Expected a function",WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_FLAG$1=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,nativeMax$1=Math.max;function createWrap(e,t,r,n,o,a,i,s){var u=t&WRAP_BIND_KEY_FLAG;if(!u&&"function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);var c=n?n.length:0;if(c||(t&=-97,n=o=void 0),i=void 0===i?i:nativeMax$1(toInteger_1(i),0),s=void 0===s?s:toInteger_1(s),c-=o?o.length:0,t&WRAP_PARTIAL_RIGHT_FLAG){var l=n,p=o;n=o=void 0}var f=u?void 0:_getData(e),h=[e,t,r,n,o,l,p,a,i,s];if(f&&_mergeData(h,f),e=h[0],t=h[1],r=h[2],n=h[3],o=h[4],!(s=h[9]=void 0===h[9]?u?0:e.length:nativeMax$1(h[9]-c,0))&&t&(WRAP_CURRY_FLAG$1|WRAP_CURRY_RIGHT_FLAG)&&(t&=-25),t&&t!=WRAP_BIND_FLAG)d=t==WRAP_CURRY_FLAG$1||t==WRAP_CURRY_RIGHT_FLAG?_createCurry(e,t,s):t!=WRAP_PARTIAL_FLAG&&t!=(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG)||o.length?_createHybrid.apply(void 0,h):_createPartial(e,t,r,n);else var d=_createBind(e,t,r);return _setWrapToString((f?_baseSetData:_setData)(d,h),e,t)}var _createWrap=createWrap,WRAP_ARY_FLAG=128;function ary(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,_createWrap(e,WRAP_ARY_FLAG,void 0,void 0,void 0,void 0,t)}var ary_1=ary;function baseAssignValue(e,t,r){"__proto__"==t&&_defineProperty?_defineProperty(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var _baseAssignValue=baseAssignValue;function eq(e,t){return e===t||e!=e&&t!=t}var eq_1=eq,objectProto$c=Object.prototype,hasOwnProperty$a=objectProto$c.hasOwnProperty;function assignValue(e,t,r){var n=e[t];hasOwnProperty$a.call(e,t)&&eq_1(n,r)&&(void 0!==r||t in e)||_baseAssignValue(e,t,r)}var _assignValue=assignValue;function copyObject(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?_baseAssignValue(r,s,u):_assignValue(r,s,u)}return r}var _copyObject=copyObject;function baseTimes(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var _baseTimes=baseTimes,argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$3}var _baseIsArguments=baseIsArguments,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable,isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$9.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments;function stubFalse(){return!1}var stubFalse_1=stubFalse,isBuffer_1=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?_root.Buffer:void 0,a=(o?o.isBuffer:void 0)||stubFalse_1;e.exports=a}),MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$3="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$3="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$3]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$3]=!1;var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(t){return e(t)}}var _baseUnary=baseUnary,_nodeUtil=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&_freeGlobal.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}),nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray,isTypedArray_1=isTypedArray,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray_1(e),n=!r&&isArguments_1(e),o=!r&&!n&&isBuffer_1(e),a=!r&&!n&&!o&&isTypedArray_1(e),i=r||n||o||a,s=i?_baseTimes(e.length,String):[],u=s.length;for(var c in e)!t&&!hasOwnProperty$8.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_isIndex(c,u))||s.push(c);return s}var _arrayLikeKeys=arrayLikeKeys,objectProto$9=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$9)}var _isPrototype=isPrototype;function overArg(e,t){return function(r){return e(t(r))}}var _overArg=overArg,nativeKeys=_overArg(Object.keys,Object),_nativeKeys=nativeKeys,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function baseKeys(e){if(!_isPrototype(e))return _nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$7.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys;function isArrayLike(e){return null!=e&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function keys(e){return isArrayLike_1(e)?_arrayLikeKeys(e):_baseKeys(e)}var keys_1=keys;function baseAssign(e,t){return e&&_copyObject(t,keys_1(t),e)}var _baseAssign=baseAssign;function listCacheClear(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear;function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq_1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=_assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=_assocIndexOf(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,t){var r=this.__data__,n=_assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _listCacheSet=listCacheSet;function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=_listCacheClear,ListCache.prototype.delete=_listCacheDelete,ListCache.prototype.get=_listCacheGet,ListCache.prototype.has=_listCacheHas,ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache,this.size=0}var _stackClear=stackClear;function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas,Map$1=_getNative(_root,"Map"),_Map=Map$1,nativeCreate=_getNative(Object,"create"),_nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{},this.size=0}var _hashClear=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet(e){var t=this.__data__;if(_nativeCreate){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$6.call(t,e)?t[e]:void 0}var _hashGet=hashGet,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas(e){var t=this.__data__;return _nativeCreate?void 0!==t[e]:hasOwnProperty$5.call(t,e)}var _hashHas=hashHas,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet;function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=_hashClear,Hash.prototype.delete=_hashDelete,Hash.prototype.get=_hashGet,Hash.prototype.has=_hashHas,Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0,this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable;function getMapData(e,t){var r=e.__data__;return _isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData;function mapCacheDelete(e){var t=_getMapData(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,t){var r=_getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _mapCacheSet=mapCacheSet;function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=_mapCacheClear,MapCache.prototype.delete=_mapCacheDelete,MapCache.prototype.get=_mapCacheGet,MapCache.prototype.has=_mapCacheHas,MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache,LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof _ListCache){var n=r.__data__;if(!_Map||n.length<LARGE_ARRAY_SIZE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new _MapCache(n)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet;function Stack(e){var t=this.__data__=new _ListCache(e);this.size=t.size}Stack.prototype.clear=_stackClear,Stack.prototype.delete=_stackDelete,Stack.prototype.get=_stackGet,Stack.prototype.has=_stackHas,Stack.prototype.set=_stackSet;var _Stack=Stack;function nativeKeysIn(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var _nativeKeysIn=nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeysIn(e){if(!isObject_1(e))return _nativeKeysIn(e);var t=_isPrototype(e),r=[];for(var n in e)("constructor"!=n||!t&&hasOwnProperty$4.call(e,n))&&r.push(n);return r}var _baseKeysIn=baseKeysIn;function keysIn(e){return isArrayLike_1(e)?_arrayLikeKeys(e,!0):_baseKeysIn(e)}var keysIn_1=keysIn;function baseAssignIn(e,t){return e&&_copyObject(t,keysIn_1(t),e)}var _baseAssignIn=baseAssignIn,_cloneBuffer=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?_root.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});function arrayFilter(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var _arrayFilter=arrayFilter;function stubArray(){return[]}var stubArray_1=stubArray,objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return null==e?[]:(e=Object(e),_arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray_1,_getSymbols=getSymbols;function copySymbols(e,t){return _copyObject(e,_getSymbols(e),t)}var _copySymbols=copySymbols;function arrayPush(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var _arrayPush=arrayPush,getPrototype=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)_arrayPush(t,_getSymbols(e)),e=_getPrototype(e);return t}:stubArray_1,_getSymbolsIn=getSymbolsIn;function copySymbolsIn(e,t){return _copyObject(e,_getSymbolsIn(e),t)}var _copySymbolsIn=copySymbolsIn;function baseGetAllKeys(e,t,r){var n=t(e);return isArray_1(e)?n:_arrayPush(n,r(e))}var _baseGetAllKeys=baseGetAllKeys;function getAllKeys(e){return _baseGetAllKeys(e,keys_1,_getSymbols)}var _getAllKeys=getAllKeys;function getAllKeysIn(e){return _baseGetAllKeys(e,keysIn_1,_getSymbolsIn)}var _getAllKeysIn=getAllKeysIn,DataView=_getNative(_root,"DataView"),_DataView=DataView,Promise$1=_getNative(_root,"Promise"),_Promise=Promise$1,Set$1=_getNative(_root,"Set"),_Set=Set$1,mapTag$4="[object Map]",objectTag$3="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$2="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=_toSource(_DataView),mapCtorString=_toSource(_Map),promiseCtorString=_toSource(_Promise),setCtorString=_toSource(_Set),weakMapCtorString=_toSource(_WeakMap),getTag=_baseGetTag;(_DataView&&getTag(new _DataView(new ArrayBuffer(1)))!=dataViewTag$3||_Map&&getTag(new _Map)!=mapTag$4||_Promise&&getTag(_Promise.resolve())!=promiseTag||_Set&&getTag(new _Set)!=setTag$4||_WeakMap&&getTag(new _WeakMap)!=weakMapTag$2)&&(getTag=function(e){var t=_baseGetTag(e),r=t==objectTag$3?e.constructor:void 0,n=r?_toSource(r):"";if(n)switch(n){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$2}return t});var _getTag=getTag,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function initCloneArray(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$3.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var _initCloneArray=initCloneArray,Uint8Array$1=_root.Uint8Array,_Uint8Array=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new _Uint8Array(t).set(new _Uint8Array(e)),t}var _cloneArrayBuffer=cloneArrayBuffer;function cloneDataView(e,t){var r=t?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView,reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp,symbolProto$2=_Symbol?_Symbol.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}var _cloneSymbol=cloneSymbol;function cloneTypedArray(e,t){var r=t?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray,boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case arrayBufferTag$2:return _cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new n(+e);case dataViewTag$2:return _cloneDataView(e,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return _cloneTypedArray(e,r);case mapTag$3:return new n;case numberTag$2:case stringTag$2:return new n(e);case regexpTag$2:return _cloneRegExp(e);case setTag$3:return new n;case symbolTag$2:return _cloneSymbol(e)}}var _initCloneByTag=initCloneByTag;function initCloneObject(e){return"function"!=typeof e.constructor||_isPrototype(e)?{}:_baseCreate(_getPrototype(e))}var _initCloneObject=initCloneObject,mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike_1(e)&&_getTag(e)==mapTag$2}var _baseIsMap=baseIsMap,nodeIsMap=_nodeUtil&&_nodeUtil.isMap,isMap=nodeIsMap?_baseUnary(nodeIsMap):_baseIsMap,isMap_1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike_1(e)&&_getTag(e)==setTag$2}var _baseIsSet=baseIsSet,nodeIsSet=_nodeUtil&&_nodeUtil.isSet,isSet=nodeIsSet?_baseUnary(nodeIsSet):_baseIsSet,isSet_1=isSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$2="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone(e,t,r,n,o,a){var i,s=t&CLONE_DEEP_FLAG$2,u=t&CLONE_FLAT_FLAG,c=t&CLONE_SYMBOLS_FLAG$2;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!isObject_1(e))return e;var l=isArray_1(e);if(l){if(i=_initCloneArray(e),!s)return _copyArray(e,i)}else{var p=_getTag(e),f=p==funcTag||p==genTag;if(isBuffer_1(e))return _cloneBuffer(e,s);if(p==objectTag$2||p==argsTag$1||f&&!o){if(i=u||f?{}:_initCloneObject(e),!s)return u?_copySymbolsIn(e,_baseAssignIn(i,e)):_copySymbols(e,_baseAssign(i,e))}else{if(!cloneableTags[p])return o?e:{};i=_initCloneByTag(e,p,s)}}a||(a=new _Stack);var h=a.get(e);if(h)return h;a.set(e,i),isSet_1(e)?e.forEach(function(n){i.add(baseClone(n,t,r,n,e,a))}):isMap_1(e)&&e.forEach(function(n,o){i.set(o,baseClone(n,t,r,o,e,a))});var d=l?void 0:(c?u?_getAllKeysIn:_getAllKeys:u?keysIn_1:keys_1)(e);return _arrayEach(d||e,function(n,o){d&&(n=e[o=n]),_assignValue(i,o,baseClone(n,t,r,o,e,a))}),i}cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$2]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag$2]=cloneableTags[funcTag]=cloneableTags[weakMapTag$1]=!1;var _baseClone=baseClone,CLONE_SYMBOLS_FLAG$1=4;function clone(e){return _baseClone(e,CLONE_SYMBOLS_FLAG$1)}var clone_1=clone,WRAP_CURRY_FLAG=8;function curry(e,t,r){var n=_createWrap(e,WRAP_CURRY_FLAG,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=curry.placeholder,n}curry.placeholder={};var curry_1=curry,objectTag$1="[object Object]",funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(e){if(!isObjectLike_1(e)||_baseGetTag(e)!=objectTag$1)return!1;var t=_getPrototype(e);if(null===t)return!0;var r=hasOwnProperty$2.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&funcToString.call(r)==objectCtorString}var isPlainObject_1=isPlainObject,domExcTag="[object DOMException]",errorTag$1="[object Error]";function isError(e){if(!isObjectLike_1(e))return!1;var t=_baseGetTag(e);return t==errorTag$1||t==domExcTag||"string"==typeof e.message&&"string"==typeof e.name&&!isPlainObject_1(e)}var isError_1=isError,weakMapTag="[object WeakMap]";function isWeakMap(e){return isObjectLike_1(e)&&_getTag(e)==weakMapTag}var isWeakMap_1=isWeakMap,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd;function setCacheHas(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas;function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new _MapCache;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=_setCacheAdd,SetCache.prototype.has=_setCacheHas;var _SetCache=SetCache;function arraySome(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome;function cacheHas(e,t){return e.has(t)}var _cacheHas=cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(e,t,r,n,o,a){var i=r&COMPARE_PARTIAL_FLAG$5,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var p=-1,f=!0,h=r&COMPARE_UNORDERED_FLAG$3?new _SetCache:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var d=e[p],g=t[p];if(n)var m=i?n(g,d,p,t,e,a):n(d,g,p,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!_arraySome(t,function(e,t){if(!_cacheHas(h,t)&&(d===e||o(d,e,r,n,a)))return h.push(t)})){f=!1;break}}else if(d!==g&&!o(d,g,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var _equalArrays=equalArrays;function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}var _mapToArray=mapToArray;function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var _setToArray=setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$1=_Symbol?_Symbol.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag(e,t,r,n,o,a,i){switch(r){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!a(new _Uint8Array(e),new _Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq_1(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var s=_mapToArray;case setTag:var u=n&COMPARE_PARTIAL_FLAG$4;if(s||(s=_setToArray),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=COMPARE_UNORDERED_FLAG$2,i.set(e,t);var l=_equalArrays(s(e),s(t),n,o,a,i);return i.delete(e),l;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,n,o,a){var i=r&COMPARE_PARTIAL_FLAG$3,s=_getAllKeys(e),u=s.length;if(u!=_getAllKeys(t).length&&!i)return!1;for(var c=u;c--;){var l=s[c];if(!(i?l in t:hasOwnProperty$1.call(t,l)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var d=i;++c<u;){var g=e[l=s[c]],m=t[l];if(n)var y=i?n(m,g,l,t,e,a):n(g,m,l,e,t,a);if(!(void 0===y?g===m||o(g,m,r,n,a):y)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}var _equalObjects=equalObjects,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,n,o,a){var i=isArray_1(e),s=isArray_1(t),u=i?arrayTag:_getTag(e),c=s?arrayTag:_getTag(t),l=(u=u==argsTag?objectTag:u)==objectTag,p=(c=c==argsTag?objectTag:c)==objectTag,f=u==c;if(f&&isBuffer_1(e)){if(!isBuffer_1(t))return!1;i=!0,l=!1}if(f&&!l)return a||(a=new _Stack),i||isTypedArray_1(e)?_equalArrays(e,t,r,n,o,a):_equalByTag(e,t,u,r,n,o,a);if(!(r&COMPARE_PARTIAL_FLAG$2)){var h=l&&hasOwnProperty.call(e,"__wrapped__"),d=p&&hasOwnProperty.call(t,"__wrapped__");if(h||d){var g=h?e.value():e,m=d?t.value():t;return a||(a=new _Stack),o(g,m,r,n,a)}}return!!f&&(a||(a=new _Stack),_equalObjects(e,t,r,n,o,a))}var _baseIsEqualDeep=baseIsEqualDeep;function baseIsEqual(e,t,r,n,o){return e===t||(null==e||null==t||!isObjectLike_1(e)&&!isObjectLike_1(t)?e!=e&&t!=t:_baseIsEqualDeep(e,t,r,n,baseIsEqual,o))}var _baseIsEqual=baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=r[o])[0],c=e[u],l=s[1];if(i&&s[2]){if(void 0===c&&!(u in e))return!1}else{var p=new _Stack;if(n)var f=n(c,l,u,e,t,p);if(!(void 0===f?_baseIsEqual(l,c,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,n,p):f))return!1}}return!0}var _baseIsMatch=baseIsMatch;function isStrictComparable(e){return e==e&&!isObject_1(e)}var _isStrictComparable=isStrictComparable;function getMatchData(e){for(var t=keys_1(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,_isStrictComparable(o)]}return t}var _getMatchData=getMatchData;function matchesStrictComparable(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable;function baseMatches(e){var t=_getMatchData(e);return 1==t.length&&t[0][2]?_matchesStrictComparable(t[0][0],t[0][1]):function(r){return r===e||_baseIsMatch(r,e,t)}}var _baseMatches=baseMatches,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_1(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol_1(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey,FUNC_ERROR_TEXT="Expected a function";function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(memoize.Cache||_MapCache),r}memoize.Cache=_MapCache;var memoize_1=memoize,MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_1(e,function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e}),r=t.cache;return t}var _memoizeCapped=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=_memoizeCapped(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,function(e,r,n,o){t.push(n?o.replace(reEscapeChar,"$1"):r||e)}),t}),_stringToPath=stringToPath;function arrayMap(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var _arrayMap=arrayMap,symbolProto=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if("string"==typeof e)return e;if(isArray_1(e))return _arrayMap(e,baseToString)+"";if(isSymbol_1(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var _baseToString=baseToString;function toString(e){return null==e?"":_baseToString(e)}var toString_1=toString;function castPath(e,t){return isArray_1(e)?e:_isKey(e,t)?[e]:_stringToPath(toString_1(e))}var _castPath=castPath;function toKey(e){if("string"==typeof e||isSymbol_1(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var _toKey=toKey;function baseGet(e,t){for(var r=0,n=(t=_castPath(t,e)).length;null!=e&&r<n;)e=e[_toKey(t[r++])];return r&&r==n?e:void 0}var _baseGet=baseGet;function get(e,t,r){var n=null==e?void 0:_baseGet(e,t);return void 0===n?r:n}var get_1=get;function baseHasIn(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn;function hasPath(e,t,r){for(var n=-1,o=(t=_castPath(t,e)).length,a=!1;++n<o;){var i=_toKey(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&isLength_1(o)&&_isIndex(i,o)&&(isArray_1(e)||isArguments_1(e))}var _hasPath=hasPath;function hasIn(e,t){return null!=e&&_hasPath(e,t,_baseHasIn)}var hasIn_1=hasIn,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,t){return _isKey(e)&&_isStrictComparable(t)?_matchesStrictComparable(_toKey(e),t):function(r){var n=get_1(r,e);return void 0===n&&n===t?hasIn_1(r,e):_baseIsEqual(t,n,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty;function baseProperty(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty;function basePropertyDeep(e){return function(t){return _baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep;function property(e){return _isKey(e)?_baseProperty(_toKey(e)):_basePropertyDeep(e)}var property_1=property;function baseIteratee(e){return"function"==typeof e?e:null==e?identity_1:"object"==typeof e?isArray_1(e)?_baseMatchesProperty(e[0],e[1]):_baseMatches(e):property_1(e)}var _baseIteratee=baseIteratee,CLONE_DEEP_FLAG$1=1;function iteratee(e){return _baseIteratee("function"==typeof e?e:_baseClone(e,CLONE_DEEP_FLAG$1))}var iteratee_1=iteratee,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray_1(e)||isArguments_1(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable;function baseFlatten(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=_isFlattenable),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?baseFlatten(s,t-1,r,n,o):_arrayPush(o,s):n||(o[o.length]=s)}return o}var _baseFlatten=baseFlatten;function flatten(e){return(null==e?0:e.length)?_baseFlatten(e,1):[]}var flatten_1=flatten,nativeMax=Math.max;function overRest(e,t,r){return t=nativeMax(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=nativeMax(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),_apply(e,this,s)}}var _overRest=overRest;function flatRest(e){return _setToString(_overRest(e,void 0,flatten_1),e+"")}var _flatRest=flatRest,WRAP_REARG_FLAG=256,rearg=_flatRest(function(e,t){return _createWrap(e,WRAP_REARG_FLAG,void 0,void 0,void 0,t)}),rearg_1=rearg;function toPath(e){return isArray_1(e)?_arrayMap(e,_toKey):isSymbol_1(e)?[e]:_copyArray(_stringToPath(toString_1(e)))}var toPath_1=toPath,_util={ary:ary_1,assign:_baseAssign,clone:clone_1,curry:curry_1,forEach:_arrayEach,isArray:isArray_1,isError:isError_1,isFunction:isFunction_1,isWeakMap:isWeakMap_1,iteratee:iteratee_1,keys:_baseKeys,rearg:rearg_1,toInteger:toInteger_1,toPath:toPath_1};function convert(e,t,r){return _baseConvert(_util,e,t,r)}var convert_1=convert,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep$1(e){return _baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep$1,_falseOptions={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1},func=convert_1("cloneDeep",cloneDeep_1,_falseOptions);func.placeholder=placeholder;var cloneDeep=func;let runJS;const setJSRunner=e=>runJS=e,removeJSRunner=()=>{runJS=void 0};let onErrorLog;const setOnErrorLog=e=>onErrorLog=e,removeSquareBrackets=e=>{if(!e||"string"!=typeof e)return e;const t=e.match(/\[+(.+)]+/);return t&&t[1]?t[1]:e},isReservedKey=e=>"snippets"===e||"helpers"===e||e.startsWith("snippets.")||e.startsWith("helpers."),getContextValue=(e,t)=>{if(isReservedKey(e))return;let r=t;return/^(["'`]).*\1$/.test(e)?e.substring(1,e.length-1):(e.split(".").forEach(e=>{if(null==r||"object"!=typeof r)return null;r=r[removeSquareBrackets(e)]}),r)};function processJS(handlebars,context){if(!isJSAllowed()||!runJS)throw new Error("JS disabled in environment.");try{const js=iifeWrapper(atob(handlebars));let snippetMap={},snippetCache={},clonedContext;for(let e of context.snippets||[])snippetMap[e.name]=e.code;clonedContext=isBackendService()?context:cloneDeep(context);const sandboxContext={$:e=>getContextValue(e,clonedContext),helpers:getJsHelperList(),snippets:new Proxy({},{get:function(_,name){return name in snippetCache||(snippetCache[name]=eval(iifeWrapper(snippetMap[name]))),snippetCache[name]}})},logs=[];if(!isBackendService()){const e=frontendWrapJS(js).split(js)[0].split("\n").length,t=t=>(...r)=>{var n,o;isTest()||console[t](...r),r.forEach((e,t)=>{"object"==typeof e&&(r[t]=JSON.stringify(e))});const a=null===(o=null===(n=(new Error).stack)||void 0===n?void 0:n.match(/<anonymous>:(\d+):\d+/))||void 0===o?void 0:o[1];logs.push({log:r,line:a?parseInt(a)-e:void 0,type:t})};sandboxContext.console={log:t("log"),info:t("info"),debug:t("debug"),warn:t("warn"),error:t("error"),table:t("table")}}const res={data:runJS(js,sandboxContext),logs:logs};return`{{${LITERAL_MARKER} js_result-${JSON.stringify(res)}}}`}catch(e){onErrorLog&&onErrorLog(e);const{noThrow:t=!0}=context.__opts||{};if("ERR_SCRIPT_EXECUTION_TIMEOUT"===e.code)return"Timed out while executing JS";if("JS_REQUEST_TIMEOUT_ERROR"===e.code)return e.message;if(e.code===JsTimeoutError.code)return JsTimeoutError.message;if(e.code===UserScriptError.code){if(t)return e.userScriptError.toString();throw e}if("SyntaxError"===e.name){if(t)return e.toString();throw e}return"Error while executing JS"}}const HTML_SWAPS={"<":"<",">":">"};function isObject(e){return null!=e&&"object"==typeof e&&("[object Object]"===e.toString()||e.length>0&&"object"==typeof e[0])}const HELPERS=[new Helper(HelperFunctionNames.OBJECT,e=>new Handlebars.SafeString(JSON.stringify(e))),new Helper(HelperFunctionNames.JS,processJS,!1),new Helper(HelperFunctionNames.DECODE_ID,e=>{if(!e)return[];const t="string"==typeof e?e:e._id,r=decodeURIComponent(t).replace(/'/g,'"');try{const e=JSON.parse(r);return Array.isArray(e)?e:[e]}catch(t){return[e]}}),new Helper(HelperFunctionNames.ALL,(e,t)=>{const{__opts:r}=t;if(isObject(e))return new Handlebars.SafeString(JSON.stringify(e));if(r&&r.onlyFound&&null==e)return r.input;if(null==e||"string"!=typeof e)return null==e?"":e;e&&e.string&&(e=e.string);let n=e;return r&&r.escapeNewlines&&(n=e.replace(/\n/g,"\\n")),n=new Handlebars.SafeString(n.replace(/&/g,"&")),null==n||"string"!=typeof n?n:n.replace(/[<>]/g,e=>HTML_SWAPS[e]||e)}),new Helper(HelperFunctionNames.LITERAL,e=>{if(void 0===e)return"";const t=typeof e,r="object"===t?JSON.stringify(e):e;return`{{${LITERAL_MARKER} ${t}-${r}}}`})];function HelperNames(){return Object.values(HelperFunctionNames).concat(HelperFunctionBuiltin,externalHelperNames)}function registerMinimum(e){for(let t of HELPERS)t.register(e)}function registerAll(e){registerMinimum(e),registerAll$1(e)}const FUNCTION_CASES=["#","else","/"];var PreprocessorNames;!function(e){e.SWAP_TO_DOT="swap-to-dot-notation",e.FIX_FUNCTIONS="fix-functions",e.FINALISE="finalise",e.NORMALIZE_SPACES="normalize-spaces"}(PreprocessorNames||(PreprocessorNames={}));class Preprocessor{constructor(e,t){this.name=e,this.fn=t}process(e,t,r){const n=this.fn(t,r),o=e.indexOf(t);return swapStrings(e,o,t.length,n)}}const processors$1=[new Preprocessor(PreprocessorNames.SWAP_TO_DOT,e=>{let t=e.indexOf("["),r=0;for(;-1!==t;){isAlphaNumeric(e.charAt(t-1))&&(e=swapStrings(e,t+r,1,".[")),r=t+1;const n=e.substring(r+1).indexOf("[");t=n>0?r+1+n:-1}return e}),new Preprocessor(PreprocessorNames.FIX_FUNCTIONS,e=>{for(let t of FUNCTION_CASES){const r=`{ ${t}`,n=`{${t}`;e=e.replace(new RegExp(r,"g"),n)}return e}),new Preprocessor(PreprocessorNames.NORMALIZE_SPACES,e=>e.replace(/{{(\s{2,})/g,"{{ ")),new Preprocessor(PreprocessorNames.FINALISE,(e,t)=>{var r;const n=!(null==t?void 0:t.noHelpers);let o=e.slice(2,e.length-2);" "===o.charAt(0)&&(o=o.slice(1))," "===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1));const a=o.split(" ")[0];for(let t of FUNCTION_CASES)if(a.includes(t))return e;const i=a.trim().toLowerCase();return n&&!(null===(r=null==t?void 0:t.disabledHelpers)||void 0===r?void 0:r.includes(i))&&HelperNames().some(e=>i===e.toLowerCase())&&(o=`(${o})`),`{{ all ${o} }}`})];var PostProcessorNames;!function(e){e.CONVERT_LITERALS="convert-literals"}(PostProcessorNames||(PostProcessorNames={}));class Postprocessor{constructor(e,t){this.name=e,this.fn=t}process(e){return this.fn(e)}}const processors=[new Postprocessor(PostProcessorNames.CONVERT_LITERALS,e=>{if("string"!=typeof e||!e.includes(LITERAL_MARKER))return{result:e};const t=e.indexOf("-"),r=e.substring(12,t),n=e.substring(t+1,e.length-2);switch(r){case"string":return{result:n};case"number":return{result:parseFloat(n)};case"boolean":return{result:"true"===n};case"object":return{result:JSON.parse(n)};case"js_result":{const e=JSON.parse(n);return{result:e.data,logs:e.logs}}}return{result:n}})];function process(e,t,r){let n=[];for(let o of t){if("string"!=typeof e)break;let t=new RegExp(FIND_HBS_REGEX),a=e.match(t);if(null!=a)for(let t of a){const a=o.process(e,t,r||{});"object"==typeof a?("logs"in a&&a.logs&&(n=n.concat(a.logs)),e=a.result):e=a}}return{result:e,logs:n}}function preprocess(e,t){let r=processors$1;return t.noFinalise&&(r=r.filter(e=>e.name!==PreprocessorNames.FINALISE)),process(e,r,t).result}function postprocess(e){return process(e,processors).result}function postprocessWithLogs(e){return process(e,processors)}function getLayers(e){let t=[];for(;e.length;){const r=e.lastIndexOf("("),n=e.indexOf(")");let o;if(-1===r||-1===n)o=e.trim(),e="";else{const t=e.substring(r,n+1);o=t.substring(1,t.length-1).trim(),e=e.slice(0,r)+e.slice(r+t.length+1,e.length)}t.push(o)}return t}function getVariable(e){if(!e||"string"!=typeof e)return e;let t=!1;return[",","{",":"].forEach(r=>{e.includes(r)&&(t=!0)}),e.startsWith("[")&&t?e:isNaN(parseFloat(e))?e.startsWith("'")||e.startsWith('"')?e:`$("${e}")`:e}function buildList(e,t){function r(){return e.map(e=>e.startsWith("helper")?e:getVariable(e)).join(", ")}return t?0===e.length?t:`${r()}, ${t}`:e.length>1?`${r()}`:r()}function splitBySpace(e){const t=[];let r=null,n=null,o=0;function a(e){const r=["]"];for(;-1!==r.indexOf(e.substring(0,1));)e=e.substring(1,e.length);e.length>0&&t.push(e.trim())}const i=["[","'",'"'];for(let t=0;t<e.length;t++){const s=e[t];-1!==i.indexOf(s)&&null==r?(r=t,n="["===s?"]":s):s===n&&null!=r&&"."!==e[t+1]?(a(e.substring(r,t+1)),r=null,n=null,o=t+1):null==r&&" "===s&&(a(e.substring(o,t)),o=t)}return e.startsWith("[")&&0!==t.length||o===e.length-1||a(e.substring(o,e.length)),t}function convertHBSBlock(e,t){const r="{"===e[2]?3:2,n=getLayers(e=e.substring(r,e.length-r).trim());let o=null;const a=getJsHelperList();for(let e of n){const t=splitBySpace(e);if(o||t.length>1||a[t[0]]){const[e]=t.splice(0,1);a[e]&&(o=`helpers.${e}(${buildList(t,o)})`)}else o=getVariable(t[0])}return{variable:`var${t}`,value:o}}var math={abs:{args:["a"],example:"{{ abs 12012.1000 }} -> 12012.1",description:"<p>Return the magnitude of <code>a</code>.</p>\n",requiresBlock:!1},add:{args:["a","b"],example:"{{ add 1 2 }} -> 3",description:"<p>Return the sum of <code>a</code> plus <code>b</code>.</p>\n",requiresBlock:!1},avg:{args:["array"],example:"{{ avg 1 2 3 4 5 }} -> 3",description:"<p>Returns the average of all numbers in the given array.</p>\n",requiresBlock:!1},ceil:{args:["value"],example:"{{ ceil 1.2 }} -> 2",description:"<p>Get the <code>Math.ceil()</code> of the given value.</p>\n",requiresBlock:!1},divide:{args:["a","b"],example:"{{ divide 10 5 }} -> 2",description:"<p>Divide <code>a</code> by <code>b</code></p>\n",requiresBlock:!1},floor:{args:["value"],example:"{{ floor 1.2 }} -> 1",description:"<p>Get the <code>Math.floor()</code> of the given value.</p>\n",requiresBlock:!1},minus:{args:["a","b"],example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n",requiresBlock:!1},modulo:{args:["a","b"],example:"{{ modulo 10 5 }} -> 0",description:"<p>Get the remainder of a division operation.</p>\n",requiresBlock:!1},multiply:{args:["a","b"],example:"{{ multiply 10 5 }} -> 50",description:"<p>Multiply number <code>a</code> by number <code>b</code>.</p>\n",requiresBlock:!1},plus:{args:["a","b"],example:"{{ plus 10 5 }} -> 15",description:"<p>Add <code>a</code> by <code>b</code>.</p>\n",requiresBlock:!1},random:{args:["min","max"],example:"{{ random 0 20 }} -> 10",description:"<p>Generate a random number between two values</p>\n",requiresBlock:!1},remainder:{args:["a","b"],example:"{{ remainder 10 6 }} -> 4",description:"<p>Get the remainder when <code>a</code> is divided by <code>b</code>.</p>\n",requiresBlock:!1},round:{args:["number"],example:"{{ round 10.3 }} -> 10",description:"<p>Round the given number.</p>\n",requiresBlock:!1},subtract:{args:["a","b"],example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n",requiresBlock:!1},sum:{args:["array"],example:"{{ sum [1, 2, 3] }} -> 6",description:"<p>Returns the sum of all numbers in the given array.</p>\n",requiresBlock:!1}},array={after:{args:["array","n"],example:"{{ after ['a', 'b', 'c', 'd'] 2}} -> ['c', 'd']",description:'<p>Returns all of the items in an array after the specified index. Opposite of <a href="#before">before</a>.</p>\n',requiresBlock:!1},arrayify:{args:["value"],example:"{{ arrayify 'foo' }} -> ['foo']",description:"<p>Cast the given <code>value</code> to an array.</p>\n",requiresBlock:!1},before:{args:["array","n"],example:"{{ before ['a', 'b', 'c', 'd'] 3}} -> ['a', 'b']",description:'<p>Return all of the items in the collection before the specified count. Opposite of <a href="#after">after</a>.</p>\n',requiresBlock:!1},eachIndex:{args:["array","options"],example:"{{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}} -> ' 1 is 0 2 is 1 3 is 2 '",description:"<p>Iterates the array, listing an item and the index of it.</p>\n",requiresBlock:!0},filter:{args:["array","value","options"],example:"{{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}} -> 2 Found",description:"<p>Block helper that filters the given array and renders the block for values that evaluate to <code>true</code>, otherwise the inverse block is returned.</p>\n",requiresBlock:!0},first:{args:["array","n"],example:"{{first [1, 2, 3, 4] 2}} -> 1,2",description:"<p>Returns the first item, or first <code>n</code> items of an array.</p>\n",requiresBlock:!1},forEach:{args:["array","options"],example:"{{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}} -> ' John '",description:"<p>Iterates over each item in an array and exposes the current item in the array as context to the inner block. In addition to the current array item, the helper exposes the following variables to the inner block: - <code>index</code> - <code>total</code> - <code>isFirst</code> - <code>isLast</code> Also, <code>@index</code> is exposed as a private variable, and additional private variables may be defined as hash arguments.</p>\n",requiresBlock:!0},inArray:{args:["array","value","options"],example:"{{#inArray [1, 2, 3] 2}} 2 exists {{else}} 2 does not exist {{/inArray}} -> ' 2 exists '",description:"<p>Block helper that renders the block if an array has the given <code>value</code>. Optionally specify an inverse block to render when the array does not have the given value.</p>\n",requiresBlock:!0},isArray:{args:["value"],example:"{{isArray [1, 2]}} -> true",description:"<p>Returns true if <code>value</code> is an es5 array.</p>\n",requiresBlock:!1},itemAt:{args:["array","idx"],example:"{{itemAt [1, 2, 3] 1}} -> 2",description:"<p>Returns the item from <code>array</code> at index <code>idx</code>.</p>\n",requiresBlock:!1},join:{args:["array","separator"],example:"{{join [1, 2, 3]}} -> 1, 2, 3",description:"<p>Join all elements of array into a string, optionally using a given separator.</p>\n",requiresBlock:!1},equalsLength:{args:["value","length"],example:"{{equalsLength [1, 2, 3] 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n",requiresBlock:!1},last:{args:["value","n"],example:"{{last [1, 2, 3]}} -> 3",description:'<p>Returns the last item, or last <code>n</code> items of an array or string. Opposite of <a href="#first">first</a>.</p>\n',requiresBlock:!1},length:{args:["value"],example:"{{length [1, 2, 3]}} -> 3",description:"<p>Returns the length of the given string or array.</p>\n",requiresBlock:!1},lengthEqual:{args:["value","length"],example:"{{equalsLength [1, 2, 3] 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n",requiresBlock:!1},map:{args:["array","fn"],example:"{{map [1, 2, 3] double}} -> [2, 4, 6]",description:"<p>Returns a new array, created by calling <code>function</code> on each element of the given <code>array</code>. For example,</p>\n",requiresBlock:!1},pluck:{args:["collection","prop"],example:"{{pluck [{ 'name': 'Bob' }] 'name' }} -> ['Bob']",description:"<p>Map over the given object or array or objects and create an array of values from the given <code>prop</code>. Dot-notation may be used (as a string) to get nested properties.</p>\n",requiresBlock:!1},reverse:{args:["value"],example:"{{reverse [1, 2, 3]}} -> [3, 2, 1]",description:"<p>Reverse the elements in an array, or the characters in a string.</p>\n",requiresBlock:!1},some:{args:["array","iter","provided"],example:"{{#some [1, \"b\", 3] isString}} string found {{else}} No string found {{/some}} -> ' string found '",description:"<p>Block helper that returns the block if the callback returns true for some value in the given array.</p>\n",requiresBlock:!0},sort:{args:["array","key"],example:"{{ sort ['b', 'a', 'c'] }} -> ['a', 'b', 'c']",description:"<p>Sort the given <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n",requiresBlock:!1},sortBy:{args:["array","props"],example:"{{ sortBy [{'a': 'zzz'}, {'a': 'aaa'}] 'a' }} -> [{'a':'aaa'},{'a':'zzz'}]",description:"<p>Sort an <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n",requiresBlock:!1},withAfter:{args:["array","idx","options"],example:"{{#withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}} -> ' 2 3 '",description:'<p>Use the items in the array <em>after</em> the specified index as context inside a block. Opposite of <a href="#withBefore">withBefore</a>.</p>\n',requiresBlock:!0},withBefore:{args:["array","idx","options"],example:"{{#withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}} -> ' 1 '",description:'<p>Use the items in the array <em>before</em> the specified index as context inside a block. Opposite of <a href="#withAfter">withAfter</a>.</p>\n',requiresBlock:!0},withFirst:{args:["array","idx","options"],example:"{{#withFirst [1, 2, 3] }}{{this}}{{/withFirst}} -> 1",description:'<p>Use the first item in a collection inside a handlebars block expression. Opposite of <a href="#withLast">withLast</a>.</p>\n',requiresBlock:!0},withGroup:{args:["array","size","options"],example:"{{#withGroup [1, 2, 3, 4] 2}}{{#each this}}{{.}}{{/each}}<br>{{/withGroup}} -> 12<br>34<br>",description:"<p>Block helper that groups array elements by given group <code>size</code>.</p>\n",requiresBlock:!0},withLast:{args:["array","idx","options"],example:"{{#withLast [1, 2, 3, 4]}}{{this}}{{/withLast}} -> 4",description:'<p>Use the last item or <code>n</code> items in an array as context inside a block. Opposite of <a href="#withFirst">withFirst</a>.</p>\n',requiresBlock:!0},withSort:{args:["array","prop","options"],example:"{{#withSort ['b', 'a', 'c']}}{{this}}{{/withSort}} -> abc",description:"<p>Block helper that sorts a collection and exposes the sorted collection as context inside the block.</p>\n",requiresBlock:!0},unique:{args:["array","options"],example:"{{#each (unique ['a', 'a', 'c', 'b', 'e', 'e']) }}{{.}}{{/each}} -> acbe",description:'<p>Block helper that return an array with all duplicate values removed. Best used along with a <a href="#each">each</a> helper.</p>\n',requiresBlock:!0}},number={bytes:{args:["number"],example:"{{ bytes 1386 1 }} -> 1.4 kB",description:"<p>Format a number to it's equivalent in bytes. If a string is passed, it's length will be formatted and returned. <strong>Examples:</strong> - <code>'foo' => 3 B</code> - <code>13661855 => 13.66 MB</code> - <code>825399 => 825.39 kB</code> - <code>1396 => 1.4 kB</code></p>\n",requiresBlock:!1},addCommas:{args:["num"],example:"{{ addCommas 1000000 }} -> 1,000,000",description:"<p>Add commas to numbers</p>\n",requiresBlock:!1},phoneNumber:{args:["num"],example:"{{ phoneNumber 8005551212 }} -> (800) 555-1212",description:"<p>Convert a string or number to a formatted phone number.</p>\n",requiresBlock:!1},toAbbr:{args:["number","precision"],example:"{{ toAbbr 10123 2 }} -> 10.12k",description:"<p>Abbreviate numbers to the given number of <code>precision</code>. This for general numbers, not size in bytes.</p>\n",requiresBlock:!1},toExponential:{args:["number","fractionDigits"],example:"{{ toExponential 10123 2 }} -> 1.01e+4",description:"<p>Returns a string representing the given number in exponential notation.</p>\n",requiresBlock:!1},toFixed:{args:["number","digits"],example:"{{ toFixed 1.1234 2 }} -> 1.12",description:"<p>Formats the given number using fixed-point notation.</p>\n",requiresBlock:!1},toFloat:{args:["number"],description:"<p>Convert input to a float.</p>\n",requiresBlock:!1},toInt:{args:["number"],description:"<p>Convert input to an integer.</p>\n",requiresBlock:!1},toPrecision:{args:["number","precision"],example:"{{toPrecision '1.1234' 2}} -> 1.1",description:"<p>Returns a string representing the <code>Number</code> object to the specified precision.</p>\n",requiresBlock:!1}},url={encodeURI:{args:["str"],example:"{{ encodeURI 'https://myurl?Hello There' }} -> https%3A%2F%2Fmyurl%3FHello%20There",description:"<p>Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.</p>\n",requiresBlock:!1},escape:{args:["str"],example:"{{ escape 'https://myurl?Hello+There' }} -> https%3A%2F%2Fmyurl%3FHello%2BThere",description:"<p>Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.</p>\n",requiresBlock:!1},decodeURI:{args:["str"],example:"{{ decodeURI 'https://myurl?Hello%20There' }} -> https://myurl?Hello There",description:"<p>Decode a Uniform Resource Identifier (URI) component.</p>\n",requiresBlock:!1},urlResolve:{args:["base","href"],example:"{{ urlResolve 'https://myurl' '/api/test' }} -> https://myurl/api/test",description:"<p>Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.</p>\n",requiresBlock:!1},urlParse:{args:["str"],example:"{{ urlParse 'https://myurl/api/test' }}",description:"<p>Parses a <code>url</code> string into an object.</p>\n",requiresBlock:!1},stripQuerystring:{args:["url"],example:"{{ stripQuerystring 'https://myurl/api/test?foo=bar' }} -> 'https://myurl/api/test'",description:"<p>Strip the query string from the given <code>url</code>.</p>\n",requiresBlock:!1},stripProtocol:{args:["str"],example:"{{ stripProtocol 'https://myurl/api/test' }} -> '//myurl/api/test'",description:"<p>Strip protocol from a <code>url</code>. Useful for displaying media that may have an 'http' protocol on secure connections.</p>\n",requiresBlock:!1}},string={append:{args:["str","suffix"],example:"{{append 'index' '.html'}} -> index.html",description:"<p>Append the specified <code>suffix</code> to the given string.</p>\n",requiresBlock:!1},camelcase:{args:["string"],example:"{{camelcase 'foo bar baz'}} -> fooBarBaz",description:"<p>camelCase the characters in the given <code>string</code>.</p>\n",requiresBlock:!1},capitalize:{args:["str"],example:"{{capitalize 'foo bar baz'}} -> Foo bar baz",description:"<p>Capitalize the first word in a sentence.</p>\n",requiresBlock:!1},capitalizeAll:{args:["str"],example:"{{ capitalizeAll 'foo bar baz'}} -> Foo Bar Baz",description:"<p>Capitalize all words in a string.</p>\n",requiresBlock:!1},center:{args:["str","spaces"],example:"{{ center 'test' 1}} -> ' test '",description:"<p>Center a string using non-breaking spaces</p>\n",requiresBlock:!1},chop:{args:["string"],example:"{{ chop ' ABC '}} -> ABC",description:"<p>Like trim, but removes both extraneous whitespace <strong>and non-word characters</strong> from the beginning and end of a string.</p>\n",requiresBlock:!1},dashcase:{args:["string"],example:"{{dashcase 'a-b-c d_e'}} -> a-b-c-d-e",description:"<p>dash-case the characters in <code>string</code>. Replaces non-word characters and periods with hyphens.</p>\n",requiresBlock:!1},dotcase:{args:["string"],example:"{{dotcase 'a-b-c d_e'}} -> a.b.c.d.e",description:"<p>dot.case the characters in <code>string</code>.</p>\n",requiresBlock:!1},downcase:{args:["string"],example:"{{downcase 'aBcDeF'}} -> abcdef",description:'<p>Lowercase all of the characters in the given string. Alias for <a href="#lowercase">lowercase</a>.</p>\n',requiresBlock:!1},ellipsis:{args:["str","length"],example:"{{ellipsis 'foo bar baz' 7}} -> foo bar…",description:"<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n",requiresBlock:!1},hyphenate:{args:["str"],example:"{{hyphenate 'foo bar baz qux'}} -> foo-bar-baz-qux",description:"<p>Replace spaces in a string with hyphens.</p>\n",requiresBlock:!1},isString:{args:["value"],example:"{{isString 'foo'}} -> true",description:"<p>Return true if <code>value</code> is a string.</p>\n",requiresBlock:!1},lowercase:{args:["str"],example:"{{lowercase 'Foo BAR baZ'}} -> foo bar baz",description:"<p>Lowercase all characters in the given string.</p>\n",requiresBlock:!1},occurrences:{args:["str","substring"],example:"{{occurrences 'foo bar foo bar baz' 'foo'}} -> 2",description:"<p>Return the number of occurrences of <code>substring</code> within the given <code>string</code>.</p>\n",requiresBlock:!1},pascalcase:{args:["string"],example:"{{pascalcase 'foo bar baz'}} -> FooBarBaz",description:"<p>PascalCase the characters in <code>string</code>.</p>\n",requiresBlock:!1},pathcase:{args:["string"],example:"{{pathcase 'a-b-c d_e'}} -> a/b/c/d/e",description:"<p>path/case the characters in <code>string</code>.</p>\n",requiresBlock:!1},plusify:{args:["str"],example:"{{plusify 'foo bar baz'}} -> foo+bar+baz",description:"<p>Replace spaces in the given string with pluses.</p>\n",requiresBlock:!1},prepend:{args:["str","prefix"],example:"{{prepend 'bar' 'foo-'}} -> foo-bar",description:"<p>Prepends the given <code>string</code> with the specified <code>prefix</code>.</p>\n",requiresBlock:!1},remove:{args:["str","substring"],example:"{{remove 'a b a b a b' 'a '}} -> b b b",description:"<p>Remove all occurrences of <code>substring</code> from the given <code>str</code>.</p>\n",requiresBlock:!1},removeFirst:{args:["str","substring"],example:"{{removeFirst 'a b a b a b' 'a'}} -> ' b a b a b'",description:"<p>Remove the first occurrence of <code>substring</code> from the given <code>str</code>.</p>\n",requiresBlock:!1},replace:{args:["str","a","b"],example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b z b z b",description:"<p>Replace all occurrences of substring <code>a</code> with substring <code>b</code>.</p>\n",requiresBlock:!1},replaceFirst:{args:["str","a","b"],example:"{{replaceFirst 'a b a b a b' 'a' 'z'}} -> z b a b a b",description:"<p>Replace the first occurrence of substring <code>a</code> with substring <code>b</code>.</p>\n",requiresBlock:!1},sentence:{args:["str"],example:"{{sentence 'hello world. goodbye world.'}} -> Hello world. Goodbye world.",description:"<p>Sentence case the given string</p>\n",requiresBlock:!1},snakecase:{args:["string"],example:"{{snakecase 'a-b-c d_e'}} -> a_b_c_d_e",description:"<p>snake_case the characters in the given <code>string</code>.</p>\n",requiresBlock:!1},split:{args:["string"],example:"{{split 'a,b,c'}} -> ['a', 'b', 'c']",description:"<p>Split <code>string</code> by the given <code>character</code>.</p>\n",requiresBlock:!1},startsWith:{args:["prefix","testString","options"],example:"{{#startsWith 'Goodbye' 'Hello, world!'}}Yep{{else}}Nope{{/startsWith}} -> Nope",description:"<p>Tests whether a string begins with the given prefix.</p>\n",requiresBlock:!0},titleize:{args:["str"],example:"{{titleize 'this is title case' }} -> This Is Title Case",description:"<p>Title case the given string.</p>\n",requiresBlock:!1},trim:{args:["string"],example:"{{trim ' ABC ' }} -> ABC",description:"<p>Removes extraneous whitespace from the beginning and end of a string.</p>\n",requiresBlock:!1},trimLeft:{args:["string"],example:"{{trimLeft ' ABC ' }} -> 'ABC '",description:"<p>Removes extraneous whitespace from the beginning of a string.</p>\n",requiresBlock:!1},trimRight:{args:["string"],example:"{{trimRight ' ABC ' }} -> ' ABC'",description:"<p>Removes extraneous whitespace from the end of a string.</p>\n",requiresBlock:!1},truncate:{args:["str","limit","suffix"],example:"{{truncate 'foo bar baz' 7 }} -> foo bar",description:'<p>Truncate a string to the specified <code>length</code>. Also see <a href="#ellipsis">ellipsis</a>.</p>\n',requiresBlock:!1},truncateWords:{args:["str","limit","suffix"],example:"{{truncateWords 'foo bar baz' 1 }} -> foo…",description:'<p>Truncate a string to have the specified number of words. Also see <a href="#truncate">truncate</a>.</p>\n',requiresBlock:!1},upcase:{args:["string"],example:"{{upcase 'aBcDef'}} -> ABCDEF",description:'<p>Uppercase all of the characters in the given string. Alias for <a href="#uppercase">uppercase</a>.</p>\n',requiresBlock:!1},uppercase:{args:["str","options"],example:"{{uppercase 'aBcDef'}} -> ABCDEF",description:"<p>Uppercase all of the characters in the given string. If used as a block helper it will uppercase the entire block. This helper does not support inverse blocks.</p>\n",requiresBlock:!1},lorem:{args:["num"],example:"{{lorem 11}} -> Lorem ipsum",description:"<p>Takes a number and returns that many charaters of Lorem Ipsum</p>\n",requiresBlock:!1}},comparison={and:{args:["a","b","options"],example:"{{#and great magnificent}}both{{else}}no{{/and}} -> no",description:"<p>Helper that renders the block if <strong>both</strong> of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.</p>\n",requiresBlock:!0},compare:{args:["a","operator","b","options"],example:"{{compare 10 '<' 5 }} -> false",description:"<p>Render a block when a comparison of the first and third arguments returns true. The second argument is the [arithemetic operator][operators] to use. You may also optionally specify an inverse block to render when falsy.</p>\n",requiresBlock:!1},contains:{args:["collection","value","[startIndex=0]","options"],example:"{{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}} -> ' This will be rendered. '",description:"<p>Block helper that renders the block if <code>collection</code> has the given <code>value</code>, using strict equality (<code>===</code>) for comparison, otherwise the inverse block is rendered (if specified). If a <code>startIndex</code> is specified and is negative, it is used as the offset from the end of the collection.</p>\n",requiresBlock:!0},default:{args:["value","defaultValue"],example:"{{default null null 'default'}} -> default",description:"<p>Returns the first value that is not undefined, otherwise the 'default' value is returned.</p>\n",requiresBlock:!1},eq:{args:["a","b","options"],example:"{{#eq 3 3}}equal{{else}}not equal{{/eq}} -> equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},gt:{args:["a","b","options"],example:"{{#gt 4 3}} greater than{{else}} not greater than{{/gt}} -> ' greater than'",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},gte:{args:["a","b","options"],example:"{{#gte 4 3}} greater than or equal{{else}} not greater than{{/gte}} -> ' greater than or equal'",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},has:{args:["val","pattern","options"],example:"{{#has 'foobar' 'foo'}}has it{{else}}doesn't{{/has}} -> has it",description:"<p>Block helper that renders a block if <code>value</code> has <code>pattern</code>. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},isFalsey:{args:["val","options"],example:"{{isFalsey '' }} -> true",description:"<p>Returns true if the given <code>value</code> is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n",requiresBlock:!1},isTruthy:{args:["val","options"],example:"{{isTruthy '12' }} -> true",description:"<p>Returns true if the given <code>value</code> is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n",requiresBlock:!1},ifEven:{args:["number","options"],example:"{{#ifEven 2}} even {{else}} odd {{/ifEven}} -> ' even '",description:"<p>Return true if the given value is an even number.</p>\n",requiresBlock:!0},ifNth:{args:["a","b","options"],example:"{{#ifNth 2 10}}remainder{{else}}no remainder{{/ifNth}} -> remainder",description:"<p>Conditionally renders a block if the remainder is zero when <code>b</code> operand is divided by <code>a</code>. If an inverse block is specified it will be rendered when the remainder is <strong>not zero</strong>.</p>\n",requiresBlock:!0},ifOdd:{args:["value","options"],example:"{{#ifOdd 3}}odd{{else}}even{{/ifOdd}} -> odd",description:"<p>Block helper that renders a block if <code>value</code> is <strong>an odd number</strong>. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},is:{args:["a","b","options"],example:"{{#is 3 3}} is {{else}} is not {{/is}} -> ' is '",description:'<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#eq">eq</a> but does not do strict equality.</p>\n',requiresBlock:!0},isnt:{args:["a","b","options"],example:"{{#isnt 3 3}} isnt {{else}} is {{/isnt}} -> ' is '",description:'<p>Block helper that renders a block if <code>a</code> is <strong>not equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#unlesseq">unlessEq</a> but does not use strict equality for comparisons.</p>\n',requiresBlock:!0},lt:{args:["context","options"],example:"{{#lt 2 3}} less than {{else}} more than or equal {{/lt}} -> ' less than '",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},lte:{args:["a","b","options"],example:"{{#lte 2 3}} less than or equal {{else}} more than {{/lte}} -> ' less than or equal '",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},neither:{args:["a","b","options"],example:"{{#neither null null}}both falsey{{else}}both not falsey{{/neither}} -> both falsey",description:"<p>Block helper that renders a block if <strong>neither of</strong> the given values are truthy. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},not:{args:["val","options"],example:"{{#not undefined }}falsey{{else}}not falsey{{/not}} -> falsey",description:"<p>Returns true if <code>val</code> is falsey. Works as a block or inline helper.</p>\n",requiresBlock:!0},or:{args:["arguments","options"],example:"{{#or 1 2 undefined }} at least one truthy {{else}} all falsey {{/or}} -> ' at least one truthy '",description:"<p>Block helper that renders a block if <strong>any of</strong> the given values is truthy. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},unlessEq:{args:["a","b","options"],example:"{{#unlessEq 2 1 }} not equal {{else}} equal {{/unlessEq}} -> ' not equal '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is equal to <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessGt:{args:["a","b","options"],example:"{{#unlessGt 20 1 }} not greater than {{else}} greater than {{/unlessGt}} -> ' greater than '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessLt:{args:["a","b","options"],example:"{{#unlessLt 20 1 }}greater than or equal{{else}}less than{{/unlessLt}} -> greater than or equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessGteq:{args:["a","b","options"],example:"{{#unlessGteq 20 1 }} less than {{else}}greater than or equal to{{/unlessGteq}} -> greater than or equal to",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than or equal to <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessLteq:{args:["a","b","options"],example:"{{#unlessLteq 20 1 }} greater than {{else}} less than or equal to {{/unlessLteq}} -> ' greater than '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than or equal to <code>b</code></strong>.</p>\n",requiresBlock:!0}},object={extend:{args:["objects"],description:"<p>Extend the context with the properties of other objects. A shallow merge is performed to avoid mutating the context.</p>\n",requiresBlock:!1},forIn:{args:["context","options"],description:"<p>Block helper that iterates over the properties of an object, exposing each key and value on the context.</p>\n",requiresBlock:!0},forOwn:{args:["obj","options"],description:"<p>Block helper that iterates over the <strong>own</strong> properties of an object, exposing each key and value on the context.</p>\n",requiresBlock:!0},toPath:{args:["prop"],description:"<p>Take arguments and, if they are string or number, convert them to a dot-delineated object property path.</p>\n",requiresBlock:!1},get:{args:["prop","context","options"],description:"<p>Use property paths (<code>a.b.c</code>) to get a value or nested value from the context. Works as a regular helper or block helper.</p>\n",requiresBlock:!0},getObject:{args:["prop","context"],description:"<p>Use property paths (<code>a.b.c</code>) to get an object from the context. Differs from the <code>get</code> helper in that this helper will return the actual object, including the given property key. Also, this helper does not work as a block helper.</p>\n",requiresBlock:!1},hasOwn:{args:["key","context"],description:"<p>Return true if <code>key</code> is an own, enumerable property of the given <code>context</code> object.</p>\n",requiresBlock:!1},isObject:{args:["value"],description:"<p>Return true if <code>value</code> is an object.</p>\n",requiresBlock:!1},JSONparse:{args:["string"],description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n",requiresBlock:!0},JSONstringify:{args:["obj"],description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n",requiresBlock:!1},merge:{args:["object","objects"],description:"<p>Deeply merge the properties of the given <code>objects</code> with the context object.</p>\n",requiresBlock:!1},parseJSON:{args:["string"],description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n",requiresBlock:!0},pick:{args:["properties","context","options"],description:"<p>Pick properties from the context object.</p>\n",requiresBlock:!0},stringify:{args:["obj"],description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n",requiresBlock:!1}},regex={toRegex:{args:["str"],example:"{{toRegex 'foo'}} -> /foo/",description:"<p>Convert the given string to a regular expression.</p>\n",requiresBlock:!1},test:{args:["str"],example:"{{test 'foobar' (toRegex 'foo')}} -> true",description:'<p>Returns true if the given <code>str</code> matches the given regex. A regex can be passed on the context, or using the <a href="#toregex">toRegex</a> helper as a subexpression.</p>\n',requiresBlock:!1}},uuid={uuid:{args:[],example:"{{ uuid }} -> f34ebc66-93bd-4f7c-b79b-92b5569138bc",description:"<p>Generates a UUID, using the V4 method (identical to the browser crypto.randomUUID function).</p>\n",requiresBlock:!1}},date={date:{args:["[datetime]","[format]","[options]"],example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:"<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>\n"},duration:{args:["time","durationType"],example:'{{duration 8 "seconds"}} -> a few seconds',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"},difference:{args:["from","to","[unitType=ms]"],example:'{{ difference "2025-09-30" "2025-06-17" "seconds" }} -> 9072000',description:"<p>Gets the difference between two dates, in milliseconds. Pass a third parameter to adjust the unit measurement.</p>\n"},durationFromNow:{args:["time"],example:'{{durationFromNow "2021-09-30"}} -> 8 months',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"}},manifest={math:math,array:array,number:number,url:url,string:string,comparison:comparison,object:object,regex:regex,uuid:uuid,date:date};const hbsInstance=handlebars.create();registerAll(hbsInstance);const helperNames=Object.keys(hbsInstance.helpers),hbsInstanceNoHelpers=handlebars.create();registerMinimum(hbsInstanceNoHelpers);const defaultOpts={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function testObject(e){try{JSON.stringify(e)}catch(e){throw"Unable to process inputs to JSON, cannot recurse"}}function findOverlappingHelpers(e){if(!e)return[];return Object.keys(e).filter(e=>helperNames.includes(e))}const templateCache={};function createTemplate(e,t,r){const n=!(null==(t=Object.assign(Object.assign({},defaultOpts),t))?void 0:t.noHelpers),o=`${e}-${JSON.stringify(t)}`;if(t.cacheTemplates&&templateCache[o])return templateCache[o];const a=n?findOverlappingHelpers(r):[];if(e=preprocess(e,Object.assign(Object.assign({},t),{disabledHelpers:a})),r&&n&&a.length>0)for(const t of findHBSBlocks(e))e=e.replace(t,prefixStrings(t,a,"./"));t.noEscaping&&(e=disableEscaping(e));const i=(t.noHelpers?hbsInstanceNoHelpers:hbsInstance).compile(e,{strict:!1});return templateCache[o]=i,i}function processObject(e,t,r){return __awaiter(this,void 0,void 0,function*(){testObject(e);for(const n of Object.keys(e||{}))if(null!=e[n]){const o=e[n];let a=o;"string"==typeof o?a=yield processString(e[n],t,r):"object"==typeof o&&(a=yield processObject(e[n],t,r)),e[n]=a}return e})}function processString(e,t,r){return __awaiter(this,void 0,void 0,function*(){return processStringSync(e,t,r)})}function processObjectSync(e,t,r){testObject(e);for(let n of Object.keys(e||{})){let o=e[n];"string"==typeof o?e[n]=processStringSync(e[n],t,r):"object"==typeof o&&(e[n]=processObjectSync(e[n],t,r))}return e}function processStringSyncInternal(e,t,r){const n=e;if("string"!=typeof e)throw new Error("Cannot process non-string types.");function o(e){const n=createTemplate(e,r,t),o=1e3*Math.floor(Date.now()/1e3),a=n(Object.assign({now:new Date(o).toISOString(),__opts:Object.assign(Object.assign({},r),{input:e})},t));return(null==r?void 0:r.logging)?postprocessWithLogs(a):postprocess(a)}try{if(r&&r.onlyFound){let t=[];const n=findHBSBlocks(e);for(let r of n){const n=o(r);"object"==typeof n&&"result"in n?(t=t.concat(n.logs||[]),e=e.replace(r,n.result)):e=e.replace(r,n)}return(null==r?void 0:r.logging)?{result:e,logs:t}:e}return o(e)}catch(e){const{noThrow:t=!0}=r||{};if(t)return n;throw e}}function processStringSync(e,t,r){return processStringSyncInternal(e,t,Object.assign(Object.assign({},r),{logging:!1}))}function processStringWithLogsSync(e,t,r){if(isBackendService())throw new Error("Logging disabled for backend bindings");return processStringSyncInternal(e,t,Object.assign(Object.assign({},r),{logging:!0}))}function disableEscaping(e){const t=findDoubleHbsInstances(e);if(null==t)return e;const r=[...new Set(t)];for(let t of r){const r=new RegExp(`${t}(?!})`,"g");e=e.replace(r,`{${t}}`)}return e}function makePropSafe(e){return`[${e}]`.replace("[[","[").replace("]]","]")}function isValid(e,t){const r=["string","number","object","array","cannot read property","undefined","json at position 0"],n=["expecting '"],o={};try{return createTemplate(e,Object.assign(Object.assign({},t),{noFinalise:!0}))(o),!0}catch(e){const t=e&&e.message?e.message:e;if(!t)return!1;const o=n.some(e=>t.toLowerCase().includes(e));return r.some(e=>t.toLowerCase().includes(e))&&!o}}function getManifest(){return manifest}function isJSBinding(e){return null!=decodeJSBinding(e)}function encodeJSBinding(e){return`{{ js "${btoa(e)}" }}`}function decodeJSBinding(e){if(!e||"string"!=typeof e)return null;if(!e.trim().startsWith("{{ js "))return null;const t=new RegExp(/{{ js "(.*)" }}/),r=e.match(t);return!r||r.length<2?null:atob(r[1])}function doesContainStrings(e,t){let r=new RegExp(FIND_HBS_REGEX),n=e.match(r);if(null==n)return!1;for(let e of n){let r=e;isJSBinding(e)&&(r=decodeJSBinding(e));let n=!0;for(let e of t)r.includes(e)||(n=!1);if(n)return!0}return!1}function findHBSBlocks(e){if(!e||"string"!=typeof e)return[];let t=new RegExp(FIND_ANY_HBS_REGEX),r=e.match(t);return null==r?[]:r}function doesContainString(e,t){return doesContainStrings(e,[t])}function convertToJS(e){const t=findHBSBlocks(e);let r="return `",n=null;const o={};0===t.length&&(r+=e);let a=1;for(let i of t){let t=e;n&&(t=t.split(n)[1]),t=t.split(i)[0],n=i;const{variable:s,value:u}=convertHBSBlock(i,a++);o[s]=u,r+=`${[t]}\${${s}}`}let i="";for(let[e,t]of Object.entries(o))i+=`const ${e} = ${t};\n`;return r+="`;",`${i}${r}`}function browserJSSetup(){const e=isTest()?vm:vmBrowserify;setJSRunner((t,r)=>{e.createContext(r);const n=frontendWrapJS(t),o=e.runInNewContext(n,r);if(o.error)throw new UserScriptError(o.error);return o.result})}function defaultJSSetup(){isBackendService()?removeJSRunner():browserJSSetup()}defaultJSSetup(),exports.FIND_ANY_HBS_REGEX=FIND_ANY_HBS_REGEX,exports.JsTimeoutError=JsTimeoutError,exports.UserScriptError=UserScriptError,exports.browserJSSetup=browserJSSetup,exports.convertToJS=convertToJS,exports.decodeJSBinding=decodeJSBinding,exports.defaultJSSetup=defaultJSSetup,exports.disableEscaping=disableEscaping,exports.doesContainString=doesContainString,exports.doesContainStrings=doesContainStrings,exports.encodeJSBinding=encodeJSBinding,exports.findHBSBlocks=findHBSBlocks,exports.getJsHelperList=getJsHelperList,exports.getManifest=getManifest,exports.helpersToRemoveForJs=helpersToRemoveForJs,exports.iifeWrapper=iifeWrapper,exports.isJSBinding=isJSBinding,exports.isValid=isValid,exports.makePropSafe=makePropSafe,exports.processObject=processObject,exports.processObjectSync=processObjectSync,exports.processString=processString,exports.processStringSync=processStringSync,exports.processStringWithLogsSync=processStringWithLogsSync,exports.setJSRunner=setJSRunner,exports.setOnErrorLog=setOnErrorLog,exports.setTestingBackendJS=setTestingBackendJS;
|
|
38
|
+
*/const isObject$3=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),transform=e=>t=>!0===e?Number(t):String(t),isValidValue=e=>"number"==typeof e||"string"==typeof e&&""!==e,isNumber=e=>Number.isInteger(+e),zeros=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},stringify$1=(e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify,pad=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},toMaxLen=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},toSequence=(e,t,r)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let n,o=t.capture?"":"?:",a="",i="";return e.positives.length&&(a=e.positives.map(e=>toMaxLen(String(e),r)).join("|")),e.negatives.length&&(i=`-(${o}${e.negatives.map(e=>toMaxLen(String(e),r)).join("|")})`),n=a&&i?`${a}|${i}`:a||i,t.wrap?`(${o}${n})`:n},toRange=(e,t,r,n)=>{if(r)return toRegexRange_1(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return toRegexRange_1(e,t,r)},rangeError=(...e)=>new RangeError("Invalid range arguments: "+util.inspect(...e)),invalidRange=(e,t,r)=>{if(!0===r.strictRanges)throw rangeError([e,t]);return[]},invalidStep=(e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]},fillNumbers=(e,t,r=1,n={})=>{let o=Number(e),a=Number(t);if(!Number.isInteger(o)||!Number.isInteger(a)){if(!0===n.strictRanges)throw rangeError([e,t]);return[]}0===o&&(o=0),0===a&&(a=0);let i=o>a,s=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=zeros(s)||zeros(u)||zeros(c),p=l?Math.max(s.length,u.length,c.length):0,f=!1===l&&!1===stringify$1(e,t,n),h=n.transform||transform(f);if(n.toRegex&&1===r)return toRange(toMaxLen(e,p),toMaxLen(t,p),!0,n);let d={negatives:[],positives:[]},g=e=>d[e<0?"negatives":"positives"].push(Math.abs(e)),m=[],y=0;for(;i?o>=a:o<=a;)!0===n.toRegex&&r>1?g(o):m.push(pad(h(o,y),p,f)),o=i?o-r:o+r,y++;return!0===n.toRegex?r>1?toSequence(d,n,p):toRegex(m,null,{wrap:!1,...n}):m},fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1)return invalidRange(e,t,n);let o=n.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),s=a>i,u=Math.min(a,i),c=Math.max(a,i);if(n.toRegex&&1===r)return toRange(u,c,!1,n);let l=[],p=0;for(;s?a>=i:a<=i;)l.push(o(a,p)),a=s?a-r:a+r,p++;return!0===n.toRegex?toRegex(l,null,{wrap:!1,options:n}):l},fill=(e,t,r,n={})=>{if(null==t&&isValidValue(e))return[e];if(!isValidValue(e)||!isValidValue(t))return invalidRange(e,t,n);if("function"==typeof r)return fill(e,t,1,{transform:r});if(isObject$3(r))return fill(e,t,0,r);let o={...n};return!0===o.capture&&(o.wrap=!0),r=r||o.step||1,isNumber(r)?isNumber(e)&&isNumber(t)?fillNumbers(e,t,r,o):fillLetters(e,t,Math.max(Math.abs(r),1),o):null==r||isObject$3(r)?fill(e,t,1,r):invalidStep(r,o)};var fillRange=fill;const compile=(e,t={})=>{const r=(e,n={})=>{const o=utils$1.isInvalidBrace(n),a=!0===e.invalid&&!0===t.escapeInvalid,i=!0===o||!0===a,s=!0===t.escapeInvalid?"\\":"";let u="";if(!0===e.isOpen)return s+e.value;if(!0===e.isClose)return console.log("node.isClose",s,e.value),s+e.value;if("open"===e.type)return i?s+e.value:"(";if("close"===e.type)return i?s+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":i?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const r=utils$1.reduce(e.nodes),n=fillRange(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==n.length)return r.length>1&&n.length>1?`(${n})`:n}if(e.nodes)for(const t of e.nodes)u+=r(t,e);return u};return r(e)};var compile_1=compile;const append=(e="",t="",r=!1)=>{const n=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?utils$1.flatten(t).map(e=>`{${e}}`):t;for(const o of e)if(Array.isArray(o))for(const e of o)n.push(append(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),n.push(Array.isArray(e)?append(o,e,r):o+e);return utils$1.flatten(n)},expand=(e,t={})=>{const r=void 0===t.rangeLimit?1e3:t.rangeLimit,n=(e,o={})=>{e.queue=[];let a=o,i=o.queue;for(;"brace"!==a.type&&"root"!==a.type&&a.parent;)a=a.parent,i=a.queue;if(e.invalid||e.dollar)return void i.push(append(i.pop(),stringify$2(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void i.push(append(i.pop(),["{}"]));if(e.nodes&&e.ranges>0){const n=utils$1.reduce(e.nodes);if(utils$1.exceedsLimit(...n,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let o=fillRange(...n,t);return 0===o.length&&(o=stringify$2(e,t)),i.push(append(i.pop(),o)),void(e.nodes=[])}const s=utils$1.encloseBrace(e);let u=e.queue,c=e;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,u=c.queue;for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];"comma"!==r.type||"brace"!==e.type?"close"!==r.type?r.value&&"open"!==r.type?u.push(append(u.pop(),r.value)):r.nodes&&n(r,e):i.push(append(i.pop(),u,s)):(1===t&&u.push(""),u.push(""))}return u};return utils$1.flatten(n(e))};var expand_1=expand,constants$1={MAX_LENGTH:1e4,CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_COMMA:",",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_NO_BREAK_SPACE:" ",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SINGLE_QUOTE:"'",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};const{MAX_LENGTH:MAX_LENGTH$1,CHAR_BACKSLASH:CHAR_BACKSLASH,CHAR_BACKTICK:CHAR_BACKTICK,CHAR_COMMA:CHAR_COMMA$1,CHAR_DOT:CHAR_DOT$1,CHAR_LEFT_PARENTHESES:CHAR_LEFT_PARENTHESES$1,CHAR_RIGHT_PARENTHESES:CHAR_RIGHT_PARENTHESES$1,CHAR_LEFT_CURLY_BRACE:CHAR_LEFT_CURLY_BRACE$1,CHAR_RIGHT_CURLY_BRACE:CHAR_RIGHT_CURLY_BRACE$1,CHAR_LEFT_SQUARE_BRACKET:CHAR_LEFT_SQUARE_BRACKET$1,CHAR_RIGHT_SQUARE_BRACKET:CHAR_RIGHT_SQUARE_BRACKET$1,CHAR_DOUBLE_QUOTE:CHAR_DOUBLE_QUOTE,CHAR_SINGLE_QUOTE:CHAR_SINGLE_QUOTE,CHAR_NO_BREAK_SPACE:CHAR_NO_BREAK_SPACE,CHAR_ZERO_WIDTH_NOBREAK_SPACE:CHAR_ZERO_WIDTH_NOBREAK_SPACE}=constants$1,parse$3=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const r=t||{},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH$1,r.maxLength):MAX_LENGTH$1;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);const o={type:"root",input:e,nodes:[]},a=[o];let i=o,s=o,u=0;const c=e.length;let l,p=0,f=0;const h=()=>e[p++],d=e=>{if("text"===e.type&&"dot"===s.type&&(s.type="text"),!s||"text"!==s.type||"text"!==e.type)return i.nodes.push(e),e.parent=i,e.prev=s,s=e,e;s.value+=e.value};for(d({type:"bos"});p<c;)if(i=a[a.length-1],l=h(),l!==CHAR_ZERO_WIDTH_NOBREAK_SPACE&&l!==CHAR_NO_BREAK_SPACE)if(l!==CHAR_BACKSLASH)if(l!==CHAR_RIGHT_SQUARE_BRACKET$1){if(l===CHAR_LEFT_SQUARE_BRACKET$1){let e;for(u++;p<c&&(e=h());)if(l+=e,e!==CHAR_LEFT_SQUARE_BRACKET$1)if(e!==CHAR_BACKSLASH){if(e===CHAR_RIGHT_SQUARE_BRACKET$1&&(u--,0===u))break}else l+=h();else u++;d({type:"text",value:l});continue}if(l!==CHAR_LEFT_PARENTHESES$1)if(l!==CHAR_RIGHT_PARENTHESES$1){if(l===CHAR_DOUBLE_QUOTE||l===CHAR_SINGLE_QUOTE||l===CHAR_BACKTICK){const e=l;let r;for(!0!==t.keepQuotes&&(l="");p<c&&(r=h());)if(r!==CHAR_BACKSLASH){if(r===e){!0===t.keepQuotes&&(l+=r);break}l+=r}else l+=r+h();d({type:"text",value:l});continue}if(l===CHAR_LEFT_CURLY_BRACE$1){f++;const e=s.value&&"$"===s.value.slice(-1)||!0===i.dollar;i=d({type:"brace",open:!0,close:!1,dollar:e,depth:f,commas:0,ranges:0,nodes:[]}),a.push(i),d({type:"open",value:l});continue}if(l===CHAR_RIGHT_CURLY_BRACE$1){if("brace"!==i.type){d({type:"text",value:l});continue}const e="close";i=a.pop(),i.close=!0,d({type:e,value:l}),f--,i=a[a.length-1];continue}if(l===CHAR_COMMA$1&&f>0){if(i.ranges>0){i.ranges=0;const e=i.nodes.shift();i.nodes=[e,{type:"text",value:stringify$2(i)}]}d({type:"comma",value:l}),i.commas++}else{if(l===CHAR_DOT$1&&f>0&&0===i.commas){const e=i.nodes;if(0===f||0===e.length){d({type:"text",value:l});continue}if("dot"===s.type){if(i.range=[],s.value+=l,s.type="range",3!==i.nodes.length&&5!==i.nodes.length){i.invalid=!0,i.ranges=0,s.type="text";continue}i.ranges++,i.args=[];continue}if("range"===s.type){e.pop();const t=e[e.length-1];t.value+=s.value+l,s=t,i.ranges--;continue}d({type:"dot",value:l});continue}d({type:"text",value:l})}}else{if("paren"!==i.type){d({type:"text",value:l});continue}i=a.pop(),d({type:"text",value:l}),i=a[a.length-1]}else i=d({type:"paren",nodes:[]}),a.push(i),d({type:"text",value:l})}else d({type:"text",value:"\\"+l});else d({type:"text",value:(t.keepEscaping?l:"")+h()});do{if(i=a.pop(),"root"!==i.type){i.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});const e=a[a.length-1],t=e.nodes.indexOf(i);e.nodes.splice(t,1,...i.nodes)}}while(a.length>0);return d({type:"eos"}),o};var parse_1$2=parse$3;const braces=(e,t={})=>{let r=[];if(Array.isArray(e))for(const n of e){const e=braces.create(n,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(braces.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};braces.parse=(e,t={})=>parse_1$2(e,t),braces.stringify=(e,t={})=>stringify$2("string"==typeof e?braces.parse(e,t):e,t),braces.compile=(e,t={})=>("string"==typeof e&&(e=braces.parse(e,t)),compile_1(e,t)),braces.expand=(e,t={})=>{"string"==typeof e&&(e=braces.parse(e,t));let r=expand_1(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},braces.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?braces.compile(e,t):braces.expand(e,t);var braces_1=braces,browser=createCommonjsModule(function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,l=-1;function p(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=i(p);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||i(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}});const WIN_SLASH="\\\\/",WIN_NO_SLASH=`[^${WIN_SLASH}]`,DOT_LITERAL="\\.",PLUS_LITERAL="\\+",QMARK_LITERAL="\\?",SLASH_LITERAL="\\/",ONE_CHAR="(?=.)",QMARK="[^/]",END_ANCHOR=`(?:${SLASH_LITERAL}|$)`,START_ANCHOR=`(?:^|${SLASH_LITERAL})`,DOTS_SLASH=`${DOT_LITERAL}{1,2}${END_ANCHOR}`,NO_DOT=`(?!${DOT_LITERAL})`,NO_DOTS=`(?!${START_ANCHOR}${DOTS_SLASH})`,NO_DOT_SLASH=`(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,NO_DOTS_SLASH=`(?!${DOTS_SLASH})`,QMARK_NO_DOT=`[^.${SLASH_LITERAL}]`,STAR=`${QMARK}*?`,POSIX_CHARS={DOT_LITERAL:DOT_LITERAL,PLUS_LITERAL:PLUS_LITERAL,QMARK_LITERAL:QMARK_LITERAL,SLASH_LITERAL:SLASH_LITERAL,ONE_CHAR:ONE_CHAR,QMARK:QMARK,END_ANCHOR:END_ANCHOR,DOTS_SLASH:DOTS_SLASH,NO_DOT:NO_DOT,NO_DOTS:NO_DOTS,NO_DOT_SLASH:NO_DOT_SLASH,NO_DOTS_SLASH:NO_DOTS_SLASH,QMARK_NO_DOT:QMARK_NO_DOT,STAR:STAR,START_ANCHOR:START_ANCHOR},WINDOWS_CHARS={...POSIX_CHARS,SLASH_LITERAL:`[${WIN_SLASH}]`,QMARK:WIN_NO_SLASH,STAR:`${WIN_NO_SLASH}*?`,DOTS_SLASH:`${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,NO_DOT:`(?!${DOT_LITERAL})`,NO_DOTS:`(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,NO_DOT_SLASH:`(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,NO_DOTS_SLASH:`(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,QMARK_NO_DOT:`[^.${WIN_SLASH}]`,START_ANCHOR:`(?:^|[${WIN_SLASH}])`,END_ANCHOR:`(?:[${WIN_SLASH}]|$)`},POSIX_REGEX_SOURCE$1={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var constants={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:POSIX_REGEX_SOURCE$1,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:path.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?WINDOWS_CHARS:POSIX_CHARS},utils=createCommonjsModule(function(e,t){const r="win32"===browser.platform,{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:i}=constants;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(i,"\\$1"),t.toPosixSlashes=e=>e.replace(n,"/"),t.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=browser.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===r||"\\"===path.sep,t.escapeLast=(e,r,n)=>{const o=e.lastIndexOf(r,n);return-1===o?e:"\\"===e[o-1]?t.escapeLast(e,r,o-1):`${e.slice(0,o)}\\${e.slice(o)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}});const{CHAR_ASTERISK:CHAR_ASTERISK,CHAR_AT:CHAR_AT,CHAR_BACKWARD_SLASH:CHAR_BACKWARD_SLASH,CHAR_COMMA:CHAR_COMMA,CHAR_DOT:CHAR_DOT,CHAR_EXCLAMATION_MARK:CHAR_EXCLAMATION_MARK,CHAR_FORWARD_SLASH:CHAR_FORWARD_SLASH,CHAR_LEFT_CURLY_BRACE:CHAR_LEFT_CURLY_BRACE,CHAR_LEFT_PARENTHESES:CHAR_LEFT_PARENTHESES,CHAR_LEFT_SQUARE_BRACKET:CHAR_LEFT_SQUARE_BRACKET,CHAR_PLUS:CHAR_PLUS,CHAR_QUESTION_MARK:CHAR_QUESTION_MARK,CHAR_RIGHT_CURLY_BRACE:CHAR_RIGHT_CURLY_BRACE,CHAR_RIGHT_PARENTHESES:CHAR_RIGHT_PARENTHESES,CHAR_RIGHT_SQUARE_BRACKET:CHAR_RIGHT_SQUARE_BRACKET}=constants,isPathSeparator=e=>e===CHAR_FORWARD_SLASH||e===CHAR_BACKWARD_SLASH,depth=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)},scan=(e,t)=>{const r=t||{},n=e.length-1,o=!0===r.parts||!0===r.scanToEnd,a=[],i=[],s=[];let u,c,l=e,p=-1,f=0,h=0,d=!1,g=!1,m=!1,y=!1,_=!1,b=!1,v=!1,A=!1,S=!1,$=!1,C=0,E={value:"",depth:0,isGlob:!1};const R=()=>p>=n,w=()=>l.charCodeAt(p+1),x=()=>(u=c,l.charCodeAt(++p));for(;p<n;){let e;if(c=x(),c!==CHAR_BACKWARD_SLASH){if(!0===b||c===CHAR_LEFT_CURLY_BRACE){for(C++;!0!==R()&&(c=x());)if(c!==CHAR_BACKWARD_SLASH)if(c!==CHAR_LEFT_CURLY_BRACE){if(!0!==b&&c===CHAR_DOT&&(c=x())===CHAR_DOT){if(d=E.isBrace=!0,m=E.isGlob=!0,$=!0,!0===o)continue;break}if(!0!==b&&c===CHAR_COMMA){if(d=E.isBrace=!0,m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_RIGHT_CURLY_BRACE&&(C--,0===C)){b=!1,d=E.isBrace=!0,$=!0;break}}else C++;else v=E.backslashes=!0,x();if(!0===o)continue;break}if(c!==CHAR_FORWARD_SLASH){if(!0!==r.noext){if(!0===(c===CHAR_PLUS||c===CHAR_AT||c===CHAR_ASTERISK||c===CHAR_QUESTION_MARK||c===CHAR_EXCLAMATION_MARK)&&w()===CHAR_LEFT_PARENTHESES){if(m=E.isGlob=!0,y=E.isExtglob=!0,$=!0,c===CHAR_EXCLAMATION_MARK&&p===f&&(S=!0),!0===o){for(;!0!==R()&&(c=x());)if(c!==CHAR_BACKWARD_SLASH){if(c===CHAR_RIGHT_PARENTHESES){m=E.isGlob=!0,$=!0;break}}else v=E.backslashes=!0,c=x();continue}break}}if(c===CHAR_ASTERISK){if(u===CHAR_ASTERISK&&(_=E.isGlobstar=!0),m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_QUESTION_MARK){if(m=E.isGlob=!0,$=!0,!0===o)continue;break}if(c===CHAR_LEFT_SQUARE_BRACKET){for(;!0!==R()&&(e=x());)if(e!==CHAR_BACKWARD_SLASH){if(e===CHAR_RIGHT_SQUARE_BRACKET){g=E.isBracket=!0,m=E.isGlob=!0,$=!0;break}}else v=E.backslashes=!0,x();if(!0===o)continue;break}if(!0===r.nonegate||c!==CHAR_EXCLAMATION_MARK||p!==f){if(!0!==r.noparen&&c===CHAR_LEFT_PARENTHESES){if(m=E.isGlob=!0,!0===o){for(;!0!==R()&&(c=x());)if(c!==CHAR_LEFT_PARENTHESES){if(c===CHAR_RIGHT_PARENTHESES){$=!0;break}}else v=E.backslashes=!0,c=x();continue}break}if(!0===m){if($=!0,!0===o)continue;break}}else A=E.negated=!0,f++}else{if(a.push(p),i.push(E),E={value:"",depth:0,isGlob:!1},!0===$)continue;if(u===CHAR_DOT&&p===f+1){f+=2;continue}h=p+1}}else v=E.backslashes=!0,c=x(),c===CHAR_LEFT_CURLY_BRACE&&(b=!0)}!0===r.noext&&(y=!1,m=!1);let O=l,T="",k="";f>0&&(T=l.slice(0,f),l=l.slice(f),h-=f),O&&!0===m&&h>0?(O=l.slice(0,h),k=l.slice(h)):!0===m?(O="",k=l):O=l,O&&""!==O&&"/"!==O&&O!==l&&isPathSeparator(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),!0===r.unescape&&(k&&(k=utils.removeBackslashes(k)),O&&!0===v&&(O=utils.removeBackslashes(O)));const P={prefix:T,input:e,start:f,base:O,glob:k,isBrace:d,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:_,negated:A,negatedExtglob:S};if(!0===r.tokens&&(P.maxDepth=0,isPathSeparator(c)||i.push(E),P.tokens=i),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<a.length;n++){const o=t?t+1:f,u=a[n],c=e.slice(o,u);r.tokens&&(0===n&&0!==f?(i[n].isPrefix=!0,i[n].value=T):i[n].value=c,depth(i[n]),P.maxDepth+=i[n].depth),0===n&&""===c||s.push(c),t=u}if(t&&t+1<e.length){const n=e.slice(t+1);s.push(n),r.tokens&&(i[i.length-1].value=n,depth(i[i.length-1]),P.maxDepth+=i[i.length-1].depth)}P.slashes=a,P.parts=s}return P};var scan_1=scan;const{MAX_LENGTH:MAX_LENGTH,POSIX_REGEX_SOURCE:POSIX_REGEX_SOURCE,REGEX_NON_SPECIAL_CHARS:REGEX_NON_SPECIAL_CHARS,REGEX_SPECIAL_CHARS_BACKREF:REGEX_SPECIAL_CHARS_BACKREF,REPLACEMENTS:REPLACEMENTS}=constants,expandRange=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>utils.escapeRegex(e)).join("..")}return r},syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,parse$2=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=REPLACEMENTS[e]||e;const r={...t},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH,r.maxLength):MAX_LENGTH;let o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);const a={type:"bos",value:"",output:r.prepend||""},i=[a],s=r.capture?"":"?:",u=utils.isWindows(t),c=constants.globChars(u),l=constants.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:d,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:b,QMARK_NO_DOT:v,STAR:A,START_ANCHOR:S}=c,$=e=>`(${s}(?:(?!${S}${e.dot?g:p}).)*?)`,C=r.dot?"":m,E=r.dot?b:v;let R=!0===r.bash?$(r):A;r.capture&&(R=`(${R})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const w={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=utils.removePrefix(e,w),o=e.length;const x=[],O=[],T=[];let k,P=a;const L=()=>w.index===o-1,I=w.peek=(t=1)=>e[w.index+t],M=w.advance=()=>e[++w.index]||"",j=()=>e.slice(w.index+1),B=(e="",t=0)=>{w.consumed+=e,w.index+=t},N=e=>{w.output+=null!=e.output?e.output:e.value,B(e.value)},H=()=>{let e=1;for(;"!"===I()&&("("!==I(2)||"?"===I(3));)M(),w.start++,e++;return e%2!=0&&(w.negated=!0,w.start++,!0)},U=e=>{w[e]++,T.push(e)},D=e=>{w[e]--,T.pop()},F=e=>{if("globstar"===P.type){const t=w.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||x.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(w.output=w.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=R,w.output+=P.output)}if(x.length&&"paren"!==e.type&&(x[x.length-1].inner+=e.value),(e.value||e.output)&&N(e),P&&"text"===P.type&&"text"===e.type)return P.value+=e.value,void(P.output=(P.output||"")+e.value);e.prev=P,i.push(e),P=e},q=(e,t)=>{const n={...l[t],conditions:1,inner:""};n.prev=P,n.parens=w.parens,n.output=w.output;const o=(r.capture?"(":"")+n.open;U("parens"),F({type:e,value:t,output:w.output?"":d}),F({type:"paren",extglob:!0,value:M(),output:o}),x.push(n)},W=e=>{let n,o=e.close+(r.capture?")":"");if("negate"===e.type){let a=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=$(r)),(a!==R||L()||/^\)+$/.test(j()))&&(o=e.close=`)$))${a}`),e.inner.includes("*")&&(n=j())&&/^\.[^\\/.]+$/.test(n)){const r=parse$2(n,{...t,fastpaths:!1}).output;o=e.close=`)${r})${a})`}"bos"===e.prev.type&&(w.negatedExtglob=!0)}F({type:"paren",extglob:!0,value:k,output:o}),D("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,o=e.replace(REGEX_SPECIAL_CHARS_BACKREF,(e,t,r,o,a,i)=>"\\"===o?(n=!0,e):"?"===o?t?t+o+(a?b.repeat(a.length):""):0===i?E+(a?b.repeat(a.length):""):b.repeat(r.length):"."===o?p.repeat(r.length):"*"===o?t?t+o+(a?R:""):R:t?e:`\\${e}`);return!0===n&&(o=!0===r.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),o===e&&!0===r.contains?(w.output=e,w):(w.output=utils.wrapOutput(o,w,t),w)}for(;!L();){if(k=M(),"\0"===k)continue;if("\\"===k){const e=I();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){k+="\\",F({type:"text",value:k});continue}const t=/^\\+/.exec(j());let n=0;if(t&&t[0].length>2&&(n=t[0].length,w.index+=n,n%2!=0&&(k+="\\")),!0===r.unescape?k=M():k+=M(),0===w.brackets){F({type:"text",value:k});continue}}if(w.brackets>0&&("]"!==k||"["===P.value||"[^"===P.value)){if(!1!==r.posix&&":"===k){const e=P.value.slice(1);if(e.includes("[")&&(P.posix=!0,e.includes(":"))){const e=P.value.lastIndexOf("["),t=P.value.slice(0,e),r=P.value.slice(e+2),n=POSIX_REGEX_SOURCE[r];if(n){P.value=t+n,w.backtrack=!0,M(),a.output||1!==i.indexOf(P)||(a.output=d);continue}}}("["===k&&":"!==I()||"-"===k&&"]"===I())&&(k=`\\${k}`),"]"!==k||"["!==P.value&&"[^"!==P.value||(k=`\\${k}`),!0===r.posix&&"!"===k&&"["===P.value&&(k="^"),P.value+=k,N({value:k});continue}if(1===w.quotes&&'"'!==k){k=utils.escapeRegex(k),P.value+=k,N({value:k});continue}if('"'===k){w.quotes=1===w.quotes?0:1,!0===r.keepQuotes&&F({type:"text",value:k});continue}if("("===k){U("parens"),F({type:"paren",value:k});continue}if(")"===k){if(0===w.parens&&!0===r.strictBrackets)throw new SyntaxError(syntaxError("opening","("));const e=x[x.length-1];if(e&&w.parens===e.parens+1){W(x.pop());continue}F({type:"paren",value:k,output:w.parens?")":"\\)"}),D("parens");continue}if("["===k){if(!0!==r.nobracket&&j().includes("]"))U("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","]"));k=`\\${k}`}F({type:"bracket",value:k});continue}if("]"===k){if(!0===r.nobracket||P&&"bracket"===P.type&&1===P.value.length){F({type:"text",value:k,output:`\\${k}`});continue}if(0===w.brackets){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("opening","["));F({type:"text",value:k,output:`\\${k}`});continue}D("brackets");const e=P.value.slice(1);if(!0===P.posix||"^"!==e[0]||e.includes("/")||(k=`/${k}`),P.value+=k,N({value:k}),!1===r.literalBrackets||utils.hasRegexChars(e))continue;const t=utils.escapeRegex(P.value);if(w.output=w.output.slice(0,-P.value.length),!0===r.literalBrackets){w.output+=t,P.value=t;continue}P.value=`(${s}${t}|${P.value})`,w.output+=P.value;continue}if("{"===k&&!0!==r.nobrace){U("braces");const e={type:"brace",value:k,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};O.push(e),F(e);continue}if("}"===k){const e=O[O.length-1];if(!0===r.nobrace||!e){F({type:"text",value:k,output:k});continue}let t=")";if(!0===e.dots){const e=i.slice(),n=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=expandRange(n,r),w.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=w.output.slice(0,e.outputIndex),n=w.tokens.slice(e.tokensIndex);e.value=e.output="\\{",k=t="\\}",w.output=r;for(const e of n)w.output+=e.output||e.value}F({type:"brace",value:k,output:t}),D("braces"),O.pop();continue}if("|"===k){x.length>0&&x[x.length-1].conditions++,F({type:"text",value:k});continue}if(","===k){let e=k;const t=O[O.length-1];t&&"braces"===T[T.length-1]&&(t.comma=!0,e="|"),F({type:"comma",value:k,output:e});continue}if("/"===k){if("dot"===P.type&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",i.pop(),P=a;continue}F({type:"slash",value:k,output:h});continue}if("."===k){if(w.braces>0&&"dot"===P.type){"."===P.value&&(P.output=p);const e=O[O.length-1];P.type="dots",P.output+=k,P.value+=k,e.dots=!0;continue}if(w.braces+w.parens===0&&"bos"!==P.type&&"slash"!==P.type){F({type:"text",value:k,output:p});continue}F({type:"dot",value:k,output:p});continue}if("?"===k){if(!(P&&"("===P.value)&&!0!==r.noextglob&&"("===I()&&"?"!==I(2)){q("qmark",k);continue}if(P&&"paren"===P.type){const e=I();let t=k;if("<"===e&&!utils.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===P.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(j()))&&(t=`\\${k}`),F({type:"text",value:k,output:t});continue}if(!0!==r.dot&&("slash"===P.type||"bos"===P.type)){F({type:"qmark",value:k,output:v});continue}F({type:"qmark",value:k,output:b});continue}if("!"===k){if(!0!==r.noextglob&&"("===I()&&("?"!==I(2)||!/[!=<:]/.test(I(3)))){q("negate",k);continue}if(!0!==r.nonegate&&0===w.index){H();continue}}if("+"===k){if(!0!==r.noextglob&&"("===I()&&"?"!==I(2)){q("plus",k);continue}if(P&&"("===P.value||!1===r.regex){F({type:"plus",value:k,output:f});continue}if(P&&("bracket"===P.type||"paren"===P.type||"brace"===P.type)||w.parens>0){F({type:"plus",value:k});continue}F({type:"plus",value:f});continue}if("@"===k){if(!0!==r.noextglob&&"("===I()&&"?"!==I(2)){F({type:"at",extglob:!0,value:k,output:""});continue}F({type:"text",value:k});continue}if("*"!==k){"$"!==k&&"^"!==k||(k=`\\${k}`);const e=REGEX_NON_SPECIAL_CHARS.exec(j());e&&(k+=e[0],w.index+=e[0].length),F({type:"text",value:k});continue}if(P&&("globstar"===P.type||!0===P.star)){P.type="star",P.star=!0,P.value+=k,P.output=R,w.backtrack=!0,w.globstar=!0,B(k);continue}let t=j();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",k);continue}if("star"===P.type){if(!0===r.noglobstar){B(k);continue}const n=P.prev,o=n.prev,a="slash"===n.type||"bos"===n.type,i=o&&("star"===o.type||"globstar"===o.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){F({type:"star",value:k,output:""});continue}const s=w.braces>0&&("comma"===n.type||"brace"===n.type),u=x.length&&("pipe"===n.type||"paren"===n.type);if(!a&&"paren"!==n.type&&!s&&!u){F({type:"star",value:k,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[w.index+4];if(r&&"/"!==r)break;t=t.slice(3),B("/**",3)}if("bos"===n.type&&L()){P.type="globstar",P.value+=k,P.output=$(r),w.output=P.output,w.globstar=!0,B(k);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!i&&L()){w.output=w.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=$(r)+(r.strictSlashes?")":"|$)"),P.value+=k,w.globstar=!0,w.output+=n.output+P.output,B(k);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";w.output=w.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=`${$(r)}${h}|${h}${e})`,P.value+=k,w.output+=n.output+P.output,w.globstar=!0,B(k+M()),F({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){P.type="globstar",P.value+=k,P.output=`(?:^|${h}|${$(r)}${h})`,w.output=P.output,w.globstar=!0,B(k+M()),F({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-P.output.length),P.type="globstar",P.output=$(r),P.value+=k,w.output+=P.output,w.globstar=!0,B(k);continue}const n={type:"star",value:k,output:R};!0!==r.bash?!P||"bracket"!==P.type&&"paren"!==P.type||!0!==r.regex?(w.index!==w.start&&"slash"!==P.type&&"dot"!==P.type||("dot"===P.type?(w.output+=y,P.output+=y):!0===r.dot?(w.output+=_,P.output+=_):(w.output+=C,P.output+=C),"*"!==I()&&(w.output+=d,P.output+=d)),F(n)):(n.output=k,F(n)):(n.output=".*?","bos"!==P.type&&"slash"!==P.type||(n.output=C+n.output),F(n))}for(;w.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","]"));w.output=utils.escapeLast(w.output,"["),D("brackets")}for(;w.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing",")"));w.output=utils.escapeLast(w.output,"("),D("parens")}for(;w.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(syntaxError("closing","}"));w.output=utils.escapeLast(w.output,"{"),D("braces")}if(!0===r.strictSlashes||"star"!==P.type&&"bracket"!==P.type||F({type:"maybe_slash",value:"",output:`${h}?`}),!0===w.backtrack){w.output="";for(const e of w.tokens)w.output+=null!=e.output?e.output:e.value,e.suffix&&(w.output+=e.suffix)}return w};parse$2.fastpaths=(e,t)=>{const r={...t},n="number"==typeof r.maxLength?Math.min(MAX_LENGTH,r.maxLength):MAX_LENGTH,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=REPLACEMENTS[e]||e;const a=utils.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:d}=constants.globChars(a),g=r.dot?p:l,m=r.dot?f:l,y=r.capture?"":"?:";let _=!0===r.bash?".*?":h;r.capture&&(_=`(${_})`);const b=e=>!0===e.noglobstar?_:`(${y}(?:(?!${d}${e.dot?c:i}).)*?)`,v=e=>{switch(e){case"*":return`${g}${u}${_}`;case".*":return`${i}${u}${_}`;case"*.*":return`${g}${_}${i}${u}${_}`;case"*/*":return`${g}${_}${s}${u}${m}${_}`;case"**":return g+b(r);case"**/*":return`(?:${g}${b(r)}${s})?${m}${u}${_}`;case"**/*.*":return`(?:${g}${b(r)}${s})?${m}${_}${i}${u}${_}`;case"**/.*":return`(?:${g}${b(r)}${s})?${i}${u}${_}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=v(t[1]);if(!r)return;return r+i+t[2]}}},A=utils.removePrefix(e,{negated:!1,prefix:""});let S=v(A);return S&&!0!==r.strictSlashes&&(S+=`${s}?`),S};var parse_1$1=parse$2;const isObject$2=e=>e&&"object"==typeof e&&!Array.isArray(e),picomatch$1=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map(e=>picomatch$1(e,t,r)),o=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return o}const n=isObject$2(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=utils.isWindows(t),i=n?picomatch$1.compileRe(e,t):picomatch$1.makeRe(e,t,!1,!0),s=i.state;delete i.state;let u=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=picomatch$1(o.ignore,e,r)}const c=(r,n=!1)=>{const{isMatch:c,match:l,output:p}=picomatch$1.test(r,i,t,{glob:e,posix:a}),f={glob:e,state:s,regex:i,posix:a,input:r,output:p,match:l,isMatch:c};return"function"==typeof o.onResult&&o.onResult(f),!1===c?(f.isMatch=!1,!!n&&f):u(r)?("function"==typeof o.onIgnore&&o.onIgnore(f),f.isMatch=!1,!!n&&f):("function"==typeof o.onMatch&&o.onMatch(f),!n||f)};return r&&(c.state=s),c};picomatch$1.test=(e,t,r,{glob:n,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},i=a.format||(o?utils.toPosixSlashes:null);let s=e===n,u=s&&i?i(e):e;return!1===s&&(u=i?i(e):e,s=u===n),!1!==s&&!0!==a.capture||(s=!0===a.matchBase||!0===a.basename?picomatch$1.matchBase(e,t,r,o):t.exec(u)),{isMatch:Boolean(s),match:s,output:u}},picomatch$1.matchBase=(e,t,r,n=utils.isWindows(r))=>(t instanceof RegExp?t:picomatch$1.makeRe(t,r)).test(path.basename(e)),picomatch$1.isMatch=(e,t,r)=>picomatch$1(t,r)(e),picomatch$1.parse=(e,t)=>Array.isArray(e)?e.map(e=>picomatch$1.parse(e,t)):parse_1$1(e,{...t,fastpaths:!1}),picomatch$1.scan=(e,t)=>scan_1(e,t),picomatch$1.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const o=t||{},a=o.contains?"":"^",i=o.contains?"":"$";let s=`${a}(?:${e.output})${i}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const u=picomatch$1.toRegex(s,t);return!0===n&&(u.state=e),u},picomatch$1.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=parse_1$1.fastpaths(e,t)),o.output||(o=parse_1$1(e,t)),picomatch$1.compileRe(o,t,r,n)},picomatch$1.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},picomatch$1.constants=constants;var picomatch_1=picomatch$1,picomatch=picomatch_1;const isEmptyString=e=>""===e||"./"===e,hasBraces=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},micromatch=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,a=new Set,i=0,s=e=>{a.add(e.output),r&&r.onResult&&r.onResult(e)};for(let a=0;a<t.length;a++){let u=picomatch(String(t[a]),{...r,onResult:s},!0),c=u.state.negated||u.state.negatedExtglob;c&&i++;for(let t of e){let e=u(t,!0);(c?!e.isMatch:e.isMatch)&&(c?n.add(e.output):(n.delete(e.output),o.add(e.output)))}}let u=(i===t.length?[...a]:[...o]).filter(e=>!n.has(e));if(r&&0===u.length){if(!0===r.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return u};micromatch.match=micromatch,micromatch.matcher=(e,t)=>picomatch(e,t),micromatch.isMatch=(e,t,r)=>picomatch(t,r)(e),micromatch.any=micromatch.isMatch,micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],a=new Set(micromatch(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),o.push(e.output)}}));for(let e of o)a.has(e)||n.add(e);return[...n]},micromatch.contains=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${util.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>micromatch.contains(e,t,r));if("string"==typeof t){if(isEmptyString(e)||isEmptyString(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return micromatch.isMatch(e,t,{...r,contains:!0})},micromatch.matchKeys=(e,t,r)=>{if(!utils.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=micromatch(Object.keys(e),t,r),o={};for(let t of n)o[t]=e[t];return o},micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=picomatch(String(e),r);if(n.some(e=>t(e)))return!0}return!1},micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=picomatch(String(e),r);if(!n.every(e=>t(e)))return!1}return!0},micromatch.all=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${util.inspect(e)}"`);return[].concat(t).every(t=>picomatch(t,r)(e))},micromatch.capture=(e,t,r)=>{let n=utils.isWindows(r),o=picomatch.makeRe(String(e),{...r,capture:!0}).exec(n?utils.toPosixSlashes(t):t);if(o)return o.slice(1).map(e=>void 0===e?"":e)},micromatch.makeRe=(...e)=>picomatch.makeRe(...e),micromatch.scan=(...e)=>picomatch.scan(...e),micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let e of braces_1(String(n),t))r.push(picomatch.parse(e,t));return r},micromatch.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!hasBraces(e)?[e]:braces_1(e,t)},micromatch.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:!0})},micromatch.hasBraces=hasBraces;var micromatch_1=micromatch,match=createCommonjsModule(function(e){var t=e.exports;t.match=function(e,t,r,n){var o=handlebarsUtils.options(this,r,n);return"string"==typeof t&&(t=t.split(/, */)),micromatch_1(e,t,o)},t.isMatch=function(e,t,r,n){var o=handlebarsUtils.options(this,r,n);return micromatch_1.isMatch(e,t,o)},t.mm=function(){return console.log("the {{mm}} helper is depcrecated and will be removed"),console.log("in handlebars-helpers v1.0.0, please use the {{match}}"),console.log("helper instead."),t.match.apply(this,arguments)}}),math$1=createCommonjsModule(function(e){var t=e.exports;t.abs=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.abs(e)},t.add=function(e,t){return isNaN(e)||isNaN(t)?"string"==typeof e&&"string"==typeof t?e+t:"":Number(e)+Number(t)},t.avg=function(){const e=[].concat.apply([],arguments);return e.pop(),t.sum(e)/e.length},t.ceil=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.ceil(e)},t.divide=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)/Number(t)},t.floor=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.floor(e)},t.minus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.modulo=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)%Number(t)},t.multiply=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)*Number(t)},t.plus=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)+Number(t)},t.random=function(e,t){if(isNaN(e))throw new TypeError("expected minimum to be a number");if(isNaN(t))throw new TypeError("expected maximum to be a number");return utils$2.random(e,t)},t.remainder=function(e,t){return e%t},t.round=function(e){if(isNaN(e))throw new TypeError("expected a number");return Math.round(e)},t.subtract=function(e,t){if(isNaN(e))throw new TypeError("expected the first argument to be a number");if(isNaN(t))throw new TypeError("expected the second argument to be a number");return Number(e)-Number(t)},t.sum=function(){for(var e=[].concat.apply([],arguments),t=e.length,r=0;t--;)isNaN(e[t])||(r+=Number(e[t]));return r}}),misc=createCommonjsModule(function(e){var t=e.exports;t.frame=function(e,t){"object"==typeof e&&e.hash&&(e=(t=e).data);var r=createFrame(e);return"object"!=typeof t&&(t={}),r.extend(t.hash),t.fn(this,{data:r})},t.option=function(e,t,r){return getValue$1(handlebarsUtils.options(this,t,r),e)},t.noop=function(e){return e.fn(this)},t.typeOf=function(e){return typeof e},t.withHash=function(e){return e.hash&&Object.keys(e.hash).length?e.fn(e.hash):e.inverse(this)}}),number$1=createCommonjsModule(function(e){var t=e.exports;t.bytes=function(e,t,r){if(null==e)return"0 B";if(isNaN(e)&&!(e=e.length))return"0 B";isNaN(t)&&(t=2);var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];t=Math.pow(10,t),e=Number(e);for(var o=n.length-1;o-- >=0;){var a=Math.pow(10,3*o);if(a<=e+1){e=Math.round(e*t/a)/t,e+=" "+n[o];break}}return e},t.addCommas=function(e){return e.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},t.phoneNumber=function(e){return"("+(e=e.toString()).substr(0,3)+") "+e.substr(3,3)+"-"+e.substr(6,4)},t.toAbbr=function(e,t){isNaN(e)&&(e=0),handlebarsUtils.isUndefined(t)&&(t=2),e=Number(e),t=Math.pow(10,t);for(var r=["k","m","b","t","q"],n=r.length-1;n>=0;){var o=Math.pow(10,3*(n+1));if(o<=e+1){e=Math.round(e*t/o)/t,e+=r[n];break}n--}return e},t.toExponential=function(e,t){return isNaN(e)&&(e=0),handlebarsUtils.isUndefined(t)&&(t=0),Number(e).toExponential(t)},t.toFixed=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),Number(e).toFixed(t)},t.toFloat=function(e){return parseFloat(e)},t.toInt=function(e){return parseInt(e,10)},t.toPrecision=function(e,t){return isNaN(e)&&(e=0),isNaN(t)&&(t=1),Number(e).toPrecision(t)}}),toString$1={}.toString,isarray=Array.isArray||function(e){return"[object Array]"==toString$1.call(e)},isobject=function(e){return null!=e&&"object"==typeof e&&!1===isarray(e)},relative_1=relative;function relative(e,t,r){if("string"!=typeof e)throw new TypeError("relative expects a string.");if(""==e&&!t)return e;var n=arguments.length;1===n&&(t=e,e=browser.cwd(),r=null),2===n&&"boolean"==typeof t&&(t=e,e=browser.cwd(),r=!0),2===n&&"object"==typeof t&&(r=t,t=e,e=browser.cwd());var o=t,a=endsWith(e,"/"),i=endsWith(t,"/");e=unixify(e),t=unixify(t),a&&(e+="/"),isFile(e,r)&&(e=path.dirname(e));var s=path.relative(e,t);if(""===s)return".";var u=trimEnd(o,"/");return i&&(s===u||endsWith(s,u))&&(s+="/"),s}function unixify(e){return e.replace(/[\\\/]+/g,"/")}function trimEnd(e,t){return e.slice(0,e.length-t.length)}function endsWith(e,t){return e.slice(-t.length)[0]===t}function tryStats(e){try{return fs.statSync(e)}catch(e){}return null}function isDir(e,t){if(endsWith(e,"/"))return!0;if(null===t&&(t=tryStats(e)),isobject(t)&&"function"==typeof t.isDirectory)return t.isDirectory();var r=e.split("/"),n=r[r.length-1];return!n||-1===n.indexOf(".")}function isFile(e,t){return!0===t&&(t=tryStats(e)),!isDir(e,t)}relative.toBase=function(e,t){e=unixify(e);var r=(t=unixify(t)).slice(e.length);return"/"===r.charAt(0)&&(r=r.slice(1)),r};var path_1=createCommonjsModule(function(e){var t=e.exports;t.absolute=function(e,t){t=t||{data:{}};var r=handlebarsUtils.options(this,t),n=Object.assign({},t.data.root,r).cwd||browser.cwd();return path.resolve(n,e)},t.dirname=function(e,t){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.dirname(e)},t.relative=function(e,t){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("first path","string",e));if("string"!=typeof t)throw new TypeError(handlebarsUtils.expectedType("second path","string",t));return relative_1(e,t)},t.basename=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.basename(e)},t.stem=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.basename(e,path.extname(e))},t.extname=function(e){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return path.extname(e)},t.resolve=function(e){var t=[].slice.call(arguments),r=handlebarsUtils.options(this,t.pop()),n=path.resolve(r.cwd||browser.cwd());return t.unshift(n),path.resolve.apply(path,t)},t.segments=function(e,t,r){if("string"!=typeof e)throw new TypeError(handlebarsUtils.expectedType("filepath","string",e));return e.split(/[\\\/]+/).slice(t,r).join("/")}}),regex$2=createCommonjsModule(function(e){var t=e.exports;t.toRegex=function(e,t,r){var n=handlebarsUtils.options({},t,r);return new RegExp(e,n.flags)},t.test=function(e,t){if("string"!=typeof e)return!1;if("regexp"!==kindOf$1(t))throw new TypeError("expected a regular expression");return t.test(e)}});const lorem="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Crase tempor malesuada magna a vehicula. Nam sollicitudin vel turpis id fermentum. Ut sit amet nisl ac nulla vulputate ultrices vitae vitae urna. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum. Nulla at nulla justo, eget luctus tortor. Nulla facilisi. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Proin vel ante a orci tempus eleifend ut et magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus luctus urna sed urna ultricies ac tempor dui sagittis. In condimentum facilisis porta. Sed nec diam eu diam mattis viverra. Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus fermentum nibh in augue. Praesent a lacus at urna congue rutrum. Nulla enim eros, porttitor eu, tempus id, varius non, nibh. Vestibulum imperdiet nibh vel magna lacinia ultrices. Sed id ligula quis est convallis tempor. \n\n Aliquam erat volutpat. Integer aliquam ultrices nunc. Ut lectus dui, tincidunt ac, scelerisque ac, ultrices vitae, risus. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur vehicula nisi a magna. Sed nec libero. Phasellus nonummy magna. Sed et libero nec ligula blandit fringilla. Ut pretium tempus gravida. Proin lacinia justo vel ipsum varius eget auctor est iaculis. \n\n Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce luctus vestibulum augue ut aliquet. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. \n\n Nam dui erat, auctor a, dignissim quis. Aenean dignissim pellentesque felis. Sed gravida ante at nunc dictum placerat. Donec placerat nisl magna, et faucibus arcu condimentum sed. Curabitur et eros ac orci vehicula vestibulum sit amet at nunc. Maecenas non diam cursus, tincidunt nisi vitae, hendrerit enim. Donec vulputate felis id felis dapibus fermentum. \n\n Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. Praesent id justo in neque elementum ultrices. Sed malesuada augue eu sapien sodales congue. Nam ut dui. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi. \n\n Pellentesque sit amet mauris eget lectus commodo viverra. Donec vulputate interdum sollicitudin. Nunc lacinia auctor quam sed pellentesque. Aliquam dui mauris, mattis quis lacus id, pellentesque lobortis odio. Cras ultricies ligula sed magna dictum porta. Curabitur aliquet quam id dui posuere blandit. Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Sed porttitor lectus nibh. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. \n\n Cras ultricies ligula sed magna dictum porta. Donec rutrum congue leo eget malesuada. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada. Vivamus suscipit tortor eget felis porttitor volutpat. Nulla porttitor accumsan tincidunt. \n\n Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. \n\n Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. \n\n Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Pellentesque in ipsum id orci porta dapibus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Curabitur aliquet quam id dui posuere blandit. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.";var lorem_1=lorem,string$1=createCommonjsModule(function(e,t){var r=e.exports;r.append=function(e,t){return"string"==typeof e&&"string"==typeof t?e+t:e},r.camelcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return e.toUpperCase()})},r.capitalize=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},r.capitalizeAll=function(e){return"string"!=typeof e?"":handlebarsUtils.isString(e)?e.replace(/\w\S*/g,function(e){return r.capitalize(e)}):void 0},r.center=function(e,t){if("string"!=typeof e)return"";for(var r="",n=0;n<t;)r+=" ",n++;return r+e+r},r.chop=function(e){return"string"!=typeof e?"":utils$2.chop(e)},r.dashcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"-"+e})},r.dotcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"."+e})},r.downcase=function(){return r.lowercase.apply(this,arguments)},r.ellipsis=function(e,t){if(handlebarsUtils.isString(e))return e.length<=t?e:r.truncate(e,t)+"…"},r.hyphenate=function(e){return"string"!=typeof e?"":e.split(" ").join("-")},r.isString=function(e){return"string"==typeof e},r.lowercase=function(e){return handlebarsUtils.isObject(e)&&e.fn?e.fn(this).toLowerCase():"string"!=typeof e?"":e.toLowerCase()},r.occurrences=function(e,t){if("string"!=typeof e)return"";for(var r=t.length,n=0,o=0;(n=e.indexOf(t,n))>-1;)o++,n+=r;return o},r.pascalcase=function(e){return"string"!=typeof e?"":(e=utils$2.changecase(e,function(e){return e.toUpperCase()})).charAt(0).toUpperCase()+e.slice(1)},r.pathcase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"/"+e})},r.plusify=function(e,t){return"string"!=typeof e?"":(handlebarsUtils.isString(t)||(t=" "),e.split(t).join("+"))},r.prepend=function(e,t){return"string"==typeof e&&"string"==typeof t?t+e:e},r.raw=function(e){var t=e.fn();if(!1!==handlebarsUtils.options(this,e).escape)for(var r=0;-1!==(r=t.indexOf("{{",r));)"\\"!==t[r-1]&&(t=t.slice(0,r)+"\\"+t.slice(r)),r+=3;return t},r.remove=function(e,t){return"string"!=typeof e?"":handlebarsUtils.isString(t)?e.split(t).join(""):e},r.removeFirst=function(e,t){return"string"!=typeof e?"":handlebarsUtils.isString(t)?e.replace(t,""):e},r.replace=function(e,t,r){return"string"!=typeof e?"":handlebarsUtils.isString(t)?(handlebarsUtils.isString(r)||(r=""),e.split(t).join(r)):e},r.replaceFirst=function(e,t,r){return"string"!=typeof e?"":handlebarsUtils.isString(t)?(handlebarsUtils.isString(r)||(r=""),e.replace(t,r)):e},r.reverse=array$1.reverse,r.sentence=function(e){return"string"!=typeof e?"":e.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},r.snakecase=function(e){return"string"!=typeof e?"":utils$2.changecase(e,function(e){return"_"+e})},r.split=function(e,t){return"string"!=typeof e?"":(handlebarsUtils.isString(t)||(t=","),e.split(t))},r.startsWith=function(e,t,r){return r=[].slice.call(arguments).pop(),handlebarsUtils.isString(t)&&0===t.indexOf(e)?r.fn(this):"function"==typeof r.inverse?r.inverse(this):""},r.titleize=function(e){if("string"!=typeof e)return"";for(var r=e.replace(/[- _]+/g," ").split(" "),n=r.length,o=[],a=0;n--;){var i=r[a++];o.push(t.capitalize(i))}return o.join(" ")},r.trim=function(e){return"string"==typeof e?e.trim():""},r.trimLeft=function(e){if(handlebarsUtils.isString(e))return e.replace(/^\s+/,"")},r.trimRight=function(e){if(handlebarsUtils.isString(e))return e.replace(/\s+$/,"")},r.truncate=function(e,t,r){if(handlebarsUtils.isString(e))return"string"!=typeof r&&(r=""),e.length>t?e.slice(0,t-r.length)+r:e},r.truncateWords=function(e,t,r){if(handlebarsUtils.isString(e)&&!isNaN(t)){"string"!=typeof r&&(r="…");var n=Number(t),o=e.split(/[ \t]/);return n>=o.length?e:(o=o.slice(0,n)).join(" ").trim()+r}},r.upcase=function(){return r.uppercase.apply(this,arguments)},r.uppercase=function(e){return handlebarsUtils.isObject(e)&&e.fn?e.fn(this).toUpperCase():"string"!=typeof e?"":e.toUpperCase()},r.lorem=function(e){return(isNaN(e)||e<1||!e)&&(e=11),lorem_1.substring(0,e)}}),maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(e){throw new RangeError(errors[e])}function map$1(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function mapDomain(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+map$1((e=e.replace(regexSeparators,".")).split("."),t).join(".")}function ucs2decode(e){for(var t,r,n=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function digitToBasic(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function adapt(e,t,r){var n=0;for(e=r?floor(e/damp):e>>1,e+=floor(e/t);e>baseMinusTMin*tMax>>1;n+=base)e=floor(e/baseMinusTMin);return floor(n+(baseMinusTMin+1)*e/(e+skew))}function encode(e){var t,r,n,o,a,i,s,u,c,l,p,f,h,d,g,m=[];for(f=(e=ucs2decode(e)).length,t=initialN,r=0,a=initialBias,i=0;i<f;++i)(p=e[i])<128&&m.push(stringFromCharCode(p));for(n=o=m.length,o&&m.push(delimiter);n<f;){for(s=maxInt,i=0;i<f;++i)(p=e[i])>=t&&p<s&&(s=p);for(s-t>floor((maxInt-r)/(h=n+1))&&error("overflow"),r+=(s-t)*h,t=s,i=0;i<f;++i)if((p=e[i])<t&&++r>maxInt&&error("overflow"),p==t){for(u=r,c=base;!(u<(l=c<=a?tMin:c>=a+tMax?tMax:c-a));c+=base)g=u-l,d=base-l,m.push(stringFromCharCode(digitToBasic(l+g%d,0))),u=floor(g/d);m.push(stringFromCharCode(digitToBasic(u,0))),a=adapt(r,h,n==o),r=0,++n}++r,++t}return m.join("")}function toASCII(e){return mapDomain(e,function(e){return regexNonASCII.test(e)?"xn--"+encode(e):e})}function hasOwnProperty$f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var isArray$1=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function stringifyPrimitive(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function stringify(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?map(objectKeys(e),function(n){var o=encodeURIComponent(stringifyPrimitive(n))+r;return isArray$1(e[n])?map(e[n],function(e){return o+encodeURIComponent(stringifyPrimitive(e))}).join(t):o+encodeURIComponent(stringifyPrimitive(e[n]))}).join(t):n?encodeURIComponent(stringifyPrimitive(n))+r+encodeURIComponent(stringifyPrimitive(e)):""}function map(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var objectKeys=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};function parse$1(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;n&&"number"==typeof n.maxKeys&&(i=n.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var u=0;u<s;++u){var c,l,p,f,h=e[u].replace(a,"%20"),d=h.indexOf(r);d>=0?(c=h.substr(0,d),l=h.substr(d+1)):(c=h,l=""),p=decodeURIComponent(c),f=decodeURIComponent(l),hasOwnProperty$f(o,p)?isArray$1(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}var querystring={encode:stringify,stringify:stringify,decode:parse$1,parse:parse$1};const URL=global$1.URL,URLSearchParams=global$1.URLSearchParams;var url$1={parse:urlParse,resolve:urlResolve,resolveObject:urlResolveObject,fileURLToPath:urlFileURLToPath,format:urlFormat,Url:Url,URL:URL,URLSearchParams:URLSearchParams};function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(e,t,r){if(e&&isObject$5(e)&&e instanceof Url)return e;var n=new Url;return n.parse(e,t,r),n}function parse(e,t,r,n){if(!isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",i=t.split(a);i[0]=i[0].replace(/\\/g,"/");var s=t=i.join(a);if(s=s.trim(),!n&&1===t.split("#").length){var u=simplePathPattern.exec(s);if(u)return e.path=s,e.href=s,e.pathname=u[1],u[2]?(e.search=u[2],e.query=r?parse$1(e.search.substr(1)):e.search.substr(1)):r&&(e.search="",e.query={}),e}var c,l,p,f,h=protocolPattern.exec(s);if(h){var d=(h=h[0]).toLowerCase();e.protocol=d,s=s.substr(h.length)}if(n||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&hostlessProtocol[h]||(s=s.substr(2),e.slashes=!0)}if(!hostlessProtocol[h]&&(g||h&&!slashedProtocol[h])){var m,y,_=-1;for(c=0;c<hostEndingChars.length;c++)-1!==(l=s.indexOf(hostEndingChars[c]))&&(-1===_||l<_)&&(_=l);for(-1!==(y=-1===_?s.lastIndexOf("@"):s.lastIndexOf("@",_))&&(m=s.slice(0,y),s=s.slice(y+1),e.auth=decodeURIComponent(m)),_=-1,c=0;c<nonHostChars.length;c++)-1!==(l=s.indexOf(nonHostChars[c]))&&(-1===_||l<_)&&(_=l);-1===_&&(_=s.length),e.host=s.slice(0,_),s=s.slice(_),parseHost(e),e.hostname=e.hostname||"";var b="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!b){var v=e.hostname.split(/\./);for(c=0,p=v.length;c<p;c++){var A=v[c];if(A&&!A.match(hostnamePartPattern)){for(var S="",$=0,C=A.length;$<C;$++)A.charCodeAt($)>127?S+="x":S+=A[$];if(!S.match(hostnamePartPattern)){var E=v.slice(0,c),R=v.slice(c+1),w=A.match(hostnamePartStart);w&&(E.push(w[1]),R.unshift(w[2])),R.length&&(s="/"+R.join(".")+s),e.hostname=E.join(".");break}}}}e.hostname.length>hostnameMaxLen?e.hostname="":e.hostname=e.hostname.toLowerCase(),b||(e.hostname=toASCII(e.hostname)),f=e.port?":"+e.port:"";var x=e.hostname||"";e.host=x+f,e.href+=e.host,b&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!unsafeProtocol[d])for(c=0,p=autoEscape.length;c<p;c++){var O=autoEscape[c];if(-1!==s.indexOf(O)){var T=encodeURIComponent(O);T===O&&(T=escape(O)),s=s.split(O).join(T)}}var k=s.indexOf("#");-1!==k&&(e.hash=s.substr(k),s=s.slice(0,k));var P=s.indexOf("?");if(-1!==P?(e.search=s.substr(P),e.query=s.substr(P+1),r&&(e.query=parse$1(e.query)),s=s.slice(0,P)):r&&(e.search="",e.query={}),s&&(e.pathname=s),slashedProtocol[d]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){f=e.pathname||"";var L=e.search||"";e.path=f+L}return e.href=format(e),e}function urlFileURLToPath(e){if("string"==typeof e)e=(new Url).parse(e);else if(!(e instanceof Url))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+String(e));if("file:"!==e.protocol)throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(e)}function getPathFromURLPosix(e){const t=e.pathname;for(let e=0;e<t.length;e++)if("%"===t[e]){const r=32|t.codePointAt(e+2);if("2"===t[e+1]&&102===r)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(t)}function urlFormat(e){return isString(e)&&(e=parse({},e)),format(e)}function format(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=e.protocol||"",n=e.pathname||"",o=e.hash||"",a=!1,i="";e.host?a=t+e.host:e.hostname&&(a=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(a+=":"+e.port)),e.query&&isObject$5(e.query)&&Object.keys(e.query).length&&(i=stringify(e.query));var s=e.search||i&&"?"+i||"";return r&&":"!==r.substr(-1)&&(r+=":"),e.slashes||(!r||slashedProtocol[r])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),r+a+n+(s=s.replace("#","%23"))+o}function urlResolve(e,t){return urlParse(e,!1,!0).resolve(t)}function urlResolveObject(e,t){return e?urlParse(e,!1,!0).resolveObject(t):t}function parseHost(e){var t=e.host,r=portPattern.exec(t);r&&(":"!==(r=r[0])&&(e.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t)}Url.prototype.parse=function(e,t,r){return parse(this,e,t,r)},Url.prototype.format=function(){return format(this)},Url.prototype.resolve=function(e){return this.resolveObject(urlParse(e,!1,!0)).format()},Url.prototype.resolveObject=function(e){if(isString(e)){var t=new Url;t.parse(e,!1,!0),e=t}for(var r,n=new Url,o=Object.keys(this),a=0;a<o.length;a++){var i=o[a];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(n[c]=e[c])}return slashedProtocol[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!slashedProtocol[e.protocol]){for(var l=Object.keys(e),p=0;p<l.length;p++){var f=l[p];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||hostlessProtocol[e.protocol])n.pathname=e.pathname;else{for(r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",d=n.search||"";n.path=h+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g,m=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||m||n.host&&e.pathname,b=_,v=n.pathname&&n.pathname.split("/")||[],A=n.protocol&&!slashedProtocol[n.protocol];if(r=e.pathname&&e.pathname.split("/")||[],A&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),_=_&&(""===r[0]||""===v[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=r;else if(r.length)v||(v=[]),v.pop(),v=v.concat(r),n.search=e.search,n.query=e.query;else if(!isNullOrUndefined(e.search))return A&&(n.hostname=n.host=v.shift(),(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),n.search=e.search,n.query=e.query,isNull(n.pathname)&&isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=v.slice(-1)[0],$=(n.host||e.host||v.length>1)&&("."===S||".."===S)||""===S,C=0,E=v.length;E>=0;E--)"."===(S=v[E])?v.splice(E,1):".."===S?(v.splice(E,1),C++):C&&(v.splice(E,1),C--);if(!_&&!b)for(;C--;C)v.unshift("..");!_||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),$&&"/"!==v.join("/").substr(-1)&&v.push("");var R=""===v[0]||v[0]&&"/"===v[0].charAt(0);return A&&(n.hostname=n.host=R?"":v.length?v.shift():"",(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),(_=_||n.host&&v.length)&&!R&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),isNull(n.pathname)&&isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Url.prototype.parseHost=function(){return parseHost(this)};var url_1=createCommonjsModule(function(e){var t=e.exports;t.encodeURI=function(e){if(handlebarsUtils.isString(e))return encodeURIComponent(e)},t.escape=function(e){if(handlebarsUtils.isString(e))return querystring.escape(e)},t.decodeURI=function(e){if(handlebarsUtils.isString(e))return decodeURIComponent(e)},t.urlResolve=function(e,t){return url$1.resolve(e,t)},t.urlParse=function(e){return url$1.parse(e)},t.stripQuerystring=function(e){if(handlebarsUtils.isString(e))return e.split("?")[0]},t.stripProtocol=function(e){if(handlebarsUtils.isString(e)){var t=url$1.parse(e);return t.protocol="",t.format()}}}),_default=rng;let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var rng_1=Object.defineProperty({default:_default},"__esModule",{value:!0}),regex$1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}),validate_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=regex$1)&&r.__esModule?r:{default:r};var o=function(e){return"string"==typeof e&&n.default.test(e)};t.default=o}),stringify_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var i=function(e,t=0){const r=a(e,t);if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r};t.default=i}),v1_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=rng_1)&&r.__esModule?r:{default:r};let o,a,i=0,s=0;var u=function(e,t,r){let u=t&&r||0;const c=t||new Array(16);let l=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:a;if(null==l||null==p){const t=e.random||(e.rng||n.default)();null==l&&(l=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:s+1;const d=f-i+(h-s)/1e4;if(d<0&&void 0===e.clockseq&&(p=p+1&16383),(d<0||f>i)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=f,s=h,a=p,f+=122192928e5;const g=(1e4*(268435455&f)+h)%4294967296;c[u++]=g>>>24&255,c[u++]=g>>>16&255,c[u++]=g>>>8&255,c[u++]=255&g;const m=f/4294967296*1e4&268435455;c[u++]=m>>>8&255,c[u++]=255&m,c[u++]=m>>>24&15|16,c[u++]=m>>>16&255,c[u++]=p>>>8|128,c[u++]=255&p;for(let e=0;e<6;++e)c[u+e]=l[e];return t||(0,stringify_1.unsafeStringify)(c)};t.default=u}),parse_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};var o=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};t.default=o}),v35_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function i(e,o,a,i){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=(0,n.default)(o)),16!==(null===(s=o)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+e.length);if(u.set(o),u.set(e,o.length),u=r(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,a){i=i||0;for(let e=0;e<16;++e)a[i+e]=u[e];return a}return(0,stringify_1.unsafeStringify)(u)}try{i.name=e}catch(e){}return i.DNS=o,i.URL=a,i};var r,n=(r=parse_1)&&r.__esModule?r:{default:r};const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a}),md5_1=createCommonjsModule(function(e,t){function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,a,i){return n((s=n(n(t,e),n(o,i)))<<(u=a)|s>>>32-u,r);var s,u}function a(e,t,r,n,a,i,s){return o(t&r|~t&n,e,t,a,i,s)}function i(e,t,r,n,a,i,s){return o(t&n|r&~n,e,t,a,i,s)}function s(e,t,r,n,a,i,s){return o(t^r^n,e,t,a,i,s)}function u(e,t,r,n,a,i,s){return o(r^(t|~n),e,t,a,i,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,p=271733878;for(let t=0;t<e.length;t+=16){const r=o,f=c,h=l,d=p;o=a(o,c,l,p,e[t],7,-680876936),p=a(p,o,c,l,e[t+1],12,-389564586),l=a(l,p,o,c,e[t+2],17,606105819),c=a(c,l,p,o,e[t+3],22,-1044525330),o=a(o,c,l,p,e[t+4],7,-176418897),p=a(p,o,c,l,e[t+5],12,1200080426),l=a(l,p,o,c,e[t+6],17,-1473231341),c=a(c,l,p,o,e[t+7],22,-45705983),o=a(o,c,l,p,e[t+8],7,1770035416),p=a(p,o,c,l,e[t+9],12,-1958414417),l=a(l,p,o,c,e[t+10],17,-42063),c=a(c,l,p,o,e[t+11],22,-1990404162),o=a(o,c,l,p,e[t+12],7,1804603682),p=a(p,o,c,l,e[t+13],12,-40341101),l=a(l,p,o,c,e[t+14],17,-1502002290),c=a(c,l,p,o,e[t+15],22,1236535329),o=i(o,c,l,p,e[t+1],5,-165796510),p=i(p,o,c,l,e[t+6],9,-1069501632),l=i(l,p,o,c,e[t+11],14,643717713),c=i(c,l,p,o,e[t],20,-373897302),o=i(o,c,l,p,e[t+5],5,-701558691),p=i(p,o,c,l,e[t+10],9,38016083),l=i(l,p,o,c,e[t+15],14,-660478335),c=i(c,l,p,o,e[t+4],20,-405537848),o=i(o,c,l,p,e[t+9],5,568446438),p=i(p,o,c,l,e[t+14],9,-1019803690),l=i(l,p,o,c,e[t+3],14,-187363961),c=i(c,l,p,o,e[t+8],20,1163531501),o=i(o,c,l,p,e[t+13],5,-1444681467),p=i(p,o,c,l,e[t+2],9,-51403784),l=i(l,p,o,c,e[t+7],14,1735328473),c=i(c,l,p,o,e[t+12],20,-1926607734),o=s(o,c,l,p,e[t+5],4,-378558),p=s(p,o,c,l,e[t+8],11,-2022574463),l=s(l,p,o,c,e[t+11],16,1839030562),c=s(c,l,p,o,e[t+14],23,-35309556),o=s(o,c,l,p,e[t+1],4,-1530992060),p=s(p,o,c,l,e[t+4],11,1272893353),l=s(l,p,o,c,e[t+7],16,-155497632),c=s(c,l,p,o,e[t+10],23,-1094730640),o=s(o,c,l,p,e[t+13],4,681279174),p=s(p,o,c,l,e[t],11,-358537222),l=s(l,p,o,c,e[t+3],16,-722521979),c=s(c,l,p,o,e[t+6],23,76029189),o=s(o,c,l,p,e[t+9],4,-640364487),p=s(p,o,c,l,e[t+12],11,-421815835),l=s(l,p,o,c,e[t+15],16,530742520),c=s(c,l,p,o,e[t+2],23,-995338651),o=u(o,c,l,p,e[t],6,-198630844),p=u(p,o,c,l,e[t+7],10,1126891415),l=u(l,p,o,c,e[t+14],15,-1416354905),c=u(c,l,p,o,e[t+5],21,-57434055),o=u(o,c,l,p,e[t+12],6,1700485571),p=u(p,o,c,l,e[t+3],10,-1894986606),l=u(l,p,o,c,e[t+10],15,-1051523),c=u(c,l,p,o,e[t+1],21,-2054922799),o=u(o,c,l,p,e[t+8],6,1873313359),p=u(p,o,c,l,e[t+15],10,-30611744),l=u(l,p,o,c,e[t+6],15,-1560198380),c=u(c,l,p,o,e[t+13],21,1309151649),o=u(o,c,l,p,e[t+4],6,-145523070),p=u(p,o,c,l,e[t+11],10,-1120210379),l=u(l,p,o,c,e[t+2],15,718787259),c=u(c,l,p,o,e[t+9],21,-343485551),o=n(o,r),c=n(c,f),l=n(l,h),p=n(p,d)}return[o,c,l,p]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))};t.default=c}),v3_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(v35_1),n=o(md5_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,n.default);t.default=a}),native=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r}),v4_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(native),n=o(rng_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,o){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||n.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=a[e];return t}return(0,stringify_1.unsafeStringify)(a)};t.default=a}),sha1_1=createCommonjsModule(function(e,t){function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const a=e.length/4+2,i=Math.ceil(a/16),s=new Array(i);for(let t=0;t<i;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];s[t]=r}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const a=new Uint32Array(80);for(let t=0;t<16;++t)a[t]=s[e][t];for(let e=16;e<80;++e)a[e]=n(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let i=o[0],u=o[1],c=o[2],l=o[3],p=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=n(i,5)+r(o,u,c,l)+p+t[o]+a[e]>>>0;p=l,l=c,c=n(u,30)>>>0,u=i,i=s}o[0]=o[0]+i>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+p>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};t.default=o}),v5_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(v35_1),n=o(sha1_1);function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,n.default);t.default=a}),nil=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="00000000-0000-0000-0000-000000000000"}),version_1=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=(r=validate_1)&&r.__esModule?r:{default:r};var o=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o}),commonjsBrowser=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return s.default}});var r=p(v1_1),n=p(v3_1),o=p(v4_1),a=p(v5_1),i=p(nil),s=p(version_1),u=p(validate_1),c=p(stringify_1),l=p(parse_1);function p(e){return e&&e.__esModule?e:{default:e}}}),uuid_1=createCommonjsModule(function(e){e.exports.uuid=function(){return commonjsBrowser.v4()}}),lib={array:array$1,code:code,collection:collection,comparison:comparison$1,html:html_1,i18n:i18n,inflection:inflection,match:match,math:math$1,misc:misc,number:number$1,object:object$1,path:path_1,regex:regex$2,string:string$1,url:url_1,uuid:uuid_1},handlebarsHelpers=createCommonjsModule(function(e){e.exports=function(t,r){"string"==typeof t?t=[t]:Array.isArray(t)||(r=t,t=null);var n=(r=r||{}).handlebars||r.hbs||handlebars;if(e.exports.handlebars=n,t)t.forEach(function(e){n.registerHelper(lib[e])});else for(const e in lib){const t=lib[e];n.registerHelper(t)}return n.helpers};for(const t in lib){const r=lib[t];e.exports[t]=function(t){var n=(t=t||{}).handlebars||t.hbs||handlebars;return e.exports.handlebars=n,n.registerHelper(r),r}}e.exports.utils=utils$2}),dayjs_min=createCommonjsModule(function(e,t){e.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",a="minute",i="hour",s="day",u="week",c="month",l="quarter",p="year",f="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,c),a=r-o<0,i=t.clone().add(n+(a?-1:1),c);return+(-(n+(r-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:p,w:u,d:s,D:f,h:i,m:a,s:o,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=m;var A="$isDayjsObject",S=function(e){return e instanceof R||!(!e||!e[A])},$=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();v[a]&&(o=a),r&&(v[a]=r,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;v[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(S(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new R(r)},E=_;E.l=$,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return C(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<C(e)},y.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,n=!!E.u(t)||t,l=E.p(e),h=function(e,t){var o=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(s)},d=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,m=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case p:return n?h(1,0):h(31,11);case c:return n?h(1,m):h(0,m+1);case u:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return h(n?y-v:y+(6-v),m);case s:case f:return d(_+"Hours",0);case i:return d(_+"Minutes",1);case a:return d(_+"Seconds",2);case o:return d(_+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var r,u=E.p(e),l="set"+(this.$u?"UTC":""),h=(r={},r[s]=l+"Date",r[f]=l+"Date",r[c]=l+"Month",r[p]=l+"FullYear",r[i]=l+"Hours",r[a]=l+"Minutes",r[o]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],d=u===s?this.$D+(t-this.$W):t;if(u===c||u===p){var g=this.clone().set(f,1);g.$d[h](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[E.p(e)]()},y.add=function(n,l){var f,h=this;n=Number(n);var d=E.p(l),g=function(e){var t=C(h);return E.w(t.date(t.date()+Math.round(e*n)),h)};if(d===c)return this.set(c,this.$M+n);if(d===p)return this.set(p,this.$y+n);if(d===s)return g(1);if(d===u)return g(7);var m=(f={},f[a]=t,f[i]=r,f[o]=e,f)[d]||1,y=this.$d.getTime()+n*m;return E.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),a=this.$H,i=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=r.meridiem,p=function(e,r,o,a){return e&&(e[r]||e(t,n))||o[r].slice(0,a)},f=function(e){return E.s(a%12||12,e,"0")},d=l||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,u,2);case"ddd":return p(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return E.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(a,i,!0);case"A":return d(a,i,!1);case"m":return String(i);case"mm":return E.s(i,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,h){var d,g=this,m=E.p(f),y=C(n),_=(y.utcOffset()-this.utcOffset())*t,b=this-y,v=function(){return E.m(g,y)};switch(m){case p:d=v()/12;break;case c:d=v();break;case l:d=v()/3;break;case u:d=(b-_)/6048e5;break;case s:d=(b-_)/864e5;break;case i:d=b/r;break;case a:d=b/t;break;case o:d=b/e;break;default:d=b}return h?d:E.a(d)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return v[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=$(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),w=R.prototype;return C.prototype=w,[["$ms",n],["$s",o],["$m",a],["$H",i],["$W",s],["$M",c],["$y",p],["$D",f]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,R,C),e.$i=!0),C},C.locale=$,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=v[b],C.Ls=v,C.p={},C}()}),duration$1=createCommonjsModule(function(e,t){var r,n,o,a,i,s,u,c,l,p,f,h,d,g,m,y,_,b,v,A;e.exports=(u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c=31536e6,months:l=2628e6,days:s=864e5,hours:i=36e5,minutes:a=6e4,seconds:o=1e3,milliseconds:1,weeks:6048e5},h=function(e){return e instanceof v},d=function(e,t,r){return new v(e,r,t.$l)},g=function(e){return n.p(e)+"s"},m=function(e){return e<0},y=function(e){return m(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},b=function(e,t){return e?m(e)?{negative:!0,format:""+_(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function e(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*f[g(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){n.$d[g(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(p);if(o){var a=o.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var t=e.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,r){return t+(e.$d[r]||0)*f[r]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=y(e/c),e%=c,this.$d.months=y(e/l),e%=l,this.$d.days=y(e/s),e%=s,this.$d.hours=y(e/i),e%=i,this.$d.minutes=y(e/a),e%=a,this.$d.seconds=y(e/o),e%=o,this.$d.milliseconds=e},t.toISOString=function(){var e=b(this.$d.years,"Y"),t=b(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=b(r,"D"),o=b(this.$d.hours,"H"),a=b(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var s=b(i,"S"),u=e.negative||t.negative||n.negative||o.negative||a.negative||s.negative,c=o.format||a.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+n.format+c+o.format+a.format+s.format;return"P"===l||"-P"===l?"P0D":l},t.toJSON=function(){return this.toISOString()},t.format=function(e){var t=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return t.replace(u,function(e,t){return t||String(r[e])})},t.as=function(e){return this.$ms/f[g(e)]},t.get=function(e){var t=this.$ms,r=g(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?y(t/f[r]):this.$d[r],t||0},t.add=function(e,t,r){var n;return n=t?e*f[g(t)]:h(e)?e.$ms:d(e,this).$ms,d(this.$ms+n*(r?-1:1),this)},t.subtract=function(e,t){return this.add(e,t,!0)},t.locale=function(e){var t=this.clone();return t.$l=e,t},t.clone=function(){return d(this.$ms,this)},t.humanize=function(e){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},e}(),A=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},function(e,t,o){r=o,n=o().$utils(),o.duration=function(e,t){var r=o.locale();return d(e,{$l:r},t)},o.isDuration=h;var a=t.prototype.add,i=t.prototype.subtract;t.prototype.add=function(e,t){return h(e)?A(this,e,1):a.bind(this)(e,t)},t.prototype.subtract=function(e,t){return h(e)?A(this,e,-1):i.bind(this)(e,t)}})}),advancedFormat=createCommonjsModule(function(e,t){e.exports=function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return n.bind(this)(a)}}}),isoWeek=createCommonjsModule(function(e,t){var r;e.exports=(r="day",function(e,t,n){var o=function(e){return e.add(4-e.isoWeekday(),r)},a=t.prototype;a.isoWeekYear=function(){return o(this).year()},a.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),r);var t,a,i,s=o(this),u=(t=this.isoWeekYear(),i=4-(a=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(i+=7),a.add(i,r));return s.diff(u,"week")+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var i=a.startOf;a.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):i.bind(this)(e,t)}})}),weekYear=createCommonjsModule(function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),r=this.year();return 1===t&&11===e?r+1:0===e&&t>=52?r-1:r}}}),weekOfYear=createCommonjsModule(function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t,o){var a=t.prototype;a.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(n).add(1,n).date(t),i=o(this).endOf(r);if(a.isBefore(i))return 1}var s=o(this).startOf(n).date(t).startOf(r).subtract(1,"millisecond"),u=this.diff(s,r,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}),relativeTime=createCommonjsModule(function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,t,r,o){return n.fromToBase(e,t,r,o)}r.en.relativeTime=o,n.fromToBase=function(t,n,a,i,s){for(var u,c,l,p=a.$locale().relativeTime||o,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,d=0;d<h;d+=1){var g=f[d];g.d&&(u=i?r(t).diff(a,g.d,!0):a.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(u));if(l=u>0,m<=g.r||!g.r){m<=1&&d>0&&(g=f[d-1]);var y=p[g.l];s&&(m=s(""+m)),c="string"==typeof y?y.replace("%d",m):y(m,n,g.l,l);break}}if(n)return c;var _=l?p.future:p.past;return"function"==typeof _?_(c):_.replace("%s",c)},n.to=function(e,t){return a(e,t,this,!0)},n.from=function(e,t){return a(e,t,this)};var i=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(i(this),e)},n.fromNow=function(e){return this.from(i(this),e)}}}),utc=createCommonjsModule(function(e,t){var r,n,o;e.exports=(r="minute",n=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g,function(e,t,a){var i=t.prototype;a.utc=function(e){return new t({date:e,utc:!0,args:arguments})},i.utc=function(e){var t=a(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),r):t},i.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=i.utcOffset;i.utcOffset=function(e,t){var a=this.$utils().u;if(a(e))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var r=(""+t[0]).match(o)||["-",0,0],a=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===a?i:-i}(e),null===e))return this;var i=Math.abs(e)<=16?60*e:e;if(0===i)return this.utc(t);var s=this.clone();if(t)return s.$offset=i,s.$u=!1,s;var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+u,r)).$offset=i,s.$x.$localOffset=u,s};var l=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var p=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),o=a(e).local();return f.call(n,o,t,r)}})}),timezone=createCommonjsModule(function(e,t){var r,n;e.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,t,o){var a,i=function(e,t,r){void 0===r&&(r={});var o=new Date(e),a=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",o=e+"|"+r,a=n[o];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[o]=a),a}(t,r);return a.formatToParts(o)},s=function(e,t){for(var n=i(e,t),a=[],s=0;s<n.length;s+=1){var u=n[s],c=u.type,l=u.value,p=r[c];p>=0&&(a[p]=parseInt(l,10))}var f=a[3],h=24===f?0:f,d=a[0]+"-"+a[1]+"-"+a[2]+" "+h+":"+a[4]+":"+a[5]+":000",g=+e;return(o.utc(d).valueOf()-(g-=g%1e3))/6e4},u=t.prototype;u.tz=function(e,t){void 0===e&&(e=a);var r,n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),u=Math.round((i-new Date(s))/1e3/60),c=15*-Math.round(i.getTimezoneOffset()/15)-u;if(Number(c)){if(r=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var l=r.utcOffset();r=r.add(n-l,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),r=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,r){var n=r&&t,i=r||t||a,u=s(+o(),i);if("string"!=typeof e)return o(e).tz(i);var c=function(e,t,r){var n=e-60*t*1e3,o=s(n,r);if(t===o)return[n,t];var a=s(n-=60*(o-t)*1e3,r);return o===a?[n,o]:[e-60*Math.min(o,a)*1e3,Math.max(o,a)]}(o.utc(e,n).valueOf(),u,i),l=c[0],p=c[1],f=o(l).utcOffset(p);return f.$x.$timezone=i,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){a=e}})});function isOptions(e){return"object"==typeof e&&"object"==typeof e.hash}function isApp(e){return"object"==typeof e&&"object"==typeof e.options&&"object"==typeof e.app}function getContext(e,t,r){if(isOptions(e))return getContext({},t,e);if(isOptions(t))return getContext(e,r,t);const n=isApp(e)?e.context:{};isOptions(r=r||{})||(t=Object.assign({},t,r)),isOptions(r)&&!0===r.hash.root&&(t=Object.assign({},r.data.root,t));let o=Object.assign({},n,t,r.hash);return isApp(e)||(o=Object.assign({},e,o)),isApp(e)&&e.view&&e.view.data&&(o=Object.assign({},o,e.view.data)),o}function initialConfig(e,t,r){return isOptions(t)&&(r=t,t=DEFAULT_FORMAT),isOptions(e)&&(r=e,t=null,e=null),{str:e,pattern:t,options:r}}function setLocale(e,t,r){const n=initialConfig(e,t,r),o=getContext(this,{lang:"en",date:new Date(n.str)},{});dayjs_min.locale(o.lang||o.language)}dayjs_min.extend(duration$1),dayjs_min.extend(advancedFormat),dayjs_min.extend(isoWeek),dayjs_min.extend(weekYear),dayjs_min.extend(weekOfYear),dayjs_min.extend(relativeTime),dayjs_min.extend(utc),dayjs_min.extend(timezone);const DEFAULT_FORMAT="MMMM DD, YYYY",date$1=(e,t,r)=>{const n=initialConfig(e,t,r);if(null==n.str&&null==n.pattern)return dayjs_min.locale("en"),dayjs_min().format(DEFAULT_FORMAT);setLocale(n.str,n.pattern,n.options);let o=dayjs_min(new Date(n.str));return o="string"==typeof n.options?"utc"===n.options.toLowerCase()?o.utc():o.tz(n.options):o.tz(dayjs_min.tz.guess()),""===n.pattern?o.toISOString():o.format(n.pattern)},duration=(e,t,r)=>{const n=initialConfig(e,t);setLocale(n.str,n.pattern);const o=dayjs_min.duration(n.str,n.pattern);return r&&!isOptions(r)?o.format(r):o.humanize()},difference=(e,t,r)=>dayjs_min(new Date(e)).diff(dayjs_min(new Date(t)),r),durationFromNow=e=>{const t=difference(e,(new Date).toISOString(),"ms");return duration(t,"ms")},HelperFunctionBuiltin=["#if","#unless","#each","#with","lookup","log","blockHelperMissing","each","helperMissing","if","unless","log","lookup","with"],EXTERNAL_FUNCTION_COLLECTIONS=["math","array","number","url","string","comparison","object","regex","uuid"],HelperFunctionNames={OBJECT:"object",ALL:"all",LITERAL:"literal",JS:"js",DECODE_ID:"decodeId"},LITERAL_MARKER="%LITERAL%",ADDED_HELPERS={date:date$1,duration:duration,difference:difference,durationFromNow:durationFromNow};function registerAll$1(e){for(let[t,r]of Object.entries(ADDED_HELPERS))e.registerHelper(t,r);let t=[];for(let r of EXTERNAL_FUNCTION_COLLECTIONS){let n=handlebarsHelpers[r]();for(let e of Object.entries(n)){const r=e[0];-1===HelperFunctionBuiltin.indexOf(r)&&-1===t.indexOf(r)&&t.push(r)}handlebarsHelpers[r]({handlebars:e})}externalHelperNames=t.concat(Object.keys(ADDED_HELPERS))}let externalHelperNames=[];function isJest(){return"jest"===browser.env.NODE_ENV||null!=browser.env.JEST_WORKER_ID&&"null"!==browser.env.JEST_WORKER_ID}function isTest(){return isJest()}const isTestingBackendJS=()=>browser&&browser.env.BACKEND_JS,setTestingBackendJS=()=>{browser.env.BACKEND_JS="1"},ALPHA_NUMERIC_REGEX=/^[A-Za-z0-9]+$/g,FIND_HBS_REGEX=/{{([^{].*?)}}/g,FIND_ANY_HBS_REGEX=/{?{{([^{].*?)}}}?/g,FIND_TRIPLE_HBS_REGEX=/{{{([^{].*?)}}}/g,isBackendService=()=>!(!isTest()||!isTestingBackendJS())||!isTest()&&"undefined"==typeof window,isJSAllowed=()=>browser&&!browser.env.NO_JS,findDoubleHbsInstances=e=>{let t=e;const r=new RegExp(FIND_HBS_REGEX),n=new RegExp(FIND_TRIPLE_HBS_REGEX),o=t.match(n);o&&o.forEach(e=>{t=t.replace(e,"")});const a=t.match(r);return a||[]},isAlphaNumeric=e=>e.match(ALPHA_NUMERIC_REGEX),swapStrings=(e,t,r,n)=>e.slice(0,t)+n+e.slice(t+r),btoa=e=>Buffer.from(e,"utf-8").toString("base64"),atob=e=>Buffer.from(e,"base64").toString("utf-8"),prefixStrings=(e,t,r)=>{const n=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),o=new RegExp(`\\b(${n.join("|")})\\b`,"g");return e.replace(o,`${r}$1`)};function frontendWrapJS(e){return`\n result = {\n result: null,\n error: null,\n };\n\n try {\n result.result = ${e};\n } catch (e) {\n result.error = e;\n }\n\n result;\n `}const externalCollections={math:math$1,array:array$1,number:number$1,url:url_1,string:string$1,comparison:comparison$1,object:object$1,regex:regex$2,uuid:uuid_1},helpersToRemoveForJs=["sortBy","map"],addedHelpers={date:date$1,difference:difference,duration:duration,durationFromNow:durationFromNow};let helpers;function getJsHelperList(){if(helpers)return helpers;helpers={};for(let e of Object.values(externalCollections))for(let[t,r]of Object.entries(e))helpers[t]=(...e)=>r(...e,{});helpers=Object.assign(Object.assign({},helpers),addedHelpers);for(const e of helpersToRemoveForJs)delete helpers[e];return Object.freeze(helpers),helpers}const iifeWrapper=e=>`(function(){\n${e}\n})();`;class JsTimeoutError extends Error{constructor(){super(JsTimeoutError.message),this.code=JsTimeoutError.code}}JsTimeoutError.message="Timed out while executing JS",JsTimeoutError.code="JS_TIMEOUT_ERROR";class UserScriptError extends Error{constructor(e){super(`error while running user-supplied JavaScript: ${e.toString()}`),this.userScriptError=e,this.code=UserScriptError.code}}UserScriptError.code="USER_SCRIPT_ERROR";var _mapping=createCommonjsModule(function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var a=r[o];e.call(n,a)?n[a].push(o):n[a]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}),placeholder={},push=Array.prototype.push;function baseArity(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function baseAry(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function cloneArray(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function createCloner(e){return function(t){return e({},t)}}function flatSpread(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var a=o[t],i=o.slice(0,t);return a&&push.apply(i,a),t!=n&&push.apply(i,o.slice(t+1)),e.apply(this,i)}}function wrapImmutable(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=t.apply(void 0,n);return e.apply(void 0,n),o}}}function baseConvert(e,t,r,n){var o="function"==typeof t,a=t===Object(t);if(a&&(n=r,r=t,t=void 0),null==r)throw new TypeError;n||(n={});var i=!("cap"in n)||n.cap,s=!("curry"in n)||n.curry,u=!("fixed"in n)||n.fixed,c=!("immutable"in n)||n.immutable,l=!("rearg"in n)||n.rearg,p=o?r:placeholder,f="curry"in n&&n.curry,h="fixed"in n&&n.fixed,d="rearg"in n&&n.rearg,g=o?r.runInContext():void 0,m=o?r:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},y=m.ary,_=m.assign,b=m.clone,v=m.curry,A=m.forEach,S=m.isArray,$=m.isError,C=m.isFunction,E=m.isWeakMap,R=m.keys,w=m.rearg,x=m.toInteger,O=m.toPath,T=R(_mapping.aryMethod),k={castArray:function(e){return function(){var t=arguments[0];return S(t)?e(cloneArray(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return i&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:baseAry(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!C(r))return e(r,Object(t));var n=[];return A(R(t),function(e){C(t[e])&&n.push([e,r.prototype[e]])}),e(r,Object(t)),A(n,function(e){var t=e[1];C(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]}),r}},nthArg:function(e){return function(t){var r=t<0?1:x(t)+1;return v(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return v(e(t,r),n)}},runInContext:function(t){return function(r){return baseConvert(e,t(r),n)}}};function P(e,t){if(i){var r=_mapping.iterateeRearg[e];if(r)return function(e,t){return B(e,function(e){var r=t.length;return baseArity(w(baseAry(e,r),t),r)})}(t,r);var n=!o&&_mapping.iterateeAry[e];if(n)return function(e,t){return B(e,function(e){return"function"==typeof e?baseAry(e,t):e})}(t,n)}return t}function L(e,t,r){if(u&&(h||!_mapping.skipFixed[e])){var n=_mapping.methodSpread[e],o=n&&n.start;return void 0===o?y(t,r):flatSpread(t,o)}return t}function I(e,t,r){return l&&r>1&&(d||!_mapping.skipRearg[e])?w(t,_mapping.methodRearg[e]||_mapping.aryRearg[r]):t}function M(e,t){for(var r=-1,n=(t=O(t)).length,o=n-1,a=b(Object(e)),i=a;null!=i&&++r<n;){var s=t[r],u=i[s];null==u||C(u)||$(u)||E(u)||(i[s]=b(r==o?u:Object(u))),i=i[s]}return a}function j(e,t){var r=_mapping.aliasToReal[e]||e,a=_mapping.remap[r]||r,i=n;return function(e){var n=o?g:m,s=o?g[a]:t,u=_(_({},i),e);return baseConvert(n,r,s,u)}}function B(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var o=l?0:r-1;return n[o]=t(n[o]),e.apply(void 0,n)}}function N(e,t,r){var n,o=_mapping.aliasToReal[e]||e,a=t,i=k[o];return i?a=i(t):c&&(_mapping.mutate.array[o]?a=wrapImmutable(t,cloneArray):_mapping.mutate.object[o]?a=wrapImmutable(t,createCloner(t)):_mapping.mutate.set[o]&&(a=wrapImmutable(t,M))),A(T,function(e){return A(_mapping.aryMethod[e],function(t){if(o==t){var r=_mapping.methodSpread[o],i=r&&r.afterRearg;return n=i?L(o,I(o,a,e),e):I(o,L(o,a,e),e),n=function(e,t,r){return f||s&&r>1?v(t,r):t}(0,n=P(o,n),e),!1}}),!n}),n||(n=a),n==t&&(n=f?v(n,1):function(){return t.apply(this,arguments)}),n.convert=j(o,t),n.placeholder=t.placeholder=r,n}if(!a)return N(t,r,p);var H=r,U=[];return A(T,function(e){A(_mapping.aryMethod[e],function(e){var t=H[_mapping.remap[e]||e];t&&U.push([e,N(e,t,H)])})}),A(R(H),function(e){var t=H[e];if("function"==typeof t){for(var r=U.length;r--;)if(U[r][0]==e)return;t.convert=j(e,t),U.push([e,t])}}),A(U,function(e){H[e[0]]=e[1]}),H.convert=function(e){return H.runInContext.convert(e)(void 0)},H.placeholder=H,A(R(H),function(e){A(_mapping.realToAlias[e]||[],function(t){H[t]=H[e]})}),H}var _baseConvert=baseConvert;function identity(e){return e}var identity_1=identity,freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto$h=Object.prototype,hasOwnProperty$e=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$e.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var o=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),o}var _getRawTag=getRawTag,objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(e){return nativeObjectToString.call(e)}var _objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}var _baseGetTag=baseGetTag;function isObject$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject_1(e))return!1;var t=_baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var isFunction_1=isFunction,coreJsData=_root["__core-js_shared__"],_coreJsData=coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(e){if(null!=e){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject_1(e)||_isMasked(e))&&(isFunction_1(e)?reIsNative:reIsHostCtor).test(_toSource(e))}var _baseIsNative=baseIsNative;function getValue(e,t){return null==e?void 0:e[t]}var _getValue=getValue;function getNative(e,t){var r=_getValue(e,t);return _baseIsNative(r)?r:void 0}var _getNative=getNative,WeakMap=_getNative(_root,"WeakMap"),_WeakMap=WeakMap,metaMap=_WeakMap&&new _WeakMap,_metaMap=metaMap,baseSetData=_metaMap?function(e,t){return _metaMap.set(e,t),e}:identity_1,_baseSetData=baseSetData,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject_1(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_baseCreate=baseCreate;function createCtor(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_baseCreate(e.prototype),n=e.apply(r,t);return isObject_1(n)?n:r}}var _createCtor=createCtor,WRAP_BIND_FLAG$5=1;function createBind(e,t,r){var n=t&WRAP_BIND_FLAG$5,o=_createCtor(e);return function t(){return(this&&this!==_root&&this instanceof t?o:e).apply(n?r:this,arguments)}}var _createBind=createBind;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _apply=apply,nativeMax$3=Math.max;function composeArgs(e,t,r,n){for(var o=-1,a=e.length,i=r.length,s=-1,u=t.length,c=nativeMax$3(a-i,0),l=Array(u+c),p=!n;++s<u;)l[s]=t[s];for(;++o<i;)(p||o<a)&&(l[r[o]]=e[o]);for(;c--;)l[s++]=e[o++];return l}var _composeArgs=composeArgs,nativeMax$2=Math.max;function composeArgsRight(e,t,r,n){for(var o=-1,a=e.length,i=-1,s=r.length,u=-1,c=t.length,l=nativeMax$2(a-s,0),p=Array(l+c),f=!n;++o<l;)p[o]=e[o];for(var h=o;++u<c;)p[h+u]=t[u];for(;++i<s;)(f||o<a)&&(p[h+r[i]]=e[o++]);return p}var _composeArgsRight=composeArgsRight;function countHolders(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var _countHolders=countHolders;function baseLodash(){}var _baseLodash=baseLodash,MAX_ARRAY_LENGTH=4294967295;function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH,this.__views__=[]}LazyWrapper.prototype=_baseCreate(_baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper;var _LazyWrapper=LazyWrapper;function noop(){}var noop_1=noop,getData=_metaMap?function(e){return _metaMap.get(e)}:noop_1,_getData=getData,realNames={},_realNames=realNames,objectProto$e=Object.prototype,hasOwnProperty$c=objectProto$e.hasOwnProperty;function getFuncName(e){for(var t=e.name+"",r=_realNames[t],n=hasOwnProperty$c.call(_realNames,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}var _getFuncName=getFuncName;function LodashWrapper(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}LodashWrapper.prototype=_baseCreate(_baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper;var _LodashWrapper=LodashWrapper,isArray=Array.isArray,isArray_1=isArray;function isObjectLike(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike;function copyArray(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _copyArray=copyArray;function wrapperClone(e){if(e instanceof _LazyWrapper)return e.clone();var t=new _LodashWrapper(e.__wrapped__,e.__chain__);return t.__actions__=_copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _wrapperClone=wrapperClone,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty;function lodash(e){if(isObjectLike_1(e)&&!isArray_1(e)&&!(e instanceof _LazyWrapper)){if(e instanceof _LodashWrapper)return e;if(hasOwnProperty$b.call(e,"__wrapped__"))return _wrapperClone(e)}return new _LodashWrapper(e)}lodash.prototype=_baseLodash.prototype,lodash.prototype.constructor=lodash;var wrapperLodash=lodash;function isLaziable(e){var t=_getFuncName(e),r=wrapperLodash[t];if("function"!=typeof r||!(t in _LazyWrapper.prototype))return!1;if(e===r)return!0;var n=_getData(r);return!!n&&e===n[0]}var _isLaziable=isLaziable,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(e){var t=0,r=0;return function(){var n=nativeNow(),o=HOT_SPAN-(n-r);if(r=n,o>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut,setData=_shortOut(_baseSetData),_setData=setData,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;function getWrapDetails(e){var t=e.match(reWrapDetails);return t?t[1].split(reSplitDetails):[]}var _getWrapDetails=getWrapDetails,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(reWrapComment,"{\n/* [wrapped with "+t+"] */\n")}var _insertWrapDetails=insertWrapDetails;function constant(e){return function(){return e}}var constant_1=constant,defineProperty=function(){try{var e=_getNative(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_defineProperty=defineProperty,baseSetToString=_defineProperty?function(e,t){return _defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant_1(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString,setToString=_shortOut(_baseSetToString),_setToString=setToString;function arrayEach(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var _arrayEach=arrayEach;function baseFindIndex(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var _baseFindIndex=baseFindIndex;function baseIsNaN(e){return e!=e}var _baseIsNaN=baseIsNaN;function strictIndexOf(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var _strictIndexOf=strictIndexOf;function baseIndexOf(e,t,r){return t==t?_strictIndexOf(e,t,r):_baseFindIndex(e,_baseIsNaN,r)}var _baseIndexOf=baseIndexOf;function arrayIncludes(e,t){return!!(null==e?0:e.length)&&_baseIndexOf(e,t,0)>-1}var _arrayIncludes=arrayIncludes,WRAP_BIND_FLAG$4=1,WRAP_BIND_KEY_FLAG$3=2,WRAP_CURRY_FLAG$5=8,WRAP_CURRY_RIGHT_FLAG$2=16,WRAP_PARTIAL_FLAG$2=32,WRAP_PARTIAL_RIGHT_FLAG$2=64,WRAP_ARY_FLAG$3=128,WRAP_REARG_FLAG$2=256,WRAP_FLIP_FLAG$1=512,wrapFlags=[["ary",WRAP_ARY_FLAG$3],["bind",WRAP_BIND_FLAG$4],["bindKey",WRAP_BIND_KEY_FLAG$3],["curry",WRAP_CURRY_FLAG$5],["curryRight",WRAP_CURRY_RIGHT_FLAG$2],["flip",WRAP_FLIP_FLAG$1],["partial",WRAP_PARTIAL_FLAG$2],["partialRight",WRAP_PARTIAL_RIGHT_FLAG$2],["rearg",WRAP_REARG_FLAG$2]];function updateWrapDetails(e,t){return _arrayEach(wrapFlags,function(r){var n="_."+r[0];t&r[1]&&!_arrayIncludes(e,n)&&e.push(n)}),e.sort()}var _updateWrapDetails=updateWrapDetails;function setWrapToString(e,t,r){var n=t+"";return _setToString(e,_insertWrapDetails(n,_updateWrapDetails(_getWrapDetails(n),r)))}var _setWrapToString=setWrapToString,WRAP_CURRY_BOUND_FLAG$1=4,WRAP_CURRY_FLAG$4=8,WRAP_PARTIAL_FLAG$1=32,WRAP_PARTIAL_RIGHT_FLAG$1=64;function createRecurry(e,t,r,n,o,a,i,s,u,c){var l=t&WRAP_CURRY_FLAG$4;t|=l?WRAP_PARTIAL_FLAG$1:WRAP_PARTIAL_RIGHT_FLAG$1,(t&=~(l?WRAP_PARTIAL_RIGHT_FLAG$1:WRAP_PARTIAL_FLAG$1))&WRAP_CURRY_BOUND_FLAG$1||(t&=-4);var p=[e,t,o,l?a:void 0,l?i:void 0,l?void 0:a,l?void 0:i,s,u,c],f=r.apply(void 0,p);return _isLaziable(e)&&_setData(f,p),f.placeholder=n,_setWrapToString(f,e,t)}var _createRecurry=createRecurry;function getHolder(e){return e.placeholder}var _getHolder=getHolder,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex,nativeMin$1=Math.min;function reorder(e,t){for(var r=e.length,n=nativeMin$1(t.length,r),o=_copyArray(e);n--;){var a=t[n];e[n]=_isIndex(a,r)?o[a]:void 0}return e}var _reorder=reorder,PLACEHOLDER$1="__lodash_placeholder__";function replaceHolders(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r];i!==t&&i!==PLACEHOLDER$1||(e[r]=PLACEHOLDER$1,a[o++]=r)}return a}var _replaceHolders=replaceHolders,WRAP_BIND_FLAG$3=1,WRAP_BIND_KEY_FLAG$2=2,WRAP_CURRY_FLAG$3=8,WRAP_CURRY_RIGHT_FLAG$1=16,WRAP_ARY_FLAG$2=128,WRAP_FLIP_FLAG=512;function createHybrid(e,t,r,n,o,a,i,s,u,c){var l=t&WRAP_ARY_FLAG$2,p=t&WRAP_BIND_FLAG$3,f=t&WRAP_BIND_KEY_FLAG$2,h=t&(WRAP_CURRY_FLAG$3|WRAP_CURRY_RIGHT_FLAG$1),d=t&WRAP_FLIP_FLAG,g=f?void 0:_createCtor(e);return function m(){for(var y=arguments.length,_=Array(y),b=y;b--;)_[b]=arguments[b];if(h)var v=_getHolder(m),A=_countHolders(_,v);if(n&&(_=_composeArgs(_,n,o,h)),a&&(_=_composeArgsRight(_,a,i,h)),y-=A,h&&y<c){var S=_replaceHolders(_,v);return _createRecurry(e,t,createHybrid,m.placeholder,r,_,S,s,u,c-y)}var $=p?r:this,C=f?$[e]:e;return y=_.length,s?_=_reorder(_,s):d&&y>1&&_.reverse(),l&&u<y&&(_.length=u),this&&this!==_root&&this instanceof m&&(C=g||_createCtor(C)),C.apply($,_)}}var _createHybrid=createHybrid;function createCurry(e,t,r){var n=_createCtor(e);return function o(){for(var a=arguments.length,i=Array(a),s=a,u=_getHolder(o);s--;)i[s]=arguments[s];var c=a<3&&i[0]!==u&&i[a-1]!==u?[]:_replaceHolders(i,u);return(a-=c.length)<r?_createRecurry(e,t,_createHybrid,o.placeholder,void 0,i,c,void 0,void 0,r-a):_apply(this&&this!==_root&&this instanceof o?n:e,this,i)}}var _createCurry=createCurry,WRAP_BIND_FLAG$2=1;function createPartial(e,t,r,n){var o=t&WRAP_BIND_FLAG$2,a=_createCtor(e);return function t(){for(var i=-1,s=arguments.length,u=-1,c=n.length,l=Array(c+s),p=this&&this!==_root&&this instanceof t?a:e;++u<c;)l[u]=n[u];for(;s--;)l[u++]=arguments[++i];return _apply(p,o?r:this,l)}}var _createPartial=createPartial,PLACEHOLDER="__lodash_placeholder__",WRAP_BIND_FLAG$1=1,WRAP_BIND_KEY_FLAG$1=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG$2=8,WRAP_ARY_FLAG$1=128,WRAP_REARG_FLAG$1=256,nativeMin=Math.min;function mergeData(e,t){var r=e[1],n=t[1],o=r|n,a=o<(WRAP_BIND_FLAG$1|WRAP_BIND_KEY_FLAG$1|WRAP_ARY_FLAG$1),i=n==WRAP_ARY_FLAG$1&&r==WRAP_CURRY_FLAG$2||n==WRAP_ARY_FLAG$1&&r==WRAP_REARG_FLAG$1&&e[7].length<=t[8]||n==(WRAP_ARY_FLAG$1|WRAP_REARG_FLAG$1)&&t[7].length<=t[8]&&r==WRAP_CURRY_FLAG$2;if(!a&&!i)return e;n&WRAP_BIND_FLAG$1&&(e[2]=t[2],o|=r&WRAP_BIND_FLAG$1?0:WRAP_CURRY_BOUND_FLAG);var s=t[3];if(s){var u=e[3];e[3]=u?_composeArgs(u,s,t[4]):s,e[4]=u?_replaceHolders(e[3],PLACEHOLDER):t[4]}return(s=t[5])&&(u=e[5],e[5]=u?_composeArgsRight(u,s,t[6]):s,e[6]=u?_replaceHolders(e[5],PLACEHOLDER):t[6]),(s=t[7])&&(e[7]=s),n&WRAP_ARY_FLAG$1&&(e[8]=null==e[8]?t[8]:nativeMin(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var _mergeData=mergeData,reWhitespace=/\s/;function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim(e){return e?e.slice(0,_trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim,symbolTag$3="[object Symbol]";function isSymbol(e){return"symbol"==typeof e||isObjectLike_1(e)&&_baseGetTag(e)==symbolTag$3}var isSymbol_1=isSymbol,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if("number"==typeof e)return e;if(isSymbol_1(e))return NAN;if(isObject_1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject_1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){return e?(e=toNumber_1(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite;function toInteger(e){var t=toFinite_1(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger,FUNC_ERROR_TEXT$1="Expected a function",WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_FLAG$1=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,nativeMax$1=Math.max;function createWrap(e,t,r,n,o,a,i,s){var u=t&WRAP_BIND_KEY_FLAG;if(!u&&"function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);var c=n?n.length:0;if(c||(t&=-97,n=o=void 0),i=void 0===i?i:nativeMax$1(toInteger_1(i),0),s=void 0===s?s:toInteger_1(s),c-=o?o.length:0,t&WRAP_PARTIAL_RIGHT_FLAG){var l=n,p=o;n=o=void 0}var f=u?void 0:_getData(e),h=[e,t,r,n,o,l,p,a,i,s];if(f&&_mergeData(h,f),e=h[0],t=h[1],r=h[2],n=h[3],o=h[4],!(s=h[9]=void 0===h[9]?u?0:e.length:nativeMax$1(h[9]-c,0))&&t&(WRAP_CURRY_FLAG$1|WRAP_CURRY_RIGHT_FLAG)&&(t&=-25),t&&t!=WRAP_BIND_FLAG)d=t==WRAP_CURRY_FLAG$1||t==WRAP_CURRY_RIGHT_FLAG?_createCurry(e,t,s):t!=WRAP_PARTIAL_FLAG&&t!=(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG)||o.length?_createHybrid.apply(void 0,h):_createPartial(e,t,r,n);else var d=_createBind(e,t,r);return _setWrapToString((f?_baseSetData:_setData)(d,h),e,t)}var _createWrap=createWrap,WRAP_ARY_FLAG=128;function ary(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,_createWrap(e,WRAP_ARY_FLAG,void 0,void 0,void 0,void 0,t)}var ary_1=ary;function baseAssignValue(e,t,r){"__proto__"==t&&_defineProperty?_defineProperty(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var _baseAssignValue=baseAssignValue;function eq(e,t){return e===t||e!=e&&t!=t}var eq_1=eq,objectProto$c=Object.prototype,hasOwnProperty$a=objectProto$c.hasOwnProperty;function assignValue(e,t,r){var n=e[t];hasOwnProperty$a.call(e,t)&&eq_1(n,r)&&(void 0!==r||t in e)||_baseAssignValue(e,t,r)}var _assignValue=assignValue;function copyObject(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?_baseAssignValue(r,s,u):_assignValue(r,s,u)}return r}var _copyObject=copyObject;function baseTimes(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var _baseTimes=baseTimes,argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike_1(e)&&_baseGetTag(e)==argsTag$3}var _baseIsArguments=baseIsArguments,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable,isArguments=_baseIsArguments(function(){return arguments}())?_baseIsArguments:function(e){return isObjectLike_1(e)&&hasOwnProperty$9.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments;function stubFalse(){return!1}var stubFalse_1=stubFalse,isBuffer_1=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?_root.Buffer:void 0,a=(o?o.isBuffer:void 0)||stubFalse_1;e.exports=a}),MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$3="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$3="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(e){return isObjectLike_1(e)&&isLength_1(e.length)&&!!typedArrayTags[_baseGetTag(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$3]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$3]=!1;var _baseIsTypedArray=baseIsTypedArray;function baseUnary(e){return function(t){return e(t)}}var _baseUnary=baseUnary,_nodeUtil=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&_freeGlobal.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}),nodeIsTypedArray=_nodeUtil&&_nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray,isTypedArray_1=isTypedArray,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray_1(e),n=!r&&isArguments_1(e),o=!r&&!n&&isBuffer_1(e),a=!r&&!n&&!o&&isTypedArray_1(e),i=r||n||o||a,s=i?_baseTimes(e.length,String):[],u=s.length;for(var c in e)!t&&!hasOwnProperty$8.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_isIndex(c,u))||s.push(c);return s}var _arrayLikeKeys=arrayLikeKeys,objectProto$9=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$9)}var _isPrototype=isPrototype;function overArg(e,t){return function(r){return e(t(r))}}var _overArg=overArg,nativeKeys=_overArg(Object.keys,Object),_nativeKeys=nativeKeys,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function baseKeys(e){if(!_isPrototype(e))return _nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$7.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys;function isArrayLike(e){return null!=e&&isLength_1(e.length)&&!isFunction_1(e)}var isArrayLike_1=isArrayLike;function keys(e){return isArrayLike_1(e)?_arrayLikeKeys(e):_baseKeys(e)}var keys_1=keys;function baseAssign(e,t){return e&&_copyObject(t,keys_1(t),e)}var _baseAssign=baseAssign;function listCacheClear(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear;function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq_1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=_assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete;function listCacheGet(e){var t=this.__data__,r=_assocIndexOf(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet;function listCacheHas(e){return _assocIndexOf(this.__data__,e)>-1}var _listCacheHas=listCacheHas;function listCacheSet(e,t){var r=this.__data__,n=_assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _listCacheSet=listCacheSet;function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=_listCacheClear,ListCache.prototype.delete=_listCacheDelete,ListCache.prototype.get=_listCacheGet,ListCache.prototype.has=_listCacheHas,ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache;function stackClear(){this.__data__=new _ListCache,this.size=0}var _stackClear=stackClear;function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete;function stackGet(e){return this.__data__.get(e)}var _stackGet=stackGet;function stackHas(e){return this.__data__.has(e)}var _stackHas=stackHas,Map$1=_getNative(_root,"Map"),_Map=Map$1,nativeCreate=_getNative(Object,"create"),_nativeCreate=nativeCreate;function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{},this.size=0}var _hashClear=hashClear;function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet(e){var t=this.__data__;if(_nativeCreate){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$6.call(t,e)?t[e]:void 0}var _hashGet=hashGet,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas(e){var t=this.__data__;return _nativeCreate?void 0!==t[e]:hasOwnProperty$5.call(t,e)}var _hashHas=hashHas,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet;function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=_hashClear,Hash.prototype.delete=_hashDelete,Hash.prototype.get=_hashGet,Hash.prototype.has=_hashHas,Hash.prototype.set=_hashSet;var _Hash=Hash;function mapCacheClear(){this.size=0,this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}var _mapCacheClear=mapCacheClear;function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable;function getMapData(e,t){var r=e.__data__;return _isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData;function mapCacheDelete(e){var t=_getMapData(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete;function mapCacheGet(e){return _getMapData(this,e).get(e)}var _mapCacheGet=mapCacheGet;function mapCacheHas(e){return _getMapData(this,e).has(e)}var _mapCacheHas=mapCacheHas;function mapCacheSet(e,t){var r=_getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _mapCacheSet=mapCacheSet;function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=_mapCacheClear,MapCache.prototype.delete=_mapCacheDelete,MapCache.prototype.get=_mapCacheGet,MapCache.prototype.has=_mapCacheHas,MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache,LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof _ListCache){var n=r.__data__;if(!_Map||n.length<LARGE_ARRAY_SIZE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new _MapCache(n)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet;function Stack(e){var t=this.__data__=new _ListCache(e);this.size=t.size}Stack.prototype.clear=_stackClear,Stack.prototype.delete=_stackDelete,Stack.prototype.get=_stackGet,Stack.prototype.has=_stackHas,Stack.prototype.set=_stackSet;var _Stack=Stack;function nativeKeysIn(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var _nativeKeysIn=nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeysIn(e){if(!isObject_1(e))return _nativeKeysIn(e);var t=_isPrototype(e),r=[];for(var n in e)("constructor"!=n||!t&&hasOwnProperty$4.call(e,n))&&r.push(n);return r}var _baseKeysIn=baseKeysIn;function keysIn(e){return isArrayLike_1(e)?_arrayLikeKeys(e,!0):_baseKeysIn(e)}var keysIn_1=keysIn;function baseAssignIn(e,t){return e&&_copyObject(t,keysIn_1(t),e)}var _baseAssignIn=baseAssignIn,_cloneBuffer=createCommonjsModule(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?_root.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});function arrayFilter(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var _arrayFilter=arrayFilter;function stubArray(){return[]}var stubArray_1=stubArray,objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return null==e?[]:(e=Object(e),_arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray_1,_getSymbols=getSymbols;function copySymbols(e,t){return _copyObject(e,_getSymbols(e),t)}var _copySymbols=copySymbols;function arrayPush(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var _arrayPush=arrayPush,getPrototype=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)_arrayPush(t,_getSymbols(e)),e=_getPrototype(e);return t}:stubArray_1,_getSymbolsIn=getSymbolsIn;function copySymbolsIn(e,t){return _copyObject(e,_getSymbolsIn(e),t)}var _copySymbolsIn=copySymbolsIn;function baseGetAllKeys(e,t,r){var n=t(e);return isArray_1(e)?n:_arrayPush(n,r(e))}var _baseGetAllKeys=baseGetAllKeys;function getAllKeys(e){return _baseGetAllKeys(e,keys_1,_getSymbols)}var _getAllKeys=getAllKeys;function getAllKeysIn(e){return _baseGetAllKeys(e,keysIn_1,_getSymbolsIn)}var _getAllKeysIn=getAllKeysIn,DataView=_getNative(_root,"DataView"),_DataView=DataView,Promise$1=_getNative(_root,"Promise"),_Promise=Promise$1,Set$1=_getNative(_root,"Set"),_Set=Set$1,mapTag$4="[object Map]",objectTag$3="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$2="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=_toSource(_DataView),mapCtorString=_toSource(_Map),promiseCtorString=_toSource(_Promise),setCtorString=_toSource(_Set),weakMapCtorString=_toSource(_WeakMap),getTag=_baseGetTag;(_DataView&&getTag(new _DataView(new ArrayBuffer(1)))!=dataViewTag$3||_Map&&getTag(new _Map)!=mapTag$4||_Promise&&getTag(_Promise.resolve())!=promiseTag||_Set&&getTag(new _Set)!=setTag$4||_WeakMap&&getTag(new _WeakMap)!=weakMapTag$2)&&(getTag=function(e){var t=_baseGetTag(e),r=t==objectTag$3?e.constructor:void 0,n=r?_toSource(r):"";if(n)switch(n){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$2}return t});var _getTag=getTag,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function initCloneArray(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$3.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var _initCloneArray=initCloneArray,Uint8Array$1=_root.Uint8Array,_Uint8Array=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new _Uint8Array(t).set(new _Uint8Array(e)),t}var _cloneArrayBuffer=cloneArrayBuffer;function cloneDataView(e,t){var r=t?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView,reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp,symbolProto$2=_Symbol?_Symbol.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}var _cloneSymbol=cloneSymbol;function cloneTypedArray(e,t){var r=t?_cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray,boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case arrayBufferTag$2:return _cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new n(+e);case dataViewTag$2:return _cloneDataView(e,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return _cloneTypedArray(e,r);case mapTag$3:return new n;case numberTag$2:case stringTag$2:return new n(e);case regexpTag$2:return _cloneRegExp(e);case setTag$3:return new n;case symbolTag$2:return _cloneSymbol(e)}}var _initCloneByTag=initCloneByTag;function initCloneObject(e){return"function"!=typeof e.constructor||_isPrototype(e)?{}:_baseCreate(_getPrototype(e))}var _initCloneObject=initCloneObject,mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike_1(e)&&_getTag(e)==mapTag$2}var _baseIsMap=baseIsMap,nodeIsMap=_nodeUtil&&_nodeUtil.isMap,isMap=nodeIsMap?_baseUnary(nodeIsMap):_baseIsMap,isMap_1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike_1(e)&&_getTag(e)==setTag$2}var _baseIsSet=baseIsSet,nodeIsSet=_nodeUtil&&_nodeUtil.isSet,isSet=nodeIsSet?_baseUnary(nodeIsSet):_baseIsSet,isSet_1=isSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$2="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone(e,t,r,n,o,a){var i,s=t&CLONE_DEEP_FLAG$2,u=t&CLONE_FLAT_FLAG,c=t&CLONE_SYMBOLS_FLAG$2;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!isObject_1(e))return e;var l=isArray_1(e);if(l){if(i=_initCloneArray(e),!s)return _copyArray(e,i)}else{var p=_getTag(e),f=p==funcTag||p==genTag;if(isBuffer_1(e))return _cloneBuffer(e,s);if(p==objectTag$2||p==argsTag$1||f&&!o){if(i=u||f?{}:_initCloneObject(e),!s)return u?_copySymbolsIn(e,_baseAssignIn(i,e)):_copySymbols(e,_baseAssign(i,e))}else{if(!cloneableTags[p])return o?e:{};i=_initCloneByTag(e,p,s)}}a||(a=new _Stack);var h=a.get(e);if(h)return h;a.set(e,i),isSet_1(e)?e.forEach(function(n){i.add(baseClone(n,t,r,n,e,a))}):isMap_1(e)&&e.forEach(function(n,o){i.set(o,baseClone(n,t,r,o,e,a))});var d=l?void 0:(c?u?_getAllKeysIn:_getAllKeys:u?keysIn_1:keys_1)(e);return _arrayEach(d||e,function(n,o){d&&(n=e[o=n]),_assignValue(i,o,baseClone(n,t,r,o,e,a))}),i}cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$2]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag$2]=cloneableTags[funcTag]=cloneableTags[weakMapTag$1]=!1;var _baseClone=baseClone,CLONE_SYMBOLS_FLAG$1=4;function clone(e){return _baseClone(e,CLONE_SYMBOLS_FLAG$1)}var clone_1=clone,WRAP_CURRY_FLAG=8;function curry(e,t,r){var n=_createWrap(e,WRAP_CURRY_FLAG,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=curry.placeholder,n}curry.placeholder={};var curry_1=curry,objectTag$1="[object Object]",funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(e){if(!isObjectLike_1(e)||_baseGetTag(e)!=objectTag$1)return!1;var t=_getPrototype(e);if(null===t)return!0;var r=hasOwnProperty$2.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&funcToString.call(r)==objectCtorString}var isPlainObject_1=isPlainObject,domExcTag="[object DOMException]",errorTag$1="[object Error]";function isError(e){if(!isObjectLike_1(e))return!1;var t=_baseGetTag(e);return t==errorTag$1||t==domExcTag||"string"==typeof e.message&&"string"==typeof e.name&&!isPlainObject_1(e)}var isError_1=isError,weakMapTag="[object WeakMap]";function isWeakMap(e){return isObjectLike_1(e)&&_getTag(e)==weakMapTag}var isWeakMap_1=isWeakMap,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd;function setCacheHas(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas;function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new _MapCache;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=_setCacheAdd,SetCache.prototype.has=_setCacheHas;var _SetCache=SetCache;function arraySome(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome;function cacheHas(e,t){return e.has(t)}var _cacheHas=cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(e,t,r,n,o,a){var i=r&COMPARE_PARTIAL_FLAG$5,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var p=-1,f=!0,h=r&COMPARE_UNORDERED_FLAG$3?new _SetCache:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var d=e[p],g=t[p];if(n)var m=i?n(g,d,p,t,e,a):n(d,g,p,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!_arraySome(t,function(e,t){if(!_cacheHas(h,t)&&(d===e||o(d,e,r,n,a)))return h.push(t)})){f=!1;break}}else if(d!==g&&!o(d,g,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var _equalArrays=equalArrays;function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}var _mapToArray=mapToArray;function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var _setToArray=setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$1=_Symbol?_Symbol.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag(e,t,r,n,o,a,i){switch(r){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!a(new _Uint8Array(e),new _Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq_1(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var s=_mapToArray;case setTag:var u=n&COMPARE_PARTIAL_FLAG$4;if(s||(s=_setToArray),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=COMPARE_UNORDERED_FLAG$2,i.set(e,t);var l=_equalArrays(s(e),s(t),n,o,a,i);return i.delete(e),l;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,n,o,a){var i=r&COMPARE_PARTIAL_FLAG$3,s=_getAllKeys(e),u=s.length;if(u!=_getAllKeys(t).length&&!i)return!1;for(var c=u;c--;){var l=s[c];if(!(i?l in t:hasOwnProperty$1.call(t,l)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var d=i;++c<u;){var g=e[l=s[c]],m=t[l];if(n)var y=i?n(m,g,l,t,e,a):n(g,m,l,e,t,a);if(!(void 0===y?g===m||o(g,m,r,n,a):y)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}var _equalObjects=equalObjects,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,n,o,a){var i=isArray_1(e),s=isArray_1(t),u=i?arrayTag:_getTag(e),c=s?arrayTag:_getTag(t),l=(u=u==argsTag?objectTag:u)==objectTag,p=(c=c==argsTag?objectTag:c)==objectTag,f=u==c;if(f&&isBuffer_1(e)){if(!isBuffer_1(t))return!1;i=!0,l=!1}if(f&&!l)return a||(a=new _Stack),i||isTypedArray_1(e)?_equalArrays(e,t,r,n,o,a):_equalByTag(e,t,u,r,n,o,a);if(!(r&COMPARE_PARTIAL_FLAG$2)){var h=l&&hasOwnProperty.call(e,"__wrapped__"),d=p&&hasOwnProperty.call(t,"__wrapped__");if(h||d){var g=h?e.value():e,m=d?t.value():t;return a||(a=new _Stack),o(g,m,r,n,a)}}return!!f&&(a||(a=new _Stack),_equalObjects(e,t,r,n,o,a))}var _baseIsEqualDeep=baseIsEqualDeep;function baseIsEqual(e,t,r,n,o){return e===t||(null==e||null==t||!isObjectLike_1(e)&&!isObjectLike_1(t)?e!=e&&t!=t:_baseIsEqualDeep(e,t,r,n,baseIsEqual,o))}var _baseIsEqual=baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var u=(s=r[o])[0],c=e[u],l=s[1];if(i&&s[2]){if(void 0===c&&!(u in e))return!1}else{var p=new _Stack;if(n)var f=n(c,l,u,e,t,p);if(!(void 0===f?_baseIsEqual(l,c,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,n,p):f))return!1}}return!0}var _baseIsMatch=baseIsMatch;function isStrictComparable(e){return e==e&&!isObject_1(e)}var _isStrictComparable=isStrictComparable;function getMatchData(e){for(var t=keys_1(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,_isStrictComparable(o)]}return t}var _getMatchData=getMatchData;function matchesStrictComparable(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable;function baseMatches(e){var t=_getMatchData(e);return 1==t.length&&t[0][2]?_matchesStrictComparable(t[0][0],t[0][1]):function(r){return r===e||_baseIsMatch(r,e,t)}}var _baseMatches=baseMatches,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray_1(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol_1(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey,FUNC_ERROR_TEXT="Expected a function";function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(memoize.Cache||_MapCache),r}memoize.Cache=_MapCache;var memoize_1=memoize,MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize_1(e,function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e}),r=t.cache;return t}var _memoizeCapped=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=_memoizeCapped(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,function(e,r,n,o){t.push(n?o.replace(reEscapeChar,"$1"):r||e)}),t}),_stringToPath=stringToPath;function arrayMap(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var _arrayMap=arrayMap,symbolProto=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if("string"==typeof e)return e;if(isArray_1(e))return _arrayMap(e,baseToString)+"";if(isSymbol_1(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var _baseToString=baseToString;function toString(e){return null==e?"":_baseToString(e)}var toString_1=toString;function castPath(e,t){return isArray_1(e)?e:_isKey(e,t)?[e]:_stringToPath(toString_1(e))}var _castPath=castPath;function toKey(e){if("string"==typeof e||isSymbol_1(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var _toKey=toKey;function baseGet(e,t){for(var r=0,n=(t=_castPath(t,e)).length;null!=e&&r<n;)e=e[_toKey(t[r++])];return r&&r==n?e:void 0}var _baseGet=baseGet;function get(e,t,r){var n=null==e?void 0:_baseGet(e,t);return void 0===n?r:n}var get_1=get;function baseHasIn(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn;function hasPath(e,t,r){for(var n=-1,o=(t=_castPath(t,e)).length,a=!1;++n<o;){var i=_toKey(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&isLength_1(o)&&_isIndex(i,o)&&(isArray_1(e)||isArguments_1(e))}var _hasPath=hasPath;function hasIn(e,t){return null!=e&&_hasPath(e,t,_baseHasIn)}var hasIn_1=hasIn,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,t){return _isKey(e)&&_isStrictComparable(t)?_matchesStrictComparable(_toKey(e),t):function(r){var n=get_1(r,e);return void 0===n&&n===t?hasIn_1(r,e):_baseIsEqual(t,n,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty;function baseProperty(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty;function basePropertyDeep(e){return function(t){return _baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep;function property(e){return _isKey(e)?_baseProperty(_toKey(e)):_basePropertyDeep(e)}var property_1=property;function baseIteratee(e){return"function"==typeof e?e:null==e?identity_1:"object"==typeof e?isArray_1(e)?_baseMatchesProperty(e[0],e[1]):_baseMatches(e):property_1(e)}var _baseIteratee=baseIteratee,CLONE_DEEP_FLAG$1=1;function iteratee(e){return _baseIteratee("function"==typeof e?e:_baseClone(e,CLONE_DEEP_FLAG$1))}var iteratee_1=iteratee,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray_1(e)||isArguments_1(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable;function baseFlatten(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=_isFlattenable),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?baseFlatten(s,t-1,r,n,o):_arrayPush(o,s):n||(o[o.length]=s)}return o}var _baseFlatten=baseFlatten;function flatten(e){return(null==e?0:e.length)?_baseFlatten(e,1):[]}var flatten_1=flatten,nativeMax=Math.max;function overRest(e,t,r){return t=nativeMax(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=nativeMax(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),_apply(e,this,s)}}var _overRest=overRest;function flatRest(e){return _setToString(_overRest(e,void 0,flatten_1),e+"")}var _flatRest=flatRest,WRAP_REARG_FLAG=256,rearg=_flatRest(function(e,t){return _createWrap(e,WRAP_REARG_FLAG,void 0,void 0,void 0,t)}),rearg_1=rearg;function toPath(e){return isArray_1(e)?_arrayMap(e,_toKey):isSymbol_1(e)?[e]:_copyArray(_stringToPath(toString_1(e)))}var toPath_1=toPath,_util={ary:ary_1,assign:_baseAssign,clone:clone_1,curry:curry_1,forEach:_arrayEach,isArray:isArray_1,isError:isError_1,isFunction:isFunction_1,isWeakMap:isWeakMap_1,iteratee:iteratee_1,keys:_baseKeys,rearg:rearg_1,toInteger:toInteger_1,toPath:toPath_1};function convert(e,t,r){return _baseConvert(_util,e,t,r)}var convert_1=convert,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep$1(e){return _baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep$1,_falseOptions={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1},func=convert_1("cloneDeep",cloneDeep_1,_falseOptions);func.placeholder=placeholder;var cloneDeep=func;let runJS;const setJSRunner=e=>runJS=e,removeJSRunner=()=>{runJS=void 0};let onErrorLog;const setOnErrorLog=e=>onErrorLog=e,removeSquareBrackets=e=>{if(!e||"string"!=typeof e)return e;const t=e.match(/\[+(.+)]+/);return t&&t[1]?t[1]:e},isReservedKey=e=>"snippets"===e||"helpers"===e||e.startsWith("snippets.")||e.startsWith("helpers."),getContextValue=(e,t)=>{if(isReservedKey(e))return;let r=t;return/^(["'`]).*\1$/.test(e)?e.substring(1,e.length-1):(e.split(".").forEach(e=>{if(null==r||"object"!=typeof r)return null;r=r[removeSquareBrackets(e)]}),r)};function processJS(handlebars,context){if(!isJSAllowed()||!runJS)throw new Error("JS disabled in environment.");try{const js=iifeWrapper(atob(handlebars));let snippetMap={},snippetCache={},clonedContext;for(let e of context.snippets||[])snippetMap[e.name]=e.code;clonedContext=isBackendService()?context:cloneDeep(context);const sandboxContext={$:e=>getContextValue(e,clonedContext),helpers:getJsHelperList(),snippets:new Proxy({},{get:function(_,name){return name in snippetCache||(snippetCache[name]=eval(iifeWrapper(snippetMap[name]))),snippetCache[name]}})},logs=[];if(!isBackendService()){const e=frontendWrapJS(js).split(js)[0].split("\n").length,t=t=>(...r)=>{var n,o;isTest()||console[t](...r),r.forEach((e,t)=>{"object"==typeof e&&(r[t]=JSON.stringify(e))});const a=null===(o=null===(n=(new Error).stack)||void 0===n?void 0:n.match(/<anonymous>:(\d+):\d+/))||void 0===o?void 0:o[1];logs.push({log:r,line:a?parseInt(a)-e:void 0,type:t})};sandboxContext.console={log:t("log"),info:t("info"),debug:t("debug"),warn:t("warn"),error:t("error"),table:t("table")}}const res={data:runJS(js,sandboxContext),logs:logs};return`{{${LITERAL_MARKER} js_result-${JSON.stringify(res)}}}`}catch(e){onErrorLog&&onErrorLog(e);const{noThrow:t=!0}=context.__opts||{};if("ERR_SCRIPT_EXECUTION_TIMEOUT"===e.code)return"Timed out while executing JS";if("JS_REQUEST_TIMEOUT_ERROR"===e.code)return e.message;if(e.code===JsTimeoutError.code)return JsTimeoutError.message;if(e.code===UserScriptError.code){if(t)return e.userScriptError.toString();throw e}if("SyntaxError"===e.name){if(t)return e.toString();throw e}return"Error while executing JS"}}const HTML_SWAPS={"<":"<",">":">"};function isObject(e){return null!=e&&"object"==typeof e&&("[object Object]"===e.toString()||e.length>0&&"object"==typeof e[0])}const HELPERS=[new Helper(HelperFunctionNames.OBJECT,e=>new Handlebars.SafeString(JSON.stringify(e))),new Helper(HelperFunctionNames.JS,processJS,!1),new Helper(HelperFunctionNames.DECODE_ID,e=>{if(!e)return[];const t="string"==typeof e?e:e._id,r=decodeURIComponent(t).replace(/'/g,'"');try{const e=JSON.parse(r);return Array.isArray(e)?e:[e]}catch(t){return[e]}}),new Helper(HelperFunctionNames.ALL,(e,t)=>{const{__opts:r}=t;if(isObject(e))return new Handlebars.SafeString(JSON.stringify(e));if(r&&r.onlyFound&&null==e)return r.input;if(null==e||"string"!=typeof e)return null==e?"":e;e&&e.string&&(e=e.string);let n=e;return r&&r.escapeNewlines&&(n=e.replace(/\n/g,"\\n")),n=new Handlebars.SafeString(n.replace(/&/g,"&")),null==n||"string"!=typeof n?n:n.replace(/[<>]/g,e=>HTML_SWAPS[e]||e)}),new Helper(HelperFunctionNames.LITERAL,e=>{if(void 0===e)return"";const t=typeof e,r="object"===t?JSON.stringify(e):e;return`{{${LITERAL_MARKER} ${t}-${r}}}`})];function HelperNames(){return Object.values(HelperFunctionNames).concat(HelperFunctionBuiltin,externalHelperNames)}function registerMinimum(e){for(let t of HELPERS)t.register(e)}function registerAll(e){registerMinimum(e),registerAll$1(e)}const FUNCTION_CASES=["#","else","/"];var PreprocessorNames;!function(e){e.SWAP_TO_DOT="swap-to-dot-notation",e.FIX_FUNCTIONS="fix-functions",e.FINALISE="finalise",e.NORMALIZE_SPACES="normalize-spaces"}(PreprocessorNames||(PreprocessorNames={}));class Preprocessor{constructor(e,t){this.name=e,this.fn=t}process(e,t,r){const n=this.fn(t,r),o=e.indexOf(t);return swapStrings(e,o,t.length,n)}}const processors$1=[new Preprocessor(PreprocessorNames.SWAP_TO_DOT,e=>{let t=e.indexOf("["),r=0;for(;-1!==t;){isAlphaNumeric(e.charAt(t-1))&&(e=swapStrings(e,t+r,1,".[")),r=t+1;const n=e.substring(r+1).indexOf("[");t=n>0?r+1+n:-1}return e}),new Preprocessor(PreprocessorNames.FIX_FUNCTIONS,e=>{for(let t of FUNCTION_CASES){const r=`{ ${t}`,n=`{${t}`;e=e.replace(new RegExp(r,"g"),n)}return e}),new Preprocessor(PreprocessorNames.NORMALIZE_SPACES,e=>e.replace(/{{(\s{2,})/g,"{{ ")),new Preprocessor(PreprocessorNames.FINALISE,(e,t)=>{var r;const n=!(null==t?void 0:t.noHelpers);let o=e.slice(2,e.length-2);" "===o.charAt(0)&&(o=o.slice(1))," "===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1));const a=o.split(" ")[0];for(let t of FUNCTION_CASES)if(a.includes(t))return e;const i=a.trim().toLowerCase();return n&&!(null===(r=null==t?void 0:t.disabledHelpers)||void 0===r?void 0:r.includes(i))&&HelperNames().some(e=>i===e.toLowerCase())&&(o=`(${o})`),`{{ all ${o} }}`})];var PostProcessorNames;!function(e){e.CONVERT_LITERALS="convert-literals"}(PostProcessorNames||(PostProcessorNames={}));class Postprocessor{constructor(e,t){this.name=e,this.fn=t}process(e){return this.fn(e)}}const processors=[new Postprocessor(PostProcessorNames.CONVERT_LITERALS,e=>{if("string"!=typeof e||!e.includes(LITERAL_MARKER))return{result:e};const t=e.indexOf("-"),r=e.substring(12,t),n=e.substring(t+1,e.length-2);switch(r){case"string":return{result:n};case"number":return{result:parseFloat(n)};case"boolean":return{result:"true"===n};case"object":return{result:JSON.parse(n)};case"js_result":{const e=JSON.parse(n);return{result:e.data,logs:e.logs}}}return{result:n}})];function process(e,t,r){let n=[];for(let o of t){if("string"!=typeof e)break;let t=new RegExp(FIND_HBS_REGEX),a=e.match(t);if(null!=a)for(let t of a){const a=o.process(e,t,r||{});"object"==typeof a?("logs"in a&&a.logs&&(n=n.concat(a.logs)),e=a.result):e=a}}return{result:e,logs:n}}function preprocess(e,t){let r=processors$1;return t.noFinalise&&(r=r.filter(e=>e.name!==PreprocessorNames.FINALISE)),process(e,r,t).result}function postprocess(e){return process(e,processors).result}function postprocessWithLogs(e){return process(e,processors)}function getLayers(e){let t=[];for(;e.length;){const r=e.lastIndexOf("("),n=e.indexOf(")");let o;if(-1===r||-1===n)o=e.trim(),e="";else{const t=e.substring(r,n+1);o=t.substring(1,t.length-1).trim(),e=e.slice(0,r)+e.slice(r+t.length+1,e.length)}t.push(o)}return t}function getVariable(e){if(!e||"string"!=typeof e)return e;let t=!1;return[",","{",":"].forEach(r=>{e.includes(r)&&(t=!0)}),e.startsWith("[")&&t?e:isNaN(parseFloat(e))?e.startsWith("'")||e.startsWith('"')?e:`$("${e}")`:e}function buildList(e,t){function r(){return e.map(e=>e.startsWith("helper")?e:getVariable(e)).join(", ")}return t?0===e.length?t:`${r()}, ${t}`:e.length>1?`${r()}`:r()}function splitBySpace(e){const t=[];let r=null,n=null,o=0;function a(e){const r=["]"];for(;-1!==r.indexOf(e.substring(0,1));)e=e.substring(1,e.length);e.length>0&&t.push(e.trim())}const i=["[","'",'"'];for(let t=0;t<e.length;t++){const s=e[t];-1!==i.indexOf(s)&&null==r?(r=t,n="["===s?"]":s):s===n&&null!=r&&"."!==e[t+1]?(a(e.substring(r,t+1)),r=null,n=null,o=t+1):null==r&&" "===s&&(a(e.substring(o,t)),o=t)}return e.startsWith("[")&&0!==t.length||o===e.length-1||a(e.substring(o,e.length)),t}function convertHBSBlock(e,t){const r="{"===e[2]?3:2,n=getLayers(e=e.substring(r,e.length-r).trim());let o=null;const a=getJsHelperList();for(let e of n){const t=splitBySpace(e);if(o||t.length>1||a[t[0]]){const[e]=t.splice(0,1);a[e]&&(o=`helpers.${e}(${buildList(t,o)})`)}else o=getVariable(t[0])}return{variable:`var${t}`,value:o}}var math={abs:{args:["a"],example:"{{ abs 12012.1000 }} -> 12012.1",description:"<p>Return the magnitude of <code>a</code>.</p>\n",requiresBlock:!1},add:{args:["a","b"],example:"{{ add 1 2 }} -> 3",description:"<p>Return the sum of <code>a</code> plus <code>b</code>.</p>\n",requiresBlock:!1},avg:{args:["array"],example:"{{ avg 1 2 3 4 5 }} -> 3",description:"<p>Returns the average of all numbers in the given array.</p>\n",requiresBlock:!1},ceil:{args:["value"],example:"{{ ceil 1.2 }} -> 2",description:"<p>Get the <code>Math.ceil()</code> of the given value.</p>\n",requiresBlock:!1},divide:{args:["a","b"],example:"{{ divide 10 5 }} -> 2",description:"<p>Divide <code>a</code> by <code>b</code></p>\n",requiresBlock:!1},floor:{args:["value"],example:"{{ floor 1.2 }} -> 1",description:"<p>Get the <code>Math.floor()</code> of the given value.</p>\n",requiresBlock:!1},minus:{args:["a","b"],example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n",requiresBlock:!1},modulo:{args:["a","b"],example:"{{ modulo 10 5 }} -> 0",description:"<p>Get the remainder of a division operation.</p>\n",requiresBlock:!1},multiply:{args:["a","b"],example:"{{ multiply 10 5 }} -> 50",description:"<p>Multiply number <code>a</code> by number <code>b</code>.</p>\n",requiresBlock:!1},plus:{args:["a","b"],example:"{{ plus 10 5 }} -> 15",description:"<p>Add <code>a</code> by <code>b</code>.</p>\n",requiresBlock:!1},random:{args:["min","max"],example:"{{ random 0 20 }} -> 10",description:"<p>Generate a random number between two values</p>\n",requiresBlock:!1},remainder:{args:["a","b"],example:"{{ remainder 10 6 }} -> 4",description:"<p>Get the remainder when <code>a</code> is divided by <code>b</code>.</p>\n",requiresBlock:!1},round:{args:["number"],example:"{{ round 10.3 }} -> 10",description:"<p>Round the given number.</p>\n",requiresBlock:!1},subtract:{args:["a","b"],example:"{{ subtract 10 5 }} -> 5",description:"<p>Return the product of <code>a</code> minus <code>b</code>.</p>\n",requiresBlock:!1},sum:{args:["array"],example:"{{ sum [1, 2, 3] }} -> 6",description:"<p>Returns the sum of all numbers in the given array.</p>\n",requiresBlock:!1}},array={after:{args:["array","n"],example:"{{ after ['a', 'b', 'c', 'd'] 2}} -> ['c', 'd']",description:'<p>Returns all of the items in an array after the specified index. Opposite of <a href="#before">before</a>.</p>\n',requiresBlock:!1},arrayify:{args:["value"],example:"{{ arrayify 'foo' }} -> ['foo']",description:"<p>Cast the given <code>value</code> to an array.</p>\n",requiresBlock:!1},before:{args:["array","n"],example:"{{ before ['a', 'b', 'c', 'd'] 3}} -> ['a', 'b']",description:'<p>Return all of the items in the collection before the specified count. Opposite of <a href="#after">after</a>.</p>\n',requiresBlock:!1},eachIndex:{args:["array","options"],example:"{{#eachIndex [1, 2, 3]}} {{item}} is {{index}} {{/eachIndex}} -> ' 1 is 0 2 is 1 3 is 2 '",description:"<p>Iterates the array, listing an item and the index of it.</p>\n",requiresBlock:!0},filter:{args:["array","value","options"],example:"{{#filter [1, 2, 3] 2}}2 Found{{else}}2 not found{{/filter}} -> 2 Found",description:"<p>Block helper that filters the given array and renders the block for values that evaluate to <code>true</code>, otherwise the inverse block is returned.</p>\n",requiresBlock:!0},first:{args:["array","n"],example:"{{first [1, 2, 3, 4] 2}} -> 1,2",description:"<p>Returns the first item, or first <code>n</code> items of an array.</p>\n",requiresBlock:!1},forEach:{args:["array","options"],example:"{{#forEach [{ 'name': 'John' }] }} {{ name }} {{/forEach}} -> ' John '",description:"<p>Iterates over each item in an array and exposes the current item in the array as context to the inner block. In addition to the current array item, the helper exposes the following variables to the inner block: - <code>index</code> - <code>total</code> - <code>isFirst</code> - <code>isLast</code> Also, <code>@index</code> is exposed as a private variable, and additional private variables may be defined as hash arguments.</p>\n",requiresBlock:!0},inArray:{args:["array","value","options"],example:"{{#inArray [1, 2, 3] 2}} 2 exists {{else}} 2 does not exist {{/inArray}} -> ' 2 exists '",description:"<p>Block helper that renders the block if an array has the given <code>value</code>. Optionally specify an inverse block to render when the array does not have the given value.</p>\n",requiresBlock:!0},isArray:{args:["value"],example:"{{isArray [1, 2]}} -> true",description:"<p>Returns true if <code>value</code> is an es5 array.</p>\n",requiresBlock:!1},itemAt:{args:["array","idx"],example:"{{itemAt [1, 2, 3] 1}} -> 2",description:"<p>Returns the item from <code>array</code> at index <code>idx</code>.</p>\n",requiresBlock:!1},join:{args:["array","separator"],example:"{{join [1, 2, 3]}} -> 1, 2, 3",description:"<p>Join all elements of array into a string, optionally using a given separator.</p>\n",requiresBlock:!1},equalsLength:{args:["value","length"],example:"{{equalsLength [1, 2, 3] 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n",requiresBlock:!1},last:{args:["value","n"],example:"{{last [1, 2, 3]}} -> 3",description:'<p>Returns the last item, or last <code>n</code> items of an array or string. Opposite of <a href="#first">first</a>.</p>\n',requiresBlock:!1},length:{args:["value"],example:"{{length [1, 2, 3]}} -> 3",description:"<p>Returns the length of the given string or array.</p>\n",requiresBlock:!1},lengthEqual:{args:["value","length"],example:"{{equalsLength [1, 2, 3] 3}} -> true",description:"<p>Returns true if the the length of the given <code>value</code> is equal to the given <code>length</code>. Can be used as a block or inline helper.</p>\n",requiresBlock:!1},map:{args:["array","fn"],example:"{{map [1, 2, 3] double}} -> [2, 4, 6]",description:"<p>Returns a new array, created by calling <code>function</code> on each element of the given <code>array</code>. For example,</p>\n",requiresBlock:!1},pluck:{args:["collection","prop"],example:"{{pluck [{ 'name': 'Bob' }] 'name' }} -> ['Bob']",description:"<p>Map over the given object or array or objects and create an array of values from the given <code>prop</code>. Dot-notation may be used (as a string) to get nested properties.</p>\n",requiresBlock:!1},reverse:{args:["value"],example:"{{reverse [1, 2, 3]}} -> [3, 2, 1]",description:"<p>Reverse the elements in an array, or the characters in a string.</p>\n",requiresBlock:!1},some:{args:["array","iter","provided"],example:"{{#some [1, \"b\", 3] isString}} string found {{else}} No string found {{/some}} -> ' string found '",description:"<p>Block helper that returns the block if the callback returns true for some value in the given array.</p>\n",requiresBlock:!0},sort:{args:["array","key"],example:"{{ sort ['b', 'a', 'c'] }} -> ['a', 'b', 'c']",description:"<p>Sort the given <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n",requiresBlock:!1},sortBy:{args:["array","props"],example:"{{ sortBy [{'a': 'zzz'}, {'a': 'aaa'}] 'a' }} -> [{'a':'aaa'},{'a':'zzz'}]",description:"<p>Sort an <code>array</code>. If an array of objects is passed, you may optionally pass a <code>key</code> to sort on as the second argument. You may alternatively pass a sorting function as the second argument.</p>\n",requiresBlock:!1},withAfter:{args:["array","idx","options"],example:"{{#withAfter [1, 2, 3] 1 }} {{this}} {{/withAfter}} -> ' 2 3 '",description:'<p>Use the items in the array <em>after</em> the specified index as context inside a block. Opposite of <a href="#withBefore">withBefore</a>.</p>\n',requiresBlock:!0},withBefore:{args:["array","idx","options"],example:"{{#withBefore [1, 2, 3] 2 }} {{this}} {{/withBefore}} -> ' 1 '",description:'<p>Use the items in the array <em>before</em> the specified index as context inside a block. Opposite of <a href="#withAfter">withAfter</a>.</p>\n',requiresBlock:!0},withFirst:{args:["array","idx","options"],example:"{{#withFirst [1, 2, 3] }}{{this}}{{/withFirst}} -> 1",description:'<p>Use the first item in a collection inside a handlebars block expression. Opposite of <a href="#withLast">withLast</a>.</p>\n',requiresBlock:!0},withGroup:{args:["array","size","options"],example:"{{#withGroup [1, 2, 3, 4] 2}}{{#each this}}{{.}}{{/each}}<br>{{/withGroup}} -> 12<br>34<br>",description:"<p>Block helper that groups array elements by given group <code>size</code>.</p>\n",requiresBlock:!0},withLast:{args:["array","idx","options"],example:"{{#withLast [1, 2, 3, 4]}}{{this}}{{/withLast}} -> 4",description:'<p>Use the last item or <code>n</code> items in an array as context inside a block. Opposite of <a href="#withFirst">withFirst</a>.</p>\n',requiresBlock:!0},withSort:{args:["array","prop","options"],example:"{{#withSort ['b', 'a', 'c']}}{{this}}{{/withSort}} -> abc",description:"<p>Block helper that sorts a collection and exposes the sorted collection as context inside the block.</p>\n",requiresBlock:!0},unique:{args:["array","options"],example:"{{#each (unique ['a', 'a', 'c', 'b', 'e', 'e']) }}{{.}}{{/each}} -> acbe",description:'<p>Block helper that return an array with all duplicate values removed. Best used along with a <a href="#each">each</a> helper.</p>\n',requiresBlock:!0}},number={bytes:{args:["number"],example:"{{ bytes 1386 1 }} -> 1.4 kB",description:"<p>Format a number to it's equivalent in bytes. If a string is passed, it's length will be formatted and returned. <strong>Examples:</strong> - <code>'foo' => 3 B</code> - <code>13661855 => 13.66 MB</code> - <code>825399 => 825.39 kB</code> - <code>1396 => 1.4 kB</code></p>\n",requiresBlock:!1},addCommas:{args:["num"],example:"{{ addCommas 1000000 }} -> 1,000,000",description:"<p>Add commas to numbers</p>\n",requiresBlock:!1},phoneNumber:{args:["num"],example:"{{ phoneNumber 8005551212 }} -> (800) 555-1212",description:"<p>Convert a string or number to a formatted phone number.</p>\n",requiresBlock:!1},toAbbr:{args:["number","precision"],example:"{{ toAbbr 10123 2 }} -> 10.12k",description:"<p>Abbreviate numbers to the given number of <code>precision</code>. This for general numbers, not size in bytes.</p>\n",requiresBlock:!1},toExponential:{args:["number","fractionDigits"],example:"{{ toExponential 10123 2 }} -> 1.01e+4",description:"<p>Returns a string representing the given number in exponential notation.</p>\n",requiresBlock:!1},toFixed:{args:["number","digits"],example:"{{ toFixed 1.1234 2 }} -> 1.12",description:"<p>Formats the given number using fixed-point notation.</p>\n",requiresBlock:!1},toFloat:{args:["number"],description:"<p>Convert input to a float.</p>\n",requiresBlock:!1},toInt:{args:["number"],description:"<p>Convert input to an integer.</p>\n",requiresBlock:!1},toPrecision:{args:["number","precision"],example:"{{toPrecision '1.1234' 2}} -> 1.1",description:"<p>Returns a string representing the <code>Number</code> object to the specified precision.</p>\n",requiresBlock:!1}},url={encodeURI:{args:["str"],example:"{{ encodeURI 'https://myurl?Hello There' }} -> https%3A%2F%2Fmyurl%3FHello%20There",description:"<p>Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.</p>\n",requiresBlock:!1},escape:{args:["str"],example:"{{ escape 'https://myurl?Hello+There' }} -> https%3A%2F%2Fmyurl%3FHello%2BThere",description:"<p>Escape the given string by replacing characters with escape sequences. Useful for allowing the string to be used in a URL, etc.</p>\n",requiresBlock:!1},decodeURI:{args:["str"],example:"{{ decodeURI 'https://myurl?Hello%20There' }} -> https://myurl?Hello There",description:"<p>Decode a Uniform Resource Identifier (URI) component.</p>\n",requiresBlock:!1},urlResolve:{args:["base","href"],example:"{{ urlResolve 'https://myurl' '/api/test' }} -> https://myurl/api/test",description:"<p>Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag.</p>\n",requiresBlock:!1},urlParse:{args:["str"],example:"{{ urlParse 'https://myurl/api/test' }}",description:"<p>Parses a <code>url</code> string into an object.</p>\n",requiresBlock:!1},stripQuerystring:{args:["url"],example:"{{ stripQuerystring 'https://myurl/api/test?foo=bar' }} -> 'https://myurl/api/test'",description:"<p>Strip the query string from the given <code>url</code>.</p>\n",requiresBlock:!1},stripProtocol:{args:["str"],example:"{{ stripProtocol 'https://myurl/api/test' }} -> '//myurl/api/test'",description:"<p>Strip protocol from a <code>url</code>. Useful for displaying media that may have an 'http' protocol on secure connections.</p>\n",requiresBlock:!1}},string={append:{args:["str","suffix"],example:"{{append 'index' '.html'}} -> index.html",description:"<p>Append the specified <code>suffix</code> to the given string.</p>\n",requiresBlock:!1},camelcase:{args:["string"],example:"{{camelcase 'foo bar baz'}} -> fooBarBaz",description:"<p>camelCase the characters in the given <code>string</code>.</p>\n",requiresBlock:!1},capitalize:{args:["str"],example:"{{capitalize 'foo bar baz'}} -> Foo bar baz",description:"<p>Capitalize the first word in a sentence.</p>\n",requiresBlock:!1},capitalizeAll:{args:["str"],example:"{{ capitalizeAll 'foo bar baz'}} -> Foo Bar Baz",description:"<p>Capitalize all words in a string.</p>\n",requiresBlock:!1},center:{args:["str","spaces"],example:"{{ center 'test' 1}} -> ' test '",description:"<p>Center a string using non-breaking spaces</p>\n",requiresBlock:!1},chop:{args:["string"],example:"{{ chop ' ABC '}} -> ABC",description:"<p>Like trim, but removes both extraneous whitespace <strong>and non-word characters</strong> from the beginning and end of a string.</p>\n",requiresBlock:!1},dashcase:{args:["string"],example:"{{dashcase 'a-b-c d_e'}} -> a-b-c-d-e",description:"<p>dash-case the characters in <code>string</code>. Replaces non-word characters and periods with hyphens.</p>\n",requiresBlock:!1},dotcase:{args:["string"],example:"{{dotcase 'a-b-c d_e'}} -> a.b.c.d.e",description:"<p>dot.case the characters in <code>string</code>.</p>\n",requiresBlock:!1},downcase:{args:["string"],example:"{{downcase 'aBcDeF'}} -> abcdef",description:'<p>Lowercase all of the characters in the given string. Alias for <a href="#lowercase">lowercase</a>.</p>\n',requiresBlock:!1},ellipsis:{args:["str","length"],example:"{{ellipsis 'foo bar baz' 7}} -> foo bar…",description:"<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n",requiresBlock:!1},hyphenate:{args:["str"],example:"{{hyphenate 'foo bar baz qux'}} -> foo-bar-baz-qux",description:"<p>Replace spaces in a string with hyphens.</p>\n",requiresBlock:!1},isString:{args:["value"],example:"{{isString 'foo'}} -> true",description:"<p>Return true if <code>value</code> is a string.</p>\n",requiresBlock:!1},lowercase:{args:["str"],example:"{{lowercase 'Foo BAR baZ'}} -> foo bar baz",description:"<p>Lowercase all characters in the given string.</p>\n",requiresBlock:!1},occurrences:{args:["str","substring"],example:"{{occurrences 'foo bar foo bar baz' 'foo'}} -> 2",description:"<p>Return the number of occurrences of <code>substring</code> within the given <code>string</code>.</p>\n",requiresBlock:!1},pascalcase:{args:["string"],example:"{{pascalcase 'foo bar baz'}} -> FooBarBaz",description:"<p>PascalCase the characters in <code>string</code>.</p>\n",requiresBlock:!1},pathcase:{args:["string"],example:"{{pathcase 'a-b-c d_e'}} -> a/b/c/d/e",description:"<p>path/case the characters in <code>string</code>.</p>\n",requiresBlock:!1},plusify:{args:["str"],example:"{{plusify 'foo bar baz'}} -> foo+bar+baz",description:"<p>Replace spaces in the given string with pluses.</p>\n",requiresBlock:!1},prepend:{args:["str","prefix"],example:"{{prepend 'bar' 'foo-'}} -> foo-bar",description:"<p>Prepends the given <code>string</code> with the specified <code>prefix</code>.</p>\n",requiresBlock:!1},remove:{args:["str","substring"],example:"{{remove 'a b a b a b' 'a '}} -> b b b",description:"<p>Remove all occurrences of <code>substring</code> from the given <code>str</code>.</p>\n",requiresBlock:!1},removeFirst:{args:["str","substring"],example:"{{removeFirst 'a b a b a b' 'a'}} -> ' b a b a b'",description:"<p>Remove the first occurrence of <code>substring</code> from the given <code>str</code>.</p>\n",requiresBlock:!1},replace:{args:["str","a","b"],example:"{{replace 'a b a b a b' 'a' 'z'}} -> z b z b z b",description:"<p>Replace all occurrences of substring <code>a</code> with substring <code>b</code>.</p>\n",requiresBlock:!1},replaceFirst:{args:["str","a","b"],example:"{{replaceFirst 'a b a b a b' 'a' 'z'}} -> z b a b a b",description:"<p>Replace the first occurrence of substring <code>a</code> with substring <code>b</code>.</p>\n",requiresBlock:!1},sentence:{args:["str"],example:"{{sentence 'hello world. goodbye world.'}} -> Hello world. Goodbye world.",description:"<p>Sentence case the given string</p>\n",requiresBlock:!1},snakecase:{args:["string"],example:"{{snakecase 'a-b-c d_e'}} -> a_b_c_d_e",description:"<p>snake_case the characters in the given <code>string</code>.</p>\n",requiresBlock:!1},split:{args:["string"],example:"{{split 'a,b,c'}} -> ['a', 'b', 'c']",description:"<p>Split <code>string</code> by the given <code>character</code>.</p>\n",requiresBlock:!1},startsWith:{args:["prefix","testString","options"],example:"{{#startsWith 'Goodbye' 'Hello, world!'}}Yep{{else}}Nope{{/startsWith}} -> Nope",description:"<p>Tests whether a string begins with the given prefix.</p>\n",requiresBlock:!0},titleize:{args:["str"],example:"{{titleize 'this is title case' }} -> This Is Title Case",description:"<p>Title case the given string.</p>\n",requiresBlock:!1},trim:{args:["string"],example:"{{trim ' ABC ' }} -> ABC",description:"<p>Removes extraneous whitespace from the beginning and end of a string.</p>\n",requiresBlock:!1},trimLeft:{args:["string"],example:"{{trimLeft ' ABC ' }} -> 'ABC '",description:"<p>Removes extraneous whitespace from the beginning of a string.</p>\n",requiresBlock:!1},trimRight:{args:["string"],example:"{{trimRight ' ABC ' }} -> ' ABC'",description:"<p>Removes extraneous whitespace from the end of a string.</p>\n",requiresBlock:!1},truncate:{args:["str","limit","suffix"],example:"{{truncate 'foo bar baz' 7 }} -> foo bar",description:'<p>Truncate a string to the specified <code>length</code>. Also see <a href="#ellipsis">ellipsis</a>.</p>\n',requiresBlock:!1},truncateWords:{args:["str","limit","suffix"],example:"{{truncateWords 'foo bar baz' 1 }} -> foo…",description:'<p>Truncate a string to have the specified number of words. Also see <a href="#truncate">truncate</a>.</p>\n',requiresBlock:!1},upcase:{args:["string"],example:"{{upcase 'aBcDef'}} -> ABCDEF",description:'<p>Uppercase all of the characters in the given string. Alias for <a href="#uppercase">uppercase</a>.</p>\n',requiresBlock:!1},uppercase:{args:["str","options"],example:"{{uppercase 'aBcDef'}} -> ABCDEF",description:"<p>Uppercase all of the characters in the given string. If used as a block helper it will uppercase the entire block. This helper does not support inverse blocks.</p>\n",requiresBlock:!1},lorem:{args:["num"],example:"{{lorem 11}} -> Lorem ipsum",description:"<p>Takes a number and returns that many charaters of Lorem Ipsum</p>\n",requiresBlock:!1}},comparison={and:{args:["a","b","options"],example:"{{#and great magnificent}}both{{else}}no{{/and}} -> no",description:"<p>Helper that renders the block if <strong>both</strong> of the given values are truthy. If an inverse block is specified it will be rendered when falsy. Works as a block helper, inline helper or subexpression.</p>\n",requiresBlock:!0},compare:{args:["a","operator","b","options"],example:"{{compare 10 '<' 5 }} -> false",description:"<p>Render a block when a comparison of the first and third arguments returns true. The second argument is the [arithemetic operator][operators] to use. You may also optionally specify an inverse block to render when falsy.</p>\n",requiresBlock:!1},contains:{args:["collection","value","[startIndex=0]","options"],example:"{{#contains ['a', 'b', 'c'] 'd'}} This will not be rendered. {{else}} This will be rendered. {{/contains}} -> ' This will be rendered. '",description:"<p>Block helper that renders the block if <code>collection</code> has the given <code>value</code>, using strict equality (<code>===</code>) for comparison, otherwise the inverse block is rendered (if specified). If a <code>startIndex</code> is specified and is negative, it is used as the offset from the end of the collection.</p>\n",requiresBlock:!0},default:{args:["value","defaultValue"],example:"{{default null null 'default'}} -> default",description:"<p>Returns the first value that is not undefined, otherwise the 'default' value is returned.</p>\n",requiresBlock:!1},eq:{args:["a","b","options"],example:"{{#eq 3 3}}equal{{else}}not equal{{/eq}} -> equal",description:"<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},gt:{args:["a","b","options"],example:"{{#gt 4 3}} greater than{{else}} not greater than{{/gt}} -> ' greater than'",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},gte:{args:["a","b","options"],example:"{{#gte 4 3}} greater than or equal{{else}} not greater than{{/gte}} -> ' greater than or equal'",description:"<p>Block helper that renders a block if <code>a</code> is <strong>greater than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},has:{args:["val","pattern","options"],example:"{{#has 'foobar' 'foo'}}has it{{else}}doesn't{{/has}} -> has it",description:"<p>Block helper that renders a block if <code>value</code> has <code>pattern</code>. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},isFalsey:{args:["val","options"],example:"{{isFalsey '' }} -> true",description:"<p>Returns true if the given <code>value</code> is falsey. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n",requiresBlock:!1},isTruthy:{args:["val","options"],example:"{{isTruthy '12' }} -> true",description:"<p>Returns true if the given <code>value</code> is truthy. Uses the [falsey][] library for comparisons. Please see that library for more information or to report bugs with this helper.</p>\n",requiresBlock:!1},ifEven:{args:["number","options"],example:"{{#ifEven 2}} even {{else}} odd {{/ifEven}} -> ' even '",description:"<p>Return true if the given value is an even number.</p>\n",requiresBlock:!0},ifNth:{args:["a","b","options"],example:"{{#ifNth 2 10}}remainder{{else}}no remainder{{/ifNth}} -> remainder",description:"<p>Conditionally renders a block if the remainder is zero when <code>b</code> operand is divided by <code>a</code>. If an inverse block is specified it will be rendered when the remainder is <strong>not zero</strong>.</p>\n",requiresBlock:!0},ifOdd:{args:["value","options"],example:"{{#ifOdd 3}}odd{{else}}even{{/ifOdd}} -> odd",description:"<p>Block helper that renders a block if <code>value</code> is <strong>an odd number</strong>. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},is:{args:["a","b","options"],example:"{{#is 3 3}} is {{else}} is not {{/is}} -> ' is '",description:'<p>Block helper that renders a block if <code>a</code> is <strong>equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#eq">eq</a> but does not do strict equality.</p>\n',requiresBlock:!0},isnt:{args:["a","b","options"],example:"{{#isnt 3 3}} isnt {{else}} is {{/isnt}} -> ' is '",description:'<p>Block helper that renders a block if <code>a</code> is <strong>not equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. Similar to <a href="#unlesseq">unlessEq</a> but does not use strict equality for comparisons.</p>\n',requiresBlock:!0},lt:{args:["context","options"],example:"{{#lt 2 3}} less than {{else}} more than or equal {{/lt}} -> ' less than '",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},lte:{args:["a","b","options"],example:"{{#lte 2 3}} less than or equal {{else}} more than {{/lte}} -> ' less than or equal '",description:"<p>Block helper that renders a block if <code>a</code> is <strong>less than or equal to</strong> <code>b</code>. If an inverse block is specified it will be rendered when falsy. You may optionally use the <code>compare=''</code> hash argument for the second value.</p>\n",requiresBlock:!0},neither:{args:["a","b","options"],example:"{{#neither null null}}both falsey{{else}}both not falsey{{/neither}} -> both falsey",description:"<p>Block helper that renders a block if <strong>neither of</strong> the given values are truthy. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},not:{args:["val","options"],example:"{{#not undefined }}falsey{{else}}not falsey{{/not}} -> falsey",description:"<p>Returns true if <code>val</code> is falsey. Works as a block or inline helper.</p>\n",requiresBlock:!0},or:{args:["arguments","options"],example:"{{#or 1 2 undefined }} at least one truthy {{else}} all falsey {{/or}} -> ' at least one truthy '",description:"<p>Block helper that renders a block if <strong>any of</strong> the given values is truthy. If an inverse block is specified it will be rendered when falsy.</p>\n",requiresBlock:!0},unlessEq:{args:["a","b","options"],example:"{{#unlessEq 2 1 }} not equal {{else}} equal {{/unlessEq}} -> ' not equal '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is equal to <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessGt:{args:["a","b","options"],example:"{{#unlessGt 20 1 }} not greater than {{else}} greater than {{/unlessGt}} -> ' greater than '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessLt:{args:["a","b","options"],example:"{{#unlessLt 20 1 }}greater than or equal{{else}}less than{{/unlessLt}} -> greater than or equal",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessGteq:{args:["a","b","options"],example:"{{#unlessGteq 20 1 }} less than {{else}}greater than or equal to{{/unlessGteq}} -> greater than or equal to",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is greater than or equal to <code>b</code></strong>.</p>\n",requiresBlock:!0},unlessLteq:{args:["a","b","options"],example:"{{#unlessLteq 20 1 }} greater than {{else}} less than or equal to {{/unlessLteq}} -> ' greater than '",description:"<p>Block helper that always renders the inverse block <strong>unless <code>a</code> is less than or equal to <code>b</code></strong>.</p>\n",requiresBlock:!0}},object={extend:{args:["objects"],description:"<p>Extend the context with the properties of other objects. A shallow merge is performed to avoid mutating the context.</p>\n",requiresBlock:!1},forIn:{args:["context","options"],description:"<p>Block helper that iterates over the properties of an object, exposing each key and value on the context.</p>\n",requiresBlock:!0},forOwn:{args:["obj","options"],description:"<p>Block helper that iterates over the <strong>own</strong> properties of an object, exposing each key and value on the context.</p>\n",requiresBlock:!0},toPath:{args:["prop"],description:"<p>Take arguments and, if they are string or number, convert them to a dot-delineated object property path.</p>\n",requiresBlock:!1},get:{args:["prop","context","options"],description:"<p>Use property paths (<code>a.b.c</code>) to get a value or nested value from the context. Works as a regular helper or block helper.</p>\n",requiresBlock:!0},getObject:{args:["prop","context"],description:"<p>Use property paths (<code>a.b.c</code>) to get an object from the context. Differs from the <code>get</code> helper in that this helper will return the actual object, including the given property key. Also, this helper does not work as a block helper.</p>\n",requiresBlock:!1},hasOwn:{args:["key","context"],description:"<p>Return true if <code>key</code> is an own, enumerable property of the given <code>context</code> object.</p>\n",requiresBlock:!1},isObject:{args:["value"],description:"<p>Return true if <code>value</code> is an object.</p>\n",requiresBlock:!1},JSONparse:{args:["string"],description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n",requiresBlock:!0},JSONstringify:{args:["obj"],description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n",requiresBlock:!1},merge:{args:["object","objects"],description:"<p>Deeply merge the properties of the given <code>objects</code> with the context object.</p>\n",requiresBlock:!1},parseJSON:{args:["string"],description:"<p>Parses the given string using <code>JSON.parse</code>.</p>\n",requiresBlock:!0},pick:{args:["properties","context","options"],description:"<p>Pick properties from the context object.</p>\n",requiresBlock:!0},stringify:{args:["obj"],description:"<p>Stringify an object using <code>JSON.stringify</code>.</p>\n",requiresBlock:!1}},regex={toRegex:{args:["str"],example:"{{toRegex 'foo'}} -> /foo/",description:"<p>Convert the given string to a regular expression.</p>\n",requiresBlock:!1},test:{args:["str"],example:"{{test 'foobar' (toRegex 'foo')}} -> true",description:'<p>Returns true if the given <code>str</code> matches the given regex. A regex can be passed on the context, or using the <a href="#toregex">toRegex</a> helper as a subexpression.</p>\n',requiresBlock:!1}},uuid={uuid:{args:[],example:"{{ uuid }} -> f34ebc66-93bd-4f7c-b79b-92b5569138bc",description:"<p>Generates a UUID, using the V4 method (identical to the browser crypto.randomUUID function).</p>\n",requiresBlock:!1}},date={date:{args:["[datetime]","[format]","[options]"],example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:"<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>\n"},duration:{args:["time","durationType"],example:'{{duration 8 "seconds"}} -> a few seconds',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"},difference:{args:["from","to","[unitType=ms]"],example:'{{ difference "2025-09-30" "2025-06-17" "seconds" }} -> 9072000',description:"<p>Gets the difference between two dates, in milliseconds. Pass a third parameter to adjust the unit measurement.</p>\n"},durationFromNow:{args:["time"],example:'{{durationFromNow "2021-09-30"}} -> 8 months',description:"<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"}},manifest={math:math,array:array,number:number,url:url,string:string,comparison:comparison,object:object,regex:regex,uuid:uuid,date:date};const hbsInstance=handlebars.create();registerAll(hbsInstance);const helperNames=Object.keys(hbsInstance.helpers),hbsInstanceNoHelpers=handlebars.create();registerMinimum(hbsInstanceNoHelpers);const defaultOpts={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function testObject(e){try{JSON.stringify(e)}catch(e){throw"Unable to process inputs to JSON, cannot recurse"}}function findOverlappingHelpers(e){if(!e)return[];return Object.keys(e).filter(e=>helperNames.includes(e))}const templateCache={};function createTemplate(e,t,r){const n=!(null==(t=Object.assign(Object.assign({},defaultOpts),t))?void 0:t.noHelpers),o=`${e}-${JSON.stringify(t)}`;if(t.cacheTemplates&&templateCache[o])return templateCache[o];const a=n?findOverlappingHelpers(r):[];if(e=preprocess(e,Object.assign(Object.assign({},t),{disabledHelpers:a})),r&&n&&a.length>0)for(const t of findHBSBlocks(e))e=e.replace(t,prefixStrings(t,a,"./"));t.noEscaping&&(e=disableEscaping(e));const i=(t.noHelpers?hbsInstanceNoHelpers:hbsInstance).compile(e,{strict:!1});return templateCache[o]=i,i}function processObject(e,t,r){return __awaiter(this,void 0,void 0,function*(){testObject(e);for(const n of Object.keys(e||{}))if(null!=e[n]){const o=e[n];let a=o;"string"==typeof o?a=yield processString(e[n],t,r):"object"==typeof o&&(a=yield processObject(e[n],t,r)),e[n]=a}return e})}function processString(e,t,r){return __awaiter(this,void 0,void 0,function*(){return processStringSync(e,t,r)})}function processObjectSync(e,t,r){testObject(e);for(let n of Object.keys(e||{})){let o=e[n];"string"==typeof o?e[n]=processStringSync(e[n],t,r):"object"==typeof o&&(e[n]=processObjectSync(e[n],t,r))}return e}function processStringSyncInternal(e,t,r){const n=e;if("string"!=typeof e)throw new Error("Cannot process non-string types.");function o(e){const n=createTemplate(e,r,t),o=1e3*Math.floor(Date.now()/1e3),a=n(Object.assign({now:new Date(o).toISOString(),__opts:Object.assign(Object.assign({},r),{input:e})},t));return(null==r?void 0:r.logging)?postprocessWithLogs(a):postprocess(a)}try{if(r&&r.onlyFound){let t=[];const n=findHBSBlocks(e);for(let r of n){const n=o(r);"object"==typeof n&&"result"in n?(t=t.concat(n.logs||[]),e=e.replace(r,n.result)):e=e.replace(r,n)}return(null==r?void 0:r.logging)?{result:e,logs:t}:e}return o(e)}catch(e){const{noThrow:t=!0}=r||{};if(t)return n;throw e}}function processStringSync(e,t,r){return processStringSyncInternal(e,t,Object.assign(Object.assign({},r),{logging:!1}))}function processStringWithLogsSync(e,t,r){if(isBackendService())throw new Error("Logging disabled for backend bindings");return processStringSyncInternal(e,t,Object.assign(Object.assign({},r),{logging:!0}))}function disableEscaping(e){const t=findDoubleHbsInstances(e);if(null==t)return e;const r=[...new Set(t)];for(let t of r){const r=new RegExp(`${t}(?!})`,"g");e=e.replace(r,`{${t}}`)}return e}function makePropSafe(e){return`[${e}]`.replace("[[","[").replace("]]","]")}function isValid(e,t){const r=["string","number","object","array","cannot read property","undefined","json at position 0"],n=["expecting '"],o={};try{return createTemplate(e,Object.assign(Object.assign({},t),{noFinalise:!0}))(o),!0}catch(e){const t=e&&e.message?e.message:e;if(!t)return!1;const o=n.some(e=>t.toLowerCase().includes(e));return r.some(e=>t.toLowerCase().includes(e))&&!o}}function getManifest(){return manifest}function isJSBinding(e){return null!=decodeJSBinding(e)}function encodeJSBinding(e){return`{{ js "${btoa(e)}" }}`}function decodeJSBinding(e){if(!e||"string"!=typeof e)return null;if(!e.trim().startsWith("{{ js "))return null;const t=new RegExp(/{{ js "(.*)" }}/),r=e.match(t);return!r||r.length<2?null:atob(r[1])}function doesContainStrings(e,t){let r=new RegExp(FIND_HBS_REGEX),n=e.match(r);if(null==n)return!1;for(let e of n){let r=e;isJSBinding(e)&&(r=decodeJSBinding(e));let n=!0;for(let e of t)r.includes(e)||(n=!1);if(n)return!0}return!1}function findHBSBlocks(e){if(!e||"string"!=typeof e)return[];let t=new RegExp(FIND_ANY_HBS_REGEX),r=e.match(t);return null==r?[]:r}function doesContainString(e,t){return doesContainStrings(e,[t])}function convertToJS(e){const t=findHBSBlocks(e);let r="return `",n=null;const o={};0===t.length&&(r+=e);let a=1;for(let i of t){let t=e;n&&(t=t.split(n)[1]),t=t.split(i)[0],n=i;const{variable:s,value:u}=convertHBSBlock(i,a++);o[s]=u,r+=`${[t]}\${${s}}`}let i="";for(let[e,t]of Object.entries(o))i+=`const ${e} = ${t};\n`;return r+="`;",`${i}${r}`}function browserJSSetup(){const e=isTest()?vm:vmBrowserify;setJSRunner((t,r)=>{e.createContext(r);const n=frontendWrapJS(t),o=e.runInNewContext(n,r);if(o.error)throw new UserScriptError(o.error);return o.result})}function defaultJSSetup(){isBackendService()?removeJSRunner():browserJSSetup()}defaultJSSetup(),exports.FIND_ANY_HBS_REGEX=FIND_ANY_HBS_REGEX,exports.JsTimeoutError=JsTimeoutError,exports.UserScriptError=UserScriptError,exports.browserJSSetup=browserJSSetup,exports.convertToJS=convertToJS,exports.decodeJSBinding=decodeJSBinding,exports.defaultJSSetup=defaultJSSetup,exports.disableEscaping=disableEscaping,exports.doesContainString=doesContainString,exports.doesContainStrings=doesContainStrings,exports.encodeJSBinding=encodeJSBinding,exports.findHBSBlocks=findHBSBlocks,exports.getJsHelperList=getJsHelperList,exports.getManifest=getManifest,exports.helpersToRemoveForJs=helpersToRemoveForJs,exports.iifeWrapper=iifeWrapper,exports.isJSBinding=isJSBinding,exports.isValid=isValid,exports.makePropSafe=makePropSafe,exports.processObject=processObject,exports.processObjectSync=processObjectSync,exports.processString=processString,exports.processStringSync=processStringSync,exports.processStringWithLogsSync=processStringWithLogsSync,exports.setJSRunner=setJSRunner,exports.setOnErrorLog=setOnErrorLog,exports.setTestingBackendJS=setTestingBackendJS;
|