PageSourceSearch

https://www.innigroup.com/_next/static/chunks/988-6565cbdf7673978b.js?dpl=dpl_3h8xDSxU2ruWwXnbNEDQjfNMDii8

js innigroup.com collected 2026-10-05 06:05:22 UTC 251,490 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[988],{5845:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n,i=r(12115),s=r(52712),a=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||s.N;function o({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[s,o,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),s=i.useRef(r),o=i.useRef(t);return a(()=>{o.current=t},[t]),i.useEffect(()=>{s.current!==r&&(o.current?.(r),s.current=r)},[r,s]),[r,n,o]}({defaultProp:t,onChange:r}),u=void 0!==e,d=u?e:s;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[d,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[u,e,o,l])]}Symbol("RADIX:SYNC_STATE")},6167:()=>{},17588:()=>{},18063:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(82885),i=r(12115),s=r(77695);function a(){var e;let t=(0,n.M)(()=>({current:null,animations:[]})),r=(0,n.M)(()=>(0,s.W)(t));return e=()=>{t.animations.forEach(e=>e.stop())},(0,i.useEffect)(()=>()=>e(),[]),[t,r]}},19964:(e,t,r)=>{"use strict";var n=r(12115);t.A=function(e){n.useEffect(e,[])}},28905:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(12115),i=r(6101),s=r(52712),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef(null),u=n.useRef(e),d=n.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=o(l.current);d.current="mounted"===c?e:"none"},[c]),(0,s.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=d.current,i=o(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,s.N)(()=>{if(i){var e;let t,r=null!=(e=i.ownerDocument.defaultView)?e:window,n=e=>{let n=o(l.current).includes(e.animationName);if(e.target===i&&n&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},s=e=>{e.target===i&&(d.current=o(l.current))};return i.addEventListener("animationstart",s),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",s),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},30832:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",s="month",a="quarter",o="year",l="date",u="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","
1st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof w||!(!e||!e[m])},y=function e(t,r,n){var i;if(!t)return h;if("string"==typeof t){var s=t.toLowerCase();p[s]&&(i=s),r&&(p[s]=r,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;p[o]=t,i=o}return!n&&i&&(h=i),i||!n&&h},v=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},b={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,s),a=r-i<0,o=t.clone().add(n+(a?-1:1),s);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:s,y:o,w:i,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:a})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=y,b.i=g,b.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function f(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return b},h.isValid=function(){return this.$d.toString()!==u},h.isSame=function(e,t){var r=v(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return v(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<v(e)},h.$g=function(e,t,r){return b.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var u=this,d=!!b.u(a)||a,c=b.p(e),f=function(e,t){var r=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return d?r:r.endOf("day")},h=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},p=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case o:return d?f(1,0):f(31,11);case s:return d?f(1,m):f(0,m+1);case i:var v=this.$locale().weekStart||0,w=(p<v?p+7:p)-v;return f(d?g-w:g+(6-w),m);case"day":case l:return h(y+"Hours",0);case n:return h(y+"Minutes",1);case r:return h(y+"Seconds",2);case t:return h(y+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,a){var u,d=b.p(i),c="set"+(this.$u?"UTC":""),f=((u={}).day=c+"Date",u[l]=c+"Date",u[s]=c+"Month",u[o]=c+"FullYear",u[n]=c+"Hours",u[r]=c+"Minutes",u[t]=c+"Seconds",u[e]=c+"Milliseconds",u)[d],h="day"===d?this.$D+(a-this.$W):a;if(d===s||d===o){var p=this.clone().set(l,1);p.$d[f](h),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[b.p(e)]()},h.add=function(e,a){var l,u=this;e=Number(e);var d=b.p(a),c=function(t){var r=v(u);return b.w(r.date(r.date()+Math.round(t*e)),u)};if(d===s)return this.set(s,this.$M+e);if(d===o)return this.set(o,this.$y+e);if("day"===d)return c(1);if(d===i)return c(7);var f=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[d]||1,h=this.$d.getTime()+e*f;return b.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,a=this.$m,o=this.$M,l=r.weekdays,d=r.months,f=r.meridiem,h=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].slice(0,s)},p=function(e){return b.s(s%12||12,e,"0")},m=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(c,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return o+1;case"MM":return b.s(o+1,2,"0");case"MMM":return h(r.monthsShort,o,d,3);case"MMMM":return h(d,o);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(s,a,!0);case"A":return m(s,a,!1);case"m":return String(a);case"mm":return b.s(a,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,l,u){var d,c=this,f=b.p(l),h=v(e),p=(h.utcOffset()-this.utcOffset())*6e4,m=this-h,g=function(){return b.m(c,h)};switch(f){case o:d=g()/12;break;case s:d=g();break;case a:d=g()/3;break;case i:d=(m-p)/6048e5;break;case"day":d=(m-p)/864e5;break;case n:d=m/36e5;break;case r:d=m/6e4;break;case t:d=m/1e3;break;default:d=m}return u?d:b.a(d)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return p[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return b.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),_=w.prototype;return v.prototype=_,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",s],["$y",o],["$D",l]].forEac
1h(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,w,v),e.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=p[h],v.Ls=p,v.p={},v}()},36059:(e,t,r)=>{"use strict";r.d(t,{Dr:()=>x,FP:()=>b,Jd:()=>w,U:()=>m,UQ:()=>S,Uv:()=>u,XX:()=>C,e5:()=>y,gR:()=>p,iY:()=>_,lM:()=>v,lz:()=>g,mO:()=>l,nG:()=>f,oy:()=>d,pG:()=>h,q0:()=>o,v$:()=>c});var n=r(12115);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let a=["component"],o="heading",l="code_block",u="paragraph",d="blockquote",c="ordered_list",f="bullet_list",h="list_item",p="horizontal_rule",m="hard_break",g="image",y="bold",v="italic",b="strike",w="underline",_="code",x="link",S="styled";function C(e,t={}){if("object"==typeof e&&"doc"===e.type&&Array.isArray(e.content)){let r=t.blokResolvers,i=void 0===r?{}:r,o=t.defaultBlokResolver,l=void 0===o?function(){return null}:o,u=t.nodeResolvers,d=t.markResolvers,c=t.textResolver,f=void 0===c?function(e){return e}:c,h=s(s({},O),void 0===u?{}:u),p=s(s({},I),void 0===d?{}:d),m=0,g=function(e){return n.isValidElement(e)?n.cloneElement(e,{key:m++}):e},y=function(e){let t=e?e.map(v).filter(function(e){return null!=e}):null;return Array.isArray(t)&&0===t.length?null:t},v=function(e){if("blok"===e.type)return e.attrs.body.map(function(e){let t=e.component,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),n=i[t];return g(n?n(r):l(t,r))});{var t;let r;if("text"===e.type)r=f(e.text);else{let t=h[e.type];r=t?g(t(y(e.content),e.attrs)):null}return(null!=(t=e.marks)?t:[]).reduceRight(function(e,t){let r=p[t.type];return r?g(r(e,t.attrs)):e},r)}};return y(e.content)}if("string"==typeof e){let r=t.defaultStringResolver,n=t.textResolver;return(void 0===r?function(e){return e}:r)((void 0===n?function(e){return e}:n)(e))}return null}let k=function(e){return function(t){return null!=t?n.createElement(e,null,t):null}},T=function(e){return function(){return n.createElement(e)}},E=function(e){return function(t){return n.createElement(e,null,t)}},O={[o]:function(e,t){return n.createElement(`h${t.level}`,null,e)},[l]:function(e,t){let r={className:t.class},i=n.createElement("code",r,e);return n.createElement("pre",null,i)},[g]:function(e,t){return n.createElement("img",t,e)},[u]:k("p"),[d]:k("blockquote"),[c]:k("ol"),[f]:k("ul"),[h]:k("li"),[p]:T("hr"),[m]:T("br"),emoji:function(e,t){if(!t)return null;let r={"data-type":"emoji","data-name":t.name,emoji:t.emoji};if(t.emoji||!t.fallbackImage)return n.createElement("span",r,t.emoji);{let e={src:t.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle",alt:t.name},i=n.createElement("img",e);return n.createElement("span",r,i)}}},I={[x]:function(e,t){let r=t?{href:"email"===t.linktype?`mailto:${t.href}`:t.href,target:t.target}:{};return n.createElement("a",r,e)},[S]:function(e,t){let r=t?{className:t.class}:{};return n.createElement("span",r,e)},[y]:E("b"),[v]:E("i"),[b]:E("s"),[w]:E("u"),[_]:E("code"),subscript:E("sub"),superscript:E("sup"),highlight:function(e,t){let r=t?{style:{backgroundColor:t.color}}:{};return n.createElement("span",r,e)},textStyle:function(e,t){let r=t?.color?{style:{color:t.color}}:{};return n.createElement("span",r,e)},anchor:function(e,t){let r=t?{id:t.id}:{};return n.createElement("span",r,e)}}},36645:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(88229)._(r(67357));function i(e,t){var r;let i={};"function"==typeof e&&(i.loader=e);let s={...i,...t};return(0,n.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37602:(e,t,r)=>{"use strict";r.d(t,{z:()=>c});var n=r(64803),i=r(30532),s=r(69515);function a(e){return"number"==typeof e?e:parseFloat(e)}var o=r(12115),l=r(51508),u=r(8619),d=r(58829);function c(e,t={}){let{isStatic:r}=(0,o.useContext)(l.Q),f=()=>(0,n.S)(e)?e.get():e;if(r)return(0,d.G)(f);let h=(0,u.d)(f());return(0,o.useInsertionEffect)(()=>(function(e,t,r){let o,l,u=e.get(),d=null,c=u,f="string"==typeof u?u.replace(/[\d.-]/g,""):void 0,h=()=>{d&&(d.stop(),d=null)},p=()=>{h(),d=new i.s({keyframes:[a(e.get()),a(c)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:o})};return e.attach((t,r)=>(c=t,o=e=>{var t,n;return r((t=e,(n=f)?t+n:t))},s.Gt.postRender(p),e.get()),h),(0,n.S)(t)&&(l=t.on("change",t=>{var r,n;return e.set((r=t,(n=f)?r+n:r))}),e.on("destroy",l)),l})(h,e,t),[h,JSON.stringify(t)]),h}},39033:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(12115);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},43491:(e,t,r)=>{"use strict";r.d(t,{UC:()=>er,B8:()=>ee,bL:()=>Q,l9:()=>et});var n,i=r(12115),s=r(85185),a=r(46081),o=r(94971),l=r(95920),u=r(86266),d=r(6101),c=r(99708),f=r(95155),h=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap;var g=r(61285),y=r(63655),v=r(39033),b=r(5845),w=r(94315),_="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},S="RovingFocusGroup",[C,k,T]=function(e){let t=e+"CollectionProvider",[r,n]=(0,a.A)(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,f.jsx)(s,{scope:t,itemMap:a,collectionRef:n,children:r})};l.displayName=t;let u=e+"CollectionSlot",h=(0,c.TL)(u),p=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(u,r),s=(0,d.s)(t,i.collectionRef);return(0,f.jsx)(h,{ref:s,children:n})});p.displayName=u;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,c.TL)(m),v=i.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,a=i.useRef(null),l=(0,d.s)(t,a),u=o(m,r);return i.useEffect(()=>(u.itemMap.set(a,{ref:a,...s}),()=>void u.itemMap.delete(a))),(0,f.jsx)(y,{...{[g]:""},ref:l,children:n})});return v.displayName=m,[{Provider:l,Slot:p,ItemSlot:v},function(t){let r=o(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(S),[E,O]=(0,a.A)(S,[T]),[I,A]=E(S),j=i.forwardRef((e,t)=>(0,f.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(D,{...e,ref:t})})}));j.displayName=S;var D=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...m}=e,g=i.useRef(null),C=(0,d.s)(t,g),T=(0,w.jH)(o),[E,O]=(0,b.i)({prop:l,defaultProp:null!=u?u:null,onChange:c,caller:S}),[A,j]=i.useState(!1),D=(0,v.c)(h),M=k(r),N=i.useRef(!1),[P,L]=i.useState(0);return i.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(_,D),()=>e.removeEventListener(_,D)},[D]),(0,f.jsx)(I,{scope:r,orientation:n,dir:T,loop:a,currentTabStopId:E,onItemFocus:i.useCallback(e=>O(e),[O]),onItemShiftTab:i.useCallback(()=>j(!0),[]),onFocusableItemAdd:i.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>L(e=>e-1),[]),children:(0,f.jsx)(y.sG.div,{tabIndex:A||0===P?-1:0,"data-orientation":n,...m,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,s.m)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,s.m)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(_,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>
1e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),p)}}N.current=!1}),onBlur:(0,s.m)(e.onBlur,()=>j(!1))})})}),M="RovingFocusGroupItem",N=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,children:l,...u}=e,d=(0,g.B)(),c=o||d,h=A(M,r),p=h.currentTabStopId===c,m=k(r),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=h;return i.useEffect(()=>{if(n)return v(),()=>b()},[n,v,b]),(0,f.jsx)(C.ItemSlot,{scope:r,id:c,focusable:n,active:a,children:(0,f.jsx)(y.sG.span,{tabIndex:p?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,s.m)(e.onMouseDown,e=>{n?h.onItemFocus(c):e.preventDefault()}),onFocus:(0,s.m)(e.onFocus,()=>h.onItemFocus(c)),onKeyDown:(0,s.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return P[i]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=h.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>R(r))}}),children:"function"==typeof l?l({isCurrentTabStop:p,hasTabStop:null!=w}):l})})});N.displayName=M;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var L=r(28905),F="Tabs",[V,$]=(0,a.A)(F,[O]),Z=O(),[z,W]=V(F),B=i.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:s,orientation:a="horizontal",dir:o,activationMode:l="automatic",...u}=e,d=(0,w.jH)(o),[c,h]=(0,b.i)({prop:n,onChange:i,defaultProp:null!=s?s:"",caller:F});return(0,f.jsx)(z,{scope:r,baseId:(0,g.B)(),value:c,onValueChange:h,orientation:a,dir:d,activationMode:l,children:(0,f.jsx)(y.sG.div,{dir:d,"data-orientation":a,...u,ref:t})})});B.displayName=F;var G="TabsList",U=i.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,s=W(G,r),a=Z(r);return(0,f.jsx)(j,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:(0,f.jsx)(y.sG.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});U.displayName=G;var H="TabsTrigger",X=i.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=W(H,r),l=Z(r),u=Y(o.baseId,n),d=J(o.baseId,n),c=n===o.value;return(0,f.jsx)(N,{asChild:!0,...l,focusable:!i,active:c,children:(0,f.jsx)(y.sG.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...a,ref:t,onMouseDown:(0,s.m)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(n)}),onKeyDown:(0,s.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(n)}),onFocus:(0,s.m)(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(n)})})})});X.displayName=H;var q="TabsContent",K=i.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,forceMount:s,children:a,...o}=e,l=W(q,r),u=Y(l.baseId,n),d=J(l.baseId,n),c=n===l.value,h=i.useRef(c);return i.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(L.C,{present:s||c,children:r=>{let{present:n}=r;return(0,f.jsx)(y.sG.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:n&&a})}})});function Y(e,t){return"".concat(e,"-trigger-").concat(t)}function J(e,t){return"".concat(e,"-content-").concat(t)}K.displayName=q;var Q=B,ee=U,et=X,er=K},43969:(e,t,r)=>{"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{_:()=>n})},46081:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>s});var n=r(12115),i=r(95155);function s(e,t){let r=n.createContext(t),s=e=>{let{children:t,...s}=e,a=n.useMemo(()=>s,Object.values(s));return(0,i.jsx)(r.Provider,{value:a,children:t})};return s.displayName=e+"Provider",[s,function(i){let s=n.useContext(r);if(s)return s;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],s=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[function(t,s){let a=n.createContext(s),o=r.length;r=[...r,s];let l=t=>{let{scope:r,children:s,...l}=t,u=r?.[e]?.[o]||a,d=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:d,children:s})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[o]||a,u=n.useContext(l);if(u)return u;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(s,...t)]}},48862:()=>{},49489:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(84749);function i(e=.1,{startDelay:t=0,from:r=0,ease:s}={}){return(i,a)=>{let o=e*Math.abs(("number"==typeof r?r:function(e,t){if("first"===e)return 0;{let r=t-1;return"last"===e?r:r/2}}(r,a))-i);if(s){let t=a*e;o=(0,n.K)(s)(o/t)*t}return t+o}}},52712:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},52863:()=>{},55028:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(36645),i=r.n(n)},57383:(e,t,r)=>{"use strict";function n(e={}){let t,r=[],i=["select","slideFocus"];function s(){let{slideRegistry:e}=t.internalEngine(),n=e[t.selectedScrollSnap()];return n?n.map(e=>r[e]).reduce((e,t)=>
1Math.max(e,t),0):null}function a(){null!==s()&&(t.containerNode().style.height=`${s()}px`)}return{name:"autoHeight",options:e,init:function(e){let{options:{axis:n},slideRects:s}=(t=e).internalEngine();"y"!==n&&(r=s.map(e=>e.height),i.forEach(e=>t.on(e,a)),a())},destroy:function(){i.forEach(e=>t.off(e,a));let e=t.containerNode();e.style.height="",e.getAttribute("style")||e.removeAttribute("style")}}}r.d(t,{A:()=>n}),n.globalOptions=void 0},60760:(e,t,r)=>{"use strict";r.d(t,{N:()=>v});var n=r(95155),i=r(12115),s=r(90869),a=r(82885),o=r(97494),l=r(80845),u=r(27351),d=r(51508);class c extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,u.s)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function f(e){let{children:t,isPresent:r,anchorX:s}=e,a=(0,i.useId)(),o=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(d.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:i,right:d}=l.current;if(r||!o.current||!e||!t)return;o.current.dataset.motionPopId=a;let c=document.createElement("style");return u&&(c.nonce=u),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===s?"left: ".concat(i):"right: ".concat(d),"px !important;\n            top: ").concat(n,"px !important;\n          }\n        ")),()=>{document.head.contains(c)&&document.head.removeChild(c)}},[r]),(0,n.jsx)(c,{isPresent:r,childRef:o,sizeRef:l,children:i.cloneElement(t,{ref:o})})}let h=e=>{let{children:t,initial:r,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:d,mode:c,anchorX:h}=e,m=(0,a.M)(p),g=(0,i.useId)(),y=!0,v=(0,i.useMemo)(()=>(y=!1,{id:g,initial:r,isPresent:s,custom:u,onExitComplete:e=>
1{for(let t of(m.set(e,!0),m.values()))if(!t)return;o&&o()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[s,m,o]);return d&&y&&(v={...v}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[s]),i.useEffect(()=>{s||m.size||!o||o()},[s]),"popLayout"===c&&(t=(0,n.jsx)(f,{isPresent:s,anchorX:h,children:t})),(0,n.jsx)(l.t.Provider,{value:v,children:t})};function p(){return new Map}var m=r(32082);let g=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=e=>{let{children:t,custom:r,initial:l=!0,onExitComplete:u,presenceAffectsLayout:d=!0,mode:c="sync",propagate:f=!1,anchorX:p="left"}=e,[v,b]=(0,m.xQ)(f),w=(0,i.useMemo)(()=>y(t),[t]),_=f&&!v?[]:w.map(g),x=(0,i.useRef)(!0),S=(0,i.useRef)(w),C=(0,a.M)(()=>new Map),[k,T]=(0,i.useState)(w),[E,O]=(0,i.useState)(w);(0,o.E)(()=>{x.current=!1,S.current=w;for(let e=0;e<E.length;e++){let t=g(E[e]);_.includes(t)?C.delete(t):!0!==C.get(t)&&C.set(t,!1)}},[E,_.length,_.join("-")]);let I=[];if(w!==k){let e=[...w];for(let t=0;t<E.length;t++){let r=E[t],n=g(r);_.includes(n)||(e.splice(t,0,r),I.push(r))}return"wait"===c&&I.length&&(e=I),O(y(e)),T(w),null}let{forceRender:A}=(0,i.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:E.map(e=>{let t=g(e),i=(!f||!!v)&&(w===E||_.includes(t));return(0,n.jsx)(h,{isPresent:i,initial:(!x.current||!!l)&&void 0,custom:r,presenceAffectsLayout:d,mode:c,onExitComplete:i?void 0:()=>{if(!C.has(t))return;C.set(t,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(null==A||A(),O(S.current),f&&(null==b||b()),u&&u())},anchorX:p,children:e},t)})})}},61285:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(12115),s=r(52712),a=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),o=0;function l(e){let[t,r]=i.useState(a());return(0,s.N)(()=>{e||r(e=>e??String(o++))},[e]),e||(t?`radix-${t}`:"")}},62177:(e,t,r)=>{"use strict";r.d(t,{mN:()=>ex,xI:()=>j});var n=r(12115),i=e=>"checkbox"===e.type,s=e=>e instanceof Date,a=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&o(e)&&!s(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t,r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||n))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,y=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return g(n)||n===e?g(e[t])?r:e[t]:n},v=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),_=(e,t,r)=>{let n=-1,i=b(t)?[t]:w(t),s=i.length,a=s-1;for(;++n<s;){let t=i[n],s=r;if(n!==a){let r=e[t];
1s=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=s,e=e[t]}};let x={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},C={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},k=n.createContext(null),T=()=>n.useContext(k);var E=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let s in e)Object.defineProperty(i,s,{get:()=>(t._proxyFormState[s]!==S.all&&(t._proxyFormState[s]=!n||S.all),r&&(r[s]=!0),e[s])});return i};let O="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var I=e=>"string"==typeof e,A=(e,t,r,n,i)=>I(e)?(n&&t.watch.add(e),y(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),y(r,e))):(n&&(t.watchAll=!0),r);let j=e=>e.render(function(e){let t=T(),{name:r,disabled:i,control:s=t.control,shouldUnregister:a}=e,o=c(s._names.array,r),l=function(e){let t=T(),{control:r=t.control,name:i,defaultValue:s,disabled:a,exact:o}=e||{},l=n.useRef(s),[u,d]=n.useState(r._getWatch(i,l.current));return O(()=>r._subscribe({name:i,formState:{values:!0},exact:o,callback:e=>!a&&d(A(i,r._names,e.values||r._formValues,!1,l.current))}),[i,r,a,o]),n.useEffect(()=>r._removeUnmounted()),u}({control:s,name:r,defaultValue:y(s._formValues,r,y(s._defaultValues,r,e.defaultValue)),exact:!0}),d=function(e){let t=T(),{control:r=t.control,disabled:i,name:s,exact:a}=e||{},[o,l]=n.useState(r._formState),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return O(()=>r._subscribe({name:s,formState:u.current,exact:a,callback:e=>{i||l({...r._formState,...e})}}),[s,i,a]),n.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),n.useMemo(()=>E(o,r,u.current,!1),[o,r])}({control:s,name:r,exact:!0}),f=n.useRef(e),h=n.useRef(s.register(r,{...e.rules,value:l,...v(e.disabled)?{disabled:e.disabled}:{}})),m=n.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!y(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!y(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!y(d.validatingFields,r)},error:{enumerable:!0,get:()=>y(d.errors,r)}}),[d,r]),b=n.useCallback(e=>h.current.onChange({target:{value:u(e),name:r},type:x.CHANGE}),[r]),w=n.useCallback(()=>h.current.onBlur({target:{value:y(s._formValues,r),name:r},type:x.BLUR}),[r,s._formValues]),S=n.useCallback(e=>{let t=y(s._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[s._fields,r]),C=n.useMemo(()=>({name:r,value:l,...v(i)||d.disabled?{disabled:d.disabled||i}:{},onChange:b,onBlur:w,ref:S}),[r,i,d.disabled,b,w,S,l]);return n.useEffect(()=>{let e=s._options.shouldUnregister||a;s.register(r,{...f.current.rules,...v(f.current.disabled)?{disabled:f.current.disabled}:{}});let t=(e,t)=>{let r=y(s._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=p(y(s._options.defaultValues,r));_(s._defaultValues,r,e),g(y(s._formValues,r))&&_(s._formValues,r,e)}return o||s.register(r),()=>{(o?e&&!s._state.action:e)?s.unregister(r):t(r,!1)}},[r,s,o,a]),n.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),n.useMemo(()=>({field:C,formState:d,fieldState:m}),[C,d,m])}(e));var D=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},M=e=>Array.isArray(e)?e:[e],N=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},P=e=>a(e)||!o(e);function R(e,t){if(P(e)||P(t))return e===t;if(s(e)&&s(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(s(r)&&s(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!R(r,e):r!==e)return!1}}return!0}var L=e=>l(e)&&!Object.keys(e).length,F=e=>"file"===e.type,V=e=>"function"==typeof e,$=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Z=e=>"select-multiple"===e.type,z=e=>"radio"===e.type,W=e=>z(e)||i(e),B=e=>$(e)&&e.isConnected;function G(e,t){let r=Array.isArray(t)?t:b(t)?[t]:w(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=g(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,s=r[i];return n&&delete n[s],0!==i&&(l(n)&&L(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!g(e[t]))return!1;return!0}(n))&&G(e,r.slice(0,-1)),e}var U=e=>{for(let t in e)if(V(e[t]))return!0;return!1};function H(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!U(e[r])?(t[r]=Array.isArray(e[r])?[]:{},H(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var X=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!U(t[i])?g(r)||P(n[i])?n[i]=Array.isArray(t[i])?H(t[i],[]):{...H(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!R(t[i],r[i]);return n})(e,t,H(t));let q={value:!1,isValid:!1},K={value:!0,isValid:!0};var Y=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?K:{value:e[0].value,isValid:!0}:K:q}return q},J=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>g(e)?e:t?""===e?NaN:e?+e:e:r&&I(e)?new Date(e):n?n(e):e;let Q={isValid:!1,value:null};var ee=e=>Array.isArray(e)?e.reduce((e,t)=>
1t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Q):Q;function et(e){let t=e.ref;return F(t)?t.files:z(t)?ee(e.refs).value:Z(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?Y(e.refs).value:J(g(t.value)?e.ref.value:t.value,e)}var er=(e,t,r,n)=>{let i={};for(let r of e){let e=y(t,r);e&&_(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},en=e=>e instanceof RegExp,ei=e=>g(e)?e:en(e)?e.source:l(e)?en(e.value)?e.value.source:e.value:e,es=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched});let ea="AsyncFunction";var eo=e=>!!e&&!!e.validate&&!!(V(e.validate)&&e.validate.constructor.name===ea||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ea)),el=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),eu=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ed=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=y(e,i);if(r){let{_f:e,...s}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(ed(s,t))break}else if(l(s)&&ed(s,t))break}}};function ec(e,t,r){let n=y(e,r);if(n||b(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),s=y(t,n),a=y(e,n);if(s&&!Array.isArray(s)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ef=(e,t,r,n)=>{r(e);let{name:i,...s}=e;return L(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(e=>t[e]===(!n||S.all))},eh=(e,t,r)=>!e||!t||e===t||M(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),ep=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),em=(e,t)=>!m(y(e,t)).length&&G(e,t),eg=(e,t,r)=>{let n=M(y(e,r));return _(n,"root",t[r]),_(e,r,n),e},ey=e=>I(e);function ev(e,t,r="validate"){if(ey(e)||Array.isArray(e)&&e.every(ey)||v(e)&&!e)return{type:r,message:ey(e)?e:"",ref:t}}var eb=e=>l(e)&&!en(e)?e:{value:e,message:""},ew=async(e,t,r,n,s,o)=>{let{ref:u,refs:d,required:c,maxLength:f,minLength:h,min:p,max:m,pattern:b,validate:w,name:_,valueAsNumber:x,mount:S}=e._f,k=y(r,_);if(!S||t.has(_))return{};let T=d?d[0]:u,E=e=>{s&&T.reportValidity&&(T.setCustomValidity(v(e)?"":e||""),T.reportValidity())},O={},A=z(u),j=i(u),M=(x||F(u))&&g(u.value)&&g(k)||$(u)&&""===u.value||""===k||Array.isArray(k)&&!k.length,N=D.bind(null,_,n,O),P=(e,t,r,n=C.maxLength,i=C.minLength)=>{let s=e?t:r;O[_]={type:e?n:i,message:s,ref:u,...N(e?n:i,s)}};if(o?!Array.isArray(k)||!k.length:c&&(!(A||j)&&(M||a(k))||v(k)&&!k||j&&!Y(d).isValid||A&&!ee(d).isValid)){let{value:e,message:t}=ey(c)?{value:!!c,message:c}:eb(c);if(e&&(O[_]={type:C.required,message:t,ref:T,...N(C.required,t)},!n))return E(t),O}if(!M&&(!a(p)||!a(m))){let e,t,r=eb(m),i=eb(p);if(a(k)||isNaN(k)){let n=u.valueAsDate||new Date(k),s=e=>new Date(new Date().toDateString()+" "+e),a="time"==u.type,o="week"==u.type;I(r.value)&&k&&(e=a?s(k)>s(r.value):o?k>r.value:n>new Date(r.value)),I(i.value)&&k&&(t=a?s(k)<s(i.value):o?k<i.value:n<new Date(i.value))}else{let n=u.valueAsNumber||(k?+k:k);a(r.value)||(e=n>r.value),a(i.value)||(t=n<i.value)}if((e||t)&&(P(!!e,r.message,i.message,C.max,C.min),!n))return E(O[_].message),O}if((f||h)&&!M&&(I(k)||o&&Array.isArray(k))){let e=eb(f),t=eb(h),r=!a(e.value)&&k.length>+e.value,i=!a(t.value)&&k.length<+t.value;if((r||i)&&(P(r,e.message,t.message),!n))return E(O[_].message),O}if(b&&!M&&I(k)){let{value:e,message:t}=eb(b);if(en(e)&&!k.match(e)&&(O[_]={type:C.pattern,message:t,ref:u,...N(C.pattern,t)},!n))return E(t),O}if(w){if(V(w)){let e=ev(await w(k,r),T);if(e&&(O[_]={...e,...N(C.validate,e.message)},!n))return E(e.message),O}else if(l(w)){let e={};for(let t in w){if(!L(e)&&!n)break;let i=ev(await w[t](k,r),T,t);i&&(e={...i,...N(t,i.message)},E(i.message),n&&(O[_]=e))}if(!L(e)&&(O[_]={ref:T,...e},!n))return O}}return E(!0),O};let e_={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ex(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[o,d]=n.useState({isDirty:!1,isValidating:!1,isLoading:V(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:V(e.defaultValues)?void 0:e.defaultValues});!t.current&&(t.current={...e.formControl?e.formControl:function(e={}){let t,r={...e_,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:V(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},d=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:p(d),b={action:!1,mount:!1,watch:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={...k},E={array:N(),state:N()},O=r.criteriaMode===S.all,j=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},D=async e=>{if(!r.disabled&&(k.isValid||T.isValid||e)){let e=r.resolver?L((await K()).errors):await Q(o,!0);e!==n.isValid&&E.state.next({isValid:e})}},P=(e,t)=>{!r.disabled&&(k.isValidating||k.validatingFields||T.isValidating||T.validatingFields)&&((e||Array.from(w.mount)).forEac
1h(e=>{e&&(t?_(n.validatingFields,e,t):G(n.validatingFields,e))}),E.state.next({validatingFields:n.validatingFields,isValidating:!L(n.validatingFields)}))},z=(e,t)=>{_(n.errors,e,t),E.state.next({errors:n.errors})},U=(e,t,r,n)=>{let i=y(o,e);if(i){let s=y(f,e,g(r)?y(d,e):r);g(s)||n&&n.defaultChecked||t?_(f,e,t?s:et(i._f)):ea(e,s),b.mount&&D()}},H=(e,t,i,s,a)=>{let o=!1,l=!1,u={name:e};if(!r.disabled){if(!i||s){(k.isDirty||T.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=ee(),o=l!==u.isDirty);let r=R(y(d,e),t);l=!!y(n.dirtyFields,e),r?G(n.dirtyFields,e):_(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,o=o||(k.dirtyFields||T.dirtyFields)&&!r!==l}if(i){let t=y(n.touchedFields,e);t||(_(n.touchedFields,e,i),u.touchedFields=n.touchedFields,o=o||(k.touchedFields||T.touchedFields)&&t!==i)}o&&a&&E.state.next(u)}return o?u:{}},q=(e,i,s,a)=>{let o=y(n.errors,e),l=(k.isValid||T.isValid)&&v(i)&&n.isValid!==i;if(r.delayError&&s?(t=j(()=>z(e,s)))(r.delayError):(clearTimeout(C),t=null,s?_(n.errors,e,s):G(n.errors,e)),(s?!R(o,s):o)||!L(a)||l){let t={...a,...l&&v(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},E.state.next(t)}},K=async e=>{P(e,!0);let t=await r.resolver(f,r.context,er(e||w.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return P(e),t},Y=async e=>{let{errors:t}=await K(e);if(e)for(let r of e){let e=y(t,r);e?_(n.errors,r,e):G(n.errors,r)}else n.errors=t;return t},Q=async(e,t,i={valid:!0})=>{for(let s in e){let a=e[s];if(a){let{_f:e,...o}=a;if(e){let o=w.array.has(e.name),l=a._f&&eo(a._f);l&&k.validatingFields&&P([s],!0);let u=await ew(a,w.disabled,f,O,r.shouldUseNativeValidation&&!t,o);if(l&&k.validatingFields&&P([s]),u[e.name]&&(i.valid=!1,t))break;t||(y(u,e.name)?o?eg(n.errors,u,e.name):_(n.errors,e.name,u[e.name]):G(n.errors,e.name))}L(o)||await Q(o,t,i)}}return i.valid},ee=(e,t)=>!r.disabled&&(e&&t&&_(f,e,t),!R(eC(),d)),en=(e,t,r)=>A(e,w,{...b.mount?f:g(t)?d:I(e)?{[e]:t}:t},r,t),ea=(e,t,r={})=>{let n=y(o,e),s=t;if(n){let r=n._f;r&&(r.disabled||_(f,e,J(t,r)),s=$(r.ref)&&a(t)?"":t,Z(r.ref)?[...r.ref.options].forEach(e=>e.selected=s.includes(e.value)):r.refs?i(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):r.refs.forEach(e=>e.checked=e.value===s):F(r.ref)?r.ref.value="":(r.ref.value=s,r.ref.type||E.state.next({name:e,values:p(f)})))}(r.shouldDirty||r.shouldTouch)&&H(e,s,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eS(e)},ey=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let i=t[n],a=`${e}.${n}`,u=y(o,a);(w.array.has(e)||l(i)||u&&!u._f)&&!s(i)?ey(a,i,r):ea(a,i,r)}},ev=(e,t,r={})=>{let i=y(o,e),s=w.array.has(e),l=p(t);_(f,e,l),s?(E.array.next({name:e,values:p(f)}),(k.isDirty||k.dirtyFields||T.isDirty||T.dirtyFields)&&r.shouldDirty&&E.state.next({name:e,dirtyFields:X(d,f),isDirty:ee(e,l)})):!i||i._f||a(l)?ea(e,l,r):ey(e,l,r),eu(e,w)&&E.state.next({...n}),E.state.next({name:b.mount?e:void 0,values:p(f)})},eb=async e=>{b.mount=!0;let i=e.target,a=i.name,l=!0,d=y(o,a),c=e=>{l=Number.isNaN(e)||s(e)&&isNaN(e.getTime())||R(e,y(f,a,e))},h=es(r.mode),m=es(r.reValidateMode);if(d){let s,g,v=i.type?et(d._f):u(e),b=e.type===x.BLUR||e.type===x.FOCUS_OUT,S=!el(d._f)&&!r.resolver&&!y(n.errors,a)&&!d._f.deps||ep(b,y(n.touchedFields,a),n.isSubmitted,m,h),C=eu(a,w,b);_(f,a,v),b?(d._f.onBlur&&d._f.onBlur(e),t&&t(0)):d._f.onChange&&d._f.onChange(e);let I=H(a,v,b),A=!L(I)||C;if(b||E.state.next({name:a,type:e.type,values:p(f)}),S)return(k.isValid||T.isValid)&&("onBlur"===r.mode?b&&D():b||D()),A&&E.state.next({name:a,...C?{}:I});if(!b&&C&&E.state.next({...n}),r.resolver){let{errors:e}=await K([a]);if(c(v),l){let t=ec(n.errors,o,a),r=ec(e,o,t.name||a);s=r.error,a=r.name,g=L(e)}}else P([a],!0),s=(await ew(d,w.disabled,f,O,r.shouldUseNativeValidation))[a],P([a]),c(v),l&&(s?g=!1:(k.isValid||T.isValid)&&(g=await Q(o,!0)));l&&(d._f.deps&&eS(d._f.deps),q(a,g,s,I))}},ex=(e,t)=>{if(y(n.errors,t)&&e.focus)return e.focus(),1},eS=async(e,t={})=>{let i,s,a=M(e);if(r.resolver){let t=await Y(g(e)?e:a);i=L(t),s=e?!a.some(e=>y(t,e)):i}else e?((s=(await Promise.all(a.map(async e=>{let t=y(o,e);return await Q(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&D():s=i=await Q(o);return E.state.next({...!I(e)||(k.isValid||T.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!s&&ed(o,ex,e?a:w.mount),s},eC=e=>{let t={...b.mount?f:d};return g(e)?t:I(e)?y(t,e):e.map(e=>y(t,e))},ek=(e,t)=>({invalid:!!y((t||n).errors,e),isDirty:!!y((t||n).dirtyFields,e),error:y((t||n).errors,e),isValidating:!!y(n.validatingFields,e),isTouched:!!y((t||n).touchedFields,e)}),eT=(e,t,r)=>{let i=(y(o,e,{_f:{}})._f||{}).ref,{ref:s,message:a,type:l,...u}=y(n.errors,e)||{};_(n.errors,e,{...u,...t,ref:i}),E.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eE=e=>E.state.subscribe({next:t=>{eh(e.name,t.name,e.exact)&&ef(t,e.formState||k,eP,e.reRenderRoot)&&e.callback({values:{...f},...n,...t})}}).unsubscribe,eO=(e,t={})=>{for(let i of e?M(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||(G(o,i),G(f,i)),t.keepError||G(n.errors,i),t.keepDirty||G(n.dirtyFields,i),t.keepTouched||G(n.touchedFields,i),t.keepIsValidating||G(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||G(d,i);E.state.next({values:p(f)}),E.state.next({...n,...!t.keepDirty?{}:{isDirty:ee()}}),t.keepIsValid||D()},eI=({disabled:e,name:t})=>{(v(e)&&b.mount||e||w.disabled.has(t))&&(e?w.disabled.add(t):w.disabled.delete(t))},eA=(e,t={})=>{let n=y(o,e),i=v(t.disabled)||v(r.disabled);return _(o,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),n?eI({disabled:v(t.disabled)?t.disabled:r.disabled,name:e}):U(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{}
1,name:e,onChange:eb,onBlur:eb,ref:i=>{if(i){eA(e,t),n=y(o,e);let r=g(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=W(r),a=n._f.refs||[];(s?a.find(e=>e===r):r===n._f.ref)||(_(o,e,{_f:{...n._f,...s?{refs:[...a.filter(B),r,...Array.isArray(y(d,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),U(e,!1,void 0,r))}else(n=y(o,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(c(w.array,e)&&b.action)&&w.unMount.add(e)}}},ej=()=>r.shouldFocusError&&ed(o,ex,w.mount),eD=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=p(f);if(E.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await K();n.errors=e,a=t}else await Q(o);if(w.disabled.size)for(let e of w.disabled)_(a,e,void 0);if(G(n.errors,"root"),L(n.errors)){E.state.next({errors:{}});try{await e(a,i)}catch(e){s=e}}else t&&await t({...n.errors},i),ej(),setTimeout(ej);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:L(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},eM=(e,t={})=>{let i=e?p(e):d,s=p(i),a=L(e),l=a?d:s;if(t.keepDefaultValues||(d=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(X(d,f))])))y(n.dirtyFields,e)?_(l,e,y(f,e)):ev(e,y(l,e));else{if(h&&g(e))for(let e of w.mount){let t=y(o,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){let t=e.closest("form");if(t){t.reset();break}}}}for(let e of w.mount)ev(e,y(l,e))}f=p(l),E.array.next({values:{...l}}),E.state.next({values:{...l}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!k.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!r.shouldUnregister,E.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!a&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!R(e,d))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&f?X(d,f):n.dirtyFields:t.keepDefaultValues&&e?X(d,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eN=(e,t)=>eM(V(e)?e(f):e,t),eP=e=>{n={...n,...e}},eR={control:{register:eA,unregister:eO,getFieldState:ek,handleSubmit:eD,setError:eT,_subscribe:eE,_runSchema:K,_getWatch:en,_getDirty:ee,_setValid:D,_setFieldArray:(e,t=[],i,s,a=!0,l=!0)=>{if(s&&i&&!r.disabled){if(b.action=!0,l&&Array.isArray(y(o,e))){let t=i(y(o,e),s.argA,s.argB);a&&_(o,e,t)}if(l&&Array.isArray(y(n.errors,e))){let t=i(y(n.errors,e),s.argA,s.argB);a&&_(n.errors,e,t),em(n.errors,e)}if((k.touchedFields||T.touchedFields)&&l&&Array.isArray(y(n.touchedFields,e))){let t=i(y(n.touchedFields,e),s.argA,s.argB);a&&_(n.touchedFields,e,t)}(k.dirtyFields||T.dirtyFields)&&(n.dirtyFields=X(d,f)),E.state.next({name:e,isDirty:ee(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _(f,e,t)},_setDisabledField:eI,_setErrors:e=>{n.errors=e,E.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>m(y(b.mount?f:d,e,r.shouldUnregister?y(d,e,[]):[])),_reset:eM,_resetDefaultValues:()=>V(r.defaultValues)&&r.defaultValues().then(e=>{eN(e,r.resetOptions),E.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of w.unMount){let t=y(o,e);t&&(t._f.refs?t._f.refs.every(e=>!B(e)):!B(t._f.ref))&&eO(e)}w.unMount=new Set},_disableForm:e=>{v(e)&&(E.state.next({disabled:e}),ed(o,(t,r)=>{let n=y(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:E,_proxyFormState:k,get _fields(){return o},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return d},get _names(){return w},set _names(value){w=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(b.mount=!0,T={...T,...e.formState},eE({...e,formState:T})),trigger:eS,register:eA,handleSubmit:eD,watch:(e,t)=>V(e)?E.state.subscribe({next:r=>e(en(void 0,t),r)}):en(e,t,!0),setValue:ev,getValues:eC,reset:eN,resetField:(e,t={})=>{y(o,e)&&(g(t.defaultValue)?ev(e,p(y(d,e))):(ev(e,t.defaultValue),_(d,e,p(t.defaultValue))),t.keepTouched||G(n.touchedFields,e),t.keepDirty||(G(n.dirtyFields,e),n.isDirty=t.defaultValue?ee(e,p(y(d,e))):ee()),!t.keepError&&(G(n.errors,e),k.isValid&&D()),E.state.next({...n}))},clearErrors:e=>
1{e&&M(e).forEach(e=>G(n.errors,e)),E.state.next({errors:e?n.errors:{}})},unregister:eO,setError:eT,setFocus:(e,t={})=>{let r=y(o,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&V(e.select)&&e.select())}},getFieldState:ek};return{...eR,formControl:eR}}(e),formState:o},e.formControl&&e.defaultValues&&!V(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));let f=t.current.control;return f._options=e,O(()=>{let e=f._subscribe({formState:f._proxyFormState,callback:()=>d({...f._formState}),reRenderRoot:!0});return d(e=>({...e,isReady:!0})),f._formState.isReady=!0,e},[f]),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{e.mode&&(f._options.mode=e.mode),e.reValidateMode&&(f._options.reValidateMode=e.reValidateMode),e.errors&&!L(e.errors)&&f._setErrors(e.errors)},[f,e.errors,e.mode,e.reValidateMode]),n.useEffect(()=>{e.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,e.shouldUnregister]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==o.isDirty&&f._subjects.state.next({isDirty:e})}},[f,o.isDirty]),n.useEffect(()=>{e.values&&!R(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,d(e=>({...e}))):f._resetDefaultValues()},[f,e.values]),n.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),t.current.formState=E(o,f),t.current}},63655:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>o});var n=r(12115),i=r(47650),s=r(99708),a=r(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,s.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:t,{...s,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},67357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(95155),i=r(12115),s=r(62146);function a(e){return{default:e&&"default"in e?e.default:e}}r(10255);let o={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...o,...e},r=(0,i.lazy)(()=>t.loader().then(a)),l=t.loading;function u(e){let a=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...o?{fallback:a}:{},children:d})}return u.displayName="LoadableComponent",u}},68563:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 5,627 bytes, line 1
1ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},s={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"};let a=function(){function e(e,t){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=e,this.$LG=t,this}return e.prototype.init=function(){this.settings=n(n({},i),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},e.prototype.build=function(){var e=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(t){var r=e.$LG(t.target);r.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(e.thumbClickable&&!e.core.lgBusy){var t=parseInt(r.attr("data-lg-item-id"));e.core.slide(t,!1,!0,!1)}},50)}),this.core.LGel.on(s.beforeSlide+".thumb",function(t){var r=t.detail.index;e.animateThumb(r)}),this.core.LGel.on(s.beforeOpen+".thumb",function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth}),this.core.LGel.on(s.updateSlides+".thumb",function(){e.rebuildThumbnails()}),this.core.LGel.on(s.containerResize+".thumb",function(){e.core.lgOpened&&setTimeout(function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth,e.animateThumb(e.core.index),e.thumbOuterWidth=e.core.outer.get().offsetWidth},50)})},e.prototype.setThumbMarkup=function(){var e="lg-thumb-outer ";this.settings.alignThumbnails&&(e+="lg-thumb-align-"+this.settings.alignThumbnails);var t='<div class="'+e+'">\n        <div class="lg-thumb lg-group">\n        </div>\n        </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(t):this.core.outer.append(t),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},e.prototype.enableThumbDrag=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},r=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(n){e.thumbTotalWidth>e.thumbOuterWidth&&(n.preventDefault(),t.cords.startX=n.pageX,t.startTime=new Date,e.thumbClickable=!1,r=!0,e.core.outer.get().scrollLeft+=1,e.core.outer.get().scrollLeft-=1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(n){e.core.lgOpened&&r&&(t.cords.endX=n.pageX,t=e.onThumbTouchMove(t))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){e.core.lgOpened&&(t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0,r&&(r=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},e.prototype.enableThumbSwipe=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(r){e.thumbTotalWidth>e.thumbOuterWidth&&(r.preventDefault(),t.cords.startX=r.targetTouches[0].pageX,e.thumbClickable=!1,t.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(r){e.thumbTotalWidth>e.thumbOuterWidth&&(r.preventDefault(),t.cords.endX=r.targetTouches[0].pageX,t=e.onThumbTouchMove(t))}),this.$lgThumb.on("touchend.lg",function(){t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0})},e.prototype.rebuildThumbnails=function(){var e=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){e.thumbTotalWidth=e.core.galleryItems.length*(e.settings.thumbWidth+e.settings.thumbMargin),e.$lgThumb.css("width",e.thumbTotalWidth+"px"),e.$lgThumb.empty(),e.setThumbItemHtml(e.core.galleryItems),e.animateThumb(e.core.index)},50),setTimeout(function(){e.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},e.prototype.setTranslate=function(e){this.$lgThumb.css("transform","translate3d(-"+e+"px, 0px, 0px)")},e.prototype.getPossibleTransformX=function(e){return e>this.thumbTotalWidth-this.thumbOuterWidth&&(e=this.thumbTotalWidth-this.thumbOuterWidth),e<0&&(e=0),e},e.prototype.animateThumb=function(e){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var t=0;switch(this.settings.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*e-1-t,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},e.prototype.onThumbTouchMove=function(e){return e.newTranslateX=this.translateX,e.
1isMoved=!0,e.touchMoveTime=new Date().valueOf(),e.newTranslateX-=e.cords.endX-e.cords.startX,e.newTranslateX=this.getPossibleTransformX(e.newTranslateX),this.setTranslate(e.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),e},e.prototype.onThumbTouchEnd=function(e){e.isMoved=!1,e.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var t=e.endTime.valueOf()-e.startTime.valueOf(),r=e.cords.endX-e.cords.startX,n=Math.abs(r)/t;return n>.15&&e.endTime.valueOf()-e.touchMoveTime<30?((n+=1)>2&&(n+=1),n+=n*(Math.abs(r)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(n-1,2)+"settings"),r*=n,this.translateX=this.getPossibleTransformX(this.translateX-r),this.setTranslate(this.translateX)):this.translateX=e.newTranslateX,Math.abs(e.cords.endX-e.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),e},e.prototype.getThumbHtml=function(e,t,r){var n,i=this.core.galleryItems[t].__slideVideoInfo||{};n=i.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+i.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":e;var s=document.createElement("div");s.setAttribute("data-lg-item-id",t+""),s.className="lg-thumb-item "+(t===this.core.index?"active":""),s.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var a=document.createElement("img");return a.alt=r||"",a.setAttribute("data-lg-item-id",t+""),a.src=n,s.appendChild(a),s},e.prototype.setThumbItemHtml=function(e){for(var t=0;t<e.length;t++){var r=this.getThumbHtml(e[t].thumb,t,e[t].alt);this.$lgThumb.append(r)}},e.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},e.prototype.manageActiveClassOnSlideChange=function(){var e=this;this.core.LGel.on(s.beforeSlide+".thumb",function(t){var r=e.core.outer.find(".lg-thumb-item"),n=t.detail.index;r.removeClass("active"),r.eq(n).addClass("active")})},e.prototype.toggleThumbBar=function(){var e=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){e.core.outer.toggleClass("lg-components-open")}))},e.prototype.thumbKeyPress=function(){var e=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(t){e.core.lgOpened&&e.settings.toggleThumb&&(38===t.keyCode?(t.preventDefault(),e.core.outer.addClass("lg-components-open")):40===t.keyCode&&(t.preventDefault(),e.core.outer.removeClass("lg-components-open")))})},e.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},e}()},71153:(e,t,r)=>{"use strict";let n;r.d(t,{z:()=>d});var i,s,a,o,l,u,d={};r.r(d),r.d(d,{BRAND:()=>eR,DIRTY:()=>k,EMPTY_PATH:()=>
1_,INVALID:()=>C,NEVER:()=>tv,OK:()=>T,ParseStatus:()=>S,Schema:()=>R,ZodAny:()=>eu,ZodArray:()=>eh,ZodBigInt:()=>en,ZodBoolean:()=>ei,ZodBranded:()=>eL,ZodCatch:()=>eN,ZodDate:()=>es,ZodDefault:()=>eM,ZodDiscriminatedUnion:()=>ey,ZodEffects:()=>eA,ZodEnum:()=>eE,ZodError:()=>m,ZodFirstPartyTypeKind:()=>u,ZodFunction:()=>eS,ZodIntersection:()=>ev,ZodIssueCode:()=>h,ZodLazy:()=>eC,ZodLiteral:()=>ek,ZodMap:()=>e_,ZodNaN:()=>eP,ZodNativeEnum:()=>eO,ZodNever:()=>ec,ZodNull:()=>el,ZodNullable:()=>eD,ZodNumber:()=>er,ZodObject:()=>ep,ZodOptional:()=>ej,ZodParsedType:()=>c,ZodPipeline:()=>eF,ZodPromise:()=>eI,ZodReadonly:()=>eV,ZodRecord:()=>ew,ZodSchema:()=>R,ZodSet:()=>ex,ZodString:()=>et,ZodSymbol:()=>ea,ZodTransformer:()=>eA,ZodTuple:()=>eb,ZodType:()=>R,ZodUndefined:()=>eo,ZodUnion:()=>em,ZodUnknown:()=>ed,ZodVoid:()=>ef,addIssueToContext:()=>x,any:()=>eQ,array:()=>e5,bigint:()=>eH,boolean:()=>eX,coerce:()=>ty,custom:()=>eZ,date:()=>eq,datetimeRegex:()=>ee,defaultErrorMap:()=>g,discriminatedUnion:()=>e6,effect:()=>tu,enum:()=>ta,function:()=>tn,getErrorMap:()=>b,getParsedType:()=>f,instanceof:()=>eW,intersection:()=>e8,isAborted:()=>E,isAsync:()=>A,isDirty:()=>O,isValid:()=>I,late:()=>ez,lazy:()=>ti,literal:()=>ts,makeIssue:()=>w,map:()=>tt,nan:()=>eU,nativeEnum:()=>to,never:()=>e1,null:()=>eJ,nullable:()=>tc,number:()=>eG,object:()=>e9,objectUtil:()=>s,oboolean:()=>tg,onumber:()=>tm,optional:()=>td,ostring:()=>tp,pipeline:()=>th,preprocess:()=>tf,promise:()=>tl,quotelessJson:()=>p,record:()=>te,set:()=>tr,setErrorMap:()=>v,strictObject:()=>e4,string:()=>eB,symbol:()=>eK,transformer:()=>tu,tuple:()=>e7,undefined:()=>eY,union:()=>e3,unknown:()=>e0,util:()=>i,void:()=>e2}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(i||(i={})),(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let c=i.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return c.undefined;case"string":return c.string;case"number":return Number.isNaN(e)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":if(Array.isArray(e))return c.array;if(null===e)return c.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return c.promise;if("undefined"!=typeof Map&&e instanceof Map)return c.map;if("undefined"!=typeof Set&&e instanceof Set)return c.set;if("undefined"!=typeof Date&&e instanceof Date)return c.date;return c.object;default:return c.unknown}}
1,h=i.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),p=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class m extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof m))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,i.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let g=(e,t)=>{let r;switch(e.code){case h.invalid_type:r=e.received===c.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case h.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.joinValues(e.keys,", ")}`;break;case h.invalid_union:r="Invalid input";break;case h.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.joinValues(e.options)}`;break;case h.invalid_enum_value:r=`Invalid enum value. Expected ${i.joinValues(e.options)}, received '${e.received}'`;break;case h.invalid_arguments:r="Invalid function arguments";break;case h.invalid_return_type:r="Invalid function return type";break;case h.invalid_date:r="Invalid date";break;case h.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case h.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case h.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case h.custom:r="Invalid input";break;case h.invalid_intersection_types:r="Intersection results could not be merged";break;case h.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case h.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.assertNever(e)}return{message:r}},y=g;function v(e){y=e}function b(){return y}let w=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s};if(void 0!==i.message)return{...i,path:s,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}},_=[];function x(e,t){let r=y,n=w({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===g?void 0:g].filter(e=>!!e)});e.common.issues.push(n)}class S{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return C;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return S.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let C=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),T=e=>
1({status:"valid",value:e}),E=e=>"aborted"===e.status,O=e=>"dirty"===e.status,I=e=>"valid"===e.status,A=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(a||(a={}));var j=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},D=function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};class M{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let N=(e,t)=>{if(I(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new m(e.common.issues);return this._error=t,this._error}}};function P(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:s}=e;return"invalid_enum_value"===t.code?{message:s??i.defaultError}:void 0===i.data?{message:s??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:s??r??i.defaultError}},description:i}}class R{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new S,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(A(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parseSync({data:e,path:r.path,parent:r});return N(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return I(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>I(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parse({data:e,path:r.path,parent:r});return N(r,await (A(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),s=()=>n.addIssue({code:h.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eA({schema:this,typeName:u.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ej.create(this,this._def)}nullable(){return eD.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eh.create(this)}promise(){return eI.create(this,this._def)}or(e){return em.create([this,e],this._def)}and(e){return ev.create(this,e,this._def)}transform(e){return new eA({...P(this._def),schema:this,typeName:u.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eM({...P(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:u.ZodDefault})}brand(){return new eL({typeName:u.ZodBranded,type:this,...P(this._def)})}catch(e){return new eN({...P(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:u.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eF.create(this,e)}readonly(){return eV.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let L=/^c[^\s-]{8,}
vendor: 26,348 bytes, line 1
1$/i,F=/^[0-9a-z]+$/,V=/^[0-9A-HJKMNP-TV-Z]{26}$/i,$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Z=/^[a-z0-9_-]{21}$/i,z=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,W=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,G=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,H=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,X=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,q=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,K=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Y="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",J=RegExp(`^${Y}$`);function Q(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function ee(e){let t=`${Y}T${Q(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class et extends R{_parse(e){var t,r,s,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.string){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.string,received:t.parsedType}),C}let l=new S;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(x(o=this._getOrReturnCtx(e,o),{code:h.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("max"===u.kind)e.data.length>u.value&&(x(o=this._getOrReturnCtx(e,o),{code:h.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("length"===u.kind){let t=e.data.length>u.value,r=e.data.length<u.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?x(o,{code:h.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):r&&x(o,{code:h.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),l.dirty())}else if("email"===u.kind)B.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"email",code:h.invalid_string,message:u.message}),l.dirty());else if("emoji"===u.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:h.invalid_string,message:u.message}),l.dirty());else if("uuid"===u.kind)$.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:h.invalid_string,message:u.message}),l.dirty());else if("nanoid"===u.kind)Z.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:h.invalid_string,message:u.message}),l.dirty());else if("cuid"===u.kind)L.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:h.invalid_string,message:u.message}),l.dirty());else if("cuid2"===u.kind)F.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:h.invalid_string,message:u.message}),l.dirty());else if("ulid"===u.kind)V.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:h.invalid_string,message:u.message}),l.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{x(o=this._getOrReturnCtx(e,o),{validation:"url",code:h.invalid_string,message:u.message}),l.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"regex",code:h.invalid_string,message:u.message}),l.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),l.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:{startsWith:u.value},message:u.message}),l.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:{endsWith:u.value},message:u.message}),l.dirty()):"datetime"===u.kind?ee(u).test(e.data)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:"datetime",message:u.message}),l.dirty()):"date"===u.kind?J.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:"date",message:u.message}),l.dirty()):"time"===u.kind?RegExp(`^${Q(u)}$`).test(e.data)||(x(o=this._getOrReturnCtx(e,o),{code:h.invalid_string,validation:"time",message:u.message}),l.dirty()):"duration"===u.kind?W.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"duration",code:h.invalid_string,message:u.message}),l.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(r=u.version)||!r)&&G.test(t)||("v6"===r||!r)&&H.test(t))&&1&&(x(o=this._getOrReturnCtx(e,o),{validation:"ip",code:h.invalid_string,message:u.message}),l.dirty())):"jwt"===u.kind?!function(e,t){if(!z.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(x(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:h.invalid_string,message:u.message}),l.dirty()):"cidr"===u.kind?(s=e.data,!(("v4"===(a=u.version)||!a)&&U.test(s)||("v6"===a||!a)&&X.test(s))&&1&&(x(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:h.invalid_string,message:u.message}),l.dirty())):"base64"===u.kind?q.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"base64",code:h.invalid_string,message:u.message}),l.dirty()):"base64url"===u.kind?K.test(e.data)||(x(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:h.invalid_string,message:u.message}),l.dirty()):i.assertNever(u);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:h.invalid_string,...a.errToObj(r)})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...a.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...a.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...a.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...a.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...a.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...a.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...a.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...a.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...a.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errToObj(t)})}nonempty(e){return this.min(1,a.errToObj(e))}trim(){return new et({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new et({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new et({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}et.create=e=>new et({checks:[],typeName:u.ZodString,coerce:e?.coerce??!1,...P(e)});class er extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.number){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.number,received:t.parsedType}),C}let r=new S;for(let n of this._def.checks)"int"===n.kind?i.isInteger(e.data)||(x(t=this._getOrReturnCtx(e,t),{code:h.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:h.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(x(t=this._getOrReturnCtx(e,t),{code:h.not_finite,message:n.message}),r.dirty()):i.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new er({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new er({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&i.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}er.create=e=>new er({checks:[],typeName:u.ZodNumber,coerce:e?.coerce||!1,...P(e)});class en extends R{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.bigint)return this._getInvalidInput(e);let r=new S;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(x(t=this._getOrReturnCtx(e,t),{code:h.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):i.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.bigint,received:t.parsedType}),C}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new en({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new en({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}en.create=e=>new en({checks:[],typeName:u.ZodBigInt,coerce:e?.coerce??!1,...P(e)});class ei extends R{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.boolean){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.boolean,received:t.parsedType}),C}return T(e.data)}}ei.create=e=>new ei({typeName:u.ZodBoolean,coerce:e?.coerce||!1,...P(e)});class es extends R{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.date){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.date,received:t.parsedType}),C}if(Number.isNaN(e.data.getTime()))return x(this._getOrReturnCtx(e),{code:h.invalid_date}),C;let r=new S;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(x(t=this._getOrReturnCtx(e,t),{code:h.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):i.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new es({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}es.create=e=>new es({checks:[],coerce:e?.coerce||!1,typeName:u.ZodDate,...P(e)});class ea extends R{_parse(e){if(this._getType(e)!==c.symbol){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.symbol,received:t.parsedType}),C}return T(e.data)}}ea.create=e=>new ea({typeName:u.ZodSymbol,...P(e)});class eo extends R{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.undefined,received:t.parsedType}),C}return T(e.data)}}eo.create=e=>new eo({typeName:u.ZodUndefined,...P(e)});class el extends R{_parse(e){if(this._getType(e)!==c.null){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.null,received:t.parsedType}),C}return T(e.data)}}el.create=e=>new el({typeName:u.ZodNull,...P(e)});class eu extends R{constructor(){super(...arguments),this._any=!0}_parse(e){return T(e.data)}}eu.create=e=>new eu({typeName:u.ZodAny,...P(e)});class ed extends R{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T(e.data)}}ed.create=e=>new ed({typeName:u.ZodUnknown,...P(e)});class ec extends R{_parse(e){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.never,received:t.parsedType}),C}}ec.create=e=>new ec({typeName:u.ZodNever,...P(e)});class ef extends R{_parse(e){if(this._getType(e)!==c.undefined){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.void,received:t.parsedType}),C}return T(e.data)}}ef.create=e=>new ef({typeName:u.ZodVoid,...P(e)});class eh extends R{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==c.array)return x(t,{code:h.invalid_type,expected:c.array,received:t.parsedType}),C;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(x(t,{code:e?h.too_big:h.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(x(t,{code:h.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(x(t,{code:h.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new M(t,e,t.path,r)))).then(e=>S.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new M(t,e,t.path,r)));return S.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new eh({...this._def,minLength:{value:e,message:a.toString(t)}})}max(e,t){return new eh({...this._def,maxLength:{value:e,message:a.toString(t)}})}length(e,t){return new eh({...this._def,exactLength:{value:e,message:a.toString(t)}})}nonempty(e){return this.min(1,e)}}eh.create=(e,t)=>new eh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:u.ZodArray,...P(t)});class ep extends R{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=i.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.object){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.object,received:t.parsedType}),C}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof ec&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||s.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new M(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ec){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(x(r,{code:h.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new M(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>S.mergeObjectSync(t,e)):S.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return a.errToObj,new ep({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:a.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ep({...this._def,unknownKeys:"strip"})}passthrough(){return new ep({...this._def,unknownKeys:"passthrough"})}extend(e){return new ep({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ep({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:u.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ep({...this._def,catchall:e})}pick(e){let t={};for(let r of i.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ep({...this._def,shape:()=>t})}omit(e){let t={};for(let r of i.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ep({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ep){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ej.create(e(i))}return new ep({...t._def,shape:()=>r})}if(t instanceof eh)return new eh({...t._def,type:e(t.element)});if(t instanceof ej)return ej.create(e(t.unwrap()));if(t instanceof eD)return eD.create(e(t.unwrap()));if(t instanceof eb)return eb.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of i.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new ep({...this._def,shape:()=>t})}required(e){let t={};for(let r of i.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ej;)e=e._def.innerType;t[r]=e}return new ep({...this._def,shape:()=>t})}keyof(){return eT(i.objectKeys(this.shape))}}ep.create=(e,t)=>new ep({shape:()=>e,unknownKeys:"strip",catchall:ec.create(),typeName:u.ZodObject,...P(t)}),ep.strictCreate=(e,t)=>new ep({shape:()=>e,unknownKeys:"strict",catchall:ec.create(),typeName:u.ZodObject,...P(t)}),ep.lazycreate=(e,t)=>new ep({shape:e,unknownKeys:"strip",catchall:ec.create(),typeName:u.ZodObject,...P(t)});class em extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new m(e.ctx.common.issues));return x(t,{code:h.invalid_union,unionErrors:r}),C});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},s=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new m(e));return x(t,{code:h.invalid_union,unionErrors:i}),C}}get options(){return this._def.options}}em.create=(e,t)=>
1new em({options:e,typeName:u.ZodUnion,...P(t)});let eg=e=>{if(e instanceof eC)return eg(e.schema);if(e instanceof eA)return eg(e.innerType());if(e instanceof ek)return[e.value];if(e instanceof eE)return e.options;if(e instanceof eO)return i.objectValues(e.enum);else if(e instanceof eM)return eg(e._def.innerType);else if(e instanceof eo)return[void 0];else if(e instanceof el)return[null];else if(e instanceof ej)return[void 0,...eg(e.unwrap())];else if(e instanceof eD)return[null,...eg(e.unwrap())];else if(e instanceof eL)return eg(e.unwrap());else if(e instanceof eV)return eg(e.unwrap());else if(e instanceof eN)return eg(e._def.innerType);else return[]};class ey extends R{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.object)return x(t,{code:h.invalid_type,expected:c.object,received:t.parsedType}),C;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(x(t,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eg(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ey({typeName:u.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...P(r)})}}class ev extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(E(e)||E(n))return C;let s=function e(t,r){let n=f(t),s=f(r);if(t===r)return{valid:!0,data:t};if(n===c.object&&s===c.object){let n=i.objectKeys(r),s=i.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of s){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===c.array&&s===c.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let s=e(t[i],r[i]);if(!s.valid)return{valid:!1};n.push(s.data)}return{valid:!0,data:n}}if(n===c.date&&s===c.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return s.valid?((O(e)||O(n))&&t.dirty(),{status:t.value,value:s.data}):(x(r,{code:h.invalid_intersection_types}),C)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ev.create=(e,t,r)=>new ev({left:e,right:t,typeName:u.ZodIntersection,...P(r)});class eb extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.array)return x(r,{code:h.invalid_type,expected:c.array,received:r.parsedType}),C;if(r.data.length<this._def.items.length)return x(r,{code:h.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&r.data.length>this._def.items.length&&(x(r,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new M(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>S.mergeArray(t,e)):S.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eb({...this._def,rest:e})}}eb.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eb({items:e,typeName:u.ZodTuple,rest:null,...P(t)})};class ew extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.object)return x(r,{code:h.invalid_type,expected:c.object,received:r.parsedType}),C;let n=[],i=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new M(r,e,r.path,e)),value:s._parse(new M(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?S.mergeObjectAsync(t,n):S.mergeObjectSync(t,n)}
1get element(){return this._def.valueType}static create(e,t,r){return new ew(t instanceof R?{keyType:e,valueType:t,typeName:u.ZodRecord,...P(r)}:{keyType:et.create(),valueType:e,typeName:u.ZodRecord,...P(t)})}}class e_ extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.map)return x(r,{code:h.invalid_type,expected:c.map,received:r.parsedType}),C;let n=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([e,t],s)=>({key:n._parse(new M(r,e,r.path,[s,"key"])),value:i._parse(new M(r,t,r.path,[s,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return C;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return C;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}e_.create=(e,t,r)=>new e_({valueType:t,keyType:e,typeName:u.ZodMap,...P(r)});class ex extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.set)return x(r,{code:h.invalid_type,expected:c.set,received:r.parsedType}),C;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(x(r,{code:h.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(x(r,{code:h.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return C;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new M(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>s(e)):s(a)}min(e,t){return new ex({...this._def,minSize:{value:e,message:a.toString(t)}})}max(e,t){return new ex({...this._def,maxSize:{value:e,message:a.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ex.create=(e,t)=>new ex({valueType:e,minSize:null,maxSize:null,typeName:u.ZodSet,...P(t)});class eS extends R{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.function)return x(t,{code:h.invalid_type,expected:c.function,received:t.parsedType}),C;function r(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,y,g].filter(e=>!!e),issueData:{code:h.invalid_arguments,argumentsError:r}})}function n(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,y,g].filter(e=>!!e),issueData:{code:h.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eI){let e=this;return T(async function(...t){let a=new m([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(s,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw a.addIssue(n(l,e)),a})})}{let e=this;return T(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new m([r(t,a.error)]);let o=Reflect.apply(s,this,a.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new m([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eS({...this._def,args:eb.create(e).rest(ed.create())})}returns(e){return new eS({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eS({args:e||eb.create([]).rest(ed.create()),returns:t||ed.create(),typeName:u.ZodFunction,...P(r)})}}class eC extends R{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eC.create=(e,t)=>
1new eC({getter:e,typeName:u.ZodLazy,...P(t)});class ek extends R{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return x(t,{received:t.data,code:h.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eT(e,t){return new eE({values:e,typeName:u.ZodEnum,...P(t)})}ek.create=(e,t)=>new ek({value:e,typeName:u.ZodLiteral,...P(t)});class eE extends R{constructor(){super(...arguments),o.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return x(t,{expected:i.joinValues(r),received:t.parsedType,code:h.invalid_type}),C}if(j(this,o,"f")||D(this,o,new Set(this._def.values),"f"),!j(this,o,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return x(t,{received:t.data,code:h.invalid_enum_value,options:r}),C}return T(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eE.create(e,{...this._def,...t})}exclude(e,t=this._def){return eE.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}o=new WeakMap,eE.create=eT;class eO extends R{constructor(){super(...arguments),l.set(this,void 0)}_parse(e){let t=i.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==c.string&&r.parsedType!==c.number){let e=i.objectValues(t);return x(r,{expected:i.joinValues(e),received:r.parsedType,code:h.invalid_type}),C}if(j(this,l,"f")||D(this,l,new Set(i.getValidEnumValues(this._def.values)),"f"),!j(this,l,"f").has(e.data)){let e=i.objectValues(t);return x(r,{received:r.data,code:h.invalid_enum_value,options:e}),C}return T(e.data)}get enum(){return this._def.values}}l=new WeakMap,eO.create=(e,t)=>new eO({values:e,typeName:u.ZodNativeEnum,...P(t)});class eI extends R{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==c.promise&&!1===t.common.async?(x(t,{code:h.invalid_type,expected:c.promise,received:t.parsedType}),C):T((t.parsedType===c.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eI.create=(e,t)=>new eI({type:e,typeName:u.ZodPromise,...P(t)});class eA extends R{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===u.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:e=>{x(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===n.type){let e=n.transform(r.data,s);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return C;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?k(n.value):n});{if("aborted"===t.value)return C;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?C:"dirty"===n.status||"dirty"===t.value?k(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?C:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>I(e)?Promise.resolve(n.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!I(e))return e;let i=n.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}i.assertNever(n)}}eA.create=(e,t,r)=>new eA({schema:e,typeName:u.ZodEffects,effect:t,...P(r)}),eA.createWithPreprocess=(e,t,r)=>new eA({schema:t,effect:{type:"preprocess",transform:e},typeName:u.ZodEffects,...P(r)});class ej extends R{_parse(e){return this._getType(e)===c.undefined?T(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ej.create=(e,t)=>
1new ej({innerType:e,typeName:u.ZodOptional,...P(t)});class eD extends R{_parse(e){return this._getType(e)===c.null?T(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eD.create=(e,t)=>new eD({innerType:e,typeName:u.ZodNullable,...P(t)});class eM extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===c.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:u.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...P(t)});class eN extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return A(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new m(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eN.create=(e,t)=>new eN({innerType:e,typeName:u.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...P(t)});class eP extends R{_parse(e){if(this._getType(e)!==c.nan){let t=this._getOrReturnCtx(e);return x(t,{code:h.invalid_type,expected:c.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}eP.create=e=>new eP({typeName:u.ZodNaN,...P(e)});let eR=Symbol("zod_brand");class eL extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eF extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eF({in:e,out:t,typeName:u.ZodPipeline})}}class eV extends R{_parse(e){let t=this._def.innerType._parse(e),r=e=>(I(e)&&(e.value=Object.freeze(e.value)),e);return A(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function e$(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eZ(e,t={},r){return e?eu.create().superRefine((n,i)=>{let s=e(n);if(s instanceof Promise)return s.then(e=>{if(!e){let e=e$(t,n),s=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=e$(t,n),s=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:s})}}):eu.create()}eV.create=(e,t)=>new eV({innerType:e,typeName:u.ZodReadonly,...P(t)});let ez={object:ep.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(u||(u={}));let eW=(e,t={message:`Input not instance of ${e.name}`})=>eZ(t=>t instanceof e,t),eB=et.create,eG=er.create,eU=eP.create,eH=en.create,eX=ei.create,eq=es.create,eK=ea.create,eY=eo.create,eJ=el.create,eQ=eu.create,e0=ed.create,e1=ec.create,e2=ef.create,e5=eh.create,e9=ep.create,e4=ep.strictCreate,e3=em.create,e6=ey.create,e8=ev.create,e7=eb.create,te=ew.create,tt=e_.create,tr=ex.create,tn=eS.create,ti=eC.create,ts=ek.create,ta=eE.create,to=eO.create,tl=eI.create,tu=eA.create,td=ej.create,tc=eD.create,tf=eA.createWithPreprocess,th=eF.create,tp=()=>eB().optional(),tm=()=>eG().optional(),tg=()=>eX().optional(),ty={string:e=>et.create({...e,coerce:!0}),number:e=>er.create({...e,coerce:!0}),boolean:e=>ei.create({...e,coerce:!0}),bigint:e=>en.create({...e,coerce:!0}),date:e=>es.create({...e,coerce:!0})},tv=C},76604:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var n=r(12115),i=r(42198);let s={some:0,all:1};function a(e,{root:t,margin:r,amount:o,once:l=!1,initial:u=!1}={}
1){let[d,c]=(0,n.useState)(u);return(0,n.useEffect)(()=>{if(!e.current||l&&d)return;let n={root:t&&t.current||void 0,margin:r,amount:o};return function(e,t,{root:r,margin:n,amount:a="some"}={}){let o=(0,i.K)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?l.set(e.target,r):u.unobserve(e.target)}else"function"==typeof r&&(r(e),l.delete(e.target))})},{root:r,rootMargin:n,threshold:"number"==typeof a?a:s[a]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(c(!0),l?void 0:()=>c(!1)),n)},[t,e,r,l,o]),d}},78833:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},s={hasVideo:"lgHasVideo",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick"},a=function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},o=function(e,t){if(!e.youtube)return"";var r=e.youtube[2]?e.youtube[2].slice(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r=t.map(decodeURIComponent),n=r[0],i=r[1];return e[n]=i,e},{}):"";return"?"+a(n(n(n({},{wmode:"opaque",autoplay:0,mute:1,enablejsapi:1}),t||{}),r))},l=function(e,t){if(!t||!t.vimeo)return"";var r=t.vimeo[2]||"",n=Object.assign({},{autoplay:0,muted:1},e),i=n&&0!==Object.keys(n).length?a(n):"",s=((t.vimeo[0].split("/").pop()||"").split("?")[0]||"").split("#")[0],o=t.vimeo[1]!==s;o&&(r=r.replace("/"+s,"")),r="?"==r[0]?"&"+r.slice(1):r||"";var l=o?"h="+s:"";return i=l?"&"+i:i,"?"+l+i+r};let u=function(){function e(e){return this.core=e,this.settings=n(n({},i),this.core.settings),this}return e.prototype.init=function(){var e=this;this.core.LGel.on(s.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(s.posterClick+".video",function(){var t=e.core.getSlideItem(e.core.index);e.loadVideoOnPosterClick(t)}),this.core.LGel.on(s.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(s.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(s.afterSlide+".video",this.onAfterSlide.bind(this))},e.prototype.onSlideItemLoad=function(e){var t=this,r=e.detail,n=r.isFirstSlide,i=r.index;this.settings.autoplayFirstVideo&&n&&i===this.core.index&&setTimeout(function(){t.loadAndPlayVideo(i)},200),!n&&this.settings.autoplayVideoOnSlide&&i===this.core.index&&this.loadAndPlayVideo(i)},e.prototype.onHasVideo=function(e){var t=e.detail,r=t.index,n=t.src,i=t.html5Video;t.hasPoster||(this.appendVideos(this.core.getSlideItem(r),{src:n,addClass:"lg-object",index:r,html5Video:i}),this.gotoNextSlideOnVideoEnd(n,r))},e.prototype.onBeforeSlide=function(e){if(this.core.lGalleryOn){var t=e.detail.prevIndex;this.pauseVideo(t)}},e.prototype.onAfterSlide=function(e){var t=this,r=e.detail,n=r.index,i=r.prevIndex,s=this.core.getSlideItem(n);this.settings.autoplayVideoOnSlide&&n!==i&&s.hasClass("lg-complete")&&setTimeout(function(){t.loadAndPlayVideo(n)},100)},e.prototype.loadAndPlayVideo=function(e){var t=this.core.getSlideItem(e);this.core.galleryItems[e].poster?this.loadVideoOnPosterClick(t,!0):this.playVideo(e)},e.prototype.playVideo=function(e){this.controlVideo(e,"play")},e.prototype.pauseVideo=function(e){this.controlVideo(e,"pause")},e.prototype.getVideoHtml=function(e,t,r,n){var i="",s=this.core.galleryItems[r].__slideVideoInfo||{},u=this.core.galleryItems[r],d=u.title||u.alt;d=d?'title="'+d+'"':"";var c='allowtransparency="true"\n            frameborder="0"\n            scrolling="no"\n            allowfullscreen\n            mozallowfullscreen\n            webkitallowfullscreen\n            oallowfullscreen\n            msallowfullscreen';if(s.youtube){var f="lg-youtube"+r,h=o(s,this.settings.youTubePlayerParams);i='<iframe allow="autoplay" id='+f+' class="lg-video-object lg-youtube '+t+'" '+d+' src="'+(e.includes("youtube-nocookie.com")?"//www.youtube-nocookie.com/":"//www.youtube.com/")+"embed/"+(s.youtube[1]+h)+'" '+c+"></iframe>"}else if(s.vimeo){var f="lg-vimeo"+r,p=l(this.settings.vimeoPlayerParams,s);i='<iframe allow="autoplay" id='+f+' class="lg-video-object lg-vimeo '+t+'" '+d+' src="//player.vimeo.com/video/'+(s.vimeo[1]+p)+'" '+c+"></iframe>"}else if(s.wistia){var p=a(this.settings.wistiaPlayerParams);p=p?"?"+p:"",i='<iframe allow="autoplay" id="lg-wistia'+r+'" src="//fast.wistia.net/embed/iframe/'+(s.wistia[4]+p)+'" '+d+' class="wistia_embed lg-video-object lg-wistia '+t+'" name="wistia_embed" '+c+"></iframe>"}else if(s.html5){for(var m="",g=0;g<n.source.length;g++){var y=n.source[g].type,v=y?'type="'+y+'"':"";m+='<source src="'+n.source[g].src+'" '+v+">"}if(n.tracks)for(var g=0;g<n.tracks.length;g++)!function(e){var t="",r=n.tracks[e];Object.keys(r||{}
1).forEach(function(e){t+=e+'="'+r[e]+'" '}),m+="<track "+t+">"}(g);var b="",w=n.attributes||{};Object.keys(w||{}).forEach(function(e){b+=e+'="'+w[e]+'" '}),i='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+b+">\n                "+m+"\n                Your browser does not support HTML5 video.\n            </video>"}return i},e.prototype.appendVideos=function(e,t){var r,n=this.getVideoHtml(t.src,t.addClass,t.index,t.html5Video);e.find(".lg-video-cont").append(n);var i=e.find(".lg-video-object").first();if(t.html5Video&&i.on("mousedown.lg.video",function(e){e.stopPropagation()}),this.settings.videojs&&(null==(r=this.core.galleryItems[t.index].__slideVideoInfo)?void 0:r.html5))try{return videojs(i.get(),this.settings.videojsOptions)}catch(e){console.error("lightGallery:- Make sure you have included videojs")}},e.prototype.gotoNextSlideOnVideoEnd=function(e,t){var r=this,n=this.core.getSlideItem(t).find(".lg-video-object").first(),i=this.core.galleryItems[t].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(i.html5)n.on("ended",function(){r.core.goToNextSlide()});else if(i.vimeo)try{new Vimeo.Player(n.get()).on("ended",function(){r.core.goToNextSlide()})}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(i.wistia)try{window._wq=window._wq||[],window._wq.push({id:n.attr("id"),onReady:function(e){e.bind("end",function(){r.core.goToNextSlide()})}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},e.prototype.controlVideo=function(e,t){var r=this.core.getSlideItem(e).find(".lg-video-object").first(),n=this.core.galleryItems[e].__slideVideoInfo||{};if(r.get()){if(n.youtube)try{r.get().contentWindow.postMessage('{"event":"command","func":"'+t+'Video","args":""}',"*")}catch(e){console.error("lightGallery:- "+e)}else if(n.vimeo)try{new Vimeo.Player(r.get())[t]()}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(n.html5)if(this.settings.videojs)try{videojs(r.get())[t]()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else r.get()[t]();else if(n.wistia)try{window._wq=window._wq||[],window._wq.push({id:r.attr("id"),onReady:function(e){e[t]()}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},e.prototype.loadVideoOnPosterClick=function(e,t){var r=this;if(e.hasClass("lg-video-loaded"))t&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var n=void 0,i=this.core.galleryItems[this.core.index].src,s=this.core.galleryItems[this.core.index].video;s&&(n="string"==typeof s?JSON.parse(s):s);var a=this.appendVideos(e,{src:i,addClass:"",index:this.core.index,html5Video:n});this.gotoNextSlideOnVideoEnd(i,this.core.index);var o=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(o),e.addClass("lg-video-loading"),a&&a.ready(function(){a.on("loadedmetadata",function(){r.onVideoLoadAfterPosterClick(e,r.core.index)})}),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){r.onVideoLoadAfterPosterClick(e,r.core.index)},50)})}},e.prototype.onVideoLoadAfterPosterClick=function(e,t){e.addClass("lg-video-loaded"),this.playVideo(t)},e.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},e}()},81105:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},s={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},a=function(){function e(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return e.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.prototype._getSelector=function(e,t){return(void 0===t&&(t=document),"string"!=typeof e)?e:(t=t||document,"#"===e.substring(0,1))?t.querySelector(e):t.querySelectorAll(e)},e.prototype._each=function(e){return this.selector&&(void 0!==this.selector.length?[].forEach.call(this.selector,e):e(this.selector,0)),this},e.prototype._setCssVendorPrefix=function(e,t,r){var n=t.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(n)?(e.style[n.charAt(0).toLowerCase()+n.slice(1)]=r,e.style["webkit"+n]=r,e.style["moz"+n]=r,e.style["ms"+n]=r,e.style["o"+n]=r):e.style[n]=r},e.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},e.prototype.isEventMatched=function(e,t){var r=t.split(".");return e.split(".").filter(function(e){return e}).every(function(e){return -1!==r.indexOf(e)})},e.prototype.attr=function(e,t){return void 0===t?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(r){r.setAttribute(e,t)}),this)},e.prototype.find=function(e){return o(this._getSelector(e,this.selector))},e.prototype.first=function(){return this.selector&&void 0!==this.selector.length?o(this.selector[0]):o(this.selector)},e.prototype.eq=function(e){return o(this.selector[e])},e.prototype.parent=function(){return o(this.selector.parentElement)},e.prototype.get=function(){return this._getFirstEl()},e.prototype.removeAttr=function(e){var t=e.split(" ");return this._each(function(e){t.forEach(function(t){return e.removeAttribute(t)})}),this},e.prototype.wrap=function(e){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=e,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},e.prototype.addClass=function(e){return void 0===e&&(e=""),this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.add(e)})}),this},e.prototype.removeClass=function(e){return this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.remove(e)})}),this},e.prototype.hasClass=function(e){return!!this.firstElement&&this.firstElement.classList.contains(e)},e.prototype.hasAttribute=function(e){return!!this.firstElement&&this.firstElement.hasAttribute(e)},e.prototype.toggleClass=function(e){return this.firstElement&&(this.hasClass(e)?this.removeClass(e):this.addClass(e)),this},e.prototype.css=function(e,t){var r=this;return this._each(function(n){r._setCssVendorPrefix(n,e,t)}),this},e.prototype.on=function(t,r){var n=this;return this.selector&&t.split(" ").forEach(function(t){Array.isArray(e.eventListeners[t])||(e.eventListeners[t]=[]),e.eventListeners[t].push(r),n.selector.addEventListener(t.
1split(".")[0],r)}),this},e.prototype.once=function(e,t){var r=this;return this.on(e,function(){r.off(e),t(e)}),this},e.prototype.off=function(t){var r=this;return this.selector&&Object.keys(e.eventListeners).forEach(function(n){r.isEventMatched(t,n)&&(e.eventListeners[n].forEach(function(e){r.selector.removeEventListener(n.split(".")[0],e)}),e.eventListeners[n]=[])}),this},e.prototype.trigger=function(e,t){if(!this.firstElement)return this;var r=new CustomEvent(e.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(r),this},e.prototype.load=function(e){var t=this;return fetch(e).then(function(e){return e.text()}).then(function(e){t.selector.innerHTML=e}),this},e.prototype.html=function(e){return void 0===e?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=e}),this)},e.prototype.append=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)}),this},e.prototype.prepend=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&t.insertBefore(e.cloneNode(!0),t.firstChild)}),this},e.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},e.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},e.prototype.scrollTop=function(e){return void 0!==e?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},e.prototype.scrollLeft=function(e){return void 0!==e?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},e.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),t=o("body").style().marginLeft;return{left:e.left-parseFloat(t)+this.scrollLeft(),top:e.top+this.scrollTop()}},e.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},e.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},e.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},e.eventListeners={},e}();function o(e){return"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new a(e)}var l=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"],u={fetchCaptionFromUrl:function(e,t,r){fetch(e).then(function(e){return e.text()}).then(function(e){"append"===r?t.append('<div class="lg-sub-html">'+e+"</div>"):t.html(e)})},getSize:function(e,t,r,n){void 0===r&&(r=0);var i=o(e).attr("data-lg-size")||n;if(i){var s=i.split(",");if(s[1])for(var a=window.innerWidth,l=0;l<s.length;l++){var u=s[l];if(parseInt(u.split("-")[2],10)>a){i=u;break}l===s.length-1&&(i=u)}var d=i.split("-"),c=parseInt(d[0],10),f=parseInt(d[1],10),h=Math.min(Math.min(t.width(),c)/c,Math.min(t.height()-r,f)/f);return{width:c*h,height:f*h}}},getTransform:function(e,t,r,n,i){if(i){var s=o(e).find("img").first();if(s.get()){var a=t.get().getBoundingClientRect(),l=a.width,u=t.height()-(r+n),d=s.width(),c=s.height(),f=s.style(),h=(l-d)/2-s.offset().left+(parseFloat(f.paddingLeft)||0)+(parseFloat(f.borderLeft)||0)+o(window).scrollLeft()+a.left,p=(u-c)/2-s.offset().top+(parseFloat(f.paddingTop)||0)+(parseFloat(f.borderTop)||0)+o(window).scrollTop()+r;return"translate3d("+(h*=-1)+"px, "+(p*=-1)+"px, 0) scale3d("+d/i.width+", "+c/i.height+", 1)"}}},getIframeMarkup:function(e,t,r,n,i,s){return'<div class="lg-media-cont lg-has-iframe" style="width:'+e+"; max-width:"+r+"; height: "+t+"; max-height:"+n+'">\n                    <iframe class="lg-object" frameborder="0" '+(s?'title="'+s+'"':"")+' src="'+i+'"  allowfullscreen="true"></iframe>\n                </div>'},getImgMarkup:function(e,t,r,n,i,s){var a="<img "+r+" "+(n?'srcset="'+n+'"':"")+"  "+(i?'sizes="'+i+'"':"")+' class="lg-object lg-image" data-index="'+e+'" src="'+t+'" />',o="";return s&&(o=("string"==typeof s?JSON.parse(s):s).map(function(e){var t="";return Object.keys(e).forEach(function(r){t+=" "+r+'="'+e[r]+'"'}),"<source "+t+"></source>"})),""+o+a},getResponsiveSrc:function(e){for(var t=[],r=[],n="",i=0;i<e.length;i++){var s=e[i].split(" ");""===s[0]&&s.splice(0,1),r.push(s[0]),t.push(s[1])}for(var a=window.innerWidth,o=0;o<t.length;o++)if(parseInt(t[o],10)>
1a){n=r[o];break}return n},isImageLoaded:function(e){return!!e&&!!e.complete&&0!==e.naturalWidth},getVideoPosterMarkup:function(e,t,r,n,i){var s="";s=i&&i.youtube?"lg-has-youtube":i&&i.vimeo?"lg-has-vimeo":"lg-has-html5";var a=t;return"string"!=typeof t&&(a=t.outerHTML),'<div class="lg-video-cont '+s+'" style="'+r+'">\n                <div class="lg-video-play-button">\n                <svg\n                    viewBox="0 0 20 20"\n                    preserveAspectRatio="xMidYMid"\n                    focusable="false"\n                    aria-labelledby="'+n+'"\n                    role="img"\n                    class="lg-video-play-icon"\n                >\n                    <title>'+n+'</title>\n                    <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n                </svg>\n                <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle></svg>\n                <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle>\n                </svg>\n            </div>\n            '+a+'\n            <img class="lg-object lg-video-poster" src="'+e+'" />\n        </div>'},getFocusableElements:function(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(t,function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})},getDynamicOptions:function(e,t,r,n){var i=[],s=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}(l,t);return[].forEach.call(e,function(e){for(var t={},a=0;a<e.attributes.length;a++){var l=e.attributes[a];if(l.specified){var u,d="href"===(u=l.name)?"src":u=(u=(u=u.replace("data-","")).charAt(0).toLowerCase()+u.slice(1)).replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),c="";s.indexOf(d)>-1&&(c=d),c&&(t[c]=l.value)}}var f=o(e),h=f.find("img").first().attr("alt"),p=f.attr("title");t.thumb=n?f.attr(n):f.find("img").first().attr("src"),r&&!t.subHtml&&(t.subHtml=p||h||""),t.alt=h||p||"",i.push(t)}),i},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(e,t,r){if(!e)if(t)return{html5:!0};else return void console.error("lightGallery :- data-src is not provided on slide item "+(r+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var n=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),i=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),s=e.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return n?{youtube:n}:i?{vimeo:i}:s?{wistia:s}:void 0}},d=0,c=function(){function e(e,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(d++,this.lgId=d,this.el=e,this.LGel=o(e),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return e.prototype.generateSettings=function(e){if(this.settings=n(n({},s),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():u.isMobile()){var t=n(n({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=n(n({},this.settings),t)}},e.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
1=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if("function"==typeof e)this.settings.container=e();else if("string"==typeof e){var t=document.querySelector(e);this.settings.container=null!=t?t:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},e.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(i.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},e.prototype.openGalleryOnItemClick=function(){for(var e=this,t=function(t){var n=r.items[t],i=o(n),s=a.generateUUID();i.attr("data-lg-id",s).on("click.lgcustom-item-"+s,function(r){r.preventDefault();var i=e.settings.index||t;e.openGallery(i,n)})},r=this,n=0;n<this.items.length;n++)t(n)},e.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(t){e.plugins.push(new t(e,o))})},e.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},e.prototype.getSlideItem=function(e){return o(this.getSlideItemId(e))},e.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},e.prototype.getIdName=function(e){return e+"-"+this.lgId},e.prototype.getElementById=function(e){return o("#"+this.getIdName(e))},e.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},e.prototype.buildStructure=function(){var e=this;if(!(this.$container&&this.$container.get())){var t="",r="";this.settings.controls&&(t='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n                <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(r='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var n="";this.settings.allowMediaOverlap&&(n+="lg-media-overlap ");var i=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",s=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",a="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),l=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",u=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",d='\n        <div class="'+a+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+i+" "+s+' role="dialog"\n        >\n            <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n            <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+n+' ">\n\n              <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n                <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n                </div>\n                '+t+'\n              </div>\n                <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n                    '+u+"\n                    "+l+"\n                    </div>\n                    "+(".lg-outer"===this.settings.appendSubHtmlTo?r:"")+'\n                <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n                    '+(".lg-sub-html"===this.settings.appendSubHtmlTo?r:"")+"\n                </div>\n            </div>\n        </div>\n        ";o(this.settings.container).append(d),document.body!==this.settings.container&&o(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var c=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(c+="lg-grab "),this.outer.addClass(c),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),o(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},e.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var t=this.mediaContainerPosition,r=t.top,n=t.bottom;if(this.currentImageSize=u.getSize(this.items[this.index],this.outer,r+n,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var s=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",s)}this.LGel.trigger(i.containerResize)}},e.prototype.resizeVideoSlide=function(e,t){var r=this.getVideoContStyle(t);
1this.getSlideItem(e).find(".lg-video-cont").attr("style",r)},e.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),1===e.length&&(this.index=0),!e.length)return void this.closeGallery();var r=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var n=0;this.galleryItems.some(function(e,t){return e.src===r&&(n=t,!0)}),this.currentItemsInDom=this.organizeSlideItems(n,-1),this.loadContent(n,!0),this.getSlideItem(n).addClass("lg-current"),this.index=n,this.updateCurrentCounter(n),this.LGel.trigger(i.updateSlides)},e.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var e=o(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return u.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},e.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},e.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(o("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),t=window.innerWidth-e.width;o(document.body).css("padding-right",t+this.bodyPaddingRight+"px"),o(document.body).addClass("lg-overlay-open")}},e.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(o(document.body).css("padding-right",this.bodyPaddingRight+"px"),o(document.body).removeClass("lg-overlay-open"))},e.prototype.openGallery=function(e,t){var r=this;if(void 0===e&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var n=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=n;var s="";n.forEach(function(e){s+='<div id="'+e+'" class="lg-item"></div>'}),this.$inner.append(s),this.addHtml(e);var a="";this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,d=l.top,c=l.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(d,c);var f=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&t&&(this.currentImageSize=u.getSize(t,this.outer,d+c,f&&this.settings.videoMaxSize),a=u.getTransform(t,this.outer,d,c,this.currentImageSize)),this.zoomFromOrigin&&a||(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete")),setTimeout(function(){r.outer.addClass("lg-components-open")},this.settings.zoomFromOrigin?100:this.settings.backdropDuration),this.index=e,this.LGel.trigger(i.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=o(window).scrollTop(),setTimeout(function(){if(r.zoomFromOrigin&&a){var t=r.getSlideItem(e);t.css("transform",a),setTimeout(function(){t.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",r.settings.startAnimationDuration+"ms"),r.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){t.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){r.$backdrop.addClass("in"),r.$container.addClass("lg-show-in")},10),setTimeout(function(){r.settings.trapFocus&&document.body===r.settings.container&&r.trapFocus()},r.settings.backdropDuration+50),r.zoomFromOrigin&&a||setTimeout(function(){r.outer.addClass("lg-visible")},r.settings.backdropDuration),r.slide(e,!1,!1,!1),r.LGel.trigger(i.afterOpen)}),document.body===this.settings.container&&o("html").addClass("lg-on")}},e.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),r=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,n=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(n?n.clientHeight:0)+r}},e.prototype.setMediaContainerPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"px")},e.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>
10&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},e.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},e.prototype.counter=function(){if(this.settings.counter){var e='<div class="lg-counter" role="status" aria-live="polite">\n                <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n                <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},e.prototype.addHtml=function(e){if(this.galleryItems[e].subHtmlUrl?r=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!r)if(t){var t,r,n=t.substring(0,1);("."===n||"#"===n)&&(t=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?o(this.items).eq(e).find(t).first().html():o(t).first().html())}else t="";if(".lg-item"!==this.settings.appendSubHtmlTo)r?u.fetchCaptionFromUrl(r,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(t);else{var s=o(this.getSlideItemId(e));r?u.fetchCaptionFromUrl(r,s,"append"):s.append('<div class="lg-sub-html">'+t+"</div>")}null!=t&&(""===t?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(i.afterAppendSubHtml,{index:e})},e.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var r=1;r<=this.settings.preload&&!(e-r<0);r++)this.loadContent(e-r,!1)},e.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+"px;\n                margin-left: -"+e.width/2+"px;\n                margin-top: -"+e.height/2+"px;\n                height:"+e.height+"px":""},e.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+"px;\n                height:"+e.height+"px":""},e.prototype.getDummyImageContent=function(e,t,r){var n;if(this.settings.dynamic||(n=o(this.items).eq(t)),n){var i=void 0;if(!(i=this.settings.exThumbImage?n.attr(this.settings.exThumbImage):n.find("img").first().attr("src")))return"";var s=this.getDummyImgStyles(this.currentImageSize),a=document.createElement("img");return a.alt=r||"",a.src=i,a.className="lg-dummy-img",a.style.cssText=s,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),a}return""},e.prototype.setImgMarkup=function(e,t,r){var n=this.galleryItems[r],i=n.alt,s=n.srcset,a=n.sizes,l=n.sources,d="",c=i?'alt="'+i+'"':"";d=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(t,r,c):u.getImgMarkup(r,e,c,s,a,l);var f=document.createElement("picture");f.className="lg-img-wrap",o(f).append(d),t.prepend(f)},e.prototype.onSlideObjectLoad=function(e,t,r,n){var i=e.find(".lg-object").first();u.isImageLoaded(i.get())||t?r():(i.on("load.lg error.lg",function(){r&&r()}),i.on("error.lg",function(){n&&n()}))},e.prototype.onLgObjectLoad=function(e,t,r,n,i,s){var a=this;this.onSlideObjectLoad(e,s,function(){a.triggerSlideItemLoad(e,t,r,n,i)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+a.settings.strings.mediaLoadingFailed+"</span>")})},e.prototype.triggerSlideItemLoad=function(e,t,r,n,s){var a=this,o=this.galleryItems[t];setTimeout(function(){e.addClass("lg-complete lg-complete_"),a.LGel.trigger(i.slideItemLoad,{index:t,delay:r||0,isFirstSlide:s})},s&&"video"===this.getSlideType(o)&&!o.poster?n:0)},e.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},e.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach(function(e,r){e.__slideVideoInfo=u.isVideo(e.src,!!e.video,r),e.__slideVideoInfo&&t.settings.loadYouTubePoster&&!e.poster&&e.__slideVideoInfo.youtube&&(e.poster="//img.youtube.com/vi/"+e.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},e.prototype.loadContent=function(e,t){var r=this,n=this.galleryItems[e],s=o(this.getSlideItemId(e)),a=n.poster,l=n.srcset,d=n.sizes,c=n.sources,f=n.src,h=n.video,p=h&&"string"==typeof h?JSON.parse(h):h;if(n.responsive){var m=n.responsive.split(",");f=u.getResponsiveSrc(m)||f}var g=n.__slideVideoInfo,y="",v=!!n.iframe,b=!this.lGalleryOn,w=0;if(b&&(w=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!s.hasClass("lg-loaded")){if(g){var _=this.mediaContainerPosition,x=_.top,S=_.bottom,C=u.getSize(this.items[e],this.outer,x+S,g&&this.settings.videoMaxSize);y=this.getVideoContStyle(C)}if(v){var k=u.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,f,n.iframeTitle);s.prepend(k)}else if(a){var T="";b&&this.zoomFromOrigin&&this.currentImageSize&&(T=this.getDummyImageContent(s,e,""));var k=u.getVideoPosterMarkup(a,T||"",y,this.settings.strings.playVideo,g);s.prepend(k)}else if(g){var k='<div class="lg-video-cont " style="'+y+'"></div>';s.prepend(k)}
1else if(this.setImgMarkup(f,s,e),l||c){var E=s.find(".lg-object");this.initPictureFill(E)}(a||g)&&this.LGel.trigger(i.hasVideo,{index:e,src:f,html5Video:p,hasPoster:!!a}),this.LGel.trigger(i.afterAppendSlide,{index:e}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(e)}var O=0;w&&!o(document.body).hasClass("lg-from-hash")&&(O=w),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){s.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),s.hasClass("lg-loaded")||setTimeout(function(){if("image"===r.getSlideType(n)){var t=n.alt;if(s.find(".lg-img-wrap").append(u.getImgMarkup(e,f,t?'alt="'+t+'"':"",l,d,n.sources)),l||c){var i=s.find(".lg-object");r.initPictureFill(i)}}("image"===r.getSlideType(n)||"video"===r.getSlideType(n)&&a)&&(r.onLgObjectLoad(s,e,w,O,!0,!1),r.onSlideObjectLoad(s,!!(g&&g.html5&&!a),function(){r.loadContentOnFirstSlideLoad(e,s,O)},function(){r.loadContentOnFirstSlideLoad(e,s,O)}))},this.settings.startAnimationDuration+100)),s.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(n)||a)||this.onLgObjectLoad(s,e,w,O,b,!!(g&&g.html5&&!a)),(!this.zoomFromOrigin||!this.currentImageSize)&&s.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){s.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===t&&(s.hasClass("lg-complete_")?this.preload(e):s.find(".lg-object").first().on("load.lg error.lg",function(){r.preload(e)}))},e.prototype.loadContentOnFirstSlideLoad=function(e,t,r){var n=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),n.outer.removeClass("lg-first-slide-loading"),n.isDummyImageRemoved=!0,n.preload(e)},r+300)},e.prototype.getItemsToBeInsertedToDom=function(e,t,r){var n=this;void 0===r&&(r=0);var i=[],s=Math.max(r,3);s=Math.min(s,this.galleryItems.length);var a="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(e,t){i.push("lg-item-"+n.lgId+"-"+t)}
1),i;if(e<(this.galleryItems.length-1)/2){for(var o=e;o>e-s/2&&o>=0;o--)i.push("lg-item-"+this.lgId+"-"+o);for(var l=i.length,o=0;o<s-l;o++)i.push("lg-item-"+this.lgId+"-"+(e+o+1))}else{for(var o=e;o<=this.galleryItems.length-1&&o<e+s/2;o++)i.push("lg-item-"+this.lgId+"-"+o);for(var l=i.length,o=0;o<s-l;o++)i.push("lg-item-"+this.lgId+"-"+(e-o-1))}return this.settings.loop&&(e===this.galleryItems.length-1?i.push("lg-item-"+this.lgId+"-0"):0===e&&i.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===i.indexOf(a)&&i.push("lg-item-"+this.lgId+"-"+t),i},e.prototype.organizeSlideItems=function(e,t){var r=this,n=this.getItemsToBeInsertedToDom(e,t,this.settings.numberOfSlideItemsInDom);return n.forEach(function(e){-1===r.currentItemsInDom.indexOf(e)&&r.$inner.append('<div id="'+e+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(e){-1===n.indexOf(e)&&o("#"+e).remove()}),n},e.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch(t){e=0}return e},e.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e];if(!1===t.downloadUrl||"false"===t.downloadUrl)this.outer.addClass("lg-hide-download");else{var r=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),r.attr("href",t.downloadUrl||t.src),t.download&&r.attr("download",t.download)}}},e.prototype.makeSlideAnimation=function(e,t,r){var n=this;this.lGalleryOn&&r.addClass("lg-slide-progress"),setTimeout(function(){n.outer.addClass("lg-no-trans"),n.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(t.addClass("lg-prev-slide"),r.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),r.addClass("lg-prev-slide")),setTimeout(function(){n.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),n.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},e.prototype.slide=function(e,t,r,n){var s=this,a=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,a),!this.lGalleryOn||a!==e){var o=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var l=this.getSlideItem(e),d=this.getSlideItem(a),c=this.galleryItems[e],f=c.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(c)),this.setDownloadValue(e),f){var h=this.mediaContainerPosition,p=h.top,m=h.bottom,g=u.getSize(this.items[e],this.outer,p+m,f&&this.settings.videoMaxSize);this.resizeVideoSlide(e,g)}if(this.LGel.trigger(i.beforeSlide,{prevIndex:a,index:e,fromTouch:!!t,fromThumb:!!r}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),!n&&(e<a?n="prev":e>a&&(n="next")),t){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var y=void 0,v=void 0;o>2?(y=e-1,v=e+1,0===e&&a===o-1?(v=0,y=o-1):e===o-1&&0===a&&(v=0,y=o-1)):(y=0,v=1),"prev"===n?this.getSlideItem(v).addClass("lg-next-slide"):this.getSlideItem(y).addClass("lg-prev-slide"),l.addClass("lg-current")}else this.makeSlideAnimation(n,l,d);this.lGalleryOn?setTimeout(function(){s.loadContent(e,!0),".lg-item"!==s.settings.appendSubHtmlTo&&s.addHtml(e)},this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){s.lgBusy=!1,d.removeClass("lg-slide-progress"),s.LGel.trigger(i.afterSlide,{prevIndex:a,index:e,fromTouch:t,fromThumb:r})},(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=e}},e.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},e.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},e.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},e.prototype.touchMove=function(e,t,r){var n=t.pageX-e.pageX,i=t.pageY-e.pageY,s=!1;if(this.swipeDirection?s=!0:Math.abs(n)>15?(this.swipeDirection="horizontal",s=!0):Math.abs(i)>15&&(this.swipeDirection="vertical",s=!0),s){var a=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==r||r.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(a,n,0
1);var o=a.get().offsetWidth,l=15*o/100-Math.abs(10*n/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-o+n-l,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),o+n+l,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==r||r.preventDefault(),this.$container.addClass("lg-dragging-vertical");var u=1-Math.abs(i)/window.innerHeight;this.$backdrop.css("opacity",u);var d=1-Math.abs(i)/(2*window.innerWidth);this.setTranslate(a,0,i,d,d),Math.abs(i)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},e.prototype.touchEnd=function(e,t,r){var n,s=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){s.$container.removeClass("lg-dragging-vertical"),s.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var a=!0;if("horizontal"===s.swipeDirection){n=e.pageX-t.pageX;var l=Math.abs(e.pageX-t.pageX);n<0&&l>s.settings.swipeThreshold?(s.goToNextSlide(!0),a=!1):n>0&&l>s.settings.swipeThreshold&&(s.goToPrevSlide(!0),a=!1)}else if("vertical"===s.swipeDirection){if(n=Math.abs(e.pageY-t.pageY),s.settings.closable&&s.settings.swipeToClose&&n>100)return void s.closeGallery();s.$backdrop.css("opacity",1)}if(s.outer.find(".lg-item").removeAttr("style"),a&&5>Math.abs(e.pageX-t.pageX)){var u=o(r.target);s.isPosterElement(u)&&s.LGel.trigger(i.posterClick)}s.swipeDirection=void 0}),setTimeout(function(){s.outer.hasClass("lg-dragging")||"lg-slide"===s.settings.mode||s.outer.removeClass("lg-slide")},this.settings.speed+100)},e.prototype.enableSwipe=function(){var e=this,t={},r={},n=!1,s=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(r){e.dragOrSwipeEnabled=!0;var n=e.getSlideItem(e.index);(o(r.target).hasClass("lg-item")||n.get().contains(r.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&1===r.touches.length&&(s=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(i){s&&"swipe"===e.touchAction&&1===i.touches.length&&(r={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e.touchMove(t,r,i),n=!0)}),this.$inner.on("touchend.lg",function(a){if("swipe"===e.touchAction){if(n)n=!1,e.touchEnd(r,t,a);else if(s){var l=o(a.target);e.isPosterElement(l)&&e.LGel.trigger(i.posterClick)}e.touchAction=void 0,s=!1}}))},e.prototype.enableDrag=function(){var e=this,t={},r={},n=!1,s=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(r){e.dragOrSwipeEnabled=!0;var s=e.getSlideItem(e.index);(o(r.target).hasClass("lg-item")||s.get().contains(r.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(r.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:r.pageX,pageY:r.pageY},n=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(i.dragStart)))}),o(window).on("mousemove.lg.global"+this.lgId,function(a){n&&e.lgOpened&&(s=!0,r={pageX:a.pageX,pageY:a.pageY},e.touchMove(t,r),e.LGel.trigger(i.dragMove))}),o(window).on("mouseup.lg.global"+this.lgId,function(a){if(e.lgOpened){var l=o(a.target);s?(s=!1,e.touchEnd(r,t,a),e.LGel.trigger(i.dragEnd)):e.isPosterElement(l)&&e.LGel.trigger(i.posterClick),n&&(n=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},e.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(t){!e.dragOrSwipeEnabled&&e.isPosterElement(o(t.target))&&e.LGel.trigger(i.posterClick)})},e.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},e.prototype.goToNextSlide=function(e){var t=this,r=this.settings.loop;e&&this.galleryItems.length<3&&(r=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(i.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):r?(this.index=0,this.LGel.trigger(i.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){t.outer.removeClass("lg-right-end")},400)))},e.prototype.goToPrevSlide=function(e){var t=this,r=this.settings.loop;e&&this.galleryItems.length<3&&(r=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(i.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):r?(this.index=this.galleryItems.length-1,this.LGel.trigger(i.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout(function(){t.outer.removeClass("lg-left-end")},400)))},e.prototype.keyPress=function(){var e=this;o(window).on("keydown.lg.global"+this.lgId,function(t){e.lgOpened&&!0===e.settings.escKey&&27===t.keyCode&&(t.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))})},e.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},e.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),r=this.getElementById("lg-next");e+1===this.galleryItems.length?r.attr("disabled","disabled").addClass("disabled"):r.removeAttr("disabled").removeClass("disabled"),0===e?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},e.prototype.setTranslate=function(e,t,r,n,i){void 0===n&&(n=1),void 0===i&&(i=1),e.css("transform","translate3d("+t+"px, "+r+"px, 0px) scale3d("+n+", "+i+", 1)")},e.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",function(r){if(r.deltaY&&!(e.galleryItems.length<2)){r.preventDefault();var n=new Date().getTime();!(n-t<1e3)&&(t=n,r.deltaY>0?e.goToNextSlide():r.deltaY<0&&e.goToPrevSlide())}})},e.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},e.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},e.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},e.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var t=o(this.items[e]);t.off("click.lgcustom-item-"+t.attr("data-lg-id"))}},e.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),o(window).on("keydown.lg.global"+this.lgId,function(t){if(e.lgOpened&&("Tab"===t.key||9===t.keyCode)){var r=u.getFocusableElements(e.$container.get()),n=r[0],i=r[r.length-1];t.shiftKey?document.activeElement===n&&(i.focus(),t.preventDefault()):document.activeElement===i&&(n.focus(),t.preventDefault())}})},e.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(r){var n=o(r.target);t=!!e.isSlideElement(n)}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(r){var n=o(r.target);e.isSlideElement(n)&&t&&!e.outer.hasClass("lg-dragging")&&e.closeGallery()}))}},e.prototype.closeGallery=function(e){var t,r=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(i.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&o(window).scrollTop(this.prevScrollTop);var n=this.items[this.index];if(this.zoomFromOrigin&&n){var s=this.mediaContainerPosition,a=s.top,l=s.bottom,d=this.galleryItems[this.index],c=d.__slideVideoInfo,f=d.poster,h=u.getSize(n,this.outer,a+l,c&&f&&this.settings.videoMaxSize);t=u.getTransform(n,this.outer,a,l,h)}this.zoomFromOrigin&&t?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
1SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",t)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,o("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var p=this.zoomFromOrigin&&t?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){r.zoomFromOrigin&&t&&r.outer.removeClass("lg-zoom-from-image"),r.$container.removeClass("lg-show"),r.resetScrollBar(),r.$backdrop.removeAttr("style").css("transition-duration",r.settings.backdropDuration+"ms"),r.outer.removeClass("lg-closing "+r.settings.startClass),r.getSlideItem(r.index).removeClass("lg-start-end-progress"),r.$inner.empty(),r.lgOpened&&r.LGel.trigger(i.afterClose,{instance:r}),r.$container.get()&&r.$container.get().blur(),r.lgOpened=!1},p+100),p+100},e.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},e.prototype.destroyModules=function(e){this.plugins.forEach(function(t){try{e?t.destroy():t.closeGallery&&t.closeGallery()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},e.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),e?this.galleryItems=e:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(i.updateSlides)},e.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},e.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),o(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},e.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},e}();let f=function(e,t){return new c(e,t)}},84450:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw s}}return r}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){return Object.getOwnPropertyNames(Object(e)).reduce(function(r,n){var i=Object.getOwnPropertyDescriptor(Object(e),n),s=Object.getOwnPropertyDescriptor(Object(t),n);return Object.defineProperty(r,n,s||i)},{})}function f(e){return"string"==typeof e}function h(e){return Array.isArray(e)}function p(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=c(t);return void 0!==r.types?e=r.types:void 0!==r.split&&(e=r.split),void 0!==e&&(r.types=(f(e)||h(e)?String(e):"").split(",").map(function(e){return String(e).trim()}).filter(function(e){return/((line)|(word)|(char))/i.test(e)})),(r.absolute||r.position)&&(r.absolute=r.absolute||/absolute/.test(t.position)),r}function m(e){var t=f(e)||h(e)?String(e):"";return{none:!t,lines:/line/i.test(t),words:/word/i.test(t),chars:/char/i.test(t)}}function g(e){return null!==e&&"object"==typeof e}function y(e){return g(e)&&/^(1|3|11)$/.test(e.nodeType)}function v(e){var t;return h(e)?e:null==e?[]:g(e)&&"number"==typeof(t=e.length)&&t>-1&&t%1==0?Array.prototype.slice.call(e):[e]}function b(e){var t=e;return f(e)&&(t=/^(#[a-z]\w+)$/.test(e.trim())?document.getElementById(e.trim().slice(1)):document.querySelectorAll(e)),v(t).reduce(function(e,t){return[].concat(l(e),l(v(t).filter(y)))},[])}r.d(t,{A:()=>X}),function(){function e(){for(var e=arguments.length,t=0;t<e;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];1===r.nodeType||11===r.nodeType?this.appendChild(r):this.appendChild(document.createTextNode(String(r)))}}function t(){for(;this.lastChild;)this.removeChild(this.lastChild);arguments.length&&this.append.apply(this,arguments)}function r(){for(var e=this.parentNode,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.length;if(e)for(i||e.removeChild(this);i--;){var s=r[i];"object"!=typeof s?s=this.ownerDocument.createTextNode(s):s.parentNode&&s.parentNode.removeChild(s),i?e.insertBefore(this.previousSibling,s):e.replaceChild(s,this)}}"undefined"!=typeof Element&&(Element.prototype.append||(Element.prototype.append=e,DocumentFragment.prototype.append=e),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=t,DocumentFragment.prototype.replaceChildren=t),Element.prototype.replaceWith||(Element.prototype.replaceWith=r,DocumentFragment.prototype.replaceWith=r))}();
1var w=Object.entries,_="_splittype",x={},S=0;function C(e,t,r){if(!g(e))return console.warn("[data.set] owner is not an object"),null;var n=e[_]||(e[_]=++S),i=x[n]||(x[n]={});return void 0===r?t&&Object.getPrototypeOf(t)===Object.prototype&&(x[n]=a(a({},i),t)):void 0!==t&&(i[t]=r),r}function k(e,t){var r=g(e)?e[_]:null,n=r&&x[r]||{};return void 0===t?n:n[t]}function T(e){var t=e&&e[_];t&&(delete e[t],delete x[t])}var E="\ud800-\udfff",O="\\u0300-\\u036f\\ufe20-\\ufe23",I="\\u20d0-\\u20f0",A="\\ufe0e\\ufe0f",j="[".concat(O).concat(I,"]"),D="\ud83c[\udffb-\udfff]",M="(?:".concat(j,"|").concat(D,")"),N="[^".concat(E,"]"),P="(?:\ud83c[\udde6-\uddff]){2}",R="[\ud800-\udbff][\udc00-\udfff]",L="\\u200d",F="".concat(M,"?"),V="[".concat(A,"]?"),$="(?:"+L+"(?:"+[N,P,R].join("|")+")"+V+F+")*",Z="(?:".concat(["".concat(N).concat(j,"?"),j,P,R,"[".concat(E,"]")].join("|"),"\n)"),z=RegExp("".concat(D,"(?=").concat(D,")|").concat(Z).concat(V+F+$),"g"),W=[L,E,O,I,A],B=RegExp("[".concat(W.join(""),"]"));function G(e,t){var r=document.createElement(e);return t&&Object.keys(t).forEach(function(e){var n=t[e],i=f(n)?n.trim():n;null!==i&&""!==i&&("children"===e?r.append.apply(r,l(v(i))):r.setAttribute(e,i))}),r}var U={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"},H=c(U,{}),X=function(){function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.isSplit=!1,this.settings=c(H,p(r)),this.elements=b(t),this.split()}return i(e,null,[{key:"clearData",value:function(){Object.keys(x).forEach(function(e){delete x[e]})}},{key:"setDefaults",value:function(e){return H=c(H,p(e)),U}},{key:"revert",value:function(e){b(e).forEach(function(e){var t=k(e),r=t.isSplit,n=t.html,i=t.cssWidth,s=t.cssHeight;r&&(e.innerHTML=n,e.style.width=i||"",e.style.height=s||"",T(e))})}},{key:"create",value:function(t,r){return new e(t,r)}},{key:"data",get:function(){return x}},{key:"defaults",get:function(){return H},set:function(e){H=c(H,p(e))}}]),i(e,[{key:"split",value:function(e){var t=this;this.revert(),this.elements.forEach(function(e){C(e,"html",e.innerHTML)}),this.lines=[],this.words=[],this.chars=[];var r=[window.pageXOffset,window.pageYOffset];void 0!==e&&(this.settings=c(this.settings,p(e)));var n=m(this.settings.types);n.none||(this.elements.forEach(function(e){C(e,"isRoot",!0);var r=function e(t,r){var n,i,s,a,o,u,d,h=t.nodeType,p={words:[],chars:[]};if(!/(1|3|11)/.test(h))return p;if(3===h&&/\S/.test(t.nodeValue))return i=m((n=c(U,n=r)).types),s=n.tagName,a=t.nodeValue,o=document.createDocumentFragment(),u=[],d=[],/^\s/.test(a)&&o.append(" "),u=(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return(e?String(e):"").trim().replace(/\s+/g," ").split(t)})(a).reduce(function(e,t,r,a){var u,c;return i.chars&&(c=(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((e=null==(r=e)?"":String(r))&&f(e)&&!t&&(n=e,B.test(n))){var r,n,i=e;return B.test(i)?i.match(z)||[]:i.split("")}return e.split(t)})(t).map(function(e){var t=G(s,{class:"".concat(n.splitClass," ").concat(n.charClass),style:"display: inline-block;",children:e});return C(t,"isChar",!0),d=[].concat(l(d),[t]),t})),i.words||i.lines?(C(u=G(s,{class:"".concat(n.wordClass," ").concat(n.splitClass),style:"display: inline-block; ".concat(i.words&&n.absolute?"position: relative;":""),children:i.chars?c:t}),{isWord:!0,isWordStart:!0,isWordEnd:!0}),o.appendChild(u)):c.forEach(function(e){o.appendChild(e)}),r<a.length-1&&o.append(" "),i.words?e.concat(u):e},[]),/\s$/.test(a)&&o.append(" "),t.replaceWith(o),{words:u,chars:d};var g=v(t.childNodes);if(g.length&&(C(t,"isSplit",!0),!k(t).isRoot)){t.style.display="inline-block",t.style.position="relative";var y=t.nextSibling,b=t.previousSibling,w=t.textContent||"",_=y?y.textContent:" ",x=b?b.textContent:" ";C(t,{isWordEnd:/\s$/.test(w)||/^\s/.test(_),isWordStart:/^\s/.test(w)||/\s$/.test(x)})}return g.reduce(function(t,n){var i=e(n,r),s=i.words,a=i.chars;return{words:[].concat(l(t.words),l(s)),chars:[].concat(l(t.chars),l(a))}},p)}(e,t.settings),n=r.words,i=r.chars;t.words=[].concat(l(t.words),l(n)),t.chars=[].concat(l(t.chars),l(i))}
1),this.elements.forEach(function(e){if(n.lines||t.settings.absolute){var i,s,a,u,d,c,f,h,p,g,y,b,w,_,x,S,E,O=(i=t.settings,d=m(i.types),c=i.tagName,f=e.getElementsByTagName("*"),h=[],p=[],g=null,y=[],b=e.parentElement,w=e.nextElementSibling,_=document.createDocumentFragment(),S=(x=window.getComputedStyle(e)).textAlign,E=.2*parseFloat(x.fontSize),i.absolute&&(u={left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth},a=e.offsetWidth,s=e.offsetHeight,C(e,{cssWidth:e.style.width,cssHeight:e.style.height})),v(f).forEach(function(t){var n=t.parentElement===e,s=function(e,t,r,n){if(!r.absolute)return{top:t?e.offsetTop:null};var i=e.offsetParent,s=o(n,2),a=s[0],l=s[1],u=0,d=0;if(i&&i!==document.body){var c=i.getBoundingClientRect();u=c.x+a,d=c.y+l}var f=e.getBoundingClientRect(),h=f.width,p=f.height,m=f.x;return{width:h,height:p,top:f.y+l-d,left:m+a-u}}(t,n,i,r),a=s.width,l=s.height,u=s.top,c=s.left;!/^br$/i.test(t.nodeName)&&(d.lines&&n&&((null===g||u-g>=E)&&(g=u,h.push(p=[])),p.push(t)),i.absolute&&C(t,{top:u,left:c,width:a,height:l}))}),b&&b.removeChild(e),d.lines&&(y=h.map(function(e){var t=G(c,{class:"".concat(i.splitClass," ").concat(i.lineClass),style:"display: block; text-align: ".concat(S,"; width: 100%;")});C(t,"isLine",!0);var r={height:0,top:1e4};return _.appendChild(t),e.forEach(function(e,n,i){var s=k(e),a=s.isWordEnd,o=s.top,l=s.height,u=i[n+1];r.height=Math.max(r.height,l),r.top=Math.min(r.top,o),t.appendChild(e),a&&k(u).isWordStart&&t.append(" ")}),i.absolute&&C(t,{height:r.height,top:r.top}),t}),d.words||function e(t){k(t).isWord?(T(t),t.replaceWith.apply(t,l(t.childNodes))):v(t.children).forEach(function(t){return e(t)})}(_),e.replaceChildren(_)),i.absolute&&(e.style.width="".concat(e.style.width||a,"px"),e.style.height="".concat(s,"px"),v(f).forEach(function(e){var t=k(e),r=t.isLine,n=t.top,i=t.left,s=t.width,a=t.height,o=k(e.parentElement),l=!r&&o.isLine;e.style.top="".concat(l?n-o.top:n,"px"),e.style.left=r?"".concat(u.left,"px"):"".concat(i-(l?u.left:0),"px"),e.style.height="".concat(a,"px"),e.style.width=r?"".concat(u.width,"px"):"".concat(s,"px"),e.style.position="absolute"})),b&&(w?b.insertBefore(e,w):b.appendChild(e)),y);t.lines=[].concat(l(t.lines),l(O))}}),this.isSplit=!0,window.scrollTo(r[0],r[1]),w(x).forEach(function(e){var t=o(e,2),r=t[0],n=t[1],i=n.isRoot,s=n.isSplit;i&&s||(x[r]=null,delete x[r])}))}},{key:"revert",value:function(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),e.revert(this.elements)}}]),e}()},85005:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(12115);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function s(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:i(n)&&i(a)?s(n,a):n===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function o(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function f(e){return Math.sign(e)}function h(e){return y(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(r,n,i,s={passive:!0}){let a;return"addEventListener"in r?(r.addEventListener(n,i,s),a=()=>r.removeEventListener(n,i,s)):(r.addListener(i),a=()=>r.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function w(e=0,t=0){let r=c(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function _(e){let t=e;function r(e){return o(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function x(e,t){let r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`}
1,n=t.style,i=null,s=!1;return{clear:function(){!s&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(n.transform=r(a),i=a)},toggleActive:function(e){s=!e}}}let S={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function C(e,t,r){let n,i,s,a,k,T=e.ownerDocument,E=T.defaultView,O=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(y(r).forEach(n=>{let i=t[n],s=r[n],a=d(i)&&d(s);t[n]=a?e(i,s):s}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=y(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(E),I=(k=[],{init:function(e,t){return(k=t.filter(({options:e})=>!1!==O.optionsAtMedia(e).active)).forEach(t=>t.init(e,O)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){k=k.filter(e=>e.destroy())}}),A=b(),j=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:D,optionsAtMedia:M,optionsMediaQueries:N}=O,{on:P,off:R,emit:L}=j,F=!1,V=D(S,C.globalOptions),$=D(V),Z=[];function z(t,r){if(F)return;$=M(V=D(V,t)),Z=r||Z;let{container:d,slides:S}=$;s=(l(d)?e.querySelector(d):d)||e.children[0];let C=l(S)?s.querySelectorAll(S):S;a=[].slice.call(C||s.children),n=function t(r){let n=function(e,t,r,n,i,s,a){let d,S,{align:C,axis:k,direction:T,startIndex:E,loop:O,duration:I,dragFree:A,dragThreshold:j,inViewThreshold:D,slidesToScroll:M,skipSnaps:N,containScroll:P,watchResize:R,watchSlides:L,watchDrag:F,watchFocus:V}=s,$={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},Z=$.measure(t),z=r.map($.measure),W=function(e,t){let r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(k,T),B=W.measureSize(Z),G={measure:function(e){return e/100*B}},U=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(C,B),H=!O&&!!P,{slideSizes:X,slideSizesWithGaps:q,startGap:K,endGap:Y}=function(e,t,r,n,i,s){let{measureSize:a,startEdge:o,endEdge:l}=e,u=r[0]&&i,d=function(){if(!u)return 0;let e=r[0];return c(t[o]-e[o])}(),f=u?parseFloat(s.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,h=r.map(a),g=r.map((e,t,r)=>{let n=t===m(r);return t?n?h[t]+f:r[t+1][o]-e[o]:h[t]+d}).map(c);return{slideSizes:h,slideSizesWithGaps:g,startGap:d,endGap:f}}(W,Z,z,r,O||!!P,i),J=function(e,t,r,n,i,s,a,l,u){let{startEdge:d,endEdge:f,direction:g}=e,y=o(r);return{groupSlides:function(e){return y?h(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?h(e).reduce((r,o,u)=>{let h=p(r)||0,y=o===m(e),v=i[d]-s[h][d],b=i[d]-s[o][f],w=n||0!==h?0:g(a),_=c(b-(!n&&y?g(l):0)-(v+w));return u&&_>t+2&&r.push(o),y&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(W,B,M,O,Z,z,K,Y,0),{snaps:Q,snapsAligned:ee}=function(e,t,r,n,i){let{startEdge:s,endEdge:a}=e,{groupSlides:o}=i,l=o(n).map(e=>p(e)[a]-e[0][s]).map(c).map(t.measure),u=n.map(e=>r[s]-e[s]).map(e=>-c(e)),d=o(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:d}}(W,U,Z,z,J),et=-p(Q)+p(q),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,i){let s=w(-t+e,0),a=r.map((e,t)=>{let{min:n,max:i}=s,a=s.constrain(e),o=t===m(r);return t?o||function(e,t){return 1>=c(e-t)}(n,a)?n:function(e,t){return 1>=c(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),o=function(){let e=a[0],t=p(a);return w(a.lastIndexOf(e),a.indexOf(t)+1)}();function l(e,t){return 1>=c(e-t)}return{snapsContained:function(){if(t<=e+2)return[s.max];if("keepSnaps"===n)return a;let{min:r,max:i}=o;return a.slice(r,i)}(),scrollContainLimit:o}}(B,et,ee,P,0),ei=H?er:ee,{limit:es}=function(e,t,r){let n=t[0];return{limit:w(r?n-e:p(t),n)}}(et,ei,O),ea=function e(t,r,n){let{constrain:i}=w(0,t),s=t+1,a=o(r);function o(e){return n?c((s+e)%s):i(e)}function l(){return e(t,a,n)}let u={get:function(){return a}
1,set:function(e){return a=o(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(m(ei),E,O),eo=ea.clone(),el=h(r),eu=({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()},ed=({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:s,slideLooper:a,dragHandler:o,animation:l,eventHandler:u,scrollBounds:d,options:{loop:c}},f)=>{let h=e.settled(),p=!d.shouldConstrain(),m=c?h:h&&p,g=m&&!o.pointerDown();g&&l.stop();let y=r.get()*f+i.get()*(1-f);n.set(y),c&&(s.loop(e.direction()),a.loop()),t.to(n.get()),g&&u.emit("settle"),m||u.emit("scroll")},ec=function(e,t,r,n){let i=b(),s=1e3/60,a=null,o=0,l=0;function u(e){if(!l)return;a||(a=e,r(),r());let i=e-a;for(a=e,o+=i;o>=s;)r(),o-=s;n(o/s),l&&(l=t.requestAnimationFrame(u))}function d(){t.cancelAnimationFrame(l),a=null,o=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,o=0)})},destroy:function(){d(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:d,update:r,render:n}}(n,i,()=>eu(ek),e=>ed(ek,e)),ef=ei[ea.get()],eh=_(ef),ep=_(ef),em=_(ef),eg=_(ef),ey=function(e,t,r,n,i,s){let a=0,o=0,l=i,u=.68,d=e.get(),h=0;function p(e){return l=e,g}function m(e){return u=e,g}let g={direction:function(){return o},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),a+=t/l,a*=u,d+=a,e.add(a),i=d-h):(a=0,r.set(n),e.set(n),i=t),o=f(i),h=d,g},settled:function(){return .001>c(n.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return g}(eh,em,ep,eg,I,.68),ev=function(e,t,r,n,i){let{reachedAny:s,removeOffset:a,constrain:o}=n;function l(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function u(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let s=i.filter(e=>f(e)===n);return s.length?l(s):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:d,distance:f}=function(r){let n=e?a(r):o(r),{index:i}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:i,distance:n}}(l),h=!e&&s(l);if(!n||h)return{index:d,distance:r};let p=r+u(t[d]-f,0);return{index:d,distance:p}},byIndex:function(e,r){let n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(O,ei,et,es,eg),eb=function(e,t,r,n,i,s,a){function o(i){let o=i.distance,l=i.index!==t.get();
1s.add(o),o&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){o(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);o(i.byIndex(n.get(),r))}}}(ec,ea,eo,ey,ev,eg,a),ew=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(es),e_=b(),ex=function(e,t,r,n){let i,s={},a=null,o=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{s[t.indexOf(e.target)]=e}),a=null,o=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=y(s).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=s[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(a=t),e||(o=t),t}}}(t,r,a,D),{slideRegistry:eS}=function(e,t,r,n,i,s){let{groupSlides:a}=i,{min:o,max:l}=n;return{slideRegistry:function(){let n=a(s);return 1===r.length?[s]:e&&"keepSnaps"!==t?n.slice(o,l).map((e,t,r)=>{let n=t===m(r);return t?n?g(m(s)-p(r)[0]+1,p(r)[0]):e:g(p(r[0])+1)}):n}()}}(H,P,ei,en,J,el),eC=function(e,t,r,n,i,s,a,l){let d={passive:!0,capture:!0},c=0;function f(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(h){l&&(s.add(document,"keydown",f,!1),t.forEach((t,f)=>{s.add(t,"focus",t=>{(u(l)||l(h,t))&&function(t){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let s=r.findIndex(e=>e.includes(t));o(s)&&(i.useDuration(0),n.index(s,0),a.emit("slideFocus"))}(f)},d)}))}}}(e,r,eS,eb,ey,e_,a,V),ek={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:Z,slideRects:z,animation:ec,axis:W,dragHandler:function(e,t,r,n,i,s,a,o,l,d,h,p,m,g,y,_,x,S,C){let{cross:k,direction:T}=e,E=["INPUT","SELECT","TEXTAREA"],O={passive:!1},I=b(),A=b(),j=w(50,225).constrain(g.measure(20)),D={mouse:300,touch:400},M={mouse:500,touch:600},N=y?43:25,P=!1,R=0,L=0,F=!1,V=!1,$=!1,Z=!1;function z(e){if(!v(e,n)&&e.touches.length>=2)return W(e);let t=s.readPoint(e),r=s.readPoint(e,k),a=c(t-R),l=c(r-L);if(!V&&!Z&&(!e.cancelable||!(V=a>l)))return W(e);let u=s.pointerMove(e);a>_&&($=!0),d.useFriction(.3).useDuration(.75),o.start(),i.add(T(u)),e.preventDefault()}function W(e){let t=h.byDistance(0,!1).index!==p.get(),r=s.pointerUp(e)*(y?M:D)[Z?"mouse":"touch"],n=function(e,t){let r=p.add(-1*f(e)),n=h.byDistance(e,!y).distance;return y||c(e)<j?n:x&&t?.5*n:h.byIndex(r.get(),0).distance}(T(r),t),i=function(e,t){var r,n;if(0===e||0===t||c(e)<=c(t))return 0;let i=(r=c(e),n=c(t),c(r-n));return c(i/e)}(r,n);V=!1,F=!1,A.clear(),d.useDuration(N-10*i).useFriction(.68+i/50),l.distance(n,!y),Z=!1,m.emit("pointerUp")}function B(e){$&&(e.stopPropagation(),e.preventDefault(),$=!1)}return{init:function(e){C&&I.add(t,"dragstart",e=>e.preventDefault(),O).add(t,"touchmove",()=>void 0,O).add(t,"touchend",()=>void 0).add(t,"touchstart",o).add(t,"mousedown",o).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",B,!0);function o(o){(u(C)||C(e,o))&&function(e){let o=v(e,n);if((Z=o,$=y&&o&&!e.buttons&&P,P=c(i.get()-a.get())>=2,!o||0===e.button)&&!function(e){let t=e.nodeName||"";return E.includes(t)}(e.target)){F=!0,s.pointerDown(e),d.useFriction(0).useDuration(0),i.set(a);let n=Z?r:t;A.add(n,"touchmove",z,O).add(n,"touchend",W).add(n,"mousemove",z,O).add(n,"mouseup",W),R=s.readPoint(e),L=s.readPoint(e,k),m.emit("pointerDown")}}(o)}},destroy:function(){I.clear(),A.clear()},pointerDown:function(){return F}}}(W,e,n,i,eg,function(e,t){let r,n;function i(e){return e.timeStamp}function s(r,n){let i=n||e.scroll,s=`client${"x"===i?"X":"Y"}`;return(v(r,t)?r:r.touches[0])[s]}return{pointerDown:function(e){return r=e,n=e,s(e)},pointerMove:function(e){let t=s(e)-s(n),a=i(e)-i(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=s(n)-s(r),a=i(e)-i(r),o=i(e)-i(n)>170,l=t/a;return a&&!o&&c(l)>.1?l:0},readPoint:s}}(W,i),eh,ec,eb,ey,ev,ea,a,G,A,j,N,0,F),eventStore:e_,percentOfView:G,index:ea,indexPrevious:eo,limit:es,location:eh,offsetLocation:em,previousLocation:ep,options:s,resizeHandler:function(e,t,r,n,i,s,a){let o,l,d=[e].concat(n),f=[],h=!1;function p(e){return i.measureSize(a.measure(e))}
1return{init:function(i){s&&(l=p(e),f=n.map(p),o=new ResizeObserver(r=>{(u(s)||s(i,r))&&function(r){for(let s of r){if(h)return;let r=s.target===e,a=n.indexOf(s.target),o=r?l:f[a];if(c(p(r?e:n[a])-o)>=.5){i.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{d.forEach(e=>o.observe(e))}))},destroy:function(){h=!0,o&&o.disconnect()}}}(t,a,i,r,W,R,$),scrollBody:ey,scrollBounds:function(e,t,r,n,i){let s=i.measure(10),a=i.measure(50),o=w(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",d=c(e[l]-t.get()),f=r.get()-t.get(),h=o.constrain(d/a);r.subtract(f*h),!i&&c(f)<s&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(es,em,eg,ey,G),scrollLooper:function(e,t,r,n){let{reachedMin:i,reachedMax:s}=w(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?s(r.get()):-1===t&&i(r.get())))return;let a=-1*t*e;n.forEach(e=>e.add(a))}}}(et,es,em,[eh,em,ep,eg]),scrollProgress:ew,scrollSnapList:ei.map(ew.get),scrollSnaps:ei,scrollTarget:ev,scrollTo:eb,slideLooper:function(e,t,r,n,i,s,a,o,l){let u=h(i),d=h(i).reverse(),c=m(p(d,a[0]),r,!1).concat(m(p(u,t-a[0]-1),-r,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,r)=>f(e,t)>0?e.concat([r]):e,[])}function m(i,a,u){let d=s.map((e,r)=>({start:e-n[r]+.5+a,end:e+t-.5+a}));return i.map(t=>{let n=u?0:-r,i=u?r:0,s=d[t][u?"end":"start"];return{index:t,loopPoint:s,slideLocation:_(-1),translate:x(e,l[t]),target:()=>o.get()>s?n:i}})}return{canLoop:function(){return c.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:c}}(W,B,et,X,q,Q,ei,em,r),slideFocus:eC,slidesHandler:(S=!1,{init:function(e){L&&(d=new MutationObserver(t=>{!S&&(u(L)||L(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){d&&d.disconnect(),S=!0}}),slidesInView:ex,slideIndexes:el,slideRegistry:eS,slidesToScroll:J,target:eg,translate:x(W,t)};return ek}(e,s,a,T,E,r,j);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}($),N([V,...Z.map(({options:e})=>e)]).forEach(e=>A.add(e,"change",W)),$.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(H),n.eventHandler.init(H),n.resizeHandler.init(H),n.slidesHandler.init(H),n.options.loop&&n.slideLooper.loop(),s.offsetParent&&a.length&&n.dragHandler.init(H),i=I.init(H,Z))}function W(e,t){let r=U();B(),z(D({startIndex:r},e),t),j.emit("reInit")}function B(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),I.destroy(),A.clear()}function G(e,t,r){$.active&&!F&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:$.duration),n.scrollTo.index(e,r||0))}function U(){return n.index.get()}let H={canScrollNext:function(){return n.index.add(1).get()!==U()},canScrollPrev:function(){return n.index.add(-1).get()!==U()},containerNode:function(){return s},internalEngine:function(){return n},destroy:function(){F||(F=!0,A.clear(),B(),j.emit("destroy"),j.clear())},off:R,on:P,emit:L,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:W,rootNode:function(){return e},scrollNext:function(e){G(n.index.add(1).get(),e,-1)},scrollPrev:function(e){G(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:G,selectedScrollSnap:U,slideNodes:function(){return a},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return z(t,r),setTimeout(()=>j.emit("init"),0),H}function k(e={}
1,t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[o,l]=(0,n.useState)(),[u,d]=(0,n.useState)(),c=(0,n.useCallback)(()=>{o&&o.reInit(r.current,i.current)},[o]);return(0,n.useEffect)(()=>{s(r.current,e)||(r.current=e,c())},[e,c]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=a(e),n=a(t);return r.every((e,t)=>s(e,n[t]))}(i.current,t)&&(i.current=t,c())},[t,c]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){C.globalOptions=k.globalOptions;let e=C(u,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[d,o]}C.globalOptions=void 0,k.globalOptions=void 0},85185:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},85805:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,r,s,a,o=null,l=0,u=!1,d=!1,c=!1,f=!1;function h(){if(!s){if(g()){c=!0;return}u||r.emit("autoplay:play");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=e.setTimeout(_,a[r.selectedScrollSnap()]),o=new Date().getTime(),r.emit("autoplay:timerset"),u=!0}}function p(){if(!s){u&&r.emit("autoplay:stop");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=0,o=null,r.emit("autoplay:timerstopped"),u=!1}}function m(){if(g())return c=u,p();c&&h()}function g(){let{ownerDocument:e}=r.internalEngine();return"hidden"===e.visibilityState}function y(){d||p()}function v(){d||h()}function b(){d=!0,p()}function w(){d=!1,h()}function _(){let{index:e}=r.internalEngine(),n=e.clone().add(1).get(),i=r.scrollSnapList().length-1,s=t.stopOnLastSnap&&n===i;if(r.canScrollNext()?r.scrollNext(f):r.scrollTo(0,f),r.emit("autoplay:select"),s)return p();h()}return{name:"autoplay",options:e,init:function(o,l){r=o;let{mergeOptions:u,optionsAtMedia:d}=l,c=u(n,i.globalOptions);if(t=d(u(c,e)),r.scrollSnapList().length<=1)return;f=t.jump,s=!1,a=function(e,t){let r=e.scrollSnapList();return"number"==typeof t?r.map(()=>t):t(r,e)}(r,t.delay);let{eventStore:g,ownerDocument:_}=r.internalEngine(),x=!!r.internalEngine().options.watchDrag,S=function(e,t){let r=e.rootNode();return t&&t(r)||r}(r,t.rootNode);g.add(_,"visibilitychange",m),x&&r.on("pointerDown",y),x&&!t.stopOnInteraction&&r.on("pointerUp",v),t.stopOnMouseEnter&&g.add(S,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(S,"mouseleave",w),t.stopOnFocusIn&&r.on("slideFocusStart",p),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(r.containerNode(),"focusout",h),t.playOnInit&&h()},destroy:function(){r.off("pointerDown",y).off("pointerUp",v).off("slideFocusStart",p),p(),s=!0,u=!1},play:function(e){void 0!==e&&(f=e),h()},stop:function(){u&&p()},reset:function(){u&&h()},isPlaying:function(){return u},timeUntilNext:function(){return o?a[r.selectedScrollSnap()]-(new Date().getTime()-o):null}}}i.globalOptions=void 0},86266:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(43969);function i(e,t,r){var i=(0,n._)(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}},90634:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ew,Y9:()=>ev,q7:()=>ey,bL:()=>eg,l9:()=>eb});var n,i=r(12115),s=r(46081),a=r(94971),o=r(95920),l=r(86266),u=r(6101),d=r(95155);function c(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){var s;let e,a,o=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(l.ref=t?(0,u.t)(t,o):o),i.cloneElement(r,l)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...s}=e,a=i.Children.toArray(n),o=a.find(h);if(o){let e=o.props.children,n=a.map(t=>t!==o?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...s,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...s,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var f=Symbol("radix.slottable");function h(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var p=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=g(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function g(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap;var y=r(85185),v=r(5845);r(47650);var b=Symbol("radix.slottable");function w(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var _=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){var s;let e,a,o=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(l.ref=t?(0,u.t)(t,o):o),i.cloneElement(r,l)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...s}=e,a=i.Children.toArray(n),o=a.find(w);if(o){let e=o.props.children,n=a.map(t=>t!==o?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...s,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...s,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i?r:t,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),x=r(52712),S=Symbol("radix.slottable");function C(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===S}var k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){var s;let e,a,o=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(l.ref=t?(0,u.t)(t,o):o),i.cloneElement(r,l)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...s}=e,a=i.Children.toArray(n),o=a.find(C);if(o){let e=o.props.children,n=a.map(t=>t!==o?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...s,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...s,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i?r:t,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),T=r(28905),E=r(61285),O="Collapsible",[I,A]=(0,s.A)(O),[j,D]=I(O),M=i.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:a,onOpenChange:o,...l}=e,[u,c]=(0,v.i)({prop:n,defaultProp:null!=s&&s,onChange:o,caller:O});return(0,d.jsx)(j,{scope:r,disabled:a,contentId:(0,E.B)(),open:u,onOpenToggle:i.useCallback(()=>c(e=>!e),[c]),children:(0,d.jsx)(k.div,{"data-state":V(u),"data-disabled":a?"":void 0,...l,ref:t})})});M.displayName=O;var N="CollapsibleTrigger",P=i.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=D(N,r);return(0,d.jsx)(k.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":V(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,y.m)(e.onClick,i.onOpenToggle)})});P.displayName=N;var R="CollapsibleContent",L=i.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=D(R,e.__scopeCollapsible);return(0,d.jsx)(T.C,{present:r||i.open,children:e=>{let{present:r}=e;return(0,d.jsx)(F,{...n,ref:t,present:r})}})});L.displayName=R;var F=i.forwardRef((e,t)=>
1{let{__scopeCollapsible:r,present:n,children:s,...a}=e,o=D(R,r),[l,c]=i.useState(n),f=i.useRef(null),h=(0,u.s)(t,f),p=i.useRef(0),m=p.current,g=i.useRef(0),y=g.current,v=o.open||l,b=i.useRef(v),w=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.N)(()=>{let e=f.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();p.current=t.height,g.current=t.width,b.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),c(n)}},[o.open,n]),(0,d.jsx)(k.div,{"data-state":V(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v,...a,ref:h,style:{"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:v&&s})});function V(e){return e?"open":"closed"}var $=r(94315),Z="Accordion",z=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[W,B,G]=function(e){let t=e+"CollectionProvider",[r,n]=(0,s.A)(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=i.useRef(null),s=i.useRef(new Map).current;return(0,d.jsx)(a,{scope:t,itemMap:s,collectionRef:n,children:r})};l.displayName=t;let f=e+"CollectionSlot",h=c(f),p=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(f,r),s=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(h,{ref:s,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=c(m),v=i.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,a=i.useRef(null),l=(0,u.s)(t,a),c=o(m,r);return i.useEffect(()=>(c.itemMap.set(a,{ref:a,...s}),()=>void c.itemMap.delete(a))),(0,d.jsx)(y,{...{[g]:""},ref:l,children:n})});return v.displayName=m,[{Provider:l,Slot:p,ItemSlot:v},function(t){let r=o(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(Z),[U,H]=(0,s.A)(Z,[G,A]),X=A(),q=i.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,d.jsx)(W.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,d.jsx)(et,{...n,ref:t}):(0,d.jsx)(ee,{...n,ref:t})})});q.displayName=Z;var[K,Y]=U(Z),[J,Q]=U(Z,{collapsible:!1}),ee=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:a=!1,...o}=e,[l,u]=(0,v.i)({prop:r,defaultProp:null!=n?n:"",onChange:s,caller:Z});return(0,d.jsx)(K,{scope:e.__scopeAccordion,value:i.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:i.useCallback(()=>a&&u(""),[a,u]),children:(0,d.jsx)(J,{scope:e.__scopeAccordion,collapsible:a,children:(0,d.jsx)(ei,{...o,ref:t})})})}),et=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},...a}=e,[o,l]=(0,v.i)({prop:r,defaultProp:null!=n?n:[],onChange:s,caller:Z}),u=i.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[l]),c=i.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[l]);return(0,d.jsx)(K,{scope:e.__scopeAccordion,value:o,onItemOpen:u,onItemClose:c,children:(0,d.jsx)(J,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(ei,{...a,ref:t})})})}),[er,en]=U(Z),ei=i.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,dir:s,orientation:a="vertical",...o}=e,l=i.useRef(null),c=(0,u.s)(l,t),f=B(r),h="ltr"===(0,$.jH)(s),p=(0,y.m)(e.onKeyDown,e=>{var t;if(!z.includes(e.key))return;let r=e.target,n=f().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),i=n.findIndex(e=>e.ref.current===r),s=n.length;if(-1===i)return;e.preventDefault();let o=i,l=s-1,u=()=>{(o=i+1)>l&&(o=0)},d=()=>{(o=i-1)<0&&(o=l)};switch(e.key){case"Home":o=0;break;case"End":o=l;break;case"ArrowRight":"horizontal"===a&&(h?u():d());break;case"ArrowDown":"vertical"===a&&u();break;case"ArrowLeft":"horizontal"===a&&(h?d():u());break;case"ArrowUp":"vertical"===a&&d()}
1null==(t=n[o%s].ref.current)||t.focus()});return(0,d.jsx)(er,{scope:r,disabled:n,direction:s,orientation:a,children:(0,d.jsx)(W.Slot,{scope:r,children:(0,d.jsx)(_.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:p})})})}),es="AccordionItem",[ea,eo]=U(es),el=i.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,s=en(es,r),a=Y(es,r),o=X(r),l=(0,E.B)(),u=n&&a.value.includes(n)||!1,c=s.disabled||e.disabled;return(0,d.jsx)(ea,{scope:r,open:u,disabled:c,triggerId:l,children:(0,d.jsx)(M,{"data-orientation":s.orientation,"data-state":em(u),...o,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});el.displayName=es;var eu="AccordionHeader",ed=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=en(Z,r),s=eo(eu,r);return(0,d.jsx)(_.h3,{"data-orientation":i.orientation,"data-state":em(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});ed.displayName=eu;var ec="AccordionTrigger",ef=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=en(Z,r),s=eo(ec,r),a=Q(ec,r),o=X(r);return(0,d.jsx)(W.ItemSlot,{scope:r,children:(0,d.jsx)(P,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...o,...n,ref:t})})});ef.displayName=ec;var eh="AccordionContent",ep=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=en(Z,r),s=eo(eh,r),a=X(r);return(0,d.jsx)(L,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function em(e){return e?"open":"closed"}ep.displayName=eh;var eg=q,ey=el,ev=ed,eb=ef,ew=ep},93470:(e,t,r)=>{"use strict";r.d(t,{bm:()=>ta,UC:()=>tn,VY:()=>ts,hJ:()=>tr,ZL:()=>tt,bL:()=>e7,hE:()=>ti,l9:()=>te});var n,i,s,a=r(12115),o=r(85185),l=r(6101),u=r(46081),d=r(61285),c=r(5845),f=r(63655),h=r(39033),p=r(95155),m="dismissableLayer.update",g=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=a.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:y,onDismiss:w,..._}=e,x=a.useContext(g),[S,C]=a.useState(null),k=null!=(n=null==S?void 0:S.ownerDocument)?n:null==(r=globalThis)?void 0:r.document,[,T]=a.useState({}),E=(0,l.s)(t,e=>C(e)),O=Array.from(x.layers),[I]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(I),j=S?O.indexOf(S):-1,D=x.layersWithOutsidePointerEventsDisabled.size>0,M=j>=A,N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,h.c)(e),i=a.useRef(!1),s=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){b("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",s.current),s.current=t,r.addEventListener("click",s.current,{once:!0})):t()}else r.removeEventListener("click",s.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",s.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));M&&!r&&(null==d||d(e),null==y||y(e),e.defaultPrevented||null==w||w())},k),P=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,h.c)(e),i=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!i.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==c||c(e),null==y||y(e),e.defaultPrevented||null==w||w())},k);return!function(e,t=globalThis?.document){let r=(0,h.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{j===x.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},k),a.useEffect(()=>{if(S)return s&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(i=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),v(),()=>{s&&1===x.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=i)}},[S,k,s,x]),a.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),v())},[S,x]),a.useEffect(()=>{let e=()=>T({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,p.jsx)(f.sG.div,{..._,ref:E,style:{pointerEvents:D?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,N.onPointerDownCapture)})});function v(){let e=new CustomEvent(m);document.dispatchEvent(e)}function b(e,t,r,n){let{discrete:i}=n,s=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),i?(0,f.hO)(s,a):s.dispatchEvent(a)}y.displayName="DismissableLayer",a.forwardRef((e,t)=>
1{let r=a.useContext(g),n=a.useRef(null),i=(0,l.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,p.jsx)(f.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var w="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},S=a.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[u,d]=a.useState(null),c=(0,h.c)(i),m=(0,h.c)(s),g=a.useRef(null),y=(0,l.s)(t,e=>d(e)),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:T(g.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||T(g.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&T(u)});return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,u,v.paused]),a.useEffect(()=>{if(u){E.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(w,x);u.addEventListener(w,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(T(n,{select:t}),document.activeElement!==r)return}(C(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(u))}return()=>{u.removeEventListener(w,c),setTimeout(()=>{let t=new CustomEvent(_,x);u.addEventListener(_,m),u.dispatchEvent(t),t.defaultPrevented||T(null!=e?e:document.body,{select:!0}),u.removeEventListener(_,m),E.remove(v)},0)}}},[u,c,m,v]);let b=a.useCallback(e=>{if(!r&&!n||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,s]=function(e){let t=C(e);return[k(t,e),k(t.reverse(),e)]}(t);n&&s?e.shiftKey||i!==s?e.shiftKey&&i===n&&(e.preventDefault(),r&&T(s,{select:!0})):(e.preventDefault(),r&&T(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,v.paused]);return(0,p.jsx)(f.sG.div,{tabIndex:-1,...o,ref:y,onKeyDown:b})});function C(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function k(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function T(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}S.displayName="FocusScope";var E=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=O(e,t)).unshift(t)},remove(t){var r;null==(r=(e=O(e,t))[0])||r.resume()}}}();function O(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var I=r(47650),A=r(52712),j=a.forwardRef((e,t)=>{var r,n;let{container:i,...s}=e,[o,l]=a.useState(!1);(0,A.N)(()=>l(!0),[]);let u=i||o&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return u?I.createPortal((0,p.jsx)(f.sG.div,{...s,ref:t}),u):null});j.displayName="Portal";var D=r(28905),M=0;function N(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var P=function(){return(P=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function R(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;Object.create;var L=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),F="width-before-scroll-bar";function V(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var $="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Z=new WeakMap;function z(e){return e}var W=function(e){void 0===e&&(e={});var t,r,n,i,s=(t=null,void 0===r&&(r=z),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,i);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var s=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(s)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return s.options=P({async:!0,ssr:!1},e),s}(),B=function(){},G=a.forwardRef(function(e,t){var r,n,i,s,o=a.useRef(null),l=a.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),u=l[0],d=l[1],c=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,_=e.allowPinchZoom,x=e.as,S=e.gapMode,C=R(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[o,t],n=function(e){return r.forEach(function(t){return V(t,e)})},(i=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,s=i.facade,$(function(){var e=Z.get(s);if(e){var t=new Set(e),n=new Set(r),i=s.current;t.forEach(function(e){n.has(e)||V(e,null)}
1),n.forEach(function(e){t.has(e)||V(e,i)})}Z.set(s,r)},[r]),s),T=P(P({},C),u);return a.createElement(a.Fragment,null,m&&a.createElement(y,{sideCar:W,removeScrollBar:p,shards:g,noRelative:v,noIsolation:b,inert:w,setCallbacks:d,allowPinchZoom:!!_,lockRef:o,gapMode:S}),c?a.cloneElement(a.Children.only(f),P(P({},T),{ref:k})):a.createElement(void 0===x?"div":x,P({},T,{className:h,ref:k}),f))});G.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},G.classNames={fullWidth:F,zeroRight:L};var U=function(e){var t=e.sideCar,r=R(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,P({},r))};U.isSideCarExport=!0;var H=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},X=function(){var e=H();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},q=function(){var e=X();return function(t){return e(t.styles,t.dynamic),null}},K={left:0,top:0,right:0,gap:0},Y=function(e){return parseInt(e||"",10)||0},J=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Y(r),Y(n),Y(i)]},Q=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return K;var t=J(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ee=q(),et="data-scroll-locked",er=function(e,t,r,n){var i=e.left,s=e.top,a=e.right,o=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(o,"px ").concat(n,";\n  }\n  body[").concat(et,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(s,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(o,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(L," {\n    right: ").concat(o,"px ").concat(n,";\n  }\n  \n  .").concat(F," {\n    margin-right: ").concat(o,"px ").concat(n,";\n  }\n  \n  .").concat(L," .").concat(L," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(F," .").concat(F," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(et,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n  }\n")},en=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},ei=function(){a.useEffect(function(){return document.body.setAttribute(et,(en()+1).toString()),function(){var e=en()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},es=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;ei();var s=a.useMemo(function(){return Q(i)},[i]);return a.createElement(ee,{styles:er(s,!t,i,r?"":"!important")})},ea=!1;if("undefined"!=typeof window)try{var eo=Object.defineProperty({},"passive",{get:function(){return ea=!0,!0}});window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch(e){ea=!1}var el=!!ea&&{passive:!1},eu=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},ed=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ec(e,n)){var i=ef(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ec=function(e,t){return"v"===e?eu(t,"overflowY"):eu(t,"overflowX")},ef=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eh=function(e,t,r,n,i){var s,a=(s=window.getComputedStyle(t).direction,"h"===e&&"rtl"===s?-1:1),o=a*n,l=r.target,u=t.contains(l),d=!1,c=o>0,f=0,h=0;do{var p=ef(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&ec(e,l)&&(f+=g,h+=m),l=l.parentNode.host||l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(i&&1>Math.abs(f)||!i&&o>f)?d=!0:!c&&(i&&1>Math.abs(h)||!i&&-o>h)&&(d=!0),d},ep=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},em=function(e){return[e.deltaX,e.deltaY]},eg=function(e){return e&&"current"in e?e.current:e},ey=0,ev=[];let eb=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(ey++)[0],s=a.useState(q)[0],o=a.useRef(e);a.useEffect(function(){o.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(eg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,s=ep(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-s[0],u="deltaY"in e?e.deltaY:a[1]-s[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=ed(c,d);if(!f)return!0;if(f?i=c:(i="v"===c?"h":"v",f=ed(c,d)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return eh(h,t,e,"h"===h?l:u,!0)},[]),u=a.useCallback(function(e){if(ev.length&&ev[ev.length-1]===s){var r="deltaY"in e?em(e):ep(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(o.current.shards||[]).map(eg).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,i){var s={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),c=a.useCallback(function(e){r.current=ep(e),n.current=void 0},[]),f=a.useCallback(function(t){d(t.type,em(t),t.target,l(t,e.lockRef.current))},[]),h=a.useCallback(function(t){d(t.type,ep(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return ev.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,el),document.addEventListener("touchmove",u,el),document.addEventListener("touchstart",c,el),function(){ev=ev.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,el),document.removeEventListener("touchmove",u,el),document.removeEventListener("touchstart",c,el)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(s,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(es,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},W.useMedium(n),U);var ew=a.forwardRef(function(e,t){return a.createElement(G,P({},e,{ref:t,sideCar:eb}))});ew.classNames=G.classNames;var e_=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ex=new WeakMap,eS=new WeakMap,eC={},ek=0,eT=function(e){return e&&(e.host||eT(e.parentNode))},eE=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=eT(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eC[r]||(eC[r]=new WeakMap);var s=eC[r],a=[],o=new Set,l=new Set(i),u=function(e){!e||o.has(e)||(o.add(e),u(e.parentNode))};i.forEach(u);var d=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(o.has(e))d(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(ex.get(e)||0)+1,u=(s.get(e)||0)+1;ex.set(e,l),s.set(e,u),a.push(e),1===l&&i&&eS.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),o.clear(),ek++,function(){a.forEach(function(e){var t=ex.get(e)-1,i=s.get(e)-1;ex.set(e,t),s.set(e,i),t||(eS.has(e)||e.removeAttribute(n),eS.delete(e)),i||e.removeAttribute(r)}),--ek||(ex=new WeakMap,ex=new WeakMap,eS=new WeakMap,eC={})}},eO=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||e_(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),eE(n,i,r,"aria-hidden")):function(){return null}},eI=r(99708),eA="Dialog",[ej,eD]=(0,u.A)(eA),[eM,eN]=ej(eA),eP=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,l=a.useRef(null),u=a.useRef(null),[f,h]=(0,c.i)({prop:n,defaultProp:null!=i&&i,onChange:s,caller:eA});return(0,p.jsx)(eM,{scope:t,triggerRef:l,contentRef:u,contentId:(0,d.B)(),titleId:(0,d.B)(),descriptionId:(0,d.B)(),open:f,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(e=>!e),[h]),modal:o,children:r})};eP.displayName=eA;var eR="DialogTrigger",eL=a.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,i=eN(eR,r),s=(0,l.s)(t,i.triggerRef);return(0,p.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":e5(i.open),...n,ref:s,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});eL.displayName=eR;var eF="DialogPortal",[eV,e$]=ej(eF,{forceMount:void 0}),eZ=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=eN(eF,t);return(0,p.jsx)(eV,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,p.jsx)(D.C,{present:r||s.open,children:(0,p.jsx)(j,{asChild:!0,container:i,children:e})}))})};eZ.displayName=eF;var ez="DialogOverlay",eW=a.forwardRef((e,t)=>{let r=e$(ez,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=eN(ez,e.__scopeDialog);return s.modal?(0,p.jsx)(D.C,{present:n||s.open,children:(0,p.jsx)(eG,{...i,ref:t})}):null});eW.displayName=ez;var eB=(0,eI.TL)("DialogOverlay.RemoveScroll"),eG=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eN(ez,r);return(0,p.jsx)(ew,{as:eB,allowPinchZoom:!0,shards:[i.contentRef],children:(0,p.jsx)(f.sG.div,{"data-state":e5(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eU="DialogContent",eH=a.forwardRef((e,t)=>{let r=e$(eU,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=eN(eU,e.__scopeDialog);return(0,p.jsx)(D.C,{present:n||s.open,children:s.modal?(0,p.jsx)(eX,{...i,ref:t}):(0,p.jsx)(eq,{...i,ref:t})})});eH.displayName=eU;var eX=a.forwardRef((e,t)=>{let r=eN(eU,e.__scopeDialog),n=a.useRef(null),i=(0,l.s)(t,r.contentRef,n);return a.useEffect(()=>{let e=n.current;if(e)return eO(e)},[]),(0,p.jsx)(eK,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),eq=a.forwardRef((e,t)=>{let r=eN(eU,e.__scopeDialog),n=a.useRef(!1),i=a.useRef(!1);return(0,p.jsx)(eK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s,a;null==(s=e.onCloseAutoFocus)||s.call(e,t),t.defaultPrevented||(n.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{var s,a;null==(s=e.onInteractOutside)||s.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eK=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,u=eN(eU,r),d=a.useRef(null),c=(0,l.s)(t,d);return a.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:N()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:N()),M++,()=>{1===M&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),M--}},[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(S,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,p.jsx)(y,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e5(u.open),...o,ref:c,onDismiss:()=>u.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e6,{titleId:u.titleId}),(0,p.jsx)(e8,{contentRef:d,descriptionId:u.descriptionId})]})]})}),eY="DialogTitle",eJ=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eN(eY,r);return(0,p.jsx)(f.sG.h2,{id:i.titleId,...n,ref:t})});eJ.displayName=eY;var eQ="DialogDescription",e0=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eN(eQ,r);return(0,p.jsx)(f.sG.p,{id:i.descriptionId,...n,ref:t})});e0.displayName=eQ;var e1="DialogClose",e2=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eN(e1,r);return(0,p.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function e5(e){return e?"open":"closed"}e2.displayName=e1;var e9="DialogTitleWarning",[e4,e3]=(0,u.q)(e9,{contentName:eU,titleName:eY,docsSlug:"dialog"}),e6=e=>{let{titleId:t}=e,r=e3(e9),n="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return a.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},e8=e=>{let{contentRef:t,descriptionId:r}=e,n=e3("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return a.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(i))},[i,t,r]),null},e7=eP,te=eL,tt=eZ,tr=eW,tn=eH,ti=eJ,ts=e0,ta=e2},94315:(e,t,r)=>{"use strict";r.d(t,{jH:()=>s});var n=r(12115);r(95155);var i=n.createContext(void 0);function s(e){let t=n.useContext(i);return e||t||"ltr"}},94971:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(43969);function i(e,t){var r=(0,n._)(e,t,"get");return r.get?r.get.call(e):r.value}},95920:(e,t,r)=>{"use strict";function n(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}r.d(t,{_:()=>n})}}]);

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