From d5b7d3b2029fa1ae4d40a9dcd2c02f284fa788cc Mon Sep 17 00:00:00 2001 From: Sam Pohlenz Date: Wed, 4 Dec 2024 15:28:10 +1030 Subject: [PATCH] Pass element to actionsList method in Stimulus ApplicationController --- app/assets/bundle/trestle/admin.js | 4 ++-- frontend/js/controllers/application_controller.js | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/assets/bundle/trestle/admin.js b/app/assets/bundle/trestle/admin.js index 4bb7331e..5b5470e8 100644 --- a/app/assets/bundle/trestle/admin.js +++ b/app/assets/bundle/trestle/admin.js @@ -26,14 +26,14 @@ Copyright © 2024 37signals LLC —— Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s - `,e.outerHTML);e=e.parentElement}})(),window.Turbo={...hn,StreamActions:yn},nn(),e.FetchEnctype=fe,e.FetchMethod=le,e.FetchRequest=de,e.FetchResponse=re,e.FrameElement=o,e.FrameLoadingStyle=i,e.FrameRenderer=Ke,e.PageRenderer=zt,e.PageSnapshot=ut,e.StreamActions=yn,e.StreamElement=bn,e.StreamSourceElement=wn,e.cache=en,e.clearCache=ln,e.config=z,e.connectStreamSource=sn,e.disconnectStreamSource=an,e.fetch=ae,e.fetchEnctypeFromString=ue,e.fetchMethodFromString=ce,e.isSafe=he,e.navigator=tn,e.registerAdapter=rn,e.renderStreamMessage=cn,e.session=Jt,e.setConfirmMethod=fn,e.setFormMode=dn,e.setProgressBarDelay=un,e.start=nn,e.visit=on,Object.defineProperty(e,"__esModule",{value:!0})}(t)},548:function(e,t){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof n(e).Element||e instanceof Element}function i(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(t,"__esModule",{value:!0});var s=Math.max,a=Math.min,c=Math.round;function l(){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 u(){return!/^((?!chrome|android).)*safari/i.test(l())}function f(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var s=e.getBoundingClientRect(),a=1,l=1;t&&i(e)&&(a=e.offsetWidth>0&&c(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(s.height)/e.offsetHeight||1);var f=(r(e)?n(e):window).visualViewport,d=!u()&&o,h=(s.left+(d&&f?f.offsetLeft:0))/a,p=(s.top+(d&&f?f.offsetTop:0))/l,m=s.width/a,g=s.height/l;return{width:m,height:g,top:p,right:h+m,bottom:p+g,left:h,x:h,y:p}}function d(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return f(p(e)).left+d(e).scrollLeft}function g(e){return n(e).getComputedStyle(e)}function v(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,r){void 0===r&&(r=!1);var o,s=i(t),a=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=p(t),u=f(e,a,r),g={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(s||!s&&!r)&&(("body"!==h(t)||v(l))&&(g=(o=t)!==n(o)&&i(o)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(o):d(o)),i(t)?((y=f(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):l&&(y.x=m(l))),{x:u.left+g.scrollLeft-y.x,y:u.top+g.scrollTop-y.y,width:u.width,height:u.height}}function b(e){var t=f(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 w(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||p(e)}function _(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&v(e)?e:_(w(e))}function S(e,t){var r;void 0===t&&(t=[]);var i=_(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=n(i),a=o?[s].concat(s.visualViewport||[],v(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(S(w(a)))}function O(e){return["table","td","th"].indexOf(h(e))>=0}function E(e){return i(e)&&"fixed"!==g(e).position?e.offsetParent:null}function x(e){for(var t=n(e),r=E(e);r&&O(r)&&"static"===g(r).position;)r=E(r);return r&&("html"===h(r)||"body"===h(r)&&"static"===g(r).position)?t:r||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&i(e)&&"fixed"===g(e).position)return null;var n=w(e);for(o(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=g(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 T="top",A="bottom",C="right",j="left",k="auto",P=[T,A,C,j],D="start",M="end",L="viewport",N="popper",R=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+M])}),[]),I=[].concat(P,[k]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+M])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(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}function H(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 B(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q(e,t,i){return t===L?B(function(e,t){var r=n(e),i=p(e),o=r.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,l=0;if(o){s=o.width,a=o.height;var f=u();(f||!f&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:c+m(e),y:l}}(e,i)):r(t)?function(e,t){var n=f(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,i):B(function(e){var t,n=p(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+m(e),l=-r.scrollTop;return"rtl"===g(i||n).direction&&(c+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:l}}(p(e)))}function z(e,t,n,o){var c="clippingParents"===t?function(e){var t=S(w(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&i(e)?x(e):e;return r(n)?t.filter((function(e){return r(e)&&H(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),l=[].concat(c,[n]),u=l[0],f=l.reduce((function(t,n){var r=q(e,n,o);return t.top=s(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),q(e,u,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function W(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function U(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,s=i?V(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case T:t={x:a,y:n.y-r.height};break;case A:t={x:a,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:c};break;case j:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?U(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case D:t[l]=t[l]-(n[u]/2-r[u]/2);break;case M:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Z(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,s=n.strategy,a=void 0===s?e.strategy:s,c=n.boundary,l=void 0===c?"clippingParents":c,u=n.rootBoundary,d=void 0===u?L:u,h=n.elementContext,m=void 0===h?N:h,g=n.altBoundary,v=void 0!==g&&g,y=n.padding,b=void 0===y?0:y,w=Y("number"!=typeof b?b:G(b,P)),_=m===N?"reference":N,S=e.rects.popper,O=e.elements[v?_:m],E=z(r(O)?O:O.contextElement||p(e.elements.popper),l,d,a),x=f(e.elements.reference),j=K({reference:x,element:S,strategy:"absolute",placement:o}),k=B(Object.assign({},S,j)),D=m===N?k:x,M={top:E.top-D.top+w.top,bottom:D.bottom-E.bottom+w.bottom,left:E.left-D.left+w.left,right:D.right-E.right+w.right},R=e.modifiersData.offset;if(m===N&&R){var I=R[o];Object.keys(M).forEach((function(e){var t=[C,A].indexOf(e)>=0?1:-1,n=[T,A].indexOf(e)>=0?"y":"x";M[e]+=I[n]*t}))}return M}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[j,C].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[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]=s}},ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var ue={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function de(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?I:c,u=V(r),f=u?a?R:R.filter((function(e){return V(e)===u})):P,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=Z(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[W(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var he={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,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g),y=c||(v===g||!p?[le(g)]:function(e){if(W(e)===k)return[];var t=le(e);return[fe(e),t,fe(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(W(n)===k?de(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,S=new Map,O=!0,E=b[0],x=0;x=0,R=N?"width":"height",I=Z(t,{placement:P,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),F=N?L?C:j:L?A:T;w[R]>_[R]&&(F=le(F));var $=le(F),H=[];if(o&&H.push(I[M]<=0),a&&H.push(I[F]<=0,I[$]<=0),H.every((function(e){return e}))){E=P,O=!1;break}S.set(P,H)}if(O)for(var B=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},q=p?3:1;q>0;q--){if("break"===B(q))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return s(e,a(t,n))}var me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,c=n.altAxis,l=void 0!==c&&c,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=Z(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:d}),w=W(t.placement),_=V(t.placement),S=!_,O=U(w),E="x"===O?"y":"x",k=t.modifiersData.popperOffsets,P=t.rects.reference,M=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var F,$="y"===O?T:j,H="y"===O?A:C,B="y"===O?"height":"width",q=k[O],z=q+y[$],K=q-y[H],Y=m?-M[B]/2:0,G=_===D?P[B]:M[B],X=_===D?-M[B]:-P[B],Q=t.elements.arrow,J=m&&Q?b(Q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[$],ne=ee[H],re=pe(0,P[B],J[B]),ie=S?P[B]/2-Y-re-te-N.mainAxis:G-re-te-N.mainAxis,oe=S?-P[B]/2+Y+re+ne+N.mainAxis:X+re+ne+N.mainAxis,se=t.elements.arrow&&x(t.elements.arrow),ae=se?"y"===O?se.clientTop||0:se.clientLeft||0:0,ce=null!=(F=null==R?void 0:R[O])?F:0,le=q+oe-ce,ue=pe(m?a(z,q+ie-ce-ae):z,q,m?s(K,le):K);k[O]=ue,I[O]=ue-q}if(l){var fe,de="x"===O?T:j,he="x"===O?A:C,me=k[E],ge="y"===E?"height":"width",ve=me+y[de],ye=me-y[he],be=-1!==[T,j].indexOf(w),we=null!=(fe=null==R?void 0:R[E])?fe:0,_e=be?ve:me-P[ge]-M[ge]-we+N.altAxis,Se=be?me+P[ge]+M[ge]-we-N.altAxis:ye,Oe=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(_e,me,Se):pe(m?_e:ve,me,m?Se:ye);k[E]=Oe,I[E]=Oe-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=W(n.placement),c=U(a),l=[j,C].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,P))}(i.padding,n),f=b(o),d="y"===c?T:j,h="y"===c?A:C,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=x(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,w=u[d],_=v-f[l]-u[h],S=v/2-f[l]/2+y,O=pe(w,S,_),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-S,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)))&&H(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(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 ye(e){return[T,C,A,j].some((function(t){return e[t]>=0}))}var be={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,o=t.modifiersData.preventOverflow,s=Z(t,{elementContext:"reference"}),a=Z(t,{altBoundary:!0}),c=ve(s,r),l=ve(a,i,o),u=ye(c),f=ye(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},we=J({defaultModifiers:[te,ne,oe,se]}),_e=[te,ne,oe,se,ae,he,me,ge,be],Se=J({defaultModifiers:_e});t.applyStyles=se,t.arrow=ge,t.computeStyles=oe,t.createPopper=Se,t.createPopperLite=we,t.defaultModifiers=_e,t.detectOverflow=Z,t.eventListeners=te,t.flip=he,t.hide=be,t.offset=ae,t.popperGenerator=J,t.popperOffsets=ne,t.preventOverflow=me},9044:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(6927),i=n(2233);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:this.element,r=this.actionsList,i="".concat(e,"->").concat(this.identifier,"#").concat(t);r.includes(i)||r.push(i),n.dataset.action=r.join(" ")}},{key:"removeAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.element,r="".concat(e,"->").concat(this.identifier,"#").concat(t),i=this.actionsList.filter((function(e){return e!==r}));n.dataset.action=i.join(" ")}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.q)(e,t)}},{key:"fetchTurboStream",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.h)(e,t)}},{key:"csrfToken",get:function(){return document.querySelector("[name='csrf-token']").content}},{key:"actionsList",get:function(){return element.dataset.action?element.dataset.action.split(" "):[]}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.Controller)},8111:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n=500){e.preventDefault();var n="".concat(t.status," (").concat(t.statusText,")");t.text().then((function(e){return i.A.show({title:n,content:e})}))}}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default)},4761:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9044);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n0&&c(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(s.height)/e.offsetHeight||1);var f=(r(e)?n(e):window).visualViewport,d=!u()&&o,h=(s.left+(d&&f?f.offsetLeft:0))/a,p=(s.top+(d&&f?f.offsetTop:0))/l,m=s.width/a,g=s.height/l;return{width:m,height:g,top:p,right:h+m,bottom:p+g,left:h,x:h,y:p}}function d(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return f(p(e)).left+d(e).scrollLeft}function g(e){return n(e).getComputedStyle(e)}function v(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,r){void 0===r&&(r=!1);var o,s,a=i(t),l=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=p(t),g=f(e,l,r),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!r)&&(("body"!==h(t)||v(u))&&(y=(o=t)!==n(o)&&i(o)?{scrollLeft:(s=o).scrollLeft,scrollTop:s.scrollTop}:d(o)),i(t)?((b=f(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=m(u))),{x:g.left+y.scrollLeft-b.x,y:g.top+y.scrollTop-b.y,width:g.width,height:g.height}}function b(e){var t=f(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 w(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||p(e)}function _(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&v(e)?e:_(w(e))}function S(e,t){var r;void 0===t&&(t=[]);var i=_(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=n(i),a=o?[s].concat(s.visualViewport||[],v(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(S(w(a)))}function O(e){return["table","td","th"].indexOf(h(e))>=0}function E(e){return i(e)&&"fixed"!==g(e).position?e.offsetParent:null}function x(e){for(var t=n(e),r=E(e);r&&O(r)&&"static"===g(r).position;)r=E(r);return r&&("html"===h(r)||"body"===h(r)&&"static"===g(r).position)?t:r||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&i(e)&&"fixed"===g(e).position)return null;var n=w(e);for(o(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=g(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 T="top",A="bottom",C="right",j="left",k="auto",P=[T,A,C,j],D="start",M="end",L="viewport",N="popper",R=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+M])}),[]),I=[].concat(P,[k]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+M])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(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}function H(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 B(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q(e,t,i){return t===L?B(function(e,t){var r=n(e),i=p(e),o=r.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,l=0;if(o){s=o.width,a=o.height;var f=u();(f||!f&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:c+m(e),y:l}}(e,i)):r(t)?function(e,t){var n=f(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,i):B(function(e){var t,n=p(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+m(e),l=-r.scrollTop;return"rtl"===g(i||n).direction&&(c+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:l}}(p(e)))}function z(e,t,n,o){var c="clippingParents"===t?function(e){var t=S(w(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&i(e)?x(e):e;return r(n)?t.filter((function(e){return r(e)&&H(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),l=[].concat(c,[n]),u=l[0],f=l.reduce((function(t,n){var r=q(e,n,o);return t.top=s(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),q(e,u,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function W(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function U(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,s=i?V(i):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case T:t={x:a,y:n.y-r.height};break;case A:t={x:a,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:c};break;case j:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?U(o):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case D:t[l]=t[l]-(n[u]/2-r[u]/2);break;case M:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Z(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,s=n.strategy,a=void 0===s?e.strategy:s,c=n.boundary,l=void 0===c?"clippingParents":c,u=n.rootBoundary,d=void 0===u?L:u,h=n.elementContext,m=void 0===h?N:h,g=n.altBoundary,v=void 0!==g&&g,y=n.padding,b=void 0===y?0:y,w=Y("number"!=typeof b?b:G(b,P)),_=m===N?"reference":N,S=e.rects.popper,O=e.elements[v?_:m],E=z(r(O)?O:O.contextElement||p(e.elements.popper),l,d,a),x=f(e.elements.reference),j=K({reference:x,element:S,strategy:"absolute",placement:o}),k=B(Object.assign({},S,j)),D=m===N?k:x,M={top:E.top-D.top+w.top,bottom:D.bottom-E.bottom+w.bottom,left:E.left-D.left+w.left,right:D.right-E.right+w.right},R=e.modifiersData.offset;if(m===N&&R){var I=R[o];Object.keys(M).forEach((function(e){var t=[C,A].indexOf(e)>=0?1:-1,n=[T,A].indexOf(e)>=0?"y":"x";M[e]+=I[n]*t}))}return M}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[j,C].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[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]=s}},ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var ue={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return ue[e]}))}function de(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?I:c,u=V(r),f=u?a?R:R.filter((function(e){return V(e)===u})):P,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=Z(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[W(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var he={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,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g),y=c||(v===g||!p?[le(g)]:function(e){if(W(e)===k)return[];var t=le(e);return[fe(e),t,fe(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(W(n)===k?de(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,S=new Map,O=!0,E=b[0],x=0;x=0,R=N?"width":"height",I=Z(t,{placement:P,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),F=N?L?C:j:L?A:T;w[R]>_[R]&&(F=le(F));var $=le(F),H=[];if(o&&H.push(I[M]<=0),a&&H.push(I[F]<=0,I[$]<=0),H.every((function(e){return e}))){E=P,O=!1;break}S.set(P,H)}if(O)for(var B=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},q=p?3:1;q>0;q--){if("break"===B(q))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return s(e,a(t,n))}var me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,c=n.altAxis,l=void 0!==c&&c,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=Z(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:d}),w=W(t.placement),_=V(t.placement),S=!_,O=U(w),E="x"===O?"y":"x",k=t.modifiersData.popperOffsets,P=t.rects.reference,M=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var F,$="y"===O?T:j,H="y"===O?A:C,B="y"===O?"height":"width",q=k[O],z=q+y[$],K=q-y[H],Y=m?-M[B]/2:0,G=_===D?P[B]:M[B],X=_===D?-M[B]:-P[B],Q=t.elements.arrow,J=m&&Q?b(Q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[$],ne=ee[H],re=pe(0,P[B],J[B]),ie=S?P[B]/2-Y-re-te-N.mainAxis:G-re-te-N.mainAxis,oe=S?-P[B]/2+Y+re+ne+N.mainAxis:X+re+ne+N.mainAxis,se=t.elements.arrow&&x(t.elements.arrow),ae=se?"y"===O?se.clientTop||0:se.clientLeft||0:0,ce=null!=(F=null==R?void 0:R[O])?F:0,le=q+oe-ce,ue=pe(m?a(z,q+ie-ce-ae):z,q,m?s(K,le):K);k[O]=ue,I[O]=ue-q}if(l){var fe,de="x"===O?T:j,he="x"===O?A:C,me=k[E],ge="y"===E?"height":"width",ve=me+y[de],ye=me-y[he],be=-1!==[T,j].indexOf(w),we=null!=(fe=null==R?void 0:R[E])?fe:0,_e=be?ve:me-P[ge]-M[ge]-we+N.altAxis,Se=be?me+P[ge]+M[ge]-we-N.altAxis:ye,Oe=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(_e,me,Se):pe(m?_e:ve,me,m?Se:ye);k[E]=Oe,I[E]=Oe-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=W(n.placement),c=U(a),l=[j,C].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,P))}(i.padding,n),f=b(o),d="y"===c?T:j,h="y"===c?A:C,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=x(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,w=u[d],_=v-f[l]-u[h],S=v/2-f[l]/2+y,O=pe(w,S,_),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-S,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)))&&H(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(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 ye(e){return[T,C,A,j].some((function(t){return e[t]>=0}))}var be={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,o=t.modifiersData.preventOverflow,s=Z(t,{elementContext:"reference"}),a=Z(t,{altBoundary:!0}),c=ve(s,r),l=ve(a,i,o),u=ye(c),f=ye(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},we=J({defaultModifiers:[te,ne,oe,se]}),_e=[te,ne,oe,se,ae,he,me,ge,be],Se=J({defaultModifiers:_e});t.applyStyles=se,t.arrow=ge,t.computeStyles=oe,t.createPopper=Se,t.createPopperLite=we,t.defaultModifiers=_e,t.detectOverflow=Z,t.eventListeners=te,t.flip=he,t.hide=be,t.offset=ae,t.popperGenerator=J,t.popperOffsets=ne,t.preventOverflow=me},9044:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(6927),i=n(2233);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:this.element,r=this.actionsList(n),i="".concat(e,"->").concat(this.identifier,"#").concat(t);r.includes(i)||r.push(i),n.dataset.action=r.join(" ")}},{key:"removeAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.element,r="".concat(e,"->").concat(this.identifier,"#").concat(t),i=this.actionsList(n).filter((function(e){return e!==r}));n.dataset.action=i.join(" ")}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.q)(e,t)}},{key:"fetchTurboStream",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.h)(e,t)}},{key:"actionsList",value:function(e){return e.dataset.action?e.dataset.action.split(" "):[]}},{key:"csrfToken",get:function(){return document.querySelector("[name='csrf-token']").content}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.Controller)},8111:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n=500){e.preventDefault();var n="".concat(t.status," (").concat(t.statusText,")");t.text().then((function(e){return i.A.show({title:n,content:e})}))}}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default)},4761:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9044);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;ne.priority-t.priority)),null===(o=this.pswp)||void 0===o||o.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var n;return null===(n=this._filters[e])||void 0===n||n.forEach((e=>{t[0]=e.fn.apply(this,t)})),t[0]}on(e,t){var n,r;this._listeners[e]||(this._listeners[e]=[]),null===(n=this._listeners[e])||void 0===n||n.push(t),null===(r=this.pswp)||void 0===r||r.on(e,t)}off(e,t){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),null===(n=this.pswp)||void 0===n||n.off(e,t)}dispatch(e,t){var n;if(this.pswp)return this.pswp.dispatch(e,t);const r=new h(e,t);return null===(n=this._listeners[e])||void 0===n||n.forEach((e=>{e.call(this,r)})),r}}class m{constructor(e,t){if(this.element=o("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(s(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(e,t,n){let r=`translate3d(${e}px,${t||0}px,0)`;return void 0!==n&&(r+=` scale3d(${n},${n},1)`),r}(0,0,e/250)):s(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class g{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=a,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new m(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=o("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=o("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const r=this.element;this.updateSrcsetSizes(),this.data.srcset&&(r.srcset=this.data.srcset),r.src=null!==(t=this.data.src)&&void 0!==t?t:"",r.alt=null!==(n=this.data.alt)&&void 0!==n?n:"",this.state=c,r.complete?this.onLoaded():(r.onload=()=>{this.onLoaded()},r.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=l,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==l&&this.state!==u||this.removePlaceholder())}onError(){this.state=u,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===c,this)}isError(){return this.state===u}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(s(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==u,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let n=o("pswp__error-msg","div");n.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=o("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===u)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||d())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!d()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==l&&this.state!==u||this.removePlaceholder()))}}function v(e,t,n,r,i){let o=0;if(t.paddingFn)o=t.paddingFn(n,r,i)[e];else if(t.padding)o=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(o=t[n])}return Number(o)||0}class y{constructor(e,t,n,r){this.pswp=r,this.options=e,this.itemData=t,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,n){const r={x:e,y:t};this.elementSize=r,this.panAreaSize=n;const i=n.x/r.x,o=n.y/r.y;this.fit=Math.min(1,io?i:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function b(e,t,n){const r=t.createContentFromData(e,n);let i;const{options:o}=t;if(o){let s;i=new y(o,e,-1),s=t.pswp?t.pswp.viewportSize:function(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(o,t);const a=function(e,t,n,r){return{x:t.x-v("left",e,t,n,r)-v("right",e,t,n,r),y:t.y-v("top",e,t,n,r)-v("bottom",e,t,n,r)}}(o,s,e,n);i.update(r.width,r.height,a)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}class w extends p{getNumItems(){var e;let t=0;const n=null===(e=this.options)||void 0===e?void 0:e.dataSource;n&&"length"in n?t=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(t=n.items.length));const r=this.dispatch("numItems",{dataSource:n,numItems:t});return this.applyFilters("numItems",r.numItems,n)}createContentFromData(e,t){return new g(e,this,t)}getItemData(e){var t;const n=null===(t=this.options)||void 0===t?void 0:t.dataSource;let r={};Array.isArray(n)?r=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),r=n.items[e]);let i=r;i instanceof Element&&(i=this._domElementToItemData(i));const o=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,n;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(n=this.options)&&void 0!==n&&n.childSelector?f(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,t.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const i=e.querySelector("img");var r;if(i)t.msrc=i.currentSrc||i.src,t.alt=null!==(r=i.getAttribute("alt"))&&void 0!==r?r:"";(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}lazyLoadData(e,t){return b(e,this,t)}}class _ extends w{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){f(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(e){if(function(e){return"button"in e&&1===e.button||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}(e)||window.pswp)return;let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const r={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,r,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,n=f(this.options.children,this.options.childSelector,e.currentTarget).findIndex((e=>e===t||e.contains(t)));return-1!==n?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,n){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){const e=f(this.options.gallery);e[0]&&(t={gallery:e[0]})}return this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){const{options:n}=this;t&&(n.dataSource=t);const r=[],i=typeof n.pswpModule;if("function"==typeof(o=n.pswpModule)&&o.prototype&&o.prototype.goTo)r.push(Promise.resolve(n.pswpModule));else{if("string"===i)throw new Error("pswpModule as string is no longer supported");if("function"!==i)throw new Error("pswpModule is not valid");r.push(n.pswpModule())}var o;"function"==typeof n.openPromise&&r.push(n.openPromise()),!1!==n.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return b(n,t,e)}(e,this));const s=++this._uid;Promise.all(r).then((e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,s)}}))}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const n="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach((e=>{var t;null===(t=this._listeners[e])||void 0===t||t.forEach((t=>{n.on(e,t)}))})),Object.keys(this._filters).forEach((e=>{var t;null===(t=this._filters[e])||void 0===t||t.forEach((t=>{n.addFilter(e,t.fn,t.priority)}))})),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),n.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),n.init()}destroy(){var e;null===(e=this.pswp)||void 0===e||e.destroy(),this.shouldOpen=!1,this._listeners={},f(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)}))}} /*! get-video-id v4.1.7 | @license MIT © Michael Wuergler | https://github.com/radiovisual/get-video-id */ -function S(e){return e.includes("?")&&(e=e.split("?")[0]),e.includes("/")&&(e=e.split("/")[0]),e.includes("&")&&(e=e.split("&")[0]),e}function O(e){let t=e;t=t.replace("-nocookie",""),t=t.replace(/#t=.*$/,""),t=t.replace(/^https?:\/\//,"");const n=/youtube:\/\/|youtu\.be\/|y2u\.be\//g;if(n.test(t)){return S(t.split(n)[1])}const r=/\/shorts\//g;if(r.test(t))return S(t.split(r)[1]);const i=/v=|vi=/g;if(i.test(t)){return S(t.split(i)[1].split("&")[0])}const o=/\/v\/|\/vi\/|\/watch\//g;if(o.test(t)){return S(t.split(o)[1])}const s=/\/an_webp\//g;if(s.test(t)){return S(t.split(s)[1])}const a=/\/e\//g;if(a.test(t)){return S(t.split(a)[1])}const c=/\/embed\//g;if(c.test(t)){return S(t.split(c)[1])}if(/\/user\/([a-zA-Z\d]*)$/g.test(t))return;if(/\/user\/(?!.*videos)/g.test(t)){return S(t.split("/").pop())}const l=/\/attribution_link\?.*v%3D([^%&]*)(%26|&|$)/;if(l.test(t))return S(t.match(l)[1]);const u=/\/live\//g;if(u.test(t)){return S(t.split(u)[1])}}function E(e){let t,n,r=e;r.includes("#")&&([r]=r.split("#")),r.includes("?")&&!r.includes("clip_id=")&&([r]=r.split("?"));const i=/https?:\/\/vimeo\.com\/event\/(\d+)$/.exec(r);if(i&&i[1])return i[1];const o=/https?:\/\/vimeo\.com\/(\d+)/.exec(r);if(o&&o[1])return o[1];const s=["https?://player.vimeo.com/video/[0-9]+$","https?://vimeo.com/channels","groups","album"].join("|");return new RegExp(s,"gim").test(r)?(n=r.split("/"),n&&n.length>0&&(t=n.pop())):/clip_id=/gim.test(r)&&(n=r.split("clip_id="),n&&n.length>0&&([t]=n[1].split("&"))),t}function x(e){const t=/https:\/\/vine\.co\/v\/([a-zA-Z\d]*)\/?/.exec(e);if(t&&t.length>1)return t[1]}function T(e){let t;if(e.includes("embed"))return t=/embed\/(\w{8})/,e.match(t)[1];t=/\/v\/(\w{8})/;const n=e.match(t);return n&&n.length>0?n[1]:void 0}function A(e){const t=(e.includes("embed")?/https:\/\/web\.microsoftstream\.com\/embed\/video\/([a-zA-Z\d-]*)\/?/:/https:\/\/web\.microsoftstream\.com\/video\/([a-zA-Z\d-]*)\/?/).exec(e);if(t&&t.length>1)return t[1]}function C(e){const t=/tiktok\.com(.*)\/video\/(\d+)/gm.exec(e);if(t&&t.length>2)return t[2]}function j(e){const t=/dailymotion\.com(.*)(video)\/([a-zA-Z\d]+)/gm.exec(e);if(t)return t[3];const n=/dai\.ly\/([a-zA-Z\d]+)/gm.exec(e);if(n&&n.length>1)return n[1];const r=/dailymotion\.com(.*)video=([a-zA-Z\d]+)/gm.exec(e);return r&&r.length>2?r[2]:void 0}function k(e){const t=/^https?:\/\/(?:www\.)?loom\.com\/(?:share|embed)\/([\da-zA-Z]+)\/?/.exec(e);if(t&&t.length>1)return t[1]}function P(e){if("string"!=typeof e)throw new TypeError("sanitizeUrl expected a string, got "+typeof e);let t=e;return/'),B(U,this,Y).call(this,e)}}return e}},{key:"useContentPlaceholderFilter",value:function(e,t){return t.width&&t.height&&"html"!==t.type}},{key:"options",get:function(){return{gallery:this.element,pswpModule:this.loadPhotoSwipe,padding:this.paddingValue,showHideAnimationType:this.animationTypeValue,showAnimationDuration:this.animationDurationValue,hideAnimationDuration:this.animationDurationValue}}}])&&L(n.prototype,r),o&&L(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);function Y(e){e.w||(e.w=this.defaultVideoWidthValue),e.h||(e.h=this.defaultVideoHeightValue)}q=K,z="values",W={animationType:{type:String,default:"zoom"},animationDuration:{type:Number,default:150},padding:{type:Object,default:{top:20,bottom:20,left:20,right:20}},defaultVideoWidth:{type:Number,default:800},defaultVideoHeight:{type:Number,default:450}},(z=H(z))in q?Object.defineProperty(q,z,{value:W,enumerable:!0,configurable:!0,writable:!0}):q[z]=W},8925:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n\n
\n
\n\n',title:function(){return e.labelText}})}},{key:"disconnect",value:function(){this.tooltip.dispose()}},{key:"labelText",get:function(){return this.labelTarget.innerText}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);d=m,p=["label"],(h=f(h="targets"))in d?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p},2489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(9044),i=n(2754);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n=1200?(e.add("sidebar-collapsed"),i.Ay.set("trestle:sidebar","collapsed")):document.body.clientWidth>=768&&(e.add("sidebar-expanded"),i.Ay.set("trestle:sidebar","expanded"))}},{key:"scrollToActive",value:function(){if(this.hasInnerTarget){var e=this.element.querySelector(".active");if(e){var t=e.offsetTop+e.offsetHeight+this.scrollMarginValue;t>this.innerTarget.clientHeight&&(this.innerTarget.scrollTop=t-this.innerTarget.clientHeight)}}}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);f(h,"targets",["inner"]),f(h,"values",{scrollMargin:{type:Number,default:100}})},3431:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(9044),i=n(2754);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n0){var n=function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(g,this,y).call(this,t);e.appendChild(n)}}},{key:"focusFirstTabWithErrors",value:function(){this.element.querySelectorAll(".nav-link").forEach((function(e){e.querySelector(".badge-danger")&&i.Tab.getOrCreateInstance(e).show()}))}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);function y(e){var t=document.createElement("span");return t.classList.add("badge","badge-danger","badge-pill"),t.textContent=e,t}h=v,p="values",m={errorSelector:{type:String,default:'.is-invalid:not([type="hidden"])'}},(p=d(p))in h?Object.defineProperty(h,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[p]=m},8702:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(9044),i=n(4140),o=n(2754);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){for(var n=0;n=0;n--)if(!t[n].indexOf(e)){var r=t[n].replace(e,"");return decodeURIComponent(r)}return""},set:function(e,t){document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; path=/")},delete:function(e){document.cookie="".concat(e,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}}},2205:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(7557);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n\n \n',title:function(){return e.labelText}})}},{key:"disconnect",value:function(){this.tooltip.dispose()}},{key:"labelText",get:function(){return this.labelTarget.innerText}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);d=m,p=["label"],(h=f(h="targets"))in d?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p},2489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(9044),i=n(2754);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n=1200?(e.add("sidebar-collapsed"),i.Ay.set("trestle:sidebar","collapsed")):document.body.clientWidth>=768&&(e.add("sidebar-expanded"),i.Ay.set("trestle:sidebar","expanded"))}},{key:"scrollToActive",value:function(){if(this.hasInnerTarget){var e=this.element.querySelector(".active");if(e){var t=e.offsetTop+e.offsetHeight+this.scrollMarginValue;t>this.innerTarget.clientHeight&&(this.innerTarget.scrollTop=t-this.innerTarget.clientHeight)}}}}])&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);f(h,"targets",["inner"]),f(h,"values",{scrollMargin:{type:Number,default:100}})},3431:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(9044),i=n(2754);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var n=0;n0){var n=function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(g,this,y).call(this,t);e.appendChild(n)}}},{key:"focusFirstTabWithErrors",value:function(){this.element.querySelectorAll(".nav-link").forEach((function(e){e.querySelector(".badge-danger")&&i.Tab.getOrCreateInstance(e).show()}))}}],r&&s(n.prototype,r),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.default);function y(e){var t=document.createElement("span");return t.classList.add("badge","badge-danger","badge-pill"),t.textContent=e,t}h=v,p="values",m={errorSelector:{type:String,default:'.is-invalid:not([type="hidden"])'}},(p=d(p))in h?Object.defineProperty(h,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[p]=m},8702:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(9044),i=n(4140),o=n(2754);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){for(var n=0;n=0;n--)if(!t[n].indexOf(e)){var r=t[n].replace(e,"");return decodeURIComponent(r)}return""},set:function(e,t){document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; path=/")},delete:function(e){document.cookie="".concat(e,"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}}},2205:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(7557);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n\n