Файловый менеджер - Редактировать - /home/digitalm/yhubita/wp-content/plugins/internal-links/frontend/assets/js/ilj-link-preview.js
Назад
(()=>{"use strict";var e={422:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([e.id,"\n.ilj-link-preview-featured-image {\n width: 100%;\n object-fit: cover;\n height: 200px;\n\n}\n\n.ilj-link-preview-excerpt {\n margin-left: 15px;\n margin-right: 15px;\n text-align: justify;\n text-justify: inter-word;\n}\n\n.tippy-content {\n padding: 2px;\n}\n\n.ilj-link-preview {\n min-width: 300px;\n width: 300px;\n}",""]);const a=o},2:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=o},26:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([e.id,".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}",""]);const a=o},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},o=[],a=0;a<e.length;a++){var c=e[a],l=r.base?c[0]+r.base:c[0],u=s[l]||0,p="".concat(l," ").concat(u);s[l]=u+1;var h=n(p),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(d);else{var f=i(d,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:f,references:1})}o.push(p)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var s=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var a=n(s[o]);t[a].references--}for(var c=r(e,i),l=0;l<s.length;l++){var u=n(s[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}s=c}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,exports:{}};return e[r](s,s.exports,n),s.exports}function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function s(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0;var a=Math.max,c=Math.min,l=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function p(){return!/^((?!chrome|android).)*safari/i.test(u())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=1,c=1;t&&s(e)&&(a=e.offsetWidth>0&&l(o.width)/e.offsetWidth||1,c=e.offsetHeight>0&&l(o.height)/e.offsetHeight||1);var u=(i(e)?r(e):window).visualViewport,h=!p()&&n,d=(o.left+(h&&u?u.offsetLeft:0))/a,f=(o.top+(h&&u?u.offsetTop:0))/c,m=o.width/a,g=o.height/c;return{width:m,height:g,top:f,right:d+m,bottom:f+g,left:d,x:d,y:f}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+d(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function v(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i,o,a=s(t),c=s(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),p=h(e,c,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==f(t)||v(u))&&(y=(i=t)!==r(i)&&s(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:d(i)),s(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:p.left+y.scrollLeft-b.x,y:p.top+y.scrollTop-b.y,width:p.width,height:p.height}}function w(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||m(e)}function k(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:s(e)&&v(e)?e:k(x(e))}function T(e,t){var n;void 0===t&&(t=[]);var i=k(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=r(i),a=s?[o].concat(o.visualViewport||[],v(i)?i:[]):i,c=t.concat(a);return s?c:c.concat(T(x(a)))}function O(e){return["table","td","th"].indexOf(f(e))>=0}function L(e){return s(e)&&"fixed"!==y(e).position?e.offsetParent:null}function E(e){for(var t=r(e),n=L(e);n&&O(n)&&"static"===y(n).position;)n=L(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===y(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&s(e)&&"fixed"===y(e).position)return null;var n=x(e);for(o(n)&&(n=n.host);s(n)&&["html","body"].indexOf(f(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",A="bottom",j="right",F="left",D="auto",_=[S,A,j,F],R="start",z="end",M="viewport",N="popper",q=_.reduce((function(e,t){return e.concat([t+"-"+R,t+"-"+z])}),[]),V=[].concat(_,[D]).reduce((function(e,t){return e.concat([t,t+"-"+R,t+"-"+z])}),[]),C=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var I={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?I:s;return function(e,t,n){void 0===n&&(n=o);var s,a,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},I,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,p={state:c,setOptions:function(n){var s="function"==typeof n?n(c.options):n;h(),c.options=Object.assign({},o,c.options,s),c.scrollParents={reference:i(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var a,u,d=function(e){var t=P(e);return C.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,c.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return c.orderedModifiers=d.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:c,name:t,instance:p,options:r});l.push(s||function(){})}})),p.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,n=e.popper;if($(t,n)){c.rects={reference:b(t,E(n),"fixed"===c.options.strategy),popper:w(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var i=c.orderedModifiers[r],s=i.fn,o=i.options,a=void 0===o?{}:o,l=i.name;"function"==typeof s&&(c=s({state:c,options:a,name:l,instance:p})||c)}else c.reset=!1,r=-1}}},update:(s=function(){return new Promise((function(e){p.forceUpdate(),e(c)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(s())}))}))),a}),destroy:function(){h(),u=!0}};if(!$(e,t))return p;function h(){l.forEach((function(e){return e()})),l=[]}return p.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var H={passive:!0};const U={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,a=i.resize,c=void 0===a||a,l=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,H)})),c&&l.addEventListener("resize",n.update,H),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),c&&l.removeEventListener("resize",n.update,H)}},data:{}};function W(e){return e.split("-")[0]}function Y(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,n=e.reference,r=e.element,i=e.placement,s=i?W(i):null,o=i?Y(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(s){case S:t={x:a,y:n.y-r.height};break;case A:t={x:a,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:c};break;case F:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=s?J(s):null;if(null!=l){var u="y"===l?"height":"width";switch(o){case R:t[l]=t[l]-(n[u]/2-r[u]/2);break;case z:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,d=e.isFixed,f=a.x,g=void 0===f?0:f,v=a.y,b=void 0===v?0:v,w="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var x=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),T=F,O=S,L=window;if(p){var D=E(n),_="clientHeight",R="clientWidth";D===r(n)&&"static"!==y(D=m(n)).position&&"absolute"===c&&(_="scrollHeight",R="scrollWidth"),(s===S||(s===F||s===j)&&o===z)&&(O=A,b-=(d&&D===L&&L.visualViewport?L.visualViewport.height:D[_])-i.height,b*=u?1:-1),s!==F&&(s!==S&&s!==A||o!==z)||(T=j,g-=(d&&D===L&&L.visualViewport?L.visualViewport.width:D[R])-i.width,g*=u?1:-1)}var M,N=Object.assign({position:c},p&&Q),q=!0===h?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:l(n*i)/i||0,y:l(r*i)/i||0}}({x:g,y:b},r(n)):{x:g,y:b};return g=q.x,b=q.y,u?Object.assign({},N,((M={})[O]=k?"0":"",M[T]=x?"0":"",M.transform=(L.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",M)):Object.assign({},N,((t={})[O]=k?b+"px":"",t[T]=x?g+"px":"",t.transform="",t))}const G={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,c=void 0===a||a,l={placement:W(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},K={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];s(i)&&f(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});s(r)&&f(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=void 0===i?[0,0]:i,o=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),i=[F,S].indexOf(r)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[F,j].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,s),e}),{}),a=o[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}};var te={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e){return e.replace(/left|right|bottom|top/g,(function(e){return te[e]}))}var re={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t,n){return t===M?oe(function(e,t){var n=r(e),i=m(e),s=n.visualViewport,o=i.clientWidth,a=i.clientHeight,c=0,l=0;if(s){o=s.width,a=s.height;var u=p();(u||!u&&"fixed"===t)&&(c=s.offsetLeft,l=s.offsetTop)}return{width:o,height:a,x:c+g(e),y:l}}(e,n)):i(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oe(function(e){var t,n=m(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=a(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=a(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+g(e),l=-r.scrollTop;return"rtl"===y(i||n).direction&&(c+=a(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:c,y:l}}(m(e)))}function ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function le(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,l=n.strategy,u=void 0===l?e.strategy:l,p=n.boundary,d=void 0===p?"clippingParents":p,g=n.rootBoundary,v=void 0===g?M:g,b=n.elementContext,w=void 0===b?N:b,k=n.altBoundary,O=void 0!==k&&k,L=n.padding,F=void 0===L?0:L,D=ce("number"!=typeof F?F:le(F,_)),R=w===N?"reference":N,z=e.rects.popper,q=e.elements[O?R:w],V=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=T(x(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&s(e)?E(e):e;return i(n)?t.filter((function(e){return i(e)&&se(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),l=[].concat(o,[n]),u=l[0],p=l.reduce((function(t,n){var i=ae(e,n,r);return t.top=a(i.top,t.top),t.right=c(i.right,t.right),t.bottom=c(i.bottom,t.bottom),t.left=a(i.left,t.left),t}),ae(e,u,r));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}(i(q)?q:q.contextElement||m(e.elements.popper),d,v,u),C=h(e.elements.reference),P=Z({reference:C,element:z,strategy:"absolute",placement:o}),I=oe(Object.assign({},z,P)),$=w===N?I:C,B={top:V.top-$.top+D.top,bottom:$.bottom-V.bottom+D.bottom,left:V.left-$.left+D.left,right:$.right-V.right+D.right},H=e.modifiersData.offset;if(w===N&&H){var U=H[o];Object.keys(B).forEach((function(e){var t=[j,A].indexOf(e)>=0?1:-1,n=[S,A].indexOf(e)>=0?"y":"x";B[e]+=U[n]*t}))}return B}const pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=void 0===i||i,o=n.altAxis,a=void 0===o||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,p=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,f=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,y=W(g),v=c||(y!==g&&f?function(e){if(W(e)===D)return[];var t=ne(e);return[ie(e),t,ie(t)]}(g):[ne(g)]),b=[g].concat(v).reduce((function(e,n){return e.concat(W(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?V:c,u=Y(r),p=u?a?q:q.filter((function(e){return Y(e)===u})):_,h=p.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=p);var d=h.reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:i,rootBoundary:s,padding:o})[W(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:l,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,T=!0,O=b[0],L=0;L<b.length;L++){var E=b[L],z=W(E),M=Y(E)===R,N=[S,A].indexOf(z)>=0,C=N?"width":"height",P=ue(t,{placement:E,boundary:u,rootBoundary:p,altBoundary:h,padding:l}),I=N?M?j:F:M?A:S;w[C]>x[C]&&(I=ne(I));var $=ne(I),B=[];if(s&&B.push(P[z]<=0),a&&B.push(P[I]<=0,P[$]<=0),B.every((function(e){return e}))){O=E,T=!1;break}k.set(E,B)}if(T)for(var H=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},U=f?3:1;U>0&&"break"!==H(U);U--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function he(e,t,n){return a(e,c(t,n))}const de={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=void 0===i||i,o=n.altAxis,l=void 0!==o&&o,u=n.boundary,p=n.rootBoundary,h=n.altBoundary,d=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,y=void 0===g?0:g,v=ue(t,{boundary:u,rootBoundary:p,padding:d,altBoundary:h}),b=W(t.placement),x=Y(t.placement),k=!x,T=J(b),O="x"===T?"y":"x",L=t.modifiersData.popperOffsets,D=t.rects.reference,_=t.rects.popper,z="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,M="number"==typeof z?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(L){if(s){var V,C="y"===T?S:F,P="y"===T?A:j,I="y"===T?"height":"width",$=L[T],B=$+v[C],H=$-v[P],U=m?-_[I]/2:0,Z=x===R?D[I]:_[I],Q=x===R?-_[I]:-D[I],X=t.elements.arrow,G=m&&X?w(X):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=K[C],te=K[P],ne=he(0,D[I],G[I]),re=k?D[I]/2-U-ne-ee-M.mainAxis:Z-ne-ee-M.mainAxis,ie=k?-D[I]/2+U+ne+te+M.mainAxis:Q+ne+te+M.mainAxis,se=t.elements.arrow&&E(t.elements.arrow),oe=se?"y"===T?se.clientTop||0:se.clientLeft||0:0,ae=null!=(V=null==N?void 0:N[T])?V:0,ce=$+ie-ae,le=he(m?c(B,$+re-ae-oe):B,$,m?a(H,ce):H);L[T]=le,q[T]=le-$}if(l){var pe,de="x"===T?S:F,fe="x"===T?A:j,me=L[O],ge="y"===O?"height":"width",ye=me+v[de],ve=me-v[fe],be=-1!==[S,F].indexOf(b),we=null!=(pe=null==N?void 0:N[O])?pe:0,xe=be?ye:me-D[ge]-_[ge]-we+M.altAxis,ke=be?me+D[ge]+_[ge]-we-M.altAxis:ve,Te=m&&be?function(e,t,n){var r=he(e,t,n);return r>n?n:r}(xe,me,ke):he(m?xe:ye,me,m?ke:ve);L[O]=Te,q[O]=Te-me}t.modifiersData[r]=q}},requiresIfExists:["offset"]},fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=W(n.placement),c=J(a),l=[F,j].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:le(e,_))}(i.padding,n),p=w(s),h="y"===c?S:F,d="y"===c?A:j,f=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],m=o[c]-n.rects.reference[c],g=E(s),y=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,b=u[h],x=y-p[l]-u[d],k=y/2-p[l]/2+v,T=he(b,k,x),O=c;n.modifiersData[r]=((t={})[O]=T,t.centerOffset=T-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ge(e){return[S,j,A,F].some((function(t){return e[t]>=0}))}var ye=B({defaultModifiers:[U,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},G,K,ee,pe,de,fe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=ue(t,{elementContext:"reference"}),a=ue(t,{altBoundary:!0}),c=me(o,r),l=me(a,i,s),u=ge(c),p=ge(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ve="tippy-content",be="tippy-arrow",we="tippy-svg-arrow",xe={passive:!0,capture:!0},ke=function(){return document.body};function Te(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Oe(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Le(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ee(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Se(e){return[].concat(e)}function Ae(e,t){-1===e.indexOf(t)&&e.push(t)}function je(e){return[].slice.call(e)}function Fe(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function De(){return document.createElement("div")}function _e(e){return["Element","Fragment"].some((function(t){return Oe(e,t)}))}function Re(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ze(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Me(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Ne(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var qe={isTouch:!1},Ve=0;function Ce(){qe.isTouch||(qe.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pe))}function Pe(){var e=performance.now();e-Ve<20&&(qe.isTouch=!1,document.removeEventListener("mousemove",Pe)),Ve=e}function Ie(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var $e=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Be=Object.assign({appendTo:ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),He=Object.keys(Be);function Ue(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,s=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Be[i])?r:s),t}),{});return Object.assign({},e,t)}function We(e,t){var n=Object.assign({},t,{content:Le(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ue(Object.assign({},Be,{plugins:t}))):He).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Be.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ye(e,t){e.innerHTML=t}function Je(e){var t=De();return!0===e?t.className=be:(t.className=we,_e(e)?t.appendChild(e):Ye(t,e)),t}function Ze(e,t){_e(t.content)?(Ye(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ye(e,t.content):e.textContent=t.content)}function Qe(e){var t=e.firstElementChild,n=je(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(ve)})),arrow:n.find((function(e){return e.classList.contains(be)||e.classList.contains(we)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Xe(e){var t=De(),n=De();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=De();function i(n,r){var i=Qe(t),s=i.box,o=i.content,a=i.arrow;r.theme?s.setAttribute("data-theme",r.theme):s.removeAttribute("data-theme"),"string"==typeof r.animation?s.setAttribute("data-animation",r.animation):s.removeAttribute("data-animation"),r.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?s.setAttribute("role",r.role):s.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Ze(o,e.props),r.arrow?a?n.arrow!==r.arrow&&(s.removeChild(a),s.appendChild(Je(r.arrow))):s.appendChild(Je(r.arrow)):a&&s.removeChild(a)}return r.className=ve,r.setAttribute("data-state","hidden"),Ze(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}Xe.$$tippy=!0;var Ge=1,Ke=[],et=[];function tt(e,t){var n,r,i,s,o,a,c,l,u=We(e,Object.assign({},Be,Ue(Fe(t)))),p=!1,h=!1,d=!1,f=!1,m=[],g=Ee(Y,u.interactiveDebounce),y=Ge++,v=(l=u.plugins).filter((function(e,t){return l.indexOf(e)===t})),b={id:y,reference:e,popper:De(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(!b.state.isDestroyed){R("onBeforeUpdate",[b,t]),U();var n=b.props,r=We(e,Object.assign({},n,Fe(t),{ignoreAttributes:!0}));b.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),g=Ee(Y,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Se(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),M(),_(),k&&k(n,r),b.popperInstance&&(X(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),R("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=qe.isTouch&&!b.props.touch,i=Te(b.props.duration,0,Be.duration);if(!(e||t||n||r||A().hasAttribute("disabled")||(R("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,S()&&(x.style.visibility="visible"),_(),P(),b.state.isMounted||(x.style.transition="none"),S()){var s=F();Re([s.box,s.content],0)}var o,c,l;a=function(){var e;if(b.state.isVisible&&!f){if(f=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=F(),n=t.box,r=t.content;Re([n,r],i),ze([n,r],"visible")}z(),M(),Ae(et,b),null==(e=b.popperInstance)||e.forceUpdate(),R("onMount",[b]),b.props.animation&&S()&&function(e){$(e,(function(){b.state.isShown=!0,R("onShown",[b])}))}(i)}},c=b.props.appendTo,l=A(),(o=b.props.interactive&&c===ke||"parent"===c?l.parentNode:Le(c,[l])).contains(x)||o.appendChild(x),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Te(b.props.duration,1,Be.duration);if(!(e||t||n)&&(R("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,p=!1,S()&&(x.style.visibility="hidden"),N(),I(),_(!0),S()){var i=F(),s=i.box,o=i.content;b.props.animation&&(Re([s,o],r),ze([s,o],"hidden"))}z(),M(),b.props.animation?S()&&function(e,t){$(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()}},hideWithInteractivity:function(e){j().addEventListener("mousemove",g),Ae(Ke,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(G(),K().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),et=et.filter((function(e){return e!==b})),b.state.isMounted=!1,R("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b]))}};if(!u.render)return b;var w=u.render(b),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var T=v.map((function(e){return e.fn(b)})),O=e.hasAttribute("aria-expanded");return H(),M(),_(),R("onCreate",[b]),u.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",g)})),b;function L(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===L()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function A(){return c||e}function j(){var e,t,n=A().parentNode;return n?null!=(t=Se(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function F(){return Qe(x)}function D(e){return b.state.isMounted&&!b.state.isVisible||qe.isTouch||s&&"focus"===s.type?0:Te(b.props.delay,e?0:1,Be.delay)}function _(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function R(e,t,n){var r;void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=b.props)[e].apply(r,t)}function z(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;Se(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function M(){!O&&b.props.aria.expanded&&Se(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){j().removeEventListener("mousemove",g),Ke=Ke.filter((function(e){return e!==g}))}function q(t){if(!qe.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ne(x,n)){if(Se(b.props.triggerTarget||e).some((function(e){return Ne(e,n)}))){if(qe.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||I())}}}function V(){d=!0}function C(){d=!1}function P(){var e=j();e.addEventListener("mousedown",q,!0),e.addEventListener("touchend",q,xe),e.addEventListener("touchstart",C,xe),e.addEventListener("touchmove",V,xe)}function I(){var e=j();e.removeEventListener("mousedown",q,!0),e.removeEventListener("touchend",q,xe),e.removeEventListener("touchstart",C,xe),e.removeEventListener("touchmove",V,xe)}function $(e,t){var n=F().box;function r(e){e.target===n&&(Me(n,"remove",r),t())}if(0===e)return t();Me(n,"remove",o),Me(n,"add",r),o=r}function B(t,n,r){void 0===r&&(r=!1),Se(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;E()&&(B("touchstart",W,{passive:!0}),B("touchend",J,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(B(e,W),e){case"mouseenter":B("mouseleave",J);break;case"focus":B($e?"focusout":"blur",Z);break;case"focusin":B("focusout",Z)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!Q(e)&&!h){var r="focus"===(null==(t=s)?void 0:t.type);s=e,c=e.currentTarget,M(),!b.state.isVisible&&Oe(e,"MouseEvent")&&Ke.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||p)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=A().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=K().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,o=i.placement.split("-")[0],a=i.modifiersData.offset;if(!a)return!0;var c="bottom"===o?a.top.y:0,l="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,p="left"===o?a.right.x:0,h=t.top-r+c>s,d=r-t.bottom-l>s,f=t.left-n+u>s,m=n-t.right-p>s;return h||d||f||m}))})(r,e)&&(N(),te(e))}}function J(e){Q(e)||b.props.trigger.indexOf("click")>=0&&p||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Z(e){b.props.trigger.indexOf("focusin")<0&&e.target!==A()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function Q(e){return!!qe.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){G();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,s=t.getReferenceClientRect,o=t.moveTransition,c=S()?Qe(x).arrow:null,l=s?{getBoundingClientRect:s,contextElement:s.contextElement||A()}:e,u=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=F().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];S()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ye(l,x,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:u}))}function G(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function K(){return je(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),P();var t=D(!0),r=L(),i=r[0],s=r[1];qe.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=D(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else I()}}function nt(e,t){void 0===t&&(t={});var n=Be.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ce,xe),window.addEventListener("blur",Ie);var r,i=Object.assign({},t,{plugins:n}),s=(r=e,_e(r)?[r]:function(e){return Oe(e,"NodeList")}(r)?je(r):Array.isArray(r)?r:je(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&tt(t,i);return n&&e.push(n),e}),[]);return _e(e)?s[0]:s}nt.defaultProps=Be,nt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Be[t]=e[t]}))},nt.currentInput=qe,Object.assign({},K,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),nt.setDefaultProps({render:Xe});const rt=nt;var it=n(72),st=n.n(it),ot=n(825),at=n.n(ot),ct=n(659),lt=n.n(ct),ut=n(56),pt=n.n(ut),ht=n(540),dt=n.n(ht),ft=n(113),mt=n.n(ft),gt=n(2),yt={};yt.styleTagTransform=mt(),yt.setAttributes=pt(),yt.insert=lt().bind(null,"head"),yt.domAPI=at(),yt.insertStyleElement=dt(),st()(gt.A,yt),gt.A&>.A.locals&>.A.locals;var vt=n(26),bt={};bt.styleTagTransform=mt(),bt.setAttributes=pt(),bt.insert=lt().bind(null,"head"),bt.domAPI=at(),bt.insertStyleElement=dt(),st()(vt.A,bt),vt.A&&vt.A.locals&&vt.A.locals;var wt=n(422),xt={};xt.styleTagTransform=mt(),xt.setAttributes=pt(),xt.insert=lt().bind(null,"head"),xt.domAPI=at(),xt.insertStyleElement=dt(),st()(wt.A,xt),wt.A&&wt.A.locals&&wt.A.locals;class kt{constructor(e,t,n,r,i){this.kind=e,this.input=t,this.begin=n,this.end=r,this.file=i}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,t]=[1,1];for(let n=0;n<this.begin;n++)"\n"===this.input[n]?(e++,t=1):t++;return[e,t]}size(){return this.end-this.begin}}class Tt{liquidMethodMissing(e){}}const Ot=Object.prototype.toString,Lt=String.prototype.toLowerCase,Et=Object.hasOwnProperty;function St(e){return"string"==typeof e}function At(e){return"function"==typeof e}function jt(e){return e&&At(e.then)}function Ft(e){return e&&At(e.next)&&At(e.throw)&&At(e.return)}function Dt(e){return St(e=zt(e))?e:Vt(e)?"":Ct(e)?e.map((e=>Dt(e))).join(""):String(e)}function _t(e){return Ct(e=zt(e))?e:St(e)&&e.length>0?[e]:$t(t=e)&&Symbol.iterator in t?Array.from(e):$t(e)?Object.keys(e).map((t=>[t,e[t]])):[];var t}function Rt(e){return Vt(e=zt(e))?[]:Ct(e)?e:[e]}function zt(e){return e instanceof Tt&&At(e.valueOf)?e.valueOf():e}function Mt(e){return e=Number(e),isNaN(e)?0:e}function Nt(e){return"number"==typeof e}function qt(e){return e&&At(e.toLiquid)?qt(e.toLiquid()):e}function Vt(e){return null==e}function Ct(e){return"[object Array]"===Ot.call(e)}function Pt(e,t){e=e||{};for(const n in e)if(Et.call(e,n)&&!1===t(e[n],n,e))break;return e}function It(e){return e[e.length-1]}function $t(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}function Bt(e,t,n=1){const r=[];for(let i=e;i<t;i+=n)r.push(i);return r}function Ht(e,t,n=" "){return Ut(e,t,n,((e,t)=>t+e))}function Ut(e,t,n,r){let i=t-(e=String(e)).length;for(;i-- >0;)e=r(e,n);return e}function Wt(e){return e}function Yt(e,t){return null==e&&null==t?0:null==e?1:null==t||(e=Lt.call(e))<(t=Lt.call(t))?-1:e>t?1:0}function Jt(e){return function(...t){return e.call(this,...t.map(zt))}}function Zt(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Qt="__liquidClass__";class Xt extends Error{constructor(e,t){super("string"==typeof e?e:e.message),this.context="","string"!=typeof e&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:t,enumerable:!1}),Object.defineProperty(this,Qt,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:on(this.token),enumerable:!1}),this.message=function(e,t){t.file&&(e+=`, file:${t.file}`);const[n,r]=t.getPosition();return e+`, line:${n}, col:${r}`}(this.message,this.token),this.stack=this.message+"\n"+this.context+"\n"+this.stack,this.originalError&&(this.stack+="\nFrom "+this.originalError.stack)}static is(e){return"LiquidError"===(null==e?void 0:e[Qt])}}class Gt extends Xt{constructor(e,t){super(e,t),this.name="TokenizationError",super.update()}}class Kt extends Xt{constructor(e,t){super(e,t),this.name="ParseError",this.message=e.message,super.update()}}class en extends Xt{constructor(e,t){super(e,t.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return"RenderError"===e.name}}class tn extends Xt{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";const t=e.length>1?"s":"";this.message=`${e.length} error${t} found`,super.update()}static is(e){return"LiquidErrors"===e.name}}class nn extends Xt{constructor(e,t){super(e,t),this.name="UndefinedVariableError",this.message=e.message,super.update()}}class rn extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}}class sn extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}}function on(e){const[t,n]=e.getPosition(),r=e.input.split("\n"),i=Math.max(t-2,1),s=Math.min(t+3,r.length);return Bt(i,s+1).map((e=>{let i=`${e===t?">> ":" "}${Ht(String(e),String(s).length)}| `;const o=e===t?"\n"+Ht("^",n+i.length):"";return i+=r[e-1],i+=o,i})).join("\n")}const an=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function cn(e){const t=e.charCodeAt(0);return t>=128?!an[t]:!!(1&an[t])}function ln(e,t){if(!e){const n="function"==typeof t?t():t||`expect ${e} to be true`;throw new sn(n)}}function un(e,t=`unexpected ${JSON.stringify(e)}`){ln(!e,t)}an[160]=an[5760]=an[6158]=an[8192]=an[8193]=an[8194]=an[8195]=an[8196]=an[8197]=an[8198]=an[8199]=an[8200]=an[8201]=an[8202]=an[8232]=an[8233]=an[8239]=an[8287]=an[12288]=4,an[8220]=an[8221]=128;class pn extends Tt{equals(e){return!(e instanceof pn||(St(e=zt(e))||Ct(e)?0!==e.length:!$t(e)||0!==Object.keys(e).length))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof pn}}class hn extends pn{equals(e){return!1===e||!!Vt(zt(e))||(St(e)?/^\s*$/.test(e):super.equals(e))}static is(e){return e instanceof hn}}class dn extends Tt{constructor(e,t,n){super(),this.i=0,this.length=e,this.name=`${n}-${t}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return 0===this.i}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class fn extends Tt{constructor(e=()=>""){super(),this.superBlockRender=e}super(){return this.superBlockRender()}}function mn(e){return e&&At(e.equals)&&At(e.gt)&&At(e.geq)&&At(e.lt)&&At(e.leq)}const gn=new class extends Tt{equals(e){return Vt(zt(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},yn={true:!0,false:!1,nil:gn,null:gn,empty:new pn,blank:new hn};function vn(e){const t={};for(const[n,r]of Object.entries(e)){let e=t;for(let t=0;t<n.length;t++){const r=n[t];e[r]=e[r]||{},t===n.length-1&&cn(n[t])&&(e[r].needBoundary=!0),e=e[r]}e.data=r,e.end=!0}return t}var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bn.apply(this,arguments)};function wn(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function xn(e){return wn(this,void 0,void 0,(function*(){if(!Ft(e))return e;let t,n=!1,r="next";do{const i=e[r](t);n=i.done,t=i.value,r="next";try{Ft(t)&&(t=xn(t)),jt(t)&&(t=yield t)}catch(e){r="throw",t=e}}while(!n);return t}))}function kn(e){if(!Ft(e))return e;let t,n=!1,r="next";do{const i=e[r](t);if(n=i.done,t=i.value,r="next",Ft(t))try{t=kn(t)}catch(e){r="throw",t=e}}while(!n);return t}const Tn=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function On(e){const t=function(e){const t=e.getFullYear();return!(3&t||!(t%100||t%400==0&&t))}(e)?29:28;return[31,t,31,30,31,30,31,31,30,31,30,31]}function Ln(e){let t=0;for(let n=0;n<e.getMonth();++n)t+=On(e)[n];return t+e.getDate()}function En(e,t){const n=Ln(e)+(t-e.getDay()),r=7-new Date(e.getFullYear(),0,1).getDay()+t;return String(Math.floor((n-r)/7)+1)}const Sn={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},An=new Set("aAbBceklpP");function jn(e,t){const n=Math.abs(e.getTimezoneOffset()),r=Math.floor(n/60),i=n%60;return(e.getTimezoneOffset()>0?"-":"+")+Ht(r,2,"0")+(t.flags[":"]?":":"")+Ht(i,2,"0")}const Fn={a:e=>e.getShortWeekdayName(),A:e=>e.getLongWeekdayName(),b:e=>e.getShortMonthName(),B:e=>e.getLongMonthName(),c:e=>e.toLocaleString(),C:e=>function(e){return parseInt(e.getFullYear().toString().substring(0,2),10)}(e),d:e=>e.getDate(),e:e=>e.getDate(),H:e=>e.getHours(),I:e=>String(e.getHours()%12||12),j:e=>Ln(e),k:e=>e.getHours(),l:e=>String(e.getHours()%12||12),L:e=>e.getMilliseconds(),m:e=>e.getMonth()+1,M:e=>e.getMinutes(),N:(e,t)=>{const n=Number(t.width)||9;return function(e,t,n=" "){return Ut(e,t,n,((e,t)=>e+t))}(String(e.getMilliseconds()).slice(0,n),n,"0")},p:e=>e.getHours()<12?"AM":"PM",P:e=>e.getHours()<12?"am":"pm",q:e=>function(e){const t=e.getDate();if([11,12,13].includes(t))return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e),s:e=>Math.round(e.getTime()/1e3),S:e=>e.getSeconds(),u:e=>e.getDay()||7,U:e=>En(e,0),w:e=>e.getDay(),W:e=>En(e,1),x:e=>e.toLocaleDateString(),X:e=>e.toLocaleTimeString(),y:e=>e.getFullYear().toString().slice(2,4),Y:e=>e.getFullYear(),z:jn,Z:(e,t)=>e.getTimeZoneName()||jn(e,t),t:()=>"\t",n:()=>"\n","%":()=>"%"};function Dn(e,t){let n,r="",i=t;for(;n=Tn.exec(i);)r+=i.slice(0,n.index),i=i.slice(n.index+n[0].length),r+=_n(e,n);return r+i}function _n(e,t){const[n,r="",i,s,o]=t,a=Fn[o];if(!a)return n;const c={};for(const e of r)c[e]=!0;let l=String(a(e,{flags:c,width:i,modifier:s})),u=An.has(o)?" ":"0",p=i||Sn[o]||0;var h;return c["^"]?l=l.toUpperCase():c["#"]&&(h=l,l=[...h].some((e=>e>="a"&&e<="z"))?h.toUpperCase():h.toLowerCase()),c._?u=" ":c[0]&&(u="0"),c["-"]&&(p=0),Ht(l,p,u)}function Rn(){return"undefined"!=typeof Intl?Intl.DateTimeFormat:void 0}Fn.h=Fn.b;const zn=/([zZ]|([+-])(\d{2}):(\d{2}))$/,Mn=["January","February","March","April","May","June","July","August","September","October","November","December"],Nn=Mn.map((e=>e.slice(0,3))),qn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vn=qn.map((e=>e.slice(0,3)));class Cn{constructor(e,t,n){this.locale=t,this.DateTimeFormat=Rn(),this.date=new Date(e),this.timezoneFixed=void 0!==n,void 0===n&&(n=this.date.getTimezoneOffset()),this.timezoneOffset=St(n)?Cn.getTimezoneOffset(n,this.date):n,this.timezoneName=St(n)?n:"";const r=6e4*(this.date.getTimezoneOffset()-this.timezoneOffset),i=this.date.getTime()+r;this.displayDate=new Date(i)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,t){return(null==t?void 0:t.timeZone)?this.date.toLocaleString(e,t):this.displayDate.toLocaleString(e,t)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){return this.timezoneFixed?this.timezoneName:this.DateTimeFormat?this.DateTimeFormat().resolvedOptions().timeZone:void 0}getLongMonthName(){var e;return null!==(e=this.format({month:"long"}))&&void 0!==e?e:Mn[this.getMonth()]}getShortMonthName(){var e;return null!==(e=this.format({month:"short"}))&&void 0!==e?e:Nn[this.getMonth()]}getLongWeekdayName(){var e;return null!==(e=this.format({weekday:"long"}))&&void 0!==e?e:qn[this.displayDate.getDay()]}getShortWeekdayName(){var e;return null!==(e=this.format({weekday:"short"}))&&void 0!==e?e:Vn[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,t){const n=e.match(zn);if(n&&"Z"===n[1])return new Cn(+new Date(e),t,0);if(n&&n[2]&&n[3]&&n[4]){const[,,r,i,s]=n,o=("+"===r?-1:1)*(60*parseInt(i,10)+parseInt(s,10));return new Cn(+new Date(e),t,o)}return new Cn(e,t)}static getTimezoneOffset(e,t){const n=t.toLocaleString("en-US",{timeZone:e}),r=t.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(n);return(+new Date(r)-+i)/6e4}}class Pn{constructor(e,t){this.base=0,this.message=`${e} limit exceeded`,this.limit=t}use(e){e=Mt(e),ln(this.base+e<=this.limit,this.message),this.base+=e}check(e){ln((e=Mt(e))<=this.limit,this.message)}}class In extends kt{constructor(e,[t,n],r,i,s,o,a,c){super(e,r,i,s,c),this.trimLeft=!1,this.trimRight=!1;const l="-"===r[t],u="-"===r[n-1];let p=l?t+1:t,h=u?n-1:n;for(;p<h&&4&an[r.charCodeAt(p)];)p++;for(;h>p&&4&an[r.charCodeAt(h-1)];)h--;this.contentRange=[p,h],this.trimLeft=l||o,this.trimRight=u||a}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class $n extends In{constructor(e,t,n,r,i){const{trimTagLeft:s,trimTagRight:o,tagDelimiterLeft:a,tagDelimiterRight:c}=r,[l,u]=[t+a.length,n-c.length];super(Jr.Tag,[l,u],e,t,n,s,o,i),this.tokenizer=new Vr(e,r.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class Bn extends In{constructor(e,t,n,r,i){const{trimOutputLeft:s,trimOutputRight:o,outputDelimiterLeft:a,outputDelimiterRight:c}=r,l=[t+a.length,n-c.length];super(Jr.Output,l,e,t,n,s,o,i)}}class Hn extends kt{constructor(e,t,n,r){super(Jr.HTML,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class Un extends kt{constructor(e,t,n,r){super(Jr.Number,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=Number(this.getText())}}class Wn extends kt{constructor(e,t,n,r){super(Jr.Word,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=this.getText()}}class Yn extends kt{constructor(e,t,n,r){super(Jr.Literal,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.literal=this.getText(),this.content=yn[this.literal]}}const Jn={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},Zn={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class Qn extends kt{constructor(e,t,n,r){super(Jr.Operator,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.operator=this.getText()}getPrecedence(){const e=this.getText();return e in Jn?Jn[e]:1}}class Xn extends kt{constructor(e,t,n,r,i,s){super(Jr.PropertyAccess,n,r,i,s),this.variable=e,this.props=t}}class Gn extends kt{constructor(e,t,n,r,i,s){super(Jr.Filter,n,r,i,s),this.name=e,this.args=t}}class Kn extends kt{constructor(e,t,n,r,i,s){super(Jr.Hash,e,t,n,s),this.input=e,this.begin=t,this.end=n,this.name=r,this.value=i,this.file=s}}const er=/[\da-fA-F]/,tr=/[0-7]/,nr={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v"};function rr(e){const t=e.charCodeAt(0);return t>=97?t-87:t>=65?t-55:t-48}class ir extends kt{constructor(e,t,n,r){super(Jr.Quoted,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=function(e){let t="";for(let n=1;n<e.length-1;n++)if("\\"===e[n])if(void 0!==nr[e[n+1]])t+=nr[e[++n]];else if("u"===e[n+1]){let r=0,i=n+2;for(;i<=n+5&&er.test(e[i]);)r=16*r+rr(e[i++]);n=i-1,t+=String.fromCharCode(r)}else if(tr.test(e[n+1])){let r=n+1,i=0;for(;r<=n+3&&tr.test(e[r]);)i=8*i+rr(e[r++]);n=r-1,t+=String.fromCharCode(i)}else t+=e[++n];else t+=e[n];return t}(this.getText())}}class sr extends kt{constructor(e,t,n,r,i,s){super(Jr.Range,e,t,n,s),this.input=e,this.begin=t,this.end=n,this.lhs=r,this.rhs=i,this.file=s}}class or extends In{constructor(e,t,n,r,i){super(Jr.Tag,[t,n],e,t,n,!1,!1,i),this.tokenizer=new Vr(e,r.operators,i,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank(),this.args=this.tokenizer.remaining()}}class ar extends kt{constructor(e,t,n,r,i,s){super(Jr.FilteredValue,n,r,i,s),this.initial=e,this.filters=t,this.input=n,this.begin=r,this.end=i,this.file=s}}const cr={now:()=>Date.now()};function lr(){return"object"==typeof global&&global.performance||"object"==typeof window&&window.performance||cr}class ur{constructor(){this.buffer=""}write(e){this.buffer+=Dt(e)}}class pr{constructor(){throw this.buffer="",this.stream=null,new Error("streaming not supported in browser")}}class hr{constructor(){this.buffer=""}write(e){"string"!=typeof(e=zt(e))&&""===this.buffer?this.buffer=e:this.buffer=Dt(this.buffer)+Dt(e)}}class dr{renderTemplatesToNodeStream(e,t){const n=new pr;return Promise.resolve().then((()=>xn(this.renderTemplates(e,t,n)))).then((()=>n.end()),(e=>n.error(e))),n.stream}*renderTemplates(e,t,n){n||(n=t.opts.keepOutputType?new hr:new ur);const r=[];for(const i of e){t.renderLimit.check(lr().now());try{const e=yield i.render(t,n);if(e&&n.write(e),n.break||n.continue)break}catch(e){const n=Xt.is(e)?e:new en(e,i);if(!t.opts.catchAllErrors)throw n;r.push(n)}}if(r.length)throw new tn(r);return n.buffer}}class fr{constructor(e){this.postfix=[...yr(e)]}*evaluate(e,t){ln(e,"unable to evaluate: context not defined");const n=[];for(const r of this.postfix)if(Gr(r)){const t=n.pop();let i;if(1===Zn[r.operator])i=yield e.opts.operators[r.operator](t,e);else{const s=n.pop();i=yield e.opts.operators[r.operator](s,t,e)}n.push(i)}else n.push(yield mr(r,e,t));return n[0]}valid(){return!!this.postfix.length}}function*mr(e,t,n=!1){if(e)return"content"in e?e.content:ti(e)===Jr.PropertyAccess?yield function*(e,t,n){const r=[];for(const n of e.props)r.push(yield mr(n,t,!1));try{if(e.variable){const i=yield mr(e.variable,t,n);return yield t._getFromScope(i,r)}return yield t._get(r)}catch(t){if(n&&"InternalUndefinedVariableError"===t.name)return null;throw new nn(t,e)}}(e,t,n):function(e){return ti(e)===Jr.Range}(e)?yield function*(e,t){return Bt(+(yield mr(e.lhs,t)),+(yield mr(e.rhs,t))+1)}(e,t):void 0}function gr(e){return e.content}function*yr(e){const t=[];for(const n of e)if(Gr(n)){for(;t.length&&t[t.length-1].getPrecedence()>n.getPrecedence();)yield t.pop();t.push(n)}else yield n;for(;t.length;)yield t.pop()}function vr(e,t){return!br(e,t)}function br(e,t){return e=zt(e),t.opts.jsTruthy?!e:!1===e||null==e}const wr={"==":xr,"!=":(e,t)=>!xr(e,t),">":(e,t)=>mn(e)?e.gt(t):mn(t)?t.lt(e):zt(e)>zt(t),"<":(e,t)=>mn(e)?e.lt(t):mn(t)?t.gt(e):zt(e)<zt(t),">=":(e,t)=>mn(e)?e.geq(t):mn(t)?t.leq(e):zt(e)>=zt(t),"<=":(e,t)=>mn(e)?e.leq(t):mn(t)?t.geq(e):zt(e)<=zt(t),contains:(e,t)=>Ct(e=zt(e))?e.some((e=>xr(e,t))):!!At(null==e?void 0:e.indexOf)&&e.indexOf(zt(t))>-1,not:(e,t)=>br(zt(e),t),and:(e,t,n)=>vr(zt(e),n)&&vr(zt(t),n),or:(e,t,n)=>vr(zt(e),n)||vr(zt(t),n)};function xr(e,t){return mn(e)?e.equals(t):mn(t)?t.equals(e):(e=zt(e),t=zt(t),Ct(e)?Ct(t)&&function(e,t){return e.length===t.length&&!e.some(((e,n)=>!xr(e,t[n])))}(e,t):e===t)}class kr{constructor(e,t,n,r){this.key=e,this.value=t,this.next=n,this.prev=r}}class Tr{constructor(e,t=0){this.limit=e,this.size=t,this.cache={},this.head=new kr("HEAD",null,null,null),this.tail=new kr("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,t){if(this.cache[e])this.cache[e].value=t;else{const n=new kr(e,t,this.head.next,this.head);this.head.next.prev=n,this.head.next=n,this.cache[e]=n,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;const{value:t}=this.cache[e];return this.remove(e),this.write(e,t),t}remove(e){const t=this.cache[e];t.prev.next=t.next,t.next.prev=t.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function Or(e,t){const n=document.createElement("base");n.href=e;const r=document.getElementsByTagName("head")[0];r.insertBefore(n,r.firstChild);const i=document.createElement("a");i.href=t;const s=i.href;return r.removeChild(n),s}var Lr=Object.freeze({__proto__:null,resolve:function(e,t,n){return e.length&&"/"!==It(e)&&(e+="/"),Or(e,t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,((e,t,r)=>{const i=r.split("/").pop();return/\.\w+$/.test(i)?e:t+r+n}))},readFile:function(e){return wn(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.onload=()=>{r.status>=200&&r.status<300?t(r.responseText):n(new Error(r.statusText))},r.onerror=()=>{n(new Error("An error occurred whilst receiving the response."))},r.open("GET",e),r.send()}))}))},readFileSync:function(e){const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(),t.status<200||t.status>=300)throw new Error(t.statusText);return t.responseText},exists:function(e){return wn(this,void 0,void 0,(function*(){return!0}))},existsSync:function(e){return!0},dirname:function(e){return Or(e,".")},sep:"/"});function Er(e,t=0){return JSON.stringify(e,null,t)}var Sr={default:function(e,t,...n){return Ct(e=zt(e))||St(e)?e.length?e:t:(!1!==e||!new Map(n).get("allow_false"))&&(br(e,this.context)?t:e)},raw:{raw:!0,handler:Wt},jsonify:Er,to_integer:function(e){return Number(e)},json:Er,inspect:function(e,t=0){const n=[];return JSON.stringify(e,(function(e,t){if("object"!=typeof t||null===t)return t;for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(t)?"[Circular]":(n.push(t),t)}),t)}};const Ar={"&":"&","<":"<",">":">",'"':""","'":"'"},jr={"&":"&","<":"<",">":">",""":'"',"'":"'"};function Fr(e){return e=Dt(e),this.context.memoryLimit.use(e.length),e.replace(/&|<|>|"|'/g,(e=>Ar[e]))}function Dr(e){return e=Dt(e),this.context.memoryLimit.use(e.length),e.replace(/&(amp|lt|gt|#34|#39);/g,(e=>jr[e]))}var _r=Object.freeze({__proto__:null,escape:Fr,xml_escape:function(e){return Fr.call(this,e)},escape_once:function(e){return Fr.call(this,Dr.call(this,e))},newline_to_br:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"<br />\n")},strip_html:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),t.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g,"")}});class Rr{constructor(e){this.mapping=e,this.sep="/"}exists(e){return wn(this,void 0,void 0,(function*(){return this.existsSync(e)}))}existsSync(e){return!Vt(this.mapping[e])}readFile(e){return wn(this,void 0,void 0,(function*(){return this.readFileSync(e)}))}readFileSync(e){const t=this.mapping[e];if(Vt(t))throw new Error(`ENOENT: ${e}`);return t}dirname(e){const t=e.split(this.sep);return t.pop(),t.join(this.sep)}resolve(e,t,n){if(t+=n,"."===e)return t;const r=e.split(/\/+/);for(const e of t.split(this.sep))"."!==e&&""!==e&&(".."===e?(r.length>1||""!==r[0])&&r.pop():r.push(e));return r.join(this.sep)}}const zr={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:Lr,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:wr,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Mr(e){let t=[];return Ct(e)&&(t=e),St(e)&&(t=[e]),t}function Nr(e,t){if(!e||!Kr(e))return;const n=t?4:16;for(;an[e.input.charCodeAt(e.end-1-e.trimRight)]&n;)e.trimRight++}function qr(e,t){if(!e||!Kr(e))return;const n=t?4:16;for(;an[e.input.charCodeAt(e.begin+e.trimLeft)]&n;)e.trimLeft++;"\n"===e.input.charAt(e.begin+e.trimLeft)&&e.trimLeft++}class Vr{constructor(e,t=zr.operators,n,r){this.input=e,this.file=n,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=vn(t),this.literalTrie=vn(yn)}readExpression(){return new fr(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){const e=this.readOperator();if(e){yield e;continue}const t=this.readValue();if(!t)return;yield t}}readOperator(){this.skipBlank();const e=this.matchTrie(this.opTrie);if(-1!==e)return new Qn(this.input,this.p,this.p=e,this.file)}matchTrie(e){let t,n=e,r=this.p;for(;n[this.input[r]]&&r<this.N;)n=n[this.input[r++]],n.end&&(t=n);return t?t.needBoundary&&cn(this.peek(r-this.p))?-1:r:-1}readFilteredValue(){const e=this.p,t=this.readExpression();this.assert(t.valid(),`invalid value expression: ${this.snapshot()}`);const n=this.readFilters();return new ar(t,n,this.input,e,this.p,this.file)}readFilters(){const e=[];for(;;){const t=this.readFilter();if(!t)return e;e.push(t)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert("|"===this.read(),'expected "|" before filter');const e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;const t=[];if(this.skipBlank(),":"===this.peek())do{++this.p;const e=this.readFilterArg();e&&t.push(e),this.skipBlank(),this.assert(this.end()||","===this.peek()||"|"===this.peek(),(()=>`unexpected character ${this.snapshot()}`))}while(","===this.peek());else if("|"!==this.peek()&&!this.end())throw this.error('expected ":" after filter name');return new Gn(e.getText(),t,this.input,e.begin,this.p,this.file)}readFilterArg(){const e=this.readValue();if(!e)return;if(this.skipBlank(),":"!==this.peek())return e;++this.p;const t=this.readValue();return[e.getText(),t]}readTopLevelTokens(e=zr){const t=[];for(;this.p<this.N;){const n=this.readTopLevelToken(e);t.push(n)}return function(e,t){let n=!1;for(let r=0;r<e.length;r++){const i=e[r];ti(i)&Jr.Delimited&&(!n&&i.trimLeft&&Nr(e[r-1],t.greedy),ei(i)&&("raw"===i.name?n=!0:"endraw"===i.name&&(n=!1)),!n&&i.trimRight&&qr(e[r+1],t.greedy))}}(t,e),t}readTopLevelToken(e){const{tagDelimiterLeft:t,outputDelimiterLeft:n}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(t)?this.readTagToken(e):this.match(n)?this.readOutputToken(e):this.readHTMLToken([t,n])}readHTMLToken(e){const t=this.p;for(;this.p<this.N&&!e.some((e=>this.match(e)));)++this.p;return new Hn(this.input,t,this.p,this.file)}readTagToken(e){const{file:t,input:n}=this,r=this.p;if(-1===this.readToDelimiter(e.tagDelimiterRight))throw this.error(`tag ${this.snapshot(r)} not closed`,r);const i=new $n(n,r,this.p,e,t);return"raw"===i.name&&(this.rawBeginAt=r),i}readToDelimiter(e,t=!1){for(this.skipBlank();this.p<this.N;)if(t&&8&this.peekType())this.readQuoted();else if(++this.p,this.rmatch(e))return this.p;return-1}readOutputToken(e=zr){const{file:t,input:n}=this,{outputDelimiterRight:r}=e,i=this.p;if(-1===this.readToDelimiter(r,!0))throw this.error(`output ${this.snapshot(i)} not closed`,i);return new Bn(n,i,this.p,e,t)}readEndrawOrRawContent(e){const{tagDelimiterLeft:t,tagDelimiterRight:n}=e,r=this.p;let i=this.readTo(t)-t.length;for(;this.p<this.N;)if("endraw"===this.readIdentifier().getText())for(;this.p<=this.N;){if(this.rmatch(n)){const t=this.p;return r===i?(this.rawBeginAt=-1,new $n(this.input,r,t,e,this.file)):(this.p=i,new Hn(this.input,r,i,this.file))}if(this.rmatch(t))break;this.p++}else i=this.readTo(t)-t.length;throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=zr){const t=[];for(;this.p<this.N;){const n=this.readLiquidTagToken(e);n&&t.push(n)}return t}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;const t=this.p;this.readToDelimiter("\n");const n=this.p;return new or(this.input,t,n,e,this.file)}error(e,t=this.p){return new Gt(e,new Wn(this.input,t,this.N,this.file))}assert(e,t,n){if(!e)throw this.error("function"==typeof t?t():t,n)}snapshot(e=this.p){return JSON.stringify((t=this.input.slice(e,this.N)).length>32?t.slice(0,29)+"...":t);var t}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();const e=this.p;for(;!this.end()&&cn(this.peek());)++this.p;return new Wn(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){const e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),"#"===this.input[this.p]?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){const t=[];for(;;){const n=this.readHash(e);if(!n)return t;t.push(n)}}readHash(e){this.skipBlank(),","===this.peek()&&++this.p;const t=this.p,n=this.readNonEmptyIdentifier();if(!n)return;let r;this.skipBlank();const i=St(e)?e:e?"=":":";return this.peek()===i&&(++this.p,r=this.readValue()),new Kn(this.input,t,this.p,n,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();const e=this.p,t=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),n=this.readProperties(!t);return n.length?new Xn(t,n,this.input,e,this.p):t}readScopeValue(){this.skipBlank();const e=this.p,t=this.readProperties();if(t.length)return new Xn(void 0,t,this.input,e,this.p)}readProperties(e=!0){const t=[];for(;;)if("["!==this.peek()){if(e&&!t.length){const e=this.readNonEmptyIdentifier();if(e){t.push(e);continue}}if("."!==this.peek()||"."===this.peek(1))break;{this.p++;const e=this.readNonEmptyIdentifier();if(!e)break;t.push(e)}}else{this.p++;const e=this.readValue()||new Wn(this.input,this.p,this.p,this.file);this.assert(-1!==this.readTo("]"),"[ not closed"),t.push(e)}return t}readNumber(){this.skipBlank();let e=!1,t=!1,n=0;for(64&this.peekType()&&n++;this.p+n<=this.N;)if(32&this.peekType(n))t=!0,n++;else{if("."!==this.peek(n)||"."===this.peek(n+1))break;if(e||!t)return;e=!0,n++}if(t&&!cn(this.peek(n))){const e=new Un(this.input,this.p,this.p+n,this.file);return this.advance(n),e}}readLiteral(){this.skipBlank();const e=this.matchTrie(this.literalTrie);if(-1===e)return;const t=new Yn(this.input,this.p,e,this.file);return this.p=e,t}readRange(){this.skipBlank();const e=this.p;if("("!==this.peek())return;++this.p;const t=this.readValueOrThrow();this.p+=2;const n=this.readValueOrThrow();return++this.p,new sr(this.input,e,this.p,t,n,this.file)}readValueOrThrow(){const e=this.readValue();return this.assert(e,(()=>`unexpected token ${this.snapshot()}, value expected`)),e}readQuoted(){this.skipBlank();const e=this.p;if(!(8&this.peekType()))return;++this.p;let t=!1;for(;this.p<this.N&&(++this.p,this.input[this.p-1]!==this.input[e]||t);)t?t=!1:"\\"===this.input[this.p-1]&&(t=!0);return new ir(this.input,e,this.p,this.file)}*readFileNameTemplate(e){const{outputDelimiterLeft:t}=e,n=[","," ",t],r=new Set(n);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(t)?this.readOutputToken(e):this.readHTMLToken(n)}match(e){for(let t=0;t<e.length;t++)if(e[t]!==this.input[this.p+t])return!1;return!0}rmatch(e){for(let t=0;t<e.length;t++)if(e[e.length-1-t]!==this.input[this.p-1-t])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:an[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;4&this.peekType();)++this.p}}class Cr{constructor(e,t){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=t}on(e,t){return this.handlers[e]=t,this}trigger(e,t){const n=this.handlers[e];return!!n&&(n.call(this,t),!0)}start(){let e;for(this.trigger("start");!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e))continue;if(ei(e)&&this.trigger(`tag:${e.name}`,e))continue;const t=this.parseToken(e,this.tokens);this.trigger("template",t)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class Pr{constructor(e){this.token=e}}class Ir extends Pr{constructor(e,t,n){super(e),this.name=e.name,this.liquid=n,this.tokenizer=e.tokenizer}}class $r{constructor(e,t){this.hash={};const n=new Vr(e,{});for(const e of n.readHashes(t))this.hash[e.name.content]=e.value}*render(e){const t={};for(const n of Object.keys(this.hash))t[n]=void 0===this.hash[n]||(yield mr(this.hash[n],e));return t}}class Br{constructor(e,t,n){this.token=e,this.name=e.name,this.handler=At(t)?t:At(null==t?void 0:t.handler)?t.handler:Wt,this.raw=!At(t)&&!!(null==t?void 0:t.raw),this.args=e.args,this.liquid=n}*render(e,t){const n=[];for(const e of this.args)Ct(e)?n.push([e[0],yield mr(e[1],t)]):n.push(yield mr(e,t));return yield this.handler.apply({context:t,token:this.token,liquid:this.liquid},[e,...n])}}class Hr{constructor(e,t){this.filters=[];const n="string"==typeof e?new Vr(e,t.options.operators).readFilteredValue():e;this.initial=n.initial,this.filters=n.filters.map((e=>new Br(e,this.getFilter(t,e.name),t)))}*value(e,t){t=t||e.opts.lenientIf&&this.filters.length>0&&"default"===this.filters[0].name;let n=yield this.initial.evaluate(e,t);for(const t of this.filters)n=yield t.render(n,e);return n}getFilter(e,t){const n=e.filters[t];return ln(n||!e.options.strictFilters,(()=>`undefined filter: ${t}`)),n}}class Ur extends Pr{constructor(e,t){var n;super(e);const r=new Vr(e.input,t.options.operators,e.file,e.contentRange);this.value=new Hr(r.readFilteredValue(),t);const i=this.value.filters,s=t.options.outputEscape;if(!(null===(n=i[i.length-1])||void 0===n?void 0:n.raw)&&s){const e=new Gn(toString.call(s),[],"",0,0);i.push(new Br(e,s,t))}}*render(e,t){const n=yield this.value.value(e,!1);t.write(n)}}class Wr extends Pr{constructor(e){super(e),this.str=e.getContent()}*render(e,t){t.write(this.str)}}var Yr,Jr,Zr;!function(e){e.Partials="partials",e.Layouts="layouts",e.Root="root"}(Yr||(Yr={}));class Qr{constructor(e){if(this.options=e,e.relativeReference){const t=e.fs.sep;ln(t,"`fs.sep` is required for relative reference");const n=new RegExp(["."+t,".."+t,"./","../"].map((e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("|"));this.shouldLoadRelative=e=>n.test(e)}else this.shouldLoadRelative=e=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(e,t,n,r){const{fs:i}=this.options,s=this.options[t];for(const o of this.candidates(e,s,r,t!==Yr.Root))if(n?i.existsSync(o):yield i.exists(o))return o;throw this.lookupError(e,s)}*candidates(e,t,n,r){const{fs:i,extname:s}=this.options;if(this.shouldLoadRelative(e)&&n){const o=i.resolve(this.dirname(n),e,s);for(const e of t)if(!r||this.contains(e,o)){yield o;break}}for(const n of t){const t=i.resolve(n,e,s);r&&!this.contains(n,t)||(yield t)}if(void 0!==i.fallback){const t=i.fallback(e);void 0!==t&&(yield t)}}dirname(e){const t=this.options.fs;return ln(t.dirname,"`fs.dirname` is required for relative reference"),t.dirname(e)}lookupError(e,t){const n=new Error("ENOENT");return n.message=`ENOENT: Failed to lookup "${e}" in "${t}"`,n.code="ENOENT",n}}class Xr{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Qr(this.liquid.options),this.parseLimit=new Pn("parse length",e.options.parseLimit)}parse(e,t){e=String(e),this.parseLimit.use(e.length);const n=new Vr(e,this.liquid.options.operators,t).readTopLevelTokens(this.liquid.options);return this.parseTokens(n)}parseTokens(e){let t;const n=[],r=[];for(;t=e.shift();)try{n.push(this.parseToken(t,e))}catch(e){if(!this.liquid.options.catchAllErrors)throw e;r.push(e)}if(r.length)throw new tn(r);return n}parseToken(e,t){try{if(ei(e)){const n=this.liquid.tags[e.name];return ln(n,`tag "${e.name}" not found`),new n(e,t,this.liquid,this)}return ti(e)===Jr.Output?new Ur(e,this.liquid):new Wr(e)}catch(t){if(Xt.is(t))throw t;throw new Kt(t,e)}}parseStream(e){return new Cr(e,((e,t)=>this.parseToken(e,t)))}*_parseFileCached(e,t,n=Yr.Root,r){const i=this.cache,s=this.loader.shouldLoadRelative(e)?r+","+e:n+":"+e,o=yield i.read(s);if(o)return o;const a=this._parseFile(e,t,n,r),c=t?yield a:xn(a);i.write(s,c);try{return yield c}catch(e){throw i.remove(s),e}}*_parseFile(e,t,n=Yr.Root,r){const i=yield this.loader.lookup(e,n,t,r);return this.parse(t?this.fs.readFileSync(i):yield this.fs.readFile(i),i)}}function Gr(e){return ti(e)===Jr.Operator}function Kr(e){return ti(e)===Jr.HTML}function ei(e){return ti(e)===Jr.Tag}function ti(e){return e?e.kind:-1}!function(e){e[e.Number=1]="Number",e[e.Literal=2]="Literal",e[e.Tag=4]="Tag",e[e.Output=8]="Output",e[e.HTML=16]="HTML",e[e.Filter=32]="Filter",e[e.Hash=64]="Hash",e[e.PropertyAccess=128]="PropertyAccess",e[e.Word=256]="Word",e[e.Range=512]="Range",e[e.Quoted=1024]="Quoted",e[e.Operator=2048]="Operator",e[e.FilteredValue=4096]="FilteredValue",e[e.Delimited=12]="Delimited"}(Jr||(Jr={}));class ni{constructor(e={},t=zr,n={},{memoryLimit:r,renderLimit:i}={}){var s,o,a,c,l;this.scopes=[{}],this.registers={},this.sync=!!n.sync,this.opts=t,this.globals=null!==(s=n.globals)&&void 0!==s?s:t.globals,this.environments=$t(e)?e:Object(e),this.strictVariables=null!==(o=n.strictVariables)&&void 0!==o?o:this.opts.strictVariables,this.ownPropertyOnly=null!==(a=n.ownPropertyOnly)&&void 0!==a?a:t.ownPropertyOnly,this.memoryLimit=null!=r?r:new Pn("memory alloc",null!==(c=n.memoryLimit)&&void 0!==c?c:t.memoryLimit),this.renderLimit=null!=i?i:new Pn("template render",lr().now()+(null!==(l=n.renderLimit)&&void 0!==l?l:t.renderLimit))}getRegister(e){return this.registers[e]=this.registers[e]||{}}setRegister(e,t){return this.registers[e]=t}saveRegister(...e){return e.map((e=>[e,this.getRegister(e)]))}restoreRegister(e){return e.forEach((([e,t])=>this.setRegister(e,t)))}getAll(){return[this.globals,this.environments,...this.scopes].reduce(((e,t)=>bn(e,t)),{})}get(e){return this.getSync(e)}getSync(e){return kn(this._get(e))}*_get(e){const t=this.findScope(e[0]);return yield this._getFromScope(t,e)}getFromScope(e,t){return kn(this._getFromScope(e,t))}*_getFromScope(e,t,n=this.strictVariables){St(t)&&(t=t.split("."));for(let r=0;r<t.length;r++)if(e=yield ri(e,t[r],this.ownPropertyOnly),n&&void 0===e)throw new rn(t.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new ni(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let t=this.scopes.length-1;t>=0;t--){const n=this.scopes[t];if(e in n)return n}return e in this.environments?this.environments:this.globals}}function ri(e,t,n){if(e=qt(e),t=zt(t),Vt(e))return e;if(Ct(e)&&t<0)return e[e.length+ +t];const r=function(e,t,n){return!n||Et.call(e,t)||e instanceof Tt?e[t]:void 0}(e,t,n);return void 0===r&&e instanceof Tt?e.liquidMethodMissing(t):At(r)?r.call(e):"size"===t?function(e){return Et.call(e,"size")||void 0!==e.size?e.size:Ct(e)||St(e)?e.length:"object"==typeof e?Object.keys(e).length:void 0}(e):"first"===t?function(e){return Ct(e)?e[0]:e.first}(e):"last"===t?function(e){return Ct(e)?e[e.length-1]:e.last}(e):r}!function(e){e[e.OUTPUT=0]="OUTPUT",e[e.STORE=1]="STORE"}(Zr||(Zr={}));const ii=Jt(Math.abs),si=Jt(Math.max),oi=Jt(Math.min),ai=Jt(Math.ceil),ci=Jt(((e,t,n=!1)=>n?Math.floor(e/t):e/t)),li=Jt(Math.floor),ui=Jt(((e,t)=>e-t)),pi=Jt(((e,t)=>e%t)),hi=Jt(((e,t)=>e*t));var di=Object.freeze({__proto__:null,abs:ii,at_least:si,at_most:oi,ceil:ai,divided_by:ci,floor:li,minus:ui,modulo:pi,times:hi,round:function(e,t=0){e=zt(e),t=zt(t);const n=Math.pow(10,t);return Math.round(e*n)/n},plus:function(e,t){return e=zt(e),t=zt(t),Number(e)+Number(t)}});const fi=/[^\p{M}\p{L}\p{Nd}]+/gu,mi={raw:/\s+/g,default:fi,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,ascii:/[^A-Za-z0-9]+/g,latin:fi,none:null};var gi=Object.freeze({__proto__:null,url_decode:e=>decodeURIComponent(Dt(e)).replace(/\+/g," "),url_encode:e=>encodeURIComponent(Dt(e)).replace(/%20/g,"+"),cgi_escape:e=>encodeURIComponent(Dt(e)).replace(/%20/g,"+").replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())),uri_escape:e=>encodeURI(Dt(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),slugify:function(e,t="default",n=!1){e=Dt(e);const r=mi[t];return r&&("latin"===t&&(e=function(e){return e.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}(e)),e=e.replace(r,"-").replace(/^-|-$/g,"")),n?e:e.toLowerCase()}});const yi=Jt((function(e,t){const n=Rt(e),r=Vt(t)?" ":Dt(t),i=n.length*(1+r.length);return this.context.memoryLimit.use(i),n.join(r)})),vi=Jt((e=>Ct(e)?It(e):"")),bi=Jt((e=>Ct(e)?e[0]:"")),wi=Jt((function(e){const t=Rt(e);return this.context.memoryLimit.use(t.length),[...t].reverse()}));function xi(e,t=[]){const n=Rt(e),r=Rt(t);return this.context.memoryLimit.use(n.length+r.length),n.concat(r)}var ki=Object.freeze({__proto__:null,join:yi,last:vi,first:bi,reverse:wi,sort:function*(e,t){const n=[],r=Rt(e);this.context.memoryLimit.use(r.length);for(const e of r)n.push([e,t?yield this.context._getFromScope(e,Dt(t).split("."),!1):e]);return n.sort(((e,t)=>{const n=e[1],r=t[1];return n<r?-1:n>r?1:0})).map((e=>e[0]))},sort_natural:function(e,t){const n=Dt(t),r=void 0===t?Yt:(e,t)=>Yt(e[n],t[n]),i=Rt(e);return this.context.memoryLimit.use(i.length),[...i].sort(r)},size:e=>e&&e.length||0,map:function*(e,t){const n=[],r=Rt(e);this.context.memoryLimit.use(r.length);for(const e of r)n.push(yield this.context._getFromScope(e,Dt(t),!1));return n},sum:function*(e,t){let n=0;const r=Rt(e);for(const e of r){const r=Number(t?yield this.context._getFromScope(e,Dt(t),!1):e);n+=Number.isNaN(r)?0:r}return n},compact:function(e){const t=Rt(e);return this.context.memoryLimit.use(t.length),t.filter((e=>!Vt(zt(e))))},concat:xi,push:function(e,t){return xi.call(this,e,[t])},unshift:function(e,t){const n=Rt(e);this.context.memoryLimit.use(n.length);const r=[...n];return r.unshift(t),r},pop:function(e){const t=[...Rt(e)];return t.pop(),t},shift:function(e){const t=Rt(e);this.context.memoryLimit.use(t.length);const n=[...t];return n.shift(),n},slice:function(e,t,n=1){return Vt(e=zt(e))?[]:(Ct(e)||(e=Dt(e)),t=t<0?e.length+t:t,this.context.memoryLimit.use(n),e.slice(t,t+n))},where:function*(e,t,n){const r=[];e=Rt(e),this.context.memoryLimit.use(e.length);const i=new Vr(Dt(t)).readScopeValue();for(const t of e)r.push(yield mr(i,this.context.spawn(t)));const s=this.context.opts.jekyllWhere?e=>pn.is(n)?xr(e,n):Ct(e)?function(e,t){return e.some((e=>xr(e,t)))}(e,n):xr(e,n):e=>xr(e,n);return e.filter(((e,t)=>void 0===n?vr(r[t],this.context):s(r[t])))},where_exp:function*(e,t,n){const r=[],i=new Hr(Dt(n),this.liquid),s=Rt(e);this.context.memoryLimit.use(s.length);for(const e of s)(yield i.value(this.context.spawn({[t]:e})))&&r.push(e);return r},group_by:function*(e,t){const n=new Map;e=Rt(e);const r=new Vr(Dt(t)).readScopeValue();this.context.memoryLimit.use(e.length);for(const t of e){const e=yield mr(r,this.context.spawn(t));n.has(e)||n.set(e,[]),n.get(e).push(t)}return[...n.entries()].map((([e,t])=>({name:e,items:t})))},group_by_exp:function*(e,t,n){const r=new Map,i=new Hr(Dt(n),this.liquid);e=Rt(e),this.context.memoryLimit.use(e.length);for(const n of e){const e=yield i.value(this.context.spawn({[t]:n}));r.has(e)||r.set(e,[]),r.get(e).push(n)}return[...r.entries()].map((([e,t])=>({name:e,items:t})))},find:function*(e,t,n){const r=new Vr(Dt(t)).readScopeValue(),i=Rt(e);for(const e of i)if(xr(yield mr(r,this.context.spawn(e)),n))return e},find_exp:function*(e,t,n){const r=new Hr(Dt(n),this.liquid),i=Rt(e);for(const e of i)if(yield r.value(this.context.spawn({[t]:e})))return e},uniq:function(e){return e=Rt(e),this.context.memoryLimit.use(e.length),[...new Set(e)]},sample:function(e,t=1){if(Vt(e=zt(e)))return[];Ct(e)||(e=Dt(e)),this.context.memoryLimit.use(t);const n=[...e].sort((()=>Math.random()-.5));return 1===t?n[0]:n.slice(0,t)}});function Ti(e,t,n){var r,i,s;const o=(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)+(null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0)+(null!==(s=null==n?void 0:n.length)&&void 0!==s?s:0);this.context.memoryLimit.use(o);const a=Li(e,this.context.opts,n);return a?Dn(a,t=Vt(t=zt(t))?this.context.opts.dateFormat:Dt(t)):e}function Oi(e,t,n,r){const i=Li(e,this.context.opts);if(!i)return e;if("ordinal"===n){const e=i.getDate();return Dn(i,"US"===r?`${t} ${e}%q, %Y`:`${e}%q ${t} %Y`)}return Dn(i,`%d ${t} %Y`)}function Li(e,t,n){let r;const i=null!=n?n:t.timezoneOffset,s=t.locale;return r="now"===(e=zt(e))||"today"===e?new Cn(Date.now(),s,i):Nt(e)?new Cn(1e3*e,s,i):St(e)?/^\d+$/.test(e)?new Cn(1e3*+e,s,i):t.preserveTimezones&&void 0===n?Cn.createDateFixedToTimezone(e,s):new Cn(e,s,i):new Cn(e,s,i),r.valid()?r:void 0}var Ei=Object.freeze({__proto__:null,date:Ti,date_to_xmlschema:function(e){return Ti.call(this,e,"%Y-%m-%dT%H:%M:%S%:z")},date_to_rfc822:function(e){return Ti.call(this,e,"%a, %d %b %Y %H:%M:%S %z")},date_to_string:function(e,t,n){return Oi.call(this,e,"%b",t,n)},date_to_long_string:function(e,t,n){return Oi.call(this,e,"%B",t,n)}});const Si=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Ai=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;var ji=Object.freeze({__proto__:null,append:function(e,t){ln(2===arguments.length,"append expect 2 arguments");const n=Dt(e),r=Dt(t);return this.context.memoryLimit.use(n.length+r.length),n+r},prepend:function(e,t){ln(2===arguments.length,"prepend expect 2 arguments");const n=Dt(e),r=Dt(t);return this.context.memoryLimit.use(n.length+r.length),r+n},lstrip:function(e,t){const n=Dt(e);return this.context.memoryLimit.use(n.length),t?(t=Zt(Dt(t)),n.replace(new RegExp(`^[${t}]+`,"g"),"")):n.replace(/^\s+/,"")},downcase:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()},upcase:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),Dt(t).toUpperCase()},remove:function(e,t){const n=Dt(e);return this.context.memoryLimit.use(n.length),n.split(Dt(t)).join("")},remove_first:function(e,t){const n=Dt(e);return this.context.memoryLimit.use(n.length),n.replace(Dt(t),"")},remove_last:function(e,t){const n=Dt(e);this.context.memoryLimit.use(n.length);const r=Dt(t),i=n.lastIndexOf(r);return-1===i?n:n.substring(0,i)+n.substring(i+r.length)},rstrip:function(e,t){return e=Dt(e),this.context.memoryLimit.use(e.length),t?(t=Zt(Dt(t)),e.replace(new RegExp(`[${t}]+$`,"g"),"")):e.replace(/\s+$/,"")},split:function(e,t){const n=Dt(e);this.context.memoryLimit.use(n.length);const r=n.split(Dt(t));for(;r.length&&""===r[r.length-1];)r.pop();return r},strip:function(e,t){const n=Dt(e);return this.context.memoryLimit.use(n.length),t?(t=Zt(Dt(t)),n.replace(new RegExp(`^[${t}]+`,"g"),"").replace(new RegExp(`[${t}]+$`,"g"),"")):n.trim()},strip_newlines:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"")},capitalize:function(e){return e=Dt(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},replace:function(e,t,n){const r=Dt(e);return this.context.memoryLimit.use(r.length),r.split(Dt(t)).join(n)},replace_first:function(e,t,n){const r=Dt(e);return this.context.memoryLimit.use(r.length),r.replace(Dt(t),n)},replace_last:function(e,t,n){const r=Dt(e);this.context.memoryLimit.use(r.length);const i=Dt(t),s=r.lastIndexOf(i);if(-1===s)return r;const o=Dt(n);return r.substring(0,s)+o+r.substring(s+i.length)},truncate:function(e,t=50,n="..."){const r=Dt(e);return this.context.memoryLimit.use(r.length),r.length<=t?e:r.substring(0,t-n.length)+n},truncatewords:function(e,t=15,n="..."){const r=Dt(e);this.context.memoryLimit.use(r.length);const i=r.split(/\s+/);t<=0&&(t=1);let s=i.slice(0,t).join(" ");return i.length>=t&&(s+=n),s},normalize_whitespace:function(e){const t=Dt(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g," ")},number_of_words:function(e,t){const n=Dt(e);if(this.context.memoryLimit.use(n.length),!(e=n.trim()))return 0;switch(t){case"cjk":return(e.match(Si)||[]).length+(e.match(Ai)||[]).length;case"auto":return Si.test(e)?e.match(Si).length+(e.match(Ai)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}},array_to_sentence_string:function(e,t="and"){switch(this.context.memoryLimit.use(e.length),e.length){case 0:return"";case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}}});const Fi=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_r),di),gi),ki),Ei),ji),Sr),Di=["offset","limit","reversed"];function _i(e,t,n){if(t.options.dynamicPartials){const t=e.readValue();if(e.assert(t,"illegal file path"),"none"===t.getText())return;return ti(t)===Jr.Quoted?Ri(n.parse(gr(t))):t}const r=[...e.readFileNameTemplate(t.options)],i=Ri(n.parseTokens(r));return"none"===i?void 0:i}function Ri(e){return 1===e.length&&Kr(e[0].token)?e[0].token.getContent():e}function*zi(e,t,n){return"string"==typeof e?e:Array.isArray(e)?n.renderer.renderTemplates(e,t):yield mr(e,t)}class Mi extends dn{constructor(e,t,n,r){super(e,n,r),this.length=e,this.cols=t}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return 0===this.col0()}col_last(){return this.col()===this.cols}}const Ni={assign:class extends Ir{constructor(e,t,n){super(e,t,n),this.key=this.tokenizer.readIdentifier().content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert("="===this.tokenizer.peek(),'expected "="'),this.tokenizer.advance(),this.value=new Hr(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}},for:class extends Ir{constructor(e,t,n,r){super(e,t,n);const i=this.tokenizer.readIdentifier(),s=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(!i.size()||"in"!==s.content||!o)throw new Error(`illegal tag: ${e.getText()}`);let a;this.variable=i.content,this.collection=o,this.hash=new $r(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];const c=r.parseStream(t).on("start",(()=>a=this.templates)).on("tag:else",(e=>{un(e.args),a=this.elseTemplates})).on("tag:endfor",(e=>{un(e.args),c.stop()})).on("template",(e=>a.push(e))).on("end",(()=>{throw new Error(`tag ${e.getText()} not closed`)}));c.start()}*render(e,t){const n=this.liquid.renderer;let r=_t(yield mr(this.collection,e));if(!r.length)return void(yield n.renderTemplates(this.elseTemplates,e,t));const i="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(i)});const s=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(s).filter((e=>Di.includes(e))):Di.filter((e=>void 0!==s[e]))).reduce(((e,t)=>{return"offset"===t?(n=e,r=s.offset,n.slice(r)):"limit"===t?function(e,t){return e.slice(0,t)}(e,s.limit):function(e){return[...e].reverse()}(e);var n,r}),r),e.setRegister(i,(s.offset||0)+r.length);const o={forloop:new dn(r.length,this.collection.getText(),this.variable)};e.push(o);for(const i of r){if(o[this.variable]=i,yield n.renderTemplates(this.templates,e,t),t.break){t.break=!1;break}t.continue=!1,o.forloop.next()}e.pop()}},capture:class extends Ir{constructor(e,t,n,r){for(super(e,t,n),this.templates=[],this.variable=this.readVariableName();t.length;){const e=t.shift();if(ei(e)&&"endcapture"===e.name)return;this.templates.push(r.parseToken(e,t))}throw new Error(`tag ${e.getText()} not closed`)}*render(e){const t=this.liquid.renderer,n=yield t.renderTemplates(this.templates,e);e.bottom()[this.variable]=n}readVariableName(){const e=this.tokenizer.readIdentifier().content;if(e)return e;const t=this.tokenizer.readQuoted();if(t)return gr(t);throw this.tokenizer.error("invalid capture name")}},case:class extends Ir{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[],this.value=new Hr(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let i=[],s=0;const o=r.parseStream(t).on("tag:when",(e=>{if(s>0)return;i=[];const t=[];for(;!e.tokenizer.end();)t.push(e.tokenizer.readValueOrThrow()),e.tokenizer.skipBlank(),","===e.tokenizer.peek()?e.tokenizer.readTo(","):e.tokenizer.readTo("or");this.branches.push({values:t,templates:i})})).on("tag:else",(()=>{s++,i=this.elseTemplates})).on("tag:endcase",(()=>o.stop())).on("template",(e=>{i===this.elseTemplates&&1!==s||i.push(e)})).on("end",(()=>{throw new Error(`tag ${e.getText()} not closed`)}));o.start()}*render(e,t){const n=this.liquid.renderer,r=zt(yield this.value.value(e,e.opts.lenientIf));let i=!1;for(const s of this.branches)for(const o of s.values)if(xr(r,yield mr(o,e,e.opts.lenientIf))){yield n.renderTemplates(s.templates,e,t),i=!0;break}i||(yield n.renderTemplates(this.elseTemplates,e,t))}},comment:class extends Ir{constructor(e,t,n){for(super(e,t,n);t.length;){const e=t.shift();if(ei(e)&&"endcomment"===e.name)return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},include:class extends Ir{constructor(e,t,n,r){super(e,t,n);const{tokenizer:i}=e;this.file=_i(i,this.liquid,r),this.currentFile=e.file;const s=i.p;"with"===i.readIdentifier().content?(i.skipBlank(),":"!==i.peek()?this.withVar=i.readValue():i.p=s):i.p=s,this.hash=new $r(i.remaining(),n.options.jekyllInclude||n.options.keyValueSeparator)}*render(e,t){const{liquid:n,hash:r,withVar:i}=this,{renderer:s}=n,o=yield zi(this.file,e,n);ln(o,(()=>`illegal file path "${o}"`));const a=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",Zr.OUTPUT);const c=yield r.render(e);i&&(c[o]=yield mr(i,e));const l=yield n._parsePartialFile(o,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:c}:c),yield s.renderTemplates(l,e,t),e.pop(),e.restoreRegister(a)}},render:class extends Ir{constructor(e,t,n,r){super(e,t,n);const i=this.tokenizer;for(this.file=_i(i,this.liquid,r),this.currentFile=e.file;!i.end();){i.skipBlank();const e=i.p,t=i.readIdentifier();if(("with"===t.content||"for"===t.content)&&(i.skipBlank(),":"!==i.peek())){const e=i.readValue();if(e){const n=i.p;let r;"as"===i.readIdentifier().content?r=i.readIdentifier():i.p=n,this[t.content]={value:e,alias:r&&r.content},i.skipBlank(),","===i.peek()&&i.advance();continue}}i.p=e;break}this.hash=new $r(i.remaining(),n.options.keyValueSeparator)}*render(e,t){const{liquid:n,hash:r}=this,i=yield zi(this.file,e,n);ln(i,(()=>`illegal file path "${i}"`));const s=e.spawn(),o=s.bottom();if(bn(o,yield r.render(e)),this.with){const{value:t,alias:n}=this.with;o[n||i]=yield mr(t,e)}if(this.for){const{value:r,alias:a}=this.for,c=_t(yield mr(r,e));o.forloop=new dn(c.length,r.getText(),a);for(const e of c){o[a]=e;const r=yield n._parsePartialFile(i,s.sync,this.currentFile);yield n.renderer.renderTemplates(r,s,t),o.forloop.next()}}else{const e=yield n._parsePartialFile(i,s.sync,this.currentFile);yield n.renderer.renderTemplates(e,s,t)}}},decrement:class extends Ir{constructor(e,t,n){super(e,t,n),this.variable=this.tokenizer.readIdentifier().content}render(e,t){const n=e.environments;Nt(n[this.variable])||(n[this.variable]=0),t.write(Dt(--n[this.variable]))}},increment:class extends Ir{constructor(e,t,n){super(e,t,n),this.variable=this.tokenizer.readIdentifier().content}render(e,t){const n=e.environments;Nt(n[this.variable])||(n[this.variable]=0);const r=n[this.variable];n[this.variable]++,t.write(Dt(r))}},cycle:class extends Ir{constructor(e,t,n){super(e,t,n),this.candidates=[];const r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(":"===this.tokenizer.peek()?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){const e=this.tokenizer.readValue();e&&this.candidates.push(e),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,(()=>`empty candidates: "${e.getText()}"`))}*render(e,t){const n=`cycle:${yield mr(this.group,e)}:`+this.candidates.join(","),r=e.getRegister("cycle");let i=r[n];void 0===i&&(i=r[n]=0);const s=this.candidates[i];return i=(i+1)%this.candidates.length,r[n]=i,yield mr(s,e)}},if:class extends Ir{constructor(e,t,n,r){super(e,t,n),this.branches=[];let i=[];r.parseStream(t).on("start",(()=>this.branches.push({value:new Hr(e.args,this.liquid),templates:i=[]}))).on("tag:elsif",(e=>{ln(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new Hr(e.args,this.liquid),templates:i=[]})})).on("tag:else",(e=>{un(e.args),ln(!this.elseTemplates,"duplicated else"),i=this.elseTemplates=[]})).on("tag:endif",(function(e){un(e.args),this.stop()})).on("template",(e=>i.push(e))).on("end",(()=>{throw new Error(`tag ${e.getText()} not closed`)})).start()}*render(e,t){const n=this.liquid.renderer;for(const{value:r,templates:i}of this.branches)if(vr(yield r.value(e,e.opts.lenientIf),e))return void(yield n.renderTemplates(i,e,t));yield n.renderTemplates(this.elseTemplates||[],e,t)}},layout:class extends Ir{constructor(e,t,n,r){super(e,t,n),this.file=_i(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new $r(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=r.parseTokens(t)}*render(e,t){const{liquid:n,args:r,file:i}=this,{renderer:s}=n;if(void 0===i)return e.setRegister("blockMode",Zr.OUTPUT),void(yield s.renderTemplates(this.templates,e,t));const o=yield zi(this.file,e,n);ln(o,(()=>`illegal file path "${o}"`));const a=yield n._parseLayoutFile(o,e.sync,this.currentFile);e.setRegister("blockMode",Zr.STORE);const c=yield s.renderTemplates(this.templates,e),l=e.getRegister("blocks");void 0===l[""]&&(l[""]=(e,t)=>t.write(c)),e.setRegister("blockMode",Zr.OUTPUT),e.push(yield r.render(e)),yield s.renderTemplates(a,e,t),e.pop()}},block:class extends Ir{constructor(e,t,n,r){super(e,t,n),this.templates=[];const i=/\w+/.exec(e.args);for(this.block=i?i[0]:"";t.length;){const e=t.shift();if(ei(e)&&"endblock"===e.name)return;const n=r.parseToken(e,t);this.templates.push(n)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,t){const n=this.getBlockRender(e);e.getRegister("blockMode")===Zr.STORE?e.getRegister("blocks")[this.block]=n:yield n(new fn,t)}getBlockRender(e){const{liquid:t,templates:n}=this,r=e.getRegister("blocks")[this.block],i=function*(r,i){e.push({block:r}),yield t.renderer.renderTemplates(n,e,i),e.pop()};return r?(e,t)=>r(new fn((()=>i(e,t))),t):i}},raw:class extends Ir{constructor(e,t,n){for(super(e,t,n),this.tokens=[];t.length;){const e=t.shift();if(ei(e)&&"endraw"===e.name)return;this.tokens.push(e)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map((e=>e.getText())).join("")}},tablerow:class extends Ir{constructor(e,t,n,r){super(e,t,n);const i=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const s=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if("in"!==s.content||!o)throw new Error(`illegal tag: ${e.getText()}`);let a;this.variable=i.content,this.collection=o,this.args=new $r(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=[];const c=r.parseStream(t).on("start",(()=>a=this.templates)).on("tag:endtablerow",(()=>c.stop())).on("template",(e=>a.push(e))).on("end",(()=>{throw new Error(`tag ${e.getText()} not closed`)}));c.start()}*render(e,t){let n=_t(yield mr(this.collection,e));const r=yield this.args.render(e),i=r.offset||0,s=void 0===r.limit?n.length:r.limit;n=n.slice(i,i+s);const o=r.cols||n.length,a=this.liquid.renderer,c=new Mi(n.length,o,this.collection.getText(),this.variable),l={tablerowloop:c};e.push(l);for(let r=0;r<n.length;r++,c.next())l[this.variable]=n[r],0===c.col0()&&(1!==c.row()&&t.write("</tr>"),t.write(`<tr class="row${c.row()}">`)),t.write(`<td class="col${c.col()}">`),yield a.renderTemplates(this.templates,e,t),t.write("</td>");n.length&&t.write("</tr>"),e.pop()}},unless:class extends Ir{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[];let i=[],s=0;r.parseStream(t).on("start",(()=>this.branches.push({value:new Hr(e.args,this.liquid),test:br,templates:i=[]}))).on("tag:elsif",(e=>{s>0?i=[]:this.branches.push({value:new Hr(e.args,this.liquid),test:vr,templates:i=[]})})).on("tag:else",(()=>{s++,i=this.elseTemplates})).on("tag:endunless",(function(){this.stop()})).on("template",(e=>{i===this.elseTemplates&&1!==s||i.push(e)})).on("end",(()=>{throw new Error(`tag ${e.getText()} not closed`)})).start()}*render(e,t){const n=this.liquid.renderer;for(const{value:r,test:i,templates:s}of this.branches)if(i(yield r.value(e,e.opts.lenientIf),e))return void(yield n.renderTemplates(s,e,t));yield n.renderTemplates(this.elseTemplates,e,t)}},break:class extends Ir{render(e,t){t.break=!0}},continue:class extends Ir{render(e,t){t.continue=!0}},echo:class extends Ir{constructor(e,t,n){super(e,t,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new Hr(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,t){if(!this.value)return;const n=yield this.value.value(e,!1);t.write(n)}},liquid:class extends Ir{constructor(e,t,n,r){super(e,t,n);const i=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(i)}*render(e,t){yield this.liquid.renderer.renderTemplates(this.templates,e,t)}},"#":class extends Ir{constructor(e,t,n){if(super(e,t,n),-1!==e.args.search(/\n\s*[^#\s]/g))throw new Error("every line of an inline comment must start with a '#' character")}render(){}}};class qi{constructor(e={}){this.renderer=new dr,this.filters={},this.tags={},this.options=function(e){var t,n,r;if(e.hasOwnProperty("root")&&(e.hasOwnProperty("partials")||(e.partials=e.root),e.hasOwnProperty("layouts")||(e.layouts=e.root)),e.hasOwnProperty("cache")){let t;t="number"==typeof e.cache?e.cache>0?new Tr(e.cache):void 0:"object"==typeof e.cache?e.cache:e.cache?new Tr(1024):void 0,e.cache=t}return(e=Object.assign(Object.assign(Object.assign({},zr),e.jekyllInclude?{dynamicPartials:!1}:{}),e)).fs.dirname&&e.fs.sep||!e.relativeReference||(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),e.relativeReference=!1),e.root=Mr(e.root),e.partials=Mr(e.partials),e.layouts=Mr(e.layouts),e.outputEscape=e.outputEscape&&("escape"===(r=e.outputEscape)?Fr:"json"===r?Sr.json:(ln(At(r),"`outputEscape` need to be of type string or function"),r)),e.locale||(e.locale=null!==(n=null===(t=Rn())||void 0===t?void 0:t().resolvedOptions().locale)&&void 0!==n?n:"en-US"),e.templates&&(e.fs=new Rr(e.templates),e.relativeReference=!0,e.root=e.partials=e.layouts="."),e}(e),this.parser=new Xr(this),Pt(Ni,((e,t)=>this.registerTag(t,e))),Pt(Fi,((e,t)=>this.registerFilter(t,e)))}parse(e,t){return new Xr(this).parse(e,t)}_render(e,t,n){const r=t instanceof ni?t:new ni(t,this.options,n);return this.renderer.renderTemplates(e,r)}render(e,t,n){return wn(this,void 0,void 0,(function*(){return xn(this._render(e,t,Object.assign(Object.assign({},n),{sync:!1})))}))}renderSync(e,t,n){return kn(this._render(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,t,n={}){const r=new ni(t,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,t,n){const r=this.parse(e);return this._render(r,t,n)}parseAndRender(e,t,n){return wn(this,void 0,void 0,(function*(){return xn(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!1})))}))}parseAndRenderSync(e,t,n){return kn(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,t,n){return new Xr(this).parseFile(e,t,Yr.Partials,n)}_parseLayoutFile(e,t,n){return new Xr(this).parseFile(e,t,Yr.Layouts,n)}_parseFile(e,t,n,r){return new Xr(this).parseFile(e,t,n,r)}parseFile(e,t){return wn(this,void 0,void 0,(function*(){return xn(new Xr(this).parseFile(e,!1,t))}))}parseFileSync(e,t){return kn(new Xr(this).parseFile(e,!0,t))}*_renderFile(e,t,n){const r=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(r,t,n)}renderFile(e,t,n){return wn(this,void 0,void 0,(function*(){return xn(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!1})))}))}renderFileSync(e,t,n){return kn(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,t,n){return wn(this,void 0,void 0,(function*(){const r=yield this.parseFile(e);return this.renderToNodeStream(r,t,n)}))}_evalValue(e,t){const n=new Hr(e,this),r=t instanceof ni?t:new ni(t,this.options);return n.value(r)}evalValue(e,t){return wn(this,void 0,void 0,(function*(){return xn(this._evalValue(e,t))}))}evalValueSync(e,t){return kn(this._evalValue(e,t))}registerFilter(e,t){this.filters[e]=t}registerTag(e,t){this.tags[e]=At(t)?t:function(e){return class extends Ir{constructor(t,n,r){super(t,n,r),At(e.parse)&&e.parse.call(this,t,n)}*render(t,n){const r=yield new $r(this.token.args,t.opts.keyValueSeparator).render(t);return yield e.render.call(this,t,n,r)}}}(t)}plugin(e){return e.call(this,qi)}express(){const e=this;let t=!0;return function(n,r,i){if(t){t=!1;const n=Mr(this.root);e.options.root.unshift(...n),e.options.layouts.unshift(...n),e.options.partials.unshift(...n)}e.renderFile(n,r).then((e=>i(null,e)),i)}}}const Vi=new qi;window.addEventListener("load",(function(){rt(document.querySelectorAll("a[data-ilj-link-preview]"),{content:function(e){return Vi.parseAndRenderSync(document.getElementById("ilj-link-preview-template").innerHTML,e.dataset)},allowHTML:!0,theme:"light",interactive:!0,maxWidth:300})}))})();
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.09 |
proxy
|
phpinfo
|
Настройка